@uniformdev/canvas 19.65.1-alpha.4 → 19.66.1
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 +1 -6
- package/dist/index.d.ts +1 -6
- package/dist/index.esm.js +4 -14
- package/dist/index.js +4 -14
- package/dist/index.mjs +4 -14
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
@@ -12860,12 +12860,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
12860
12860
|
private edgeApiHost;
|
12861
12861
|
constructor(options: CanvasClientOptions);
|
12862
12862
|
/** Fetches lists of Canvas compositions, optionally by type */
|
12863
|
-
getCompositionList(
|
12864
|
-
resolveData: true;
|
12865
|
-
diagnostics?: boolean;
|
12866
|
-
} | {
|
12867
|
-
resolveData?: false;
|
12868
|
-
})): Promise<{
|
12863
|
+
getCompositionList(options?: Omit<CompositionGetParameters, 'projectId' | 'componentId' | 'compositionId' | 'slug'>): Promise<{
|
12869
12864
|
compositions: {
|
12870
12865
|
state: number;
|
12871
12866
|
uiStatus?: "Draft" | "Modified" | "Published" | "Orphan" | "Previous" | "Unknown" | undefined;
|
package/dist/index.d.ts
CHANGED
@@ -12860,12 +12860,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
12860
12860
|
private edgeApiHost;
|
12861
12861
|
constructor(options: CanvasClientOptions);
|
12862
12862
|
/** Fetches lists of Canvas compositions, optionally by type */
|
12863
|
-
getCompositionList(
|
12864
|
-
resolveData: true;
|
12865
|
-
diagnostics?: boolean;
|
12866
|
-
} | {
|
12867
|
-
resolveData?: false;
|
12868
|
-
})): Promise<{
|
12863
|
+
getCompositionList(options?: Omit<CompositionGetParameters, 'projectId' | 'componentId' | 'compositionId' | 'slug'>): Promise<{
|
12869
12864
|
compositions: {
|
12870
12865
|
state: number;
|
12871
12866
|
uiStatus?: "Draft" | "Modified" | "Published" | "Orphan" | "Previous" | "Unknown" | undefined;
|
package/dist/index.esm.js
CHANGED
@@ -478,20 +478,10 @@ var CanvasClient = class extends ApiClient {
|
|
478
478
|
this.edgeApiHost = (_a = options.edgeApiHost) != null ? _a : "https://uniform.global";
|
479
479
|
}
|
480
480
|
/** Fetches lists of Canvas compositions, optionally by type */
|
481
|
-
async getCompositionList(
|
481
|
+
async getCompositionList(options) {
|
482
482
|
const { projectId } = this.options;
|
483
|
-
const
|
484
|
-
|
485
|
-
const fetchUri = this.createUrl(CANVAS_URL, { ...originParams, projectId });
|
486
|
-
return this.apiClient(fetchUri);
|
487
|
-
}
|
488
|
-
const edgeParams = {
|
489
|
-
...originParams,
|
490
|
-
projectId,
|
491
|
-
...params.diagnostics ? { diagnostics: "true" } : {}
|
492
|
-
};
|
493
|
-
const edgeUrl = this.createUrl("/api/v1/compositions", edgeParams, this.edgeApiHost);
|
494
|
-
return this.apiClient(edgeUrl);
|
483
|
+
const fetchUri = this.createUrl(CANVAS_URL, { ...options, projectId });
|
484
|
+
return await this.apiClient(fetchUri);
|
495
485
|
}
|
496
486
|
getCompositionByNodePath(options) {
|
497
487
|
return this.getOneComposition(options);
|
@@ -556,7 +546,7 @@ var CanvasClient = class extends ApiClient {
|
|
556
546
|
async getComponentDefinitions(options) {
|
557
547
|
const { projectId } = this.options;
|
558
548
|
const fetchUri = this.createUrl("/api/v1/canvas-definitions", { ...options, projectId });
|
559
|
-
return this.apiClient(fetchUri);
|
549
|
+
return await this.apiClient(fetchUri);
|
560
550
|
}
|
561
551
|
/** Updates or creates a Canvas component definition */
|
562
552
|
async updateComponentDefinition(body) {
|
package/dist/index.js
CHANGED
@@ -590,20 +590,10 @@ var CanvasClient = class extends import_api2.ApiClient {
|
|
590
590
|
this.edgeApiHost = (_a = options.edgeApiHost) != null ? _a : "https://uniform.global";
|
591
591
|
}
|
592
592
|
/** Fetches lists of Canvas compositions, optionally by type */
|
593
|
-
async getCompositionList(
|
593
|
+
async getCompositionList(options) {
|
594
594
|
const { projectId } = this.options;
|
595
|
-
const
|
596
|
-
|
597
|
-
const fetchUri = this.createUrl(CANVAS_URL, { ...originParams, projectId });
|
598
|
-
return this.apiClient(fetchUri);
|
599
|
-
}
|
600
|
-
const edgeParams = {
|
601
|
-
...originParams,
|
602
|
-
projectId,
|
603
|
-
...params.diagnostics ? { diagnostics: "true" } : {}
|
604
|
-
};
|
605
|
-
const edgeUrl = this.createUrl("/api/v1/compositions", edgeParams, this.edgeApiHost);
|
606
|
-
return this.apiClient(edgeUrl);
|
595
|
+
const fetchUri = this.createUrl(CANVAS_URL, { ...options, projectId });
|
596
|
+
return await this.apiClient(fetchUri);
|
607
597
|
}
|
608
598
|
getCompositionByNodePath(options) {
|
609
599
|
return this.getOneComposition(options);
|
@@ -668,7 +658,7 @@ var CanvasClient = class extends import_api2.ApiClient {
|
|
668
658
|
async getComponentDefinitions(options) {
|
669
659
|
const { projectId } = this.options;
|
670
660
|
const fetchUri = this.createUrl("/api/v1/canvas-definitions", { ...options, projectId });
|
671
|
-
return this.apiClient(fetchUri);
|
661
|
+
return await this.apiClient(fetchUri);
|
672
662
|
}
|
673
663
|
/** Updates or creates a Canvas component definition */
|
674
664
|
async updateComponentDefinition(body) {
|
package/dist/index.mjs
CHANGED
@@ -478,20 +478,10 @@ var CanvasClient = class extends ApiClient {
|
|
478
478
|
this.edgeApiHost = (_a = options.edgeApiHost) != null ? _a : "https://uniform.global";
|
479
479
|
}
|
480
480
|
/** Fetches lists of Canvas compositions, optionally by type */
|
481
|
-
async getCompositionList(
|
481
|
+
async getCompositionList(options) {
|
482
482
|
const { projectId } = this.options;
|
483
|
-
const
|
484
|
-
|
485
|
-
const fetchUri = this.createUrl(CANVAS_URL, { ...originParams, projectId });
|
486
|
-
return this.apiClient(fetchUri);
|
487
|
-
}
|
488
|
-
const edgeParams = {
|
489
|
-
...originParams,
|
490
|
-
projectId,
|
491
|
-
...params.diagnostics ? { diagnostics: "true" } : {}
|
492
|
-
};
|
493
|
-
const edgeUrl = this.createUrl("/api/v1/compositions", edgeParams, this.edgeApiHost);
|
494
|
-
return this.apiClient(edgeUrl);
|
483
|
+
const fetchUri = this.createUrl(CANVAS_URL, { ...options, projectId });
|
484
|
+
return await this.apiClient(fetchUri);
|
495
485
|
}
|
496
486
|
getCompositionByNodePath(options) {
|
497
487
|
return this.getOneComposition(options);
|
@@ -556,7 +546,7 @@ var CanvasClient = class extends ApiClient {
|
|
556
546
|
async getComponentDefinitions(options) {
|
557
547
|
const { projectId } = this.options;
|
558
548
|
const fetchUri = this.createUrl("/api/v1/canvas-definitions", { ...options, projectId });
|
559
|
-
return this.apiClient(fetchUri);
|
549
|
+
return await this.apiClient(fetchUri);
|
560
550
|
}
|
561
551
|
/** Updates or creates a Canvas component definition */
|
562
552
|
async updateComponentDefinition(body) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.66.1",
|
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,7 +38,7 @@
|
|
38
38
|
"pusher-js": "8.2.0"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@uniformdev/context": "19.
|
41
|
+
"@uniformdev/context": "19.66.1",
|
42
42
|
"immer": "9.0.21"
|
43
43
|
},
|
44
44
|
"files": [
|
@@ -47,5 +47,5 @@
|
|
47
47
|
"publishConfig": {
|
48
48
|
"access": "public"
|
49
49
|
},
|
50
|
-
"gitHead": "
|
50
|
+
"gitHead": "80e9cf7f60f95245269938596f00813b48a304f3"
|
51
51
|
}
|