@uniformdev/canvas 19.159.0 → 19.159.1-alpha.27

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.js CHANGED
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __typeError = (msg) => {
9
+ throw TypeError(msg);
10
+ };
8
11
  var __commonJS = (cb, mod) => function __require() {
9
12
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
13
  };
@@ -29,19 +32,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
32
  mod
30
33
  ));
31
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
- var __accessCheck = (obj, member, msg) => {
33
- if (!member.has(obj))
34
- throw TypeError("Cannot " + msg);
35
- };
36
- var __privateGet = (obj, member, getter) => {
37
- __accessCheck(obj, member, "read from private field");
38
- return getter ? getter.call(obj) : member.get(obj);
39
- };
40
- var __privateAdd = (obj, member, value) => {
41
- if (member.has(obj))
42
- throw TypeError("Cannot add the same private member more than once");
43
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
44
- };
35
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
36
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
37
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
45
38
 
46
39
  // ../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js
47
40
  var require_retry_operation = __commonJS({
@@ -286,7 +279,7 @@ __export(src_exports, {
286
279
  ATTRIBUTE_PARAMETER_TYPE: () => ATTRIBUTE_PARAMETER_TYPE,
287
280
  ATTRIBUTE_PARAMETER_VALUE: () => ATTRIBUTE_PARAMETER_VALUE,
288
281
  ATTRIBUTE_PLACEHOLDER: () => ATTRIBUTE_PLACEHOLDER,
289
- ApiClientError: () => import_api14.ApiClientError,
282
+ ApiClientError: () => import_api15.ApiClientError,
290
283
  BatchEntry: () => BatchEntry,
291
284
  CANVAS_BLOCK_PARAM_TYPE: () => CANVAS_BLOCK_PARAM_TYPE,
292
285
  CANVAS_DRAFT_STATE: () => CANVAS_DRAFT_STATE,
@@ -305,6 +298,9 @@ __export(src_exports, {
305
298
  CANVAS_TEST_SLOT: () => CANVAS_TEST_SLOT,
306
299
  CANVAS_TEST_TYPE: () => CANVAS_TEST_TYPE,
307
300
  CANVAS_TEST_VARIANT_PARAM: () => CANVAS_TEST_VARIANT_PARAM,
301
+ CANVAS_VIZ_CONTROL_PARAM: () => CANVAS_VIZ_CONTROL_PARAM,
302
+ CANVAS_VIZ_DI_RULE: () => CANVAS_VIZ_DI_RULE,
303
+ CANVAS_VIZ_LOCALE_RULE: () => CANVAS_VIZ_LOCALE_RULE,
308
304
  CanvasClient: () => CanvasClient,
309
305
  CanvasClientError: () => CanvasClientError,
310
306
  CategoryClient: () => CategoryClient,
@@ -318,6 +314,7 @@ __export(src_exports, {
318
314
  EDGE_MIN_CACHE_TTL: () => EDGE_MIN_CACHE_TTL,
319
315
  EMPTY_COMPOSITION: () => EMPTY_COMPOSITION,
320
316
  EnhancerBuilder: () => EnhancerBuilder,
317
+ EntityReleasesClient: () => EntityReleasesClient,
321
318
  IN_CONTEXT_EDITOR_COMPONENT_END_ROLE: () => IN_CONTEXT_EDITOR_COMPONENT_END_ROLE,
322
319
  IN_CONTEXT_EDITOR_COMPONENT_START_ROLE: () => IN_CONTEXT_EDITOR_COMPONENT_START_ROLE,
323
320
  IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM: () => IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM,
@@ -346,11 +343,15 @@ __export(src_exports, {
346
343
  convertEntryToPutEntry: () => convertEntryToPutEntry,
347
344
  createBatchEnhancer: () => createBatchEnhancer,
348
345
  createCanvasChannel: () => createCanvasChannel,
346
+ createDynamicInputVisibilityRule: () => createDynamicInputVisibilityRule,
349
347
  createEventBus: () => createEventBus,
350
348
  createLimitPolicy: () => createLimitPolicy,
349
+ createLocaleVisibilityRule: () => createLocaleVisibilityRule,
351
350
  createUniformApiEnhancer: () => createUniformApiEnhancer,
352
351
  createVariableReference: () => createVariableReference,
353
352
  enhance: () => enhance,
353
+ evaluateVisibilityCriteriaGroup: () => evaluateVisibilityCriteriaGroup,
354
+ evaluateWalkTreeVisibility: () => evaluateWalkTreeVisibility,
354
355
  extractLocales: () => extractLocales,
355
356
  findParameterInNodeTree: () => findParameterInNodeTree,
356
357
  flattenValues: () => flattenValues,
@@ -1187,8 +1188,7 @@ function walkNodeTree(node, visitor, options) {
1187
1188
  const childContexts = /* @__PURE__ */ new Map();
1188
1189
  do {
1189
1190
  const currentQueueEntry = componentQueue.pop();
1190
- if (!currentQueueEntry)
1191
- continue;
1191
+ if (!currentQueueEntry) continue;
1192
1192
  const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
1193
1193
  let visitDescendants = true;
1194
1194
  let descendantContext = (_a = childContexts.get(currentComponent.node)) != null ? _a : currentQueueEntry.context;
@@ -1399,8 +1399,7 @@ function walkNodeTree(node, visitor, options) {
1399
1399
  const propertyEntries = Object.entries(properties);
1400
1400
  for (let propIndex = propertyEntries.length - 1; propIndex >= 0; propIndex--) {
1401
1401
  const [propKey, propObject] = propertyEntries[propIndex];
1402
- if (!isNestedNodeType(propObject.type))
1403
- continue;
1402
+ if (!isNestedNodeType(propObject.type)) continue;
1404
1403
  const blocks = (_b = propObject.value) != null ? _b : [];
1405
1404
  for (let blockIndex = blocks.length - 1; blockIndex >= 0; blockIndex--) {
1406
1405
  const enqueueingBlock = blocks[blockIndex];
@@ -1745,6 +1744,174 @@ function findParameterInNodeTree(data, predicate) {
1745
1744
  return results;
1746
1745
  }
1747
1746
 
1747
+ // src/enhancement/visibility/evaluateVisibilityCriteriaGroup.ts
1748
+ function evaluateVisibilityCriteriaGroup(options) {
1749
+ const { criteriaGroup, simplifyCriteria } = options;
1750
+ const earlyExitResult = criteriaGroup.op === "&" || !criteriaGroup.op ? false : true;
1751
+ let hasIndeterminateClauses = false;
1752
+ for (let index = criteriaGroup.clauses.length - 1; index >= 0; index--) {
1753
+ const clause = criteriaGroup.clauses[index];
1754
+ const criteriaResult = evaluateCriterion(clause, options);
1755
+ if (criteriaResult === null) {
1756
+ hasIndeterminateClauses = true;
1757
+ } else if (criteriaResult === earlyExitResult) {
1758
+ return earlyExitResult;
1759
+ } else if (criteriaResult !== null && simplifyCriteria) {
1760
+ criteriaGroup.clauses.splice(index, 1);
1761
+ }
1762
+ }
1763
+ return hasIndeterminateClauses ? null : !earlyExitResult;
1764
+ }
1765
+ function evaluateCriterion(clause, rootOptions) {
1766
+ if ("clauses" in clause) {
1767
+ return evaluateVisibilityCriteriaGroup({
1768
+ ...rootOptions,
1769
+ criteriaGroup: clause
1770
+ });
1771
+ }
1772
+ const rule = rootOptions.rules[clause.rule];
1773
+ if (rule) {
1774
+ return rule(clause);
1775
+ }
1776
+ return null;
1777
+ }
1778
+
1779
+ // src/enhancement/visibility/types.ts
1780
+ var CANVAS_VIZ_CONTROL_PARAM = "$viz";
1781
+
1782
+ // src/enhancement/visibility/evaluateNodeVisibility.ts
1783
+ function evaluateNodeVisibility({
1784
+ node,
1785
+ ...evaluateGroupOptions
1786
+ }) {
1787
+ var _a;
1788
+ const properties = getPropertiesValue(node);
1789
+ const vizCriteria = (_a = properties == null ? void 0 : properties[CANVAS_VIZ_CONTROL_PARAM]) == null ? void 0 : _a.value;
1790
+ if (vizCriteria == null ? void 0 : vizCriteria.explicitlyHidden) {
1791
+ return false;
1792
+ }
1793
+ if (!(vizCriteria == null ? void 0 : vizCriteria.criteria)) {
1794
+ return true;
1795
+ }
1796
+ const result = evaluateVisibilityCriteriaGroup({
1797
+ ...evaluateGroupOptions,
1798
+ criteriaGroup: vizCriteria.criteria
1799
+ });
1800
+ if (vizCriteria.criteria.clauses.length === 0 && evaluateGroupOptions.simplifyCriteria) {
1801
+ properties == null ? true : delete properties[CANVAS_VIZ_CONTROL_PARAM];
1802
+ }
1803
+ return result;
1804
+ }
1805
+
1806
+ // src/enhancement/visibility/evaluateWalkTreeVisibility.ts
1807
+ function evaluateWalkTreeVisibility({
1808
+ rules,
1809
+ showIndeterminate,
1810
+ context
1811
+ }) {
1812
+ const { type, node, actions } = context;
1813
+ if (type !== "component") {
1814
+ return;
1815
+ }
1816
+ const result = evaluateNodeVisibility({ node, rules, simplifyCriteria: true });
1817
+ if (result === null && !showIndeterminate || result === false) {
1818
+ actions.remove();
1819
+ return false;
1820
+ }
1821
+ return true;
1822
+ }
1823
+
1824
+ // src/enhancement/visibility/rules/evaluateStringMatch.ts
1825
+ var isEvaluator = (criteria, matchValue) => {
1826
+ if (Array.isArray(criteria)) {
1827
+ return criteria.includes(matchValue);
1828
+ }
1829
+ return criteria === matchValue;
1830
+ };
1831
+ var containsEvaluator = (criteria, matchValue) => {
1832
+ if (Array.isArray(criteria)) {
1833
+ return criteria.some((criterion) => matchValue.includes(criterion));
1834
+ }
1835
+ return matchValue.includes(criteria);
1836
+ };
1837
+ var startsWithEvaluator = (criteria, matchValue) => {
1838
+ if (Array.isArray(criteria)) {
1839
+ return criteria.some((criterion) => matchValue.startsWith(criterion));
1840
+ }
1841
+ return matchValue.startsWith(criteria);
1842
+ };
1843
+ var endsWithEvaluator = (criteria, matchValue) => {
1844
+ if (Array.isArray(criteria)) {
1845
+ return criteria.some((criterion) => matchValue.endsWith(criterion));
1846
+ }
1847
+ return matchValue.endsWith(criteria);
1848
+ };
1849
+ var emptyEvaluator = (_, matchValue) => {
1850
+ return matchValue === "";
1851
+ };
1852
+ var stringOperatorEvaluators = {
1853
+ is: isEvaluator,
1854
+ has: containsEvaluator,
1855
+ startswith: startsWithEvaluator,
1856
+ endswith: endsWithEvaluator,
1857
+ empty: emptyEvaluator
1858
+ };
1859
+ function evaluateStringMatch(criteria, matchValue, allow) {
1860
+ const { op, value } = criteria;
1861
+ if (allow && !allow.has(op)) {
1862
+ return null;
1863
+ }
1864
+ let opMatch = op;
1865
+ const negation = op.startsWith("!");
1866
+ if (negation) {
1867
+ opMatch = opMatch.slice(1);
1868
+ }
1869
+ const evaluator = stringOperatorEvaluators[opMatch];
1870
+ if (!evaluator) {
1871
+ return null;
1872
+ }
1873
+ const result = evaluator(value, matchValue);
1874
+ return negation ? !result : result;
1875
+ }
1876
+
1877
+ // src/enhancement/visibility/rules/dynamicInputVisibilityRule.ts
1878
+ var dynamicInputVisibilityOperators = /* @__PURE__ */ new Set([
1879
+ "is",
1880
+ "!is",
1881
+ "has",
1882
+ "!has",
1883
+ "startswith",
1884
+ "!startswith",
1885
+ "endswith",
1886
+ "!endswith",
1887
+ "empty",
1888
+ "!empty"
1889
+ ]);
1890
+ var CANVAS_VIZ_DI_RULE = "$di";
1891
+ function createDynamicInputVisibilityRule(dynamicInputs) {
1892
+ return {
1893
+ [CANVAS_VIZ_DI_RULE]: (criterion) => {
1894
+ const { source } = criterion;
1895
+ const diValue = source ? dynamicInputs[source] : void 0;
1896
+ return evaluateStringMatch(criterion, diValue != null ? diValue : "", dynamicInputVisibilityOperators);
1897
+ }
1898
+ };
1899
+ }
1900
+
1901
+ // src/enhancement/visibility/rules/localeVisibilityRule.ts
1902
+ var localeVisibilityOperators = /* @__PURE__ */ new Set(["is", "!is"]);
1903
+ var CANVAS_VIZ_LOCALE_RULE = "$locale";
1904
+ function createLocaleVisibilityRule(currentLocale) {
1905
+ return {
1906
+ [CANVAS_VIZ_LOCALE_RULE]: (criterion) => {
1907
+ if (!currentLocale) {
1908
+ return false;
1909
+ }
1910
+ return evaluateStringMatch(criterion, currentLocale, localeVisibilityOperators);
1911
+ }
1912
+ };
1913
+ }
1914
+
1748
1915
  // src/enhancement/localize.ts
1749
1916
  function extractLocales({ component }) {
1750
1917
  var _a;
@@ -1763,17 +1930,29 @@ function extractLocales({ component }) {
1763
1930
  function localize(options) {
1764
1931
  const nodes = "nodes" in options ? options.nodes : options.composition;
1765
1932
  const locale = options.locale;
1766
- walkNodeTree(nodes, ({ type, node, actions }) => {
1933
+ const isUsingModernOptions = typeof locale === "string";
1934
+ const vizControlLocaleRule = isUsingModernOptions ? createLocaleVisibilityRule(locale) : {};
1935
+ walkNodeTree(nodes, (context) => {
1936
+ const { type, node, actions } = context;
1767
1937
  if (type !== "component") {
1768
- if (typeof locale === "string") {
1938
+ if (isUsingModernOptions) {
1769
1939
  localizeProperties(node.fields, locale);
1770
1940
  }
1771
1941
  return;
1772
1942
  }
1773
- const shouldRunPropertyLocalization = typeof locale === "string";
1943
+ if (isUsingModernOptions) {
1944
+ const result = evaluateWalkTreeVisibility({
1945
+ context,
1946
+ rules: vizControlLocaleRule,
1947
+ showIndeterminate: true
1948
+ });
1949
+ if (!result) {
1950
+ return;
1951
+ }
1952
+ }
1774
1953
  if (node.type === CANVAS_LOCALIZATION_TYPE) {
1775
1954
  const locales = extractLocales({ component: node });
1776
- const resolvedLocale = typeof locale === "string" ? locale : locale == null ? void 0 : locale({ component: node, locales });
1955
+ const resolvedLocale = isUsingModernOptions ? locale : locale == null ? void 0 : locale({ component: node, locales });
1777
1956
  let replaceComponent;
1778
1957
  if (resolvedLocale) {
1779
1958
  replaceComponent = locales[resolvedLocale];
@@ -1781,7 +1960,7 @@ function localize(options) {
1781
1960
  if (replaceComponent == null ? void 0 : replaceComponent.length) {
1782
1961
  replaceComponent.forEach((component) => {
1783
1962
  removeLocaleProperty(component);
1784
- if (shouldRunPropertyLocalization) {
1963
+ if (isUsingModernOptions) {
1785
1964
  localizeProperties(getPropertiesValue(component), locale);
1786
1965
  }
1787
1966
  });
@@ -1793,7 +1972,7 @@ function localize(options) {
1793
1972
  } else {
1794
1973
  actions.remove();
1795
1974
  }
1796
- } else if (shouldRunPropertyLocalization) {
1975
+ } else if (isUsingModernOptions) {
1797
1976
  localizeProperties(getPropertiesValue(node), locale);
1798
1977
  }
1799
1978
  });
@@ -1872,8 +2051,7 @@ function walkComponentTree(component, visitor, initialContext) {
1872
2051
  const childContexts = /* @__PURE__ */ new Map();
1873
2052
  do {
1874
2053
  const currentQueueEntry = componentQueue.pop();
1875
- if (!currentQueueEntry)
1876
- continue;
2054
+ if (!currentQueueEntry) continue;
1877
2055
  const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
1878
2056
  let visitDescendants = true;
1879
2057
  let descendantContext = (_a = childContexts.get(currentComponent.component)) != null ? _a : currentQueueEntry.context;
@@ -1978,10 +2156,25 @@ function walkComponentTree(component, visitor, initialContext) {
1978
2156
  } while (componentQueue.length > 0);
1979
2157
  }
1980
2158
 
1981
- // src/LocaleClient.ts
2159
+ // src/EntityReleasesClient.ts
1982
2160
  var import_api7 = require("@uniformdev/context/api");
2161
+ var releaseContentsUrl = "/api/v1/entity-releases";
2162
+ var EntityReleasesClient = class extends import_api7.ApiClient {
2163
+ constructor(options) {
2164
+ super(options);
2165
+ }
2166
+ /** Fetches entity across all releases (and base) */
2167
+ async get(options) {
2168
+ const { projectId } = this.options;
2169
+ const fetchUri = this.createUrl(releaseContentsUrl, { ...options, projectId });
2170
+ return await this.apiClient(fetchUri);
2171
+ }
2172
+ };
2173
+
2174
+ // src/LocaleClient.ts
2175
+ var import_api8 = require("@uniformdev/context/api");
1983
2176
  var localesUrl = "/api/v1/locales";
1984
- var LocaleClient = class extends import_api7.ApiClient {
2177
+ var LocaleClient = class extends import_api8.ApiClient {
1985
2178
  constructor(options) {
1986
2179
  super(options);
1987
2180
  }
@@ -2399,9 +2592,9 @@ function subscribeToComposition({
2399
2592
  }
2400
2593
 
2401
2594
  // src/PromptClient.ts
2402
- var import_api8 = require("@uniformdev/context/api");
2595
+ var import_api9 = require("@uniformdev/context/api");
2403
2596
  var PromptsUrl = "/api/v1/prompts";
2404
- var PromptClient = class extends import_api8.ApiClient {
2597
+ var PromptClient = class extends import_api9.ApiClient {
2405
2598
  constructor(options) {
2406
2599
  super(options);
2407
2600
  }
@@ -2432,9 +2625,9 @@ var PromptClient = class extends import_api8.ApiClient {
2432
2625
  };
2433
2626
 
2434
2627
  // src/RelationshipClient.ts
2435
- var import_api9 = require("@uniformdev/context/api");
2628
+ var import_api10 = require("@uniformdev/context/api");
2436
2629
  var RELATIONSHIPS_URL = "/api/v1/relationships";
2437
- var RelationshipClient = class extends import_api9.ApiClient {
2630
+ var RelationshipClient = class extends import_api10.ApiClient {
2438
2631
  constructor(options) {
2439
2632
  super(options);
2440
2633
  this.get = async (options) => {
@@ -2446,9 +2639,9 @@ var RelationshipClient = class extends import_api9.ApiClient {
2446
2639
  };
2447
2640
 
2448
2641
  // src/ReleaseClient.ts
2449
- var import_api10 = require("@uniformdev/context/api");
2642
+ var import_api11 = require("@uniformdev/context/api");
2450
2643
  var releasesUrl = "/api/v1/releases";
2451
- var ReleaseClient = class extends import_api10.ApiClient {
2644
+ var ReleaseClient = class extends import_api11.ApiClient {
2452
2645
  constructor(options) {
2453
2646
  super(options);
2454
2647
  }
@@ -2488,21 +2681,21 @@ var ReleaseClient = class extends import_api10.ApiClient {
2488
2681
  };
2489
2682
 
2490
2683
  // src/ReleaseContentsClient.ts
2491
- var import_api11 = require("@uniformdev/context/api");
2492
- var releaseContentsUrl = "/api/v1/release-contents";
2493
- var ReleaseContentsClient = class extends import_api11.ApiClient {
2684
+ var import_api12 = require("@uniformdev/context/api");
2685
+ var releaseContentsUrl2 = "/api/v1/release-contents";
2686
+ var ReleaseContentsClient = class extends import_api12.ApiClient {
2494
2687
  constructor(options) {
2495
2688
  super(options);
2496
2689
  }
2497
2690
  /** Fetches all entities added to a release */
2498
2691
  async get(options) {
2499
2692
  const { projectId } = this.options;
2500
- const fetchUri = this.createUrl(releaseContentsUrl, { ...options, projectId });
2693
+ const fetchUri = this.createUrl(releaseContentsUrl2, { ...options, projectId });
2501
2694
  return await this.apiClient(fetchUri);
2502
2695
  }
2503
2696
  /** Removes a release content from a release */
2504
2697
  async remove(body) {
2505
- const fetchUri = this.createUrl(releaseContentsUrl);
2698
+ const fetchUri = this.createUrl(releaseContentsUrl2);
2506
2699
  await this.apiClient(fetchUri, {
2507
2700
  method: "DELETE",
2508
2701
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -2512,9 +2705,9 @@ var ReleaseContentsClient = class extends import_api11.ApiClient {
2512
2705
  };
2513
2706
 
2514
2707
  // src/RouteClient.ts
2515
- var import_api12 = require("@uniformdev/context/api");
2708
+ var import_api13 = require("@uniformdev/context/api");
2516
2709
  var ROUTE_URL = "/api/v1/route";
2517
- var RouteClient = class extends import_api12.ApiClient {
2710
+ var RouteClient = class extends import_api13.ApiClient {
2518
2711
  constructor(options) {
2519
2712
  var _a;
2520
2713
  if (!options.limitPolicy) {
@@ -2625,8 +2818,7 @@ var isSystemComponentDefinition = (componentType) => {
2625
2818
 
2626
2819
  // src/utils/mapSlotToPersonalizedVariations.ts
2627
2820
  function mapSlotToPersonalizedVariations(slot) {
2628
- if (!slot)
2629
- return [];
2821
+ if (!slot) return [];
2630
2822
  return slot.map((v, i) => {
2631
2823
  var _a, _b;
2632
2824
  const contextTag = (_b = (_a = v.parameters) == null ? void 0 : _a[CANVAS_PERSONALIZATION_PARAM]) == null ? void 0 : _b.value;
@@ -2641,8 +2833,7 @@ function mapSlotToPersonalizedVariations(slot) {
2641
2833
 
2642
2834
  // src/utils/mapSlotToTestVariations.ts
2643
2835
  function mapSlotToTestVariations(slot) {
2644
- if (!slot)
2645
- return [];
2836
+ if (!slot) return [];
2646
2837
  return slot.map((v, i) => {
2647
2838
  var _a, _b, _c;
2648
2839
  const contextTag = (_b = (_a = v.parameters) == null ? void 0 : _a[CANVAS_TEST_VARIANT_PARAM]) == null ? void 0 : _b.value;
@@ -2881,12 +3072,12 @@ function handleRichTextNodeBinding(object, options) {
2881
3072
  }
2882
3073
 
2883
3074
  // src/index.ts
2884
- var import_api14 = require("@uniformdev/context/api");
3075
+ var import_api15 = require("@uniformdev/context/api");
2885
3076
 
2886
3077
  // src/WorkflowClient.ts
2887
- var import_api13 = require("@uniformdev/context/api");
3078
+ var import_api14 = require("@uniformdev/context/api");
2888
3079
  var workflowsUrl = "/api/v1/workflows";
2889
- var WorkflowClient = class extends import_api13.ApiClient {
3080
+ var WorkflowClient = class extends import_api14.ApiClient {
2890
3081
  constructor(options) {
2891
3082
  super(options);
2892
3083
  }
@@ -2917,7 +3108,7 @@ var WorkflowClient = class extends import_api13.ApiClient {
2917
3108
  };
2918
3109
 
2919
3110
  // src/index.ts
2920
- var CanvasClientError = import_api14.ApiClientError;
3111
+ var CanvasClientError = import_api15.ApiClientError;
2921
3112
  // Annotate the CommonJS export names for ESM import in node:
2922
3113
  0 && (module.exports = {
2923
3114
  ASSETS_SOURCE_CUSTOM_URL,
@@ -2948,6 +3139,9 @@ var CanvasClientError = import_api14.ApiClientError;
2948
3139
  CANVAS_TEST_SLOT,
2949
3140
  CANVAS_TEST_TYPE,
2950
3141
  CANVAS_TEST_VARIANT_PARAM,
3142
+ CANVAS_VIZ_CONTROL_PARAM,
3143
+ CANVAS_VIZ_DI_RULE,
3144
+ CANVAS_VIZ_LOCALE_RULE,
2951
3145
  CanvasClient,
2952
3146
  CanvasClientError,
2953
3147
  CategoryClient,
@@ -2961,6 +3155,7 @@ var CanvasClientError = import_api14.ApiClientError;
2961
3155
  EDGE_MIN_CACHE_TTL,
2962
3156
  EMPTY_COMPOSITION,
2963
3157
  EnhancerBuilder,
3158
+ EntityReleasesClient,
2964
3159
  IN_CONTEXT_EDITOR_COMPONENT_END_ROLE,
2965
3160
  IN_CONTEXT_EDITOR_COMPONENT_START_ROLE,
2966
3161
  IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM,
@@ -2989,11 +3184,15 @@ var CanvasClientError = import_api14.ApiClientError;
2989
3184
  convertEntryToPutEntry,
2990
3185
  createBatchEnhancer,
2991
3186
  createCanvasChannel,
3187
+ createDynamicInputVisibilityRule,
2992
3188
  createEventBus,
2993
3189
  createLimitPolicy,
3190
+ createLocaleVisibilityRule,
2994
3191
  createUniformApiEnhancer,
2995
3192
  createVariableReference,
2996
3193
  enhance,
3194
+ evaluateVisibilityCriteriaGroup,
3195
+ evaluateWalkTreeVisibility,
2997
3196
  extractLocales,
2998
3197
  findParameterInNodeTree,
2999
3198
  flattenValues,