Skip to content

Commit

Permalink
Merge pull request #20 from storybookjs/publish-script
Browse files Browse the repository at this point in the history
Publish script
  • Loading branch information
JReinhold authored May 24, 2023
2 parents c4abbb1 + b013b7a commit 10c8062
Show file tree
Hide file tree
Showing 103 changed files with 1,544 additions and 1,133 deletions.
6 changes: 5 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
spec: '@yarnpkg/plugin-version'
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'

yarnPath: .yarn/releases/yarn-3.4.1.cjs

npmPublishAccess: 'public'
21 changes: 11 additions & 10 deletions code/addons/a11y/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@junk-temporary-prototypes/addon-a11y",
"version": "7.0.7",
"version": "7.0.8-alpha.3",
"description": "Test component compliance with web accessibility standards",
"keywords": [
"a11y",
Expand Down Expand Up @@ -63,15 +63,15 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@junk-temporary-prototypes/addon-highlight": "7.0.7",
"@junk-temporary-prototypes/channels": "7.0.7",
"@junk-temporary-prototypes/client-logger": "7.0.7",
"@junk-temporary-prototypes/components": "7.0.7",
"@junk-temporary-prototypes/core-events": "7.0.7",
"@junk-temporary-prototypes/manager-api": "7.0.7",
"@junk-temporary-prototypes/preview-api": "7.0.7",
"@junk-temporary-prototypes/theming": "7.0.7",
"@junk-temporary-prototypes/types": "7.0.7",
"@junk-temporary-prototypes/addon-highlight": "7.0.8-alpha.3",
"@junk-temporary-prototypes/channels": "7.0.8-alpha.3",
"@junk-temporary-prototypes/client-logger": "7.0.8-alpha.3",
"@junk-temporary-prototypes/components": "7.0.8-alpha.3",
"@junk-temporary-prototypes/core-events": "7.0.8-alpha.3",
"@junk-temporary-prototypes/manager-api": "7.0.8-alpha.3",
"@junk-temporary-prototypes/preview-api": "7.0.8-alpha.3",
"@junk-temporary-prototypes/theming": "7.0.8-alpha.3",
"@junk-temporary-prototypes/types": "7.0.8-alpha.3",
"@storybook/global": "^5.0.0",
"axe-core": "^4.2.0",
"lodash": "^4.17.21",
Expand Down Expand Up @@ -105,6 +105,7 @@
]
},
"gitHead": "9e352853ca5ce94d81fcdb06c303b4fbf43f8971",
"stableVersion": "7.0.7",
"storybook": {
"displayName": "Accessibility",
"icon": "https://user-images.githubusercontent.com/263385/101991665-47042f80-3c7c-11eb-8f00-64b5a18f498a.png",
Expand Down
17 changes: 9 additions & 8 deletions code/addons/actions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@junk-temporary-prototypes/addon-actions",
"version": "7.0.7",
"version": "7.0.8-alpha.3",
"description": "Get UI feedback when an action is performed on an interactive element",
"keywords": [
"storybook",
Expand Down Expand Up @@ -80,13 +80,13 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@junk-temporary-prototypes/client-logger": "7.0.7",
"@junk-temporary-prototypes/components": "7.0.7",
"@junk-temporary-prototypes/core-events": "7.0.7",
"@junk-temporary-prototypes/manager-api": "7.0.7",
"@junk-temporary-prototypes/preview-api": "7.0.7",
"@junk-temporary-prototypes/theming": "7.0.7",
"@junk-temporary-prototypes/types": "7.0.7",
"@junk-temporary-prototypes/client-logger": "7.0.8-alpha.3",
"@junk-temporary-prototypes/components": "7.0.8-alpha.3",
"@junk-temporary-prototypes/core-events": "7.0.8-alpha.3",
"@junk-temporary-prototypes/manager-api": "7.0.8-alpha.3",
"@junk-temporary-prototypes/preview-api": "7.0.8-alpha.3",
"@junk-temporary-prototypes/theming": "7.0.8-alpha.3",
"@junk-temporary-prototypes/types": "7.0.8-alpha.3",
"@storybook/global": "^5.0.0",
"dequal": "^2.0.2",
"lodash": "^4.17.21",
Expand Down Expand Up @@ -126,6 +126,7 @@
]
},
"gitHead": "9e352853ca5ce94d81fcdb06c303b4fbf43f8971",
"stableVersion": "7.0.7",
"storybook": {
"displayName": "Actions",
"unsupportedFrameworks": [
Expand Down
17 changes: 9 additions & 8 deletions code/addons/backgrounds/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@junk-temporary-prototypes/addon-backgrounds",
"version": "7.0.7",
"version": "7.0.8-alpha.3",
"description": "Switch backgrounds to view components in different settings",
"keywords": [
"addon",
Expand Down Expand Up @@ -76,13 +76,13 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@junk-temporary-prototypes/client-logger": "7.0.7",
"@junk-temporary-prototypes/components": "7.0.7",
"@junk-temporary-prototypes/core-events": "7.0.7",
"@junk-temporary-prototypes/manager-api": "7.0.7",
"@junk-temporary-prototypes/preview-api": "7.0.7",
"@junk-temporary-prototypes/theming": "7.0.7",
"@junk-temporary-prototypes/types": "7.0.7",
"@junk-temporary-prototypes/client-logger": "7.0.8-alpha.3",
"@junk-temporary-prototypes/components": "7.0.8-alpha.3",
"@junk-temporary-prototypes/core-events": "7.0.8-alpha.3",
"@junk-temporary-prototypes/manager-api": "7.0.8-alpha.3",
"@junk-temporary-prototypes/preview-api": "7.0.8-alpha.3",
"@junk-temporary-prototypes/theming": "7.0.8-alpha.3",
"@junk-temporary-prototypes/types": "7.0.8-alpha.3",
"@storybook/global": "^5.0.0",
"memoizerific": "^1.11.3",
"ts-dedent": "^2.0.0"
Expand Down Expand Up @@ -113,6 +113,7 @@
]
},
"gitHead": "9e352853ca5ce94d81fcdb06c303b4fbf43f8971",
"stableVersion": "7.0.7",
"storybook": {
"displayName": "Backgrounds",
"icon": "https://user-images.githubusercontent.com/263385/101991667-479cc600-3c7c-11eb-96d3-410e936252e7.png",
Expand Down
21 changes: 11 additions & 10 deletions code/addons/controls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@junk-temporary-prototypes/addon-controls",
"version": "7.0.7",
"version": "7.0.8-alpha.3",
"description": "Interact with component inputs dynamically in the Storybook UI",
"keywords": [
"addon",
Expand Down Expand Up @@ -68,15 +68,15 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@junk-temporary-prototypes/blocks": "7.0.7",
"@junk-temporary-prototypes/client-logger": "7.0.7",
"@junk-temporary-prototypes/components": "7.0.7",
"@junk-temporary-prototypes/core-common": "7.0.7",
"@junk-temporary-prototypes/manager-api": "7.0.7",
"@junk-temporary-prototypes/node-logger": "7.0.7",
"@junk-temporary-prototypes/preview-api": "7.0.7",
"@junk-temporary-prototypes/theming": "7.0.7",
"@junk-temporary-prototypes/types": "7.0.7",
"@junk-temporary-prototypes/blocks": "7.0.8-alpha.3",
"@junk-temporary-prototypes/client-logger": "7.0.8-alpha.3",
"@junk-temporary-prototypes/components": "7.0.8-alpha.3",
"@junk-temporary-prototypes/core-common": "7.0.8-alpha.3",
"@junk-temporary-prototypes/manager-api": "7.0.8-alpha.3",
"@junk-temporary-prototypes/node-logger": "7.0.8-alpha.3",
"@junk-temporary-prototypes/preview-api": "7.0.8-alpha.3",
"@junk-temporary-prototypes/theming": "7.0.8-alpha.3",
"@junk-temporary-prototypes/types": "7.0.8-alpha.3",
"lodash": "^4.17.21",
"ts-dedent": "^2.0.0"
},
Expand All @@ -103,6 +103,7 @@
"platform": "browser"
},
"gitHead": "9e352853ca5ce94d81fcdb06c303b4fbf43f8971",
"stableVersion": "7.0.7",
"storybook": {
"displayName": "Controls",
"icon": "https://user-images.githubusercontent.com/263385/101991669-479cc600-3c7c-11eb-93d9-38b67e8371f2.png",
Expand Down
25 changes: 13 additions & 12 deletions code/addons/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@junk-temporary-prototypes/addon-docs",
"version": "7.0.7",
"version": "7.0.8-alpha.3",
"description": "Document component usage and properties in Markdown",
"keywords": [
"addon",
Expand Down Expand Up @@ -102,17 +102,17 @@
"@babel/core": "^7.20.2",
"@babel/plugin-transform-react-jsx": "^7.19.0",
"@jest/transform": "^29.3.1",
"@junk-temporary-prototypes/blocks": "7.0.7",
"@junk-temporary-prototypes/client-logger": "7.0.7",
"@junk-temporary-prototypes/components": "7.0.7",
"@junk-temporary-prototypes/csf-plugin": "7.0.7",
"@junk-temporary-prototypes/csf-tools": "7.0.7",
"@junk-temporary-prototypes/node-logger": "7.0.7",
"@junk-temporary-prototypes/postinstall": "7.0.7",
"@junk-temporary-prototypes/preview-api": "7.0.7",
"@junk-temporary-prototypes/react-dom-shim": "7.0.7",
"@junk-temporary-prototypes/theming": "7.0.7",
"@junk-temporary-prototypes/types": "7.0.7",
"@junk-temporary-prototypes/blocks": "7.0.8-alpha.3",
"@junk-temporary-prototypes/client-logger": "7.0.8-alpha.3",
"@junk-temporary-prototypes/components": "7.0.8-alpha.3",
"@junk-temporary-prototypes/csf-plugin": "7.0.8-alpha.3",
"@junk-temporary-prototypes/csf-tools": "7.0.8-alpha.3",
"@junk-temporary-prototypes/node-logger": "7.0.8-alpha.3",
"@junk-temporary-prototypes/postinstall": "7.0.8-alpha.3",
"@junk-temporary-prototypes/preview-api": "7.0.8-alpha.3",
"@junk-temporary-prototypes/react-dom-shim": "7.0.8-alpha.3",
"@junk-temporary-prototypes/theming": "7.0.8-alpha.3",
"@junk-temporary-prototypes/types": "7.0.8-alpha.3",
"@mdx-js/react": "^2.1.5",
"@storybook/global": "^5.0.0",
"@storybook/mdx2-csf": "^1.0.0",
Expand Down Expand Up @@ -146,6 +146,7 @@
]
},
"gitHead": "9e352853ca5ce94d81fcdb06c303b4fbf43f8971",
"stableVersion": "7.0.7",
"storybook": {
"displayName": "Docs",
"icon": "https://user-images.githubusercontent.com/263385/101991672-48355c80-3c7c-11eb-82d9-95fa12438f64.png",
Expand Down
8 changes: 7 additions & 1 deletion code/addons/docs/src/DocsRenderer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import React, { Component } from 'react';
import { renderElement, unmountElement } from '@junk-temporary-prototypes/react-dom-shim';
import type { Renderer, Parameters, DocsContextProps, DocsRenderFunction } from '@junk-temporary-prototypes/types';
import type {
Renderer,
Parameters,
DocsContextProps,
DocsRenderFunction,
} from '@junk-temporary-prototypes/types';
import { Docs, CodeOrSourceMdx, AnchorMdx, HeadersMdx } from '@junk-temporary-prototypes/blocks';

// TS doesn't like that we export a component with types that it doesn't know about (TS4203)
Expand Down Expand Up @@ -53,6 +58,7 @@ export class DocsRenderer<TRenderer extends Renderer> {
.then(({ MDXProvider }) =>
// We use a `key={}` here to reset the `hasError` state each time we render ErrorBoundary
renderElement(
// @ts-expect-error -- why does this break?
<ErrorBoundary showException={reject} key={Math.random()}>
<MDXProvider components={components}>
<Docs context={context} docsParameter={docsParameter} />
Expand Down
33 changes: 17 additions & 16 deletions code/addons/essentials/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@junk-temporary-prototypes/addon-essentials",
"version": "7.0.7",
"version": "7.0.8-alpha.3",
"description": "Curated addons to bring out the best of Storybook",
"keywords": [
"addon",
Expand Down Expand Up @@ -119,23 +119,23 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@junk-temporary-prototypes/addon-actions": "7.0.7",
"@junk-temporary-prototypes/addon-backgrounds": "7.0.7",
"@junk-temporary-prototypes/addon-controls": "7.0.7",
"@junk-temporary-prototypes/addon-docs": "7.0.7",
"@junk-temporary-prototypes/addon-highlight": "7.0.7",
"@junk-temporary-prototypes/addon-measure": "7.0.7",
"@junk-temporary-prototypes/addon-outline": "7.0.7",
"@junk-temporary-prototypes/addon-toolbars": "7.0.7",
"@junk-temporary-prototypes/addon-viewport": "7.0.7",
"@junk-temporary-prototypes/core-common": "7.0.7",
"@junk-temporary-prototypes/manager-api": "7.0.7",
"@junk-temporary-prototypes/node-logger": "7.0.7",
"@junk-temporary-prototypes/preview-api": "7.0.7",
"@junk-temporary-prototypes/addon-actions": "7.0.8-alpha.3",
"@junk-temporary-prototypes/addon-backgrounds": "7.0.8-alpha.3",
"@junk-temporary-prototypes/addon-controls": "7.0.8-alpha.3",
"@junk-temporary-prototypes/addon-docs": "7.0.8-alpha.3",
"@junk-temporary-prototypes/addon-highlight": "7.0.8-alpha.3",
"@junk-temporary-prototypes/addon-measure": "7.0.8-alpha.3",
"@junk-temporary-prototypes/addon-outline": "7.0.8-alpha.3",
"@junk-temporary-prototypes/addon-toolbars": "7.0.8-alpha.3",
"@junk-temporary-prototypes/addon-viewport": "7.0.8-alpha.3",
"@junk-temporary-prototypes/core-common": "7.0.8-alpha.3",
"@junk-temporary-prototypes/manager-api": "7.0.8-alpha.3",
"@junk-temporary-prototypes/node-logger": "7.0.8-alpha.3",
"@junk-temporary-prototypes/preview-api": "7.0.8-alpha.3",
"ts-dedent": "^2.0.0"
},
"devDependencies": {
"@junk-temporary-prototypes/vue": "7.0.7",
"@junk-temporary-prototypes/vue": "7.0.8-alpha.3",
"typescript": "^4.9.3"
},
"peerDependencies": {
Expand Down Expand Up @@ -166,5 +166,6 @@
],
"platform": "node"
},
"gitHead": "9e352853ca5ce94d81fcdb06c303b4fbf43f8971"
"gitHead": "9e352853ca5ce94d81fcdb06c303b4fbf43f8971",
"stableVersion": "7.0.7"
}
7 changes: 4 additions & 3 deletions code/addons/gfm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@junk-temporary-prototypes/addon-mdx-gfm",
"version": "7.0.7",
"version": "7.0.8-alpha.3",
"description": "GitHub Flavored Markdown in Storybook",
"keywords": [
"addon",
Expand Down Expand Up @@ -51,7 +51,7 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@junk-temporary-prototypes/node-logger": "7.0.7",
"@junk-temporary-prototypes/node-logger": "7.0.8-alpha.3",
"remark-gfm": "^3.0.1",
"ts-dedent": "^2.0.0"
},
Expand All @@ -69,5 +69,6 @@
"cjs"
]
},
"gitHead": "9e352853ca5ce94d81fcdb06c303b4fbf43f8971"
"gitHead": "9e352853ca5ce94d81fcdb06c303b4fbf43f8971",
"stableVersion": "7.0.7"
}
7 changes: 4 additions & 3 deletions code/addons/highlight/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@junk-temporary-prototypes/addon-highlight",
"version": "7.0.7",
"version": "7.0.8-alpha.3",
"description": "Highlight DOM nodes within your stories",
"keywords": [
"storybook-addons",
Expand Down Expand Up @@ -61,8 +61,8 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@junk-temporary-prototypes/core-events": "7.0.7",
"@junk-temporary-prototypes/preview-api": "7.0.7",
"@junk-temporary-prototypes/core-events": "7.0.8-alpha.3",
"@junk-temporary-prototypes/preview-api": "7.0.8-alpha.3",
"@storybook/global": "^5.0.0"
},
"devDependencies": {
Expand All @@ -80,6 +80,7 @@
},
"gitHead": "9e352853ca5ce94d81fcdb06c303b4fbf43f8971",
"sbmodern": "dist/modern/index.js",
"stableVersion": "7.0.7",
"storybook": {
"displayName": "Highlight",
"unsupportedFrameworks": [
Expand Down
21 changes: 11 additions & 10 deletions code/addons/interactions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@junk-temporary-prototypes/addon-interactions",
"version": "7.0.7",
"version": "7.0.8-alpha.3",
"description": "Automate, test and debug user interactions",
"keywords": [
"storybook-addons",
Expand Down Expand Up @@ -72,15 +72,15 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@junk-temporary-prototypes/client-logger": "7.0.7",
"@junk-temporary-prototypes/components": "7.0.7",
"@junk-temporary-prototypes/core-common": "7.0.7",
"@junk-temporary-prototypes/core-events": "7.0.7",
"@junk-temporary-prototypes/instrumenter": "7.0.7",
"@junk-temporary-prototypes/manager-api": "7.0.7",
"@junk-temporary-prototypes/preview-api": "7.0.7",
"@junk-temporary-prototypes/theming": "7.0.7",
"@junk-temporary-prototypes/types": "7.0.7",
"@junk-temporary-prototypes/client-logger": "7.0.8-alpha.3",
"@junk-temporary-prototypes/components": "7.0.8-alpha.3",
"@junk-temporary-prototypes/core-common": "7.0.8-alpha.3",
"@junk-temporary-prototypes/core-events": "7.0.8-alpha.3",
"@junk-temporary-prototypes/instrumenter": "7.0.8-alpha.3",
"@junk-temporary-prototypes/manager-api": "7.0.8-alpha.3",
"@junk-temporary-prototypes/preview-api": "7.0.8-alpha.3",
"@junk-temporary-prototypes/theming": "7.0.8-alpha.3",
"@junk-temporary-prototypes/types": "7.0.8-alpha.3",
"@storybook/global": "^5.0.0",
"jest-mock": "^27.0.6",
"polished": "^4.2.2",
Expand Down Expand Up @@ -119,6 +119,7 @@
"platform": "node"
},
"gitHead": "9e352853ca5ce94d81fcdb06c303b4fbf43f8971",
"stableVersion": "7.0.7",
"storybook": {
"displayName": "Interactions",
"unsupportedFrameworks": [
Expand Down
Loading

0 comments on commit 10c8062

Please sign in to comment.