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