@plitzi/sdk-plugins 0.33.2 → 0.34.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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @plitzi/sdk-plugins
2
2
 
3
+ ## 0.34.0
4
+
5
+ ### Minor Changes
6
+
7
+ - v0.34.0
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [5aceda0]
12
+ - Updated dependencies
13
+ - Updated dependencies [5aceda0]
14
+ - @plitzi/sdk-shared@0.34.0
15
+
3
16
  ## 0.33.2
4
17
 
5
18
  ### Patch Changes
@@ -4,45 +4,43 @@ import r from "@plitzi/sdk-shared/helpers/fetchManifest";
4
4
  //#region src/PluginHelper.ts
5
5
  var i = (r, i) => {
6
6
  try {
7
- let { resource: a, settings: o, type: s } = r, { runtime: { scope: c = "", module: l = "" }, definition: { name: u = "Plitzi's Demo Plugin", owner: d = "Plitzi", verified: f = !1, license: p = "MIT", website: m = "https://plitzi.com", backgroundColor: h = "#4422ee", icon: g = "https://cdn.plitzi.com/resources/img/favicon.svg" }, assets: _, assetsSettings: v, pluginSchema: y } = i;
7
+ let { resource: a, settings: o, type: s } = r, { definition: { name: c = "Plitzi's Demo Plugin", owner: l = "Plitzi", verified: u = !1, license: d = "MIT", website: f = "https://plitzi.com", backgroundColor: p = "#4422ee", icon: m = "https://cdn.plitzi.com/resources/img/favicon.svg" }, assets: h, assetsSettings: g, pluginSchema: _ } = i;
8
8
  return Object.values(t(i, "pluginSchema", {})).reduce((t, r) => {
9
- let { definition: b, builder: x, defaultStyle: S, attributes: C } = r, w = [];
10
- return b.type === s && (w = Object.keys(n(y, [s]))), {
9
+ let { definition: v, builder: y, defaultStyle: b, attributes: x } = r, S = [];
10
+ return v.type === s && (S = Object.keys(n(_, [s]))), {
11
11
  ...t,
12
- [b.type]: {
13
- attributes: C,
14
- builder: x,
15
- defaultStyle: S,
16
- definition: b,
12
+ [v.type]: {
13
+ attributes: x,
14
+ builder: y,
15
+ defaultStyle: b,
16
+ definition: v,
17
17
  market: {
18
- owner: d,
19
- verified: f,
20
- license: p,
21
- website: m,
22
- backgroundColor: h,
23
- icon: g,
24
- category: u
18
+ owner: l,
19
+ verified: u,
20
+ license: d,
21
+ website: f,
22
+ backgroundColor: p,
23
+ icon: m,
24
+ category: c
25
25
  },
26
26
  resource: a,
27
- isMain: b.type === s,
27
+ isMain: v.type === s,
28
28
  manifest: i,
29
29
  type: s,
30
30
  settings: o,
31
- assetsSettings: Object.values(v).filter(({ src: e }) => e ? [
31
+ assetsSettings: Object.values(g).filter(({ src: e }) => e ? [
32
32
  ".css",
33
33
  ".js",
34
34
  ".mjs",
35
35
  ".cjs"
36
36
  ].some((t) => e.endsWith(t)) : !1).map((t) => e(a, t, !0)),
37
- assets: Object.values(_).filter(({ src: e }) => e ? [
37
+ assets: Object.values(h).filter(({ src: e }) => e ? [
38
38
  ".css",
39
39
  ".js",
40
40
  ".mjs",
41
41
  ".cjs"
42
42
  ].some((t) => e.endsWith(t)) : !1).map((t) => e(a, t)),
43
- scope: c,
44
- module: l,
45
- subPlugins: w
43
+ subPlugins: S
46
44
  }
47
45
  };
48
46
  }, {});
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import e from "./PluginsContext.mjs";
2
- import { fetchPluginsManifests as t, getStyle as n, pluginParseDefinition as r } from "./PluginHelper.mjs";
3
- export { e as PluginsContext, t as fetchPluginsManifests, n as getStyle, r as pluginParseDefinition };
1
+ import { fetchPluginsManifests as e, getStyle as t, pluginParseDefinition as n } from "./PluginHelper.mjs";
2
+ import r from "./PluginsContext.mjs";
3
+ export { r as PluginsContext, e as fetchPluginsManifests, t as getStyle, n as pluginParseDefinition };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-plugins",
3
- "version": "0.33.2",
3
+ "version": "0.34.0",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist"
@@ -37,12 +37,12 @@
37
37
  "type": "module",
38
38
  "sideEffects": false,
39
39
  "dependencies": {
40
- "@plitzi/sdk-shared": "0.33.2",
40
+ "@plitzi/sdk-shared": "0.34.0",
41
41
  "prop-types": "^15.8.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "eslint": "^9.39.5",
45
45
  "typescript": "^6.0.3",
46
- "vite": "^8.2.1"
46
+ "vite": "^8.3.0"
47
47
  }
48
48
  }