2268 Commits

Author SHA1 Message Date
Michael Shilman
ddcb3bd37e Extract addon-knobs from monorepo 2021-05-10 16:50:58 +08:00
Michael Shilman
5a3c25253d Merge branch 'next' into 14831-extract-design-assets 2021-05-09 16:38:37 +08:00
Michael Shilman
48be589d64
Merge pull request #14855 from storybookjs/14831-extract-addon-events
Extract addon-events from monorepo
2021-05-09 16:36:18 +08:00
Michael Shilman
4a68e8e063 Merge branch 'next' into 14831-extract-addon-cssresources 2021-05-09 11:17:55 +08:00
Michael Shilman
5b5bfe8845 Merge branch 'next' into 14831-extract-addon-events 2021-05-09 11:17:38 +08:00
Michael Shilman
ff857ff6ee Merge branch 'next' into 14831-extract-design-assets 2021-05-09 11:16:14 +08:00
Michael Shilman
55807913e9 Extract addon-queryparams from monorepo 2021-05-08 14:54:45 +08:00
Michael Shilman
e7e095bd85 Extract addon-cssresources from monorepo 2021-05-08 14:45:50 +08:00
Michael Shilman
7600d12f69 Extract addon-events from monorepo 2021-05-08 10:53:23 +08:00
Michael Shilman
0f37ea537a Extract design-assets from monorepo 2021-05-08 10:31:09 +08:00
Michael Shilman
c3ffd75d5a v6.3.0-alpha.21 2021-05-07 14:01:13 +08:00
Michael Shilman
06eb833d5f Fix doc blocks imports to import from ESM/CJS 2021-05-07 11:51:52 +08:00
Michael Shilman
fedb50ac46 v6.3.0-alpha.20 2021-05-06 21:49:12 +08:00
Michael Shilman
8ba485343b v6.3.0-alpha.19 2021-05-03 19:02:37 +08:00
Angela Papadopoulou
3179678ad8 Add showName property under toolbar 2021-05-02 20:04:52 +03:00
Angela Papadopoulou
85d6785eaa Merge branch 'next' of https://github.com/storybookjs/storybook into ap/custom-toolbar-items-labels 2021-05-02 19:57:05 +03:00
Michael Shilman
d3942573e1 v6.3.0-alpha.18 2021-05-03 00:05:16 +08:00
Angela Papadopoulou
483f539239 Add showName option in toolbar items 2021-04-30 20:58:35 +03:00
Michael Shilman
36d878614d v6.3.0-alpha.17 2021-04-30 14:26:50 +08:00
Michael Shilman
f6f4c8f747
Merge pull request #14729 from storybookjs/feat/addon-docs/show_code
Addon-docs: Add parameter to show code by default
2021-04-29 23:30:01 +08:00
Michael Shilman
ecac906d64 isCodeExpanded => docs.source.state 2021-04-29 22:47:41 +08:00
Michael Shilman
f09bb7bf00 v6.3.0-alpha.16 2021-04-29 11:39:54 +08:00
Valery Bugakov
b38464c653 Core: Add core.builder and loglevel to StorybookConfig type 2021-04-28 18:09:36 +03:00
Michael Shilman
11ea895ed3 v6.3.0-alpha.15 2021-04-28 01:32:11 +08:00
Fabien Rassinier
b4487fdc8b Addon-docs: Show code by default 2021-04-27 11:38:48 +02:00
Fabien Rassinier
f517a0a37d Addon-docs: Show code by default 2021-04-27 11:31:08 +02:00
Tom Coleman
1142e1ddb1 Add an example to highlight if a story renders too many times 2021-04-23 13:55:25 +10:00
Michael Shilman
eb1e3a913f v6.3.0-alpha.14 2021-04-23 10:14:32 +08:00
Michael Shilman
35287402b5 v6.3.0-alpha.13 2021-04-21 10:41:26 +08:00
Michael Shilman
d559d96fc5 v6.3.0-alpha.12 2021-04-20 01:58:56 +08:00
Michael Shilman
7620a2978c v6.3.0-alpha.11 2021-04-19 22:16:43 +08:00
Michael Shilman
080babf6d7 v6.3.0-alpha.10 2021-04-18 21:18:41 +08:00
peterpeterparker
def4fb743c docs: missing dash in place-hold.it url 2021-04-17 14:25:08 +02:00
Michael Shilman
1d75ab7fc1 v6.3.0-alpha.9 2021-04-17 00:44:29 +08:00
Michael Shilman
2459eb4282 v6.3.0-alpha.8 2021-04-15 22:23:13 +08:00
Michael Shilman
ca7182ff5f v6.3.0-alpha.7 2021-04-14 10:19:40 +08:00
Michael Shilman
60181528cf v6.3.0-alpha.6 2021-04-13 16:31:17 +08:00
Michael Shilman
9030fc7598 v6.3.0-alpha.5 2021-04-11 23:40:18 +08:00
Michael Shilman
157857bbe1 v6.3.0-alpha.4 2021-04-10 20:47:14 +08:00
Michael Shilman
3ec358f71c
Merge pull request #14472 from eirslett/dont-shadow-window
Core: Don't shadow the window global variable
2021-04-10 20:30:06 +08:00
Michael Shilman
4797065261 v6.3.0-alpha.3 2021-04-10 12:36:35 +08:00
Michael Shilman
3aba070716
Merge pull request #14323 from visualfanatic/remove-lodash-range-usage
Refactor: Replace `lodash/range` with `Array.from`
2021-04-10 12:17:41 +08:00
Michael Shilman
316b500adb
Merge branch 'next' into dont-shadow-window 2021-04-10 12:09:28 +08:00
Michael Shilman
8a57399297 v6.3.0-alpha.2 2021-04-09 13:07:04 +08:00
Michael Shilman
7d99c9e0bf v6.3.0-alpha.1 2021-04-09 00:25:04 +08:00
Michael Shilman
7739aace24 v6.3.0-alpha.0 2021-04-08 17:55:27 +08:00
Michael Shilman
fd587f5526 v6.2.5 2021-04-07 18:36:29 +08:00
Michael Shilman
7d8a84165e v6.2.4 2021-04-07 12:04:44 +08:00
Michael Shilman
8c2eac34a9 v6.2.3 2021-04-05 22:28:10 +08:00
Eirik Sletteberg
841a55bd68 Don't shadow the window global variable
This snippet:

```
import { window } from 'global';
```

will let you mock window variables in Jest tests.
However, it breaks hot module reloading in Vite,
because Vite injects code snippets in top of every
file:

```
window.STUFF = 'Vite injected some HMR code here';
import { window } from 'global';
// this fails: Uncaught ReferenceError: Cannot access 'window' before initialization
```

The simple solution is to rename `window` when importing it:

```
import { window as globalWindow } from 'global';
globalWindow.alert('hello world');
```

The code works like before, but Vite will be able to
inject its code snippet without interfering with the
rest of the code.
2021-04-04 18:36:16 +02:00