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