Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions packages/storybook-brand-addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,19 @@
},
"dependencies": {
"@floating-ui/react": "0.26.25",
"@storybook/components": "8.3.6",
"@storybook/csf": "0.1.13",
"@storybook/manager-api": "8.3.6",
"classnames": "2.5.1",
"storybook-dark-mode": "4.0.2"
"@storybook-community/storybook-dark-mode": "4.0.5"
},
"peerDependencies": {
"react": "^17.0.2 || ^18.0.0",
"react-dom": "^17.0.2 || ^18.0.0"
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0",
"storybook": "^10.0.0"
},
"devDependencies": {
"@storybook/types": "8.3.6",
"@types/react": "18.2.45",
"react": "18.2.0",
"react-dom": "18.2.0"
"react-dom": "18.2.0",
"storybook": "10.0.0"
},
"license": "Apache-2.0",
"types": "./dist/esm/index.d.ts",
Expand Down
13 changes: 4 additions & 9 deletions packages/storybook-brand-addon/preset.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
function config(entry = []) {
return [...entry, require.resolve('./dist/cjs/preview.js')];
}

function managerEntries(entry = []) {
return [...entry, require.resolve('./dist/cjs/manager.js')];
}

module.exports = { managerEntries, config };
module.exports = {
managerEntries: (entry = []) => [...entry, require.resolve('./dist/cjs/manager.js')],
previewAnnotations: (entry = []) => [...entry, require.resolve('./dist/cjs/preview.js')],
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from '@storybook/components';
import { Button } from 'storybook/components';
import { SyntheticEvent, useState } from 'react';

import { useCustomBrandContext } from '../../contexts';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IconButton } from '@storybook/components';
import { CircleIcon, EditIcon, TrashIcon } from '@storybook/icons';
import { IconButton } from 'storybook/components';
import { CircleIcon, EditIcon, TrashIcon } from 'storybook/icons';
import cn from 'classnames';
import { SyntheticEvent, useState } from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import '../../styles.css';

import { Button } from '@storybook/components';
import { AddIcon, CircleIcon } from '@storybook/icons';
import { useGlobals } from '@storybook/manager-api';
import { Button } from 'storybook/components';
import { AddIcon, CircleIcon } from 'storybook/icons';
import { useGlobals } from 'storybook/manager-api';
import { useMemo, useState } from 'react';

import { PARAM_CAN_ADD_CUSTOM_BRAND_KEY, PARAM_COLOR_MAP_KEY, PARAM_KEY } from '../../constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from '@storybook/components';
import { Button } from 'storybook/components';
import { SyntheticEvent, useState } from 'react';

import { useCustomBrandContext } from '../../contexts';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useFloating,
useInteractions,
} from '@floating-ui/react';
import { StorybookTheme, useTheme } from '@storybook/theming';
import { StorybookTheme, useTheme } from 'storybook/theming';
import { MouseEvent, ReactNode } from 'react';

type TooltipProps = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useGlobals } from '@storybook/manager-api';
import { useGlobals } from 'storybook/manager-api';
import { createContext, ReactNode, useCallback, useContext, useState } from 'react';

import { DEFAULT_BRAND } from '../constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Globals } from '@storybook/csf';
import { useDarkMode } from 'storybook-dark-mode';
import { Globals } from 'storybook/internal/types';
import { useDarkMode } from '@storybook-community/storybook-dark-mode';

import { PARAM_COLOR_MAP_KEY } from '../constants';
import { getCustomBrands } from '../customBrands';
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-brand-addon/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addons, types } from '@storybook/manager-api';
import { addons, types } from 'storybook/manager-api';

import { BrandSelector } from './components';
import { ADDON_ID, TOOL_ID } from './constants';
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-brand-addon/src/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ProjectAnnotations, Renderer } from '@storybook/csf';
import { ProjectAnnotations, Renderer } from 'storybook/internal/types';

import { BrandProvider } from './BrandProvider';

Expand Down
Loading