@neuralfog/elemix-storybook 0.1.0 → 0.2.1
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.js +1 -1
- package/dist/src/elemixStory.d.ts +1 -1
- package/package.json +6 -4
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@neuralfog/elemix/render");var t=new Map,n=(n,r)=>{let i=r.parameters?.elemix??{};if(i.setup&&!t.has(r.id)){let e=i.setup(r);t.set(r.id,e)}let a=document.createElement(`div`);a.setAttribute(`data-elemix-root`,``);let o=document.getElementById(`storybook-root`)??document.body;return o.innerHTML=``,o.appendChild(a),i.beforeRender?.(r),(0,e.render)(n(r),a),i.afterRender?.(r),a};exports.elemixDecorator=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HtmlTemplate } from '@neuralfog/elemix
|
|
1
|
+
import type { HtmlTemplate } from '@neuralfog/elemix/render';
|
|
2
2
|
import type { StoryContext, Parameters, Meta } from '@storybook/web-components-vite';
|
|
3
3
|
export type ElemixTeardown = () => void;
|
|
4
4
|
export type ElemixParams<TArgs = Record<string, never>> = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neuralfog/elemix-storybook",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "brownhounds",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,16 +18,18 @@
|
|
|
18
18
|
"build-storybook": "storybook build",
|
|
19
19
|
"lint": "tsc --noEmit && biome format && biome lint",
|
|
20
20
|
"lint:fix": "biome format --write . && biome lint --write . && tsc --noEmit",
|
|
21
|
-
"test": "vitest",
|
|
21
|
+
"test": "vitest run",
|
|
22
22
|
"test:watch": "vitest --watch",
|
|
23
23
|
"test:coverage": "vitest run --coverage",
|
|
24
24
|
"release": "npm run clean && npm run build && npm publish --access public"
|
|
25
25
|
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@neuralfog/elemix": "0.5.1"
|
|
28
|
+
},
|
|
26
29
|
"devDependencies": {
|
|
27
30
|
"@chromatic-com/storybook": "5.2.1",
|
|
28
31
|
"@neuralfog/biome-config": "0.1.2",
|
|
29
|
-
"@neuralfog/elemix": "0.
|
|
30
|
-
"@neuralfog/elemix-renderer": "0.4.0",
|
|
32
|
+
"@neuralfog/elemix": "0.5.1",
|
|
31
33
|
"@neuralfog/ts-config": "0.1.2",
|
|
32
34
|
"@storybook/addon-a11y": "10.4.1",
|
|
33
35
|
"@storybook/addon-docs": "10.4.1",
|