@payloadcms/next 4.0.0-internal.d21c039 → 4.0.0-internal.d3909a9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/UnmountWhenHidden/index.d.ts +18 -0
- package/dist/adapters/UnmountWhenHidden/index.d.ts.map +1 -0
- package/dist/adapters/UnmountWhenHidden/index.js +64 -0
- package/dist/adapters/UnmountWhenHidden/index.js.map +1 -0
- package/dist/adapters/handleServerFunctions.d.ts.map +1 -1
- package/dist/adapters/handleServerFunctions.js +4 -6
- package/dist/adapters/handleServerFunctions.js.map +1 -1
- package/dist/adapters/layout.d.ts +1 -1
- package/dist/adapters/layout.d.ts.map +1 -1
- package/dist/adapters/layout.js +3 -3
- package/dist/adapters/layout.js.map +1 -1
- package/dist/adapters/metadata.js.map +1 -1
- package/dist/adapters/router.d.ts.map +1 -1
- package/dist/adapters/router.js +1 -1
- package/dist/adapters/router.js.map +1 -1
- package/dist/adapters/views.d.ts +3 -2
- package/dist/adapters/views.d.ts.map +1 -1
- package/dist/adapters/views.js +27 -17
- package/dist/adapters/views.js.map +1 -1
- package/dist/auth/login.js.map +1 -1
- package/dist/cjs/withPayload.cjs +74 -23
- package/dist/cjs/withPayload.cjs.map +3 -3
- package/dist/prod/styles.css +1 -1
- package/dist/routes/graphql/handler.js +3 -3
- package/dist/routes/graphql/handler.js.map +1 -1
- package/dist/routes/graphql/playground.d.ts.map +1 -1
- package/dist/routes/graphql/playground.js +2 -2
- package/dist/routes/graphql/playground.js.map +1 -1
- package/dist/routes/rest/og/index.d.ts.map +1 -1
- package/dist/routes/rest/og/index.js.map +1 -1
- package/dist/utilities/initAdminContext.d.ts +8 -0
- package/dist/utilities/initAdminContext.d.ts.map +1 -0
- package/dist/utilities/initAdminContext.js +35 -0
- package/dist/utilities/initAdminContext.js.map +1 -0
- package/dist/utilities/selectiveCache.d.ts +18 -0
- package/dist/utilities/selectiveCache.d.ts.map +1 -0
- package/dist/utilities/selectiveCache.js +36 -0
- package/dist/utilities/selectiveCache.js.map +1 -0
- package/dist/withPayload/instantLoader.d.ts +16 -0
- package/dist/withPayload/instantLoader.d.ts.map +1 -0
- package/dist/withPayload/instantLoader.js +27 -0
- package/dist/withPayload/instantLoader.js.map +1 -0
- package/dist/withPayload/withPayload.d.ts.map +1 -1
- package/dist/withPayload/withPayload.js +49 -24
- package/dist/withPayload/withPayload.js.map +1 -1
- package/package.json +36 -36
package/package.json
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/next",
|
|
3
|
-
"version": "4.0.0-internal.
|
|
3
|
+
"version": "4.0.0-internal.d3909a9",
|
|
4
4
|
"homepage": "https://payloadcms.com",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "https://github.com/payloadcms/payload.git",
|
|
8
|
-
"directory": "packages/next"
|
|
9
|
-
},
|
|
10
5
|
"license": "MIT",
|
|
11
6
|
"author": "Payload <dev@payloadcms.com> (https://payloadcms.com)",
|
|
12
7
|
"maintainers": [
|
|
@@ -16,10 +11,20 @@
|
|
|
16
11
|
"url": "https://payloadcms.com"
|
|
17
12
|
}
|
|
18
13
|
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/payloadcms/payload.git",
|
|
17
|
+
"directory": "packages/next"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
19
23
|
"sideEffects": [
|
|
20
24
|
"*.css"
|
|
21
25
|
],
|
|
22
|
-
"
|
|
26
|
+
"main": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.js",
|
|
23
28
|
"exports": {
|
|
24
29
|
"./css": {
|
|
25
30
|
"types": "./dist/exports/css.d.ts",
|
|
@@ -55,20 +60,14 @@
|
|
|
55
60
|
"import": "./dist/exports/views.js",
|
|
56
61
|
"types": "./dist/exports/views.d.ts",
|
|
57
62
|
"default": "./dist/exports/views.js"
|
|
63
|
+
},
|
|
64
|
+
"./withPayload/instantLoader": {
|
|
65
|
+
"import": "./dist/withPayload/instantLoader.js",
|
|
66
|
+
"default": "./dist/withPayload/instantLoader.js"
|
|
58
67
|
}
|
|
59
68
|
},
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
"files": [
|
|
63
|
-
"dist"
|
|
64
|
-
],
|
|
65
|
-
"lint-staged": {
|
|
66
|
-
"**/package.json": "sort-package-json",
|
|
67
|
-
"*.{md,mdx,yml,json}": "prettier --write",
|
|
68
|
-
"*.{js,jsx,ts,tsx}": [
|
|
69
|
-
"eslint --flag v10_config_lookup_from_file --cache --fix",
|
|
70
|
-
"prettier --write"
|
|
71
|
-
]
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"registry": "https://registry.npmjs.org/"
|
|
72
71
|
},
|
|
73
72
|
"dependencies": {
|
|
74
73
|
"@dnd-kit/core": "6.3.1",
|
|
@@ -79,14 +78,13 @@
|
|
|
79
78
|
"file-type": "22.0.1",
|
|
80
79
|
"graphql-http": "1.22.4",
|
|
81
80
|
"graphql-playground-html": "1.6.30",
|
|
82
|
-
"http-status": "2.1.0",
|
|
83
81
|
"path-to-regexp": "6.3.0",
|
|
84
82
|
"qs-esm": "8.0.1",
|
|
85
83
|
"sass": "1.77.4",
|
|
86
84
|
"uuid": "14.0.0",
|
|
87
|
-
"@payloadcms/
|
|
88
|
-
"@payloadcms/
|
|
89
|
-
"@payloadcms/
|
|
85
|
+
"@payloadcms/graphql": "4.0.0-internal.d3909a9",
|
|
86
|
+
"@payloadcms/translations": "4.0.0-internal.d3909a9",
|
|
87
|
+
"@payloadcms/ui": "4.0.0-internal.d3909a9"
|
|
90
88
|
},
|
|
91
89
|
"devDependencies": {
|
|
92
90
|
"@babel/cli": "7.27.2",
|
|
@@ -94,28 +92,32 @@
|
|
|
94
92
|
"@babel/preset-env": "7.27.2",
|
|
95
93
|
"@babel/preset-react": "7.27.1",
|
|
96
94
|
"@babel/preset-typescript": "7.27.1",
|
|
97
|
-
"@next/eslint-plugin-next": "16.
|
|
95
|
+
"@next/eslint-plugin-next": "16.4.2",
|
|
98
96
|
"@types/busboy": "1.5.4",
|
|
99
|
-
"@types/react": "19.
|
|
100
|
-
"@types/react-dom": "19.
|
|
97
|
+
"@types/react": "19.3.0",
|
|
98
|
+
"@types/react-dom": "19.3.0",
|
|
101
99
|
"babel-plugin-react-compiler": "19.1.0-rc.3",
|
|
102
100
|
"esbuild": "0.27.1",
|
|
103
101
|
"esbuild-sass-plugin": "3.3.1",
|
|
104
102
|
"swc-plugin-transform-remove-imports": "8.3.0",
|
|
105
|
-
"
|
|
106
|
-
"payload": "4.0.0-internal.d21c039"
|
|
103
|
+
"payload": "4.0.0-internal.d3909a9"
|
|
107
104
|
},
|
|
108
105
|
"peerDependencies": {
|
|
109
106
|
"graphql": "^16.8.1",
|
|
110
|
-
"next": ">=16.
|
|
111
|
-
"payload": "4.0.0-internal.
|
|
107
|
+
"next": ">=16.4.0 <17.0.0",
|
|
108
|
+
"payload": "4.0.0-internal.d3909a9"
|
|
109
|
+
},
|
|
110
|
+
"lint-staged": {
|
|
111
|
+
"*.{cjs,css,cts,graphql,html,json,jsonc,md,mdx,mjs,mts,scss,toml,yaml,yml}": "oxfmt --no-error-on-unmatched-pattern",
|
|
112
|
+
".swcrc": "oxfmt --no-error-on-unmatched-pattern",
|
|
113
|
+
"*.{js,jsx,ts,tsx}": [
|
|
114
|
+
"oxlint -c ../../oxlint.config.ts --fix --no-error-on-unmatched-pattern",
|
|
115
|
+
"oxfmt --no-error-on-unmatched-pattern"
|
|
116
|
+
]
|
|
112
117
|
},
|
|
113
118
|
"engines": {
|
|
114
119
|
"node": ">=24.15.0"
|
|
115
120
|
},
|
|
116
|
-
"publishConfig": {
|
|
117
|
-
"registry": "https://registry.npmjs.org/"
|
|
118
|
-
},
|
|
119
121
|
"scripts": {
|
|
120
122
|
"build": "pnpm build:reactcompiler",
|
|
121
123
|
"build:babel": "rm -rf dist_optimized && babel dist --out-dir dist_optimized --source-maps --extensions .ts,.js,.tsx,.jsx,.cjs,.mjs && rm -rf dist && mv dist_optimized dist",
|
|
@@ -130,8 +132,6 @@
|
|
|
130
132
|
"build:without_reactcompiler": "rm -rf dist && rm -rf tsconfig.tsbuildinfo && pnpm copyfiles && pnpm build:types && pnpm build:swc && pnpm build:cjs && pnpm build:esbuild",
|
|
131
133
|
"clean": "rimraf -g {dist,*.tsbuildinfo,esbuild}",
|
|
132
134
|
"copyfiles": "copyfiles -u 1 -e \"**/*.spec.*\" \"src/**/*.{html,css,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
|
|
133
|
-
"copyfiles:debug": "copyfiles -u 1 -e \"**/*.spec.*\" \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/"
|
|
134
|
-
"lint": "eslint .",
|
|
135
|
-
"lint:fix": "eslint . --fix"
|
|
135
|
+
"copyfiles:debug": "copyfiles -u 1 -e \"**/*.spec.*\" \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/"
|
|
136
136
|
}
|
|
137
137
|
}
|