mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-03 05:04:51 +08:00
Merge branch 'next' into addon-highlight
This commit is contained in:
commit
3c2858ac94
@ -6,7 +6,7 @@ executors:
|
||||
class:
|
||||
description: The Resource class
|
||||
type: enum
|
||||
enum: ['small', 'medium', 'large', 'xlarge']
|
||||
enum: ['small', 'medium', 'medium+', 'large', 'xlarge']
|
||||
default: 'medium'
|
||||
working_directory: /tmp/storybook
|
||||
docker:
|
||||
@ -19,7 +19,7 @@ executors:
|
||||
class:
|
||||
description: The Resource class
|
||||
type: enum
|
||||
enum: ['small', 'medium', 'large', 'xlarge']
|
||||
enum: ['small', 'medium', 'medium+', 'large', 'xlarge']
|
||||
default: 'medium'
|
||||
working_directory: /tmp/storybook
|
||||
docker:
|
||||
@ -32,7 +32,7 @@ executors:
|
||||
class:
|
||||
description: The Resource class
|
||||
type: enum
|
||||
enum: ['small', 'medium', 'large', 'xlarge']
|
||||
enum: ['small', 'medium', 'medium+', 'large', 'xlarge']
|
||||
default: 'medium'
|
||||
working_directory: /tmp/storybook
|
||||
docker:
|
||||
@ -118,23 +118,9 @@ jobs:
|
||||
name: examples
|
||||
command: |
|
||||
yarn run-chromatics
|
||||
packtracker:
|
||||
executor:
|
||||
class: medium
|
||||
name: sb_node_14_browsers
|
||||
steps:
|
||||
- git-shallow-clone/checkout_advanced:
|
||||
clone_options: '--depth 1 --verbose'
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run:
|
||||
name: Report webpack stats for manager of official storybook
|
||||
command: |
|
||||
cd examples/official-storybook
|
||||
yarn packtracker
|
||||
examples:
|
||||
executor:
|
||||
class: medium
|
||||
class: medium+
|
||||
name: sb_node_14_browsers
|
||||
parallelism: 17
|
||||
steps:
|
||||
@ -194,7 +180,7 @@ jobs:
|
||||
name: Wait for registry
|
||||
command: yarn wait-on http://localhost:6000
|
||||
- run:
|
||||
name: Run E2E tests
|
||||
name: Run E2E (extended) tests
|
||||
command: yarn test:e2e-framework --clean --all --skip angular11 --skip angular --skip angular12 --skip vue3 --skip web_components_typescript --skip cra --skip react
|
||||
no_output_timeout: 5m
|
||||
- store_artifacts:
|
||||
@ -204,7 +190,7 @@ jobs:
|
||||
executor:
|
||||
class: large
|
||||
name: sb_cypress_8_node_14
|
||||
parallelism: 2
|
||||
parallelism: 8
|
||||
steps:
|
||||
- git-shallow-clone/checkout_advanced:
|
||||
clone_options: '--depth 1 --verbose'
|
||||
@ -218,7 +204,7 @@ jobs:
|
||||
name: Wait for registry
|
||||
command: yarn wait-on http://localhost:6000
|
||||
- run:
|
||||
name: Run E2E tests
|
||||
name: Run E2E (core) tests
|
||||
# Do not test CRA here because it's done in PnP part
|
||||
# TODO: Remove `web_components_typescript` as soon as Lit 2 stable is released
|
||||
command: yarn test:e2e-framework vue3 angular130 angular13 angular12 angular11 web_components_typescript web_components_lit2 react
|
||||
@ -406,6 +392,8 @@ jobs:
|
||||
- run:
|
||||
name: Test
|
||||
command: yarn test --coverage --runInBand --ci
|
||||
- store_test_results:
|
||||
path: junit.xml
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
@ -439,9 +427,6 @@ workflows:
|
||||
- smoke-tests:
|
||||
requires:
|
||||
- build
|
||||
- packtracker:
|
||||
requires:
|
||||
- build
|
||||
- unit-tests:
|
||||
requires:
|
||||
- build
|
||||
|
19
.github/workflows/cron-weekly.yml
vendored
Normal file
19
.github/workflows/cron-weekly.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: Markdown Links Check
|
||||
# runs every monday at 9 am
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 9 * * 1"
|
||||
|
||||
jobs:
|
||||
check-links:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: gaurav-nelson/github-action-markdown-link-check@v1
|
||||
# checks all markdown files from important folders including all subfolders
|
||||
with:
|
||||
# only show errors that occur instead of successful links + errors
|
||||
use-quiet-mode: 'yes'
|
||||
# output full HTTP info for broken links
|
||||
use-verbose-mode: 'yes'
|
||||
config-file: '.github/workflows/markdown-link-check-config.json'
|
5
.github/workflows/danger-js.yml
vendored
5
.github/workflows/danger-js.yml
vendored
@ -8,9 +8,12 @@ jobs:
|
||||
name: Danger JS
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
- uses: actions/checkout@master
|
||||
- name: Danger JS
|
||||
uses: danger/danger-js@main
|
||||
uses: danger/danger-js@10.9.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
|
19
.github/workflows/markdown-link-check-config.json
vendored
Normal file
19
.github/workflows/markdown-link-check-config.json
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"replacementPatterns": [
|
||||
{
|
||||
"pattern": "^/",
|
||||
"replacement": "./"
|
||||
}
|
||||
],
|
||||
"ignorePatterns": [
|
||||
{
|
||||
"pattern": "localhost"
|
||||
},
|
||||
{
|
||||
"pattern": "https://github.com/storybookjs/storybook/pull/*"
|
||||
},
|
||||
{
|
||||
"pattern": "https://stackblitz.com/*"
|
||||
}
|
||||
]
|
||||
}
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -35,6 +35,7 @@ tsconfig.tsbuildinfo
|
||||
lib/manager-webpack4/prebuilt
|
||||
lib/manager-webpack5/prebuilt
|
||||
examples/angular-cli/addon-jest.testresults.json
|
||||
junit.xml
|
||||
|
||||
# Yarn stuff
|
||||
/**/.yarn/*
|
||||
|
53
CHANGELOG.md
53
CHANGELOG.md
@ -1,3 +1,56 @@
|
||||
## 6.5.0-alpha.55 (April 3, 2022)
|
||||
|
||||
### Features
|
||||
|
||||
- CLI: Detect vite project, use vite builder automatically ([#17860](https://github.com/storybookjs/storybook/pull/17860))
|
||||
- CLI: Default new vite projects to storyStoreV7 ([#17859](https://github.com/storybookjs/storybook/pull/17859))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Core: Restore preview-web composeConfigs export ([#17861](https://github.com/storybookjs/storybook/pull/17861))
|
||||
- CLI: Preserve quote style in automigrate ([#17858](https://github.com/storybookjs/storybook/pull/17858))
|
||||
|
||||
## 6.5.0-alpha.54 (April 1, 2022)
|
||||
|
||||
### Dependency Upgrades
|
||||
|
||||
- React: Update react and react-dom peerDeps for React18 ([#17853](https://github.com/storybookjs/storybook/pull/17853))
|
||||
|
||||
## 6.5.0-alpha.53 (April 1, 2022)
|
||||
|
||||
### Features
|
||||
|
||||
- Core: Add simplified manager.js/preview.js API for addons ([#17755](https://github.com/storybookjs/storybook/pull/17755))
|
||||
- Core/React: Add testing utilities ([#17282](https://github.com/storybookjs/storybook/pull/17282))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Addon-docs: Fix dependencies for yarn pnp ([#17705](https://github.com/storybookjs/storybook/pull/17705))
|
||||
- Webpack: Expand version ranges of webpack in the apps ([#17834](https://github.com/storybookjs/storybook/pull/17834))
|
||||
- CLI: Fix vite/jest issue with mocked global ([#17830](https://github.com/storybookjs/storybook/pull/17830))
|
||||
|
||||
### Maintenance
|
||||
|
||||
- Build: Remove packtracker ([#17841](https://github.com/storybookjs/storybook/pull/17841))
|
||||
- Build: Swap order of e2e tests around ([#17840](https://github.com/storybookjs/storybook/pull/17840))
|
||||
- Build: Add weekly check for broken markdown links ([#17799](https://github.com/storybookjs/storybook/pull/17799))
|
||||
- Build: Switch to use medium+ ([#17837](https://github.com/storybookjs/storybook/pull/17837))
|
||||
|
||||
## 6.5.0-alpha.52 (March 31, 2022)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- UI: Add back CacheProvider from emotion to lib/theming ([#17820](https://github.com/storybookjs/storybook/pull/17820))
|
||||
- Core: Add a feature flag for enabling crossOriginIsolated ([#17815](https://github.com/storybookjs/storybook/pull/17815))
|
||||
- Angular: Fix multiple calls of Input setter ([#17633](https://github.com/storybookjs/storybook/pull/17633))
|
||||
- UI: Wait 100ms before showing spinner and fix story overlaying it ([#17753](https://github.com/storybookjs/storybook/pull/17753))
|
||||
|
||||
### Maintenance
|
||||
|
||||
- CLI: Add automigration to `@storybook/builder-vite` ([#17829](https://github.com/storybookjs/storybook/pull/17829))
|
||||
- Build: Add setup-node version for danger ([#17826](https://github.com/storybookjs/storybook/pull/17826))
|
||||
- Add contributing instructions to PULL_REQUEST_TEMPLATE ([#17713](https://github.com/storybookjs/storybook/pull/17713))
|
||||
|
||||
## 6.5.0-alpha.51 (March 25, 2022)
|
||||
|
||||
### Features
|
||||
|
33
MIGRATION.md
33
MIGRATION.md
@ -1,6 +1,9 @@
|
||||
<h1>Migration</h1>
|
||||
|
||||
- [From version 6.4.x to 6.5.0](#from-version-64x-to-650)
|
||||
- [Deprecated register.js](#deprecated-registerjs)
|
||||
- [Dropped support for addon-actions addDecorators](#dropped-support-for-addon-actions-adddecorators)
|
||||
- [Vite builder renamed](#vite-builder-renamed)
|
||||
- [Docs framework refactor for React](#docs-framework-refactor-for-react)
|
||||
- [Opt-in MDX2 support](#opt-in-mdx2-support)
|
||||
- [CSF3 auto-title improvements](#csf3-auto-title-improvements)
|
||||
@ -196,6 +199,36 @@
|
||||
|
||||
## From version 6.4.x to 6.5.0
|
||||
|
||||
### Deprecated register.js
|
||||
|
||||
In ancient versions of Storybook, addons were registered by referring to `addon-name/register.js`. This is going away in SB7.0. Instead you should just add `addon-name` to the `addons` array in `.storybook/main.js`.
|
||||
|
||||
Before:
|
||||
|
||||
```js
|
||||
module.exports = { addons: ['my-addon/register.js'] }
|
||||
```
|
||||
|
||||
After:
|
||||
|
||||
```js
|
||||
module.exports = { addons: ['my-addon'] }
|
||||
```
|
||||
|
||||
### Dropped support for addon-actions addDecorators
|
||||
|
||||
Prior to SB6.5, `addon-actions` provided an option called `addDecorators`. In SB6.5, decorators are applied always. This is technically a breaking change, so if this affects you please file an issue in Github and we can consider reverting this in a patch release.
|
||||
|
||||
### Vite builder renamed
|
||||
|
||||
SB6.5 renames Storybook's [Vite builder](https://github.com/storybookjs/builder-vite) from `storybook-builder-vite` to `@storybook/builder-vite`. This move is part of a larger effort to improve Vite support in Storybook.
|
||||
|
||||
Storybook's `automigrate` command can migrate for you. To manually migrate:
|
||||
|
||||
1. Remove `storybook-builder-vite` from your `package.json` dependencies
|
||||
2. Install `@storybook/builder-vite`
|
||||
3. Update your `core.builder` setting in `.storybook/main.js` to `@storybook/builder-vite`.
|
||||
|
||||
### Docs framework refactor for React
|
||||
|
||||
SB6.5 moves framework specializations (e.g. ArgType inference, dynamic snippet rendering) out of `@storybook/addon-docs` and into the specific framework packages to which they apply (e.g. `@storybook/react`).
|
||||
|
@ -114,5 +114,5 @@ in a patch release.
|
||||
#### How does my PR get merged?
|
||||
|
||||
- For PATCH PR's, any maintainer can review, test, approve, and merge it.
|
||||
- For MINOR/MAJOR PR's, once a maintainer reviews, tests, and approves it, s/he should clear it with the other maintainers before merging it into the release branch.
|
||||
- For MINOR/MAJOR PR's, once a maintainer reviews, tests, and approves it, they should clear it with the other maintainers before merging it into the release branch.
|
||||
- Once a release date has been set and we cut off merging, we'll create a temporary branch to hold that release so that it doesn't block merging to `next`.
|
||||
|
1
addons/a11y/manager.js
Normal file
1
addons/a11y/manager.js
Normal file
@ -0,0 +1 @@
|
||||
import './dist/esm/manager';
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-a11y",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Test component compliance with web accessibility standards",
|
||||
"keywords": [
|
||||
"a11y",
|
||||
@ -45,15 +45,15 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-highlight": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/channels": "6.5.0-alpha.51",
|
||||
"@storybook/client-logger": "6.5.0-alpha.51",
|
||||
"@storybook/components": "6.5.0-alpha.51",
|
||||
"@storybook/core-events": "6.5.0-alpha.51",
|
||||
"@storybook/addon-highlight": "6.5.0-alpha.55",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/channels": "6.5.0-alpha.55",
|
||||
"@storybook/client-logger": "6.5.0-alpha.55",
|
||||
"@storybook/components": "6.5.0-alpha.55",
|
||||
"@storybook/core-events": "6.5.0-alpha.55",
|
||||
"@storybook/csf": "0.0.2--canary.507502b.0",
|
||||
"@storybook/theming": "6.5.0-alpha.51",
|
||||
"@storybook/theming": "6.5.0-alpha.55",
|
||||
"axe-core": "^4.2.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
@ -68,8 +68,8 @@
|
||||
"@types/webpack-env": "^1.16.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
@ -82,7 +82,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Accessibility",
|
||||
|
@ -1,9 +0,0 @@
|
||||
function managerEntries(entry = []) {
|
||||
return [...entry, require.resolve('./dist/esm/register')];
|
||||
}
|
||||
|
||||
function config(entry = []) {
|
||||
return [...entry, require.resolve('./dist/esm/a11yRunner')];
|
||||
}
|
||||
|
||||
module.exports = { managerEntries, config };
|
1
addons/a11y/preview.js
Normal file
1
addons/a11y/preview.js
Normal file
@ -0,0 +1 @@
|
||||
export * from './dist/esm/preview';
|
@ -1 +1,6 @@
|
||||
require('./dist/esm/register');
|
||||
import { once } from '@storybook/client-logger';
|
||||
import './manager';
|
||||
|
||||
once.warn(
|
||||
'register.js is deprecated see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-registerjs'
|
||||
);
|
||||
|
@ -1,3 +0,0 @@
|
||||
import { withA11y } from '.';
|
||||
|
||||
export const decorators = [withA11y];
|
1
addons/a11y/src/preview.tsx
Normal file
1
addons/a11y/src/preview.tsx
Normal file
@ -0,0 +1 @@
|
||||
import './a11yRunner';
|
1
addons/actions/manager.js
Normal file
1
addons/actions/manager.js
Normal file
@ -0,0 +1 @@
|
||||
import './dist/esm/manager';
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-actions",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Get UI feedback when an action is performed on an interactive element",
|
||||
"keywords": [
|
||||
"storybook",
|
||||
@ -41,12 +41,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/components": "6.5.0-alpha.51",
|
||||
"@storybook/core-events": "6.5.0-alpha.51",
|
||||
"@storybook/csf": "0.0.2--canary.507502b.0",
|
||||
"@storybook/theming": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/client-logger": "6.5.0-alpha.55",
|
||||
"@storybook/components": "6.5.0-alpha.55",
|
||||
"@storybook/core-events": "6.5.0-alpha.55",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/theming": "6.5.0-alpha.55",
|
||||
"core-js": "^3.8.2",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"global": "^4.4.0",
|
||||
@ -65,8 +66,8 @@
|
||||
"@types/webpack-env": "^1.16.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
@ -79,7 +80,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Actions",
|
||||
|
@ -1,16 +0,0 @@
|
||||
function managerEntries(entry, options) {
|
||||
return [...entry, require.resolve('./dist/esm/register')];
|
||||
}
|
||||
|
||||
function config(entry = [], { addDecorator = true } = {}) {
|
||||
const actionConfig = [];
|
||||
if (addDecorator) {
|
||||
actionConfig.push(require.resolve('./dist/esm/preset/addDecorator'));
|
||||
}
|
||||
return [...entry, ...actionConfig, require.resolve('./dist/esm/preset/addArgs')];
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
managerEntries,
|
||||
config,
|
||||
};
|
1
addons/actions/preview.js
Normal file
1
addons/actions/preview.js
Normal file
@ -0,0 +1 @@
|
||||
export * from './dist/esm/preset/preview';
|
@ -1 +1,6 @@
|
||||
require('./dist/esm/register');
|
||||
import { once } from '@storybook/client-logger';
|
||||
import './manager';
|
||||
|
||||
once.warn(
|
||||
'register.js is deprecated see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-registerjs'
|
||||
);
|
||||
|
2
addons/actions/src/preset/preview.tsx
Normal file
2
addons/actions/src/preset/preview.tsx
Normal file
@ -0,0 +1,2 @@
|
||||
export * from './addDecorator';
|
||||
export * from './addArgs';
|
1
addons/backgrounds/manager.js
Normal file
1
addons/backgrounds/manager.js
Normal file
@ -0,0 +1 @@
|
||||
import './dist/esm/manager';
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-backgrounds",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"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.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/client-logger": "6.5.0-alpha.51",
|
||||
"@storybook/components": "6.5.0-alpha.51",
|
||||
"@storybook/core-events": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/client-logger": "6.5.0-alpha.55",
|
||||
"@storybook/components": "6.5.0-alpha.55",
|
||||
"@storybook/core-events": "6.5.0-alpha.55",
|
||||
"@storybook/csf": "0.0.2--canary.507502b.0",
|
||||
"@storybook/theming": "6.5.0-alpha.51",
|
||||
"@storybook/theming": "6.5.0-alpha.55",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"memoizerific": "^1.11.3",
|
||||
@ -63,8 +63,8 @@
|
||||
"@types/webpack-env": "^1.16.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
@ -77,7 +77,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Backgrounds",
|
||||
|
@ -1,16 +0,0 @@
|
||||
function config(entry = []) {
|
||||
return [
|
||||
...entry,
|
||||
require.resolve('./dist/esm/preset/addDecorator'),
|
||||
require.resolve('./dist/esm/preset/addParameter'),
|
||||
];
|
||||
}
|
||||
|
||||
function managerEntries(entry = [], options) {
|
||||
return [...entry, require.resolve('./dist/esm/register')];
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
managerEntries,
|
||||
config,
|
||||
};
|
1
addons/backgrounds/preview.js
Normal file
1
addons/backgrounds/preview.js
Normal file
@ -0,0 +1 @@
|
||||
export * from './dist/esm/preview';
|
@ -1 +1,6 @@
|
||||
require('./dist/esm/register');
|
||||
import { once } from '@storybook/client-logger';
|
||||
import './manager';
|
||||
|
||||
once.warn(
|
||||
'register.js is deprecated see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-registerjs'
|
||||
);
|
||||
|
@ -1,2 +0,0 @@
|
||||
export * from './withBackground';
|
||||
export * from './withGrid';
|
@ -1,3 +0,0 @@
|
||||
import { withGrid, withBackground } from '../decorators';
|
||||
|
||||
export const decorators = [withGrid, withBackground];
|
@ -1,3 +1,7 @@
|
||||
import { withBackground } from './decorators/withBackground';
|
||||
import { withGrid } from './decorators/withGrid';
|
||||
|
||||
export const decorators = [withGrid, withBackground];
|
||||
export const parameters = {
|
||||
backgrounds: {
|
||||
grid: {
|
1
addons/controls/manager.js
Normal file
1
addons/controls/manager.js
Normal file
@ -0,0 +1 @@
|
||||
import './dist/esm/manager';
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-controls",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Interact with component inputs dynamically in the Storybook UI",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -25,8 +25,8 @@
|
||||
"url": "https://opencollective.com/storybook"
|
||||
},
|
||||
"license": "MIT",
|
||||
"main": "dist/cjs/register.js",
|
||||
"module": "dist/esm/register.js",
|
||||
"main": "dist/cjs/manager.js",
|
||||
"module": "dist/esm/manager.js",
|
||||
"types": "dist/ts3.9/index.d.ts",
|
||||
"typesVersions": {
|
||||
"<3.8": {
|
||||
@ -45,22 +45,22 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/client-logger": "6.5.0-alpha.51",
|
||||
"@storybook/components": "6.5.0-alpha.51",
|
||||
"@storybook/core-common": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/client-logger": "6.5.0-alpha.55",
|
||||
"@storybook/components": "6.5.0-alpha.55",
|
||||
"@storybook/core-common": "6.5.0-alpha.55",
|
||||
"@storybook/csf": "0.0.2--canary.507502b.0",
|
||||
"@storybook/node-logger": "6.5.0-alpha.51",
|
||||
"@storybook/store": "6.5.0-alpha.51",
|
||||
"@storybook/theming": "6.5.0-alpha.51",
|
||||
"@storybook/node-logger": "6.5.0-alpha.55",
|
||||
"@storybook/store": "6.5.0-alpha.55",
|
||||
"@storybook/theming": "6.5.0-alpha.55",
|
||||
"core-js": "^3.8.2",
|
||||
"lodash": "^4.17.21",
|
||||
"ts-dedent": "^2.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
@ -73,8 +73,8 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"sbmodern": "dist/modern/register.js",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/manager.js",
|
||||
"storybook": {
|
||||
"displayName": "Controls",
|
||||
"icon": "https://user-images.githubusercontent.com/263385/101991669-479cc600-3c7c-11eb-93d9-38b67e8371f2.png",
|
||||
|
@ -1,8 +0,0 @@
|
||||
function managerEntries(entry = [], options) {
|
||||
// eslint-disable-next-line global-require
|
||||
const { checkDocsLoaded } = require('./dist/cjs/preset/checkDocsLoaded');
|
||||
checkDocsLoaded(options.configDir);
|
||||
return [...entry, require.resolve('./dist/esm/register')];
|
||||
}
|
||||
|
||||
module.exports = { managerEntries };
|
@ -1 +1,6 @@
|
||||
import './dist/esm/register';
|
||||
import { once } from '@storybook/client-logger';
|
||||
import './manager';
|
||||
|
||||
once.warn(
|
||||
'register.js is deprecated see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-registerjs'
|
||||
);
|
||||
|
1
addons/docs/manager.js
Normal file
1
addons/docs/manager.js
Normal file
@ -0,0 +1 @@
|
||||
import './dist/esm/manager';
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-docs",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Document component usage and properties in Markdown",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -59,24 +59,26 @@
|
||||
"@babel/preset-env": "^7.12.11",
|
||||
"@jest/transform": "^26.6.2",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/components": "6.5.0-alpha.51",
|
||||
"@storybook/core-common": "6.5.0-alpha.51",
|
||||
"@storybook/core-events": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/components": "6.5.0-alpha.55",
|
||||
"@storybook/core-common": "6.5.0-alpha.55",
|
||||
"@storybook/core-events": "6.5.0-alpha.55",
|
||||
"@storybook/csf": "0.0.2--canary.507502b.0",
|
||||
"@storybook/docs-tools": "6.5.0-alpha.51",
|
||||
"@storybook/docs-tools": "6.5.0-alpha.55",
|
||||
"@storybook/mdx1-csf": "canary",
|
||||
"@storybook/node-logger": "6.5.0-alpha.51",
|
||||
"@storybook/postinstall": "6.5.0-alpha.51",
|
||||
"@storybook/preview-web": "6.5.0-alpha.51",
|
||||
"@storybook/source-loader": "6.5.0-alpha.51",
|
||||
"@storybook/store": "6.5.0-alpha.51",
|
||||
"@storybook/theming": "6.5.0-alpha.51",
|
||||
"@storybook/node-logger": "6.5.0-alpha.55",
|
||||
"@storybook/postinstall": "6.5.0-alpha.55",
|
||||
"@storybook/preview-web": "6.5.0-alpha.55",
|
||||
"@storybook/source-loader": "6.5.0-alpha.55",
|
||||
"@storybook/store": "6.5.0-alpha.55",
|
||||
"@storybook/theming": "6.5.0-alpha.55",
|
||||
"babel-loader": "^8.0.0",
|
||||
"core-js": "^3.8.2",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"global": "^4.4.0",
|
||||
"lodash": "^4.17.21",
|
||||
"regenerator-runtime": "^0.13.7",
|
||||
"remark-external-links": "^8.0.0",
|
||||
"remark-slug": "^6.0.0",
|
||||
"ts-dedent": "^2.0.0",
|
||||
@ -85,23 +87,14 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@storybook/mdx2-csf": "canary",
|
||||
"@types/util-deprecate": "^1.0.0",
|
||||
"babel-loader": "^8.0.0",
|
||||
"webpack": "4"
|
||||
"@types/util-deprecate": "^1.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@storybook/mdx2-csf": "*",
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0",
|
||||
"webpack": "*"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@storybook/builder-webpack4": {
|
||||
"optional": true
|
||||
},
|
||||
"@storybook/builder-webpack5": {
|
||||
"optional": true
|
||||
},
|
||||
"@storybook/mdx2-csf": {
|
||||
"optional": true
|
||||
},
|
||||
@ -110,15 +103,12 @@
|
||||
},
|
||||
"react-dom": {
|
||||
"optional": true
|
||||
},
|
||||
"webpack": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Docs",
|
||||
|
@ -1,16 +1 @@
|
||||
const { findDistEsm } = require('@storybook/core-common');
|
||||
const { webpack } = require('./dist/cjs/frameworks/common/preset');
|
||||
|
||||
function managerEntries(entry = [], options) {
|
||||
return [...entry, findDistEsm(__dirname, 'register')];
|
||||
}
|
||||
|
||||
function config(entry = [], options = {}) {
|
||||
return [findDistEsm(__dirname, 'frameworks/common/config'), ...entry];
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
webpack,
|
||||
managerEntries,
|
||||
config,
|
||||
};
|
||||
module.exports = require('./dist/cjs/preset');
|
||||
|
1
addons/docs/preview.js
Normal file
1
addons/docs/preview.js
Normal file
@ -0,0 +1 @@
|
||||
export * from './dist/esm/preview';
|
@ -1,2 +1,6 @@
|
||||
/* eslint-disable import/extensions */
|
||||
require('./dist/esm/register.js');
|
||||
import { once } from '@storybook/client-logger';
|
||||
import './manager';
|
||||
|
||||
once.warn(
|
||||
'register.js is deprecated see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-registerjs'
|
||||
);
|
||||
|
@ -1,8 +0,0 @@
|
||||
export const parameters = {
|
||||
docs: {
|
||||
inlineStories: false,
|
||||
getContainer: async () => (await import('../../blocks')).DocsContainer,
|
||||
getPage: async () => (await import('../../blocks')).DocsPage,
|
||||
iframeHeight: 100,
|
||||
},
|
||||
};
|
@ -3,7 +3,7 @@ import remarkSlug from 'remark-slug';
|
||||
import remarkExternalLinks from 'remark-external-links';
|
||||
import global from 'global';
|
||||
|
||||
import type { BuilderConfig, Options } from '@storybook/core-common';
|
||||
import type { Options } from '@storybook/core-common';
|
||||
import { logger } from '@storybook/node-logger';
|
||||
|
||||
// for frameworks that are not working with react, we need to configure
|
||||
@ -38,16 +38,7 @@ export async function webpack(
|
||||
typeof createCompiler
|
||||
>[0] */
|
||||
) {
|
||||
const { builder = 'webpack4' } = await options.presets.apply<{
|
||||
builder: BuilderConfig;
|
||||
}>('core', {} as any);
|
||||
|
||||
const builderName = typeof builder === 'string' ? builder : builder.name;
|
||||
const resolvedBabelLoader = require.resolve('babel-loader', {
|
||||
paths: builderName.match(/^webpack(4|5)$/)
|
||||
? [require.resolve(`@storybook/builder-${builderName}`)]
|
||||
: [builderName],
|
||||
});
|
||||
const resolvedBabelLoader = require.resolve('babel-loader');
|
||||
|
||||
const { module = {} } = webpackConfig;
|
||||
|
6
addons/docs/src/preview.ts
Normal file
6
addons/docs/src/preview.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export const parameters = {
|
||||
docs: {
|
||||
getContainer: async () => (await import('./blocks')).DocsContainer,
|
||||
getPage: async () => (await import('./blocks')).DocsPage,
|
||||
},
|
||||
};
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-essentials",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"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.0-alpha.51",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.51",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.51",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.51",
|
||||
"@storybook/addon-measure": "6.5.0-alpha.51",
|
||||
"@storybook/addon-outline": "6.5.0-alpha.51",
|
||||
"@storybook/addon-toolbars": "6.5.0-alpha.51",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/core-common": "6.5.0-alpha.51",
|
||||
"@storybook/node-logger": "6.5.0-alpha.51",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.55",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.55",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.55",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.55",
|
||||
"@storybook/addon-measure": "6.5.0-alpha.55",
|
||||
"@storybook/addon-outline": "6.5.0-alpha.55",
|
||||
"@storybook/addon-toolbars": "6.5.0-alpha.55",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.55",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/core-common": "6.5.0-alpha.55",
|
||||
"@storybook/node-logger": "6.5.0-alpha.55",
|
||||
"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.0-alpha.51",
|
||||
"@storybook/vue": "6.5.0-alpha.55",
|
||||
"@types/jest": "^26.0.16",
|
||||
"@types/webpack-env": "^1.16.0"
|
||||
},
|
||||
@ -120,6 +120,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import path, { join } from 'path';
|
||||
import path, { dirname, join } from 'path';
|
||||
import { logger } from '@storybook/node-logger';
|
||||
import { serverRequire } from '@storybook/core-common';
|
||||
|
||||
@ -60,12 +60,7 @@ export function addons(options: PresetOptions = {}) {
|
||||
// as it's done in `lib/core/src/server/presets.js`.
|
||||
.map((addon) => {
|
||||
try {
|
||||
return require.resolve(join(addon, 'preset'));
|
||||
// eslint-disable-next-line no-empty
|
||||
} catch (err) {}
|
||||
|
||||
try {
|
||||
return require.resolve(join(addon, 'register'));
|
||||
return dirname(require.resolve(join(addon, 'package.json')));
|
||||
// eslint-disable-next-line no-empty
|
||||
} catch (err) {}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-highlight",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Highlight DOM nodes within your stories",
|
||||
"keywords": [
|
||||
"storybook-addons",
|
||||
|
1
addons/interactions/manager.js
Normal file
1
addons/interactions/manager.js
Normal file
@ -0,0 +1 @@
|
||||
import './dist/esm/manager';
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-interactions",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Automate, test and debug user interactions",
|
||||
"keywords": [
|
||||
"storybook-addons",
|
||||
@ -21,8 +21,8 @@
|
||||
"url": "https://opencollective.com/storybook"
|
||||
},
|
||||
"license": "MIT",
|
||||
"main": "dist/cjs/register.js",
|
||||
"module": "dist/esm/register.js",
|
||||
"main": "dist/cjs/index.js",
|
||||
"module": "dist/esm/index.js",
|
||||
"types": "dist/ts3.9/index.d.ts",
|
||||
"typesVersions": {
|
||||
"<3.8": {
|
||||
@ -41,14 +41,15 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/components": "6.5.0-alpha.51",
|
||||
"@storybook/core-common": "6.5.0-alpha.51",
|
||||
"@storybook/core-events": "6.5.0-alpha.51",
|
||||
"@storybook/csf": "0.0.2--canary.507502b.0",
|
||||
"@storybook/instrumenter": "6.5.0-alpha.51",
|
||||
"@storybook/theming": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/client-logger": "6.5.0-alpha.55",
|
||||
"@storybook/components": "6.5.0-alpha.55",
|
||||
"@storybook/core-common": "6.5.0-alpha.55",
|
||||
"@storybook/core-events": "6.5.0-alpha.55",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/instrumenter": "6.5.0-alpha.55",
|
||||
"@storybook/theming": "6.5.0-alpha.55",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"jest-mock": "^27.0.6",
|
||||
@ -61,8 +62,8 @@
|
||||
"formik": "^2.2.9"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
@ -75,7 +76,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Interactions",
|
||||
|
@ -1,15 +1,10 @@
|
||||
function config(entry = []) {
|
||||
return [...entry, require.resolve('./dist/esm/preset/argsEnhancers')];
|
||||
}
|
||||
const { checkActionsLoaded } = require('./dist/cjs/preset/checkActionsLoaded');
|
||||
|
||||
function managerEntries(entry = [], options) {
|
||||
// eslint-disable-next-line global-require
|
||||
const { checkActionsLoaded } = require('./dist/cjs/preset/checkActionsLoaded');
|
||||
function previewAnnotations(entry = [], options) {
|
||||
checkActionsLoaded(options.configDir);
|
||||
return [...entry, require.resolve('./dist/esm/register')];
|
||||
return entry;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
config,
|
||||
managerEntries,
|
||||
previewAnnotations,
|
||||
};
|
||||
|
1
addons/interactions/preview.js
Normal file
1
addons/interactions/preview.js
Normal file
@ -0,0 +1 @@
|
||||
export * from './dist/esm/preset/preview';
|
@ -1 +1,6 @@
|
||||
import './dist/esm/register';
|
||||
import { once } from '@storybook/client-logger';
|
||||
import './manager';
|
||||
|
||||
once.warn(
|
||||
'register.js is deprecated see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-registerjs'
|
||||
);
|
||||
|
1
addons/jest/manager.js
Normal file
1
addons/jest/manager.js
Normal file
@ -0,0 +1 @@
|
||||
import './dist/esm/manager';
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-jest",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "React storybook addon that show component jest report",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -47,11 +47,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/components": "6.5.0-alpha.51",
|
||||
"@storybook/core-events": "6.5.0-alpha.51",
|
||||
"@storybook/theming": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/client-logger": "6.5.0-alpha.55",
|
||||
"@storybook/components": "6.5.0-alpha.55",
|
||||
"@storybook/core-events": "6.5.0-alpha.55",
|
||||
"@storybook/theming": "6.5.0-alpha.55",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"react-sizeme": "^3.0.1",
|
||||
@ -62,8 +63,8 @@
|
||||
"@types/webpack-env": "^1.16.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
@ -76,7 +77,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Jest",
|
||||
|
@ -1 +1,6 @@
|
||||
require('./dist/esm/register');
|
||||
import { once } from '@storybook/client-logger';
|
||||
import './manager';
|
||||
|
||||
once.warn(
|
||||
'register.js is deprecated see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-registerjs'
|
||||
);
|
||||
|
1
addons/links/manager.js
Normal file
1
addons/links/manager.js
Normal file
@ -0,0 +1 @@
|
||||
import './dist/esm/manager';
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-links",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Link stories together to build demos and prototypes with your UI components",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -41,11 +41,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/client-logger": "6.5.0-alpha.51",
|
||||
"@storybook/core-events": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/client-logger": "6.5.0-alpha.55",
|
||||
"@storybook/core-events": "6.5.0-alpha.55",
|
||||
"@storybook/csf": "0.0.2--canary.507502b.0",
|
||||
"@storybook/router": "6.5.0-alpha.51",
|
||||
"@storybook/router": "6.5.0-alpha.55",
|
||||
"@types/qs": "^6.9.5",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
@ -58,8 +58,8 @@
|
||||
"@types/webpack-env": "^1.16.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
@ -72,7 +72,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Links",
|
||||
|
@ -1,13 +0,0 @@
|
||||
function managerEntries(entry = []) {
|
||||
return [...entry, require.resolve('./dist/esm/register')];
|
||||
}
|
||||
|
||||
function config(entry = [], { addDecorator = true } = {}) {
|
||||
const linkConfig = [];
|
||||
if (addDecorator) {
|
||||
linkConfig.push(require.resolve('./dist/esm/preset/addDecorator'));
|
||||
}
|
||||
return [...entry, ...linkConfig];
|
||||
}
|
||||
|
||||
module.exports = { managerEntries, config };
|
1
addons/links/preview.js
Normal file
1
addons/links/preview.js
Normal file
@ -0,0 +1 @@
|
||||
export * from './dist/esm/preview';
|
2
addons/links/react.js
vendored
2
addons/links/react.js
vendored
@ -1 +1 @@
|
||||
module.exports = require('./dist/cjs/react');
|
||||
module.exports = require('./dist/esm/react');
|
||||
|
@ -1 +1,6 @@
|
||||
require('./dist/esm/register');
|
||||
import { once } from '@storybook/client-logger';
|
||||
import './manager';
|
||||
|
||||
once.warn(
|
||||
'register.js is deprecated see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-registerjs'
|
||||
);
|
||||
|
@ -14,7 +14,7 @@ export function LinkTo(): null {
|
||||
return null;
|
||||
}
|
||||
|
||||
export { linkTo, hrefTo, withLinks, navigate } from './preview';
|
||||
export { linkTo, hrefTo, withLinks, navigate } from './utils';
|
||||
|
||||
if (module && module.hot && module.hot.decline) {
|
||||
module.hot.decline();
|
||||
|
@ -1,3 +0,0 @@
|
||||
import { withLinks } from '../index';
|
||||
|
||||
export const decorators = [withLinks];
|
@ -1,91 +1,3 @@
|
||||
import global from 'global';
|
||||
import qs from 'qs';
|
||||
import { addons, makeDecorator } from '@storybook/addons';
|
||||
import { STORY_CHANGED, SELECT_STORY } from '@storybook/core-events';
|
||||
import type { StoryId, StoryName, ComponentTitle } from '@storybook/csf';
|
||||
import { toId } from '@storybook/csf';
|
||||
import { PARAM_KEY } from './constants';
|
||||
import { withLinks } from './index';
|
||||
|
||||
const { document, HTMLElement } = global;
|
||||
|
||||
interface ParamsId {
|
||||
storyId: StoryId;
|
||||
}
|
||||
interface ParamsCombo {
|
||||
kind?: ComponentTitle;
|
||||
story?: StoryName;
|
||||
}
|
||||
|
||||
export const navigate = (params: ParamsId | ParamsCombo) =>
|
||||
addons.getChannel().emit(SELECT_STORY, params);
|
||||
|
||||
export const hrefTo = (title: ComponentTitle, name: StoryName): Promise<string> => {
|
||||
return new Promise((resolve) => {
|
||||
const { location } = document;
|
||||
const query = qs.parse(location.search, { ignoreQueryPrefix: true });
|
||||
const existingId = [].concat(query.id)[0];
|
||||
const titleToLink = title || existingId.split('--', 2)[0];
|
||||
const id = toId(titleToLink, name);
|
||||
const url = `${location.origin + location.pathname}?${qs.stringify(
|
||||
{ ...query, id },
|
||||
{ encode: false }
|
||||
)}`;
|
||||
|
||||
resolve(url);
|
||||
});
|
||||
};
|
||||
|
||||
const valueOrCall = (args: string[]) => (value: string | ((...args: string[]) => string)) =>
|
||||
typeof value === 'function' ? value(...args) : value;
|
||||
|
||||
export const linkTo =
|
||||
(idOrTitle: string, nameInput?: string | ((...args: any[]) => string)) =>
|
||||
(...args: any[]) => {
|
||||
const resolver = valueOrCall(args);
|
||||
const title = resolver(idOrTitle);
|
||||
const name = resolver(nameInput);
|
||||
|
||||
if (title?.match(/--/) && !name) {
|
||||
navigate({ storyId: title });
|
||||
} else {
|
||||
navigate({ kind: title, story: name });
|
||||
}
|
||||
};
|
||||
|
||||
const linksListener = (e: Event) => {
|
||||
const { target } = e;
|
||||
if (!(target instanceof HTMLElement)) {
|
||||
return;
|
||||
}
|
||||
const element = target as HTMLElement;
|
||||
const { sbKind: kind, sbStory: story } = element.dataset;
|
||||
if (kind || story) {
|
||||
e.preventDefault();
|
||||
navigate({ kind, story });
|
||||
}
|
||||
};
|
||||
|
||||
let hasListener = false;
|
||||
|
||||
const on = () => {
|
||||
if (!hasListener) {
|
||||
hasListener = true;
|
||||
document.addEventListener('click', linksListener);
|
||||
}
|
||||
};
|
||||
const off = () => {
|
||||
if (hasListener) {
|
||||
hasListener = false;
|
||||
document.removeEventListener('click', linksListener);
|
||||
}
|
||||
};
|
||||
|
||||
export const withLinks = makeDecorator({
|
||||
name: 'withLinks',
|
||||
parameterName: PARAM_KEY,
|
||||
wrapper: (getStory, context) => {
|
||||
on();
|
||||
addons.getChannel().once(STORY_CHANGED, off);
|
||||
return getStory(context);
|
||||
},
|
||||
});
|
||||
export const decorators = [withLinks];
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React, { MouseEvent, PureComponent, ReactNode } from 'react';
|
||||
|
||||
import { navigate, hrefTo } from '../../preview';
|
||||
import { navigate, hrefTo } from '../../utils';
|
||||
|
||||
// FIXME: copied from Typography.Link. Code is duplicated to
|
||||
// avoid emotion dependency which breaks React 15.x back-compat
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { addons } from '@storybook/addons';
|
||||
import { SELECT_STORY } from '@storybook/core-events';
|
||||
|
||||
import { linkTo, hrefTo } from './preview';
|
||||
import { linkTo, hrefTo } from './utils';
|
||||
|
||||
jest.mock('@storybook/addons');
|
||||
jest.mock('global', () => ({
|
91
addons/links/src/utils.ts
Normal file
91
addons/links/src/utils.ts
Normal file
@ -0,0 +1,91 @@
|
||||
import global from 'global';
|
||||
import qs from 'qs';
|
||||
import { addons, makeDecorator } from '@storybook/addons';
|
||||
import { STORY_CHANGED, SELECT_STORY } from '@storybook/core-events';
|
||||
import type { StoryId, StoryName, ComponentTitle } from '@storybook/csf';
|
||||
import { toId } from '@storybook/csf';
|
||||
import { PARAM_KEY } from './constants';
|
||||
|
||||
const { document, HTMLElement } = global;
|
||||
|
||||
interface ParamsId {
|
||||
storyId: StoryId;
|
||||
}
|
||||
interface ParamsCombo {
|
||||
kind?: ComponentTitle;
|
||||
story?: StoryName;
|
||||
}
|
||||
|
||||
export const navigate = (params: ParamsId | ParamsCombo) =>
|
||||
addons.getChannel().emit(SELECT_STORY, params);
|
||||
|
||||
export const hrefTo = (title: ComponentTitle, name: StoryName): Promise<string> => {
|
||||
return new Promise((resolve) => {
|
||||
const { location } = document;
|
||||
const query = qs.parse(location.search, { ignoreQueryPrefix: true });
|
||||
const existingId = [].concat(query.id)[0];
|
||||
const titleToLink = title || existingId.split('--', 2)[0];
|
||||
const id = toId(titleToLink, name);
|
||||
const url = `${location.origin + location.pathname}?${qs.stringify(
|
||||
{ ...query, id },
|
||||
{ encode: false }
|
||||
)}`;
|
||||
|
||||
resolve(url);
|
||||
});
|
||||
};
|
||||
|
||||
const valueOrCall = (args: string[]) => (value: string | ((...args: string[]) => string)) =>
|
||||
typeof value === 'function' ? value(...args) : value;
|
||||
|
||||
export const linkTo =
|
||||
(idOrTitle: string, nameInput?: string | ((...args: any[]) => string)) =>
|
||||
(...args: any[]) => {
|
||||
const resolver = valueOrCall(args);
|
||||
const title = resolver(idOrTitle);
|
||||
const name = resolver(nameInput);
|
||||
|
||||
if (title?.match(/--/) && !name) {
|
||||
navigate({ storyId: title });
|
||||
} else {
|
||||
navigate({ kind: title, story: name });
|
||||
}
|
||||
};
|
||||
|
||||
const linksListener = (e: Event) => {
|
||||
const { target } = e;
|
||||
if (!(target instanceof HTMLElement)) {
|
||||
return;
|
||||
}
|
||||
const element = target as HTMLElement;
|
||||
const { sbKind: kind, sbStory: story } = element.dataset;
|
||||
if (kind || story) {
|
||||
e.preventDefault();
|
||||
navigate({ kind, story });
|
||||
}
|
||||
};
|
||||
|
||||
let hasListener = false;
|
||||
|
||||
const on = () => {
|
||||
if (!hasListener) {
|
||||
hasListener = true;
|
||||
document.addEventListener('click', linksListener);
|
||||
}
|
||||
};
|
||||
const off = () => {
|
||||
if (hasListener) {
|
||||
hasListener = false;
|
||||
document.removeEventListener('click', linksListener);
|
||||
}
|
||||
};
|
||||
|
||||
export const withLinks = makeDecorator({
|
||||
name: 'withLinks',
|
||||
parameterName: PARAM_KEY,
|
||||
wrapper: (getStory, context) => {
|
||||
on();
|
||||
addons.getChannel().once(STORY_CHANGED, off);
|
||||
return getStory(context);
|
||||
},
|
||||
});
|
1
addons/measure/manager.js
Normal file
1
addons/measure/manager.js
Normal file
@ -0,0 +1 @@
|
||||
import './dist/esm/manager';
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-measure",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Inspect layouts by visualizing the box model",
|
||||
"keywords": [
|
||||
"storybook-addons",
|
||||
@ -44,11 +44,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/client-logger": "6.5.0-alpha.51",
|
||||
"@storybook/components": "6.5.0-alpha.51",
|
||||
"@storybook/core-events": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/client-logger": "6.5.0-alpha.55",
|
||||
"@storybook/components": "6.5.0-alpha.55",
|
||||
"@storybook/core-events": "6.5.0-alpha.55",
|
||||
"@storybook/csf": "0.0.2--canary.507502b.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0"
|
||||
@ -57,8 +57,8 @@
|
||||
"@types/webpack-env": "^1.16.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
@ -71,7 +71,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Measure",
|
||||
|
@ -1,12 +0,0 @@
|
||||
function config(entry = []) {
|
||||
return [...entry, require.resolve('./dist/esm/preset/addDecorator')];
|
||||
}
|
||||
|
||||
function managerEntries(entry = [], options) {
|
||||
return [...entry, require.resolve('./dist/esm/register')];
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
managerEntries,
|
||||
config,
|
||||
};
|
1
addons/measure/preview.js
Normal file
1
addons/measure/preview.js
Normal file
@ -0,0 +1 @@
|
||||
export * from './dist/esm/preview';
|
@ -1 +1,6 @@
|
||||
require('./dist/esm/register');
|
||||
import { once } from '@storybook/client-logger';
|
||||
import './manager';
|
||||
|
||||
once.warn(
|
||||
'register.js is deprecated see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-registerjs'
|
||||
);
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withMeasure } from '../withMeasure';
|
||||
import { PARAM_KEY } from '../constants';
|
||||
import { withMeasure } from './withMeasure';
|
||||
import { PARAM_KEY } from './constants';
|
||||
|
||||
export const decorators = [withMeasure];
|
||||
|
1
addons/outline/manager.js
Normal file
1
addons/outline/manager.js
Normal file
@ -0,0 +1 @@
|
||||
import './dist/esm/manager';
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-outline",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Outline all elements with CSS to help with layout placement and alignment",
|
||||
"keywords": [
|
||||
"storybook-addons",
|
||||
@ -47,11 +47,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/client-logger": "6.5.0-alpha.51",
|
||||
"@storybook/components": "6.5.0-alpha.51",
|
||||
"@storybook/core-events": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/client-logger": "6.5.0-alpha.55",
|
||||
"@storybook/components": "6.5.0-alpha.55",
|
||||
"@storybook/core-events": "6.5.0-alpha.55",
|
||||
"@storybook/csf": "0.0.2--canary.507502b.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
@ -62,8 +62,8 @@
|
||||
"@types/webpack-env": "^1.16.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
@ -76,7 +76,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Outline",
|
||||
|
@ -1,12 +0,0 @@
|
||||
function config(entry = []) {
|
||||
return [...entry, require.resolve('./dist/esm/preset/addDecorator')];
|
||||
}
|
||||
|
||||
function managerEntries(entry = [], options) {
|
||||
return [...entry, require.resolve('./dist/esm/register')];
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
managerEntries,
|
||||
config,
|
||||
};
|
1
addons/outline/preview.js
Normal file
1
addons/outline/preview.js
Normal file
@ -0,0 +1 @@
|
||||
export * from './dist/esm/preset/preview';
|
@ -1 +1,6 @@
|
||||
require('./dist/esm/register');
|
||||
import { once } from '@storybook/client-logger';
|
||||
import './manager';
|
||||
|
||||
once.warn(
|
||||
'register.js is deprecated see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-registerjs'
|
||||
);
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Take a code snapshot of every story automatically with Jest",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -45,12 +45,12 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@jest/transform": "^26.6.2",
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/babel-plugin-require-context-hook": "1.0.1",
|
||||
"@storybook/client-api": "6.5.0-alpha.51",
|
||||
"@storybook/core": "6.5.0-alpha.51",
|
||||
"@storybook/core-client": "6.5.0-alpha.51",
|
||||
"@storybook/core-common": "6.5.0-alpha.51",
|
||||
"@storybook/client-api": "6.5.0-alpha.55",
|
||||
"@storybook/core": "6.5.0-alpha.55",
|
||||
"@storybook/core-client": "6.5.0-alpha.55",
|
||||
"@storybook/core-common": "6.5.0-alpha.55",
|
||||
"@storybook/csf": "0.0.2--canary.507502b.0",
|
||||
"@types/glob": "^7.1.3",
|
||||
"@types/jest": "^26.0.16",
|
||||
@ -69,11 +69,11 @@
|
||||
"devDependencies": {
|
||||
"@angular/core": "^11.2.0",
|
||||
"@angular/platform-browser-dynamic": "^11.2.0",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.51",
|
||||
"@storybook/angular": "6.5.0-alpha.51",
|
||||
"@storybook/react": "6.5.0-alpha.51",
|
||||
"@storybook/vue": "6.5.0-alpha.51",
|
||||
"@storybook/vue3": "6.5.0-alpha.51",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.55",
|
||||
"@storybook/angular": "6.5.0-alpha.55",
|
||||
"@storybook/react": "6.5.0-alpha.55",
|
||||
"@storybook/vue": "6.5.0-alpha.55",
|
||||
"@storybook/vue3": "6.5.0-alpha.55",
|
||||
"babel-loader": "^8.0.0",
|
||||
"enzyme": "^3.11.0",
|
||||
"enzyme-to-json": "^3.6.1",
|
||||
@ -94,8 +94,8 @@
|
||||
"jest-preset-angular": "*",
|
||||
"jest-vue-preprocessor": "*",
|
||||
"preact": "^10.5.13",
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0",
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"rxjs": "*",
|
||||
"svelte": "*",
|
||||
"vue": "*",
|
||||
@ -151,7 +151,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"storybook": {
|
||||
"displayName": "Storyshots",
|
||||
"icon": "https://user-images.githubusercontent.com/263385/101991676-48cdf300-3c7c-11eb-8aa1-944dab6ab29b.png",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots-puppeteer",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Image snapshots addition to StoryShots based on puppeteer",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -42,7 +42,7 @@
|
||||
"dependencies": {
|
||||
"@axe-core/puppeteer": "^4.2.0",
|
||||
"@storybook/csf": "0.0.2--canary.507502b.0",
|
||||
"@storybook/node-logger": "6.5.0-alpha.51",
|
||||
"@storybook/node-logger": "6.5.0-alpha.55",
|
||||
"@types/jest-image-snapshot": "^4.1.3",
|
||||
"core-js": "^3.8.2",
|
||||
"jest-image-snapshot": "^4.3.0",
|
||||
@ -53,7 +53,7 @@
|
||||
"@types/puppeteer": "^5.4.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.51",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.55",
|
||||
"puppeteer": "^2.0.0 || ^3.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
@ -64,5 +64,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42"
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storysource",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "View a story’s source code to see how it works and paste into your app",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -41,13 +41,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/client-logger": "6.5.0-alpha.51",
|
||||
"@storybook/components": "6.5.0-alpha.51",
|
||||
"@storybook/router": "6.5.0-alpha.51",
|
||||
"@storybook/source-loader": "6.5.0-alpha.51",
|
||||
"@storybook/theming": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/client-logger": "6.5.0-alpha.55",
|
||||
"@storybook/components": "6.5.0-alpha.55",
|
||||
"@storybook/router": "6.5.0-alpha.55",
|
||||
"@storybook/source-loader": "6.5.0-alpha.55",
|
||||
"@storybook/theming": "6.5.0-alpha.55",
|
||||
"core-js": "^3.8.2",
|
||||
"estraverse": "^5.2.0",
|
||||
"loader-utils": "^2.0.0",
|
||||
@ -60,8 +60,8 @@
|
||||
"@types/react-syntax-highlighter": "^11.0.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
@ -74,7 +74,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Storysource",
|
||||
|
@ -25,7 +25,7 @@ function webpack(webpackConfig = {}, options = {}) {
|
||||
}
|
||||
|
||||
function managerEntries(entry = []) {
|
||||
return [...entry, require.resolve('./dist/esm/register')];
|
||||
return [...entry, require.resolve('./dist/esm/manager')];
|
||||
}
|
||||
|
||||
module.exports = { webpack, managerEntries };
|
||||
|
@ -1 +1 @@
|
||||
require('./dist/esm/register');
|
||||
import './dist/esm/manager';
|
||||
|
1
addons/toolbars/manager.js
Normal file
1
addons/toolbars/manager.js
Normal file
@ -0,0 +1 @@
|
||||
import './dist/esm/manager';
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-toolbars",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Create your own toolbar items that control story rendering",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -25,9 +25,9 @@
|
||||
"url": "https://opencollective.com/storybook"
|
||||
},
|
||||
"license": "MIT",
|
||||
"main": "dist/cjs/register.js",
|
||||
"module": "dist/esm/register.js",
|
||||
"types": "dist/ts3.9/register.d.ts",
|
||||
"main": "dist/cjs/manager.js",
|
||||
"module": "dist/esm/manager.js",
|
||||
"types": "dist/ts3.9/manager.d.ts",
|
||||
"typesVersions": {
|
||||
"<3.8": {
|
||||
"dist/ts3.9/*": [
|
||||
@ -45,16 +45,17 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/components": "6.5.0-alpha.51",
|
||||
"@storybook/theming": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/client-logger": "6.5.0-alpha.55",
|
||||
"@storybook/components": "6.5.0-alpha.55",
|
||||
"@storybook/theming": "6.5.0-alpha.55",
|
||||
"core-js": "^3.8.2",
|
||||
"regenerator-runtime": "^0.13.7"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
@ -67,8 +68,8 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"sbmodern": "dist/modern/register.js",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/manager.js",
|
||||
"storybook": {
|
||||
"displayName": "Toolbars",
|
||||
"icon": "https://user-images.githubusercontent.com/263385/101991677-48cdf300-3c7c-11eb-93b4-19b0e3366959.png",
|
||||
|
@ -1,5 +0,0 @@
|
||||
function managerEntries(entry = []) {
|
||||
return [...entry, require.resolve('./dist/esm/register')];
|
||||
}
|
||||
|
||||
module.exports = { managerEntries };
|
@ -1 +1,6 @@
|
||||
import './dist/esm/register';
|
||||
import { once } from '@storybook/client-logger';
|
||||
import './manager';
|
||||
|
||||
once.warn(
|
||||
'register.js is deprecated see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-registerjs'
|
||||
);
|
||||
|
1
addons/viewport/manager.js
Normal file
1
addons/viewport/manager.js
Normal file
@ -0,0 +1 @@
|
||||
import './dist/esm/manager';
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-viewport",
|
||||
"version": "6.5.0-alpha.51",
|
||||
"version": "6.5.0-alpha.55",
|
||||
"description": "Build responsive components by adjusting Storybook’s viewport size and orientation",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -42,12 +42,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.51",
|
||||
"@storybook/api": "6.5.0-alpha.51",
|
||||
"@storybook/client-logger": "6.5.0-alpha.51",
|
||||
"@storybook/components": "6.5.0-alpha.51",
|
||||
"@storybook/core-events": "6.5.0-alpha.51",
|
||||
"@storybook/theming": "6.5.0-alpha.51",
|
||||
"@storybook/addons": "6.5.0-alpha.55",
|
||||
"@storybook/api": "6.5.0-alpha.55",
|
||||
"@storybook/client-logger": "6.5.0-alpha.55",
|
||||
"@storybook/components": "6.5.0-alpha.55",
|
||||
"@storybook/core-events": "6.5.0-alpha.55",
|
||||
"@storybook/theming": "6.5.0-alpha.55",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"memoizerific": "^1.11.3",
|
||||
@ -55,8 +55,8 @@
|
||||
"regenerator-runtime": "^0.13.7"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
@ -69,7 +69,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cfcdc7fb74d3cf60eae8dd0b5a626d67ed180d42",
|
||||
"gitHead": "0d051c3d8efb90e15d8734e6e6914b2439420953",
|
||||
"sbmodern": "dist/modern/preview.js",
|
||||
"storybook": {
|
||||
"displayName": "Viewport",
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user