@uniformdev/canvas-next-rsc 20.6.2-alpha.11 → 20.7.1-alpha.12

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 CHANGED
@@ -631,24 +631,19 @@ var ContextUpdateTrigger = ({ path }) => {
631
631
 
632
632
  // src/components/PersonalizeClientWrapper.tsx
633
633
  import { PersonalizeClient } from "@uniformdev/canvas-next-rsc-client";
634
+ import { runPersonalization } from "@uniformdev/canvas-next-rsc-shared";
634
635
  import React3 from "react";
635
636
  var PersonalizeClientWrapper = (props) => {
636
- return /* @__PURE__ */ React3.createElement(
637
- PersonalizeClient,
638
- {
639
- component: props.component,
640
- count: props.count,
641
- slots: props.slots,
642
- trackingEventName: props.trackingEventName,
643
- algorithm: props.algorithm,
644
- indexes: []
645
- }
646
- );
637
+ const { indexes } = runPersonalization({
638
+ ...props,
639
+ contextInstance: void 0
640
+ });
641
+ return /* @__PURE__ */ React3.createElement(PersonalizeClient, { ...props, indexes });
647
642
  };
648
643
 
649
644
  // src/components/PersonalizeServer.ts
650
645
  import { CANVAS_PERSONALIZE_SLOT } from "@uniformdev/canvas";
651
- import { runPersonalization } from "@uniformdev/canvas-next-rsc-shared";
646
+ import { runPersonalization as runPersonalization2 } from "@uniformdev/canvas-next-rsc-shared";
652
647
  import { unstable_noStore as noStore } from "next/cache";
653
648
  import { createElement, Fragment } from "react";
654
649
 
@@ -665,7 +660,7 @@ var PersonalizeServer = (props) => {
665
660
  if ((_a = getServerConfig().ppr) == null ? void 0 : _a.personalizationSuspense) {
666
661
  noStore();
667
662
  }
668
- const { indexes, event } = runPersonalization(props);
663
+ const { indexes, event } = runPersonalization2(props);
669
664
  const slot = (_b = props.slots) == null ? void 0 : _b[CANVAS_PERSONALIZE_SLOT];
670
665
  const components = indexes.map((index) => {
671
666
  const component = slot.items[index];
@@ -680,10 +675,10 @@ var PersonalizeServer = (props) => {
680
675
 
681
676
  // src/components/PersonalizeServerHybrid.tsx
682
677
  import { PersonalizeClient as PersonalizeClient2 } from "@uniformdev/canvas-next-rsc-client";
683
- import { runPersonalization as runPersonalization2 } from "@uniformdev/canvas-next-rsc-shared";
678
+ import { runPersonalization as runPersonalization3 } from "@uniformdev/canvas-next-rsc-shared";
684
679
  import React5 from "react";
685
680
  var PersonalizeServerHybrid = (props) => {
686
- const { indexes } = runPersonalization2(props);
681
+ const { indexes } = runPersonalization3(props);
687
682
  return /* @__PURE__ */ React5.createElement(
688
683
  PersonalizeClient2,
689
684
  {
@@ -691,7 +686,6 @@ var PersonalizeServerHybrid = (props) => {
691
686
  count: props.count,
692
687
  slots: props.slots,
693
688
  trackingEventName: props.trackingEventName,
694
- algorithm: props.algorithm,
695
689
  indexes
696
690
  }
697
691
  );
package/dist/index.js CHANGED
@@ -457,7 +457,7 @@ async function generateStaticParams() {
457
457
  // src/components/UniformComposition.ts
458
458
  var import_canvas8 = require("@uniformdev/canvas");
459
459
  var import_canvas_next_rsc_client8 = require("@uniformdev/canvas-next-rsc-client");
460
- var import_canvas_next_rsc_shared6 = require("@uniformdev/canvas-next-rsc-shared");
460
+ var import_canvas_next_rsc_shared7 = require("@uniformdev/canvas-next-rsc-shared");
461
461
  var import_core = require("@uniformdev/canvas-react/core");
462
462
  var import_headers3 = require("next/headers");
463
463
  var import_navigation = require("next/navigation");
@@ -659,24 +659,19 @@ var ContextUpdateTrigger = ({ path }) => {
659
659
 
660
660
  // src/components/PersonalizeClientWrapper.tsx
661
661
  var import_canvas_next_rsc_client3 = require("@uniformdev/canvas-next-rsc-client");
662
+ var import_canvas_next_rsc_shared3 = require("@uniformdev/canvas-next-rsc-shared");
662
663
  var import_react3 = __toESM(require("react"));
663
664
  var PersonalizeClientWrapper = (props) => {
664
- return /* @__PURE__ */ import_react3.default.createElement(
665
- import_canvas_next_rsc_client3.PersonalizeClient,
666
- {
667
- component: props.component,
668
- count: props.count,
669
- slots: props.slots,
670
- trackingEventName: props.trackingEventName,
671
- algorithm: props.algorithm,
672
- indexes: []
673
- }
674
- );
665
+ const { indexes } = (0, import_canvas_next_rsc_shared3.runPersonalization)({
666
+ ...props,
667
+ contextInstance: void 0
668
+ });
669
+ return /* @__PURE__ */ import_react3.default.createElement(import_canvas_next_rsc_client3.PersonalizeClient, { ...props, indexes });
675
670
  };
676
671
 
677
672
  // src/components/PersonalizeServer.ts
678
673
  var import_canvas5 = require("@uniformdev/canvas");
679
- var import_canvas_next_rsc_shared3 = require("@uniformdev/canvas-next-rsc-shared");
674
+ var import_canvas_next_rsc_shared4 = require("@uniformdev/canvas-next-rsc-shared");
680
675
  var import_cache = require("next/cache");
681
676
  var import_react5 = require("react");
682
677
 
@@ -693,7 +688,7 @@ var PersonalizeServer = (props) => {
693
688
  if ((_a = getServerConfig().ppr) == null ? void 0 : _a.personalizationSuspense) {
694
689
  (0, import_cache.unstable_noStore)();
695
690
  }
696
- const { indexes, event } = (0, import_canvas_next_rsc_shared3.runPersonalization)(props);
691
+ const { indexes, event } = (0, import_canvas_next_rsc_shared4.runPersonalization)(props);
697
692
  const slot = (_b = props.slots) == null ? void 0 : _b[import_canvas5.CANVAS_PERSONALIZE_SLOT];
698
693
  const components = indexes.map((index) => {
699
694
  const component = slot.items[index];
@@ -708,10 +703,10 @@ var PersonalizeServer = (props) => {
708
703
 
709
704
  // src/components/PersonalizeServerHybrid.tsx
710
705
  var import_canvas_next_rsc_client5 = require("@uniformdev/canvas-next-rsc-client");
711
- var import_canvas_next_rsc_shared4 = require("@uniformdev/canvas-next-rsc-shared");
706
+ var import_canvas_next_rsc_shared5 = require("@uniformdev/canvas-next-rsc-shared");
712
707
  var import_react6 = __toESM(require("react"));
713
708
  var PersonalizeServerHybrid = (props) => {
714
- const { indexes } = (0, import_canvas_next_rsc_shared4.runPersonalization)(props);
709
+ const { indexes } = (0, import_canvas_next_rsc_shared5.runPersonalization)(props);
715
710
  return /* @__PURE__ */ import_react6.default.createElement(
716
711
  import_canvas_next_rsc_client5.PersonalizeClient,
717
712
  {
@@ -719,7 +714,6 @@ var PersonalizeServerHybrid = (props) => {
719
714
  count: props.count,
720
715
  slots: props.slots,
721
716
  trackingEventName: props.trackingEventName,
722
- algorithm: props.algorithm,
723
717
  indexes
724
718
  }
725
719
  );
@@ -727,7 +721,7 @@ var PersonalizeServerHybrid = (props) => {
727
721
 
728
722
  // src/components/TestServer.ts
729
723
  var import_canvas6 = require("@uniformdev/canvas");
730
- var import_canvas_next_rsc_shared5 = require("@uniformdev/canvas-next-rsc-shared");
724
+ var import_canvas_next_rsc_shared6 = require("@uniformdev/canvas-next-rsc-shared");
731
725
  var import_cache2 = require("next/cache");
732
726
  var import_react8 = require("react");
733
727
 
@@ -744,7 +738,7 @@ var TestServer = async (props) => {
744
738
  if ((_a = getServerConfig().ppr) == null ? void 0 : _a.testSuspense) {
745
739
  (0, import_cache2.unstable_noStore)();
746
740
  }
747
- const { index, event } = (0, import_canvas_next_rsc_shared5.runTest)(props);
741
+ const { index, event } = (0, import_canvas_next_rsc_shared6.runTest)(props);
748
742
  if (index === null || event === null) {
749
743
  return null;
750
744
  }
@@ -791,7 +785,7 @@ var UniformComposition = async ({
791
785
  });
792
786
  }
793
787
  const awaitedParams = await props.params;
794
- const { value: path } = (0, import_canvas_next_rsc_shared6.resolvePath)({
788
+ const { value: path } = (0, import_canvas_next_rsc_shared7.resolvePath)({
795
789
  params: awaitedParams
796
790
  });
797
791
  if (!route || route.type === "notFound") {
package/dist/index.mjs CHANGED
@@ -631,24 +631,19 @@ var ContextUpdateTrigger = ({ path }) => {
631
631
 
632
632
  // src/components/PersonalizeClientWrapper.tsx
633
633
  import { PersonalizeClient } from "@uniformdev/canvas-next-rsc-client";
634
+ import { runPersonalization } from "@uniformdev/canvas-next-rsc-shared";
634
635
  import React3 from "react";
635
636
  var PersonalizeClientWrapper = (props) => {
636
- return /* @__PURE__ */ React3.createElement(
637
- PersonalizeClient,
638
- {
639
- component: props.component,
640
- count: props.count,
641
- slots: props.slots,
642
- trackingEventName: props.trackingEventName,
643
- algorithm: props.algorithm,
644
- indexes: []
645
- }
646
- );
637
+ const { indexes } = runPersonalization({
638
+ ...props,
639
+ contextInstance: void 0
640
+ });
641
+ return /* @__PURE__ */ React3.createElement(PersonalizeClient, { ...props, indexes });
647
642
  };
648
643
 
649
644
  // src/components/PersonalizeServer.ts
650
645
  import { CANVAS_PERSONALIZE_SLOT } from "@uniformdev/canvas";
651
- import { runPersonalization } from "@uniformdev/canvas-next-rsc-shared";
646
+ import { runPersonalization as runPersonalization2 } from "@uniformdev/canvas-next-rsc-shared";
652
647
  import { unstable_noStore as noStore } from "next/cache";
653
648
  import { createElement, Fragment } from "react";
654
649
 
@@ -665,7 +660,7 @@ var PersonalizeServer = (props) => {
665
660
  if ((_a = getServerConfig().ppr) == null ? void 0 : _a.personalizationSuspense) {
666
661
  noStore();
667
662
  }
668
- const { indexes, event } = runPersonalization(props);
663
+ const { indexes, event } = runPersonalization2(props);
669
664
  const slot = (_b = props.slots) == null ? void 0 : _b[CANVAS_PERSONALIZE_SLOT];
670
665
  const components = indexes.map((index) => {
671
666
  const component = slot.items[index];
@@ -680,10 +675,10 @@ var PersonalizeServer = (props) => {
680
675
 
681
676
  // src/components/PersonalizeServerHybrid.tsx
682
677
  import { PersonalizeClient as PersonalizeClient2 } from "@uniformdev/canvas-next-rsc-client";
683
- import { runPersonalization as runPersonalization2 } from "@uniformdev/canvas-next-rsc-shared";
678
+ import { runPersonalization as runPersonalization3 } from "@uniformdev/canvas-next-rsc-shared";
684
679
  import React5 from "react";
685
680
  var PersonalizeServerHybrid = (props) => {
686
- const { indexes } = runPersonalization2(props);
681
+ const { indexes } = runPersonalization3(props);
687
682
  return /* @__PURE__ */ React5.createElement(
688
683
  PersonalizeClient2,
689
684
  {
@@ -691,7 +686,6 @@ var PersonalizeServerHybrid = (props) => {
691
686
  count: props.count,
692
687
  slots: props.slots,
693
688
  trackingEventName: props.trackingEventName,
694
- algorithm: props.algorithm,
695
689
  indexes
696
690
  }
697
691
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next-rsc",
3
- "version": "20.6.2-alpha.11+af78064791",
3
+ "version": "20.7.1-alpha.12+75bdbe8f17",
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.6.2-alpha.11+af78064791",
65
- "@uniformdev/canvas-next-rsc-client": "^20.6.2-alpha.11+af78064791",
66
- "@uniformdev/canvas-next-rsc-shared": "^20.6.2-alpha.11+af78064791",
67
- "@uniformdev/canvas-react": "20.6.2-alpha.11+af78064791",
68
- "@uniformdev/context": "20.6.2-alpha.11+af78064791",
69
- "@uniformdev/project-map": "20.6.2-alpha.11+af78064791",
70
- "@uniformdev/redirect": "20.6.2-alpha.11+af78064791",
71
- "@uniformdev/richtext": "20.6.2-alpha.11+af78064791",
72
- "@uniformdev/webhooks": "20.6.2-alpha.11+af78064791",
64
+ "@uniformdev/canvas": "20.7.1-alpha.12+75bdbe8f17",
65
+ "@uniformdev/canvas-next-rsc-client": "^20.7.1-alpha.12+75bdbe8f17",
66
+ "@uniformdev/canvas-next-rsc-shared": "^20.7.1-alpha.12+75bdbe8f17",
67
+ "@uniformdev/canvas-react": "20.7.1-alpha.12+75bdbe8f17",
68
+ "@uniformdev/context": "20.7.1-alpha.12+75bdbe8f17",
69
+ "@uniformdev/project-map": "20.7.1-alpha.12+75bdbe8f17",
70
+ "@uniformdev/redirect": "20.7.1-alpha.12+75bdbe8f17",
71
+ "@uniformdev/richtext": "20.7.1-alpha.12+75bdbe8f17",
72
+ "@uniformdev/webhooks": "20.7.1-alpha.12+75bdbe8f17",
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": "af78064791c47044f8ba447bbe1221f672f6de3e"
89
+ "gitHead": "75bdbe8f179a18d65e3460f795a657c69349a7dc"
90
90
  }