**BREAKING:** We now export toast from `sonner` instead of `react-toastify`. If you send out toasts from your own projects, make sure to use our `toast` export, or install `sonner`. React-toastify toasts will no longer work anymore. The Toast APIs are mostly similar, but there are some differences if you provide options to your toast CSS styles have been changed from Toastify ```css /* before */ .Toastify /* current */ .payload-toast-container .payload-toast-item .payload-toast-close-button /* individual toast items will also have these classes depending on the state */ .toast-info .toast-warning .toast-success .toast-error ``` https://github.com/payloadcms/payload/assets/70709113/da3e732e-aafc-4008-9469-b10f4eb06b35 --------- Co-authored-by: Paul Popus <paul@nouance.io>
115 lines
3.5 KiB
JSON
115 lines
3.5 KiB
JSON
{
|
|
"name": "@payloadcms/next",
|
|
"version": "3.0.0-beta.44",
|
|
"homepage": "https://payloadcms.com",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/payloadcms/payload.git",
|
|
"directory": "packages/next"
|
|
},
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./src/index.js",
|
|
"require": "./src/index.js",
|
|
"types": "./src/index.js"
|
|
},
|
|
"./withPayload": {
|
|
"import": "./src/withPayload.js",
|
|
"require": "./src/withPayload.js"
|
|
},
|
|
"./*": {
|
|
"import": "./src/exports/*.ts",
|
|
"require": "./src/exports/*.ts",
|
|
"types": "./src/exports/*.ts"
|
|
}
|
|
},
|
|
"main": "./src/index.js",
|
|
"types": "./src/index.js",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "pnpm copyfiles && pnpm build:swc && pnpm build:cjs && pnpm build:types && pnpm build:webpack && rm dist/prod/index.js",
|
|
"build:cjs": "swc ./src/withPayload.js -o ./dist/cjs/withPayload.cjs --config-file .swcrc-cjs",
|
|
"build:swc": "swc ./src -d ./dist --config-file .swcrc",
|
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
"build:webpack": "webpack --config webpack.config.js",
|
|
"clean": "rimraf {dist,*.tsbuildinfo}",
|
|
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" \"src/app/api/**\" dist/",
|
|
"fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
|
|
"lint": "eslint \"src/**/*.{ts,tsx}\"",
|
|
"prepublishOnly": "pnpm clean && pnpm turbo build"
|
|
},
|
|
"dependencies": {
|
|
"@dnd-kit/core": "6.0.8",
|
|
"@payloadcms/graphql": "workspace:*",
|
|
"@payloadcms/translations": "workspace:*",
|
|
"@payloadcms/ui": "workspace:*",
|
|
"busboy": "^1.6.0",
|
|
"file-type": "17.1.6",
|
|
"graphql-http": "^1.22.0",
|
|
"graphql-playground-html": "1.6.30",
|
|
"http-status": "1.6.2",
|
|
"path-to-regexp": "^6.2.1",
|
|
"qs": "6.11.2",
|
|
"react-diff-viewer-continued": "3.2.6",
|
|
"sass": "1.77.4",
|
|
"sonner": "^1.5.0",
|
|
"ws": "^8.16.0"
|
|
},
|
|
"devDependencies": {
|
|
"@next/eslint-plugin-next": "^14.1.0",
|
|
"@payloadcms/eslint-config": "workspace:*",
|
|
"@types/busboy": "^1.5.3",
|
|
"@types/react": "npm:types-react@19.0.0-beta.2",
|
|
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
|
"@types/ws": "^8.5.10",
|
|
"css-loader": "^6.10.0",
|
|
"css-minimizer-webpack-plugin": "^6.0.0",
|
|
"mini-css-extract-plugin": "1.6.2",
|
|
"payload": "workspace:*",
|
|
"postcss-loader": "^8.1.1",
|
|
"postcss-preset-env": "^9.5.14",
|
|
"sass-loader": "14.2.1",
|
|
"swc-loader": "^0.2.6",
|
|
"swc-plugin-transform-remove-imports": "^1.12.1",
|
|
"terser-webpack-plugin": "^5.3.10",
|
|
"webpack": "^5.78.0",
|
|
"webpack-cli": "^5.1.4"
|
|
},
|
|
"peerDependencies": {
|
|
"graphql": "^16.8.1",
|
|
"next": "^15.0.0-rc.0",
|
|
"payload": "workspace:*"
|
|
},
|
|
"engines": {
|
|
"node": "^18.20.2 || >=20.9.0"
|
|
},
|
|
"publishConfig": {
|
|
"exports": {
|
|
"./css": {
|
|
"import": "./dist/prod/styles.css",
|
|
"require": "./dist/prod/styles.css",
|
|
"default": "./dist/prod/styles.css"
|
|
},
|
|
"./withPayload": {
|
|
"import": "./dist/withPayload.js",
|
|
"require": "./dist/cjs/withPayload.cjs"
|
|
},
|
|
"./*": {
|
|
"import": "./dist/exports/*.js",
|
|
"require": "./dist/exports/*.js",
|
|
"types": "./dist/exports/*.d.ts"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"registry": "https://registry.npmjs.org/",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"overrides": {
|
|
"@types/react": "npm:types-react@19.0.0-beta.2",
|
|
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
|
}
|
|
}
|