Skip to content

Commit 94c2324

Browse files
committed
Build artifacts for storybook v5 + .gitignore updates
1 parent 4f1c037 commit 94c2324

30 files changed

Lines changed: 443 additions & 336 deletions

.gitignore

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,20 @@ coverage
88
.tmp
99
.idea
1010
.DS_Store
11-
dist
11+
dist
12+
13+
# Source: https://github.com/storybookjs/storybook/issues/8972#issuecomment-559164304
14+
15+
# Ignore unused language chunks and maps
16+
react-syntax-highlighter_languages_highlight_*.*.bundle.js
17+
react-syntax-highlighter_languages_highlight_*.*.bundle.js.map
18+
vendors~react-syntax-highlighter_languages_highlight_*.*.bundle.js
19+
vendors~react-syntax-highlighter_languages_highlight_*.*.bundle.js.map
20+
21+
# Unignore the language highlighter chunks storybook uses for MDX stories
22+
!react-syntax-highlighter_languages_highlight_jsx.*.bundle.js.map
23+
!react-syntax-highlighter_languages_highlight_bash.*.bundle.js.map
24+
!react-syntax-highlighter_languages_highlight_css.*.bundle.js.map
25+
!react-syntax-highlighter_languages_highlight_html.*.bundle.js.map
26+
!react-syntax-highlighter_languages_highlight_tsx.*.bundle.js.map
27+
!react-syntax-highlighter_languages_highlight_typescript.*.bundle.js.map

docs/favicon.ico

28 KB
Binary file not shown.

docs/iframe.html

Lines changed: 33 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
7-
<title>Storybook</title>
8-
<link rel="shortcut icon" href="favicon.ico?v=1" />
9-
10-
11-
12-
13-
<base target="_parent">
14-
15-
<style>
16-
:not(.sb-show-main) > .sb-main,
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Storybook</title><meta name="viewport" content="width=device-width,initial-scale=1"><base target="_parent"><style>:not(.sb-show-main) > .sb-main,
172
:not(.sb-show-nopreview) > .sb-nopreview,
183
:not(.sb-show-errordisplay) > .sb-errordisplay {
19-
display: none;
4+
display: none;
205
}
216

227
.sb-wrapper {
@@ -26,15 +11,17 @@
2611
left: 0;
2712
right: 0;
2813
padding: 20px;
29-
font-family: -apple-system, ".SFNSText-Regular", "San Francisco", Roboto, "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
14+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
3015
-webkit-font-smoothing: antialiased;
16+
overflow: auto;
3117
}
3218

3319
.sb-heading {
34-
font-size: 20px;
20+
font-size: 14px;
3521
font-weight: 600;
3622
letter-spacing: 0.2px;
3723
margin: 10px 0;
24+
padding-right: 25px;
3825
}
3926

4027
.sb-nopreview {
@@ -55,89 +42,45 @@
5542
}
5643

5744
.sb-errordisplay {
58-
background-color: rgb(187, 49, 49);
59-
color: #FFF;
45+
border: 20px solid rgb(187, 49, 49);
46+
background: #222;
47+
color: #fff;
48+
z-index: 999999;
6049
}
6150

6251
.sb-errordisplay_code {
63-
font-size: 14px;
64-
width: 100vw;
65-
overflow: auto;
52+
padding: 10px;
53+
background: #000;
54+
color: #eee;
55+
font-family: "Operator Mono", "Fira Code Retina", "Fira Code", "FiraCode-Retina", "Andale Mono", "Lucida Console", Consolas, Monaco, monospace;
6656
}
67-
</style>
6857

69-
<script>
70-
if (window.parent !== window) {
71-
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;
72-
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__VUE_DEVTOOLS_GLOBAL_HOOK__;
73-
}
74-
</script>
75-
<style>
76-
.react-code-input input[type="number"]::-webkit-outer-spin-button,
58+
.sb-errordisplay pre {
59+
white-space: pre-wrap;
60+
}</style><script>/* globals window */
61+
/* eslint-disable no-underscore-dangle */
62+
try {
63+
if (window.top !== window) {
64+
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
65+
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.top.__VUE_DEVTOOLS_GLOBAL_HOOK__;
66+
window.top.__VUE_DEVTOOLS_CONTEXT__ = window.document;
67+
}
68+
} catch (e) {
69+
// eslint-disable-next-line no-console
70+
console.warn('unable to connect to top frame for connecting dev tools');
71+
}</script><style>.react-code-input input[type="number"]::-webkit-outer-spin-button,
7772
.react-code-input input[type="number"]::-webkit-inner-spin-button {
7873
-webkit-appearance: none;
7974
margin: 0; }
8075
.react-code-input input[type="number"] {
81-
-moz-appearance: textfield; }
82-
</style>
83-
<!-- Hotjar Tracking Code for https://40818419.github.io/react-code-input/ -->
84-
<script>
85-
(function(h,o,t,j,a,r){
76+
-moz-appearance: textfield; }</style><script>(function(h,o,t,j,a,r){
8677
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
8778
h._hjSettings={hjid:381601,hjsv:5};
8879
a=o.getElementsByTagName('head')[0];
8980
r=o.createElement('script');r.async=1;
9081
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
9182
a.appendChild(r);
92-
})(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');
93-
</script>
94-
95-
96-
</head>
97-
<body>
98-
99-
100-
101-
102-
<div class="sb-nopreview sb-wrapper">
103-
<div class="sb-nopreview_main">
104-
<h1 class="sb-nopreview_heading sb-heading">No Preview</h1>
105-
<p>Sorry, but you either have no stories or none are selected somehow.</p>
106-
<ul>
107-
<li>Please check the storybook config.</li>
108-
<li>Try reloading the page.</li>
109-
</ul>
110-
</div>
111-
</div>
112-
113-
<div class="sb-errordisplay sb-wrapper">
114-
<div id="error-message" class="sb-heading"></div>
115-
<pre class="sb-errordisplay_code">
116-
<code id="error-stack"></code>
117-
</pre>
118-
</div>
119-
120-
121-
122-
<div id="root"></div>
123-
124-
125-
126-
127-
128-
129-
130-
<script src="static/runtime~iframe.7161ffe0bb3d969a0dda.bundle.js" defer></script>
131-
132-
133-
134-
<script src="static/vendors~iframe.917d8e8f3e518ec26969.bundle.js" defer></script>
135-
136-
137-
138-
<script src="static/iframe.6bda8d9805b3c00c5208.bundle.js" defer></script>
139-
140-
141-
142-
</body>
143-
</html>
83+
})(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');</script><style>#root[hidden],
84+
#docs-root[hidden] {
85+
display: none !important;
86+
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.b74c3d32a4afaa0206f0.bundle.js"></script><script src="vendors~main.b74c3d32a4afaa0206f0.bundle.js"></script><script src="main.b74c3d32a4afaa0206f0.bundle.js"></script></body></html>

docs/index.html

Lines changed: 14 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,19 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
7-
<title>Storybook</title>
8-
<link rel="shortcut icon" href="favicon.ico?v=1" />
9-
10-
11-
12-
13-
<style>
14-
html, body {
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><title>Storybook</title><meta name="viewport" content="width=device-width,initial-scale=1"/><style>html, body {
152
overflow: hidden;
163
height: 100%;
174
width: 100%;
185
margin: 0;
196
padding: 0;
20-
}
21-
</style>
22-
23-
<script>
24-
if (window.parent !== window) {
25-
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;
26-
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__VUE_DEVTOOLS_GLOBAL_HOOK__;
27-
}
28-
</script>
29-
30-
31-
32-
</head>
33-
<body>
34-
35-
36-
37-
38-
39-
<div id="root"></div>
40-
41-
42-
43-
44-
45-
46-
47-
<script src="static/runtime~manager.4df74dbc3c7ba7bb0154.bundle.js" defer></script>
48-
49-
50-
51-
<script src="static/manager.4241286b9f806a0a54a0.bundle.js" defer></script>
52-
53-
54-
55-
</body>
56-
</html>
7+
}</style><script>/* globals window */
8+
/* eslint-disable no-underscore-dangle */
9+
try {
10+
if (window.top !== window) {
11+
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
12+
}
13+
} catch (e) {
14+
// eslint-disable-next-line no-console
15+
console.warn('unable to connect to top frame for connecting dev tools');
16+
}</script><style>#root[hidden],
17+
#docs-root[hidden] {
18+
display: none !important;
19+
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['DOCS_MODE'] = false;</script><script src="runtime~main.90e0e11dc1598d88da6c.bundle.js"></script><script src="vendors~main.7fd96032e9ffc0091d7a.bundle.js"></script><script src="main.f8feee2d5b2bcd5e0314.bundle.js"></script></body></html>

0 commit comments

Comments
 (0)