Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: Prerelease 8.6.0-beta.5 #30575

Merged
merged 43 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
4b84ac2
Builder-Vite: Extend optimizeDeps.include config
valentinpalkovic Feb 18, 2025
6733333
Fix incorrect subpath imports snippet
kylegach Feb 18, 2025
ac0d3b5
Remove prefetch of sb-preview/runtime.js
valentinpalkovic Feb 18, 2025
f39169d
Register iframe middleware faster in Vite Builder
valentinpalkovic Feb 18, 2025
26843e1
add esbuild 0.25 to dependency list
JReinhold Feb 19, 2025
69cccad
Merge pull request #30574 from storybookjs/jeppe/upgrade-esbuild
JReinhold Feb 19, 2025
597faff
Change how iframe route handler is registered in Vite Builder
valentinpalkovic Feb 19, 2025
cd9d89a
Cleanup
valentinpalkovic Feb 19, 2025
fb039c2
Cleanup
valentinpalkovic Feb 19, 2025
dc7a53a
Fix routing
valentinpalkovic Feb 19, 2025
e5f5bf5
Update CHANGELOG.md for v8.5.8 [skip ci]
storybook-bot Feb 19, 2025
917fad3
Add entry to optimizeDeps array
valentinpalkovic Feb 19, 2025
f5452a4
Remove iframe.html workaround
valentinpalkovic Feb 19, 2025
288ef21
Rename function
valentinpalkovic Feb 19, 2025
41fefb7
make it an object
ndelangen Feb 19, 2025
c85e72e
Only update vitest config file if it has a workspace option, otherwis…
ghengeveld Feb 19, 2025
308d77a
Automatically detect beforeAll in vitest
kasperpeulen Feb 19, 2025
b7126ab
Apply requested changes
valentinpalkovic Feb 19, 2025
2810e0f
Command out the before all part for now
kasperpeulen Feb 19, 2025
a2d4030
Remove redundant type
kasperpeulen Feb 19, 2025
6de6c57
Merge pull request #30567 from storybookjs/valentin/fix-runtime-ifram…
valentinpalkovic Feb 19, 2025
0576c6f
Merge pull request #30583 from storybookjs/only-write-config-with-exi…
ghengeveld Feb 19, 2025
b605663
Merge pull request #30582 from storybookjs/kasper/automatic-before-all
kasperpeulen Feb 19, 2025
1ef986c
Update code/lib/create-storybook/src/initiate.ts
shilman Feb 19, 2025
212c173
Merge pull request #30581 from storybookjs/norbert/create-storybook/t…
shilman Feb 19, 2025
2a69be8
Prose tweaks
kylegach Feb 19, 2025
6c46c3f
Add migration instructions for Vitest setup file
kylegach Feb 19, 2025
5855a0f
Remove mentions of codemod
kylegach Feb 19, 2025
b8cc9c9
Update documentation to prefer 'create storybook' over 'storybook ini…
ghengeveld Feb 20, 2025
532c6ac
Don't initially select Documentation and Testing features
ghengeveld Feb 20, 2025
728dcf0
Small fixes
ghengeveld Feb 20, 2025
a25c582
Merge pull request #30599 from storybookjs/features-off-by-default
ghengeveld Feb 20, 2025
e261d93
Prose tweaks
kylegach Feb 20, 2025
efbb060
Merge branch 'next' into docs-csf-factories-fixes
kylegach Feb 20, 2025
24b1437
Adjustments
kylegach Feb 20, 2025
a27de74
Merge branch 'next' into create-storybook-cli-docs
kylegach Feb 20, 2025
9c46525
Merge pull request #30598 from storybookjs/create-storybook-cli-docs
kylegach Feb 20, 2025
9909bca
Merge branch 'next' into docs-csf-factories-fixes
kylegach Feb 20, 2025
0aa2e8c
Merge pull request #30589 from storybookjs/docs-csf-factories-fixes
kylegach Feb 20, 2025
d0b1713
Angular: Support v19.2 when @angular/animations is not installed
valentinpalkovic Feb 21, 2025
46eb952
Update tests
valentinpalkovic Feb 21, 2025
f10850b
Merge pull request #30611 from storybookjs/valentin/support-angular-19.2
valentinpalkovic Feb 21, 2025
c333701
Write changelog for 8.6.0-beta.5 [skip ci]
storybook-bot Feb 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove prefetch of sb-preview/runtime.js
  • Loading branch information
