Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Release: Prerelease 7.1.0-alpha.43 #23286

Merged
merged 29 commits into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4708489
Allow type checking in story title
honzahruby May 25, 2023
a0abb92
check for string in satisfies expression
honzahruby May 30, 2023
a4b004e
updates to the write addons
jonniebigodes May 31, 2023
31932ac
Initial stab at presets
jonniebigodes Jun 7, 2023
7c2a0db
Merge branch 'next' into patch-1
honzahruby Jun 13, 2023
91203ba
Merge branch 'next' into patch-1
honzahruby Jun 20, 2023
7fa67b4
write to docs version files
JReinhold Jun 23, 2023
27a65be
remove heading
JReinhold Jun 23, 2023
9b24cc7
Small tweaks and navigation
jonniebigodes Jun 26, 2023
112c87a
first stab at tests
JReinhold Jun 26, 2023
7d21d33
finish write-chnagelog tests
JReinhold Jun 26, 2023
f498684
Fixes for incorrect placement of documentation
jonniebigodes Jun 27, 2023
db89403
Updates for the snippets
jonniebigodes Jun 27, 2023
55c38a7
Minor fixes for accuracy and concordance
jonniebigodes Jun 27, 2023
36c5f50
sync docs/versions/next.json to main on new prereleases
JReinhold Jun 27, 2023
327e48e
Merge branch 'next' into 23000-bug-new-release-flow-doesnt-update-ver…
JReinhold Jun 28, 2023
3db82fc
Merge branch 'next' into chore_docs_addon_changes
ndelangen Jun 30, 2023
d8d262a
Merge branch 'next' into chore_docs_addon_changes
jonniebigodes Jun 30, 2023
8d43789
Address feedback from Shaun
jonniebigodes Jun 30, 2023
c4356f4
Merge branch 'next' into chore_docs_addon_changes
jonniebigodes Jul 3, 2023
e053703
Merge pull request #23246 from storybookjs/chore_docs_addon_changes
jonniebigodes Jul 3, 2023
e6cbba7
minor code improvements
ndelangen Jul 3, 2023
11a3ca9
fix (will improve later)
ndelangen Jul 3, 2023
6878ceb
Merge pull request #22791 from honzahruby/patch-1
shilman Jul 3, 2023
c1f399b
Merge pull request #23284 from storybookjs/norbert/minor-improvements
ndelangen Jul 3, 2023
4e02ee9
keep redundant commits when cherry-picking
JReinhold Jul 3, 2023
7b1597e
Merge pull request #23289 from storybookjs/skip-empty-picks
JReinhold Jul 4, 2023
35fc07b
Merge pull request #23235 from storybookjs/23000-bug-new-release-flow…
shilman Jul 4, 2023
063df87
Bump version from 7.1.0-alpha.42 to 7.1.0-alpha.43
github-actions[bot] Jul 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,17 @@ jobs:
git commit -m "Update CHANGELOG.md for v${{ steps.version.outputs.current-version }}"
git push origin next

- name: Sync versions/next.json from `next` to `main`
if: github.ref_name == 'next-release'
run: |
git fetch origin main
git checkout main
git pull
git checkout origin/next ./docs/versions/next.json
git add ./docs/versions/next.json
git commit -m "Update versions/next.json for v${{ steps.version.outputs.current-version }}"
git push origin main

# Force push from next to main if it is not a prerelease, and this release is from next-release
# This happens when eg. next has been tracking 7.1.0-alpha.X, and now we want to release 7.1.0
# This will keep release-next, next and main all tracking v7.1.0
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.prerelease.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 7.1.0-alpha.43

