@aventusjs/storybook 0.0.7 → 0.0.8

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.
Files changed (2) hide show
  1. package/dist/storybook.js +16 -6
  2. package/package.json +2 -1
package/dist/storybook.js CHANGED
@@ -1,11 +1,21 @@
1
- function s(n, o) {
2
- const t = new o();
3
- for (let e in n) {
4
- const r = n[e];
5
- e.startsWith("--") ? t.style.setProperty(e, r) : t[e] = r;
1
+ function c(l, s) {
2
+ const t = new s();
3
+ for (let e in l) {
4
+ const n = l[e];
5
+ if (e.startsWith("--"))
6
+ t.style.setProperty(e, n);
7
+ else if (e.startsWith("@")) {
8
+ const r = document.createElement("template");
9
+ r.innerHTML = n;
10
+ let o = r.content.cloneNode(!0);
11
+ for (let i of o.children)
12
+ i.setAttribute("slot", e.slice(1));
13
+ t.appendChild(o);
14
+ } else
15
+ t[e] = n;
6
16
  }
7
17
  return t;
8
18
  }
9
19
  export {
10
- s as render
20
+ c as render
11
21
  };
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@aventusjs/storybook",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "description": "Storybook type extension for aventusjs",
6
6
  "scripts": {
7
+ "build": "vite build",
7
8
  "deploy": "npm publish --access public"
8
9
  },
9
10
  "author": {