@uniformdev/canvas-next-rsc-client 19.79.1-alpha.18 → 19.79.1-alpha.26
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 +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.esm.js +38 -39
- package/dist/index.js +37 -38
- package/dist/index.mjs +38 -39
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -16,6 +16,10 @@ type ClientContextComponentProps = {
|
|
|
16
16
|
* Whether or not to disable the Uniform Context dev tools
|
|
17
17
|
*/
|
|
18
18
|
disableDevTools: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The default consent value
|
|
21
|
+
*/
|
|
22
|
+
defaultConsent: boolean;
|
|
19
23
|
};
|
|
20
24
|
type ClientContextComponent = (props: ClientContextComponentProps) => JSX.Element | null;
|
|
21
25
|
|
|
@@ -31,7 +35,9 @@ declare const ClientContextTestTransfer: ({ event, ts }: {
|
|
|
31
35
|
|
|
32
36
|
declare const ClientContextualEditingComponentWrapper: (props: PropsWithChildren<PureContextualEditingComponentWrapperProps>) => react_jsx_runtime.JSX.Element;
|
|
33
37
|
|
|
34
|
-
declare const ClientContextUpdate: (
|
|
38
|
+
declare const ClientContextUpdate: ({ path }: {
|
|
39
|
+
path: string;
|
|
40
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
35
41
|
|
|
36
42
|
declare const ContextUpdateTransferClient: ({ update, ts, }: {
|
|
37
43
|
update: Partial<AppDirectoryContextState>;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ type ClientContextComponentProps = {
|
|
|
16
16
|
* Whether or not to disable the Uniform Context dev tools
|
|
17
17
|
*/
|
|
18
18
|
disableDevTools: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The default consent value
|
|
21
|
+
*/
|
|
22
|
+
defaultConsent: boolean;
|
|
19
23
|
};
|
|
20
24
|
type ClientContextComponent = (props: ClientContextComponentProps) => JSX.Element | null;
|
|
21
25
|
|
|
@@ -31,7 +35,9 @@ declare const ClientContextTestTransfer: ({ event, ts }: {
|
|
|
31
35
|
|
|
32
36
|
declare const ClientContextualEditingComponentWrapper: (props: PropsWithChildren<PureContextualEditingComponentWrapperProps>) => react_jsx_runtime.JSX.Element;
|
|
33
37
|
|
|
34
|
-
declare const ClientContextUpdate: (
|
|
38
|
+
declare const ClientContextUpdate: ({ path }: {
|
|
39
|
+
path: string;
|
|
40
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
35
41
|
|
|
36
42
|
declare const ContextUpdateTransferClient: ({ update, ts, }: {
|
|
37
43
|
update: Partial<AppDirectoryContextState>;
|
package/dist/index.esm.js
CHANGED
|
@@ -25,9 +25,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
|
|
28
|
-
// ../../node_modules/.pnpm/rfdc@1.3.
|
|
28
|
+
// ../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/index.js
|
|
29
29
|
var require_rfdc = __commonJS({
|
|
30
|
-
"../../node_modules/.pnpm/rfdc@1.3.
|
|
30
|
+
"../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/index.js"(exports, module) {
|
|
31
31
|
"use strict";
|
|
32
32
|
module.exports = rfdc4;
|
|
33
33
|
function copyBuffer(cur) {
|
|
@@ -314,14 +314,13 @@ var ClientContextualEditingComponentWrapperInner = ({
|
|
|
314
314
|
};
|
|
315
315
|
|
|
316
316
|
// src/components/ClientContextUpdate.tsx
|
|
317
|
-
import {
|
|
317
|
+
import { useSearchParams as useSearchParams2 } from "next/navigation";
|
|
318
318
|
import { Suspense as Suspense2, useEffect as useEffect4 } from "react";
|
|
319
319
|
import { Fragment as Fragment2, jsx as jsx2 } from "react/jsx-runtime";
|
|
320
|
-
var ClientContextUpdate = () => {
|
|
321
|
-
return /* @__PURE__ */ jsx2(Suspense2, { children: /* @__PURE__ */ jsx2(ClientContextUpdateInner, {}) });
|
|
320
|
+
var ClientContextUpdate = ({ path }) => {
|
|
321
|
+
return /* @__PURE__ */ jsx2(Suspense2, { children: /* @__PURE__ */ jsx2(ClientContextUpdateInner, { path }) });
|
|
322
322
|
};
|
|
323
|
-
var ClientContextUpdateInner = () => {
|
|
324
|
-
const params = useParams();
|
|
323
|
+
var ClientContextUpdateInner = ({ path }) => {
|
|
325
324
|
const searchParams = useSearchParams2();
|
|
326
325
|
const { context } = useUniformContext();
|
|
327
326
|
useEffect4(() => {
|
|
@@ -330,10 +329,12 @@ var ClientContextUpdateInner = () => {
|
|
|
330
329
|
}
|
|
331
330
|
const convertedSearchParams = Object.fromEntries(searchParams.entries());
|
|
332
331
|
context.update({
|
|
333
|
-
params
|
|
332
|
+
params: {
|
|
333
|
+
path: path.split("/").filter(Boolean)
|
|
334
|
+
},
|
|
334
335
|
searchParams: convertedSearchParams
|
|
335
336
|
});
|
|
336
|
-
}, [
|
|
337
|
+
}, [path, searchParams, context]);
|
|
337
338
|
return /* @__PURE__ */ jsx2(Fragment2, {});
|
|
338
339
|
};
|
|
339
340
|
|
|
@@ -508,6 +509,25 @@ var __privateMethod = (obj, member, method) => {
|
|
|
508
509
|
return method;
|
|
509
510
|
};
|
|
510
511
|
var ENR_SEPARATOR = "_";
|
|
512
|
+
var _signal;
|
|
513
|
+
var _id;
|
|
514
|
+
_signal = /* @__PURE__ */ new WeakMap();
|
|
515
|
+
_id = /* @__PURE__ */ new WeakMap();
|
|
516
|
+
var _evaluator;
|
|
517
|
+
var _onLogMessage;
|
|
518
|
+
_evaluator = /* @__PURE__ */ new WeakMap();
|
|
519
|
+
_onLogMessage = /* @__PURE__ */ new WeakMap();
|
|
520
|
+
var _mf;
|
|
521
|
+
var _signalInstances;
|
|
522
|
+
var _goalEvaluators;
|
|
523
|
+
var _onLogMessage2;
|
|
524
|
+
_mf = /* @__PURE__ */ new WeakMap();
|
|
525
|
+
_signalInstances = /* @__PURE__ */ new WeakMap();
|
|
526
|
+
_goalEvaluators = /* @__PURE__ */ new WeakMap();
|
|
527
|
+
_onLogMessage2 = /* @__PURE__ */ new WeakMap();
|
|
528
|
+
function getEnrichmentVectorKey(category, value) {
|
|
529
|
+
return `${category}${ENR_SEPARATOR}${value}`;
|
|
530
|
+
}
|
|
511
531
|
function isNumberMatch(lhs, match) {
|
|
512
532
|
var _a;
|
|
513
533
|
if (typeof lhs === "undefined" || lhs === null) {
|
|
@@ -537,13 +557,6 @@ function explainNumberMatch(lhs, match) {
|
|
|
537
557
|
function explainNumberMatchCriteria(match) {
|
|
538
558
|
return `${match.op} ${match.rhs}`;
|
|
539
559
|
}
|
|
540
|
-
function getEnrichmentVectorKey(category, value) {
|
|
541
|
-
return `${category}${ENR_SEPARATOR}${value}`;
|
|
542
|
-
}
|
|
543
|
-
var _goal;
|
|
544
|
-
var _id;
|
|
545
|
-
_goal = /* @__PURE__ */ new WeakMap();
|
|
546
|
-
_id = /* @__PURE__ */ new WeakMap();
|
|
547
560
|
var pageViewCountDimension = getEnrichmentVectorKey("$pvc", "v");
|
|
548
561
|
var pageViewCountEvaluator = ({ update, criteria, commands, onLogMessage }) => {
|
|
549
562
|
var _a, _b;
|
|
@@ -581,26 +594,6 @@ var pageViewCountEvaluator = ({ update, criteria, commands, onLogMessage }) => {
|
|
|
581
594
|
pageViewCountEvaluator.alwaysExecute = true;
|
|
582
595
|
var _evaluators;
|
|
583
596
|
_evaluators = /* @__PURE__ */ new WeakMap();
|
|
584
|
-
var _goal2;
|
|
585
|
-
var _id2;
|
|
586
|
-
_goal2 = /* @__PURE__ */ new WeakMap();
|
|
587
|
-
_id2 = /* @__PURE__ */ new WeakMap();
|
|
588
|
-
var _goal3;
|
|
589
|
-
var _id3;
|
|
590
|
-
_goal3 = /* @__PURE__ */ new WeakMap();
|
|
591
|
-
_id3 = /* @__PURE__ */ new WeakMap();
|
|
592
|
-
var _evaluator;
|
|
593
|
-
var _onLogMessage;
|
|
594
|
-
_evaluator = /* @__PURE__ */ new WeakMap();
|
|
595
|
-
_onLogMessage = /* @__PURE__ */ new WeakMap();
|
|
596
|
-
var _mf;
|
|
597
|
-
var _signalInstances;
|
|
598
|
-
var _goalEvaluators;
|
|
599
|
-
var _onLogMessage2;
|
|
600
|
-
_mf = /* @__PURE__ */ new WeakMap();
|
|
601
|
-
_signalInstances = /* @__PURE__ */ new WeakMap();
|
|
602
|
-
_goalEvaluators = /* @__PURE__ */ new WeakMap();
|
|
603
|
-
_onLogMessage2 = /* @__PURE__ */ new WeakMap();
|
|
604
597
|
var _data;
|
|
605
598
|
var _initialData;
|
|
606
599
|
var _mitt;
|
|
@@ -637,7 +630,8 @@ var emptyVisitorData = () => ({
|
|
|
637
630
|
tests: {},
|
|
638
631
|
goals: {},
|
|
639
632
|
consent: false,
|
|
640
|
-
controlGroup: false
|
|
633
|
+
controlGroup: false,
|
|
634
|
+
personalizeVariants: {}
|
|
641
635
|
});
|
|
642
636
|
var clone = (0, import_rfdc.default)();
|
|
643
637
|
var STORAGE_KEY = "ufvisitor";
|
|
@@ -962,7 +956,11 @@ var useInitUniformContext = (callback) => {
|
|
|
962
956
|
};
|
|
963
957
|
|
|
964
958
|
// src/components/DefaultUniformClientContext.tsx
|
|
965
|
-
var DefaultUniformClientContext = ({
|
|
959
|
+
var DefaultUniformClientContext = ({
|
|
960
|
+
manifest,
|
|
961
|
+
disableDevTools,
|
|
962
|
+
defaultConsent
|
|
963
|
+
}) => {
|
|
966
964
|
const router = useRouter();
|
|
967
965
|
useInitUniformContext(() => {
|
|
968
966
|
const plugins = [];
|
|
@@ -977,7 +975,8 @@ var DefaultUniformClientContext = ({ manifest, disableDevTools }) => {
|
|
|
977
975
|
}
|
|
978
976
|
return createClientUniformContext({
|
|
979
977
|
manifest,
|
|
980
|
-
plugins
|
|
978
|
+
plugins,
|
|
979
|
+
defaultConsent
|
|
981
980
|
});
|
|
982
981
|
});
|
|
983
982
|
return null;
|
package/dist/index.js
CHANGED
|
@@ -31,9 +31,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
31
|
));
|
|
32
32
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
33
|
|
|
34
|
-
// ../../node_modules/.pnpm/rfdc@1.3.
|
|
34
|
+
// ../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/index.js
|
|
35
35
|
var require_rfdc = __commonJS({
|
|
36
|
-
"../../node_modules/.pnpm/rfdc@1.3.
|
|
36
|
+
"../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/index.js"(exports2, module2) {
|
|
37
37
|
"use strict";
|
|
38
38
|
module2.exports = rfdc4;
|
|
39
39
|
function copyBuffer(cur) {
|
|
@@ -339,11 +339,10 @@ var ClientContextualEditingComponentWrapperInner = ({
|
|
|
339
339
|
var import_navigation2 = require("next/navigation");
|
|
340
340
|
var import_react5 = require("react");
|
|
341
341
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
342
|
-
var ClientContextUpdate = () => {
|
|
343
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react5.Suspense, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ClientContextUpdateInner, {}) });
|
|
342
|
+
var ClientContextUpdate = ({ path }) => {
|
|
343
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react5.Suspense, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ClientContextUpdateInner, { path }) });
|
|
344
344
|
};
|
|
345
|
-
var ClientContextUpdateInner = () => {
|
|
346
|
-
const params = (0, import_navigation2.useParams)();
|
|
345
|
+
var ClientContextUpdateInner = ({ path }) => {
|
|
347
346
|
const searchParams = (0, import_navigation2.useSearchParams)();
|
|
348
347
|
const { context } = useUniformContext();
|
|
349
348
|
(0, import_react5.useEffect)(() => {
|
|
@@ -352,10 +351,12 @@ var ClientContextUpdateInner = () => {
|
|
|
352
351
|
}
|
|
353
352
|
const convertedSearchParams = Object.fromEntries(searchParams.entries());
|
|
354
353
|
context.update({
|
|
355
|
-
params
|
|
354
|
+
params: {
|
|
355
|
+
path: path.split("/").filter(Boolean)
|
|
356
|
+
},
|
|
356
357
|
searchParams: convertedSearchParams
|
|
357
358
|
});
|
|
358
|
-
}, [
|
|
359
|
+
}, [path, searchParams, context]);
|
|
359
360
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, {});
|
|
360
361
|
};
|
|
361
362
|
|
|
@@ -530,6 +531,25 @@ var __privateMethod = (obj, member, method) => {
|
|
|
530
531
|
return method;
|
|
531
532
|
};
|
|
532
533
|
var ENR_SEPARATOR = "_";
|
|
534
|
+
var _signal;
|
|
535
|
+
var _id;
|
|
536
|
+
_signal = /* @__PURE__ */ new WeakMap();
|
|
537
|
+
_id = /* @__PURE__ */ new WeakMap();
|
|
538
|
+
var _evaluator;
|
|
539
|
+
var _onLogMessage;
|
|
540
|
+
_evaluator = /* @__PURE__ */ new WeakMap();
|
|
541
|
+
_onLogMessage = /* @__PURE__ */ new WeakMap();
|
|
542
|
+
var _mf;
|
|
543
|
+
var _signalInstances;
|
|
544
|
+
var _goalEvaluators;
|
|
545
|
+
var _onLogMessage2;
|
|
546
|
+
_mf = /* @__PURE__ */ new WeakMap();
|
|
547
|
+
_signalInstances = /* @__PURE__ */ new WeakMap();
|
|
548
|
+
_goalEvaluators = /* @__PURE__ */ new WeakMap();
|
|
549
|
+
_onLogMessage2 = /* @__PURE__ */ new WeakMap();
|
|
550
|
+
function getEnrichmentVectorKey(category, value) {
|
|
551
|
+
return `${category}${ENR_SEPARATOR}${value}`;
|
|
552
|
+
}
|
|
533
553
|
function isNumberMatch(lhs, match) {
|
|
534
554
|
var _a;
|
|
535
555
|
if (typeof lhs === "undefined" || lhs === null) {
|
|
@@ -559,13 +579,6 @@ function explainNumberMatch(lhs, match) {
|
|
|
559
579
|
function explainNumberMatchCriteria(match) {
|
|
560
580
|
return `${match.op} ${match.rhs}`;
|
|
561
581
|
}
|
|
562
|
-
function getEnrichmentVectorKey(category, value) {
|
|
563
|
-
return `${category}${ENR_SEPARATOR}${value}`;
|
|
564
|
-
}
|
|
565
|
-
var _goal;
|
|
566
|
-
var _id;
|
|
567
|
-
_goal = /* @__PURE__ */ new WeakMap();
|
|
568
|
-
_id = /* @__PURE__ */ new WeakMap();
|
|
569
582
|
var pageViewCountDimension = getEnrichmentVectorKey("$pvc", "v");
|
|
570
583
|
var pageViewCountEvaluator = ({ update, criteria, commands, onLogMessage }) => {
|
|
571
584
|
var _a, _b;
|
|
@@ -603,26 +616,6 @@ var pageViewCountEvaluator = ({ update, criteria, commands, onLogMessage }) => {
|
|
|
603
616
|
pageViewCountEvaluator.alwaysExecute = true;
|
|
604
617
|
var _evaluators;
|
|
605
618
|
_evaluators = /* @__PURE__ */ new WeakMap();
|
|
606
|
-
var _goal2;
|
|
607
|
-
var _id2;
|
|
608
|
-
_goal2 = /* @__PURE__ */ new WeakMap();
|
|
609
|
-
_id2 = /* @__PURE__ */ new WeakMap();
|
|
610
|
-
var _goal3;
|
|
611
|
-
var _id3;
|
|
612
|
-
_goal3 = /* @__PURE__ */ new WeakMap();
|
|
613
|
-
_id3 = /* @__PURE__ */ new WeakMap();
|
|
614
|
-
var _evaluator;
|
|
615
|
-
var _onLogMessage;
|
|
616
|
-
_evaluator = /* @__PURE__ */ new WeakMap();
|
|
617
|
-
_onLogMessage = /* @__PURE__ */ new WeakMap();
|
|
618
|
-
var _mf;
|
|
619
|
-
var _signalInstances;
|
|
620
|
-
var _goalEvaluators;
|
|
621
|
-
var _onLogMessage2;
|
|
622
|
-
_mf = /* @__PURE__ */ new WeakMap();
|
|
623
|
-
_signalInstances = /* @__PURE__ */ new WeakMap();
|
|
624
|
-
_goalEvaluators = /* @__PURE__ */ new WeakMap();
|
|
625
|
-
_onLogMessage2 = /* @__PURE__ */ new WeakMap();
|
|
626
619
|
var _data;
|
|
627
620
|
var _initialData;
|
|
628
621
|
var _mitt;
|
|
@@ -659,7 +652,8 @@ var emptyVisitorData = () => ({
|
|
|
659
652
|
tests: {},
|
|
660
653
|
goals: {},
|
|
661
654
|
consent: false,
|
|
662
|
-
controlGroup: false
|
|
655
|
+
controlGroup: false,
|
|
656
|
+
personalizeVariants: {}
|
|
663
657
|
});
|
|
664
658
|
var clone = (0, import_rfdc.default)();
|
|
665
659
|
var STORAGE_KEY = "ufvisitor";
|
|
@@ -984,7 +978,11 @@ var useInitUniformContext = (callback) => {
|
|
|
984
978
|
};
|
|
985
979
|
|
|
986
980
|
// src/components/DefaultUniformClientContext.tsx
|
|
987
|
-
var DefaultUniformClientContext = ({
|
|
981
|
+
var DefaultUniformClientContext = ({
|
|
982
|
+
manifest,
|
|
983
|
+
disableDevTools,
|
|
984
|
+
defaultConsent
|
|
985
|
+
}) => {
|
|
988
986
|
const router = (0, import_navigation3.useRouter)();
|
|
989
987
|
useInitUniformContext(() => {
|
|
990
988
|
const plugins = [];
|
|
@@ -999,7 +997,8 @@ var DefaultUniformClientContext = ({ manifest, disableDevTools }) => {
|
|
|
999
997
|
}
|
|
1000
998
|
return createClientUniformContext({
|
|
1001
999
|
manifest,
|
|
1002
|
-
plugins
|
|
1000
|
+
plugins,
|
|
1001
|
+
defaultConsent
|
|
1003
1002
|
});
|
|
1004
1003
|
});
|
|
1005
1004
|
return null;
|
package/dist/index.mjs
CHANGED
|
@@ -25,9 +25,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
|
|
28
|
-
// ../../node_modules/.pnpm/rfdc@1.3.
|
|
28
|
+
// ../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/index.js
|
|
29
29
|
var require_rfdc = __commonJS({
|
|
30
|
-
"../../node_modules/.pnpm/rfdc@1.3.
|
|
30
|
+
"../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/index.js"(exports, module) {
|
|
31
31
|
"use strict";
|
|
32
32
|
module.exports = rfdc4;
|
|
33
33
|
function copyBuffer(cur) {
|
|
@@ -314,14 +314,13 @@ var ClientContextualEditingComponentWrapperInner = ({
|
|
|
314
314
|
};
|
|
315
315
|
|
|
316
316
|
// src/components/ClientContextUpdate.tsx
|
|
317
|
-
import {
|
|
317
|
+
import { useSearchParams as useSearchParams2 } from "next/navigation";
|
|
318
318
|
import { Suspense as Suspense2, useEffect as useEffect4 } from "react";
|
|
319
319
|
import { Fragment as Fragment2, jsx as jsx2 } from "react/jsx-runtime";
|
|
320
|
-
var ClientContextUpdate = () => {
|
|
321
|
-
return /* @__PURE__ */ jsx2(Suspense2, { children: /* @__PURE__ */ jsx2(ClientContextUpdateInner, {}) });
|
|
320
|
+
var ClientContextUpdate = ({ path }) => {
|
|
321
|
+
return /* @__PURE__ */ jsx2(Suspense2, { children: /* @__PURE__ */ jsx2(ClientContextUpdateInner, { path }) });
|
|
322
322
|
};
|
|
323
|
-
var ClientContextUpdateInner = () => {
|
|
324
|
-
const params = useParams();
|
|
323
|
+
var ClientContextUpdateInner = ({ path }) => {
|
|
325
324
|
const searchParams = useSearchParams2();
|
|
326
325
|
const { context } = useUniformContext();
|
|
327
326
|
useEffect4(() => {
|
|
@@ -330,10 +329,12 @@ var ClientContextUpdateInner = () => {
|
|
|
330
329
|
}
|
|
331
330
|
const convertedSearchParams = Object.fromEntries(searchParams.entries());
|
|
332
331
|
context.update({
|
|
333
|
-
params
|
|
332
|
+
params: {
|
|
333
|
+
path: path.split("/").filter(Boolean)
|
|
334
|
+
},
|
|
334
335
|
searchParams: convertedSearchParams
|
|
335
336
|
});
|
|
336
|
-
}, [
|
|
337
|
+
}, [path, searchParams, context]);
|
|
337
338
|
return /* @__PURE__ */ jsx2(Fragment2, {});
|
|
338
339
|
};
|
|
339
340
|
|
|
@@ -508,6 +509,25 @@ var __privateMethod = (obj, member, method) => {
|
|
|
508
509
|
return method;
|
|
509
510
|
};
|
|
510
511
|
var ENR_SEPARATOR = "_";
|
|
512
|
+
var _signal;
|
|
513
|
+
var _id;
|
|
514
|
+
_signal = /* @__PURE__ */ new WeakMap();
|
|
515
|
+
_id = /* @__PURE__ */ new WeakMap();
|
|
516
|
+
var _evaluator;
|
|
517
|
+
var _onLogMessage;
|
|
518
|
+
_evaluator = /* @__PURE__ */ new WeakMap();
|
|
519
|
+
_onLogMessage = /* @__PURE__ */ new WeakMap();
|
|
520
|
+
var _mf;
|
|
521
|
+
var _signalInstances;
|
|
522
|
+
var _goalEvaluators;
|
|
523
|
+
var _onLogMessage2;
|
|
524
|
+
_mf = /* @__PURE__ */ new WeakMap();
|
|
525
|
+
_signalInstances = /* @__PURE__ */ new WeakMap();
|
|
526
|
+
_goalEvaluators = /* @__PURE__ */ new WeakMap();
|
|
527
|
+
_onLogMessage2 = /* @__PURE__ */ new WeakMap();
|
|
528
|
+
function getEnrichmentVectorKey(category, value) {
|
|
529
|
+
return `${category}${ENR_SEPARATOR}${value}`;
|
|
530
|
+
}
|
|
511
531
|
function isNumberMatch(lhs, match) {
|
|
512
532
|
var _a;
|
|
513
533
|
if (typeof lhs === "undefined" || lhs === null) {
|
|
@@ -537,13 +557,6 @@ function explainNumberMatch(lhs, match) {
|
|
|
537
557
|
function explainNumberMatchCriteria(match) {
|
|
538
558
|
return `${match.op} ${match.rhs}`;
|
|
539
559
|
}
|
|
540
|
-
function getEnrichmentVectorKey(category, value) {
|
|
541
|
-
return `${category}${ENR_SEPARATOR}${value}`;
|
|
542
|
-
}
|
|
543
|
-
var _goal;
|
|
544
|
-
var _id;
|
|
545
|
-
_goal = /* @__PURE__ */ new WeakMap();
|
|
546
|
-
_id = /* @__PURE__ */ new WeakMap();
|
|
547
560
|
var pageViewCountDimension = getEnrichmentVectorKey("$pvc", "v");
|
|
548
561
|
var pageViewCountEvaluator = ({ update, criteria, commands, onLogMessage }) => {
|
|
549
562
|
var _a, _b;
|
|
@@ -581,26 +594,6 @@ var pageViewCountEvaluator = ({ update, criteria, commands, onLogMessage }) => {
|
|
|
581
594
|
pageViewCountEvaluator.alwaysExecute = true;
|
|
582
595
|
var _evaluators;
|
|
583
596
|
_evaluators = /* @__PURE__ */ new WeakMap();
|
|
584
|
-
var _goal2;
|
|
585
|
-
var _id2;
|
|
586
|
-
_goal2 = /* @__PURE__ */ new WeakMap();
|
|
587
|
-
_id2 = /* @__PURE__ */ new WeakMap();
|
|
588
|
-
var _goal3;
|
|
589
|
-
var _id3;
|
|
590
|
-
_goal3 = /* @__PURE__ */ new WeakMap();
|
|
591
|
-
_id3 = /* @__PURE__ */ new WeakMap();
|
|
592
|
-
var _evaluator;
|
|
593
|
-
var _onLogMessage;
|
|
594
|
-
_evaluator = /* @__PURE__ */ new WeakMap();
|
|
595
|
-
_onLogMessage = /* @__PURE__ */ new WeakMap();
|
|
596
|
-
var _mf;
|
|
597
|
-
var _signalInstances;
|
|
598
|
-
var _goalEvaluators;
|
|
599
|
-
var _onLogMessage2;
|
|
600
|
-
_mf = /* @__PURE__ */ new WeakMap();
|
|
601
|
-
_signalInstances = /* @__PURE__ */ new WeakMap();
|
|
602
|
-
_goalEvaluators = /* @__PURE__ */ new WeakMap();
|
|
603
|
-
_onLogMessage2 = /* @__PURE__ */ new WeakMap();
|
|
604
597
|
var _data;
|
|
605
598
|
var _initialData;
|
|
606
599
|
var _mitt;
|
|
@@ -637,7 +630,8 @@ var emptyVisitorData = () => ({
|
|
|
637
630
|
tests: {},
|
|
638
631
|
goals: {},
|
|
639
632
|
consent: false,
|
|
640
|
-
controlGroup: false
|
|
633
|
+
controlGroup: false,
|
|
634
|
+
personalizeVariants: {}
|
|
641
635
|
});
|
|
642
636
|
var clone = (0, import_rfdc.default)();
|
|
643
637
|
var STORAGE_KEY = "ufvisitor";
|
|
@@ -962,7 +956,11 @@ var useInitUniformContext = (callback) => {
|
|
|
962
956
|
};
|
|
963
957
|
|
|
964
958
|
// src/components/DefaultUniformClientContext.tsx
|
|
965
|
-
var DefaultUniformClientContext = ({
|
|
959
|
+
var DefaultUniformClientContext = ({
|
|
960
|
+
manifest,
|
|
961
|
+
disableDevTools,
|
|
962
|
+
defaultConsent
|
|
963
|
+
}) => {
|
|
966
964
|
const router = useRouter();
|
|
967
965
|
useInitUniformContext(() => {
|
|
968
966
|
const plugins = [];
|
|
@@ -977,7 +975,8 @@ var DefaultUniformClientContext = ({ manifest, disableDevTools }) => {
|
|
|
977
975
|
}
|
|
978
976
|
return createClientUniformContext({
|
|
979
977
|
manifest,
|
|
980
|
-
plugins
|
|
978
|
+
plugins,
|
|
979
|
+
defaultConsent
|
|
981
980
|
});
|
|
982
981
|
});
|
|
983
982
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc-client",
|
|
3
|
-
"version": "19.79.1-alpha.
|
|
3
|
+
"version": "19.79.1-alpha.26+090e487591",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^20.0.0",
|
|
28
28
|
"@types/react": "18.2.40",
|
|
29
|
-
"eslint": "8.
|
|
29
|
+
"eslint": "8.57.0",
|
|
30
30
|
"next": "^14.0.0",
|
|
31
31
|
"react": "18.2.0",
|
|
32
32
|
"react-dom": "18.2.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@uniformdev/canvas": "19.79.1-alpha.
|
|
36
|
-
"@uniformdev/canvas-next-rsc-shared": "^19.79.1-alpha.
|
|
37
|
-
"@uniformdev/canvas-react": "^19.79.1-alpha.
|
|
35
|
+
"@uniformdev/canvas": "19.79.1-alpha.26+090e487591",
|
|
36
|
+
"@uniformdev/canvas-next-rsc-shared": "^19.79.1-alpha.26+090e487591",
|
|
37
|
+
"@uniformdev/canvas-react": "^19.79.1-alpha.26+090e487591"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=16.14.0"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "090e487591b6cae5af1629967351ebf08824c264"
|
|
51
51
|
}
|