- Addons: Remove deprecated addPanel use and misc improvements - [#23284](https://github.com/storybookjs/storybook/pull/23284), thanks [@ndelangen](https://github.com/ndelangen)!
- CSF-tools: Allow type checking in story title - [#22791](https://github.com/storybookjs/storybook/pull/22791), thanks [@honzahruby](https://github.com/honzahruby)!

## 7.1.0-alpha.42

- CLI: Fix pnp paths logic in storybook metadata - [#23259](https://github.com/storybookjs/storybook/pull/23259), thanks [@yannbf](https://github.com/yannbf)!
Expand Down
20 changes: 10 additions & 10 deletions code/addons/a11y/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-a11y",
"version": "7.1.0-alpha.42",
"version": "7.1.0-alpha.43",
"description": "Test component compliance with web accessibility standards",
"keywords": [
"a11y",
Expand Down Expand Up @@ -63,16 +63,16 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addon-highlight": "7.1.0-alpha.42",
"@storybook/channels": "7.1.0-alpha.42",
"@storybook/client-logger": "7.1.0-alpha.42",
"@storybook/components": "7.1.0-alpha.42",
"@storybook/core-events": "7.1.0-alpha.42",
"@storybook/addon-highlight": "7.1.0-alpha.43",
"@storybook/channels": "7.1.0-alpha.43",
"@storybook/client-logger": "7.1.0-alpha.43",
"@storybook/components": "7.1.0-alpha.43",
"@storybook/core-events": "7.1.0-alpha.43",
"@storybook/global": "^5.0.0",
"@storybook/manager-api": "7.1.0-alpha.42",
"@storybook/preview-api": "7.1.0-alpha.42",
"@storybook/theming": "7.1.0-alpha.42",
"@storybook/types": "7.1.0-alpha.42",
"@storybook/manager-api": "7.1.0-alpha.43",
"@storybook/preview-api": "7.1.0-alpha.43",
"@storybook/theming": "7.1.0-alpha.43",
"@storybook/types": "7.1.0-alpha.43",
"axe-core": "^4.2.0",
"lodash": "^4.17.21",
"react-resize-detector": "^7.1.2"
Expand Down
8 changes: 4 additions & 4 deletions code/addons/a11y/src/manager.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ describe('A11yManager', () => {

const panel = mockedAddons.add.mock.calls
.map(([_, def]) => def)
.find(({ type }) => type === 'panel');
.find(({ type }) => type === api.types.PANEL);
const tool = mockedAddons.add.mock.calls
.map(([_, def]) => def)
.find(({ type }) => type === 'tool');
.find(({ type }) => type === api.types.TOOL);
expect(panel).toBeDefined();
expect(tool).toBeDefined();
});
Expand All @@ -33,7 +33,7 @@ describe('A11yManager', () => {
registrationImpl(api as unknown as api.API);
const title = mockedAddons.add.mock.calls
.map(([_, def]) => def)
.find(({ type }) => type === 'panel')?.title as Function;
.find(({ type }) => type === api.types.PANEL)?.title as Function;

// when / then
expect(title()).toBe('Accessibility');
Expand All @@ -45,7 +45,7 @@ describe('A11yManager', () => {
registrationImpl(mockedApi);
const title = mockedAddons.add.mock.calls
.map(([_, def]) => def)
.find(({ type }) => type === 'panel')?.title as Function;
.find(({ type }) => type === api.types.PANEL)?.title as Function;

// when / then
expect(title()).toBe('Accessibility (3)');
Expand Down
16 changes: 8 additions & 8 deletions code/addons/actions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-actions",
"version": "7.1.0-alpha.42",
"version": "7.1.0-alpha.43",
"description": "Get UI feedback when an action is performed on an interactive element",
"keywords": [
"storybook",
Expand Down Expand Up @@ -80,14 +80,14 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/client-logger": "7.1.0-alpha.42",
"@storybook/components": "7.1.0-alpha.42",
"@storybook/core-events": "7.1.0-alpha.42",
"@storybook/client-logger": "7.1.0-alpha.43",
"@storybook/components": "7.1.0-alpha.43",
"@storybook/core-events": "7.1.0-alpha.43",
"@storybook/global": "^5.0.0",
"@storybook/manager-api": "7.1.0-alpha.42",
"@storybook/preview-api": "7.1.0-alpha.42",
"@storybook/theming": "7.1.0-alpha.42",
"@storybook/types": "7.1.0-alpha.42",
"@storybook/manager-api": "7.1.0-alpha.43",
"@storybook/preview-api": "7.1.0-alpha.43",
"@storybook/theming": "7.1.0-alpha.43",
"@storybook/types": "7.1.0-alpha.43",
"dequal": "^2.0.2",
"lodash": "^4.17.21",
"polished": "^4.2.2",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/actions/src/manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ addons.register(ADDON_ID, (api) => {
countRef.current = 0;
});

addons.addPanel(PANEL_ID, {
addons.add(PANEL_ID, {
title: <Title count={countRef} />,
id: 'actions',
type: types.PANEL,
Expand Down
16 changes: 8 additions & 8 deletions code/addons/backgrounds/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-backgrounds",
"version": "7.1.0-alpha.42",
"version": "7.1.0-alpha.43",
"description": "Switch backgrounds to view components in different settings",
"keywords": [
"addon",
Expand Down Expand Up @@ -76,14 +76,14 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/client-logger": "7.1.0-alpha.42",
"@storybook/components": "7.1.0-alpha.42",
"@storybook/core-events": "7.1.0-alpha.42",
"@storybook/client-logger": "7.1.0-alpha.43",
"@storybook/components": "7.1.0-alpha.43",
"@storybook/core-events": "7.1.0-alpha.43",
"@storybook/global": "^5.0.0",
"@storybook/manager-api": "7.1.0-alpha.42",
"@storybook/preview-api": "7.1.0-alpha.42",
"@storybook/theming": "7.1.0-alpha.42",
"@storybook/types": "7.1.0-alpha.42",
"@storybook/manager-api": "7.1.0-alpha.43",
"@storybook/preview-api": "7.1.0-alpha.43",
"@storybook/theming": "7.1.0-alpha.43",
"@storybook/types": "7.1.0-alpha.43",
"memoizerific": "^1.11.3",
"ts-dedent": "^2.0.0"
},
Expand Down
20 changes: 10 additions & 10 deletions code/addons/controls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-controls",
"version": "7.1.0-alpha.42",
"version": "7.1.0-alpha.43",
"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": {
"@storybook/blocks": "7.1.0-alpha.42",
"@storybook/client-logger": "7.1.0-alpha.42",
"@storybook/components": "7.1.0-alpha.42",
"@storybook/core-common": "7.1.0-alpha.42",
"@storybook/manager-api": "7.1.0-alpha.42",
"@storybook/node-logger": "7.1.0-alpha.42",
"@storybook/preview-api": "7.1.0-alpha.42",
"@storybook/theming": "7.1.0-alpha.42",
"@storybook/types": "7.1.0-alpha.42",
"@storybook/blocks": "7.1.0-alpha.43",
"@storybook/client-logger": "7.1.0-alpha.43",
"@storybook/components": "7.1.0-alpha.43",
"@storybook/core-common": "7.1.0-alpha.43",
"@storybook/manager-api": "7.1.0-alpha.43",
"@storybook/node-logger": "7.1.0-alpha.43",
"@storybook/preview-api": "7.1.0-alpha.43",
"@storybook/theming": "7.1.0-alpha.43",
"@storybook/types": "7.1.0-alpha.43",
"lodash": "^4.17.21",
"ts-dedent": "^2.0.0"
},
Expand Down
6 changes: 3 additions & 3 deletions code/addons/controls/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { addons, types, type API, useArgTypes } from '@storybook/manager-api';
import { addons, types, useArgTypes } from '@storybook/manager-api';
import { AddonPanel } from '@storybook/components';
import { ControlsPanel } from './ControlsPanel';
import { ADDON_ID, PARAM_KEY } from './constants';
Expand All @@ -14,8 +14,8 @@ function Title() {
return <>Controls{suffix}</>;
}

addons.register(ADDON_ID, (api: API) => {
addons.addPanel(ADDON_ID, {
addons.register(ADDON_ID, (api) => {
addons.add(ADDON_ID, {
title: <Title />,
id: 'controls',
type: types.PANEL,
Expand Down
24 changes: 12 additions & 12 deletions code/addons/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-docs",
"version": "7.1.0-alpha.42",
"version": "7.1.0-alpha.43",
"description": "Document component usage and properties in Markdown",
"keywords": [
"addon",
Expand Down Expand Up @@ -99,19 +99,19 @@
"dependencies": {
"@jest/transform": "^29.3.1",
"@mdx-js/react": "^2.1.5",
"@storybook/blocks": "7.1.0-alpha.42",
"@storybook/client-logger": "7.1.0-alpha.42",
"@storybook/components": "7.1.0-alpha.42",
"@storybook/csf-plugin": "7.1.0-alpha.42",
"@storybook/csf-tools": "7.1.0-alpha.42",
"@storybook/blocks": "7.1.0-alpha.43",
"@storybook/client-logger": "7.1.0-alpha.43",
"@storybook/components": "7.1.0-alpha.43",
"@storybook/csf-plugin": "7.1.0-alpha.43",
"@storybook/csf-tools": "7.1.0-alpha.43",
"@storybook/global": "^5.0.0",
"@storybook/mdx2-csf": "^1.0.0",
"@storybook/node-logger": "7.1.0-alpha.42",
"@storybook/postinstall": "7.1.0-alpha.42",
"@storybook/preview-api": "7.1.0-alpha.42",
"@storybook/react-dom-shim": "7.1.0-alpha.42",
"@storybook/theming": "7.1.0-alpha.42",
"@storybook/types": "7.1.0-alpha.42",
"@storybook/node-logger": "7.1.0-alpha.43",
"@storybook/postinstall": "7.1.0-alpha.43",
"@storybook/preview-api": "7.1.0-alpha.43",
"@storybook/react-dom-shim": "7.1.0-alpha.43",
"@storybook/theming": "7.1.0-alpha.43",
"@storybook/types": "7.1.0-alpha.43",
"fs-extra": "^11.1.0",
"remark-external-links": "^8.0.0",
"remark-slug": "^6.0.0",
Expand Down
30 changes: 15 additions & 15 deletions code/addons/essentials/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-essentials",
"version": "7.1.0-alpha.42",
"version": "7.1.0-alpha.43",
"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": {
"@storybook/addon-actions": "7.1.0-alpha.42",
"@storybook/addon-backgrounds": "7.1.0-alpha.42",
"@storybook/addon-controls": "7.1.0-alpha.42",
"@storybook/addon-docs": "7.1.0-alpha.42",
"@storybook/addon-highlight": "7.1.0-alpha.42",
"@storybook/addon-measure": "7.1.0-alpha.42",
"@storybook/addon-outline": "7.1.0-alpha.42",
"@storybook/addon-toolbars": "7.1.0-alpha.42",
"@storybook/addon-viewport": "7.1.0-alpha.42",
"@storybook/core-common": "7.1.0-alpha.42",
"@storybook/manager-api": "7.1.0-alpha.42",
"@storybook/node-logger": "7.1.0-alpha.42",
"@storybook/preview-api": "7.1.0-alpha.42",
"@storybook/addon-actions": "7.1.0-alpha.43",
"@storybook/addon-backgrounds": "7.1.0-alpha.43",
"@storybook/addon-controls": "7.1.0-alpha.43",
"@storybook/addon-docs": "7.1.0-alpha.43",
"@storybook/addon-highlight": "7.1.0-alpha.43",
"@storybook/addon-measure": "7.1.0-alpha.43",
"@storybook/addon-outline": "7.1.0-alpha.43",
"@storybook/addon-toolbars": "7.1.0-alpha.43",
"@storybook/addon-viewport": "7.1.0-alpha.43",
"@storybook/core-common": "7.1.0-alpha.43",
"@storybook/manager-api": "7.1.0-alpha.43",
"@storybook/node-logger": "7.1.0-alpha.43",
"@storybook/preview-api": "7.1.0-alpha.43",
"ts-dedent": "^2.0.0"
},
"devDependencies": {
"@storybook/vue": "7.1.0-alpha.42",
"@storybook/vue": "7.1.0-alpha.43",
"typescript": "^4.9.3"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions code/addons/gfm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-mdx-gfm",
"version": "7.1.0-alpha.42",
"version": "7.1.0-alpha.43",
"description": "GitHub Flavored Markdown in Storybook",
"keywords": [
"addon",
Expand Down Expand Up @@ -51,7 +51,7 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/node-logger": "7.1.0-alpha.42",
"@storybook/node-logger": "7.1.0-alpha.43",
"remark-gfm": "^3.0.1",
"ts-dedent": "^2.0.0"
},
Expand Down
6 changes: 3 additions & 3 deletions code/addons/highlight/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-highlight",
"version": "7.1.0-alpha.42",
"version": "7.1.0-alpha.43",
"description": "Highlight DOM nodes within your stories",
"keywords": [
"storybook-addons",
Expand Down Expand Up @@ -61,9 +61,9 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/core-events": "7.1.0-alpha.42",
"@storybook/core-events": "7.1.0-alpha.43",
"@storybook/global": "^5.0.0",
"@storybook/preview-api": "7.1.0-alpha.42"
"@storybook/preview-api": "7.1.0-alpha.43"
},
"devDependencies": {
"@types/webpack-env": "^1.16.0",
Expand Down
20 changes: 10 additions & 10 deletions code/addons/interactions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-interactions",
"version": "7.1.0-alpha.42",
"version": "7.1.0-alpha.43",
"description": "Automate, test and debug user interactions",
"keywords": [
"storybook-addons",
Expand Down Expand Up @@ -72,16 +72,16 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/client-logger": "7.1.0-alpha.42",
"@storybook/components": "7.1.0-alpha.42",
"@storybook/core-common": "7.1.0-alpha.42",
"@storybook/core-events": "7.1.0-alpha.42",
"@storybook/client-logger": "7.1.0-alpha.43",
"@storybook/components": "7.1.0-alpha.43",
"@storybook/core-common": "7.1.0-alpha.43",
"@storybook/core-events": "7.1.0-alpha.43",
"@storybook/global": "^5.0.0",
"@storybook/instrumenter": "7.1.0-alpha.42",
"@storybook/manager-api": "7.1.0-alpha.42",
"@storybook/preview-api": "7.1.0-alpha.42",
"@storybook/theming": "7.1.0-alpha.42",
"@storybook/types": "7.1.0-alpha.42",
"@storybook/instrumenter": "7.1.0-alpha.43",
"@storybook/manager-api": "7.1.0-alpha.43",
"@storybook/preview-api": "7.1.0-alpha.43",
"@storybook/theming": "7.1.0-alpha.43",
"@storybook/types": "7.1.0-alpha.43",
"jest-mock": "^29.5.0",
"polished": "^4.2.2",
"ts-dedent": "^2.2.0"
Expand Down
14 changes: 7 additions & 7 deletions code/addons/jest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-jest",
"version": "7.1.0-alpha.42",
"version": "7.1.0-alpha.43",
"description": "React storybook addon that show component jest report",
"keywords": [
"addon",
Expand Down Expand Up @@ -70,13 +70,13 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/client-logger": "7.1.0-alpha.42",
"@storybook/components": "7.1.0-alpha.42",
"@storybook/core-events": "7.1.0-alpha.42",
"@storybook/client-logger": "7.1.0-alpha.43",
"@storybook/components": "7.1.0-alpha.43",
"@storybook/core-events": "7.1.0-alpha.43",
"@storybook/global": "^5.0.0",
"@storybook/manager-api": "7.1.0-alpha.42",
"@storybook/preview-api": "7.1.0-alpha.42",
"@storybook/theming": "7.1.0-alpha.42",
"@storybook/manager-api": "7.1.0-alpha.43",
"@storybook/preview-api": "7.1.0-alpha.43",
"@storybook/theming": "7.1.0-alpha.43",
"react-resize-detector": "^7.1.2",
"tiny-invariant": "^1.3.1",
"upath": "^2.0.1"
Expand Down
Loading