From 278cc2e0a45d7e5da92414a0ece7bfdec8e89088 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Thu, 11 Jul 2024 02:44:43 +0800 Subject: [PATCH] Merge pull request #28524 from storybookjs/norbert/cpc-revert-addon-and-panel-renames (cherry picked from commit 61e1363d89c7de941fdc23c5c5a71d5340a271ba) --- code/core/src/docs-tools/shared.ts | 2 +- code/core/src/manager-api/tests/layout.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/core/src/docs-tools/shared.ts b/code/core/src/docs-tools/shared.ts index ca34c29c6e5e..178bf46ca387 100644 --- a/code/core/src/docs-tools/shared.ts +++ b/code/core/src/docs-tools/shared.ts @@ -1,4 +1,4 @@ -export const ADDON_ID = '@storybook/core/docs'; +export const ADDON_ID = 'storybook/docs'; export const PANEL_ID = `${ADDON_ID}/panel`; export const PARAM_KEY = `docs`; diff --git a/code/core/src/manager-api/tests/layout.test.ts b/code/core/src/manager-api/tests/layout.test.ts index ab31a75502ab..a9ced49e1ac3 100644 --- a/code/core/src/manager-api/tests/layout.test.ts +++ b/code/core/src/manager-api/tests/layout.test.ts @@ -471,14 +471,14 @@ describe('layout API', () => { }); it('should set selectedPanel initially', () => { - const panelName = '@storybook/core/a11y/panel'; + const panelName = 'storybook/a11y/panel'; layoutApi.setOptions({ selectedPanel: panelName }); expect(getLastSetStateArgs()[0].selectedPanel).toEqual(panelName); }); it('should change selectedPanel if it is defined in the options and is different', () => { - const panelName = '@storybook/core/a11y/panel'; + const panelName = 'storybook/a11y/panel'; layoutApi.setOptions({}); layoutApi.setOptions({ selectedPanel: panelName });