**What** - Re-works how toasts work in Medusa UI. API is now built on top of `sonner` instead of `@radix-ui/react-toast`. This is a breaking change, and we will need to update the documentation once this has been merged and released (cc: @shahednasser). - Adds an example of usage in the products list table in the new admin dashboard. As part of the coming weeks cleanup we will add toasts everywhere that they are currently missing. CLOSES CORE-1977
131 lines
3.9 KiB
JSON
131 lines
3.9 KiB
JSON
{
|
|
"name": "@medusajs/ui",
|
|
"version": "2.4.3",
|
|
"author": "Kasper Kristensen <kasper@medusajs.com>",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/medusajs/medusa.git",
|
|
"directory": "packages/design-system/ui"
|
|
},
|
|
"main": "./dist/cjs/index.js",
|
|
"types": "./dist/cjs/index.d.ts",
|
|
"module": "./dist/esm/index.js",
|
|
"exports": {
|
|
".": {
|
|
"require": {
|
|
"types": "./dist/cjs/index.d.ts",
|
|
"default": "./dist/cjs/index.js"
|
|
},
|
|
"import": {
|
|
"types": "./dist/esm/index.d.ts",
|
|
"default": "./dist/esm/index.js"
|
|
}
|
|
}
|
|
},
|
|
"sideEffects": false,
|
|
"files": [
|
|
"dist/**",
|
|
"styles.css"
|
|
],
|
|
"scripts": {
|
|
"build": "yarn clean && yarn build:js:cjs && yarn build:js:esm",
|
|
"build:js:cjs": "tsc --project tsconfig.cjs.json && tsc-alias -p tsconfig.cjs.json",
|
|
"build:js:esm": "tsc --project tsconfig.esm.json && tsc-alias -p tsconfig.esm.json",
|
|
"clean": "rimraf dist",
|
|
"test": "vitest --run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest --run --coverage",
|
|
"lint": "eslint \"**/*.ts*\"",
|
|
"storybook": "storybook dev -p 6006",
|
|
"storybook:build": "storybook build",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"devDependencies": {
|
|
"@medusajs/ui-preset": "^1.1.3",
|
|
"@storybook/addon-essentials": "^7.0.23",
|
|
"@storybook/addon-interactions": "^7.0.23",
|
|
"@storybook/addon-links": "^7.0.23",
|
|
"@storybook/addon-styling": "^1.3.6",
|
|
"@storybook/blocks": "^7.0.23",
|
|
"@storybook/react": "^7.0.23",
|
|
"@storybook/react-vite": "^7.0.23",
|
|
"@storybook/testing-library": "^0.0.14-next.2",
|
|
"@testing-library/dom": "^9.3.1",
|
|
"@testing-library/jest-dom": "^5.16.5",
|
|
"@testing-library/react": "^14.0.0",
|
|
"@testing-library/user-event": "^14.4.3",
|
|
"@types/jsdom": "^21.1.1",
|
|
"@types/react": "^18.2.0",
|
|
"@types/react-dom": "^18.2.0",
|
|
"@vitejs/plugin-react": "^4.0.1",
|
|
"@vitest/coverage-v8": "^0.32.2",
|
|
"autoprefixer": "^10.4.19",
|
|
"chromatic": "^6.20.0",
|
|
"eslint": "^7.32.0",
|
|
"eslint-plugin-storybook": "^0.6.12",
|
|
"jsdom": "^22.1.0",
|
|
"postcss": "^8.4.38",
|
|
"prop-types": "^15.8.1",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"resize-observer-polyfill": "^1.5.1",
|
|
"rimraf": "^5.0.1",
|
|
"storybook": "^7.0.23",
|
|
"tailwindcss": "^3.4.3",
|
|
"tsc-alias": "^1.8.7",
|
|
"typescript": "^5.1.6",
|
|
"vite": "^4.3.9",
|
|
"vite-plugin-turbosnap": "^1.0.2",
|
|
"vitest": "^0.32.2"
|
|
},
|
|
"dependencies": {
|
|
"@medusajs/icons": "^1.2.1",
|
|
"@radix-ui/react-accordion": "^1.1.2",
|
|
"@radix-ui/react-alert-dialog": "^1.0.4",
|
|
"@radix-ui/react-avatar": "^1.0.3",
|
|
"@radix-ui/react-checkbox": "^1.0.4",
|
|
"@radix-ui/react-dialog": "^1.0.4",
|
|
"@radix-ui/react-dropdown-menu": "^2.0.5",
|
|
"@radix-ui/react-label": "^2.0.2",
|
|
"@radix-ui/react-popover": "^1.0.6",
|
|
"@radix-ui/react-portal": "^1.0.3",
|
|
"@radix-ui/react-radio-group": "^1.1.3",
|
|
"@radix-ui/react-scroll-area": "^1.0.4",
|
|
"@radix-ui/react-select": "^2.0.0",
|
|
"@radix-ui/react-slot": "^1.0.2",
|
|
"@radix-ui/react-switch": "^1.0.3",
|
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
"@radix-ui/react-tooltip": "^1.0.6",
|
|
"@react-aria/datepicker": "^3.5.0",
|
|
"@react-stately/datepicker": "^3.5.0",
|
|
"clsx": "^1.2.1",
|
|
"copy-to-clipboard": "^3.3.3",
|
|
"cva": "1.0.0-beta.1",
|
|
"date-fns": "^2.30.0",
|
|
"prism-react-renderer": "^2.0.6",
|
|
"prismjs": "^1.29.0",
|
|
"react-currency-input-field": "^3.6.11",
|
|
"react-day-picker": "^8.8.0",
|
|
"sonner": "^1.4.41",
|
|
"tailwind-merge": "^2.2.1"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18.0.0",
|
|
"react-dom": "^18.0.0"
|
|
},
|
|
"browserslist": [
|
|
"last 3 chrome versions",
|
|
"last 3 firefox versions",
|
|
"last 3 opera versions",
|
|
"last 3 edge versions",
|
|
"last 3 safari versions",
|
|
"last 3 chromeandroid versions",
|
|
"last 1 firefoxandroid versions",
|
|
"ios >= 13.4"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|