@uniformdev/canvas-next-rsc-client 20.6.2-alpha.10 → 20.6.5-alpha.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ManifestV2, TestEvent, Quirks, ScoreVector } from '@uniformdev/context';
2
2
  import * as react from 'react';
3
- import { ReactNode, PropsWithChildren } from 'react';
3
+ import { JSX, PropsWithChildren } from 'react';
4
4
  import { PersonalizationEvent } from '@uniformdev/context/*';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { PureContextualEditingComponentWrapperProps } from '@uniformdev/canvas-react/core';
@@ -27,7 +27,7 @@ type ClientContextComponentProps = {
27
27
  */
28
28
  experimentalQuirkSerialization: boolean;
29
29
  };
30
- type ClientContextComponent = (props: ClientContextComponentProps) => ReactNode;
30
+ type ClientContextComponent = (props: ClientContextComponentProps) => JSX.Element | null;
31
31
 
32
32
  declare const ClientContextPersonalizationTransfer: ({ event, ts, }: {
33
33
  event: PersonalizationEvent;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ManifestV2, TestEvent, Quirks, ScoreVector } from '@uniformdev/context';
2
2
  import * as react from 'react';
3
- import { ReactNode, PropsWithChildren } from 'react';
3
+ import { JSX, PropsWithChildren } from 'react';
4
4
  import { PersonalizationEvent } from '@uniformdev/context/*';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { PureContextualEditingComponentWrapperProps } from '@uniformdev/canvas-react/core';
@@ -27,7 +27,7 @@ type ClientContextComponentProps = {
27
27
  */
28
28
  experimentalQuirkSerialization: boolean;
29
29
  };
30
- type ClientContextComponent = (props: ClientContextComponentProps) => ReactNode;
30
+ type ClientContextComponent = (props: ClientContextComponentProps) => JSX.Element | null;
31
31
 
32
32
  declare const ClientContextPersonalizationTransfer: ({ event, ts, }: {
33
33
  event: PersonalizationEvent;
package/dist/index.esm.js CHANGED
@@ -720,7 +720,6 @@ defaultData_fn = function() {
720
720
  controlGroup: (_c = (_b = __privateGet(this, _options).manifest) == null ? void 0 : _b.rollForControlGroup()) != null ? _c : false
721
721
  };
722
722
  };
723
- var _personalizationSelectionAlgorithms;
724
723
  var _serverTransitionState;
725
724
  var _scores;
726
725
  var _state;
@@ -734,7 +733,6 @@ var emitTest_fn;
734
733
  var updateGoals_fn;
735
734
  var updateComputedScores_fn;
736
735
  var calculateScores_fn;
737
- _personalizationSelectionAlgorithms = /* @__PURE__ */ new WeakMap();
738
736
  _serverTransitionState = /* @__PURE__ */ new WeakMap();
739
737
  _scores = /* @__PURE__ */ new WeakMap();
740
738
  _state = /* @__PURE__ */ new WeakMap();
@@ -960,11 +958,9 @@ var PersonalizeClient = (props) => {
960
958
  setIndexesToShow(result.indexes);
961
959
  };
962
960
  context.events.on("scoresUpdated", handleRunPersonalization);
963
- context.events.on("quirksUpdated", handleRunPersonalization);
964
961
  handleRunPersonalization();
965
962
  return () => {
966
963
  context.events.off("scoresUpdated", handleRunPersonalization);
967
- context.events.off("quirksUpdated", handleRunPersonalization);
968
964
  };
969
965
  }, [props, context]);
