@payloadcms/next 4.0.0-internal.41055b1 → 4.0.0-internal.435b2d6
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/layout.d.ts.map +1 -1
- package/dist/adapters/metadata.d.ts.map +1 -1
- package/dist/adapters/router.d.ts.map +1 -1
- package/dist/adapters/router.js +2 -1
- package/dist/adapters/router.js.map +1 -1
- package/dist/adapters/viewport.d.ts +4 -0
- package/dist/adapters/viewport.d.ts.map +1 -0
- package/dist/adapters/viewport.js +14 -0
- package/dist/adapters/viewport.js.map +1 -0
- package/dist/adapters/views.d.ts.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/exports/css.d.ts.map +1 -1
- package/dist/exports/layouts.d.ts +1 -0
- package/dist/exports/layouts.d.ts.map +1 -1
- package/dist/exports/layouts.js +1 -0
- package/dist/exports/layouts.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/prod/styles.css +1 -1
- package/dist/routes/graphql/handler.d.ts.map +1 -1
- package/dist/routes/graphql/playground.d.ts.map +1 -1
- package/dist/routes/rest/index.d.ts +8 -26
- package/dist/routes/rest/index.d.ts.map +1 -1
- package/dist/utilities/getNextRequestI18n.d.ts.map +1 -1
- package/dist/withPayload/withPayload.d.ts +13 -2
- package/dist/withPayload/withPayload.d.ts.map +1 -1
- package/dist/withPayload/withPayload.utils.d.ts +34 -12
- package/dist/withPayload/withPayload.utils.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/routes/graphql/handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqC,eAAe,EAAE,MAAM,SAAS,CAAA;AAqEjF,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/routes/graphql/handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqC,eAAe,EAAE,MAAM,SAAS,CAAA;AAqEjF,eAAO,MAAM,UAAU,WAAkB,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,iBAyBlF,CAAA;AAED,eAAO,MAAM,IAAI,WACN,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,eAAqB,OAAO,sBA6D9E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../../src/routes/graphql/playground.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAGpE,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../../src/routes/graphql/playground.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAGpE,eAAO,MAAM,GAAG,WAAY,OAAO,CAAC,eAAe,CAAC,eAAqB,OAAO,sBAiC/E,CAAA"}
|
|
@@ -1,32 +1,14 @@
|
|
|
1
1
|
import { type SanitizedConfig } from 'payload';
|
|
2
|
-
|
|
3
|
-
params: Promise<{
|
|
4
|
-
slug?: string[];
|
|
5
|
-
}>;
|
|
6
|
-
}) => Promise<Response>;
|
|
7
|
-
export declare const GET: (config: Promise<SanitizedConfig> | SanitizedConfig) => (request: Request, args: {
|
|
8
|
-
params: Promise<{
|
|
9
|
-
slug?: string[];
|
|
10
|
-
}>;
|
|
11
|
-
}) => Promise<Response>;
|
|
12
|
-
export declare const POST: (config: Promise<SanitizedConfig> | SanitizedConfig) => (request: Request, args: {
|
|
13
|
-
params: Promise<{
|
|
14
|
-
slug?: string[];
|
|
15
|
-
}>;
|
|
16
|
-
}) => Promise<Response>;
|
|
17
|
-
export declare const DELETE: (config: Promise<SanitizedConfig> | SanitizedConfig) => (request: Request, args: {
|
|
18
|
-
params: Promise<{
|
|
19
|
-
slug?: string[];
|
|
20
|
-
}>;
|
|
21
|
-
}) => Promise<Response>;
|
|
22
|
-
export declare const PATCH: (config: Promise<SanitizedConfig> | SanitizedConfig) => (request: Request, args: {
|
|
23
|
-
params: Promise<{
|
|
24
|
-
slug?: string[];
|
|
25
|
-
}>;
|
|
26
|
-
}) => Promise<Response>;
|
|
27
|
-
export declare const PUT: (config: Promise<SanitizedConfig> | SanitizedConfig) => (request: Request, args: {
|
|
2
|
+
declare const handlerBuilder: (config: Promise<SanitizedConfig> | SanitizedConfig) => (request: Request, args: {
|
|
28
3
|
params: Promise<{
|
|
29
4
|
slug?: string[];
|
|
30
5
|
}>;
|
|
31
6
|
}) => Promise<Response>;
|
|
7
|
+
export declare const OPTIONS: typeof handlerBuilder;
|
|
8
|
+
export declare const GET: typeof handlerBuilder;
|
|
9
|
+
export declare const POST: typeof handlerBuilder;
|
|
10
|
+
export declare const DELETE: typeof handlerBuilder;
|
|
11
|
+
export declare const PATCH: typeof handlerBuilder;
|
|
12
|
+
export declare const PUT: typeof handlerBuilder;
|
|
13
|
+
export {};
|
|
32
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/rest/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/rest/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAO/D,QAAA,MAAM,cAAc,WACT,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,eAExC,OAAO,QACV;IACJ,MAAM,EAAE,OAAO,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAA;CACrC,KACA,OAAO,CAAC,QAAQ,CAiClB,CAAA;AAEH,eAAO,MAAM,OAAO,uBAAiB,CAAA;AAErC,eAAO,MAAM,GAAG,uBAAiB,CAAA;AAEjC,eAAO,MAAM,IAAI,uBAAiB,CAAA;AAElC,eAAO,MAAM,MAAM,uBAAiB,CAAA;AAEpC,eAAO,MAAM,KAAK,uBAAiB,CAAA;AAEnC,eAAO,MAAM,GAAG,uBAAiB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNextRequestI18n.d.ts","sourceRoot":"","sources":["../../src/utilities/getNextRequestI18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAIpF,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAElE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAE7B,uBAAuB,GAAG,EAAE,EAC5B,gCAAgC,SAAS,MAAM,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"getNextRequestI18n.d.ts","sourceRoot":"","sources":["../../src/utilities/getNextRequestI18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAIpF,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAElE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAE7B,uBAAuB,GAAG,EAAE,EAC5B,gCAAgC,SAAS,MAAM,GAAG,KAAK,eAGtD;IACD,MAAM,EAAE,eAAe,CAAA;CACxB,KAAG,OAAO,CACT,CAAC,gCAAgC,CAAC,SAAS,CAAC,KAAK,CAAC,GAC9C,UAAU,GACV,uBAAuB,SAAS,MAAM,GACpC,UAAU,CAAC,uBAAuB,EAAE,gCAAgC,CAAC,GACrE,UAAU,CAAC,wBAAwB,EAAE,gCAAgC,CAAC,CAO7E,CAAA"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* These files must remain as plain JavaScript (.js) rather than TypeScript (.ts) because they are
|
|
3
|
+
* imported directly in next.config.mjs files. Since next.config files run before the build process,
|
|
4
|
+
* TypeScript compilation is not available. This ensures compatibility with all templates and
|
|
5
|
+
* user projects regardless of their TypeScript setup.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @param {import('next').NextConfig} nextConfig
|
|
9
|
+
* @param {Object} [options] - Optional configuration options
|
|
10
|
+
* @param {boolean} [options.devBundleServerPackages] - Whether to bundle server packages in development mode. @default false
|
|
11
|
+
* */
|
|
12
|
+
export declare const withPayload: (nextConfig?: import('next').NextConfig, options?: {
|
|
2
13
|
devBundleServerPackages?: boolean;
|
|
3
|
-
})
|
|
14
|
+
}) => import("next").NextConfig;
|
|
4
15
|
export default withPayload;
|
|
5
16
|
//# sourceMappingURL=withPayload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withPayload.d.ts","sourceRoot":"","sources":["../../src/withPayload/withPayload.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"withPayload.d.ts","sourceRoot":"","sources":["../../src/withPayload/withPayload.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH;;;;KAIK;AACL,eAAO,MAAM,WAAW,gBAJb,OAAO,MAAM,EAAE,UAAU,YAEjC;IAA0B,uBAAuB,AAAjD,CAA4G,EAApG,OAAO,CAA6F;CAAA,8BA6P9G,CAAA;eAEc,WAAW"}
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
2
|
+
* This was taken and modified from https://github.com/getsentry/sentry-javascript/blob/15256034ee8150a5b7dcb97d23eca1a5486f0cae/packages/nextjs/src/config/util.ts
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2012 Functional Software, Inc. dba Sentry
|
|
7
|
+
*
|
|
8
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
9
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
10
|
+
* the Software without restriction, including without limitation the rights to
|
|
11
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
12
|
+
* of the Software, and to permit persons to whom the Software is furnished to do
|
|
13
|
+
* so, subject to the following conditions:
|
|
14
|
+
*
|
|
15
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
* copies or substantial portions of the Software.
|
|
17
|
+
*
|
|
18
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
* SOFTWARE.
|
|
14
25
|
*/
|
|
15
26
|
export type SemVer = {
|
|
16
27
|
buildmetadata?: string;
|
|
@@ -23,4 +34,15 @@ export type SemVer = {
|
|
|
23
34
|
patch?: number;
|
|
24
35
|
prerelease?: string;
|
|
25
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* Parses input into a SemVer interface
|
|
39
|
+
* @param {string} input - string representation of a semver version
|
|
40
|
+
* @returns {SemVer}
|
|
41
|
+
*/
|
|
42
|
+
export declare function parseSemver(input: string): SemVer;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the version of Next.js installed in the project, or undefined if it cannot be determined.
|
|
45
|
+
* @returns {SemVer | undefined}
|
|
46
|
+
*/
|
|
47
|
+
export declare function getNextjsVersion(): SemVer | undefined;
|
|
26
48
|
//# sourceMappingURL=withPayload.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withPayload.utils.d.ts","sourceRoot":"","sources":["../../src/withPayload/withPayload.utils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"withPayload.utils.d.ts","sourceRoot":"","sources":["../../src/withPayload/withPayload.utils.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAeA,YAAkB,MAAM,GACxB;IAAoB,aAAa,AAAjC,CACA,EADW,MAAM,CACjB;;;;IAAoB,aAAa,AAAjC,CACA,EADW,MAAM,CACjB;IAAoB,KAAK,AAAzB,CACA,EADW,MAAM,CACjB;IAAoB,KAAK,AAAzB,CACA,EADW,MAAM,CACjB;IAAoB,KAAK,AAAzB,CACA,EADW,MAAM,CACjB;IAAoB,UAAU,AAA9B,CAA+B,EAApB,MAAM,CAAc;CAAA,CAAA;AAOlC;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAHtB,MAGsB,GAFpB,MAAM,CAqBlB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAFnB,MAAM,GAAG,SAAS,CAyB9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/next",
|
|
3
|
-
"version": "4.0.0-internal.
|
|
3
|
+
"version": "4.0.0-internal.435b2d6",
|
|
4
4
|
"homepage": "https://payloadcms.com",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"qs-esm": "8.0.1",
|
|
86
86
|
"sass": "1.77.4",
|
|
87
87
|
"uuid": "14.0.0",
|
|
88
|
-
"@payloadcms/graphql": "4.0.0-internal.
|
|
89
|
-
"@payloadcms/translations": "4.0.0-internal.
|
|
90
|
-
"@payloadcms/ui": "4.0.0-internal.
|
|
88
|
+
"@payloadcms/graphql": "4.0.0-internal.435b2d6",
|
|
89
|
+
"@payloadcms/translations": "4.0.0-internal.435b2d6",
|
|
90
|
+
"@payloadcms/ui": "4.0.0-internal.435b2d6"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@babel/cli": "7.27.2",
|
|
@@ -104,12 +104,12 @@
|
|
|
104
104
|
"esbuild-sass-plugin": "3.3.1",
|
|
105
105
|
"swc-plugin-transform-remove-imports": "8.3.0",
|
|
106
106
|
"@payloadcms/eslint-config": "3.28.0",
|
|
107
|
-
"payload": "4.0.0-internal.
|
|
107
|
+
"payload": "4.0.0-internal.435b2d6"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
110
|
"graphql": "^16.8.1",
|
|
111
111
|
"next": ">=16.2.6 <17.0.0",
|
|
112
|
-
"payload": "4.0.0-internal.
|
|
112
|
+
"payload": "4.0.0-internal.435b2d6"
|
|
113
113
|
},
|
|
114
114
|
"engines": {
|
|
115
115
|
"node": ">=24.15.0"
|