@uniformdev/canvas-next-rsc-shared 19.196.0 → 19.196.1-alpha.2
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/index.d.mts +16 -11
- package/dist/index.d.ts +16 -11
- package/dist/index.esm.js +4 -2
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +14 -13
package/dist/index.d.mts
CHANGED
|
@@ -99,27 +99,30 @@ type UniformServerConfig = {
|
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
+
type PageParams = {
|
|
103
|
+
path?: string | string[];
|
|
104
|
+
};
|
|
105
|
+
type PageSearchParams = {
|
|
106
|
+
[key: string]: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
type PlaygroundSearchParams = {
|
|
109
|
+
[key: string]: string | undefined;
|
|
110
|
+
};
|
|
102
111
|
type PageParameters = {
|
|
103
112
|
/**
|
|
104
113
|
* The params object from Next.js router. Used to resolve a composition.
|
|
105
114
|
*/
|
|
106
|
-
params:
|
|
107
|
-
path?: string | string[];
|
|
108
|
-
};
|
|
115
|
+
params: Promise<PageParams> | PageParams;
|
|
109
116
|
/**
|
|
110
117
|
* The searchParams object from Next.js router. Used for signal evaluation.
|
|
111
118
|
*/
|
|
112
|
-
searchParams?:
|
|
113
|
-
[key: string]: string | undefined;
|
|
114
|
-
};
|
|
119
|
+
searchParams?: Promise<PageSearchParams> | PageSearchParams;
|
|
115
120
|
};
|
|
116
121
|
type PlaygroundParameters = {
|
|
117
122
|
/**
|
|
118
123
|
* Used to retrieve the composition ID of the pattern.
|
|
119
124
|
*/
|
|
120
|
-
searchParams:
|
|
121
|
-
[key: string]: string | undefined;
|
|
122
|
-
};
|
|
125
|
+
searchParams: Promise<PlaygroundSearchParams>;
|
|
123
126
|
};
|
|
124
127
|
type SlotDefinition = {
|
|
125
128
|
name: string;
|
|
@@ -221,8 +224,10 @@ type ResolvePathResult = {
|
|
|
221
224
|
type: 'path';
|
|
222
225
|
value: string;
|
|
223
226
|
};
|
|
224
|
-
declare const resolvePath: ({ params }:
|
|
227
|
+
declare const resolvePath: ({ params }: {
|
|
228
|
+
params: Awaited<PageParameters["params"]>;
|
|
229
|
+
}) => ResolvePathResult;
|
|
225
230
|
|
|
226
231
|
declare function getBaseUrl(): string;
|
|
227
232
|
|
|
228
|
-
export { type AppDirectoryContext, AppDirectoryContextInstance, type AppDirectoryContextState, type AppDirectoryServerContext, type CacheMode, type ComponentProps, type CompositionContext, type PageParameters, type PersonalizeProps, type PersonalizeWithContextComponentProps, type PlaygroundParameters, type ResolvePathResult, type SlotDefinition, type TestProps, type UniformServerConfig, createUniformContext, getBaseUrl, resolvePath, runPersonalization, runTest };
|
|
233
|
+
export { type AppDirectoryContext, AppDirectoryContextInstance, type AppDirectoryContextState, type AppDirectoryServerContext, type CacheMode, type ComponentProps, type CompositionContext, type PageParameters, type PageParams, type PageSearchParams, type PersonalizeProps, type PersonalizeWithContextComponentProps, type PlaygroundParameters, type PlaygroundSearchParams, type ResolvePathResult, type SlotDefinition, type TestProps, type UniformServerConfig, createUniformContext, getBaseUrl, resolvePath, runPersonalization, runTest };
|
package/dist/index.d.ts
CHANGED
|
@@ -99,27 +99,30 @@ type UniformServerConfig = {
|
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
+
type PageParams = {
|
|
103
|
+
path?: string | string[];
|
|
104
|
+
};
|
|
105
|
+
type PageSearchParams = {
|
|
106
|
+
[key: string]: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
type PlaygroundSearchParams = {
|
|
109
|
+
[key: string]: string | undefined;
|
|
110
|
+
};
|
|
102
111
|
type PageParameters = {
|
|
103
112
|
/**
|
|
104
113
|
* The params object from Next.js router. Used to resolve a composition.
|
|
105
114
|
*/
|
|
106
|
-
params:
|
|
107
|
-
path?: string | string[];
|
|
108
|
-
};
|
|
115
|
+
params: Promise<PageParams> | PageParams;
|
|
109
116
|
/**
|
|
110
117
|
* The searchParams object from Next.js router. Used for signal evaluation.
|
|
111
118
|
*/
|
|
112
|
-
searchParams?:
|
|
113
|
-
[key: string]: string | undefined;
|
|
114
|
-
};
|
|
119
|
+
searchParams?: Promise<PageSearchParams> | PageSearchParams;
|
|
115
120
|
};
|
|
116
121
|
type PlaygroundParameters = {
|
|
117
122
|
/**
|
|
118
123
|
* Used to retrieve the composition ID of the pattern.
|
|
119
124
|
*/
|
|
120
|
-
searchParams:
|
|
121
|
-
[key: string]: string | undefined;
|
|
122
|
-
};
|
|
125
|
+
searchParams: Promise<PlaygroundSearchParams>;
|
|
123
126
|
};
|
|
124
127
|
type SlotDefinition = {
|
|
125
128
|
name: string;
|
|
@@ -221,8 +224,10 @@ type ResolvePathResult = {
|
|
|
221
224
|
type: 'path';
|
|
222
225
|
value: string;
|
|
223
226
|
};
|
|
224
|
-
declare const resolvePath: ({ params }:
|
|
227
|
+
declare const resolvePath: ({ params }: {
|
|
228
|
+
params: Awaited<PageParameters["params"]>;
|
|
229
|
+
}) => ResolvePathResult;
|
|
225
230
|
|
|
226
231
|
declare function getBaseUrl(): string;
|
|
227
232
|
|
|
228
|
-
export { type AppDirectoryContext, AppDirectoryContextInstance, type AppDirectoryContextState, type AppDirectoryServerContext, type CacheMode, type ComponentProps, type CompositionContext, type PageParameters, type PersonalizeProps, type PersonalizeWithContextComponentProps, type PlaygroundParameters, type ResolvePathResult, type SlotDefinition, type TestProps, type UniformServerConfig, createUniformContext, getBaseUrl, resolvePath, runPersonalization, runTest };
|
|
233
|
+
export { type AppDirectoryContext, AppDirectoryContextInstance, type AppDirectoryContextState, type AppDirectoryServerContext, type CacheMode, type ComponentProps, type CompositionContext, type PageParameters, type PageParams, type PageSearchParams, type PersonalizeProps, type PersonalizeWithContextComponentProps, type PlaygroundParameters, type PlaygroundSearchParams, type ResolvePathResult, type SlotDefinition, type TestProps, type UniformServerConfig, createUniformContext, getBaseUrl, resolvePath, runPersonalization, runTest };
|
package/dist/index.esm.js
CHANGED
|
@@ -118,8 +118,10 @@ var AppDirectoryContextInstance = class {
|
|
|
118
118
|
internal_processPersonalizationEvent(event) {
|
|
119
119
|
return __privateGet(this, _context).internal_processPersonalizationEvent(event);
|
|
120
120
|
}
|
|
121
|
-
update(update) {
|
|
122
|
-
const { params, searchParams } = update;
|
|
121
|
+
async update(update) {
|
|
122
|
+
const { params: providedParams, searchParams: providedSearchParams } = update;
|
|
123
|
+
const params = await (providedParams || Promise.resolve(void 0));
|
|
124
|
+
const searchParams = await (providedSearchParams || Promise.resolve(void 0));
|
|
123
125
|
const DEFAULT_URL = `${getBaseUrl()}/`;
|
|
124
126
|
let url = void 0;
|
|
125
127
|
if (params) {
|
package/dist/index.js
CHANGED
|
@@ -145,8 +145,10 @@ var AppDirectoryContextInstance = class {
|
|
|
145
145
|
internal_processPersonalizationEvent(event) {
|
|
146
146
|
return __privateGet(this, _context).internal_processPersonalizationEvent(event);
|
|
147
147
|
}
|
|
148
|
-
update(update) {
|
|
149
|
-
const { params, searchParams } = update;
|
|
148
|
+
async update(update) {
|
|
149
|
+
const { params: providedParams, searchParams: providedSearchParams } = update;
|
|
150
|
+
const params = await (providedParams || Promise.resolve(void 0));
|
|
151
|
+
const searchParams = await (providedSearchParams || Promise.resolve(void 0));
|
|
150
152
|
const DEFAULT_URL = `${getBaseUrl()}/`;
|
|
151
153
|
let url = void 0;
|
|
152
154
|
if (params) {
|
package/dist/index.mjs
CHANGED
|
@@ -118,8 +118,10 @@ var AppDirectoryContextInstance = class {
|
|
|
118
118
|
internal_processPersonalizationEvent(event) {
|
|
119
119
|
return __privateGet(this, _context).internal_processPersonalizationEvent(event);
|
|
120
120
|
}
|
|
121
|
-
update(update) {
|
|
122
|
-
const { params, searchParams } = update;
|
|
121
|
+
async update(update) {
|
|
122
|
+
const { params: providedParams, searchParams: providedSearchParams } = update;
|
|
123
|
+
const params = await (providedParams || Promise.resolve(void 0));
|
|
124
|
+
const searchParams = await (providedSearchParams || Promise.resolve(void 0));
|
|
123
125
|
const DEFAULT_URL = `${getBaseUrl()}/`;
|
|
124
126
|
let url = void 0;
|
|
125
127
|
if (params) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc-shared",
|
|
3
|
-
"version": "19.196.
|
|
3
|
+
"version": "19.196.1-alpha.2+b5b5fd8fb8",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -24,27 +24,28 @@
|
|
|
24
24
|
"/dist"
|
|
25
25
|
],
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/node": "20.
|
|
28
|
-
"@types/react": "18.3.
|
|
27
|
+
"@types/node": "20.16.14",
|
|
28
|
+
"@types/react": "18.3.11",
|
|
29
29
|
"eslint": "9.9.0",
|
|
30
|
-
"next": "
|
|
31
|
-
"react": "
|
|
32
|
-
"react-dom": "
|
|
30
|
+
"next": "15.0.0",
|
|
31
|
+
"react": "19.0.0-rc-65a56d0e-20241020",
|
|
32
|
+
"react-dom": "19.0.0-rc-65a56d0e-20241020",
|
|
33
|
+
"typescript": "5.6.3"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@uniformdev/canvas": "19.196.
|
|
36
|
-
"@uniformdev/context": "19.196.
|
|
36
|
+
"@uniformdev/canvas": "19.196.1-alpha.2+b5b5fd8fb8",
|
|
37
|
+
"@uniformdev/context": "19.196.1-alpha.2+b5b5fd8fb8"
|
|
37
38
|
},
|
|
38
39
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
40
|
+
"node": ">=18.18.0"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
|
-
"next": ">=
|
|
43
|
-
"react": "
|
|
44
|
-
"react-dom": "
|
|
43
|
+
"next": ">=15.0.0",
|
|
44
|
+
"react": "^18.2.0 || 19.0.0-rc-65a56d0e-20241020",
|
|
45
|
+
"react-dom": "^18.2.0 || 19.0.0-rc-65a56d0e-20241020"
|
|
45
46
|
},
|
|
46
47
|
"publishConfig": {
|
|
47
48
|
"access": "public"
|
|
48
49
|
},
|
|
49
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "b5b5fd8fb8c08700c600b0761efd6723cee2413f"
|
|
50
51
|
}
|