@storybook/web-components-vite 0.0.0-pr-31819-sha-19546591 → 0.0.0-pr-31819-sha-5e701887
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-chunks/chunk-BJYAJRL6.js +16 -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 +22 -1
- package/dist/preset.js +20 -1
- package/package.json +11 -28
- 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
@@ -0,0 +1,16 @@
|
|
1
|
+
import CJS_COMPAT_NODE_URL from 'node:url';
|
2
|
+
import CJS_COMPAT_NODE_PATH from 'node:path';
|
3
|
+
import CJS_COMPAT_NODE_MODULE from "node:module";
|
4
|
+
|
5
|
+
const __filename = CJS_COMPAT_NODE_URL.fileURLToPath(import.meta.url);
|
6
|
+
const __dirname = CJS_COMPAT_NODE_PATH.dirname(__filename);
|
7
|
+
const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
|
8
|
+
// ------------------------------------------------------------
|
9
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
10
|
+
// ------------------------------------------------------------
|
11
|
+
var c = Object.defineProperty;
|
12
|
+
var d = (a, b) => c(a, "name", { value: b, configurable: !0 });
|
13
|
+
|
14
|
+
export {
|
15
|
+
d as a
|
16
|
+
};
|
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/web-components";
|
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/web-components-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,22 @@
|
|
1
|
-
|
1
|
+
import CJS_COMPAT_NODE_URL from 'node:url';
|
2
|
+
import CJS_COMPAT_NODE_PATH from 'node:path';
|
3
|
+
import CJS_COMPAT_NODE_MODULE from "node:module";
|
4
|
+
|
5
|
+
const __filename = CJS_COMPAT_NODE_URL.fileURLToPath(import.meta.url);
|
6
|
+
const __dirname = CJS_COMPAT_NODE_PATH.dirname(__filename);
|
7
|
+
const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
|
8
|
+
// ------------------------------------------------------------
|
9
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
10
|
+
// ------------------------------------------------------------
|
11
|
+
import {
|
12
|
+
a as o
|
13
|
+
} from "../_node-chunks/chunk-BJYAJRL6.js";
|
14
|
+
|
15
|
+
// src/node/index.ts
|
16
|
+
function n(t) {
|
17
|
+
return t;
|
18
|
+
}
|
19
|
+
o(n, "defineMain");
|
20
|
+
export {
|
21
|
+
n as defineMain
|
22
|
+
};
|
package/dist/preset.js
CHANGED
@@ -1 +1,20 @@
|
|
1
|
-
|
1
|
+
import CJS_COMPAT_NODE_URL from 'node:url';
|
2
|
+
import CJS_COMPAT_NODE_PATH from 'node:path';
|
3
|
+
import CJS_COMPAT_NODE_MODULE from "node:module";
|
4
|
+
|
5
|
+
const __filename = CJS_COMPAT_NODE_URL.fileURLToPath(import.meta.url);
|
6
|
+
const __dirname = CJS_COMPAT_NODE_PATH.dirname(__filename);
|
7
|
+
const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
|
8
|
+
// ------------------------------------------------------------
|
9
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
10
|
+
// ------------------------------------------------------------
|
11
|
+
import "./_node-chunks/chunk-BJYAJRL6.js";
|
12
|
+
|
13
|
+
// src/preset.ts
|
14
|
+
var e = {
|
15
|
+
builder: import.meta.resolve("@storybook/builder-vite"),
|
16
|
+
renderer: import.meta.resolve("@storybook/web-components/preset")
|
17
|
+
};
|
18
|
+
export {
|
19
|
+
e as core
|
20
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/web-components-vite",
|
3
|
-
"version": "0.0.0-pr-31819-sha-
|
3
|
+
"version": "0.0.0-pr-31819-sha-5e701887",
|
4
4
|
"description": "Storybook for web-components and Vite: Develop Web Components in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -19,28 +19,19 @@
|
|
19
19
|
"url": "https://opencollective.com/storybook"
|
20
20
|
},
|
21
21
|
"license": "MIT",
|
22
|
+
"type": "module",
|
22
23
|
"exports": {
|
23
24
|
".": {
|
24
25
|
"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"
|
26
|
+
"default": "./dist/index.js"
|
32
27
|
},
|
33
28
|
"./node": {
|
34
29
|
"types": "./dist/node/index.d.ts",
|
35
|
-
"
|
36
|
-
"import": "./dist/node/index.mjs",
|
37
|
-
"require": "./dist/node/index.js"
|
30
|
+
"default": "./dist/node/index.js"
|
38
31
|
},
|
39
|
-
"./package.json": "./package.json"
|
32
|
+
"./package.json": "./package.json",
|
33
|
+
"./preset": "./dist/preset.js"
|
40
34
|
},
|
41
|
-
"main": "dist/index.js",
|
42
|
-
"module": "dist/index.mjs",
|
43
|
-
"types": "dist/index.d.ts",
|
44
35
|
"files": [
|
45
36
|
"dist/**/*",
|
46
37
|
"template/**/*",
|
@@ -51,29 +42,21 @@
|
|
51
42
|
],
|
52
43
|
"scripts": {
|
53
44
|
"check": "jiti ../../../scripts/check/check-package.ts",
|
54
|
-
"prep": "jiti ../../../scripts/
|
45
|
+
"prep": "jiti ../../../scripts/build/build-package.ts"
|
55
46
|
},
|
56
47
|
"dependencies": {
|
57
|
-
"@storybook/builder-vite": "0.0.0-pr-31819-sha-
|
58
|
-
"@storybook/web-components": "0.0.0-pr-31819-sha-
|
48
|
+
"@storybook/builder-vite": "0.0.0-pr-31819-sha-5e701887",
|
49
|
+
"@storybook/web-components": "0.0.0-pr-31819-sha-5e701887"
|
59
50
|
},
|
60
51
|
"devDependencies": {
|
61
52
|
"@types/node": "^22.0.0",
|
62
53
|
"typescript": "^5.8.3"
|
63
54
|
},
|
64
55
|
"peerDependencies": {
|
65
|
-
"storybook": "^0.0.0-pr-31819-sha-
|
56
|
+
"storybook": "^0.0.0-pr-31819-sha-5e701887"
|
66
57
|
},
|
67
58
|
"publishConfig": {
|
68
59
|
"access": "public"
|
69
60
|
},
|
70
|
-
"
|
71
|
-
"entries": [
|
72
|
-
"./src/node/index.ts",
|
73
|
-
"./src/index.ts",
|
74
|
-
"./src/preset.ts"
|
75
|
-
],
|
76
|
-
"platform": "node"
|
77
|
-
},
|
78
|
-
"gitHead": "a6e7fd8a655c69780bc20b9749c2699e44beae78"
|
61
|
+
"gitHead": "a0e7fd8a655c69780bc20b9749c2699e45beae18"
|
79
62
|
}
|
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/web-components';
|
package/dist/node/index.mjs
DELETED