Measure Addon: Update import paths from internal modules to direct package imports

This commit is contained in:
Norbert de Langen 2025-03-11 12:22:00 +01:00
parent e088653ae0
commit cc34bea12f
4 changed files with 6 additions and 4 deletions

View File

@ -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 = () => {

View File

@ -1,4 +1,4 @@
import { definePreview } from 'storybook/internal/preview-api';
import { definePreview } from 'storybook/preview-api';
import * as addonAnnotations from './preview';

View File

@ -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';

View File

@ -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';