diff --git a/package.json b/package.json index f3a1c11d77..2a4de5acea 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@sentry/react": "^9.26.0", "@sniptt/guards": "^0.2.0", "@tabler/icons-react": "^3.31.0", - "@wyw-in-js/vite": "^0.5.3", + "@wyw-in-js/vite": "^0.7.0", "add": "^2.0.6", "archiver": "^7.0.1", "danger-plugin-todos": "^1.3.1", diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-actions/components/SeeRunsWorkflowSingleRecordAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-actions/components/SeeRunsWorkflowSingleRecordAction.tsx index cbd7d5b39f..7c0df2635d 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-actions/components/SeeRunsWorkflowSingleRecordAction.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-actions/components/SeeRunsWorkflowSingleRecordAction.tsx @@ -3,7 +3,7 @@ import { useSelectedRecordIdOrThrow } from '@/action-menu/actions/record-actions import { CoreObjectNamePlural } from '@/object-metadata/types/CoreObjectNamePlural'; import { AppPath } from '@/types/AppPath'; import { useWorkflowWithCurrentVersion } from '@/workflow/hooks/useWorkflowWithCurrentVersion'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; export const SeeRunsWorkflowSingleRecordAction = () => { const recordId = useSelectedRecordIdOrThrow(); diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-actions/components/SeeVersionsWorkflowSingleRecordAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-actions/components/SeeVersionsWorkflowSingleRecordAction.tsx index 3db6d1f44b..e0bbfcd540 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-actions/components/SeeVersionsWorkflowSingleRecordAction.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-actions/components/SeeVersionsWorkflowSingleRecordAction.tsx @@ -3,7 +3,7 @@ import { useSelectedRecordIdOrThrow } from '@/action-menu/actions/record-actions import { CoreObjectNamePlural } from '@/object-metadata/types/CoreObjectNamePlural'; import { AppPath } from '@/types/AppPath'; import { useWorkflowWithCurrentVersion } from '@/workflow/hooks/useWorkflowWithCurrentVersion'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; export const SeeVersionsWorkflowSingleRecordAction = () => { const recordId = useSelectedRecordIdOrThrow(); diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-version-actions/components/SeeRunsWorkflowVersionSingleRecordAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-version-actions/components/SeeRunsWorkflowVersionSingleRecordAction.tsx index bc387faa65..6b19cd48eb 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-version-actions/components/SeeRunsWorkflowVersionSingleRecordAction.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-version-actions/components/SeeRunsWorkflowVersionSingleRecordAction.tsx @@ -5,7 +5,7 @@ import { recordStoreFamilyState } from '@/object-record/record-store/states/reco import { AppPath } from '@/types/AppPath'; import { useWorkflowWithCurrentVersion } from '@/workflow/hooks/useWorkflowWithCurrentVersion'; import { useRecoilValue } from 'recoil'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; export const SeeRunsWorkflowVersionSingleRecordAction = () => { const recordId = useSelectedRecordIdOrThrow(); diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-version-actions/components/SeeVersionsWorkflowVersionSingleRecordAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-version-actions/components/SeeVersionsWorkflowVersionSingleRecordAction.tsx index 4ba7684650..d542a6781d 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-version-actions/components/SeeVersionsWorkflowVersionSingleRecordAction.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/workflow-version-actions/components/SeeVersionsWorkflowVersionSingleRecordAction.tsx @@ -5,7 +5,7 @@ import { recordStoreFamilyState } from '@/object-record/record-store/states/reco import { AppPath } from '@/types/AppPath'; import { useWorkflowWithCurrentVersion } from '@/workflow/hooks/useWorkflowWithCurrentVersion'; import { useRecoilValue } from 'recoil'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; export const SeeVersionsWorkflowVersionSingleRecordAction = () => { const recordId = useSelectedRecordIdOrThrow(); diff --git a/packages/twenty-front/src/modules/context-store/utils/__tests__/computeContextStoreFilters.test.ts b/packages/twenty-front/src/modules/context-store/utils/__tests__/computeContextStoreFilters.test.ts index 733bfb4e56..b59d33db4e 100644 --- a/packages/twenty-front/src/modules/context-store/utils/__tests__/computeContextStoreFilters.test.ts +++ b/packages/twenty-front/src/modules/context-store/utils/__tests__/computeContextStoreFilters.test.ts @@ -2,7 +2,7 @@ import { type ContextStoreTargetedRecordsRule } from '@/context-store/states/con import { computeContextStoreFilters } from '@/context-store/utils/computeContextStoreFilters'; import { type RecordFilter } from '@/object-record/record-filter/types/RecordFilter'; import { type RecordFilterValueDependencies } from '@/object-record/record-filter/types/RecordFilterValueDependencies'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; describe('computeContextStoreFilters', () => { diff --git a/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterRecordFilterOperandSelectContent.tsx b/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterRecordFilterOperandSelectContent.tsx index 0da983a59d..518a3f39de 100644 --- a/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterRecordFilterOperandSelectContent.tsx +++ b/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterRecordFilterOperandSelectContent.tsx @@ -14,7 +14,7 @@ import { SelectableList } from '@/ui/layout/selectable-list/components/Selectabl import { SelectableListItem } from '@/ui/layout/selectable-list/components/SelectableListItem'; import { selectedItemIdComponentState } from '@/ui/layout/selectable-list/states/selectedItemIdComponentState'; import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; -import { type ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { type ViewFilterOperand } from 'twenty-shared/types'; import { MenuItem } from 'twenty-ui/navigation'; type AdvancedFilterRecordFilterOperandSelectContentProps = { diff --git a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownDateInput.tsx b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownDateInput.tsx index 85e9b1f5ee..7479c500a7 100644 --- a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownDateInput.tsx +++ b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownDateInput.tsx @@ -12,7 +12,7 @@ import { type VariableDateViewFilterValueUnit, } from '@/views/view-filter-value/utils/resolveDateViewFilterValue'; import { useState } from 'react'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { FieldMetadataType } from '~/generated-metadata/graphql'; diff --git a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterInput.tsx b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterInput.tsx index 930a942633..944fa61005 100644 --- a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterInput.tsx +++ b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterInput.tsx @@ -6,7 +6,7 @@ import { ObjectFilterDropdownRecordSelect } from '@/object-record/object-filter- import { ObjectFilterDropdownSearchInput } from '@/object-record/object-filter-dropdown/components/ObjectFilterDropdownSearchInput'; import { DropdownMenuSeparator } from '@/ui/layout/dropdown/components/DropdownMenuSeparator'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { getFilterTypeFromFieldType } from '@/object-metadata/utils/formatFieldMetadataItemsAsFilterDefinitions'; import { ObjectFilterDropdownBooleanSelect } from '@/object-record/object-filter-dropdown/components/ObjectFilterDropdownBooleanSelect'; diff --git a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/states/selectedOperandInDropdownComponentState.ts b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/states/selectedOperandInDropdownComponentState.ts index a1c080d2d5..aa3d5235d3 100644 --- a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/states/selectedOperandInDropdownComponentState.ts +++ b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/states/selectedOperandInDropdownComponentState.ts @@ -1,6 +1,6 @@ import { ObjectFilterDropdownComponentInstanceContext } from '@/object-record/object-filter-dropdown/states/contexts/ObjectFilterDropdownComponentInstanceContext'; import { createComponentState } from '@/ui/utilities/state/component-state/utils/createComponentState'; -import { type ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { type ViewFilterOperand } from 'twenty-shared/types'; export const selectedOperandInDropdownComponentState = createComponentState({ diff --git a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/__tests__/getOperandLabel.test.ts b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/__tests__/getOperandLabel.test.ts index 732ec93040..2dc1918c84 100644 --- a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/__tests__/getOperandLabel.test.ts +++ b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/__tests__/getOperandLabel.test.ts @@ -1,4 +1,4 @@ -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { capitalize } from 'twenty-shared/utils'; import { getOperandLabel, getOperandLabelShort } from '../getOperandLabel'; diff --git a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/__tests__/isFilterOperandExpectingValue.test.ts b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/__tests__/isFilterOperandExpectingValue.test.ts index 1f6b656b97..6b6d9f1bda 100644 --- a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/__tests__/isFilterOperandExpectingValue.test.ts +++ b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/__tests__/isFilterOperandExpectingValue.test.ts @@ -1,4 +1,4 @@ -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { isFilterOperandExpectingValue } from '../isFilterOperandExpectingValue'; diff --git a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/configurableViewFilterOperands.ts b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/configurableViewFilterOperands.ts index 700d184f09..330acf09a2 100644 --- a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/configurableViewFilterOperands.ts +++ b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/configurableViewFilterOperands.ts @@ -1,4 +1,4 @@ -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; export const configurableViewFilterOperands = new Set([ ViewFilterOperand.Is, diff --git a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/getOperandLabel.ts b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/getOperandLabel.ts index 80d0333966..b7a0f1534d 100644 --- a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/getOperandLabel.ts +++ b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/getOperandLabel.ts @@ -1,5 +1,5 @@ import { t } from '@lingui/core/macro'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; export const getOperandLabel = ( operand: ViewFilterOperand | null | undefined, diff --git a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/isFilterOperandExpectingValue.ts b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/isFilterOperandExpectingValue.ts index e8a0c64c71..e605152434 100644 --- a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/isFilterOperandExpectingValue.ts +++ b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/isFilterOperandExpectingValue.ts @@ -1,4 +1,4 @@ -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; export const isFilterOperandExpectingValue = (operand: ViewFilterOperand) => { switch (operand) { 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 4060f9aecc..fdab41ee35 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 @@ -1,8 +1,10 @@ import { type RATING_VALUES } from '@/object-record/record-field/meta-types/constants/RatingValues'; import { type ZodHelperLiteral } from '@/object-record/record-field/types/ZodHelperLiteral'; import { type ObjectRecord } from '@/object-record/types/ObjectRecord'; -import { type AllowedAddressSubField } from 'twenty-shared/src/types/AddressFieldsType'; -import { ConnectedAccountProvider } from 'twenty-shared/types'; +import { + ConnectedAccountProvider, + type AllowedAddressSubField, +} from 'twenty-shared/types'; import { type ThemeColor } from 'twenty-ui/theme'; import { z } from 'zod'; import { type RelationType } from '~/generated-metadata/graphql'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/types/guards/isFieldAddressValue.ts b/packages/twenty-front/src/modules/object-record/record-field/types/guards/isFieldAddressValue.ts index 968a342ee4..9d68b27e51 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/types/guards/isFieldAddressValue.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/types/guards/isFieldAddressValue.ts @@ -1,6 +1,6 @@ import { z } from 'zod'; -import { ALLOWED_ADDRESS_SUBFIELDS } from 'twenty-shared/src/types/AddressFieldsType'; +import { ALLOWED_ADDRESS_SUBFIELDS } from 'twenty-shared/types'; import { type FieldAddressValue } from '../FieldMetadata'; export const addressSchema = z.object({ diff --git a/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useRemoveRecordFilter.test.tsx b/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useRemoveRecordFilter.test.tsx index 6a323e011b..8316aea797 100644 --- a/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useRemoveRecordFilter.test.tsx +++ b/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useRemoveRecordFilter.test.tsx @@ -4,7 +4,7 @@ import { currentRecordFiltersComponentState } from '@/object-record/record-filte import { type RecordFilter } from '@/object-record/record-filter/types/RecordFilter'; import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; import { act } from 'react'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; import { useRemoveRecordFilter } from '../useRemoveRecordFilter'; diff --git a/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useUpsertRecordFilter.test.tsx b/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useUpsertRecordFilter.test.tsx index 54ec3583b3..ad7744ec0f 100644 --- a/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useUpsertRecordFilter.test.tsx +++ b/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useUpsertRecordFilter.test.tsx @@ -4,7 +4,7 @@ import { act } from 'react'; import { currentRecordFiltersComponentState } from '@/object-record/record-filter/states/currentRecordFiltersComponentState'; import { type RecordFilter } from '@/object-record/record-filter/types/RecordFilter'; import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; import { useUpsertRecordFilter } from '../useUpsertRecordFilter'; diff --git a/packages/twenty-front/src/modules/object-record/record-filter/types/RecordFilter.ts b/packages/twenty-front/src/modules/object-record/record-filter/types/RecordFilter.ts index cffe9bf399..675b91e409 100644 --- a/packages/twenty-front/src/modules/object-record/record-filter/types/RecordFilter.ts +++ b/packages/twenty-front/src/modules/object-record/record-filter/types/RecordFilter.ts @@ -1,7 +1,7 @@ import { type FilterableAndTSVectorFieldType } from '@/object-record/record-filter/types/FilterableFieldType'; import { type FILTER_OPERANDS_MAP } from '@/object-record/record-filter/utils/getRecordFilterOperands'; import { type CompositeFieldSubFieldName } from '@/settings/data-model/types/CompositeFieldSubFieldName'; -import { type ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { type ViewFilterOperand } from 'twenty-shared/types'; export type RecordFilter = { id: string; diff --git a/packages/twenty-front/src/modules/object-record/record-filter/types/RecordFilterOperand.ts b/packages/twenty-front/src/modules/object-record/record-filter/types/RecordFilterOperand.ts index 9956e56dd7..6380c52565 100644 --- a/packages/twenty-front/src/modules/object-record/record-filter/types/RecordFilterOperand.ts +++ b/packages/twenty-front/src/modules/object-record/record-filter/types/RecordFilterOperand.ts @@ -1 +1 @@ -export { ViewFilterOperand as RecordFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +export { ViewFilterOperand as RecordFilterOperand } from 'twenty-shared/types'; diff --git a/packages/twenty-front/src/modules/object-record/record-filter/utils/__tests__/computeViewRecordGqlOperationFilter.test.ts b/packages/twenty-front/src/modules/object-record/record-filter/utils/__tests__/computeViewRecordGqlOperationFilter.test.ts index c86cb3d40f..f851dea73e 100644 --- a/packages/twenty-front/src/modules/object-record/record-filter/utils/__tests__/computeViewRecordGqlOperationFilter.test.ts +++ b/packages/twenty-front/src/modules/object-record/record-filter/utils/__tests__/computeViewRecordGqlOperationFilter.test.ts @@ -3,7 +3,7 @@ import { type RecordFilter } from '@/object-record/record-filter/types/RecordFil import { RecordFilterOperand } from '@/object-record/record-filter/types/RecordFilterOperand'; import { type RecordFilterValueDependencies } from '@/object-record/record-filter/types/RecordFilterValueDependencies'; import { computeRecordGqlOperationFilter } from '@/object-record/record-filter/utils/computeRecordGqlOperationFilter'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { getCompaniesMock } from '~/testing/mock-data/companies'; diff --git a/packages/twenty-front/src/modules/object-record/record-filter/utils/getEmptyRecordGqlOperationFilter.ts b/packages/twenty-front/src/modules/object-record/record-filter/utils/getEmptyRecordGqlOperationFilter.ts index 6f0b4cce01..211a37573a 100644 --- a/packages/twenty-front/src/modules/object-record/record-filter/utils/getEmptyRecordGqlOperationFilter.ts +++ b/packages/twenty-front/src/modules/object-record/record-filter/utils/getEmptyRecordGqlOperationFilter.ts @@ -20,7 +20,7 @@ import { type RecordFilter } from '@/object-record/record-filter/types/RecordFil import { computeEmptyGqlOperationFilterForEmails } from '@/object-record/record-filter/utils/compute-empty-record-gql-operation-filter/for-composite-field/computeEmptyGqlOperationFilterForEmails'; import { computeEmptyGqlOperationFilterForLinks } from '@/object-record/record-filter/utils/compute-empty-record-gql-operation-filter/for-composite-field/computeEmptyGqlOperationFilterForLinks'; import { isNonEmptyString } from '@sniptt/guards'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { type Field } from '~/generated/graphql'; import { generateILikeFiltersForCompositeFields } from '~/utils/array/generateILikeFiltersForCompositeFields'; diff --git a/packages/twenty-front/src/modules/object-record/record-filter/utils/getRecordFilterOperands.ts b/packages/twenty-front/src/modules/object-record/record-filter/utils/getRecordFilterOperands.ts index ba6313a5bb..08f5d5bbb6 100644 --- a/packages/twenty-front/src/modules/object-record/record-filter/utils/getRecordFilterOperands.ts +++ b/packages/twenty-front/src/modules/object-record/record-filter/utils/getRecordFilterOperands.ts @@ -5,8 +5,10 @@ import { type FilterableFieldType, } from '@/object-record/record-filter/types/FilterableFieldType'; import { type CompositeFieldSubFieldName } from '@/settings/data-model/types/CompositeFieldSubFieldName'; -import { ViewFilterOperand as RecordFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; -import { FieldMetadataType } from 'twenty-shared/types'; +import { + FieldMetadataType, + ViewFilterOperand as RecordFilterOperand, +} from 'twenty-shared/types'; import { assertUnreachable } from 'twenty-shared/utils'; export type GetRecordFilterOperandsParams = { diff --git a/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleTrashColumnFilter.ts b/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleTrashColumnFilter.ts index 03ce8ae876..5b015f71ba 100644 --- a/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleTrashColumnFilter.ts +++ b/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleTrashColumnFilter.ts @@ -10,7 +10,7 @@ import { isSoftDeleteFilterActiveComponentState } from '@/object-record/record-t import { useRecoilComponentCallbackState } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentCallbackState'; import { useRecoilCallback } from 'recoil'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; type UseHandleToggleTrashColumnFilterProps = { diff --git a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx index a62ce5eec1..c19528d5ae 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx +++ b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx @@ -26,7 +26,7 @@ import { isDropdownOpenComponentState } from '@/ui/layout/dropdown/states/isDrop import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile'; import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; import { useLingui } from '@lingui/react/macro'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { RelationType } from '~/generated-metadata/graphql'; import { getAppPath } from '~/utils/navigation/getAppPath'; diff --git a/packages/twenty-front/src/modules/object-record/record-table/utils/buildRecordInputFromFilter.spec.ts b/packages/twenty-front/src/modules/object-record/record-table/utils/buildRecordInputFromFilter.spec.ts index d265dfd6d2..00cf376b5f 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/utils/buildRecordInputFromFilter.spec.ts +++ b/packages/twenty-front/src/modules/object-record/record-table/utils/buildRecordInputFromFilter.spec.ts @@ -2,7 +2,7 @@ import { type FieldMetadataItemOption } from '@/object-metadata/types/FieldMetad import { type FilterableFieldType } from '@/object-record/record-filter/types/FilterableFieldType'; import { type RecordFilter } from '@/object-record/record-filter/types/RecordFilter'; import { type ColorScheme } from '@/workspace-member/types/WorkspaceMember'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { RelationType } from '~/generated-metadata/graphql'; import { buildValueFromFilter } from './buildRecordInputFromFilter'; diff --git a/packages/twenty-front/src/modules/object-record/record-table/utils/buildRecordInputFromFilter.ts b/packages/twenty-front/src/modules/object-record/record-table/utils/buildRecordInputFromFilter.ts index c9b4cb2c0d..56efb267e6 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/utils/buildRecordInputFromFilter.ts +++ b/packages/twenty-front/src/modules/object-record/record-table/utils/buildRecordInputFromFilter.ts @@ -7,7 +7,7 @@ import { type RecordFilterToRecordInputOperand, } from '@/object-record/record-filter/types/RecordFilter'; import { FILTER_OPERANDS_MAP } from '@/object-record/record-filter/utils/getRecordFilterOperands'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { assertUnreachable, parseJson } from 'twenty-shared/utils'; import { RelationType } from '~/generated-metadata/graphql'; diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/address/constants/DefaultSelectionAddressWithMessages.ts b/packages/twenty-front/src/modules/settings/data-model/fields/forms/address/constants/DefaultSelectionAddressWithMessages.ts index 0c26828d19..e64bde797d 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/address/constants/DefaultSelectionAddressWithMessages.ts +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/address/constants/DefaultSelectionAddressWithMessages.ts @@ -1,5 +1,5 @@ import { msg } from '@lingui/core/macro'; -import { type AllowedAddressSubField } from 'twenty-shared/src/types/AddressFieldsType'; +import { type AllowedAddressSubField } from 'twenty-shared/types'; export const DEFAULT_SELECTION_ADDRESS_WITH_MESSAGES: { value: AllowedAddressSubField; diff --git a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFiltersToCurrentRecordFilters.test.tsx b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFiltersToCurrentRecordFilters.test.tsx index 9438dbe9dd..c2485929ea 100644 --- a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFiltersToCurrentRecordFilters.test.tsx +++ b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFiltersToCurrentRecordFilters.test.tsx @@ -12,7 +12,7 @@ import { type ViewFilter } from '@/views/types/ViewFilter'; import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType'; import { ViewType } from '@/views/types/ViewType'; import { act } from 'react'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; diff --git a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyViewFiltersToCurrentRecordFilters.test.tsx b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyViewFiltersToCurrentRecordFilters.test.tsx index 195064d9ce..2e8f2404f5 100644 --- a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyViewFiltersToCurrentRecordFilters.test.tsx +++ b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyViewFiltersToCurrentRecordFilters.test.tsx @@ -5,7 +5,7 @@ import { currentRecordFiltersComponentState } from '@/object-record/record-filte import { type RecordFilter } from '@/object-record/record-filter/types/RecordFilter'; import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; import { type ViewFilter } from '@/views/types/ViewFilter'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; diff --git a/packages/twenty-front/src/modules/views/hooks/internal/useViewFromQueryParams.ts b/packages/twenty-front/src/modules/views/hooks/internal/useViewFromQueryParams.ts index 829a2fa45d..5adc658ab0 100644 --- a/packages/twenty-front/src/modules/views/hooks/internal/useViewFromQueryParams.ts +++ b/packages/twenty-front/src/modules/views/hooks/internal/useViewFromQueryParams.ts @@ -17,7 +17,7 @@ import { generateFindManyRecordsQuery } from '@/object-record/utils/generateFind import { type ViewFilter } from '@/views/types/ViewFilter'; import { relationFilterValueSchemaObject } from '@/views/view-filter-value/validation-schemas/jsonRelationFilterValueSchema'; import { useFeatureFlagsMap } from '@/workspace/hooks/useFeatureFlagsMap'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { FeatureFlagKey } from '~/generated/graphql'; diff --git a/packages/twenty-front/src/modules/views/hooks/useGetViewGroupsFilters.ts b/packages/twenty-front/src/modules/views/hooks/useGetViewGroupsFilters.ts index f0160d0d0a..c7ee12c977 100644 --- a/packages/twenty-front/src/modules/views/hooks/useGetViewGroupsFilters.ts +++ b/packages/twenty-front/src/modules/views/hooks/useGetViewGroupsFilters.ts @@ -1,8 +1,7 @@ import { getFilterTypeFromFieldType } from '@/object-metadata/utils/formatFieldMetadataItemsAsFilterDefinitions'; import { type RecordFilter } from '@/object-record/record-filter/types/RecordFilter'; import { useGetCurrentViewOnly } from '@/views/hooks/useGetCurrentViewOnly'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; -import { FieldMetadataType } from 'twenty-shared/types'; +import { FieldMetadataType, ViewFilterOperand } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; export const useGetViewGroupsFilters = (): RecordFilter[] => { diff --git a/packages/twenty-front/src/modules/views/hooks/useOpenVectorSearchFilter.ts b/packages/twenty-front/src/modules/views/hooks/useOpenVectorSearchFilter.ts index a72ac2ed63..bce7bd409e 100644 --- a/packages/twenty-front/src/modules/views/hooks/useOpenVectorSearchFilter.ts +++ b/packages/twenty-front/src/modules/views/hooks/useOpenVectorSearchFilter.ts @@ -1,7 +1,7 @@ import { objectFilterDropdownFilterIsSelectedComponentState } from '@/object-record/object-filter-dropdown/states/objectFilterDropdownFilterIsSelectedComponentState'; import { selectedOperandInDropdownComponentState } from '@/object-record/object-filter-dropdown/states/selectedOperandInDropdownComponentState'; import { useSetRecoilComponentState } from '@/ui/utilities/state/component-state/hooks/useSetRecoilComponentState'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; export const useOpenVectorSearchFilter = (filterDropdownId?: string) => { const setSelectedOperandInDropdown = useSetRecoilComponentState( diff --git a/packages/twenty-front/src/modules/views/hooks/useVectorSearchFilterActions.ts b/packages/twenty-front/src/modules/views/hooks/useVectorSearchFilterActions.ts index 1618fed24e..f87942f8bf 100644 --- a/packages/twenty-front/src/modules/views/hooks/useVectorSearchFilterActions.ts +++ b/packages/twenty-front/src/modules/views/hooks/useVectorSearchFilterActions.ts @@ -3,7 +3,7 @@ import { useRemoveRecordFilter } from '@/object-record/record-filter/hooks/useRe import { useUpsertRecordFilter } from '@/object-record/record-filter/hooks/useUpsertRecordFilter'; import { isRecordFilterConsideredEmpty } from '@/object-record/record-filter/utils/isRecordFilterConsideredEmpty'; import { useVectorSearchFieldInRecordIndexContextOrThrow } from '@/views/hooks/useVectorSearchFieldInRecordIndexContextOrThrow'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { v4 } from 'uuid'; import { useVectorSearchFilterState } from './useVectorSearchFilterState'; diff --git a/packages/twenty-front/src/modules/views/types/ViewFilter.ts b/packages/twenty-front/src/modules/views/types/ViewFilter.ts index dc13ee80a1..5aab527a23 100644 --- a/packages/twenty-front/src/modules/views/types/ViewFilter.ts +++ b/packages/twenty-front/src/modules/views/types/ViewFilter.ts @@ -1,5 +1,5 @@ import { type CompositeFieldSubFieldName } from '@/settings/data-model/types/CompositeFieldSubFieldName'; -import { type ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { type ViewFilterOperand } from 'twenty-shared/types'; export type ViewFilter = { __typename: 'ViewFilter'; diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/areViewFiltersEqual.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/areViewFiltersEqual.test.ts index 8456691c24..c38102dfb6 100644 --- a/packages/twenty-front/src/modules/views/utils/__tests__/areViewFiltersEqual.test.ts +++ b/packages/twenty-front/src/modules/views/utils/__tests__/areViewFiltersEqual.test.ts @@ -1,5 +1,5 @@ import { type ViewFilter } from '@/views/types/ViewFilter'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { areViewFiltersEqual } from '../areViewFiltersEqual'; describe('areViewFiltersEqual', () => { diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToCreate.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToCreate.test.ts index 3418b116e6..890e349513 100644 --- a/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToCreate.test.ts +++ b/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToCreate.test.ts @@ -1,5 +1,5 @@ import { type ViewFilter } from '@/views/types/ViewFilter'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { getViewFiltersToCreate } from '../getViewFiltersToCreate'; describe('getViewFiltersToCreate', () => { diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToDelete.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToDelete.test.ts index d2efa4a787..8da7057bab 100644 --- a/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToDelete.test.ts +++ b/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToDelete.test.ts @@ -1,5 +1,5 @@ import { type ViewFilter } from '@/views/types/ViewFilter'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { getViewFiltersToDelete } from '../getViewFiltersToDelete'; describe('getViewFiltersToDelete', () => { diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToUpdate.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToUpdate.test.ts index 7bc574245b..6428c78d29 100644 --- a/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToUpdate.test.ts +++ b/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToUpdate.test.ts @@ -1,5 +1,5 @@ import { type ViewFilter } from '@/views/types/ViewFilter'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { getViewFiltersToUpdate } from '../getViewFiltersToUpdate'; describe('getViewFiltersToUpdate', () => { diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/viewMapFunctions.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/viewMapFunctions.test.ts index a6ca642766..3317b1f603 100644 --- a/packages/twenty-front/src/modules/views/utils/__tests__/viewMapFunctions.test.ts +++ b/packages/twenty-front/src/modules/views/utils/__tests__/viewMapFunctions.test.ts @@ -9,7 +9,7 @@ import { mapColumnDefinitionsToViewFields } from '@/views/utils/mapColumnDefinit import { mapViewFieldsToColumnDefinitions } from '@/views/utils/mapViewFieldsToColumnDefinitions'; import { mapViewFiltersToFilters } from '@/views/utils/mapViewFiltersToFilters'; import { mapViewSortsToSorts } from '@/views/utils/mapViewSortsToSorts'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { FieldMetadataType } from '~/generated-metadata/graphql'; diff --git a/packages/twenty-front/src/modules/views/utils/isVectorSearchFilter.ts b/packages/twenty-front/src/modules/views/utils/isVectorSearchFilter.ts index 2d490f0fa9..6f6a6cb81e 100644 --- a/packages/twenty-front/src/modules/views/utils/isVectorSearchFilter.ts +++ b/packages/twenty-front/src/modules/views/utils/isVectorSearchFilter.ts @@ -1,5 +1,5 @@ import { type RecordFilter } from '@/object-record/record-filter/types/RecordFilter'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; export const isVectorSearchFilter = (filter: RecordFilter) => { return filter.operand === ViewFilterOperand.VectorSearch; diff --git a/packages/twenty-front/src/modules/views/view-filter-value/utils/resolveDateViewFilterValue.ts b/packages/twenty-front/src/modules/views/view-filter-value/utils/resolveDateViewFilterValue.ts index d5e58c9161..be61429fad 100644 --- a/packages/twenty-front/src/modules/views/view-filter-value/utils/resolveDateViewFilterValue.ts +++ b/packages/twenty-front/src/modules/views/view-filter-value/utils/resolveDateViewFilterValue.ts @@ -18,7 +18,7 @@ import { subWeeks, subYears, } from 'date-fns'; -import { ViewFilterOperand } from 'twenty-shared/src/types/ViewFilterOperand'; +import { ViewFilterOperand } from 'twenty-shared/types'; import { z } from 'zod'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilter.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilter.tsx index a67d96d9f3..e29f0c9594 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilter.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilter.tsx @@ -5,10 +5,7 @@ import { WorkflowEditActionFilterBodyEffect } from '@/workflow/workflow-steps/wo import { StepFilterGroupsComponentInstanceContext } from '@/workflow/workflow-steps/workflow-actions/filter-action/states/context/StepFilterGroupsComponentInstanceContext'; import { StepFiltersComponentInstanceContext } from '@/workflow/workflow-steps/workflow-actions/filter-action/states/context/StepFiltersComponentInstanceContext'; import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader'; -import { - type StepFilter, - type StepFilterGroup, -} from 'twenty-shared/src/types/StepFilters'; +import { type StepFilter, type StepFilterGroup } from 'twenty-shared/types'; import { useIcons } from 'twenty-ui/display'; type WorkflowEditActionFilterProps = { diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterAddFilterRuleSelect.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterAddFilterRuleSelect.tsx index 04f3ad22ae..abe0877f9e 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterAddFilterRuleSelect.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterAddFilterRuleSelect.tsx @@ -7,11 +7,11 @@ import { useCloseDropdown } from '@/ui/layout/dropdown/hooks/useCloseDropdown'; import { useChildStepFiltersAndChildStepFilterGroups } from '@/workflow/workflow-steps/workflow-actions/filter-action/hooks/useChildStepFiltersAndChildStepFilterGroups'; import { useUpsertStepFilterSettings } from '@/workflow/workflow-steps/workflow-actions/filter-action/hooks/useUpsertStepFilterSettings'; import { - type StepFilter, - type StepFilterGroup, StepLogicalOperator, ViewFilterOperand, -} from 'twenty-shared/src/types'; + type StepFilter, + type StepFilterGroup, +} from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { IconLibraryPlus, IconPlus } from 'twenty-ui/display'; import { MenuItem } from 'twenty-ui/navigation'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterColumn.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterColumn.tsx index 9fe901b076..81868bc6bf 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterColumn.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterColumn.tsx @@ -7,7 +7,7 @@ import { WorkflowStepFilterContext } from '@/workflow/workflow-steps/workflow-ac import { WorkflowAdvancedFilterDropdownColumn } from '@/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowAdvancedFilterDropdownColumn'; import styled from '@emotion/styled'; import { useContext } from 'react'; -import { type StepFilter, type StepFilterGroup } from 'twenty-shared/src/types'; +import { type StepFilter, type StepFilterGroup } from 'twenty-shared/types'; type WorkflowStepFilterColumnProps = { stepFilterGroup: StepFilterGroup; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterGroupColumn.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterGroupColumn.tsx index 814c4b449c..bf7b15ac7a 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterGroupColumn.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterGroupColumn.tsx @@ -5,7 +5,7 @@ import { WorkflowStepFilterContext } from '@/workflow/workflow-steps/workflow-ac import { WorkflowAdvancedFilterDropdownColumn } from '@/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowAdvancedFilterDropdownColumn'; import styled from '@emotion/styled'; import { useContext } from 'react'; -import { type StepFilterGroup } from 'twenty-shared/src/types'; +import { type StepFilterGroup } from 'twenty-shared/types'; type WorkflowStepFilterGroupColumnProps = { parentStepFilterGroup: StepFilterGroup; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterLogicalOperatorCell.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterLogicalOperatorCell.tsx index f5833ff70a..4b01efb5a6 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterLogicalOperatorCell.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterLogicalOperatorCell.tsx @@ -6,10 +6,7 @@ import { WorkflowStepFilterContext } from '@/workflow/workflow-steps/workflow-ac import styled from '@emotion/styled'; import { useContext } from 'react'; -import { - type StepFilterGroup, - StepLogicalOperator, -} from 'twenty-shared/src/types'; +import { StepLogicalOperator, type StepFilterGroup } from 'twenty-shared/types'; import { capitalize } from 'twenty-shared/utils'; const StyledText = styled.div` diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterOperandSelect.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterOperandSelect.tsx index 247569e48d..aea33ee13f 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterOperandSelect.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterOperandSelect.tsx @@ -6,10 +6,7 @@ import { useUpsertStepFilterSettings } from '@/workflow/workflow-steps/workflow- import { WorkflowStepFilterContext } from '@/workflow/workflow-steps/workflow-actions/filter-action/states/context/WorkflowStepFilterContext'; import { getViewFilterOperands } from '@/workflow/workflow-steps/workflow-actions/filter-action/utils/getStepFilterOperands'; import { useContext } from 'react'; -import { - type StepFilter, - type ViewFilterOperand, -} from 'twenty-shared/src/types'; +import { type StepFilter, type ViewFilterOperand } from 'twenty-shared/types'; type WorkflowStepFilterOperandSelectProps = { stepFilter: StepFilter; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterValueInput.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterValueInput.tsx index b68722df65..3786b1d3c2 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterValueInput.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowStepFilterValueInput.tsx @@ -12,7 +12,7 @@ import { WorkflowVariablePicker } from '@/workflow/workflow-variables/components import { useLingui } from '@lingui/react/macro'; import { isObject, isString } from '@sniptt/guards'; import { useContext } from 'react'; -import { FieldMetadataType, type StepFilter } from 'twenty-shared/src/types'; +import { FieldMetadataType, type StepFilter } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { type JsonValue } from 'type-fest'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/hooks/useChildStepFiltersAndChildStepFilterGroups.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/hooks/useChildStepFiltersAndChildStepFilterGroups.ts index c9bec73562..5ccacc04ca 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/hooks/useChildStepFiltersAndChildStepFilterGroups.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/hooks/useChildStepFiltersAndChildStepFilterGroups.ts @@ -1,7 +1,7 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; import { currentStepFilterGroupsComponentState } from '@/workflow/workflow-steps/workflow-actions/filter-action/states/currentStepFilterGroupsComponentState'; import { currentStepFiltersComponentState } from '@/workflow/workflow-steps/workflow-actions/filter-action/states/currentStepFiltersComponentState'; -import { type StepFilter, type StepFilterGroup } from 'twenty-shared/src/types'; +import { type StepFilter, type StepFilterGroup } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; export const useChildStepFiltersAndChildStepFilterGroups = ({ diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/utils/getStepFilterOperands.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/utils/getStepFilterOperands.ts index c48fe26bb3..9c4b913ffd 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/utils/getStepFilterOperands.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/utils/getStepFilterOperands.ts @@ -1,4 +1,4 @@ -import { ViewFilterOperand } from 'twenty-shared/src/types'; +import { ViewFilterOperand } from 'twenty-shared/types'; const emptyOperands = [ ViewFilterOperand.IsEmpty, diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/utils/isStepFilterGroupChildAStepFilterGroup.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/utils/isStepFilterGroupChildAStepFilterGroup.ts index 33dbd3cc7e..3cb323fa1d 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/utils/isStepFilterGroupChildAStepFilterGroup.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/utils/isStepFilterGroupChildAStepFilterGroup.ts @@ -1,7 +1,4 @@ -import { - type StepFilter, - type StepFilterGroup, -} from 'twenty-shared/src/types/StepFilters'; +import { type StepFilter, type StepFilterGroup } from 'twenty-shared/types'; export const isStepFilterGroupChildAStepFilterGroup = ( child: StepFilter | StepFilterGroup, diff --git a/packages/twenty-front/src/utils/formatAddressDisplay.ts b/packages/twenty-front/src/utils/formatAddressDisplay.ts index e4a963e050..865c286ec0 100644 --- a/packages/twenty-front/src/utils/formatAddressDisplay.ts +++ b/packages/twenty-front/src/utils/formatAddressDisplay.ts @@ -2,7 +2,7 @@ import { type FieldAddressValue } from '@/object-record/record-field/types/Field import { ALLOWED_ADDRESS_SUBFIELDS, type AllowedAddressSubField, -} from 'twenty-shared/src/types/AddressFieldsType'; +} from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { joinAddressFieldValues } from '~/utils/joinAddressFieldValues'; diff --git a/packages/twenty-server/package.json b/packages/twenty-server/package.json index b16ce911ae..7ab6220c13 100644 --- a/packages/twenty-server/package.json +++ b/packages/twenty-server/package.json @@ -63,7 +63,6 @@ "@opentelemetry/exporter-metrics-otlp-http": "^0.200.0", "@opentelemetry/sdk-metrics": "^2.0.0", "@opentelemetry/sdk-node": "^0.202.0", - "@preconstruct/cli": "2.8.12", "@prettier/sync": "0.5.3", "@ptc-org/nestjs-query-core": "4.4.0", "@ptc-org/nestjs-query-graphql": "patch:@ptc-org/nestjs-query-graphql@4.2.0#./patches/@ptc-org+nestjs-query-graphql+4.2.0.patch", diff --git a/packages/twenty-server/src/modules/workflow/workflow-executor/workspace-services/workflow-executor.workspace-service.ts b/packages/twenty-server/src/modules/workflow/workflow-executor/workspace-services/workflow-executor.workspace-service.ts index c36ce72cda..b948a6a89b 100644 --- a/packages/twenty-server/src/modules/workflow/workflow-executor/workspace-services/workflow-executor.workspace-service.ts +++ b/packages/twenty-server/src/modules/workflow/workflow-executor/workspace-services/workflow-executor.workspace-service.ts @@ -1,10 +1,14 @@ import { Injectable } from '@nestjs/common'; import { isDefined } from 'twenty-shared/utils'; -import { getWorkflowRunContext, StepStatus } from 'twenty-shared/workflow'; -import { type WorkflowRunStepInfo } from 'twenty-shared/src/workflow/types/WorkflowRunStateStepInfos'; +import { + getWorkflowRunContext, + StepStatus, + WorkflowRunStepInfo, +} from 'twenty-shared/workflow'; import { BILLING_FEATURE_USED } from 'src/engine/core-modules/billing/constants/billing-feature-used.constant'; +import { BILLING_WORKFLOW_EXECUTION_ERROR_MESSAGE } from 'src/engine/core-modules/billing/constants/billing-workflow-execution-error-message.constant'; import { BillingMeterEventName } from 'src/engine/core-modules/billing/enums/billing-meter-event-names'; import { BillingProductKey } from 'src/engine/core-modules/billing/enums/billing-product-key.enum'; import { BillingService } from 'src/engine/core-modules/billing/services/billing.service'; @@ -18,10 +22,9 @@ import { type WorkflowExecutorInput, } from 'src/modules/workflow/workflow-executor/types/workflow-executor-input'; import { canExecuteStep } from 'src/modules/workflow/workflow-executor/utils/can-execute-step.util'; -import { WorkflowRunWorkspaceService } from 'src/modules/workflow/workflow-runner/workflow-run/workflow-run.workspace-service'; -import { workflowShouldKeepRunning } from 'src/modules/workflow/workflow-executor/utils/workflow-should-keep-running.util'; import { workflowShouldFail } from 'src/modules/workflow/workflow-executor/utils/workflow-should-fail.util'; -import { BILLING_WORKFLOW_EXECUTION_ERROR_MESSAGE } from 'src/engine/core-modules/billing/constants/billing-workflow-execution-error-message.constant'; +import { workflowShouldKeepRunning } from 'src/modules/workflow/workflow-executor/utils/workflow-should-keep-running.util'; +import { WorkflowRunWorkspaceService } from 'src/modules/workflow/workflow-runner/workflow-run/workflow-run.workspace-service'; @Injectable() export class WorkflowExecutorWorkspaceService { diff --git a/packages/twenty-server/src/modules/workflow/workflow-runner/workflow-run/workflow-run.workspace-service.ts b/packages/twenty-server/src/modules/workflow/workflow-runner/workflow-run/workflow-run.workspace-service.ts index 5abeaaec5b..4abf2ad030 100644 --- a/packages/twenty-server/src/modules/workflow/workflow-runner/workflow-run/workflow-run.workspace-service.ts +++ b/packages/twenty-server/src/modules/workflow/workflow-runner/workflow-run/workflow-run.workspace-service.ts @@ -1,10 +1,9 @@ import { Injectable } from '@nestjs/common'; import { isDefined } from 'twenty-shared/utils'; -import { StepStatus } from 'twenty-shared/workflow'; +import { StepStatus, WorkflowRunStepInfo } from 'twenty-shared/workflow'; import { type QueryDeepPartialEntity } from 'typeorm/query-builder/QueryPartialEntity'; import { v4 } from 'uuid'; -import { type WorkflowRunStepInfo } from 'twenty-shared/src/workflow/types/WorkflowRunStateStepInfos'; import { WithLock } from 'src/engine/core-modules/cache-lock/with-lock.decorator'; import { MetricsService } from 'src/engine/core-modules/metrics/metrics.service'; @@ -14,8 +13,8 @@ import { type ActorMetadata } from 'src/engine/metadata-modules/field-metadata/c import { ScopedWorkspaceContextFactory } from 'src/engine/twenty-orm/factories/scoped-workspace-context.factory'; import { TwentyORMGlobalManager } from 'src/engine/twenty-orm/twenty-orm-global.manager'; import { - type WorkflowRunState, WorkflowRunStatus, + type WorkflowRunState, type WorkflowRunWorkspaceEntity, } from 'src/modules/workflow/common/standard-objects/workflow-run.workspace-entity'; import { type WorkflowVersionWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow-version.workspace-entity'; diff --git a/packages/twenty-server/test/integration/twenty-config/utils/create-config-variable.query-factory.util.ts b/packages/twenty-server/test/integration/twenty-config/utils/create-config-variable.query-factory.util.ts index 756ec07c0b..62c083387a 100644 --- a/packages/twenty-server/test/integration/twenty-config/utils/create-config-variable.query-factory.util.ts +++ b/packages/twenty-server/test/integration/twenty-config/utils/create-config-variable.query-factory.util.ts @@ -1,5 +1,5 @@ import { gql } from 'apollo-server-core'; -import { type ConfigVariableValue } from 'twenty-shared/src/types/ConfigVariableValue'; +import { type ConfigVariableValue } from 'twenty-shared/types'; export type CreateConfigVariableFactoryInput = { key: string; diff --git a/packages/twenty-server/test/integration/twenty-config/utils/update-config-variable.query-factory.util.ts b/packages/twenty-server/test/integration/twenty-config/utils/update-config-variable.query-factory.util.ts index 597dd70f6e..9b0e8d6e8a 100644 --- a/packages/twenty-server/test/integration/twenty-config/utils/update-config-variable.query-factory.util.ts +++ b/packages/twenty-server/test/integration/twenty-config/utils/update-config-variable.query-factory.util.ts @@ -1,5 +1,5 @@ import { gql } from 'apollo-server-core'; -import { type ConfigVariableValue } from 'twenty-shared/src/types/ConfigVariableValue'; +import { type ConfigVariableValue } from 'twenty-shared/types'; export type UpdateConfigVariableFactoryInput = { key: string; diff --git a/packages/twenty-shared/constants/package.json b/packages/twenty-shared/constants/package.json deleted file mode 100644 index 5f4b1af805..0000000000 --- a/packages/twenty-shared/constants/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "main": "dist/twenty-shared-constants.cjs.js", - "module": "dist/twenty-shared-constants.esm.js" -} diff --git a/packages/twenty-shared/package.json b/packages/twenty-shared/package.json index 1cc7fb4ffc..62ce22e1c2 100644 --- a/packages/twenty-shared/package.json +++ b/packages/twenty-shared/package.json @@ -1,10 +1,11 @@ { "name": "twenty-shared", - "main": "dist/twenty-shared.cjs.js", - "module": "dist/twenty-shared.esm.js", + "main": "dist/index.cjs", + "module": "dist/index.mjs", + "types": "dist/index.d.ts", "license": "AGPL-3.0", "scripts": { - "build": "preconstruct build" + "build": "npx vite build" }, "engines": { "node": "^24.5.0", @@ -13,13 +14,15 @@ }, "devDependencies": { "@babel/preset-env": "^7.26.9", - "@preconstruct/cli": "^2.8.12", "@prettier/sync": "^0.5.2", "@types/babel__preset-env": "^7", "@types/handlebars": "^4.1.0", "babel-plugin-module-resolver": "^5.0.2", "glob": "^11.0.1", - "tsx": "^4.19.3" + "tsx": "^4.19.3", + "vite": "^7.0.0", + "vite-plugin-dts": "3.8.1", + "vite-tsconfig-paths": "^4.2.1" }, "dependencies": { "@sniptt/guards": "^0.2.0", @@ -27,18 +30,47 @@ "libphonenumber-js": "^1.10.26", "zod": "3.23.8" }, - "preconstruct": { - "tsconfig": "tsconfig.lib.json", - "entrypoints": [ - "./index.ts", - "./constants/index.ts", - "./testing/index.ts", - "./translations/index.ts", - "./types/index.ts", - "./utils/index.ts", - "./workflow/index.ts", - "./workspace/index.ts" - ] + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "./constants": { + "types": "./dist/constants/index.d.ts", + "import": "./dist/constants.mjs", + "require": "./dist/constants.cjs" + }, + "./testing": { + "types": "./dist/testing/index.d.ts", + "import": "./dist/testing.mjs", + "require": "./dist/testing.cjs" + }, + "./translations": { + "types": "./dist/translations/index.d.ts", + "import": "./dist/translations.mjs", + "require": "./dist/translations.cjs" + }, + "./types": { + "types": "./dist/types/index.d.ts", + "import": "./dist/types.mjs", + "require": "./dist/types.cjs" + }, + "./utils": { + "types": "./dist/utils/index.d.ts", + "import": "./dist/utils.mjs", + "require": "./dist/utils.cjs" + }, + "./workflow": { + "types": "./dist/workflow/index.d.ts", + "import": "./dist/workflow.mjs", + "require": "./dist/workflow.cjs" + }, + "./workspace": { + "types": "./dist/workspace/index.d.ts", + "import": "./dist/workspace.mjs", + "require": "./dist/workspace.cjs" + } }, "files": [ "dist", @@ -49,5 +81,30 @@ "utils", "workflow", "workspace" - ] + ], + "typesVersions": { + "*": { + "constants": [ + "dist/constants/index.d.ts" + ], + "testing": [ + "dist/testing/index.d.ts" + ], + "translations": [ + "dist/translations/index.d.ts" + ], + "types": [ + "dist/types/index.d.ts" + ], + "utils": [ + "dist/utils/index.d.ts" + ], + "workflow": [ + "dist/workflow/index.d.ts" + ], + "workspace": [ + "dist/workspace/index.d.ts" + ] + } + } } diff --git a/packages/twenty-shared/scripts/generateBarrels.ts b/packages/twenty-shared/scripts/generateBarrels.ts index e5a1d78f9a..3bca367d8e 100644 --- a/packages/twenty-shared/scripts/generateBarrels.ts +++ b/packages/twenty-shared/scripts/generateBarrels.ts @@ -72,10 +72,10 @@ const getSubDirectoryPaths = (directoryPath: string): string[] => { }).sort((a, b) => a.localeCompare(b)); }; -const partitionFileExportsByType = (declarations: DeclarationOccurence[]) => { +const partitionFileExportsByType = (declarations: DeclarationOccurrence[]) => { return declarations.reduce<{ - typeAndInterfaceDeclarations: DeclarationOccurence[]; - otherDeclarations: DeclarationOccurence[]; + typeAndInterfaceDeclarations: DeclarationOccurrence[]; + otherDeclarations: DeclarationOccurrence[]; }>( (acc, { kind, name }) => { if (kind === 'type' || kind === 'interface') { @@ -117,7 +117,7 @@ const generateModuleIndexFiles = (exportByBarrel: ExportByBarrel[]) => { ), ); const mapDeclarationNameAndJoin = ( - declarations: DeclarationOccurence[], + declarations: DeclarationOccurrence[], ) => declarations.map(({ name }) => name).join(', '); const typeExport = @@ -187,20 +187,57 @@ const updateNxProjectConfigurationBuildOutputs = (outputs: JsonUpdate) => { }); }; -const computePackageJsonFilesAndPreconstructConfig = ( +type ExportOccurrence = { + types: string; + import: string; + require: string; +}; +type ExportsConfig = Record; + +const generateModulePackageExports = (moduleDirectories: string[]) => { + return moduleDirectories.reduce((acc, moduleDirectory) => { + const moduleName = getLastPathFolder(moduleDirectory); + if (moduleName === undefined) { + throw new Error( + `Should never occur, moduleName is undefined ${moduleDirectory}`, + ); + } + + return { + ...acc, + [`./${moduleName}`]: { + types: `./dist/${moduleName}/index.d.ts`, + import: `./dist/${moduleName}.mjs`, + require: `./dist/${moduleName}.cjs`, + }, + }; + }, {}); +}; + +const computePackageJsonFilesAndExportsConfig = ( moduleDirectories: string[], ) => { const entrypoints = moduleDirectories.map(getLastPathFolder); + const exports = { + '.': { + types: './dist/index.d.ts', + import: './dist/index.mjs', + require: './dist/index.cjs', + }, + ...generateModulePackageExports(moduleDirectories), + } satisfies ExportsConfig; + + const typesVersionsEntries = entrypoints.reduce>( + (acc, moduleName) => ({ + ...acc, + [`${moduleName}`]: [`dist/${moduleName}/index.d.ts`], + }), + {}, + ); return { - preconstruct: { - // TODO refactor to merge in existing configuration - tsconfig: 'tsconfig.lib.json', - entrypoints: [ - './index.ts', - ...entrypoints.map((module) => `./${module}/index.ts`), - ], - }, + exports, + typesVersions: { '*': typesVersionsEntries }, files: ['dist', ...entrypoints], }; }; @@ -266,7 +303,7 @@ const getKind = ( }; function extractExportsFromSourceFile(sourceFile: ts.SourceFile) { - const exports: DeclarationOccurence[] = []; + const exports: DeclarationOccurrence[] = []; function visit(node: ts.Node) { if (!ts.canHaveModifiers(node)) { @@ -277,7 +314,7 @@ function extractExportsFromSourceFile(sourceFile: ts.SourceFile) { (mod) => mod.kind === ts.SyntaxKind.ExportKeyword, ); - if (!isExport) { + if (!isExport && !ts.isExportDeclaration(node)) { return ts.forEachChild(node, visit); } @@ -312,12 +349,27 @@ function extractExportsFromSourceFile(sourceFile: ts.SourceFile) { case ts.isVariableStatement(node): node.declarationList.declarations.forEach((decl) => { + const kind = getKind(node); + if (ts.isIdentifier(decl.name)) { - const kind = getKind(node); exports.push({ kind, name: decl.name.text, }); + } else if (ts.isObjectBindingPattern(decl.name)) { + decl.name.elements.forEach((element) => { + if ( + !ts.isBindingElement(element) || + !ts.isIdentifier(element.name) + ) { + return; + } + + exports.push({ + kind, + name: element.name.text, + }); + }); } }); break; @@ -328,6 +380,30 @@ function extractExportsFromSourceFile(sourceFile: ts.SourceFile) { name: node.name.text, }); break; + case ts.isExportDeclaration(node): + if (node.exportClause && ts.isNamedExports(node.exportClause)) { + node.exportClause.elements.forEach((element) => { + const exportName = element.name.text; + + // Check both the declaration and the individual specifier for type-only exports + const isTypeExport = + node.isTypeOnly || ts.isTypeOnlyExportDeclaration(node); + if (isTypeExport) { + // should handle kind + exports.push({ + kind: 'type', + name: exportName, + }); + return; + } + + exports.push({ + kind: 'const', + name: exportName, + }); + }); + } + break; } return ts.forEachChild(node, visit); } @@ -345,10 +421,10 @@ type ExportKind = | 'let' | 'var' | 'class'; -type DeclarationOccurence = { kind: ExportKind; name: string }; +type DeclarationOccurrence = { kind: ExportKind; name: string }; type FileExports = Array<{ file: string; - exports: DeclarationOccurence[]; + exports: DeclarationOccurrence[]; }>; function findAllExports(directoryPath: string): FileExports { @@ -407,13 +483,13 @@ const main = () => { const moduleDirectories = getSubDirectoryPaths(SRC_PATH); const exportsByBarrel = retrieveExportsByBarrel(moduleDirectories); const moduleIndexFiles = generateModuleIndexFiles(exportsByBarrel); - const packageJsonPreconstructConfigAndFiles = - computePackageJsonFilesAndPreconstructConfig(moduleDirectories); + const packageJsonConfig = + computePackageJsonFilesAndExportsConfig(moduleDirectories); const nxBuildOutputsPath = computeProjectNxBuildOutputsPath(moduleDirectories); updateNxProjectConfigurationBuildOutputs(nxBuildOutputsPath); - writeInPackageJson(packageJsonPreconstructConfigAndFiles); + writeInPackageJson(packageJsonConfig); moduleIndexFiles.forEach(createTypeScriptFile); }; main(); diff --git a/packages/twenty-shared/scripts/migrateFromSingleToMultiBarrelImport.ts b/packages/twenty-shared/scripts/migrateFromSingleToMultiBarrelImport.ts index be0b751e51..305be6ad90 100644 --- a/packages/twenty-shared/scripts/migrateFromSingleToMultiBarrelImport.ts +++ b/packages/twenty-shared/scripts/migrateFromSingleToMultiBarrelImport.ts @@ -9,10 +9,10 @@ if (prettierConfigFile == null) { } const prettierConfiguration = prettier.resolveConfig(prettierConfigFile); -type DeclarationOccurence = { kind: string; name: string }; +type DeclarationOccurrence = { kind: string; name: string }; type ExtractedExports = Array<{ file: string; - exports: DeclarationOccurence[]; + exports: DeclarationOccurrence[]; }>; type ExtractedImports = Array<{ file: string; imports: string[] }>; @@ -106,7 +106,7 @@ const getKind = (node: ts.VariableStatement) => { }; function extractExports(sourceFile: ts.SourceFile) { - const exports: DeclarationOccurence[] = []; + const exports: DeclarationOccurrence[] = []; function visit(node: ts.Node) { if (!ts.canHaveModifiers(node)) { diff --git a/packages/twenty-shared/src/index.ts b/packages/twenty-shared/src/index.ts index 7d07217d60..ef44d4c341 100644 --- a/packages/twenty-shared/src/index.ts +++ b/packages/twenty-shared/src/index.ts @@ -1,10 +1,11 @@ /* * _____ _ *|_ _|_ _____ _ __ | |_ _ _ - * | | \ \ /\ / / _ \ '_ \| __| | | | Auto-genreated file - * | | \ V V / __/ | | | |_| |_| | Any edition to this will be override + * | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file + * | | \ V V / __/ | | | |_| |_| | Any edits to this will be overridden * |_| \_/\_/ \___|_| |_|\__|\__, | * |___/ */ export default {}; + diff --git a/packages/twenty-shared/testing/package.json b/packages/twenty-shared/testing/package.json deleted file mode 100644 index 1f1af5ce8d..0000000000 --- a/packages/twenty-shared/testing/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "main": "dist/twenty-shared-testing.cjs.js", - "module": "dist/twenty-shared-testing.esm.js" -} diff --git a/packages/twenty-shared/translations/package.json b/packages/twenty-shared/translations/package.json deleted file mode 100644 index 8b74d1a0fb..0000000000 --- a/packages/twenty-shared/translations/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "main": "dist/twenty-shared-translations.cjs.js", - "module": "dist/twenty-shared-translations.esm.js" -} diff --git a/packages/twenty-shared/types/package.json b/packages/twenty-shared/types/package.json deleted file mode 100644 index 40f8d417ed..0000000000 --- a/packages/twenty-shared/types/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "main": "dist/twenty-shared-types.cjs.js", - "module": "dist/twenty-shared-types.esm.js" -} diff --git a/packages/twenty-shared/utils/package.json b/packages/twenty-shared/utils/package.json deleted file mode 100644 index 194c65fa59..0000000000 --- a/packages/twenty-shared/utils/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "main": "dist/twenty-shared-utils.cjs.js", - "module": "dist/twenty-shared-utils.esm.js" -} diff --git a/packages/twenty-shared/vite.config.ts b/packages/twenty-shared/vite.config.ts new file mode 100644 index 0000000000..497de8bd19 --- /dev/null +++ b/packages/twenty-shared/vite.config.ts @@ -0,0 +1,64 @@ +import path from 'path'; +import { defineConfig } from 'vite'; +import dts from 'vite-plugin-dts'; +import tsconfigPaths from 'vite-tsconfig-paths'; +import packageJson from './package.json'; + +const moduleEntries = Object.keys((packageJson as any).exports || {}) + .filter((key) => key !== './style.css' && key !== '.' && !key.startsWith('./src/')) + .map((module) => `src/${module.replace(/^\.\//, '')}/index.ts`); + +const entries = ['src/index.ts', ...moduleEntries]; + +const entryFileNames = (chunk: any, extension: 'cjs' | 'mjs') => { + if (!chunk.isEntry) { + throw new Error( + `Should never occurs, encountered a non entry chunk ${chunk.facadeModuleId}`, + ); + } + + const splitFaceModuleId = chunk.facadeModuleId?.split('/'); + if (splitFaceModuleId === undefined) { + throw new Error( + `Should never occurs splitFaceModuleId is undefined ${chunk.facadeModuleId}`, + ); + } + + const moduleDirectory = splitFaceModuleId[splitFaceModuleId?.length - 2]; + if (moduleDirectory === 'src') { + return `${chunk.name}.${extension}`; + } + return `${moduleDirectory}.${extension}`; +}; + +export default defineConfig(() => { + const tsConfigPath = path.resolve(__dirname, './tsconfig.lib.json'); + + return { + root: __dirname, + cacheDir: '../../node_modules/.vite/packages/twenty-shared', + plugins: [tsconfigPaths(), dts({ entryRoot: 'src', tsconfigPath: tsConfigPath })], + build: { + outDir: 'dist', + lib: { entry: entries, name: 'twenty-shared' }, + rollupOptions: { + external: Object.keys((packageJson as any).dependencies || {}), + output: [ + { + format: 'es', + entryFileNames: (chunk) => entryFileNames(chunk, 'mjs'), + }, + { + format: 'cjs', + interop: 'auto', + esModule: true, + exports: 'named', + entryFileNames: (chunk) => entryFileNames(chunk, 'cjs'), + }, + ], + }, + }, + }; +}); + + diff --git a/packages/twenty-shared/workflow/package.json b/packages/twenty-shared/workflow/package.json deleted file mode 100644 index 61e09225fe..0000000000 --- a/packages/twenty-shared/workflow/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "main": "dist/twenty-shared-workflow.cjs.js", - "module": "dist/twenty-shared-workflow.esm.js" -} diff --git a/packages/twenty-shared/workspace/package.json b/packages/twenty-shared/workspace/package.json deleted file mode 100644 index 355e3e914d..0000000000 --- a/packages/twenty-shared/workspace/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "main": "dist/twenty-shared-workspace.cjs.js", - "module": "dist/twenty-shared-workspace.esm.js" -} diff --git a/packages/twenty-ui/package.json b/packages/twenty-ui/package.json index dd873c2dfe..9a0cad138d 100644 --- a/packages/twenty-ui/package.json +++ b/packages/twenty-ui/package.json @@ -48,6 +48,7 @@ "dist", "assets", "accessibility", + "assets", "components", "display", "feedback", @@ -63,12 +64,22 @@ "**/*.css" ], "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, "./style.css": "./dist/style.css", "./accessibility": { "types": "./dist/accessibility/index.d.ts", "import": "./dist/accessibility.mjs", "require": "./dist/accessibility.cjs" }, + "./assets": { + "types": "./dist/assets/index.d.ts", + "import": "./dist/assets.mjs", + "require": "./dist/assets.cjs" + }, "./components": { "types": "./dist/components/index.d.ts", "import": "./dist/components.mjs", @@ -119,5 +130,45 @@ "import": "./dist/utilities.mjs", "require": "./dist/utilities.cjs" } + }, + "typesVersions": { + "*": { + "accessibility": [ + "dist/accessibility/index.d.ts" + ], + "assets": [ + "dist/assets/index.d.ts" + ], + "components": [ + "dist/components/index.d.ts" + ], + "display": [ + "dist/display/index.d.ts" + ], + "feedback": [ + "dist/feedback/index.d.ts" + ], + "input": [ + "dist/input/index.d.ts" + ], + "json-visualizer": [ + "dist/json-visualizer/index.d.ts" + ], + "layout": [ + "dist/layout/index.d.ts" + ], + "navigation": [ + "dist/navigation/index.d.ts" + ], + "testing": [ + "dist/testing/index.d.ts" + ], + "theme": [ + "dist/theme/index.d.ts" + ], + "utilities": [ + "dist/utilities/index.d.ts" + ] + } } } diff --git a/packages/twenty-ui/project.json b/packages/twenty-ui/project.json index edea25e7df..526bf88a2a 100644 --- a/packages/twenty-ui/project.json +++ b/packages/twenty-ui/project.json @@ -16,6 +16,8 @@ "{projectRoot}/dist", "{projectRoot}/accessibility/package.json", "{projectRoot}/accessibility/dist", + "{projectRoot}/assets/package.json", + "{projectRoot}/assets/dist", "{projectRoot}/components/package.json", "{projectRoot}/components/dist", "{projectRoot}/display/package.json", diff --git a/packages/twenty-ui/scripts/generateBarrels.ts b/packages/twenty-ui/scripts/generateBarrels.ts index 7533da894e..a9b44af58b 100644 --- a/packages/twenty-ui/scripts/generateBarrels.ts +++ b/packages/twenty-ui/scripts/generateBarrels.ts @@ -72,10 +72,10 @@ const getSubDirectoryPaths = (directoryPath: string): string[] => { }).sort((a, b) => a.localeCompare(b)); }; -const partitionFileExportsByType = (declarations: DeclarationOccurence[]) => { +const partitionFileExportsByType = (declarations: DeclarationOccurrence[]) => { return declarations.reduce<{ - typeAndInterfaceDeclarations: DeclarationOccurence[]; - otherDeclarations: DeclarationOccurence[]; + typeAndInterfaceDeclarations: DeclarationOccurrence[]; + otherDeclarations: DeclarationOccurrence[]; }>( (acc, { kind, name }) => { if (kind === 'type' || kind === 'interface') { @@ -117,7 +117,7 @@ const generateModuleIndexFiles = (exportByBarrel: ExportByBarrel[]) => { ), ); const mapDeclarationNameAndJoin = ( - declarations: DeclarationOccurence[], + declarations: DeclarationOccurrence[], ) => declarations.map(({ name }) => name).join(', '); const typeExport = @@ -187,12 +187,13 @@ const updateNxProjectConfigurationBuildOutputs = (outputs: JsonUpdate) => { }); }; -type ExportOccurence = { +type ExportOccurrence = { types: string; import: string; require: string; }; -type ExportsConfig = Record; +type ExportsConfig = Record; + const generateModulePackageExports = (moduleDirectories: string[]) => { return moduleDirectories.reduce( (acc, moduleDirectory) => { @@ -222,9 +223,26 @@ const computePackageJsonFilesAndExportsConfig = ( moduleDirectories: string[], ) => { const entrypoints = moduleDirectories.map(getLastPathFolder); - const exports = generateModulePackageExports(moduleDirectories); + const exports = { + '.': { + types: './dist/index.d.ts', + import: './dist/index.mjs', + require: './dist/index.cjs', + }, + ...generateModulePackageExports(moduleDirectories), + } satisfies ExportsConfig; + + const typesVersionsEntries = entrypoints.reduce>( + (acc, moduleName) => ({ + ...acc, + [`${moduleName}`]: [`dist/${moduleName}/index.d.ts`], + }), + {}, + ); + return { exports, + typesVersions: { '*': typesVersionsEntries }, files: ['dist', 'assets', ...entrypoints], }; }; @@ -254,7 +272,6 @@ const EXCLUDED_DIRECTORIES = [ '**/__mocks__/**', '**/__stories__/**', '**/internal/**', - '**/assets/**', ] as const; function getTypeScriptFiles( directoryPath: string, @@ -291,7 +308,7 @@ const getKind = ( }; function extractExportsFromSourceFile(sourceFile: ts.SourceFile) { - const exports: DeclarationOccurence[] = []; + const exports: DeclarationOccurrence[] = []; function visit(node: ts.Node) { if (!ts.canHaveModifiers(node)) { @@ -368,7 +385,6 @@ function extractExportsFromSourceFile(sourceFile: ts.SourceFile) { name: node.name.text, }); break; - case ts.isExportDeclaration(node): if (node.exportClause && ts.isNamedExports(node.exportClause)) { node.exportClause.elements.forEach((element) => { @@ -410,10 +426,10 @@ type ExportKind = | 'let' | 'var' | 'class'; -type DeclarationOccurence = { kind: ExportKind; name: string }; +type DeclarationOccurrence = { kind: ExportKind; name: string }; type FileExports = Array<{ file: string; - exports: DeclarationOccurence[]; + exports: DeclarationOccurrence[]; }>; function findAllExports(directoryPath: string): FileExports { diff --git a/packages/twenty-ui/scripts/migrateFromSingleToMultiBarrelImport.ts b/packages/twenty-ui/scripts/migrateFromSingleToMultiBarrelImport.ts index 5954b66664..834209be7a 100644 --- a/packages/twenty-ui/scripts/migrateFromSingleToMultiBarrelImport.ts +++ b/packages/twenty-ui/scripts/migrateFromSingleToMultiBarrelImport.ts @@ -9,10 +9,10 @@ if (prettierConfigFile == null) { } const prettierConfiguration = prettier.resolveConfig(prettierConfigFile); -type DeclarationOccurence = { kind: string; name: string }; +type DeclarationOccurrence = { kind: string; name: string }; type ExtractedExports = Array<{ file: string; - exports: DeclarationOccurence[]; + exports: DeclarationOccurrence[]; }>; type ExtractedImports = Array<{ file: string; imports: string[] }>; @@ -106,7 +106,7 @@ const getKind = (node: ts.VariableStatement) => { }; function extractExports(sourceFile: ts.SourceFile) { - const exports: DeclarationOccurence[] = []; + const exports: DeclarationOccurrence[] = []; function visit(node: ts.Node) { if (!ts.canHaveModifiers(node)) { diff --git a/packages/twenty-ui/src/assets/index.ts b/packages/twenty-ui/src/assets/index.ts new file mode 100644 index 0000000000..4a1144ec60 --- /dev/null +++ b/packages/twenty-ui/src/assets/index.ts @@ -0,0 +1,8 @@ +/* + * _____ _ + *|_ _|_ _____ _ __ | |_ _ _ + * | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file + * | | \ V V / __/ | | | |_| |_| | Any edits to this will be overridden + * |_| \_/\_/ \___|_| |_|\__|\__, | + * |___/ + */ diff --git a/yarn.lock b/yarn.lock index 044c476cea..5fea80199a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1514,7 +1514,7 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:^7.25.9, @babel/code-frame@npm:^7.26.0, @babel/code-frame@npm:^7.26.2, @babel/code-frame@npm:^7.5.5": +"@babel/code-frame@npm:^7.25.9, @babel/code-frame@npm:^7.26.0, @babel/code-frame@npm:^7.26.2": version: 7.26.2 resolution: "@babel/code-frame@npm:7.26.2" dependencies: @@ -1633,29 +1633,6 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.7.7": - version: 7.26.10 - resolution: "@babel/core@npm:7.26.10" - dependencies: - "@ampproject/remapping": "npm:^2.2.0" - "@babel/code-frame": "npm:^7.26.2" - "@babel/generator": "npm:^7.26.10" - "@babel/helper-compilation-targets": "npm:^7.26.5" - "@babel/helper-module-transforms": "npm:^7.26.0" - "@babel/helpers": "npm:^7.26.10" - "@babel/parser": "npm:^7.26.10" - "@babel/template": "npm:^7.26.9" - "@babel/traverse": "npm:^7.26.10" - "@babel/types": "npm:^7.26.10" - convert-source-map: "npm:^2.0.0" - debug: "npm:^4.1.0" - gensync: "npm:^1.0.0-beta.2" - json5: "npm:^2.2.3" - semver: "npm:^6.3.1" - checksum: 10c0/e046e0e988ab53841b512ee9d263ca409f6c46e2a999fe53024688b92db394346fa3aeae5ea0866331f62133982eee05a675d22922a4603c3f603aa09a581d62 - languageName: node - linkType: hard - "@babel/generator@npm:^7.14.0, @babel/generator@npm:^7.18.13, @babel/generator@npm:^7.22.5, @babel/generator@npm:^7.23.5, @babel/generator@npm:^7.25.0, @babel/generator@npm:^7.7.2": version: 7.25.0 resolution: "@babel/generator@npm:7.25.0" @@ -1904,16 +1881,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-module-imports@npm:^7.10.4, @babel/helper-module-imports@npm:^7.25.9": - version: 7.25.9 - resolution: "@babel/helper-module-imports@npm:7.25.9" - dependencies: - "@babel/traverse": "npm:^7.25.9" - "@babel/types": "npm:^7.25.9" - checksum: 10c0/078d3c2b45d1f97ffe6bb47f61961be4785d2342a4156d8b42c92ee4e1b7b9e365655dd6cb25329e8fe1a675c91eeac7e3d04f0c518b67e417e29d6e27b6aa70 - languageName: node - linkType: hard - "@babel/helper-module-imports@npm:^7.16.7, @babel/helper-module-imports@npm:^7.22.15, @babel/helper-module-imports@npm:^7.24.7": version: 7.24.7 resolution: "@babel/helper-module-imports@npm:7.24.7" @@ -1924,6 +1891,16 @@ __metadata: languageName: node linkType: hard +"@babel/helper-module-imports@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/helper-module-imports@npm:7.25.9" + dependencies: + "@babel/traverse": "npm:^7.25.9" + "@babel/types": "npm:^7.25.9" + checksum: 10c0/078d3c2b45d1f97ffe6bb47f61961be4785d2342a4156d8b42c92ee4e1b7b9e365655dd6cb25329e8fe1a675c91eeac7e3d04f0c518b67e417e29d6e27b6aa70 + languageName: node + linkType: hard + "@babel/helper-module-imports@npm:^7.27.1": version: 7.27.1 resolution: "@babel/helper-module-imports@npm:7.27.1" @@ -2200,16 +2177,6 @@ __metadata: languageName: node linkType: hard -"@babel/helpers@npm:^7.26.10": - version: 7.26.10 - resolution: "@babel/helpers@npm:7.26.10" - dependencies: - "@babel/template": "npm:^7.26.9" - "@babel/types": "npm:^7.26.10" - checksum: 10c0/f99e1836bcffce96db43158518bb4a24cf266820021f6461092a776cba2dc01d9fc8b1b90979d7643c5c2ab7facc438149064463a52dd528b21c6ab32509784f - languageName: node - linkType: hard - "@babel/helpers@npm:^7.27.6": version: 7.28.2 resolution: "@babel/helpers@npm:7.28.2" @@ -3371,7 +3338,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-commonjs@npm:^7.26.3, @babel/plugin-transform-modules-commonjs@npm:^7.7.5": +"@babel/plugin-transform-modules-commonjs@npm:^7.26.3": version: 7.26.3 resolution: "@babel/plugin-transform-modules-commonjs@npm:7.26.3" dependencies: @@ -4420,15 +4387,6 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.7.7": - version: 7.26.10 - resolution: "@babel/runtime@npm:7.26.10" - dependencies: - regenerator-runtime: "npm:^0.14.0" - checksum: 10c0/6dc6d88c7908f505c4f7770fb4677dfa61f68f659b943c2be1f2a99cb6680343462867abf2d49822adc435932919b36c77ac60125793e719ea8745f2073d3745 - languageName: node - linkType: hard - "@babel/template@npm:^7.18.10, @babel/template@npm:^7.20.7, @babel/template@npm:^7.22.15, @babel/template@npm:^7.22.5, @babel/template@npm:^7.24.7, @babel/template@npm:^7.25.0, @babel/template@npm:^7.3.3": version: 7.25.0 resolution: "@babel/template@npm:7.25.0" @@ -4518,7 +4476,7 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.26.10, @babel/traverse@npm:^7.26.5, @babel/traverse@npm:^7.26.8, @babel/traverse@npm:^7.26.9": +"@babel/traverse@npm:^7.26.5, @babel/traverse@npm:^7.26.8, @babel/traverse@npm:^7.26.9": version: 7.26.10 resolution: "@babel/traverse@npm:7.26.10" dependencies: @@ -15363,64 +15321,6 @@ __metadata: languageName: node linkType: hard -"@preconstruct/cli@npm:2.8.12, @preconstruct/cli@npm:^2.8.12": - version: 2.8.12 - resolution: "@preconstruct/cli@npm:2.8.12" - dependencies: - "@babel/code-frame": "npm:^7.5.5" - "@babel/core": "npm:^7.7.7" - "@babel/helper-module-imports": "npm:^7.10.4" - "@babel/runtime": "npm:^7.7.7" - "@preconstruct/hook": "npm:^0.4.0" - "@rollup/plugin-alias": "npm:^3.1.1" - "@rollup/plugin-commonjs": "npm:^15.0.0" - "@rollup/plugin-json": "npm:^4.1.0" - "@rollup/plugin-node-resolve": "npm:^11.2.1" - "@rollup/plugin-replace": "npm:^2.4.1" - builtin-modules: "npm:^3.1.0" - chalk: "npm:^4.1.0" - ci-info: "npm:^3.8.0" - dataloader: "npm:^2.0.0" - detect-indent: "npm:^6.0.0" - enquirer: "npm:^2.3.6" - estree-walker: "npm:^2.0.1" - fast-deep-equal: "npm:^2.0.1" - fast-glob: "npm:^3.2.4" - fs-extra: "npm:^9.0.1" - is-reference: "npm:^1.2.1" - jest-worker: "npm:^26.3.0" - magic-string: "npm:^0.30.0" - ms: "npm:^2.1.2" - normalize-path: "npm:^3.0.0" - npm-packlist: "npm:^2.1.2" - p-limit: "npm:^3.0.2" - parse-glob: "npm:^3.0.4" - parse-json: "npm:^5.1.0" - quick-lru: "npm:^5.1.1" - resolve-from: "npm:^5.0.0" - rollup: "npm:^2.79.1" - semver: "npm:^7.3.4" - terser: "npm:^5.16.8" - v8-compile-cache: "npm:^2.1.1" - zod: "npm:^3.21.4" - bin: - preconstruct: bin.js - checksum: 10c0/775d9df65c1ab03b80a4e78337393c659244190b0a1671444f0de5a2b59f006a1b591065eee2f8a0b0b1db494117ab0720815c714765bd2d7df7e1f9f89f3622 - languageName: node - linkType: hard - -"@preconstruct/hook@npm:^0.4.0": - version: 0.4.0 - resolution: "@preconstruct/hook@npm:0.4.0" - dependencies: - "@babel/core": "npm:^7.7.7" - "@babel/plugin-transform-modules-commonjs": "npm:^7.7.5" - pirates: "npm:^4.0.1" - source-map-support: "npm:^0.5.16" - checksum: 10c0/df2d5eab2dcf4d0eab3786ebb904dd4d1ff8d7a5e76e787f928ee3ff436af6441dff2929e917c70f1e709fb972e7db742cb23b77f6b8fdc3a5d0cc9bd74874cf - languageName: node - linkType: hard - "@prettier/sync@npm:0.5.3, @prettier/sync@npm:^0.5.2": version: 0.5.3 resolution: "@prettier/sync@npm:0.5.3" @@ -18416,86 +18316,6 @@ __metadata: languageName: node linkType: hard -"@rollup/plugin-alias@npm:^3.1.1": - version: 3.1.9 - resolution: "@rollup/plugin-alias@npm:3.1.9" - dependencies: - slash: "npm:^3.0.0" - peerDependencies: - rollup: ^1.20.0||^2.0.0 - checksum: 10c0/f932771db3c87ccc6008e4d82c89c5a09349c834180a7ca6c3ee4d5dbf086cb27f9ce5f5aee42a66bf556e5fd3094438ffdf47e19f5bb0e15ea3cb1a9f34860d - languageName: node - linkType: hard - -"@rollup/plugin-commonjs@npm:^15.0.0": - version: 15.1.0 - resolution: "@rollup/plugin-commonjs@npm:15.1.0" - dependencies: - "@rollup/pluginutils": "npm:^3.1.0" - commondir: "npm:^1.0.1" - estree-walker: "npm:^2.0.1" - glob: "npm:^7.1.6" - is-reference: "npm:^1.2.1" - magic-string: "npm:^0.25.7" - resolve: "npm:^1.17.0" - peerDependencies: - rollup: ^2.22.0 - checksum: 10c0/e9e6f030c6b9f9fd236ec690cb96e56334460965748febac6a1204026a1aef558e965154bbbd709036dc2b7c453f5a196b30df237a9fde9337ae8ba77ea97f16 - languageName: node - linkType: hard - -"@rollup/plugin-json@npm:^4.1.0": - version: 4.1.0 - resolution: "@rollup/plugin-json@npm:4.1.0" - dependencies: - "@rollup/pluginutils": "npm:^3.0.8" - peerDependencies: - rollup: ^1.20.0 || ^2.0.0 - checksum: 10c0/9fc4a3ee60929afcb5269ebda602914d1cf5dc020808f85be90c0a5a2ba9ca26136b0284a1935984861f0549a1e1db30fc372906c14425f5da4909f0fd21e5ea - languageName: node - linkType: hard - -"@rollup/plugin-node-resolve@npm:^11.2.1": - version: 11.2.1 - resolution: "@rollup/plugin-node-resolve@npm:11.2.1" - dependencies: - "@rollup/pluginutils": "npm:^3.1.0" - "@types/resolve": "npm:1.17.1" - builtin-modules: "npm:^3.1.0" - deepmerge: "npm:^4.2.2" - is-module: "npm:^1.0.0" - resolve: "npm:^1.19.0" - peerDependencies: - rollup: ^1.20.0||^2.0.0 - checksum: 10c0/a8226b01352ee1f7133b1b59b3906267e11c99020a55e3b7a313e03889f790d1cd94e7f7769d3963261e897c3265082533ba595976f8e3f08cf70aa88bf1ddd7 - languageName: node - linkType: hard - -"@rollup/plugin-replace@npm:^2.4.1": - version: 2.4.2 - resolution: "@rollup/plugin-replace@npm:2.4.2" - dependencies: - "@rollup/pluginutils": "npm:^3.1.0" - magic-string: "npm:^0.25.7" - peerDependencies: - rollup: ^1.20.0 || ^2.0.0 - checksum: 10c0/ea3d27291c791661638b91809d0247dde1ee71be0b16fa7060078c2700db3669eada2c3978ea979b917b29ebe06f3fddc8797feae554da966264a22142b5771a - languageName: node - linkType: hard - -"@rollup/pluginutils@npm:^3.0.8, @rollup/pluginutils@npm:^3.1.0": - version: 3.1.0 - resolution: "@rollup/pluginutils@npm:3.1.0" - dependencies: - "@types/estree": "npm:0.0.39" - estree-walker: "npm:^1.0.1" - picomatch: "npm:^2.2.2" - peerDependencies: - rollup: ^1.20.0||^2.0.0 - checksum: 10c0/7151753160d15ba2b259461a6c25b3932150994ea52dba8fd3144f634c7647c2e56733d986e2c15de67c4d96a9ee7d6278efa6d2e626a7169898fd64adc0f90c - languageName: node - linkType: hard - "@rollup/pluginutils@npm:^5.0.2, @rollup/pluginutils@npm:^5.0.5, @rollup/pluginutils@npm:^5.1.0": version: 5.1.0 resolution: "@rollup/pluginutils@npm:5.1.0" @@ -18528,13 +18348,6 @@ __metadata: languageName: node linkType: hard -"@rollup/rollup-android-arm-eabi@npm:4.20.0": - version: 4.20.0 - resolution: "@rollup/rollup-android-arm-eabi@npm:4.20.0" - conditions: os=android & cpu=arm - languageName: node - linkType: hard - "@rollup/rollup-android-arm-eabi@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-android-arm-eabi@npm:4.46.2" @@ -18542,13 +18355,6 @@ __metadata: 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" - conditions: os=android & cpu=arm64 - languageName: node - linkType: hard - "@rollup/rollup-android-arm64@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-android-arm64@npm:4.46.2" @@ -18556,13 +18362,6 @@ __metadata: 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" - conditions: os=darwin & cpu=arm64 - languageName: node - linkType: hard - "@rollup/rollup-darwin-arm64@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-darwin-arm64@npm:4.46.2" @@ -18570,13 +18369,6 @@ __metadata: 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" - conditions: os=darwin & cpu=x64 - languageName: node - linkType: hard - "@rollup/rollup-darwin-x64@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-darwin-x64@npm:4.46.2" @@ -18598,13 +18390,6 @@ __metadata: 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" - conditions: os=linux & cpu=arm & libc=glibc - languageName: node - linkType: hard - "@rollup/rollup-linux-arm-gnueabihf@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.46.2" @@ -18612,13 +18397,6 @@ __metadata: 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" - conditions: os=linux & cpu=arm & libc=musl - languageName: node - linkType: hard - "@rollup/rollup-linux-arm-musleabihf@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.46.2" @@ -18626,13 +18404,6 @@ __metadata: 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" - conditions: os=linux & cpu=arm64 & libc=glibc - languageName: node - linkType: hard - "@rollup/rollup-linux-arm64-gnu@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.46.2" @@ -18640,13 +18411,6 @@ __metadata: 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" - conditions: os=linux & cpu=arm64 & libc=musl - languageName: node - linkType: hard - "@rollup/rollup-linux-arm64-musl@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-linux-arm64-musl@npm:4.46.2" @@ -18661,13 +18425,6 @@ __metadata: 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" - conditions: os=linux & cpu=ppc64 & libc=glibc - languageName: node - linkType: hard - "@rollup/rollup-linux-ppc64-gnu@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-linux-ppc64-gnu@npm:4.46.2" @@ -18675,13 +18432,6 @@ __metadata: 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" - conditions: os=linux & cpu=riscv64 & libc=glibc - languageName: node - linkType: hard - "@rollup/rollup-linux-riscv64-gnu@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.46.2" @@ -18696,13 +18446,6 @@ __metadata: 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" - conditions: os=linux & cpu=s390x & libc=glibc - languageName: node - linkType: hard - "@rollup/rollup-linux-s390x-gnu@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.46.2" @@ -18710,13 +18453,6 @@ __metadata: 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" - conditions: os=linux & cpu=x64 & libc=glibc - languageName: node - linkType: hard - "@rollup/rollup-linux-x64-gnu@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-linux-x64-gnu@npm:4.46.2" @@ -18724,13 +18460,6 @@ __metadata: 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" - conditions: os=linux & cpu=x64 & libc=musl - languageName: node - linkType: hard - "@rollup/rollup-linux-x64-musl@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-linux-x64-musl@npm:4.46.2" @@ -18738,13 +18467,6 @@ __metadata: 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" - conditions: os=win32 & cpu=arm64 - languageName: node - linkType: hard - "@rollup/rollup-win32-arm64-msvc@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.46.2" @@ -18752,13 +18474,6 @@ __metadata: 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" - conditions: os=win32 & cpu=ia32 - languageName: node - linkType: hard - "@rollup/rollup-win32-ia32-msvc@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.46.2" @@ -18766,13 +18481,6 @@ __metadata: 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" - conditions: os=win32 & cpu=x64 - languageName: node - linkType: hard - "@rollup/rollup-win32-x64-msvc@npm:4.46.2": version: 4.46.2 resolution: "@rollup/rollup-win32-x64-msvc@npm:4.46.2" @@ -22316,20 +22024,13 @@ __metadata: languageName: node linkType: hard -"@types/estree@npm:*, @types/estree@npm:1.0.5, @types/estree@npm:^1.0.0": +"@types/estree@npm:*, @types/estree@npm:^1.0.0": version: 1.0.5 resolution: "@types/estree@npm:1.0.5" checksum: 10c0/b3b0e334288ddb407c7b3357ca67dbee75ee22db242ca7c56fe27db4e1a31989cb8af48a84dd401deb787fe10cc6b2ab1ee82dc4783be87ededbe3d53c79c70d languageName: node linkType: hard -"@types/estree@npm:0.0.39": - version: 0.0.39 - resolution: "@types/estree@npm:0.0.39" - checksum: 10c0/f0af6c95ac1988c4827964bd9d3b51d24da442e2188943f6dfcb1e1559103d5d024d564b2e9d3f84c53714a02a0a7435c7441138eb63d9af5de4dfc66cdc0d92 - languageName: node - linkType: hard - "@types/estree@npm:1.0.8, @types/estree@npm:^1.0.6, @types/estree@npm:^1.0.8": version: 1.0.8 resolution: "@types/estree@npm:1.0.8" @@ -23384,15 +23085,6 @@ __metadata: languageName: node linkType: hard -"@types/resolve@npm:1.17.1": - version: 1.17.1 - resolution: "@types/resolve@npm:1.17.1" - dependencies: - "@types/node": "npm:*" - checksum: 10c0/6eeb9c27d99bf4b393bf168d43208f63e78cefca5644662a0bdb2bdbf8352386f4f3aca66add138fc41bce5f66fd48a0de430a1473f11b612fbed0375ae78031 - languageName: node - linkType: hard - "@types/resolve@npm:^1.20.2": version: 1.20.6 resolution: "@types/resolve@npm:1.20.6" @@ -25143,16 +24835,6 @@ __metadata: languageName: node linkType: hard -"@wyw-in-js/processor-utils@npm:0.5.4, @wyw-in-js/processor-utils@npm:^0.5.3": - version: 0.5.4 - resolution: "@wyw-in-js/processor-utils@npm:0.5.4" - dependencies: - "@babel/generator": "npm:^7.23.5" - "@wyw-in-js/shared": "npm:0.5.4" - checksum: 10c0/f6f34f780d116bc5fc976f7fa550d297795cef9447d8c531323886fa33e4bac6e1a80db1115e63f928b9fb0e677fdb28e00228c1a13631572341dbffbf9aecd0 - languageName: node - linkType: hard - "@wyw-in-js/processor-utils@npm:0.6.0": version: 0.6.0 resolution: "@wyw-in-js/processor-utils@npm:0.6.0" @@ -25163,6 +24845,26 @@ __metadata: languageName: node linkType: hard +"@wyw-in-js/processor-utils@npm:0.7.0": + version: 0.7.0 + resolution: "@wyw-in-js/processor-utils@npm:0.7.0" + dependencies: + "@babel/generator": "npm:^7.23.5" + "@wyw-in-js/shared": "npm:0.7.0" + checksum: 10c0/8b9e82f42beb4ae04ecf630f407d9d22421f620204cac1d7083712ffb925880dbbfab7e36da8b4848817b19a95eb16e3bf9bdc9cf9a65bab84fbb9c7f2aa24b0 + languageName: node + linkType: hard + +"@wyw-in-js/processor-utils@npm:^0.5.3": + version: 0.5.4 + resolution: "@wyw-in-js/processor-utils@npm:0.5.4" + dependencies: + "@babel/generator": "npm:^7.23.5" + "@wyw-in-js/shared": "npm:0.5.4" + checksum: 10c0/f6f34f780d116bc5fc976f7fa550d297795cef9447d8c531323886fa33e4bac6e1a80db1115e63f928b9fb0e677fdb28e00228c1a13631572341dbffbf9aecd0 + languageName: node + linkType: hard + "@wyw-in-js/shared@npm:0.5.4, @wyw-in-js/shared@npm:^0.5.3": version: 0.5.4 resolution: "@wyw-in-js/shared@npm:0.5.4" @@ -25185,26 +24887,14 @@ __metadata: languageName: node linkType: hard -"@wyw-in-js/transform@npm:0.5.4": - version: 0.5.4 - resolution: "@wyw-in-js/transform@npm:0.5.4" +"@wyw-in-js/shared@npm:0.7.0": + version: 0.7.0 + resolution: "@wyw-in-js/shared@npm:0.7.0" dependencies: - "@babel/core": "npm:^7.23.5" - "@babel/generator": "npm:^7.23.5" - "@babel/helper-module-imports": "npm:^7.22.15" - "@babel/plugin-transform-modules-commonjs": "npm:^7.23.3" - "@babel/template": "npm:^7.22.15" - "@babel/traverse": "npm:^7.23.5" - "@babel/types": "npm:^7.23.5" - "@wyw-in-js/processor-utils": "npm:0.5.4" - "@wyw-in-js/shared": "npm:0.5.4" - babel-merge: "npm:^3.0.0" - cosmiconfig: "npm:^8.0.0" - happy-dom: "npm:^12.5.0" - source-map: "npm:^0.7.4" - stylis: "npm:^4.3.0" - ts-invariant: "npm:^0.10.3" - checksum: 10c0/ec083911264f0e607f3b29afe3d8b661efa69b4563580786ac47fe425ee32679293930fa0e78dc5269948035fb25dc0c1a4c2c8b0963c5fd396e406b1110f79b + debug: "npm:^4.3.4" + find-up: "npm:^5.0.0" + minimatch: "npm:^9.0.3" + checksum: 10c0/0f5603929c390e28bb8512460f7d45e698dc00fc06f926ca901b8f1efea49575a67de3991c6413840972428d0f865209025bd02e02304001e135eded445be40b languageName: node linkType: hard @@ -25231,15 +24921,38 @@ __metadata: languageName: node linkType: hard -"@wyw-in-js/vite@npm:^0.5.3": - version: 0.5.4 - resolution: "@wyw-in-js/vite@npm:0.5.4" +"@wyw-in-js/transform@npm:0.7.0": + version: 0.7.0 + resolution: "@wyw-in-js/transform@npm:0.7.0" dependencies: - "@wyw-in-js/shared": "npm:0.5.4" - "@wyw-in-js/transform": "npm:0.5.4" + "@babel/core": "npm:^7.23.5" + "@babel/generator": "npm:^7.23.5" + "@babel/helper-module-imports": "npm:^7.22.15" + "@babel/plugin-transform-modules-commonjs": "npm:^7.23.3" + "@babel/template": "npm:^7.22.15" + "@babel/traverse": "npm:^7.23.5" + "@babel/types": "npm:^7.23.5" + "@wyw-in-js/processor-utils": "npm:0.7.0" + "@wyw-in-js/shared": "npm:0.7.0" + babel-merge: "npm:^3.0.0" + cosmiconfig: "npm:^8.0.0" + happy-dom: "npm:^15.11.0" + source-map: "npm:^0.7.4" + stylis: "npm:^4.3.0" + ts-invariant: "npm:^0.10.3" + checksum: 10c0/643dd854759eef29a82161d89a803e9f8e414917d0fcc4ce3aecb3f5da7c0ba85afae205fd2ee155807ff92ad1644a74ca557ef7c6b210be869099f08bd5543e + languageName: node + linkType: hard + +"@wyw-in-js/vite@npm:^0.7.0": + version: 0.7.0 + resolution: "@wyw-in-js/vite@npm:0.7.0" + dependencies: + "@wyw-in-js/shared": "npm:0.7.0" + "@wyw-in-js/transform": "npm:0.7.0" peerDependencies: vite: ">=3.2.7" - checksum: 10c0/6dfbdef26a8bf1efb837662fe5f3c6f23b3279c8f565f936fe435615a3fb2d5d5b1ff9277e5ab08295918f2ea52539f9bc6df22cb493c059db16bbda7f090732 + checksum: 10c0/34cc1fd2c3a997866aecc58111debe2663442bb7badb77e21f9ad23bd8cf75c273f3c7b66017cd3b681dfde05c4954a9d6cad55558c16e087655a0e794194728 languageName: node linkType: hard @@ -28665,7 +28378,7 @@ __metadata: languageName: node linkType: hard -"builtin-modules@npm:^3.1.0, builtin-modules@npm:^3.3.0": +"builtin-modules@npm:^3.3.0": version: 3.3.0 resolution: "builtin-modules@npm:3.3.0" checksum: 10c0/2cb3448b4f7306dc853632a4fcddc95e8d4e4b9868c139400027b71938fc6806d4ff44007deffb362ac85724bd40c2c6452fb6a0aa4531650eeddb98d8e5ee8a @@ -29446,7 +29159,7 @@ __metadata: languageName: node linkType: hard -"ci-info@npm:^3.2.0, ci-info@npm:^3.7.0, ci-info@npm:^3.8.0": +"ci-info@npm:^3.2.0, ci-info@npm:^3.7.0": version: 3.9.0 resolution: "ci-info@npm:3.9.0" checksum: 10c0/6f0109e36e111684291d46123d491bc4e7b7a1934c3a20dea28cba89f1d4a03acd892f5f6a81ed3855c38647e285a150e3c9ba062e38943bef57fee6c1554c3a @@ -31542,13 +31255,6 @@ __metadata: languageName: node linkType: hard -"dataloader@npm:^2.0.0": - version: 2.2.3 - resolution: "dataloader@npm:2.2.3" - checksum: 10c0/9b9a056fbc863ca86da87d59e053e871e263b4966aa4d55e40d61a65e96815fae5530ca220629064ca5f8e3000c0c4ec93292e170c38ff393fb34256b4d7c1aa - languageName: node - linkType: hard - "date-fns-tz@npm:^2.0.0": version: 2.0.1 resolution: "date-fns-tz@npm:2.0.1" @@ -32883,16 +32589,6 @@ __metadata: languageName: node linkType: hard -"enquirer@npm:^2.3.6": - version: 2.4.1 - resolution: "enquirer@npm:2.4.1" - dependencies: - ansi-colors: "npm:^4.1.1" - strip-ansi: "npm:^6.0.1" - checksum: 10c0/43850479d7a51d36a9c924b518dcdc6373b5a8ae3401097d336b7b7e258324749d0ad37a1fcaa5706f04799baa05585cd7af19ebdf7667673e7694435fcea918 - languageName: node - linkType: hard - "enquirer@npm:~2.3.6": version: 2.3.6 resolution: "enquirer@npm:2.3.6" @@ -34673,14 +34369,7 @@ __metadata: languageName: node linkType: hard -"estree-walker@npm:^1.0.1": - version: 1.0.1 - resolution: "estree-walker@npm:1.0.1" - checksum: 10c0/fa9e5f8c1bbe8d01e314c0f03067b64a4f22d4c58410fc5237060d0c15b81e58c23921c41acc60abbdab490f1fdfcbd6408ede2d03ca704454272e0244d61a55 - languageName: node - linkType: hard - -"estree-walker@npm:^2.0.1, estree-walker@npm:^2.0.2": +"estree-walker@npm:^2.0.2": version: 2.0.2 resolution: "estree-walker@npm:2.0.2" checksum: 10c0/53a6c54e2019b8c914dc395890153ffdc2322781acf4bd7d1a32d7aedc1710807bdcd866ac133903d5629ec601fbb50abe8c2e5553c7f5a0afdd9b6af6c945af @@ -35245,19 +34934,6 @@ __metadata: languageName: node linkType: hard -"fast-glob@npm:^3.2.4": - version: 3.3.3 - resolution: "fast-glob@npm:3.3.3" - dependencies: - "@nodelib/fs.stat": "npm:^2.0.2" - "@nodelib/fs.walk": "npm:^1.2.3" - glob-parent: "npm:^5.1.2" - merge2: "npm:^1.3.0" - micromatch: "npm:^4.0.8" - checksum: 10c0/f6aaa141d0d3384cf73cbcdfc52f475ed293f6d5b65bfc5def368b09163a9f7e5ec2b3014d80f733c405f58e470ee0cc451c2937685045cddcdeaa24199c43fe - languageName: node - linkType: hard - "fast-json-patch@npm:^3.0.0-1": version: 3.1.1 resolution: "fast-json-patch@npm:3.1.1" @@ -37391,20 +37067,6 @@ __metadata: languageName: node linkType: hard -"happy-dom@npm:^12.5.0": - version: 12.10.3 - resolution: "happy-dom@npm:12.10.3" - dependencies: - css.escape: "npm:^1.5.1" - entities: "npm:^4.5.0" - iconv-lite: "npm:^0.6.3" - webidl-conversions: "npm:^7.0.0" - whatwg-encoding: "npm:^2.0.0" - whatwg-mimetype: "npm:^3.0.0" - checksum: 10c0/fbf8647e17c4af5c166d7c4b6963f4bbc9d1c279e94a4c77234b1fecca98c59989b894c7b186f5107e1062d40ffd84f12350b757f51330a5fc1c5228eb199517 - languageName: node - linkType: hard - "happy-dom@npm:^15.11.0": version: 15.11.7 resolution: "happy-dom@npm:15.11.7" @@ -39508,13 +39170,6 @@ __metadata: languageName: node linkType: hard -"is-module@npm:^1.0.0": - version: 1.0.0 - resolution: "is-module@npm:1.0.0" - checksum: 10c0/795a3914bcae7c26a1c23a1e5574c42eac13429625045737bf3e324ce865c0601d61aee7a5afbca1bee8cb300c7d9647e7dc98860c9bdbc3b7fdc51d8ac0bffc - languageName: node - linkType: hard - "is-negated-glob@npm:^1.0.0": version: 1.0.0 resolution: "is-negated-glob@npm:1.0.0" @@ -39687,15 +39342,6 @@ __metadata: languageName: node linkType: hard -"is-reference@npm:^1.2.1": - version: 1.2.1 - resolution: "is-reference@npm:1.2.1" - dependencies: - "@types/estree": "npm:*" - checksum: 10c0/7dc819fc8de7790264a0a5d531164f9f5b9ef5aa1cd05f35322d14db39c8a2ec78fd5d4bf57f9789f3ddd2b3abeea7728432b759636157a42db12a9e8c3b549b - languageName: node - linkType: hard - "is-reference@npm:^3.0.0": version: 3.0.2 resolution: "is-reference@npm:3.0.2" @@ -41179,17 +40825,6 @@ __metadata: languageName: node linkType: hard -"jest-worker@npm:^26.3.0": - version: 26.6.2 - resolution: "jest-worker@npm:26.6.2" - dependencies: - "@types/node": "npm:*" - merge-stream: "npm:^2.0.0" - supports-color: "npm:^7.0.0" - checksum: 10c0/07e4dba650381604cda253ab6d5837fe0279c8d68c25884995b45bfe149a7a1e1b5a97f304b4518f257dac2a9ddc1808d57d650649c3ab855e9e60cf824d2970 - languageName: node - linkType: hard - "jest-worker@npm:^27.4.5": version: 27.5.1 resolution: "jest-worker@npm:27.5.1" @@ -43003,7 +42638,7 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.25.3, magic-string@npm:^0.25.7": +"magic-string@npm:^0.25.3": version: 0.25.9 resolution: "magic-string@npm:0.25.9" dependencies: @@ -45531,7 +45166,7 @@ __metadata: languageName: node linkType: hard -"ms@npm:2.1.3, ms@npm:^2.0.0, ms@npm:^2.1.1, ms@npm:^2.1.2, ms@npm:^2.1.3": +"ms@npm:2.1.3, ms@npm:^2.0.0, ms@npm:^2.1.1, ms@npm:^2.1.3": version: 2.1.3 resolution: "ms@npm:2.1.3" checksum: 10c0/d924b57e7312b3b63ad21fc5b3dc0af5e78d61a1fc7cfb5457edaf26326bf62be5307cc87ffb6862ef1c2b33b0233cdb5d4f01c4c958cc0d660948b65a287a48 @@ -46544,7 +46179,7 @@ __metadata: languageName: node linkType: hard -"npm-packlist@npm:^2.1.2, npm-packlist@npm:^2.1.4": +"npm-packlist@npm:^2.1.4": version: 2.2.2 resolution: "npm-packlist@npm:2.2.2" dependencies: @@ -47747,7 +47382,7 @@ __metadata: languageName: node linkType: hard -"parse-json@npm:^5.0.0, parse-json@npm:^5.1.0, parse-json@npm:^5.2.0": +"parse-json@npm:^5.0.0, parse-json@npm:^5.2.0": version: 5.2.0 resolution: "parse-json@npm:5.2.0" dependencies: @@ -48387,7 +48022,7 @@ __metadata: languageName: node linkType: hard -"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.2.2, picomatch@npm:^2.2.3, picomatch@npm:^2.3.1": +"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.2.3, picomatch@npm:^2.3.1": version: 2.3.1 resolution: "picomatch@npm:2.3.1" checksum: 10c0/26c02b8d06f03206fc2ab8d16f19960f2ff9e81a658f831ecb656d8f17d9edc799e8364b1f4a7873e89d9702dff96204be0fa26fe4181f6843f040f819dac4be @@ -48459,7 +48094,7 @@ __metadata: languageName: node linkType: hard -"pirates@npm:^4.0.1, pirates@npm:^4.0.4, pirates@npm:^4.0.6": +"pirates@npm:^4.0.4, pirates@npm:^4.0.6": version: 4.0.6 resolution: "pirates@npm:4.0.6" checksum: 10c0/00d5fa51f8dded94d7429700fb91a0c1ead00ae2c7fd27089f0c5b63e6eca36197fe46384631872690a66f390c5e27198e99006ab77ae472692ab9c2ca903f36 @@ -51737,84 +51372,7 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^2.79.1": - version: 2.79.2 - resolution: "rollup@npm:2.79.2" - dependencies: - fsevents: "npm:~2.3.2" - dependenciesMeta: - fsevents: - optional: true - bin: - rollup: dist/bin/rollup - checksum: 10c0/bc3746c988d903c2211266ddc539379d53d92689b9cc5c2b4e3ae161689de9af491957a567c629b6cc81f48d0928a7591fc4c383fba68a48d2966c9fb8a2bce9 - languageName: node - linkType: hard - -"rollup@npm:^4.13.0": - version: 4.20.0 - resolution: "rollup@npm:4.20.0" - dependencies: - "@rollup/rollup-android-arm-eabi": "npm:4.20.0" - "@rollup/rollup-android-arm64": "npm:4.20.0" - "@rollup/rollup-darwin-arm64": "npm:4.20.0" - "@rollup/rollup-darwin-x64": "npm:4.20.0" - "@rollup/rollup-linux-arm-gnueabihf": "npm:4.20.0" - "@rollup/rollup-linux-arm-musleabihf": "npm:4.20.0" - "@rollup/rollup-linux-arm64-gnu": "npm:4.20.0" - "@rollup/rollup-linux-arm64-musl": "npm:4.20.0" - "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.20.0" - "@rollup/rollup-linux-riscv64-gnu": "npm:4.20.0" - "@rollup/rollup-linux-s390x-gnu": "npm:4.20.0" - "@rollup/rollup-linux-x64-gnu": "npm:4.20.0" - "@rollup/rollup-linux-x64-musl": "npm:4.20.0" - "@rollup/rollup-win32-arm64-msvc": "npm:4.20.0" - "@rollup/rollup-win32-ia32-msvc": "npm:4.20.0" - "@rollup/rollup-win32-x64-msvc": "npm:4.20.0" - "@types/estree": "npm:1.0.5" - 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-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-powerpc64le-gnu": - optional: true - "@rollup/rollup-linux-riscv64-gnu": - 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/9b23bf0e3380e64573a5f68a55274d5c7969036e55c19aab9fb4deea2e938d76769db70f3c95ee3783c24af152bea1772ad73f9e3625b6ffd4e600a788fe97ea - languageName: node - linkType: hard - -"rollup@npm:^4.40.0": +"rollup@npm:^4.13.0, rollup@npm:^4.40.0": version: 4.46.2 resolution: "rollup@npm:4.46.2" dependencies: @@ -54546,20 +54104,6 @@ __metadata: languageName: node linkType: hard -"terser@npm:^5.16.8": - version: 5.39.0 - resolution: "terser@npm:5.39.0" - dependencies: - "@jridgewell/source-map": "npm:^0.3.3" - acorn: "npm:^8.8.2" - commander: "npm:^2.20.0" - source-map-support: "npm:~0.5.20" - bin: - terser: bin/terser - checksum: 10c0/83326545ea1aecd6261030568b6191ccfa4cb6aa61d9ea41746a52479f50017a78b77e4725fbbc207c5df841ffa66a773c5ac33636e95c7ab94fe7e0379ae5c7 - languageName: node - linkType: hard - "terser@npm:^5.26.0": version: 5.31.5 resolution: "terser@npm:5.31.5" @@ -55685,7 +55229,6 @@ __metadata: "@opentelemetry/exporter-metrics-otlp-http": "npm:^0.200.0" "@opentelemetry/sdk-metrics": "npm:^2.0.0" "@opentelemetry/sdk-node": "npm:^0.202.0" - "@preconstruct/cli": "npm:2.8.12" "@prettier/sync": "npm:0.5.3" "@ptc-org/nestjs-query-core": "npm:4.4.0" "@ptc-org/nestjs-query-graphql": "patch:@ptc-org/nestjs-query-graphql@4.2.0#./patches/@ptc-org+nestjs-query-graphql+4.2.0.patch" @@ -55851,7 +55394,6 @@ __metadata: resolution: "twenty-shared@workspace:packages/twenty-shared" dependencies: "@babel/preset-env": "npm:^7.26.9" - "@preconstruct/cli": "npm:^2.8.12" "@prettier/sync": "npm:^0.5.2" "@sniptt/guards": "npm:^0.2.0" "@types/babel__preset-env": "npm:^7" @@ -55861,6 +55403,9 @@ __metadata: handlebars: "npm:^4.7.8" libphonenumber-js: "npm:^1.10.26" tsx: "npm:^4.19.3" + vite: "npm:^7.0.0" + vite-plugin-dts: "npm:3.8.1" + vite-tsconfig-paths: "npm:^4.2.1" zod: "npm:3.23.8" languageName: unknown linkType: soft @@ -56051,7 +55596,7 @@ __metadata: "@typescript-eslint/utils": "npm:^8.39.0" "@vitejs/plugin-react-swc": "npm:3.11.0" "@vitest/ui": "npm:1.4.0" - "@wyw-in-js/vite": "npm:^0.5.3" + "@wyw-in-js/vite": "npm:^0.7.0" "@yarnpkg/types": "npm:^4.0.0" add: "npm:^2.0.6" archiver: "npm:^7.0.1" @@ -57618,13 +57163,6 @@ __metadata: languageName: node linkType: hard -"v8-compile-cache@npm:^2.1.1": - version: 2.4.0 - resolution: "v8-compile-cache@npm:2.4.0" - checksum: 10c0/387851192545e7f4d691ba674de90890bba76c0f08ee4909ab862377f556221e75b3a361466490e201203401d64d7795f889882bdabc98b6f3c0bf1038a535be - languageName: node - linkType: hard - "v8-to-istanbul@npm:^9.0.1": version: 9.3.0 resolution: "v8-to-istanbul@npm:9.3.0" @@ -59596,7 +59134,7 @@ __metadata: languageName: node linkType: hard -"zod@npm:^3.21.4, zod@npm:^3.23.8": +"zod@npm:^3.23.8": version: 3.24.2 resolution: "zod@npm:3.24.2" checksum: 10c0/c638c7220150847f13ad90635b3e7d0321b36cce36f3fc6050ed960689594c949c326dfe2c6fa87c14b126ee5d370ccdebd6efb304f41ef5557a4aaca2824565