Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: storybookjs/storybook
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.5.9
Choose a base ref
...
head repository: storybookjs/storybook
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.5.10
Choose a head ref

Commits on Jun 13, 2022

  1. Copy the full SHA
    dd27cb1 View commit details
  2. Copy the full SHA
    bf98ade View commit details

Commits on Jul 26, 2022

  1. Merge pull request #18483 from alexguja/patch-1

    Update test-runner.md
    jonniebigodes authored and shilman committed Jul 26, 2022
    Copy the full SHA
    f3962b3 View commit details
  2. Merge pull request #18479 from storybookjs/fix/skip-to-sidebar-button

    fix: display skip to sidebar button
    ndelangen authored and shilman committed Jul 26, 2022
    Copy the full SHA
    314ae49 View commit details
  3. Merge pull request #18510 from storybookjs/tom/sb-372-sb18298-set-leg…

    …acy-peer-deps=true-in
    
    CLI: Add npm7 migration for legacy peer deps
    shilman committed Jul 26, 2022
    Copy the full SHA
    35cc955 View commit details
  4. Merge pull request #18565 from storybookjs/fix-docs-404s

    Fix /docs 404s
    jonniebigodes authored and shilman committed Jul 26, 2022
    Copy the full SHA
    5d403cd View commit details
  5. Merge pull request #18568 from storybookjs/fix-test-runner-doc

    Fix syntax error in `test-runner.md`
    kylegach authored and shilman committed Jul 26, 2022
    Copy the full SHA
    d6bf0d2 View commit details
  6. Merge pull request #18566 from minimalsm/patch-1

    Improve link text (whats-a-story doc)
    jonniebigodes authored and shilman committed Jul 26, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5073b7d View commit details
  7. Merge pull request #18523 from sruthigithub/code-snippets-for-framework

    Update document to show storybook initialization using npm.
    jonniebigodes authored and shilman committed Jul 26, 2022
    Copy the full SHA
    b220097 View commit details
  8. Merge pull request #18354 from Daraphista/next

    UI: Fix sidebar a11y by moving aria-expanded attribute to button
    kylegach authored and shilman committed Jul 26, 2022
    Copy the full SHA
    b9f3690 View commit details
  9. Merge pull request #17708 from rygine/rygine/fix-css-typo

    Fix typo in CSS pseudo selector
    ndelangen authored and shilman committed Jul 26, 2022
    Copy the full SHA
    17950fd View commit details
  10. Merge pull request #18592 from storybookjs/chore_docs_update_storyboo…

    …k_commands
    
    Chore: (Docs) updates references to storybook commands
    jonniebigodes authored and shilman committed Jul 26, 2022
    Copy the full SHA
    2f4aeb3 View commit details
  11. Merge pull request #16938 from 0xR/patch-1

    Improve the interaction readme
    ndelangen authored and shilman committed Jul 26, 2022
    Copy the full SHA
    215294e View commit details
  12. Merge pull request #17034 from richorrichard/16937-theming-change-nor…

    …mal-theme-to-light-theme
    
    (Theming) Replace references to `themes.normal` with `themes.light`
    ndelangen authored and shilman committed Jul 26, 2022
    Copy the full SHA
    3e8ceba View commit details
  13. Merge pull request #18605 from redbugz/fix-control-color-typo

    fix typo in gizmo example
    jonniebigodes authored and shilman committed Jul 26, 2022
    Copy the full SHA
    595c7a6 View commit details
  14. Merge pull request #18508 from Matthew-Smith/html-introduction-examples

    docs: Add html framework examples for the introduction page
    jonniebigodes authored and shilman committed Jul 26, 2022
    Copy the full SHA
    337c204 View commit details
  15. Merge pull request #18650 from storybookjs/env-vars-vite

    Mention import.meta.env for vite builder
    jonniebigodes authored and shilman committed Jul 26, 2022
    Copy the full SHA
    d8f63c7 View commit details
  16. Merge pull request #18678 from storybookjs/seo-page

    docs: Add SEO section to Publish docs page
    jonniebigodes authored and shilman committed Jul 26, 2022
    Copy the full SHA
    97e7684 View commit details
  17. Merge pull request #18690 from storybookjs/chore_fix_testing_docs

    Chore: (Docs) Minor polish to the A11y docs
    jonniebigodes authored and shilman committed Jul 26, 2022
    Copy the full SHA
    3f70ffc View commit details
  18. Merge pull request #18648 from benmccann/patch-4

    bug: always create main with cjs extension
    ndelangen authored and shilman committed Jul 26, 2022
    Copy the full SHA
    9c4f59b View commit details
  19. Merge pull request #18714 from storybookjs/fix-commonjs-detection

    CLI: Fix detection of type: module when initializing storybook
    IanVS authored and shilman committed Jul 26, 2022
    Copy the full SHA
    39378a9 View commit details
  20. Merge pull request #18693 from jsflor/patch-2

    CLI: Fix addons register in RN template
    shilman committed Jul 26, 2022
    Copy the full SHA
    526266d View commit details
  21. Merge pull request #18645 from benmccann/patch-3

    Svelte: Make `svelte-loader` optional dependency
    shilman committed Jul 26, 2022
    Copy the full SHA
    6232b79 View commit details
  22. Merge pull request #17430 from huyenltnguyen/fix/toolbars

    Toolbars: Fall back to name if both title and icon are not specified
    shilman committed Jul 26, 2022
    Copy the full SHA
    0d031bb View commit details
  23. Merge pull request #18711 from storybookjs/tom/sb-419-sb18477-changes…

    …-to-global-values-do-not
    
    Preview: Ensure docs container re-renders when globals change
    shilman committed Jul 26, 2022
    Copy the full SHA
    39171b8 View commit details
  24. Merge pull request #18522 from storybookjs/actually-use-npm7-migration

    CLI: Hook up the npm7 migration
    shilman committed Jul 26, 2022
    Copy the full SHA
    5b5c62e View commit details
  25. Merge pull request #18425 from storybookjs/tech/rebundle-syntax-highl…

    …ighter
    
    Components: Re-bundle the syntax highlighter
    ndelangen authored and shilman committed Jul 26, 2022
    Copy the full SHA
    49f3fe2 View commit details
  26. 6.5.10-alpha.0 changelog

    shilman committed Jul 26, 2022
    Copy the full SHA
    cc8c17c View commit details
  27. Copy the full SHA
    2d6f1ee View commit details
  28. v6.5.10-alpha.0

    shilman committed Jul 26, 2022
    Copy the full SHA
    1a48f7a View commit details
  29. Copy the full SHA
    b12c331 View commit details

