@uniformdev/canvas-next-rsc-client 20.3.1-alpha.7 → 20.4.1-alpha.3

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
@@ -727,6 +727,7 @@ var _pzCache;
727
727
  var _plugins;
728
728
  var _commands;
729
729
  var _requireConsentForPersonalization;
730
+ var _rankPersonalizationVariant;
730
731
  var _mitt3;
731
732
  var _Context_instances;
732
733
  var emitTest_fn;
@@ -740,6 +741,7 @@ _pzCache = /* @__PURE__ */ new WeakMap();
740
741
  _plugins = /* @__PURE__ */ new WeakMap();
741
742
  _commands = /* @__PURE__ */ new WeakMap();
742
743
  _requireConsentForPersonalization = /* @__PURE__ */ new WeakMap();
744
+ _rankPersonalizationVariant = /* @__PURE__ */ new WeakMap();
743
745
  _mitt3 = /* @__PURE__ */ new WeakMap();
744
746
  _Context_instances = /* @__PURE__ */ new WeakSet();
745
747
  emitTest_fn = function(event) {
@@ -958,11 +960,9 @@ var PersonalizeClient = (props) => {
958
960
  setIndexesToShow(result.indexes);
959
961
  };
960
962
  context.events.on("scoresUpdated", handleRunPersonalization);
961
- context.events.on("quirksUpdated", handleRunPersonalization);
962
963
  handleRunPersonalization();
963
964
  return () => {
964
965
  context.events.off("scoresUpdated", handleRunPersonalization);
965
- context.events.off("quirksUpdated", handleRunPersonalization);
966
966
  };
967
967
  }, [props, context]);
968
968
  const slotsToShow = indexesToShow.map((key) => {
package/dist/index.js CHANGED
@@ -753,6 +753,7 @@ var _pzCache;
753
753
  var _plugins;
754
754
  var _commands;
755
755
  var _requireConsentForPersonalization;
756
+ var _rankPersonalizationVariant;
756
757
  var _mitt3;
757
758
  var _Context_instances;
758
759
  var emitTest_fn;
@@ -766,6 +767,7 @@ _pzCache = /* @__PURE__ */ new WeakMap();
766
767
  _plugins = /* @__PURE__ */ new WeakMap();
767
768
  _commands = /* @__PURE__ */ new WeakMap();
768
769
  _requireConsentForPersonalization = /* @__PURE__ */ new WeakMap();
770
+ _rankPersonalizationVariant = /* @__PURE__ */ new WeakMap();
769
771
  _mitt3 = /* @__PURE__ */ new WeakMap();
770
772
  _Context_instances = /* @__PURE__ */ new WeakSet();
771
773
  emitTest_fn = function(event) {
@@ -984,11 +986,9 @@ var PersonalizeClient = (props) => {
984
986
  setIndexesToShow(result.indexes);
985
987
  };
986
988
  context.events.on("scoresUpdated", handleRunPersonalization);
987
- context.events.on("quirksUpdated", handleRunPersonalization);
988
989
  handleRunPersonalization();
989
990
  return () => {
990
991
  context.events.off("scoresUpdated", handleRunPersonalization);
991
- context.events.off("quirksUpdated", handleRunPersonalization);
992
992
  };
993
993
  }, [props, context]);
994
994
  const slotsToShow = indexesToShow.map((key) => {
package/dist/index.mjs CHANGED
@@ -727,6 +727,7 @@ var _pzCache;
727
727
  var _plugins;
728
728
  var _commands;
729
729
  var _requireConsentForPersonalization;
730
+ var _rankPersonalizationVariant;
730
731
  var _mitt3;
731
732
  var _Context_instances;
732
733
  var emitTest_fn;
@@ -740,6 +741,7 @@ _pzCache = /* @__PURE__ */ new WeakMap();
740
741
  _plugins = /* @__PURE__ */ new WeakMap();
741
742
  _commands = /* @__PURE__ */ new WeakMap();
742
743
  _requireConsentForPersonalization = /* @__PURE__ */ new WeakMap();
744
+ _rankPersonalizationVariant = /* @__PURE__ */ new WeakMap();
743
745
  _mitt3 = /* @__PURE__ */ new WeakMap();
744
746
  _Context_instances = /* @__PURE__ */ new WeakSet();
745
747
  emitTest_fn = function(event) {
@@ -958,11 +960,9 @@ var PersonalizeClient = (props) => {
958
960
  setIndexesToShow(result.indexes);
959
961
  };
960
962
  context.events.on("scoresUpdated", handleRunPersonalization);
961
- context.events.on("quirksUpdated", handleRunPersonalization);
962
963
  handleRunPersonalization();
963
964
  return () => {
964
965
  context.events.off("scoresUpdated", handleRunPersonalization);
965
- context.events.off("quirksUpdated", handleRunPersonalization);
966
966
  };
967
967
  }, [props, context]);
968
968
  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.3.1-alpha.7+bede5bf489",
3
+ "version": "20.4.1-alpha.3+bc2e6fc5f7",
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.3.1-alpha.7+bede5bf489",
37
- "@uniformdev/canvas-next-rsc-shared": "^20.3.1-alpha.7+bede5bf489",
38
- "@uniformdev/canvas-react": "^20.3.1-alpha.7+bede5bf489"
36
+ "@uniformdev/canvas": "20.4.1-alpha.3+bc2e6fc5f7",
37
+ "@uniformdev/canvas-next-rsc-shared": "^20.4.1-alpha.3+bc2e6fc5f7",
38
+ "@uniformdev/canvas-react": "^20.4.1-alpha.3+bc2e6fc5f7"
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": "bede5bf4893bf814af6aba78a558e28efd9f5682"
51
+ "gitHead": "bc2e6fc5f7d2920e46605385db043782f023bbbb"
52
52
  }