9212 Commits

Author SHA1 Message Date
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
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
Yann Braga
065cc587c4 Merge branch 'next' into chore_docs_fix_dead_links_monorepo 2022-04-22 16:54:59 +02:00
Jimmy Somsanith
84a67cf7d7 tests 2022-04-22 15:25:40 +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
Jimmy Somsanith
e6a4baccdc oops 2022-04-19 22:32:18 +02:00
Jimmy Somsanith
d3b6fac9ab reset tooltip component 2022-04-19 22:30:33 +02:00
Alex Laughnan
c6402b7e45
docs(storyshots): update wording for puppeteer addon 2022-04-19 12:42:24 -07:00
Jimmy Somsanith
e9498c40b2 feat(#15866): % of users in a11y simulation tool 2022-04-19 15:54:28 +02:00
Joe Cocco
b1e94486a5
Merge branch 'storybookjs:next' into toolbar-dynamic-title 2022-04-19 01:50:55 -07:00
Jimmy Somsanith
50f4241958 fix(#12622): addon-a11y import with vite 2022-04-18 22:24:13 +02: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
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 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
Jimmy Somsanith
3699c29407 fix(#16232): use a11y params > element properly 2022-04-17 16:48:42 +02:00
Jimmy Somsanith
1c33d26a90 fix tests 2022-04-17 15:31:38 +02:00
Jimmy Somsanith
7d836c94b7 fix typing 2022-04-17 11:52:52 +02:00
Jimmy Somsanith
147271d4b0 clean 2022-04-17 11:45:14 +02:00
Jimmy Somsanith
21afa08743 simpler implementation 2022-04-17 11:32:22 +02:00
Jimmy Somsanith
f48b9412dc feat(#16235): display a11y issues number in addon tab title 2022-04-17 11:32:22 +02: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
Michael Shilman
064e98d1a3 Update git head to 6.5.0-alpha.63, update yarn.lock 2022-04-14 16:55:32 +08:00
Michael Shilman
416f87dc71 v6.5.0-alpha.63 2022-04-14 16:51:45 +08:00
Yann Braga
c13f591140 chore(storybook): add object inspector examples to MethodCall 2022-04-14 10:29:55 +02:00
Michael Shilman
f646372fa1 Update root, peer deps, version.ts/json to 6.5.0-alpha.63 [ci skip] 2022-04-14 16:24:34 +08:00
Yann Braga
35fffd86a7 fix(addon-interactions): respect dark mode in object inspector 2022-04-14 10:24:26 +02:00
Yann Braga
e6b3d9e0d7 Merge branch 'next' into fix/method-call-reporting-inconsistency 2022-04-13 18:20:58 +02:00
Yann Braga
b4a16f5d82 feat(addon-interactions): add object inspector 2022-04-13 18:17:58 +02:00
Michael Shilman
6d8f993dfb Update git head to 6.5.0-alpha.62, update yarn.lock 2022-04-13 09:29:10 +08:00
Michael Shilman
e602507837 v6.5.0-alpha.62 2022-04-13 09:13:48 +08:00
Michael Shilman
3c494fa8a3 Update root, peer deps, version.ts/json to 6.5.0-alpha.62 [ci skip] 2022-04-13 08:53:47 +08:00
Michael Shilman
552f74c9d1 Update git head to 6.5.0-alpha.61, update yarn.lock 2022-04-12 00:17:59 +08:00
Michael Shilman
ed6c89be97 v6.5.0-alpha.61 2022-04-12 00:14:06 +08:00
Michael Shilman
2ab1ecaa21 Update root, peer deps, version.ts/json to 6.5.0-alpha.61 [ci skip] 2022-04-11 23:57:54 +08:00
Tom Coleman
5fa12bedd3 Change entrypoints to be ESM 2022-04-11 11:44:44 +10:00
jonniebigodes
7b00fbbaa0
Merge pull request #17758 from Pepijnk12/documentation-fixes
Fix documentation typos and grammatical errors
2022-04-08 19:39:33 +01:00
Michael Shilman
eb30df9565 Update git head to 6.5.0-alpha.60, update yarn.lock 2022-04-09 02:33:59 +08:00
Michael Shilman
b45a2371f8 v6.5.0-alpha.60 2022-04-09 02:30:24 +08:00
jonniebigodes
0460fb4194
Merge branch 'next' into documentation-fixes 2022-04-08 19:26:04 +01:00
Michael Shilman
85d408d554 Update root, peer deps, version.ts/json to 6.5.0-alpha.60 [ci skip] 2022-04-09 02:16:47 +08:00
Michael Shilman
a24e6cc020 Upgrade polished to 4.2.2 2022-04-08 07:52:58 +08:00
Joe Cocco
8825319b42 Merge branch 'next' into toolbar-dynamic-title 2022-04-07 17:43:45 +00:00
Michael Shilman
1a57704cbd Update git head to 6.5.0-alpha.59, update yarn.lock 2022-04-07 17:09:50 +08:00
Michael Shilman
5c572a448c v6.5.0-alpha.59 2022-04-07 17:06:08 +08:00
Michael Shilman
1c0e4a2fdc Update root, peer deps, version.ts/json to 6.5.0-alpha.59 [ci skip] 2022-04-07 16:50:09 +08:00