6918 Commits

Author SHA1 Message Date
Michael Shilman
3671955f56 Migrate sfc_vue fixture to use babel-preset-vue 2020-05-20 18:42:50 +08:00
Brody McKee
6dfb78686a fix: correct TSDoc error in shared types 2020-05-20 11:38:25 +03:00
Brody McKee
ee085e5ed2 feat: improve shared types 2020-05-20 11:14:34 +03:00
Michael Shilman
3f4d4ef98d Typescript: Filter out node_modules for docgen by default 2020-05-20 15:22:10 +08:00
Michael Shilman
bd7d479b4d Fix presets for windows paths 2020-05-20 15:21:16 +08:00
Michael Shilman
7948a71451 Fix typescript-preset filtering 2020-05-20 09:01:36 +08:00
tooppaaa
a38d6cfc04 fix babel-loader-preview 2020-05-19 21:26:36 +02:00
Norbert de Langen
5949c37b3b
Merge branch 'next' into mrmckeb/issue10790
# Conflicts:
#	examples/angular-cli/jest.addon-config.js
#	examples/angular-cli/jest.config.js
#	lib/core/src/server/preview/babel-loader-preview.js
#	scripts/build-storybooks.js
#	yarn.lock
2020-05-19 16:26:26 +02:00
Norbert de Langen
def3af592a
FIX https://github.com/storybookjs/storybook/issues/10551 2020-05-19 14:24:43 +02:00
Norbert de Langen
e23ff36610
Merge pull request #10819 from storybookjs/fix/ref-auth
FIX refs not authenticating
2020-05-19 13:28:48 +02:00
Michael Shilman
a8169508be
Merge pull request #10833 from storybookjs/10239-fix-toolbars-initial-render
Core: Fix global args initial state for addon-toolbars
2020-05-19 19:01:22 +08:00
Clément DUNGLER
8fd3ca6e0c
Merge pull request #10702 from storybookjs/tech/ci-example-overhaul-clean
Tech/ci example overhaul clean
2020-05-19 12:57:36 +02:00
Norbert de Langen
4c1a662d13
Merge pull request #10825 from storybookjs/fix-required-version-of-reach-router-types
Fix: upgrade and add some missing dependencies in core, router, api
2020-05-19 12:41:53 +02:00
Norbert de Langen
7eed2e7396
CHANGE to correct header 2020-05-19 12:24:54 +02:00
Norbert de Langen
edd39b846f Merge branch 'next' into fix/ref-auth 2020-05-19 12:23:34 +02:00
Michael Shilman
386afe40fb Global Args: Fix initial render bug 2020-05-19 18:18:47 +08:00
Norbert de Langen
0f4e98d009
Merge pull request #10801 from storybookjs/tech/cleanup-docs-code-fix-zoom
FIX zoom in docs
2020-05-19 09:40:32 +02:00
Brody McKee
1ea65954ca feat: update types and defaults 2020-05-19 10:36:36 +03:00
Gaëtan Maisse
52f7f4ebc6
fix(core): add some missing babel dependencies
All theses deps have been used in `@storybook/core` in https://github.com/storybookjs/storybook/pull/10725
But haven't been properly added as dependencies.
2020-05-18 22:24:17 +02:00
Gaëtan Maisse
a4de908691
fix: bump required version of @types/reach__router
When building `@storybook/api` we are generating types that are based on `@types/reach__router` (see in dist/index.d.ts: `location: import("@reach/router").WindowLocation<{}>`).
And as in the monorepo we have the latest version of `@types/reach__router` we are using generic version of `WindowLocation` added by 410945551d

So we need to update the required version of `@types/reach__router` in the dependency otherwise users can try to run SB with an old version of `@types/reach__router` and face the following error:
```
ERROR in /.../my-project/node_modules/@storybook/api/dist/index.d.ts(75,19):
TS2315: Type 'WindowLocation' is not generic.
```

