diff --git a/package.json b/package.json index e19fc8e..3c6ed1f 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "typescript": "^4.9.5" }, "peerDependencies": { - "@storybook/api": "^8.0.0", + "@storybook/manager-api": "^8.0.0", "@storybook/components": "^8.0.0", "@storybook/core-events": "^8.0.0", "@storybook/theming": "^8.0.0", diff --git a/src/components/Panel.test.tsx b/src/components/Panel.test.tsx index a195207..2f89b5c 100644 --- a/src/components/Panel.test.tsx +++ b/src/components/Panel.test.tsx @@ -7,7 +7,7 @@ import { ThemeProvider, themes, convert } from '@storybook/theming'; import Panel, { DEFAULT_GROUP_ID } from './Panel'; import { CHANGE, SET } from '../shared'; import PropForm from './PropForm'; -import { API } from '@storybook/api'; +import { API } from '@storybook/manager-api'; type CreateMocked = { [Property in keyof Type]: jest.Mock & Type[Property]; @@ -16,7 +16,7 @@ type CreateMocked = { const createTestApi = (): CreateMocked< Pick > => ({ - on: jest.fn(() => () => {}), + on: jest.fn(() => () => { }), off: jest.fn(), emit: jest.fn(), getQueryParam: jest.fn(() => undefined), @@ -56,7 +56,7 @@ describe('Panel', () => { const testApi = { on: (e, handler) => { handlers[e] = handler; - return () => {}; + return () => { }; }, off: jest.fn(), emit: jest.fn(), @@ -99,7 +99,7 @@ describe('Panel', () => { const testApi = { getQueryParam: jest.fn(), setQueryParams: jest.fn(() => undefined), - on: jest.fn(() => () => {}), + on: jest.fn(() => () => { }), off: jest.fn(), emit: jest.fn(), }; @@ -126,7 +126,7 @@ describe('Panel', () => { emit: jest.fn(), getQueryParam: jest.fn(() => undefined), setQueryParams: jest.fn(), - on: jest.fn(() => () => {}), + on: jest.fn(() => () => { }), }; it.skip('should have no tabs when there are no groupIds', () => {