Skip to content

Commit 530f938

Browse files
bartazhuwshimi
authored andcommitted
Build docs for 0.14.3
1 parent 74fb1cf commit 530f938

24 files changed

+332
-40314
lines changed

docs/iframe.html

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,41 @@
44
display: none;
55
}
66

7+
.sb-show-main.sb-main-centered {
8+
margin: 0;
9+
display: flex;
10+
align-items: center;
11+
min-height: 100vh;
12+
}
13+
14+
.sb-show-main.sb-main-centered #root {
15+
box-sizing: border-box;
16+
margin: auto;
17+
padding: 1rem;
18+
max-height: 100%; /* Hack for centering correctly in IE11 */
19+
}
20+
21+
/* Vertical centering fix for IE11 */
22+
@media screen and (-ms-high-contrast: none), (-ms-high-contrast: active) {
23+
.sb-show-main.sb-main-centered:after {
24+
content: '';
25+
min-height: inherit;
26+
font-size: 0;
27+
}
28+
}
29+
30+
.sb-show-main.sb-main-fullscreen {
31+
margin: 0;
32+
padding: 0;
33+
display: block;
34+
}
35+
36+
.sb-show-main.sb-main-padded {
37+
margin: 0;
38+
padding: 1rem;
39+
display: block;
40+
}
41+
742
.sb-wrapper {
843
position: fixed;
944
top: 0;
@@ -68,7 +103,27 @@
68103
} catch (e) {
69104
// eslint-disable-next-line no-console
70105
console.warn('unable to connect to top frame for connecting dev tools');
71-
}</script><style>.sbdocs.sbdocs-content span.plain-text {
106+
}
107+
108+
window.onerror = function onerror(message, source, line, column, err) {
109+
if (window.CONFIG_TYPE !== 'DEVELOPMENT') return;
110+
// eslint-disable-next-line no-var, vars-on-top
111+
var xhr = new window.XMLHttpRequest();
112+
xhr.open('POST', '/runtime-error');
113+
xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
114+
xhr.send(
115+
JSON.stringify({
116+
/* eslint-disable object-shorthand */
117+
message: message,
118+
source: source,
119+
line: line,
120+
column: column,
121+
error: err && { message: err.message, name: err.name, stack: err.stack },
122+
origin: 'preview',
123+
/* eslint-enable object-shorthand */
124+
})
125+
);
126+
};</script><style>.sbdocs.sbdocs-content span.plain-text {
72127
color: white;
73128
}
74129

@@ -77,4 +132,8 @@
77132
}</style><style>#root[hidden],
78133
#docs-root[hidden] {
79134
display: none !important;
80-
}</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>window['LOGLEVEL'] = "info";</script><script src="./sb_dll/storybook_docs_dll.js"></script><script src="runtime~main.007067a6206e2d26e8f1.bundle.js"></script><script src="vendors~main.007067a6206e2d26e8f1.bundle.js"></script><script src="main.007067a6206e2d26e8f1.bundle.js"></script></body></html>
135+
}</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>window['LOGLEVEL'] = "info";
136+
137+
138+
139+
window['FRAMEWORK_OPTIONS'] = {};</script><script src="runtime~main.15d2e9c78a56ea82766c.bundle.js"></script><script src="vendors~main.15d2e9c78a56ea82766c.bundle.js"></script><script src="main.15d2e9c78a56ea82766c.bundle.js"></script></body></html>

docs/index.html

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,27 @@
1717
} catch (e) {
1818
// eslint-disable-next-line no-console
1919
console.warn('unable to connect to top frame for connecting dev tools');
20-
}</script><link rel="icon" href="https://assets.ubuntu.com/v1/ab36e6ed-vanilla_favicon_32px.png" type="image/x-icon"/><style>@font-face {
20+
}
21+
22+
window.onerror = function onerror(message, source, line, column, err) {
23+
if (window.CONFIG_TYPE !== 'DEVELOPMENT') return;
24+
// eslint-disable-next-line no-var, vars-on-top
25+
var xhr = new window.XMLHttpRequest();
26+
xhr.open('POST', '/runtime-error');
27+
xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
28+
xhr.send(
29+
JSON.stringify({
30+
/* eslint-disable object-shorthand */
31+
message: message,
32+
source: source,
33+
line: line,
34+
column: column,
35+
error: err && { message: err.message, name: err.name, stack: err.stack },
36+
origin: 'manager',
37+
/* eslint-enable object-shorthand */
38+
})
39+
);
40+
};</script><link rel="icon" href="https://assets.ubuntu.com/v1/ab36e6ed-vanilla_favicon_32px.png" type="image/x-icon"/><style>@font-face {
2141
font-display: fallback;
2242
font-family: "Ubuntu";
2343
font-style: normal;
@@ -104,12 +124,16 @@
104124
}</style><style>#root[hidden],
105125
#docs-root[hidden] {
106126
display: none !important;
107-
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['LOGLEVEL'] = "info";
127+
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['CONFIG_TYPE'] = "PRODUCTION";
128+
129+
130+
131+
window['LOGLEVEL'] = "info";
108132

109133

110134

111135

112136

113137

114138

115-
window['DOCS_MODE'] = false;</script><script src="./sb_dll/storybook_ui_dll.js"></script><script src="runtime~main.870e8ee0658e83d05c6b.bundle.js"></script><script src="vendors~main.4d64558c3d4cda7bff20.bundle.js"></script><script src="main.a3e97d39c19efa559e97.bundle.js"></script></body></html>
139+
window['DOCS_MODE'] = false;</script><script src="runtime~main.870e8ee0658e83d05c6b.bundle.js"></script><script src="vendors~main.7cde074c96345ee9916f.bundle.js"></script><script src="main.97123681f83027323954.bundle.js"></script></body></html>

docs/main.007067a6206e2d26e8f1.bundle.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/main.007067a6206e2d26e8f1.bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/main.15d2e9c78a56ea82766c.bundle.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.15d2e9c78a56ea82766c.bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.97123681f83027323954.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)