Skip to content

Commit

Permalink
Merge pull request storybookjs#29660 from storybookjs/jeppe/fix-manag…
Browse files Browse the repository at this point in the history
…er-api-imports

Manager: Fix size regression
  • Loading branch information
JReinhold authored Nov 19, 2024
2 parents 7f1b383 + e8ba1c2 commit d8bb943
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion code/core/src/manager/components/sidebar/StatusContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions code/core/src/manager/components/sidebar/TestingModule.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion code/core/src/manager/settings/defaultShortcuts.tsx
Original file line number Diff line number Diff line change
@@ -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'],
Expand Down

0 comments on commit d8bb943

Please sign in to comment.