mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 00:51:04 +08:00
Merge branch 'next' into pr/16975
This commit is contained in:
commit
072a9d47f0
@ -250,7 +250,7 @@ jobs:
|
||||
cd ..
|
||||
npx create-react-app cra-bench
|
||||
cd cra-bench
|
||||
npx @storybook/bench 'npx sb init' --label cra --extra-flags "--modern"
|
||||
npx @storybook/bench@latest 'npx sb init' --label cra --extra-flags "--modern"
|
||||
e2e-tests-pnp:
|
||||
executor:
|
||||
class: medium
|
||||
|
@ -3,6 +3,10 @@ module.exports = {
|
||||
extends: ['@storybook/eslint-config-storybook', 'plugin:storybook/recommended'],
|
||||
rules: {
|
||||
'@typescript-eslint/ban-ts-comment': 'warn',
|
||||
'jest/no-standalone-expect': [
|
||||
'error',
|
||||
{ additionalTestBlockFunctions: ['it.skipWindows', 'it.onWindows'] },
|
||||
],
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
|
27
.github/workflows/tests-unit.yml
vendored
27
.github/workflows/tests-unit.yml
vendored
@ -1,16 +1,33 @@
|
||||
name: Unit tests
|
||||
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- next
|
||||
pull_request:
|
||||
types: [opened, reopened, labeled, synchronize]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Core Unit Tests
|
||||
runs-on: ubuntu-latest
|
||||
name: Core Unit Tests node-${{ matrix.node_version }}, ${{ matrix.os }}
|
||||
if: ${{ github.event.label.name == 'ci:matrix' || github.event.type == 'push' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node_version: [12, 14, 16]
|
||||
include:
|
||||
- os: macos-latest
|
||||
node_version: 16
|
||||
- os: windows-latest
|
||||
node_version: 16
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
- name: Set node version to ${{ matrix.node_version }}
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "12.x"
|
||||
node-version: ${{ matrix.node_version }}
|
||||
cache: yarn
|
||||
- name: install, bootstrap
|
||||
run: |
|
||||
|
18
CHANGELOG.md
18
CHANGELOG.md
@ -1,8 +1,24 @@
|
||||
## 6.5.0-alpha.4 (December 18, 2021)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Angular: Fix for renamed method in angular 13.1 ([#17032](https://github.com/storybookjs/storybook/pull/17032))
|
||||
- Source-loader: Fix node.declaration edge case ([#17027](https://github.com/storybookjs/storybook/pull/17027))
|
||||
- Core: Fix debug output on webpack failures ([#16988](https://github.com/storybookjs/storybook/pull/16988))
|
||||
|
||||
### Maintenance
|
||||
|
||||
- Build: Run unit tests on more node versions, mac, and windows ([#16744](https://github.com/storybookjs/storybook/pull/16744))
|
||||
|
||||
### Dependency Upgrades
|
||||
|
||||
- Avoid referencing internal Emotion packages in built types ([#16905](https://github.com/storybookjs/storybook/pull/16905))
|
||||
|
||||
## 6.5.0-alpha.3 (December 9, 2021)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Core: Support custom PREVIEW URL for block story iframe ([#16773](https://github.com/storybookjs/storybook/pull/16773))
|
||||
- Core: Support custom PREVIEW URL for block story iframe ([#16773](https://github.com/storybookjs/storybook/pull/16773))
|
||||
|
||||
## 6.5.0-alpha.2 (December 9, 2021)
|
||||
|
||||
|
55
MIGRATION.md
55
MIGRATION.md
@ -17,7 +17,10 @@
|
||||
- [Emotion11 quasi-compatibility](#emotion11-quasi-compatibility)
|
||||
- [Babel mode v7](#babel-mode-v7)
|
||||
- [Loader behavior with args changes](#loader-behavior-with-args-changes)
|
||||
- [Angular component parameter removed](#angular-component-parameter-removed)
|
||||
- [6.4 Angular changes](#64-angular-changes)
|
||||
- [SB Angular builder](#sb-angular-builder)
|
||||
- [Angular13](#angular13)
|
||||
- [Angular component parameter removed](#angular-component-parameter-removed)
|
||||
- [6.4 deprecations](#64-deprecations)
|
||||
- [Deprecated --static-dir CLI flag](#deprecated---static-dir-cli-flag)
|
||||
- [From version 6.2.x to 6.3.0](#from-version-62x-to-630)
|
||||
@ -267,7 +270,7 @@ export default {
|
||||
title: 'Components/Atoms/Button',
|
||||
};
|
||||
|
||||
// ✅ undefined 6.3 KO / 7.0 OK
|
||||
// ✅ undefined 6.3 OK / 7.0 OK
|
||||
export default {
|
||||
component: Button,
|
||||
};
|
||||
@ -470,7 +473,53 @@ This will create a `.babelrc.json` file. This file includes a bunch of babel plu
|
||||
|
||||
In 6.4 the behavior of loaders when arg changes occurred was tweaked so loaders do not re-run. Instead the previous value of the loader is passed to the story, irrespective of the new args.
|
||||
|
||||
### Angular component parameter removed
|
||||
### 6.4 Angular changes
|
||||
|
||||
#### SB Angular builder
|
||||
|
||||
Since SB6.3, Storybook for Angular supports a builder configuration in your project's `angular.json`. This provides an Angular-style configuration for running and building your Storybook. The full builder documentation will be shown in the [main documentation page](https://storybook.js.org/docs/angular) soon, but for now you can check out an example here:
|
||||
|
||||
- `start-storybook`: https://github.com/storybookjs/storybook/blob/next/examples/angular-cli/angular.json#L78
|
||||
- `build-storybook`: https://github.com/storybookjs/storybook/blob/next/examples/angular-cli/angular.json#L86
|
||||
|
||||
#### Angular13
|
||||
|
||||
Angular 13 introduces breaking changes that require updating your Storybook configuration if you are migrating from a previous version of Angular.
|
||||
|
||||
Most notably, the documented way of including global styles is no longer supported by Angular13. Previously you could write the following in your `.storybook/preview.js` config:
|
||||
|
||||
```
|
||||
import '!style-loader!css-loader!sass-loader!./styles.scss';
|
||||
```
|
||||
|
||||
If you use Angular 13 and above, you should use the builder configuration instead:
|
||||
|
||||
```json
|
||||
"my-default-project": {
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"styles": ["src/styles.css", "src/styles.scss"],
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
```
|
||||
|
||||
If you need storybook-specific styles separate from your app, you can configure the styles in the [SB Angular builder](#sb-angular-builder), which completely overrides your project's styles:
|
||||
|
||||
```json
|
||||
"storybook": {
|
||||
"builder": "@storybook/angular:start-storybook",
|
||||
"options": {
|
||||
"browserTarget": "my-default-project:build",
|
||||
"styles": [".storybook/custom-styles.scss"],
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
#### Angular component parameter removed
|
||||
|
||||
In SB6.3 and earlier, the `default.component` metadata was implemented as a parameter, meaning that stories could set `parameters.component` to override the default export. This was an internal implementation that was never documented, but it was mistakenly used in some Angular examples.
|
||||
|
||||
|
@ -22,6 +22,8 @@ module.exports = {
|
||||
};
|
||||
```
|
||||
|
||||
And here's a sample story file to test the addon:
|
||||
|
||||
```js
|
||||
import React from 'react';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-a11y",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Test component compliance with web accessibility standards",
|
||||
"keywords": [
|
||||
"a11y",
|
||||
@ -45,14 +45,14 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/channels": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/channels": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"axe-core": "^4.2.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
@ -81,7 +81,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Accessibility",
|
||||
|
@ -129,11 +129,14 @@ describe('A11YPanel', () => {
|
||||
const { getByText } = render(<ThemedA11YPanel />);
|
||||
const useChannelArgs = mockedApi.useChannel.mock.calls[0][0];
|
||||
act(() => useChannelArgs[EVENTS.RESULT](axeResult));
|
||||
await waitFor(() => {
|
||||
expect(getByText(/Tests completed/)).toBeTruthy();
|
||||
expect(getByText(/Violations/)).toBeTruthy();
|
||||
expect(getByText(/Passes/)).toBeTruthy();
|
||||
expect(getByText(/Incomplete/)).toBeTruthy();
|
||||
});
|
||||
await waitFor(
|
||||
() => {
|
||||
expect(getByText(/Tests completed/)).toBeTruthy();
|
||||
expect(getByText(/Violations/)).toBeTruthy();
|
||||
expect(getByText(/Passes/)).toBeTruthy();
|
||||
expect(getByText(/Incomplete/)).toBeTruthy();
|
||||
},
|
||||
{ timeout: 2000 }
|
||||
);
|
||||
});
|
||||
});
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-actions",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Get UI feedback when an action is performed on an interactive element",
|
||||
"keywords": [
|
||||
"storybook",
|
||||
@ -41,12 +41,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"global": "^4.4.0",
|
||||
@ -79,7 +79,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Actions",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-backgrounds",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"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.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"memoizerific": "^1.11.3",
|
||||
@ -77,7 +77,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Backgrounds",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-controls",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"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.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"lodash": "^4.17.21",
|
||||
"ts-dedent": "^2.0.0"
|
||||
@ -73,7 +73,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/register.js",
|
||||
"storybook": {
|
||||
"displayName": "Controls",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-docs",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Document component usage and properties in Markdown",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -63,21 +63,21 @@
|
||||
"@mdx-js/loader": "^1.6.22",
|
||||
"@mdx-js/mdx": "^1.6.22",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/csf-tools": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/postinstall": "6.5.0-alpha.3",
|
||||
"@storybook/preview-web": "6.5.0-alpha.3",
|
||||
"@storybook/source-loader": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/csf-tools": "6.5.0-alpha.4",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/postinstall": "6.5.0-alpha.4",
|
||||
"@storybook/preview-web": "6.5.0-alpha.4",
|
||||
"@storybook/source-loader": "6.5.0-alpha.4",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"acorn": "^7.4.1",
|
||||
"acorn-jsx": "^5.3.1",
|
||||
"acorn-walk": "^7.2.0",
|
||||
@ -104,13 +104,13 @@
|
||||
"devDependencies": {
|
||||
"@angular/core": "^11.2.14",
|
||||
"@babel/core": "^7.12.10",
|
||||
"@emotion/core": "^10.1.1",
|
||||
"@emotion/core": "^10.3.1",
|
||||
"@emotion/styled": "^10.0.27",
|
||||
"@storybook/angular": "6.5.0-alpha.3",
|
||||
"@storybook/html": "6.5.0-alpha.3",
|
||||
"@storybook/react": "6.5.0-alpha.3",
|
||||
"@storybook/vue": "6.5.0-alpha.3",
|
||||
"@storybook/web-components": "6.5.0-alpha.3",
|
||||
"@storybook/angular": "6.5.0-alpha.4",
|
||||
"@storybook/html": "6.5.0-alpha.4",
|
||||
"@storybook/react": "6.5.0-alpha.4",
|
||||
"@storybook/vue": "6.5.0-alpha.4",
|
||||
"@storybook/web-components": "6.5.0-alpha.4",
|
||||
"@types/cross-spawn": "^6.0.2",
|
||||
"@types/doctrine": "^0.0.3",
|
||||
"@types/enzyme": "^3.10.8",
|
||||
@ -140,12 +140,12 @@
|
||||
"zone.js": "^0.11.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@storybook/angular": "6.5.0-alpha.3",
|
||||
"@storybook/html": "6.5.0-alpha.3",
|
||||
"@storybook/react": "6.5.0-alpha.3",
|
||||
"@storybook/vue": "6.5.0-alpha.3",
|
||||
"@storybook/vue3": "6.5.0-alpha.3",
|
||||
"@storybook/web-components": "6.5.0-alpha.3",
|
||||
"@storybook/angular": "6.5.0-alpha.4",
|
||||
"@storybook/html": "6.5.0-alpha.4",
|
||||
"@storybook/react": "6.5.0-alpha.4",
|
||||
"@storybook/vue": "6.5.0-alpha.4",
|
||||
"@storybook/vue3": "6.5.0-alpha.4",
|
||||
"@storybook/web-components": "6.5.0-alpha.4",
|
||||
"lit": "^2.0.0",
|
||||
"lit-html": "^1.4.1 || ^2.0.0",
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
@ -202,7 +202,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Docs",
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -6,6 +6,8 @@ import { sync as spawnSync } from 'cross-spawn';
|
||||
|
||||
import { findComponentByName, extractArgTypesFromData } from './compodoc';
|
||||
|
||||
const { SNAPSHOT_OS } = global;
|
||||
|
||||
// File hierarchy: __testfixtures__ / some-test-case / input.*
|
||||
const inputRegExp = /^input\..*$/;
|
||||
|
||||
@ -42,7 +44,9 @@ describe('angular component properties', () => {
|
||||
// snapshot the output of compodoc
|
||||
const compodocOutput = runCompodoc(inputPath);
|
||||
const compodocJson = JSON.parse(compodocOutput);
|
||||
expect(compodocJson).toMatchSpecificSnapshot(path.join(testDir, 'compodoc.snapshot'));
|
||||
expect(compodocJson).toMatchSpecificSnapshot(
|
||||
path.join(testDir, `compodoc-${SNAPSHOT_OS}.snapshot`)
|
||||
);
|
||||
|
||||
// snapshot the output of addon-docs angular-properties
|
||||
const componentData = findComponentByName('InputComponent', compodocJson);
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-essentials",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Curated addons to bring out the best of Storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -39,31 +39,31 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.3",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.3",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.3",
|
||||
"@storybook/addon-measure": "6.5.0-alpha.3",
|
||||
"@storybook/addon-outline": "6.5.0-alpha.3",
|
||||
"@storybook/addon-toolbars": "6.5.0-alpha.3",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.4",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.4",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.4",
|
||||
"@storybook/addon-measure": "6.5.0-alpha.4",
|
||||
"@storybook/addon-outline": "6.5.0-alpha.4",
|
||||
"@storybook/addon-toolbars": "6.5.0-alpha.4",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.4",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"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.3",
|
||||
"@storybook/vue": "6.5.0-alpha.4",
|
||||
"@types/jest": "^26.0.16",
|
||||
"@types/webpack-env": "^1.16.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@storybook/vue": "6.5.0-alpha.3",
|
||||
"@storybook/web-components": "6.5.0-alpha.3",
|
||||
"@storybook/vue": "6.5.0-alpha.4",
|
||||
"@storybook/web-components": "6.5.0-alpha.4",
|
||||
"babel-loader": "^8.0.0",
|
||||
"lit-html": "^1.4.1 || ^2.0.0-rc.3",
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
@ -93,6 +93,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-interactions",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Automate, test and debug user interactions",
|
||||
"keywords": [
|
||||
"storybook-addons",
|
||||
@ -41,14 +41,14 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/instrumenter": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/instrumenter": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"global": "^4.4.0",
|
||||
"jest-mock": "^27.0.6",
|
||||
"polished": "^4.0.5",
|
||||
@ -74,7 +74,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Interactions",
|
||||
|
@ -46,7 +46,7 @@ You may want to add the result file to `.gitignore`, since it's a generated file
|
||||
|
||||
But much like lockfiles and snapshots, checking-in generated files can have certain advantages as well. It's up to you.
|
||||
We recommend to **do** check in the test results file so starting Storybook from a clean git clone doesn't require running all tests first,
|
||||
but this can mean you'll encounter merge conflicts on this file in the future (_re-generating this file is very similar to re-generating lockfiles and snapshots_).
|
||||
but this can mean you'll encounter merge conflicts on this file in the future (_re-generating this file is very similar to re-generating lockfiles and snapshots_).
|
||||
|
||||
### Generating the test results
|
||||
|
||||
@ -101,17 +101,17 @@ You can also add multiple tests results within your story by including the `jest
|
||||
```js
|
||||
// MyComponent.stories.js | MyComponent.stories.jsx
|
||||
|
||||
import MyComponent from './MyComponent';
|
||||
import MyComponent from './MyComponent';
|
||||
|
||||
import results from '../.jest-test-results.json';
|
||||
import results from '../.jest-test-results.json';
|
||||
|
||||
import { withTests } from '@storybook/addon-jest';
|
||||
import { withTests } from '@storybook/addon-jest';
|
||||
|
||||
export default {
|
||||
component: MyComponent,
|
||||
title: 'MyComponent',
|
||||
export default {
|
||||
component: MyComponent,
|
||||
title: 'MyComponent',
|
||||
decorators: [withTests({ results })],
|
||||
};
|
||||
};
|
||||
|
||||
const Template = (args) => <MyComponent {....args} />;
|
||||
|
||||
@ -126,7 +126,7 @@ Default.parameters = {
|
||||
|
||||
### Global level
|
||||
|
||||
To avoid importing the results of the tests in each story, you can update
|
||||
To avoid importing the results of the tests in each story, you can update
|
||||
your [`.storybook/preview.js`](https://storybook.js.org/docs/react/configure/overview#configure-story-rendering) and include a decorator allowing you to display the results only for the stories that have the `jest` parameter defined:
|
||||
|
||||
```js
|
||||
@ -140,7 +140,7 @@ export const decorators = [
|
||||
withTests({
|
||||
results,
|
||||
}),
|
||||
];
|
||||
];
|
||||
```
|
||||
|
||||
Then in your story file:
|
||||
@ -162,7 +162,7 @@ Default.args={
|
||||
text: 'Jest results in Storybook',
|
||||
};
|
||||
Default.parameters = {
|
||||
jest: ['MyComponent.test.js'],
|
||||
jest: 'MyComponent.test.js',
|
||||
};
|
||||
```
|
||||
|
||||
@ -230,7 +230,7 @@ const Template: Story<MyComponent> = (args: MyComponent) => ({
|
||||
|
||||
export const Default = Template.bind({});
|
||||
Default.parameters = {
|
||||
jest: ['MyComponent.component'],
|
||||
jest: 'MyComponent.component',
|
||||
};
|
||||
```
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-jest",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "React storybook addon that show component jest report",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -47,11 +47,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"react-sizeme": "^3.0.1",
|
||||
@ -76,7 +76,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Jest",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-links",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"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.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/router": "6.5.0-alpha.3",
|
||||
"@storybook/router": "6.5.0-alpha.4",
|
||||
"@types/qs": "^6.9.5",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
@ -72,7 +72,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Links",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-measure",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"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.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0"
|
||||
@ -71,7 +71,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Measure",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-outline",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"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.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
@ -76,7 +76,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Outline",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"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.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/babel-plugin-require-context-hook": "1.0.1",
|
||||
"@storybook/client-api": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-client": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/client-api": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-client": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.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.3",
|
||||
"@storybook/angular": "6.5.0-alpha.3",
|
||||
"@storybook/react": "6.5.0-alpha.3",
|
||||
"@storybook/vue": "6.5.0-alpha.3",
|
||||
"@storybook/vue3": "6.5.0-alpha.3",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.4",
|
||||
"@storybook/angular": "6.5.0-alpha.4",
|
||||
"@storybook/react": "6.5.0-alpha.4",
|
||||
"@storybook/vue": "6.5.0-alpha.4",
|
||||
"@storybook/vue3": "6.5.0-alpha.4",
|
||||
"babel-loader": "^8.0.0",
|
||||
"enzyme": "^3.11.0",
|
||||
"enzyme-to-json": "^3.6.1",
|
||||
@ -151,7 +151,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"storybook": {
|
||||
"displayName": "Storyshots",
|
||||
"icon": "https://user-images.githubusercontent.com/263385/101991676-48cdf300-3c7c-11eb-8aa1-944dab6ab29b.png",
|
||||
|
@ -1,3 +1,4 @@
|
||||
import path from 'path';
|
||||
import { getPreviewFile, getMainFile } from './configure';
|
||||
|
||||
// eslint-disable-next-line global-require, jest/no-mocks-import
|
||||
@ -19,9 +20,9 @@ describe('preview files', () => {
|
||||
${'config.js'}
|
||||
${'config.jsx'}
|
||||
`('resolves a valid preview file from $filepath', ({ filepath }) => {
|
||||
setupFiles({ [`test/${filepath}`]: 'true' });
|
||||
setupFiles({ [path.join('test', filepath)]: 'true' });
|
||||
|
||||
expect(getPreviewFile('test/')).toEqual(`test/${filepath}`);
|
||||
expect(getPreviewFile('test/')).toEqual(`test${path.sep}${filepath}`);
|
||||
});
|
||||
|
||||
it('returns false when none of the paths exist', () => {
|
||||
@ -39,9 +40,9 @@ describe('main files', () => {
|
||||
${'main.js'}
|
||||
${'main.jsx'}
|
||||
`('resolves a valid main file path from $filepath', ({ filepath }) => {
|
||||
setupFiles({ [`test/${filepath}`]: 'true' });
|
||||
setupFiles({ [path.join('test', filepath)]: 'true' });
|
||||
|
||||
expect(getMainFile('test/')).toEqual(`test/${filepath}`);
|
||||
expect(getMainFile('test/')).toEqual(`test${path.sep}${filepath}`);
|
||||
});
|
||||
|
||||
it('returns false when none of the paths exist', () => {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots-puppeteer",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"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.87bc651.0",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@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.3",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.4",
|
||||
"puppeteer": "^2.0.0 || ^3.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
@ -64,5 +64,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98"
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storysource",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"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.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/router": "6.5.0-alpha.3",
|
||||
"@storybook/source-loader": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/router": "6.5.0-alpha.4",
|
||||
"@storybook/source-loader": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"estraverse": "^5.2.0",
|
||||
"loader-utils": "^2.0.0",
|
||||
@ -75,7 +75,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js",
|
||||
"storybook": {
|
||||
"displayName": "Storysource",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-toolbars",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Create your own toolbar items that control story rendering",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -45,10 +45,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"regenerator-runtime": "^0.13.7"
|
||||
},
|
||||
@ -67,7 +67,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/register.js",
|
||||
"storybook": {
|
||||
"displayName": "Toolbars",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-viewport",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"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.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"memoizerific": "^1.11.3",
|
||||
@ -69,7 +69,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/preview.js",
|
||||
"storybook": {
|
||||
"displayName": "Viewport",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/angular",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -45,15 +45,15 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@types/node": "^14.14.20 || ^16.0.0",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"autoprefixer": "^9.8.6",
|
||||
@ -139,5 +139,5 @@
|
||||
"access": "public"
|
||||
},
|
||||
"builders": "dist/ts3.9/builders/builders.json",
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98"
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6"
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ const {
|
||||
const {
|
||||
getCommonConfig,
|
||||
getStylesConfig,
|
||||
getDevServerConfig,
|
||||
getTypescriptWorkerPlugin,
|
||||
} = require('@angular-devkit/build-angular/src/webpack/configs');
|
||||
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
||||
@ -41,7 +42,11 @@ exports.getWebpackConfig = async (baseConfig, { builderOptions, builderContext }
|
||||
aot: false,
|
||||
},
|
||||
builderContext,
|
||||
(wco) => [getCommonConfig(wco), getStylesConfig(wco), getTypescriptWorkerPlugin(wco)]
|
||||
(wco) => [
|
||||
getCommonConfig(wco),
|
||||
getStylesConfig(wco),
|
||||
getTypescriptWorkerPlugin ? getTypescriptWorkerPlugin(wco) : getDevServerConfig(wco),
|
||||
]
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* eslint-disable jest/no-interpolation-in-snapshots */
|
||||
import path from 'path';
|
||||
import { Configuration } from 'webpack';
|
||||
import { logger } from '@storybook/node-logger';
|
||||
import { normalize, getSystemPath } from '@angular-devkit/core';
|
||||
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
|
||||
import { webpackFinal } from './framework-preset-angular-cli';
|
||||
import { PresetOptions } from './options';
|
||||
@ -21,7 +23,7 @@ afterEach(() => {
|
||||
});
|
||||
|
||||
function initMockWorkspace(name: string) {
|
||||
workspaceRoot = `${testPath}/__mocks-ng-workspace__/${name}`;
|
||||
workspaceRoot = path.join(__dirname, '__mocks-ng-workspace__', name);
|
||||
cwdSpy.mockReturnValue(workspaceRoot);
|
||||
}
|
||||
|
||||
@ -263,7 +265,7 @@ describe('framework-preset-angular-cli', () => {
|
||||
|
||||
expect(webpackFinalConfig.resolve.modules).toEqual([
|
||||
...baseWebpackConfig.resolve.modules,
|
||||
`${workspaceRoot}/src`,
|
||||
getSystemPath(normalize(path.join(workspaceRoot, 'src'))).replace(/\\/g, '/'),
|
||||
]);
|
||||
});
|
||||
|
||||
@ -274,7 +276,9 @@ describe('framework-preset-angular-cli', () => {
|
||||
expect(webpackFinalConfig.resolve.plugins).toMatchInlineSnapshot(`
|
||||
Array [
|
||||
TsconfigPathsPlugin {
|
||||
"absoluteBaseUrl": "${workspaceRoot}/src/",
|
||||
"absoluteBaseUrl": "${(
|
||||
getSystemPath(normalize(path.join(workspaceRoot, 'src'))) + path.sep
|
||||
).replace(/\\/g, '\\\\')}",
|
||||
"baseUrl": "./",
|
||||
"extensions": Array [
|
||||
".ts",
|
||||
@ -307,8 +311,8 @@ describe('framework-preset-angular-cli', () => {
|
||||
...baseWebpackConfig,
|
||||
entry: [
|
||||
...(baseWebpackConfig.entry as any[]),
|
||||
`${workspaceRoot}/src/styles.css`,
|
||||
`${workspaceRoot}/src/styles.scss`,
|
||||
path.join(workspaceRoot, 'src', 'styles.css'),
|
||||
path.join(workspaceRoot, 'src', 'styles.scss'),
|
||||
],
|
||||
module: { ...baseWebpackConfig.module, rules: expect.anything() },
|
||||
plugins: expect.anything(),
|
||||
@ -325,45 +329,48 @@ describe('framework-preset-angular-cli', () => {
|
||||
it('should set webpack "module.rules"', async () => {
|
||||
const baseWebpackConfig = newWebpackConfiguration();
|
||||
const webpackFinalConfig = await webpackFinal(baseWebpackConfig, options);
|
||||
|
||||
const stylePaths = [
|
||||
path.join(workspaceRoot, 'src', 'styles.css'),
|
||||
path.join(workspaceRoot, 'src', 'styles.scss'),
|
||||
];
|
||||
expect(webpackFinalConfig.module.rules).toEqual([
|
||||
{
|
||||
exclude: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
exclude: stylePaths,
|
||||
test: /\.css$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
exclude: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
exclude: stylePaths,
|
||||
test: /\.scss$|\.sass$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
exclude: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
exclude: stylePaths,
|
||||
test: /\.less$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
exclude: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
exclude: stylePaths,
|
||||
test: /\.styl$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
include: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
include: stylePaths,
|
||||
test: /\.css$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
include: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
include: stylePaths,
|
||||
test: /\.scss$|\.sass$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
include: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
include: stylePaths,
|
||||
test: /\.less$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
include: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
include: stylePaths,
|
||||
test: /\.styl$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
@ -398,8 +405,8 @@ describe('framework-preset-angular-cli', () => {
|
||||
...baseWebpackConfig,
|
||||
entry: [
|
||||
...(baseWebpackConfig.entry as any[]),
|
||||
`${workspaceRoot}/src/styles.css`,
|
||||
`${workspaceRoot}/src/styles.scss`,
|
||||
path.join(workspaceRoot, 'src', 'styles.css'),
|
||||
path.join(workspaceRoot, 'src', 'styles.scss'),
|
||||
],
|
||||
module: { ...baseWebpackConfig.module, rules: expect.anything() },
|
||||
plugins: expect.anything(),
|
||||
@ -416,45 +423,49 @@ describe('framework-preset-angular-cli', () => {
|
||||
it('should set webpack "module.rules"', async () => {
|
||||
const baseWebpackConfig = newWebpackConfiguration();
|
||||
const webpackFinalConfig = await webpackFinal(baseWebpackConfig, options);
|
||||
const stylePaths = [
|
||||
path.join(workspaceRoot, 'src', 'styles.css'),
|
||||
path.join(workspaceRoot, 'src', 'styles.scss'),
|
||||
];
|
||||
|
||||
expect(webpackFinalConfig.module.rules).toEqual([
|
||||
{
|
||||
exclude: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
exclude: stylePaths,
|
||||
test: /\.css$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
exclude: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
exclude: stylePaths,
|
||||
test: /\.scss$|\.sass$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
exclude: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
exclude: stylePaths,
|
||||
test: /\.less$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
exclude: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
exclude: stylePaths,
|
||||
test: /\.styl$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
include: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
include: stylePaths,
|
||||
test: /\.css$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
include: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
include: stylePaths,
|
||||
test: /\.scss$|\.sass$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
include: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
include: stylePaths,
|
||||
test: /\.less$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
include: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
include: stylePaths,
|
||||
test: /\.styl$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
@ -476,8 +487,8 @@ describe('framework-preset-angular-cli', () => {
|
||||
...baseWebpackConfig,
|
||||
entry: [
|
||||
...(baseWebpackConfig.entry as any[]),
|
||||
`${workspaceRoot}/src/styles.css`,
|
||||
`${workspaceRoot}/src/styles.scss`,
|
||||
path.join(workspaceRoot, 'src', 'styles.css'),
|
||||
path.join(workspaceRoot, 'src', 'styles.scss'),
|
||||
],
|
||||
module: { ...baseWebpackConfig.module, rules: expect.anything() },
|
||||
plugins: expect.anything(),
|
||||
@ -498,45 +509,49 @@ describe('framework-preset-angular-cli', () => {
|
||||
it('should set webpack "module.rules"', async () => {
|
||||
const baseWebpackConfig = newWebpackConfiguration();
|
||||
const webpackFinalConfig = await webpackFinal(baseWebpackConfig, options);
|
||||
const stylePaths = [
|
||||
path.join(workspaceRoot, 'src', 'styles.css'),
|
||||
path.join(workspaceRoot, 'src', 'styles.scss'),
|
||||
];
|
||||
|
||||
expect(webpackFinalConfig.module.rules).toEqual([
|
||||
{
|
||||
exclude: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
exclude: stylePaths,
|
||||
test: /\.css$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
exclude: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
exclude: stylePaths,
|
||||
test: /\.scss$|\.sass$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
exclude: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
exclude: stylePaths,
|
||||
test: /\.less$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
exclude: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
exclude: stylePaths,
|
||||
test: /\.styl$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
include: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
include: stylePaths,
|
||||
test: /\.css$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
include: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
include: stylePaths,
|
||||
test: /\.scss$|\.sass$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
include: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
include: stylePaths,
|
||||
test: /\.less$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
{
|
||||
include: [`${workspaceRoot}/src/styles.css`, `${workspaceRoot}/src/styles.scss`],
|
||||
include: stylePaths,
|
||||
test: /\.styl$/,
|
||||
use: expect.anything(),
|
||||
},
|
||||
@ -699,7 +714,10 @@ describe('framework-preset-angular-cli', () => {
|
||||
|
||||
expect(webpackFinalConfig).toEqual({
|
||||
...baseWebpackConfig,
|
||||
entry: [...(baseWebpackConfig.entry as any[]), `${workspaceRoot}/src/styles.css`],
|
||||
entry: [
|
||||
...(baseWebpackConfig.entry as any[]),
|
||||
path.join(workspaceRoot, 'src', 'styles.css'),
|
||||
],
|
||||
module: { ...baseWebpackConfig.module, rules: expect.anything() },
|
||||
plugins: expect.anything(),
|
||||
resolve: {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/ember",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
|
||||
"homepage": "https://github.com/storybookjs/storybook/tree/main/app/ember",
|
||||
"bugs": {
|
||||
@ -43,9 +43,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ember/test-helpers": "^2.1.4",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"react": "16.14.0",
|
||||
@ -66,6 +66,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/client/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/html",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -45,13 +45,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/client-api": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/client-api": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/preview-web": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/preview-web": "6.5.0-alpha.4",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@types/node": "^14.14.20 || ^16.0.0",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
@ -72,6 +72,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/client/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preact",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook for Preact: Develop Preact Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -46,11 +46,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-transform-react-jsx": "^7.12.12",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@types/node": "^14.14.20 || ^16.0.0",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
@ -75,6 +75,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/client/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -49,14 +49,14 @@
|
||||
"@babel/preset-flow": "^7.12.1",
|
||||
"@babel/preset-react": "^7.12.10",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/react-docgen-typescript-plugin": "1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@types/node": "^14.14.20 || ^16.0.0",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"babel-plugin-add-react-displayname": "^0.0.5",
|
||||
@ -74,7 +74,7 @@
|
||||
"webpack": "4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/client-api": "6.5.0-alpha.3",
|
||||
"@storybook/client-api": "6.5.0-alpha.4",
|
||||
"@types/prompts": "^2.0.9"
|
||||
},
|
||||
"peerDependencies": {
|
||||
@ -96,6 +96,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/client/index.js"
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { getReactScriptsPath } from './cra-config';
|
||||
|
||||
jest.mock('fs', () => ({
|
||||
@ -7,7 +8,7 @@ jest.mock('fs', () => ({
|
||||
existsSync: jest.fn(() => true),
|
||||
}));
|
||||
|
||||
const SCRIPT_PATH = '.bin/react-scripts';
|
||||
const SCRIPT_PATH = path.join('.bin', 'react-scripts');
|
||||
|
||||
describe('cra-config', () => {
|
||||
describe('when used with the default react-scripts package', () => {
|
||||
@ -19,7 +20,7 @@ describe('cra-config', () => {
|
||||
|
||||
it('should locate the react-scripts package', () => {
|
||||
expect(getReactScriptsPath({ noCache: true })).toEqual(
|
||||
'/test-project/node_modules/react-scripts'
|
||||
path.join(path.sep, 'test-project', 'node_modules', 'react-scripts')
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -33,7 +34,7 @@ describe('cra-config', () => {
|
||||
|
||||
it('should locate the react-scripts package', () => {
|
||||
expect(getReactScriptsPath({ noCache: true })).toEqual(
|
||||
'/test-project/node_modules/custom-react-scripts'
|
||||
path.join(path.sep, 'test-project', 'node_modules', 'custom-react-scripts')
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -65,7 +66,7 @@ exit $ret`
|
||||
|
||||
it('should locate the react-scripts package', () => {
|
||||
expect(getReactScriptsPath({ noCache: true })).toEqual(
|
||||
'/test-project/node_modules/custom-react-scripts'
|
||||
path.join(path.sep, 'test-project', 'node_modules', 'custom-react-scripts')
|
||||
);
|
||||
});
|
||||
});
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/server",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -45,15 +45,15 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/client-api": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/client-api": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/preview-web": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/preview-web": "6.5.0-alpha.4",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@types/node": "^14.14.20 || ^16.0.0",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
@ -76,6 +76,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/client/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/svelte",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -45,11 +45,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"react": "16.14.0",
|
||||
@ -75,6 +75,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/client/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/vue",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -45,11 +45,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@types/node": "^14.14.20 || ^16.0.0",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
@ -83,6 +83,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/client/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/vue3",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -45,11 +45,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@types/node": "^14.14.20 || ^16.0.0",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
@ -81,6 +81,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/client/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/web-components",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"lit-html",
|
||||
@ -50,13 +50,13 @@
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/plugin-syntax-import-meta": "^7.10.4",
|
||||
"@babel/preset-env": "^7.12.11",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/client-api": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/client-api": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/preview-web": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/preview-web": "6.5.0-alpha.4",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@types/node": "^14.14.20 || ^16.0.0",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"babel-plugin-bundled-import-meta": "^0.3.1",
|
||||
@ -80,6 +80,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/client/index.js"
|
||||
}
|
||||
|
@ -25,6 +25,8 @@ Let’s start with the `Button` component. A story is a function that describes
|
||||
'svelte/button-story.native-format.mdx',
|
||||
'svelte/button-story.mdx.mdx',
|
||||
'web-components/button-story.js.mdx',
|
||||
'html/button-story.js.mdx',
|
||||
'html/button-story.ts.mdx',
|
||||
]}
|
||||
/>
|
||||
|
||||
|
22
docs/snippets/html/button-story.js.mdx
Normal file
22
docs/snippets/html/button-story.js.mdx
Normal file
@ -0,0 +1,22 @@
|
||||
```js
|
||||
export default {
|
||||
/* 👇 The title prop is optional.
|
||||
* See https://storybook.js.org/docs/html/configure/overview#configure-story-loading
|
||||
* to learn how to generate automatic titles
|
||||
*/
|
||||
title: 'Button',
|
||||
};
|
||||
|
||||
export const Primary = () => {
|
||||
const btn = document.createElement('button');
|
||||
btn.innerText = 'Button';
|
||||
|
||||
btn.className = [
|
||||
'storybook-button',
|
||||
'storybook-button--medium',
|
||||
'storybook-button--primary',
|
||||
].join(' ');
|
||||
|
||||
return btn;
|
||||
};
|
||||
```
|
24
docs/snippets/html/button-story.ts.mdx
Normal file
24
docs/snippets/html/button-story.ts.mdx
Normal file
@ -0,0 +1,24 @@
|
||||
```ts
|
||||
import { Meta, StoryFn } from '@storybook/html';
|
||||
|
||||
export default {
|
||||
/* 👇 The title prop is optional.
|
||||
* See https://storybook.js.org/docs/html/configure/overview#configure-story-loading
|
||||
* to learn how to generate automatic titles
|
||||
*/
|
||||
title: 'Button',
|
||||
} as Meta;
|
||||
|
||||
export const Primary: StoryFn = (): HTMLButtonElement => {
|
||||
const btn = document.createElement('button');
|
||||
btn.innerText = 'Button';
|
||||
|
||||
btn.className = [
|
||||
'storybook-button',
|
||||
'storybook-button--medium',
|
||||
'storybook-button--primary',
|
||||
].join(' ');
|
||||
|
||||
return btn;
|
||||
};
|
||||
```
|
@ -1 +1 @@
|
||||
{"version":"6.5.0-alpha.3","info":{"plain":"### Bug Fixes\n\n* Core: Support custom PREVIEW URL for block story iframe ([#16773](https://github.com/storybookjs/storybook/pull/16773))"}}
|
||||
{"version":"6.5.0-alpha.4","info":{"plain":"### Bug Fixes\n\n- Angular: Fix for renamed method in angular 13.1 ([#17032](https://github.com/storybookjs/storybook/pull/17032))\n- Source-loader: Fix node.declaration edge case ([#17027](https://github.com/storybookjs/storybook/pull/17027))\n- Core: Fix debug output on webpack failures ([#16988](https://github.com/storybookjs/storybook/pull/16988))\n\n### Maintenance\n\n- Build: Run unit tests on more node versions, mac, and windows ([#16744](https://github.com/storybookjs/storybook/pull/16744))\n\n### Dependency Upgrades\n\n- Avoid referencing internal Emotion packages in built types ([#16905](https://github.com/storybookjs/storybook/pull/16905))"}}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "angular-cli",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
@ -39,21 +39,21 @@
|
||||
"@angular/compiler-cli": "^11.2.14",
|
||||
"@angular/elements": "^11.2.14",
|
||||
"@compodoc/compodoc": "^1.1.14",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.3",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.3",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.3",
|
||||
"@storybook/addon-interactions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-jest": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/angular": "6.5.0-alpha.3",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.4",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.4",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.4",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.4",
|
||||
"@storybook/addon-interactions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-jest": "6.5.0-alpha.4",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.4",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/angular": "6.5.0-alpha.4",
|
||||
"@storybook/babel-plugin-require-context-hook": "1.0.1",
|
||||
"@storybook/jest": "^0.0.5",
|
||||
"@storybook/source-loader": "6.5.0-alpha.3",
|
||||
"@storybook/source-loader": "6.5.0-alpha.4",
|
||||
"@storybook/testing-library": "^0.0.7",
|
||||
"@types/core-js": "^2.5.4",
|
||||
"@types/jest": "^26.0.16",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-kitchen-sink",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -11,7 +11,7 @@
|
||||
"test": "react-scripts test --env=jsdom"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"global": "^4.4.0",
|
||||
"prop-types": "^15.7.2",
|
||||
"react": "16.14.0",
|
||||
@ -21,19 +21,19 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.3",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.3",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.4",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.4",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.4",
|
||||
"@storybook/addon-ie11": "0.0.7--canary.5e87b64.0",
|
||||
"@storybook/addon-jest": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.3",
|
||||
"@storybook/addon-jest": "6.5.0-alpha.4",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.4",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.4",
|
||||
"@storybook/preset-create-react-app": "^3.1.6",
|
||||
"@storybook/react": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/react": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"webpack": "4"
|
||||
},
|
||||
"storybook": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-react15",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -19,14 +19,14 @@
|
||||
"react-scripts": "3.4.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-ie11": "0.0.7--canary.5e87b64.0",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.4",
|
||||
"@storybook/preset-create-react-app": "^3.1.6",
|
||||
"@storybook/react": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/react": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"babel-core": "6",
|
||||
"babel-runtime": "6",
|
||||
"webpack": "4"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-ts-essentials",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -34,12 +34,12 @@
|
||||
"typescript": "^3.9.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-essentials": "6.5.0-alpha.3",
|
||||
"@storybook/addon-essentials": "6.5.0-alpha.4",
|
||||
"@storybook/addon-ie11": "0.0.7--canary.5e87b64.0",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.4",
|
||||
"@storybook/preset-create-react-app": "^3.1.6",
|
||||
"@storybook/react": "6.5.0-alpha.3",
|
||||
"@storybook/react": "6.5.0-alpha.4",
|
||||
"webpack": "4"
|
||||
},
|
||||
"storybook": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-ts-kitchen-sink",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -34,15 +34,15 @@
|
||||
"typescript": "^3.9.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.3",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.4",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.4",
|
||||
"@storybook/addon-ie11": "0.0.7--canary.5e87b64.0",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.4",
|
||||
"@storybook/preset-create-react-app": "^3.1.6",
|
||||
"@storybook/react": "6.5.0-alpha.3",
|
||||
"@storybook/react": "6.5.0-alpha.4",
|
||||
"@types/enzyme": "^3.10.8",
|
||||
"enzyme": "^3.11.0",
|
||||
"enzyme-adapter-react-16": "^1.9.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ember-example",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "ember build --output-path ember-output",
|
||||
@ -17,18 +17,18 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@ember/optional-features": "^2.0.0",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.3",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.3",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.3",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/ember": "6.5.0-alpha.3",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.4",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.4",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.4",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.4",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.4",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.4",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/ember": "6.5.0-alpha.4",
|
||||
"@storybook/ember-cli-storybook": "^0.2.1",
|
||||
"@storybook/source-loader": "6.5.0-alpha.3",
|
||||
"@storybook/source-loader": "6.5.0-alpha.4",
|
||||
"babel-loader": "^8.0.0",
|
||||
"broccoli-asset-rev": "^3.0.0",
|
||||
"cross-env": "^7.0.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "html-kitchen-sink",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -13,23 +13,23 @@
|
||||
"storybook": "start-storybook -p 9006 --no-manager-cache"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.3",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.3",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.3",
|
||||
"@storybook/addon-jest": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.4",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.4",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.4",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.4",
|
||||
"@storybook/addon-jest": "6.5.0-alpha.4",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/addon-postcss": "^2.0.0",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.3",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/client-api": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/html": "6.5.0-alpha.3",
|
||||
"@storybook/source-loader": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.4",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.4",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/client-api": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/html": "6.5.0-alpha.4",
|
||||
"@storybook/source-loader": "6.5.0-alpha.4",
|
||||
"autoprefixer": "^10.0.1",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"format-json": "^1.0.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "official-storybook",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
|
||||
@ -14,31 +14,31 @@
|
||||
"devDependencies": {
|
||||
"@packtracker/webpack-plugin": "^2.3.0",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.3",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.3",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.3",
|
||||
"@storybook/addon-interactions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-jest": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.3",
|
||||
"@storybook/addon-toolbars": "6.5.0-alpha.3",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/cli": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.4",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.4",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.4",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.4",
|
||||
"@storybook/addon-interactions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-jest": "6.5.0-alpha.4",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.4",
|
||||
"@storybook/addon-toolbars": "6.5.0-alpha.4",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.4",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/cli": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/design-system": "^5.4.7",
|
||||
"@storybook/jest": "^0.0.5",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/react": "6.5.0-alpha.3",
|
||||
"@storybook/router": "6.5.0-alpha.3",
|
||||
"@storybook/source-loader": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/react": "6.5.0-alpha.4",
|
||||
"@storybook/router": "6.5.0-alpha.4",
|
||||
"@storybook/source-loader": "6.5.0-alpha.4",
|
||||
"@storybook/testing-library": "^0.0.7",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"@testing-library/dom": "^7.31.2",
|
||||
"@testing-library/user-event": "^13.1.9",
|
||||
"chromatic": "^6.0.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "preact-example",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -15,16 +15,16 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@babel/plugin-transform-runtime": "^7.12.10",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.3",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/preact": "6.5.0-alpha.3",
|
||||
"@storybook/source-loader": "6.5.0-alpha.3",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.4",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.4",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.4",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.4",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/preact": "6.5.0-alpha.4",
|
||||
"@storybook/source-loader": "6.5.0-alpha.4",
|
||||
"@types/prop-types": "^15.7.3",
|
||||
"@types/react": "^17",
|
||||
"@types/react-dom": "^17",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/example-react-ts-webpack4",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
|
||||
@ -8,10 +8,10 @@
|
||||
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011 -c ./ --no-manager-cache"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-controls": "6.5.0-alpha.3",
|
||||
"@storybook/addon-essentials": "6.5.0-alpha.3",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.3",
|
||||
"@storybook/react": "6.5.0-alpha.3",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.4",
|
||||
"@storybook/addon-essentials": "6.5.0-alpha.4",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.4",
|
||||
"@storybook/react": "6.5.0-alpha.4",
|
||||
"@types/react": "^16.14.2",
|
||||
"@types/react-dom": "^16.9.10",
|
||||
"prop-types": "15.7.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/example-react-ts",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook",
|
||||
@ -18,13 +18,13 @@
|
||||
"@babel/preset-env": "^7.12.11",
|
||||
"@babel/preset-react": "^7.12.10",
|
||||
"@babel/preset-typescript": "^7.12.7",
|
||||
"@storybook/addon-essentials": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.3",
|
||||
"@storybook/cli": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/react": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/addon-essentials": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.4",
|
||||
"@storybook/cli": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/react": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"@testing-library/dom": "^7.31.2",
|
||||
"@testing-library/user-event": "^13.1.9",
|
||||
"@types/babel__preset-env": "^7",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "server-kitchen-sink",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -14,13 +14,13 @@
|
||||
"storybook": "SERVER_PORT=1137 start-storybook -p 9006 --quiet"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.3",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/server": "6.5.0-alpha.3",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.4",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.4",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.4",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/server": "6.5.0-alpha.4",
|
||||
"concurrently": "^5.3.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "~4.17.1",
|
||||
|
@ -1,15 +1,15 @@
|
||||
{
|
||||
"name": "standalone-preview",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"storybook-preview": "cross-env PREVIEW_URL=external-iframe.html parcel ./storybook.html --port 1337",
|
||||
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011 -c ../official-storybook --no-manager-cache --preview-url=http://localhost:1337/external-iframe.html"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-docs": "6.5.0-alpha.3",
|
||||
"@storybook/cli": "6.5.0-alpha.3",
|
||||
"@storybook/react": "6.5.0-alpha.3",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.4",
|
||||
"@storybook/cli": "6.5.0-alpha.4",
|
||||
"@storybook/react": "6.5.0-alpha.4",
|
||||
"cross-env": "^7.0.3",
|
||||
"parcel": "2.0.1",
|
||||
"react": "16.14.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "svelte-example",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook",
|
||||
@ -10,20 +10,20 @@
|
||||
"global": "^4.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.3",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.3",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.3",
|
||||
"@storybook/addon-interactions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.3",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.4",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.4",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.4",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.4",
|
||||
"@storybook/addon-interactions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.4",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.4",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/jest": "^0.0.5",
|
||||
"@storybook/source-loader": "6.5.0-alpha.3",
|
||||
"@storybook/svelte": "6.5.0-alpha.3",
|
||||
"@storybook/source-loader": "6.5.0-alpha.4",
|
||||
"@storybook/svelte": "6.5.0-alpha.4",
|
||||
"@storybook/testing-library": "^0.0.7",
|
||||
"svelte-jester": "1.3.0",
|
||||
"svelte-preprocess": "4.6.8"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-3-cli-example",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "vue-cli-service build",
|
||||
@ -14,14 +14,14 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-essentials": "6.5.0-alpha.3",
|
||||
"@storybook/addon-interactions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-essentials": "6.5.0-alpha.4",
|
||||
"@storybook/addon-interactions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.4",
|
||||
"@storybook/jest": "^0.0.5",
|
||||
"@storybook/testing-library": "^0.0.7",
|
||||
"@storybook/vue3": "6.5.0-alpha.3",
|
||||
"@storybook/vue3": "6.5.0-alpha.4",
|
||||
"@vue/cli-plugin-babel": "~4.5.0",
|
||||
"@vue/cli-plugin-typescript": "~4.5.0",
|
||||
"@vue/cli-service": "~4.5.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-cli-example",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "vue-cli-service build",
|
||||
@ -15,11 +15,11 @@
|
||||
"vue-property-decorator": "^9.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-controls": "6.5.0-alpha.3",
|
||||
"@storybook/addon-essentials": "6.5.0-alpha.3",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.4",
|
||||
"@storybook/addon-essentials": "6.5.0-alpha.4",
|
||||
"@storybook/preset-scss": "^1.0.3",
|
||||
"@storybook/source-loader": "6.5.0-alpha.3",
|
||||
"@storybook/vue": "6.5.0-alpha.3",
|
||||
"@storybook/source-loader": "6.5.0-alpha.4",
|
||||
"@storybook/vue": "6.5.0-alpha.4",
|
||||
"@vue/cli-plugin-babel": "~4.3.1",
|
||||
"@vue/cli-plugin-typescript": "~4.3.1",
|
||||
"@vue/cli-service": "~4.3.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-example",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -14,21 +14,21 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.3",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.3",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.3",
|
||||
"@storybook/addon-interactions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.3",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.4",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.4",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.4",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.4",
|
||||
"@storybook/addon-interactions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.4",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.4",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/jest": "^0.0.5",
|
||||
"@storybook/source-loader": "6.5.0-alpha.3",
|
||||
"@storybook/source-loader": "6.5.0-alpha.4",
|
||||
"@storybook/testing-library": "^0.0.7",
|
||||
"@storybook/vue": "6.5.0-alpha.3",
|
||||
"@storybook/vue": "6.5.0-alpha.4",
|
||||
"@vue/babel-preset-jsx": "^1.2.4",
|
||||
"babel-loader": "^8.0.0",
|
||||
"cross-env": "^7.0.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "web-components-kitchen-sink",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
|
@ -1,3 +1,5 @@
|
||||
const os = require('os');
|
||||
|
||||
module.exports = {
|
||||
cacheDirectory: '.cache/jest',
|
||||
clearMocks: true,
|
||||
@ -81,6 +83,7 @@ module.exports = {
|
||||
globals: {
|
||||
DOCS_MODE: false,
|
||||
PREVIEW_URL: undefined,
|
||||
SNAPSHOT_OS: os.platform() === 'win32' ? 'windows' : 'posix',
|
||||
},
|
||||
snapshotSerializers: ['jest-emotion', 'enzyme-to-json/serializer', 'jest-serializer-html'],
|
||||
coverageDirectory: 'coverage',
|
||||
|
@ -2,5 +2,5 @@
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"registry": "https://registry.npmjs.org",
|
||||
"version": "6.5.0-alpha.3"
|
||||
"version": "6.5.0-alpha.4"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addons",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook addons store",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -40,13 +40,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/channels": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/channels": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/router": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/router": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
@ -59,6 +59,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/public_api.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/api",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Core Storybook API & Context",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -38,13 +38,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/channels": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/router": "6.5.0-alpha.3",
|
||||
"@storybook/router": "6.5.0-alpha.4",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"global": "^4.4.0",
|
||||
@ -71,6 +71,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = '6.5.0-alpha.3';
|
||||
export const version = '6.5.0-alpha.4';
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/builder-webpack4",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook framework-agnostic API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -61,22 +61,22 @@
|
||||
"@babel/preset-env": "^7.12.11",
|
||||
"@babel/preset-react": "^7.12.10",
|
||||
"@babel/preset-typescript": "^7.12.7",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/channel-postmessage": "6.5.0-alpha.3",
|
||||
"@storybook/channels": "6.5.0-alpha.3",
|
||||
"@storybook/client-api": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/preview-web": "6.5.0-alpha.3",
|
||||
"@storybook/router": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/channel-postmessage": "6.5.0-alpha.4",
|
||||
"@storybook/channels": "6.5.0-alpha.4",
|
||||
"@storybook/client-api": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/preview-web": "6.5.0-alpha.4",
|
||||
"@storybook/router": "6.5.0-alpha.4",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/ui": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"@storybook/ui": "6.5.0-alpha.4",
|
||||
"@types/node": "^14.0.10 || ^16.0.0",
|
||||
"@types/webpack": "^4.41.26",
|
||||
"autoprefixer": "^9.8.6",
|
||||
@ -131,6 +131,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/builder-webpack5",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook framework-agnostic API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -60,21 +60,21 @@
|
||||
"@babel/preset-env": "^7.12.11",
|
||||
"@babel/preset-react": "^7.12.10",
|
||||
"@babel/preset-typescript": "^7.12.7",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/channel-postmessage": "6.5.0-alpha.3",
|
||||
"@storybook/channels": "6.5.0-alpha.3",
|
||||
"@storybook/client-api": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/preview-web": "6.5.0-alpha.3",
|
||||
"@storybook/router": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/channel-postmessage": "6.5.0-alpha.4",
|
||||
"@storybook/channels": "6.5.0-alpha.4",
|
||||
"@storybook/client-api": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/preview-web": "6.5.0-alpha.4",
|
||||
"@storybook/router": "6.5.0-alpha.4",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"@types/node": "^14.0.10 || ^16.0.0",
|
||||
"babel-loader": "^8.0.0",
|
||||
"babel-plugin-macros": "^3.0.1",
|
||||
@ -118,6 +118,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channel-postmessage",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -40,9 +40,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/channels": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"qs": "^6.10.0",
|
||||
@ -51,6 +51,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channel-websocket",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -40,8 +40,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/channels": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"telejson": "^5.3.3"
|
||||
@ -49,6 +49,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channels",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -47,6 +47,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sb",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook CLI",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -24,10 +24,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/cli": "6.5.0-alpha.3"
|
||||
"@storybook/cli": "6.5.0-alpha.4"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98"
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "storybook",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook CLI",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -27,10 +27,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/cli": "6.5.0-alpha.3"
|
||||
"@storybook/cli": "6.5.0-alpha.4"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98"
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/cli",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook's CLI - easiest method of adding storybook to your projects",
|
||||
"keywords": [
|
||||
"cli",
|
||||
@ -48,10 +48,10 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@babel/preset-env": "^7.12.11",
|
||||
"@storybook/codemod": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/csf-tools": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/codemod": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/csf-tools": "6.5.0-alpha.4",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"boxen": "^5.1.2",
|
||||
"chalk": "^4.1.0",
|
||||
@ -76,7 +76,7 @@
|
||||
"update-notifier": "^5.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/client-api": "6.5.0-alpha.3",
|
||||
"@storybook/client-api": "6.5.0-alpha.4",
|
||||
"@types/cross-spawn": "^6.0.2",
|
||||
"@types/prompts": "^2.0.9",
|
||||
"@types/puppeteer-core": "^2.1.0",
|
||||
@ -92,5 +92,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98"
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6"
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* eslint-disable no-underscore-dangle */
|
||||
import path from 'path';
|
||||
import { JsPackageManager } from '../../js-package-manager';
|
||||
import { angular12 } from './angular12';
|
||||
|
||||
@ -8,7 +9,7 @@ jest.mock('fs-extra', () => require('../../../../../__mocks__/fs-extra'));
|
||||
const checkCra5 = async ({ packageJson, main }) => {
|
||||
// eslint-disable-next-line global-require
|
||||
require('fs-extra').__setMockFiles({
|
||||
'.storybook/main.js': `module.exports = ${JSON.stringify(main)};`,
|
||||
[path.join('.storybook', 'main.js')]: `module.exports = ${JSON.stringify(main)};`,
|
||||
});
|
||||
const packageManager = {
|
||||
retrievePackageJson: () => ({ dependencies: {}, devDependencies: {}, ...packageJson }),
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* eslint-disable no-underscore-dangle */
|
||||
import path from 'path';
|
||||
import { JsPackageManager } from '../../js-package-manager';
|
||||
import { cra5 } from './cra5';
|
||||
|
||||
@ -8,7 +9,7 @@ jest.mock('fs-extra', () => require('../../../../../__mocks__/fs-extra'));
|
||||
const checkCra5 = async ({ packageJson, main }) => {
|
||||
// eslint-disable-next-line global-require
|
||||
require('fs-extra').__setMockFiles({
|
||||
'.storybook/main.js': `module.exports = ${JSON.stringify(main)};`,
|
||||
[path.join('.storybook', 'main.js')]: `module.exports = ${JSON.stringify(main)};`,
|
||||
});
|
||||
const packageManager = {
|
||||
retrievePackageJson: () => ({ dependencies: {}, devDependencies: {}, ...packageJson }),
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* eslint-disable no-underscore-dangle */
|
||||
import path from 'path';
|
||||
import dedent from 'ts-dedent';
|
||||
import { JsPackageManager } from '../../js-package-manager';
|
||||
import { eslintPlugin } from './eslint-plugin';
|
||||
@ -14,7 +15,9 @@ const checkEslint = async ({
|
||||
}) => {
|
||||
// eslint-disable-next-line global-require
|
||||
require('fs-extra').__setMockFiles({
|
||||
'.storybook/main.js': !main ? null : `module.exports = ${JSON.stringify(main)};`,
|
||||
[path.join('.storybook', 'main.js')]: !main
|
||||
? null
|
||||
: `module.exports = ${JSON.stringify(main)};`,
|
||||
[`.eslintrc.${eslintExtension}`]: !hasEslint
|
||||
? null
|
||||
: dedent(`
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* eslint-disable no-underscore-dangle */
|
||||
import path from 'path';
|
||||
import { JsPackageManager } from '../../js-package-manager';
|
||||
import { webpack5 } from './webpack5';
|
||||
|
||||
@ -8,7 +9,7 @@ jest.mock('fs-extra', () => require('../../../../../__mocks__/fs-extra'));
|
||||
const checkWebpack5 = async ({ packageJson, main }) => {
|
||||
// eslint-disable-next-line global-require
|
||||
require('fs-extra').__setMockFiles({
|
||||
'.storybook/main.js': `module.exports = ${JSON.stringify(main)};`,
|
||||
[path.join('.storybook', 'main.js')]: `module.exports = ${JSON.stringify(main)};`,
|
||||
});
|
||||
const packageManager = {
|
||||
retrievePackageJson: () => ({ dependencies: {}, devDependencies: {}, ...packageJson }),
|
||||
|
@ -1,59 +1,59 @@
|
||||
{
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.3",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.3",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.3",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.3",
|
||||
"@storybook/addon-essentials": "6.5.0-alpha.3",
|
||||
"@storybook/addon-interactions": "6.5.0-alpha.3",
|
||||
"@storybook/addon-jest": "6.5.0-alpha.3",
|
||||
"@storybook/addon-links": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.5.0-alpha.3",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.3",
|
||||
"@storybook/addon-toolbars": "6.5.0-alpha.3",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/angular": "6.5.0-alpha.3",
|
||||
"@storybook/api": "6.5.0-alpha.3",
|
||||
"@storybook/aurelia": "6.5.0-alpha.3",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.3",
|
||||
"@storybook/builder-webpack5": "6.5.0-alpha.3",
|
||||
"@storybook/channel-postmessage": "6.5.0-alpha.3",
|
||||
"@storybook/channel-websocket": "6.5.0-alpha.3",
|
||||
"@storybook/channels": "6.5.0-alpha.3",
|
||||
"@storybook/cli": "6.5.0-alpha.3",
|
||||
"@storybook/client-api": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/codemod": "6.5.0-alpha.3",
|
||||
"@storybook/components": "6.5.0-alpha.3",
|
||||
"@storybook/core": "6.5.0-alpha.3",
|
||||
"@storybook/core-client": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/core-server": "6.5.0-alpha.3",
|
||||
"@storybook/csf-tools": "6.5.0-alpha.3",
|
||||
"@storybook/ember": "6.5.0-alpha.3",
|
||||
"@storybook/html": "6.5.0-alpha.3",
|
||||
"@storybook/instrumenter": "6.5.0-alpha.3",
|
||||
"@storybook/manager-webpack4": "6.5.0-alpha.3",
|
||||
"@storybook/manager-webpack5": "6.5.0-alpha.3",
|
||||
"@storybook/marionette": "6.5.0-alpha.3",
|
||||
"@storybook/marko": "6.5.0-alpha.3",
|
||||
"@storybook/mithril": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/postinstall": "6.5.0-alpha.3",
|
||||
"@storybook/preact": "6.5.0-alpha.3",
|
||||
"@storybook/rax": "6.5.0-alpha.3",
|
||||
"@storybook/react": "6.5.0-alpha.3",
|
||||
"@storybook/riot": "6.5.0-alpha.3",
|
||||
"@storybook/router": "6.5.0-alpha.3",
|
||||
"@storybook/server": "6.5.0-alpha.3",
|
||||
"@storybook/source-loader": "6.5.0-alpha.3",
|
||||
"@storybook/svelte": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/ui": "6.5.0-alpha.3",
|
||||
"@storybook/vue": "6.5.0-alpha.3",
|
||||
"@storybook/vue3": "6.5.0-alpha.3",
|
||||
"@storybook/web-components": "6.5.0-alpha.3"
|
||||
"@storybook/addon-a11y": "6.5.0-alpha.4",
|
||||
"@storybook/addon-actions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-backgrounds": "6.5.0-alpha.4",
|
||||
"@storybook/addon-controls": "6.5.0-alpha.4",
|
||||
"@storybook/addon-docs": "6.5.0-alpha.4",
|
||||
"@storybook/addon-essentials": "6.5.0-alpha.4",
|
||||
"@storybook/addon-interactions": "6.5.0-alpha.4",
|
||||
"@storybook/addon-jest": "6.5.0-alpha.4",
|
||||
"@storybook/addon-links": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storyshots": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.5.0-alpha.4",
|
||||
"@storybook/addon-storysource": "6.5.0-alpha.4",
|
||||
"@storybook/addon-toolbars": "6.5.0-alpha.4",
|
||||
"@storybook/addon-viewport": "6.5.0-alpha.4",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/angular": "6.5.0-alpha.4",
|
||||
"@storybook/api": "6.5.0-alpha.4",
|
||||
"@storybook/aurelia": "6.5.0-alpha.4",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.4",
|
||||
"@storybook/builder-webpack5": "6.5.0-alpha.4",
|
||||
"@storybook/channel-postmessage": "6.5.0-alpha.4",
|
||||
"@storybook/channel-websocket": "6.5.0-alpha.4",
|
||||
"@storybook/channels": "6.5.0-alpha.4",
|
||||
"@storybook/cli": "6.5.0-alpha.4",
|
||||
"@storybook/client-api": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/codemod": "6.5.0-alpha.4",
|
||||
"@storybook/components": "6.5.0-alpha.4",
|
||||
"@storybook/core": "6.5.0-alpha.4",
|
||||
"@storybook/core-client": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/core-server": "6.5.0-alpha.4",
|
||||
"@storybook/csf-tools": "6.5.0-alpha.4",
|
||||
"@storybook/ember": "6.5.0-alpha.4",
|
||||
"@storybook/html": "6.5.0-alpha.4",
|
||||
"@storybook/instrumenter": "6.5.0-alpha.4",
|
||||
"@storybook/manager-webpack4": "6.5.0-alpha.4",
|
||||
"@storybook/manager-webpack5": "6.5.0-alpha.4",
|
||||
"@storybook/marionette": "6.5.0-alpha.4",
|
||||
"@storybook/marko": "6.5.0-alpha.4",
|
||||
"@storybook/mithril": "6.5.0-alpha.4",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/postinstall": "6.5.0-alpha.4",
|
||||
"@storybook/preact": "6.5.0-alpha.4",
|
||||
"@storybook/rax": "6.5.0-alpha.4",
|
||||
"@storybook/react": "6.5.0-alpha.4",
|
||||
"@storybook/riot": "6.5.0-alpha.4",
|
||||
"@storybook/router": "6.5.0-alpha.4",
|
||||
"@storybook/server": "6.5.0-alpha.4",
|
||||
"@storybook/source-loader": "6.5.0-alpha.4",
|
||||
"@storybook/svelte": "6.5.0-alpha.4",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"@storybook/ui": "6.5.0-alpha.4",
|
||||
"@storybook/vue": "6.5.0-alpha.4",
|
||||
"@storybook/vue3": "6.5.0-alpha.4",
|
||||
"@storybook/web-components": "6.5.0-alpha.4"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/client-api",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook Client API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -40,13 +40,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/channel-postmessage": "6.5.0-alpha.3",
|
||||
"@storybook/channels": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/channel-postmessage": "6.5.0-alpha.4",
|
||||
"@storybook/channels": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@types/qs": "^6.9.5",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
@ -68,6 +68,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/client-logger",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -46,6 +46,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/codemod",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "A collection of codemod scripts written with JSCodeshift",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -44,8 +44,8 @@
|
||||
"@babel/types": "^7.12.11",
|
||||
"@mdx-js/mdx": "^1.6.22",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/csf-tools": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/csf-tools": "6.5.0-alpha.4",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"core-js": "^3.8.2",
|
||||
"cross-spawn": "^7.0.3",
|
||||
"globby": "^11.0.2",
|
||||
@ -62,6 +62,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/components",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Core Storybook Components",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -41,9 +41,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@popperjs/core": "^2.6.0",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/theming": "6.5.0-alpha.3",
|
||||
"@storybook/theming": "6.5.0-alpha.4",
|
||||
"@types/color-convert": "^2.0.0",
|
||||
"@types/overlayscrollbars": "^1.12.0",
|
||||
"@types/react-syntax-highlighter": "11.0.5",
|
||||
@ -76,6 +76,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/core-client",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook framework-agnostic API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -40,16 +40,16 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.5.0-alpha.3",
|
||||
"@storybook/channel-postmessage": "6.5.0-alpha.3",
|
||||
"@storybook/channel-websocket": "6.5.0-alpha.3",
|
||||
"@storybook/client-api": "6.5.0-alpha.3",
|
||||
"@storybook/client-logger": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/addons": "6.5.0-alpha.4",
|
||||
"@storybook/channel-postmessage": "6.5.0-alpha.4",
|
||||
"@storybook/channel-websocket": "6.5.0-alpha.4",
|
||||
"@storybook/client-api": "6.5.0-alpha.4",
|
||||
"@storybook/client-logger": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/preview-web": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/ui": "6.5.0-alpha.3",
|
||||
"@storybook/preview-web": "6.5.0-alpha.4",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@storybook/ui": "6.5.0-alpha.4",
|
||||
"airbnb-js-shims": "^2.2.1",
|
||||
"ansi-to-html": "^0.6.11",
|
||||
"core-js": "^3.8.2",
|
||||
@ -74,6 +74,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/core-common",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook framework-agnostic API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -61,7 +61,7 @@
|
||||
"@babel/preset-react": "^7.12.10",
|
||||
"@babel/preset-typescript": "^7.12.7",
|
||||
"@babel/register": "^7.12.1",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@types/node": "^14.0.10 || ^16.0.0",
|
||||
"@types/pretty-hrtime": "^1.0.0",
|
||||
@ -110,6 +110,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import dedent from 'ts-dedent';
|
||||
import { join, resolve } from 'path';
|
||||
import { resolve } from 'path';
|
||||
import { logger } from '@storybook/node-logger';
|
||||
import resolveFrom from 'resolve-from';
|
||||
import {
|
||||
@ -79,7 +79,7 @@ export const resolveAddonName = (configDir: string, name: string) => {
|
||||
|
||||
try {
|
||||
return {
|
||||
name: resolveFrom(configDir, join(name, 'preset')),
|
||||
name: resolveFrom(configDir, `${name}/preset`),
|
||||
type: 'presets',
|
||||
};
|
||||
// eslint-disable-next-line no-empty
|
||||
@ -87,7 +87,7 @@ export const resolveAddonName = (configDir: string, name: string) => {
|
||||
|
||||
try {
|
||||
return {
|
||||
name: resolveFrom(configDir, join(name, 'register')),
|
||||
name: resolveFrom(configDir, `${name}/register`),
|
||||
type: 'managerEntries',
|
||||
};
|
||||
// eslint-disable-next-line no-empty
|
||||
|
@ -3,54 +3,27 @@ import { normalizeStoryPath } from '../paths';
|
||||
|
||||
describe('paths - normalizeStoryPath()', () => {
|
||||
it('returns a path starting with "./" unchanged', () => {
|
||||
const filename = `./src/Comp.story.js`;
|
||||
const filename = `.${path.sep}${path.join('src', 'Comp.story.js')}`;
|
||||
expect(normalizeStoryPath(filename)).toEqual(filename);
|
||||
});
|
||||
|
||||
it('returns a path starting with "../" unchanged', () => {
|
||||
const filename = `../src/Comp.story.js`;
|
||||
const filename = path.join('..', 'src', 'Comp.story.js');
|
||||
expect(normalizeStoryPath(filename)).toEqual(filename);
|
||||
});
|
||||
|
||||
it('adds "./" to a normalized relative path', () => {
|
||||
const filename = `src/Comp.story.js`;
|
||||
expect(normalizeStoryPath(filename)).toEqual(`./${filename}`);
|
||||
const filename = path.join('src', 'Comp.story.js');
|
||||
expect(normalizeStoryPath(filename)).toEqual(`.${path.sep}${filename}`);
|
||||
});
|
||||
|
||||
it('adds "./" to a hidden folder', () => {
|
||||
const filename = `.storybook/Comp.story.js`;
|
||||
expect(normalizeStoryPath(filename)).toEqual(`./${filename}`);
|
||||
const filename = path.join('.storybook', 'Comp.story.js');
|
||||
expect(normalizeStoryPath(filename)).toEqual(`.${path.sep}${filename}`);
|
||||
});
|
||||
|
||||
it('adds "./" to a hidden file', () => {
|
||||
const filename = `.Comp.story.js`;
|
||||
expect(normalizeStoryPath(filename)).toEqual(`./${filename}`);
|
||||
});
|
||||
|
||||
describe('windows paths', () => {
|
||||
it('returns a path starting with ".\\" unchanged', () => {
|
||||
const filename = `.\\src\\Comp.story.js`;
|
||||
expect(normalizeStoryPath(filename)).toEqual(filename);
|
||||
});
|
||||
|
||||
it('returns a path starting with "..\\" unchanged', () => {
|
||||
const filename = `..\\src\\Comp.story.js`;
|
||||
expect(normalizeStoryPath(filename)).toEqual(filename);
|
||||
});
|
||||
|
||||
it('adds ".{path.sep}" to a normalized relative path', () => {
|
||||
const filename = `src\\Comp.story.js`;
|
||||
expect(normalizeStoryPath(filename)).toEqual(`.${path.sep}${filename}`);
|
||||
});
|
||||
|
||||
it('adds ".{path.sep}" to a hidden folder', () => {
|
||||
const filename = `.storybook\\Comp.story.js`;
|
||||
expect(normalizeStoryPath(filename)).toEqual(`.${path.sep}${filename}`);
|
||||
});
|
||||
|
||||
it('adds ".{path.sep}" to a hidden file', () => {
|
||||
const filename = `.Comp.story.js`;
|
||||
expect(normalizeStoryPath(filename)).toEqual(`.${path.sep}${filename}`);
|
||||
});
|
||||
expect(normalizeStoryPath(filename)).toEqual(`.${path.sep}${filename}`);
|
||||
});
|
||||
});
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/core-events",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Event names used in storybook core",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -45,6 +45,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/core-server",
|
||||
"version": "6.5.0-alpha.3",
|
||||
"version": "6.5.0-alpha.4",
|
||||
"description": "Storybook framework-agnostic API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -41,16 +41,16 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@discoveryjs/json-ext": "^0.5.3",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.3",
|
||||
"@storybook/core-client": "6.5.0-alpha.3",
|
||||
"@storybook/core-common": "6.5.0-alpha.3",
|
||||
"@storybook/core-events": "6.5.0-alpha.3",
|
||||
"@storybook/builder-webpack4": "6.5.0-alpha.4",
|
||||
"@storybook/core-client": "6.5.0-alpha.4",
|
||||
"@storybook/core-common": "6.5.0-alpha.4",
|
||||
"@storybook/core-events": "6.5.0-alpha.4",
|
||||
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
||||
"@storybook/csf-tools": "6.5.0-alpha.3",
|
||||
"@storybook/manager-webpack4": "6.5.0-alpha.3",
|
||||
"@storybook/node-logger": "6.5.0-alpha.3",
|
||||
"@storybook/csf-tools": "6.5.0-alpha.4",
|
||||
"@storybook/manager-webpack4": "6.5.0-alpha.4",
|
||||
"@storybook/node-logger": "6.5.0-alpha.4",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@storybook/store": "6.5.0-alpha.3",
|
||||
"@storybook/store": "6.5.0-alpha.4",
|
||||
"@types/node": "^14.0.10 || ^16.0.0",
|
||||
"@types/node-fetch": "^2.5.7",
|
||||
"@types/pretty-hrtime": "^1.0.0",
|
||||
@ -86,7 +86,7 @@
|
||||
"x-default-browser": "^0.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/builder-webpack5": "6.5.0-alpha.3",
|
||||
"@storybook/builder-webpack5": "6.5.0-alpha.4",
|
||||
"@types/compression": "^1.7.0",
|
||||
"@types/ip": "^1.1.0",
|
||||
"@types/serve-favicon": "^2.5.2",
|
||||
@ -94,8 +94,8 @@
|
||||
"jest-specific-snapshot": "^4.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@storybook/builder-webpack5": "6.5.0-alpha.3",
|
||||
"@storybook/manager-webpack5": "6.5.0-alpha.3",
|
||||
"@storybook/builder-webpack5": "6.5.0-alpha.4",
|
||||
"@storybook/manager-webpack5": "6.5.0-alpha.4",
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0"
|
||||
},
|
||||
@ -113,6 +113,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "4d971f7d493ecb388017a150a9943e87c7770d98",
|
||||
"gitHead": "9a73995d6a5cfa36c5a5ce60cb33259ff40e2fe6",
|
||||
"sbmodern": "dist/modern/index.js"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`cra-ts-essentials manager dev mode 1`] = `
|
||||
exports[`cra-ts-essentials manager dev 1`] = `
|
||||
Object {
|
||||
"entry": Array [
|
||||
"NODE_MODULES/@storybook/addon-ie11/dist/event-source-polyfill.js",
|
@ -0,0 +1,246 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`cra-ts-essentials manager dev 1`] = `
|
||||
Object {
|
||||
"entry": Array [
|
||||
"NODE_MODULES\\\\@storybook\\\\addon-ie11\\\\dist\\\\event-source-polyfill.js",
|
||||
"ROOT\\\\lib\\\\core-client\\\\dist\\\\esm\\\\globals\\\\polyfills.js",
|
||||
"ROOT\\\\lib\\\\core-client\\\\dist\\\\esm\\\\manager\\\\index.js",
|
||||
"ROOT\\\\addons\\\\docs\\\\dist\\\\esm\\\\register.js",
|
||||
"ROOT\\\\addons\\\\controls\\\\dist\\\\esm\\\\register.js",
|
||||
"ROOT\\\\addons\\\\actions\\\\dist\\\\esm\\\\register.js",
|
||||
"ROOT\\\\addons\\\\backgrounds\\\\dist\\\\esm\\\\register.js",
|
||||
"ROOT\\\\addons\\\\toolbars\\\\dist\\\\esm\\\\register.js",
|
||||
"ROOT\\\\addons\\\\measure\\\\dist\\\\esm\\\\register.js",
|
||||
"ROOT\\\\addons\\\\outline\\\\dist\\\\esm\\\\register.js",
|
||||
],
|
||||
"keys": Array [
|
||||
"name",
|
||||
"mode",
|
||||
"bail",
|
||||
"devtool",
|
||||
"entry",
|
||||
"output",
|
||||
"watchOptions",
|
||||
"plugins",
|
||||
"module",
|
||||
"resolve",
|
||||
"resolveLoader",
|
||||
"recordsPath",
|
||||
"performance",
|
||||
"optimization",
|
||||
],
|
||||
"module": Object {
|
||||
"rules": Array [
|
||||
Object {
|
||||
"exclude": Array [
|
||||
"NODE_MODULES/",
|
||||
"/dist/",
|
||||
],
|
||||
"include": Array [
|
||||
"ROOT",
|
||||
],
|
||||
"test": "/\\\\.(mjs|tsx?|jsx?)$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"configFile": false,
|
||||
"plugins": Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-shorthand-properties\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-block-scoping\\\\lib\\\\index.js",
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-decorators\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"legacy": true,
|
||||
},
|
||||
],
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-class-properties\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
},
|
||||
],
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-private-methods\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-export-default-from\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-syntax-dynamic-import\\\\lib\\\\index.js",
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-object-rest-spread\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
"useBuiltIns": true,
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-classes\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-arrow-functions\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-parameters\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-destructuring\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-spread\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-for-of\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\babel-plugin-macros\\\\dist\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-optional-chaining\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-nullish-coalescing-operator\\\\lib\\\\index.js",
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-plugin-polyfill-corejs3\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"absoluteImports": "NODE_MODULES\\\\core-js\\\\index.js",
|
||||
"method": "usage-global",
|
||||
"version": "*",
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-template-literals\\\\lib\\\\index.js",
|
||||
],
|
||||
"presets": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\preset-env\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
"shippedProposals": true,
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\preset-typescript\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\preset-react\\\\lib\\\\index.js",
|
||||
],
|
||||
"sourceType": "unambiguous",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"include": [Function],
|
||||
"test": "/\\\\.js$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"plugins": Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-shorthand-properties\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-block-scoping\\\\lib\\\\index.js",
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-decorators\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"legacy": true,
|
||||
},
|
||||
],
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-class-properties\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
},
|
||||
],
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-private-methods\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-export-default-from\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-syntax-dynamic-import\\\\lib\\\\index.js",
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-object-rest-spread\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
"useBuiltIns": true,
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-classes\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-arrow-functions\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-parameters\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-destructuring\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-spread\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-for-of\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\babel-plugin-macros\\\\dist\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-optional-chaining\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-nullish-coalescing-operator\\\\lib\\\\index.js",
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-plugin-polyfill-corejs3\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"absoluteImports": "NODE_MODULES\\\\core-js\\\\index.js",
|
||||
"method": "usage-global",
|
||||
"version": "*",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\preset-env\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
"modules": false,
|
||||
"shippedProposals": true,
|
||||
"targets": "defaults",
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\preset-react\\\\lib\\\\index.js",
|
||||
],
|
||||
"sourceType": "unambiguous",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"test": "/\\\\.css$/",
|
||||
"use": Array [
|
||||
"NODE_MODULES\\\\style-loader\\\\dist\\\\cjs.js",
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\css-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"importLoaders": 1,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\file-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"name": "static/media/[path][name].[ext]",
|
||||
},
|
||||
"test": "/\\\\.(svg|ico|jpg|jpeg|png|apng|gif|eot|otf|webp|ttf|woff|woff2|cur|ani|pdf)(\\\\?.*)?$/",
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\url-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"limit": 10000,
|
||||
"name": "static/media/[path][name].[ext]",
|
||||
},
|
||||
"test": "/\\\\.(mp4|webm|wav|mp3|m4a|aac|oga)(\\\\?.*)?$/",
|
||||
},
|
||||
Object {
|
||||
"include": "NODE_MODULES[\\\\\\\\/](@storybook[\\\\\\\\/]node_logger|@testing-library[\\\\\\\\/]dom|@testing-library[\\\\\\\\/]user-event|acorn-jsx|ansi-align|ansi-colors|ansi-escapes|ansi-regex|ansi-styles|better-opn|boxen|camelcase|chalk|color-convert|commander|find-cache-dir|find-up|fs-extra|highlight.js|json5|node-fetch|pkg-dir|prettier|pretty-format|react-dev-utils|resolve-from|semver|slash|strip-ansi|uuid)/",
|
||||
"test": "/\\\\.js$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"presets": Array [
|
||||
Array [
|
||||
"@babel/preset-env",
|
||||
Object {
|
||||
"targets": Object {
|
||||
"ie": "11",
|
||||
},
|
||||
},
|
||||
"storybook-addon-ie11",
|
||||
],
|
||||
],
|
||||
"sourceType": "unambiguous",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
"plugins": Array [
|
||||
"VirtualModulesPlugin",
|
||||
"HtmlWebpackPlugin",
|
||||
"CaseSensitivePathsPlugin",
|
||||
"DefinePlugin",
|
||||
],
|
||||
}
|
||||
`;
|
@ -1,6 +1,6 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`cra-ts-essentials manager production mode 1`] = `
|
||||
exports[`cra-ts-essentials manager prod 1`] = `
|
||||
Object {
|
||||
"entry": Array [
|
||||
"NODE_MODULES/@storybook/addon-ie11/dist/event-source-polyfill.js",
|
@ -0,0 +1,246 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`cra-ts-essentials manager prod 1`] = `
|
||||
Object {
|
||||
"entry": Array [
|
||||
"NODE_MODULES\\\\@storybook\\\\addon-ie11\\\\dist\\\\event-source-polyfill.js",
|
||||
"ROOT\\\\lib\\\\core-client\\\\dist\\\\esm\\\\globals\\\\polyfills.js",
|
||||
"ROOT\\\\lib\\\\core-client\\\\dist\\\\esm\\\\manager\\\\index.js",
|
||||
"ROOT\\\\addons\\\\docs\\\\dist\\\\esm\\\\register.js",
|
||||
"ROOT\\\\addons\\\\controls\\\\dist\\\\esm\\\\register.js",
|
||||
"ROOT\\\\addons\\\\actions\\\\dist\\\\esm\\\\register.js",
|
||||
"ROOT\\\\addons\\\\backgrounds\\\\dist\\\\esm\\\\register.js",
|
||||
"ROOT\\\\addons\\\\toolbars\\\\dist\\\\esm\\\\register.js",
|
||||
"ROOT\\\\addons\\\\measure\\\\dist\\\\esm\\\\register.js",
|
||||
"ROOT\\\\addons\\\\outline\\\\dist\\\\esm\\\\register.js",
|
||||
],
|
||||
"keys": Array [
|
||||
"name",
|
||||
"mode",
|
||||
"bail",
|
||||
"devtool",
|
||||
"entry",
|
||||
"output",
|
||||
"watchOptions",
|
||||
"plugins",
|
||||
"module",
|
||||
"resolve",
|
||||
"resolveLoader",
|
||||
"recordsPath",
|
||||
"performance",
|
||||
"optimization",
|
||||
],
|
||||
"module": Object {
|
||||
"rules": Array [
|
||||
Object {
|
||||
"exclude": Array [
|
||||
"NODE_MODULES/",
|
||||
"/dist/",
|
||||
],
|
||||
"include": Array [
|
||||
"ROOT",
|
||||
],
|
||||
"test": "/\\\\.(mjs|tsx?|jsx?)$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"configFile": false,
|
||||
"plugins": Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-shorthand-properties\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-block-scoping\\\\lib\\\\index.js",
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-decorators\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"legacy": true,
|
||||
},
|
||||
],
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-class-properties\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
},
|
||||
],
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-private-methods\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-export-default-from\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-syntax-dynamic-import\\\\lib\\\\index.js",
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-object-rest-spread\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
"useBuiltIns": true,
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-classes\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-arrow-functions\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-parameters\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-destructuring\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-spread\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-for-of\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\babel-plugin-macros\\\\dist\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-optional-chaining\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-nullish-coalescing-operator\\\\lib\\\\index.js",
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-plugin-polyfill-corejs3\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"absoluteImports": "NODE_MODULES\\\\core-js\\\\index.js",
|
||||
"method": "usage-global",
|
||||
"version": "*",
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-template-literals\\\\lib\\\\index.js",
|
||||
],
|
||||
"presets": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\preset-env\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
"shippedProposals": true,
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\preset-typescript\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\preset-react\\\\lib\\\\index.js",
|
||||
],
|
||||
"sourceType": "unambiguous",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"include": [Function],
|
||||
"test": "/\\\\.js$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"plugins": Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-shorthand-properties\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-block-scoping\\\\lib\\\\index.js",
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-decorators\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"legacy": true,
|
||||
},
|
||||
],
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-class-properties\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
},
|
||||
],
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-private-methods\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-export-default-from\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-syntax-dynamic-import\\\\lib\\\\index.js",
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-object-rest-spread\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
"useBuiltIns": true,
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-classes\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-arrow-functions\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-parameters\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-destructuring\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-spread\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-for-of\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\babel-plugin-macros\\\\dist\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-optional-chaining\\\\lib\\\\index.js",
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-proposal-nullish-coalescing-operator\\\\lib\\\\index.js",
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-plugin-polyfill-corejs3\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"absoluteImports": "NODE_MODULES\\\\core-js\\\\index.js",
|
||||
"method": "usage-global",
|
||||
"version": "*",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\preset-env\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"loose": true,
|
||||
"modules": false,
|
||||
"shippedProposals": true,
|
||||
"targets": "defaults",
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\@babel\\\\preset-react\\\\lib\\\\index.js",
|
||||
],
|
||||
"sourceType": "unambiguous",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"test": "/\\\\.css$/",
|
||||
"use": Array [
|
||||
"NODE_MODULES\\\\style-loader\\\\dist\\\\cjs.js",
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\css-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"importLoaders": 1,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\file-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"name": "static/media/[name].[contenthash:8].[ext]",
|
||||
},
|
||||
"test": "/\\\\.(svg|ico|jpg|jpeg|png|apng|gif|eot|otf|webp|ttf|woff|woff2|cur|ani|pdf)(\\\\?.*)?$/",
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\url-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"limit": 10000,
|
||||
"name": "static/media/[name].[contenthash:8].[ext]",
|
||||
},
|
||||
"test": "/\\\\.(mp4|webm|wav|mp3|m4a|aac|oga)(\\\\?.*)?$/",
|
||||
},
|
||||
Object {
|
||||
"include": "NODE_MODULES[\\\\\\\\/](@storybook[\\\\\\\\/]node_logger|@testing-library[\\\\\\\\/]dom|@testing-library[\\\\\\\\/]user-event|acorn-jsx|ansi-align|ansi-colors|ansi-escapes|ansi-regex|ansi-styles|better-opn|boxen|camelcase|chalk|color-convert|commander|find-cache-dir|find-up|fs-extra|highlight.js|json5|node-fetch|pkg-dir|prettier|pretty-format|react-dev-utils|resolve-from|semver|slash|strip-ansi|uuid)/",
|
||||
"test": "/\\\\.js$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"presets": Array [
|
||||
Array [
|
||||
"@babel/preset-env",
|
||||
Object {
|
||||
"targets": Object {
|
||||
"ie": "11",
|
||||
},
|
||||
},
|
||||
"storybook-addon-ie11",
|
||||
],
|
||||
],
|
||||
"sourceType": "unambiguous",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
"plugins": Array [
|
||||
"VirtualModulesPlugin",
|
||||
"HtmlWebpackPlugin",
|
||||
"CaseSensitivePathsPlugin",
|
||||
"DefinePlugin",
|
||||
],
|
||||
}
|
||||
`;
|
@ -1,6 +1,6 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`cra-ts-essentials preview dev mode 1`] = `
|
||||
exports[`cra-ts-essentials preview dev 1`] = `
|
||||
Object {
|
||||
"entry": Array [
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
@ -0,0 +1,490 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`cra-ts-essentials preview dev 1`] = `
|
||||
Object {
|
||||
"entry": Array [
|
||||
"ROOT\\\\lib\\\\core-client\\\\dist\\\\esm\\\\globals\\\\polyfills.js",
|
||||
"ROOT\\\\lib\\\\core-client\\\\dist\\\\esm\\\\globals\\\\globals.js",
|
||||
"NODE_MODULES\\\\webpack-hot-middleware\\\\client.js?reload=true&quiet=false&noInfo=undefined",
|
||||
"NODE_MODULES\\\\@storybook\\\\addon-ie11\\\\dist\\\\event-source-polyfill.js",
|
||||
"ROOT\\\\storybook-init-framework-entry.js",
|
||||
"ROOT\\\\addons\\\\docs\\\\dist\\\\esm\\\\frameworks\\\\common\\\\config.js-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\docs\\\\dist\\\\esm\\\\frameworks\\\\react\\\\config.js-generated-config-entry.js",
|
||||
"ROOT\\\\app\\\\react\\\\dist\\\\esm\\\\client\\\\preview\\\\config-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\actions\\\\dist\\\\esm\\\\preset\\\\addDecorator.js-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\actions\\\\dist\\\\esm\\\\preset\\\\addArgs.js-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\backgrounds\\\\dist\\\\esm\\\\preset\\\\addDecorator.js-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\backgrounds\\\\dist\\\\esm\\\\preset\\\\addParameter.js-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\measure\\\\dist\\\\esm\\\\preset\\\\addDecorator.js-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\outline\\\\dist\\\\esm\\\\preset\\\\addDecorator.js-generated-config-entry.js",
|
||||
"ROOT\\\\examples\\\\cra-ts-essentials\\\\.storybook\\\\preview.js-generated-config-entry.js",
|
||||
"ROOT\\\\generated-stories-entry.js",
|
||||
],
|
||||
"keys": Array [
|
||||
"name",
|
||||
"mode",
|
||||
"bail",
|
||||
"devtool",
|
||||
"entry",
|
||||
"output",
|
||||
"watchOptions",
|
||||
"plugins",
|
||||
"module",
|
||||
"resolve",
|
||||
"resolveLoader",
|
||||
"optimization",
|
||||
"performance",
|
||||
],
|
||||
"module": Object {
|
||||
"rules": Array [
|
||||
Object {
|
||||
"test": "/\\\\.md$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\raw-loader\\\\dist\\\\cjs.js",
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"parser": Object {
|
||||
"requireEnsure": false,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"oneOf": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\url-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"limit": 10000,
|
||||
"mimetype": "image/avif",
|
||||
"name": "static/media/[name].[hash:8].[ext]",
|
||||
},
|
||||
"test": Array [
|
||||
"/\\\\.avif$/",
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\url-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"limit": 10000,
|
||||
"name": "static/media/[name].[hash:8].[ext]",
|
||||
},
|
||||
"test": Array [
|
||||
"/\\\\.bmp$/",
|
||||
"/\\\\.gif$/",
|
||||
"/\\\\.jpe?g$/",
|
||||
"/\\\\.png$/",
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"include": Array [
|
||||
"ROOT\\\\src",
|
||||
"ROOT\\\\examples\\\\cra-ts-essentials\\\\.storybook",
|
||||
],
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheCompression": false,
|
||||
"cacheDirectory": true,
|
||||
"cacheIdentifier": "development:babel-plugin-named-asset-import@0.3.7:babel-preset-react-app@10.0.0:react-dev-utils@11.0.3:react-scripts@4.0.3",
|
||||
"compact": false,
|
||||
"configFile": false,
|
||||
"customize": "NODE_MODULES\\\\babel-preset-react-app\\\\webpack-overrides.js",
|
||||
"extends": undefined,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-plugin-react-docgen\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-plugin-named-asset-import\\\\index.js",
|
||||
Object {
|
||||
"loaderMap": Object {
|
||||
"svg": Object {
|
||||
"ReactComponent": "@svgr/webpack?-svgo,+titleProp,+ref![path]",
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
"NODE_MODULES\\\\react-refresh\\\\babel.js",
|
||||
],
|
||||
"presets": Array [
|
||||
Array [
|
||||
"@babel/preset-env",
|
||||
Object {
|
||||
"targets": Object {
|
||||
"ie": "11",
|
||||
},
|
||||
},
|
||||
"storybook-addon-ie11",
|
||||
],
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-preset-react-app\\\\index.js",
|
||||
Object {
|
||||
"runtime": "automatic",
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
"test": "/\\\\.(js|mjs|jsx|ts|tsx)$/",
|
||||
},
|
||||
Object {
|
||||
"exclude": "/@babel(?:\\\\/|\\\\\\\\{1,2})runtime/",
|
||||
"include": Array [
|
||||
"ROOT\\\\examples\\\\cra-ts-essentials\\\\.storybook",
|
||||
],
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheCompression": false,
|
||||
"cacheDirectory": true,
|
||||
"cacheIdentifier": "development:babel-plugin-named-asset-import@0.3.7:babel-preset-react-app@10.0.0:react-dev-utils@11.0.3:react-scripts@4.0.3",
|
||||
"compact": false,
|
||||
"configFile": false,
|
||||
"inputSourceMap": true,
|
||||
"presets": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-preset-react-app\\\\dependencies.js",
|
||||
Object {
|
||||
"helpers": true,
|
||||
},
|
||||
],
|
||||
],
|
||||
"sourceMaps": true,
|
||||
},
|
||||
"test": "/\\\\.(js|mjs)$/",
|
||||
},
|
||||
Object {
|
||||
"exclude": Array [
|
||||
"/\\\\.module\\\\.css$/",
|
||||
"/@storybook/",
|
||||
],
|
||||
"include": undefined,
|
||||
"sideEffects": true,
|
||||
"test": "/\\\\.css$/",
|
||||
"use": Array [
|
||||
"NODE_MODULES\\\\style-loader\\\\dist\\\\cjs.js",
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\css-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"importLoaders": 1,
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\postcss-loader\\\\src\\\\index.js",
|
||||
"options": Object {
|
||||
"ident": "postcss",
|
||||
"plugins": [Function],
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"test": "/\\\\.module\\\\.css$/",
|
||||
"use": Array [
|
||||
"NODE_MODULES\\\\style-loader\\\\dist\\\\cjs.js",
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\css-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"importLoaders": 1,
|
||||
"modules": Object {
|
||||
"getLocalIdent": [Function],
|
||||
},
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\postcss-loader\\\\src\\\\index.js",
|
||||
"options": Object {
|
||||
"ident": "postcss",
|
||||
"plugins": [Function],
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"exclude": "/\\\\.module\\\\.(scss|sass)$/",
|
||||
"sideEffects": true,
|
||||
"test": "/\\\\.(scss|sass)$/",
|
||||
"use": Array [
|
||||
"NODE_MODULES\\\\style-loader\\\\dist\\\\cjs.js",
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\css-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"importLoaders": 3,
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\postcss-loader\\\\src\\\\index.js",
|
||||
"options": Object {
|
||||
"ident": "postcss",
|
||||
"plugins": [Function],
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\resolve-url-loader\\\\index.js",
|
||||
"options": Object {
|
||||
"root": "ROOT\\\\src",
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\sass-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"test": "/\\\\.module\\\\.(scss|sass)$/",
|
||||
"use": Array [
|
||||
"NODE_MODULES\\\\style-loader\\\\dist\\\\cjs.js",
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\css-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"importLoaders": 3,
|
||||
"modules": Object {
|
||||
"getLocalIdent": [Function],
|
||||
},
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\postcss-loader\\\\src\\\\index.js",
|
||||
"options": Object {
|
||||
"ident": "postcss",
|
||||
"plugins": [Function],
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\resolve-url-loader\\\\index.js",
|
||||
"options": Object {
|
||||
"root": "ROOT\\\\src",
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\sass-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"exclude": Array [
|
||||
"/\\\\.(js|mjs|jsx|ts|tsx)$/",
|
||||
"/\\\\.html$/",
|
||||
"/\\\\.json$/",
|
||||
"/\\\\.(ejs|md|mdx)$/",
|
||||
],
|
||||
"loader": "NODE_MODULES\\\\file-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"name": "static/media/[name].[hash:8].[ext]",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"include": "NODE_MODULES[\\\\\\\\/](@storybook[\\\\\\\\/]node_logger|@testing-library[\\\\\\\\/]dom|@testing-library[\\\\\\\\/]user-event|acorn-jsx|ansi-align|ansi-colors|ansi-escapes|ansi-regex|ansi-styles|better-opn|boxen|camelcase|chalk|color-convert|commander|find-cache-dir|find-up|fs-extra|highlight.js|json5|node-fetch|pkg-dir|prettier|pretty-format|react-dev-utils|resolve-from|semver|slash|strip-ansi|uuid)/",
|
||||
"test": "/\\\\.js$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"presets": Array [
|
||||
Array [
|
||||
"@babel/preset-env",
|
||||
Object {
|
||||
"targets": Object {
|
||||
"ie": "11",
|
||||
},
|
||||
},
|
||||
"storybook-addon-ie11",
|
||||
],
|
||||
],
|
||||
"sourceType": "unambiguous",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"include": "NODE_MODULES\\\\\\\\acorn-jsx/",
|
||||
"test": "/\\\\.js$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"presets": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\preset-env\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"modules": "commonjs",
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"test": "/(stories|story)\\\\.mdx$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": "NODE_MODULES\\\\.cache\\\\storybook\\\\babel",
|
||||
"configFile": false,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-plugin-react-docgen\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-react-jsx\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"pragma": "React.createElement",
|
||||
"pragmaFrag": "React.Fragment",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [
|
||||
Array [
|
||||
"@babel/preset-env",
|
||||
Object {
|
||||
"targets": Object {
|
||||
"ie": "11",
|
||||
},
|
||||
},
|
||||
"storybook-addon-ie11",
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\@mdx-js\\\\loader\\\\index.js",
|
||||
"options": Object {
|
||||
"compilers": Array [
|
||||
[Function],
|
||||
],
|
||||
"remarkPlugins": Array [
|
||||
[Function],
|
||||
[Function],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"exclude": "/(stories|story)\\\\.mdx$/",
|
||||
"test": "/\\\\.mdx$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": "NODE_MODULES\\\\.cache\\\\storybook\\\\babel",
|
||||
"configFile": false,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-plugin-react-docgen\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-react-jsx\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"pragma": "React.createElement",
|
||||
"pragmaFrag": "React.Fragment",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [
|
||||
Array [
|
||||
"@babel/preset-env",
|
||||
Object {
|
||||
"targets": Object {
|
||||
"ie": "11",
|
||||
},
|
||||
},
|
||||
"storybook-addon-ie11",
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\@mdx-js\\\\loader\\\\index.js",
|
||||
"options": Object {
|
||||
"remarkPlugins": Array [
|
||||
[Function],
|
||||
[Function],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"enforce": "pre",
|
||||
"loader": "ROOT\\\\lib\\\\source-loader\\\\dist\\\\cjs\\\\index.js",
|
||||
"options": Object {
|
||||
"injectStoryParameters": true,
|
||||
"inspectLocalDependencies": true,
|
||||
},
|
||||
"test": "/\\\\.(stories|story)\\\\.[tj]sx?$/",
|
||||
},
|
||||
],
|
||||
},
|
||||
"plugins": Array [
|
||||
"FilterWarningsPlugin",
|
||||
"VirtualModulesPlugin",
|
||||
"HtmlWebpackPlugin",
|
||||
"DefinePlugin",
|
||||
"WatchMissingNodeModulesPlugin",
|
||||
"HotModuleReplacementPlugin",
|
||||
"CaseSensitivePathsPlugin",
|
||||
"ProgressPlugin",
|
||||
"InterpolateHtmlPlugin",
|
||||
"ModuleNotFoundPlugin",
|
||||
"ReactRefreshPlugin",
|
||||
"ManifestPlugin",
|
||||
"IgnorePlugin",
|
||||
"ForkTsCheckerWebpackPlugin",
|
||||
"ESLintWebpackPlugin",
|
||||
"DocgenPlugin",
|
||||
],
|
||||
}
|
||||
`;
|
@ -1,6 +1,6 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`cra-ts-essentials preview production mode 1`] = `
|
||||
exports[`cra-ts-essentials preview prod 1`] = `
|
||||
Object {
|
||||
"entry": Array [
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
@ -0,0 +1,507 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`cra-ts-essentials preview prod 1`] = `
|
||||
Object {
|
||||
"entry": Array [
|
||||
"ROOT\\\\lib\\\\core-client\\\\dist\\\\esm\\\\globals\\\\polyfills.js",
|
||||
"ROOT\\\\lib\\\\core-client\\\\dist\\\\esm\\\\globals\\\\globals.js",
|
||||
"NODE_MODULES\\\\@storybook\\\\addon-ie11\\\\dist\\\\event-source-polyfill.js",
|
||||
"ROOT\\\\storybook-init-framework-entry.js",
|
||||
"ROOT\\\\addons\\\\docs\\\\dist\\\\esm\\\\frameworks\\\\common\\\\config.js-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\docs\\\\dist\\\\esm\\\\frameworks\\\\react\\\\config.js-generated-config-entry.js",
|
||||
"ROOT\\\\app\\\\react\\\\dist\\\\esm\\\\client\\\\preview\\\\config-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\actions\\\\dist\\\\esm\\\\preset\\\\addDecorator.js-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\actions\\\\dist\\\\esm\\\\preset\\\\addArgs.js-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\backgrounds\\\\dist\\\\esm\\\\preset\\\\addDecorator.js-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\backgrounds\\\\dist\\\\esm\\\\preset\\\\addParameter.js-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\measure\\\\dist\\\\esm\\\\preset\\\\addDecorator.js-generated-config-entry.js",
|
||||
"ROOT\\\\addons\\\\outline\\\\dist\\\\esm\\\\preset\\\\addDecorator.js-generated-config-entry.js",
|
||||
"ROOT\\\\examples\\\\cra-ts-essentials\\\\.storybook\\\\preview.js-generated-config-entry.js",
|
||||
"ROOT\\\\generated-stories-entry.js",
|
||||
],
|
||||
"keys": Array [
|
||||
"name",
|
||||
"mode",
|
||||
"bail",
|
||||
"devtool",
|
||||
"entry",
|
||||
"output",
|
||||
"watchOptions",
|
||||
"plugins",
|
||||
"module",
|
||||
"resolve",
|
||||
"resolveLoader",
|
||||
"optimization",
|
||||
"performance",
|
||||
],
|
||||
"module": Object {
|
||||
"rules": Array [
|
||||
Object {
|
||||
"test": "/\\\\.md$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\raw-loader\\\\dist\\\\cjs.js",
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"parser": Object {
|
||||
"requireEnsure": false,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"oneOf": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\url-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"limit": 10000,
|
||||
"mimetype": "image/avif",
|
||||
"name": "static/media/[name].[hash:8].[ext]",
|
||||
},
|
||||
"test": Array [
|
||||
"/\\\\.avif$/",
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\url-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"limit": 10000,
|
||||
"name": "static/media/[name].[hash:8].[ext]",
|
||||
},
|
||||
"test": Array [
|
||||
"/\\\\.bmp$/",
|
||||
"/\\\\.gif$/",
|
||||
"/\\\\.jpe?g$/",
|
||||
"/\\\\.png$/",
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"include": Array [
|
||||
"ROOT\\\\src",
|
||||
"ROOT\\\\examples\\\\cra-ts-essentials\\\\.storybook",
|
||||
],
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheCompression": false,
|
||||
"cacheDirectory": true,
|
||||
"cacheIdentifier": "production:babel-plugin-named-asset-import@0.3.7:babel-preset-react-app@10.0.0:react-dev-utils@11.0.3:react-scripts@4.0.3",
|
||||
"compact": true,
|
||||
"configFile": false,
|
||||
"customize": "NODE_MODULES\\\\babel-preset-react-app\\\\webpack-overrides.js",
|
||||
"extends": undefined,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-plugin-react-docgen\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-plugin-named-asset-import\\\\index.js",
|
||||
Object {
|
||||
"loaderMap": Object {
|
||||
"svg": Object {
|
||||
"ReactComponent": "@svgr/webpack?-svgo,+titleProp,+ref![path]",
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [
|
||||
Array [
|
||||
"@babel/preset-env",
|
||||
Object {
|
||||
"targets": Object {
|
||||
"ie": "11",
|
||||
},
|
||||
},
|
||||
"storybook-addon-ie11",
|
||||
],
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-preset-react-app\\\\index.js",
|
||||
Object {
|
||||
"runtime": "automatic",
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
"test": "/\\\\.(js|mjs|jsx|ts|tsx)$/",
|
||||
},
|
||||
Object {
|
||||
"exclude": "/@babel(?:\\\\/|\\\\\\\\{1,2})runtime/",
|
||||
"include": Array [
|
||||
"ROOT\\\\examples\\\\cra-ts-essentials\\\\.storybook",
|
||||
],
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheCompression": false,
|
||||
"cacheDirectory": true,
|
||||
"cacheIdentifier": "production:babel-plugin-named-asset-import@0.3.7:babel-preset-react-app@10.0.0:react-dev-utils@11.0.3:react-scripts@4.0.3",
|
||||
"compact": false,
|
||||
"configFile": false,
|
||||
"inputSourceMap": true,
|
||||
"presets": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-preset-react-app\\\\dependencies.js",
|
||||
Object {
|
||||
"helpers": true,
|
||||
},
|
||||
],
|
||||
],
|
||||
"sourceMaps": true,
|
||||
},
|
||||
"test": "/\\\\.(js|mjs)$/",
|
||||
},
|
||||
Object {
|
||||
"exclude": Array [
|
||||
"/\\\\.module\\\\.css$/",
|
||||
"/@storybook/",
|
||||
],
|
||||
"include": undefined,
|
||||
"sideEffects": true,
|
||||
"test": "/\\\\.css$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\mini-css-extract-plugin\\\\dist\\\\loader.js",
|
||||
"options": Object {
|
||||
"publicPath": "../../",
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\css-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"importLoaders": 1,
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\postcss-loader\\\\src\\\\index.js",
|
||||
"options": Object {
|
||||
"ident": "postcss",
|
||||
"plugins": [Function],
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"test": "/\\\\.module\\\\.css$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\mini-css-extract-plugin\\\\dist\\\\loader.js",
|
||||
"options": Object {
|
||||
"publicPath": "../../",
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\css-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"importLoaders": 1,
|
||||
"modules": Object {
|
||||
"getLocalIdent": [Function],
|
||||
},
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\postcss-loader\\\\src\\\\index.js",
|
||||
"options": Object {
|
||||
"ident": "postcss",
|
||||
"plugins": [Function],
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"exclude": "/\\\\.module\\\\.(scss|sass)$/",
|
||||
"sideEffects": true,
|
||||
"test": "/\\\\.(scss|sass)$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\mini-css-extract-plugin\\\\dist\\\\loader.js",
|
||||
"options": Object {
|
||||
"publicPath": "../../",
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\css-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"importLoaders": 3,
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\postcss-loader\\\\src\\\\index.js",
|
||||
"options": Object {
|
||||
"ident": "postcss",
|
||||
"plugins": [Function],
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\resolve-url-loader\\\\index.js",
|
||||
"options": Object {
|
||||
"root": "ROOT\\\\src",
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\sass-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"test": "/\\\\.module\\\\.(scss|sass)$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\mini-css-extract-plugin\\\\dist\\\\loader.js",
|
||||
"options": Object {
|
||||
"publicPath": "../../",
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\css-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"importLoaders": 3,
|
||||
"modules": Object {
|
||||
"getLocalIdent": [Function],
|
||||
},
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\postcss-loader\\\\src\\\\index.js",
|
||||
"options": Object {
|
||||
"ident": "postcss",
|
||||
"plugins": [Function],
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\resolve-url-loader\\\\index.js",
|
||||
"options": Object {
|
||||
"root": "ROOT\\\\src",
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\sass-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"sourceMap": true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"exclude": Array [
|
||||
"/\\\\.(js|mjs|jsx|ts|tsx)$/",
|
||||
"/\\\\.html$/",
|
||||
"/\\\\.json$/",
|
||||
"/\\\\.(ejs|md|mdx)$/",
|
||||
],
|
||||
"loader": "NODE_MODULES\\\\file-loader\\\\dist\\\\cjs.js",
|
||||
"options": Object {
|
||||
"name": "static/media/[name].[hash:8].[ext]",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"include": "NODE_MODULES[\\\\\\\\/](@storybook[\\\\\\\\/]node_logger|@testing-library[\\\\\\\\/]dom|@testing-library[\\\\\\\\/]user-event|acorn-jsx|ansi-align|ansi-colors|ansi-escapes|ansi-regex|ansi-styles|better-opn|boxen|camelcase|chalk|color-convert|commander|find-cache-dir|find-up|fs-extra|highlight.js|json5|node-fetch|pkg-dir|prettier|pretty-format|react-dev-utils|resolve-from|semver|slash|strip-ansi|uuid)/",
|
||||
"test": "/\\\\.js$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"presets": Array [
|
||||
Array [
|
||||
"@babel/preset-env",
|
||||
Object {
|
||||
"targets": Object {
|
||||
"ie": "11",
|
||||
},
|
||||
},
|
||||
"storybook-addon-ie11",
|
||||
],
|
||||
],
|
||||
"sourceType": "unambiguous",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"include": "NODE_MODULES\\\\\\\\acorn-jsx/",
|
||||
"test": "/\\\\.js$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"presets": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\preset-env\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"modules": "commonjs",
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"test": "/(stories|story)\\\\.mdx$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": "NODE_MODULES\\\\.cache\\\\storybook\\\\babel",
|
||||
"configFile": false,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-plugin-react-docgen\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-react-jsx\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"pragma": "React.createElement",
|
||||
"pragmaFrag": "React.Fragment",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [
|
||||
Array [
|
||||
"@babel/preset-env",
|
||||
Object {
|
||||
"targets": Object {
|
||||
"ie": "11",
|
||||
},
|
||||
},
|
||||
"storybook-addon-ie11",
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\@mdx-js\\\\loader\\\\index.js",
|
||||
"options": Object {
|
||||
"compilers": Array [
|
||||
[Function],
|
||||
],
|
||||
"remarkPlugins": Array [
|
||||
[Function],
|
||||
[Function],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"exclude": "/(stories|story)\\\\.mdx$/",
|
||||
"test": "/\\\\.mdx$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\babel-loader\\\\lib\\\\index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": "NODE_MODULES\\\\.cache\\\\storybook\\\\babel",
|
||||
"configFile": false,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\babel-plugin-react-docgen\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES\\\\@babel\\\\plugin-transform-react-jsx\\\\lib\\\\index.js",
|
||||
Object {
|
||||
"pragma": "React.createElement",
|
||||
"pragmaFrag": "React.Fragment",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [
|
||||
Array [
|
||||
"@babel/preset-env",
|
||||
Object {
|
||||
"targets": Object {
|
||||
"ie": "11",
|
||||
},
|
||||
},
|
||||
"storybook-addon-ie11",
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES\\\\@mdx-js\\\\loader\\\\index.js",
|
||||
"options": Object {
|
||||
"remarkPlugins": Array [
|
||||
[Function],
|
||||
[Function],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"enforce": "pre",
|
||||
"loader": "ROOT\\\\lib\\\\source-loader\\\\dist\\\\cjs\\\\index.js",
|
||||
"options": Object {
|
||||
"injectStoryParameters": true,
|
||||
"inspectLocalDependencies": true,
|
||||
},
|
||||
"test": "/\\\\.(stories|story)\\\\.[tj]sx?$/",
|
||||
},
|
||||
],
|
||||
},
|
||||
"plugins": Array [
|
||||
"FilterWarningsPlugin",
|
||||
"VirtualModulesPlugin",
|
||||
"HtmlWebpackPlugin",
|
||||
"DefinePlugin",
|
||||
"CaseSensitivePathsPlugin",
|
||||
"ProgressPlugin",
|
||||
"InlineChunkHtmlPlugin",
|
||||
"InterpolateHtmlPlugin",
|
||||
"ModuleNotFoundPlugin",
|
||||
"MiniCssExtractPlugin",
|
||||
"ManifestPlugin",
|
||||
"IgnorePlugin",
|
||||
"ForkTsCheckerWebpackPlugin",
|
||||
"ESLintWebpackPlugin",
|
||||
"DocgenPlugin",
|
||||
],
|
||||
}
|
||||
`;
|
@ -1,6 +1,6 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`html-kitchen-sink manager dev mode 1`] = `
|
||||
exports[`html-kitchen-sink manager dev 1`] = `
|
||||
Object {
|
||||
"entry": Array [
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
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