2244 Commits

Author SHA1 Message Date
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
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
Michael Shilman
10fc28856b v6.2.2 2021-04-02 17:50:20 +08:00
Michael Shilman
3d5d666f4e v6.2.1 2021-03-31 12:03:54 +08:00
Michael Shilman
829c72e437 v6.2.0 2021-03-31 00:00:43 +08:00
Michael Shilman
c1dfd5babe v6.2.0-rc.13 2021-03-30 18:47:23 +08:00
Michael Shilman
5ee73396db v6.2.0-rc.12 2021-03-30 10:48:28 +08:00
Michael Shilman
b2100d195f v6.2.0-rc.11 2021-03-29 16:33:41 +08:00
Michael Shilman
a667853246 v6.2.0-rc.10 2021-03-26 15:57:35 +08:00
Norbert de Langen
d74daf18e5
FIX #13630 2021-03-25 10:01:17 +01:00
Michael Shilman
b100a45b69 v6.2.0-rc.9 2021-03-25 00:44:24 +08:00
Damian Stasik
56a0df017d refactor: replace lodash/range with Array.from 2021-03-23 22:18:25 +01:00
Gert Hengeveld
ad89f03a86 Support presetColors parameter and fix changing presets 2021-03-23 17:28:36 +01:00
Michael Shilman
229ae2956b v6.2.0-rc.8 2021-03-23 10:07:45 +08:00
Michael Shilman
ea154d612f v6.2.0-rc.7 2021-03-23 00:21:22 +08:00
Michael Shilman
9140a28845 v6.2.0-rc.6 2021-03-21 00:24:15 +08:00
Michael Shilman
0c13a371f4 v6.2.0-rc.5 2021-03-20 16:52:59 +08:00
Gert Hengeveld
e4ed4575f6 Tweaks 2021-03-19 14:23:58 +01:00
Gert Hengeveld
7f064f4ef8 Fix initial presetColors 2021-03-19 14:16:36 +01:00
Gert Hengeveld
e397e28d5b
Merge branch 'next' into react-colorful 2021-03-19 08:24:41 +01:00
Michael Shilman
1ac1d37eff v6.2.0-rc.4 2021-03-19 13:37:52 +08:00
Michael Shilman
8330d79a3d v6.2.0-rc.3 2021-03-18 22:03:48 +08:00
Michael Shilman
9b2d7ca7e3
Merge pull request #14251 from TheMightyPenguin/fix-docs-table-dark-mode
Addon-docs: Fix table dark mode
2021-03-18 18:23:12 +08:00
Victor Tortolero
5cdb42993d Add story for MDX docs using dark theme 2021-03-17 15:24:47 -06:00
Michael Shilman
2d47a4b645 v6.2.0-rc.2 2021-03-17 18:02:07 +08:00
Victor Tortolero
d44ad0af51 Fix Docs table dark mode #14029 2021-03-16 21:20:47 -06:00