@storybook/html-vite 9.2.0-alpha.3 → 10.0.0-beta.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/README.md +3 -1
- package/dist/_node-chunks/chunk-K4JDZ52R.js +17 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/node/index.d.ts +22 -4
- package/dist/node/index.js +23 -1
- package/dist/preset.js +21 -1
- package/package.json +19 -34
- package/preset.js +1 -1
- package/dist/index.mjs +0 -1
- package/dist/node/index.mjs +0 -3
- package/dist/preset.d.ts +0 -5
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
# Storybook for HTML
|
|
2
2
|
|
|
3
|
-
See [documentation](https://storybook.js.org/docs) for installation instructions, usage examples, APIs, and more.
|
|
3
|
+
See [documentation](https://storybook.js.org/docs?ref=readme) for installation instructions, usage examples, APIs, and more.
|
|
4
|
+
|
|
5
|
+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_klrjhhgvpym from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_klrjhhgvpym from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_klrjhhgvpym from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_klrjhhgvpym.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_klrjhhgvpym.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_klrjhhgvpym.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
__name
|
|
17
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -22,4 +22,4 @@ type StorybookConfigFramework = {
|
|
|
22
22
|
/** The interface for Storybook configuration in `main.ts` files. */
|
|
23
23
|
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigVite | keyof StorybookConfigFramework> & StorybookConfigVite & StorybookConfigFramework;
|
|
24
24
|
|
|
25
|
-
export { FrameworkOptions, StorybookConfig };
|
|
25
|
+
export type { FrameworkOptions, StorybookConfig };
|
package/dist/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
// src/index.ts
|
|
2
|
+
export * from "@storybook/html";
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
import { StorybookConfig } from '
|
|
2
|
-
import '@storybook/
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { StorybookConfig as StorybookConfig$1, CompatibleString } from 'storybook/internal/types';
|
|
2
|
+
import { StorybookConfigVite, BuilderOptions } from '@storybook/builder-vite';
|
|
3
|
+
|
|
4
|
+
type FrameworkName = CompatibleString<'@storybook/html-vite'>;
|
|
5
|
+
type BuilderName = CompatibleString<'@storybook/builder-vite'>;
|
|
6
|
+
type FrameworkOptions = {
|
|
7
|
+
builder?: BuilderOptions;
|
|
8
|
+
};
|
|
9
|
+
type StorybookConfigFramework = {
|
|
10
|
+
framework: FrameworkName | {
|
|
11
|
+
name: FrameworkName;
|
|
12
|
+
options: FrameworkOptions;
|
|
13
|
+
};
|
|
14
|
+
core?: StorybookConfig$1['core'] & {
|
|
15
|
+
builder?: BuilderName | {
|
|
16
|
+
name: BuilderName;
|
|
17
|
+
options: BuilderOptions;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
/** The interface for Storybook configuration in `main.ts` files. */
|
|
22
|
+
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigVite | keyof StorybookConfigFramework> & StorybookConfigVite & StorybookConfigFramework;
|
|
5
23
|
|
|
6
24
|
declare function defineMain(config: StorybookConfig): StorybookConfig;
|
|
7
25
|
|
package/dist/node/index.js
CHANGED
|
@@ -1 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import CJS_COMPAT_NODE_URL_klrjhhgvpym from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_klrjhhgvpym from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_klrjhhgvpym from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_klrjhhgvpym.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_klrjhhgvpym.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_klrjhhgvpym.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
__name
|
|
14
|
+
} from "../_node-chunks/chunk-K4JDZ52R.js";
|
|
15
|
+
|
|
16
|
+
// src/node/index.ts
|
|
17
|
+
function defineMain(config) {
|
|
18
|
+
return config;
|
|
19
|
+
}
|
|
20
|
+
__name(defineMain, "defineMain");
|
|
21
|
+
export {
|
|
22
|
+
defineMain
|
|
23
|
+
};
|
package/dist/preset.js
CHANGED
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import CJS_COMPAT_NODE_URL_klrjhhgvpym from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_klrjhhgvpym from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_klrjhhgvpym from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_klrjhhgvpym.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_klrjhhgvpym.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_klrjhhgvpym.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import "./_node-chunks/chunk-K4JDZ52R.js";
|
|
13
|
+
|
|
14
|
+
// src/preset.ts
|
|
15
|
+
var core = {
|
|
16
|
+
builder: import.meta.resolve("@storybook/builder-vite"),
|
|
17
|
+
renderer: import.meta.resolve("@storybook/html/preset")
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
core
|
|
21
|
+
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/html-vite",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Storybook for HTML and Vite: Develop
|
|
3
|
+
"version": "10.0.0-beta.0",
|
|
4
|
+
"description": "Storybook for HTML and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"storybook"
|
|
6
|
+
"storybook",
|
|
7
|
+
"storybook-framework",
|
|
8
|
+
"html",
|
|
9
|
+
"vite",
|
|
10
|
+
"component",
|
|
11
|
+
"components"
|
|
7
12
|
],
|
|
8
13
|
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/frameworks/html-vite",
|
|
9
14
|
"bugs": {
|
|
@@ -19,28 +24,19 @@
|
|
|
19
24
|
"url": "https://opencollective.com/storybook"
|
|
20
25
|
},
|
|
21
26
|
"license": "MIT",
|
|
27
|
+
"type": "module",
|
|
22
28
|
"exports": {
|
|
23
29
|
".": {
|
|
24
30
|
"types": "./dist/index.d.ts",
|
|
25
|
-
"
|
|
26
|
-
"import": "./dist/index.mjs",
|
|
27
|
-
"require": "./dist/index.js"
|
|
28
|
-
},
|
|
29
|
-
"./preset": {
|
|
30
|
-
"types": "./dist/preset.d.ts",
|
|
31
|
-
"require": "./dist/preset.js"
|
|
31
|
+
"default": "./dist/index.js"
|
|
32
32
|
},
|
|
33
33
|
"./node": {
|
|
34
34
|
"types": "./dist/node/index.d.ts",
|
|
35
|
-
"
|
|
36
|
-
"import": "./dist/node/index.mjs",
|
|
37
|
-
"require": "./dist/node/index.js"
|
|
35
|
+
"default": "./dist/node/index.js"
|
|
38
36
|
},
|
|
39
|
-
"./package.json": "./package.json"
|
|
37
|
+
"./package.json": "./package.json",
|
|
38
|
+
"./preset": "./dist/preset.js"
|
|
40
39
|
},
|
|
41
|
-
"main": "dist/index.js",
|
|
42
|
-
"module": "dist/index.mjs",
|
|
43
|
-
"types": "dist/index.d.ts",
|
|
44
40
|
"files": [
|
|
45
41
|
"dist/**/*",
|
|
46
42
|
"template/cli/**/*",
|
|
@@ -50,33 +46,22 @@
|
|
|
50
46
|
"!src/**/*"
|
|
51
47
|
],
|
|
52
48
|
"scripts": {
|
|
53
|
-
"check": "jiti ../../../scripts/
|
|
54
|
-
"prep": "jiti ../../../scripts/
|
|
49
|
+
"check": "jiti ../../../scripts/check/check-package.ts",
|
|
50
|
+
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
55
51
|
},
|
|
56
52
|
"dependencies": {
|
|
57
|
-
"@storybook/builder-vite": "
|
|
58
|
-
"@storybook/html": "
|
|
53
|
+
"@storybook/builder-vite": "10.0.0-beta.0",
|
|
54
|
+
"@storybook/html": "10.0.0-beta.0"
|
|
59
55
|
},
|
|
60
56
|
"devDependencies": {
|
|
61
57
|
"@types/node": "^22.0.0",
|
|
62
58
|
"typescript": "^5.8.3"
|
|
63
59
|
},
|
|
64
60
|
"peerDependencies": {
|
|
65
|
-
"storybook": "^
|
|
66
|
-
},
|
|
67
|
-
"engines": {
|
|
68
|
-
"node": ">=20.0.0"
|
|
61
|
+
"storybook": "^10.0.0-beta.0"
|
|
69
62
|
},
|
|
70
63
|
"publishConfig": {
|
|
71
64
|
"access": "public"
|
|
72
65
|
},
|
|
73
|
-
"
|
|
74
|
-
"entries": [
|
|
75
|
-
"./src/index.ts",
|
|
76
|
-
"./src/preset.ts",
|
|
77
|
-
"./src/node/index.ts"
|
|
78
|
-
],
|
|
79
|
-
"platform": "node"
|
|
80
|
-
},
|
|
81
|
-
"gitHead": "ce6a1e4a8d5ad69c699021a0b183df89cfc7b684"
|
|
66
|
+
"gitHead": "a8e7fd8a655c69780bc20b9749d2699e45beae16"
|
|
82
67
|
}
|
package/preset.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './dist/preset.js';
|
package/dist/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@storybook/html';
|
package/dist/node/index.mjs
DELETED