Fix frontend tests (#6585)

Fix a few broken tests
This commit is contained in:
Félix Malfait 2024-08-09 08:38:01 +02:00 committed by GitHub
parent ab12d9e8da
commit f2cc385710
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
17 changed files with 86 additions and 347 deletions

View File

@ -54,7 +54,6 @@
"@sentry/tracing": "^7.99.0",
"@sniptt/guards": "^0.2.0",
"@stoplight/elements": "^8.0.5",
"@storybook/icons": "^1.2.9",
"@swc/jest": "^0.2.29",
"@tabler/icons-react": "^2.44.0",
"@types/dompurify": "^3.0.5",
@ -189,7 +188,7 @@
"stripe": "^14.17.0",
"ts-key-enum": "^2.0.12",
"tslib": "^2.3.0",
"tsup": "^8.0.1",
"tsup": "^8.2.4",
"type-fest": "4.10.1",
"typeorm": "patch:typeorm@0.3.20#./packages/twenty-server/patches/typeorm+0.3.20.patch",
"typescript": "5.3.3",
@ -233,6 +232,7 @@
"@storybook/addon-onboarding": "^1.0.10",
"@storybook/blocks": "^7.6.3",
"@storybook/core-server": "7.6.3",
"@storybook/icons": "^1.2.9",
"@storybook/jest": "^0.2.3",
"@storybook/react": "^7.6.3",
"@storybook/react-vite": "^7.6.3",
@ -296,7 +296,7 @@
"danger": "^11.3.0",
"dotenv-cli": "^7.2.1",
"drizzle-kit": "^0.20.14",
"esbuild": "^0.20.2",
"esbuild": "^0.23.0",
"eslint": "^8.53.0",
"eslint-config-next": "14.0.4",
"eslint-config-prettier": "^9.1.0",
@ -328,14 +328,14 @@
"storybook": "^7.6.3",
"storybook-addon-cookie": "^3.2.0",
"storybook-addon-pseudo-states": "^2.1.2",
"storybook-dark-mode": "^4.0.1",
"storybook-dark-mode": "^3.0.3",
"supertest": "^6.1.3",
"ts-jest": "^29.1.1",
"ts-loader": "^9.2.3",
"ts-node": "10.9.1",
"tsconfig-paths": "^4.2.0",
"tsx": "^4.7.2",
"vite": "^5.0.0",
"tsx": "^4.17.0",
"vite": "^5.4.0",
"vite-plugin-checker": "^0.6.2",
"vite-plugin-dts": "3.8.1",
"vite-plugin-svgr": "^4.2.0",

View File

@ -15,7 +15,7 @@ type ContainerProps = {
const StyledContainer = styled.div<ContainerProps>`
align-items: center;
background-color: ${({ theme, isOn, color }) =>
isOn ? color ?? theme.color.blue : theme.background.quaternary};
isOn ? (color ?? theme.color.blue) : theme.background.quaternary};
border-radius: 10px;
cursor: pointer;
display: flex;

View File

@ -24,9 +24,9 @@ const jestConfig: JestConfigWithTsJest = {
extensionsToTreatAsEsm: ['.ts', '.tsx'],
coverageThreshold: {
global: {
statements: 64,
lines: 63,
functions: 55,
statements: 62,
lines: 61,
functions: 52,
},
},
collectCoverageFrom: ['<rootDir>/src/**/*.ts'],

View File

@ -23,7 +23,7 @@ import { loggerLink } from '../utils';
const logger = loggerLink(() => 'Twenty');
export interface Options<TCacheShape> extends ApolloClientOptions<TCacheShape> {
onError?: (err: GraphQLFormattedError | undefined) => void;
onError?: (err: readonly GraphQLFormattedError[] | undefined) => void;
onNetworkError?: (err: Error | ServerParseError | ServerError) => void;
onTokenPairChange?: (tokenPair: AuthTokenPair) => void;
onUnauthenticatedError?: () => void;
@ -80,9 +80,8 @@ export class ApolloFactory<TCacheShape> implements ApolloManager<TCacheShape> {
const errorLink = onError(
({ graphQLErrors, networkError, forward, operation }) => {
if (isDefined(graphQLErrors)) {
onErrorCb?.(graphQLErrors);
for (const graphQLError of graphQLErrors) {
onErrorCb?.(graphQLError);
if (graphQLError.message === 'Unauthorized') {
return fromPromise(
renewToken(uri, this.tokenPair)

View File

@ -11,7 +11,7 @@ import { useIsFieldReadOnly } from '@/object-record/record-field/hooks/useIsFiel
import { FieldDefinition } from '@/object-record/record-field/types/FieldDefinition';
import { FieldMetadata } from '@/object-record/record-field/types/FieldMetadata';
const entityId = 'entityId';
const recordId = 'recordId';
const getWrapper =
(fieldDefinition: FieldDefinition<FieldMetadata>) =>
@ -19,7 +19,7 @@ const getWrapper =
<FieldContext.Provider
value={{
fieldDefinition,
entityId,
recordId,
hotkeyScope: 'hotkeyScope',
isLabelIdentifier: false,
}}

View File

@ -1,5 +1,5 @@
import { ReactNode, useContext } from 'react';
import { styled } from '@linaria/react';
import { ReactNode, useContext } from 'react';
import { BORDER_COMMON, ThemeContext } from 'twenty-ui';
import { FieldContext } from '@/object-record/record-field/contexts/FieldContext';
@ -79,7 +79,7 @@ export const RecordTableCellBaseContainer = ({
const { hotkeyScope } = useContext(FieldContext);
const editHotkeyScope = { scope: hotkeyScope } ?? DEFAULT_CELL_SCOPE;
const editHotkeyScope = { scope: hotkeyScope ?? DEFAULT_CELL_SCOPE };
return (
<CellHotkeyScopeContext.Provider value={editHotkeyScope}>

View File

@ -7918,7 +7918,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"__typename": "fieldEdge",
"node": {
"__typename": "field",
"id": "af19a3ba-b725-4b9d-a0b7-8bf6b04fadbf",
"id": "5dcef112-ce1b-46c1-a33a-4d1394628c34",
"type": "DATE_TIME",
"name": "updatedAt",
"label": "Update date",
@ -7941,7 +7941,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"__typename": "fieldEdge",
"node": {
"__typename": "field",
"id": "af19a3ba-b725-4b9d-a0b7-8bf6b04fadds",
"id": "277d8939-1ead-4cdb-a560-854644219779",
"type": "MULTI_SELECT",
"name": "testMultiSelect",
"label": "Test Multi Select",
@ -7964,7 +7964,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"__typename": "fieldEdge",
"node": {
"__typename": "field",
"id": "tt929592-4f74-419e-8b26-6d216859078f",
"id": "f207dd14-f05e-4f29-b222-8993d4680f31",
"type": "RAW_JSON",
"name": "testRawJson",
"label": "Test Raw Json",
@ -7987,7 +7987,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"__typename": "fieldEdge",
"node": {
"__typename": "field",
"id": "vv929592-4f74-419e-8b26-6d216859078f",
"id": "81db846a-a2f9-4b31-8931-81fac5cdd1b6",
"type": "RATING",
"name": "testRating",
"label": "Rating",

View File

@ -266,7 +266,7 @@ const customObjectMetadataItemEdge: ObjectEdge = {
color: 'yellow',
},
{
id: '3',
id: '6f6e1421-8a42-4d4a-bf76-465b5f84b6d2',
value: 'HIGH',
label: 'High',
color: 'red',

View File

@ -1,6 +1,6 @@
import { defineConfig } from 'tsup';
import svgr from 'esbuild-plugin-svgr';
import { Config } from '@svgr/core';
import svgr from 'esbuild-plugin-svgr';
import { defineConfig } from 'tsup';
const template: Config['template'] = (variables, { tpl }) => {
return tpl`

View File

@ -57,8 +57,8 @@ export const computePgGraphQLError = (
const error = errors[0];
const errorMessage = error?.message;
const mappedErrorKey = Object.keys(pgGraphQLErrorMapping).find(
(key) => errorMessage?.includes(key),
const mappedErrorKey = Object.keys(pgGraphQLErrorMapping).find((key) =>
errorMessage?.includes(key),
);
const mappedError = mappedErrorKey

View File

@ -405,9 +405,9 @@ export class TimelineMessagingService {
messageThreadIdsForWhichWorkspaceMemberIsNotInParticipants.includes(
messageThreadId,
)
? threadVisibilityByThreadIdForWhichWorkspaceMemberIsNotInParticipants?.[
? (threadVisibilityByThreadIdForWhichWorkspaceMemberIsNotInParticipants?.[
messageThreadId
] ?? MessageChannelVisibility.METADATA
] ?? MessageChannelVisibility.METADATA)
: MessageChannelVisibility.SHARE_EVERYTHING;
return threadVisibilityAcc;

View File

@ -63,9 +63,12 @@ export class MessageQueueCoreModule extends ConfigurableModuleClass {
const driverProvider: Provider = {
provide: QUEUE_DRIVER,
useFactory: async (...args: any[]) => {
const config = await options.useFactory!(...args);
if (options.useFactory) {
const config = await options.useFactory(...args);
return this.createDriver(config);
return this.createDriver(config);
}
throw new Error('useFactory is not defined');
},
inject: options.inject || [],
};

View File

@ -7,8 +7,10 @@ import compact from 'lodash.compact';
import { Any, EntityManager, Repository } from 'typeorm';
import { ObjectRecordCreateEvent } from 'src/engine/integrations/event-emitter/types/object-record-create.event';
import { FieldActorSource } from 'src/engine/metadata-modules/field-metadata/composite-types/actor.composite-type';
import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity';
import { InjectObjectMetadataRepository } from 'src/engine/object-metadata-repository/object-metadata-repository.decorator';
import { TwentyORMGlobalManager } from 'src/engine/twenty-orm/twenty-orm-global.manager';
import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-object-ids';
import { ConnectedAccountWorkspaceEntity } from 'src/modules/connected-account/standard-objects/connected-account.workspace-entity';
import { CONTACTS_CREATION_BATCH_SIZE } from 'src/modules/contact-creation-manager/constants/contacts-creation-batch-size.constant';
@ -22,8 +24,6 @@ import { PersonWorkspaceEntity } from 'src/modules/person/standard-objects/perso
import { WorkspaceMemberRepository } from 'src/modules/workspace-member/repositories/workspace-member.repository';
import { WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/standard-objects/workspace-member.workspace-entity';
import { isWorkEmail } from 'src/utils/is-work-email';
import { FieldActorSource } from 'src/engine/metadata-modules/field-metadata/composite-types/actor.composite-type';
import { TwentyORMGlobalManager } from 'src/engine/twenty-orm/twenty-orm-global.manager';
@Injectable()
export class CreateCompanyAndContactService {
@ -105,7 +105,7 @@ export class CreateCompanyAndContactService {
filteredContactsToCreateWithCompanyDomainNames
.filter((participant) => participant.companyDomainName)
.map((participant) => ({
domainName: participant.companyDomainName!,
domainName: participant.companyDomainName,
createdBySource: source,
createdByWorkspaceMember: connectedAccount.accountOwner,
})),
@ -196,7 +196,7 @@ export class CreateCompanyAndContactService {
name: 'person.created',
workspaceId,
// FixMe: TypeORM typing issue... id is always returned when using save
recordId: createdPerson.id!,
recordId: createdPerson.id as string,
objectMetadata,
properties: {
after: createdPerson,

View File

@ -14,7 +14,7 @@ import { WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/sta
import { computeDisplayName } from 'src/utils/compute-display-name';
type CompanyToCreate = {
domainName: string;
domainName: string | undefined;
createdBySource: FieldActorSource;
createdByWorkspaceMember?: WorkspaceMemberWorkspaceEntity | null;
};
@ -186,7 +186,9 @@ export class CreateCompanyService {
return lastCompanyPosition ?? 0;
}
private async getCompanyInfoFromDomainName(domainName: string): Promise<{
private async getCompanyInfoFromDomainName(
domainName: string | undefined,
): Promise<{
name: string;
city: string;
}> {
@ -196,12 +198,12 @@ export class CreateCompanyService {
const data = response.data;
return {
name: data.name ?? getCompanyNameFromDomainName(domainName),
name: data.name ?? getCompanyNameFromDomainName(domainName ?? ''),
city: data.city,
};
} catch (e) {
return {
name: getCompanyNameFromDomainName(domainName),
name: getCompanyNameFromDomainName(domainName ?? ''),
city: '',
};
}

View File

@ -1,8 +1,8 @@
import { NestFactory } from '@nestjs/core';
import { shouldFilterException } from 'src/engine/utils/global-exception-handler.util';
import { ExceptionHandlerService } from 'src/engine/integrations/exception-handler/exception-handler.service';
import { LoggerService } from 'src/engine/integrations/logger/logger.service';
import { shouldFilterException } from 'src/engine/utils/global-exception-handler.util';
import { QueueWorkerModule } from 'src/queue-worker/queue-worker.module';
async function bootstrap() {
@ -18,7 +18,7 @@ async function bootstrap() {
exceptionHandlerService = app.get(ExceptionHandlerService);
// Inject our logger
app.useLogger(loggerService!);
app.useLogger(loggerService ?? false);
} catch (err) {
loggerService?.error(err?.message, err?.name);

View File

@ -1,13 +1,6 @@
import { DocSearch } from '@docsearch/react';
import { StoredDocSearchHit } from '@docsearch/react/dist/esm/types';
import { env } from 'next-runtime-env';
interface AlgoliaHit extends StoredDocSearchHit {
_snippetResult?: {
content: { value: string };
};
}
interface AlgoliaDocSearchProps {
pathname: string;
}
@ -18,7 +11,7 @@ export const AlgoliaDocSearch = ({ pathname }: AlgoliaDocSearchProps) => {
: 'developer';
return (
<DocSearch
hitComponent={({ hit }: { hit: AlgoliaHit }) => (
hitComponent={({ hit }: { hit: any }) => (
<section className="DocSearch-Hits">
<a href={hit.url}>
<div className="DocSearch-Hit-Container">

340
yarn.lock
View File

@ -4616,13 +4616,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/aix-ppc64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/aix-ppc64@npm:0.20.2"
conditions: os=aix & cpu=ppc64
languageName: node
linkType: hard
"@esbuild/aix-ppc64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/aix-ppc64@npm:0.21.5"
@ -4651,13 +4644,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/android-arm64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/android-arm64@npm:0.20.2"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard
"@esbuild/android-arm64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/android-arm64@npm:0.21.5"
@ -4686,13 +4672,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/android-arm@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/android-arm@npm:0.20.2"
conditions: os=android & cpu=arm
languageName: node
linkType: hard
"@esbuild/android-arm@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/android-arm@npm:0.21.5"
@ -4721,13 +4700,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/android-x64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/android-x64@npm:0.20.2"
conditions: os=android & cpu=x64
languageName: node
linkType: hard
"@esbuild/android-x64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/android-x64@npm:0.21.5"
@ -4756,13 +4728,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/darwin-arm64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/darwin-arm64@npm:0.20.2"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@esbuild/darwin-arm64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/darwin-arm64@npm:0.21.5"
@ -4791,13 +4756,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/darwin-x64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/darwin-x64@npm:0.20.2"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@esbuild/darwin-x64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/darwin-x64@npm:0.21.5"
@ -4826,13 +4784,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/freebsd-arm64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/freebsd-arm64@npm:0.20.2"
conditions: os=freebsd & cpu=arm64
languageName: node
linkType: hard
"@esbuild/freebsd-arm64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/freebsd-arm64@npm:0.21.5"
@ -4861,13 +4812,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/freebsd-x64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/freebsd-x64@npm:0.20.2"
conditions: os=freebsd & cpu=x64
languageName: node
linkType: hard
"@esbuild/freebsd-x64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/freebsd-x64@npm:0.21.5"
@ -4896,13 +4840,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-arm64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/linux-arm64@npm:0.20.2"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard
"@esbuild/linux-arm64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/linux-arm64@npm:0.21.5"
@ -4931,13 +4868,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-arm@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/linux-arm@npm:0.20.2"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
"@esbuild/linux-arm@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/linux-arm@npm:0.21.5"
@ -4966,13 +4896,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-ia32@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/linux-ia32@npm:0.20.2"
conditions: os=linux & cpu=ia32
languageName: node
linkType: hard
"@esbuild/linux-ia32@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/linux-ia32@npm:0.21.5"
@ -5001,13 +4924,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-loong64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/linux-loong64@npm:0.20.2"
conditions: os=linux & cpu=loong64
languageName: node
linkType: hard
"@esbuild/linux-loong64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/linux-loong64@npm:0.21.5"
@ -5036,13 +4952,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-mips64el@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/linux-mips64el@npm:0.20.2"
conditions: os=linux & cpu=mips64el
languageName: node
linkType: hard
"@esbuild/linux-mips64el@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/linux-mips64el@npm:0.21.5"
@ -5071,13 +4980,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-ppc64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/linux-ppc64@npm:0.20.2"
conditions: os=linux & cpu=ppc64
languageName: node
linkType: hard
"@esbuild/linux-ppc64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/linux-ppc64@npm:0.21.5"
@ -5106,13 +5008,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-riscv64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/linux-riscv64@npm:0.20.2"
conditions: os=linux & cpu=riscv64
languageName: node
linkType: hard
"@esbuild/linux-riscv64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/linux-riscv64@npm:0.21.5"
@ -5141,13 +5036,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-s390x@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/linux-s390x@npm:0.20.2"
conditions: os=linux & cpu=s390x
languageName: node
linkType: hard
"@esbuild/linux-s390x@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/linux-s390x@npm:0.21.5"
@ -5176,13 +5064,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-x64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/linux-x64@npm:0.20.2"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard
"@esbuild/linux-x64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/linux-x64@npm:0.21.5"
@ -5211,13 +5092,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/netbsd-x64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/netbsd-x64@npm:0.20.2"
conditions: os=netbsd & cpu=x64
languageName: node
linkType: hard
"@esbuild/netbsd-x64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/netbsd-x64@npm:0.21.5"
@ -5253,13 +5127,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/openbsd-x64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/openbsd-x64@npm:0.20.2"
conditions: os=openbsd & cpu=x64
languageName: node
linkType: hard
"@esbuild/openbsd-x64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/openbsd-x64@npm:0.21.5"
@ -5288,13 +5155,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/sunos-x64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/sunos-x64@npm:0.20.2"
conditions: os=sunos & cpu=x64
languageName: node
linkType: hard
"@esbuild/sunos-x64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/sunos-x64@npm:0.21.5"
@ -5323,13 +5183,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/win32-arm64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/win32-arm64@npm:0.20.2"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
"@esbuild/win32-arm64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/win32-arm64@npm:0.21.5"
@ -5358,13 +5211,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/win32-ia32@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/win32-ia32@npm:0.20.2"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard
"@esbuild/win32-ia32@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/win32-ia32@npm:0.21.5"
@ -5393,13 +5239,6 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/win32-x64@npm:0.20.2":
version: 0.20.2
resolution: "@esbuild/win32-x64@npm:0.20.2"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@esbuild/win32-x64@npm:0.21.5":
version: 0.21.5
resolution: "@esbuild/win32-x64@npm:0.21.5"
@ -13648,6 +13487,17 @@ __metadata:
languageName: node
linkType: hard
"@storybook/addons@npm:^7.0.0":
version: 7.6.20
resolution: "@storybook/addons@npm:7.6.20"
dependencies:
"@storybook/manager-api": "npm:7.6.20"
"@storybook/preview-api": "npm:7.6.20"
"@storybook/types": "npm:7.6.20"
checksum: 10c0/e05d797e4871258925988446fddde662b9086aba71d4351c25f3cce6d64e3b7b5a22d7879db1d0b70f7c81fa9c41a70f2be2309564574f729cea1f3153bb6579
languageName: node
linkType: hard
"@storybook/blocks@npm:7.6.20, @storybook/blocks@npm:^7.6.3":
version: 7.6.20
resolution: "@storybook/blocks@npm:7.6.20"
@ -13885,7 +13735,7 @@ __metadata:
languageName: node
linkType: hard
"@storybook/components@npm:7.6.20":
"@storybook/components@npm:7.6.20, @storybook/components@npm:^7.0.0":
version: 7.6.20
resolution: "@storybook/components@npm:7.6.20"
dependencies:
@ -13906,15 +13756,6 @@ __metadata:
languageName: node
linkType: hard
"@storybook/components@npm:^8.0.0":
version: 8.2.8
resolution: "@storybook/components@npm:8.2.8"
peerDependencies:
storybook: ^8.2.8
checksum: 10c0/6be24c9fac90673e5a061794007a3fad786c70537e850cec9ff294b92874682c43ad93ffa6af37f4697ddb10127f4ccb569f025ba831e4c345f55c3ac01e7bad
languageName: node
linkType: hard
"@storybook/core-client@npm:7.6.20":
version: 7.6.20
resolution: "@storybook/core-client@npm:7.6.20"
@ -13987,7 +13828,7 @@ __metadata:
languageName: node
linkType: hard
"@storybook/core-events@npm:7.6.20":
"@storybook/core-events@npm:7.6.20, @storybook/core-events@npm:^7.0.0":
version: 7.6.20
resolution: "@storybook/core-events@npm:7.6.20"
dependencies:
@ -14005,15 +13846,6 @@ __metadata:
languageName: node
linkType: hard
"@storybook/core-events@npm:^8.0.0":
version: 8.2.8
resolution: "@storybook/core-events@npm:8.2.8"
peerDependencies:
storybook: ^8.2.8
checksum: 10c0/971cbb6ded2cbc136f54a61f539a4c45b44c640126ee83ecf96fe657d3029cda44eb3ae31164beca6ef8d623cb06d0e7bd698377522479a9ab0f4c1b0f5596c6
languageName: node
linkType: hard
"@storybook/core-server@npm:7.6.20":
version: 7.6.20
resolution: "@storybook/core-server@npm:7.6.20"
@ -14211,7 +14043,7 @@ __metadata:
languageName: node
linkType: hard
"@storybook/icons@npm:^1.2.5, @storybook/icons@npm:^1.2.9":
"@storybook/icons@npm:^1.2.9":
version: 1.2.10
resolution: "@storybook/icons@npm:1.2.10"
peerDependencies:
@ -14248,7 +14080,7 @@ __metadata:
languageName: node
linkType: hard
"@storybook/manager-api@npm:7.6.20":
"@storybook/manager-api@npm:7.6.20, @storybook/manager-api@npm:^7.0.0":
version: 7.6.20
resolution: "@storybook/manager-api@npm:7.6.20"
dependencies:
@ -14270,15 +14102,6 @@ __metadata:
languageName: node
linkType: hard
"@storybook/manager-api@npm:^8.0.0":
version: 8.2.8
resolution: "@storybook/manager-api@npm:8.2.8"
peerDependencies:
storybook: ^8.2.8
checksum: 10c0/0c0f3a5337fc8efa965aa6232d2b2a1bb864c5ebaca85bcd124f83644e6d19ad6eecf9556974b04803a4856def17db801dcce4944a9830b8e9c7a8482df6842e
languageName: node
linkType: hard
"@storybook/manager@npm:7.6.20":
version: 7.6.20
resolution: "@storybook/manager@npm:7.6.20"
@ -14549,7 +14372,7 @@ __metadata:
languageName: node
linkType: hard
"@storybook/theming@npm:7.6.20":
"@storybook/theming@npm:7.6.20, @storybook/theming@npm:^7.0.0":
version: 7.6.20
resolution: "@storybook/theming@npm:7.6.20"
dependencies:
@ -14564,15 +14387,6 @@ __metadata:
languageName: node
linkType: hard
"@storybook/theming@npm:^8.0.0":
version: 8.2.8
resolution: "@storybook/theming@npm:8.2.8"
peerDependencies:
storybook: ^8.2.8
checksum: 10c0/d762d2715004ce7c1b9cdef3babf38ba4ac6fe53b7e9583aea737fa03d777f7a70fbc880fb4e7e7b64e7ff1471f3d2b67379a59170e0297015baa3e1beed02cf
languageName: node
linkType: hard
"@storybook/types@npm:7.6.20":
version: 7.6.20
resolution: "@storybook/types@npm:7.6.20"
@ -26254,86 +26068,6 @@ __metadata:
languageName: node
linkType: hard
"esbuild@npm:^0.20.2":
version: 0.20.2
resolution: "esbuild@npm:0.20.2"
dependencies:
"@esbuild/aix-ppc64": "npm:0.20.2"
"@esbuild/android-arm": "npm:0.20.2"
"@esbuild/android-arm64": "npm:0.20.2"
"@esbuild/android-x64": "npm:0.20.2"
"@esbuild/darwin-arm64": "npm:0.20.2"
"@esbuild/darwin-x64": "npm:0.20.2"
"@esbuild/freebsd-arm64": "npm:0.20.2"
"@esbuild/freebsd-x64": "npm:0.20.2"
"@esbuild/linux-arm": "npm:0.20.2"
"@esbuild/linux-arm64": "npm:0.20.2"
"@esbuild/linux-ia32": "npm:0.20.2"
"@esbuild/linux-loong64": "npm:0.20.2"
"@esbuild/linux-mips64el": "npm:0.20.2"
"@esbuild/linux-ppc64": "npm:0.20.2"
"@esbuild/linux-riscv64": "npm:0.20.2"
"@esbuild/linux-s390x": "npm:0.20.2"
"@esbuild/linux-x64": "npm:0.20.2"
"@esbuild/netbsd-x64": "npm:0.20.2"
"@esbuild/openbsd-x64": "npm:0.20.2"
"@esbuild/sunos-x64": "npm:0.20.2"
"@esbuild/win32-arm64": "npm:0.20.2"
"@esbuild/win32-ia32": "npm:0.20.2"
"@esbuild/win32-x64": "npm:0.20.2"
dependenciesMeta:
"@esbuild/aix-ppc64":
optional: true
"@esbuild/android-arm":
optional: true
"@esbuild/android-arm64":
optional: true
"@esbuild/android-x64":
optional: true
"@esbuild/darwin-arm64":
optional: true
"@esbuild/darwin-x64":
optional: true
"@esbuild/freebsd-arm64":
optional: true
"@esbuild/freebsd-x64":
optional: true
"@esbuild/linux-arm":
optional: true
"@esbuild/linux-arm64":
optional: true
"@esbuild/linux-ia32":
optional: true
"@esbuild/linux-loong64":
optional: true
"@esbuild/linux-mips64el":
optional: true
"@esbuild/linux-ppc64":
optional: true
"@esbuild/linux-riscv64":
optional: true
"@esbuild/linux-s390x":
optional: true
"@esbuild/linux-x64":
optional: true
"@esbuild/netbsd-x64":
optional: true
"@esbuild/openbsd-x64":
optional: true
"@esbuild/sunos-x64":
optional: true
"@esbuild/win32-arm64":
optional: true
"@esbuild/win32-ia32":
optional: true
"@esbuild/win32-x64":
optional: true
bin:
esbuild: bin/esbuild
checksum: 10c0/66398f9fb2c65e456a3e649747b39af8a001e47963b25e86d9c09d2a48d61aa641b27da0ce5cad63df95ad246105e1d83e7fee0e1e22a0663def73b1c5101112
languageName: node
linkType: hard
"esbuild@npm:^0.21.3":
version: 0.21.5
resolution: "esbuild@npm:0.21.5"
@ -45501,19 +45235,27 @@ __metadata:
languageName: node
linkType: hard
"storybook-dark-mode@npm:^4.0.1":
version: 4.0.2
resolution: "storybook-dark-mode@npm:4.0.2"
"storybook-dark-mode@npm:^3.0.3":
version: 3.0.3
resolution: "storybook-dark-mode@npm:3.0.3"
dependencies:
"@storybook/components": "npm:^8.0.0"
"@storybook/core-events": "npm:^8.0.0"
"@storybook/addons": "npm:^7.0.0"
"@storybook/components": "npm:^7.0.0"
"@storybook/core-events": "npm:^7.0.0"
"@storybook/global": "npm:^5.0.0"
"@storybook/icons": "npm:^1.2.5"
"@storybook/manager-api": "npm:^8.0.0"
"@storybook/theming": "npm:^8.0.0"
"@storybook/manager-api": "npm:^7.0.0"
"@storybook/theming": "npm:^7.0.0"
fast-deep-equal: "npm:^3.1.3"
memoizerific: "npm:^1.11.3"
checksum: 10c0/d4fc652ff080f6cc9f0effab0c989b66ead3372b267c2c328eef608f27c9822bf47aaa177405e42768b2de22f8a3e9a0280af50430efd0cf78bd6ed1f12c8b29
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
peerDependenciesMeta:
react:
optional: true
react-dom:
optional: true
checksum: 10c0/a69f4f6107587e68ac6421ac6c598fc086266683880fd53c4443e31225f0a1fc99c41de03340d1d177b4d2bc7399205fb5c14a45727a72d418c13aad3eb963fc
languageName: node
linkType: hard
@ -47214,7 +46956,7 @@ __metadata:
languageName: node
linkType: hard
"tsup@npm:^8.0.1":
"tsup@npm:^8.2.4":
version: 8.2.4
resolution: "tsup@npm:8.2.4"
dependencies:
@ -47266,7 +47008,7 @@ __metadata:
languageName: node
linkType: hard
"tsx@npm:^4.7.2":
"tsx@npm:^4.17.0":
version: 4.17.0
resolution: "tsx@npm:4.17.0"
dependencies:
@ -47612,7 +47354,7 @@ __metadata:
dotenv-cli: "npm:^7.2.1"
drizzle-kit: "npm:^0.20.14"
drizzle-orm: "npm:^0.29.3"
esbuild: "npm:^0.20.2"
esbuild: "npm:^0.23.0"
esbuild-plugin-svgr: "npm:^2.1.0"
eslint: "npm:^8.53.0"
eslint-config-next: "npm:14.0.4"
@ -47736,7 +47478,7 @@ __metadata:
storybook: "npm:^7.6.3"
storybook-addon-cookie: "npm:^3.2.0"
storybook-addon-pseudo-states: "npm:^2.1.2"
storybook-dark-mode: "npm:^4.0.1"
storybook-dark-mode: "npm:^3.0.3"
stripe: "npm:^14.17.0"
supertest: "npm:^6.1.3"
ts-jest: "npm:^29.1.1"
@ -47745,15 +47487,15 @@ __metadata:
ts-node: "npm:10.9.1"
tsconfig-paths: "npm:^4.2.0"
tslib: "npm:^2.3.0"
tsup: "npm:^8.0.1"
tsx: "npm:^4.7.2"
tsup: "npm:^8.2.4"
tsx: "npm:^4.17.0"
type-fest: "npm:4.10.1"
typeorm: "patch:typeorm@0.3.20#./packages/twenty-server/patches/typeorm+0.3.20.patch"
typescript: "npm:5.3.3"
use-context-selector: "npm:^2.0.0"
use-debounce: "npm:^10.0.0"
uuid: "npm:^9.0.0"
vite: "npm:^5.0.0"
vite: "npm:^5.4.0"
vite-plugin-checker: "npm:^0.6.2"
vite-plugin-dts: "npm:3.8.1"
vite-plugin-svgr: "npm:^4.2.0"
@ -49473,7 +49215,7 @@ __metadata:
languageName: node
linkType: hard
"vite@npm:^5.0.0":
"vite@npm:^5.0.0, vite@npm:^5.4.0":
version: 5.4.0
resolution: "vite@npm:5.4.0"
dependencies: