diff --git a/package.json b/package.json index 39e65b5551..e80f9dac40 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,6 @@ "rxjs": "^7.2.0", "semver": "^7.5.4", "slash": "^5.1.0", - "storybook-addon-mock-date": "^0.6.0", "temporal-polyfill": "^0.3.0", "ts-key-enum": "^2.0.12", "tslib": "^2.8.1", @@ -82,26 +81,18 @@ "@nx/vite": "22.0.3", "@nx/web": "22.0.3", "@sentry/types": "^8", - "@storybook/addon-actions": "8.6.15", - "@storybook/addon-coverage": "^1.0.0", - "@storybook/addon-essentials": "8.6.15", - "@storybook/addon-interactions": "8.6.15", - "@storybook/addon-links": "8.6.15", - "@storybook/blocks": "8.6.15", - "@storybook/core-server": "8.6.15", + "@storybook/addon-coverage": "^2.0.0", + "@storybook/addon-links": "^9.1.17", "@storybook/icons": "^1.2.9", - "@storybook/preview-api": "8.6.15", - "@storybook/react": "8.6.15", - "@storybook/react-vite": "8.6.15", - "@storybook/test": "8.6.15", + "@storybook/react-vite": "^9.1.17", "@storybook/test-runner": "^0.23.0", - "@storybook/types": "8.6.15", "@stylistic/eslint-plugin": "^1.5.0", "@swc-node/register": "1.8.0", "@swc/cli": "^0.3.12", "@swc/core": "1.13.3", "@swc/helpers": "~0.5.2", "@swc/jest": "^0.2.39", + "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@types/addressparser": "^1.0.3", @@ -161,7 +152,7 @@ "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.4", "eslint-plugin-simple-import-sort": "^10.0.0", - "eslint-plugin-storybook": "^0.9.0", + "eslint-plugin-storybook": "^9.1.17", "eslint-plugin-unicorn": "^56.0.1", "eslint-plugin-unused-imports": "^3.0.0", "http-server": "^14.1.1", @@ -177,9 +168,10 @@ "raw-loader": "^4.0.2", "rimraf": "^5.0.5", "source-map-support": "^0.5.20", - "storybook": "8.6.15", + "storybook": "^9.1.17", "storybook-addon-cookie": "^3.2.0", - "storybook-addon-pseudo-states": "^2.1.2", + "storybook-addon-mock-date": "1.0.0", + "storybook-addon-pseudo-states": "^9.1.17", "supertest": "^6.1.3", "ts-jest": "^29.1.1", "ts-loader": "^9.2.3", diff --git a/packages/twenty-front/.storybook/main.ts b/packages/twenty-front/.storybook/main.ts index b710e79da7..c6d9fa8cbe 100644 --- a/packages/twenty-front/.storybook/main.ts +++ b/packages/twenty-front/.storybook/main.ts @@ -48,11 +48,9 @@ const config: StorybookConfig = { addons: [ getAbsolutePath('@storybook/addon-links'), - getAbsolutePath('@storybook/addon-essentials'), - getAbsolutePath('@storybook/addon-interactions'), getAbsolutePath('@storybook/addon-coverage'), // getAbsolutePath("storybook-dark-mode"), - getAbsolutePath('storybook-addon-cookie'), + // getAbsolutePath('storybook-addon-cookie'), getAbsolutePath('storybook-addon-pseudo-states'), getAbsolutePath('storybook-addon-mock-date'), // getAbsolutePath("@chromatic-com/storybook") diff --git a/packages/twenty-front/.storybook/preview.tsx b/packages/twenty-front/.storybook/preview.tsx index af2e3991f5..81161c7c4a 100644 --- a/packages/twenty-front/.storybook/preview.tsx +++ b/packages/twenty-front/.storybook/preview.tsx @@ -1,16 +1,16 @@ import { ThemeProvider } from '@emotion/react'; -import { type Preview } from '@storybook/react'; +import { type Preview } from '@storybook/react-vite'; import { initialize, mswLoader } from 'msw-storybook-addon'; import { useEffect } from 'react'; //import { useDarkMode } from 'storybook-dark-mode'; // eslint-disable-next-line no-restricted-imports import { RootDecorator } from '../src/testing/decorators/RootDecorator'; -// eslint-disable-next-line no-restricted-imports -import { mockedUserJWT } from '../src/testing/mock-data/jwt'; + import 'react-loading-skeleton/dist/skeleton.css'; import 'twenty-ui/style.css'; import { THEME_LIGHT, ThemeContextProvider } from 'twenty-ui/theme'; +import { mockedUserJWT } from '~/testing/mock-data/jwt'; // eslint-disable-next-line no-restricted-imports import { ClickOutsideListenerContext } from '../src/modules/ui/utilities/pointer-event/contexts/ClickOutsideListenerContext'; diff --git a/packages/twenty-front/src/loading/components/__stories__/PrefetchLoading.stories.tsx b/packages/twenty-front/src/loading/components/__stories__/PrefetchLoading.stories.tsx index f6a0ca09a8..9472e136e4 100644 --- a/packages/twenty-front/src/loading/components/__stories__/PrefetchLoading.stories.tsx +++ b/packages/twenty-front/src/loading/components/__stories__/PrefetchLoading.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { within } from 'storybook/test'; import { RecordIndexPage } from '~/pages/object-record/RecordIndexPage'; import { diff --git a/packages/twenty-front/src/loading/components/__stories__/UserOrMetadataLoader.stories.tsx b/packages/twenty-front/src/loading/components/__stories__/UserOrMetadataLoader.stories.tsx index 48a605e5ca..f196de6000 100644 --- a/packages/twenty-front/src/loading/components/__stories__/UserOrMetadataLoader.stories.tsx +++ b/packages/twenty-front/src/loading/components/__stories__/UserOrMetadataLoader.stories.tsx @@ -1,7 +1,7 @@ import { getOperationName } from '@apollo/client/utilities'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql, http } from 'msw'; +import { expect, within } from 'storybook/test'; import { GET_PUBLIC_WORKSPACE_DATA_BY_DOMAIN } from '@/auth/graphql/queries/getPublicWorkspaceDataByDomain'; import { FIND_MANY_OBJECT_METADATA_ITEMS } from '@/object-metadata/graphql/queries'; diff --git a/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionButton.stories.tsx b/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionButton.stories.tsx index b5fb250d1b..b195d8c659 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionButton.stories.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionButton.stories.tsx @@ -1,11 +1,11 @@ +import { ActionButton } from '@/action-menu/actions/display/components/ActionButton'; import { NoSelectionRecordActionKeys } from '@/action-menu/actions/record-actions/no-selection/types/NoSelectionRecordActionsKeys'; import { SingleRecordActionKeys } from '@/action-menu/actions/record-actions/single-record/types/SingleRecordActionsKey'; import { createMockActionMenuActions } from '@/action-menu/mock/action-menu-actions.mock'; import { getActionLabel } from '@/action-menu/utils/getActionLabel'; -import { expect, fn, userEvent, within } from '@storybook/test'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; -import { ActionButton } from '@/action-menu/actions/display/components/ActionButton'; const meta: Meta = { title: 'Modules/ActionMenu/Actions/Display/ActionButton', diff --git a/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionComponent.stories.tsx b/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionComponent.stories.tsx index e76a5cac55..e61378446d 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionComponent.stories.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionComponent.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { ActionComponent } from '@/action-menu/actions/display/components/ActionComponent'; import { SingleRecordActionKeys } from '@/action-menu/actions/record-actions/single-record/types/SingleRecordActionsKey'; diff --git a/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionDisplay.stories.tsx b/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionDisplay.stories.tsx index afc3188ea0..aa86f1ddf7 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionDisplay.stories.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionDisplay.stories.tsx @@ -1,13 +1,13 @@ +import { ActionDisplay } from '@/action-menu/actions/display/components/ActionDisplay'; import { SingleRecordActionKeys } from '@/action-menu/actions/record-actions/single-record/types/SingleRecordActionsKey'; import { ActionConfigContext } from '@/action-menu/contexts/ActionConfigContext'; import { ActionMenuContext } from '@/action-menu/contexts/ActionMenuContext'; import { createMockActionMenuActions } from '@/action-menu/mock/action-menu-actions.mock'; import { getActionLabel } from '@/action-menu/utils/getActionLabel'; import { SelectableListComponentInstanceContext } from '@/ui/layout/selectable-list/states/contexts/SelectableListComponentInstanceContext'; -import { expect, fn, userEvent, within } from '@storybook/test'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; -import { ActionDisplay } from '@/action-menu/actions/display/components/ActionDisplay'; type Story = StoryObj; diff --git a/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionDropdownItem.stories.tsx b/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionDropdownItem.stories.tsx index 2dba7d0f5b..728806da33 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionDropdownItem.stories.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionDropdownItem.stories.tsx @@ -1,12 +1,12 @@ +import { ActionDropdownItem } from '@/action-menu/actions/display/components/ActionDropdownItem'; import { NoSelectionRecordActionKeys } from '@/action-menu/actions/record-actions/no-selection/types/NoSelectionRecordActionsKeys'; import { SingleRecordActionKeys } from '@/action-menu/actions/record-actions/single-record/types/SingleRecordActionsKey'; import { createMockActionMenuActions } from '@/action-menu/mock/action-menu-actions.mock'; import { getActionLabel } from '@/action-menu/utils/getActionLabel'; import { SelectableListComponentInstanceContext } from '@/ui/layout/selectable-list/states/contexts/SelectableListComponentInstanceContext'; -import { expect, fn, userEvent, within } from '@storybook/test'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; -import { ActionDropdownItem } from '@/action-menu/actions/display/components/ActionDropdownItem'; const meta: Meta = { title: 'Modules/ActionMenu/Actions/Display/ActionDropdownItem', diff --git a/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionListItem.stories.tsx b/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionListItem.stories.tsx index 6d70e33c65..4e869ba547 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionListItem.stories.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/display/components/__stories__/ActionListItem.stories.tsx @@ -1,12 +1,12 @@ +import { ActionListItem } from '@/action-menu/actions/display/components/ActionListItem'; import { NoSelectionRecordActionKeys } from '@/action-menu/actions/record-actions/no-selection/types/NoSelectionRecordActionsKeys'; import { SingleRecordActionKeys } from '@/action-menu/actions/record-actions/single-record/types/SingleRecordActionsKey'; import { createMockActionMenuActions } from '@/action-menu/mock/action-menu-actions.mock'; import { getActionLabel } from '@/action-menu/utils/getActionLabel'; import { SelectableListComponentInstanceContext } from '@/ui/layout/selectable-list/states/contexts/SelectableListComponentInstanceContext'; -import { expect, fn, userEvent, within } from '@storybook/test'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; -import { ActionListItem } from '@/action-menu/actions/display/components/ActionListItem'; type Story = StoryObj; diff --git a/packages/twenty-front/src/modules/action-menu/components/__stories__/CommandMenuActionMenuDropdown.stories.tsx b/packages/twenty-front/src/modules/action-menu/components/__stories__/CommandMenuActionMenuDropdown.stories.tsx index 9596f7b642..06343fe3ab 100644 --- a/packages/twenty-front/src/modules/action-menu/components/__stories__/CommandMenuActionMenuDropdown.stories.tsx +++ b/packages/twenty-front/src/modules/action-menu/components/__stories__/CommandMenuActionMenuDropdown.stories.tsx @@ -1,7 +1,7 @@ -import { expect, userEvent, waitFor, within } from '@storybook/test'; -import * as test from '@storybook/test'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { RecoilRoot } from 'recoil'; +import * as test from 'storybook/test'; +import { expect, userEvent, waitFor, within } from 'storybook/test'; import { CommandMenuActionMenuDropdown } from '@/action-menu/components/CommandMenuActionMenuDropdown'; import { ActionMenuContext } from '@/action-menu/contexts/ActionMenuContext'; diff --git a/packages/twenty-front/src/modules/action-menu/components/__stories__/RecordIndexActionMenuDropdown.stories.tsx b/packages/twenty-front/src/modules/action-menu/components/__stories__/RecordIndexActionMenuDropdown.stories.tsx index 161447d0dc..2b1eff1340 100644 --- a/packages/twenty-front/src/modules/action-menu/components/__stories__/RecordIndexActionMenuDropdown.stories.tsx +++ b/packages/twenty-front/src/modules/action-menu/components/__stories__/RecordIndexActionMenuDropdown.stories.tsx @@ -1,7 +1,7 @@ -import { expect, userEvent, waitFor, within } from '@storybook/test'; -import * as test from '@storybook/test'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { RecoilRoot } from 'recoil'; +import * as test from 'storybook/test'; +import { expect, userEvent, waitFor, within } from 'storybook/test'; import { RecordIndexActionMenuDropdown } from '@/action-menu/components/RecordIndexActionMenuDropdown'; import { ActionMenuContext } from '@/action-menu/contexts/ActionMenuContext'; diff --git a/packages/twenty-front/src/modules/activities/calendar/components/__stories__/Calendar.stories.tsx b/packages/twenty-front/src/modules/activities/calendar/components/__stories__/Calendar.stories.tsx index cf1d15db70..2689dde247 100644 --- a/packages/twenty-front/src/modules/activities/calendar/components/__stories__/Calendar.stories.tsx +++ b/packages/twenty-front/src/modules/activities/calendar/components/__stories__/Calendar.stories.tsx @@ -1,5 +1,5 @@ import { getOperationName } from '@apollo/client/utilities'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; import { CalendarEventsCard } from '@/activities/calendar/components/CalendarEventsCard'; diff --git a/packages/twenty-front/src/modules/activities/tasks/components/__stories__/TaskGroups.stories.tsx b/packages/twenty-front/src/modules/activities/tasks/components/__stories__/TaskGroups.stories.tsx index 494cbdd160..209a6006eb 100644 --- a/packages/twenty-front/src/modules/activities/tasks/components/__stories__/TaskGroups.stories.tsx +++ b/packages/twenty-front/src/modules/activities/tasks/components/__stories__/TaskGroups.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { TaskGroups } from '@/activities/tasks/components/TaskGroups'; import { type ActivityTargetableObject } from '@/activities/types/ActivityTargetableEntity'; diff --git a/packages/twenty-front/src/modules/activities/tasks/components/__stories__/TaskList.stories.tsx b/packages/twenty-front/src/modules/activities/tasks/components/__stories__/TaskList.stories.tsx index f01a0c9af6..a6a6ae36ac 100644 --- a/packages/twenty-front/src/modules/activities/tasks/components/__stories__/TaskList.stories.tsx +++ b/packages/twenty-front/src/modules/activities/tasks/components/__stories__/TaskList.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { TaskList } from '@/activities/tasks/components/TaskList'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/components/__stories__/TimelineActivities.stories.tsx b/packages/twenty-front/src/modules/activities/timeline-activities/components/__stories__/TimelineActivities.stories.tsx index 975f143b44..46ae711ab7 100644 --- a/packages/twenty-front/src/modules/activities/timeline-activities/components/__stories__/TimelineActivities.stories.tsx +++ b/packages/twenty-front/src/modules/activities/timeline-activities/components/__stories__/TimelineActivities.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; import { TimelineCard } from '@/activities/timeline-activities/components/TimelineCard'; diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/rows/calendar/components/__stories__/EventCardCalendarEvent.stories.tsx b/packages/twenty-front/src/modules/activities/timeline-activities/rows/calendar/components/__stories__/EventCardCalendarEvent.stories.tsx index 44c56a8837..e2af054337 100644 --- a/packages/twenty-front/src/modules/activities/timeline-activities/rows/calendar/components/__stories__/EventCardCalendarEvent.stories.tsx +++ b/packages/twenty-front/src/modules/activities/timeline-activities/rows/calendar/components/__stories__/EventCardCalendarEvent.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; import { EventCardCalendarEvent } from '@/activities/timeline-activities/rows/calendar/components/EventCardCalendarEvent'; diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/rows/main-object/components/__stories__/EventRowMainObjectUpdated.stories.tsx b/packages/twenty-front/src/modules/activities/timeline-activities/rows/main-object/components/__stories__/EventRowMainObjectUpdated.stories.tsx index 58eb377e37..9afefeb2fc 100644 --- a/packages/twenty-front/src/modules/activities/timeline-activities/rows/main-object/components/__stories__/EventRowMainObjectUpdated.stories.tsx +++ b/packages/twenty-front/src/modules/activities/timeline-activities/rows/main-object/components/__stories__/EventRowMainObjectUpdated.stories.tsx @@ -1,6 +1,6 @@ import { EventRowMainObjectUpdated } from '@/activities/timeline-activities/rows/main-object/components/EventRowMainObjectUpdated'; import { type TimelineActivity } from '@/activities/timeline-activities/types/TimelineActivity'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/rows/message/components/__stories__/EventCardMessage.stories.tsx b/packages/twenty-front/src/modules/activities/timeline-activities/rows/message/components/__stories__/EventCardMessage.stories.tsx index 0b6d6efde0..bbedf33004 100644 --- a/packages/twenty-front/src/modules/activities/timeline-activities/rows/message/components/__stories__/EventCardMessage.stories.tsx +++ b/packages/twenty-front/src/modules/activities/timeline-activities/rows/message/components/__stories__/EventCardMessage.stories.tsx @@ -1,6 +1,6 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; +import { within } from 'storybook/test'; import { TimelineActivityContext } from '@/activities/timeline-activities/contexts/TimelineActivityContext'; import { EventCardMessage } from '@/activities/timeline-activities/rows/message/components/EventCardMessage'; diff --git a/packages/twenty-front/src/modules/advanced-text-editor/components/__stories__/AdvancedTextEditor.stories.tsx b/packages/twenty-front/src/modules/advanced-text-editor/components/__stories__/AdvancedTextEditor.stories.tsx index 1be2f473bb..002c8127a7 100644 --- a/packages/twenty-front/src/modules/advanced-text-editor/components/__stories__/AdvancedTextEditor.stories.tsx +++ b/packages/twenty-front/src/modules/advanced-text-editor/components/__stories__/AdvancedTextEditor.stories.tsx @@ -1,7 +1,7 @@ import { AdvancedTextEditor } from '@/advanced-text-editor/components/AdvancedTextEditor'; import { useAdvancedTextEditor } from '@/advanced-text-editor/hooks/useAdvancedTextEditor'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, waitFor } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, waitFor } from 'storybook/test'; import { isDefined } from 'twenty-shared/utils'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; diff --git a/packages/twenty-front/src/modules/ai/components/__stories__/AIChatMessage.stories.tsx b/packages/twenty-front/src/modules/ai/components/__stories__/AIChatMessage.stories.tsx index c1b35da1d2..080cb61a8a 100644 --- a/packages/twenty-front/src/modules/ai/components/__stories__/AIChatMessage.stories.tsx +++ b/packages/twenty-front/src/modules/ai/components/__stories__/AIChatMessage.stories.tsx @@ -1,5 +1,5 @@ import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { type ExtendedUIMessage } from 'twenty-shared/ai'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/ai/components/__stories__/CodeExecutionDisplay.stories.tsx b/packages/twenty-front/src/modules/ai/components/__stories__/CodeExecutionDisplay.stories.tsx index 8d2745febb..50d4431bfd 100644 --- a/packages/twenty-front/src/modules/ai/components/__stories__/CodeExecutionDisplay.stories.tsx +++ b/packages/twenty-front/src/modules/ai/components/__stories__/CodeExecutionDisplay.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, userEvent, within } from 'storybook/test'; import { ComponentDecorator } from 'twenty-ui/testing'; import { CodeExecutionDisplay } from '@/ai/components/CodeExecutionDisplay'; diff --git a/packages/twenty-front/src/modules/ai/components/__stories__/TerminalOutput.stories.tsx b/packages/twenty-front/src/modules/ai/components/__stories__/TerminalOutput.stories.tsx index aaa5c1c816..ff17aac22c 100644 --- a/packages/twenty-front/src/modules/ai/components/__stories__/TerminalOutput.stories.tsx +++ b/packages/twenty-front/src/modules/ai/components/__stories__/TerminalOutput.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, userEvent, within } from 'storybook/test'; import { ComponentDecorator } from 'twenty-ui/testing'; import { TerminalOutput } from '@/ai/components/TerminalOutput'; diff --git a/packages/twenty-front/src/modules/analytics/hooks/__tests__/useEventTracker.test.tsx b/packages/twenty-front/src/modules/analytics/hooks/__tests__/useEventTracker.test.tsx index 7e8dd4eba1..9e3c87a158 100644 --- a/packages/twenty-front/src/modules/analytics/hooks/__tests__/useEventTracker.test.tsx +++ b/packages/twenty-front/src/modules/analytics/hooks/__tests__/useEventTracker.test.tsx @@ -1,9 +1,9 @@ import { gql } from '@apollo/client'; import { MockedProvider, type MockedResponse } from '@apollo/client/testing'; -import { expect } from '@storybook/test'; import { act, renderHook, waitFor } from '@testing-library/react'; import { type ReactNode } from 'react'; import { RecoilRoot } from 'recoil'; +import { expect } from 'storybook/test'; import { ANALYTICS_COOKIE_NAME, diff --git a/packages/twenty-front/src/modules/auth/components/__stories__/Logo.stories.tsx b/packages/twenty-front/src/modules/auth/components/__stories__/Logo.stories.tsx index 3c07e329bd..1c84d6b49a 100644 --- a/packages/twenty-front/src/modules/auth/components/__stories__/Logo.stories.tsx +++ b/packages/twenty-front/src/modules/auth/components/__stories__/Logo.stories.tsx @@ -1,11 +1,11 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { Logo } from '@/auth/components/Logo'; import { ComponentDecorator, RecoilRootDecorator, RouterDecorator, } from 'twenty-ui/testing'; -import { Logo } from '@/auth/components/Logo'; const logoUrl = 'https://picsum.photos/192/192'; diff --git a/packages/twenty-front/src/modules/auth/components/__stories__/VerifyEmailEffect.stories.tsx b/packages/twenty-front/src/modules/auth/components/__stories__/VerifyEmailEffect.stories.tsx index 62fce5e1a9..714aeb92dd 100644 --- a/packages/twenty-front/src/modules/auth/components/__stories__/VerifyEmailEffect.stories.tsx +++ b/packages/twenty-front/src/modules/auth/components/__stories__/VerifyEmailEffect.stories.tsx @@ -1,13 +1,13 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type VerifyEmailEffect } from '@/auth/components/VerifyEmailEffect'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { MemoryRouter, Route, Routes } from 'react-router-dom'; import { RecoilRoot } from 'recoil'; -import { type VerifyEmailEffect } from '@/auth/components/VerifyEmailEffect'; // Mock component that just renders the error state of VerifyEmailEffect directly // (since normal VerifyEmailEffect has async logic that's hard to test in Storybook) +import { EmailVerificationSent } from '@/auth/sign-in-up/components/EmailVerificationSent'; import { Modal } from '@/ui/layout/modal/components/Modal'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; -import { EmailVerificationSent } from '@/auth/sign-in-up/components/EmailVerificationSent'; const VerifyEmailEffectErrorState = ({ email = 'user@example.com' }) => { return ( diff --git a/packages/twenty-front/src/modules/auth/hooks/__tests__/useAuth.test.tsx b/packages/twenty-front/src/modules/auth/hooks/__tests__/useAuth.test.tsx index 9038bb794a..b15c313552 100644 --- a/packages/twenty-front/src/modules/auth/hooks/__tests__/useAuth.test.tsx +++ b/packages/twenty-front/src/modules/auth/hooks/__tests__/useAuth.test.tsx @@ -6,16 +6,11 @@ import { supportChatState } from '@/client-config/states/supportChatState'; import { workspaceAuthProvidersState } from '@/workspace/states/workspaceAuthProvidersState'; import { useApolloClient } from '@apollo/client'; import { MockedProvider } from '@apollo/client/testing'; -import { expect } from '@storybook/test'; import { type ReactNode, act } from 'react'; import { MemoryRouter } from 'react-router-dom'; import { RecoilRoot, useRecoilValue } from 'recoil'; +import { expect } from 'storybook/test'; -import { isMultiWorkspaceEnabledState } from '@/client-config/states/isMultiWorkspaceEnabledState'; -import { SnackBarComponentInstanceContext } from '@/ui/feedback/snack-bar-manager/contexts/SnackBarComponentInstanceContext'; -import { renderHook } from '@testing-library/react'; -import { iconsState } from 'twenty-ui/display'; -import { SupportDriver } from '~/generated/graphql'; import { email, mocks, @@ -23,6 +18,11 @@ import { results, token, } from '@/auth/hooks/__mocks__/useAuth'; +import { isMultiWorkspaceEnabledState } from '@/client-config/states/isMultiWorkspaceEnabledState'; +import { SnackBarComponentInstanceContext } from '@/ui/feedback/snack-bar-manager/contexts/SnackBarComponentInstanceContext'; +import { renderHook } from '@testing-library/react'; +import { iconsState } from 'twenty-ui/display'; +import { SupportDriver } from '~/generated/graphql'; const redirectSpy = jest.fn(); diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/__stories__/EmailVerificationSent.stories.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/__stories__/EmailVerificationSent.stories.tsx index c41d71e626..2c88fe0c08 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/components/__stories__/EmailVerificationSent.stories.tsx +++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/__stories__/EmailVerificationSent.stories.tsx @@ -1,9 +1,9 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { EmailVerificationSent } from '@/auth/sign-in-up/components/EmailVerificationSent'; import { Modal } from '@/ui/layout/modal/components/Modal'; import { ComponentDecorator } from 'twenty-ui/testing'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; -import { EmailVerificationSent } from '@/auth/sign-in-up/components/EmailVerificationSent'; // Wrap the component in Modal.Content to reflect how it's used in the app const RenderWithModal = ( diff --git a/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx b/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx index 4a669b9387..b124c12590 100644 --- a/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx +++ b/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx @@ -1,6 +1,10 @@ -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, within } from '@storybook/test'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; import { useSetRecoilState } from 'recoil'; +import { expect, userEvent, within } from 'storybook/test'; import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; @@ -18,6 +22,7 @@ import { sleep } from '~/utils/sleep'; import { ActionMenuComponentInstanceContext } from '@/action-menu/states/contexts/ActionMenuComponentInstanceContext'; import { currentUserWorkspaceState } from '@/auth/states/currentUserWorkspaceState'; +import { type CommandMenu } from '@/command-menu/components/CommandMenu'; import { CommandMenuRouter } from '@/command-menu/components/CommandMenuRouter'; import { COMMAND_MENU_COMPONENT_INSTANCE_ID } from '@/command-menu/constants/CommandMenuComponentInstanceId'; import { COMMAND_MENU_SEARCH_INPUT_FOCUS_ID } from '@/command-menu/constants/CommandMenuSearchInputFocusId'; @@ -32,7 +37,6 @@ import { HttpResponse, graphql } from 'msw'; import { IconDotsVertical } from 'twenty-ui/display'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { JestContextStoreSetter } from '~/testing/jest/JestContextStoreSetter'; -import { type CommandMenu } from '@/command-menu/components/CommandMenu'; const openTimeout = 50; diff --git a/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenuContextRecordChip.stories.tsx b/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenuContextRecordChip.stories.tsx index 0f346ea343..5c93d6ec85 100644 --- a/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenuContextRecordChip.stories.tsx +++ b/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenuContextRecordChip.stories.tsx @@ -1,5 +1,9 @@ import { gql } from '@apollo/client'; -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; import { CommandMenuContextRecordsChip } from '@/command-menu/components/CommandMenuContextRecordsChip'; import { PreComputedChipGeneratorsContext } from '@/object-metadata/contexts/PreComputedChipGeneratorsContext'; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getManualSortOrderFromConfig.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getManualSortOrderFromConfig.test.ts index cfcecc435d..64500ba717 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getManualSortOrderFromConfig.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getManualSortOrderFromConfig.test.ts @@ -1,5 +1,5 @@ import { getManualSortOrderFromConfig } from '@/command-menu/pages/page-layout/utils/getManualSortOrderFromConfig'; -import { expect } from '@storybook/test'; +import { expect } from 'storybook/test'; import { WidgetConfigurationType, type BarChartConfiguration, diff --git a/packages/twenty-front/src/modules/keyboard-shortcut-menu/components/__stories__/KeyboardShortcutMenu.stories.tsx b/packages/twenty-front/src/modules/keyboard-shortcut-menu/components/__stories__/KeyboardShortcutMenu.stories.tsx index 341a18c338..8e4f17dfb5 100644 --- a/packages/twenty-front/src/modules/keyboard-shortcut-menu/components/__stories__/KeyboardShortcutMenu.stories.tsx +++ b/packages/twenty-front/src/modules/keyboard-shortcut-menu/components/__stories__/KeyboardShortcutMenu.stories.tsx @@ -1,13 +1,13 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; +import { KeyboardShortcutMenu } from '@/keyboard-shortcut-menu/components/KeyboardShortcutMenu'; import { useKeyboardShortcutMenu } from '@/keyboard-shortcut-menu/hooks/useKeyboardShortcutMenu'; import { useEffect } from 'react'; import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; -import { KeyboardShortcutMenu } from '@/keyboard-shortcut-menu/components/KeyboardShortcutMenu'; const meta: Meta = { title: 'Modules/KeyboardShortcutMenu/KeyboardShortcutMenu', diff --git a/packages/twenty-front/src/modules/keyboard-shortcut-menu/hooks/__tests__/useKeyboardShortcutMenu.test.tsx b/packages/twenty-front/src/modules/keyboard-shortcut-menu/hooks/__tests__/useKeyboardShortcutMenu.test.tsx index 077479daa3..d3271ce732 100644 --- a/packages/twenty-front/src/modules/keyboard-shortcut-menu/hooks/__tests__/useKeyboardShortcutMenu.test.tsx +++ b/packages/twenty-front/src/modules/keyboard-shortcut-menu/hooks/__tests__/useKeyboardShortcutMenu.test.tsx @@ -1,7 +1,7 @@ -import { expect } from '@storybook/test'; import { renderHook } from '@testing-library/react'; import { act } from 'react'; import { RecoilRoot, useRecoilValue } from 'recoil'; +import { expect } from 'storybook/test'; import { isKeyboardShortcutMenuOpenedState } from '@/keyboard-shortcut-menu/states/isKeyboardShortcutMenuOpenedState'; diff --git a/packages/twenty-front/src/modules/navigation/components/__stories__/AppNavigationDrawer.stories.tsx b/packages/twenty-front/src/modules/navigation/components/__stories__/AppNavigationDrawer.stories.tsx index 74ef51c310..1454331c9c 100644 --- a/packages/twenty-front/src/modules/navigation/components/__stories__/AppNavigationDrawer.stories.tsx +++ b/packages/twenty-front/src/modules/navigation/components/__stories__/AppNavigationDrawer.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect } from 'react'; import { MemoryRouter } from 'react-router-dom'; import { useSetRecoilState } from 'recoil'; @@ -9,13 +9,13 @@ import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecora import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; -import { isNavigationDrawerExpandedState } from '@/ui/navigation/states/isNavigationDrawerExpanded'; -import { AppPath } from 'twenty-shared/types'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { AppNavigationDrawer, type AppNavigationDrawerProps, } from '@/navigation/components/AppNavigationDrawer'; +import { isNavigationDrawerExpandedState } from '@/ui/navigation/states/isNavigationDrawerExpanded'; +import { AppPath } from 'twenty-shared/types'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const MobileNavigationDrawerStateSetterEffect = ({ mobileNavigationDrawer = 'main', diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateManyRecords.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateManyRecords.test.tsx index 6b76c94942..92ce93f6ba 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateManyRecords.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateManyRecords.test.tsx @@ -1,5 +1,5 @@ -import { mocked } from '@storybook/test'; import { act, renderHook } from '@testing-library/react'; +import { mocked } from 'storybook/test'; import { v4 } from 'uuid'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useGenerateFindManyRecordsForMultipleMetadataItemsQuery.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useGenerateFindManyRecordsForMultipleMetadataItemsQuery.test.tsx index bd9d643e0b..670491ffa0 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useGenerateFindManyRecordsForMultipleMetadataItemsQuery.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useGenerateFindManyRecordsForMultipleMetadataItemsQuery.test.tsx @@ -1,7 +1,7 @@ -import { expect } from '@storybook/test'; import { renderHook } from '@testing-library/react'; import { type ReactNode } from 'react'; import { RecoilRoot } from 'recoil'; +import { expect } from 'storybook/test'; import { useGenerateCombinedFindManyRecordsQuery } from '@/object-record/multiple-objects/hooks/useGenerateCombinedFindManyRecordsQuery'; import { JestObjectMetadataItemSetter } from '~/testing/jest/JestObjectMetadataItemSetter'; diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useLazyFetchAllRecords.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useLazyFetchAllRecords.test.tsx index b5c453f934..ee3b776b10 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useLazyFetchAllRecords.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useLazyFetchAllRecords.test.tsx @@ -1,9 +1,9 @@ import { PERSON_FRAGMENT_WITH_DEPTH_ZERO_RELATIONS } from '@/object-record/hooks/__mocks__/personFragments'; import { useLazyFetchAllRecords } from '@/object-record/hooks/useLazyFetchAllRecords'; import { type MockedResponse } from '@apollo/client/testing'; -import { expect } from '@storybook/test'; import { act, renderHook, waitFor } from '@testing-library/react'; import gql from 'graphql-tag'; +import { expect } from 'storybook/test'; import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useUpdateOneRecord.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useUpdateOneRecord.test.tsx index 6ab1e48942..3c77aa8c6a 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useUpdateOneRecord.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useUpdateOneRecord.test.tsx @@ -7,7 +7,7 @@ import { } from '@/object-record/hooks/__mocks__/useUpdateOneRecord'; import { useRefetchAggregateQueries } from '@/object-record/hooks/useRefetchAggregateQueries'; import { useUpdateOneRecord } from '@/object-record/hooks/useUpdateOneRecord'; -import { expect } from '@storybook/test'; +import { expect } from 'storybook/test'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; const person = { id: '36abbb63-34ed-4a16-89f5-f549ac55d0f9' }; diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/__stories__/ObjectOptionsDropdownContent.stories.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/__stories__/ObjectOptionsDropdownContent.stories.tsx index 527988e4c0..a00f625cab 100644 --- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/__stories__/ObjectOptionsDropdownContent.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/__stories__/ObjectOptionsDropdownContent.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState'; import { RecordComponentInstanceContextsWrapper } from '@/object-record/components/RecordComponentInstanceContextsWrapper'; diff --git a/packages/twenty-front/src/modules/object-record/record-calendar/month/components/__stories__/RecordCalendarMonth.stories.tsx b/packages/twenty-front/src/modules/object-record/record-calendar/month/components/__stories__/RecordCalendarMonth.stories.tsx index 68fa44b808..844f4079c9 100644 --- a/packages/twenty-front/src/modules/object-record/record-calendar/month/components/__stories__/RecordCalendarMonth.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-calendar/month/components/__stories__/RecordCalendarMonth.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { type TaskGroups } from '@/activities/tasks/components/TaskGroups'; import { contextStoreCurrentViewIdComponentState } from '@/context-store/states/contextStoreCurrentViewIdComponentState'; diff --git a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/duplicate/components/__stories__/RecordDetailDuplicatesSection.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/duplicate/components/__stories__/RecordDetailDuplicatesSection.stories.tsx index 996868e998..21c59ca252 100644 --- a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/duplicate/components/__stories__/RecordDetailDuplicatesSection.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/duplicate/components/__stories__/RecordDetailDuplicatesSection.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; @@ -7,8 +7,8 @@ import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; import { getCompaniesMock } from '~/testing/mock-data/companies'; -import { ComponentDecorator } from 'twenty-ui/testing'; import { RecordDetailDuplicatesSection } from '@/object-record/record-field-list/record-detail-section/duplicate/components/RecordDetailDuplicatesSection'; +import { ComponentDecorator } from 'twenty-ui/testing'; const companiesMock = getCompaniesMock(); diff --git a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/__stories__/RecordDetailRelationSection.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/__stories__/RecordDetailRelationSection.stories.tsx index 0bc442439e..b9d2d44964 100644 --- a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/__stories__/RecordDetailRelationSection.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/__stories__/RecordDetailRelationSection.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { formatFieldMetadataItemAsFieldDefinition } from '@/object-metadata/utils/formatFieldMetadataItemAsFieldDefinition'; import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext'; @@ -11,12 +11,12 @@ import { getCompaniesMock } from '~/testing/mock-data/companies'; import { ContextStoreComponentInstanceContext } from '@/context-store/states/contexts/ContextStoreComponentInstanceContext'; import { RecordFieldsScopeContextProvider } from '@/object-record/record-field-list/contexts/RecordFieldsScopeContext'; +import { RecordDetailRelationSection } from '@/object-record/record-field-list/record-detail-section/relation/components/RecordDetailRelationSection'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { RightDrawerDecorator } from '~/testing/decorators/RightDrawerDecorator'; import { allMockPersonRecords } from '~/testing/mock-data/people'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; -import { RecordDetailRelationSection } from '@/object-record/record-field-list/record-detail-section/relation/components/RecordDetailRelationSection'; const companiesMock = getCompaniesMock(); diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormAddressFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormAddressFieldInput.stories.tsx index 16eedf1bfc..743bf5377b 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormAddressFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormAddressFieldInput.stories.tsx @@ -1,8 +1,8 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { FormAddressFieldInput } from '@/object-record/record-field/ui/form-types/components/FormAddressFieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; -import { FormAddressFieldInput } from '@/object-record/record-field/ui/form-types/components/FormAddressFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormAddressFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormAdvancedTextFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormAdvancedTextFieldInput.stories.tsx index ae6d1161d9..5f51fbc160 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormAdvancedTextFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormAdvancedTextFieldInput.stories.tsx @@ -1,8 +1,8 @@ import { FormAdvancedTextFieldInput } from '@/object-record/record-field/ui/form-types/components/FormAdvancedTextFieldInput'; import { WorkflowVariablePicker } from '@/workflow/workflow-variables/components/WorkflowVariablePicker'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { graphql, HttpResponse } from 'msw'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; @@ -19,7 +19,7 @@ const DEFAULT_PROPS = { defaultValue: '', onChange: fn(), readonly: false, - maxHeight: 200, + minHeight: 200, maxWidth: 800, }; @@ -255,7 +255,7 @@ export const CustomSize: Story = { args: { ...DEFAULT_PROPS, label: 'Custom Size Field', - maxHeight: 300, + minHeight: 300, maxWidth: 600, placeholder: 'This field has custom dimensions...', }, diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormArrayFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormArrayFieldInput.stories.tsx index cbd1bbe131..da2e36c6e0 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormArrayFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormArrayFieldInput.stories.tsx @@ -1,11 +1,11 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; +import { FormArrayFieldInput } from '@/object-record/record-field/ui/form-types/components/FormArrayFieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; import { isDefined } from 'twenty-shared/utils'; import { getCanvasElementForDropdownTesting } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormArrayFieldInput } from '@/object-record/record-field/ui/form-types/components/FormArrayFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormArrayFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormBooleanFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormBooleanFieldInput.stories.tsx index f0991fb9eb..6571c5c3d3 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormBooleanFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormBooleanFieldInput.stories.tsx @@ -1,10 +1,10 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; +import { FormBooleanFieldInput } from '@/object-record/record-field/ui/form-types/components/FormBooleanFieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; import { getCanvasElementForDropdownTesting } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormBooleanFieldInput } from '@/object-record/record-field/ui/form-types/components/FormBooleanFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormBooleanFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormCountryCodeSelectInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormCountryCodeSelectInput.stories.tsx index d0db420e91..1ffb54744b 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormCountryCodeSelectInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormCountryCodeSelectInput.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { within } from 'storybook/test'; import { FormCountryCodeSelectInput } from '@/object-record/record-field/ui/form-types/components/FormCountryCodeSelectInput'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormCountrySelectInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormCountrySelectInput.stories.tsx index 2a38b392e5..fb36fd3647 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormCountrySelectInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormCountrySelectInput.stories.tsx @@ -1,6 +1,6 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; import { FormCountrySelectInput } from '@/object-record/record-field/ui/form-types/components/FormCountrySelectInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { within } from 'storybook/test'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormCountrySelectInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormCurrencyFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormCurrencyFieldInput.stories.tsx index 17fb2e7a41..b0339b7f0b 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormCurrencyFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormCurrencyFieldInput.stories.tsx @@ -1,11 +1,11 @@ +import { FormCurrencyFieldInput } from '@/object-record/record-field/ui/form-types/components/FormCurrencyFieldInput'; import { type FieldCurrencyValue } from '@/object-record/record-field/ui/types/FieldMetadata'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { CurrencyCode } from 'twenty-shared/constants'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormCurrencyFieldInput } from '@/object-record/record-field/ui/form-types/components/FormCurrencyFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormCurrencyFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormEmailsFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormEmailsFieldInput.stories.tsx index 7ac370e33a..5f0386beba 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormEmailsFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormEmailsFieldInput.stories.tsx @@ -1,9 +1,9 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; +import { FormEmailsFieldInput } from '@/object-record/record-field/ui/form-types/components/FormEmailsFieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormEmailsFieldInput } from '@/object-record/record-field/ui/form-types/components/FormEmailsFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormEmailsFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormFullNameFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormFullNameFieldInput.stories.tsx index 72984d76ee..b5e1b1775b 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormFullNameFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormFullNameFieldInput.stories.tsx @@ -1,9 +1,9 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { FormFullNameFieldInput } from '@/object-record/record-field/ui/form-types/components/FormFullNameFieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormFullNameFieldInput } from '@/object-record/record-field/ui/form-types/components/FormFullNameFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormFullNameFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormLinksFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormLinksFieldInput.stories.tsx index 2bed7dd259..88da461bb9 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormLinksFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormLinksFieldInput.stories.tsx @@ -1,8 +1,8 @@ -import { expect, fn, userEvent, within } from '@storybook/test'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { FormLinksFieldInput } from '@/object-record/record-field/ui/form-types/components/FormLinksFieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; -import { FormLinksFieldInput } from '@/object-record/record-field/ui/form-types/components/FormLinksFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormLinksFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormMultiSelectFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormMultiSelectFieldInput.stories.tsx index 8410cddb75..1a4e6148d8 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormMultiSelectFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormMultiSelectFieldInput.stories.tsx @@ -1,9 +1,9 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { FormMultiSelectFieldInput } from '@/object-record/record-field/ui/form-types/components/FormMultiSelectFieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormMultiSelectFieldInput } from '@/object-record/record-field/ui/form-types/components/FormMultiSelectFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormMultiSelectFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormNumberFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormNumberFieldInput.stories.tsx index e5f3645bff..dd5748d344 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormNumberFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormNumberFieldInput.stories.tsx @@ -1,6 +1,6 @@ -import { expect, within } from '@storybook/test'; -import { type Meta, type StoryObj } from '@storybook/react'; import { FormNumberFieldInput } from '@/object-record/record-field/ui/form-types/components/FormNumberFieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormNumberFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormPhoneFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormPhoneFieldInput.stories.tsx index 2b723e873e..8297bf3db3 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormPhoneFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormPhoneFieldInput.stories.tsx @@ -1,12 +1,12 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useState } from 'react'; +import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; +import { FormPhoneFieldInput } from '@/object-record/record-field/ui/form-types/components/FormPhoneFieldInput'; import { type FieldPhonesValue } from '@/object-record/record-field/ui/types/FieldMetadata'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormPhoneFieldInput } from '@/object-record/record-field/ui/form-types/components/FormPhoneFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormPhoneFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRawJsonFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRawJsonFieldInput.stories.tsx index ff0aa6ba1f..9c3142072b 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRawJsonFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRawJsonFieldInput.stories.tsx @@ -1,10 +1,10 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; +import { FormRawJsonFieldInput } from '@/object-record/record-field/ui/form-types/components/FormRawJsonFieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; import { getUserDevice } from 'twenty-ui/utilities'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormRawJsonFieldInput } from '@/object-record/record-field/ui/form-types/components/FormRawJsonFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormRawJsonFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRichTextV2FieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRichTextV2FieldInput.stories.tsx index 494b08c82b..00a4d73335 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRichTextV2FieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRichTextV2FieldInput.stories.tsx @@ -1,4 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { FormRichTextV2FieldInput } from '@/object-record/record-field/ui/form-types/components/FormRichTextV2FieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { expect, fn, @@ -6,12 +7,11 @@ import { waitFor, waitForElementToBeRemoved, within, -} from '@storybook/test'; +} from 'storybook/test'; import { getUserDevice } from 'twenty-ui/utilities'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormRichTextV2FieldInput } from '@/object-record/record-field/ui/form-types/components/FormRichTextV2FieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormRichTextV2FieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormSelectFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormSelectFieldInput.stories.tsx index 74642e4964..4724ea91bd 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormSelectFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormSelectFieldInput.stories.tsx @@ -1,9 +1,9 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { FormSelectFieldInput } from '@/object-record/record-field/ui/form-types/components/FormSelectFieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormSelectFieldInput } from '@/object-record/record-field/ui/form-types/components/FormSelectFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormSelectFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormSingleRecordPicker.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormSingleRecordPicker.stories.tsx index 5e91de9860..c23720b5c2 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormSingleRecordPicker.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormSingleRecordPicker.stories.tsx @@ -1,5 +1,6 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { FormSingleRecordPicker } from '@/object-record/record-field/ui/form-types/components/FormSingleRecordPicker'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { isDefined } from 'twenty-shared/utils'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; @@ -9,7 +10,6 @@ import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorato import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormSingleRecordPicker } from '@/object-record/record-field/ui/form-types/components/FormSingleRecordPicker'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormSingleRecordPicker', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormTextFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormTextFieldInput.stories.tsx index 8e03d50f5f..acf943c522 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormTextFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormTextFieldInput.stories.tsx @@ -1,4 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { FormTextFieldInput } from '@/object-record/record-field/ui/form-types/components/FormTextFieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { expect, fn, @@ -6,12 +7,11 @@ import { waitFor, waitForElementToBeRemoved, within, -} from '@storybook/test'; +} from 'storybook/test'; import { getUserDevice } from 'twenty-ui/utilities'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormTextFieldInput } from '@/object-record/record-field/ui/form-types/components/FormTextFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormTextFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormUuidFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormUuidFieldInput.stories.tsx index 85f0a52739..d8ee65df7b 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormUuidFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormUuidFieldInput.stories.tsx @@ -1,9 +1,9 @@ -import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { FormUuidFieldInput } from '@/object-record/record-field/ui/form-types/components/FormUuidFieldInput'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; -import { FormUuidFieldInput } from '@/object-record/record-field/ui/form-types/components/FormUuidFieldInput'; const meta: Meta = { title: 'UI/Data/Field/Form/Input/FormUuidFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/VariableChip.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/VariableChip.stories.tsx index 4b793e6d37..05bb43d5aa 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/VariableChip.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/VariableChip.stories.tsx @@ -1,6 +1,6 @@ import { VariableChip } from '@/object-record/record-field/ui/form-types/components/VariableChip'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/ActorFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/ActorFieldDisplay.perf.stories.tsx index 37a7c61cb7..b2a90dc64d 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/ActorFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/ActorFieldDisplay.perf.stories.tsx @@ -1,5 +1,5 @@ import { ActorFieldDisplay } from '@/object-record/record-field/ui/meta-types/display/components/ActorFieldDisplay'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from 'twenty-ui/testing'; import { AuthContextDecorator } from '~/testing/decorators/AuthContextDecorator'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/AddressFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/AddressFieldDisplay.perf.stories.tsx index 9ac239177c..6b7454764f 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/AddressFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/AddressFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { AddressFieldDisplay } from '@/object-record/record-field/ui/meta-types/display/components/AddressFieldDisplay'; import { type FieldAddressValue } from '@/object-record/record-field/ui/types/FieldMetadata'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/BooleanFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/BooleanFieldDisplay.perf.stories.tsx index 13eb4d55b1..0fb599933a 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/BooleanFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/BooleanFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { BooleanFieldDisplay } from '@/object-record/record-field/ui/meta-types/display/components/BooleanFieldDisplay'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/ChipFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/ChipFieldDisplay.perf.stories.tsx index 990c159556..3cb37ce67e 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/ChipFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/ChipFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CoreObjectNamePlural } from '@/object-metadata/types/CoreObjectNamePlural'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/CurrencyFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/CurrencyFieldDisplay.perf.stories.tsx index c62b0c5c8b..6b2be84bf6 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/CurrencyFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/CurrencyFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CurrencyFieldDisplay } from '@/object-record/record-field/ui/meta-types/display/components/CurrencyFieldDisplay'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/DateFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/DateFieldDisplay.perf.stories.tsx index 86c7d569a2..7765efaf06 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/DateFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/DateFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { DateFormat } from '@/localization/constants/DateFormat'; import { TimeFormat } from '@/localization/constants/TimeFormat'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/DateTimeFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/DateTimeFieldDisplay.perf.stories.tsx index d0ec304ff3..7539d1e399 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/DateTimeFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/DateTimeFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { DateFormat } from '@/localization/constants/DateFormat'; import { TimeFormat } from '@/localization/constants/TimeFormat'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/EmailsFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/EmailsFieldDisplay.perf.stories.tsx index b06f29e5ce..9d3aa43a80 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/EmailsFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/EmailsFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { EmailsFieldDisplay } from '@/object-record/record-field/ui/meta-types/display/components/EmailsFieldDisplay'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/FullNameFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/FullNameFieldDisplay.perf.stories.tsx index 772d2dcfe4..866c8d1ee4 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/FullNameFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/FullNameFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { FullNameFieldDisplay } from '@/object-record/record-field/ui/meta-types/display/components/FullNameFieldDisplay'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/LinksFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/LinksFieldDisplay.perf.stories.tsx index 61529b297a..f3aacdd66e 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/LinksFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/LinksFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useContext, useEffect } from 'react'; import { FieldFocusContext } from '@/object-record/record-field/ui/contexts/FieldFocusContext'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/MultiSelectFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/MultiSelectFieldDisplay.perf.stories.tsx index 72fe6e3bf4..03dc18a1cb 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/MultiSelectFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/MultiSelectFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useContext, useEffect } from 'react'; import { FieldFocusContext } from '@/object-record/record-field/ui/contexts/FieldFocusContext'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/NumberFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/NumberFieldDisplay.perf.stories.tsx index 3ce6323acc..067d8a8e6b 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/NumberFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/NumberFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { NumberFieldDisplay } from '@/object-record/record-field/ui/meta-types/display/components/NumberFieldDisplay'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/PhonesFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/PhonesFieldDisplay.perf.stories.tsx index b67de61412..0de735260b 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/PhonesFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/PhonesFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { PhonesFieldDisplay } from '@/object-record/record-field/ui/meta-types/display/components/PhonesFieldDisplay'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/RatingFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/RatingFieldDisplay.perf.stories.tsx index e8b9e67c95..69189fdc0c 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/RatingFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/RatingFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { RatingFieldDisplay } from '@/object-record/record-field/ui/meta-types/display/components/RatingFieldDisplay'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/RelationFromManyFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/RelationFromManyFieldDisplay.perf.stories.tsx index 3109d91e2c..f23862b79e 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/RelationFromManyFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/RelationFromManyFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect } from 'react'; import { useSetRecoilState } from 'recoil'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/RelationToOneFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/RelationToOneFieldDisplay.perf.stories.tsx index 5bb6d972cc..bf5840735b 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/RelationToOneFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/RelationToOneFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { RelationToOneFieldDisplay } from '@/object-record/record-field/ui/meta-types/display/components/RelationToOneFieldDisplay'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/SelectFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/SelectFieldDisplay.perf.stories.tsx index cf6cce9fb0..3b53d2b976 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/SelectFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/SelectFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { SelectFieldDisplay } from '@/object-record/record-field/ui/meta-types/display/components/SelectFieldDisplay'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/TextFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/TextFieldDisplay.perf.stories.tsx index c4de742097..a475d06e8d 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/TextFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/__stories__/perf/TextFieldDisplay.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { TextFieldDisplay } from '@/object-record/record-field/ui/meta-types/display/components/TextFieldDisplay'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/AddressFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/AddressFieldInput.stories.tsx index 4aec2ab9d3..93b89547e5 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/AddressFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/AddressFieldInput.stories.tsx @@ -1,5 +1,9 @@ -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; +import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext'; import { useAddressField } from '@/object-record/record-field/ui/meta-types/hooks/useAddressField'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/ArrayFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/ArrayFieldInput.stories.tsx index dfd1cc8254..94836a9f61 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/ArrayFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/ArrayFieldInput.stories.tsx @@ -1,6 +1,6 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, waitFor, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect } from 'react'; +import { expect, userEvent, waitFor, within } from 'storybook/test'; import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext'; import { useArrayField } from '@/object-record/record-field/ui/meta-types/hooks/useArrayField'; @@ -11,9 +11,9 @@ import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFi import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePushFocusItemToFocusStack'; import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType'; +import { ArrayFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/ArrayFieldInput'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; -import { ArrayFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/ArrayFieldInput'; const { FieldInputEventContextProviderWithJestMocks } = getFieldInputEventContextProviderWithJestMocks(); diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/BooleanFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/BooleanFieldInput.stories.tsx index 90e32f15c9..5f992b186e 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/BooleanFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/BooleanFieldInput.stories.tsx @@ -1,18 +1,18 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect } from 'react'; import { useSetRecoilState } from 'recoil'; +import { expect, userEvent, within } from 'storybook/test'; import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { getFieldInputEventContextProviderWithJestMocks } from '@/object-record/record-field/ui/meta-types/input/components/__stories__/utils/getFieldInputEventContextProviderWithJestMocks'; +import { BooleanFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/BooleanFieldInput'; import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext'; import { RECORD_TABLE_CELL_INPUT_ID_PREFIX } from '@/object-record/record-table/constants/RecordTableCellInputIdPrefix'; import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFieldInputId'; -import { BooleanFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/BooleanFieldInput'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const { FieldInputEventContextProviderWithJestMocks, handleSubmitMocked } = getFieldInputEventContextProviderWithJestMocks(); diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/DateTimeFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/DateTimeFieldInput.stories.tsx index 0798cf158d..84960e5c03 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/DateTimeFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/DateTimeFieldInput.stories.tsx @@ -1,20 +1,20 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect } from 'react'; +import { expect, userEvent, within } from 'storybook/test'; import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePushFocusItemToFocusStack'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { RecordFieldsScopeContextProvider } from '@/object-record/record-field-list/contexts/RecordFieldsScopeContext'; import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext'; +import { useDateTimeField } from '@/object-record/record-field/ui/meta-types/hooks/useDateTimeField'; import { getFieldInputEventContextProviderWithJestMocks } from '@/object-record/record-field/ui/meta-types/input/components/__stories__/utils/getFieldInputEventContextProviderWithJestMocks'; +import { DateTimeFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/DateTimeFieldInput'; import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext'; import { RECORD_TABLE_CELL_INPUT_ID_PREFIX } from '@/object-record/record-table/constants/RecordTableCellInputIdPrefix'; import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFieldInputId'; import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType'; import { StorybookFieldInputDropdownFocusIdSetterEffect } from '~/testing/components/StorybookFieldInputDropdownFocusIdSetterEffect'; -import { useDateTimeField } from '@/object-record/record-field/ui/meta-types/hooks/useDateTimeField'; -import { DateTimeFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/DateTimeFieldInput'; const { FieldInputEventContextProviderWithJestMocks, diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/EmailsFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/EmailsFieldInput.stories.tsx index 60ca68b099..a7cdabb16b 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/EmailsFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/EmailsFieldInput.stories.tsx @@ -1,11 +1,12 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect } from 'react'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { getCanvasElementForDropdownTesting } from 'twenty-ui/testing'; import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext'; import { useEmailsField } from '@/object-record/record-field/ui/meta-types/hooks/useEmailsField'; import { getFieldInputEventContextProviderWithJestMocks } from '@/object-record/record-field/ui/meta-types/input/components/__stories__/utils/getFieldInputEventContextProviderWithJestMocks'; +import { EmailsFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/EmailsFieldInput'; import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext'; import { type FieldEmailsValue } from '@/object-record/record-field/ui/types/FieldMetadata'; import { RECORD_TABLE_CELL_INPUT_ID_PREFIX } from '@/object-record/record-table/constants/RecordTableCellInputIdPrefix'; @@ -15,7 +16,6 @@ import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentTyp import { FieldMetadataType } from '~/generated-metadata/graphql'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; -import { EmailsFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/EmailsFieldInput'; const updateRecord = fn(); diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/LinksFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/LinksFieldInput.stories.tsx index c1b3f092ed..447aa2da05 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/LinksFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/LinksFieldInput.stories.tsx @@ -1,19 +1,19 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect } from 'react'; +import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext'; import { useLinksField } from '@/object-record/record-field/ui/meta-types/hooks/useLinksField'; import { getFieldInputEventContextProviderWithJestMocks } from '@/object-record/record-field/ui/meta-types/input/components/__stories__/utils/getFieldInputEventContextProviderWithJestMocks'; +import { LinksFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/LinksFieldInput'; import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext'; import { RECORD_TABLE_CELL_INPUT_ID_PREFIX } from '@/object-record/record-table/constants/RecordTableCellInputIdPrefix'; import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFieldInputId'; import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePushFocusItemToFocusStack'; import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType'; import { getCanvasElementForDropdownTesting } from 'twenty-ui/testing'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { FieldMetadataType } from '~/generated-metadata/graphql'; -import { LinksFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/LinksFieldInput'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const updateRecord = fn(); diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/MultiItemBaseInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/MultiItemBaseInput.stories.tsx index c3d0b9619a..81c5eede67 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/MultiItemBaseInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/MultiItemBaseInput.stories.tsx @@ -1,7 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; -import { ComponentDecorator } from 'twenty-ui/testing'; import { MultiItemBaseInput } from '@/object-record/record-field/ui/meta-types/input/components/MultiItemBaseInput'; +import { ComponentDecorator } from 'twenty-ui/testing'; const meta: Meta = { title: 'UI/Data/Field/Input/BaseFieldInput', diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/NumberFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/NumberFieldInput.stories.tsx index 9ebb6c0e1e..0004289e6d 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/NumberFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/NumberFieldInput.stories.tsx @@ -1,6 +1,10 @@ -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, waitFor, within } from '@storybook/test'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; import { useEffect, useState } from 'react'; +import { expect, userEvent, waitFor, within } from 'storybook/test'; import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePushFocusItemToFocusStack'; import { FieldMetadataType } from '~/generated-metadata/graphql'; @@ -8,15 +12,15 @@ import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { RecordFieldsScopeContextProvider } from '@/object-record/record-field-list/contexts/RecordFieldsScopeContext'; import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext'; +import { useNumberField } from '@/object-record/record-field/ui/meta-types/hooks/useNumberField'; import { getFieldInputEventContextProviderWithJestMocks } from '@/object-record/record-field/ui/meta-types/input/components/__stories__/utils/getFieldInputEventContextProviderWithJestMocks'; +import { NumberFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/NumberFieldInput'; import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext'; import { RECORD_TABLE_CELL_INPUT_ID_PREFIX } from '@/object-record/record-table/constants/RecordTableCellInputIdPrefix'; import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFieldInputId'; import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType'; import { StorybookFieldInputDropdownFocusIdSetterEffect } from '~/testing/components/StorybookFieldInputDropdownFocusIdSetterEffect'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; -import { useNumberField } from '@/object-record/record-field/ui/meta-types/hooks/useNumberField'; -import { NumberFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/NumberFieldInput'; const { FieldInputEventContextProviderWithJestMocks, diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/PhonesFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/PhonesFieldInput.stories.tsx index db6779ed52..19ac61357d 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/PhonesFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/PhonesFieldInput.stories.tsx @@ -1,12 +1,12 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect } from 'react'; +import { expect, userEvent, within } from 'storybook/test'; import { getCanvasElementForDropdownTesting } from 'twenty-ui/testing'; import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { usePhonesField } from '@/object-record/record-field/ui/meta-types/hooks/usePhonesField'; import { getFieldInputEventContextProviderWithJestMocks } from '@/object-record/record-field/ui/meta-types/input/components/__stories__/utils/getFieldInputEventContextProviderWithJestMocks'; +import { PhonesFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/PhonesFieldInput'; import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext'; import { type FieldPhonesValue } from '@/object-record/record-field/ui/types/FieldMetadata'; import { RECORD_TABLE_CELL_INPUT_ID_PREFIX } from '@/object-record/record-table/constants/RecordTableCellInputIdPrefix'; @@ -14,7 +14,7 @@ import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFi import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePushFocusItemToFocusStack'; import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType'; import { FieldMetadataType } from '~/generated-metadata/graphql'; -import { PhonesFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/PhonesFieldInput'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const { FieldInputEventContextProviderWithJestMocks } = getFieldInputEventContextProviderWithJestMocks(); diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RatingFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RatingFieldInput.stories.tsx index 0d2fdfd99d..7cafc3175d 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RatingFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RatingFieldInput.stories.tsx @@ -1,19 +1,23 @@ -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, waitFor, within } from '@storybook/test'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; import { useEffect } from 'react'; +import { expect, userEvent, waitFor, within } from 'storybook/test'; import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePushFocusItemToFocusStack'; import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; +import { useRatingField } from '@/object-record/record-field/ui/meta-types/hooks/useRatingField'; import { getFieldInputEventContextProviderWithJestMocks } from '@/object-record/record-field/ui/meta-types/input/components/__stories__/utils/getFieldInputEventContextProviderWithJestMocks'; +import { RatingFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/RatingFieldInput'; import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext'; import { RECORD_TABLE_CELL_INPUT_ID_PREFIX } from '@/object-record/record-table/constants/RecordTableCellInputIdPrefix'; import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFieldInputId'; import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType'; import { FieldMetadataType, type FieldRatingValue } from 'twenty-shared/types'; -import { useRatingField } from '@/object-record/record-field/ui/meta-types/hooks/useRatingField'; -import { RatingFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/RatingFieldInput'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const { FieldInputEventContextProviderWithJestMocks, handleSubmitMocked } = getFieldInputEventContextProviderWithJestMocks(); diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RelationManyToOneFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RelationManyToOneFieldInput.stories.tsx index 9f713dd5e3..a3824bc2e7 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RelationManyToOneFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RelationManyToOneFieldInput.stories.tsx @@ -1,7 +1,11 @@ -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, waitFor, within } from '@storybook/test'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; import { useEffect } from 'react'; import { useSetRecoilState } from 'recoil'; +import { expect, userEvent, waitFor, within } from 'storybook/test'; import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RelationOneToManyFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RelationOneToManyFieldInput.stories.tsx index 3584b57f7c..f4c0669def 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RelationOneToManyFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RelationOneToManyFieldInput.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect, useMemo } from 'react'; import { useSetRecoilState } from 'recoil'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RichTextFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RichTextFieldInput.stories.tsx index 144060acf6..251d143699 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RichTextFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/RichTextFieldInput.stories.tsx @@ -1,18 +1,22 @@ -import { expect, userEvent, waitFor, within } from '@storybook/test'; import { useEffect } from 'react'; +import { expect, userEvent, waitFor, within } from 'storybook/test'; import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext'; +import { RichTextFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/RichTextFieldInput'; import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext'; import { RECORD_TABLE_CELL_INPUT_ID_PREFIX } from '@/object-record/record-table/constants/RecordTableCellInputIdPrefix'; import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFieldInputId'; import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePushFocusItemToFocusStack'; import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType'; -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; -import { RichTextFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/RichTextFieldInput'; import { getFieldInputEventContextProviderWithJestMocks } from './utils/getFieldInputEventContextProviderWithJestMocks'; const targetableObjectId = 'test-id'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/TextFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/TextFieldInput.stories.tsx index 6c47dd9dd6..daa5ffbafd 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/TextFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/TextFieldInput.stories.tsx @@ -1,20 +1,24 @@ -import { expect, userEvent, waitFor, within } from '@storybook/test'; import { useEffect, useState } from 'react'; +import { expect, userEvent, waitFor, within } from 'storybook/test'; import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePushFocusItemToFocusStack'; import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext'; +import { useTextField } from '@/object-record/record-field/ui/meta-types/hooks/useTextField'; import { getFieldInputEventContextProviderWithJestMocks } from '@/object-record/record-field/ui/meta-types/input/components/__stories__/utils/getFieldInputEventContextProviderWithJestMocks'; +import { TextFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/TextFieldInput'; import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext'; import { RECORD_TABLE_CELL_INPUT_ID_PREFIX } from '@/object-record/record-table/constants/RecordTableCellInputIdPrefix'; import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFieldInputId'; import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType'; -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; -import { useTextField } from '@/object-record/record-field/ui/meta-types/hooks/useTextField'; -import { TextFieldInput } from '@/object-record/record-field/ui/meta-types/input/components/TextFieldInput'; const TextFieldValueSetterEffect = ({ value }: { value: string }) => { const { setFieldValue } = useTextField(); diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/utils/getFieldInputEventContextProviderWithJestMocks.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/utils/getFieldInputEventContextProviderWithJestMocks.tsx index 4d5d1fd245..d94e74228d 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/utils/getFieldInputEventContextProviderWithJestMocks.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/__stories__/utils/getFieldInputEventContextProviderWithJestMocks.tsx @@ -1,6 +1,6 @@ import { FieldInputEventContext } from '@/object-record/record-field/ui/contexts/FieldInputEventContext'; -import { fn } from '@storybook/test'; import { type PropsWithChildren } from 'react'; +import { fn } from 'storybook/test'; type FieldInputEventContextProviderWithJestMocksProps = PropsWithChildren; diff --git a/packages/twenty-front/src/modules/object-record/record-picker/single-record-picker/components/__stories__/SingleRecordPicker.stories.tsx b/packages/twenty-front/src/modules/object-record/record-picker/single-record-picker/components/__stories__/SingleRecordPicker.stories.tsx index 6edc493ad7..f31b4dfe03 100644 --- a/packages/twenty-front/src/modules/object-record/record-picker/single-record-picker/components/__stories__/SingleRecordPicker.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-picker/single-record-picker/components/__stories__/SingleRecordPicker.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, userEvent, within } from 'storybook/test'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; diff --git a/packages/twenty-front/src/modules/object-record/record-table/__stories__/RecordTable.stories.tsx b/packages/twenty-front/src/modules/object-record/record-table/__stories__/RecordTable.stories.tsx index 67570e6d5d..c03645e8e0 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/__stories__/RecordTable.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/__stories__/RecordTable.stories.tsx @@ -1,8 +1,8 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { RecordTableWithWrappers } from '@/object-record/record-table/components/RecordTableWithWrappers'; import { type RecordTableEmptyStateNoGroupNoRecordAtAll } from '@/object-record/record-table/empty-state/components/RecordTableEmptyStateNoGroupNoRecordAtAll'; -import { fireEvent, userEvent, within } from '@storybook/test'; +import { fireEvent, userEvent, within } from 'storybook/test'; import { ComponentDecorator } from 'twenty-ui/testing'; import { ContextStoreDecorator } from '~/testing/decorators/ContextStoreDecorator'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/__stories__/perf/RecordTableCell.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/__stories__/perf/RecordTableCell.perf.stories.tsx index 5a54176d69..508384a3a3 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/components/__stories__/perf/RecordTableCell.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/components/__stories__/perf/RecordTableCell.perf.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect } from 'react'; import { useRecoilState, useRecoilValue, useSetRecoilState } from 'recoil'; diff --git a/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateNoGroupNoRecordAtAll.stories.tsx b/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateNoGroupNoRecordAtAll.stories.tsx index c97817ae93..fde4d71ab5 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateNoGroupNoRecordAtAll.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateNoGroupNoRecordAtAll.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { RecordTableContextProvider } from '@/object-record/record-table/components/RecordTableContextProvider'; import { RecordTableEmptyStateNoGroupNoRecordAtAll } from '@/object-record/record-table/empty-state/components/RecordTableEmptyStateNoGroupNoRecordAtAll'; diff --git a/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateNoRecordFoundForFilter.stories.tsx b/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateNoRecordFoundForFilter.stories.tsx index d7c188d4e6..30fd029acf 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateNoRecordFoundForFilter.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateNoRecordFoundForFilter.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ScrollWrapperDecorator } from '~/testing/decorators/ScrollWrapperDecorator'; import { RecordTableContextProvider } from '@/object-record/record-table/components/RecordTableContextProvider'; diff --git a/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateRemote.stories.tsx b/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateRemote.stories.tsx index 88adcbc175..e3a01a5966 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateRemote.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateRemote.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ScrollWrapperDecorator } from '~/testing/decorators/ScrollWrapperDecorator'; import { RecordTableContextProvider } from '@/object-record/record-table/components/RecordTableContextProvider'; diff --git a/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateSoftDelete.stories.tsx b/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateSoftDelete.stories.tsx index c67acabaac..9ac417fc71 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateSoftDelete.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/__stories__/RecordTableEmptyStateSoftDelete.stories.tsx @@ -1,6 +1,6 @@ import { RecordTableContextProvider } from '@/object-record/record-table/components/RecordTableContextProvider'; import { RecordTableEmptyStateSoftDelete } from '@/object-record/record-table/empty-state/components/RecordTableEmptyStateSoftDelete'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from 'twenty-ui/testing'; import { ContextStoreDecorator } from '~/testing/decorators/ContextStoreDecorator'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; diff --git a/packages/twenty-front/src/modules/object-record/record-update-multiple/components/__stories__/UpdateMultipleRecordsContainer.stories.tsx b/packages/twenty-front/src/modules/object-record/record-update-multiple/components/__stories__/UpdateMultipleRecordsContainer.stories.tsx index 2b7d1732e7..50e9ef64f7 100644 --- a/packages/twenty-front/src/modules/object-record/record-update-multiple/components/__stories__/UpdateMultipleRecordsContainer.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-update-multiple/components/__stories__/UpdateMultipleRecordsContainer.stories.tsx @@ -4,9 +4,9 @@ import { ApolloCoreClientContext } from '@/object-metadata/contexts/ApolloCoreCl import { UpdateMultipleRecordsContainer } from '@/object-record/record-update-multiple/components/UpdateMultipleRecordsContainer'; import { ApolloClient, InMemoryCache } from '@apollo/client'; import { MockLink } from '@apollo/client/testing'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import gql from 'graphql-tag'; +import { expect, userEvent, within } from 'storybook/test'; import { ContextStoreDecorator } from '~/testing/decorators/ContextStoreDecorator'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; diff --git a/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutRenderer.stories.tsx b/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutRenderer.stories.tsx index 7e82807687..41c5a2d149 100644 --- a/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutRenderer.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutRenderer.stories.tsx @@ -4,9 +4,9 @@ import { useApolloClient, } from '@apollo/client'; import { type MockedResponse } from '@apollo/client/testing'; -import type { Meta, StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import type { Meta, StoryObj } from '@storybook/react-vite'; import { MemoryRouter } from 'react-router-dom'; +import { expect, within } from 'storybook/test'; import { FIND_ONE_PAGE_LAYOUT } from '@/dashboards/graphql/queries/findOnePageLayout'; import { ApolloCoreClientContext } from '@/object-metadata/contexts/ApolloCoreClientContext'; diff --git a/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutTabList.stories.tsx b/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutTabList.stories.tsx index 2b8b9a0d3e..14ed8547d2 100644 --- a/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutTabList.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutTabList.stories.tsx @@ -1,6 +1,6 @@ import styled from '@emotion/styled'; import { type DropResult, type ResponderProvided } from '@hello-pangea/dnd'; -import type { Meta, StoryObj } from '@storybook/react'; +import type { Meta, StoryObj } from '@storybook/react-vite'; import { useMemo, useState } from 'react'; import { RecoilRoot } from 'recoil'; import { ComponentWithRouterDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutGraphWidget.test.tsx b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutGraphWidget.test.tsx index 6a753a5177..ff2e8e3956 100644 --- a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutGraphWidget.test.tsx +++ b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutGraphWidget.test.tsx @@ -5,9 +5,9 @@ import { type GraphWidgetFieldSelection } from '@/page-layout/types/GraphWidgetF import { activeTabIdComponentState } from '@/ui/layout/tab-list/states/activeTabIdComponentState'; import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; import { useSetRecoilComponentState } from '@/ui/utilities/state/component-state/hooks/useSetRecoilComponentState'; -import { expect } from '@storybook/test'; import { act, renderHook } from '@testing-library/react'; import { useSetRecoilState } from 'recoil'; +import { expect } from 'storybook/test'; import { isDefined } from 'twenty-shared/utils'; import { WidgetType } from '~/generated-metadata/graphql'; import { PageLayoutType, WidgetConfigurationType } from '~/generated/graphql'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/DashboardWidgetPlaceholder.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/DashboardWidgetPlaceholder.stories.tsx index ea1d598c24..a4265a9760 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/DashboardWidgetPlaceholder.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/DashboardWidgetPlaceholder.stories.tsx @@ -9,7 +9,7 @@ import { pageLayoutPersistedComponentState } from '@/page-layout/states/pageLayo import { type PageLayout } from '@/page-layout/types/PageLayout'; import { DashboardWidgetPlaceholder } from '@/page-layout/widgets/components/DashboardWidgetPlaceholder'; import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { type MutableSnapshot } from 'recoil'; import { ComponentDecorator } from 'twenty-ui/testing'; import { PageLayoutType } from '~/generated/graphql'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/WidgetRenderer.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/WidgetRenderer.stories.tsx index 2bcdbe8ef9..4510561c56 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/WidgetRenderer.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/WidgetRenderer.stories.tsx @@ -4,7 +4,7 @@ import { type NormalizedCacheObject, } from '@apollo/client'; import { type MockedResponse } from '@apollo/client/testing'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { MemoryRouter } from 'react-router-dom'; import { type MutableSnapshot } from 'recoil'; import { CatalogDecorator, type CatalogStory } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/field/components/__stories__/FieldWidget.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/field/components/__stories__/FieldWidget.stories.tsx index 17236cecbf..925ca790ef 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/field/components/__stories__/FieldWidget.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/field/components/__stories__/FieldWidget.stories.tsx @@ -3,10 +3,10 @@ import { type NormalizedCacheObject, useApolloClient, } from '@apollo/client'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, waitFor, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { MemoryRouter } from 'react-router-dom'; import { type MutableSnapshot } from 'recoil'; +import { expect, userEvent, waitFor, within } from 'storybook/test'; import { ApolloCoreClientContext } from '@/object-metadata/contexts/ApolloCoreClientContext'; import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetAggregateChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetAggregateChart.stories.tsx index a0a07114f1..05d8af61e2 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetAggregateChart.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetAggregateChart.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { GraphWidgetAggregateChart } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/components/GraphWidgetAggregateChart'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx index d4a6af5124..7aea711c9e 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { GraphWidgetTestWrapper } from '@/page-layout/widgets/graph/__tests__/GraphWidgetTestWrapper'; import { GraphWidgetBarChart } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetGaugeChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetGaugeChart.stories.tsx index 65ca104b99..3d4d126df2 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetGaugeChart.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetGaugeChart.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { GraphWidgetTestWrapper } from '@/page-layout/widgets/graph/__tests__/GraphWidgetTestWrapper'; import { GraphWidgetGaugeChart } from '@/page-layout/widgets/graph/graphWidgetGaugeChart/components/GraphWidgetGaugeChart'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetLegend.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetLegend.stories.tsx index 3187281275..06ac1f477a 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetLegend.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetLegend.stories.tsx @@ -1,8 +1,8 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { GraphWidgetTestWrapper } from '@/page-layout/widgets/graph/__tests__/GraphWidgetTestWrapper'; -import { ComponentDecorator } from 'twenty-ui/testing'; import { GraphWidgetLegend } from '@/page-layout/widgets/graph/components/GraphWidgetLegend'; +import { ComponentDecorator } from 'twenty-ui/testing'; const meta: Meta = { title: 'Modules/PageLayout/Widgets/GraphWidgetLegend', diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetLineChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetLineChart.stories.tsx index f2aa832b38..57609bee2c 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetLineChart.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetLineChart.stories.tsx @@ -1,10 +1,10 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { type ComponentProps } from 'react'; import { GraphWidgetTestWrapper } from '@/page-layout/widgets/graph/__tests__/GraphWidgetTestWrapper'; import { GraphWidgetLineChart } from '@/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChart'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { CatalogDecorator, ComponentDecorator } from 'twenty-ui/testing'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const meta: Meta = { title: 'Modules/PageLayout/Widgets/GraphWidgetLineChart', diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx index af2ecb6340..233febe740 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { GraphWidgetTestWrapper } from '@/page-layout/widgets/graph/__tests__/GraphWidgetTestWrapper'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetTooltip.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetTooltip.stories.tsx index 6434bb26d6..c5d63d1c05 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetTooltip.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetTooltip.stories.tsx @@ -1,7 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; -import { ComponentDecorator } from 'twenty-ui/testing'; import { GraphWidgetTooltip } from '@/page-layout/widgets/graph/components/GraphWidgetTooltip'; +import { ComponentDecorator } from 'twenty-ui/testing'; const meta: Meta = { title: 'Modules/PageLayout/Widgets/GraphWidgetTooltip', diff --git a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistInput.stories.tsx b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistInput.stories.tsx index b6c3b48f05..cd58548ced 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistInput.stories.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistInput.stories.tsx @@ -1,9 +1,13 @@ -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { SettingsAccountsBlocklistInput } from '@/settings/accounts/components/SettingsAccountsBlocklistInput'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ComponentDecorator } from 'twenty-ui/testing'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const updateBlockedEmailListJestFn = fn(); diff --git a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistSection.stories.tsx b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistSection.stories.tsx index b9c959536f..385ca7dbc2 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistSection.stories.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistSection.stories.tsx @@ -1,9 +1,9 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { SettingsAccountsBlocklistInput } from '@/settings/accounts/components/SettingsAccountsBlocklistInput'; import { type SettingsAccountsBlocklistSection } from '@/settings/accounts/components/SettingsAccountsBlocklistSection'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ComponentDecorator } from 'twenty-ui/testing'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const meta: Meta = { title: 'Modules/Settings/Accounts/Blocklist/SettingsAccountsBlocklistSection', diff --git a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistTable.stories.tsx b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistTable.stories.tsx index d6b4d5b2fe..e8bc72c3af 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistTable.stories.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistTable.stories.tsx @@ -1,5 +1,9 @@ -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { mockedBlocklist } from '@/settings/accounts/components/__stories__/mockedBlocklist'; import { SettingsAccountsBlocklistTable } from '@/settings/accounts/components/SettingsAccountsBlocklistTable'; diff --git a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistTableRow.stories.tsx b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistTableRow.stories.tsx index 4a197b5370..3aea3d6f04 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistTableRow.stories.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsBlocklistTableRow.stories.tsx @@ -1,5 +1,9 @@ -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { SettingsAccountsBlocklistTableRow } from '@/settings/accounts/components/SettingsAccountsBlocklistTableRow'; import { mockedBlocklist } from '@/settings/accounts/components/__stories__/mockedBlocklist'; diff --git a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsCalendarChannelDetails.stories.tsx b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsCalendarChannelDetails.stories.tsx index 3a06c42f95..2ab0b5fc4a 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsCalendarChannelDetails.stories.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsCalendarChannelDetails.stories.tsx @@ -1,11 +1,11 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { SettingsAccountsCalendarChannelDetails } from '@/settings/accounts/components/SettingsAccountsCalendarChannelDetails'; +import { ComponentDecorator } from 'twenty-ui/testing'; import { CalendarChannelVisibility } from '~/generated/graphql'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; -import { ComponentDecorator } from 'twenty-ui/testing'; const meta: Meta = { title: diff --git a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsCalendarChannelsGeneral.stories.tsx b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsCalendarChannelsGeneral.stories.tsx index c63ae04261..c1f6527fdb 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsCalendarChannelsGeneral.stories.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsCalendarChannelsGeneral.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { SettingsAccountsCalendarChannelsGeneral } from '@/settings/accounts/components/SettingsAccountsCalendarChannelsGeneral'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsMessageChannelDetails.stories.tsx b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsMessageChannelDetails.stories.tsx index 437d5df92c..655951b94d 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsMessageChannelDetails.stories.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsMessageChannelDetails.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { MessageChannelContactAutoCreationPolicy, diff --git a/packages/twenty-front/src/modules/settings/components/SettingsOptions/__stories__/SettingsOptionCardContentCounter.stories.tsx b/packages/twenty-front/src/modules/settings/components/SettingsOptions/__stories__/SettingsOptionCardContentCounter.stories.tsx index f3250e4704..23d77abeb9 100644 --- a/packages/twenty-front/src/modules/settings/components/SettingsOptions/__stories__/SettingsOptionCardContentCounter.stories.tsx +++ b/packages/twenty-front/src/modules/settings/components/SettingsOptions/__stories__/SettingsOptionCardContentCounter.stories.tsx @@ -1,9 +1,9 @@ import { SettingsOptionCardContentCounter } from '@/settings/components/SettingsOptions/SettingsOptionCardContentCounter'; import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useState } from 'react'; -import { ComponentDecorator } from 'twenty-ui/testing'; import { IconUsers } from 'twenty-ui/display'; +import { ComponentDecorator } from 'twenty-ui/testing'; const StyledContainer = styled.div` width: 480px; diff --git a/packages/twenty-front/src/modules/settings/components/SettingsOptions/__stories__/SettingsOptionCardContentSelect.stories.tsx b/packages/twenty-front/src/modules/settings/components/SettingsOptions/__stories__/SettingsOptionCardContentSelect.stories.tsx index 10bb4dba54..539c1bc6ef 100644 --- a/packages/twenty-front/src/modules/settings/components/SettingsOptions/__stories__/SettingsOptionCardContentSelect.stories.tsx +++ b/packages/twenty-front/src/modules/settings/components/SettingsOptions/__stories__/SettingsOptionCardContentSelect.stories.tsx @@ -2,7 +2,7 @@ import { SettingsOptionCardContentSelect } from '@/settings/components/SettingsO import { Select } from '@/ui/input/components/Select'; import { type SelectValue } from '@/ui/input/components/internal/select/types'; import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useState } from 'react'; import { IconLanguage, diff --git a/packages/twenty-front/src/modules/settings/components/SettingsOptions/__stories__/SettingsOptionCardContentToggle.stories.tsx b/packages/twenty-front/src/modules/settings/components/SettingsOptions/__stories__/SettingsOptionCardContentToggle.stories.tsx index 85e4a2e4cf..9af0a293bb 100644 --- a/packages/twenty-front/src/modules/settings/components/SettingsOptions/__stories__/SettingsOptionCardContentToggle.stories.tsx +++ b/packages/twenty-front/src/modules/settings/components/SettingsOptions/__stories__/SettingsOptionCardContentToggle.stories.tsx @@ -1,9 +1,9 @@ import { SettingsOptionCardContentToggle } from '@/settings/components/SettingsOptions/SettingsOptionCardContentToggle'; import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useState } from 'react'; -import { ComponentDecorator } from 'twenty-ui/testing'; import { IconBell, IconLock, IconRobot, IconUsers } from 'twenty-ui/display'; +import { ComponentDecorator } from 'twenty-ui/testing'; const StyledContainer = styled.div` width: 480px; diff --git a/packages/twenty-front/src/modules/settings/components/__stories__/CancelButton.stories.tsx b/packages/twenty-front/src/modules/settings/components/__stories__/CancelButton.stories.tsx index dca6d99d9c..eab919e89e 100644 --- a/packages/twenty-front/src/modules/settings/components/__stories__/CancelButton.stories.tsx +++ b/packages/twenty-front/src/modules/settings/components/__stories__/CancelButton.stories.tsx @@ -1,7 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { CancelButton } from '@/settings/components/SaveAndCancelButtons/CancelButton'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const meta: Meta = { title: 'Modules/Settings/CancelButton', diff --git a/packages/twenty-front/src/modules/settings/components/__stories__/SaveButton.stories.tsx b/packages/twenty-front/src/modules/settings/components/__stories__/SaveButton.stories.tsx index 2e2dcddb42..fc51e1cd06 100644 --- a/packages/twenty-front/src/modules/settings/components/__stories__/SaveButton.stories.tsx +++ b/packages/twenty-front/src/modules/settings/components/__stories__/SaveButton.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { SaveButton } from '@/settings/components/SaveAndCancelButtons/SaveButton'; diff --git a/packages/twenty-front/src/modules/settings/components/__stories__/SettingsCard.stories.tsx b/packages/twenty-front/src/modules/settings/components/__stories__/SettingsCard.stories.tsx index 7e62983784..9d188003c3 100644 --- a/packages/twenty-front/src/modules/settings/components/__stories__/SettingsCard.stories.tsx +++ b/packages/twenty-front/src/modules/settings/components/__stories__/SettingsCard.stories.tsx @@ -1,5 +1,5 @@ import { SettingsCard } from '@/settings/components/SettingsCard'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import React from 'react'; import { IconMailCog } from 'twenty-ui/display'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/settings/components/__stories__/SettingsMorphRelationMultiSelect.stories.tsx b/packages/twenty-front/src/modules/settings/components/__stories__/SettingsMorphRelationMultiSelect.stories.tsx index 64657c9886..81a0b6c735 100644 --- a/packages/twenty-front/src/modules/settings/components/__stories__/SettingsMorphRelationMultiSelect.stories.tsx +++ b/packages/twenty-front/src/modules/settings/components/__stories__/SettingsMorphRelationMultiSelect.stories.tsx @@ -1,7 +1,7 @@ import { SettingsMorphRelationMultiSelect } from '@/settings/components/SettingsMorphRelationMultiSelect'; import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { fn } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { fn } from 'storybook/test'; import { ComponentDecorator } from 'twenty-ui/testing'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldDescriptionForm.stories.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldDescriptionForm.stories.tsx index e5746e0046..936af83c30 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldDescriptionForm.stories.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldDescriptionForm.stories.tsx @@ -1,10 +1,10 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { FormProviderDecorator } from '~/testing/decorators/FormProviderDecorator'; +import { SettingsDataModelFieldDescriptionForm } from '@/settings/data-model/fields/forms/components/SettingsDataModelFieldDescriptionForm'; import { ComponentDecorator } from 'twenty-ui/testing'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; -import { SettingsDataModelFieldDescriptionForm } from '@/settings/data-model/fields/forms/components/SettingsDataModelFieldDescriptionForm'; const meta: Meta = { title: 'Modules/Settings/DataModel/SettingsDataModelFieldDescriptionForm', diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldIconLabelForm.stories.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldIconLabelForm.stories.tsx index 6770d89c98..7cbf7173d5 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldIconLabelForm.stories.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldIconLabelForm.stories.tsx @@ -1,13 +1,13 @@ import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { FormProviderDecorator } from '~/testing/decorators/FormProviderDecorator'; import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator'; +import { SettingsDataModelFieldIconLabelForm } from '@/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; -import { SettingsDataModelFieldIconLabelForm } from '@/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm'; const StyledContainer = styled.div` flex: 1; diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldSettingsFormCard.stories.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldSettingsFormCard.stories.tsx index 35229139c0..1e18148687 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldSettingsFormCard.stories.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldSettingsFormCard.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { FormProviderDecorator } from '~/testing/decorators/FormProviderDecorator'; @@ -7,10 +7,10 @@ import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadat import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; +import { SettingsDataModelFieldSettingsFormCard } from '@/settings/data-model/fields/forms/components/SettingsDataModelFieldSettingsFormCard'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; -import { SettingsDataModelFieldSettingsFormCard } from '@/settings/data-model/fields/forms/components/SettingsDataModelFieldSettingsFormCard'; const mockedCompanyObjectMetadataItem = generatedMockObjectMetadataItems.find( (item) => item.nameSingular === 'company', diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/__stories__/SettingsDataModelFieldPreviewWidget.stories.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/__stories__/SettingsDataModelFieldPreviewWidget.stories.tsx index f82a3de7d7..1937687bcf 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/__stories__/SettingsDataModelFieldPreviewWidget.stories.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/__stories__/SettingsDataModelFieldPreviewWidget.stories.tsx @@ -1,8 +1,9 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { graphqlMocks } from '~/testing/graphqlMocks'; +import { SettingsDataModelFieldPreviewWidget } from '@/settings/data-model/fields/preview/components/SettingsDataModelFieldPreviewWidget'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; @@ -10,7 +11,6 @@ import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadat import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { getMockFieldMetadataItemOrThrow } from '~/testing/utils/getMockFieldMetadataItemOrThrow'; import { getMockObjectMetadataItemOrThrow } from '~/testing/utils/getMockObjectMetadataItemOrThrow'; -import { SettingsDataModelFieldPreviewWidget } from '@/settings/data-model/fields/preview/components/SettingsDataModelFieldPreviewWidget'; const mockedCompanyObjectMetadataItem = getMockObjectMetadataItemOrThrow('company'); diff --git a/packages/twenty-front/src/modules/settings/data-model/objects/components/__stories__/SettingsObjectInactiveMenuDropDown.stories.tsx b/packages/twenty-front/src/modules/settings/data-model/objects/components/__stories__/SettingsObjectInactiveMenuDropDown.stories.tsx index 0fe3131f76..408a14975a 100644 --- a/packages/twenty-front/src/modules/settings/data-model/objects/components/__stories__/SettingsObjectInactiveMenuDropDown.stories.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/objects/components/__stories__/SettingsObjectInactiveMenuDropDown.stories.tsx @@ -1,9 +1,13 @@ -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; +import { SettingsObjectInactiveMenuDropDown } from '@/settings/data-model/objects/components/SettingsObjectInactiveMenuDropDown'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; -import { SettingsObjectInactiveMenuDropDown } from '@/settings/data-model/objects/components/SettingsObjectInactiveMenuDropDown'; const handleActivateMockFunction = fn(); const handleDeleteMockFunction = fn(); diff --git a/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/__stories__/SettingsDataModelObjectAboutForm.stories.tsx b/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/__stories__/SettingsDataModelObjectAboutForm.stories.tsx index fee318d34b..4672fbc775 100644 --- a/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/__stories__/SettingsDataModelObjectAboutForm.stories.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/__stories__/SettingsDataModelObjectAboutForm.stories.tsx @@ -1,13 +1,13 @@ import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { FormProviderDecorator } from '~/testing/decorators/FormProviderDecorator'; import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { SettingsDataModelObjectAboutForm } from '@/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; -import { SettingsDataModelObjectAboutForm } from '@/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm'; const mockedCompanyObjectMetadataItem = generatedMockObjectMetadataItems.find( (item) => item.nameSingular === 'company', diff --git a/packages/twenty-front/src/modules/settings/developers/components/__stories__/ApiKeyInput.stories.tsx b/packages/twenty-front/src/modules/settings/developers/components/__stories__/ApiKeyInput.stories.tsx index aefde8307f..14704cb054 100644 --- a/packages/twenty-front/src/modules/settings/developers/components/__stories__/ApiKeyInput.stories.tsx +++ b/packages/twenty-front/src/modules/settings/developers/components/__stories__/ApiKeyInput.stories.tsx @@ -1,9 +1,9 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ApiKeyInput } from '@/settings/developers/components/ApiKeyInput'; +import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; -import { ComponentDecorator } from 'twenty-ui/testing'; const meta: Meta = { title: 'Modules/Settings/Developers/ApiKeys/ApiKeyInput', diff --git a/packages/twenty-front/src/modules/settings/developers/components/__stories__/SettingsApiKeysFieldItemTableRow.stories.tsx b/packages/twenty-front/src/modules/settings/developers/components/__stories__/SettingsApiKeysFieldItemTableRow.stories.tsx index 4626438347..3b95cf4d72 100644 --- a/packages/twenty-front/src/modules/settings/developers/components/__stories__/SettingsApiKeysFieldItemTableRow.stories.tsx +++ b/packages/twenty-front/src/modules/settings/developers/components/__stories__/SettingsApiKeysFieldItemTableRow.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { SettingsApiKeysFieldItemTableRow } from '@/settings/developers/components/SettingsApiKeysFieldItemTableRow'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/settings/developers/components/__stories__/SettingsDevelopersWebhookForm.stories.tsx b/packages/twenty-front/src/modules/settings/developers/components/__stories__/SettingsDevelopersWebhookForm.stories.tsx index 1bfc9ccaf8..abca101d90 100644 --- a/packages/twenty-front/src/modules/settings/developers/components/__stories__/SettingsDevelopersWebhookForm.stories.tsx +++ b/packages/twenty-front/src/modules/settings/developers/components/__stories__/SettingsDevelopersWebhookForm.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { SettingsDevelopersWebhookForm } from '@/settings/developers/components/SettingsDevelopersWebhookForm'; import { WebhookFormMode } from '@/settings/developers/constants/WebhookFormMode'; diff --git a/packages/twenty-front/src/modules/settings/playground/components/__stories__/GraphQLPlayground.stories.tsx b/packages/twenty-front/src/modules/settings/playground/components/__stories__/GraphQLPlayground.stories.tsx index 143a200516..bab1dc84a4 100644 --- a/packages/twenty-front/src/modules/settings/playground/components/__stories__/GraphQLPlayground.stories.tsx +++ b/packages/twenty-front/src/modules/settings/playground/components/__stories__/GraphQLPlayground.stories.tsx @@ -1,9 +1,9 @@ import { GraphQLPlayground } from '@/settings/playground/components/GraphQLPlayground'; import { playgroundApiKeyState } from '@/settings/playground/states/playgroundApiKeyState'; -import { action } from '@storybook/addon-actions'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect } from 'react'; import { useSetRecoilState } from 'recoil'; +import { action } from 'storybook/actions'; import { ComponentDecorator, ComponentWithRouterDecorator, diff --git a/packages/twenty-front/src/modules/settings/playground/components/__stories__/PlaygroundSetupForm.stories.tsx b/packages/twenty-front/src/modules/settings/playground/components/__stories__/PlaygroundSetupForm.stories.tsx index b78da5d8e7..7db8880955 100644 --- a/packages/twenty-front/src/modules/settings/playground/components/__stories__/PlaygroundSetupForm.stories.tsx +++ b/packages/twenty-front/src/modules/settings/playground/components/__stories__/PlaygroundSetupForm.stories.tsx @@ -1,7 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { PlaygroundSetupForm } from '@/settings/playground/components/PlaygroundSetupForm'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; -import { PlaygroundSetupForm } from '@/settings/playground/components/PlaygroundSetupForm'; const meta: Meta = { title: 'Modules/Settings/Playground/PlaygroundSetupForm', diff --git a/packages/twenty-front/src/modules/settings/playground/components/__stories__/RestPlayground.stories.tsx b/packages/twenty-front/src/modules/settings/playground/components/__stories__/RestPlayground.stories.tsx index c70b479100..b512f44593 100644 --- a/packages/twenty-front/src/modules/settings/playground/components/__stories__/RestPlayground.stories.tsx +++ b/packages/twenty-front/src/modules/settings/playground/components/__stories__/RestPlayground.stories.tsx @@ -1,13 +1,13 @@ +import { RestPlayground } from '@/settings/playground/components/RestPlayground'; import { playgroundApiKeyState } from '@/settings/playground/states/playgroundApiKeyState'; import { PlaygroundSchemas } from '@/settings/playground/types/PlaygroundSchemas'; -import { action } from '@storybook/addon-actions'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, http } from 'msw'; import { useEffect } from 'react'; import { useSetRecoilState } from 'recoil'; +import { action } from 'storybook/actions'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; -import { RestPlayground } from '@/settings/playground/components/RestPlayground'; const PlaygroundApiKeySetterEffect = () => { const setPlaygroundApiKey = useSetRecoilState(playgroundApiKeyState); diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/stories/SettingsRoleAssignment.stories.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/stories/SettingsRoleAssignment.stories.tsx index f272042eaa..f7f291a3cb 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/stories/SettingsRoleAssignment.stories.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/stories/SettingsRoleAssignment.stories.tsx @@ -1,6 +1,6 @@ import { SettingsRoleAssignment } from '@/settings/roles/role-assignment/components/SettingsRoleAssignment'; import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useSetRecoilState } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/components/stories/SettingsRolePermissions.stories.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/components/stories/SettingsRolePermissions.stories.tsx index f715d478bc..14ee3ebc13 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-permissions/components/stories/SettingsRolePermissions.stories.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/components/stories/SettingsRolePermissions.stories.tsx @@ -1,6 +1,6 @@ import { SettingsRolePermissions } from '@/settings/roles/role-permissions/components/SettingsRolePermissions'; import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useSetRecoilState } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/settings/roles/role-settings/components/stories/SettingsRoleSettings.stories.tsx b/packages/twenty-front/src/modules/settings/roles/role-settings/components/stories/SettingsRoleSettings.stories.tsx index a5fdb4cb8b..555f09cdda 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-settings/components/stories/SettingsRoleSettings.stories.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-settings/components/stories/SettingsRoleSettings.stories.tsx @@ -1,6 +1,6 @@ import { SettingsRoleSettings } from '@/settings/roles/role-settings/components/SettingsRoleSettings'; import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useSetRecoilState } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/MatchColumns.stories.tsx b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/MatchColumns.stories.tsx index 30ab911290..8e195e72dd 100644 --- a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/MatchColumns.stories.tsx +++ b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/MatchColumns.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta } from '@storybook/react'; +import { type Meta } from '@storybook/react-vite'; import { mockRsiValues } from '@/spreadsheet-import/__mocks__/mockRsiValues'; import { ReactSpreadsheetImportContextProvider } from '@/spreadsheet-import/components/ReactSpreadsheetImportContextProvider'; diff --git a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/SelectHeader.stories.tsx b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/SelectHeader.stories.tsx index eefc298a7e..d31ffdcd43 100644 --- a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/SelectHeader.stories.tsx +++ b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/SelectHeader.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta } from '@storybook/react'; +import { type Meta } from '@storybook/react-vite'; import { headerSelectionTableFields, diff --git a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/SelectSheet.stories.tsx b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/SelectSheet.stories.tsx index 92ae810bf7..5b0cc160c3 100644 --- a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/SelectSheet.stories.tsx +++ b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/SelectSheet.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta } from '@storybook/react'; +import { type Meta } from '@storybook/react-vite'; import { mockRsiValues } from '@/spreadsheet-import/__mocks__/mockRsiValues'; import { ReactSpreadsheetImportContextProvider } from '@/spreadsheet-import/components/ReactSpreadsheetImportContextProvider'; diff --git a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/Steps.stories.tsx b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/Steps.stories.tsx index 44c89d79d7..0d19b4a06c 100644 --- a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/Steps.stories.tsx +++ b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/Steps.stories.tsx @@ -1,12 +1,12 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; +import { SpreadsheetImportStepperContainer } from '@/spreadsheet-import/steps/components/SpreadsheetImportStepperContainer'; import { stepBarInternalState } from '@/ui/navigation/step-bar/states/stepBarInternalState'; import { ContextStoreDecorator } from '~/testing/decorators/ContextStoreDecorator'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; -import { SpreadsheetImportStepperContainer } from '@/spreadsheet-import/steps/components/SpreadsheetImportStepperContainer'; const meta: Meta = { title: 'Modules/SpreadsheetImport/Steps', diff --git a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/Upload.stories.tsx b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/Upload.stories.tsx index a82622cbcb..c7c91b9a28 100644 --- a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/Upload.stories.tsx +++ b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/Upload.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta } from '@storybook/react'; +import { type Meta } from '@storybook/react-vite'; import { mockRsiValues } from '@/spreadsheet-import/__mocks__/mockRsiValues'; import { ReactSpreadsheetImportContextProvider } from '@/spreadsheet-import/components/ReactSpreadsheetImportContextProvider'; diff --git a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/Validation.stories.tsx b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/Validation.stories.tsx index 652f0749a7..8b91c4f745 100644 --- a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/Validation.stories.tsx +++ b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/__stories__/Validation.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta } from '@storybook/react'; +import { type Meta } from '@storybook/react-vite'; import { editableTableInitialData, diff --git a/packages/twenty-front/src/modules/ui/feedback/snack-bar-manager/components/__stories__/SnackBar.stories.tsx b/packages/twenty-front/src/modules/ui/feedback/snack-bar-manager/components/__stories__/SnackBar.stories.tsx index c8088000dc..ded939e98f 100644 --- a/packages/twenty-front/src/modules/ui/feedback/snack-bar-manager/components/__stories__/SnackBar.stories.tsx +++ b/packages/twenty-front/src/modules/ui/feedback/snack-bar-manager/components/__stories__/SnackBar.stories.tsx @@ -1,8 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { fn } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { fn } from 'storybook/test'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { SnackBar, SnackBarVariant, @@ -12,6 +11,7 @@ import { type CatalogStory, ComponentDecorator, } from 'twenty-ui/testing'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const meta: Meta = { title: 'UI/Feedback/SnackBarManager/SnackBar', diff --git a/packages/twenty-front/src/modules/ui/field/display/components/__stories__/ActorDisplay.stories.tsx b/packages/twenty-front/src/modules/ui/field/display/components/__stories__/ActorDisplay.stories.tsx index bcd017578d..8ad58c4626 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/__stories__/ActorDisplay.stories.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/__stories__/ActorDisplay.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; diff --git a/packages/twenty-front/src/modules/ui/field/display/components/__stories__/DateDisplay.stories.tsx b/packages/twenty-front/src/modules/ui/field/display/components/__stories__/DateDisplay.stories.tsx index 2e3bb32ae3..30cd0fe000 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/__stories__/DateDisplay.stories.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/__stories__/DateDisplay.stories.tsx @@ -1,10 +1,10 @@ import { DateFormat } from '@/localization/constants/DateFormat'; import { TimeFormat } from '@/localization/constants/TimeFormat'; import { FieldDateDisplayFormat } from '@/object-record/record-field/ui/types/FieldMetadata'; -import { UserContext } from '@/users/contexts/UserContext'; -import type { Meta, StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; import { DateDisplay } from '@/ui/field/display/components/DateDisplay'; +import { UserContext } from '@/users/contexts/UserContext'; +import type { Meta, StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; const meta: Meta = { title: 'UI/Field/Display/DateDisplay', diff --git a/packages/twenty-front/src/modules/ui/field/display/components/__stories__/LinksDisplay.stories.tsx b/packages/twenty-front/src/modules/ui/field/display/components/__stories__/LinksDisplay.stories.tsx index ecb4eebebe..49afb13c16 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/__stories__/LinksDisplay.stories.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/__stories__/LinksDisplay.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, waitFor, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, waitFor, within } from 'storybook/test'; import { LinksDisplay } from '@/ui/field/display/components/LinksDisplay'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/ui/field/display/components/__stories__/PhoneInputDisplay.stories.tsx b/packages/twenty-front/src/modules/ui/field/display/components/__stories__/PhoneInputDisplay.stories.tsx index 2238371c03..d6831f1f7f 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/__stories__/PhoneInputDisplay.stories.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/__stories__/PhoneInputDisplay.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; diff --git a/packages/twenty-front/src/modules/ui/field/display/components/__stories__/perf/EllipsisDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/ui/field/display/components/__stories__/perf/EllipsisDisplay.perf.stories.tsx index 07f70c8dbf..7ee59ffa01 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/__stories__/perf/EllipsisDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/__stories__/perf/EllipsisDisplay.perf.stories.tsx @@ -1,8 +1,8 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { EllipsisDisplay } from '@/ui/field/display/components/EllipsisDisplay'; -import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; import { ComponentDecorator } from 'twenty-ui/testing'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; const meta: Meta = { title: 'UI/Input/EllipsisDisplay/EllipsisDisplay', diff --git a/packages/twenty-front/src/modules/ui/field/input/components/__stories__/MultiSelectInput.stories.tsx b/packages/twenty-front/src/modules/ui/field/input/components/__stories__/MultiSelectInput.stories.tsx index ec731f33f1..d7cd0d659b 100644 --- a/packages/twenty-front/src/modules/ui/field/input/components/__stories__/MultiSelectInput.stories.tsx +++ b/packages/twenty-front/src/modules/ui/field/input/components/__stories__/MultiSelectInput.stories.tsx @@ -1,10 +1,11 @@ import { type FieldMultiSelectValue } from '@/object-record/record-field/ui/types/FieldMetadata'; import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFieldInputId'; +import { MultiSelectInput } from '@/ui/field/input/components/MultiSelectInput'; import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePushFocusItemToFocusStack'; import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect, useState } from 'react'; +import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; import { IconBolt, IconBrandGoogle, @@ -18,7 +19,6 @@ import { import { type SelectOption } from 'twenty-ui/input'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; -import { MultiSelectInput } from '@/ui/field/input/components/MultiSelectInput'; type RenderProps = { values: FieldMultiSelectValue; diff --git a/packages/twenty-front/src/modules/ui/input/components/__stories__/IconPicker.stories.tsx b/packages/twenty-front/src/modules/ui/input/components/__stories__/IconPicker.stories.tsx index dc2b649a4b..efb962abae 100644 --- a/packages/twenty-front/src/modules/ui/input/components/__stories__/IconPicker.stories.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/__stories__/IconPicker.stories.tsx @@ -1,16 +1,16 @@ -import { useArgs } from '@storybook/preview-api'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { useArgs } from 'storybook/preview-api'; +import { expect, userEvent, within } from 'storybook/test'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator'; import { sleep } from '~/utils/sleep'; -import { ComponentDecorator } from 'twenty-ui/testing'; import { IconPicker, type IconPickerProps, } from '@/ui/input/components/IconPicker'; +import { ComponentDecorator } from 'twenty-ui/testing'; type RenderProps = IconPickerProps; const Render = (args: RenderProps) => { diff --git a/packages/twenty-front/src/modules/ui/input/components/__stories__/ImageInput.stories.tsx b/packages/twenty-front/src/modules/ui/input/components/__stories__/ImageInput.stories.tsx index dbae7b5a36..fd59fc322f 100644 --- a/packages/twenty-front/src/modules/ui/input/components/__stories__/ImageInput.stories.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/__stories__/ImageInput.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { workspaceLogoUrl } from '~/testing/mock-data/users'; diff --git a/packages/twenty-front/src/modules/ui/input/components/__stories__/Select.stories.tsx b/packages/twenty-front/src/modules/ui/input/components/__stories__/Select.stories.tsx index 6d95dd3820..279d45b94f 100644 --- a/packages/twenty-front/src/modules/ui/input/components/__stories__/Select.stories.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/__stories__/Select.stories.tsx @@ -1,10 +1,10 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useState } from 'react'; +import { userEvent, within } from 'storybook/test'; +import { Select, type SelectProps } from '@/ui/input/components/Select'; import { IconPlus } from 'twenty-ui/display'; import { ComponentDecorator } from 'twenty-ui/testing'; -import { Select, type SelectProps } from '@/ui/input/components/Select'; type RenderProps = SelectProps; diff --git a/packages/twenty-front/src/modules/ui/input/components/__stories__/TextArea.stories.tsx b/packages/twenty-front/src/modules/ui/input/components/__stories__/TextArea.stories.tsx index fb1062869f..37a7255bd8 100644 --- a/packages/twenty-front/src/modules/ui/input/components/__stories__/TextArea.stories.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/__stories__/TextArea.stories.tsx @@ -1,8 +1,8 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useState } from 'react'; -import { expect, userEvent, within } from '@storybook/test'; import { TextArea, type TextAreaProps } from '@/ui/input/components/TextArea'; +import { expect, userEvent, within } from 'storybook/test'; import { ComponentDecorator } from 'twenty-ui/testing'; type RenderProps = TextAreaProps; diff --git a/packages/twenty-front/src/modules/ui/input/components/__stories__/TextInput.stories.tsx b/packages/twenty-front/src/modules/ui/input/components/__stories__/TextInput.stories.tsx index a7cfadca94..18a5e628a1 100644 --- a/packages/twenty-front/src/modules/ui/input/components/__stories__/TextInput.stories.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/__stories__/TextInput.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useState } from 'react'; import { diff --git a/packages/twenty-front/src/modules/ui/input/components/__stories__/TitleInput.stories.tsx b/packages/twenty-front/src/modules/ui/input/components/__stories__/TitleInput.stories.tsx index 30d695603e..e4e332ad4a 100644 --- a/packages/twenty-front/src/modules/ui/input/components/__stories__/TitleInput.stories.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/__stories__/TitleInput.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { TitleInput } from '@/ui/input/components/TitleInput'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/__stories__/InternalDatePicker.stories.tsx b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/__stories__/InternalDatePicker.stories.tsx index 07c28a9825..3aa798b4ec 100644 --- a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/__stories__/InternalDatePicker.stories.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/__stories__/InternalDatePicker.stories.tsx @@ -1,9 +1,9 @@ -import { useArgs } from '@storybook/preview-api'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, within } from '@storybook/test'; +import { DateTimePicker } from '@/ui/input/components/internal/date/components/DateTimePicker'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { useArgs } from 'storybook/preview-api'; +import { expect, userEvent, within } from 'storybook/test'; import { Temporal } from 'temporal-polyfill'; import { ComponentDecorator } from 'twenty-ui/testing'; -import { DateTimePicker } from '@/ui/input/components/internal/date/components/DateTimePicker'; const meta: Meta = { title: 'UI/Input/Internal/InternalDatePicker', diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/utils/__tests__/getHighlightedDates.test.ts b/packages/twenty-front/src/modules/ui/input/components/internal/date/utils/__tests__/getHighlightedDates.test.ts index 1b4b8b97e3..eb33813713 100644 --- a/packages/twenty-front/src/modules/ui/input/components/internal/date/utils/__tests__/getHighlightedDates.test.ts +++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/utils/__tests__/getHighlightedDates.test.ts @@ -1,5 +1,5 @@ import { getHighlightedDates } from '@/ui/input/components/internal/date/utils/getHighlightedDates'; -import { expect } from '@storybook/test'; +import { expect } from 'storybook/test'; import { Temporal } from 'temporal-polyfill'; jest.useFakeTimers().setSystemTime(new Date('2024-10-01T00:00:00.000Z')); diff --git a/packages/twenty-front/src/modules/ui/layout/draggable-list/components/__stories__/DraggableItem.stories.tsx b/packages/twenty-front/src/modules/ui/layout/draggable-list/components/__stories__/DraggableItem.stories.tsx index 6449a08534..2ca567df53 100644 --- a/packages/twenty-front/src/modules/ui/layout/draggable-list/components/__stories__/DraggableItem.stories.tsx +++ b/packages/twenty-front/src/modules/ui/layout/draggable-list/components/__stories__/DraggableItem.stories.tsx @@ -1,6 +1,6 @@ import { DragDropContext, Droppable } from '@hello-pangea/dnd'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { fn } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { fn } from 'storybook/test'; import { DraggableItem } from '@/ui/layout/draggable-list/components/DraggableItem'; import { IconBell } from 'twenty-ui/display'; diff --git a/packages/twenty-front/src/modules/ui/layout/draggable-list/components/__stories__/DraggableList.stories.tsx b/packages/twenty-front/src/modules/ui/layout/draggable-list/components/__stories__/DraggableList.stories.tsx index f5a63df349..1264006fe2 100644 --- a/packages/twenty-front/src/modules/ui/layout/draggable-list/components/__stories__/DraggableList.stories.tsx +++ b/packages/twenty-front/src/modules/ui/layout/draggable-list/components/__stories__/DraggableList.stories.tsx @@ -1,10 +1,10 @@ import { DraggableItem } from '@/ui/layout/draggable-list/components/DraggableItem'; import { DraggableList } from '@/ui/layout/draggable-list/components/DraggableList'; -import { action } from '@storybook/addon-actions'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { ComponentDecorator } from 'twenty-ui/testing'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { action } from 'storybook/actions'; import { IconBell } from 'twenty-ui/display'; import { MenuItemDraggable } from 'twenty-ui/navigation'; +import { ComponentDecorator } from 'twenty-ui/testing'; const meta: Meta = { title: 'UI/Layout/DraggableList/DraggableList', diff --git a/packages/twenty-front/src/modules/ui/layout/dropdown/components/__stories__/Dropdown.stories.tsx b/packages/twenty-front/src/modules/ui/layout/dropdown/components/__stories__/Dropdown.stories.tsx index 8bffe4949e..ec959fba11 100644 --- a/packages/twenty-front/src/modules/ui/layout/dropdown/components/__stories__/Dropdown.stories.tsx +++ b/packages/twenty-front/src/modules/ui/layout/dropdown/components/__stories__/Dropdown.stories.tsx @@ -1,7 +1,11 @@ import styled from '@emotion/styled'; -import { type Decorator, type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, waitFor, within } from '@storybook/test'; -import { type PlayFunction } from '@storybook/types'; +import { + type Decorator, + type Meta, + type StoryObj, +} from '@storybook/react-vite'; +import { type PlayFunction } from 'storybook/internal/types'; +import { expect, userEvent, waitFor, within } from 'storybook/test'; // TEMP_DISABLED_TEST: Commented out unused import // import { useState } from 'react'; @@ -15,6 +19,13 @@ import { DropdownMenuHeaderLeftComponent } from '@/ui/layout/dropdown/components // import { focusStackState } from '@/ui/utilities/focus/states/focusStackState'; // import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType'; // import { type SetRecoilState } from 'recoil'; +import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown'; +import { DropdownMenuHeader } from '@/ui/layout/dropdown/components/DropdownMenuHeader/DropdownMenuHeader'; +import { DropdownMenuInput } from '@/ui/layout/dropdown/components/DropdownMenuInput'; +import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer'; +import { DropdownMenuSearchInput } from '@/ui/layout/dropdown/components/DropdownMenuSearchInput'; +import { DropdownMenuSeparator } from '@/ui/layout/dropdown/components/DropdownMenuSeparator'; +import { StyledDropdownMenuSubheader } from '@/ui/layout/dropdown/components/StyledDropdownMenuSubheader'; import { // TEMP_DISABLED_TEST: Commented out unused import // Avatar, @@ -24,13 +35,6 @@ import { Button } from 'twenty-ui/input'; import { MenuItem } from 'twenty-ui/navigation'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; -import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown'; -import { DropdownMenuHeader } from '@/ui/layout/dropdown/components/DropdownMenuHeader/DropdownMenuHeader'; -import { DropdownMenuInput } from '@/ui/layout/dropdown/components/DropdownMenuInput'; -import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer'; -import { DropdownMenuSearchInput } from '@/ui/layout/dropdown/components/DropdownMenuSearchInput'; -import { DropdownMenuSeparator } from '@/ui/layout/dropdown/components/DropdownMenuSeparator'; -import { StyledDropdownMenuSubheader } from '@/ui/layout/dropdown/components/StyledDropdownMenuSubheader'; const meta: Meta = { title: 'UI/Layout/Dropdown/Dropdown', diff --git a/packages/twenty-front/src/modules/ui/layout/dropdown/components/__stories__/DropdownMenuHeader.stories.tsx b/packages/twenty-front/src/modules/ui/layout/dropdown/components/__stories__/DropdownMenuHeader.stories.tsx index 93a28c1c91..d63828d557 100644 --- a/packages/twenty-front/src/modules/ui/layout/dropdown/components/__stories__/DropdownMenuHeader.stories.tsx +++ b/packages/twenty-front/src/modules/ui/layout/dropdown/components/__stories__/DropdownMenuHeader.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown'; import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent'; diff --git a/packages/twenty-front/src/modules/ui/layout/dropdown/components/__stories__/DropdownMenuInput.stories.tsx b/packages/twenty-front/src/modules/ui/layout/dropdown/components/__stories__/DropdownMenuInput.stories.tsx index 4ef11679a6..4bbe2f4441 100644 --- a/packages/twenty-front/src/modules/ui/layout/dropdown/components/__stories__/DropdownMenuInput.stories.tsx +++ b/packages/twenty-front/src/modules/ui/layout/dropdown/components/__stories__/DropdownMenuInput.stories.tsx @@ -1,7 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; -import { ComponentDecorator } from 'twenty-ui/testing'; import { DropdownMenuInput } from '@/ui/layout/dropdown/components/DropdownMenuInput'; +import { ComponentDecorator } from 'twenty-ui/testing'; const meta: Meta = { title: 'UI/Layout/Dropdown/DropdownMenuInput', diff --git a/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useCloseAnyOpenDropdown.test.tsx b/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useCloseAnyOpenDropdown.test.tsx index 0c0b9dd0d1..84692599d7 100644 --- a/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useCloseAnyOpenDropdown.test.tsx +++ b/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useCloseAnyOpenDropdown.test.tsx @@ -1,7 +1,7 @@ -import { expect } from '@storybook/test'; import { renderHook } from '@testing-library/react'; import { act } from 'react'; import { RecoilRoot } from 'recoil'; +import { expect } from 'storybook/test'; import { DropdownComponentInstanceContext } from '@/ui/layout/dropdown/contexts/DropdownComponentInstanceContext'; import { useCloseAnyOpenDropdown } from '@/ui/layout/dropdown/hooks/useCloseAnyOpenDropdown'; diff --git a/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useCloseDropdown.test.tsx b/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useCloseDropdown.test.tsx index a56c0b013b..46b2e85fef 100644 --- a/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useCloseDropdown.test.tsx +++ b/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useCloseDropdown.test.tsx @@ -1,7 +1,7 @@ -import { expect } from '@storybook/test'; import { renderHook } from '@testing-library/react'; import { act } from 'react'; import { RecoilRoot } from 'recoil'; +import { expect } from 'storybook/test'; import { DropdownComponentInstanceContext } from '@/ui/layout/dropdown/contexts/DropdownComponentInstanceContext'; import { useCloseDropdown } from '@/ui/layout/dropdown/hooks/useCloseDropdown'; diff --git a/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useOpenDropdown.test.tsx b/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useOpenDropdown.test.tsx index b44dbefd76..4188cd9a76 100644 --- a/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useOpenDropdown.test.tsx +++ b/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useOpenDropdown.test.tsx @@ -1,7 +1,7 @@ -import { expect } from '@storybook/test'; import { renderHook } from '@testing-library/react'; import { act } from 'react'; import { RecoilRoot } from 'recoil'; +import { expect } from 'storybook/test'; import { DropdownComponentInstanceContext } from '@/ui/layout/dropdown/contexts/DropdownComponentInstanceContext'; import { useOpenDropdown } from '@/ui/layout/dropdown/hooks/useOpenDropdown'; diff --git a/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useToggleDropdown.test.tsx b/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useToggleDropdown.test.tsx index bf0410a9b3..be38b46bd6 100644 --- a/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useToggleDropdown.test.tsx +++ b/packages/twenty-front/src/modules/ui/layout/dropdown/hooks/__tests__/useToggleDropdown.test.tsx @@ -1,7 +1,7 @@ -import { expect } from '@storybook/test'; import { renderHook } from '@testing-library/react'; import { act } from 'react'; import { RecoilRoot } from 'recoil'; +import { expect } from 'storybook/test'; import { DropdownComponentInstanceContext } from '@/ui/layout/dropdown/contexts/DropdownComponentInstanceContext'; import { useToggleDropdown } from '@/ui/layout/dropdown/hooks/useToggleDropdown'; diff --git a/packages/twenty-front/src/modules/ui/layout/expandable-list/components/__stories__/ExpandableList.stories.tsx b/packages/twenty-front/src/modules/ui/layout/expandable-list/components/__stories__/ExpandableList.stories.tsx index 8728e7fe3d..e64298bc85 100644 --- a/packages/twenty-front/src/modules/ui/layout/expandable-list/components/__stories__/ExpandableList.stories.tsx +++ b/packages/twenty-front/src/modules/ui/layout/expandable-list/components/__stories__/ExpandableList.stories.tsx @@ -1,6 +1,6 @@ import styled from '@emotion/styled'; -import { expect, userEvent, within } from '@storybook/test'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, userEvent, within } from 'storybook/test'; import { ExpandableList } from '@/ui/layout/expandable-list/components/ExpandableList'; import { isDefined } from 'twenty-shared/utils'; diff --git a/packages/twenty-front/src/modules/ui/layout/fullscreen/components/__stories__/FullScreenContainer.stories.tsx b/packages/twenty-front/src/modules/ui/layout/fullscreen/components/__stories__/FullScreenContainer.stories.tsx index 65a4662a91..1f5b231f32 100644 --- a/packages/twenty-front/src/modules/ui/layout/fullscreen/components/__stories__/FullScreenContainer.stories.tsx +++ b/packages/twenty-front/src/modules/ui/layout/fullscreen/components/__stories__/FullScreenContainer.stories.tsx @@ -1,11 +1,11 @@ import { FullScreenContainer } from '@/ui/layout/fullscreen/components/FullScreenContainer'; import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator, ComponentWithRouterDecorator, } from 'twenty-ui/testing'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const meta: Meta = { title: 'UI/Layout/FullScreenContainer', diff --git a/packages/twenty-front/src/modules/ui/layout/modal/components/__stories__/ConfirmationModal.stories.tsx b/packages/twenty-front/src/modules/ui/layout/modal/components/__stories__/ConfirmationModal.stories.tsx index 8a79b6f6e0..d4c4437b96 100644 --- a/packages/twenty-front/src/modules/ui/layout/modal/components/__stories__/ConfirmationModal.stories.tsx +++ b/packages/twenty-front/src/modules/ui/layout/modal/components/__stories__/ConfirmationModal.stories.tsx @@ -1,6 +1,8 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; +import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModal'; +import { isModalOpenedComponentState } from '@/ui/layout/modal/states/isModalOpenedComponentState'; import { focusStackState } from '@/ui/utilities/focus/states/focusStackState'; import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType'; import { type SetRecoilState } from 'recoil'; @@ -8,8 +10,6 @@ import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { RootDecorator } from '~/testing/decorators/RootDecorator'; import { sleep } from '~/utils/sleep'; -import { isModalOpenedComponentState } from '@/ui/layout/modal/states/isModalOpenedComponentState'; -import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModal'; const initializeState = ({ set }: { set: SetRecoilState }) => { set( diff --git a/packages/twenty-front/src/modules/ui/layout/modal/components/__stories__/Modal.stories.tsx b/packages/twenty-front/src/modules/ui/layout/modal/components/__stories__/Modal.stories.tsx index de81ed0dd5..bea55afa23 100644 --- a/packages/twenty-front/src/modules/ui/layout/modal/components/__stories__/Modal.stories.tsx +++ b/packages/twenty-front/src/modules/ui/layout/modal/components/__stories__/Modal.stories.tsx @@ -1,6 +1,8 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; +import { Modal } from '@/ui/layout/modal/components/Modal'; +import { isModalOpenedComponentState } from '@/ui/layout/modal/states/isModalOpenedComponentState'; import { focusStackState } from '@/ui/utilities/focus/states/focusStackState'; import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType'; import { type SetRecoilState } from 'recoil'; @@ -8,8 +10,6 @@ import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { RootDecorator } from '~/testing/decorators/RootDecorator'; import { sleep } from '~/utils/sleep'; -import { isModalOpenedComponentState } from '@/ui/layout/modal/states/isModalOpenedComponentState'; -import { Modal } from '@/ui/layout/modal/components/Modal'; const initializeState = ({ set }: { set: SetRecoilState }) => { set( diff --git a/packages/twenty-front/src/modules/ui/layout/tab-list/components/__stories__/TabMoreButton.stories.tsx b/packages/twenty-front/src/modules/ui/layout/tab-list/components/__stories__/TabMoreButton.stories.tsx index 576095c56b..fc725876a9 100644 --- a/packages/twenty-front/src/modules/ui/layout/tab-list/components/__stories__/TabMoreButton.stories.tsx +++ b/packages/twenty-front/src/modules/ui/layout/tab-list/components/__stories__/TabMoreButton.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; import { TabMoreButton } from '@/ui/layout/tab-list/components/TabMoreButton'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; const meta: Meta = { title: 'UI/Layout/TabList/TabMoreButton', diff --git a/packages/twenty-front/src/modules/ui/layout/tab-list/components/__stories__/Tablist.stories.tsx b/packages/twenty-front/src/modules/ui/layout/tab-list/components/__stories__/Tablist.stories.tsx index 16ff6a3c9c..706e3ab3ae 100644 --- a/packages/twenty-front/src/modules/ui/layout/tab-list/components/__stories__/Tablist.stories.tsx +++ b/packages/twenty-front/src/modules/ui/layout/tab-list/components/__stories__/Tablist.stories.tsx @@ -1,5 +1,6 @@ +import { TabList } from '@/ui/layout/tab-list/components/TabList'; import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconCalendar, IconCheckbox, @@ -10,7 +11,6 @@ import { IconUser, } from 'twenty-ui/display'; import { ComponentWithRouterDecorator } from 'twenty-ui/testing'; -import { TabList } from '@/ui/layout/tab-list/components/TabList'; const tabs = [ { id: 'general', title: 'General', logo: 'https://picsum.photos/200' }, diff --git a/packages/twenty-front/src/modules/ui/layout/table/components/__stories__/Table.stories.tsx b/packages/twenty-front/src/modules/ui/layout/table/components/__stories__/Table.stories.tsx index 3ff8f37bc5..f66b4bb4fd 100644 --- a/packages/twenty-front/src/modules/ui/layout/table/components/__stories__/Table.stories.tsx +++ b/packages/twenty-front/src/modules/ui/layout/table/components/__stories__/Table.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { Table } from '@/ui/layout/table/components/Table'; import { TableCell } from '@/ui/layout/table/components/TableCell'; diff --git a/packages/twenty-front/src/modules/ui/navigation/bread-crumb/components/__stories__/Breadcrumb.stories.tsx b/packages/twenty-front/src/modules/ui/navigation/bread-crumb/components/__stories__/Breadcrumb.stories.tsx index a6fb75266c..415f88b128 100644 --- a/packages/twenty-front/src/modules/ui/navigation/bread-crumb/components/__stories__/Breadcrumb.stories.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/bread-crumb/components/__stories__/Breadcrumb.stories.tsx @@ -1,8 +1,8 @@ -import { type Meta, type StoryObj } from '@storybook/react'; import { Breadcrumb } from '@/ui/navigation/bread-crumb/components/Breadcrumb'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; -import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; import { ComponentDecorator } from 'twenty-ui/testing'; +import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; const meta: Meta = { title: 'UI/Navigation/Breadcrumb/Breadcrumb', diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-bar/components/__stories__/NavigationBar.stories.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-bar/components/__stories__/NavigationBar.stories.tsx index b22348c47b..4577857ae8 100644 --- a/packages/twenty-front/src/modules/ui/navigation/navigation-bar/components/__stories__/NavigationBar.stories.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/navigation-bar/components/__stories__/NavigationBar.stories.tsx @@ -1,7 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; -import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; -import { ComponentDecorator } from 'twenty-ui/testing'; import { IconCheckbox, IconList, @@ -9,6 +7,8 @@ import { IconSettings, } from 'twenty-ui/display'; import { NavigationBar } from 'twenty-ui/navigation'; +import { ComponentDecorator } from 'twenty-ui/testing'; +import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; const meta: Meta = { title: 'UI/Navigation/NavigationBar/NavigationBar', diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/__stories__/NavigationDrawer.stories.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/__stories__/NavigationDrawer.stories.tsx index a21d14a96b..149b622964 100644 --- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/__stories__/NavigationDrawer.stories.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/__stories__/NavigationDrawer.stories.tsx @@ -1,7 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useEffect } from 'react'; import { useSetRecoilState } from 'recoil'; +import { expect, within } from 'storybook/test'; import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState'; diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/__stories__/NavigationDrawerCollapseButton.stories.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/__stories__/NavigationDrawerCollapseButton.stories.tsx index a82091f0bb..ae35611ece 100644 --- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/__stories__/NavigationDrawerCollapseButton.stories.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/__stories__/NavigationDrawerCollapseButton.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { NavigationDrawerCollapseButton } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerCollapseButton'; import { ComponentDecorator } from 'twenty-ui/testing'; diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/__stories__/NavigationDrawerItem.stories.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/__stories__/NavigationDrawerItem.stories.tsx index e6ef688fc5..283dfbd14c 100644 --- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/__stories__/NavigationDrawerItem.stories.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/__stories__/NavigationDrawerItem.stories.tsx @@ -1,12 +1,12 @@ import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { NavigationDrawerItem } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerItem'; import { IconSearch } from 'twenty-ui/display'; import { CatalogDecorator, type CatalogStory } from 'twenty-ui/testing'; import { getOsControlSymbol } from 'twenty-ui/utilities'; import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; -import { NavigationDrawerItem } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerItem'; const StyledContainer = styled.div` display: flex; diff --git a/packages/twenty-front/src/modules/ui/utilities/drag-select/components/__stories__/DragSelect.stories.tsx b/packages/twenty-front/src/modules/ui/utilities/drag-select/components/__stories__/DragSelect.stories.tsx index efaf6d0d55..6c59f6ea1f 100644 --- a/packages/twenty-front/src/modules/ui/utilities/drag-select/components/__stories__/DragSelect.stories.tsx +++ b/packages/twenty-front/src/modules/ui/utilities/drag-select/components/__stories__/DragSelect.stories.tsx @@ -1,12 +1,12 @@ import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useRef, useState } from 'react'; +import { userEvent, within } from 'storybook/test'; +import { DragSelect } from '@/ui/utilities/drag-select/components/DragSelect'; import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper'; import { isDefined } from 'twenty-shared/utils'; import { ComponentDecorator } from 'twenty-ui/testing'; -import { DragSelect } from '@/ui/utilities/drag-select/components/DragSelect'; const StyledContainer = styled.div` border: 1px solid ${({ theme }) => theme.border.color.light}; diff --git a/packages/twenty-front/src/modules/views/components/__stories__/ViewBarFilterDropdown.stories.tsx b/packages/twenty-front/src/modules/views/components/__stories__/ViewBarFilterDropdown.stories.tsx index 742b05703d..8178cb229f 100644 --- a/packages/twenty-front/src/modules/views/components/__stories__/ViewBarFilterDropdown.stories.tsx +++ b/packages/twenty-front/src/modules/views/components/__stories__/ViewBarFilterDropdown.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { type TaskGroups } from '@/activities/tasks/components/TaskGroups'; import { contextStoreCurrentViewIdComponentState } from '@/context-store/states/contextStoreCurrentViewIdComponentState'; @@ -18,8 +18,8 @@ import { type RecordField } from '@/object-record/record-field/types/RecordField import { useRecordIndexFieldMetadataDerivedStates } from '@/object-record/record-index/hooks/useRecordIndexFieldMetadataDerivedStates'; import { ViewBarFilterDropdownIds } from '@/views/constants/ViewBarFilterDropdownIds'; import { coreViewsState } from '@/views/states/coreViewState'; -import { within } from '@storybook/test'; import { useSetRecoilState } from 'recoil'; +import { within } from 'storybook/test'; import { ComponentDecorator, getCanvasElementForDropdownTesting, diff --git a/packages/twenty-front/src/modules/workflow/components/__stories__/WorkflowFieldsMultiSelect.stories.ts b/packages/twenty-front/src/modules/workflow/components/__stories__/WorkflowFieldsMultiSelect.stories.ts index d4cc3c1655..87ab35556e 100644 --- a/packages/twenty-front/src/modules/workflow/components/__stories__/WorkflowFieldsMultiSelect.stories.ts +++ b/packages/twenty-front/src/modules/workflow/components/__stories__/WorkflowFieldsMultiSelect.stories.ts @@ -1,8 +1,8 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; -import type { Meta, StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; -import { FieldMetadataType } from '~/generated-metadata/graphql'; import { WorkflowFieldsMultiSelect } from '@/workflow/components/WorkflowEditUpdateEventFieldsMultiSelect'; +import type { Meta, StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; const meta: Meta = { title: 'Modules/Workflow/WorkflowFieldsMultiSelect', diff --git a/packages/twenty-front/src/modules/workflow/components/__stories__/WorkflowStepExecutionResult.stories.tsx b/packages/twenty-front/src/modules/workflow/components/__stories__/WorkflowStepExecutionResult.stories.tsx index 8a07564866..60dacbe3e2 100644 --- a/packages/twenty-front/src/modules/workflow/components/__stories__/WorkflowStepExecutionResult.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/components/__stories__/WorkflowStepExecutionResult.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/__stories__/WorkflowDiagramEmptyTriggerEditable.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/__stories__/WorkflowDiagramEmptyTriggerEditable.stories.tsx index 4520f771ba..8f4171d3df 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/__stories__/WorkflowDiagramEmptyTriggerEditable.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/__stories__/WorkflowDiagramEmptyTriggerEditable.stories.tsx @@ -1,13 +1,13 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { WorkflowVisualizerComponentInstanceContext } from '@/workflow/workflow-diagram/states/contexts/WorkflowVisualizerComponentInstanceContext'; import { workflowSelectedNodeComponentState } from '@/workflow/workflow-diagram/states/workflowSelectedNodeComponentState'; +import { WorkflowDiagramEmptyTriggerEditable } from '@/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramEmptyTriggerEditable'; import '@xyflow/react/dist/style.css'; import { RecoilRoot } from 'recoil'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ReactflowDecorator } from '~/testing/decorators/ReactflowDecorator'; -import { WorkflowDiagramEmptyTriggerEditable } from '@/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramEmptyTriggerEditable'; const meta: Meta = { title: 'Modules/Workflow/WorkflowDiagramEmptyTriggerEditable', diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/__stories__/WorkflowDiagramStepNodeEditableContent.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/__stories__/WorkflowDiagramStepNodeEditableContent.stories.tsx index 65d9b68fae..2225734c5f 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/__stories__/WorkflowDiagramStepNodeEditableContent.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/__stories__/WorkflowDiagramStepNodeEditableContent.stories.tsx @@ -1,15 +1,15 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { WorkflowVisualizerComponentInstanceContext } from '@/workflow/workflow-diagram/states/contexts/WorkflowVisualizerComponentInstanceContext'; import { workflowSelectedNodeComponentState } from '@/workflow/workflow-diagram/states/workflowSelectedNodeComponentState'; import { type WorkflowDiagramStepNodeData } from '@/workflow/workflow-diagram/types/WorkflowDiagram'; +import { WorkflowDiagramStepNodeEditableContent } from '@/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeEditableContent'; import '@xyflow/react/dist/style.css'; import { RecoilRoot } from 'recoil'; import { CatalogDecorator, type CatalogStory } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ReactflowDecorator } from '~/testing/decorators/ReactflowDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { WorkflowDiagramStepNodeEditableContent } from '@/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeEditableContent'; const meta: Meta = { title: 'Modules/Workflow/WorkflowDiagramStepNodeEditableContent', diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterAddFilterRuleSelect.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterAddFilterRuleSelect.stories.tsx index f6758a85ed..086c2d3a4e 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterAddFilterRuleSelect.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterAddFilterRuleSelect.stories.tsx @@ -1,6 +1,7 @@ +import { WorkflowStepFilterAddFilterRuleSelect } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterAddFilterRuleSelect'; import { WorkflowStepFilterDecorator } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { type StepFilterGroup, StepLogicalOperator } from 'twenty-shared/types'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; @@ -8,7 +9,6 @@ import { WorkflowStepActionDrawerDecorator } from '~/testing/decorators/Workflow import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { WorkflowStepFilterAddFilterRuleSelect } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterAddFilterRuleSelect'; const STEP_FILTER_GROUP: StepFilterGroup = { id: 'filter-group-1', diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterAddRootStepFilterButton.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterAddRootStepFilterButton.stories.tsx index 34b4e6562c..9a9651cfc0 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterAddRootStepFilterButton.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterAddRootStepFilterButton.stories.tsx @@ -1,13 +1,13 @@ +import { WorkflowStepFilterAddRootStepFilterButton } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterAddRootStepFilterButton'; import { WorkflowStepFilterDecorator } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepActionDrawerDecorator } from '~/testing/decorators/WorkflowStepActionDrawerDecorator'; import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { WorkflowStepFilterAddRootStepFilterButton } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterAddRootStepFilterButton'; const meta: Meta = { title: diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterColumn.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterColumn.stories.tsx index bee3bb3dda..50772ecad2 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterColumn.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterColumn.stories.tsx @@ -1,5 +1,6 @@ +import { WorkflowStepFilterColumn } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterColumn'; import { WorkflowStepFilterDecorator } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { type StepFilter, type StepFilterGroup, @@ -12,7 +13,6 @@ import { WorkflowStepActionDrawerDecorator } from '~/testing/decorators/Workflow import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { WorkflowStepFilterColumn } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterColumn'; const STEP_FILTER_GROUP: StepFilterGroup = { id: 'filter-group-1', diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterFieldSelect.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterFieldSelect.stories.tsx index bfeb4e9975..ad6d0a55b1 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterFieldSelect.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterFieldSelect.stories.tsx @@ -1,5 +1,6 @@ +import { WorkflowStepFilterFieldSelect } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterFieldSelect'; import { WorkflowStepFilterDecorator } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { type StepFilter, ViewFilterOperand } from 'twenty-shared/types'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; @@ -7,7 +8,6 @@ import { WorkflowStepActionDrawerDecorator } from '~/testing/decorators/Workflow import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { WorkflowStepFilterFieldSelect } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterFieldSelect'; const DEFAULT_STEP_FILTER: StepFilter = { id: 'filter-1', diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterLogicalOperatorCell.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterLogicalOperatorCell.stories.tsx index 1d5df36f1e..a5ae36cbce 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterLogicalOperatorCell.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterLogicalOperatorCell.stories.tsx @@ -1,6 +1,7 @@ +import { WorkflowStepFilterLogicalOperatorCell } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterLogicalOperatorCell'; import { WorkflowStepFilterDecorator } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { type StepFilterGroup, StepLogicalOperator } from 'twenty-shared/types'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; @@ -8,7 +9,6 @@ import { WorkflowStepActionDrawerDecorator } from '~/testing/decorators/Workflow import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { WorkflowStepFilterLogicalOperatorCell } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterLogicalOperatorCell'; const AND_STEP_FILTER_GROUP: StepFilterGroup = { id: 'filter-group-1', diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterOperandSelect.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterOperandSelect.stories.tsx index 22d0984aa6..609eddcc2d 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterOperandSelect.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterOperandSelect.stories.tsx @@ -1,7 +1,7 @@ -import { WorkflowStepFilterDecorator } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator'; import { WorkflowStepFilterOperandSelect } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterOperandSelect'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { WorkflowStepFilterDecorator } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { type StepFilter, ViewFilterOperand } from 'twenty-shared/types'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterValueInput.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterValueInput.stories.tsx index dd2587b10a..425afd4f79 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterValueInput.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/__stories__/WorkflowStepFilterValueInput.stories.tsx @@ -1,6 +1,7 @@ +import { WorkflowStepFilterValueInput } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterValueInput'; import { WorkflowStepFilterDecorator } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { type StepFilter, ViewFilterOperand } from 'twenty-shared/types'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; @@ -8,7 +9,6 @@ import { WorkflowStepActionDrawerDecorator } from '~/testing/decorators/Workflow import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { WorkflowStepFilterValueInput } from '@/workflow/workflow-steps/filters/components/WorkflowStepFilterValueInput'; const TEXT_FILTER: StepFilter = { id: 'filter-1', diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/__stories__/WorkflowEditActionServerlessFunction.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/__stories__/WorkflowEditActionServerlessFunction.stories.tsx index b580253f28..f33bbd0e6d 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/__stories__/WorkflowEditActionServerlessFunction.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/__stories__/WorkflowEditActionServerlessFunction.stories.tsx @@ -1,8 +1,8 @@ import { type WorkflowCodeAction } from '@/workflow/types/Workflow'; import { WorkflowEditActionServerlessFunction } from '@/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionServerlessFunction'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { fn } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { graphql, HttpResponse } from 'msw'; +import { fn } from 'storybook/test'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionCreateRecord.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionCreateRecord.stories.tsx index e7b5b23ab2..8e60b58b2f 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionCreateRecord.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionCreateRecord.stories.tsx @@ -1,5 +1,6 @@ -import { expect, fn, userEvent, within } from '@storybook/test'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { WorkflowEditActionCreateRecord } from '@/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionCreateRecord'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; @@ -9,7 +10,6 @@ import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorato import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; import { getWorkflowNodeIdMock } from '~/testing/mock-data/workflow'; -import { WorkflowEditActionCreateRecord } from '@/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionCreateRecord'; const meta: Meta = { title: 'Modules/Workflow/Actions/CreateRecord/EditAction', diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionDeleteRecord.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionDeleteRecord.stories.tsx index d4d5ce4849..767a97fb75 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionDeleteRecord.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionDeleteRecord.stories.tsx @@ -1,6 +1,7 @@ import { type WorkflowDeleteRecordAction } from '@/workflow/types/Workflow'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { WorkflowEditActionDeleteRecord } from '@/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionDeleteRecord'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; @@ -11,7 +12,6 @@ import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; import { allMockPersonRecords } from '~/testing/mock-data/people'; import { getWorkflowNodeIdMock } from '~/testing/mock-data/workflow'; -import { WorkflowEditActionDeleteRecord } from '@/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionDeleteRecord'; const DEFAULT_ACTION = { id: getWorkflowNodeIdMock(), diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionFindRecords.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionFindRecords.stories.tsx index 6ef010e669..af29772053 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionFindRecords.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionFindRecords.stories.tsx @@ -1,7 +1,7 @@ import { type WorkflowFindRecordsAction } from '@/workflow/types/Workflow'; import { WorkflowEditActionFindRecords } from '@/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowEditActionFindRecords'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionSendEmail.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionSendEmail.stories.tsx index 14a110b043..479ce7dded 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionSendEmail.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionSendEmail.stories.tsx @@ -1,7 +1,8 @@ import { type WorkflowSendEmailAction } from '@/workflow/types/Workflow'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, within } from '@storybook/test'; +import { WorkflowEditActionSendEmail } from '@/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionSendEmail'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { graphql, HttpResponse } from 'msw'; +import { expect, fn, within } from 'storybook/test'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; @@ -15,7 +16,6 @@ import { mockedConnectedAccounts, } from '~/testing/mock-data/connected-accounts'; import { getWorkflowNodeIdMock } from '~/testing/mock-data/workflow'; -import { WorkflowEditActionSendEmail } from '@/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionSendEmail'; const DEFAULT_ACTION: WorkflowSendEmailAction = { id: getWorkflowNodeIdMock(), diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionUpdateRecord.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionUpdateRecord.stories.tsx index a3f9ce9816..3b76011bd1 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionUpdateRecord.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionUpdateRecord.stories.tsx @@ -1,6 +1,7 @@ import { type WorkflowUpdateRecordAction } from '@/workflow/types/Workflow'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { WorkflowEditActionUpdateRecord } from '@/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpdateRecord'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; @@ -11,7 +12,6 @@ import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; import { allMockPersonRecords } from '~/testing/mock-data/people'; import { getWorkflowNodeIdMock } from '~/testing/mock-data/workflow'; -import { WorkflowEditActionUpdateRecord } from '@/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpdateRecord'; const DEFAULT_ACTION = { id: getWorkflowNodeIdMock(), diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/__stories__/WorkflowEditActionFilter.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/__stories__/WorkflowEditActionFilter.stories.tsx index f733f112f0..4a89cb7356 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/__stories__/WorkflowEditActionFilter.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/__stories__/WorkflowEditActionFilter.stories.tsx @@ -1,6 +1,7 @@ import { type WorkflowFilterAction } from '@/workflow/types/Workflow'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { fn } from '@storybook/test'; +import { WorkflowEditActionFilter } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilter'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { fn } from 'storybook/test'; import { StepLogicalOperator, ViewFilterOperand } from 'twenty-shared/types'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; @@ -9,7 +10,6 @@ import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorato import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; import { getWorkflowNodeIdMock } from '~/testing/mock-data/workflow'; -import { WorkflowEditActionFilter } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilter'; const DEFAULT_ACTION: WorkflowFilterAction = { id: getWorkflowNodeIdMock(), diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/__stories__/WorkflowEditActionFilterBody.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/__stories__/WorkflowEditActionFilterBody.stories.tsx index c0d98c676b..f23125afad 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/__stories__/WorkflowEditActionFilterBody.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/__stories__/WorkflowEditActionFilterBody.stories.tsx @@ -1,7 +1,8 @@ import { type WorkflowFilterAction } from '@/workflow/types/Workflow'; import { WorkflowStepFilterDecorator } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { fn } from '@storybook/test'; +import { WorkflowEditActionFilterBody } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilterBody'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { fn } from 'storybook/test'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowStepActionDrawerDecorator } from '~/testing/decorators/WorkflowStepActionDrawerDecorator'; @@ -9,7 +10,6 @@ import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorato import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; import { getWorkflowNodeIdMock } from '~/testing/mock-data/workflow'; -import { WorkflowEditActionFilterBody } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilterBody'; const DEFAULT_ACTION: WorkflowFilterAction = { id: getWorkflowNodeIdMock(), diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator.tsx index 25c59bcffe..fe34fbabef 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/decorators/WorkflowStepFilterDecorator.tsx @@ -1,6 +1,6 @@ import { StepFilterGroupsComponentInstanceContext } from '@/workflow/workflow-steps/filters/states/context/StepFilterGroupsComponentInstanceContext'; import { StepFiltersComponentInstanceContext } from '@/workflow/workflow-steps/filters/states/context/StepFiltersComponentInstanceContext'; -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; export const WorkflowStepFilterDecorator: Decorator = (Story) => { const stepId = 'step-id'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowEditActionFormBuilder.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowEditActionFormBuilder.stories.tsx index c22bc7eda2..2aa23b6715 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowEditActionFormBuilder.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowEditActionFormBuilder.stories.tsx @@ -1,7 +1,7 @@ import { type WorkflowFormAction } from '@/workflow/types/Workflow'; import { WorkflowEditActionFormBuilder } from '@/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormBuilder'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; import { FieldMetadataType } from 'twenty-shared/types'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowEditActionFormFieldSettings.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowEditActionFormFieldSettings.stories.tsx index a4cc2f3e48..88078a5f29 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowEditActionFormFieldSettings.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowEditActionFormFieldSettings.stories.tsx @@ -1,12 +1,12 @@ import { type WorkflowFormAction } from '@/workflow/types/Workflow'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { WorkflowEditActionFormFieldSettings } from '@/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormFieldSettings'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { FieldMetadataType } from 'twenty-shared/types'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { WorkflowStepActionDrawerDecorator } from '~/testing/decorators/WorkflowStepActionDrawerDecorator'; -import { WorkflowEditActionFormFieldSettings } from '@/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormFieldSettings'; const meta: Meta = { title: 'Modules/Workflow/Actions/Form/WorkflowEditActionFormFieldSettings', diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowEditActionFormFiller.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowEditActionFormFiller.stories.tsx index eb93cf1410..5aa4c442eb 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowEditActionFormFiller.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowEditActionFormFiller.stories.tsx @@ -1,6 +1,7 @@ import { type WorkflowFormAction } from '@/workflow/types/Workflow'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { WorkflowEditActionFormFiller } from '@/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormFiller'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { FieldMetadataType } from 'twenty-shared/types'; import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; @@ -10,7 +11,6 @@ import { WorkflowStepActionDrawerDecorator } from '~/testing/decorators/Workflow import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator'; import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { WorkflowEditActionFormFiller } from '@/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormFiller'; const meta: Meta = { title: 'Modules/Workflow/Actions/Form/WorkflowEditActionFormFiller', diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowFormEmptyMessage.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowFormEmptyMessage.stories.tsx index 9d43e85bec..c57bad7d5d 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowFormEmptyMessage.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/__stories__/WorkflowFormEmptyMessage.stories.tsx @@ -1,7 +1,7 @@ -import type { Meta, StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { WorkflowFormEmptyMessage } from '@/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowFormEmptyMessage'; +import type { Meta, StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const meta: Meta = { title: 'Modules/Workflow/Actions/Form/WorkflowFormEmptyMessage', diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/__stories__/HttpRequestExecutionResult.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/__stories__/HttpRequestExecutionResult.stories.tsx index f1fc800a40..340f8f8366 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/__stories__/HttpRequestExecutionResult.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/__stories__/HttpRequestExecutionResult.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { ComponentDecorator } from 'twenty-ui/testing'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/__stories__/HttpRequestTestVariableInput.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/__stories__/HttpRequestTestVariableInput.stories.tsx index b2a8da3bda..380b454fd4 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/__stories__/HttpRequestTestVariableInput.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/__stories__/HttpRequestTestVariableInput.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, userEvent, within } from 'storybook/test'; import { ComponentDecorator } from 'twenty-ui/testing'; import { HttpRequestTestVariableInput } from '@/workflow/workflow-steps/workflow-actions/http-request-action/components/HttpRequestTestVariableInput'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/__stories__/WorkflowEditActionHttpRequest.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/__stories__/WorkflowEditActionHttpRequest.stories.tsx index 945fe6911f..6ed4b19c22 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/__stories__/WorkflowEditActionHttpRequest.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/__stories__/WorkflowEditActionHttpRequest.stories.tsx @@ -1,6 +1,7 @@ import { type WorkflowHttpRequestAction } from '@/workflow/types/Workflow'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, waitFor, within } from '@storybook/test'; +import { WorkflowEditActionHttpRequest } from '@/workflow/workflow-steps/workflow-actions/http-request-action/components/WorkflowEditActionHttpRequest'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, waitFor, within } from 'storybook/test'; import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; @@ -13,7 +14,6 @@ import { getWorkflowNodeIdMock, MOCKED_STEP_ID, } from '~/testing/mock-data/workflow'; -import { WorkflowEditActionHttpRequest } from '@/workflow/workflow-steps/workflow-actions/http-request-action/components/WorkflowEditActionHttpRequest'; const DEFAULT_ACTION: WorkflowHttpRequestAction = { id: getWorkflowNodeIdMock(), @@ -253,7 +253,7 @@ export const WithObjectStringBody: Story = { expect(textboxes[6]).toHaveTextContent('frontend'); expect(textboxes[8]).toHaveTextContent('backend'); - expect(textboxes[10]).toHaveTextContent('database Name'); + expect(textboxes[10]).toHaveTextContent('database'); }, }; diff --git a/packages/twenty-front/src/pages/auth/__stories__/PasswordReset.stories.tsx b/packages/twenty-front/src/pages/auth/__stories__/PasswordReset.stories.tsx index a9a7c89136..1d4a4c7ed0 100644 --- a/packages/twenty-front/src/pages/auth/__stories__/PasswordReset.stories.tsx +++ b/packages/twenty-front/src/pages/auth/__stories__/PasswordReset.stories.tsx @@ -1,7 +1,7 @@ import { getOperationName } from '@apollo/client/utilities'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; +import { within } from 'storybook/test'; import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { diff --git a/packages/twenty-front/src/pages/auth/__stories__/SignInUp.stories.tsx b/packages/twenty-front/src/pages/auth/__stories__/SignInUp.stories.tsx index a486418f82..fc78afae2d 100644 --- a/packages/twenty-front/src/pages/auth/__stories__/SignInUp.stories.tsx +++ b/packages/twenty-front/src/pages/auth/__stories__/SignInUp.stories.tsx @@ -1,9 +1,9 @@ import { getOperationName } from '@apollo/client/utilities'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { fireEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; import { useEffect } from 'react'; import { useSetRecoilState } from 'recoil'; +import { fireEvent, within } from 'storybook/test'; import { captchaTokenState } from '@/captcha/states/captchaTokenState'; import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; diff --git a/packages/twenty-front/src/pages/auth/__stories__/SignInUpWithInvite.stories.tsx b/packages/twenty-front/src/pages/auth/__stories__/SignInUpWithInvite.stories.tsx index f4c3fa999f..b763fc894c 100644 --- a/packages/twenty-front/src/pages/auth/__stories__/SignInUpWithInvite.stories.tsx +++ b/packages/twenty-front/src/pages/auth/__stories__/SignInUpWithInvite.stories.tsx @@ -1,9 +1,9 @@ import { getOperationName } from '@apollo/client/utilities'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { fireEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; import { useEffect } from 'react'; import { useSetRecoilState } from 'recoil'; +import { fireEvent, within } from 'storybook/test'; import { captchaTokenState } from '@/captcha/states/captchaTokenState'; import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; diff --git a/packages/twenty-front/src/pages/not-found/__stories__/NotFound.stories.tsx b/packages/twenty-front/src/pages/not-found/__stories__/NotFound.stories.tsx index d32c6f3f1e..36281ed077 100644 --- a/packages/twenty-front/src/pages/not-found/__stories__/NotFound.stories.tsx +++ b/packages/twenty-front/src/pages/not-found/__stories__/NotFound.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { within } from 'storybook/test'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/object-record/__stories__/RecordIndexPage.stories.tsx b/packages/twenty-front/src/pages/object-record/__stories__/RecordIndexPage.stories.tsx index aa504c13e5..c70dfa6616 100644 --- a/packages/twenty-front/src/pages/object-record/__stories__/RecordIndexPage.stories.tsx +++ b/packages/twenty-front/src/pages/object-record/__stories__/RecordIndexPage.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/object-record/__stories__/RecordShowPage.stories.tsx b/packages/twenty-front/src/pages/object-record/__stories__/RecordShowPage.stories.tsx index 5a2ee4d0d6..471cf02576 100644 --- a/packages/twenty-front/src/pages/object-record/__stories__/RecordShowPage.stories.tsx +++ b/packages/twenty-front/src/pages/object-record/__stories__/RecordShowPage.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; import { type PageDecoratorArgs } from '~/testing/decorators/PageDecorator'; diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/ChooseYourPlan.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/ChooseYourPlan.stories.tsx index 2c6f790168..08f79ceec4 100644 --- a/packages/twenty-front/src/pages/onboarding/__stories__/ChooseYourPlan.stories.tsx +++ b/packages/twenty-front/src/pages/onboarding/__stories__/ChooseYourPlan.stories.tsx @@ -1,7 +1,7 @@ import { getOperationName } from '@apollo/client/utilities'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; +import { within } from 'storybook/test'; import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { AppPath } from 'twenty-shared/types'; diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/CreateProfile.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/CreateProfile.stories.tsx index 789b1704b1..cd755a05d8 100644 --- a/packages/twenty-front/src/pages/onboarding/__stories__/CreateProfile.stories.tsx +++ b/packages/twenty-front/src/pages/onboarding/__stories__/CreateProfile.stories.tsx @@ -1,7 +1,7 @@ import { getOperationName } from '@apollo/client/utilities'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; +import { within } from 'storybook/test'; import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { AppPath } from 'twenty-shared/types'; diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/CreateWorkspace.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/CreateWorkspace.stories.tsx index 50feb6bff6..225f5505bc 100644 --- a/packages/twenty-front/src/pages/onboarding/__stories__/CreateWorkspace.stories.tsx +++ b/packages/twenty-front/src/pages/onboarding/__stories__/CreateWorkspace.stories.tsx @@ -1,7 +1,7 @@ import { getOperationName } from '@apollo/client/utilities'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; +import { within } from 'storybook/test'; import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { AppPath } from 'twenty-shared/types'; diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/InviteTeam.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/InviteTeam.stories.tsx index 2ae4047524..0945ceadf2 100644 --- a/packages/twenty-front/src/pages/onboarding/__stories__/InviteTeam.stories.tsx +++ b/packages/twenty-front/src/pages/onboarding/__stories__/InviteTeam.stories.tsx @@ -1,7 +1,7 @@ import { getOperationName } from '@apollo/client/utilities'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; +import { within } from 'storybook/test'; import { AppPath } from 'twenty-shared/types'; import { OnboardingStatus } from '~/generated/graphql'; diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/PaymentSuccess.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/PaymentSuccess.stories.tsx index a4c8ea693d..53dbdc40e5 100644 --- a/packages/twenty-front/src/pages/onboarding/__stories__/PaymentSuccess.stories.tsx +++ b/packages/twenty-front/src/pages/onboarding/__stories__/PaymentSuccess.stories.tsx @@ -1,7 +1,7 @@ import { getOperationName } from '@apollo/client/utilities'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; +import { within } from 'storybook/test'; import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { AppPath } from 'twenty-shared/types'; diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/SyncEmails.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/SyncEmails.stories.tsx index 60f36fa2b7..56665ee1d0 100644 --- a/packages/twenty-front/src/pages/onboarding/__stories__/SyncEmails.stories.tsx +++ b/packages/twenty-front/src/pages/onboarding/__stories__/SyncEmails.stories.tsx @@ -1,7 +1,7 @@ import { getOperationName } from '@apollo/client/utilities'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; +import { within } from 'storybook/test'; import { AppPath } from 'twenty-shared/types'; import { OnboardingStatus } from '~/generated/graphql'; diff --git a/packages/twenty-front/src/pages/settings/__stories__/SettingsBilling.stories.tsx b/packages/twenty-front/src/pages/settings/__stories__/SettingsBilling.stories.tsx index a7ebb755ca..dd3a4dc1b5 100644 --- a/packages/twenty-front/src/pages/settings/__stories__/SettingsBilling.stories.tsx +++ b/packages/twenty-front/src/pages/settings/__stories__/SettingsBilling.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { SettingsPath } from 'twenty-shared/types'; import { diff --git a/packages/twenty-front/src/pages/settings/__stories__/SettingsExperience.stories.tsx b/packages/twenty-front/src/pages/settings/__stories__/SettingsExperience.stories.tsx index b03401686a..91d9a6fa18 100644 --- a/packages/twenty-front/src/pages/settings/__stories__/SettingsExperience.stories.tsx +++ b/packages/twenty-front/src/pages/settings/__stories__/SettingsExperience.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { PageDecorator, @@ -6,7 +6,7 @@ import { } from '~/testing/decorators/PageDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { within } from '@storybook/test'; +import { within } from 'storybook/test'; import { getCanvasElementForDropdownTesting } from 'twenty-ui/testing'; import { SettingsExperience } from '~/pages/settings/profile/appearance/components/SettingsExperience'; diff --git a/packages/twenty-front/src/pages/settings/__stories__/SettingsProfile.stories.tsx b/packages/twenty-front/src/pages/settings/__stories__/SettingsProfile.stories.tsx index a86e56483f..78ddbbedb5 100644 --- a/packages/twenty-front/src/pages/settings/__stories__/SettingsProfile.stories.tsx +++ b/packages/twenty-front/src/pages/settings/__stories__/SettingsProfile.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/settings/__stories__/SettingsWorkspace.stories.tsx b/packages/twenty-front/src/pages/settings/__stories__/SettingsWorkspace.stories.tsx index 065dada50c..b1d410b13c 100644 --- a/packages/twenty-front/src/pages/settings/__stories__/SettingsWorkspace.stories.tsx +++ b/packages/twenty-front/src/pages/settings/__stories__/SettingsWorkspace.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/settings/__stories__/SettingsWorkspaceMembers.stories.tsx b/packages/twenty-front/src/pages/settings/__stories__/SettingsWorkspaceMembers.stories.tsx index 901eed6221..d11046f002 100644 --- a/packages/twenty-front/src/pages/settings/__stories__/SettingsWorkspaceMembers.stories.tsx +++ b/packages/twenty-front/src/pages/settings/__stories__/SettingsWorkspaceMembers.stories.tsx @@ -1,5 +1,5 @@ // TEMP_DISABLED_TEST: Removed unused imports due to commented test -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccounts.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccounts.stories.tsx index 5e58c9086e..4ac57b01e1 100644 --- a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccounts.stories.tsx +++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccounts.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { within } from 'storybook/test'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendars.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendars.stories.tsx index d2e9ccafce..40cfd9cc0e 100644 --- a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendars.stories.tsx +++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendars.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; import { SettingsAccountsCalendars } from '~/pages/settings/accounts/SettingsAccountsCalendars'; diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsEmails.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsEmails.stories.tsx index 65d7e604c9..fb75e276a8 100644 --- a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsEmails.stories.tsx +++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsEmails.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql } from 'msw'; import { diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsNewAccount.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsNewAccount.stories.tsx index 4e3ba5c5d6..7566fc3f22 100644 --- a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsNewAccount.stories.tsx +++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsNewAccount.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { SettingsNewAccount } from '~/pages/settings/accounts/SettingsNewAccount'; import { diff --git a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsNewObject.stories.tsx b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsNewObject.stories.tsx index 190ad0f3fe..14d7ead094 100644 --- a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsNewObject.stories.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsNewObject.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { userEvent, within } from 'storybook/test'; import { PageDecorator, @@ -7,8 +7,8 @@ import { } from '~/testing/decorators/PageDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { SettingsNewObject } from '~/pages/settings/data-model/SettingsNewObject'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; const meta: Meta = { title: 'Pages/Settings/DataModel/SettingsNewObject', diff --git a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectDetail.stories.tsx b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectDetail.stories.tsx index 90e6fdb3b2..ddcb884b85 100644 --- a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectDetail.stories.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectDetail.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectFieldEdit.stories.tsx b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectFieldEdit.stories.tsx index 86392d3dc9..8c1d165c9c 100644 --- a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectFieldEdit.stories.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectFieldEdit.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectNewField/SettingsObjectNewFieldConfigure.stories.tsx b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectNewField/SettingsObjectNewFieldConfigure.stories.tsx index e26db105ef..b78bba369a 100644 --- a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectNewField/SettingsObjectNewFieldConfigure.stories.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectNewField/SettingsObjectNewFieldConfigure.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { userEvent, within } from 'storybook/test'; import { SettingsObjectNewFieldConfigure } from '~/pages/settings/data-model/new-field/SettingsObjectNewFieldConfigure'; import { diff --git a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectNewField/SettingsObjectNewFieldSelect.stories.tsx b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectNewField/SettingsObjectNewFieldSelect.stories.tsx index f2833f03f9..a6bd625f58 100644 --- a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectNewField/SettingsObjectNewFieldSelect.stories.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectNewField/SettingsObjectNewFieldSelect.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { userEvent, within } from 'storybook/test'; import { SettingsObjectNewFieldSelect } from '~/pages/settings/data-model/new-field/SettingsObjectNewFieldSelect'; import { diff --git a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjects.stories.tsx b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjects.stories.tsx index e12fb763a3..c94959e794 100644 --- a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjects.stories.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjects.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { within } from 'storybook/test'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopers.stories.tsx b/packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopers.stories.tsx index 66b02e76d5..7eec24cddc 100644 --- a/packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopers.stories.tsx +++ b/packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopers.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { within } from 'storybook/test'; import { SettingsApiKeys } from '~/pages/settings/developers/api-keys/SettingsApiKeys'; import { diff --git a/packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopersApiKeysDetail.stories.tsx b/packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopersApiKeysDetail.stories.tsx index c80195709d..a87f4034cc 100644 --- a/packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopersApiKeysDetail.stories.tsx +++ b/packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopersApiKeysDetail.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { SettingsDevelopersApiKeyDetail } from '~/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail'; import { diff --git a/packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopersApiKeysNew.stories.tsx b/packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopersApiKeysNew.stories.tsx index 7c6032df49..bcd104f822 100644 --- a/packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopersApiKeysNew.stories.tsx +++ b/packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopersApiKeysNew.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { SettingsPath } from 'twenty-shared/types'; // TEMP_DISABLED_TEST: Removed unused imports due to commented test diff --git a/packages/twenty-front/src/pages/settings/developers/__stories__/playground/GraphQLPlayground.stories.tsx b/packages/twenty-front/src/pages/settings/developers/__stories__/playground/GraphQLPlayground.stories.tsx index 84eec2d6aa..597d67b52c 100644 --- a/packages/twenty-front/src/pages/settings/developers/__stories__/playground/GraphQLPlayground.stories.tsx +++ b/packages/twenty-front/src/pages/settings/developers/__stories__/playground/GraphQLPlayground.stories.tsx @@ -1,12 +1,12 @@ -import { action } from '@storybook/addon-actions'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { SettingsGraphQLPlayground } from '~/pages/settings/developers/playground/SettingsGraphQLPlayground'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; -import { graphqlMocks } from '~/testing/graphqlMocks'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { action } from 'storybook/actions'; import { ComponentDecorator, ComponentWithRouterDecorator, } from 'twenty-ui/testing'; +import { SettingsGraphQLPlayground } from '~/pages/settings/developers/playground/SettingsGraphQLPlayground'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; +import { graphqlMocks } from '~/testing/graphqlMocks'; const meta: Meta = { title: 'Pages/Settings/Playground/GraphQLPlayground', diff --git a/packages/twenty-front/src/pages/settings/developers/__stories__/playground/SettingsPlayground.stories.tsx b/packages/twenty-front/src/pages/settings/developers/__stories__/playground/SettingsPlayground.stories.tsx index 493261247b..dde839a3cc 100644 --- a/packages/twenty-front/src/pages/settings/developers/__stories__/playground/SettingsPlayground.stories.tsx +++ b/packages/twenty-front/src/pages/settings/developers/__stories__/playground/SettingsPlayground.stories.tsx @@ -1,12 +1,12 @@ -import { action } from '@storybook/addon-actions'; -import { type Meta, type StoryObj } from '@storybook/react'; -import { SettingsRestPlayground } from '~/pages/settings/developers/playground/SettingsRestPlayground'; -import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; -import { graphqlMocks } from '~/testing/graphqlMocks'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { action } from 'storybook/actions'; import { ComponentDecorator, ComponentWithRouterDecorator, } from 'twenty-ui/testing'; +import { SettingsRestPlayground } from '~/pages/settings/developers/playground/SettingsRestPlayground'; +import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; +import { graphqlMocks } from '~/testing/graphqlMocks'; const meta: Meta = { title: 'Pages/Settings/Playground/RestPlayground', diff --git a/packages/twenty-front/src/pages/settings/developers/__stories__/webhooks/SettingsDevelopersWebhookNew.stories.tsx b/packages/twenty-front/src/pages/settings/developers/__stories__/webhooks/SettingsDevelopersWebhookNew.stories.tsx index 0aa5e95153..a990085d72 100644 --- a/packages/twenty-front/src/pages/settings/developers/__stories__/webhooks/SettingsDevelopersWebhookNew.stories.tsx +++ b/packages/twenty-front/src/pages/settings/developers/__stories__/webhooks/SettingsDevelopersWebhookNew.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { within } from 'storybook/test'; import { SettingsDevelopersWebhookNew } from '~/pages/settings/developers/webhooks/components/SettingsDevelopersWebhookNew'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; diff --git a/packages/twenty-front/src/pages/settings/developers/__stories__/webhooks/SettingsDevelopersWebhooksDetail.stories.tsx b/packages/twenty-front/src/pages/settings/developers/__stories__/webhooks/SettingsDevelopersWebhooksDetail.stories.tsx index 55a9e34642..9ceb57d041 100644 --- a/packages/twenty-front/src/pages/settings/developers/__stories__/webhooks/SettingsDevelopersWebhooksDetail.stories.tsx +++ b/packages/twenty-front/src/pages/settings/developers/__stories__/webhooks/SettingsDevelopersWebhooksDetail.stories.tsx @@ -1,13 +1,13 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, within } from 'storybook/test'; +import { SettingsDevelopersWebhookDetail } from '~/pages/settings/developers/webhooks/components/SettingsDevelopersWebhookDetail'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { PageDecorator, type PageDecoratorArgs, } from '~/testing/decorators/PageDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { SettingsDevelopersWebhookDetail } from '~/pages/settings/developers/webhooks/components/SettingsDevelopersWebhookDetail'; const meta: Meta = { title: 'Pages/Settings/Webhooks/SettingsDevelopersWebhookDetail', diff --git a/packages/twenty-front/src/pages/settings/developers/__stories__/webhooks/SettingsWebhooks.stories.tsx b/packages/twenty-front/src/pages/settings/developers/__stories__/webhooks/SettingsWebhooks.stories.tsx index 1f07280aee..7341801d66 100644 --- a/packages/twenty-front/src/pages/settings/developers/__stories__/webhooks/SettingsWebhooks.stories.tsx +++ b/packages/twenty-front/src/pages/settings/developers/__stories__/webhooks/SettingsWebhooks.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { within } from 'storybook/test'; import { SettingsWebhooks } from '~/pages/settings/developers/webhooks/components/SettingsWebhooks'; import { diff --git a/packages/twenty-front/src/pages/settings/roles/__stories__/SettingsRoleCreate.stories.tsx b/packages/twenty-front/src/pages/settings/roles/__stories__/SettingsRoleCreate.stories.tsx index 41a398a54e..f54b157a4d 100644 --- a/packages/twenty-front/src/pages/settings/roles/__stories__/SettingsRoleCreate.stories.tsx +++ b/packages/twenty-front/src/pages/settings/roles/__stories__/SettingsRoleCreate.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/settings/roles/__stories__/SettingsRoleEdit.stories.tsx b/packages/twenty-front/src/pages/settings/roles/__stories__/SettingsRoleEdit.stories.tsx index f17508d121..ed19f99b19 100644 --- a/packages/twenty-front/src/pages/settings/roles/__stories__/SettingsRoleEdit.stories.tsx +++ b/packages/twenty-front/src/pages/settings/roles/__stories__/SettingsRoleEdit.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/settings/roles/__stories__/SettingsRoles.stories.tsx b/packages/twenty-front/src/pages/settings/roles/__stories__/SettingsRoles.stories.tsx index c62dc641f2..2aaa025cbb 100644 --- a/packages/twenty-front/src/pages/settings/roles/__stories__/SettingsRoles.stories.tsx +++ b/packages/twenty-front/src/pages/settings/roles/__stories__/SettingsRoles.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/settings/serverless-functions/__stories__/SettingsServerlessFunctionDetail.stories.tsx b/packages/twenty-front/src/pages/settings/serverless-functions/__stories__/SettingsServerlessFunctionDetail.stories.tsx index 96e2319c22..c7db5b8d62 100644 --- a/packages/twenty-front/src/pages/settings/serverless-functions/__stories__/SettingsServerlessFunctionDetail.stories.tsx +++ b/packages/twenty-front/src/pages/settings/serverless-functions/__stories__/SettingsServerlessFunctionDetail.stories.tsx @@ -1,6 +1,6 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { HttpResponse, graphql, http } from 'msw'; +import { within } from 'storybook/test'; import { getImageAbsoluteURI } from 'twenty-shared/utils'; import { REACT_APP_SERVER_BASE_URL } from '~/config'; import { SettingsServerlessFunctionDetail } from '~/pages/settings/serverless-functions/SettingsServerlessFunctionDetail'; diff --git a/packages/twenty-front/src/testing/decorators/AuthContextDecorator.tsx b/packages/twenty-front/src/testing/decorators/AuthContextDecorator.tsx index 7cb1c6c425..0bb3b9555c 100644 --- a/packages/twenty-front/src/testing/decorators/AuthContextDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/AuthContextDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { AuthContext } from '@/auth/contexts/AuthContext'; diff --git a/packages/twenty-front/src/testing/decorators/ChipGeneratorsDecorator.tsx b/packages/twenty-front/src/testing/decorators/ChipGeneratorsDecorator.tsx index 3e5707a312..10fd0739c9 100644 --- a/packages/twenty-front/src/testing/decorators/ChipGeneratorsDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/ChipGeneratorsDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { useMemo } from 'react'; import { PreComputedChipGeneratorsContext } from '@/object-metadata/contexts/PreComputedChipGeneratorsContext'; diff --git a/packages/twenty-front/src/testing/decorators/ComponentWithRouterDecorator.tsx b/packages/twenty-front/src/testing/decorators/ComponentWithRouterDecorator.tsx index 4fc42f6bab..3fb929c51a 100644 --- a/packages/twenty-front/src/testing/decorators/ComponentWithRouterDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/ComponentWithRouterDecorator.tsx @@ -1,3 +1,4 @@ +import { type Decorator } from '@storybook/react-vite'; import { createMemoryRouter, createRoutesFromElements, @@ -5,7 +6,6 @@ import { Route, RouterProvider, } from 'react-router-dom'; -import { type Decorator } from '@storybook/react'; import { computeLocation, diff --git a/packages/twenty-front/src/testing/decorators/ContextStoreDecorator.tsx b/packages/twenty-front/src/testing/decorators/ContextStoreDecorator.tsx index 14f2c9995d..6632a2ef17 100644 --- a/packages/twenty-front/src/testing/decorators/ContextStoreDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/ContextStoreDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { useEffect, useState } from 'react'; import { MAIN_CONTEXT_STORE_INSTANCE_ID } from '@/context-store/constants/MainContextStoreInstanceId'; diff --git a/packages/twenty-front/src/testing/decorators/FormProviderDecorator.tsx b/packages/twenty-front/src/testing/decorators/FormProviderDecorator.tsx index db01c6d6f5..f9b3465c3f 100644 --- a/packages/twenty-front/src/testing/decorators/FormProviderDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/FormProviderDecorator.tsx @@ -1,5 +1,5 @@ +import { type Decorator } from '@storybook/react-vite'; import { FormProvider, useForm } from 'react-hook-form'; -import { type Decorator } from '@storybook/react'; export const FormProviderDecorator: Decorator = (Story) => { const formConfig = useForm(); diff --git a/packages/twenty-front/src/testing/decorators/FullScreenDecorator.tsx b/packages/twenty-front/src/testing/decorators/FullScreenDecorator.tsx index b5d677bb71..2a469be027 100644 --- a/packages/twenty-front/src/testing/decorators/FullScreenDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/FullScreenDecorator.tsx @@ -1,7 +1,7 @@ import { FullScreenContainer } from '@/ui/layout/fullscreen/components/FullScreenContainer'; import styled from '@emotion/styled'; -import { action } from '@storybook/addon-actions'; -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; +import { action } from 'storybook/actions'; const StyledT = styled.div` height: 100%; width: 100%; diff --git a/packages/twenty-front/src/testing/decorators/HelmetProviderDecorator.tsx b/packages/twenty-front/src/testing/decorators/HelmetProviderDecorator.tsx index 473f0c2484..1e139275d9 100644 --- a/packages/twenty-front/src/testing/decorators/HelmetProviderDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/HelmetProviderDecorator.tsx @@ -1,5 +1,5 @@ +import { type Decorator } from '@storybook/react-vite'; import { HelmetProvider } from 'react-helmet-async'; -import { type Decorator } from '@storybook/react'; export const HelmetProviderDecorator: Decorator = (Story) => { return ( diff --git a/packages/twenty-front/src/testing/decorators/I18nFrontDecorator.tsx b/packages/twenty-front/src/testing/decorators/I18nFrontDecorator.tsx index 5e9129ad5f..0c8f1e4f9f 100644 --- a/packages/twenty-front/src/testing/decorators/I18nFrontDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/I18nFrontDecorator.tsx @@ -1,8 +1,8 @@ import { i18n } from '@lingui/core'; import { I18nProvider } from '@lingui/react'; -import { type Decorator } from '@storybook/react'; -import { messages as enMessages } from '~/locales/generated/en'; +import { type Decorator } from '@storybook/react-vite'; import { SOURCE_LOCALE } from 'twenty-shared/translations'; +import { messages as enMessages } from '~/locales/generated/en'; i18n.load({ [SOURCE_LOCALE]: enMessages, diff --git a/packages/twenty-front/src/testing/decorators/IconsProviderDecorator.tsx b/packages/twenty-front/src/testing/decorators/IconsProviderDecorator.tsx index e396cb07df..84a12d8387 100644 --- a/packages/twenty-front/src/testing/decorators/IconsProviderDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/IconsProviderDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { IconsProvider } from 'twenty-ui/display'; export const IconsProviderDecorator: Decorator = (Story) => { diff --git a/packages/twenty-front/src/testing/decorators/MemoryRouterDecorator.tsx b/packages/twenty-front/src/testing/decorators/MemoryRouterDecorator.tsx index 0621b38585..2ef126518c 100644 --- a/packages/twenty-front/src/testing/decorators/MemoryRouterDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/MemoryRouterDecorator.tsx @@ -1,5 +1,5 @@ +import { type Decorator } from '@storybook/react-vite'; import { MemoryRouter } from 'react-router-dom'; -import { type Decorator } from '@storybook/react'; export const MemoryRouterDecorator: Decorator = (Story) => ( diff --git a/packages/twenty-front/src/testing/decorators/ObjectMetadataItemsDecorator.tsx b/packages/twenty-front/src/testing/decorators/ObjectMetadataItemsDecorator.tsx index 7b25d7c6c5..e6a903568e 100644 --- a/packages/twenty-front/src/testing/decorators/ObjectMetadataItemsDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/ObjectMetadataItemsDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { useEffect } from 'react'; import { useRecoilValue, useSetRecoilState } from 'recoil'; diff --git a/packages/twenty-front/src/testing/decorators/PageDecorator.tsx b/packages/twenty-front/src/testing/decorators/PageDecorator.tsx index f53a26db42..5db9261960 100644 --- a/packages/twenty-front/src/testing/decorators/PageDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/PageDecorator.tsx @@ -1,6 +1,6 @@ import { ApolloProvider } from '@apollo/client'; import { loadDevMessages } from '@apollo/client/dev'; -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { HelmetProvider } from 'react-helmet-async'; import { createMemoryRouter, @@ -32,8 +32,8 @@ import { i18n } from '@lingui/core'; import { I18nProvider } from '@lingui/react'; import { SOURCE_LOCALE } from 'twenty-shared/translations'; import { IconsProvider } from 'twenty-ui/display'; -import { dynamicActivate } from '~/utils/i18n/dynamicActivate'; import { FullHeightStorybookLayout } from '~/testing/FullHeightStorybookLayout'; +import { dynamicActivate } from '~/utils/i18n/dynamicActivate'; export type PageDecoratorArgs = { routePath: string; diff --git a/packages/twenty-front/src/testing/decorators/PrefetchLoadedDecorator.tsx b/packages/twenty-front/src/testing/decorators/PrefetchLoadedDecorator.tsx index 92d82574b4..5a1b976898 100644 --- a/packages/twenty-front/src/testing/decorators/PrefetchLoadedDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/PrefetchLoadedDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { useSetRecoilState } from 'recoil'; import { prefetchIsLoadedFamilyState } from '@/prefetch/states/prefetchIsLoadedFamilyState'; diff --git a/packages/twenty-front/src/testing/decorators/PrefetchLoadingDecorator.tsx b/packages/twenty-front/src/testing/decorators/PrefetchLoadingDecorator.tsx index 86645bfd1f..b05504fa08 100644 --- a/packages/twenty-front/src/testing/decorators/PrefetchLoadingDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/PrefetchLoadingDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { useSetRecoilState } from 'recoil'; import { prefetchIsLoadedFamilyState } from '@/prefetch/states/prefetchIsLoadedFamilyState'; diff --git a/packages/twenty-front/src/testing/decorators/ProfilerDecorator.tsx b/packages/twenty-front/src/testing/decorators/ProfilerDecorator.tsx index 809086a17f..82d0a46a78 100644 --- a/packages/twenty-front/src/testing/decorators/ProfilerDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/ProfilerDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { useRecoilState } from 'recoil'; import { ProfilerWrapper } from '~/testing/profiling/components/ProfilerWrapper'; diff --git a/packages/twenty-front/src/testing/decorators/ReactflowDecorator.tsx b/packages/twenty-front/src/testing/decorators/ReactflowDecorator.tsx index bd450289df..879d57a2b0 100644 --- a/packages/twenty-front/src/testing/decorators/ReactflowDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/ReactflowDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { ReactFlowProvider } from '@xyflow/react'; export const ReactflowDecorator: Decorator = (Story) => { diff --git a/packages/twenty-front/src/testing/decorators/RecordStoreDecorator.tsx b/packages/twenty-front/src/testing/decorators/RecordStoreDecorator.tsx index d60421485c..726cb0b7ae 100644 --- a/packages/twenty-front/src/testing/decorators/RecordStoreDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/RecordStoreDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { useEffect } from 'react'; import { useUpsertRecordsInStore } from '@/object-record/record-store/hooks/useUpsertRecordsInStore'; diff --git a/packages/twenty-front/src/testing/decorators/RecordTableDecorator.tsx b/packages/twenty-front/src/testing/decorators/RecordTableDecorator.tsx index b4a2197d97..0980b27eba 100644 --- a/packages/twenty-front/src/testing/decorators/RecordTableDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/RecordTableDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { useRecoilValue, useSetRecoilState } from 'recoil'; import { ActionMenuComponentInstanceContext } from '@/action-menu/states/contexts/ActionMenuComponentInstanceContext'; diff --git a/packages/twenty-front/src/testing/decorators/RightDrawerDecorator.tsx b/packages/twenty-front/src/testing/decorators/RightDrawerDecorator.tsx index 63011d3a48..c6ad7a80bc 100644 --- a/packages/twenty-front/src/testing/decorators/RightDrawerDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/RightDrawerDecorator.tsx @@ -1,5 +1,5 @@ import { RightDrawerProvider } from '@/ui/layout/right-drawer/contexts/RightDrawerContext'; -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; export const RightDrawerDecorator: Decorator = (Story) => ( diff --git a/packages/twenty-front/src/testing/decorators/RootDecorator.tsx b/packages/twenty-front/src/testing/decorators/RootDecorator.tsx index 1b242c99af..de5b883f2c 100644 --- a/packages/twenty-front/src/testing/decorators/RootDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/RootDecorator.tsx @@ -1,5 +1,5 @@ import { ApolloProvider } from '@apollo/client'; -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { RecoilRoot } from 'recoil'; import { ApolloCoreClientMockedProvider } from '@/object-metadata/hooks/__mocks__/ApolloCoreClientMockedProvider'; diff --git a/packages/twenty-front/src/testing/decorators/ScrollWrapperDecorator.tsx b/packages/twenty-front/src/testing/decorators/ScrollWrapperDecorator.tsx index d36beb84ac..1b2771c395 100644 --- a/packages/twenty-front/src/testing/decorators/ScrollWrapperDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/ScrollWrapperDecorator.tsx @@ -1,5 +1,5 @@ import { ScrollWrapperComponentInstanceContext } from '@/ui/utilities/scroll/states/contexts/ScrollWrapperComponentInstanceContext'; -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; export const ScrollWrapperDecorator: Decorator = (Story) => ( ( { const setCurrentWorkspace = useSetRecoilState(currentWorkspaceState); diff --git a/packages/twenty-front/src/testing/decorators/getFieldDecorator.tsx b/packages/twenty-front/src/testing/decorators/getFieldDecorator.tsx index 308fc6128e..0161519a29 100644 --- a/packages/twenty-front/src/testing/decorators/getFieldDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/getFieldDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { useEffect } from 'react'; import { useRecoilCallback } from 'recoil'; diff --git a/packages/twenty-front/src/testing/profiling/utils/getProfilingStory.ts b/packages/twenty-front/src/testing/profiling/utils/getProfilingStory.ts index a9cb62a422..23ca1cca3e 100644 --- a/packages/twenty-front/src/testing/profiling/utils/getProfilingStory.ts +++ b/packages/twenty-front/src/testing/profiling/utils/getProfilingStory.ts @@ -1,8 +1,8 @@ -import { type StoryObj } from '@storybook/react'; -import { expect, findByTestId } from '@storybook/test'; +import { type StoryObj } from '@storybook/react-vite'; +import { expect, findByTestId } from 'storybook/test'; +import { isDefined } from 'twenty-shared/utils'; import { ProfilerDecorator } from '~/testing/decorators/ProfilerDecorator'; import { getProfilingReportFromDocument } from '~/testing/profiling/utils/getProfilingReportFromDocument'; -import { isDefined } from 'twenty-shared/utils'; export const getProfilingStory = ({ componentName, diff --git a/packages/twenty-ui/.storybook/main.ts b/packages/twenty-ui/.storybook/main.ts index 380b088c57..9e2bc7d36e 100644 --- a/packages/twenty-ui/.storybook/main.ts +++ b/packages/twenty-ui/.storybook/main.ts @@ -3,25 +3,22 @@ import * as path from 'path'; import { dirname, join } from 'path'; import checker from 'vite-plugin-checker'; - const getAbsolutePath = (value: string): any => { - return dirname(require.resolve(join(value, "package.json"))); + return dirname(require.resolve(join(value, 'package.json'))); }; const config: StorybookConfig = { stories: ['../src/**/*.@(mdx|stories.@(js|jsx|ts|tsx))'], addons: [ - getAbsolutePath("@storybook/addon-links"), - getAbsolutePath("@storybook/addon-essentials"), - getAbsolutePath("@storybook/addon-interactions"), - getAbsolutePath("@storybook/addon-coverage"), - getAbsolutePath("storybook-addon-cookie"), - getAbsolutePath("storybook-addon-pseudo-states"), + getAbsolutePath('@storybook/addon-links'), + getAbsolutePath('@storybook/addon-coverage'), + // getAbsolutePath('storybook-addon-cookie'), + getAbsolutePath('storybook-addon-pseudo-states'), ], framework: { - name: getAbsolutePath("@storybook/react-vite"), + name: getAbsolutePath('@storybook/react-vite'), options: {}, }, @@ -38,10 +35,6 @@ const config: StorybookConfig = { ], }; }, - - docs: { - autodocs: true - } }; export default config; diff --git a/packages/twenty-ui/.storybook/preview.tsx b/packages/twenty-ui/.storybook/preview.tsx index bf0cf49041..bf19bc3b92 100644 --- a/packages/twenty-ui/.storybook/preview.tsx +++ b/packages/twenty-ui/.storybook/preview.tsx @@ -1,15 +1,16 @@ import { ThemeProvider } from '@emotion/react'; -import { type Preview } from '@storybook/react'; +import { type Preview } from '@storybook/react-vite'; import { THEME_LIGHT, ThemeContextProvider } from '@ui/theme'; const preview: Preview = { + tags: ['autodocs'], decorators: [ (Story) => { // const mode = useDarkMode() ? 'Dark' : 'Light'; const theme = THEME_LIGHT; - /* useEffect(() => { + /* useEffect(() => { document.documentElement.className = mode === 'Dark' ? 'dark' : 'light'; }, [mode]);*/ diff --git a/packages/twenty-ui/src/components/Pill/__stories__/Pill.stories.ts b/packages/twenty-ui/src/components/Pill/__stories__/Pill.stories.ts index 56049e6596..52b205f130 100644 --- a/packages/twenty-ui/src/components/Pill/__stories__/Pill.stories.ts +++ b/packages/twenty-ui/src/components/Pill/__stories__/Pill.stories.ts @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { Pill } from '@ui/components/Pill/Pill'; import { ComponentDecorator } from '../../../testing/decorators/ComponentDecorator'; diff --git a/packages/twenty-ui/src/components/avatar-chip/__stories__/AvatarChip.stories.tsx b/packages/twenty-ui/src/components/avatar-chip/__stories__/AvatarChip.stories.tsx index dfbadbac94..a58be39904 100644 --- a/packages/twenty-ui/src/components/avatar-chip/__stories__/AvatarChip.stories.tsx +++ b/packages/twenty-ui/src/components/avatar-chip/__stories__/AvatarChip.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconBuildingSkyscraper, IconUser } from '@ui/display'; import { ComponentDecorator, RecoilRootDecorator } from '@ui/testing'; import { AvatarChip } from '../AvatarChip'; diff --git a/packages/twenty-ui/src/components/avatar-chip/__stories__/MultipleAvatarChip.stories.tsx b/packages/twenty-ui/src/components/avatar-chip/__stories__/MultipleAvatarChip.stories.tsx index 1c769b0c2b..9a393e02f2 100644 --- a/packages/twenty-ui/src/components/avatar-chip/__stories__/MultipleAvatarChip.stories.tsx +++ b/packages/twenty-ui/src/components/avatar-chip/__stories__/MultipleAvatarChip.stories.tsx @@ -1,7 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { ComponentDecorator } from '@ui/testing'; -import { IconBuildingSkyscraper, IconUser } from '@ui/display'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { MultipleAvatarChip } from '@ui/components'; +import { IconBuildingSkyscraper, IconUser } from '@ui/display'; +import { ComponentDecorator } from '@ui/testing'; const meta: Meta = { title: 'UI/Components/MultipleAvatarChip', diff --git a/packages/twenty-ui/src/components/chip/__stories__/Chip.stories.tsx b/packages/twenty-ui/src/components/chip/__stories__/Chip.stories.tsx index fe71a6907f..1f34766a56 100644 --- a/packages/twenty-ui/src/components/chip/__stories__/Chip.stories.tsx +++ b/packages/twenty-ui/src/components/chip/__stories__/Chip.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/components/tag/__stories__/Tag.stories.tsx b/packages/twenty-ui/src/components/tag/__stories__/Tag.stories.tsx index fef95c979f..60bfde262b 100644 --- a/packages/twenty-ui/src/components/tag/__stories__/Tag.stories.tsx +++ b/packages/twenty-ui/src/components/tag/__stories__/Tag.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { IconUser } from '@ui/display/icon/components/TablerIcons'; import { diff --git a/packages/twenty-ui/src/display/avatar/components/__stories__/Avatar.stories.tsx b/packages/twenty-ui/src/display/avatar/components/__stories__/Avatar.stories.tsx index 370d5da26e..1836da5a04 100644 --- a/packages/twenty-ui/src/display/avatar/components/__stories__/Avatar.stories.tsx +++ b/packages/twenty-ui/src/display/avatar/components/__stories__/Avatar.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { AVATAR_URL_MOCK, diff --git a/packages/twenty-ui/src/display/avatar/components/__stories__/AvatarGroup.stories.tsx b/packages/twenty-ui/src/display/avatar/components/__stories__/AvatarGroup.stories.tsx index 1d0cd6813c..79c0739db6 100644 --- a/packages/twenty-ui/src/display/avatar/components/__stories__/AvatarGroup.stories.tsx +++ b/packages/twenty-ui/src/display/avatar/components/__stories__/AvatarGroup.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { Avatar, type AvatarProps } from '@ui/display/avatar/components/Avatar'; import { type AvatarSize } from '@ui/display/avatar/types/AvatarSize'; diff --git a/packages/twenty-ui/src/display/banner/components/__stories__/Banner.stories.tsx b/packages/twenty-ui/src/display/banner/components/__stories__/Banner.stories.tsx index 0a3fb38ecf..23503fd4f2 100644 --- a/packages/twenty-ui/src/display/banner/components/__stories__/Banner.stories.tsx +++ b/packages/twenty-ui/src/display/banner/components/__stories__/Banner.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from '@ui/testing'; import { Banner } from '../Banner'; diff --git a/packages/twenty-ui/src/display/banner/components/__stories__/SidePanelInformationBanner.stories.tsx b/packages/twenty-ui/src/display/banner/components/__stories__/SidePanelInformationBanner.stories.tsx index d36fa0559d..1269bac9fe 100644 --- a/packages/twenty-ui/src/display/banner/components/__stories__/SidePanelInformationBanner.stories.tsx +++ b/packages/twenty-ui/src/display/banner/components/__stories__/SidePanelInformationBanner.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from '@ui/testing'; import { SidePanelInformationBanner } from '../SidePanelInformationBanner'; diff --git a/packages/twenty-ui/src/display/checkmark/components/__stories__/Checkmark.stories.tsx b/packages/twenty-ui/src/display/checkmark/components/__stories__/Checkmark.stories.tsx index eb76884bc2..5ca4350241 100644 --- a/packages/twenty-ui/src/display/checkmark/components/__stories__/Checkmark.stories.tsx +++ b/packages/twenty-ui/src/display/checkmark/components/__stories__/Checkmark.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from '@ui/testing/decorators/ComponentDecorator'; diff --git a/packages/twenty-ui/src/display/color/components/__stories__/ColorSample.stories.tsx b/packages/twenty-ui/src/display/color/components/__stories__/ColorSample.stories.tsx index 962037f686..5917cd6150 100644 --- a/packages/twenty-ui/src/display/color/components/__stories__/ColorSample.stories.tsx +++ b/packages/twenty-ui/src/display/color/components/__stories__/ColorSample.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from '@ui/testing'; diff --git a/packages/twenty-ui/src/display/info/components/__stories__/Info.stories.tsx b/packages/twenty-ui/src/display/info/components/__stories__/Info.stories.tsx index a369d4d282..2ddb1067f0 100644 --- a/packages/twenty-ui/src/display/info/components/__stories__/Info.stories.tsx +++ b/packages/twenty-ui/src/display/info/components/__stories__/Info.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CatalogDecorator, type CatalogStory, diff --git a/packages/twenty-ui/src/display/status/components/__stories__/Status.stories.tsx b/packages/twenty-ui/src/display/status/components/__stories__/Status.stories.tsx index 337c636109..75fcf6af9e 100644 --- a/packages/twenty-ui/src/display/status/components/__stories__/Status.stories.tsx +++ b/packages/twenty-ui/src/display/status/components/__stories__/Status.stories.tsx @@ -1,11 +1,11 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CatalogDecorator, type CatalogStory, ComponentDecorator, } from '@ui/testing'; -import { type ThemeColor, MAIN_COLOR_NAMES } from '@ui/theme'; +import { MAIN_COLOR_NAMES, type ThemeColor } from '@ui/theme'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { Status } from '../Status'; diff --git a/packages/twenty-ui/src/display/text/components/__stories__/HorizontalSeparator.stories.tsx b/packages/twenty-ui/src/display/text/components/__stories__/HorizontalSeparator.stories.tsx index 0493881653..2b72597e1c 100644 --- a/packages/twenty-ui/src/display/text/components/__stories__/HorizontalSeparator.stories.tsx +++ b/packages/twenty-ui/src/display/text/components/__stories__/HorizontalSeparator.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from '@ui/testing'; import { HorizontalSeparator } from '../HorizontalSeparator'; diff --git a/packages/twenty-ui/src/display/text/components/__stories__/SeparatorLineText.stories.tsx b/packages/twenty-ui/src/display/text/components/__stories__/SeparatorLineText.stories.tsx index e7e2384b37..e51a82fa1b 100644 --- a/packages/twenty-ui/src/display/text/components/__stories__/SeparatorLineText.stories.tsx +++ b/packages/twenty-ui/src/display/text/components/__stories__/SeparatorLineText.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from '@ui/testing'; import { SeparatorLineText } from '../SeparatorLineText'; diff --git a/packages/twenty-ui/src/display/tooltip/__stories__/OverflowTextWithTooltip.stories.tsx b/packages/twenty-ui/src/display/tooltip/__stories__/OverflowTextWithTooltip.stories.tsx index 3f47efb637..4f66dbf251 100644 --- a/packages/twenty-ui/src/display/tooltip/__stories__/OverflowTextWithTooltip.stories.tsx +++ b/packages/twenty-ui/src/display/tooltip/__stories__/OverflowTextWithTooltip.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { userEvent, within } from 'storybook/test'; import { ComponentDecorator } from '@ui/testing'; diff --git a/packages/twenty-ui/src/display/tooltip/__stories__/Tooltip.stories.tsx b/packages/twenty-ui/src/display/tooltip/__stories__/Tooltip.stories.tsx index b877c3271d..758ecab323 100644 --- a/packages/twenty-ui/src/display/tooltip/__stories__/Tooltip.stories.tsx +++ b/packages/twenty-ui/src/display/tooltip/__stories__/Tooltip.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/display/typography/components/__stories__/H1Title.stories.tsx b/packages/twenty-ui/src/display/typography/components/__stories__/H1Title.stories.tsx index ce1ce46590..446ff18974 100644 --- a/packages/twenty-ui/src/display/typography/components/__stories__/H1Title.stories.tsx +++ b/packages/twenty-ui/src/display/typography/components/__stories__/H1Title.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CatalogDecorator } from '@ui/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '@ui/testing/decorators/ComponentDecorator'; diff --git a/packages/twenty-ui/src/display/typography/components/__stories__/H2Title.stories.tsx b/packages/twenty-ui/src/display/typography/components/__stories__/H2Title.stories.tsx index 89970ec4d1..886ee54752 100644 --- a/packages/twenty-ui/src/display/typography/components/__stories__/H2Title.stories.tsx +++ b/packages/twenty-ui/src/display/typography/components/__stories__/H2Title.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from '@ui/testing/decorators/ComponentDecorator'; diff --git a/packages/twenty-ui/src/display/typography/components/__stories__/H3Title.stories.tsx b/packages/twenty-ui/src/display/typography/components/__stories__/H3Title.stories.tsx index 88406917c7..78286472d7 100644 --- a/packages/twenty-ui/src/display/typography/components/__stories__/H3Title.stories.tsx +++ b/packages/twenty-ui/src/display/typography/components/__stories__/H3Title.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from '@ui/testing/decorators/ComponentDecorator'; diff --git a/packages/twenty-ui/src/display/typography/components/__stories__/Label.stories.tsx b/packages/twenty-ui/src/display/typography/components/__stories__/Label.stories.tsx index da05d9dbad..27292d21ac 100644 --- a/packages/twenty-ui/src/display/typography/components/__stories__/Label.stories.tsx +++ b/packages/twenty-ui/src/display/typography/components/__stories__/Label.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CatalogDecorator } from '@ui/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '@ui/testing/decorators/ComponentDecorator'; diff --git a/packages/twenty-ui/src/feedback/loader/__stories__/Loader.stories.tsx b/packages/twenty-ui/src/feedback/loader/__stories__/Loader.stories.tsx index b34f5dfc4b..2314ee5ea1 100644 --- a/packages/twenty-ui/src/feedback/loader/__stories__/Loader.stories.tsx +++ b/packages/twenty-ui/src/feedback/loader/__stories__/Loader.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, waitFor } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, waitFor } from 'storybook/test'; import { ComponentDecorator } from '@ui/testing'; diff --git a/packages/twenty-ui/src/feedback/progress-bar/components/__stories__/CircularProgressBar.stories.tsx b/packages/twenty-ui/src/feedback/progress-bar/components/__stories__/CircularProgressBar.stories.tsx index 9d685826b1..8bdd4eaa70 100644 --- a/packages/twenty-ui/src/feedback/progress-bar/components/__stories__/CircularProgressBar.stories.tsx +++ b/packages/twenty-ui/src/feedback/progress-bar/components/__stories__/CircularProgressBar.stories.tsx @@ -1,8 +1,8 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CatalogDecorator, type CatalogStory } from '@ui/testing'; -import { CircularProgressBar } from '../CircularProgressBar'; import { ComponentDecorator } from '@ui/testing/decorators/ComponentDecorator'; +import { CircularProgressBar } from '../CircularProgressBar'; const meta: Meta = { title: 'UI/Feedback/CircularProgressBar/CircularProgressBar', diff --git a/packages/twenty-ui/src/feedback/progress-bar/components/__stories__/ProgressBar.stories.tsx b/packages/twenty-ui/src/feedback/progress-bar/components/__stories__/ProgressBar.stories.tsx index 7169e8ea4b..15ea9edf1c 100644 --- a/packages/twenty-ui/src/feedback/progress-bar/components/__stories__/ProgressBar.stories.tsx +++ b/packages/twenty-ui/src/feedback/progress-bar/components/__stories__/ProgressBar.stories.tsx @@ -1,7 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { ProgressBar } from '../ProgressBar'; -import { ComponentDecorator } from '@ui/testing/decorators/ComponentDecorator'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { useProgressAnimation } from '@ui/feedback/progress-bar/hooks/useProgressAnimation'; +import { ComponentDecorator } from '@ui/testing/decorators/ComponentDecorator'; +import { ProgressBar } from '../ProgressBar'; const meta: Meta = { title: 'UI/Feedback/ProgressBar/ProgressBar', diff --git a/packages/twenty-ui/src/input/button/components/__stories__/AnimatedLightIconButton.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/AnimatedLightIconButton.stories.tsx index 1167bf6ddb..fef4d298d2 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/AnimatedLightIconButton.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/AnimatedLightIconButton.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconSearch } from '@ui/display'; import { type LightIconButtonAccent, diff --git a/packages/twenty-ui/src/input/button/components/__stories__/Button.docs.mdx b/packages/twenty-ui/src/input/button/components/__stories__/Button.docs.mdx index 45f2ef33f3..5df72286dd 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/Button.docs.mdx +++ b/packages/twenty-ui/src/input/button/components/__stories__/Button.docs.mdx @@ -1,6 +1,6 @@ {/* Button.mdx */} -import { Meta, Controls, Story } from '@storybook/blocks'; +import { Meta, Controls, Story } from '@storybook/addon-docs/blocks'; import * as ButtonStories from './Button.stories'; diff --git a/packages/twenty-ui/src/input/button/components/__stories__/Button.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/Button.stories.tsx index 2283383121..ce8b0a7f12 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/Button.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/Button.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconReload, IconSearch } from '@ui/display'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/input/button/components/__stories__/ButtonGroup.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/ButtonGroup.stories.tsx index 40c21f4a82..0c7f1e599a 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/ButtonGroup.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/ButtonGroup.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconCheckbox, IconNotes, IconTimelineEvent } from '@ui/display'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/input/button/components/__stories__/ColorPickerButton.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/ColorPickerButton.stories.tsx index f99d376afd..2d67dd21c5 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/ColorPickerButton.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/ColorPickerButton.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from '@ui/testing'; import { ColorPickerButton } from '../ColorPickerButton'; diff --git a/packages/twenty-ui/src/input/button/components/__stories__/FloatingButton.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/FloatingButton.stories.tsx index bf1fe35b68..9033e606f7 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/FloatingButton.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/FloatingButton.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconSearch } from '@ui/display'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/input/button/components/__stories__/FloatingButtonGroup.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/FloatingButtonGroup.stories.tsx index 178321adb4..4fe2b69e89 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/FloatingButtonGroup.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/FloatingButtonGroup.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconCheckbox, IconNotes, IconTimelineEvent } from '@ui/display'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/input/button/components/__stories__/FloatingIconButton.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/FloatingIconButton.stories.tsx index af54b0ca30..ae2f7d8d79 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/FloatingIconButton.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/FloatingIconButton.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconSearch } from '@ui/display'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/input/button/components/__stories__/FloatingIconButtonGroup.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/FloatingIconButtonGroup.stories.tsx index eaff42ddc9..eae836ba8e 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/FloatingIconButtonGroup.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/FloatingIconButtonGroup.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconCheckbox, IconNotes, IconTimelineEvent } from '@ui/display'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/input/button/components/__stories__/IconButton.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/IconButton.stories.tsx index 7b35c8adb2..5bf17cbe48 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/IconButton.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/IconButton.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconSearch } from '@ui/display'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/input/button/components/__stories__/IconButtonGroup.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/IconButtonGroup.stories.tsx index dfd065afaf..ef3b829664 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/IconButtonGroup.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/IconButtonGroup.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconCheckbox, IconNotes, IconTimelineEvent } from '@ui/display'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/input/button/components/__stories__/LightButton.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/LightButton.stories.tsx index 19ed33f9a1..afb8f5187d 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/LightButton.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/LightButton.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconSearch } from '@ui/display'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/input/button/components/__stories__/LightIconButton.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/LightIconButton.stories.tsx index 90248c4438..3f37a688b0 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/LightIconButton.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/LightIconButton.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconSearch } from '@ui/display'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/input/button/components/__stories__/MainButton.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/MainButton.stories.tsx index 682f20f9ac..b1f68b1f51 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/MainButton.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/MainButton.stories.tsx @@ -1,7 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconBrandGoogle } from '@ui/display'; import { ComponentDecorator } from '@ui/testing'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { MainButton } from '../MainButton'; const clickJestFn = fn(); diff --git a/packages/twenty-ui/src/input/button/components/__stories__/RoundedIconButton.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/RoundedIconButton.stories.tsx index 680bb45994..250402d4d3 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/RoundedIconButton.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/RoundedIconButton.stories.tsx @@ -1,7 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconArrowRight } from '@ui/display'; import { ComponentDecorator } from '@ui/testing'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { RoundedIconButton } from '../RoundedIconButton'; const clickJestFn = fn(); diff --git a/packages/twenty-ui/src/input/button/components/__stories__/TabButton.stories.tsx b/packages/twenty-ui/src/input/button/components/__stories__/TabButton.stories.tsx index a2ab2dee81..9e08b988be 100644 --- a/packages/twenty-ui/src/input/button/components/__stories__/TabButton.stories.tsx +++ b/packages/twenty-ui/src/input/button/components/__stories__/TabButton.stories.tsx @@ -1,5 +1,5 @@ import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconCheckbox, IconChevronDown, diff --git a/packages/twenty-ui/src/input/color-scheme/components/__stories__/ColorSchemeCard.stories.tsx b/packages/twenty-ui/src/input/color-scheme/components/__stories__/ColorSchemeCard.stories.tsx index ba25961c9f..74d534c00e 100644 --- a/packages/twenty-ui/src/input/color-scheme/components/__stories__/ColorSchemeCard.stories.tsx +++ b/packages/twenty-ui/src/input/color-scheme/components/__stories__/ColorSchemeCard.stories.tsx @@ -1,5 +1,5 @@ import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from '@ui/testing'; import { ColorSchemeCard } from '../ColorSchemeCard'; diff --git a/packages/twenty-ui/src/input/components/__stories__/Checkbox.stories.tsx b/packages/twenty-ui/src/input/components/__stories__/Checkbox.stories.tsx index 95a12eb6b5..70aeaf62f0 100644 --- a/packages/twenty-ui/src/input/components/__stories__/Checkbox.stories.tsx +++ b/packages/twenty-ui/src/input/components/__stories__/Checkbox.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CatalogDecorator, type CatalogStory, diff --git a/packages/twenty-ui/src/input/components/__stories__/Radio.stories.tsx b/packages/twenty-ui/src/input/components/__stories__/Radio.stories.tsx index 6d8cbf8e3d..949adabc65 100644 --- a/packages/twenty-ui/src/input/components/__stories__/Radio.stories.tsx +++ b/packages/twenty-ui/src/input/components/__stories__/Radio.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CatalogDecorator, type CatalogStory, diff --git a/packages/twenty-ui/src/input/components/__stories__/Toggle.stories.tsx b/packages/twenty-ui/src/input/components/__stories__/Toggle.stories.tsx index 6572091641..3d01003629 100644 --- a/packages/twenty-ui/src/input/components/__stories__/Toggle.stories.tsx +++ b/packages/twenty-ui/src/input/components/__stories__/Toggle.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CatalogDecorator, type CatalogStory, diff --git a/packages/twenty-ui/src/json-visualizer/__stories__/JsonTree.stories.tsx b/packages/twenty-ui/src/json-visualizer/__stories__/JsonTree.stories.tsx index 4266e4ee2c..76e541ba8b 100644 --- a/packages/twenty-ui/src/json-visualizer/__stories__/JsonTree.stories.tsx +++ b/packages/twenty-ui/src/json-visualizer/__stories__/JsonTree.stories.tsx @@ -1,4 +1,6 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { JsonTree } from '@ui/json-visualizer/components/JsonTree'; +import { isTwoFirstDepths } from '@ui/json-visualizer/utils/isTwoFirstDepths'; import { expect, fn, @@ -6,9 +8,7 @@ import { waitFor, waitForElementToBeRemoved, within, -} from '@storybook/test'; -import { JsonTree } from '@ui/json-visualizer/components/JsonTree'; -import { isTwoFirstDepths } from '@ui/json-visualizer/utils/isTwoFirstDepths'; +} from 'storybook/test'; const meta: Meta = { title: 'UI/JsonVisualizer/JsonTree', diff --git a/packages/twenty-ui/src/layout/animated-expandable-container/__stories__/AnimatedExpandableContainer.stories.tsx b/packages/twenty-ui/src/layout/animated-expandable-container/__stories__/AnimatedExpandableContainer.stories.tsx index d95e0ac7e6..31dfca262e 100644 --- a/packages/twenty-ui/src/layout/animated-expandable-container/__stories__/AnimatedExpandableContainer.stories.tsx +++ b/packages/twenty-ui/src/layout/animated-expandable-container/__stories__/AnimatedExpandableContainer.stories.tsx @@ -1,5 +1,5 @@ import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from '@ui/testing'; import { useState } from 'react'; import { AnimatedExpandableContainer } from '../components/AnimatedExpandableContainer'; @@ -37,7 +37,7 @@ const StyledContent = styled.div<{ ${({ dimension, mode }) => dimension === 'height' && mode === 'scroll-height' && `height: 200px;`} ${({ dimension }) => dimension === 'width' && `width: 400px;`} - + p { color: ${({ theme }) => theme.font.color.primary}; margin-bottom: ${({ theme }) => theme.spacing(2)}; diff --git a/packages/twenty-ui/src/layout/card/components/__stories__/Card.stories.tsx b/packages/twenty-ui/src/layout/card/components/__stories__/Card.stories.tsx index 498462a0c2..37303446de 100644 --- a/packages/twenty-ui/src/layout/card/components/__stories__/Card.stories.tsx +++ b/packages/twenty-ui/src/layout/card/components/__stories__/Card.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentDecorator } from '@ui/testing'; import { Card } from '../Card'; diff --git a/packages/twenty-ui/src/navigation/link/components/__stories__/ClickToActionLink.stories.tsx b/packages/twenty-ui/src/navigation/link/components/__stories__/ClickToActionLink.stories.tsx index 46d603166a..9210fe79f2 100644 --- a/packages/twenty-ui/src/navigation/link/components/__stories__/ClickToActionLink.stories.tsx +++ b/packages/twenty-ui/src/navigation/link/components/__stories__/ClickToActionLink.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ClickToActionLink } from '@ui/navigation/link/components/ClickToActionLink'; import { ComponentDecorator } from '@ui/testing'; diff --git a/packages/twenty-ui/src/navigation/link/components/__stories__/ContactLink.stories.tsx b/packages/twenty-ui/src/navigation/link/components/__stories__/ContactLink.stories.tsx index df627fb2a3..a4f931d496 100644 --- a/packages/twenty-ui/src/navigation/link/components/__stories__/ContactLink.stories.tsx +++ b/packages/twenty-ui/src/navigation/link/components/__stories__/ContactLink.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { fn } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { fn } from 'storybook/test'; import { ComponentWithRouterDecorator } from '@ui/testing'; import { ContactLink } from '../ContactLink'; diff --git a/packages/twenty-ui/src/navigation/link/components/__stories__/GithubVersionLink.stories.tsx b/packages/twenty-ui/src/navigation/link/components/__stories__/GithubVersionLink.stories.tsx index 05ceae8598..15e1454d5e 100644 --- a/packages/twenty-ui/src/navigation/link/components/__stories__/GithubVersionLink.stories.tsx +++ b/packages/twenty-ui/src/navigation/link/components/__stories__/GithubVersionLink.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { ComponentWithRouterDecorator } from '@ui/testing'; import { GithubVersionLink } from '../GithubVersionLink'; diff --git a/packages/twenty-ui/src/navigation/link/components/__stories__/RawLink.stories.tsx b/packages/twenty-ui/src/navigation/link/components/__stories__/RawLink.stories.tsx index 5374fffe76..20ab59746d 100644 --- a/packages/twenty-ui/src/navigation/link/components/__stories__/RawLink.stories.tsx +++ b/packages/twenty-ui/src/navigation/link/components/__stories__/RawLink.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { ComponentWithRouterDecorator } from '@ui/testing'; import { RawLink } from '../RawLink'; diff --git a/packages/twenty-ui/src/navigation/link/components/__stories__/RoundedLink.stories.tsx b/packages/twenty-ui/src/navigation/link/components/__stories__/RoundedLink.stories.tsx index 9f472f7602..868a9ccd54 100644 --- a/packages/twenty-ui/src/navigation/link/components/__stories__/RoundedLink.stories.tsx +++ b/packages/twenty-ui/src/navigation/link/components/__stories__/RoundedLink.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { ComponentWithRouterDecorator } from '@ui/testing'; import { RoundedLink } from '../RoundedLink'; diff --git a/packages/twenty-ui/src/navigation/link/components/__stories__/SocialLink.stories.tsx b/packages/twenty-ui/src/navigation/link/components/__stories__/SocialLink.stories.tsx index 77bac70224..fe3b1f51a0 100644 --- a/packages/twenty-ui/src/navigation/link/components/__stories__/SocialLink.stories.tsx +++ b/packages/twenty-ui/src/navigation/link/components/__stories__/SocialLink.stories.tsx @@ -1,5 +1,5 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, fn, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { expect, fn, userEvent, within } from 'storybook/test'; import { ComponentWithRouterDecorator } from '@ui/testing'; import { LinkType, SocialLink } from '../SocialLink'; diff --git a/packages/twenty-ui/src/navigation/link/components/__stories__/UndecoratedLink.stories.tsx b/packages/twenty-ui/src/navigation/link/components/__stories__/UndecoratedLink.stories.tsx index 4d6b673dfe..7ee7446e02 100644 --- a/packages/twenty-ui/src/navigation/link/components/__stories__/UndecoratedLink.stories.tsx +++ b/packages/twenty-ui/src/navigation/link/components/__stories__/UndecoratedLink.stories.tsx @@ -1,7 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react'; -import { expect, userEvent, within } from '@storybook/test'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { UndecoratedLink } from '@ui/navigation/link/components/UndecoratedLink'; import { ComponentWithRouterDecorator } from '@ui/testing'; +import { expect, userEvent, within } from 'storybook/test'; const meta: Meta = { title: 'UI/navigation/link/UndecoratedLink', diff --git a/packages/twenty-ui/src/navigation/menu/components/__stories__/MenuPicker.stories.tsx b/packages/twenty-ui/src/navigation/menu/components/__stories__/MenuPicker.stories.tsx index 351126f368..bcd448ad10 100644 --- a/packages/twenty-ui/src/navigation/menu/components/__stories__/MenuPicker.stories.tsx +++ b/packages/twenty-ui/src/navigation/menu/components/__stories__/MenuPicker.stories.tsx @@ -1,5 +1,5 @@ import styled from '@emotion/styled'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconChartPie, TooltipDelay } from '@ui/display'; import { MenuPicker } from '@ui/navigation/menu/components/MenuPicker'; import { ComponentDecorator } from '@ui/testing'; diff --git a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItem.stories.tsx b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItem.stories.tsx index 37cd76bf9b..108f33015d 100644 --- a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItem.stories.tsx +++ b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItem.stories.tsx @@ -1,5 +1,5 @@ -import { action } from '@storybook/addon-actions'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { action } from 'storybook/actions'; import { IconBell } from '@ui/display'; import { diff --git a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemDraggable.stories.tsx b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemDraggable.stories.tsx index 46f9ebf092..16d68f3aa5 100644 --- a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemDraggable.stories.tsx +++ b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemDraggable.stories.tsx @@ -1,5 +1,5 @@ -import { action } from '@storybook/addon-actions'; -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; +import { action } from 'storybook/actions'; import { IconBell, IconMinus } from '@ui/display'; import { diff --git a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemMultiSelect.stories.tsx b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemMultiSelect.stories.tsx index fea7924af2..665e72d5fa 100644 --- a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemMultiSelect.stories.tsx +++ b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemMultiSelect.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconBell } from '@ui/display'; import { diff --git a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemMultiSelectAvatar.stories.tsx b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemMultiSelectAvatar.stories.tsx index 6b05007ea8..caff5be4bf 100644 --- a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemMultiSelectAvatar.stories.tsx +++ b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemMultiSelectAvatar.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { Avatar } from '@ui/display'; import { diff --git a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemNavigate.stories.tsx b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemNavigate.stories.tsx index ea629f4ae5..de8e962b3e 100644 --- a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemNavigate.stories.tsx +++ b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemNavigate.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconBell } from '@ui/display'; import { MenuItemNavigate } from '../MenuItemNavigate'; diff --git a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelect.stories.tsx b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelect.stories.tsx index 43aedf7b1d..f6cc6bee3c 100644 --- a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelect.stories.tsx +++ b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelect.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelectAvatar.stories.tsx b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelectAvatar.stories.tsx index 6ff2411b91..5522a275ef 100644 --- a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelectAvatar.stories.tsx +++ b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelectAvatar.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { Avatar } from '@ui/display'; import { diff --git a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelectColor.stories.tsx b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelectColor.stories.tsx index 0e150fb227..6f49705e52 100644 --- a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelectColor.stories.tsx +++ b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelectColor.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { type ColorSampleVariant } from '@ui/display'; import { diff --git a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelectTag.stories.tsx b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelectTag.stories.tsx index f830d677b8..ba8ee3cd2b 100644 --- a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelectTag.stories.tsx +++ b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemSelectTag.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { CatalogDecorator, diff --git a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemToggle.stories.tsx b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemToggle.stories.tsx index 3e371cadde..dfa94d38d7 100644 --- a/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemToggle.stories.tsx +++ b/packages/twenty-ui/src/navigation/menu/menu-item/components/__stories__/MenuItemToggle.stories.tsx @@ -1,4 +1,4 @@ -import { type Meta, type StoryObj } from '@storybook/react'; +import { type Meta, type StoryObj } from '@storybook/react-vite'; import { IconBell } from '@ui/display'; import { diff --git a/packages/twenty-ui/src/testing/decorators/CatalogDecorator.tsx b/packages/twenty-ui/src/testing/decorators/CatalogDecorator.tsx index 9d46d8f5fd..dc922d5092 100644 --- a/packages/twenty-ui/src/testing/decorators/CatalogDecorator.tsx +++ b/packages/twenty-ui/src/testing/decorators/CatalogDecorator.tsx @@ -1,6 +1,6 @@ import styled from '@emotion/styled'; import { isNumber, isString } from '@sniptt/guards'; -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { type ComponentProps, type JSX } from 'react'; const StyledColumnTitle = styled.h1` diff --git a/packages/twenty-ui/src/testing/decorators/ComponentDecorator.tsx b/packages/twenty-ui/src/testing/decorators/ComponentDecorator.tsx index 9fac6823b7..3aae39ebb1 100644 --- a/packages/twenty-ui/src/testing/decorators/ComponentDecorator.tsx +++ b/packages/twenty-ui/src/testing/decorators/ComponentDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { GRAY_SCALE_LIGHT, MAIN_COLORS_LIGHT } from '@ui/theme'; diff --git a/packages/twenty-ui/src/testing/decorators/ComponentWithRouterDecorator.tsx b/packages/twenty-ui/src/testing/decorators/ComponentWithRouterDecorator.tsx index 2929f3a98a..ed0044fc84 100644 --- a/packages/twenty-ui/src/testing/decorators/ComponentWithRouterDecorator.tsx +++ b/packages/twenty-ui/src/testing/decorators/ComponentWithRouterDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { createMemoryRouter, createRoutesFromElements, diff --git a/packages/twenty-ui/src/testing/decorators/RecoilRootDecorator.tsx b/packages/twenty-ui/src/testing/decorators/RecoilRootDecorator.tsx index e2d0ac32aa..26a65fb3b0 100644 --- a/packages/twenty-ui/src/testing/decorators/RecoilRootDecorator.tsx +++ b/packages/twenty-ui/src/testing/decorators/RecoilRootDecorator.tsx @@ -1,4 +1,4 @@ -import { type Decorator } from '@storybook/react'; +import { type Decorator } from '@storybook/react-vite'; import { RecoilRoot } from 'recoil'; diff --git a/packages/twenty-ui/src/testing/decorators/RouterDecorator.tsx b/packages/twenty-ui/src/testing/decorators/RouterDecorator.tsx index 5efdcd8098..7f1be7046f 100644 --- a/packages/twenty-ui/src/testing/decorators/RouterDecorator.tsx +++ b/packages/twenty-ui/src/testing/decorators/RouterDecorator.tsx @@ -1,5 +1,5 @@ +import { type Decorator } from '@storybook/react-vite'; import { MemoryRouter } from 'react-router-dom'; -import { type Decorator } from '@storybook/react'; export const RouterDecorator: Decorator = (Story) => ( diff --git a/packages/twenty-ui/src/testing/types/CatalogStory.ts b/packages/twenty-ui/src/testing/types/CatalogStory.ts index 2a3ce30c0b..caf2da26f1 100644 --- a/packages/twenty-ui/src/testing/types/CatalogStory.ts +++ b/packages/twenty-ui/src/testing/types/CatalogStory.ts @@ -1,5 +1,5 @@ +import { type StoryObj } from '@storybook/react-vite'; import { type ElementType } from 'react'; -import { type StoryObj } from '@storybook/react'; import { type CatalogDimension, diff --git a/yarn.lock b/yarn.lock index cf7107bb64..d707c9d2e7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2580,7 +2580,7 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.13.16, @babel/core@npm:^7.14.0, @babel/core@npm:^7.14.5, @babel/core@npm:^7.18.9, @babel/core@npm:^7.20.12, @babel/core@npm:^7.21.0, @babel/core@npm:^7.21.3, @babel/core@npm:^7.22.5, @babel/core@npm:^7.23.2, @babel/core@npm:^7.23.5, @babel/core@npm:^7.23.9, @babel/core@npm:^7.27.4, @babel/core@npm:^7.7.5": +"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.13.16, @babel/core@npm:^7.14.0, @babel/core@npm:^7.14.5, @babel/core@npm:^7.20.12, @babel/core@npm:^7.21.0, @babel/core@npm:^7.21.3, @babel/core@npm:^7.22.5, @babel/core@npm:^7.23.2, @babel/core@npm:^7.23.5, @babel/core@npm:^7.23.9, @babel/core@npm:^7.27.4, @babel/core@npm:^7.7.5": version: 7.28.0 resolution: "@babel/core@npm:7.28.0" dependencies: @@ -2603,6 +2603,29 @@ __metadata: languageName: node linkType: hard +"@babel/core@npm:^7.28.0": + version: 7.28.5 + resolution: "@babel/core@npm:7.28.5" + dependencies: + "@babel/code-frame": "npm:^7.27.1" + "@babel/generator": "npm:^7.28.5" + "@babel/helper-compilation-targets": "npm:^7.27.2" + "@babel/helper-module-transforms": "npm:^7.28.3" + "@babel/helpers": "npm:^7.28.4" + "@babel/parser": "npm:^7.28.5" + "@babel/template": "npm:^7.27.2" + "@babel/traverse": "npm:^7.28.5" + "@babel/types": "npm:^7.28.5" + "@jridgewell/remapping": "npm:^2.3.5" + convert-source-map: "npm:^2.0.0" + debug: "npm:^4.1.0" + gensync: "npm:^1.0.0-beta.2" + json5: "npm:^2.2.3" + semver: "npm:^6.3.1" + checksum: 10c0/535f82238027621da6bdffbdbe896ebad3558b311d6f8abc680637a9859b96edbf929ab010757055381570b29cf66c4a295b5618318d27a4273c0e2033925e72 + languageName: node + linkType: hard + "@babel/generator@npm:^7.14.0, @babel/generator@npm:^7.18.13, @babel/generator@npm:^7.21.1, @babel/generator@npm:^7.22.5, @babel/generator@npm:^7.23.5, @babel/generator@npm:^7.27.5, @babel/generator@npm:^7.28.0, @babel/generator@npm:^7.7.2": version: 7.28.0 resolution: "@babel/generator@npm:7.28.0" @@ -2736,6 +2759,19 @@ __metadata: languageName: node linkType: hard +"@babel/helper-module-transforms@npm:^7.28.3": + version: 7.28.3 + resolution: "@babel/helper-module-transforms@npm:7.28.3" + dependencies: + "@babel/helper-module-imports": "npm:^7.27.1" + "@babel/helper-validator-identifier": "npm:^7.27.1" + "@babel/traverse": "npm:^7.28.3" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/549be62515a6d50cd4cfefcab1b005c47f89bd9135a22d602ee6a5e3a01f27571868ada10b75b033569f24dc4a2bb8d04bfa05ee75c16da7ade2d0db1437fcdb + languageName: node + linkType: hard + "@babel/helper-optimise-call-expression@npm:^7.25.9": version: 7.25.9 resolution: "@babel/helper-optimise-call-expression@npm:7.25.9" @@ -2837,6 +2873,16 @@ __metadata: languageName: node linkType: hard +"@babel/helpers@npm:^7.28.4": + version: 7.28.4 + resolution: "@babel/helpers@npm:7.28.4" + dependencies: + "@babel/template": "npm:^7.27.2" + "@babel/types": "npm:^7.28.4" + checksum: 10c0/aaa5fb8098926dfed5f223adf2c5e4c7fbba4b911b73dfec2d7d3083f8ba694d201a206db673da2d9b3ae8c01793e795767654558c450c8c14b4c2175b4fcb44 + languageName: node + linkType: hard + "@babel/parser@npm:^7.0.0, @babel/parser@npm:^7.1.0, @babel/parser@npm:^7.13.16, @babel/parser@npm:^7.14.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.16.8, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.22.0, @babel/parser@npm:^7.23.9, @babel/parser@npm:^7.25.3, @babel/parser@npm:^7.27.2, @babel/parser@npm:^7.28.0": version: 7.28.0 resolution: "@babel/parser@npm:7.28.0" @@ -4074,7 +4120,7 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.12.1, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.15.4, @babel/runtime@npm:^7.17.8, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.20.13, @babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.22.6, @babel/runtime@npm:^7.23.8, @babel/runtime@npm:^7.24.1, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2": +"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.12.1, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.15.4, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.20.13, @babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.22.6, @babel/runtime@npm:^7.23.8, @babel/runtime@npm:^7.24.1, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2": version: 7.28.4 resolution: "@babel/runtime@npm:7.28.4" checksum: 10c0/792ce7af9750fb9b93879cc9d1db175701c4689da890e6ced242ea0207c9da411ccf16dc04e689cc01158b28d7898c40d75598f4559109f761c12ce01e959bf7 @@ -4092,7 +4138,7 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.14.0, @babel/traverse@npm:^7.16.0, @babel/traverse@npm:^7.16.8, @babel/traverse@npm:^7.18.9, @babel/traverse@npm:^7.23.5, @babel/traverse@npm:^7.25.9, @babel/traverse@npm:^7.26.5, @babel/traverse@npm:^7.26.8, @babel/traverse@npm:^7.26.9, @babel/traverse@npm:^7.27.1, @babel/traverse@npm:^7.27.3, @babel/traverse@npm:^7.28.0": +"@babel/traverse@npm:^7.14.0, @babel/traverse@npm:^7.16.0, @babel/traverse@npm:^7.16.8, @babel/traverse@npm:^7.23.5, @babel/traverse@npm:^7.25.9, @babel/traverse@npm:^7.26.5, @babel/traverse@npm:^7.26.8, @babel/traverse@npm:^7.26.9, @babel/traverse@npm:^7.27.1, @babel/traverse@npm:^7.27.3, @babel/traverse@npm:^7.28.0": version: 7.28.0 resolution: "@babel/traverse@npm:7.28.0" dependencies: @@ -4107,7 +4153,7 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.27.0": +"@babel/traverse@npm:^7.27.0, @babel/traverse@npm:^7.28.3, @babel/traverse@npm:^7.28.5": version: 7.28.5 resolution: "@babel/traverse@npm:7.28.5" dependencies: @@ -4122,7 +4168,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.16.8, @babel/types@npm:^7.18.13, @babel/types@npm:^7.18.9, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.2, @babel/types@npm:^7.21.3, @babel/types@npm:^7.22.5, @babel/types@npm:^7.23.5, @babel/types@npm:^7.25.9, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.0, @babel/types@npm:^7.28.2, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4": +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.16.8, @babel/types@npm:^7.18.13, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.2, @babel/types@npm:^7.21.3, @babel/types@npm:^7.22.5, @babel/types@npm:^7.23.5, @babel/types@npm:^7.25.9, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.0, @babel/types@npm:^7.28.2, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4": version: 7.28.2 resolution: "@babel/types@npm:7.28.2" dependencies: @@ -4132,7 +4178,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.28.5": +"@babel/types@npm:^7.28.4, @babel/types@npm:^7.28.5": version: 7.28.5 resolution: "@babel/types@npm:7.28.5" dependencies: @@ -6365,6 +6411,17 @@ __metadata: languageName: node linkType: hard +"@eslint-community/eslint-utils@npm:^4.9.1": + version: 4.9.1 + resolution: "@eslint-community/eslint-utils@npm:4.9.1" + dependencies: + eslint-visitor-keys: "npm:^3.4.3" + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + checksum: 10c0/dc4ab5e3e364ef27e33666b11f4b86e1a6c1d7cbf16f0c6ff87b1619b3562335e9201a3d6ce806221887ff780ec9d828962a290bb910759fd40a674686503f02 + languageName: node + linkType: hard + "@eslint-community/regexpp@npm:^4.10.0, @eslint-community/regexpp@npm:^4.12.1": version: 4.12.1 resolution: "@eslint-community/regexpp@npm:4.12.1" @@ -9873,20 +9930,20 @@ __metadata: languageName: node linkType: hard -"@joshwooding/vite-plugin-react-docgen-typescript@npm:0.5.0": - version: 0.5.0 - resolution: "@joshwooding/vite-plugin-react-docgen-typescript@npm:0.5.0" +"@joshwooding/vite-plugin-react-docgen-typescript@npm:0.6.1": + version: 0.6.1 + resolution: "@joshwooding/vite-plugin-react-docgen-typescript@npm:0.6.1" dependencies: glob: "npm:^10.0.0" - magic-string: "npm:^0.27.0" + magic-string: "npm:^0.30.0" react-docgen-typescript: "npm:^2.2.2" peerDependencies: typescript: ">= 4.3.x" - vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/dd5bcd01c685c67bcfb4676639f15319937867ad5af0dc083991fe9ae9e66302c72fec53d12e0616a45eadb0ae715bea144d0302f408a44f1eeab14c5160ad4a + checksum: 10c0/0bcc2adbb49158018102bd9d84cd8572c770daee3d46733157933ef0330953bd5b9e102c26f2338ee7dfb8f21a7bb937134d23f8a7935d5dc88525a253557467 languageName: node linkType: hard @@ -9910,6 +9967,16 @@ __metadata: languageName: node linkType: hard +"@jridgewell/remapping@npm:^2.3.5": + version: 2.3.5 + resolution: "@jridgewell/remapping@npm:2.3.5" + dependencies: + "@jridgewell/gen-mapping": "npm:^0.3.5" + "@jridgewell/trace-mapping": "npm:^0.3.24" + checksum: 10c0/3de494219ffeb2c5c38711d0d7bb128097edf91893090a2dbc8ee0b55d092bb7347b1fd0f478486c5eab010e855c73927b1666f2107516d472d24a73017d1194 + languageName: node + linkType: hard + "@jridgewell/resolve-uri@npm:^3.0.3, @jridgewell/resolve-uri@npm:^3.1.0": version: 3.1.2 resolution: "@jridgewell/resolve-uri@npm:3.1.2" @@ -9927,7 +9994,7 @@ __metadata: languageName: node linkType: hard -"@jridgewell/sourcemap-codec@npm:^1.4.10, @jridgewell/sourcemap-codec@npm:^1.4.13, @jridgewell/sourcemap-codec@npm:^1.4.14, @jridgewell/sourcemap-codec@npm:^1.5.0": +"@jridgewell/sourcemap-codec@npm:^1.4.10, @jridgewell/sourcemap-codec@npm:^1.4.14, @jridgewell/sourcemap-codec@npm:^1.5.0": version: 1.5.0 resolution: "@jridgewell/sourcemap-codec@npm:1.5.0" checksum: 10c0/2eb864f276eb1096c3c11da3e9bb518f6d9fc0023c78344cdc037abadc725172c70314bdb360f2d4b7bffec7f5d657ce006816bc5d4ecb35e61b66132db00c18 @@ -10747,18 +10814,6 @@ __metadata: languageName: node linkType: hard -"@mdx-js/react@npm:^3.0.0": - version: 3.1.0 - resolution: "@mdx-js/react@npm:3.1.0" - dependencies: - "@types/mdx": "npm:^2.0.0" - peerDependencies: - "@types/react": ">=16" - react: ">=16" - checksum: 10c0/381ed1211ba2b8491bf0ad9ef0d8d1badcdd114e1931d55d44019d4b827cc2752586708f9c7d2f9c3244150ed81f1f671a6ca95fae0edd5797fb47a22e06ceca - languageName: node - linkType: hard - "@mdx-js/react@npm:^3.1.1": version: 3.1.1 resolution: "@mdx-js/react@npm:3.1.1" @@ -21897,50 +21952,9 @@ __metadata: languageName: node linkType: hard -"@storybook/addon-actions@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/addon-actions@npm:8.6.15" - dependencies: - "@storybook/global": "npm:^5.0.0" - "@types/uuid": "npm:^9.0.1" - dequal: "npm:^2.0.2" - polished: "npm:^4.2.2" - uuid: "npm:^9.0.0" - peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/8db81bbb9915eba206e99393707a8f494078e64e828bfe92345fcaf11d2215dac08b754009db6c5938e4ce338dc9e7eacd149d7c285c898ef6f4c0d0f6989d6d - languageName: node - linkType: hard - -"@storybook/addon-backgrounds@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/addon-backgrounds@npm:8.6.15" - dependencies: - "@storybook/global": "npm:^5.0.0" - memoizerific: "npm:^1.11.3" - ts-dedent: "npm:^2.0.0" - peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/2de25f2b4597dec4f9ff6c05972b890f25285596118eb56a25ae18e5fc5da9249c1cd331f848a73aaff98810cebe5d47da9ad450e5ebbffc8a6f145cd45ba955 - languageName: node - linkType: hard - -"@storybook/addon-controls@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/addon-controls@npm:8.6.15" - dependencies: - "@storybook/global": "npm:^5.0.0" - dequal: "npm:^2.0.2" - ts-dedent: "npm:^2.0.0" - peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/86cedf2c3b83dcdca8d4214e87a21bc360e60c33c3a955b8c41c5bc820c120e0c86cbd65ea1545c9977a02661401b71d7e1ff4ab248139a9d13f604390145c3b - languageName: node - linkType: hard - -"@storybook/addon-coverage@npm:^1.0.0": - version: 1.0.4 - resolution: "@storybook/addon-coverage@npm:1.0.4" +"@storybook/addon-coverage@npm:^2.0.0": + version: 2.0.0 + resolution: "@storybook/addon-coverage@npm:2.0.0" dependencies: "@istanbuljs/load-nyc-config": "npm:^1.1.0" "@jsdevtools/coverage-istanbul-loader": "npm:^3.0.5" @@ -21949,217 +21963,47 @@ __metadata: espree: "npm:^9.6.1" istanbul-lib-instrument: "npm:^6.0.1" test-exclude: "npm:^6.0.0" - vite-plugin-istanbul: "npm:^3.0.1" - checksum: 10c0/2f34fc9ddd8066f6bfcae9a6e6b8d7b740197276c42b92338b9963fbefb233205741b87dc52538def02ab00d1b3d64350aba42ccba7c9dd46d3499e5b1a9d7d7 + vite-plugin-istanbul: "npm:^6.0.2" + checksum: 10c0/a471e34e7dc11b099ac60bdee90966442da0acf03c36029206b2dbf050990f4acf297fb77e0aae0495d34538743dbb2f3e41e10877467fa287d77e415c0411d8 languageName: node linkType: hard -"@storybook/addon-docs@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/addon-docs@npm:8.6.15" - dependencies: - "@mdx-js/react": "npm:^3.0.0" - "@storybook/blocks": "npm:8.6.15" - "@storybook/csf-plugin": "npm:8.6.15" - "@storybook/react-dom-shim": "npm:8.6.15" - react: "npm:^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - react-dom: "npm:^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - ts-dedent: "npm:^2.0.0" - peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/85caa4f8575abb5821c8c66a67f5872f955a065b9afd4cd50a5491b87e83c5650bfb22d0de14612073dc5a1924a765572d5d9015b3c7425f9b068d679ae94994 - languageName: node - linkType: hard - -"@storybook/addon-essentials@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/addon-essentials@npm:8.6.15" - dependencies: - "@storybook/addon-actions": "npm:8.6.15" - "@storybook/addon-backgrounds": "npm:8.6.15" - "@storybook/addon-controls": "npm:8.6.15" - "@storybook/addon-docs": "npm:8.6.15" - "@storybook/addon-highlight": "npm:8.6.15" - "@storybook/addon-measure": "npm:8.6.15" - "@storybook/addon-outline": "npm:8.6.15" - "@storybook/addon-toolbars": "npm:8.6.15" - "@storybook/addon-viewport": "npm:8.6.15" - ts-dedent: "npm:^2.0.0" - peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/b520763a884fe6be433726f3bf139319e0e3fbd5b580f89b96a40b2e67bbde38261b0fa9cd5cc66948f94cc6118393e8e602b1a3562f673f28b22c185284a455 - languageName: node - linkType: hard - -"@storybook/addon-highlight@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/addon-highlight@npm:8.6.15" +"@storybook/addon-links@npm:^9.1.17": + version: 9.1.17 + resolution: "@storybook/addon-links@npm:9.1.17" dependencies: "@storybook/global": "npm:^5.0.0" - peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/13d2ee718286d027e2446d667bc93c03b69b342882869395a49b4ef04cc76520bd9c3a54f8ff4db9dede1450b52f5e8a127d6b7acf53e175424645b1b8ab3d00 - languageName: node - linkType: hard - -"@storybook/addon-interactions@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/addon-interactions@npm:8.6.15" - dependencies: - "@storybook/global": "npm:^5.0.0" - "@storybook/instrumenter": "npm:8.6.15" - "@storybook/test": "npm:8.6.15" - polished: "npm:^4.2.2" - ts-dedent: "npm:^2.2.0" - peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/acc5ec58c551e4ae5fa1396dd80dc4fe5c5a69825ce74e75a08888923e097ae63c0bd2accf08ca93cff54d4812f75ee5a28a9732d73c9ec7e08734ca2d88f888 - languageName: node - linkType: hard - -"@storybook/addon-links@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/addon-links@npm:8.6.15" - dependencies: - "@storybook/global": "npm:^5.0.0" - ts-dedent: "npm:^2.0.0" peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta - storybook: ^8.6.15 + storybook: ^9.1.17 peerDependenciesMeta: react: optional: true - checksum: 10c0/6011a899263c3b68c10c4a204c6604b7cab657df98766b4d012cb6582bb17125eca9038e354d0d2cdd30625826783fbddb5c20e82fe356a05bb4badcf83ad6de + checksum: 10c0/e0e38015127cbc84d5edecec1081bd84c8cb257f6139d1416d5e8ff103617df23c9f367e99a471bb72ef1e6858e138202813c1fdda6f32ab0be3c44e905dc8a0 languageName: node linkType: hard -"@storybook/addon-measure@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/addon-measure@npm:8.6.15" +"@storybook/builder-vite@npm:9.1.17": + version: 9.1.17 + resolution: "@storybook/builder-vite@npm:9.1.17" dependencies: - "@storybook/global": "npm:^5.0.0" - tiny-invariant: "npm:^1.3.1" - peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/9b2f39bdc062a8f5304fbf5000b6f65dda0edabfa3f5957547128712845337e2e0b74639349daed9e7ea4c379d4c2fecb78b05e016cd1bba0432343c01797a4e - languageName: node - linkType: hard - -"@storybook/addon-outline@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/addon-outline@npm:8.6.15" - dependencies: - "@storybook/global": "npm:^5.0.0" + "@storybook/csf-plugin": "npm:9.1.17" ts-dedent: "npm:^2.0.0" peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/c5b2e5d1c17a6d39e06517f1561a531073860eeab535e75bc7cd888e95e8430762a6cc3599ffd8a82cd75ef71c7e06a7e3ff7512e188608bf6aaf69e2dd9d813 + storybook: ^9.1.17 + vite: ^5.0.0 || ^6.0.0 || ^7.0.0 + checksum: 10c0/86dbca316bf5e0156b0a22b79e1d6d4eccc7dc57c3c7b04273b6608792c83fc1ff9eebe2be4401ce9e5c54a1383d1f64e9c7558f80d05b9adc555c53da8ee653 languageName: node linkType: hard -"@storybook/addon-toolbars@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/addon-toolbars@npm:8.6.15" - peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/f03e1d2e73d56065bbc4ef29ac4b94e280d2f40fbf991d4174a408690d05a6c3d1fb152ca17bf5e0c8dcd5ab70316d8e2863936710da7cb04e1a90d094854d68 - languageName: node - linkType: hard - -"@storybook/addon-viewport@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/addon-viewport@npm:8.6.15" - dependencies: - memoizerific: "npm:^1.11.3" - peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/df1575455176ab40ef4e532e30211267a1acd3a06b2a2d872518ecd8d7f44b556ab2903a74466a8489fff8b9ac5ac35cf5cfdc7ccf9df1998196cfdb174f0806 - languageName: node - linkType: hard - -"@storybook/blocks@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/blocks@npm:8.6.15" - dependencies: - "@storybook/icons": "npm:^1.2.12" - ts-dedent: "npm:^2.0.0" - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - storybook: ^8.6.15 - peerDependenciesMeta: - react: - optional: true - react-dom: - optional: true - checksum: 10c0/30c326bec59245a74fd77fe9647ccdef49ee8b56a654a088a873ececbc26795c6cf3546fc7ee7c446c9d5e6fae089ce85c494c6ebe358c4a312adc733c8cb904 - languageName: node - linkType: hard - -"@storybook/builder-vite@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/builder-vite@npm:8.6.15" - dependencies: - "@storybook/csf-plugin": "npm:8.6.15" - browser-assert: "npm:^1.2.1" - ts-dedent: "npm:^2.0.0" - peerDependencies: - storybook: ^8.6.15 - vite: ^4.0.0 || ^5.0.0 || ^6.0.0 - checksum: 10c0/ccddca6e9372f56f737a9587c5d16b03652c7cadf80dc80397ebe72e6b566f5abc7898db414d41ad4246d8e06c9a838d6548adb73608954b5230061909c2e348 - languageName: node - linkType: hard - -"@storybook/components@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/components@npm:8.6.15" - peerDependencies: - storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 - checksum: 10c0/4f3b7a75d1b781048203f93c380ad76174ef7a6ba6e2847c390bb42fb7389ac77d999ff65304ca99650b8641dac8183e3bd527bcc86143394ac694854ea882f7 - languageName: node - linkType: hard - -"@storybook/core-server@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/core-server@npm:8.6.15" - peerDependencies: - storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 - checksum: 10c0/8308b40a2b99fb18b884994928225706f8be4c2893be35673b70fd256f6f6d710621d53821e67b7bde56c59e20053419bf954a7680470e9a8c250e5d705378e9 - languageName: node - linkType: hard - -"@storybook/core@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/core@npm:8.6.15" - dependencies: - "@storybook/theming": "npm:8.6.15" - better-opn: "npm:^3.0.2" - browser-assert: "npm:^1.2.1" - esbuild: "npm:^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0" - esbuild-register: "npm:^3.5.0" - jsdoc-type-pratt-parser: "npm:^4.0.0" - process: "npm:^0.11.10" - recast: "npm:^0.23.5" - semver: "npm:^7.6.2" - util: "npm:^0.12.5" - ws: "npm:^8.2.3" - peerDependencies: - prettier: ^2 || ^3 - peerDependenciesMeta: - prettier: - optional: true - checksum: 10c0/34f1f3927d605119c80d2a3dbd8efa69d7bcf419877c09da2fc1e091fcf6bdb09d9a114c0c51651d7058425375689865435f7e6ec2be911d4dd437629d7e31e1 - languageName: node - linkType: hard - -"@storybook/csf-plugin@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/csf-plugin@npm:8.6.15" +"@storybook/csf-plugin@npm:9.1.17": + version: 9.1.17 + resolution: "@storybook/csf-plugin@npm:9.1.17" dependencies: unplugin: "npm:^1.3.1" peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/9968c241f9469a2a7306450273f6530e7b9229e8066b1763cda8919b397e064e5ef45c0a2f71f1f52232727ff100ae9a0c9f0c72ef917f5c34f6d5311e46287b + storybook: ^9.1.17 + checksum: 10c0/bbbaf788e954930c5bb48731a29e605ceae3e8c0463a330e6ac64a9b7ec7b06e6d2d11faec0c9767e8cf4447936f7fc61835dcb0ad5a5a4908a79eabb0eaf5f3 languageName: node linkType: hard @@ -22179,7 +22023,7 @@ __metadata: languageName: node linkType: hard -"@storybook/icons@npm:^1.2.12, @storybook/icons@npm:^1.2.9": +"@storybook/icons@npm:^1.2.9": version: 1.4.0 resolution: "@storybook/icons@npm:1.4.0" peerDependencies: @@ -22189,95 +22033,54 @@ __metadata: languageName: node linkType: hard -"@storybook/instrumenter@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/instrumenter@npm:8.6.15" - dependencies: - "@storybook/global": "npm:^5.0.0" - "@vitest/utils": "npm:^2.1.1" - peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/a6ff3f454e07fd072b372a2539f907b83dacbc97c1f01bc2478c606b272360fb2cba53ca292bf4b5d385dc718b41489973bf19d91c769d5ab4653015eb0076f3 - languageName: node - linkType: hard - -"@storybook/manager-api@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/manager-api@npm:8.6.15" - peerDependencies: - storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 - checksum: 10c0/4a68eb86f30184b396346b2c1ba56644a5d08b6ab1adf52b17224e8ba9877474f1acccba5b182e32c04cef7161d1753bddec180a4dfc362c15c26b784524002e - languageName: node - linkType: hard - -"@storybook/preview-api@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/preview-api@npm:8.6.15" - peerDependencies: - storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 - checksum: 10c0/6b0e57530d4abc09ac16d0cd7de356de0cc48560049a19f0141ad8392cf69525040924ce4425d77fd54397768f4dbe3000bbe4baeddd933fa7a3adccad2d734d - languageName: node - linkType: hard - -"@storybook/react-dom-shim@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/react-dom-shim@npm:8.6.15" +"@storybook/react-dom-shim@npm:9.1.17": + version: 9.1.17 + resolution: "@storybook/react-dom-shim@npm:9.1.17" peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta - storybook: ^8.6.15 - checksum: 10c0/5be612710d5fa78469a05bce3d9e4cac49532124ad039d66adafa97f43c132b67f595ec112b182303e095a8cb77f81b742bffbda4304685d299d2cd011090216 + storybook: ^9.1.17 + checksum: 10c0/7484ea12ac772b744215ba0b70c041299e75e2732c1f7f74a9027e1378cd064e0b29309263507d7fb14570484dafee9bb5d3b20127ff18f78b4dee54e39ce121 languageName: node linkType: hard -"@storybook/react-vite@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/react-vite@npm:8.6.15" +"@storybook/react-vite@npm:^9.1.17": + version: 9.1.17 + resolution: "@storybook/react-vite@npm:9.1.17" dependencies: - "@joshwooding/vite-plugin-react-docgen-typescript": "npm:0.5.0" + "@joshwooding/vite-plugin-react-docgen-typescript": "npm:0.6.1" "@rollup/pluginutils": "npm:^5.0.2" - "@storybook/builder-vite": "npm:8.6.15" - "@storybook/react": "npm:8.6.15" - find-up: "npm:^5.0.0" + "@storybook/builder-vite": "npm:9.1.17" + "@storybook/react": "npm:9.1.17" + find-up: "npm:^7.0.0" magic-string: "npm:^0.30.0" - react-docgen: "npm:^7.0.0" + react-docgen: "npm:^8.0.0" resolve: "npm:^1.22.8" tsconfig-paths: "npm:^4.2.0" peerDependencies: - "@storybook/test": 8.6.15 react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta - storybook: ^8.6.15 - vite: ^4.0.0 || ^5.0.0 || ^6.0.0 - peerDependenciesMeta: - "@storybook/test": - optional: true - checksum: 10c0/6d3882a8511820182894be62b16e71fa2772d16dbae555d45cd0421f03e329cd587b1df7f80558513fadd624e118bf35a956bc5a7e986e3fb22edf431b9d3646 + storybook: ^9.1.17 + vite: ^5.0.0 || ^6.0.0 || ^7.0.0 + checksum: 10c0/4cc49dab274c051f6c63a67c47c50bb2b0a1e6a3043106207bfae371e3015f43db8cd3125d6dccfe229cb8ada0c951a5eb1120e400ed07afec9d4b2aabb5ba28 languageName: node linkType: hard -"@storybook/react@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/react@npm:8.6.15" +"@storybook/react@npm:9.1.17": + version: 9.1.17 + resolution: "@storybook/react@npm:9.1.17" dependencies: - "@storybook/components": "npm:8.6.15" "@storybook/global": "npm:^5.0.0" - "@storybook/manager-api": "npm:8.6.15" - "@storybook/preview-api": "npm:8.6.15" - "@storybook/react-dom-shim": "npm:8.6.15" - "@storybook/theming": "npm:8.6.15" + "@storybook/react-dom-shim": "npm:9.1.17" peerDependencies: - "@storybook/test": 8.6.15 react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta - storybook: ^8.6.15 - typescript: ">= 4.2.x" + storybook: ^9.1.17 + typescript: ">= 4.9.x" peerDependenciesMeta: - "@storybook/test": - optional: true typescript: optional: true - checksum: 10c0/a5a2fdfa8e1a62c13a808bf2147b8a6940720c542d6c20c0502d64a848b790587204a178adf5102a9d97090cece82c2d5f679772bee9759c43811eb71a2aa6bb + checksum: 10c0/52139a2a079dae4aa904e00cf06f6e6023b7c7f6492e011d6c30866f9ad25b000d06a05a3505779b32ae57d9627bf5c6b522065d99dab499c5d582672c80fbff languageName: node linkType: hard @@ -22311,41 +22114,6 @@ __metadata: languageName: node linkType: hard -"@storybook/test@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/test@npm:8.6.15" - dependencies: - "@storybook/global": "npm:^5.0.0" - "@storybook/instrumenter": "npm:8.6.15" - "@testing-library/dom": "npm:10.4.0" - "@testing-library/jest-dom": "npm:6.5.0" - "@testing-library/user-event": "npm:14.5.2" - "@vitest/expect": "npm:2.0.5" - "@vitest/spy": "npm:2.0.5" - peerDependencies: - storybook: ^8.6.15 - checksum: 10c0/de50bd896f111a3efeeb97f9d0318e7e652424d0b883c942bd8ed46068cf9eae03fab2e13ea1143db209df63edf4ee1c88562318abdcf68e4f3bb549820e8724 - languageName: node - linkType: hard - -"@storybook/theming@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/theming@npm:8.6.15" - peerDependencies: - storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 - checksum: 10c0/b5ef8fb7e987f7b416c986e110e4d7191bb27df3e10c4e62130f6299f0cf5cf7f1b345493b221383ca103d85e09d03a879918a5de5df1ff8916713995f1ad501 - languageName: node - linkType: hard - -"@storybook/types@npm:8.6.15": - version: 8.6.15 - resolution: "@storybook/types@npm:8.6.15" - peerDependencies: - storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 - checksum: 10c0/80ecb3f509f3335185a7a14d3eb971b910ccc457891eafd12fe63e9041310c5cf97e9251466b61965ab1d5af3167f321ce8947bc7eba318a8ccef5a58f1b7b0b - languageName: node - linkType: hard - "@stylistic/eslint-plugin-js@npm:1.8.1, @stylistic/eslint-plugin-js@npm:^1.8.1": version: 1.8.1 resolution: "@stylistic/eslint-plugin-js@npm:1.8.1" @@ -23015,34 +22783,19 @@ __metadata: languageName: node linkType: hard -"@testing-library/dom@npm:10.4.0": - version: 10.4.0 - resolution: "@testing-library/dom@npm:10.4.0" +"@testing-library/dom@npm:^10.4.0": + version: 10.4.1 + resolution: "@testing-library/dom@npm:10.4.1" dependencies: "@babel/code-frame": "npm:^7.10.4" "@babel/runtime": "npm:^7.12.5" "@types/aria-query": "npm:^5.0.1" aria-query: "npm:5.3.0" - chalk: "npm:^4.1.0" dom-accessibility-api: "npm:^0.5.9" lz-string: "npm:^1.5.0" + picocolors: "npm:1.1.1" pretty-format: "npm:^27.0.2" - checksum: 10c0/0352487720ecd433400671e773df0b84b8268fb3fe8e527cdfd7c11b1365b398b4e0eddba6e7e0c85e8d615f48257753283fccec41f6b986fd6c85f15eb5f84f - languageName: node - linkType: hard - -"@testing-library/jest-dom@npm:6.5.0": - version: 6.5.0 - resolution: "@testing-library/jest-dom@npm:6.5.0" - dependencies: - "@adobe/css-tools": "npm:^4.4.0" - aria-query: "npm:^5.0.0" - chalk: "npm:^3.0.0" - css.escape: "npm:^1.5.1" - dom-accessibility-api: "npm:^0.6.3" - lodash: "npm:^4.17.21" - redent: "npm:^3.0.0" - checksum: 10c0/fd5936a547f04608d8de15a7de3ae26516f21023f8f45169b10c8c8847015fd20ec259b7309f08aa1031bcbc37c6e5e6f532d1bb85ef8f91bad654193ec66a4c + checksum: 10c0/19ce048012d395ad0468b0dbcc4d0911f6f9e39464d7a8464a587b29707eed5482000dad728f5acc4ed314d2f4d54f34982999a114d2404f36d048278db815b1 languageName: node linkType: hard @@ -23081,12 +22834,12 @@ __metadata: languageName: node linkType: hard -"@testing-library/user-event@npm:14.5.2": - version: 14.5.2 - resolution: "@testing-library/user-event@npm:14.5.2" +"@testing-library/user-event@npm:^14.6.1": + version: 14.6.1 + resolution: "@testing-library/user-event@npm:14.6.1" peerDependencies: "@testing-library/dom": ">=7.21.4" - checksum: 10c0/68a0c2aa28a3c8e6eb05cafee29705438d7d8a9427423ce5064d44f19c29e89b5636de46dd2f28620fb10abba75c67130185bbc3aa23ac1163a227a5f36641e1 + checksum: 10c0/75fea130a52bf320d35d46ed54f3eec77e71a56911b8b69a3fe29497b0b9947b2dc80d30f04054ad4ce7f577856ae3e5397ea7dff0ef14944d3909784c7a93fe languageName: node linkType: hard @@ -23681,7 +23434,7 @@ __metadata: languageName: node linkType: hard -"@types/babel__core@npm:^7.1.14, @types/babel__core@npm:^7.18.0, @types/babel__core@npm:^7.20.5": +"@types/babel__core@npm:^7.1.14, @types/babel__core@npm:^7.20.5": version: 7.20.5 resolution: "@types/babel__core@npm:7.20.5" dependencies: @@ -23720,7 +23473,7 @@ __metadata: languageName: node linkType: hard -"@types/babel__traverse@npm:*, @types/babel__traverse@npm:^7.0.6, @types/babel__traverse@npm:^7.18.0": +"@types/babel__traverse@npm:*, @types/babel__traverse@npm:^7.0.6": version: 7.20.6 resolution: "@types/babel__traverse@npm:7.20.6" dependencies: @@ -23729,6 +23482,15 @@ __metadata: languageName: node linkType: hard +"@types/babel__traverse@npm:^7.20.7": + version: 7.28.0 + resolution: "@types/babel__traverse@npm:7.28.0" + dependencies: + "@babel/types": "npm:^7.28.2" + checksum: 10c0/b52d7d4e8fc6a9018fe7361c4062c1c190f5778cf2466817cb9ed19d69fbbb54f9a85ffedeb748ed8062d2cf7d4cc088ee739848f47c57740de1c48cbf0d0994 + languageName: node + linkType: hard + "@types/bcrypt@npm:^5.0.0": version: 5.0.2 resolution: "@types/bcrypt@npm:5.0.2" @@ -23785,6 +23547,16 @@ __metadata: languageName: node linkType: hard +"@types/chai@npm:^5.2.2": + version: 5.2.3 + resolution: "@types/chai@npm:5.2.3" + dependencies: + "@types/deep-eql": "npm:*" + assertion-error: "npm:^2.0.1" + checksum: 10c0/e0ef1de3b6f8045a5e473e867c8565788c444271409d155588504840ad1a53611011f85072188c2833941189400228c1745d78323dac13fcede9c2b28bacfb2f + languageName: node + linkType: hard + "@types/chrome@npm:^0.0.267": version: 0.0.267 resolution: "@types/chrome@npm:0.0.267" @@ -24007,6 +23779,13 @@ __metadata: languageName: node linkType: hard +"@types/deep-eql@npm:*": + version: 4.0.2 + resolution: "@types/deep-eql@npm:4.0.2" + checksum: 10c0/bf3f811843117900d7084b9d0c852da9a044d12eb40e6de73b552598a6843c21291a8a381b0532644574beecd5e3491c5ff3a0365ab86b15d59862c025384844 + languageName: node + linkType: hard + "@types/deep-equal@npm:^1.0.1": version: 1.0.4 resolution: "@types/deep-equal@npm:1.0.4" @@ -25610,6 +25389,19 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/project-service@npm:8.52.0": + version: 8.52.0 + resolution: "@typescript-eslint/project-service@npm:8.52.0" + dependencies: + "@typescript-eslint/tsconfig-utils": "npm:^8.52.0" + "@typescript-eslint/types": "npm:^8.52.0" + debug: "npm:^4.4.3" + peerDependencies: + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/2dc7379572b4b1340daff5923fbf7987ebd2de5a4203ece0ec9e8a9e85cf182cd4cd24c25bd7df62b981fb633c91dd35f27fed1341719c2f8a48eb80682b4658 + languageName: node + linkType: hard + "@typescript-eslint/scope-manager@npm:5.62.0": version: 5.62.0 resolution: "@typescript-eslint/scope-manager@npm:5.62.0" @@ -25650,6 +25442,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/scope-manager@npm:8.52.0": + version: 8.52.0 + resolution: "@typescript-eslint/scope-manager@npm:8.52.0" + dependencies: + "@typescript-eslint/types": "npm:8.52.0" + "@typescript-eslint/visitor-keys": "npm:8.52.0" + checksum: 10c0/385105ad1bb63eddcfc65039a7c13ec339aef4823c3021110cffe72c545b27c6b197e40ec55000b5b1bf278946a3e1a77eba19203f461c1a77ba3fe82d007f3e + languageName: node + linkType: hard + "@typescript-eslint/tsconfig-utils@npm:8.39.0, @typescript-eslint/tsconfig-utils@npm:^8.39.0": version: 8.39.0 resolution: "@typescript-eslint/tsconfig-utils@npm:8.39.0" @@ -25668,6 +25470,15 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/tsconfig-utils@npm:8.52.0, @typescript-eslint/tsconfig-utils@npm:^8.52.0": + version: 8.52.0 + resolution: "@typescript-eslint/tsconfig-utils@npm:8.52.0" + peerDependencies: + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/a45f6c1453031c149b2dedaa4e8ace53aa71c751a5702b028cbd9a899928d46141cc4343d8de6260e3e27024f6645b12669d8759f66ebde4cbae2f703b859747 + languageName: node + linkType: hard + "@typescript-eslint/type-utils@npm:8.39.0, @typescript-eslint/type-utils@npm:^8.0.0": version: 8.39.0 resolution: "@typescript-eslint/type-utils@npm:8.39.0" @@ -25712,6 +25523,13 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:8.52.0, @typescript-eslint/types@npm:^8.52.0": + version: 8.52.0 + resolution: "@typescript-eslint/types@npm:8.52.0" + checksum: 10c0/ad93803aa92570a96cc9f9a201735e68fecee9056a37563c9e5b70c16436927ac823ec38d9712881910d89dd7314b0a40100ef41ef1aca0d42674d3312d5ec8e + languageName: node + linkType: hard + "@typescript-eslint/typescript-estree@npm:5.62.0": version: 5.62.0 resolution: "@typescript-eslint/typescript-estree@npm:5.62.0" @@ -25788,6 +25606,25 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/typescript-estree@npm:8.52.0": + version: 8.52.0 + resolution: "@typescript-eslint/typescript-estree@npm:8.52.0" + dependencies: + "@typescript-eslint/project-service": "npm:8.52.0" + "@typescript-eslint/tsconfig-utils": "npm:8.52.0" + "@typescript-eslint/types": "npm:8.52.0" + "@typescript-eslint/visitor-keys": "npm:8.52.0" + debug: "npm:^4.4.3" + minimatch: "npm:^9.0.5" + semver: "npm:^7.7.3" + tinyglobby: "npm:^0.2.15" + ts-api-utils: "npm:^2.4.0" + peerDependencies: + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/e4158a6364d3f009eac780947504ac1dad2ee3f1fdd4dfd99e4a7b48719ce0d342a769dc05fa5d4bc5de9de28175aa8e9ba612385f6b6f215039ff41e91f2de5 + languageName: node + linkType: hard + "@typescript-eslint/utils@npm:8.39.0, @typescript-eslint/utils@npm:^8.0.0, @typescript-eslint/utils@npm:^8.39.0, @typescript-eslint/utils@npm:^8.8.0": version: 8.39.0 resolution: "@typescript-eslint/utils@npm:8.39.0" @@ -25838,6 +25675,21 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/utils@npm:^8.8.1": + version: 8.52.0 + resolution: "@typescript-eslint/utils@npm:8.52.0" + dependencies: + "@eslint-community/eslint-utils": "npm:^4.9.1" + "@typescript-eslint/scope-manager": "npm:8.52.0" + "@typescript-eslint/types": "npm:8.52.0" + "@typescript-eslint/typescript-estree": "npm:8.52.0" + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/67e501e8ef4c4a5510237e3bfcfee37512137075a18c24f615924559bcca64ce9903118e7e4288cd4f58361979243f457d43684cdafa6c193fa8963a7431d0f3 + languageName: node + linkType: hard + "@typescript-eslint/visitor-keys@npm:5.62.0": version: 5.62.0 resolution: "@typescript-eslint/visitor-keys@npm:5.62.0" @@ -25878,6 +25730,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/visitor-keys@npm:8.52.0": + version: 8.52.0 + resolution: "@typescript-eslint/visitor-keys@npm:8.52.0" + dependencies: + "@typescript-eslint/types": "npm:8.52.0" + eslint-visitor-keys: "npm:^4.2.1" + checksum: 10c0/7163735d872df0930301ecccd454602d241a65223b84ff3ef78ede02f27941c0cbb95d0c8b4fe51637d1fbd981e6558d454fc485a2488d7190e264e12a8a355f + languageName: node + linkType: hard + "@typescript/vfs@npm:^1.6.1": version: 1.6.2 resolution: "@typescript/vfs@npm:1.6.2" @@ -26134,65 +25996,64 @@ __metadata: languageName: node linkType: hard -"@vitest/expect@npm:2.0.5": - version: 2.0.5 - resolution: "@vitest/expect@npm:2.0.5" +"@vitest/expect@npm:3.2.4": + version: 3.2.4 + resolution: "@vitest/expect@npm:3.2.4" dependencies: - "@vitest/spy": "npm:2.0.5" - "@vitest/utils": "npm:2.0.5" - chai: "npm:^5.1.1" - tinyrainbow: "npm:^1.2.0" - checksum: 10c0/08cb1b0f106d16a5b60db733e3d436fa5eefc68571488eb570dfe4f599f214ab52e4342273b03dbe12331cc6c0cdc325ac6c94f651ad254cd62f3aa0e3d185aa + "@types/chai": "npm:^5.2.2" + "@vitest/spy": "npm:3.2.4" + "@vitest/utils": "npm:3.2.4" + chai: "npm:^5.2.0" + tinyrainbow: "npm:^2.0.0" + checksum: 10c0/7586104e3fd31dbe1e6ecaafb9a70131e4197dce2940f727b6a84131eee3decac7b10f9c7c72fa5edbdb68b6f854353bd4c0fa84779e274207fb7379563b10db languageName: node linkType: hard -"@vitest/pretty-format@npm:2.0.5": - version: 2.0.5 - resolution: "@vitest/pretty-format@npm:2.0.5" +"@vitest/mocker@npm:3.2.4": + version: 3.2.4 + resolution: "@vitest/mocker@npm:3.2.4" dependencies: - tinyrainbow: "npm:^1.2.0" - checksum: 10c0/236c0798c5170a0b5ad5d4bd06118533738e820b4dd30079d8fbcb15baee949d41c60f42a9f769906c4a5ce366d7ef11279546070646c0efc03128c220c31f37 - languageName: node - linkType: hard - -"@vitest/pretty-format@npm:2.1.9": - version: 2.1.9 - resolution: "@vitest/pretty-format@npm:2.1.9" - dependencies: - tinyrainbow: "npm:^1.2.0" - checksum: 10c0/155f9ede5090eabed2a73361094bb35ed4ec6769ae3546d2a2af139166569aec41bb80e031c25ff2da22b71dd4ed51e5468e66a05e6aeda5f14b32e30bc18f00 - languageName: node - linkType: hard - -"@vitest/spy@npm:2.0.5": - version: 2.0.5 - resolution: "@vitest/spy@npm:2.0.5" - dependencies: - tinyspy: "npm:^3.0.0" - checksum: 10c0/70634c21921eb271b54d2986c21d7ab6896a31c0f4f1d266940c9bafb8ac36237846d6736638cbf18b958bd98e5261b158a6944352742accfde50b7818ff655e - languageName: node - linkType: hard - -"@vitest/utils@npm:2.0.5": - version: 2.0.5 - resolution: "@vitest/utils@npm:2.0.5" - dependencies: - "@vitest/pretty-format": "npm:2.0.5" + "@vitest/spy": "npm:3.2.4" estree-walker: "npm:^3.0.3" - loupe: "npm:^3.1.1" - tinyrainbow: "npm:^1.2.0" - checksum: 10c0/0d1de748298f07a50281e1ba058b05dcd58da3280c14e6f016265e950bd79adab6b97822de8f0ea82d3070f585654801a9b1bcf26db4372e51cf7746bf86d73b + magic-string: "npm:^0.30.17" + peerDependencies: + msw: ^2.4.9 + vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + checksum: 10c0/f7a4aea19bbbf8f15905847ee9143b6298b2c110f8b64789224cb0ffdc2e96f9802876aa2ca83f1ec1b6e1ff45e822abb34f0054c24d57b29ab18add06536ccd languageName: node linkType: hard -"@vitest/utils@npm:^2.1.1": - version: 2.1.9 - resolution: "@vitest/utils@npm:2.1.9" +"@vitest/pretty-format@npm:3.2.4": + version: 3.2.4 + resolution: "@vitest/pretty-format@npm:3.2.4" dependencies: - "@vitest/pretty-format": "npm:2.1.9" - loupe: "npm:^3.1.2" - tinyrainbow: "npm:^1.2.0" - checksum: 10c0/81a346cd72b47941f55411f5df4cc230e5f740d1e97e0d3f771b27f007266fc1f28d0438582f6409ea571bc0030ed37f684c64c58d1947d6298d770c21026fdf + tinyrainbow: "npm:^2.0.0" + checksum: 10c0/5ad7d4278e067390d7d633e307fee8103958806a419ca380aec0e33fae71b44a64415f7a9b4bc11635d3c13d4a9186111c581d3cef9c65cc317e68f077456887 + languageName: node + linkType: hard + +"@vitest/spy@npm:3.2.4": + version: 3.2.4 + resolution: "@vitest/spy@npm:3.2.4" + dependencies: + tinyspy: "npm:^4.0.3" + checksum: 10c0/6ebf0b4697dc238476d6b6a60c76ba9eb1dd8167a307e30f08f64149612fd50227682b876420e4c2e09a76334e73f72e3ebf0e350714dc22474258292e202024 + languageName: node + linkType: hard + +"@vitest/utils@npm:3.2.4": + version: 3.2.4 + resolution: "@vitest/utils@npm:3.2.4" + dependencies: + "@vitest/pretty-format": "npm:3.2.4" + loupe: "npm:^3.1.4" + tinyrainbow: "npm:^2.0.0" + checksum: 10c0/024a9b8c8bcc12cf40183c246c244b52ecff861c6deb3477cbf487ac8781ad44c68a9c5fd69f8c1361878e55b97c10d99d511f2597f1f7244b5e5101d028ba64 languageName: node linkType: hard @@ -29204,13 +29065,6 @@ __metadata: languageName: node linkType: hard -"browser-assert@npm:^1.2.1": - version: 1.2.1 - resolution: "browser-assert@npm:1.2.1" - checksum: 10c0/902abf999f92c9c951fdb6d7352c09eea9a84706258699655f7e7906e42daa06a1ae286398a755872740e05a6a71c43c5d1a0c0431d67a8cdb66e5d859a3fc0c - languageName: node - linkType: hard - "browser-pack@npm:^6.0.1": version: 6.1.0 resolution: "browser-pack@npm:6.1.0" @@ -29890,16 +29744,16 @@ __metadata: languageName: node linkType: hard -"chai@npm:^5.1.1": - version: 5.2.1 - resolution: "chai@npm:5.2.1" +"chai@npm:^5.2.0": + version: 5.3.3 + resolution: "chai@npm:5.3.3" dependencies: assertion-error: "npm:^2.0.1" check-error: "npm:^2.1.1" deep-eql: "npm:^5.0.1" loupe: "npm:^3.1.0" pathval: "npm:^2.0.0" - checksum: 10c0/58209c03ae9b2fd97cfa1cb0fbe372b1906e6091311b9ba1b0468cc4923b0766a50a1050a164df3ccefb9464944c9216b632f1477c9e429068013bdbb57220f6 + checksum: 10c0/b360fd4d38861622e5010c2f709736988b05c7f31042305fa3f4e9911f6adb80ccfb4e302068bf8ed10e835c2e2520cba0f5edc13d878b886987e5aa62483f53 languageName: node linkType: hard @@ -35083,6 +34937,18 @@ __metadata: languageName: node linkType: hard +"eslint-plugin-storybook@npm:^9.1.17": + version: 9.1.17 + resolution: "eslint-plugin-storybook@npm:9.1.17" + dependencies: + "@typescript-eslint/utils": "npm:^8.8.1" + peerDependencies: + eslint: ">=8" + storybook: ^9.1.17 + checksum: 10c0/1092898d67adbde2faf902d2abb7fc2f242a29142b6a11d9f1172082a6df441ed468a7b9b280627b88ab9cab5ba5c3df2202b773995a31267aca87ee9d7c715b + languageName: node + linkType: hard + "eslint-plugin-unicorn@npm:^56.0.1": version: 56.0.1 resolution: "eslint-plugin-unicorn@npm:56.0.1" @@ -36414,6 +36280,17 @@ __metadata: languageName: node linkType: hard +"find-up@npm:^7.0.0": + version: 7.0.0 + resolution: "find-up@npm:7.0.0" + dependencies: + locate-path: "npm:^7.2.0" + path-exists: "npm:^5.0.0" + unicorn-magic: "npm:^0.1.0" + checksum: 10c0/e6ee3e6154560bc0ab3bc3b7d1348b31513f9bdf49a5dd2e952495427d559fa48cdf33953e85a309a323898b43fa1bfbc8b80c880dfc16068384783034030008 + languageName: node + linkType: hard + "find-versions@npm:^5.0.0": version: 5.1.0 resolution: "find-versions@npm:5.1.0" @@ -40647,7 +40524,7 @@ __metadata: languageName: node linkType: hard -"istanbul-lib-instrument@npm:^5.0.4, istanbul-lib-instrument@npm:^5.1.0": +"istanbul-lib-instrument@npm:^5.0.4": version: 5.2.1 resolution: "istanbul-lib-instrument@npm:5.2.1" dependencies: @@ -41943,13 +41820,6 @@ __metadata: languageName: node linkType: hard -"jsdoc-type-pratt-parser@npm:^4.0.0": - version: 4.1.0 - resolution: "jsdoc-type-pratt-parser@npm:4.1.0" - checksum: 10c0/7700372d2e733a32f7ea0a1df9cec6752321a5345c11a91b2ab478a031a426e934f16d5c1f15c8566c7b2c10af9f27892a29c2c789039f595470e929a4aa60ea - languageName: node - linkType: hard - "jsdom@npm:^25.0.1": version: 25.0.1 resolution: "jsdom@npm:25.0.1" @@ -42959,6 +42829,15 @@ __metadata: languageName: node linkType: hard +"locate-path@npm:^7.2.0": + version: 7.2.0 + resolution: "locate-path@npm:7.2.0" + dependencies: + p-locate: "npm:^6.0.0" + checksum: 10c0/139e8a7fe11cfbd7f20db03923cacfa5db9e14fa14887ea121345597472b4a63c1a42a8a5187defeeff6acf98fd568da7382aa39682d38f0af27433953a97751 + languageName: node + linkType: hard + "lodash-es@npm:^4.17.21": version: 4.17.21 resolution: "lodash-es@npm:4.17.21" @@ -43423,13 +43302,20 @@ __metadata: languageName: node linkType: hard -"loupe@npm:^3.1.0, loupe@npm:^3.1.1, loupe@npm:^3.1.2": +"loupe@npm:^3.1.0": version: 3.2.0 resolution: "loupe@npm:3.2.0" checksum: 10c0/f572fd9e38db8d36ae9eede305480686e310d69bc40394b6842838ebc6c3860a0e35ab30182f33606ab2d8a685d9ff6436649269f8218a1c3385ca329973cb2c languageName: node linkType: hard +"loupe@npm:^3.1.4": + version: 3.2.1 + resolution: "loupe@npm:3.2.1" + checksum: 10c0/910c872cba291309664c2d094368d31a68907b6f5913e989d301b5c25f30e97d76d77f23ab3bf3b46d0f601ff0b6af8810c10c31b91d2c6b2f132809ca2cc705 + languageName: node + linkType: hard + "lower-case-first@npm:^2.0.2": version: 2.0.2 resolution: "lower-case-first@npm:2.0.2" @@ -43577,15 +43463,6 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.27.0": - version: 0.27.0 - resolution: "magic-string@npm:0.27.0" - dependencies: - "@jridgewell/sourcemap-codec": "npm:^1.4.13" - checksum: 10c0/cddacfea14441ca57ae8a307bc3cf90bac69efaa4138dd9a80804cffc2759bf06f32da3a293fb13eaa96334b7d45b7768a34f1d226afae25d2f05b05a3bb37d8 - languageName: node - linkType: hard - "magic-string@npm:^0.30.17, magic-string@npm:^0.30.3": version: 0.30.21 resolution: "magic-string@npm:0.30.21" @@ -43776,13 +43653,6 @@ __metadata: languageName: node linkType: hard -"map-or-similar@npm:^1.5.0": - version: 1.5.0 - resolution: "map-or-similar@npm:1.5.0" - checksum: 10c0/33c6ccfdc272992e33e4e99a69541a3e7faed9de3ac5bc732feb2500a9ee71d3f9d098980a70b7746e7eeb7f859ff7dfb8aa9b5ecc4e34170a32ab78cfb18def - languageName: node - linkType: hard - "markdown-extensions@npm:^1.0.0": version: 1.1.1 resolution: "markdown-extensions@npm:1.1.1" @@ -44502,15 +44372,6 @@ __metadata: languageName: node linkType: hard -"memoizerific@npm:^1.11.3": - version: 1.11.3 - resolution: "memoizerific@npm:1.11.3" - dependencies: - map-or-similar: "npm:^1.5.0" - checksum: 10c0/661bf69b7afbfad57f0208f0c63324f4c96087b480708115b78ee3f0237d86c7f91347f6db31528740b2776c2e34c709bcb034e1e910edee2270c9603a0a469e - languageName: node - linkType: hard - "merge-descriptors@npm:1.0.3": version: 1.0.3 resolution: "merge-descriptors@npm:1.0.3" @@ -45730,7 +45591,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^9.0.0, minimatch@npm:^9.0.1, minimatch@npm:^9.0.3, minimatch@npm:^9.0.4": +"minimatch@npm:^9.0.0, minimatch@npm:^9.0.1, minimatch@npm:^9.0.3, minimatch@npm:^9.0.4, minimatch@npm:^9.0.5": version: 9.0.5 resolution: "minimatch@npm:9.0.5" dependencies: @@ -47929,6 +47790,15 @@ __metadata: languageName: node linkType: hard +"p-limit@npm:^4.0.0": + version: 4.0.0 + resolution: "p-limit@npm:4.0.0" + dependencies: + yocto-queue: "npm:^1.0.0" + checksum: 10c0/a56af34a77f8df2ff61ddfb29431044557fcbcb7642d5a3233143ebba805fc7306ac1d448de724352861cb99de934bc9ab74f0d16fe6a5460bdbdf938de875ad + languageName: node + linkType: hard + "p-locate@npm:^3.0.0": version: 3.0.0 resolution: "p-locate@npm:3.0.0" @@ -47956,6 +47826,15 @@ __metadata: languageName: node linkType: hard +"p-locate@npm:^6.0.0": + version: 6.0.0 + resolution: "p-locate@npm:6.0.0" + dependencies: + p-limit: "npm:^4.0.0" + checksum: 10c0/d72fa2f41adce59c198270aa4d3c832536c87a1806e0f69dffb7c1a7ca998fb053915ca833d90f166a8c082d3859eabfed95f01698a3214c20df6bb8de046312 + languageName: node + linkType: hard + "p-map@npm:^2.0.0": version: 2.1.0 resolution: "p-map@npm:2.1.0" @@ -48516,6 +48395,13 @@ __metadata: languageName: node linkType: hard +"path-exists@npm:^5.0.0": + version: 5.0.0 + resolution: "path-exists@npm:5.0.0" + checksum: 10c0/b170f3060b31604cde93eefdb7392b89d832dfbc1bed717c9718cbe0f230c1669b7e75f87e19901da2250b84d092989a0f9e44d2ef41deb09aa3ad28e691a40a + languageName: node + linkType: hard + "path-extra@npm:^1.0.2": version: 1.0.3 resolution: "path-extra@npm:1.0.3" @@ -48849,7 +48735,7 @@ __metadata: languageName: node linkType: hard -"picocolors@npm:^1.0.0, picocolors@npm:^1.1.0, picocolors@npm:^1.1.1": +"picocolors@npm:1.1.1, picocolors@npm:^1.0.0, picocolors@npm:^1.1.0, picocolors@npm:^1.1.1": version: 1.1.1 resolution: "picocolors@npm:1.1.1" checksum: 10c0/e2e3e8170ab9d7c7421969adaa7e1b31434f789afb9b3f115f6b96d91945041ac3ceb02e9ec6fe6510ff036bcc0bf91e69a1772edc0b707e12b19c0f2d6bcf58 @@ -49083,15 +48969,6 @@ __metadata: languageName: node linkType: hard -"polished@npm:^4.2.2": - version: 4.3.1 - resolution: "polished@npm:4.3.1" - dependencies: - "@babel/runtime": "npm:^7.17.8" - checksum: 10c0/45480d4c7281a134281cef092f6ecc202a868475ff66a390fee6e9261386e16f3047b4de46a2f2e1cf7fb7aa8f52d30b4ed631a1e3bcd6f303ca31161d4f07fe - languageName: node - linkType: hard - "pony-cause@npm:^1.1.1": version: 1.1.1 resolution: "pony-cause@npm:1.1.1" @@ -50740,21 +50617,21 @@ __metadata: languageName: node linkType: hard -"react-docgen@npm:^7.0.0": - version: 7.0.3 - resolution: "react-docgen@npm:7.0.3" +"react-docgen@npm:^8.0.0": + version: 8.0.2 + resolution: "react-docgen@npm:8.0.2" dependencies: - "@babel/core": "npm:^7.18.9" - "@babel/traverse": "npm:^7.18.9" - "@babel/types": "npm:^7.18.9" - "@types/babel__core": "npm:^7.18.0" - "@types/babel__traverse": "npm:^7.18.0" + "@babel/core": "npm:^7.28.0" + "@babel/traverse": "npm:^7.28.0" + "@babel/types": "npm:^7.28.2" + "@types/babel__core": "npm:^7.20.5" + "@types/babel__traverse": "npm:^7.20.7" "@types/doctrine": "npm:^0.0.9" "@types/resolve": "npm:^1.20.2" doctrine: "npm:^3.0.0" resolve: "npm:^1.22.1" strip-indent: "npm:^4.0.0" - checksum: 10c0/74622750e60b287d2897a6887a2bd88303fadd84540247e162e9e970430864ae7b49152de043233d873a0aa7cffa406e5cd8fc1e8e2c277b8da73198b570f16b + checksum: 10c0/25e2dd48957c52749cf44bdcf172f3b47d42d8bb8c51000bceb136ff018cbe0a78610d04f12d8bbb882df0d86884e8d05b1d7a1cc39586de356ef5bb9fceab71 languageName: node linkType: hard @@ -50770,17 +50647,6 @@ __metadata: languageName: node linkType: hard -"react-dom@npm:^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0": - version: 19.1.1 - resolution: "react-dom@npm:19.1.1" - dependencies: - scheduler: "npm:^0.26.0" - peerDependencies: - react: ^19.1.1 - checksum: 10c0/8c91198510521299c56e4e8d5e3a4508b2734fb5e52f29eeac33811de64e76fe586ad32c32182e2e84e070d98df67125da346c3360013357228172dbcd20bcdd - languageName: node - linkType: hard - "react-draggable@npm:^4.0.3, react-draggable@npm:^4.4.6": version: 4.5.0 resolution: "react-draggable@npm:4.5.0" @@ -51306,13 +51172,6 @@ __metadata: languageName: node linkType: hard -"react@npm:^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0": - version: 19.1.1 - resolution: "react@npm:19.1.1" - checksum: 10c0/8c9769a2dfd02e603af6445058325e6c8a24b47b185d0e461f66a6454765ddcaecb3f0a90184836c68bb509f3c38248359edbc42f0d07c23eb500a5c30c87b4e - languageName: node - linkType: hard - "react@npm:^19.1.0": version: 19.2.0 resolution: "react@npm:19.2.0" @@ -54673,48 +54532,50 @@ __metadata: languageName: node linkType: hard -"storybook-addon-mock-date@npm:^0.6.0": - version: 0.6.0 - resolution: "storybook-addon-mock-date@npm:0.6.0" - checksum: 10c0/24c48d65a04eb1931e39495fe42692cea428db4b66874db86ab4e9e6f99cd0bba56cd25c56c9a56b42e53a14edfd38f79bcdef4c1f0e2758096528863d32d408 - languageName: node - linkType: hard - -"storybook-addon-pseudo-states@npm:^2.1.2": - version: 2.2.1 - resolution: "storybook-addon-pseudo-states@npm:2.2.1" - peerDependencies: - "@storybook/components": ^7.4.6 - "@storybook/core-events": ^7.4.6 - "@storybook/manager-api": ^7.4.6 - "@storybook/preview-api": ^7.4.6 - "@storybook/theming": ^7.4.6 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - react: - optional: true - react-dom: - optional: true - checksum: 10c0/bf7e81276328ad0e1209f48bba76b8dc009a63fc65d98104b540a5f91be784a95364460e9f16cd351e32ec49282b8f7cf2734c100a3f44ba0ab2345f98ab31d6 - languageName: node - linkType: hard - -"storybook@npm:8.6.15": - version: 8.6.15 - resolution: "storybook@npm:8.6.15" +"storybook-addon-mock-date@npm:1.0.0": + version: 1.0.0 + resolution: "storybook-addon-mock-date@npm:1.0.0" dependencies: - "@storybook/core": "npm:8.6.15" + util: "npm:^0.12.5" + peerDependencies: + storybook: ^9.0.0 + checksum: 10c0/7e80bede080ead1de5aca023e66c21b8c9d4aa2ba422fd804ec8c26740922479a2c67bdb38a10a820f8976ad600c12e08da20c627fa9503ca9b094dc6cb6cb3f + languageName: node + linkType: hard + +"storybook-addon-pseudo-states@npm:^9.1.17": + version: 9.1.17 + resolution: "storybook-addon-pseudo-states@npm:9.1.17" + peerDependencies: + storybook: ^9.1.17 + checksum: 10c0/62fa1fb94a14cdef8514b055f584dde0233a63f1422d5aec2d20d7cad2d9982caa38d6407fd808c1466f873b6aa381f8149ce0192ad064119a4ec5546f6b3261 + languageName: node + linkType: hard + +"storybook@npm:^9.1.17": + version: 9.1.17 + resolution: "storybook@npm:9.1.17" + dependencies: + "@storybook/global": "npm:^5.0.0" + "@testing-library/jest-dom": "npm:^6.6.3" + "@testing-library/user-event": "npm:^14.6.1" + "@vitest/expect": "npm:3.2.4" + "@vitest/mocker": "npm:3.2.4" + "@vitest/spy": "npm:3.2.4" + better-opn: "npm:^3.0.2" + esbuild: "npm:^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0" + esbuild-register: "npm:^3.5.0" + recast: "npm:^0.23.5" + semver: "npm:^7.6.2" + ws: "npm:^8.18.0" peerDependencies: prettier: ^2 || ^3 peerDependenciesMeta: prettier: optional: true bin: - getstorybook: ./bin/index.cjs - sb: ./bin/index.cjs storybook: ./bin/index.cjs - checksum: 10c0/8d54dd81811fa3299c85667c55f7627e6f1010e86ab56babcd853987dedab4e711a2b0ee4ff545b091030a92e12becd84e4e2e7b99cd8a1c1d30697757af2545 + checksum: 10c0/8590eaff08714565f19658b16676005960cada649fd0809171d8e8917f38592c52a795a68662c92abb90aae9d5794f0e60f08a2523d9d2524f7f826af0ddd66e languageName: node linkType: hard @@ -55977,7 +55838,7 @@ __metadata: languageName: node linkType: hard -"tiny-invariant@npm:^1.0.0, tiny-invariant@npm:^1.0.6, tiny-invariant@npm:^1.3.1, tiny-invariant@npm:^1.3.3": +"tiny-invariant@npm:^1.0.0, tiny-invariant@npm:^1.0.6, tiny-invariant@npm:^1.3.3": version: 1.3.3 resolution: "tiny-invariant@npm:1.3.3" checksum: 10c0/65af4a07324b591a059b35269cd696aba21bef2107f29b9f5894d83cc143159a204b299553435b03874ebb5b94d019afa8b8eff241c8a4cfee95872c2e1c1c4a @@ -56018,17 +55879,17 @@ __metadata: languageName: node linkType: hard -"tinyrainbow@npm:^1.2.0": - version: 1.2.0 - resolution: "tinyrainbow@npm:1.2.0" - checksum: 10c0/7f78a4b997e5ba0f5ecb75e7ed786f30bab9063716e7dff24dd84013fb338802e43d176cb21ed12480561f5649a82184cf31efb296601a29d38145b1cdb4c192 +"tinyrainbow@npm:^2.0.0": + version: 2.0.0 + resolution: "tinyrainbow@npm:2.0.0" + checksum: 10c0/c83c52bef4e0ae7fb8ec6a722f70b5b6fa8d8be1c85792e829f56c0e1be94ab70b293c032dc5048d4d37cfe678f1f5babb04bdc65fd123098800148ca989184f languageName: node linkType: hard -"tinyspy@npm:^3.0.0": - version: 3.0.2 - resolution: "tinyspy@npm:3.0.2" - checksum: 10c0/55ffad24e346622b59292e097c2ee30a63919d5acb7ceca87fc0d1c223090089890587b426e20054733f97a58f20af2c349fb7cc193697203868ab7ba00bcea0 +"tinyspy@npm:^4.0.3": + version: 4.0.4 + resolution: "tinyspy@npm:4.0.4" + checksum: 10c0/a8020fc17799251e06a8398dcc352601d2770aa91c556b9531ecd7a12581161fd1c14e81cbdaff0c1306c93bfdde8ff6d1c1a3f9bbe6d91604f0fd4e01e2f1eb languageName: node linkType: hard @@ -56360,7 +56221,7 @@ __metadata: languageName: node linkType: hard -"ts-api-utils@npm:^2.2.0": +"ts-api-utils@npm:^2.2.0, ts-api-utils@npm:^2.4.0": version: 2.4.0 resolution: "ts-api-utils@npm:2.4.0" peerDependencies: @@ -57268,20 +57129,11 @@ __metadata: "@radix-ui/colors": "npm:^3.0.0" "@sentry/types": "npm:^8" "@sniptt/guards": "npm:^0.2.0" - "@storybook/addon-actions": "npm:8.6.15" - "@storybook/addon-coverage": "npm:^1.0.0" - "@storybook/addon-essentials": "npm:8.6.15" - "@storybook/addon-interactions": "npm:8.6.15" - "@storybook/addon-links": "npm:8.6.15" - "@storybook/blocks": "npm:8.6.15" - "@storybook/core-server": "npm:8.6.15" + "@storybook/addon-coverage": "npm:^2.0.0" + "@storybook/addon-links": "npm:^9.1.17" "@storybook/icons": "npm:^1.2.9" - "@storybook/preview-api": "npm:8.6.15" - "@storybook/react": "npm:8.6.15" - "@storybook/react-vite": "npm:8.6.15" - "@storybook/test": "npm:8.6.15" + "@storybook/react-vite": "npm:^9.1.17" "@storybook/test-runner": "npm:^0.23.0" - "@storybook/types": "npm:8.6.15" "@stylistic/eslint-plugin": "npm:^1.5.0" "@swc-node/register": "npm:1.8.0" "@swc/cli": "npm:^0.3.12" @@ -57289,6 +57141,7 @@ __metadata: "@swc/helpers": "npm:~0.5.2" "@swc/jest": "npm:^0.2.39" "@tabler/icons-react": "npm:^3.31.0" + "@testing-library/dom": "npm:^10.4.0" "@testing-library/jest-dom": "npm:^6.6.3" "@testing-library/react": "npm:^16.3.0" "@types/addressparser": "npm:^1.0.3" @@ -57354,7 +57207,7 @@ __metadata: eslint-plugin-react-hooks: "npm:^5.0.0" eslint-plugin-react-refresh: "npm:^0.4.4" eslint-plugin-simple-import-sort: "npm:^10.0.0" - eslint-plugin-storybook: "npm:^0.9.0" + eslint-plugin-storybook: "npm:^9.1.17" eslint-plugin-unicorn: "npm:^56.0.1" eslint-plugin-unused-imports: "npm:^3.0.0" file-type: "npm:16.5.4" @@ -57406,10 +57259,10 @@ __metadata: semver: "npm:^7.5.4" slash: "npm:^5.1.0" source-map-support: "npm:^0.5.20" - storybook: "npm:8.6.15" + storybook: "npm:^9.1.17" storybook-addon-cookie: "npm:^3.2.0" - storybook-addon-mock-date: "npm:^0.6.0" - storybook-addon-pseudo-states: "npm:^2.1.2" + storybook-addon-mock-date: "npm:1.0.0" + storybook-addon-pseudo-states: "npm:^9.1.17" supertest: "npm:^6.1.3" temporal-polyfill: "npm:^0.3.0" ts-jest: "npm:^29.1.1" @@ -57956,6 +57809,13 @@ __metadata: languageName: node linkType: hard +"unicorn-magic@npm:^0.1.0": + version: 0.1.0 + resolution: "unicorn-magic@npm:0.1.0" + checksum: 10c0/e4ed0de05b0a05e735c7d8a2930881e5efcfc3ec897204d5d33e7e6247f4c31eac92e383a15d9a6bccb7319b4271ee4bea946e211bf14951fec6ff2cbbb66a92 + languageName: node + linkType: hard + "unicorn-magic@npm:^0.3.0": version: 0.3.0 resolution: "unicorn-magic@npm:0.3.0" @@ -59164,15 +59024,19 @@ __metadata: languageName: node linkType: hard -"vite-plugin-istanbul@npm:^3.0.1": - version: 3.0.4 - resolution: "vite-plugin-istanbul@npm:3.0.4" +"vite-plugin-istanbul@npm:^6.0.2": + version: 6.0.2 + resolution: "vite-plugin-istanbul@npm:6.0.2" dependencies: "@istanbuljs/load-nyc-config": "npm:^1.1.0" - istanbul-lib-instrument: "npm:^5.1.0" + espree: "npm:^10.0.1" + istanbul-lib-instrument: "npm:^6.0.2" picocolors: "npm:^1.0.0" + source-map: "npm:^0.7.4" test-exclude: "npm:^6.0.0" - checksum: 10c0/1bf7c51ba10bb68c89cc1abbd7e7c1be985c60ae8af8fa5f1fc8586a76b01fef2b44615934395970d7e9951d2e170141dff094366b9e8f6c28aadda21e39dbea + peerDependencies: + vite: ">=4 <=6" + checksum: 10c0/120d84cd44af99ec7cce298768d8504ad4481439322d3ec724d7e8313e87fc5b214cbeaf827ba94fa145bb2367067b6f1d65c7387e30cced43658df9f7fc5fe8 languageName: node linkType: hard @@ -60028,7 +59892,7 @@ __metadata: languageName: node linkType: hard -"ws@npm:^8.12.0, ws@npm:^8.13.0, ws@npm:^8.18.0, ws@npm:^8.2.3": +"ws@npm:^8.12.0, ws@npm:^8.13.0, ws@npm:^8.18.0": version: 8.18.2 resolution: "ws@npm:8.18.2" peerDependencies: @@ -60489,6 +60353,13 @@ __metadata: languageName: node linkType: hard +"yocto-queue@npm:^1.0.0": + version: 1.2.2 + resolution: "yocto-queue@npm:1.2.2" + checksum: 10c0/36d4793e9cf7060f9da543baf67c55e354f4862c8d3d34de1a1b1d7c382d44171315cc54abf84d8900b8113d742b830108a1434f4898fb244f9b7e8426d4b8f5 + languageName: node + linkType: hard + "yoctocolors-cjs@npm:^2.1.2": version: 2.1.2 resolution: "yoctocolors-cjs@npm:2.1.2"