I also updated the version in `@storybook/router` to be consistent across the different packages.
2020-05-18 21:41:13 +02:00
Norbert de Langen
30c42223fe
Merge branch 'next' into tech/ci-example-overhaul-clean
# Conflicts:
#	lib/cli/src/helpers.ts
#	yarn.lock
2020-05-18 20:14:04 +02:00
tooppaaa
465b706bbf less changes 2020-05-18 16:27:08 +02:00
Norbert de Langen
b78317c5f2
WIP 2020-05-18 14:58:55 +02:00
Norbert de Langen
448bdddd29
Merge branch 'next' into tech/ci-example-overhaul-clean
# Conflicts:
#	examples/angular-cli/jest.config.js
#	lib/cli/src/generators/HTML/index.js
#	lib/cli/src/generators/HTML/template-csf/stories/0-Welcome.stories.js
#	yarn.lock
2020-05-18 14:21:17 +02:00
Norbert de Langen
4b7c1a494c
Merge pull request #10725 from storybookjs/ie11_again_andAgain_theReturn
core: transpile minimum node_modules
2020-05-18 14:11:22 +02:00
Gaëtan Maisse
ee7c9ec6f4
Merge pull request #10802 from storybookjs/tech/migrate-cli-to-TS
CLI: Migrate CLI to TypeScript
2020-05-18 13:49:09 +02:00
Norbert de Langen
7571af5334 Merge branch 'next' into tech/cleanup-docs-code-fix-zoom 2020-05-18 13:09:20 +02:00
Michael Shilman
e88c51dfb8 Merge branch 'next' into mrmckeb/issue10790 2020-05-18 17:39:56 +08:00
Norbert de Langen
5668a28fc2
REMOVE the background too 2020-05-18 11:22:19 +02:00
Norbert de Langen
f36e553b57
REMOVE the margin & padding on the decorator 2020-05-18 11:21:59 +02:00
Norbert de Langen
4d6c16b21d
ADD the decorator back 2020-05-18 11:21:04 +02:00
Michael Shilman
1e621e35e5 Update main.js typescript docgen handling 2020-05-18 17:02:17 +08:00
Norbert de Langen
6e82e21084
FIX refs not authenticating because they omit credentials & do not pass content-type 2020-05-18 10:43:59 +02:00
Norbert de Langen
725ec3563d
CHANGE what the default tab is on mobile (from sidebar to canvas) 2020-05-18 10:36:48 +02:00
Norbert de Langen
10a656066b Merge branch 'next' into tech/cleanup-docs-code-fix-zoom 2020-05-18 09:31:14 +02:00
Norbert de Langen
cfd39b9b58
CLEANUP 2020-05-18 09:29:51 +02:00
Michael Shilman
322380fad5 Clean up typescriptOptions handling for docgen 2020-05-18 13:22:56 +08:00
Gaëtan Maisse
9583c02882
Merge branch 'next' into tech/migrate-cli-to-TS 2020-05-17 17:08:52 +02:00
Gaëtan Maisse
5860974137
refactor(cli): improve typing of window
In order to be able to extend types in global scope with an `import` at the top of the file we have to create a new dedicated file (and can not use already existing typings.d.ts).
For details, see https://stackoverflow.com/questions/30960386/how-to-extend-the-window-typescript-interface/30961346#30961346
2020-05-17 17:08:00 +02:00
Gaëtan Maisse
ffa152204f
refactor(cli): use a unified type across all CLI generators 2020-05-17 16:49:01 +02:00
Brody McKee
8310948e3b feat: add root TypeScript support 2020-05-17 16:31:09 +03:00
Yann Braga
cb149f6043 refactor(cli): use storyformat in aurelia generator 2020-05-17 14:53:46 +02:00
Yann Braga
bc237c7f5f test(cli): fix types by casting storyformat 2020-05-17 14:20:13 +02:00
Yann Braga
7ea8f77705 refactor(cli): add storyformat to command options 2020-05-17 14:19:26 +02:00
Michael Shilman
88faa36327 Update version.ts to 6.0.0-beta.8 2020-05-17 19:12:06 +08:00
Michael Shilman
73d9b6fb3a v6.0.0-beta.8 2020-05-17 19:03:09 +08:00
Michael Shilman
e651948b8c fix deepscan 2020-05-17 09:44:21 +08:00
Yann Braga
d1ffb883b0 refactor(cli): improve typings for supported language 2020-05-16 18:03:26 +02:00
Yann Braga
5f4eee1278 refactor(cli): improve typings for story format 2020-05-16 18:01:59 +02:00
Yann Braga
66e6fdca01 refactor(cli): improve typings for project types 2020-05-16 17:52:47 +02:00