@uniformdev/canvas 20.50.2-alpha.9 → 20.50.2-alpha.96
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 +1567 -1048
- package/dist/index.d.ts +1567 -1048
- package/dist/index.esm.js +132 -79
- package/dist/index.js +137 -81
- package/dist/index.mjs +132 -79
- package/package.json +6 -8
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: () =>
|
|
400
|
+
ApiClientError: () => import_api19.ApiClientError,
|
|
401
401
|
BatchEntry: () => BatchEntry,
|
|
402
402
|
BlockFormatError: () => BlockFormatError,
|
|
403
403
|
CANVAS_BLOCK_PARAM_TYPE: () => CANVAS_BLOCK_PARAM_TYPE,
|
|
@@ -459,12 +459,12 @@ __export(src_exports, {
|
|
|
459
459
|
IS_RENDERED_BY_UNIFORM_ATTRIBUTE: () => IS_RENDERED_BY_UNIFORM_ATTRIBUTE,
|
|
460
460
|
IntegrationPropertyEditorsClient: () => IntegrationPropertyEditorsClient,
|
|
461
461
|
LOCALE_DYNAMIC_INPUT_NAME: () => LOCALE_DYNAMIC_INPUT_NAME,
|
|
462
|
+
LabelClient: () => LabelClient,
|
|
462
463
|
LocaleClient: () => LocaleClient,
|
|
463
464
|
PLACEHOLDER_ID: () => PLACEHOLDER_ID,
|
|
464
465
|
PreviewClient: () => PreviewClient,
|
|
465
466
|
ProjectClient: () => ProjectClient,
|
|
466
467
|
PromptClient: () => PromptClient,
|
|
467
|
-
REFERENCE_DATA_TYPE_ID: () => REFERENCE_DATA_TYPE_ID,
|
|
468
468
|
RelationshipClient: () => RelationshipClient,
|
|
469
469
|
ReleaseClient: () => ReleaseClient,
|
|
470
470
|
ReleaseContentsClient: () => ReleaseContentsClient,
|
|
@@ -473,6 +473,7 @@ __export(src_exports, {
|
|
|
473
473
|
UncachedCanvasClient: () => UncachedCanvasClient,
|
|
474
474
|
UncachedCategoryClient: () => UncachedCategoryClient,
|
|
475
475
|
UncachedContentClient: () => UncachedContentClient,
|
|
476
|
+
UncachedLabelClient: () => UncachedLabelClient,
|
|
476
477
|
UniqueBatchEntries: () => UniqueBatchEntries,
|
|
477
478
|
WorkflowClient: () => WorkflowClient,
|
|
478
479
|
autoFixParameterGroups: () => autoFixParameterGroups,
|
|
@@ -519,6 +520,7 @@ __export(src_exports, {
|
|
|
519
520
|
isAllowedReferrer: () => isAllowedReferrer,
|
|
520
521
|
isAssetParamValue: () => isAssetParamValue,
|
|
521
522
|
isAssetParamValueItem: () => isAssetParamValueItem,
|
|
523
|
+
isAwaitingReadyMessage: () => isAwaitingReadyMessage,
|
|
522
524
|
isComponentActionMessage: () => isComponentActionMessage,
|
|
523
525
|
isComponentPlaceholderId: () => isComponentPlaceholderId,
|
|
524
526
|
isContextStorageUpdatedMessage: () => isContextStorageUpdatedMessage,
|
|
@@ -534,6 +536,7 @@ __export(src_exports, {
|
|
|
534
536
|
isRootEntryReference: () => isRootEntryReference,
|
|
535
537
|
isSelectComponentMessage: () => isSelectComponentMessage,
|
|
536
538
|
isSelectParameterMessage: () => isSelectParameterMessage,
|
|
539
|
+
isSessionPendingMessage: () => isSessionPendingMessage,
|
|
537
540
|
isSuggestComponentMessage: () => isSuggestComponentMessage,
|
|
538
541
|
isSystemComponentDefinition: () => isSystemComponentDefinition,
|
|
539
542
|
isTriggerCompositionActionMessage: () => isTriggerCompositionActionMessage,
|
|
@@ -763,22 +766,6 @@ function createLimitPolicy({
|
|
|
763
766
|
}
|
|
764
767
|
var nullLimitPolicy = async (func) => await func();
|
|
765
768
|
|
|
766
|
-
// src/utils/rewriteFilters.ts
|
|
767
|
-
var isPlainObject = (obj) => typeof obj === "object" && obj !== null && !Array.isArray(obj);
|
|
768
|
-
function rewriteFilters(filters) {
|
|
769
|
-
return Object.entries(filters != null ? filters : {}).reduce(
|
|
770
|
-
(acc, [key, value]) => {
|
|
771
|
-
const lhs = `filters.${key}` + (isPlainObject(value) ? `[${Object.keys(value)[0]}]` : "");
|
|
772
|
-
const rhs = isPlainObject(value) ? Object.values(value)[0] : value;
|
|
773
|
-
return {
|
|
774
|
-
...acc,
|
|
775
|
-
[lhs]: Array.isArray(rhs) ? rhs.map((v) => `${v}`.trim()).join(",") : `${rhs}`.trim()
|
|
776
|
-
};
|
|
777
|
-
},
|
|
778
|
-
{}
|
|
779
|
-
);
|
|
780
|
-
}
|
|
781
|
-
|
|
782
769
|
// src/CanvasClient.ts
|
|
783
770
|
var CANVAS_URL = "/api/v1/canvas";
|
|
784
771
|
var CanvasClient = class extends import_api2.ApiClient {
|
|
@@ -795,7 +782,7 @@ var CanvasClient = class extends import_api2.ApiClient {
|
|
|
795
782
|
async getCompositionList(params = {}) {
|
|
796
783
|
const { projectId } = this.options;
|
|
797
784
|
const { resolveData, filters, ...originParams } = params;
|
|
798
|
-
const rewrittenFilters =
|
|
785
|
+
const rewrittenFilters = (0, import_api2.rewriteFiltersForApi)(filters);
|
|
799
786
|
if (!resolveData) {
|
|
800
787
|
const fetchUri = this.createUrl(CANVAS_URL, { ...originParams, projectId, ...rewrittenFilters });
|
|
801
788
|
return this.apiClient(fetchUri);
|
|
@@ -965,7 +952,7 @@ var _ContentClient = class _ContentClient extends import_api4.ApiClient {
|
|
|
965
952
|
getEntries(options) {
|
|
966
953
|
const { projectId } = this.options;
|
|
967
954
|
const { skipDataResolution, filters, ...params } = options;
|
|
968
|
-
const rewrittenFilters =
|
|
955
|
+
const rewrittenFilters = (0, import_api4.rewriteFiltersForApi)(filters);
|
|
969
956
|
if (skipDataResolution) {
|
|
970
957
|
const url = this.createUrl(__privateGet(_ContentClient, _entriesUrl), { ...params, ...rewrittenFilters, projectId });
|
|
971
958
|
return this.apiClient(url);
|
|
@@ -1301,7 +1288,6 @@ var EDGE_CACHE_DISABLED = -1;
|
|
|
1301
1288
|
var ASSET_PARAMETER_TYPE = "asset";
|
|
1302
1289
|
var ASSETS_SOURCE_UNIFORM = "uniform-assets";
|
|
1303
1290
|
var ASSETS_SOURCE_CUSTOM_URL = "custom-url";
|
|
1304
|
-
var REFERENCE_DATA_TYPE_ID = "uniformContentInternalReference";
|
|
1305
1291
|
|
|
1306
1292
|
// src/utils/guards.ts
|
|
1307
1293
|
function isRootEntryReference(root) {
|
|
@@ -1460,7 +1446,7 @@ function hasReferencedVariables(value) {
|
|
|
1460
1446
|
|
|
1461
1447
|
// src/enhancement/walkNodeTree.ts
|
|
1462
1448
|
function walkNodeTree(node, visitor, options) {
|
|
1463
|
-
var _a, _b;
|
|
1449
|
+
var _a, _b, _c;
|
|
1464
1450
|
const componentQueue = [
|
|
1465
1451
|
{
|
|
1466
1452
|
ancestorsAndSelf: Array.isArray(node) ? node : [{ node, type: "root" }],
|
|
@@ -1468,12 +1454,14 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1468
1454
|
}
|
|
1469
1455
|
];
|
|
1470
1456
|
const childContexts = /* @__PURE__ */ new Map();
|
|
1457
|
+
const order = (_a = options == null ? void 0 : options.order) != null ? _a : "dfs";
|
|
1458
|
+
const takeNext = () => order === "bfs" ? componentQueue.shift() : componentQueue.pop();
|
|
1471
1459
|
do {
|
|
1472
|
-
const currentQueueEntry =
|
|
1460
|
+
const currentQueueEntry = takeNext();
|
|
1473
1461
|
if (!currentQueueEntry) continue;
|
|
1474
1462
|
const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
|
|
1475
1463
|
let visitDescendants = true;
|
|
1476
|
-
let descendantContext = (
|
|
1464
|
+
let descendantContext = (_b = childContexts.get(currentComponent.node)) != null ? _b : currentQueueEntry.context;
|
|
1477
1465
|
let visitorInfo;
|
|
1478
1466
|
if (currentComponent.type === "root" && isRootEntryReference(currentComponent) || currentComponent.type === "block") {
|
|
1479
1467
|
visitorInfo = {
|
|
@@ -1660,39 +1648,11 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1660
1648
|
continue;
|
|
1661
1649
|
}
|
|
1662
1650
|
const slots = "slots" in currentComponent.node && currentComponent.node.slots;
|
|
1663
|
-
|
|
1664
|
-
const slotKeys = Object.keys(slots);
|
|
1665
|
-
for (let slotIndex = slotKeys.length - 1; slotIndex >= 0; slotIndex--) {
|
|
1666
|
-
const slotKey = slotKeys[slotIndex];
|
|
1667
|
-
const components = slots[slotKey];
|
|
1668
|
-
for (let componentIndex = components.length - 1; componentIndex >= 0; componentIndex--) {
|
|
1669
|
-
const enqueueingComponent = components[componentIndex];
|
|
1670
|
-
const parentSlotIndexFn = () => {
|
|
1671
|
-
const result = currentComponent.node.slots[slotKey].findIndex(
|
|
1672
|
-
(x) => x === enqueueingComponent
|
|
1673
|
-
);
|
|
1674
|
-
return result;
|
|
1675
|
-
};
|
|
1676
|
-
componentQueue.push({
|
|
1677
|
-
ancestorsAndSelf: [
|
|
1678
|
-
{
|
|
1679
|
-
type: "slot",
|
|
1680
|
-
node: enqueueingComponent,
|
|
1681
|
-
parentSlot: slotKey,
|
|
1682
|
-
parentSlotIndexFn
|
|
1683
|
-
},
|
|
1684
|
-
...currentQueueEntry.ancestorsAndSelf
|
|
1685
|
-
],
|
|
1686
|
-
context: descendantContext
|
|
1687
|
-
});
|
|
1688
|
-
}
|
|
1689
|
-
}
|
|
1690
|
-
}
|
|
1651
|
+
const childEntries = [];
|
|
1691
1652
|
const properties = getPropertiesValue(currentComponent.node);
|
|
1692
1653
|
if (properties) {
|
|
1693
1654
|
const propertyEntries = Object.entries(properties);
|
|
1694
|
-
for (
|
|
1695
|
-
const [propKey, propObject] = propertyEntries[propIndex];
|
|
1655
|
+
for (const [propKey, propObject] of propertyEntries) {
|
|
1696
1656
|
if (!isNestedNodeType(propObject.type)) {
|
|
1697
1657
|
continue;
|
|
1698
1658
|
}
|
|
@@ -1712,13 +1672,12 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1712
1672
|
continue;
|
|
1713
1673
|
}
|
|
1714
1674
|
}
|
|
1715
|
-
const blocks = (
|
|
1716
|
-
for (
|
|
1717
|
-
const enqueueingBlock = blocks[blockIndex];
|
|
1675
|
+
const blocks = (_c = propObject.value) != null ? _c : [];
|
|
1676
|
+
for (const enqueueingBlock of blocks) {
|
|
1718
1677
|
const blockIndexFn = () => {
|
|
1719
1678
|
return getBlockValue(currentComponent.node, propKey).findIndex((x) => x === enqueueingBlock);
|
|
1720
1679
|
};
|
|
1721
|
-
|
|
1680
|
+
childEntries.push({
|
|
1722
1681
|
ancestorsAndSelf: [
|
|
1723
1682
|
{
|
|
1724
1683
|
type: "block",
|
|
@@ -1733,6 +1692,36 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1733
1692
|
}
|
|
1734
1693
|
}
|
|
1735
1694
|
}
|
|
1695
|
+
if (slots) {
|
|
1696
|
+
const slotKeys = Object.keys(slots);
|
|
1697
|
+
for (const slotKey of slotKeys) {
|
|
1698
|
+
const components = slots[slotKey];
|
|
1699
|
+
for (const enqueueingComponent of components) {
|
|
1700
|
+
const parentSlotIndexFn = () => {
|
|
1701
|
+
const result = currentComponent.node.slots[slotKey].findIndex(
|
|
1702
|
+
(x) => x === enqueueingComponent
|
|
1703
|
+
);
|
|
1704
|
+
return result;
|
|
1705
|
+
};
|
|
1706
|
+
childEntries.push({
|
|
1707
|
+
ancestorsAndSelf: [
|
|
1708
|
+
{
|
|
1709
|
+
type: "slot",
|
|
1710
|
+
node: enqueueingComponent,
|
|
1711
|
+
parentSlot: slotKey,
|
|
1712
|
+
parentSlotIndexFn
|
|
1713
|
+
},
|
|
1714
|
+
...currentQueueEntry.ancestorsAndSelf
|
|
1715
|
+
],
|
|
1716
|
+
context: descendantContext
|
|
1717
|
+
});
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
if (order === "dfs") {
|
|
1722
|
+
childEntries.reverse();
|
|
1723
|
+
}
|
|
1724
|
+
componentQueue.push(...childEntries);
|
|
1736
1725
|
} while (componentQueue.length > 0);
|
|
1737
1726
|
}
|
|
1738
1727
|
function isNestedNodeType(type) {
|
|
@@ -2807,10 +2796,47 @@ _baseUrl = new WeakMap();
|
|
|
2807
2796
|
__privateAdd(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
2808
2797
|
var IntegrationPropertyEditorsClient = _IntegrationPropertyEditorsClient;
|
|
2809
2798
|
|
|
2810
|
-
// src/
|
|
2799
|
+
// src/LabelClient.ts
|
|
2811
2800
|
var import_api9 = require("@uniformdev/context/api");
|
|
2801
|
+
var LABELS_URL = "/api/v1/labels";
|
|
2802
|
+
var LabelClient = class extends import_api9.ApiClient {
|
|
2803
|
+
/** Fetches labels for the current project. */
|
|
2804
|
+
async getLabels(options) {
|
|
2805
|
+
const { projectId } = this.options;
|
|
2806
|
+
const fetchUri = this.createUrl(LABELS_URL, { ...options, projectId });
|
|
2807
|
+
return await this.apiClient(fetchUri);
|
|
2808
|
+
}
|
|
2809
|
+
/** Updates or creates a label. */
|
|
2810
|
+
async upsertLabel(body) {
|
|
2811
|
+
const { projectId } = this.options;
|
|
2812
|
+
const fetchUri = this.createUrl(LABELS_URL);
|
|
2813
|
+
await this.apiClient(fetchUri, {
|
|
2814
|
+
method: "PUT",
|
|
2815
|
+
body: JSON.stringify({ ...body, projectId }),
|
|
2816
|
+
expectNoContent: true
|
|
2817
|
+
});
|
|
2818
|
+
}
|
|
2819
|
+
/** Deletes a label by id. */
|
|
2820
|
+
async removeLabel(options) {
|
|
2821
|
+
const { projectId } = this.options;
|
|
2822
|
+
const fetchUri = this.createUrl(LABELS_URL);
|
|
2823
|
+
await this.apiClient(fetchUri, {
|
|
2824
|
+
method: "DELETE",
|
|
2825
|
+
body: JSON.stringify({ ...options, projectId }),
|
|
2826
|
+
expectNoContent: true
|
|
2827
|
+
});
|
|
2828
|
+
}
|
|
2829
|
+
};
|
|
2830
|
+
var UncachedLabelClient = class extends LabelClient {
|
|
2831
|
+
constructor(options) {
|
|
2832
|
+
super({ ...options, bypassCache: true });
|
|
2833
|
+
}
|
|
2834
|
+
};
|
|
2835
|
+
|
|
2836
|
+
// src/LocaleClient.ts
|
|
2837
|
+
var import_api10 = require("@uniformdev/context/api");
|
|
2812
2838
|
var localesUrl = "/api/v1/locales";
|
|
2813
|
-
var LocaleClient = class extends
|
|
2839
|
+
var LocaleClient = class extends import_api10.ApiClient {
|
|
2814
2840
|
constructor(options) {
|
|
2815
2841
|
super(options);
|
|
2816
2842
|
}
|
|
@@ -2865,6 +2891,12 @@ var isSelectComponentMessage = (message) => {
|
|
|
2865
2891
|
var isReadyMessage = (message) => {
|
|
2866
2892
|
return message.type === "ready";
|
|
2867
2893
|
};
|
|
2894
|
+
var isSessionPendingMessage = (message) => {
|
|
2895
|
+
return message.type === "session-pending";
|
|
2896
|
+
};
|
|
2897
|
+
var isAwaitingReadyMessage = (message) => {
|
|
2898
|
+
return message.type === "awaiting-ready";
|
|
2899
|
+
};
|
|
2868
2900
|
var isComponentActionMessage = (message) => {
|
|
2869
2901
|
return message.type === "trigger-component-action";
|
|
2870
2902
|
};
|
|
@@ -2967,6 +2999,14 @@ var createCanvasChannel = ({
|
|
|
2967
2999
|
};
|
|
2968
3000
|
postMessage(message);
|
|
2969
3001
|
};
|
|
3002
|
+
const sessionPending = () => {
|
|
3003
|
+
const message = { type: "session-pending" };
|
|
3004
|
+
postMessage(message);
|
|
3005
|
+
};
|
|
3006
|
+
const awaitingReady = () => {
|
|
3007
|
+
const message = { type: "awaiting-ready" };
|
|
3008
|
+
postMessage(message);
|
|
3009
|
+
};
|
|
2970
3010
|
const on = (types, handler) => {
|
|
2971
3011
|
const handlerId = ++handlerCounter;
|
|
2972
3012
|
handlers[handlerId] = {
|
|
@@ -3166,6 +3206,8 @@ var createCanvasChannel = ({
|
|
|
3166
3206
|
return {
|
|
3167
3207
|
broadcastTo: broadcastToItems,
|
|
3168
3208
|
ready,
|
|
3209
|
+
sessionPending,
|
|
3210
|
+
awaitingReady,
|
|
3169
3211
|
destroy,
|
|
3170
3212
|
addBroadcastTarget,
|
|
3171
3213
|
triggerComponentAction,
|
|
@@ -3196,10 +3238,10 @@ var createCanvasChannel = ({
|
|
|
3196
3238
|
};
|
|
3197
3239
|
|
|
3198
3240
|
// src/PreviewClient.ts
|
|
3199
|
-
var
|
|
3241
|
+
var import_api11 = require("@uniformdev/context/api");
|
|
3200
3242
|
var previewUrlsUrl = "/api/v1/preview-urls";
|
|
3201
3243
|
var previewViewportsUrl = "/api/v1/preview-viewports";
|
|
3202
|
-
var PreviewClient = class extends
|
|
3244
|
+
var PreviewClient = class extends import_api11.ApiClient {
|
|
3203
3245
|
constructor(options) {
|
|
3204
3246
|
super(options);
|
|
3205
3247
|
}
|
|
@@ -3262,9 +3304,9 @@ var PreviewClient = class extends import_api10.ApiClient {
|
|
|
3262
3304
|
};
|
|
3263
3305
|
|
|
3264
3306
|
// src/ProjectClient.ts
|
|
3265
|
-
var
|
|
3266
|
-
var _url2;
|
|
3267
|
-
var _ProjectClient = class _ProjectClient extends
|
|
3307
|
+
var import_api12 = require("@uniformdev/context/api");
|
|
3308
|
+
var _url2, _projectsUrl;
|
|
3309
|
+
var _ProjectClient = class _ProjectClient extends import_api12.ApiClient {
|
|
3268
3310
|
constructor(options) {
|
|
3269
3311
|
super({ ...options, bypassCache: true });
|
|
3270
3312
|
}
|
|
@@ -3273,6 +3315,15 @@ var _ProjectClient = class _ProjectClient extends import_api11.ApiClient {
|
|
|
3273
3315
|
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2), { ...options });
|
|
3274
3316
|
return await this.apiClient(fetchUri);
|
|
3275
3317
|
}
|
|
3318
|
+
/**
|
|
3319
|
+
* Fetches projects grouped by team.
|
|
3320
|
+
* When teamId is provided, returns a single team with its projects.
|
|
3321
|
+
* When omitted, returns all accessible teams and their projects.
|
|
3322
|
+
*/
|
|
3323
|
+
async getProjects(options) {
|
|
3324
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _projectsUrl), options ? { ...options } : {});
|
|
3325
|
+
return await this.apiClient(fetchUri);
|
|
3326
|
+
}
|
|
3276
3327
|
/** Updates or creates (based on id) a Project */
|
|
3277
3328
|
async upsert(body) {
|
|
3278
3329
|
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
|
|
@@ -3292,13 +3343,15 @@ var _ProjectClient = class _ProjectClient extends import_api11.ApiClient {
|
|
|
3292
3343
|
}
|
|
3293
3344
|
};
|
|
3294
3345
|
_url2 = new WeakMap();
|
|
3346
|
+
_projectsUrl = new WeakMap();
|
|
3295
3347
|
__privateAdd(_ProjectClient, _url2, "/api/v1/project");
|
|
3348
|
+
__privateAdd(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
3296
3349
|
var ProjectClient = _ProjectClient;
|
|
3297
3350
|
|
|
3298
3351
|
// src/PromptClient.ts
|
|
3299
|
-
var
|
|
3352
|
+
var import_api13 = require("@uniformdev/context/api");
|
|
3300
3353
|
var PromptsUrl = "/api/v1/prompts";
|
|
3301
|
-
var PromptClient = class extends
|
|
3354
|
+
var PromptClient = class extends import_api13.ApiClient {
|
|
3302
3355
|
constructor(options) {
|
|
3303
3356
|
super(options);
|
|
3304
3357
|
}
|
|
@@ -3329,9 +3382,9 @@ var PromptClient = class extends import_api12.ApiClient {
|
|
|
3329
3382
|
};
|
|
3330
3383
|
|
|
3331
3384
|
// src/RelationshipClient.ts
|
|
3332
|
-
var
|
|
3385
|
+
var import_api14 = require("@uniformdev/context/api");
|
|
3333
3386
|
var RELATIONSHIPS_URL = "/api/v1/relationships";
|
|
3334
|
-
var RelationshipClient = class extends
|
|
3387
|
+
var RelationshipClient = class extends import_api14.ApiClient {
|
|
3335
3388
|
constructor(options) {
|
|
3336
3389
|
super(options);
|
|
3337
3390
|
this.get = async (options) => {
|
|
@@ -3343,9 +3396,9 @@ var RelationshipClient = class extends import_api13.ApiClient {
|
|
|
3343
3396
|
};
|
|
3344
3397
|
|
|
3345
3398
|
// src/ReleaseClient.ts
|
|
3346
|
-
var
|
|
3399
|
+
var import_api15 = require("@uniformdev/context/api");
|
|
3347
3400
|
var releasesUrl = "/api/v1/releases";
|
|
3348
|
-
var ReleaseClient = class extends
|
|
3401
|
+
var ReleaseClient = class extends import_api15.ApiClient {
|
|
3349
3402
|
constructor(options) {
|
|
3350
3403
|
super(options);
|
|
3351
3404
|
}
|
|
@@ -3385,9 +3438,9 @@ var ReleaseClient = class extends import_api14.ApiClient {
|
|
|
3385
3438
|
};
|
|
3386
3439
|
|
|
3387
3440
|
// src/ReleaseContentsClient.ts
|
|
3388
|
-
var
|
|
3441
|
+
var import_api16 = require("@uniformdev/context/api");
|
|
3389
3442
|
var releaseContentsUrl2 = "/api/v1/release-contents";
|
|
3390
|
-
var ReleaseContentsClient = class extends
|
|
3443
|
+
var ReleaseContentsClient = class extends import_api16.ApiClient {
|
|
3391
3444
|
constructor(options) {
|
|
3392
3445
|
super(options);
|
|
3393
3446
|
}
|
|
@@ -3409,9 +3462,9 @@ var ReleaseContentsClient = class extends import_api15.ApiClient {
|
|
|
3409
3462
|
};
|
|
3410
3463
|
|
|
3411
3464
|
// src/RouteClient.ts
|
|
3412
|
-
var
|
|
3465
|
+
var import_api17 = require("@uniformdev/context/api");
|
|
3413
3466
|
var ROUTE_URL = "/api/v1/route";
|
|
3414
|
-
var RouteClient = class extends
|
|
3467
|
+
var RouteClient = class extends import_api17.ApiClient {
|
|
3415
3468
|
constructor(options) {
|
|
3416
3469
|
var _a;
|
|
3417
3470
|
if (!options.limitPolicy) {
|
|
@@ -3783,15 +3836,15 @@ function handleRichTextNodeBinding(object, options) {
|
|
|
3783
3836
|
}
|
|
3784
3837
|
|
|
3785
3838
|
// src/index.ts
|
|
3786
|
-
var
|
|
3839
|
+
var import_api19 = require("@uniformdev/context/api");
|
|
3787
3840
|
|
|
3788
3841
|
// src/.version.ts
|
|
3789
|
-
var version = "20.
|
|
3842
|
+
var version = "20.63.0";
|
|
3790
3843
|
|
|
3791
3844
|
// src/WorkflowClient.ts
|
|
3792
|
-
var
|
|
3845
|
+
var import_api18 = require("@uniformdev/context/api");
|
|
3793
3846
|
var workflowsUrl = "/api/v1/workflows";
|
|
3794
|
-
var WorkflowClient = class extends
|
|
3847
|
+
var WorkflowClient = class extends import_api18.ApiClient {
|
|
3795
3848
|
constructor(options) {
|
|
3796
3849
|
super(options);
|
|
3797
3850
|
}
|
|
@@ -3822,7 +3875,7 @@ var WorkflowClient = class extends import_api17.ApiClient {
|
|
|
3822
3875
|
};
|
|
3823
3876
|
|
|
3824
3877
|
// src/index.ts
|
|
3825
|
-
var CanvasClientError =
|
|
3878
|
+
var CanvasClientError = import_api19.ApiClientError;
|
|
3826
3879
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3827
3880
|
0 && (module.exports = {
|
|
3828
3881
|
ASSETS_SOURCE_CUSTOM_URL,
|
|
@@ -3896,12 +3949,12 @@ var CanvasClientError = import_api18.ApiClientError;
|
|
|
3896
3949
|
IS_RENDERED_BY_UNIFORM_ATTRIBUTE,
|
|
3897
3950
|
IntegrationPropertyEditorsClient,
|
|
3898
3951
|
LOCALE_DYNAMIC_INPUT_NAME,
|
|
3952
|
+
LabelClient,
|
|
3899
3953
|
LocaleClient,
|
|
3900
3954
|
PLACEHOLDER_ID,
|
|
3901
3955
|
PreviewClient,
|
|
3902
3956
|
ProjectClient,
|
|
3903
3957
|
PromptClient,
|
|
3904
|
-
REFERENCE_DATA_TYPE_ID,
|
|
3905
3958
|
RelationshipClient,
|
|
3906
3959
|
ReleaseClient,
|
|
3907
3960
|
ReleaseContentsClient,
|
|
@@ -3910,6 +3963,7 @@ var CanvasClientError = import_api18.ApiClientError;
|
|
|
3910
3963
|
UncachedCanvasClient,
|
|
3911
3964
|
UncachedCategoryClient,
|
|
3912
3965
|
UncachedContentClient,
|
|
3966
|
+
UncachedLabelClient,
|
|
3913
3967
|
UniqueBatchEntries,
|
|
3914
3968
|
WorkflowClient,
|
|
3915
3969
|
autoFixParameterGroups,
|
|
@@ -3956,6 +4010,7 @@ var CanvasClientError = import_api18.ApiClientError;
|
|
|
3956
4010
|
isAllowedReferrer,
|
|
3957
4011
|
isAssetParamValue,
|
|
3958
4012
|
isAssetParamValueItem,
|
|
4013
|
+
isAwaitingReadyMessage,
|
|
3959
4014
|
isComponentActionMessage,
|
|
3960
4015
|
isComponentPlaceholderId,
|
|
3961
4016
|
isContextStorageUpdatedMessage,
|
|
@@ -3971,6 +4026,7 @@ var CanvasClientError = import_api18.ApiClientError;
|
|
|
3971
4026
|
isRootEntryReference,
|
|
3972
4027
|
isSelectComponentMessage,
|
|
3973
4028
|
isSelectParameterMessage,
|
|
4029
|
+
isSessionPendingMessage,
|
|
3974
4030
|
isSuggestComponentMessage,
|
|
3975
4031
|
isSystemComponentDefinition,
|
|
3976
4032
|
isTriggerCompositionActionMessage,
|