Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: Prerelease 7.4.0-alpha.1 #23865

Merged
merged 145 commits into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
4304831
add a experimental API for adding sidebar filter functions at runtime
ndelangen Aug 4, 2023
cda5eed
Merge branch 'next' into norbert/sidebar-filter-api
ndelangen Aug 4, 2023
e92a19c
add support for setting filters in manager.ts & cleanup manager-api i…
ndelangen Aug 7, 2023
c3a88ec
Merge branch 'next' into norbert/sidebar-filter-api
ndelangen Aug 7, 2023
0a5ee9e
added global vue mixins, plugin, install
chakAs3 Aug 9, 2023
466850a
fix _a.decline not a function (if vite is the builder)
chakAs3 Aug 9, 2023
3192b9b
fix up the test
ndelangen Aug 9, 2023
c9a5435
re-grouping code
ndelangen Aug 9, 2023
e5d6730
cleanup
ndelangen Aug 9, 2023
9c16de6
Merge branch 'next' into norbert/sidebar-filter-api
ndelangen Aug 9, 2023
664d60c
cleanup
ndelangen Aug 9, 2023
dc5addc
Use slot value directly if it's a string
nasvillanueva Aug 10, 2023
0ec0e0e
Prevent slotContent from possibly being overridden
nasvillanueva Aug 10, 2023
5ebb31e
add tests
ndelangen Aug 10, 2023
478046e
Merge branch 'next' into norbert/sidebar-filter-api
ndelangen Aug 11, 2023
dca1fb1
fix race-condition causing setConfig data to be missed by the manager…
ndelangen Aug 11, 2023
5fefe7c
cleanup
ndelangen Aug 11, 2023
3afb02c
Merge branch 'norbert/fix-setConfig-execution-order' into norbert/sid…
ndelangen Aug 11, 2023
251d95e
cleanup
ndelangen Aug 11, 2023
e812cd1
Merge branch 'norbert/fix-setConfig-execution-order' into norbert/sid…
ndelangen Aug 11, 2023
6e4428d
Discard changes to code/lib/manager-api/src/lib/events.ts
ndelangen Aug 11, 2023
4ca8263
fix undefined addon state
sookmax Aug 11, 2023
63f2dbe
remove S extends object
sookmax Aug 11, 2023
de23161
Reword PR template
vanessayuenn Aug 11, 2023
e45779e
refactory and cleanup
chakAs3 Aug 12, 2023
d0a16cc
Merge branch 'next' into chaks/vue3-global-app-install
chakAs3 Aug 13, 2023
1f23839
remove NUXT to be more generic
chakAs3 Aug 14, 2023
c0b2a48
Updates documentation and examples for Highlight
jonniebigodes Aug 14, 2023
642f39f
Merge branch 'next' into text_slot
kasperpeulen Aug 15, 2023
a5a9902
CLI: exclude addon-styling from upgrade
Aug 15, 2023
8c49957
Add a disable actions note for forked repos
johnhunter Aug 11, 2023
615e0ab
Add an issues section for getting started
johnhunter Aug 11, 2023
79170a9
Apply suggestions from code review
johnhunter Aug 15, 2023
eb98611
Merge branch 'next' into shaun/upgrade-exclude-styling
Aug 15, 2023
93b33e0
Don't distribute src files or unnecessary template files
shilman Aug 16, 2023
2750ebd
Delete test file
shilman Aug 16, 2023
2604b4b
turn on strict typechecking for @storybook/scripts
stilt0n Aug 12, 2023
b412fc8
add typechecking script to @storybook/scripts
stilt0n Aug 12, 2023
211c136
fix type errors surfaced by strict typechecking
stilt0n Aug 12, 2023
8555544
modify stringifyError to make it more general
stilt0n Aug 14, 2023
660789e
add scripts to check task
stilt0n Aug 15, 2023
4e98597
remove unnecessary check:scripts target from run-many command
stilt0n Aug 15, 2023
44e4a13
fix type error in sandbox-parts.ts
stilt0n Aug 15, 2023
ad80654
add scripts typecheck to circle ci config
stilt0n Aug 15, 2023
8a970e9
rename stringifyError to getErrorMessage and use it more places
stilt0n Aug 16, 2023
56da460
Use invariant for error handling instead
kasperpeulen Aug 16, 2023
25480c2
Fix TS errors
kasperpeulen Aug 16, 2023
c7bffac
Initial feedback addressed
jonniebigodes Aug 16, 2023
78c6527
Merge pull request #23856 from storybookjs/kasper/fix-template-file
kasperpeulen Aug 16, 2023
f203eaf
Merge branch 'storybookjs:next' into docs-fork-repos
johnhunter Aug 16, 2023
7a5ae78
Fix missing closing block
johnhunter Aug 16, 2023
dbc2a37
Merge branch 'storybookjs:next' into scripts-typefix
stilt0n Aug 16, 2023
1c01f0b
Merge pull request #23818 from stilt0n/scripts-typefix
kasperpeulen Aug 16, 2023
2bce876
Merge branch 'next' into text_slot
chakAs3 Aug 16, 2023
3a26f15
Merge pull request #23801 from johnhunter/docs-fork-repos
kylegach Aug 16, 2023
ee86c58
Merge branch 'next' into shilman/reduce-publish-size
shilman Aug 17, 2023
3dfc417
Merge pull request #23853 from storybookjs/shilman/reduce-publish-size
shilman Aug 17, 2023
97f4d01
Merge branch 'next' into text_slot
nasvillanueva Aug 17, 2023
fe71e39
Merge branch 'next' into chaks/vue3-global-app-install
chakAs3 Aug 18, 2023
6c4dd3d
Revert "WebpackBuilder: Remove need for `react` as peerDependency"
vanessayuenn Aug 18, 2023
946ea82
Merge pull request #23882 from storybookjs/revert-23496-norbert/react…
yannbf Aug 18, 2023
9fee5a0
Update CHANGELOG.md for v7.3.2 [skip ci]
storybook-bot Aug 18, 2023
b358aa2
Cleanup snippets
jonniebigodes Aug 18, 2023
85ed45f
Core: Fix regression caused by defaultName invariant
stilt0n Aug 19, 2023
344859c
Merge branch 'next' into fix-invariant-bug
stilt0n Aug 19, 2023
656fbfa
Add Writing Stories in TypeScript docs guide
kylegach Aug 3, 2023
84f8999
Address TODOs
kylegach Aug 10, 2023
dbde31b
Address comments
kylegach Aug 15, 2023
d7291c7
Merge pull request #23711 from storybookjs/writing-stories-in-typescript
kylegach Aug 20, 2023
af6442b
Merge branch 'next' into text_slot
nasvillanueva Aug 21, 2023
eee0600
add new errors framework
yannbf Jul 28, 2023
ed7e628
add first examples of categorized errors
yannbf Jul 28, 2023
ce66635
add telemetry event to core-server
yannbf Jul 28, 2023
0e9d1d9
add motivation
yannbf Jul 28, 2023
94c7cd0
add typings for global
yannbf Jul 28, 2023
40acb07
refactor error telemetry
yannbf Aug 7, 2023
239b3a7
refactor core-event errors
yannbf Aug 7, 2023
ede49ce
add local eslint plugin for custom monorepo rules
yannbf Aug 7, 2023
10dd616
add more categories
yannbf Aug 9, 2023
16e3684
update docs
yannbf Aug 9, 2023
535bb89
update lockfile
yannbf Aug 9, 2023
d37b713
improve error message
yannbf Aug 9, 2023
b731f3f
move local rules eslint plugin to scripts
yannbf Aug 9, 2023
74ab63d
refactor code based on review comments
yannbf Aug 15, 2023
7686bd9
update imports
yannbf Aug 16, 2023
d64045c
prepare for new version of telejson
yannbf Aug 18, 2023
3b1c1c4
upgrade telejson
yannbf Aug 21, 2023
12afa82
Update code/ui/.storybook/manager.tsx
ndelangen Aug 21, 2023
13843a4
Merge pull request #23802 from storybookjs/norbert/fix-setConfig-exec…
ndelangen Aug 21, 2023
e135983
Merge branch 'next' into norbert/sidebar-filter-api
ndelangen Aug 21, 2023
f21cf3a
add storybook error metadata
yannbf Aug 21, 2023
886dfdf
Merge branch 'next' into chaks/vue3-global-app-install
chakAs3 Aug 21, 2023
592c32f
Merge pull request #23722 from storybookjs/norbert/sidebar-filter-api
ndelangen Aug 21, 2023
5531d1f
use @storybook/global in preview runtime
yannbf Aug 21, 2023
21ef39d
remove telemetry property
yannbf Aug 21, 2023
8cc89dc
small documentation changes
yannbf Aug 21, 2023
a06f84e
switch to using portals
yannbf Aug 21, 2023
16f9d32
remove telemetry property
yannbf Aug 21, 2023
a5e2321
add browser telemetry type
yannbf Aug 21, 2023
041f25c
add uncaught manager error
yannbf Aug 21, 2023
f1fd212
Merge branch 'next' into shaun/upgrade-exclude-styling
Aug 21, 2023
d970053
fix types
yannbf Aug 21, 2023
936602d
CLI: Exclude addon-styling from upgrade #23841
Aug 21, 2023
7192433
fix types
yannbf Aug 21, 2023
3bbea20
Revert "Merge pull request #23680 from storybookjs/charles-icons-upda…
ndelangen Aug 21, 2023
69b9155
refactor
chakAs3 Aug 21, 2023
6dd671e
Merge branch 'next' into chaks/vue3-global-app-install
chakAs3 Aug 21, 2023
8cd2f0b
Merge branch 'next' into fix-invariant-bug
JReinhold Aug 21, 2023
df5b104
Revert "Merge pull request #23635 from storybookjs/charles-update-con…
ndelangen Aug 21, 2023
0e757d2
remove export
ndelangen Aug 21, 2023
d608010
fix test
yannbf Aug 21, 2023
63b1a8d
remove code
ndelangen Aug 21, 2023
141a1ba
remove the bundler entry
ndelangen Aug 21, 2023
c9dfbc6
move `legacy` to `components` as it won't get replaced.
ndelangen Aug 21, 2023
f0222ec
Apply suggestions from code review
vanessayuenn Aug 21, 2023
7127ca0
updates based on feedback
vanessayuenn Aug 21, 2023
de89009
Merge branch 'next' into vy/reword-pr-template
vanessayuenn Aug 21, 2023
1192e6f
Merge pull request #23653 from storybookjs/yann/error-categorization-…
yannbf Aug 21, 2023
3c628e9
Merge branch 'next' into vy/reword-pr-template
vanessayuenn Aug 21, 2023
e2c0069
Merge pull request #23810 from storybookjs/vy/reword-pr-template
vanessayuenn Aug 21, 2023
f3ae06f
Merge branch 'next' into chaks/vue3-global-app-install
chakAs3 Aug 21, 2023
be7d7a0
refactor functions
chakAs3 Aug 21, 2023
03b85f4
Merge pull request #23893 from stilt0n/fix-invariant-bug
JReinhold Aug 21, 2023
6932bd7
Adds missing import to addon docs
jonniebigodes Aug 22, 2023
33d067c
fix async iteration over Set
chakAs3 Aug 22, 2023
07de8db
no need to return
chakAs3 Aug 22, 2023
64ad0c2
Make sure that state is set when defined as default state
kasperpeulen Aug 22, 2023
503b18c
Merge branch 'next' into fix-undefined-addon-state
kasperpeulen Aug 22, 2023
6d53c68
cleanup code
chakAs3 Aug 22, 2023
ab89f61
move filtering of sidebar into the state
ndelangen Aug 22, 2023
9dedc35
update the unit tests
ndelangen Aug 22, 2023
0ed23d2
cleanup
ndelangen Aug 22, 2023
f84d6e3
Merge branch 'next' into chore_docs_update_highlight
jonniebigodes Aug 22, 2023
1881481
add more tests for filtering
ndelangen Aug 22, 2023
9459c6f
remove
ndelangen Aug 22, 2023
337e4f6
fixes
ndelangen Aug 22, 2023
1875291
Merge pull request #23830 from storybookjs/chore_docs_update_highlight
jonniebigodes Aug 22, 2023
4337792
make types sound
ndelangen Aug 22, 2023
dc51eee
Merge pull request #23907 from storybookjs/norbert/revert-experimenta…
ndelangen Aug 22, 2023
d8f94c0
Merge branch 'next' into text_slot
nasvillanueva Aug 23, 2023
0f41c77
Merge pull request #23911 from storybookjs/norbert/filter-at-api
ndelangen Aug 23, 2023
fd9aa21
Merge pull request #23772 from storybookjs/chaks/vue3-global-app-install
kasperpeulen Aug 23, 2023
1c465ce
Merge pull request #23804 from sookmax/fix-undefined-addon-state
kasperpeulen Aug 23, 2023
f8bcec8
Merge pull request #23784 from nasvillanueva/text_slot
kasperpeulen Aug 23, 2023
48dd0e2
Write changelog for 7.4.0-alpha.1
storybook-bot Aug 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ jobs:
command: |
cd scripts
yarn get-template --check
- run:
name: Type check
command: |
cd scripts
yarn check
- run:
name: Run tests
command: |
Expand Down
58 changes: 42 additions & 16 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,33 @@
Closes #

