Skip to content

Conversation

@ndelangen
Copy link
Member

@ndelangen ndelangen commented Mar 12, 2025

Prepare for unmerged changes here:
storybookjs/storybook#30794

This pull request includes several changes to update import paths across multiple files in the project. The primary goal is to replace the use of internal Storybook modules with their public counterparts to ensure better maintainability and compatibility.

Changes to import paths:

  • src/components/List.tsx: Updated the import path for styled from storybook/internal/theming to storybook/theming.
  • src/components/Panel.tsx: Updated the import paths for useChannel, styled, and useTheme from storybook/internal/manager-api and storybook/internal/theming to storybook/manager-api and storybook/theming.
  • src/components/Tab.tsx: Updated the import paths for useGlobals, useParameter, and styled from storybook/internal/manager-api and storybook/internal/theming to storybook/manager-api and storybook/theming.
  • src/components/Tool.tsx: Updated the import path for useGlobals and API from storybook/internal/manager-api to storybook/manager-api.
  • src/manager.tsx: Updated the import paths for addons and types from storybook/internal/manager-api to storybook/manager-api.
  • src/withGlobals.ts: Updated the import paths for useEffect and useGlobals from storybook/internal/preview-api to storybook/preview-api.
  • src/withRoundTrip.ts: Updated the import paths for useEffect and useChannel from storybook/internal/preview-api to storybook/preview-api.

@ndelangen ndelangen changed the title prep for https://github.com/storybookjs/storybook/pull/30794 Prep for 9.0 (part 2) Mar 12, 2025
@ndelangen ndelangen self-assigned this Mar 12, 2025
@ndelangen ndelangen changed the title Prep for 9.0 (part 2) Prepare for SB9 (part 2) Mar 12, 2025
- Removed outdated dependencies from package-lock.json.
- Updated 'semver' version to 7.7.1 in multiple locations.
- Changed the postinstall script name to '_postinstall' in package.json for better compatibility.
@ndelangen ndelangen marked this pull request as ready for review March 17, 2025 09:09
@ndelangen ndelangen merged commit bb86e79 into norbert/9.0 Mar 17, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants