@dropsh/plugin-canvas 0.5.3 → 0.5.6
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.
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PluginContext } from "dropsh/plugin";
|
|
2
|
+
/**
|
|
3
|
+
* Fetches the Canvas `Component` config entities and returns a map of
|
|
4
|
+
* component config id (e.g. "sdc.olivero.teaser") to its active version
|
|
5
|
+
* hash. The server validates `component_version` on every component tree
|
|
6
|
+
* item against this hash, so payloads cannot be built without it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function fetchComponentVersions(ctx: PluginContext): Promise<Map<string, string>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dropsh/plugin-canvas",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/plugins/canvas/src/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"dropsh": "*"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dropsh/sdc-client": "0.5.
|
|
20
|
+
"@dropsh/sdc-client": "0.5.6"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.6.0",
|
|
24
24
|
"vitest": "^4.1.8",
|
|
25
|
-
"dropsh": "0.5.
|
|
25
|
+
"dropsh": "0.5.6"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsc",
|