@storybook/web-components-vite 10.4.0-alpha.1 → 10.4.0-alpha.3
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/node/index.js +6 -6
- package/dist/preset.js +6 -6
- package/package.json +4 -4
- package/template/cli/js/Header.js +10 -8
- package/template/cli/ts/Header.ts +10 -8
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qmtgjw07x9b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qmtgjw07x9b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qmtgjw07x9b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qmtgjw07x9b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qmtgjw07x9b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qmtgjw07x9b.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qmtgjw07x9b from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qmtgjw07x9b from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qmtgjw07x9b from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qmtgjw07x9b.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qmtgjw07x9b.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qmtgjw07x9b.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/web-components-vite",
|
|
3
|
-
"version": "10.4.0-alpha.
|
|
3
|
+
"version": "10.4.0-alpha.3",
|
|
4
4
|
"description": "Storybook for Web Components and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"!src/**/*"
|
|
51
51
|
],
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@storybook/builder-vite": "10.4.0-alpha.
|
|
54
|
-
"@storybook/web-components": "10.4.0-alpha.
|
|
53
|
+
"@storybook/builder-vite": "10.4.0-alpha.3",
|
|
54
|
+
"@storybook/web-components": "10.4.0-alpha.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^22.19.1",
|
|
58
58
|
"typescript": "^5.9.3"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"storybook": "^10.4.0-alpha.
|
|
61
|
+
"storybook": "^10.4.0-alpha.3"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
@@ -26,19 +26,21 @@ export const Header = ({ user, onLogin, onLogout, onCreateAccount }) => html`
|
|
|
26
26
|
<h1>Acme</h1>
|
|
27
27
|
</div>
|
|
28
28
|
<div>
|
|
29
|
-
${
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
${
|
|
30
|
+
user
|
|
31
|
+
? Button({ size: 'small', onClick: onLogout, label: 'Log out' })
|
|
32
|
+
: html`${Button({
|
|
33
|
+
size: 'small',
|
|
34
|
+
onClick: onLogin,
|
|
35
|
+
label: 'Log in',
|
|
36
|
+
})}
|
|
36
37
|
${Button({
|
|
37
38
|
primary: true,
|
|
38
39
|
size: 'small',
|
|
39
40
|
onClick: onCreateAccount,
|
|
40
41
|
label: 'Sign up',
|
|
41
|
-
})}`
|
|
42
|
+
})}`
|
|
43
|
+
}
|
|
42
44
|
</div>
|
|
43
45
|
</div>
|
|
44
46
|
</header>
|
|
@@ -37,19 +37,21 @@ export const Header = ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps
|
|
|
37
37
|
<h1>Acme</h1>
|
|
38
38
|
</div>
|
|
39
39
|
<div>
|
|
40
|
-
${
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
${
|
|
41
|
+
user
|
|
42
|
+
? Button({ size: 'small', onClick: onLogout, label: 'Log out' })
|
|
43
|
+
: html`${Button({
|
|
44
|
+
size: 'small',
|
|
45
|
+
onClick: onLogin,
|
|
46
|
+
label: 'Log in',
|
|
47
|
+
})}
|
|
47
48
|
${Button({
|
|
48
49
|
primary: true,
|
|
49
50
|
size: 'small',
|
|
50
51
|
onClick: onCreateAccount,
|
|
51
52
|
label: 'Sign up',
|
|
52
|
-
})}`
|
|
53
|
+
})}`
|
|
54
|
+
}
|
|
53
55
|
</div>
|
|
54
56
|
</div>
|
|
55
57
|
</header>
|