@uniformdev/canvas 19.158.0 → 19.159.1-alpha.16

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.esm.js CHANGED
@@ -1841,10 +1841,25 @@ function walkComponentTree(component, visitor, initialContext) {
1841
1841
  } while (componentQueue.length > 0);
1842
1842
  }
1843
1843
 
1844
- // src/LocaleClient.ts
1844
+ // src/EntityReleasesClient.ts
1845
1845
  import { ApiClient as ApiClient6 } from "@uniformdev/context/api";
1846
+ var releaseContentsUrl = "/api/v1/entity-releases";
1847
+ var EntityReleasesClient = class extends ApiClient6 {
1848
+ constructor(options) {
1849
+ super(options);
1850
+ }
1851
+ /** Fetches entity across all releases (and base) */
1852
+ async get(options) {
1853
+ const { projectId } = this.options;
1854
+ const fetchUri = this.createUrl(releaseContentsUrl, { ...options, projectId });
1855
+ return await this.apiClient(fetchUri);
1856
+ }
1857
+ };
1858
+
1859
+ // src/LocaleClient.ts
1860
+ import { ApiClient as ApiClient7 } from "@uniformdev/context/api";
1846
1861
  var localesUrl = "/api/v1/locales";
1847
- var LocaleClient = class extends ApiClient6 {
1862
+ var LocaleClient = class extends ApiClient7 {
1848
1863
  constructor(options) {
1849
1864
  super(options);
1850
1865
  }
@@ -2262,9 +2277,9 @@ function subscribeToComposition({
2262
2277
  }
2263
2278
 
2264
2279
  // src/PromptClient.ts
2265
- import { ApiClient as ApiClient7 } from "@uniformdev/context/api";
2280
+ import { ApiClient as ApiClient8 } from "@uniformdev/context/api";
2266
2281
  var PromptsUrl = "/api/v1/prompts";
2267
- var PromptClient = class extends ApiClient7 {
2282
+ var PromptClient = class extends ApiClient8 {
2268
2283
  constructor(options) {
2269
2284
  super(options);
2270
2285
  }
@@ -2295,9 +2310,9 @@ var PromptClient = class extends ApiClient7 {
2295
2310
  };
2296
2311
 
2297
2312
  // src/RelationshipClient.ts
2298
- import { ApiClient as ApiClient8 } from "@uniformdev/context/api";
2313
+ import { ApiClient as ApiClient9 } from "@uniformdev/context/api";
2299
2314
  var RELATIONSHIPS_URL = "/api/v1/relationships";
2300
- var RelationshipClient = class extends ApiClient8 {
2315
+ var RelationshipClient = class extends ApiClient9 {
2301
2316
  constructor(options) {
2302
2317
  super(options);
2303
2318
  this.get = async (options) => {
@@ -2309,9 +2324,9 @@ var RelationshipClient = class extends ApiClient8 {
2309
2324
  };
2310
2325
 
2311
2326
  // src/ReleaseClient.ts
2312
- import { ApiClient as ApiClient9 } from "@uniformdev/context/api";
2327
+ import { ApiClient as ApiClient10 } from "@uniformdev/context/api";
2313
2328
  var releasesUrl = "/api/v1/releases";
2314
- var ReleaseClient = class extends ApiClient9 {
2329
+ var ReleaseClient = class extends ApiClient10 {
2315
2330
  constructor(options) {
2316
2331
  super(options);
2317
2332
  }
@@ -2351,21 +2366,21 @@ var ReleaseClient = class extends ApiClient9 {
2351
2366
  };
2352
2367
 
2353
2368
  // src/ReleaseContentsClient.ts
2354
- import { ApiClient as ApiClient10 } from "@uniformdev/context/api";
2355
- var releaseContentsUrl = "/api/v1/release-contents";
2356
- var ReleaseContentsClient = class extends ApiClient10 {
2369
+ import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
2370
+ var releaseContentsUrl2 = "/api/v1/release-contents";
2371
+ var ReleaseContentsClient = class extends ApiClient11 {
2357
2372
  constructor(options) {
2358
2373
  super(options);
2359
2374
  }
2360
2375
  /** Fetches all entities added to a release */
2361
2376
  async get(options) {
2362
2377
  const { projectId } = this.options;
2363
- const fetchUri = this.createUrl(releaseContentsUrl, { ...options, projectId });
2378
+ const fetchUri = this.createUrl(releaseContentsUrl2, { ...options, projectId });
2364
2379
  return await this.apiClient(fetchUri);
2365
2380
  }
2366
2381
  /** Removes a release content from a release */
2367
2382
  async remove(body) {
2368
- const fetchUri = this.createUrl(releaseContentsUrl);
2383
+ const fetchUri = this.createUrl(releaseContentsUrl2);
2369
2384
  await this.apiClient(fetchUri, {
2370
2385
  method: "DELETE",
2371
2386
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -2375,9 +2390,9 @@ var ReleaseContentsClient = class extends ApiClient10 {
2375
2390
  };
2376
2391
 
2377
2392
  // src/RouteClient.ts
2378
- import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
2393
+ import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
2379
2394
  var ROUTE_URL = "/api/v1/route";
2380
- var RouteClient = class extends ApiClient11 {
2395
+ var RouteClient = class extends ApiClient12 {
2381
2396
  constructor(options) {
2382
2397
  var _a;
2383
2398
  if (!options.limitPolicy) {
@@ -2747,9 +2762,9 @@ function handleRichTextNodeBinding(object, options) {
2747
2762
  import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
2748
2763
 
2749
2764
  // src/WorkflowClient.ts
2750
- import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
2765
+ import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
2751
2766
  var workflowsUrl = "/api/v1/workflows";
2752
- var WorkflowClient = class extends ApiClient12 {
2767
+ var WorkflowClient = class extends ApiClient13 {
2753
2768
  constructor(options) {
2754
2769
  super(options);
2755
2770
  }
@@ -2823,6 +2838,7 @@ export {
2823
2838
  EDGE_MIN_CACHE_TTL,
2824
2839
  EMPTY_COMPOSITION,
2825
2840
  EnhancerBuilder,
2841
+ EntityReleasesClient,
2826
2842
  IN_CONTEXT_EDITOR_COMPONENT_END_ROLE,
2827
2843
  IN_CONTEXT_EDITOR_COMPONENT_START_ROLE,
2828
2844
  IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM,
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: () => import_api14.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,
@@ -318,6 +318,7 @@ __export(src_exports, {
318
318
  EDGE_MIN_CACHE_TTL: () => EDGE_MIN_CACHE_TTL,
319
319
  EMPTY_COMPOSITION: () => EMPTY_COMPOSITION,
320
320
  EnhancerBuilder: () => EnhancerBuilder,
321
+ EntityReleasesClient: () => EntityReleasesClient,
321
322
  IN_CONTEXT_EDITOR_COMPONENT_END_ROLE: () => IN_CONTEXT_EDITOR_COMPONENT_END_ROLE,
322
323
  IN_CONTEXT_EDITOR_COMPONENT_START_ROLE: () => IN_CONTEXT_EDITOR_COMPONENT_START_ROLE,
323
324
  IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM: () => IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM,
@@ -1978,10 +1979,25 @@ function walkComponentTree(component, visitor, initialContext) {
1978
1979
  } while (componentQueue.length > 0);
1979
1980
  }
1980
1981
 
1981
- // src/LocaleClient.ts
1982
+ // src/EntityReleasesClient.ts
1982
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");
1983
1999
  var localesUrl = "/api/v1/locales";
1984
- var LocaleClient = class extends import_api7.ApiClient {
2000
+ var LocaleClient = class extends import_api8.ApiClient {
1985
2001
  constructor(options) {
1986
2002
  super(options);
1987
2003
  }
@@ -2399,9 +2415,9 @@ function subscribeToComposition({
2399
2415
  }
2400
2416
 
2401
2417
  // src/PromptClient.ts
2402
- var import_api8 = require("@uniformdev/context/api");
2418
+ var import_api9 = require("@uniformdev/context/api");
2403
2419
  var PromptsUrl = "/api/v1/prompts";
2404
- var PromptClient = class extends import_api8.ApiClient {
2420
+ var PromptClient = class extends import_api9.ApiClient {
2405
2421
  constructor(options) {
2406
2422
  super(options);
2407
2423
  }
@@ -2432,9 +2448,9 @@ var PromptClient = class extends import_api8.ApiClient {
2432
2448
  };
2433
2449
 
2434
2450
  // src/RelationshipClient.ts
2435
- var import_api9 = require("@uniformdev/context/api");
2451
+ var import_api10 = require("@uniformdev/context/api");
2436
2452
  var RELATIONSHIPS_URL = "/api/v1/relationships";
2437
- var RelationshipClient = class extends import_api9.ApiClient {
2453
+ var RelationshipClient = class extends import_api10.ApiClient {
2438
2454
  constructor(options) {
2439
2455
  super(options);
2440
2456
  this.get = async (options) => {
@@ -2446,9 +2462,9 @@ var RelationshipClient = class extends import_api9.ApiClient {
2446
2462
  };
2447
2463
 
2448
2464
  // src/ReleaseClient.ts
2449
- var import_api10 = require("@uniformdev/context/api");
2465
+ var import_api11 = require("@uniformdev/context/api");
2450
2466
  var releasesUrl = "/api/v1/releases";
2451
- var ReleaseClient = class extends import_api10.ApiClient {
2467
+ var ReleaseClient = class extends import_api11.ApiClient {
2452
2468
  constructor(options) {
2453
2469
  super(options);
2454
2470
  }
@@ -2488,21 +2504,21 @@ var ReleaseClient = class extends import_api10.ApiClient {
2488
2504
  };
2489
2505
 
2490
2506
  // 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 {
2507
+ var import_api12 = require("@uniformdev/context/api");
2508
+ var releaseContentsUrl2 = "/api/v1/release-contents";
2509
+ var ReleaseContentsClient = class extends import_api12.ApiClient {
2494
2510
  constructor(options) {
2495
2511
  super(options);
2496
2512
  }
2497
2513
  /** Fetches all entities added to a release */
2498
2514
  async get(options) {
2499
2515
  const { projectId } = this.options;
2500
- const fetchUri = this.createUrl(releaseContentsUrl, { ...options, projectId });
2516
+ const fetchUri = this.createUrl(releaseContentsUrl2, { ...options, projectId });
2501
2517
  return await this.apiClient(fetchUri);
2502
2518
  }
2503
2519
  /** Removes a release content from a release */
2504
2520
  async remove(body) {
2505
- const fetchUri = this.createUrl(releaseContentsUrl);
2521
+ const fetchUri = this.createUrl(releaseContentsUrl2);
2506
2522
  await this.apiClient(fetchUri, {
2507
2523
  method: "DELETE",
2508
2524
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -2512,9 +2528,9 @@ var ReleaseContentsClient = class extends import_api11.ApiClient {
2512
2528
  };
2513
2529
 
2514
2530
  // src/RouteClient.ts
2515
- var import_api12 = require("@uniformdev/context/api");
2531
+ var import_api13 = require("@uniformdev/context/api");
2516
2532
  var ROUTE_URL = "/api/v1/route";
2517
- var RouteClient = class extends import_api12.ApiClient {
2533
+ var RouteClient = class extends import_api13.ApiClient {
2518
2534
  constructor(options) {
2519
2535
  var _a;
2520
2536
  if (!options.limitPolicy) {
@@ -2881,12 +2897,12 @@ function handleRichTextNodeBinding(object, options) {
2881
2897
  }
2882
2898
 
2883
2899
  // src/index.ts
2884
- var import_api14 = require("@uniformdev/context/api");
2900
+ var import_api15 = require("@uniformdev/context/api");
2885
2901
 
2886
2902
  // src/WorkflowClient.ts
2887
- var import_api13 = require("@uniformdev/context/api");
2903
+ var import_api14 = require("@uniformdev/context/api");
2888
2904
  var workflowsUrl = "/api/v1/workflows";
2889
- var WorkflowClient = class extends import_api13.ApiClient {
2905
+ var WorkflowClient = class extends import_api14.ApiClient {
2890
2906
  constructor(options) {
2891
2907
  super(options);
2892
2908
  }
@@ -2917,7 +2933,7 @@ var WorkflowClient = class extends import_api13.ApiClient {
2917
2933
  };
2918
2934
 
2919
2935
  // src/index.ts
2920
- var CanvasClientError = import_api14.ApiClientError;
2936
+ var CanvasClientError = import_api15.ApiClientError;
2921
2937
  // Annotate the CommonJS export names for ESM import in node:
2922
2938
  0 && (module.exports = {
2923
2939
  ASSETS_SOURCE_CUSTOM_URL,
@@ -2961,6 +2977,7 @@ var CanvasClientError = import_api14.ApiClientError;
2961
2977
  EDGE_MIN_CACHE_TTL,
2962
2978
  EMPTY_COMPOSITION,
2963
2979
  EnhancerBuilder,
2980
+ EntityReleasesClient,
2964
2981
  IN_CONTEXT_EDITOR_COMPONENT_END_ROLE,
2965
2982
  IN_CONTEXT_EDITOR_COMPONENT_START_ROLE,
2966
2983
  IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM,
package/dist/index.mjs CHANGED
@@ -1841,10 +1841,25 @@ function walkComponentTree(component, visitor, initialContext) {
1841
1841
  } while (componentQueue.length > 0);
1842
1842
  }
1843
1843
 
1844
- // src/LocaleClient.ts
1844
+ // src/EntityReleasesClient.ts
1845
1845
  import { ApiClient as ApiClient6 } from "@uniformdev/context/api";
1846
+ var releaseContentsUrl = "/api/v1/entity-releases";
1847
+ var EntityReleasesClient = class extends ApiClient6 {
1848
+ constructor(options) {
1849
+ super(options);
1850
+ }
1851
+ /** Fetches entity across all releases (and base) */
1852
+ async get(options) {
1853
+ const { projectId } = this.options;
1854
+ const fetchUri = this.createUrl(releaseContentsUrl, { ...options, projectId });
1855
+ return await this.apiClient(fetchUri);
1856
+ }
1857
+ };
1858
+
1859
+ // src/LocaleClient.ts
1860
+ import { ApiClient as ApiClient7 } from "@uniformdev/context/api";
1846
1861
  var localesUrl = "/api/v1/locales";
1847
- var LocaleClient = class extends ApiClient6 {
1862
+ var LocaleClient = class extends ApiClient7 {
1848
1863
  constructor(options) {
1849
1864
  super(options);
1850
1865
  }
@@ -2262,9 +2277,9 @@ function subscribeToComposition({
2262
2277
  }
2263
2278
 
2264
2279
  // src/PromptClient.ts
2265
- import { ApiClient as ApiClient7 } from "@uniformdev/context/api";
2280
+ import { ApiClient as ApiClient8 } from "@uniformdev/context/api";
2266
2281
  var PromptsUrl = "/api/v1/prompts";
2267
- var PromptClient = class extends ApiClient7 {
2282
+ var PromptClient = class extends ApiClient8 {
2268
2283
  constructor(options) {
2269
2284
  super(options);
2270
2285
  }
@@ -2295,9 +2310,9 @@ var PromptClient = class extends ApiClient7 {
2295
2310
  };
2296
2311
 
2297
2312
  // src/RelationshipClient.ts
2298
- import { ApiClient as ApiClient8 } from "@uniformdev/context/api";
2313
+ import { ApiClient as ApiClient9 } from "@uniformdev/context/api";
2299
2314
  var RELATIONSHIPS_URL = "/api/v1/relationships";
2300
- var RelationshipClient = class extends ApiClient8 {
2315
+ var RelationshipClient = class extends ApiClient9 {
2301
2316
  constructor(options) {
2302
2317
  super(options);
2303
2318
  this.get = async (options) => {
@@ -2309,9 +2324,9 @@ var RelationshipClient = class extends ApiClient8 {
2309
2324
  };
2310
2325
 
2311
2326
  // src/ReleaseClient.ts
2312
- import { ApiClient as ApiClient9 } from "@uniformdev/context/api";
2327
+ import { ApiClient as ApiClient10 } from "@uniformdev/context/api";
2313
2328
  var releasesUrl = "/api/v1/releases";
2314
- var ReleaseClient = class extends ApiClient9 {
2329
+ var ReleaseClient = class extends ApiClient10 {
2315
2330
  constructor(options) {
2316
2331
  super(options);
2317
2332
  }
@@ -2351,21 +2366,21 @@ var ReleaseClient = class extends ApiClient9 {
2351
2366
  };
2352
2367
 
2353
2368
  // src/ReleaseContentsClient.ts
2354
- import { ApiClient as ApiClient10 } from "@uniformdev/context/api";
2355
- var releaseContentsUrl = "/api/v1/release-contents";
2356
- var ReleaseContentsClient = class extends ApiClient10 {
2369
+ import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
2370
+ var releaseContentsUrl2 = "/api/v1/release-contents";
2371
+ var ReleaseContentsClient = class extends ApiClient11 {
2357
2372
  constructor(options) {
2358
2373
  super(options);
2359
2374
  }
2360
2375
  /** Fetches all entities added to a release */
2361
2376
  async get(options) {
2362
2377
  const { projectId } = this.options;
2363
- const fetchUri = this.createUrl(releaseContentsUrl, { ...options, projectId });
2378
+ const fetchUri = this.createUrl(releaseContentsUrl2, { ...options, projectId });
2364
2379
  return await this.apiClient(fetchUri);
2365
2380
  }
2366
2381
  /** Removes a release content from a release */
2367
2382
  async remove(body) {
2368
- const fetchUri = this.createUrl(releaseContentsUrl);
2383
+ const fetchUri = this.createUrl(releaseContentsUrl2);
2369
2384
  await this.apiClient(fetchUri, {
2370
2385
  method: "DELETE",
2371
2386
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -2375,9 +2390,9 @@ var ReleaseContentsClient = class extends ApiClient10 {
2375
2390
  };
2376
2391
 
2377
2392
  // src/RouteClient.ts
2378
- import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
2393
+ import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
2379
2394
  var ROUTE_URL = "/api/v1/route";
2380
- var RouteClient = class extends ApiClient11 {
2395
+ var RouteClient = class extends ApiClient12 {
2381
2396
  constructor(options) {
2382
2397
  var _a;
2383
2398
  if (!options.limitPolicy) {
@@ -2747,9 +2762,9 @@ function handleRichTextNodeBinding(object, options) {
2747
2762
  import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
2748
2763
 
2749
2764
  // src/WorkflowClient.ts
2750
- import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
2765
+ import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
2751
2766
  var workflowsUrl = "/api/v1/workflows";
2752
- var WorkflowClient = class extends ApiClient12 {
2767
+ var WorkflowClient = class extends ApiClient13 {
2753
2768
  constructor(options) {
2754
2769
  super(options);
2755
2770
  }
@@ -2823,6 +2838,7 @@ export {
2823
2838
  EDGE_MIN_CACHE_TTL,
2824
2839
  EMPTY_COMPOSITION,
2825
2840
  EnhancerBuilder,
2841
+ EntityReleasesClient,
2826
2842
  IN_CONTEXT_EDITOR_COMPONENT_END_ROLE,
2827
2843
  IN_CONTEXT_EDITOR_COMPONENT_START_ROLE,
2828
2844
  IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "19.158.0",
3
+ "version": "19.159.1-alpha.16+112313047e",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -38,8 +38,8 @@
38
38
  "pusher-js": "8.2.0"
39
39
  },
40
40
  "dependencies": {
41
- "@uniformdev/assets": "19.158.0",
42
- "@uniformdev/context": "19.158.0",
41
+ "@uniformdev/assets": "19.159.1-alpha.16+112313047e",
42
+ "@uniformdev/context": "19.159.1-alpha.16+112313047e",
43
43
  "immer": "10.0.4"
44
44
  },
45
45
  "files": [
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "f0be15ed3518c8d3d02e320d9b9a2f5175d30d1b"
51
+ "gitHead": "112313047e98c7a1c0045ea1c5d01a4c74b29871"
52
52
  }