Commits on Aug 2, 2022

  1. Merge pull request #18816 from storybookjs/fix/sb-init-uncaught-excep…

    …tion
    
    fix(CLI): throw error on failure in sb init
    tmeasday authored and shilman committed Aug 2, 2022
    Copy the full SHA
    0fb5e97 View commit details
  2. Merge pull request #18828 from JULO01/patch-2

    Docs: Fix Typo in list-story-starter.ts-3.ts.mdx
    jonniebigodes authored and shilman committed Aug 2, 2022
    Copy the full SHA
    0d00450 View commit details
  3. Merge pull request #18831 from storybookjs/norbert/sb-445-sb18376-ext…

    …ractargtypes-doesnt-function
    
    fix missing ability to set docs.`extractArgTypes` for html framework
    ndelangen authored and shilman committed Aug 2, 2022
    Copy the full SHA
    20db22a View commit details
  4. Merge pull request #18706 from storybookjs/run-interactions-condition…

    …ally
    
    Interactions: Run conditionally based on query param
    shilman committed Aug 2, 2022
    Copy the full SHA
    25e1c62 View commit details
  5. 6.5.10-alpha.1 changelog

    shilman committed Aug 2, 2022
    Copy the full SHA
    6e0fd1a View commit details
  6. Copy the full SHA
    2024edf View commit details
  7. v6.5.10-alpha.1

    shilman committed Aug 2, 2022
    Copy the full SHA
    b02a0ef View commit details
  8. Copy the full SHA
    2655803 View commit details

Commits on Aug 3, 2022

  1. Copy the full SHA
    8933634 View commit details
  2. 6.5.10 changelog

    shilman committed Aug 3, 2022
    Copy the full SHA
    c3b5588 View commit details
  3. Copy the full SHA
    200f0c5 View commit details
  4. v6.5.10

    shilman committed Aug 3, 2022
    Copy the full SHA
    893881f View commit details