valentinpalkovic committed Feb 18, 2025
commit ac0d3b56da0d060d861af06fc640208bb92be9a6
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Options, PreviewAnnotation } from 'storybook/internal/types';
import { dedent } from 'ts-dedent';

import { processPreviewAnnotation } from './utils/process-preview-annotation';
import { SB_VIRTUAL_FILES, getResolvedVirtualModuleId } from './virtual-file-names';
import { SB_VIRTUAL_FILES } from './virtual-file-names';

export async function generateModernIframeScriptCode(options: Options, projectRoot: string) {
const { presets, configDir } = options;
Expand Down
125 changes: 64 additions & 61 deletions code/core/assets/server/template.ejs
Original file line number Diff line number Diff line change
@@ -1,91 +1,94 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />

<title><%= typeof title !== 'undefined'? title : 'Storybook'%></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<head>
<meta charset="utf-8" />

<% if (favicon.endsWith('.svg')) {%>
<title>
<%= typeof title !=='undefined' ? title : 'Storybook' %>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />

<% if (favicon.endsWith('.svg')) {%>
<link rel="icon" type="image/svg+xml" href="./<%= favicon %>" />
<% } else if (favicon.endsWith('.ico')) { %>
<link rel="icon" type="image/x-icon" href="./<%= favicon %>" />
<% } %>
<style>
@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('./sb-common-assets/nunito-sans-regular.woff2') format('woff2');
}
<link rel="icon" type="image/x-icon" href="./<%= favicon %>" />
<% } %>
<style>
@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('./sb-common-assets/nunito-sans-regular.woff2') format('woff2');
}

@font-face {
font-family: 'Nunito Sans';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url('./sb-common-assets/nunito-sans-italic.woff2') format('woff2');
}
@font-face {
font-family: 'Nunito Sans';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url('./sb-common-assets/nunito-sans-italic.woff2') format('woff2');
}

@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('./sb-common-assets/nunito-sans-bold.woff2') format('woff2');
}
@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('./sb-common-assets/nunito-sans-bold.woff2') format('woff2');
}

@font-face {
font-family: 'Nunito Sans';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url('./sb-common-assets/nunito-sans-bold-italic.woff2') format('woff2');
}
</style>
@font-face {
font-family: 'Nunito Sans';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url('./sb-common-assets/nunito-sans-bold-italic.woff2') format('woff2');
}
</style>

<link href="./sb-manager/runtime.js" rel="modulepreload" />
<link href="./sb-manager/runtime.js" rel="modulepreload" />

<% files.js.forEach(file => { %>
<link href="<%= file %>" rel="modulepreload" />
<% }); %> <% if (typeof head !== 'undefined') { %> <%- head %> <% } %>
<% files.js.forEach(file=> { %>
<link href="<%= file %>" rel="modulepreload" />
<% }); %>
<% if (typeof head !=='undefined' ) { %> <%- head %>
<% } %>

<style>
#storybook-root[hidden] {
display: none !important;
}
</style>
<style>
#storybook-root[hidden] {
display: none !important;
}
</style>

<% files.css.forEach(file => { %>
<link href="<%= file %>" rel="stylesheet" />
<% }); %>
</head>
<body>
<div id="root"></div>
<% files.css.forEach(file=> { %>
<link href="<%= file %>" rel="stylesheet" />
<% }); %>
</head>

<% if (typeof globals !== 'undefined' && Object.keys(globals).length) { %>
<body>
<div id="root"></div>

<% if (typeof globals !=='undefined' && Object.keys(globals).length) { %>
<script>
<% for (var varName in globals) { %>
<% if (globals[varName] !== undefined) { %>
window['<%=varName%>'] = <%- (globals[varName]) %>;
window['<%=varName%>'] = <% - (globals[varName]) %>;
<% } %>
<% } %>
</script>
<% } %>

<script type="module">
<script type="module">
import './sb-manager/globals-runtime.js';

<% files.js.forEach(file => { %>
import '<%= file %>';
<% }); %>

import './sb-manager/runtime.js';
</script>
</script>
</body>

<% if (!ignorePreview) { %>
<link href="./sb-preview/runtime.js" rel="prefetch" as="script" />
<% } %>
</body>
</html>
</html>