Merge branch 'next' into fix-addon-paths-on-windows

This commit is contained in:
Norbert de Langen 2022-10-24 16:13:30 +02:00
commit 3fbbcca706
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762
108 changed files with 1612 additions and 1269 deletions

View File

@ -1,3 +1,23 @@
## 7.0.0-alpha.42 (October 24, 2022)
#### Features
- Svelte: Improve CSF3 types [#19512](https://github.com/storybooks/storybook/pull/19512)
#### Maintenance
- Telemetry: Use a wrapper around all CLI commands to send boot and error events [#19566](https://github.com/storybooks/storybook/pull/19566)
#### Build
- Add ability to run tasks from code dir [#19588](https://github.com/storybooks/storybook/pull/19588)
- Make the reporter dynamic [#19587](https://github.com/storybooks/storybook/pull/19587)
- Add vite-react benchmark [#19558](https://github.com/storybooks/storybook/pull/19558)
#### Dependency Upgrades
- Fix test-runner version conflicts [#19581](https://github.com/storybooks/storybook/pull/19581)
## 7.0.0-alpha.41 (October 21, 2022)
#### Features

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-a11y",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Test component compliance with web accessibility standards",
"keywords": [
"a11y",
@ -62,15 +62,15 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addon-highlight": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/channels": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addon-highlight": "7.0.0-alpha.42",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/channels": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.42",
"axe-core": "^4.2.0",
"global": "^4.4.0",
"lodash": "^4.17.21",
@ -102,7 +102,7 @@
"./src/preview.tsx"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Accessibility",
"icon": "https://user-images.githubusercontent.com/263385/101991665-47042f80-3c7c-11eb-8f00-64b5a18f498a.png",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-actions",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Get UI feedback when an action is performed on an interactive element",
"keywords": [
"storybook",
@ -58,13 +58,13 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.42",
"dequal": "^2.0.2",
"global": "^4.4.0",
"lodash": "^4.17.21",
@ -102,7 +102,7 @@
"./src/preview.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Actions",
"unsupportedFrameworks": [

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-backgrounds",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Switch backgrounds to view components in different settings",
"keywords": [
"addon",
@ -62,13 +62,13 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.42",
"global": "^4.4.0",
"memoizerific": "^1.11.3",
"ts-dedent": "^2.0.0"
@ -98,7 +98,7 @@
"./src/preview.tsx"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Backgrounds",
"icon": "https://user-images.githubusercontent.com/263385/101991667-479cc600-3c7c-11eb-96d3-410e936252e7.png",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-controls",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Interact with component inputs dynamically in the Storybook UI",
"keywords": [
"addon",
@ -57,16 +57,16 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/blocks": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/blocks": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/store": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42",
"lodash": "^4.17.21",
"ts-dedent": "^2.0.0"
},
@ -92,7 +92,7 @@
],
"platform": "browser"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Controls",
"icon": "https://user-images.githubusercontent.com/263385/101991669-479cc600-3c7c-11eb-93d9-38b67e8371f2.png",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-docs",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Document component usage and properties in Markdown",
"keywords": [
"addon",
@ -52,22 +52,22 @@
"@babel/plugin-transform-react-jsx": "^7.12.12",
"@jest/transform": "^26.6.2",
"@mdx-js/react": "^2.1.5",
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/blocks": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/blocks": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/csf-tools": "7.0.0-alpha.41",
"@storybook/docs-tools": "7.0.0-alpha.41",
"@storybook/mdx2-csf": "0.1.0-next.0",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/postinstall": "7.0.0-alpha.41",
"@storybook/preview-web": "7.0.0-alpha.41",
"@storybook/source-loader": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/csf-tools": "7.0.0-alpha.42",
"@storybook/docs-tools": "7.0.0-alpha.42",
"@storybook/mdx2-csf": "next",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/postinstall": "7.0.0-alpha.42",
"@storybook/preview-web": "7.0.0-alpha.42",
"@storybook/source-loader": "7.0.0-alpha.42",
"@storybook/store": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42",
"dequal": "^2.0.2",
"fs-extra": "^9.0.1",
"global": "^4.4.0",
@ -94,7 +94,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Docs",
"icon": "https://user-images.githubusercontent.com/263385/101991672-48355c80-3c7c-11eb-82d9-95fa12438f64.png",

View File

@ -0,0 +1,18 @@
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs';
import globalThis from 'global';
<Meta title="addons/docs/stories-mdx/iframe" component={globalThis.Components.Button} />
# MDX Stories
This file demonstrates rendering iframe stories in MDX.
<Canvas>
<Story name="Primary" args={{ label: 'Primary' }} inline={false} />
</Canvas>
<ArgsTable story="^" />
<Canvas>
<Story name="Secondary" args={{ label: 'Secondary' }} inline={false} />
</Canvas>

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-essentials",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Curated addons to bring out the best of Storybook",
"keywords": [
"addon",
@ -41,24 +41,24 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addon-actions": "7.0.0-alpha.41",
"@storybook/addon-backgrounds": "7.0.0-alpha.41",
"@storybook/addon-controls": "7.0.0-alpha.41",
"@storybook/addon-docs": "7.0.0-alpha.41",
"@storybook/addon-highlight": "7.0.0-alpha.41",
"@storybook/addon-measure": "7.0.0-alpha.41",
"@storybook/addon-outline": "7.0.0-alpha.41",
"@storybook/addon-toolbars": "7.0.0-alpha.41",
"@storybook/addon-viewport": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/addon-actions": "7.0.0-alpha.42",
"@storybook/addon-backgrounds": "7.0.0-alpha.42",
"@storybook/addon-controls": "7.0.0-alpha.42",
"@storybook/addon-docs": "7.0.0-alpha.42",
"@storybook/addon-highlight": "7.0.0-alpha.42",
"@storybook/addon-measure": "7.0.0-alpha.42",
"@storybook/addon-outline": "7.0.0-alpha.42",
"@storybook/addon-toolbars": "7.0.0-alpha.42",
"@storybook/addon-viewport": "7.0.0-alpha.42",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"ts-dedent": "^2.0.0"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@storybook/vue": "7.0.0-alpha.41",
"@storybook/vue": "7.0.0-alpha.42",
"@types/jest": "^26.0.16",
"typescript": "~4.6.3"
},
@ -112,5 +112,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-highlight",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Highlight DOM nodes within your stories",
"keywords": [
"storybook-addons",
@ -50,8 +50,8 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"global": "^4.4.0"
},
"devDependencies": {
@ -67,7 +67,7 @@
"./src/highlight.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Highlight",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-interactions",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Automate, test and debug user interactions",
"keywords": [
"storybook-addons",
@ -59,15 +59,15 @@
},
"dependencies": {
"@devtools-ds/object-inspector": "^1.1.2",
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/instrumenter": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/instrumenter": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42",
"global": "^4.4.0",
"jest-mock": "^27.0.6",
"polished": "^4.2.2",
@ -104,7 +104,7 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Interactions",
"unsupportedFrameworks": [

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-jest",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "React storybook addon that show component jest report",
"keywords": [
"addon",
@ -59,12 +59,12 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42",
"global": "^4.4.0",
"react-sizeme": "^3.0.1",
"upath": "^1.2.0"
@ -94,7 +94,7 @@
],
"platform": "browser"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Jest",
"icon": "https://pbs.twimg.com/profile_images/821713465245102080/mMtKIMax_400x400.jpg",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-links",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Link stories together to build demos and prototypes with your UI components",
"keywords": [
"addon",
@ -63,11 +63,11 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/router": "7.0.0-alpha.41",
"@storybook/router": "7.0.0-alpha.42",
"global": "^4.4.0",
"prop-types": "^15.7.2",
"ts-dedent": "^2.0.0"
@ -98,7 +98,7 @@
"./src/react/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Links",
"icon": "https://user-images.githubusercontent.com/263385/101991673-48355c80-3c7c-11eb-9b6e-b627c96a75f6.png",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-measure",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Inspect layouts by visualizing the box model",
"keywords": [
"storybook-addons",
@ -61,11 +61,11 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"global": "^4.4.0"
},
@ -94,7 +94,7 @@
"./src/preview.tsx"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Measure",
"unsupportedFrameworks": [

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-outline",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Outline all elements with CSS to help with layout placement and alignment",
"keywords": [
"storybook-addons",
@ -64,11 +64,11 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"global": "^4.4.0",
"ts-dedent": "^2.0.0"
@ -98,7 +98,7 @@
"./src/preset/preview.tsx"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Outline",
"unsupportedFrameworks": [

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storyshots",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Take a code snapshot of every story automatically with Jest",
"keywords": [
"addon",
@ -38,12 +38,12 @@
},
"dependencies": {
"@jest/transform": "^26.6.2",
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/babel-plugin-require-context-hook": "1.0.1",
"@storybook/client-api": "7.0.0-alpha.41",
"@storybook/core-client": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/core-webpack": "7.0.0-alpha.41",
"@storybook/client-api": "7.0.0-alpha.42",
"@storybook/core-client": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/core-webpack": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@types/glob": "^7.1.3",
"@types/jest": "^26.0.16",
@ -62,11 +62,11 @@
"@angular/core": "^13.3.6",
"@angular/platform-browser-dynamic": "^13.3.6",
"@emotion/jest": "^11.8.0",
"@storybook/addon-docs": "7.0.0-alpha.41",
"@storybook/angular": "7.0.0-alpha.41",
"@storybook/react": "7.0.0-alpha.41",
"@storybook/vue": "7.0.0-alpha.41",
"@storybook/vue3": "7.0.0-alpha.41",
"@storybook/addon-docs": "7.0.0-alpha.42",
"@storybook/angular": "7.0.0-alpha.42",
"@storybook/react": "7.0.0-alpha.42",
"@storybook/vue": "7.0.0-alpha.42",
"@storybook/vue3": "7.0.0-alpha.42",
"babel-loader": "^8.2.5",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.1",
@ -144,7 +144,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Storyshots",
"icon": "https://user-images.githubusercontent.com/263385/101991676-48cdf300-3c7c-11eb-8aa1-944dab6ab29b.png",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storyshots-puppeteer",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Image snapshots addition to StoryShots based on puppeteer",
"keywords": [
"addon",
@ -35,7 +35,7 @@
"dependencies": {
"@axe-core/puppeteer": "^4.2.0",
"@storybook/csf": "next",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.42",
"@types/jest-image-snapshot": "^4.1.3",
"jest-image-snapshot": "^4.3.0"
},
@ -44,7 +44,7 @@
"puppeteer": "^2.0.0 || ^3.0.0"
},
"peerDependencies": {
"@storybook/addon-storyshots": "7.0.0-alpha.41",
"@storybook/addon-storyshots": "7.0.0-alpha.42",
"puppeteer": ">=2.0.0"
},
"peerDependenciesMeta": {
@ -55,5 +55,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storysource",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "View a storys source code to see how it works and paste into your app",
"keywords": [
"addon",
@ -53,13 +53,13 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/router": "7.0.0-alpha.41",
"@storybook/source-loader": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/router": "7.0.0-alpha.42",
"@storybook/source-loader": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42",
"estraverse": "^5.2.0",
"prop-types": "^15.7.2",
"react-syntax-highlighter": "^15.5.0"
@ -91,7 +91,7 @@
"./src/preset.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Storysource",
"icon": "https://user-images.githubusercontent.com/263385/101991675-48cdf300-3c7c-11eb-9400-58de5ac6daa7.png",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-toolbars",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Create your own toolbar items that control story rendering",
"keywords": [
"addon",
@ -57,11 +57,11 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41"
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42"
},
"devDependencies": {
"typescript": "~4.6.3"
@ -88,7 +88,7 @@
],
"platform": "browser"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Toolbars",
"icon": "https://user-images.githubusercontent.com/263385/101991677-48cdf300-3c7c-11eb-93b4-19b0e3366959.png",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-viewport",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Build responsive components by adjusting Storybooks viewport size and orientation",
"keywords": [
"addon",
@ -59,12 +59,12 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42",
"global": "^4.4.0",
"memoizerific": "^1.11.3",
"prop-types": "^15.7.2"
@ -95,7 +95,7 @@
"./src/preview.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637",
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b",
"storybook": {
"displayName": "Viewport",
"icon": "https://user-images.githubusercontent.com/263385/101991678-48cdf300-3c7c-11eb-9764-f8af293c1b28.png",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/example-doc-blocks",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"private": true,
"scripts": {
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true sb build",
@ -15,20 +15,20 @@
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@storybook/addon-essentials": "7.0.0-alpha.41",
"@storybook/addon-storyshots": "7.0.0-alpha.41",
"@storybook/addon-storysource": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/cli": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/react-webpack5": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/addon-essentials": "7.0.0-alpha.42",
"@storybook/addon-storyshots": "7.0.0-alpha.42",
"@storybook/addon-storysource": "7.0.0-alpha.42",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/cli": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/react-webpack5": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42",
"@types/babel__preset-env": "^7",
"@types/react": "^16.14.23",
"@types/react-dom": "^16.9.14",
"cross-env": "^7.0.3",
"lodash": "^4.17.21",
"sb": "7.0.0-alpha.41",
"sb": "7.0.0-alpha.42",
"typescript": "~4.6.3",
"webpack": "5"
},

View File

@ -1,6 +1,6 @@
{
"name": "ember-example",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"private": true,
"scripts": {
"--build-storybook": "yarn storybook-prebuild && storybook build",
@ -17,19 +17,19 @@
"devDependencies": {
"@babel/core": "^7.12.10",
"@ember/optional-features": "^2.0.0",
"@storybook/addon-a11y": "7.0.0-alpha.41",
"@storybook/addon-actions": "7.0.0-alpha.41",
"@storybook/addon-backgrounds": "7.0.0-alpha.41",
"@storybook/addon-controls": "7.0.0-alpha.41",
"@storybook/addon-docs": "7.0.0-alpha.41",
"@storybook/addon-highlight": "7.0.0-alpha.41",
"@storybook/addon-links": "7.0.0-alpha.41",
"@storybook/addon-storysource": "7.0.0-alpha.41",
"@storybook/addon-viewport": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/ember": "7.0.0-alpha.41",
"@storybook/addon-a11y": "7.0.0-alpha.42",
"@storybook/addon-actions": "7.0.0-alpha.42",
"@storybook/addon-backgrounds": "7.0.0-alpha.42",
"@storybook/addon-controls": "7.0.0-alpha.42",
"@storybook/addon-docs": "7.0.0-alpha.42",
"@storybook/addon-highlight": "7.0.0-alpha.42",
"@storybook/addon-links": "7.0.0-alpha.42",
"@storybook/addon-storysource": "7.0.0-alpha.42",
"@storybook/addon-viewport": "7.0.0-alpha.42",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/ember": "7.0.0-alpha.42",
"@storybook/ember-cli-storybook": "^0.2.1",
"@storybook/source-loader": "7.0.0-alpha.41",
"@storybook/source-loader": "7.0.0-alpha.42",
"babel-loader": "^8.2.5",
"broccoli-asset-rev": "^3.0.0",
"browserify-zlib": "^0.2.0",
@ -49,7 +49,7 @@
"loader.js": "^4.7.0",
"os-browserify": "^0.3.0",
"shx": "^0.3.2",
"storybook": "7.0.0-alpha.41",
"storybook": "7.0.0-alpha.42",
"stream-browserify": "^3.0.0",
"vm-browserify": "^1.1.2",
"webpack": "5",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/external-docs",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"private": true,
"scripts": {
"build": "next build",
@ -11,15 +11,15 @@
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true storybook dev -p 9011 --no-manager-cache -c .storybook"
},
"dependencies": {
"@storybook/addon-docs": "7.0.0-alpha.41",
"@storybook/addon-essentials": "7.0.0-alpha.41",
"@storybook/blocks": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/addon-docs": "7.0.0-alpha.42",
"@storybook/addon-essentials": "7.0.0-alpha.42",
"@storybook/blocks": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/preview-web": "7.0.0-alpha.41",
"@storybook/react": "7.0.0-alpha.41",
"@storybook/react-webpack5": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/preview-web": "7.0.0-alpha.42",
"@storybook/react": "7.0.0-alpha.42",
"@storybook/react-webpack5": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42",
"formik": "^2.2.9",
"next": "^12.1.0",
"nextra": "^1.1.0",
@ -38,7 +38,7 @@
"cross-env": "^7.0.3",
"eslint": "8.7.0",
"eslint-config-next": "12.0.8",
"storybook": "7.0.0-alpha.41",
"storybook": "7.0.0-alpha.42",
"typescript": "~4.6.3",
"webpack": "5"
}

View File

@ -1,6 +1,6 @@
{
"name": "server-kitchen-sink",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"private": true,
"description": "",
"keywords": [],
@ -14,15 +14,15 @@
"storybook": "SERVER_PORT=1137 storybook dev -p 9006 --quiet"
},
"devDependencies": {
"@storybook/addon-a11y": "7.0.0-alpha.41",
"@storybook/addon-actions": "7.0.0-alpha.41",
"@storybook/addon-backgrounds": "7.0.0-alpha.41",
"@storybook/addon-controls": "7.0.0-alpha.41",
"@storybook/addon-highlight": "7.0.0-alpha.41",
"@storybook/addon-links": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/server": "7.0.0-alpha.41",
"@storybook/server-webpack5": "7.0.0-alpha.41",
"@storybook/addon-a11y": "7.0.0-alpha.42",
"@storybook/addon-actions": "7.0.0-alpha.42",
"@storybook/addon-backgrounds": "7.0.0-alpha.42",
"@storybook/addon-controls": "7.0.0-alpha.42",
"@storybook/addon-highlight": "7.0.0-alpha.42",
"@storybook/addon-links": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/server": "7.0.0-alpha.42",
"@storybook/server-webpack5": "7.0.0-alpha.42",
"concurrently": "^5.3.0",
"cors": "^2.8.5",
"express": "~4.17.1",
@ -30,6 +30,6 @@
"nodemon": "^2.0.7",
"pug": "^3.0.0",
"safe-identifier": "^0.4.1",
"storybook": "7.0.0-alpha.41"
"storybook": "7.0.0-alpha.42"
}
}

View File

@ -1,20 +1,20 @@
{
"name": "standalone-preview",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"private": true,
"scripts": {
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true storybook dev -p 9011 -c ../official-storybook --no-manager-cache --preview-url=http://localhost:1337/external-iframe.html",
"storybook-preview": "cross-env PREVIEW_URL=external-iframe.html parcel ./storybook.html --port 1337"
},
"devDependencies": {
"@storybook/addon-docs": "7.0.0-alpha.41",
"@storybook/cli": "7.0.0-alpha.41",
"@storybook/react": "7.0.0-alpha.41",
"@storybook/react-webpack5": "7.0.0-alpha.41",
"@storybook/addon-docs": "7.0.0-alpha.42",
"@storybook/cli": "7.0.0-alpha.42",
"@storybook/react": "7.0.0-alpha.42",
"@storybook/react-webpack5": "7.0.0-alpha.42",
"cross-env": "^7.0.3",
"parcel": "2.0.1",
"react": "16.14.0",
"react-dom": "16.14.0",
"storybook": "7.0.0-alpha.41"
"storybook": "7.0.0-alpha.42"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/angular",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
"keywords": [
"storybook",
@ -34,19 +34,19 @@
"prep": "node ../../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/builder-webpack5": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/core-client": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/core-server": "7.0.0-alpha.41",
"@storybook/core-webpack": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/builder-webpack5": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/core-client": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/core-server": "7.0.0-alpha.42",
"@storybook/core-webpack": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/docs-tools": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/docs-tools": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/store": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"@types/react": "^16.14.23",
"@types/react-dom": "^16.9.14",
@ -120,5 +120,5 @@
"access": "public"
},
"builders": "dist/types/builders/builders.json",
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/ember",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
"homepage": "https://github.com/storybookjs/storybook/tree/main/frameworks/ember",
"bugs": {
@ -30,11 +30,11 @@
"prep": "node ../../../scripts/prepare.js"
},
"dependencies": {
"@storybook/builder-webpack5": "7.0.0-alpha.41",
"@storybook/core-client": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/docs-tools": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/builder-webpack5": "7.0.0-alpha.42",
"@storybook/core-client": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/docs-tools": "7.0.0-alpha.42",
"@storybook/store": "7.0.0-alpha.42",
"global": "^4.4.0",
"react": "16.14.0",
"react-dom": "16.14.0",
@ -57,5 +57,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/html-webpack5",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -50,10 +50,10 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/builder-webpack5": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/html": "7.0.0-alpha.41",
"@storybook/preset-html-webpack": "7.0.0-alpha.41",
"@storybook/builder-webpack5": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/html": "7.0.0-alpha.42",
"@storybook/preset-html-webpack": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"global": "^4.4.0",
"react": "16.14.0",
@ -78,5 +78,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/nextjs",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Next.js",
"keywords": [
"storybook",
@ -59,12 +59,12 @@
},
"dependencies": {
"@babel/preset-typescript": "^7.18.6",
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/builder-webpack5": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/preset-react-webpack": "7.0.0-alpha.41",
"@storybook/react": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/builder-webpack5": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/preset-react-webpack": "7.0.0-alpha.42",
"@storybook/react": "7.0.0-alpha.42",
"@types/node": "^14.14.20 || ^16.0.0",
"find-up": "^5.0.0",
"fs-extra": "^9.0.1",
@ -80,7 +80,7 @@
"tsconfig-paths-webpack-plugin": "^3.5.2"
},
"devDependencies": {
"@storybook/addon-actions": "7.0.0-alpha.41",
"@storybook/addon-actions": "7.0.0-alpha.42",
"@types/loader-utils": "^2.0.3",
"next": "^12.2.4",
"typescript": "~4.6.3",
@ -120,5 +120,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preact-webpack5",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Preact: Develop Preact Component in isolation.",
"keywords": [
"storybook"
@ -50,10 +50,10 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/builder-webpack5": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/preact": "7.0.0-alpha.41",
"@storybook/preset-preact-webpack": "7.0.0-alpha.41",
"@storybook/builder-webpack5": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/preact": "7.0.0-alpha.42",
"@storybook/preset-preact-webpack": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"react": "16.14.0",
"react-dom": "16.14.0"
@ -79,5 +79,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/react-vite",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for React and Vite: Develop React components in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -53,13 +53,13 @@
"dependencies": {
"@joshwooding/vite-plugin-react-docgen-typescript": "^0.0.5",
"@rollup/pluginutils": "^4.2.0",
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/builder-vite": "7.0.0-alpha.41",
"@storybook/channel-postmessage": "7.0.0-alpha.41",
"@storybook/channel-websocket": "7.0.0-alpha.41",
"@storybook/client-api": "7.0.0-alpha.41",
"@storybook/preview-web": "7.0.0-alpha.41",
"@storybook/react": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/builder-vite": "7.0.0-alpha.42",
"@storybook/channel-postmessage": "7.0.0-alpha.42",
"@storybook/channel-websocket": "7.0.0-alpha.42",
"@storybook/client-api": "7.0.0-alpha.42",
"@storybook/preview-web": "7.0.0-alpha.42",
"@storybook/react": "7.0.0-alpha.42",
"@vitejs/plugin-react": "^2.0.0",
"ast-types": "^0.14.2",
"magic-string": "^0.26.1",
@ -88,5 +88,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/react-webpack5",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -51,9 +51,9 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/builder-webpack5": "7.0.0-alpha.41",
"@storybook/preset-react-webpack": "7.0.0-alpha.41",
"@storybook/react": "7.0.0-alpha.41",
"@storybook/builder-webpack5": "7.0.0-alpha.42",
"@storybook/preset-react-webpack": "7.0.0-alpha.42",
"@storybook/react": "7.0.0-alpha.42",
"@types/node": "^16.0.0"
},
"devDependencies": {
@ -86,5 +86,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/server-webpack5",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -50,10 +50,10 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/builder-webpack5": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/preset-server-webpack": "7.0.0-alpha.41",
"@storybook/server": "7.0.0-alpha.41",
"@storybook/builder-webpack5": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/preset-server-webpack": "7.0.0-alpha.42",
"@storybook/server": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"react": "16.14.0",
"react-dom": "16.14.0"
@ -74,5 +74,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/svelte-vite",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Svelte and Vite: Develop Svelte components in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -52,14 +52,14 @@
},
"dependencies": {
"@storybook/addon-svelte-csf": "^2.0.0",
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/builder-vite": "7.0.0-alpha.41",
"@storybook/channel-postmessage": "7.0.0-alpha.41",
"@storybook/channel-websocket": "7.0.0-alpha.41",
"@storybook/client-api": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/preview-web": "7.0.0-alpha.41",
"@storybook/svelte": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/builder-vite": "7.0.0-alpha.42",
"@storybook/channel-postmessage": "7.0.0-alpha.42",
"@storybook/channel-websocket": "7.0.0-alpha.42",
"@storybook/client-api": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/preview-web": "7.0.0-alpha.42",
"@storybook/svelte": "7.0.0-alpha.42",
"@sveltejs/vite-plugin-svelte": "^1.0.0",
"magic-string": "^0.26.1",
"svelte": "^3.0.0",
@ -92,5 +92,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/svelte-webpack5",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -51,10 +51,10 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/builder-webpack5": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/preset-svelte-webpack": "7.0.0-alpha.41",
"@storybook/svelte": "7.0.0-alpha.41",
"@storybook/builder-webpack5": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/preset-svelte-webpack": "7.0.0-alpha.42",
"@storybook/svelte": "7.0.0-alpha.42",
"react": "16.14.0",
"react-dom": "16.14.0"
},
@ -81,5 +81,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/vue-vite",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Vue2 and Vite: Develop Vue2 Components in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -50,15 +50,15 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/builder-vite": "7.0.0-alpha.41",
"@storybook/channel-postmessage": "7.0.0-alpha.41",
"@storybook/channel-websocket": "7.0.0-alpha.41",
"@storybook/client-api": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/core-server": "7.0.0-alpha.41",
"@storybook/preview-web": "7.0.0-alpha.41",
"@storybook/vue": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/builder-vite": "7.0.0-alpha.42",
"@storybook/channel-postmessage": "7.0.0-alpha.42",
"@storybook/channel-websocket": "7.0.0-alpha.42",
"@storybook/client-api": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/core-server": "7.0.0-alpha.42",
"@storybook/preview-web": "7.0.0-alpha.42",
"@storybook/vue": "7.0.0-alpha.42",
"magic-string": "^0.26.1",
"vite": "^3.1.3",
"vue-docgen-api": "^4.40.0"
@ -83,5 +83,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/vue-webpack5",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -50,10 +50,10 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/builder-webpack5": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/preset-vue-webpack": "7.0.0-alpha.41",
"@storybook/vue": "7.0.0-alpha.41",
"@storybook/builder-webpack5": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/preset-vue-webpack": "7.0.0-alpha.42",
"@storybook/vue": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"react": "16.14.0",
"react-dom": "16.14.0"
@ -85,5 +85,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/vue3-vite",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Vue3 and Vite: Develop Vue3 components in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -51,14 +51,14 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/builder-vite": "7.0.0-alpha.41",
"@storybook/channel-postmessage": "7.0.0-alpha.41",
"@storybook/channel-websocket": "7.0.0-alpha.41",
"@storybook/client-api": "7.0.0-alpha.41",
"@storybook/core-server": "7.0.0-alpha.41",
"@storybook/preview-web": "7.0.0-alpha.41",
"@storybook/vue3": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/builder-vite": "7.0.0-alpha.42",
"@storybook/channel-postmessage": "7.0.0-alpha.42",
"@storybook/channel-websocket": "7.0.0-alpha.42",
"@storybook/client-api": "7.0.0-alpha.42",
"@storybook/core-server": "7.0.0-alpha.42",
"@storybook/preview-web": "7.0.0-alpha.42",
"@storybook/vue3": "7.0.0-alpha.42",
"@vitejs/plugin-vue": "^3.0.0",
"magic-string": "^0.26.1",
"vite": "^3.1.3",
@ -82,5 +82,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/vue3-webpack5",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -50,10 +50,10 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/builder-webpack5": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/preset-vue3-webpack": "7.0.0-alpha.41",
"@storybook/vue3": "7.0.0-alpha.41",
"@storybook/builder-webpack5": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/preset-vue3-webpack": "7.0.0-alpha.42",
"@storybook/vue3": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"react": "16.14.0",
"react-dom": "16.14.0"
@ -82,5 +82,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/web-components-vite",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for web-components and Vite: Develop Web Components in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -51,15 +51,15 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/builder-vite": "7.0.0-alpha.41",
"@storybook/channel-postmessage": "7.0.0-alpha.41",
"@storybook/channel-websocket": "7.0.0-alpha.41",
"@storybook/client-api": "7.0.0-alpha.41",
"@storybook/core-server": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/preview-web": "7.0.0-alpha.41",
"@storybook/web-components": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/builder-vite": "7.0.0-alpha.42",
"@storybook/channel-postmessage": "7.0.0-alpha.42",
"@storybook/channel-websocket": "7.0.0-alpha.42",
"@storybook/client-api": "7.0.0-alpha.42",
"@storybook/core-server": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/preview-web": "7.0.0-alpha.42",
"@storybook/web-components": "7.0.0-alpha.42",
"@vitejs/plugin-vue": "^3.0.3",
"magic-string": "^0.26.1",
"vite": "3"
@ -82,5 +82,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/web-components-webpack5",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.",
"keywords": [
"lit-html",
@ -53,10 +53,10 @@
},
"dependencies": {
"@babel/preset-env": "^7.12.11",
"@storybook/builder-webpack5": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/preset-web-components-webpack": "7.0.0-alpha.41",
"@storybook/web-components": "7.0.0-alpha.41",
"@storybook/builder-webpack5": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/preset-web-components-webpack": "7.0.0-alpha.42",
"@storybook/web-components": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"react": "16.14.0",
"react-dom": "16.14.0"
@ -81,5 +81,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -2,5 +2,5 @@
"npmClient": "yarn",
"useWorkspaces": true,
"registry": "https://registry.npmjs.org",
"version": "7.0.0-alpha.41"
"version": "7.0.0-alpha.42"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addons",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook addons store",
"keywords": [
"storybook"
@ -42,13 +42,13 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/api": "7.0.0-alpha.41",
"@storybook/channels": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/channels": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/router": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/router": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42",
"global": "^4.4.0"
},
"peerDependencies": {
@ -63,5 +63,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/api",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Core Storybook API & Context",
"keywords": [
"storybook"
@ -45,12 +45,12 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/channels": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/channels": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/router": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/router": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42",
"dequal": "^2.0.2",
"global": "^4.4.0",
"lodash": "^4.17.21",
@ -63,7 +63,7 @@
},
"devDependencies": {
"@jest/globals": "^26.6.2",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.42",
"@types/lodash": "^4.14.167",
"@types/qs": "^6",
"flush-promises": "^1.0.2",
@ -83,5 +83,5 @@
"./src/shortcut.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1 +1 @@
export const version = '7.0.0-alpha.41';
export const version = '7.0.0-alpha.42';

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/blocks",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook Doc Blocks",
"keywords": [
"storybook"
@ -41,16 +41,16 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/api": "7.0.0-alpha.41",
"@storybook/channels": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/channels": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/docs-tools": "7.0.0-alpha.41",
"@storybook/preview-web": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/docs-tools": "7.0.0-alpha.42",
"@storybook/preview-web": "7.0.0-alpha.42",
"@storybook/store": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42",
"@types/lodash": "^4.14.167",
"color-convert": "^2.0.1",
"dequal": "^2.0.2",
@ -64,8 +64,8 @@
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@storybook/addon-actions": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/addon-actions": "7.0.0-alpha.42",
"@storybook/addons": "7.0.0-alpha.42",
"@types/color-convert": "^2.0.0"
},
"peerDependencies": {
@ -79,5 +79,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/builder-manager",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook manager builder",
"keywords": [
"storybook"
@ -42,9 +42,9 @@
},
"dependencies": {
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/ui": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/ui": "7.0.0-alpha.42",
"@types/ejs": "^3.1.1",
"@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.10",
"browser-assert": "^1.2.1",
@ -69,5 +69,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/builder-vite",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "A plugin to run and build Storybooks with Vite",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/lib/builder-vite/#readme",
"repository": {
@ -19,13 +19,13 @@
},
"dependencies": {
"@joshwooding/vite-plugin-react-docgen-typescript": "0.0.5",
"@storybook/client-api": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/mdx2-csf": "0.1.0-next.0",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/preview-web": "7.0.0-alpha.41",
"@storybook/source-loader": "7.0.0-alpha.41",
"@storybook/client-api": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/mdx2-csf": "next",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/preview-web": "7.0.0-alpha.42",
"@storybook/source-loader": "7.0.0-alpha.42",
"@vitejs/plugin-react": "^2.0.0",
"browser-assert": "^1.2.1",
"es-module-lexer": "^0.9.3",
@ -44,5 +44,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/builder-webpack5",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -53,22 +53,22 @@
},
"dependencies": {
"@babel/core": "^7.12.10",
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/api": "7.0.0-alpha.41",
"@storybook/channel-postmessage": "7.0.0-alpha.41",
"@storybook/channel-websocket": "7.0.0-alpha.41",
"@storybook/channels": "7.0.0-alpha.41",
"@storybook/client-api": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/components": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/core-webpack": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/preview-web": "7.0.0-alpha.41",
"@storybook/router": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/api": "7.0.0-alpha.42",
"@storybook/channel-postmessage": "7.0.0-alpha.42",
"@storybook/channel-websocket": "7.0.0-alpha.42",
"@storybook/channels": "7.0.0-alpha.42",
"@storybook/client-api": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/components": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/core-webpack": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/preview-web": "7.0.0-alpha.42",
"@storybook/router": "7.0.0-alpha.42",
"@storybook/store": "7.0.0-alpha.42",
"@storybook/theming": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"@types/semver": "^7.3.4",
"babel-loader": "^8.2.5",
@ -120,5 +120,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/channel-postmessage",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "",
"keywords": [
"storybook"
@ -42,9 +42,9 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/channels": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/channels": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"global": "^4.4.0",
"qs": "^6.10.0",
"telejson": "^6.0.8"
@ -60,5 +60,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/channel-websocket",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "",
"keywords": [
"storybook"
@ -34,8 +34,8 @@
"prep": "node ../../../scripts/prepare.js"
},
"dependencies": {
"@storybook/channels": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/channels": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"global": "^4.4.0",
"telejson": "^6.0.8"
},
@ -45,5 +45,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/channels",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "",
"keywords": [
"storybook"
@ -52,5 +52,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "sb",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook CLI",
"keywords": [
"storybook"
@ -24,7 +24,7 @@
"prep": "node ../../../scripts/prepare.js"
},
"dependencies": {
"@storybook/cli": "7.0.0-alpha.41"
"@storybook/cli": "7.0.0-alpha.42"
},
"devDependencies": {
"typescript": "~4.6.3"
@ -32,5 +32,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "storybook",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook CLI",
"keywords": [
"storybook"
@ -27,7 +27,7 @@
"prep": "node ../../../scripts/prepare.js"
},
"dependencies": {
"@storybook/cli": "7.0.0-alpha.41"
"@storybook/cli": "7.0.0-alpha.42"
},
"devDependencies": {
"typescript": "~4.6.3"
@ -35,5 +35,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/cli",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook's CLI - easiest method of adding storybook to your projects",
"keywords": [
"cli",
@ -43,12 +43,12 @@
"dependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@storybook/codemod": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/core-server": "7.0.0-alpha.41",
"@storybook/csf-tools": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/telemetry": "7.0.0-alpha.41",
"@storybook/codemod": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/core-server": "7.0.0-alpha.42",
"@storybook/csf-tools": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/telemetry": "7.0.0-alpha.42",
"@types/semver": "^7.3.4",
"boxen": "^5.1.2",
"chalk": "^4.1.0",
@ -76,7 +76,7 @@
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@storybook/client-api": "7.0.0-alpha.41",
"@storybook/client-api": "7.0.0-alpha.42",
"@types/cross-spawn": "^6.0.2",
"@types/degit": "^2.8.3",
"@types/prompts": "^2.0.9",
@ -98,5 +98,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,11 +1,11 @@
import { sync as readUpSync } from 'read-pkg-up';
import { logger } from '@storybook/node-logger';
import { buildStaticStandalone } from '@storybook/core-server';
import { buildStaticStandalone, withTelemetry } from '@storybook/core-server';
import { cache } from '@storybook/core-common';
export const build = async (cliOptions: any) => {
try {
await buildStaticStandalone({
const options = {
...cliOptions,
configDir: cliOptions.configDir || './.storybook',
outputDir: cliOptions.outputDir || './storybook-static',
@ -14,9 +14,10 @@ export const build = async (cliOptions: any) => {
configType: 'PRODUCTION',
cache,
packageJson: readUpSync({ cwd: __dirname }).packageJson,
});
} catch (e) {
logger.error(e);
};
await withTelemetry('build', { presetOptions: options }, () => buildStaticStandalone(options));
} catch (err) {
logger.error(err);
process.exit(1);
}
};

View File

@ -1,14 +1,14 @@
import { dedent } from 'ts-dedent';
import { sync as readUpSync } from 'read-pkg-up';
import { logger, instance as npmLog } from '@storybook/node-logger';
import { buildDevStandalone } from '@storybook/core-server';
import { buildDevStandalone, withTelemetry } from '@storybook/core-server';
import { cache } from '@storybook/core-common';
export const dev = async (cliOptions: any) => {
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
try {
await buildDevStandalone({
const options = {
...cliOptions,
configDir: cliOptions.configDir || './.storybook',
configType: 'DEVELOPMENT',
@ -16,7 +16,8 @@ export const dev = async (cliOptions: any) => {
docsMode: !!cliOptions.docs,
cache,
packageJson: readUpSync({ cwd: __dirname }).packageJson,
});
};
await withTelemetry('dev', { presetOptions: options }, () => buildDevStandalone(options));
} catch (error) {
// this is a weird bugfix, somehow 'node-pre-gyp' is polluting the npmLog header
npmLog.heading = '';

View File

@ -2,6 +2,8 @@ import type { Package } from 'update-notifier';
import chalk from 'chalk';
import prompts from 'prompts';
import { telemetry } from '@storybook/telemetry';
import { withTelemetry } from '@storybook/core-server';
import { installableProjectTypes, ProjectType } from './project_types';
import { detect, isStorybookInstalled, detectLanguage, detectBuilder } from './detect';
import { commandLog, codeLog, paddedLog } from './helpers';
@ -256,7 +258,7 @@ const projectTypeInquirer = async (
return Promise.resolve();
};
export async function initiate(options: CommandOptions, pkg: Package): Promise<void> {
async function doInitiate(options: CommandOptions, pkg: Package): Promise<void> {
const { useNpm, packageManager: pkgMgr } = options;
if (useNpm) {
useNpmWarning();
@ -266,7 +268,7 @@ export async function initiate(options: CommandOptions, pkg: Package): Promise<v
logger.log(chalk.inverse(`\n ${welcomeMessage} \n`));
if (!options.disableTelemetry) {
telemetry('init');
telemetry('init', {}, { stripMetadata: true });
}
// Update notify code.
@ -339,3 +341,7 @@ export async function initiate(options: CommandOptions, pkg: Package): Promise<v
// Add a new line for the clear visibility.
logger.log();
}
export async function initiate(options: CommandOptions, pkg: Package): Promise<void> {
await withTelemetry('init', { cliOptions: options }, () => doInitiate(options, pkg));
}

View File

@ -2,6 +2,8 @@ import { sync as spawnSync } from 'cross-spawn';
import { telemetry } from '@storybook/telemetry';
import semver from 'semver';
import { logger } from '@storybook/node-logger';
import { withTelemetry } from '@storybook/core-server';
import {
getPackageDetails,
JsPackageManagerFactory,
@ -148,7 +150,7 @@ export interface UpgradeOptions {
disableTelemetry: boolean;
}
export const upgrade = async ({
export const doUpgrade = async ({
prerelease,
skipCheck,
useNpm,
@ -188,3 +190,7 @@ export const upgrade = async ({
await automigrate({ dryRun, yes, useNpm, force: pkgMgr });
}
};
export async function upgrade(options: UpgradeOptions): Promise<void> {
await withTelemetry('upgrade', { cliOptions: options }, () => doUpgrade(options));
}

View File

@ -1,85 +1,85 @@
// auto generated file, do not edit
export default {
'@storybook/addon-a11y': '7.0.0-alpha.41',
'@storybook/addon-actions': '7.0.0-alpha.41',
'@storybook/addon-backgrounds': '7.0.0-alpha.41',
'@storybook/addon-controls': '7.0.0-alpha.41',
'@storybook/addon-docs': '7.0.0-alpha.41',
'@storybook/addon-essentials': '7.0.0-alpha.41',
'@storybook/addon-highlight': '7.0.0-alpha.41',
'@storybook/addon-interactions': '7.0.0-alpha.41',
'@storybook/addon-jest': '7.0.0-alpha.41',
'@storybook/addon-links': '7.0.0-alpha.41',
'@storybook/addon-measure': '7.0.0-alpha.41',
'@storybook/addon-outline': '7.0.0-alpha.41',
'@storybook/addon-storyshots': '7.0.0-alpha.41',
'@storybook/addon-storyshots-puppeteer': '7.0.0-alpha.41',
'@storybook/addon-storysource': '7.0.0-alpha.41',
'@storybook/addon-toolbars': '7.0.0-alpha.41',
'@storybook/addon-viewport': '7.0.0-alpha.41',
'@storybook/addons': '7.0.0-alpha.41',
'@storybook/angular': '7.0.0-alpha.41',
'@storybook/api': '7.0.0-alpha.41',
'@storybook/blocks': '7.0.0-alpha.41',
'@storybook/builder-manager': '7.0.0-alpha.41',
'@storybook/builder-vite': '7.0.0-alpha.41',
'@storybook/builder-webpack5': '7.0.0-alpha.41',
'@storybook/channel-postmessage': '7.0.0-alpha.41',
'@storybook/channel-websocket': '7.0.0-alpha.41',
'@storybook/channels': '7.0.0-alpha.41',
'@storybook/cli': '7.0.0-alpha.41',
'@storybook/client-api': '7.0.0-alpha.41',
'@storybook/client-logger': '7.0.0-alpha.41',
'@storybook/codemod': '7.0.0-alpha.41',
'@storybook/components': '7.0.0-alpha.41',
'@storybook/core-client': '7.0.0-alpha.41',
'@storybook/core-common': '7.0.0-alpha.41',
'@storybook/core-events': '7.0.0-alpha.41',
'@storybook/core-server': '7.0.0-alpha.41',
'@storybook/core-webpack': '7.0.0-alpha.41',
'@storybook/csf-tools': '7.0.0-alpha.41',
'@storybook/docs-tools': '7.0.0-alpha.41',
'@storybook/ember': '7.0.0-alpha.41',
'@storybook/html': '7.0.0-alpha.41',
'@storybook/html-webpack5': '7.0.0-alpha.41',
'@storybook/instrumenter': '7.0.0-alpha.41',
'@storybook/nextjs': '7.0.0-alpha.41',
'@storybook/node-logger': '7.0.0-alpha.41',
'@storybook/postinstall': '7.0.0-alpha.41',
'@storybook/preact': '7.0.0-alpha.41',
'@storybook/preact-webpack5': '7.0.0-alpha.41',
'@storybook/preset-html-webpack': '7.0.0-alpha.41',
'@storybook/preset-preact-webpack': '7.0.0-alpha.41',
'@storybook/preset-react-webpack': '7.0.0-alpha.41',
'@storybook/preset-server-webpack': '7.0.0-alpha.41',
'@storybook/preset-svelte-webpack': '7.0.0-alpha.41',
'@storybook/preset-vue-webpack': '7.0.0-alpha.41',
'@storybook/preset-vue3-webpack': '7.0.0-alpha.41',
'@storybook/preset-web-components-webpack': '7.0.0-alpha.41',
'@storybook/preview-web': '7.0.0-alpha.41',
'@storybook/react': '7.0.0-alpha.41',
'@storybook/react-vite': '7.0.0-alpha.41',
'@storybook/react-webpack5': '7.0.0-alpha.41',
'@storybook/router': '7.0.0-alpha.41',
'@storybook/server': '7.0.0-alpha.41',
'@storybook/server-webpack5': '7.0.0-alpha.41',
'@storybook/source-loader': '7.0.0-alpha.41',
'@storybook/store': '7.0.0-alpha.41',
'@storybook/svelte': '7.0.0-alpha.41',
'@storybook/svelte-vite': '7.0.0-alpha.41',
'@storybook/svelte-webpack5': '7.0.0-alpha.41',
'@storybook/telemetry': '7.0.0-alpha.41',
'@storybook/theming': '7.0.0-alpha.41',
'@storybook/ui': '7.0.0-alpha.41',
'@storybook/vue': '7.0.0-alpha.41',
'@storybook/vue-vite': '7.0.0-alpha.41',
'@storybook/vue-webpack5': '7.0.0-alpha.41',
'@storybook/vue3': '7.0.0-alpha.41',
'@storybook/vue3-vite': '7.0.0-alpha.41',
'@storybook/vue3-webpack5': '7.0.0-alpha.41',
'@storybook/web-components': '7.0.0-alpha.41',
'@storybook/web-components-webpack5': '7.0.0-alpha.41',
'@storybook/web-components-vite': '7.0.0-alpha.41',
sb: '7.0.0-alpha.41',
storybook: '7.0.0-alpha.41',
'@storybook/addon-a11y': '7.0.0-alpha.42',
'@storybook/addon-actions': '7.0.0-alpha.42',
'@storybook/addon-backgrounds': '7.0.0-alpha.42',
'@storybook/addon-controls': '7.0.0-alpha.42',
'@storybook/addon-docs': '7.0.0-alpha.42',
'@storybook/addon-essentials': '7.0.0-alpha.42',
'@storybook/addon-highlight': '7.0.0-alpha.42',
'@storybook/addon-interactions': '7.0.0-alpha.42',
'@storybook/addon-jest': '7.0.0-alpha.42',
'@storybook/addon-links': '7.0.0-alpha.42',
'@storybook/addon-measure': '7.0.0-alpha.42',
'@storybook/addon-outline': '7.0.0-alpha.42',
'@storybook/addon-storyshots': '7.0.0-alpha.42',
'@storybook/addon-storyshots-puppeteer': '7.0.0-alpha.42',
'@storybook/addon-storysource': '7.0.0-alpha.42',
'@storybook/addon-toolbars': '7.0.0-alpha.42',
'@storybook/addon-viewport': '7.0.0-alpha.42',
'@storybook/addons': '7.0.0-alpha.42',
'@storybook/angular': '7.0.0-alpha.42',
'@storybook/api': '7.0.0-alpha.42',
'@storybook/blocks': '7.0.0-alpha.42',
'@storybook/builder-manager': '7.0.0-alpha.42',
'@storybook/builder-vite': '7.0.0-alpha.42',
'@storybook/builder-webpack5': '7.0.0-alpha.42',
'@storybook/channel-postmessage': '7.0.0-alpha.42',
'@storybook/channel-websocket': '7.0.0-alpha.42',
'@storybook/channels': '7.0.0-alpha.42',
'@storybook/cli': '7.0.0-alpha.42',
'@storybook/client-api': '7.0.0-alpha.42',
'@storybook/client-logger': '7.0.0-alpha.42',
'@storybook/codemod': '7.0.0-alpha.42',
'@storybook/components': '7.0.0-alpha.42',
'@storybook/core-client': '7.0.0-alpha.42',
'@storybook/core-common': '7.0.0-alpha.42',
'@storybook/core-events': '7.0.0-alpha.42',
'@storybook/core-server': '7.0.0-alpha.42',
'@storybook/core-webpack': '7.0.0-alpha.42',
'@storybook/csf-tools': '7.0.0-alpha.42',
'@storybook/docs-tools': '7.0.0-alpha.42',
'@storybook/ember': '7.0.0-alpha.42',
'@storybook/html': '7.0.0-alpha.42',
'@storybook/html-webpack5': '7.0.0-alpha.42',
'@storybook/instrumenter': '7.0.0-alpha.42',
'@storybook/nextjs': '7.0.0-alpha.42',
'@storybook/node-logger': '7.0.0-alpha.42',
'@storybook/postinstall': '7.0.0-alpha.42',
'@storybook/preact': '7.0.0-alpha.42',
'@storybook/preact-webpack5': '7.0.0-alpha.42',
'@storybook/preset-html-webpack': '7.0.0-alpha.42',
'@storybook/preset-preact-webpack': '7.0.0-alpha.42',
'@storybook/preset-react-webpack': '7.0.0-alpha.42',
'@storybook/preset-server-webpack': '7.0.0-alpha.42',
'@storybook/preset-svelte-webpack': '7.0.0-alpha.42',
'@storybook/preset-vue-webpack': '7.0.0-alpha.42',
'@storybook/preset-vue3-webpack': '7.0.0-alpha.42',
'@storybook/preset-web-components-webpack': '7.0.0-alpha.42',
'@storybook/preview-web': '7.0.0-alpha.42',
'@storybook/react': '7.0.0-alpha.42',
'@storybook/react-vite': '7.0.0-alpha.42',
'@storybook/react-webpack5': '7.0.0-alpha.42',
'@storybook/router': '7.0.0-alpha.42',
'@storybook/server': '7.0.0-alpha.42',
'@storybook/server-webpack5': '7.0.0-alpha.42',
'@storybook/source-loader': '7.0.0-alpha.42',
'@storybook/store': '7.0.0-alpha.42',
'@storybook/svelte': '7.0.0-alpha.42',
'@storybook/svelte-vite': '7.0.0-alpha.42',
'@storybook/svelte-webpack5': '7.0.0-alpha.42',
'@storybook/telemetry': '7.0.0-alpha.42',
'@storybook/theming': '7.0.0-alpha.42',
'@storybook/ui': '7.0.0-alpha.42',
'@storybook/vue': '7.0.0-alpha.42',
'@storybook/vue-vite': '7.0.0-alpha.42',
'@storybook/vue-webpack5': '7.0.0-alpha.42',
'@storybook/vue3': '7.0.0-alpha.42',
'@storybook/vue3-vite': '7.0.0-alpha.42',
'@storybook/vue3-webpack5': '7.0.0-alpha.42',
'@storybook/web-components': '7.0.0-alpha.42',
'@storybook/web-components-webpack5': '7.0.0-alpha.42',
'@storybook/web-components-vite': '7.0.0-alpha.42',
sb: '7.0.0-alpha.42',
storybook: '7.0.0-alpha.42',
};

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/client-api",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook Client API",
"keywords": [
"storybook"
@ -42,10 +42,10 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.42",
"@types/qs": "^6.9.5",
"@types/webpack-env": "^1.16.4",
"global": "^4.4.0",
@ -55,7 +55,7 @@
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.42",
"typescript": "~4.6.3"
},
"peerDependencies": {
@ -70,5 +70,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/client-logger",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "",
"keywords": [
"storybook"
@ -55,5 +55,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/codemod",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "A collection of codemod scripts written with JSCodeshift",
"keywords": [
"storybook"
@ -39,8 +39,8 @@
"dependencies": {
"@babel/types": "^7.12.11",
"@storybook/csf": "next",
"@storybook/csf-tools": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/csf-tools": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"cross-spawn": "^7.0.3",
"globby": "^11.0.2",
"jscodeshift": "^0.13.1",
@ -63,5 +63,5 @@
"./src/index.js"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/components",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Core Storybook Components",
"keywords": [
"storybook"
@ -51,9 +51,9 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/theming": "7.0.0-alpha.41",
"@storybook/theming": "7.0.0-alpha.42",
"memoizerific": "^1.11.3",
"util-deprecate": "^1.0.2"
},
@ -86,5 +86,5 @@
],
"platform": "neutral"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/core-client",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -35,16 +35,16 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/channel-postmessage": "7.0.0-alpha.41",
"@storybook/channel-websocket": "7.0.0-alpha.41",
"@storybook/client-api": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/channel-postmessage": "7.0.0-alpha.42",
"@storybook/channel-websocket": "7.0.0-alpha.42",
"@storybook/client-api": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/preview-web": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/ui": "7.0.0-alpha.41",
"@storybook/preview-web": "7.0.0-alpha.42",
"@storybook/store": "7.0.0-alpha.42",
"@storybook/ui": "7.0.0-alpha.42",
"global": "^4.4.0",
"regenerator-runtime": "^0.13.7",
"util-deprecate": "^1.0.2"
@ -65,5 +65,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/core-common",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -48,7 +48,7 @@
"dependencies": {
"@babel/core": "^7.12.10",
"@storybook/csf": "next",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.42",
"@types/babel__core": "^7.0.0",
"@types/express": "^4.7.0",
"@types/node": "^16.0.0",
@ -97,5 +97,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/core-events",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Event names used in storybook core",
"keywords": [
"storybook"
@ -52,5 +52,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/core-server",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -35,16 +35,16 @@
"dependencies": {
"@aw-web-design/x-default-browser": "1.4.88",
"@discoveryjs/json-ext": "^0.5.3",
"@storybook/builder-manager": "7.0.0-alpha.41",
"@storybook/core-client": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/builder-manager": "7.0.0-alpha.42",
"@storybook/core-client": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/csf-tools": "7.0.0-alpha.41",
"@storybook/csf-tools": "7.0.0-alpha.42",
"@storybook/docs-mdx": "0.0.1-canary.12433cf.0",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/telemetry": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/store": "7.0.0-alpha.42",
"@storybook/telemetry": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"@types/node-fetch": "^2.5.7",
"@types/pretty-hrtime": "^1.0.0",
@ -76,7 +76,7 @@
"ws": "^8.2.3"
},
"devDependencies": {
"@storybook/builder-webpack5": "7.0.0-alpha.41",
"@storybook/builder-webpack5": "7.0.0-alpha.42",
"@types/compression": "^1.7.0",
"@types/ip": "^1.1.0",
"@types/serve-favicon": "^2.5.2",
@ -102,5 +102,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -39,43 +39,33 @@ export async function storybookDevServer(options: Options) {
// try get index generator, if failed, send telemetry without storyCount, then rethrow the error
let initializedStoryIndexGenerator: Promise<StoryIndexGenerator> = Promise.resolve(undefined);
if (features?.buildStoriesJson || features?.storyStoreV7) {
try {
const workingDir = process.cwd();
const directories = {
configDir: options.configDir,
workingDir,
};
const normalizedStories = normalizeStories(
await options.presets.apply('stories'),
directories
);
const storyIndexers = await options.presets.apply('storyIndexers', []);
const docsOptions = await options.presets.apply<DocsOptions>('docs', {});
const workingDir = process.cwd();
const directories = {
configDir: options.configDir,
workingDir,
};
const normalizedStories = normalizeStories(await options.presets.apply('stories'), directories);
const storyIndexers = await options.presets.apply('storyIndexers', []);
const docsOptions = await options.presets.apply<DocsOptions>('docs', {});
const generator = new StoryIndexGenerator(normalizedStories, {
...directories,
storyIndexers,
docs: docsOptions,
workingDir,
storiesV2Compatibility: !features?.breakingChangesV7 && !features?.storyStoreV7,
storyStoreV7: features?.storyStoreV7,
});
const generator = new StoryIndexGenerator(normalizedStories, {
...directories,
storyIndexers,
docs: docsOptions,
workingDir,
storiesV2Compatibility: !features?.breakingChangesV7 && !features?.storyStoreV7,
storyStoreV7: features?.storyStoreV7,
});
initializedStoryIndexGenerator = generator.initialize().then(() => generator);
initializedStoryIndexGenerator = generator.initialize().then(() => generator);
useStoriesJson({
router,
initializedStoryIndexGenerator,
normalizedStories,
serverChannel,
workingDir,
});
} catch (err) {
if (!core?.disableTelemetry) {
telemetry('start');
}
throw err;
}
useStoriesJson({
router,
initializedStoryIndexGenerator,
normalizedStories,
serverChannel,
workingDir,
});
}
if (!core?.disableTelemetry) {
@ -89,7 +79,7 @@ export async function storybookDevServer(options: Options) {
},
}
: undefined;
telemetry('start', payload, { configDir: options.configDir });
telemetry('dev', payload, { configDir: options.configDir });
});
}

View File

@ -9,3 +9,4 @@ export {
export * from './build-static';
export * from './build-dev';
export * from './withTelemetry';

View File

@ -0,0 +1,215 @@
/// <reference types="@types/jest" />;
import prompts from 'prompts';
import { loadAllPresets, cache } from '@storybook/core-common';
import { telemetry } from '@storybook/telemetry';
import { mocked } from 'ts-jest/utils';
import { withTelemetry } from './withTelemetry';
jest.mock('prompts');
jest.mock('@storybook/core-common');
jest.mock('@storybook/telemetry');
it('works in happy path', async () => {
const run = jest.fn();
await withTelemetry('dev', {}, run);
expect(telemetry).toHaveBeenCalledTimes(1);
expect(telemetry).toHaveBeenCalledWith('boot', { eventType: 'dev' }, { stripMetadata: true });
});
describe('when command fails', () => {
const error = new Error('An Error!');
const run = jest.fn(async () => {
throw error;
});
it('sends boot message', async () => {
await expect(async () => withTelemetry('dev', {}, run)).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledWith('boot', { eventType: 'dev' }, { stripMetadata: true });
});
it('sends error message when no options are passed', async () => {
await expect(async () => withTelemetry('dev', {}, run)).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledTimes(2);
expect(telemetry).toHaveBeenCalledWith(
'error',
{ eventType: 'dev', error },
expect.objectContaining({})
);
});
it('does not send error message when cli opt out is passed', async () => {
await expect(async () =>
withTelemetry('dev', { cliOptions: { disableTelemetry: true } }, run)
).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledTimes(1);
expect(telemetry).not.toHaveBeenCalledWith(
'error',
{ eventType: 'dev', error },
expect.objectContaining({})
);
});
it('does not send error message when crash reports are disabled', async () => {
mocked(loadAllPresets).mockResolvedValueOnce({
apply: async () => ({ enableCrashReports: false } as any),
});
await expect(async () =>
withTelemetry('dev', { presetOptions: {} as any }, run)
).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledTimes(1);
expect(telemetry).not.toHaveBeenCalledWith(
'error',
{ eventType: 'dev', error },
expect.objectContaining({})
);
});
it('does send error message when crash reports are enabled', async () => {
mocked(loadAllPresets).mockResolvedValueOnce({
apply: async () => ({ enableCrashReports: true } as any),
});
await expect(async () =>
withTelemetry('dev', { presetOptions: {} as any }, run)
).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledTimes(2);
expect(telemetry).toHaveBeenCalledWith(
'error',
{ eventType: 'dev', error },
expect.objectContaining({})
);
});
it('does not send error message when telemetry is disabled', async () => {
mocked(loadAllPresets).mockResolvedValueOnce({
apply: async () => ({ disableTelemetry: true } as any),
});
await expect(async () =>
withTelemetry('dev', { presetOptions: {} as any }, run)
).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledTimes(1);
expect(telemetry).not.toHaveBeenCalledWith(
'error',
expect.objectContaining({}),
expect.objectContaining({})
);
});
it('does send error messages when telemetry is disabled, but crash reports are enabled', async () => {
mocked(loadAllPresets).mockResolvedValueOnce({
apply: async () => ({ disableTelemetry: true, enableCrashReports: true } as any),
});
await expect(async () =>
withTelemetry('dev', { presetOptions: {} as any }, run)
).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledTimes(2);
expect(telemetry).toHaveBeenCalledWith(
'error',
{ eventType: 'dev', error },
expect.objectContaining({})
);
});
it('does not send error messages when disabled crash reports are cached', async () => {
mocked(loadAllPresets).mockResolvedValueOnce({
apply: async () => ({} as any),
});
mocked(cache.get).mockResolvedValueOnce(false);
await expect(async () =>
withTelemetry('dev', { presetOptions: {} as any }, run)
).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledTimes(1);
expect(telemetry).not.toHaveBeenCalledWith(
'error',
{ eventType: 'dev', error },
expect.objectContaining({})
);
});
it('does send error messages when enabled crash reports are cached', async () => {
mocked(loadAllPresets).mockResolvedValueOnce({
apply: async () => ({} as any),
});
mocked(cache.get).mockResolvedValueOnce(true);
await expect(async () =>
withTelemetry('dev', { presetOptions: {} as any }, run)
).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledTimes(2);
expect(telemetry).toHaveBeenCalledWith(
'error',
{ eventType: 'dev', error },
expect.objectContaining({})
);
});
it('does not send error messages when disabled crash reports are prompted', async () => {
mocked(loadAllPresets).mockResolvedValueOnce({
apply: async () => ({} as any),
});
mocked(cache.get).mockResolvedValueOnce(undefined);
mocked(prompts).mockResolvedValueOnce({ enableCrashReports: false });
await expect(async () =>
withTelemetry('dev', { presetOptions: {} as any }, run)
).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledTimes(1);
expect(telemetry).not.toHaveBeenCalledWith(
'error',
{ eventType: 'dev', error },
expect.objectContaining({})
);
});
it('does send error messages when enabled crash reports are prompted', async () => {
mocked(loadAllPresets).mockResolvedValueOnce({
apply: async () => ({} as any),
});
mocked(cache.get).mockResolvedValueOnce(undefined);
mocked(prompts).mockResolvedValueOnce({ enableCrashReports: true });
await expect(async () =>
withTelemetry('dev', { presetOptions: {} as any }, run)
).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledTimes(2);
expect(telemetry).toHaveBeenCalledWith(
'error',
{ eventType: 'dev', error },
expect.objectContaining({})
);
});
// if main.js has errors, we have no way to tell if they've disabled telemetry
it('does not send error messages when presets fail to evaluate', async () => {
mocked(loadAllPresets).mockRejectedValueOnce(error);
await expect(async () =>
withTelemetry('dev', { presetOptions: {} as any }, run)
).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledTimes(1);
expect(telemetry).not.toHaveBeenCalledWith(
'error',
{ eventType: 'dev', error },
expect.objectContaining({})
);
});
});

View File

@ -0,0 +1,85 @@
import prompts from 'prompts';
import type { CLIOptions, CoreConfig } from '@storybook/core-common';
import { loadAllPresets, cache } from '@storybook/core-common';
import { telemetry } from '@storybook/telemetry';
import type { EventType } from '@storybook/telemetry';
type TelemetryOptions = {
cliOptions?: CLIOptions;
presetOptions?: Parameters<typeof loadAllPresets>[0];
};
const promptCrashReports = async () => {
if (process.env.CI && process.env.NODE_ENV !== 'test') return undefined;
const { enableCrashReports } = await prompts({
type: 'confirm',
name: 'enableCrashReports',
message: `Would you like to send crash reports to Storybook?`,
initial: true,
});
await cache.set('enableCrashReports', enableCrashReports);
return enableCrashReports;
};
async function shouldSendError({ cliOptions, presetOptions }: TelemetryOptions) {
if (cliOptions?.disableTelemetry) return false;
// If we are running init or similar, we just have to go with true here
if (!presetOptions) return true;
// should we load the preset?
const presets = await loadAllPresets({
corePresets: [require.resolve('./presets/common-preset')],
overridePresets: [],
...presetOptions,
});
// If the user has chosen to enable/disable crash reports in main.js
// or disabled telemetry, we can return that
const core = await presets.apply<CoreConfig>('core');
if (core?.enableCrashReports !== undefined) return core.enableCrashReports;
if (core?.disableTelemetry) return false;
// Deal with typo, remove in future version (7.1?)
const valueFromCache =
(await cache.get('enableCrashReports')) ?? (await cache.get('enableCrashreports'));
if (valueFromCache !== undefined) return valueFromCache;
const valueFromPrompt = await promptCrashReports();
if (valueFromPrompt !== undefined) return valueFromPrompt;
return true;
}
export async function withTelemetry(
eventType: EventType,
options: TelemetryOptions,
run: () => Promise<void>
) {
telemetry('boot', { eventType }, { stripMetadata: true });
try {
await run();
} catch (error) {
try {
if (await shouldSendError(options)) {
await telemetry(
'error',
{ eventType, error },
{
immediate: true,
configDir: options.cliOptions?.configDir || options.presetOptions?.configDir,
enableCrashReports: true,
}
);
}
} catch (err) {
// if this throws an error, we just move on
}
throw error;
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/core-webpack",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -42,8 +42,8 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"ts-dedent": "^2.0.0"
},
@ -60,5 +60,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/csf-tools",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "",
"keywords": [
"storybook"
@ -63,5 +63,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/docs-tools",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Shared utility functions for frameworks to implement docs",
"keywords": [
"storybook"
@ -43,9 +43,9 @@
},
"dependencies": {
"@babel/core": "^7.12.10",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.42",
"doctrine": "^3.0.0",
"lodash": "^4.17.21"
},
@ -62,5 +62,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/instrumenter",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "",
"keywords": [
"storybook"
@ -42,9 +42,9 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"core-js": "^3.8.2",
"global": "^4.4.0"
},
@ -59,5 +59,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/node-logger",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "",
"keywords": [
"storybook"
@ -59,5 +59,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/postinstall",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook addons postinstall utilities",
"keywords": [
"api",
@ -56,5 +56,5 @@
"./src/index.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preview-web",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "",
"keywords": [
"storybook"
@ -34,12 +34,12 @@
"prep": "node ../../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/channels": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/channels": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.42",
"ansi-to-html": "^0.6.11",
"global": "^4.4.0",
"lodash": "^4.17.21",
@ -49,7 +49,7 @@
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@storybook/channel-postmessage": "7.0.0-alpha.41",
"@storybook/channel-postmessage": "7.0.0-alpha.42",
"react": "16.14.0",
"ts-jest": "^28.0.8",
"typescript": "~4.6.3"
@ -57,5 +57,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/router",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Core Storybook Router",
"keywords": [
"storybook"
@ -47,7 +47,7 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.42",
"memoizerific": "^1.11.3",
"qs": "^6.10.0"
},
@ -74,5 +74,5 @@
"./src/utils.ts"
]
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/source-loader",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Source loader",
"keywords": [
"lib",
@ -65,5 +65,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/store",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "",
"keywords": [
"storybook"
@ -42,9 +42,9 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/core-events": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/core-events": "7.0.0-alpha.42",
"@storybook/csf": "next",
"dequal": "^2.0.2",
"global": "^4.4.0",
@ -71,5 +71,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/telemetry",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Telemetry logging for crash reports and usage statistics",
"keywords": [
"storybook"
@ -42,8 +42,8 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/core-common": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/core-common": "7.0.0-alpha.42",
"chalk": "^4.1.0",
"detect-package-manager": "^2.0.1",
"fetch-retry": "^5.0.2",
@ -64,5 +64,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -7,6 +7,8 @@ import { sanitizeError } from './sanitize';
export * from './storybook-metadata';
export * from './types';
export const telemetry = async (
eventType: EventType,
payload: Payload = {},
@ -18,23 +20,22 @@ export const telemetry = async (
payload,
};
try {
telemetryData.metadata = await getStorybookMetadata(options?.configDir);
} catch (error) {
if (!telemetryData.payload.error) telemetryData.payload.error = error;
if (!options?.stripMetadata)
telemetryData.metadata = await getStorybookMetadata(options?.configDir);
} catch (error: any) {
telemetryData.payload.metadataErrorMessage = sanitizeError(error).message;
if (options?.enableCrashReports) telemetryData.payload.metadataError = sanitizeError(error);
} finally {
const { error } = telemetryData.payload;
if (error) {
// make sure to anonymise possible paths from error messages
telemetryData.payload.error = sanitizeError(error);
}
// make sure to anonymise possible paths from error messages
if (error) telemetryData.payload.error = sanitizeError(error);
if (!telemetryData.payload.error || options?.enableCrashReports) {
if (process.env?.STORYBOOK_TELEMETRY_DEBUG) {
logger.info('\n[telemetry]');
logger.info(JSON.stringify(telemetryData, null, 2));
} else {
await sendTelemetry(telemetryData, options);
}
await sendTelemetry(telemetryData, options);
}
}
};

View File

@ -32,7 +32,7 @@ export function cleanPaths(str: string, separator: string = sep): string {
}
// Takes an Error and returns a sanitized JSON String
export function sanitizeError(error: Error, pathSeparator: string = sep): string {
export function sanitizeError(error: Error, pathSeparator: string = sep) {
// Hack because Node
error = JSON.parse(JSON.stringify(error, Object.getOwnPropertyNames(error)));

View File

@ -1,3 +1,5 @@
/// <reference types="@types/jest" />;
/* eslint-disable no-plusplus */
import fetch from 'isomorphic-unfetch';
@ -13,12 +15,12 @@ beforeEach(() => {
it('makes a fetch request with name and data', async () => {
fetchMock.mockClear();
await sendTelemetry({ eventType: 'start', payload: { foo: 'bar' } });
await sendTelemetry({ eventType: 'dev', payload: { foo: 'bar' } });
expect(fetch).toHaveBeenCalledTimes(1);
const body = JSON.parse(fetchMock.mock.calls[0][1].body);
expect(body).toMatchObject({
eventType: 'start',
eventType: 'dev',
payload: { foo: 'bar' },
});
});
@ -27,7 +29,7 @@ it('retries if fetch fails with a 503', async () => {
fetchMock.mockClear().mockResolvedValueOnce({ status: 503 });
await sendTelemetry(
{
eventType: 'start',
eventType: 'dev',
payload: { foo: 'bar' },
},
{ retryDelay: 0 }
@ -40,7 +42,7 @@ it('gives up if fetch repeatedly fails', async () => {
fetchMock.mockClear().mockResolvedValue({ status: 503 });
await sendTelemetry(
{
eventType: 'start',
eventType: 'dev',
payload: { foo: 'bar' },
},
{ retryDelay: 0 }
@ -63,7 +65,7 @@ it('await all pending telemetry when passing in immediate = true', async () => {
numberOfResolvedTasks++;
});
sendTelemetry({
eventType: 'start',
eventType: 'dev',
payload: { foo: 'bar' },
}).then(() => {
numberOfResolvedTasks++;
@ -72,7 +74,7 @@ it('await all pending telemetry when passing in immediate = true', async () => {
// here we await
await sendTelemetry(
{
eventType: 'error-dev',
eventType: 'error',
payload: { foo: 'bar' },
},
{ retryDelay: 0, immediate: true }

View File

@ -25,10 +25,12 @@ export async function sendTelemetry(
// flatten the data before we send it
const { payload, metadata, ...rest } = data;
const context = {
anonymousId: getAnonymousProjectId(),
inCI: process.env.CI === 'true',
};
const context = options.stripMetadata
? {}
: {
anonymousId: getAnonymousProjectId(),
inCI: process.env.CI === 'true',
};
const eventId = nanoid();
const body = { ...rest, eventId, sessionId, metadata, payload, context };
let request: Promise<any>;

View File

@ -3,14 +3,7 @@ import type { PM } from 'detect-package-manager';
import type { MonorepoType } from './get-monorepo-type';
export type EventType =
| 'start'
| 'build'
| 'upgrade'
| 'init'
| 'error-build'
| 'error-dev'
| 'error-metadata';
export type EventType = 'boot' | 'dev' | 'build' | 'upgrade' | 'init' | 'error' | 'error-metadata';
export interface Dependency {
version: string | undefined;
@ -62,6 +55,7 @@ export interface Options {
immediate: boolean;
configDir?: string;
enableCrashReports?: boolean;
stripMetadata?: boolean;
}
export interface TelemetryData {

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/theming",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Core Storybook Components",
"keywords": [
"storybook"
@ -48,7 +48,7 @@
},
"dependencies": {
"@emotion/use-insertion-effect-with-fallbacks": "^1.0.0",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.42",
"memoizerific": "^1.11.3"
},
"devDependencies": {
@ -79,5 +79,5 @@
],
"post": "./scripts/fix-theme-type-export.ts"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/root",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"private": true,
"description": "Storybook is an open source tool for developing UI components in isolation for React, Vue and Angular. It makes building stunning UIs organized and efficient.",
"keywords": [

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preset-html-webpack",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -50,7 +50,7 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/core-webpack": "7.0.0-alpha.41",
"@storybook/core-webpack": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"html-loader": "^3.1.0",
"react": "16.14.0",
@ -75,5 +75,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preset-preact-webpack",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Preact: Develop Preact Component in isolation.",
"keywords": [
"storybook"
@ -51,7 +51,7 @@
},
"dependencies": {
"@babel/plugin-transform-react-jsx": "^7.12.12",
"@storybook/core-webpack": "7.0.0-alpha.41",
"@storybook/core-webpack": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"react": "16.14.0",
"react-dom": "16.14.0"
@ -76,5 +76,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preset-react-webpack",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -74,10 +74,10 @@
"@babel/preset-flow": "^7.12.1",
"@babel/preset-react": "^7.12.10",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
"@storybook/core-webpack": "7.0.0-alpha.41",
"@storybook/docs-tools": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/react": "7.0.0-alpha.41",
"@storybook/core-webpack": "7.0.0-alpha.42",
"@storybook/docs-tools": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"@storybook/react": "7.0.0-alpha.42",
"@storybook/react-docgen-typescript-plugin": "1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0",
"@types/node": "^16.0.0",
"@types/semver": "^7.3.4",
@ -123,5 +123,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preset-server-webpack",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -55,9 +55,9 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/core-server": "7.0.0-alpha.41",
"@storybook/core-webpack": "7.0.0-alpha.41",
"@storybook/server": "7.0.0-alpha.41",
"@storybook/core-server": "7.0.0-alpha.42",
"@storybook/core-webpack": "7.0.0-alpha.42",
"@storybook/server": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"global": "^4.4.0",
"react": "16.14.0",
@ -85,5 +85,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preset-svelte-webpack",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -65,8 +65,8 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/core-webpack": "7.0.0-alpha.41",
"@storybook/node-logger": "7.0.0-alpha.41",
"@storybook/core-webpack": "7.0.0-alpha.42",
"@storybook/node-logger": "7.0.0-alpha.42",
"react": "16.14.0",
"react-dom": "16.14.0",
"sveltedoc-parser": "^4.2.1",
@ -97,5 +97,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preset-vue-webpack",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -60,8 +60,8 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/core-webpack": "7.0.0-alpha.41",
"@storybook/docs-tools": "7.0.0-alpha.41",
"@storybook/core-webpack": "7.0.0-alpha.42",
"@storybook/docs-tools": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"react": "16.14.0",
"react-dom": "16.14.0",
@ -99,5 +99,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preset-vue3-webpack",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -60,8 +60,8 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/core-webpack": "7.0.0-alpha.41",
"@storybook/docs-tools": "7.0.0-alpha.41",
"@storybook/core-webpack": "7.0.0-alpha.42",
"@storybook/docs-tools": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"react": "16.14.0",
"react-dom": "16.14.0",
@ -96,5 +96,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preset-web-components-webpack",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.",
"keywords": [
"lit-html",
@ -55,7 +55,7 @@
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/preset-env": "^7.12.11",
"@storybook/core-webpack": "7.0.0-alpha.41",
"@storybook/core-webpack": "7.0.0-alpha.42",
"@types/node": "^16.0.0",
"babel-loader": "^7.0.0 || ^8.0.0",
"babel-plugin-bundled-import-meta": "^0.3.1",
@ -81,5 +81,5 @@
],
"platform": "node"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/html",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook HTML renderer",
"keywords": [
"storybook"
@ -50,12 +50,12 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/core-client": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/core-client": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/docs-tools": "7.0.0-alpha.41",
"@storybook/preview-web": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/docs-tools": "7.0.0-alpha.42",
"@storybook/preview-web": "7.0.0-alpha.42",
"@storybook/store": "7.0.0-alpha.42",
"global": "^4.4.0",
"react": "16.14.0",
"react-dom": "16.14.0",
@ -80,5 +80,5 @@
],
"platform": "browser"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preact",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook Preact renderer",
"keywords": [
"storybook"
@ -50,10 +50,10 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/core-client": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/core-client": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.42",
"global": "^4.4.0",
"react": "16.14.0",
"react-dom": "16.14.0",
@ -79,5 +79,5 @@
],
"platform": "browser"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/react",
"version": "7.0.0-alpha.41",
"version": "7.0.0-alpha.42",
"description": "Storybook React renderer",
"keywords": [
"storybook"
@ -51,12 +51,12 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.41",
"@storybook/client-logger": "7.0.0-alpha.41",
"@storybook/core-client": "7.0.0-alpha.41",
"@storybook/addons": "7.0.0-alpha.42",
"@storybook/client-logger": "7.0.0-alpha.42",
"@storybook/core-client": "7.0.0-alpha.42",
"@storybook/csf": "next",
"@storybook/docs-tools": "7.0.0-alpha.41",
"@storybook/store": "7.0.0-alpha.41",
"@storybook/docs-tools": "7.0.0-alpha.42",
"@storybook/store": "7.0.0-alpha.42",
"@types/estree": "^0.0.51",
"@types/node": "^16.0.0",
"acorn": "^7.4.1",
@ -103,5 +103,5 @@
],
"platform": "browser"
},
"gitHead": "7ec6f916eb875bd2e3cf3aa6b1afcd1fe25d1637"
"gitHead": "4ed2e832e3accf8e533da92a46a812eacaf5db0b"
}

Some files were not shown because too many files have changed in this diff Show More