The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Clean up barrel files part 4 (#40015)
Joshen Limcac225b24a34
diff --git a/apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsx b/apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsxindex 20b11ea6139..6594b4c0a32 100644--- a/apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsx+++ b/apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsx@@ -9,11 +9,11 @@ import {getColumnDefaultWidth,} from 'components/grid/utils/gridColumns'import { convertByteaToHex } from 'components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils'+import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { EditorTablePageLink } from 'data/prefetchers/project.$ref.editor.$id'import { useTableRowsQuery } from 'data/table-rows/table-rows-query'import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'import { Button, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'-import ShimmeringLoader from 'ui-patterns/ShimmeringLoader'interface ReferenceRecordPeekProps {table: PostgresTablediff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsxindex 178a94789a6..53b90bae078 100644--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsx+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsx@@ -9,7 +9,7 @@ import {} from 'components/layouts/Scaffold'import AlertError from 'components/ui/AlertError'import { ResourceList } from 'components/ui/Resource/ResourceList'-import { HorizontalShimmerWithIcon } from 'components/ui/Shimmers/Shimmers'+import { HorizontalShimmerWithIcon } from 'components/ui/Shimmers'import { useAuthConfigQuery } from 'data/auth/auth-config-query'import {Alert_Shadcn_,diff --git a/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx b/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsxindex a9bb25d96aa..8c0fb20193c 100644--- a/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx+++ b/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx@@ -2,7 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { Globe, Trash } from 'lucide-react'import { ButtonTooltip } from 'components/ui/ButtonTooltip'-import { EmptyListState } from 'components/ui/States'+import { EmptyListState } from 'components/ui/EmptyListState'import { useAsyncCheckPermissions } from 'hooks/misc/useCheckPermissions'import { Button, Checkbox_Shadcn_ } from 'ui'import { ValueContainer } from './ValueContainer'diff --git a/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx b/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsxindex 76c31220454..4db53464020 100644--- a/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx+++ b/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx@@ -9,7 +9,7 @@ import {} from 'components/layouts/Scaffold'import AlertError from 'components/ui/AlertError'import { DocsButton } from 'components/ui/DocsButton'-import { HorizontalShimmerWithIcon } from 'components/ui/Shimmers/Shimmers'+import { HorizontalShimmerWithIcon } from 'components/ui/Shimmers'import { useAuthConfigQuery } from 'data/auth/auth-config-query'import { useAuthConfigUpdateMutation } from 'data/auth/auth-config-update-mutation'import { DOCS_URL } from 'lib/constants'diff --git a/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsx b/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsxindex 01624ba6092..4e28f74b065 100644--- a/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsx+++ b/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsx@@ -72,7 +72,7 @@ const Avatar = ({ src }: { src: string | undefined }) => {)}-const IntegrationInstallation = forwardRef<HTMLLIElement, IntegrationInstallationProps>(+export const IntegrationInstallation = forwardRef<HTMLLIElement, IntegrationInstallationProps>(({ integration, disabled, ...props }, ref) => {const IntegrationIconBlock = () => {return (@@ -144,7 +144,7 @@ export interface IntegrationConnectionProps extends HTMLAttributes<HTMLLIElementorientation?: 'horizontal' | 'vertical'}-const IntegrationConnection = forwardRef<HTMLLIElement, IntegrationConnectionProps>(+export const IntegrationConnection = forwardRef<HTMLLIElement, IntegrationConnectionProps>(({ connection, type, actions, showNode = true, orientation = 'horizontal', className, ...props },ref@@ -233,7 +233,7 @@ const IntegrationConnection = forwardRef<HTMLLIElement, IntegrationConnectionPro})-const IntegrationConnectionOption = forwardRef<HTMLLIElement, IntegrationConnectionProps>(+export const IntegrationConnectionOption = forwardRef<HTMLLIElement, IntegrationConnectionProps>(({ connection, type, ...props }, ref) => {const { data: project } = useProjectDetailQuery({ ref: connection.supabase_project_ref })@@ -266,7 +266,7 @@ const IntegrationConnectionOption = forwardRef<HTMLLIElement, IntegrationConnect})-const EmptyIntegrationConnection = forwardRef<+export const EmptyIntegrationConnection = forwardRef<HTMLDivElement,HTMLAttributes<HTMLDivElement> & {showNode?: boolean@@ -319,7 +319,7 @@ interface IntegrationConnectionHeader extends React.HTMLAttributes<HTMLDivElemenshowNode?: boolean}-const IntegrationConnectionHeader = forwardRef<HTMLDivElement, IntegrationConnectionHeader>(+export const IntegrationConnectionHeader = forwardRef<HTMLDivElement, IntegrationConnectionHeader>(({ className, markdown = '', showNode = true, ...props }, ref) => {return (<div@@ -343,11 +343,3 @@ IntegrationConnection.displayName = 'IntegrationConnection'IntegrationConnectionHeader.displayName = 'IntegrationConnectionHeader'EmptyIntegrationConnection.displayName = 'EmptyIntegrationConnection'IntegrationConnectionOption.displayName = 'IntegrationConnectionOption'--export {- EmptyIntegrationConnection,- IntegrationConnection,- IntegrationConnectionHeader,- IntegrationConnectionOption,- IntegrationInstallation,-}diff --git a/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanelWithUniversal.tsx b/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanelWithUniversal.tsxindex 438dd9f6b65..f1a2df62e9d 100644--- a/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanelWithUniversal.tsx+++ b/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanelWithUniversal.tsx@@ -108,7 +108,7 @@ function useDebounce<T extends (...args: any[]) => void>(callback: T, delay: num) as T}-const PreviewFilterPanelWithUniversal = ({+export const PreviewFilterPanelWithUniversal = ({isLoading,newCount,onRefresh,@@ -380,5 +380,3 @@ const PreviewFilterPanelWithUniversal = ({</div>)}--export { PreviewFilterPanelWithUniversal }diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/ServiceBlocks.tsx b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/ServiceBlocks.tsxindex d4971cc420c..e2bbe6b4a08 100644--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/ServiceBlocks.tsx+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/ServiceBlocks.tsx@@ -9,31 +9,20 @@ import {import { createBlock } from './shared/Block'// Generate all block components-const MemoizedGoTrueBlock = createBlock(authBlockConfig)--const MemoizedPostgRESTBlock = createBlock(postgrestBlockConfig)--const MemoizedNetworkBlock = createBlock(networkBlockConfig)--const MemoizedEdgeFunctionBlock = createBlock(edgeFunctionBlockConfig)--const MemoizedStorageBlock = createBlock(storageBlockConfig)--const MemoizedPostgresBlock = createBlock(postgresBlockConfig)--// Set display names for debugging+export const MemoizedGoTrueBlock = createBlock(authBlockConfig)MemoizedGoTrueBlock.displayName = 'MemoizedGoTrueBlock'++export const MemoizedPostgRESTBlock = createBlock(postgrestBlockConfig)MemoizedPostgRESTBlock.displayName = 'MemoizedPostgRESTBlock'++export const MemoizedNetworkBlock = createBlock(networkBlockConfig)MemoizedNetworkBlock.displayName = 'MemoizedNetworkBlock'++export const MemoizedEdgeFunctionBlock = createBlock(edgeFunctionBlockConfig)MemoizedEdgeFunctionBlock.displayName = 'MemoizedEdgeFunctionBlock'++export const MemoizedStorageBlock = createBlock(storageBlockConfig)MemoizedStorageBlock.displayName = 'MemoizedStorageBlock'-MemoizedPostgresBlock.displayName = 'MemoizedPostgresBlock'-export {- MemoizedEdgeFunctionBlock,- MemoizedGoTrueBlock,- MemoizedNetworkBlock,- MemoizedPostgresBlock,- MemoizedPostgRESTBlock,- MemoizedStorageBlock,-}+export const MemoizedPostgresBlock = createBlock(postgresBlockConfig)+MemoizedPostgresBlock.displayName = 'MemoizedPostgresBlock'diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/BlockField.tsx b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/BlockField.tsxindex 6f78aff95f3..f824420dd9f 100644--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/BlockField.tsx+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/BlockField.tsx@@ -5,7 +5,7 @@ import { getStatusLevel } from '../../../UnifiedLogs.utils'import { BlockFieldProps } from '../../types'import { TruncatedTextWithPopover } from './TruncatedTextWithPopover'-const BlockField = ({+export const BlockField = ({config,data,enrichedData,@@ -84,5 +84,3 @@ const BlockField = ({return <div className="flex justify-between items-center py-1 px-2">{fieldContent}</div>}--export { BlockField }diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/CollapsibleSection.tsx b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/CollapsibleSection.tsxindex 01c4f920568..39e0aaa26ba 100644--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/CollapsibleSection.tsx+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/CollapsibleSection.tsx@@ -23,7 +23,7 @@ interface CollapsibleSectionProps {defaultOpen?: boolean}-const CollapsibleSection = ({+export const CollapsibleSection = ({title,fields,data,@@ -67,5 +67,3 @@ const CollapsibleSection = ({</div>)}--export { CollapsibleSection }diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/FieldWithSeeMore.tsx b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/FieldWithSeeMore.tsxindex 2bfbeb3884b..4428a686866 100644--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/FieldWithSeeMore.tsx+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/FieldWithSeeMore.tsx@@ -14,7 +14,7 @@ import { BlockFieldConfig } from '../../types'import { BlockField } from './BlockField'// Single source of truth for field row styling-const FieldRow = ({+export const FieldRow = ({label,value,expandButton,@@ -44,7 +44,7 @@ interface FieldWithSeeMoreProps {}// Primary field with expandable additional details-const FieldWithSeeMore = ({+export const FieldWithSeeMore = ({primaryField,additionalFields,data,@@ -131,5 +131,3 @@ const FieldWithSeeMore = ({</div>)}--export { FieldRow, FieldWithSeeMore }diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/TimelineStep.tsx b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/TimelineStep.tsxindex cde1d34e1f1..ea2bc00f796 100644--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/TimelineStep.tsx+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/TimelineStep.tsx@@ -8,13 +8,13 @@ import { getStatusLevel } from '../../../UnifiedLogs.utils'type IconComponent = LucideIcon | React.ComponentType<any>// Reusable styled icon component-const StyledIcon = ({ icon: Icon, title }: { icon: IconComponent; title: string }) => (+export const StyledIcon = ({ icon: Icon, title }: { icon: IconComponent; title: string }) => (<div className="flex items-center gap-2 bg-surface-300 rounded p-0.5 border justify-center border-foreground-muted"><Icon className="w-4 h-4 text-foreground-lighter" strokeWidth={1} /></div>)-const TimelineStep = ({+export const TimelineStep = ({title,status,statusText,@@ -69,5 +69,3 @@ const TimelineStep = ({</div></>)--export { StyledIcon, TimelineStep }diff --git a/apps/studio/components/layouts/IntegrationsLayout/IntegrationWindowLayout.tsx b/apps/studio/components/layouts/IntegrationsLayout/IntegrationWindowLayout.tsxindex 3e80496149d..621e1b2c088 100644--- a/apps/studio/components/layouts/IntegrationsLayout/IntegrationWindowLayout.tsx+++ b/apps/studio/components/layouts/IntegrationsLayout/IntegrationWindowLayout.tsx@@ -4,8 +4,8 @@ import { LoadingLine, cn } from 'ui'import { withAuth } from 'hooks/misc/withAuth'import { BASE_PATH } from 'lib/constants'-import { ScaffoldContainer } from '../Scaffold'import { Book, LifeBuoy, X } from 'lucide-react'+import { ScaffoldContainer } from '../Scaffold'export type IntegrationWindowLayoutProps = {title: string@@ -87,7 +87,7 @@ const Header = ({ title, integrationIcon }: HeaderProps) => {const maxWidthClasses = 'mx-auto w-full max-w-[1600px]'const paddingClasses = 'px-6 lg:px-14 xl:px-28 2xl:px-32'-const IntegrationScaffoldContainer = forwardRef<+export const IntegrationScaffoldContainer = forwardRef<HTMLDivElement,React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => {@@ -95,5 +95,3 @@ const IntegrationScaffoldContainer = forwardRef<})IntegrationScaffoldContainer.displayName = 'IntegrationScaffoldContainer'--export { IntegrationScaffoldContainer }diff --git a/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx b/apps/studio/components/layouts/ProjectLayout/BuildingState.tsxindex 8ee67ce66eb..5093a6af9b3 100644--- a/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx+++ b/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx@@ -6,7 +6,8 @@ import { ClientLibrary } from 'components/interfaces/Home/ClientLibrary'import { ExampleProject } from 'components/interfaces/Home/ExampleProject'import { EXAMPLE_PROJECTS } from 'components/interfaces/Home/Home.constants'import { SupportLink } from 'components/interfaces/Support/SupportLink'-import { DisplayApiSettings, DisplayConfigSettings } from 'components/ui/ProjectSettings'+import { DisplayApiSettings } from 'components/ui/ProjectSettings/DisplayApiSettings'+import { DisplayConfigSettings } from 'components/ui/ProjectSettings/DisplayConfigSettings'import { useInvalidateProjectsInfiniteQuery } from 'data/projects/org-projects-infinite-query'import { useInvalidateProjectDetailsQuery } from 'data/projects/project-detail-query'import { useProjectStatusQuery } from 'data/projects/project-status-query'diff --git a/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx b/apps/studio/components/layouts/SignInLayout/SignInLayout.tsxindex 4b0ce98a50a..57ad52e21c5 100644--- a/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx+++ b/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx@@ -4,11 +4,11 @@ import Link from 'next/link'import { useRouter } from 'next/router'import { PropsWithChildren, useEffect, useState } from 'react'-import { useFlag } from 'common'+import { getAccessToken, useFlag } from 'common'import { DocsButton } from 'components/ui/DocsButton'import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'import { BASE_PATH, DOCS_URL } from 'lib/constants'-import { auth, buildPathWithParams, getAccessToken, getReturnToPath } from 'lib/gotrue'+import { auth, buildPathWithParams, getReturnToPath } from 'lib/gotrue'import { tweets } from 'shared-data'type SignInLayoutProps = {diff --git a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx b/apps/studio/components/ui/Charts/ComposedChart.utils.tsxindex 25cd293a1ed..21ecbe5580b 100644--- a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx+++ b/apps/studio/components/ui/Charts/ComposedChart.utils.tsx@@ -1,11 +1,11 @@'use client'import dayjs from 'dayjs'+import { formatBytes } from 'lib/helpers'import { useState } from 'react'import { cn, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from 'ui'import { CHART_COLORS, DateTimeFormats } from './Charts.constants'import { numberFormatter } from './Charts.utils'-import { formatBytes } from 'lib/helpers'export interface ReportAttributes {id?: string@@ -129,7 +129,7 @@ export const calculateTotalChartAggregate = (?.filter((p) => !ignoreAttributes?.includes(p.dataKey)).reduce((acc, curr) => acc + curr.value, 0)-const CustomTooltip = ({+export const CustomTooltip = ({active,payload,label,@@ -259,7 +259,7 @@ interface CustomLabelProps {hiddenAttributes?: Set<string>}-const CustomLabel = ({+export const CustomLabel = ({payload,attributes,showMaxValue,@@ -341,5 +341,3 @@ const CustomLabel = ({</div>)}--export { CustomLabel, CustomTooltip }diff --git a/apps/studio/components/ui/DataTable/Table.tsx b/apps/studio/components/ui/DataTable/Table.tsxindex efd78e2613a..ab2ab23c958 100644--- a/apps/studio/components/ui/DataTable/Table.tsx+++ b/apps/studio/components/ui/DataTable/Table.tsx@@ -12,7 +12,7 @@ import {} from 'ui/src/components/shadcn/ui/table'// Only create a custom component for Table with the added props-const Table = forwardRef<HTMLTableElement, ComponentPropsWithRef<typeof ShadcnTable>>(+export const Table = forwardRef<HTMLTableElement, ComponentPropsWithRef<typeof ShadcnTable>>(({ className, onScroll, ...props }, ref) => (<ShadcnTableref={ref}@@ -27,7 +27,7 @@ const Table = forwardRef<HTMLTableElement, ComponentPropsWithRef<typeof ShadcnTa)Table.displayName = 'Table'-const TableHeader = forwardRef<+export const TableHeader = forwardRef<HTMLTableSectionElement,ComponentPropsWithRef<typeof ShadcnTableHeader>>(({ className, ...props }, ref) => (@@ -35,7 +35,7 @@ const TableHeader = forwardRef<))TableHeader.displayName = 'TableHeader'-const TableBody = forwardRef<+export const TableBody = forwardRef<HTMLTableSectionElement,ComponentPropsWithRef<typeof ShadcnTableBody>>(({ className, ...props }, ref) => (@@ -49,7 +49,7 @@ const TableBody = forwardRef<))TableBody.displayName = 'TableBody'-const TableFooter = forwardRef<+export const TableFooter = forwardRef<HTMLTableSectionElement,ComponentPropsWithRef<typeof ShadcnTableFooter>>(({ className, ...props }, ref) => (@@ -57,50 +57,51 @@ const TableFooter = forwardRef<))TableFooter.displayName = 'TableFooter'-const TableRow = forwardRef<HTMLTableRowElement, ComponentPropsWithRef<typeof ShadcnTableRow>>(- ({ className, ...props }, ref) => (- <ShadcnTableRow- ref={ref}- className={cn('bg-background hover:bg-surface-100 border-b-0', className)}- {...props}- />- )-)+export const TableRow = forwardRef<+ HTMLTableRowElement,+ ComponentPropsWithRef<typeof ShadcnTableRow>+>(({ className, ...props }, ref) => (+ <ShadcnTableRow+ ref={ref}+ className={cn('bg-background hover:bg-surface-100 border-b-0', className)}+ {...props}+ />+))TableRow.displayName = 'TableRow'-const TableHead = forwardRef<HTMLTableCellElement, ComponentPropsWithRef<typeof ShadcnTableHead>>(- ({ className, ...props }, ref) => (- <ShadcnTableHead- ref={ref}- className={cn(- '!text-xs !font-normal text-foreground-lighter font-mono',- 'relative select-none truncate [&>.cursor-col-resize]:last:opacity-0',- 'text-muted-foreground h-8 px-2 text-left align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',- className- )}- {...props}- />- )-)+export const TableHead = forwardRef<+ HTMLTableCellElement,+ ComponentPropsWithRef<typeof ShadcnTableHead>+>(({ className, ...props }, ref) => (+ <ShadcnTableHead+ ref={ref}+ className={cn(+ '!text-xs !font-normal text-foreground-lighter font-mono',+ 'relative select-none truncate [&>.cursor-col-resize]:last:opacity-0',+ 'text-muted-foreground h-8 px-2 text-left align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',+ className+ )}+ {...props}+ />+))TableHead.displayName = 'TableHead'-const TableCell = forwardRef<HTMLTableCellElement, ComponentPropsWithRef<typeof ShadcnTableCell>>(- ({ className, ...props }, ref) => (- <ShadcnTableCell- ref={ref}- className={cn('text-xs !py-1 p-2 [&>[role=checkbox]]:translate-y-[2px] truncate', className)}- {...props}- />- )-)+export const TableCell = forwardRef<+ HTMLTableCellElement,+ ComponentPropsWithRef<typeof ShadcnTableCell>+>(({ className, ...props }, ref) => (+ <ShadcnTableCell+ ref={ref}+ className={cn('text-xs !py-1 p-2 [&>[role=checkbox]]:translate-y-[2px] truncate', className)}+ {...props}+ />+))TableCell.displayName = 'TableCell'-const TableCaption = forwardRef<+export const TableCaption = forwardRef<HTMLTableCaptionElement,ComponentPropsWithRef<typeof ShadcnTableCaption>>(({ className, ...props }, ref) => (<ShadcnTableCaption ref={ref} className={cn('text-sm', className)} {...props} />))TableCaption.displayName = 'TableCaption'--export { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow }diff --git a/apps/studio/components/ui/DataTable/primitives/Slider.tsx b/apps/studio/components/ui/DataTable/primitives/Slider.tsxindex b5d90eff3a6..6809ead1423 100644--- a/apps/studio/components/ui/DataTable/primitives/Slider.tsx+++ b/apps/studio/components/ui/DataTable/primitives/Slider.tsx@@ -6,7 +6,7 @@ import { ComponentPropsWithoutRef, ElementRef, forwardRef, Fragment } from 'reacimport { cn } from 'ui'-const Slider = forwardRef<+export const Slider = forwardRef<ElementRef<typeof SliderPrimitive.Root>,ComponentPropsWithoutRef<typeof SliderPrimitive.Root>>(({ className, ...props }, ref) => {@@ -30,5 +30,3 @@ const Slider = forwardRef<)})Slider.displayName = SliderPrimitive.Root.displayName--export { Slider }diff --git a/apps/studio/components/ui/DataTable/primitives/Sortable.tsx b/apps/studio/components/ui/DataTable/primitives/Sortable.tsxindex 24b45191a95..60d95096fe6 100644--- a/apps/studio/components/ui/DataTable/primitives/Sortable.tsx+++ b/apps/studio/components/ui/DataTable/primitives/Sortable.tsx@@ -120,7 +120,7 @@ interface SortableProps<TData extends { id: UniqueIdentifier }> extends DndConteoverlay?: React.ReactNode | null}-function Sortable<TData extends { id: UniqueIdentifier }>({+export function Sortable<TData extends { id: UniqueIdentifier }>({value,onValueChange,onDragStart,@@ -202,7 +202,7 @@ interface SortableOverlayProps extends React.ComponentPropsWithRef<typeof DragOvactiveId?: UniqueIdentifier | null}-const SortableOverlay = forwardRef<HTMLDivElement, SortableOverlayProps>(+export const SortableOverlay = forwardRef<HTMLDivElement, SortableOverlayProps>(({ activeId, dropAnimation = dropAnimationOpts, children, ...props }, ref) => {return (<DragOverlay dropAnimation={dropAnimation} {...props}>@@ -262,7 +262,7 @@ interface SortableItemProps extends SlotProps {asChild?: boolean}-const SortableItem = forwardRef<HTMLDivElement, SortableItemProps>(+export const SortableItem = forwardRef<HTMLDivElement, SortableItemProps>(({ value, asTrigger, asChild, className, ...props }, ref) => {const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({id: value,@@ -309,7 +309,7 @@ interface SortableDragHandleProps extends ButtonProps {withHandle?: boolean}-const SortableDragHandle = forwardRef<HTMLButtonElement, SortableDragHandleProps>(+export const SortableDragHandle = forwardRef<HTMLButtonElement, SortableDragHandleProps>(({ className, ...props }, ref) => {const { attributes, listeners, isDragging } = useSortableItem()@@ -326,5 +326,3 @@ const SortableDragHandle = forwardRef<HTMLButtonElement, SortableDragHandleProps})SortableDragHandle.displayName = 'SortableDragHandle'--export { Sortable, SortableDragHandle, SortableItem, SortableOverlay }diff --git a/apps/studio/components/ui/States/EmptyListState.tsx b/apps/studio/components/ui/EmptyListState.tsxsimilarity index 100%rename from apps/studio/components/ui/States/EmptyListState.tsxrename to apps/studio/components/ui/EmptyListState.tsxdiff --git a/apps/studio/components/ui/Forms/FormActions.tsx b/apps/studio/components/ui/Forms/FormActions.tsxindex 44057325313..cb1410c04b2 100644--- a/apps/studio/components/ui/Forms/FormActions.tsx+++ b/apps/studio/components/ui/Forms/FormActions.tsx@@ -10,7 +10,7 @@ interface Props {submitText?: string}-const FormActions = ({+export const FormActions = ({form,hasChanges = undefined,handleReset,@@ -47,5 +47,3 @@ const FormActions = ({</div>)}--export { FormActions }diff --git a/apps/studio/components/ui/Forms/FormHeader.tsx b/apps/studio/components/ui/Forms/FormHeader.tsxindex ccf5288b272..aa7da61dd0e 100644--- a/apps/studio/components/ui/Forms/FormHeader.tsx+++ b/apps/studio/components/ui/Forms/FormHeader.tsx@@ -2,7 +2,7 @@ import { ReactNode } from 'react'import { cn } from 'ui'import { DocsButton } from '../DocsButton'-const FormHeader = ({+export const FormHeader = ({title,description,docsUrl,@@ -32,5 +32,3 @@ const FormHeader = ({</div>)}--export { FormHeader }diff --git a/apps/studio/components/ui/Forms/FormPanel.tsx b/apps/studio/components/ui/Forms/FormPanel.tsxindex 7e7c88fff66..f780aab0524 100644--- a/apps/studio/components/ui/Forms/FormPanel.tsx+++ b/apps/studio/components/ui/Forms/FormPanel.tsx@@ -12,7 +12,7 @@ interface Props {}/** @deprecated Use Card instead, refer to BasicAuthSettingsForm.tsx for reference */-const FormPanel = ({ children, header, footer }: Props) => (+export const FormPanel = ({ children, header, footer }: Props) => (<FormPanelContainer>{header && <FormPanelHeader>{header}</FormPanelHeader>}<FormPanelContent className="divide-y">{children}</FormPanelContent>@@ -20,7 +20,7 @@ const FormPanel = ({ children, header, footer }: Props) => (</FormPanelContainer>)-const FormPanelContainer = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(+export const FormPanelContainer = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({ children, ...props }, ref) => (<divref={ref}@@ -37,7 +37,7 @@ const FormPanelContainer = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElemFormPanelContainer.displayName = FormPanelContainer.displayName-const FormPanelHeader = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(+export const FormPanelHeader = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({ children, ...props }, ref) => (<div ref={ref} {...props} className={cn('border-default border-b px-8 py-4', props.className)}>{children}@@ -47,7 +47,7 @@ const FormPanelHeader = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElementFormPanelHeader.displayName = FormPanelHeader.displayName-const FormPanelContent = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(+export const FormPanelContent = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({ children, ...props }, ref) => (<div ref={ref} {...props} className={cn('divide-border flex flex-col gap-0', props.className)}>{children}@@ -57,7 +57,7 @@ const FormPanelContent = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElemenFormPanelContent.displayName = FormPanelContent.displayName-const FormPanelFooter = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(+export const FormPanelFooter = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({ children, ...props }, ref) => (<div ref={ref} {...props} className={cn('border-t', props.className)}>{children}@@ -66,5 +66,3 @@ const FormPanelFooter = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement)FormPanelFooter.displayName = FormPanelFooter.displayName--export { FormPanel, FormPanelContainer, FormPanelContent, FormPanelFooter, FormPanelHeader }diff --git a/apps/studio/components/ui/Forms/FormSection.tsx b/apps/studio/components/ui/Forms/FormSection.tsxindex 3622bb9b814..1339b94fa95 100644--- a/apps/studio/components/ui/Forms/FormSection.tsx+++ b/apps/studio/components/ui/Forms/FormSection.tsx@@ -1,6 +1,6 @@import { Children } from 'react'-const FormSection = ({+export const FormSection = ({children,id,header,@@ -28,7 +28,7 @@ const FormSection = ({)}-const FormSectionLabel = ({+export const FormSectionLabel = ({children,className = '',description,@@ -62,7 +62,7 @@ const Shimmer = () => (</div>)-const FormSectionContent = ({+export const FormSectionContent = ({children,loading = true,loaders,@@ -91,5 +91,3 @@ const FormSectionContent = ({</div>)}--export { FormSection, FormSectionContent, FormSectionLabel }diff --git a/apps/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx b/apps/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsxindex e4ffdb9ad79..8ad33c4f4d4 100644--- a/apps/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx+++ b/apps/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx@@ -9,7 +9,7 @@ import { useProjectPostgrestConfigQuery } from 'data/config/project-postgrest-coimport { useProjectSettingsV2Query } from 'data/config/project-settings-v2-query'import { Input } from 'ui'-const DisplayConfigSettings = () => {+export const DisplayConfigSettings = () => {const { ref: projectRef } = useParams()const {data: settings,@@ -91,8 +91,6 @@ const DisplayConfigSettings = () => {)}-export default DisplayConfigSettings-const ConfigContentWrapper = ({ children }: PropsWithChildren<{}>) => {return (<Paneldiff --git a/apps/studio/components/ui/ProjectSettings/index.tsx b/apps/studio/components/ui/ProjectSettings/index.tsxdeleted file mode 100644index 2d41ad6aaf5..00000000000--- a/apps/studio/components/ui/ProjectSettings/index.tsx+++ /dev/null@@ -1,4 +0,0 @@-import { DisplayApiSettings } from './DisplayApiSettings'-import DisplayConfigSettings from './DisplayConfigSettings'--export { DisplayApiSettings, DisplayConfigSettings }diff --git a/apps/studio/components/ui/ShimmeringLoader.tsx b/apps/studio/components/ui/ShimmeringLoader.tsxindex b30b5f27d46..948711ba022 100644--- a/apps/studio/components/ui/ShimmeringLoader.tsx+++ b/apps/studio/components/ui/ShimmeringLoader.tsx@@ -1,13 +1,15 @@import { useSynchronizedAnimation } from 'hooks/misc/useSynchronizedAnimation'import { cn } from 'ui'+// [Joshen] Deprecate this file - this is declared in ui-patterns+export interface ShimmeringLoader {className?: stringdelayIndex?: numberanimationDelay?: number}-const ShimmeringLoader = ({+export const ShimmeringLoader = ({className,delayIndex = 0,animationDelay = 150,@@ -26,13 +28,11 @@ const ShimmeringLoader = ({)}-const GenericSkeletonLoader = () => (+export const GenericSkeletonLoader = () => (<div className="space-y-2"><ShimmeringLoader /><ShimmeringLoader className="w-3/4" delayIndex={1} /><ShimmeringLoader className="w-1/2" delayIndex={2} /></div>)--export { GenericSkeletonLoader }export default ShimmeringLoaderdiff --git a/apps/studio/components/ui/Shimmers/Shimmers.tsx b/apps/studio/components/ui/Shimmers.tsxsimilarity index 81%rename from apps/studio/components/ui/Shimmers/Shimmers.tsxrename to apps/studio/components/ui/Shimmers.tsxindex 88ee66fde88..1aa9f0d8baf 100644--- a/apps/studio/components/ui/Shimmers/Shimmers.tsx+++ b/apps/studio/components/ui/Shimmers.tsx@@ -1,4 +1,4 @@-const HorizontalShimmerWithIcon = () => (+export const HorizontalShimmerWithIcon = () => (<div className="flex w-full flex-row items-center justify-between gap-2"><div className="flex flex-row items-center gap-3"><div className="shimmering-loader h-6 w-6 rounded-full"></div>@@ -7,5 +7,3 @@ const HorizontalShimmerWithIcon = () => (<div className="shimmering-loader h-6 w-20 rounded"></div></div>)--export { HorizontalShimmerWithIcon }diff --git a/apps/studio/components/ui/States/NoTableState.tsx b/apps/studio/components/ui/States/NoTableState.tsxdeleted file mode 100644index fed3f31d7ec..00000000000--- a/apps/studio/components/ui/States/NoTableState.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { useRouter } from 'next/router'-import ProductEmptyState from '../../to-be-cleaned/ProductEmptyState'--interface Props {- message: string-}--const NoTableState: React.FC<Props> = ({ message }) => {- const router = useRouter()- const { ref } = router.query-- return (- <ProductEmptyState- title="No public tables found"- ctaButtonLabel="Create a new table"- onClickCta={() => {- router.push(`/project/${ref}/editor`)- }}- >- <p className="text-sm text-foreground-light">{message}</p>- </ProductEmptyState>- )-}--export default NoTableStatediff --git a/apps/studio/components/ui/States/index.tsx b/apps/studio/components/ui/States/index.tsxdeleted file mode 100644index 9f93bba4741..00000000000--- a/apps/studio/components/ui/States/index.tsx+++ /dev/null@@ -1,4 +0,0 @@-import { EmptyListState } from './EmptyListState'-import NoTableState from './NoTableState'--export { EmptyListState, NoTableState }diff --git a/apps/studio/data/auth/session-access-token-query.ts b/apps/studio/data/auth/session-access-token-query.tsindex c5f042e1288..d335e3ed6a6 100644--- a/apps/studio/data/auth/session-access-token-query.ts+++ b/apps/studio/data/auth/session-access-token-query.ts@@ -1,7 +1,7 @@import { useQuery, UseQueryOptions } from '@tanstack/react-query'+import { getAccessToken } from 'common'import { authKeys } from './keys'-import { getAccessToken } from 'lib/gotrue'export async function getSessionAccessToken() {// ignore if server-sidediff --git a/apps/studio/data/fetchers.ts b/apps/studio/data/fetchers.tsindex aa8d66e428c..57ea115c056 100644--- a/apps/studio/data/fetchers.ts+++ b/apps/studio/data/fetchers.ts@@ -3,9 +3,8 @@ import * as Sentry from '@sentry/nextjs'import createClient from 'openapi-fetch'import { DEFAULT_PLATFORM_APPLICATION_NAME } from '@supabase/pg-meta/src/constants'-import { IS_PLATFORM } from 'common'+import { IS_PLATFORM, getAccessToken } from 'common'import { API_URL } from 'lib/constants'-import { getAccessToken } from 'lib/gotrue'import { uuidv4 } from 'lib/helpers'import { ResponseError } from 'types'import type { paths } from './api' // generated from openapi-typescriptdiff --git a/apps/studio/hooks/custom-content/useCustomContent.ts b/apps/studio/hooks/custom-content/useCustomContent.tsindex 8f26fe1f397..f125025178e 100644--- a/apps/studio/hooks/custom-content/useCustomContent.ts+++ b/apps/studio/hooks/custom-content/useCustomContent.ts@@ -24,7 +24,7 @@ function contentToCamelCase(feature: CustomContent) {.join('') as CustomContentToCamelCase<typeof feature>}-const useCustomContent = <T extends CustomContent[]>(+export const useCustomContent = <T extends CustomContent[]>(contents: T): {[key in CustomContentToCamelCase<T[number]>]:@@ -40,5 +40,3 @@ const useCustomContent = <T extends CustomContent[]>(| null}}--export { useCustomContent }diff --git a/apps/studio/lib/gotrue.ts b/apps/studio/lib/gotrue.tsindex b51fdd29e71..a80ab433d6e 100644--- a/apps/studio/lib/gotrue.ts+++ b/apps/studio/lib/gotrue.ts@@ -1,9 +1,8 @@import type { JwtPayload } from '@supabase/supabase-js'-import { getAccessToken, type User } from 'common/auth'+import { type User } from 'common/auth'import { gotrueClient } from 'common/gotrue'export const auth = gotrueClient-export { getAccessToken }export const DEFAULT_FALLBACK_PATH = '/organizations'diff --git a/apps/studio/pages/forgot-password-mfa.tsx b/apps/studio/pages/forgot-password-mfa.tsxindex 82b0c1f3ef0..341485c511c 100644--- a/apps/studio/pages/forgot-password-mfa.tsx+++ b/apps/studio/pages/forgot-password-mfa.tsx@@ -4,10 +4,11 @@ import { useRouter } from 'next/router'import { useEffect, useState } from 'react'import { toast } from 'sonner'+import { getAccessToken } from 'common'import { SignInMfaForm } from 'components/interfaces/SignIn/SignInMfaForm'import ForgotPasswordLayout from 'components/layouts/SignInLayout/ForgotPasswordLayout'import { Loading } from 'components/ui/Loading'-import { auth, buildPathWithParams, getAccessToken, getReturnToPath } from 'lib/gotrue'+import { auth, buildPathWithParams, getReturnToPath } from 'lib/gotrue'import type { NextPageWithLayout } from 'types'const ForgotPasswordMfa: NextPageWithLayout = () => {diff --git a/apps/studio/pages/project/[ref]/settings/api-keys/index.tsx b/apps/studio/pages/project/[ref]/settings/api-keys/index.tsxindex adb2080fe26..373744e4511 100644--- a/apps/studio/pages/project/[ref]/settings/api-keys/index.tsx+++ b/apps/studio/pages/project/[ref]/settings/api-keys/index.tsx@@ -1,7 +1,7 @@import ApiKeysLayout from 'components/layouts/APIKeys/APIKeysLayout'import DefaultLayout from 'components/layouts/DefaultLayout'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'-import { DisplayApiSettings } from 'components/ui/ProjectSettings'+import { DisplayApiSettings } from 'components/ui/ProjectSettings/DisplayApiSettings'import { ToggleLegacyApiKeysPanel } from 'components/ui/ProjectSettings/ToggleLegacyApiKeys'import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'import type { NextPageWithLayout } from 'types'diff --git a/apps/studio/pages/sign-in-mfa.tsx b/apps/studio/pages/sign-in-mfa.tsxindex 4003a9931ad..7c67408c4ae 100644--- a/apps/studio/pages/sign-in-mfa.tsx+++ b/apps/studio/pages/sign-in-mfa.tsx@@ -4,14 +4,14 @@ import { useRouter } from 'next/router'import { useEffect, useState } from 'react'import { toast } from 'sonner'-import { useParams } from 'common'+import { getAccessToken, useParams } from 'common'import { SignInMfaForm } from 'components/interfaces/SignIn/SignInMfaForm'import SignInLayout from 'components/layouts/SignInLayout/SignInLayout'import { Loading } from 'components/ui/Loading'import { useAddLoginEvent } from 'data/misc/audit-login-mutation'import { useSendEventMutation } from 'data/telemetry/send-event-mutation'import useLatest from 'hooks/misc/useLatest'-import { auth, buildPathWithParams, getAccessToken, getReturnToPath } from 'lib/gotrue'+import { auth, buildPathWithParams, getReturnToPath } from 'lib/gotrue'import type { NextPageWithLayout } from 'types'const SignInMfaPage: NextPageWithLayout = () => {