<!-- Thank you for contributing to Storybook! If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). -->
<!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). -->

<!--

Thank you for contributing to Storybook! 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 `main` 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

-->


## What I did

<!-- Briefly describe what your PR does -->

## How to test
## Checklist for Contributors

### Testing

<!-- Please check (put an "x" inside the "[ ]") the applicable items below to communicate how to test your changes -->

#### The changes in this PR are covered in the following automated tests:
- [ ] stories
- [ ] unit tests
- [ ] integration tests
- [ ] end-to-end tests

#### Manual testing

_This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!_

<!-- Please include the steps to test your changes here. For example:

Expand All @@ -16,27 +37,32 @@ Closes #

-->

## Checklist
### Documentation

<!-- Please check (put an "x" inside the "[ ]") the applicable items below to make sure your PR is ready to be reviewed. -->
<!-- Please check (put an "x" inside the "[ ]") the applicable items below to indicate which documentation has been updated. -->

- [ ] Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests)
- [ ] Make sure to add/update documentation regarding your changes
- [ ] Add or update documentation reflecting your changes
- [ ] If you are deprecating/removing a feature, make sure to update
[MIGRATION.MD](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md)

#### Maintainers
## Checklist for Maintainers

- [ ] When this PR is ready for testing, make sure to add `ci:normal`, `ci:merged` or `ci:daily` GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in `code/lib/cli/src/sandbox-templates.ts`
- [ ] Make sure this PR contains **one** of the labels below.

