@uniformdev/canvas-vue 19.56.0 → 19.56.1-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.esm.js +2 -4
- package/dist/index.js +1 -4
- package/dist/index.mjs +2 -4
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -164,6 +164,7 @@ import {
|
|
|
164
164
|
EMPTY_COMPOSITION,
|
|
165
165
|
IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID,
|
|
166
166
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
|
|
167
|
+
isAllowedReferrer,
|
|
167
168
|
isUpdateCompositionInternalMessage
|
|
168
169
|
} from "@uniformdev/canvas";
|
|
169
170
|
import { computed as computed2, onMounted, ref, watch } from "vue-demi";
|
|
@@ -254,10 +255,7 @@ function isInContextEditingMode() {
|
|
|
254
255
|
const isOpenedByInContextEditor = new URLSearchParams(window.location.search).has(
|
|
255
256
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM
|
|
256
257
|
);
|
|
257
|
-
|
|
258
|
-
window.document.referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|localhost:\d{4})\//)
|
|
259
|
-
);
|
|
260
|
-
return isOpenedByInContextEditor && isAllowlistedReferrer;
|
|
258
|
+
return isOpenedByInContextEditor && isAllowedReferrer(window.document.referrer);
|
|
261
259
|
}
|
|
262
260
|
|
|
263
261
|
// src/helpers/constants.ts
|
package/dist/index.js
CHANGED
|
@@ -280,10 +280,7 @@ function isInContextEditingMode() {
|
|
|
280
280
|
const isOpenedByInContextEditor = new URLSearchParams(window.location.search).has(
|
|
281
281
|
import_canvas3.IN_CONTEXT_EDITOR_QUERY_STRING_PARAM
|
|
282
282
|
);
|
|
283
|
-
|
|
284
|
-
window.document.referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|localhost:\d{4})\//)
|
|
285
|
-
);
|
|
286
|
-
return isOpenedByInContextEditor && isAllowlistedReferrer;
|
|
283
|
+
return isOpenedByInContextEditor && (0, import_canvas3.isAllowedReferrer)(window.document.referrer);
|
|
287
284
|
}
|
|
288
285
|
|
|
289
286
|
// src/helpers/constants.ts
|
package/dist/index.mjs
CHANGED
|
@@ -164,6 +164,7 @@ import {
|
|
|
164
164
|
EMPTY_COMPOSITION,
|
|
165
165
|
IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID,
|
|
166
166
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
|
|
167
|
+
isAllowedReferrer,
|
|
167
168
|
isUpdateCompositionInternalMessage
|
|
168
169
|
} from "@uniformdev/canvas";
|
|
169
170
|
import { computed as computed2, onMounted, ref, watch } from "vue-demi";
|
|
@@ -254,10 +255,7 @@ function isInContextEditingMode() {
|
|
|
254
255
|
const isOpenedByInContextEditor = new URLSearchParams(window.location.search).has(
|
|
255
256
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM
|
|
256
257
|
);
|
|
257
|
-
|
|
258
|
-
window.document.referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|localhost:\d{4})\//)
|
|
259
|
-
);
|
|
260
|
-
return isOpenedByInContextEditor && isAllowlistedReferrer;
|
|
258
|
+
return isOpenedByInContextEditor && isAllowedReferrer(window.document.referrer);
|
|
261
259
|
}
|
|
262
260
|
|
|
263
261
|
// src/helpers/constants.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-vue",
|
|
3
|
-
"version": "19.56.
|
|
3
|
+
"version": "19.56.1-alpha.10+4656b6da5",
|
|
4
4
|
"description": "Vue SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"document": "api-extractor run --local"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@uniformdev/canvas": "19.56.
|
|
27
|
-
"@uniformdev/context-vue": "19.56.
|
|
28
|
-
"@uniformdev/richtext": "19.56.
|
|
26
|
+
"@uniformdev/canvas": "19.56.1-alpha.10+4656b6da5",
|
|
27
|
+
"@uniformdev/context-vue": "19.56.1-alpha.10+4656b6da5",
|
|
28
|
+
"@uniformdev/richtext": "19.56.1-alpha.10+4656b6da5",
|
|
29
29
|
"vue-demi": "^0.14.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "4656b6da55c78e7e793f785739cd26cd252f77d4"
|
|
63
63
|
}
|