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