fix manager-api imports in manager

This commit is contained in:
Jeppe Reinhold 2024-11-19 15:50:07 +01:00
parent 14c0ab5f86
commit e8ba1c2496
4 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,8 @@ import { createContext, useContext } from 'react';
import type { API_StatusObject, API_StatusState, API_StatusValue, StoryId } from '@storybook/types';
import type { StoriesHash } from '../../../manager-api';
import type { StoriesHash } from '@storybook/core/manager-api';
import type { Item } from '../../container/Sidebar';
import { getDescendantIds } from '../../utils/tree';

View File

@ -5,8 +5,8 @@ import type { Meta, StoryObj } from '@storybook/react';
import { fn, userEvent } from '@storybook/test';
import type { TestProviders } from '@storybook/core/core-events';
import { ManagerContext } from '@storybook/core/manager-api';
import { ManagerContext } from '../../../manager-api';
import { TestingModule } from './TestingModule';
const baseState = {

View File

@ -1,13 +1,13 @@
import React, { type SyntheticEvent, useEffect, useRef, useState } from 'react';
import { Button, TooltipNote } from '@storybook/core/components';
import { WithTooltip } from '@storybook/core/components';
import { keyframes, styled } from '@storybook/core/theming';
import { ChevronSmallUpIcon, PlayAllHollowIcon } from '@storybook/icons';
import type { TestProviders } from '@storybook/core/core-events';
import { useStorybookApi } from '@storybook/core/manager-api';
import { WithTooltip } from '../../../components/components/tooltip/WithTooltip';
import { useStorybookApi } from '../../../manager-api';
import { LegacyRender } from './LegacyRender';
const DEFAULT_HEIGHT = 500;

View File

@ -1,4 +1,4 @@
import type { State } from '../../manager-api/root';
import type { State } from '@storybook/core/manager-api';
export const defaultShortcuts: State['shortcuts'] = {
fullScreen: ['F'],