@payloadcms/next 4.0.0-internal.cea8867 → 4.0.0-internal.d927017
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 +1 -2
- package/dist/adapters/router.js.map +1 -1
- 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/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 +26 -8
- 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 +2 -13
- package/dist/withPayload/withPayload.d.ts.map +1 -1
- package/dist/withPayload/withPayload.utils.d.ts +12 -34
- package/dist/withPayload/withPayload.utils.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -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,GAAU,QAAQ,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,iBAyBlF,CAAA;AAED,eAAO,MAAM,IAAI,GACd,QAAQ,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,MAAY,SAAS,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,GAAI,QAAQ,OAAO,CAAC,eAAe,CAAC,MAAY,SAAS,OAAO,sBAiC/E,CAAA"}
|
|
@@ -1,14 +1,32 @@
|
|
|
1
1
|
import { type SanitizedConfig } from 'payload';
|
|
2
|
-
declare const
|
|
2
|
+
export declare const OPTIONS: (config: Promise<SanitizedConfig> | SanitizedConfig) => (request: Request, args: {
|
|
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: {
|
|
3
28
|
params: Promise<{
|
|
4
29
|
slug?: string[];
|
|
5
30
|
}>;
|
|
6
31
|
}) => 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 {};
|
|
14
32
|
//# 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;AAiD/D,eAAO,MAAM,OAAO,WAzCT,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,MAEjD,SAAS,OAAO,EAChB,MAAM;IACJ,MAAM,EAAE,OAAO,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAA;CACrC,KACA,OAAO,CAAC,QAAQ,CAmCgB,CAAA;AAErC,eAAO,MAAM,GAAG,WA3CL,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,MAEjD,SAAS,OAAO,EAChB,MAAM;IACJ,MAAM,EAAE,OAAO,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAA;CACrC,KACA,OAAO,C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O,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,EACvD,aAEC;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,16 +1,5 @@
|
|
|
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?: {
|
|
1
|
+
export function withPayload(nextConfig?: import("next").NextConfig, options?: {
|
|
13
2
|
devBundleServerPackages?: boolean;
|
|
14
|
-
})
|
|
3
|
+
}): import("next").NextConfig;
|
|
15
4
|
export default withPayload;
|
|
16
5
|
//# 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":"AAiBO,yCAJI,OAAO,MAAM,EAAE,UAAU,YAEjC;IAA0B,uBAAuB,GAAzC,OAAO;CAA6F,6BA6P9G"}
|
|
@@ -1,27 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
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.
|
|
2
|
+
* Parses input into a SemVer interface
|
|
3
|
+
* @param {string} input - string representation of a semver version
|
|
4
|
+
* @returns {SemVer}
|
|
5
|
+
*/
|
|
6
|
+
export function parseSemver(input: string): SemVer;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the version of Next.js installed in the project, or undefined if it cannot be determined.
|
|
9
|
+
* @returns {SemVer | undefined}
|
|
10
|
+
*/
|
|
11
|
+
export function getNextjsVersion(): SemVer | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Represents Semantic Versioning object
|
|
25
14
|
*/
|
|
26
15
|
export type SemVer = {
|
|
27
16
|
buildmetadata?: string;
|
|
@@ -34,15 +23,4 @@ export type SemVer = {
|
|
|
34
23
|
patch?: number;
|
|
35
24
|
prerelease?: string;
|
|
36
25
|
};
|
|
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;
|
|
48
26
|
//# 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":"AAoDA;;;;GAIG;AACH,mCAHW,MAAM,GACJ,MAAM,CAqBlB;AAED;;;GAGG;AACH,oCAFa,MAAM,GAAG,SAAS,CAyB9B;;;;;oBAjEa,MAAM;;;;oBACN,MAAM;YACN,MAAM;YACN,MAAM;YACN,MAAM;iBACN,MAAM"}
|
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.d927017",
|
|
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/
|
|
89
|
-
"@payloadcms/
|
|
90
|
-
"@payloadcms/ui": "4.0.0-internal.
|
|
88
|
+
"@payloadcms/graphql": "4.0.0-internal.d927017",
|
|
89
|
+
"@payloadcms/translations": "4.0.0-internal.d927017",
|
|
90
|
+
"@payloadcms/ui": "4.0.0-internal.d927017"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@babel/cli": "7.27.2",
|
|
@@ -103,13 +103,13 @@
|
|
|
103
103
|
"esbuild": "0.27.1",
|
|
104
104
|
"esbuild-sass-plugin": "3.3.1",
|
|
105
105
|
"swc-plugin-transform-remove-imports": "8.3.0",
|
|
106
|
-
"
|
|
107
|
-
"
|
|
106
|
+
"@payloadcms/eslint-config": "3.28.0",
|
|
107
|
+
"payload": "4.0.0-internal.d927017"
|
|
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.d927017"
|
|
113
113
|
},
|
|
114
114
|
"engines": {
|
|
115
115
|
"node": ">=24.15.0"
|