Showing with 2,189 additions and 1,423 deletions.
  1. +68 −0 CHANGELOG.md
  2. +9 −9 addons/a11y/package.json
  3. +3 −3 addons/a11y/src/components/A11yContext.tsx
  4. +8 −8 addons/actions/package.json
  5. +8 −8 addons/backgrounds/package.json
  6. +10 −10 addons/controls/package.json
  7. +14 −14 addons/docs/package.json
  8. +15 −15 addons/essentials/package.json
  9. +9 −6 addons/interactions/README.md
  10. +10 −10 addons/interactions/package.json
  11. +9 −9 addons/interactions/src/components/List.tsx
  12. +8 −8 addons/jest/package.json
  13. +5 −5 addons/jest/src/components/Panel.tsx
  14. +1 −1 addons/jest/src/components/Result.tsx
  15. +6 −6 addons/links/package.json
  16. +7 −7 addons/measure/package.json
  17. +7 −7 addons/outline/package.json
  18. +12 −12 addons/storyshots/storyshots-core/package.json
  19. +4 −4 addons/storyshots/storyshots-puppeteer/package.json
  20. +9 −9 addons/storysource/package.json
  21. +7 −7 addons/toolbars/package.json
  22. +8 −0 addons/toolbars/src/components/ToolbarMenuList.tsx
  23. +8 −8 addons/viewport/package.json
  24. +11 −11 app/angular/package.json
  25. +6 −6 app/ember/package.json
  26. +8 −8 app/html/package.json
  27. +3 −1 app/html/src/client/docs/config.ts
  28. +6 −6 app/preact/package.json
  29. +9 −9 app/react/package.json
  30. +10 −10 app/server/package.json
  31. +14 −9 app/svelte/package.json
  32. +8 −8 app/vue/package.json
  33. +7 −7 app/vue3/package.json
  34. +10 −10 app/web-components/package.json
  35. +1 −1 docs/addons/writing-addons.md
  36. +2 −2 docs/builders/overview.md
  37. +1 −1 docs/builders/vite.md
  38. +1 −1 docs/configure/babel.md
  39. +1 −1 docs/configure/environment-variables.md
  40. +2 −1 docs/configure/features-and-behavior.md
  41. +2 −2 docs/configure/overview.md
  42. +1 −1 docs/configure/story-rendering.md
  43. +2 −2 docs/configure/styling-and-css.md
  44. +6 −4 docs/configure/upgrading.md
  45. +3 −3 docs/contribute/code.md
  46. +1 −1 docs/contribute/how-to-reproduce.md
  47. +1 −1 docs/essentials/introduction.md
  48. +66 −74 docs/faq.md
  49. +5 −5 docs/frameworks.js
  50. +9 −3 docs/get-started/installation-problems/angular.mdx
  51. +7 −1 docs/get-started/installation-problems/ember.mdx
  52. +1 −1 docs/get-started/installation-problems/html.mdx
  53. +7 −1 docs/get-started/installation-problems/preact.mdx
  54. +8 −2 docs/get-started/installation-problems/react.mdx
  55. +7 −1 docs/get-started/installation-problems/svelte.mdx
  56. +8 −2 docs/get-started/installation-problems/vue.mdx
  57. +1 −1 docs/get-started/installation-problems/web-components.mdx
  58. +1 −1 docs/get-started/whats-a-story.md
  59. +37 −1 docs/sharing/publish-storybook.md
  60. +3 −3 docs/sharing/storybook-composition.md
  61. +1 −1 docs/snippets/common/gizmo-story-controls-customization.js.mdx
  62. +1 −1 docs/snippets/common/gizmo-story-controls-customization.mdx.mdx
  63. +5 −0 docs/snippets/common/seo-description.html.mdx
  64. +5 −0 docs/snippets/common/seo-noindex.html.mdx
  65. +21 −0 docs/snippets/html/button-story-component-decorator.js.mdx
  66. +23 −0 docs/snippets/html/button-story-component-decorator.ts.mdx
  67. +13 −0 docs/snippets/html/button-story-default-exports.js.mdx
  68. +15 −0 docs/snippets/html/button-story-default-exports.ts.mdx
  69. +16 −0 docs/snippets/html/button-story-rename-story.js.mdx
  70. +18 −0 docs/snippets/html/button-story-rename-story.ts.mdx
  71. +26 −0 docs/snippets/html/button-story-using-args.js.mdx
  72. +27 −0 docs/snippets/html/button-story-using-args.ts.mdx
  73. +2 −0 docs/snippets/html/button-story-with-args.js.mdx
  74. +9 −2 docs/snippets/html/button-story-with-args.ts.mdx
  75. +25 −0 docs/snippets/html/button-story-with-blue-args.js.mdx
  76. +27 −0 docs/snippets/html/button-story-with-blue-args.ts.mdx
  77. +16 −0 docs/snippets/html/button-story-with-emojis.js.mdx
  78. +17 −0 docs/snippets/html/button-story-with-emojis.ts.mdx
  79. +2 −0 docs/snippets/html/button-story.js.mdx
  80. +2 −0 docs/snippets/html/button-story.ts.mdx
  81. +27 −0 docs/snippets/html/list-story-expanded.js.mdx
  82. +29 −0 docs/snippets/html/list-story-expanded.ts.mdx
  83. +22 −0 docs/snippets/html/list-story-reuse-data.js.mdx
  84. +32 −0 docs/snippets/html/list-story-reuse-data.ts.mdx
  85. +12 −0 docs/snippets/html/list-story-starter.js.mdx
  86. +14 −0 docs/snippets/html/list-story-starter.ts.mdx
  87. +1 −1 docs/snippets/vue/list-story-starter.ts-3.ts.mdx
  88. +1 −1 docs/versions/latest.json
  89. +2 −0 docs/writing-stories/args.md
  90. +20 −0 docs/writing-stories/introduction.md
  91. +1 −1 docs/writing-tests/accessibility-testing.md
  92. +2 −2 docs/writing-tests/interaction-testing.md
  93. +2 −2 docs/writing-tests/test-runner.md
  94. +14 −14 examples/angular-cli/package.json
  95. +13 −13 examples/cra-kitchen-sink/package.json
  96. +7 −7 examples/cra-react15/package.json
  97. +7 −7 examples/cra-ts-essentials/package.json
  98. +8 −8 examples/cra-ts-kitchen-sink/package.json
  99. +12 −12 examples/ember-cli/package.json
  100. +7 −7 examples/external-docs/package.json
  101. +17 −17 examples/html-kitchen-sink/package.json
  102. +23 −23 examples/official-storybook/package.json
  103. +3 −3 examples/official-storybook/stories/addon-a11y/highlight.stories.js
  104. +26 −7 examples/official-storybook/stories/addon-docs/container-override.stories.mdx
  105. +11 −11 examples/preact-kitchen-sink/package.json
  106. +5 −5 examples/react-ts-webpack4/package.json
  107. +9 −9 examples/react-ts/package.json
  108. +8 −8 examples/server-kitchen-sink/package.json
  109. +4 −4 examples/standalone-preview/package.json
  110. +14 −14 examples/svelte-kitchen-sink/package.json
  111. +7 −7 examples/vue-3-cli/package.json
  112. +5 −5 examples/vue-cli/package.json
  113. +14 −14 examples/vue-kitchen-sink/package.json
  114. +12 −12 examples/web-components-kitchen-sink/package.json
  115. +1 −1 lerna.json
  116. +8 −8 lib/addons/package.json
  117. +7 −7 lib/api/package.json
  118. +1 −1 lib/api/src/version.ts
  119. +17 −17 lib/builder-webpack4/package.json
  120. +16 −16 lib/builder-webpack5/package.json
  121. +5 −5 lib/channel-postmessage/package.json
  122. +4 −4 lib/channel-websocket/package.json
  123. +2 −2 lib/channels/package.json
  124. +3 −3 lib/cli-sb/package.json
  125. +3 −3 lib/cli-storybook/package.json
  126. +8 −8 lib/cli/package.json
  127. +10 −1 lib/cli/src/automigrate/fixes/index.ts
  128. +47 −0 lib/cli/src/automigrate/fixes/npm7.test.ts
  129. +41 −0 lib/cli/src/automigrate/fixes/npm7.ts
  130. +6 −1 lib/cli/src/generate.ts
  131. +2 −2 lib/cli/src/generators/REACT_NATIVE/template-csf/storybook/rn-addons.js
  132. +1 −4 lib/cli/src/generators/SVELTE/index.ts
  133. +3 −2 lib/cli/src/generators/baseGenerator.ts
  134. +23 −2 lib/cli/src/js-package-manager/NPMProxy.ts
  135. +57 −57 lib/cli/src/versions.ts
  136. +8 −8 lib/client-api/package.json
  137. +2 −2 lib/client-logger/package.json
  138. +4 −4 lib/codemod/package.json
  139. +6 −6 lib/components/package.json
  140. +11 −11 lib/core-client/package.json
  141. +3 −3 lib/core-common/package.json
  142. +2 −2 lib/core-common/templates/base-preview-head.html
  143. +2 −2 lib/core-events/package.json
  144. +12 −12 lib/core-server/package.json
  145. +4 −4 lib/core/package.json
  146. +2 −2 lib/csf-tools/package.json
  147. +3 −3 lib/docs-tools/package.json
  148. +5 −5 lib/instrumenter/package.json
  149. +13 −2 lib/instrumenter/src/instrumenter.ts
  150. +8 −8 lib/manager-webpack4/package.json
  151. +8 −8 lib/manager-webpack5/package.json
  152. +2 −2 lib/node-logger/package.json
  153. +2 −2 lib/postinstall/package.json
  154. +7 −7 lib/preview-web/package.json
  155. +2 −2 lib/preview-web/src/DocsRender.ts
  156. +22 −2 lib/preview-web/src/PreviewWeb.test.ts
  157. +2 −2 lib/preview-web/src/PreviewWeb.tsx
  158. +3 −3 lib/router/package.json
  159. +4 −4 lib/source-loader/package.json
  160. +5 −5 lib/store/package.json
  161. +4 −4 lib/telemetry/package.json
  162. +3 −3 lib/theming/package.json
  163. +10 −10 lib/ui/package.json
  164. +1 −0 lib/ui/src/components/preview/FramesRenderer.tsx
  165. +1 −1 lib/ui/src/components/sidebar/Tree.tsx
  166. +1 −1 package.json
  167. +579 −563 yarn.lock
