@uniformdev/canvas-react 19.55.1-alpha.8 → 19.56.1-alpha.5
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.esm.js +2 -4
- package/dist/index.js +1 -4
- package/dist/index.mjs +2 -4
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -200,6 +200,7 @@ import {
|
|
|
200
200
|
EMPTY_COMPOSITION,
|
|
201
201
|
IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID,
|
|
202
202
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
|
|
203
|
+
isAllowedReferrer,
|
|
203
204
|
isUpdateCompositionInternalMessage
|
|
204
205
|
} from "@uniformdev/canvas";
|
|
205
206
|
import { useEffect, useMemo, useState } from "react";
|
|
@@ -276,10 +277,7 @@ function isInContextEditingMode() {
|
|
|
276
277
|
const isOpenedByInContextEditor = new URLSearchParams(window.location.search).has(
|
|
277
278
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM
|
|
278
279
|
);
|
|
279
|
-
|
|
280
|
-
window.document.referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|localhost:\d{4})\//)
|
|
281
|
-
);
|
|
282
|
-
return isOpenedByInContextEditor && isAllowlistedReferrer;
|
|
280
|
+
return isOpenedByInContextEditor && isAllowedReferrer(window.document.referrer);
|
|
283
281
|
}
|
|
284
282
|
|
|
285
283
|
// src/components/UniformComposition.tsx
|
package/dist/index.js
CHANGED
|
@@ -310,10 +310,7 @@ function isInContextEditingMode() {
|
|
|
310
310
|
const isOpenedByInContextEditor = new URLSearchParams(window.location.search).has(
|
|
311
311
|
import_canvas3.IN_CONTEXT_EDITOR_QUERY_STRING_PARAM
|
|
312
312
|
);
|
|
313
|
-
|
|
314
|
-
window.document.referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|localhost:\d{4})\//)
|
|
315
|
-
);
|
|
316
|
-
return isOpenedByInContextEditor && isAllowlistedReferrer;
|
|
313
|
+
return isOpenedByInContextEditor && (0, import_canvas3.isAllowedReferrer)(window.document.referrer);
|
|
317
314
|
}
|
|
318
315
|
|
|
319
316
|
// src/components/UniformComposition.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -200,6 +200,7 @@ import {
|
|
|
200
200
|
EMPTY_COMPOSITION,
|
|
201
201
|
IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID,
|
|
202
202
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
|
|
203
|
+
isAllowedReferrer,
|
|
203
204
|
isUpdateCompositionInternalMessage
|
|
204
205
|
} from "@uniformdev/canvas";
|
|
205
206
|
import { useEffect, useMemo, useState } from "react";
|
|
@@ -276,10 +277,7 @@ function isInContextEditingMode() {
|
|
|
276
277
|
const isOpenedByInContextEditor = new URLSearchParams(window.location.search).has(
|
|
277
278
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM
|
|
278
279
|
);
|
|
279
|
-
|
|
280
|
-
window.document.referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|localhost:\d{4})\//)
|
|
281
|
-
);
|
|
282
|
-
return isOpenedByInContextEditor && isAllowlistedReferrer;
|
|
280
|
+
return isOpenedByInContextEditor && isAllowedReferrer(window.document.referrer);
|
|
283
281
|
}
|
|
284
282
|
|
|
285
283
|
// src/components/UniformComposition.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.56.1-alpha.5+7dd8fa6f9",
|
|
4
4
|
"description": "React SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"document": "api-extractor run --local"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@uniformdev/canvas": "19.
|
|
49
|
-
"@uniformdev/context": "19.
|
|
50
|
-
"@uniformdev/context-react": "19.
|
|
51
|
-
"@uniformdev/richtext": "19.
|
|
48
|
+
"@uniformdev/canvas": "19.56.1-alpha.5+7dd8fa6f9",
|
|
49
|
+
"@uniformdev/context": "19.56.1-alpha.5+7dd8fa6f9",
|
|
50
|
+
"@uniformdev/context-react": "19.56.1-alpha.5+7dd8fa6f9",
|
|
51
|
+
"@uniformdev/richtext": "19.56.1-alpha.5+7dd8fa6f9"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": ">= 16 || 17 || 18",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "7dd8fa6f965545af8b78ea3095e6a7406279bbc9"
|
|
69
69
|
}
|