From 4640c24ce73940d204111880b8bb367d690e32d1 Mon Sep 17 00:00:00 2001 From: Po Chun Chiu <57251712+EiffelFly@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:29:00 +0800 Subject: [PATCH] chore: use prettier to sort import order (#1261) Because - Import order should be retained in a fixed order to increase readability This commit - use prettier to sort import order --- .../helpers/actions/pipeline.ts | 5 +- .../helpers/first-time-login.test.ts | 1 + apps/console/integration-test/main.test.ts | 3 +- .../integration-test/pages/onboarding.page.ts | 2 +- .../pages/pipeline-builder.page.ts | 1 + .../tests/should-change-component-id.test.ts | 7 +- ...should-edit-create-start-end-field.test.ts | 5 +- .../tests/should-unmarshal.test.ts | 5 +- .../(providers)/amplitude-client-provider.tsx | 2 + .../src/app/(providers)/root-provider.tsx | 7 +- apps/console/src/app/404/page.tsx | 1 + apps/console/src/app/404/render.tsx | 3 +- .../src/app/[entity]/dashboard/page.tsx | 3 +- .../[entity]/dashboard/pipeline/[id]/page.tsx | 3 +- .../dashboard/pipeline/[id]/render.tsx | 7 +- .../src/app/[entity]/dashboard/render.tsx | 7 +- .../app/[entity]/models/[id]/[tab]/page.tsx | 10 +- .../app/[entity]/models/[id]/[tab]/render.tsx | 7 +- .../src/app/[entity]/models/create/page.tsx | 3 +- .../src/app/[entity]/models/create/render.tsx | 3 +- apps/console/src/app/[entity]/models/page.tsx | 3 +- .../src/app/[entity]/models/render.tsx | 7 +- apps/console/src/app/[entity]/page.tsx | 6 +- .../[entity]/pipelines/[id]/editor/page.tsx | 1 + .../[entity]/pipelines/[id]/editor/render.tsx | 3 +- .../src/app/[entity]/pipelines/[id]/page.tsx | 6 +- .../app/[entity]/pipelines/[id]/render.tsx | 3 +- .../src/app/[entity]/pipelines/page.tsx | 1 + .../src/app/[entity]/pipelines/render.tsx | 3 +- apps/console/src/app/[entity]/render.tsx | 3 +- .../console/src/app/api/access-token/route.ts | 3 +- apps/console/src/app/api/auth/logout/route.ts | 3 +- apps/console/src/app/layout.tsx | 3 + apps/console/src/app/login/render.tsx | 13 +- apps/console/src/app/logout/page.tsx | 3 +- apps/console/src/app/onboarding/page.tsx | 1 + apps/console/src/app/onboarding/render.tsx | 3 +- apps/console/src/app/render.tsx | 2 +- .../console/src/app/settings/account/page.tsx | 3 +- .../src/app/settings/account/render.tsx | 5 +- .../src/app/settings/api-tokens/page.tsx | 3 +- .../src/app/settings/api-tokens/render.tsx | 5 +- .../console/src/app/settings/profile/page.tsx | 3 +- .../src/app/settings/profile/rendex.tsx | 5 +- .../console/src/app/settings/secrets/page.tsx | 3 +- .../src/app/settings/secrets/render.tsx | 3 +- apps/console/src/app/sitemap.ts | 3 +- apps/console/src/components/AuthPageBase.tsx | 3 +- .../src/components/ChangePasswordForm.tsx | 7 +- apps/console/src/components/LoginForm.tsx | 7 +- .../src/components/ModelReadmeMarkdown.tsx | 4 +- .../console/src/components/OnboardingForm.tsx | 18 +- .../src/lib/use-app-access-token/client.ts | 6 +- .../src/lib/use-app-access-token/server.ts | 5 +- apps/console/src/lib/useAppTrackToken.ts | 5 +- apps/console/src/pages/api/get-user-cookie.ts | 3 +- apps/console/src/pages/api/set-user-cookie.ts | 9 +- apps/instill-form-playground/package.json | 3 +- .../src/pages/_app.tsx | 1 + .../src/pages/_document.tsx | 2 +- .../src/pages/index.tsx | 4 +- packages/design-system/setupTests.ts | 3 +- packages/design-system/src/index.ts | 2 +- .../new-ui/Breadcrumb/Breadcrumb.stories.tsx | 1 + .../src/new-ui/Breadcrumb/Breadcrumb.tsx | 1 + .../src/new-ui/Button/Button.stories.tsx | 5 +- .../src/new-ui/Button/Button.tsx | 5 +- .../src/new-ui/Checkbox/Checkbox.stories.tsx | 1 + .../src/new-ui/Checkbox/Checkbox.tsx | 1 + .../Collapsible/Collapsible.stories.tsx | 3 +- .../src/new-ui/Color/Color.stories.tsx | 1 + .../src/new-ui/Combobox/Combobox.stories.tsx | 7 +- .../src/new-ui/Combobox/Combobox.tsx | 5 +- .../src/new-ui/Command/Command.stories.tsx | 3 +- .../src/new-ui/Command/Command.tsx | 2 +- .../ComplicateIconBase/ComplicateIconBase.tsx | 1 + .../ComplicateIcons.stories.tsx | 1 + .../src/new-ui/ComplicateIcons/Doc.tsx | 1 + .../src/new-ui/ComplicateIcons/Drag.tsx | 1 + .../src/new-ui/ComplicateIcons/GitHub.tsx | 1 + .../ComplicateIcons/ImageClassification.tsx | 1 + .../new-ui/ComplicateIcons/ImageToImage.tsx | 1 + .../new-ui/ComplicateIcons/ImageToText.tsx | 1 + .../ComplicateIcons/InstanceSegmentation.tsx | 1 + .../ComplicateIcons/KeypointDetection.tsx | 1 + .../src/new-ui/ComplicateIcons/Number.tsx | 1 + .../ComplicateIcons/ObjectDetection.tsx | 1 + .../OpticalCharacterRecognition.tsx | 1 + .../ComplicateIcons/SemanticSegmentation.tsx | 1 + .../new-ui/ComplicateIcons/TextEmbedding.tsx | 1 + .../new-ui/ComplicateIcons/TextGeneration.tsx | 1 + .../new-ui/ComplicateIcons/TextToImage.tsx | 1 + .../src/new-ui/ComplicateIcons/ToggleLeft.tsx | 1 + .../src/new-ui/ComplicateIcons/index.ts | 4 +- .../new-ui/DataTable/DataTable.stories.tsx | 9 +- .../src/new-ui/DataTable/DataTable.tsx | 13 +- .../new-ui/DataTable/DataTablePagination.tsx | 3 +- .../src/new-ui/Dialog/Dialog.stories.tsx | 1 + .../src/new-ui/Dialog/Dialog.tsx | 3 +- .../DropdownMenu/DropdownMenu.stories.tsx | 5 +- .../src/new-ui/DropdownMenu/DropdownMenu.tsx | 4 +- packages/design-system/src/new-ui/Field.tsx | 2 +- .../src/new-ui/Form/Form.stories.tsx | 6 +- .../design-system/src/new-ui/Form/Form.tsx | 4 +- .../src/new-ui/Icons/Activity.tsx | 1 + .../src/new-ui/Icons/AlertCircle.tsx | 1 + .../src/new-ui/Icons/AlertTriangle.tsx | 1 + .../src/new-ui/Icons/AlighLeft.tsx | 1 + .../src/new-ui/Icons/ArrowDown.tsx | 1 + .../src/new-ui/Icons/ArrowLeft.tsx | 1 + .../src/new-ui/Icons/ArrowNarrowLeft.tsx | 1 + .../src/new-ui/Icons/ArrowNarrowRight.tsx | 1 + .../src/new-ui/Icons/ArrowRight.tsx | 1 + .../src/new-ui/Icons/ArrowUp.tsx | 1 + .../src/new-ui/Icons/ArrowUpRight.tsx | 1 + .../src/new-ui/Icons/BarChartSquare02.tsx | 1 + .../src/new-ui/Icons/BookOpen02.tsx | 1 + .../design-system/src/new-ui/Icons/Box.tsx | 1 + .../src/new-ui/Icons/BracketSlash.tsx | 1 + .../src/new-ui/Icons/Building05.tsx | 1 + .../src/new-ui/Icons/CardRefresh.tsx | 1 + .../design-system/src/new-ui/Icons/Check.tsx | 1 + .../src/new-ui/Icons/CheckCircle.tsx | 1 + .../src/new-ui/Icons/ChevronDown.tsx | 1 + .../src/new-ui/Icons/ChevronDownDouble.tsx | 1 + .../src/new-ui/Icons/ChevronLeft.tsx | 1 + .../src/new-ui/Icons/ChevronLeftDouble.tsx | 1 + .../src/new-ui/Icons/ChevronRight.tsx | 1 + .../src/new-ui/Icons/ChevronRightDouble.tsx | 1 + .../new-ui/Icons/ChevronSelectorVertical.tsx | 1 + .../src/new-ui/Icons/ChevronUp.tsx | 1 + .../src/new-ui/Icons/ChevronUpDouble.tsx | 1 + .../design-system/src/new-ui/Icons/Chip01.tsx | 1 + .../design-system/src/new-ui/Icons/Chip02.tsx | 1 + .../design-system/src/new-ui/Icons/Circle.tsx | 1 + .../src/new-ui/Icons/ClockRewind.tsx | 1 + .../src/new-ui/Icons/CodeBrowser.tsx | 1 + .../src/new-ui/Icons/CodeSnippet01.tsx | 1 + .../src/new-ui/Icons/CodeSnippet02.tsx | 1 + .../src/new-ui/Icons/CodeSquare02.tsx | 1 + .../src/new-ui/Icons/Coins01.tsx | 1 + .../src/new-ui/Icons/CoinsStacked01.tsx | 1 + .../design-system/src/new-ui/Icons/Copy06.tsx | 1 + .../design-system/src/new-ui/Icons/Copy07.tsx | 1 + .../design-system/src/new-ui/Icons/Cube01.tsx | 1 + .../src/new-ui/Icons/CubeOutline.tsx | 1 + .../src/new-ui/Icons/CurrencyDollar.tsx | 1 + .../src/new-ui/Icons/Database01.tsx | 1 + .../src/new-ui/Icons/DotsHorizontal.tsx | 1 + .../src/new-ui/Icons/DotsVertical.tsx | 1 + .../src/new-ui/Icons/DownloadCloud01.tsx | 1 + .../design-system/src/new-ui/Icons/Edit03.tsx | 1 + .../design-system/src/new-ui/Icons/Edit05.tsx | 1 + .../design-system/src/new-ui/Icons/File02.tsx | 1 + .../design-system/src/new-ui/Icons/File04.tsx | 1 + .../design-system/src/new-ui/Icons/File05.tsx | 1 + .../design-system/src/new-ui/Icons/File06.tsx | 1 + .../src/new-ui/Icons/FileMinus01.tsx | 1 + .../src/new-ui/Icons/FilePlus01.tsx | 1 + .../src/new-ui/Icons/FilePlus02.tsx | 1 + .../src/new-ui/Icons/FilterLines.tsx | 1 + .../design-system/src/new-ui/Icons/Gear01.tsx | 1 + .../src/new-ui/Icons/Globe01.tsx | 1 + .../src/new-ui/Icons/HelpCircle.tsx | 1 + .../src/new-ui/Icons/IconBase/IconBase.tsx | 1 + .../src/new-ui/Icons/Icons.stories.tsx | 1 + .../src/new-ui/Icons/Image01.tsx | 1 + .../src/new-ui/Icons/ImagePlus.tsx | 1 + .../src/new-ui/Icons/InfoCircle.tsx | 1 + .../src/new-ui/Icons/InfoSquare.tsx | 1 + .../src/new-ui/Icons/IntersectSquare.tsx | 1 + .../src/new-ui/Icons/LayersTwo01.tsx | 1 + .../src/new-ui/Icons/Lightning01.tsx | 1 + .../design-system/src/new-ui/Icons/Link01.tsx | 1 + .../design-system/src/new-ui/Icons/Lock03.tsx | 1 + .../src/new-ui/Icons/LockUnlocked03.tsx | 1 + .../src/new-ui/Icons/Logout01.tsx | 1 + .../design-system/src/new-ui/Icons/Mail01.tsx | 1 + .../src/new-ui/Icons/MasterCard.tsx | 1 + .../design-system/src/new-ui/Icons/Menu01.tsx | 1 + .../src/new-ui/Icons/MessageChatSquare.tsx | 1 + .../src/new-ui/Icons/MessageSmileSquare.tsx | 1 + .../design-system/src/new-ui/Icons/Minus.tsx | 1 + .../design-system/src/new-ui/Icons/Model.tsx | 1 + .../src/new-ui/Icons/MultipleVideo.tsx | 1 + .../src/new-ui/Icons/NewModel.tsx | 1 + .../src/new-ui/Icons/PauseCircle.tsx | 1 + .../src/new-ui/Icons/Pipeline.tsx | 1 + .../design-system/src/new-ui/Icons/Play.tsx | 1 + .../src/new-ui/Icons/PlayCircle.tsx | 1 + .../design-system/src/new-ui/Icons/Plus.tsx | 1 + .../src/new-ui/Icons/Recording02.tsx | 1 + .../src/new-ui/Icons/Recording03.tsx | 1 + .../src/new-ui/Icons/Recording04.tsx | 1 + .../src/new-ui/Icons/Recording05.tsx | 1 + .../src/new-ui/Icons/ReferenceIconCheck.tsx | 1 + .../src/new-ui/Icons/ReferenceIconX.tsx | 1 + .../src/new-ui/Icons/RefreshCw05.tsx | 1 + .../src/new-ui/Icons/Repeat04.tsx | 1 + .../src/new-ui/Icons/Rocket01.tsx | 1 + .../design-system/src/new-ui/Icons/Save01.tsx | 1 + .../src/new-ui/Icons/Scales02.tsx | 1 + .../src/new-ui/Icons/SearchLg.tsx | 1 + .../src/new-ui/Icons/SearchSm.tsx | 1 + .../src/new-ui/Icons/Settings02.tsx | 1 + .../src/new-ui/Icons/Share07.tsx | 1 + .../src/new-ui/Icons/Sliders01.tsx | 1 + .../src/new-ui/Icons/SortLinesDown.tsx | 1 + .../src/new-ui/Icons/SortLinesUp.tsx | 1 + .../src/new-ui/Icons/Speaker01.tsx | 1 + .../src/new-ui/Icons/SpeechRecognition.tsx | 1 + .../design-system/src/new-ui/Icons/Stop.tsx | 1 + .../design-system/src/new-ui/Icons/Tag01.tsx | 1 + .../design-system/src/new-ui/Icons/TextA.tsx | 1 + .../src/new-ui/Icons/TextGenerationChat.tsx | 1 + .../design-system/src/new-ui/Icons/Tool01.tsx | 1 + .../src/new-ui/Icons/Trash01.tsx | 1 + .../src/new-ui/Icons/Trash03.tsx | 1 + .../design-system/src/new-ui/Icons/Type01.tsx | 1 + .../design-system/src/new-ui/Icons/Type02.tsx | 1 + .../src/new-ui/Icons/TypePlus.tsx | 1 + .../design-system/src/new-ui/Icons/Update.tsx | 1 + .../src/new-ui/Icons/Upload01.tsx | 1 + .../design-system/src/new-ui/Icons/User01.tsx | 1 + .../design-system/src/new-ui/Icons/User02.tsx | 1 + .../src/new-ui/Icons/UserPlus01.tsx | 1 + .../design-system/src/new-ui/Icons/Video.tsx | 1 + .../src/new-ui/Icons/VideoRecorder.tsx | 1 + .../design-system/src/new-ui/Icons/Visa.tsx | 1 + .../new-ui/Icons/VisualQuestionAnswering.tsx | 1 + packages/design-system/src/new-ui/Icons/X.tsx | 1 + .../design-system/src/new-ui/Icons/index.ts | 70 +- .../src/new-ui/Input/Input.stories.tsx | 3 +- .../design-system/src/new-ui/Input/Input.tsx | 2 +- .../src/new-ui/Label/Label.stories.tsx | 1 + .../design-system/src/new-ui/Label/Label.tsx | 2 +- .../new-ui/LinkButton/LinkButton.stories.tsx | 1 + .../src/new-ui/LinkButton/LinkButton.tsx | 5 +- .../src/new-ui/Logos/ATFExpand.tsx | 1 + .../src/new-ui/Logos/ATFSquare.tsx | 1 + .../src/new-ui/Logos/Anthropic.tsx | 1 + .../src/new-ui/Logos/AssemblyAI.tsx | 1 + .../design-system/src/new-ui/Logos/Cohere.tsx | 1 + .../src/new-ui/Logos/HuggingFace.tsx | 1 + .../src/new-ui/Logos/InstillCloud.tsx | 1 + .../src/new-ui/Logos/InstillSquare.tsx | 1 + .../src/new-ui/Logos/Logo.stories.tsx | 1 + .../src/new-ui/Logos/LogoBase/LogoBase.tsx | 1 + .../src/new-ui/Logos/MDLExpand.tsx | 1 + .../src/new-ui/Logos/MDLSquare.tsx | 1 + .../design-system/src/new-ui/Logos/Milvus.tsx | 1 + .../design-system/src/new-ui/Logos/Number.tsx | 1 + .../design-system/src/new-ui/Logos/OpenAI.tsx | 1 + .../src/new-ui/Logos/Pinecode.tsx | 1 + .../src/new-ui/Logos/StabilityAI.tsx | 1 + .../src/new-ui/Logos/TwitterDark.tsx | 1 + .../src/new-ui/Logos/TwitterLight.tsx | 1 + .../src/new-ui/Logos/VDPExpand.tsx | 1 + .../src/new-ui/Logos/VDPSquare.tsx | 1 + .../design-system/src/new-ui/Logos/index.ts | 4 +- .../src/new-ui/Menubar/Menubar.stories.tsx | 1 + .../src/new-ui/Menubar/Menubar.tsx | 3 +- .../MultiSelect/MultiSelect.stories.tsx | 3 +- .../src/new-ui/MultiSelect/MultiSelect.tsx | 7 +- .../src/new-ui/Pagination/Pagination.tsx | 3 +- .../ParagraphWithHTML.stories.tsx | 1 + .../ParagraphWithHTML/ParagraphWithHTML.tsx | 1 + .../src/new-ui/Popover/Popover.stories.tsx | 1 + .../src/new-ui/Progress/Progress.stories.tsx | 1 + .../src/new-ui/Progress/Progress.tsx | 2 +- .../new-ui/ScrollArea/ScrollArea.stories.tsx | 5 +- .../src/new-ui/ScrollArea/ScrollArea.tsx | 2 +- .../src/new-ui/Select/Select.stories.tsx | 5 +- .../src/new-ui/Select/Select.tsx | 3 +- .../new-ui/Separator/Separator.stories.tsx | 1 + .../src/new-ui/Separator/Separator.tsx | 2 +- .../src/new-ui/Skeleton/Skelton.stories.tsx | 1 + .../src/new-ui/Switch/Switch.stories.tsx | 9 +- .../src/new-ui/Switch/Switch.tsx | 2 +- .../src/new-ui/Table/Table.stories.tsx | 3 +- .../design-system/src/new-ui/Table/Table.tsx | 2 +- .../src/new-ui/Tabs/Tabs.stories.tsx | 1 + .../design-system/src/new-ui/Tabs/Tabs.tsx | 1 - .../src/new-ui/Tag/Tag.stories.tsx | 5 +- packages/design-system/src/new-ui/Tag/Tag.tsx | 5 +- .../new-ui/TagButton/TagButton.stories.tsx | 3 +- .../src/new-ui/TagButton/TagButton.tsx | 5 +- .../src/new-ui/Textarea/Textarea.stories.tsx | 3 +- .../src/new-ui/Textarea/Textarea.tsx | 2 +- .../src/new-ui/Toast/Toast.stories.tsx | 9 +- .../design-system/src/new-ui/Toast/Toast.tsx | 7 +- .../src/new-ui/Toast/Toaster.tsx | 2 +- .../src/new-ui/Toast/use-toast.tsx | 1 - .../ToggleGroup/ToggleGroup.stories.tsx | 1 + .../src/new-ui/ToggleGroup/ToggleGroup.tsx | 2 +- .../src/new-ui/Tooltip/Tooltip.stories.tsx | 1 + .../src/new-ui/Tooltip/Tooltip.tsx | 2 +- .../new-ui/radio-group/RadioGroup.stories.tsx | 3 +- .../src/new-ui/radio-group/RadioGroup.tsx | 2 +- .../src/new-ui/tab-menu/TabMenu.stories.tsx | 5 +- .../src/new-ui/tab-menu/TabMenu.tsx | 3 +- .../ui-helpers/getModelDefinitionToolkit.tsx | 1 + .../src/ui-helpers/getPipelineModeToolkit.tsx | 1 + .../AccordionBase/AccordionBase.stories.tsx | 3 +- .../Accordion/AccordionBase/AccordionBase.tsx | 1 + .../BasicAccordion/BasicAccordion.stories.tsx | 3 +- .../BgIconAccordion.stories.tsx | 3 +- .../design-system/src/ui/Accordion/index.ts | 4 +- .../Buttons/ButtonBase/ButtonBase.stories.tsx | 1 + .../src/ui/Buttons/ButtonBase/ButtonBase.tsx | 1 + .../CollapseSidebarButton.stories.tsx | 1 + .../CollapseSidebarButton.tsx | 1 + .../OutlineButton/OutlineButton.stories.tsx | 1 + .../Buttons/OutlineButton/OutlineButton.tsx | 1 + .../SolidButton/SolidButton.stories.tsx | 1 + .../ui/Buttons/SolidButton/SolidButton.tsx | 1 + .../Buttons/TextButton/TextButton.stories.tsx | 1 + .../src/ui/Buttons/TextButton/TextButton.tsx | 1 + .../design-system/src/ui/Buttons/index.ts | 8 +- .../Icons/AirbyteIcon/AirbyteIcon.stories.tsx | 1 + .../src/ui/Icons/AirbyteIcon/AirbyteIcon.tsx | 1 + .../ArrowDownIcon/ArrowDownIcon.stories.tsx | 1 + .../ArrowDownIcon/ArrowDownIcon.tsx | 1 + .../ArrowIconBase/ArrowIconBase.stories.tsx | 1 + .../ArrowIconBase/ArrowIconBase.tsx | 1 + .../ArrowLeftIcon/ArrowLeftIcon.stories.tsx | 1 + .../ArrowLeftIcon/ArrowLeftIcon.tsx | 1 + .../ArrowRightIcon/ArrowRightIcon.stories.tsx | 1 + .../ArrowRightIcon/ArrowRightIcon.tsx | 1 + .../ArrowUpIcon/ArrowUpIcon.stories.tsx | 1 + .../ArrowIcons/ArrowUpIcon/ArrowUpIcon.tsx | 1 + .../RotatableArrowIcon.stories.tsx | 1 + .../RotatableArrowIcon/RotatableArrowIcon.tsx | 1 + .../src/ui/Icons/ArrowIcons/index.ts | 12 +- .../Icons/ArtiVcIcon/ArtiVcIcon.stories.tsx | 1 + .../src/ui/Icons/ArtiVcIcon/ArtiVcIcon.tsx | 1 + .../AsyncArrowsIcon.stories.tsx | 1 + .../Icons/AsyncArrowsIcon/AsyncArrowsIcon.tsx | 1 + .../ui/Icons/AsyncIcon/AsyncIcon.stories.tsx | 1 + .../src/ui/Icons/AsyncIcon/AsyncIcon.tsx | 1 + .../Icons/AwsRdsIcon/AwsRdsIcon.stories.tsx | 1 + .../src/ui/Icons/AwsRdsIcon/AwsRdsIcon.tsx | 1 + .../ui/Icons/AwsS3Icon/AwsS3Icon.stories.tsx | 1 + .../src/ui/Icons/AwsS3Icon/AwsS3Icon.tsx | 1 + .../BarChartIcon/BarChartIcon.stories.tsx | 1 + .../ui/Icons/BarChartIcon/BarChartIcon.tsx | 1 + .../BigQueryIcon/BigQueryIcon.stories.tsx | 1 + .../ui/Icons/BigQueryIcon/BigQueryIcon.tsx | 1 + .../ui/Icons/CheckIcon/CheckIcon.stories.tsx | 1 + .../src/ui/Icons/CheckIcon/CheckIcon.tsx | 1 + .../Icons/ClientIcon/ClientIcon.stories.tsx | 1 + .../src/ui/Icons/ClientIcon/ClientIcon.tsx | 1 + .../CollapseLeftIcon.stories.tsx | 1 + .../CollapseLeftIcon/CollapseLeftIcon.tsx | 1 + .../CollapseRightIcon.stories.tsx | 1 + .../CollapseRightIcon/CollapseRightIcon.tsx | 1 + .../ui/Icons/CopyIcon/CopyIcon.stories.tsx | 1 + .../src/ui/Icons/CopyIcon/CopyIcon.tsx | 1 + .../ui/Icons/CrossIcon/CrossIcon.stories.tsx | 1 + .../src/ui/Icons/CrossIcon/CrossIcon.tsx | 1 + .../DataDestinationIcon.stories.tsx | 1 + .../DataDestinationIcon.tsx | 1 + .../DataSourceIcon/DataSourceIcon.stories.tsx | 1 + .../Icons/DataSourceIcon/DataSourceIcon.tsx | 1 + .../Icons/DiscordIcon/DiscordIcon.stories.tsx | 1 + .../src/ui/Icons/DiscordIcon/DiscordIcon.tsx | 1 + .../src/ui/Icons/DocIcon/DocIcon.stories.tsx | 1 + .../src/ui/Icons/DocIcon/DocIcon.tsx | 1 + .../DoubleArrowIcon.stories.tsx | 1 + .../Icons/DoubleArrowIcon/DoubleArrowIcon.tsx | 1 + .../Icons/EyeOffIcon/EyeOffIcon.stories.tsx | 1 + .../src/ui/Icons/EyeOffIcon/EyeOffIcon.tsx | 1 + .../ui/Icons/EyeOnIcon/EyeOnIcon.stories.tsx | 1 + .../src/ui/Icons/EyeOnIcon/EyeOnIcon.tsx | 1 + .../FacebookIcon/FacebookIcon.stories.tsx | 1 + .../ui/Icons/FacebookIcon/FacebookIcon.tsx | 1 + .../Icons/FilterIcon/FilterIcon.stories.tsx | 1 + .../src/ui/Icons/FilterIcon/FilterIcon.tsx | 1 + .../FolderInUseIcon.stories.tsx | 1 + .../Icons/FolderInUseIcon/FolderInUseIcon.tsx | 1 + .../FolderPlusIcon/FolderPlusIcon.stories.tsx | 1 + .../Icons/FolderPlusIcon/FolderPlusIcon.tsx | 1 + .../src/ui/Icons/GcsIcon/GcsIcon.stories.tsx | 1 + .../src/ui/Icons/GcsIcon/GcsIcon.tsx | 1 + .../ui/Icons/GearIcon/GearIcon.stories.tsx | 1 + .../src/ui/Icons/GearIcon/GearIcon.tsx | 1 + .../GitBranchIcon/GitBranchIcon.stories.tsx | 1 + .../ui/Icons/GitBranchIcon/GitBranchIcon.tsx | 1 + .../GitCommitIcon/GitCommitIcon.stories.tsx | 1 + .../ui/Icons/GitCommitIcon/GitCommitIcon.tsx | 1 + .../Icons/GitHubIcon/GitHubIcon.stories.tsx | 1 + .../src/ui/Icons/GitHubIcon/GitHubIcon.tsx | 1 + .../Icons/GitTagIcon/GitTagIcon.stories.tsx | 1 + .../src/ui/Icons/GitTagIcon/GitTagIcon.tsx | 1 + .../GoogleDriveIcon.stories.tsx | 1 + .../Icons/GoogleDriveIcon/GoogleDriveIcon.tsx | 1 + .../Icons/GoogleIcon/GoogleIcon.stories.tsx | 1 + .../src/ui/Icons/GoogleIcon/GoogleIcon.tsx | 1 + .../GoogleSheetIcon.stories.tsx | 1 + .../Icons/GoogleSheetIcon/GoogleSheetIcon.tsx | 1 + .../ui/Icons/GrpcIcon/GrpcIcon.stories.tsx | 1 + .../src/ui/Icons/GrpcIcon/GrpcIcon.tsx | 1 + .../ui/Icons/HttpIcon/HttpIcon.stories.tsx | 1 + .../src/ui/Icons/HttpIcon/HttpIcon.tsx | 1 + .../HuggingFaceIcon.stories.tsx | 1 + .../Icons/HuggingFaceIcon/HuggingFaceIcon.tsx | 1 + .../src/ui/Icons/IdIcon/IdIcon.stories.tsx | 1 + .../src/ui/Icons/IdIcon/IdIcon.tsx | 1 + .../ImageClassificationIcon.stories.tsx | 1 + .../ImageClassificationIcon.tsx | 1 + .../ImageToImageIcon.stories.tsx | 1 + .../ImageToImageIcon/ImageToImageIcon.tsx | 1 + .../ImageToImageIcon.stories.tsx | 1 + .../Icons/ImageToTextIcon/ImageToTextIcon.tsx | 1 + .../InstanceSegmentationIcon.stories.tsx | 1 + .../InstanceSegmentationIcon.tsx | 1 + .../src/ui/Icons/IotIcon/IotIcon.stories.tsx | 1 + .../src/ui/Icons/IotIcon/IotIcon.tsx | 1 + .../KeypointDetectionIcon.stories.tsx | 1 + .../KeypointDetectionIcon.tsx | 1 + .../LinkedInIcon/LinkedInIcon.stories.tsx | 1 + .../ui/Icons/LinkedInIcon/LinkedInIcon.tsx | 1 + .../LocalUploadIcon.stories.tsx | 1 + .../Icons/LocalUploadIcon/LocalUploadIcon.tsx | 1 + .../Icons/MediumIcon/MediumIcon.stories.tsx | 1 + .../src/ui/Icons/MediumIcon/MediumIcon.tsx | 1 + .../ui/Icons/MenuIcon/MenuIcon.stories.tsx | 1 + .../src/ui/Icons/MenuIcon/MenuIcon.tsx | 1 + .../MetabaseIcon/MetabaseIcon.stories.tsx | 1 + .../ui/Icons/MetabaseIcon/MetabaseIcon.tsx | 1 + .../ui/Icons/MinusIcon/MinusIcon.stories.tsx | 1 + .../src/ui/Icons/MinusIcon/MinusIcon.tsx | 1 + .../ui/Icons/ModelIcon/ModelIcon.stories.tsx | 1 + .../src/ui/Icons/ModelIcon/ModelIcon.tsx | 1 + .../ModelInstanceIcon.stories.tsx | 1 + .../ModelInstanceIcon/ModelInstanceIcon.tsx | 1 + .../MongoDbAtalasIcon.stories.tsx | 1 + .../MongoDbAtalasIcon/MongoDbAtalasIcon.tsx | 1 + .../Icons/MongoDbIcon/MongoDbIcon.stories.tsx | 1 + .../src/ui/Icons/MongoDbIcon/MongoDbIcon.tsx | 1 + .../ui/Icons/MySqlIcon/MySqlIcon.stories.tsx | 1 + .../src/ui/Icons/MySqlIcon/MySqlIcon.tsx | 1 + .../ObjectDetectionIcon.stories.tsx | 1 + .../ObjectDetectionIcon.tsx | 1 + .../ui/Icons/OnnxIcon/OnnxIcon.stories.tsx | 1 + .../src/ui/Icons/OnnxIcon/OnnxIcon.tsx | 1 + ...pticalCharacterRecognitionIcon.stories.tsx | 1 + .../OpticalCharacterRecognitionIcon.tsx | 1 + .../src/ui/Icons/PenIcon/PenIcon.stories.tsx | 1 + .../src/ui/Icons/PenIcon/PenIcon.tsx | 1 + .../src/ui/Icons/PinIcon/PinIcon.stories.tsx | 1 + .../src/ui/Icons/PinIcon/PinIcon.tsx | 1 + .../PipelineIcon/PipelineIcon.stories.tsx | 1 + .../ui/Icons/PipelineIcon/PipelineIcon.tsx | 1 + .../PixelCheckIcon/PixelCheckIcon.stories.tsx | 1 + .../Icons/PixelCheckIcon/PixelCheckIcon.tsx | 1 + .../PixelCrossIcon/PixelCrossIcon.stories.tsx | 1 + .../Icons/PixelCrossIcon/PixelCrossIcon.tsx | 1 + .../ui/Icons/PlusIcon/PlusIcon.stories.tsx | 1 + .../src/ui/Icons/PlusIcon/PlusIcon.tsx | 1 + .../PostgreSqlIcon/PostgreSqlIcon.stories.tsx | 1 + .../Icons/PostgreSqlIcon/PostgreSqlIcon.tsx | 1 + .../Icons/PyTorchIcon/PyTorchIcon.stories.tsx | 1 + .../src/ui/Icons/PyTorchIcon/PyTorchIcon.tsx | 1 + .../Icons/PythonIcon/PythonIcon.stories.tsx | 1 + .../src/ui/Icons/PythonIcon/PythonIcon.tsx | 1 + .../ui/Icons/RedshiftIcon/RedShiftIcon.tsx | 1 + .../RedshiftIcon/RedshiftIcon.stories.tsx | 1 + .../Icons/RefreshIcon/RefreshIcon.stories.tsx | 1 + .../src/ui/Icons/RefreshIcon/RefreshIcon.tsx | 1 + .../ResourceIcon/ResourceIcon.stories.tsx | 1 + .../ui/Icons/ResourceIcon/ResourceIcon.tsx | 1 + .../SalesforceIcon/SalesforceIcon.stories.tsx | 1 + .../Icons/SalesforceIcon/SalesforceIcon.tsx | 1 + .../SemanticSegmentationIcon.stories.tsx | 1 + .../SemanticSegmentationIcon.tsx | 1 + .../Icons/ShopifyIcon/ShopifyIcon.stories.tsx | 1 + .../src/ui/Icons/ShopifyIcon/ShopifyIcon.tsx | 1 + .../ui/Icons/SlackIcon/SlackIcon.stories.tsx | 1 + .../src/ui/Icons/SlackIcon/SlackIcon.tsx | 1 + .../SnowflakeIcon/SnowflakeIcon.stories.tsx | 1 + .../ui/Icons/SnowflakeIcon/SnowflakeIcon.tsx | 1 + .../SquarePlusIcon/SquarePlusIcon.stories.tsx | 1 + .../Icons/SquarePlusIcon/SquarePlusIcon.tsx | 1 + .../StatusErrorIcon.stories.tsx | 1 + .../Icons/StatusErrorIcon/StatusErrorIcon.tsx | 1 + .../StatusOffIcon/StatusOffIcon.stories.tsx | 1 + .../ui/Icons/StatusOffIcon/StatusOffIcon.tsx | 1 + .../StatusOnIcon/StatusOnIcon.stories.tsx | 1 + .../ui/Icons/StatusOnIcon/StatusOnIcon.tsx | 1 + .../SyncArrowsIcon/SyncArrowsIcon.stories.tsx | 1 + .../Icons/SyncArrowsIcon/SyncArrowsIcon.tsx | 1 + .../ui/Icons/SyncIcon/SyncIcon.stories.tsx | 1 + .../src/ui/Icons/SyncIcon/SyncIcon.tsx | 1 + .../TensorFlowIcon/TensorFlowIcon.stories.tsx | 1 + .../Icons/TensorFlowIcon/TensorFlowIcon.tsx | 1 + .../TextGenerationIcon.stories.tsx | 1 + .../TextGenerationIcon/TextGenerationIcon.tsx | 1 + .../TextToImageIcon.stories.tsx | 1 + .../Icons/TextToImageIcon/TextToImageIcon.tsx | 1 + .../Icons/ToggleIcon/ToggleIcon.stories.tsx | 1 + .../src/ui/Icons/ToggleIcon/ToggleIcon.tsx | 1 + .../Icons/ToolboxIcon/ToolboxIcon.stories.tsx | 1 + .../src/ui/Icons/ToolboxIcon/ToolboxIcon.tsx | 1 + .../Icons/TwitterIcon/TwitterIcon.stories.tsx | 1 + .../src/ui/Icons/TwitterIcon/TwitterIcon.tsx | 1 + .../Icons/VersionIcon/VersionIcon.stories.tsx | 1 + .../src/ui/Icons/VersionIcon/VersionIcon.tsx | 1 + .../VisualDataOperatorIcon.stories.tsx | 1 + .../VisualDataOperatorIcon.tsx | 1 + .../src/ui/Icons/XIcon/XIcon.stories.tsx | 1 + .../src/ui/Icons/XIcon/XIcon.tsx | 1 + packages/design-system/src/ui/Icons/index.ts | 317 +++--- .../BasicInputDescription.stories.tsx | 1 + .../BasicInputDescription.tsx | 1 + .../InputDescriptionBase.stories.tsx | 1 + .../BasicInputLabel.stories.tsx | 1 + .../BasicInputLabel/BasicInputLabel.tsx | 1 + .../InputLabelBase/InputLabelBase.stories.tsx | 1 + .../InputLabelBase/InputLabelBase.tsx | 1 + .../TextAreaInputLabel.stories.tsx | 1 + .../TextAreaInputLabel/TextAreaInputLabel.tsx | 1 + .../design-system/src/ui/InputLabels/index.ts | 4 +- .../src/ui/Logo/Logo.stories.tsx | 1 + .../design-system/src/ui/Logo/Logo.test.tsx | 3 +- .../src/ui/Logo/ModelLogo.stories.tsx | 1 + .../src/ui/Logo/VdpLogo.stories.tsx | 1 + packages/design-system/src/ui/ModalRoot.tsx | 2 +- .../DarkBgSquareProgress.stories.tsx | 1 + .../DarkBgSquareProgress.tsx | 1 + .../NoBgSquareProgress.stories.tsx | 1 + .../NoBgSquareProgress/NoBgSquareProgress.tsx | 1 + .../SquareProgressBase.stories.tsx | 1 + .../SquareProgressBase/SquareProgressBase.tsx | 2 + .../WhiteBgSquareProgress.stories.tsx | 1 + .../WhiteBgSquareProgress.tsx | 1 + .../design-system/src/ui/Progress/index.ts | 8 +- .../BasicProgressMessageBox.stories.tsx | 1 + .../BasicProgressMessageBox.tsx | 1 + .../ProgressMessageBoxBase.stories.tsx | 1 + .../ProgressMessageBoxBase.tsx | 5 +- .../src/ui/ProgressMessageBoxs/index.ts | 2 +- .../BasicSingleSelect.stories.tsx | 5 +- .../BasicSingleSelect/BasicSingleSelect.tsx | 1 + .../SingleSelectBase/SelectItem.tsx | 7 +- .../SingleSelectBase.stories.tsx | 7 +- .../SingleSelectBase/SingleSelectBase.tsx | 4 +- .../BasicTextArea/BasicTextArea.stories.tsx | 3 +- .../TextAreas/BasicTextArea/BasicTextArea.tsx | 1 + .../TextAreaBase/TextAreaBase.stories.tsx | 1 + .../TextAreas/TextAreaBase/TextAreaBase.tsx | 3 +- .../BasicTextField/BasicTextField.stories.tsx | 3 +- .../BasicTextField/BasicTextField.tsx | 1 + .../ProtectedBasicTextField.stories.tsx | 3 +- .../ProtectedBasicTextField.tsx | 1 + .../TextFieldBase/TextFieldBase.stories.tsx | 1 + .../TextFieldBase/TextFieldBase.tsx | 5 +- .../BasicToggleField.stories.tsx | 3 +- .../BasicToggleField/BasicToggleField.tsx | 1 + .../StatefulToggleField.stories.tsx | 3 +- .../StatefulToggleField.tsx | 1 + .../ToggleFieldBase.stories.tsx | 3 +- .../ToggleFieldBase/ToggleFieldBase.tsx | 3 +- .../src/ui/ToggleFields/index.ts | 4 +- .../BasicUploadFileField.stories.tsx | 1 + .../BasicUploadFileField.tsx | 1 + .../UploadFileFieldBase.stories.tsx | 1 + .../UploadFileFieldBase.tsx | 5 +- .../src/ui/UploadFileFields/index.ts | 2 +- packages/design-system/src/ui/index.ts | 8 +- packages/design-system/vitest.config.ts | 2 +- .../design-tokens/src/buildTailwindPreset.ts | 3 +- packages/design-tokens/vitest.config.ts | 2 +- packages/prettier-config-cortex/index.js | 21 +- packages/prettier-config-cortex/package.json | 3 + packages/toolkit/setupTests.ts | 2 + .../src/components/AutoresizeInput.tsx | 1 + .../src/components/ClonePipelineDialog.tsx | 19 +- packages/toolkit/src/components/CodeBlock.tsx | 1 + .../src/components/CopyToClipboardButton.tsx | 1 + .../src/components/DeleteResourceModal.tsx | 13 +- .../components/EmptyImageInputPlaceholder.tsx | 1 + .../toolkit/src/components/EntitySelector.tsx | 3 +- .../GeneralDeleteResourceDialog.tsx | 4 +- .../src/components/InlineTextSeparator.tsx | 1 + .../NamespaceAvatarWithFallback.tsx | 3 +- packages/toolkit/src/components/PageBase.tsx | 2 +- packages/toolkit/src/components/PageTitle.tsx | 1 + .../src/components/RealTimeTextEditor.tsx | 8 +- .../src/components/ReferenceHintTag.tsx | 3 +- .../toolkit/src/components/StateLabel.tsx | 1 + .../src/components/TableLoadingProgress.tsx | 1 + .../src/components/TablePlaceholderBase.tsx | 3 +- .../components/UploadImageFieldWithCrop.tsx | 8 +- .../src/components/UserProfileCard.tsx | 8 +- .../components/WarnUnsavedChangesDialog.tsx | 2 + .../BreadcrumbWithLink.tsx | 5 +- .../src/components/card-model/CardModel.tsx | 12 +- .../src/components/card-model/Menu.tsx | 4 +- .../src/components/card-model/Stats.tsx | 1 + .../src/components/card-model/Tags.tsx | 4 +- .../src/components/card-pipeline/Body.tsx | 6 +- .../src/components/card-pipeline/Footer.tsx | 10 +- .../src/components/card-pipeline/Head.tsx | 10 +- .../src/components/card-pipeline/Menu.tsx | 4 +- .../src/components/cells/GeneralStateCell.tsx | 4 +- .../src/components/cells/TableCell.tsx | 1 + .../src/components/top-bar/AppTopbar.tsx | 11 +- .../components/top-bar/CETopbarDropdown.tsx | 6 +- .../top-bar/CloudTopbarDropdown.tsx | 8 +- .../components/top-bar/NamespaceSwitch.tsx | 9 +- .../src/components/top-bar/NavLinks.tsx | 10 +- .../components/top-bar/RemainingCredit.tsx | 4 +- .../src/components/top-bar/TopbarDropdown.tsx | 1 + .../src/components/top-bar/TopbarLinks.tsx | 8 +- .../components/top-bar/TopbarMiscLinks.tsx | 6 +- .../getConditionFormPath.test.ts | 5 +- .../getFieldsPaths/getFieldPaths.test.ts | 5 +- .../pickSelectedConditionMap.test.ts | 5 +- .../pickSelectedConditionMap.ts | 2 +- ...formAirbyteSchemaToAirbyteFormTree.test.ts | 5 +- ...transformAirbyteSchemaToAirbyteFormTree.ts | 2 +- .../helpers/transformAirbyteSchemaToYup.ts | 5 +- .../airbytes/hooks/useAirbyteFieldValues.ts | 3 +- .../lib/airbytes/hooks/useAirbyteFormTree.ts | 5 +- .../hooks/useAirbyteSelectedConditionMap.ts | 1 + .../lib/airbytes/hooks/useBuildAirbyteYup.ts | 3 +- packages/toolkit/src/lib/airbytes/types.ts | 5 +- .../src/lib/amplitude/AmplitudeContext.ts | 3 +- packages/toolkit/src/lib/amplitude/helper.ts | 3 +- .../src/lib/amplitude/useSendAmplitudeData.ts | 1 + .../src/lib/dashboard/getPipeLineOptions.ts | 1 + packages/toolkit/src/lib/dot/index.test.ts | 3 +- .../useCreateUpdateDeleteResourceGuard.tsx | 3 +- ...PipelineBuilderUnsavedChangesNavigation.ts | 5 +- .../lib/hook/useNavigateBackAfterLogin.tsx | 1 + packages/toolkit/src/lib/hook/useRefSize.ts | 1 + .../toolkit/src/lib/hook/useWindowSize.ts | 3 +- packages/toolkit/src/lib/index.ts | 6 +- .../connector/useConnectorDefinition.ts | 3 +- .../connector/useConnectorDefinitions.ts | 3 +- .../react-query-service/hub/useHubStats.ts | 1 + .../metric/usePipelineTriggerRecords.ts | 3 +- .../metric/useTriggeredPipelines.ts | 3 +- .../metric/useTriggeredPipelinesChart.ts | 3 +- .../mgmt/use-api-tokens/server.ts | 3 +- .../mgmt/use-authenticated-user/client.ts | 1 + .../mgmt/use-authenticated-user/server.ts | 1 + .../mgmt/use-namespace-type/client.ts | 1 + .../mgmt/use-namespace-type/server.ts | 1 + .../mgmt/use-user/client.ts | 1 + .../mgmt/use-user/server.ts | 1 + .../react-query-service/mgmt/useApiToken.ts | 3 +- .../react-query-service/mgmt/useApiTokens.ts | 5 +- .../mgmt/useAuthenticatedUserSubscription.ts | 3 +- .../mgmt/useCreateApiToken.ts | 8 +- .../mgmt/useDeleteApiToken.ts | 4 +- .../mgmt/useMgmtDefinition.ts | 1 + .../mgmt/useNamespacesRemainingCredit.ts | 3 +- .../mgmt/useRemainingCredit.ts | 1 + .../mgmt/useUpdateAuthenticatedUser.ts | 5 +- .../lib/react-query-service/mgmt/useUser.tsx | 3 +- .../lib/react-query-service/mgmt/useUsers.ts | 3 +- .../model/onSuccessAfterModelMutation.ts | 3 +- .../model/use-user-model/client.ts | 1 + .../model/use-user-model/server.ts | 1 + .../model/useCreateUserModel.ts | 3 +- .../model/useDeleteUserModel.ts | 3 +- .../model/useDeployUserModel.ts | 1 + .../model/useInfiniteModelVersions.ts | 5 +- .../model/useInfiniteModels.ts | 5 +- .../model/useInfiniteUserModels.ts | 5 +- .../model/useLastModelTriggerResult.ts | 3 +- .../model/useModelDefinition.ts | 3 +- .../model/useModelDefinitions.ts | 3 +- .../model/useModelRegions.ts | 1 + .../model/useTriggerUserModel.tsx | 7 +- .../model/useTriggerUserModelAsync.tsx | 7 +- .../model/useUndeployUserModel.ts | 1 + .../model/useUpdateUserModel.ts | 3 +- .../model/useUserModel.tsx | 1 + .../model/useUserModels.ts | 5 +- .../model/useWatchUserModels.ts | 4 +- .../use-organization-memberships/client.ts | 1 + .../use-organization-memberships/server.ts | 1 + .../organization/use-organization/client.ts | 1 + .../organization/use-organization/server.ts | 1 + .../organization/useCreateOrganization.ts | 2 +- .../organization/useDeleteOrganization.ts | 3 +- .../useDeleteOrganizationMembership.ts | 3 +- .../organization/useDeleteUserMembership.ts | 3 +- .../organization/useOrganizationMembership.ts | 1 + .../useOrganizationSubscription.ts | 1 + .../organization/useOrganizations.ts | 5 +- .../organization/useUpdateOrganization.ts | 3 +- .../useUpdateOrganizationMembership.ts | 3 +- .../organization/useUpdateUserMembership.ts | 3 +- .../organization/useUserMembership.ts | 1 + .../organization/useUserMemberships.ts | 1 + .../use-user-pipeline-releases/server.ts | 2 +- .../pipeline/use-user-pipeline/client.ts | 1 + .../pipeline/use-user-pipeline/server.ts | 1 + .../pipeline/use-user-pipelines/client.ts | 4 +- .../pipeline/use-user-pipelines/server.ts | 4 +- .../pipeline/use-user-secret/client.ts | 1 + .../pipeline/use-user-secret/server.ts | 1 + .../pipeline/use-user-secrets/client.ts | 1 + .../pipeline/use-user-secrets/server.ts | 3 +- .../pipeline/useCloneNamespacePipeline.ts | 7 +- .../pipeline/useCreateUserPipeline.ts | 8 +- .../pipeline/useCreateUserPipelineRelease.ts | 11 +- .../pipeline/useCreateUserSecret.ts | 10 +- .../pipeline/useDeleteUserPipeline.ts | 4 +- .../pipeline/useDeleteUserPipelineRelease.ts | 5 +- .../pipeline/useDeleteUserSecret.ts | 3 +- .../pipeline/useInfinitePipelines.ts | 7 +- .../pipeline/useInfiniteUserPipelines.ts | 7 +- .../pipeline/useOperatorDefinition.ts | 3 +- .../pipeline/useOperatorDefinitions.ts | 3 +- .../pipeline/usePipelines.ts | 5 +- .../pipeline/useRenameUserPipeline.tsx | 8 +- .../pipeline/useRestoreUserPipelineRelease.ts | 13 +- .../useSetDefaultUserPipelineRelease.ts | 13 +- .../pipeline/useTriggerAsyncUserPipeline.tsx | 3 +- .../useTriggerAsyncUserPipelineRelease.tsx | 7 +- .../pipeline/useTriggerUserPipeline.tsx | 7 +- .../useTriggerUserPipelineRelease.tsx | 7 +- .../pipeline/useUpdateUserPipeline.ts | 8 +- .../pipeline/useUpdateUserPipelineRelease.ts | 15 +- .../pipeline/useUserPipelineRelease.ts | 3 +- .../pipeline/useUserPipelines.ts | 5 +- .../pipeline/useWatchUserPipelineRelease.ts | 3 +- .../pipeline/useWatchUserPipelineReleases.ts | 3 +- .../lib/store/useConfigureModelFormStore.ts | 7 +- .../lib/store/useConfigureSourceFormStore.ts | 5 +- .../lib/store/useCreateResourceFormStore.ts | 5 +- packages/toolkit/src/lib/test/utils.tsx | 3 +- .../toolkit/src/lib/tip-tap/extensions.ts | 22 +- packages/toolkit/src/lib/tip-tap/markdown.ts | 27 +- packages/toolkit/src/lib/toastInstillError.ts | 4 +- packages/toolkit/src/lib/type/general.ts | 2 +- .../useControllableState.tsx | 1 + .../common/FieldDescriptionTooltip.tsx | 1 + .../components/common/VideoPreview.tsx | 2 +- .../component-output/CopyButton.tsx | 1 + .../components/component-output/FieldRoot.tsx | 3 +- .../component-output/MDTextViewer.tsx | 6 +- .../component-output/ObjectField.tsx | 3 +- .../component-output/ObjectsField.tsx | 3 +- .../components/regular/BooleanField.tsx | 2 + .../regular/CollapsibleFormGroup.tsx | 2 + .../regular/CredentialTextField.tsx | 4 +- .../components/regular/ImageField.tsx | 6 +- .../components/regular/ImagesField.tsx | 10 +- .../regular/OneOfConditionField.tsx | 6 +- .../components/regular/SingleSelectField.tsx | 6 +- .../components/regular/TextAreaField.tsx | 2 + .../components/regular/TextField.tsx | 2 + .../smart-hint/SmartHintInfoCard.tsx | 8 +- .../components/smart-hint/SmartHintList.tsx | 10 +- .../components/smart-hint/TextArea.tsx | 21 +- .../components/smart-hint/TextField.tsx | 21 +- .../smart-hint/onClickSmartHint.tsx | 3 +- .../components/smart-hint/onInputChange.tsx | 5 +- .../components/smart-hint/onInputKeydown.tsx | 3 +- .../smart-hint/useFilteredHints.tsx | 8 +- .../useValidateReferenceAndTemplate.tsx | 2 +- .../AudioField.tsx | 6 +- .../AudioListItem.tsx | 2 + .../AudiosField.tsx | 6 +- .../BooleanField.tsx | 7 +- .../trigger-request-form-fields/FieldHead.tsx | 4 +- .../trigger-request-form-fields/FileField.tsx | 4 +- .../FilesField.tsx | 4 +- .../ImageField.tsx | 4 +- .../ImagesField.tsx | 4 +- .../LongTextField.tsx | 14 +- .../NumberField.tsx | 3 +- .../NumbersField.tsx | 6 +- .../ObjectField.tsx | 3 +- .../trigger-request-form-fields/TextField.tsx | 3 +- .../TextareaField.tsx | 3 +- .../TextsField.tsx | 6 +- .../UploadFileInput.tsx | 1 + .../VideoField.tsx | 6 +- .../VideosField.tsx | 6 +- ...mponentOutputFieldsFromInstillFormTree.tsx | 7 +- .../pickPipelineTriggerRequestFormFields.tsx | 3 +- .../pickRegularFieldsFromInstillFormTree.tsx | 11 +- .../pick/pickSelectedConditionMap.test.ts | 3 +- .../recursivelyResetFormData.test.ts | 3 +- ...sformInstillFormTreeToDefaultValue.test.ts | 3 +- ...FormTreeToInitialSelectedCondition.test.ts | 3 +- ...ansformInstillJSONSchemaToFormTree.test.ts | 3 +- .../transformInstillJSONSchemaToFormTree.ts | 5 +- .../transformInstillJSONSchemaToZod.test.ts | 5 +- .../transformInstillJSONSchemaToZod.ts | 7 +- ...nsformPipelineTriggerRequestFieldsToZod.ts | 1 + .../toolkit/src/lib/use-instill-form/types.ts | 3 +- .../useComponentOutputFields.tsx | 7 +- .../use-instill-form/useInstillForm.test.tsx | 8 +- .../lib/use-instill-form/useInstillForm.tsx | 21 +- .../useInstillSelectedConditionMap.tsx | 4 +- .../usePipelineTriggerRequestForm.tsx | 6 +- .../src/lib/use-instill-store/generalSlice.ts | 3 +- .../use-instill-store/pipelineBuilderSlice.ts | 12 +- .../use-instill-store/recentlyUsedSlice.ts | 1 + .../lib/use-instill-store/smartHintSlice.ts | 3 +- .../src/lib/use-instill-store/types.ts | 7 +- .../lib/use-instill-store/useInstillStore.ts | 9 +- .../fields/GroupByFormatField.tsx | 3 +- .../fields/ListField.tsx | 1 + .../useOutputReferenceHintsFields.tsx | 3 +- .../pickSmartHintsFromAcceptFormats.test.ts | 3 +- .../use-smart-hint/pickSmartHintsFromNodes.ts | 16 +- .../transformFormTreeToSmartHints.test.ts | 3 +- ...neTriggerRequestFieldsToSmartHints.test.ts | 5 +- packages/toolkit/src/lib/useRouteInfo.ts | 3 +- packages/toolkit/src/lib/useUserNamespaces.ts | 3 +- .../helper/createInstillAxiosClient.ts | 1 + .../lib/vdp-sdk/helper/getQueryString.test.ts | 3 +- .../lib/vdp-sdk/metric/pipeline/queries.ts | 2 +- .../toolkit/src/lib/vdp-sdk/model/actions.ts | 4 +- .../toolkit/src/lib/vdp-sdk/model/queries.ts | 8 +- .../toolkit/src/lib/vdp-sdk/model/types.ts | 3 +- .../src/lib/vdp-sdk/operation/queries.ts | 4 +- .../src/lib/vdp-sdk/organization/mutations.ts | 6 +- .../toolkit/src/lib/vdp-sdk/pipeline/types.ts | 5 +- packages/toolkit/src/lib/vdp-sdk/types.ts | 6 +- packages/toolkit/src/server/utility/cookie.ts | 2 +- .../getHumanReadableStringFromTime.test.ts | 3 +- .../src/server/utility/removeObjKey.test.ts | 3 +- .../view/airbyte/AirbyteDestinationFields.tsx | 5 +- .../view/airbyte/OneOfConditionSection.tsx | 19 +- .../view/airbyte/useBuildAirbyteFields.tsx | 24 +- .../DashboardPipelineDetailsPageMainView.tsx | 11 +- .../DashboardPipelineListPageMainView.tsx | 18 +- .../dashboard/DashboardPipelinesTable.tsx | 5 +- .../src/view/dashboard/FilterByDay.tsx | 5 +- .../PipelineTriggerCountsLineChart.tsx | 4 +- .../dashboard/PipelineTriggersSummary.tsx | 4 +- .../view/dashboard/PipelineTriggersTable.tsx | 8 +- .../src/view/dashboard/RemainingTriggers.tsx | 6 +- .../dashboard/TriggersTablePlaceholder.tsx | 1 + .../src/view/model/CreateModelForm.tsx | 49 +- .../view/model/ModelHubListPageMainView.tsx | 14 +- .../model/ModelHubSettingPageMainView.tsx | 7 +- .../src/view/model/ModelTablePlaceholder.tsx | 6 +- .../toolkit/src/view/model/ModelsList.tsx | 8 +- .../src/view/model/ModelsListPagination.tsx | 6 +- .../toolkit/src/view/model/ModelsTable.tsx | 8 +- .../src/view/model/view-model/ModelApi.tsx | 6 +- .../model/view-model/ModelContentViewer.tsx | 4 +- .../src/view/model/view-model/ModelHead.tsx | 16 +- .../view/model/view-model/ModelOverview.tsx | 24 +- .../src/view/model/view-model/ModelReadme.tsx | 13 +- .../view-model/ModelSettingsEditForm.tsx | 26 +- .../view/model/view-model/ModelVersions.tsx | 12 +- .../toolkit/src/view/not-found/LinkBlock.tsx | 5 +- .../src/view/not-found/NotFoundView.tsx | 4 +- .../src/view/pipeline-builder/Flow.tsx | 7 +- .../PipelineBuilderMainView.tsx | 28 +- .../components/BackToLatestVersionTopBar.tsx | 4 +- .../pipeline-builder/components/BottomBar.tsx | 9 +- .../ComponentOutputReferenceHints.tsx | 1 + .../components/ComponentOutputs.tsx | 1 + .../components/CustomEdge.tsx | 3 +- .../components/CustomHandle.tsx | 3 +- .../components/PipelineBuilderCanvas.tsx | 9 +- .../components/PipelineToolkitDialog.tsx | 4 +- .../components/ReadOnlyPipelineBuilder.tsx | 8 +- .../components/RemainingCreditCTA.tsx | 4 +- .../components/VerticalSortableWrapper.tsx | 3 +- .../dialogs/publish-pipeline-dialog/Head.tsx | 1 + .../publish-pipeline-dialog/Metadata.tsx | 6 +- .../PublishPipelineDialog.tsx | 9 +- .../publish-pipeline-dialog/ReadmeEditor.tsx | 10 +- .../select-component-dialog/AISection.tsx | 5 +- .../ApplicationSection.tsx | 5 +- .../select-component-dialog/DataSection.tsx | 5 +- .../GenericSection.tsx | 1 + .../OpoeratorSection.tsx | 5 +- .../select-component-dialog/Section.tsx | 3 +- .../SelectComponentDialog.tsx | 8 +- .../dialogs/share-pipeline-dialog/Head.tsx | 1 + .../SharePipelineDialog.tsx | 3 +- .../share-pipeline-dialog/TabPublish.tsx | 2 + .../share-pipeline-dialog/TabShare.tsx | 14 +- .../UnpublishPipelineDialog.tsx | 4 +- .../iterator-editor/IteratorEditor.tsx | 7 +- .../iterator-input/IterateElementHint.tsx | 8 +- .../iterator-input/IteratorInput.tsx | 10 +- .../iterator-output/AddOutputButton.tsx | 6 +- .../iterator-output/DeleteOutputButton.tsx | 1 + .../iterator-output/IteratorOutput.tsx | 7 +- .../iterator-output/OutputKeyField.tsx | 4 +- .../iterator-output/OutputValueInput.tsx | 6 +- .../iterator-output/OutputValueSelect.tsx | 10 +- .../components/nodes/EmptyNode.tsx | 3 +- .../nodes/common/NodeDropdownMenu.tsx | 2 + .../components/nodes/common/NodeHead.tsx | 2 +- .../components/nodes/common/NodeIDEditor.tsx | 13 +- .../nodes/common/NodeSortableFieldWrapper.tsx | 7 +- .../components/nodes/common/NodeWrapper.tsx | 12 +- .../node-bottom-bar/NodeBottomBarContext.tsx | 1 + .../node-bottom-bar/NodeBottomBarMenu.tsx | 8 +- .../node-bottom-bar/NodeBottomBarOutput.tsx | 4 +- .../node-bottom-bar/NodeBottomBarSchema.tsx | 3 +- .../nodes/control-panel/ControlPanel.tsx | 1 + .../nodes/control-panel/NodeControlPanel.tsx | 12 +- .../VariableResponseNodeControlPanel.tsx | 4 +- .../general-node/DataConnectorFreeForm.tsx | 9 +- .../nodes/general-node/GeneralNode.tsx | 20 +- .../iterator-node/IteratorComponentLable.tsx | 5 +- .../nodes/iterator-node/IteratorNode.tsx | 8 +- .../nodes/response-node/ResponseNode.tsx | 24 +- .../response-node/ResponseNodeFreeForm.tsx | 3 +- .../response-node/UserDefinedFieldItem.tsx | 4 +- .../nodes/variable-node/VariableNode.tsx | 40 +- .../variable-node/VariableNodeFields.tsx | 2 + .../variable-node/VariableNodeFreeForm.tsx | 7 +- .../variable-node/VariableNodeTypeSelect.tsx | 6 +- .../components/release-menu/Description.tsx | 1 + .../components/release-menu/ReleaseMenu.tsx | 18 +- .../components/release-menu/SemverSelect.tsx | 5 +- ...pelineGeneralComponentFormOnRightPanel.tsx | 10 +- .../components/right-panel/RightPanel.tsx | 4 +- .../top-control-menu/PipelineName.tsx | 12 +- .../components/top-control-menu/Release.tsx | 2 + .../components/top-control-menu/Run.tsx | 6 +- .../components/top-control-menu/Save.tsx | 4 +- .../components/top-control-menu/Share.tsx | 10 +- .../components/top-control-menu/Toolkit.tsx | 12 +- .../top-control-menu/TopControlMenu.tsx | 20 +- .../lib/checkIsValidPosition.test.ts | 3 +- .../pipeline-builder/lib/checkNodeType.tsx | 1 + ...eCompleteNodesUnderEditingIteratorMode.tsx | 3 +- .../lib/composeEdgesFromNodes.test.ts | 5 +- .../lib/composeEdgesFromNodes.ts | 19 +- .../composePipelineComponentMapFromNodes.ts | 5 +- ...omposePipelineMetadataMapFromNodes.test.ts | 3 +- .../composePipelineMetadataMapFromNodes.ts | 1 + .../lib/composePipelineRecipeFromNodes.tsx | 7 +- .../lib/createGraphLayout.tsx | 1 + .../lib/createNodesFromPipelineComponents.tsx | 2 +- .../lib/createNodesFromPipelineRecipe.tsx | 1 + .../lib/generateNewComponentIndex.test.ts | 3 +- .../pipeline-builder/lib/getAllNodeID.tsx | 1 + .../lib/getGeneralComponentInOutputSchema.ts | 3 +- .../lib/getReferencesFromString.test.ts | 3 +- .../lib/hooks/useAddNodeWithDefinition.tsx | 7 +- .../lib/hooks/useCheckIsHidden.tsx | 1 + .../lib/hooks/usePipelineBuilderGraph.tsx | 4 +- .../lib/hooks/useRenamePipeline.tsx | 16 +- .../lib/hooks/useSavePipeline.tsx | 22 +- .../lib/hooks/useSortedReleases.tsx | 1 + .../lib/hooks/useUpdaterOnNode.tsx | 14 +- .../lib/hooks/useUpdaterOnRightPanel.tsx | 14 +- .../lib/recursive-helpers/index.ts | 2 +- .../recursiveParseNumberToString.test.ts | 3 +- .../recursiveParseToNum.test.ts | 3 +- ...iveRemoveUndefinedAndNullFromArray.test.ts | 3 +- ...aceNullAndEmptyStringWithUndefined.test.ts | 3 +- .../recursiveReplaceTargetValue.test.ts | 3 +- .../toolkit/src/view/pipeline-builder/type.ts | 8 +- .../pipeline/PipelineTablePlaceholder.tsx | 7 +- .../src/view/pipeline/PipelinesTable.tsx | 6 +- .../view-pipeline/EditMetadataDialog.tsx | 10 +- .../src/view/pipeline/view-pipeline/Head.tsx | 24 +- .../view/pipeline/view-pipeline/InOutPut.tsx | 12 +- .../src/view/pipeline/view-pipeline/Menu.tsx | 20 +- .../view/pipeline/view-pipeline/Readme.tsx | 13 +- .../view/pipeline/view-pipeline/RunButton.tsx | 8 +- .../pipeline/view-pipeline/ViewPipeline.tsx | 11 +- .../view-pipelines/CreatePipelineDialog.tsx | 16 +- .../pipeline/view-pipelines/ViewPipelines.tsx | 25 +- .../view/profile/user-profile-view/Bio.tsx | 8 +- .../user-profile-view/UserProfileView.tsx | 15 +- .../src/view/settings/SettingSidebar.tsx | 2 +- .../toolkit/src/view/settings/SettingTab.tsx | 1 + .../settings/api-tokens/APITokenNameCell.tsx | 3 +- .../settings/api-tokens/APITokenTable.tsx | 8 +- .../api-tokens/CreateAPITokenDialog.tsx | 14 +- .../api-tokens/DeleteAPITokenDialog.tsx | 12 +- .../settings/secrets/CreateSecretDialog.tsx | 16 +- .../settings/secrets/DeleteSecretDialog.tsx | 12 +- .../src/view/settings/secrets/SecretTable.tsx | 6 +- .../view/settings/user/UserAPITokenTab.tsx | 1 + .../src/view/settings/user/UserAccountTab.tsx | 10 +- .../src/view/settings/user/UserProfileTab.tsx | 15 +- .../src/view/settings/user/UserSecretTab.tsx | 3 +- .../src/view/settings/user/UserSidebar.tsx | 1 + packages/toolkit/tsup.config.ts | 2 +- packages/toolkit/vitest.config.ts | 2 +- pnpm-lock.yaml | 991 +++++++++++++----- 995 files changed, 3216 insertions(+), 1687 deletions(-) diff --git a/apps/console/integration-test/helpers/actions/pipeline.ts b/apps/console/integration-test/helpers/actions/pipeline.ts index 256ad5f15a..04e7fae42e 100644 --- a/apps/console/integration-test/helpers/actions/pipeline.ts +++ b/apps/console/integration-test/helpers/actions/pipeline.ts @@ -1,9 +1,10 @@ +import { Page } from "@playwright/test"; + +import { DataTestID } from "../../data-testid"; import { PipelineBuilderPage } from "../../pages/pipeline-builder.page"; import { PipelineListPage } from "../../pages/pipeline-list"; -import { Page } from "@playwright/test"; import { PipelineOverviewPage } from "../../pages/pipeline-overview.page"; import { getDropdownContent } from "../component-helpers/dropdown"; -import { DataTestID } from "../../data-testid"; export async function createPipeline(page: Page, pipelineID: string) { const pipelineListPage = new PipelineListPage(page); diff --git a/apps/console/integration-test/helpers/first-time-login.test.ts b/apps/console/integration-test/helpers/first-time-login.test.ts index fa230a0c28..0f90113a83 100644 --- a/apps/console/integration-test/helpers/first-time-login.test.ts +++ b/apps/console/integration-test/helpers/first-time-login.test.ts @@ -1,4 +1,5 @@ import { test } from "@playwright/test"; + import { LoginPage } from "../pages/login.page"; import { OnboardingPage } from "../pages/onboarding.page"; import { PipelineListPage } from "../pages/pipeline-list"; diff --git a/apps/console/integration-test/main.test.ts b/apps/console/integration-test/main.test.ts index e4e4b3f41c..119e2a47f7 100644 --- a/apps/console/integration-test/main.test.ts +++ b/apps/console/integration-test/main.test.ts @@ -1,7 +1,8 @@ import { test } from "@playwright/test"; + import { shouldChangeComponentID } from "./tests/should-change-component-id.test"; -import { shouldUnmarshalJSONInput } from "./tests/should-unmarshal.test"; import { shouldEditAndCreateStartAndEndOperatorField } from "./tests/should-edit-create-start-end-field.test"; +import { shouldUnmarshalJSONInput } from "./tests/should-unmarshal.test"; test.describe(shouldChangeComponentID); test.describe(shouldUnmarshalJSONInput); diff --git a/apps/console/integration-test/pages/onboarding.page.ts b/apps/console/integration-test/pages/onboarding.page.ts index 380dacd1b8..f69980e688 100644 --- a/apps/console/integration-test/pages/onboarding.page.ts +++ b/apps/console/integration-test/pages/onboarding.page.ts @@ -1,4 +1,4 @@ -import { Locator, Page, expect } from "@playwright/test"; +import { expect, Locator, Page } from "@playwright/test"; export class OnboardingPage { readonly page: Page; diff --git a/apps/console/integration-test/pages/pipeline-builder.page.ts b/apps/console/integration-test/pages/pipeline-builder.page.ts index 681650b47e..2d20d2137e 100644 --- a/apps/console/integration-test/pages/pipeline-builder.page.ts +++ b/apps/console/integration-test/pages/pipeline-builder.page.ts @@ -1,4 +1,5 @@ import { Locator, Page } from "@playwright/test"; + import { getSelectContent } from "../helpers/component-helpers/select"; export class PipelineBuilderPage { diff --git a/apps/console/integration-test/tests/should-change-component-id.test.ts b/apps/console/integration-test/tests/should-change-component-id.test.ts index e599b11a5f..e64e69429a 100644 --- a/apps/console/integration-test/tests/should-change-component-id.test.ts +++ b/apps/console/integration-test/tests/should-change-component-id.test.ts @@ -1,8 +1,9 @@ -import { test, expect } from "@playwright/test"; -import { PipelineBuilderPage } from "../pages/pipeline-builder.page"; -import { getSelectContent } from "../helpers/component-helpers/select"; +import { expect, test } from "@playwright/test"; + import { DataTestID } from "../data-testid"; import { createPipeline, deletePipeline } from "../helpers/actions/pipeline"; +import { getSelectContent } from "../helpers/component-helpers/select"; +import { PipelineBuilderPage } from "../pages/pipeline-builder.page"; export function shouldChangeComponentID() { const pipelineID = "change-component-node-id"; diff --git a/apps/console/integration-test/tests/should-edit-create-start-end-field.test.ts b/apps/console/integration-test/tests/should-edit-create-start-end-field.test.ts index 3337e0dca2..f172720a61 100644 --- a/apps/console/integration-test/tests/should-edit-create-start-end-field.test.ts +++ b/apps/console/integration-test/tests/should-edit-create-start-end-field.test.ts @@ -1,6 +1,7 @@ -import { test, expect } from "@playwright/test"; -import { PipelineBuilderPage } from "../pages/pipeline-builder.page"; +import { expect, test } from "@playwright/test"; + import { createPipeline, deletePipeline } from "../helpers/actions/pipeline"; +import { PipelineBuilderPage } from "../pages/pipeline-builder.page"; export function shouldEditAndCreateStartAndEndOperatorField() { const pipelineID = "start-field-test"; diff --git a/apps/console/integration-test/tests/should-unmarshal.test.ts b/apps/console/integration-test/tests/should-unmarshal.test.ts index 639616f9f0..06baa2306f 100644 --- a/apps/console/integration-test/tests/should-unmarshal.test.ts +++ b/apps/console/integration-test/tests/should-unmarshal.test.ts @@ -1,7 +1,8 @@ import { test } from "@playwright/test"; -import { PipelineOverviewPage } from "../pages/pipeline-overview.page"; -import { PipelineBuilderPage } from "../pages/pipeline-builder.page"; + import { createPipeline, deletePipeline } from "../helpers/actions/pipeline"; +import { PipelineBuilderPage } from "../pages/pipeline-builder.page"; +import { PipelineOverviewPage } from "../pages/pipeline-overview.page"; export function shouldUnmarshalJSONInput() { const pipelineID = "unmarshal-test"; diff --git a/apps/console/src/app/(providers)/amplitude-client-provider.tsx b/apps/console/src/app/(providers)/amplitude-client-provider.tsx index f59500e8a5..8760bfb1e1 100644 --- a/apps/console/src/app/(providers)/amplitude-client-provider.tsx +++ b/apps/console/src/app/(providers)/amplitude-client-provider.tsx @@ -1,5 +1,7 @@ "use client"; + import * as React from "react"; + import { AmplitudeCtx } from "@instill-ai/toolkit"; export const AmplitudeProvider = ({ diff --git a/apps/console/src/app/(providers)/root-provider.tsx b/apps/console/src/app/(providers)/root-provider.tsx index dd996f1cfa..253a0c9b2e 100644 --- a/apps/console/src/app/(providers)/root-provider.tsx +++ b/apps/console/src/app/(providers)/root-provider.tsx @@ -1,11 +1,9 @@ "use client"; import * as React from "react"; +import { usePathname } from "next/navigation"; import { Toaster, useToast } from "@instill-ai/design-system"; -import { AmplitudeProvider } from "./amplitude-client-provider"; -import { ReactQueryProvider } from "./react-query-client-provider"; -import { usePathname } from "next/navigation"; import { InstillStore, Nullable, @@ -16,6 +14,9 @@ import { useShallow, } from "@instill-ai/toolkit"; +import { AmplitudeProvider } from "./amplitude-client-provider"; +import { ReactQueryProvider } from "./react-query-client-provider"; + const selector = (store: InstillStore) => ({ initPipelineBuilder: store.initPipelineBuilder, initIteratorRelatedState: store.initIteratorRelatedState, diff --git a/apps/console/src/app/404/page.tsx b/apps/console/src/app/404/page.tsx index 4d802bdd62..dd70d34389 100644 --- a/apps/console/src/app/404/page.tsx +++ b/apps/console/src/app/404/page.tsx @@ -1,4 +1,5 @@ import { Metadata } from "next"; + import { NotFoundPageRender } from "./render"; export async function generateMetadata() { diff --git a/apps/console/src/app/404/render.tsx b/apps/console/src/app/404/render.tsx index 13969d12f8..18ba50b93e 100644 --- a/apps/console/src/app/404/render.tsx +++ b/apps/console/src/app/404/render.tsx @@ -1,8 +1,9 @@ "use client"; -import { NotFoundView } from "@instill-ai/toolkit"; import * as React from "react"; +import { NotFoundView } from "@instill-ai/toolkit"; + export const NotFoundPageRender = () => { return ; }; diff --git a/apps/console/src/app/[entity]/dashboard/page.tsx b/apps/console/src/app/[entity]/dashboard/page.tsx index a59dfe4a9c..7cc7332748 100644 --- a/apps/console/src/app/[entity]/dashboard/page.tsx +++ b/apps/console/src/app/[entity]/dashboard/page.tsx @@ -1,6 +1,7 @@ -import { DashboardPageRender } from "./render"; import { Metadata } from "next"; +import { DashboardPageRender } from "./render"; + export async function generateMetadata(): Promise { const metadata: Metadata = { title: `Instill Core | Dashboard`, diff --git a/apps/console/src/app/[entity]/dashboard/pipeline/[id]/page.tsx b/apps/console/src/app/[entity]/dashboard/pipeline/[id]/page.tsx index 02e6875f13..7bf16dfbc6 100644 --- a/apps/console/src/app/[entity]/dashboard/pipeline/[id]/page.tsx +++ b/apps/console/src/app/[entity]/dashboard/pipeline/[id]/page.tsx @@ -1,6 +1,7 @@ -import { PipelineDashboardPageRender } from "./render"; import { Metadata } from "next"; +import { PipelineDashboardPageRender } from "./render"; + type Props = { params: { id: string; entity: string }; }; diff --git a/apps/console/src/app/[entity]/dashboard/pipeline/[id]/render.tsx b/apps/console/src/app/[entity]/dashboard/pipeline/[id]/render.tsx index a09019a650..f376003021 100644 --- a/apps/console/src/app/[entity]/dashboard/pipeline/[id]/render.tsx +++ b/apps/console/src/app/[entity]/dashboard/pipeline/[id]/render.tsx @@ -1,13 +1,14 @@ "use client"; +import { useRouter } from "next/navigation"; +import { useAppAccessToken } from "lib/use-app-access-token"; +import { useAppTrackToken } from "lib/useAppTrackToken"; + import { AppTopbar, DashboardPipelineDetailsPageMainView, PageBase, } from "@instill-ai/toolkit"; -import { useAppAccessToken } from "lib/use-app-access-token"; -import { useAppTrackToken } from "lib/useAppTrackToken"; -import { useRouter } from "next/navigation"; export function PipelineDashboardPageRender() { const accessToken = useAppAccessToken(); diff --git a/apps/console/src/app/[entity]/dashboard/render.tsx b/apps/console/src/app/[entity]/dashboard/render.tsx index c8da8ff1e0..ed5803fac2 100644 --- a/apps/console/src/app/[entity]/dashboard/render.tsx +++ b/apps/console/src/app/[entity]/dashboard/render.tsx @@ -1,13 +1,14 @@ "use client"; +import { useRouter } from "next/navigation"; +import { useAppAccessToken } from "lib/use-app-access-token"; +import { useAppTrackToken } from "lib/useAppTrackToken"; + import { AppTopbar, DashboardPipelineListPageMainView, PageBase, } from "@instill-ai/toolkit"; -import { useAppAccessToken } from "lib/use-app-access-token"; -import { useAppTrackToken } from "lib/useAppTrackToken"; -import { useRouter } from "next/navigation"; export function DashboardPageRender() { const accessToken = useAppAccessToken(); diff --git a/apps/console/src/app/[entity]/models/[id]/[tab]/page.tsx b/apps/console/src/app/[entity]/models/[id]/[tab]/page.tsx index 3c90993d9a..44bfdc0ef2 100644 --- a/apps/console/src/app/[entity]/models/[id]/[tab]/page.tsx +++ b/apps/console/src/app/[entity]/models/[id]/[tab]/page.tsx @@ -1,9 +1,9 @@ -import { ModelViewPageRender } from "./render"; import { Metadata } from "next"; -import { - type ModelTabNames, - getModelTabTitle, -} from "@instill-ai/toolkit/server"; + +import type { ModelTabNames } from "@instill-ai/toolkit/server"; +import { getModelTabTitle } from "@instill-ai/toolkit/server"; + +import { ModelViewPageRender } from "./render"; type Props = { params: { id: string; entity: string; tab: string }; diff --git a/apps/console/src/app/[entity]/models/[id]/[tab]/render.tsx b/apps/console/src/app/[entity]/models/[id]/[tab]/render.tsx index 53f5b301e6..6f5e37ff52 100644 --- a/apps/console/src/app/[entity]/models/[id]/[tab]/render.tsx +++ b/apps/console/src/app/[entity]/models/[id]/[tab]/render.tsx @@ -1,13 +1,14 @@ "use client"; +import { useRouter } from "next/navigation"; +import { useAppAccessToken } from "lib/use-app-access-token"; +import { useAppTrackToken } from "lib/useAppTrackToken"; + import { AppTopbar, ModelHubSettingPageMainView, PageBase, } from "@instill-ai/toolkit"; -import { useAppAccessToken } from "lib/use-app-access-token"; -import { useAppTrackToken } from "lib/useAppTrackToken"; -import { useRouter } from "next/navigation"; export function ModelViewPageRender() { const accessToken = useAppAccessToken(); diff --git a/apps/console/src/app/[entity]/models/create/page.tsx b/apps/console/src/app/[entity]/models/create/page.tsx index 764be969de..14135c2254 100644 --- a/apps/console/src/app/[entity]/models/create/page.tsx +++ b/apps/console/src/app/[entity]/models/create/page.tsx @@ -1,6 +1,7 @@ -import { CreateModelPageRender } from "./render"; import { Metadata } from "next"; +import { CreateModelPageRender } from "./render"; + export async function generateMetadata(): Promise { const metadata: Metadata = { title: `Instill Core | Create Model`, diff --git a/apps/console/src/app/[entity]/models/create/render.tsx b/apps/console/src/app/[entity]/models/create/render.tsx index 9dbe470e27..e789510392 100644 --- a/apps/console/src/app/[entity]/models/create/render.tsx +++ b/apps/console/src/app/[entity]/models/create/render.tsx @@ -1,11 +1,12 @@ "use client"; +import { useAppTrackToken } from "lib/useAppTrackToken"; + import { AppTopbar, ModelHubCreatePageMainView, PageBase, } from "@instill-ai/toolkit"; -import { useAppTrackToken } from "lib/useAppTrackToken"; export function CreateModelPageRender() { useAppTrackToken({ enabled: true }); diff --git a/apps/console/src/app/[entity]/models/page.tsx b/apps/console/src/app/[entity]/models/page.tsx index 599daceb10..5ac367a2b8 100644 --- a/apps/console/src/app/[entity]/models/page.tsx +++ b/apps/console/src/app/[entity]/models/page.tsx @@ -1,6 +1,7 @@ -import { ModelsPageRender } from "./render"; import { Metadata } from "next"; +import { ModelsPageRender } from "./render"; + export async function generateMetadata(): Promise { const metadata: Metadata = { title: `Instill Core | Models`, diff --git a/apps/console/src/app/[entity]/models/render.tsx b/apps/console/src/app/[entity]/models/render.tsx index b8f9c1c4ab..a0cf91f5e7 100644 --- a/apps/console/src/app/[entity]/models/render.tsx +++ b/apps/console/src/app/[entity]/models/render.tsx @@ -1,13 +1,14 @@ "use client"; +import { useRouter } from "next/navigation"; +import { useAppAccessToken } from "lib/use-app-access-token"; +import { useAppTrackToken } from "lib/useAppTrackToken"; + import { AppTopbar, ModelHubListPageMainView, PageBase, } from "@instill-ai/toolkit"; -import { useAppAccessToken } from "lib/use-app-access-token"; -import { useAppTrackToken } from "lib/useAppTrackToken"; -import { useRouter } from "next/navigation"; export function ModelsPageRender() { const accessToken = useAppAccessToken(); diff --git a/apps/console/src/app/[entity]/page.tsx b/apps/console/src/app/[entity]/page.tsx index 05f32501dd..88a0b58f34 100644 --- a/apps/console/src/app/[entity]/page.tsx +++ b/apps/console/src/app/[entity]/page.tsx @@ -1,7 +1,9 @@ -import { fetchUser } from "@instill-ai/toolkit/server"; -import { ProfilePageRender } from "./render"; import { Metadata } from "next"; + import { Nullable, User } from "@instill-ai/toolkit"; +import { fetchUser } from "@instill-ai/toolkit/server"; + +import { ProfilePageRender } from "./render"; type Props = { params: { id: string; entity: string }; diff --git a/apps/console/src/app/[entity]/pipelines/[id]/editor/page.tsx b/apps/console/src/app/[entity]/pipelines/[id]/editor/page.tsx index 2d8dcc3594..49a4fa3d68 100644 --- a/apps/console/src/app/[entity]/pipelines/[id]/editor/page.tsx +++ b/apps/console/src/app/[entity]/pipelines/[id]/editor/page.tsx @@ -1,4 +1,5 @@ import { Metadata } from "next"; + import { PipelineBuilderRender } from "./render"; type Props = { diff --git a/apps/console/src/app/[entity]/pipelines/[id]/editor/render.tsx b/apps/console/src/app/[entity]/pipelines/[id]/editor/render.tsx index 3d7979e43e..d366e50b35 100644 --- a/apps/console/src/app/[entity]/pipelines/[id]/editor/render.tsx +++ b/apps/console/src/app/[entity]/pipelines/[id]/editor/render.tsx @@ -1,9 +1,10 @@ "use client"; -import { PipelineBuilderMainView } from "@instill-ai/toolkit"; import { useAppAccessToken } from "lib/use-app-access-token"; import { useAppTrackToken } from "lib/useAppTrackToken"; +import { PipelineBuilderMainView } from "@instill-ai/toolkit"; + export const PipelineBuilderRender = () => { useAppAccessToken(); useAppTrackToken({ enabled: true }); diff --git a/apps/console/src/app/[entity]/pipelines/[id]/page.tsx b/apps/console/src/app/[entity]/pipelines/[id]/page.tsx index d97bad4fd8..2d818368eb 100644 --- a/apps/console/src/app/[entity]/pipelines/[id]/page.tsx +++ b/apps/console/src/app/[entity]/pipelines/[id]/page.tsx @@ -1,11 +1,13 @@ +import { Metadata } from "next"; +import { cookies } from "next/headers"; + import { Nullable, Pipeline } from "@instill-ai/toolkit"; import { fetchNamespaceType, fetchUserPipeline, } from "@instill-ai/toolkit/server"; + import { PipelineOverviewPageRender } from "./render"; -import { Metadata } from "next"; -import { cookies } from "next/headers"; type Props = { params: { id: string; entity: string }; diff --git a/apps/console/src/app/[entity]/pipelines/[id]/render.tsx b/apps/console/src/app/[entity]/pipelines/[id]/render.tsx index 38aa0bae83..7447aec732 100644 --- a/apps/console/src/app/[entity]/pipelines/[id]/render.tsx +++ b/apps/console/src/app/[entity]/pipelines/[id]/render.tsx @@ -1,9 +1,10 @@ "use client"; -import { AppTopbar, PageBase, ViewPipeline } from "@instill-ai/toolkit"; import { useAppAccessToken } from "lib/use-app-access-token"; import { useAppTrackToken } from "lib/useAppTrackToken"; +import { AppTopbar, PageBase, ViewPipeline } from "@instill-ai/toolkit"; + export function PipelineOverviewPageRender() { useAppAccessToken({ disabledRedirectingVisitor: true, diff --git a/apps/console/src/app/[entity]/pipelines/page.tsx b/apps/console/src/app/[entity]/pipelines/page.tsx index dce460c9d4..f737ad64d7 100644 --- a/apps/console/src/app/[entity]/pipelines/page.tsx +++ b/apps/console/src/app/[entity]/pipelines/page.tsx @@ -1,4 +1,5 @@ import { Metadata } from "next"; + import { PipelinesViewPageRender } from "./render"; export async function generateMetadata() { diff --git a/apps/console/src/app/[entity]/pipelines/render.tsx b/apps/console/src/app/[entity]/pipelines/render.tsx index 23406d7882..9dbad8acad 100644 --- a/apps/console/src/app/[entity]/pipelines/render.tsx +++ b/apps/console/src/app/[entity]/pipelines/render.tsx @@ -1,9 +1,10 @@ "use client"; -import { AppTopbar, PageBase, ViewPipelines } from "@instill-ai/toolkit"; import { useAppAccessToken } from "lib/use-app-access-token"; import { useAppTrackToken } from "lib/useAppTrackToken"; +import { AppTopbar, PageBase, ViewPipelines } from "@instill-ai/toolkit"; + export const PipelinesViewPageRender = () => { useAppAccessToken(); useAppTrackToken({ enabled: true }); diff --git a/apps/console/src/app/[entity]/render.tsx b/apps/console/src/app/[entity]/render.tsx index b0d6a8d0b2..eb16a1ee8c 100644 --- a/apps/console/src/app/[entity]/render.tsx +++ b/apps/console/src/app/[entity]/render.tsx @@ -1,9 +1,10 @@ "use client"; -import { AppTopbar, PageBase, UserProfileView } from "@instill-ai/toolkit"; import { useAppAccessToken } from "lib/use-app-access-token"; import { useAppTrackToken } from "lib/useAppTrackToken"; +import { AppTopbar, PageBase, UserProfileView } from "@instill-ai/toolkit"; + export function ProfilePageRender() { useAppAccessToken({ disabledRedirectingVisitor: true, diff --git a/apps/console/src/app/api/access-token/route.ts b/apps/console/src/app/api/access-token/route.ts index b45e800e50..082c188b46 100644 --- a/apps/console/src/app/api/access-token/route.ts +++ b/apps/console/src/app/api/access-token/route.ts @@ -1,6 +1,7 @@ -import { Nullable } from "@instill-ai/toolkit"; import { cookies } from "next/headers"; +import { Nullable } from "@instill-ai/toolkit"; + export const GET = () => { const cookieStore = cookies(); const authSessionCookie = cookieStore.get("instill-auth-session")?.value; diff --git a/apps/console/src/app/api/auth/logout/route.ts b/apps/console/src/app/api/auth/logout/route.ts index 94306e906b..7df40cc560 100644 --- a/apps/console/src/app/api/auth/logout/route.ts +++ b/apps/console/src/app/api/auth/logout/route.ts @@ -1,7 +1,8 @@ -import { authLogoutAction } from "@instill-ai/toolkit/server"; import { cookies } from "next/headers"; import { redirect } from "next/navigation"; +import { authLogoutAction } from "@instill-ai/toolkit/server"; + export async function GET() { const cookieStore = cookies(); const accessTokenKey = "instill-auth-session"; diff --git a/apps/console/src/app/layout.tsx b/apps/console/src/app/layout.tsx index 214eab0c7f..2ea8705db8 100644 --- a/apps/console/src/app/layout.tsx +++ b/apps/console/src/app/layout.tsx @@ -1,4 +1,5 @@ import cn from "clsx"; + import { env } from "@instill-ai/toolkit/server"; import "../styles/global.css"; @@ -9,7 +10,9 @@ import "@instill-ai/design-tokens/dist/theme/light.css"; import "@instill-ai/design-tokens/dist/theme/dark.css"; import "reactflow/dist/style.css"; import "../styles/tip-tap.css"; + import { IBM_Plex_Mono, IBM_Plex_Sans } from "next/font/google"; + import { RootProvider } from "./(providers)/root-provider"; const ibmPlexSans = IBM_Plex_Sans({ diff --git a/apps/console/src/app/login/render.tsx b/apps/console/src/app/login/render.tsx index 129f5aa83d..5c5d822392 100644 --- a/apps/console/src/app/login/render.tsx +++ b/apps/console/src/app/login/render.tsx @@ -1,7 +1,8 @@ "use client"; import * as React from "react"; -import * as z from "zod"; +import { useRouter } from "next/navigation"; +import axios from "axios"; import { AuthPageBase, ChangePasswordForm, @@ -9,16 +10,16 @@ import { LoginForm, LoginFormSchema, } from "components"; -import { useRouter } from "next/navigation"; +import { useAppTrackToken } from "lib/useAppTrackToken"; +import * as z from "zod"; + +import { useToast } from "@instill-ai/design-system"; import { - Nullable, changePasswordMutation, getInstillApiErrorMessage, + Nullable, useAuthenticatedUser, } from "@instill-ai/toolkit"; -import { useToast } from "@instill-ai/design-system"; -import { useAppTrackToken } from "lib/useAppTrackToken"; -import axios from "axios"; import { authLoginAction } from "@instill-ai/toolkit/server"; export const LoginPageRender = () => { diff --git a/apps/console/src/app/logout/page.tsx b/apps/console/src/app/logout/page.tsx index f010ba0392..bc8153c1a5 100644 --- a/apps/console/src/app/logout/page.tsx +++ b/apps/console/src/app/logout/page.tsx @@ -1,7 +1,8 @@ -import { authLogoutAction } from "@instill-ai/toolkit/server"; import { cookies } from "next/headers"; import { redirect } from "next/navigation"; +import { authLogoutAction } from "@instill-ai/toolkit/server"; + export default async function Page() { const cookieStore = cookies(); const accessTokenKey = "instill-auth-session"; diff --git a/apps/console/src/app/onboarding/page.tsx b/apps/console/src/app/onboarding/page.tsx index 8ed7c3f059..b948407620 100644 --- a/apps/console/src/app/onboarding/page.tsx +++ b/apps/console/src/app/onboarding/page.tsx @@ -1,4 +1,5 @@ import { Metadata } from "next"; + import { OnboardingPageRender } from "./render"; export async function generateMetadata() { diff --git a/apps/console/src/app/onboarding/render.tsx b/apps/console/src/app/onboarding/render.tsx index 0fbad0066b..15e886b8aa 100644 --- a/apps/console/src/app/onboarding/render.tsx +++ b/apps/console/src/app/onboarding/render.tsx @@ -1,9 +1,10 @@ "use client"; -import { AppTopbar, PageBase, PageTitle } from "@instill-ai/toolkit"; import { OnboardingForm } from "components"; import { useAppAccessToken } from "lib/use-app-access-token"; +import { AppTopbar, PageBase, PageTitle } from "@instill-ai/toolkit"; + export const OnboardingPageRender = () => { useAppAccessToken(); return ( diff --git a/apps/console/src/app/render.tsx b/apps/console/src/app/render.tsx index 1a8114b513..73bdc9a77a 100644 --- a/apps/console/src/app/render.tsx +++ b/apps/console/src/app/render.tsx @@ -1,9 +1,9 @@ "use client"; import * as React from "react"; +import { useRouter } from "next/navigation"; import { useAppAccessToken } from "lib/use-app-access-token"; import { useAppTrackToken } from "lib/useAppTrackToken"; -import { useRouter } from "next/navigation"; export const RootPageRender = () => { useAppAccessToken(); diff --git a/apps/console/src/app/settings/account/page.tsx b/apps/console/src/app/settings/account/page.tsx index e256703a55..15875b1b35 100644 --- a/apps/console/src/app/settings/account/page.tsx +++ b/apps/console/src/app/settings/account/page.tsx @@ -1,6 +1,7 @@ -import { AccountSettingPageRender } from "./render"; import { Metadata } from "next"; +import { AccountSettingPageRender } from "./render"; + export async function generateMetadata(): Promise { const metadata: Metadata = { title: `Instill Core | Account Setting`, diff --git a/apps/console/src/app/settings/account/render.tsx b/apps/console/src/app/settings/account/render.tsx index 609d36c59e..a2f9a3d87c 100644 --- a/apps/console/src/app/settings/account/render.tsx +++ b/apps/console/src/app/settings/account/render.tsx @@ -1,5 +1,8 @@ "use client"; +import { useRouter } from "next/navigation"; +import { useAppAccessToken } from "lib/use-app-access-token"; + import { AppTopbar, BreadcrumbWithLink, @@ -8,8 +11,6 @@ import { UserAccountTab, UserSidebar, } from "@instill-ai/toolkit"; -import { useAppAccessToken } from "lib/use-app-access-token"; -import { useRouter } from "next/navigation"; export function AccountSettingPageRender() { const accessToken = useAppAccessToken(); diff --git a/apps/console/src/app/settings/api-tokens/page.tsx b/apps/console/src/app/settings/api-tokens/page.tsx index af60d1b1f4..ada8fdb3b2 100644 --- a/apps/console/src/app/settings/api-tokens/page.tsx +++ b/apps/console/src/app/settings/api-tokens/page.tsx @@ -1,6 +1,7 @@ -import { ApiTokenSettingdPageRender } from "./render"; import { Metadata } from "next"; +import { ApiTokenSettingdPageRender } from "./render"; + export async function generateMetadata(): Promise { const metadata: Metadata = { title: `Instill Core | API Token Setting`, diff --git a/apps/console/src/app/settings/api-tokens/render.tsx b/apps/console/src/app/settings/api-tokens/render.tsx index 9b46e0942b..80bd36c531 100644 --- a/apps/console/src/app/settings/api-tokens/render.tsx +++ b/apps/console/src/app/settings/api-tokens/render.tsx @@ -1,5 +1,8 @@ "use client"; +import { useRouter } from "next/navigation"; +import { useAppAccessToken } from "lib/use-app-access-token"; + import { AppTopbar, BreadcrumbWithLink, @@ -8,8 +11,6 @@ import { UserAPITokenTab, UserSidebar, } from "@instill-ai/toolkit"; -import { useAppAccessToken } from "lib/use-app-access-token"; -import { useRouter } from "next/navigation"; export function ApiTokenSettingdPageRender() { const accessToken = useAppAccessToken(); diff --git a/apps/console/src/app/settings/profile/page.tsx b/apps/console/src/app/settings/profile/page.tsx index 6e11f86712..041595094d 100644 --- a/apps/console/src/app/settings/profile/page.tsx +++ b/apps/console/src/app/settings/profile/page.tsx @@ -1,6 +1,7 @@ -import { ProfileSettingPageRender } from "./rendex"; import { Metadata } from "next"; +import { ProfileSettingPageRender } from "./rendex"; + export async function generateMetadata(): Promise { const metadata: Metadata = { title: `Instill Core | Profile Setting`, diff --git a/apps/console/src/app/settings/profile/rendex.tsx b/apps/console/src/app/settings/profile/rendex.tsx index 4cc46c6d4e..5fae203585 100644 --- a/apps/console/src/app/settings/profile/rendex.tsx +++ b/apps/console/src/app/settings/profile/rendex.tsx @@ -1,5 +1,8 @@ "use client"; +import { useRouter } from "next/navigation"; +import { useAppAccessToken } from "lib/use-app-access-token"; + import { AppTopbar, BreadcrumbWithLink, @@ -8,8 +11,6 @@ import { UserProfileTab, UserSidebar, } from "@instill-ai/toolkit"; -import { useAppAccessToken } from "lib/use-app-access-token"; -import { useRouter } from "next/navigation"; export function ProfileSettingPageRender() { const accessToken = useAppAccessToken(); diff --git a/apps/console/src/app/settings/secrets/page.tsx b/apps/console/src/app/settings/secrets/page.tsx index 1d0a18c75a..a5c88664e3 100644 --- a/apps/console/src/app/settings/secrets/page.tsx +++ b/apps/console/src/app/settings/secrets/page.tsx @@ -1,6 +1,7 @@ -import { SecretSettingdPageRender } from "./render"; import { Metadata } from "next"; +import { SecretSettingdPageRender } from "./render"; + export async function generateMetadata(): Promise { const metadata: Metadata = { title: `Instill Core | Secrets Setting`, diff --git a/apps/console/src/app/settings/secrets/render.tsx b/apps/console/src/app/settings/secrets/render.tsx index 8d008606df..21b9eec6a6 100644 --- a/apps/console/src/app/settings/secrets/render.tsx +++ b/apps/console/src/app/settings/secrets/render.tsx @@ -1,5 +1,7 @@ "use client"; +import { useAppAccessToken } from "lib/use-app-access-token"; + import { AppTopbar, BreadcrumbWithLink, @@ -8,7 +10,6 @@ import { UserSecretTab, UserSidebar, } from "@instill-ai/toolkit"; -import { useAppAccessToken } from "lib/use-app-access-token"; export function SecretSettingdPageRender() { useAppAccessToken(); diff --git a/apps/console/src/app/sitemap.ts b/apps/console/src/app/sitemap.ts index 1b48c39c6b..d947404a0d 100644 --- a/apps/console/src/app/sitemap.ts +++ b/apps/console/src/app/sitemap.ts @@ -1,6 +1,7 @@ -import { Organization, Pipeline, User } from "@instill-ai/toolkit"; import { MetadataRoute } from "next"; +import { Organization, Pipeline, User } from "@instill-ai/toolkit"; + export default async function sitemap(): Promise { const sitemaps: MetadataRoute.Sitemap = []; const defaultApiUrl = "https://api.instill.tech"; diff --git a/apps/console/src/components/AuthPageBase.tsx b/apps/console/src/components/AuthPageBase.tsx index 6a717edceb..dd877b0bd1 100644 --- a/apps/console/src/components/AuthPageBase.tsx +++ b/apps/console/src/components/AuthPageBase.tsx @@ -1,6 +1,7 @@ -import { Logo } from "@instill-ai/design-system"; import Image from "next/image"; +import { Logo } from "@instill-ai/design-system"; + export const AuthPageBase = ({ children }: { children: React.ReactNode }) => { return
{children}
; }; diff --git a/apps/console/src/components/ChangePasswordForm.tsx b/apps/console/src/components/ChangePasswordForm.tsx index 3cd7fe68f1..2841e8dfe5 100644 --- a/apps/console/src/components/ChangePasswordForm.tsx +++ b/apps/console/src/components/ChangePasswordForm.tsx @@ -1,7 +1,8 @@ -import { Button, Form, Input } from "@instill-ai/design-system"; -import * as z from "zod"; -import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm } from "react-hook-form"; +import * as z from "zod"; + +import { Button, Form, Input } from "@instill-ai/design-system"; export const ChangePasswordFormSchema = z.object({ newPassword: z diff --git a/apps/console/src/components/LoginForm.tsx b/apps/console/src/components/LoginForm.tsx index 68f18c897e..3cee9585b7 100644 --- a/apps/console/src/components/LoginForm.tsx +++ b/apps/console/src/components/LoginForm.tsx @@ -1,7 +1,8 @@ -import { Button, Form, Input } from "@instill-ai/design-system"; -import * as z from "zod"; -import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm } from "react-hook-form"; +import * as z from "zod"; + +import { Button, Form, Input } from "@instill-ai/design-system"; export const LoginFormSchema = z.object({ username: z.string(), diff --git a/apps/console/src/components/ModelReadmeMarkdown.tsx b/apps/console/src/components/ModelReadmeMarkdown.tsx index 96be40e193..8880c7d68b 100644 --- a/apps/console/src/components/ModelReadmeMarkdown.tsx +++ b/apps/console/src/components/ModelReadmeMarkdown.tsx @@ -1,10 +1,10 @@ import * as React from "react"; import cn from "clsx"; -import remarkFrontmatter from "remark-frontmatter"; import ReactMarkdown from "react-markdown"; -import { Nullable } from "@instill-ai/toolkit"; +import remarkFrontmatter from "remark-frontmatter"; import { NoBgSquareProgress } from "@instill-ai/design-system"; +import { Nullable } from "@instill-ai/toolkit"; export type ModelReadmeMarkdownProps = { markdown: Nullable; diff --git a/apps/console/src/components/OnboardingForm.tsx b/apps/console/src/components/OnboardingForm.tsx index 94f22aef62..2c13282c01 100644 --- a/apps/console/src/components/OnboardingForm.tsx +++ b/apps/console/src/components/OnboardingForm.tsx @@ -1,30 +1,28 @@ "use client"; import { ChangeEvent, useCallback, useState } from "react"; +import { useRouter } from "next/navigation"; import axios from "axios"; import { v4 as uuidv4 } from "uuid"; +import type { AuthenticatedUser, Nullable } from "@instill-ai/toolkit"; import { BasicProgressMessageBox, - BasicTextField, - ProgressMessageBoxState, BasicSingleSelect, + BasicTextField, BasicToggleField, - SolidButton, FormRoot, + ProgressMessageBoxState, SelectOption, + SolidButton, } from "@instill-ai/design-system"; - import { - type AuthenticatedUser, - type Nullable, - useAmplitudeCtx, - sendAmplitudeData, instillUserRoles, - useUpdateAuthenticatedUser, + sendAmplitudeData, + useAmplitudeCtx, useInstillStore, + useUpdateAuthenticatedUser, } from "@instill-ai/toolkit"; -import { useRouter } from "next/navigation"; export type OnboardingFormValues = { email: Nullable; diff --git a/apps/console/src/lib/use-app-access-token/client.ts b/apps/console/src/lib/use-app-access-token/client.ts index b9080ea7b1..34a6bde0d4 100644 --- a/apps/console/src/lib/use-app-access-token/client.ts +++ b/apps/console/src/lib/use-app-access-token/client.ts @@ -1,15 +1,17 @@ "use client"; import * as React from "react"; +import { useRouter } from "next/navigation"; +import axios from "axios"; + import { InstillStore, useInstillStore, useQuery, useShallow, } from "@instill-ai/toolkit"; -import { useRouter } from "next/navigation"; + import { fetchAccessToken } from "./server"; -import axios from "axios"; const selector = (store: InstillStore) => ({ updateAccessToken: store.updateAccessToken, diff --git a/apps/console/src/lib/use-app-access-token/server.ts b/apps/console/src/lib/use-app-access-token/server.ts index 603ab86cb7..0bb136202c 100644 --- a/apps/console/src/lib/use-app-access-token/server.ts +++ b/apps/console/src/lib/use-app-access-token/server.ts @@ -1,8 +1,9 @@ +import axios from "axios"; + import { - QueryClient, authValidateTokenAction, + QueryClient, } from "@instill-ai/toolkit/server"; -import axios from "axios"; export async function fetchAccessToken() { try { diff --git a/apps/console/src/lib/useAppTrackToken.ts b/apps/console/src/lib/useAppTrackToken.ts index d181455c50..4df9041994 100644 --- a/apps/console/src/lib/useAppTrackToken.ts +++ b/apps/console/src/lib/useAppTrackToken.ts @@ -1,8 +1,9 @@ "use client"; -import { useQuery } from "@instill-ai/toolkit"; -import axios from "axios"; import { useRouter } from "next/navigation"; +import axios from "axios"; + +import { useQuery } from "@instill-ai/toolkit"; export function useAppTrackToken({ enabled }: { enabled: boolean }) { const router = useRouter(); diff --git a/apps/console/src/pages/api/get-user-cookie.ts b/apps/console/src/pages/api/get-user-cookie.ts index f593353af7..218106bed8 100644 --- a/apps/console/src/pages/api/get-user-cookie.ts +++ b/apps/console/src/pages/api/get-user-cookie.ts @@ -1,6 +1,7 @@ -import { Nullable } from "@instill-ai/toolkit"; import { NextApiRequest, NextApiResponse } from "next"; +import { Nullable } from "@instill-ai/toolkit"; + const handler = async (req: NextApiRequest, res: NextApiResponse) => { const { method, cookies, body } = req; diff --git a/apps/console/src/pages/api/set-user-cookie.ts b/apps/console/src/pages/api/set-user-cookie.ts index b61317198a..a51dbeb85b 100644 --- a/apps/console/src/pages/api/set-user-cookie.ts +++ b/apps/console/src/pages/api/set-user-cookie.ts @@ -1,11 +1,8 @@ -import { - setCookie, - env, - removeCookie, - type SetCookiePayload, -} from "@instill-ai/toolkit/server"; import { NextApiRequest, NextApiResponse } from "next"; +import type { SetCookiePayload } from "@instill-ai/toolkit/server"; +import { env, removeCookie, setCookie } from "@instill-ai/toolkit/server"; + const handler = async (req: NextApiRequest, res: NextApiResponse) => { const { method, body } = req; diff --git a/apps/instill-form-playground/package.json b/apps/instill-form-playground/package.json index ea40752122..c133f9f8df 100644 --- a/apps/instill-form-playground/package.json +++ b/apps/instill-form-playground/package.json @@ -36,5 +36,6 @@ "**/*.{js,jsx,ts,tsx}": [ "eslint --cache --fix" ] - } + }, + "prettier": "@instill-ai/prettier-config-cortex" } diff --git a/apps/instill-form-playground/src/pages/_app.tsx b/apps/instill-form-playground/src/pages/_app.tsx index ff2c95f157..1fa902cb98 100644 --- a/apps/instill-form-playground/src/pages/_app.tsx +++ b/apps/instill-form-playground/src/pages/_app.tsx @@ -2,6 +2,7 @@ import "@/styles/globals.css"; import "@instill-ai/design-tokens/dist/theme/root.css"; import "@instill-ai/design-tokens/dist/theme/light.css"; import "@instill-ai/design-tokens/dist/theme/dark.css"; + import type { AppProps } from "next/app"; export default function App({ Component, pageProps }: AppProps) { diff --git a/apps/instill-form-playground/src/pages/_document.tsx b/apps/instill-form-playground/src/pages/_document.tsx index b2fff8b426..ffc3f3cccf 100644 --- a/apps/instill-form-playground/src/pages/_document.tsx +++ b/apps/instill-form-playground/src/pages/_document.tsx @@ -1,4 +1,4 @@ -import { Html, Head, Main, NextScript } from "next/document"; +import { Head, Html, Main, NextScript } from "next/document"; export default function Document() { return ( diff --git a/apps/instill-form-playground/src/pages/index.tsx b/apps/instill-form-playground/src/pages/index.tsx index ecacc2f1a1..8ff608d54d 100644 --- a/apps/instill-form-playground/src/pages/index.tsx +++ b/apps/instill-form-playground/src/pages/index.tsx @@ -1,8 +1,8 @@ import * as React from "react"; +import MonacoEditor from "@monaco-editor/react"; import * as z from "zod"; -import { Button, Form, Textarea } from "@instill-ai/design-system"; -import MonacoEditor from "@monaco-editor/react"; +import { Button, Form, Textarea } from "@instill-ai/design-system"; import { InstillJSONSchema, useInstillForm } from "@instill-ai/toolkit"; export default function Home() { diff --git a/packages/design-system/setupTests.ts b/packages/design-system/setupTests.ts index d7c36766ed..67d6211e66 100644 --- a/packages/design-system/setupTests.ts +++ b/packages/design-system/setupTests.ts @@ -1,5 +1,6 @@ -import { afterEach } from "vitest"; import { cleanup } from "@testing-library/react"; +import { afterEach } from "vitest"; + import "@testing-library/jest-dom"; afterEach(() => { diff --git a/packages/design-system/src/index.ts b/packages/design-system/src/index.ts index f4b43aec66..2ba9e14545 100644 --- a/packages/design-system/src/index.ts +++ b/packages/design-system/src/index.ts @@ -1,5 +1,5 @@ -import { getTailwindClassNumber, getElementPosition } from "./utils"; import type { ElementPosition } from "./utils"; +import { getElementPosition, getTailwindClassNumber } from "./utils"; export * from "./new-ui"; export * from "./ui"; diff --git a/packages/design-system/src/new-ui/Breadcrumb/Breadcrumb.stories.tsx b/packages/design-system/src/new-ui/Breadcrumb/Breadcrumb.stories.tsx index 26c05338e4..d6ac51b988 100644 --- a/packages/design-system/src/new-ui/Breadcrumb/Breadcrumb.stories.tsx +++ b/packages/design-system/src/new-ui/Breadcrumb/Breadcrumb.stories.tsx @@ -1,4 +1,5 @@ import type { Meta } from "@storybook/react"; + import { Breadcrumb, BreadcrumbItem } from "./Breadcrumb"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Breadcrumb/Breadcrumb.tsx b/packages/design-system/src/new-ui/Breadcrumb/Breadcrumb.tsx index 86bc8cfa70..a816759015 100644 --- a/packages/design-system/src/new-ui/Breadcrumb/Breadcrumb.tsx +++ b/packages/design-system/src/new-ui/Breadcrumb/Breadcrumb.tsx @@ -1,6 +1,7 @@ "use client"; import { Icons } from "../Icons"; + export type BreadcrumbItem = { label: string; link?: string; diff --git a/packages/design-system/src/new-ui/Button/Button.stories.tsx b/packages/design-system/src/new-ui/Button/Button.stories.tsx index 324882a3be..b6c6722aba 100644 --- a/packages/design-system/src/new-ui/Button/Button.stories.tsx +++ b/packages/design-system/src/new-ui/Button/Button.stories.tsx @@ -1,8 +1,9 @@ import type { Meta, StoryObj } from "@storybook/react"; -import { Button } from "./Button"; -import { Icons } from "../Icons"; import * as React from "react"; +import { Icons } from "../Icons"; +import { Button } from "./Button"; + const meta: Meta = { title: "Components/NewUi/Button", }; diff --git a/packages/design-system/src/new-ui/Button/Button.tsx b/packages/design-system/src/new-ui/Button/Button.tsx index db2e6eeffd..cf5e3cb5c8 100644 --- a/packages/design-system/src/new-ui/Button/Button.tsx +++ b/packages/design-system/src/new-ui/Button/Button.tsx @@ -1,9 +1,10 @@ "use client"; -import cn from "clsx"; +import type { VariantProps } from "class-variance-authority"; import * as React from "react"; import { Slot } from "@radix-ui/react-slot"; -import { cva, type VariantProps } from "class-variance-authority"; +import { cva } from "class-variance-authority"; +import cn from "clsx"; const buttonVariants = cva( "group inline-flex items-center justify-center transition-colors rounded focus:outline-none focus-visible:outline-none disabled:pointer-events-none", diff --git a/packages/design-system/src/new-ui/Checkbox/Checkbox.stories.tsx b/packages/design-system/src/new-ui/Checkbox/Checkbox.stories.tsx index ef95b001c2..28b4f2c778 100644 --- a/packages/design-system/src/new-ui/Checkbox/Checkbox.stories.tsx +++ b/packages/design-system/src/new-ui/Checkbox/Checkbox.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { Checkbox } from "./Checkbox"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Checkbox/Checkbox.tsx b/packages/design-system/src/new-ui/Checkbox/Checkbox.tsx index 7736915532..b5f32e26b1 100644 --- a/packages/design-system/src/new-ui/Checkbox/Checkbox.tsx +++ b/packages/design-system/src/new-ui/Checkbox/Checkbox.tsx @@ -3,6 +3,7 @@ import * as React from "react"; import * as CheckboxPrimitive from "@radix-ui/react-checkbox"; import cn from "clsx"; + import { Icons } from "../Icons"; const checkboxStyle = cn( diff --git a/packages/design-system/src/new-ui/Collapsible/Collapsible.stories.tsx b/packages/design-system/src/new-ui/Collapsible/Collapsible.stories.tsx index 43cc5ae058..361f7db4da 100644 --- a/packages/design-system/src/new-ui/Collapsible/Collapsible.stories.tsx +++ b/packages/design-system/src/new-ui/Collapsible/Collapsible.stories.tsx @@ -1,7 +1,8 @@ import type { Meta, StoryObj } from "@storybook/react"; -import { Collapsible } from "./Collapsible"; + import { Button } from "../Button"; import { Icons } from "../Icons"; +import { Collapsible } from "./Collapsible"; const meta: Meta = { title: "Components/NewUi/Collapsible", diff --git a/packages/design-system/src/new-ui/Color/Color.stories.tsx b/packages/design-system/src/new-ui/Color/Color.stories.tsx index 77a612f1c9..4c17ca7b68 100644 --- a/packages/design-system/src/new-ui/Color/Color.stories.tsx +++ b/packages/design-system/src/new-ui/Color/Color.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { Color } from "./Color"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Combobox/Combobox.stories.tsx b/packages/design-system/src/new-ui/Combobox/Combobox.stories.tsx index 6de05521e0..eacedd8fad 100644 --- a/packages/design-system/src/new-ui/Combobox/Combobox.stories.tsx +++ b/packages/design-system/src/new-ui/Combobox/Combobox.stories.tsx @@ -1,9 +1,10 @@ import type { Meta } from "@storybook/react"; -import { Combobox } from "./Combobox"; -import { Icons } from "../Icons"; import * as React from "react"; -import { Button } from "../Button"; + import { SelectOption } from "../../types/general"; +import { Button } from "../Button"; +import { Icons } from "../Icons"; +import { Combobox } from "./Combobox"; const meta: Meta = { title: "Components/NewUi/Combobox", diff --git a/packages/design-system/src/new-ui/Combobox/Combobox.tsx b/packages/design-system/src/new-ui/Combobox/Combobox.tsx index a1dfffa05a..63309be5fa 100644 --- a/packages/design-system/src/new-ui/Combobox/Combobox.tsx +++ b/packages/design-system/src/new-ui/Combobox/Combobox.tsx @@ -2,10 +2,11 @@ import * as React from "react"; import cn from "clsx"; + +import { Nullable, SelectOption } from "../../types/general"; import { Command } from "../Command"; -import { Popover } from "../Popover"; import { Icons } from "../Icons"; -import { Nullable, SelectOption } from "../../types/general"; +import { Popover } from "../Popover"; type ComboboxProps = { items: SelectOption[]; diff --git a/packages/design-system/src/new-ui/Command/Command.stories.tsx b/packages/design-system/src/new-ui/Command/Command.stories.tsx index dbe35a4999..5c4dff3889 100644 --- a/packages/design-system/src/new-ui/Command/Command.stories.tsx +++ b/packages/design-system/src/new-ui/Command/Command.stories.tsx @@ -1,7 +1,8 @@ import type { Meta } from "@storybook/react"; -import { Command } from "./Command"; import * as React from "react"; + import { Icons } from "../Icons"; +import { Command } from "./Command"; const meta: Meta = { title: "Components/NewUi/Command", diff --git a/packages/design-system/src/new-ui/Command/Command.tsx b/packages/design-system/src/new-ui/Command/Command.tsx index dbf861c37d..6487095c35 100644 --- a/packages/design-system/src/new-ui/Command/Command.tsx +++ b/packages/design-system/src/new-ui/Command/Command.tsx @@ -2,8 +2,8 @@ import * as React from "react"; import { DialogProps } from "@radix-ui/react-dialog"; -import { Command as CommandPrimitive } from "cmdk"; import cn from "clsx"; +import { Command as CommandPrimitive } from "cmdk"; import { Dialog } from "../Dialog"; diff --git a/packages/design-system/src/new-ui/ComplicateIcons/ComplicateIconBase/ComplicateIconBase.tsx b/packages/design-system/src/new-ui/ComplicateIcons/ComplicateIconBase/ComplicateIconBase.tsx index 7d851085d3..14f777412d 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/ComplicateIconBase/ComplicateIconBase.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/ComplicateIconBase/ComplicateIconBase.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + export type ComplicateIconBaseProps = { viewBox: string; className?: string; diff --git a/packages/design-system/src/new-ui/ComplicateIcons/ComplicateIcons.stories.tsx b/packages/design-system/src/new-ui/ComplicateIcons/ComplicateIcons.stories.tsx index e11edcb77a..7a524cbd48 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/ComplicateIcons.stories.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/ComplicateIcons.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryObj } from "@storybook/react"; + import { ComplicateIcons } from "."; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/ComplicateIcons/Doc.tsx b/packages/design-system/src/new-ui/ComplicateIcons/Doc.tsx index a93b21860a..dba4cb27c3 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/Doc.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/Doc.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ComplicateIconBase, ComplicateIconBaseProps, diff --git a/packages/design-system/src/new-ui/ComplicateIcons/Drag.tsx b/packages/design-system/src/new-ui/ComplicateIcons/Drag.tsx index 73b1cc7023..73752c2915 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/Drag.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/Drag.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ComplicateIconBase, ComplicateIconBaseProps, diff --git a/packages/design-system/src/new-ui/ComplicateIcons/GitHub.tsx b/packages/design-system/src/new-ui/ComplicateIcons/GitHub.tsx index c87174aa69..c6e9968644 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/GitHub.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/GitHub.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ComplicateIconBase, ComplicateIconBaseProps, diff --git a/packages/design-system/src/new-ui/ComplicateIcons/ImageClassification.tsx b/packages/design-system/src/new-ui/ComplicateIcons/ImageClassification.tsx index 7d53a6dc68..c9cbb2b522 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/ImageClassification.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/ImageClassification.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ComplicateIconBase, ComplicateIconBaseProps, diff --git a/packages/design-system/src/new-ui/ComplicateIcons/ImageToImage.tsx b/packages/design-system/src/new-ui/ComplicateIcons/ImageToImage.tsx index 106de01b97..3ff0671cba 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/ImageToImage.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/ImageToImage.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ComplicateIconBase, ComplicateIconBaseProps, diff --git a/packages/design-system/src/new-ui/ComplicateIcons/ImageToText.tsx b/packages/design-system/src/new-ui/ComplicateIcons/ImageToText.tsx index 1abf091426..2cf263327c 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/ImageToText.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/ImageToText.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ComplicateIconBase, ComplicateIconBaseProps, diff --git a/packages/design-system/src/new-ui/ComplicateIcons/InstanceSegmentation.tsx b/packages/design-system/src/new-ui/ComplicateIcons/InstanceSegmentation.tsx index 01624ea837..0898ae3e32 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/InstanceSegmentation.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/InstanceSegmentation.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ComplicateIconBase, ComplicateIconBaseProps, diff --git a/packages/design-system/src/new-ui/ComplicateIcons/KeypointDetection.tsx b/packages/design-system/src/new-ui/ComplicateIcons/KeypointDetection.tsx index 2ef2ce4d3d..dc7cd2a40c 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/KeypointDetection.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/KeypointDetection.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ComplicateIconBase, ComplicateIconBaseProps, diff --git a/packages/design-system/src/new-ui/ComplicateIcons/Number.tsx b/packages/design-system/src/new-ui/ComplicateIcons/Number.tsx index 6752dd07ba..23f2294c61 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/Number.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/Number.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "../Icons/IconBase"; export const Number = React.forwardRef< diff --git a/packages/design-system/src/new-ui/ComplicateIcons/ObjectDetection.tsx b/packages/design-system/src/new-ui/ComplicateIcons/ObjectDetection.tsx index de2995ee25..d7edb620cb 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/ObjectDetection.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/ObjectDetection.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ComplicateIconBase, ComplicateIconBaseProps, diff --git a/packages/design-system/src/new-ui/ComplicateIcons/OpticalCharacterRecognition.tsx b/packages/design-system/src/new-ui/ComplicateIcons/OpticalCharacterRecognition.tsx index 3caa93ad95..dfa3e58874 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/OpticalCharacterRecognition.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/OpticalCharacterRecognition.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ComplicateIconBase, ComplicateIconBaseProps, diff --git a/packages/design-system/src/new-ui/ComplicateIcons/SemanticSegmentation.tsx b/packages/design-system/src/new-ui/ComplicateIcons/SemanticSegmentation.tsx index dd9546a3a6..d5010dbd27 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/SemanticSegmentation.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/SemanticSegmentation.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ComplicateIconBase, ComplicateIconBaseProps, diff --git a/packages/design-system/src/new-ui/ComplicateIcons/TextEmbedding.tsx b/packages/design-system/src/new-ui/ComplicateIcons/TextEmbedding.tsx index e93e1d4ab3..78470f62cc 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/TextEmbedding.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/TextEmbedding.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "../Icons/IconBase"; export const TextEmbedding = React.forwardRef< diff --git a/packages/design-system/src/new-ui/ComplicateIcons/TextGeneration.tsx b/packages/design-system/src/new-ui/ComplicateIcons/TextGeneration.tsx index b63301d385..be9ddfa2f6 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/TextGeneration.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/TextGeneration.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "../Icons/IconBase"; export const TextGeneration = React.forwardRef< diff --git a/packages/design-system/src/new-ui/ComplicateIcons/TextToImage.tsx b/packages/design-system/src/new-ui/ComplicateIcons/TextToImage.tsx index 3e8dc7d252..1c0909c9e3 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/TextToImage.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/TextToImage.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "../Icons/IconBase"; export const TextToImage = React.forwardRef< diff --git a/packages/design-system/src/new-ui/ComplicateIcons/ToggleLeft.tsx b/packages/design-system/src/new-ui/ComplicateIcons/ToggleLeft.tsx index 3fa1236b62..089df909c9 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/ToggleLeft.tsx +++ b/packages/design-system/src/new-ui/ComplicateIcons/ToggleLeft.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "../Icons/IconBase"; export const ToggleLeft = React.forwardRef< diff --git a/packages/design-system/src/new-ui/ComplicateIcons/index.ts b/packages/design-system/src/new-ui/ComplicateIcons/index.ts index 12f45ebfd3..85cd164498 100644 --- a/packages/design-system/src/new-ui/ComplicateIcons/index.ts +++ b/packages/design-system/src/new-ui/ComplicateIcons/index.ts @@ -1,4 +1,5 @@ import { Doc } from "./Doc"; +import { Drag } from "./Drag"; import { GitHub } from "./GitHub"; import { ImageClassification } from "./ImageClassification"; import { ImageToImage } from "./ImageToImage"; @@ -9,11 +10,10 @@ import { Number } from "./Number"; import { ObjectDetection } from "./ObjectDetection"; import { OpticalCharacterRecognition } from "./OpticalCharacterRecognition"; import { SemanticSegmentation } from "./SemanticSegmentation"; -import { ToggleLeft } from "./ToggleLeft"; import { TextEmbedding } from "./TextEmbedding"; import { TextGeneration } from "./TextGeneration"; import { TextToImage } from "./TextToImage"; -import { Drag } from "./Drag"; +import { ToggleLeft } from "./ToggleLeft"; export const ComplicateIcons = { Doc, diff --git a/packages/design-system/src/new-ui/DataTable/DataTable.stories.tsx b/packages/design-system/src/new-ui/DataTable/DataTable.stories.tsx index 589592391b..ff9373f1c8 100644 --- a/packages/design-system/src/new-ui/DataTable/DataTable.stories.tsx +++ b/packages/design-system/src/new-ui/DataTable/DataTable.stories.tsx @@ -1,12 +1,13 @@ import type { Meta } from "@storybook/react"; -import { DataTable } from "./DataTable"; +import * as React from "react"; import { ColumnDef } from "@tanstack/react-table"; + import { PipelineState } from "../../types/general"; -import { Tag } from "../Tag"; +import { Button } from "../Button"; import { Checkbox } from "../Checkbox"; import { Icons } from "../Icons"; -import { Button } from "../Button"; -import * as React from "react"; +import { Tag } from "../Tag"; +import { DataTable } from "./DataTable"; const meta: Meta = { title: "Components/NewUi/DataTable", diff --git a/packages/design-system/src/new-ui/DataTable/DataTable.tsx b/packages/design-system/src/new-ui/DataTable/DataTable.tsx index da33cd2d3c..3bac373599 100644 --- a/packages/design-system/src/new-ui/DataTable/DataTable.tsx +++ b/packages/design-system/src/new-ui/DataTable/DataTable.tsx @@ -4,21 +4,22 @@ import * as React from "react"; import { ColumnDef, ColumnFiltersState, - PaginationState, - SortingState, flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, + PaginationState, + SortingState, useReactTable, } from "@tanstack/react-table"; -import { Table } from "../Table"; -import { DataTablePagination } from "./DataTablePagination"; -import { Input } from "../Input"; + import { Nullable } from "../../types/general"; -import { Skeleton } from "../Skeleton"; import { Icons } from "../Icons"; +import { Input } from "../Input"; +import { Skeleton } from "../Skeleton"; +import { Table } from "../Table"; +import { DataTablePagination } from "./DataTablePagination"; interface DataTableProps { columns: ColumnDef[]; diff --git a/packages/design-system/src/new-ui/DataTable/DataTablePagination.tsx b/packages/design-system/src/new-ui/DataTable/DataTablePagination.tsx index f5198bc852..78ead8ba0a 100644 --- a/packages/design-system/src/new-ui/DataTable/DataTablePagination.tsx +++ b/packages/design-system/src/new-ui/DataTable/DataTablePagination.tsx @@ -1,7 +1,8 @@ import { Table } from "@tanstack/react-table"; +import cn from "clsx"; + import { Button } from "../Button"; import { Icons } from "../Icons"; -import cn from "clsx"; interface DataTablePaginationProps { table: Table; diff --git a/packages/design-system/src/new-ui/Dialog/Dialog.stories.tsx b/packages/design-system/src/new-ui/Dialog/Dialog.stories.tsx index 85f77491a6..a5162ec2b8 100644 --- a/packages/design-system/src/new-ui/Dialog/Dialog.stories.tsx +++ b/packages/design-system/src/new-ui/Dialog/Dialog.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { Dialog } from "./Dialog"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Dialog/Dialog.tsx b/packages/design-system/src/new-ui/Dialog/Dialog.tsx index 4b03b7fee2..4492ae5a2e 100644 --- a/packages/design-system/src/new-ui/Dialog/Dialog.tsx +++ b/packages/design-system/src/new-ui/Dialog/Dialog.tsx @@ -1,8 +1,9 @@ "use client"; -import cn from "clsx"; import * as React from "react"; import * as DialogPrimitive from "@radix-ui/react-dialog"; +import cn from "clsx"; + import { Icons } from "../Icons"; const DialogRoot = DialogPrimitive.Root; diff --git a/packages/design-system/src/new-ui/DropdownMenu/DropdownMenu.stories.tsx b/packages/design-system/src/new-ui/DropdownMenu/DropdownMenu.stories.tsx index a905110cc2..9e5d02713a 100644 --- a/packages/design-system/src/new-ui/DropdownMenu/DropdownMenu.stories.tsx +++ b/packages/design-system/src/new-ui/DropdownMenu/DropdownMenu.stories.tsx @@ -1,9 +1,10 @@ import type { Meta, StoryObj } from "@storybook/react"; -import { DropdownMenu } from "./DropdownMenu"; import * as React from "react"; -import { Button } from "../Button"; import { DropdownMenuCheckboxItemProps } from "@radix-ui/react-dropdown-menu"; + +import { Button } from "../Button"; import { Icons } from "../Icons"; +import { DropdownMenu } from "./DropdownMenu"; const meta: Meta = { title: "Components/NewUi/DropdownMenu", diff --git a/packages/design-system/src/new-ui/DropdownMenu/DropdownMenu.tsx b/packages/design-system/src/new-ui/DropdownMenu/DropdownMenu.tsx index 04fa7fb39a..a16a975096 100644 --- a/packages/design-system/src/new-ui/DropdownMenu/DropdownMenu.tsx +++ b/packages/design-system/src/new-ui/DropdownMenu/DropdownMenu.tsx @@ -2,10 +2,10 @@ import * as React from "react"; import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"; -import { Icons } from "../Icons"; - import cn from "clsx"; +import { Icons } from "../Icons"; + const DropdownMenuRoot = DropdownMenuPrimitive.Root; const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger; diff --git a/packages/design-system/src/new-ui/Field.tsx b/packages/design-system/src/new-ui/Field.tsx index cde49885df..64833ada72 100644 --- a/packages/design-system/src/new-ui/Field.tsx +++ b/packages/design-system/src/new-ui/Field.tsx @@ -1,5 +1,5 @@ -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; const Root = React.forwardRef< HTMLInputElement, diff --git a/packages/design-system/src/new-ui/Form/Form.stories.tsx b/packages/design-system/src/new-ui/Form/Form.stories.tsx index 23444241cc..25d2762128 100644 --- a/packages/design-system/src/new-ui/Form/Form.stories.tsx +++ b/packages/design-system/src/new-ui/Form/Form.stories.tsx @@ -1,10 +1,10 @@ -import * as z from "zod"; +import { zodResolver } from "@hookform/resolvers/zod"; import { Meta, StoryFn } from "@storybook/react"; import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; +import * as z from "zod"; -import { Form } from "./Form"; import { Input } from "../Input"; +import { Form } from "./Form"; const meta: Meta = { title: "Components/NewUi/Form", diff --git a/packages/design-system/src/new-ui/Form/Form.tsx b/packages/design-system/src/new-ui/Form/Form.tsx index 1f15d5c539..b50a53801b 100644 --- a/packages/design-system/src/new-ui/Form/Form.tsx +++ b/packages/design-system/src/new-ui/Form/Form.tsx @@ -1,9 +1,9 @@ "use client"; -import cn from "clsx"; import * as React from "react"; import * as LabelPrimitive from "@radix-ui/react-label"; import { Slot } from "@radix-ui/react-slot"; +import cn from "clsx"; import { Controller, ControllerProps, @@ -13,9 +13,9 @@ import { useFormContext, } from "react-hook-form"; +import { Nullable } from "../../types/general"; import { Label } from "../Label"; import { ParagraphWithHTML } from "../ParagraphWithHTML"; -import { Nullable } from "../../types/general"; const FormRoot = ReactHookFormProvider; diff --git a/packages/design-system/src/new-ui/Icons/Activity.tsx b/packages/design-system/src/new-ui/Icons/Activity.tsx index 4d809ed887..cce86544ee 100644 --- a/packages/design-system/src/new-ui/Icons/Activity.tsx +++ b/packages/design-system/src/new-ui/Icons/Activity.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Activity = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/AlertCircle.tsx b/packages/design-system/src/new-ui/Icons/AlertCircle.tsx index b7f683e698..d6e003cd21 100644 --- a/packages/design-system/src/new-ui/Icons/AlertCircle.tsx +++ b/packages/design-system/src/new-ui/Icons/AlertCircle.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const AlertCircle = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/AlertTriangle.tsx b/packages/design-system/src/new-ui/Icons/AlertTriangle.tsx index a5753931f1..fd72d60df1 100644 --- a/packages/design-system/src/new-ui/Icons/AlertTriangle.tsx +++ b/packages/design-system/src/new-ui/Icons/AlertTriangle.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const AlertTriangle = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/AlighLeft.tsx b/packages/design-system/src/new-ui/Icons/AlighLeft.tsx index 941dba7e87..9c42071e73 100644 --- a/packages/design-system/src/new-ui/Icons/AlighLeft.tsx +++ b/packages/design-system/src/new-ui/Icons/AlighLeft.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const AlighLeft = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ArrowDown.tsx b/packages/design-system/src/new-ui/Icons/ArrowDown.tsx index d61a1078c3..e09218af35 100644 --- a/packages/design-system/src/new-ui/Icons/ArrowDown.tsx +++ b/packages/design-system/src/new-ui/Icons/ArrowDown.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ArrowDown = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ArrowLeft.tsx b/packages/design-system/src/new-ui/Icons/ArrowLeft.tsx index 68be8c8a85..aedb5943b5 100644 --- a/packages/design-system/src/new-ui/Icons/ArrowLeft.tsx +++ b/packages/design-system/src/new-ui/Icons/ArrowLeft.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ArrowLeft = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ArrowNarrowLeft.tsx b/packages/design-system/src/new-ui/Icons/ArrowNarrowLeft.tsx index 67a2b53dae..8bdd078ebc 100644 --- a/packages/design-system/src/new-ui/Icons/ArrowNarrowLeft.tsx +++ b/packages/design-system/src/new-ui/Icons/ArrowNarrowLeft.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ArrowNarrowLeft = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ArrowNarrowRight.tsx b/packages/design-system/src/new-ui/Icons/ArrowNarrowRight.tsx index 1cb4836e77..7f2112d790 100644 --- a/packages/design-system/src/new-ui/Icons/ArrowNarrowRight.tsx +++ b/packages/design-system/src/new-ui/Icons/ArrowNarrowRight.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ArrowNarrowRight = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ArrowRight.tsx b/packages/design-system/src/new-ui/Icons/ArrowRight.tsx index b69022e9eb..d9ff1ca21c 100644 --- a/packages/design-system/src/new-ui/Icons/ArrowRight.tsx +++ b/packages/design-system/src/new-ui/Icons/ArrowRight.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ArrowRight = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ArrowUp.tsx b/packages/design-system/src/new-ui/Icons/ArrowUp.tsx index 3061bc1b9c..6303d6f1e0 100644 --- a/packages/design-system/src/new-ui/Icons/ArrowUp.tsx +++ b/packages/design-system/src/new-ui/Icons/ArrowUp.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ArrowUp = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ArrowUpRight.tsx b/packages/design-system/src/new-ui/Icons/ArrowUpRight.tsx index 65f6373b01..0b87cf32e5 100644 --- a/packages/design-system/src/new-ui/Icons/ArrowUpRight.tsx +++ b/packages/design-system/src/new-ui/Icons/ArrowUpRight.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ArrowUpRight = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/BarChartSquare02.tsx b/packages/design-system/src/new-ui/Icons/BarChartSquare02.tsx index 2e3bbb68c9..bcbee94517 100644 --- a/packages/design-system/src/new-ui/Icons/BarChartSquare02.tsx +++ b/packages/design-system/src/new-ui/Icons/BarChartSquare02.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const BarChartSquare02 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/BookOpen02.tsx b/packages/design-system/src/new-ui/Icons/BookOpen02.tsx index acb64f636c..1270788c8a 100644 --- a/packages/design-system/src/new-ui/Icons/BookOpen02.tsx +++ b/packages/design-system/src/new-ui/Icons/BookOpen02.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const BookOpen02 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Box.tsx b/packages/design-system/src/new-ui/Icons/Box.tsx index fae4d6a93b..75e74b76f6 100644 --- a/packages/design-system/src/new-ui/Icons/Box.tsx +++ b/packages/design-system/src/new-ui/Icons/Box.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Box = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/BracketSlash.tsx b/packages/design-system/src/new-ui/Icons/BracketSlash.tsx index b044cb5888..ae917834d6 100644 --- a/packages/design-system/src/new-ui/Icons/BracketSlash.tsx +++ b/packages/design-system/src/new-ui/Icons/BracketSlash.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const BracketSlash = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Building05.tsx b/packages/design-system/src/new-ui/Icons/Building05.tsx index 77f6e38743..bab41b3e82 100644 --- a/packages/design-system/src/new-ui/Icons/Building05.tsx +++ b/packages/design-system/src/new-ui/Icons/Building05.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Building05 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/CardRefresh.tsx b/packages/design-system/src/new-ui/Icons/CardRefresh.tsx index 1f27991b8d..a57468741f 100644 --- a/packages/design-system/src/new-ui/Icons/CardRefresh.tsx +++ b/packages/design-system/src/new-ui/Icons/CardRefresh.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const CardRefresh = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Check.tsx b/packages/design-system/src/new-ui/Icons/Check.tsx index 8e3ccf0aa0..3a2e21d207 100644 --- a/packages/design-system/src/new-ui/Icons/Check.tsx +++ b/packages/design-system/src/new-ui/Icons/Check.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Check = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/CheckCircle.tsx b/packages/design-system/src/new-ui/Icons/CheckCircle.tsx index 3c06485854..23237204b6 100644 --- a/packages/design-system/src/new-ui/Icons/CheckCircle.tsx +++ b/packages/design-system/src/new-ui/Icons/CheckCircle.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const CheckCircle = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ChevronDown.tsx b/packages/design-system/src/new-ui/Icons/ChevronDown.tsx index 56d20a9f37..097a746390 100644 --- a/packages/design-system/src/new-ui/Icons/ChevronDown.tsx +++ b/packages/design-system/src/new-ui/Icons/ChevronDown.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ChevronDown = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ChevronDownDouble.tsx b/packages/design-system/src/new-ui/Icons/ChevronDownDouble.tsx index 6651d66657..aab8b453fe 100644 --- a/packages/design-system/src/new-ui/Icons/ChevronDownDouble.tsx +++ b/packages/design-system/src/new-ui/Icons/ChevronDownDouble.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ChevronDownDouble = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ChevronLeft.tsx b/packages/design-system/src/new-ui/Icons/ChevronLeft.tsx index 7a1ce07707..456d7e7cbe 100644 --- a/packages/design-system/src/new-ui/Icons/ChevronLeft.tsx +++ b/packages/design-system/src/new-ui/Icons/ChevronLeft.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ChevronLeft = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ChevronLeftDouble.tsx b/packages/design-system/src/new-ui/Icons/ChevronLeftDouble.tsx index dc852d7c6d..dd00d1e953 100644 --- a/packages/design-system/src/new-ui/Icons/ChevronLeftDouble.tsx +++ b/packages/design-system/src/new-ui/Icons/ChevronLeftDouble.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ChevronLeftDouble = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ChevronRight.tsx b/packages/design-system/src/new-ui/Icons/ChevronRight.tsx index 0411b1ea81..fea3c91f79 100644 --- a/packages/design-system/src/new-ui/Icons/ChevronRight.tsx +++ b/packages/design-system/src/new-ui/Icons/ChevronRight.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ChevronRight = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ChevronRightDouble.tsx b/packages/design-system/src/new-ui/Icons/ChevronRightDouble.tsx index af3de6de8e..53f252e278 100644 --- a/packages/design-system/src/new-ui/Icons/ChevronRightDouble.tsx +++ b/packages/design-system/src/new-ui/Icons/ChevronRightDouble.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ChevronRightDouble = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ChevronSelectorVertical.tsx b/packages/design-system/src/new-ui/Icons/ChevronSelectorVertical.tsx index e539264bf0..e3cefa4d54 100644 --- a/packages/design-system/src/new-ui/Icons/ChevronSelectorVertical.tsx +++ b/packages/design-system/src/new-ui/Icons/ChevronSelectorVertical.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ChevronSelectorVertical = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ChevronUp.tsx b/packages/design-system/src/new-ui/Icons/ChevronUp.tsx index f5554cf254..1538f8f6cd 100644 --- a/packages/design-system/src/new-ui/Icons/ChevronUp.tsx +++ b/packages/design-system/src/new-ui/Icons/ChevronUp.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ChevronUp = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ChevronUpDouble.tsx b/packages/design-system/src/new-ui/Icons/ChevronUpDouble.tsx index 5c971638fe..8abefe4ad9 100644 --- a/packages/design-system/src/new-ui/Icons/ChevronUpDouble.tsx +++ b/packages/design-system/src/new-ui/Icons/ChevronUpDouble.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ChevronUpDouble = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Chip01.tsx b/packages/design-system/src/new-ui/Icons/Chip01.tsx index 27723bd4c4..c584c7d994 100644 --- a/packages/design-system/src/new-ui/Icons/Chip01.tsx +++ b/packages/design-system/src/new-ui/Icons/Chip01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Chip01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Chip02.tsx b/packages/design-system/src/new-ui/Icons/Chip02.tsx index bb040c9f97..23568a7ac7 100644 --- a/packages/design-system/src/new-ui/Icons/Chip02.tsx +++ b/packages/design-system/src/new-ui/Icons/Chip02.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Chip02 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Circle.tsx b/packages/design-system/src/new-ui/Icons/Circle.tsx index 05d8845c54..e6e49781b4 100644 --- a/packages/design-system/src/new-ui/Icons/Circle.tsx +++ b/packages/design-system/src/new-ui/Icons/Circle.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Circle = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ClockRewind.tsx b/packages/design-system/src/new-ui/Icons/ClockRewind.tsx index 6b6619842c..0d5d8c7856 100644 --- a/packages/design-system/src/new-ui/Icons/ClockRewind.tsx +++ b/packages/design-system/src/new-ui/Icons/ClockRewind.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ClockRewind = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/CodeBrowser.tsx b/packages/design-system/src/new-ui/Icons/CodeBrowser.tsx index 634cc67514..09bda4a8e4 100644 --- a/packages/design-system/src/new-ui/Icons/CodeBrowser.tsx +++ b/packages/design-system/src/new-ui/Icons/CodeBrowser.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const CodeBrowser = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/CodeSnippet01.tsx b/packages/design-system/src/new-ui/Icons/CodeSnippet01.tsx index 96b7c9f7af..7e3b55c845 100644 --- a/packages/design-system/src/new-ui/Icons/CodeSnippet01.tsx +++ b/packages/design-system/src/new-ui/Icons/CodeSnippet01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const CodeSnippet01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/CodeSnippet02.tsx b/packages/design-system/src/new-ui/Icons/CodeSnippet02.tsx index 80bfc58934..49e52a3993 100644 --- a/packages/design-system/src/new-ui/Icons/CodeSnippet02.tsx +++ b/packages/design-system/src/new-ui/Icons/CodeSnippet02.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const CodeSnippet02 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/CodeSquare02.tsx b/packages/design-system/src/new-ui/Icons/CodeSquare02.tsx index 814aab597c..70d1403858 100644 --- a/packages/design-system/src/new-ui/Icons/CodeSquare02.tsx +++ b/packages/design-system/src/new-ui/Icons/CodeSquare02.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const CodeSquare02 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Coins01.tsx b/packages/design-system/src/new-ui/Icons/Coins01.tsx index acb018b81f..85f06905d7 100644 --- a/packages/design-system/src/new-ui/Icons/Coins01.tsx +++ b/packages/design-system/src/new-ui/Icons/Coins01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Coins01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/CoinsStacked01.tsx b/packages/design-system/src/new-ui/Icons/CoinsStacked01.tsx index 995960b6f5..27136b8203 100644 --- a/packages/design-system/src/new-ui/Icons/CoinsStacked01.tsx +++ b/packages/design-system/src/new-ui/Icons/CoinsStacked01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const CoinsStacked01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Copy06.tsx b/packages/design-system/src/new-ui/Icons/Copy06.tsx index 160e9aa353..56076f1fca 100644 --- a/packages/design-system/src/new-ui/Icons/Copy06.tsx +++ b/packages/design-system/src/new-ui/Icons/Copy06.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Copy06 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Copy07.tsx b/packages/design-system/src/new-ui/Icons/Copy07.tsx index 8ff33da8d4..326bb06b76 100644 --- a/packages/design-system/src/new-ui/Icons/Copy07.tsx +++ b/packages/design-system/src/new-ui/Icons/Copy07.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Copy07 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Cube01.tsx b/packages/design-system/src/new-ui/Icons/Cube01.tsx index 6d9fc07fd8..fb9ea2153f 100644 --- a/packages/design-system/src/new-ui/Icons/Cube01.tsx +++ b/packages/design-system/src/new-ui/Icons/Cube01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Cube01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/CubeOutline.tsx b/packages/design-system/src/new-ui/Icons/CubeOutline.tsx index b67870c384..4bb29945c2 100644 --- a/packages/design-system/src/new-ui/Icons/CubeOutline.tsx +++ b/packages/design-system/src/new-ui/Icons/CubeOutline.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const CubeOutline = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/CurrencyDollar.tsx b/packages/design-system/src/new-ui/Icons/CurrencyDollar.tsx index 816c6cc48d..50db8730cc 100644 --- a/packages/design-system/src/new-ui/Icons/CurrencyDollar.tsx +++ b/packages/design-system/src/new-ui/Icons/CurrencyDollar.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const CurrencyDollar = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Database01.tsx b/packages/design-system/src/new-ui/Icons/Database01.tsx index 5ed8a08966..afe00370c0 100644 --- a/packages/design-system/src/new-ui/Icons/Database01.tsx +++ b/packages/design-system/src/new-ui/Icons/Database01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Database01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/DotsHorizontal.tsx b/packages/design-system/src/new-ui/Icons/DotsHorizontal.tsx index 282fbeba6c..1b8dc4c5a1 100644 --- a/packages/design-system/src/new-ui/Icons/DotsHorizontal.tsx +++ b/packages/design-system/src/new-ui/Icons/DotsHorizontal.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const DotsHorizontal = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/DotsVertical.tsx b/packages/design-system/src/new-ui/Icons/DotsVertical.tsx index ff22efd55c..093be42699 100644 --- a/packages/design-system/src/new-ui/Icons/DotsVertical.tsx +++ b/packages/design-system/src/new-ui/Icons/DotsVertical.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const DotsVertical = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/DownloadCloud01.tsx b/packages/design-system/src/new-ui/Icons/DownloadCloud01.tsx index ce9f37dd80..60551496d3 100644 --- a/packages/design-system/src/new-ui/Icons/DownloadCloud01.tsx +++ b/packages/design-system/src/new-ui/Icons/DownloadCloud01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const DownloadCloud01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Edit03.tsx b/packages/design-system/src/new-ui/Icons/Edit03.tsx index 35e1a8a1f2..038c9781df 100644 --- a/packages/design-system/src/new-ui/Icons/Edit03.tsx +++ b/packages/design-system/src/new-ui/Icons/Edit03.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Edit03 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Edit05.tsx b/packages/design-system/src/new-ui/Icons/Edit05.tsx index af3fb0414c..bbc10063a2 100644 --- a/packages/design-system/src/new-ui/Icons/Edit05.tsx +++ b/packages/design-system/src/new-ui/Icons/Edit05.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Edit05 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/File02.tsx b/packages/design-system/src/new-ui/Icons/File02.tsx index 446e6c1fc8..3dc22ff734 100644 --- a/packages/design-system/src/new-ui/Icons/File02.tsx +++ b/packages/design-system/src/new-ui/Icons/File02.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const File02 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/File04.tsx b/packages/design-system/src/new-ui/Icons/File04.tsx index ea01e84ba6..fc60737af9 100644 --- a/packages/design-system/src/new-ui/Icons/File04.tsx +++ b/packages/design-system/src/new-ui/Icons/File04.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const File04 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/File05.tsx b/packages/design-system/src/new-ui/Icons/File05.tsx index cc211e8630..27902bf285 100644 --- a/packages/design-system/src/new-ui/Icons/File05.tsx +++ b/packages/design-system/src/new-ui/Icons/File05.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const File05 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/File06.tsx b/packages/design-system/src/new-ui/Icons/File06.tsx index a2989ba215..0a8c3e90d4 100644 --- a/packages/design-system/src/new-ui/Icons/File06.tsx +++ b/packages/design-system/src/new-ui/Icons/File06.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const File06 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/FileMinus01.tsx b/packages/design-system/src/new-ui/Icons/FileMinus01.tsx index fd56e4e3f1..bf5ef8b72a 100644 --- a/packages/design-system/src/new-ui/Icons/FileMinus01.tsx +++ b/packages/design-system/src/new-ui/Icons/FileMinus01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const FileMinus01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/FilePlus01.tsx b/packages/design-system/src/new-ui/Icons/FilePlus01.tsx index 0b7413669a..7603592fdb 100644 --- a/packages/design-system/src/new-ui/Icons/FilePlus01.tsx +++ b/packages/design-system/src/new-ui/Icons/FilePlus01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const FilePlus01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/FilePlus02.tsx b/packages/design-system/src/new-ui/Icons/FilePlus02.tsx index 483a3267f6..ab0b8b484e 100644 --- a/packages/design-system/src/new-ui/Icons/FilePlus02.tsx +++ b/packages/design-system/src/new-ui/Icons/FilePlus02.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const FilePlus02 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/FilterLines.tsx b/packages/design-system/src/new-ui/Icons/FilterLines.tsx index 7bfb430d6d..e13f4f3aae 100644 --- a/packages/design-system/src/new-ui/Icons/FilterLines.tsx +++ b/packages/design-system/src/new-ui/Icons/FilterLines.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const FilterLines = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Gear01.tsx b/packages/design-system/src/new-ui/Icons/Gear01.tsx index 1412669dd0..4273486004 100644 --- a/packages/design-system/src/new-ui/Icons/Gear01.tsx +++ b/packages/design-system/src/new-ui/Icons/Gear01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Gear01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Globe01.tsx b/packages/design-system/src/new-ui/Icons/Globe01.tsx index 0b9e0cec50..06ba738afb 100644 --- a/packages/design-system/src/new-ui/Icons/Globe01.tsx +++ b/packages/design-system/src/new-ui/Icons/Globe01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Globe01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/HelpCircle.tsx b/packages/design-system/src/new-ui/Icons/HelpCircle.tsx index f9acf4658a..a44a5939cb 100644 --- a/packages/design-system/src/new-ui/Icons/HelpCircle.tsx +++ b/packages/design-system/src/new-ui/Icons/HelpCircle.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const HelpCircle = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/IconBase/IconBase.tsx b/packages/design-system/src/new-ui/Icons/IconBase/IconBase.tsx index 485bd80ac6..032a002c17 100644 --- a/packages/design-system/src/new-ui/Icons/IconBase/IconBase.tsx +++ b/packages/design-system/src/new-ui/Icons/IconBase/IconBase.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + export type IconBaseProps = { viewBox: string; className?: string; diff --git a/packages/design-system/src/new-ui/Icons/Icons.stories.tsx b/packages/design-system/src/new-ui/Icons/Icons.stories.tsx index bb02618025..67b7e70c82 100644 --- a/packages/design-system/src/new-ui/Icons/Icons.stories.tsx +++ b/packages/design-system/src/new-ui/Icons/Icons.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import { Icons } from "."; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Icons/Image01.tsx b/packages/design-system/src/new-ui/Icons/Image01.tsx index 1b820efd54..90663667ab 100644 --- a/packages/design-system/src/new-ui/Icons/Image01.tsx +++ b/packages/design-system/src/new-ui/Icons/Image01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Image01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ImagePlus.tsx b/packages/design-system/src/new-ui/Icons/ImagePlus.tsx index 569b3f90b1..c2df7e36ca 100644 --- a/packages/design-system/src/new-ui/Icons/ImagePlus.tsx +++ b/packages/design-system/src/new-ui/Icons/ImagePlus.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ImagePlus = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/InfoCircle.tsx b/packages/design-system/src/new-ui/Icons/InfoCircle.tsx index b1ad5c5805..60fda536c3 100644 --- a/packages/design-system/src/new-ui/Icons/InfoCircle.tsx +++ b/packages/design-system/src/new-ui/Icons/InfoCircle.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const InfoCircle = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/InfoSquare.tsx b/packages/design-system/src/new-ui/Icons/InfoSquare.tsx index ad57c6346c..84daf4a7af 100644 --- a/packages/design-system/src/new-ui/Icons/InfoSquare.tsx +++ b/packages/design-system/src/new-ui/Icons/InfoSquare.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const InfoSquare = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/IntersectSquare.tsx b/packages/design-system/src/new-ui/Icons/IntersectSquare.tsx index 80c2588ee1..4c03c9f82d 100644 --- a/packages/design-system/src/new-ui/Icons/IntersectSquare.tsx +++ b/packages/design-system/src/new-ui/Icons/IntersectSquare.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const IntersectSquare = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/LayersTwo01.tsx b/packages/design-system/src/new-ui/Icons/LayersTwo01.tsx index b09c555cd0..4ad3405c04 100644 --- a/packages/design-system/src/new-ui/Icons/LayersTwo01.tsx +++ b/packages/design-system/src/new-ui/Icons/LayersTwo01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const LayersTwo01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Lightning01.tsx b/packages/design-system/src/new-ui/Icons/Lightning01.tsx index c836b5f9e1..34dcf6fdcc 100644 --- a/packages/design-system/src/new-ui/Icons/Lightning01.tsx +++ b/packages/design-system/src/new-ui/Icons/Lightning01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Lightning01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Link01.tsx b/packages/design-system/src/new-ui/Icons/Link01.tsx index d41656f299..9285fa149b 100644 --- a/packages/design-system/src/new-ui/Icons/Link01.tsx +++ b/packages/design-system/src/new-ui/Icons/Link01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Link01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Lock03.tsx b/packages/design-system/src/new-ui/Icons/Lock03.tsx index ad37785b51..21ba6632c2 100644 --- a/packages/design-system/src/new-ui/Icons/Lock03.tsx +++ b/packages/design-system/src/new-ui/Icons/Lock03.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Lock03 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/LockUnlocked03.tsx b/packages/design-system/src/new-ui/Icons/LockUnlocked03.tsx index a62eb378fe..0cd8e4115b 100644 --- a/packages/design-system/src/new-ui/Icons/LockUnlocked03.tsx +++ b/packages/design-system/src/new-ui/Icons/LockUnlocked03.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const LockUnlocked03 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Logout01.tsx b/packages/design-system/src/new-ui/Icons/Logout01.tsx index dbddbb3309..1bdd01bb4e 100644 --- a/packages/design-system/src/new-ui/Icons/Logout01.tsx +++ b/packages/design-system/src/new-ui/Icons/Logout01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Logout01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Mail01.tsx b/packages/design-system/src/new-ui/Icons/Mail01.tsx index b6e4c93ef7..67ccc86a08 100644 --- a/packages/design-system/src/new-ui/Icons/Mail01.tsx +++ b/packages/design-system/src/new-ui/Icons/Mail01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Mail01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/MasterCard.tsx b/packages/design-system/src/new-ui/Icons/MasterCard.tsx index 9fb087473d..45bcd22d6c 100644 --- a/packages/design-system/src/new-ui/Icons/MasterCard.tsx +++ b/packages/design-system/src/new-ui/Icons/MasterCard.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const MasterCard = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Menu01.tsx b/packages/design-system/src/new-ui/Icons/Menu01.tsx index a42c8ab0c9..cbf2f37408 100644 --- a/packages/design-system/src/new-ui/Icons/Menu01.tsx +++ b/packages/design-system/src/new-ui/Icons/Menu01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Menu01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/MessageChatSquare.tsx b/packages/design-system/src/new-ui/Icons/MessageChatSquare.tsx index 3976e856dd..1d99194ab9 100644 --- a/packages/design-system/src/new-ui/Icons/MessageChatSquare.tsx +++ b/packages/design-system/src/new-ui/Icons/MessageChatSquare.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const MessageChatSquare = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/MessageSmileSquare.tsx b/packages/design-system/src/new-ui/Icons/MessageSmileSquare.tsx index c021492809..dcba2d6d10 100644 --- a/packages/design-system/src/new-ui/Icons/MessageSmileSquare.tsx +++ b/packages/design-system/src/new-ui/Icons/MessageSmileSquare.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const MessageSmileSquare = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Minus.tsx b/packages/design-system/src/new-ui/Icons/Minus.tsx index 6df78c8342..98ac925660 100644 --- a/packages/design-system/src/new-ui/Icons/Minus.tsx +++ b/packages/design-system/src/new-ui/Icons/Minus.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Minus = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Model.tsx b/packages/design-system/src/new-ui/Icons/Model.tsx index 09660152d5..2051b65078 100644 --- a/packages/design-system/src/new-ui/Icons/Model.tsx +++ b/packages/design-system/src/new-ui/Icons/Model.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Model = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/MultipleVideo.tsx b/packages/design-system/src/new-ui/Icons/MultipleVideo.tsx index 6d00407c72..eceaa8108f 100644 --- a/packages/design-system/src/new-ui/Icons/MultipleVideo.tsx +++ b/packages/design-system/src/new-ui/Icons/MultipleVideo.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const MultipleVideo = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/NewModel.tsx b/packages/design-system/src/new-ui/Icons/NewModel.tsx index 790c5da687..d685224b0c 100644 --- a/packages/design-system/src/new-ui/Icons/NewModel.tsx +++ b/packages/design-system/src/new-ui/Icons/NewModel.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const NewModel = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/PauseCircle.tsx b/packages/design-system/src/new-ui/Icons/PauseCircle.tsx index a1bcc6a2b8..877dbae8b1 100644 --- a/packages/design-system/src/new-ui/Icons/PauseCircle.tsx +++ b/packages/design-system/src/new-ui/Icons/PauseCircle.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const PauseCircle = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Pipeline.tsx b/packages/design-system/src/new-ui/Icons/Pipeline.tsx index bd6b0a3145..4c7a04ae1c 100644 --- a/packages/design-system/src/new-ui/Icons/Pipeline.tsx +++ b/packages/design-system/src/new-ui/Icons/Pipeline.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Pipeline = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Play.tsx b/packages/design-system/src/new-ui/Icons/Play.tsx index 1b9e945509..f9e112ef1e 100644 --- a/packages/design-system/src/new-ui/Icons/Play.tsx +++ b/packages/design-system/src/new-ui/Icons/Play.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Play = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/PlayCircle.tsx b/packages/design-system/src/new-ui/Icons/PlayCircle.tsx index e99619bdff..c7287f8b95 100644 --- a/packages/design-system/src/new-ui/Icons/PlayCircle.tsx +++ b/packages/design-system/src/new-ui/Icons/PlayCircle.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const PlayCircle = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Plus.tsx b/packages/design-system/src/new-ui/Icons/Plus.tsx index 03b4578e9d..db7b48528c 100644 --- a/packages/design-system/src/new-ui/Icons/Plus.tsx +++ b/packages/design-system/src/new-ui/Icons/Plus.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Plus = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Recording02.tsx b/packages/design-system/src/new-ui/Icons/Recording02.tsx index 6d6e007dd9..6a056f7bd7 100644 --- a/packages/design-system/src/new-ui/Icons/Recording02.tsx +++ b/packages/design-system/src/new-ui/Icons/Recording02.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Recording02 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Recording03.tsx b/packages/design-system/src/new-ui/Icons/Recording03.tsx index e892154462..00ab53dca8 100644 --- a/packages/design-system/src/new-ui/Icons/Recording03.tsx +++ b/packages/design-system/src/new-ui/Icons/Recording03.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Recording03 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Recording04.tsx b/packages/design-system/src/new-ui/Icons/Recording04.tsx index 881be7ad5a..97c57e0b7e 100644 --- a/packages/design-system/src/new-ui/Icons/Recording04.tsx +++ b/packages/design-system/src/new-ui/Icons/Recording04.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Recording04 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Recording05.tsx b/packages/design-system/src/new-ui/Icons/Recording05.tsx index 195510c0c8..2570954751 100644 --- a/packages/design-system/src/new-ui/Icons/Recording05.tsx +++ b/packages/design-system/src/new-ui/Icons/Recording05.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Recording05 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ReferenceIconCheck.tsx b/packages/design-system/src/new-ui/Icons/ReferenceIconCheck.tsx index 989dec39f7..06056dc90b 100644 --- a/packages/design-system/src/new-ui/Icons/ReferenceIconCheck.tsx +++ b/packages/design-system/src/new-ui/Icons/ReferenceIconCheck.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ReferenceIconCheck = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/ReferenceIconX.tsx b/packages/design-system/src/new-ui/Icons/ReferenceIconX.tsx index b38c24ebb4..c3d68c6596 100644 --- a/packages/design-system/src/new-ui/Icons/ReferenceIconX.tsx +++ b/packages/design-system/src/new-ui/Icons/ReferenceIconX.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const ReferenceIconX = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/RefreshCw05.tsx b/packages/design-system/src/new-ui/Icons/RefreshCw05.tsx index 438386829e..a7041a5fad 100644 --- a/packages/design-system/src/new-ui/Icons/RefreshCw05.tsx +++ b/packages/design-system/src/new-ui/Icons/RefreshCw05.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const RefreshCw05 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Repeat04.tsx b/packages/design-system/src/new-ui/Icons/Repeat04.tsx index aabd252687..3640d92fcb 100644 --- a/packages/design-system/src/new-ui/Icons/Repeat04.tsx +++ b/packages/design-system/src/new-ui/Icons/Repeat04.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Repeat04 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Rocket01.tsx b/packages/design-system/src/new-ui/Icons/Rocket01.tsx index 30ef220e71..2760ed8b75 100644 --- a/packages/design-system/src/new-ui/Icons/Rocket01.tsx +++ b/packages/design-system/src/new-ui/Icons/Rocket01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Rocket01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Save01.tsx b/packages/design-system/src/new-ui/Icons/Save01.tsx index 0abd7e59cc..a76f9cadae 100644 --- a/packages/design-system/src/new-ui/Icons/Save01.tsx +++ b/packages/design-system/src/new-ui/Icons/Save01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Save01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Scales02.tsx b/packages/design-system/src/new-ui/Icons/Scales02.tsx index a9ffdae8fd..d6ce7f8993 100644 --- a/packages/design-system/src/new-ui/Icons/Scales02.tsx +++ b/packages/design-system/src/new-ui/Icons/Scales02.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Scales02 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/SearchLg.tsx b/packages/design-system/src/new-ui/Icons/SearchLg.tsx index 941365e50f..1a5f779b9b 100644 --- a/packages/design-system/src/new-ui/Icons/SearchLg.tsx +++ b/packages/design-system/src/new-ui/Icons/SearchLg.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const SearchLg = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/SearchSm.tsx b/packages/design-system/src/new-ui/Icons/SearchSm.tsx index bd6a4a738e..361187e332 100644 --- a/packages/design-system/src/new-ui/Icons/SearchSm.tsx +++ b/packages/design-system/src/new-ui/Icons/SearchSm.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const SearchSm = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Settings02.tsx b/packages/design-system/src/new-ui/Icons/Settings02.tsx index 5e6d4d94a0..86cfb72474 100644 --- a/packages/design-system/src/new-ui/Icons/Settings02.tsx +++ b/packages/design-system/src/new-ui/Icons/Settings02.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Settings02 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Share07.tsx b/packages/design-system/src/new-ui/Icons/Share07.tsx index 4648ec740e..6959bed4f0 100644 --- a/packages/design-system/src/new-ui/Icons/Share07.tsx +++ b/packages/design-system/src/new-ui/Icons/Share07.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Share07 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Sliders01.tsx b/packages/design-system/src/new-ui/Icons/Sliders01.tsx index 5c7df68797..c67c876fae 100644 --- a/packages/design-system/src/new-ui/Icons/Sliders01.tsx +++ b/packages/design-system/src/new-ui/Icons/Sliders01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Sliders01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/SortLinesDown.tsx b/packages/design-system/src/new-ui/Icons/SortLinesDown.tsx index 7edbe8b51d..9efdf1a171 100644 --- a/packages/design-system/src/new-ui/Icons/SortLinesDown.tsx +++ b/packages/design-system/src/new-ui/Icons/SortLinesDown.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const SortLinesDown = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/SortLinesUp.tsx b/packages/design-system/src/new-ui/Icons/SortLinesUp.tsx index cc06d20ce3..0364855914 100644 --- a/packages/design-system/src/new-ui/Icons/SortLinesUp.tsx +++ b/packages/design-system/src/new-ui/Icons/SortLinesUp.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const SortLinesUp = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Speaker01.tsx b/packages/design-system/src/new-ui/Icons/Speaker01.tsx index 5712c8953f..c0651a7584 100644 --- a/packages/design-system/src/new-ui/Icons/Speaker01.tsx +++ b/packages/design-system/src/new-ui/Icons/Speaker01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Speaker01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/SpeechRecognition.tsx b/packages/design-system/src/new-ui/Icons/SpeechRecognition.tsx index 5dcf34cb54..19eb553a39 100644 --- a/packages/design-system/src/new-ui/Icons/SpeechRecognition.tsx +++ b/packages/design-system/src/new-ui/Icons/SpeechRecognition.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const SpeechRecognition = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Stop.tsx b/packages/design-system/src/new-ui/Icons/Stop.tsx index 0867958abf..f81fc7960c 100644 --- a/packages/design-system/src/new-ui/Icons/Stop.tsx +++ b/packages/design-system/src/new-ui/Icons/Stop.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Stop = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Tag01.tsx b/packages/design-system/src/new-ui/Icons/Tag01.tsx index d2f7b19b5a..78b0395415 100644 --- a/packages/design-system/src/new-ui/Icons/Tag01.tsx +++ b/packages/design-system/src/new-ui/Icons/Tag01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Tag01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/TextA.tsx b/packages/design-system/src/new-ui/Icons/TextA.tsx index 6911d4de5e..03f32e5813 100644 --- a/packages/design-system/src/new-ui/Icons/TextA.tsx +++ b/packages/design-system/src/new-ui/Icons/TextA.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const TextA = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/TextGenerationChat.tsx b/packages/design-system/src/new-ui/Icons/TextGenerationChat.tsx index 4fd365f091..481952151b 100644 --- a/packages/design-system/src/new-ui/Icons/TextGenerationChat.tsx +++ b/packages/design-system/src/new-ui/Icons/TextGenerationChat.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const TextGenerationChat = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Tool01.tsx b/packages/design-system/src/new-ui/Icons/Tool01.tsx index 26f32f4ea4..f13393aec4 100644 --- a/packages/design-system/src/new-ui/Icons/Tool01.tsx +++ b/packages/design-system/src/new-ui/Icons/Tool01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Tool01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Trash01.tsx b/packages/design-system/src/new-ui/Icons/Trash01.tsx index 181e23a28e..06e1c5e47a 100644 --- a/packages/design-system/src/new-ui/Icons/Trash01.tsx +++ b/packages/design-system/src/new-ui/Icons/Trash01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Trash01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Trash03.tsx b/packages/design-system/src/new-ui/Icons/Trash03.tsx index 0d161c2eb7..e7c7078a36 100644 --- a/packages/design-system/src/new-ui/Icons/Trash03.tsx +++ b/packages/design-system/src/new-ui/Icons/Trash03.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Trash03 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Type01.tsx b/packages/design-system/src/new-ui/Icons/Type01.tsx index 54b452cfad..6fc7c4eedc 100644 --- a/packages/design-system/src/new-ui/Icons/Type01.tsx +++ b/packages/design-system/src/new-ui/Icons/Type01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Type01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Type02.tsx b/packages/design-system/src/new-ui/Icons/Type02.tsx index 306dfd7067..c395c26e1d 100644 --- a/packages/design-system/src/new-ui/Icons/Type02.tsx +++ b/packages/design-system/src/new-ui/Icons/Type02.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Type02 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/TypePlus.tsx b/packages/design-system/src/new-ui/Icons/TypePlus.tsx index d5fda80bcf..2d4f63f678 100644 --- a/packages/design-system/src/new-ui/Icons/TypePlus.tsx +++ b/packages/design-system/src/new-ui/Icons/TypePlus.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const TypePlus = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Update.tsx b/packages/design-system/src/new-ui/Icons/Update.tsx index eddf13c971..50434f42ef 100644 --- a/packages/design-system/src/new-ui/Icons/Update.tsx +++ b/packages/design-system/src/new-ui/Icons/Update.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Update = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Upload01.tsx b/packages/design-system/src/new-ui/Icons/Upload01.tsx index 98935cf3dd..5b1040d823 100644 --- a/packages/design-system/src/new-ui/Icons/Upload01.tsx +++ b/packages/design-system/src/new-ui/Icons/Upload01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Upload01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/User01.tsx b/packages/design-system/src/new-ui/Icons/User01.tsx index 6b983b3817..30e8c7f329 100644 --- a/packages/design-system/src/new-ui/Icons/User01.tsx +++ b/packages/design-system/src/new-ui/Icons/User01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const User01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/User02.tsx b/packages/design-system/src/new-ui/Icons/User02.tsx index 7caf70583b..2297422b2b 100644 --- a/packages/design-system/src/new-ui/Icons/User02.tsx +++ b/packages/design-system/src/new-ui/Icons/User02.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const User02 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/UserPlus01.tsx b/packages/design-system/src/new-ui/Icons/UserPlus01.tsx index c921307788..3fee51bfdb 100644 --- a/packages/design-system/src/new-ui/Icons/UserPlus01.tsx +++ b/packages/design-system/src/new-ui/Icons/UserPlus01.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const UserPlus01 = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Video.tsx b/packages/design-system/src/new-ui/Icons/Video.tsx index 3f7e2d5a33..d5f23c07e1 100644 --- a/packages/design-system/src/new-ui/Icons/Video.tsx +++ b/packages/design-system/src/new-ui/Icons/Video.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Video = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/VideoRecorder.tsx b/packages/design-system/src/new-ui/Icons/VideoRecorder.tsx index f1fc47104a..28fca1eea6 100644 --- a/packages/design-system/src/new-ui/Icons/VideoRecorder.tsx +++ b/packages/design-system/src/new-ui/Icons/VideoRecorder.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const VideoRecorder = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/Visa.tsx b/packages/design-system/src/new-ui/Icons/Visa.tsx index 384b2ed881..76a3b9c48c 100644 --- a/packages/design-system/src/new-ui/Icons/Visa.tsx +++ b/packages/design-system/src/new-ui/Icons/Visa.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const Visa = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/VisualQuestionAnswering.tsx b/packages/design-system/src/new-ui/Icons/VisualQuestionAnswering.tsx index a8374136a2..67c3778e1c 100644 --- a/packages/design-system/src/new-ui/Icons/VisualQuestionAnswering.tsx +++ b/packages/design-system/src/new-ui/Icons/VisualQuestionAnswering.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const VisualQuestionAnswering = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/X.tsx b/packages/design-system/src/new-ui/Icons/X.tsx index 94d2208295..5a82a94908 100644 --- a/packages/design-system/src/new-ui/Icons/X.tsx +++ b/packages/design-system/src/new-ui/Icons/X.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { IconBase, IconBaseProps } from "./IconBase"; export const X = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Icons/index.ts b/packages/design-system/src/new-ui/Icons/index.ts index 8d6f3bd81e..f5021ded08 100644 --- a/packages/design-system/src/new-ui/Icons/index.ts +++ b/packages/design-system/src/new-ui/Icons/index.ts @@ -2,29 +2,20 @@ import { Activity } from "./Activity"; import { AlertCircle } from "./AlertCircle"; import { AlertTriangle } from "./AlertTriangle"; import { AlighLeft } from "./AlighLeft"; -import { ArrowUp } from "./ArrowUp"; import { ArrowDown } from "./ArrowDown"; import { ArrowLeft } from "./ArrowLeft"; -import { ArrowRight } from "./ArrowRight"; import { ArrowNarrowLeft } from "./ArrowNarrowLeft"; import { ArrowNarrowRight } from "./ArrowNarrowRight"; +import { ArrowRight } from "./ArrowRight"; +import { ArrowUp } from "./ArrowUp"; import { ArrowUpRight } from "./ArrowUpRight"; import { BarChartSquare02 } from "./BarChartSquare02"; import { BookOpen02 } from "./BookOpen02"; import { Box } from "./Box"; import { BracketSlash } from "./BracketSlash"; import { Building05 } from "./Building05"; +import { CardRefresh } from "./CardRefresh"; import { Check } from "./Check"; -import { Circle } from "./Circle"; -import { ClockRewind } from "./ClockRewind"; -import { CodeBrowser } from "./CodeBrowser"; -import { CodeSnippet01 } from "./CodeSnippet01"; -import { CodeSnippet02 } from "./CodeSnippet02"; -import { CodeSquare02 } from "./CodeSquare02"; -import { Coins01 } from "./Coins01"; -import { CoinsStacked01 } from "./CoinsStacked01"; -import { Copy06 } from "./Copy06"; -import { Copy07 } from "./Copy07"; import { CheckCircle } from "./CheckCircle"; import { ChevronDown } from "./ChevronDown"; import { ChevronDownDouble } from "./ChevronDownDouble"; @@ -32,13 +23,24 @@ import { ChevronLeft } from "./ChevronLeft"; import { ChevronLeftDouble } from "./ChevronLeftDouble"; import { ChevronRight } from "./ChevronRight"; import { ChevronRightDouble } from "./ChevronRightDouble"; +import { ChevronSelectorVertical } from "./ChevronSelectorVertical"; import { ChevronUp } from "./ChevronUp"; import { ChevronUpDouble } from "./ChevronUpDouble"; -import { ChevronSelectorVertical } from "./ChevronSelectorVertical"; import { Chip01 } from "./Chip01"; import { Chip02 } from "./Chip02"; +import { Circle } from "./Circle"; +import { ClockRewind } from "./ClockRewind"; +import { CodeBrowser } from "./CodeBrowser"; +import { CodeSnippet01 } from "./CodeSnippet01"; +import { CodeSnippet02 } from "./CodeSnippet02"; +import { CodeSquare02 } from "./CodeSquare02"; +import { Coins01 } from "./Coins01"; +import { CoinsStacked01 } from "./CoinsStacked01"; +import { Copy06 } from "./Copy06"; +import { Copy07 } from "./Copy07"; import { Cube01 } from "./Cube01"; import { CubeOutline } from "./CubeOutline"; +import { CurrencyDollar } from "./CurrencyDollar"; import { Database01 } from "./Database01"; import { DotsHorizontal } from "./DotsHorizontal"; import { DotsVertical } from "./DotsVertical"; @@ -56,73 +58,71 @@ import { FilterLines } from "./FilterLines"; import { Gear01 } from "./Gear01"; import { Globe01 } from "./Globe01"; import { HelpCircle } from "./HelpCircle"; +import { Image01 } from "./Image01"; +import { ImagePlus } from "./ImagePlus"; +import { InfoCircle } from "./InfoCircle"; +import { InfoSquare } from "./InfoSquare"; import { IntersectSquare } from "./IntersectSquare"; +import { LayersTwo01 } from "./LayersTwo01"; +import { Lightning01 } from "./Lightning01"; import { Link01 } from "./Link01"; import { Lock03 } from "./Lock03"; import { LockUnlocked03 } from "./LockUnlocked03"; -import { InfoCircle } from "./InfoCircle"; -import { InfoSquare } from "./InfoSquare"; -import { Image01 } from "./Image01"; -import { ImagePlus } from "./ImagePlus"; import { Logout01 } from "./Logout01"; -import { LayersTwo01 } from "./LayersTwo01"; -import { Lightning01 } from "./Lightning01"; -import { MultipleVideo } from "./MultipleVideo"; -import { Model } from "./Model"; +import { Mail01 } from "./Mail01"; import { MasterCard } from "./MasterCard"; import { Menu01 } from "./Menu01"; import { MessageChatSquare } from "./MessageChatSquare"; -import { Minus } from "./Minus"; -import { Mail01 } from "./Mail01"; import { MessageSmileSquare } from "./MessageSmileSquare"; +import { Minus } from "./Minus"; +import { Model } from "./Model"; +import { MultipleVideo } from "./MultipleVideo"; import { NewModel } from "./NewModel"; import { PauseCircle } from "./PauseCircle"; import { Pipeline } from "./Pipeline"; -import { Plus } from "./Plus"; import { Play } from "./Play"; import { PlayCircle } from "./PlayCircle"; -import { RefreshCw05 } from "./RefreshCw05"; -import { Repeat04 } from "./Repeat04"; +import { Plus } from "./Plus"; import { Recording02 } from "./Recording02"; import { Recording03 } from "./Recording03"; import { Recording04 } from "./Recording04"; import { Recording05 } from "./Recording05"; import { ReferenceIconCheck } from "./ReferenceIconCheck"; import { ReferenceIconX } from "./ReferenceIconX"; +import { RefreshCw05 } from "./RefreshCw05"; +import { Repeat04 } from "./Repeat04"; import { Rocket01 } from "./Rocket01"; import { Save01 } from "./Save01"; import { Scales02 } from "./Scales02"; -import { Settings02 } from "./Settings02"; -import { Sliders01 } from "./Sliders01"; -import { SpeechRecognition } from "./SpeechRecognition"; -import { Speaker01 } from "./Speaker01"; -import { Stop } from "./Stop"; import { SearchLg } from "./SearchLg"; import { SearchSm } from "./SearchSm"; +import { Settings02 } from "./Settings02"; import { Share07 } from "./Share07"; +import { Sliders01 } from "./Sliders01"; import { SortLinesDown } from "./SortLinesDown"; import { SortLinesUp } from "./SortLinesUp"; +import { Speaker01 } from "./Speaker01"; +import { SpeechRecognition } from "./SpeechRecognition"; +import { Stop } from "./Stop"; import { Tag01 } from "./Tag01"; import { TextA } from "./TextA"; import { TextGenerationChat } from "./TextGenerationChat"; +import { Tool01 } from "./Tool01"; import { Trash01 } from "./Trash01"; import { Trash03 } from "./Trash03"; import { Type01 } from "./Type01"; import { Type02 } from "./Type02"; import { TypePlus } from "./TypePlus"; -import { Tool01 } from "./Tool01"; +import { Update } from "./Update"; import { Upload01 } from "./Upload01"; import { User01 } from "./User01"; import { User02 } from "./User02"; -import { Update } from "./Update"; import { UserPlus01 } from "./UserPlus01"; import { Video } from "./Video"; import { VideoRecorder } from "./VideoRecorder"; import { Visa } from "./Visa"; import { VisualQuestionAnswering } from "./VisualQuestionAnswering"; import { X } from "./X"; -import { CardRefresh } from "./CardRefresh"; -import { CurrencyDollar } from "./CurrencyDollar"; export const Icons = { Activity, diff --git a/packages/design-system/src/new-ui/Input/Input.stories.tsx b/packages/design-system/src/new-ui/Input/Input.stories.tsx index 6a26ee57be..5973700647 100644 --- a/packages/design-system/src/new-ui/Input/Input.stories.tsx +++ b/packages/design-system/src/new-ui/Input/Input.stories.tsx @@ -1,7 +1,8 @@ import * as React from "react"; import { Meta, StoryObj } from "@storybook/react"; -import { Input } from "./Input"; + import { Icons } from "../Icons"; +import { Input } from "./Input"; const meta: Meta = { title: "Components/NewUi/Input", diff --git a/packages/design-system/src/new-ui/Input/Input.tsx b/packages/design-system/src/new-ui/Input/Input.tsx index a1eac72138..1d0e871e06 100644 --- a/packages/design-system/src/new-ui/Input/Input.tsx +++ b/packages/design-system/src/new-ui/Input/Input.tsx @@ -1,7 +1,7 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; const Root = React.forwardRef< HTMLInputElement, diff --git a/packages/design-system/src/new-ui/Label/Label.stories.tsx b/packages/design-system/src/new-ui/Label/Label.stories.tsx index 207dd739e1..1309b69578 100644 --- a/packages/design-system/src/new-ui/Label/Label.stories.tsx +++ b/packages/design-system/src/new-ui/Label/Label.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { Label } from "./Label"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Label/Label.tsx b/packages/design-system/src/new-ui/Label/Label.tsx index 62ae859587..b8f339d6de 100644 --- a/packages/design-system/src/new-ui/Label/Label.tsx +++ b/packages/design-system/src/new-ui/Label/Label.tsx @@ -1,8 +1,8 @@ "use client"; -import cn from "clsx"; import * as React from "react"; import * as LabelPrimitive from "@radix-ui/react-label"; +import cn from "clsx"; export const Label = React.forwardRef< React.ElementRef, diff --git a/packages/design-system/src/new-ui/LinkButton/LinkButton.stories.tsx b/packages/design-system/src/new-ui/LinkButton/LinkButton.stories.tsx index c5c91d8518..942c7013cb 100644 --- a/packages/design-system/src/new-ui/LinkButton/LinkButton.stories.tsx +++ b/packages/design-system/src/new-ui/LinkButton/LinkButton.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { LinkButton } from "./LinkButton"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/LinkButton/LinkButton.tsx b/packages/design-system/src/new-ui/LinkButton/LinkButton.tsx index 206d470835..e0ffaee7b8 100644 --- a/packages/design-system/src/new-ui/LinkButton/LinkButton.tsx +++ b/packages/design-system/src/new-ui/LinkButton/LinkButton.tsx @@ -1,9 +1,10 @@ "use client"; -import cn from "clsx"; +import type { VariantProps } from "class-variance-authority"; import * as React from "react"; import { Slot } from "@radix-ui/react-slot"; -import { cva, type VariantProps } from "class-variance-authority"; +import { cva } from "class-variance-authority"; +import cn from "clsx"; const linkButtonVariants = cva( "group inline-flex items-center justify-center py-1 transition-colors !underline underline-offset-4 !decoration-1 focus:outline-none focus-visible:outline-none disabled:pointer-events-none", diff --git a/packages/design-system/src/new-ui/Logos/ATFExpand.tsx b/packages/design-system/src/new-ui/Logos/ATFExpand.tsx index 5f7d1c8004..019f1b42b0 100644 --- a/packages/design-system/src/new-ui/Logos/ATFExpand.tsx +++ b/packages/design-system/src/new-ui/Logos/ATFExpand.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const ATFExpand = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/ATFSquare.tsx b/packages/design-system/src/new-ui/Logos/ATFSquare.tsx index b5eda63bab..b2976b288b 100644 --- a/packages/design-system/src/new-ui/Logos/ATFSquare.tsx +++ b/packages/design-system/src/new-ui/Logos/ATFSquare.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const ATFSquare = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/Anthropic.tsx b/packages/design-system/src/new-ui/Logos/Anthropic.tsx index 4a088614c5..b707408a45 100644 --- a/packages/design-system/src/new-ui/Logos/Anthropic.tsx +++ b/packages/design-system/src/new-ui/Logos/Anthropic.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const Anthropic = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/AssemblyAI.tsx b/packages/design-system/src/new-ui/Logos/AssemblyAI.tsx index 8eb2bccc51..93ef097037 100644 --- a/packages/design-system/src/new-ui/Logos/AssemblyAI.tsx +++ b/packages/design-system/src/new-ui/Logos/AssemblyAI.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const AssemblyAI = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/Cohere.tsx b/packages/design-system/src/new-ui/Logos/Cohere.tsx index e6a6cbdea0..d955cc3085 100644 --- a/packages/design-system/src/new-ui/Logos/Cohere.tsx +++ b/packages/design-system/src/new-ui/Logos/Cohere.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const Cohere = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/HuggingFace.tsx b/packages/design-system/src/new-ui/Logos/HuggingFace.tsx index 41c1b0cea0..d89ac1bbbb 100644 --- a/packages/design-system/src/new-ui/Logos/HuggingFace.tsx +++ b/packages/design-system/src/new-ui/Logos/HuggingFace.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const HuggingFace = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/InstillCloud.tsx b/packages/design-system/src/new-ui/Logos/InstillCloud.tsx index e920f2e217..8a8a9ef360 100644 --- a/packages/design-system/src/new-ui/Logos/InstillCloud.tsx +++ b/packages/design-system/src/new-ui/Logos/InstillCloud.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const InstillCloud = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/InstillSquare.tsx b/packages/design-system/src/new-ui/Logos/InstillSquare.tsx index 02d4ae86d8..f6ff8f4ee4 100644 --- a/packages/design-system/src/new-ui/Logos/InstillSquare.tsx +++ b/packages/design-system/src/new-ui/Logos/InstillSquare.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const InstillSquare = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/Logo.stories.tsx b/packages/design-system/src/new-ui/Logos/Logo.stories.tsx index 136174c470..5bc64e1d7b 100644 --- a/packages/design-system/src/new-ui/Logos/Logo.stories.tsx +++ b/packages/design-system/src/new-ui/Logos/Logo.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import { Logos } from "."; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Logos/LogoBase/LogoBase.tsx b/packages/design-system/src/new-ui/Logos/LogoBase/LogoBase.tsx index 7a0dba136d..741022300e 100644 --- a/packages/design-system/src/new-ui/Logos/LogoBase/LogoBase.tsx +++ b/packages/design-system/src/new-ui/Logos/LogoBase/LogoBase.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + export type LogoBaseProps = { viewBox: string; className?: string; diff --git a/packages/design-system/src/new-ui/Logos/MDLExpand.tsx b/packages/design-system/src/new-ui/Logos/MDLExpand.tsx index 64d45587eb..44f8a82d65 100644 --- a/packages/design-system/src/new-ui/Logos/MDLExpand.tsx +++ b/packages/design-system/src/new-ui/Logos/MDLExpand.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const MDLExpand = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/MDLSquare.tsx b/packages/design-system/src/new-ui/Logos/MDLSquare.tsx index 113a626c16..172cb2e02c 100644 --- a/packages/design-system/src/new-ui/Logos/MDLSquare.tsx +++ b/packages/design-system/src/new-ui/Logos/MDLSquare.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const MDLSquare = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/Milvus.tsx b/packages/design-system/src/new-ui/Logos/Milvus.tsx index 2b282ade10..c635cdbcbf 100644 --- a/packages/design-system/src/new-ui/Logos/Milvus.tsx +++ b/packages/design-system/src/new-ui/Logos/Milvus.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const Milvus = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/Number.tsx b/packages/design-system/src/new-ui/Logos/Number.tsx index 4c798315c3..54efdc298d 100644 --- a/packages/design-system/src/new-ui/Logos/Number.tsx +++ b/packages/design-system/src/new-ui/Logos/Number.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const Number = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/OpenAI.tsx b/packages/design-system/src/new-ui/Logos/OpenAI.tsx index f6351a23df..b5289a9867 100644 --- a/packages/design-system/src/new-ui/Logos/OpenAI.tsx +++ b/packages/design-system/src/new-ui/Logos/OpenAI.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const OpenAI = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/Pinecode.tsx b/packages/design-system/src/new-ui/Logos/Pinecode.tsx index 61515c2460..efcea8b083 100644 --- a/packages/design-system/src/new-ui/Logos/Pinecode.tsx +++ b/packages/design-system/src/new-ui/Logos/Pinecode.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const Pinecode = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/StabilityAI.tsx b/packages/design-system/src/new-ui/Logos/StabilityAI.tsx index 32cbb6d147..bc02334ba7 100644 --- a/packages/design-system/src/new-ui/Logos/StabilityAI.tsx +++ b/packages/design-system/src/new-ui/Logos/StabilityAI.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const StabilityAI = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/TwitterDark.tsx b/packages/design-system/src/new-ui/Logos/TwitterDark.tsx index 39b2d93d13..e1942f10f0 100644 --- a/packages/design-system/src/new-ui/Logos/TwitterDark.tsx +++ b/packages/design-system/src/new-ui/Logos/TwitterDark.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const TwitterDark = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/TwitterLight.tsx b/packages/design-system/src/new-ui/Logos/TwitterLight.tsx index b0296eb4e8..673b18b462 100644 --- a/packages/design-system/src/new-ui/Logos/TwitterLight.tsx +++ b/packages/design-system/src/new-ui/Logos/TwitterLight.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const TwitterLight = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/VDPExpand.tsx b/packages/design-system/src/new-ui/Logos/VDPExpand.tsx index 1020302ee5..e83b6dd7e9 100644 --- a/packages/design-system/src/new-ui/Logos/VDPExpand.tsx +++ b/packages/design-system/src/new-ui/Logos/VDPExpand.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const VDPExpand = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/VDPSquare.tsx b/packages/design-system/src/new-ui/Logos/VDPSquare.tsx index 81dc8d1811..9bb36cd0f7 100644 --- a/packages/design-system/src/new-ui/Logos/VDPSquare.tsx +++ b/packages/design-system/src/new-ui/Logos/VDPSquare.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { LogoBase, LogoBaseProps } from "./LogoBase"; export const VDPSquare = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Logos/index.ts b/packages/design-system/src/new-ui/Logos/index.ts index 2191545d00..61ac5f3675 100644 --- a/packages/design-system/src/new-ui/Logos/index.ts +++ b/packages/design-system/src/new-ui/Logos/index.ts @@ -1,7 +1,7 @@ +import { Anthropic } from "./Anthropic"; import { AssemblyAI } from "./AssemblyAI"; -import { ATFSquare } from "./ATFSquare"; import { ATFExpand } from "./ATFExpand"; -import { Anthropic } from "./Anthropic"; +import { ATFSquare } from "./ATFSquare"; import { Cohere } from "./Cohere"; import { HuggingFace } from "./HuggingFace"; import { InstillCloud } from "./InstillCloud"; diff --git a/packages/design-system/src/new-ui/Menubar/Menubar.stories.tsx b/packages/design-system/src/new-ui/Menubar/Menubar.stories.tsx index d215f72133..9c665b800b 100644 --- a/packages/design-system/src/new-ui/Menubar/Menubar.stories.tsx +++ b/packages/design-system/src/new-ui/Menubar/Menubar.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { Menubar } from "./Menubar"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Menubar/Menubar.tsx b/packages/design-system/src/new-ui/Menubar/Menubar.tsx index 42cc772776..d657542aef 100644 --- a/packages/design-system/src/new-ui/Menubar/Menubar.tsx +++ b/packages/design-system/src/new-ui/Menubar/Menubar.tsx @@ -1,8 +1,9 @@ "use client"; -import cn from "clsx"; import * as React from "react"; import * as MenubarPrimitive from "@radix-ui/react-menubar"; +import cn from "clsx"; + import { Icons } from "../Icons"; const MenubarMenu = MenubarPrimitive.Menu; diff --git a/packages/design-system/src/new-ui/MultiSelect/MultiSelect.stories.tsx b/packages/design-system/src/new-ui/MultiSelect/MultiSelect.stories.tsx index 2f510bcac2..9cb4a871aa 100644 --- a/packages/design-system/src/new-ui/MultiSelect/MultiSelect.stories.tsx +++ b/packages/design-system/src/new-ui/MultiSelect/MultiSelect.stories.tsx @@ -1,7 +1,8 @@ import type { Meta } from "@storybook/react"; -import { Icons } from "../Icons"; import * as React from "react"; + import { SelectOption } from "../../types/general"; +import { Icons } from "../Icons"; import { MultiSelect } from "./MultiSelect"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/MultiSelect/MultiSelect.tsx b/packages/design-system/src/new-ui/MultiSelect/MultiSelect.tsx index f811c0d8e5..072913f50b 100644 --- a/packages/design-system/src/new-ui/MultiSelect/MultiSelect.tsx +++ b/packages/design-system/src/new-ui/MultiSelect/MultiSelect.tsx @@ -2,11 +2,12 @@ import * as React from "react"; import cn from "clsx"; -import { Command } from "../Command"; -import { Popover } from "../Popover"; -import { Icons } from "../Icons"; + import { Nullable, SelectOption } from "../../types/general"; import { Button } from "../Button"; +import { Command } from "../Command"; +import { Icons } from "../Icons"; +import { Popover } from "../Popover"; import { Tag } from "../Tag"; type ComboboxProps = { diff --git a/packages/design-system/src/new-ui/Pagination/Pagination.tsx b/packages/design-system/src/new-ui/Pagination/Pagination.tsx index d9fca0a01d..9097a634ec 100644 --- a/packages/design-system/src/new-ui/Pagination/Pagination.tsx +++ b/packages/design-system/src/new-ui/Pagination/Pagination.tsx @@ -1,7 +1,8 @@ import * as React from "react"; +import cn from "clsx"; + import { Button } from "../Button"; import { Icons } from "../Icons"; -import cn from "clsx"; type Align = "left" | "right" | "center"; diff --git a/packages/design-system/src/new-ui/ParagraphWithHTML/ParagraphWithHTML.stories.tsx b/packages/design-system/src/new-ui/ParagraphWithHTML/ParagraphWithHTML.stories.tsx index 7fc07c879a..cfe55b4cde 100644 --- a/packages/design-system/src/new-ui/ParagraphWithHTML/ParagraphWithHTML.stories.tsx +++ b/packages/design-system/src/new-ui/ParagraphWithHTML/ParagraphWithHTML.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { ParagraphWithHTML } from "./ParagraphWithHTML"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/ParagraphWithHTML/ParagraphWithHTML.tsx b/packages/design-system/src/new-ui/ParagraphWithHTML/ParagraphWithHTML.tsx index afafe441cb..0fc3bf4866 100644 --- a/packages/design-system/src/new-ui/ParagraphWithHTML/ParagraphWithHTML.tsx +++ b/packages/design-system/src/new-ui/ParagraphWithHTML/ParagraphWithHTML.tsx @@ -2,6 +2,7 @@ import * as React from "react"; import sanitizeHtml from "sanitize-html"; + import { Nullable } from "../../types/general"; /** diff --git a/packages/design-system/src/new-ui/Popover/Popover.stories.tsx b/packages/design-system/src/new-ui/Popover/Popover.stories.tsx index 890475e704..0686046f2e 100644 --- a/packages/design-system/src/new-ui/Popover/Popover.stories.tsx +++ b/packages/design-system/src/new-ui/Popover/Popover.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { Popover } from "./Popover"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Progress/Progress.stories.tsx b/packages/design-system/src/new-ui/Progress/Progress.stories.tsx index 4b21b806e0..a8085c0cf2 100644 --- a/packages/design-system/src/new-ui/Progress/Progress.stories.tsx +++ b/packages/design-system/src/new-ui/Progress/Progress.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { Progress } from "./Progress"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Progress/Progress.tsx b/packages/design-system/src/new-ui/Progress/Progress.tsx index 9523d7fb92..06c04ce636 100644 --- a/packages/design-system/src/new-ui/Progress/Progress.tsx +++ b/packages/design-system/src/new-ui/Progress/Progress.tsx @@ -1,8 +1,8 @@ "use client"; -import cn from "clsx"; import * as React from "react"; import * as ProgressPrimitive from "@radix-ui/react-progress"; +import cn from "clsx"; const Progress = React.forwardRef< React.ElementRef, diff --git a/packages/design-system/src/new-ui/ScrollArea/ScrollArea.stories.tsx b/packages/design-system/src/new-ui/ScrollArea/ScrollArea.stories.tsx index 91626396b9..75653b4620 100644 --- a/packages/design-system/src/new-ui/ScrollArea/ScrollArea.stories.tsx +++ b/packages/design-system/src/new-ui/ScrollArea/ScrollArea.stories.tsx @@ -1,7 +1,8 @@ -import * as React from "react"; import type { Meta, StoryObj } from "@storybook/react"; -import { ScrollArea } from "./ScrollArea"; +import * as React from "react"; + import { Separator } from "../Separator"; +import { ScrollArea } from "./ScrollArea"; const meta: Meta = { title: "Components/NewUi/ScrollArea", diff --git a/packages/design-system/src/new-ui/ScrollArea/ScrollArea.tsx b/packages/design-system/src/new-ui/ScrollArea/ScrollArea.tsx index 39a0477426..0f14e369fc 100644 --- a/packages/design-system/src/new-ui/ScrollArea/ScrollArea.tsx +++ b/packages/design-system/src/new-ui/ScrollArea/ScrollArea.tsx @@ -1,8 +1,8 @@ "use client"; import * as React from "react"; -import cn from "clsx"; import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"; +import cn from "clsx"; const ScrollAreaRoot = React.forwardRef< React.ElementRef, diff --git a/packages/design-system/src/new-ui/Select/Select.stories.tsx b/packages/design-system/src/new-ui/Select/Select.stories.tsx index 5051e881bb..ad066d4d93 100644 --- a/packages/design-system/src/new-ui/Select/Select.stories.tsx +++ b/packages/design-system/src/new-ui/Select/Select.stories.tsx @@ -1,7 +1,8 @@ import type { Meta, StoryObj } from "@storybook/react"; -import { Select } from "./Select"; -import { Icons } from "../Icons"; + import { ModelLogo } from "../../ui"; +import { Icons } from "../Icons"; +import { Select } from "./Select"; const meta: Meta = { title: "Components/NewUi/Select", diff --git a/packages/design-system/src/new-ui/Select/Select.tsx b/packages/design-system/src/new-ui/Select/Select.tsx index e6d616a15d..6a780dca43 100644 --- a/packages/design-system/src/new-ui/Select/Select.tsx +++ b/packages/design-system/src/new-ui/Select/Select.tsx @@ -1,8 +1,9 @@ "use client"; -import cn from "clsx"; import * as React from "react"; import * as SelectPrimitive from "@radix-ui/react-select"; +import cn from "clsx"; + import { Icons } from "../Icons"; const Root = SelectPrimitive.Root; diff --git a/packages/design-system/src/new-ui/Separator/Separator.stories.tsx b/packages/design-system/src/new-ui/Separator/Separator.stories.tsx index 94b51182be..b1d2f00f19 100644 --- a/packages/design-system/src/new-ui/Separator/Separator.stories.tsx +++ b/packages/design-system/src/new-ui/Separator/Separator.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { Separator } from "./Separator"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Separator/Separator.tsx b/packages/design-system/src/new-ui/Separator/Separator.tsx index c31e658ef3..287da9329b 100644 --- a/packages/design-system/src/new-ui/Separator/Separator.tsx +++ b/packages/design-system/src/new-ui/Separator/Separator.tsx @@ -1,8 +1,8 @@ "use client"; -import cn from "clsx"; import * as React from "react"; import * as SeparatorPrimitive from "@radix-ui/react-separator"; +import cn from "clsx"; const Separator = React.forwardRef< React.ElementRef, diff --git a/packages/design-system/src/new-ui/Skeleton/Skelton.stories.tsx b/packages/design-system/src/new-ui/Skeleton/Skelton.stories.tsx index 09e32251cd..814c474aca 100644 --- a/packages/design-system/src/new-ui/Skeleton/Skelton.stories.tsx +++ b/packages/design-system/src/new-ui/Skeleton/Skelton.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { Skeleton } from "./Skeleton"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Switch/Switch.stories.tsx b/packages/design-system/src/new-ui/Switch/Switch.stories.tsx index 12aca0d7cb..3487094183 100644 --- a/packages/design-system/src/new-ui/Switch/Switch.stories.tsx +++ b/packages/design-system/src/new-ui/Switch/Switch.stories.tsx @@ -1,10 +1,11 @@ -import { z } from "zod"; +import { zodResolver } from "@hookform/resolvers/zod"; import { Meta, StoryFn } from "@storybook/react"; -import { Switch } from "./Switch"; +import { useForm } from "react-hook-form"; +import { z } from "zod"; + import { Field } from "../Field"; import { Form } from "../Form"; -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; +import { Switch } from "./Switch"; const meta: Meta = { title: "Components/NewUi/Switch", diff --git a/packages/design-system/src/new-ui/Switch/Switch.tsx b/packages/design-system/src/new-ui/Switch/Switch.tsx index bb4aca1483..e2446dc40e 100644 --- a/packages/design-system/src/new-ui/Switch/Switch.tsx +++ b/packages/design-system/src/new-ui/Switch/Switch.tsx @@ -1,8 +1,8 @@ "use client"; -import cn from "clsx"; import * as React from "react"; import * as SwitchPrimitives from "@radix-ui/react-switch"; +import cn from "clsx"; const Switch = React.forwardRef< React.ElementRef, diff --git a/packages/design-system/src/new-ui/Table/Table.stories.tsx b/packages/design-system/src/new-ui/Table/Table.stories.tsx index dfc0e56a90..bd37a32db9 100644 --- a/packages/design-system/src/new-ui/Table/Table.stories.tsx +++ b/packages/design-system/src/new-ui/Table/Table.stories.tsx @@ -1,6 +1,7 @@ import type { Meta, StoryObj } from "@storybook/react"; -import { Table } from "./Table"; + import { Tag } from "../Tag"; +import { Table } from "./Table"; const meta: Meta = { title: "Components/NewUi/Table", diff --git a/packages/design-system/src/new-ui/Table/Table.tsx b/packages/design-system/src/new-ui/Table/Table.tsx index 281fada1c9..113b7b3462 100644 --- a/packages/design-system/src/new-ui/Table/Table.tsx +++ b/packages/design-system/src/new-ui/Table/Table.tsx @@ -1,7 +1,7 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; const TableRoot = React.forwardRef< HTMLTableElement, diff --git a/packages/design-system/src/new-ui/Tabs/Tabs.stories.tsx b/packages/design-system/src/new-ui/Tabs/Tabs.stories.tsx index d298a79ef7..b656e98bc2 100644 --- a/packages/design-system/src/new-ui/Tabs/Tabs.stories.tsx +++ b/packages/design-system/src/new-ui/Tabs/Tabs.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { Tabs } from "./Tabs"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Tabs/Tabs.tsx b/packages/design-system/src/new-ui/Tabs/Tabs.tsx index fdd8938ce7..ba55386c24 100644 --- a/packages/design-system/src/new-ui/Tabs/Tabs.tsx +++ b/packages/design-system/src/new-ui/Tabs/Tabs.tsx @@ -2,7 +2,6 @@ // We don't have a unified Tab design yes so we don't have default style here // Please refer to the design-docs in Figma for more details. - import * as React from "react"; import * as TabsPrimitive from "@radix-ui/react-tabs"; diff --git a/packages/design-system/src/new-ui/Tag/Tag.stories.tsx b/packages/design-system/src/new-ui/Tag/Tag.stories.tsx index 7ec99d6598..b8dac02299 100644 --- a/packages/design-system/src/new-ui/Tag/Tag.stories.tsx +++ b/packages/design-system/src/new-ui/Tag/Tag.stories.tsx @@ -1,7 +1,8 @@ -import { Tag } from "./Tag"; -import { Icons } from "../Icons"; import { Meta, StoryObj } from "@storybook/react"; +import { Icons } from "../Icons"; +import { Tag } from "./Tag"; + const meta: Meta = { title: "Components/NewUi/Tag", }; diff --git a/packages/design-system/src/new-ui/Tag/Tag.tsx b/packages/design-system/src/new-ui/Tag/Tag.tsx index 4fe170c805..cb43580ca1 100644 --- a/packages/design-system/src/new-ui/Tag/Tag.tsx +++ b/packages/design-system/src/new-ui/Tag/Tag.tsx @@ -1,8 +1,9 @@ "use client"; -import cn from "clsx"; +import type { VariantProps } from "class-variance-authority"; import * as React from "react"; -import { cva, type VariantProps } from "class-variance-authority"; +import { cva } from "class-variance-authority"; +import cn from "clsx"; const tagVariants = cva("inline-flex items-center rounded-full font-semibold", { variants: { diff --git a/packages/design-system/src/new-ui/TagButton/TagButton.stories.tsx b/packages/design-system/src/new-ui/TagButton/TagButton.stories.tsx index aeba325392..3cb72d406c 100644 --- a/packages/design-system/src/new-ui/TagButton/TagButton.stories.tsx +++ b/packages/design-system/src/new-ui/TagButton/TagButton.stories.tsx @@ -1,6 +1,7 @@ -import { TagButton } from "./TagButton"; import { Meta, StoryObj } from "@storybook/react"; +import { TagButton } from "./TagButton"; + const meta: Meta = { title: "Components/NewUi/TagButton", }; diff --git a/packages/design-system/src/new-ui/TagButton/TagButton.tsx b/packages/design-system/src/new-ui/TagButton/TagButton.tsx index a0a7aecaa8..b23aae38ec 100644 --- a/packages/design-system/src/new-ui/TagButton/TagButton.tsx +++ b/packages/design-system/src/new-ui/TagButton/TagButton.tsx @@ -1,9 +1,10 @@ "use client"; -import cn from "clsx"; +import type { VariantProps } from "class-variance-authority"; import * as React from "react"; -import { cva, type VariantProps } from "class-variance-authority"; import { Slot } from "@radix-ui/react-slot"; +import { cva } from "class-variance-authority"; +import cn from "clsx"; const tagButtonVariants = cva( "inline-flex items-center rounded-full transition-colors", diff --git a/packages/design-system/src/new-ui/Textarea/Textarea.stories.tsx b/packages/design-system/src/new-ui/Textarea/Textarea.stories.tsx index 857f6fbd35..48c4c853a7 100644 --- a/packages/design-system/src/new-ui/Textarea/Textarea.stories.tsx +++ b/packages/design-system/src/new-ui/Textarea/Textarea.stories.tsx @@ -1,7 +1,8 @@ import * as React from "react"; import { Meta, StoryFn } from "@storybook/react"; -import { Textarea } from "./Textarea"; + import { Field } from "../Field"; +import { Textarea } from "./Textarea"; const meta: Meta = { title: "Components/NewUi/Textarea", diff --git a/packages/design-system/src/new-ui/Textarea/Textarea.tsx b/packages/design-system/src/new-ui/Textarea/Textarea.tsx index 6cd9f43487..3b7d84304f 100644 --- a/packages/design-system/src/new-ui/Textarea/Textarea.tsx +++ b/packages/design-system/src/new-ui/Textarea/Textarea.tsx @@ -1,7 +1,7 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; export type TextareaProps = React.TextareaHTMLAttributes; diff --git a/packages/design-system/src/new-ui/Toast/Toast.stories.tsx b/packages/design-system/src/new-ui/Toast/Toast.stories.tsx index bd5bd5e7f5..2c2b716aa3 100644 --- a/packages/design-system/src/new-ui/Toast/Toast.stories.tsx +++ b/packages/design-system/src/new-ui/Toast/Toast.stories.tsx @@ -1,11 +1,12 @@ -import * as React from "react"; import type { Meta, StoryObj } from "@storybook/react"; +import * as React from "react"; + +import { Button } from "../Button"; +import { Icons } from "../Icons"; +import { LinkButton } from "../LinkButton"; import { Toast, ToastProps } from "./Toast"; import { Toaster } from "./Toaster"; -import { Button } from "../Button"; import { ToasterToast, useToast } from "./use-toast"; -import { LinkButton } from "../LinkButton"; -import { Icons } from "../Icons"; const meta: Meta = { title: "Components/NewUi/Toast", diff --git a/packages/design-system/src/new-ui/Toast/Toast.tsx b/packages/design-system/src/new-ui/Toast/Toast.tsx index c5801d0f8d..6954be42d6 100644 --- a/packages/design-system/src/new-ui/Toast/Toast.tsx +++ b/packages/design-system/src/new-ui/Toast/Toast.tsx @@ -1,11 +1,12 @@ "use client"; // ref: https://ui.shadcn.com/docs/components/toast - -import cn from "clsx"; +import type { VariantProps } from "class-variance-authority"; import * as React from "react"; import * as ToastPrimitives from "@radix-ui/react-toast"; -import { cva, type VariantProps } from "class-variance-authority"; +import { cva } from "class-variance-authority"; +import cn from "clsx"; + import { Icons } from "../Icons"; const ToastProvider = ToastPrimitives.Provider; diff --git a/packages/design-system/src/new-ui/Toast/Toaster.tsx b/packages/design-system/src/new-ui/Toast/Toaster.tsx index 3a918dd533..822ba85796 100644 --- a/packages/design-system/src/new-ui/Toast/Toaster.tsx +++ b/packages/design-system/src/new-ui/Toast/Toaster.tsx @@ -1,6 +1,6 @@ "use client"; -// ref: https://ui.shadcn.com/docs/components/toast +// ref: https://ui.shadcn.com/docs/components/toast import { Icons } from "../Icons"; import { Toast, ToastProps } from "./Toast"; import { ToasterToast, useToast } from "./use-toast"; diff --git a/packages/design-system/src/new-ui/Toast/use-toast.tsx b/packages/design-system/src/new-ui/Toast/use-toast.tsx index 826f064773..a2887aac3a 100644 --- a/packages/design-system/src/new-ui/Toast/use-toast.tsx +++ b/packages/design-system/src/new-ui/Toast/use-toast.tsx @@ -2,7 +2,6 @@ // Inspired by react-hot-toast library // ref: https://ui.shadcn.com/docs/components/toast - import * as React from "react"; import type { ToastActionElement, ToastProps } from "./Toast"; diff --git a/packages/design-system/src/new-ui/ToggleGroup/ToggleGroup.stories.tsx b/packages/design-system/src/new-ui/ToggleGroup/ToggleGroup.stories.tsx index de8cac8485..ec35677625 100644 --- a/packages/design-system/src/new-ui/ToggleGroup/ToggleGroup.stories.tsx +++ b/packages/design-system/src/new-ui/ToggleGroup/ToggleGroup.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { ToggleGroup } from "./ToggleGroup"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/ToggleGroup/ToggleGroup.tsx b/packages/design-system/src/new-ui/ToggleGroup/ToggleGroup.tsx index f81c1e663c..ff33fab581 100644 --- a/packages/design-system/src/new-ui/ToggleGroup/ToggleGroup.tsx +++ b/packages/design-system/src/new-ui/ToggleGroup/ToggleGroup.tsx @@ -1,5 +1,5 @@ -import * as Toggles from "@radix-ui/react-toggle-group"; import React from "react"; +import * as Toggles from "@radix-ui/react-toggle-group"; import cn from "clsx"; const ToggleGroupRoot = React.forwardRef< diff --git a/packages/design-system/src/new-ui/Tooltip/Tooltip.stories.tsx b/packages/design-system/src/new-ui/Tooltip/Tooltip.stories.tsx index 24ec72304e..e9bf08f28b 100644 --- a/packages/design-system/src/new-ui/Tooltip/Tooltip.stories.tsx +++ b/packages/design-system/src/new-ui/Tooltip/Tooltip.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { Tooltip } from "./Tooltip"; const meta: Meta = { diff --git a/packages/design-system/src/new-ui/Tooltip/Tooltip.tsx b/packages/design-system/src/new-ui/Tooltip/Tooltip.tsx index b849b80825..8d6a1c9d68 100644 --- a/packages/design-system/src/new-ui/Tooltip/Tooltip.tsx +++ b/packages/design-system/src/new-ui/Tooltip/Tooltip.tsx @@ -1,8 +1,8 @@ "use client"; -import cn from "clsx"; import * as React from "react"; import * as TooltipPrimitive from "@radix-ui/react-tooltip"; +import cn from "clsx"; const TooltipProvider = TooltipPrimitive.Provider; const TooltipRoot = TooltipPrimitive.Root; diff --git a/packages/design-system/src/new-ui/radio-group/RadioGroup.stories.tsx b/packages/design-system/src/new-ui/radio-group/RadioGroup.stories.tsx index 2b9acfd1c8..a32edec86e 100644 --- a/packages/design-system/src/new-ui/radio-group/RadioGroup.stories.tsx +++ b/packages/design-system/src/new-ui/radio-group/RadioGroup.stories.tsx @@ -1,6 +1,7 @@ import type { Meta, StoryObj } from "@storybook/react"; -import { RadioGroup } from "./RadioGroup"; + import { Label } from "../Label"; +import { RadioGroup } from "./RadioGroup"; const meta: Meta = { title: "Components/NewUi/RadioGroup", diff --git a/packages/design-system/src/new-ui/radio-group/RadioGroup.tsx b/packages/design-system/src/new-ui/radio-group/RadioGroup.tsx index 28b0bc16ca..358e183fe2 100644 --- a/packages/design-system/src/new-ui/radio-group/RadioGroup.tsx +++ b/packages/design-system/src/new-ui/radio-group/RadioGroup.tsx @@ -1,8 +1,8 @@ "use client"; -import cn from "clsx"; import * as React from "react"; import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"; +import cn from "clsx"; const RadioGroupRoot = React.forwardRef< React.ElementRef, diff --git a/packages/design-system/src/new-ui/tab-menu/TabMenu.stories.tsx b/packages/design-system/src/new-ui/tab-menu/TabMenu.stories.tsx index e255ff9054..de1aa231d0 100644 --- a/packages/design-system/src/new-ui/tab-menu/TabMenu.stories.tsx +++ b/packages/design-system/src/new-ui/tab-menu/TabMenu.stories.tsx @@ -1,7 +1,8 @@ -import * as React from "react"; import type { Meta } from "@storybook/react"; -import { TabMenu } from "./TabMenu"; +import * as React from "react"; + import { Nullable } from "../../types/general"; +import { TabMenu } from "./TabMenu"; const meta: Meta = { title: "Components/NewUi/TabMenu", diff --git a/packages/design-system/src/new-ui/tab-menu/TabMenu.tsx b/packages/design-system/src/new-ui/tab-menu/TabMenu.tsx index b09641705c..8b0f38cf23 100644 --- a/packages/design-system/src/new-ui/tab-menu/TabMenu.tsx +++ b/packages/design-system/src/new-ui/tab-menu/TabMenu.tsx @@ -1,7 +1,8 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; + import { Nullable } from "../../types/general"; type TabMenuContextValue = { diff --git a/packages/design-system/src/ui-helpers/getModelDefinitionToolkit.tsx b/packages/design-system/src/ui-helpers/getModelDefinitionToolkit.tsx index b221bd3674..cf3cc66301 100644 --- a/packages/design-system/src/ui-helpers/getModelDefinitionToolkit.tsx +++ b/packages/design-system/src/ui-helpers/getModelDefinitionToolkit.tsx @@ -1,4 +1,5 @@ import cn from "clsx"; + import { IconStyle, IconStyleWithoutColor } from "../types/general"; import { ArtiVcIcon, diff --git a/packages/design-system/src/ui-helpers/getPipelineModeToolkit.tsx b/packages/design-system/src/ui-helpers/getPipelineModeToolkit.tsx index 63882f3e9b..5e7304a70c 100644 --- a/packages/design-system/src/ui-helpers/getPipelineModeToolkit.tsx +++ b/packages/design-system/src/ui-helpers/getPipelineModeToolkit.tsx @@ -1,4 +1,5 @@ import cn from "clsx"; + import { IconStyle, PipelineMode } from "../types/general"; import { AsyncIcon, SyncIcon } from "../ui"; diff --git a/packages/design-system/src/ui/Accordion/AccordionBase/AccordionBase.stories.tsx b/packages/design-system/src/ui/Accordion/AccordionBase/AccordionBase.stories.tsx index d53606b64d..f6deba605d 100644 --- a/packages/design-system/src/ui/Accordion/AccordionBase/AccordionBase.stories.tsx +++ b/packages/design-system/src/ui/Accordion/AccordionBase/AccordionBase.stories.tsx @@ -1,5 +1,6 @@ -import { Meta, StoryFn } from "@storybook/react"; import * as React from "react"; +import { Meta, StoryFn } from "@storybook/react"; + import { DataDestinationIcon, DataSourceIcon, diff --git a/packages/design-system/src/ui/Accordion/AccordionBase/AccordionBase.tsx b/packages/design-system/src/ui/Accordion/AccordionBase/AccordionBase.tsx index 2a901aec29..a03d05e2bd 100644 --- a/packages/design-system/src/ui/Accordion/AccordionBase/AccordionBase.tsx +++ b/packages/design-system/src/ui/Accordion/AccordionBase/AccordionBase.tsx @@ -1,5 +1,6 @@ import * as React from "react"; import cn from "clsx"; + import { Nullable } from "../../../types/general"; // Due to AccordionItem is a exposed level item, it can accept undefinded value. diff --git a/packages/design-system/src/ui/Accordion/BasicAccordion/BasicAccordion.stories.tsx b/packages/design-system/src/ui/Accordion/BasicAccordion/BasicAccordion.stories.tsx index fc7cdb6622..04eb44fb60 100644 --- a/packages/design-system/src/ui/Accordion/BasicAccordion/BasicAccordion.stories.tsx +++ b/packages/design-system/src/ui/Accordion/BasicAccordion/BasicAccordion.stories.tsx @@ -1,5 +1,6 @@ -import { Meta, StoryFn } from "@storybook/react"; import * as React from "react"; +import { Meta, StoryFn } from "@storybook/react"; + import BasicAccordion from "./BasicAccordion"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Accordion/BgIconAccordion/BgIconAccordion.stories.tsx b/packages/design-system/src/ui/Accordion/BgIconAccordion/BgIconAccordion.stories.tsx index 57a735a763..52ba150f6d 100644 --- a/packages/design-system/src/ui/Accordion/BgIconAccordion/BgIconAccordion.stories.tsx +++ b/packages/design-system/src/ui/Accordion/BgIconAccordion/BgIconAccordion.stories.tsx @@ -1,5 +1,6 @@ -import { Meta, StoryFn } from "@storybook/react"; import * as React from "react"; +import { Meta, StoryFn } from "@storybook/react"; + import { DataDestinationIcon, DataSourceIcon, diff --git a/packages/design-system/src/ui/Accordion/index.ts b/packages/design-system/src/ui/Accordion/index.ts index f731a3f9fa..ebc009fc75 100644 --- a/packages/design-system/src/ui/Accordion/index.ts +++ b/packages/design-system/src/ui/Accordion/index.ts @@ -1,7 +1,7 @@ -import BasicAccordion from "./BasicAccordion"; import type { BasicAccordionProps } from "./BasicAccordion"; -import BgIconAccordion from "./BgIconAccordion"; import type { BgIconAccordionProps } from "./BgIconAccordion"; +import BasicAccordion from "./BasicAccordion"; +import BgIconAccordion from "./BgIconAccordion"; export { BasicAccordion, BgIconAccordion }; export type { BasicAccordionProps, BgIconAccordionProps }; diff --git a/packages/design-system/src/ui/Buttons/ButtonBase/ButtonBase.stories.tsx b/packages/design-system/src/ui/Buttons/ButtonBase/ButtonBase.stories.tsx index 07f3610e5a..5f486c2f16 100644 --- a/packages/design-system/src/ui/Buttons/ButtonBase/ButtonBase.stories.tsx +++ b/packages/design-system/src/ui/Buttons/ButtonBase/ButtonBase.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ButtonBase from "./ButtonBase"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Buttons/ButtonBase/ButtonBase.tsx b/packages/design-system/src/ui/Buttons/ButtonBase/ButtonBase.tsx index 4c2a25e1a0..552e41184f 100644 --- a/packages/design-system/src/ui/Buttons/ButtonBase/ButtonBase.tsx +++ b/packages/design-system/src/ui/Buttons/ButtonBase/ButtonBase.tsx @@ -1,5 +1,6 @@ import * as React from "react"; import cn from "clsx"; + import { Nullable } from "../../../types/general"; export type ButtonBaseProps = { diff --git a/packages/design-system/src/ui/Buttons/CollapseSidebarButton/CollapseSidebarButton.stories.tsx b/packages/design-system/src/ui/Buttons/CollapseSidebarButton/CollapseSidebarButton.stories.tsx index 5862fc25ab..61268b96a3 100644 --- a/packages/design-system/src/ui/Buttons/CollapseSidebarButton/CollapseSidebarButton.stories.tsx +++ b/packages/design-system/src/ui/Buttons/CollapseSidebarButton/CollapseSidebarButton.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import CollapseSidebarButton from "./CollapseSidebarButton"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Buttons/CollapseSidebarButton/CollapseSidebarButton.tsx b/packages/design-system/src/ui/Buttons/CollapseSidebarButton/CollapseSidebarButton.tsx index 82e365f721..15bfa873f6 100644 --- a/packages/design-system/src/ui/Buttons/CollapseSidebarButton/CollapseSidebarButton.tsx +++ b/packages/design-system/src/ui/Buttons/CollapseSidebarButton/CollapseSidebarButton.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import { CollapseLeftIcon, CollapseRightIcon } from "../../Icons"; import ButtonBase, { ButtonBaseProps } from "../ButtonBase"; diff --git a/packages/design-system/src/ui/Buttons/OutlineButton/OutlineButton.stories.tsx b/packages/design-system/src/ui/Buttons/OutlineButton/OutlineButton.stories.tsx index 9525e1ffc9..e9383b2085 100644 --- a/packages/design-system/src/ui/Buttons/OutlineButton/OutlineButton.stories.tsx +++ b/packages/design-system/src/ui/Buttons/OutlineButton/OutlineButton.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import { DiscordIcon, MediumIcon } from "../../Icons"; import OutlineButton from "./OutlineButton"; diff --git a/packages/design-system/src/ui/Buttons/OutlineButton/OutlineButton.tsx b/packages/design-system/src/ui/Buttons/OutlineButton/OutlineButton.tsx index 3d0f0d7f60..54896d3d4a 100644 --- a/packages/design-system/src/ui/Buttons/OutlineButton/OutlineButton.tsx +++ b/packages/design-system/src/ui/Buttons/OutlineButton/OutlineButton.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import ButtonBase, { ButtonBaseProps } from "../ButtonBase"; export type OutlineButtonRequiredKeys = "type" | "color" | "hoveredShadow"; diff --git a/packages/design-system/src/ui/Buttons/SolidButton/SolidButton.stories.tsx b/packages/design-system/src/ui/Buttons/SolidButton/SolidButton.stories.tsx index f58de2c0e8..0622632998 100644 --- a/packages/design-system/src/ui/Buttons/SolidButton/SolidButton.stories.tsx +++ b/packages/design-system/src/ui/Buttons/SolidButton/SolidButton.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import SolidButton from "./SolidButton"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Buttons/SolidButton/SolidButton.tsx b/packages/design-system/src/ui/Buttons/SolidButton/SolidButton.tsx index af34d20a64..76eedd9cc5 100644 --- a/packages/design-system/src/ui/Buttons/SolidButton/SolidButton.tsx +++ b/packages/design-system/src/ui/Buttons/SolidButton/SolidButton.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import ButtonBase, { ButtonBaseProps } from "../ButtonBase"; export type SolidButtonRequiredKeys = "type" | "color"; diff --git a/packages/design-system/src/ui/Buttons/TextButton/TextButton.stories.tsx b/packages/design-system/src/ui/Buttons/TextButton/TextButton.stories.tsx index 7efe79180c..0973c8d4aa 100644 --- a/packages/design-system/src/ui/Buttons/TextButton/TextButton.stories.tsx +++ b/packages/design-system/src/ui/Buttons/TextButton/TextButton.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import { ArrowRightIcon } from "../../Icons"; import TextButton from "./TextButton"; diff --git a/packages/design-system/src/ui/Buttons/TextButton/TextButton.tsx b/packages/design-system/src/ui/Buttons/TextButton/TextButton.tsx index 53d72b93b7..6fc7f9fb1c 100644 --- a/packages/design-system/src/ui/Buttons/TextButton/TextButton.tsx +++ b/packages/design-system/src/ui/Buttons/TextButton/TextButton.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import ButtonBase, { ButtonBaseProps } from "../ButtonBase"; export type TextButtonRequiredKeys = "type" | "color"; diff --git a/packages/design-system/src/ui/Buttons/index.ts b/packages/design-system/src/ui/Buttons/index.ts index a316f591ef..62e23112cc 100644 --- a/packages/design-system/src/ui/Buttons/index.ts +++ b/packages/design-system/src/ui/Buttons/index.ts @@ -1,11 +1,11 @@ -import CollapseSidebarButton from "./CollapseSidebarButton"; import type { CollapseSidebarButtonProps } from "./CollapseSidebarButton"; -import SolidButton from "./SolidButton"; +import type { OutlineButtonProps } from "./OutlineButton"; import type { SolidButtonProps } from "./SolidButton"; +import type { TextButtonProps } from "./TextButton"; +import CollapseSidebarButton from "./CollapseSidebarButton"; import OutlineButton from "./OutlineButton"; -import type { OutlineButtonProps } from "./OutlineButton"; +import SolidButton from "./SolidButton"; import TextButton from "./TextButton"; -import type { TextButtonProps } from "./TextButton"; export { CollapseSidebarButton, SolidButton, OutlineButton, TextButton }; export type { diff --git a/packages/design-system/src/ui/Icons/AirbyteIcon/AirbyteIcon.stories.tsx b/packages/design-system/src/ui/Icons/AirbyteIcon/AirbyteIcon.stories.tsx index dbdf5f9e45..31ebf04778 100644 --- a/packages/design-system/src/ui/Icons/AirbyteIcon/AirbyteIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/AirbyteIcon/AirbyteIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import AirbyteIcon from "./AirbyteIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/AirbyteIcon/AirbyteIcon.tsx b/packages/design-system/src/ui/Icons/AirbyteIcon/AirbyteIcon.tsx index e409068d51..a6ba23715d 100644 --- a/packages/design-system/src/ui/Icons/AirbyteIcon/AirbyteIcon.tsx +++ b/packages/design-system/src/ui/Icons/AirbyteIcon/AirbyteIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type AirbyteIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowDownIcon/ArrowDownIcon.stories.tsx b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowDownIcon/ArrowDownIcon.stories.tsx index 0f5941fc11..8128087af1 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowDownIcon/ArrowDownIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowDownIcon/ArrowDownIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ArrowDownIcon from "./ArrowDownIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowDownIcon/ArrowDownIcon.tsx b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowDownIcon/ArrowDownIcon.tsx index fee1609b89..b4622e0ef2 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowDownIcon/ArrowDownIcon.tsx +++ b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowDownIcon/ArrowDownIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import ArrowIconBase, { ArrowIconBaseProps } from "../ArrowIconBase"; export type ArrowDownIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowIconBase/ArrowIconBase.stories.tsx b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowIconBase/ArrowIconBase.stories.tsx index 977acad860..b71e1c731d 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowIconBase/ArrowIconBase.stories.tsx +++ b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowIconBase/ArrowIconBase.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ArrowIconBase from "./ArrowIconBase"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowIconBase/ArrowIconBase.tsx b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowIconBase/ArrowIconBase.tsx index ffc3c408c8..c89bdbcdad 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowIconBase/ArrowIconBase.tsx +++ b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowIconBase/ArrowIconBase.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../../IconBase"; export type ArrowIconBaseProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowLeftIcon/ArrowLeftIcon.stories.tsx b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowLeftIcon/ArrowLeftIcon.stories.tsx index 82d461d2b0..aa27b32c8f 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowLeftIcon/ArrowLeftIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowLeftIcon/ArrowLeftIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ArrowLeftIcon from "./ArrowLeftIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowLeftIcon/ArrowLeftIcon.tsx b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowLeftIcon/ArrowLeftIcon.tsx index 09ee715920..a4080c5dba 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowLeftIcon/ArrowLeftIcon.tsx +++ b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowLeftIcon/ArrowLeftIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import ArrowIconBase, { ArrowIconBaseProps } from "../ArrowIconBase"; export type ArrowLeftIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowRightIcon/ArrowRightIcon.stories.tsx b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowRightIcon/ArrowRightIcon.stories.tsx index 4798d76c36..3d4a9a0fc2 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowRightIcon/ArrowRightIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowRightIcon/ArrowRightIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ArrowRightIcon from "./ArrowRightIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowRightIcon/ArrowRightIcon.tsx b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowRightIcon/ArrowRightIcon.tsx index 31363f94e6..140844fbdd 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowRightIcon/ArrowRightIcon.tsx +++ b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowRightIcon/ArrowRightIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import ArrowIconBase, { ArrowIconBaseProps } from "../ArrowIconBase"; export type ArrowRightIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowUpIcon/ArrowUpIcon.stories.tsx b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowUpIcon/ArrowUpIcon.stories.tsx index d6f99abb7f..d6030ada3b 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowUpIcon/ArrowUpIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowUpIcon/ArrowUpIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ArrowUpIcon from "./ArrowUpIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowUpIcon/ArrowUpIcon.tsx b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowUpIcon/ArrowUpIcon.tsx index 1e7514ebae..e96af215da 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/ArrowUpIcon/ArrowUpIcon.tsx +++ b/packages/design-system/src/ui/Icons/ArrowIcons/ArrowUpIcon/ArrowUpIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import ArrowIconBase, { ArrowIconBaseProps } from "../ArrowIconBase"; export type ArrowUpIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/RotatableArrowIcon/RotatableArrowIcon.stories.tsx b/packages/design-system/src/ui/Icons/ArrowIcons/RotatableArrowIcon/RotatableArrowIcon.stories.tsx index b35b0f2c92..9c0e856121 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/RotatableArrowIcon/RotatableArrowIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ArrowIcons/RotatableArrowIcon/RotatableArrowIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import RotatableArrowIcon from "./RotatableArrowIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/RotatableArrowIcon/RotatableArrowIcon.tsx b/packages/design-system/src/ui/Icons/ArrowIcons/RotatableArrowIcon/RotatableArrowIcon.tsx index 789d008362..35876a5ef4 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/RotatableArrowIcon/RotatableArrowIcon.tsx +++ b/packages/design-system/src/ui/Icons/ArrowIcons/RotatableArrowIcon/RotatableArrowIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import ArrowIconBase, { ArrowIconBaseProps } from "../ArrowIconBase"; export type RotatableArrowIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ArrowIcons/index.ts b/packages/design-system/src/ui/Icons/ArrowIcons/index.ts index 2dfcf11bb9..0e6b7299c2 100644 --- a/packages/design-system/src/ui/Icons/ArrowIcons/index.ts +++ b/packages/design-system/src/ui/Icons/ArrowIcons/index.ts @@ -1,13 +1,13 @@ -import ArrowRightIcon from "./ArrowRightIcon"; -import type { ArrowRightIconProps } from "./ArrowRightIcon"; -import ArrowLeftIcon from "./ArrowLeftIcon"; +import type { ArrowDownIconProps } from "./ArrowDownIcon"; import type { ArrowLeftIconProps } from "./ArrowLeftIcon"; -import ArrowUpIcon from "./ArrowUpIcon"; +import type { ArrowRightIconProps } from "./ArrowRightIcon"; import type { ArrowUpIconProps } from "./ArrowUpIcon"; +import type { RotatableArrowIconProps } from "./RotatableArrowIcon"; import ArrowDownIcon from "./ArrowDownIcon"; -import type { ArrowDownIconProps } from "./ArrowDownIcon"; +import ArrowLeftIcon from "./ArrowLeftIcon"; +import ArrowRightIcon from "./ArrowRightIcon"; +import ArrowUpIcon from "./ArrowUpIcon"; import RotatableArrowIcon from "./RotatableArrowIcon"; -import type { RotatableArrowIconProps } from "./RotatableArrowIcon"; export { ArrowRightIcon, diff --git a/packages/design-system/src/ui/Icons/ArtiVcIcon/ArtiVcIcon.stories.tsx b/packages/design-system/src/ui/Icons/ArtiVcIcon/ArtiVcIcon.stories.tsx index 675adf03a1..d21a7a028f 100644 --- a/packages/design-system/src/ui/Icons/ArtiVcIcon/ArtiVcIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ArtiVcIcon/ArtiVcIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ArtiVcIcon from "./ArtiVcIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ArtiVcIcon/ArtiVcIcon.tsx b/packages/design-system/src/ui/Icons/ArtiVcIcon/ArtiVcIcon.tsx index 96b08e0726..d4efe3e1e1 100644 --- a/packages/design-system/src/ui/Icons/ArtiVcIcon/ArtiVcIcon.tsx +++ b/packages/design-system/src/ui/Icons/ArtiVcIcon/ArtiVcIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type ArtiVcIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/AsyncArrowsIcon/AsyncArrowsIcon.stories.tsx b/packages/design-system/src/ui/Icons/AsyncArrowsIcon/AsyncArrowsIcon.stories.tsx index 2539652019..0f0e8e871f 100644 --- a/packages/design-system/src/ui/Icons/AsyncArrowsIcon/AsyncArrowsIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/AsyncArrowsIcon/AsyncArrowsIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import AsyncArrowsIcon from "./AsyncArrowsIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/AsyncArrowsIcon/AsyncArrowsIcon.tsx b/packages/design-system/src/ui/Icons/AsyncArrowsIcon/AsyncArrowsIcon.tsx index e7e569c454..5712965ded 100644 --- a/packages/design-system/src/ui/Icons/AsyncArrowsIcon/AsyncArrowsIcon.tsx +++ b/packages/design-system/src/ui/Icons/AsyncArrowsIcon/AsyncArrowsIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type AsyncArrowsIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/AsyncIcon/AsyncIcon.stories.tsx b/packages/design-system/src/ui/Icons/AsyncIcon/AsyncIcon.stories.tsx index f07cadddd4..227ab99373 100644 --- a/packages/design-system/src/ui/Icons/AsyncIcon/AsyncIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/AsyncIcon/AsyncIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import AsyncIcon from "./AsyncIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/AsyncIcon/AsyncIcon.tsx b/packages/design-system/src/ui/Icons/AsyncIcon/AsyncIcon.tsx index b883550c38..dc944ba9b5 100644 --- a/packages/design-system/src/ui/Icons/AsyncIcon/AsyncIcon.tsx +++ b/packages/design-system/src/ui/Icons/AsyncIcon/AsyncIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type AsyncIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/AwsRdsIcon/AwsRdsIcon.stories.tsx b/packages/design-system/src/ui/Icons/AwsRdsIcon/AwsRdsIcon.stories.tsx index 05a1b62588..79ad1c3284 100644 --- a/packages/design-system/src/ui/Icons/AwsRdsIcon/AwsRdsIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/AwsRdsIcon/AwsRdsIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import AwsRdsIcon from "./AwsRdsIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/AwsRdsIcon/AwsRdsIcon.tsx b/packages/design-system/src/ui/Icons/AwsRdsIcon/AwsRdsIcon.tsx index a48d40615c..8136ebc6f6 100644 --- a/packages/design-system/src/ui/Icons/AwsRdsIcon/AwsRdsIcon.tsx +++ b/packages/design-system/src/ui/Icons/AwsRdsIcon/AwsRdsIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type AwsRdsIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/AwsS3Icon/AwsS3Icon.stories.tsx b/packages/design-system/src/ui/Icons/AwsS3Icon/AwsS3Icon.stories.tsx index c7f973c31d..274aaed6a0 100644 --- a/packages/design-system/src/ui/Icons/AwsS3Icon/AwsS3Icon.stories.tsx +++ b/packages/design-system/src/ui/Icons/AwsS3Icon/AwsS3Icon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import AwsS3Icon from "./AwsS3Icon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/AwsS3Icon/AwsS3Icon.tsx b/packages/design-system/src/ui/Icons/AwsS3Icon/AwsS3Icon.tsx index dc06814f9b..b135a19ad2 100644 --- a/packages/design-system/src/ui/Icons/AwsS3Icon/AwsS3Icon.tsx +++ b/packages/design-system/src/ui/Icons/AwsS3Icon/AwsS3Icon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type AwsS3IconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/BarChartIcon/BarChartIcon.stories.tsx b/packages/design-system/src/ui/Icons/BarChartIcon/BarChartIcon.stories.tsx index aefefb29d5..47e3e8beea 100644 --- a/packages/design-system/src/ui/Icons/BarChartIcon/BarChartIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/BarChartIcon/BarChartIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import BarChartIcon from "./BarChartIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/BarChartIcon/BarChartIcon.tsx b/packages/design-system/src/ui/Icons/BarChartIcon/BarChartIcon.tsx index 10dfb61e4b..ea04fc273d 100644 --- a/packages/design-system/src/ui/Icons/BarChartIcon/BarChartIcon.tsx +++ b/packages/design-system/src/ui/Icons/BarChartIcon/BarChartIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type BarChartIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/BigQueryIcon/BigQueryIcon.stories.tsx b/packages/design-system/src/ui/Icons/BigQueryIcon/BigQueryIcon.stories.tsx index 6fa1bc63bc..ad7db7f128 100644 --- a/packages/design-system/src/ui/Icons/BigQueryIcon/BigQueryIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/BigQueryIcon/BigQueryIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import BigQueryIcon from "./BigQueryIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/BigQueryIcon/BigQueryIcon.tsx b/packages/design-system/src/ui/Icons/BigQueryIcon/BigQueryIcon.tsx index a2ad76e6ef..92cc636665 100644 --- a/packages/design-system/src/ui/Icons/BigQueryIcon/BigQueryIcon.tsx +++ b/packages/design-system/src/ui/Icons/BigQueryIcon/BigQueryIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type BigQueryIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/CheckIcon/CheckIcon.stories.tsx b/packages/design-system/src/ui/Icons/CheckIcon/CheckIcon.stories.tsx index becea12fa7..e9c674668a 100644 --- a/packages/design-system/src/ui/Icons/CheckIcon/CheckIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/CheckIcon/CheckIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import CheckIcon from "./CheckIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/CheckIcon/CheckIcon.tsx b/packages/design-system/src/ui/Icons/CheckIcon/CheckIcon.tsx index 4e914420ab..3864166c3d 100644 --- a/packages/design-system/src/ui/Icons/CheckIcon/CheckIcon.tsx +++ b/packages/design-system/src/ui/Icons/CheckIcon/CheckIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type CheckIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ClientIcon/ClientIcon.stories.tsx b/packages/design-system/src/ui/Icons/ClientIcon/ClientIcon.stories.tsx index ff7ac83cc0..c0b3d81ca9 100644 --- a/packages/design-system/src/ui/Icons/ClientIcon/ClientIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ClientIcon/ClientIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ClientIcon from "./ClientIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ClientIcon/ClientIcon.tsx b/packages/design-system/src/ui/Icons/ClientIcon/ClientIcon.tsx index de6c094791..69071cb8d0 100644 --- a/packages/design-system/src/ui/Icons/ClientIcon/ClientIcon.tsx +++ b/packages/design-system/src/ui/Icons/ClientIcon/ClientIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type ClientIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/CollapseLeftIcon/CollapseLeftIcon.stories.tsx b/packages/design-system/src/ui/Icons/CollapseLeftIcon/CollapseLeftIcon.stories.tsx index 4a2adffc34..3dc6626dce 100644 --- a/packages/design-system/src/ui/Icons/CollapseLeftIcon/CollapseLeftIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/CollapseLeftIcon/CollapseLeftIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import CollapseLeftIcon from "./CollapseLeftIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/CollapseLeftIcon/CollapseLeftIcon.tsx b/packages/design-system/src/ui/Icons/CollapseLeftIcon/CollapseLeftIcon.tsx index cbe86f3a6e..7946265c81 100644 --- a/packages/design-system/src/ui/Icons/CollapseLeftIcon/CollapseLeftIcon.tsx +++ b/packages/design-system/src/ui/Icons/CollapseLeftIcon/CollapseLeftIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type CollapseLeftIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/CollapseRightIcon/CollapseRightIcon.stories.tsx b/packages/design-system/src/ui/Icons/CollapseRightIcon/CollapseRightIcon.stories.tsx index d78f77d46a..6f1f307a93 100644 --- a/packages/design-system/src/ui/Icons/CollapseRightIcon/CollapseRightIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/CollapseRightIcon/CollapseRightIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import CollapseRightIcon from "./CollapseRightIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/CollapseRightIcon/CollapseRightIcon.tsx b/packages/design-system/src/ui/Icons/CollapseRightIcon/CollapseRightIcon.tsx index 51dbc9d700..92b9aaf9ad 100644 --- a/packages/design-system/src/ui/Icons/CollapseRightIcon/CollapseRightIcon.tsx +++ b/packages/design-system/src/ui/Icons/CollapseRightIcon/CollapseRightIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type CollapseRightIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/CopyIcon/CopyIcon.stories.tsx b/packages/design-system/src/ui/Icons/CopyIcon/CopyIcon.stories.tsx index 55ac37e58c..ea9ff92f2d 100644 --- a/packages/design-system/src/ui/Icons/CopyIcon/CopyIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/CopyIcon/CopyIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import CopyIcon from "./CopyIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/CopyIcon/CopyIcon.tsx b/packages/design-system/src/ui/Icons/CopyIcon/CopyIcon.tsx index 04def5e7fa..ec68afa2f9 100644 --- a/packages/design-system/src/ui/Icons/CopyIcon/CopyIcon.tsx +++ b/packages/design-system/src/ui/Icons/CopyIcon/CopyIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type CopyIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/CrossIcon/CrossIcon.stories.tsx b/packages/design-system/src/ui/Icons/CrossIcon/CrossIcon.stories.tsx index 72030f0e74..e550d88e59 100644 --- a/packages/design-system/src/ui/Icons/CrossIcon/CrossIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/CrossIcon/CrossIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import CrossIcon from "./CrossIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/CrossIcon/CrossIcon.tsx b/packages/design-system/src/ui/Icons/CrossIcon/CrossIcon.tsx index 8b34659948..4d70fa94c6 100644 --- a/packages/design-system/src/ui/Icons/CrossIcon/CrossIcon.tsx +++ b/packages/design-system/src/ui/Icons/CrossIcon/CrossIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type CrossIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/DataDestinationIcon/DataDestinationIcon.stories.tsx b/packages/design-system/src/ui/Icons/DataDestinationIcon/DataDestinationIcon.stories.tsx index 1ab9f71ab4..aa69784a81 100644 --- a/packages/design-system/src/ui/Icons/DataDestinationIcon/DataDestinationIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/DataDestinationIcon/DataDestinationIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import DataDestinationIcon from "./DataDestinationIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/DataDestinationIcon/DataDestinationIcon.tsx b/packages/design-system/src/ui/Icons/DataDestinationIcon/DataDestinationIcon.tsx index b68987ebba..307aec4202 100644 --- a/packages/design-system/src/ui/Icons/DataDestinationIcon/DataDestinationIcon.tsx +++ b/packages/design-system/src/ui/Icons/DataDestinationIcon/DataDestinationIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type DataDestinationIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/DataSourceIcon/DataSourceIcon.stories.tsx b/packages/design-system/src/ui/Icons/DataSourceIcon/DataSourceIcon.stories.tsx index 56566b365f..01fafec170 100644 --- a/packages/design-system/src/ui/Icons/DataSourceIcon/DataSourceIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/DataSourceIcon/DataSourceIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import DataSourceIcon from "./DataSourceIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/DataSourceIcon/DataSourceIcon.tsx b/packages/design-system/src/ui/Icons/DataSourceIcon/DataSourceIcon.tsx index 549bf6ca58..b3efe215a0 100644 --- a/packages/design-system/src/ui/Icons/DataSourceIcon/DataSourceIcon.tsx +++ b/packages/design-system/src/ui/Icons/DataSourceIcon/DataSourceIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type DataSourceIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/DiscordIcon/DiscordIcon.stories.tsx b/packages/design-system/src/ui/Icons/DiscordIcon/DiscordIcon.stories.tsx index 65af5972c7..1e14314713 100644 --- a/packages/design-system/src/ui/Icons/DiscordIcon/DiscordIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/DiscordIcon/DiscordIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import DiscordIcon from "./DiscordIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/DiscordIcon/DiscordIcon.tsx b/packages/design-system/src/ui/Icons/DiscordIcon/DiscordIcon.tsx index da080ac862..26ec2a2992 100644 --- a/packages/design-system/src/ui/Icons/DiscordIcon/DiscordIcon.tsx +++ b/packages/design-system/src/ui/Icons/DiscordIcon/DiscordIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type DiscordIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/DocIcon/DocIcon.stories.tsx b/packages/design-system/src/ui/Icons/DocIcon/DocIcon.stories.tsx index 8f7cfb42bb..89c5a442b3 100644 --- a/packages/design-system/src/ui/Icons/DocIcon/DocIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/DocIcon/DocIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import DocIcon from "./DocIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/DocIcon/DocIcon.tsx b/packages/design-system/src/ui/Icons/DocIcon/DocIcon.tsx index d0229b335f..cf496f463c 100644 --- a/packages/design-system/src/ui/Icons/DocIcon/DocIcon.tsx +++ b/packages/design-system/src/ui/Icons/DocIcon/DocIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type DocIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/DoubleArrowIcon/DoubleArrowIcon.stories.tsx b/packages/design-system/src/ui/Icons/DoubleArrowIcon/DoubleArrowIcon.stories.tsx index b05ba10046..f5dc459c43 100644 --- a/packages/design-system/src/ui/Icons/DoubleArrowIcon/DoubleArrowIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/DoubleArrowIcon/DoubleArrowIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import DoubleArrowIcon from "./DoubleArrowIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/DoubleArrowIcon/DoubleArrowIcon.tsx b/packages/design-system/src/ui/Icons/DoubleArrowIcon/DoubleArrowIcon.tsx index 9d19175a6d..e6b0164954 100644 --- a/packages/design-system/src/ui/Icons/DoubleArrowIcon/DoubleArrowIcon.tsx +++ b/packages/design-system/src/ui/Icons/DoubleArrowIcon/DoubleArrowIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type DoubleArrowIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/EyeOffIcon/EyeOffIcon.stories.tsx b/packages/design-system/src/ui/Icons/EyeOffIcon/EyeOffIcon.stories.tsx index fc763fe05c..4dd06e26fc 100644 --- a/packages/design-system/src/ui/Icons/EyeOffIcon/EyeOffIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/EyeOffIcon/EyeOffIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import EyeOffIcon from "./EyeOffIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/EyeOffIcon/EyeOffIcon.tsx b/packages/design-system/src/ui/Icons/EyeOffIcon/EyeOffIcon.tsx index bd07bdf3a9..f280455958 100644 --- a/packages/design-system/src/ui/Icons/EyeOffIcon/EyeOffIcon.tsx +++ b/packages/design-system/src/ui/Icons/EyeOffIcon/EyeOffIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type EyeOffIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/EyeOnIcon/EyeOnIcon.stories.tsx b/packages/design-system/src/ui/Icons/EyeOnIcon/EyeOnIcon.stories.tsx index f80f64d48f..7e15d0a8f6 100644 --- a/packages/design-system/src/ui/Icons/EyeOnIcon/EyeOnIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/EyeOnIcon/EyeOnIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import EyeOnIcon from "./EyeOnIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/EyeOnIcon/EyeOnIcon.tsx b/packages/design-system/src/ui/Icons/EyeOnIcon/EyeOnIcon.tsx index 9008c525b1..90b89c907f 100644 --- a/packages/design-system/src/ui/Icons/EyeOnIcon/EyeOnIcon.tsx +++ b/packages/design-system/src/ui/Icons/EyeOnIcon/EyeOnIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type EyeOnIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/FacebookIcon/FacebookIcon.stories.tsx b/packages/design-system/src/ui/Icons/FacebookIcon/FacebookIcon.stories.tsx index 8a7ae8440c..35259d285e 100644 --- a/packages/design-system/src/ui/Icons/FacebookIcon/FacebookIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/FacebookIcon/FacebookIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import FacebookIcon from "./FacebookIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/FacebookIcon/FacebookIcon.tsx b/packages/design-system/src/ui/Icons/FacebookIcon/FacebookIcon.tsx index cdb79ff024..b0b8293c49 100644 --- a/packages/design-system/src/ui/Icons/FacebookIcon/FacebookIcon.tsx +++ b/packages/design-system/src/ui/Icons/FacebookIcon/FacebookIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type FacebookIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/FilterIcon/FilterIcon.stories.tsx b/packages/design-system/src/ui/Icons/FilterIcon/FilterIcon.stories.tsx index edbc48f67c..ff39a95aa0 100644 --- a/packages/design-system/src/ui/Icons/FilterIcon/FilterIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/FilterIcon/FilterIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import FilterIcon from "./FilterIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/FilterIcon/FilterIcon.tsx b/packages/design-system/src/ui/Icons/FilterIcon/FilterIcon.tsx index 83552f000d..a63097c6aa 100644 --- a/packages/design-system/src/ui/Icons/FilterIcon/FilterIcon.tsx +++ b/packages/design-system/src/ui/Icons/FilterIcon/FilterIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type FilterIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/FolderInUseIcon/FolderInUseIcon.stories.tsx b/packages/design-system/src/ui/Icons/FolderInUseIcon/FolderInUseIcon.stories.tsx index 6a7c95eb30..1e809f899e 100644 --- a/packages/design-system/src/ui/Icons/FolderInUseIcon/FolderInUseIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/FolderInUseIcon/FolderInUseIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import FolderInUseIcon from "./FolderInUseIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/FolderInUseIcon/FolderInUseIcon.tsx b/packages/design-system/src/ui/Icons/FolderInUseIcon/FolderInUseIcon.tsx index 53dc98391d..d5f4d2a68e 100644 --- a/packages/design-system/src/ui/Icons/FolderInUseIcon/FolderInUseIcon.tsx +++ b/packages/design-system/src/ui/Icons/FolderInUseIcon/FolderInUseIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type FolderInUseIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/FolderPlusIcon/FolderPlusIcon.stories.tsx b/packages/design-system/src/ui/Icons/FolderPlusIcon/FolderPlusIcon.stories.tsx index d05388c56a..e7b10b992d 100644 --- a/packages/design-system/src/ui/Icons/FolderPlusIcon/FolderPlusIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/FolderPlusIcon/FolderPlusIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import FolderPlusIcon from "./FolderPlusIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/FolderPlusIcon/FolderPlusIcon.tsx b/packages/design-system/src/ui/Icons/FolderPlusIcon/FolderPlusIcon.tsx index cda19b20d8..218ec0d01d 100644 --- a/packages/design-system/src/ui/Icons/FolderPlusIcon/FolderPlusIcon.tsx +++ b/packages/design-system/src/ui/Icons/FolderPlusIcon/FolderPlusIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type FolderPlusIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/GcsIcon/GcsIcon.stories.tsx b/packages/design-system/src/ui/Icons/GcsIcon/GcsIcon.stories.tsx index c82c29df98..358879d2df 100644 --- a/packages/design-system/src/ui/Icons/GcsIcon/GcsIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/GcsIcon/GcsIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import GcsIcon from "./GcsIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/GcsIcon/GcsIcon.tsx b/packages/design-system/src/ui/Icons/GcsIcon/GcsIcon.tsx index 5a49cd168d..cec0d86264 100644 --- a/packages/design-system/src/ui/Icons/GcsIcon/GcsIcon.tsx +++ b/packages/design-system/src/ui/Icons/GcsIcon/GcsIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type GcsIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/GearIcon/GearIcon.stories.tsx b/packages/design-system/src/ui/Icons/GearIcon/GearIcon.stories.tsx index 306a134247..1e99453a8a 100644 --- a/packages/design-system/src/ui/Icons/GearIcon/GearIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/GearIcon/GearIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import GearIcon from "./GearIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/GearIcon/GearIcon.tsx b/packages/design-system/src/ui/Icons/GearIcon/GearIcon.tsx index e7656bb202..c73c2c6a4f 100644 --- a/packages/design-system/src/ui/Icons/GearIcon/GearIcon.tsx +++ b/packages/design-system/src/ui/Icons/GearIcon/GearIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type GearIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/GitBranchIcon/GitBranchIcon.stories.tsx b/packages/design-system/src/ui/Icons/GitBranchIcon/GitBranchIcon.stories.tsx index e1f0e554d6..8b50304eb6 100644 --- a/packages/design-system/src/ui/Icons/GitBranchIcon/GitBranchIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/GitBranchIcon/GitBranchIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import GitBranchIcon from "./GitBranchIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/GitBranchIcon/GitBranchIcon.tsx b/packages/design-system/src/ui/Icons/GitBranchIcon/GitBranchIcon.tsx index cd936cbeec..73fdbad9c4 100644 --- a/packages/design-system/src/ui/Icons/GitBranchIcon/GitBranchIcon.tsx +++ b/packages/design-system/src/ui/Icons/GitBranchIcon/GitBranchIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type GitBranchIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/GitCommitIcon/GitCommitIcon.stories.tsx b/packages/design-system/src/ui/Icons/GitCommitIcon/GitCommitIcon.stories.tsx index 903a82a192..8fc23cdd0d 100644 --- a/packages/design-system/src/ui/Icons/GitCommitIcon/GitCommitIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/GitCommitIcon/GitCommitIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import GitCommitIcon from "./GitCommitIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/GitCommitIcon/GitCommitIcon.tsx b/packages/design-system/src/ui/Icons/GitCommitIcon/GitCommitIcon.tsx index 979d99afe7..eccfedfca7 100644 --- a/packages/design-system/src/ui/Icons/GitCommitIcon/GitCommitIcon.tsx +++ b/packages/design-system/src/ui/Icons/GitCommitIcon/GitCommitIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type GitCommitIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/GitHubIcon/GitHubIcon.stories.tsx b/packages/design-system/src/ui/Icons/GitHubIcon/GitHubIcon.stories.tsx index 8d470e9d34..104a5874d7 100644 --- a/packages/design-system/src/ui/Icons/GitHubIcon/GitHubIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/GitHubIcon/GitHubIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import GitHubIcon from "./GitHubIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/GitHubIcon/GitHubIcon.tsx b/packages/design-system/src/ui/Icons/GitHubIcon/GitHubIcon.tsx index 83bdf574e5..9697d3cc6d 100644 --- a/packages/design-system/src/ui/Icons/GitHubIcon/GitHubIcon.tsx +++ b/packages/design-system/src/ui/Icons/GitHubIcon/GitHubIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type GitHubIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/GitTagIcon/GitTagIcon.stories.tsx b/packages/design-system/src/ui/Icons/GitTagIcon/GitTagIcon.stories.tsx index 80a6e30bdc..2bc5ecfc94 100644 --- a/packages/design-system/src/ui/Icons/GitTagIcon/GitTagIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/GitTagIcon/GitTagIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import GitTagIcon from "./GitTagIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/GitTagIcon/GitTagIcon.tsx b/packages/design-system/src/ui/Icons/GitTagIcon/GitTagIcon.tsx index 481f937dde..a823afb74d 100644 --- a/packages/design-system/src/ui/Icons/GitTagIcon/GitTagIcon.tsx +++ b/packages/design-system/src/ui/Icons/GitTagIcon/GitTagIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type GitTagIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/GoogleDriveIcon/GoogleDriveIcon.stories.tsx b/packages/design-system/src/ui/Icons/GoogleDriveIcon/GoogleDriveIcon.stories.tsx index 926c285703..1a50c22469 100644 --- a/packages/design-system/src/ui/Icons/GoogleDriveIcon/GoogleDriveIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/GoogleDriveIcon/GoogleDriveIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import GoogleDriveIcon from "./GoogleDriveIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/GoogleDriveIcon/GoogleDriveIcon.tsx b/packages/design-system/src/ui/Icons/GoogleDriveIcon/GoogleDriveIcon.tsx index 93ac4488d7..2a1209d306 100644 --- a/packages/design-system/src/ui/Icons/GoogleDriveIcon/GoogleDriveIcon.tsx +++ b/packages/design-system/src/ui/Icons/GoogleDriveIcon/GoogleDriveIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type GoogleDriveIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/GoogleIcon/GoogleIcon.stories.tsx b/packages/design-system/src/ui/Icons/GoogleIcon/GoogleIcon.stories.tsx index 144c9d369e..889c0993c5 100644 --- a/packages/design-system/src/ui/Icons/GoogleIcon/GoogleIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/GoogleIcon/GoogleIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import GoogleIcon from "./GoogleIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/GoogleIcon/GoogleIcon.tsx b/packages/design-system/src/ui/Icons/GoogleIcon/GoogleIcon.tsx index dca1dcf8ea..28a8db01a2 100644 --- a/packages/design-system/src/ui/Icons/GoogleIcon/GoogleIcon.tsx +++ b/packages/design-system/src/ui/Icons/GoogleIcon/GoogleIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type GoogleIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/GoogleSheetIcon/GoogleSheetIcon.stories.tsx b/packages/design-system/src/ui/Icons/GoogleSheetIcon/GoogleSheetIcon.stories.tsx index 56c8df835d..07359b523e 100644 --- a/packages/design-system/src/ui/Icons/GoogleSheetIcon/GoogleSheetIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/GoogleSheetIcon/GoogleSheetIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import GoogleSheetIcon from "./GoogleSheetIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/GoogleSheetIcon/GoogleSheetIcon.tsx b/packages/design-system/src/ui/Icons/GoogleSheetIcon/GoogleSheetIcon.tsx index fa9cfa2163..9bef59c6e6 100644 --- a/packages/design-system/src/ui/Icons/GoogleSheetIcon/GoogleSheetIcon.tsx +++ b/packages/design-system/src/ui/Icons/GoogleSheetIcon/GoogleSheetIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type GoogleSheetIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/GrpcIcon/GrpcIcon.stories.tsx b/packages/design-system/src/ui/Icons/GrpcIcon/GrpcIcon.stories.tsx index 99e3dce7a5..62b09e57f0 100644 --- a/packages/design-system/src/ui/Icons/GrpcIcon/GrpcIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/GrpcIcon/GrpcIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import GrpcIcon from "./GrpcIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/GrpcIcon/GrpcIcon.tsx b/packages/design-system/src/ui/Icons/GrpcIcon/GrpcIcon.tsx index b2baff65da..e53aad9eb2 100644 --- a/packages/design-system/src/ui/Icons/GrpcIcon/GrpcIcon.tsx +++ b/packages/design-system/src/ui/Icons/GrpcIcon/GrpcIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type GrpcIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/HttpIcon/HttpIcon.stories.tsx b/packages/design-system/src/ui/Icons/HttpIcon/HttpIcon.stories.tsx index 4c8f6d55dc..3d180279a7 100644 --- a/packages/design-system/src/ui/Icons/HttpIcon/HttpIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/HttpIcon/HttpIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import HttpIcon from "./HttpIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/HttpIcon/HttpIcon.tsx b/packages/design-system/src/ui/Icons/HttpIcon/HttpIcon.tsx index 38a861fe65..ee05cf6454 100644 --- a/packages/design-system/src/ui/Icons/HttpIcon/HttpIcon.tsx +++ b/packages/design-system/src/ui/Icons/HttpIcon/HttpIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type HttpIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/HuggingFaceIcon/HuggingFaceIcon.stories.tsx b/packages/design-system/src/ui/Icons/HuggingFaceIcon/HuggingFaceIcon.stories.tsx index 2b75b93e8a..6435564359 100644 --- a/packages/design-system/src/ui/Icons/HuggingFaceIcon/HuggingFaceIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/HuggingFaceIcon/HuggingFaceIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import HuggingFaceIcon from "./HuggingFaceIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/HuggingFaceIcon/HuggingFaceIcon.tsx b/packages/design-system/src/ui/Icons/HuggingFaceIcon/HuggingFaceIcon.tsx index 7e2bded4c1..a6efbc6e81 100644 --- a/packages/design-system/src/ui/Icons/HuggingFaceIcon/HuggingFaceIcon.tsx +++ b/packages/design-system/src/ui/Icons/HuggingFaceIcon/HuggingFaceIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type HuggingFaceIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/IdIcon/IdIcon.stories.tsx b/packages/design-system/src/ui/Icons/IdIcon/IdIcon.stories.tsx index 6f9833036f..37adba7030 100644 --- a/packages/design-system/src/ui/Icons/IdIcon/IdIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/IdIcon/IdIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import IdIcon from "./IdIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/IdIcon/IdIcon.tsx b/packages/design-system/src/ui/Icons/IdIcon/IdIcon.tsx index 2b96494e47..648c5dfd2e 100644 --- a/packages/design-system/src/ui/Icons/IdIcon/IdIcon.tsx +++ b/packages/design-system/src/ui/Icons/IdIcon/IdIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type IdIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ImageClassificationIcon/ImageClassificationIcon.stories.tsx b/packages/design-system/src/ui/Icons/ImageClassificationIcon/ImageClassificationIcon.stories.tsx index e22d76c9cf..38d7a63228 100644 --- a/packages/design-system/src/ui/Icons/ImageClassificationIcon/ImageClassificationIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ImageClassificationIcon/ImageClassificationIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ImageClassificationIcon from "./ImageClassificationIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ImageClassificationIcon/ImageClassificationIcon.tsx b/packages/design-system/src/ui/Icons/ImageClassificationIcon/ImageClassificationIcon.tsx index 015322eca6..ac02821c2f 100644 --- a/packages/design-system/src/ui/Icons/ImageClassificationIcon/ImageClassificationIcon.tsx +++ b/packages/design-system/src/ui/Icons/ImageClassificationIcon/ImageClassificationIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type ImageClassificationIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/ImageToImageIcon/ImageToImageIcon.stories.tsx b/packages/design-system/src/ui/Icons/ImageToImageIcon/ImageToImageIcon.stories.tsx index 2ff83acdea..3402e764a2 100644 --- a/packages/design-system/src/ui/Icons/ImageToImageIcon/ImageToImageIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ImageToImageIcon/ImageToImageIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ImageToImageIcon from "./ImageToImageIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ImageToImageIcon/ImageToImageIcon.tsx b/packages/design-system/src/ui/Icons/ImageToImageIcon/ImageToImageIcon.tsx index 724c60044e..3c0ba3a9cc 100644 --- a/packages/design-system/src/ui/Icons/ImageToImageIcon/ImageToImageIcon.tsx +++ b/packages/design-system/src/ui/Icons/ImageToImageIcon/ImageToImageIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type ImageToImageIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ImageToTextIcon/ImageToImageIcon.stories.tsx b/packages/design-system/src/ui/Icons/ImageToTextIcon/ImageToImageIcon.stories.tsx index 5fee4a9818..cc86b70b40 100644 --- a/packages/design-system/src/ui/Icons/ImageToTextIcon/ImageToImageIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ImageToTextIcon/ImageToImageIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ImageToTextIcon from "./ImageToTextIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ImageToTextIcon/ImageToTextIcon.tsx b/packages/design-system/src/ui/Icons/ImageToTextIcon/ImageToTextIcon.tsx index 1b4f8ee32c..59772fd809 100644 --- a/packages/design-system/src/ui/Icons/ImageToTextIcon/ImageToTextIcon.tsx +++ b/packages/design-system/src/ui/Icons/ImageToTextIcon/ImageToTextIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type ImageToTextIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/InstanceSegmentationIcon/InstanceSegmentationIcon.stories.tsx b/packages/design-system/src/ui/Icons/InstanceSegmentationIcon/InstanceSegmentationIcon.stories.tsx index 56ef531e32..de6ca79908 100644 --- a/packages/design-system/src/ui/Icons/InstanceSegmentationIcon/InstanceSegmentationIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/InstanceSegmentationIcon/InstanceSegmentationIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import InstanceSegmentationIcon from "./InstanceSegmentationIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/InstanceSegmentationIcon/InstanceSegmentationIcon.tsx b/packages/design-system/src/ui/Icons/InstanceSegmentationIcon/InstanceSegmentationIcon.tsx index 63c11bb923..775ddb0ea7 100644 --- a/packages/design-system/src/ui/Icons/InstanceSegmentationIcon/InstanceSegmentationIcon.tsx +++ b/packages/design-system/src/ui/Icons/InstanceSegmentationIcon/InstanceSegmentationIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type InstanceSegmentationIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/IotIcon/IotIcon.stories.tsx b/packages/design-system/src/ui/Icons/IotIcon/IotIcon.stories.tsx index 841e34c762..bb5da18b92 100644 --- a/packages/design-system/src/ui/Icons/IotIcon/IotIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/IotIcon/IotIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import IotIcon from "./IotIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/IotIcon/IotIcon.tsx b/packages/design-system/src/ui/Icons/IotIcon/IotIcon.tsx index 484b169c42..469d4597ec 100644 --- a/packages/design-system/src/ui/Icons/IotIcon/IotIcon.tsx +++ b/packages/design-system/src/ui/Icons/IotIcon/IotIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type IotIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/KeypointDetectionIcon/KeypointDetectionIcon.stories.tsx b/packages/design-system/src/ui/Icons/KeypointDetectionIcon/KeypointDetectionIcon.stories.tsx index 4d95d7efd4..a793f56c25 100644 --- a/packages/design-system/src/ui/Icons/KeypointDetectionIcon/KeypointDetectionIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/KeypointDetectionIcon/KeypointDetectionIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import KeypointDetectionIcon from "./KeypointDetectionIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/KeypointDetectionIcon/KeypointDetectionIcon.tsx b/packages/design-system/src/ui/Icons/KeypointDetectionIcon/KeypointDetectionIcon.tsx index 60a46abbef..363ab7e284 100644 --- a/packages/design-system/src/ui/Icons/KeypointDetectionIcon/KeypointDetectionIcon.tsx +++ b/packages/design-system/src/ui/Icons/KeypointDetectionIcon/KeypointDetectionIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type KeypointDetectionIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/LinkedInIcon/LinkedInIcon.stories.tsx b/packages/design-system/src/ui/Icons/LinkedInIcon/LinkedInIcon.stories.tsx index 7258e886ca..d7cc1d0f5c 100644 --- a/packages/design-system/src/ui/Icons/LinkedInIcon/LinkedInIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/LinkedInIcon/LinkedInIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import LinkedInIcon from "./LinkedInIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/LinkedInIcon/LinkedInIcon.tsx b/packages/design-system/src/ui/Icons/LinkedInIcon/LinkedInIcon.tsx index 3e79718400..8f78b91f7c 100644 --- a/packages/design-system/src/ui/Icons/LinkedInIcon/LinkedInIcon.tsx +++ b/packages/design-system/src/ui/Icons/LinkedInIcon/LinkedInIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type LinkedInIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/LocalUploadIcon/LocalUploadIcon.stories.tsx b/packages/design-system/src/ui/Icons/LocalUploadIcon/LocalUploadIcon.stories.tsx index ddaa2424ff..cf8033cf49 100644 --- a/packages/design-system/src/ui/Icons/LocalUploadIcon/LocalUploadIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/LocalUploadIcon/LocalUploadIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import LocalUploadIcon from "./LocalUploadIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/LocalUploadIcon/LocalUploadIcon.tsx b/packages/design-system/src/ui/Icons/LocalUploadIcon/LocalUploadIcon.tsx index 25ce152ee6..1e9206d910 100644 --- a/packages/design-system/src/ui/Icons/LocalUploadIcon/LocalUploadIcon.tsx +++ b/packages/design-system/src/ui/Icons/LocalUploadIcon/LocalUploadIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type LocalUploadIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/MediumIcon/MediumIcon.stories.tsx b/packages/design-system/src/ui/Icons/MediumIcon/MediumIcon.stories.tsx index 361df076de..f2bf8f8b26 100644 --- a/packages/design-system/src/ui/Icons/MediumIcon/MediumIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/MediumIcon/MediumIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import MediumIcon from "./MediumIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/MediumIcon/MediumIcon.tsx b/packages/design-system/src/ui/Icons/MediumIcon/MediumIcon.tsx index 9b02802b9e..67b048c359 100644 --- a/packages/design-system/src/ui/Icons/MediumIcon/MediumIcon.tsx +++ b/packages/design-system/src/ui/Icons/MediumIcon/MediumIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type MediumIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/MenuIcon/MenuIcon.stories.tsx b/packages/design-system/src/ui/Icons/MenuIcon/MenuIcon.stories.tsx index 7f7f65cba0..d5e39a3210 100644 --- a/packages/design-system/src/ui/Icons/MenuIcon/MenuIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/MenuIcon/MenuIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import MenuIcon from "./MenuIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/MenuIcon/MenuIcon.tsx b/packages/design-system/src/ui/Icons/MenuIcon/MenuIcon.tsx index 41887002a0..4dc68e46bb 100644 --- a/packages/design-system/src/ui/Icons/MenuIcon/MenuIcon.tsx +++ b/packages/design-system/src/ui/Icons/MenuIcon/MenuIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type MenuIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/MetabaseIcon/MetabaseIcon.stories.tsx b/packages/design-system/src/ui/Icons/MetabaseIcon/MetabaseIcon.stories.tsx index 4c71f5876d..cccd2e92df 100644 --- a/packages/design-system/src/ui/Icons/MetabaseIcon/MetabaseIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/MetabaseIcon/MetabaseIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import MetabaseIcon from "./MetabaseIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/MetabaseIcon/MetabaseIcon.tsx b/packages/design-system/src/ui/Icons/MetabaseIcon/MetabaseIcon.tsx index d9151ae501..eaa5a529c1 100644 --- a/packages/design-system/src/ui/Icons/MetabaseIcon/MetabaseIcon.tsx +++ b/packages/design-system/src/ui/Icons/MetabaseIcon/MetabaseIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type MetabaseIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/MinusIcon/MinusIcon.stories.tsx b/packages/design-system/src/ui/Icons/MinusIcon/MinusIcon.stories.tsx index 5f57169b0e..466391797c 100644 --- a/packages/design-system/src/ui/Icons/MinusIcon/MinusIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/MinusIcon/MinusIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import MinusIcon from "./MinusIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/MinusIcon/MinusIcon.tsx b/packages/design-system/src/ui/Icons/MinusIcon/MinusIcon.tsx index 4ec5fceabd..f526bb5286 100644 --- a/packages/design-system/src/ui/Icons/MinusIcon/MinusIcon.tsx +++ b/packages/design-system/src/ui/Icons/MinusIcon/MinusIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type MinusIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ModelIcon/ModelIcon.stories.tsx b/packages/design-system/src/ui/Icons/ModelIcon/ModelIcon.stories.tsx index cc7647d85d..445b5bf52a 100644 --- a/packages/design-system/src/ui/Icons/ModelIcon/ModelIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ModelIcon/ModelIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ModelIcon from "./ModelIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ModelIcon/ModelIcon.tsx b/packages/design-system/src/ui/Icons/ModelIcon/ModelIcon.tsx index d28f2f74ee..239849e25d 100644 --- a/packages/design-system/src/ui/Icons/ModelIcon/ModelIcon.tsx +++ b/packages/design-system/src/ui/Icons/ModelIcon/ModelIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type ModelIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ModelInstanceIcon/ModelInstanceIcon.stories.tsx b/packages/design-system/src/ui/Icons/ModelInstanceIcon/ModelInstanceIcon.stories.tsx index 33849f3cfa..aafa8ca56b 100644 --- a/packages/design-system/src/ui/Icons/ModelInstanceIcon/ModelInstanceIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ModelInstanceIcon/ModelInstanceIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ModelInstanceIcon from "./ModelInstanceIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ModelInstanceIcon/ModelInstanceIcon.tsx b/packages/design-system/src/ui/Icons/ModelInstanceIcon/ModelInstanceIcon.tsx index 0da0eeaabd..c3e80b163b 100644 --- a/packages/design-system/src/ui/Icons/ModelInstanceIcon/ModelInstanceIcon.tsx +++ b/packages/design-system/src/ui/Icons/ModelInstanceIcon/ModelInstanceIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type ModelInstanceIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/MongoDbAtalasIcon/MongoDbAtalasIcon.stories.tsx b/packages/design-system/src/ui/Icons/MongoDbAtalasIcon/MongoDbAtalasIcon.stories.tsx index fbebd6d868..321583dc90 100644 --- a/packages/design-system/src/ui/Icons/MongoDbAtalasIcon/MongoDbAtalasIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/MongoDbAtalasIcon/MongoDbAtalasIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import MongoDbAtalasIcon from "./MongoDbAtalasIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/MongoDbAtalasIcon/MongoDbAtalasIcon.tsx b/packages/design-system/src/ui/Icons/MongoDbAtalasIcon/MongoDbAtalasIcon.tsx index a9902e6948..9f955badc7 100644 --- a/packages/design-system/src/ui/Icons/MongoDbAtalasIcon/MongoDbAtalasIcon.tsx +++ b/packages/design-system/src/ui/Icons/MongoDbAtalasIcon/MongoDbAtalasIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type MongoDbAtalasIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/MongoDbIcon/MongoDbIcon.stories.tsx b/packages/design-system/src/ui/Icons/MongoDbIcon/MongoDbIcon.stories.tsx index 1ee7eb10c7..57a38574c5 100644 --- a/packages/design-system/src/ui/Icons/MongoDbIcon/MongoDbIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/MongoDbIcon/MongoDbIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import MongoDbIcon from "./MongoDbIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/MongoDbIcon/MongoDbIcon.tsx b/packages/design-system/src/ui/Icons/MongoDbIcon/MongoDbIcon.tsx index c4782cd822..309a564ad5 100644 --- a/packages/design-system/src/ui/Icons/MongoDbIcon/MongoDbIcon.tsx +++ b/packages/design-system/src/ui/Icons/MongoDbIcon/MongoDbIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type MongoDbIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/MySqlIcon/MySqlIcon.stories.tsx b/packages/design-system/src/ui/Icons/MySqlIcon/MySqlIcon.stories.tsx index 8fbe367a63..905eb202a6 100644 --- a/packages/design-system/src/ui/Icons/MySqlIcon/MySqlIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/MySqlIcon/MySqlIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import MySqlIcon from "./MySqlIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/MySqlIcon/MySqlIcon.tsx b/packages/design-system/src/ui/Icons/MySqlIcon/MySqlIcon.tsx index db3e910034..59cc5fcbb3 100644 --- a/packages/design-system/src/ui/Icons/MySqlIcon/MySqlIcon.tsx +++ b/packages/design-system/src/ui/Icons/MySqlIcon/MySqlIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type MySqlIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ObjectDetectionIcon/ObjectDetectionIcon.stories.tsx b/packages/design-system/src/ui/Icons/ObjectDetectionIcon/ObjectDetectionIcon.stories.tsx index fb32a27022..36740da74b 100644 --- a/packages/design-system/src/ui/Icons/ObjectDetectionIcon/ObjectDetectionIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ObjectDetectionIcon/ObjectDetectionIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ObjectDetectionIcon from "./ObjectDetectionIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ObjectDetectionIcon/ObjectDetectionIcon.tsx b/packages/design-system/src/ui/Icons/ObjectDetectionIcon/ObjectDetectionIcon.tsx index 3d71c06657..db3ceea074 100644 --- a/packages/design-system/src/ui/Icons/ObjectDetectionIcon/ObjectDetectionIcon.tsx +++ b/packages/design-system/src/ui/Icons/ObjectDetectionIcon/ObjectDetectionIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type ObjectDetectionIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/OnnxIcon/OnnxIcon.stories.tsx b/packages/design-system/src/ui/Icons/OnnxIcon/OnnxIcon.stories.tsx index a924abf17d..61f28e46be 100644 --- a/packages/design-system/src/ui/Icons/OnnxIcon/OnnxIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/OnnxIcon/OnnxIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import OnnxIcon from "./OnnxIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/OnnxIcon/OnnxIcon.tsx b/packages/design-system/src/ui/Icons/OnnxIcon/OnnxIcon.tsx index 9b014f9952..fedca2d531 100644 --- a/packages/design-system/src/ui/Icons/OnnxIcon/OnnxIcon.tsx +++ b/packages/design-system/src/ui/Icons/OnnxIcon/OnnxIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type OnnxIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/OpticalCharacterRecognitionIcon/OpticalCharacterRecognitionIcon.stories.tsx b/packages/design-system/src/ui/Icons/OpticalCharacterRecognitionIcon/OpticalCharacterRecognitionIcon.stories.tsx index dbc9f680d1..a7b027f4db 100644 --- a/packages/design-system/src/ui/Icons/OpticalCharacterRecognitionIcon/OpticalCharacterRecognitionIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/OpticalCharacterRecognitionIcon/OpticalCharacterRecognitionIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import OpticalCharacterRecognitionIcon from "./OpticalCharacterRecognitionIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/OpticalCharacterRecognitionIcon/OpticalCharacterRecognitionIcon.tsx b/packages/design-system/src/ui/Icons/OpticalCharacterRecognitionIcon/OpticalCharacterRecognitionIcon.tsx index cb06a54ebe..11d35760ea 100644 --- a/packages/design-system/src/ui/Icons/OpticalCharacterRecognitionIcon/OpticalCharacterRecognitionIcon.tsx +++ b/packages/design-system/src/ui/Icons/OpticalCharacterRecognitionIcon/OpticalCharacterRecognitionIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type OpticalCharacterRecognitionIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/PenIcon/PenIcon.stories.tsx b/packages/design-system/src/ui/Icons/PenIcon/PenIcon.stories.tsx index 7481904c46..ff8cc39583 100644 --- a/packages/design-system/src/ui/Icons/PenIcon/PenIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/PenIcon/PenIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import PenIcon from "./PenIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/PenIcon/PenIcon.tsx b/packages/design-system/src/ui/Icons/PenIcon/PenIcon.tsx index 6e3f2225f7..6e2398c074 100644 --- a/packages/design-system/src/ui/Icons/PenIcon/PenIcon.tsx +++ b/packages/design-system/src/ui/Icons/PenIcon/PenIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type PenIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/PinIcon/PinIcon.stories.tsx b/packages/design-system/src/ui/Icons/PinIcon/PinIcon.stories.tsx index 5b7ae7184d..e4e888bd12 100644 --- a/packages/design-system/src/ui/Icons/PinIcon/PinIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/PinIcon/PinIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import PinIcon from "./PinIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/PinIcon/PinIcon.tsx b/packages/design-system/src/ui/Icons/PinIcon/PinIcon.tsx index 953ef020cc..bde7a812fd 100644 --- a/packages/design-system/src/ui/Icons/PinIcon/PinIcon.tsx +++ b/packages/design-system/src/ui/Icons/PinIcon/PinIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type PinIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/PipelineIcon/PipelineIcon.stories.tsx b/packages/design-system/src/ui/Icons/PipelineIcon/PipelineIcon.stories.tsx index 41ea5b7ff2..3e87c5b577 100644 --- a/packages/design-system/src/ui/Icons/PipelineIcon/PipelineIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/PipelineIcon/PipelineIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import PipelineIcon from "./PipelineIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/PipelineIcon/PipelineIcon.tsx b/packages/design-system/src/ui/Icons/PipelineIcon/PipelineIcon.tsx index ab229a7e20..b0e80b4ee8 100644 --- a/packages/design-system/src/ui/Icons/PipelineIcon/PipelineIcon.tsx +++ b/packages/design-system/src/ui/Icons/PipelineIcon/PipelineIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type PipelineIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/PixelCheckIcon/PixelCheckIcon.stories.tsx b/packages/design-system/src/ui/Icons/PixelCheckIcon/PixelCheckIcon.stories.tsx index 8b05a67e5e..ec5c69d4e7 100644 --- a/packages/design-system/src/ui/Icons/PixelCheckIcon/PixelCheckIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/PixelCheckIcon/PixelCheckIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import PixelCheckIcon from "./PixelCheckIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/PixelCheckIcon/PixelCheckIcon.tsx b/packages/design-system/src/ui/Icons/PixelCheckIcon/PixelCheckIcon.tsx index 41d49190db..9186b1b399 100644 --- a/packages/design-system/src/ui/Icons/PixelCheckIcon/PixelCheckIcon.tsx +++ b/packages/design-system/src/ui/Icons/PixelCheckIcon/PixelCheckIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type PixelCheckIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/PixelCrossIcon/PixelCrossIcon.stories.tsx b/packages/design-system/src/ui/Icons/PixelCrossIcon/PixelCrossIcon.stories.tsx index 4ed5d0f73b..47ca167193 100644 --- a/packages/design-system/src/ui/Icons/PixelCrossIcon/PixelCrossIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/PixelCrossIcon/PixelCrossIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import PixelCrossIcon from "./PixelCrossIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/PixelCrossIcon/PixelCrossIcon.tsx b/packages/design-system/src/ui/Icons/PixelCrossIcon/PixelCrossIcon.tsx index 2aad8925c2..090b4b866d 100644 --- a/packages/design-system/src/ui/Icons/PixelCrossIcon/PixelCrossIcon.tsx +++ b/packages/design-system/src/ui/Icons/PixelCrossIcon/PixelCrossIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type PixelCrossIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/PlusIcon/PlusIcon.stories.tsx b/packages/design-system/src/ui/Icons/PlusIcon/PlusIcon.stories.tsx index 43e8f6f065..2cf5e045ca 100644 --- a/packages/design-system/src/ui/Icons/PlusIcon/PlusIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/PlusIcon/PlusIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import PlusIcon from "./PlusIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/PlusIcon/PlusIcon.tsx b/packages/design-system/src/ui/Icons/PlusIcon/PlusIcon.tsx index 5736b46f9e..1f2618e549 100644 --- a/packages/design-system/src/ui/Icons/PlusIcon/PlusIcon.tsx +++ b/packages/design-system/src/ui/Icons/PlusIcon/PlusIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type PlusIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/PostgreSqlIcon/PostgreSqlIcon.stories.tsx b/packages/design-system/src/ui/Icons/PostgreSqlIcon/PostgreSqlIcon.stories.tsx index 9b1fac12f9..32f9d44372 100644 --- a/packages/design-system/src/ui/Icons/PostgreSqlIcon/PostgreSqlIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/PostgreSqlIcon/PostgreSqlIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import PostgreSqlIcon from "./PostgreSqlIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/PostgreSqlIcon/PostgreSqlIcon.tsx b/packages/design-system/src/ui/Icons/PostgreSqlIcon/PostgreSqlIcon.tsx index ff7a712b74..284495c582 100644 --- a/packages/design-system/src/ui/Icons/PostgreSqlIcon/PostgreSqlIcon.tsx +++ b/packages/design-system/src/ui/Icons/PostgreSqlIcon/PostgreSqlIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type PostgreSqlIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/PyTorchIcon/PyTorchIcon.stories.tsx b/packages/design-system/src/ui/Icons/PyTorchIcon/PyTorchIcon.stories.tsx index f1b80505d7..27df92bd14 100644 --- a/packages/design-system/src/ui/Icons/PyTorchIcon/PyTorchIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/PyTorchIcon/PyTorchIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import PyTorchIcon from "./PyTorchIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/PyTorchIcon/PyTorchIcon.tsx b/packages/design-system/src/ui/Icons/PyTorchIcon/PyTorchIcon.tsx index 694ca624ca..0945525cb8 100644 --- a/packages/design-system/src/ui/Icons/PyTorchIcon/PyTorchIcon.tsx +++ b/packages/design-system/src/ui/Icons/PyTorchIcon/PyTorchIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type PyTorchIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/PythonIcon/PythonIcon.stories.tsx b/packages/design-system/src/ui/Icons/PythonIcon/PythonIcon.stories.tsx index ffb862ce40..46995566b7 100644 --- a/packages/design-system/src/ui/Icons/PythonIcon/PythonIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/PythonIcon/PythonIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import PythonIcon from "./PythonIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/PythonIcon/PythonIcon.tsx b/packages/design-system/src/ui/Icons/PythonIcon/PythonIcon.tsx index 328862c3ee..18fb1587f6 100644 --- a/packages/design-system/src/ui/Icons/PythonIcon/PythonIcon.tsx +++ b/packages/design-system/src/ui/Icons/PythonIcon/PythonIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type PythonIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/RedshiftIcon/RedShiftIcon.tsx b/packages/design-system/src/ui/Icons/RedshiftIcon/RedShiftIcon.tsx index 5ce5e7ca6b..6331473ad6 100644 --- a/packages/design-system/src/ui/Icons/RedshiftIcon/RedShiftIcon.tsx +++ b/packages/design-system/src/ui/Icons/RedshiftIcon/RedShiftIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type RedShiftIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/RedshiftIcon/RedshiftIcon.stories.tsx b/packages/design-system/src/ui/Icons/RedshiftIcon/RedshiftIcon.stories.tsx index 99c077d161..06cf82b81b 100644 --- a/packages/design-system/src/ui/Icons/RedshiftIcon/RedshiftIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/RedshiftIcon/RedshiftIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import RedShiftIcon from "./RedShiftIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/RefreshIcon/RefreshIcon.stories.tsx b/packages/design-system/src/ui/Icons/RefreshIcon/RefreshIcon.stories.tsx index 1a1fd2372b..129cc23f7f 100644 --- a/packages/design-system/src/ui/Icons/RefreshIcon/RefreshIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/RefreshIcon/RefreshIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import RefreshIcon from "./RefreshIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/RefreshIcon/RefreshIcon.tsx b/packages/design-system/src/ui/Icons/RefreshIcon/RefreshIcon.tsx index 2181c88f99..95e12c35e9 100644 --- a/packages/design-system/src/ui/Icons/RefreshIcon/RefreshIcon.tsx +++ b/packages/design-system/src/ui/Icons/RefreshIcon/RefreshIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type RefreshIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ResourceIcon/ResourceIcon.stories.tsx b/packages/design-system/src/ui/Icons/ResourceIcon/ResourceIcon.stories.tsx index f1d26018a4..8ff6dd9c51 100644 --- a/packages/design-system/src/ui/Icons/ResourceIcon/ResourceIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ResourceIcon/ResourceIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ResourceIcon from "./ResourceIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ResourceIcon/ResourceIcon.tsx b/packages/design-system/src/ui/Icons/ResourceIcon/ResourceIcon.tsx index 30a1350d66..4c8052e55d 100644 --- a/packages/design-system/src/ui/Icons/ResourceIcon/ResourceIcon.tsx +++ b/packages/design-system/src/ui/Icons/ResourceIcon/ResourceIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type ResourceIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/SalesforceIcon/SalesforceIcon.stories.tsx b/packages/design-system/src/ui/Icons/SalesforceIcon/SalesforceIcon.stories.tsx index d5c9204ef7..4c0259b7ed 100644 --- a/packages/design-system/src/ui/Icons/SalesforceIcon/SalesforceIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/SalesforceIcon/SalesforceIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import SalesforceIcon from "./SalesforceIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/SalesforceIcon/SalesforceIcon.tsx b/packages/design-system/src/ui/Icons/SalesforceIcon/SalesforceIcon.tsx index 8f402de6c3..d217717b13 100644 --- a/packages/design-system/src/ui/Icons/SalesforceIcon/SalesforceIcon.tsx +++ b/packages/design-system/src/ui/Icons/SalesforceIcon/SalesforceIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type SalesforceIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/SemanticSegmentationIcon/SemanticSegmentationIcon.stories.tsx b/packages/design-system/src/ui/Icons/SemanticSegmentationIcon/SemanticSegmentationIcon.stories.tsx index 2709be7ff3..c902fde4af 100644 --- a/packages/design-system/src/ui/Icons/SemanticSegmentationIcon/SemanticSegmentationIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/SemanticSegmentationIcon/SemanticSegmentationIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import SemanticSegmentationIcon from "./SemanticSegmentationIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/SemanticSegmentationIcon/SemanticSegmentationIcon.tsx b/packages/design-system/src/ui/Icons/SemanticSegmentationIcon/SemanticSegmentationIcon.tsx index f1facedfd8..5f23e4812a 100644 --- a/packages/design-system/src/ui/Icons/SemanticSegmentationIcon/SemanticSegmentationIcon.tsx +++ b/packages/design-system/src/ui/Icons/SemanticSegmentationIcon/SemanticSegmentationIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type SemanticSegmentationIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/ShopifyIcon/ShopifyIcon.stories.tsx b/packages/design-system/src/ui/Icons/ShopifyIcon/ShopifyIcon.stories.tsx index 2085c2dd45..32ea82bb91 100644 --- a/packages/design-system/src/ui/Icons/ShopifyIcon/ShopifyIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ShopifyIcon/ShopifyIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ShopifyIcon from "./ShopifyIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ShopifyIcon/ShopifyIcon.tsx b/packages/design-system/src/ui/Icons/ShopifyIcon/ShopifyIcon.tsx index e331dffd5d..48db5851de 100644 --- a/packages/design-system/src/ui/Icons/ShopifyIcon/ShopifyIcon.tsx +++ b/packages/design-system/src/ui/Icons/ShopifyIcon/ShopifyIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type ShopifyIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/SlackIcon/SlackIcon.stories.tsx b/packages/design-system/src/ui/Icons/SlackIcon/SlackIcon.stories.tsx index 190f491818..1e44b345f9 100644 --- a/packages/design-system/src/ui/Icons/SlackIcon/SlackIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/SlackIcon/SlackIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import SlackIcon from "./SlackIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/SlackIcon/SlackIcon.tsx b/packages/design-system/src/ui/Icons/SlackIcon/SlackIcon.tsx index bcf7283d24..18ca609397 100644 --- a/packages/design-system/src/ui/Icons/SlackIcon/SlackIcon.tsx +++ b/packages/design-system/src/ui/Icons/SlackIcon/SlackIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type SlackIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/SnowflakeIcon/SnowflakeIcon.stories.tsx b/packages/design-system/src/ui/Icons/SnowflakeIcon/SnowflakeIcon.stories.tsx index da17284699..bbfa710457 100644 --- a/packages/design-system/src/ui/Icons/SnowflakeIcon/SnowflakeIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/SnowflakeIcon/SnowflakeIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import SnowflakeIcon from "./SnowflakeIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/SnowflakeIcon/SnowflakeIcon.tsx b/packages/design-system/src/ui/Icons/SnowflakeIcon/SnowflakeIcon.tsx index ba626d6fa6..edb7d91b86 100644 --- a/packages/design-system/src/ui/Icons/SnowflakeIcon/SnowflakeIcon.tsx +++ b/packages/design-system/src/ui/Icons/SnowflakeIcon/SnowflakeIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type SnowflakeIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/SquarePlusIcon/SquarePlusIcon.stories.tsx b/packages/design-system/src/ui/Icons/SquarePlusIcon/SquarePlusIcon.stories.tsx index a57556651c..4aaec66b9c 100644 --- a/packages/design-system/src/ui/Icons/SquarePlusIcon/SquarePlusIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/SquarePlusIcon/SquarePlusIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import SquarePlusIcon from "./SquarePlusIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/SquarePlusIcon/SquarePlusIcon.tsx b/packages/design-system/src/ui/Icons/SquarePlusIcon/SquarePlusIcon.tsx index 9d0010a65e..bef98dd70c 100644 --- a/packages/design-system/src/ui/Icons/SquarePlusIcon/SquarePlusIcon.tsx +++ b/packages/design-system/src/ui/Icons/SquarePlusIcon/SquarePlusIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type SquarePlusIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/StatusErrorIcon/StatusErrorIcon.stories.tsx b/packages/design-system/src/ui/Icons/StatusErrorIcon/StatusErrorIcon.stories.tsx index d933489ece..880369954f 100644 --- a/packages/design-system/src/ui/Icons/StatusErrorIcon/StatusErrorIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/StatusErrorIcon/StatusErrorIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import StatusErrorIcon from "./StatusErrorIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/StatusErrorIcon/StatusErrorIcon.tsx b/packages/design-system/src/ui/Icons/StatusErrorIcon/StatusErrorIcon.tsx index f18c17647b..adc982e141 100644 --- a/packages/design-system/src/ui/Icons/StatusErrorIcon/StatusErrorIcon.tsx +++ b/packages/design-system/src/ui/Icons/StatusErrorIcon/StatusErrorIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type StatusErrorIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/StatusOffIcon/StatusOffIcon.stories.tsx b/packages/design-system/src/ui/Icons/StatusOffIcon/StatusOffIcon.stories.tsx index 471b993bcb..5c4503360b 100644 --- a/packages/design-system/src/ui/Icons/StatusOffIcon/StatusOffIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/StatusOffIcon/StatusOffIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import StatusOffIcon from "./StatusOffIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/StatusOffIcon/StatusOffIcon.tsx b/packages/design-system/src/ui/Icons/StatusOffIcon/StatusOffIcon.tsx index cb7070a0a5..28ddeaff36 100644 --- a/packages/design-system/src/ui/Icons/StatusOffIcon/StatusOffIcon.tsx +++ b/packages/design-system/src/ui/Icons/StatusOffIcon/StatusOffIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type StatusOffIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/StatusOnIcon/StatusOnIcon.stories.tsx b/packages/design-system/src/ui/Icons/StatusOnIcon/StatusOnIcon.stories.tsx index 014e3c8b83..9a68634b41 100644 --- a/packages/design-system/src/ui/Icons/StatusOnIcon/StatusOnIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/StatusOnIcon/StatusOnIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import StatusOnIcon from "./StatusOnIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/StatusOnIcon/StatusOnIcon.tsx b/packages/design-system/src/ui/Icons/StatusOnIcon/StatusOnIcon.tsx index e2f5ea3289..b602d2f91d 100644 --- a/packages/design-system/src/ui/Icons/StatusOnIcon/StatusOnIcon.tsx +++ b/packages/design-system/src/ui/Icons/StatusOnIcon/StatusOnIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type StatusOnIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/SyncArrowsIcon/SyncArrowsIcon.stories.tsx b/packages/design-system/src/ui/Icons/SyncArrowsIcon/SyncArrowsIcon.stories.tsx index c046b9bc6f..6ecfdb00f1 100644 --- a/packages/design-system/src/ui/Icons/SyncArrowsIcon/SyncArrowsIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/SyncArrowsIcon/SyncArrowsIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import SyncArrowsIcon from "./SyncArrowsIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/SyncArrowsIcon/SyncArrowsIcon.tsx b/packages/design-system/src/ui/Icons/SyncArrowsIcon/SyncArrowsIcon.tsx index 3a7959d97e..57fb4e89f1 100644 --- a/packages/design-system/src/ui/Icons/SyncArrowsIcon/SyncArrowsIcon.tsx +++ b/packages/design-system/src/ui/Icons/SyncArrowsIcon/SyncArrowsIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type SyncArrowsIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/SyncIcon/SyncIcon.stories.tsx b/packages/design-system/src/ui/Icons/SyncIcon/SyncIcon.stories.tsx index 7e1fdab511..f83831c13c 100644 --- a/packages/design-system/src/ui/Icons/SyncIcon/SyncIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/SyncIcon/SyncIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import SyncIcon from "./SyncIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/SyncIcon/SyncIcon.tsx b/packages/design-system/src/ui/Icons/SyncIcon/SyncIcon.tsx index 7412bd6e9b..734e5058cb 100644 --- a/packages/design-system/src/ui/Icons/SyncIcon/SyncIcon.tsx +++ b/packages/design-system/src/ui/Icons/SyncIcon/SyncIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type SyncIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/TensorFlowIcon/TensorFlowIcon.stories.tsx b/packages/design-system/src/ui/Icons/TensorFlowIcon/TensorFlowIcon.stories.tsx index ff29e0b4e1..c41ddd48ce 100644 --- a/packages/design-system/src/ui/Icons/TensorFlowIcon/TensorFlowIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/TensorFlowIcon/TensorFlowIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import TensorFlowIcon from "./TensorFlowIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/TensorFlowIcon/TensorFlowIcon.tsx b/packages/design-system/src/ui/Icons/TensorFlowIcon/TensorFlowIcon.tsx index 3fe8fe7616..37baf37a9f 100644 --- a/packages/design-system/src/ui/Icons/TensorFlowIcon/TensorFlowIcon.tsx +++ b/packages/design-system/src/ui/Icons/TensorFlowIcon/TensorFlowIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type TensorFlowIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/TextGenerationIcon/TextGenerationIcon.stories.tsx b/packages/design-system/src/ui/Icons/TextGenerationIcon/TextGenerationIcon.stories.tsx index ad6cadb6eb..7225e876cc 100644 --- a/packages/design-system/src/ui/Icons/TextGenerationIcon/TextGenerationIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/TextGenerationIcon/TextGenerationIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import TextGenerationIcon from "./TextGenerationIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/TextGenerationIcon/TextGenerationIcon.tsx b/packages/design-system/src/ui/Icons/TextGenerationIcon/TextGenerationIcon.tsx index 187629a24d..de0245f448 100644 --- a/packages/design-system/src/ui/Icons/TextGenerationIcon/TextGenerationIcon.tsx +++ b/packages/design-system/src/ui/Icons/TextGenerationIcon/TextGenerationIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type TextGenerationIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/TextToImageIcon/TextToImageIcon.stories.tsx b/packages/design-system/src/ui/Icons/TextToImageIcon/TextToImageIcon.stories.tsx index 4d3cc8b1fb..3ebb3af946 100644 --- a/packages/design-system/src/ui/Icons/TextToImageIcon/TextToImageIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/TextToImageIcon/TextToImageIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import TextToImageIcon from "./TextToImageIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/TextToImageIcon/TextToImageIcon.tsx b/packages/design-system/src/ui/Icons/TextToImageIcon/TextToImageIcon.tsx index 10c798c3be..d24f11e331 100644 --- a/packages/design-system/src/ui/Icons/TextToImageIcon/TextToImageIcon.tsx +++ b/packages/design-system/src/ui/Icons/TextToImageIcon/TextToImageIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type TextToImageIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ToggleIcon/ToggleIcon.stories.tsx b/packages/design-system/src/ui/Icons/ToggleIcon/ToggleIcon.stories.tsx index 7b1fc606ab..dc2df59dd0 100644 --- a/packages/design-system/src/ui/Icons/ToggleIcon/ToggleIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ToggleIcon/ToggleIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ToggleIcon from "./ToggleIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ToggleIcon/ToggleIcon.tsx b/packages/design-system/src/ui/Icons/ToggleIcon/ToggleIcon.tsx index 432f2d6684..e84105f133 100644 --- a/packages/design-system/src/ui/Icons/ToggleIcon/ToggleIcon.tsx +++ b/packages/design-system/src/ui/Icons/ToggleIcon/ToggleIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type ToggleIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/ToolboxIcon/ToolboxIcon.stories.tsx b/packages/design-system/src/ui/Icons/ToolboxIcon/ToolboxIcon.stories.tsx index b66590d862..1cddc88c55 100644 --- a/packages/design-system/src/ui/Icons/ToolboxIcon/ToolboxIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/ToolboxIcon/ToolboxIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import ToolboxIcon from "./ToolboxIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/ToolboxIcon/ToolboxIcon.tsx b/packages/design-system/src/ui/Icons/ToolboxIcon/ToolboxIcon.tsx index c57bdc4d94..f8a18db623 100644 --- a/packages/design-system/src/ui/Icons/ToolboxIcon/ToolboxIcon.tsx +++ b/packages/design-system/src/ui/Icons/ToolboxIcon/ToolboxIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type ToolboxIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/TwitterIcon/TwitterIcon.stories.tsx b/packages/design-system/src/ui/Icons/TwitterIcon/TwitterIcon.stories.tsx index f09a6102b4..166abdcf58 100644 --- a/packages/design-system/src/ui/Icons/TwitterIcon/TwitterIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/TwitterIcon/TwitterIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import TwitterIcon from "./TwitterIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/TwitterIcon/TwitterIcon.tsx b/packages/design-system/src/ui/Icons/TwitterIcon/TwitterIcon.tsx index cad4540e30..a9c674ba1c 100644 --- a/packages/design-system/src/ui/Icons/TwitterIcon/TwitterIcon.tsx +++ b/packages/design-system/src/ui/Icons/TwitterIcon/TwitterIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type TwitterIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/VersionIcon/VersionIcon.stories.tsx b/packages/design-system/src/ui/Icons/VersionIcon/VersionIcon.stories.tsx index 572ef55c36..312ea0bbbd 100644 --- a/packages/design-system/src/ui/Icons/VersionIcon/VersionIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/VersionIcon/VersionIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import VersionIcon from "./VersionIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/VersionIcon/VersionIcon.tsx b/packages/design-system/src/ui/Icons/VersionIcon/VersionIcon.tsx index 0622fc49c9..37dd31d497 100644 --- a/packages/design-system/src/ui/Icons/VersionIcon/VersionIcon.tsx +++ b/packages/design-system/src/ui/Icons/VersionIcon/VersionIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type VersionIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/VisualDataOperatorIcon/VisualDataOperatorIcon.stories.tsx b/packages/design-system/src/ui/Icons/VisualDataOperatorIcon/VisualDataOperatorIcon.stories.tsx index d765ee9d34..27e82785f9 100644 --- a/packages/design-system/src/ui/Icons/VisualDataOperatorIcon/VisualDataOperatorIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/VisualDataOperatorIcon/VisualDataOperatorIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import VisualDataOperatorIcon from "./VisualDataOperatorIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/VisualDataOperatorIcon/VisualDataOperatorIcon.tsx b/packages/design-system/src/ui/Icons/VisualDataOperatorIcon/VisualDataOperatorIcon.tsx index 1cc68af306..1145f85274 100644 --- a/packages/design-system/src/ui/Icons/VisualDataOperatorIcon/VisualDataOperatorIcon.tsx +++ b/packages/design-system/src/ui/Icons/VisualDataOperatorIcon/VisualDataOperatorIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type VisualDataOperatorIconProps = Omit< diff --git a/packages/design-system/src/ui/Icons/XIcon/XIcon.stories.tsx b/packages/design-system/src/ui/Icons/XIcon/XIcon.stories.tsx index 01686edf56..903d9e1ad2 100644 --- a/packages/design-system/src/ui/Icons/XIcon/XIcon.stories.tsx +++ b/packages/design-system/src/ui/Icons/XIcon/XIcon.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import XIcon from "./XIcon"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Icons/XIcon/XIcon.tsx b/packages/design-system/src/ui/Icons/XIcon/XIcon.tsx index b366d49dfb..007c755c26 100644 --- a/packages/design-system/src/ui/Icons/XIcon/XIcon.tsx +++ b/packages/design-system/src/ui/Icons/XIcon/XIcon.tsx @@ -1,4 +1,5 @@ import React from "react"; + import IconBase, { IconBaseProps } from "../IconBase"; export type XIconProps = Omit; diff --git a/packages/design-system/src/ui/Icons/index.ts b/packages/design-system/src/ui/Icons/index.ts index 8e271a1433..23cef4c189 100644 --- a/packages/design-system/src/ui/Icons/index.ts +++ b/packages/design-system/src/ui/Icons/index.ts @@ -1,198 +1,197 @@ -import AirbyteIcon from "./AirbyteIcon"; import type { AirbyteIconProps } from "./AirbyteIcon"; -import AsyncArrowsIcon from "./AsyncArrowsIcon"; +import type { + ArrowDownIconProps, + ArrowLeftIconProps, + ArrowRightIconProps, + ArrowUpIconProps, + RotatableArrowIconProps, +} from "./ArrowIcons"; +import type { ArtiVcIconProps } from "./ArtiVcIcon"; import type { AsyncArrowsIconProps } from "./AsyncArrowsIcon"; -import EyeOnIcon from "./EyeOnIcon"; -import type { EyeOnIconProps } from "./EyeOnIcon"; -import EyeOffIcon from "./EyeOffIcon"; -import type { EyeOffIconProps } from "./EyeOffIcon"; -import IdIcon from "./IdIcon/IdIcon"; -import type { IdIconProps } from "./IdIcon"; -import HttpIcon from "./HttpIcon"; -import type { HttpIconProps } from "./HttpIcon"; -import GrpcIcon from "./GrpcIcon"; -import type { GrpcIconProps } from "./GrpcIcon"; -import SnowflakeIcon from "./SnowflakeIcon"; -import type { SnowflakeIconProps } from "./SnowflakeIcon"; -import MongoDbIcon from "./MongoDbIcon"; -import type { MongoDbIconProps } from "./MongoDbIcon"; -import CopyIcon from "./CopyIcon"; -import type { CopyIconProps } from "./CopyIcon"; -import ClientIcon from "./ClientIcon"; +import type { AsyncIconProps } from "./AsyncIcon"; +import type { AwsRdsIconProps } from "./AwsRdsIcon"; +import type { AwsS3IconProps } from "./AwsS3Icon"; +import type { BarChartIconProps } from "./BarChartIcon"; +import type { BigQueryIconProps } from "./BigQueryIcon"; +import type { CheckIconProps } from "./CheckIcon"; import type { ClientIconProps } from "./ClientIcon"; -import CollapseLeftIcon from "./CollapseLeftIcon"; import type { CollapseLeftIconProps } from "./CollapseLeftIcon"; -import CollapseRightIcon from "./CollapseRightIcon"; import type { CollapseRightIconProps } from "./CollapseRightIcon"; -import ModelIcon from "./ModelIcon"; -import type { ModelIconProps } from "./ModelIcon"; -import MinusIcon from "./MinusIcon"; -import type { MinusIconProps } from "./MinusIcon"; -import BarChartIcon from "./BarChartIcon"; -import type { BarChartIconProps } from "./BarChartIcon"; -import VisualDataOperatorIcon from "./VisualDataOperatorIcon"; -import type { VisualDataOperatorIconProps } from "./VisualDataOperatorIcon"; -import DataDestinationIcon from "./DataDestinationIcon"; +import type { CopyIconProps } from "./CopyIcon"; +import type { CrossIconProps } from "./CrossIcon"; import type { DataDestinationIconProps } from "./DataDestinationIcon"; -import DataSourceIcon from "./DataSourceIcon"; import type { DataSourceIconProps } from "./DataSourceIcon"; -import FolderPlusIcon from "./FolderPlusIcon"; -import type { FolderPlusIconProps } from "./FolderPlusIcon"; -import FolderInUseIcon from "./FolderInUseIcon"; -import type { FolderInUseIconProps } from "./FolderInUseIcon"; -import DocIcon from "./DocIcon"; +import type { DiscordIconProps } from "./DiscordIcon"; import type { DocIconProps } from "./DocIcon"; -import SquarePlusIcon from "./SquarePlusIcon"; -import type { SquarePlusIconProps } from "./SquarePlusIcon"; -import GearIcon from "./GearIcon"; -import type { GearIconProps } from "./GearIcon"; -import ResourceIcon from "./ResourceIcon"; -import type { ResourceIconProps } from "./ResourceIcon"; -import XIcon from "./XIcon"; -import type { XIconProps } from "./XIcon"; -import CheckIcon from "./CheckIcon"; -import type { CheckIconProps } from "./CheckIcon"; -import DoubleArrowIcon from "./DoubleArrowIcon"; import type { DoubleArrowIconProps } from "./DoubleArrowIcon"; -import PipelineIcon from "./PipelineIcon"; +import type { EyeOffIconProps } from "./EyeOffIcon"; +import type { EyeOnIconProps } from "./EyeOnIcon"; +import type { FacebookIconProps } from "./FacebookIcon"; +import type { FilterIconProps } from "./FilterIcon"; +import type { FolderInUseIconProps } from "./FolderInUseIcon"; +import type { FolderPlusIconProps } from "./FolderPlusIcon"; +import type { GcsIconProps } from "./GcsIcon"; +import type { GearIconProps } from "./GearIcon"; +import type { GitBranchIconProps } from "./GitBranchIcon"; +import type { GitCommitIconProps } from "./GitCommitIcon"; +import type { GitHubIconProps } from "./GitHubIcon"; +import type { GitTagIconProps } from "./GitTagIcon"; +import type { GoogleDriveIconProps } from "./GoogleDriveIcon"; +import type { GoogleIconProps } from "./GoogleIcon"; +import type { GoogleSheetIconProps } from "./GoogleSheetIcon"; +import type { GrpcIconProps } from "./GrpcIcon"; +import type { HttpIconProps } from "./HttpIcon"; +import type { HuggingFaceIconProps } from "./HuggingFaceIcon"; +import type { IdIconProps } from "./IdIcon"; +import type { ImageClassificationIconProps } from "./ImageClassificationIcon"; +import type { ImageToImageIconProps } from "./ImageToImageIcon"; +import type { ImageToTextIconProps } from "./ImageToTextIcon"; +import type { InstanceSegmentationIconProps } from "./InstanceSegmentationIcon"; +import type { IotIconProps } from "./IotIcon"; +import type { KeypointDetectionIconProps } from "./KeypointDetectionIcon"; +import type { LinkedInIconProps } from "./LinkedInIcon"; +import type { LocalUploadIconProps } from "./LocalUploadIcon"; +import type { MediumIconProps } from "./MediumIcon"; +import type { MenuIconProps } from "./MenuIcon"; +import type { MetabaseIconProps } from "./MetabaseIcon"; +import type { MinusIconProps } from "./MinusIcon"; +import type { ModelIconProps } from "./ModelIcon"; +import type { ModelInstanceIconProps } from "./ModelInstanceIcon"; +import type { MongoDbAtalasIconProps } from "./MongoDbAtalasIcon"; +import type { MongoDbIconProps } from "./MongoDbIcon"; +import type { MySqlIconProps } from "./MySqlIcon"; +import type { ObjectDetectionIconProps } from "./ObjectDetectionIcon"; +import type { OnnxIconProps } from "./OnnxIcon"; +import type { OpticalCharacterRecognitionIconProps } from "./OpticalCharacterRecognitionIcon"; +import type { PenIconProps } from "./PenIcon"; +import type { PinIconProps } from "./PinIcon"; import type { PipelineIconProps } from "./PipelineIcon"; -import RedshiftIcon from "./RedshiftIcon"; -import type { RedShiftIconProps } from "./RedshiftIcon"; -import PostgreSqlIcon from "./PostgreSqlIcon"; +import type { PixelCheckIconProps } from "./PixelCheckIcon"; +import type { PixelCrossIconProps } from "./PixelCrossIcon"; +import type { PlusIconProps } from "./PlusIcon"; import type { PostgreSqlIconProps } from "./PostgreSqlIcon"; -import PythonIcon from "./PythonIcon"; import type { PythonIconProps } from "./PythonIcon"; -import PlusIcon from "./PlusIcon"; -import type { PlusIconProps } from "./PlusIcon"; -import PyTorchIcon from "./PyTorchIcon"; import type { PyTorchIconProps } from "./PyTorchIcon"; -import BigQueryIcon from "./BigQueryIcon"; -import type { BigQueryIconProps } from "./BigQueryIcon"; -import MySqlIcon from "./MySqlIcon"; -import type { MySqlIconProps } from "./MySqlIcon"; -import SalesforceIcon from "./SalesforceIcon"; +import type { RedShiftIconProps } from "./RedshiftIcon"; +import type { RefreshIconProps } from "./RefreshIcon"; +import type { ResourceIconProps } from "./ResourceIcon"; import type { SalesforceIconProps } from "./SalesforceIcon"; -import ShopifyIcon from "./ShopifyIcon"; +import type { SemanticSegmentationIconProps } from "./SemanticSegmentationIcon"; import type { ShopifyIconProps } from "./ShopifyIcon"; -import SlackIcon from "./SlackIcon"; import type { SlackIconProps } from "./SlackIcon"; -import FacebookIcon from "./FacebookIcon"; -import type { FacebookIconProps } from "./FacebookIcon"; -import GoogleSheetIcon from "./GoogleSheetIcon"; -import type { GoogleSheetIconProps } from "./GoogleSheetIcon"; -import AwsRdsIcon from "./AwsRdsIcon"; -import type { AwsRdsIconProps } from "./AwsRdsIcon"; -import StatusOnIcon from "./StatusOnIcon"; -import type { StatusOnIconProps } from "./StatusOnIcon"; -import StatusOffIcon from "./StatusOffIcon"; -import type { StatusOffIconProps } from "./StatusOffIcon"; -import StatusErrorIcon from "./StatusErrorIcon"; +import type { SnowflakeIconProps } from "./SnowflakeIcon"; +import type { SquarePlusIconProps } from "./SquarePlusIcon"; import type { StatusErrorIconProps } from "./StatusErrorIcon"; -import SyncArrowsIcon from "./SyncArrowsIcon"; +import type { StatusOffIconProps } from "./StatusOffIcon"; +import type { StatusOnIconProps } from "./StatusOnIcon"; import type { SyncArrowsIconProps } from "./SyncArrowsIcon"; -import ModelInstanceIcon from "./ModelInstanceIcon"; -import type { ModelInstanceIconProps } from "./ModelInstanceIcon"; -import RefreshIcon from "./RefreshIcon"; -import type { RefreshIconProps } from "./RefreshIcon"; -import MenuIcon from "./MenuIcon"; -import type { MenuIconProps } from "./MenuIcon"; - +import type { SyncIconProps } from "./SyncIcon"; +import type { TensorFlowIconProps } from "./TensorFlowIcon"; +import type { TextGenerationIconProps } from "./TextGenerationIcon"; +import type { TextToImageIconProps } from "./TextToImageIcon"; +import type { ToggleIconProps } from "./ToggleIcon"; +import type { ToolboxIconProps } from "./ToolboxIcon"; +import type { TwitterIconProps } from "./TwitterIcon"; +import type { VersionIconProps } from "./VersionIcon"; +import type { VisualDataOperatorIconProps } from "./VisualDataOperatorIcon"; +import type { XIconProps } from "./XIcon"; +import AirbyteIcon from "./AirbyteIcon"; import { - ArrowUpIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, + ArrowUpIcon, RotatableArrowIcon, } from "./ArrowIcons"; -import type { - ArrowUpIconProps, - ArrowDownIconProps, - ArrowRightIconProps, - ArrowLeftIconProps, - RotatableArrowIconProps, -} from "./ArrowIcons"; -import SyncIcon from "./SyncIcon"; -import type { SyncIconProps } from "./SyncIcon"; -import TensorFlowIcon from "./TensorFlowIcon"; -import type { TensorFlowIconProps } from "./TensorFlowIcon"; -import TextGenerationIcon from "./TextGenerationIcon"; -import type { TextGenerationIconProps } from "./TextGenerationIcon"; -import TextToImageIcon from "./TextToImageIcon"; -import type { TextToImageIconProps } from "./TextToImageIcon"; +import ArtiVcIcon from "./ArtiVcIcon"; +import AsyncArrowsIcon from "./AsyncArrowsIcon"; import AsyncIcon from "./AsyncIcon"; -import type { AsyncIconProps } from "./AsyncIcon"; -import VersionIcon from "./VersionIcon"; -import type { VersionIconProps } from "./VersionIcon"; -import LocalUploadIcon from "./LocalUploadIcon"; -import type { LocalUploadIconProps } from "./LocalUploadIcon"; -import GitHubIcon from "./GitHubIcon"; -import type { GitHubIconProps } from "./GitHubIcon"; +import AwsRdsIcon from "./AwsRdsIcon"; +import AwsS3Icon from "./AwsS3Icon"; +import BarChartIcon from "./BarChartIcon"; +import BigQueryIcon from "./BigQueryIcon"; +import CheckIcon from "./CheckIcon"; +import ClientIcon from "./ClientIcon"; +import CollapseLeftIcon from "./CollapseLeftIcon"; +import CollapseRightIcon from "./CollapseRightIcon"; +import CopyIcon from "./CopyIcon"; +import CrossIcon from "./CrossIcon"; +import DataDestinationIcon from "./DataDestinationIcon"; +import DataSourceIcon from "./DataSourceIcon"; +import DiscordIcon from "./DiscordIcon"; +import DocIcon from "./DocIcon"; +import DoubleArrowIcon from "./DoubleArrowIcon"; +import EyeOffIcon from "./EyeOffIcon"; +import EyeOnIcon from "./EyeOnIcon"; +import FacebookIcon from "./FacebookIcon"; +import FilterIcon from "./FilterIcon"; +import FolderInUseIcon from "./FolderInUseIcon"; +import FolderPlusIcon from "./FolderPlusIcon"; +import GcsIcon from "./GcsIcon"; +import GearIcon from "./GearIcon"; import GitBranchIcon from "./GitBranchIcon"; -import type { GitBranchIconProps } from "./GitBranchIcon"; -import GitTagIcon from "./GitTagIcon"; -import type { GitTagIconProps } from "./GitTagIcon"; import GitCommitIcon from "./GitCommitIcon"; -import type { GitCommitIconProps } from "./GitCommitIcon"; -import PixelCrossIcon from "./PixelCrossIcon"; -import type { PixelCrossIconProps } from "./PixelCrossIcon"; -import PixelCheckIcon from "./PixelCheckIcon"; -import type { PixelCheckIconProps } from "./PixelCheckIcon"; -import GcsIcon from "./GcsIcon"; -import type { GcsIconProps } from "./GcsIcon"; -import IotIcon from "./IotIcon"; -import type { IotIconProps } from "./IotIcon"; -import ImageToImageIcon from "./ImageToImageIcon"; -import type { ImageToImageIconProps } from "./ImageToImageIcon"; -import ImageToTextIcon from "./ImageToTextIcon"; -import type { ImageToTextIconProps } from "./ImageToTextIcon"; -import AwsS3Icon from "./AwsS3Icon"; -import type { AwsS3IconProps } from "./AwsS3Icon"; -import MongoDbAtalasIcon from "./MongoDbAtalasIcon"; -import type { MongoDbAtalasIconProps } from "./MongoDbAtalasIcon"; +import GitHubIcon from "./GitHubIcon"; +import GitTagIcon from "./GitTagIcon"; import GoogleDriveIcon from "./GoogleDriveIcon"; -import type { GoogleDriveIconProps } from "./GoogleDriveIcon"; import GoogleIcon from "./GoogleIcon"; -import type { GoogleIconProps } from "./GoogleIcon"; +import GoogleSheetIcon from "./GoogleSheetIcon"; +import GrpcIcon from "./GrpcIcon"; +import HttpIcon from "./HttpIcon"; +import HuggingFaceIcon from "./HuggingFaceIcon"; +import IdIcon from "./IdIcon/IdIcon"; import ImageClassificationIcon from "./ImageClassificationIcon"; -import type { ImageClassificationIconProps } from "./ImageClassificationIcon"; -import ObjectDetectionIcon from "./ObjectDetectionIcon"; -import type { ObjectDetectionIconProps } from "./ObjectDetectionIcon"; -import OnnxIcon from "./OnnxIcon"; -import type { OnnxIconProps } from "./OnnxIcon"; -import KeypointDetectionIcon from "./KeypointDetectionIcon"; -import type { KeypointDetectionIconProps } from "./KeypointDetectionIcon"; +import ImageToImageIcon from "./ImageToImageIcon"; +import ImageToTextIcon from "./ImageToTextIcon"; import InstanceSegmentationIcon from "./InstanceSegmentationIcon"; -import type { InstanceSegmentationIconProps } from "./InstanceSegmentationIcon"; -import SemanticSegmentationIcon from "./SemanticSegmentationIcon"; -import type { SemanticSegmentationIconProps } from "./SemanticSegmentationIcon"; -import OpticalCharacterRecognitionIcon from "./OpticalCharacterRecognitionIcon"; -import type { OpticalCharacterRecognitionIconProps } from "./OpticalCharacterRecognitionIcon"; -import ArtiVcIcon from "./ArtiVcIcon"; -import type { ArtiVcIconProps } from "./ArtiVcIcon"; -import HuggingFaceIcon from "./HuggingFaceIcon"; -import type { HuggingFaceIconProps } from "./HuggingFaceIcon"; -import DiscordIcon from "./DiscordIcon"; -import type { DiscordIconProps } from "./DiscordIcon"; +import IotIcon from "./IotIcon"; +import KeypointDetectionIcon from "./KeypointDetectionIcon"; +import LinkedInIcon from "./LinkedInIcon"; +import LocalUploadIcon from "./LocalUploadIcon"; import MediumIcon from "./MediumIcon"; -import type { MediumIconProps } from "./MediumIcon"; +import MenuIcon from "./MenuIcon"; import MetabaseIcon from "./MetabaseIcon"; -import type { MetabaseIconProps } from "./MetabaseIcon"; -import CrossIcon from "./CrossIcon"; -import type { CrossIconProps } from "./CrossIcon"; -import LinkedInIcon from "./LinkedInIcon"; -import type { LinkedInIconProps } from "./LinkedInIcon"; +import MinusIcon from "./MinusIcon"; +import ModelIcon from "./ModelIcon"; +import ModelInstanceIcon from "./ModelInstanceIcon"; +import MongoDbAtalasIcon from "./MongoDbAtalasIcon"; +import MongoDbIcon from "./MongoDbIcon"; +import MySqlIcon from "./MySqlIcon"; +import ObjectDetectionIcon from "./ObjectDetectionIcon"; +import OnnxIcon from "./OnnxIcon"; +import OpticalCharacterRecognitionIcon from "./OpticalCharacterRecognitionIcon"; import PenIcon from "./PenIcon"; -import type { PenIconProps } from "./PenIcon"; import PinIcon from "./PinIcon"; -import type { PinIconProps } from "./PinIcon"; -import TwitterIcon from "./TwitterIcon"; -import type { TwitterIconProps } from "./TwitterIcon"; -import ToolboxIcon from "./ToolboxIcon"; -import type { ToolboxIconProps } from "./ToolboxIcon"; +import PipelineIcon from "./PipelineIcon"; +import PixelCheckIcon from "./PixelCheckIcon"; +import PixelCrossIcon from "./PixelCrossIcon"; +import PlusIcon from "./PlusIcon"; +import PostgreSqlIcon from "./PostgreSqlIcon"; +import PythonIcon from "./PythonIcon"; +import PyTorchIcon from "./PyTorchIcon"; +import RedshiftIcon from "./RedshiftIcon"; +import RefreshIcon from "./RefreshIcon"; +import ResourceIcon from "./ResourceIcon"; +import SalesforceIcon from "./SalesforceIcon"; +import SemanticSegmentationIcon from "./SemanticSegmentationIcon"; +import ShopifyIcon from "./ShopifyIcon"; +import SlackIcon from "./SlackIcon"; +import SnowflakeIcon from "./SnowflakeIcon"; +import SquarePlusIcon from "./SquarePlusIcon"; +import StatusErrorIcon from "./StatusErrorIcon"; +import StatusOffIcon from "./StatusOffIcon"; +import StatusOnIcon from "./StatusOnIcon"; +import SyncArrowsIcon from "./SyncArrowsIcon"; +import SyncIcon from "./SyncIcon"; +import TensorFlowIcon from "./TensorFlowIcon"; +import TextGenerationIcon from "./TextGenerationIcon"; +import TextToImageIcon from "./TextToImageIcon"; import ToggleIcon from "./ToggleIcon"; -import type { ToggleIconProps } from "./ToggleIcon"; -import FilterIcon from "./FilterIcon"; -import type { FilterIconProps } from "./FilterIcon"; +import ToolboxIcon from "./ToolboxIcon"; +import TwitterIcon from "./TwitterIcon"; +import VersionIcon from "./VersionIcon"; +import VisualDataOperatorIcon from "./VisualDataOperatorIcon"; +import XIcon from "./XIcon"; export type { AirbyteIconProps, diff --git a/packages/design-system/src/ui/InputDescriptions/BasicInputDescription/BasicInputDescription.stories.tsx b/packages/design-system/src/ui/InputDescriptions/BasicInputDescription/BasicInputDescription.stories.tsx index 3e92c7c6aa..e8857e9ac6 100644 --- a/packages/design-system/src/ui/InputDescriptions/BasicInputDescription/BasicInputDescription.stories.tsx +++ b/packages/design-system/src/ui/InputDescriptions/BasicInputDescription/BasicInputDescription.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import { BasicInputDescription } from "./BasicInputDescription"; const meta: Meta = { diff --git a/packages/design-system/src/ui/InputDescriptions/BasicInputDescription/BasicInputDescription.tsx b/packages/design-system/src/ui/InputDescriptions/BasicInputDescription/BasicInputDescription.tsx index c486590d8a..d1d72f4a45 100644 --- a/packages/design-system/src/ui/InputDescriptions/BasicInputDescription/BasicInputDescription.tsx +++ b/packages/design-system/src/ui/InputDescriptions/BasicInputDescription/BasicInputDescription.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import { InputDescriptionBase, InputDescriptionBaseProps, diff --git a/packages/design-system/src/ui/InputDescriptions/InputDescriptionBase/InputDescriptionBase.stories.tsx b/packages/design-system/src/ui/InputDescriptions/InputDescriptionBase/InputDescriptionBase.stories.tsx index 9ac76baf9c..bcedb6357a 100644 --- a/packages/design-system/src/ui/InputDescriptions/InputDescriptionBase/InputDescriptionBase.stories.tsx +++ b/packages/design-system/src/ui/InputDescriptions/InputDescriptionBase/InputDescriptionBase.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import { InputDescriptionBase } from "./InputDescriptionBase"; const meta: Meta = { diff --git a/packages/design-system/src/ui/InputLabels/BasicInputLabel/BasicInputLabel.stories.tsx b/packages/design-system/src/ui/InputLabels/BasicInputLabel/BasicInputLabel.stories.tsx index ee41ef5f76..fcaca4d242 100644 --- a/packages/design-system/src/ui/InputLabels/BasicInputLabel/BasicInputLabel.stories.tsx +++ b/packages/design-system/src/ui/InputLabels/BasicInputLabel/BasicInputLabel.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import BasicInputLabel from "./BasicInputLabel"; const meta: Meta = { diff --git a/packages/design-system/src/ui/InputLabels/BasicInputLabel/BasicInputLabel.tsx b/packages/design-system/src/ui/InputLabels/BasicInputLabel/BasicInputLabel.tsx index da4ee12ec9..d5db5b143e 100644 --- a/packages/design-system/src/ui/InputLabels/BasicInputLabel/BasicInputLabel.tsx +++ b/packages/design-system/src/ui/InputLabels/BasicInputLabel/BasicInputLabel.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import InputLabelBase, { InputLabelBaseProps } from "../InputLabelBase"; export type BasicInputLabelOmitKeys = diff --git a/packages/design-system/src/ui/InputLabels/InputLabelBase/InputLabelBase.stories.tsx b/packages/design-system/src/ui/InputLabels/InputLabelBase/InputLabelBase.stories.tsx index f5c6cc49ff..86fdc153ac 100644 --- a/packages/design-system/src/ui/InputLabels/InputLabelBase/InputLabelBase.stories.tsx +++ b/packages/design-system/src/ui/InputLabels/InputLabelBase/InputLabelBase.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import InputLabelBase from "./InputLabelBase"; const meta: Meta = { diff --git a/packages/design-system/src/ui/InputLabels/InputLabelBase/InputLabelBase.tsx b/packages/design-system/src/ui/InputLabels/InputLabelBase/InputLabelBase.tsx index 53bd05f3cd..8f726b8e79 100644 --- a/packages/design-system/src/ui/InputLabels/InputLabelBase/InputLabelBase.tsx +++ b/packages/design-system/src/ui/InputLabels/InputLabelBase/InputLabelBase.tsx @@ -1,5 +1,6 @@ import * as React from "react"; import cn from "clsx"; + import { Nullable } from "../../../types/general"; export type InputLabelBaseProps = { diff --git a/packages/design-system/src/ui/InputLabels/TextAreaInputLabel/TextAreaInputLabel.stories.tsx b/packages/design-system/src/ui/InputLabels/TextAreaInputLabel/TextAreaInputLabel.stories.tsx index eee26ca07d..74c459bfb4 100644 --- a/packages/design-system/src/ui/InputLabels/TextAreaInputLabel/TextAreaInputLabel.stories.tsx +++ b/packages/design-system/src/ui/InputLabels/TextAreaInputLabel/TextAreaInputLabel.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import TextAreaInputLabel from "./TextAreaInputLabel"; const meta: Meta = { diff --git a/packages/design-system/src/ui/InputLabels/TextAreaInputLabel/TextAreaInputLabel.tsx b/packages/design-system/src/ui/InputLabels/TextAreaInputLabel/TextAreaInputLabel.tsx index 9619c2e61b..36529558ba 100644 --- a/packages/design-system/src/ui/InputLabels/TextAreaInputLabel/TextAreaInputLabel.tsx +++ b/packages/design-system/src/ui/InputLabels/TextAreaInputLabel/TextAreaInputLabel.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import InputLabelBase, { InputLabelBaseProps } from "../InputLabelBase"; export type TextAreaInputLabelKeys = diff --git a/packages/design-system/src/ui/InputLabels/index.ts b/packages/design-system/src/ui/InputLabels/index.ts index 1c4aaa5fc0..df77e2f9ae 100644 --- a/packages/design-system/src/ui/InputLabels/index.ts +++ b/packages/design-system/src/ui/InputLabels/index.ts @@ -1,7 +1,7 @@ -import BasicInputLabel from "./BasicInputLabel"; import type { BasicInputLabelProps } from "./BasicInputLabel"; -import TextAreaInputLabel from "./TextAreaInputLabel"; import type { TextAreaInputLabelProps } from "./TextAreaInputLabel"; +import BasicInputLabel from "./BasicInputLabel"; +import TextAreaInputLabel from "./TextAreaInputLabel"; export { BasicInputLabel, diff --git a/packages/design-system/src/ui/Logo/Logo.stories.tsx b/packages/design-system/src/ui/Logo/Logo.stories.tsx index 53baaa8220..4427b39dff 100644 --- a/packages/design-system/src/ui/Logo/Logo.stories.tsx +++ b/packages/design-system/src/ui/Logo/Logo.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import { Logo } from "./Logo"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Logo/Logo.test.tsx b/packages/design-system/src/ui/Logo/Logo.test.tsx index 3f031a5dc0..2cbac8d1c2 100644 --- a/packages/design-system/src/ui/Logo/Logo.test.tsx +++ b/packages/design-system/src/ui/Logo/Logo.test.tsx @@ -1,6 +1,7 @@ import { render, screen } from "@testing-library/react"; +import { describe, expect, it } from "vitest"; + import { Logo } from "./Logo"; -import { describe, it, expect } from "vitest"; describe("Logo", () => { it("should render responsive colour logomark with black type", () => { diff --git a/packages/design-system/src/ui/Logo/ModelLogo.stories.tsx b/packages/design-system/src/ui/Logo/ModelLogo.stories.tsx index 757a386c2f..0b2b7cb01b 100644 --- a/packages/design-system/src/ui/Logo/ModelLogo.stories.tsx +++ b/packages/design-system/src/ui/Logo/ModelLogo.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { ModelLogo } from "./ModelLogo"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Logo/VdpLogo.stories.tsx b/packages/design-system/src/ui/Logo/VdpLogo.stories.tsx index e788ba8a60..1a5d1c449d 100644 --- a/packages/design-system/src/ui/Logo/VdpLogo.stories.tsx +++ b/packages/design-system/src/ui/Logo/VdpLogo.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react"; + import { VdpLogo } from "./VdpLogo"; const meta: Meta = { diff --git a/packages/design-system/src/ui/ModalRoot.tsx b/packages/design-system/src/ui/ModalRoot.tsx index d8138a8a5b..3fa4f704f7 100644 --- a/packages/design-system/src/ui/ModalRoot.tsx +++ b/packages/design-system/src/ui/ModalRoot.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { createPortal } from "react-dom"; import cn from "clsx"; +import { createPortal } from "react-dom"; import { Nullable } from "../types/general"; diff --git a/packages/design-system/src/ui/Progress/DarkBgSquareProgress/DarkBgSquareProgress.stories.tsx b/packages/design-system/src/ui/Progress/DarkBgSquareProgress/DarkBgSquareProgress.stories.tsx index 45248248e0..660db3f0e2 100644 --- a/packages/design-system/src/ui/Progress/DarkBgSquareProgress/DarkBgSquareProgress.stories.tsx +++ b/packages/design-system/src/ui/Progress/DarkBgSquareProgress/DarkBgSquareProgress.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import DarkBgSquareProgress from "./DarkBgSquareProgress"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Progress/DarkBgSquareProgress/DarkBgSquareProgress.tsx b/packages/design-system/src/ui/Progress/DarkBgSquareProgress/DarkBgSquareProgress.tsx index e03128105c..a535d38634 100644 --- a/packages/design-system/src/ui/Progress/DarkBgSquareProgress/DarkBgSquareProgress.tsx +++ b/packages/design-system/src/ui/Progress/DarkBgSquareProgress/DarkBgSquareProgress.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import SquareProgressBase, { SquareProgressBaseProps, } from "../SquareProgressBase"; diff --git a/packages/design-system/src/ui/Progress/NoBgSquareProgress/NoBgSquareProgress.stories.tsx b/packages/design-system/src/ui/Progress/NoBgSquareProgress/NoBgSquareProgress.stories.tsx index 563d323c3f..35c5904b0f 100644 --- a/packages/design-system/src/ui/Progress/NoBgSquareProgress/NoBgSquareProgress.stories.tsx +++ b/packages/design-system/src/ui/Progress/NoBgSquareProgress/NoBgSquareProgress.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import NoBgSquareProgress from "./NoBgSquareProgress"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Progress/NoBgSquareProgress/NoBgSquareProgress.tsx b/packages/design-system/src/ui/Progress/NoBgSquareProgress/NoBgSquareProgress.tsx index 0a17e8a5a1..f8ecef8c9f 100644 --- a/packages/design-system/src/ui/Progress/NoBgSquareProgress/NoBgSquareProgress.tsx +++ b/packages/design-system/src/ui/Progress/NoBgSquareProgress/NoBgSquareProgress.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import SquareProgressBase, { SquareProgressBaseProps, } from "../SquareProgressBase"; diff --git a/packages/design-system/src/ui/Progress/SquareProgressBase/SquareProgressBase.stories.tsx b/packages/design-system/src/ui/Progress/SquareProgressBase/SquareProgressBase.stories.tsx index 7ec9ab5a97..feba916f81 100644 --- a/packages/design-system/src/ui/Progress/SquareProgressBase/SquareProgressBase.stories.tsx +++ b/packages/design-system/src/ui/Progress/SquareProgressBase/SquareProgressBase.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import SquareProgressBase from "./SquareProgressBase"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Progress/SquareProgressBase/SquareProgressBase.tsx b/packages/design-system/src/ui/Progress/SquareProgressBase/SquareProgressBase.tsx index 6e40f561f5..a5e9e2fd95 100644 --- a/packages/design-system/src/ui/Progress/SquareProgressBase/SquareProgressBase.tsx +++ b/packages/design-system/src/ui/Progress/SquareProgressBase/SquareProgressBase.tsx @@ -1,6 +1,8 @@ import * as React from "react"; import cn from "clsx"; + import "./SquareProgressBase.css"; + import { Nullable } from "../../../types/general"; export interface SquareProgressBaseProps { diff --git a/packages/design-system/src/ui/Progress/WhiteBgSquareProgress/WhiteBgSquareProgress.stories.tsx b/packages/design-system/src/ui/Progress/WhiteBgSquareProgress/WhiteBgSquareProgress.stories.tsx index 9e64aa7946..4a28b67957 100644 --- a/packages/design-system/src/ui/Progress/WhiteBgSquareProgress/WhiteBgSquareProgress.stories.tsx +++ b/packages/design-system/src/ui/Progress/WhiteBgSquareProgress/WhiteBgSquareProgress.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import WhiteBgSquareProgress from "./WhiteBgSquareProgress"; const meta: Meta = { diff --git a/packages/design-system/src/ui/Progress/WhiteBgSquareProgress/WhiteBgSquareProgress.tsx b/packages/design-system/src/ui/Progress/WhiteBgSquareProgress/WhiteBgSquareProgress.tsx index 95737de7aa..85d2e5cbd8 100644 --- a/packages/design-system/src/ui/Progress/WhiteBgSquareProgress/WhiteBgSquareProgress.tsx +++ b/packages/design-system/src/ui/Progress/WhiteBgSquareProgress/WhiteBgSquareProgress.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import SquareProgressBase, { SquareProgressBaseProps, } from "../SquareProgressBase"; diff --git a/packages/design-system/src/ui/Progress/index.ts b/packages/design-system/src/ui/Progress/index.ts index 5171f05cec..960ae39698 100644 --- a/packages/design-system/src/ui/Progress/index.ts +++ b/packages/design-system/src/ui/Progress/index.ts @@ -1,11 +1,9 @@ -import WhiteBgSquareProgress from "./WhiteBgSquareProgress"; +import type { DarkBgSquareProgressProps } from "./DarkBgSquareProgress"; +import type { NoBgSquareProgressProps } from "./NoBgSquareProgress"; import type { WhiteBgSquareProgressProps } from "./WhiteBgSquareProgress"; - import DarkBgSquareProgress from "./DarkBgSquareProgress"; -import type { DarkBgSquareProgressProps } from "./DarkBgSquareProgress"; - import NoBgSquareProgress from "./NoBgSquareProgress"; -import type { NoBgSquareProgressProps } from "./NoBgSquareProgress"; +import WhiteBgSquareProgress from "./WhiteBgSquareProgress"; export { WhiteBgSquareProgress, diff --git a/packages/design-system/src/ui/ProgressMessageBoxs/BasicProgressMessageBox/BasicProgressMessageBox.stories.tsx b/packages/design-system/src/ui/ProgressMessageBoxs/BasicProgressMessageBox/BasicProgressMessageBox.stories.tsx index 7e55778786..4afbd67dca 100644 --- a/packages/design-system/src/ui/ProgressMessageBoxs/BasicProgressMessageBox/BasicProgressMessageBox.stories.tsx +++ b/packages/design-system/src/ui/ProgressMessageBoxs/BasicProgressMessageBox/BasicProgressMessageBox.stories.tsx @@ -1,5 +1,6 @@ import * as React from "react"; import { Meta, StoryFn } from "@storybook/react"; + import { ProgressMessageBoxState } from "../ProgressMessageBoxBase"; import BasicProgressMessageBox from "./BasicProgressMessageBox"; diff --git a/packages/design-system/src/ui/ProgressMessageBoxs/BasicProgressMessageBox/BasicProgressMessageBox.tsx b/packages/design-system/src/ui/ProgressMessageBoxs/BasicProgressMessageBox/BasicProgressMessageBox.tsx index 90ee61d4a6..5237f52448 100644 --- a/packages/design-system/src/ui/ProgressMessageBoxs/BasicProgressMessageBox/BasicProgressMessageBox.tsx +++ b/packages/design-system/src/ui/ProgressMessageBoxs/BasicProgressMessageBox/BasicProgressMessageBox.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import ProgressMessageBoxBase, { ProgressMessageBoxBaseProps, } from "../ProgressMessageBoxBase"; diff --git a/packages/design-system/src/ui/ProgressMessageBoxs/ProgressMessageBoxBase/ProgressMessageBoxBase.stories.tsx b/packages/design-system/src/ui/ProgressMessageBoxs/ProgressMessageBoxBase/ProgressMessageBoxBase.stories.tsx index 3a84058443..017a7e789e 100644 --- a/packages/design-system/src/ui/ProgressMessageBoxs/ProgressMessageBoxBase/ProgressMessageBoxBase.stories.tsx +++ b/packages/design-system/src/ui/ProgressMessageBoxs/ProgressMessageBoxBase/ProgressMessageBoxBase.stories.tsx @@ -1,5 +1,6 @@ import * as React from "react"; import { Meta, StoryFn } from "@storybook/react"; + import { basicProgressMessageBoxConfig } from "../BasicProgressMessageBox"; import ProgressMessageBoxBase, { ProgressMessageBoxState, diff --git a/packages/design-system/src/ui/ProgressMessageBoxs/ProgressMessageBoxBase/ProgressMessageBoxBase.tsx b/packages/design-system/src/ui/ProgressMessageBoxs/ProgressMessageBoxBase/ProgressMessageBoxBase.tsx index 18b040ac79..1ae9688f57 100644 --- a/packages/design-system/src/ui/ProgressMessageBoxs/ProgressMessageBoxBase/ProgressMessageBoxBase.tsx +++ b/packages/design-system/src/ui/ProgressMessageBoxs/ProgressMessageBoxBase/ProgressMessageBoxBase.tsx @@ -1,8 +1,9 @@ -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; + +import { Nullable } from "../../../types/general"; import { PixelCheckIcon, PixelCrossIcon, XIcon } from "../../Icons"; import NoBgSquareProgress from "../../Progress/NoBgSquareProgress"; -import { Nullable } from "../../../types/general"; export type ProgressMessageBoxState = { status: Nullable<"success" | "error" | "progressing">; diff --git a/packages/design-system/src/ui/ProgressMessageBoxs/index.ts b/packages/design-system/src/ui/ProgressMessageBoxs/index.ts index a51c7cdc14..d8a4347fec 100644 --- a/packages/design-system/src/ui/ProgressMessageBoxs/index.ts +++ b/packages/design-system/src/ui/ProgressMessageBoxs/index.ts @@ -1,6 +1,6 @@ -import BasicProgressMessageBox from "./BasicProgressMessageBox"; import type { BasicProgressMessageBoxProps } from "./BasicProgressMessageBox"; import type { ProgressMessageBoxState } from "./ProgressMessageBoxBase"; +import BasicProgressMessageBox from "./BasicProgressMessageBox"; export { BasicProgressMessageBox }; export type { BasicProgressMessageBoxProps, ProgressMessageBoxState }; diff --git a/packages/design-system/src/ui/SingleSelects/BasicSingleSelect/BasicSingleSelect.stories.tsx b/packages/design-system/src/ui/SingleSelects/BasicSingleSelect/BasicSingleSelect.stories.tsx index aa906b4e9a..f589c07a03 100644 --- a/packages/design-system/src/ui/SingleSelects/BasicSingleSelect/BasicSingleSelect.stories.tsx +++ b/packages/design-system/src/ui/SingleSelects/BasicSingleSelect/BasicSingleSelect.stories.tsx @@ -1,8 +1,9 @@ -import { Meta, StoryFn } from "@storybook/react"; import * as React from "react"; +import { Meta, StoryFn } from "@storybook/react"; + import { BasicSingleSelect, basicSingleSelectConfig } from "."; -import { basicInputDescriptionConfig } from "../../InputDescriptions"; import { Nullable, SelectOption } from "../../../types/general"; +import { basicInputDescriptionConfig } from "../../InputDescriptions"; const meta: Meta = { title: "Components/Ui/Input/BasicSingleSelect", diff --git a/packages/design-system/src/ui/SingleSelects/BasicSingleSelect/BasicSingleSelect.tsx b/packages/design-system/src/ui/SingleSelects/BasicSingleSelect/BasicSingleSelect.tsx index 94cf50584f..15e40dd7b5 100644 --- a/packages/design-system/src/ui/SingleSelects/BasicSingleSelect/BasicSingleSelect.tsx +++ b/packages/design-system/src/ui/SingleSelects/BasicSingleSelect/BasicSingleSelect.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import { basicInputDescriptionConfig, BasicInputDescriptionOmitKeys, diff --git a/packages/design-system/src/ui/SingleSelects/SingleSelectBase/SelectItem.tsx b/packages/design-system/src/ui/SingleSelects/SingleSelectBase/SelectItem.tsx index e1b9659447..9043ac7d4e 100644 --- a/packages/design-system/src/ui/SingleSelects/SingleSelectBase/SelectItem.tsx +++ b/packages/design-system/src/ui/SingleSelects/SingleSelectBase/SelectItem.tsx @@ -1,8 +1,9 @@ -import cn from "clsx"; -import * as Select from "@radix-ui/react-select"; import * as React from "react"; -import { CheckIcon } from "../../Icons"; +import * as Select from "@radix-ui/react-select"; +import cn from "clsx"; + import { Nullable, SelectOption } from "../../../types/general"; +import { CheckIcon } from "../../Icons"; export type SelectItemProps = { width: Nullable; diff --git a/packages/design-system/src/ui/SingleSelects/SingleSelectBase/SingleSelectBase.stories.tsx b/packages/design-system/src/ui/SingleSelects/SingleSelectBase/SingleSelectBase.stories.tsx index 2617ef3123..6b759f3649 100644 --- a/packages/design-system/src/ui/SingleSelects/SingleSelectBase/SingleSelectBase.stories.tsx +++ b/packages/design-system/src/ui/SingleSelects/SingleSelectBase/SingleSelectBase.stories.tsx @@ -1,9 +1,10 @@ -import { Meta, StoryFn } from "@storybook/react"; import * as React from "react"; -import SingleSelectBase from "./SingleSelectBase"; -import { basicInputDescriptionConfig } from "../../InputDescriptions"; +import { Meta, StoryFn } from "@storybook/react"; + import { Nullable, SelectOption } from "../../../types/general"; +import { basicInputDescriptionConfig } from "../../InputDescriptions"; import { basicSingleSelectConfig } from "../BasicSingleSelect"; +import SingleSelectBase from "./SingleSelectBase"; const meta: Meta = { title: "Components/Base/Input/SingleSelectBase", diff --git a/packages/design-system/src/ui/SingleSelects/SingleSelectBase/SingleSelectBase.tsx b/packages/design-system/src/ui/SingleSelects/SingleSelectBase/SingleSelectBase.tsx index abf93629af..d2a0b767e6 100644 --- a/packages/design-system/src/ui/SingleSelects/SingleSelectBase/SingleSelectBase.tsx +++ b/packages/design-system/src/ui/SingleSelects/SingleSelectBase/SingleSelectBase.tsx @@ -1,14 +1,14 @@ import * as React from "react"; -import cn from "clsx"; import * as Select from "@radix-ui/react-select"; +import cn from "clsx"; import { BasicInputProps, Nullable, SelectOption, } from "../../../types/general"; -import InputLabelBase from "../../InputLabels/InputLabelBase"; import { InputDescriptionBase } from "../../InputDescriptions/InputDescriptionBase"; +import InputLabelBase from "../../InputLabels/InputLabelBase"; import { SelectItem } from "./SelectItem"; export type SingleSelectBaseProps = Omit< diff --git a/packages/design-system/src/ui/TextAreas/BasicTextArea/BasicTextArea.stories.tsx b/packages/design-system/src/ui/TextAreas/BasicTextArea/BasicTextArea.stories.tsx index 46195e74af..887a9009e0 100644 --- a/packages/design-system/src/ui/TextAreas/BasicTextArea/BasicTextArea.stories.tsx +++ b/packages/design-system/src/ui/TextAreas/BasicTextArea/BasicTextArea.stories.tsx @@ -1,5 +1,6 @@ -import { Meta, StoryFn } from "@storybook/react"; import * as React from "react"; +import { Meta, StoryFn } from "@storybook/react"; + import { BasicTextArea } from "./BasicTextArea"; const meta: Meta = { diff --git a/packages/design-system/src/ui/TextAreas/BasicTextArea/BasicTextArea.tsx b/packages/design-system/src/ui/TextAreas/BasicTextArea/BasicTextArea.tsx index 325dec610d..dfe519c2d3 100644 --- a/packages/design-system/src/ui/TextAreas/BasicTextArea/BasicTextArea.tsx +++ b/packages/design-system/src/ui/TextAreas/BasicTextArea/BasicTextArea.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import { basicInputDescriptionConfig, BasicInputDescriptionOmitKeys, diff --git a/packages/design-system/src/ui/TextAreas/TextAreaBase/TextAreaBase.stories.tsx b/packages/design-system/src/ui/TextAreas/TextAreaBase/TextAreaBase.stories.tsx index caa9ab3f6a..93d1189e17 100644 --- a/packages/design-system/src/ui/TextAreas/TextAreaBase/TextAreaBase.stories.tsx +++ b/packages/design-system/src/ui/TextAreas/TextAreaBase/TextAreaBase.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import { basicInputDescriptionConfig } from "../../InputDescriptions"; import TextAreaBase from "./TextAreaBase"; diff --git a/packages/design-system/src/ui/TextAreas/TextAreaBase/TextAreaBase.tsx b/packages/design-system/src/ui/TextAreas/TextAreaBase/TextAreaBase.tsx index 50c7c2183e..e5a3620bc3 100644 --- a/packages/design-system/src/ui/TextAreas/TextAreaBase/TextAreaBase.tsx +++ b/packages/design-system/src/ui/TextAreas/TextAreaBase/TextAreaBase.tsx @@ -1,8 +1,9 @@ import * as React from "react"; import cn from "clsx"; + import { BasicInputProps, Nullable } from "../../../types/general"; -import InputLabelBase from "../../InputLabels/InputLabelBase"; import { InputDescriptionBase } from "../../InputDescriptions/InputDescriptionBase"; +import InputLabelBase from "../../InputLabels/InputLabelBase"; export type TextAreaBaseProps = BasicInputProps & Omit & { diff --git a/packages/design-system/src/ui/TextFields/BasicTextField/BasicTextField.stories.tsx b/packages/design-system/src/ui/TextFields/BasicTextField/BasicTextField.stories.tsx index c637d7677f..36e6a2f76f 100644 --- a/packages/design-system/src/ui/TextFields/BasicTextField/BasicTextField.stories.tsx +++ b/packages/design-system/src/ui/TextFields/BasicTextField/BasicTextField.stories.tsx @@ -1,5 +1,6 @@ -import { Meta, StoryFn } from "@storybook/react"; import * as React from "react"; +import { Meta, StoryFn } from "@storybook/react"; + import { BasicTextField } from "./BasicTextField"; const meta: Meta = { diff --git a/packages/design-system/src/ui/TextFields/BasicTextField/BasicTextField.tsx b/packages/design-system/src/ui/TextFields/BasicTextField/BasicTextField.tsx index b85a6a03e3..b0f5acf39d 100644 --- a/packages/design-system/src/ui/TextFields/BasicTextField/BasicTextField.tsx +++ b/packages/design-system/src/ui/TextFields/BasicTextField/BasicTextField.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import { basicInputDescriptionConfig, BasicInputDescriptionOmitKeys, diff --git a/packages/design-system/src/ui/TextFields/ProtectedBasicTextField/ProtectedBasicTextField.stories.tsx b/packages/design-system/src/ui/TextFields/ProtectedBasicTextField/ProtectedBasicTextField.stories.tsx index 019b0d1c67..051ea87309 100644 --- a/packages/design-system/src/ui/TextFields/ProtectedBasicTextField/ProtectedBasicTextField.stories.tsx +++ b/packages/design-system/src/ui/TextFields/ProtectedBasicTextField/ProtectedBasicTextField.stories.tsx @@ -1,5 +1,6 @@ -import { Meta, StoryFn } from "@storybook/react"; import * as React from "react"; +import { Meta, StoryFn } from "@storybook/react"; + import { ProtectedBasicTextField } from "./ProtectedBasicTextField"; const meta: Meta = { diff --git a/packages/design-system/src/ui/TextFields/ProtectedBasicTextField/ProtectedBasicTextField.tsx b/packages/design-system/src/ui/TextFields/ProtectedBasicTextField/ProtectedBasicTextField.tsx index 56dc184e06..39747dfae0 100644 --- a/packages/design-system/src/ui/TextFields/ProtectedBasicTextField/ProtectedBasicTextField.tsx +++ b/packages/design-system/src/ui/TextFields/ProtectedBasicTextField/ProtectedBasicTextField.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import { basicInputDescriptionConfig, BasicInputDescriptionOmitKeys, diff --git a/packages/design-system/src/ui/TextFields/TextFieldBase/TextFieldBase.stories.tsx b/packages/design-system/src/ui/TextFields/TextFieldBase/TextFieldBase.stories.tsx index abe192edaf..daf0bbc50c 100644 --- a/packages/design-system/src/ui/TextFields/TextFieldBase/TextFieldBase.stories.tsx +++ b/packages/design-system/src/ui/TextFields/TextFieldBase/TextFieldBase.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import { basicInputDescriptionConfig } from "../../InputDescriptions"; import TextFieldBase from "./TextFieldBase"; diff --git a/packages/design-system/src/ui/TextFields/TextFieldBase/TextFieldBase.tsx b/packages/design-system/src/ui/TextFields/TextFieldBase/TextFieldBase.tsx index 077c3f68e4..6676b5e827 100644 --- a/packages/design-system/src/ui/TextFields/TextFieldBase/TextFieldBase.tsx +++ b/packages/design-system/src/ui/TextFields/TextFieldBase/TextFieldBase.tsx @@ -1,10 +1,11 @@ import * as React from "react"; import cn from "clsx"; + +import { BasicInputProps, Nullable } from "../../../types/general"; import EyeOffIcon from "../../Icons/EyeOffIcon"; import EyeOnIcon from "../../Icons/EyeOnIcon"; -import { BasicInputProps, Nullable } from "../../../types/general"; -import InputLabelBase from "../../InputLabels/InputLabelBase"; import { InputDescriptionBase } from "../../InputDescriptions/InputDescriptionBase"; +import InputLabelBase from "../../InputLabels/InputLabelBase"; export type TextFieldBaseProps = BasicInputProps & Omit & { diff --git a/packages/design-system/src/ui/ToggleFields/BasicToggleField/BasicToggleField.stories.tsx b/packages/design-system/src/ui/ToggleFields/BasicToggleField/BasicToggleField.stories.tsx index e8e302d93e..d6b7605a12 100644 --- a/packages/design-system/src/ui/ToggleFields/BasicToggleField/BasicToggleField.stories.tsx +++ b/packages/design-system/src/ui/ToggleFields/BasicToggleField/BasicToggleField.stories.tsx @@ -1,5 +1,6 @@ -import { Meta, StoryFn } from "@storybook/react"; import * as React from "react"; +import { Meta, StoryFn } from "@storybook/react"; + import BasicToggleField from "./BasicToggleField"; const meta: Meta = { diff --git a/packages/design-system/src/ui/ToggleFields/BasicToggleField/BasicToggleField.tsx b/packages/design-system/src/ui/ToggleFields/BasicToggleField/BasicToggleField.tsx index ca03bf3a13..8766b2ba41 100644 --- a/packages/design-system/src/ui/ToggleFields/BasicToggleField/BasicToggleField.tsx +++ b/packages/design-system/src/ui/ToggleFields/BasicToggleField/BasicToggleField.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import { basicInputDescriptionConfig, BasicInputDescriptionOmitKeys, diff --git a/packages/design-system/src/ui/ToggleFields/StatefulToggleField/StatefulToggleField.stories.tsx b/packages/design-system/src/ui/ToggleFields/StatefulToggleField/StatefulToggleField.stories.tsx index 1e8d929b27..0120d7c19a 100644 --- a/packages/design-system/src/ui/ToggleFields/StatefulToggleField/StatefulToggleField.stories.tsx +++ b/packages/design-system/src/ui/ToggleFields/StatefulToggleField/StatefulToggleField.stories.tsx @@ -1,5 +1,6 @@ -import { Meta, StoryFn } from "@storybook/react"; import * as React from "react"; +import { Meta, StoryFn } from "@storybook/react"; + import { State } from "../../../types/general"; import StatefulToggleField from "./StatefulToggleField"; diff --git a/packages/design-system/src/ui/ToggleFields/StatefulToggleField/StatefulToggleField.tsx b/packages/design-system/src/ui/ToggleFields/StatefulToggleField/StatefulToggleField.tsx index 5330002c57..4c889837dd 100644 --- a/packages/design-system/src/ui/ToggleFields/StatefulToggleField/StatefulToggleField.tsx +++ b/packages/design-system/src/ui/ToggleFields/StatefulToggleField/StatefulToggleField.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import { Nullable, State } from "../../../types/general"; import { basicInputDescriptionConfig, diff --git a/packages/design-system/src/ui/ToggleFields/ToggleFieldBase/ToggleFieldBase.stories.tsx b/packages/design-system/src/ui/ToggleFields/ToggleFieldBase/ToggleFieldBase.stories.tsx index ec54779f21..e83139a7bd 100644 --- a/packages/design-system/src/ui/ToggleFields/ToggleFieldBase/ToggleFieldBase.stories.tsx +++ b/packages/design-system/src/ui/ToggleFields/ToggleFieldBase/ToggleFieldBase.stories.tsx @@ -1,5 +1,6 @@ -import { Meta, StoryFn } from "@storybook/react"; import * as React from "react"; +import { Meta, StoryFn } from "@storybook/react"; + import { basicInputDescriptionConfig } from "../../InputDescriptions"; import ToggleFieldBase from "./ToggleFieldBase"; diff --git a/packages/design-system/src/ui/ToggleFields/ToggleFieldBase/ToggleFieldBase.tsx b/packages/design-system/src/ui/ToggleFields/ToggleFieldBase/ToggleFieldBase.tsx index 7d089e895f..de87d2a825 100644 --- a/packages/design-system/src/ui/ToggleFields/ToggleFieldBase/ToggleFieldBase.tsx +++ b/packages/design-system/src/ui/ToggleFields/ToggleFieldBase/ToggleFieldBase.tsx @@ -1,8 +1,9 @@ import * as React from "react"; import cn from "clsx"; + import { BasicInputProps, Nullable } from "../../../types/general"; -import InputLabelBase from "../../InputLabels/InputLabelBase"; import { InputDescriptionBase } from "../../InputDescriptions/InputDescriptionBase"; +import InputLabelBase from "../../InputLabels/InputLabelBase"; export type ToggleFieldBaseProps = Omit< BasicInputProps, diff --git a/packages/design-system/src/ui/ToggleFields/index.ts b/packages/design-system/src/ui/ToggleFields/index.ts index 9764a2a0af..7631c47758 100644 --- a/packages/design-system/src/ui/ToggleFields/index.ts +++ b/packages/design-system/src/ui/ToggleFields/index.ts @@ -1,7 +1,7 @@ -import BasicToggleField from "./BasicToggleField"; import type { BasicToggleFieldProps } from "./BasicToggleField"; -import StatefulToggleField from "./StatefulToggleField"; import type { StatefulToggleFieldProps } from "./StatefulToggleField"; +import BasicToggleField from "./BasicToggleField"; +import StatefulToggleField from "./StatefulToggleField"; export { BasicToggleField, StatefulToggleField }; export type { BasicToggleFieldProps, StatefulToggleFieldProps }; diff --git a/packages/design-system/src/ui/UploadFileFields/BasicUploadFileField/BasicUploadFileField.stories.tsx b/packages/design-system/src/ui/UploadFileFields/BasicUploadFileField/BasicUploadFileField.stories.tsx index 08760608f7..f1b3cdc88a 100644 --- a/packages/design-system/src/ui/UploadFileFields/BasicUploadFileField/BasicUploadFileField.stories.tsx +++ b/packages/design-system/src/ui/UploadFileFields/BasicUploadFileField/BasicUploadFileField.stories.tsx @@ -1,5 +1,6 @@ import * as React from "react"; import { Meta, StoryFn } from "@storybook/react"; + import BasicUploadFileField from "./BasicUploadFileField"; const meta: Meta = { diff --git a/packages/design-system/src/ui/UploadFileFields/BasicUploadFileField/BasicUploadFileField.tsx b/packages/design-system/src/ui/UploadFileFields/BasicUploadFileField/BasicUploadFileField.tsx index 7105940da5..77b8cd60c3 100644 --- a/packages/design-system/src/ui/UploadFileFields/BasicUploadFileField/BasicUploadFileField.tsx +++ b/packages/design-system/src/ui/UploadFileFields/BasicUploadFileField/BasicUploadFileField.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import { basicInputDescriptionConfig, BasicInputDescriptionOmitKeys, diff --git a/packages/design-system/src/ui/UploadFileFields/UploadFileFieldBase/UploadFileFieldBase.stories.tsx b/packages/design-system/src/ui/UploadFileFields/UploadFileFieldBase/UploadFileFieldBase.stories.tsx index 9f5d64d5aa..b9e3509948 100644 --- a/packages/design-system/src/ui/UploadFileFields/UploadFileFieldBase/UploadFileFieldBase.stories.tsx +++ b/packages/design-system/src/ui/UploadFileFields/UploadFileFieldBase/UploadFileFieldBase.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; + import { basicInputDescriptionConfig } from "../../InputDescriptions"; import UploadFileFieldBase from "./UploadFileFieldBase"; diff --git a/packages/design-system/src/ui/UploadFileFields/UploadFileFieldBase/UploadFileFieldBase.tsx b/packages/design-system/src/ui/UploadFileFields/UploadFileFieldBase/UploadFileFieldBase.tsx index b9b9f84bdb..e8d3377f1c 100644 --- a/packages/design-system/src/ui/UploadFileFields/UploadFileFieldBase/UploadFileFieldBase.tsx +++ b/packages/design-system/src/ui/UploadFileFields/UploadFileFieldBase/UploadFileFieldBase.tsx @@ -1,9 +1,10 @@ import * as React from "react"; -import { BasicInputProps, Nullable } from "../../../types/general"; import cn from "clsx"; + +import { BasicInputProps, Nullable } from "../../../types/general"; import { DocIcon } from "../../Icons"; -import InputLabelBase from "../../InputLabels/InputLabelBase"; import { InputDescriptionBase } from "../../InputDescriptions/InputDescriptionBase"; +import InputLabelBase from "../../InputLabels/InputLabelBase"; export type UploadFileFieldBaseProps = Omit< BasicInputProps, diff --git a/packages/design-system/src/ui/UploadFileFields/index.ts b/packages/design-system/src/ui/UploadFileFields/index.ts index f9536a6ea4..4c74c515f0 100644 --- a/packages/design-system/src/ui/UploadFileFields/index.ts +++ b/packages/design-system/src/ui/UploadFileFields/index.ts @@ -1,4 +1,4 @@ -import BasicUploadFileField from "./BasicUploadFileField"; import type { BasicUploadFileFieldProps } from "./BasicUploadFileField"; +import BasicUploadFileField from "./BasicUploadFileField"; export { BasicUploadFileField, BasicUploadFileFieldProps }; diff --git a/packages/design-system/src/ui/index.ts b/packages/design-system/src/ui/index.ts index c175fa5a78..3b1906a5f5 100644 --- a/packages/design-system/src/ui/index.ts +++ b/packages/design-system/src/ui/index.ts @@ -1,13 +1,13 @@ +// InputDescriptions +import type { BasicInputDescriptionProps } from "./InputDescriptions"; +import { BasicInputDescription } from "./InputDescriptions"; + // Accordions export * from "./Accordion"; // Icons export * from "./Icons"; -// InputDescriptions -import { BasicInputDescription } from "./InputDescriptions"; -import type { BasicInputDescriptionProps } from "./InputDescriptions"; - // InputLabels export * from "./InputLabels"; diff --git a/packages/design-system/vitest.config.ts b/packages/design-system/vitest.config.ts index 4dcf54b8be..4514a044e6 100644 --- a/packages/design-system/vitest.config.ts +++ b/packages/design-system/vitest.config.ts @@ -1,5 +1,5 @@ -import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; +import { defineConfig } from "vitest/config"; // https://vitejs.dev/config/ export default defineConfig({ diff --git a/packages/design-tokens/src/buildTailwindPreset.ts b/packages/design-tokens/src/buildTailwindPreset.ts index c246dd93f9..c0a39798fd 100644 --- a/packages/design-tokens/src/buildTailwindPreset.ts +++ b/packages/design-tokens/src/buildTailwindPreset.ts @@ -1,6 +1,7 @@ -import { tokens } from "../dist/semantic/sd-tokens"; import fs from "fs/promises"; import path from "path"; + +import { tokens } from "../dist/semantic/sd-tokens"; import { TypographyValue } from "./type"; async function main() { diff --git a/packages/design-tokens/vitest.config.ts b/packages/design-tokens/vitest.config.ts index d0b5add9d9..2a5095378a 100644 --- a/packages/design-tokens/vitest.config.ts +++ b/packages/design-tokens/vitest.config.ts @@ -1,5 +1,5 @@ -import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; +import { defineConfig } from "vitest/config"; // https://vitejs.dev/config/ export default defineConfig({ diff --git a/packages/prettier-config-cortex/index.js b/packages/prettier-config-cortex/index.js index 90ec79c852..e76e394a55 100644 --- a/packages/prettier-config-cortex/index.js +++ b/packages/prettier-config-cortex/index.js @@ -1,5 +1,8 @@ module.exports = { - plugins: ["prettier-plugin-tailwindcss"], + plugins: [ + "prettier-plugin-tailwindcss", + "@ianvs/prettier-plugin-sort-imports", + ], printWidth: 80, singleQuote: false, tabWidth: 2, @@ -19,4 +22,20 @@ module.exports = { }, }, ], + importOrder: [ + "", + "^(react/(.*)$)|^(react$)|^(react-native(.*)$)", + "^(next/(.*)$)|^(next$)", + "", + "", + "^@instill-ai", + "^@instill-ai/(.*)$", + "", + "^[.|..|~]", + "^~/", + "^[../]", + "^[./]", + ], + importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"], + importOrderTypeScriptVersion: "4.4.0", }; diff --git a/packages/prettier-config-cortex/package.json b/packages/prettier-config-cortex/package.json index da5409bd61..0b4e3dfd6d 100644 --- a/packages/prettier-config-cortex/package.json +++ b/packages/prettier-config-cortex/package.json @@ -9,5 +9,8 @@ }, "publishConfig": { "access": "public" + }, + "devDependencies": { + "@ianvs/prettier-plugin-sort-imports": "^4.2.1" } } \ No newline at end of file diff --git a/packages/toolkit/setupTests.ts b/packages/toolkit/setupTests.ts index 45a7d8c19d..a9c3e971d9 100644 --- a/packages/toolkit/setupTests.ts +++ b/packages/toolkit/setupTests.ts @@ -1,5 +1,7 @@ import { afterEach, vi } from "vitest"; + import "@testing-library/jest-dom"; + import { cleanup } from "@testing-library/react"; /** diff --git a/packages/toolkit/src/components/AutoresizeInput.tsx b/packages/toolkit/src/components/AutoresizeInput.tsx index 1515013516..5c8f8435dd 100644 --- a/packages/toolkit/src/components/AutoresizeInput.tsx +++ b/packages/toolkit/src/components/AutoresizeInput.tsx @@ -1,6 +1,7 @@ "use client"; import cn from "clsx"; + import { Nullable } from "../lib"; /* diff --git a/packages/toolkit/src/components/ClonePipelineDialog.tsx b/packages/toolkit/src/components/ClonePipelineDialog.tsx index 1d58788642..e2a90a1934 100644 --- a/packages/toolkit/src/components/ClonePipelineDialog.tsx +++ b/packages/toolkit/src/components/ClonePipelineDialog.tsx @@ -1,7 +1,11 @@ "use client"; import * as React from "react"; +import { useRouter } from "next/navigation"; +import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm } from "react-hook-form"; import * as z from "zod"; + import { Button, Dialog, @@ -14,9 +18,8 @@ import { Textarea, useToast, } from "@instill-ai/design-system"; -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; +import { InstillErrors } from "../constant"; import { CreateUserPipelinePayload, InstillStore, @@ -26,20 +29,18 @@ import { sendAmplitudeData, toastInstillError, useAmplitudeCtx, + useAuthenticatedUser, useCreateUserPipeline, useInstillStore, - useShallow, - useAuthenticatedUser, useRouteInfo, + useShallow, } from "../lib"; -import { InstillErrors } from "../constant"; -import { LoadingSpin } from "./LoadingSpin"; +import { useUserNamespaces } from "../lib/useUserNamespaces"; import { env, validateInstillResourceID } from "../server"; -import { useRouter } from "next/navigation"; -import { createNodesFromPipelineRecipe } from "../view/pipeline-builder/lib/createNodesFromPipelineRecipe"; import { composePipelineRecipeFromNodes } from "../view"; +import { createNodesFromPipelineRecipe } from "../view/pipeline-builder/lib/createNodesFromPipelineRecipe"; import { EntitySelector } from "./EntitySelector"; -import { useUserNamespaces } from "../lib/useUserNamespaces"; +import { LoadingSpin } from "./LoadingSpin"; const ClonePipelineSchema = z .object({ diff --git a/packages/toolkit/src/components/CodeBlock.tsx b/packages/toolkit/src/components/CodeBlock.tsx index 9d69f1b382..1ac710f31f 100644 --- a/packages/toolkit/src/components/CodeBlock.tsx +++ b/packages/toolkit/src/components/CodeBlock.tsx @@ -3,6 +3,7 @@ import cn from "clsx"; import SyntaxHighlighter from "react-syntax-highlighter"; import { docco } from "react-syntax-highlighter/dist/cjs/styles/hljs"; + import { CopyToClipboardButton } from "./CopyToClipboardButton"; export type CodeBlockProps = { diff --git a/packages/toolkit/src/components/CopyToClipboardButton.tsx b/packages/toolkit/src/components/CopyToClipboardButton.tsx index d585742ad9..32e698bc8c 100644 --- a/packages/toolkit/src/components/CopyToClipboardButton.tsx +++ b/packages/toolkit/src/components/CopyToClipboardButton.tsx @@ -2,6 +2,7 @@ import * as React from "react"; import cn from "clsx"; + import { Button, Icons } from "@instill-ai/design-system"; export const CopyToClipboardButton = ({ diff --git a/packages/toolkit/src/components/DeleteResourceModal.tsx b/packages/toolkit/src/components/DeleteResourceModal.tsx index 9cb7f2a6b6..c6d152f7a1 100644 --- a/packages/toolkit/src/components/DeleteResourceModal.tsx +++ b/packages/toolkit/src/components/DeleteResourceModal.tsx @@ -2,18 +2,15 @@ import * as React from "react"; import { shallow } from "zustand/shallow"; + import { BasicTextField, - OutlineButton, ModalRoot, + OutlineButton, } from "@instill-ai/design-system"; -import { - useModalStore, - type Model, - type Pipeline, - type Nullable, - type ModalStore, -} from "../lib"; + +import type { ModalStore, Model, Nullable, Pipeline } from "../lib"; +import { useModalStore } from "../lib"; export type DeleteResourceModalProps = { resource: Nullable; diff --git a/packages/toolkit/src/components/EmptyImageInputPlaceholder.tsx b/packages/toolkit/src/components/EmptyImageInputPlaceholder.tsx index a084be7cfe..fc5ddece5c 100644 --- a/packages/toolkit/src/components/EmptyImageInputPlaceholder.tsx +++ b/packages/toolkit/src/components/EmptyImageInputPlaceholder.tsx @@ -1,4 +1,5 @@ import cn from "clsx"; + import { Icons } from "@instill-ai/design-system"; export const EmptyImageInputPlaceholder = ({ diff --git a/packages/toolkit/src/components/EntitySelector.tsx b/packages/toolkit/src/components/EntitySelector.tsx index dcbdd7a7fd..94ae34847d 100644 --- a/packages/toolkit/src/components/EntitySelector.tsx +++ b/packages/toolkit/src/components/EntitySelector.tsx @@ -1,6 +1,7 @@ import { Select, Tag } from "@instill-ai/design-system"; -import { NamespaceAvatarWithFallback } from "./NamespaceAvatarWithFallback"; + import { UserNamespace } from "../lib/useUserNamespaces"; +import { NamespaceAvatarWithFallback } from "./NamespaceAvatarWithFallback"; const truncateDisplayName = (value?: string) => { if (value && value.length >= 10) { diff --git a/packages/toolkit/src/components/GeneralDeleteResourceDialog.tsx b/packages/toolkit/src/components/GeneralDeleteResourceDialog.tsx index 38f63d0976..e05458fa99 100644 --- a/packages/toolkit/src/components/GeneralDeleteResourceDialog.tsx +++ b/packages/toolkit/src/components/GeneralDeleteResourceDialog.tsx @@ -1,10 +1,12 @@ "use client"; import * as React from "react"; + import { Button, Dialog, Icons, Input } from "@instill-ai/design-system"; + +import { DataTestID } from "../constant"; import { Nullable, useControllableState } from "../lib"; import { LoadingSpin } from "./LoadingSpin"; -import { DataTestID } from "../constant"; export type GeneralDeleteResourceDialogProps = { resourceID: string; diff --git a/packages/toolkit/src/components/InlineTextSeparator.tsx b/packages/toolkit/src/components/InlineTextSeparator.tsx index 409a63a2f2..b6ecc57db1 100644 --- a/packages/toolkit/src/components/InlineTextSeparator.tsx +++ b/packages/toolkit/src/components/InlineTextSeparator.tsx @@ -1,6 +1,7 @@ "use client"; import cn from "clsx"; + import { Separator } from "@instill-ai/design-system"; export const InlineTextSeparator = ({ diff --git a/packages/toolkit/src/components/NamespaceAvatarWithFallback.tsx b/packages/toolkit/src/components/NamespaceAvatarWithFallback.tsx index 242643f731..4bae048c16 100644 --- a/packages/toolkit/src/components/NamespaceAvatarWithFallback.tsx +++ b/packages/toolkit/src/components/NamespaceAvatarWithFallback.tsx @@ -2,7 +2,8 @@ import * as React from "react"; import cn from "clsx"; -import { Nullable, getCaptializeTwoWordsFromName } from "../lib"; + +import { getCaptializeTwoWordsFromName, Nullable } from "../lib"; export const NamespaceAvatarWithFallbackRoot = ({ src, diff --git a/packages/toolkit/src/components/PageBase.tsx b/packages/toolkit/src/components/PageBase.tsx index 312fccfeda..b7b7d7d081 100644 --- a/packages/toolkit/src/components/PageBase.tsx +++ b/packages/toolkit/src/components/PageBase.tsx @@ -1,7 +1,7 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; export const PageBase = ({ children }: { children: React.ReactNode }) => { return
{children}
; diff --git a/packages/toolkit/src/components/PageTitle.tsx b/packages/toolkit/src/components/PageTitle.tsx index e60ce7a5ef..79d3705247 100644 --- a/packages/toolkit/src/components/PageTitle.tsx +++ b/packages/toolkit/src/components/PageTitle.tsx @@ -1,4 +1,5 @@ import cn from "clsx"; + import { Breadcrumb } from "./Breadcrumb"; export type PageTitleProps = { diff --git a/packages/toolkit/src/components/RealTimeTextEditor.tsx b/packages/toolkit/src/components/RealTimeTextEditor.tsx index 077f7d2b61..c42d52457f 100644 --- a/packages/toolkit/src/components/RealTimeTextEditor.tsx +++ b/packages/toolkit/src/components/RealTimeTextEditor.tsx @@ -1,12 +1,14 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import { Editor } from "@tiptap/core"; import { EditorContent, useEditor } from "@tiptap/react"; -import { extensions, deserialize, Nullable, serialize } from "../lib"; +import cn from "clsx"; + import { useToast } from "@instill-ai/design-system"; + import { LoadingSpin } from "."; -import { Editor } from "@tiptap/core"; +import { deserialize, extensions, Nullable, serialize } from "../lib"; export const RealTimeTextEditor = ({ isEditable, diff --git a/packages/toolkit/src/components/ReferenceHintTag.tsx b/packages/toolkit/src/components/ReferenceHintTag.tsx index f2888080d4..7893cbf1b6 100644 --- a/packages/toolkit/src/components/ReferenceHintTag.tsx +++ b/packages/toolkit/src/components/ReferenceHintTag.tsx @@ -1,7 +1,8 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; + import { Icons, Tooltip } from "@instill-ai/design-system"; export const ReferenceHintTagRoot = ({ diff --git a/packages/toolkit/src/components/StateLabel.tsx b/packages/toolkit/src/components/StateLabel.tsx index 43e888025b..0118122c61 100644 --- a/packages/toolkit/src/components/StateLabel.tsx +++ b/packages/toolkit/src/components/StateLabel.tsx @@ -1,6 +1,7 @@ "use client"; import cn from "clsx"; + import type { Nullable, ResourceState } from "../lib"; export type StateLabelProps = { diff --git a/packages/toolkit/src/components/TableLoadingProgress.tsx b/packages/toolkit/src/components/TableLoadingProgress.tsx index 35a13b2ae2..fbc26575fb 100644 --- a/packages/toolkit/src/components/TableLoadingProgress.tsx +++ b/packages/toolkit/src/components/TableLoadingProgress.tsx @@ -1,6 +1,7 @@ "use client"; import cn from "clsx"; + import { NoBgSquareProgress } from "@instill-ai/design-system"; import { Nullable } from "../lib"; diff --git a/packages/toolkit/src/components/TablePlaceholderBase.tsx b/packages/toolkit/src/components/TablePlaceholderBase.tsx index 4af817f54f..10d86e5b40 100644 --- a/packages/toolkit/src/components/TablePlaceholderBase.tsx +++ b/packages/toolkit/src/components/TablePlaceholderBase.tsx @@ -1,8 +1,9 @@ "use client"; -import cn from "clsx"; import * as React from "react"; import { useRouter } from "next/navigation"; +import cn from "clsx"; + import { SolidButton } from "@instill-ai/design-system"; export type TablePlaceholderBaseProps = { diff --git a/packages/toolkit/src/components/UploadImageFieldWithCrop.tsx b/packages/toolkit/src/components/UploadImageFieldWithCrop.tsx index d92c60c826..b53da47ae4 100644 --- a/packages/toolkit/src/components/UploadImageFieldWithCrop.tsx +++ b/packages/toolkit/src/components/UploadImageFieldWithCrop.tsx @@ -1,12 +1,14 @@ "use client"; import * as React from "react"; -import { Button, Dialog, Form, Input } from "@instill-ai/design-system"; -import { FormLabel } from "../view/settings/FormLabel"; +import cn from "clsx"; import AvatarEditor from "react-avatar-editor"; import { UseFormReturn } from "react-hook-form"; import { v4 as uuidv4 } from "uuid"; -import cn from "clsx"; + +import { Button, Dialog, Form, Input } from "@instill-ai/design-system"; + +import { FormLabel } from "../view/settings/FormLabel"; import { ImageWithFallback } from "./ImageWithFallback"; const DEFAULT_DIMENSIONS = { diff --git a/packages/toolkit/src/components/UserProfileCard.tsx b/packages/toolkit/src/components/UserProfileCard.tsx index 142cb62af4..53549266c0 100644 --- a/packages/toolkit/src/components/UserProfileCard.tsx +++ b/packages/toolkit/src/components/UserProfileCard.tsx @@ -1,17 +1,19 @@ "use client"; import * as React from "react"; +import Link from "next/link"; +import { useRouter } from "next/navigation"; + import { Button, Separator, Tag } from "@instill-ai/design-system"; + import { InstillStore, Nullable, + useAuthenticatedUser, useInstillStore, useShallow, - useAuthenticatedUser, useUserMemberships, } from "../lib"; -import Link from "next/link"; -import { useRouter } from "next/navigation"; import { NamespaceAvatarWithFallback } from "./NamespaceAvatarWithFallback"; const selector = (store: InstillStore) => ({ diff --git a/packages/toolkit/src/components/WarnUnsavedChangesDialog.tsx b/packages/toolkit/src/components/WarnUnsavedChangesDialog.tsx index ed01d0016c..c0bb201e5f 100644 --- a/packages/toolkit/src/components/WarnUnsavedChangesDialog.tsx +++ b/packages/toolkit/src/components/WarnUnsavedChangesDialog.tsx @@ -1,7 +1,9 @@ "use client"; import * as React from "react"; + import { Button, Dialog, Icons } from "@instill-ai/design-system"; + import { LoadingSpin } from "./LoadingSpin"; export type WarnUnsavedChangesDialogProps = { diff --git a/packages/toolkit/src/components/breadcrumb-with-link/BreadcrumbWithLink.tsx b/packages/toolkit/src/components/breadcrumb-with-link/BreadcrumbWithLink.tsx index a03a367cbe..8fb6eb6007 100644 --- a/packages/toolkit/src/components/breadcrumb-with-link/BreadcrumbWithLink.tsx +++ b/packages/toolkit/src/components/breadcrumb-with-link/BreadcrumbWithLink.tsx @@ -1,8 +1,9 @@ "use client"; -import { Icons } from "@instill-ai/design-system"; -import Link from "next/link"; import React, { ReactElement } from "react"; +import Link from "next/link"; + +import { Icons } from "@instill-ai/design-system"; export type BreadcrumbWithLinkItem = { label: ReactElement | string; diff --git a/packages/toolkit/src/components/card-model/CardModel.tsx b/packages/toolkit/src/components/card-model/CardModel.tsx index fdfa847121..d91f723b4e 100644 --- a/packages/toolkit/src/components/card-model/CardModel.tsx +++ b/packages/toolkit/src/components/card-model/CardModel.tsx @@ -1,16 +1,18 @@ "use client"; -import { Menu } from "./Menu"; -import { Tags } from "./Tags"; -import { Stats } from "./Stats"; -import { Model } from "../../lib"; import * as React from "react"; +import Link from "next/link"; + import { getModelHardwareToolkit, getModelRegionToolkit, } from "@instill-ai/design-system"; + import { ImageWithFallback } from ".."; -import Link from "next/link"; +import { Model } from "../../lib"; +import { Menu } from "./Menu"; +import { Stats } from "./Stats"; +import { Tags } from "./Tags"; export type CardModelProps = { model: Model; diff --git a/packages/toolkit/src/components/card-model/Menu.tsx b/packages/toolkit/src/components/card-model/Menu.tsx index d963e91ae9..2ab7e1a704 100644 --- a/packages/toolkit/src/components/card-model/Menu.tsx +++ b/packages/toolkit/src/components/card-model/Menu.tsx @@ -1,9 +1,11 @@ "use client"; import * as React from "react"; + import { Button, DropdownMenu, Icons } from "@instill-ai/design-system"; -import { GeneralDeleteResourceDialog } from "../GeneralDeleteResourceDialog"; + import { Model } from "../../lib"; +import { GeneralDeleteResourceDialog } from "../GeneralDeleteResourceDialog"; export type MenuProps = { model: Model; diff --git a/packages/toolkit/src/components/card-model/Stats.tsx b/packages/toolkit/src/components/card-model/Stats.tsx index ffbe53806e..a90d3711c1 100644 --- a/packages/toolkit/src/components/card-model/Stats.tsx +++ b/packages/toolkit/src/components/card-model/Stats.tsx @@ -1,6 +1,7 @@ "use client"; import { getModelInstanceTaskToolkit } from "@instill-ai/design-system"; + //import { convertLongNumberToK } from "../../lib"; import { ModelTask } from "../../lib"; import { getHumanReadableStringFromTime } from "../../server"; diff --git a/packages/toolkit/src/components/card-model/Tags.tsx b/packages/toolkit/src/components/card-model/Tags.tsx index 31ebda157d..7e1d213c67 100644 --- a/packages/toolkit/src/components/card-model/Tags.tsx +++ b/packages/toolkit/src/components/card-model/Tags.tsx @@ -1,7 +1,9 @@ "use client"; -import { Icons, Tag } from "@instill-ai/design-system"; import React from "react"; + +import { Icons, Tag } from "@instill-ai/design-system"; + import { Visibility } from "../../lib"; export type TagsProps = { diff --git a/packages/toolkit/src/components/card-pipeline/Body.tsx b/packages/toolkit/src/components/card-pipeline/Body.tsx index cd2fc2b270..e2b5898e8c 100644 --- a/packages/toolkit/src/components/card-pipeline/Body.tsx +++ b/packages/toolkit/src/components/card-pipeline/Body.tsx @@ -1,9 +1,11 @@ "use client"; +import { useRouter } from "next/navigation"; + import { Icons } from "@instill-ai/design-system"; -import { ReadOnlyPipelineBuilder } from "../../view"; + import { Pipeline } from "../../lib"; -import { useRouter } from "next/navigation"; +import { ReadOnlyPipelineBuilder } from "../../view"; const BodySkeleton = () => { return ( diff --git a/packages/toolkit/src/components/card-pipeline/Footer.tsx b/packages/toolkit/src/components/card-pipeline/Footer.tsx index 1abcf9fc68..6ed9de8c3b 100644 --- a/packages/toolkit/src/components/card-pipeline/Footer.tsx +++ b/packages/toolkit/src/components/card-pipeline/Footer.tsx @@ -1,19 +1,21 @@ "use client"; import * as React from "react"; +import { useRouter } from "next/navigation"; + import { Button, Icons, Separator, Tag } from "@instill-ai/design-system"; + import { InstillStore, - Pipeline, isPublicPipeline, - useInstillStore, - useShallow, + Pipeline, useAuthenticatedUser, + useInstillStore, useNavigateBackAfterLogin, + useShallow, } from "../../lib"; import { sortPipelineReleases } from "../../view"; import { ClonePipelineDialog } from "../ClonePipelineDialog"; -import { useRouter } from "next/navigation"; export const FooterSkeleton = () => { return ( diff --git a/packages/toolkit/src/components/card-pipeline/Head.tsx b/packages/toolkit/src/components/card-pipeline/Head.tsx index bd84482b6c..50f12860e2 100644 --- a/packages/toolkit/src/components/card-pipeline/Head.tsx +++ b/packages/toolkit/src/components/card-pipeline/Head.tsx @@ -1,21 +1,23 @@ "use client"; import * as React from "react"; +import { useRouter } from "next/navigation"; + +import { useToast } from "@instill-ai/design-system"; + import { InstillStore, Nullable, OrganizationOwner, Pipeline, - UserOwner, toastInstillError, useDeleteUserPipeline, useInstillStore, + UserOwner, useShallow, } from "../../lib"; -import { useToast } from "@instill-ai/design-system"; -import { Menu } from "./Menu"; -import { useRouter } from "next/navigation"; import { NamespaceAvatarWithFallback } from "../NamespaceAvatarWithFallback"; +import { Menu } from "./Menu"; export const HeadSkeleton = () => { return ( diff --git a/packages/toolkit/src/components/card-pipeline/Menu.tsx b/packages/toolkit/src/components/card-pipeline/Menu.tsx index c6cb0ad948..cd7b11d18f 100644 --- a/packages/toolkit/src/components/card-pipeline/Menu.tsx +++ b/packages/toolkit/src/components/card-pipeline/Menu.tsx @@ -1,9 +1,11 @@ "use client"; import * as React from "react"; + import { Button, DropdownMenu, Icons } from "@instill-ai/design-system"; -import { Pipeline } from "../../lib"; + import { ClonePipelineDialog, GeneralDeleteResourceDialog } from ".."; +import { Pipeline } from "../../lib"; export type MenuProps = { pipeline: Pipeline; diff --git a/packages/toolkit/src/components/cells/GeneralStateCell.tsx b/packages/toolkit/src/components/cells/GeneralStateCell.tsx index 47ef5751e8..837fe791eb 100644 --- a/packages/toolkit/src/components/cells/GeneralStateCell.tsx +++ b/packages/toolkit/src/components/cells/GeneralStateCell.tsx @@ -1,8 +1,10 @@ "use client"; +import { ReactElement } from "react"; import cn from "clsx"; + import { Tag } from "@instill-ai/design-system"; -import { ReactElement } from "react"; + import { Nullable, PipelineTriggerStatus, ResourceState } from "../../lib"; export type GeneralStateCellProps = { diff --git a/packages/toolkit/src/components/cells/TableCell.tsx b/packages/toolkit/src/components/cells/TableCell.tsx index 10b2c17214..ac51d798fb 100644 --- a/packages/toolkit/src/components/cells/TableCell.tsx +++ b/packages/toolkit/src/components/cells/TableCell.tsx @@ -2,6 +2,7 @@ import * as React from "react"; import Link from "next/link"; + import { Nullable } from "../../lib"; type TableCellProps = { diff --git a/packages/toolkit/src/components/top-bar/AppTopbar.tsx b/packages/toolkit/src/components/top-bar/AppTopbar.tsx index e8fba551ae..f8f02669d8 100644 --- a/packages/toolkit/src/components/top-bar/AppTopbar.tsx +++ b/packages/toolkit/src/components/top-bar/AppTopbar.tsx @@ -1,20 +1,21 @@ "use client"; import * as React from "react"; +import { useRouter } from "next/navigation"; import cn from "clsx"; +import { Button, Logo } from "@instill-ai/design-system"; + import { InstillStore, useAuthenticatedUser, useInstillStore, useShallow, } from "../../lib"; -import { CloudTopbarDropdown } from "./CloudTopbarDropdown"; -import { CETopbarDropdown } from "./CETopbarDropdown"; -import { env } from "../../server"; -import { useRouter } from "next/navigation"; import { useGuardPipelineBuilderUnsavedChangesNavigation } from "../../lib/hook"; -import { Button, Logo } from "@instill-ai/design-system"; +import { env } from "../../server"; +import { CETopbarDropdown } from "./CETopbarDropdown"; +import { CloudTopbarDropdown } from "./CloudTopbarDropdown"; import { NamespaceSwitch } from "./NamespaceSwitch"; import { NavLinks } from "./NavLinks"; import { TopbarMiscLinks } from "./TopbarMiscLinks"; diff --git a/packages/toolkit/src/components/top-bar/CETopbarDropdown.tsx b/packages/toolkit/src/components/top-bar/CETopbarDropdown.tsx index dd53397a26..365c03d949 100644 --- a/packages/toolkit/src/components/top-bar/CETopbarDropdown.tsx +++ b/packages/toolkit/src/components/top-bar/CETopbarDropdown.tsx @@ -1,8 +1,9 @@ "use client"; -import { DropdownMenu, Icons, Separator } from "@instill-ai/design-system"; -import { TopbarDropdownGroup, TopbarDropdownItem } from "./TopbarDropdown"; import Link from "next/link"; + +import { DropdownMenu, Icons, Separator } from "@instill-ai/design-system"; + import { InstillStore, useAuthenticatedUser, @@ -11,6 +12,7 @@ import { useShallow, } from "../../lib"; import { NamespaceAvatarWithFallback } from "../NamespaceAvatarWithFallback"; +import { TopbarDropdownGroup, TopbarDropdownItem } from "./TopbarDropdown"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/components/top-bar/CloudTopbarDropdown.tsx b/packages/toolkit/src/components/top-bar/CloudTopbarDropdown.tsx index 8aa22a0cfc..c04cea9775 100644 --- a/packages/toolkit/src/components/top-bar/CloudTopbarDropdown.tsx +++ b/packages/toolkit/src/components/top-bar/CloudTopbarDropdown.tsx @@ -1,12 +1,15 @@ "use client"; import * as React from "react"; +import Link from "next/link"; + import { Button, DropdownMenu, Icons, Separator, } from "@instill-ai/design-system"; + import { InstillStore, useAuthenticatedUser, @@ -15,10 +18,9 @@ import { useInstillStore, useShallow, } from "../../lib"; -import { TopbarDropdownGroup, TopbarDropdownItem } from "./TopbarDropdown"; -import Link from "next/link"; -import { RemainingCreditCTA } from "./RemainingCredit"; import { NamespaceAvatarWithFallback } from "../NamespaceAvatarWithFallback"; +import { RemainingCreditCTA } from "./RemainingCredit"; +import { TopbarDropdownGroup, TopbarDropdownItem } from "./TopbarDropdown"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/components/top-bar/NamespaceSwitch.tsx b/packages/toolkit/src/components/top-bar/NamespaceSwitch.tsx index 300bed6e08..4426153ae8 100644 --- a/packages/toolkit/src/components/top-bar/NamespaceSwitch.tsx +++ b/packages/toolkit/src/components/top-bar/NamespaceSwitch.tsx @@ -1,16 +1,17 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import { usePathname } from "next/navigation"; +import cn from "clsx"; import { Icons, Select, - Tag, Separator, Skeleton, + Tag, } from "@instill-ai/design-system"; -import { useUserNamespaces } from "../../lib/useUserNamespaces"; + import { InstillStore, Nullable, @@ -21,9 +22,9 @@ import { useRouteInfo, useShallow, } from "../../lib"; +import { useUserNamespaces } from "../../lib/useUserNamespaces"; import { env } from "../../server"; import { NamespaceAvatarWithFallback } from "../NamespaceAvatarWithFallback"; -import { usePathname } from "next/navigation"; const truncateDisplayName = (value?: string) => { if (value && value.length >= 10) { diff --git a/packages/toolkit/src/components/top-bar/NavLinks.tsx b/packages/toolkit/src/components/top-bar/NavLinks.tsx index 726fa16551..2d0bc7a947 100644 --- a/packages/toolkit/src/components/top-bar/NavLinks.tsx +++ b/packages/toolkit/src/components/top-bar/NavLinks.tsx @@ -1,16 +1,18 @@ "use client"; -import { Icons } from "@instill-ai/design-system"; -import cn from "clsx"; -import { usePathname, useRouter } from "next/navigation"; import * as React from "react"; -import { useUserNamespaces } from "../../lib/useUserNamespaces"; +import { usePathname, useRouter } from "next/navigation"; +import cn from "clsx"; + +import { Icons } from "@instill-ai/design-system"; + import { InstillStore, useAuthenticatedUser, useInstillStore, useShallow, } from "../../lib"; +import { useUserNamespaces } from "../../lib/useUserNamespaces"; import { env } from "../../server"; export type NavLinkProps = { diff --git a/packages/toolkit/src/components/top-bar/RemainingCredit.tsx b/packages/toolkit/src/components/top-bar/RemainingCredit.tsx index d3cc9fe78f..eeeb3fe55f 100644 --- a/packages/toolkit/src/components/top-bar/RemainingCredit.tsx +++ b/packages/toolkit/src/components/top-bar/RemainingCredit.tsx @@ -1,6 +1,9 @@ "use client"; +import { useRouter } from "next/navigation"; + import { Button, Skeleton } from "@instill-ai/design-system"; + import { InstillStore, useAuthenticatedUser, @@ -9,7 +12,6 @@ import { useRemainingCredit, useShallow, } from "../../lib"; -import { useRouter } from "next/navigation"; import { env } from "../../server"; const selector = (store: InstillStore) => ({ diff --git a/packages/toolkit/src/components/top-bar/TopbarDropdown.tsx b/packages/toolkit/src/components/top-bar/TopbarDropdown.tsx index 73d9d9763b..262f9c3062 100644 --- a/packages/toolkit/src/components/top-bar/TopbarDropdown.tsx +++ b/packages/toolkit/src/components/top-bar/TopbarDropdown.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { DropdownMenu } from "@instill-ai/design-system"; export const TopbarDropdownItem = ({ diff --git a/packages/toolkit/src/components/top-bar/TopbarLinks.tsx b/packages/toolkit/src/components/top-bar/TopbarLinks.tsx index 77be1990e4..fcb8c8e8c6 100644 --- a/packages/toolkit/src/components/top-bar/TopbarLinks.tsx +++ b/packages/toolkit/src/components/top-bar/TopbarLinks.tsx @@ -1,7 +1,9 @@ -import { Icons } from "@instill-ai/design-system"; -import cn from "clsx"; -import Link from "next/link"; import * as React from "react"; +import Link from "next/link"; +import cn from "clsx"; + +import { Icons } from "@instill-ai/design-system"; + import { env } from "../../server"; export const topbarItems = [ diff --git a/packages/toolkit/src/components/top-bar/TopbarMiscLinks.tsx b/packages/toolkit/src/components/top-bar/TopbarMiscLinks.tsx index 6609cf83d2..88bcea9190 100644 --- a/packages/toolkit/src/components/top-bar/TopbarMiscLinks.tsx +++ b/packages/toolkit/src/components/top-bar/TopbarMiscLinks.tsx @@ -1,11 +1,13 @@ "use client"; + +import Link from "next/link"; import cn from "clsx"; + import { + buttonVariants, ComplicateIcons, Icons, - buttonVariants, } from "@instill-ai/design-system"; -import Link from "next/link"; export const TopbarMiscLinks = () => { return ( diff --git a/packages/toolkit/src/lib/airbytes/helpers/getConditionFormPath/getConditionFormPath.test.ts b/packages/toolkit/src/lib/airbytes/helpers/getConditionFormPath/getConditionFormPath.test.ts index 9797fa5116..dcb0e6fcbe 100644 --- a/packages/toolkit/src/lib/airbytes/helpers/getConditionFormPath/getConditionFormPath.test.ts +++ b/packages/toolkit/src/lib/airbytes/helpers/getConditionFormPath/getConditionFormPath.test.ts @@ -1,6 +1,7 @@ -import { test, expect } from "vitest"; -import { getConditionFormPath } from "./getConditionFormPath"; +import { expect, test } from "vitest"; + import { AirbyteFormConditionItem } from "../../types"; +import { getConditionFormPath } from "./getConditionFormPath"; test("should find path from a simple condition form", () => { const form: AirbyteFormConditionItem = { diff --git a/packages/toolkit/src/lib/airbytes/helpers/getFieldsPaths/getFieldPaths.test.ts b/packages/toolkit/src/lib/airbytes/helpers/getFieldsPaths/getFieldPaths.test.ts index 5c020ad09e..0f92b41bc0 100644 --- a/packages/toolkit/src/lib/airbytes/helpers/getFieldsPaths/getFieldPaths.test.ts +++ b/packages/toolkit/src/lib/airbytes/helpers/getFieldsPaths/getFieldPaths.test.ts @@ -1,6 +1,7 @@ -import { test, expect } from "vitest"; -import { getFieldPaths } from "./getFieldPaths"; +import { expect, test } from "vitest"; + import { AirbyteFormTree } from "../../types"; +import { getFieldPaths } from "./getFieldPaths"; test("should get paths from single formItem", () => { const formTree: AirbyteFormTree = { diff --git a/packages/toolkit/src/lib/airbytes/helpers/pickSelectedConditionMap/pickSelectedConditionMap.test.ts b/packages/toolkit/src/lib/airbytes/helpers/pickSelectedConditionMap/pickSelectedConditionMap.test.ts index 08cd6e6a0d..e8930a3202 100644 --- a/packages/toolkit/src/lib/airbytes/helpers/pickSelectedConditionMap/pickSelectedConditionMap.test.ts +++ b/packages/toolkit/src/lib/airbytes/helpers/pickSelectedConditionMap/pickSelectedConditionMap.test.ts @@ -1,6 +1,7 @@ -import { test, expect } from "vitest"; -import { pickSelectedConditionMap } from "./pickSelectedConditionMap"; +import { expect, test } from "vitest"; + import { AirbyteFormTree } from "../../types"; +import { pickSelectedConditionMap } from "./pickSelectedConditionMap"; test("should find one selected condition map", () => { const formTree: AirbyteFormTree = { diff --git a/packages/toolkit/src/lib/airbytes/helpers/pickSelectedConditionMap/pickSelectedConditionMap.ts b/packages/toolkit/src/lib/airbytes/helpers/pickSelectedConditionMap/pickSelectedConditionMap.ts index 1536b4a15c..1853c47696 100644 --- a/packages/toolkit/src/lib/airbytes/helpers/pickSelectedConditionMap/pickSelectedConditionMap.ts +++ b/packages/toolkit/src/lib/airbytes/helpers/pickSelectedConditionMap/pickSelectedConditionMap.ts @@ -1,10 +1,10 @@ -import { getConditionFormPath } from "../getConditionFormPath"; import { AirbyteFieldValues, AirbyteFormItem, AirbyteFormTree, SelectedItemMap, } from "../../types"; +import { getConditionFormPath } from "../getConditionFormPath"; export const pickSelectedConditionMap = ( formTree: AirbyteFormTree, diff --git a/packages/toolkit/src/lib/airbytes/helpers/transformAirbyteSchemaToAirbyteFormTree/transformAirbyteSchemaToAirbyteFormTree.test.ts b/packages/toolkit/src/lib/airbytes/helpers/transformAirbyteSchemaToAirbyteFormTree/transformAirbyteSchemaToAirbyteFormTree.test.ts index d95159dcec..1aef06272d 100644 --- a/packages/toolkit/src/lib/airbytes/helpers/transformAirbyteSchemaToAirbyteFormTree/transformAirbyteSchemaToAirbyteFormTree.test.ts +++ b/packages/toolkit/src/lib/airbytes/helpers/transformAirbyteSchemaToAirbyteFormTree/transformAirbyteSchemaToAirbyteFormTree.test.ts @@ -3,9 +3,10 @@ * ref: https://github.com/airbytehq/airbyte/blob/29ce34f1cee4878a6e9368890d87820c0d379844/airbyte-webapp/src/core/jsonSchema/schemaToUiWidget.test.ts */ -import { test, expect } from "vitest"; -import { transformAirbyteSchemaToAirbyteFormTree } from "./transformAirbyteSchemaToAirbyteFormTree"; +import { expect, test } from "vitest"; + import { AirbyteJsonSchemaDefinition } from "../../types"; +import { transformAirbyteSchemaToAirbyteFormTree } from "./transformAirbyteSchemaToAirbyteFormTree"; test("should reformat jsonSchema to formTree representation", () => { const schema: AirbyteJsonSchemaDefinition = { diff --git a/packages/toolkit/src/lib/airbytes/helpers/transformAirbyteSchemaToAirbyteFormTree/transformAirbyteSchemaToAirbyteFormTree.ts b/packages/toolkit/src/lib/airbytes/helpers/transformAirbyteSchemaToAirbyteFormTree/transformAirbyteSchemaToAirbyteFormTree.ts index dcf95879b9..562530e23b 100644 --- a/packages/toolkit/src/lib/airbytes/helpers/transformAirbyteSchemaToAirbyteFormTree/transformAirbyteSchemaToAirbyteFormTree.ts +++ b/packages/toolkit/src/lib/airbytes/helpers/transformAirbyteSchemaToAirbyteFormTree/transformAirbyteSchemaToAirbyteFormTree.ts @@ -4,9 +4,9 @@ */ import type { + AirbyteFormTree, AirbyteJsonSchema, AirbyteJsonSchemaDefinition, - AirbyteFormTree, } from "../../types"; export const transformAirbyteSchemaToAirbyteFormTree = ( diff --git a/packages/toolkit/src/lib/airbytes/helpers/transformAirbyteSchemaToYup.ts b/packages/toolkit/src/lib/airbytes/helpers/transformAirbyteSchemaToYup.ts index 6f80ef7601..c657dbc722 100644 --- a/packages/toolkit/src/lib/airbytes/helpers/transformAirbyteSchemaToYup.ts +++ b/packages/toolkit/src/lib/airbytes/helpers/transformAirbyteSchemaToYup.ts @@ -1,7 +1,8 @@ -import { AirbyteJsonSchema, SelectedItemMap } from "../types"; +import { JSONSchema7Definition } from "json-schema"; import * as yup from "yup"; + import { Nullable } from "../../type"; -import { JSONSchema7Definition } from "json-schema"; +import { AirbyteJsonSchema, SelectedItemMap } from "../types"; export const transformAirbyteSchemaToYup = ( jsonSchema: AirbyteJsonSchema, diff --git a/packages/toolkit/src/lib/airbytes/hooks/useAirbyteFieldValues.ts b/packages/toolkit/src/lib/airbytes/hooks/useAirbyteFieldValues.ts index 92b1fd7010..aa792dc3d2 100644 --- a/packages/toolkit/src/lib/airbytes/hooks/useAirbyteFieldValues.ts +++ b/packages/toolkit/src/lib/airbytes/hooks/useAirbyteFieldValues.ts @@ -1,6 +1,7 @@ +import * as React from "react"; + import { dot } from "../../dot"; import { Nullable } from "../../type"; -import * as React from "react"; import { AirbyteFieldValues, AirbyteFormTree } from "../types"; export const useAirbyteFieldValues = ( diff --git a/packages/toolkit/src/lib/airbytes/hooks/useAirbyteFormTree.ts b/packages/toolkit/src/lib/airbytes/hooks/useAirbyteFormTree.ts index 2310389cc7..dd6b1d0324 100644 --- a/packages/toolkit/src/lib/airbytes/hooks/useAirbyteFormTree.ts +++ b/packages/toolkit/src/lib/airbytes/hooks/useAirbyteFormTree.ts @@ -1,6 +1,7 @@ -import { ConnectorDefinition } from "../../vdp-sdk"; -import { Nullable } from "../../type"; import * as React from "react"; + +import { Nullable } from "../../type"; +import { ConnectorDefinition } from "../../vdp-sdk"; import { transformAirbyteSchemaToAirbyteFormTree } from "../helpers/transformAirbyteSchemaToAirbyteFormTree"; export const useAirbyteFormTree = ( diff --git a/packages/toolkit/src/lib/airbytes/hooks/useAirbyteSelectedConditionMap.ts b/packages/toolkit/src/lib/airbytes/hooks/useAirbyteSelectedConditionMap.ts index be1f2c9542..fe97ddfd36 100644 --- a/packages/toolkit/src/lib/airbytes/hooks/useAirbyteSelectedConditionMap.ts +++ b/packages/toolkit/src/lib/airbytes/hooks/useAirbyteSelectedConditionMap.ts @@ -1,4 +1,5 @@ import * as React from "react"; + import { Nullable, UseCustomHookResult } from "../../type"; import { pickSelectedConditionMap } from "../helpers"; import { AirbyteFieldValues, AirbyteFormTree, SelectedItemMap } from "../types"; diff --git a/packages/toolkit/src/lib/airbytes/hooks/useBuildAirbyteYup.ts b/packages/toolkit/src/lib/airbytes/hooks/useBuildAirbyteYup.ts index 5a6dbcde0d..2dc2fe55f4 100644 --- a/packages/toolkit/src/lib/airbytes/hooks/useBuildAirbyteYup.ts +++ b/packages/toolkit/src/lib/airbytes/hooks/useBuildAirbyteYup.ts @@ -1,6 +1,7 @@ -import { Nullable } from "../../type"; import * as React from "react"; import { AnySchema } from "yup"; + +import { Nullable } from "../../type"; import { transformAirbyteSchemaToYup } from "../helpers"; import { AirbyteJsonSchema, SelectedItemMap } from "../types"; diff --git a/packages/toolkit/src/lib/airbytes/types.ts b/packages/toolkit/src/lib/airbytes/types.ts index 030972329a..9f97a11ad4 100644 --- a/packages/toolkit/src/lib/airbytes/types.ts +++ b/packages/toolkit/src/lib/airbytes/types.ts @@ -1,12 +1,13 @@ -import { Nullable } from "../type"; import type { JSONSchema7, JSONSchema7Definition, - JSONSchema7TypeName, JSONSchema7Type, + JSONSchema7TypeName, } from "json-schema"; import * as React from "react"; +import { Nullable } from "../type"; + /** * This is the official airbyte schema json type they are using in their web-app * ref: https://github.com/airbytehq/airbyte/blob/29ce34f1cee4878a6e9368890d87820c0d379844/airbyte-webapp/src/core/jsonSchema/types.ts diff --git a/packages/toolkit/src/lib/amplitude/AmplitudeContext.ts b/packages/toolkit/src/lib/amplitude/AmplitudeContext.ts index a209b23219..d91b68275f 100644 --- a/packages/toolkit/src/lib/amplitude/AmplitudeContext.ts +++ b/packages/toolkit/src/lib/amplitude/AmplitudeContext.ts @@ -1,6 +1,7 @@ -import { Nullable } from "../type"; import * as React from "react"; +import { Nullable } from "../type"; + type AmplitudeCtxValue = { amplitudeIsInit: boolean; setAmplitudeIsInit: Nullable>>; diff --git a/packages/toolkit/src/lib/amplitude/helper.ts b/packages/toolkit/src/lib/amplitude/helper.ts index c30542ab2d..6b377c3038 100644 --- a/packages/toolkit/src/lib/amplitude/helper.ts +++ b/packages/toolkit/src/lib/amplitude/helper.ts @@ -1,6 +1,7 @@ -import { Nullable } from "../type"; import { init, setUserId, track } from "@amplitude/analytics-browser"; + import { env } from "../../server"; +import { Nullable } from "../type"; import { AmplitudeEvent, AmplitudeEventProperties } from "./type"; export const initAmplitude = ( diff --git a/packages/toolkit/src/lib/amplitude/useSendAmplitudeData.ts b/packages/toolkit/src/lib/amplitude/useSendAmplitudeData.ts index 44d30f10ec..05432364cc 100644 --- a/packages/toolkit/src/lib/amplitude/useSendAmplitudeData.ts +++ b/packages/toolkit/src/lib/amplitude/useSendAmplitudeData.ts @@ -1,4 +1,5 @@ import * as React from "react"; + import { useAmplitudeCtx } from "./AmplitudeContext"; import { sendAmplitudeData } from "./helper"; import { AmplitudeEvent, AmplitudeEventProperties } from "./type"; diff --git a/packages/toolkit/src/lib/dashboard/getPipeLineOptions.ts b/packages/toolkit/src/lib/dashboard/getPipeLineOptions.ts index e92cd868ef..e7c29234ed 100644 --- a/packages/toolkit/src/lib/dashboard/getPipeLineOptions.ts +++ b/packages/toolkit/src/lib/dashboard/getPipeLineOptions.ts @@ -1,4 +1,5 @@ import { SelectOption } from "@instill-ai/design-system"; + import { Pipeline } from "../vdp-sdk"; export function getPipeLineOptions(pipelines: Pipeline[]): SelectOption[] { diff --git a/packages/toolkit/src/lib/dot/index.test.ts b/packages/toolkit/src/lib/dot/index.test.ts index d47a977e3c..1931694c96 100644 --- a/packages/toolkit/src/lib/dot/index.test.ts +++ b/packages/toolkit/src/lib/dot/index.test.ts @@ -1,4 +1,5 @@ -import { test, expect, describe } from "vitest"; +import { describe, expect, test } from "vitest"; + import { dot } from "."; describe("getter", () => { diff --git a/packages/toolkit/src/lib/hook/useCreateUpdateDeleteResourceGuard.tsx b/packages/toolkit/src/lib/hook/useCreateUpdateDeleteResourceGuard.tsx index fec952dae6..6e99f6b2db 100644 --- a/packages/toolkit/src/lib/hook/useCreateUpdateDeleteResourceGuard.tsx +++ b/packages/toolkit/src/lib/hook/useCreateUpdateDeleteResourceGuard.tsx @@ -1,6 +1,7 @@ -import { env } from "../../server"; import * as React from "react"; +import { env } from "../../server"; + export function useCreateUpdateDeleteResourceGuard() { const [enable, setEnable] = React.useState(false); diff --git a/packages/toolkit/src/lib/hook/useGuardPipelineBuilderUnsavedChangesNavigation.ts b/packages/toolkit/src/lib/hook/useGuardPipelineBuilderUnsavedChangesNavigation.ts index 9498f63c1b..b17913b4a4 100644 --- a/packages/toolkit/src/lib/hook/useGuardPipelineBuilderUnsavedChangesNavigation.ts +++ b/packages/toolkit/src/lib/hook/useGuardPipelineBuilderUnsavedChangesNavigation.ts @@ -1,13 +1,14 @@ "use client"; import * as React from "react"; +import { usePathname, useRouter } from "next/navigation"; + +import { pathnameEvaluator } from "../pathname-evaluator"; import { InstillStore, useInstillStore, useShallow, } from "../use-instill-store"; -import { usePathname, useRouter } from "next/navigation"; -import { pathnameEvaluator } from "../pathname-evaluator"; const selector = (store: InstillStore) => ({ pipelineRecipeIsDirty: store.pipelineRecipeIsDirty, diff --git a/packages/toolkit/src/lib/hook/useNavigateBackAfterLogin.tsx b/packages/toolkit/src/lib/hook/useNavigateBackAfterLogin.tsx index 97740e1481..aa0cfac09a 100644 --- a/packages/toolkit/src/lib/hook/useNavigateBackAfterLogin.tsx +++ b/packages/toolkit/src/lib/hook/useNavigateBackAfterLogin.tsx @@ -2,6 +2,7 @@ import * as React from "react"; import { usePathname, useRouter } from "next/navigation"; + import { env } from "../../server"; /** diff --git a/packages/toolkit/src/lib/hook/useRefSize.ts b/packages/toolkit/src/lib/hook/useRefSize.ts index 6861843aac..b67f900e5b 100644 --- a/packages/toolkit/src/lib/hook/useRefSize.ts +++ b/packages/toolkit/src/lib/hook/useRefSize.ts @@ -1,4 +1,5 @@ import * as React from "react"; + import { Nullable } from "../type"; export type RefSize = { diff --git a/packages/toolkit/src/lib/hook/useWindowSize.ts b/packages/toolkit/src/lib/hook/useWindowSize.ts index 5b3463c1bb..0d70c241c0 100644 --- a/packages/toolkit/src/lib/hook/useWindowSize.ts +++ b/packages/toolkit/src/lib/hook/useWindowSize.ts @@ -1,6 +1,7 @@ -import { Nullable } from "../type"; import * as React from "react"; +import { Nullable } from "../type"; + export type WindowSize = { width: number; height: number; diff --git a/packages/toolkit/src/lib/index.ts b/packages/toolkit/src/lib/index.ts index 4776b4250f..4e853c3317 100644 --- a/packages/toolkit/src/lib/index.ts +++ b/packages/toolkit/src/lib/index.ts @@ -1,3 +1,6 @@ +import debounce from "lodash.debounce"; +import isEqual from "lodash.isequal"; + export * from "./airbytes"; export * from "./amplitude"; export * from "./dashboard"; @@ -27,7 +30,6 @@ export * from "./generateDateInPast"; export * from "./convertSentenceToCamelCase"; export * from "./useUserNamespaces"; -import debounce from "lodash.debounce"; export { debounce }; -import isEqual from "lodash.isequal"; + export { isEqual }; diff --git a/packages/toolkit/src/lib/react-query-service/connector/useConnectorDefinition.ts b/packages/toolkit/src/lib/react-query-service/connector/useConnectorDefinition.ts index 53c65db594..5edca117cd 100644 --- a/packages/toolkit/src/lib/react-query-service/connector/useConnectorDefinition.ts +++ b/packages/toolkit/src/lib/react-query-service/connector/useConnectorDefinition.ts @@ -1,6 +1,7 @@ import { useQuery } from "@tanstack/react-query"; -import { getConnectorDefinitionQuery } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { getConnectorDefinitionQuery } from "../../vdp-sdk"; export function useConnectorDefinition({ connectorDefinitionName, diff --git a/packages/toolkit/src/lib/react-query-service/connector/useConnectorDefinitions.ts b/packages/toolkit/src/lib/react-query-service/connector/useConnectorDefinitions.ts index 28a3ca0b8f..b60abee54f 100644 --- a/packages/toolkit/src/lib/react-query-service/connector/useConnectorDefinitions.ts +++ b/packages/toolkit/src/lib/react-query-service/connector/useConnectorDefinitions.ts @@ -1,7 +1,8 @@ import { useQuery } from "@tanstack/react-query"; + +import type { Nullable } from "../../type"; import { env } from "../../../server"; import { ConnectorType, listConnectorDefinitionsQuery } from "../../vdp-sdk"; -import type { Nullable } from "../../type"; export function useConnectorDefinitions({ connectorType, diff --git a/packages/toolkit/src/lib/react-query-service/hub/useHubStats.ts b/packages/toolkit/src/lib/react-query-service/hub/useHubStats.ts index 9217ce816b..6f0b4558e1 100644 --- a/packages/toolkit/src/lib/react-query-service/hub/useHubStats.ts +++ b/packages/toolkit/src/lib/react-query-service/hub/useHubStats.ts @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; + import { getHubStatsQuery } from "../../vdp-sdk/hub/queries"; export function useHubStats({ diff --git a/packages/toolkit/src/lib/react-query-service/metric/usePipelineTriggerRecords.ts b/packages/toolkit/src/lib/react-query-service/metric/usePipelineTriggerRecords.ts index 306d7f891b..dcbe7c89e5 100644 --- a/packages/toolkit/src/lib/react-query-service/metric/usePipelineTriggerRecords.ts +++ b/packages/toolkit/src/lib/react-query-service/metric/usePipelineTriggerRecords.ts @@ -1,7 +1,8 @@ import { useQuery } from "@tanstack/react-query"; + +import { env } from "../../../server"; import { Nullable } from "../../type"; import { listPipelineTriggerRecordsQuery } from "../../vdp-sdk/metric"; -import { env } from "../../../server"; export function usePipelineTriggerRecords({ enabled, diff --git a/packages/toolkit/src/lib/react-query-service/metric/useTriggeredPipelines.ts b/packages/toolkit/src/lib/react-query-service/metric/useTriggeredPipelines.ts index 44e7ca6d7c..e75b42a2d1 100644 --- a/packages/toolkit/src/lib/react-query-service/metric/useTriggeredPipelines.ts +++ b/packages/toolkit/src/lib/react-query-service/metric/useTriggeredPipelines.ts @@ -1,7 +1,8 @@ import { useQuery } from "@tanstack/react-query"; + +import { env } from "../../../server"; import { Nullable } from "../../type"; import { listTriggeredPipelineQuery } from "../../vdp-sdk"; -import { env } from "../../../server"; export function useTriggeredPipelines({ enabled, diff --git a/packages/toolkit/src/lib/react-query-service/metric/useTriggeredPipelinesChart.ts b/packages/toolkit/src/lib/react-query-service/metric/useTriggeredPipelinesChart.ts index 1656c38741..b1876c6ba7 100644 --- a/packages/toolkit/src/lib/react-query-service/metric/useTriggeredPipelinesChart.ts +++ b/packages/toolkit/src/lib/react-query-service/metric/useTriggeredPipelinesChart.ts @@ -1,7 +1,8 @@ import { useQuery } from "@tanstack/react-query"; + +import { env } from "../../../server"; import { Nullable } from "../../type"; import { listTriggeredPipelineChartQuery } from "../../vdp-sdk"; -import { env } from "../../../server"; export function useTriggeredPipelinesChart({ enabled, diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/use-api-tokens/server.ts b/packages/toolkit/src/lib/react-query-service/mgmt/use-api-tokens/server.ts index 76049aa67a..995de85a7c 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/use-api-tokens/server.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/use-api-tokens/server.ts @@ -1,7 +1,8 @@ import { QueryClient } from "@tanstack/react-query"; + +import { env } from "../../../../server"; import { Nullable } from "../../../type"; import { listApiTokensQuery } from "../../../vdp-sdk"; -import { env } from "../../../../server"; export async function fetchApiTokens({ accessToken, diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/use-authenticated-user/client.ts b/packages/toolkit/src/lib/react-query-service/mgmt/use-authenticated-user/client.ts index 4801a5b132..b4719c0a9c 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/use-authenticated-user/client.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/use-authenticated-user/client.ts @@ -1,6 +1,7 @@ "use client"; import { useQuery } from "@tanstack/react-query"; + import type { Nullable } from "../../../type"; import { fetchAuthenticatedUser, diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/use-authenticated-user/server.ts b/packages/toolkit/src/lib/react-query-service/mgmt/use-authenticated-user/server.ts index 3f90f8939f..a0526501ff 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/use-authenticated-user/server.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/use-authenticated-user/server.ts @@ -1,4 +1,5 @@ import { QueryClient } from "@tanstack/react-query"; + import { Nullable } from "../../../type"; import { getAuthenticatedUserQuery } from "../../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/use-namespace-type/client.ts b/packages/toolkit/src/lib/react-query-service/mgmt/use-namespace-type/client.ts index 13daab197f..31fedf4d0a 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/use-namespace-type/client.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/use-namespace-type/client.ts @@ -1,6 +1,7 @@ "use client"; import { useQuery } from "@tanstack/react-query"; + import type { Nullable } from "../../../type"; import { fetchNamespaceType, getUseNamespaceTypeQueryKey } from "./server"; diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/use-namespace-type/server.ts b/packages/toolkit/src/lib/react-query-service/mgmt/use-namespace-type/server.ts index 3000bd8e42..ea32245a20 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/use-namespace-type/server.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/use-namespace-type/server.ts @@ -1,4 +1,5 @@ import { QueryClient } from "@tanstack/react-query"; + import { Nullable } from "../../../type"; import { checkNamespace } from "../../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/use-user/client.ts b/packages/toolkit/src/lib/react-query-service/mgmt/use-user/client.ts index c6beeeca57..539d5fe4eb 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/use-user/client.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/use-user/client.ts @@ -1,6 +1,7 @@ "use client"; import { useQuery } from "@tanstack/react-query"; + import type { Nullable } from "../../../type"; import { fetchUser, getUseUserQueryKey } from "./server"; diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/use-user/server.ts b/packages/toolkit/src/lib/react-query-service/mgmt/use-user/server.ts index 6a6ffb8c63..a54fd5eebe 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/use-user/server.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/use-user/server.ts @@ -1,4 +1,5 @@ import { QueryClient } from "@tanstack/react-query"; + import { Nullable } from "../../../type"; import { getUserQuery } from "../../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/useApiToken.ts b/packages/toolkit/src/lib/react-query-service/mgmt/useApiToken.ts index 6b445dd352..e8406a501e 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/useApiToken.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/useApiToken.ts @@ -1,6 +1,7 @@ import { useQuery } from "@tanstack/react-query"; -import { getApiTokenQuery } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { getApiTokenQuery } from "../../vdp-sdk"; export function useApiToken({ tokenName, diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/useApiTokens.ts b/packages/toolkit/src/lib/react-query-service/mgmt/useApiTokens.ts index 382197d17b..f4fc8f8af9 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/useApiTokens.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/useApiTokens.ts @@ -1,7 +1,8 @@ import { useQuery } from "@tanstack/react-query"; -import { listApiTokensQuery } from "../../vdp-sdk"; -import { env } from "../../../server"; + import type { Nullable } from "../../type"; +import { env } from "../../../server"; +import { listApiTokensQuery } from "../../vdp-sdk"; export function useApiTokens({ accessToken, diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/useAuthenticatedUserSubscription.ts b/packages/toolkit/src/lib/react-query-service/mgmt/useAuthenticatedUserSubscription.ts index 8ad16a8f77..2a9db5b540 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/useAuthenticatedUserSubscription.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/useAuthenticatedUserSubscription.ts @@ -1,6 +1,7 @@ import { useQuery } from "@tanstack/react-query"; -import { getAuthenticatedUserSubscriptionsQuery } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { getAuthenticatedUserSubscriptionsQuery } from "../../vdp-sdk"; export function useAuthenticatedUserSubscription({ accessToken, diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/useCreateApiToken.ts b/packages/toolkit/src/lib/react-query-service/mgmt/useCreateApiToken.ts index 7f22dd6c00..5229793b0e 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/useCreateApiToken.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/useCreateApiToken.ts @@ -1,10 +1,8 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { - createApiTokenMutation, - type ApiToken, - type CreateApiTokenPayload, -} from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import type { ApiToken, CreateApiTokenPayload } from "../../vdp-sdk"; +import { createApiTokenMutation } from "../../vdp-sdk"; export function useCreateApiToken() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/useDeleteApiToken.ts b/packages/toolkit/src/lib/react-query-service/mgmt/useDeleteApiToken.ts index c38b66d6f5..0f6fc7d6b2 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/useDeleteApiToken.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/useDeleteApiToken.ts @@ -1,6 +1,8 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { deleteApiTokenMutation, type ApiToken } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import type { ApiToken } from "../../vdp-sdk"; +import { deleteApiTokenMutation } from "../../vdp-sdk"; export function useDeleteApiToken() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/useMgmtDefinition.ts b/packages/toolkit/src/lib/react-query-service/mgmt/useMgmtDefinition.ts index e409859cdd..2b7c83d4ff 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/useMgmtDefinition.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/useMgmtDefinition.ts @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; + import { listRepoFileContent } from "../../github"; export function useMgmtDefinition({ diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/useNamespacesRemainingCredit.ts b/packages/toolkit/src/lib/react-query-service/mgmt/useNamespacesRemainingCredit.ts index 38f932c543..7c941f87c7 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/useNamespacesRemainingCredit.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/useNamespacesRemainingCredit.ts @@ -1,8 +1,9 @@ import { useQuery } from "@tanstack/react-query"; + import { Nullable } from "../../type"; import { - GetRemainingCreditResponse, getRemainingCreditQuery, + GetRemainingCreditResponse, } from "../../vdp-sdk"; export type NamespaceRemainingCredit = { diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/useRemainingCredit.ts b/packages/toolkit/src/lib/react-query-service/mgmt/useRemainingCredit.ts index 2deb7036f8..5ade42b6d6 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/useRemainingCredit.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/useRemainingCredit.ts @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; + import { Nullable } from "../../type"; import { getRemainingCreditQuery } from "../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/useUpdateAuthenticatedUser.ts b/packages/toolkit/src/lib/react-query-service/mgmt/useUpdateAuthenticatedUser.ts index 06b8364da6..2b873d3ab3 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/useUpdateAuthenticatedUser.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/useUpdateAuthenticatedUser.ts @@ -1,10 +1,11 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + +import type { Nullable } from "../../type"; +import type { User } from "../../vdp-sdk"; import { AuthenticatedUser, updateAuthenticatedUserMutation, - type User, } from "../../vdp-sdk"; -import type { Nullable } from "../../type"; export function useUpdateAuthenticatedUser() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/useUser.tsx b/packages/toolkit/src/lib/react-query-service/mgmt/useUser.tsx index d9bc4f810d..c345b7ebd3 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/useUser.tsx +++ b/packages/toolkit/src/lib/react-query-service/mgmt/useUser.tsx @@ -1,6 +1,7 @@ import { useQuery } from "@tanstack/react-query"; -import { getUserQuery } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { getUserQuery } from "../../vdp-sdk"; export function useUser({ userName, diff --git a/packages/toolkit/src/lib/react-query-service/mgmt/useUsers.ts b/packages/toolkit/src/lib/react-query-service/mgmt/useUsers.ts index 717c62895d..0a15b3c6fe 100644 --- a/packages/toolkit/src/lib/react-query-service/mgmt/useUsers.ts +++ b/packages/toolkit/src/lib/react-query-service/mgmt/useUsers.ts @@ -1,7 +1,8 @@ import { useQuery } from "@tanstack/react-query"; -import { listUsersQuery } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; import { env } from "../../../server"; +import { listUsersQuery } from "../../vdp-sdk"; export function useUsers({ accessToken, diff --git a/packages/toolkit/src/lib/react-query-service/model/onSuccessAfterModelMutation.ts b/packages/toolkit/src/lib/react-query-service/model/onSuccessAfterModelMutation.ts index c6c7b076cf..aa999fecd2 100644 --- a/packages/toolkit/src/lib/react-query-service/model/onSuccessAfterModelMutation.ts +++ b/packages/toolkit/src/lib/react-query-service/model/onSuccessAfterModelMutation.ts @@ -1,6 +1,7 @@ -import { Model } from "../../vdp-sdk"; import { QueryClient } from "@tanstack/react-query"; +import { Model } from "../../vdp-sdk"; + export type OnSuccessAfterModelMutationProps = | OnSuccessAfterDeleteModelProps | OnSuccessAfterCreateModelProps diff --git a/packages/toolkit/src/lib/react-query-service/model/use-user-model/client.ts b/packages/toolkit/src/lib/react-query-service/model/use-user-model/client.ts index d22d3e564a..5513d06cb7 100644 --- a/packages/toolkit/src/lib/react-query-service/model/use-user-model/client.ts +++ b/packages/toolkit/src/lib/react-query-service/model/use-user-model/client.ts @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; + import { Nullable } from "../../../type"; import { fetchUserModel, getUseUserModelQueryKey } from "./server"; diff --git a/packages/toolkit/src/lib/react-query-service/model/use-user-model/server.ts b/packages/toolkit/src/lib/react-query-service/model/use-user-model/server.ts index 4e712633a0..f67c7d8adb 100644 --- a/packages/toolkit/src/lib/react-query-service/model/use-user-model/server.ts +++ b/packages/toolkit/src/lib/react-query-service/model/use-user-model/server.ts @@ -1,4 +1,5 @@ import { QueryClient } from "@tanstack/react-query"; + import { Nullable } from "../../../type"; import { getUserModelQuery } from "../../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/model/useCreateUserModel.ts b/packages/toolkit/src/lib/react-query-service/model/useCreateUserModel.ts index 113aa92812..aa5aa3182a 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useCreateUserModel.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useCreateUserModel.ts @@ -1,6 +1,7 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { CreateUserModelPayload, createUserModelMutation } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { createUserModelMutation, CreateUserModelPayload } from "../../vdp-sdk"; import { onSuccessAfterModelMutation } from "./onSuccessAfterModelMutation"; export function useCreateUserModel() { diff --git a/packages/toolkit/src/lib/react-query-service/model/useDeleteUserModel.ts b/packages/toolkit/src/lib/react-query-service/model/useDeleteUserModel.ts index 0c082afc8c..38f5657ed9 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useDeleteUserModel.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useDeleteUserModel.ts @@ -1,6 +1,7 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { deleteUserModelMutation } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { deleteUserModelMutation } from "../../vdp-sdk"; import { onSuccessAfterModelMutation } from "./onSuccessAfterModelMutation"; export function useDeleteModel() { diff --git a/packages/toolkit/src/lib/react-query-service/model/useDeployUserModel.ts b/packages/toolkit/src/lib/react-query-service/model/useDeployUserModel.ts index c23520d62a..f7f6367ac5 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useDeployUserModel.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useDeployUserModel.ts @@ -1,4 +1,5 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + import type { Nullable } from "../../type"; import { deployUserModelAction } from "../../vdp-sdk"; import { onSuccessAfterModelMutation } from "./onSuccessAfterModelMutation"; diff --git a/packages/toolkit/src/lib/react-query-service/model/useInfiniteModelVersions.ts b/packages/toolkit/src/lib/react-query-service/model/useInfiniteModelVersions.ts index 1c05a1560a..41e28491c5 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useInfiniteModelVersions.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useInfiniteModelVersions.ts @@ -1,12 +1,13 @@ import { InfiniteData, - UseInfiniteQueryResult, useInfiniteQuery, + UseInfiniteQueryResult, } from "@tanstack/react-query"; + import type { Nullable } from "../../type"; import { - ListModelVersionsResponse, listModelVersionsQuery, + ListModelVersionsResponse, } from "../../vdp-sdk"; export function useInfiniteModelVersions({ diff --git a/packages/toolkit/src/lib/react-query-service/model/useInfiniteModels.ts b/packages/toolkit/src/lib/react-query-service/model/useInfiniteModels.ts index 030e418e43..10174112da 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useInfiniteModels.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useInfiniteModels.ts @@ -1,7 +1,8 @@ import { useInfiniteQuery } from "@tanstack/react-query"; -import { env } from "../../../server"; -import { Visibility, listModelsQuery } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { env } from "../../../server"; +import { listModelsQuery, Visibility } from "../../vdp-sdk"; export function useInfiniteModels({ accessToken, diff --git a/packages/toolkit/src/lib/react-query-service/model/useInfiniteUserModels.ts b/packages/toolkit/src/lib/react-query-service/model/useInfiniteUserModels.ts index df9b7e146c..d0d944b428 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useInfiniteUserModels.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useInfiniteUserModels.ts @@ -1,7 +1,8 @@ import { useInfiniteQuery } from "@tanstack/react-query"; -import { env } from "../../../server"; -import { Visibility, listUserModelsQuery } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { env } from "../../../server"; +import { listUserModelsQuery, Visibility } from "../../vdp-sdk"; export function useInfiniteUserModels({ userName, diff --git a/packages/toolkit/src/lib/react-query-service/model/useLastModelTriggerResult.ts b/packages/toolkit/src/lib/react-query-service/model/useLastModelTriggerResult.ts index c89a798314..e85026afc1 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useLastModelTriggerResult.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useLastModelTriggerResult.ts @@ -1,6 +1,7 @@ import { useQuery } from "@tanstack/react-query"; -import { getModelOperationResult } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { getModelOperationResult } from "../../vdp-sdk"; export function useLastModelTriggerResult({ modelName, diff --git a/packages/toolkit/src/lib/react-query-service/model/useModelDefinition.ts b/packages/toolkit/src/lib/react-query-service/model/useModelDefinition.ts index 15eec445ed..25dfd67dc8 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useModelDefinition.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useModelDefinition.ts @@ -1,6 +1,7 @@ import { useQuery } from "@tanstack/react-query"; -import { getModelDefinitionQuery } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { getModelDefinitionQuery } from "../../vdp-sdk"; export function useModelDefinition({ modelDefinitionName, diff --git a/packages/toolkit/src/lib/react-query-service/model/useModelDefinitions.ts b/packages/toolkit/src/lib/react-query-service/model/useModelDefinitions.ts index 839a6c1e45..1b775aed62 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useModelDefinitions.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useModelDefinitions.ts @@ -1,7 +1,8 @@ import { useQuery } from "@tanstack/react-query"; + +import type { Nullable } from "../../type"; import { env } from "../../../server"; import { listModelDefinitionsQuery } from "../../vdp-sdk"; -import type { Nullable } from "../../type"; export function useModelDefinitions({ accessToken, diff --git a/packages/toolkit/src/lib/react-query-service/model/useModelRegions.ts b/packages/toolkit/src/lib/react-query-service/model/useModelRegions.ts index e0f6f142a7..a66b258513 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useModelRegions.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useModelRegions.ts @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; + import type { Nullable } from "../../type"; import { listModelRegionsQuery } from "../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/model/useTriggerUserModel.tsx b/packages/toolkit/src/lib/react-query-service/model/useTriggerUserModel.tsx index 7639b166e7..221e51c203 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useTriggerUserModel.tsx +++ b/packages/toolkit/src/lib/react-query-service/model/useTriggerUserModel.tsx @@ -1,9 +1,8 @@ import { useMutation } from "@tanstack/react-query"; + +import type { TriggerUserModelPayload } from "../../vdp-sdk"; import { Nullable } from "../../type"; -import { - type TriggerUserModelPayload, - triggerUserModelAction, -} from "../../vdp-sdk"; +import { triggerUserModelAction } from "../../vdp-sdk"; export function useTriggerUserModel() { return useMutation({ diff --git a/packages/toolkit/src/lib/react-query-service/model/useTriggerUserModelAsync.tsx b/packages/toolkit/src/lib/react-query-service/model/useTriggerUserModelAsync.tsx index 5d452030ee..809640f8b0 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useTriggerUserModelAsync.tsx +++ b/packages/toolkit/src/lib/react-query-service/model/useTriggerUserModelAsync.tsx @@ -1,9 +1,8 @@ import { useMutation } from "@tanstack/react-query"; + +import type { TriggerUserModelPayload } from "../../vdp-sdk"; import { Nullable } from "../../type"; -import { - type TriggerUserModelPayload, - triggerUserModelActionAsync, -} from "../../vdp-sdk"; +import { triggerUserModelActionAsync } from "../../vdp-sdk"; export function useTriggerUserModelAsync() { return useMutation({ diff --git a/packages/toolkit/src/lib/react-query-service/model/useUndeployUserModel.ts b/packages/toolkit/src/lib/react-query-service/model/useUndeployUserModel.ts index 8906c89c14..678f7a543e 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useUndeployUserModel.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useUndeployUserModel.ts @@ -1,4 +1,5 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + import type { Nullable } from "../../type"; import { undeployUserModeleAction } from "../../vdp-sdk"; import { onSuccessAfterModelMutation } from "./onSuccessAfterModelMutation"; diff --git a/packages/toolkit/src/lib/react-query-service/model/useUpdateUserModel.ts b/packages/toolkit/src/lib/react-query-service/model/useUpdateUserModel.ts index e1e6a8cbe1..4282125048 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useUpdateUserModel.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useUpdateUserModel.ts @@ -1,6 +1,7 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { updateModelMutation, UpdateUserModelPayload } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { updateModelMutation, UpdateUserModelPayload } from "../../vdp-sdk"; import { onSuccessAfterModelMutation } from "./onSuccessAfterModelMutation"; export function useUpdateUserModel() { diff --git a/packages/toolkit/src/lib/react-query-service/model/useUserModel.tsx b/packages/toolkit/src/lib/react-query-service/model/useUserModel.tsx index bb3f674c7b..0db2882175 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useUserModel.tsx +++ b/packages/toolkit/src/lib/react-query-service/model/useUserModel.tsx @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; + import type { Nullable } from "../../type"; import { getUserModelQuery } from "../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/model/useUserModels.ts b/packages/toolkit/src/lib/react-query-service/model/useUserModels.ts index d53f205564..c1ca358dcb 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useUserModels.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useUserModels.ts @@ -1,7 +1,8 @@ import { useQuery } from "@tanstack/react-query"; -import { Visibility, listUserModelsQuery } from "../../vdp-sdk"; -import { env } from "../../../server"; + import type { Nullable } from "../../type"; +import { env } from "../../../server"; +import { listUserModelsQuery, Visibility } from "../../vdp-sdk"; export async function fetchUserModels( userName: string, diff --git a/packages/toolkit/src/lib/react-query-service/model/useWatchUserModels.ts b/packages/toolkit/src/lib/react-query-service/model/useWatchUserModels.ts index 21445e2c55..e7c276ba2a 100644 --- a/packages/toolkit/src/lib/react-query-service/model/useWatchUserModels.ts +++ b/packages/toolkit/src/lib/react-query-service/model/useWatchUserModels.ts @@ -1,6 +1,8 @@ import { useQuery } from "@tanstack/react-query"; -import { watchUserModel, type ModelsWatchState } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import type { ModelsWatchState } from "../../vdp-sdk"; +import { watchUserModel } from "../../vdp-sdk"; export function useWatchUserModels({ modelNames, diff --git a/packages/toolkit/src/lib/react-query-service/organization/use-organization-memberships/client.ts b/packages/toolkit/src/lib/react-query-service/organization/use-organization-memberships/client.ts index 3225eee408..6809b30341 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/use-organization-memberships/client.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/use-organization-memberships/client.ts @@ -1,6 +1,7 @@ "use client"; import { useQuery } from "@tanstack/react-query"; + import type { Nullable } from "../../../type"; import { fetchOrganizationMemberships, diff --git a/packages/toolkit/src/lib/react-query-service/organization/use-organization-memberships/server.ts b/packages/toolkit/src/lib/react-query-service/organization/use-organization-memberships/server.ts index 7f02a05453..53821e4ae4 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/use-organization-memberships/server.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/use-organization-memberships/server.ts @@ -1,4 +1,5 @@ import { QueryClient } from "@tanstack/react-query"; + import { Nullable } from "../../../type"; import { getOrganizationMembershipsQuery } from "../../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/organization/use-organization/client.ts b/packages/toolkit/src/lib/react-query-service/organization/use-organization/client.ts index 0182f7c424..19819f11a1 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/use-organization/client.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/use-organization/client.ts @@ -1,6 +1,7 @@ "use client"; import { useQuery } from "@tanstack/react-query"; + import type { Nullable } from "../../../type"; import { fetchOrganization, getUseOrganizationQueryKey } from "./server"; diff --git a/packages/toolkit/src/lib/react-query-service/organization/use-organization/server.ts b/packages/toolkit/src/lib/react-query-service/organization/use-organization/server.ts index 07b0c80af0..5cfaf59514 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/use-organization/server.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/use-organization/server.ts @@ -1,4 +1,5 @@ import { QueryClient } from "@tanstack/react-query"; + import { Nullable } from "../../../type"; import { getOrganizationQuery } from "../../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/organization/useCreateOrganization.ts b/packages/toolkit/src/lib/react-query-service/organization/useCreateOrganization.ts index 5222da3396..3bc5ace504 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/useCreateOrganization.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/useCreateOrganization.ts @@ -2,9 +2,9 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; import type { Nullable } from "../../type"; import { + createOrganizationMutation, CreateOrganizationPayload, Organization, - createOrganizationMutation, } from "../../vdp-sdk"; export function useCreateOrganization() { diff --git a/packages/toolkit/src/lib/react-query-service/organization/useDeleteOrganization.ts b/packages/toolkit/src/lib/react-query-service/organization/useDeleteOrganization.ts index 43b34e1042..1d99e4cbdb 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/useDeleteOrganization.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/useDeleteOrganization.ts @@ -1,6 +1,7 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { deleteOrganizationMutation, Organization } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { deleteOrganizationMutation, Organization } from "../../vdp-sdk"; export function useDeleteOrganization() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/organization/useDeleteOrganizationMembership.ts b/packages/toolkit/src/lib/react-query-service/organization/useDeleteOrganizationMembership.ts index c294ed2351..200b27bf39 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/useDeleteOrganizationMembership.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/useDeleteOrganizationMembership.ts @@ -1,6 +1,7 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { deleteOrganizationMembershipMutation } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { deleteOrganizationMembershipMutation } from "../../vdp-sdk"; export function useDeleteOrganizationMembership() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/organization/useDeleteUserMembership.ts b/packages/toolkit/src/lib/react-query-service/organization/useDeleteUserMembership.ts index e5c33bfd05..cb4607c436 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/useDeleteUserMembership.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/useDeleteUserMembership.ts @@ -1,6 +1,7 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { deleteUserMembershipMutation } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { deleteUserMembershipMutation } from "../../vdp-sdk"; export function useDeleteUserMembership() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/organization/useOrganizationMembership.ts b/packages/toolkit/src/lib/react-query-service/organization/useOrganizationMembership.ts index ada26873bd..134c61cec7 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/useOrganizationMembership.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/useOrganizationMembership.ts @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; + import type { Nullable } from "../../type"; import { getOrganizationMembershipQuery } from "../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/organization/useOrganizationSubscription.ts b/packages/toolkit/src/lib/react-query-service/organization/useOrganizationSubscription.ts index 49e73ea13a..8755651662 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/useOrganizationSubscription.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/useOrganizationSubscription.ts @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; + import type { Nullable } from "../../type"; import { getOrganizationSubscriptionQuery } from "../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/organization/useOrganizations.ts b/packages/toolkit/src/lib/react-query-service/organization/useOrganizations.ts index 1ccc04ff7f..8c81d0cae1 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/useOrganizations.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/useOrganizations.ts @@ -1,7 +1,8 @@ import { useQuery } from "@tanstack/react-query"; -import { listOrganizationsQuery } from "../../vdp-sdk"; -import { env } from "../../../server"; + import type { Nullable } from "../../type"; +import { env } from "../../../server"; +import { listOrganizationsQuery } from "../../vdp-sdk"; export function useOrganizations({ accessToken, diff --git a/packages/toolkit/src/lib/react-query-service/organization/useUpdateOrganization.ts b/packages/toolkit/src/lib/react-query-service/organization/useUpdateOrganization.ts index 972f85104f..f2db16632e 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/useUpdateOrganization.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/useUpdateOrganization.ts @@ -1,9 +1,10 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + import type { Nullable } from "../../type"; import { Organization, - UpdateOrganizationPayload, updateOrganizationMutation, + UpdateOrganizationPayload, } from "../../vdp-sdk"; export function useUpdateOrganization() { diff --git a/packages/toolkit/src/lib/react-query-service/organization/useUpdateOrganizationMembership.ts b/packages/toolkit/src/lib/react-query-service/organization/useUpdateOrganizationMembership.ts index f4692e2700..81de108e2c 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/useUpdateOrganizationMembership.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/useUpdateOrganizationMembership.ts @@ -1,8 +1,9 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + import type { Nullable } from "../../type"; import { - UpdateOrganizationMembershipPayload, updateOrganizationMembershipMutation, + UpdateOrganizationMembershipPayload, } from "../../vdp-sdk"; export function useUpdateOrganizationMembership() { diff --git a/packages/toolkit/src/lib/react-query-service/organization/useUpdateUserMembership.ts b/packages/toolkit/src/lib/react-query-service/organization/useUpdateUserMembership.ts index ee6613c126..8c72a6f7a3 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/useUpdateUserMembership.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/useUpdateUserMembership.ts @@ -1,8 +1,9 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + import type { Nullable } from "../../type"; import { - UpdateUserMembershipPayload, updateUserMembershipMutation, + UpdateUserMembershipPayload, } from "../../vdp-sdk"; export function useUpdateUserMembership() { diff --git a/packages/toolkit/src/lib/react-query-service/organization/useUserMembership.ts b/packages/toolkit/src/lib/react-query-service/organization/useUserMembership.ts index 928957c388..8ad0db86e2 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/useUserMembership.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/useUserMembership.ts @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; + import type { Nullable } from "../../type"; import { getUserMembershipQuery } from "../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/organization/useUserMemberships.ts b/packages/toolkit/src/lib/react-query-service/organization/useUserMemberships.ts index 24900a11f0..a0dcde9018 100644 --- a/packages/toolkit/src/lib/react-query-service/organization/useUserMemberships.ts +++ b/packages/toolkit/src/lib/react-query-service/organization/useUserMemberships.ts @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; + import type { Nullable } from "../../type"; import { getUserMembershipsQuery } from "../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipeline-releases/server.ts b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipeline-releases/server.ts index de953ef9fd..8fecfedc17 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipeline-releases/server.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipeline-releases/server.ts @@ -1,4 +1,4 @@ -import { QueryClient, env } from "../../../../server"; +import { env, QueryClient } from "../../../../server"; import { Nullable } from "../../../type"; import { ListUserPipelineReleasesQuery } from "../../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipeline/client.ts b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipeline/client.ts index 7a0a3ca373..7e449d942d 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipeline/client.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipeline/client.ts @@ -1,6 +1,7 @@ "use client"; import { useQuery } from "@tanstack/react-query"; + import type { Nullable } from "../../../type"; import { fetchUserPipeline, getUseUserPipelineQueryKey } from "./server"; diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipeline/server.ts b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipeline/server.ts index 270c426df9..2a537d1f43 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipeline/server.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipeline/server.ts @@ -1,4 +1,5 @@ import { QueryClient } from "@tanstack/react-query"; + import { Nullable } from "../../../type"; import { getUserPipelineQuery } from "../../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipelines/client.ts b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipelines/client.ts index 48b9fb0914..072a1405d4 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipelines/client.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipelines/client.ts @@ -1,8 +1,8 @@ import { useQuery } from "@tanstack/react-query"; -import { fetchUserPipelines } from "./server"; -import { Visibility } from "../../../vdp-sdk"; import { Nullable } from "../../../type"; +import { Visibility } from "../../../vdp-sdk"; +import { fetchUserPipelines } from "./server"; // This is a public API, we won't block unauth users from accessing this diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipelines/server.ts b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipelines/server.ts index acdbe558ec..d9e6627cdb 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipelines/server.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-pipelines/server.ts @@ -1,6 +1,6 @@ -import { QueryClient, env } from "../../../../server"; +import { env, QueryClient } from "../../../../server"; import { Nullable } from "../../../type"; -import { Visibility, listUserPipelinesQuery } from "../../../vdp-sdk"; +import { listUserPipelinesQuery, Visibility } from "../../../vdp-sdk"; export async function fetchUserPipelines({ userName, diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secret/client.ts b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secret/client.ts index 009ffb0db8..1ff0b52a68 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secret/client.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secret/client.ts @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; + import { Nullable } from "../../../type"; import { fetchUserSecret, getUseUserSecretQueryKey } from "./server"; diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secret/server.ts b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secret/server.ts index 67a72e7338..e5d8f28210 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secret/server.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secret/server.ts @@ -1,4 +1,5 @@ import { QueryClient } from "@tanstack/react-query"; + import { Nullable } from "../../../type"; import { getUserSecretQuery } from "../../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secrets/client.ts b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secrets/client.ts index b832dfbe10..9d9fc53821 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secrets/client.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secrets/client.ts @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; + import { Nullable } from "../../../type"; import { fetchUserSecrets, getUseUserSecretsQueryKey } from "./server"; diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secrets/server.ts b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secrets/server.ts index 017588ef62..c300e2f79c 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secrets/server.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/use-user-secrets/server.ts @@ -1,7 +1,8 @@ import { QueryClient } from "@tanstack/react-query"; + +import { env } from "../../../../server"; import { Nullable } from "../../../type"; import { listUserSecretsQuery } from "../../../vdp-sdk"; -import { env } from "../../../../server"; export async function fetchUserSecrets({ entityName, diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useCloneNamespacePipeline.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useCloneNamespacePipeline.ts index 786fc9dfab..29c48567cb 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useCloneNamespacePipeline.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useCloneNamespacePipeline.ts @@ -1,10 +1,11 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + +import type { Nullable } from "../../type"; +import type { Pipeline } from "../../vdp-sdk"; import { - CloneNamespacePipelinePayload, cloneNamespacePipelineMutation, - type Pipeline, + CloneNamespacePipelinePayload, } from "../../vdp-sdk"; -import type { Nullable } from "../../type"; export function useCloneNamespacePipeline() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useCreateUserPipeline.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useCreateUserPipeline.ts index a0eec4cd0c..612d7911e0 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useCreateUserPipeline.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useCreateUserPipeline.ts @@ -1,10 +1,8 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { - createUserPipelineMutation, - type CreateUserPipelinePayload, - type Pipeline, -} from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import type { CreateUserPipelinePayload, Pipeline } from "../../vdp-sdk"; +import { createUserPipelineMutation } from "../../vdp-sdk"; export function useCreateUserPipeline() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useCreateUserPipelineRelease.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useCreateUserPipelineRelease.ts index 13f673aef1..dc88bf71a5 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useCreateUserPipelineRelease.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useCreateUserPipelineRelease.ts @@ -1,10 +1,11 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { - createUserPipelineReleaseMutation, - type PipelineRelease, - type CreateUserPipelineReleasePayload, -} from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import type { + CreateUserPipelineReleasePayload, + PipelineRelease, +} from "../../vdp-sdk"; +import { createUserPipelineReleaseMutation } from "../../vdp-sdk"; export function useCreateUserPipelineRelease() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useCreateUserSecret.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useCreateUserSecret.ts index 6a10967549..33a3b11799 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useCreateUserSecret.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useCreateUserSecret.ts @@ -1,14 +1,12 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + +import type { Nullable } from "../../type"; +import type { CreateUserSecretPayload, Secret } from "../../vdp-sdk"; import { getUseUserSecretQueryKey, getUseUserSecretsQueryKey, } from "../../../server"; -import { - type CreateUserSecretPayload, - type Secret, - createUserSecretMutation, -} from "../../vdp-sdk"; -import type { Nullable } from "../../type"; +import { createUserSecretMutation } from "../../vdp-sdk"; export function useCreateUserSecret() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useDeleteUserPipeline.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useDeleteUserPipeline.ts index 6d4ea12e42..c874327953 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useDeleteUserPipeline.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useDeleteUserPipeline.ts @@ -1,6 +1,8 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { deleteUserPipelineMutation, type Pipeline } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import type { Pipeline } from "../../vdp-sdk"; +import { deleteUserPipelineMutation } from "../../vdp-sdk"; export function useDeleteUserPipeline() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useDeleteUserPipelineRelease.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useDeleteUserPipelineRelease.ts index 06afbe5ae9..97e085a645 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useDeleteUserPipelineRelease.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useDeleteUserPipelineRelease.ts @@ -1,9 +1,10 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + +import type { Nullable } from "../../type"; import { - PipelineRelease, deleteUserPipelineReleaseMutation, + PipelineRelease, } from "../../vdp-sdk"; -import type { Nullable } from "../../type"; export function useDeleteUserPipelineRelease() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useDeleteUserSecret.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useDeleteUserSecret.ts index 05abab6399..2178581a2d 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useDeleteUserSecret.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useDeleteUserSecret.ts @@ -1,6 +1,7 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { Secret, deleteUserSecretMutation } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { deleteUserSecretMutation, Secret } from "../../vdp-sdk"; import { getUseUserSecretQueryKey } from "./use-user-secret/server"; import { getUseUserSecretsQueryKey } from "./use-user-secrets/server"; diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useInfinitePipelines.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useInfinitePipelines.ts index e8f2629673..fe9137213c 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useInfinitePipelines.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useInfinitePipelines.ts @@ -1,14 +1,15 @@ import { InfiniteData, - UseInfiniteQueryResult, useInfiniteQuery, + UseInfiniteQueryResult, } from "@tanstack/react-query"; -import { Nullable } from "../../type"; + import { env } from "../../../server"; +import { Nullable } from "../../type"; import { + listPipelinesQuery, ListPipelinesResponse, Visibility, - listPipelinesQuery, } from "../../vdp-sdk"; export function useInfinitePipelines({ diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useInfiniteUserPipelines.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useInfiniteUserPipelines.ts index a9a3c656ce..43c9bc72ef 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useInfiniteUserPipelines.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useInfiniteUserPipelines.ts @@ -1,14 +1,15 @@ import { InfiniteData, - UseInfiniteQueryResult, useInfiniteQuery, + UseInfiniteQueryResult, } from "@tanstack/react-query"; -import { Nullable } from "../../type"; + import { env } from "../../../server"; +import { Nullable } from "../../type"; import { ListPipelinesResponse, - Visibility, listUserPipelinesQuery, + Visibility, } from "../../vdp-sdk"; export function useInfiniteUserPipelines({ diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useOperatorDefinition.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useOperatorDefinition.ts index 1d465b390e..719589dbe5 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useOperatorDefinition.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useOperatorDefinition.ts @@ -1,6 +1,7 @@ import { useQuery } from "@tanstack/react-query"; -import { getOperatorDefinitionQuery } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { getOperatorDefinitionQuery } from "../../vdp-sdk"; export function useOperatorDefinition({ operatorDefinitionName, diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useOperatorDefinitions.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useOperatorDefinitions.ts index 7c512d63b2..82c600a384 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useOperatorDefinitions.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useOperatorDefinitions.ts @@ -1,7 +1,8 @@ import { useQuery } from "@tanstack/react-query"; + +import type { Nullable } from "../../type"; import { env } from "../../../server"; import { listOperatorDefinitionsQuery } from "../../vdp-sdk"; -import type { Nullable } from "../../type"; export function useOperatorDefinitions({ accessToken, diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/usePipelines.ts b/packages/toolkit/src/lib/react-query-service/pipeline/usePipelines.ts index 1ef2aa2ac5..ed62b268e8 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/usePipelines.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/usePipelines.ts @@ -1,7 +1,8 @@ import { useQuery } from "@tanstack/react-query"; -import { Visibility, listPipelinesQuery } from "../../vdp-sdk"; -import { env } from "../../../server"; + import type { Nullable } from "../../type"; +import { env } from "../../../server"; +import { listPipelinesQuery, Visibility } from "../../vdp-sdk"; export async function fetchPipelines( accessToken: Nullable, diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useRenameUserPipeline.tsx b/packages/toolkit/src/lib/react-query-service/pipeline/useRenameUserPipeline.tsx index 8921f4b08a..d9c38f17dd 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useRenameUserPipeline.tsx +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useRenameUserPipeline.tsx @@ -1,10 +1,8 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + +import type { Pipeline, RenameUserPipelinePayload } from "../../vdp-sdk"; import { Nullable } from "../../type"; -import { - renameUserPipelineMutation, - type Pipeline, - type RenameUserPipelinePayload, -} from "../../vdp-sdk"; +import { renameUserPipelineMutation } from "../../vdp-sdk"; export function useRenameUserPipeline() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useRestoreUserPipelineRelease.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useRestoreUserPipelineRelease.ts index 59099e2462..22c5a1ff70 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useRestoreUserPipelineRelease.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useRestoreUserPipelineRelease.ts @@ -1,13 +1,16 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + +import type { Nullable } from "../../type"; +import type { + PipelineRelease, + PipelineReleasesWatchState, + PipelineReleaseWatchState, +} from "../../vdp-sdk"; import { removeObjKey } from "../../../server"; import { - type PipelineRelease, - type PipelineReleaseWatchState, - type PipelineReleasesWatchState, - watchUserPipelineReleaseQuery, restoreUserPipelineReleaseMutation, + watchUserPipelineReleaseQuery, } from "../../vdp-sdk"; -import type { Nullable } from "../../type"; export function useRestoreUserPipelineRelease() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useSetDefaultUserPipelineRelease.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useSetDefaultUserPipelineRelease.ts index 213e7bfc6e..c88c195112 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useSetDefaultUserPipelineRelease.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useSetDefaultUserPipelineRelease.ts @@ -1,13 +1,16 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + +import type { Nullable } from "../../type"; +import type { + PipelineRelease, + PipelineReleasesWatchState, + PipelineReleaseWatchState, +} from "../../vdp-sdk"; import { removeObjKey } from "../../../server"; import { - watchUserPipelineReleaseQuery, setDefaultUserPipelineReleaseMutation, - type PipelineRelease, - type PipelineReleaseWatchState, - type PipelineReleasesWatchState, + watchUserPipelineReleaseQuery, } from "../../vdp-sdk"; -import type { Nullable } from "../../type"; export function useSetDefaultUserPipelineRelease() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerAsyncUserPipeline.tsx b/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerAsyncUserPipeline.tsx index f616ab4f7b..a452404a09 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerAsyncUserPipeline.tsx +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerAsyncUserPipeline.tsx @@ -1,8 +1,9 @@ import { useMutation } from "@tanstack/react-query"; + import { Nullable } from "../../type"; import { - TriggerAsyncUserPipelinePayload, triggerAsyncUserPipelineAction, + TriggerAsyncUserPipelinePayload, } from "../../vdp-sdk"; export function useTriggerAsyncUserPipeline() { diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerAsyncUserPipelineRelease.tsx b/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerAsyncUserPipelineRelease.tsx index cffcd836bb..9f74a41592 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerAsyncUserPipelineRelease.tsx +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerAsyncUserPipelineRelease.tsx @@ -1,9 +1,8 @@ import { useMutation } from "@tanstack/react-query"; + +import type { TriggerUserPipelinePayload } from "../../vdp-sdk"; import { Nullable } from "../../type"; -import { - type TriggerUserPipelinePayload, - triggerAsyncUserPipelineReleaseAction, -} from "../../vdp-sdk"; +import { triggerAsyncUserPipelineReleaseAction } from "../../vdp-sdk"; export function useTriggerAsyncUserPipelineRelease() { return useMutation({ diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerUserPipeline.tsx b/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerUserPipeline.tsx index aaa296e994..b75b94df69 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerUserPipeline.tsx +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerUserPipeline.tsx @@ -1,9 +1,8 @@ import { useMutation } from "@tanstack/react-query"; + +import type { TriggerUserPipelinePayload } from "../../vdp-sdk"; import { Nullable } from "../../type"; -import { - type TriggerUserPipelinePayload, - triggerUserPipelineAction, -} from "../../vdp-sdk"; +import { triggerUserPipelineAction } from "../../vdp-sdk"; export function useTriggerUserPipeline() { return useMutation({ diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerUserPipelineRelease.tsx b/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerUserPipelineRelease.tsx index c3cce4c500..1b2716dba5 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerUserPipelineRelease.tsx +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useTriggerUserPipelineRelease.tsx @@ -1,9 +1,8 @@ import { useMutation } from "@tanstack/react-query"; + +import type { TriggerUserPipelinePayload } from "../../vdp-sdk"; import { Nullable } from "../../type"; -import { - type TriggerUserPipelinePayload, - triggerUserPipelineReleaseAction, -} from "../../vdp-sdk"; +import { triggerUserPipelineReleaseAction } from "../../vdp-sdk"; export function useTriggerUserPipelineRelease() { return useMutation({ diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useUpdateUserPipeline.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useUpdateUserPipeline.ts index c56bc17fbf..949cc5db40 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useUpdateUserPipeline.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useUpdateUserPipeline.ts @@ -1,10 +1,8 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + +import type { Pipeline, UpdateUserPipelinePayload } from "../../vdp-sdk"; import { Nullable } from "../../type"; -import { - updateUserPipelineMutation, - type Pipeline, - type UpdateUserPipelinePayload, -} from "../../vdp-sdk"; +import { updateUserPipelineMutation } from "../../vdp-sdk"; export function useUpdateUserPipeline() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useUpdateUserPipelineRelease.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useUpdateUserPipelineRelease.ts index 22d76deb20..0b6caa910f 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useUpdateUserPipelineRelease.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useUpdateUserPipelineRelease.ts @@ -1,14 +1,17 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; + +import type { Nullable } from "../../type"; +import type { + CreateUserPipelinePayload, + PipelineRelease, + PipelineReleasesWatchState, + PipelineReleaseWatchState, +} from "../../vdp-sdk"; import { removeObjKey } from "../../../server"; import { - type CreateUserPipelinePayload, - type PipelineRelease, - type PipelineReleaseWatchState, - type PipelineReleasesWatchState, - watchUserPipelineReleaseQuery, updateUserPipelineReleaseMutation, + watchUserPipelineReleaseQuery, } from "../../vdp-sdk"; -import type { Nullable } from "../../type"; export function useUpdateUserPipelineRelease() { const queryClient = useQueryClient(); diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useUserPipelineRelease.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useUserPipelineRelease.ts index d987434142..441e38aed5 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useUserPipelineRelease.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useUserPipelineRelease.ts @@ -1,6 +1,7 @@ import { useQuery } from "@tanstack/react-query"; -import { getUserPipelineReleaseQuery } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { getUserPipelineReleaseQuery } from "../../vdp-sdk"; export function useUserPipelineRelease({ pipelineReleaseName, diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useUserPipelines.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useUserPipelines.ts index 97128cc5a7..35f561c3f9 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useUserPipelines.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useUserPipelines.ts @@ -1,7 +1,8 @@ import { useQuery } from "@tanstack/react-query"; -import { Visibility, listUserPipelinesQuery } from "../../vdp-sdk"; -import { env } from "../../../server"; + import type { Nullable } from "../../type"; +import { env } from "../../../server"; +import { listUserPipelinesQuery, Visibility } from "../../vdp-sdk"; // This is a public API, we won't block unauth users from accessing this diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useWatchUserPipelineRelease.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useWatchUserPipelineRelease.ts index f086df11e9..4017f6ae3d 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useWatchUserPipelineRelease.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useWatchUserPipelineRelease.ts @@ -1,6 +1,7 @@ import { useQuery } from "@tanstack/react-query"; -import { watchUserPipelineReleaseQuery } from "../../vdp-sdk"; + import type { Nullable } from "../../type"; +import { watchUserPipelineReleaseQuery } from "../../vdp-sdk"; export function useWatchUserPipelineRelease({ pipelineReleaseName, diff --git a/packages/toolkit/src/lib/react-query-service/pipeline/useWatchUserPipelineReleases.ts b/packages/toolkit/src/lib/react-query-service/pipeline/useWatchUserPipelineReleases.ts index 555897a5bd..afc44f21a6 100644 --- a/packages/toolkit/src/lib/react-query-service/pipeline/useWatchUserPipelineReleases.ts +++ b/packages/toolkit/src/lib/react-query-service/pipeline/useWatchUserPipelineReleases.ts @@ -1,9 +1,10 @@ import { useQuery } from "@tanstack/react-query"; + +import type { Nullable } from "../../type"; import { PipelineReleasesWatchState, watchUserPipelineReleaseQuery, } from "../../vdp-sdk"; -import type { Nullable } from "../../type"; export function useWatchUserPipelineReleases({ pipelineReleaseNames, diff --git a/packages/toolkit/src/lib/store/useConfigureModelFormStore.ts b/packages/toolkit/src/lib/store/useConfigureModelFormStore.ts index a04c5073f0..b457b0f99b 100644 --- a/packages/toolkit/src/lib/store/useConfigureModelFormStore.ts +++ b/packages/toolkit/src/lib/store/useConfigureModelFormStore.ts @@ -1,8 +1,9 @@ -import { Nullable } from "../type"; +import produce from "immer"; +import { z } from "zod"; import { create } from "zustand"; import { devtools } from "zustand/middleware"; -import { z } from "zod"; -import produce from "immer"; + +import { Nullable } from "../type"; export const configureModelFormFieldSchema = z.object({ description: z.string().nullable(), diff --git a/packages/toolkit/src/lib/store/useConfigureSourceFormStore.ts b/packages/toolkit/src/lib/store/useConfigureSourceFormStore.ts index 844f0c09da..bcb781ff2e 100644 --- a/packages/toolkit/src/lib/store/useConfigureSourceFormStore.ts +++ b/packages/toolkit/src/lib/store/useConfigureSourceFormStore.ts @@ -1,8 +1,9 @@ -import { Nullable } from "../type"; +import produce from "immer"; import { z } from "zod"; import { create } from "zustand"; import { devtools } from "zustand/middleware"; -import produce from "immer"; + +import { Nullable } from "../type"; export const configureSourceFormFieldSchema = z.object({ canEdit: z.boolean(), diff --git a/packages/toolkit/src/lib/store/useCreateResourceFormStore.ts b/packages/toolkit/src/lib/store/useCreateResourceFormStore.ts index 83b3886675..5b276f6bfc 100644 --- a/packages/toolkit/src/lib/store/useCreateResourceFormStore.ts +++ b/packages/toolkit/src/lib/store/useCreateResourceFormStore.ts @@ -1,10 +1,11 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ +import produce from "immer"; +import { z } from "zod"; import { create } from "zustand"; import { devtools } from "zustand/middleware"; + import { dot } from "../../lib"; -import { z } from "zod"; -import produce from "immer"; // We haven't had a good way to guarantee the correctness of formIsDirty // Right now it just counts on whether the form had been changed from null diff --git a/packages/toolkit/src/lib/test/utils.tsx b/packages/toolkit/src/lib/test/utils.tsx index c8a20c406c..8c583d8ee3 100644 --- a/packages/toolkit/src/lib/test/utils.tsx +++ b/packages/toolkit/src/lib/test/utils.tsx @@ -1,10 +1,11 @@ import * as React from "react"; -import { render, RenderOptions } from "@testing-library/react"; import { QueryCache, QueryClient, QueryClientProvider, } from "@tanstack/react-query"; +import { render, RenderOptions } from "@testing-library/react"; + import { AmplitudeCtx } from "../amplitude"; export const queryCache = new QueryCache(); diff --git a/packages/toolkit/src/lib/tip-tap/extensions.ts b/packages/toolkit/src/lib/tip-tap/extensions.ts index afbc119ea7..a773058153 100644 --- a/packages/toolkit/src/lib/tip-tap/extensions.ts +++ b/packages/toolkit/src/lib/tip-tap/extensions.ts @@ -1,19 +1,19 @@ +import Blockquote from "@tiptap/extension-blockquote"; +import Bold from "@tiptap/extension-bold"; +import BulletList from "@tiptap/extension-bullet-list"; +import Code from "@tiptap/extension-code"; import Document from "@tiptap/extension-document"; +import HardBreak from "@tiptap/extension-hard-break"; import Heading from "@tiptap/extension-heading"; -import Text from "@tiptap/extension-text"; -import Paragraph from "@tiptap/extension-paragraph"; -import BulletList from "@tiptap/extension-bullet-list"; -import ListItem from "@tiptap/extension-list-item"; -import OrderedList from "@tiptap/extension-ordered-list"; -import Strike from "@tiptap/extension-strike"; -import Italic from "@tiptap/extension-italic"; import HorizontalRule from "@tiptap/extension-horizontal-rule"; -import HardBreak from "@tiptap/extension-hard-break"; -import Code from "@tiptap/extension-code"; -import Bold from "@tiptap/extension-bold"; -import Blockquote from "@tiptap/extension-blockquote"; +import Italic from "@tiptap/extension-italic"; import Link from "@tiptap/extension-link"; +import ListItem from "@tiptap/extension-list-item"; +import OrderedList from "@tiptap/extension-ordered-list"; +import Paragraph from "@tiptap/extension-paragraph"; import Placeholder from "@tiptap/extension-placeholder"; +import Strike from "@tiptap/extension-strike"; +import Text from "@tiptap/extension-text"; import { Extensions } from "@tiptap/react"; export const extensions: Extensions = [ diff --git a/packages/toolkit/src/lib/tip-tap/markdown.ts b/packages/toolkit/src/lib/tip-tap/markdown.ts index 4343f1888b..ecfb2f638c 100644 --- a/packages/toolkit/src/lib/tip-tap/markdown.ts +++ b/packages/toolkit/src/lib/tip-tap/markdown.ts @@ -9,27 +9,30 @@ /* eslint-disable no-useless-escape, @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-explicit-any */ -import Paragraph from "@tiptap/extension-paragraph"; +import Blockquote from "@tiptap/extension-blockquote"; +import Bold from "@tiptap/extension-bold"; import BulletList from "@tiptap/extension-bullet-list"; +import Code from "@tiptap/extension-code"; +import HardBreak from "@tiptap/extension-hard-break"; +import HorizontalRule from "@tiptap/extension-horizontal-rule"; +import Italic from "@tiptap/extension-italic"; +import Link from "@tiptap/extension-link"; import ListItem from "@tiptap/extension-list-item"; import OrderedList from "@tiptap/extension-ordered-list"; +import Paragraph from "@tiptap/extension-paragraph"; import Strike from "@tiptap/extension-strike"; -import Italic from "@tiptap/extension-italic"; -import HorizontalRule from "@tiptap/extension-horizontal-rule"; -import HardBreak from "@tiptap/extension-hard-break"; -import Code from "@tiptap/extension-code"; -import Bold from "@tiptap/extension-bold"; -import Blockquote from "@tiptap/extension-blockquote"; -import Link from "@tiptap/extension-link"; - +import MarkdownIt from "markdown-it"; import { defaultMarkdownSerializer, MarkdownSerializerState, MarkdownSerializer as ProseMirrorMarkdownSerializer, } from "prosemirror-markdown"; -import { Mark, Node, Schema } from "prosemirror-model"; -import MarkdownIt from "markdown-it"; -import { DOMParser as ProseMirrorDOMParser } from "prosemirror-model"; +import { + Mark, + Node, + DOMParser as ProseMirrorDOMParser, + Schema, +} from "prosemirror-model"; const tableMap = new WeakMap(); diff --git a/packages/toolkit/src/lib/toastInstillError.ts b/packages/toolkit/src/lib/toastInstillError.ts index be3a3b49bc..85cccf741b 100644 --- a/packages/toolkit/src/lib/toastInstillError.ts +++ b/packages/toolkit/src/lib/toastInstillError.ts @@ -1,5 +1,7 @@ -import { UseToastReturn } from "@instill-ai/design-system"; import { isAxiosError } from "axios"; + +import { UseToastReturn } from "@instill-ai/design-system"; + import { getInstillApiErrorMessage } from "./vdp-sdk"; export function toastInstillError({ diff --git a/packages/toolkit/src/lib/type/general.ts b/packages/toolkit/src/lib/type/general.ts index bc126ad8a0..2369049579 100644 --- a/packages/toolkit/src/lib/type/general.ts +++ b/packages/toolkit/src/lib/type/general.ts @@ -1,8 +1,8 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import * as React from "react"; -import { UseFormReturn } from "react-hook-form"; import { AppRouterInstance } from "next/dist/shared/lib/app-router-context.shared-runtime"; +import { UseFormReturn } from "react-hook-form"; export type Nullable = T | null; diff --git a/packages/toolkit/src/lib/use-controllable-state/useControllableState.tsx b/packages/toolkit/src/lib/use-controllable-state/useControllableState.tsx index 3823668fba..e96f498e34 100644 --- a/packages/toolkit/src/lib/use-controllable-state/useControllableState.tsx +++ b/packages/toolkit/src/lib/use-controllable-state/useControllableState.tsx @@ -5,6 +5,7 @@ */ import * as React from "react"; + import { useCallbackRef } from "../use-callback-ref"; type UseControllableStateParams = { diff --git a/packages/toolkit/src/lib/use-instill-form/components/common/FieldDescriptionTooltip.tsx b/packages/toolkit/src/lib/use-instill-form/components/common/FieldDescriptionTooltip.tsx index d627d34c96..259bcf5829 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/common/FieldDescriptionTooltip.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/common/FieldDescriptionTooltip.tsx @@ -1,6 +1,7 @@ "use client"; import { Icons, ParagraphWithHTML, Tooltip } from "@instill-ai/design-system"; + import { Nullable } from "../../../type"; export const FieldDescriptionTooltip = ({ diff --git a/packages/toolkit/src/lib/use-instill-form/components/common/VideoPreview.tsx b/packages/toolkit/src/lib/use-instill-form/components/common/VideoPreview.tsx index b3c34ffdcb..5ce38c93a8 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/common/VideoPreview.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/common/VideoPreview.tsx @@ -1,7 +1,7 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; export const VideoPreview = ({ src, diff --git a/packages/toolkit/src/lib/use-instill-form/components/component-output/CopyButton.tsx b/packages/toolkit/src/lib/use-instill-form/components/component-output/CopyButton.tsx index 9622db5d46..4aec3a9c24 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/component-output/CopyButton.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/component-output/CopyButton.tsx @@ -1,5 +1,6 @@ import * as React from "react"; import cn from "clsx"; + import { Icons } from "@instill-ai/design-system"; export const CopyButton = ({ diff --git a/packages/toolkit/src/lib/use-instill-form/components/component-output/FieldRoot.tsx b/packages/toolkit/src/lib/use-instill-form/components/component-output/FieldRoot.tsx index cc088a5bb4..a64de254bb 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/component-output/FieldRoot.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/component-output/FieldRoot.tsx @@ -1,7 +1,8 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; + import { Nullable } from "../../../type"; export const FieldRoot = ({ diff --git a/packages/toolkit/src/lib/use-instill-form/components/component-output/MDTextViewer.tsx b/packages/toolkit/src/lib/use-instill-form/components/component-output/MDTextViewer.tsx index 7acdf98906..7c3f422332 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/component-output/MDTextViewer.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/component-output/MDTextViewer.tsx @@ -2,10 +2,12 @@ import * as React from "react"; import cn from "clsx"; +import Markdown from "markdown-to-jsx"; + import { Switch } from "@instill-ai/design-system"; -import { CopyButton } from "./CopyButton"; + import { Nullable } from "../../../type"; -import Markdown from "markdown-to-jsx"; +import { CopyButton } from "./CopyButton"; export const MDTextViewer = ({ text }: { text: Nullable }) => { const [enableFormattedText, setEnableFormattedText] = React.useState(false); diff --git a/packages/toolkit/src/lib/use-instill-form/components/component-output/ObjectField.tsx b/packages/toolkit/src/lib/use-instill-form/components/component-output/ObjectField.tsx index 75b3bb70cc..862781890a 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/component-output/ObjectField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/component-output/ObjectField.tsx @@ -1,11 +1,12 @@ "use client"; import JsonView from "@uiw/react-json-view"; + import { CopyToClipboardButton } from "../../../../components"; +import { customTheme } from "../../../react-json-view"; import { GeneralRecord, Nullable } from "../../../type"; import { ComponentOutputFieldBaseProps } from "../../types"; import { FieldRoot } from "./FieldRoot"; -import { customTheme } from "../../../react-json-view"; import { NoOutput } from "./NoOutput"; export type ObjectFieldProps = { diff --git a/packages/toolkit/src/lib/use-instill-form/components/component-output/ObjectsField.tsx b/packages/toolkit/src/lib/use-instill-form/components/component-output/ObjectsField.tsx index ff0710d188..07f3b5fa16 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/component-output/ObjectsField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/component-output/ObjectsField.tsx @@ -1,11 +1,12 @@ "use client"; import JsonView from "@uiw/react-json-view"; + import { CopyToClipboardButton } from "../../../../components"; +import { customTheme } from "../../../react-json-view"; import { GeneralRecord, Nullable } from "../../../type"; import { ComponentOutputFieldBaseProps } from "../../types"; import { FieldRoot } from "./FieldRoot"; -import { customTheme } from "../../../react-json-view"; import { NoOutput } from "./NoOutput"; export type ObjectsFieldProps = { diff --git a/packages/toolkit/src/lib/use-instill-form/components/regular/BooleanField.tsx b/packages/toolkit/src/lib/use-instill-form/components/regular/BooleanField.tsx index 7ec30572d8..20a08165f0 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/regular/BooleanField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/regular/BooleanField.tsx @@ -1,7 +1,9 @@ "use client"; import cn from "clsx"; + import { Form, Switch } from "@instill-ai/design-system"; + import type { AutoFormFieldBaseProps } from "../../types"; import { FieldDescriptionTooltip } from "../common"; diff --git a/packages/toolkit/src/lib/use-instill-form/components/regular/CollapsibleFormGroup.tsx b/packages/toolkit/src/lib/use-instill-form/components/regular/CollapsibleFormGroup.tsx index 9814323f26..77439fcf36 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/regular/CollapsibleFormGroup.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/regular/CollapsibleFormGroup.tsx @@ -1,5 +1,7 @@ import * as React from "react"; + import { Collapsible, Icons } from "@instill-ai/design-system"; + import { Nullable } from "../../../type"; export const CollapsibleFormGroup = ({ diff --git a/packages/toolkit/src/lib/use-instill-form/components/regular/CredentialTextField.tsx b/packages/toolkit/src/lib/use-instill-form/components/regular/CredentialTextField.tsx index 9cb8f04108..2e511e3c0e 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/regular/CredentialTextField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/regular/CredentialTextField.tsx @@ -1,8 +1,10 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; + import { Form, Input } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps } from "../../types"; import { FieldDescriptionTooltip } from "../common"; diff --git a/packages/toolkit/src/lib/use-instill-form/components/regular/ImageField.tsx b/packages/toolkit/src/lib/use-instill-form/components/regular/ImageField.tsx index 7f8801bdd6..e3993d2cf2 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/regular/ImageField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/regular/ImageField.tsx @@ -1,13 +1,15 @@ "use client"; import * as React from "react"; + import { Form } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps, Nullable } from "../../.."; +import { EmptyImageInputPlaceholder } from "../../../../components"; import { readFileToBinary } from "../../../../view"; +import { FieldDescriptionTooltip } from "../common"; import { FileListItem } from "../trigger-request-form-fields/FileListItem"; import { UploadFileInput } from "../trigger-request-form-fields/UploadFileInput"; -import { FieldDescriptionTooltip } from "../common"; -import { EmptyImageInputPlaceholder } from "../../../../components"; export const ImageField = ({ form, diff --git a/packages/toolkit/src/lib/use-instill-form/components/regular/ImagesField.tsx b/packages/toolkit/src/lib/use-instill-form/components/regular/ImagesField.tsx index 3043f453b0..7ba8f1783d 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/regular/ImagesField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/regular/ImagesField.tsx @@ -1,17 +1,19 @@ "use client"; import * as React from "react"; + import { Form, ScrollArea } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps, - GeneralRecord, fillArrayWithZeros, + GeneralRecord, } from "../../.."; +import { EmptyImageInputPlaceholder } from "../../../../components"; import { readFileToBinary } from "../../../../view"; -import { UploadFileInput } from "../trigger-request-form-fields/UploadFileInput"; -import { FileListItem } from "../trigger-request-form-fields/FileListItem"; import { FieldDescriptionTooltip } from "../common"; -import { EmptyImageInputPlaceholder } from "../../../../components"; +import { FileListItem } from "../trigger-request-form-fields/FileListItem"; +import { UploadFileInput } from "../trigger-request-form-fields/UploadFileInput"; export const ImagesField = ({ form, diff --git a/packages/toolkit/src/lib/use-instill-form/components/regular/OneOfConditionField.tsx b/packages/toolkit/src/lib/use-instill-form/components/regular/OneOfConditionField.tsx index 541945c62e..d6e30974da 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/regular/OneOfConditionField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/regular/OneOfConditionField.tsx @@ -1,10 +1,12 @@ "use client"; +import * as React from "react"; import cn from "clsx"; + import { Form, Select } from "@instill-ai/design-system"; -import * as React from "react"; -import { recursivelyResetFormData } from "../../transform"; + import { Nullable } from "../../../type"; +import { recursivelyResetFormData } from "../../transform"; import { AutoFormFieldBaseProps, InstillFormTree, diff --git a/packages/toolkit/src/lib/use-instill-form/components/regular/SingleSelectField.tsx b/packages/toolkit/src/lib/use-instill-form/components/regular/SingleSelectField.tsx index 246d731edc..e759661f5c 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/regular/SingleSelectField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/regular/SingleSelectField.tsx @@ -2,15 +2,17 @@ import * as React from "react"; import cn from "clsx"; + import { Form, Icons, Select, Tooltip } from "@instill-ai/design-system"; + +import { InstillCredit } from "../../../../constant"; +import { dot } from "../../../dot"; import { AutoFormFieldBaseProps, InstillCredentialMap, InstillFormTree, } from "../../types"; import { FieldDescriptionTooltip } from "../common"; -import { InstillCredit } from "../../../../constant"; -import { dot } from "../../../dot"; export const SingleSelectField = ({ tree, diff --git a/packages/toolkit/src/lib/use-instill-form/components/regular/TextAreaField.tsx b/packages/toolkit/src/lib/use-instill-form/components/regular/TextAreaField.tsx index 275263da92..0335cfe880 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/regular/TextAreaField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/regular/TextAreaField.tsx @@ -1,7 +1,9 @@ "use client"; import cn from "clsx"; + import { Form, Textarea } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps } from "../../types"; import { FieldDescriptionTooltip } from "../common"; diff --git a/packages/toolkit/src/lib/use-instill-form/components/regular/TextField.tsx b/packages/toolkit/src/lib/use-instill-form/components/regular/TextField.tsx index 0797a858b8..faf844a455 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/regular/TextField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/regular/TextField.tsx @@ -1,7 +1,9 @@ "use client"; import cn from "clsx"; + import { Form, Input } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps } from "../../types"; import { FieldDescriptionTooltip } from "../common"; diff --git a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/SmartHintInfoCard.tsx b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/SmartHintInfoCard.tsx index 124a262bc1..bcbc8bc297 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/SmartHintInfoCard.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/SmartHintInfoCard.tsx @@ -1,10 +1,12 @@ +import React from "react"; import cn from "clsx"; import { FieldError } from "react-hook-form"; -import { Nullable } from "../../../type"; + import { Tag } from "@instill-ai/design-system"; -import { SmartHintWarning } from "../../types"; + +import { Nullable } from "../../../type"; import { SmartHint } from "../../../use-smart-hint"; -import React from "react"; +import { SmartHintWarning } from "../../types"; export const SmartHintInfoCard = ({ className, diff --git a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/SmartHintList.tsx b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/SmartHintList.tsx index 0da560047d..1049b21c7b 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/SmartHintList.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/SmartHintList.tsx @@ -1,12 +1,14 @@ import * as React from "react"; import cn from "clsx"; -import { Icons, ScrollArea, Tooltip } from "@instill-ai/design-system"; -import { SmartHint } from "../../../use-smart-hint"; -import { onClickSmartHint } from "./onClickSmartHint"; import { ControllerRenderProps } from "react-hook-form"; + +import { Icons, ScrollArea, Tooltip } from "@instill-ai/design-system"; + +import { InstillCredit } from "../../../../constant"; import { GeneralUseFormReturn, Nullable } from "../../../type"; +import { SmartHint } from "../../../use-smart-hint"; import { transformInstillFormatToHumanReadableFormat } from "../../transform"; -import { InstillCredit } from "../../../../constant"; +import { onClickSmartHint } from "./onClickSmartHint"; export const SmartHintList = ({ form, diff --git a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/TextArea.tsx b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/TextArea.tsx index e728bf0e19..7e68ac689d 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/TextArea.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/TextArea.tsx @@ -1,23 +1,24 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; +import { useFormContext } from "react-hook-form"; + import { Form, Popover, Textarea } from "@instill-ai/design-system"; + +import { InstillCredit } from "../../../../constant"; import { Nullable } from "../../../type"; import { useInstillStore } from "../../../use-instill-store"; - -import { useFormContext } from "react-hook-form"; -import { SmartHintInfoCard } from "./SmartHintInfoCard"; -import { useFilteredHints } from "./useFilteredHints"; +import { Secret } from "../../../vdp-sdk"; +import { AutoFormFieldBaseProps, SmartHintWarning } from "../../types"; +import { FieldDescriptionTooltip } from "../common"; +import { getFieldPlaceholder } from "./getFieldPlaceholder"; import { onInputChange } from "./onInputChange"; import { onInputKeydown } from "./onInputKeydown"; +import { SmartHintInfoCard } from "./SmartHintInfoCard"; import { SmartHintList } from "./SmartHintList"; -import { AutoFormFieldBaseProps, SmartHintWarning } from "../../types"; +import { useFilteredHints } from "./useFilteredHints"; import { useValidateReferenceAndTemplate } from "./useValidateReferenceAndTemplate"; -import { getFieldPlaceholder } from "./getFieldPlaceholder"; -import { FieldDescriptionTooltip } from "../common"; -import { Secret } from "../../../vdp-sdk"; -import { InstillCredit } from "../../../../constant"; export const TextArea = ({ form, diff --git a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/TextField.tsx b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/TextField.tsx index b913f98dda..0ed9057c4e 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/TextField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/TextField.tsx @@ -1,23 +1,24 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; +import { useFormContext } from "react-hook-form"; + import { Form, Input, Popover } from "@instill-ai/design-system"; + +import { InstillCredit } from "../../../../constant"; import { Nullable } from "../../../type"; import { useInstillStore } from "../../../use-instill-store"; - -import { useFormContext } from "react-hook-form"; -import { SmartHintInfoCard } from "./SmartHintInfoCard"; -import { useFilteredHints } from "./useFilteredHints"; +import { Secret } from "../../../vdp-sdk"; +import { AutoFormFieldBaseProps, SmartHintWarning } from "../../types"; +import { FieldDescriptionTooltip } from "../common"; +import { getFieldPlaceholder } from "./getFieldPlaceholder"; import { onInputChange } from "./onInputChange"; import { onInputKeydown } from "./onInputKeydown"; +import { SmartHintInfoCard } from "./SmartHintInfoCard"; import { SmartHintList } from "./SmartHintList"; -import { AutoFormFieldBaseProps, SmartHintWarning } from "../../types"; +import { useFilteredHints } from "./useFilteredHints"; import { useValidateReferenceAndTemplate } from "./useValidateReferenceAndTemplate"; -import { getFieldPlaceholder } from "./getFieldPlaceholder"; -import { FieldDescriptionTooltip } from "../common"; -import { Secret } from "../../../vdp-sdk"; -import { InstillCredit } from "../../../../constant"; export const TextField = ({ form, diff --git a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/onClickSmartHint.tsx b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/onClickSmartHint.tsx index 06aa4cb0d6..4f1f2a60ec 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/onClickSmartHint.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/onClickSmartHint.tsx @@ -1,7 +1,8 @@ import * as React from "react"; import { ControllerRenderProps } from "react-hook-form"; -import { SmartHint } from "../../../use-smart-hint"; + import { GeneralUseFormReturn, Nullable } from "../../../type"; +import { SmartHint } from "../../../use-smart-hint"; export function onClickSmartHint({ path, diff --git a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/onInputChange.tsx b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/onInputChange.tsx index 908e006933..125bf85aeb 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/onInputChange.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/onInputChange.tsx @@ -1,8 +1,9 @@ import * as React from "react"; -import { getReferencesFromString } from "../../../../view"; import { ControllerRenderProps } from "react-hook-form"; -import { GeneralUseFormReturn, Nullable } from "../../../type"; + import { InstillCredit } from "../../../../constant"; +import { getReferencesFromString } from "../../../../view"; +import { GeneralUseFormReturn, Nullable } from "../../../type"; export function onInputChange({ field, diff --git a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/onInputKeydown.tsx b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/onInputKeydown.tsx index fa6439d877..2ef84e0518 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/onInputKeydown.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/onInputKeydown.tsx @@ -1,7 +1,8 @@ import * as React from "react"; -import { SmartHint } from "../../../use-smart-hint"; import { ControllerRenderProps } from "react-hook-form"; + import { GeneralUseFormReturn, Nullable } from "../../../type"; +import { SmartHint } from "../../../use-smart-hint"; export function onInputKeydown({ componentType, diff --git a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/useFilteredHints.tsx b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/useFilteredHints.tsx index e5fec3124f..5776fd34b6 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/useFilteredHints.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/useFilteredHints.tsx @@ -1,12 +1,12 @@ +import * as React from "react"; + +import { InstillCredit } from "../../../../constant"; import { Nullable } from "../../../type"; import { - SmartHint, pickSmartHintsFromAcceptFormats, + SmartHint, } from "../../../use-smart-hint"; - -import * as React from "react"; import { Secret } from "../../../vdp-sdk"; -import { InstillCredit } from "../../../../constant"; export function useFilteredHints({ smartHints, diff --git a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/useValidateReferenceAndTemplate.tsx b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/useValidateReferenceAndTemplate.tsx index 5dc909da39..9f784da7e5 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/smart-hint/useValidateReferenceAndTemplate.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/smart-hint/useValidateReferenceAndTemplate.tsx @@ -1,7 +1,7 @@ import * as React from "react"; -import { Nullable } from "../../../type"; import { getReferencesFromString } from "../../../../view"; +import { Nullable } from "../../../type"; import { SmartHint } from "../../../use-smart-hint"; import { SmartHintWarning } from "../../types"; diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/AudioField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/AudioField.tsx index 02f26a030c..cdb2c9e814 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/AudioField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/AudioField.tsx @@ -1,13 +1,15 @@ "use client"; import * as React from "react"; + import { Form } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps, Nullable } from "../../.."; import { readFileToBinary } from "../../../../view"; +import { StartOperatorFreeFormFieldBaseProps } from "../../types"; +import { AudioListItem } from "./AudioListItem"; import { FieldHead } from "./FieldHead"; import { UploadFileInput } from "./UploadFileInput"; -import { AudioListItem } from "./AudioListItem"; -import { StartOperatorFreeFormFieldBaseProps } from "../../types"; export const AudioField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/AudioListItem.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/AudioListItem.tsx index f4aa15ec94..18ba6906fc 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/AudioListItem.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/AudioListItem.tsx @@ -2,7 +2,9 @@ import * as React from "react"; import * as Progress from "@radix-ui/react-progress"; + import { Icons } from "@instill-ai/design-system"; + import { Nullable } from "../../../type"; export const AudioListItem = ({ diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/AudiosField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/AudiosField.tsx index 91fe1a8225..1f8ebe7d59 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/AudiosField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/AudiosField.tsx @@ -2,13 +2,15 @@ import * as React from "react"; import cn from "clsx"; + import { Form, ScrollArea } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps } from "../../.."; import { readFileToBinary } from "../../../../view"; +import { StartOperatorFreeFormFieldBaseProps } from "../../types"; +import { AudioListItem } from "./AudioListItem"; import { FieldHead } from "./FieldHead"; import { UploadFileInput } from "./UploadFileInput"; -import { AudioListItem } from "./AudioListItem"; -import { StartOperatorFreeFormFieldBaseProps } from "../../types"; export const AudiosField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/BooleanField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/BooleanField.tsx index 0f56a434ba..ea36850e83 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/BooleanField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/BooleanField.tsx @@ -1,9 +1,12 @@ "use client"; import { Form, Switch } from "@instill-ai/design-system"; -import { AutoFormFieldBaseProps } from "../../types"; + +import { + AutoFormFieldBaseProps, + StartOperatorFreeFormFieldBaseProps, +} from "../../types"; import { FieldHead } from "./FieldHead"; -import { StartOperatorFreeFormFieldBaseProps } from "../../types"; export const BooleanField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/FieldHead.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/FieldHead.tsx index 07d83ef242..d3c8a9baa3 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/FieldHead.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/FieldHead.tsx @@ -2,8 +2,10 @@ import * as React from "react"; import { useShallow } from "zustand/react/shallow"; -import { FieldMode, InstillStore, Nullable, useInstillStore } from "../../.."; + import { Icons, Tag, Tooltip } from "@instill-ai/design-system"; + +import { FieldMode, InstillStore, Nullable, useInstillStore } from "../../.."; import { ReferenceHintTag } from "../../../../components"; import { transformInstillFormatToHumanReadableFormat } from "../../transform"; diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/FileField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/FileField.tsx index 12cbd8a12d..1ba167b43a 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/FileField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/FileField.tsx @@ -1,13 +1,15 @@ "use client"; import * as React from "react"; + import { Form } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps, Nullable } from "../../.."; import { readFileToBinary } from "../../../../view"; +import { StartOperatorFreeFormFieldBaseProps } from "../../types"; import { FieldHead } from "./FieldHead"; import { FileListItem } from "./FileListItem"; import { UploadFileInput } from "./UploadFileInput"; -import { StartOperatorFreeFormFieldBaseProps } from "../../types"; export const FileField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/FilesField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/FilesField.tsx index f31b01d979..6398d6960a 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/FilesField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/FilesField.tsx @@ -2,13 +2,15 @@ import * as React from "react"; import cn from "clsx"; + import { Form, ScrollArea } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps } from "../../.."; import { readFileToBinary } from "../../../../view"; +import { StartOperatorFreeFormFieldBaseProps } from "../../types"; import { FieldHead } from "./FieldHead"; import { FileListItem } from "./FileListItem"; import { UploadFileInput } from "./UploadFileInput"; -import { StartOperatorFreeFormFieldBaseProps } from "../../types"; export const FilesField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/ImageField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/ImageField.tsx index 2b33feb598..e6d41b7d90 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/ImageField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/ImageField.tsx @@ -2,13 +2,15 @@ import * as React from "react"; import cn from "clsx"; + import { Form } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps, Nullable } from "../../.."; import { readFileToBinary } from "../../../../view"; +import { StartOperatorFreeFormFieldBaseProps } from "../../types"; import { FieldHead } from "./FieldHead"; import { FileListItem } from "./FileListItem"; import { UploadFileInput } from "./UploadFileInput"; -import { StartOperatorFreeFormFieldBaseProps } from "../../types"; export const ImageField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/ImagesField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/ImagesField.tsx index ef035326df..035361151c 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/ImagesField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/ImagesField.tsx @@ -2,13 +2,15 @@ import * as React from "react"; import cn from "clsx"; + import { Form, ScrollArea } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps, fillArrayWithZeros } from "../../.."; import { readFileToBinary } from "../../../../view"; +import { StartOperatorFreeFormFieldBaseProps } from "../../types"; import { FieldHead } from "./FieldHead"; import { FileListItem } from "./FileListItem"; import { UploadFileInput } from "./UploadFileInput"; -import { StartOperatorFreeFormFieldBaseProps } from "../../types"; export const ImagesField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/LongTextField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/LongTextField.tsx index 1354e9399e..e03498a777 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/LongTextField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/LongTextField.tsx @@ -1,13 +1,17 @@ "use client"; import * as React from "react"; -import { useEditor, EditorContent } from "@tiptap/react"; -import { AutoFormFieldBaseProps } from "../../types"; +import { EditorContent, useEditor } from "@tiptap/react"; + import { Form } from "@instill-ai/design-system"; -import { FieldHead } from "./FieldHead"; -import { Nullable } from "../../../type"; + import { extensions, serialize } from "../../../tip-tap"; -import { StartOperatorFreeFormFieldBaseProps } from "../../types"; +import { Nullable } from "../../../type"; +import { + AutoFormFieldBaseProps, + StartOperatorFreeFormFieldBaseProps, +} from "../../types"; +import { FieldHead } from "./FieldHead"; export const LongTextField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/NumberField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/NumberField.tsx index 0707c18116..006c2c698a 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/NumberField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/NumberField.tsx @@ -1,9 +1,10 @@ "use client"; import { Form, Input } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps } from "../../.."; -import { FieldHead } from "./FieldHead"; import { StartOperatorFreeFormFieldBaseProps } from "../../types"; +import { FieldHead } from "./FieldHead"; export const NumberField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/NumbersField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/NumbersField.tsx index 3fce4550b0..6315d6ec93 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/NumbersField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/NumbersField.tsx @@ -1,10 +1,12 @@ "use client"; -import { Form, Icons, Input } from "@instill-ai/design-system"; import * as React from "react"; + +import { Form, Icons, Input } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps } from "../../.."; -import { FieldHead } from "./FieldHead"; import { StartOperatorFreeFormFieldBaseProps } from "../../types"; +import { FieldHead } from "./FieldHead"; export const NumbersField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/ObjectField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/ObjectField.tsx index af55761148..b9fdec24aa 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/ObjectField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/ObjectField.tsx @@ -1,9 +1,10 @@ "use client"; import { Form, Textarea } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps } from "../../.."; -import { FieldHead } from "./FieldHead"; import { StartOperatorFreeFormFieldBaseProps } from "../../types"; +import { FieldHead } from "./FieldHead"; export const ObjectField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/TextField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/TextField.tsx index a8025ede7e..e69f32b1ea 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/TextField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/TextField.tsx @@ -1,9 +1,10 @@ "use client"; import { Form, Input } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps } from "../../.."; -import { FieldHead } from "./FieldHead"; import { StartOperatorFreeFormFieldBaseProps } from "../../types"; +import { FieldHead } from "./FieldHead"; export const TextField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/TextareaField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/TextareaField.tsx index 25dc98563e..7456341646 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/TextareaField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/TextareaField.tsx @@ -1,9 +1,10 @@ "use client"; import { Form, Textarea } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps } from "../../.."; -import { FieldHead } from "./FieldHead"; import { StartOperatorFreeFormFieldBaseProps } from "../../types"; +import { FieldHead } from "./FieldHead"; export const TextareaField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/TextsField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/TextsField.tsx index 90230bf0ff..fa4ae74f33 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/TextsField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/TextsField.tsx @@ -1,10 +1,12 @@ "use client"; -import { Form, Icons, Input } from "@instill-ai/design-system"; import * as React from "react"; + +import { Form, Icons, Input } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps } from "../../.."; -import { FieldHead } from "./FieldHead"; import { StartOperatorFreeFormFieldBaseProps } from "../../types"; +import { FieldHead } from "./FieldHead"; export const TextsField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/UploadFileInput.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/UploadFileInput.tsx index 881ee69601..db447aa3f9 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/UploadFileInput.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/UploadFileInput.tsx @@ -2,6 +2,7 @@ import * as React from "react"; import cn from "clsx"; + import { Input } from "@instill-ai/design-system"; export const UploadFileInput = React.forwardRef< diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/VideoField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/VideoField.tsx index dcfa73ab92..4fd362f966 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/VideoField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/VideoField.tsx @@ -2,14 +2,16 @@ import * as React from "react"; import cn from "clsx"; + import { Form } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps, Nullable } from "../../.."; import { readFileToBinary } from "../../../../view"; +import { StartOperatorFreeFormFieldBaseProps } from "../../types"; +import { VideoPreview } from "../common"; import { FieldHead } from "./FieldHead"; import { FileListItem } from "./FileListItem"; import { UploadFileInput } from "./UploadFileInput"; -import { StartOperatorFreeFormFieldBaseProps } from "../../types"; -import { VideoPreview } from "../common"; export const VideoField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/VideosField.tsx b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/VideosField.tsx index d4b2c568bd..b6dfa53168 100644 --- a/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/VideosField.tsx +++ b/packages/toolkit/src/lib/use-instill-form/components/trigger-request-form-fields/VideosField.tsx @@ -2,14 +2,16 @@ import * as React from "react"; import cn from "clsx"; + import { Form, ScrollArea } from "@instill-ai/design-system"; + import { AutoFormFieldBaseProps, fillArrayWithZeros } from "../../.."; import { readFileToBinary } from "../../../../view"; +import { StartOperatorFreeFormFieldBaseProps } from "../../types"; +import { VideoPreview } from "../common"; import { FieldHead } from "./FieldHead"; import { FileListItem } from "./FileListItem"; import { UploadFileInput } from "./UploadFileInput"; -import { StartOperatorFreeFormFieldBaseProps } from "../../types"; -import { VideoPreview } from "../common"; export const VideosField = ({ mode, diff --git a/packages/toolkit/src/lib/use-instill-form/pick/pickComponentOutputFieldsFromInstillFormTree.tsx b/packages/toolkit/src/lib/use-instill-form/pick/pickComponentOutputFieldsFromInstillFormTree.tsx index e36a483c46..5c36749670 100644 --- a/packages/toolkit/src/lib/use-instill-form/pick/pickComponentOutputFieldsFromInstillFormTree.tsx +++ b/packages/toolkit/src/lib/use-instill-form/pick/pickComponentOutputFieldsFromInstillFormTree.tsx @@ -1,8 +1,9 @@ import * as React from "react"; -import { ChooseTitleFrom, FieldMode, InstillFormTree } from "../types"; -import { ComponentOutputFields } from "../components"; -import { GeneralRecord, Nullable } from "../../type"; + import { dot } from "../../dot"; +import { GeneralRecord, Nullable } from "../../type"; +import { ComponentOutputFields } from "../components"; +import { ChooseTitleFrom, FieldMode, InstillFormTree } from "../types"; export type PickComponentOutputFieldsFromInstillFormTreeProps = { tree: InstillFormTree; diff --git a/packages/toolkit/src/lib/use-instill-form/pick/pickPipelineTriggerRequestFormFields.tsx b/packages/toolkit/src/lib/use-instill-form/pick/pickPipelineTriggerRequestFormFields.tsx index 3d391d2d2c..6a95a78a6c 100644 --- a/packages/toolkit/src/lib/use-instill-form/pick/pickPipelineTriggerRequestFormFields.tsx +++ b/packages/toolkit/src/lib/use-instill-form/pick/pickPipelineTriggerRequestFormFields.tsx @@ -1,8 +1,9 @@ import { UseFormReturn } from "react-hook-form"; + import { Nullable } from "../../type"; +import { PipelineVariableFieldMap } from "../../vdp-sdk"; import { TriggerRequestFormFields } from "../components"; import { FieldMode, StartOperatorFreeFormFieldItem } from "../types"; -import { PipelineVariableFieldMap } from "../../vdp-sdk"; export type PickPipelineTriggerRequestFormFieldsProps = { mode: FieldMode; diff --git a/packages/toolkit/src/lib/use-instill-form/pick/pickRegularFieldsFromInstillFormTree.tsx b/packages/toolkit/src/lib/use-instill-form/pick/pickRegularFieldsFromInstillFormTree.tsx index beb421fe57..cd8abdc3d8 100644 --- a/packages/toolkit/src/lib/use-instill-form/pick/pickRegularFieldsFromInstillFormTree.tsx +++ b/packages/toolkit/src/lib/use-instill-form/pick/pickRegularFieldsFromInstillFormTree.tsx @@ -1,15 +1,16 @@ -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; + +import { GeneralUseFormReturn, Nullable } from "../../type"; +import { Secret } from "../../vdp-sdk"; +import { RegularFields } from "../components"; +import { SmartHintFields } from "../components/smart-hint"; import { ChooseTitleFrom, InstillFormTree, SelectedConditionMap, } from "../types"; -import { RegularFields } from "../components"; -import { GeneralUseFormReturn, Nullable } from "../../type"; -import { SmartHintFields } from "../components/smart-hint"; import { pickDefaultCondition } from "./pickDefaultCondition"; -import { Secret } from "../../vdp-sdk"; export type PickRegularFieldsFromInstillFormTreeOptions = { disabledAll?: boolean; diff --git a/packages/toolkit/src/lib/use-instill-form/pick/pickSelectedConditionMap.test.ts b/packages/toolkit/src/lib/use-instill-form/pick/pickSelectedConditionMap.test.ts index f2b3ee8d7e..6ff7c19e70 100644 --- a/packages/toolkit/src/lib/use-instill-form/pick/pickSelectedConditionMap.test.ts +++ b/packages/toolkit/src/lib/use-instill-form/pick/pickSelectedConditionMap.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { InstillFormTree } from "../types"; import { pickSelectedConditionMap } from "./pickSelectedConditionMap"; diff --git a/packages/toolkit/src/lib/use-instill-form/transform/recursivelyResetFormData.test.ts b/packages/toolkit/src/lib/use-instill-form/transform/recursivelyResetFormData.test.ts index da665e57cc..34600dbe80 100644 --- a/packages/toolkit/src/lib/use-instill-form/transform/recursivelyResetFormData.test.ts +++ b/packages/toolkit/src/lib/use-instill-form/transform/recursivelyResetFormData.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { InstillFormTree } from "../types"; import { recursivelyResetFormData } from "./recursivelyResetFormData"; diff --git a/packages/toolkit/src/lib/use-instill-form/transform/transformInstillFormTreeToDefaultValue.test.ts b/packages/toolkit/src/lib/use-instill-form/transform/transformInstillFormTreeToDefaultValue.test.ts index d715abfa3a..4ff6fdc9a2 100644 --- a/packages/toolkit/src/lib/use-instill-form/transform/transformInstillFormTreeToDefaultValue.test.ts +++ b/packages/toolkit/src/lib/use-instill-form/transform/transformInstillFormTreeToDefaultValue.test.ts @@ -1,5 +1,6 @@ +import { expect, test } from "vitest"; + import { InstillFormTree } from "../types"; -import { test, expect } from "vitest"; import { transformInstillFormTreeToDefaultValue } from "./transformInstillFormTreeToDefaultValue"; test("should transform formItem with example", () => { diff --git a/packages/toolkit/src/lib/use-instill-form/transform/transformInstillFormTreeToInitialSelectedCondition.test.ts b/packages/toolkit/src/lib/use-instill-form/transform/transformInstillFormTreeToInitialSelectedCondition.test.ts index eb4cef2a9e..649518e082 100644 --- a/packages/toolkit/src/lib/use-instill-form/transform/transformInstillFormTreeToInitialSelectedCondition.test.ts +++ b/packages/toolkit/src/lib/use-instill-form/transform/transformInstillFormTreeToInitialSelectedCondition.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { InstillFormTree } from "../types"; import { transformInstillFormTreeToInitialSelectedCondition } from "./transformInstillFormTreeToInitialSelectedCondition"; diff --git a/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToFormTree.test.ts b/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToFormTree.test.ts index 4fa4585059..7a65d4aae1 100644 --- a/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToFormTree.test.ts +++ b/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToFormTree.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { transformInstillJSONSchemaToFormTree } from "."; import { InstillFormTree, InstillJSONSchema } from "../types"; diff --git a/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToFormTree.ts b/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToFormTree.ts index 089deac0c2..885c5c8072 100644 --- a/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToFormTree.ts +++ b/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToFormTree.ts @@ -1,12 +1,13 @@ import { JSONSchema7TypeName } from "json-schema"; + import { Nullable } from "../../type"; import { pickConstInfoFromOneOfCondition } from "../pick"; import { + CheckIsHidden, + InstillFormGroupItem, InstillFormTree, InstillJSONSchema, InstillJSONSchemaDefinition, - CheckIsHidden, - InstillFormGroupItem, } from "../types"; export type TransformInstillJSONSchemaToFormTreeOptions = { diff --git a/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToZod.test.ts b/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToZod.test.ts index dda5a6cd13..f02a243135 100644 --- a/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToZod.test.ts +++ b/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToZod.test.ts @@ -1,6 +1,7 @@ -import { test, expect } from "vitest"; -import { InstillJSONSchema } from "../types"; +import { expect, test } from "vitest"; + import { transformInstillJSONSchemaToZod } from "."; +import { InstillJSONSchema } from "../types"; test("should transform basic json schema to zod schema", () => { const schema: InstillJSONSchema = { diff --git a/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToZod.ts b/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToZod.ts index cb79c16fc7..874c55f08a 100644 --- a/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToZod.ts +++ b/packages/toolkit/src/lib/use-instill-form/transform/transformInstillJSONSchemaToZod.ts @@ -1,12 +1,13 @@ import * as z from "zod"; + +import { getReferencesFromString } from "../../../view"; +import { pickConstInfoFromOneOfCondition } from "../pick"; import { CheckIsHidden, InstillJSONSchema, - SelectedConditionMap, instillZodSchema, + SelectedConditionMap, } from "../types"; -import { pickConstInfoFromOneOfCondition } from "../pick"; -import { getReferencesFromString } from "../../../view"; export function transformInstillJSONSchemaToZod({ parentSchema, diff --git a/packages/toolkit/src/lib/use-instill-form/transform/transformPipelineTriggerRequestFieldsToZod.ts b/packages/toolkit/src/lib/use-instill-form/transform/transformPipelineTriggerRequestFieldsToZod.ts index 3a919f411e..8b6ed4095c 100644 --- a/packages/toolkit/src/lib/use-instill-form/transform/transformPipelineTriggerRequestFieldsToZod.ts +++ b/packages/toolkit/src/lib/use-instill-form/transform/transformPipelineTriggerRequestFieldsToZod.ts @@ -1,6 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import * as z from "zod"; + import { Nullable } from "../../type"; import { PipelineVariableFieldMap } from "../../vdp-sdk"; diff --git a/packages/toolkit/src/lib/use-instill-form/types.ts b/packages/toolkit/src/lib/use-instill-form/types.ts index 4f26a43719..9d49789d9c 100644 --- a/packages/toolkit/src/lib/use-instill-form/types.ts +++ b/packages/toolkit/src/lib/use-instill-form/types.ts @@ -1,11 +1,12 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -import * as z from "zod"; import { JSONSchema7, JSONSchema7Definition, JSONSchema7TypeName, } from "json-schema"; +import * as z from "zod"; + import { GeneralUseFormReturn, Nullable } from "../type"; export type InstillCustomProps = { diff --git a/packages/toolkit/src/lib/use-instill-form/useComponentOutputFields.tsx b/packages/toolkit/src/lib/use-instill-form/useComponentOutputFields.tsx index 38ca64ca60..b68d2162a0 100644 --- a/packages/toolkit/src/lib/use-instill-form/useComponentOutputFields.tsx +++ b/packages/toolkit/src/lib/use-instill-form/useComponentOutputFields.tsx @@ -1,11 +1,12 @@ import * as React from "react"; + +import { GeneralRecord, Nullable } from "../type"; import { - PickComponentOutputFieldsFromInstillFormTreeProps, pickComponentOutputFieldsFromInstillFormTree, + PickComponentOutputFieldsFromInstillFormTreeProps, } from "./pick"; -import { InstillJSONSchema } from "./types"; -import { GeneralRecord, Nullable } from "../type"; import { transformInstillJSONSchemaToFormTree } from "./transform"; +import { InstillJSONSchema } from "./types"; export type UseComponentOutputFieldsProps = { schema: Nullable; diff --git a/packages/toolkit/src/lib/use-instill-form/useInstillForm.test.tsx b/packages/toolkit/src/lib/use-instill-form/useInstillForm.test.tsx index 224d70b025..4ca76f4813 100644 --- a/packages/toolkit/src/lib/use-instill-form/useInstillForm.test.tsx +++ b/packages/toolkit/src/lib/use-instill-form/useInstillForm.test.tsx @@ -1,6 +1,9 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -import { test, expect, vi } from "vitest"; +import { expect, test, vi } from "vitest"; + +import { Form } from "@instill-ai/design-system"; + import { getEscapedReferenceValueForReactTestingLibrary, render, @@ -8,9 +11,8 @@ import { userEvent, within, } from "../test/utils"; -import { useInstillForm } from "./useInstillForm"; import { InstillJSONSchema } from "./types"; -import { Form } from "@instill-ai/design-system"; +import { useInstillForm } from "./useInstillForm"; const SimpleFormSchema: InstillJSONSchema = { title: "Simple Form JSON", diff --git a/packages/toolkit/src/lib/use-instill-form/useInstillForm.tsx b/packages/toolkit/src/lib/use-instill-form/useInstillForm.tsx index 5e8cd180e3..6d6ad77445 100644 --- a/packages/toolkit/src/lib/use-instill-form/useInstillForm.tsx +++ b/packages/toolkit/src/lib/use-instill-form/useInstillForm.tsx @@ -1,20 +1,21 @@ import * as React from "react"; +import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm } from "react-hook-form"; import * as z from "zod"; -import { CheckIsHidden, InstillFormTree, InstillJSONSchema } from "./types"; + +import { GeneralRecord, Nullable } from "../type"; import { + pickRegularFieldsFromInstillFormTree, + PickRegularFieldsFromInstillFormTreeOptions, +} from "./pick"; +import { + transformInstillFormTreeToDefaultValue, + transformInstillFormTreeToInitialSelectedCondition, transformInstillJSONSchemaToFormTree, transformInstillJSONSchemaToZod, - transformInstillFormTreeToInitialSelectedCondition, - transformInstillFormTreeToDefaultValue, } from "./transform"; -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; -import { - PickRegularFieldsFromInstillFormTreeOptions, - pickRegularFieldsFromInstillFormTree, -} from "./pick"; +import { CheckIsHidden, InstillFormTree, InstillJSONSchema } from "./types"; import { useInstillSelectedConditionMap } from "./useInstillSelectedConditionMap"; -import { GeneralRecord, Nullable } from "../type"; export type UseInstillFormOptions = { checkIsHidden?: CheckIsHidden; diff --git a/packages/toolkit/src/lib/use-instill-form/useInstillSelectedConditionMap.tsx b/packages/toolkit/src/lib/use-instill-form/useInstillSelectedConditionMap.tsx index d9bc984fae..958c18d9e8 100644 --- a/packages/toolkit/src/lib/use-instill-form/useInstillSelectedConditionMap.tsx +++ b/packages/toolkit/src/lib/use-instill-form/useInstillSelectedConditionMap.tsx @@ -1,8 +1,8 @@ import * as React from "react"; -import { InstillFormTree, SelectedConditionMap } from "./types"; -import { pickSelectedConditionMap } from "./pick"; import { GeneralRecord, Nullable, UseCustomHookResult } from "../type"; +import { pickSelectedConditionMap } from "./pick"; +import { InstillFormTree, SelectedConditionMap } from "./types"; export type UseInstillSelectedConditionMapResult = UseCustomHookResult< Nullable diff --git a/packages/toolkit/src/lib/use-instill-form/usePipelineTriggerRequestForm.tsx b/packages/toolkit/src/lib/use-instill-form/usePipelineTriggerRequestForm.tsx index b08b5f06e5..12e92633f5 100644 --- a/packages/toolkit/src/lib/use-instill-form/usePipelineTriggerRequestForm.tsx +++ b/packages/toolkit/src/lib/use-instill-form/usePipelineTriggerRequestForm.tsx @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -import * as z from "zod"; import * as React from "react"; - import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; +import * as z from "zod"; + import { - PickPipelineTriggerRequestFormFieldsProps, pickPipelineTriggerRequestFormFields, + PickPipelineTriggerRequestFormFieldsProps, } from "./pick"; import { transformPipelineTriggerRequestFieldsToSuperRefineRules, diff --git a/packages/toolkit/src/lib/use-instill-store/generalSlice.ts b/packages/toolkit/src/lib/use-instill-store/generalSlice.ts index 61f709834e..3ee0f20b8a 100644 --- a/packages/toolkit/src/lib/use-instill-store/generalSlice.ts +++ b/packages/toolkit/src/lib/use-instill-store/generalSlice.ts @@ -1,7 +1,8 @@ import { StateCreator } from "zustand"; -import { GeneralSlice, InstillStore, InstillStoreMutators } from "./types"; + import { Nullable } from "../type"; import { Secret } from "../vdp-sdk"; +import { GeneralSlice, InstillStore, InstillStoreMutators } from "./types"; export const createGeneralSlice: StateCreator< InstillStore, diff --git a/packages/toolkit/src/lib/use-instill-store/pipelineBuilderSlice.ts b/packages/toolkit/src/lib/use-instill-store/pipelineBuilderSlice.ts index eb09d24bb8..fa47dd9c68 100644 --- a/packages/toolkit/src/lib/use-instill-store/pipelineBuilderSlice.ts +++ b/packages/toolkit/src/lib/use-instill-store/pipelineBuilderSlice.ts @@ -1,18 +1,19 @@ import { + addEdge, + applyEdgeChanges, + applyNodeChanges, Connection, Edge, EdgeChange, Node, NodeChange, - addEdge, - applyEdgeChanges, - applyNodeChanges, } from "reactflow"; -import { Nullable } from "../type"; +import { StateCreator } from "zustand"; import { NodeData } from "../../view"; +import { Nullable } from "../type"; +import { InstillJSONSchema } from "../use-instill-form"; import { TriggerUserPipelineResponse } from "../vdp-sdk/pipeline"; -import { StateCreator } from "zustand"; import { InstillStore, InstillStoreMutators, @@ -20,7 +21,6 @@ import { PipelineBuilderState, WarnUnsavedChangesDialogState, } from "./types"; -import { InstillJSONSchema } from "../use-instill-form"; export const pipelineBuilderInitialState: PipelineBuilderState = { pipelineId: null, diff --git a/packages/toolkit/src/lib/use-instill-store/recentlyUsedSlice.ts b/packages/toolkit/src/lib/use-instill-store/recentlyUsedSlice.ts index 6969405514..87c81077e8 100644 --- a/packages/toolkit/src/lib/use-instill-store/recentlyUsedSlice.ts +++ b/packages/toolkit/src/lib/use-instill-store/recentlyUsedSlice.ts @@ -1,4 +1,5 @@ import { StateCreator } from "zustand"; + import { InstillStore, InstillStoreMutators, RecentlyUsedSlice } from "./types"; export const createRecentlyUsedSlice: StateCreator< diff --git a/packages/toolkit/src/lib/use-instill-store/smartHintSlice.ts b/packages/toolkit/src/lib/use-instill-store/smartHintSlice.ts index e87bd61e8b..fbb891ec4f 100644 --- a/packages/toolkit/src/lib/use-instill-store/smartHintSlice.ts +++ b/packages/toolkit/src/lib/use-instill-store/smartHintSlice.ts @@ -1,6 +1,7 @@ import { StateCreator } from "zustand"; -import { InstillStore, InstillStoreMutators, SmartHintSlice } from "./types"; + import { SmartHint } from "../use-smart-hint"; +import { InstillStore, InstillStoreMutators, SmartHintSlice } from "./types"; export const createSmartHintSlice: StateCreator< InstillStore, diff --git a/packages/toolkit/src/lib/use-instill-store/types.ts b/packages/toolkit/src/lib/use-instill-store/types.ts index 1cb5e34e03..17d7576449 100644 --- a/packages/toolkit/src/lib/use-instill-store/types.ts +++ b/packages/toolkit/src/lib/use-instill-store/types.ts @@ -1,9 +1,10 @@ +import { Edge, Node, OnConnect, OnEdgesChange, OnNodesChange } from "reactflow"; + import { NodeData } from "../../view"; import { Nullable } from "../type"; -import { Edge, Node, OnConnect, OnEdgesChange, OnNodesChange } from "reactflow"; -import { Secret, TriggerUserPipelineResponse } from "../vdp-sdk/pipeline"; -import { SmartHint } from "../use-smart-hint"; import { InstillJSONSchema } from "../use-instill-form"; +import { SmartHint } from "../use-smart-hint"; +import { Secret, TriggerUserPipelineResponse } from "../vdp-sdk/pipeline"; export type WarnUnsavedChangesDialogState = { open: boolean; diff --git a/packages/toolkit/src/lib/use-instill-store/useInstillStore.ts b/packages/toolkit/src/lib/use-instill-store/useInstillStore.ts index bc7ac52cc6..479be370e2 100644 --- a/packages/toolkit/src/lib/use-instill-store/useInstillStore.ts +++ b/packages/toolkit/src/lib/use-instill-store/useInstillStore.ts @@ -1,10 +1,11 @@ import { create } from "zustand"; -import { InstillStore } from "./types"; -import { createSmartHintSlice } from "./smartHintSlice"; -import { createPipelineBuilderSlice } from "./pipelineBuilderSlice"; +import { devtools, subscribeWithSelector } from "zustand/middleware"; + import { createGeneralSlice } from "./generalSlice"; +import { createPipelineBuilderSlice } from "./pipelineBuilderSlice"; import { createRecentlyUsedSlice } from "./recentlyUsedSlice"; -import { devtools, subscribeWithSelector } from "zustand/middleware"; +import { createSmartHintSlice } from "./smartHintSlice"; +import { InstillStore } from "./types"; export const useInstillStore = create()( subscribeWithSelector( diff --git a/packages/toolkit/src/lib/use-smart-hint/output-reference-hint/fields/GroupByFormatField.tsx b/packages/toolkit/src/lib/use-smart-hint/output-reference-hint/fields/GroupByFormatField.tsx index dc46fffa13..bcabc01e6c 100644 --- a/packages/toolkit/src/lib/use-smart-hint/output-reference-hint/fields/GroupByFormatField.tsx +++ b/packages/toolkit/src/lib/use-smart-hint/output-reference-hint/fields/GroupByFormatField.tsx @@ -1,9 +1,10 @@ "use client"; import * as React from "react"; + +import { SmartHint } from "../.."; import { ReferenceHintTag } from "../../../../components"; import { transformInstillFormatToHumanReadableFormat } from "../../../use-instill-form/transform"; -import { SmartHint } from "../.."; export const GroupByFormatField = ({ hints, diff --git a/packages/toolkit/src/lib/use-smart-hint/output-reference-hint/fields/ListField.tsx b/packages/toolkit/src/lib/use-smart-hint/output-reference-hint/fields/ListField.tsx index 6b141840e9..bff88f6150 100644 --- a/packages/toolkit/src/lib/use-smart-hint/output-reference-hint/fields/ListField.tsx +++ b/packages/toolkit/src/lib/use-smart-hint/output-reference-hint/fields/ListField.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ReferenceHintTag } from "../../../../components"; import { transformInstillFormatToHumanReadableFormat } from "../../../use-instill-form/transform"; diff --git a/packages/toolkit/src/lib/use-smart-hint/output-reference-hint/useOutputReferenceHintsFields.tsx b/packages/toolkit/src/lib/use-smart-hint/output-reference-hint/useOutputReferenceHintsFields.tsx index ee47308c61..e0672fd215 100644 --- a/packages/toolkit/src/lib/use-smart-hint/output-reference-hint/useOutputReferenceHintsFields.tsx +++ b/packages/toolkit/src/lib/use-smart-hint/output-reference-hint/useOutputReferenceHintsFields.tsx @@ -1,10 +1,9 @@ import * as React from "react"; import { Nullable } from "../../type"; - import { PipelineComponent } from "../../vdp-sdk"; -import { pickOutputReferenceHintsFromComponent } from "./pickOutputReferenceHintsFromComponent"; import { pickFieldsFromOutputReferenceHints } from "./pickFieldsFromOutputReferenceHints"; +import { pickOutputReferenceHintsFromComponent } from "./pickOutputReferenceHintsFromComponent"; export function useOutputReferenceHintFields({ componentID, diff --git a/packages/toolkit/src/lib/use-smart-hint/pickSmartHintsFromAcceptFormats.test.ts b/packages/toolkit/src/lib/use-smart-hint/pickSmartHintsFromAcceptFormats.test.ts index b8ff63b5a7..c288b393fd 100644 --- a/packages/toolkit/src/lib/use-smart-hint/pickSmartHintsFromAcceptFormats.test.ts +++ b/packages/toolkit/src/lib/use-smart-hint/pickSmartHintsFromAcceptFormats.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { pickSmartHintsFromAcceptFormats } from "./pickSmartHintsFromAcceptFormats"; test("should pick hints when accept format is *", () => { diff --git a/packages/toolkit/src/lib/use-smart-hint/pickSmartHintsFromNodes.ts b/packages/toolkit/src/lib/use-smart-hint/pickSmartHintsFromNodes.ts index faeb003447..aafd28d1c6 100644 --- a/packages/toolkit/src/lib/use-smart-hint/pickSmartHintsFromNodes.ts +++ b/packages/toolkit/src/lib/use-smart-hint/pickSmartHintsFromNodes.ts @@ -1,21 +1,21 @@ import { Node } from "reactflow"; + import { + getGeneralComponentInOutputSchema, IteratorNodeData, NodeData, - getGeneralComponentInOutputSchema, } from "../../view"; - -import { SmartHint } from "./types"; -import { transformInstillJSONSchemaToFormTree } from "../use-instill-form/transform"; -import { transformFormTreeToSmartHints } from "./transformFormTreeToSmartHints"; -import { transformPipelineTriggerRequestFieldsToSmartHints } from "./transformPipelineTriggerRequestFieldsToSmartHints"; -import { PipelineIteratorComponent } from "../vdp-sdk"; +import { isPipelineGeneralComponent } from "../../view/pipeline-builder/lib/checkComponentType"; import { isGeneralNode, isIteratorNode, isVariableNode, } from "../../view/pipeline-builder/lib/checkNodeType"; -import { isPipelineGeneralComponent } from "../../view/pipeline-builder/lib/checkComponentType"; +import { transformInstillJSONSchemaToFormTree } from "../use-instill-form/transform"; +import { PipelineIteratorComponent } from "../vdp-sdk"; +import { transformFormTreeToSmartHints } from "./transformFormTreeToSmartHints"; +import { transformPipelineTriggerRequestFieldsToSmartHints } from "./transformPipelineTriggerRequestFieldsToSmartHints"; +import { SmartHint } from "./types"; export function pickSmartHintsFromNodes({ nodes, diff --git a/packages/toolkit/src/lib/use-smart-hint/transformFormTreeToSmartHints.test.ts b/packages/toolkit/src/lib/use-smart-hint/transformFormTreeToSmartHints.test.ts index 8591928e65..400302cd36 100644 --- a/packages/toolkit/src/lib/use-smart-hint/transformFormTreeToSmartHints.test.ts +++ b/packages/toolkit/src/lib/use-smart-hint/transformFormTreeToSmartHints.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { InstillFormTree } from "../use-instill-form"; import { transformFormTreeToSmartHints } from "./transformFormTreeToSmartHints"; diff --git a/packages/toolkit/src/lib/use-smart-hint/transformPipelineTriggerRequestFieldsToSmartHints.test.ts b/packages/toolkit/src/lib/use-smart-hint/transformPipelineTriggerRequestFieldsToSmartHints.test.ts index ea15eb8304..a32d203666 100644 --- a/packages/toolkit/src/lib/use-smart-hint/transformPipelineTriggerRequestFieldsToSmartHints.test.ts +++ b/packages/toolkit/src/lib/use-smart-hint/transformPipelineTriggerRequestFieldsToSmartHints.test.ts @@ -1,6 +1,7 @@ -import { test, expect } from "vitest"; -import { transformPipelineTriggerRequestFieldsToSmartHints } from "./transformPipelineTriggerRequestFieldsToSmartHints"; +import { expect, test } from "vitest"; + import { PipelineVariableFieldMap } from "../vdp-sdk"; +import { transformPipelineTriggerRequestFieldsToSmartHints } from "./transformPipelineTriggerRequestFieldsToSmartHints"; test("should transform pipeline variables to smart hints", () => { const fields: PipelineVariableFieldMap = { diff --git a/packages/toolkit/src/lib/useRouteInfo.ts b/packages/toolkit/src/lib/useRouteInfo.ts index dbb12cfbdb..6b98390010 100644 --- a/packages/toolkit/src/lib/useRouteInfo.ts +++ b/packages/toolkit/src/lib/useRouteInfo.ts @@ -2,10 +2,11 @@ import * as React from "react"; import { useParams } from "next/navigation"; + import { useNamespaceType } from "./react-query-service"; +import { Nullable } from "./type"; import { InstillStore, useInstillStore, useShallow } from "./use-instill-store"; import { NamespaceType } from "./vdp-sdk"; -import { Nullable } from "./type"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/lib/useUserNamespaces.ts b/packages/toolkit/src/lib/useUserNamespaces.ts index aa5f2e7501..b8419b38da 100644 --- a/packages/toolkit/src/lib/useUserNamespaces.ts +++ b/packages/toolkit/src/lib/useUserNamespaces.ts @@ -1,12 +1,13 @@ "use client"; + import * as React from "react"; import { useAuthenticatedUser, useUserMemberships, } from "./react-query-service"; -import { InstillStore, useInstillStore, useShallow } from "./use-instill-store"; import { Nullable } from "./type"; +import { InstillStore, useInstillStore, useShallow } from "./use-instill-store"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/lib/vdp-sdk/helper/createInstillAxiosClient.ts b/packages/toolkit/src/lib/vdp-sdk/helper/createInstillAxiosClient.ts index 3dfc313578..dd8e04f0aa 100644 --- a/packages/toolkit/src/lib/vdp-sdk/helper/createInstillAxiosClient.ts +++ b/packages/toolkit/src/lib/vdp-sdk/helper/createInstillAxiosClient.ts @@ -1,4 +1,5 @@ import axios from "axios"; + import { env } from "../../../server"; import { Nullable } from "../../type"; diff --git a/packages/toolkit/src/lib/vdp-sdk/helper/getQueryString.test.ts b/packages/toolkit/src/lib/vdp-sdk/helper/getQueryString.test.ts index 17878351b2..70e16da6bf 100644 --- a/packages/toolkit/src/lib/vdp-sdk/helper/getQueryString.test.ts +++ b/packages/toolkit/src/lib/vdp-sdk/helper/getQueryString.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { getQueryString } from "./getQueryString"; test("baseURL contains no query string", () => { diff --git a/packages/toolkit/src/lib/vdp-sdk/metric/pipeline/queries.ts b/packages/toolkit/src/lib/vdp-sdk/metric/pipeline/queries.ts index f48d58406b..54387755d2 100644 --- a/packages/toolkit/src/lib/vdp-sdk/metric/pipeline/queries.ts +++ b/packages/toolkit/src/lib/vdp-sdk/metric/pipeline/queries.ts @@ -1,8 +1,8 @@ import { Nullable } from "../../../type"; import { createInstillAxiosClient, getQueryString } from "../../helper"; import { - PipelineTriggerRecord, PipelinesChart, + PipelineTriggerRecord, TriggeredPipeline, } from "./types"; diff --git a/packages/toolkit/src/lib/vdp-sdk/model/actions.ts b/packages/toolkit/src/lib/vdp-sdk/model/actions.ts index 6007e725c9..83492635c8 100644 --- a/packages/toolkit/src/lib/vdp-sdk/model/actions.ts +++ b/packages/toolkit/src/lib/vdp-sdk/model/actions.ts @@ -1,7 +1,7 @@ -import { createInstillAxiosClient } from "../helper"; import { Nullable } from "../../type"; -import { ModelTask } from "./types"; +import { createInstillAxiosClient } from "../helper"; import { Operation } from "../operation/types"; +import { ModelTask } from "./types"; export type DeployUserModelResponse = { modelId: string; diff --git a/packages/toolkit/src/lib/vdp-sdk/model/queries.ts b/packages/toolkit/src/lib/vdp-sdk/model/queries.ts index f0aaa62a6d..507e4eba1b 100644 --- a/packages/toolkit/src/lib/vdp-sdk/model/queries.ts +++ b/packages/toolkit/src/lib/vdp-sdk/model/queries.ts @@ -1,14 +1,14 @@ -import { createInstillAxiosClient, getQueryString } from "../helper"; +import type { Nullable } from "../../type"; import type { Model, - ModelReadme, ModelDefinition, + ModelReadme, ModelRegion, + ModelTriggerResult, ModelVersion, ModelWatchState, - ModelTriggerResult, } from "./types"; -import type { Nullable } from "../../type"; +import { createInstillAxiosClient, getQueryString } from "../helper"; import { Visibility } from "../types"; /* ------------------------------------------------------------------------- diff --git a/packages/toolkit/src/lib/vdp-sdk/model/types.ts b/packages/toolkit/src/lib/vdp-sdk/model/types.ts index 4c1086b0b6..6ff42c95f1 100644 --- a/packages/toolkit/src/lib/vdp-sdk/model/types.ts +++ b/packages/toolkit/src/lib/vdp-sdk/model/types.ts @@ -1,12 +1,13 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { Nullable } from "vitest"; + import { InstillJSONSchema } from "../../use-instill-form"; import { User } from "../mgmt/types"; +import { Operation } from "../operation/types"; import { Organization } from "../organization"; import { Pipeline } from "../pipeline"; import { Permission, Visibility } from "../types"; -import { Operation } from "../operation/types"; export type ModelReleaseStage = | "RELEASE_STAGE_UNSPECIFIED" diff --git a/packages/toolkit/src/lib/vdp-sdk/operation/queries.ts b/packages/toolkit/src/lib/vdp-sdk/operation/queries.ts index e286d1da6a..aa618728c6 100644 --- a/packages/toolkit/src/lib/vdp-sdk/operation/queries.ts +++ b/packages/toolkit/src/lib/vdp-sdk/operation/queries.ts @@ -1,6 +1,6 @@ -import { Operation } from "./types"; -import { createInstillAxiosClient } from "../helper"; import { Nullable } from "../../type"; +import { createInstillAxiosClient } from "../helper"; +import { Operation } from "./types"; export type GetModelOperationResponse = { operation: Operation; diff --git a/packages/toolkit/src/lib/vdp-sdk/organization/mutations.ts b/packages/toolkit/src/lib/vdp-sdk/organization/mutations.ts index c16851272c..e02ccacc32 100644 --- a/packages/toolkit/src/lib/vdp-sdk/organization/mutations.ts +++ b/packages/toolkit/src/lib/vdp-sdk/organization/mutations.ts @@ -1,12 +1,12 @@ import { Nullable } from "../../type"; import { createInstillAxiosClient } from "../helper"; import { - Organization, MembershipRole, - OrganizationMembership, MembershipState, - UserMembership, + Organization, + OrganizationMembership, OrganizationProfile, + UserMembership, } from "./types"; export type CreateOrganizationPayload = { diff --git a/packages/toolkit/src/lib/vdp-sdk/pipeline/types.ts b/packages/toolkit/src/lib/vdp-sdk/pipeline/types.ts index 167a6e28d2..2276e3e5ae 100644 --- a/packages/toolkit/src/lib/vdp-sdk/pipeline/types.ts +++ b/packages/toolkit/src/lib/vdp-sdk/pipeline/types.ts @@ -1,6 +1,9 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ +import { JSONSchema7TypeName } from "json-schema"; import { OpenAPIV3 } from "openapi-types"; + +import { GeneralRecord, Nullable } from "../../type"; import { ConnectorDefinition } from "../connector"; import { DataSpecification, @@ -9,8 +12,6 @@ import { Spec, Visibility, } from "../types"; -import { GeneralRecord, Nullable } from "../../type"; -import { JSONSchema7TypeName } from "json-schema"; export type PipelineMode = "MODE_UNSPECIFIED" | "MODE_SYNC" | "MODE_ASYNC"; diff --git a/packages/toolkit/src/lib/vdp-sdk/types.ts b/packages/toolkit/src/lib/vdp-sdk/types.ts index 78994f9c65..907834390c 100644 --- a/packages/toolkit/src/lib/vdp-sdk/types.ts +++ b/packages/toolkit/src/lib/vdp-sdk/types.ts @@ -1,10 +1,10 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -import { ModelState } from "./model"; -import { PipelineReleaseState } from "./pipeline"; +import { Nullable } from "../type"; import { InstillJSONSchema } from "../use-instill-form"; import { User } from "./mgmt"; +import { ModelState } from "./model"; import { Organization } from "./organization"; -import { Nullable } from "../type"; +import { PipelineReleaseState } from "./pipeline"; export type ErrorDetails = { "@type": string; diff --git a/packages/toolkit/src/server/utility/cookie.ts b/packages/toolkit/src/server/utility/cookie.ts index be76b1a6da..102699a9ca 100644 --- a/packages/toolkit/src/server/utility/cookie.ts +++ b/packages/toolkit/src/server/utility/cookie.ts @@ -1,6 +1,6 @@ +import { ServerResponse } from "http"; import { NextApiResponse } from "next"; import { serialize } from "cookie"; -import { ServerResponse } from "http"; import { Nullable } from "../../lib/type"; diff --git a/packages/toolkit/src/server/utility/getHumanReadableStringFromTime/getHumanReadableStringFromTime.test.ts b/packages/toolkit/src/server/utility/getHumanReadableStringFromTime/getHumanReadableStringFromTime.test.ts index 19d0416aac..c7bba939b6 100644 --- a/packages/toolkit/src/server/utility/getHumanReadableStringFromTime/getHumanReadableStringFromTime.test.ts +++ b/packages/toolkit/src/server/utility/getHumanReadableStringFromTime/getHumanReadableStringFromTime.test.ts @@ -1,4 +1,5 @@ -import { test, expect, describe } from "vitest"; +import { describe, expect, test } from "vitest"; + import { getHumanReadableStringFromTime } from "./getHumanReadableStringFromTime"; describe("test getTimeAgo", () => { diff --git a/packages/toolkit/src/server/utility/removeObjKey.test.ts b/packages/toolkit/src/server/utility/removeObjKey.test.ts index 87000a83c7..27ce1c6531 100644 --- a/packages/toolkit/src/server/utility/removeObjKey.test.ts +++ b/packages/toolkit/src/server/utility/removeObjKey.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { removeObjKey } from "./removeObjKey"; test("should remove key from object", () => { diff --git a/packages/toolkit/src/view/airbyte/AirbyteDestinationFields.tsx b/packages/toolkit/src/view/airbyte/AirbyteDestinationFields.tsx index d166120a9f..e818dc1637 100644 --- a/packages/toolkit/src/view/airbyte/AirbyteDestinationFields.tsx +++ b/packages/toolkit/src/view/airbyte/AirbyteDestinationFields.tsx @@ -1,14 +1,15 @@ "use client"; import * as React from "react"; + +import type { Nullable } from "../../lib"; +import { useBuildAirbyteFields } from "."; import { AirbyteFieldErrors, AirbyteFieldValues, AirbyteFormTree, SelectedItemMap, } from "../../lib/airbytes"; -import type { Nullable } from "../../lib"; -import { useBuildAirbyteFields } from "."; export type AirbyteDestinationFieldsProps = { fieldValues: Nullable; diff --git a/packages/toolkit/src/view/airbyte/OneOfConditionSection.tsx b/packages/toolkit/src/view/airbyte/OneOfConditionSection.tsx index f6ba1a4716..8d57a509dd 100644 --- a/packages/toolkit/src/view/airbyte/OneOfConditionSection.tsx +++ b/packages/toolkit/src/view/airbyte/OneOfConditionSection.tsx @@ -1,17 +1,18 @@ "use client"; import * as React from "react"; + import { Icons, Select, SelectOption } from "@instill-ai/design-system"; -import { - dot, - getConditionFormPath, - type AirbyteFormConditionItemWithUiFields, - type AirbyteFormItem, - type AirbyteFieldValues, - type SelectedItemMap, - type AirbyteFieldErrors, - type Nullable, + +import type { + AirbyteFieldErrors, + AirbyteFieldValues, + AirbyteFormConditionItemWithUiFields, + AirbyteFormItem, + Nullable, + SelectedItemMap, } from "../../lib"; +import { dot, getConditionFormPath } from "../../lib"; export type OneOfConditionSectionProps = { formTree: AirbyteFormConditionItemWithUiFields; diff --git a/packages/toolkit/src/view/airbyte/useBuildAirbyteFields.tsx b/packages/toolkit/src/view/airbyte/useBuildAirbyteFields.tsx index e13f9d7f6d..bad7a2a682 100644 --- a/packages/toolkit/src/view/airbyte/useBuildAirbyteFields.tsx +++ b/packages/toolkit/src/view/airbyte/useBuildAirbyteFields.tsx @@ -1,15 +1,5 @@ import * as React from "react"; -import { - dot, - type Nullable, - type AirbyteFormConditionItemWithUiFields, - type AirbyteFieldErrors, - type AirbyteFormGroupItem, - type AirbyteFormItem, - type AirbyteFormTree, - type AirbyteFieldValues, - type SelectedItemMap, -} from "../../lib"; + import { BasicTextArea, BasicTextField, @@ -17,7 +7,19 @@ import { ProtectedBasicTextField, Select, } from "@instill-ai/design-system"; + +import type { + AirbyteFieldErrors, + AirbyteFieldValues, + AirbyteFormConditionItemWithUiFields, + AirbyteFormGroupItem, + AirbyteFormItem, + AirbyteFormTree, + Nullable, + SelectedItemMap, +} from "../../lib"; import { OneOfConditionSection } from "."; +import { dot } from "../../lib"; export const useBuildAirbyteFields = ( formTree: Nullable, diff --git a/packages/toolkit/src/view/dashboard/DashboardPipelineDetailsPageMainView.tsx b/packages/toolkit/src/view/dashboard/DashboardPipelineDetailsPageMainView.tsx index 23d0661f23..6da6f29dfd 100644 --- a/packages/toolkit/src/view/dashboard/DashboardPipelineDetailsPageMainView.tsx +++ b/packages/toolkit/src/view/dashboard/DashboardPipelineDetailsPageMainView.tsx @@ -1,23 +1,24 @@ "use client"; import * as React from "react"; +import { useParams } from "next/navigation"; + import { SelectOption } from "@instill-ai/design-system"; +import { PageTitle } from "../../components"; import { DashboardAvailableTimeframe, GeneralAppPageProp, - Nullable, getPreviousTimeframe, getTimeInRFC3339Format, getTriggersSummary, - useRouteInfo, + Nullable, usePipelineTriggerRecords, + useRouteInfo, } from "../../lib"; -import { PageTitle } from "../../components"; -import { PipelineTriggersSummary } from "./PipelineTriggersSummary"; import { FilterByDay } from "./FilterByDay"; +import { PipelineTriggersSummary } from "./PipelineTriggersSummary"; import { PipelineTriggersTable } from "./PipelineTriggersTable"; -import { useParams } from "next/navigation"; export type DashboardPipelineDetailsPageMainViewProps = GeneralAppPageProp; diff --git a/packages/toolkit/src/view/dashboard/DashboardPipelineListPageMainView.tsx b/packages/toolkit/src/view/dashboard/DashboardPipelineListPageMainView.tsx index 15064b578b..d98914bfee 100644 --- a/packages/toolkit/src/view/dashboard/DashboardPipelineListPageMainView.tsx +++ b/packages/toolkit/src/view/dashboard/DashboardPipelineListPageMainView.tsx @@ -1,25 +1,27 @@ "use client"; import * as React from "react"; + import { SelectOption } from "@instill-ai/design-system"; -import { PipelineTriggersSummary } from "./PipelineTriggersSummary"; + import { DashboardAvailableTimeframe, - Nullable, - PipelinesChart, - TriggeredPipeline, + dashboardOptions, + GeneralAppPageProp, getPipelineTriggersSummary, getPreviousTimeframe, getTimeInRFC3339Format, + Nullable, + PipelinesChart, + TriggeredPipeline, + useRouteInfo, useTriggeredPipelines, useTriggeredPipelinesChart, - dashboardOptions, - useRouteInfo, - GeneralAppPageProp, } from "../../lib"; +import { DashboardPipelinesTable } from "./DashboardPipelinesTable"; import { FilterByDay } from "./FilterByDay"; import { PipelineTriggerCountsLineChart } from "./PipelineTriggerCountsLineChart"; -import { DashboardPipelinesTable } from "./DashboardPipelinesTable"; +import { PipelineTriggersSummary } from "./PipelineTriggersSummary"; export type DashboardPipelineListPageMainViewProps = GeneralAppPageProp; diff --git a/packages/toolkit/src/view/dashboard/DashboardPipelinesTable.tsx b/packages/toolkit/src/view/dashboard/DashboardPipelinesTable.tsx index 9b79f92f54..ee45998560 100644 --- a/packages/toolkit/src/view/dashboard/DashboardPipelinesTable.tsx +++ b/packages/toolkit/src/view/dashboard/DashboardPipelinesTable.tsx @@ -2,11 +2,12 @@ import Link from "next/link"; import { useParams } from "next/navigation"; -import { Button, DataTable } from "@instill-ai/design-system"; import { ColumnDef } from "@tanstack/react-table"; -import { TriggeredPipeline } from "../../lib"; +import { Button, DataTable } from "@instill-ai/design-system"; + import { SortIcon, TableError } from "../../components"; +import { TriggeredPipeline } from "../../lib"; import { PipelineTablePlaceholder } from "../pipeline"; export type DashboardPipelinesTableProps = { diff --git a/packages/toolkit/src/view/dashboard/FilterByDay.tsx b/packages/toolkit/src/view/dashboard/FilterByDay.tsx index be1b9f774f..ed779543ad 100644 --- a/packages/toolkit/src/view/dashboard/FilterByDay.tsx +++ b/packages/toolkit/src/view/dashboard/FilterByDay.tsx @@ -1,8 +1,9 @@ "use client"; -import cn from "clsx"; import * as React from "react"; -import { useRouter, usePathname, useSearchParams } from "next/navigation"; +import { usePathname, useRouter, useSearchParams } from "next/navigation"; +import cn from "clsx"; + import { Button, Icons, SelectOption } from "@instill-ai/design-system"; import { dashboardOptions } from "../../lib"; diff --git a/packages/toolkit/src/view/dashboard/PipelineTriggerCountsLineChart.tsx b/packages/toolkit/src/view/dashboard/PipelineTriggerCountsLineChart.tsx index caca7c2f08..affe1650aa 100644 --- a/packages/toolkit/src/view/dashboard/PipelineTriggerCountsLineChart.tsx +++ b/packages/toolkit/src/view/dashboard/PipelineTriggerCountsLineChart.tsx @@ -2,8 +2,10 @@ import { useEffect, useRef } from "react"; import * as echarts from "echarts"; + import { Icons, SelectOption, Tooltip } from "@instill-ai/design-system"; -import { PipelinesChart, generateChartData } from "../../lib"; + +import { generateChartData, PipelinesChart } from "../../lib"; type PipelineTriggerCountsLineChartProps = { pipelines: PipelinesChart[]; diff --git a/packages/toolkit/src/view/dashboard/PipelineTriggersSummary.tsx b/packages/toolkit/src/view/dashboard/PipelineTriggersSummary.tsx index 82ffc939e7..0721c6ca73 100644 --- a/packages/toolkit/src/view/dashboard/PipelineTriggersSummary.tsx +++ b/packages/toolkit/src/view/dashboard/PipelineTriggersSummary.tsx @@ -1,7 +1,9 @@ "use client"; -import { Icons, Skeleton, Tag } from "@instill-ai/design-system"; import { Fragment, ReactNode } from "react"; + +import { Icons, Skeleton, Tag } from "@instill-ai/design-system"; + import { Nullable, PipelineTriggersStatusSummaryItem } from "../../lib"; const PipelineTriggersSummaryCard = (props: { diff --git a/packages/toolkit/src/view/dashboard/PipelineTriggersTable.tsx b/packages/toolkit/src/view/dashboard/PipelineTriggersTable.tsx index 941931657a..d7a73e425c 100644 --- a/packages/toolkit/src/view/dashboard/PipelineTriggersTable.tsx +++ b/packages/toolkit/src/view/dashboard/PipelineTriggersTable.tsx @@ -1,14 +1,16 @@ "use client"; -import { Button, DataTable } from "@instill-ai/design-system"; import { ColumnDef } from "@tanstack/react-table"; + +import { Button, DataTable } from "@instill-ai/design-system"; + +import { GeneralStateCell, SortIcon, TableError } from "../../components"; import { - PipelineTriggerRecord, convertTimestampToLocal, convertToSecondsAndMilliseconds, parseTriggerStatusLabel, + PipelineTriggerRecord, } from "../../lib"; -import { GeneralStateCell, SortIcon, TableError } from "../../components"; import { TriggersTablePlaceholder } from "./TriggersTablePlaceholder"; export type PipelineTriggersTableProps = { diff --git a/packages/toolkit/src/view/dashboard/RemainingTriggers.tsx b/packages/toolkit/src/view/dashboard/RemainingTriggers.tsx index 8868f113e0..3a1af15788 100644 --- a/packages/toolkit/src/view/dashboard/RemainingTriggers.tsx +++ b/packages/toolkit/src/view/dashboard/RemainingTriggers.tsx @@ -1,9 +1,11 @@ "use client"; +import Link from "next/link"; + +import { Button, Icons, Skeleton } from "@instill-ai/design-system"; + import { Nullable, User } from "../../lib"; import SemiCircleProgress from "./SemiCircleProgress"; -import { Button, Icons, Skeleton } from "@instill-ai/design-system"; -import Link from "next/link"; export type Subscription = { plan: string; diff --git a/packages/toolkit/src/view/dashboard/TriggersTablePlaceholder.tsx b/packages/toolkit/src/view/dashboard/TriggersTablePlaceholder.tsx index 65f02f4d31..4416492e1f 100644 --- a/packages/toolkit/src/view/dashboard/TriggersTablePlaceholder.tsx +++ b/packages/toolkit/src/view/dashboard/TriggersTablePlaceholder.tsx @@ -1,6 +1,7 @@ "use client"; import cn from "clsx"; + import { TablePlaceholderBase, TablePlaceholderBaseProps, diff --git a/packages/toolkit/src/view/model/CreateModelForm.tsx b/packages/toolkit/src/view/model/CreateModelForm.tsx index d82dc097fd..4f7a587ebf 100644 --- a/packages/toolkit/src/view/model/CreateModelForm.tsx +++ b/packages/toolkit/src/view/model/CreateModelForm.tsx @@ -1,45 +1,46 @@ +import * as React from "react"; +import { useRouter } from "next/navigation"; +import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm } from "react-hook-form"; import { z } from "zod"; + +import { + Button, + Form, + getModelHardwareToolkit, + getModelInstanceTaskToolkit, + getModelRegionToolkit, + Icons, + Input, + RadioGroup, + Select, + Textarea, + toast, +} from "@instill-ai/design-system"; + +import { EntitySelector, LoadingSpin } from "../../components"; import { InstillErrors, InstillModelTask, InstillModelVisibility, } from "../../constant"; -import { env, validateInstillResourceID } from "../../server"; -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; import { CreateUserModelPayload, + InstillStore, ModelTask, - Visibility, sendAmplitudeData, toastInstillError, useAmplitudeCtx, - useRouteInfo, useCreateUserModel, - useModelRegions, - InstillStore, useInstillStore, + useModelRegions, + useRouteInfo, useShallow, + Visibility, } from "../../lib"; -import { - Button, - Form, - Icons, - Input, - RadioGroup, - Select, - Textarea, - getModelInstanceTaskToolkit, - toast, - getModelRegionToolkit, - getModelHardwareToolkit, -} from "@instill-ai/design-system"; -import * as React from "react"; -import { LoadingSpin } from "../../components"; -import { useRouter } from "next/navigation"; -import { EntitySelector } from "../../components"; import { FieldDescriptionTooltip } from "../../lib/use-instill-form/components/common"; import { useUserNamespaces } from "../../lib/useUserNamespaces"; +import { env, validateInstillResourceID } from "../../server"; type Option = { value: string; diff --git a/packages/toolkit/src/view/model/ModelHubListPageMainView.tsx b/packages/toolkit/src/view/model/ModelHubListPageMainView.tsx index 5e50469803..b750a29191 100644 --- a/packages/toolkit/src/view/model/ModelHubListPageMainView.tsx +++ b/packages/toolkit/src/view/model/ModelHubListPageMainView.tsx @@ -1,16 +1,18 @@ "use client"; -import { Button, Input, Icons, Select } from "@instill-ai/design-system"; +import React, { useEffect, useState } from "react"; +import { useSearchParams } from "next/navigation"; +import debounce from "lodash.debounce"; + +import { Button, Icons, Input, Select } from "@instill-ai/design-system"; + import { GeneralAppPageProp, - Visibility, - useRouteInfo, useInfiniteUserModels, + useRouteInfo, + Visibility, } from "../../lib"; -import { useSearchParams } from "next/navigation"; import { ModelsList } from "./ModelsList"; -import React, { useEffect, useState } from "react"; -import debounce from "lodash.debounce"; import { ModelsListPagination } from "./ModelsListPagination"; export type ModelHubListPageMainViewProps = GeneralAppPageProp; diff --git a/packages/toolkit/src/view/model/ModelHubSettingPageMainView.tsx b/packages/toolkit/src/view/model/ModelHubSettingPageMainView.tsx index f852ae7ded..f223a36cc2 100644 --- a/packages/toolkit/src/view/model/ModelHubSettingPageMainView.tsx +++ b/packages/toolkit/src/view/model/ModelHubSettingPageMainView.tsx @@ -1,16 +1,17 @@ "use client"; import * as React from "react"; +import { useParams, useRouter } from "next/navigation"; + import { GeneralAppPageProp, - useRouteInfo, useQueryClient, + useRouteInfo, useUserModel, useWatchUserModels, } from "../../lib"; -import { ModelContentViewer, ModelSettingsHead } from "./view-model"; -import { useParams, useRouter } from "next/navigation"; import { ModelTabNames } from "../../server"; +import { ModelContentViewer, ModelSettingsHead } from "./view-model"; export type ModelHubSettingPageMainViewProps = GeneralAppPageProp; diff --git a/packages/toolkit/src/view/model/ModelTablePlaceholder.tsx b/packages/toolkit/src/view/model/ModelTablePlaceholder.tsx index 2f579f74f0..f0ab48a197 100644 --- a/packages/toolkit/src/view/model/ModelTablePlaceholder.tsx +++ b/packages/toolkit/src/view/model/ModelTablePlaceholder.tsx @@ -9,10 +9,8 @@ import { SemanticSegmentationIcon, } from "@instill-ai/design-system"; -import { - TablePlaceholderBase, - type TablePlaceholderBaseProps, -} from "../../components"; +import type { TablePlaceholderBaseProps } from "../../components"; +import { TablePlaceholderBase } from "../../components"; export type ModelTablePlaceholderProps = Pick< TablePlaceholderBaseProps, diff --git a/packages/toolkit/src/view/model/ModelsList.tsx b/packages/toolkit/src/view/model/ModelsList.tsx index 7cf7eea823..baf6d0a05e 100644 --- a/packages/toolkit/src/view/model/ModelsList.tsx +++ b/packages/toolkit/src/view/model/ModelsList.tsx @@ -1,6 +1,11 @@ "use client"; +import cn from "clsx"; + +import { useToast } from "@instill-ai/design-system"; + import { CardModel } from "../../components/card-model/CardModel"; +import { CardModelSkeleton } from "../../components/card-model/Skeleton"; import { InstillStore, Model, @@ -11,9 +16,6 @@ import { useInstillStore, useShallow, } from "../../lib"; -import { CardModelSkeleton } from "../../components/card-model/Skeleton"; -import cn from "clsx"; -import { useToast } from "@instill-ai/design-system"; export type ModelsListProps = { models: Model[]; diff --git a/packages/toolkit/src/view/model/ModelsListPagination.tsx b/packages/toolkit/src/view/model/ModelsListPagination.tsx index 2482256347..ed26b7754f 100644 --- a/packages/toolkit/src/view/model/ModelsListPagination.tsx +++ b/packages/toolkit/src/view/model/ModelsListPagination.tsx @@ -1,8 +1,10 @@ import { useMemo } from "react"; -import { Pagination } from "@instill-ai/design-system"; -import { env } from "../../server"; import { InfiniteData, UseInfiniteQueryResult } from "@tanstack/react-query"; + +import { Pagination } from "@instill-ai/design-system"; + import { ListModelsResponse } from "../../lib"; +import { env } from "../../server"; const defaultPaginationProps = { isPrevDisabled: true, diff --git a/packages/toolkit/src/view/model/ModelsTable.tsx b/packages/toolkit/src/view/model/ModelsTable.tsx index ad66dea1c0..4265373d48 100644 --- a/packages/toolkit/src/view/model/ModelsTable.tsx +++ b/packages/toolkit/src/view/model/ModelsTable.tsx @@ -1,11 +1,15 @@ "use client"; +import { ColumnDef } from "@tanstack/react-table"; + import { Button, DataTable, getModelInstanceTaskToolkit, } from "@instill-ai/design-system"; -import { ColumnDef } from "@tanstack/react-table"; + +import { SortIcon, StateLabel, TableError } from "../../components"; +import { TableCell } from "../../components/cells/TableCell"; import { InstillStore, Model, @@ -13,8 +17,6 @@ import { useShallow, useWatchUserModels, } from "../../lib"; -import { SortIcon, StateLabel, TableError } from "../../components"; -import { TableCell } from "../../components/cells/TableCell"; import { formatDate } from "../../lib/table"; import { ModelTablePlaceholder } from "./ModelTablePlaceholder"; diff --git a/packages/toolkit/src/view/model/view-model/ModelApi.tsx b/packages/toolkit/src/view/model/view-model/ModelApi.tsx index eab17c7556..5db5497ce3 100644 --- a/packages/toolkit/src/view/model/view-model/ModelApi.tsx +++ b/packages/toolkit/src/view/model/view-model/ModelApi.tsx @@ -1,12 +1,12 @@ -import { useMemo } from "react"; +import React, { useMemo } from "react"; + import { CodeBlock } from "../../../components"; import { CodeString } from "../../../components/CodeString"; -import { Model } from "../../../lib"; import { defaultCodeSnippetStyles, getInstillTaskHttpRequestExample, } from "../../../constant"; -import React from "react"; +import { Model } from "../../../lib"; import { ModelSectionHeader } from "./SectionHeader"; export type ModelApiProps = { diff --git a/packages/toolkit/src/view/model/view-model/ModelContentViewer.tsx b/packages/toolkit/src/view/model/view-model/ModelContentViewer.tsx index 2e95ceb73e..1a82510d34 100644 --- a/packages/toolkit/src/view/model/view-model/ModelContentViewer.tsx +++ b/packages/toolkit/src/view/model/view-model/ModelContentViewer.tsx @@ -1,8 +1,8 @@ import { - ModelSettingsEditForm, - ModelVersions, ModelApi, ModelOverview, + ModelSettingsEditForm, + ModelVersions, NoVersionsPlaceholder, } from "."; import { LoadingSpin } from "../../../components"; diff --git a/packages/toolkit/src/view/model/view-model/ModelHead.tsx b/packages/toolkit/src/view/model/view-model/ModelHead.tsx index 438e94ff0b..f87978ffec 100644 --- a/packages/toolkit/src/view/model/view-model/ModelHead.tsx +++ b/packages/toolkit/src/view/model/view-model/ModelHead.tsx @@ -1,19 +1,21 @@ -import cn from "clsx"; import React, { useMemo } from "react"; -import { StateLabel } from "../../../components"; +import Link from "next/link"; +import cn from "clsx"; + import { + getModelInstanceTaskToolkit, GitHubIcon, Icons, - Tag, - TabMenu, - getModelInstanceTaskToolkit, Nullable, Skeleton, + TabMenu, + Tag, } from "@instill-ai/design-system"; + +import { StateLabel } from "../../../components"; +import { NamespaceAvatarWithFallback } from "../../../components/NamespaceAvatarWithFallback"; import { Model, ModelState } from "../../../lib"; import { ModelTabNames } from "../../../server"; -import { NamespaceAvatarWithFallback } from "../../../components/NamespaceAvatarWithFallback"; -import Link from "next/link"; export type HeadProps = { selectedTab: ModelTabNames; diff --git a/packages/toolkit/src/view/model/view-model/ModelOverview.tsx b/packages/toolkit/src/view/model/view-model/ModelOverview.tsx index 941f4f5365..71f6b6dd2d 100644 --- a/packages/toolkit/src/view/model/view-model/ModelOverview.tsx +++ b/packages/toolkit/src/view/model/view-model/ModelOverview.tsx @@ -1,3 +1,8 @@ +import { useEffect, useMemo, useState } from "react"; +import * as React from "react"; +import Image from "next/image"; +import { z } from "zod"; + import { Button, Form, @@ -6,13 +11,17 @@ import { TabMenu, useToast, } from "@instill-ai/design-system"; + +import type { ModelTriggerResult } from "../../../lib"; +import { CodeBlock, LoadingSpin } from "../../../components"; +import { defaultCodeSnippetStyles } from "../../../constant"; import { + convertSentenceToCamelCase, GeneralRecord, InstillStore, Model, ModelState, ModelTask, - type ModelTriggerResult, sendAmplitudeData, toastInstillError, useAmplitudeCtx, @@ -20,21 +29,14 @@ import { useInstillForm, useInstillStore, useLastModelTriggerResult, + useQueryClient, useShallow, useTriggerUserModelAsync, - convertSentenceToCamelCase, - useQueryClient, } from "../../../lib"; -import { ModelReadme } from "./ModelReadme"; -import { z } from "zod"; -import { CodeBlock, LoadingSpin } from "../../../components"; -import { useEffect, useMemo, useState } from "react"; -import { ModelSectionHeader } from "./SectionHeader"; import { recursiveHelpers } from "../../pipeline-builder"; -import { defaultCodeSnippetStyles } from "../../../constant"; -import * as React from "react"; -import Image from "next/image"; import { OPERATION_POLL_TIMEOUT } from "./constants"; +import { ModelReadme } from "./ModelReadme"; +import { ModelSectionHeader } from "./SectionHeader"; export type ModelOutputActiveView = "preview" | "json"; diff --git a/packages/toolkit/src/view/model/view-model/ModelReadme.tsx b/packages/toolkit/src/view/model/view-model/ModelReadme.tsx index b7d728f5f4..5387461925 100644 --- a/packages/toolkit/src/view/model/view-model/ModelReadme.tsx +++ b/packages/toolkit/src/view/model/view-model/ModelReadme.tsx @@ -1,17 +1,18 @@ "use client"; +import { useToast } from "@instill-ai/design-system"; + +import { RealTimeTextEditor } from "../../../components"; import { InstillStore, - useInstillStore, - useShallow, + Model, sendAmplitudeData, + UpdateUserModelPayload, useAmplitudeCtx, + useInstillStore, + useShallow, useUpdateUserModel, - Model, - UpdateUserModelPayload, } from "../../../lib"; -import { useToast } from "@instill-ai/design-system"; -import { RealTimeTextEditor } from "../../../components"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/model/view-model/ModelSettingsEditForm.tsx b/packages/toolkit/src/view/model/view-model/ModelSettingsEditForm.tsx index 4b7f5f29c9..b75801f8be 100644 --- a/packages/toolkit/src/view/model/view-model/ModelSettingsEditForm.tsx +++ b/packages/toolkit/src/view/model/view-model/ModelSettingsEditForm.tsx @@ -1,33 +1,35 @@ -import { z } from "zod"; -import { InstillErrors, InstillModelVisibility } from "../../../constant"; -import { useForm } from "react-hook-form"; +import { useMemo, useState } from "react"; import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm } from "react-hook-form"; +import { z } from "zod"; + import { + Button, Form, - Input, - Textarea, getModelHardwareToolkit, + Icons, + Input, + RadioGroup, Select, + Textarea, toast, - Button, - RadioGroup, - Icons, } from "@instill-ai/design-system"; -import { useMemo, useState } from "react"; + +import { LoadingSpin, UploadImageFieldWithCrop } from "../../../components"; +import { InstillErrors, InstillModelVisibility } from "../../../constant"; import { InstillStore, Model, - UpdateUserModelPayload, - Visibility, sendAmplitudeData, toastInstillError, + UpdateUserModelPayload, useAmplitudeCtx, useInstillStore, useModelRegions, useShallow, useUpdateUserModel, + Visibility, } from "../../../lib"; -import { LoadingSpin, UploadImageFieldWithCrop } from "../../../components"; export type ModelSettingsEditFormProps = { model?: Model; diff --git a/packages/toolkit/src/view/model/view-model/ModelVersions.tsx b/packages/toolkit/src/view/model/view-model/ModelVersions.tsx index 852068ceb4..374bab139e 100644 --- a/packages/toolkit/src/view/model/view-model/ModelVersions.tsx +++ b/packages/toolkit/src/view/model/view-model/ModelVersions.tsx @@ -1,16 +1,18 @@ +import { useEffect, useMemo, useState } from "react"; import { ColumnDef, PaginationState } from "@tanstack/react-table"; + +import { DataTable } from "@instill-ai/design-system"; + +import { StateLabel } from "../../../components"; import { InstillStore, Model, - useInstillStore, + ModelVersion, useInfiniteModelVersions, + useInstillStore, useShallow, - ModelVersion, } from "../../../lib"; -import { DataTable } from "@instill-ai/design-system"; import { getHumanReadableStringFromTime } from "../../../server"; -import { StateLabel } from "../../../components"; -import { useEffect, useMemo, useState } from "react"; export type ModelVersionsProps = { model?: Model; diff --git a/packages/toolkit/src/view/not-found/LinkBlock.tsx b/packages/toolkit/src/view/not-found/LinkBlock.tsx index 5dceac7a35..8e3eead805 100644 --- a/packages/toolkit/src/view/not-found/LinkBlock.tsx +++ b/packages/toolkit/src/view/not-found/LinkBlock.tsx @@ -1,8 +1,9 @@ "use client"; -import { Button, Icons } from "@instill-ai/design-system"; -import { useRouter } from "next/navigation"; import * as React from "react"; +import { useRouter } from "next/navigation"; + +import { Button, Icons } from "@instill-ai/design-system"; export const LinkBlock = ({ headIcon, diff --git a/packages/toolkit/src/view/not-found/NotFoundView.tsx b/packages/toolkit/src/view/not-found/NotFoundView.tsx index 65d8c3593a..de209abac0 100644 --- a/packages/toolkit/src/view/not-found/NotFoundView.tsx +++ b/packages/toolkit/src/view/not-found/NotFoundView.tsx @@ -1,8 +1,10 @@ "use client"; +import { useRouter } from "next/navigation"; + import { Button, Icons } from "@instill-ai/design-system"; + import { LinkBlock } from "./LinkBlock"; -import { useRouter } from "next/navigation"; export const NotFoundView = () => { const router = useRouter(); diff --git a/packages/toolkit/src/view/pipeline-builder/Flow.tsx b/packages/toolkit/src/view/pipeline-builder/Flow.tsx index 15c47c0316..75ebea7af1 100644 --- a/packages/toolkit/src/view/pipeline-builder/Flow.tsx +++ b/packages/toolkit/src/view/pipeline-builder/Flow.tsx @@ -1,18 +1,17 @@ "use client"; -import { useShallow } from "zustand/react/shallow"; import * as React from "react"; import { ReactFlowInstance } from "reactflow"; +import { useShallow } from "zustand/react/shallow"; +import { InstillStore, Nullable, useInstillStore } from "../../lib"; +import { env } from "../../server"; import { BackToLatestVersionTopBar, IteratorEditor, RemainingCreditCTA, } from "./components"; - -import { InstillStore, Nullable, useInstillStore } from "../../lib"; import { PipelineBuilderCanvas } from "./components/PipelineBuilderCanvas"; -import { env } from "../../server"; const selector = (store: InstillStore) => ({ isEditingIterator: store.isEditingIterator, diff --git a/packages/toolkit/src/view/pipeline-builder/PipelineBuilderMainView.tsx b/packages/toolkit/src/view/pipeline-builder/PipelineBuilderMainView.tsx index c55efb8d17..f1d111348c 100644 --- a/packages/toolkit/src/view/pipeline-builder/PipelineBuilderMainView.tsx +++ b/packages/toolkit/src/view/pipeline-builder/PipelineBuilderMainView.tsx @@ -1,19 +1,11 @@ "use client"; -import cn from "clsx"; import * as React from "react"; -import { useShallow } from "zustand/react/shallow"; +import { useRouter } from "next/navigation"; +import cn from "clsx"; import { ReactFlowInstance } from "reactflow"; +import { useShallow } from "zustand/react/shallow"; -import { - InstillStore, - Nullable, - useInstillStore, - useRouteInfo, - useSmartHint, - useUserPipeline, - useUserSecrets, -} from "../../lib"; import { BottomBar, Flow, @@ -26,8 +18,16 @@ import { PageBase, WarnUnsavedChangesDialog, } from "../../components"; +import { + InstillStore, + Nullable, + useInstillStore, + useRouteInfo, + useSmartHint, + useUserPipeline, + useUserSecrets, +} from "../../lib"; import { TopControlMenu } from "./components/top-control-menu"; -import { useRouter } from "next/navigation"; const selector = (store: InstillStore) => ({ pipelineIsNew: store.pipelineIsNew, @@ -128,7 +128,7 @@ export const PipelineBuilderMainView = () => { Pipeline editor main canvas */} -
+
{ />
({ pipelineName: store.pipelineName, diff --git a/packages/toolkit/src/view/pipeline-builder/components/BottomBar.tsx b/packages/toolkit/src/view/pipeline-builder/components/BottomBar.tsx index 0b6af13acd..0d46e18c83 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/BottomBar.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/BottomBar.tsx @@ -2,26 +2,27 @@ import * as React from "react"; import cn from "clsx"; +import { Edge, Node } from "reactflow"; import { useShallow } from "zustand/react/shallow"; + import { Button, Icons, Popover, ScrollArea } from "@instill-ai/design-system"; import { InstillStore, Nullable, - useRouteInfo, useInstillStore, + useRouteInfo, useUserPipeline, } from "../../../lib"; +import { getHumanReadableStringFromTime } from "../../../server"; import { checkIsValidPosition, composeEdgesFromNodes, createGraphLayout, useSortedReleases, } from "../lib"; -import { Edge, Node } from "reactflow"; -import { NodeData } from "../type"; -import { getHumanReadableStringFromTime } from "../../../server"; import { createNodesFromPipelineRecipe } from "../lib/createNodesFromPipelineRecipe"; +import { NodeData } from "../type"; const selector = (store: InstillStore) => ({ pipelineName: store.pipelineName, diff --git a/packages/toolkit/src/view/pipeline-builder/components/ComponentOutputReferenceHints.tsx b/packages/toolkit/src/view/pipeline-builder/components/ComponentOutputReferenceHints.tsx index 671eb9a7bf..31940a8a54 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/ComponentOutputReferenceHints.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/ComponentOutputReferenceHints.tsx @@ -1,6 +1,7 @@ "use client"; import { Icons, ScrollArea } from "@instill-ai/design-system"; + import { PipelineComponent, useOutputReferenceHintFields } from "../../../lib"; export const ComponentOutputReferenceHints = ({ diff --git a/packages/toolkit/src/view/pipeline-builder/components/ComponentOutputs.tsx b/packages/toolkit/src/view/pipeline-builder/components/ComponentOutputs.tsx index 184a35dedb..ecfdff6785 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/ComponentOutputs.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/ComponentOutputs.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { ChooseTitleFrom, GeneralRecord, diff --git a/packages/toolkit/src/view/pipeline-builder/components/CustomEdge.tsx b/packages/toolkit/src/view/pipeline-builder/components/CustomEdge.tsx index 6d321ddb86..c833102def 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/CustomEdge.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/CustomEdge.tsx @@ -1,9 +1,10 @@ "use client"; +import React from "react"; import cn from "clsx"; import { EdgeProps, getSmoothStepPath } from "reactflow"; + import { InstillStore, useInstillStore, useShallow } from "../../../lib"; -import React from "react"; const selector = (store: InstillStore) => ({ selectedConnectorNodeId: store.selectedConnectorNodeId, diff --git a/packages/toolkit/src/view/pipeline-builder/components/CustomHandle.tsx b/packages/toolkit/src/view/pipeline-builder/components/CustomHandle.tsx index 5f96b4e3db..c6bfabecad 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/CustomHandle.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/CustomHandle.tsx @@ -1,8 +1,9 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; import { Handle, HandleProps } from "reactflow"; + import { InstillStore, useInstillStore, useShallow } from "../../../lib"; export type CustomHandleProps = HandleProps & { diff --git a/packages/toolkit/src/view/pipeline-builder/components/PipelineBuilderCanvas.tsx b/packages/toolkit/src/view/pipeline-builder/components/PipelineBuilderCanvas.tsx index 1961e2e22e..88624087ea 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/PipelineBuilderCanvas.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/PipelineBuilderCanvas.tsx @@ -8,22 +8,23 @@ import ReactFlow, { ReactFlowInstance, SelectionMode, } from "reactflow"; + import { InstillStore, Nullable, useInstillStore, useShallow, } from "../../../lib"; +import { isResponseNode, isVariableNode } from "../lib"; +import { canvasPanOnDrag } from "./canvasPanOnDrag"; +import { CustomEdge } from "./CustomEdge"; import { EmptyNode, + GeneralNode, IteratorNode, ResponseNode, VariableNode, - GeneralNode, } from "./nodes"; -import { CustomEdge } from "./CustomEdge"; -import { isResponseNode, isVariableNode } from "../lib"; -import { canvasPanOnDrag } from "./canvasPanOnDrag"; const selector = (store: InstillStore) => ({ nodes: store.nodes, diff --git a/packages/toolkit/src/view/pipeline-builder/components/PipelineToolkitDialog.tsx b/packages/toolkit/src/view/pipeline-builder/components/PipelineToolkitDialog.tsx index b1279a43a2..481f0664e6 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/PipelineToolkitDialog.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/PipelineToolkitDialog.tsx @@ -1,11 +1,13 @@ "use client"; import * as React from "react"; + import { Dialog, Icons, ScrollArea, Tabs } from "@instill-ai/design-system"; + import { CodeBlock } from "../../../components"; import { InstillStore, useInstillStore, useShallow } from "../../../lib"; -import { composeCompleteNodesUnderEditingIteratorMode } from "../lib/composeCompleteNodesUnderEditingIteratorMode"; import { composePipelineRecipeFromNodes } from "../lib"; +import { composeCompleteNodesUnderEditingIteratorMode } from "../lib/composeCompleteNodesUnderEditingIteratorMode"; export type PipelineToolkitDialogProps = { snippet: string; diff --git a/packages/toolkit/src/view/pipeline-builder/components/ReadOnlyPipelineBuilder.tsx b/packages/toolkit/src/view/pipeline-builder/components/ReadOnlyPipelineBuilder.tsx index 67c92ab374..6f825619ed 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/ReadOnlyPipelineBuilder.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/ReadOnlyPipelineBuilder.tsx @@ -1,7 +1,7 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; import ReactFlow, { Background, BackgroundVariant, @@ -21,6 +21,9 @@ import { useShallow, } from "../../../lib"; import { composeEdgesFromNodes, createGraphLayout } from "../lib"; +import { createNodesFromPipelineRecipe } from "../lib/createNodesFromPipelineRecipe"; +import { canvasPanOnDrag } from "./canvasPanOnDrag"; +import { CustomEdge } from "./CustomEdge"; import { EmptyNode, GeneralNode, @@ -28,9 +31,6 @@ import { ResponseNode, VariableNode, } from "./nodes"; -import { CustomEdge } from "./CustomEdge"; -import { createNodesFromPipelineRecipe } from "../lib/createNodesFromPipelineRecipe"; -import { canvasPanOnDrag } from "./canvasPanOnDrag"; const selector = (store: InstillStore) => ({ updateCurrentVersion: store.updateCurrentVersion, diff --git a/packages/toolkit/src/view/pipeline-builder/components/RemainingCreditCTA.tsx b/packages/toolkit/src/view/pipeline-builder/components/RemainingCreditCTA.tsx index 61dc9ccaff..6289b0529f 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/RemainingCreditCTA.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/RemainingCreditCTA.tsx @@ -1,4 +1,7 @@ +import { useRouter } from "next/navigation"; + import { Button, Skeleton } from "@instill-ai/design-system"; + import { InstillStore, useAuthenticatedUser, @@ -6,7 +9,6 @@ import { useRemainingCredit, useShallow, } from "../../../lib"; -import { useRouter } from "next/navigation"; import { env } from "../../../server"; const selector = (store: InstillStore) => ({ diff --git a/packages/toolkit/src/view/pipeline-builder/components/VerticalSortableWrapper.tsx b/packages/toolkit/src/view/pipeline-builder/components/VerticalSortableWrapper.tsx index c7c0fad1ce..cc744db472 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/VerticalSortableWrapper.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/VerticalSortableWrapper.tsx @@ -2,12 +2,12 @@ import * as React from "react"; import { + closestCenter, DndContext, DragEndEvent, DragOverEvent, DragStartEvent, PointerSensor, - closestCenter, useSensor, useSensors, } from "@dnd-kit/core"; @@ -16,6 +16,7 @@ import { SortableContext, verticalListSortingStrategy, } from "@dnd-kit/sortable"; + import { GeneralRecord } from "../../../lib"; type SortableItem = { diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/Head.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/Head.tsx index 8c150c737f..d83cc7434e 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/Head.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/Head.tsx @@ -1,6 +1,7 @@ "use client"; import { Button, Icons } from "@instill-ai/design-system"; + import { InstillStore, Nullable, diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/Metadata.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/Metadata.tsx index 0fe01d7e7e..5f91fa5159 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/Metadata.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/Metadata.tsx @@ -1,7 +1,9 @@ "use client"; import * as React from "react"; +import { UseFormReturn } from "react-hook-form"; import * as z from "zod"; + import { Form, Icons, @@ -9,9 +11,9 @@ import { Textarea, Tooltip, } from "@instill-ai/design-system"; -import { UseFormReturn } from "react-hook-form"; -import { PublishPipelineFormSchema } from "./PublishPipelineDialog"; + import { Nullable } from "../../../../../lib"; +import { PublishPipelineFormSchema } from "./PublishPipelineDialog"; export const Metadata = ({ form, diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/PublishPipelineDialog.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/PublishPipelineDialog.tsx index c9446cd63a..a36cf018b0 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/PublishPipelineDialog.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/PublishPipelineDialog.tsx @@ -1,18 +1,20 @@ "use client"; import * as React from "react"; -import * as z from "zod"; -import { useForm } from "react-hook-form"; +import { useRouter } from "next/navigation"; import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm } from "react-hook-form"; +import * as z from "zod"; import { useShallow } from "zustand/react/shallow"; + import { Dialog, Form, LinkButton, useToast } from "@instill-ai/design-system"; import { InstillStore, Nullable, - UpdateUserPipelinePayload, sendAmplitudeData, toastInstillError, + UpdateUserPipelinePayload, useAmplitudeCtx, useInstillStore, useUpdateUserPipeline, @@ -21,7 +23,6 @@ import { import { Head } from "./Head"; import { Metadata } from "./Metadata"; import { ReadmeEditor } from "./ReadmeEditor"; -import { useRouter } from "next/navigation"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/ReadmeEditor.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/ReadmeEditor.tsx index 62e9d1fde1..7a300edc95 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/ReadmeEditor.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/publish-pipeline-dialog/ReadmeEditor.tsx @@ -1,17 +1,19 @@ "use client"; import * as React from "react"; -import * as z from "zod"; import { EditorContent, useEditor } from "@tiptap/react"; +import { UseFormReturn } from "react-hook-form"; +import * as z from "zod"; + +import { Form } from "@instill-ai/design-system"; + import { - Nullable, deserialize, extensions, + Nullable, serialize, } from "../../../../../lib"; -import { UseFormReturn } from "react-hook-form"; import { PublishPipelineFormSchema } from "./PublishPipelineDialog"; -import { Form } from "@instill-ai/design-system"; export const ReadmeEditor = ({ form, diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/AISection.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/AISection.tsx index 378ec62611..0cac303de3 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/AISection.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/AISection.tsx @@ -1,13 +1,14 @@ import { Icons } from "@instill-ai/design-system"; + import { ImageWithFallback } from "../../../../../components"; -import { Section } from "./Section"; -import { OnSelectComponent } from "./SelectComponentDialog"; import { InstillStore, useConnectorDefinitions, useInstillStore, useShallow, } from "../../../../../lib"; +import { Section } from "./Section"; +import { OnSelectComponent } from "./SelectComponentDialog"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/ApplicationSection.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/ApplicationSection.tsx index 3152c6d236..7d5f0e49fe 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/ApplicationSection.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/ApplicationSection.tsx @@ -1,13 +1,14 @@ import { Icons } from "@instill-ai/design-system"; + import { ImageWithFallback } from "../../../../../components"; -import { Section } from "./Section"; -import { OnSelectComponent } from "./SelectComponentDialog"; import { InstillStore, useConnectorDefinitions, useInstillStore, useShallow, } from "../../../../../lib"; +import { Section } from "./Section"; +import { OnSelectComponent } from "./SelectComponentDialog"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/DataSection.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/DataSection.tsx index bf75bbd19e..d55482d7b6 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/DataSection.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/DataSection.tsx @@ -1,13 +1,14 @@ import { Icons } from "@instill-ai/design-system"; + import { ImageWithFallback } from "../../../../../components"; -import { Section } from "./Section"; -import { OnSelectComponent } from "./SelectComponentDialog"; import { InstillStore, useConnectorDefinitions, useInstillStore, useShallow, } from "../../../../../lib"; +import { Section } from "./Section"; +import { OnSelectComponent } from "./SelectComponentDialog"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/GenericSection.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/GenericSection.tsx index a436732004..5b6704203b 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/GenericSection.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/GenericSection.tsx @@ -1,4 +1,5 @@ import { Icons } from "@instill-ai/design-system"; + import { ImageWithFallback } from "../../../../../components"; import { Section } from "./Section"; import { OnSelectComponent } from "./SelectComponentDialog"; diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/OpoeratorSection.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/OpoeratorSection.tsx index 67f49e14e7..ca900cb38f 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/OpoeratorSection.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/OpoeratorSection.tsx @@ -1,13 +1,14 @@ import { Icons } from "@instill-ai/design-system"; + import { ImageWithFallback } from "../../../../../components"; -import { Section } from "./Section"; -import { OnSelectComponent } from "./SelectComponentDialog"; import { InstillStore, useInstillStore, useOperatorDefinitions, useShallow, } from "../../../../../lib"; +import { Section } from "./Section"; +import { OnSelectComponent } from "./SelectComponentDialog"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/Section.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/Section.tsx index 49c55cd455..8c7706c4aa 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/Section.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/Section.tsx @@ -1,6 +1,7 @@ -import { Icons } from "@instill-ai/design-system"; import * as React from "react"; +import { Icons } from "@instill-ai/design-system"; + export const SectionRoot = ({ title, children, diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/SelectComponentDialog.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/SelectComponentDialog.tsx index fd11e014be..425940fafe 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/SelectComponentDialog.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/select-component-dialog/SelectComponentDialog.tsx @@ -1,20 +1,20 @@ "use client"; import cn from "clsx"; + import { Button, Dialog, Icons, ScrollArea } from "@instill-ai/design-system"; +import { DataTestID } from "../../../../../constant"; import { ConnectorDefinition, IteratorDefinition, OperatorDefinition, useInstillStore, } from "../../../../../lib"; - -import { DataTestID } from "../../../../../constant"; -import { GenericSection } from "./GenericSection"; import { AISection } from "./AISection"; -import { DataSection } from "./DataSection"; import { ApplicationSection } from "./ApplicationSection"; +import { DataSection } from "./DataSection"; +import { GenericSection } from "./GenericSection"; import { OpoeratorSection } from "./OpoeratorSection"; export type OnSelectComponent = ( diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/Head.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/Head.tsx index aa23ccf071..e60f6e6a47 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/Head.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/Head.tsx @@ -1,6 +1,7 @@ "use client"; import { TabMenu } from "@instill-ai/design-system"; + import { Nullable } from "../../../../../lib"; export const Head = ({ diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/SharePipelineDialog.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/SharePipelineDialog.tsx index e2965c394b..c876e3ece1 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/SharePipelineDialog.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/SharePipelineDialog.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { Dialog } from "@instill-ai/design-system"; import { @@ -10,8 +11,8 @@ import { useShallow, } from "../../../../../lib"; import { Head } from "./Head"; -import { TabShare } from "./TabShare"; import { TabPublish } from "./TabPublish"; +import { TabShare } from "./TabShare"; const selector = (store: InstillStore) => ({ dialogSharePipelineIsOpen: store.dialogSharePipelineIsOpen, diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/TabPublish.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/TabPublish.tsx index e478db32f5..4b2c000eb9 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/TabPublish.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/TabPublish.tsx @@ -1,7 +1,9 @@ "use client"; import * as React from "react"; + import { Button } from "@instill-ai/design-system"; + import { InstillStore, Nullable, diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/TabShare.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/TabShare.tsx index a634823f65..3f63653d84 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/TabShare.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/TabShare.tsx @@ -1,25 +1,27 @@ "use client"; import * as React from "react"; +import { isAxiosError } from "axios"; + import { Button, Icons, Separator, useToast } from "@instill-ai/design-system"; + +import { LoadingSpin } from "../../../../../components"; +import { NamespaceAvatarWithFallback } from "../../../../../components/NamespaceAvatarWithFallback"; import { + getInstillApiErrorMessage, InstillStore, Nullable, OrganizationOwner, - UpdateUserPipelinePayload, - UserOwner, - getInstillApiErrorMessage, sendAmplitudeData, + UpdateUserPipelinePayload, useAmplitudeCtx, useInstillStore, + UserOwner, useShallow, useUpdateUserPipeline, useUserPipeline, } from "../../../../../lib"; -import { isAxiosError } from "axios"; -import { LoadingSpin } from "../../../../../components"; import { env } from "../../../../../server"; -import { NamespaceAvatarWithFallback } from "../../../../../components/NamespaceAvatarWithFallback"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/UnpublishPipelineDialog.tsx b/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/UnpublishPipelineDialog.tsx index f4a649a2bc..125e8e5ca5 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/UnpublishPipelineDialog.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/dialogs/share-pipeline-dialog/UnpublishPipelineDialog.tsx @@ -1,13 +1,15 @@ "use client"; import * as React from "react"; + import { Button, Dialog, useToast } from "@instill-ai/design-system"; + import { InstillStore, Nullable, - UpdateUserPipelinePayload, sendAmplitudeData, toastInstillError, + UpdateUserPipelinePayload, useAmplitudeCtx, useInstillStore, useShallow, diff --git a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/IteratorEditor.tsx b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/IteratorEditor.tsx index bc5626755c..e34c445400 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/IteratorEditor.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/IteratorEditor.tsx @@ -1,26 +1,27 @@ "use client"; import * as React from "react"; +import { ReactFlowInstance } from "reactflow"; import { Button, Icons, Separator } from "@instill-ai/design-system"; + +import { SelectComponentDialog } from ".."; import { InstillStore, Nullable, useInstillStore, useShallow, } from "../../../../lib"; -import { SelectComponentDialog } from ".."; import { composeEdgesFromNodes, composePipelineMetadataMapFromNodes, isIteratorNode, useAddNodeWithDefinition, } from "../../lib"; -import { ReactFlowInstance } from "reactflow"; +import { composePipelineComponentMapFromNodes } from "../../lib/composePipelineComponentMapFromNodes"; import { PipelineBuilderCanvas } from "../PipelineBuilderCanvas"; import { IteratorInput } from "./iterator-input/IteratorInput"; import { IteratorOutput } from "./iterator-output/IteratorOutput"; -import { composePipelineComponentMapFromNodes } from "../../lib/composePipelineComponentMapFromNodes"; const selector = (store: InstillStore) => ({ nodes: store.nodes, diff --git a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-input/IterateElementHint.tsx b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-input/IterateElementHint.tsx index ef6241afb2..c085e6ea51 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-input/IterateElementHint.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-input/IterateElementHint.tsx @@ -1,11 +1,13 @@ "use client"; import * as React from "react"; + +import { Icons } from "@instill-ai/design-system"; + +import { ReferenceHintTag } from "../../../../../components"; import { Nullable } from "../../../../../lib"; -import { InOutputOption } from "../IteratorEditor"; import { transformInstillFormatToHumanReadableFormat } from "../../../../../lib/use-instill-form/transform"; -import { ReferenceHintTag } from "../../../../../components"; -import { Icons } from "@instill-ai/design-system"; +import { InOutputOption } from "../IteratorEditor"; export const IterateElmentHint = ({ selectedInputOption, diff --git a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-input/IteratorInput.tsx b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-input/IteratorInput.tsx index ec92354f02..9db720913b 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-input/IteratorInput.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-input/IteratorInput.tsx @@ -1,8 +1,11 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; +import { Node } from "reactflow"; + import { Select } from "@instill-ai/design-system"; + import { InstillStore, Nullable, @@ -10,11 +13,10 @@ import { useInstillStore, useShallow, } from "../../../../../lib"; +import { isIteratorNode } from "../../../lib"; +import { IteratorNodeData } from "../../../type"; import { InOutputOption } from "../IteratorEditor"; import { IterateElmentHint } from "./IterateElementHint"; -import { IteratorNodeData } from "../../../type"; -import { Node } from "reactflow"; -import { isIteratorNode } from "../../../lib"; const selector = (store: InstillStore) => ({ editingIteratorID: store.editingIteratorID, diff --git a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/AddOutputButton.tsx b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/AddOutputButton.tsx index 1d262e5399..f61cd8922d 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/AddOutputButton.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/AddOutputButton.tsx @@ -1,15 +1,17 @@ "use client"; import { Node } from "reactflow"; + +import { Button } from "@instill-ai/design-system"; + import { InstillStore, Nullable, useInstillStore, useShallow, } from "../../../../../lib"; -import { IteratorNodeData } from "../../../type"; -import { Button } from "@instill-ai/design-system"; import { isIteratorNode } from "../../../lib"; +import { IteratorNodeData } from "../../../type"; const selector = (store: InstillStore) => ({ editingIteratorID: store.editingIteratorID, diff --git a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/DeleteOutputButton.tsx b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/DeleteOutputButton.tsx index d3bdde7b75..29c92d240a 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/DeleteOutputButton.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/DeleteOutputButton.tsx @@ -1,6 +1,7 @@ "use client"; import { Button, Icons } from "@instill-ai/design-system"; + import { InstillStore, useInstillStore, useShallow } from "../../../../../lib"; import { isIteratorNode } from "../../../lib"; diff --git a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/IteratorOutput.tsx b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/IteratorOutput.tsx index f798f15eba..a903220336 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/IteratorOutput.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/IteratorOutput.tsx @@ -1,13 +1,14 @@ "use client"; import * as React from "react"; +import { Node } from "reactflow"; + import { InstillStore, useInstillStore, useShallow } from "../../../../../lib"; +import { isIteratorNode } from "../../../lib"; import { IteratorNodeData } from "../../../type"; -import { Node } from "reactflow"; -import { DeleteOutputButton } from "./DeleteOutputButton"; import { AddOutputButton } from "./AddOutputButton"; +import { DeleteOutputButton } from "./DeleteOutputButton"; import { OutputValueInput } from "./OutputValueInput"; -import { isIteratorNode } from "../../../lib"; const selector = (store: InstillStore) => ({ editingIteratorID: store.editingIteratorID, diff --git a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/OutputKeyField.tsx b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/OutputKeyField.tsx index 0d72aac57e..3d7388919a 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/OutputKeyField.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/OutputKeyField.tsx @@ -1,7 +1,9 @@ "use client"; -import { Input } from "@instill-ai/design-system"; import * as React from "react"; + +import { Input } from "@instill-ai/design-system"; + import { InstillStore, Nullable, diff --git a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/OutputValueInput.tsx b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/OutputValueInput.tsx index 6ea7bdb041..1cefd14a3f 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/OutputValueInput.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/OutputValueInput.tsx @@ -1,11 +1,13 @@ "use client"; import * as React from "react"; +import { Node } from "reactflow"; + import { Input } from "@instill-ai/design-system"; + import { InstillStore, useInstillStore, useShallow } from "../../../../../lib"; -import { IteratorNodeData } from "../../../type"; -import { Node } from "reactflow"; import { isIteratorNode } from "../../../lib"; +import { IteratorNodeData } from "../../../type"; const selector = (store: InstillStore) => ({ tempSavedNodesForEditingIteratorFlow: diff --git a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/OutputValueSelect.tsx b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/OutputValueSelect.tsx index 94f0a2aeaa..c43b28b338 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/OutputValueSelect.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/iterator-editor/iterator-output/OutputValueSelect.tsx @@ -1,6 +1,10 @@ "use client"; import * as React from "react"; +import { Node } from "reactflow"; + +import { Select } from "@instill-ai/design-system"; + import { InstillStore, Nullable, @@ -8,11 +12,9 @@ import { useInstillStore, useShallow, } from "../../../../../lib"; -import { InOutputOption } from "../IteratorEditor"; -import { Select } from "@instill-ai/design-system"; -import { Node } from "reactflow"; -import { IteratorNodeData } from "../../../type"; import { isIteratorNode } from "../../../lib"; +import { IteratorNodeData } from "../../../type"; +import { InOutputOption } from "../IteratorEditor"; const selector = (store: InstillStore) => ({ nodes: store.nodes, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/EmptyNode.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/EmptyNode.tsx index c23dd1f387..021891d5ff 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/EmptyNode.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/EmptyNode.tsx @@ -2,11 +2,12 @@ import * as React from "react"; import { NodeProps, Position } from "reactflow"; + import { Icons } from "@instill-ai/design-system"; +import { useInstillStore } from "../../../../lib"; import { NodeData } from "../../type"; import { CustomHandle } from "../CustomHandle"; -import { useInstillStore } from "../../../../lib"; export const EmptyNode = ({ id }: NodeProps) => { const updateSelectResourceDialogIsOpen = useInstillStore( diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeDropdownMenu.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeDropdownMenu.tsx index 6f737fbc1c..09b4248a52 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeDropdownMenu.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeDropdownMenu.tsx @@ -1,7 +1,9 @@ "use client"; import * as React from "react"; + import { Button, Icons, Popover, Tooltip } from "@instill-ai/design-system"; + import { InstillStore, Nullable, useInstillStore } from "../../../../../lib"; const NodeDropdownMenuRoot = ({ diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeHead.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeHead.tsx index 106cc36b4c..2d334bf6bc 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeHead.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeHead.tsx @@ -1,7 +1,7 @@ "use client"; -import cn from "clsx"; import * as React from "react"; +import cn from "clsx"; export const NodeHead = ({ nodeIsCollapsed, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeIDEditor.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeIDEditor.tsx index 88f25640b3..3a4925c5e9 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeIDEditor.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeIDEditor.tsx @@ -1,22 +1,23 @@ "use client"; -import cn from "clsx"; import * as React from "react"; -import * as z from "zod"; +import { zodResolver } from "@hookform/resolvers/zod"; +import cn from "clsx"; import { useForm } from "react-hook-form"; -import { Form, Icons, Tooltip, useToast } from "@instill-ai/design-system"; +import * as z from "zod"; import { useShallow } from "zustand/react/shallow"; +import { Form, Icons, Tooltip, useToast } from "@instill-ai/design-system"; + import { AutoresizeInputWrapper } from "../../../../../components"; -import { InstillStore, useInstillStore } from "../../../../../lib"; -import { zodResolver } from "@hookform/resolvers/zod"; import { InstillErrors } from "../../../../../constant"; +import { InstillStore, useInstillStore } from "../../../../../lib"; +import { validateInstillResourceID } from "../../../../../server"; import { composeEdgesFromNodes, isGeneralNode, isIteratorNode, } from "../../../lib"; -import { validateInstillResourceID } from "../../../../../server"; const NodeIDEditorSchema = z.object({ nodeID: z.string().nullable().optional(), diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeSortableFieldWrapper.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeSortableFieldWrapper.tsx index bb22b84f98..4670997292 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeSortableFieldWrapper.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeSortableFieldWrapper.tsx @@ -1,10 +1,11 @@ "use client"; -import cn from "clsx"; import { useSortable } from "@dnd-kit/sortable"; -import { ComplicateIcons } from "@instill-ai/design-system"; -import { useReactFlow } from "reactflow"; import { CSS } from "@dnd-kit/utilities"; +import cn from "clsx"; +import { useReactFlow } from "reactflow"; + +import { ComplicateIcons } from "@instill-ai/design-system"; export const NodeSortableFieldWrapper = ({ path, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeWrapper.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeWrapper.tsx index 68ca86379e..46a181dddb 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeWrapper.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/NodeWrapper.tsx @@ -1,14 +1,16 @@ "use client"; -import cn from "clsx"; import * as React from "react"; -import { InstillStore, Nullable, useInstillStore } from "../../../../../lib"; -import { Textarea } from "@instill-ai/design-system"; -import { useShallow } from "zustand/react/shallow"; -import { NodeBottomBarProvider } from "./node-bottom-bar"; +import cn from "clsx"; import { Edge, Position, useEdges } from "reactflow"; +import { useShallow } from "zustand/react/shallow"; + +import { Textarea } from "@instill-ai/design-system"; + +import { InstillStore, Nullable, useInstillStore } from "../../../../../lib"; import { NodeData } from "../../../type"; import { CustomHandle } from "../../CustomHandle"; +import { NodeBottomBarProvider } from "./node-bottom-bar"; const selector = (store: InstillStore) => ({ updateNodes: store.updateNodes, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarContext.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarContext.tsx index cc52d82ead..609c3f9ca4 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarContext.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarContext.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { Nullable } from "../../../../../../lib"; export type NodeBottomBarMenuVelue = "output" | "schema"; diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarMenu.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarMenu.tsx index a9245846ab..183e16f3b1 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarMenu.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarMenu.tsx @@ -1,11 +1,13 @@ "use client"; -import cn from "clsx"; import * as React from "react"; -import { useNodeBottomBarContext } from "./NodeBottomBarContext"; -import { useInstillStore } from "../../../../../../lib"; +import cn from "clsx"; + import { Icons, Tooltip } from "@instill-ai/design-system"; +import { useInstillStore } from "../../../../../../lib"; +import { useNodeBottomBarContext } from "./NodeBottomBarContext"; + const NodeBottomBarMenuRootPrimitive = ({ children, }: { diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarOutput.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarOutput.tsx index 275281a0a0..aa19634d27 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarOutput.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarOutput.tsx @@ -2,15 +2,15 @@ import * as React from "react"; import JsonView from "@uiw/react-json-view"; -import { customTheme } from "../../../../../../lib/react-json-view"; +import { CopyToClipboardButton } from "../../../../../../components"; import { GeneralRecord, InstillJSONSchema, Nullable, } from "../../../../../../lib"; +import { customTheme } from "../../../../../../lib/react-json-view"; import { ComponentOutputs } from "../../../ComponentOutputs"; -import { CopyToClipboardButton } from "../../../../../../components"; export const NodeBottomBarOutput = ({ componentID, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarSchema.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarSchema.tsx index dced3a542c..b90129e065 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarSchema.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/common/node-bottom-bar/NodeBottomBarSchema.tsx @@ -1,9 +1,10 @@ "use client"; import JsonView from "@uiw/react-json-view"; + +import { CopyToClipboardButton } from "../../../../../../components"; import { GeneralRecord, Nullable } from "../../../../../../lib"; import { customTheme } from "../../../../../../lib/react-json-view"; -import { CopyToClipboardButton } from "../../../../../../components"; export const NodeBottomBarSchema = ({ componentSchema, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/control-panel/ControlPanel.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/control-panel/ControlPanel.tsx index 1248bb74df..fc4554b00a 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/control-panel/ControlPanel.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/control-panel/ControlPanel.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { Button, Icons, Tooltip } from "@instill-ai/design-system"; const ControlPanelRoot = ({ children }: { children: React.ReactNode }) => { diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/control-panel/NodeControlPanel.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/control-panel/NodeControlPanel.tsx index 36619cb69b..ddb3f60069 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/control-panel/NodeControlPanel.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/control-panel/NodeControlPanel.tsx @@ -1,25 +1,25 @@ "use client"; import * as React from "react"; -import { Icons } from "@instill-ai/design-system"; import { Node, Position } from "reactflow"; +import { useShallow } from "zustand/react/shallow"; + +import { Icons } from "@instill-ai/design-system"; import { InstillStore, Nullable, useInstillStore } from "../../../../../lib"; -import { useShallow } from "zustand/react/shallow"; -import { ControlPanel } from "./ControlPanel"; -import { NodeDropdownMenu } from "../common"; import { composeEdgesFromNodes, generateUniqueIndex, getAllNodeID, transformConnectorDefinitionIDToComponentIDPrefix, } from "../../../lib"; -import { GeneralNodeData, IteratorNodeData, NodeData } from "../../../type"; - import { isPipelineGeneralComponent, isPipelineIteratorComponent, } from "../../../lib/checkComponentType"; +import { GeneralNodeData, IteratorNodeData, NodeData } from "../../../type"; +import { NodeDropdownMenu } from "../common"; +import { ControlPanel } from "./ControlPanel"; const selector = (store: InstillStore) => ({ isOwner: store.isOwner, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/control-panel/VariableResponseNodeControlPanel.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/control-panel/VariableResponseNodeControlPanel.tsx index 063aa51f31..66f90b1760 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/control-panel/VariableResponseNodeControlPanel.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/control-panel/VariableResponseNodeControlPanel.tsx @@ -2,10 +2,12 @@ import * as React from "react"; import cn from "clsx"; + import { Icons, Tooltip } from "@instill-ai/design-system"; -import { ControlPanel } from "./ControlPanel"; + import { useInstillStore } from "../../../../../lib"; import { NodeDropdownMenu } from "../common"; +import { ControlPanel } from "./ControlPanel"; export function VariableResponseNodeControlPanel({ type, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/general-node/DataConnectorFreeForm.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/general-node/DataConnectorFreeForm.tsx index 6b31de8108..d8c8064565 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/general-node/DataConnectorFreeForm.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/general-node/DataConnectorFreeForm.tsx @@ -1,7 +1,11 @@ "use client"; -import * as z from "zod"; import * as React from "react"; +import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm } from "react-hook-form"; +import * as z from "zod"; +import { useShallow } from "zustand/react/shallow"; + import { Button, Form, @@ -9,9 +13,6 @@ import { Input, Textarea, } from "@instill-ai/design-system"; -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; -import { useShallow } from "zustand/react/shallow"; import { GeneralRecord, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/general-node/GeneralNode.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/general-node/GeneralNode.tsx index 5c503baedc..c7adefe919 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/general-node/GeneralNode.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/general-node/GeneralNode.tsx @@ -2,20 +2,26 @@ import * as React from "react"; import { NodeProps } from "reactflow"; -import { Form, Icons } from "@instill-ai/design-system"; import { useShallow } from "zustand/react/shallow"; -import { getGeneralComponentInOutputSchema } from "../../../lib"; +import { Form, Icons } from "@instill-ai/design-system"; + +import { ImageWithFallback } from "../../../../../components"; import { GeneralRecord, InstillStore, useInstillForm, useInstillStore, } from "../../../../../lib"; -import { ImageWithFallback } from "../../../../../components"; -import { DataConnectorFreeForm } from "./DataConnectorFreeForm"; +import { + getGeneralComponentInOutputSchema, + useCheckIsHidden, + useUpdaterOnNode, +} from "../../../lib"; +import { isPipelineGeneralComponent } from "../../../lib/checkComponentType"; +import { GeneralNodeData } from "../../../type"; +import { ComponentOutputReferenceHints } from "../../ComponentOutputReferenceHints"; import { OpenAdvancedConfigurationButton } from "../../OpenAdvancedConfigurationButton"; -import { useCheckIsHidden, useUpdaterOnNode } from "../../../lib"; import { NodeBottomBarContent, NodeBottomBarMenu, @@ -23,10 +29,8 @@ import { NodeIDEditor, NodeWrapper, } from "../common"; -import { ComponentOutputReferenceHints } from "../../ComponentOutputReferenceHints"; -import { GeneralNodeData } from "../../../type"; -import { isPipelineGeneralComponent } from "../../../lib/checkComponentType"; import { NodeControlPanel } from "../control-panel"; +import { DataConnectorFreeForm } from "./DataConnectorFreeForm"; const selector = (store: InstillStore) => ({ updateCurrentAdvancedConfigurationNodeID: diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/iterator-node/IteratorComponentLable.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/iterator-node/IteratorComponentLable.tsx index a8d4c7ae20..f17576a073 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/iterator-node/IteratorComponentLable.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/iterator-node/IteratorComponentLable.tsx @@ -1,11 +1,12 @@ "use client"; import * as React from "react"; -import { Nullable, PipelineGeneralComponent } from "../../../../../lib"; -import { ImageWithFallback } from "../../../../../components"; import { Icons } from "@instill-ai/design-system"; +import { ImageWithFallback } from "../../../../../components"; +import { Nullable, PipelineGeneralComponent } from "../../../../../lib"; + export const IteratorGeneralComponentLabel = ({ id, component, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/iterator-node/IteratorNode.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/iterator-node/IteratorNode.tsx index 75d335a15e..4b6fe12412 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/iterator-node/IteratorNode.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/iterator-node/IteratorNode.tsx @@ -2,9 +2,9 @@ import * as React from "react"; import { NodeProps } from "reactflow"; -import { IteratorNodeData } from "../../../type"; -import { NodeHead, NodeIDEditor, NodeWrapper } from "../common"; + import { Button, Icons } from "@instill-ai/design-system"; + import { InstillStore, PipelineGeneralComponent, @@ -17,9 +17,11 @@ import { createGraphLayout, createNodesFromPipelineComponents, } from "../../../lib"; -import { IteratorGeneralComponentLabel } from "./IteratorComponentLable"; +import { IteratorNodeData } from "../../../type"; import { ComponentOutputReferenceHints } from "../../ComponentOutputReferenceHints"; +import { NodeHead, NodeIDEditor, NodeWrapper } from "../common"; import { NodeControlPanel } from "../control-panel"; +import { IteratorGeneralComponentLabel } from "./IteratorComponentLable"; const selector = (store: InstillStore) => ({ updateIsEditingIterator: store.updateIsEditingIterator, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/response-node/ResponseNode.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/response-node/ResponseNode.tsx index 572836381c..273de752a7 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/response-node/ResponseNode.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/response-node/ResponseNode.tsx @@ -1,12 +1,15 @@ "use client"; -import cn from "clsx"; import * as React from "react"; -import * as z from "zod"; +import { arrayMove } from "@dnd-kit/sortable"; +import { zodResolver } from "@hookform/resolvers/zod"; +import cn from "clsx"; +import { useForm } from "react-hook-form"; import { NodeProps } from "reactflow"; -import { Button, Icons } from "@instill-ai/design-system"; +import * as z from "zod"; import { useShallow } from "zustand/react/shallow"; -import { arrayMove } from "@dnd-kit/sortable"; + +import { Button, Icons } from "@instill-ai/design-system"; import { InstillStore, @@ -14,20 +17,17 @@ import { PipelineOutputField, useInstillStore, } from "../../../../../lib"; -import { UserDefinedFieldItem } from "./UserDefinedFieldItem"; -import { VerticalSortableWrapper } from "../../VerticalSortableWrapper"; +import { composeEdgesFromNodes, isResponseNode } from "../../../lib"; +import { ResponseNodeData } from "../../../type"; import { ComponentOutputs } from "../../ComponentOutputs"; +import { VerticalSortableWrapper } from "../../VerticalSortableWrapper"; import { NodeHead, NodeSortableFieldWrapper, NodeWrapper } from "../common"; - -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; -import { ResponseNodeData } from "../../../type"; -import { composeEdgesFromNodes, isResponseNode } from "../../../lib"; +import { VariableResponseNodeControlPanel } from "../control-panel"; import { ResponseNodeFreeForm, ResponseNodeFreeFormSchema, } from "./ResponseNodeFreeForm"; -import { VariableResponseNodeControlPanel } from "../control-panel"; +import { UserDefinedFieldItem } from "./UserDefinedFieldItem"; const selector = (store: InstillStore) => ({ nodes: store.nodes, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/response-node/ResponseNodeFreeForm.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/response-node/ResponseNodeFreeForm.tsx index 8aa7b5b520..37158ac7fb 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/response-node/ResponseNodeFreeForm.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/response-node/ResponseNodeFreeForm.tsx @@ -2,12 +2,13 @@ import * as React from "react"; import * as z from "zod"; + import { Button, Form, Icons, Input } from "@instill-ai/design-system"; import { InstillErrors } from "../../../../../constant"; -import { constructFieldKey } from "../variable-node/constructFieldKey"; import { SmartHintFields } from "../../../../../lib/use-instill-form/components"; import { validateInstillVariableAndOutputKey } from "../../../../../server"; +import { constructFieldKey } from "../variable-node/constructFieldKey"; export const ResponseNodeFreeFormSchema = z .object({ diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/response-node/UserDefinedFieldItem.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/response-node/UserDefinedFieldItem.tsx index 854b87fc22..e52131d48c 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/response-node/UserDefinedFieldItem.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/response-node/UserDefinedFieldItem.tsx @@ -1,9 +1,11 @@ "use client"; import { useShallow } from "zustand/react/shallow"; -import { InstillStore, useInstillStore } from "../../../../../lib"; + import { Icons, Tooltip } from "@instill-ai/design-system"; +import { InstillStore, useInstillStore } from "../../../../../lib"; + const selector = (store: InstillStore) => ({ isOwner: store.isOwner, currentVersion: store.currentVersion, diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNode.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNode.tsx index 3d795ebe37..85c543495b 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNode.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNode.tsx @@ -1,42 +1,42 @@ "use client"; -import cn from "clsx"; import * as React from "react"; -import * as z from "zod"; +import { arrayMove } from "@dnd-kit/sortable"; +import { zodResolver } from "@hookform/resolvers/zod"; +import cn from "clsx"; +import { useForm } from "react-hook-form"; import { NodeProps } from "reactflow"; -import { Button, Form, Icons, useToast } from "@instill-ai/design-system"; +import * as z from "zod"; import { useShallow } from "zustand/react/shallow"; -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; + +import { Button, Form, Icons, useToast } from "@instill-ai/design-system"; import { - composeEdgesFromNodes, - isVariableNode, - recursiveHelpers, -} from "../../../lib"; -import { + GeneralRecord, InstillStore, Nullable, + sendAmplitudeData, + toastInstillError, + useAmplitudeCtx, useInstillStore, usePipelineTriggerRequestForm, useTriggerUserPipeline, useTriggerUserPipelineRelease, - toastInstillError, - GeneralRecord, - sendAmplitudeData, - useAmplitudeCtx, } from "../../../../../lib"; - -import { arrayMove } from "@dnd-kit/sortable"; -import { NodeHead, NodeSortableFieldWrapper, NodeWrapper } from "../common"; -import { VerticalSortableWrapper } from "../../VerticalSortableWrapper"; +import { + composeEdgesFromNodes, + isVariableNode, + recursiveHelpers, +} from "../../../lib"; import { TriggerNodeData } from "../../../type"; +import { VerticalSortableWrapper } from "../../VerticalSortableWrapper"; +import { NodeHead, NodeSortableFieldWrapper, NodeWrapper } from "../common"; +import { VariableResponseNodeControlPanel } from "../control-panel"; +import { triggerNodeFields } from "./VariableNodeFields"; import { TriggerNodeFreeForm, TriggerNodeFreeFormSchema, } from "./VariableNodeFreeForm"; -import { triggerNodeFields } from "./VariableNodeFields"; -import { VariableResponseNodeControlPanel } from "../control-panel"; export const CreateStartOperatorInputSchema = z.object({ title: z.string().min(1, { message: "Title is required" }), diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNodeFields.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNodeFields.tsx index 20521486fe..3f6e9d2039 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNodeFields.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNodeFields.tsx @@ -1,7 +1,9 @@ "use client"; import * as React from "react"; + import { ComplicateIcons, Icons } from "@instill-ai/design-system"; + import { PipelineVariableField } from "../../../../../lib"; export type TriggerNodeInputField = { diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNodeFreeForm.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNodeFreeForm.tsx index 774ed41911..36cf351336 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNodeFreeForm.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNodeFreeForm.tsx @@ -1,7 +1,9 @@ "use client"; import * as React from "react"; +import { UseFormReturn } from "react-hook-form"; import * as z from "zod"; + import { Button, Form, @@ -9,12 +11,11 @@ import { Input, Textarea, } from "@instill-ai/design-system"; -import { UseFormReturn } from "react-hook-form"; -import { Nullable } from "../../../../../lib"; -import { constructFieldKey } from "./constructFieldKey"; import { InstillErrors } from "../../../../../constant"; +import { Nullable } from "../../../../../lib"; import { validateInstillVariableAndOutputKey } from "../../../../../server"; +import { constructFieldKey } from "./constructFieldKey"; import { VariableNodeTypeSelect } from "./VariableNodeTypeSelect"; export const TriggerNodeFreeFormSchema = z diff --git a/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNodeTypeSelect.tsx b/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNodeTypeSelect.tsx index c1661958c7..b53a8848e7 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNodeTypeSelect.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/nodes/variable-node/VariableNodeTypeSelect.tsx @@ -1,9 +1,11 @@ "use client"; -import cn from "clsx"; import * as React from "react"; -import { Nullable, useInstillStore } from "../../../../../lib"; +import cn from "clsx"; + import { Select } from "@instill-ai/design-system"; + +import { Nullable, useInstillStore } from "../../../../../lib"; import { triggerNodeFields } from "./VariableNodeFields"; export const VariableNodeTypeSelect = ({ diff --git a/packages/toolkit/src/view/pipeline-builder/components/release-menu/Description.tsx b/packages/toolkit/src/view/pipeline-builder/components/release-menu/Description.tsx index 223b610bd0..b66d6aab54 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/release-menu/Description.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/release-menu/Description.tsx @@ -1,6 +1,7 @@ "use client"; import { Form, Textarea } from "@instill-ai/design-system"; + import { UseReleasePipelineFormReturn } from "./ReleaseMenu"; export const Description = ({ diff --git a/packages/toolkit/src/view/pipeline-builder/components/release-menu/ReleaseMenu.tsx b/packages/toolkit/src/view/pipeline-builder/components/release-menu/ReleaseMenu.tsx index a1a1b058b2..40ee3d5936 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/release-menu/ReleaseMenu.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/release-menu/ReleaseMenu.tsx @@ -1,24 +1,26 @@ "use client"; import * as React from "react"; +import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm, UseFormReturn } from "react-hook-form"; import * as z from "zod"; -import { Head } from "./Head"; -import { SemverSelect } from "./SemverSelect"; + +import { Button, Form, useToast } from "@instill-ai/design-system"; + +import { LoadingSpin } from "../../../../components"; import { CreateUserPipelineReleasePayload, InstillStore, toastInstillError, - useRouteInfo, useCreateUserPipelineRelease, useInstillStore, + useRouteInfo, useShallow, } from "../../../../lib"; -import { UseFormReturn, useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; -import { Button, Form, useToast } from "@instill-ai/design-system"; -import { Description } from "./Description"; -import { LoadingSpin } from "../../../../components"; import { composePipelineRecipeFromNodes } from "../../lib"; +import { Description } from "./Description"; +import { Head } from "./Head"; +import { SemverSelect } from "./SemverSelect"; export const ReleasePipelineFormSchema = z.object({ id: z.string(), diff --git a/packages/toolkit/src/view/pipeline-builder/components/release-menu/SemverSelect.tsx b/packages/toolkit/src/view/pipeline-builder/components/release-menu/SemverSelect.tsx index 508ec5c5d8..9002bb7101 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/release-menu/SemverSelect.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/release-menu/SemverSelect.tsx @@ -3,15 +3,16 @@ import * as React from "react"; import * as semver from "semver"; +import { RadioGroup, Tag } from "@instill-ai/design-system"; + import { InstillStore, Nullable, - useRouteInfo, useInstillStore, + useRouteInfo, useShallow, } from "../../../../lib"; import { useSortedReleases } from "../../lib"; -import { RadioGroup, Tag } from "@instill-ai/design-system"; import { UseReleasePipelineFormReturn } from "./ReleaseMenu"; const selector = (store: InstillStore) => ({ diff --git a/packages/toolkit/src/view/pipeline-builder/components/right-panel/PipelineGeneralComponentFormOnRightPanel.tsx b/packages/toolkit/src/view/pipeline-builder/components/right-panel/PipelineGeneralComponentFormOnRightPanel.tsx index 5b874cb406..5855898b36 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/right-panel/PipelineGeneralComponentFormOnRightPanel.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/right-panel/PipelineGeneralComponentFormOnRightPanel.tsx @@ -1,12 +1,16 @@ "use client"; import * as React from "react"; + import { Form } from "@instill-ai/design-system"; -import { useInstillForm } from "../../../../lib/use-instill-form"; -import { useCheckIsHidden, useUpdaterOnRightPanel } from "../../lib"; -import { getGeneralComponentConfiguration } from "../../lib"; import { useInstillStore } from "../../../../lib"; +import { useInstillForm } from "../../../../lib/use-instill-form"; +import { + getGeneralComponentConfiguration, + useCheckIsHidden, + useUpdaterOnRightPanel, +} from "../../lib"; import { GeneralNodeData } from "../../type"; export const PipelineGeneralComponentFormOnRightPanel = ({ diff --git a/packages/toolkit/src/view/pipeline-builder/components/right-panel/RightPanel.tsx b/packages/toolkit/src/view/pipeline-builder/components/right-panel/RightPanel.tsx index ae9907ac74..75fb5ee7ec 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/right-panel/RightPanel.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/right-panel/RightPanel.tsx @@ -1,12 +1,14 @@ "use client"; import * as React from "react"; +import { Node } from "reactflow"; import { useShallow } from "zustand/react/shallow"; + import { Button, Icons, Separator } from "@instill-ai/design-system"; + import { InstillStore, useInstillStore } from "../../../../lib"; import { isGeneralNode } from "../../lib"; import { GeneralNodeData } from "../../type"; -import { Node } from "reactflow"; import { PipelineGeneralComponentFormOnRightPanel } from "./PipelineGeneralComponentFormOnRightPanel"; const selector = (store: InstillStore) => ({ diff --git a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/PipelineName.tsx b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/PipelineName.tsx index 0b21daaf29..f6ad5da1a2 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/PipelineName.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/PipelineName.tsx @@ -1,13 +1,15 @@ "use client"; -import * as z from "zod"; import * as React from "react"; -import { Form, Input, Popover } from "@instill-ai/design-system"; -import { useRenamePipeline } from "../../lib"; -import { InstillStore, useInstillStore, useShallow } from "../../../../lib"; -import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm } from "react-hook-form"; +import * as z from "zod"; + +import { Form, Input, Popover } from "@instill-ai/design-system"; + import { LoadingSpin } from "../../../../components"; +import { InstillStore, useInstillStore, useShallow } from "../../../../lib"; +import { useRenamePipeline } from "../../lib"; const selector = (store: InstillStore) => ({ pipelineId: store.pipelineId, diff --git a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Release.tsx b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Release.tsx index 5cdfecfeb9..dd284da23b 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Release.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Release.tsx @@ -1,7 +1,9 @@ "use client"; import cn from "clsx"; + import { Button, Icons, Popover } from "@instill-ai/design-system"; + import { useInstillStore } from "../../../../lib"; import { ReleaseMenu } from "../release-menu"; diff --git a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Run.tsx b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Run.tsx index 680cd3a60b..b61f2cb6dd 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Run.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Run.tsx @@ -1,10 +1,12 @@ "use client"; +import { useRef } from "react"; + import { Button, Icons } from "@instill-ai/design-system"; + +import { LoadingSpin } from "../../../../components"; import { InstillStore, useInstillStore, useShallow } from "../../../../lib"; import { useSavePipeline } from "../../lib"; -import { LoadingSpin } from "../../../../components"; -import { useRef } from "react"; const selector = (store: InstillStore) => ({ pipelineRecipeIsDirty: store.pipelineRecipeIsDirty, diff --git a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Save.tsx b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Save.tsx index ee855ae7ce..db28063199 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Save.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Save.tsx @@ -2,9 +2,11 @@ import * as React from "react"; import cn from "clsx"; + import { Button, Icons } from "@instill-ai/design-system"; -import { InstillStore, useInstillStore, useShallow } from "../../../../lib"; + import { LoadingSpin } from "../../../../components"; +import { InstillStore, useInstillStore, useShallow } from "../../../../lib"; import { useSavePipeline } from "../../lib"; const selector = (store: InstillStore) => ({ diff --git a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Share.tsx b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Share.tsx index ad7da064e9..76f948e7f2 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Share.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Share.tsx @@ -1,15 +1,17 @@ "use client"; import * as React from "react"; + import { Button, Icons } from "@instill-ai/design-system"; -import { SharePipelineDialog } from "../dialogs"; + import { - useRouteInfo, - useInstillStore, - useUserPipeline, InstillStore, + useInstillStore, + useRouteInfo, useShallow, + useUserPipeline, } from "../../../../lib"; +import { SharePipelineDialog } from "../dialogs"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Toolkit.tsx b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Toolkit.tsx index ce114e282b..6919476375 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Toolkit.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/Toolkit.tsx @@ -1,20 +1,22 @@ "use client"; import * as React from "react"; -import { PipelineToolkitDialog } from "../PipelineToolkitDialog"; +import { Node } from "reactflow"; + import { Button, Icons } from "@instill-ai/design-system"; + import { GeneralRecord, InstillStore, - useRouteInfo, useInstillStore, + useRouteInfo, useShallow, } from "../../../../lib"; -import { Node } from "reactflow"; -import { triggerPipelineSnippets } from "../triggerPipelineSnippets"; -import { composeCompleteNodesUnderEditingIteratorMode } from "../../lib/composeCompleteNodesUnderEditingIteratorMode"; import { env } from "../../../../server"; +import { composeCompleteNodesUnderEditingIteratorMode } from "../../lib/composeCompleteNodesUnderEditingIteratorMode"; import { TriggerNodeData } from "../../type"; +import { PipelineToolkitDialog } from "../PipelineToolkitDialog"; +import { triggerPipelineSnippets } from "../triggerPipelineSnippets"; const selector = (store: InstillStore) => ({ currentVersion: store.currentVersion, diff --git a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/TopControlMenu.tsx b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/TopControlMenu.tsx index 00f3725809..92a38e4bce 100644 --- a/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/TopControlMenu.tsx +++ b/packages/toolkit/src/view/pipeline-builder/components/top-control-menu/TopControlMenu.tsx @@ -2,24 +2,26 @@ import * as React from "react"; import cn from "clsx"; -import { Run } from "./Run"; -import { Toolkit } from "./Toolkit"; -import { Save } from "./Save"; -import { Share } from "./Share"; -import { Release } from "./Release"; -import { PublishPipelineDialog, SelectComponentDialog } from "../dialogs"; +import { ReactFlowInstance } from "reactflow"; + +import { Button, Icons } from "@instill-ai/design-system"; + import { InstillStore, Nullable, - useRouteInfo, useGuardPipelineBuilderUnsavedChangesNavigation, useInstillStore, + useRouteInfo, useShallow, } from "../../../../lib"; -import { ReactFlowInstance } from "reactflow"; import { useAddNodeWithDefinition } from "../../lib"; -import { Button, Icons } from "@instill-ai/design-system"; +import { PublishPipelineDialog, SelectComponentDialog } from "../dialogs"; import { PipelineName } from "./PipelineName"; +import { Release } from "./Release"; +import { Run } from "./Run"; +import { Save } from "./Save"; +import { Share } from "./Share"; +import { Toolkit } from "./Toolkit"; const selector = (store: InstillStore) => ({ pipelineIsNew: store.pipelineIsNew, diff --git a/packages/toolkit/src/view/pipeline-builder/lib/checkIsValidPosition.test.ts b/packages/toolkit/src/view/pipeline-builder/lib/checkIsValidPosition.test.ts index f62636196c..7e55c28c2f 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/checkIsValidPosition.test.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/checkIsValidPosition.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { PipelineRecipe } from "../../../lib"; import { checkIsValidPosition } from "./checkIsValidPosition"; diff --git a/packages/toolkit/src/view/pipeline-builder/lib/checkNodeType.tsx b/packages/toolkit/src/view/pipeline-builder/lib/checkNodeType.tsx index 984fcc6a6e..6484814fd0 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/checkNodeType.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/checkNodeType.tsx @@ -1,4 +1,5 @@ import { Node } from "reactflow"; + import { GeneralNodeData, IteratorNodeData, diff --git a/packages/toolkit/src/view/pipeline-builder/lib/composeCompleteNodesUnderEditingIteratorMode.tsx b/packages/toolkit/src/view/pipeline-builder/lib/composeCompleteNodesUnderEditingIteratorMode.tsx index 6441ee4570..fdfe13e55c 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/composeCompleteNodesUnderEditingIteratorMode.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/composeCompleteNodesUnderEditingIteratorMode.tsx @@ -1,7 +1,8 @@ import { Node } from "reactflow"; + import { NodeData } from "../type"; -import { composePipelineMetadataMapFromNodes } from "./composePipelineMetadataMapFromNodes"; import { composePipelineComponentMapFromNodes } from "./composePipelineComponentMapFromNodes"; +import { composePipelineMetadataMapFromNodes } from "./composePipelineMetadataMapFromNodes"; export function composeCompleteNodesUnderEditingIteratorMode({ editingIteratorID, diff --git a/packages/toolkit/src/view/pipeline-builder/lib/composeEdgesFromNodes.test.ts b/packages/toolkit/src/view/pipeline-builder/lib/composeEdgesFromNodes.test.ts index a6a2da4193..a6d114f6b9 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/composeEdgesFromNodes.test.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/composeEdgesFromNodes.test.ts @@ -1,7 +1,8 @@ -import { test, expect } from "vitest"; -import { composeEdgesFromNodes } from "./composeEdgesFromNodes"; import { Node } from "reactflow"; +import { expect, test } from "vitest"; + import { NodeData } from "../type"; +import { composeEdgesFromNodes } from "./composeEdgesFromNodes"; test("should get edges from basic components", () => { const nodes: Node[] = [ diff --git a/packages/toolkit/src/view/pipeline-builder/lib/composeEdgesFromNodes.ts b/packages/toolkit/src/view/pipeline-builder/lib/composeEdgesFromNodes.ts index 5541ae2463..37137ec842 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/composeEdgesFromNodes.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/composeEdgesFromNodes.ts @@ -1,23 +1,22 @@ -import { v4 as uuidv4 } from "uuid"; import { Edge, Node } from "reactflow"; +import { v4 as uuidv4 } from "uuid"; -import type { InstillReference, NodeData } from "../type"; import type { InstillJSONSchema, Nullable } from "../../../lib"; -import { getReferencesFromAny } from "./getReferencesFromAny"; -import { - InstillAIOpenAPIProperty, - getPropertiesFromOpenAPISchema, -} from "./getPropertiesFromOpenAPISchema"; -import { getGeneralComponentConfiguration } from "./getGeneralComponentConfiguration"; - -import { createNodesFromPipelineComponents } from "./createNodesFromPipelineComponents"; +import type { InstillReference, NodeData } from "../type"; import { isGeneralNode, isIteratorNode, isResponseNode, isVariableNode, } from "./checkNodeType"; +import { createNodesFromPipelineComponents } from "./createNodesFromPipelineComponents"; +import { getGeneralComponentConfiguration } from "./getGeneralComponentConfiguration"; import { getGeneralComponentInOutputSchema } from "./getGeneralComponentInOutputSchema"; +import { + getPropertiesFromOpenAPISchema, + InstillAIOpenAPIProperty, +} from "./getPropertiesFromOpenAPISchema"; +import { getReferencesFromAny } from "./getReferencesFromAny"; type ReferenceWithNodeInfo = { nodeID: string; diff --git a/packages/toolkit/src/view/pipeline-builder/lib/composePipelineComponentMapFromNodes.ts b/packages/toolkit/src/view/pipeline-builder/lib/composePipelineComponentMapFromNodes.ts index 3bb1ee8ce1..7a42f3cca9 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/composePipelineComponentMapFromNodes.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/composePipelineComponentMapFromNodes.ts @@ -1,8 +1,9 @@ import { Node } from "reactflow"; -import { NodeData } from "../type"; + import { PipelineComponentMap } from "../../../lib"; -import { isGeneralNode, isIteratorNode } from "./checkNodeType"; +import { NodeData } from "../type"; import { isPipelineGeneralComponent } from "./checkComponentType"; +import { isGeneralNode, isIteratorNode } from "./checkNodeType"; import { recursiveHelpers } from "./recursive-helpers"; export function composePipelineComponentMapFromNodes( diff --git a/packages/toolkit/src/view/pipeline-builder/lib/composePipelineMetadataMapFromNodes.test.ts b/packages/toolkit/src/view/pipeline-builder/lib/composePipelineMetadataMapFromNodes.test.ts index c4d4534ae3..123473adb5 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/composePipelineMetadataMapFromNodes.test.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/composePipelineMetadataMapFromNodes.test.ts @@ -1,5 +1,6 @@ import { Node } from "reactflow"; -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { NodeData } from "../type"; import { composePipelineMetadataMapFromNodes } from "./composePipelineMetadataMapFromNodes"; diff --git a/packages/toolkit/src/view/pipeline-builder/lib/composePipelineMetadataMapFromNodes.ts b/packages/toolkit/src/view/pipeline-builder/lib/composePipelineMetadataMapFromNodes.ts index 27caee90ef..c017a8d64c 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/composePipelineMetadataMapFromNodes.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/composePipelineMetadataMapFromNodes.ts @@ -1,4 +1,5 @@ import { Node } from "reactflow"; + import { NodeData, PipelineComponentMetadataMap } from "../type"; export function composePipelineMetadataMapFromNodes(nodes: Node[]) { diff --git a/packages/toolkit/src/view/pipeline-builder/lib/composePipelineRecipeFromNodes.tsx b/packages/toolkit/src/view/pipeline-builder/lib/composePipelineRecipeFromNodes.tsx index 027ef3ce7d..92d9566d22 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/composePipelineRecipeFromNodes.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/composePipelineRecipeFromNodes.tsx @@ -1,14 +1,15 @@ -import { recursiveHelpers } from "./recursive-helpers"; -import { PipelineComponentMap, PipelineRecipe } from "../../../lib"; import { Node } from "reactflow"; + +import { PipelineComponentMap, PipelineRecipe } from "../../../lib"; import { NodeData, ResponseNodeData, TriggerNodeData } from "../type"; +import { isPipelineGeneralComponent } from "./checkComponentType"; import { isGeneralNode, isIteratorNode, isResponseNode, isVariableNode, } from "./checkNodeType"; -import { isPipelineGeneralComponent } from "./checkComponentType"; +import { recursiveHelpers } from "./recursive-helpers"; export function composePipelineRecipeFromNodes( nodes: Node[], diff --git a/packages/toolkit/src/view/pipeline-builder/lib/createGraphLayout.tsx b/packages/toolkit/src/view/pipeline-builder/lib/createGraphLayout.tsx index a15c642e79..7545f77a42 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/createGraphLayout.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/createGraphLayout.tsx @@ -1,5 +1,6 @@ import ELK, { ElkExtendedEdge, ElkNode } from "elkjs/lib/elk.bundled.js"; import { Edge, Node, Position } from "reactflow"; + import { NodeData } from "../type"; // This is the default dimension of a connector node we have right now diff --git a/packages/toolkit/src/view/pipeline-builder/lib/createNodesFromPipelineComponents.tsx b/packages/toolkit/src/view/pipeline-builder/lib/createNodesFromPipelineComponents.tsx index a2f72cf6e4..ad34e10850 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/createNodesFromPipelineComponents.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/createNodesFromPipelineComponents.tsx @@ -1,8 +1,8 @@ import { Node } from "reactflow"; -import { NodeData, PipelineComponentMetadata } from "../type"; import { recursiveHelpers } from "."; import { GeneralRecord, Nullable, PipelineComponentMap } from "../../../lib"; +import { NodeData, PipelineComponentMetadata } from "../type"; import { isPipelineGeneralComponent, isPipelineIteratorComponent, diff --git a/packages/toolkit/src/view/pipeline-builder/lib/createNodesFromPipelineRecipe.tsx b/packages/toolkit/src/view/pipeline-builder/lib/createNodesFromPipelineRecipe.tsx index 74adc62010..7a6abfc2e7 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/createNodesFromPipelineRecipe.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/createNodesFromPipelineRecipe.tsx @@ -1,4 +1,5 @@ import { Node } from "reactflow"; + import { GeneralRecord, Nullable, PipelineRecipe } from "../../../lib"; import { NodeData, PipelineComponentMetadata } from "../type"; import { createNodesFromPipelineComponents } from "./createNodesFromPipelineComponents"; diff --git a/packages/toolkit/src/view/pipeline-builder/lib/generateNewComponentIndex.test.ts b/packages/toolkit/src/view/pipeline-builder/lib/generateNewComponentIndex.test.ts index 4d3896b550..4cb538024d 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/generateNewComponentIndex.test.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/generateNewComponentIndex.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { generateUniqueIndex } from "./generateUniqueIndex"; test("should generate new node idx", () => { diff --git a/packages/toolkit/src/view/pipeline-builder/lib/getAllNodeID.tsx b/packages/toolkit/src/view/pipeline-builder/lib/getAllNodeID.tsx index 0238993b4d..d2f1206a4c 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/getAllNodeID.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/getAllNodeID.tsx @@ -1,4 +1,5 @@ import { Node } from "reactflow"; + import { NodeData } from "../type"; import { isIteratorNode } from "./checkNodeType"; diff --git a/packages/toolkit/src/view/pipeline-builder/lib/getGeneralComponentInOutputSchema.ts b/packages/toolkit/src/view/pipeline-builder/lib/getGeneralComponentInOutputSchema.ts index 58b86620ca..d3159fea94 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/getGeneralComponentInOutputSchema.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/getGeneralComponentInOutputSchema.ts @@ -1,9 +1,10 @@ +import { JSONSchema7 } from "json-schema"; + import { InstillJSONSchema, Nullable, PipelineGeneralComponent, } from "../../../lib"; -import { JSONSchema7 } from "json-schema"; export function getGeneralComponentInOutputSchema( component: PipelineGeneralComponent, diff --git a/packages/toolkit/src/view/pipeline-builder/lib/getReferencesFromString.test.ts b/packages/toolkit/src/view/pipeline-builder/lib/getReferencesFromString.test.ts index 2af0b5e052..3fb021e6da 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/getReferencesFromString.test.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/getReferencesFromString.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { getReferencesFromString } from "./getReferencesFromString"; test("should get reference from basic string", () => { diff --git a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useAddNodeWithDefinition.tsx b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useAddNodeWithDefinition.tsx index 13ab0ed1d4..ee2e6d0d36 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useAddNodeWithDefinition.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useAddNodeWithDefinition.tsx @@ -1,5 +1,6 @@ import * as React from "react"; import { Position, ReactFlowInstance } from "reactflow"; + import { ConnectorDefinition, InstillStore, @@ -9,13 +10,13 @@ import { useInstillStore, useShallow, } from "../../../../lib"; -import { transformConnectorDefinitionIDToComponentIDPrefix } from "../transformConnectorDefinitionIDToComponentIDPrefix"; -import { generateUniqueIndex } from "../generateUniqueIndex"; -import { getAllNodeID } from "../getAllNodeID"; import { isConnectorDefinition, isIteratorDefinition, } from "../../../../lib/vdp-sdk/helper"; +import { generateUniqueIndex } from "../generateUniqueIndex"; +import { getAllNodeID } from "../getAllNodeID"; +import { transformConnectorDefinitionIDToComponentIDPrefix } from "../transformConnectorDefinitionIDToComponentIDPrefix"; const selector = (store: InstillStore) => ({ nodes: store.nodes, diff --git a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useCheckIsHidden.tsx b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useCheckIsHidden.tsx index a00f30b771..e385754243 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useCheckIsHidden.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useCheckIsHidden.tsx @@ -1,4 +1,5 @@ import * as React from "react"; + import { CheckIsHidden } from "../../../../lib"; export function useCheckIsHidden(type: "onNode" | "onRightPanel") { diff --git a/packages/toolkit/src/view/pipeline-builder/lib/hooks/usePipelineBuilderGraph.tsx b/packages/toolkit/src/view/pipeline-builder/lib/hooks/usePipelineBuilderGraph.tsx index 45b1747b51..4ada8b97d5 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/hooks/usePipelineBuilderGraph.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/hooks/usePipelineBuilderGraph.tsx @@ -1,17 +1,17 @@ import * as React from "react"; +import { useShallow } from "zustand/react/shallow"; import { checkIsValidPosition, composeEdgesFromNodes, createGraphLayout, } from "../../.."; +import { useRouteInfo } from "../../../../lib"; import { useUserPipeline } from "../../../../lib/react-query-service"; import { InstillStore, useInstillStore, } from "../../../../lib/use-instill-store"; -import { useShallow } from "zustand/react/shallow"; -import { useRouteInfo } from "../../../../lib"; import { createNodesFromPipelineRecipe } from "../createNodesFromPipelineRecipe"; const selector = (store: InstillStore) => ({ diff --git a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useRenamePipeline.tsx b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useRenamePipeline.tsx index e8c71d90d4..cfbae65b1f 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useRenamePipeline.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useRenamePipeline.tsx @@ -1,24 +1,26 @@ import * as React from "react"; +import { useRouter } from "next/navigation"; +import { isAxiosError } from "axios"; + +import { useToast } from "@instill-ai/design-system"; + import { CreateUserPipelinePayload, + getInstillApiErrorMessage, InstillStore, RenameUserPipelinePayload, - UpdateUserPipelinePayload, - getInstillApiErrorMessage, sendAmplitudeData, + UpdateUserPipelinePayload, useAmplitudeCtx, - useRouteInfo, useCreateUserPipeline, useInstillStore, useRenameUserPipeline, + useRouteInfo, useShallow, useUpdateUserPipeline, } from "../../../../lib"; -import { composePipelineRecipeFromNodes } from "../composePipelineRecipeFromNodes"; import { composePipelineMetadataMapFromNodes } from "../composePipelineMetadataMapFromNodes"; -import { useToast } from "@instill-ai/design-system"; -import { isAxiosError } from "axios"; -import { useRouter } from "next/navigation"; +import { composePipelineRecipeFromNodes } from "../composePipelineRecipeFromNodes"; const selector = (store: InstillStore) => ({ nodes: store.nodes, diff --git a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useSavePipeline.tsx b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useSavePipeline.tsx index 7f50859e52..c50c9ec3b9 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useSavePipeline.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useSavePipeline.tsx @@ -1,24 +1,26 @@ import * as React from "react"; +import { isAxiosError } from "axios"; + +import { useToast } from "@instill-ai/design-system"; + +import { + composeEdgesFromNodes, + composePipelineMetadataMapFromNodes, + composePipelineRecipeFromNodes, +} from ".."; import { CreateUserPipelinePayload, - InstillStore, - UpdateUserPipelinePayload, getInstillApiErrorMessage, + InstillStore, sendAmplitudeData, + UpdateUserPipelinePayload, useAmplitudeCtx, - useRouteInfo, useCreateUserPipeline, useInstillStore, + useRouteInfo, useShallow, useUpdateUserPipeline, } from "../../../../lib"; -import { - composeEdgesFromNodes, - composePipelineMetadataMapFromNodes, - composePipelineRecipeFromNodes, -} from ".."; -import { useToast } from "@instill-ai/design-system"; -import { isAxiosError } from "axios"; import { composeCompleteNodesUnderEditingIteratorMode } from "../composeCompleteNodesUnderEditingIteratorMode"; import { createNodesFromPipelineRecipe } from "../createNodesFromPipelineRecipe"; diff --git a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useSortedReleases.tsx b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useSortedReleases.tsx index 3620e4edbd..ff854304b8 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useSortedReleases.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useSortedReleases.tsx @@ -1,5 +1,6 @@ import * as React from "react"; import * as semver from "semver"; + import { Nullable, PipelineRelease, diff --git a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useUpdaterOnNode.tsx b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useUpdaterOnNode.tsx index 19d9a03b2f..286c1c20cc 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useUpdaterOnNode.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useUpdaterOnNode.tsx @@ -1,19 +1,19 @@ import * as React from "react"; +import debounce from "lodash.debounce"; +import isEqual from "lodash.isequal"; +import { Node } from "reactflow"; +import { useShallow } from "zustand/react/shallow"; + +import { composeEdgesFromNodes, isGeneralNode } from ".."; import { GeneralRecord, GeneralUseFormReturn, InstillStore, Nullable, - ZodAnyValidatorSchema, useInstillStore, + ZodAnyValidatorSchema, } from "../../../../lib"; -import { useShallow } from "zustand/react/shallow"; -import { composeEdgesFromNodes, isGeneralNode } from ".."; import { GeneralNodeData, NodeData } from "../../type"; - -import debounce from "lodash.debounce"; -import isEqual from "lodash.isequal"; -import { Node } from "reactflow"; import { isPipelineGeneralComponent } from "../checkComponentType"; const selector = (store: InstillStore) => ({ diff --git a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useUpdaterOnRightPanel.tsx b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useUpdaterOnRightPanel.tsx index 2c513b55b9..7680da4695 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/hooks/useUpdaterOnRightPanel.tsx +++ b/packages/toolkit/src/view/pipeline-builder/lib/hooks/useUpdaterOnRightPanel.tsx @@ -1,20 +1,20 @@ import * as React from "react"; +import debounce from "lodash.debounce"; +import isEqual from "lodash.isequal"; +import { Node } from "reactflow"; +import { useShallow } from "zustand/react/shallow"; + +import { composeEdgesFromNodes, isIteratorNode } from ".."; import { GeneralRecord, GeneralUseFormReturn, InstillStore, Nullable, - ZodAnyValidatorSchema, useInstillStore, + ZodAnyValidatorSchema, } from "../../../../lib"; -import { useShallow } from "zustand/react/shallow"; -import { composeEdgesFromNodes, isIteratorNode } from ".."; import { GeneralNodeData, NodeData } from "../../type"; -import { Node } from "reactflow"; -import debounce from "lodash.debounce"; -import isEqual from "lodash.isequal"; - const selector = (store: InstillStore) => ({ nodes: store.nodes, updateNodes: store.updateNodes, diff --git a/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/index.ts b/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/index.ts index c8fdf08df5..e5914e7923 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/index.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/index.ts @@ -1,8 +1,8 @@ +import { recursiveParseNumberToString } from "./recursiveParseNumberToString"; import { recursiveParseToNum } from "./recursiveParseToNum"; import { recursiveRemoveUndefinedAndNullFromArray } from "./recursiveRemoveUndefinedAndNullFromArray"; import { recursiveReplaceNullAndEmptyStringWithUndefined } from "./recursiveReplaceNullAndEmptyStringWithUndefined"; import { recursiveReplaceTargetValue } from "./recursiveReplaceTargetValue"; -import { recursiveParseNumberToString } from "./recursiveParseNumberToString"; export const recursiveHelpers = { parseToNum: recursiveParseToNum, diff --git a/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveParseNumberToString.test.ts b/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveParseNumberToString.test.ts index 6fb5afaf8f..765b0ed8fa 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveParseNumberToString.test.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveParseNumberToString.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { recursiveParseNumberToString } from "./recursiveParseNumberToString"; test("Should parse number to string", () => { diff --git a/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveParseToNum.test.ts b/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveParseToNum.test.ts index b380b2527f..ead23ef29f 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveParseToNum.test.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveParseToNum.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { recursiveParseToNum } from "./recursiveParseToNum"; test("should parse basic primitive", () => { diff --git a/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveRemoveUndefinedAndNullFromArray.test.ts b/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveRemoveUndefinedAndNullFromArray.test.ts index 182593c10d..cb6d76a865 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveRemoveUndefinedAndNullFromArray.test.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveRemoveUndefinedAndNullFromArray.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { recursiveRemoveUndefinedAndNullFromArray } from "./recursiveRemoveUndefinedAndNullFromArray"; test("should remove undefined and null from array", () => { diff --git a/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveReplaceNullAndEmptyStringWithUndefined.test.ts b/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveReplaceNullAndEmptyStringWithUndefined.test.ts index 409c08a024..0ef61a1cc7 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveReplaceNullAndEmptyStringWithUndefined.test.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveReplaceNullAndEmptyStringWithUndefined.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { recursiveReplaceNullAndEmptyStringWithUndefined } from "./recursiveReplaceNullAndEmptyStringWithUndefined"; test("should replace null and empty string with undefined", () => { diff --git a/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveReplaceTargetValue.test.ts b/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveReplaceTargetValue.test.ts index 08c82a883a..d670e783db 100644 --- a/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveReplaceTargetValue.test.ts +++ b/packages/toolkit/src/view/pipeline-builder/lib/recursive-helpers/recursiveReplaceTargetValue.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from "vitest"; +import { expect, test } from "vitest"; + import { recursiveReplaceTargetValue } from "./recursiveReplaceTargetValue"; test("Should replace target value from array", () => { diff --git a/packages/toolkit/src/view/pipeline-builder/type.ts b/packages/toolkit/src/view/pipeline-builder/type.ts index 6b4b80812f..1f421d6cd2 100644 --- a/packages/toolkit/src/view/pipeline-builder/type.ts +++ b/packages/toolkit/src/view/pipeline-builder/type.ts @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { + GeneralRecord, Nullable, - PipelineRecipe, + PipelineGeneralComponent, PipelineIteratorComponent, - GeneralRecord, - PipelineVariableFieldMap, PipelineOutputFieldMap, - PipelineGeneralComponent, + PipelineRecipe, + PipelineVariableFieldMap, } from "../../lib"; export type TriggerNodeData = { diff --git a/packages/toolkit/src/view/pipeline/PipelineTablePlaceholder.tsx b/packages/toolkit/src/view/pipeline/PipelineTablePlaceholder.tsx index 9c0b37e1d1..e40821c340 100644 --- a/packages/toolkit/src/view/pipeline/PipelineTablePlaceholder.tsx +++ b/packages/toolkit/src/view/pipeline/PipelineTablePlaceholder.tsx @@ -1,10 +1,9 @@ "use client"; import cn from "clsx"; -import { - TablePlaceholderBase, - type TablePlaceholderBaseProps, -} from "../../components"; + +import type { TablePlaceholderBaseProps } from "../../components"; +import { TablePlaceholderBase } from "../../components"; export type PipelineTablePlaceholderProps = Pick< TablePlaceholderBaseProps, diff --git a/packages/toolkit/src/view/pipeline/PipelinesTable.tsx b/packages/toolkit/src/view/pipeline/PipelinesTable.tsx index 7d03daa916..060917628d 100644 --- a/packages/toolkit/src/view/pipeline/PipelinesTable.tsx +++ b/packages/toolkit/src/view/pipeline/PipelinesTable.tsx @@ -1,12 +1,14 @@ "use client"; +import { useRouter } from "next/navigation"; import { ColumnDef } from "@tanstack/react-table"; + import { Button, DataTable } from "@instill-ai/design-system"; -import { formatDate, type Pipeline } from "../../lib"; +import type { Pipeline } from "../../lib"; import { SortIcon, TableError } from "../../components"; +import { formatDate } from "../../lib"; import { PipelineTablePlaceholder } from "./PipelineTablePlaceholder"; -import { useRouter } from "next/navigation"; export type PipelinesTableProps = { pipelines: Pipeline[]; diff --git a/packages/toolkit/src/view/pipeline/view-pipeline/EditMetadataDialog.tsx b/packages/toolkit/src/view/pipeline/view-pipeline/EditMetadataDialog.tsx index 6dcf7aa74f..7234c31196 100644 --- a/packages/toolkit/src/view/pipeline/view-pipeline/EditMetadataDialog.tsx +++ b/packages/toolkit/src/view/pipeline/view-pipeline/EditMetadataDialog.tsx @@ -1,7 +1,10 @@ "use client"; import * as React from "react"; +import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm } from "react-hook-form"; import * as z from "zod"; + import { Button, Dialog, @@ -12,16 +15,15 @@ import { Tooltip, useToast, } from "@instill-ai/design-system"; -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; + import { Nullable, - UpdateUserPipelinePayload, sendAmplitudeData, toastInstillError, + UpdateUserPipelinePayload, useAmplitudeCtx, - useRouteInfo, useInstillStore, + useRouteInfo, useUpdateUserPipeline, } from "../../../lib"; diff --git a/packages/toolkit/src/view/pipeline/view-pipeline/Head.tsx b/packages/toolkit/src/view/pipeline/view-pipeline/Head.tsx index fccf5c5342..9a46692ac0 100644 --- a/packages/toolkit/src/view/pipeline/view-pipeline/Head.tsx +++ b/packages/toolkit/src/view/pipeline/view-pipeline/Head.tsx @@ -2,37 +2,39 @@ import * as React from "react"; import { useRouter, useSearchParams } from "next/navigation"; -import { useSortedReleases } from "../../pipeline-builder"; +import cn from "clsx"; + import { Button, Icons, - Tag, - TabMenu, - Skeleton, Popover, ScrollArea, + Skeleton, + TabMenu, + Tag, toast, } from "@instill-ai/design-system"; + +import { ClonePipelineDialog } from "../../../components"; +import { NamespaceAvatarWithFallback } from "../../../components/NamespaceAvatarWithFallback"; import { InstillStore, - Nullable, isPublicPipeline, + Nullable, toastInstillError, + useAuthenticatedUser, useDeleteUserPipeline, useInstillStore, + useNavigateBackAfterLogin, useOrganization, + useRouteInfo, useShallow, useUser, - useAuthenticatedUser, useUserPipeline, - useRouteInfo, - useNavigateBackAfterLogin, } from "../../../lib"; -import { ClonePipelineDialog } from "../../../components"; +import { useSortedReleases } from "../../pipeline-builder"; import { EditMetadataDialog } from "./EditMetadataDialog"; -import cn from "clsx"; import { Menu } from "./Menu"; -import { NamespaceAvatarWithFallback } from "../../../components/NamespaceAvatarWithFallback"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/pipeline/view-pipeline/InOutPut.tsx b/packages/toolkit/src/view/pipeline/view-pipeline/InOutPut.tsx index cabca0893f..6a0ea80186 100644 --- a/packages/toolkit/src/view/pipeline/view-pipeline/InOutPut.tsx +++ b/packages/toolkit/src/view/pipeline/view-pipeline/InOutPut.tsx @@ -1,24 +1,26 @@ "use client"; import * as React from "react"; -import * as z from "zod"; import { useRouter, useSearchParams } from "next/navigation"; +import * as z from "zod"; + +import { Button, Form, useToast } from "@instill-ai/design-system"; + import { GeneralRecord, InstillStore, Nullable, - TriggerUserPipelineResponse, sendAmplitudeData, toastInstillError, + TriggerUserPipelineResponse, useAmplitudeCtx, - useRouteInfo, useInstillStore, - useShallow, usePipelineTriggerRequestForm, + useRouteInfo, + useShallow, useTriggerUserPipeline, useUserPipeline, } from "../../../lib"; -import { Button, Form, useToast } from "@instill-ai/design-system"; import { recursiveHelpers, useSortedReleases } from "../../pipeline-builder"; import { ComponentOutputs } from "../../pipeline-builder/components/ComponentOutputs"; import { RunButton } from "./RunButton"; diff --git a/packages/toolkit/src/view/pipeline/view-pipeline/Menu.tsx b/packages/toolkit/src/view/pipeline/view-pipeline/Menu.tsx index 7e2e6063f8..b7e6edc42f 100644 --- a/packages/toolkit/src/view/pipeline/view-pipeline/Menu.tsx +++ b/packages/toolkit/src/view/pipeline/view-pipeline/Menu.tsx @@ -1,22 +1,24 @@ "use client"; import * as React from "react"; + import { Button, DropdownMenu, Icons } from "@instill-ai/design-system"; + import { - InstillStore, - Pipeline, - useRouteInfo, - useInstillStore, - useShallow, -} from "./../../../lib"; + PublishPipelineDialog, + SharePipelineDialog, +} from "../../pipeline-builder"; import { ClonePipelineDialog, GeneralDeleteResourceDialog, } from "./../../../components"; import { - PublishPipelineDialog, - SharePipelineDialog, -} from "../../pipeline-builder"; + InstillStore, + Pipeline, + useInstillStore, + useRouteInfo, + useShallow, +} from "./../../../lib"; const selector = (store: InstillStore) => ({ updateDialogSharePipelineIsOpen: store.updateDialogSharePipelineIsOpen, diff --git a/packages/toolkit/src/view/pipeline/view-pipeline/Readme.tsx b/packages/toolkit/src/view/pipeline/view-pipeline/Readme.tsx index 1928088e99..26e0a11316 100644 --- a/packages/toolkit/src/view/pipeline/view-pipeline/Readme.tsx +++ b/packages/toolkit/src/view/pipeline/view-pipeline/Readme.tsx @@ -1,18 +1,19 @@ "use client"; +import { useToast } from "@instill-ai/design-system"; + +import { RealTimeTextEditor } from "../../../components"; import { InstillStore, - useInstillStore, - useShallow, Nullable, - useUpdateUserPipeline, - UpdateUserPipelinePayload, sendAmplitudeData, + UpdateUserPipelinePayload, useAmplitudeCtx, + useInstillStore, useRouteInfo, + useShallow, + useUpdateUserPipeline, } from "../../../lib"; -import { useToast } from "@instill-ai/design-system"; -import { RealTimeTextEditor } from "../../../components"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/pipeline/view-pipeline/RunButton.tsx b/packages/toolkit/src/view/pipeline/view-pipeline/RunButton.tsx index e72529f722..1434280c86 100644 --- a/packages/toolkit/src/view/pipeline/view-pipeline/RunButton.tsx +++ b/packages/toolkit/src/view/pipeline/view-pipeline/RunButton.tsx @@ -1,14 +1,16 @@ import { useSearchParams } from "next/navigation"; + +import { Button, Icons, Skeleton } from "@instill-ai/design-system"; + +import { LoadingSpin } from "../../../components"; import { InstillStore, - useRouteInfo, useInstillStore, useNavigateBackAfterLogin, + useRouteInfo, useShallow, useUserPipeline, } from "../../../lib"; -import { Button, Icons, Skeleton } from "@instill-ai/design-system"; -import { LoadingSpin } from "../../../components"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/pipeline/view-pipeline/ViewPipeline.tsx b/packages/toolkit/src/view/pipeline/view-pipeline/ViewPipeline.tsx index 80a03bd4b6..c831a4e6e9 100644 --- a/packages/toolkit/src/view/pipeline/view-pipeline/ViewPipeline.tsx +++ b/packages/toolkit/src/view/pipeline/view-pipeline/ViewPipeline.tsx @@ -1,22 +1,23 @@ "use client"; import * as React from "react"; +import { useRouter, useSearchParams } from "next/navigation"; + import { InstillStore, Nullable, useInstillStore, + useRouteInfo, useShallow, useUserPipeline, - useRouteInfo, } from "../../../lib"; -import { Head } from "./Head"; -import { InOutPut } from "./InOutPut"; -import { Readme } from "./Readme"; -import { useRouter, useSearchParams } from "next/navigation"; import { ReadOnlyPipelineBuilder, useSortedReleases, } from "../../pipeline-builder"; +import { Head } from "./Head"; +import { InOutPut } from "./InOutPut"; +import { Readme } from "./Readme"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/pipeline/view-pipelines/CreatePipelineDialog.tsx b/packages/toolkit/src/view/pipeline/view-pipelines/CreatePipelineDialog.tsx index a5ae930c8f..ae34a55671 100644 --- a/packages/toolkit/src/view/pipeline/view-pipelines/CreatePipelineDialog.tsx +++ b/packages/toolkit/src/view/pipeline/view-pipelines/CreatePipelineDialog.tsx @@ -1,8 +1,12 @@ "use client"; import * as React from "react"; +import { useRouter } from "next/navigation"; +import { zodResolver } from "@hookform/resolvers/zod"; import cn from "clsx"; +import { useForm } from "react-hook-form"; import * as z from "zod"; + import { Button, Dialog, @@ -14,9 +18,9 @@ import { Textarea, useToast, } from "@instill-ai/design-system"; -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; +import { EntitySelector, LoadingSpin } from "../../../components"; +import { DataTestID, InstillErrors } from "../../../constant"; import { CreateUserPipelinePayload, InstillStore, @@ -26,16 +30,12 @@ import { toastInstillError, useAmplitudeCtx, useCreateUserPipeline, - useRouteInfo, useInstillStore, + useRouteInfo, useShallow, } from "../../../lib"; -import { InstillErrors, DataTestID } from "../../../constant"; -import { LoadingSpin } from "../../../components"; -import { env, validateInstillResourceID } from "../../../server"; -import { useRouter } from "next/navigation"; -import { EntitySelector } from "../../../components"; import { useUserNamespaces } from "../../../lib/useUserNamespaces"; +import { env, validateInstillResourceID } from "../../../server"; const CreatePipelineSchema = z .object({ diff --git a/packages/toolkit/src/view/pipeline/view-pipelines/ViewPipelines.tsx b/packages/toolkit/src/view/pipeline/view-pipelines/ViewPipelines.tsx index 0e8184293c..189fd01727 100644 --- a/packages/toolkit/src/view/pipeline/view-pipelines/ViewPipelines.tsx +++ b/packages/toolkit/src/view/pipeline/view-pipelines/ViewPipelines.tsx @@ -1,29 +1,30 @@ "use client"; import * as React from "react"; +import { useSearchParams } from "next/navigation"; +import debounce from "lodash.debounce"; + import { Button, Icons, Input, Select } from "@instill-ai/design-system"; import { + CardPipeline, + CardSkeletonPipeline, + LoadingSpin, + UserProfileCard, +} from "../../../components"; +import { + InstillStore, Nullable, Pipeline, + useAuthenticatedUser, useInfiniteUserPipelines, - InstillStore, useInstillStore, - useShallow, - useAuthenticatedUser, useRouteInfo, - Visibility, + useShallow, useUserPipelines, + Visibility, } from "../../../lib"; -import { - LoadingSpin, - CardPipeline, - CardSkeletonPipeline, - UserProfileCard, -} from "../../../components"; import { CreatePipelineDialog } from "./CreatePipelineDialog"; -import debounce from "lodash.debounce"; -import { useSearchParams } from "next/navigation"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/profile/user-profile-view/Bio.tsx b/packages/toolkit/src/view/profile/user-profile-view/Bio.tsx index 093d4e22de..fefa3179e7 100644 --- a/packages/toolkit/src/view/profile/user-profile-view/Bio.tsx +++ b/packages/toolkit/src/view/profile/user-profile-view/Bio.tsx @@ -1,6 +1,9 @@ "use client"; import * as React from "react"; +import Link from "next/link"; +import { useRouter } from "next/navigation"; + import { Button, ComplicateIcons, @@ -9,10 +12,9 @@ import { Skeleton, Tag, } from "@instill-ai/design-system"; -import { useRouter } from "next/navigation"; -import Link from "next/link"; -import { UserMembership } from "../../../lib"; + import { NamespaceAvatarWithFallback } from "../../../components/NamespaceAvatarWithFallback"; +import { UserMembership } from "../../../lib"; export const UserBioSkeleton = () => { return ( diff --git a/packages/toolkit/src/view/profile/user-profile-view/UserProfileView.tsx b/packages/toolkit/src/view/profile/user-profile-view/UserProfileView.tsx index ad94ea3a54..1f97206546 100644 --- a/packages/toolkit/src/view/profile/user-profile-view/UserProfileView.tsx +++ b/packages/toolkit/src/view/profile/user-profile-view/UserProfileView.tsx @@ -1,22 +1,23 @@ "use client"; import * as React from "react"; +import { useRouter } from "next/navigation"; + +import { BreadcrumbWithLink } from "../../../components"; import { InstillStore, + useAuthenticatedUser, useInstillStore, + useRouteInfo, useShallow, useUser, - useAuthenticatedUser, useUserPipelines, - useRouteInfo, } from "../../../lib"; -import { useRouter } from "next/navigation"; -import { UserProfileBio } from "./Bio"; -import { ProfileSeparator } from "../ProfileSeparator"; -import { PipelinesTable } from "../../pipeline"; -import { BreadcrumbWithLink } from "../../../components"; import { useUserModels } from "../../../lib/react-query-service/model/useUserModels"; import { ModelsTable } from "../../model"; +import { PipelinesTable } from "../../pipeline"; +import { ProfileSeparator } from "../ProfileSeparator"; +import { UserProfileBio } from "./Bio"; const selector = (store: InstillStore) => ({ accessToken: store.accessToken, diff --git a/packages/toolkit/src/view/settings/SettingSidebar.tsx b/packages/toolkit/src/view/settings/SettingSidebar.tsx index a7ab95a170..400f885b1e 100644 --- a/packages/toolkit/src/view/settings/SettingSidebar.tsx +++ b/packages/toolkit/src/view/settings/SettingSidebar.tsx @@ -1,8 +1,8 @@ "use client"; import * as React from "react"; -import cn from "clsx"; import Link from "next/link"; +import cn from "clsx"; export const SettingSidebarRoot = ({ children, diff --git a/packages/toolkit/src/view/settings/SettingTab.tsx b/packages/toolkit/src/view/settings/SettingTab.tsx index 55c2efc298..9dc574e4a2 100644 --- a/packages/toolkit/src/view/settings/SettingTab.tsx +++ b/packages/toolkit/src/view/settings/SettingTab.tsx @@ -1,6 +1,7 @@ "use client"; import cn from "clsx"; + import { Separator } from "@instill-ai/design-system"; export const SettingTabRoot = ({ children }: { children: React.ReactNode }) => { diff --git a/packages/toolkit/src/view/settings/api-tokens/APITokenNameCell.tsx b/packages/toolkit/src/view/settings/api-tokens/APITokenNameCell.tsx index e84d734261..9a59d70f4d 100644 --- a/packages/toolkit/src/view/settings/api-tokens/APITokenNameCell.tsx +++ b/packages/toolkit/src/view/settings/api-tokens/APITokenNameCell.tsx @@ -1,8 +1,9 @@ "use client"; -import { Button, Icons } from "@instill-ai/design-system"; import { useState } from "react"; +import { Button, Icons } from "@instill-ai/design-system"; + export type APITokenNameCellProps = { id: string; accessToken: string; diff --git a/packages/toolkit/src/view/settings/api-tokens/APITokenTable.tsx b/packages/toolkit/src/view/settings/api-tokens/APITokenTable.tsx index 22e0c6f2d5..a6af08e400 100644 --- a/packages/toolkit/src/view/settings/api-tokens/APITokenTable.tsx +++ b/packages/toolkit/src/view/settings/api-tokens/APITokenTable.tsx @@ -1,11 +1,13 @@ "use client"; import { ColumnDef } from "@tanstack/react-table"; -import { ApiToken, formatDate, parseTriggerStatusLabel } from "../../../lib"; -import { GeneralStateCell, SortIcon, TableError } from "../../../components"; -import { DeleteAPITokenDialog } from "./DeleteAPITokenDialog"; + import { Button, DataTable } from "@instill-ai/design-system"; + +import { GeneralStateCell, SortIcon, TableError } from "../../../components"; +import { ApiToken, formatDate, parseTriggerStatusLabel } from "../../../lib"; import { APITokenNameCell } from "./APITokenNameCell"; +import { DeleteAPITokenDialog } from "./DeleteAPITokenDialog"; export type APITokenTableProps = { isError: boolean; diff --git a/packages/toolkit/src/view/settings/api-tokens/CreateAPITokenDialog.tsx b/packages/toolkit/src/view/settings/api-tokens/CreateAPITokenDialog.tsx index 6dda9308af..f26d28f465 100644 --- a/packages/toolkit/src/view/settings/api-tokens/CreateAPITokenDialog.tsx +++ b/packages/toolkit/src/view/settings/api-tokens/CreateAPITokenDialog.tsx @@ -1,7 +1,11 @@ "use client"; -import * as z from "zod"; import * as React from "react"; +import { zodResolver } from "@hookform/resolvers/zod"; +import { isAxiosError } from "axios"; +import { useForm } from "react-hook-form"; +import * as z from "zod"; + import { Button, Dialog, @@ -9,6 +13,9 @@ import { Input, useToast, } from "@instill-ai/design-system"; + +import { LoadingSpin } from "../../../components"; +import { InstillErrors } from "../../../constant"; import { getInstillApiErrorMessage, sendAmplitudeData, @@ -16,12 +23,7 @@ import { useCreateApiToken, useInstillStore, } from "../../../lib"; -import { isAxiosError } from "axios"; -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; -import { LoadingSpin } from "../../../components"; import { validateInstillResourceID } from "../../../server"; -import { InstillErrors } from "../../../constant"; const CreateTokenSchema = z .object({ diff --git a/packages/toolkit/src/view/settings/api-tokens/DeleteAPITokenDialog.tsx b/packages/toolkit/src/view/settings/api-tokens/DeleteAPITokenDialog.tsx index e06c70c707..a888a88ed1 100644 --- a/packages/toolkit/src/view/settings/api-tokens/DeleteAPITokenDialog.tsx +++ b/packages/toolkit/src/view/settings/api-tokens/DeleteAPITokenDialog.tsx @@ -1,7 +1,11 @@ "use client"; -import * as z from "zod"; import * as React from "react"; +import { zodResolver } from "@hookform/resolvers/zod"; +import { isAxiosError } from "axios"; +import { useForm } from "react-hook-form"; +import * as z from "zod"; + import { Button, Dialog, @@ -9,6 +13,8 @@ import { Input, useToast, } from "@instill-ai/design-system"; + +import { LoadingSpin } from "../../../components"; import { getInstillApiErrorMessage, sendAmplitudeData, @@ -16,10 +22,6 @@ import { useDeleteApiToken, useInstillStore, } from "../../../lib"; -import { isAxiosError } from "axios"; -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; -import { LoadingSpin } from "../../../components"; const DeleteAPITokenSchema = z.object({ code: z.string().min(1, "Code is required"), diff --git a/packages/toolkit/src/view/settings/secrets/CreateSecretDialog.tsx b/packages/toolkit/src/view/settings/secrets/CreateSecretDialog.tsx index ff06c9a471..b4d49b7b19 100644 --- a/packages/toolkit/src/view/settings/secrets/CreateSecretDialog.tsx +++ b/packages/toolkit/src/view/settings/secrets/CreateSecretDialog.tsx @@ -1,7 +1,11 @@ "use client"; -import * as z from "zod"; import * as React from "react"; +import { zodResolver } from "@hookform/resolvers/zod"; +import { isAxiosError } from "axios"; +import { useForm } from "react-hook-form"; +import * as z from "zod"; + import { Button, Dialog, @@ -10,10 +14,13 @@ import { Textarea, useToast, } from "@instill-ai/design-system"; + +import { LoadingSpin } from "../../../components"; +import { InstillErrors } from "../../../constant"; import { CreateUserSecretPayload, - InstillStore, getInstillApiErrorMessage, + InstillStore, sendAmplitudeData, useAmplitudeCtx, useAuthenticatedUser, @@ -21,12 +28,7 @@ import { useInstillStore, useShallow, } from "../../../lib"; -import { isAxiosError } from "axios"; -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; -import { LoadingSpin } from "../../../components"; import { validateInstillResourceID } from "../../../server"; -import { InstillErrors } from "../../../constant"; const CreateSecretSchema = z .object({ diff --git a/packages/toolkit/src/view/settings/secrets/DeleteSecretDialog.tsx b/packages/toolkit/src/view/settings/secrets/DeleteSecretDialog.tsx index a2e37fdc5b..ae2071ae27 100644 --- a/packages/toolkit/src/view/settings/secrets/DeleteSecretDialog.tsx +++ b/packages/toolkit/src/view/settings/secrets/DeleteSecretDialog.tsx @@ -1,7 +1,11 @@ "use client"; -import * as z from "zod"; import * as React from "react"; +import { zodResolver } from "@hookform/resolvers/zod"; +import { isAxiosError } from "axios"; +import { useForm } from "react-hook-form"; +import * as z from "zod"; + import { Button, Dialog, @@ -9,6 +13,8 @@ import { Input, useToast, } from "@instill-ai/design-system"; + +import { LoadingSpin } from "../../../components"; import { getInstillApiErrorMessage, sendAmplitudeData, @@ -16,10 +22,6 @@ import { useDeleteUserSecret, useInstillStore, } from "../../../lib"; -import { isAxiosError } from "axios"; -import { useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; -import { LoadingSpin } from "../../../components"; const DeleteSecretSchema = z.object({ code: z.string().min(1, "Code is required"), diff --git a/packages/toolkit/src/view/settings/secrets/SecretTable.tsx b/packages/toolkit/src/view/settings/secrets/SecretTable.tsx index fe2c94fe44..5ecc322ea5 100644 --- a/packages/toolkit/src/view/settings/secrets/SecretTable.tsx +++ b/packages/toolkit/src/view/settings/secrets/SecretTable.tsx @@ -1,9 +1,11 @@ "use client"; import { ColumnDef } from "@tanstack/react-table"; -import { Secret, formatDate } from "../../../lib"; -import { SortIcon, TableError } from "../../../components"; + import { Button, DataTable } from "@instill-ai/design-system"; + +import { SortIcon, TableError } from "../../../components"; +import { formatDate, Secret } from "../../../lib"; import { DeleteSecretDialog } from "./DeleteSecretDialog"; export type APITokenTableProps = { diff --git a/packages/toolkit/src/view/settings/user/UserAPITokenTab.tsx b/packages/toolkit/src/view/settings/user/UserAPITokenTab.tsx index a34eb0a979..439d246c7a 100644 --- a/packages/toolkit/src/view/settings/user/UserAPITokenTab.tsx +++ b/packages/toolkit/src/view/settings/user/UserAPITokenTab.tsx @@ -1,6 +1,7 @@ "use client"; import * as React from "react"; + import { Setting } from ".."; import { GeneralAppPageProp, useApiTokens } from "../../../lib"; import { APITokenTable, CreateAPITokenDialog } from "../api-tokens"; diff --git a/packages/toolkit/src/view/settings/user/UserAccountTab.tsx b/packages/toolkit/src/view/settings/user/UserAccountTab.tsx index d41a4b46ef..8dcadeb2d4 100644 --- a/packages/toolkit/src/view/settings/user/UserAccountTab.tsx +++ b/packages/toolkit/src/view/settings/user/UserAccountTab.tsx @@ -1,12 +1,14 @@ "use client"; import * as React from "react"; -import * as z from "zod"; -import { Setting } from ".."; -import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm } from "react-hook-form"; +import * as z from "zod"; + import { Form, Input } from "@instill-ai/design-system"; -import { useAuthenticatedUser, GeneralAppPageProp } from "../../../lib"; + +import { Setting } from ".."; +import { GeneralAppPageProp, useAuthenticatedUser } from "../../../lib"; const UserAccountTabSchema = z.object({ email: z.string(), diff --git a/packages/toolkit/src/view/settings/user/UserProfileTab.tsx b/packages/toolkit/src/view/settings/user/UserProfileTab.tsx index 1214de86bf..07ab618275 100644 --- a/packages/toolkit/src/view/settings/user/UserProfileTab.tsx +++ b/packages/toolkit/src/view/settings/user/UserProfileTab.tsx @@ -1,11 +1,10 @@ "use client"; -import * as z from "zod"; import * as React from "react"; - -import { Setting } from ".."; -import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; +import { useForm } from "react-hook-form"; +import * as z from "zod"; + import { Button, Form, @@ -14,17 +13,19 @@ import { Textarea, useToast, } from "@instill-ai/design-system"; + +import { Setting } from ".."; +import { LoadingSpin, UploadImageFieldWithCrop } from "../../../components"; import { AuthenticatedUser, + GeneralAppPageProp, sendAmplitudeData, toastInstillError, useAmplitudeCtx, useAuthenticatedUser, - GeneralAppPageProp, + useUpdateAuthenticatedUser, } from "../../../lib"; import { FormLabel } from "../FormLabel"; -import { LoadingSpin, UploadImageFieldWithCrop } from "../../../components"; -import { useUpdateAuthenticatedUser } from "../../../lib"; export const UserProfileTabSchema = z.object({ id: z.string().min(1, "User name is required"), diff --git a/packages/toolkit/src/view/settings/user/UserSecretTab.tsx b/packages/toolkit/src/view/settings/user/UserSecretTab.tsx index 9cf3c4c784..ab48f5bf71 100644 --- a/packages/toolkit/src/view/settings/user/UserSecretTab.tsx +++ b/packages/toolkit/src/view/settings/user/UserSecretTab.tsx @@ -1,6 +1,8 @@ "use client"; import * as React from "react"; +import { useRouter } from "next/navigation"; + import { Setting } from ".."; import { InstillStore, @@ -9,7 +11,6 @@ import { useShallow, useUserSecrets, } from "../../../lib"; -import { useRouter } from "next/navigation"; import { CreateSecretDialog, SecretTable } from "../secrets"; const selector = (store: InstillStore) => ({ diff --git a/packages/toolkit/src/view/settings/user/UserSidebar.tsx b/packages/toolkit/src/view/settings/user/UserSidebar.tsx index 05b92324e6..d2d9481c92 100644 --- a/packages/toolkit/src/view/settings/user/UserSidebar.tsx +++ b/packages/toolkit/src/view/settings/user/UserSidebar.tsx @@ -1,6 +1,7 @@ "use client"; import { usePathname } from "next/navigation"; + import { Setting } from ".."; export const UserSidebar = () => { diff --git a/packages/toolkit/tsup.config.ts b/packages/toolkit/tsup.config.ts index 15de99e273..a044fd59db 100644 --- a/packages/toolkit/tsup.config.ts +++ b/packages/toolkit/tsup.config.ts @@ -1,4 +1,4 @@ -import { Options, defineConfig } from "tsup"; +import { defineConfig, Options } from "tsup"; const cfg: Options = { sourcemap: false, diff --git a/packages/toolkit/vitest.config.ts b/packages/toolkit/vitest.config.ts index f0b34c7466..fe7e586cfc 100644 --- a/packages/toolkit/vitest.config.ts +++ b/packages/toolkit/vitest.config.ts @@ -1,5 +1,5 @@ -import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; +import { defineConfig } from "vitest/config"; // https://vitejs.dev/config/ export default defineConfig({ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d75343d226..115c6cac6e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -639,7 +639,11 @@ importers: version: 3.2.4 prettier-plugin-tailwindcss: specifier: latest - version: 0.5.11(prettier@3.2.4) + version: 0.5.11(@ianvs/prettier-plugin-sort-imports@4.2.1(prettier@3.2.4))(prettier@3.2.4) + devDependencies: + '@ianvs/prettier-plugin-sort-imports': + specifier: ^4.2.1 + version: 4.2.1(prettier@3.2.4) packages/toolkit: dependencies: @@ -1002,10 +1006,6 @@ packages: resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==} engines: {node: '>=6.9.0'} - '@babel/generator@7.24.4': - resolution: {integrity: sha512-Xd6+v6SnjWVx/nus+y0l1sxMOTOMBkyL4+BIdbALyatQnAe/SRVjANeDPSCYaX+i1iJmuGSKf3Z+E+V/va1Hvw==} - engines: {node: '>=6.9.0'} - '@babel/generator@7.24.6': resolution: {integrity: sha512-S7m4eNa6YAPJRHmKsLHIDJhNAGNKoWNiWefz1MBbpnt8g9lvMDl1hir4P9bo/57bQEmuwEhnRU/AMWsD0G/Fbg==} engines: {node: '>=6.9.0'} @@ -1189,18 +1189,10 @@ packages: resolution: {integrity: sha512-CvLSkwXGWnYlF9+J3iZUvwgAxKiYzK3BWuo+mLzD/MDGOZDj7Gq8+hqaOkMxmJwmlv0iu86uH5fdADd9Hxkymw==} engines: {node: '>=6.9.0'} - '@babel/helper-string-parser@7.23.4': - resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==} - engines: {node: '>=6.9.0'} - '@babel/helper-string-parser@7.24.6': resolution: {integrity: sha512-WdJjwMEkmBicq5T9fm/cHND3+UlFa2Yj8ALLgmoSQAJZysYbBjw+azChSGPN4DSPLXOcooGRvDwZWMcF/mLO2Q==} engines: {node: '>=6.9.0'} - '@babel/helper-validator-identifier@7.22.20': - resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} - engines: {node: '>=6.9.0'} - '@babel/helper-validator-identifier@7.24.6': resolution: {integrity: sha512-4yA7s865JHaqUdRbnaxarZREuPTHrjpDT+pXoAZ1yhyo6uFnIEpS8VMu16siFOHDpZNKYv5BObhsB//ycbICyw==} engines: {node: '>=6.9.0'} @@ -1225,10 +1217,6 @@ packages: resolution: {integrity: sha512-KDqYz4PiOWvDFrdHLPhKtCThtIcKVy6avWD2oG4GEvyQ+XDZwHD4YQd+H2vNMnq2rkdxsDkU82T+Vk8U/WXHRQ==} engines: {node: '>=6.9.0'} - '@babel/helpers@7.24.4': - resolution: {integrity: sha512-FewdlZbSiwaVGlgT1DPANDuCHaDMiOo+D/IDYRFYjHOuv66xMSJ7fQwwODwRNAPkADIO/z1EoF/l2BCWlWABDw==} - engines: {node: '>=6.9.0'} - '@babel/helpers@7.24.6': resolution: {integrity: sha512-V2PI+NqnyFu1i0GyTd/O/cTpxzQCYioSkUIRmgo7gFEHKKCg5w46+r/A6WeUR1+P3TeQ49dspGPNd/E3n9AnnA==} engines: {node: '>=6.9.0'} @@ -1237,10 +1225,6 @@ packages: resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==} engines: {node: '>=6.9.0'} - '@babel/highlight@7.24.2': - resolution: {integrity: sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==} - engines: {node: '>=6.9.0'} - '@babel/highlight@7.24.6': resolution: {integrity: sha512-2YnuOp4HAk2BsBrJJvYCbItHx0zWscI1C3zgWkz+wDyD9I7GIVrfnLyrR4Y1VR+7p+chAEcrgRQYZAGIKMV7vQ==} engines: {node: '>=6.9.0'} @@ -1250,11 +1234,6 @@ packages: engines: {node: '>=6.0.0'} hasBin: true - '@babel/parser@7.24.4': - resolution: {integrity: sha512-zTvEBcghmeBma9QIGunWevvBAp4/Qu9Bdq+2k0Ot4fVMD6v3dsC9WOcRSKk7tRRyBM/53yKMJko9xOatGQAwSg==} - engines: {node: '>=6.0.0'} - hasBin: true - '@babel/parser@7.24.6': resolution: {integrity: sha512-eNZXdfU35nJC2h24RznROuOpO94h6x8sg9ju0tT9biNtLZ2vuP8SduLqqV+/8+cebSLV9SJEAN5Z3zQbJG/M+Q==} engines: {node: '>=6.0.0'} @@ -2185,10 +2164,6 @@ packages: resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==} engines: {node: '>=6.9.0'} - '@babel/template@7.24.0': - resolution: {integrity: sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==} - engines: {node: '>=6.9.0'} - '@babel/template@7.24.6': resolution: {integrity: sha512-3vgazJlLwNXi9jhrR1ef8qiB65L1RK90+lEQwv4OxveHnqC3BfmnHdgySwRLzf6akhlOYenT+b7AfWq+a//AHw==} engines: {node: '>=6.9.0'} @@ -2197,10 +2172,6 @@ packages: resolution: {integrity: sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg==} engines: {node: '>=6.9.0'} - '@babel/traverse@7.24.1': - resolution: {integrity: sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==} - engines: {node: '>=6.9.0'} - '@babel/traverse@7.24.6': resolution: {integrity: sha512-OsNjaJwT9Zn8ozxcfoBc+RaHdj3gFmCmYoQLUII1o6ZrUwku0BMg80FoOTPx+Gi6XhcQxAYE4xyjPTo4SxEQqw==} engines: {node: '>=6.9.0'} @@ -2876,6 +2847,15 @@ packages: '@humanwhocodes/object-schema@2.0.2': resolution: {integrity: sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==} + '@ianvs/prettier-plugin-sort-imports@4.2.1': + resolution: {integrity: sha512-NKN1LVFWUDGDGr3vt+6Ey3qPeN/163uR1pOPAlkWpgvAqgxQ6kSdUf1F0it8aHUtKRUzEGcK38Wxd07O61d7+Q==} + peerDependencies: + '@vue/compiler-sfc': 2.7.x || 3.x + prettier: 2 || 3 + peerDependenciesMeta: + '@vue/compiler-sfc': + optional: true + '@img/sharp-darwin-arm64@0.33.3': resolution: {integrity: sha512-FaNiGX1MrOuJ3hxuNzWgsT/mg5OHG/Izh59WW2mk1UwYHUwtfbhk5QNKYZgxf0pLOhx9ctGiGa2OykD71vOnSw==} engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} @@ -3017,10 +2997,6 @@ packages: resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==} engines: {node: '>=6.0.0'} - '@jridgewell/set-array@1.1.2': - resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} - engines: {node: '>=6.0.0'} - '@jridgewell/set-array@1.2.1': resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} engines: {node: '>=6.0.0'} @@ -10617,7 +10593,7 @@ snapshots: '@babel/code-frame@7.24.2': dependencies: - '@babel/highlight': 7.24.2 + '@babel/highlight': 7.24.6 picocolors: 1.0.0 '@babel/code-frame@7.24.6': @@ -10652,15 +10628,15 @@ snapshots: '@babel/core@7.24.4': dependencies: '@ampproject/remapping': 2.2.1 - '@babel/code-frame': 7.24.2 - '@babel/generator': 7.24.4 - '@babel/helper-compilation-targets': 7.23.6 - '@babel/helper-module-transforms': 7.23.3(@babel/core@7.24.4) - '@babel/helpers': 7.24.4 - '@babel/parser': 7.24.4 - '@babel/template': 7.24.0 - '@babel/traverse': 7.24.1 - '@babel/types': 7.24.0 + '@babel/code-frame': 7.24.6 + '@babel/generator': 7.24.6 + '@babel/helper-compilation-targets': 7.24.6 + '@babel/helper-module-transforms': 7.24.6(@babel/core@7.24.4) + '@babel/helpers': 7.24.6 + '@babel/parser': 7.24.6 + '@babel/template': 7.24.6 + '@babel/traverse': 7.24.6 + '@babel/types': 7.24.6 convert-source-map: 2.0.0 debug: 4.3.4 gensync: 1.0.0-beta.2 @@ -10691,18 +10667,11 @@ snapshots: '@babel/generator@7.23.6': dependencies: - '@babel/types': 7.24.0 + '@babel/types': 7.24.6 '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.22 jsesc: 2.5.2 - '@babel/generator@7.24.4': - dependencies: - '@babel/types': 7.24.0 - '@jridgewell/gen-mapping': 0.3.5 - '@jridgewell/trace-mapping': 0.3.25 - jsesc: 2.5.2 - '@babel/generator@7.24.6': dependencies: '@babel/types': 7.24.6 @@ -10712,7 +10681,7 @@ snapshots: '@babel/helper-annotate-as-pure@7.22.5': dependencies: - '@babel/types': 7.24.0 + '@babel/types': 7.24.6 '@babel/helper-annotate-as-pure@7.24.6': dependencies: @@ -10720,7 +10689,7 @@ snapshots: '@babel/helper-builder-binary-assignment-operator-visitor@7.22.15': dependencies: - '@babel/types': 7.24.0 + '@babel/types': 7.24.6 '@babel/helper-builder-binary-assignment-operator-visitor@7.24.6': dependencies: @@ -10746,26 +10715,26 @@ snapshots: dependencies: '@babel/core': 7.23.7 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-environment-visitor': 7.22.20 - '@babel/helper-function-name': 7.23.0 + '@babel/helper-environment-visitor': 7.24.6 + '@babel/helper-function-name': 7.24.6 '@babel/helper-member-expression-to-functions': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 '@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.7) '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-split-export-declaration': 7.24.6 semver: 6.3.1 - '@babel/helper-create-class-features-plugin@7.23.7(@babel/core@7.24.4)': + '@babel/helper-create-class-features-plugin@7.23.7(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-environment-visitor': 7.22.20 - '@babel/helper-function-name': 7.23.0 + '@babel/helper-environment-visitor': 7.24.6 + '@babel/helper-function-name': 7.24.6 '@babel/helper-member-expression-to-functions': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 - '@babel/helper-replace-supers': 7.22.20(@babel/core@7.24.4) + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.24.6) '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-split-export-declaration': 7.24.6 semver: 6.3.1 '@babel/helper-create-class-features-plugin@7.24.6(@babel/core@7.24.4)': @@ -10781,6 +10750,19 @@ snapshots: '@babel/helper-split-export-declaration': 7.24.6 semver: 6.3.1 + '@babel/helper-create-class-features-plugin@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-annotate-as-pure': 7.24.6 + '@babel/helper-environment-visitor': 7.24.6 + '@babel/helper-function-name': 7.24.6 + '@babel/helper-member-expression-to-functions': 7.24.6 + '@babel/helper-optimise-call-expression': 7.24.6 + '@babel/helper-replace-supers': 7.24.6(@babel/core@7.24.6) + '@babel/helper-skip-transparent-expression-wrappers': 7.24.6 + '@babel/helper-split-export-declaration': 7.24.6 + semver: 6.3.1 + '@babel/helper-create-regexp-features-plugin@7.22.15(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -10795,6 +10777,13 @@ snapshots: regexpu-core: 5.3.2 semver: 6.3.1 + '@babel/helper-create-regexp-features-plugin@7.22.15(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-annotate-as-pure': 7.22.5 + regexpu-core: 5.3.2 + semver: 6.3.1 + '@babel/helper-create-regexp-features-plugin@7.24.6(@babel/core@7.24.4)': dependencies: '@babel/core': 7.24.4 @@ -10802,10 +10791,17 @@ snapshots: regexpu-core: 5.3.2 semver: 6.3.1 + '@babel/helper-create-regexp-features-plugin@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-annotate-as-pure': 7.24.6 + regexpu-core: 5.3.2 + semver: 6.3.1 + '@babel/helper-define-polyfill-provider@0.4.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 - '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-compilation-targets': 7.24.6 '@babel/helper-plugin-utils': 7.22.5 debug: 4.3.4 lodash.debounce: 4.0.8 @@ -10816,7 +10812,7 @@ snapshots: '@babel/helper-define-polyfill-provider@0.4.4(@babel/core@7.24.6)': dependencies: '@babel/core': 7.24.6 - '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-compilation-targets': 7.24.6 '@babel/helper-plugin-utils': 7.22.5 debug: 4.3.4 lodash.debounce: 4.0.8 @@ -10827,7 +10823,7 @@ snapshots: '@babel/helper-define-polyfill-provider@0.5.0(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 - '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-compilation-targets': 7.24.6 '@babel/helper-plugin-utils': 7.22.5 debug: 4.3.4 lodash.debounce: 4.0.8 @@ -10838,7 +10834,7 @@ snapshots: '@babel/helper-define-polyfill-provider@0.5.0(@babel/core@7.24.6)': dependencies: '@babel/core': 7.24.6 - '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-compilation-targets': 7.24.6 '@babel/helper-plugin-utils': 7.22.5 debug: 4.3.4 lodash.debounce: 4.0.8 @@ -10857,14 +10853,25 @@ snapshots: transitivePeerDependencies: - supports-color + '@babel/helper-define-polyfill-provider@0.6.2(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-compilation-targets': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + debug: 4.3.4 + lodash.debounce: 4.0.8 + resolve: 1.22.8 + transitivePeerDependencies: + - supports-color + '@babel/helper-environment-visitor@7.22.20': {} '@babel/helper-environment-visitor@7.24.6': {} '@babel/helper-function-name@7.23.0': dependencies: - '@babel/template': 7.24.0 - '@babel/types': 7.24.0 + '@babel/template': 7.24.6 + '@babel/types': 7.24.6 '@babel/helper-function-name@7.24.6': dependencies: @@ -10873,7 +10880,7 @@ snapshots: '@babel/helper-hoist-variables@7.22.5': dependencies: - '@babel/types': 7.24.0 + '@babel/types': 7.24.6 '@babel/helper-hoist-variables@7.24.6': dependencies: @@ -10889,7 +10896,7 @@ snapshots: '@babel/helper-module-imports@7.22.15': dependencies: - '@babel/types': 7.24.0 + '@babel/types': 7.24.6 '@babel/helper-module-imports@7.24.6': dependencies: @@ -10902,16 +10909,16 @@ snapshots: '@babel/helper-module-imports': 7.22.15 '@babel/helper-simple-access': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.6 - '@babel/helper-module-transforms@7.23.3(@babel/core@7.24.4)': + '@babel/helper-module-transforms@7.23.3(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-module-imports': 7.22.15 '@babel/helper-simple-access': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.6 '@babel/helper-module-transforms@7.24.6(@babel/core@7.24.4)': dependencies: @@ -10947,7 +10954,7 @@ snapshots: dependencies: '@babel/core': 7.23.7 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-environment-visitor': 7.24.6 '@babel/helper-wrap-function': 7.22.20 '@babel/helper-remap-async-to-generator@7.24.6(@babel/core@7.24.4)': @@ -10957,17 +10964,24 @@ snapshots: '@babel/helper-environment-visitor': 7.24.6 '@babel/helper-wrap-function': 7.24.6 + '@babel/helper-remap-async-to-generator@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-annotate-as-pure': 7.24.6 + '@babel/helper-environment-visitor': 7.24.6 + '@babel/helper-wrap-function': 7.24.6 + '@babel/helper-replace-supers@7.22.20(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 - '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-environment-visitor': 7.24.6 '@babel/helper-member-expression-to-functions': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 - '@babel/helper-replace-supers@7.22.20(@babel/core@7.24.4)': + '@babel/helper-replace-supers@7.22.20(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 - '@babel/helper-environment-visitor': 7.22.20 + '@babel/core': 7.24.6 + '@babel/helper-environment-visitor': 7.24.6 '@babel/helper-member-expression-to-functions': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 @@ -10978,9 +10992,16 @@ snapshots: '@babel/helper-member-expression-to-functions': 7.24.6 '@babel/helper-optimise-call-expression': 7.24.6 + '@babel/helper-replace-supers@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-environment-visitor': 7.24.6 + '@babel/helper-member-expression-to-functions': 7.24.6 + '@babel/helper-optimise-call-expression': 7.24.6 + '@babel/helper-simple-access@7.22.5': dependencies: - '@babel/types': 7.24.0 + '@babel/types': 7.24.6 '@babel/helper-simple-access@7.24.6': dependencies: @@ -10988,7 +11009,7 @@ snapshots: '@babel/helper-skip-transparent-expression-wrappers@7.22.5': dependencies: - '@babel/types': 7.24.0 + '@babel/types': 7.24.6 '@babel/helper-skip-transparent-expression-wrappers@7.24.6': dependencies: @@ -10996,18 +11017,14 @@ snapshots: '@babel/helper-split-export-declaration@7.22.6': dependencies: - '@babel/types': 7.24.0 + '@babel/types': 7.24.6 '@babel/helper-split-export-declaration@7.24.6': dependencies: '@babel/types': 7.24.6 - '@babel/helper-string-parser@7.23.4': {} - '@babel/helper-string-parser@7.24.6': {} - '@babel/helper-validator-identifier@7.22.20': {} - '@babel/helper-validator-identifier@7.24.6': {} '@babel/helper-validator-option@7.23.5': {} @@ -11016,7 +11033,7 @@ snapshots: '@babel/helper-wrap-function@7.22.20': dependencies: - '@babel/helper-function-name': 7.23.0 + '@babel/helper-function-name': 7.24.6 '@babel/template': 7.24.6 '@babel/types': 7.24.6 @@ -11029,16 +11046,8 @@ snapshots: '@babel/helpers@7.23.8': dependencies: '@babel/template': 7.22.15 - '@babel/traverse': 7.23.7 - '@babel/types': 7.24.0 - transitivePeerDependencies: - - supports-color - - '@babel/helpers@7.24.4': - dependencies: - '@babel/template': 7.24.0 - '@babel/traverse': 7.24.1 - '@babel/types': 7.24.0 + '@babel/traverse': 7.24.6 + '@babel/types': 7.24.6 transitivePeerDependencies: - supports-color @@ -11049,16 +11058,9 @@ snapshots: '@babel/highlight@7.23.4': dependencies: - '@babel/helper-validator-identifier': 7.22.20 - chalk: 2.4.2 - js-tokens: 4.0.0 - - '@babel/highlight@7.24.2': - dependencies: - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.6 chalk: 2.4.2 js-tokens: 4.0.0 - picocolors: 1.0.0 '@babel/highlight@7.24.6': dependencies: @@ -11069,11 +11071,7 @@ snapshots: '@babel/parser@7.23.6': dependencies: - '@babel/types': 7.24.0 - - '@babel/parser@7.24.4': - dependencies: - '@babel/types': 7.24.0 + '@babel/types': 7.24.6 '@babel/parser@7.24.6': dependencies: @@ -11085,6 +11083,12 @@ snapshots: '@babel/helper-environment-visitor': 7.24.6 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-environment-visitor': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11095,6 +11099,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11109,6 +11118,13 @@ snapshots: '@babel/helper-skip-transparent-expression-wrappers': 7.24.6 '@babel/plugin-transform-optional-chaining': 7.24.6(@babel/core@7.24.4) + '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/helper-skip-transparent-expression-wrappers': 7.24.6 + '@babel/plugin-transform-optional-chaining': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.23.7(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11121,6 +11137,12 @@ snapshots: '@babel/helper-environment-visitor': 7.24.6 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-environment-visitor': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11129,6 +11151,10 @@ snapshots: dependencies: '@babel/core': 7.24.4 + '@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11139,6 +11165,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.24.4)': dependencies: '@babel/core': 7.24.4 @@ -11154,6 +11185,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11164,6 +11200,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11174,6 +11215,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11184,9 +11230,14 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-flow@7.23.3(@babel/core@7.24.4)': + '@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + + '@babel/plugin-syntax-flow@7.23.3(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 '@babel/helper-plugin-utils': 7.24.6 '@babel/plugin-syntax-import-assertions@7.23.3(@babel/core@7.23.7)': @@ -11199,6 +11250,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-import-assertions@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-import-attributes@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11209,6 +11265,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-import-attributes@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11219,6 +11280,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11229,14 +11295,19 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-jsx@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-jsx@7.23.3(@babel/core@7.24.4)': + '@babel/plugin-syntax-jsx@7.23.3(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-jsx@7.24.6(@babel/core@7.24.4)': @@ -11254,6 +11325,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11264,6 +11340,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11274,6 +11355,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11284,6 +11370,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11294,6 +11385,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11304,6 +11400,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11314,6 +11415,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11324,14 +11430,19 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-typescript@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-typescript@7.23.3(@babel/core@7.24.4)': + '@babel/plugin-syntax-typescript@7.23.3(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-typescript@7.24.6(@babel/core@7.24.4)': @@ -11351,6 +11462,12 @@ snapshots: '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.24.4) '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-unicode-sets-regex@7.18.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-transform-arrow-functions@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11361,6 +11478,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-arrow-functions@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-async-generator-functions@7.23.7(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11377,6 +11499,14 @@ snapshots: '@babel/helper-remap-async-to-generator': 7.24.6(@babel/core@7.24.4) '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.24.4) + '@babel/plugin-transform-async-generator-functions@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-environment-visitor': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/helper-remap-async-to-generator': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.24.6) + '@babel/plugin-transform-async-to-generator@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11391,6 +11521,13 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/helper-remap-async-to-generator': 7.24.6(@babel/core@7.24.4) + '@babel/plugin-transform-async-to-generator@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-module-imports': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/helper-remap-async-to-generator': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-block-scoped-functions@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11401,6 +11538,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-block-scoped-functions@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-block-scoping@7.23.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11411,16 +11553,21 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-block-scoping@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-class-properties@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 '@babel/helper-create-class-features-plugin': 7.23.7(@babel/core@7.23.7) '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-transform-class-properties@7.23.3(@babel/core@7.24.4)': + '@babel/plugin-transform-class-properties@7.23.3(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 - '@babel/helper-create-class-features-plugin': 7.23.7(@babel/core@7.24.4) + '@babel/core': 7.24.6 + '@babel/helper-create-class-features-plugin': 7.23.7(@babel/core@7.24.6) '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-transform-class-properties@7.24.6(@babel/core@7.24.4)': @@ -11429,6 +11576,12 @@ snapshots: '@babel/helper-create-class-features-plugin': 7.24.6(@babel/core@7.24.4) '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-class-properties@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-create-class-features-plugin': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-class-static-block@7.23.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11443,6 +11596,13 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.24.4) + '@babel/plugin-transform-class-static-block@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-create-class-features-plugin': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.24.6) + '@babel/plugin-transform-classes@7.23.8(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11467,6 +11627,18 @@ snapshots: '@babel/helper-split-export-declaration': 7.24.6 globals: 11.12.0 + '@babel/plugin-transform-classes@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-annotate-as-pure': 7.24.6 + '@babel/helper-compilation-targets': 7.24.6 + '@babel/helper-environment-visitor': 7.24.6 + '@babel/helper-function-name': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/helper-replace-supers': 7.24.6(@babel/core@7.24.6) + '@babel/helper-split-export-declaration': 7.24.6 + globals: 11.12.0 + '@babel/plugin-transform-computed-properties@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11479,6 +11651,12 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/template': 7.24.6 + '@babel/plugin-transform-computed-properties@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/template': 7.24.6 + '@babel/plugin-transform-destructuring@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11489,6 +11667,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-destructuring@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-dotall-regex@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11501,6 +11684,12 @@ snapshots: '@babel/helper-create-regexp-features-plugin': 7.24.6(@babel/core@7.24.4) '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-dotall-regex@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-create-regexp-features-plugin': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-duplicate-keys@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11511,6 +11700,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-duplicate-keys@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-dynamic-import@7.23.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11523,6 +11717,12 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.24.4) + '@babel/plugin-transform-dynamic-import@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-transform-exponentiation-operator@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11535,6 +11735,12 @@ snapshots: '@babel/helper-builder-binary-assignment-operator-visitor': 7.24.6 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-exponentiation-operator@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-builder-binary-assignment-operator-visitor': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-export-namespace-from@7.23.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11547,11 +11753,17 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.24.4) - '@babel/plugin-transform-flow-strip-types@7.23.3(@babel/core@7.24.4)': + '@babel/plugin-transform-export-namespace-from@7.24.6(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 '@babel/helper-plugin-utils': 7.24.6 - '@babel/plugin-syntax-flow': 7.23.3(@babel/core@7.24.4) + '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.24.6) + + '@babel/plugin-transform-flow-strip-types@7.23.3(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-flow': 7.23.3(@babel/core@7.24.6) '@babel/plugin-transform-for-of@7.23.6(@babel/core@7.23.7)': dependencies: @@ -11565,6 +11777,12 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/helper-skip-transparent-expression-wrappers': 7.24.6 + '@babel/plugin-transform-for-of@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/helper-skip-transparent-expression-wrappers': 7.24.6 + '@babel/plugin-transform-function-name@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11579,6 +11797,13 @@ snapshots: '@babel/helper-function-name': 7.24.6 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-function-name@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-compilation-targets': 7.24.6 + '@babel/helper-function-name': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-json-strings@7.23.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11591,6 +11816,12 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.24.4) + '@babel/plugin-transform-json-strings@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-transform-literals@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11601,6 +11832,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-literals@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-logical-assignment-operators@7.23.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11613,6 +11849,12 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.24.4) + '@babel/plugin-transform-logical-assignment-operators@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.24.6) + '@babel/plugin-transform-member-expression-literals@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11623,6 +11865,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-member-expression-literals@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-modules-amd@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11635,6 +11882,12 @@ snapshots: '@babel/helper-module-transforms': 7.24.6(@babel/core@7.24.4) '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-modules-amd@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-module-transforms': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-modules-commonjs@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11642,10 +11895,10 @@ snapshots: '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-simple-access': 7.22.5 - '@babel/plugin-transform-modules-commonjs@7.23.3(@babel/core@7.24.4)': + '@babel/plugin-transform-modules-commonjs@7.23.3(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 - '@babel/helper-module-transforms': 7.23.3(@babel/core@7.24.4) + '@babel/core': 7.24.6 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.24.6) '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-simple-access': 7.22.5 @@ -11656,13 +11909,20 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/helper-simple-access': 7.24.6 + '@babel/plugin-transform-modules-commonjs@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-module-transforms': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/helper-simple-access': 7.24.6 + '@babel/plugin-transform-modules-systemjs@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.7) '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.6 '@babel/plugin-transform-modules-systemjs@7.24.6(@babel/core@7.24.4)': dependencies: @@ -11672,6 +11932,14 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/helper-validator-identifier': 7.24.6 + '@babel/plugin-transform-modules-systemjs@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-hoist-variables': 7.24.6 + '@babel/helper-module-transforms': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/helper-validator-identifier': 7.24.6 + '@babel/plugin-transform-modules-umd@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11684,6 +11952,12 @@ snapshots: '@babel/helper-module-transforms': 7.24.6(@babel/core@7.24.4) '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-modules-umd@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-module-transforms': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-named-capturing-groups-regex@7.22.5(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11696,6 +11970,12 @@ snapshots: '@babel/helper-create-regexp-features-plugin': 7.24.6(@babel/core@7.24.4) '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-named-capturing-groups-regex@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-create-regexp-features-plugin': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-new-target@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11706,17 +11986,22 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-new-target@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-nullish-coalescing-operator@7.23.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.23.7) - '@babel/plugin-transform-nullish-coalescing-operator@7.23.4(@babel/core@7.24.4)': + '@babel/plugin-transform-nullish-coalescing-operator@7.23.4(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.24.4) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.24.6) '@babel/plugin-transform-nullish-coalescing-operator@7.24.6(@babel/core@7.24.4)': dependencies: @@ -11724,6 +12009,12 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.24.4) + '@babel/plugin-transform-nullish-coalescing-operator@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-transform-numeric-separator@7.23.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11736,6 +12027,12 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.24.4) + '@babel/plugin-transform-numeric-separator@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.24.6) + '@babel/plugin-transform-object-rest-spread@7.23.4(@babel/core@7.23.7)': dependencies: '@babel/compat-data': 7.23.5 @@ -11753,6 +12050,14 @@ snapshots: '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.24.4) '@babel/plugin-transform-parameters': 7.24.6(@babel/core@7.24.4) + '@babel/plugin-transform-object-rest-spread@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-compilation-targets': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-transform-parameters': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-object-super@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11765,6 +12070,12 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/helper-replace-supers': 7.24.6(@babel/core@7.24.4) + '@babel/plugin-transform-object-super@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/helper-replace-supers': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-optional-catch-binding@7.23.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11777,6 +12088,12 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.24.4) + '@babel/plugin-transform-optional-catch-binding@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-transform-optional-chaining@7.23.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11784,12 +12101,12 @@ snapshots: '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.23.7) - '@babel/plugin-transform-optional-chaining@7.23.4(@babel/core@7.24.4)': + '@babel/plugin-transform-optional-chaining@7.23.4(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.24.4) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.24.6) '@babel/plugin-transform-optional-chaining@7.24.6(@babel/core@7.24.4)': dependencies: @@ -11798,6 +12115,13 @@ snapshots: '@babel/helper-skip-transparent-expression-wrappers': 7.24.6 '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.24.4) + '@babel/plugin-transform-optional-chaining@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/helper-skip-transparent-expression-wrappers': 7.24.6 + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-transform-parameters@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11808,16 +12132,21 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-parameters@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-private-methods@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 '@babel/helper-create-class-features-plugin': 7.23.7(@babel/core@7.23.7) '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-transform-private-methods@7.23.3(@babel/core@7.24.4)': + '@babel/plugin-transform-private-methods@7.23.3(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 - '@babel/helper-create-class-features-plugin': 7.23.7(@babel/core@7.24.4) + '@babel/core': 7.24.6 + '@babel/helper-create-class-features-plugin': 7.23.7(@babel/core@7.24.6) '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-transform-private-methods@7.24.6(@babel/core@7.24.4)': @@ -11826,6 +12155,12 @@ snapshots: '@babel/helper-create-class-features-plugin': 7.24.6(@babel/core@7.24.4) '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-private-methods@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-create-class-features-plugin': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-private-property-in-object@7.23.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11842,6 +12177,14 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.24.4) + '@babel/plugin-transform-private-property-in-object@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-annotate-as-pure': 7.24.6 + '@babel/helper-create-class-features-plugin': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.24.6) + '@babel/plugin-transform-property-literals@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11852,6 +12195,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-property-literals@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-react-display-name@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11889,7 +12237,7 @@ snapshots: '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.23.7) - '@babel/types': 7.24.0 + '@babel/types': 7.24.6 '@babel/plugin-transform-react-jsx@7.24.6(@babel/core@7.24.4)': dependencies: @@ -11924,6 +12272,12 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 regenerator-transform: 0.15.2 + '@babel/plugin-transform-regenerator@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + regenerator-transform: 0.15.2 + '@babel/plugin-transform-reserved-words@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11934,10 +12288,15 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-reserved-words@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-runtime@7.23.7(@babel/core@7.24.6)': dependencies: '@babel/core': 7.24.6 - '@babel/helper-module-imports': 7.22.15 + '@babel/helper-module-imports': 7.24.6 '@babel/helper-plugin-utils': 7.22.5 babel-plugin-polyfill-corejs2: 0.4.8(@babel/core@7.24.6) babel-plugin-polyfill-corejs3: 0.8.7(@babel/core@7.24.6) @@ -11968,6 +12327,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-shorthand-properties@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-spread@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11980,6 +12344,12 @@ snapshots: '@babel/helper-plugin-utils': 7.24.6 '@babel/helper-skip-transparent-expression-wrappers': 7.24.6 + '@babel/plugin-transform-spread@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/helper-skip-transparent-expression-wrappers': 7.24.6 + '@babel/plugin-transform-sticky-regex@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -11990,6 +12360,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-sticky-regex@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-template-literals@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -12000,6 +12375,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-template-literals@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-typeof-symbol@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -12010,6 +12390,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-typeof-symbol@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-typescript@7.23.6(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -12018,13 +12403,13 @@ snapshots: '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-typescript': 7.23.3(@babel/core@7.23.7) - '@babel/plugin-transform-typescript@7.23.6(@babel/core@7.24.4)': + '@babel/plugin-transform-typescript@7.23.6(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-create-class-features-plugin': 7.23.7(@babel/core@7.24.4) + '@babel/helper-create-class-features-plugin': 7.23.7(@babel/core@7.24.6) '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-typescript': 7.23.3(@babel/core@7.24.4) + '@babel/plugin-syntax-typescript': 7.23.3(@babel/core@7.24.6) '@babel/plugin-transform-typescript@7.24.6(@babel/core@7.24.4)': dependencies: @@ -12044,6 +12429,11 @@ snapshots: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-unicode-escapes@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-unicode-property-regex@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -12056,6 +12446,12 @@ snapshots: '@babel/helper-create-regexp-features-plugin': 7.24.6(@babel/core@7.24.4) '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-unicode-property-regex@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-create-regexp-features-plugin': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-unicode-regex@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -12068,6 +12464,12 @@ snapshots: '@babel/helper-create-regexp-features-plugin': 7.24.6(@babel/core@7.24.4) '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-unicode-regex@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-create-regexp-features-plugin': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-unicode-sets-regex@7.23.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -12080,6 +12482,12 @@ snapshots: '@babel/helper-create-regexp-features-plugin': 7.24.6(@babel/core@7.24.4) '@babel/helper-plugin-utils': 7.24.6 + '@babel/plugin-transform-unicode-sets-regex@7.24.6(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-create-regexp-features-plugin': 7.24.6(@babel/core@7.24.6) + '@babel/helper-plugin-utils': 7.24.6 + '@babel/preset-env@7.23.8(@babel/core@7.23.7)': dependencies: '@babel/compat-data': 7.23.5 @@ -12253,25 +12661,119 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/preset-flow@7.23.3(@babel/core@7.24.4)': + '@babel/preset-env@7.24.6(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 + '@babel/compat-data': 7.24.6 + '@babel/core': 7.24.6 + '@babel/helper-compilation-targets': 7.24.6 '@babel/helper-plugin-utils': 7.24.6 - '@babel/helper-validator-option': 7.23.5 - '@babel/plugin-transform-flow-strip-types': 7.23.3(@babel/core@7.24.4) + '@babel/helper-validator-option': 7.24.6 + '@babel/plugin-bugfix-firefox-class-in-computed-class-key': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/core@7.24.6) + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.24.6) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.24.6) + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.24.6) + '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-syntax-import-assertions': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-syntax-import-attributes': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.24.6) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.24.6) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.24.6) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.24.6) + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.24.6) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.24.6) + '@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/core@7.24.6) + '@babel/plugin-transform-arrow-functions': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-async-generator-functions': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-async-to-generator': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-block-scoped-functions': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-block-scoping': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-class-properties': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-class-static-block': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-classes': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-computed-properties': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-destructuring': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-dotall-regex': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-duplicate-keys': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-dynamic-import': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-exponentiation-operator': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-export-namespace-from': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-for-of': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-function-name': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-json-strings': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-literals': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-logical-assignment-operators': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-member-expression-literals': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-modules-amd': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-modules-commonjs': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-modules-systemjs': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-modules-umd': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-named-capturing-groups-regex': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-new-target': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-nullish-coalescing-operator': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-numeric-separator': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-object-rest-spread': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-object-super': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-optional-catch-binding': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-optional-chaining': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-parameters': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-private-methods': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-private-property-in-object': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-property-literals': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-regenerator': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-reserved-words': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-shorthand-properties': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-spread': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-sticky-regex': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-template-literals': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-typeof-symbol': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-unicode-escapes': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-unicode-property-regex': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-unicode-regex': 7.24.6(@babel/core@7.24.6) + '@babel/plugin-transform-unicode-sets-regex': 7.24.6(@babel/core@7.24.6) + '@babel/preset-modules': 0.1.6-no-external-plugins(@babel/core@7.24.6) + babel-plugin-polyfill-corejs2: 0.4.11(@babel/core@7.24.6) + babel-plugin-polyfill-corejs3: 0.10.4(@babel/core@7.24.6) + babel-plugin-polyfill-regenerator: 0.6.2(@babel/core@7.24.6) + core-js-compat: 3.35.1 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + '@babel/preset-flow@7.23.3(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.24.6 + '@babel/helper-validator-option': 7.24.6 + '@babel/plugin-transform-flow-strip-types': 7.23.3(@babel/core@7.24.6) '@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 '@babel/helper-plugin-utils': 7.22.5 - '@babel/types': 7.24.0 + '@babel/types': 7.24.6 esutils: 2.0.3 '@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.24.4)': dependencies: '@babel/core': 7.24.4 '@babel/helper-plugin-utils': 7.22.5 - '@babel/types': 7.24.0 + '@babel/types': 7.24.6 + esutils: 2.0.3 + + '@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.24.6)': + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/types': 7.24.6 esutils: 2.0.3 '@babel/preset-react@7.23.3(@babel/core@7.23.7)': @@ -12303,14 +12805,14 @@ snapshots: '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.23.7) '@babel/plugin-transform-typescript': 7.23.6(@babel/core@7.23.7) - '@babel/preset-typescript@7.23.3(@babel/core@7.24.4)': + '@babel/preset-typescript@7.23.3(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-validator-option': 7.23.5 - '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.24.4) - '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.24.4) - '@babel/plugin-transform-typescript': 7.23.6(@babel/core@7.24.4) + '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.24.6) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.24.6) + '@babel/plugin-transform-typescript': 7.23.6(@babel/core@7.24.6) '@babel/preset-typescript@7.24.6(@babel/core@7.24.4)': dependencies: @@ -12321,9 +12823,9 @@ snapshots: '@babel/plugin-transform-modules-commonjs': 7.24.6(@babel/core@7.24.4) '@babel/plugin-transform-typescript': 7.24.6(@babel/core@7.24.4) - '@babel/register@7.23.7(@babel/core@7.24.4)': + '@babel/register@7.23.7(@babel/core@7.24.6)': dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 clone-deep: 4.0.1 find-cache-dir: 2.1.0 make-dir: 2.1.0 @@ -12343,14 +12845,8 @@ snapshots: '@babel/template@7.22.15': dependencies: '@babel/code-frame': 7.23.5 - '@babel/parser': 7.23.6 - '@babel/types': 7.24.0 - - '@babel/template@7.24.0': - dependencies: - '@babel/code-frame': 7.24.2 - '@babel/parser': 7.24.4 - '@babel/types': 7.24.0 + '@babel/parser': 7.24.6 + '@babel/types': 7.24.6 '@babel/template@7.24.6': dependencies: @@ -12361,28 +12857,13 @@ snapshots: '@babel/traverse@7.23.7': dependencies: '@babel/code-frame': 7.24.2 - '@babel/generator': 7.24.4 - '@babel/helper-environment-visitor': 7.22.20 - '@babel/helper-function-name': 7.23.0 - '@babel/helper-hoist-variables': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.6 - '@babel/parser': 7.24.4 - '@babel/types': 7.24.0 - debug: 4.3.4 - globals: 11.12.0 - transitivePeerDependencies: - - supports-color - - '@babel/traverse@7.24.1': - dependencies: - '@babel/code-frame': 7.24.2 - '@babel/generator': 7.24.4 + '@babel/generator': 7.24.6 '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-function-name': 7.23.0 '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/parser': 7.24.4 - '@babel/types': 7.24.0 + '@babel/parser': 7.24.6 + '@babel/types': 7.24.6 debug: 4.3.4 globals: 11.12.0 transitivePeerDependencies: @@ -12405,14 +12886,14 @@ snapshots: '@babel/types@7.23.6': dependencies: - '@babel/helper-string-parser': 7.23.4 - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-string-parser': 7.24.6 + '@babel/helper-validator-identifier': 7.24.6 to-fast-properties: 2.0.0 '@babel/types@7.24.0': dependencies: - '@babel/helper-string-parser': 7.23.4 - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-string-parser': 7.24.6 + '@babel/helper-validator-identifier': 7.24.6 to-fast-properties: 2.0.0 '@babel/types@7.24.6': @@ -12969,6 +13450,18 @@ snapshots: '@humanwhocodes/object-schema@2.0.2': {} + '@ianvs/prettier-plugin-sort-imports@4.2.1(prettier@3.2.4)': + dependencies: + '@babel/core': 7.24.6 + '@babel/generator': 7.24.6 + '@babel/parser': 7.24.6 + '@babel/traverse': 7.24.6 + '@babel/types': 7.24.6 + prettier: 3.2.4 + semver: 7.6.0 + transitivePeerDependencies: + - supports-color + '@img/sharp-darwin-arm64@0.33.3': optionalDependencies: '@img/sharp-libvips-darwin-arm64': 1.0.2 @@ -13072,9 +13565,9 @@ snapshots: '@jridgewell/gen-mapping@0.3.3': dependencies: - '@jridgewell/set-array': 1.1.2 + '@jridgewell/set-array': 1.2.1 '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.22 + '@jridgewell/trace-mapping': 0.3.25 '@jridgewell/gen-mapping@0.3.5': dependencies: @@ -13084,14 +13577,12 @@ snapshots: '@jridgewell/resolve-uri@3.1.1': {} - '@jridgewell/set-array@1.1.2': {} - '@jridgewell/set-array@1.2.1': {} '@jridgewell/source-map@0.3.5': dependencies: - '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.22 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 '@jridgewell/sourcemap-codec@1.4.15': {} @@ -14253,7 +14744,7 @@ snapshots: '@storybook/addon-docs@8.1.4(@types/react-dom@18.2.0)(prettier@3.2.5)': dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 '@mdx-js/react': 3.0.1(@types/react@18.2.48)(react@18.2.0) '@storybook/blocks': 8.1.4(@types/react-dom@18.2.0)(@types/react@18.2.48)(prettier@3.2.5)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@storybook/client-logger': 8.1.4 @@ -14513,9 +15004,9 @@ snapshots: '@storybook/codemod@8.1.4': dependencies: - '@babel/core': 7.24.4 - '@babel/preset-env': 7.24.6(@babel/core@7.24.4) - '@babel/types': 7.24.0 + '@babel/core': 7.24.6 + '@babel/preset-env': 7.24.6(@babel/core@7.24.6) + '@babel/types': 7.24.6 '@storybook/csf': 0.1.7 '@storybook/csf-tools': 8.1.4 '@storybook/node-logger': 8.1.4 @@ -14523,7 +15014,7 @@ snapshots: '@types/cross-spawn': 6.0.6 cross-spawn: 7.0.3 globby: 14.0.1 - jscodeshift: 0.15.1(@babel/preset-env@7.24.6(@babel/core@7.24.4)) + jscodeshift: 0.15.1(@babel/preset-env@7.24.6(@babel/core@7.24.6)) lodash: 4.17.21 prettier: 3.2.5 recast: 0.23.6 @@ -14594,8 +15085,8 @@ snapshots: '@storybook/core-server@8.1.4(prettier@3.2.5)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@aw-web-design/x-default-browser': 1.4.126 - '@babel/core': 7.24.4 - '@babel/parser': 7.24.4 + '@babel/core': 7.24.6 + '@babel/parser': 7.24.6 '@discoveryjs/json-ext': 0.5.7 '@storybook/builder-manager': 8.1.4(prettier@3.2.5) '@storybook/channels': 8.1.4 @@ -14669,10 +15160,10 @@ snapshots: '@storybook/csf-tools@8.1.4': dependencies: - '@babel/generator': 7.24.4 - '@babel/parser': 7.24.4 - '@babel/traverse': 7.24.1 - '@babel/types': 7.24.0 + '@babel/generator': 7.24.6 + '@babel/parser': 7.24.6 + '@babel/traverse': 7.24.6 + '@babel/types': 7.24.6 '@storybook/csf': 0.1.7 '@storybook/types': 8.1.4 fs-extra: 11.2.0 @@ -15043,7 +15534,7 @@ snapshots: '@testing-library/dom@9.3.4': dependencies: - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.24.6 '@babel/runtime': 7.23.8 '@types/aria-query': 5.0.4 aria-query: 5.1.3 @@ -16200,9 +16691,9 @@ snapshots: b4a@1.6.4: {} - babel-core@7.0.0-bridge.0(@babel/core@7.24.4): + babel-core@7.0.0-bridge.0(@babel/core@7.24.6): dependencies: - '@babel/core': 7.24.4 + '@babel/core': 7.24.6 babel-loader@8.3.0(@babel/core@7.23.7)(webpack@5.89.0(esbuild@0.17.19)): dependencies: @@ -16222,13 +16713,22 @@ snapshots: babel-plugin-polyfill-corejs2@0.4.11(@babel/core@7.24.4): dependencies: - '@babel/compat-data': 7.23.5 + '@babel/compat-data': 7.24.6 '@babel/core': 7.24.4 '@babel/helper-define-polyfill-provider': 0.6.2(@babel/core@7.24.4) semver: 6.3.1 transitivePeerDependencies: - supports-color + babel-plugin-polyfill-corejs2@0.4.11(@babel/core@7.24.6): + dependencies: + '@babel/compat-data': 7.24.6 + '@babel/core': 7.24.6 + '@babel/helper-define-polyfill-provider': 0.6.2(@babel/core@7.24.6) + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + babel-plugin-polyfill-corejs2@0.4.8(@babel/core@7.23.7): dependencies: '@babel/compat-data': 7.23.5 @@ -16255,6 +16755,14 @@ snapshots: transitivePeerDependencies: - supports-color + babel-plugin-polyfill-corejs3@0.10.4(@babel/core@7.24.6): + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-define-polyfill-provider': 0.6.2(@babel/core@7.24.6) + core-js-compat: 3.37.1 + transitivePeerDependencies: + - supports-color + babel-plugin-polyfill-corejs3@0.8.7(@babel/core@7.23.7): dependencies: '@babel/core': 7.23.7 @@ -16292,6 +16800,13 @@ snapshots: transitivePeerDependencies: - supports-color + babel-plugin-polyfill-regenerator@0.6.2(@babel/core@7.24.6): + dependencies: + '@babel/core': 7.24.6 + '@babel/helper-define-polyfill-provider': 0.6.2(@babel/core@7.24.6) + transitivePeerDependencies: + - supports-color + bail@2.0.2: {} balanced-match@1.0.2: {} @@ -18954,17 +19469,17 @@ snapshots: jscodeshift@0.15.1(@babel/preset-env@7.23.8(@babel/core@7.23.7)): dependencies: - '@babel/core': 7.24.4 - '@babel/parser': 7.24.4 - '@babel/plugin-transform-class-properties': 7.23.3(@babel/core@7.24.4) - '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.24.4) - '@babel/plugin-transform-nullish-coalescing-operator': 7.23.4(@babel/core@7.24.4) - '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/core@7.24.4) - '@babel/plugin-transform-private-methods': 7.23.3(@babel/core@7.24.4) - '@babel/preset-flow': 7.23.3(@babel/core@7.24.4) - '@babel/preset-typescript': 7.23.3(@babel/core@7.24.4) - '@babel/register': 7.23.7(@babel/core@7.24.4) - babel-core: 7.0.0-bridge.0(@babel/core@7.24.4) + '@babel/core': 7.24.6 + '@babel/parser': 7.24.6 + '@babel/plugin-transform-class-properties': 7.23.3(@babel/core@7.24.6) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.24.6) + '@babel/plugin-transform-nullish-coalescing-operator': 7.23.4(@babel/core@7.24.6) + '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/core@7.24.6) + '@babel/plugin-transform-private-methods': 7.23.3(@babel/core@7.24.6) + '@babel/preset-flow': 7.23.3(@babel/core@7.24.6) + '@babel/preset-typescript': 7.23.3(@babel/core@7.24.6) + '@babel/register': 7.23.7(@babel/core@7.24.6) + babel-core: 7.0.0-bridge.0(@babel/core@7.24.6) chalk: 4.1.2 flow-parser: 0.227.0 graceful-fs: 4.2.11 @@ -18979,19 +19494,19 @@ snapshots: transitivePeerDependencies: - supports-color - jscodeshift@0.15.1(@babel/preset-env@7.24.6(@babel/core@7.24.4)): + jscodeshift@0.15.1(@babel/preset-env@7.24.6(@babel/core@7.24.6)): dependencies: - '@babel/core': 7.24.4 - '@babel/parser': 7.24.4 - '@babel/plugin-transform-class-properties': 7.23.3(@babel/core@7.24.4) - '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.24.4) - '@babel/plugin-transform-nullish-coalescing-operator': 7.23.4(@babel/core@7.24.4) - '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/core@7.24.4) - '@babel/plugin-transform-private-methods': 7.23.3(@babel/core@7.24.4) - '@babel/preset-flow': 7.23.3(@babel/core@7.24.4) - '@babel/preset-typescript': 7.23.3(@babel/core@7.24.4) - '@babel/register': 7.23.7(@babel/core@7.24.4) - babel-core: 7.0.0-bridge.0(@babel/core@7.24.4) + '@babel/core': 7.24.6 + '@babel/parser': 7.24.6 + '@babel/plugin-transform-class-properties': 7.23.3(@babel/core@7.24.6) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.24.6) + '@babel/plugin-transform-nullish-coalescing-operator': 7.23.4(@babel/core@7.24.6) + '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/core@7.24.6) + '@babel/plugin-transform-private-methods': 7.23.3(@babel/core@7.24.6) + '@babel/preset-flow': 7.23.3(@babel/core@7.24.6) + '@babel/preset-typescript': 7.23.3(@babel/core@7.24.6) + '@babel/register': 7.23.7(@babel/core@7.24.6) + babel-core: 7.0.0-bridge.0(@babel/core@7.24.6) chalk: 4.1.2 flow-parser: 0.227.0 graceful-fs: 4.2.11 @@ -19002,7 +19517,7 @@ snapshots: temp: 0.8.4 write-file-atomic: 2.4.3 optionalDependencies: - '@babel/preset-env': 7.24.6(@babel/core@7.24.4) + '@babel/preset-env': 7.24.6(@babel/core@7.24.6) transitivePeerDependencies: - supports-color @@ -20476,9 +20991,11 @@ snapshots: prelude-ls@1.2.1: {} - prettier-plugin-tailwindcss@0.5.11(prettier@3.2.4): + prettier-plugin-tailwindcss@0.5.11(@ianvs/prettier-plugin-sort-imports@4.2.1(prettier@3.2.4))(prettier@3.2.4): dependencies: prettier: 3.2.4 + optionalDependencies: + '@ianvs/prettier-plugin-sort-imports': 4.2.1(prettier@3.2.4) prettier@3.2.4: {} @@ -20753,8 +21270,8 @@ snapshots: react-docgen@7.0.3: dependencies: - '@babel/core': 7.24.4 - '@babel/traverse': 7.24.1 + '@babel/core': 7.24.6 + '@babel/traverse': 7.24.6 '@babel/types': 7.24.6 '@types/babel__core': 7.20.5 '@types/babel__traverse': 7.20.5