diff --git a/package.json b/package.json index 5bd43c8db..00fc48d94 100644 --- a/package.json +++ b/package.json @@ -338,7 +338,7 @@ "ts-node": "10.9.1", "tsconfig-paths": "^4.2.0", "tsx": "^4.17.0", - "vite": "^5.4.0", + "vite": "^6.3.5", "vite-plugin-checker": "^0.6.2", "vite-plugin-dts": "3.8.1", "vite-plugin-svgr": "^4.2.0", diff --git a/packages/twenty-front/package.json b/packages/twenty-front/package.json index db08aa9d2..b244577fc 100644 --- a/packages/twenty-front/package.json +++ b/packages/twenty-front/package.json @@ -3,9 +3,9 @@ "private": true, "type": "module", "scripts": { - "build": "VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true NODE_OPTIONS=--max-old-space-size=4500 npx vite build && sh ./scripts/inject-runtime-env.sh", - "build:sourcemaps": "VITE_BUILD_SOURCEMAP=true VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true NODE_OPTIONS=--max-old-space-size=7000 npx vite build && sh ./scripts/inject-runtime-env.sh", - "start:prod": "NODE_ENV=production npx vite --host", + "build": "VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true NODE_OPTIONS=--max-old-space-size=8192 npx vite build && sh ./scripts/inject-runtime-env.sh", + "build:sourcemaps": "VITE_BUILD_SOURCEMAP=true VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true NODE_OPTIONS=--max-old-space-size=8192 npx vite build && sh ./scripts/inject-runtime-env.sh", + "start:prod": "NODE_ENV=production npx serve -s build", "tsup": "npx tsup" }, "engines": { @@ -82,6 +82,7 @@ "eslint-plugin-storybook": "^0.6.15", "eslint-plugin-unicorn": "^51.0.1", "eslint-plugin-unused-imports": "^3.0.0", - "optionator": "^0.9.1" + "optionator": "^0.9.1", + "rollup-plugin-visualizer": "^5.14.0" } } diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/utils/exportBlockNoteEditorToPdf.ts b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/utils/exportBlockNoteEditorToPdf.ts index 1cd3241dd..88fb48f42 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/utils/exportBlockNoteEditorToPdf.ts +++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/utils/exportBlockNoteEditorToPdf.ts @@ -3,7 +3,7 @@ import { PDFExporter, pdfDefaultSchemaMappings, } from '@blocknote/xl-pdf-exporter'; -import * as ReactPDF from '@react-pdf/renderer'; +import { pdf } from '@react-pdf/renderer'; import { saveAs } from 'file-saver'; export const exportBlockNoteEditorToPdf = async ( @@ -14,6 +14,6 @@ export const exportBlockNoteEditorToPdf = async ( const pdfDocument = await exporter.toReactPDFDocument(editor.document); - const blob = await ReactPDF.pdf(pdfDocument).toBlob(); + const blob = await pdf(pdfDocument).toBlob(); saveAs(blob, `${filename}.pdf`); }; diff --git a/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx b/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx index ac3046ccd..d1ba431d5 100644 --- a/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx +++ b/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx @@ -1,7 +1,6 @@ import { ActivityRow } from '@/activities/components/ActivityRow'; import { AttachmentDropdown } from '@/activities/files/components/AttachmentDropdown'; import { AttachmentIcon } from '@/activities/files/components/AttachmentIcon'; -import { PREVIEWABLE_EXTENSIONS } from '@/activities/files/components/DocumentViewer'; import { Attachment } from '@/activities/files/types/Attachment'; import { downloadFile } from '@/activities/files/utils/downloadFile'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -17,10 +16,11 @@ import styled from '@emotion/styled'; import { useState } from 'react'; import { isDefined } from 'twenty-shared/utils'; -import { formatToHumanReadableDate } from '~/utils/date-utils'; -import { getFileNameAndExtension } from '~/utils/file/getFileNameAndExtension'; +import { PREVIEWABLE_EXTENSIONS } from '@/activities/files/const/previewable-extensions.const'; import { IconCalendar, OverflowingTextWithTooltip } from 'twenty-ui/display'; import { isModifiedEvent } from 'twenty-ui/utilities'; +import { formatToHumanReadableDate } from '~/utils/date-utils'; +import { getFileNameAndExtension } from '~/utils/file/getFileNameAndExtension'; const StyledLeftContent = styled.div` align-items: center; diff --git a/packages/twenty-front/src/modules/activities/files/components/DocumentViewer.tsx b/packages/twenty-front/src/modules/activities/files/components/DocumentViewer.tsx index 135ecd358..e761accfb 100644 --- a/packages/twenty-front/src/modules/activities/files/components/DocumentViewer.tsx +++ b/packages/twenty-front/src/modules/activities/files/components/DocumentViewer.tsx @@ -1,3 +1,4 @@ +import { PREVIEWABLE_EXTENSIONS } from '@/activities/files/const/previewable-extensions.const'; import { fetchCsvPreview } from '@/activities/files/utils/fetchCsvPreview'; import DocViewer, { DocViewerRenderers } from '@cyntler/react-doc-viewer'; import '@cyntler/react-doc-viewer/dist/index.css'; @@ -41,29 +42,6 @@ type DocumentViewerProps = { documentUrl: string; }; -export const PREVIEWABLE_EXTENSIONS = [ - 'bmp', - 'csv', - 'odt', - 'doc', - 'docx', - 'gif', - 'htm', - 'html', - 'jpg', - 'jpeg', - 'pdf', - 'png', - 'ppt', - 'pptx', - 'tiff', - 'txt', - 'xls', - 'xlsx', - 'mp4', - 'webp', -]; - const MIME_TYPE_MAPPING: Record< (typeof PREVIEWABLE_EXTENSIONS)[number], string diff --git a/packages/twenty-front/src/modules/activities/files/const/previewable-extensions.const.ts b/packages/twenty-front/src/modules/activities/files/const/previewable-extensions.const.ts new file mode 100644 index 000000000..136db4063 --- /dev/null +++ b/packages/twenty-front/src/modules/activities/files/const/previewable-extensions.const.ts @@ -0,0 +1,22 @@ +export const PREVIEWABLE_EXTENSIONS = [ + 'bmp', + 'csv', + 'odt', + 'doc', + 'docx', + 'gif', + 'htm', + 'html', + 'jpg', + 'jpeg', + 'pdf', + 'png', + 'ppt', + 'pptx', + 'tiff', + 'txt', + 'xls', + 'xlsx', + 'mp4', + 'webp', +]; diff --git a/packages/twenty-front/src/modules/error-handler/components/AppErrorBoundary.tsx b/packages/twenty-front/src/modules/error-handler/components/AppErrorBoundary.tsx index 8317cfbbb..3e88ab503 100644 --- a/packages/twenty-front/src/modules/error-handler/components/AppErrorBoundary.tsx +++ b/packages/twenty-front/src/modules/error-handler/components/AppErrorBoundary.tsx @@ -1,5 +1,5 @@ import { AppErrorBoundaryEffect } from '@/error-handler/components/internal/AppErrorBoundaryEffect'; -import * as Sentry from '@sentry/react'; +import { captureException } from '@sentry/react'; import { ErrorInfo, ReactNode } from 'react'; import { ErrorBoundary, FallbackProps } from 'react-error-boundary'; @@ -15,7 +15,7 @@ export const AppErrorBoundary = ({ resetOnLocationChange = true, }: AppErrorBoundaryProps) => { const handleError = (error: Error, info: ErrorInfo) => { - Sentry.captureException(error, (scope) => { + captureException(error, (scope) => { scope.setExtras({ info }); return scope; }); diff --git a/packages/twenty-front/src/modules/error-handler/components/SentryInitEffect.tsx b/packages/twenty-front/src/modules/error-handler/components/SentryInitEffect.tsx index 6eeda1ebd..9c895bab2 100644 --- a/packages/twenty-front/src/modules/error-handler/components/SentryInitEffect.tsx +++ b/packages/twenty-front/src/modules/error-handler/components/SentryInitEffect.tsx @@ -1,4 +1,9 @@ -import * as Sentry from '@sentry/react'; +import { + browserTracingIntegration, + init, + replayIntegration, + setUser, +} from '@sentry/react'; import { isNonEmptyString } from '@sniptt/guards'; import { useEffect, useState } from 'react'; import { useRecoilValue } from 'recoil'; @@ -7,8 +12,8 @@ import { currentUserState } from '@/auth/states/currentUserState'; import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; import { sentryConfigState } from '@/client-config/states/sentryConfigState'; -import { REACT_APP_SERVER_BASE_URL } from '~/config'; import { isDefined } from 'twenty-shared/utils'; +import { REACT_APP_SERVER_BASE_URL } from '~/config'; export const SentryInitEffect = () => { const sentryConfig = useRecoilValue(sentryConfigState); @@ -21,14 +26,11 @@ export const SentryInitEffect = () => { useEffect(() => { if (isNonEmptyString(sentryConfig?.dsn) && !isSentryInitialized) { - Sentry.init({ + init({ environment: sentryConfig?.environment ?? undefined, release: sentryConfig?.release ?? undefined, dsn: sentryConfig?.dsn, - integrations: [ - Sentry.browserTracingIntegration({}), - Sentry.replayIntegration(), - ], + integrations: [browserTracingIntegration({}), replayIntegration()], tracePropagationTargets: ['localhost:3001', REACT_APP_SERVER_BASE_URL], tracesSampleRate: 1.0, replaysSessionSampleRate: 0.1, @@ -39,14 +41,14 @@ export const SentryInitEffect = () => { } if (isDefined(currentUser)) { - Sentry.setUser({ + setUser({ email: currentUser?.email, id: currentUser?.id, workspaceId: currentWorkspace?.id, workspaceMemberId: currentWorkspaceMember?.id, }); } else { - Sentry.setUser(null); + setUser(null); } }, [ sentryConfig, diff --git a/packages/twenty-front/src/modules/object-record/record-field/types/FieldMetadata.ts b/packages/twenty-front/src/modules/object-record/record-field/types/FieldMetadata.ts index 82723d353..3eea99411 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/types/FieldMetadata.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/types/FieldMetadata.ts @@ -3,7 +3,7 @@ import { ZodHelperLiteral } from '@/object-record/record-field/types/ZodHelperLi import { ObjectRecord } from '@/object-record/types/ObjectRecord'; import { ConnectedAccountProvider } from 'twenty-shared/types'; import { ThemeColor } from 'twenty-ui/theme'; -import * as z from 'zod'; +import { z } from 'zod'; import { RelationDefinitionType } from '~/generated-metadata/graphql'; import { CurrencyCode } from './CurrencyCode'; diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellBaseContainer.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellBaseContainer.tsx index 45c646c89..d125c9a88 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellBaseContainer.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellBaseContainer.tsx @@ -31,29 +31,24 @@ const StyledBaseContainer = styled.div<{ } &:hover { - ${({ - isReadOnly, - fontColorMedium, - backgroundColorSecondary, - fontColorSecondary, - }) => - isReadOnly - ? ` - outline: 1px solid ${fontColorMedium}; - border-radius: 0px; - background-color: ${backgroundColorSecondary}; - - color: ${fontColorSecondary}; - - svg { - color: ${fontColorSecondary}; - } - - img { - opacity: 0.64; - } - ` - : ''} + ${(props) => { + if (!props.isReadOnly) return ''; + + return ` + outline: 1px solid ${props.fontColorMedium}; + border-radius: 0px; + background-color: ${props.backgroundColorSecondary}; + color: ${props.fontColorSecondary}; + + svg { + color: ${props.fontColorSecondary}; + } + + img { + opacity: 0.64; + } + `; + }} } `; diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerMetricsTooltip.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerMetricsTooltip.tsx index a58749f1c..da3afe39d 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerMetricsTooltip.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerMetricsTooltip.tsx @@ -1,5 +1,5 @@ import styled from '@emotion/styled'; -import { Point } from '@nivo/line'; +import type { Point } from '@nivo/line'; import { ReactElement } from 'react'; const StyledTooltipContainer = styled.div` diff --git a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/UploadStep/components/DropZone.tsx b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/UploadStep/components/DropZone.tsx index fd7ec8c95..da6bd3cda 100644 --- a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/UploadStep/components/DropZone.tsx +++ b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/UploadStep/components/DropZone.tsx @@ -1,7 +1,7 @@ import styled from '@emotion/styled'; import { useState } from 'react'; import { useDropzone } from 'react-dropzone'; -import * as XLSX from 'xlsx-ugnis'; +import { read, WorkBook } from 'xlsx-ugnis'; import { useSpreadsheetImportInternal } from '@/spreadsheet-import/hooks/useSpreadsheetImportInternal'; import { readFileAsync } from '@/spreadsheet-import/utils/readFilesAsync'; @@ -84,7 +84,7 @@ const StyledText = styled.span` `; type DropZoneProps = { - onContinue: (data: XLSX.WorkBook, file: File) => void; + onContinue: (data: WorkBook, file: File) => void; isLoading: boolean; }; @@ -119,7 +119,7 @@ export const DropZone = ({ onContinue, isLoading }: DropZoneProps) => { onDropAccepted: async ([file]) => { setLoading(true); const arrayBuffer = await readFileAsync(file); - const workbook = XLSX.read(arrayBuffer, { + const workbook = read(arrayBuffer, { cellDates: true, codepage: 65001, // UTF-8 codepage dateNF: dateFormat, diff --git a/packages/twenty-front/src/modules/spreadsheet-import/utils/__tests__/mapWorkbook.test.ts b/packages/twenty-front/src/modules/spreadsheet-import/utils/__tests__/mapWorkbook.test.ts index 33d84f768..7ae9095ef 100644 --- a/packages/twenty-front/src/modules/spreadsheet-import/utils/__tests__/mapWorkbook.test.ts +++ b/packages/twenty-front/src/modules/spreadsheet-import/utils/__tests__/mapWorkbook.test.ts @@ -1,10 +1,10 @@ -import * as XLSX from 'xlsx-ugnis'; +import { utils } from 'xlsx-ugnis'; import { mapWorkbook } from '@/spreadsheet-import/utils/mapWorkbook'; describe('mapWorkbook', () => { it('should map the workbook to a 2D array of strings', () => { - const inputWorkbook = XLSX.utils.book_new(); + const inputWorkbook = utils.book_new(); const inputSheetData = [ ['Name', 'Age'], ['John', '30'], @@ -12,8 +12,8 @@ describe('mapWorkbook', () => { ]; const expectedOutput = inputSheetData; - const worksheet = XLSX.utils.aoa_to_sheet(inputSheetData); - XLSX.utils.book_append_sheet(inputWorkbook, worksheet, 'Sheet1'); + const worksheet = utils.aoa_to_sheet(inputSheetData); + utils.book_append_sheet(inputWorkbook, worksheet, 'Sheet1'); const result = mapWorkbook(inputWorkbook); @@ -21,7 +21,7 @@ describe('mapWorkbook', () => { }); it('should map the specified sheet of the workbook to a 2D array of strings', () => { - const inputWorkbook = XLSX.utils.book_new(); + const inputWorkbook = utils.book_new(); const inputSheet1Data = [ ['Name', 'Age'], ['John', '30'], @@ -34,10 +34,10 @@ describe('mapWorkbook', () => { ]; const expectedOutput = inputSheet2Data; - const worksheet1 = XLSX.utils.aoa_to_sheet(inputSheet1Data); - const worksheet2 = XLSX.utils.aoa_to_sheet(inputSheet2Data); - XLSX.utils.book_append_sheet(inputWorkbook, worksheet1, 'Sheet1'); - XLSX.utils.book_append_sheet(inputWorkbook, worksheet2, 'Sheet2'); + const worksheet1 = utils.aoa_to_sheet(inputSheet1Data); + const worksheet2 = utils.aoa_to_sheet(inputSheet2Data); + utils.book_append_sheet(inputWorkbook, worksheet1, 'Sheet1'); + utils.book_append_sheet(inputWorkbook, worksheet2, 'Sheet2'); const result = mapWorkbook(inputWorkbook, 'Sheet2'); diff --git a/packages/twenty-front/src/modules/spreadsheet-import/utils/mapWorkbook.ts b/packages/twenty-front/src/modules/spreadsheet-import/utils/mapWorkbook.ts index 2c208f36c..44182c216 100644 --- a/packages/twenty-front/src/modules/spreadsheet-import/utils/mapWorkbook.ts +++ b/packages/twenty-front/src/modules/spreadsheet-import/utils/mapWorkbook.ts @@ -1,8 +1,8 @@ -import * as XLSX from 'xlsx-ugnis'; +import { utils, WorkBook } from 'xlsx-ugnis'; -export const mapWorkbook = (workbook: XLSX.WorkBook, sheetName?: string) => { +export const mapWorkbook = (workbook: WorkBook, sheetName?: string) => { const worksheet = workbook.Sheets[sheetName || workbook.SheetNames[0]]; - const data = XLSX.utils.sheet_to_json(worksheet, { + const data = utils.sheet_to_json(worksheet, { header: 1, blankrows: false, raw: false, diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/hooks/useCountries.ts b/packages/twenty-front/src/modules/ui/input/components/internal/hooks/useCountries.ts index 60ecd57a4..9e5b9037c 100644 --- a/packages/twenty-front/src/modules/ui/input/components/internal/hooks/useCountries.ts +++ b/packages/twenty-front/src/modules/ui/input/components/internal/hooks/useCountries.ts @@ -1,7 +1,7 @@ -import { useMemo } from 'react'; import { hasFlag } from 'country-flag-icons'; import * as Flags from 'country-flag-icons/react/3x2'; import { getCountries, getCountryCallingCode } from 'libphonenumber-js'; +import { useMemo } from 'react'; import { Country } from '@/ui/input/components/internal/types/Country'; diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/types/Country.ts b/packages/twenty-front/src/modules/ui/input/components/internal/types/Country.ts index f315a6849..ac11cc383 100644 --- a/packages/twenty-front/src/modules/ui/input/components/internal/types/Country.ts +++ b/packages/twenty-front/src/modules/ui/input/components/internal/types/Country.ts @@ -1,9 +1,9 @@ -import * as Flags from 'country-flag-icons/react/3x2'; +import { FlagComponent } from 'country-flag-icons/react/3x2'; import { CountryCallingCode, CountryCode } from 'libphonenumber-js'; export type Country = { countryCode: CountryCode; countryName: string; callingCode: CountryCallingCode; - Flag: Flags.FlagComponent; + Flag: FlagComponent; }; diff --git a/packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx b/packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx index 89764a728..4f29c64a5 100644 --- a/packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx +++ b/packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx @@ -5,8 +5,7 @@ import { LayoutCard } from '@/ui/layout/tab/types/LayoutCard'; import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper'; import { useRecoilComponentStateV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentStateV2'; import styled from '@emotion/styled'; -import * as React from 'react'; -import { useEffect } from 'react'; +import React, { useEffect } from 'react'; import { IconComponent } from 'twenty-ui/display'; import { Tab } from './Tab'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/__stories__/WorkflowDiagramStepNodeEditableContent.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/__stories__/WorkflowDiagramStepNodeEditableContent.stories.tsx index e95c1df82..1d9d02c8e 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/__stories__/WorkflowDiagramStepNodeEditableContent.stories.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/__stories__/WorkflowDiagramStepNodeEditableContent.stories.tsx @@ -5,10 +5,10 @@ import { WorkflowDiagramNodeVariant } from '@/workflow/workflow-diagram/types/Wo import { fn } from '@storybook/test'; import '@xyflow/react/dist/style.css'; import { ComponentProps } from 'react'; +import { CatalogDecorator, CatalogStory } from 'twenty-ui/testing'; import { ReactflowDecorator } from '~/testing/decorators/ReactflowDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; import { WorkflowDiagramStepNodeEditableContent } from '../WorkflowDiagramStepNodeEditableContent'; -import { CatalogDecorator, CatalogStory } from 'twenty-ui/testing'; type ComponentState = 'default' | 'hover' | 'selected'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/hooks/useAvailableVariablesInWorkflowStep.ts b/packages/twenty-front/src/modules/workflow/workflow-variables/hooks/useAvailableVariablesInWorkflowStep.ts index 6cd13b324..968737939 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-variables/hooks/useAvailableVariablesInWorkflowStep.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-variables/hooks/useAvailableVariablesInWorkflowStep.ts @@ -8,9 +8,9 @@ import { StepOutputSchema, } from '@/workflow/workflow-variables/types/StepOutputSchema'; import { filterOutputSchema } from '@/workflow/workflow-variables/utils/filterOutputSchema'; -import { isEmptyObject } from '@tiptap/core'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; +import { isEmptyObject } from '~/utils/isEmptyObject'; export const useAvailableVariablesInWorkflowStep = ({ objectNameSingularToSelect, diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/__tests__/parseEditorContent.test.ts b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/__tests__/parseEditorContent.test.ts index 537530d23..c5f4f0751 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/__tests__/parseEditorContent.test.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/__tests__/parseEditorContent.test.ts @@ -1,4 +1,4 @@ -import { JSONContent } from '@tiptap/react'; +import type { JSONContent } from '@tiptap/react'; import { parseEditorContent } from '../parseEditorContent'; describe('parseEditorContent', () => { diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/getInitialEditorContent.ts b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/getInitialEditorContent.ts index 6e4a5475e..9cac48ecb 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/getInitialEditorContent.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/getInitialEditorContent.ts @@ -1,6 +1,6 @@ import { isStandaloneVariableString } from '@/workflow/utils/isStandaloneVariableString'; import { isNonEmptyString } from '@sniptt/guards'; -import { JSONContent } from '@tiptap/react'; +import type { JSONContent } from '@tiptap/react'; export const CAPTURE_VARIABLE_TAG_REGEX = /({{[^{}]+}})/; diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/parseEditorContent.ts b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/parseEditorContent.ts index ebd363364..7c28a4079 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/parseEditorContent.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/parseEditorContent.ts @@ -1,4 +1,4 @@ -import { JSONContent } from '@tiptap/react'; +import type { JSONContent } from '@tiptap/react'; import { isDefined } from 'twenty-shared/utils'; export const parseEditorContent = (json: JSONContent): string => { diff --git a/packages/twenty-front/vite.config.ts b/packages/twenty-front/vite.config.ts index 2e1e9240a..2706bf728 100644 --- a/packages/twenty-front/vite.config.ts +++ b/packages/twenty-front/vite.config.ts @@ -5,11 +5,11 @@ import react from '@vitejs/plugin-react-swc'; import wyw from '@wyw-in-js/vite'; import fs from 'fs'; import path from 'path'; -import { defineConfig, loadEnv, searchForWorkspaceRoot } from 'vite'; +import { visualizer } from 'rollup-plugin-visualizer'; +import { defineConfig, loadEnv, PluginOption, searchForWorkspaceRoot } from 'vite'; import checker from 'vite-plugin-checker'; import svgr from 'vite-plugin-svgr'; import tsconfigPaths from 'vite-tsconfig-paths'; - type Checkers = Parameters[0]; export default defineConfig(({ command, mode }) => { @@ -145,6 +145,12 @@ export default defineConfig(({ command, mode }) => { presets: ['@babel/preset-typescript', '@babel/preset-react'], }, }), + visualizer({ + open: true, + gzipSize: true, + brotliSize: true, + filename: 'dist/stats.html', + }) as PluginOption, // https://github.com/btd/rollup-plugin-visualizer/issues/162#issuecomment-1538265997, ], optimizeDeps: { @@ -156,7 +162,7 @@ export default defineConfig(({ command, mode }) => { }, build: { - minify: false, + minify: 'esbuild', outDir: 'build', sourcemap: VITE_BUILD_SOURCEMAP === 'true', rollupOptions: { diff --git a/packages/twenty-ui/src/testing/decorators/CatalogDecorator.tsx b/packages/twenty-ui/src/testing/decorators/CatalogDecorator.tsx index 97920be14..f48bedfac 100644 --- a/packages/twenty-ui/src/testing/decorators/CatalogDecorator.tsx +++ b/packages/twenty-ui/src/testing/decorators/CatalogDecorator.tsx @@ -98,11 +98,18 @@ export type CatalogOptions = { export const CatalogDecorator: Decorator = (Story, context) => { const { - catalog: { dimensions, options }, - } = context.parameters; + catalog: { dimensions = [], options = {} } = { + dimensions: [], + options: {}, + }, + } = context.parameters || {}; + + if (!dimensions || !Array.isArray(dimensions)) { + return ; + } const [ - dimension1, + dimension1 = emptyDimension, dimension2 = emptyDimension, dimension3 = emptyDimension, dimension4 = emptyDimension, diff --git a/packages/twenty-ui/vite.config.ts b/packages/twenty-ui/vite.config.ts index d14c84510..8ca0302ad 100644 --- a/packages/twenty-ui/vite.config.ts +++ b/packages/twenty-ui/vite.config.ts @@ -100,7 +100,7 @@ export default defineConfig(({ command }) => { // See: https://vitejs.dev/guide/build.html#library-mode build: { cssCodeSplit: false, - minify: false, + minify: 'esbuild', sourcemap: false, outDir: './dist', reportCompressedSize: true, diff --git a/yarn.lock b/yarn.lock index 739ad78b5..712aa86c7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6001,6 +6001,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/aix-ppc64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/aix-ppc64@npm:0.25.4" + conditions: os=aix & cpu=ppc64 + languageName: node + linkType: hard + "@esbuild/android-arm64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/android-arm64@npm:0.18.20" @@ -6043,6 +6050,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/android-arm64@npm:0.25.4" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/android-arm@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/android-arm@npm:0.18.20" @@ -6085,6 +6099,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/android-arm@npm:0.25.4" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + "@esbuild/android-x64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/android-x64@npm:0.18.20" @@ -6127,6 +6148,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-x64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/android-x64@npm:0.25.4" + conditions: os=android & cpu=x64 + languageName: node + linkType: hard + "@esbuild/darwin-arm64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/darwin-arm64@npm:0.18.20" @@ -6169,6 +6197,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-arm64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/darwin-arm64@npm:0.25.4" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/darwin-x64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/darwin-x64@npm:0.18.20" @@ -6211,6 +6246,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-x64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/darwin-x64@npm:0.25.4" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + "@esbuild/freebsd-arm64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/freebsd-arm64@npm:0.18.20" @@ -6253,6 +6295,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-arm64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/freebsd-arm64@npm:0.25.4" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/freebsd-x64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/freebsd-x64@npm:0.18.20" @@ -6295,6 +6344,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-x64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/freebsd-x64@npm:0.25.4" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/linux-arm64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/linux-arm64@npm:0.18.20" @@ -6337,6 +6393,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/linux-arm64@npm:0.25.4" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/linux-arm@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/linux-arm@npm:0.18.20" @@ -6379,6 +6442,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/linux-arm@npm:0.25.4" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + "@esbuild/linux-ia32@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/linux-ia32@npm:0.18.20" @@ -6421,6 +6491,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ia32@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/linux-ia32@npm:0.25.4" + conditions: os=linux & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/linux-loong64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/linux-loong64@npm:0.18.20" @@ -6463,6 +6540,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-loong64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/linux-loong64@npm:0.25.4" + conditions: os=linux & cpu=loong64 + languageName: node + linkType: hard + "@esbuild/linux-mips64el@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/linux-mips64el@npm:0.18.20" @@ -6505,6 +6589,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-mips64el@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/linux-mips64el@npm:0.25.4" + conditions: os=linux & cpu=mips64el + languageName: node + linkType: hard + "@esbuild/linux-ppc64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/linux-ppc64@npm:0.18.20" @@ -6547,6 +6638,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ppc64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/linux-ppc64@npm:0.25.4" + conditions: os=linux & cpu=ppc64 + languageName: node + linkType: hard + "@esbuild/linux-riscv64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/linux-riscv64@npm:0.18.20" @@ -6589,6 +6687,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-riscv64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/linux-riscv64@npm:0.25.4" + conditions: os=linux & cpu=riscv64 + languageName: node + linkType: hard + "@esbuild/linux-s390x@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/linux-s390x@npm:0.18.20" @@ -6631,6 +6736,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-s390x@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/linux-s390x@npm:0.25.4" + conditions: os=linux & cpu=s390x + languageName: node + linkType: hard + "@esbuild/linux-x64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/linux-x64@npm:0.18.20" @@ -6673,6 +6785,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-x64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/linux-x64@npm:0.25.4" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + "@esbuild/netbsd-arm64@npm:0.25.0": version: 0.25.0 resolution: "@esbuild/netbsd-arm64@npm:0.25.0" @@ -6687,6 +6806,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/netbsd-arm64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/netbsd-arm64@npm:0.25.4" + conditions: os=netbsd & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/netbsd-x64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/netbsd-x64@npm:0.18.20" @@ -6729,6 +6855,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/netbsd-x64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/netbsd-x64@npm:0.25.4" + conditions: os=netbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/openbsd-arm64@npm:0.23.0": version: 0.23.0 resolution: "@esbuild/openbsd-arm64@npm:0.23.0" @@ -6750,6 +6883,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/openbsd-arm64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/openbsd-arm64@npm:0.25.4" + conditions: os=openbsd & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/openbsd-x64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/openbsd-x64@npm:0.18.20" @@ -6792,6 +6932,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/openbsd-x64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/openbsd-x64@npm:0.25.4" + conditions: os=openbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/sunos-x64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/sunos-x64@npm:0.18.20" @@ -6834,6 +6981,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/sunos-x64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/sunos-x64@npm:0.25.4" + conditions: os=sunos & cpu=x64 + languageName: node + linkType: hard + "@esbuild/win32-arm64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/win32-arm64@npm:0.18.20" @@ -6876,6 +7030,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-arm64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/win32-arm64@npm:0.25.4" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/win32-ia32@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/win32-ia32@npm:0.18.20" @@ -6918,6 +7079,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-ia32@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/win32-ia32@npm:0.25.4" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/win32-x64@npm:0.18.20": version: 0.18.20 resolution: "@esbuild/win32-x64@npm:0.18.20" @@ -6960,6 +7128,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-x64@npm:0.25.4": + version: 0.25.4 + resolution: "@esbuild/win32-x64@npm:0.25.4" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0": version: 4.4.0 resolution: "@eslint-community/eslint-utils@npm:4.4.0" @@ -16768,6 +16943,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-android-arm-eabi@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.41.0" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + "@rollup/rollup-android-arm64@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-android-arm64@npm:4.20.0" @@ -16775,6 +16957,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-android-arm64@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-android-arm64@npm:4.41.0" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + "@rollup/rollup-darwin-arm64@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-darwin-arm64@npm:4.20.0" @@ -16782,6 +16971,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-darwin-arm64@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-darwin-arm64@npm:4.41.0" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@rollup/rollup-darwin-x64@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-darwin-x64@npm:4.20.0" @@ -16789,6 +16985,27 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-darwin-x64@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-darwin-x64@npm:4.41.0" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@rollup/rollup-freebsd-arm64@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-freebsd-arm64@npm:4.41.0" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-freebsd-x64@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-freebsd-x64@npm:4.41.0" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + "@rollup/rollup-linux-arm-gnueabihf@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.20.0" @@ -16796,6 +17013,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm-gnueabihf@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.41.0" + conditions: os=linux & cpu=arm & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-arm-musleabihf@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.20.0" @@ -16803,6 +17027,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm-musleabihf@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.41.0" + conditions: os=linux & cpu=arm & libc=musl + languageName: node + linkType: hard + "@rollup/rollup-linux-arm64-gnu@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.20.0" @@ -16810,6 +17041,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm64-gnu@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.41.0" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-arm64-musl@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-linux-arm64-musl@npm:4.20.0" @@ -16817,6 +17055,20 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm64-musl@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.41.0" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-linux-loongarch64-gnu@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-linux-loongarch64-gnu@npm:4.41.0" + conditions: os=linux & cpu=loong64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-powerpc64le-gnu@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.20.0" @@ -16824,6 +17076,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-powerpc64le-gnu@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.41.0" + conditions: os=linux & cpu=ppc64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-riscv64-gnu@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.20.0" @@ -16831,6 +17090,20 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-riscv64-gnu@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.41.0" + conditions: os=linux & cpu=riscv64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-riscv64-musl@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-linux-riscv64-musl@npm:4.41.0" + conditions: os=linux & cpu=riscv64 & libc=musl + languageName: node + linkType: hard + "@rollup/rollup-linux-s390x-gnu@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.20.0" @@ -16838,6 +17111,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-s390x-gnu@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.41.0" + conditions: os=linux & cpu=s390x & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-x64-gnu@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-linux-x64-gnu@npm:4.20.0" @@ -16845,6 +17125,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-x64-gnu@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.41.0" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-x64-musl@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-linux-x64-musl@npm:4.20.0" @@ -16852,6 +17139,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-x64-musl@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.41.0" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + "@rollup/rollup-win32-arm64-msvc@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.20.0" @@ -16859,6 +17153,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-win32-arm64-msvc@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.41.0" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + "@rollup/rollup-win32-ia32-msvc@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.20.0" @@ -16866,6 +17167,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-win32-ia32-msvc@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.41.0" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + "@rollup/rollup-win32-x64-msvc@npm:4.20.0": version: 4.20.0 resolution: "@rollup/rollup-win32-x64-msvc@npm:4.20.0" @@ -16873,6 +17181,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-win32-x64-msvc@npm:4.41.0": + version: 4.41.0 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.41.0" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@rushstack/eslint-patch@npm:^1.3.3": version: 1.10.4 resolution: "@rushstack/eslint-patch@npm:1.10.4" @@ -21982,6 +22297,13 @@ __metadata: languageName: node linkType: hard +"@types/estree@npm:1.0.7": + version: 1.0.7 + resolution: "@types/estree@npm:1.0.7" + checksum: 10c0/be815254316882f7c40847336cd484c3bc1c3e34f710d197160d455dc9d6d050ffbf4c3bc76585dba86f737f020ab20bdb137ebe0e9116b0c86c7c0342221b8c + languageName: node + linkType: hard + "@types/estree@npm:^0.0.51": version: 0.0.51 resolution: "@types/estree@npm:0.0.51" @@ -33052,6 +33374,92 @@ __metadata: languageName: node linkType: hard +"esbuild@npm:^0.25.0": + version: 0.25.4 + resolution: "esbuild@npm:0.25.4" + dependencies: + "@esbuild/aix-ppc64": "npm:0.25.4" + "@esbuild/android-arm": "npm:0.25.4" + "@esbuild/android-arm64": "npm:0.25.4" + "@esbuild/android-x64": "npm:0.25.4" + "@esbuild/darwin-arm64": "npm:0.25.4" + "@esbuild/darwin-x64": "npm:0.25.4" + "@esbuild/freebsd-arm64": "npm:0.25.4" + "@esbuild/freebsd-x64": "npm:0.25.4" + "@esbuild/linux-arm": "npm:0.25.4" + "@esbuild/linux-arm64": "npm:0.25.4" + "@esbuild/linux-ia32": "npm:0.25.4" + "@esbuild/linux-loong64": "npm:0.25.4" + "@esbuild/linux-mips64el": "npm:0.25.4" + "@esbuild/linux-ppc64": "npm:0.25.4" + "@esbuild/linux-riscv64": "npm:0.25.4" + "@esbuild/linux-s390x": "npm:0.25.4" + "@esbuild/linux-x64": "npm:0.25.4" + "@esbuild/netbsd-arm64": "npm:0.25.4" + "@esbuild/netbsd-x64": "npm:0.25.4" + "@esbuild/openbsd-arm64": "npm:0.25.4" + "@esbuild/openbsd-x64": "npm:0.25.4" + "@esbuild/sunos-x64": "npm:0.25.4" + "@esbuild/win32-arm64": "npm:0.25.4" + "@esbuild/win32-ia32": "npm:0.25.4" + "@esbuild/win32-x64": "npm:0.25.4" + dependenciesMeta: + "@esbuild/aix-ppc64": + optional: true + "@esbuild/android-arm": + optional: true + "@esbuild/android-arm64": + optional: true + "@esbuild/android-x64": + optional: true + "@esbuild/darwin-arm64": + optional: true + "@esbuild/darwin-x64": + optional: true + "@esbuild/freebsd-arm64": + optional: true + "@esbuild/freebsd-x64": + optional: true + "@esbuild/linux-arm": + optional: true + "@esbuild/linux-arm64": + optional: true + "@esbuild/linux-ia32": + optional: true + "@esbuild/linux-loong64": + optional: true + "@esbuild/linux-mips64el": + optional: true + "@esbuild/linux-ppc64": + optional: true + "@esbuild/linux-riscv64": + optional: true + "@esbuild/linux-s390x": + optional: true + "@esbuild/linux-x64": + optional: true + "@esbuild/netbsd-arm64": + optional: true + "@esbuild/netbsd-x64": + optional: true + "@esbuild/openbsd-arm64": + optional: true + "@esbuild/openbsd-x64": + optional: true + "@esbuild/sunos-x64": + optional: true + "@esbuild/win32-arm64": + optional: true + "@esbuild/win32-ia32": + optional: true + "@esbuild/win32-x64": + optional: true + bin: + esbuild: bin/esbuild + checksum: 10c0/db9f51248f0560bc46ab219461d338047617f6caf373c95f643b204760bdfa10c95b48cfde948949f7e509599ae4ab61c3f112092a3534936c6abfb800c565b0 + languageName: node + linkType: hard + "esbuild@npm:~0.25.0": version: 0.25.1 resolution: "esbuild@npm:0.25.1" @@ -34503,6 +34911,18 @@ __metadata: languageName: node linkType: hard +"fdir@npm:^6.4.4": + version: 6.4.4 + resolution: "fdir@npm:6.4.4" + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + checksum: 10c0/6ccc33be16945ee7bc841e1b4178c0b4cf18d3804894cb482aa514651c962a162f96da7ffc6ebfaf0df311689fb70091b04dd6caffe28d56b9ebdc0e7ccadfdd + languageName: node + linkType: hard + "fetch-retry@npm:^5.0.2": version: 5.0.6 resolution: "fetch-retry@npm:5.0.6" @@ -48080,7 +48500,7 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.4.48": +"postcss@npm:^8.4.48, postcss@npm:^8.5.3": version: 8.5.3 resolution: "postcss@npm:8.5.3" dependencies: @@ -51377,6 +51797,28 @@ __metadata: languageName: node linkType: hard +"rollup-plugin-visualizer@npm:^5.14.0": + version: 5.14.0 + resolution: "rollup-plugin-visualizer@npm:5.14.0" + dependencies: + open: "npm:^8.4.0" + picomatch: "npm:^4.0.2" + source-map: "npm:^0.7.4" + yargs: "npm:^17.5.1" + peerDependencies: + rolldown: 1.x + rollup: 2.x || 3.x || 4.x + peerDependenciesMeta: + rolldown: + optional: true + rollup: + optional: true + bin: + rollup-plugin-visualizer: dist/bin/cli.js + checksum: 10c0/ec6ca9ed125bce9994ba49a340bda730661d8e8dc5c5dc014dc757185182e1eda49c6708f990cb059095e71a3741a5248f1e6ba0ced7056020692888e06b1ddf + languageName: node + linkType: hard + "rollup-pluginutils@npm:^2.8.1": version: 2.8.2 resolution: "rollup-pluginutils@npm:2.8.2" @@ -51491,6 +51933,81 @@ __metadata: languageName: node linkType: hard +"rollup@npm:^4.34.9": + version: 4.41.0 + resolution: "rollup@npm:4.41.0" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.41.0" + "@rollup/rollup-android-arm64": "npm:4.41.0" + "@rollup/rollup-darwin-arm64": "npm:4.41.0" + "@rollup/rollup-darwin-x64": "npm:4.41.0" + "@rollup/rollup-freebsd-arm64": "npm:4.41.0" + "@rollup/rollup-freebsd-x64": "npm:4.41.0" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.41.0" + "@rollup/rollup-linux-arm-musleabihf": "npm:4.41.0" + "@rollup/rollup-linux-arm64-gnu": "npm:4.41.0" + "@rollup/rollup-linux-arm64-musl": "npm:4.41.0" + "@rollup/rollup-linux-loongarch64-gnu": "npm:4.41.0" + "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.41.0" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.41.0" + "@rollup/rollup-linux-riscv64-musl": "npm:4.41.0" + "@rollup/rollup-linux-s390x-gnu": "npm:4.41.0" + "@rollup/rollup-linux-x64-gnu": "npm:4.41.0" + "@rollup/rollup-linux-x64-musl": "npm:4.41.0" + "@rollup/rollup-win32-arm64-msvc": "npm:4.41.0" + "@rollup/rollup-win32-ia32-msvc": "npm:4.41.0" + "@rollup/rollup-win32-x64-msvc": "npm:4.41.0" + "@types/estree": "npm:1.0.7" + fsevents: "npm:~2.3.2" + dependenciesMeta: + "@rollup/rollup-android-arm-eabi": + optional: true + "@rollup/rollup-android-arm64": + optional: true + "@rollup/rollup-darwin-arm64": + optional: true + "@rollup/rollup-darwin-x64": + optional: true + "@rollup/rollup-freebsd-arm64": + optional: true + "@rollup/rollup-freebsd-x64": + optional: true + "@rollup/rollup-linux-arm-gnueabihf": + optional: true + "@rollup/rollup-linux-arm-musleabihf": + optional: true + "@rollup/rollup-linux-arm64-gnu": + optional: true + "@rollup/rollup-linux-arm64-musl": + optional: true + "@rollup/rollup-linux-loongarch64-gnu": + optional: true + "@rollup/rollup-linux-powerpc64le-gnu": + optional: true + "@rollup/rollup-linux-riscv64-gnu": + optional: true + "@rollup/rollup-linux-riscv64-musl": + optional: true + "@rollup/rollup-linux-s390x-gnu": + optional: true + "@rollup/rollup-linux-x64-gnu": + optional: true + "@rollup/rollup-linux-x64-musl": + optional: true + "@rollup/rollup-win32-arm64-msvc": + optional: true + "@rollup/rollup-win32-ia32-msvc": + optional: true + "@rollup/rollup-win32-x64-msvc": + optional: true + fsevents: + optional: true + bin: + rollup: dist/bin/rollup + checksum: 10c0/4c3d361f400317cb18f5e3912553a514bb1dcc7ce0c92ff66b9786b598632eb1d56f7bb1cc11ed16a4ccdbe6808ae851bc6bde5d2305cc587450c6212e69617f + languageName: node + linkType: hard + "rope-sequence@npm:^1.3.0": version: 1.3.4 resolution: "rope-sequence@npm:1.3.4" @@ -54213,6 +54730,16 @@ __metadata: languageName: node linkType: hard +"tinyglobby@npm:^0.2.13": + version: 0.2.13 + resolution: "tinyglobby@npm:0.2.13" + dependencies: + fdir: "npm:^6.4.4" + picomatch: "npm:^4.0.2" + checksum: 10c0/ef07dfaa7b26936601d3f6d999f7928a4d1c6234c5eb36896bb88681947c0d459b7ebe797022400e555fe4b894db06e922b95d0ce60cb05fd827a0a66326b18c + languageName: node + linkType: hard + "tinyglobby@npm:^0.2.9": version: 0.2.9 resolution: "tinyglobby@npm:0.2.9" @@ -55079,6 +55606,7 @@ __metadata: eslint-plugin-unused-imports: "npm:^3.0.0" file-saver: "npm:^2.0.5" optionator: "npm:^0.9.1" + rollup-plugin-visualizer: "npm:^5.14.0" transliteration: "npm:^2.3.5" twenty-shared: "workspace:*" twenty-ui: "workspace:*" @@ -55581,7 +56109,7 @@ __metadata: typescript: "npm:5.3.3" use-debounce: "npm:^10.0.0" uuid: "npm:^9.0.0" - vite: "npm:^5.4.0" + vite: "npm:^6.3.5" vite-plugin-checker: "npm:^0.6.2" vite-plugin-dts: "npm:3.8.1" vite-plugin-svgr: "npm:^4.2.0" @@ -57380,7 +57908,7 @@ __metadata: languageName: node linkType: hard -"vite@npm:^5.0.0, vite@npm:^5.4.0": +"vite@npm:^5.0.0": version: 5.4.0 resolution: "vite@npm:5.4.0" dependencies: @@ -57423,6 +57951,61 @@ __metadata: languageName: node linkType: hard +"vite@npm:^6.3.5": + version: 6.3.5 + resolution: "vite@npm:6.3.5" + dependencies: + esbuild: "npm:^0.25.0" + fdir: "npm:^6.4.4" + fsevents: "npm:~2.3.3" + picomatch: "npm:^4.0.2" + postcss: "npm:^8.5.3" + rollup: "npm:^4.34.9" + tinyglobby: "npm:^0.2.13" + peerDependencies: + "@types/node": ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: ">=1.21.0" + less: "*" + lightningcss: ^1.21.0 + sass: "*" + sass-embedded: "*" + stylus: "*" + sugarss: "*" + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + dependenciesMeta: + fsevents: + optional: true + peerDependenciesMeta: + "@types/node": + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + bin: + vite: bin/vite.js + checksum: 10c0/df70201659085133abffc6b88dcdb8a57ef35f742a01311fc56a4cfcda6a404202860729cc65a2c401a724f6e25f9ab40ce4339ed4946f550541531ced6fe41c + languageName: node + linkType: hard + "vitest@npm:1.4.0": version: 1.4.0 resolution: "vitest@npm:1.4.0"