@uniformdev/canvas-next-rsc-client 20.6.1 → 20.6.2-alpha.10
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +4 -0
- package/dist/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +5 -5
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 {
|
|
3
|
+
import { ReactNode, 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) =>
|
|
30
|
+
type ClientContextComponent = (props: ClientContextComponentProps) => ReactNode;
|
|
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 {
|
|
3
|
+
import { ReactNode, 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) =>
|
|
30
|
+
type ClientContextComponent = (props: ClientContextComponentProps) => ReactNode;
|
|
31
31
|
|
|
32
32
|
declare const ClientContextPersonalizationTransfer: ({ event, ts, }: {
|
|
33
33
|
event: PersonalizationEvent;
|
package/dist/index.esm.js
CHANGED
|
@@ -720,6 +720,7 @@ 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;
|
|
723
724
|
var _serverTransitionState;
|
|
724
725
|
var _scores;
|
|
725
726
|
var _state;
|
|
@@ -733,6 +734,7 @@ var emitTest_fn;
|
|
|
733
734
|
var updateGoals_fn;
|
|
734
735
|
var updateComputedScores_fn;
|
|
735
736
|
var calculateScores_fn;
|
|
737
|
+
_personalizationSelectionAlgorithms = /* @__PURE__ */ new WeakMap();
|
|
736
738
|
_serverTransitionState = /* @__PURE__ */ new WeakMap();
|
|
737
739
|
_scores = /* @__PURE__ */ new WeakMap();
|
|
738
740
|
_state = /* @__PURE__ */ new WeakMap();
|
|
@@ -958,9 +960,11 @@ var PersonalizeClient = (props) => {
|
|
|
958
960
|
setIndexesToShow(result.indexes);
|
|
959
961
|
};
|
|
960
962
|
context.events.on("scoresUpdated", handleRunPersonalization);
|
|
963
|
+
context.events.on("quirksUpdated", handleRunPersonalization);
|
|
961
964
|
handleRunPersonalization();
|
|
962
965
|
return () => {
|
|
963
966
|
context.events.off("scoresUpdated", handleRunPersonalization);
|
|
967
|
+
context.events.off("quirksUpdated", handleRunPersonalization);
|
|
964
968
|
};
|
|
965
969
|
}, [props, context]);
|
|
966
970
|
const slotsToShow = indexesToShow.map((key) => {
|
package/dist/index.js
CHANGED
|
@@ -746,6 +746,7 @@ 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;
|
|
749
750
|
var _serverTransitionState;
|
|
750
751
|
var _scores;
|
|
751
752
|
var _state;
|
|
@@ -759,6 +760,7 @@ var emitTest_fn;
|
|
|
759
760
|
var updateGoals_fn;
|
|
760
761
|
var updateComputedScores_fn;
|
|
761
762
|
var calculateScores_fn;
|
|
763
|
+
_personalizationSelectionAlgorithms = /* @__PURE__ */ new WeakMap();
|
|
762
764
|
_serverTransitionState = /* @__PURE__ */ new WeakMap();
|
|
763
765
|
_scores = /* @__PURE__ */ new WeakMap();
|
|
764
766
|
_state = /* @__PURE__ */ new WeakMap();
|
|
@@ -984,9 +986,11 @@ var PersonalizeClient = (props) => {
|
|
|
984
986
|
setIndexesToShow(result.indexes);
|
|
985
987
|
};
|
|
986
988
|
context.events.on("scoresUpdated", handleRunPersonalization);
|
|
989
|
+
context.events.on("quirksUpdated", handleRunPersonalization);
|
|
987
990
|
handleRunPersonalization();
|
|
988
991
|
return () => {
|
|
989
992
|
context.events.off("scoresUpdated", handleRunPersonalization);
|
|
993
|
+
context.events.off("quirksUpdated", handleRunPersonalization);
|
|
990
994
|
};
|
|
991
995
|
}, [props, context]);
|
|
992
996
|
const slotsToShow = indexesToShow.map((key) => {
|
package/dist/index.mjs
CHANGED
|
@@ -720,6 +720,7 @@ 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;
|
|
723
724
|
var _serverTransitionState;
|
|
724
725
|
var _scores;
|
|
725
726
|
var _state;
|
|
@@ -733,6 +734,7 @@ var emitTest_fn;
|
|
|
733
734
|
var updateGoals_fn;
|
|
734
735
|
var updateComputedScores_fn;
|
|
735
736
|
var calculateScores_fn;
|
|
737
|
+
_personalizationSelectionAlgorithms = /* @__PURE__ */ new WeakMap();
|
|
736
738
|
_serverTransitionState = /* @__PURE__ */ new WeakMap();
|
|
737
739
|
_scores = /* @__PURE__ */ new WeakMap();
|
|
738
740
|
_state = /* @__PURE__ */ new WeakMap();
|
|
@@ -958,9 +960,11 @@ var PersonalizeClient = (props) => {
|
|
|
958
960
|
setIndexesToShow(result.indexes);
|
|
959
961
|
};
|
|
960
962
|
context.events.on("scoresUpdated", handleRunPersonalization);
|
|
963
|
+
context.events.on("quirksUpdated", handleRunPersonalization);
|
|
961
964
|
handleRunPersonalization();
|
|
962
965
|
return () => {
|
|
963
966
|
context.events.off("scoresUpdated", handleRunPersonalization);
|
|
967
|
+
context.events.off("quirksUpdated", handleRunPersonalization);
|
|
964
968
|
};
|
|
965
969
|
}, [props, context]);
|
|
966
970
|
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.
|
|
3
|
+
"version": "20.6.2-alpha.10+ff8a28da1a",
|
|
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.
|
|
37
|
-
"@uniformdev/canvas-next-rsc-shared": "^20.6.
|
|
38
|
-
"@uniformdev/canvas-react": "^20.6.
|
|
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"
|
|
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": "
|
|
51
|
+
"gitHead": "ff8a28da1a7c11416e5585bc4cb66032bcb6ab53"
|
|
52
52
|
}
|