@uniformdev/canvas-next-rsc 20.36.2-alpha.90 → 20.37.0
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.esm.js +25 -16
- package/dist/index.js +25 -16
- package/dist/index.mjs +25 -16
- package/package.json +11 -11
package/dist/index.esm.js
CHANGED
|
@@ -628,11 +628,18 @@ var ContextUpdateTrigger = ({ path }) => {
|
|
|
628
628
|
// src/components/PersonalizeClientWrapper.tsx
|
|
629
629
|
import { PersonalizeClient } from "@uniformdev/canvas-next-rsc-client";
|
|
630
630
|
import React3 from "react";
|
|
631
|
-
var PersonalizeClientWrapper = ({
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
631
|
+
var PersonalizeClientWrapper = (props) => {
|
|
632
|
+
return /* @__PURE__ */ React3.createElement(
|
|
633
|
+
PersonalizeClient,
|
|
634
|
+
{
|
|
635
|
+
component: props.component,
|
|
636
|
+
count: props.count,
|
|
637
|
+
slots: props.slots,
|
|
638
|
+
trackingEventName: props.trackingEventName,
|
|
639
|
+
algorithm: props.algorithm,
|
|
640
|
+
indexes: []
|
|
641
|
+
}
|
|
642
|
+
);
|
|
636
643
|
};
|
|
637
644
|
|
|
638
645
|
// src/components/PersonalizeServer.ts
|
|
@@ -671,12 +678,19 @@ var PersonalizeServer = (props) => {
|
|
|
671
678
|
import { PersonalizeClient as PersonalizeClient2 } from "@uniformdev/canvas-next-rsc-client";
|
|
672
679
|
import { runPersonalization as runPersonalization2 } from "@uniformdev/canvas-next-rsc-shared";
|
|
673
680
|
import React5 from "react";
|
|
674
|
-
var PersonalizeServerHybrid = ({
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
681
|
+
var PersonalizeServerHybrid = (props) => {
|
|
682
|
+
const { indexes } = runPersonalization2(props);
|
|
683
|
+
return /* @__PURE__ */ React5.createElement(
|
|
684
|
+
PersonalizeClient2,
|
|
685
|
+
{
|
|
686
|
+
component: props.component,
|
|
687
|
+
count: props.count,
|
|
688
|
+
slots: props.slots,
|
|
689
|
+
trackingEventName: props.trackingEventName,
|
|
690
|
+
algorithm: props.algorithm,
|
|
691
|
+
indexes
|
|
692
|
+
}
|
|
693
|
+
);
|
|
680
694
|
};
|
|
681
695
|
|
|
682
696
|
// src/components/TestServer.ts
|
|
@@ -815,11 +829,6 @@ var UniformComposition = async ({
|
|
|
815
829
|
},
|
|
816
830
|
{}
|
|
817
831
|
),
|
|
818
|
-
compositionMetadata: {
|
|
819
|
-
compositionId: route.compositionApiResponse.composition._id,
|
|
820
|
-
matchedRoute: route.matchedRoute,
|
|
821
|
-
dynamicInputs: route.dynamicInputs
|
|
822
|
-
},
|
|
823
832
|
quirks: {
|
|
824
833
|
"vc-country": headersValue.get("x-vercel-ip-country") || missingQuirkValue,
|
|
825
834
|
"vc-region": headersValue.get("x-vercel-ip-country-region") || missingQuirkValue,
|
package/dist/index.js
CHANGED
|
@@ -656,11 +656,18 @@ var ContextUpdateTrigger = ({ path }) => {
|
|
|
656
656
|
// src/components/PersonalizeClientWrapper.tsx
|
|
657
657
|
var import_canvas_next_rsc_client3 = require("@uniformdev/canvas-next-rsc-client");
|
|
658
658
|
var import_react3 = __toESM(require("react"));
|
|
659
|
-
var PersonalizeClientWrapper = ({
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
659
|
+
var PersonalizeClientWrapper = (props) => {
|
|
660
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
|
661
|
+
import_canvas_next_rsc_client3.PersonalizeClient,
|
|
662
|
+
{
|
|
663
|
+
component: props.component,
|
|
664
|
+
count: props.count,
|
|
665
|
+
slots: props.slots,
|
|
666
|
+
trackingEventName: props.trackingEventName,
|
|
667
|
+
algorithm: props.algorithm,
|
|
668
|
+
indexes: []
|
|
669
|
+
}
|
|
670
|
+
);
|
|
664
671
|
};
|
|
665
672
|
|
|
666
673
|
// src/components/PersonalizeServer.ts
|
|
@@ -699,12 +706,19 @@ var PersonalizeServer = (props) => {
|
|
|
699
706
|
var import_canvas_next_rsc_client5 = require("@uniformdev/canvas-next-rsc-client");
|
|
700
707
|
var import_canvas_next_rsc_shared4 = require("@uniformdev/canvas-next-rsc-shared");
|
|
701
708
|
var import_react6 = __toESM(require("react"));
|
|
702
|
-
var PersonalizeServerHybrid = ({
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
709
|
+
var PersonalizeServerHybrid = (props) => {
|
|
710
|
+
const { indexes } = (0, import_canvas_next_rsc_shared4.runPersonalization)(props);
|
|
711
|
+
return /* @__PURE__ */ import_react6.default.createElement(
|
|
712
|
+
import_canvas_next_rsc_client5.PersonalizeClient,
|
|
713
|
+
{
|
|
714
|
+
component: props.component,
|
|
715
|
+
count: props.count,
|
|
716
|
+
slots: props.slots,
|
|
717
|
+
trackingEventName: props.trackingEventName,
|
|
718
|
+
algorithm: props.algorithm,
|
|
719
|
+
indexes
|
|
720
|
+
}
|
|
721
|
+
);
|
|
708
722
|
};
|
|
709
723
|
|
|
710
724
|
// src/components/TestServer.ts
|
|
@@ -838,11 +852,6 @@ var UniformComposition = async ({
|
|
|
838
852
|
},
|
|
839
853
|
{}
|
|
840
854
|
),
|
|
841
|
-
compositionMetadata: {
|
|
842
|
-
compositionId: route.compositionApiResponse.composition._id,
|
|
843
|
-
matchedRoute: route.matchedRoute,
|
|
844
|
-
dynamicInputs: route.dynamicInputs
|
|
845
|
-
},
|
|
846
855
|
quirks: {
|
|
847
856
|
"vc-country": headersValue.get("x-vercel-ip-country") || missingQuirkValue,
|
|
848
857
|
"vc-region": headersValue.get("x-vercel-ip-country-region") || missingQuirkValue,
|
package/dist/index.mjs
CHANGED
|
@@ -628,11 +628,18 @@ var ContextUpdateTrigger = ({ path }) => {
|
|
|
628
628
|
// src/components/PersonalizeClientWrapper.tsx
|
|
629
629
|
import { PersonalizeClient } from "@uniformdev/canvas-next-rsc-client";
|
|
630
630
|
import React3 from "react";
|
|
631
|
-
var PersonalizeClientWrapper = ({
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
631
|
+
var PersonalizeClientWrapper = (props) => {
|
|
632
|
+
return /* @__PURE__ */ React3.createElement(
|
|
633
|
+
PersonalizeClient,
|
|
634
|
+
{
|
|
635
|
+
component: props.component,
|
|
636
|
+
count: props.count,
|
|
637
|
+
slots: props.slots,
|
|
638
|
+
trackingEventName: props.trackingEventName,
|
|
639
|
+
algorithm: props.algorithm,
|
|
640
|
+
indexes: []
|
|
641
|
+
}
|
|
642
|
+
);
|
|
636
643
|
};
|
|
637
644
|
|
|
638
645
|
// src/components/PersonalizeServer.ts
|
|
@@ -671,12 +678,19 @@ var PersonalizeServer = (props) => {
|
|
|
671
678
|
import { PersonalizeClient as PersonalizeClient2 } from "@uniformdev/canvas-next-rsc-client";
|
|
672
679
|
import { runPersonalization as runPersonalization2 } from "@uniformdev/canvas-next-rsc-shared";
|
|
673
680
|
import React5 from "react";
|
|
674
|
-
var PersonalizeServerHybrid = ({
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
681
|
+
var PersonalizeServerHybrid = (props) => {
|
|
682
|
+
const { indexes } = runPersonalization2(props);
|
|
683
|
+
return /* @__PURE__ */ React5.createElement(
|
|
684
|
+
PersonalizeClient2,
|
|
685
|
+
{
|
|
686
|
+
component: props.component,
|
|
687
|
+
count: props.count,
|
|
688
|
+
slots: props.slots,
|
|
689
|
+
trackingEventName: props.trackingEventName,
|
|
690
|
+
algorithm: props.algorithm,
|
|
691
|
+
indexes
|
|
692
|
+
}
|
|
693
|
+
);
|
|
680
694
|
};
|
|
681
695
|
|
|
682
696
|
// src/components/TestServer.ts
|
|
@@ -815,11 +829,6 @@ var UniformComposition = async ({
|
|
|
815
829
|
},
|
|
816
830
|
{}
|
|
817
831
|
),
|
|
818
|
-
compositionMetadata: {
|
|
819
|
-
compositionId: route.compositionApiResponse.composition._id,
|
|
820
|
-
matchedRoute: route.matchedRoute,
|
|
821
|
-
dynamicInputs: route.dynamicInputs
|
|
822
|
-
},
|
|
823
832
|
quirks: {
|
|
824
833
|
"vc-country": headersValue.get("x-vercel-ip-country") || missingQuirkValue,
|
|
825
834
|
"vc-region": headersValue.get("x-vercel-ip-country-region") || missingQuirkValue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.37.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"react-dom": "18.3.1"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@uniformdev/canvas": "20.
|
|
65
|
-
"@uniformdev/canvas-next-rsc-client": "^20.
|
|
66
|
-
"@uniformdev/canvas-next-rsc-shared": "^20.
|
|
67
|
-
"@uniformdev/canvas-react": "20.
|
|
68
|
-
"@uniformdev/context": "20.
|
|
69
|
-
"@uniformdev/project-map": "20.
|
|
70
|
-
"@uniformdev/redirect": "20.
|
|
71
|
-
"@uniformdev/richtext": "20.
|
|
72
|
-
"@uniformdev/webhooks": "20.
|
|
64
|
+
"@uniformdev/canvas": "20.37.0",
|
|
65
|
+
"@uniformdev/canvas-next-rsc-client": "^20.37.0",
|
|
66
|
+
"@uniformdev/canvas-next-rsc-shared": "^20.37.0",
|
|
67
|
+
"@uniformdev/canvas-react": "20.37.0",
|
|
68
|
+
"@uniformdev/context": "20.37.0",
|
|
69
|
+
"@uniformdev/project-map": "20.37.0",
|
|
70
|
+
"@uniformdev/redirect": "20.37.0",
|
|
71
|
+
"@uniformdev/richtext": "20.37.0",
|
|
72
|
+
"@uniformdev/webhooks": "20.37.0",
|
|
73
73
|
"@vercel/edge-config": "^0.4.0",
|
|
74
74
|
"encoding": "^0.1.13",
|
|
75
75
|
"server-only": "^0.0.1",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "4b42aec368d447a0b0ebc619451abdd5df413365"
|
|
90
90
|
}
|