3487 Commits

Author SHA1 Message Date
Tom Coleman
5f105af6f4 Drop some logs 2023-01-11 22:55:06 +11:00
Tom Coleman
b839502c83 Change refs + stories to use a common interface
Add fields:
 - `stories` (index once loaded into a hash)
 - `indexError` (if there's an error loading that)
 - `previewInitialized` (if the preview is ready to render)
2023-01-11 22:48:13 +11:00
Tom Coleman
5575b4d660 Don't set ready until we are actually ready! 2023-01-09 10:07:06 +11:00
Tom Coleman
7ec1104a23 Show docs immediately on first load 2023-01-03 11:18:14 +11:00
Tom Coleman
8f60c3dfd1 Remove storiesConfigured et al, and simply to just ready.
This is all we had for refs too, and the logic for keeping it simple is the same.
2023-01-03 11:09:59 +11:00
Tom Coleman
9d2a9b57f3 Add some comments to explain things 2023-01-03 08:18:54 +11:00
Tom Coleman
8756b5d0af Simplify 2022-12-29 17:06:08 +11:00
Tom Coleman
e91aa76cc5 Simplify a little 2022-12-29 17:04:41 +11:00
Tom Coleman
38fcce20ea Simplify things further 2022-12-29 16:58:52 +11:00
Tom Coleman
4cdecb98ff Don't show a progressbar if booting 2022-12-29 16:56:39 +11:00
Tom Coleman
91a431a9ab
Apply suggestions from code review
Co-authored-by: Jeppe Reinhold <jeppe@chromatic.com>
2022-12-29 16:46:44 +11:00
Tom Coleman
2341c67ac6 Show a "booting" progress message until the story is specified
(Or an error occurs).
2022-12-28 21:14:37 +11:00
Michael Arestad
29910b71db Remove vandalism 2022-12-27 12:54:21 -07:00
Michael Shilman
9375edf43a Update git head to 7.0.0-beta.15, update yarn.lock [ci skip] 2022-12-24 13:00:41 +08:00
Michael Shilman
ed794f9d13 v7.0.0-beta.15 2022-12-24 12:56:25 +08:00
Michael Shilman
9818f15ae0 Update root, peer deps, version.ts/json to 7.0.0-beta.15 [ci skip] 2022-12-24 12:38:53 +08:00
Norbert de Langen
57b14d45bb
Merge branch 'next' into tech/tsup-core-server-v2 2022-12-24 00:29:38 +01:00
Norbert de Langen
b95c3b7096
Merge pull request #20399 from bryanjtc/fix-peer-depedency
Fix peer dependency issue
2022-12-23 21:30:37 +01:00
Norbert de Langen
a8c00039e6
Merge branch 'next' into tech/jest-swc-standalone 2022-12-23 16:13:16 +01:00
Norbert de Langen
25f412c6b5
Merge pull request #20331 from storybookjs/fix/manager-entry-with-exports
Core: Wrap manager entries to handle exports using a cache directory
2022-12-23 16:12:43 +01:00
Norbert de Langen
d6008c09ce
Merge pull request #20371 from timur-svoboda/fix-trim-vulnerability
Fix trim vulnerability
2022-12-23 16:10:29 +01:00
Norbert de Langen
a972797db5
fix types 2022-12-23 16:08:06 +01:00
Norbert de Langen
07867c8d4e
Merge branch 'next' into tech/jest-swc-standalone 2022-12-23 15:52:45 +01:00
Norbert de Langen
169ec46b0c
Merge branch 'next' into fix/manager-entry-with-exports 2022-12-23 15:44:44 +01:00
Norbert de Langen
a5b6711414
Merge branch 'next' into fix-trim-vulnerability 2022-12-23 15:39:06 +01:00
Bryan Thomas
aab1f1ccd6 Fix peer dependency issue 2022-12-23 09:20:30 -05:00
Norbert de Langen
103387fd50 fixes for unit tests 2022-12-23 22:56:13 +09:00
Norbert de Langen
3cd585704e make tests use SWC, not babel 2022-12-23 22:53:21 +09:00
Daniel Schmidt
0f293fa684
Merge branch 'storybookjs:next' into ui/fix-find-dom-node 2022-12-23 14:20:18 +01:00
Michael Shilman
d4beeb98c5 Update git head to 7.0.0-beta.14, update yarn.lock [ci skip] 2022-12-23 20:06:52 +08:00
Michael Shilman
c3b2e8fe25 v7.0.0-beta.14 2022-12-23 20:01:28 +08:00
Michael Shilman
29ae335995 Update root, peer deps, version.ts/json to 7.0.0-beta.14 [ci skip] 2022-12-23 19:58:03 +08:00
Norbert de Langen
4cd87a4c40
regen lockfiles 2022-12-22 20:48:24 +01:00
Daniel Schmidt
65653f6be5
Merge branch 'storybookjs:next' into ui/fix-find-dom-node 2022-12-22 17:04:46 +01:00
Ian VanSchooten
5a3bfc55dd Types: Add Addon_OptionsParameterV7 type 2022-12-22 10:17:30 -05:00
Michael Shilman
a181ae8fae
Merge pull request #20345 from storybookjs/norbert/no-strictmode-manager
UI: disable React.strictmode to prevent getting deprecation warnings about findNode
2022-12-22 19:00:09 +08:00
Tom Coleman
9f7314e8fa Merge branch 'rename-docspage-autodocs' into tom/sb-1032-warn-if-setting-tags-docspage-and-then 2022-12-22 15:04:53 +11:00
Tom Coleman
99b4ac394c Merge branch 'tom/sb-973-rename-docsenabled-to-docsdisable' into rename-docspage-autodocs 2022-12-22 15:04:34 +11:00
Tom Coleman
b05b9d37e2 Merge remote-tracking branch 'origin/next' into tom/sb-973-rename-docsenabled-to-docsdisable 2022-12-22 15:04:23 +11:00
Michael Shilman
996c9fb574
Merge pull request #20372 from storybookjs/shilman/upgrade-playwright-1-29-1
Build: Update Playwright to 1.29.1
2022-12-22 11:34:32 +08:00
Tom Coleman
cbb7995f0a Update error to be a little more helpful 2022-12-22 13:57:43 +11:00
Tom Coleman
2f713e5ce6 Throw error if using mdx of={} for autodocs-tagged CSF file 2022-12-22 13:50:24 +11:00
Tom Coleman
7dd16753e4 Refactored test stories a little bit 2022-12-22 13:41:57 +11:00
Michael Shilman
9027de36f8 Build: Update Playwright to 1.29.1 2022-12-22 10:38:19 +08:00
Tom Coleman
8ff272dd80 Merge branch 'tom/sb-973-rename-docsenabled-to-docsdisable' into rename-docspage-autodocs 2022-12-22 13:20:42 +11:00
Tom Coleman
b438b986de Fix incorrect default for disable 2022-12-22 13:19:17 +11:00
Daniel Schmidt
53da15685b ui: add ref to both nav and panel 2022-12-22 00:05:34 +01:00
Tom Coleman
7d87e818b0
Update code/lib/core-server/src/utils/StoryIndexGenerator.test.ts
Co-authored-by: Michael Shilman <shilman@users.noreply.github.com>
2022-12-22 08:32:34 +11:00
Timur Svoboda
ec95642720 Fix trim vulnerability
Upgrade `@storybook/linter-config` to the latest version (`3.1.2`) to
fix the `trim` vulnerability issue.

`trim@0.0.1` has a known vulnerability with high severity:
https://security.snyk.io/vuln/SNYK-JS-TRIM-1017038.

Here is the path to `trim` before this commit:

```
└─ @storybook/root@workspace:.
   └─ @storybook/linter-config@npm:2.5.0 [cfb4f] (via npm:^2.5.0 [cfb4f])
      └─ remark-cli@npm:8.0.1 (via npm:^8.0.0)
         └─ remark@npm:12.0.1 (via npm:^12.0.0)
            └─ remark-parse@npm:8.0.3 (via npm:^8.0.0)
               └─ trim@npm:0.0.1 (via npm:0.0.1)
```

I checked that there is no `trim` in the dependencies in the __./code__
folder after this commit. You can check it by running the following.

```sh
yarn why -R trim
```

The latest version of `@storybook/linter-config` is also used in the
__./scripts__ folder.
2022-12-21 22:41:35 +02:00
Yann Braga
c6f0236ada
Merge pull request #20365 from storybookjs/kasper/sb-1044-store-extra-sandbox-metadata-to-our
Build: store extra metadata for each sandbox test
2022-12-21 19:48:46 +01:00