@uniformdev/canvas 19.15.0 → 19.19.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.ts +849 -425
- package/dist/index.esm.js +8 -0
- package/dist/index.js +8 -0
- package/dist/index.mjs +8 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
@@ -479,6 +479,14 @@ var CanvasClient = class extends ApiClient {
|
|
479
479
|
getCompositionById(options) {
|
480
480
|
return this.getOneComposition(options);
|
481
481
|
}
|
482
|
+
/** Fetches historical versions of a composition or pattern */
|
483
|
+
async unstable_getCompositionHistory(options) {
|
484
|
+
const edgeUrl = this.createUrl("/api/v1/canvas-history", {
|
485
|
+
...options,
|
486
|
+
projectId: this.options.projectId
|
487
|
+
});
|
488
|
+
return this.apiClient(edgeUrl);
|
489
|
+
}
|
482
490
|
getOneComposition({
|
483
491
|
skipDataResolution,
|
484
492
|
diagnostics,
|
package/dist/index.js
CHANGED
@@ -562,6 +562,14 @@ var CanvasClient = class extends import_api.ApiClient {
|
|
562
562
|
getCompositionById(options) {
|
563
563
|
return this.getOneComposition(options);
|
564
564
|
}
|
565
|
+
/** Fetches historical versions of a composition or pattern */
|
566
|
+
async unstable_getCompositionHistory(options) {
|
567
|
+
const edgeUrl = this.createUrl("/api/v1/canvas-history", {
|
568
|
+
...options,
|
569
|
+
projectId: this.options.projectId
|
570
|
+
});
|
571
|
+
return this.apiClient(edgeUrl);
|
572
|
+
}
|
565
573
|
getOneComposition({
|
566
574
|
skipDataResolution,
|
567
575
|
diagnostics,
|
package/dist/index.mjs
CHANGED
@@ -479,6 +479,14 @@ var CanvasClient = class extends ApiClient {
|
|
479
479
|
getCompositionById(options) {
|
480
480
|
return this.getOneComposition(options);
|
481
481
|
}
|
482
|
+
/** Fetches historical versions of a composition or pattern */
|
483
|
+
async unstable_getCompositionHistory(options) {
|
484
|
+
const edgeUrl = this.createUrl("/api/v1/canvas-history", {
|
485
|
+
...options,
|
486
|
+
projectId: this.options.projectId
|
487
|
+
});
|
488
|
+
return this.apiClient(edgeUrl);
|
489
|
+
}
|
482
490
|
getOneComposition({
|
483
491
|
skipDataResolution,
|
484
492
|
diagnostics,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.19.0",
|
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.0.1"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@uniformdev/context": "19.
|
41
|
+
"@uniformdev/context": "19.19.0",
|
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": "631d1e21b1303220d80bea12611ea6c98d5fe354"
|
51
51
|
}
|