@uniformdev/next-app-router 20.7.1-alpha.118
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/LICENSE.txt +2 -0
- package/dist/UniformComposition-Bekn8k24.d.mts +74 -0
- package/dist/UniformComposition-CdXfLiaB.d.ts +74 -0
- package/dist/UniformText-ChMwHBw4.d.mts +10 -0
- package/dist/UniformText-ChMwHBw4.d.ts +10 -0
- package/dist/cache.d.mts +9 -0
- package/dist/cache.d.ts +9 -0
- package/dist/cache.js +1915 -0
- package/dist/cache.mjs +1903 -0
- package/dist/client-BCGVjYM-.d.mts +779 -0
- package/dist/client-BCGVjYM-.d.ts +779 -0
- package/dist/compat.d.mts +36 -0
- package/dist/compat.d.ts +36 -0
- package/dist/compat.js +120 -0
- package/dist/compat.mjs +89 -0
- package/dist/component.d.mts +61 -0
- package/dist/component.d.ts +61 -0
- package/dist/component.js +1397 -0
- package/dist/component.mjs +1384 -0
- package/dist/config.d.mts +13 -0
- package/dist/config.d.ts +13 -0
- package/dist/config.js +80 -0
- package/dist/config.mjs +55 -0
- package/dist/handler.d.mts +29 -0
- package/dist/handler.d.ts +29 -0
- package/dist/handler.js +2664 -0
- package/dist/handler.mjs +2648 -0
- package/dist/index.d.mts +264 -0
- package/dist/index.d.ts +264 -0
- package/dist/index.esm.js +3935 -0
- package/dist/index.js +3953 -0
- package/dist/index.mjs +3935 -0
- package/dist/middleware.d.mts +70 -0
- package/dist/middleware.d.ts +70 -0
- package/dist/middleware.js +5873 -0
- package/dist/middleware.mjs +5867 -0
- package/dist/resolveRouteFromCode-B2rqnHgJ.d.ts +26 -0
- package/dist/resolveRouteFromCode-CA63-EPp.d.mts +26 -0
- package/package.json +112 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RouteGetResponseEdgehancedComposition } from '@uniformdev/canvas';
|
|
2
|
+
import { PageState } from '@uniformdev/next-app-router-shared';
|
|
3
|
+
import { D as DataClient } from './client-BCGVjYM-.js';
|
|
4
|
+
|
|
5
|
+
type UniformPageParameters = {
|
|
6
|
+
params: Promise<{
|
|
7
|
+
code: string;
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
10
|
+
type AwaitedUniformPageParameters = {
|
|
11
|
+
params: Awaited<UniformPageParameters['params']>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
type ResolvedRouteResult = {
|
|
15
|
+
pageState: PageState;
|
|
16
|
+
route: RouteGetResponseEdgehancedComposition | undefined;
|
|
17
|
+
code: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
type ResolveRouteFunction = (options: ResolveRouteFromCodeOptions) => Promise<ResolvedRouteResult>;
|
|
21
|
+
type ResolveRouteFromCodeOptions = UniformPageParameters & {
|
|
22
|
+
dataClient?: DataClient;
|
|
23
|
+
};
|
|
24
|
+
declare const resolveRouteFromCode: ResolveRouteFunction;
|
|
25
|
+
|
|
26
|
+
export { type AwaitedUniformPageParameters as A, type ResolveRouteFunction as R, type UniformPageParameters as U, type ResolvedRouteResult as a, resolveRouteFromCode as r };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RouteGetResponseEdgehancedComposition } from '@uniformdev/canvas';
|
|
2
|
+
import { PageState } from '@uniformdev/next-app-router-shared';
|
|
3
|
+
import { D as DataClient } from './client-BCGVjYM-.mjs';
|
|
4
|
+
|
|
5
|
+
type UniformPageParameters = {
|
|
6
|
+
params: Promise<{
|
|
7
|
+
code: string;
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
10
|
+
type AwaitedUniformPageParameters = {
|
|
11
|
+
params: Awaited<UniformPageParameters['params']>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
type ResolvedRouteResult = {
|
|
15
|
+
pageState: PageState;
|
|
16
|
+
route: RouteGetResponseEdgehancedComposition | undefined;
|
|
17
|
+
code: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
type ResolveRouteFunction = (options: ResolveRouteFromCodeOptions) => Promise<ResolvedRouteResult>;
|
|
21
|
+
type ResolveRouteFromCodeOptions = UniformPageParameters & {
|
|
22
|
+
dataClient?: DataClient;
|
|
23
|
+
};
|
|
24
|
+
declare const resolveRouteFromCode: ResolveRouteFunction;
|
|
25
|
+
|
|
26
|
+
export { type AwaitedUniformPageParameters as A, type ResolveRouteFunction as R, type UniformPageParameters as U, type ResolvedRouteResult as a, resolveRouteFromCode as r };
|
package/package.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@uniformdev/next-app-router",
|
|
3
|
+
"version": "20.7.1-alpha.118+5483f1e4cc",
|
|
4
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "tsup",
|
|
7
|
+
"dev": "tsup --watch",
|
|
8
|
+
"lint": "eslint \"src/**/*.{ts,tsx}\" --fix",
|
|
9
|
+
"test": "jest --maxWorkers=1 --passWithNoTests"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"require": "./dist/index.js",
|
|
18
|
+
"import": "./dist/index.esm.js"
|
|
19
|
+
},
|
|
20
|
+
"./handler": {
|
|
21
|
+
"require": "./dist/handler.js",
|
|
22
|
+
"import": "./dist/handler.mjs",
|
|
23
|
+
"types": "./dist/handler.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./config": {
|
|
26
|
+
"types": "./dist/config.d.ts",
|
|
27
|
+
"require": "./dist/config.js",
|
|
28
|
+
"import": "./dist/config.mjs"
|
|
29
|
+
},
|
|
30
|
+
"./middleware": {
|
|
31
|
+
"types": "./dist/middleware.d.ts",
|
|
32
|
+
"require": "./dist/middleware.js",
|
|
33
|
+
"import": "./dist/middleware.mjs"
|
|
34
|
+
},
|
|
35
|
+
"./component": {
|
|
36
|
+
"types": "./dist/component.d.ts",
|
|
37
|
+
"require": "./dist/component.js",
|
|
38
|
+
"import": "./dist/component.mjs"
|
|
39
|
+
},
|
|
40
|
+
"./compat": {
|
|
41
|
+
"types": "./dist/compat.d.ts",
|
|
42
|
+
"require": "./dist/compat.js",
|
|
43
|
+
"import": "./dist/compat.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./cache": {
|
|
46
|
+
"types": "./dist/cache.d.ts",
|
|
47
|
+
"require": "./dist/cache.js",
|
|
48
|
+
"import": "./dist/cache.mjs"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"typesVersions": {
|
|
52
|
+
"*": {
|
|
53
|
+
".": [
|
|
54
|
+
"./dist/index.d.ts"
|
|
55
|
+
],
|
|
56
|
+
"handler": [
|
|
57
|
+
"./dist/handler.d.ts"
|
|
58
|
+
],
|
|
59
|
+
"config": [
|
|
60
|
+
"./dist/config.d.ts"
|
|
61
|
+
],
|
|
62
|
+
"middleware": [
|
|
63
|
+
"./dist/middleware.d.ts"
|
|
64
|
+
],
|
|
65
|
+
"component": [
|
|
66
|
+
"./dist/component.d.ts"
|
|
67
|
+
],
|
|
68
|
+
"compat": [
|
|
69
|
+
"./dist/compat.d.ts"
|
|
70
|
+
],
|
|
71
|
+
"cache": [
|
|
72
|
+
"./dist/cache.d.ts"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"files": [
|
|
77
|
+
"/dist"
|
|
78
|
+
],
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@types/node": "20.19.25",
|
|
81
|
+
"@types/react": "19.0.8",
|
|
82
|
+
"@types/react-dom": "19.0.3",
|
|
83
|
+
"next": "16.0.7",
|
|
84
|
+
"react": "19.2.0",
|
|
85
|
+
"react-dom": "19.2.0",
|
|
86
|
+
"typescript": "5.9.2"
|
|
87
|
+
},
|
|
88
|
+
"dependencies": {
|
|
89
|
+
"@uniformdev/canvas-react": "20.7.1-alpha.118+5483f1e4cc",
|
|
90
|
+
"@uniformdev/next-app-router-client": "20.7.1-alpha.118+5483f1e4cc",
|
|
91
|
+
"@uniformdev/next-app-router-shared": "20.7.1-alpha.118+5483f1e4cc",
|
|
92
|
+
"@uniformdev/redirect": "20.7.1-alpha.118+5483f1e4cc",
|
|
93
|
+
"@uniformdev/richtext": "20.7.1-alpha.118+5483f1e4cc",
|
|
94
|
+
"@uniformdev/webhooks": "20.7.1-alpha.118+5483f1e4cc",
|
|
95
|
+
"@vercel/functions": "^2.2.2",
|
|
96
|
+
"encoding": "^0.1.13",
|
|
97
|
+
"server-only": "^0.0.1",
|
|
98
|
+
"svix": "^1.5.0"
|
|
99
|
+
},
|
|
100
|
+
"engines": {
|
|
101
|
+
"node": ">=20.9.0"
|
|
102
|
+
},
|
|
103
|
+
"peerDependencies": {
|
|
104
|
+
"next": ">=16.0.7",
|
|
105
|
+
"react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",
|
|
106
|
+
"react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0"
|
|
107
|
+
},
|
|
108
|
+
"publishConfig": {
|
|
109
|
+
"access": "public"
|
|
110
|
+
},
|
|
111
|
+
"gitHead": "5483f1e4ccb621d21848f58878cda17f14a86dea"
|
|
112
|
+
}
|