@uniformdev/canvas 20.72.3-alpha.14 → 20.72.3-alpha.23

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
@@ -2053,7 +2053,7 @@ function getLocaleMatch(index, locale, greedy) {
2053
2053
  }
2054
2054
  const match = index[locale];
2055
2055
  if (match === void 0 && greedy) {
2056
- return Object.values(index)[0];
2056
+ return Object.values(index).find((value) => value !== void 0);
2057
2057
  }
2058
2058
  return match;
2059
2059
  }
@@ -3172,57 +3172,11 @@ var createCanvasChannel = ({
3172
3172
  };
3173
3173
  };
3174
3174
 
3175
- // src/NotificationsClient.ts
3176
- import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
3177
- var _url2;
3178
- var _NotificationsClient = class _NotificationsClient extends ApiClient11 {
3179
- constructor(options) {
3180
- super(options);
3181
- }
3182
- /**
3183
- * Lists notifications for the current user.
3184
- *
3185
- * @deprecated This API is experimental and may change without notice.
3186
- */
3187
- async list(options) {
3188
- const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2), options);
3189
- return await this.apiClient(fetchUri);
3190
- }
3191
- /**
3192
- * Creates a notification for one or more recipients.
3193
- *
3194
- * @deprecated This API is experimental and may change without notice.
3195
- */
3196
- async create(body) {
3197
- const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2));
3198
- return await this.apiClient(fetchUri, {
3199
- method: "POST",
3200
- body: JSON.stringify(body)
3201
- });
3202
- }
3203
- /**
3204
- * Updates the read state of the current user's notifications.
3205
- *
3206
- * @deprecated This API is experimental and may change without notice.
3207
- */
3208
- async setReadState(body) {
3209
- const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2));
3210
- await this.apiClient(fetchUri, {
3211
- method: "PATCH",
3212
- body: JSON.stringify(body),
3213
- expectNoContent: true
3214
- });
3215
- }
3216
- };
3217
- _url2 = new WeakMap();
3218
- __privateAdd(_NotificationsClient, _url2, "/api/v1/notifications");
3219
- var NotificationsClient = _NotificationsClient;
3220
-
3221
3175
  // src/PreviewClient.ts
3222
- import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
3176
+ import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
3223
3177
  var previewUrlsUrl = "/api/v1/preview-urls";
3224
3178
  var previewViewportsUrl = "/api/v1/preview-viewports";
3225
- var PreviewClient = class extends ApiClient12 {
3179
+ var PreviewClient = class extends ApiClient11 {
3226
3180
  constructor(options) {
3227
3181
  super(options);
3228
3182
  }
@@ -3285,15 +3239,15 @@ var PreviewClient = class extends ApiClient12 {
3285
3239
  };
3286
3240
 
3287
3241
  // src/ProjectClient.ts
3288
- import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
3289
- var _url3, _projectsUrl;
3290
- var _ProjectClient = class _ProjectClient extends ApiClient13 {
3242
+ import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
3243
+ var _url2, _projectsUrl;
3244
+ var _ProjectClient = class _ProjectClient extends ApiClient12 {
3291
3245
  constructor(options) {
3292
3246
  super({ ...options, bypassCache: true });
3293
3247
  }
3294
3248
  /** Fetches single Project */
3295
3249
  async get(options) {
3296
- const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3), { ...options });
3250
+ const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2), { ...options });
3297
3251
  return await this.apiClient(fetchUri);
3298
3252
  }
3299
3253
  /**
@@ -3311,7 +3265,7 @@ var _ProjectClient = class _ProjectClient extends ApiClient13 {
3311
3265
  }
3312
3266
  /** Updates or creates (based on id) a Project */
