@uniformdev/canvas 20.74.6-alpha.6 → 20.74.7-alpha.14.sha-79426f9415

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 CHANGED
@@ -1092,7 +1092,7 @@ var BatchEntry = class {
1092
1092
  this._reject(reason);
1093
1093
  this._isCompleted = true;
1094
1094
  }
1095
- /** @return Whether the batch entry has been completed (resolved or rejected). */
1095
+ /** @returns Whether the batch entry has been completed (resolved or rejected). */
1096
1096
  get isCompleted() {
1097
1097
  return this._isCompleted;
1098
1098
  }
@@ -3796,10 +3796,13 @@ var getParameterAttributes = ({
3796
3796
  };
3797
3797
 
3798
3798
  // src/utils/isAllowedReferrer.ts
3799
+ var ALLOWED_REFERRER_ORIGIN = /^https:\/\/([\w-]+\.)*(uniform\.(app|wtf)|uniformcode\.ai)$|^https?:\/\/localhost:\d{4}$/;
3799
3800
  var isAllowedReferrer = (referrer) => {
3800
- return Boolean(
3801
- referrer == null ? void 0 : referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|uniformcode.ai|localhost:\d{4})\//)
3802
- );
3801
+ try {
3802
+ return ALLOWED_REFERRER_ORIGIN.test(new URL(referrer != null ? referrer : "").origin);
3803
+ } catch (e) {
3804
+ return false;
3805
+ }
3803
3806
  };
3804
3807
 
3805
3808
  // src/utils/isSystemComponentDefinition.ts
@@ -3998,7 +4001,7 @@ function handleRichTextNodeBinding(object, options) {
3998
4001
  import { ApiClientError as ApiClientError5 } from "@uniformdev/context/api";
3999
4002
 
4000
4003
  // src/.version.ts
4001
- var version = "20.75.0";
4004
+ var version = "20.77.0";
4002
4005
 
4003
4006
  // src/WorkflowClient.ts
4004
4007
  import { ApiClient as ApiClient18 } from "@uniformdev/context/api";
package/dist/index.js CHANGED
@@ -1307,7 +1307,7 @@ var BatchEntry = class {
1307
1307
  this._reject(reason);
1308
1308
  this._isCompleted = true;
1309
1309
  }
1310
- /** @return Whether the batch entry has been completed (resolved or rejected). */
1310
+ /** @returns Whether the batch entry has been completed (resolved or rejected). */
1311
1311
  get isCompleted() {
1312
1312
  return this._isCompleted;
1313
1313
  }
@@ -4011,10 +4011,13 @@ var getParameterAttributes = ({
4011
4011
  };
4012
4012
 
4013
4013
  // src/utils/isAllowedReferrer.ts
4014
+ var ALLOWED_REFERRER_ORIGIN = /^https:\/\/([\w-]+\.)*(uniform\.(app|wtf)|uniformcode\.ai)$|^https?:\/\/localhost:\d{4}$/;
4014
4015
  var isAllowedReferrer = (referrer) => {
4015
- return Boolean(
4016
- referrer == null ? void 0 : referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|uniformcode.ai|localhost:\d{4})\//)
4017
- );
4016
+ try {
4017
+ return ALLOWED_REFERRER_ORIGIN.test(new URL(referrer != null ? referrer : "").origin);
4018
+ } catch (e) {
4019
+ return false;
4020
+ }
4018
4021
  };
4019
4022
 
4020
4023
  // src/utils/isSystemComponentDefinition.ts
@@ -4213,7 +4216,7 @@ function handleRichTextNodeBinding(object, options) {
4213
4216
  var import_api27 = require("@uniformdev/context/api");
4214
4217
 
4215
4218
  // src/.version.ts
4216
- var version = "20.75.0";
4219
+ var version = "20.77.0";
4217
4220
 
4218
4221
  // src/WorkflowClient.ts
4219
4222
  var import_api26 = require("@uniformdev/context/api");
package/dist/index.mjs CHANGED
@@ -1092,7 +1092,7 @@ var BatchEntry = class {
1092
1092
  this._reject(reason);
1093
1093
  this._isCompleted = true;
1094
1094
  }
1095
- /** @return Whether the batch entry has been completed (resolved or rejected). */
1095
+ /** @returns Whether the batch entry has been completed (resolved or rejected). */
1096
1096
  get isCompleted() {
1097
1097
  return this._isCompleted;
1098
1098
  }
@@ -3796,10 +3796,13 @@ var getParameterAttributes = ({
3796
3796
  };
3797
3797
 
3798
3798
  // src/utils/isAllowedReferrer.ts
3799
+ var ALLOWED_REFERRER_ORIGIN = /^https:\/\/([\w-]+\.)*(uniform\.(app|wtf)|uniformcode\.ai)$|^https?:\/\/localhost:\d{4}$/;
3799
3800
  var isAllowedReferrer = (referrer) => {
3800
- return Boolean(
3801
- referrer == null ? void 0 : referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|uniformcode.ai|localhost:\d{4})\//)
3802
- );
3801
+ try {
3802
+ return ALLOWED_REFERRER_ORIGIN.test(new URL(referrer != null ? referrer : "").origin);
3803
+ } catch (e) {
3804
+ return false;
3805
+ }
3803
3806
  };
3804
3807
 
3805
3808
  // src/utils/isSystemComponentDefinition.ts
@@ -3998,7 +4001,7 @@ function handleRichTextNodeBinding(object, options) {
3998
4001
  import { ApiClientError as ApiClientError5 } from "@uniformdev/context/api";
3999
4002
 
4000
4003
  // src/.version.ts
4001
- var version = "20.75.0";
4004
+ var version = "20.77.0";
4002
4005
 
4003
4006
  // src/WorkflowClient.ts
4004
4007
  import { ApiClient as ApiClient18 } from "@uniformdev/context/api";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "20.74.6-alpha.6+1b8686943a",
3
+ "version": "20.74.7-alpha.14.sha-79426f9415",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -36,9 +36,9 @@
36
36
  "svix": "1.96.0"
37
37
  },
38
38
  "dependencies": {
39
- "@uniformdev/assets": "20.74.6-alpha.6+1b8686943a",
40
- "@uniformdev/context": "20.74.6-alpha.6+1b8686943a",
41
- "@uniformdev/richtext": "20.74.6-alpha.6+1b8686943a",
39
+ "@uniformdev/assets": "20.74.7-alpha.14.sha-79426f9415",
40
+ "@uniformdev/context": "20.74.7-alpha.14.sha-79426f9415",
41
+ "@uniformdev/richtext": "20.74.7-alpha.14.sha-79426f9415",
42
42
  "immer": "10.2.0",
43
43
  "p-limit": "6.2.0",
44
44
  "p-retry": "6.2.1",
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "1b8686943aec6f9c1e87d1364318328cfce5fe72"
53
+ "gitHead": "79426f9415aefb8cf26dd8fe7a265b24a490749c"
54
54
  }