39519 Commits

Author SHA1 Message Date
Michael Shilman
4d8bdc5ed0 Simplify package.json for sb build/dev 2022-04-26 11:43:46 +08:00
Michael Shilman
664191c913 Merge branch 'future/base' into future/sb-start-build 2022-04-24 14:31:26 +08:00
Michael Shilman
4acf6c096c 6.5.0-beta.0 next.json version file 2022-04-24 14:22:01 +08:00
Michael Shilman
38ecfb2e14 Update git head to 6.5.0-beta.0, update yarn.lock 2022-04-24 14:19:59 +08:00
Michael Shilman
b2e85f3599 v6.5.0-beta.0 v6.5.0-beta.0 2022-04-24 14:16:08 +08:00
Michael Shilman
6d9eeae17b Update root, peer deps, version.ts/json to 6.5.0-beta.0 [ci skip] 2022-04-24 13:49:03 +08:00
Michael Shilman
02ccd3b3a9 6.5.0-beta.0 changelog 2022-04-24 13:48:20 +08:00
Yann Braga
9ca856b98b
Merge pull request #18031 from italoteix/feat/add-interactions-to-vue3-cli-template
CLI/Vue3: add interactions to vue3 cli template
2022-04-23 10:31:52 +02:00
jonniebigodes
9977a79552
Merge pull request #18005 from laughnan/storyshots-puppeteer-docs
docs(storyshots): update wording for puppeteer addon
2022-04-23 01:01:00 +01:00
jonniebigodes
48a214b0e1
Merge pull request #18020 from jdgomezb/patch-1
Update README.md
2022-04-23 00:55:15 +01:00
jonniebigodes
d652dff2c8
Merge pull request #18006 from matthewborgman/patch-1
Remove errant `,` in example that causes compilation errors
2022-04-23 00:47:46 +01:00
Ítalo Teixeira
02b6586573 feat: add interactions to vue3 cli template 2022-04-23 00:18:54 +02:00
jonniebigodes
4c569ddd55
Merge pull request #17846 from storybookjs/chore_docs_fix_dead_links_monorepo
Chore: (Docs) Fixes links across the monorepo
2022-04-22 21:09:14 +01:00
Yann Braga
2262d27e24
Merge pull request #17993 from italoteix/feat/add-interactions-to-svelte-cli-template
CLI/Svelte: add interactions to cli template
2022-04-22 17:29:44 +02:00
Yann Braga
065cc587c4 Merge branch 'next' into chore_docs_fix_dead_links_monorepo 2022-04-22 16:54:59 +02:00
Ian VanSchooten
a93609d090
Addon-a11y: fix axe-core import syntax for vite (#17997)
Issue: #12622

`Axe-core` exposes a commonjs module equivalent to 
```javascript
const axe = {};
// a bunch of code adding functions in axe object

module.exports = axe;
```
Storybook with builder-vite wraps axe-core dynamic import and ends up with a module containing only default export.
```javascript
// axe-core module with vite
{
  default: { run, reset, ... }
}
```

Webpack has another behavior, and ends up with a module containing default and all the named export function.
```javascript
// axe-core module with vite
{
  default: { run, reset, ... },
  run,
  reset,
  ...
}
```

But `addon-a11y` imports `axe-core` and use it directly with `axe.run()` for example, consuming the named exports.
For storybook with vite, it fails as `axe.run()` doesn't exist, whereas `axe.default.run()` exists.

## What I did

In `addon-a11y`, consume axe default export as it is always available.

## How to test

- [ ] Is this testable with Jest or Chromatic screenshots?
- [ ] Does this need a new example in the kitchen sink apps?
- [ ] Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

<!--

Everybody: Please submit all PRs to the `next` branch unless they are specific to the current release. Storybook maintainers cherry-pick bug and documentation fixes into the `master` branch as part of the release process, so you shouldn't need to worry about this. For additional guidance: https://storybook.js.org/docs/react/contribute/how-to-contribute

Maintainers: Please tag your pull request with at least one of the following:
`["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]`

-->
2022-04-22 08:43:14 -04:00
JD Gomez
9a34926bd4
Update README.md 2022-04-21 11:33:50 -05:00
Michael Shilman
88b134c135
Merge pull request #17647 from storybookjs/feat/move-rerun-button-to-subnav
UI: Move the "Rerun interactions" button to Subnav
2022-04-21 18:01:42 +08:00
Yann Braga
80a96de61a Merge branch 'next' into feat/add-interactions-to-svelte-cli-template 2022-04-21 11:33:40 +02:00
Matthew Borgman
7fb8699305
Remove errant , that's causing compilation errors
```
Error: Module build failed (from ../../node_modules/@mdx-js/loader/index.js):
SyntaxError: unknown: Unexpected token (195:16)

  193 |   language='css'
  194 |   dark
> 195 |   format={false},
      |                 ^
  196 |   code={`
  197 |      .container {
  198 |        display: grid | inline-grid;
```
2022-04-19 15:27:25 -05:00
Alex Laughnan
c6402b7e45
docs(storyshots): update wording for puppeteer addon 2022-04-19 12:42:24 -07:00
Kyle Gach
18ef57b407
Merge pull request #17944 from lhew/patch-1
documentation: Update react/storybook-testing-addon-optional-config.js.mdx
2022-04-19 08:58:13 -06:00
Leonardo Marques
172a8e8102
Update storybook-testing-addon-optional-config.3.js.mdx
As requested for this PR
2022-04-19 10:31:20 +02:00
Leonardo Marques
406950fee0
Update storybook-testing-addon-optional-config.2.js.mdx
As per requested for completion of this PR
2022-04-19 10:29:49 +02:00
Jimmy Somsanith
50f4241958 fix(#12622): addon-a11y import with vite 2022-04-18 22:24:13 +02:00
Kyle Gach
2de4b0e9a0
Merge pull request #17446 from pd4d10/patch-1
Remove invalid example link
2022-04-18 09:11:21 -06:00
Kyle Gach
e592e40a4b
Merge pull request #17452 from huyenltnguyen/docs/update
docs(addon-links): correct the import statement of LinkTo
2022-04-18 09:07:37 -06:00
Ítalo Teixeira
6305d99860 feat: add interactions to svelte cli template 2022-04-18 16:21:25 +02:00
Michael Shilman
304df85c95 Update yarn.lock 2022-04-18 11:23:19 +08:00
Michael Shilman
0875d5fafd CLI: Use sb build/dev 2022-04-18 11:17:26 +08:00
Michael Shilman
f896aa8c0c Merge branch 'future/base' into future/sb-start-build 2022-04-18 10:47:10 +08:00
Michael Shilman
96f6276daa 6.5.0-alpha.64 next.json version file 2022-04-18 10:32:07 +08:00
Michael Shilman
a942cb921c Update git head to 6.5.0-alpha.64, update yarn.lock 2022-04-18 10:28:41 +08:00
Michael Shilman
7417a230d6 v6.5.0-alpha.64 v6.5.0-alpha.64 2022-04-18 10:25:22 +08:00
Michael Shilman
8a0a6fb51a Update root, peer deps, version.ts/json to 6.5.0-alpha.64 [ci skip] 2022-04-18 10:04:38 +08:00
Michael Shilman
6ce0cc11c7 6.5.0-alpha.64 changelog 2022-04-18 10:01:01 +08:00
Michael Shilman
c59904b6ea
Merge pull request #17649 from storybookjs/fix/method-call-reporting-inconsistency
Interactions: Fix show length of object value on MethodCall
2022-04-18 09:33:05 +08:00
Michael Shilman
396c1a9c48
Merge pull request #17987 from storybookjs/react-18-import
React: Fix React 18 react-dom/client dynamic import syntax
2022-04-18 09:30:46 +08:00
Ian VanSchooten
d19fdec25d Fix React 18 react-dom/client dynamic import 2022-04-17 21:17:33 -04:00
Michael Shilman
6415d8ec47
Merge pull request #17939 from storybookjs/fix-17914-svelte-babel-v7-mode
Svelte: Fix webpack5/babelModeV7
2022-04-18 03:12:36 +08:00
Michael Shilman
0de0719db8
Merge pull request #17984 from italoteix/feat/add-interactions-to-preact-cli-template
CLI/Preact: add interactions to cli template
2022-04-17 09:11:30 +08:00
Ítalo Teixeira
10caa770b9 feat: add interactions to preact cli template 2022-04-16 16:34:20 +02:00
Michael Shilman
fbac1ac2df Merge branch 'next' into future/sb-start-build 2022-04-16 07:54:28 +08:00
Michael Shilman
157f6256ba
Merge pull request #17977 from storybookjs/fix/remove-deprecated-addon-stories
Examples: Remove stories from deprecated `options`/`queryparams` addons
2022-04-16 07:51:24 +08:00
Yann Braga
d118b0350d Merge branch 'next' into fix/method-call-reporting-inconsistency 2022-04-15 18:23:56 +02:00
Yann Braga
82599bc06b fix(addon-interactions): redo object keys length 2022-04-15 18:20:38 +02:00
Yann Braga
36be97a7e3 remove stories from deprecated addons: options and queryparams 2022-04-15 14:55:21 +02:00
Michael Shilman
0ad68a85e2 cra-react15: fix smoke test 2022-04-14 22:35:07 +08:00
Michael Shilman
2332b9724c Angular-cli: Fix build-storybook 2022-04-14 22:19:46 +08:00
jonniebigodes
3e1874a82d
Merge pull request #17905 from josh-degraw/next
docs: Fix reference to essentials configuration
2022-04-14 15:06:48 +01:00