@uniformdev/canvas 20.31.1-alpha.1 → 20.31.1-alpha.184

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
@@ -2513,10 +2513,55 @@ var EntityReleasesClient = class extends ApiClient6 {
2513
2513
  }
2514
2514
  };
2515
2515
 
2516
- // src/LocaleClient.ts
2516
+ // src/IntegrationPropertyEditorsClient.ts
2517
2517
  import { ApiClient as ApiClient7 } from "@uniformdev/context/api";
2518
+ var _baseUrl;
2519
+ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient extends ApiClient7 {
2520
+ constructor(options) {
2521
+ super(options);
2522
+ this.teamId = options.teamId;
2523
+ }
2524
+ /**
2525
+ * Gets a list of property type and hook names for the current team, including public integrations' hooks.
2526
+ */
2527
+ get(options) {
2528
+ const fetchUri = this.createUrl(__privateGet(_IntegrationPropertyEditorsClient, _baseUrl), {
2529
+ ...options,
2530
+ teamId: this.teamId
2531
+ });
2532
+ return this.apiClient(fetchUri);
2533
+ }
2534
+ /**
2535
+ * Creates or updates a custom AI property editor on a Mesh app.
2536
+ */
2537
+ async deploy(body) {
2538
+ const fetchUri = this.createUrl(__privateGet(_IntegrationPropertyEditorsClient, _baseUrl));
2539
+ await this.apiClient(fetchUri, {
2540
+ method: "PUT",
2541
+ body: JSON.stringify({ ...body, teamId: this.teamId }),
2542
+ expectNoContent: true
2543
+ });
2544
+ }
2545
+ /**
2546
+ * Removes a custom AI property editor from a Mesh app.
2547
+ */
2548
+ async delete(body) {
2549
+ const fetchUri = this.createUrl(__privateGet(_IntegrationPropertyEditorsClient, _baseUrl));
2550
+ await this.apiClient(fetchUri, {
2551
+ method: "DELETE",
2552
+ body: JSON.stringify({ ...body, teamId: this.teamId }),
2553
+ expectNoContent: true
2554
+ });
2555
+ }
2556
+ };
2557
+ _baseUrl = new WeakMap();
2558
+ __privateAdd(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
2559
+ var IntegrationPropertyEditorsClient = _IntegrationPropertyEditorsClient;
2560
+
2561
+ // src/LocaleClient.ts
2562
+ import { ApiClient as ApiClient8 } from "@uniformdev/context/api";
2518
2563
  var localesUrl = "/api/v1/locales";
2519
- var LocaleClient = class extends ApiClient7 {
2564
+ var LocaleClient = class extends ApiClient8 {
2520
2565
  constructor(options) {
2521
2566
  super(options);
2522
2567
  }
@@ -2601,6 +2646,9 @@ var isUpdatePreviewSettingsMessage = (message) => {
2601
2646
  var isUpdateFeatureFlagsMessage = (message) => {
2602
2647
  return message.type === "update-feature-flags";
2603
2648
  };
2649
+ var isUpdateAiActionsMessage = (message) => {
2650
+ return message.type === "update-ai-actions";
2651
+ };
2604
2652
  var isUpdateContextualEditingStateInternalMessage = (message) => {
2605
2653
  return message.type === "update-contextual-editing-state-internal";
2606
2654
  };
@@ -2821,6 +2869,13 @@ var createCanvasChannel = ({
2821
2869
  };
2822
2870
  postMessage(message);
2823
2871
  };
2872
+ const updateAiActions = (options) => {
2873
+ const message = {
2874
+ ...options,
2875
+ type: "update-ai-actions"
2876
+ };
2877
+ postMessage(message);
2878
+ };
2824
2879
  const contextStorageUpdated = (options) => {
2825
2880
  const message = {
2826
2881
  ...options,
@@ -2870,6 +2925,7 @@ var createCanvasChannel = ({
2870
2925
  triggerCompositionAction,
2871
2926
  updatePreviewSettings,
2872
2927
  updateFeatureFlags,
2928
+ updateAiActions,
2873
2929
  updateContextualEditingStateInternal,
2874
2930
  selectParameter,
2875
2931
  openParameterEditor,
@@ -2885,10 +2941,10 @@ var createCanvasChannel = ({
2885
2941
  };
2886
2942
 
2887
2943
  // src/PreviewClient.ts
2888
- import { ApiClient as ApiClient8 } from "@uniformdev/context/api";
2944
+ import { ApiClient as ApiClient9 } from "@uniformdev/context/api";
2889
2945
  var previewUrlsUrl = "/api/v1/preview-urls";
2890
2946
  var previewViewportsUrl = "/api/v1/preview-viewports";
2891
- var PreviewClient = class extends ApiClient8 {
2947
+ var PreviewClient = class extends ApiClient9 {
2892
2948
  constructor(options) {
2893
2949
  super(options);
2894
2950
  }
@@ -2951,9 +3007,9 @@ var PreviewClient = class extends ApiClient8 {
2951
3007
  };
2952
3008
 
2953
3009
  // src/ProjectClient.ts
2954
- import { ApiClient as ApiClient9 } from "@uniformdev/context/api";
3010
+ import { ApiClient as ApiClient10 } from "@uniformdev/context/api";
2955
3011
  var _url2;
2956
- var _ProjectClient = class _ProjectClient extends ApiClient9 {
3012
+ var _ProjectClient = class _ProjectClient extends ApiClient10 {
2957
3013
  constructor(options) {
2958
3014
  super({ ...options, bypassCache: true });
2959
3015
  }
@@ -2985,9 +3041,9 @@ __privateAdd(_ProjectClient, _url2, "/api/v1/project");
2985
3041
  var ProjectClient = _ProjectClient;
2986
3042
 
2987
3043
  // src/PromptClient.ts
2988
- import { ApiClient as ApiClient10 } from "@uniformdev/context/api";
3044
+ import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
2989
3045
  var PromptsUrl = "/api/v1/prompts";
2990
- var PromptClient = class extends ApiClient10 {
3046
+ var PromptClient = class extends ApiClient11 {
2991
3047
  constructor(options) {
2992
3048
  super(options);
2993
3049
  }
@@ -3018,9 +3074,9 @@ var PromptClient = class extends ApiClient10 {
3018
3074
  };
3019
3075
 
3020
3076
  // src/RelationshipClient.ts
3021
- import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
3077
+ import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
3022
3078
  var RELATIONSHIPS_URL = "/api/v1/relationships";
3023
- var RelationshipClient = class extends ApiClient11 {
3079
+ var RelationshipClient = class extends ApiClient12 {
3024
3080
  constructor(options) {
3025
3081
  super(options);
3026
3082
  this.get = async (options) => {
@@ -3032,9 +3088,9 @@ var RelationshipClient = class extends ApiClient11 {
3032
3088
  };
3033
3089
 
3034
3090
  // src/ReleaseClient.ts
3035
- import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
3091
+ import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
3036
3092
  var releasesUrl = "/api/v1/releases";
3037
- var ReleaseClient = class extends ApiClient12 {
3093
+ var ReleaseClient = class extends ApiClient13 {
3038
3094
  constructor(options) {
3039
3095
  super(options);
3040
3096
  }
@@ -3074,9 +3130,9 @@ var ReleaseClient = class extends ApiClient12 {
3074
3130
  };
3075
3131
 
3076
3132
  // src/ReleaseContentsClient.ts
3077
- import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
3133
+ import { ApiClient as ApiClient14 } from "@uniformdev/context/api";
3078
3134
  var releaseContentsUrl2 = "/api/v1/release-contents";
3079
- var ReleaseContentsClient = class extends ApiClient13 {
3135
+ var ReleaseContentsClient = class extends ApiClient14 {
3080
3136
  constructor(options) {
3081
3137
  super(options);
3082
3138
  }
@@ -3098,9 +3154,9 @@ var ReleaseContentsClient = class extends ApiClient13 {
3098
3154
  };
3099
3155
 
3100
3156
  // src/RouteClient.ts
3101
- import { ApiClient as ApiClient14 } from "@uniformdev/context/api";
3157
+ import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
3102
3158
  var ROUTE_URL = "/api/v1/route";
3103
- var RouteClient = class extends ApiClient14 {
3159
+ var RouteClient = class extends ApiClient15 {
3104
3160
  constructor(options) {
3105
3161
  var _a;
3106
3162
  if (!options.limitPolicy) {
@@ -3252,7 +3308,8 @@ function mapSlotToTestVariations(slot) {
3252
3308
  return {
3253
3309
  ...v,
3254
3310
  id,
3255
- testDistribution: contextTag == null ? void 0 : contextTag.testDistribution
3311
+ testDistribution: contextTag == null ? void 0 : contextTag.testDistribution,
3312
+ control: contextTag == null ? void 0 : contextTag.control
3256
3313
  };
3257
3314
  });
3258
3315
  }
@@ -3417,12 +3474,12 @@ function handleRichTextNodeBinding(object, options) {
3417
3474
  import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
3418
3475
 
3419
3476
  // src/.version.ts
3420
- var version = "20.31.0";
3477
+ var version = "20.36.1";
3421
3478
 
3422
3479
  // src/WorkflowClient.ts
3423
- import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
3480
+ import { ApiClient as ApiClient16 } from "@uniformdev/context/api";
3424
3481
  var workflowsUrl = "/api/v1/workflows";
3425
- var WorkflowClient = class extends ApiClient15 {
3482
+ var WorkflowClient = class extends ApiClient16 {
3426
3483
  constructor(options) {
3427
3484
  super(options);
3428
3485
  }
@@ -3516,6 +3573,7 @@ export {
3516
3573
  IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM,
3517
3574
  IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
3518
3575
  IS_RENDERED_BY_UNIFORM_ATTRIBUTE,
3576
+ IntegrationPropertyEditorsClient,
3519
3577
  LOCALE_DYNAMIC_INPUT_NAME,
3520
3578
  LocaleClient,
3521
3579
  PLACEHOLDER_ID,
@@ -3593,6 +3651,7 @@ export {
3593
3651
  isSuggestComponentMessage,
3594
3652
  isSystemComponentDefinition,
3595
3653
  isTriggerCompositionActionMessage,
3654
+ isUpdateAiActionsMessage,
3596
3655
  isUpdateComponentParameterMessage,
3597
3656
  isUpdateComponentReferencesMessage,
3598
3657
  isUpdateCompositionInternalMessage,
package/dist/index.js CHANGED
@@ -397,7 +397,7 @@ __export(src_exports, {
397
397
  ATTRIBUTE_PARAMETER_TYPE: () => ATTRIBUTE_PARAMETER_TYPE,
398
398
  ATTRIBUTE_PARAMETER_VALUE: () => ATTRIBUTE_PARAMETER_VALUE,
399
399
  ATTRIBUTE_PLACEHOLDER: () => ATTRIBUTE_PLACEHOLDER,
400
- ApiClientError: () => import_api17.ApiClientError,
400
+ ApiClientError: () => import_api18.ApiClientError,
401
401
  BatchEntry: () => BatchEntry,
402
402
  BlockFormatError: () => BlockFormatError,
403
403
  CANVAS_BLOCK_PARAM_TYPE: () => CANVAS_BLOCK_PARAM_TYPE,
@@ -449,6 +449,7 @@ __export(src_exports, {
449
449
  IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM: () => IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM,
450
450
  IN_CONTEXT_EDITOR_QUERY_STRING_PARAM: () => IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
451
451
  IS_RENDERED_BY_UNIFORM_ATTRIBUTE: () => IS_RENDERED_BY_UNIFORM_ATTRIBUTE,
452
+ IntegrationPropertyEditorsClient: () => IntegrationPropertyEditorsClient,
452
453
  LOCALE_DYNAMIC_INPUT_NAME: () => LOCALE_DYNAMIC_INPUT_NAME,
453
454
  LocaleClient: () => LocaleClient,
454
455
  PLACEHOLDER_ID: () => PLACEHOLDER_ID,
@@ -526,6 +527,7 @@ __export(src_exports, {
526
527
  isSuggestComponentMessage: () => isSuggestComponentMessage,
527
528
  isSystemComponentDefinition: () => isSystemComponentDefinition,
528
529
  isTriggerCompositionActionMessage: () => isTriggerCompositionActionMessage,
530
+ isUpdateAiActionsMessage: () => isUpdateAiActionsMessage,
529
531
  isUpdateComponentParameterMessage: () => isUpdateComponentParameterMessage,
530
532
  isUpdateComponentReferencesMessage: () => isUpdateComponentReferencesMessage,
531
533
  isUpdateCompositionInternalMessage: () => isUpdateCompositionInternalMessage,
@@ -2679,10 +2681,55 @@ var EntityReleasesClient = class extends import_api7.ApiClient {
2679
2681
  }
2680
2682
  };
2681
2683
 
2682
- // src/LocaleClient.ts
2684
+ // src/IntegrationPropertyEditorsClient.ts
2683
2685
  var import_api8 = require("@uniformdev/context/api");
2686
+ var _baseUrl;
2687
+ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient extends import_api8.ApiClient {
2688
+ constructor(options) {
2689
+ super(options);
2690
+ this.teamId = options.teamId;
2691
+ }
2692
+ /**
2693
+ * Gets a list of property type and hook names for the current team, including public integrations' hooks.
2694
+ */
2695
+ get(options) {
2696
+ const fetchUri = this.createUrl(__privateGet(_IntegrationPropertyEditorsClient, _baseUrl), {
2697
+ ...options,
2698
+ teamId: this.teamId
2699
+ });
2700
+ return this.apiClient(fetchUri);
2701
+ }
2702
+ /**
2703
+ * Creates or updates a custom AI property editor on a Mesh app.
2704
+ */
2705
+ async deploy(body) {
2706
+ const fetchUri = this.createUrl(__privateGet(_IntegrationPropertyEditorsClient, _baseUrl));
2707
+ await this.apiClient(fetchUri, {
2708
+ method: "PUT",
2709
+ body: JSON.stringify({ ...body, teamId: this.teamId }),
2710
+ expectNoContent: true
2711
+ });
2712
+ }
2713
+ /**
2714
+ * Removes a custom AI property editor from a Mesh app.
2715
+ */
2716
+ async delete(body) {
2717
+ const fetchUri = this.createUrl(__privateGet(_IntegrationPropertyEditorsClient, _baseUrl));
2718
+ await this.apiClient(fetchUri, {
2719
+ method: "DELETE",
2720
+ body: JSON.stringify({ ...body, teamId: this.teamId }),
2721
+ expectNoContent: true
2722
+ });
2723
+ }
2724
+ };
2725
+ _baseUrl = new WeakMap();
2726
+ __privateAdd(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
2727
+ var IntegrationPropertyEditorsClient = _IntegrationPropertyEditorsClient;
2728
+
2729
+ // src/LocaleClient.ts
2730
+ var import_api9 = require("@uniformdev/context/api");
2684
2731
  var localesUrl = "/api/v1/locales";
2685
- var LocaleClient = class extends import_api8.ApiClient {
2732
+ var LocaleClient = class extends import_api9.ApiClient {
2686
2733
  constructor(options) {
2687
2734
  super(options);
2688
2735
  }
@@ -2767,6 +2814,9 @@ var isUpdatePreviewSettingsMessage = (message) => {
2767
2814
  var isUpdateFeatureFlagsMessage = (message) => {
2768
2815
  return message.type === "update-feature-flags";
2769
2816
  };
2817
+ var isUpdateAiActionsMessage = (message) => {
2818
+ return message.type === "update-ai-actions";
2819
+ };
2770
2820
  var isUpdateContextualEditingStateInternalMessage = (message) => {
2771
2821
  return message.type === "update-contextual-editing-state-internal";
2772
2822
  };
@@ -2987,6 +3037,13 @@ var createCanvasChannel = ({
2987
3037
  };
2988
3038
  postMessage(message);
2989
3039
  };
3040
+ const updateAiActions = (options) => {
3041
+ const message = {
3042
+ ...options,
3043
+ type: "update-ai-actions"
3044
+ };
3045
+ postMessage(message);
3046
+ };
2990
3047
  const contextStorageUpdated = (options) => {
2991
3048
  const message = {
2992
3049
  ...options,
@@ -3036,6 +3093,7 @@ var createCanvasChannel = ({
3036
3093
  triggerCompositionAction,
3037
3094
  updatePreviewSettings,
3038
3095
  updateFeatureFlags,
3096
+ updateAiActions,
3039
3097
  updateContextualEditingStateInternal,
3040
3098
  selectParameter,
3041
3099
  openParameterEditor,
@@ -3051,10 +3109,10 @@ var createCanvasChannel = ({
3051
3109
  };
3052
3110
 
3053
3111
  // src/PreviewClient.ts
3054
- var import_api9 = require("@uniformdev/context/api");
3112
+ var import_api10 = require("@uniformdev/context/api");
3055
3113
  var previewUrlsUrl = "/api/v1/preview-urls";
3056
3114
  var previewViewportsUrl = "/api/v1/preview-viewports";
3057
- var PreviewClient = class extends import_api9.ApiClient {
3115
+ var PreviewClient = class extends import_api10.ApiClient {
3058
3116
  constructor(options) {
3059
3117
  super(options);
3060
3118
  }
@@ -3117,9 +3175,9 @@ var PreviewClient = class extends import_api9.ApiClient {
3117
3175
  };
3118
3176
 
3119
3177
  // src/ProjectClient.ts
3120
- var import_api10 = require("@uniformdev/context/api");
3178
+ var import_api11 = require("@uniformdev/context/api");
3121
3179
  var _url2;
3122
- var _ProjectClient = class _ProjectClient extends import_api10.ApiClient {
3180
+ var _ProjectClient = class _ProjectClient extends import_api11.ApiClient {
3123
3181
  constructor(options) {
3124
3182
  super({ ...options, bypassCache: true });
3125
3183
  }
@@ -3151,9 +3209,9 @@ __privateAdd(_ProjectClient, _url2, "/api/v1/project");
3151
3209
  var ProjectClient = _ProjectClient;
3152
3210
 
3153
3211
  // src/PromptClient.ts
3154
- var import_api11 = require("@uniformdev/context/api");
3212
+ var import_api12 = require("@uniformdev/context/api");
3155
3213
  var PromptsUrl = "/api/v1/prompts";
3156
- var PromptClient = class extends import_api11.ApiClient {
3214
+ var PromptClient = class extends import_api12.ApiClient {
3157
3215
  constructor(options) {
3158
3216
  super(options);
3159
3217
  }
@@ -3184,9 +3242,9 @@ var PromptClient = class extends import_api11.ApiClient {
3184
3242
  };
3185
3243
 
3186
3244
  // src/RelationshipClient.ts
3187
- var import_api12 = require("@uniformdev/context/api");
3245
+ var import_api13 = require("@uniformdev/context/api");
3188
3246
  var RELATIONSHIPS_URL = "/api/v1/relationships";
3189
- var RelationshipClient = class extends import_api12.ApiClient {
3247
+ var RelationshipClient = class extends import_api13.ApiClient {
3190
3248
  constructor(options) {
3191
3249
  super(options);
3192
3250
  this.get = async (options) => {
@@ -3198,9 +3256,9 @@ var RelationshipClient = class extends import_api12.ApiClient {
3198
3256
  };
3199
3257
 
3200
3258
  // src/ReleaseClient.ts
3201
- var import_api13 = require("@uniformdev/context/api");
3259
+ var import_api14 = require("@uniformdev/context/api");
3202
3260
  var releasesUrl = "/api/v1/releases";
3203
- var ReleaseClient = class extends import_api13.ApiClient {
3261
+ var ReleaseClient = class extends import_api14.ApiClient {
3204
3262
  constructor(options) {
3205
3263
  super(options);
3206
3264
  }
@@ -3240,9 +3298,9 @@ var ReleaseClient = class extends import_api13.ApiClient {
3240
3298
  };
3241
3299
 
3242
3300
  // src/ReleaseContentsClient.ts
3243
- var import_api14 = require("@uniformdev/context/api");
3301
+ var import_api15 = require("@uniformdev/context/api");
3244
3302
  var releaseContentsUrl2 = "/api/v1/release-contents";
3245
- var ReleaseContentsClient = class extends import_api14.ApiClient {
3303
+ var ReleaseContentsClient = class extends import_api15.ApiClient {
3246
3304
  constructor(options) {
3247
3305
  super(options);
3248
3306
  }
@@ -3264,9 +3322,9 @@ var ReleaseContentsClient = class extends import_api14.ApiClient {
3264
3322
  };
3265
3323
 
3266
3324
  // src/RouteClient.ts
3267
- var import_api15 = require("@uniformdev/context/api");
3325
+ var import_api16 = require("@uniformdev/context/api");
3268
3326
  var ROUTE_URL = "/api/v1/route";
3269
- var RouteClient = class extends import_api15.ApiClient {
3327
+ var RouteClient = class extends import_api16.ApiClient {
3270
3328
  constructor(options) {
3271
3329
  var _a;
3272
3330
  if (!options.limitPolicy) {
@@ -3418,7 +3476,8 @@ function mapSlotToTestVariations(slot) {
3418
3476
  return {
3419
3477
  ...v,
3420
3478
  id,
3421
- testDistribution: contextTag == null ? void 0 : contextTag.testDistribution
3479
+ testDistribution: contextTag == null ? void 0 : contextTag.testDistribution,
3480
+ control: contextTag == null ? void 0 : contextTag.control
3422
3481
  };
3423
3482
  });
3424
3483
  }
@@ -3580,15 +3639,15 @@ function handleRichTextNodeBinding(object, options) {
3580
3639
  }
3581
3640
 
3582
3641
  // src/index.ts
3583
- var import_api17 = require("@uniformdev/context/api");
3642
+ var import_api18 = require("@uniformdev/context/api");
3584
3643
 
3585
3644
  // src/.version.ts
3586
- var version = "20.31.0";
3645
+ var version = "20.36.1";
3587
3646
 
3588
3647
  // src/WorkflowClient.ts
3589
- var import_api16 = require("@uniformdev/context/api");
3648
+ var import_api17 = require("@uniformdev/context/api");
3590
3649
  var workflowsUrl = "/api/v1/workflows";
3591
- var WorkflowClient = class extends import_api16.ApiClient {
3650
+ var WorkflowClient = class extends import_api17.ApiClient {
3592
3651
  constructor(options) {
3593
3652
  super(options);
3594
3653
  }
@@ -3619,7 +3678,7 @@ var WorkflowClient = class extends import_api16.ApiClient {
3619
3678
  };
3620
3679
 
3621
3680
  // src/index.ts
3622
- var CanvasClientError = import_api17.ApiClientError;
3681
+ var CanvasClientError = import_api18.ApiClientError;
3623
3682
  // Annotate the CommonJS export names for ESM import in node:
3624
3683
  0 && (module.exports = {
3625
3684
  ASSETS_SOURCE_CUSTOM_URL,
@@ -3683,6 +3742,7 @@ var CanvasClientError = import_api17.ApiClientError;
3683
3742
  IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM,
3684
3743
  IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
3685
3744
  IS_RENDERED_BY_UNIFORM_ATTRIBUTE,
3745
+ IntegrationPropertyEditorsClient,
3686
3746
  LOCALE_DYNAMIC_INPUT_NAME,
3687
3747
  LocaleClient,
3688
3748
  PLACEHOLDER_ID,
@@ -3760,6 +3820,7 @@ var CanvasClientError = import_api17.ApiClientError;
3760
3820
  isSuggestComponentMessage,
3761
3821
  isSystemComponentDefinition,
3762
3822
  isTriggerCompositionActionMessage,
3823
+ isUpdateAiActionsMessage,
3763
3824
  isUpdateComponentParameterMessage,
3764
3825
  isUpdateComponentReferencesMessage,
3765
3826
  isUpdateCompositionInternalMessage,
package/dist/index.mjs CHANGED
@@ -2513,10 +2513,55 @@ var EntityReleasesClient = class extends ApiClient6 {
2513
2513
  }
2514
2514
  };
2515
2515
 
2516
- // src/LocaleClient.ts
2516
+ // src/IntegrationPropertyEditorsClient.ts
2517
2517
  import { ApiClient as ApiClient7 } from "@uniformdev/context/api";
2518
+ var _baseUrl;
2519
+ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient extends ApiClient7 {
2520
+ constructor(options) {
2521
+ super(options);
2522
+ this.teamId = options.teamId;
2523
+ }
2524
+ /**
2525
+ * Gets a list of property type and hook names for the current team, including public integrations' hooks.
2526
+ */
2527
+ get(options) {
2528
+ const fetchUri = this.createUrl(__privateGet(_IntegrationPropertyEditorsClient, _baseUrl), {
2529
+ ...options,
2530
+ teamId: this.teamId
2531
+ });
2532
+ return this.apiClient(fetchUri);
2533
+ }
2534
+ /**
2535
+ * Creates or updates a custom AI property editor on a Mesh app.
2536
+ */
2537
+ async deploy(body) {
2538
+ const fetchUri = this.createUrl(__privateGet(_IntegrationPropertyEditorsClient, _baseUrl));
2539
+ await this.apiClient(fetchUri, {
2540
+ method: "PUT",
2541
+ body: JSON.stringify({ ...body, teamId: this.teamId }),
2542
+ expectNoContent: true
2543
+ });
2544
+ }
2545
+ /**
2546
+ * Removes a custom AI property editor from a Mesh app.
2547
+ */
2548
+ async delete(body) {
2549
+ const fetchUri = this.createUrl(__privateGet(_IntegrationPropertyEditorsClient, _baseUrl));
2550
+ await this.apiClient(fetchUri, {
2551
+ method: "DELETE",
2552
+ body: JSON.stringify({ ...body, teamId: this.teamId }),
2553
+ expectNoContent: true
2554
+ });
2555
+ }
2556
+ };
2557
+ _baseUrl = new WeakMap();
2558
+ __privateAdd(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
2559
+ var IntegrationPropertyEditorsClient = _IntegrationPropertyEditorsClient;
2560
+
2561
+ // src/LocaleClient.ts
2562
+ import { ApiClient as ApiClient8 } from "@uniformdev/context/api";
2518
2563
  var localesUrl = "/api/v1/locales";
2519
- var LocaleClient = class extends ApiClient7 {
2564
+ var LocaleClient = class extends ApiClient8 {
2520
2565
  constructor(options) {
2521
2566
  super(options);
2522
2567
  }
@@ -2601,6 +2646,9 @@ var isUpdatePreviewSettingsMessage = (message) => {
2601
2646
  var isUpdateFeatureFlagsMessage = (message) => {
2602
2647
  return message.type === "update-feature-flags";
2603
2648
  };
2649
+ var isUpdateAiActionsMessage = (message) => {
2650
+ return message.type === "update-ai-actions";
2651
+ };
2604
2652
  var isUpdateContextualEditingStateInternalMessage = (message) => {
2605
2653
  return message.type === "update-contextual-editing-state-internal";
2606
2654
  };
@@ -2821,6 +2869,13 @@ var createCanvasChannel = ({
2821
2869
  };
2822
2870
  postMessage(message);
2823
2871
  };
2872
+ const updateAiActions = (options) => {
2873
+ const message = {
2874
+ ...options,
2875
+ type: "update-ai-actions"
2876
+ };
2877
+ postMessage(message);
2878
+ };
2824
2879
  const contextStorageUpdated = (options) => {
2825
2880
  const message = {
2826
2881
  ...options,
@@ -2870,6 +2925,7 @@ var createCanvasChannel = ({
2870
2925
  triggerCompositionAction,
2871
2926
  updatePreviewSettings,
2872
2927
  updateFeatureFlags,
2928
+ updateAiActions,
2873
2929
  updateContextualEditingStateInternal,
2874
2930
  selectParameter,
2875
2931
  openParameterEditor,
@@ -2885,10 +2941,10 @@ var createCanvasChannel = ({
2885
2941
  };
2886
2942
 
2887
2943
  // src/PreviewClient.ts
2888
- import { ApiClient as ApiClient8 } from "@uniformdev/context/api";
2944
+ import { ApiClient as ApiClient9 } from "@uniformdev/context/api";
2889
2945
  var previewUrlsUrl = "/api/v1/preview-urls";
2890
2946
  var previewViewportsUrl = "/api/v1/preview-viewports";
2891
- var PreviewClient = class extends ApiClient8 {
2947
+ var PreviewClient = class extends ApiClient9 {
2892
2948
  constructor(options) {
2893
2949
  super(options);
2894
2950
  }
@@ -2951,9 +3007,9 @@ var PreviewClient = class extends ApiClient8 {
2951
3007
  };
2952
3008
 
2953
3009
  // src/ProjectClient.ts
2954
- import { ApiClient as ApiClient9 } from "@uniformdev/context/api";
3010
+ import { ApiClient as ApiClient10 } from "@uniformdev/context/api";
2955
3011
  var _url2;
2956
- var _ProjectClient = class _ProjectClient extends ApiClient9 {
3012
+ var _ProjectClient = class _ProjectClient extends ApiClient10 {
2957
3013
  constructor(options) {
2958
3014
  super({ ...options, bypassCache: true });
2959
3015
  }
@@ -2985,9 +3041,9 @@ __privateAdd(_ProjectClient, _url2, "/api/v1/project");
2985
3041
  var ProjectClient = _ProjectClient;
2986
3042
 
2987
3043
  // src/PromptClient.ts
2988
- import { ApiClient as ApiClient10 } from "@uniformdev/context/api";
3044
+ import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
2989
3045
  var PromptsUrl = "/api/v1/prompts";
2990
- var PromptClient = class extends ApiClient10 {
3046
+ var PromptClient = class extends ApiClient11 {
2991
3047
  constructor(options) {
2992
3048
  super(options);
2993
3049
  }
@@ -3018,9 +3074,9 @@ var PromptClient = class extends ApiClient10 {
3018
3074
  };
3019
3075
 
3020
3076
  // src/RelationshipClient.ts
3021
- import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
3077
+ import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
3022
3078
  var RELATIONSHIPS_URL = "/api/v1/relationships";
3023
- var RelationshipClient = class extends ApiClient11 {
3079
+ var RelationshipClient = class extends ApiClient12 {
3024
3080
  constructor(options) {
3025
3081
  super(options);
3026
3082
  this.get = async (options) => {
@@ -3032,9 +3088,9 @@ var RelationshipClient = class extends ApiClient11 {
3032
3088
  };
3033
3089
 
3034
3090
  // src/ReleaseClient.ts
3035
- import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
3091
+ import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
3036
3092
  var releasesUrl = "/api/v1/releases";
3037
- var ReleaseClient = class extends ApiClient12 {
3093
+ var ReleaseClient = class extends ApiClient13 {
3038
3094
  constructor(options) {
3039
3095
  super(options);
3040
3096
  }
@@ -3074,9 +3130,9 @@ var ReleaseClient = class extends ApiClient12 {
3074
3130
  };
3075
3131
 
3076
3132
  // src/ReleaseContentsClient.ts
3077
- import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
3133
+ import { ApiClient as ApiClient14 } from "@uniformdev/context/api";
3078
3134
  var releaseContentsUrl2 = "/api/v1/release-contents";
3079
- var ReleaseContentsClient = class extends ApiClient13 {
3135
+ var ReleaseContentsClient = class extends ApiClient14 {
3080
3136
  constructor(options) {
3081
3137
  super(options);
3082
3138
  }
@@ -3098,9 +3154,9 @@ var ReleaseContentsClient = class extends ApiClient13 {
3098
3154
  };
3099
3155
 
3100
3156
  // src/RouteClient.ts
3101
- import { ApiClient as ApiClient14 } from "@uniformdev/context/api";
3157
+ import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
3102
3158
  var ROUTE_URL = "/api/v1/route";
3103
- var RouteClient = class extends ApiClient14 {
3159
+ var RouteClient = class extends ApiClient15 {
3104
3160
  constructor(options) {
3105
3161
  var _a;
3106
3162
  if (!options.limitPolicy) {
@@ -3252,7 +3308,8 @@ function mapSlotToTestVariations(slot) {
3252
3308
  return {
3253
3309
  ...v,
3254
3310
  id,
3255
- testDistribution: contextTag == null ? void 0 : contextTag.testDistribution
3311
+ testDistribution: contextTag == null ? void 0 : contextTag.testDistribution,
3312
+ control: contextTag == null ? void 0 : contextTag.control
3256
3313
  };
3257
3314
  });
3258
3315
  }
@@ -3417,12 +3474,12 @@ function handleRichTextNodeBinding(object, options) {
3417
3474
  import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
3418
3475
 
3419
3476
  // src/.version.ts
3420
- var version = "20.31.0";
3477
+ var version = "20.36.1";
3421
3478
 
3422
3479
  // src/WorkflowClient.ts
3423
- import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
3480
+ import { ApiClient as ApiClient16 } from "@uniformdev/context/api";
3424
3481
  var workflowsUrl = "/api/v1/workflows";
3425
- var WorkflowClient = class extends ApiClient15 {
3482
+ var WorkflowClient = class extends ApiClient16 {
3426
3483
  constructor(options) {
3427
3484
  super(options);
3428
3485
  }
@@ -3516,6 +3573,7 @@ export {
3516
3573
  IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM,
3517
3574
  IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
3518
3575
  IS_RENDERED_BY_UNIFORM_ATTRIBUTE,
3576
+ IntegrationPropertyEditorsClient,
3519
3577
  LOCALE_DYNAMIC_INPUT_NAME,
3520
3578
  LocaleClient,
3521
3579
  PLACEHOLDER_ID,
@@ -3593,6 +3651,7 @@ export {
3593
3651
  isSuggestComponentMessage,
3594
3652
  isSystemComponentDefinition,
3595
3653
  isTriggerCompositionActionMessage,
3654
+ isUpdateAiActionsMessage,
3596
3655
  isUpdateComponentParameterMessage,
3597
3656
  isUpdateComponentReferencesMessage,
3598
3657
  isUpdateCompositionInternalMessage,