@uniformdev/canvas 20.34.3-alpha.70 → 20.35.1-alpha.188
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.d.mts +1232 -779
- package/dist/index.d.ts +1232 -779
- package/dist/index.esm.js +161 -21
- package/dist/index.js +176 -24
- package/dist/index.mjs +161 -21
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -397,15 +397,18 @@ __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: () =>
|
|
400
|
+
ApiClientError: () => import_api18.ApiClientError,
|
|
401
401
|
BatchEntry: () => BatchEntry,
|
|
402
402
|
BlockFormatError: () => BlockFormatError,
|
|
403
403
|
CANVAS_BLOCK_PARAM_TYPE: () => CANVAS_BLOCK_PARAM_TYPE,
|
|
404
|
+
CANVAS_COMPONENT_DISPLAY_NAME_PARAM: () => CANVAS_COMPONENT_DISPLAY_NAME_PARAM,
|
|
404
405
|
CANVAS_CONTEXTUAL_EDITING_PARAM: () => CANVAS_CONTEXTUAL_EDITING_PARAM,
|
|
405
406
|
CANVAS_DRAFT_STATE: () => CANVAS_DRAFT_STATE,
|
|
406
407
|
CANVAS_EDITOR_STATE: () => CANVAS_EDITOR_STATE,
|
|
407
408
|
CANVAS_ENRICHMENT_TAG_PARAM: () => CANVAS_ENRICHMENT_TAG_PARAM,
|
|
409
|
+
CANVAS_HYPOTHESIS_PARAM: () => CANVAS_HYPOTHESIS_PARAM,
|
|
408
410
|
CANVAS_INTENT_TAG_PARAM: () => CANVAS_INTENT_TAG_PARAM,
|
|
411
|
+
CANVAS_INTERNAL_PARAM_PREFIX: () => CANVAS_INTERNAL_PARAM_PREFIX,
|
|
409
412
|
CANVAS_LOCALE_TAG_PARAM: () => CANVAS_LOCALE_TAG_PARAM,
|
|
410
413
|
CANVAS_LOCALIZATION_SLOT: () => CANVAS_LOCALIZATION_SLOT,
|
|
411
414
|
CANVAS_LOCALIZATION_TYPE: () => CANVAS_LOCALIZATION_TYPE,
|
|
@@ -417,7 +420,12 @@ __export(src_exports, {
|
|
|
417
420
|
CANVAS_PERSONALIZE_SLOT: () => CANVAS_PERSONALIZE_SLOT,
|
|
418
421
|
CANVAS_PERSONALIZE_TYPE: () => CANVAS_PERSONALIZE_TYPE,
|
|
419
422
|
CANVAS_PUBLISHED_STATE: () => CANVAS_PUBLISHED_STATE,
|
|
423
|
+
CANVAS_SLOT_SECTION_GROUP_TYPE_PARAM: () => CANVAS_SLOT_SECTION_GROUP_TYPE_PARAM,
|
|
424
|
+
CANVAS_SLOT_SECTION_MAX_PARAM: () => CANVAS_SLOT_SECTION_MAX_PARAM,
|
|
425
|
+
CANVAS_SLOT_SECTION_MIN_PARAM: () => CANVAS_SLOT_SECTION_MIN_PARAM,
|
|
426
|
+
CANVAS_SLOT_SECTION_NAME_PARAM: () => CANVAS_SLOT_SECTION_NAME_PARAM,
|
|
420
427
|
CANVAS_SLOT_SECTION_SLOT: () => CANVAS_SLOT_SECTION_SLOT,
|
|
428
|
+
CANVAS_SLOT_SECTION_SPECIFIC_PARAM: () => CANVAS_SLOT_SECTION_SPECIFIC_PARAM,
|
|
421
429
|
CANVAS_SLOT_SECTION_TYPE: () => CANVAS_SLOT_SECTION_TYPE,
|
|
422
430
|
CANVAS_TEST_SLOT: () => CANVAS_TEST_SLOT,
|
|
423
431
|
CANVAS_TEST_TYPE: () => CANVAS_TEST_TYPE,
|
|
@@ -449,6 +457,7 @@ __export(src_exports, {
|
|
|
449
457
|
IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM: () => IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM,
|
|
450
458
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM: () => IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
|
|
451
459
|
IS_RENDERED_BY_UNIFORM_ATTRIBUTE: () => IS_RENDERED_BY_UNIFORM_ATTRIBUTE,
|
|
460
|
+
IntegrationPropertyEditorsClient: () => IntegrationPropertyEditorsClient,
|
|
452
461
|
LOCALE_DYNAMIC_INPUT_NAME: () => LOCALE_DYNAMIC_INPUT_NAME,
|
|
453
462
|
LocaleClient: () => LocaleClient,
|
|
454
463
|
PLACEHOLDER_ID: () => PLACEHOLDER_ID,
|
|
@@ -465,6 +474,7 @@ __export(src_exports, {
|
|
|
465
474
|
UncachedContentClient: () => UncachedContentClient,
|
|
466
475
|
UniqueBatchEntries: () => UniqueBatchEntries,
|
|
467
476
|
WorkflowClient: () => WorkflowClient,
|
|
477
|
+
autoFixParameterGroups: () => autoFixParameterGroups,
|
|
468
478
|
bindExpressionEscapeChars: () => bindExpressionEscapeChars,
|
|
469
479
|
bindExpressionPrefix: () => bindExpressionPrefix,
|
|
470
480
|
bindVariables: () => bindVariables,
|
|
@@ -526,6 +536,7 @@ __export(src_exports, {
|
|
|
526
536
|
isSuggestComponentMessage: () => isSuggestComponentMessage,
|
|
527
537
|
isSystemComponentDefinition: () => isSystemComponentDefinition,
|
|
528
538
|
isTriggerCompositionActionMessage: () => isTriggerCompositionActionMessage,
|
|
539
|
+
isUpdateAiActionsMessage: () => isUpdateAiActionsMessage,
|
|
529
540
|
isUpdateComponentParameterMessage: () => isUpdateComponentParameterMessage,
|
|
530
541
|
isUpdateComponentReferencesMessage: () => isUpdateComponentReferencesMessage,
|
|
531
542
|
isUpdateCompositionInternalMessage: () => isUpdateCompositionInternalMessage,
|
|
@@ -536,6 +547,7 @@ __export(src_exports, {
|
|
|
536
547
|
localize: () => localize,
|
|
537
548
|
mapSlotToPersonalizedVariations: () => mapSlotToPersonalizedVariations,
|
|
538
549
|
mapSlotToTestVariations: () => mapSlotToTestVariations,
|
|
550
|
+
mergeAssetConfigWithDefaults: () => mergeAssetConfigWithDefaults,
|
|
539
551
|
nullLimitPolicy: () => nullLimitPolicy,
|
|
540
552
|
parseComponentPlaceholderId: () => parseComponentPlaceholderId,
|
|
541
553
|
parseVariableExpression: () => parseVariableExpression,
|
|
@@ -1247,6 +1259,11 @@ var CANVAS_PERSONALIZE_SLOT = "pz";
|
|
|
1247
1259
|
var CANVAS_TEST_SLOT = "test";
|
|
1248
1260
|
var CANVAS_LOCALIZATION_SLOT = "localized";
|
|
1249
1261
|
var CANVAS_SLOT_SECTION_SLOT = "$slotSectionItems";
|
|
1262
|
+
var CANVAS_SLOT_SECTION_NAME_PARAM = "name";
|
|
1263
|
+
var CANVAS_SLOT_SECTION_MIN_PARAM = "min";
|
|
1264
|
+
var CANVAS_SLOT_SECTION_MAX_PARAM = "max";
|
|
1265
|
+
var CANVAS_SLOT_SECTION_GROUP_TYPE_PARAM = "groupType";
|
|
1266
|
+
var CANVAS_SLOT_SECTION_SPECIFIC_PARAM = "specific";
|
|
1250
1267
|
var CANVAS_DRAFT_STATE = 0;
|
|
1251
1268
|
var CANVAS_PUBLISHED_STATE = 64;
|
|
1252
1269
|
var CANVAS_EDITOR_STATE = 63;
|
|
@@ -1257,6 +1274,9 @@ var CANVAS_PERSONALIZATION_ALGORITHM_TYPE = "pzAlgorithm";
|
|
|
1257
1274
|
var CANVAS_PERSONALIZATION_TAKE_PARAM = "count";
|
|
1258
1275
|
var CANVAS_TEST_VARIANT_PARAM = "$tstVrnt";
|
|
1259
1276
|
var CANVAS_ENRICHMENT_TAG_PARAM = "$enr";
|
|
1277
|
+
var CANVAS_INTERNAL_PARAM_PREFIX = "$internal_";
|
|
1278
|
+
var CANVAS_COMPONENT_DISPLAY_NAME_PARAM = `${CANVAS_INTERNAL_PARAM_PREFIX}displayName`;
|
|
1279
|
+
var CANVAS_HYPOTHESIS_PARAM = `${CANVAS_INTERNAL_PARAM_PREFIX}hypothesis`;
|
|
1260
1280
|
var CANVAS_CONTEXTUAL_EDITING_PARAM = "$contextualEditing";
|
|
1261
1281
|
var SECRET_QUERY_STRING_PARAM = "secret";
|
|
1262
1282
|
var IN_CONTEXT_EDITOR_QUERY_STRING_PARAM = "is_incontext_editing_mode";
|
|
@@ -2679,10 +2699,55 @@ var EntityReleasesClient = class extends import_api7.ApiClient {
|
|
|
2679
2699
|
}
|
|
2680
2700
|
};
|
|
2681
2701
|
|
|
2682
|
-
// src/
|
|
2702
|
+
// src/IntegrationPropertyEditorsClient.ts
|
|
2683
2703
|
var import_api8 = require("@uniformdev/context/api");
|
|
2704
|
+
var _baseUrl;
|
|
2705
|
+
var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient extends import_api8.ApiClient {
|
|
2706
|
+
constructor(options) {
|
|
2707
|
+
super(options);
|
|
2708
|
+
this.teamId = options.teamId;
|
|
2709
|
+
}
|
|
2710
|
+
/**
|
|
2711
|
+
* Gets a list of property type and hook names for the current team, including public integrations' hooks.
|
|
2712
|
+
*/
|
|
2713
|
+
get(options) {
|
|
2714
|
+
const fetchUri = this.createUrl(__privateGet(_IntegrationPropertyEditorsClient, _baseUrl), {
|
|
2715
|
+
...options,
|
|
2716
|
+
teamId: this.teamId
|
|
2717
|
+
});
|
|
2718
|
+
return this.apiClient(fetchUri);
|
|
2719
|
+
}
|
|
2720
|
+
/**
|
|
2721
|
+
* Creates or updates a custom AI property editor on a Mesh app.
|
|
2722
|
+
*/
|
|
2723
|
+
async deploy(body) {
|
|
2724
|
+
const fetchUri = this.createUrl(__privateGet(_IntegrationPropertyEditorsClient, _baseUrl));
|
|
2725
|
+
await this.apiClient(fetchUri, {
|
|
2726
|
+
method: "PUT",
|
|
2727
|
+
body: JSON.stringify({ ...body, teamId: this.teamId }),
|
|
2728
|
+
expectNoContent: true
|
|
2729
|
+
});
|
|
2730
|
+
}
|
|
2731
|
+
/**
|
|
2732
|
+
* Removes a custom AI property editor from a Mesh app.
|
|
2733
|
+
*/
|
|
2734
|
+
async delete(body) {
|
|
2735
|
+
const fetchUri = this.createUrl(__privateGet(_IntegrationPropertyEditorsClient, _baseUrl));
|
|
2736
|
+
await this.apiClient(fetchUri, {
|
|
2737
|
+
method: "DELETE",
|
|
2738
|
+
body: JSON.stringify({ ...body, teamId: this.teamId }),
|
|
2739
|
+
expectNoContent: true
|
|
2740
|
+
});
|
|
2741
|
+
}
|
|
2742
|
+
};
|
|
2743
|
+
_baseUrl = new WeakMap();
|
|
2744
|
+
__privateAdd(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
2745
|
+
var IntegrationPropertyEditorsClient = _IntegrationPropertyEditorsClient;
|
|
2746
|
+
|
|
2747
|
+
// src/LocaleClient.ts
|
|
2748
|
+
var import_api9 = require("@uniformdev/context/api");
|
|
2684
2749
|
var localesUrl = "/api/v1/locales";
|
|
2685
|
-
var LocaleClient = class extends
|
|
2750
|
+
var LocaleClient = class extends import_api9.ApiClient {
|
|
2686
2751
|
constructor(options) {
|
|
2687
2752
|
super(options);
|
|
2688
2753
|
}
|
|
@@ -2767,6 +2832,9 @@ var isUpdatePreviewSettingsMessage = (message) => {
|
|
|
2767
2832
|
var isUpdateFeatureFlagsMessage = (message) => {
|
|
2768
2833
|
return message.type === "update-feature-flags";
|
|
2769
2834
|
};
|
|
2835
|
+
var isUpdateAiActionsMessage = (message) => {
|
|
2836
|
+
return message.type === "update-ai-actions";
|
|
2837
|
+
};
|
|
2770
2838
|
var isUpdateContextualEditingStateInternalMessage = (message) => {
|
|
2771
2839
|
return message.type === "update-contextual-editing-state-internal";
|
|
2772
2840
|
};
|
|
@@ -2798,6 +2866,11 @@ var createCanvasChannel = ({
|
|
|
2798
2866
|
let handlerCounter = 0;
|
|
2799
2867
|
const handlers = {};
|
|
2800
2868
|
const broadcastToItems = [...broadcastTo];
|
|
2869
|
+
const addBroadcastTarget = (window2) => {
|
|
2870
|
+
if (!broadcastToItems.includes(window2)) {
|
|
2871
|
+
broadcastToItems.push(window2);
|
|
2872
|
+
}
|
|
2873
|
+
};
|
|
2801
2874
|
const postMessage = (message) => {
|
|
2802
2875
|
broadcastToItems.forEach((item) => item == null ? void 0 : item.postMessage(JSON.stringify(message), "*"));
|
|
2803
2876
|
for (const handlerId in handlers) {
|
|
@@ -2987,6 +3060,13 @@ var createCanvasChannel = ({
|
|
|
2987
3060
|
};
|
|
2988
3061
|
postMessage(message);
|
|
2989
3062
|
};
|
|
3063
|
+
const updateAiActions = (options) => {
|
|
3064
|
+
const message = {
|
|
3065
|
+
...options,
|
|
3066
|
+
type: "update-ai-actions"
|
|
3067
|
+
};
|
|
3068
|
+
postMessage(message);
|
|
3069
|
+
};
|
|
2990
3070
|
const contextStorageUpdated = (options) => {
|
|
2991
3071
|
const message = {
|
|
2992
3072
|
...options,
|
|
@@ -3021,9 +3101,10 @@ var createCanvasChannel = ({
|
|
|
3021
3101
|
listenTo.forEach((item) => item.removeEventListener("message", messageEventListener));
|
|
3022
3102
|
};
|
|
3023
3103
|
return {
|
|
3024
|
-
broadcastTo,
|
|
3104
|
+
broadcastTo: broadcastToItems,
|
|
3025
3105
|
ready,
|
|
3026
3106
|
destroy,
|
|
3107
|
+
addBroadcastTarget,
|
|
3027
3108
|
triggerComponentAction,
|
|
3028
3109
|
selectComponent,
|
|
3029
3110
|
updateComposition,
|
|
@@ -3036,6 +3117,7 @@ var createCanvasChannel = ({
|
|
|
3036
3117
|
triggerCompositionAction,
|
|
3037
3118
|
updatePreviewSettings,
|
|
3038
3119
|
updateFeatureFlags,
|
|
3120
|
+
updateAiActions,
|
|
3039
3121
|
updateContextualEditingStateInternal,
|
|
3040
3122
|
selectParameter,
|
|
3041
3123
|
openParameterEditor,
|
|
@@ -3051,10 +3133,10 @@ var createCanvasChannel = ({
|
|
|
3051
3133
|
};
|
|
3052
3134
|
|
|
3053
3135
|
// src/PreviewClient.ts
|
|
3054
|
-
var
|
|
3136
|
+
var import_api10 = require("@uniformdev/context/api");
|
|
3055
3137
|
var previewUrlsUrl = "/api/v1/preview-urls";
|
|
3056
3138
|
var previewViewportsUrl = "/api/v1/preview-viewports";
|
|
3057
|
-
var PreviewClient = class extends
|
|
3139
|
+
var PreviewClient = class extends import_api10.ApiClient {
|
|
3058
3140
|
constructor(options) {
|
|
3059
3141
|
super(options);
|
|
3060
3142
|
}
|
|
@@ -3117,9 +3199,9 @@ var PreviewClient = class extends import_api9.ApiClient {
|
|
|
3117
3199
|
};
|
|
3118
3200
|
|
|
3119
3201
|
// src/ProjectClient.ts
|
|
3120
|
-
var
|
|
3202
|
+
var import_api11 = require("@uniformdev/context/api");
|
|
3121
3203
|
var _url2;
|
|
3122
|
-
var _ProjectClient = class _ProjectClient extends
|
|
3204
|
+
var _ProjectClient = class _ProjectClient extends import_api11.ApiClient {
|
|
3123
3205
|
constructor(options) {
|
|
3124
3206
|
super({ ...options, bypassCache: true });
|
|
3125
3207
|
}
|
|
@@ -3151,9 +3233,9 @@ __privateAdd(_ProjectClient, _url2, "/api/v1/project");
|
|
|
3151
3233
|
var ProjectClient = _ProjectClient;
|
|
3152
3234
|
|
|
3153
3235
|
// src/PromptClient.ts
|
|
3154
|
-
var
|
|
3236
|
+
var import_api12 = require("@uniformdev/context/api");
|
|
3155
3237
|
var PromptsUrl = "/api/v1/prompts";
|
|
3156
|
-
var PromptClient = class extends
|
|
3238
|
+
var PromptClient = class extends import_api12.ApiClient {
|
|
3157
3239
|
constructor(options) {
|
|
3158
3240
|
super(options);
|
|
3159
3241
|
}
|
|
@@ -3184,9 +3266,9 @@ var PromptClient = class extends import_api11.ApiClient {
|
|
|
3184
3266
|
};
|
|
3185
3267
|
|
|
3186
3268
|
// src/RelationshipClient.ts
|
|
3187
|
-
var
|
|
3269
|
+
var import_api13 = require("@uniformdev/context/api");
|
|
3188
3270
|
var RELATIONSHIPS_URL = "/api/v1/relationships";
|
|
3189
|
-
var RelationshipClient = class extends
|
|
3271
|
+
var RelationshipClient = class extends import_api13.ApiClient {
|
|
3190
3272
|
constructor(options) {
|
|
3191
3273
|
super(options);
|
|
3192
3274
|
this.get = async (options) => {
|
|
@@ -3198,9 +3280,9 @@ var RelationshipClient = class extends import_api12.ApiClient {
|
|
|
3198
3280
|
};
|
|
3199
3281
|
|
|
3200
3282
|
// src/ReleaseClient.ts
|
|
3201
|
-
var
|
|
3283
|
+
var import_api14 = require("@uniformdev/context/api");
|
|
3202
3284
|
var releasesUrl = "/api/v1/releases";
|
|
3203
|
-
var ReleaseClient = class extends
|
|
3285
|
+
var ReleaseClient = class extends import_api14.ApiClient {
|
|
3204
3286
|
constructor(options) {
|
|
3205
3287
|
super(options);
|
|
3206
3288
|
}
|
|
@@ -3240,9 +3322,9 @@ var ReleaseClient = class extends import_api13.ApiClient {
|
|
|
3240
3322
|
};
|
|
3241
3323
|
|
|
3242
3324
|
// src/ReleaseContentsClient.ts
|
|
3243
|
-
var
|
|
3325
|
+
var import_api15 = require("@uniformdev/context/api");
|
|
3244
3326
|
var releaseContentsUrl2 = "/api/v1/release-contents";
|
|
3245
|
-
var ReleaseContentsClient = class extends
|
|
3327
|
+
var ReleaseContentsClient = class extends import_api15.ApiClient {
|
|
3246
3328
|
constructor(options) {
|
|
3247
3329
|
super(options);
|
|
3248
3330
|
}
|
|
@@ -3264,9 +3346,9 @@ var ReleaseContentsClient = class extends import_api14.ApiClient {
|
|
|
3264
3346
|
};
|
|
3265
3347
|
|
|
3266
3348
|
// src/RouteClient.ts
|
|
3267
|
-
var
|
|
3349
|
+
var import_api16 = require("@uniformdev/context/api");
|
|
3268
3350
|
var ROUTE_URL = "/api/v1/route";
|
|
3269
|
-
var RouteClient = class extends
|
|
3351
|
+
var RouteClient = class extends import_api16.ApiClient {
|
|
3270
3352
|
constructor(options) {
|
|
3271
3353
|
var _a;
|
|
3272
3354
|
if (!options.limitPolicy) {
|
|
@@ -3289,6 +3371,63 @@ var RouteClient = class extends import_api15.ApiClient {
|
|
|
3289
3371
|
// src/types/locales.ts
|
|
3290
3372
|
var LOCALE_DYNAMIC_INPUT_NAME = "locale";
|
|
3291
3373
|
|
|
3374
|
+
// src/utils/assetConfig.ts
|
|
3375
|
+
var mergeAssetConfigWithDefaults = (config) => {
|
|
3376
|
+
var _a;
|
|
3377
|
+
return {
|
|
3378
|
+
...config,
|
|
3379
|
+
// For backwards compatibility reasons undefined represents restriction to
|
|
3380
|
+
// image types
|
|
3381
|
+
allowedTypes: (_a = config.allowedTypes) != null ? _a : ["image"]
|
|
3382
|
+
};
|
|
3383
|
+
};
|
|
3384
|
+
|
|
3385
|
+
// src/utils/autoFixParameterGroups.ts
|
|
3386
|
+
function autoFixParameterGroups(properties) {
|
|
3387
|
+
var _a;
|
|
3388
|
+
const remainingGroups = (_a = properties.filter((param) => param.type === "group")) != null ? _a : [];
|
|
3389
|
+
if (remainingGroups.length === 0) {
|
|
3390
|
+
return false;
|
|
3391
|
+
}
|
|
3392
|
+
let result = false;
|
|
3393
|
+
while (remainingGroups.length > 0) {
|
|
3394
|
+
const group = remainingGroups.shift();
|
|
3395
|
+
const groupParamsConfig = group.typeConfig && typeof group.typeConfig === "object" && "childrenParams" in group.typeConfig && Array.isArray(group.typeConfig.childrenParams) ? group.typeConfig.childrenParams : [];
|
|
3396
|
+
const expectedParamsToFindFollowingGroup = new Set(groupParamsConfig);
|
|
3397
|
+
const groupStartIndex = properties.findIndex((param) => param.id === group.id);
|
|
3398
|
+
const groupItemsCount = expectedParamsToFindFollowingGroup.size;
|
|
3399
|
+
for (let i = groupStartIndex + 1; i <= groupStartIndex + groupItemsCount; i++) {
|
|
3400
|
+
const param = properties[i];
|
|
3401
|
+
if (!param) {
|
|
3402
|
+
continue;
|
|
3403
|
+
}
|
|
3404
|
+
if (expectedParamsToFindFollowingGroup.has(param.id)) {
|
|
3405
|
+
expectedParamsToFindFollowingGroup.delete(param.id);
|
|
3406
|
+
} else {
|
|
3407
|
+
break;
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
if (expectedParamsToFindFollowingGroup.size > 0) {
|
|
3411
|
+
const paramsToMove = Array.from(expectedParamsToFindFollowingGroup);
|
|
3412
|
+
let leadingGroupIndex = groupStartIndex + groupItemsCount - expectedParamsToFindFollowingGroup.size;
|
|
3413
|
+
for (const paramId of paramsToMove) {
|
|
3414
|
+
const paramIndex = properties.findIndex((param) => param.id === paramId);
|
|
3415
|
+
if (paramIndex !== -1) {
|
|
3416
|
+
const [param] = properties.splice(paramIndex, 1);
|
|
3417
|
+
if (paramIndex > leadingGroupIndex) {
|
|
3418
|
+
leadingGroupIndex++;
|
|
3419
|
+
}
|
|
3420
|
+
properties.splice(leadingGroupIndex, 0, param);
|
|
3421
|
+
} else {
|
|
3422
|
+
groupParamsConfig.splice(groupParamsConfig.indexOf(paramId), 1);
|
|
3423
|
+
}
|
|
3424
|
+
}
|
|
3425
|
+
result = true;
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3428
|
+
return result;
|
|
3429
|
+
}
|
|
3430
|
+
|
|
3292
3431
|
// src/utils/createApiEnhancer.ts
|
|
3293
3432
|
var createUniformApiEnhancer = ({ apiUrl }) => {
|
|
3294
3433
|
return async (message) => {
|
|
@@ -3418,7 +3557,8 @@ function mapSlotToTestVariations(slot) {
|
|
|
3418
3557
|
return {
|
|
3419
3558
|
...v,
|
|
3420
3559
|
id,
|
|
3421
|
-
testDistribution: contextTag == null ? void 0 : contextTag.testDistribution
|
|
3560
|
+
testDistribution: contextTag == null ? void 0 : contextTag.testDistribution,
|
|
3561
|
+
control: contextTag == null ? void 0 : contextTag.control
|
|
3422
3562
|
};
|
|
3423
3563
|
});
|
|
3424
3564
|
}
|
|
@@ -3580,15 +3720,15 @@ function handleRichTextNodeBinding(object, options) {
|
|
|
3580
3720
|
}
|
|
3581
3721
|
|
|
3582
3722
|
// src/index.ts
|
|
3583
|
-
var
|
|
3723
|
+
var import_api18 = require("@uniformdev/context/api");
|
|
3584
3724
|
|
|
3585
3725
|
// src/.version.ts
|
|
3586
|
-
var version = "20.
|
|
3726
|
+
var version = "20.43.1";
|
|
3587
3727
|
|
|
3588
3728
|
// src/WorkflowClient.ts
|
|
3589
|
-
var
|
|
3729
|
+
var import_api17 = require("@uniformdev/context/api");
|
|
3590
3730
|
var workflowsUrl = "/api/v1/workflows";
|
|
3591
|
-
var WorkflowClient = class extends
|
|
3731
|
+
var WorkflowClient = class extends import_api17.ApiClient {
|
|
3592
3732
|
constructor(options) {
|
|
3593
3733
|
super(options);
|
|
3594
3734
|
}
|
|
@@ -3619,7 +3759,7 @@ var WorkflowClient = class extends import_api16.ApiClient {
|
|
|
3619
3759
|
};
|
|
3620
3760
|
|
|
3621
3761
|
// src/index.ts
|
|
3622
|
-
var CanvasClientError =
|
|
3762
|
+
var CanvasClientError = import_api18.ApiClientError;
|
|
3623
3763
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3624
3764
|
0 && (module.exports = {
|
|
3625
3765
|
ASSETS_SOURCE_CUSTOM_URL,
|
|
@@ -3635,11 +3775,14 @@ var CanvasClientError = import_api17.ApiClientError;
|
|
|
3635
3775
|
BatchEntry,
|
|
3636
3776
|
BlockFormatError,
|
|
3637
3777
|
CANVAS_BLOCK_PARAM_TYPE,
|
|
3778
|
+
CANVAS_COMPONENT_DISPLAY_NAME_PARAM,
|
|
3638
3779
|
CANVAS_CONTEXTUAL_EDITING_PARAM,
|
|
3639
3780
|
CANVAS_DRAFT_STATE,
|
|
3640
3781
|
CANVAS_EDITOR_STATE,
|
|
3641
3782
|
CANVAS_ENRICHMENT_TAG_PARAM,
|
|
3783
|
+
CANVAS_HYPOTHESIS_PARAM,
|
|
3642
3784
|
CANVAS_INTENT_TAG_PARAM,
|
|
3785
|
+
CANVAS_INTERNAL_PARAM_PREFIX,
|
|
3643
3786
|
CANVAS_LOCALE_TAG_PARAM,
|
|
3644
3787
|
CANVAS_LOCALIZATION_SLOT,
|
|
3645
3788
|
CANVAS_LOCALIZATION_TYPE,
|
|
@@ -3651,7 +3794,12 @@ var CanvasClientError = import_api17.ApiClientError;
|
|
|
3651
3794
|
CANVAS_PERSONALIZE_SLOT,
|
|
3652
3795
|
CANVAS_PERSONALIZE_TYPE,
|
|
3653
3796
|
CANVAS_PUBLISHED_STATE,
|
|
3797
|
+
CANVAS_SLOT_SECTION_GROUP_TYPE_PARAM,
|
|
3798
|
+
CANVAS_SLOT_SECTION_MAX_PARAM,
|
|
3799
|
+
CANVAS_SLOT_SECTION_MIN_PARAM,
|
|
3800
|
+
CANVAS_SLOT_SECTION_NAME_PARAM,
|
|
3654
3801
|
CANVAS_SLOT_SECTION_SLOT,
|
|
3802
|
+
CANVAS_SLOT_SECTION_SPECIFIC_PARAM,
|
|
3655
3803
|
CANVAS_SLOT_SECTION_TYPE,
|
|
3656
3804
|
CANVAS_TEST_SLOT,
|
|
3657
3805
|
CANVAS_TEST_TYPE,
|
|
@@ -3683,6 +3831,7 @@ var CanvasClientError = import_api17.ApiClientError;
|
|
|
3683
3831
|
IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM,
|
|
3684
3832
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
|
|
3685
3833
|
IS_RENDERED_BY_UNIFORM_ATTRIBUTE,
|
|
3834
|
+
IntegrationPropertyEditorsClient,
|
|
3686
3835
|
LOCALE_DYNAMIC_INPUT_NAME,
|
|
3687
3836
|
LocaleClient,
|
|
3688
3837
|
PLACEHOLDER_ID,
|
|
@@ -3699,6 +3848,7 @@ var CanvasClientError = import_api17.ApiClientError;
|
|
|
3699
3848
|
UncachedContentClient,
|
|
3700
3849
|
UniqueBatchEntries,
|
|
3701
3850
|
WorkflowClient,
|
|
3851
|
+
autoFixParameterGroups,
|
|
3702
3852
|
bindExpressionEscapeChars,
|
|
3703
3853
|
bindExpressionPrefix,
|
|
3704
3854
|
bindVariables,
|
|
@@ -3760,6 +3910,7 @@ var CanvasClientError = import_api17.ApiClientError;
|
|
|
3760
3910
|
isSuggestComponentMessage,
|
|
3761
3911
|
isSystemComponentDefinition,
|
|
3762
3912
|
isTriggerCompositionActionMessage,
|
|
3913
|
+
isUpdateAiActionsMessage,
|
|
3763
3914
|
isUpdateComponentParameterMessage,
|
|
3764
3915
|
isUpdateComponentReferencesMessage,
|
|
3765
3916
|
isUpdateCompositionInternalMessage,
|
|
@@ -3770,6 +3921,7 @@ var CanvasClientError = import_api17.ApiClientError;
|
|
|
3770
3921
|
localize,
|
|
3771
3922
|
mapSlotToPersonalizedVariations,
|
|
3772
3923
|
mapSlotToTestVariations,
|
|
3924
|
+
mergeAssetConfigWithDefaults,
|
|
3773
3925
|
nullLimitPolicy,
|
|
3774
3926
|
parseComponentPlaceholderId,
|
|
3775
3927
|
parseVariableExpression,
|