3313
3267
  async save(body) {
3314
- const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3));
3268
+ const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
3315
3269
  return await this.apiClient(fetchUri, {
3316
3270
  method: "PUT",
3317
3271
  body: JSON.stringify({ ...body })
@@ -3323,7 +3277,7 @@ var _ProjectClient = class _ProjectClient extends ApiClient13 {
3323
3277
  }
3324
3278
  /** Deletes a Project */
3325
3279
  async remove(body) {
3326
- const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3));
3280
+ const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
3327
3281
  await this.apiClient(fetchUri, {
3328
3282
  method: "DELETE",
3329
3283
  body: JSON.stringify({ ...body }),
@@ -3335,9 +3289,9 @@ var _ProjectClient = class _ProjectClient extends ApiClient13 {
3335
3289
  return this.remove(body);
3336
3290
  }
3337
3291
  };
3338
- _url3 = new WeakMap();
3292
+ _url2 = new WeakMap();
3339
3293
  _projectsUrl = new WeakMap();
3340
- __privateAdd(_ProjectClient, _url3, "/api/v1/project");
3294
+ __privateAdd(_ProjectClient, _url2, "/api/v1/project");
3341
3295
  __privateAdd(_ProjectClient, _projectsUrl, "/api/v1/projects");
3342
3296
  var ProjectClient = _ProjectClient;
3343
3297
 
@@ -3524,9 +3478,9 @@ function queryToProjection(source) {
3524
3478
  }
3525
3479
 
3526
3480
  // src/PromptClient.ts
3527
- import { ApiClient as ApiClient14 } from "@uniformdev/context/api";
3481
+ import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
3528
3482
  var PromptsUrl = "/api/v1/prompts";
3529
- var PromptClient = class extends ApiClient14 {
3483
+ var PromptClient = class extends ApiClient13 {
3530
3484
  constructor(options) {
3531
3485
  super(options);
3532
3486
  }
@@ -3557,9 +3511,9 @@ var PromptClient = class extends ApiClient14 {
3557
3511
  };
3558
3512
 
3559
3513
  // src/RelationshipClient.ts
3560
- import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
3514
+ import { ApiClient as ApiClient14 } from "@uniformdev/context/api";
3561
3515
  var RELATIONSHIPS_URL = "/api/v1/relationships";
3562
- var RelationshipClient = class extends ApiClient15 {
3516
+ var RelationshipClient = class extends ApiClient14 {
3563
3517
  constructor(options) {
3564
3518
  super(options);
3565
3519
  this.list = async (options) => {
@@ -3575,9 +3529,9 @@ var RelationshipClient = class extends ApiClient15 {
3575
3529
  };
3576
3530
 
3577
3531
  // src/ReleaseClient.ts
3578
- import { ApiClient as ApiClient16 } from "@uniformdev/context/api";
3532
+ import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
3579
3533
  var releasesUrl = "/api/v1/releases";
3580
- var ReleaseClient = class extends ApiClient16 {
3534
+ var ReleaseClient = class extends ApiClient15 {
3581
3535
  constructor(options) {
3582
3536
  super(options);
3583
3537
  }
@@ -3625,9 +3579,9 @@ var ReleaseClient = class extends ApiClient16 {
3625
3579
  };
3626
3580
 
3627
3581
  // src/ReleaseContentsClient.ts
3628
- import { ApiClient as ApiClient17 } from "@uniformdev/context/api";
3582
+ import { ApiClient as ApiClient16 } from "@uniformdev/context/api";
3629
3583
  var releaseContentsUrl = "/api/v1/release-contents";
3630
- var ReleaseContentsClient = class extends ApiClient17 {
3584
+ var ReleaseContentsClient = class extends ApiClient16 {
3631
3585
  constructor(options) {
3632
3586
  super(options);
3633
3587
  }
@@ -3653,9 +3607,9 @@ var ReleaseContentsClient = class extends ApiClient17 {
3653
3607
  };
3654
3608
 
3655
3609
  // src/RouteClient.ts
3656
- import { ApiClient as ApiClient18 } from "@uniformdev/context/api";
3610
+ import { ApiClient as ApiClient17 } from "@uniformdev/context/api";
3657
3611
  var ROUTE_URL = "/api/v1/route";
3658
- var RouteClient = class extends ApiClient18 {
3612
+ var RouteClient = class extends ApiClient17 {
3659
3613
  constructor(options) {
3660
3614
  var _a;
3661
3615
  if (!options.limitPolicy) {
@@ -3843,7 +3797,9 @@ var getParameterAttributes = ({
3843
3797
 
3844
3798
  // src/utils/isAllowedReferrer.ts
3845
3799
  var isAllowedReferrer = (referrer) => {
3846
- return Boolean(referrer == null ? void 0 : referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|localhost:\d{4})\//));
3800
+ return Boolean(
3801
+ referrer == null ? void 0 : referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|uniformcode.ai|localhost:\d{4})\//)
3802
+ );
3847
3803
  };
3848
3804
 
3849
3805
  // src/utils/isSystemComponentDefinition.ts
@@ -4042,12 +3998,12 @@ function handleRichTextNodeBinding(object, options) {
4042
3998
  import { ApiClientError as ApiClientError5 } from "@uniformdev/context/api";
4043
3999
 
4044
4000
  // src/.version.ts
4045
- var version = "20.72.3";
4001
+ var version = "20.73.0";
4046
4002
 
4047
4003
  // src/WorkflowClient.ts
4048
- import { ApiClient as ApiClient19 } from "@uniformdev/context/api";
4004
+ import { ApiClient as ApiClient18 } from "@uniformdev/context/api";
4049
4005
  var workflowsUrl = "/api/v1/workflows";
4050
- var WorkflowClient = class extends ApiClient19 {
4006
+ var WorkflowClient = class extends ApiClient18 {
4051
4007
  constructor(options) {
4052
4008
  super(options);
4053
4009
  }
@@ -4167,7 +4123,6 @@ export {
4167
4123
  LOCALE_DYNAMIC_INPUT_NAME,
4168
4124
  LabelClient,
4169
4125
  LocaleClient,
4170
- NotificationsClient,
4171
4126
  PLACEHOLDER_ID,
4172
4127
  PreviewClient,
4173
4128
  ProjectClient,
package/dist/index.js CHANGED
@@ -45,7 +45,7 @@ __export(index_exports, {
45
45
  ATTRIBUTE_PARAMETER_TYPE: () => ATTRIBUTE_PARAMETER_TYPE,
46
46
  ATTRIBUTE_PARAMETER_VALUE: () => ATTRIBUTE_PARAMETER_VALUE,
47
47
  ATTRIBUTE_PLACEHOLDER: () => ATTRIBUTE_PLACEHOLDER,
48
- ApiClientError: () => import_api28.ApiClientError,
48
+ ApiClientError: () => import_api27.ApiClientError,
49
49
  BatchEntry: () => BatchEntry,
50
50
  BlockFormatError: () => BlockFormatError,
51
51
  CANVAS_BLOCK_PARAM_TYPE: () => CANVAS_BLOCK_PARAM_TYPE,
@@ -115,7 +115,6 @@ __export(index_exports, {
115
115
  LOCALE_DYNAMIC_INPUT_NAME: () => LOCALE_DYNAMIC_INPUT_NAME,
116
116
  LabelClient: () => LabelClient,
117
117
  LocaleClient: () => LocaleClient,
118
- NotificationsClient: () => NotificationsClient,
119
118
  PLACEHOLDER_ID: () => PLACEHOLDER_ID,
120
119
  PreviewClient: () => PreviewClient,
121
120
  ProjectClient: () => ProjectClient,
@@ -2269,7 +2268,7 @@ function getLocaleMatch(index, locale, greedy) {
2269
2268
  }
2270
2269
  const match = index[locale];
2271
2270
  if (match === void 0 && greedy) {
2272
- return Object.values(index)[0];
2271
+ return Object.values(index).find((value) => value !== void 0);
2273
2272
  }
2274
2273
  return match;
2275
2274
  }
@@ -3388,57 +3387,11 @@ var createCanvasChannel = ({
3388
3387
  };
3389
3388
  };
3390
3389
 
3391
- // src/NotificationsClient.ts
3392
- var import_api19 = require("@uniformdev/context/api");
3393
- var _url2;
3394
- var _NotificationsClient = class _NotificationsClient extends import_api19.ApiClient {
3395
- constructor(options) {
3396
- super(options);
3397
- }
3398
- /**
3399
- * Lists notifications for the current user.
3400
- *
3401
- * @deprecated This API is experimental and may change without notice.
3402
- */
3403
- async list(options) {
3404
- const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2), options);
3405
- return await this.apiClient(fetchUri);
3406
- }
3407
- /**
3408
- * Creates a notification for one or more recipients.
3409
- *
3410
- * @deprecated This API is experimental and may change without notice.
3411
- */
3412
- async create(body) {
3413
- const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2));
3414
- return await this.apiClient(fetchUri, {
3415
- method: "POST",
3416
- body: JSON.stringify(body)
3417
- });
3418
- }
3419
- /**
3420
- * Updates the read state of the current user's notifications.
3421
- *
3422
- * @deprecated This API is experimental and may change without notice.
3423
- */
3424
- async setReadState(body) {
3425
- const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2));
3426
- await this.apiClient(fetchUri, {
3427
- method: "PATCH",
3428
- body: JSON.stringify(body),
3429
- expectNoContent: true
3430
- });
3431
- }
3432
- };
3433
- _url2 = new WeakMap();
3434
- __privateAdd(_NotificationsClient, _url2, "/api/v1/notifications");
3435
- var NotificationsClient = _NotificationsClient;
3436
-
3437
3390
  // src/PreviewClient.ts
3438
- var import_api20 = require("@uniformdev/context/api");
3391
+ var import_api19 = require("@uniformdev/context/api");
3439
3392
  var previewUrlsUrl = "/api/v1/preview-urls";
3440
3393
  var previewViewportsUrl = "/api/v1/preview-viewports";
3441
- var PreviewClient = class extends import_api20.ApiClient {
3394
+ var PreviewClient = class extends import_api19.ApiClient {
3442
3395
  constructor(options) {
3443
3396
  super(options);
3444
3397
  }
@@ -3501,15 +3454,15 @@ var PreviewClient = class extends import_api20.ApiClient {
3501
3454
  };
3502
3455
 
3503
3456
  // src/ProjectClient.ts
3504
- var import_api21 = require("@uniformdev/context/api");
3505
- var _url3, _projectsUrl;
3506
- var _ProjectClient = class _ProjectClient extends import_api21.ApiClient {
3457
+ var import_api20 = require("@uniformdev/context/api");
3458
+ var _url2, _projectsUrl;
3459
+ var _ProjectClient = class _ProjectClient extends import_api20.ApiClient {
3507
3460
  constructor(options) {
3508
3461
  super({ ...options, bypassCache: true });
3509
3462
  }
3510
3463
  /** Fetches single Project */
3511
3464
  async get(options) {
3512
- const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3), { ...options });
3465
+ const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2), { ...options });
3513
3466
  return await this.apiClient(fetchUri);
3514
3467
  }
3515
3468
  /**
@@ -3527,7 +3480,7 @@ var _ProjectClient = class _ProjectClient extends import_api21.ApiClient {
3527
3480
  }
3528
3481
  /** Updates or creates (based on id) a Project */
3529
3482
  async save(body) {
3530
- const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3));
3483
+ const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
3531
3484
  return await this.apiClient(fetchUri, {
3532
3485
  method: "PUT",
3533
3486
  body: JSON.stringify({ ...body })
@@ -3539,7 +3492,7 @@ var _ProjectClient = class _ProjectClient extends import_api21.ApiClient {
3539
3492
  }
3540
3493
  /** Deletes a Project */
3541
3494
  async remove(body) {
3542
- const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3));
3495
+ const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
3543
3496
  await this.apiClient(fetchUri, {
3544
3497
  method: "DELETE",
3545
3498
  body: JSON.stringify({ ...body }),
@@ -3551,9 +3504,9 @@ var _ProjectClient = class _ProjectClient extends import_api21.ApiClient {
3551
3504
  return this.remove(body);
3552
3505
  }
3553
3506
  };
3554
- _url3 = new WeakMap();
3507
+ _url2 = new WeakMap();
3555
3508
  _projectsUrl = new WeakMap();
3556
- __privateAdd(_ProjectClient, _url3, "/api/v1/project");
3509
+ __privateAdd(_ProjectClient, _url2, "/api/v1/project");
3557
3510
  __privateAdd(_ProjectClient, _projectsUrl, "/api/v1/projects");
3558
3511
  var ProjectClient = _ProjectClient;
3559
3512
 
@@ -3740,9 +3693,9 @@ function queryToProjection(source) {
3740
3693
  }
3741
3694
 
3742
3695
  // src/PromptClient.ts
3743
- var import_api22 = require("@uniformdev/context/api");
3696
+ var import_api21 = require("@uniformdev/context/api");
3744
3697
  var PromptsUrl = "/api/v1/prompts";
3745
- var PromptClient = class extends import_api22.ApiClient {
3698
+ var PromptClient = class extends import_api21.ApiClient {
3746
3699
  constructor(options) {
3747
3700
  super(options);
3748
3701
  }
@@ -3773,9 +3726,9 @@ var PromptClient = class extends import_api22.ApiClient {
3773
3726
  };
3774
3727
 
3775
3728
  // src/RelationshipClient.ts
3776
- var import_api23 = require("@uniformdev/context/api");
3729
+ var import_api22 = require("@uniformdev/context/api");
3777
3730
  var RELATIONSHIPS_URL = "/api/v1/relationships";
3778
- var RelationshipClient = class extends import_api23.ApiClient {
3731
+ var RelationshipClient = class extends import_api22.ApiClient {
3779
3732
  constructor(options) {
3780
3733
  super(options);
3781
3734
  this.list = async (options) => {
@@ -3791,9 +3744,9 @@ var RelationshipClient = class extends import_api23.ApiClient {
3791
3744
  };
3792
3745
 
3793
3746
  // src/ReleaseClient.ts
3794
- var import_api24 = require("@uniformdev/context/api");
3747
+ var import_api23 = require("@uniformdev/context/api");
3795
3748
  var releasesUrl = "/api/v1/releases";
3796
- var ReleaseClient = class extends import_api24.ApiClient {
3749
+ var ReleaseClient = class extends import_api23.ApiClient {
3797
3750
  constructor(options) {
3798
3751
  super(options);
3799
3752
  }
@@ -3841,9 +3794,9 @@ var ReleaseClient = class extends import_api24.ApiClient {
3841
3794
  };
3842
3795
 
3843
3796
  // src/ReleaseContentsClient.ts
3844
- var import_api25 = require("@uniformdev/context/api");
3797
+ var import_api24 = require("@uniformdev/context/api");
3845
3798
  var releaseContentsUrl = "/api/v1/release-contents";
3846
- var ReleaseContentsClient = class extends import_api25.ApiClient {
3799
+ var ReleaseContentsClient = class extends import_api24.ApiClient {
3847
3800
  constructor(options) {
3848
3801
  super(options);
3849
3802
  }
@@ -3869,9 +3822,9 @@ var ReleaseContentsClient = class extends import_api25.ApiClient {
3869
3822
  };
3870
3823
 
3871
3824
  // src/RouteClient.ts
3872
- var import_api26 = require("@uniformdev/context/api");
3825
+ var import_api25 = require("@uniformdev/context/api");
3873
3826
  var ROUTE_URL = "/api/v1/route";
3874
- var RouteClient = class extends import_api26.ApiClient {
3827
+ var RouteClient = class extends import_api25.ApiClient {
3875
3828
  constructor(options) {
3876
3829
  var _a;
3877
3830
  if (!options.limitPolicy) {
@@ -4059,7 +4012,9 @@ var getParameterAttributes = ({
4059
4012
 
4060
4013
  // src/utils/isAllowedReferrer.ts
4061
4014
  var isAllowedReferrer = (referrer) => {
4062
- return Boolean(referrer == null ? void 0 : referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|localhost:\d{4})\//));
4015
+ return Boolean(
4016
+ referrer == null ? void 0 : referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|uniformcode.ai|localhost:\d{4})\//)
4017
+ );
4063
4018
  };
4064
4019
 
4065
4020
  // src/utils/isSystemComponentDefinition.ts
@@ -4255,15 +4210,15 @@ function handleRichTextNodeBinding(object, options) {
4255
4210
  }
4256
4211
 
4257
4212
  // src/index.ts
4258
- var import_api28 = require("@uniformdev/context/api");
4213
+ var import_api27 = require("@uniformdev/context/api");
4259
4214
 
4260
4215
  // src/.version.ts
4261
- var version = "20.72.3";
4216
+ var version = "20.73.0";
4262
4217
 
4263
4218
  // src/WorkflowClient.ts
4264
- var import_api27 = require("@uniformdev/context/api");
4219
+ var import_api26 = require("@uniformdev/context/api");
4265
4220
  var workflowsUrl = "/api/v1/workflows";
4266
- var WorkflowClient = class extends import_api27.ApiClient {
4221
+ var WorkflowClient = class extends import_api26.ApiClient {
4267
4222
  constructor(options) {
4268
4223
  super(options);
4269
4224
  }
@@ -4302,7 +4257,7 @@ var WorkflowClient = class extends import_api27.ApiClient {
4302
4257
  };
4303
4258
 
4304
4259
  // src/index.ts
4305
- var CanvasClientError = import_api28.ApiClientError;
4260
+ var CanvasClientError = import_api27.ApiClientError;
4306
4261
  // Annotate the CommonJS export names for ESM import in node:
4307
4262
  0 && (module.exports = {
4308
4263
  ASSETS_SOURCE_CUSTOM_URL,
@@ -4384,7 +4339,6 @@ var CanvasClientError = import_api28.ApiClientError;
4384
4339
  LOCALE_DYNAMIC_INPUT_NAME,
4385
4340
  LabelClient,
4386
4341
  LocaleClient,
4387
- NotificationsClient,
4388
4342
  PLACEHOLDER_ID,
4389
4343
  PreviewClient,
4390
4344
  ProjectClient,
package/dist/index.mjs CHANGED
@@ -2053,7 +2053,7 @@ function getLocaleMatch(index, locale, greedy) {
2053
2053
  }
2054
2054
  const match = index[locale];
2055
2055
  if (match === void 0 && greedy) {
2056
- return Object.values(index)[0];
2056
+ return Object.values(index).find((value) => value !== void 0);
2057
2057
  }
2058
2058
  return match;
2059
2059
  }
@@ -3172,57 +3172,11 @@ var createCanvasChannel = ({
3172
3172
  };
3173
3173
  };
3174
3174
 
3175
- // src/NotificationsClient.ts
3176
- import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
3177
- var _url2;
3178
- var _NotificationsClient = class _NotificationsClient extends ApiClient11 {
3179
- constructor(options) {
3180
- super(options);
3181
- }
3182
- /**
3183
- * Lists notifications for the current user.
3184
- *
3185
- * @deprecated This API is experimental and may change without notice.
3186
- */
3187
- async list(options) {
3188
- const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2), options);
3189
- return await this.apiClient(fetchUri);
3190
- }
3191
- /**
3192
- * Creates a notification for one or more recipients.
3193
- *
3194
- * @deprecated This API is experimental and may change without notice.
3195
- */
3196
- async create(body) {
3197
- const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2));
3198
- return await this.apiClient(fetchUri, {
3199
- method: "POST",
3200
- body: JSON.stringify(body)
3201
- });
3202
- }
3203
- /**
3204
- * Updates the read state of the current user's notifications.
3205
- *
3206
- * @deprecated This API is experimental and may change without notice.
3207
- */
3208
- async setReadState(body) {
3209
- const fetchUri = this.createUrl(__privateGet(_NotificationsClient, _url2));
3210
- await this.apiClient(fetchUri, {
3211
- method: "PATCH",
3212
- body: JSON.stringify(body),
3213
- expectNoContent: true
3214
- });
3215
- }
3216
- };
3217
- _url2 = new WeakMap();
3218
- __privateAdd(_NotificationsClient, _url2, "/api/v1/notifications");
3219
- var NotificationsClient = _NotificationsClient;
3220
-
3221
3175
  // src/PreviewClient.ts
3222
- import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
3176
+ import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
3223
3177
  var previewUrlsUrl = "/api/v1/preview-urls";
3224
3178
  var previewViewportsUrl = "/api/v1/preview-viewports";
3225
- var PreviewClient = class extends ApiClient12 {
3179
+ var PreviewClient = class extends ApiClient11 {
3226
3180
  constructor(options) {
3227
3181
  super(options);
3228
3182
  }
@@ -3285,15 +3239,15 @@ var PreviewClient = class extends ApiClient12 {
3285
3239
  };
3286
3240
 
3287
3241
  // src/ProjectClient.ts
3288
- import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
3289
- var _url3, _projectsUrl;
3290
- var _ProjectClient = class _ProjectClient extends ApiClient13 {
3242
+ import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
3243
+ var _url2, _projectsUrl;
3244
+ var _ProjectClient = class _ProjectClient extends ApiClient12 {
3291
3245
  constructor(options) {
3292
3246
  super({ ...options, bypassCache: true });
3293
3247
  }
3294
3248
  /** Fetches single Project */
3295
3249
  async get(options) {
3296
- const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3), { ...options });
3250
+ const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2), { ...options });
3297
3251
  return await this.apiClient(fetchUri);
3298
3252
  }
3299
3253
  /**
@@ -3311,7 +3265,7 @@ var _ProjectClient = class _ProjectClient extends ApiClient13 {
3311
3265
  }
3312
3266
  /** Updates or creates (based on id) a Project */
3313
3267
  async save(body) {
3314
- const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3));
3268
+ const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
3315
3269
  return await this.apiClient(fetchUri, {
3316
3270
  method: "PUT",
3317
3271
  body: JSON.stringify({ ...body })
@@ -3323,7 +3277,7 @@ var _ProjectClient = class _ProjectClient extends ApiClient13 {
3323
3277
  }
3324
3278
  /** Deletes a Project */
3325
3279
  async remove(body) {
3326
- const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url3));
3280
+ const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
3327
3281
  await this.apiClient(fetchUri, {
3328
3282
  method: "DELETE",
3329
3283
  body: JSON.stringify({ ...body }),
@@ -3335,9 +3289,9 @@ var _ProjectClient = class _ProjectClient extends ApiClient13 {
3335
3289
  return this.remove(body);
3336
3290
  }
3337
3291
  };
3338
- _url3 = new WeakMap();
3292
+ _url2 = new WeakMap();
3339
3293
  _projectsUrl = new WeakMap();
3340
- __privateAdd(_ProjectClient, _url3, "/api/v1/project");
3294
+ __privateAdd(_ProjectClient, _url2, "/api/v1/project");
3341
3295
  __privateAdd(_ProjectClient, _projectsUrl, "/api/v1/projects");
3342
3296
  var ProjectClient = _ProjectClient;
3343
3297
 
@@ -3524,9 +3478,9 @@ function queryToProjection(source) {
3524
3478
  }
3525
3479
 
3526
3480
  // src/PromptClient.ts
3527
- import { ApiClient as ApiClient14 } from "@uniformdev/context/api";
3481
+ import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
3528
3482
  var PromptsUrl = "/api/v1/prompts";
3529
- var PromptClient = class extends ApiClient14 {
3483
+ var PromptClient = class extends ApiClient13 {
3530
3484
  constructor(options) {
3531
3485
  super(options);
3532
3486
  }
@@ -3557,9 +3511,9 @@ var PromptClient = class extends ApiClient14 {
3557
3511
  };
3558
3512
 
3559
3513
  // src/RelationshipClient.ts
3560
- import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
3514
+ import { ApiClient as ApiClient14 } from "@uniformdev/context/api";
3561
3515
  var RELATIONSHIPS_URL = "/api/v1/relationships";
3562
- var RelationshipClient = class extends ApiClient15 {
3516
+ var RelationshipClient = class extends ApiClient14 {
3563
3517
  constructor(options) {
3564
3518
  super(options);
3565
3519
  this.list = async (options) => {
@@ -3575,9 +3529,9 @@ var RelationshipClient = class extends ApiClient15 {
3575
3529
  };
3576
3530
 
3577
3531
  // src/ReleaseClient.ts
3578
- import { ApiClient as ApiClient16 } from "@uniformdev/context/api";
3532
+ import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
3579
3533
  var releasesUrl = "/api/v1/releases";
3580
- var ReleaseClient = class extends ApiClient16 {
3534
+ var ReleaseClient = class extends ApiClient15 {
3581
3535
  constructor(options) {
3582
3536
  super(options);
3583
3537
  }
@@ -3625,9 +3579,9 @@ var ReleaseClient = class extends ApiClient16 {
3625
3579
  };
3626
3580
 
3627
3581
  // src/ReleaseContentsClient.ts
3628
- import { ApiClient as ApiClient17 } from "@uniformdev/context/api";
3582
+ import { ApiClient as ApiClient16 } from "@uniformdev/context/api";
3629
3583
  var releaseContentsUrl = "/api/v1/release-contents";
3630
- var ReleaseContentsClient = class extends ApiClient17 {
3584
+ var ReleaseContentsClient = class extends ApiClient16 {
3631
3585
  constructor(options) {
3632
3586
  super(options);
3633
3587
  }
@@ -3653,9 +3607,9 @@ var ReleaseContentsClient = class extends ApiClient17 {
3653
3607
  };
3654
3608
 
3655
3609
  // src/RouteClient.ts
3656
- import { ApiClient as ApiClient18 } from "@uniformdev/context/api";
3610
+ import { ApiClient as ApiClient17 } from "@uniformdev/context/api";
3657
3611
  var ROUTE_URL = "/api/v1/route";
3658
- var RouteClient = class extends ApiClient18 {
3612
+ var RouteClient = class extends ApiClient17 {
3659
3613
  constructor(options) {
3660
3614
  var _a;
3661
3615
  if (!options.limitPolicy) {
@@ -3843,7 +3797,9 @@ var getParameterAttributes = ({
3843
3797
 
3844
3798
  // src/utils/isAllowedReferrer.ts
3845
3799
  var isAllowedReferrer = (referrer) => {
3846
- return Boolean(referrer == null ? void 0 : referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|localhost:\d{4})\//));
3800
+ return Boolean(
3801
+ referrer == null ? void 0 : referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|uniformcode.ai|localhost:\d{4})\//)
3802
+ );
3847
3803
  };
3848
3804
 
3849
3805
  // src/utils/isSystemComponentDefinition.ts
@@ -4042,12 +3998,12 @@ function handleRichTextNodeBinding(object, options) {
4042
3998
  import { ApiClientError as ApiClientError5 } from "@uniformdev/context/api";
4043
3999
 
4044
4000
  // src/.version.ts
4045
- var version = "20.72.3";
4001
+ var version = "20.73.0";
4046
4002
 
4047
4003
  // src/WorkflowClient.ts
4048
- import { ApiClient as ApiClient19 } from "@uniformdev/context/api";
4004
+ import { ApiClient as ApiClient18 } from "@uniformdev/context/api";
4049
4005
  var workflowsUrl = "/api/v1/workflows";
4050
- var WorkflowClient = class extends ApiClient19 {
4006
+ var WorkflowClient = class extends ApiClient18 {
4051
4007
  constructor(options) {
4052
4008
  super(options);
4053
4009
  }
@@ -4167,7 +4123,6 @@ export {
4167
4123
  LOCALE_DYNAMIC_INPUT_NAME,
4168
4124
  LabelClient,
4169
4125
  LocaleClient,
4170
- NotificationsClient,
4171
4126
  PLACEHOLDER_ID,
4172
4127
  PreviewClient,
4173
4128
  ProjectClient,