68 changes: 68 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,71 @@
## 6.5.10 (August 3, 2022)

#### Maintenance

- Interactions: Run conditionally based on query param [#18706](https://github.com/storybooks/storybook/pull/18706)
- Components: Re-bundle the syntax highlighter [#18425](https://github.com/storybooks/storybook/pull/18425)
- Svelte: Make `svelte-loader` optional dependency [#18645](https://github.com/storybooks/storybook/pull/18645)
- Theming: Replace references to `themes.normal` with `themes.light` [#17034](https://github.com/storybooks/storybook/pull/17034)

#### Bug Fixes

- HTML: Fix missing ability to set `docs.extractArgTypes` [#18831](https://github.com/storybooks/storybook/pull/18831)
- CLI: Throw error on failure in sb init [#18816](https://github.com/storybooks/storybook/pull/18816)
- CLI: Hook up the npm7 migration [#18522](https://github.com/storybooks/storybook/pull/18522)
- Preview: Ensure docs container re-renders when globals change [#18711](https://github.com/storybooks/storybook/pull/18711)
- Toolbars: Fall back to name if both title and icon are not specified [#17430](https://github.com/storybooks/storybook/pull/17430)
- CLI: Fix addons register in RN template [#18693](https://github.com/storybooks/storybook/pull/18693)
- CLI: Fix detection of type: module when initializing storybook [#18714](https://github.com/storybooks/storybook/pull/18714)
- CLI/Svelte: Always create main with cjs extension [#18648](https://github.com/storybooks/storybook/pull/18648)
- Fix typo in CSS pseudo selector [#17708](https://github.com/storybooks/storybook/pull/17708)
- UI: Fix sidebar a11y by moving aria-expanded attribute to button [#18354](https://github.com/storybooks/storybook/pull/18354)
- CLI: Add npm7 migration for legacy peer deps [#18510](https://github.com/storybooks/storybook/pull/18510)
- UI: Fix display skip to sidebar button [#18479](https://github.com/storybooks/storybook/pull/18479)
- Core: Fix process is not defined when using components [#18469](https://github.com/storybooks/storybook/pull/18469)

#### Dependency Upgrades

- Core: Fix process is not defined [#18367](https://github.com/storybooks/storybook/pull/18367)
- Core: Fix PnP compatibility for @storybook/ui and @storybook/router packages [#18412](https://github.com/storybooks/storybook/pull/18412)

## 6.5.10-alpha.1 (August 2, 2022)

#### Maintenance

- Interactions: Run conditionally based on query param [#18706](https://github.com/storybooks/storybook/pull/18706)

#### Bug Fixes

- HTML: Fix missing ability to set `docs.extractArgTypes` [#18831](https://github.com/storybooks/storybook/pull/18831)
- CLI: Throw error on failure in sb init [#18816](https://github.com/storybooks/storybook/pull/18816)

## 6.5.10-alpha.0 (July 26, 2022)

#### Bug Fixes

- CLI: Hook up the npm7 migration [#18522](https://github.com/storybooks/storybook/pull/18522)
- Preview: Ensure docs container re-renders when globals change [#18711](https://github.com/storybooks/storybook/pull/18711)
- Toolbars: Fall back to name if both title and icon are not specified [#17430](https://github.com/storybooks/storybook/pull/17430)
- CLI: Fix addons register in RN template [#18693](https://github.com/storybooks/storybook/pull/18693)
- CLI: Fix detection of type: module when initializing storybook [#18714](https://github.com/storybooks/storybook/pull/18714)
- CLI/Svelte: Always create main with cjs extension [#18648](https://github.com/storybooks/storybook/pull/18648)
- Fix typo in CSS pseudo selector [#17708](https://github.com/storybooks/storybook/pull/17708)
- UI: Fix sidebar a11y by moving aria-expanded attribute to button [#18354](https://github.com/storybooks/storybook/pull/18354)
- CLI: Add npm7 migration for legacy peer deps [#18510](https://github.com/storybooks/storybook/pull/18510)
- UI: Fix display skip to sidebar button [#18479](https://github.com/storybooks/storybook/pull/18479)
- Core: Fix process is not defined when using components [#18469](https://github.com/storybooks/storybook/pull/18469)

#### Maintenance

- Components: Re-bundle the syntax highlighter [#18425](https://github.com/storybooks/storybook/pull/18425)
- Svelte: Make `svelte-loader` optional dependency [#18645](https://github.com/storybooks/storybook/pull/18645)
- Theming: Replace references to `themes.normal` with `themes.light` [#17034](https://github.com/storybooks/storybook/pull/17034)

#### Dependency Upgrades

- Core: Fix process is not defined [#18367](https://github.com/storybooks/storybook/pull/18367)
- Core: fix PnP compatibility for @storybook/ui and @storybook/router packages [#18412](https://github.com/storybooks/storybook/pull/18412)

## 6.5.9 (June 14, 2022)

### Bug Fixes
18 changes: 9 additions & 9 deletions addons/a11y/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-a11y",
"version": "6.5.9",
"version": "6.5.10",
"description": "Test component compliance with web accessibility standards",
"keywords": [
"a11y",
@@ -45,14 +45,14 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.5.9",
"@storybook/api": "6.5.9",
"@storybook/channels": "6.5.9",
"@storybook/client-logger": "6.5.9",
"@storybook/components": "6.5.9",
"@storybook/core-events": "6.5.9",
"@storybook/addons": "6.5.10",
"@storybook/api": "6.5.10",
"@storybook/channels": "6.5.10",
"@storybook/client-logger": "6.5.10",
"@storybook/components": "6.5.10",
"@storybook/core-events": "6.5.10",
"@storybook/csf": "0.0.2--canary.4566f4d.1",
"@storybook/theming": "6.5.9",
"@storybook/theming": "6.5.10",
"axe-core": "^4.2.0",
"core-js": "^3.8.2",
"global": "^4.4.0",
@@ -81,7 +81,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "2d56b47695fae26cb13e94a65198658b1792c9ad",
"gitHead": "b02a0ef8866c6cf8c609a32a14b4c55f513aa569",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Accessibility",
6 changes: 3 additions & 3 deletions addons/a11y/src/components/A11yContext.tsx
Original file line number Diff line number Diff line change
@@ -22,9 +22,9 @@ interface A11yContextStore {
}

const colorsByType = [
convert(themes.normal).color.negative, // VIOLATION,
convert(themes.normal).color.positive, // PASS,
convert(themes.normal).color.warning, // INCOMPLETION,
convert(themes.light).color.negative, // VIOLATION,
convert(themes.light).color.positive, // PASS,
convert(themes.light).color.warning, // INCOMPLETION,
];

export const A11yContext = React.createContext<A11yContextStore>({
16 changes: 8 additions & 8 deletions addons/actions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-actions",
"version": "6.5.9",
"version": "6.5.10",
"description": "Get UI feedback when an action is performed on an interactive element",
"keywords": [
"storybook",
@@ -41,13 +41,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.5.9",
"@storybook/api": "6.5.9",
"@storybook/client-logger": "6.5.9",
"@storybook/components": "6.5.9",
"@storybook/core-events": "6.5.9",
"@storybook/addons": "6.5.10",
"@storybook/api": "6.5.10",
"@storybook/client-logger": "6.5.10",
"@storybook/components": "6.5.10",
"@storybook/core-events": "6.5.10",
"@storybook/csf": "0.0.2--canary.4566f4d.1",
"@storybook/theming": "6.5.9",
"@storybook/theming": "6.5.10",
"core-js": "^3.8.2",
"fast-deep-equal": "^3.1.3",
"global": "^4.4.0",
@@ -80,7 +80,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "2d56b47695fae26cb13e94a65198658b1792c9ad",
"gitHead": "b02a0ef8866c6cf8c609a32a14b4c55f513aa569",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Actions",
16 changes: 8 additions & 8 deletions addons/backgrounds/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-backgrounds",
"version": "6.5.9",
"version": "6.5.10",
"description": "Switch backgrounds to view components in different settings",
"keywords": [
"addon",
@@ -45,13 +45,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.5.9",
"@storybook/api": "6.5.9",
"@storybook/client-logger": "6.5.9",
"@storybook/components": "6.5.9",
"@storybook/core-events": "6.5.9",
"@storybook/addons": "6.5.10",
"@storybook/api": "6.5.10",
"@storybook/client-logger": "6.5.10",
"@storybook/components": "6.5.10",
"@storybook/core-events": "6.5.10",
"@storybook/csf": "0.0.2--canary.4566f4d.1",
"@storybook/theming": "6.5.9",
"@storybook/theming": "6.5.10",
"core-js": "^3.8.2",
"global": "^4.4.0",
"memoizerific": "^1.11.3",
@@ -77,7 +77,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "2d56b47695fae26cb13e94a65198658b1792c9ad",
"gitHead": "b02a0ef8866c6cf8c609a32a14b4c55f513aa569",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Backgrounds",
20 changes: 10 additions & 10 deletions addons/controls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-controls",
"version": "6.5.9",
"version": "6.5.10",
"description": "Interact with component inputs dynamically in the Storybook UI",
"keywords": [
"addon",
@@ -45,15 +45,15 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.5.9",
"@storybook/api": "6.5.9",
"@storybook/client-logger": "6.5.9",
"@storybook/components": "6.5.9",
"@storybook/core-common": "6.5.9",
"@storybook/addons": "6.5.10",
"@storybook/api": "6.5.10",
"@storybook/client-logger": "6.5.10",
"@storybook/components": "6.5.10",
"@storybook/core-common": "6.5.10",
"@storybook/csf": "0.0.2--canary.4566f4d.1",
"@storybook/node-logger": "6.5.9",
"@storybook/store": "6.5.9",
"@storybook/theming": "6.5.9",
"@storybook/node-logger": "6.5.10",
"@storybook/store": "6.5.10",
"@storybook/theming": "6.5.10",
"core-js": "^3.8.2",
"lodash": "^4.17.21",
"ts-dedent": "^2.0.0"
@@ -73,7 +73,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "2d56b47695fae26cb13e94a65198658b1792c9ad",
"gitHead": "b02a0ef8866c6cf8c609a32a14b4c55f513aa569",
"sbmodern": "dist/modern/manager.js",
"storybook": {
"displayName": "Controls",
28 changes: 14 additions & 14 deletions addons/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-docs",
"version": "6.5.9",
"version": "6.5.10",
"description": "Document component usage and properties in Markdown",
"keywords": [
"addon",
@@ -59,20 +59,20 @@
"@babel/preset-env": "^7.12.11",
"@jest/transform": "^26.6.2",
"@mdx-js/react": "^1.6.22",
"@storybook/addons": "6.5.9",
"@storybook/api": "6.5.9",
"@storybook/components": "6.5.9",
"@storybook/core-common": "6.5.9",
"@storybook/core-events": "6.5.9",
"@storybook/addons": "6.5.10",
"@storybook/api": "6.5.10",
"@storybook/components": "6.5.10",
"@storybook/core-common": "6.5.10",
"@storybook/core-events": "6.5.10",
"@storybook/csf": "0.0.2--canary.4566f4d.1",
"@storybook/docs-tools": "6.5.9",
"@storybook/docs-tools": "6.5.10",
"@storybook/mdx1-csf": "^0.0.1",
"@storybook/node-logger": "6.5.9",
"@storybook/postinstall": "6.5.9",
"@storybook/preview-web": "6.5.9",
"@storybook/source-loader": "6.5.9",
"@storybook/store": "6.5.9",
"@storybook/theming": "6.5.9",
"@storybook/node-logger": "6.5.10",
"@storybook/postinstall": "6.5.10",
"@storybook/preview-web": "6.5.10",
"@storybook/source-loader": "6.5.10",
"@storybook/store": "6.5.10",
"@storybook/theming": "6.5.10",
"babel-loader": "^8.0.0",
"core-js": "^3.8.2",
"fast-deep-equal": "^3.1.3",
@@ -108,7 +108,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "2d56b47695fae26cb13e94a65198658b1792c9ad",
"gitHead": "b02a0ef8866c6cf8c609a32a14b4c55f513aa569",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Docs",
30 changes: 15 additions & 15 deletions addons/essentials/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-essentials",
"version": "6.5.9",
"version": "6.5.10",
"description": "Curated addons to bring out the best of Storybook",
"keywords": [
"addon",
@@ -39,25 +39,25 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addon-actions": "6.5.9",
"@storybook/addon-backgrounds": "6.5.9",
"@storybook/addon-controls": "6.5.9",
"@storybook/addon-docs": "6.5.9",
"@storybook/addon-measure": "6.5.9",
"@storybook/addon-outline": "6.5.9",
"@storybook/addon-toolbars": "6.5.9",
"@storybook/addon-viewport": "6.5.9",
"@storybook/addons": "6.5.9",
"@storybook/api": "6.5.9",
"@storybook/core-common": "6.5.9",
"@storybook/node-logger": "6.5.9",
"@storybook/addon-actions": "6.5.10",
"@storybook/addon-backgrounds": "6.5.10",
"@storybook/addon-controls": "6.5.10",
"@storybook/addon-docs": "6.5.10",
"@storybook/addon-measure": "6.5.10",
"@storybook/addon-outline": "6.5.10",
"@storybook/addon-toolbars": "6.5.10",
"@storybook/addon-viewport": "6.5.10",
"@storybook/addons": "6.5.10",
"@storybook/api": "6.5.10",
"@storybook/core-common": "6.5.10",
"@storybook/node-logger": "6.5.10",
"core-js": "^3.8.2",
"regenerator-runtime": "^0.13.7",
"ts-dedent": "^2.0.0"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@storybook/vue": "6.5.9",
"@storybook/vue": "6.5.10",
"@types/jest": "^26.0.16",
"@types/webpack-env": "^1.16.0"
},
@@ -120,6 +120,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "2d56b47695fae26cb13e94a65198658b1792c9ad",
"gitHead": "b02a0ef8866c6cf8c609a32a14b4c55f513aa569",
"sbmodern": "dist/modern/index.js"
}
15 changes: 9 additions & 6 deletions addons/interactions/README.md
Original file line number Diff line number Diff line change
@@ -41,22 +41,25 @@ Interactions relies on "instrumented" versions of Jest and Testing Library, that
`@storybook/testing-library` instead of their original package. You can then use these libraries in your `play` function.

```js
import { Button } from './Button';
import { expect } from '@storybook/jest';
import { within, userEvent } from '@storybook/testing-library';

export default {
title: 'Button',
component: Button,
argTypes: {
onClick: { action: true },
},
};

export const Demo = {
play: async ({ args, canvasElement }) => {
const canvas = within(canvasElement);
await userEvent.click(canvas.getByRole('button'));
await expect(args.onClick).toHaveBeenCalled();
},
const Template = (args) => <Button {...args} />;

export const Demo = Template.bind({});
Demo.play = async ({ args, canvasElement }) => {
const canvas = within(canvasElement);
await userEvent.click(canvas.getByRole('button'));
await expect(args.onClick).toHaveBeenCalled();
};
```

Loading