@uniformdev/canvas-next-rsc-client 20.74.7-alpha.12 → 20.74.7-alpha.15.sha-2e86ba8d87
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 +1 -13
- package/dist/index.js +1 -11
- package/dist/index.mjs +1 -13
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -20,7 +20,7 @@ type ClientContextComponentProps = {
|
|
|
20
20
|
*/
|
|
21
21
|
defaultConsent: boolean;
|
|
22
22
|
/**
|
|
23
|
-
* @deprecated
|
|
23
|
+
* @deprecated Prefer the supported quirk serialization configuration.
|
|
24
24
|
* Whether or not to enable the experimental quirk serialization
|
|
25
25
|
*/
|
|
26
26
|
experimentalQuirkSerialization: boolean;
|
|
@@ -95,7 +95,7 @@ type UseUniformContextualEditingStateProps = {
|
|
|
95
95
|
/**
|
|
96
96
|
* When not set, the hook will return the global contextual state no matter where its used.
|
|
97
97
|
* When set, it will return only the state relevant to the component passed.
|
|
98
|
-
* @
|
|
98
|
+
* @defaultValue undefined
|
|
99
99
|
**/
|
|
100
100
|
scope?: ComponentInstance;
|
|
101
101
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ type ClientContextComponentProps = {
|
|
|
20
20
|
*/
|
|
21
21
|
defaultConsent: boolean;
|
|
22
22
|
/**
|
|
23
|
-
* @deprecated
|
|
23
|
+
* @deprecated Prefer the supported quirk serialization configuration.
|
|
24
24
|
* Whether or not to enable the experimental quirk serialization
|
|
25
25
|
*/
|
|
26
26
|
experimentalQuirkSerialization: boolean;
|
|
@@ -95,7 +95,7 @@ type UseUniformContextualEditingStateProps = {
|
|
|
95
95
|
/**
|
|
96
96
|
* When not set, the hook will return the global contextual state no matter where its used.
|
|
97
97
|
* When set, it will return only the state relevant to the component passed.
|
|
98
|
-
* @
|
|
98
|
+
* @defaultValue undefined
|
|
99
99
|
**/
|
|
100
100
|
scope?: ComponentInstance;
|
|
101
101
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -942,15 +942,12 @@ var UniformScript = () => {
|
|
|
942
942
|
if (typeof window === "undefined") {
|
|
943
943
|
return;
|
|
944
944
|
}
|
|
945
|
-
if (!enabled || !isAllowedReferrer(window.document.referrer)) {
|
|
946
|
-
return;
|
|
947
|
-
}
|
|
948
945
|
const instance = createCanvasChannel({
|
|
949
946
|
broadcastTo: [(_a = window.opener) != null ? _a : window.top],
|
|
950
947
|
listenTo: [window]
|
|
951
948
|
});
|
|
952
949
|
return instance;
|
|
953
|
-
}, [
|
|
950
|
+
}, []);
|
|
954
951
|
useEffect8(() => {
|
|
955
952
|
if (!channel) {
|
|
956
953
|
return;
|
|
@@ -1096,8 +1093,6 @@ function useScores() {
|
|
|
1096
1093
|
// src/hooks/useUniformContextualEditingState.ts
|
|
1097
1094
|
import {
|
|
1098
1095
|
createCanvasChannel as createCanvasChannel2,
|
|
1099
|
-
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM as IN_CONTEXT_EDITOR_QUERY_STRING_PARAM3,
|
|
1100
|
-
isAllowedReferrer as isAllowedReferrer2,
|
|
1101
1096
|
isUpdateContextualEditingStateInternalMessage
|
|
1102
1097
|
} from "@uniformdev/canvas";
|
|
1103
1098
|
import { useEffect as useEffect12, useMemo as useMemo4, useState as useState10 } from "react";
|
|
@@ -1106,13 +1101,6 @@ var useUniformContextualEditingState = ({
|
|
|
1106
1101
|
} = {}) => {
|
|
1107
1102
|
const [selectedComponentReference, setSelectedComponentReference] = useState10();
|
|
1108
1103
|
const channel = useMemo4(() => {
|
|
1109
|
-
if (typeof window === "undefined") {
|
|
1110
|
-
return;
|
|
1111
|
-
}
|
|
1112
|
-
const enabled = new URLSearchParams(window.location.search).get(IN_CONTEXT_EDITOR_QUERY_STRING_PARAM3) === "true";
|
|
1113
|
-
if (!enabled || !isAllowedReferrer2(window.document.referrer)) {
|
|
1114
|
-
return;
|
|
1115
|
-
}
|
|
1116
1104
|
const channel2 = createCanvasChannel2({
|
|
1117
1105
|
broadcastTo: [window],
|
|
1118
1106
|
listenTo: [window]
|
package/dist/index.js
CHANGED
|
@@ -963,15 +963,12 @@ var UniformScript = () => {
|
|
|
963
963
|
if (typeof window === "undefined") {
|
|
964
964
|
return;
|
|
965
965
|
}
|
|
966
|
-
if (!enabled || !(0, import_canvas4.isAllowedReferrer)(window.document.referrer)) {
|
|
967
|
-
return;
|
|
968
|
-
}
|
|
969
966
|
const instance = (0, import_canvas4.createCanvasChannel)({
|
|
970
967
|
broadcastTo: [(_a = window.opener) != null ? _a : window.top],
|
|
971
968
|
listenTo: [window]
|
|
972
969
|
});
|
|
973
970
|
return instance;
|
|
974
|
-
}, [
|
|
971
|
+
}, []);
|
|
975
972
|
(0, import_react10.useEffect)(() => {
|
|
976
973
|
if (!channel) {
|
|
977
974
|
return;
|
|
@@ -1119,13 +1116,6 @@ var useUniformContextualEditingState = ({
|
|
|
1119
1116
|
} = {}) => {
|
|
1120
1117
|
const [selectedComponentReference, setSelectedComponentReference] = (0, import_react14.useState)();
|
|
1121
1118
|
const channel = (0, import_react14.useMemo)(() => {
|
|
1122
|
-
if (typeof window === "undefined") {
|
|
1123
|
-
return;
|
|
1124
|
-
}
|
|
1125
|
-
const enabled = new URLSearchParams(window.location.search).get(import_canvas6.IN_CONTEXT_EDITOR_QUERY_STRING_PARAM) === "true";
|
|
1126
|
-
if (!enabled || !(0, import_canvas6.isAllowedReferrer)(window.document.referrer)) {
|
|
1127
|
-
return;
|
|
1128
|
-
}
|
|
1129
1119
|
const channel2 = (0, import_canvas6.createCanvasChannel)({
|
|
1130
1120
|
broadcastTo: [window],
|
|
1131
1121
|
listenTo: [window]
|
package/dist/index.mjs
CHANGED
|
@@ -942,15 +942,12 @@ var UniformScript = () => {
|
|
|
942
942
|
if (typeof window === "undefined") {
|
|
943
943
|
return;
|
|
944
944
|
}
|
|
945
|
-
if (!enabled || !isAllowedReferrer(window.document.referrer)) {
|
|
946
|
-
return;
|
|
947
|
-
}
|
|
948
945
|
const instance = createCanvasChannel({
|
|
949
946
|
broadcastTo: [(_a = window.opener) != null ? _a : window.top],
|
|
950
947
|
listenTo: [window]
|
|
951
948
|
});
|
|
952
949
|
return instance;
|
|
953
|
-
}, [
|
|
950
|
+
}, []);
|
|
954
951
|
useEffect8(() => {
|
|
955
952
|
if (!channel) {
|
|
956
953
|
return;
|
|
@@ -1096,8 +1093,6 @@ function useScores() {
|
|
|
1096
1093
|
// src/hooks/useUniformContextualEditingState.ts
|
|
1097
1094
|
import {
|
|
1098
1095
|
createCanvasChannel as createCanvasChannel2,
|
|
1099
|
-
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM as IN_CONTEXT_EDITOR_QUERY_STRING_PARAM3,
|
|
1100
|
-
isAllowedReferrer as isAllowedReferrer2,
|
|
1101
1096
|
isUpdateContextualEditingStateInternalMessage
|
|
1102
1097
|
} from "@uniformdev/canvas";
|
|
1103
1098
|
import { useEffect as useEffect12, useMemo as useMemo4, useState as useState10 } from "react";
|
|
@@ -1106,13 +1101,6 @@ var useUniformContextualEditingState = ({
|
|
|
1106
1101
|
} = {}) => {
|
|
1107
1102
|
const [selectedComponentReference, setSelectedComponentReference] = useState10();
|
|
1108
1103
|
const channel = useMemo4(() => {
|
|
1109
|
-
if (typeof window === "undefined") {
|
|
1110
|
-
return;
|
|
1111
|
-
}
|
|
1112
|
-
const enabled = new URLSearchParams(window.location.search).get(IN_CONTEXT_EDITOR_QUERY_STRING_PARAM3) === "true";
|
|
1113
|
-
if (!enabled || !isAllowedReferrer2(window.document.referrer)) {
|
|
1114
|
-
return;
|
|
1115
|
-
}
|
|
1116
1104
|
const channel2 = createCanvasChannel2({
|
|
1117
1105
|
broadcastTo: [window],
|
|
1118
1106
|
listenTo: [window]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc-client",
|
|
3
|
-
"version": "20.74.7-alpha.
|
|
3
|
+
"version": "20.74.7-alpha.15.sha-2e86ba8d87",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"@types/js-cookie": "3.0.6",
|
|
29
29
|
"@types/node": "26.0.0",
|
|
30
30
|
"@types/react": "19.2.17",
|
|
31
|
-
"next": "
|
|
31
|
+
"next": "16.3.1",
|
|
32
32
|
"react": "19.2.1",
|
|
33
33
|
"react-dom": "19.2.1",
|
|
34
34
|
"typescript": "6.0.3"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@uniformdev/canvas": "20.74.7-alpha.
|
|
38
|
-
"@uniformdev/canvas-next-rsc-shared": "20.74.7-alpha.
|
|
39
|
-
"@uniformdev/canvas-react": "20.74.7-alpha.
|
|
37
|
+
"@uniformdev/canvas": "20.74.7-alpha.15.sha-2e86ba8d87",
|
|
38
|
+
"@uniformdev/canvas-next-rsc-shared": "20.74.7-alpha.15.sha-2e86ba8d87",
|
|
39
|
+
"@uniformdev/canvas-react": "20.74.7-alpha.15.sha-2e86ba8d87",
|
|
40
40
|
"js-cookie": "3.0.8"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "2e86ba8d87b7176b519d928189d131385ae6cab5"
|
|
54
54
|
}
|