@uniformdev/canvas 19.162.2-alpha.11 → 19.164.0
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 +1797 -1785
- package/dist/index.d.ts +1797 -1785
- package/dist/index.esm.js +40 -249
- package/dist/index.js +44 -262
- package/dist/index.mjs +40 -249
- package/package.json +4 -4
package/dist/index.js
CHANGED
@@ -286,7 +286,7 @@ __export(src_exports, {
|
|
286
286
|
ATTRIBUTE_PARAMETER_TYPE: () => ATTRIBUTE_PARAMETER_TYPE,
|
287
287
|
ATTRIBUTE_PARAMETER_VALUE: () => ATTRIBUTE_PARAMETER_VALUE,
|
288
288
|
ATTRIBUTE_PLACEHOLDER: () => ATTRIBUTE_PLACEHOLDER,
|
289
|
-
ApiClientError: () =>
|
289
|
+
ApiClientError: () => import_api15.ApiClientError,
|
290
290
|
BatchEntry: () => BatchEntry,
|
291
291
|
CANVAS_BLOCK_PARAM_TYPE: () => CANVAS_BLOCK_PARAM_TYPE,
|
292
292
|
CANVAS_DRAFT_STATE: () => CANVAS_DRAFT_STATE,
|
@@ -305,10 +305,6 @@ __export(src_exports, {
|
|
305
305
|
CANVAS_TEST_SLOT: () => CANVAS_TEST_SLOT,
|
306
306
|
CANVAS_TEST_TYPE: () => CANVAS_TEST_TYPE,
|
307
307
|
CANVAS_TEST_VARIANT_PARAM: () => CANVAS_TEST_VARIANT_PARAM,
|
308
|
-
CANVAS_VIZ_CONTROL_PARAM: () => CANVAS_VIZ_CONTROL_PARAM,
|
309
|
-
CANVAS_VIZ_DI_RULE: () => CANVAS_VIZ_DI_RULE,
|
310
|
-
CANVAS_VIZ_LOCALE_RULE: () => CANVAS_VIZ_LOCALE_RULE,
|
311
|
-
CANVAS_VIZ_QUIRKS_RULE: () => CANVAS_VIZ_QUIRKS_RULE,
|
312
308
|
CanvasClient: () => CanvasClient,
|
313
309
|
CanvasClientError: () => CanvasClientError,
|
314
310
|
CategoryClient: () => CategoryClient,
|
@@ -322,6 +318,7 @@ __export(src_exports, {
|
|
322
318
|
EDGE_MIN_CACHE_TTL: () => EDGE_MIN_CACHE_TTL,
|
323
319
|
EMPTY_COMPOSITION: () => EMPTY_COMPOSITION,
|
324
320
|
EnhancerBuilder: () => EnhancerBuilder,
|
321
|
+
EntityReleasesClient: () => EntityReleasesClient,
|
325
322
|
IN_CONTEXT_EDITOR_COMPONENT_END_ROLE: () => IN_CONTEXT_EDITOR_COMPONENT_END_ROLE,
|
326
323
|
IN_CONTEXT_EDITOR_COMPONENT_START_ROLE: () => IN_CONTEXT_EDITOR_COMPONENT_START_ROLE,
|
327
324
|
IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM: () => IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM,
|
@@ -350,16 +347,11 @@ __export(src_exports, {
|
|
350
347
|
convertEntryToPutEntry: () => convertEntryToPutEntry,
|
351
348
|
createBatchEnhancer: () => createBatchEnhancer,
|
352
349
|
createCanvasChannel: () => createCanvasChannel,
|
353
|
-
createDynamicInputVisibilityRule: () => createDynamicInputVisibilityRule,
|
354
350
|
createEventBus: () => createEventBus,
|
355
351
|
createLimitPolicy: () => createLimitPolicy,
|
356
|
-
createLocaleVisibilityRule: () => createLocaleVisibilityRule,
|
357
|
-
createQuirksVisibilityRule: () => createQuirksVisibilityRule,
|
358
352
|
createUniformApiEnhancer: () => createUniformApiEnhancer,
|
359
353
|
createVariableReference: () => createVariableReference,
|
360
354
|
enhance: () => enhance,
|
361
|
-
evaluateVisibilityCriteriaGroup: () => evaluateVisibilityCriteriaGroup,
|
362
|
-
evaluateWalkTreeVisibility: () => evaluateWalkTreeVisibility,
|
363
355
|
extractLocales: () => extractLocales,
|
364
356
|
findParameterInNodeTree: () => findParameterInNodeTree,
|
365
357
|
flattenValues: () => flattenValues,
|
@@ -381,7 +373,6 @@ __export(src_exports, {
|
|
381
373
|
isAssetParamValueItem: () => isAssetParamValueItem,
|
382
374
|
isComponentActionMessage: () => isComponentActionMessage,
|
383
375
|
isComponentPlaceholderId: () => isComponentPlaceholderId,
|
384
|
-
isContextStorageUpdatedMessage: () => isContextStorageUpdatedMessage,
|
385
376
|
isDismissPlaceholderMessage: () => isDismissPlaceholderMessage,
|
386
377
|
isEntryData: () => isEntryData,
|
387
378
|
isMovingComponentMessage: () => isMovingComponentMessage,
|
@@ -1755,198 +1746,6 @@ function findParameterInNodeTree(data, predicate) {
|
|
1755
1746
|
return results;
|
1756
1747
|
}
|
1757
1748
|
|
1758
|
-
// src/enhancement/visibility/evaluateVisibilityCriteriaGroup.ts
|
1759
|
-
function evaluateVisibilityCriteriaGroup(options) {
|
1760
|
-
const { criteriaGroup, simplifyCriteria } = options;
|
1761
|
-
const earlyExitResult = criteriaGroup.op === "&" || !criteriaGroup.op ? false : true;
|
1762
|
-
let hasIndeterminateClauses = false;
|
1763
|
-
for (let index = criteriaGroup.clauses.length - 1; index >= 0; index--) {
|
1764
|
-
const clause = criteriaGroup.clauses[index];
|
1765
|
-
const criteriaResult = evaluateCriterion(clause, options);
|
1766
|
-
if (criteriaResult === null) {
|
1767
|
-
hasIndeterminateClauses = true;
|
1768
|
-
} else if (criteriaResult === earlyExitResult) {
|
1769
|
-
return earlyExitResult;
|
1770
|
-
} else if (criteriaResult !== null && simplifyCriteria) {
|
1771
|
-
criteriaGroup.clauses.splice(index, 1);
|
1772
|
-
}
|
1773
|
-
}
|
1774
|
-
return hasIndeterminateClauses ? null : !earlyExitResult;
|
1775
|
-
}
|
1776
|
-
function evaluateCriterion(clause, rootOptions) {
|
1777
|
-
if ("clauses" in clause) {
|
1778
|
-
return evaluateVisibilityCriteriaGroup({
|
1779
|
-
...rootOptions,
|
1780
|
-
criteriaGroup: clause
|
1781
|
-
});
|
1782
|
-
}
|
1783
|
-
const rule = rootOptions.rules[clause.rule];
|
1784
|
-
if (rule) {
|
1785
|
-
return rule(clause);
|
1786
|
-
}
|
1787
|
-
return null;
|
1788
|
-
}
|
1789
|
-
|
1790
|
-
// src/enhancement/visibility/types.ts
|
1791
|
-
var CANVAS_VIZ_CONTROL_PARAM = "$viz";
|
1792
|
-
|
1793
|
-
// src/enhancement/visibility/evaluateNodeVisibility.ts
|
1794
|
-
function evaluateNodeVisibility({
|
1795
|
-
node,
|
1796
|
-
...evaluateGroupOptions
|
1797
|
-
}) {
|
1798
|
-
var _a;
|
1799
|
-
const properties = getPropertiesValue(node);
|
1800
|
-
const vizCriteria = (_a = properties == null ? void 0 : properties[CANVAS_VIZ_CONTROL_PARAM]) == null ? void 0 : _a.value;
|
1801
|
-
if (vizCriteria == null ? void 0 : vizCriteria.explicitlyHidden) {
|
1802
|
-
return false;
|
1803
|
-
}
|
1804
|
-
if (!(vizCriteria == null ? void 0 : vizCriteria.criteria)) {
|
1805
|
-
return true;
|
1806
|
-
}
|
1807
|
-
const result = evaluateVisibilityCriteriaGroup({
|
1808
|
-
...evaluateGroupOptions,
|
1809
|
-
criteriaGroup: vizCriteria.criteria
|
1810
|
-
});
|
1811
|
-
if (vizCriteria.criteria.clauses.length === 0 && evaluateGroupOptions.simplifyCriteria) {
|
1812
|
-
properties == null ? true : delete properties[CANVAS_VIZ_CONTROL_PARAM];
|
1813
|
-
}
|
1814
|
-
return result;
|
1815
|
-
}
|
1816
|
-
|
1817
|
-
// src/enhancement/visibility/evaluateWalkTreeVisibility.ts
|
1818
|
-
function evaluateWalkTreeVisibility({
|
1819
|
-
rules,
|
1820
|
-
showIndeterminate,
|
1821
|
-
context
|
1822
|
-
}) {
|
1823
|
-
const { type, node, actions } = context;
|
1824
|
-
if (type !== "component") {
|
1825
|
-
return;
|
1826
|
-
}
|
1827
|
-
const result = evaluateNodeVisibility({ node, rules, simplifyCriteria: true });
|
1828
|
-
if (result === null && !showIndeterminate || result === false) {
|
1829
|
-
actions.remove();
|
1830
|
-
return false;
|
1831
|
-
}
|
1832
|
-
return true;
|
1833
|
-
}
|
1834
|
-
|
1835
|
-
// src/enhancement/visibility/rules/evaluateStringMatch.ts
|
1836
|
-
var isEvaluator = (criteria, matchValue) => {
|
1837
|
-
if (Array.isArray(criteria)) {
|
1838
|
-
return criteria.includes(matchValue);
|
1839
|
-
}
|
1840
|
-
return criteria === matchValue;
|
1841
|
-
};
|
1842
|
-
var containsEvaluator = (criteria, matchValue) => {
|
1843
|
-
if (Array.isArray(criteria)) {
|
1844
|
-
return criteria.some((criterion) => matchValue.includes(criterion));
|
1845
|
-
}
|
1846
|
-
return matchValue.includes(criteria);
|
1847
|
-
};
|
1848
|
-
var startsWithEvaluator = (criteria, matchValue) => {
|
1849
|
-
if (Array.isArray(criteria)) {
|
1850
|
-
return criteria.some((criterion) => matchValue.startsWith(criterion));
|
1851
|
-
}
|
1852
|
-
return matchValue.startsWith(criteria);
|
1853
|
-
};
|
1854
|
-
var endsWithEvaluator = (criteria, matchValue) => {
|
1855
|
-
if (Array.isArray(criteria)) {
|
1856
|
-
return criteria.some((criterion) => matchValue.endsWith(criterion));
|
1857
|
-
}
|
1858
|
-
return matchValue.endsWith(criteria);
|
1859
|
-
};
|
1860
|
-
var emptyEvaluator = (_, matchValue) => {
|
1861
|
-
return matchValue === "";
|
1862
|
-
};
|
1863
|
-
var stringOperatorEvaluators = {
|
1864
|
-
is: isEvaluator,
|
1865
|
-
has: containsEvaluator,
|
1866
|
-
startswith: startsWithEvaluator,
|
1867
|
-
endswith: endsWithEvaluator,
|
1868
|
-
empty: emptyEvaluator
|
1869
|
-
};
|
1870
|
-
function evaluateStringMatch(criteria, matchValue, allow) {
|
1871
|
-
const { op, value } = criteria;
|
1872
|
-
if (allow && !allow.has(op)) {
|
1873
|
-
return null;
|
1874
|
-
}
|
1875
|
-
let opMatch = op;
|
1876
|
-
const negation = op.startsWith("!");
|
1877
|
-
if (negation) {
|
1878
|
-
opMatch = opMatch.slice(1);
|
1879
|
-
}
|
1880
|
-
const evaluator = stringOperatorEvaluators[opMatch];
|
1881
|
-
if (!evaluator) {
|
1882
|
-
return null;
|
1883
|
-
}
|
1884
|
-
const result = evaluator(value, matchValue);
|
1885
|
-
return negation ? !result : result;
|
1886
|
-
}
|
1887
|
-
|
1888
|
-
// src/enhancement/visibility/rules/dynamicInputVisibilityRule.ts
|
1889
|
-
var dynamicInputVisibilityOperators = /* @__PURE__ */ new Set([
|
1890
|
-
"is",
|
1891
|
-
"!is",
|
1892
|
-
"has",
|
1893
|
-
"!has",
|
1894
|
-
"startswith",
|
1895
|
-
"!startswith",
|
1896
|
-
"endswith",
|
1897
|
-
"!endswith",
|
1898
|
-
"empty",
|
1899
|
-
"!empty"
|
1900
|
-
]);
|
1901
|
-
var CANVAS_VIZ_DI_RULE = "$di";
|
1902
|
-
function createDynamicInputVisibilityRule(dynamicInputs) {
|
1903
|
-
return {
|
1904
|
-
[CANVAS_VIZ_DI_RULE]: (criterion) => {
|
1905
|
-
const { source } = criterion;
|
1906
|
-
const diValue = source ? dynamicInputs[source] : void 0;
|
1907
|
-
return evaluateStringMatch(criterion, diValue != null ? diValue : "", dynamicInputVisibilityOperators);
|
1908
|
-
}
|
1909
|
-
};
|
1910
|
-
}
|
1911
|
-
|
1912
|
-
// src/enhancement/visibility/rules/localeVisibilityRule.ts
|
1913
|
-
var localeVisibilityOperators = /* @__PURE__ */ new Set(["is", "!is"]);
|
1914
|
-
var CANVAS_VIZ_LOCALE_RULE = "$locale";
|
1915
|
-
function createLocaleVisibilityRule(currentLocale) {
|
1916
|
-
return {
|
1917
|
-
[CANVAS_VIZ_LOCALE_RULE]: (criterion) => {
|
1918
|
-
if (!currentLocale) {
|
1919
|
-
return false;
|
1920
|
-
}
|
1921
|
-
return evaluateStringMatch(criterion, currentLocale, localeVisibilityOperators);
|
1922
|
-
}
|
1923
|
-
};
|
1924
|
-
}
|
1925
|
-
|
1926
|
-
// src/enhancement/visibility/rules/quirksRule.ts
|
1927
|
-
var quirksVisibilityOperators = /* @__PURE__ */ new Set([
|
1928
|
-
"is",
|
1929
|
-
"!is",
|
1930
|
-
"has",
|
1931
|
-
"!has",
|
1932
|
-
"startswith",
|
1933
|
-
"!startswith",
|
1934
|
-
"endswith",
|
1935
|
-
"!endswith",
|
1936
|
-
"empty",
|
1937
|
-
"!empty"
|
1938
|
-
]);
|
1939
|
-
var CANVAS_VIZ_QUIRKS_RULE = "$qk";
|
1940
|
-
function createQuirksVisibilityRule(quirks) {
|
1941
|
-
return {
|
1942
|
-
[CANVAS_VIZ_QUIRKS_RULE]: (criterion) => {
|
1943
|
-
const { source } = criterion;
|
1944
|
-
const quirkValue = source ? quirks[source] : void 0;
|
1945
|
-
return evaluateStringMatch(criterion, quirkValue != null ? quirkValue : "", quirksVisibilityOperators);
|
1946
|
-
}
|
1947
|
-
};
|
1948
|
-
}
|
1949
|
-
|
1950
1749
|
// src/enhancement/localize.ts
|
1951
1750
|
function extractLocales({ component }) {
|
1952
1751
|
var _a;
|
@@ -1965,29 +1764,17 @@ function extractLocales({ component }) {
|
|
1965
1764
|
function localize(options) {
|
1966
1765
|
const nodes = "nodes" in options ? options.nodes : options.composition;
|
1967
1766
|
const locale = options.locale;
|
1968
|
-
|
1969
|
-
const vizControlLocaleRule = isUsingModernOptions ? createLocaleVisibilityRule(locale) : {};
|
1970
|
-
walkNodeTree(nodes, (context) => {
|
1971
|
-
const { type, node, actions } = context;
|
1767
|
+
walkNodeTree(nodes, ({ type, node, actions }) => {
|
1972
1768
|
if (type !== "component") {
|
1973
|
-
if (
|
1769
|
+
if (typeof locale === "string") {
|
1974
1770
|
localizeProperties(node.fields, locale);
|
1975
1771
|
}
|
1976
1772
|
return;
|
1977
1773
|
}
|
1978
|
-
|
1979
|
-
const result = evaluateWalkTreeVisibility({
|
1980
|
-
context,
|
1981
|
-
rules: vizControlLocaleRule,
|
1982
|
-
showIndeterminate: true
|
1983
|
-
});
|
1984
|
-
if (!result) {
|
1985
|
-
return;
|
1986
|
-
}
|
1987
|
-
}
|
1774
|
+
const shouldRunPropertyLocalization = typeof locale === "string";
|
1988
1775
|
if (node.type === CANVAS_LOCALIZATION_TYPE) {
|
1989
1776
|
const locales = extractLocales({ component: node });
|
1990
|
-
const resolvedLocale =
|
1777
|
+
const resolvedLocale = typeof locale === "string" ? locale : locale == null ? void 0 : locale({ component: node, locales });
|
1991
1778
|
let replaceComponent;
|
1992
1779
|
if (resolvedLocale) {
|
1993
1780
|
replaceComponent = locales[resolvedLocale];
|
@@ -1995,7 +1782,7 @@ function localize(options) {
|
|
1995
1782
|
if (replaceComponent == null ? void 0 : replaceComponent.length) {
|
1996
1783
|
replaceComponent.forEach((component) => {
|
1997
1784
|
removeLocaleProperty(component);
|
1998
|
-
if (
|
1785
|
+
if (shouldRunPropertyLocalization) {
|
1999
1786
|
localizeProperties(getPropertiesValue(component), locale);
|
2000
1787
|
}
|
2001
1788
|
});
|
@@ -2007,7 +1794,7 @@ function localize(options) {
|
|
2007
1794
|
} else {
|
2008
1795
|
actions.remove();
|
2009
1796
|
}
|
2010
|
-
} else if (
|
1797
|
+
} else if (shouldRunPropertyLocalization) {
|
2011
1798
|
localizeProperties(getPropertiesValue(node), locale);
|
2012
1799
|
}
|
2013
1800
|
});
|
@@ -2192,10 +1979,25 @@ function walkComponentTree(component, visitor, initialContext) {
|
|
2192
1979
|
} while (componentQueue.length > 0);
|
2193
1980
|
}
|
2194
1981
|
|
2195
|
-
// src/
|
1982
|
+
// src/EntityReleasesClient.ts
|
2196
1983
|
var import_api7 = require("@uniformdev/context/api");
|
1984
|
+
var releaseContentsUrl = "/api/v1/entity-releases";
|
1985
|
+
var EntityReleasesClient = class extends import_api7.ApiClient {
|
1986
|
+
constructor(options) {
|
1987
|
+
super(options);
|
1988
|
+
}
|
1989
|
+
/** Fetches entity across all releases (and base) */
|
1990
|
+
async get(options) {
|
1991
|
+
const { projectId } = this.options;
|
1992
|
+
const fetchUri = this.createUrl(releaseContentsUrl, { ...options, projectId });
|
1993
|
+
return await this.apiClient(fetchUri);
|
1994
|
+
}
|
1995
|
+
};
|
1996
|
+
|
1997
|
+
// src/LocaleClient.ts
|
1998
|
+
var import_api8 = require("@uniformdev/context/api");
|
2197
1999
|
var localesUrl = "/api/v1/locales";
|
2198
|
-
var LocaleClient = class extends
|
2000
|
+
var LocaleClient = class extends import_api8.ApiClient {
|
2199
2001
|
constructor(options) {
|
2200
2002
|
super(options);
|
2201
2003
|
}
|
@@ -2301,9 +2103,6 @@ var isRequestComponentSuggestionMessage = (message) => {
|
|
2301
2103
|
var isSuggestComponentMessage = (message) => {
|
2302
2104
|
return message.type === "suggest-component";
|
2303
2105
|
};
|
2304
|
-
var isContextStorageUpdatedMessage = (message) => {
|
2305
|
-
return message.type === "context-storage-command-executed";
|
2306
|
-
};
|
2307
2106
|
var createCanvasChannel = ({
|
2308
2107
|
listenTo,
|
2309
2108
|
broadcastTo
|
@@ -2484,13 +2283,6 @@ var createCanvasChannel = ({
|
|
2484
2283
|
};
|
2485
2284
|
postMessage(message);
|
2486
2285
|
};
|
2487
|
-
const contextStorageUpdated = (options) => {
|
2488
|
-
const message = {
|
2489
|
-
...options,
|
2490
|
-
type: "context-storage-command-executed"
|
2491
|
-
};
|
2492
|
-
postMessage(message);
|
2493
|
-
};
|
2494
2286
|
const messageEventListener = (event) => {
|
2495
2287
|
if (typeof event.data !== "string") {
|
2496
2288
|
return;
|
@@ -2540,8 +2332,7 @@ var createCanvasChannel = ({
|
|
2540
2332
|
editorStateUpdated,
|
2541
2333
|
updateComponentReferences,
|
2542
2334
|
requestComponentSuggestion,
|
2543
|
-
suggestComponent
|
2544
|
-
contextStorageUpdated
|
2335
|
+
suggestComponent
|
2545
2336
|
};
|
2546
2337
|
};
|
2547
2338
|
|
@@ -2624,9 +2415,9 @@ function subscribeToComposition({
|
|
2624
2415
|
}
|
2625
2416
|
|
2626
2417
|
// src/PromptClient.ts
|
2627
|
-
var
|
2418
|
+
var import_api9 = require("@uniformdev/context/api");
|
2628
2419
|
var PromptsUrl = "/api/v1/prompts";
|
2629
|
-
var PromptClient = class extends
|
2420
|
+
var PromptClient = class extends import_api9.ApiClient {
|
2630
2421
|
constructor(options) {
|
2631
2422
|
super(options);
|
2632
2423
|
}
|
@@ -2657,9 +2448,9 @@ var PromptClient = class extends import_api8.ApiClient {
|
|
2657
2448
|
};
|
2658
2449
|
|
2659
2450
|
// src/RelationshipClient.ts
|
2660
|
-
var
|
2451
|
+
var import_api10 = require("@uniformdev/context/api");
|
2661
2452
|
var RELATIONSHIPS_URL = "/api/v1/relationships";
|
2662
|
-
var RelationshipClient = class extends
|
2453
|
+
var RelationshipClient = class extends import_api10.ApiClient {
|
2663
2454
|
constructor(options) {
|
2664
2455
|
super(options);
|
2665
2456
|
this.get = async (options) => {
|
@@ -2671,9 +2462,9 @@ var RelationshipClient = class extends import_api9.ApiClient {
|
|
2671
2462
|
};
|
2672
2463
|
|
2673
2464
|
// src/ReleaseClient.ts
|
2674
|
-
var
|
2465
|
+
var import_api11 = require("@uniformdev/context/api");
|
2675
2466
|
var releasesUrl = "/api/v1/releases";
|
2676
|
-
var ReleaseClient = class extends
|
2467
|
+
var ReleaseClient = class extends import_api11.ApiClient {
|
2677
2468
|
constructor(options) {
|
2678
2469
|
super(options);
|
2679
2470
|
}
|
@@ -2713,21 +2504,21 @@ var ReleaseClient = class extends import_api10.ApiClient {
|
|
2713
2504
|
};
|
2714
2505
|
|
2715
2506
|
// src/ReleaseContentsClient.ts
|
2716
|
-
var
|
2717
|
-
var
|
2718
|
-
var ReleaseContentsClient = class extends
|
2507
|
+
var import_api12 = require("@uniformdev/context/api");
|
2508
|
+
var releaseContentsUrl2 = "/api/v1/release-contents";
|
2509
|
+
var ReleaseContentsClient = class extends import_api12.ApiClient {
|
2719
2510
|
constructor(options) {
|
2720
2511
|
super(options);
|
2721
2512
|
}
|
2722
2513
|
/** Fetches all entities added to a release */
|
2723
2514
|
async get(options) {
|
2724
2515
|
const { projectId } = this.options;
|
2725
|
-
const fetchUri = this.createUrl(
|
2516
|
+
const fetchUri = this.createUrl(releaseContentsUrl2, { ...options, projectId });
|
2726
2517
|
return await this.apiClient(fetchUri);
|
2727
2518
|
}
|
2728
2519
|
/** Removes a release content from a release */
|
2729
2520
|
async remove(body) {
|
2730
|
-
const fetchUri = this.createUrl(
|
2521
|
+
const fetchUri = this.createUrl(releaseContentsUrl2);
|
2731
2522
|
await this.apiClient(fetchUri, {
|
2732
2523
|
method: "DELETE",
|
2733
2524
|
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
@@ -2737,9 +2528,9 @@ var ReleaseContentsClient = class extends import_api11.ApiClient {
|
|
2737
2528
|
};
|
2738
2529
|
|
2739
2530
|
// src/RouteClient.ts
|
2740
|
-
var
|
2531
|
+
var import_api13 = require("@uniformdev/context/api");
|
2741
2532
|
var ROUTE_URL = "/api/v1/route";
|
2742
|
-
var RouteClient = class extends
|
2533
|
+
var RouteClient = class extends import_api13.ApiClient {
|
2743
2534
|
constructor(options) {
|
2744
2535
|
var _a;
|
2745
2536
|
if (!options.limitPolicy) {
|
@@ -3106,12 +2897,12 @@ function handleRichTextNodeBinding(object, options) {
|
|
3106
2897
|
}
|
3107
2898
|
|
3108
2899
|
// src/index.ts
|
3109
|
-
var
|
2900
|
+
var import_api15 = require("@uniformdev/context/api");
|
3110
2901
|
|
3111
2902
|
// src/WorkflowClient.ts
|
3112
|
-
var
|
2903
|
+
var import_api14 = require("@uniformdev/context/api");
|
3113
2904
|
var workflowsUrl = "/api/v1/workflows";
|
3114
|
-
var WorkflowClient = class extends
|
2905
|
+
var WorkflowClient = class extends import_api14.ApiClient {
|
3115
2906
|
constructor(options) {
|
3116
2907
|
super(options);
|
3117
2908
|
}
|
@@ -3142,7 +2933,7 @@ var WorkflowClient = class extends import_api13.ApiClient {
|
|
3142
2933
|
};
|
3143
2934
|
|
3144
2935
|
// src/index.ts
|
3145
|
-
var CanvasClientError =
|
2936
|
+
var CanvasClientError = import_api15.ApiClientError;
|
3146
2937
|
// Annotate the CommonJS export names for ESM import in node:
|
3147
2938
|
0 && (module.exports = {
|
3148
2939
|
ASSETS_SOURCE_CUSTOM_URL,
|
@@ -3173,10 +2964,6 @@ var CanvasClientError = import_api14.ApiClientError;
|
|
3173
2964
|
CANVAS_TEST_SLOT,
|
3174
2965
|
CANVAS_TEST_TYPE,
|
3175
2966
|
CANVAS_TEST_VARIANT_PARAM,
|
3176
|
-
CANVAS_VIZ_CONTROL_PARAM,
|
3177
|
-
CANVAS_VIZ_DI_RULE,
|
3178
|
-
CANVAS_VIZ_LOCALE_RULE,
|
3179
|
-
CANVAS_VIZ_QUIRKS_RULE,
|
3180
2967
|
CanvasClient,
|
3181
2968
|
CanvasClientError,
|
3182
2969
|
CategoryClient,
|
@@ -3190,6 +2977,7 @@ var CanvasClientError = import_api14.ApiClientError;
|
|
3190
2977
|
EDGE_MIN_CACHE_TTL,
|
3191
2978
|
EMPTY_COMPOSITION,
|
3192
2979
|
EnhancerBuilder,
|
2980
|
+
EntityReleasesClient,
|
3193
2981
|
IN_CONTEXT_EDITOR_COMPONENT_END_ROLE,
|
3194
2982
|
IN_CONTEXT_EDITOR_COMPONENT_START_ROLE,
|
3195
2983
|
IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM,
|
@@ -3218,16 +3006,11 @@ var CanvasClientError = import_api14.ApiClientError;
|
|
3218
3006
|
convertEntryToPutEntry,
|
3219
3007
|
createBatchEnhancer,
|
3220
3008
|
createCanvasChannel,
|
3221
|
-
createDynamicInputVisibilityRule,
|
3222
3009
|
createEventBus,
|
3223
3010
|
createLimitPolicy,
|
3224
|
-
createLocaleVisibilityRule,
|
3225
|
-
createQuirksVisibilityRule,
|
3226
3011
|
createUniformApiEnhancer,
|
3227
3012
|
createVariableReference,
|
3228
3013
|
enhance,
|
3229
|
-
evaluateVisibilityCriteriaGroup,
|
3230
|
-
evaluateWalkTreeVisibility,
|
3231
3014
|
extractLocales,
|
3232
3015
|
findParameterInNodeTree,
|
3233
3016
|
flattenValues,
|
@@ -3249,7 +3032,6 @@ var CanvasClientError = import_api14.ApiClientError;
|
|
3249
3032
|
isAssetParamValueItem,
|
3250
3033
|
isComponentActionMessage,
|
3251
3034
|
isComponentPlaceholderId,
|
3252
|
-
isContextStorageUpdatedMessage,
|
3253
3035
|
isDismissPlaceholderMessage,
|
3254
3036
|
isEntryData,
|
3255
3037
|
isMovingComponentMessage,
|