970
966
  const slotsToShow = indexesToShow.map((key) => {
package/dist/index.js CHANGED
@@ -746,7 +746,6 @@ defaultData_fn = function() {
746
746
  controlGroup: (_c = (_b = __privateGet(this, _options).manifest) == null ? void 0 : _b.rollForControlGroup()) != null ? _c : false
747
747
  };
748
748
  };
749
- var _personalizationSelectionAlgorithms;
750
749
  var _serverTransitionState;
751
750
  var _scores;
752
751
  var _state;
@@ -760,7 +759,6 @@ var emitTest_fn;
760
759
  var updateGoals_fn;
761
760
  var updateComputedScores_fn;
762
761
  var calculateScores_fn;
763
- _personalizationSelectionAlgorithms = /* @__PURE__ */ new WeakMap();
764
762
  _serverTransitionState = /* @__PURE__ */ new WeakMap();
765
763
  _scores = /* @__PURE__ */ new WeakMap();
766
764
  _state = /* @__PURE__ */ new WeakMap();
@@ -986,11 +984,9 @@ var PersonalizeClient = (props) => {
986
984
  setIndexesToShow(result.indexes);
987
985
  };
988
986
  context.events.on("scoresUpdated", handleRunPersonalization);
989
- context.events.on("quirksUpdated", handleRunPersonalization);
990
987
  handleRunPersonalization();
991
988
  return () => {
992
989
  context.events.off("scoresUpdated", handleRunPersonalization);
993
- context.events.off("quirksUpdated", handleRunPersonalization);
994
990
  };
995
991
  }, [props, context]);
996
992
  const slotsToShow = indexesToShow.map((key) => {
package/dist/index.mjs CHANGED
@@ -720,7 +720,6 @@ defaultData_fn = function() {
720
720
  controlGroup: (_c = (_b = __privateGet(this, _options).manifest) == null ? void 0 : _b.rollForControlGroup()) != null ? _c : false
721
721
  };
722
722
  };
723
- var _personalizationSelectionAlgorithms;
724
723
  var _serverTransitionState;
725
724
  var _scores;
726
725
  var _state;
@@ -734,7 +733,6 @@ var emitTest_fn;
734
733
  var updateGoals_fn;
735
734
  var updateComputedScores_fn;
736
735
  var calculateScores_fn;
737
- _personalizationSelectionAlgorithms = /* @__PURE__ */ new WeakMap();
738
736
  _serverTransitionState = /* @__PURE__ */ new WeakMap();
739
737
  _scores = /* @__PURE__ */ new WeakMap();
740
738
  _state = /* @__PURE__ */ new WeakMap();
@@ -960,11 +958,9 @@ var PersonalizeClient = (props) => {
960
958
  setIndexesToShow(result.indexes);
961
959
  };
962
960
  context.events.on("scoresUpdated", handleRunPersonalization);
963
- context.events.on("quirksUpdated", handleRunPersonalization);
964
961
  handleRunPersonalization();
965
962
  return () => {
966
963
  context.events.off("scoresUpdated", handleRunPersonalization);
967
- context.events.off("quirksUpdated", handleRunPersonalization);
968
964
  };
969
965
  }, [props, context]);
970
966
  const slotsToShow = indexesToShow.map((key) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next-rsc-client",
3
- "version": "20.6.2-alpha.10+ff8a28da1a",
3
+ "version": "20.6.5-alpha.1+1b1a069415",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -33,9 +33,9 @@
33
33
  "typescript": "5.7.2"
34
34
  },
35
35
  "dependencies": {
36
- "@uniformdev/canvas": "20.6.2-alpha.10+ff8a28da1a",
37
- "@uniformdev/canvas-next-rsc-shared": "^20.6.2-alpha.10+ff8a28da1a",
38
- "@uniformdev/canvas-react": "^20.6.2-alpha.10+ff8a28da1a"
36
+ "@uniformdev/canvas": "20.6.5-alpha.1+1b1a069415",
37
+ "@uniformdev/canvas-next-rsc-shared": "^20.6.5-alpha.1+1b1a069415",
38
+ "@uniformdev/canvas-react": "^20.6.5-alpha.1+1b1a069415"
39
39
  },
40
40
  "engines": {
41
41
  "node": "^18.18.0 || ^19.8.0 || >= 20.0.0"
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "ff8a28da1a7c11416e5585bc4cb66032bcb6ab53"
51
+ "gitHead": "1b1a06941575fefd19f3ab5621a0c403aa2cf7d5"
52
52
  }