@plitzi/sdk-plugins 0.39.3 → 0.39.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.
- package/CHANGELOG.md +24 -0
- package/dist/PluginHelper.d.ts +7 -2
- package/dist/PluginHelper.mjs +4 -4
- package/dist/index.mjs +1 -1
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @plitzi/sdk-plugins
|
|
2
2
|
|
|
3
|
+
## 0.39.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @plitzi/sdk-shared@0.39.6
|
|
8
|
+
|
|
9
|
+
## 0.39.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 4427674: Released with every `@plitzi` package at this version. What changed in each, and what to do when you upgrade, is in
|
|
14
|
+
`@plitzi/cli`'s `CHANGELOG.md`: one copy of the notes, not one per package.
|
|
15
|
+
- Updated dependencies [4427674]
|
|
16
|
+
- @plitzi/sdk-shared@0.39.5
|
|
17
|
+
|
|
18
|
+
## 0.39.4
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 35415a1: Released with every `@plitzi` package at this version. What changed in each, and what to do when you upgrade, is in
|
|
23
|
+
`@plitzi/cli`'s `CHANGELOG.md`: one copy of the notes, not one per package.
|
|
24
|
+
- Updated dependencies [35415a1]
|
|
25
|
+
- @plitzi/sdk-shared@0.39.4
|
|
26
|
+
|
|
3
27
|
## 0.39.3
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/PluginHelper.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { PluginManifest, ComponentDefinition, PluginRaw, Asset } from '@plitzi/sdk-shared';
|
|
1
|
+
import { PluginManifest, ComponentDefinition, ComponentPlugin, PluginRaw, Asset } from '@plitzi/sdk-shared';
|
|
2
2
|
export declare const fetchPluginsManifests: (manifests: string[]) => Promise<Record<string, PluginManifest>>;
|
|
3
3
|
export declare const pluginParseDefinition: (pluginsRaw?: PluginRaw | PluginRaw[]) => Promise<Record<string, ComponentDefinition>>;
|
|
4
|
-
export declare const getStyle: (plugins: Record<string, ComponentDefinition
|
|
4
|
+
export declare const getStyle: (plugins: Record<string, Pick<ComponentDefinition, "assets">>) => Record<string, Asset>;
|
|
5
|
+
/**
|
|
6
|
+
* The stylesheets of the plugins a host hands over in its own code (`origin: 'local-custom'`), as `getStyle` reads a
|
|
7
|
+
* space's: each `link` asset, by its id. The registry holds every component; only those carry stylesheets of their own.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getLocalCustomStyle: (components: Record<string, Pick<ComponentPlugin, "assets" | "origin">>) => Record<string, Asset>;
|
package/dist/PluginHelper.mjs
CHANGED
|
@@ -66,11 +66,11 @@ var i = (r, i) => {
|
|
|
66
66
|
...i(e, o)
|
|
67
67
|
};
|
|
68
68
|
}), n;
|
|
69
|
-
}, s = (e) => Object.values(e).reduce((e,
|
|
69
|
+
}, s = (e) => Object.values(e).reduce((e, t) => ({
|
|
70
70
|
...e,
|
|
71
|
-
...t
|
|
71
|
+
...(Array.isArray(t.assets) ? t.assets : []).filter((e) => e.type === "link").reduce((e, t) => ({
|
|
72
72
|
...e,
|
|
73
73
|
[btoa(t.id)]: t
|
|
74
74
|
}), {})
|
|
75
|
-
}), {});
|
|
76
|
-
export { a as fetchPluginsManifests, s as getStyle, o as pluginParseDefinition };
|
|
75
|
+
}), {}), c = (e) => s(Object.fromEntries(Object.entries(e).filter(([, e]) => e.origin === "local-custom")));
|
|
76
|
+
export { a as fetchPluginsManifests, c as getLocalCustomStyle, s as getStyle, o as pluginParseDefinition };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { fetchPluginsManifests, getStyle, pluginParseDefinition } from "./PluginHelper.mjs";
|
|
1
|
+
export { fetchPluginsManifests, getLocalCustomStyle, getStyle, pluginParseDefinition } from "./PluginHelper.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-plugins",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.6",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -24,17 +24,20 @@
|
|
|
24
24
|
"typecheck": "tsc -p tsconfig.app.json --noEmit --incremental --tsBuildInfoFile .tsbuildinfo/app.tsbuildinfo",
|
|
25
25
|
"build:dev": "vite build --mode development --minify false",
|
|
26
26
|
"build:dev-watch": "vite build --mode development --watch --minify false",
|
|
27
|
-
"build:prod": "vite build"
|
|
27
|
+
"build:prod": "vite build",
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"test:coverage": "vitest run --coverage"
|
|
28
30
|
},
|
|
29
31
|
"type": "module",
|
|
30
32
|
"sideEffects": false,
|
|
31
33
|
"dependencies": {
|
|
32
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
33
|
-
"@plitzi/sdk-shared": "0.39.
|
|
34
|
+
"@plitzi/plitzi-ui": "^1.6.40",
|
|
35
|
+
"@plitzi/sdk-shared": "0.39.6"
|
|
34
36
|
},
|
|
35
37
|
"devDependencies": {
|
|
36
38
|
"eslint": "^9.39.5",
|
|
37
39
|
"typescript": "^6.0.3",
|
|
38
|
-
"vite": "^8.3.
|
|
40
|
+
"vite": "^8.3.8",
|
|
41
|
+
"vitest": "^5.1.0"
|
|
39
42
|
}
|
|
40
43
|
}
|