@uniformdev/canvas-next-rsc-client 20.2.0 → 20.3.1-alpha.7
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 +2 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -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
|
@@ -958,9 +958,11 @@ var PersonalizeClient = (props) => {
|
|
|
958
958
|
setIndexesToShow(result.indexes);
|
|
959
959
|
};
|
|
960
960
|
context.events.on("scoresUpdated", handleRunPersonalization);
|
|
961
|
+
context.events.on("quirksUpdated", handleRunPersonalization);
|
|
961
962
|
handleRunPersonalization();
|
|
962
963
|
return () => {
|
|
963
964
|
context.events.off("scoresUpdated", handleRunPersonalization);
|
|
965
|
+
context.events.off("quirksUpdated", handleRunPersonalization);
|
|
964
966
|
};
|
|
965
967
|
}, [props, context]);
|
|
966
968
|
const slotsToShow = indexesToShow.map((key) => {
|
package/dist/index.js
CHANGED
|
@@ -984,9 +984,11 @@ var PersonalizeClient = (props) => {
|
|
|
984
984
|
setIndexesToShow(result.indexes);
|
|
985
985
|
};
|
|
986
986
|
context.events.on("scoresUpdated", handleRunPersonalization);
|
|
987
|
+
context.events.on("quirksUpdated", handleRunPersonalization);
|
|
987
988
|
handleRunPersonalization();
|
|
988
989
|
return () => {
|
|
989
990
|
context.events.off("scoresUpdated", handleRunPersonalization);
|
|
991
|
+
context.events.off("quirksUpdated", handleRunPersonalization);
|
|
990
992
|
};
|
|
991
993
|
}, [props, context]);
|
|
992
994
|
const slotsToShow = indexesToShow.map((key) => {
|
package/dist/index.mjs
CHANGED
|
@@ -958,9 +958,11 @@ var PersonalizeClient = (props) => {
|
|
|
958
958
|
setIndexesToShow(result.indexes);
|
|
959
959
|
};
|
|
960
960
|
context.events.on("scoresUpdated", handleRunPersonalization);
|
|
961
|
+
context.events.on("quirksUpdated", handleRunPersonalization);
|
|
961
962
|
handleRunPersonalization();
|
|
962
963
|
return () => {
|
|
963
964
|
context.events.off("scoresUpdated", handleRunPersonalization);
|
|
965
|
+
context.events.off("quirksUpdated", handleRunPersonalization);
|
|
964
966
|
};
|
|
965
967
|
}, [props, context]);
|
|
966
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
|
+
"version": "20.3.1-alpha.7+bede5bf489",
|
|
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.
|
|
37
|
-
"@uniformdev/canvas-next-rsc-shared": "^20.
|
|
38
|
-
"@uniformdev/canvas-react": "^20.
|
|
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"
|
|
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": "bede5bf4893bf814af6aba78a558e28efd9f5682"
|
|
52
52
|
}
|