@uniformdev/next-app-router-shared 20.50.1-alpha.1 → 20.50.1-alpha.4
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 +1 -6
- package/dist/index.d.ts +1 -6
- package/dist/index.esm.js +2 -4
- package/dist/index.js +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -64,11 +64,6 @@ type PageState = {
|
|
|
64
64
|
* The locale that was resolved for the current request.
|
|
65
65
|
*/
|
|
66
66
|
locale: string | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* Whether this page state was generated during a prefetch request.
|
|
69
|
-
* When true, test evaluations are deferred to the client side.
|
|
70
|
-
*/
|
|
71
|
-
isPrefetch: true | undefined;
|
|
72
67
|
};
|
|
73
68
|
declare const resolveComponentFromPageState: ({ pageState, componentId: providedComponentId, }: {
|
|
74
69
|
pageState: PageState;
|
|
@@ -161,7 +156,7 @@ type PersonalizeProps = ComponentProps<{
|
|
|
161
156
|
indexes: number[];
|
|
162
157
|
};
|
|
163
158
|
type TestProps = ComponentProps & {
|
|
164
|
-
index: number
|
|
159
|
+
index: number;
|
|
165
160
|
test: ExtractTestResult;
|
|
166
161
|
};
|
|
167
162
|
|
package/dist/index.d.ts
CHANGED
|
@@ -64,11 +64,6 @@ type PageState = {
|
|
|
64
64
|
* The locale that was resolved for the current request.
|
|
65
65
|
*/
|
|
66
66
|
locale: string | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* Whether this page state was generated during a prefetch request.
|
|
69
|
-
* When true, test evaluations are deferred to the client side.
|
|
70
|
-
*/
|
|
71
|
-
isPrefetch: true | undefined;
|
|
72
67
|
};
|
|
73
68
|
declare const resolveComponentFromPageState: ({ pageState, componentId: providedComponentId, }: {
|
|
74
69
|
pageState: PageState;
|
|
@@ -161,7 +156,7 @@ type PersonalizeProps = ComponentProps<{
|
|
|
161
156
|
indexes: number[];
|
|
162
157
|
};
|
|
163
158
|
type TestProps = ComponentProps & {
|
|
164
|
-
index: number
|
|
159
|
+
index: number;
|
|
165
160
|
test: ExtractTestResult;
|
|
166
161
|
};
|
|
167
162
|
|
package/dist/index.esm.js
CHANGED
|
@@ -219,8 +219,7 @@ var serializeEvaluationResult = ({
|
|
|
219
219
|
dc: typeof payload.defaultConsent !== "undefined" ? payload.defaultConsent ? 1 : 0 : void 0,
|
|
220
220
|
pm: payload.previewMode === "editor" ? "e" : payload.previewMode === "preview" ? "p" : void 0,
|
|
221
221
|
rl: void 0,
|
|
222
|
-
l: payload.locale
|
|
223
|
-
pf: payload.isPrefetch ? 1 : void 0
|
|
222
|
+
l: payload.locale
|
|
224
223
|
};
|
|
225
224
|
const componentKeys = Object.keys(payload.components);
|
|
226
225
|
const sortedKeys = componentKeys.sort();
|
|
@@ -271,8 +270,7 @@ var deserializeEvaluationResult = ({
|
|
|
271
270
|
defaultConsent: typeof parsed.dc !== "undefined" ? parsed.dc === 1 : void 0,
|
|
272
271
|
previewMode: parsed.pm === "e" ? "editor" : parsed.pm === "p" ? "preview" : void 0,
|
|
273
272
|
rules: parsed.rl ? Object.fromEntries(Object.entries(parsed.rl).map(([key, value]) => [key, value === 1])) : void 0,
|
|
274
|
-
locale: (_c = parsed.l) != null ? _c : void 0
|
|
275
|
-
isPrefetch: parsed.pf === 1 ? true : void 0
|
|
273
|
+
locale: (_c = parsed.l) != null ? _c : void 0
|
|
276
274
|
};
|
|
277
275
|
Object.keys(parsed.c).forEach((id) => {
|
|
278
276
|
const component = parsed.c[id];
|
package/dist/index.js
CHANGED
|
@@ -254,8 +254,7 @@ var serializeEvaluationResult = ({
|
|
|
254
254
|
dc: typeof payload.defaultConsent !== "undefined" ? payload.defaultConsent ? 1 : 0 : void 0,
|
|
255
255
|
pm: payload.previewMode === "editor" ? "e" : payload.previewMode === "preview" ? "p" : void 0,
|
|
256
256
|
rl: void 0,
|
|
257
|
-
l: payload.locale
|
|
258
|
-
pf: payload.isPrefetch ? 1 : void 0
|
|
257
|
+
l: payload.locale
|
|
259
258
|
};
|
|
260
259
|
const componentKeys = Object.keys(payload.components);
|
|
261
260
|
const sortedKeys = componentKeys.sort();
|
|
@@ -306,8 +305,7 @@ var deserializeEvaluationResult = ({
|
|
|
306
305
|
defaultConsent: typeof parsed.dc !== "undefined" ? parsed.dc === 1 : void 0,
|
|
307
306
|
previewMode: parsed.pm === "e" ? "editor" : parsed.pm === "p" ? "preview" : void 0,
|
|
308
307
|
rules: parsed.rl ? Object.fromEntries(Object.entries(parsed.rl).map(([key, value]) => [key, value === 1])) : void 0,
|
|
309
|
-
locale: (_c = parsed.l) != null ? _c : void 0
|
|
310
|
-
isPrefetch: parsed.pf === 1 ? true : void 0
|
|
308
|
+
locale: (_c = parsed.l) != null ? _c : void 0
|
|
311
309
|
};
|
|
312
310
|
Object.keys(parsed.c).forEach((id) => {
|
|
313
311
|
const component = parsed.c[id];
|
package/dist/index.mjs
CHANGED
|
@@ -219,8 +219,7 @@ var serializeEvaluationResult = ({
|
|
|
219
219
|
dc: typeof payload.defaultConsent !== "undefined" ? payload.defaultConsent ? 1 : 0 : void 0,
|
|
220
220
|
pm: payload.previewMode === "editor" ? "e" : payload.previewMode === "preview" ? "p" : void 0,
|
|
221
221
|
rl: void 0,
|
|
222
|
-
l: payload.locale
|
|
223
|
-
pf: payload.isPrefetch ? 1 : void 0
|
|
222
|
+
l: payload.locale
|
|
224
223
|
};
|
|
225
224
|
const componentKeys = Object.keys(payload.components);
|
|
226
225
|
const sortedKeys = componentKeys.sort();
|
|
@@ -271,8 +270,7 @@ var deserializeEvaluationResult = ({
|
|
|
271
270
|
defaultConsent: typeof parsed.dc !== "undefined" ? parsed.dc === 1 : void 0,
|
|
272
271
|
previewMode: parsed.pm === "e" ? "editor" : parsed.pm === "p" ? "preview" : void 0,
|
|
273
272
|
rules: parsed.rl ? Object.fromEntries(Object.entries(parsed.rl).map(([key, value]) => [key, value === 1])) : void 0,
|
|
274
|
-
locale: (_c = parsed.l) != null ? _c : void 0
|
|
275
|
-
isPrefetch: parsed.pf === 1 ? true : void 0
|
|
273
|
+
locale: (_c = parsed.l) != null ? _c : void 0
|
|
276
274
|
};
|
|
277
275
|
Object.keys(parsed.c).forEach((id) => {
|
|
278
276
|
const component = parsed.c[id];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/next-app-router-shared",
|
|
3
|
-
"version": "20.50.1-alpha.
|
|
3
|
+
"version": "20.50.1-alpha.4+47395e9a74",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"vitest": "3.2.4"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@uniformdev/canvas": "20.50.1-alpha.
|
|
40
|
-
"@uniformdev/context": "20.50.1-alpha.
|
|
39
|
+
"@uniformdev/canvas": "20.50.1-alpha.4+47395e9a74",
|
|
40
|
+
"@uniformdev/context": "20.50.1-alpha.4+47395e9a74",
|
|
41
41
|
"uuid": "9.0.1"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "47395e9a74fd4e2a7a5b4cc6488c7326ad906bf9"
|
|
55
55
|
}
|