@storybook/builder-vite 8.0.0-beta.0 → 8.0.0-beta.2

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/input/iframe.html CHANGED
@@ -1,44 +1,66 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <!--suppress HtmlUnknownTarget -->
3
3
  <html lang="en">
4
+ <head>
5
+ <meta charset="utf-8" />
6
+ <title>Storybook</title>
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
4
8
 
5
- <head>
6
- <meta charset="utf-8" />
7
- <title>Storybook</title>
8
- <meta name="viewport" content="width=device-width, initial-scale=1" />
9
+ <link
10
+ rel="prefetch"
11
+ href="./sb-common-assets/nunito-sans-regular.woff2"
12
+ as="font"
13
+ type="font/woff2"
14
+ crossorigin
15
+ />
16
+ <link
17
+ rel="prefetch"
18
+ href="./sb-common-assets/nunito-sans-italic.woff2"
19
+ as="font"
20
+ type="font/woff2"
21
+ crossorigin
22
+ />
23
+ <link
24
+ rel="prefetch"
25
+ href="./sb-common-assets/nunito-sans-bold.woff2"
26
+ as="font"
27
+ type="font/woff2"
28
+ crossorigin
29
+ />
30
+ <link
31
+ rel="prefetch"
32
+ href="./sb-common-assets/nunito-sans-bold-italic.woff2"
33
+ as="font"
34
+ type="font/woff2"
35
+ crossorigin
36
+ />
37
+ <link rel="stylesheet" href="./sb-common-assets/fonts.css" />
9
38
 
10
- <link rel="prefetch" href="./sb-common-assets/nunito-sans-regular.woff2" as="font" type="font/woff2" crossorigin />
11
- <link rel="prefetch" href="./sb-common-assets/nunito-sans-italic.woff2" as="font" type="font/woff2" crossorigin />
12
- <link rel="prefetch" href="./sb-common-assets/nunito-sans-bold.woff2" as="font" type="font/woff2" crossorigin />
13
- <link rel="prefetch" href="./sb-common-assets/nunito-sans-bold-italic.woff2" as="font" type="font/woff2" crossorigin />
14
- <link rel="stylesheet" href="./sb-common-assets/fonts.css" />
39
+ <script>
40
+ window.CONFIG_TYPE = '[CONFIG_TYPE HERE]';
41
+ window.LOGLEVEL = '[LOGLEVEL HERE]';
42
+ window.FRAMEWORK_OPTIONS = '[FRAMEWORK_OPTIONS HERE]';
43
+ window.CHANNEL_OPTIONS = '[CHANNEL_OPTIONS HERE]';
44
+ window.FEATURES = '[FEATURES HERE]';
45
+ window.STORIES = '[STORIES HERE]';
46
+ window.DOCS_OPTIONS = '[DOCS_OPTIONS HERE]';
47
+ window.TAGS_OPTIONS = '[TAGS_OPTIONS HERE]';
15
48
 
16
- <script>
17
- window.CONFIG_TYPE = '[CONFIG_TYPE HERE]';
18
- window.LOGLEVEL = '[LOGLEVEL HERE]';
19
- window.FRAMEWORK_OPTIONS = '[FRAMEWORK_OPTIONS HERE]';
20
- window.CHANNEL_OPTIONS = '[CHANNEL_OPTIONS HERE]';
21
- window.FEATURES = '[FEATURES HERE]';
22
- window.STORIES = '[STORIES HERE]';
23
- window.DOCS_OPTIONS = '[DOCS_OPTIONS HERE]';
24
- window.TAGS_OPTIONS = '[TAGS_OPTIONS HERE]';
49
+ ('OTHER_GLOBLALS HERE');
25
50
 
26
- ('OTHER_GLOBLALS HERE');
51
+ // We do this so that "module && module.hot" etc. in Storybook source code
52
+ // doesn't fail (it will simply be disabled)
53
+ window.module = undefined;
54
+ window.global = window;
55
+ </script>
56
+ <!-- [HEAD HTML SNIPPET HERE] -->
57
+ </head>
27
58
 
28
- // We do this so that "module && module.hot" etc. in Storybook source code
29
- // doesn't fail (it will simply be disabled)
30
- window.module = undefined;
31
- window.global = window;
32
- </script>
33
- <!-- [HEAD HTML SNIPPET HERE] -->
34
- </head>
35
-
36
- <body>
37
- <!-- [BODY HTML SNIPPET HERE] -->
38
- <div id="storybook-root"></div>
39
- <div id="storybook-docs"></div>
40
- <script type="module" src="./sb-preview/runtime.js"></script>
41
- <script type="module" src="/virtual:/@storybook/builder-vite/vite-app.js"></script>
42
- </body>
43
-
44
- </html>
59
+ <body>
60
+ <!-- [BODY HTML SNIPPET HERE] -->
61
+ <div id="storybook-root"></div>
62
+ <div id="storybook-docs"></div>
63
+ <script type="module" src="./sb-preview/runtime.js"></script>
64
+ <script type="module" src="/virtual:/@storybook/builder-vite/vite-app.js"></script>
65
+ </body>
66
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/builder-vite",
3
- "version": "8.0.0-beta.0",
3
+ "version": "8.0.0-beta.2",
4
4
  "description": "A plugin to run and build Storybooks with Vite",
5
5
  "homepage": "https://github.com/storybookjs/storybook/tree/next/code/builders/builder-vite/#readme",
6
6
  "bugs": {
@@ -43,21 +43,22 @@
43
43
  "prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@storybook/channels": "8.0.0-beta.0",
47
- "@storybook/client-logger": "8.0.0-beta.0",
48
- "@storybook/core-common": "8.0.0-beta.0",
49
- "@storybook/csf-plugin": "8.0.0-beta.0",
50
- "@storybook/node-logger": "8.0.0-beta.0",
51
- "@storybook/preview": "8.0.0-beta.0",
52
- "@storybook/preview-api": "8.0.0-beta.0",
53
- "@storybook/types": "8.0.0-beta.0",
46
+ "@storybook/channels": "8.0.0-beta.2",
47
+ "@storybook/client-logger": "8.0.0-beta.2",
48
+ "@storybook/core-common": "8.0.0-beta.2",
49
+ "@storybook/csf-plugin": "8.0.0-beta.2",
50
+ "@storybook/node-logger": "8.0.0-beta.2",
51
+ "@storybook/preview": "8.0.0-beta.2",
52
+ "@storybook/preview-api": "8.0.0-beta.2",
53
+ "@storybook/types": "8.0.0-beta.2",
54
54
  "@types/find-cache-dir": "^3.2.1",
55
55
  "browser-assert": "^1.2.1",
56
56
  "es-module-lexer": "^0.9.3",
57
57
  "express": "^4.17.3",
58
58
  "find-cache-dir": "^3.0.0",
59
59
  "fs-extra": "^11.1.0",
60
- "magic-string": "^0.30.0"
60
+ "magic-string": "^0.30.0",
61
+ "ts-dedent": "^2.0.0"
61
62
  },
62
63
  "devDependencies": {
63
64
  "@types/express": "^4.17.13",