`["cleanup", "BREAKING CHANGE", "feature request", "bug", "build", "documentation", "maintenance", "dependencies", "other"]`

<!--

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 `main` 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

-->
- [ ] Make sure this PR contains **one** of the labels below:
<details>
<summary>Available labels</summary>

- `bug`: Internal changes that fixes incorrect behavior.
- `maintenance`: User-facing maintenance tasks.
- `dependencies`: Upgrading (sometimes downgrading) dependencies.
- `build`: Internal-facing build tooling & test updates. Will not show up in release changelog.
- `cleanup`: Minor cleanup style change. Will not show up in release changelog.
- `documentation`: Documentation **only** changes. Will not show up in release changelog.
- `feature request`: Introducing a new feature.
- `BREAKING CHANGE`: Changes that break compatibility in some way with current major version.
- `other`: Changes that don't fit in the above categories.

</details>

### 🦋 Canary release

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 7.3.2

- Maintenance: Revert "WebpackBuilder: Remove need for `react` as peerDependency" - [#23882](https://github.com/storybookjs/storybook/pull/23882), thanks [@vanessayuenn](https://github.com/vanessayuenn)!

## 7.3.1

- Index: Fix `*.story.*` CSF indexing - [#23852](https://github.com/storybookjs/storybook/pull/23852), thanks [@shilman](https://github.com/shilman)!
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.prerelease.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## 7.4.0-alpha.1

- Build: Migrate @storybook/scripts to strict-ts - [#23818](https://github.com/storybookjs/storybook/pull/23818), thanks [@stilt0n](https://github.com/stilt0n)!
- CLI: Exclude addon-styling from upgrade - [#23841](https://github.com/storybookjs/storybook/pull/23841), thanks [@Integrayshaun](https://github.com/Integrayshaun)!
- Core: Add error categorization framework - [#23653](https://github.com/storybookjs/storybook/pull/23653), thanks [@yannbf](https://github.com/yannbf)!
- Core: Fix error thrown if `docs.defaultName` is unset - [#23893](https://github.com/storybookjs/storybook/pull/23893), thanks [@stilt0n](https://github.com/stilt0n)!
- Core: Fix race-condition relating to `addons.setConfig` - [#23802](https://github.com/storybookjs/storybook/pull/23802), thanks [@ndelangen](https://github.com/ndelangen)!
- Maintenance: Move filtering of sidebar into the state - [#23911](https://github.com/storybookjs/storybook/pull/23911), thanks [@ndelangen](https://github.com/ndelangen)!
- Maintenance: Revert "WebpackBuilder: Remove need for `react` as peerDependency" - [#23882](https://github.com/storybookjs/storybook/pull/23882), thanks [@vanessayuenn](https://github.com/vanessayuenn)!
- Manager API: Fix `api.getAddonState`default value - [#23804](https://github.com/storybookjs/storybook/pull/23804), thanks [@sookmax](https://github.com/sookmax)!
- Publish: Don't distribute src files or unnecessary template files - [#23853](https://github.com/storybookjs/storybook/pull/23853), thanks [@shilman](https://github.com/shilman)!
- UI: Add an experimental API for adding sidebar filter functions at runtime - [#23722](https://github.com/storybookjs/storybook/pull/23722), thanks [@ndelangen](https://github.com/ndelangen)!
- UI: Removal of experimental components - [#23907](https://github.com/storybookjs/storybook/pull/23907), thanks [@ndelangen](https://github.com/ndelangen)!
- Vue3: Add support for Global Apps install - [#23772](https://github.com/storybookjs/storybook/pull/23772), thanks [@chakAs3](https://github.com/chakAs3)!
- Vue3: Use slot value directly if it's a string in source decorator - [#23784](https://github.com/storybookjs/storybook/pull/23784), thanks [@nasvillanueva](https://github.com/nasvillanueva)!

## 7.4.0-alpha.0

- Index: Fix `*.story.*` CSF indexing - [#23852](https://github.com/storybookjs/storybook/pull/23852), thanks [@shilman](https://github.com/shilman)!
Expand Down
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ Storybook is developed against a specific node version. We recommend using [Volt

The `yarn start` script will generate a React Vite TypeScript sandbox with a set of test stories inside it, as well as taking all steps required to get it running (building the various packages we need etc). There is no need to run `yarn` or `yarn install` as `yarn start` will do this for you.

## Issues

If you run `yarn start` and encounter the following error, try rerunning `yarn start` a second time:

```sh
> NX ENOENT: no such file or directory, open 'storybook/code/node_modules/nx/package.json'
```

## Forked repos

If you have forked the repository, you should [disable Github Actions for your repo](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository) as many of them (e.g. pushing to sandbox) will fail without proper authorization. In your Github repo, go to Settings > Actions > General > set the Actions Permissions to **Disable actions**.

# Running against different sandbox templates

You can also pick a specific template to use as your sandbox by running `yarn task`, which will prompt you to make further choices about which template you want and which task you want to run.
Expand Down
14 changes: 14 additions & 0 deletions code/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
plugins: ['local-rules'],
rules: {
'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
'eslint-comments/no-unused-disable': 'error',
Expand Down Expand Up @@ -166,5 +167,18 @@ module.exports = {
'import/no-unresolved': 'off',
},
},
{
files: ['**/*.ts', '!**/*.test.*', '!**/*.spec.*'],
rules: {
'local-rules/no-uncategorized-errors': 'warn',
},
},
{
files: ['**/core-events/src/**/*'],
excludedFiles: ['**/*.test.*'],
rules: {
'local-rules/no-duplicated-error-codes': 'error',
},
},
],
};
3 changes: 2 additions & 1 deletion code/addons/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"dist/**/*",
"README.md",
"*.js",
"*.d.ts"
"*.d.ts",
"!src/**/*"
],
"scripts": {
"check": "../../../scripts/prepare/check.ts",
Expand Down
5 changes: 2 additions & 3 deletions code/addons/a11y/src/components/VisionSimulator.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { ReactNode } from 'react';
import React, { useState } from 'react';
import { Global, styled } from '@storybook/theming';
import { IconButton, WithTooltip, TooltipLinkList } from '@storybook/components';
import { Icon } from '@storybook/components/experimental';
import { Icons, IconButton, WithTooltip, TooltipLinkList } from '@storybook/components';

import { Filters } from './ColorFilters';

Expand Down Expand Up @@ -145,7 +144,7 @@ export const VisionSimulator = () => {
onDoubleClick={() => setFilter(null)}
>
<IconButton key="filter" active={!!filter} title="Vision simulator">
<Icon.Accessibility />
<Icons icon="accessibility" />
</IconButton>
</WithTooltip>
<Hidden>
Expand Down
5 changes: 3 additions & 2 deletions code/addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"dist/**/*",
"README.md",
"*.js",
"*.d.ts"
"*.d.ts",
"!src/**/*"
],
"scripts": {
"check": "../../../scripts/prepare/check.ts",
Expand All @@ -93,7 +94,7 @@
"polished": "^4.2.2",
"prop-types": "^15.7.2",
"react-inspector": "^6.0.0",
"telejson": "^7.0.3",
"telejson": "^7.2.0",
"ts-dedent": "^2.0.0",
"uuid": "^9.0.0"
},
Expand Down
3 changes: 2 additions & 1 deletion code/addons/backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
"dist/**/*",
"README.md",
"*.js",
"*.d.ts"
"*.d.ts",
"!src/**/*"
],
"scripts": {
"check": "../../../scripts/prepare/check.ts",
Expand Down
5 changes: 2 additions & 3 deletions code/addons/backgrounds/src/containers/BackgroundSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import memoize from 'memoizerific';

import { useParameter, useGlobals } from '@storybook/manager-api';
import { logger } from '@storybook/client-logger';
import { IconButton, WithTooltip, TooltipLinkList } from '@storybook/components';
import { Icon } from '@storybook/components/experimental';
import { Icons, IconButton, WithTooltip, TooltipLinkList } from '@storybook/components';

import { PARAM_KEY as BACKGROUNDS_PARAM_KEY } from '../constants';
import { ColorIcon } from '../components/ColorIcon';
Expand Down Expand Up @@ -141,7 +140,7 @@ export const BackgroundSelector: FC = memo(function BackgroundSelector() {
title="Change the background of the preview"
active={selectedBackgroundColor !== 'transparent' || isTooltipVisible}
>
<Icon.Photo />
<Icons icon="photo" />
</IconButton>
</WithTooltip>
</Fragment>
Expand Down
5 changes: 2 additions & 3 deletions code/addons/backgrounds/src/containers/GridSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import type { FC } from 'react';
import React, { memo } from 'react';

import { useGlobals, useParameter } from '@storybook/manager-api';
import { IconButton } from '@storybook/components';
import { Icon } from '@storybook/components/experimental';
import { Icons, IconButton } from '@storybook/components';

import { PARAM_KEY as BACKGROUNDS_PARAM_KEY } from '../constants';

Expand Down Expand Up @@ -31,7 +30,7 @@ export const GridSelector: FC = memo(function GridSelector() {
})
}
>
<Icon.Grid />
<Icons icon="grid" />
</IconButton>
);
});
3 changes: 2 additions & 1 deletion code/addons/controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"dist/**/*",
"README.md",
"*.js",
"*.d.ts"
"*.d.ts",
"!src/**/*"
],
"scripts": {
"check": "../../../scripts/prepare/check.ts",
Expand Down
3 changes: 2 additions & 1 deletion code/addons/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
"lit/**/*",
"README.md",
"*.js",
"*.d.ts"
"*.d.ts",
"!src/**/*"
],
"scripts": {
"check": "../../../scripts/prepare/check.ts",
Expand Down
3 changes: 2 additions & 1 deletion code/addons/essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
"dist/**/*",
"README.md",
"*.js",
"*.d.ts"
"*.d.ts",
"!src/**/*"
],
"scripts": {
"check": "../../../scripts/prepare/check.ts",
Expand Down
3 changes: 2 additions & 1 deletion code/addons/gfm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"dist/**/*",
"README.md",
"*.js",
"*.d.ts"
"*.d.ts",
"!src/**/*"
],
"scripts": {
"check": "../../../scripts/prepare/check.ts",
Expand Down
Loading