diff --git a/code/addons/measure/src/Tool.tsx b/code/addons/measure/src/Tool.tsx index b6e9cbf21ca..e00c168d73f 100644 --- a/code/addons/measure/src/Tool.tsx +++ b/code/addons/measure/src/Tool.tsx @@ -1,10 +1,11 @@ import React, { useCallback, useEffect } from 'react'; import { IconButton } from 'storybook/internal/components'; -import { useGlobals, useStorybookApi } from 'storybook/internal/manager-api'; import { RulerIcon } from '@storybook/icons'; +import { useGlobals, useStorybookApi } from 'storybook/manager-api'; + import { ADDON_ID, TOOL_ID } from './constants'; export const Tool = () => { diff --git a/code/addons/measure/src/index.ts b/code/addons/measure/src/index.ts index 40009898f0d..1e804e286e1 100644 --- a/code/addons/measure/src/index.ts +++ b/code/addons/measure/src/index.ts @@ -1,4 +1,4 @@ -import { definePreview } from 'storybook/internal/preview-api'; +import { definePreview } from 'storybook/preview-api'; import * as addonAnnotations from './preview'; diff --git a/code/addons/measure/src/manager.tsx b/code/addons/measure/src/manager.tsx index df36d821171..7d5456d8b3d 100644 --- a/code/addons/measure/src/manager.tsx +++ b/code/addons/measure/src/manager.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { addons, types } from 'storybook/internal/manager-api'; +import { addons, types } from 'storybook/manager-api'; import { Tool } from './Tool'; import { ADDON_ID, TOOL_ID } from './constants'; diff --git a/code/addons/measure/src/withMeasure.ts b/code/addons/measure/src/withMeasure.ts index bc94d6ce252..50fe97f4d67 100644 --- a/code/addons/measure/src/withMeasure.ts +++ b/code/addons/measure/src/withMeasure.ts @@ -1,7 +1,8 @@ /* eslint-env browser */ -import { useEffect } from 'storybook/internal/preview-api'; import type { DecoratorFunction } from 'storybook/internal/types'; +import { useEffect } from 'storybook/preview-api'; + import { destroy, init, rescale } from './box-model/canvas'; import { drawSelectedElement } from './box-model/visualizer'; import { deepElementFromPoint } from './util';