Skip to content

The open alternative to Salesforce, designed for AI.

Add "show company / people" view and "Notes" concept (#528)

Félix Malfait94a913a41f14
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 9696c8c8077..2311f191663 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -31,6 +31,7 @@
"!javascript",
"!json",
"!typescript",
+ "!typescriptreact",
"md",
"mdx"
],
diff --git a/front/craco.config.js b/front/craco.config.js
index 5df42ad7743..9f9efefe43b 100644
--- a/front/craco.config.js
+++ b/front/craco.config.js
@@ -1,12 +1,24 @@
const path = require("path");
module.exports = {
+ devServer: {
+ client: {
+ overlay: {
+ runtimeErrors: (error) => {
+ if (error.message === "ResizeObserver loop limit exceeded") {
+ return false;
+ }
+ return true;
+ },
+ },
+ }
+ },
webpack: {
alias: {
'~': path.resolve(__dirname, 'src'),
'@': path.resolve(__dirname, 'src/modules'),
'@testing': path.resolve(__dirname, 'src/testing'),
- }
+ },
},
jest: {
configure: {
diff --git a/front/package.json b/front/package.json
index 5d448f44eb7..75a30dd48a9 100644
--- a/front/package.json
+++ b/front/package.json
@@ -5,6 +5,8 @@
"dependencies": {
"@apollo/client": "^3.7.5",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
+ "@blocknote/core": "^0.8.2",
+ "@blocknote/react": "^0.8.2",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.5",
"@floating-ui/react": "^0.24.3",
diff --git a/front/src/App.tsx b/front/src/App.tsx
index 595825395ce..d4f190dea9c 100644
--- a/front/src/App.tsx
+++ b/front/src/App.tsx
@@ -17,6 +17,8 @@ import { People } from '~/pages/people/People';
import { SettingsProfile } from '~/pages/settings/SettingsProfile';
import { SettingsWorkspaceMembers } from '~/pages/settings/SettingsWorkspaceMembers';
+import { CompanyShow } from './pages/companies/CompanyShow';
+import { PersonShow } from './pages/people/PersonShow';
import { AppInternalHooks } from './AppInternalHooks';
/**
@@ -65,7 +67,13 @@ export function App() {
<Routes>
<Route path="" element={<Navigate to="/people" replace />} />
<Route path="people" element={<People />} />
+ <Route path="person/:personId" element={<PersonShow />} />
<Route path="companies" element={<Companies />} />
+ <Route
+ path="companies/:companyId"
+ element={<CompanyShow />}
+ />
+
<Route path="opportunities" element={<Opportunities />} />
<Route
path="settings/*"
diff --git a/front/src/generated/graphql.tsx b/front/src/generated/graphql.tsx
index e649527d879..5ad9319b298 100644
--- a/front/src/generated/graphql.tsx
+++ b/front/src/generated/graphql.tsx
@@ -206,24 +206,47 @@ export type CommentScalarWhereInput = {
export type CommentThread = {
__typename?: 'CommentThread';
+ author: User;
+ authorId: Scalars['String'];
+ body?: Maybe<Scalars['String']>;
commentThreadTargets?: Maybe<Array<CommentThreadTarget>>;
comments?: Maybe<Array<Comment>>;
createdAt: Scalars['DateTime'];
id: Scalars['ID'];
+ title?: Maybe<Scalars['String']>;
updatedAt: Scalars['DateTime'];
};
export type CommentThreadCreateInput = {
+ author: UserCreateNestedOneWithoutCommentThreadInput;
+ body?: InputMaybe<Scalars['String']>;
commentThreadTargets?: InputMaybe<CommentThreadTargetCreateNestedManyWithoutCommentThreadInput>;
comments?: InputMaybe<CommentCreateNestedManyWithoutCommentThreadInput>;
createdAt?: InputMaybe<Scalars['DateTime']>;
id?: InputMaybe<Scalars['String']>;
+ title?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type CommentThreadCreateManyAuthorInput = {
+ body?: InputMaybe<Scalars['String']>;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ title?: InputMaybe<Scalars['String']>;
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
+export type CommentThreadCreateManyAuthorInputEnvelope = {
+ data: Array<CommentThreadCreateManyAuthorInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
export type CommentThreadCreateManyWorkspaceInput = {
+ authorId: Scalars['String'];
+ body?: InputMaybe<Scalars['String']>;
createdAt?: InputMaybe<Scalars['DateTime']>;
id?: InputMaybe<Scalars['String']>;
+ title?: InputMaybe<Scalars['String']>;
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
@@ -232,10 +255,22 @@ export type CommentThreadCreateManyWorkspaceInputEnvelope = {
skipDuplicates?: InputMaybe<Scalars['Boolean']>;
};
+export type CommentThreadCreateNestedManyWithoutAuthorInput = {
+ connect?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<CommentThreadCreateOrConnectWithoutAuthorInput>>;
+ create?: InputMaybe<Array<CommentThreadCreateWithoutAuthorInput>>;
+ createMany?: InputMaybe<CommentThreadCreateManyAuthorInputEnvelope>;
+};
+
export type CommentThreadCreateNestedOneWithoutCommentsInput = {
connect?: InputMaybe<CommentThreadWhereUniqueInput>;
};
+export type CommentThreadCreateOrConnectWithoutAuthorInput = {
+ create: CommentThreadCreateWithoutAuthorInput;
+ where: CommentThreadWhereUniqueInput;
+};
+
export type CommentThreadCreateOrConnectWithoutCommentsInput = {
create: CommentThreadCreateWithoutCommentsInput;
where: CommentThreadWhereUniqueInput;
@@ -246,26 +281,56 @@ export type CommentThreadCreateOrConnectWithoutWorkspaceInput = {
where: CommentThreadWhereUniqueInput;
};
+export type CommentThreadCreateWithoutAuthorInput = {
+ body?: InputMaybe<Scalars['String']>;
+ commentThreadTargets?: InputMaybe<CommentThreadTargetCreateNestedManyWithoutCommentThreadInput>;
+ comments?: InputMaybe<CommentCreateNestedManyWithoutCommentThreadInput>;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ title?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
export type CommentThreadCreateWithoutCommentsInput = {
+ author: UserCreateNestedOneWithoutCommentThreadInput;
+ body?: InputMaybe<Scalars['String']>;
commentThreadTargets?: InputMaybe<CommentThreadTargetCreateNestedManyWithoutCommentThreadInput>;
createdAt?: InputMaybe<Scalars['DateTime']>;
id?: InputMaybe<Scalars['String']>;
+ title?: InputMaybe<Scalars['String']>;
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
export type CommentThreadCreateWithoutWorkspaceInput = {
+ author: UserCreateNestedOneWithoutCommentThreadInput;
+ body?: InputMaybe<Scalars['String']>;
commentThreadTargets?: InputMaybe<CommentThreadTargetCreateNestedManyWithoutCommentThreadInput>;
comments?: InputMaybe<CommentCreateNestedManyWithoutCommentThreadInput>;
createdAt?: InputMaybe<Scalars['DateTime']>;
id?: InputMaybe<Scalars['String']>;
+ title?: InputMaybe<Scalars['String']>;
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
+export type CommentThreadListRelationFilter = {
+ every?: InputMaybe<CommentThreadWhereInput>;
+ none?: InputMaybe<CommentThreadWhereInput>;
+ some?: InputMaybe<CommentThreadWhereInput>;
+};
+
+export type CommentThreadOrderByRelationAggregateInput = {
+ _count?: InputMaybe<SortOrder>;
+};
+
export type CommentThreadOrderByWithRelationInput = {
+ author?: InputMaybe<UserOrderByWithRelationInput>;
+ authorId?: InputMaybe<SortOrder>;
+ body?: InputMaybe<SortOrder>;
commentThreadTargets?: InputMaybe<CommentThreadTargetOrderByRelationAggregateInput>;
comments?: InputMaybe<CommentOrderByRelationAggregateInput>;
createdAt?: InputMaybe<SortOrder>;
id?: InputMaybe<SortOrder>;
+ title?: InputMaybe<SortOrder>;
updatedAt?: InputMaybe<SortOrder>;
};
@@ -275,9 +340,12 @@ export type CommentThreadRelationFilter = {
};
export enum CommentThreadScalarFieldEnum {
+ AuthorId = 'authorId',
+ Body = 'body',
CreatedAt = 'createdAt',
DeletedAt = 'deletedAt',
Id = 'id',
+ Title = 'title',
UpdatedAt = 'updatedAt',
WorkspaceId = 'workspaceId'
}
@@ -286,8 +354,11 @@ export type CommentThreadScalarWhereInput = {
AND?: InputMaybe<Array<CommentThreadScalarWhereInput>>;
NOT?: InputMaybe<Array<CommentThreadScalarWhereInput>>;
OR?: InputMaybe<Array<CommentThreadScalarWhereInput>>;
+ authorId?: InputMaybe<StringFilter>;
+ body?: InputMaybe<StringNullableFilter>;
createdAt?: InputMaybe<DateTimeFilter>;
id?: InputMaybe<StringFilter>;
+ title?: InputMaybe<StringNullableFilter>;
updatedAt?: InputMaybe<DateTimeFilter>;
};
@@ -418,24 +489,48 @@ export type CommentThreadTargetWhereUniqueInput = {
};
export type CommentThreadUpdateInput = {
+ author?: InputMaybe<UserUpdateOneRequiredWithoutCommentThreadNestedInput>;
+ body?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
commentThreadTargets?: InputMaybe<CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput>;
comments?: InputMaybe<CommentUpdateManyWithoutCommentThreadNestedInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ title?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
export type CommentThreadUpdateManyMutationInput = {
+ body?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ title?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
+export type CommentThreadUpdateManyWithWhereWithoutAuthorInput = {
+ data: CommentThreadUpdateManyMutationInput;
+ where: CommentThreadScalarWhereInput;
+};
+
export type CommentThreadUpdateManyWithWhereWithoutWorkspaceInput = {
data: CommentThreadUpdateManyMutationInput;
where: CommentThreadScalarWhereInput;
};
+export type CommentThreadUpdateManyWithoutAuthorNestedInput = {
+ connect?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<CommentThreadCreateOrConnectWithoutAuthorInput>>;
+ create?: InputMaybe<Array<CommentThreadCreateWithoutAuthorInput>>;
+ createMany?: InputMaybe<CommentThreadCreateManyAuthorInputEnvelope>;
+ delete?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<CommentThreadScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ set?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ update?: InputMaybe<Array<CommentThreadUpdateWithWhereUniqueWithoutAuthorInput>>;
+ updateMany?: InputMaybe<Array<CommentThreadUpdateManyWithWhereWithoutAuthorInput>>;
+ upsert?: InputMaybe<Array<CommentThreadUpsertWithWhereUniqueWithoutAuthorInput>>;
+};
+
export type CommentThreadUpdateManyWithoutWorkspaceNestedInput = {
connect?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
connectOrCreate?: InputMaybe<Array<CommentThreadCreateOrConnectWithoutWorkspaceInput>>;
@@ -458,26 +553,53 @@ export type CommentThreadUpdateOneRequiredWithoutCommentsNestedInput = {
upsert?: InputMaybe<CommentThreadUpsertWithoutCommentsInput>;
};
+export type CommentThreadUpdateWithWhereUniqueWithoutAuthorInput = {
+ data: CommentThreadUpdateWithoutAuthorInput;
+ where: CommentThreadWhereUniqueInput;
+};
+
export type CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput = {
data: CommentThreadUpdateWithoutWorkspaceInput;
where: CommentThreadWhereUniqueInput;
};
+export type CommentThreadUpdateWithoutAuthorInput = {
+ body?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ commentThreadTargets?: InputMaybe<CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput>;
+ comments?: InputMaybe<CommentUpdateManyWithoutCommentThreadNestedInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ title?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
export type CommentThreadUpdateWithoutCommentsInput = {
+ author?: InputMaybe<UserUpdateOneRequiredWithoutCommentThreadNestedInput>;
+ body?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
commentThreadTargets?: InputMaybe<CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ title?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
export type CommentThreadUpdateWithoutWorkspaceInput = {
+ author?: InputMaybe<UserUpdateOneRequiredWithoutCommentThreadNestedInput>;
+ body?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
commentThreadTargets?: InputMaybe<CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput>;
comments?: InputMaybe<CommentUpdateManyWithoutCommentThreadNestedInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ title?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
+export type CommentThreadUpsertWithWhereUniqueWithoutAuthorInput = {
+ create: CommentThreadCreateWithoutAuthorInput;
+ update: CommentThreadUpdateWithoutAuthorInput;
+ where: CommentThreadWhereUniqueInput;
+};
+
export type CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput = {
create: CommentThreadCreateWithoutWorkspaceInput;
update: CommentThreadUpdateWithoutWorkspaceInput;
@@ -493,10 +615,14 @@ export type CommentThreadWhereInput = {
AND?: InputMaybe<Array<CommentThreadWhereInput>>;
NOT?: InputMaybe<Array<CommentThreadWhereInput>>;
OR?: InputMaybe<Array<CommentThreadWhereInput>>;
+ author?: InputMaybe<UserRelationFilter>;
+ authorId?: InputMaybe<StringFilter>;
+ body?: InputMaybe<StringNullableFilter>;
commentThreadTargets?: InputMaybe<CommentThreadTargetListRelationFilter>;
comments?: InputMaybe<CommentListRelationFilter>;
createdAt?: InputMaybe<DateTimeFilter>;
id?: InputMaybe<StringFilter>;
+ title?: InputMaybe<StringNullableFilter>;
updatedAt?: InputMaybe<DateTimeFilter>;
};
@@ -651,7 +777,7 @@ export enum CommentableType {
export type Company = {
__typename?: 'Company';
- _commentCount: Scalars['Int'];
+ _commentThreadCount: Scalars['Int'];
accountOwner?: Maybe<User>;
accountOwnerId?: Maybe<Scalars['String']>;
address: Scalars['String'];
@@ -1270,13 +1396,14 @@ export type NullableStringFieldUpdateOperationsInput = {
export type Person = {
__typename?: 'Person';
- _commentCount: Scalars['Int'];
+ _commentThreadCount: Scalars['Int'];
city: Scalars['String'];
commentThreads: Array<CommentThread>;
comments: Array<Comment>;
company?: Maybe<Company>;
companyId?: Maybe<Scalars['String']>;
createdAt: Scalars['DateTime'];
+ displayName: Scalars['String'];
email: Scalars['String'];
firstName: Scalars['String'];
id: Scalars['ID'];
@@ -2303,6 +2430,8 @@ export type Query = {
findManyPipelineProgress: Array<PipelineProgress>;
findManyPipelineStage: Array<PipelineStage>;
findManyUser: Array<User>;
+ findUniqueCompany: Company;
+ findUniquePerson: Person;
};
@@ -2380,6 +2509,16 @@ export type QueryFindManyUserArgs = {
where?: InputMaybe<UserWhereInput>;
};
+
+export type QueryFindUniqueCompanyArgs = {
+ id: Scalars['String'];
+};
+
+
+export type QueryFindUniquePersonArgs = {
+ id: Scalars['String'];
+};
+
export enum QueryMode {
Default = 'default',
Insensitive = 'insensitive'
@@ -2432,6 +2571,7 @@ export type Telemetry = {
export type User = {
__typename?: 'User';
+ CommentThread?: Maybe<Array<CommentThread>>;
avatarUrl?: Maybe<Scalars['String']>;
comments?: Maybe<Array<Comment>>;
companies?: Maybe<Array<Company>>;
@@ -2451,6 +2591,12 @@ export type User = {
workspaceMember?: Maybe<WorkspaceMember>;
};
+export type UserCreateNestedOneWithoutCommentThreadInput = {
+ connect?: InputMaybe<UserWhereUniqueInput>;
+ connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutCommentThreadInput>;
+ create?: InputMaybe<UserCreateWithoutCommentThreadInput>;
+};
+
export type UserCreateNestedOneWithoutCommentsInput = {
connect?: InputMaybe<UserWhereUniqueInput>;
};
@@ -2465,6 +2611,11 @@ export type UserCreateNestedOneWithoutWorkspaceMemberInput = {
create?: InputMaybe<UserCreateWithoutWorkspaceMemberInput>;
};
+export type UserCreateOrConnectWithoutCommentThreadInput = {
+ create: UserCreateWithoutCommentThreadInput;
+ where: UserWhereUniqueInput;
+};
+
export type UserCreateOrConnectWithoutCommentsInput = {
create: UserCreateWithoutCommentsInput;
where: UserWhereUniqueInput;
@@ -2475,7 +2626,26 @@ export type UserCreateOrConnectWithoutWorkspaceMemberInput = {
where: UserWhereUniqueInput;
};
+export type UserCreateWithoutCommentThreadInput = {
+ avatarUrl?: InputMaybe<Scalars['String']>;
+ comments?: InputMaybe<CommentCreateNestedManyWithoutAuthorInput>;
+ companies?: InputMaybe<CompanyCreateNestedManyWithoutAccountOwnerInput>;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ disabled?: InputMaybe<Scalars['Boolean']>;
+ email: Scalars['String'];
+ emailVerified?: InputMaybe<Scalars['Boolean']>;
+ firstName?: InputMaybe<Scalars['String']>;
+ id?: InputMaybe<Scalars['String']>;
+ lastName?: InputMaybe<Scalars['String']>;
+ lastSeen?: InputMaybe<Scalars['DateTime']>;
+ locale: Scalars['String'];
+ metadata?: InputMaybe<Scalars['JSON']>;
+ phoneNumber?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
export type UserCreateWithoutCommentsInput = {
+ CommentThread?: InputMaybe<CommentThreadCreateNestedManyWithoutAuthorInput>;
avatarUrl?: InputMaybe<Scalars['String']>;
companies?: InputMaybe<CompanyCreateNestedManyWithoutAccountOwnerInput>;
createdAt?: InputMaybe<Scalars['DateTime']>;
@@ -2493,6 +2663,7 @@ export type UserCreateWithoutCommentsInput = {
};
export type UserCreateWithoutWorkspaceMemberInput = {
+ CommentThread?: InputMaybe<CommentThreadCreateNestedManyWithoutAuthorInput>;
avatarUrl?: InputMaybe<Scalars['String']>;
comments?: InputMaybe<CommentCreateNestedManyWithoutAuthorInput>;
companies?: InputMaybe<CompanyCreateNestedManyWithoutAccountOwnerInput>;
@@ -2516,6 +2687,7 @@ export type UserExists = {
};
export type UserOrderByWithRelationInput = {
+ CommentThread?: InputMaybe<CommentThreadOrderByRelationAggregateInput>;
avatarUrl?: InputMaybe<SortOrder>;
comments?: InputMaybe<CommentOrderByRelationAggregateInput>;
companies?: InputMaybe<CompanyOrderByRelationAggregateInput>;
@@ -2557,6 +2729,7 @@ export enum UserScalarFieldEnum {
}
export type UserUpdateInput = {
+ CommentThread?: InputMaybe<CommentThreadUpdateManyWithoutAuthorNestedInput>;
avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
comments?: InputMaybe<CommentUpdateManyWithoutAuthorNestedInput>;
companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
@@ -2574,6 +2747,14 @@ export type UserUpdateInput = {
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
+export type UserUpdateOneRequiredWithoutCommentThreadNestedInput = {
+ connect?: InputMaybe<UserWhereUniqueInput>;
+ connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutCommentThreadInput>;
+ create?: InputMaybe<UserCreateWithoutCommentThreadInput>;
+ update?: InputMaybe<UserUpdateWithoutCommentThreadInput>;
+ upsert?: InputMaybe<UserUpsertWithoutCommentThreadInput>;
+};
+
export type UserUpdateOneRequiredWithoutCommentsNestedInput = {
connect?: InputMaybe<UserWhereUniqueInput>;
connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutCommentsInput>;
@@ -2594,7 +2775,26 @@ export type UserUpdateOneWithoutCompaniesNestedInput = {
connect?: InputMaybe<UserWhereUniqueInput>;
};
+export type UserUpdateWithoutCommentThreadInput = {
+ avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ comments?: InputMaybe<CommentUpdateManyWithoutAuthorNestedInput>;
+ companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ disabled?: InputMaybe<BoolFieldUpdateOperationsInput>;
+ email?: InputMaybe<StringFieldUpdateOperationsInput>;
+ emailVerified?: InputMaybe<BoolFieldUpdateOperationsInput>;
+ firstName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ lastName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ lastSeen?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
+ locale?: InputMaybe<StringFieldUpdateOperationsInput>;
+ metadata?: InputMaybe<Scalars['JSON']>;
+ phoneNumber?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
export type UserUpdateWithoutCommentsInput = {
+ CommentThread?: InputMaybe<CommentThreadUpdateManyWithoutAuthorNestedInput>;
avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
@@ -2612,6 +2812,7 @@ export type UserUpdateWithoutCommentsInput = {
};
export type UserUpdateWithoutWorkspaceMemberInput = {
+ CommentThread?: InputMaybe<CommentThreadUpdateManyWithoutAuthorNestedInput>;
avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
comments?: InputMaybe<CommentUpdateManyWithoutAuthorNestedInput>;
companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
@@ -2629,6 +2830,11 @@ export type UserUpdateWithoutWorkspaceMemberInput = {
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
+export type UserUpsertWithoutCommentThreadInput = {
+ create: UserCreateWithoutCommentThreadInput;
+ update: UserUpdateWithoutCommentThreadInput;
+};
+
export type UserUpsertWithoutCommentsInput = {
create: UserCreateWithoutCommentsInput;
update: UserUpdateWithoutCommentsInput;
@@ -2641,6 +2847,7 @@ export type UserUpsertWithoutWorkspaceMemberInput = {
export type UserWhereInput = {
AND?: InputMaybe<Array<UserWhereInput>>;
+ CommentThread?: InputMaybe<CommentThreadListRelationFilter>;
NOT?: InputMaybe<Array<UserWhereInput>>;
OR?: InputMaybe<Array<UserWhereInput>>;
avatarUrl?: InputMaybe<StringNullableFilter>;
@@ -2851,17 +3058,17 @@ export type CreateCommentMutationVariables = Exact<{
export type CreateCommentMutation = { __typename?: 'Mutation', createOneComment: { __typename?: 'Comment', id: string, createdAt: string, body: string, commentThreadId: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } } };
-export type CreateCommentThreadWithCommentMutationVariables = Exact<{
+export type CreateCommentThreadMutationVariables = Exact<{
commentThreadId: Scalars['String'];
- commentText: Scalars['String'];
+ body?: InputMaybe<Scalars['String']>;
+ title?: InputMaybe<Scalars['String']>;
authorId: Scalars['String'];
createdAt: Scalars['DateTime'];
- commentId: Scalars['String'];
commentThreadTargetArray: Array<CommentThreadTargetCreateManyCommentThreadInput> | CommentThreadTargetCreateManyCommentThreadInput;
}>;
-export type CreateCommentThreadWithCommentMutation = { __typename?: 'Mutation', createOneCommentThread: { __typename?: 'CommentThread', id: string, createdAt: string, updatedAt: string, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, createdAt: string, updatedAt: string, commentThreadId: string, commentableType: CommentableType, commentableId: string }> | null, comments?: Array<{ __typename?: 'Comment', id: string, createdAt: string, updatedAt: string, body: string, author: { __typename?: 'User', id: string } }> | null } };
+export type CreateCommentThreadMutation = { __typename?: 'Mutation', createOneCommentThread: { __typename?: 'CommentThread', id: string, createdAt: string, updatedAt: string, authorId: string, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, createdAt: string, updatedAt: string, commentThreadId: string, commentableType: CommentableType, commentableId: string }> | null, comments?: Array<{ __typename?: 'Comment', id: string, createdAt: string, updatedAt: string, body: string, author: { __typename?: 'User', id: string } }> | null } };
export type GetCommentThreadsByTargetsQueryVariables = Exact<{
commentThreadTargetIds: Array<Scalars['String']> | Scalars['String'];
@@ -2869,14 +3076,14 @@ export type GetCommentThreadsByTargetsQueryVariables = Exact<{
}>;
-export type GetCommentThreadsByTargetsQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
+export type GetCommentThreadsByTargetsQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, createdAt: string, title?: string | null, body?: string | null, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
export type GetCommentThreadQueryVariables = Exact<{
commentThreadId: Scalars['String'];
}>;
-export type GetCommentThreadQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', commentableId: string, commentableType: CommentableType }> | null }> };
+export type GetCommentThreadQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, createdAt: string, body?: string | null, title?: string | null, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
export type AddCommentThreadTargetOnCommentThreadMutationVariables = Exact<{
commentThreadId: Scalars['String'];
@@ -2904,13 +3111,36 @@ export type DeleteCommentThreadMutationVariables = Exact<{
export type DeleteCommentThreadMutation = { __typename?: 'Mutation', deleteManyCommentThreads: { __typename?: 'AffectedRows', count: number } };
+export type UpdateCommentThreadTitleMutationVariables = Exact<{
+ commentThreadId: Scalars['String'];
+ commentThreadTitle?: InputMaybe<Scalars['String']>;
+}>;
+
+
+export type UpdateCommentThreadTitleMutation = { __typename?: 'Mutation', updateOneCommentThread: { __typename?: 'CommentThread', id: string, title?: string | null } };
+
+export type UpdateCommentThreadBodyMutationVariables = Exact<{
+ commentThreadId: Scalars['String'];
+ commentThreadBody?: InputMaybe<Scalars['String']>;
+}>;
+
+
+export type UpdateCommentThreadBodyMutation = { __typename?: 'Mutation', updateOneCommentThread: { __typename?: 'CommentThread', id: string, body?: string | null } };
+
export type GetCompaniesQueryVariables = Exact<{
orderBy?: InputMaybe<Array<CompanyOrderByWithRelationInput> | CompanyOrderByWithRelationInput>;
where?: InputMaybe<CompanyWhereInput>;
}>;
-export type GetCompaniesQuery = { __typename?: 'Query', companies: Array<{ __typename?: 'Company', id: string, domainName: string, name: string, createdAt: string, address: string, employees?: number | null, _commentCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null } | null }> };
+export type GetCompaniesQuery = { __typename?: 'Query', companies: Array<{ __typename?: 'Company', id: string, domainName: string, name: string, createdAt: string, address: string, employees?: number | null, _commentThreadCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null } | null }> };
+
+export type GetCompanyQueryVariables = Exact<{
+ id: Scalars['String'];
+}>;
+
+
+export type GetCompanyQuery = { __typename?: 'Query', findUniqueCompany: { __typename?: 'Company', id: string, domainName: string, name: string, createdAt: string, address: string, employees?: number | null, _commentThreadCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string } | null } };
export type UpdateCompanyMutationVariables = Exact<{
id?: InputMaybe<Scalars['String']>;
@@ -2951,7 +3181,14 @@ export type GetPeopleQueryVariables = Exact<{
}>;
-export type GetPeopleQuery = { __typename?: 'Query', people: Array<{ __typename?: 'Person', id: string, phone: string, email: string, city: string, firstName: string, lastName: string, createdAt: string, _commentCount: number, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null }> };
+export type GetPeopleQuery = { __typename?: 'Query', people: Array<{ __typename?: 'Person', id: string, phone: string, email: string, city: string, firstName: string, lastName: string, createdAt: string, _commentThreadCount: number, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null }> };
+
+export type GetPersonQueryVariables = Exact<{
+ id: Scalars['String'];
+}>;
+
+
+export type GetPersonQuery = { __typename?: 'Query', findUniquePerson: { __typename?: 'Person', id: string, firstName: string, lastName: string, displayName: string, createdAt: string } };
export type UpdatePeopleMutationVariables = Exact<{
id?: InputMaybe<Scalars['String']>;
@@ -3416,14 +3653,15 @@ export function useCreateCommentMutation(baseOptions?: Apollo.MutationHookOption
export type CreateCommentMutationHookResult = ReturnType<typeof useCreateCommentMutation>;
export type CreateCommentMutationResult = Apollo.MutationResult<CreateCommentMutation>;
export type CreateCommentMutationOptions = Apollo.BaseMutationOptions<CreateCommentMutation, CreateCommentMutationVariables>;
-export const CreateCommentThreadWithCommentDocument = gql`
- mutation CreateCommentThreadWithComment($commentThreadId: String!, $commentText: String!, $authorId: String!, $createdAt: DateTime!, $commentId: String!, $commentThreadTargetArray: [CommentThreadTargetCreateManyCommentThreadInput!]!) {
+export const CreateCommentThreadDocument = gql`
+ mutation CreateCommentThread($commentThreadId: String!, $body: String, $title: String, $authorId: String!, $createdAt: DateTime!, $commentThreadTargetArray: [CommentThreadTargetCreateManyCommentThreadInput!]!) {
createOneCommentThread(
- data: {id: $commentThreadId, createdAt: $createdAt, updatedAt: $createdAt, comments: {createMany: {data: {authorId: $authorId, id: $commentId, createdAt: $createdAt, body: $commentText}}}, commentThreadTargets: {createMany: {data: $commentThreadTargetArray, skipDuplicates: true}}}
+ data: {id: $commentThreadId, createdAt: $createdAt, updatedAt: $createdAt, author: {connect: {id: $authorId}}, body: $body, title: $title, commentThreadTargets: {createMany: {data: $commentThreadTargetArray, skipDuplicates: true}}}
) {
id
createdAt
updatedAt
+ authorId
commentThreadTargets {
id
createdAt
@@ -3444,37 +3682,37 @@ export const CreateCommentThreadWithCommentDocument = gql`
}
}
`;
-export type CreateCommentThreadWithCommentMutationFn = Apollo.MutationFunction<CreateCommentThreadWithCommentMutation, CreateCommentThreadWithCommentMutationVariables>;
+export type CreateCommentThreadMutationFn = Apollo.MutationFunction<CreateCommentThreadMutation, CreateCommentThreadMutationVariables>;
/**
- * __useCreateCommentThreadWithCommentMutation__
+ * __useCreateCommentThreadMutation__
*
- * To run a mutation, you first call `useCreateCommentThreadWithCommentMutation` within a React component and pass it any options that fit your needs.
- * When your component renders, `useCreateCommentThreadWithCommentMutation` returns a tuple that includes:
+ * To run a mutation, you first call `useCreateCommentThreadMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useCreateCommentThreadMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
*
* @example
- * const [createCommentThreadWithCommentMutation, { data, loading, error }] = useCreateCommentThreadWithCommentMutation({
+ * const [createCommentThreadMutation, { data, loading, error }] = useCreateCommentThreadMutation({
* variables: {
* commentThreadId: // value for 'commentThreadId'
- * commentText: // value for 'commentText'
+ * body: // value for 'body'
+ * title: // value for 'title'
* authorId: // value for 'authorId'
* createdAt: // value for 'createdAt'
- * commentId: // value for 'commentId'
* commentThreadTargetArray: // value for 'commentThreadTargetArray'
* },
* });
*/
-export function useCreateCommentThreadWithCommentMutation(baseOptions?: Apollo.MutationHookOptions<CreateCommentThreadWithCommentMutation, CreateCommentThreadWithCommentMutationVariables>) {
+export function useCreateCommentThreadMutation(baseOptions?: Apollo.MutationHookOptions<CreateCommentThreadMutation, CreateCommentThreadMutationVariables>) {
const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<CreateCommentThreadWithCommentMutation, CreateCommentThreadWithCommentMutationVariables>(CreateCommentThreadWithCommentDocument, options);
+ return Apollo.useMutation<CreateCommentThreadMutation, CreateCommentThreadMutationVariables>(CreateCommentThreadDocument, options);
}
-export type CreateCommentThreadWithCommentMutationHookResult = ReturnType<typeof useCreateCommentThreadWithCommentMutation>;
-export type CreateCommentThreadWithCommentMutationResult = Apollo.MutationResult<CreateCommentThreadWithCommentMutation>;
-export type CreateCommentThreadWithCommentMutationOptions = Apollo.BaseMutationOptions<CreateCommentThreadWithCommentMutation, CreateCommentThreadWithCommentMutationVariables>;
+export type CreateCommentThreadMutationHookResult = ReturnType<typeof useCreateCommentThreadMutation>;
+export type CreateCommentThreadMutationResult = Apollo.MutationResult<CreateCommentThreadMutation>;
+export type CreateCommentThreadMutationOptions = Apollo.BaseMutationOptions<CreateCommentThreadMutation, CreateCommentThreadMutationVariables>;
export const GetCommentThreadsByTargetsDocument = gql`
query GetCommentThreadsByTargets($commentThreadTargetIds: [String!]!, $orderBy: [CommentThreadOrderByWithRelationInput!]) {
findManyCommentThreads(
@@ -3482,6 +3720,14 @@ export const GetCommentThreadsByTargetsDocument = gql`
where: {commentThreadTargets: {some: {commentableId: {in: $commentThreadTargetIds}}}}
) {
id
+ createdAt
+ title
+ body
+ author {
+ id
+ firstName
+ lastName
+ }
comments {
id
body
@@ -3536,6 +3782,14 @@ export const GetCommentThreadDocument = gql`
query GetCommentThread($commentThreadId: String!) {
findManyCommentThreads(where: {id: {equals: $commentThreadId}}) {
id
+ createdAt
+ body
+ title
+ author {
+ id
+ firstName
+ lastName
+ }
comments {
id
body
@@ -3550,6 +3804,7 @@ export const GetCommentThreadDocument = gql`
}
}
commentThreadTargets {
+ id
commentableId
commentableType
}
@@ -3712,6 +3967,82 @@ export function useDeleteCommentThreadMutation(baseOptions?: Apollo.MutationHook
export type DeleteCommentThreadMutationHookResult = ReturnType<typeof useDeleteCommentThreadMutation>;
export type DeleteCommentThreadMutationResult = Apollo.MutationResult<DeleteCommentThreadMutation>;
export type DeleteCommentThreadMutationOptions = Apollo.BaseMutationOptions<DeleteCommentThreadMutation, DeleteCommentThreadMutationVariables>;
+export const UpdateCommentThreadTitleDocument = gql`
+ mutation UpdateCommentThreadTitle($commentThreadId: String!, $commentThreadTitle: String) {
+ updateOneCommentThread(
+ where: {id: $commentThreadId}
+ data: {title: {set: $commentThreadTitle}}
+ ) {
+ id
+ title
+ }
+}
+ `;
+export type UpdateCommentThreadTitleMutationFn = Apollo.MutationFunction<UpdateCommentThreadTitleMutation, UpdateCommentThreadTitleMutationVariables>;
+
+/**
+ * __useUpdateCommentThreadTitleMutation__
+ *
+ * To run a mutation, you first call `useUpdateCommentThreadTitleMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useUpdateCommentThreadTitleMutation` returns a tuple that includes:
+ * - A mutate function that you can call at any time to execute the mutation
+ * - An object with fields that represent the current status of the mutation's execution
+ *
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
+ *
+ * @example
+ * const [updateCommentThreadTitleMutation, { data, loading, error }] = useUpdateCommentThreadTitleMutation({
+ * variables: {
+ * commentThreadId: // value for 'commentThreadId'
+ * commentThreadTitle: // value for 'commentThreadTitle'
+ * },
+ * });
+ */
+export function useUpdateCommentThreadTitleMutation(baseOptions?: Apollo.MutationHookOptions<UpdateCommentThreadTitleMutation, UpdateCommentThreadTitleMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateCommentThreadTitleMutation, UpdateCommentThreadTitleMutationVariables>(UpdateCommentThreadTitleDocument, options);
+ }
+export type UpdateCommentThreadTitleMutationHookResult = ReturnType<typeof useUpdateCommentThreadTitleMutation>;
+export type UpdateCommentThreadTitleMutationResult = Apollo.MutationResult<UpdateCommentThreadTitleMutation>;
+export type UpdateCommentThreadTitleMutationOptions = Apollo.BaseMutationOptions<UpdateCommentThreadTitleMutation, UpdateCommentThreadTitleMutationVariables>;
+export const UpdateCommentThreadBodyDocument = gql`
+ mutation UpdateCommentThreadBody($commentThreadId: String!, $commentThreadBody: String) {
+ updateOneCommentThread(
+ where: {id: $commentThreadId}
+ data: {body: {set: $commentThreadBody}}
+ ) {
+ id
+ body
+ }
+}
+ `;
+export type UpdateCommentThreadBodyMutationFn = Apollo.MutationFunction<UpdateCommentThreadBodyMutation, UpdateCommentThreadBodyMutationVariables>;
+
+/**
+ * __useUpdateCommentThreadBodyMutation__
+ *
+ * To run a mutation, you first call `useUpdateCommentThreadBodyMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useUpdateCommentThreadBodyMutation` returns a tuple that includes:
+ * - A mutate function that you can call at any time to execute the mutation
+ * - An object with fields that represent the current status of the mutation's execution
+ *
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
+ *
+ * @example
+ * const [updateCommentThreadBodyMutation, { data, loading, error }] = useUpdateCommentThreadBodyMutation({
+ * variables: {
+ * commentThreadId: // value for 'commentThreadId'
+ * commentThreadBody: // value for 'commentThreadBody'
+ * },
+ * });
+ */
+export function useUpdateCommentThreadBodyMutation(baseOptions?: Apollo.MutationHookOptions<UpdateCommentThreadBodyMutation, UpdateCommentThreadBodyMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateCommentThreadBodyMutation, UpdateCommentThreadBodyMutationVariables>(UpdateCommentThreadBodyDocument, options);
+ }
+export type UpdateCommentThreadBodyMutationHookResult = ReturnType<typeof useUpdateCommentThreadBodyMutation>;
+export type UpdateCommentThreadBodyMutationResult = Apollo.MutationResult<UpdateCommentThreadBodyMutation>;
+export type UpdateCommentThreadBodyMutationOptions = Apollo.BaseMutationOptions<UpdateCommentThreadBodyMutation, UpdateCommentThreadBodyMutationVariables>;
export const GetCompaniesDocument = gql`
query GetCompanies($orderBy: [CompanyOrderByWithRelationInput!], $where: CompanyWhereInput) {
companies: findManyCompany(orderBy: $orderBy, where: $where) {
@@ -3721,7 +4052,7 @@ export const GetCompaniesDocument = gql`
createdAt
address
employees
- _commentCount
+ _commentThreadCount
accountOwner {
id
email
@@ -3761,6 +4092,52 @@ export function useGetCompaniesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptio
export type GetCompaniesQueryHookResult = ReturnType<typeof useGetCompaniesQuery>;
export type GetCompaniesLazyQueryHookResult = ReturnType<typeof useGetCompaniesLazyQuery>;
export type GetCompaniesQueryResult = Apollo.QueryResult<GetCompaniesQuery, GetCompaniesQueryVariables>;
+export const GetCompanyDocument = gql`
+ query GetCompany($id: String!) {
+ findUniqueCompany(id: $id) {
+ id
+ domainName
+ name
+ createdAt
+ address
+ employees
+ _commentThreadCount
+ accountOwner {
+ id
+ email
+ displayName
+ }
+ }
+}
+ `;
+
+/**
+ * __useGetCompanyQuery__
+ *
+ * To run a query within a React component, call `useGetCompanyQuery` and pass it any options that fit your needs.
+ * When your component renders, `useGetCompanyQuery` returns an object from Apollo Client that contains loading, error, and data properties
+ * you can use to render your UI.
+ *
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
+ *
+ * @example
+ * const { data, loading, error } = useGetCompanyQuery({
+ * variables: {
+ * id: // value for 'id'
+ * },
+ * });
+ */
+export function useGetCompanyQuery(baseOptions: Apollo.QueryHookOptions<GetCompanyQuery, GetCompanyQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetCompanyQuery, GetCompanyQueryVariables>(GetCompanyDocument, options);
+ }
+export function useGetCompanyLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetCompanyQuery, GetCompanyQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetCompanyQuery, GetCompanyQueryVariables>(GetCompanyDocument, options);
+ }
+export type GetCompanyQueryHookResult = ReturnType<typeof useGetCompanyQuery>;
+export type GetCompanyLazyQueryHookResult = ReturnType<typeof useGetCompanyLazyQuery>;
+export type GetCompanyQueryResult = Apollo.QueryResult<GetCompanyQuery, GetCompanyQueryVariables>;
export const UpdateCompanyDocument = gql`
mutation UpdateCompany($id: String, $name: String, $domainName: String, $accountOwnerId: String, $createdAt: DateTime, $address: String, $employees: Int) {
updateOneCompany(
@@ -3903,7 +4280,7 @@ export const GetPeopleDocument = gql`
firstName
lastName
createdAt
- _commentCount
+ _commentThreadCount
company {
id
name
@@ -3942,6 +4319,45 @@ export function useGetPeopleLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<
export type GetPeopleQueryHookResult = ReturnType<typeof useGetPeopleQuery>;
export type GetPeopleLazyQueryHookResult = ReturnType<typeof useGetPeopleLazyQuery>;
export type GetPeopleQueryResult = Apollo.QueryResult<GetPeopleQuery, GetPeopleQueryVariables>;
+export const GetPersonDocument = gql`
+ query GetPerson($id: String!) {
+ findUniquePerson(id: $id) {
+ id
+ firstName
+ lastName
+ displayName
+ createdAt
+ }
+}
+ `;
+
+/**
+ * __useGetPersonQuery__
+ *
+ * To run a query within a React component, call `useGetPersonQuery` and pass it any options that fit your needs.
+ * When your component renders, `useGetPersonQuery` returns an object from Apollo Client that contains loading, error, and data properties
+ * you can use to render your UI.
+ *
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
+ *
+ * @example
+ * const { data, loading, error } = useGetPersonQuery({
+ * variables: {
+ * id: // value for 'id'
+ * },
+ * });
+ */
+export function useGetPersonQuery(baseOptions: Apollo.QueryHookOptions<GetPersonQuery, GetPersonQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetPersonQuery, GetPersonQueryVariables>(GetPersonDocument, options);
+ }
+export function useGetPersonLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetPersonQuery, GetPersonQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetPersonQuery, GetPersonQueryVariables>(GetPersonDocument, options);
+ }
+export type GetPersonQueryHookResult = ReturnType<typeof useGetPersonQuery>;
+export type GetPersonLazyQueryHookResult = ReturnType<typeof useGetPersonLazyQuery>;
+export type GetPersonQueryResult = Apollo.QueryResult<GetPersonQuery, GetPersonQueryVariables>;
export const UpdatePeopleDocument = gql`
mutation UpdatePeople($id: String, $firstName: String, $lastName: String, $phone: String, $city: String, $companyId: String, $email: String, $createdAt: DateTime) {
updateOnePerson(
diff --git a/front/src/modules/auth/components/ui/FooterNote.tsx b/front/src/modules/auth/components/ui/FooterNote.tsx
index a5afe3d3627..5ba151fec65 100644
--- a/front/src/modules/auth/components/ui/FooterNote.tsx
+++ b/front/src/modules/auth/components/ui/FooterNote.tsx
@@ -7,7 +7,7 @@ const StyledContainer = styled.div`
align-items: center;
color: ${({ theme }) => theme.font.color.tertiary};
display: flex;
- font-size: ${({ theme }) => theme.font.size.sm}px;
+ font-size: ${({ theme }) => theme.font.size.sm};
text-align: center;
`;
diff --git a/front/src/modules/command-menu/components/CommandMenuStyles.tsx b/front/src/modules/command-menu/components/CommandMenuStyles.tsx
index e2d3026eb62..89ed8938310 100644
--- a/front/src/modules/command-menu/components/CommandMenuStyles.tsx
+++ b/front/src/modules/command-menu/components/CommandMenuStyles.tsx
@@ -15,6 +15,7 @@ export const StyledDialog = styled(Command.Dialog)`
top: 50%;
transform: translate(-50%, -50%);
width: 100%;
+ z-index: 1000;
`;
export const StyledInput = styled(Command.Input)`
diff --git a/front/src/modules/comments/components/CommentThread.tsx b/front/src/modules/comments/components/CommentThread.tsx
deleted file mode 100644
index adc02a01f45..00000000000
--- a/front/src/modules/comments/components/CommentThread.tsx
+++ /dev/null
@@ -1,108 +0,0 @@
-import { getOperationName } from '@apollo/client/utilities';
-import styled from '@emotion/styled';
-import { useRecoilValue } from 'recoil';
-import { v4 } from 'uuid';
-
-import { currentUserState } from '@/auth/states/currentUserState';
-import { CommentThreadForDrawer } from '@/comments/types/CommentThreadForDrawer';
-import { GET_COMPANIES } from '@/companies/services';
-import { GET_PEOPLE } from '@/people/services';
-import { AutosizeTextInput } from '@/ui/components/inputs/AutosizeTextInput';
-import { logError } from '@/utils/logs/logError';
-import { isDefined } from '@/utils/type-guards/isDefined';
-import { isNonEmptyString } from '@/utils/type-guards/isNonEmptyString';
-import { useCreateCommentMutation } from '~/generated/graphql';
-
-import { GET_COMMENT_THREADS_BY_TARGETS } from '../services';
-
-import { CommentThreadActionBar } from './CommentThreadActionBar';
-import { CommentThreadItem } from './CommentThreadItem';
-import { CommentThreadRelationPicker } from './CommentThreadRelationPicker';
-
-type OwnProps = {
- commentThread: CommentThreadForDrawer;
-};
-
-const StyledContainer = styled.div`
- align-items: flex-start;
- display: flex;
-
- flex-direction: column;
-
- gap: ${({ theme }) => theme.spacing(4)};
-
- justify-content: flex-start;
- padding: ${({ theme }) => theme.spacing(2)};
-`;
-
-const StyledThreadItemListContainer = styled.div`
- align-items: flex-start;
- display: flex;
-
- flex-direction: column;
- gap: ${({ theme }) => theme.spacing(4)};
-
- justify-content: flex-start;
-
- width: 100%;
-`;
-
-export function CommentThread({ commentThread }: OwnProps) {
- const [createCommentMutation] = useCreateCommentMutation();
- const currentUser = useRecoilValue(currentUserState);
-
- function handleSendComment(commentText: string) {
- if (!isNonEmptyString(commentText)) {
- return;
- }
-
- if (!isDefined(currentUser)) {
- logError(
- 'In handleSendComment, currentUser is not defined, this should not happen.',
- );
- return;
- }
-
- createCommentMutation({
- variables: {
- commentId: v4(),
- authorId: currentUser.id,
- commentThreadId: commentThread.id,
- commentText,
- createdAt: new Date().toISOString(),
- },
- refetchQueries: [
- getOperationName(GET_COMPANIES) ?? '',
- getOperationName(GET_PEOPLE) ?? '',
- getOperationName(GET_COMMENT_THREADS_BY_TARGETS) ?? '',
- ],
- onError: (error) => {
- logError(
- `In handleSendComment, createCommentMutation onError, error: ${error}`,
- );
- },
- });
- }
-
- return (
- <StyledContainer>
- <StyledThreadItemListContainer>
- {commentThread.comments?.map((comment, index) => (
- <CommentThreadItem
- key={comment.id}
- comment={comment}
- actionBar={
- index === 0 ? (
- <CommentThreadActionBar commentThreadId={commentThread.id} />
- ) : (
- <></>
- )
- }
- />
- ))}
- </StyledThreadItemListContainer>
- <CommentThreadRelationPicker commentThread={commentThread} />
- <AutosizeTextInput onValidate={handleSendComment} />
- </StyledContainer>
- );
-}
diff --git a/front/src/modules/comments/components/CommentThreadCreateMode.tsx b/front/src/modules/comments/components/CommentThreadCreateMode.tsx
deleted file mode 100644
index 98ba4c611a4..00000000000
--- a/front/src/modules/comments/components/CommentThreadCreateMode.tsx
+++ /dev/null
@@ -1,148 +0,0 @@
-import { getOperationName } from '@apollo/client/utilities';
-import styled from '@emotion/styled';
-import { useRecoilState, useRecoilValue } from 'recoil';
-import { v4 } from 'uuid';
-
-import { currentUserState } from '@/auth/states/currentUserState';
-import { commentableEntityArrayState } from '@/comments/states/commentableEntityArrayState';
-import { createdCommentThreadIdState } from '@/comments/states/createdCommentThreadIdState';
-import { GET_COMPANIES } from '@/companies/services';
-import { GET_PEOPLE } from '@/people/services';
-import { AutosizeTextInput } from '@/ui/components/inputs/AutosizeTextInput';
-import { useOpenRightDrawer } from '@/ui/layout/right-drawer/hooks/useOpenRightDrawer';
-import { logError } from '@/utils/logs/logError';
-import { isDefined } from '@/utils/type-guards/isDefined';
-import { isNonEmptyString } from '@/utils/type-guards/isNonEmptyString';
-import {
- useCreateCommentMutation,
- useCreateCommentThreadWithCommentMutation,
- useGetCommentThreadQuery,
-} from '~/generated/graphql';
-
-import { GET_COMMENT_THREAD } from '../services';
-
-import { CommentThreadItem } from './CommentThreadItem';
-
-const StyledContainer = styled.div`
- align-items: flex-start;
- display: flex;
- flex-direction: column;
- gap: ${({ theme }) => theme.spacing(4)};
-
- justify-content: flex-start;
-
- max-height: calc(100% - 16px);
- padding: ${({ theme }) => theme.spacing(2)};
-`;
-
-const StyledThreadItemListContainer = styled.div`
- align-items: flex-start;
- display: flex;
-
- flex-direction: column-reverse;
- gap: ${({ theme }) => theme.spacing(4)};
-
- justify-content: flex-start;
- overflow: auto;
-
- width: 100%;
-`;
-
-export function CommentThreadCreateMode() {
- const [commentableEntityArray] = useRecoilState(commentableEntityArrayState);
-
- const [createdCommmentThreadId, setCreatedCommentThreadId] = useRecoilState(
- createdCommentThreadIdState,
- );
-
- const openRightDrawer = useOpenRightDrawer();
-
- const [createCommentMutation] = useCreateCommentMutation();
-
- const [createCommentThreadWithComment] =
- useCreateCommentThreadWithCommentMutation();
-
- const { data } = useGetCommentThreadQuery({
- variables: {
- commentThreadId: createdCommmentThreadId ?? '',
- },
- skip: !createdCommmentThreadId,
- });
-
- const comments = data?.findManyCommentThreads[0]?.comments;
-
- const displayCommentList = (comments?.length ?? 0) > 0;
-
- const currentUser = useRecoilValue(currentUserState);
-
- function handleNewComment(commentText: string) {
- if (!isNonEmptyString(commentText)) {
- return;
- }
-
- if (!isDefined(currentUser)) {
- logError(
- 'In handleCreateCommentThread, currentUser is not defined, this should not happen.',
- );
- return;
- }
-
- if (!createdCommmentThreadId) {
- createCommentThreadWithComment({
- variables: {
- authorId: currentUser.id,
- commentId: v4(),
- commentText: commentText,
- commentThreadId: v4(),
- createdAt: new Date().toISOString(),
- commentThreadTargetArray: commentableEntityArray.map(
- (commentableEntity) => ({
- commentableId: commentableEntity.id,
- commentableType: commentableEntity.type,
- id: v4(),
- createdAt: new Date().toISOString(),
- }),
- ),
- },
- refetchQueries: [
- getOperationName(GET_COMPANIES) ?? '',
- getOperationName(GET_PEOPLE) ?? '',
- getOperationName(GET_COMMENT_THREAD) ?? '',
- ],
- onCompleted(data) {
- setCreatedCommentThreadId(data.createOneCommentThread.id);
- openRightDrawer('comments');
- },
- });
- } else {
- createCommentMutation({
- variables: {
- commentId: v4(),
- authorId: currentUser.id,
- commentThreadId: createdCommmentThreadId,
- commentText,
- createdAt: new Date().toISOString(),
- },
- refetchQueries: [getOperationName(GET_COMMENT_THREAD) ?? ''],
- onError: (error) => {
- logError(
- `In handleCreateCommentThread, createCommentMutation onError, error: ${error}`,
- );
- },
- });
- }
- }
-
- return (
- <StyledContainer>
- {displayCommentList && (
- <StyledThreadItemListContainer>
- {comments?.map((comment) => (
- <CommentThreadItem key={comment.id} comment={comment} />
- ))}
- </StyledThreadItemListContainer>
- )}
- <AutosizeTextInput minRows={5} onValidate={handleNewComment} />
- </StyledContainer>
- );
-}
diff --git a/front/src/modules/comments/components/RightDrawerComments.tsx b/front/src/modules/comments/components/RightDrawerComments.tsx
deleted file mode 100644
index eab5a97b7b9..00000000000
--- a/front/src/modules/comments/components/RightDrawerComments.tsx
+++ /dev/null
@@ -1,51 +0,0 @@
-import { useRecoilState } from 'recoil';
-
-import { CommentThreadForDrawer } from '@/comments/types/CommentThreadForDrawer';
-import { useHotkeysScopeOnMountOnly } from '@/hotkeys/hooks/useHotkeysScopeOnMountOnly';
-import { InternalHotkeysScope } from '@/hotkeys/types/internal/InternalHotkeysScope';
-import { RightDrawerBody } from '@/ui/layout/right-drawer/components/RightDrawerBody';
-import { RightDrawerPage } from '@/ui/layout/right-drawer/components/RightDrawerPage';
-import { RightDrawerTopBar } from '@/ui/layout/right-drawer/components/RightDrawerTopBar';
-import {
- SortOrder,
- useGetCommentThreadsByTargetsQuery,
-} from '~/generated/graphql';
-
-import { commentableEntityArrayState } from '../states/commentableEntityArrayState';
-
-import { CommentThread } from './CommentThread';
-
-export function RightDrawerComments() {
- const [commentableEntityArray] = useRecoilState(commentableEntityArrayState);
- useHotkeysScopeOnMountOnly({
- scope: InternalHotkeysScope.RightDrawer,
- customScopes: { goto: false, 'command-menu': true },
- });
-
- const { data: queryResult } = useGetCommentThreadsByTargetsQuery({
- variables: {
- commentThreadTargetIds: commentableEntityArray.map(
- (commentableEntity) => commentableEntity.id,
- ),
- orderBy: [
- {
- createdAt: SortOrder.Desc,
- },
- ],
- },
- });
-
- const commentThreads: CommentThreadForDrawer[] =
- queryResult?.findManyCommentThreads ?? [];
-
- return (
- <RightDrawerPage>
- <RightDrawerTopBar title="Comments" />
- <RightDrawerBody>
- {commentThreads.map((commentThread) => (
- <CommentThread key={commentThread.id} commentThread={commentThread} />
- ))}
- </RightDrawerBody>
- </RightDrawerPage>
- );
-}
diff --git a/front/src/modules/comments/components/comment-thread/CommentThreadBodyEditor.tsx b/front/src/modules/comments/components/comment-thread/CommentThreadBodyEditor.tsx
new file mode 100644
index 00000000000..4978f619e6d
--- /dev/null
+++ b/front/src/modules/comments/components/comment-thread/CommentThreadBodyEditor.tsx
@@ -0,0 +1,60 @@
+import { useMemo } from 'react';
+import { getOperationName } from '@apollo/client/utilities';
+import { BlockNoteEditor } from '@blocknote/core';
+import { useBlockNote } from '@blocknote/react';
+import styled from '@emotion/styled';
+
+import { GET_COMMENT_THREADS_BY_TARGETS } from '@/comments/services';
+import { BlockEditor } from '@/ui/components/editor/BlockEditor';
+import { debounce } from '@/utils/debounce';
+import {
+ CommentThread,
+ useUpdateCommentThreadBodyMutation,
+} from '~/generated/graphql';
+
+const BlockNoteStyledContainer = styled.div`
+ width: 100%;
+`;
+
+type OwnProps = {
+ commentThread: Pick<CommentThread, 'id' | 'body'>;
+ onChange?: (commentThreadBody: string) => void;
+};
+
+export function CommentThreadBodyEditor({ commentThread, onChange }: OwnProps) {
+ const [updateCommentThreadBodyMutation] =
+ useUpdateCommentThreadBodyMutation();
+
+ const debounceOnChange = useMemo(() => {
+ function onInternalChange(commentThreadBody: string) {
+ onChange?.(commentThreadBody);
+ updateCommentThreadBodyMutation({
+ variables: {
+ commentThreadId: commentThread.id,
+ commentThreadBody: commentThreadBody,
+ },
+ refetchQueries: [
+ getOperationName(GET_COMMENT_THREADS_BY_TARGETS) ?? '',
+ ],
+ });
+ }
+
+ return debounce(onInternalChange, 200);
+ }, [commentThread, updateCommentThreadBodyMutation, onChange]);
+
+ const editor: BlockNoteEditor | null = useBlockNote({
+ initialContent: commentThread.body
+ ? JSON.parse(commentThread.body)
+ : undefined,
+ editorDOMAttributes: { class: 'editor-edit-mode' },
+ onEditorContentChange: (editor) => {
+ debounceOnChange(JSON.stringify(editor.topLevelBlocks) ?? '');
+ },
+ });
+
+ return (
+ <BlockNoteStyledContainer>
+ <BlockEditor editor={editor} />
+ </BlockNoteStyledContainer>
+ );
+}
diff --git a/front/src/modules/comments/components/comment-thread/CommentThreadComments.tsx b/front/src/modules/comments/components/comment-thread/CommentThreadComments.tsx
new file mode 100644
index 00000000000..e416f851013
--- /dev/null
+++ b/front/src/modules/comments/components/comment-thread/CommentThreadComments.tsx
@@ -0,0 +1,84 @@
+import { getOperationName } from '@apollo/client/utilities';
+import styled from '@emotion/styled';
+import { useRecoilValue } from 'recoil';
+import { v4 } from 'uuid';
+
+import { currentUserState } from '@/auth/states/currentUserState';
+import { GET_COMMENT_THREADS_BY_TARGETS } from '@/comments/services';
+import { CommentForDrawer } from '@/comments/types/CommentForDrawer';
+import { AutosizeTextInput } from '@/ui/components/inputs/AutosizeTextInput';
+import { isNonEmptyString } from '@/utils/type-guards/isNonEmptyString';
+import { CommentThread, useCreateCommentMutation } from '~/generated/graphql';
+
+import { CommentThreadItem } from '../comment/CommentThreadItem';
+
+type OwnProps = {
+ commentThread: Pick<CommentThread, 'id'> & {
+ comments: Array<CommentForDrawer>;
+ };
+};
+
+const StyledThreadItemListContainer = styled.div`
+ align-items: flex-start;
+ border-top: 1px solid ${({ theme }) => theme.border.color.light};
+
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+
+ gap: ${({ theme }) => theme.spacing(4)};
+
+ justify-content: flex-start;
+ padding: ${({ theme }) => theme.spacing(8)};
+ padding-left: ${({ theme }) => theme.spacing(12)};
+ width: 100%;
+`;
+
+const StyledCommentActionBar = styled.div`
+ border-top: 1px solid ${({ theme }) => theme.border.color.light};
+ display: flex;
+ padding: 16px 24px 16px 48px;
+ width: calc(${({ theme }) => theme.rightDrawerWidth} - 48px - 24px);
+`;
+
+export function CommentThreadComments({ commentThread }: OwnProps) {
+ const [createCommentMutation] = useCreateCommentMutation();
+ const currentUser = useRecoilValue(currentUserState);
+
+ if (!currentUser) {
+ return <></>;
+ }
+
+ function handleSendComment(commentText: string) {
+ if (!isNonEmptyString(commentText)) {
+ return;
+ }
+
+ createCommentMutation({
+ variables: {
+ commentId: v4(),
+ authorId: currentUser?.id ?? '',
+ commentThreadId: commentThread?.id ?? '',
+ commentText: commentText,
+ createdAt: new Date().toISOString(),
+ },
+ refetchQueries: [getOperationName(GET_COMMENT_THREADS_BY_TARGETS) ?? ''],
+ });
+ }
+
+ return (
+ <>
+ {commentThread?.comments.length > 0 && (
+ <StyledThreadItemListContainer>
+ {commentThread?.comments?.map((comment, index) => (
+ <CommentThreadItem key={comment.id} comment={comment} />
+ ))}
+ </StyledThreadItemListContainer>
+ )}
+
+ <StyledCommentActionBar>
+ {currentUser && <AutosizeTextInput onValidate={handleSendComment} />}
+ </StyledCommentActionBar>
+ </>
+ );
+}
diff --git a/front/src/modules/comments/components/CommentThreadRelationPicker.tsx b/front/src/modules/comments/components/comment-thread/CommentThreadRelationPicker.tsx
similarity index 82%
rename from front/src/modules/comments/components/CommentThreadRelationPicker.tsx
rename to front/src/modules/comments/components/comment-thread/CommentThreadRelationPicker.tsx
index 93a32afd2f2..3c465d006bf 100644
--- a/front/src/modules/comments/components/CommentThreadRelationPicker.tsx
+++ b/front/src/modules/comments/components/comment-thread/CommentThreadRelationPicker.tsx
@@ -1,5 +1,4 @@
import { useState } from 'react';
-import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import {
autoUpdate,
@@ -8,30 +7,33 @@ import {
size,
useFloating,
} from '@floating-ui/react';
-import { IconArrowUpRight } from '@tabler/icons-react';
-import { CommentThreadForDrawer } from '@/comments/types/CommentThreadForDrawer';
+import { useHandleCheckableCommentThreadTargetChange } from '@/comments/hooks/useHandleCheckableCommentThreadTargetChange';
+import { CommentableEntityForSelect } from '@/comments/types/CommentableEntityForSelect';
import CompanyChip from '@/companies/components/CompanyChip';
import { useScopedHotkeys } from '@/hotkeys/hooks/useScopedHotkeys';
import { InternalHotkeysScope } from '@/hotkeys/types/internal/InternalHotkeysScope';
import { PersonChip } from '@/people/components/PersonChip';
import { RecoilScope } from '@/recoil-scope/components/RecoilScope';
+import { MultipleEntitySelect } from '@/relation-picker/components/MultipleEntitySelect';
import { useFilteredSearchEntityQuery } from '@/relation-picker/hooks/useFilteredSearchEntityQuery';
import { useListenClickOutsideArrayOfRef } from '@/ui/hooks/useListenClickOutsideArrayOfRef';
import { flatMapAndSortEntityForSelectArrayOfArrayByName } from '@/ui/utils/flatMapAndSortEntityForSelectArrayByName';
import { getLogoUrlFromDomainName } from '@/utils/utils';
import {
CommentableType,
+ CommentThread,
+ CommentThreadTarget,
useSearchCompanyQuery,
useSearchPeopleQuery,
} from '~/generated/graphql';
-import { MultipleEntitySelect } from '../../relation-picker/components/MultipleEntitySelect';
-import { useHandleCheckableCommentThreadTargetChange } from '../hooks/useHandleCheckableCommentThreadTargetChange';
-import { CommentableEntityForSelect } from '../types/CommentableEntityForSelect';
-
type OwnProps = {
- commentThread: CommentThreadForDrawer;
+ commentThread?: Pick<CommentThread, 'id'> & {
+ commentThreadTargets: Array<
+ Pick<CommentThreadTarget, 'id' | 'commentableId' | 'commentableType'>
+ >;
+ };
};
const StyledContainer = styled.div`
@@ -44,25 +46,6 @@ const StyledContainer = styled.div`
width: 100%;
`;
-const StyledLabelContainer = styled.div`
- align-items: center;
- display: flex;
- flex-direction: row;
-
- gap: ${({ theme }) => theme.spacing(2)};
-
- padding-bottom: ${({ theme }) => theme.spacing(2)};
- padding-top: ${({ theme }) => theme.spacing(2)};
-`;
-
-const StyledRelationLabel = styled.div`
- color: ${({ theme }) => theme.font.color.secondary};
- display: flex;
- flex-direction: row;
-
- user-select: none;
-`;
-
const StyledRelationContainer = styled.div`
--horizontal-padding: ${({ theme }) => theme.spacing(1)};
--vertical-padding: ${({ theme }) => theme.spacing(1.5)};
@@ -97,15 +80,12 @@ export function CommentThreadRelationPicker({ commentThread }: OwnProps) {
const [isMenuOpen, setIsMenuOpen] = useState(false);
const [searchFilter, setSearchFilter] = useState('');
- const theme = useTheme();
-
const peopleIds =
- commentThread.commentThreadTargets
+ commentThread?.commentThreadTargets
?.filter((relation) => relation.commentableType === 'Person')
.map((relation) => relation.commentableId) ?? [];
-
const companyIds =
- commentThread.commentThreadTargets
+ commentThread?.commentThreadTargets
?.filter((relation) => relation.commentableType === 'Company')
.map((relation) => relation.commentableId) ?? [];
@@ -203,10 +183,6 @@ export function CommentThreadRelationPicker({ commentThread }: OwnProps) {
return (
<StyledContainer>
- <StyledLabelContainer>
- <IconArrowUpRight size={16} color={theme.font.color.tertiary} />
- <StyledRelationLabel>Relations</StyledRelationLabel>
- </StyledLabelContainer>
<StyledRelationContainer
ref={refs.setReference}
onClick={handleRelationContainerClick}
@@ -215,11 +191,12 @@ export function CommentThreadRelationPicker({ commentThread }: OwnProps) {
entity.entityType === CommentableType.Company ? (
<CompanyChip
key={entity.id}
+ id={entity.id}
name={entity.name}
picture={entity.avatarUrl}
/>
) : (
- <PersonChip key={entity.id} name={entity.name} />
+ <PersonChip key={entity.id} name={entity.name} id={entity.id} />
),
)}
</StyledRelationContainer>
diff --git a/front/src/modules/comments/components/comment-thread/CommentThreadTypeDropdown.tsx b/front/src/modules/comments/components/comment-thread/CommentThreadTypeDropdown.tsx
new file mode 100644
index 00000000000..38b69a70429
--- /dev/null
+++ b/front/src/modules/comments/components/comment-thread/CommentThreadTypeDropdown.tsx
@@ -0,0 +1,18 @@
+import {
+ DropdownButton,
+ DropdownOptionType,
+} from '@/ui/components/buttons/DropdownButton';
+import { IconNotes } from '@/ui/icons/index';
+
+export function CommentThreadTypeDropdown() {
+ const options: DropdownOptionType[] = [
+ { label: 'Notes', icon: <IconNotes /> },
+ // { label: 'Call', icon: <IconPhone /> },
+ ];
+
+ const handleSelect = (selectedOption: DropdownOptionType) => {
+ // console.log(`You selected: ${selectedOption.label}`);
+ };
+
+ return <DropdownButton options={options} onSelection={handleSelect} />;
+}
diff --git a/front/src/modules/comments/components/__stories__/CommentThreadRelationPicker.stories.tsx b/front/src/modules/comments/components/comment-thread/__stories__/CommentThreadRelationPicker.stories.tsx
similarity index 78%
rename from front/src/modules/comments/components/__stories__/CommentThreadRelationPicker.stories.tsx
rename to front/src/modules/comments/components/comment-thread/__stories__/CommentThreadRelationPicker.stories.tsx
index 881c5c4a5f8..dfb473a7fc3 100644
--- a/front/src/modules/comments/components/__stories__/CommentThreadRelationPicker.stories.tsx
+++ b/front/src/modules/comments/components/comment-thread/__stories__/CommentThreadRelationPicker.stories.tsx
@@ -1,3 +1,4 @@
+import { MemoryRouter } from 'react-router-dom';
import styled from '@emotion/styled';
import type { Meta, StoryObj } from '@storybook/react';
@@ -24,8 +25,10 @@ type Story = StoryObj<typeof CommentThreadRelationPicker>;
export const Default: Story = {
render: getRenderWrapperForComponent(
- <StyledContainer>
- <CommentThreadRelationPicker commentThread={mockedCommentThreads[0]} />
- </StyledContainer>,
+ <MemoryRouter>
+ <StyledContainer>
+ <CommentThreadRelationPicker commentThread={mockedCommentThreads[0]} />
+ </StyledContainer>
+ </MemoryRouter>,
),
};
diff --git a/front/src/modules/comments/components/CommentHeader.tsx b/front/src/modules/comments/components/comment/CommentHeader.tsx
similarity index 100%
rename from front/src/modules/comments/components/CommentHeader.tsx
rename to front/src/modules/comments/components/comment/CommentHeader.tsx
diff --git a/front/src/modules/comments/components/CommentThreadItem.tsx b/front/src/modules/comments/components/comment/CommentThreadItem.tsx
similarity index 93%
rename from front/src/modules/comments/components/CommentThreadItem.tsx
rename to front/src/modules/comments/components/comment/CommentThreadItem.tsx
index a3c81ebba25..5f9b00d83fe 100644
--- a/front/src/modules/comments/components/CommentThreadItem.tsx
+++ b/front/src/modules/comments/components/comment/CommentThreadItem.tsx
@@ -22,7 +22,7 @@ const StyledCommentBody = styled.div`
color: ${({ theme }) => theme.font.color.secondary};
font-size: ${({ theme }) => theme.font.size.md};
- line-height: ${({ theme }) => theme.text.lineHeight};
+ line-height: ${({ theme }) => theme.text.lineHeight.md};
overflow-wrap: anywhere;
padding-left: 24px;
diff --git a/front/src/modules/comments/components/__stories__/CommentHeader.stories.tsx b/front/src/modules/comments/components/comment/__stories__/CommentHeader.stories.tsx
similarity index 97%
rename from front/src/modules/comments/components/__stories__/CommentHeader.stories.tsx
rename to front/src/modules/comments/components/comment/__stories__/CommentHeader.stories.tsx
index ce19446b0bc..b825b17aad1 100644
--- a/front/src/modules/comments/components/__stories__/CommentHeader.stories.tsx
+++ b/front/src/modules/comments/components/comment/__stories__/CommentHeader.stories.tsx
@@ -6,8 +6,8 @@ import { CommentForDrawer } from '@/comments/types/CommentForDrawer';
import { mockedUsersData } from '~/testing/mock-data/users';
import { getRenderWrapperForComponent } from '~/testing/renderWrappers';
+import { CommentThreadActionBar } from '../../right-drawer/CommentThreadActionBar';
import { CommentHeader } from '../CommentHeader';
-import { CommentThreadActionBar } from '../CommentThreadActionBar';
const meta: Meta<typeof CommentHeader> = {
title: 'Modules/Comments/CommentHeader',
diff --git a/front/src/modules/comments/components/right-drawer/CommentThread.tsx b/front/src/modules/comments/components/right-drawer/CommentThread.tsx
new file mode 100644
index 00000000000..7a48a11d214
--- /dev/null
+++ b/front/src/modules/comments/components/right-drawer/CommentThread.tsx
@@ -0,0 +1,164 @@
+import React, { useMemo } from 'react';
+import { getOperationName } from '@apollo/client/utilities';
+import styled from '@emotion/styled';
+
+import { GET_COMMENT_THREADS_BY_TARGETS } from '@/comments/services';
+import { PropertyBox } from '@/ui/components/property-box/PropertyBox';
+import { PropertyBoxItem } from '@/ui/components/property-box/PropertyBoxItem';
+import { IconArrowUpRight } from '@/ui/icons/index';
+import { debounce } from '@/utils/debounce';
+import {
+ useGetCommentThreadQuery,
+ useUpdateCommentThreadTitleMutation,
+} from '~/generated/graphql';
+
+import { CommentThreadBodyEditor } from '../comment-thread/CommentThreadBodyEditor';
+import { CommentThreadComments } from '../comment-thread/CommentThreadComments';
+import { CommentThreadRelationPicker } from '../comment-thread/CommentThreadRelationPicker';
+import { CommentThreadTypeDropdown } from '../comment-thread/CommentThreadTypeDropdown';
+
+import { CommentThreadActionBar } from './CommentThreadActionBar';
+
+import '@blocknote/core/style.css';
+
+const StyledContainer = styled.div`
+ align-items: flex-start;
+ display: flex;
+ flex-direction: column;
+ gap: ${({ theme }) => theme.spacing(4)};
+
+ justify-content: flex-start;
+`;
+
+const StyledTopContainer = styled.div`
+ align-items: flex-start;
+ align-self: stretch;
+ background: ${({ theme }) => theme.background.secondary};
+ border-bottom: 1px solid ${({ theme }) => theme.border.color.medium};
+ display: flex;
+ flex-direction: column;
+ gap: 24px;
+ padding: 24px 24px 24px 48px;
+`;
+
+const StyledEditableTitleInput = styled.input`
+ background: transparent;
+
+ border: none;
+ color: ${({ theme }) => theme.font.color.primary};
+ display: flex;
+ flex: 1 0 0;
+
+ flex-direction: column;
+ font-family: Inter;
+ font-size: ${({ theme }) => theme.font.size.xl};
+ font-style: normal;
+ font-weight: ${({ theme }) => theme.font.weight.semiBold};
+ justify-content: center;
+
+ line-height: ${({ theme }) => theme.text.lineHeight.md};
+ outline: none;
+ width: calc(100% - ${({ theme }) => theme.spacing(2)});
+ :placeholder {
+ color: ${({ theme }) => theme.font.color.light};
+ }
+`;
+
+const StyledTopActionsContainer = styled.div`
+ align-items: center;
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ width: 100%;
+`;
+
+type OwnProps = {
+ commentThreadId: string;
+ showComment?: boolean;
+};
+
+export function CommentThread({
+ commentThreadId,
+ showComment = true,
+}: OwnProps) {
+ const { data } = useGetCommentThreadQuery({
+ variables: {
+ commentThreadId: commentThreadId ?? '',
+ },
+ skip: !commentThreadId,
+ });
+
+ const [updateCommentThreadTitleMutation] =
+ useUpdateCommentThreadTitleMutation();
+
+ const debounceUpdateTitle = useMemo(() => {
+ function updateTitle(title: string) {
+ updateCommentThreadTitleMutation({
+ variables: {
+ commentThreadId: commentThreadId,
+ commentThreadTitle: title ?? '',
+ },
+ refetchQueries: [
+ getOperationName(GET_COMMENT_THREADS_BY_TARGETS) ?? '',
+ ],
+ });
+ }
+ return debounce(updateTitle, 200);
+ }, [commentThreadId, updateCommentThreadTitleMutation]);
+
+ function updateTitleFromBody(body: string) {
+ const title = JSON.parse(body)[0]?.content[0]?.text;
+ if (!commentThread?.title || commentThread?.title === '') {
+ debounceUpdateTitle(title);
+ }
+ }
+
+ const commentThread = data?.findManyCommentThreads[0];
+
+ if (!commentThread) {
+ return <></>;
+ }
+
+ return (
+ <StyledContainer>
+ <StyledTopContainer>
+ <StyledTopActionsContainer>
+ <CommentThreadTypeDropdown />
+ <CommentThreadActionBar commentThreadId={commentThread?.id ?? ''} />
+ </StyledTopActionsContainer>
+ <StyledEditableTitleInput
+ placeholder="Note title (optional)"
+ onChange={(event) => debounceUpdateTitle(event.target.value)}
+ value={commentThread?.title ?? ''}
+ />
+ <PropertyBox>
+ <PropertyBoxItem
+ icon={<IconArrowUpRight />}
+ value={
+ <CommentThreadRelationPicker
+ commentThread={{
+ id: commentThread.id,
+ commentThreadTargets:
+ commentThread.commentThreadTargets ?? [],
+ }}
+ />
+ }
+ label="Relations"
+ />
+ </PropertyBox>
+ </StyledTopContainer>
+ <CommentThreadBodyEditor
+ commentThread={commentThread}
+ onChange={updateTitleFromBody}
+ />
+ {showComment && (
+ <CommentThreadComments
+ commentThread={{
+ id: commentThread.id,
+ comments: commentThread.comments ?? [],
+ }}
+ />
+ )}
+ </StyledContainer>
+ );
+}
diff --git a/front/src/modules/comments/components/CommentThreadActionBar.tsx b/front/src/modules/comments/components/right-drawer/CommentThreadActionBar.tsx
similarity index 95%
rename from front/src/modules/comments/components/CommentThreadActionBar.tsx
rename to front/src/modules/comments/components/right-drawer/CommentThreadActionBar.tsx
index 5c2daf6726e..37b1ae0f70c 100644
--- a/front/src/modules/comments/components/CommentThreadActionBar.tsx
+++ b/front/src/modules/comments/components/right-drawer/CommentThreadActionBar.tsx
@@ -3,14 +3,13 @@ import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { useRecoilState } from 'recoil';
+import { GET_COMMENT_THREADS_BY_TARGETS } from '@/comments/services';
import { GET_COMPANIES } from '@/companies/services';
import { GET_PEOPLE } from '@/people/services';
import { IconTrash } from '@/ui/icons';
import { isRightDrawerOpenState } from '@/ui/layout/right-drawer/states/isRightDrawerOpenState';
import { useDeleteCommentThreadMutation } from '~/generated/graphql';
-import { GET_COMMENT_THREADS_BY_TARGETS } from '../services';
-
const StyledContainer = styled.div`
color: ${({ theme }) => theme.font.color.tertiary};
cursor: pointer;
diff --git a/front/src/modules/comments/components/right-drawer/RightDrawerTimeline.tsx b/front/src/modules/comments/components/right-drawer/RightDrawerTimeline.tsx
new file mode 100644
index 00000000000..fd6a220cf8b
--- /dev/null
+++ b/front/src/modules/comments/components/right-drawer/RightDrawerTimeline.tsx
@@ -0,0 +1,36 @@
+import { useRecoilState } from 'recoil';
+
+import { commentableEntityArrayState } from '@/comments/states/commentableEntityArrayState';
+import { useHotkeysScopeOnMountOnly } from '@/hotkeys/hooks/useHotkeysScopeOnMountOnly';
+import { InternalHotkeysScope } from '@/hotkeys/types/internal/InternalHotkeysScope';
+import { RightDrawerBody } from '@/ui/layout/right-drawer/components/RightDrawerBody';
+import { RightDrawerPage } from '@/ui/layout/right-drawer/components/RightDrawerPage';
+import { RightDrawerTopBar } from '@/ui/layout/right-drawer/components/RightDrawerTopBar';
+
+import { Timeline } from '../timeline/Timeline';
+
+export function RightDrawerTimeline() {
+ const [commentableEntityArray] = useRecoilState(commentableEntityArrayState);
+
+ useHotkeysScopeOnMountOnly({
+ scope: InternalHotkeysScope.RightDrawer,
+ customScopes: { goto: false, 'command-menu': true },
+ });
+
+ return (
+ <RightDrawerPage>
+ <RightDrawerTopBar title="Timeline" />
+ <RightDrawerBody>
+ {commentableEntityArray.map((commentableEntity) => (
+ <Timeline
+ key={commentableEntity.id}
+ entity={{
+ id: commentableEntity?.id ?? '',
+ type: commentableEntity.type,
+ }}
+ />
+ ))}
+ </RightDrawerBody>
+ </RightDrawerPage>
+ );
+}
diff --git a/front/src/modules/comments/components/right-drawer/create/RightDrawerCreateCommentThread.tsx b/front/src/modules/comments/components/right-drawer/create/RightDrawerCreateCommentThread.tsx
new file mode 100644
index 00000000000..862a47f8ac2
--- /dev/null
+++ b/front/src/modules/comments/components/right-drawer/create/RightDrawerCreateCommentThread.tsx
@@ -0,0 +1,38 @@
+import { useRecoilValue } from 'recoil';
+
+import { viewableCommentThreadIdState } from '@/comments/states/viewableCommentThreadIdState';
+import { useHotkeysScopeOnMountOnly } from '@/hotkeys/hooks/useHotkeysScopeOnMountOnly';
+import { InternalHotkeysScope } from '@/hotkeys/types/internal/InternalHotkeysScope';
+import { RightDrawerBody } from '@/ui/layout/right-drawer/components/RightDrawerBody';
+import { RightDrawerPage } from '@/ui/layout/right-drawer/components/RightDrawerPage';
+import { RightDrawerTopBar } from '@/ui/layout/right-drawer/components/RightDrawerTopBar';
+
+import { CommentThread } from '../CommentThread';
+
+export function RightDrawerCreateCommentThread() {
+ const commentThreadId = useRecoilValue(viewableCommentThreadIdState);
+
+ useHotkeysScopeOnMountOnly({
+ scope: InternalHotkeysScope.RightDrawer,
+ customScopes: { goto: false, 'command-menu': true },
+ });
+
+ return (
+ <RightDrawerPage>
+ <RightDrawerTopBar
+ title="New note"
+ onSave={() => {
+ return;
+ }}
+ />
+ <RightDrawerBody>
+ {commentThreadId && (
+ <CommentThread
+ commentThreadId={commentThreadId}
+ showComment={false}
+ />
+ )}
+ </RightDrawerBody>
+ </RightDrawerPage>
+ );
+}
diff --git a/front/src/modules/comments/components/RightDrawerCreateCommentThread.tsx b/front/src/modules/comments/components/right-drawer/edit/RightDrawerEditCommentThread.tsx
similarity index 61%
rename from front/src/modules/comments/components/RightDrawerCreateCommentThread.tsx
rename to front/src/modules/comments/components/right-drawer/edit/RightDrawerEditCommentThread.tsx
index 78e497dc5f8..4fa175b6287 100644
--- a/front/src/modules/comments/components/RightDrawerCreateCommentThread.tsx
+++ b/front/src/modules/comments/components/right-drawer/edit/RightDrawerEditCommentThread.tsx
@@ -1,21 +1,25 @@
+import { useRecoilValue } from 'recoil';
+
+import { viewableCommentThreadIdState } from '@/comments/states/viewableCommentThreadIdState';
import { useHotkeysScopeOnMountOnly } from '@/hotkeys/hooks/useHotkeysScopeOnMountOnly';
import { InternalHotkeysScope } from '@/hotkeys/types/internal/InternalHotkeysScope';
import { RightDrawerBody } from '@/ui/layout/right-drawer/components/RightDrawerBody';
import { RightDrawerPage } from '@/ui/layout/right-drawer/components/RightDrawerPage';
import { RightDrawerTopBar } from '@/ui/layout/right-drawer/components/RightDrawerTopBar';
-import { CommentThreadCreateMode } from './CommentThreadCreateMode';
+import { CommentThread } from '../CommentThread';
-export function RightDrawerCreateCommentThread() {
+export function RightDrawerEditCommentThread() {
useHotkeysScopeOnMountOnly({
scope: InternalHotkeysScope.RightDrawer,
customScopes: { goto: false, 'command-menu': true },
});
+ const commentThreadId = useRecoilValue(viewableCommentThreadIdState);
return (
<RightDrawerPage>
- <RightDrawerTopBar title="New comment" />
+ <RightDrawerTopBar title="" />
<RightDrawerBody>
- <CommentThreadCreateMode />
+ {commentThreadId && <CommentThread commentThreadId={commentThreadId} />}
</RightDrawerBody>
</RightDrawerPage>
);
diff --git a/front/src/modules/comments/components/CellCommentChip.tsx b/front/src/modules/comments/components/table/CellCommentChip.tsx
similarity index 100%
rename from front/src/modules/comments/components/CellCommentChip.tsx
rename to front/src/modules/comments/components/table/CellCommentChip.tsx
diff --git a/front/src/modules/comments/components/CommentChip.tsx b/front/src/modules/comments/components/table/CommentChip.tsx
similarity index 92%
rename from front/src/modules/comments/components/CommentChip.tsx
rename to front/src/modules/comments/components/table/CommentChip.tsx
index d40e01c34f6..6afe48ce438 100644
--- a/front/src/modules/comments/components/CommentChip.tsx
+++ b/front/src/modules/comments/components/table/CommentChip.tsx
@@ -41,9 +41,8 @@ const StyledChip = styled.div`
const StyledCount = styled.div`
align-items: center;
display: flex;
- font-size: 12px;
-
- font-weight: 500;
+ font-size: ${({ theme }) => theme.font.size.sm};
+ font-weight: ${({ theme }) => theme.font.weight.medium};
justify-content: center;
`;
diff --git a/front/src/modules/comments/components/__stories__/CommentChip.stories.tsx b/front/src/modules/comments/components/table/__stories__/CommentChip.stories.tsx
similarity index 100%
rename from front/src/modules/comments/components/__stories__/CommentChip.stories.tsx
rename to front/src/modules/comments/components/table/__stories__/CommentChip.stories.tsx
diff --git a/front/src/modules/comments/components/timeline/Timeline.tsx b/front/src/modules/comments/components/timeline/Timeline.tsx
new file mode 100644
index 00000000000..5c3c2301f6c
--- /dev/null
+++ b/front/src/modules/comments/components/timeline/Timeline.tsx
@@ -0,0 +1,288 @@
+import React from 'react';
+import { Tooltip } from 'react-tooltip';
+import styled from '@emotion/styled';
+
+import { useOpenCommentThreadRightDrawer } from '@/comments/hooks/useOpenCommentThreadRightDrawer';
+import { useOpenCreateCommentThreadDrawer } from '@/comments/hooks/useOpenCreateCommentThreadDrawer';
+import { CommentableEntity } from '@/comments/types/CommentableEntity';
+import { CommentThreadForDrawer } from '@/comments/types/CommentThreadForDrawer';
+import { TableActionBarButtonToggleComments } from '@/ui/components/table/action-bar/TableActionBarButtonOpenComments';
+import { IconCirclePlus, IconNotes } from '@/ui/icons/index';
+import {
+ beautifyExactDate,
+ beautifyPastDateRelativeToNow,
+} from '@/utils/datetime/date-utils';
+import {
+ SortOrder,
+ useGetCommentThreadsByTargetsQuery,
+} from '~/generated/graphql';
+
+const StyledMainContainer = styled.div`
+ align-items: flex-start;
+ align-self: stretch;
+ display: flex;
+ flex: 1 0 0;
+ flex-direction: column;
+ justify-content: center;
+`;
+
+const StyledTimelineContainer = styled.div`
+ align-items: center;
+ align-self: stretch;
+ display: flex;
+ flex: 1 0 0;
+ flex-direction: column;
+ gap: 4px;
+ justify-content: flex-start;
+ overflow-y: auto;
+ padding: 12px 16px 12px 16px;
+`;
+
+const StyledTimelineEmptyContainer = styled.div`
+ align-items: center;
+ align-self: stretch;
+ display: flex;
+ flex: 1 0 0;
+ flex-direction: column;
+ gap: 8px;
+ justify-content: center;
+`;
+
+const StyledEmptyTimelineTitle = styled.div`
+ color: ${({ theme }) => theme.font.color.secondary};
+ font-size: ${({ theme }) => theme.font.size.xxl};
+ font-weight: ${({ theme }) => theme.font.weight.semiBold};
+ line-height: ${({ theme }) => theme.text.lineHeight.md};
+`;
+
+const StyledEmptyTimelineSubTitle = styled.div`
+ color: ${({ theme }) => theme.font.color.extraLight};
+ font-size: ${({ theme }) => theme.font.size.xxl};
+ font-weight: ${({ theme }) => theme.font.weight.semiBold};
+ line-height: ${({ theme }) => theme.text.lineHeight.md};
+`;
+
+const StyledTimelineItemContainer = styled.div`
+ align-items: center;
+ align-self: stretch;
+ display: flex;
+ gap: 16px;
+`;
+
+const StyledIconContainer = styled.div`
+ align-items: center;
+ color: ${({ theme }) => theme.font.color.tertiary};
+ display: flex;
+ height: 20px;
+ justify-content: center;
+ width: 20px;
+`;
+
+const StyledItemTitleContainer = styled.div`
+ align-content: flex-start;
+ align-items: center;
+ color: ${({ theme }) => theme.font.color.tertiary};
+ display: flex;
+ flex: 1 0 0;
+ flex-wrap: wrap;
+ gap: 4px 8px;
+ height: 20px;
+ span {
+ color: ${({ theme }) => theme.font.color.secondary};
+ }
+`;
+
+const StyledItemTitleDate = styled.div`
+ align-items: center;
+ color: ${({ theme }) => theme.font.color.tertiary};
+ display: flex;
+ gap: 8px;
+ justify-content: flex-end;
+`;
+
+const StyledVerticalLineContainer = styled.div`
+ align-items: center;
+ align-self: stretch;
+ display: flex;
+ gap: 8px;
+ justify-content: center;
+ width: 20px;
+`;
+
+const StyledVerticalLine = styled.div`
+ align-self: stretch;
+ background: ${({ theme }) => theme.border.color.light};
+ flex-shrink: 0;
+ width: 2px;
+`;
+
+const StyledCardContainer = styled.div`
+ align-items: center;
+ cursor: pointer;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ padding: 4px 0px 20px 0px;
+`;
+
+const StyledCard = styled.div`
+ align-items: flex-start;
+ align-self: stretch;
+ background: ${({ theme }) => theme.background.secondary};
+ border: 1px solid ${({ theme }) => theme.border.color.medium};
+ border-radius: 4px;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ max-width: 400px;
+ padding: 12px;
+`;
+
+const StyledCardTitle = styled.div`
+ color: ${({ theme }) => theme.font.color.primary};
+ font-weight: ${({ theme }) => theme.font.weight.medium};
+ line-height: ${({ theme }) => theme.text.lineHeight.lg};
+`;
+
+const StyledCardContent = styled.div`
+ -webkit-box-orient: vertical;
+
+ -webkit-line-clamp: 3;
+ align-self: stretch;
+ color: ${({ theme }) => theme.font.color.secondary};
+ display: -webkit-box;
+ overflow: hidden;
+ text-overflow: ellipsis;
+`;
+
+const StyledTooltip = styled(Tooltip)`
+ background-color: ${({ theme }) => theme.background.primary};
+
+ box-shadow: 0px 2px 4px 3px
+ ${({ theme }) => theme.background.transparent.light};
+
+ box-shadow: 2px 4px 16px 6px
+ ${({ theme }) => theme.background.transparent.light};
+
+ color: ${({ theme }) => theme.font.color.primary};
+
+ opacity: 1;
+ padding: 8px;
+`;
+
+const StyledTopActionBar = styled.div`
+ align-items: flex-start;
+ align-self: stretch;
+ backdrop-filter: blur(5px);
+ border-bottom: 1px solid ${({ theme }) => theme.border.color.light};
+ border-top-right-radius: 8px;
+ display: flex;
+ flex-direction: column;
+ left: 0px;
+ padding: 12px 16px 12px 16px;
+ position: sticky;
+ top: 0px;
+`;
+
+export function Timeline({ entity }: { entity: CommentableEntity }) {
+ const { data: queryResult } = useGetCommentThreadsByTargetsQuery({
+ variables: {
+ commentThreadTargetIds: [entity.id],
+ orderBy: [
+ {
+ createdAt: SortOrder.Desc,
+ },
+ ],
+ },
+ });
+
+ const openCommentThreadRightDrawer = useOpenCommentThreadRightDrawer();
+
+ const openCreateCommandThread = useOpenCreateCommentThreadDrawer();
+
+ const commentThreads: CommentThreadForDrawer[] =
+ queryResult?.findManyCommentThreads ?? [];
+
+ if (!commentThreads.length) {
+ return (
+ <StyledTimelineEmptyContainer>
+ <StyledEmptyTimelineTitle>No activity yet</StyledEmptyTimelineTitle>
+ <StyledEmptyTimelineSubTitle>Create one:</StyledEmptyTimelineSubTitle>
+ <TableActionBarButtonToggleComments
+ onClick={() => openCreateCommandThread(entity)}
+ />
+ </StyledTimelineEmptyContainer>
+ );
+ }
+
+ return (
+ <StyledMainContainer>
+ <StyledTopActionBar>
+ <StyledTimelineItemContainer>
+ <StyledIconContainer>
+ <IconCirclePlus />
+ </StyledIconContainer>
+
+ <TableActionBarButtonToggleComments
+ onClick={() => openCreateCommandThread(entity)}
+ />
+ </StyledTimelineItemContainer>
+ </StyledTopActionBar>
+ <StyledTimelineContainer>
+ {commentThreads.map((commentThread) => {
+ const beautifiedCreatedAt = beautifyPastDateRelativeToNow(
+ commentThread.createdAt,
+ );
+ const exactCreatedAt = beautifyExactDate(commentThread.createdAt);
+ const body = JSON.parse(commentThread.body ?? '{}')[0]?.content[0]
+ ?.text;
+
+ return (
+ <React.Fragment key={commentThread.id}>
+ <StyledTimelineItemContainer>
+ <StyledIconContainer>
+ <IconNotes />
+ </StyledIconContainer>
+ <StyledItemTitleContainer>
+ <span>
+ {commentThread.author.firstName}{' '}
+ {commentThread.author.lastName}
+ </span>
+ created a note
+ </StyledItemTitleContainer>
+ <StyledItemTitleDate id={`id-${commentThread.id}`}>
+ {beautifiedCreatedAt} ago
+ </StyledItemTitleDate>
+ <StyledTooltip
+ anchorSelect={`#id-${commentThread.id}`}
+ content={exactCreatedAt}
+ clickable
+ noArrow
+ />
+ </StyledTimelineItemContainer>
+ <StyledTimelineItemContainer>
+ <StyledVerticalLineContainer>
+ <StyledVerticalLine></StyledVerticalLine>
+ </StyledVerticalLineContainer>
+ <StyledCardContainer>
+ <StyledCard
+ onClick={() =>
+ openCommentThreadRightDrawer(commentThread.id)
+ }
+ >
+ <StyledCardTitle>
+ {commentThread.title ? commentThread.title : '(No title)'}
+ </StyledCardTitle>
+ <StyledCardContent>
+ {body ? body : '(No content)'}
+ </StyledCardContent>
+ </StyledCard>
+ </StyledCardContainer>
+ </StyledTimelineItemContainer>
+ </React.Fragment>
+ );
+ })}
+ </StyledTimelineContainer>
+ </StyledMainContainer>
+ );
+}
diff --git a/front/src/modules/comments/hooks/useHandleCheckableCommentThreadTargetChange.ts b/front/src/modules/comments/hooks/useHandleCheckableCommentThreadTargetChange.ts
index 1c0bcf52eba..b544878296f 100644
--- a/front/src/modules/comments/hooks/useHandleCheckableCommentThreadTargetChange.ts
+++ b/front/src/modules/comments/hooks/useHandleCheckableCommentThreadTargetChange.ts
@@ -4,18 +4,23 @@ import { v4 } from 'uuid';
import { GET_COMPANIES } from '@/companies/services';
import { GET_PEOPLE } from '@/people/services';
import {
+ CommentThread,
+ CommentThreadTarget,
useAddCommentThreadTargetOnCommentThreadMutation,
useRemoveCommentThreadTargetOnCommentThreadMutation,
} from '~/generated/graphql';
import { GET_COMMENT_THREADS_BY_TARGETS } from '../services';
import { CommentableEntityForSelect } from '../types/CommentableEntityForSelect';
-import { CommentThreadForDrawer } from '../types/CommentThreadForDrawer';
export function useHandleCheckableCommentThreadTargetChange({
commentThread,
}: {
- commentThread: CommentThreadForDrawer;
+ commentThread?: Pick<CommentThread, 'id'> & {
+ commentThreadTargets: Array<
+ Pick<CommentThreadTarget, 'id' | 'commentableId'>
+ >;
+ };
}) {
const [addCommentThreadTargetOnCommentThread] =
useAddCommentThreadTargetOnCommentThreadMutation({
@@ -39,6 +44,9 @@ export function useHandleCheckableCommentThreadTargetChange({
newCheckedValue: boolean,
entity: CommentableEntityForSelect,
) {
+ if (!commentThread) {
+ return;
+ }
if (newCheckedValue) {
addCommentThreadTargetOnCommentThread({
variables: {
diff --git a/front/src/modules/comments/hooks/useOpenCommentThreadRightDrawer.ts b/front/src/modules/comments/hooks/useOpenCommentThreadRightDrawer.ts
new file mode 100644
index 00000000000..f7254b40cb4
--- /dev/null
+++ b/front/src/modules/comments/hooks/useOpenCommentThreadRightDrawer.ts
@@ -0,0 +1,18 @@
+import { useRecoilState } from 'recoil';
+
+import { RightDrawerPages } from '@/ui/layout/right-drawer/types/RightDrawerPages';
+
+import { useOpenRightDrawer } from '../../ui/layout/right-drawer/hooks/useOpenRightDrawer';
+import { viewableCommentThreadIdState } from '../states/viewableCommentThreadIdState';
+
+export function useOpenCommentThreadRightDrawer() {
+ const openRightDrawer = useOpenRightDrawer();
+ const [, setViewableCommentThreadId] = useRecoilState(
+ viewableCommentThreadIdState,
+ );
+
+ return function openCommentThreadRightDrawer(commentThreadId: string) {
+ setViewableCommentThreadId(commentThreadId);
+ openRightDrawer(RightDrawerPages.EditCommentThread);
+ };
+}
diff --git a/front/src/modules/comments/hooks/useOpenCreateCommentDrawerForSelectedRowIds.ts b/front/src/modules/comments/hooks/useOpenCreateCommentDrawerForSelectedRowIds.ts
index 63a327a984a..5bf8dc5eff1 100644
--- a/front/src/modules/comments/hooks/useOpenCreateCommentDrawerForSelectedRowIds.ts
+++ b/front/src/modules/comments/hooks/useOpenCreateCommentDrawerForSelectedRowIds.ts
@@ -1,38 +1,73 @@
+import { getOperationName } from '@apollo/client/utilities/graphql/getFromAST';
import { useRecoilState, useRecoilValue } from 'recoil';
+import { v4 } from 'uuid';
+import { currentUserState } from '@/auth/states/currentUserState';
+import { GET_COMPANIES } from '@/companies/services';
+import { GET_PEOPLE } from '@/people/services';
+import { RightDrawerPages } from '@/ui/layout/right-drawer/types/RightDrawerPages';
import { selectedRowIdsState } from '@/ui/tables/states/selectedRowIdsState';
-import { CommentableType } from '~/generated/graphql';
+import {
+ CommentableType,
+ useCreateCommentThreadMutation,
+} from '~/generated/graphql';
import { useOpenRightDrawer } from '../../ui/layout/right-drawer/hooks/useOpenRightDrawer';
+import {
+ GET_COMMENT_THREAD,
+ GET_COMMENT_THREADS_BY_TARGETS,
+} from '../services';
import { commentableEntityArrayState } from '../states/commentableEntityArrayState';
-import { createdCommentThreadIdState } from '../states/createdCommentThreadIdState';
+import { viewableCommentThreadIdState } from '../states/viewableCommentThreadIdState';
import { CommentableEntity } from '../types/CommentableEntity';
export function useOpenCreateCommentThreadDrawerForSelectedRowIds() {
const openRightDrawer = useOpenRightDrawer();
+ const [createCommentThreadMutation] = useCreateCommentThreadMutation();
+ const currentUser = useRecoilValue(currentUserState);
+ const [, setViewableCommentThreadId] = useRecoilState(
+ viewableCommentThreadIdState,
+ );
const [, setCommentableEntityArray] = useRecoilState(
commentableEntityArrayState,
);
- const [, setCreatedCommentThreadId] = useRecoilState(
- createdCommentThreadIdState,
- );
-
- const selectedPeopleIds = useRecoilValue(selectedRowIdsState);
+ const selectedEntityIds = useRecoilValue(selectedRowIdsState);
return function openCreateCommentDrawerForSelectedRowIds(
entityType: CommentableType,
) {
- const commentableEntityArray: CommentableEntity[] = selectedPeopleIds.map(
+ const commentableEntityArray: CommentableEntity[] = selectedEntityIds.map(
(id) => ({
type: entityType,
id,
}),
);
- setCreatedCommentThreadId(null);
- setCommentableEntityArray(commentableEntityArray);
- openRightDrawer('create-comment-thread');
+ createCommentThreadMutation({
+ variables: {
+ authorId: currentUser?.id ?? '',
+ commentThreadId: v4(),
+ createdAt: new Date().toISOString(),
+ commentThreadTargetArray: commentableEntityArray.map((entity) => ({
+ commentableId: entity.id,
+ commentableType: entity.type,
+ id: v4(),
+ createdAt: new Date().toISOString(),
+ })),
+ },
+ refetchQueries: [
+ getOperationName(GET_COMPANIES) ?? '',
+ getOperationName(GET_PEOPLE) ?? '',
+ getOperationName(GET_COMMENT_THREAD) ?? '',
+ getOperationName(GET_COMMENT_THREADS_BY_TARGETS) ?? '',
+ ],
+ onCompleted(data) {
+ setViewableCommentThreadId(data.createOneCommentThread.id);
+ setCommentableEntityArray(commentableEntityArray);
+ openRightDrawer(RightDrawerPages.CreateCommentThread);
+ },
+ });
};
}
diff --git a/front/src/modules/comments/hooks/useOpenCreateCommentThreadDrawer.ts b/front/src/modules/comments/hooks/useOpenCreateCommentThreadDrawer.ts
new file mode 100644
index 00000000000..1447f34342c
--- /dev/null
+++ b/front/src/modules/comments/hooks/useOpenCreateCommentThreadDrawer.ts
@@ -0,0 +1,60 @@
+import { getOperationName } from '@apollo/client/utilities';
+import { useRecoilState, useRecoilValue } from 'recoil';
+import { v4 } from 'uuid';
+
+import { currentUserState } from '@/auth/states/currentUserState';
+import { GET_COMPANIES } from '@/companies/services';
+import { GET_PEOPLE } from '@/people/services';
+import { RightDrawerPages } from '@/ui/layout/right-drawer/types/RightDrawerPages';
+import { useCreateCommentThreadMutation } from '~/generated/graphql';
+
+import { useOpenRightDrawer } from '../../ui/layout/right-drawer/hooks/useOpenRightDrawer';
+import {
+ GET_COMMENT_THREAD,
+ GET_COMMENT_THREADS_BY_TARGETS,
+} from '../services';
+import { commentableEntityArrayState } from '../states/commentableEntityArrayState';
+import { viewableCommentThreadIdState } from '../states/viewableCommentThreadIdState';
+import { CommentableEntity } from '../types/CommentableEntity';
+
+export function useOpenCreateCommentThreadDrawer() {
+ const openRightDrawer = useOpenRightDrawer();
+ const [createCommentThreadMutation] = useCreateCommentThreadMutation();
+ const currentUser = useRecoilValue(currentUserState);
+
+ const [, setCommentableEntityArray] = useRecoilState(
+ commentableEntityArrayState,
+ );
+ const [, setViewableCommentThreadId] = useRecoilState(
+ viewableCommentThreadIdState,
+ );
+
+ return function openCreateCommentThreadDrawer(entity: CommentableEntity) {
+ createCommentThreadMutation({
+ variables: {
+ authorId: currentUser?.id ?? '',
+ commentThreadId: v4(),
+ createdAt: new Date().toISOString(),
+ commentThreadTargetArray: [
+ {
+ commentableId: entity.id,
+ commentableType: entity.type,
+ id: v4(),
+ createdAt: new Date().toISOString(),
+ },
+ ],
+ },
+ refetchQueries: [
+ getOperationName(GET_COMPANIES) ?? '',
+ getOperationName(GET_PEOPLE) ?? '',
+ getOperationName(GET_COMMENT_THREAD) ?? '',
+ getOperationName(GET_COMMENT_THREADS_BY_TARGETS) ?? '',
+ ],
+ onCompleted(data) {
+ setViewableCommentThreadId(data.createOneCommentThread.id);
+ setCommentableEntityArray([entity]);
+ openRightDrawer(RightDrawerPages.CreateCommentThread);
+ },
+ });
+ };
+}
diff --git a/front/src/modules/comments/hooks/useOpenCommentRightDrawer.ts b/front/src/modules/comments/hooks/useOpenTimelineRightDrawer.ts
similarity index 70%
rename from front/src/modules/comments/hooks/useOpenCommentRightDrawer.ts
rename to front/src/modules/comments/hooks/useOpenTimelineRightDrawer.ts
index 6f237e681df..b9edffcf344 100644
--- a/front/src/modules/comments/hooks/useOpenCommentRightDrawer.ts
+++ b/front/src/modules/comments/hooks/useOpenTimelineRightDrawer.ts
@@ -1,19 +1,21 @@
import { useRecoilState } from 'recoil';
+import { RightDrawerPages } from '@/ui/layout/right-drawer/types/RightDrawerPages';
+
import { useOpenRightDrawer } from '../../ui/layout/right-drawer/hooks/useOpenRightDrawer';
import { commentableEntityArrayState } from '../states/commentableEntityArrayState';
import { CommentableEntity } from '../types/CommentableEntity';
-export function useOpenCommentRightDrawer() {
+export function useOpenTimelineRightDrawer() {
const openRightDrawer = useOpenRightDrawer();
const [, setCommentableEntityArray] = useRecoilState(
commentableEntityArrayState,
);
- return function openCommentRightDrawer(
+ return function openTimelineRightDrawer(
commentableEntityArray: CommentableEntity[],
) {
setCommentableEntityArray(commentableEntityArray);
- openRightDrawer('comments');
+ openRightDrawer(RightDrawerPages.Timeline);
};
}
diff --git a/front/src/modules/comments/services/create.ts b/front/src/modules/comments/services/create.ts
index 83b721ab811..567b1c49a3c 100644
--- a/front/src/modules/comments/services/create.ts
+++ b/front/src/modules/comments/services/create.ts
@@ -33,12 +33,12 @@ export const CREATE_COMMENT = gql`
`;
export const CREATE_COMMENT_THREAD_WITH_COMMENT = gql`
- mutation CreateCommentThreadWithComment(
+ mutation CreateCommentThread(
$commentThreadId: String!
- $commentText: String!
+ $body: String
+ $title: String
$authorId: String!
$createdAt: DateTime!
- $commentId: String!
$commentThreadTargetArray: [CommentThreadTargetCreateManyCommentThreadInput!]!
) {
createOneCommentThread(
@@ -46,16 +46,9 @@ export const CREATE_COMMENT_THREAD_WITH_COMMENT = gql`
id: $commentThreadId
createdAt: $createdAt
updatedAt: $createdAt
- comments: {
- createMany: {
- data: {
- authorId: $authorId
- id: $commentId
- createdAt: $createdAt
- body: $commentText
- }
- }
- }
+ author: { connect: { id: $authorId } }
+ body: $body
+ title: $title
commentThreadTargets: {
createMany: { data: $commentThreadTargetArray, skipDuplicates: true }
}
@@ -64,6 +57,7 @@ export const CREATE_COMMENT_THREAD_WITH_COMMENT = gql`
id
createdAt
updatedAt
+ authorId
commentThreadTargets {
id
createdAt
diff --git a/front/src/modules/comments/services/select.ts b/front/src/modules/comments/services/select.ts
index 694d1b15591..82b4851f179 100644
--- a/front/src/modules/comments/services/select.ts
+++ b/front/src/modules/comments/services/select.ts
@@ -14,6 +14,14 @@ export const GET_COMMENT_THREADS_BY_TARGETS = gql`
}
) {
id
+ createdAt
+ title
+ body
+ author {
+ id
+ firstName
+ lastName
+ }
comments {
id
body
@@ -40,6 +48,14 @@ export const GET_COMMENT_THREAD = gql`
query GetCommentThread($commentThreadId: String!) {
findManyCommentThreads(where: { id: { equals: $commentThreadId } }) {
id
+ createdAt
+ body
+ title
+ author {
+ id
+ firstName
+ lastName
+ }
comments {
id
body
@@ -54,6 +70,7 @@ export const GET_COMMENT_THREAD = gql`
}
}
commentThreadTargets {
+ id
commentableId
commentableType
}
diff --git a/front/src/modules/comments/services/update.ts b/front/src/modules/comments/services/update.ts
index 6cee16a11c6..6e45b20290a 100644
--- a/front/src/modules/comments/services/update.ts
+++ b/front/src/modules/comments/services/update.ts
@@ -68,3 +68,33 @@ export const DELETE_COMMENT_THREAD = gql`
}
}
`;
+
+export const UPDATE_COMMENT_THREAD_TITLE = gql`
+ mutation UpdateCommentThreadTitle(
+ $commentThreadId: String!
+ $commentThreadTitle: String
+ ) {
+ updateOneCommentThread(
+ where: { id: $commentThreadId }
+ data: { title: { set: $commentThreadTitle } }
+ ) {
+ id
+ title
+ }
+ }
+`;
+
+export const UPDATE_COMMENT_THREAD_BODY = gql`
+ mutation UpdateCommentThreadBody(
+ $commentThreadId: String!
+ $commentThreadBody: String
+ ) {
+ updateOneCommentThread(
+ where: { id: $commentThreadId }
+ data: { body: { set: $commentThreadBody } }
+ ) {
+ id
+ body
+ }
+ }
+`;
diff --git a/front/src/modules/comments/states/createdCommentThreadIdState.ts b/front/src/modules/comments/states/createdCommentThreadIdState.ts
deleted file mode 100644
index 47809154ea0..00000000000
--- a/front/src/modules/comments/states/createdCommentThreadIdState.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import { atom } from 'recoil';
-
-export const createdCommentThreadIdState = atom<string | null>({
- key: 'comments/created-comment-thread-id',
- default: null,
-});
diff --git a/front/src/modules/comments/states/viewableCommentThreadIdState.ts b/front/src/modules/comments/states/viewableCommentThreadIdState.ts
new file mode 100644
index 00000000000..0caff997356
--- /dev/null
+++ b/front/src/modules/comments/states/viewableCommentThreadIdState.ts
@@ -0,0 +1,6 @@
+import { atom } from 'recoil';
+
+export const viewableCommentThreadIdState = atom<string | null>({
+ key: 'comments/viewable-comment-thread-id',
+ default: null,
+});
diff --git a/front/src/modules/companies/components/CompanyChip.tsx b/front/src/modules/companies/components/CompanyChip.tsx
index a0f6a389cc6..91e3cf94f88 100644
--- a/front/src/modules/companies/components/CompanyChip.tsx
+++ b/front/src/modules/companies/components/CompanyChip.tsx
@@ -1,23 +1,27 @@
+import { Link } from 'react-router-dom';
+import { Theme } from '@emotion/react';
import styled from '@emotion/styled';
import { Avatar } from '@/users/components/Avatar';
export type CompanyChipPropsType = {
+ id?: string;
name: string;
picture?: string;
};
-const StyledContainer = styled.span`
+const baseStyle = ({ theme }: { theme: Theme }) => `
align-items: center;
- background-color: ${({ theme }) => theme.background.tertiary};
- border-radius: ${({ theme }) => theme.spacing(1)};
- color: ${({ theme }) => theme.font.color.primary};
+ background-color: ${theme.background.tertiary};
+ border-radius: ${theme.spacing(1)};
+ color: ${theme.font.color.primary};
display: inline-flex;
- gap: ${({ theme }) => theme.spacing(1)};
- height: calc(20px - 2 * ${({ theme }) => theme.spacing(1)});
+ gap: ${theme.spacing(1)};
+ height: calc(20px - 2 * ${theme.spacing(1)});
overflow: hidden;
+ padding: ${theme.spacing(1)};
- padding: ${({ theme }) => theme.spacing(1)};
+ text-decoration: none;
user-select: none;
@@ -38,9 +42,19 @@ const StyledName = styled.span`
white-space: nowrap;
`;
-function CompanyChip({ name, picture }: CompanyChipPropsType) {
+const StyledContainerLink = styled(Link)`
+ ${baseStyle}
+`;
+
+const StyledContainerNoLink = styled.div`
+ ${baseStyle}
+`;
+
+function CompanyChip({ id, name, picture }: CompanyChipPropsType) {
+ const ContainerComponent = id ? StyledContainerLink : StyledContainerNoLink;
+
return (
- <StyledContainer data-testid="company-chip">
+ <ContainerComponent data-testid="company-chip" to={`/companies/${id}`}>
{picture && (
<Avatar
avatarUrl={picture?.toString()}
@@ -50,7 +64,7 @@ function CompanyChip({ name, picture }: CompanyChipPropsType) {
/>
)}
<StyledName>{name}</StyledName>
- </StyledContainer>
+ </ContainerComponent>
);
}
diff --git a/front/src/modules/companies/components/CompanyEditableNameCell.tsx b/front/src/modules/companies/components/CompanyEditableNameCell.tsx
index c2b9fd3aca1..12d888ba768 100644
--- a/front/src/modules/companies/components/CompanyEditableNameCell.tsx
+++ b/front/src/modules/companies/components/CompanyEditableNameCell.tsx
@@ -1,5 +1,5 @@
-import { CellCommentChip } from '@/comments/components/CellCommentChip';
-import { useOpenCommentRightDrawer } from '@/comments/hooks/useOpenCommentRightDrawer';
+import { CellCommentChip } from '@/comments/components/table/CellCommentChip';
+import { useOpenTimelineRightDrawer } from '@/comments/hooks/useOpenTimelineRightDrawer';
import { EditableCellChip } from '@/ui/components/editable-cell/types/EditableChip';
import { getLogoUrlFromDomainName } from '@/utils/utils';
import {
@@ -13,12 +13,12 @@ import CompanyChip from './CompanyChip';
type OwnProps = {
company: Pick<
GetCompaniesQuery['companies'][0],
- 'id' | 'name' | 'domainName' | '_commentCount' | 'accountOwner'
+ 'id' | 'name' | 'domainName' | '_commentThreadCount' | 'accountOwner'
>;
};
export function CompanyEditableNameChipCell({ company }: OwnProps) {
- const openCommentRightDrawer = useOpenCommentRightDrawer();
+ const openCommentRightDrawer = useOpenTimelineRightDrawer();
const [updateCompany] = useUpdateCompanyMutation();
function handleCommentClick(event: React.MouseEvent<HTMLDivElement>) {
@@ -38,6 +38,7 @@ export function CompanyEditableNameChipCell({ company }: OwnProps) {
value={company.name || ''}
placeholder="Name"
picture={getLogoUrlFromDomainName(company.domainName)}
+ id={company.id}
changeHandler={(value: string) => {
updateCompany({
variables: {
@@ -50,7 +51,7 @@ export function CompanyEditableNameChipCell({ company }: OwnProps) {
ChipComponent={CompanyChip}
rightEndContents={[
<CellCommentChip
- count={company._commentCount ?? 0}
+ count={company._commentThreadCount ?? 0}
onClick={handleCommentClick}
/>,
]}
diff --git a/front/src/modules/companies/components/__stories__/CompanyChip.stories.tsx b/front/src/modules/companies/components/__stories__/CompanyChip.stories.tsx
index 0d5439a0a8d..54c37f3dde6 100644
--- a/front/src/modules/companies/components/__stories__/CompanyChip.stories.tsx
+++ b/front/src/modules/companies/components/__stories__/CompanyChip.stories.tsx
@@ -33,8 +33,8 @@ export const SmallName: Story = {
render: getRenderWrapperForComponent(
<TestCellContainer>
<CompanyChip
- name="Instragram"
- picture="https://api.faviconkit.com/instagram.com/144"
+ name="Airbnb"
+ picture="https://api.faviconkit.com/airbnb.com/144"
/>
</TestCellContainer>,
),
diff --git a/front/src/modules/companies/services/index.ts b/front/src/modules/companies/services/index.ts
index 18c6c2f7dd7..41161a6b18a 100644
--- a/front/src/modules/companies/services/index.ts
+++ b/front/src/modules/companies/services/index.ts
@@ -1,2 +1,3 @@
export * from './select';
+export * from './show';
export * from './update';
diff --git a/front/src/modules/companies/services/select.ts b/front/src/modules/companies/services/select.ts
index 96373225b80..1077d33341f 100644
--- a/front/src/modules/companies/services/select.ts
+++ b/front/src/modules/companies/services/select.ts
@@ -22,7 +22,7 @@ export const GET_COMPANIES = gql`
createdAt
address
employees
- _commentCount
+ _commentThreadCount
accountOwner {
id
email
diff --git a/front/src/modules/companies/services/show.ts b/front/src/modules/companies/services/show.ts
new file mode 100644
index 00000000000..da4db603f25
--- /dev/null
+++ b/front/src/modules/companies/services/show.ts
@@ -0,0 +1,26 @@
+import { gql } from '@apollo/client';
+
+import { useGetCompanyQuery } from '~/generated/graphql';
+
+export const GET_COMPANY = gql`
+ query GetCompany($id: String!) {
+ findUniqueCompany(id: $id) {
+ id
+ domainName
+ name
+ createdAt
+ address
+ employees
+ _commentThreadCount
+ accountOwner {
+ id
+ email
+ displayName
+ }
+ }
+ }
+`;
+
+export function useCompanyQuery(id: string) {
+ return useGetCompanyQuery({ variables: { id } });
+}
diff --git a/front/src/modules/hotkeys/types/internal/InternalHotkeysScope.ts b/front/src/modules/hotkeys/types/internal/InternalHotkeysScope.ts
index 23bf4efbae9..1c46dee4c50 100644
--- a/front/src/modules/hotkeys/types/internal/InternalHotkeysScope.ts
+++ b/front/src/modules/hotkeys/types/internal/InternalHotkeysScope.ts
@@ -16,4 +16,5 @@ export enum InternalHotkeysScope {
PasswordLogin = 'password-login',
AuthIndex = 'auth-index',
CreateProfile = 'create-profile',
+ ShowPage = 'show-page',
}
diff --git a/front/src/modules/people/components/EditablePeopleFullName.tsx b/front/src/modules/people/components/EditablePeopleFullName.tsx
index 17f219422b7..5b83de8e16b 100644
--- a/front/src/modules/people/components/EditablePeopleFullName.tsx
+++ b/front/src/modules/people/components/EditablePeopleFullName.tsx
@@ -1,15 +1,15 @@
import { useState } from 'react';
import styled from '@emotion/styled';
-import { CellCommentChip } from '@/comments/components/CellCommentChip';
-import { useOpenCommentRightDrawer } from '@/comments/hooks/useOpenCommentRightDrawer';
+import { CellCommentChip } from '@/comments/components/table/CellCommentChip';
+import { useOpenTimelineRightDrawer } from '@/comments/hooks/useOpenTimelineRightDrawer';
import { EditableCellDoubleText } from '@/ui/components/editable-cell/types/EditableCellDoubleText';
import { CommentableType, Person } from '~/generated/graphql';
import { PersonChip } from './PersonChip';
type OwnProps = {
- person: Pick<Person, 'id' | 'firstName' | 'lastName' | '_commentCount'>;
+ person: Pick<Person, 'id' | 'firstName' | 'lastName' | '_commentThreadCount'>;
onChange: (firstName: string, lastName: string) => void;
};
@@ -27,7 +27,7 @@ const RightContainer = styled.div`
export function EditablePeopleFullName({ person, onChange }: OwnProps) {
const [firstNameValue, setFirstNameValue] = useState(person.firstName ?? '');
const [lastNameValue, setLastNameValue] = useState(person.lastName ?? '');
- const openCommentRightDrawer = useOpenCommentRightDrawer();
+ const openCommentRightDrawer = useOpenTimelineRightDrawer();
function handleDoubleTextChange(
firstValue: string,
@@ -60,10 +60,13 @@ export function EditablePeopleFullName({ person, onChange }: OwnProps) {
onChange={handleDoubleTextChange}
nonEditModeContent={
<NoEditModeContainer>
- <PersonChip name={person.firstName + ' ' + person.lastName} />
+ <PersonChip
+ name={person.firstName + ' ' + person.lastName}
+ id={person.id}
+ />
<RightContainer>
<CellCommentChip
- count={person._commentCount ?? 0}
+ count={person._commentThreadCount ?? 0}
onClick={handleCommentClick}
/>
</RightContainer>
diff --git a/front/src/modules/people/components/PeopleCompanyCell.tsx b/front/src/modules/people/components/PeopleCompanyCell.tsx
index e6ccd7c37f6..4df2f160296 100644
--- a/front/src/modules/people/components/PeopleCompanyCell.tsx
+++ b/front/src/modules/people/components/PeopleCompanyCell.tsx
@@ -30,6 +30,7 @@ export function PeopleCompanyCell({ people }: OwnProps) {
}
nonEditModeContent={
<CompanyChip
+ id={people.company?.id ?? ''}
name={people.company?.name ?? ''}
picture={getLogoUrlFromDomainName(people.company?.domainName)}
/>
diff --git a/front/src/modules/people/components/PersonChip.tsx b/front/src/modules/people/components/PersonChip.tsx
index 6f14de76642..e7b656cebb1 100644
--- a/front/src/modules/people/components/PersonChip.tsx
+++ b/front/src/modules/people/components/PersonChip.tsx
@@ -1,54 +1,63 @@
import * as React from 'react';
+import { Link } from 'react-router-dom';
+import { Theme } from '@emotion/react';
import styled from '@emotion/styled';
import PersonPlaceholder from './person-placeholder.png';
export type PersonChipPropsType = {
+ id?: string;
name: string;
picture?: string;
};
-const StyledContainer = styled.span`
+const baseStyle = ({ theme }: { theme: Theme }) => `
align-items: center;
- background-color: ${({ theme }) => theme.background.tertiary};
- border-radius: ${({ theme }) => theme.spacing(1)};
- color: ${({ theme }) => theme.font.color.primary};
+ background-color: ${theme.background.tertiary};
+ border-radius: ${theme.spacing(1)};
+ color: ${theme.font.color.primary};
display: inline-flex;
- gap: ${({ theme }) => theme.spacing(1)};
+ gap: ${theme.spacing(1)};
height: 12px;
-
overflow: hidden;
- padding: ${({ theme }) => theme.spacing(1)};
-
+ padding: ${theme.spacing(1)};
+ text-decoration: none;
:hover {
filter: brightness(95%);
}
-
img {
border-radius: 100%;
height: 14px;
object-fit: cover;
width: 14px;
}
-
white-space: nowrap;
`;
+const StyledContainerLink = styled(Link)`
+ ${baseStyle}
+`;
+
+const StyledContainerNoLink = styled.div`
+ ${baseStyle}
+`;
+
const StyledName = styled.span`
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
`;
-export function PersonChip({ name, picture }: PersonChipPropsType) {
+export function PersonChip({ id, name, picture }: PersonChipPropsType) {
+ const ContainerComponent = id ? StyledContainerLink : StyledContainerNoLink;
return (
- <StyledContainer data-testid="person-chip">
+ <ContainerComponent data-testid="person-chip" to={`/person/${id}`}>
<img
data-testid="person-chip-image"
src={picture ? picture.toString() : PersonPlaceholder.toString()}
alt="person"
/>
<StyledName>{name}</StyledName>
- </StyledContainer>
+ </ContainerComponent>
);
}
diff --git a/front/src/modules/people/services/index.ts b/front/src/modules/people/services/index.ts
index 18c6c2f7dd7..41161a6b18a 100644
--- a/front/src/modules/people/services/index.ts
+++ b/front/src/modules/people/services/index.ts
@@ -1,2 +1,3 @@
export * from './select';
+export * from './show';
export * from './update';
diff --git a/front/src/modules/people/services/select.ts b/front/src/modules/people/services/select.ts
index 2b1d1d39c9a..1a732d1fb96 100644
--- a/front/src/modules/people/services/select.ts
+++ b/front/src/modules/people/services/select.ts
@@ -24,7 +24,7 @@ export const GET_PEOPLE = gql`
firstName
lastName
createdAt
- _commentCount
+ _commentThreadCount
company {
id
name
diff --git a/front/src/modules/people/services/show.ts b/front/src/modules/people/services/show.ts
new file mode 100644
index 00000000000..96a4e4a219f
--- /dev/null
+++ b/front/src/modules/people/services/show.ts
@@ -0,0 +1,19 @@
+import { gql } from '@apollo/client';
+
+import { useGetPersonQuery } from '~/generated/graphql';
+
+export const GET_PERSON = gql`
+ query GetPerson($id: String!) {
+ findUniquePerson(id: $id) {
+ id
+ firstName
+ lastName
+ displayName
+ createdAt
+ }
+ }
+`;
+
+export function usePersonQuery(id: string) {
+ return useGetPersonQuery({ variables: { id } });
+}
diff --git a/front/src/modules/ui/components/buttons/DropdownButton.tsx b/front/src/modules/ui/components/buttons/DropdownButton.tsx
new file mode 100644
index 00000000000..dad76d90f6b
--- /dev/null
+++ b/front/src/modules/ui/components/buttons/DropdownButton.tsx
@@ -0,0 +1,94 @@
+import React, { useState } from 'react';
+import styled from '@emotion/styled';
+
+import { IconChevronDown } from '@/ui/icons/index';
+
+type ButtonProps = React.ComponentProps<'button'>;
+
+export type DropdownOptionType = {
+ label: string;
+ icon: React.ReactNode;
+};
+
+type Props = {
+ options: DropdownOptionType[];
+ onSelection: (value: DropdownOptionType) => void;
+} & ButtonProps;
+
+const StyledButton = styled.button<ButtonProps>`
+ align-items: center;
+ background: ${({ theme }) => theme.background.tertiary};
+ border: 1px solid ${({ theme }) => theme.border.color.medium};
+ border-radius: 4px;
+ color: ${({ theme }) => theme.font.color.secondary};
+ display: flex;
+ font-size: ${({ theme }) => theme.font.size.md};
+ font-weight: ${({ theme }) => theme.font.weight.medium};
+ gap: 8px;
+ height: 24px;
+ line-height: ${({ theme }) => theme.text.lineHeight.lg};
+ padding: 3px 8px;
+
+ svg {
+ align-items: center;
+ display: flex;
+ height: 14px;
+ justify-content: center;
+ width: 14px;
+ }
+`;
+
+const DropdownContainer = styled.div`
+ position: relative;
+`;
+
+const DropdownMenu = styled.div`
+ display: flex;
+ flex-direction: column;
+ margin-top: -2px;
+ position: absolute;
+`;
+
+export function DropdownButton({
+ options,
+ onSelection,
+ ...buttonProps
+}: Props) {
+ const [isOpen, setIsOpen] = useState(false);
+ const [selectedOption, setSelectedOption] = useState(options[0]);
+
+ if (!options.length) {
+ throw new Error('You must provide at least one option.');
+ }
+
+ const handleSelect =
+ (option: DropdownOptionType) =>
+ (event: React.MouseEvent<HTMLButtonElement>) => {
+ event.preventDefault();
+ onSelection(option);
+ setSelectedOption(option);
+ setIsOpen(false);
+ };
+
+ return (
+ <DropdownContainer>
+ <StyledButton onClick={() => setIsOpen(!isOpen)} {...buttonProps}>
+ {selectedOption.icon}
+ {selectedOption.label}
+ {options.length > 1 && <IconChevronDown />}
+ </StyledButton>
+ {isOpen && (
+ <DropdownMenu>
+ {options
+ .filter((option) => option.label !== selectedOption.label)
+ .map((option, index) => (
+ <StyledButton key={index} onClick={handleSelect(option)}>
+ {option.icon}
+ {option.label}
+ </StyledButton>
+ ))}
+ </DropdownMenu>
+ )}
+ </DropdownContainer>
+ );
+}
diff --git a/front/src/modules/ui/components/editable-cell/types/EditableChip.tsx b/front/src/modules/ui/components/editable-cell/types/EditableChip.tsx
index 089b66650c6..3ff79ae68d6 100644
--- a/front/src/modules/ui/components/editable-cell/types/EditableChip.tsx
+++ b/front/src/modules/ui/components/editable-cell/types/EditableChip.tsx
@@ -6,17 +6,19 @@ import { textInputStyle } from '@/ui/themes/effects';
import { EditableCell } from '../EditableCell';
export type EditableChipProps = {
+ id: string;
placeholder?: string;
value: string;
picture: string;
changeHandler: (updated: string) => void;
editModeHorizontalAlign?: 'left' | 'right';
ChipComponent: ComponentType<{
+ id: string;
name: string;
picture: string;
isOverlapped?: boolean;
}>;
- commentCount?: number;
+ commentThreadCount?: number;
onCommentClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
rightEndContents?: ReactNode[];
};
@@ -41,6 +43,7 @@ const RightContainer = styled.div`
// TODO: move right end content in EditableCell
export function EditableCellChip({
+ id,
value,
placeholder,
changeHandler,
@@ -75,7 +78,7 @@ export function EditableCellChip({
}
nonEditModeContent={
<NoEditModeContainer>
- <ChipComponent name={inputValue} picture={picture} />
+ <ChipComponent id={id} name={inputValue} picture={picture} />
<RightContainer>
{rightEndContents &&
rightEndContents.length > 0 &&
diff --git a/front/src/modules/ui/components/editor/BlockEditor.tsx b/front/src/modules/ui/components/editor/BlockEditor.tsx
new file mode 100644
index 00000000000..48ef628b4ec
--- /dev/null
+++ b/front/src/modules/ui/components/editor/BlockEditor.tsx
@@ -0,0 +1,28 @@
+import { BlockNoteEditor } from '@blocknote/core';
+import { BlockNoteView } from '@blocknote/react';
+import styled from '@emotion/styled';
+
+interface BlockEditorProps {
+ editor: BlockNoteEditor | null;
+}
+
+const StyledEditor = styled.div`
+ min-height: 200px;
+ width: 100%;
+ & .editor-create-mode,
+ .editor-edit-mode {
+ background: ${({ theme }) => theme.background.primary};
+ }
+ & .editor-create-mode [class^='_inlineContent']:before {
+ color: ${({ theme }) => theme.font.color.tertiary};
+ font-style: normal !important;
+ }
+`;
+
+export function BlockEditor({ editor }: BlockEditorProps) {
+ return (
+ <StyledEditor>
+ <BlockNoteView editor={editor} />
+ </StyledEditor>
+ );
+}
diff --git a/front/src/modules/ui/components/form/DatePicker.tsx b/front/src/modules/ui/components/form/DatePicker.tsx
index a9cbf801b46..575827aa770 100644
--- a/front/src/modules/ui/components/form/DatePicker.tsx
+++ b/front/src/modules/ui/components/form/DatePicker.tsx
@@ -22,7 +22,7 @@ const StyledContainer = styled.div`
font-size: ${({ theme }) => theme.font.size.md};
border: none;
display: block;
- font-weight: 400;
+ font-weight: ${({ theme }) => theme.font.weight.regular};
}
& .react-datepicker-popper {
diff --git a/front/src/modules/ui/components/inputs/AutosizeTextInput.tsx b/front/src/modules/ui/components/inputs/AutosizeTextInput.tsx
index 546f260bcee..7ce37587826 100644
--- a/front/src/modules/ui/components/inputs/AutosizeTextInput.tsx
+++ b/front/src/modules/ui/components/inputs/AutosizeTextInput.tsx
@@ -27,8 +27,8 @@ const StyledTextArea = styled(TextareaAutosize)`
border-radius: 5px;
color: ${({ theme }) => theme.font.color.primary};
font-family: inherit;
- font-size: 13px;
- font-weight: 400;
+ font-size: ${({ theme }) => theme.font.size.md};
+ font-weight: ${({ theme }) => theme.font.weight.regular};
line-height: 16px;
overflow: auto;
padding: 8px;
@@ -42,7 +42,7 @@ const StyledTextArea = styled(TextareaAutosize)`
&::placeholder {
color: ${({ theme }) => theme.font.color.light};
- font-weight: 400;
+ font-weight: ${({ theme }) => theme.font.weight.regular};
}
`;
@@ -121,7 +121,7 @@ export function AutosizeTextInput({
<>
<StyledContainer>
<StyledTextArea
- placeholder={placeholder || 'Write something...'}
+ placeholder={placeholder || 'Write a comment'}
maxRows={MAX_ROWS}
minRows={computedMinRows}
onChange={handleInputChange}
diff --git a/front/src/modules/ui/components/property-box/PropertyBox.tsx b/front/src/modules/ui/components/property-box/PropertyBox.tsx
new file mode 100644
index 00000000000..5df6d937343
--- /dev/null
+++ b/front/src/modules/ui/components/property-box/PropertyBox.tsx
@@ -0,0 +1,21 @@
+import styled from '@emotion/styled';
+
+const StyledPropertyBoxContainer = styled.div`
+ align-self: stretch;
+ background: ${({ theme }) => theme.background.secondary};
+ border: 1px solid ${({ theme }) => theme.border.color.medium};
+ border-radius: 4px;
+ display: flex;
+ flex-direction: column;
+ gap: ${({ theme }) => theme.spacing(2)};
+ padding: ${({ theme }) => theme.spacing(2)} ${({ theme }) => theme.spacing(3)};
+`;
+
+interface PropertyBoxProps {
+ children: JSX.Element;
+ extraPadding?: boolean;
+}
+
+export function PropertyBox({ children }: PropertyBoxProps) {
+ return <StyledPropertyBoxContainer>{children}</StyledPropertyBoxContainer>;
+}
diff --git a/front/src/modules/ui/components/property-box/PropertyBoxItem.tsx b/front/src/modules/ui/components/property-box/PropertyBoxItem.tsx
new file mode 100644
index 00000000000..eabee861beb
--- /dev/null
+++ b/front/src/modules/ui/components/property-box/PropertyBoxItem.tsx
@@ -0,0 +1,56 @@
+import { ReactNode } from 'react';
+import styled from '@emotion/styled';
+
+const StyledPropertyBoxItem = styled.div`
+ display: flex;
+ gap: ${({ theme }) => theme.spacing(2)};
+`;
+
+const StyledIconContainer = styled.div`
+ align-items: center;
+ display: flex;
+
+ svg {
+ align-items: center;
+ display: flex;
+ height: 16px;
+ justify-content: center;
+ width: 16px;
+ }
+`;
+
+const StyledValueContainer = styled.div`
+ align-content: flex-start;
+ align-items: center;
+ color: ${({ theme }) => theme.font.color.primary};
+ display: flex;
+ flex: 1 0 0;
+ flex-wrap: wrap;
+`;
+
+const StyledLabelAndIconContainer = styled.div`
+ align-items: center;
+ color: ${({ theme }) => theme.font.color.tertiary};
+ display: flex;
+ gap: ${({ theme }) => theme.spacing(1)};
+`;
+
+export function PropertyBoxItem({
+ icon,
+ label,
+ value,
+}: {
+ icon: ReactNode;
+ label?: string;
+ value: ReactNode;
+}) {
+ return (
+ <StyledPropertyBoxItem>
+ <StyledLabelAndIconContainer>
+ <StyledIconContainer>{icon}</StyledIconContainer>
+ {label}
+ </StyledLabelAndIconContainer>
+ <StyledValueContainer>{value}</StyledValueContainer>
+ </StyledPropertyBoxItem>
+ );
+}
diff --git a/front/src/modules/ui/components/section-titles/MainSectionTitle.tsx b/front/src/modules/ui/components/section-titles/MainSectionTitle.tsx
index c0dc5e24cf3..a8f5be84117 100644
--- a/front/src/modules/ui/components/section-titles/MainSectionTitle.tsx
+++ b/front/src/modules/ui/components/section-titles/MainSectionTitle.tsx
@@ -9,7 +9,7 @@ const StyledMainSectionTitle = styled.h2`
color: ${({ theme }) => theme.font.color.primary};
font-size: ${({ theme }) => theme.font.size.xl};
font-weight: ${({ theme }) => theme.font.weight.semiBold};
- line-height: 1.5;
+ line-height: ${({ theme }) => theme.text.lineHeight.lg};
margin: 0;
`;
diff --git a/front/src/modules/ui/components/table/ColumnHead.tsx b/front/src/modules/ui/components/table/ColumnHead.tsx
index 667e6f6059a..4a3b3d58559 100644
--- a/front/src/modules/ui/components/table/ColumnHead.tsx
+++ b/front/src/modules/ui/components/table/ColumnHead.tsx
@@ -10,7 +10,7 @@ const StyledTitle = styled.div`
align-items: center;
display: flex;
flex-direction: row;
- font-weight: 500;
+ font-weight: ${({ theme }) => theme.font.weight.medium};
height: ${({ theme }) => theme.spacing(8)};
padding-left: ${({ theme }) => theme.spacing(2)};
`;
diff --git a/front/src/modules/ui/components/table/action-bar/EntityTableActionBarButton.tsx b/front/src/modules/ui/components/table/action-bar/EntityTableActionBarButton.tsx
index 98b8e9cbc94..24c15c8380b 100644
--- a/front/src/modules/ui/components/table/action-bar/EntityTableActionBarButton.tsx
+++ b/front/src/modules/ui/components/table/action-bar/EntityTableActionBarButton.tsx
@@ -32,7 +32,7 @@ const StyledButton = styled.div<StyledButtonProps>`
`;
const StyledButtonLabel = styled.div`
- font-weight: 500;
+ font-weight: ${({ theme }) => theme.font.weight.medium};
margin-left: ${({ theme }) => theme.spacing(2)};
`;
diff --git a/front/src/modules/ui/components/table/action-bar/TableActionBarButtonOpenComments.tsx b/front/src/modules/ui/components/table/action-bar/TableActionBarButtonOpenComments.tsx
index 08749e0e85a..f908ff700af 100644
--- a/front/src/modules/ui/components/table/action-bar/TableActionBarButtonOpenComments.tsx
+++ b/front/src/modules/ui/components/table/action-bar/TableActionBarButtonOpenComments.tsx
@@ -1,4 +1,4 @@
-import { IconComment } from '@/ui/icons/index';
+import { IconNotes } from '@/ui/icons/index';
import { EntityTableActionBarButton } from './EntityTableActionBarButton';
@@ -9,8 +9,8 @@ type OwnProps = {
export function TableActionBarButtonToggleComments({ onClick }: OwnProps) {
return (
<EntityTableActionBarButton
- label="Comment"
- icon={<IconComment size={16} />}
+ label="Notes"
+ icon={<IconNotes size={16} />}
onClick={onClick}
/>
);
diff --git a/front/src/modules/ui/components/table/table-header/DropdownButton.tsx b/front/src/modules/ui/components/table/table-header/DropdownButton.tsx
index a89a3cc2d6b..66befd5d723 100644
--- a/front/src/modules/ui/components/table/table-header/DropdownButton.tsx
+++ b/front/src/modules/ui/components/table/table-header/DropdownButton.tsx
@@ -179,7 +179,7 @@ function DropdownButton({
};
const dropdownRef = useRef(null);
- useOutsideAlerter(dropdownRef, onOutsideClick);
+ useOutsideAlerter({ ref: dropdownRef, callback: onOutsideClick });
return (
<StyledDropdownButtonContainer>
diff --git a/front/src/modules/ui/components/table/table-header/SortAndFilterBar.tsx b/front/src/modules/ui/components/table/table-header/SortAndFilterBar.tsx
index cb93dd796a1..c5da7a658a3 100644
--- a/front/src/modules/ui/components/table/table-header/SortAndFilterBar.tsx
+++ b/front/src/modules/ui/components/table/table-header/SortAndFilterBar.tsx
@@ -43,7 +43,7 @@ const StyledCancelButton = styled.button`
border: none;
color: ${({ theme }) => theme.font.color.secondary};
cursor: pointer;
- font-weight: 500;
+ font-weight: ${({ theme }) => theme.font.weight.medium};
margin-left: auto;
margin-right: ${({ theme }) => theme.spacing(2)};
padding: ${(props) => {
diff --git a/front/src/modules/ui/components/table/table-header/SortOrFilterChip.tsx b/front/src/modules/ui/components/table/table-header/SortOrFilterChip.tsx
index 2ad247624e3..a89da7236f6 100644
--- a/front/src/modules/ui/components/table/table-header/SortOrFilterChip.tsx
+++ b/front/src/modules/ui/components/table/table-header/SortOrFilterChip.tsx
@@ -45,7 +45,7 @@ const StyledDelete = styled.div`
`;
const StyledLabelKey = styled.div`
- font-weight: 500;
+ font-weight: ${({ theme }) => theme.font.weight.medium};
`;
function SortOrFilterChip({
diff --git a/front/src/modules/ui/components/table/table-header/TableHeader.tsx b/front/src/modules/ui/components/table/table-header/TableHeader.tsx
index b2507c70fd6..dd9ce642b7f 100644
--- a/front/src/modules/ui/components/table/table-header/TableHeader.tsx
+++ b/front/src/modules/ui/components/table/table-header/TableHeader.tsx
@@ -27,7 +27,7 @@ const StyledTableHeader = styled.div`
color: ${({ theme }) => theme.font.color.secondary};
display: flex;
flex-direction: row;
- font-weight: 500;
+ font-weight: ${({ theme }) => theme.font.weight.medium};
height: 40px;
justify-content: space-between;
padding-left: ${({ theme }) => theme.spacing(3)};
@@ -49,7 +49,7 @@ const StyledViewSection = styled.div`
const StyledFilters = styled.div`
display: flex;
- font-weight: 400;
+ font-weight: ${({ theme }) => theme.font.weight.regular};
gap: 2px;
`;
diff --git a/front/src/modules/ui/hooks/__tests__/useOutsideAlerter.test.tsx b/front/src/modules/ui/hooks/__tests__/useOutsideAlerter.test.tsx
index 268d2a5079e..65319c57561 100644
--- a/front/src/modules/ui/hooks/__tests__/useOutsideAlerter.test.tsx
+++ b/front/src/modules/ui/hooks/__tests__/useOutsideAlerter.test.tsx
@@ -7,7 +7,7 @@ const onOutsideClick = jest.fn();
function TestComponent() {
const buttonRef = useRef(null);
- useOutsideAlerter(buttonRef, onOutsideClick);
+ useOutsideAlerter({ ref: buttonRef, callback: onOutsideClick });
return (
<div>
diff --git a/front/src/modules/ui/hooks/useOutsideAlerter.ts b/front/src/modules/ui/hooks/useOutsideAlerter.ts
index dff7929667d..5a77591c642 100644
--- a/front/src/modules/ui/hooks/useOutsideAlerter.ts
+++ b/front/src/modules/ui/hooks/useOutsideAlerter.ts
@@ -1,21 +1,52 @@
import { useEffect } from 'react';
-declare type CallbackType = () => void;
+export enum OutsideClickAlerterMode {
+ absolute = 'absolute',
+ dom = 'dom',
+}
+
+type OwnProps = {
+ ref: React.RefObject<HTMLInputElement>;
+ callback: () => void;
+ mode?: OutsideClickAlerterMode;
+};
-export function useOutsideAlerter(
- ref: React.RefObject<HTMLInputElement>,
- callback: CallbackType,
-) {
+export function useOutsideAlerter({
+ ref,
+ mode = OutsideClickAlerterMode.dom,
+ callback,
+}: OwnProps) {
useEffect(() => {
- function handleClickOutside(event: Event) {
+ function handleClickOutside(event: MouseEvent) {
const target = event.target as HTMLButtonElement;
- if (ref.current && !ref.current.contains(target)) {
+
+ if (!ref.current) {
+ return;
+ }
+
+ if (
+ mode === OutsideClickAlerterMode.dom &&
+ !ref.current.contains(target)
+ ) {
callback();
}
+
+ if (mode === OutsideClickAlerterMode.absolute) {
+ const { x, y, width, height } = ref.current.getBoundingClientRect();
+ const { clientX, clientY } = event;
+ if (
+ clientX < x ||
+ clientX > x + width ||
+ clientY < y ||
+ clientY > y + height
+ ) {
+ callback();
+ }
+ }
}
document.addEventListener('mousedown', handleClickOutside);
return () => {
document.removeEventListener('mousedown', handleClickOutside);
};
- }, [ref, callback]);
+ }, [ref, callback, mode]);
}
diff --git a/front/src/modules/ui/icons/index.ts b/front/src/modules/ui/icons/index.ts
index 94af123f820..6440036015b 100644
--- a/front/src/modules/ui/icons/index.ts
+++ b/front/src/modules/ui/icons/index.ts
@@ -30,3 +30,6 @@ export { IconArrowUpRight } from '@tabler/icons-react';
export { IconBrandGoogle } from '@tabler/icons-react';
export { IconUpload } from '@tabler/icons-react';
export { IconFileUpload } from '@tabler/icons-react';
+export { IconChevronsRight } from '@tabler/icons-react';
+export { IconNotes } from '@tabler/icons-react';
+export { IconCirclePlus } from '@tabler/icons-react';
diff --git a/front/src/modules/ui/layout/containers/ContentContainer.tsx b/front/src/modules/ui/layout/containers/ContentContainer.tsx
index 4cbb3a0f0d6..3edceaea282 100644
--- a/front/src/modules/ui/layout/containers/ContentContainer.tsx
+++ b/front/src/modules/ui/layout/containers/ContentContainer.tsx
@@ -10,7 +10,7 @@ type OwnProps = {
topMargin?: number;
};
-const MainContainer = styled.div<{ topMargin: number }>`
+const StyledMainContainer = styled.div<{ topMargin: number }>`
background: ${({ theme }) => theme.background.noisy};
display: flex;
@@ -27,27 +27,21 @@ type LeftContainerProps = {
isRightDrawerOpen?: boolean;
};
-const LeftContainer = styled.div<LeftContainerProps>`
+const StyledLeftContainer = styled.div<LeftContainerProps>`
display: flex;
position: relative;
- width: calc(
- 100% -
- ${(props) =>
- props.isRightDrawerOpen
- ? `${props.theme.rightDrawerWidth} - ${props.theme.spacing(2)}`
- : '0px'}
- );
+ width: 100%;
`;
export function ContentContainer({ children, topMargin }: OwnProps) {
const [isRightDrawerOpen] = useRecoilState(isRightDrawerOpenState);
return (
- <MainContainer topMargin={topMargin ?? 0}>
- <LeftContainer isRightDrawerOpen={isRightDrawerOpen}>
+ <StyledMainContainer topMargin={topMargin ?? 0}>
+ <StyledLeftContainer isRightDrawerOpen={isRightDrawerOpen}>
<Panel>{children}</Panel>
- </LeftContainer>
+ </StyledLeftContainer>
<RightDrawer />
- </MainContainer>
+ </StyledMainContainer>
);
}
diff --git a/front/src/modules/ui/layout/navbar/NavTitle.tsx b/front/src/modules/ui/layout/navbar/NavTitle.tsx
index 0f327f7ff14..2acf0bda280 100644
--- a/front/src/modules/ui/layout/navbar/NavTitle.tsx
+++ b/front/src/modules/ui/layout/navbar/NavTitle.tsx
@@ -8,7 +8,7 @@ const StyledTitle = styled.div`
color: ${({ theme }) => theme.font.color.light};
display: flex;
font-size: ${({ theme }) => theme.font.size.xs};
- font-weight: 600;
+ font-weight: ${({ theme }) => theme.font.weight.semiBold};
padding-bottom: ${({ theme }) => theme.spacing(2)};
padding-left: ${({ theme }) => theme.spacing(1)};
padding-top: ${({ theme }) => theme.spacing(8)};
diff --git a/front/src/modules/ui/layout/navbar/NavWorkspaceButton.tsx b/front/src/modules/ui/layout/navbar/NavWorkspaceButton.tsx
index 832e1986404..1c266b98cb4 100644
--- a/front/src/modules/ui/layout/navbar/NavWorkspaceButton.tsx
+++ b/front/src/modules/ui/layout/navbar/NavWorkspaceButton.tsx
@@ -42,7 +42,7 @@ const StyledName = styled.div`
color: ${({ theme }) => theme.font.color.primary};
font-family: 'Inter';
font-size: ${({ theme }) => theme.font.size.md};
- font-weight: 500;
+ font-weight: ${({ theme }) => theme.font.weight.medium};
margin-left: ${({ theme }) => theme.spacing(2)};
`;
diff --git a/front/src/modules/ui/layout/right-drawer/components/RightDrawer.tsx b/front/src/modules/ui/layout/right-drawer/components/RightDrawer.tsx
index 4589e9d3dce..77443ad5b39 100644
--- a/front/src/modules/ui/layout/right-drawer/components/RightDrawer.tsx
+++ b/front/src/modules/ui/layout/right-drawer/components/RightDrawer.tsx
@@ -1,33 +1,61 @@
+import { useRef } from 'react';
import styled from '@emotion/styled';
import { useRecoilState } from 'recoil';
+import {
+ OutsideClickAlerterMode,
+ useOutsideAlerter,
+} from '@/ui/hooks/useOutsideAlerter';
import { isDefined } from '@/utils/type-guards/isDefined';
-import { Panel } from '../../Panel';
import { isRightDrawerOpenState } from '../states/isRightDrawerOpenState';
import { rightDrawerPageState } from '../states/rightDrawerPageState';
import { RightDrawerRouter } from './RightDrawerRouter';
+const StyledContainer = styled.div`
+ background: ${({ theme }) => theme.background.primary};
+ box-shadow: ${({ theme }) => theme.boxShadow.strong};
+ height: 100%;
+ overflow-x: hidden;
+ position: fixed;
+ right: 0;
+ top: 0;
+ transition: width 0.5s;
+ width: ${({ theme }) => theme.rightDrawerWidth};
+ z-index: 2;
+`;
+
const StyledRightDrawer = styled.div`
display: flex;
flex-direction: row;
- width: ${({ theme }) => theme.rightDrawerWidth};
+ width: 100%;
`;
export function RightDrawer() {
- const [isRightDrawerOpen] = useRecoilState(isRightDrawerOpenState);
+ const [isRightDrawerOpen, setIsRightDrawerOpen] = useRecoilState(
+ isRightDrawerOpenState,
+ );
+
const [rightDrawerPage] = useRecoilState(rightDrawerPageState);
+ const rightDrawerRef = useRef(null);
+ useOutsideAlerter({
+ ref: rightDrawerRef,
+ callback: () => setIsRightDrawerOpen(false),
+ mode: OutsideClickAlerterMode.absolute,
+ });
if (!isRightDrawerOpen || !isDefined(rightDrawerPage)) {
return <></>;
}
return (
- <StyledRightDrawer>
- <Panel>
- <RightDrawerRouter />
- </Panel>
- </StyledRightDrawer>
+ <>
+ <StyledContainer>
+ <StyledRightDrawer ref={rightDrawerRef}>
+ <RightDrawerRouter />
+ </StyledRightDrawer>
+ </StyledContainer>
+ </>
);
}
diff --git a/front/src/modules/ui/layout/right-drawer/components/RightDrawerBody.tsx b/front/src/modules/ui/layout/right-drawer/components/RightDrawerBody.tsx
index 3abc1b49f22..53136df767d 100644
--- a/front/src/modules/ui/layout/right-drawer/components/RightDrawerBody.tsx
+++ b/front/src/modules/ui/layout/right-drawer/components/RightDrawerBody.tsx
@@ -3,5 +3,7 @@ import styled from '@emotion/styled';
export const RightDrawerBody = styled.div`
display: flex;
flex-direction: column;
+ height: calc(100vh - ${({ theme }) => theme.spacing(10)});
overflow: auto;
+ position: relative;
`;
diff --git a/front/src/modules/ui/layout/right-drawer/components/RightDrawerRouter.tsx b/front/src/modules/ui/layout/right-drawer/components/RightDrawerRouter.tsx
index b7dafb48b50..a487bedd4bd 100644
--- a/front/src/modules/ui/layout/right-drawer/components/RightDrawerRouter.tsx
+++ b/front/src/modules/ui/layout/right-drawer/components/RightDrawerRouter.tsx
@@ -1,10 +1,12 @@
import { useRecoilState } from 'recoil';
-import { RightDrawerComments } from '@/comments/components/RightDrawerComments';
-import { RightDrawerCreateCommentThread } from '@/comments/components/RightDrawerCreateCommentThread';
+import { RightDrawerCreateCommentThread } from '@/comments/components/right-drawer/create/RightDrawerCreateCommentThread';
+import { RightDrawerEditCommentThread } from '@/comments/components/right-drawer/edit/RightDrawerEditCommentThread';
+import { RightDrawerTimeline } from '@/comments/components/right-drawer/RightDrawerTimeline';
import { isDefined } from '@/utils/type-guards/isDefined';
import { rightDrawerPageState } from '../states/rightDrawerPageState';
+import { RightDrawerPages } from '../types/RightDrawerPages';
export function RightDrawerRouter() {
const [rightDrawerPage] = useRecoilState(rightDrawerPageState);
@@ -13,11 +15,14 @@ export function RightDrawerRouter() {
return <></>;
}
- return rightDrawerPage === 'comments' ? (
- <RightDrawerComments />
- ) : rightDrawerPage === 'create-comment-thread' ? (
- <RightDrawerCreateCommentThread />
- ) : (
- <></>
- );
+ switch (rightDrawerPage) {
+ case RightDrawerPages.Timeline:
+ return <RightDrawerTimeline />;
+ case RightDrawerPages.CreateCommentThread:
+ return <RightDrawerCreateCommentThread />;
+ case RightDrawerPages.EditCommentThread:
+ return <RightDrawerEditCommentThread />;
+ default:
+ return <></>;
+ }
}
diff --git a/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBar.tsx b/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBar.tsx
index 2eb4ea65067..d9ce8a2c975 100644
--- a/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBar.tsx
+++ b/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBar.tsx
@@ -1,5 +1,7 @@
import styled from '@emotion/styled';
+import { Button } from '@/ui/components/buttons/Button';
+
import { RightDrawerTopBarCloseButton } from './RightDrawerTopBarCloseButton';
const StyledRightDrawerTopBar = styled.div`
@@ -8,7 +10,7 @@ const StyledRightDrawerTopBar = styled.div`
color: ${({ theme }) => theme.font.color.secondary};
display: flex;
flex-direction: row;
- font-size: 13px;
+ font-size: ${({ theme }) => theme.font.size.md};
justify-content: space-between;
min-height: 40px;
padding-left: 8px;
@@ -17,19 +19,24 @@ const StyledRightDrawerTopBar = styled.div`
const StyledTopBarTitle = styled.div`
align-items: center;
- font-weight: 500;
+ font-weight: ${({ theme }) => theme.font.weight.medium};
margin-right: ${({ theme }) => theme.spacing(1)};
`;
-export function RightDrawerTopBar({
- title,
-}: {
+type OwnProps = {
title: string | null | undefined;
-}) {
+ onSave?: () => void;
+};
+
+export function RightDrawerTopBar({ title, onSave }: OwnProps) {
+ function handleOnClick() {
+ onSave?.();
+ }
return (
<StyledRightDrawerTopBar>
- <StyledTopBarTitle>{title}</StyledTopBarTitle>
<RightDrawerTopBarCloseButton />
+ <StyledTopBarTitle>{title}</StyledTopBarTitle>
+ {onSave && <Button title="Save" onClick={handleOnClick} />}
</StyledRightDrawerTopBar>
);
}
diff --git a/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBarCloseButton.tsx b/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBarCloseButton.tsx
index 68e063892f9..b45dc82495e 100644
--- a/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBarCloseButton.tsx
+++ b/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBarCloseButton.tsx
@@ -1,7 +1,7 @@
import styled from '@emotion/styled';
import { useRecoilState } from 'recoil';
-import { IconPlus } from '@/ui/icons/index';
+import { IconChevronsRight } from '@/ui/icons/index';
import { isRightDrawerOpenState } from '../states/isRightDrawerOpenState';
@@ -24,7 +24,6 @@ const StyledButton = styled.button`
}
svg {
color: ${({ theme }) => theme.font.color.tertiary};
- transform: rotate(45deg);
}
`;
@@ -37,7 +36,7 @@ export function RightDrawerTopBarCloseButton() {
return (
<StyledButton onClick={handleButtonClick}>
- <IconPlus size={16} />
+ <IconChevronsRight size={16} />
</StyledButton>
);
}
diff --git a/front/src/modules/ui/layout/right-drawer/hooks/useOpenRightDrawer.ts b/front/src/modules/ui/layout/right-drawer/hooks/useOpenRightDrawer.ts
index b66d828516f..f6f584001f8 100644
--- a/front/src/modules/ui/layout/right-drawer/hooks/useOpenRightDrawer.ts
+++ b/front/src/modules/ui/layout/right-drawer/hooks/useOpenRightDrawer.ts
@@ -2,13 +2,13 @@ import { useRecoilState } from 'recoil';
import { isRightDrawerOpenState } from '../states/isRightDrawerOpenState';
import { rightDrawerPageState } from '../states/rightDrawerPageState';
-import { RightDrawerPage } from '../types/RightDrawerPage';
+import { RightDrawerPages } from '../types/RightDrawerPages';
export function useOpenRightDrawer() {
const [, setIsRightDrawerOpen] = useRecoilState(isRightDrawerOpenState);
const [, setRightDrawerPage] = useRecoilState(rightDrawerPageState);
- return function openRightDrawer(rightDrawerPage: RightDrawerPage) {
+ return function openRightDrawer(rightDrawerPage: RightDrawerPages) {
setRightDrawerPage(rightDrawerPage);
setIsRightDrawerOpen(true);
};
diff --git a/front/src/modules/ui/layout/right-drawer/states/rightDrawerPageState.ts b/front/src/modules/ui/layout/right-drawer/states/rightDrawerPageState.ts
index 9089e2ce1d2..8d0de858e27 100644
--- a/front/src/modules/ui/layout/right-drawer/states/rightDrawerPageState.ts
+++ b/front/src/modules/ui/layout/right-drawer/states/rightDrawerPageState.ts
@@ -1,8 +1,8 @@
import { atom } from 'recoil';
-import { RightDrawerPage } from '../types/RightDrawerPage';
+import { RightDrawerPages } from '../types/RightDrawerPages';
-export const rightDrawerPageState = atom<RightDrawerPage | null>({
+export const rightDrawerPageState = atom<RightDrawerPages | null>({
key: 'ui/layout/right-drawer-page',
default: null,
});
diff --git a/front/src/modules/ui/layout/right-drawer/types/RightDrawerPage.ts b/front/src/modules/ui/layout/right-drawer/types/RightDrawerPage.ts
deleted file mode 100644
index 9478a99b259..00000000000
--- a/front/src/modules/ui/layout/right-drawer/types/RightDrawerPage.ts
+++ /dev/null
@@ -1 +0,0 @@
-export type RightDrawerPage = 'comments' | 'create-comment-thread';
diff --git a/front/src/modules/ui/layout/right-drawer/types/RightDrawerPages.ts b/front/src/modules/ui/layout/right-drawer/types/RightDrawerPages.ts
new file mode 100644
index 00000000000..a260334e9f4
--- /dev/null
+++ b/front/src/modules/ui/layout/right-drawer/types/RightDrawerPages.ts
@@ -0,0 +1,5 @@
+export enum RightDrawerPages {
+ Timeline = 'timeline',
+ CreateCommentThread = 'create-comment-thread',
+ EditCommentThread = 'edit-comment-thread',
+}
diff --git a/front/src/modules/ui/layout/show-page/ShowPageSummaryCard.tsx b/front/src/modules/ui/layout/show-page/ShowPageSummaryCard.tsx
new file mode 100644
index 00000000000..8f1dd92bd73
--- /dev/null
+++ b/front/src/modules/ui/layout/show-page/ShowPageSummaryCard.tsx
@@ -0,0 +1,85 @@
+import { Tooltip } from 'react-tooltip';
+import { useTheme } from '@emotion/react';
+import styled from '@emotion/styled';
+import { v4 as uuidV4 } from 'uuid';
+
+import { Avatar } from '@/users/components/Avatar';
+import {
+ beautifyExactDate,
+ beautifyPastDateRelativeToNow,
+} from '@/utils/datetime/date-utils';
+
+const StyledShowPageSummaryCard = styled.div`
+ align-items: center;
+ display: flex;
+ flex-direction: column;
+ gap: ${({ theme }) => theme.spacing(3)};
+ justify-content: center;
+ padding: ${({ theme }) => theme.spacing(6)} ${({ theme }) => theme.spacing(3)}
+ ${({ theme }) => theme.spacing(3)} ${({ theme }) => theme.spacing(3)};
+`;
+
+const StyledInfoContainer = styled.div`
+ align-items: center;
+ display: flex;
+ flex-direction: column;
+`;
+
+const StyledDate = styled.div`
+ color: ${({ theme }) => theme.font.color.tertiary};
+ cursor: pointer;
+`;
+
+const StyledTitle = styled.div`
+ color: ${({ theme }) => theme.font.color.primary};
+ font-size: ${({ theme }) => theme.font.size.xl};
+ font-weight: ${({ theme }) => theme.font.weight.semiBold};
+`;
+
+const StyledTooltip = styled(Tooltip)`
+ background-color: ${({ theme }) => theme.background.primary};
+ box-shadow: ${({ theme }) => theme.boxShadow.light};
+
+ color: ${({ theme }) => theme.font.color.primary};
+
+ padding: ${({ theme }) => theme.spacing(2)};
+`;
+
+export function ShowPageSummaryCard({
+ logoOrAvatar,
+ title,
+ date,
+}: {
+ logoOrAvatar?: string;
+ title: string;
+ date: string;
+}) {
+ const beautifiedCreatedAt =
+ date !== '' ? beautifyPastDateRelativeToNow(date) : '';
+ const exactCreatedAt = date !== '' ? beautifyExactDate(date) : '';
+ const theme = useTheme();
+ const dateElementId = `date-id-${uuidV4()}`;
+
+ return (
+ <StyledShowPageSummaryCard>
+ <Avatar
+ avatarUrl={logoOrAvatar}
+ size={theme.icon.size.xl}
+ placeholder={title}
+ />
+ <StyledInfoContainer>
+ <StyledTitle>{title}</StyledTitle>
+ <StyledDate id={dateElementId}>
+ Added {beautifiedCreatedAt} ago
+ </StyledDate>
+ <StyledTooltip
+ anchorSelect={`#${dateElementId}`}
+ content={exactCreatedAt}
+ clickable
+ noArrow
+ place="right"
+ />
+ </StyledInfoContainer>
+ </StyledShowPageSummaryCard>
+ );
+}
diff --git a/front/src/modules/ui/layout/show-page/containers/ShowPageLeftContainer.tsx b/front/src/modules/ui/layout/show-page/containers/ShowPageLeftContainer.tsx
new file mode 100644
index 00000000000..ab972ad5f7e
--- /dev/null
+++ b/front/src/modules/ui/layout/show-page/containers/ShowPageLeftContainer.tsx
@@ -0,0 +1,9 @@
+import styled from '@emotion/styled';
+
+export const ShowPageLeftContainer = styled.div`
+ background: ${({ theme }) => theme.background.secondary};
+ border-radius: 8px;
+ border-right: 1px solid ${({ theme }) => theme.border.color.light};
+ padding: 0px ${({ theme }) => theme.spacing(3)};
+ width: 320px;
+`;
diff --git a/front/src/modules/ui/layout/show-page/containers/ShowPageRightContainer.tsx b/front/src/modules/ui/layout/show-page/containers/ShowPageRightContainer.tsx
new file mode 100644
index 00000000000..a65b8c4eeff
--- /dev/null
+++ b/front/src/modules/ui/layout/show-page/containers/ShowPageRightContainer.tsx
@@ -0,0 +1,9 @@
+import styled from '@emotion/styled';
+
+export const ShowPageRightContainer = styled.div`
+ display: flex;
+ flex: 1 0 0;
+ flex-direction: column;
+ justify-content: center;
+ overflow: hidden;
+`;
diff --git a/front/src/modules/ui/themes/icon.ts b/front/src/modules/ui/themes/icon.ts
index b547c1c6c3b..a6654de6688 100644
--- a/front/src/modules/ui/themes/icon.ts
+++ b/front/src/modules/ui/themes/icon.ts
@@ -3,6 +3,7 @@ export const icon = {
sm: 14,
md: 16,
lg: 20,
+ xl: 40,
},
stroke: {
sm: 1.6,
diff --git a/front/src/modules/ui/themes/themes.ts b/front/src/modules/ui/themes/themes.ts
index c969d37ee65..49fa50fd9e7 100644
--- a/front/src/modules/ui/themes/themes.ts
+++ b/front/src/modules/ui/themes/themes.ts
@@ -18,7 +18,7 @@ const common = {
horizontalCellMargin: '8px',
checkboxColumnWidth: '32px',
},
- rightDrawerWidth: '300px',
+ rightDrawerWidth: '500px',
clickableElementBackgroundTransition: 'background 0.1s ease',
lastLayerZIndex: 2147483647,
};
@@ -32,6 +32,7 @@ export const lightTheme = {
selectedCardHover: color.blue20,
selectedCard: color.blue10,
font: fontLight,
+ name: 'light',
},
};
export type ThemeType = typeof lightTheme;
@@ -45,6 +46,7 @@ export const darkTheme: ThemeType = {
selectedCardHover: color.blue70,
selectedCard: color.blue80,
font: fontDark,
+ name: 'dark',
},
};
diff --git a/front/src/modules/users/components/Avatar.tsx b/front/src/modules/users/components/Avatar.tsx
index 43d59fcd37e..9612d1f8038 100644
--- a/front/src/modules/users/components/Avatar.tsx
+++ b/front/src/modules/users/components/Avatar.tsx
@@ -17,8 +17,10 @@ export const StyledAvatar = styled.div<Omit<OwnProps, 'placeholder'>>`
!isNonEmptyString(props.avatarUrl)
? props.theme.background.tertiary
: 'none'};
- background-image: url(${(props) =>
- isNonEmptyString(props.avatarUrl) ? props.avatarUrl : 'none'});
+ ${(props) =>
+ isNonEmptyString(props.avatarUrl)
+ ? `background-image: url(${props.avatarUrl});`
+ : ''}
background-size: cover;
border-radius: ${(props) => (props.type === 'rounded' ? '50%' : '2px')};
color: ${({ theme }) => theme.font.color.primary};
diff --git a/front/src/pages/companies/Companies.tsx b/front/src/pages/companies/Companies.tsx
index d9ffc16b638..45c26fad439 100644
--- a/front/src/pages/companies/Companies.tsx
+++ b/front/src/pages/companies/Companies.tsx
@@ -1,10 +1,8 @@
import { getOperationName } from '@apollo/client/utilities';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
-import { useRecoilState } from 'recoil';
import { v4 as uuidv4 } from 'uuid';
-import { isMockModeState } from '@/auth/states/isMockModeState';
import { GET_COMPANIES } from '@/companies/services';
import { useHotkeysScopeOnMountOnly } from '@/hotkeys/hooks/useHotkeysScopeOnMountOnly';
import { InternalHotkeysScope } from '@/hotkeys/types/internal/InternalHotkeysScope';
@@ -28,17 +26,10 @@ const StyledTableContainer = styled.div`
`;
export function Companies() {
- const [isMockMode] = useRecoilState(isMockModeState);
-
- const hotkeysEnabled = !isMockMode;
-
- useHotkeysScopeOnMountOnly(
- {
- scope: InternalHotkeysScope.Table,
- customScopes: { 'command-menu': true, goto: true },
- },
- hotkeysEnabled,
- );
+ useHotkeysScopeOnMountOnly({
+ scope: InternalHotkeysScope.Table,
+ customScopes: { 'command-menu': true, goto: true },
+ });
const [insertCompany] = useInsertCompanyMutation();
diff --git a/front/src/pages/companies/CompanyShow.tsx b/front/src/pages/companies/CompanyShow.tsx
new file mode 100644
index 00000000000..482a1ee074a
--- /dev/null
+++ b/front/src/pages/companies/CompanyShow.tsx
@@ -0,0 +1,75 @@
+import { useParams } from 'react-router-dom';
+import { useTheme } from '@emotion/react';
+
+import { Timeline } from '@/comments/components/timeline/Timeline';
+import { useCompanyQuery } from '@/companies/services';
+import { useHotkeysScopeOnMountOnly } from '@/hotkeys/hooks/useHotkeysScopeOnMountOnly';
+import { InternalHotkeysScope } from '@/hotkeys/types/internal/InternalHotkeysScope';
+import { RawLink } from '@/ui/components/links/RawLink';
+import { PropertyBox } from '@/ui/components/property-box/PropertyBox';
+import { PropertyBoxItem } from '@/ui/components/property-box/PropertyBoxItem';
+import { IconBuildingSkyscraper, IconLink, IconMap } from '@/ui/icons/index';
+import { WithTopBarContainer } from '@/ui/layout/containers/WithTopBarContainer';
+import { ShowPageLeftContainer } from '@/ui/layout/show-page/containers/ShowPageLeftContainer';
+import { ShowPageRightContainer } from '@/ui/layout/show-page/containers/ShowPageRightContainer';
+import { ShowPageSummaryCard } from '@/ui/layout/show-page/ShowPageSummaryCard';
+import { getLogoUrlFromDomainName } from '@/utils/utils';
+import { CommentableType } from '~/generated/graphql';
+
+export function CompanyShow() {
+ const companyId = useParams().companyId ?? '';
+
+ useHotkeysScopeOnMountOnly({
+ scope: InternalHotkeysScope.ShowPage,
+ customScopes: { 'command-menu': true, goto: true },
+ });
+
+ const { data } = useCompanyQuery(companyId);
+ const company = data?.findUniqueCompany;
+
+ const theme = useTheme();
+
+ return (
+ <WithTopBarContainer
+ title={company?.name ?? ''}
+ icon={<IconBuildingSkyscraper size={theme.icon.size.md} />}
+ >
+ <>
+ <ShowPageLeftContainer>
+ <ShowPageSummaryCard
+ logoOrAvatar={getLogoUrlFromDomainName(company?.domainName ?? '')}
+ title={company?.name ?? 'No name'}
+ date={company?.createdAt ?? ''}
+ />
+ <PropertyBox extraPadding={true}>
+ <>
+ <PropertyBoxItem
+ icon={<IconLink />}
+ value={
+ <RawLink
+ href={
+ company?.domainName
+ ? 'https://' + company?.domainName
+ : ''
+ }
+ >
+ {company?.domainName}
+ </RawLink>
+ }
+ />
+ <PropertyBoxItem
+ icon={<IconMap />}
+ value={company?.address ? company?.address : 'No address'}
+ />
+ </>
+ </PropertyBox>
+ </ShowPageLeftContainer>
+ <ShowPageRightContainer>
+ <Timeline
+ entity={{ id: company?.id ?? '', type: CommentableType.Company }}
+ />
+ </ShowPageRightContainer>
+ </>
+ </WithTopBarContainer>
+ );
+}
diff --git a/front/src/pages/companies/__stories__/Companies.comments.stories.tsx b/front/src/pages/companies/__stories__/Companies.comments.stories.tsx
deleted file mode 100644
index deb295e315f..00000000000
--- a/front/src/pages/companies/__stories__/Companies.comments.stories.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import { expect } from '@storybook/jest';
-import type { Meta } from '@storybook/react';
-import { userEvent, within } from '@storybook/testing-library';
-
-import { graphqlMocks } from '~/testing/graphqlMocks';
-import { getRenderWrapperForPage } from '~/testing/renderWrappers';
-
-import { Companies } from '../Companies';
-
-import { Story } from './Companies.stories';
-
-const meta: Meta<typeof Companies> = {
- title: 'Pages/Companies/Comments',
- component: Companies,
-};
-
-export default meta;
-
-export const OpenCommentsSection: Story = {
- render: getRenderWrapperForPage(<Companies />, '/companies'),
- play: async ({ canvasElement }) => {
- const canvas = within(canvasElement);
-
- const firstRow = await canvas.findByTestId('row-id-1');
-
- expect(firstRow).toBeDefined();
-
- const commentsChip = await within(firstRow).findByTestId('comment-chip');
- expect(commentsChip).toBeDefined();
-
- userEvent.click(commentsChip);
- const commentSection = await canvas.findByText('Comments');
- expect(commentSection).toBeDefined();
- },
- parameters: {
- msw: graphqlMocks,
- },
-};
diff --git a/front/src/pages/companies/__stories__/Company.stories.tsx b/front/src/pages/companies/__stories__/Company.stories.tsx
new file mode 100644
index 00000000000..b8dd4f89428
--- /dev/null
+++ b/front/src/pages/companies/__stories__/Company.stories.tsx
@@ -0,0 +1,80 @@
+import { getOperationName } from '@apollo/client/utilities';
+import type { Meta, StoryObj } from '@storybook/react';
+import { within } from '@storybook/testing-library';
+import { graphql } from 'msw';
+
+import {
+ GET_COMMENT_THREAD,
+ GET_COMMENT_THREADS_BY_TARGETS,
+} from '@/comments/services';
+import { CREATE_COMMENT_THREAD_WITH_COMMENT } from '@/comments/services/create';
+import { GET_COMPANY } from '@/companies/services';
+import { graphqlMocks } from '~/testing/graphqlMocks';
+import { mockedCommentThreads } from '~/testing/mock-data/comment-threads';
+import { mockedCompaniesData } from '~/testing/mock-data/companies';
+import { getRenderWrapperForPage } from '~/testing/renderWrappers';
+
+import { CompanyShow } from '../CompanyShow';
+
+const meta: Meta<typeof CompanyShow> = {
+ title: 'Pages/Companies/Company',
+ component: CompanyShow,
+};
+
+export default meta;
+
+export type Story = StoryObj<typeof CompanyShow>;
+
+export const Default: Story = {
+ render: getRenderWrapperForPage(
+ <CompanyShow />,
+ '/companies/89bb825c-171e-4bcc-9cf7-43448d6fb278',
+ ),
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+ const notesButton = await canvas.findByText('Notes');
+ await notesButton.click();
+ },
+ parameters: {
+ msw: [
+ ...graphqlMocks,
+ graphql.mutation(
+ getOperationName(CREATE_COMMENT_THREAD_WITH_COMMENT) ?? '',
+ (req, res, ctx) => {
+ return res(
+ ctx.data({
+ createOneCommentThread: mockedCommentThreads[0],
+ }),
+ );
+ },
+ ),
+ graphql.query(
+ getOperationName(GET_COMMENT_THREADS_BY_TARGETS) ?? '',
+ (req, res, ctx) => {
+ return res(
+ ctx.data({
+ findManyCommentThreads: mockedCommentThreads,
+ }),
+ );
+ },
+ ),
+ graphql.query(
+ getOperationName(GET_COMMENT_THREAD) ?? '',
+ (req, res, ctx) => {
+ return res(
+ ctx.data({
+ findManyCommentThreads: mockedCommentThreads[0],
+ }),
+ );
+ },
+ ),
+ graphql.query(getOperationName(GET_COMPANY) ?? '', (req, res, ctx) => {
+ return res(
+ ctx.data({
+ findUniqueCompany: mockedCompaniesData[0],
+ }),
+ );
+ }),
+ ],
+ },
+};
diff --git a/front/src/pages/people/PersonShow.tsx b/front/src/pages/people/PersonShow.tsx
new file mode 100644
index 00000000000..fa79edfde19
--- /dev/null
+++ b/front/src/pages/people/PersonShow.tsx
@@ -0,0 +1,51 @@
+import { useParams } from 'react-router-dom';
+import { useTheme } from '@emotion/react';
+
+import { Timeline } from '@/comments/components/timeline/Timeline';
+import { usePersonQuery } from '@/people/services';
+import { PropertyBox } from '@/ui/components/property-box/PropertyBox';
+import { PropertyBoxItem } from '@/ui/components/property-box/PropertyBoxItem';
+import { IconLink, IconUser } from '@/ui/icons/index';
+import { WithTopBarContainer } from '@/ui/layout/containers/WithTopBarContainer';
+import { ShowPageLeftContainer } from '@/ui/layout/show-page/containers/ShowPageLeftContainer';
+import { ShowPageRightContainer } from '@/ui/layout/show-page/containers/ShowPageRightContainer';
+import { ShowPageSummaryCard } from '@/ui/layout/show-page/ShowPageSummaryCard';
+import { CommentableType } from '~/generated/graphql';
+
+export function PersonShow() {
+ const personId = useParams().personId ?? '';
+
+ const { data } = usePersonQuery(personId);
+ const person = data?.findUniquePerson;
+
+ const theme = useTheme();
+
+ return (
+ <WithTopBarContainer
+ title={person?.firstName ?? ''}
+ icon={<IconUser size={theme.icon.size.md} />}
+ >
+ <>
+ <ShowPageLeftContainer>
+ <ShowPageSummaryCard
+ title={person?.displayName ?? 'No name'}
+ date={person?.createdAt ?? ''}
+ />
+ <PropertyBox extraPadding={true}>
+ <>
+ <PropertyBoxItem
+ icon={<IconLink />}
+ value={person?.firstName ?? 'No First name'}
+ />
+ </>
+ </PropertyBox>
+ </ShowPageLeftContainer>
+ <ShowPageRightContainer>
+ <Timeline
+ entity={{ id: person?.id ?? '', type: CommentableType.Person }}
+ />
+ </ShowPageRightContainer>
+ </>
+ </WithTopBarContainer>
+ );
+}
diff --git a/front/src/pages/people/__stories__/People.comments.stories.tsx b/front/src/pages/people/__stories__/People.comments.stories.tsx
deleted file mode 100644
index d95ba16091b..00000000000
--- a/front/src/pages/people/__stories__/People.comments.stories.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import { expect } from '@storybook/jest';
-import type { Meta } from '@storybook/react';
-import { userEvent, within } from '@storybook/testing-library';
-
-import { graphqlMocks } from '~/testing/graphqlMocks';
-import { getRenderWrapperForPage } from '~/testing/renderWrappers';
-
-import { People } from '../People';
-
-import { Story } from './People.stories';
-
-const meta: Meta<typeof People> = {
- title: 'Pages/People/Comments',
- component: People,
-};
-
-export default meta;
-
-export const OpenCommentsSection: Story = {
- render: getRenderWrapperForPage(<People />, '/people'),
- play: async ({ canvasElement }) => {
- const canvas = within(canvasElement);
-
- const firstRow = await canvas.findByTestId('row-id-1');
-
- expect(firstRow).toBeDefined();
-
- const commentsChip = await within(firstRow).findByTestId('comment-chip');
- expect(commentsChip).toBeDefined();
-
- userEvent.click(commentsChip);
- const commentSection = await canvas.findByText('Comments');
- expect(commentSection).toBeDefined();
- },
- parameters: {
- msw: graphqlMocks,
- },
-};
diff --git a/front/src/pages/people/__stories__/Person.stories.tsx b/front/src/pages/people/__stories__/Person.stories.tsx
new file mode 100644
index 00000000000..b72881439ce
--- /dev/null
+++ b/front/src/pages/people/__stories__/Person.stories.tsx
@@ -0,0 +1,25 @@
+import type { Meta, StoryObj } from '@storybook/react';
+
+import { graphqlMocks } from '~/testing/graphqlMocks';
+import { getRenderWrapperForPage } from '~/testing/renderWrappers';
+
+import { PersonShow } from '../PersonShow';
+
+const meta: Meta<typeof PersonShow> = {
+ title: 'Pages/People/Person',
+ component: PersonShow,
+};
+
+export default meta;
+
+export type Story = StoryObj<typeof PersonShow>;
+
+export const Default: Story = {
+ render: getRenderWrapperForPage(
+ <PersonShow />,
+ '/companies/89bb825c-171e-4bcc-9cf7-43448d6fb278',
+ ),
+ parameters: {
+ msw: graphqlMocks,
+ },
+};
diff --git a/front/src/testing/mock-data/comment-threads.ts b/front/src/testing/mock-data/comment-threads.ts
index 6d149136011..f654d99105e 100644
--- a/front/src/testing/mock-data/comment-threads.ts
+++ b/front/src/testing/mock-data/comment-threads.ts
@@ -1,4 +1,5 @@
import {
+ Comment,
CommentableType,
CommentThread,
CommentThreadTarget,
@@ -6,8 +7,21 @@ import {
type MockedCommentThread = Pick<
CommentThread,
- 'id' | 'createdAt' | 'updatedAt' | '__typename'
+ | 'id'
+ | 'createdAt'
+ | 'updatedAt'
+ | '__typename'
+ | 'body'
+ | 'title'
+ | 'authorId'
> & {
+ author: {
+ __typename?: 'User' | undefined;
+ id: string;
+ firstName: string;
+ lastName: string;
+ };
+ comments: Array<Pick<Comment, 'body'>>;
commentThreadTargets: Array<
Pick<
CommentThreadTarget,
@@ -27,6 +41,15 @@ export const mockedCommentThreads: Array<MockedCommentThread> = [
id: '89bb825c-171e-4bcc-9cf7-43448d6fb230',
createdAt: '2023-04-26T10:12:42.33625+00:00',
updatedAt: '2023-04-26T10:23:42.33625+00:00',
+ title: 'My very first note',
+ body: null,
+ author: {
+ id: '374fe3a5-df1e-4119-afe0-2a62a2ba481e',
+ firstName: 'Charles',
+ lastName: 'Test',
+ },
+ authorId: '374fe3a5-df1e-4119-afe0-2a62a2ba481e',
+ comments: [],
commentThreadTargets: [
{
id: '89bb825c-171e-4bcc-9cf7-43448d6fb300',
@@ -63,6 +86,15 @@ export const mockedCommentThreads: Array<MockedCommentThread> = [
id: '89bb825c-171e-4bcc-9cf7-43448d6fb278',
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
+ title: 'Another note',
+ body: null,
+ author: {
+ id: '374fe3a5-df1e-4119-afe0-2a62a2ba481e',
+ firstName: 'Charles',
+ lastName: 'Test',
+ },
+ authorId: '374fe3a5-df1e-4119-afe0-2a62a2ba481e',
+ comments: [],
commentThreadTargets: [
{
id: '89bb825c-171e-4bcc-9cf7-43448d6fb278',
diff --git a/front/src/testing/mock-data/companies.ts b/front/src/testing/mock-data/companies.ts
index a535c717203..2a8cb16ec19 100644
--- a/front/src/testing/mock-data/companies.ts
+++ b/front/src/testing/mock-data/companies.ts
@@ -9,7 +9,7 @@ type MockedCompany = Pick<
| 'createdAt'
| 'address'
| 'employees'
- | '_commentCount'
+ | '_commentThreadCount'
> & {
accountOwner: Pick<
User,
@@ -25,7 +25,7 @@ export const mockedCompaniesData: Array<MockedCompany> = [
createdAt: '2023-04-26T10:08:54.724515+00:00',
address: '17 rue de clignancourt',
employees: 12,
- _commentCount: 1,
+ _commentThreadCount: 1,
accountOwner: {
displayName: 'Charles Test',
@@ -43,7 +43,7 @@ export const mockedCompaniesData: Array<MockedCompany> = [
createdAt: '2023-04-26T10:12:42.33625+00:00',
address: '',
employees: 1,
- _commentCount: 1,
+ _commentThreadCount: 1,
accountOwner: null,
__typename: 'Company',
},
@@ -54,7 +54,7 @@ export const mockedCompaniesData: Array<MockedCompany> = [
createdAt: '2023-04-26T10:10:32.530184+00:00',
address: '',
employees: 1,
- _commentCount: 1,
+ _commentThreadCount: 1,
accountOwner: null,
__typename: 'Company',
},
@@ -65,7 +65,7 @@ export const mockedCompaniesData: Array<MockedCompany> = [
createdAt: '2023-03-21T06:30:25.39474+00:00',
address: '',
employees: 10,
- _commentCount: 0,
+ _commentThreadCount: 0,
accountOwner: null,
__typename: 'Company',
},
@@ -76,7 +76,7 @@ export const mockedCompaniesData: Array<MockedCompany> = [
createdAt: '2023-04-26T10:13:29.712485+00:00',
address: '10 rue de la Paix',
employees: 1,
- _commentCount: 2,
+ _commentThreadCount: 2,
accountOwner: null,
__typename: 'Company',
},
@@ -87,7 +87,7 @@ export const mockedCompaniesData: Array<MockedCompany> = [
createdAt: '2023-04-26T10:09:25.656555+00:00',
address: '',
employees: 1,
- _commentCount: 13,
+ _commentThreadCount: 13,
accountOwner: null,
__typename: 'Company',
},
@@ -98,7 +98,7 @@ export const mockedCompaniesData: Array<MockedCompany> = [
createdAt: '2023-04-26T10:09:25.656555+00:00',
address: '',
employees: 1,
- _commentCount: 1,
+ _commentThreadCount: 1,
accountOwner: null,
__typename: 'Company',
},
diff --git a/front/src/testing/mock-data/people.ts b/front/src/testing/mock-data/people.ts
index da76f50c47a..9531d011fae 100644
--- a/front/src/testing/mock-data/people.ts
+++ b/front/src/testing/mock-data/people.ts
@@ -9,7 +9,7 @@ type MockedPerson = Pick<
| '__typename'
| 'phone'
| 'city'
- | '_commentCount'
+ | '_commentThreadCount'
| 'createdAt'
> & {
company: Pick<Company, 'id' | 'name' | 'domainName' | '__typename'>;
@@ -29,7 +29,7 @@ export const mockedPeopleData: Array<MockedPerson> = [
__typename: 'Company',
},
phone: '06 12 34 56 78',
- _commentCount: 1,
+ _commentThreadCount: 1,
createdAt: '2023-04-20T13:20:09.158312+00:00',
city: 'Paris',
@@ -47,7 +47,7 @@ export const mockedPeopleData: Array<MockedPerson> = [
__typename: 'Company',
},
phone: '06 12 34 56 78',
- _commentCount: 1,
+ _commentThreadCount: 1,
createdAt: '2023-04-20T13:20:09.158312+00:00',
city: 'Paris',
@@ -65,7 +65,7 @@ export const mockedPeopleData: Array<MockedPerson> = [
__typename: 'Company',
},
phone: '06 12 34 56 78',
- _commentCount: 1,
+ _commentThreadCount: 1,
createdAt: '2023-04-20T13:20:09.158312+00:00',
city: 'Paris',
@@ -83,7 +83,7 @@ export const mockedPeopleData: Array<MockedPerson> = [
__typename: 'Company',
},
phone: '06 12 34 56 78',
- _commentCount: 2,
+ _commentThreadCount: 2,
createdAt: '2023-04-20T13:20:09.158312+00:00',
city: 'Paris',
diff --git a/front/yarn.lock b/front/yarn.lock
index 3107a9f42b9..744a627391c 100644
--- a/front/yarn.lock
+++ b/front/yarn.lock
@@ -153,7 +153,7 @@
"@nicolo-ribaudo/semver-v6" "^6.3.3"
eslint-visitor-keys "^2.1.0"
-"@babel/generator@^7.12.11", "@babel/generator@^7.14.0", "@babel/generator@^7.18.13", "@babel/generator@^7.20.7", "@babel/generator@^7.21.5", "@babel/generator@^7.22.7", "@babel/generator@^7.7.2":
+"@babel/generator@^7.12.11", "@babel/generator@^7.14.0", "@babel/generator@^7.18.13", "@babel/generator@^7.20.4", "@babel/generator@^7.20.7", "@babel/generator@^7.21.5", "@babel/generator@^7.22.7", "@babel/generator@^7.7.2":
version "7.22.7"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.22.7.tgz#a6b8152d5a621893f2c9dacf9a4e286d520633d5"
integrity sha512-p+jPjMG+SI8yvIaxGgeW24u7q9+5+TGpZh8/CuB7RhBKd7RCy8FayNEFNNKrNK/eUcY/4ExQqLmyrvBXKsIcwQ==
@@ -912,7 +912,7 @@
"@babel/helper-module-transforms" "^7.22.5"
"@babel/helper-plugin-utils" "^7.22.5"
-"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.13.8", "@babel/plugin-transform-modules-commonjs@^7.21.5", "@babel/plugin-transform-modules-commonjs@^7.22.5":
+"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.13.8", "@babel/plugin-transform-modules-commonjs@^7.19.6", "@babel/plugin-transform-modules-commonjs@^7.21.5", "@babel/plugin-transform-modules-commonjs@^7.22.5":
version "7.22.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.22.5.tgz#7d9875908d19b8c0536085af7b053fd5bd651bfa"
integrity sha512-B4pzOXj+ONRmuaQTg05b3y/4DuFz3WcCNAXPLb2Q0GT0TrGKGxNKV4jwsXts+StaM0LQczZbOpj8o1DLPDJIiA==
@@ -1409,7 +1409,7 @@
resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310"
integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==
-"@babel/runtime@^7.0.0", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.0", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.8", "@babel/runtime@^7.18.3", "@babel/runtime@^7.20.13", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.22.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2":
+"@babel/runtime@^7.0.0", "@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.0", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.8", "@babel/runtime@^7.18.3", "@babel/runtime@^7.20.13", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.22.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2":
version "7.22.6"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.6.tgz#57d64b9ae3cff1d67eb067ae117dac087f5bd438"
integrity sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==
@@ -1441,6 +1441,22 @@
debug "^4.1.0"
globals "^11.1.0"
+"@babel/traverse@^7.20.1":
+ version "7.22.7"
+ resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.22.7.tgz#68a5513f3c6b88c7b5f5825d0720fb43e8a31826"
+ integrity sha512-vQn61YQzktf1wFNzCka2dynnnbmBpUDeUCds3Y+FBHZpcVxpBq0XscQGDDVN7sV2Vf1pZDY1HmPR3U/5t7VfMQ==
+ dependencies:
+ "@babel/code-frame" "^7.22.5"
+ "@babel/generator" "^7.22.7"
+ "@babel/helper-environment-visitor" "^7.22.5"
+ "@babel/helper-function-name" "^7.22.5"
+ "@babel/helper-hoist-variables" "^7.22.5"
+ "@babel/helper-split-export-declaration" "^7.22.6"
+ "@babel/parser" "^7.22.7"
+ "@babel/types" "^7.22.5"
+ debug "^4.1.0"
+ globals "^11.1.0"
+
"@babel/traverse@~7.21.2":
version "7.21.5"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.21.5.tgz#ad22361d352a5154b498299d523cf72998a4b133"
@@ -1457,7 +1473,7 @@
debug "^4.1.0"
globals "^11.1.0"
-"@babel/types@^7.0.0", "@babel/types@^7.12.6", "@babel/types@^7.16.8", "@babel/types@^7.18.13", "@babel/types@^7.2.0", "@babel/types@^7.20.7", "@babel/types@^7.21.3", "@babel/types@^7.21.5", "@babel/types@^7.22.5", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
+"@babel/types@^7.0.0", "@babel/types@^7.12.6", "@babel/types@^7.16.8", "@babel/types@^7.18.13", "@babel/types@^7.2.0", "@babel/types@^7.20.2", "@babel/types@^7.20.7", "@babel/types@^7.21.3", "@babel/types@^7.21.5", "@babel/types@^7.22.5", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
version "7.22.5"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.22.5.tgz#cd93eeaab025880a3a47ec881f4b096a5b786fbe"
integrity sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==
@@ -1485,6 +1501,60 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
+"@blocknote/core@^0.8.2":
+ version "0.8.2"
+ resolved "https://registry.yarnpkg.com/@blocknote/core/-/core-0.8.2.tgz#9e013cfc6df0b7bc42b617a00fc43cf2b09b7403"
+ integrity sha512-dJSUsv/6iZjMKAAL4Pib13yWhtFjHWkZr5EJ9w9KvyvNC+QEGQ7K9Teabw9Tu7M2+eif94qhpr76ryalfcdEmg==
+ dependencies:
+ "@emotion/cache" "^11.10.5"
+ "@emotion/serialize" "^1.1.1"
+ "@emotion/utils" "^1.2.0"
+ "@tiptap/core" "^2.0.3"
+ "@tiptap/extension-bold" "^2.0.3"
+ "@tiptap/extension-code" "^2.0.3"
+ "@tiptap/extension-collaboration" "^2.0.3"
+ "@tiptap/extension-collaboration-cursor" "^2.0.3"
+ "@tiptap/extension-dropcursor" "^2.0.3"
+ "@tiptap/extension-gapcursor" "^2.0.3"
+ "@tiptap/extension-hard-break" "^2.0.3"
+ "@tiptap/extension-history" "^2.0.3"
+ "@tiptap/extension-horizontal-rule" "^2.0.3"
+ "@tiptap/extension-italic" "^2.0.3"
+ "@tiptap/extension-link" "^2.0.3"
+ "@tiptap/extension-paragraph" "^2.0.3"
+ "@tiptap/extension-strike" "^2.0.3"
+ "@tiptap/extension-text" "^2.0.3"
+ "@tiptap/extension-underline" "^2.0.3"
+ "@tiptap/pm" "^2.0.3"
+ hast-util-from-dom "^4.2.0"
+ lodash "^4.17.21"
+ rehype-parse "^8.0.4"
+ rehype-remark "^9.1.2"
+ rehype-stringify "^9.0.3"
+ remark-gfm "^3.0.1"
+ remark-parse "^10.0.1"
+ remark-rehype "^10.1.0"
+ remark-stringify "^10.0.2"
+ unified "^10.1.2"
+ uuid "^8.3.2"
+ y-prosemirror "1.0.20"
+ y-protocols "^1.0.5"
+ yjs "^13.6.1"
+
+"@blocknote/react@^0.8.2":
+ version "0.8.2"
+ resolved "https://registry.yarnpkg.com/@blocknote/react/-/react-0.8.2.tgz#d8e0f012ada2245ff697dc7e7e2296ec8f92ebc6"
+ integrity sha512-t/Ad/bS5MsieoKj0KEcDLTytj7p6bbJGTNgg6cjpUS/BC5LfbqU/UQZVtugeXHJ8+esnXw6BOz0CyC4HIjcJ1g==
+ dependencies:
+ "@blocknote/core" "^0.8.2"
+ "@emotion/react" "^11.10.5"
+ "@mantine/core" "^5.6.1"
+ "@mantine/hooks" "^5.6.1"
+ "@mantine/utils" "^6.0.5"
+ "@tippyjs/react" "^4.2.6"
+ "@tiptap/react" "^2.0.3"
+ react-icons "^4.3.1"
+
"@colors/[email protected]":
version "1.5.0"
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
@@ -1643,7 +1713,7 @@
source-map "^0.5.7"
stylis "4.2.0"
-"@emotion/cache@^11.11.0", "@emotion/cache@^11.4.0":
+"@emotion/cache@^11.10.5", "@emotion/cache@^11.11.0", "@emotion/cache@^11.4.0":
version "11.11.0"
resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-11.11.0.tgz#809b33ee6b1cb1a625fef7a45bc568ccd9b8f3ff"
integrity sha512-P34z9ssTCBi3e9EI1ZsWpNHcfY1r09ZO0rZbRO2ob3ZQMnFI35jB536qoXbkdesr5EUhYi22anuEJuyxifaqAQ==
@@ -1683,7 +1753,7 @@
resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.8.1.tgz#c1ddb040429c6d21d38cc945fe75c818cfb68e17"
integrity sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==
-"@emotion/react@^11.10.6", "@emotion/react@^11.8.1":
+"@emotion/react@^11.10.5", "@emotion/react@^11.10.6", "@emotion/react@^11.8.1":
version "11.11.1"
resolved "https://registry.yarnpkg.com/@emotion/react/-/react-11.11.1.tgz#b2c36afac95b184f73b08da8c214fdf861fa4157"
integrity sha512-5mlW1DquU5HaxjLkfkGN1GA/fvVGdyHURRiX/0FHl2cfIfRxSOfmxEH5YS43edp0OldZrZ+dkBKbngxcNCdZvA==
@@ -1697,7 +1767,7 @@
"@emotion/weak-memoize" "^0.3.1"
hoist-non-react-statics "^3.3.1"
-"@emotion/serialize@^1.1.2":
+"@emotion/serialize@^1.1.1", "@emotion/serialize@^1.1.2":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@emotion/serialize/-/serialize-1.1.2.tgz#017a6e4c9b8a803bd576ff3d52a0ea6fa5a62b51"
integrity sha512-zR6a/fkFP4EAcCMQtLOhIgpprZOwNmCldtpaISpvz348+DP4Mz8ZoKaGGCQpbzepNIUWbq4w6hNZkwDyKoS+HA==
@@ -1735,7 +1805,7 @@
resolved "https://registry.yarnpkg.com/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.0.1.tgz#08de79f54eb3406f9daaf77c76e35313da963963"
integrity sha512-jT/qyKZ9rzLErtrjGgdkMBn2OP8wl0G3sQlBb3YPryvKHsjvINUhVaPFfP+fpBcOkmrVOVEEHQFJ7nbj2TH2gw==
-"@emotion/utils@^1.2.1":
+"@emotion/utils@^1.2.0", "@emotion/utils@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@emotion/utils/-/utils-1.2.1.tgz#bbab58465738d31ae4cb3dbb6fc00a5991f755e4"
integrity sha512-Y2tGf3I+XVnajdItskUCn6LX+VUDmP6lTL4fcqsXAv43dnlbZiuW4MWQW38rW/BVWSE7Q/7+XQocmpnRYILUmg==
@@ -1897,13 +1967,20 @@
resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.3.1.tgz#4d795b649cc3b1cbb760d191c80dcb4353c9a366"
integrity sha512-Bu+AMaXNjrpjh41znzHqaz3r2Nr8hHuHZT6V2LBKMhyMl0FgKA62PNYbqnfgmzOhoWZj70Zecisbo4H1rotP5g==
-"@floating-ui/dom@^1.0.0", "@floating-ui/dom@^1.0.1", "@floating-ui/dom@^1.3.0":
+"@floating-ui/dom@^1.0.0", "@floating-ui/dom@^1.0.1", "@floating-ui/dom@^1.2.1", "@floating-ui/dom@^1.3.0":
version "1.4.4"
resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.4.4.tgz#cf859dde33995a4e7b6ded16c98cb73b2ebfffd0"
integrity sha512-21hhDEPOiWkGp0Ys4Wi6Neriah7HweToKra626CIK712B5m9qkdz54OP9gVldUg+URnBTpv/j/bi/skmGdstXQ==
dependencies:
"@floating-ui/core" "^1.3.1"
+"@floating-ui/react-dom@^1.3.0":
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-1.3.0.tgz#4d35d416eb19811c2b0e9271100a6aa18c1579b3"
+ integrity sha512-htwHm67Ji5E/pROEAr7f8IKFShuiCKHwUC/UY4vC3I5jiSvGFAYnSYiZO5MlGmads+QqvUkR9ANHEguGrDv72g==
+ dependencies:
+ "@floating-ui/dom" "^1.2.1"
+
"@floating-ui/react-dom@^2.0.1":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-2.0.1.tgz#7972a4fc488a8c746cded3cfe603b6057c308a91"
@@ -1911,6 +1988,15 @@
dependencies:
"@floating-ui/dom" "^1.3.0"
+"@floating-ui/react@^0.19.1":
+ version "0.19.2"
+ resolved "https://registry.yarnpkg.com/@floating-ui/react/-/react-0.19.2.tgz#c6e4d2097ed0dca665a7c042ddf9cdecc95e9412"
+ integrity sha512-JyNk4A0Ezirq8FlXECvRtQOX/iBe5Ize0W/pLkrZjfHW9GUV7Xnq6zm6fyZuQzaHHqEnVizmvlA96e1/CkZv+w==
+ dependencies:
+ "@floating-ui/react-dom" "^1.3.0"
+ aria-hidden "^1.1.3"
+ tabbable "^6.0.1"
+
"@floating-ui/react@^0.24.3":
version "0.24.6"
resolved "https://registry.yarnpkg.com/@floating-ui/react/-/react-0.24.6.tgz#427f497648f562a23d6648347a6ba47aa7365692"
@@ -2906,6 +2992,80 @@
resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b"
integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==
+"@linaria/[email protected]":
+ version "4.2.9"
+ resolved "https://registry.yarnpkg.com/@linaria/core/-/core-4.2.9.tgz#4917bde18d064a29cff4fd86aa99621f953a2a2c"
+ integrity sha512-ELcu37VNVOT/PU0L6WDIN+aLzNFyJrqoBYT0CucGOCAmODbojUMCv8oJYRbWzA3N34w1t199dN4UFdfRWFG2rg==
+ dependencies:
+ "@linaria/logger" "^4.0.0"
+ "@linaria/tags" "^4.3.4"
+ "@linaria/utils" "^4.3.3"
+
+"@linaria/logger@^4.0.0":
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/@linaria/logger/-/logger-4.0.0.tgz#6f73eb3cc11d548967a7caf2e7997439e46fca0d"
+ integrity sha512-YnBq0JlDWMEkTOK+tMo5yEVR0f5V//6qMLToGcLhTyM9g9i+IDFn51Z+5q2hLk7RdG4NBPgbcCXYi2w4RKsPeg==
+ dependencies:
+ debug "^4.1.1"
+ picocolors "^1.0.0"
+
+"@linaria/tags@^4.3.4":
+ version "4.3.5"
+ resolved "https://registry.yarnpkg.com/@linaria/tags/-/tags-4.3.5.tgz#bf2e070d11179addf2f27a66cd29d8192e71ca89"
+ integrity sha512-PgaIi8Vv89YOjc6rpKL/uPg2w4k0rAwAYxcqeXqzKqsEAste5rgB8xp1/KUOG0oAOkPd3MRL6Duj+m0ZwJ3g+g==
+ dependencies:
+ "@babel/generator" "^7.20.4"
+ "@linaria/logger" "^4.0.0"
+ "@linaria/utils" "^4.3.4"
+
+"@linaria/utils@^4.3.3", "@linaria/utils@^4.3.4":
+ version "4.3.4"
+ resolved "https://registry.yarnpkg.com/@linaria/utils/-/utils-4.3.4.tgz#860db9131e498b62510e49dc6fd4a8f0ed44bf4d"
+ integrity sha512-vt6WJG54n+KANaqxOfzIIU7aSfFHEWFbnGLsgxL7nASHqO0zezrNA2y2Rrp80zSeTW+wSpbmDM4uJyC9UW1qoA==
+ dependencies:
+ "@babel/core" "^7.20.2"
+ "@babel/plugin-proposal-export-namespace-from" "^7.18.9"
+ "@babel/plugin-syntax-dynamic-import" "^7.8.3"
+ "@babel/plugin-transform-modules-commonjs" "^7.19.6"
+ "@babel/traverse" "^7.20.1"
+ "@babel/types" "^7.20.2"
+ "@linaria/logger" "^4.0.0"
+ babel-merge "^3.0.0"
+
+"@mantine/core@^5.6.1":
+ version "5.10.5"
+ resolved "https://registry.yarnpkg.com/@mantine/core/-/core-5.10.5.tgz#071e14dcf8b94a36d0243f1f4b30305ac0074afd"
+ integrity sha512-F4tqHSEVM9D6/iSqHfPda+Xl5XgSEPHAAkT01Zwzj4Jnbd10qGrlqr/SFUop2CIcuKYnmra9XltUahUPXBC2BQ==
+ dependencies:
+ "@floating-ui/react" "^0.19.1"
+ "@mantine/styles" "5.10.5"
+ "@mantine/utils" "5.10.5"
+ "@radix-ui/react-scroll-area" "1.0.2"
+ react-textarea-autosize "8.3.4"
+
+"@mantine/hooks@^5.6.1":
+ version "5.10.5"
+ resolved "https://registry.yarnpkg.com/@mantine/hooks/-/hooks-5.10.5.tgz#568586a0fa649be46f057ddc920bf98761017ffb"
+ integrity sha512-hFQp71QZDfivPzfIUOQZfMKLiOL/Cn2EnzacRlbUr55myteTfzYN8YMt+nzniE/6c4IRopFHEAdbKEtfyQc6kg==
+
+"@mantine/[email protected]":
+ version "5.10.5"
+ resolved "https://registry.yarnpkg.com/@mantine/styles/-/styles-5.10.5.tgz#ace82a71b4fe3d14ee14638f1735d5680d93d36d"
+ integrity sha512-0NXk8c/XGzuTUkZc6KceF2NaTCMEu5mHR4ru0x+ttb9DGnLpHuGWduTHjSfr4hl6eAJgedD0zauO+VAhDzO9zA==
+ dependencies:
+ clsx "1.1.1"
+ csstype "3.0.9"
+
+"@mantine/[email protected]":
+ version "5.10.5"
+ resolved "https://registry.yarnpkg.com/@mantine/utils/-/utils-5.10.5.tgz#ad620d714e545c6efb7f69d94ce46e3fd2fe01fb"
+ integrity sha512-FGMq4dGs5HhDAtI0z46uzxzKKPmZ3h5uKUyKg1ZHoFR1mBtcUMbB6FylFmHqKFRWlJ5IXqX9dwmiVrLYUOfTmA==
+
+"@mantine/utils@^6.0.5":
+ version "6.0.16"
+ resolved "https://registry.yarnpkg.com/@mantine/utils/-/utils-6.0.16.tgz#b39e47ef8fa4463322e9aa10cdd5980f4310b705"
+ integrity sha512-UFel9DbifL3zS8pTJlr6GfwGd6464OWXCJdUq0oLydgimbC1VV2PnptBr6FMwIpPVcxouLOtY1cChzwFH95PSA==
+
"@mdx-js/react@^2.1.5":
version "2.3.0"
resolved "https://registry.yarnpkg.com/@mdx-js/react/-/react-2.3.0.tgz#4208bd6d70f0d0831def28ef28c26149b03180b3"
@@ -3096,11 +3256,18 @@
schema-utils "^3.0.0"
source-map "^0.7.3"
-"@popperjs/core@^2.9.2":
+"@popperjs/core@^2.9.0", "@popperjs/core@^2.9.2":
version "2.11.8"
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f"
integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/number/-/number-1.0.0.tgz#4c536161d0de750b3f5d55860fc3de46264f897b"
+ integrity sha512-Ofwh/1HX69ZfJRiRBMTy7rgjAzHmwe4kW9C9Y99HTRUcYLUuVT0KESFj15rPjRgKJs20GPq8Bm5aEDJ8DuA3vA==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+
"@radix-ui/[email protected]":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@radix-ui/primitive/-/primitive-1.0.0.tgz#e1d8ef30b10ea10e69c76e896f608d9276352253"
@@ -3143,6 +3310,13 @@
aria-hidden "^1.1.1"
react-remove-scroll "2.5.4"
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-direction/-/react-direction-1.0.0.tgz#a2e0b552352459ecf96342c79949dd833c1e6e45"
+ integrity sha512-2HV05lGUgYcA6xgLQ4BKPDmtL+QbIZYH5fCOTAOOcJ5O0QbWS3i9lKaurLzliYUDhORI2Qr3pyjhJh44lKA3rQ==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+
"@radix-ui/[email protected]":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.0.tgz#35b7826fa262fd84370faef310e627161dffa76b"
@@ -3205,6 +3379,30 @@
"@babel/runtime" "^7.13.10"
"@radix-ui/react-slot" "1.0.0"
+"@radix-ui/[email protected]":
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-primitive/-/react-primitive-1.0.1.tgz#c1ebcce283dd2f02e4fbefdaa49d1cb13dbc990a"
+ integrity sha512-fHbmislWVkZaIdeF6GZxF0A/NH/3BjrGIYj+Ae6eTmTCr7EB0RQAAVEiqsXK6p3/JcRqVSBQoceZroj30Jj3XA==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-slot" "1.0.1"
+
+"@radix-ui/[email protected]":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-scroll-area/-/react-scroll-area-1.0.2.tgz#26c906d351b56835c0301126b24574c9e9c7b93b"
+ integrity sha512-k8VseTxI26kcKJaX0HPwkvlNBPTs56JRdYzcZ/vzrNUkDlvXBy8sMc7WvCpYzZkHgb+hd72VW9MqkqecGtuNgg==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/number" "1.0.0"
+ "@radix-ui/primitive" "1.0.0"
+ "@radix-ui/react-compose-refs" "1.0.0"
+ "@radix-ui/react-context" "1.0.0"
+ "@radix-ui/react-direction" "1.0.0"
+ "@radix-ui/react-presence" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.1"
+ "@radix-ui/react-use-callback-ref" "1.0.0"
+ "@radix-ui/react-use-layout-effect" "1.0.0"
+
"@radix-ui/[email protected]":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.0.0.tgz#7fa805b99891dea1e862d8f8fbe07f4d6d0fd698"
@@ -3213,6 +3411,14 @@
"@babel/runtime" "^7.13.10"
"@radix-ui/react-compose-refs" "1.0.0"
+"@radix-ui/[email protected]":
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.0.1.tgz#e7868c669c974d649070e9ecbec0b367ee0b4d81"
+ integrity sha512-avutXAFL1ehGvAXtPquu0YK5oz6ctS474iM3vNGQIkswrVhdrS52e3uoMQBzZhNRAIE0jBnUyXWNmSjGHhCFcw==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-compose-refs" "1.0.0"
+
"@radix-ui/[email protected]":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.0.tgz#9e7b8b6b4946fe3cbe8f748c82a2cce54e7b6a90"
@@ -3243,6 +3449,41 @@
dependencies:
"@babel/runtime" "^7.13.10"
+"@remirror/core-constants@^2.0.1":
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/@remirror/core-constants/-/core-constants-2.0.1.tgz#19b4ae221880762cd98452f44288fcc66baaec0f"
+ integrity sha512-ZR4aihtnnT9lMbhh5DEbsriJRlukRXmLZe7HmM+6ufJNNUDoazc75UX26xbgQlNUqgAqMcUdGFAnPc1JwgAdLQ==
+ dependencies:
+ "@babel/runtime" "^7.21.0"
+
+"@remirror/core-helpers@^2.0.2":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@remirror/core-helpers/-/core-helpers-2.0.3.tgz#fa4a0224a612016b9f16052ed0c5d817c69daa39"
+ integrity sha512-LqIPF4stGG69l9qu/FFicv9d9B+YaItzgDMC5A0CEvDQfKkGD3BfabLmfpnuWbsc06oKGdTduilgWcALLZoYLg==
+ dependencies:
+ "@babel/runtime" "^7.21.0"
+ "@linaria/core" "4.2.9"
+ "@remirror/core-constants" "^2.0.1"
+ "@remirror/types" "^1.0.1"
+ "@types/object.omit" "^3.0.0"
+ "@types/object.pick" "^1.3.2"
+ "@types/throttle-debounce" "^2.1.0"
+ case-anything "^2.1.10"
+ dash-get "^1.0.2"
+ deepmerge "^4.3.1"
+ fast-deep-equal "^3.1.3"
+ make-error "^1.3.6"
+ object.omit "^3.0.0"
+ object.pick "^1.3.0"
+ throttle-debounce "^3.0.1"
+
+"@remirror/types@^1.0.1":
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/@remirror/types/-/types-1.0.1.tgz#768502497a0fbbc23338a1586b893f729310cf70"
+ integrity sha512-VlZQxwGnt1jtQ18D6JqdIF+uFZo525WEqrfp9BOc3COPpK4+AWCgdnAWL+ho6imWcoINlGjR/+3b6y5C1vBVEA==
+ dependencies:
+ type-fest "^2.19.0"
+
"@remix-run/[email protected]":
version "1.7.1"
resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.7.1.tgz#fea7ac35ae4014637c130011f59428f618730498"
@@ -4550,6 +4791,141 @@
dependencies:
"@babel/runtime" "^7.12.5"
+"@tippyjs/react@^4.2.6":
+ version "4.2.6"
+ resolved "https://registry.yarnpkg.com/@tippyjs/react/-/react-4.2.6.tgz#971677a599bf663f20bb1c60a62b9555b749cc71"
+ integrity sha512-91RicDR+H7oDSyPycI13q3b7o4O60wa2oRbjlz2fyRLmHImc4vyDwuUP8NtZaN0VARJY5hybvDYrFzhY9+Lbyw==
+ dependencies:
+ tippy.js "^6.3.1"
+
+"@tiptap/core@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/core/-/core-2.0.3.tgz#dfd55124b3e7b0482e5ccb8be46eb9c3189167e2"
+ integrity sha512-jLyVIWAdjjlNzrsRhSE2lVL/7N8228/1R1QtaVU85UlMIwHFAcdzhD8FeiKkqxpTnGpaDVaTy7VNEtEgaYdCyA==
+
+"@tiptap/extension-bold@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-bold/-/extension-bold-2.0.3.tgz#2a28816195562a39c33f50e626796d14a800784f"
+ integrity sha512-OGT62fMRovSSayjehumygFWTg2Qn0IDbqyMpigg/RUAsnoOI2yBZFVrdM2gk1StyoSay7gTn2MLw97IUfr7FXg==
+
+"@tiptap/extension-bubble-menu@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-bubble-menu/-/extension-bubble-menu-2.0.3.tgz#44b3c4e35fd478c42467d8fb7dbc9532614e5b18"
+ integrity sha512-lPt1ELrYCuoQrQEUukqjp9xt38EwgPUwaKHI3wwt2Rbv+C6q1gmRsK1yeO/KqCNmFxNqF2p9ZF9srOnug/RZDQ==
+ dependencies:
+ tippy.js "^6.3.7"
+
+"@tiptap/extension-code@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-code/-/extension-code-2.0.3.tgz#74d88073faedd1fc52d6ed3de4eed8fde80ff4bf"
+ integrity sha512-LsVCKVxgBtkstAr1FjxN8T3OjlC76a2X8ouoZpELMp+aXbjqyanCKzt+sjjUhE4H0yLFd4v+5v6UFoCv4EILiw==
+
+"@tiptap/extension-collaboration-cursor@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-collaboration-cursor/-/extension-collaboration-cursor-2.0.3.tgz#2585d82fa684f0f94bdb26875e0c9bfff096ee74"
+ integrity sha512-pBcsk3ZkK8IQK6UP/a7Y4rjZRW/anhxFaTCcTxrUvn/azqRI+mcCsRwbc5lNLzcYq5JVOHGROjriNmGGkIr5jA==
+
+"@tiptap/extension-collaboration@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-collaboration/-/extension-collaboration-2.0.3.tgz#f41c7958348f957123d58c58161b809267a77cd0"
+ integrity sha512-oA+5Dx+L1GfFrP2tUol8lfKNrLitYgHBaBJbAiqh/QPKVuUiEWgFS2W1oYaSGmwYjzdPCVJqXyQLzSJvEdnBWQ==
+
+"@tiptap/extension-dropcursor@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-dropcursor/-/extension-dropcursor-2.0.3.tgz#205d02c70b200810572d0b7e264bbdb718343ad0"
+ integrity sha512-McthMrfusn6PjcaynJLheZJcXto8TaIW5iVitYh8qQrDXr31MALC/5GvWuiswmQ8bAXiWPwlLDYE/OJfwtggaw==
+
+"@tiptap/extension-floating-menu@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-floating-menu/-/extension-floating-menu-2.0.3.tgz#8d9943246aa3247442c1993f235617094fe705b5"
+ integrity sha512-zN1vRGRvyK3pO2aHRmQSOTpl4UJraXYwKYM009n6WviYKUNm0LPGo+VD4OAtdzUhPXyccnlsTv2p6LIqFty6Bg==
+ dependencies:
+ tippy.js "^6.3.7"
+
+"@tiptap/extension-gapcursor@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-gapcursor/-/extension-gapcursor-2.0.3.tgz#e098b78c4a169e1630dc6531d68b7f365de59c2f"
+ integrity sha512-6I9EzzsYOyyqDvDvxIK6Rv3EXB+fHKFj8ntHO8IXmeNJ6pkhOinuXVsW6Yo7TcDYoTj4D5I2MNFAW2rIkgassw==
+
+"@tiptap/extension-hard-break@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-hard-break/-/extension-hard-break-2.0.3.tgz#aa7805d825e5244bdccc508da18c781e231b2859"
+ integrity sha512-RCln6ARn16jvKTjhkcAD5KzYXYS0xRMc0/LrHeV8TKdCd4Yd0YYHe0PU4F9gAgAfPQn7Dgt4uTVJLN11ICl8sQ==
+
+"@tiptap/extension-history@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-history/-/extension-history-2.0.3.tgz#8936c15aa46f2ddeada1c3d9abe2888d58d08c30"
+ integrity sha512-00KHIcJ8kivn2ARI6NQYphv2LfllVCXViHGm0EhzDW6NQxCrriJKE3tKDcTFCu7LlC5doMpq9Z6KXdljc4oVeQ==
+
+"@tiptap/extension-horizontal-rule@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-horizontal-rule/-/extension-horizontal-rule-2.0.3.tgz#5c67db2c0bf3bc14a8aab80df584bee5aa23fbeb"
+ integrity sha512-SZRUSh07b/M0kJHNKnfBwBMWrZBEm/E2LrK1NbluwT3DBhE+gvwiEdBxgB32zKHNxaDEXUJwUIPNC3JSbKvPUA==
+
+"@tiptap/extension-italic@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-italic/-/extension-italic-2.0.3.tgz#2d9d5d8ccf3c38266f745029c2ec0646c075c1fc"
+ integrity sha512-cfS5sW0gu7qf4ihwnLtW/QMTBrBEXaT0sJl3RwkhjIBg/65ywJKE5Nz9ewnQHmDeT18hvMJJ1VIb4j4ze9jj9A==
+
+"@tiptap/extension-link@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-link/-/extension-link-2.0.3.tgz#4714a4c23d04032e75b5b8364a9c532f7a385aba"
+ integrity sha512-H72tXQ5rkVCkAhFaf08fbEU7EBUCK0uocsqOF+4th9sOlrhfgyJtc8Jv5EXPDpxNgG5jixSqWBo0zKXQm9s9eg==
+ dependencies:
+ linkifyjs "^4.1.0"
+
+"@tiptap/extension-paragraph@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-paragraph/-/extension-paragraph-2.0.3.tgz#88d332158c70622d36849256f90e43ca4d226dfe"
+ integrity sha512-a+tKtmj4bU3GVCH1NE8VHWnhVexxX5boTVxsHIr4yGG3UoKo1c5AO7YMaeX2W5xB5iIA+BQqOPCDPEAx34dd2A==
+
+"@tiptap/extension-strike@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-strike/-/extension-strike-2.0.3.tgz#4ec0001db5f51f86d06da22364114f20f073d4b3"
+ integrity sha512-RO4/EYe2iPD6ifDHORT8fF6O9tfdtnzxLGwZIKZXnEgtweH+MgoqevEzXYdS+54Wraq4TUQGNcsYhe49pv7Rlw==
+
+"@tiptap/extension-text@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-text/-/extension-text-2.0.3.tgz#12b6400a31ac6d35cbaf1822600f4c425457902f"
+ integrity sha512-LvzChcTCcPSMNLUjZe/A9SHXWGDHtvk73fR7CBqAeNU0MxhBPEBI03GFQ6RzW3xX0CmDmjpZoDxFMB+hDEtW1A==
+
+"@tiptap/extension-underline@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/extension-underline/-/extension-underline-2.0.3.tgz#257fd5fddd98e0fdb959f5717b3ec259a44e68f9"
+ integrity sha512-oMYa7qib/5wJjpUp79GZEe+E/iyf1oZBsgiG26IspEtVTHZmpn3+Ktud7l43y/hpTeEzFTKOF1/uVbayHtSERg==
+
+"@tiptap/pm@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/pm/-/pm-2.0.3.tgz#e8bb47df765fc1b7acd52f2800c52d7ff945c5ec"
+ integrity sha512-I9dsInD89Agdm1QjFRO9dmJtU1ldVSILNPW0pEhv9wYqYVvl4HUj/JMtYNqu2jWrCHNXQcaX/WkdSdvGJtmg5g==
+ dependencies:
+ prosemirror-changeset "^2.2.0"
+ prosemirror-collab "^1.3.0"
+ prosemirror-commands "^1.3.1"
+ prosemirror-dropcursor "^1.5.0"
+ prosemirror-gapcursor "^1.3.1"
+ prosemirror-history "^1.3.0"
+ prosemirror-inputrules "^1.2.0"
+ prosemirror-keymap "^1.2.0"
+ prosemirror-markdown "^1.10.1"
+ prosemirror-menu "^1.2.1"
+ prosemirror-model "^1.18.1"
+ prosemirror-schema-basic "^1.2.0"
+ prosemirror-schema-list "^1.2.2"
+ prosemirror-state "^1.4.1"
+ prosemirror-tables "^1.3.0"
+ prosemirror-trailing-node "^2.0.2"
+ prosemirror-transform "^1.7.0"
+ prosemirror-view "^1.28.2"
+
+"@tiptap/react@^2.0.3":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@tiptap/react/-/react-2.0.3.tgz#4b7155ed4bfe3fa9cb691adbbcf3713173ca7a6c"
+ integrity sha512-fiAh8Lk+/NBPAR/PE4Kc/aLiBUbUYI/CpAopz8DI9eInNyV8h8LAGa9uFILJQF/TNu0tclJ4rV0sWc7Se0FZMw==
+ dependencies:
+ "@tiptap/extension-bubble-menu" "^2.0.3"
+ "@tiptap/extension-floating-menu" "^2.0.3"
+
"@tootallnate/once@1":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
@@ -4662,7 +5038,7 @@
resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.4.1.tgz#bfd02c1f2224567676c1545199f87c3a861d878d"
integrity sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==
-"@types/debug@^4.1.7":
+"@types/debug@^4.0.0", "@types/debug@^4.1.7":
version "4.1.8"
resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.8.tgz#cef723a5d0a90990313faec2d1e22aee5eecb317"
integrity sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==
@@ -4740,6 +5116,11 @@
"@types/qs" "*"
"@types/serve-static" "*"
+"@types/extend@^3.0.0":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@types/extend/-/extend-3.0.1.tgz#923dc2d707d944382433e01d6cc0c69030ab2c75"
+ integrity sha512-R1g/VyKFFI2HLC1QGAeTtCBWCo6n75l41OnsVYNbmKG+kempOESaodf6BeJyUM3Q0rKa/NQcTHbB2+66lNnxLw==
+
"@types/extract-files@*":
version "8.1.1"
resolved "https://registry.yarnpkg.com/@types/extract-files/-/extract-files-8.1.1.tgz#11b67e795ad2c8b483431e8d4f190db2fd22944b"
@@ -4765,6 +5146,13 @@
dependencies:
"@types/node" "*"
+"@types/hast@^2.0.0":
+ version "2.3.4"
+ resolved "https://registry.yarnpkg.com/@types/hast/-/hast-2.3.4.tgz#8aa5ef92c117d20d974a82bdfb6a648b08c0bafc"
+ integrity sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g==
+ dependencies:
+ "@types/unist" "*"
+
"@types/hoist-non-react-statics@^3.3.1":
version "3.3.1"
resolved "https://registry.yarnpkg.com/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz#1124aafe5118cb591977aeb1ceaaed1070eb039f"
@@ -4872,6 +5260,13 @@
resolved "https://registry.yarnpkg.com/@types/luxon/-/luxon-3.3.0.tgz#a61043a62c0a72696c73a0a305c544c96501e006"
integrity sha512-uKRI5QORDnrGFYgcdAVnHvEIvEZ8noTpP/Bg+HeUzZghwinDlIS87DEenV5r1YoOF9G4x600YsUXLWZ19rmTmg==
+"@types/mdast@^3.0.0":
+ version "3.0.11"
+ resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-3.0.11.tgz#dc130f7e7d9306124286f6d6cee40cf4d14a3dc0"
+ integrity sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw==
+ dependencies:
+ "@types/unist" "*"
+
"@types/mdx@^2.0.0":
version "2.0.5"
resolved "https://registry.yarnpkg.com/@types/mdx/-/mdx-2.0.5.tgz#9a85a8f70c7c4d9e695a21d5ae5c93645eda64b1"
@@ -4930,11 +5325,26 @@
resolved "https://registry.yarnpkg.com/@types/npmlog/-/npmlog-4.1.4.tgz#30eb872153c7ead3e8688c476054ddca004115f6"
integrity sha512-WKG4gTr8przEZBiJ5r3s8ZIAoMXNbOgQ+j/d5O4X3x6kZJRLNvyUJuUK/KoG3+8BaOHPhp2m7WC6JKKeovDSzQ==
+"@types/object.omit@^3.0.0":
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/@types/object.omit/-/object.omit-3.0.0.tgz#0d31e1208eac8fe2ad5c9499a1016a8273bbfafc"
+ integrity sha512-I27IoPpH250TUzc9FzXd0P1BV/BMJuzqD3jOz98ehf9dQqGkxlq+hO1bIqZGWqCg5bVOy0g4AUVJtnxe0klDmw==
+
+"@types/object.pick@^1.3.2":
+ version "1.3.2"
+ resolved "https://registry.yarnpkg.com/@types/object.pick/-/object.pick-1.3.2.tgz#9eb28118240ad8f658b9c9c6caf35359fdb37150"
+ integrity sha512-sn7L+qQ6RLPdXRoiaE7bZ/Ek+o4uICma/lBFPyJEKDTPTBP1W8u0c4baj3EiS4DiqLs+Hk+KUGvMVJtAw3ePJg==
+
"@types/parse-json@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==
+"@types/parse5@^6.0.0":
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/@types/parse5/-/parse5-6.0.3.tgz#705bb349e789efa06f43f128cef51240753424cb"
+ integrity sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==
+
"@types/prettier@^2.1.5":
version "2.7.3"
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.3.tgz#3e51a17e291d01d17d3fc61422015a933af7a08f"
@@ -5082,12 +5492,17 @@
dependencies:
"@types/jest" "*"
+"@types/throttle-debounce@^2.1.0":
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/@types/throttle-debounce/-/throttle-debounce-2.1.0.tgz#1c3df624bfc4b62f992d3012b84c56d41eab3776"
+ integrity sha512-5eQEtSCoESnh2FsiLTxE121IiE60hnMqcb435fShf4bpLRjEu1Eoekht23y6zXS9Ts3l+Szu3TARnTsA0GkOkQ==
+
"@types/trusted-types@^2.0.2":
version "2.0.3"
resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.3.tgz#a136f83b0758698df454e328759dbd3d44555311"
integrity sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==
-"@types/unist@^2.0.0":
+"@types/unist@*", "@types/unist@^2.0.0":
version "2.0.6"
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d"
integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==
@@ -5694,7 +6109,7 @@ argparse@^2.0.1:
resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
-aria-hidden@^1.1.1, aria-hidden@^1.2.3:
+aria-hidden@^1.1.1, aria-hidden@^1.1.3, aria-hidden@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/aria-hidden/-/aria-hidden-1.2.3.tgz#14aeb7fb692bbb72d69bebfa47279c1fd725e954"
integrity sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==
@@ -6144,6 +6559,14 @@ babel-loader@^9.0.0:
find-cache-dir "^4.0.0"
schema-utils "^4.0.0"
+babel-merge@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/babel-merge/-/babel-merge-3.0.0.tgz#9bd368d48116dab18b8f3e8022835479d80f3b50"
+ integrity sha512-eBOBtHnzt9xvnjpYNI5HmaPp/b2vMveE5XggzqHnQeHJ8mFIBrBv6WZEVIj5jJ2uwTItkqKo9gWzEEcBxEq0yw==
+ dependencies:
+ deepmerge "^2.2.1"
+ object.omit "^3.0.0"
+
babel-messages@^6.23.0:
version "6.23.0"
resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e"
@@ -6854,6 +7277,11 @@ babylon@^6.18.0:
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3"
integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==
+bail@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/bail/-/bail-2.0.2.tgz#d26f5cd8fe5d6f832a31517b9f7c356040ba6d5d"
+ integrity sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==
+
balanced-match@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
@@ -7165,11 +7593,21 @@ capital-case@^1.0.4:
tslib "^2.0.3"
upper-case-first "^2.0.2"
+case-anything@^2.1.10:
+ version "2.1.13"
+ resolved "https://registry.yarnpkg.com/case-anything/-/case-anything-2.1.13.tgz#0cdc16278cb29a7fcdeb072400da3f342ba329e9"
+ integrity sha512-zlOQ80VrQ2Ue+ymH5OuM/DlDq64mEm+B9UTdHULv5osUMD6HalNTblf2b1u/m6QecjsnOkBpqVZ+XPwIVsy7Ng==
+
case-sensitive-paths-webpack-plugin@^2.4.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz#db64066c6422eed2e08cc14b986ca43796dbc6d4"
integrity sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==
+ccount@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/ccount/-/ccount-2.0.1.tgz#17a3bf82302e0870d6da43a01311a8bc02a3ecf5"
+ integrity sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==
+
version "4.1.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad"
@@ -7279,6 +7717,21 @@ char-regex@^2.0.0:
resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-2.0.1.tgz#6dafdb25f9d3349914079f010ba8d0e6ff9cd01e"
integrity sha512-oSvEeo6ZUD7NepqAat3RqoucZ5SeqLJgOvVIwkafu6IP3V0pO38s/ypdVUmDDK6qIIHNlYHJAKX9E7R7HoKElw==
+character-entities-html4@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-2.1.0.tgz#1f1adb940c971a4b22ba39ddca6b618dc6e56b2b"
+ integrity sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==
+
+character-entities-legacy@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz#76bc83a90738901d7bc223a9e93759fdd560125b"
+ integrity sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==
+
+character-entities@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-2.0.2.tgz#2d09c2e72cd9523076ccb21157dff66ad43fcc22"
+ integrity sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==
+
chardet@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e"
@@ -7426,6 +7879,11 @@ clone@^1.0.2:
resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e"
integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/clsx/-/clsx-1.1.1.tgz#98b3134f9abbdf23b2663491ace13c5c03a73188"
+ integrity sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==
+
cmdk@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/cmdk/-/cmdk-0.2.0.tgz#53c52d56d8776c8bb8ced1055b5054100c388f7c"
@@ -7499,6 +7957,11 @@ combined-stream@^1.0.8:
dependencies:
delayed-stream "~1.0.0"
+comma-separated-tokens@^2.0.0:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz#4e89c9458acb61bc8fef19f4529973b2392839ee"
+ integrity sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==
+
version "0.1.2"
resolved "https://registry.yarnpkg.com/command-score/-/command-score-0.1.2.tgz#b986ad7e8c0beba17552a56636c44ae38363d381"
@@ -7764,6 +8227,11 @@ create-require@^1.1.0:
resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333"
integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
+crelt@^1.0.0:
+ version "1.0.6"
+ resolved "https://registry.yarnpkg.com/crelt/-/crelt-1.0.6.tgz#7cc898ea74e190fb6ef9dae57f8f81cf7302df72"
+ integrity sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==
+
cross-fetch@^3.1.5:
version "3.1.8"
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.8.tgz#0327eba65fd68a7d119f8fb2bf9334a1a7956f82"
@@ -8036,6 +8504,11 @@ cssstyle@^2.3.0:
dependencies:
cssom "~0.3.6"
+ version "3.0.9"
+ resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.9.tgz#6410af31b26bd0520933d02cbc64fce9ce3fbf0b"
+ integrity sha512-rpw6JPxK6Rfg1zLOYCSwle2GFOOsnjmDYDaBwEcwoOg4qlsIVCN789VkBZDJAGi4T07gI4YSutR43t9Zz4Lzuw==
+
csstype@^3.0.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.2.tgz#1d4bf9d572f11c14031f0436e1c10bc1f571f50b"
@@ -8054,6 +8527,11 @@ damerau-levenshtein@^1.0.8:
resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7"
integrity sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==
+dash-get@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/dash-get/-/dash-get-1.0.2.tgz#4c9e9ad5ef04c4bf9d3c9a451f6f7997298dcc7c"
+ integrity sha512-4FbVrHDwfOASx7uQVxeiCTo7ggSdYZbqs8lH+WU6ViypPlDbe9y6IP5VVUDQBv9DcnyaiPT5XT0UWHgJ64zLeQ==
+
data-urls@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b"
@@ -8087,7 +8565,7 @@ [email protected], debug@^2.6.0, debug@^2.6.8, debug@^2.6.9:
dependencies:
ms "2.0.0"
-debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4:
+debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4:
version "4.3.4"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
@@ -8111,6 +8589,13 @@ decimal.js@^10.2.1:
resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.3.tgz#1044092884d245d1b7f65725fa4ad4c6f781cc23"
integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==
+decode-named-character-reference@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz#daabac9690874c394c81e4162a0304b35d824f0e"
+ integrity sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==
+ dependencies:
+ character-entities "^2.0.0"
+
dedent@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c"
@@ -8145,6 +8630,11 @@ deep-is@^0.1.3:
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831"
integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==
+deepmerge@^2.2.1:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-2.2.1.tgz#5d3ff22a01c00f645405a2fbc17d0778a1801170"
+ integrity sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==
+
deepmerge@^4.2.2, deepmerge@^4.3.1:
version "4.3.1"
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a"
@@ -8236,7 +8726,7 @@ dependency-graph@^0.11.0:
resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.11.0.tgz#ac0ce7ed68a54da22165a85e97a01d53f5eb2e27"
integrity sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==
-dequal@^2.0.2, dequal@^2.0.3:
+dequal@^2.0.0, dequal@^2.0.2, dequal@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be"
integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==
@@ -8326,6 +8816,11 @@ diff@^4.0.1:
resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"
integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==
+diff@^5.0.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/diff/-/diff-5.1.0.tgz#bc52d298c5ea8df9194800224445ed43ffc87e40"
+ integrity sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==
+
diffable-html@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/diffable-html/-/diffable-html-4.1.0.tgz#e7a2d1de187c4e23a59751b4e4c17483a058c696"
@@ -8635,6 +9130,11 @@ entities@^4.2.0, entities@^4.4.0:
resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48"
integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==
+entities@~3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/entities/-/entities-3.0.1.tgz#2b887ca62585e96db3903482d336c1006c3001d4"
+ integrity sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==
+
envinfo@^7.7.3:
version "7.10.0"
resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.10.0.tgz#55146e3909cc5fe63c22da63fb15b05aeac35b13"
@@ -8819,6 +9319,11 @@ escape-string-regexp@^4.0.0:
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
+escape-string-regexp@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8"
+ integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==
+
escodegen@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.1.0.tgz#ba93bbb7a43986d29d6041f99f5262da773e2e17"
@@ -10186,6 +10691,167 @@ hasha@^5.0.0:
is-stream "^2.0.0"
type-fest "^0.8.0"
+hast-util-embedded@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/hast-util-embedded/-/hast-util-embedded-2.0.1.tgz#979e07ecc6bc42b560ccac755cab926c354f24c7"
+ integrity sha512-QUdSOP1/o+/TxXtpPFXR2mUg2P+ySrmlX7QjwHZCXqMFyYk7YmcGSvqRW+4XgXAoHifdE1t2PwFaQK33TqVjSw==
+ dependencies:
+ hast-util-is-element "^2.0.0"
+
+hast-util-from-dom@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/hast-util-from-dom/-/hast-util-from-dom-4.2.0.tgz#25836ddecc3cc0849d32749c2a7aec03e94b59a7"
+ integrity sha512-t1RJW/OpJbCAJQeKi3Qrj1cAOLA0+av/iPFori112+0X7R3wng+jxLA+kXec8K4szqPRGI8vPxbbpEYvvpwaeQ==
+ dependencies:
+ hastscript "^7.0.0"
+ web-namespaces "^2.0.0"
+
+hast-util-from-parse5@^7.0.0:
+ version "7.1.2"
+ resolved "https://registry.yarnpkg.com/hast-util-from-parse5/-/hast-util-from-parse5-7.1.2.tgz#aecfef73e3ceafdfa4550716443e4eb7b02e22b0"
+ integrity sha512-Nz7FfPBuljzsN3tCQ4kCBKqdNhQE2l0Tn+X1ubgKBPRoiDIu1mL08Cfw4k7q71+Duyaw7DXDN+VTAp4Vh3oCOw==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ "@types/unist" "^2.0.0"
+ hastscript "^7.0.0"
+ property-information "^6.0.0"
+ vfile "^5.0.0"
+ vfile-location "^4.0.0"
+ web-namespaces "^2.0.0"
+
+hast-util-has-property@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/hast-util-has-property/-/hast-util-has-property-2.0.1.tgz#8ec99c3e8f02626304ee438cdb9f0528b017e083"
+ integrity sha512-X2+RwZIMTMKpXUzlotatPzWj8bspCymtXH3cfG3iQKV+wPF53Vgaqxi/eLqGck0wKq1kS9nvoB1wchbCPEL8sg==
+
+hast-util-is-body-ok-link@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/hast-util-is-body-ok-link/-/hast-util-is-body-ok-link-2.0.0.tgz#e0df6947b2676d2acac55c611755d359f264958e"
+ integrity sha512-S58hCexyKdD31vMsErvgLfflW6vYWo/ixRLPJTtkOvLld24vyI8vmYmkgLA5LG3la2ME7nm7dLGdm48gfLRBfw==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ hast-util-has-property "^2.0.0"
+ hast-util-is-element "^2.0.0"
+
+hast-util-is-element@^2.0.0:
+ version "2.1.3"
+ resolved "https://registry.yarnpkg.com/hast-util-is-element/-/hast-util-is-element-2.1.3.tgz#cd3279cfefb70da6d45496068f020742256fc471"
+ integrity sha512-O1bKah6mhgEq2WtVMk+Ta5K7pPMqsBBlmzysLdcwKVrqzZQ0CHqUPiIVspNhAG1rvxpvJjtGee17XfauZYKqVA==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ "@types/unist" "^2.0.0"
+
+hast-util-parse-selector@^3.0.0:
+ version "3.1.1"
+ resolved "https://registry.yarnpkg.com/hast-util-parse-selector/-/hast-util-parse-selector-3.1.1.tgz#25ab00ae9e75cbc62cf7a901f68a247eade659e2"
+ integrity sha512-jdlwBjEexy1oGz0aJ2f4GKMaVKkA9jwjr4MjAAI22E5fM/TXVZHuS5OpONtdeIkRKqAaryQ2E9xNQxijoThSZA==
+ dependencies:
+ "@types/hast" "^2.0.0"
+
+hast-util-phrasing@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/hast-util-phrasing/-/hast-util-phrasing-2.0.2.tgz#0747ba8000a8d5598bef4000819d92fda8f8843c"
+ integrity sha512-yGkCfPkkfCyiLfK6KEl/orMDr/zgCnq/NaO9HfULx6/Zga5fso5eqQA5Ov/JZVqACygvw9shRYWgXNcG2ilo7w==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ hast-util-embedded "^2.0.0"
+ hast-util-has-property "^2.0.0"
+ hast-util-is-body-ok-link "^2.0.0"
+ hast-util-is-element "^2.0.0"
+
+hast-util-raw@^7.0.0:
+ version "7.2.3"
+ resolved "https://registry.yarnpkg.com/hast-util-raw/-/hast-util-raw-7.2.3.tgz#dcb5b22a22073436dbdc4aa09660a644f4991d99"
+ integrity sha512-RujVQfVsOrxzPOPSzZFiwofMArbQke6DJjnFfceiEbFh7S05CbPt0cYN+A5YeD3pso0JQk6O1aHBnx9+Pm2uqg==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ "@types/parse5" "^6.0.0"
+ hast-util-from-parse5 "^7.0.0"
+ hast-util-to-parse5 "^7.0.0"
+ html-void-elements "^2.0.0"
+ parse5 "^6.0.0"
+ unist-util-position "^4.0.0"
+ unist-util-visit "^4.0.0"
+ vfile "^5.0.0"
+ web-namespaces "^2.0.0"
+ zwitch "^2.0.0"
+
+hast-util-to-html@^8.0.0:
+ version "8.0.4"
+ resolved "https://registry.yarnpkg.com/hast-util-to-html/-/hast-util-to-html-8.0.4.tgz#0269ef33fa3f6599b260a8dc94f733b8e39e41fc"
+ integrity sha512-4tpQTUOr9BMjtYyNlt0P50mH7xj0Ks2xpo8M943Vykljf99HW6EzulIoJP1N3eKOSScEHzyzi9dm7/cn0RfGwA==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ "@types/unist" "^2.0.0"
+ ccount "^2.0.0"
+ comma-separated-tokens "^2.0.0"
+ hast-util-raw "^7.0.0"
+ hast-util-whitespace "^2.0.0"
+ html-void-elements "^2.0.0"
+ property-information "^6.0.0"
+ space-separated-tokens "^2.0.0"
+ stringify-entities "^4.0.0"
+ zwitch "^2.0.4"
+
+hast-util-to-mdast@^8.3.0:
+ version "8.4.1"
+ resolved "https://registry.yarnpkg.com/hast-util-to-mdast/-/hast-util-to-mdast-8.4.1.tgz#f953027e0688c52439b11a433ab9ed8b43e1e17b"
+ integrity sha512-tfmBLASuCgyhCzpkTXM5kU8xeuS5jkMZ17BYm2YftGT5wvgc7uHXTZ/X8WfNd6F5NV/IGmrLsuahZ+jXQir4zQ==
+ dependencies:
+ "@types/extend" "^3.0.0"
+ "@types/hast" "^2.0.0"
+ "@types/mdast" "^3.0.0"
+ "@types/unist" "^2.0.0"
+ extend "^3.0.0"
+ hast-util-has-property "^2.0.0"
+ hast-util-is-element "^2.0.0"
+ hast-util-phrasing "^2.0.0"
+ hast-util-to-text "^3.0.0"
+ mdast-util-phrasing "^3.0.0"
+ mdast-util-to-string "^3.0.0"
+ rehype-minify-whitespace "^5.0.0"
+ trim-trailing-lines "^2.0.0"
+ unist-util-is "^5.0.0"
+ unist-util-visit "^4.0.0"
+
+hast-util-to-parse5@^7.0.0:
+ version "7.1.0"
+ resolved "https://registry.yarnpkg.com/hast-util-to-parse5/-/hast-util-to-parse5-7.1.0.tgz#c49391bf8f151973e0c9adcd116b561e8daf29f3"
+ integrity sha512-YNRgAJkH2Jky5ySkIqFXTQiaqcAtJyVE+D5lkN6CdtOqrnkLfGYYrEcKuHOJZlp+MwjSwuD3fZuawI+sic/RBw==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ comma-separated-tokens "^2.0.0"
+ property-information "^6.0.0"
+ space-separated-tokens "^2.0.0"
+ web-namespaces "^2.0.0"
+ zwitch "^2.0.0"
+
+hast-util-to-text@^3.0.0:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/hast-util-to-text/-/hast-util-to-text-3.1.2.tgz#ecf30c47141f41e91a5d32d0b1e1859fd2ac04f2"
+ integrity sha512-tcllLfp23dJJ+ju5wCCZHVpzsQQ43+moJbqVX3jNWPB7z/KFC4FyZD6R7y94cHL6MQ33YtMZL8Z0aIXXI4XFTw==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ "@types/unist" "^2.0.0"
+ hast-util-is-element "^2.0.0"
+ unist-util-find-after "^4.0.0"
+
+hast-util-whitespace@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/hast-util-whitespace/-/hast-util-whitespace-2.0.1.tgz#0ec64e257e6fc216c7d14c8a1b74d27d650b4557"
+ integrity sha512-nAxA0v8+vXSBDt3AnRUNjyRIQ0rD+ntpbAp4LnPkumc5M9yUbSMa4XDU9Q6etY4f1Wp4bNgvc1yjiZtsTTrSng==
+
+hastscript@^7.0.0:
+ version "7.2.0"
+ resolved "https://registry.yarnpkg.com/hastscript/-/hastscript-7.2.0.tgz#0eafb7afb153d047077fa2a833dc9b7ec604d10b"
+ integrity sha512-TtYPq24IldU8iKoJQqvZOuhi5CyCQRAbvDOX0x1eW6rsHSxa/1i2CCiptNTotGHJ3VoHRGmqiv6/D3q113ikkw==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ comma-separated-tokens "^2.0.0"
+ hast-util-parse-selector "^3.0.0"
+ property-information "^6.0.0"
+ space-separated-tokens "^2.0.0"
+
he@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
@@ -10293,6 +10959,11 @@ html-tags@^3.1.0:
resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-3.3.1.tgz#a04026a18c882e4bba8a01a3d39cfe465d40b5ce"
integrity sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==
+html-void-elements@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/html-void-elements/-/html-void-elements-2.0.1.tgz#29459b8b05c200b6c5ee98743c41b979d577549f"
+ integrity sha512-0quDb7s97CfemeJAnW9wC0hw78MtW7NU3hqtCD75g2vFlDLt36llsYD7uB7SUzojLMP24N5IatXf7ylGXiGG9A==
+
html-webpack-plugin@^5.5.0:
version "5.5.3"
resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-5.5.3.tgz#72270f4a78e222b5825b296e5e3e1328ad525a3e"
@@ -10666,6 +11337,11 @@ is-boolean-object@^1.1.0:
call-bind "^1.0.2"
has-tostringtag "^1.0.0"
+is-buffer@^2.0.0:
+ version "2.0.5"
+ resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191"
+ integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==
+
is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7:
version "1.2.7"
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055"
@@ -10695,6 +11371,13 @@ is-docker@^2.0.0, is-docker@^2.1.1:
resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa"
integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==
+is-extendable@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4"
+ integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==
+ dependencies:
+ is-plain-object "^2.0.4"
+
is-extglob@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
@@ -10806,6 +11489,11 @@ is-plain-obj@^3.0.0:
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-3.0.0.tgz#af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7"
integrity sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==
+is-plain-obj@^4.0.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-4.1.0.tgz#d65025edec3657ce032fd7db63c97883eaed71f0"
+ integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==
+
version "5.0.0"
resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344"
@@ -10984,6 +11672,11 @@ [email protected], isomorphic-ws@^5.0.0:
resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz#e5529148912ecb9b451b46ed44d53dae1ce04bbf"
integrity sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==
+isomorphic.js@^0.2.4:
+ version "0.2.5"
+ resolved "https://registry.yarnpkg.com/isomorphic.js/-/isomorphic.js-0.2.5.tgz#13eecf36f2dba53e85d355e11bf9d4208c6f7f88"
+ integrity sha512-PIeMbHqMt4DnUP3MA/Flc0HElYjMXArsw1qwJZcm9sqR8mq3l8NYizFMty0pWwE/tzIGH3EKK5+jes5mAr85yw==
+
istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3"
@@ -12238,6 +12931,11 @@ kleur@^3.0.3:
resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e"
integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==
+kleur@^4.0.3:
+ version "4.1.5"
+ resolved "https://registry.yarnpkg.com/kleur/-/kleur-4.1.5.tgz#95106101795f7050c6c650f350c683febddb1780"
+ integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==
+
klona@^2.0.4, klona@^2.0.5:
version "2.0.6"
resolved "https://registry.yarnpkg.com/klona/-/klona-2.0.6.tgz#85bffbf819c03b2f53270412420a4555ef882e22"
@@ -12290,6 +12988,13 @@ levn@^0.4.1:
prelude-ls "^1.2.1"
type-check "~0.4.0"
+lib0@^0.2.42, lib0@^0.2.74:
+ version "0.2.78"
+ resolved "https://registry.yarnpkg.com/lib0/-/lib0-0.2.78.tgz#9aa34733075caafb3edf228da6e609d15ada0088"
+ integrity sha512-SV2nU43/6eaYnGH3l0lg2wg1ziB/TH3sAd2E8quXPGwrqo+aX98SNT2ZKucpUr5B8A52jD7ZMjAl+r87Fa/bLQ==
+ dependencies:
+ isomorphic.js "^0.2.4"
+
libphonenumber-js@^1.10.26:
version "1.10.37"
resolved "https://registry.yarnpkg.com/libphonenumber-js/-/libphonenumber-js-1.10.37.tgz#185264130c9375f17d0c487a288223294579929c"
@@ -12305,6 +13010,18 @@ lines-and-columns@^1.1.6:
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
+linkify-it@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-4.0.1.tgz#01f1d5e508190d06669982ba31a7d9f56a5751ec"
+ integrity sha512-C7bfi1UZmoj8+PQx22XyeXCuBlokoyWQL5pWSP+EI6nzRylyThouddufc2c1NDIcP9k5agmN9fLpA7VNJfIiqw==
+ dependencies:
+ uc.micro "^1.0.1"
+
+linkifyjs@^4.1.0:
+ version "4.1.1"
+ resolved "https://registry.yarnpkg.com/linkifyjs/-/linkifyjs-4.1.1.tgz#73d427e3bbaaf4ca8e71c589ad4ffda11a9a5fde"
+ integrity sha512-zFN/CTVmbcVef+WaDXT63dNzzkfRBKT1j464NJQkV7iSgJU0sLBus9W0HBwnXK13/hf168pbrx/V/bjEHOXNHA==
+
listr2@^4.0.5:
version "4.0.5"
resolved "https://registry.yarnpkg.com/listr2/-/listr2-4.0.5.tgz#9dcc50221583e8b4c71c43f9c7dfd0ef546b75d5"
@@ -12420,6 +13137,11 @@ log-update@^4.0.0:
slice-ansi "^4.0.0"
wrap-ansi "^6.2.0"
+longest-streak@^3.0.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-3.1.0.tgz#62fa67cd958742a1574af9f39866364102d90cd4"
+ integrity sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==
+
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
@@ -12495,7 +13217,7 @@ make-dir@^3.0.0, make-dir@^3.0.2, make-dir@^3.1.0:
dependencies:
semver "^6.0.0"
[email protected], make-error@^1.1.1:
[email protected], make-error@^1.1.1, make-error@^1.3.6:
version "1.3.6"
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2"
integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==
@@ -12517,6 +13239,22 @@ map-or-similar@^1.5.0:
resolved "https://registry.yarnpkg.com/map-or-similar/-/map-or-similar-1.5.0.tgz#6de2653174adfb5d9edc33c69d3e92a1b76faf08"
integrity sha512-0aF7ZmVon1igznGI4VS30yugpduQW3y3GkcgGJOp7d8x8QrizhigUxjI/m2UojsXXto+jLAH3KSz+xOJTiORjg==
+markdown-it@^13.0.1:
+ version "13.0.1"
+ resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-13.0.1.tgz#c6ecc431cacf1a5da531423fc6a42807814af430"
+ integrity sha512-lTlxriVoy2criHP0JKRhO2VDG9c2ypWCsT237eDiLqi09rmbKoUetyGHq2uOIRoRS//kfoJckS0eUzzkDR+k2Q==
+ dependencies:
+ argparse "^2.0.1"
+ entities "~3.0.1"
+ linkify-it "^4.0.1"
+ mdurl "^1.0.1"
+ uc.micro "^1.0.5"
+
+markdown-table@^3.0.0:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-3.0.3.tgz#e6331d30e493127e031dd385488b5bd326e4a6bd"
+ integrity sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==
+
markdown-to-jsx@^7.1.8:
version "7.2.1"
resolved "https://registry.yarnpkg.com/markdown-to-jsx/-/markdown-to-jsx-7.2.1.tgz#87061fd3176ad926ef3d99493e5c57f6335e0c51"
@@ -12529,15 +13267,153 @@ mdast-util-definitions@^4.0.0:
dependencies:
unist-util-visit "^2.0.0"
-mdast-util-to-string@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-1.1.0.tgz#27055500103f51637bd07d01da01eb1967a43527"
- integrity sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==
+mdast-util-definitions@^5.0.0:
+ version "5.1.2"
+ resolved "https://registry.yarnpkg.com/mdast-util-definitions/-/mdast-util-definitions-5.1.2.tgz#9910abb60ac5d7115d6819b57ae0bcef07a3f7a7"
+ integrity sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ "@types/unist" "^2.0.0"
+ unist-util-visit "^4.0.0"
- version "2.0.14"
- resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"
- integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==
+mdast-util-find-and-replace@^2.0.0:
+ version "2.2.2"
+ resolved "https://registry.yarnpkg.com/mdast-util-find-and-replace/-/mdast-util-find-and-replace-2.2.2.tgz#cc2b774f7f3630da4bd592f61966fecade8b99b1"
+ integrity sha512-MTtdFRz/eMDHXzeK6W3dO7mXUlF82Gom4y0oOgvHhh/HXZAGvIQDUvQ0SuUx+j2tv44b8xTHOm8K/9OoRFnXKw==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ escape-string-regexp "^5.0.0"
+ unist-util-is "^5.0.0"
+ unist-util-visit-parents "^5.0.0"
+
+mdast-util-from-markdown@^1.0.0:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz#9421a5a247f10d31d2faed2a30df5ec89ceafcf0"
+ integrity sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ "@types/unist" "^2.0.0"
+ decode-named-character-reference "^1.0.0"
+ mdast-util-to-string "^3.1.0"
+ micromark "^3.0.0"
+ micromark-util-decode-numeric-character-reference "^1.0.0"
+ micromark-util-decode-string "^1.0.0"
+ micromark-util-normalize-identifier "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+ unist-util-stringify-position "^3.0.0"
+ uvu "^0.5.0"
+
+mdast-util-gfm-autolink-literal@^1.0.0:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-1.0.3.tgz#67a13abe813d7eba350453a5333ae1bc0ec05c06"
+ integrity sha512-My8KJ57FYEy2W2LyNom4n3E7hKTuQk/0SES0u16tjA9Z3oFkF4RrC/hPAPgjlSpezsOvI8ObcXcElo92wn5IGA==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ ccount "^2.0.0"
+ mdast-util-find-and-replace "^2.0.0"
+ micromark-util-character "^1.0.0"
+
+mdast-util-gfm-footnote@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-1.0.2.tgz#ce5e49b639c44de68d5bf5399877a14d5020424e"
+ integrity sha512-56D19KOGbE00uKVj3sgIykpwKL179QsVFwx/DCW0u/0+URsryacI4MAdNJl0dh+u2PSsD9FtxPFbHCzJ78qJFQ==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ mdast-util-to-markdown "^1.3.0"
+ micromark-util-normalize-identifier "^1.0.0"
+
+mdast-util-gfm-strikethrough@^1.0.0:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-1.0.3.tgz#5470eb105b483f7746b8805b9b989342085795b7"
+ integrity sha512-DAPhYzTYrRcXdMjUtUjKvW9z/FNAMTdU0ORyMcbmkwYNbKocDpdk+PX1L1dQgOID/+vVs1uBQ7ElrBQfZ0cuiQ==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ mdast-util-to-markdown "^1.3.0"
+
+mdast-util-gfm-table@^1.0.0:
+ version "1.0.7"
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-table/-/mdast-util-gfm-table-1.0.7.tgz#3552153a146379f0f9c4c1101b071d70bbed1a46"
+ integrity sha512-jjcpmNnQvrmN5Vx7y7lEc2iIOEytYv7rTvu+MeyAsSHTASGCCRA79Igg2uKssgOs1i1po8s3plW0sTu1wkkLGg==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ markdown-table "^3.0.0"
+ mdast-util-from-markdown "^1.0.0"
+ mdast-util-to-markdown "^1.3.0"
+
+mdast-util-gfm-task-list-item@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-1.0.2.tgz#b280fcf3b7be6fd0cc012bbe67a59831eb34097b"
+ integrity sha512-PFTA1gzfp1B1UaiJVyhJZA1rm0+Tzn690frc/L8vNX1Jop4STZgOE6bxUhnzdVSB+vm2GU1tIsuQcA9bxTQpMQ==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ mdast-util-to-markdown "^1.3.0"
+
+mdast-util-gfm@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm/-/mdast-util-gfm-2.0.2.tgz#e92f4d8717d74bdba6de57ed21cc8b9552e2d0b6"
+ integrity sha512-qvZ608nBppZ4icQlhQQIAdc6S3Ffj9RGmzwUKUWuEICFnd1LVkN3EktF7ZHAgfcEdvZB5owU9tQgt99e2TlLjg==
+ dependencies:
+ mdast-util-from-markdown "^1.0.0"
+ mdast-util-gfm-autolink-literal "^1.0.0"
+ mdast-util-gfm-footnote "^1.0.0"
+ mdast-util-gfm-strikethrough "^1.0.0"
+ mdast-util-gfm-table "^1.0.0"
+ mdast-util-gfm-task-list-item "^1.0.0"
+ mdast-util-to-markdown "^1.0.0"
+
+mdast-util-phrasing@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/mdast-util-phrasing/-/mdast-util-phrasing-3.0.1.tgz#c7c21d0d435d7fb90956038f02e8702781f95463"
+ integrity sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ unist-util-is "^5.0.0"
+
+mdast-util-to-hast@^12.1.0:
+ version "12.3.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-to-hast/-/mdast-util-to-hast-12.3.0.tgz#045d2825fb04374e59970f5b3f279b5700f6fb49"
+ integrity sha512-pits93r8PhnIoU4Vy9bjW39M2jJ6/tdHyja9rrot9uujkN7UTU9SDnE6WNJz/IGyQk3XHX6yNNtrBH6cQzm8Hw==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ "@types/mdast" "^3.0.0"
+ mdast-util-definitions "^5.0.0"
+ micromark-util-sanitize-uri "^1.1.0"
+ trim-lines "^3.0.0"
+ unist-util-generated "^2.0.0"
+ unist-util-position "^4.0.0"
+ unist-util-visit "^4.0.0"
+
+mdast-util-to-markdown@^1.0.0, mdast-util-to-markdown@^1.3.0:
+ version "1.5.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-1.5.0.tgz#c13343cb3fc98621911d33b5cd42e7d0731171c6"
+ integrity sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ "@types/unist" "^2.0.0"
+ longest-streak "^3.0.0"
+ mdast-util-phrasing "^3.0.0"
+ mdast-util-to-string "^3.0.0"
+ micromark-util-decode-string "^1.0.0"
+ unist-util-visit "^4.0.0"
+ zwitch "^2.0.0"
+
+mdast-util-to-string@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-1.1.0.tgz#27055500103f51637bd07d01da01eb1967a43527"
+ integrity sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==
+
+mdast-util-to-string@^3.0.0, mdast-util-to-string@^3.1.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz#66f7bb6324756741c5f47a53557f0cbf16b6f789"
+ integrity sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+
+ version "2.0.14"
+ resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"
+ integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==
version "2.0.28"
@@ -12554,6 +13430,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.4.tgz#699b3c38ac6f1d728091a64650b65d388502fd5b"
integrity sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==
+mdurl@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e"
+ integrity sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==
+
version "0.3.0"
resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
@@ -12603,6 +13484,279 @@ methods@~1.1.2:
resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==
+micromark-core-commonmark@^1.0.0, micromark-core-commonmark@^1.0.1:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-core-commonmark/-/micromark-core-commonmark-1.1.0.tgz#1386628df59946b2d39fb2edfd10f3e8e0a75bb8"
+ integrity sha512-BgHO1aRbolh2hcrzL2d1La37V0Aoz73ymF8rAcKnohLy93titmv62E0gP8Hrx9PKcKrqCZ1BbLGbP3bEhoXYlw==
+ dependencies:
+ decode-named-character-reference "^1.0.0"
+ micromark-factory-destination "^1.0.0"
+ micromark-factory-label "^1.0.0"
+ micromark-factory-space "^1.0.0"
+ micromark-factory-title "^1.0.0"
+ micromark-factory-whitespace "^1.0.0"
+ micromark-util-character "^1.0.0"
+ micromark-util-chunked "^1.0.0"
+ micromark-util-classify-character "^1.0.0"
+ micromark-util-html-tag-name "^1.0.0"
+ micromark-util-normalize-identifier "^1.0.0"
+ micromark-util-resolve-all "^1.0.0"
+ micromark-util-subtokenize "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.1"
+ uvu "^0.5.0"
+
+micromark-extension-gfm-autolink-literal@^1.0.0:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-1.0.5.tgz#5853f0e579bbd8ef9e39a7c0f0f27c5a063a66e7"
+ integrity sha512-z3wJSLrDf8kRDOh2qBtoTRD53vJ+CWIyo7uyZuxf/JAbNJjiHsOpG1y5wxk8drtv3ETAHutCu6N3thkOOgueWg==
+ dependencies:
+ micromark-util-character "^1.0.0"
+ micromark-util-sanitize-uri "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+
+micromark-extension-gfm-footnote@^1.0.0:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-1.1.2.tgz#05e13034d68f95ca53c99679040bc88a6f92fe2e"
+ integrity sha512-Yxn7z7SxgyGWRNa4wzf8AhYYWNrwl5q1Z8ii+CSTTIqVkmGZF1CElX2JI8g5yGoM3GAman9/PVCUFUSJ0kB/8Q==
+ dependencies:
+ micromark-core-commonmark "^1.0.0"
+ micromark-factory-space "^1.0.0"
+ micromark-util-character "^1.0.0"
+ micromark-util-normalize-identifier "^1.0.0"
+ micromark-util-sanitize-uri "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+ uvu "^0.5.0"
+
+micromark-extension-gfm-strikethrough@^1.0.0:
+ version "1.0.7"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-1.0.7.tgz#c8212c9a616fa3bf47cb5c711da77f4fdc2f80af"
+ integrity sha512-sX0FawVE1o3abGk3vRjOH50L5TTLr3b5XMqnP9YDRb34M0v5OoZhG+OHFz1OffZ9dlwgpTBKaT4XW/AsUVnSDw==
+ dependencies:
+ micromark-util-chunked "^1.0.0"
+ micromark-util-classify-character "^1.0.0"
+ micromark-util-resolve-all "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+ uvu "^0.5.0"
+
+micromark-extension-gfm-table@^1.0.0:
+ version "1.0.7"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-table/-/micromark-extension-gfm-table-1.0.7.tgz#dcb46074b0c6254c3fc9cc1f6f5002c162968008"
+ integrity sha512-3ZORTHtcSnMQEKtAOsBQ9/oHp9096pI/UvdPtN7ehKvrmZZ2+bbWhi0ln+I9drmwXMt5boocn6OlwQzNXeVeqw==
+ dependencies:
+ micromark-factory-space "^1.0.0"
+ micromark-util-character "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+ uvu "^0.5.0"
+
+micromark-extension-gfm-tagfilter@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-1.0.2.tgz#aa7c4dd92dabbcb80f313ebaaa8eb3dac05f13a7"
+ integrity sha512-5XWB9GbAUSHTn8VPU8/1DBXMuKYT5uOgEjJb8gN3mW0PNW5OPHpSdojoqf+iq1xo7vWzw/P8bAHY0n6ijpXF7g==
+ dependencies:
+ micromark-util-types "^1.0.0"
+
+micromark-extension-gfm-task-list-item@^1.0.0:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-1.0.5.tgz#b52ce498dc4c69b6a9975abafc18f275b9dde9f4"
+ integrity sha512-RMFXl2uQ0pNQy6Lun2YBYT9g9INXtWJULgbt01D/x8/6yJ2qpKyzdZD3pi6UIkzF++Da49xAelVKUeUMqd5eIQ==
+ dependencies:
+ micromark-factory-space "^1.0.0"
+ micromark-util-character "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+ uvu "^0.5.0"
+
+micromark-extension-gfm@^2.0.0:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm/-/micromark-extension-gfm-2.0.3.tgz#e517e8579949a5024a493e49204e884aa74f5acf"
+ integrity sha512-vb9OoHqrhCmbRidQv/2+Bc6pkP0FrtlhurxZofvOEy5o8RtuuvTq+RQ1Vw5ZDNrVraQZu3HixESqbG+0iKk/MQ==
+ dependencies:
+ micromark-extension-gfm-autolink-literal "^1.0.0"
+ micromark-extension-gfm-footnote "^1.0.0"
+ micromark-extension-gfm-strikethrough "^1.0.0"
+ micromark-extension-gfm-table "^1.0.0"
+ micromark-extension-gfm-tagfilter "^1.0.0"
+ micromark-extension-gfm-task-list-item "^1.0.0"
+ micromark-util-combine-extensions "^1.0.0"
+ micromark-util-types "^1.0.0"
+
+micromark-factory-destination@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-factory-destination/-/micromark-factory-destination-1.1.0.tgz#eb815957d83e6d44479b3df640f010edad667b9f"
+ integrity sha512-XaNDROBgx9SgSChd69pjiGKbV+nfHGDPVYFs5dOoDd7ZnMAE+Cuu91BCpsY8RT2NP9vo/B8pds2VQNCLiu0zhg==
+ dependencies:
+ micromark-util-character "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+
+micromark-factory-label@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-factory-label/-/micromark-factory-label-1.1.0.tgz#cc95d5478269085cfa2a7282b3de26eb2e2dec68"
+ integrity sha512-OLtyez4vZo/1NjxGhcpDSbHQ+m0IIGnT8BoPamh+7jVlzLJBH98zzuCoUeMxvM6WsNeh8wx8cKvqLiPHEACn0w==
+ dependencies:
+ micromark-util-character "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+ uvu "^0.5.0"
+
+micromark-factory-space@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-factory-space/-/micromark-factory-space-1.1.0.tgz#c8f40b0640a0150751d3345ed885a080b0d15faf"
+ integrity sha512-cRzEj7c0OL4Mw2v6nwzttyOZe8XY/Z8G0rzmWQZTBi/jjwyw/U4uqKtUORXQrR5bAZZnbTI/feRV/R7hc4jQYQ==
+ dependencies:
+ micromark-util-character "^1.0.0"
+ micromark-util-types "^1.0.0"
+
+micromark-factory-title@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-factory-title/-/micromark-factory-title-1.1.0.tgz#dd0fe951d7a0ac71bdc5ee13e5d1465ad7f50ea1"
+ integrity sha512-J7n9R3vMmgjDOCY8NPw55jiyaQnH5kBdV2/UXCtZIpnHH3P6nHUKaH7XXEYuWwx/xUJcawa8plLBEjMPU24HzQ==
+ dependencies:
+ micromark-factory-space "^1.0.0"
+ micromark-util-character "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+
+micromark-factory-whitespace@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-factory-whitespace/-/micromark-factory-whitespace-1.1.0.tgz#798fb7489f4c8abafa7ca77eed6b5745853c9705"
+ integrity sha512-v2WlmiymVSp5oMg+1Q0N1Lxmt6pMhIHD457whWM7/GUlEks1hI9xj5w3zbc4uuMKXGisksZk8DzP2UyGbGqNsQ==
+ dependencies:
+ micromark-factory-space "^1.0.0"
+ micromark-util-character "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+
+micromark-util-character@^1.0.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-character/-/micromark-util-character-1.2.0.tgz#4fedaa3646db249bc58caeb000eb3549a8ca5dcc"
+ integrity sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==
+ dependencies:
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+
+micromark-util-chunked@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-chunked/-/micromark-util-chunked-1.1.0.tgz#37a24d33333c8c69a74ba12a14651fd9ea8a368b"
+ integrity sha512-Ye01HXpkZPNcV6FiyoW2fGZDUw4Yc7vT0E9Sad83+bEDiCJ1uXu0S3mr8WLpsz3HaG3x2q0HM6CTuPdcZcluFQ==
+ dependencies:
+ micromark-util-symbol "^1.0.0"
+
+micromark-util-classify-character@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-classify-character/-/micromark-util-classify-character-1.1.0.tgz#6a7f8c8838e8a120c8e3c4f2ae97a2bff9190e9d"
+ integrity sha512-SL0wLxtKSnklKSUplok1WQFoGhUdWYKggKUiqhX+Swala+BtptGCu5iPRc+xvzJ4PXE/hwM3FNXsfEVgoZsWbw==
+ dependencies:
+ micromark-util-character "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+
+micromark-util-combine-extensions@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.1.0.tgz#192e2b3d6567660a85f735e54d8ea6e3952dbe84"
+ integrity sha512-Q20sp4mfNf9yEqDL50WwuWZHUrCO4fEyeDCnMGmG5Pr0Cz15Uo7KBs6jq+dq0EgX4DPwwrh9m0X+zPV1ypFvUA==
+ dependencies:
+ micromark-util-chunked "^1.0.0"
+ micromark-util-types "^1.0.0"
+
+micromark-util-decode-numeric-character-reference@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.1.0.tgz#b1e6e17009b1f20bc652a521309c5f22c85eb1c6"
+ integrity sha512-m9V0ExGv0jB1OT21mrWcuf4QhP46pH1KkfWy9ZEezqHKAxkj4mPCy3nIH1rkbdMlChLHX531eOrymlwyZIf2iw==
+ dependencies:
+ micromark-util-symbol "^1.0.0"
+
+micromark-util-decode-string@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-decode-string/-/micromark-util-decode-string-1.1.0.tgz#dc12b078cba7a3ff690d0203f95b5d5537f2809c"
+ integrity sha512-YphLGCK8gM1tG1bd54azwyrQRjCFcmgj2S2GoJDNnh4vYtnL38JS8M4gpxzOPNyHdNEpheyWXCTnnTDY3N+NVQ==
+ dependencies:
+ decode-named-character-reference "^1.0.0"
+ micromark-util-character "^1.0.0"
+ micromark-util-decode-numeric-character-reference "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+
+micromark-util-encode@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz#92e4f565fd4ccb19e0dcae1afab9a173bbeb19a5"
+ integrity sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==
+
+micromark-util-html-tag-name@^1.0.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.2.0.tgz#48fd7a25826f29d2f71479d3b4e83e94829b3588"
+ integrity sha512-VTQzcuQgFUD7yYztuQFKXT49KghjtETQ+Wv/zUjGSGBioZnkA4P1XXZPT1FHeJA6RwRXSF47yvJ1tsJdoxwO+Q==
+
+micromark-util-normalize-identifier@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.1.0.tgz#7a73f824eb9f10d442b4d7f120fecb9b38ebf8b7"
+ integrity sha512-N+w5vhqrBihhjdpM8+5Xsxy71QWqGn7HYNUvch71iV2PM7+E3uWGox1Qp90loa1ephtCxG2ftRV/Conitc6P2Q==
+ dependencies:
+ micromark-util-symbol "^1.0.0"
+
+micromark-util-resolve-all@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-resolve-all/-/micromark-util-resolve-all-1.1.0.tgz#4652a591ee8c8fa06714c9b54cd6c8e693671188"
+ integrity sha512-b/G6BTMSg+bX+xVCshPTPyAu2tmA0E4X98NSR7eIbeC6ycCqCeE7wjfDIgzEbkzdEVJXRtOG4FbEm/uGbCRouA==
+ dependencies:
+ micromark-util-types "^1.0.0"
+
+micromark-util-sanitize-uri@^1.0.0, micromark-util-sanitize-uri@^1.1.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz#613f738e4400c6eedbc53590c67b197e30d7f90d"
+ integrity sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==
+ dependencies:
+ micromark-util-character "^1.0.0"
+ micromark-util-encode "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+
+micromark-util-subtokenize@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-subtokenize/-/micromark-util-subtokenize-1.1.0.tgz#941c74f93a93eaf687b9054aeb94642b0e92edb1"
+ integrity sha512-kUQHyzRoxvZO2PuLzMt2P/dwVsTiivCK8icYTeR+3WgbuPqfHgPPy7nFKbeqRivBvn/3N3GBiNC+JRTMSxEC7A==
+ dependencies:
+ micromark-util-chunked "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+ uvu "^0.5.0"
+
+micromark-util-symbol@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz#813cd17837bdb912d069a12ebe3a44b6f7063142"
+ integrity sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==
+
+micromark-util-types@^1.0.0, micromark-util-types@^1.0.1:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-types/-/micromark-util-types-1.1.0.tgz#e6676a8cae0bb86a2171c498167971886cb7e283"
+ integrity sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==
+
+micromark@^3.0.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/micromark/-/micromark-3.2.0.tgz#1af9fef3f995ea1ea4ac9c7e2f19c48fd5c006e9"
+ integrity sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA==
+ dependencies:
+ "@types/debug" "^4.0.0"
+ debug "^4.0.0"
+ decode-named-character-reference "^1.0.0"
+ micromark-core-commonmark "^1.0.1"
+ micromark-factory-space "^1.0.0"
+ micromark-util-character "^1.0.0"
+ micromark-util-chunked "^1.0.0"
+ micromark-util-combine-extensions "^1.0.0"
+ micromark-util-decode-numeric-character-reference "^1.0.0"
+ micromark-util-encode "^1.0.0"
+ micromark-util-normalize-identifier "^1.0.0"
+ micromark-util-resolve-all "^1.0.0"
+ micromark-util-sanitize-uri "^1.0.0"
+ micromark-util-subtokenize "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.1"
+ uvu "^0.5.0"
+
micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5:
version "4.0.5"
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6"
@@ -12730,7 +13884,7 @@ mock-apollo-client@^1.2.1:
resolved "https://registry.yarnpkg.com/mock-apollo-client/-/mock-apollo-client-1.2.1.tgz#e3bfdc3ff73b1fea28fa7e91ec82e43ba8cbfa39"
integrity sha512-QYQ6Hxo+t7hard1bcHHbsHxlNQYTQsaMNsm2Psh/NbwLMi2R4tGzplJKt97MUWuARHMq3GHB4PTLj/gxej4Caw==
-mri@^1.2.0:
+mri@^1.1.0, mri@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b"
integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==
@@ -13074,6 +14228,20 @@ object.hasown@^1.1.2:
define-properties "^1.1.4"
es-abstract "^1.20.4"
+object.omit@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-3.0.0.tgz#0e3edc2fce2ba54df5577ff529f6d97bd8a522af"
+ integrity sha512-EO+BCv6LJfu+gBIF3ggLicFebFLN5zqzz/WWJlMFfkMyGth+oBkhxzDl0wx2W4GkLzuQs/FsSkXZb2IMWQqmBQ==
+ dependencies:
+ is-extendable "^1.0.0"
+
+object.pick@^1.3.0:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747"
+ integrity sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==
+ dependencies:
+ isobject "^3.0.1"
+
object.values@^1.1.0, object.values@^1.1.6:
version "1.1.6"
resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.6.tgz#4abbaa71eba47d63589d402856f908243eea9b1d"
@@ -13176,6 +14344,11 @@ ora@^5.4.1:
strip-ansi "^6.0.0"
wcwidth "^1.0.1"
+orderedmap@^2.0.0:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/orderedmap/-/orderedmap-2.1.1.tgz#61481269c44031c449915497bf5a4ad273c512d2"
+ integrity sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==
+
os-homedir@^1.0.0, os-homedir@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
@@ -13321,7 +14494,7 @@ parse-passwd@^1.0.0:
resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6"
integrity sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==
[email protected], parse5@^6.0.0:
version "6.0.1"
resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b"
integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==
@@ -14208,6 +15381,166 @@ prop-types@^15.6.0, prop-types@^15.6.2, prop-types@^15.7.2, prop-types@^15.8.1:
object-assign "^4.1.1"
react-is "^16.13.1"
+property-information@^6.0.0:
+ version "6.2.0"
+ resolved "https://registry.yarnpkg.com/property-information/-/property-information-6.2.0.tgz#b74f522c31c097b5149e3c3cb8d7f3defd986a1d"
+ integrity sha512-kma4U7AFCTwpqq5twzC1YVIDXSqg6qQK6JN0smOw8fgRy1OkMi0CYSzFmsy6dnqSenamAtj0CyXMUJ1Mf6oROg==
+
+prosemirror-changeset@^2.2.0:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/prosemirror-changeset/-/prosemirror-changeset-2.2.1.tgz#dae94b63aec618fac7bb9061648e6e2a79988383"
+ integrity sha512-J7msc6wbxB4ekDFj+n9gTW/jav/p53kdlivvuppHsrZXCaQdVgRghoZbSS3kwrRyAstRVQ4/+u5k7YfLgkkQvQ==
+ dependencies:
+ prosemirror-transform "^1.0.0"
+
+prosemirror-collab@^1.3.0:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/prosemirror-collab/-/prosemirror-collab-1.3.1.tgz#0e8c91e76e009b53457eb3b3051fb68dad029a33"
+ integrity sha512-4SnynYR9TTYaQVXd/ieUvsVV4PDMBzrq2xPUWutHivDuOshZXqQ5rGbZM84HEaXKbLdItse7weMGOUdDVcLKEQ==
+ dependencies:
+ prosemirror-state "^1.0.0"
+
+prosemirror-commands@^1.0.0, prosemirror-commands@^1.3.1:
+ version "1.5.2"
+ resolved "https://registry.yarnpkg.com/prosemirror-commands/-/prosemirror-commands-1.5.2.tgz#e94aeea52286f658cd984270de9b4c3fff580852"
+ integrity sha512-hgLcPaakxH8tu6YvVAaILV2tXYsW3rAdDR8WNkeKGcgeMVQg3/TMhPdVoh7iAmfgVjZGtcOSjKiQaoeKjzd2mQ==
+ dependencies:
+ prosemirror-model "^1.0.0"
+ prosemirror-state "^1.0.0"
+ prosemirror-transform "^1.0.0"
+
+prosemirror-dropcursor@^1.5.0:
+ version "1.8.1"
+ resolved "https://registry.yarnpkg.com/prosemirror-dropcursor/-/prosemirror-dropcursor-1.8.1.tgz#49b9fb2f583e0d0f4021ff87db825faa2be2832d"
+ integrity sha512-M30WJdJZLyXHi3N8vxN6Zh5O8ZBbQCz0gURTfPmTIBNQ5pxrdU7A58QkNqfa98YEjSAL1HUyyU34f6Pm5xBSGw==
+ dependencies:
+ prosemirror-state "^1.0.0"
+ prosemirror-transform "^1.1.0"
+ prosemirror-view "^1.1.0"
+
+prosemirror-gapcursor@^1.3.1:
+ version "1.3.2"
+ resolved "https://registry.yarnpkg.com/prosemirror-gapcursor/-/prosemirror-gapcursor-1.3.2.tgz#5fa336b83789c6199a7341c9493587e249215cb4"
+ integrity sha512-wtjswVBd2vaQRrnYZaBCbyDqr232Ed4p2QPtRIUK5FuqHYKGWkEwl08oQM4Tw7DOR0FsasARV5uJFvMZWxdNxQ==
+ dependencies:
+ prosemirror-keymap "^1.0.0"
+ prosemirror-model "^1.0.0"
+ prosemirror-state "^1.0.0"
+ prosemirror-view "^1.0.0"
+
+prosemirror-history@^1.0.0, prosemirror-history@^1.3.0:
+ version "1.3.2"
+ resolved "https://registry.yarnpkg.com/prosemirror-history/-/prosemirror-history-1.3.2.tgz#ce6ad7ab9db83e761aee716f3040d74738311b15"
+ integrity sha512-/zm0XoU/N/+u7i5zepjmZAEnpvjDtzoPWW6VmKptcAnPadN/SStsBjMImdCEbb3seiNTpveziPTIrXQbHLtU1g==
+ dependencies:
+ prosemirror-state "^1.2.2"
+ prosemirror-transform "^1.0.0"
+ prosemirror-view "^1.31.0"
+ rope-sequence "^1.3.0"
+
+prosemirror-inputrules@^1.2.0:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/prosemirror-inputrules/-/prosemirror-inputrules-1.2.1.tgz#8faf3d78c16150aedac71d326a3e3947417ce557"
+ integrity sha512-3LrWJX1+ULRh5SZvbIQlwZafOXqp1XuV21MGBu/i5xsztd+9VD15x6OtN6mdqSFI7/8Y77gYUbQ6vwwJ4mr6QQ==
+ dependencies:
+ prosemirror-state "^1.0.0"
+ prosemirror-transform "^1.0.0"
+
+prosemirror-keymap@^1.0.0, prosemirror-keymap@^1.1.2, prosemirror-keymap@^1.2.0:
+ version "1.2.2"
+ resolved "https://registry.yarnpkg.com/prosemirror-keymap/-/prosemirror-keymap-1.2.2.tgz#14a54763a29c7b2704f561088ccf3384d14eb77e"
+ integrity sha512-EAlXoksqC6Vbocqc0GtzCruZEzYgrn+iiGnNjsJsH4mrnIGex4qbLdWWNza3AW5W36ZRrlBID0eM6bdKH4OStQ==
+ dependencies:
+ prosemirror-state "^1.0.0"
+ w3c-keyname "^2.2.0"
+
+prosemirror-markdown@^1.10.1:
+ version "1.11.1"
+ resolved "https://registry.yarnpkg.com/prosemirror-markdown/-/prosemirror-markdown-1.11.1.tgz#441ad0ac4ab7c30f50623517e65c6bb8e966e9e3"
+ integrity sha512-CLOieKoaSSEusKyYcXIj8v2qHGLW+tnuffci+8678Sen48NEFQE7M3o0Nx0gj9v63iVDj+yLibj2gCe8eb3jIw==
+ dependencies:
+ markdown-it "^13.0.1"
+ prosemirror-model "^1.0.0"
+
+prosemirror-menu@^1.2.1:
+ version "1.2.2"
+ resolved "https://registry.yarnpkg.com/prosemirror-menu/-/prosemirror-menu-1.2.2.tgz#c545a2de0b8cb79babc07682b1d93de0f273aa33"
+ integrity sha512-437HIWTq4F9cTX+kPfqZWWm+luJm95Aut/mLUy+9OMrOml0bmWDS26ceC6SNfb2/S94et1sZ186vLO7pDHzxSw==
+ dependencies:
+ crelt "^1.0.0"
+ prosemirror-commands "^1.0.0"
+ prosemirror-history "^1.0.0"
+ prosemirror-state "^1.0.0"
+
+prosemirror-model@^1.0.0, prosemirror-model@^1.16.0, prosemirror-model@^1.18.1, prosemirror-model@^1.19.0, prosemirror-model@^1.8.1:
+ version "1.19.2"
+ resolved "https://registry.yarnpkg.com/prosemirror-model/-/prosemirror-model-1.19.2.tgz#297c9ecfb103154e605f0dbaf3cc72ee32ca0ad5"
+ integrity sha512-RXl0Waiss4YtJAUY3NzKH0xkJmsZupCIccqcIFoLTIKFlKNbIvFDRl27/kQy1FP8iUAxrjRRfIVvOebnnXJgqQ==
+ dependencies:
+ orderedmap "^2.0.0"
+
+prosemirror-schema-basic@^1.2.0:
+ version "1.2.2"
+ resolved "https://registry.yarnpkg.com/prosemirror-schema-basic/-/prosemirror-schema-basic-1.2.2.tgz#6695f5175e4628aab179bf62e5568628b9cfe6c7"
+ integrity sha512-/dT4JFEGyO7QnNTe9UaKUhjDXbTNkiWTq/N4VpKaF79bBjSExVV2NXmJpcM7z/gD7mbqNjxbmWW5nf1iNSSGnw==
+ dependencies:
+ prosemirror-model "^1.19.0"
+
+prosemirror-schema-list@^1.2.2:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/prosemirror-schema-list/-/prosemirror-schema-list-1.3.0.tgz#05374702cf35a3ba5e7ec31079e355a488d52519"
+ integrity sha512-Hz/7gM4skaaYfRPNgr421CU4GSwotmEwBVvJh5ltGiffUJwm7C8GfN/Bc6DR1EKEp5pDKhODmdXXyi9uIsZl5A==
+ dependencies:
+ prosemirror-model "^1.0.0"
+ prosemirror-state "^1.0.0"
+ prosemirror-transform "^1.7.3"
+
+prosemirror-state@^1.0.0, prosemirror-state@^1.2.2, prosemirror-state@^1.3.1, prosemirror-state@^1.4.1:
+ version "1.4.3"
+ resolved "https://registry.yarnpkg.com/prosemirror-state/-/prosemirror-state-1.4.3.tgz#94aecf3ffd54ec37e87aa7179d13508da181a080"
+ integrity sha512-goFKORVbvPuAQaXhpbemJFRKJ2aixr+AZMGiquiqKxaucC6hlpHNZHWgz5R7dS4roHiwq9vDctE//CZ++o0W1Q==
+ dependencies:
+ prosemirror-model "^1.0.0"
+ prosemirror-transform "^1.0.0"
+ prosemirror-view "^1.27.0"
+
+prosemirror-tables@^1.3.0:
+ version "1.3.4"
+ resolved "https://registry.yarnpkg.com/prosemirror-tables/-/prosemirror-tables-1.3.4.tgz#0b7cc16d49f90c5b834c9f29291c545478ce9ab0"
+ integrity sha512-z6uLSQ1BLC3rgbGwZmpfb+xkdvD7W/UOsURDfognZFYaTtc0gsk7u/t71Yijp2eLflVpffMk6X0u0+u+MMDvIw==
+ dependencies:
+ prosemirror-keymap "^1.1.2"
+ prosemirror-model "^1.8.1"
+ prosemirror-state "^1.3.1"
+ prosemirror-transform "^1.2.1"
+ prosemirror-view "^1.13.3"
+
+prosemirror-trailing-node@^2.0.2:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/prosemirror-trailing-node/-/prosemirror-trailing-node-2.0.4.tgz#60febdeb947550ee93a224f2e56dbd5cb2cdd607"
+ integrity sha512-0Yl9w7IdHkaCdqR+NE3FOucePME4OmiGcybnF1iasarEILP5U8+4xTnl53yafULjmwcg1SrSG65Hg7Zk2H2v3g==
+ dependencies:
+ "@babel/runtime" "^7.21.0"
+ "@remirror/core-constants" "^2.0.1"
+ "@remirror/core-helpers" "^2.0.2"
+ escape-string-regexp "^4.0.0"
+
+prosemirror-transform@^1.0.0, prosemirror-transform@^1.1.0, prosemirror-transform@^1.2.1, prosemirror-transform@^1.7.0, prosemirror-transform@^1.7.3:
+ version "1.7.3"
+ resolved "https://registry.yarnpkg.com/prosemirror-transform/-/prosemirror-transform-1.7.3.tgz#cc2225cd1bf88a3c62404b9eb051ff73e9c716a6"
+ integrity sha512-qDapyx5lqYfxVeUWEw0xTGgeP2S8346QtE7DxkalsXlX89lpzkY6GZfulgfHyk1n4tf74sZ7CcXgcaCcGjsUtA==
+ dependencies:
+ prosemirror-model "^1.0.0"
+
+prosemirror-view@^1.0.0, prosemirror-view@^1.1.0, prosemirror-view@^1.13.3, prosemirror-view@^1.27.0, prosemirror-view@^1.28.2, prosemirror-view@^1.31.0:
+ version "1.31.5"
+ resolved "https://registry.yarnpkg.com/prosemirror-view/-/prosemirror-view-1.31.5.tgz#85164b9247b0bf519f92a6519203c489504d15c0"
+ integrity sha512-tobRCDeCp61elR1d97XE/JTL9FDIfswZpWeNs7GKJjAJvWyMGHWYFCq29850p6bbG2bckP+i9n1vT56RifosbA==
+ dependencies:
+ prosemirror-model "^1.16.0"
+ prosemirror-state "^1.0.0"
+ prosemirror-transform "^1.1.0"
+
proxy-addr@~2.0.7:
version "2.0.7"
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025"
@@ -14474,6 +15807,11 @@ react-hotkeys-hook@^4.4.0:
resolved "https://registry.yarnpkg.com/react-hotkeys-hook/-/react-hotkeys-hook-4.4.1.tgz#1f7a7a1c9c21d4fa3280bf340fcca8fd77d81994"
integrity sha512-sClBMBioFEgFGYLTWWRKvhxcCx1DRznd+wkFHwQZspnRBkHTgruKIHptlK/U/2DPX8BhHoRGzpMVWUXMmdZlmw==
+react-icons@^4.3.1:
+ version "4.10.1"
+ resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.10.1.tgz#3f3b5eec1f63c1796f6a26174a1091ca6437a500"
+ integrity sha512-/ngzDP/77tlCfqthiiGNZeYFACw85fUjZtLbedmJ5DTlNDIwETxhwBzdOJ21zj4iJdvc0J3y7yOsX3PpxAJzrw==
+
react-inspector@^6.0.0:
version "6.0.2"
resolved "https://registry.yarnpkg.com/react-inspector/-/react-inspector-6.0.2.tgz#aa3028803550cb6dbd7344816d5c80bf39d07e9d"
@@ -14662,6 +16000,15 @@ react-style-singleton@^2.2.1:
invariant "^2.2.4"
tslib "^2.0.0"
+ version "8.3.4"
+ resolved "https://registry.yarnpkg.com/react-textarea-autosize/-/react-textarea-autosize-8.3.4.tgz#270a343de7ad350534141b02c9cb78903e553524"
+ integrity sha512-CdtmP8Dc19xL8/R6sWvtknD/eCXkQr30dtvC4VmGInhRsfF8X/ihXCq6+9l9qbxmKRiq407/7z5fxE7cVWQNgQ==
+ dependencies:
+ "@babel/runtime" "^7.10.2"
+ use-composed-ref "^1.3.0"
+ use-latest "^1.2.1"
+
react-textarea-autosize@^8.4.1:
version "8.5.2"
resolved "https://registry.yarnpkg.com/react-textarea-autosize/-/react-textarea-autosize-8.5.2.tgz#6421df2b5b50b9ca8c5e96fd31be688ea7fa2f9d"
@@ -14905,6 +16252,47 @@ regjsparser@^0.9.1:
dependencies:
jsesc "~0.5.0"
+rehype-minify-whitespace@^5.0.0:
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/rehype-minify-whitespace/-/rehype-minify-whitespace-5.0.1.tgz#79729a0146aa97a9d43e1eb4b5884974e2f37e77"
+ integrity sha512-PPp4lWJiBPlePI/dv1BeYktbwkfgXkrK59MUa+tYbMPgleod+4DvFK2PLU0O0O60/xuhHfiR9GUIUlXTU8sRIQ==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ hast-util-embedded "^2.0.0"
+ hast-util-is-element "^2.0.0"
+ hast-util-whitespace "^2.0.0"
+ unified "^10.0.0"
+ unist-util-is "^5.0.0"
+
+rehype-parse@^8.0.4:
+ version "8.0.4"
+ resolved "https://registry.yarnpkg.com/rehype-parse/-/rehype-parse-8.0.4.tgz#3d17c9ff16ddfef6bbcc8e6a25a99467b482d688"
+ integrity sha512-MJJKONunHjoTh4kc3dsM1v3C9kGrrxvA3U8PxZlP2SjH8RNUSrb+lF7Y0KVaUDnGH2QZ5vAn7ulkiajM9ifuqg==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ hast-util-from-parse5 "^7.0.0"
+ parse5 "^6.0.0"
+ unified "^10.0.0"
+
+rehype-remark@^9.1.2:
+ version "9.1.2"
+ resolved "https://registry.yarnpkg.com/rehype-remark/-/rehype-remark-9.1.2.tgz#b4ed84d7e692426c3269e72ec477906cec659c05"
+ integrity sha512-c0fG3/CrJ95zAQ07xqHSkdpZybwdsY7X5dNWvgL2XqLKZuqmG3+vk6kP/4miCnp+R+x/0uKKRSpfXb9aGR8Z5w==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ "@types/mdast" "^3.0.0"
+ hast-util-to-mdast "^8.3.0"
+ unified "^10.0.0"
+
+rehype-stringify@^9.0.3:
+ version "9.0.3"
+ resolved "https://registry.yarnpkg.com/rehype-stringify/-/rehype-stringify-9.0.3.tgz#70e3bd6d4d29e7acf36b802deed350305d2c3c17"
+ integrity sha512-kWiZ1bgyWlgOxpqD5HnxShKAdXtb2IUljn3hQAhySeak6IOQPPt6DeGnsIh4ixm7yKJWzm8TXFuC/lPfcWHJqw==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ hast-util-to-html "^8.0.0"
+ unified "^10.0.0"
+
relateurl@^0.2.7:
version "0.2.7"
resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9"
@@ -14937,6 +16325,35 @@ remark-external-links@^8.0.0:
space-separated-tokens "^1.0.0"
unist-util-visit "^2.0.0"
+remark-gfm@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/remark-gfm/-/remark-gfm-3.0.1.tgz#0b180f095e3036545e9dddac0e8df3fa5cfee54f"
+ integrity sha512-lEFDoi2PICJyNrACFOfDD3JlLkuSbOa5Wd8EPt06HUdptv8Gn0bxYTdbU/XXQ3swAPkEaGxxPN9cbnMHvVu1Ig==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ mdast-util-gfm "^2.0.0"
+ micromark-extension-gfm "^2.0.0"
+ unified "^10.0.0"
+
+remark-parse@^10.0.1:
+ version "10.0.2"
+ resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-10.0.2.tgz#ca241fde8751c2158933f031a4e3efbaeb8bc262"
+ integrity sha512-3ydxgHa/ZQzG8LvC7jTXccARYDcRld3VfcgIIFs7bI6vbRSxJJmzgLEIIoYKyrfhaY+ujuWaf/PJiMZXoiCXgw==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ mdast-util-from-markdown "^1.0.0"
+ unified "^10.0.0"
+
+remark-rehype@^10.1.0:
+ version "10.1.0"
+ resolved "https://registry.yarnpkg.com/remark-rehype/-/remark-rehype-10.1.0.tgz#32dc99d2034c27ecaf2e0150d22a6dcccd9a6279"
+ integrity sha512-EFmR5zppdBp0WQeDVZ/b66CWJipB2q2VLNFMabzDSGR66Z2fQii83G5gTBbgGEnEEA0QRussvrFHxk1HWGJskw==
+ dependencies:
+ "@types/hast" "^2.0.0"
+ "@types/mdast" "^3.0.0"
+ mdast-util-to-hast "^12.1.0"
+ unified "^10.0.0"
+
remark-slug@^6.0.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/remark-slug/-/remark-slug-6.1.0.tgz#0503268d5f0c4ecb1f33315c00465ccdd97923ce"
@@ -14946,6 +16363,15 @@ remark-slug@^6.0.0:
mdast-util-to-string "^1.0.0"
unist-util-visit "^2.0.0"
+remark-stringify@^10.0.2:
+ version "10.0.3"
+ resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-10.0.3.tgz#83b43f2445c4ffbb35b606f967d121b2b6d69717"
+ integrity sha512-koyOzCMYoUHudypbj4XpnAKFbkddRMYZHwghnxd7ue5210WzGw6kOBwauJTRUMq16jsovXx8dYNvSSWP89kZ3A==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ mdast-util-to-markdown "^1.0.0"
+ unified "^10.0.0"
+
remedial@^1.0.7:
version "1.0.8"
resolved "https://registry.yarnpkg.com/remedial/-/remedial-1.0.8.tgz#a5e4fd52a0e4956adbaf62da63a5a46a78c578a0"
@@ -15140,6 +16566,11 @@ rollup@^2.43.1:
optionalDependencies:
fsevents "~2.3.2"
+rope-sequence@^1.3.0:
+ version "1.3.4"
+ resolved "https://registry.yarnpkg.com/rope-sequence/-/rope-sequence-1.3.4.tgz#df85711aaecd32f1e756f76e43a415171235d425"
+ integrity sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==
+
run-async@^2.4.0:
version "2.4.1"
resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455"
@@ -15166,6 +16597,13 @@ rxjs@^7.5.5, rxjs@^7.8.1:
dependencies:
tslib "^2.1.0"
+sade@^1.7.3:
+ version "1.8.1"
+ resolved "https://registry.yarnpkg.com/sade/-/sade-1.8.1.tgz#0a78e81d658d394887be57d2a409bf703a3b2701"
+ integrity sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==
+ dependencies:
+ mri "^1.1.0"
+
safe-array-concat@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.0.0.tgz#2064223cba3c08d2ee05148eedbc563cd6d84060"
@@ -15636,6 +17074,11 @@ space-separated-tokens@^1.0.0:
resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz#85f32c3d10d9682007e917414ddc5c26d1aa6899"
integrity sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==
+space-separated-tokens@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz#1ecd9d2350a3844572c3f4a312bceb018348859f"
+ integrity sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==
+
version "0.0.2"
resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2.tgz#9544e1a43ca045f8531aac1a48cb29bdae62338e"
@@ -15887,6 +17330,14 @@ string_decoder@~1.1.1:
dependencies:
safe-buffer "~5.1.0"
+stringify-entities@^4.0.0:
+ version "4.0.3"
+ resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-4.0.3.tgz#cfabd7039d22ad30f3cc435b0ca2c1574fc88ef8"
+ integrity sha512-BP9nNHMhhfcMbiuQKCqMjhDP5yBCAxsPu4pHFFzJ6Alo9dZgY4VLDPutXqIjpRiMoKdp7Av85Gr73Q5uH9k7+g==
+ dependencies:
+ character-entities-html4 "^2.0.0"
+ character-entities-legacy "^3.0.0"
+
stringify-object@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/stringify-object/-/stringify-object-3.3.0.tgz#703065aefca19300d3ce88af4f5b3956d7556629"
@@ -16269,6 +17720,11 @@ throat@^6.0.1:
resolved "https://registry.yarnpkg.com/throat/-/throat-6.0.2.tgz#51a3fbb5e11ae72e2cf74861ed5c8020f89f29fe"
integrity sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==
+throttle-debounce@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/throttle-debounce/-/throttle-debounce-3.0.1.tgz#32f94d84dfa894f786c9a1f290e7a645b6a19abb"
+ integrity sha512-dTEWWNu6JmeVXY0ZYoPuH5cRIwc0MeGbJwah9KUNYSJwommQpCzTySTpEe8Gs1J23aeWEuAobe4Ag7EHVt/LOg==
+
through2@^2.0.3:
version "2.0.5"
resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd"
@@ -16292,6 +17748,13 @@ tiny-invariant@^1.0.6:
resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.1.tgz#8560808c916ef02ecfd55e66090df23a4b7aa642"
integrity sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==
+tippy.js@^6.3.1, tippy.js@^6.3.7:
+ version "6.3.7"
+ resolved "https://registry.yarnpkg.com/tippy.js/-/tippy.js-6.3.7.tgz#8ccfb651d642010ed9a32ff29b0e9e19c5b8c61c"
+ integrity sha512-E1d3oP2emgJ9dRQZdf3Kkn0qJgI6ZLpyS5z6ZkY1DF3kaQaBsGZsndEpHwx+eC+tYM41HaSNvNtLx8tU57FzTQ==
+ dependencies:
+ "@popperjs/core" "^2.9.0"
+
title-case@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/title-case/-/title-case-3.0.3.tgz#bc689b46f02e411f1d1e1d081f7c3deca0489982"
@@ -16372,11 +17835,26 @@ tree-kill@^1.2.2:
resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc"
integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==
+trim-lines@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/trim-lines/-/trim-lines-3.0.1.tgz#d802e332a07df861c48802c04321017b1bd87338"
+ integrity sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==
+
trim-right@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003"
integrity sha512-WZGXGstmCWgeevgTL54hrCuw1dyMQIzWy7ZfqRJfSmJZBwklI15egmQytFP6bPidmw3M8d5yEowl1niq4vmqZw==
+trim-trailing-lines@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/trim-trailing-lines/-/trim-trailing-lines-2.1.0.tgz#9aac7e89b09cb35badf663de7133c6de164f86df"
+ integrity sha512-5UR5Biq4VlVOtzqkm2AZlgvSlDJtME46uV0br0gENbwN4l5+mMKT4b9gJKqWtuL2zAIqajGJGuvbCbcAJUZqBg==
+
+trough@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/trough/-/trough-2.1.0.tgz#0f7b511a4fde65a46f18477ab38849b22c554876"
+ integrity sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==
+
tryer@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.1.tgz#f2c85406800b9b0f74c9f7465b81eaad241252f8"
@@ -16565,6 +18043,11 @@ ua-parser-js@^1.0.35:
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-1.0.35.tgz#c4ef44343bc3db0a3cbefdf21822f1b1fc1ab011"
integrity sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA==
+uc.micro@^1.0.1, uc.micro@^1.0.5:
+ version "1.0.6"
+ resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac"
+ integrity sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==
+
uglify-js@^3.1.4:
version "3.17.4"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c"
@@ -16613,6 +18096,19 @@ unicode-property-aliases-ecmascript@^2.0.0:
resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd"
integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==
+unified@^10.0.0, unified@^10.1.2:
+ version "10.1.2"
+ resolved "https://registry.yarnpkg.com/unified/-/unified-10.1.2.tgz#b1d64e55dafe1f0b98bb6c719881103ecf6c86df"
+ integrity sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==
+ dependencies:
+ "@types/unist" "^2.0.0"
+ bail "^2.0.0"
+ extend "^3.0.0"
+ is-buffer "^2.0.0"
+ is-plain-obj "^4.0.0"
+ trough "^2.0.0"
+ vfile "^5.0.0"
+
union@~0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/union/-/union-0.5.0.tgz#b2c11be84f60538537b846edb9ba266ba0090075"
@@ -16627,11 +18123,45 @@ unique-string@^2.0.0:
dependencies:
crypto-random-string "^2.0.0"
+unist-util-find-after@^4.0.0:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/unist-util-find-after/-/unist-util-find-after-4.0.1.tgz#80c69c92b0504033638ce11973f4135f2c822e2d"
+ integrity sha512-QO/PuPMm2ERxC6vFXEPtmAutOopy5PknD+Oq64gGwxKtk4xwo9Z97t9Av1obPmGU0IyTa6EKYUfTrK2QJS3Ozw==
+ dependencies:
+ "@types/unist" "^2.0.0"
+ unist-util-is "^5.0.0"
+
+unist-util-generated@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/unist-util-generated/-/unist-util-generated-2.0.1.tgz#e37c50af35d3ed185ac6ceacb6ca0afb28a85cae"
+ integrity sha512-qF72kLmPxAw0oN2fwpWIqbXAVyEqUzDHMsbtPvOudIlUzXYFIeQIuxXQCRCFh22B7cixvU0MG7m3MW8FTq/S+A==
+
unist-util-is@^4.0.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-4.1.0.tgz#976e5f462a7a5de73d94b706bac1b90671b57797"
integrity sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==
+unist-util-is@^5.0.0:
+ version "5.2.1"
+ resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-5.2.1.tgz#b74960e145c18dcb6226bc57933597f5486deae9"
+ integrity sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==
+ dependencies:
+ "@types/unist" "^2.0.0"
+
+unist-util-position@^4.0.0:
+ version "4.0.4"
+ resolved "https://registry.yarnpkg.com/unist-util-position/-/unist-util-position-4.0.4.tgz#93f6d8c7d6b373d9b825844645877c127455f037"
+ integrity sha512-kUBE91efOWfIVBo8xzh/uZQ7p9ffYRtUbMRZBNFYwf0RK8koUMx6dGUfwylLOKmaT2cs4wSW96QoYUSXAyEtpg==
+ dependencies:
+ "@types/unist" "^2.0.0"
+
+unist-util-stringify-position@^3.0.0:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz#03ad3348210c2d930772d64b489580c13a7db39d"
+ integrity sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==
+ dependencies:
+ "@types/unist" "^2.0.0"
+
unist-util-visit-parents@^3.0.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz#65a6ce698f78a6b0f56aa0e88f13801886cdaef6"
@@ -16640,6 +18170,14 @@ unist-util-visit-parents@^3.0.0:
"@types/unist" "^2.0.0"
unist-util-is "^4.0.0"
+unist-util-visit-parents@^5.0.0, unist-util-visit-parents@^5.1.1:
+ version "5.1.3"
+ resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz#b4520811b0ca34285633785045df7a8d6776cfeb"
+ integrity sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==
+ dependencies:
+ "@types/unist" "^2.0.0"
+ unist-util-is "^5.0.0"
+
unist-util-visit@^2.0.0:
version "2.0.3"
resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-2.0.3.tgz#c3703893146df47203bb8a9795af47d7b971208c"
@@ -16649,6 +18187,15 @@ unist-util-visit@^2.0.0:
unist-util-is "^4.0.0"
unist-util-visit-parents "^3.0.0"
+unist-util-visit@^4.0.0:
+ version "4.1.2"
+ resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-4.1.2.tgz#125a42d1eb876283715a3cb5cceaa531828c72e2"
+ integrity sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==
+ dependencies:
+ "@types/unist" "^2.0.0"
+ unist-util-is "^5.0.0"
+ unist-util-visit-parents "^5.1.1"
+
universalify@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0"
@@ -16838,6 +18385,16 @@ uuid@^9.0.0:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.0.tgz#592f550650024a38ceb0c562f2f6aa435761efb5"
integrity sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==
+uvu@^0.5.0:
+ version "0.5.6"
+ resolved "https://registry.yarnpkg.com/uvu/-/uvu-0.5.6.tgz#2754ca20bcb0bb59b64e9985e84d2e81058502df"
+ integrity sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==
+ dependencies:
+ dequal "^2.0.0"
+ diff "^5.0.0"
+ kleur "^4.0.3"
+ sade "^1.7.3"
+
v8-compile-cache-lib@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf"
@@ -16879,6 +18436,32 @@ vary@~1.1.2:
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==
+vfile-location@^4.0.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-4.1.0.tgz#69df82fb9ef0a38d0d02b90dd84620e120050dd0"
+ integrity sha512-YF23YMyASIIJXpktBa4vIGLJ5Gs88UB/XePgqPmTa7cDA+JeO3yclbpheQYCHjVHBn/yePzrXuygIL+xbvRYHw==
+ dependencies:
+ "@types/unist" "^2.0.0"
+ vfile "^5.0.0"
+
+vfile-message@^3.0.0:
+ version "3.1.4"
+ resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-3.1.4.tgz#15a50816ae7d7c2d1fa87090a7f9f96612b59dea"
+ integrity sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==
+ dependencies:
+ "@types/unist" "^2.0.0"
+ unist-util-stringify-position "^3.0.0"
+
+vfile@^5.0.0:
+ version "5.3.7"
+ resolved "https://registry.yarnpkg.com/vfile/-/vfile-5.3.7.tgz#de0677e6683e3380fafc46544cfe603118826ab7"
+ integrity sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==
+ dependencies:
+ "@types/unist" "^2.0.0"
+ is-buffer "^2.0.0"
+ unist-util-stringify-position "^3.0.0"
+ vfile-message "^3.0.0"
+
vite-plugin-istanbul@^3.0.1:
version "3.0.4"
resolved "https://registry.yarnpkg.com/vite-plugin-istanbul/-/vite-plugin-istanbul-3.0.4.tgz#a8367e393fc51c9e071607de5bacf46ddcac698f"
@@ -16896,6 +18479,11 @@ w3c-hr-time@^1.0.2:
dependencies:
browser-process-hrtime "^1.0.0"
+w3c-keyname@^2.2.0:
+ version "2.2.8"
+ resolved "https://registry.yarnpkg.com/w3c-keyname/-/w3c-keyname-2.2.8.tgz#7b17c8c6883d4e8b86ac8aba79d39e880f8869c5"
+ integrity sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==
+
w3c-xmlserializer@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a"
@@ -16968,6 +18556,11 @@ web-encoding@^1.1.5:
optionalDependencies:
"@zxing/text-encoding" "0.9.0"
+web-namespaces@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-2.0.1.tgz#1010ff7c650eccb2592cebeeaf9a1b253fd40692"
+ integrity sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==
+
web-streams-polyfill@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz#71c2718c52b45fd49dbeee88634b3a60ceab42a6"
@@ -17526,6 +19119,20 @@ xtend@~4.0.1:
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
+ version "1.0.20"
+ resolved "https://registry.yarnpkg.com/y-prosemirror/-/y-prosemirror-1.0.20.tgz#1832b5ab29852fc4607e9cf6b0c431e9caeed79e"
+ integrity sha512-LVMtu3qWo0emeYiP+0jgNcvZkqhzE/otOoro+87q0iVKxy/sMKuiJZnokfJdR4cn9qKx0Un5fIxXqbAlR2bFkA==
+ dependencies:
+ lib0 "^0.2.42"
+
+y-protocols@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/y-protocols/-/y-protocols-1.0.5.tgz#91d574250060b29fcac8f8eb5e276fbad594245e"
+ integrity sha512-Wil92b7cGk712lRHDqS4T90IczF6RkcvCwAD0A2OPg+adKmOe+nOiT/N2hvpQIWS3zfjmtL4CPaH5sIW1Hkm/A==
+ dependencies:
+ lib0 "^0.2.42"
+
y18n@^4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf"
@@ -17635,6 +19242,13 @@ yauzl@^2.10.0:
buffer-crc32 "~0.2.3"
fd-slicer "~1.1.0"
+yjs@^13.6.1:
+ version "13.6.6"
+ resolved "https://registry.yarnpkg.com/yjs/-/yjs-13.6.6.tgz#586b2dd25121a8cdb55ba85bb8760ec8904e037c"
+ integrity sha512-VTvezMeMuOra9jKG1Ym5XuQ2H4xXOubIIIupv/B5oygasa9IqDE7Ufv93QTSe9uz69J5VZGMQb2WTEmJv4kJFQ==
+ dependencies:
+ lib0 "^0.2.74"
+
version "3.1.1"
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
@@ -17661,3 +19275,8 @@ [email protected]:
version "0.8.15"
resolved "https://registry.yarnpkg.com/zen-observable/-/zen-observable-0.8.15.tgz#96415c512d8e3ffd920afd3889604e30b9eaac15"
integrity sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ==
+
+zwitch@^2.0.0, zwitch@^2.0.4:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/zwitch/-/zwitch-2.0.4.tgz#c827d4b0acb76fc3e685a4c6ec2902d51070e9d7"
+ integrity sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==
diff --git a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts
index 805d3a008fb..fa89ef4788e 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts
@@ -11,6 +11,15 @@ export class CommentThreadCountAggregateInput {
@HideField()
workspaceId?: true;
+ @Field(() => Boolean, {nullable:true})
+ authorId?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ body?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ title?: true;
+
@HideField()
deletedAt?: true;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts
index 26b41017512..ec5a1ea96c3 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts
@@ -12,6 +12,15 @@ export class CommentThreadCountAggregate {
@HideField()
workspaceId!: number;
+ @Field(() => Int, {nullable:false})
+ authorId!: number;
+
+ @Field(() => Int, {nullable:false})
+ body!: number;
+
+ @Field(() => Int, {nullable:false})
+ title!: number;
+
@HideField()
deletedAt!: number;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts
index 38f1f20d721..e062ece4e7a 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts
@@ -12,6 +12,15 @@ export class CommentThreadCountOrderByAggregateInput {
@HideField()
workspaceId?: keyof typeof SortOrder;
+ @Field(() => SortOrder, {nullable:true})
+ authorId?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ body?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ title?: keyof typeof SortOrder;
+
@HideField()
deletedAt?: keyof typeof SortOrder;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-many-author-input-envelope.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many-author-input-envelope.input.ts
new file mode 100644
index 00000000000..3952bd9485f
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-many-author-input-envelope.input.ts
@@ -0,0 +1,15 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadCreateManyAuthorInput } from './comment-thread-create-many-author.input';
+import { Type } from 'class-transformer';
+
+@InputType()
+export class CommentThreadCreateManyAuthorInputEnvelope {
+
+ @Field(() => [CommentThreadCreateManyAuthorInput], {nullable:false})
+ @Type(() => CommentThreadCreateManyAuthorInput)
+ data!: Array<CommentThreadCreateManyAuthorInput>;
+
+ @Field(() => Boolean, {nullable:true})
+ skipDuplicates?: boolean;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-many-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many-author.input.ts
new file mode 100644
index 00000000000..e331f87c3f2
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-many-author.input.ts
@@ -0,0 +1,31 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import * as Validator from 'class-validator';
+import { HideField } from '@nestjs/graphql';
+
+@InputType()
+export class CommentThreadCreateManyAuthorInput {
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ id?: string;
+
+ @HideField()
+ workspaceId!: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
+ @HideField()
+ deletedAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ createdAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ updatedAt?: Date | string;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts
index df6c79416af..9da07684a67 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts
@@ -11,6 +11,15 @@ export class CommentThreadCreateManyWorkspaceInput {
@Validator.IsOptional()
id?: string;
+ @Field(() => String, {nullable:false})
+ authorId!: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts
index 776b619362c..04b2147cf16 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts
@@ -14,6 +14,15 @@ export class CommentThreadCreateManyInput {
@HideField()
workspaceId!: string;
+ @Field(() => String, {nullable:false})
+ authorId!: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-nested-many-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-nested-many-without-author.input.ts
new file mode 100644
index 00000000000..d242a2030b8
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-nested-many-without-author.input.ts
@@ -0,0 +1,27 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadCreateWithoutAuthorInput } from './comment-thread-create-without-author.input';
+import { Type } from 'class-transformer';
+import { CommentThreadCreateOrConnectWithoutAuthorInput } from './comment-thread-create-or-connect-without-author.input';
+import { CommentThreadCreateManyAuthorInputEnvelope } from './comment-thread-create-many-author-input-envelope.input';
+import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
+
+@InputType()
+export class CommentThreadCreateNestedManyWithoutAuthorInput {
+
+ @Field(() => [CommentThreadCreateWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadCreateWithoutAuthorInput)
+ create?: Array<CommentThreadCreateWithoutAuthorInput>;
+
+ @Field(() => [CommentThreadCreateOrConnectWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadCreateOrConnectWithoutAuthorInput)
+ connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutAuthorInput>;
+
+ @Field(() => CommentThreadCreateManyAuthorInputEnvelope, {nullable:true})
+ @Type(() => CommentThreadCreateManyAuthorInputEnvelope)
+ createMany?: CommentThreadCreateManyAuthorInputEnvelope;
+
+ @Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
+ @Type(() => CommentThreadWhereUniqueInput)
+ connect?: Array<CommentThreadWhereUniqueInput>;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-or-connect-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-or-connect-without-author.input.ts
new file mode 100644
index 00000000000..71076b12957
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-or-connect-without-author.input.ts
@@ -0,0 +1,17 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
+import { Type } from 'class-transformer';
+import { CommentThreadCreateWithoutAuthorInput } from './comment-thread-create-without-author.input';
+
+@InputType()
+export class CommentThreadCreateOrConnectWithoutAuthorInput {
+
+ @Field(() => CommentThreadWhereUniqueInput, {nullable:false})
+ @Type(() => CommentThreadWhereUniqueInput)
+ where!: CommentThreadWhereUniqueInput;
+
+ @Field(() => CommentThreadCreateWithoutAuthorInput, {nullable:false})
+ @Type(() => CommentThreadCreateWithoutAuthorInput)
+ create!: CommentThreadCreateWithoutAuthorInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-author.input.ts
new file mode 100644
index 00000000000..b62a7947898
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-author.input.ts
@@ -0,0 +1,40 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import * as Validator from 'class-validator';
+import { HideField } from '@nestjs/graphql';
+import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input';
+import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input';
+import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input';
+
+@InputType()
+export class CommentThreadCreateWithoutAuthorInput {
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ id?: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
+ @HideField()
+ deletedAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ createdAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ updatedAt?: Date | string;
+
+ @Field(() => CommentThreadTargetCreateNestedManyWithoutCommentThreadInput, {nullable:true})
+ commentThreadTargets?: CommentThreadTargetCreateNestedManyWithoutCommentThreadInput;
+
+ @Field(() => CommentCreateNestedManyWithoutCommentThreadInput, {nullable:true})
+ comments?: CommentCreateNestedManyWithoutCommentThreadInput;
+
+ @HideField()
+ workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts
index 6a41f970ea2..3b232d56247 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts
@@ -4,6 +4,7 @@ import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input';
import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input';
+import { UserCreateNestedOneWithoutCommentThreadInput } from '../user/user-create-nested-one-without-comment-thread.input';
@InputType()
export class CommentThreadCreateWithoutCommentThreadTargetsInput {
@@ -13,6 +14,12 @@ export class CommentThreadCreateWithoutCommentThreadTargetsInput {
@Validator.IsOptional()
id?: string;
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
@@ -27,4 +34,7 @@ export class CommentThreadCreateWithoutCommentThreadTargetsInput {
@HideField()
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
+
+ @Field(() => UserCreateNestedOneWithoutCommentThreadInput, {nullable:false})
+ author!: UserCreateNestedOneWithoutCommentThreadInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts
index da829a51e85..c9f82907361 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts
@@ -4,6 +4,7 @@ import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input';
import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input';
+import { UserCreateNestedOneWithoutCommentThreadInput } from '../user/user-create-nested-one-without-comment-thread.input';
@InputType()
export class CommentThreadCreateWithoutCommentsInput {
@@ -13,6 +14,12 @@ export class CommentThreadCreateWithoutCommentsInput {
@Validator.IsOptional()
id?: string;
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
@@ -27,4 +34,7 @@ export class CommentThreadCreateWithoutCommentsInput {
@HideField()
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
+
+ @Field(() => UserCreateNestedOneWithoutCommentThreadInput, {nullable:false})
+ author!: UserCreateNestedOneWithoutCommentThreadInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts
index 0b4a74ad6e2..c33366bebad 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts
@@ -4,6 +4,7 @@ import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input';
import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input';
+import { UserCreateNestedOneWithoutCommentThreadInput } from '../user/user-create-nested-one-without-comment-thread.input';
@InputType()
export class CommentThreadCreateWithoutWorkspaceInput {
@@ -13,6 +14,12 @@ export class CommentThreadCreateWithoutWorkspaceInput {
@Validator.IsOptional()
id?: string;
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
@@ -27,4 +34,7 @@ export class CommentThreadCreateWithoutWorkspaceInput {
@Field(() => CommentCreateNestedManyWithoutCommentThreadInput, {nullable:true})
comments?: CommentCreateNestedManyWithoutCommentThreadInput;
+
+ @Field(() => UserCreateNestedOneWithoutCommentThreadInput, {nullable:false})
+ author!: UserCreateNestedOneWithoutCommentThreadInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create.input.ts
index ef2d51dc063..dbbfb03c678 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create.input.ts
@@ -5,6 +5,7 @@ import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input';
import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input';
import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input';
+import { UserCreateNestedOneWithoutCommentThreadInput } from '../user/user-create-nested-one-without-comment-thread.input';
@InputType()
export class CommentThreadCreateInput {
@@ -14,6 +15,12 @@ export class CommentThreadCreateInput {
@Validator.IsOptional()
id?: string;
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
@@ -31,4 +38,7 @@ export class CommentThreadCreateInput {
@HideField()
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
+
+ @Field(() => UserCreateNestedOneWithoutCommentThreadInput, {nullable:false})
+ author!: UserCreateNestedOneWithoutCommentThreadInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts b/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts
index 885b78d14b9..16b8ac21fab 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts
@@ -17,6 +17,15 @@ export class CommentThreadGroupBy {
@HideField()
workspaceId!: string;
+ @Field(() => String, {nullable:false})
+ authorId!: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts
index 0a22e60e52a..19110d060c8 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts
@@ -11,6 +11,15 @@ export class CommentThreadMaxAggregateInput {
@HideField()
workspaceId?: true;
+ @Field(() => Boolean, {nullable:true})
+ authorId?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ body?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ title?: true;
+
@HideField()
deletedAt?: true;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts
index e76278c67a9..792e77c5af0 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts
@@ -14,6 +14,15 @@ export class CommentThreadMaxAggregate {
@HideField()
workspaceId?: string;
+ @Field(() => String, {nullable:true})
+ authorId?: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts
index 77e00888aad..a0904e021d1 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts
@@ -12,6 +12,15 @@ export class CommentThreadMaxOrderByAggregateInput {
@HideField()
workspaceId?: keyof typeof SortOrder;
+ @Field(() => SortOrder, {nullable:true})
+ authorId?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ body?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ title?: keyof typeof SortOrder;
+
@HideField()
deletedAt?: keyof typeof SortOrder;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts
index 1e45c444c57..07e64e5a3eb 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts
@@ -11,6 +11,15 @@ export class CommentThreadMinAggregateInput {
@HideField()
workspaceId?: true;
+ @Field(() => Boolean, {nullable:true})
+ authorId?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ body?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ title?: true;
+
@HideField()
deletedAt?: true;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts
index 7f891925749..943fde8fc3e 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts
@@ -14,6 +14,15 @@ export class CommentThreadMinAggregate {
@HideField()
workspaceId?: string;
+ @Field(() => String, {nullable:true})
+ authorId?: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts
index ffccd07a07c..4157c790bf6 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts
@@ -12,6 +12,15 @@ export class CommentThreadMinOrderByAggregateInput {
@HideField()
workspaceId?: keyof typeof SortOrder;
+ @Field(() => SortOrder, {nullable:true})
+ authorId?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ body?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ title?: keyof typeof SortOrder;
+
@HideField()
deletedAt?: keyof typeof SortOrder;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts
index 691a37d8ec3..8b14f681154 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts
@@ -15,6 +15,15 @@ export class CommentThreadOrderByWithAggregationInput {
@HideField()
workspaceId?: keyof typeof SortOrder;
+ @Field(() => SortOrder, {nullable:true})
+ authorId?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ body?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ title?: keyof typeof SortOrder;
+
@HideField()
deletedAt?: keyof typeof SortOrder;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts
index 820b616f151..965fd2e5a57 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts
@@ -5,6 +5,7 @@ import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetOrderByRelationAggregateInput } from '../comment-thread-target/comment-thread-target-order-by-relation-aggregate.input';
import { CommentOrderByRelationAggregateInput } from '../comment/comment-order-by-relation-aggregate.input';
import { WorkspaceOrderByWithRelationInput } from '../workspace/workspace-order-by-with-relation.input';
+import { UserOrderByWithRelationInput } from '../user/user-order-by-with-relation.input';
@InputType()
export class CommentThreadOrderByWithRelationInput {
@@ -15,6 +16,15 @@ export class CommentThreadOrderByWithRelationInput {
@HideField()
workspaceId?: keyof typeof SortOrder;
+ @Field(() => SortOrder, {nullable:true})
+ authorId?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ body?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ title?: keyof typeof SortOrder;
+
@HideField()
deletedAt?: keyof typeof SortOrder;
@@ -32,4 +42,7 @@ export class CommentThreadOrderByWithRelationInput {
@HideField()
workspace?: WorkspaceOrderByWithRelationInput;
+
+ @Field(() => UserOrderByWithRelationInput, {nullable:true})
+ author?: UserOrderByWithRelationInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts b/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts
index a4b02004a7c..8514803aae4 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts
@@ -3,6 +3,9 @@ import { registerEnumType } from '@nestjs/graphql';
export enum CommentThreadScalarFieldEnum {
id = "id",
workspaceId = "workspaceId",
+ authorId = "authorId",
+ body = "body",
+ title = "title",
deletedAt = "deletedAt",
createdAt = "createdAt",
updatedAt = "updatedAt"
diff --git a/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts
index 295edaa145f..aba648d585c 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
import { HideField } from '@nestjs/graphql';
+import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input';
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
@@ -23,6 +24,15 @@ export class CommentThreadScalarWhereWithAggregatesInput {
@HideField()
workspaceId?: StringWithAggregatesFilter;
+ @Field(() => StringWithAggregatesFilter, {nullable:true})
+ authorId?: StringWithAggregatesFilter;
+
+ @Field(() => StringNullableWithAggregatesFilter, {nullable:true})
+ body?: StringNullableWithAggregatesFilter;
+
+ @Field(() => StringNullableWithAggregatesFilter, {nullable:true})
+ title?: StringNullableWithAggregatesFilter;
+
@HideField()
deletedAt?: DateTimeNullableWithAggregatesFilter;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts b/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts
index 80585db9d9b..348b444a3e7 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFilter } from '../prisma/string-filter.input';
import { HideField } from '@nestjs/graphql';
+import { StringNullableFilter } from '../prisma/string-nullable-filter.input';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
@@ -23,6 +24,15 @@ export class CommentThreadScalarWhereInput {
@HideField()
workspaceId?: StringFilter;
+ @Field(() => StringFilter, {nullable:true})
+ authorId?: StringFilter;
+
+ @Field(() => StringNullableFilter, {nullable:true})
+ body?: StringNullableFilter;
+
+ @Field(() => StringNullableFilter, {nullable:true})
+ title?: StringNullableFilter;
+
@HideField()
deletedAt?: DateTimeNullableFilter;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-nested-many-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-nested-many-without-author.input.ts
new file mode 100644
index 00000000000..e3be46bd2be
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-nested-many-without-author.input.ts
@@ -0,0 +1,27 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadCreateWithoutAuthorInput } from './comment-thread-create-without-author.input';
+import { Type } from 'class-transformer';
+import { CommentThreadCreateOrConnectWithoutAuthorInput } from './comment-thread-create-or-connect-without-author.input';
+import { CommentThreadCreateManyAuthorInputEnvelope } from './comment-thread-create-many-author-input-envelope.input';
+import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
+
+@InputType()
+export class CommentThreadUncheckedCreateNestedManyWithoutAuthorInput {
+
+ @Field(() => [CommentThreadCreateWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadCreateWithoutAuthorInput)
+ create?: Array<CommentThreadCreateWithoutAuthorInput>;
+
+ @Field(() => [CommentThreadCreateOrConnectWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadCreateOrConnectWithoutAuthorInput)
+ connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutAuthorInput>;
+
+ @Field(() => CommentThreadCreateManyAuthorInputEnvelope, {nullable:true})
+ @Type(() => CommentThreadCreateManyAuthorInputEnvelope)
+ createMany?: CommentThreadCreateManyAuthorInputEnvelope;
+
+ @Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
+ @Type(() => CommentThreadWhereUniqueInput)
+ connect?: Array<CommentThreadWhereUniqueInput>;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-author.input.ts
new file mode 100644
index 00000000000..04e17ff0f0a
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-author.input.ts
@@ -0,0 +1,39 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import * as Validator from 'class-validator';
+import { HideField } from '@nestjs/graphql';
+import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input';
+import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input';
+
+@InputType()
+export class CommentThreadUncheckedCreateWithoutAuthorInput {
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ id?: string;
+
+ @HideField()
+ workspaceId!: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
+ @HideField()
+ deletedAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ createdAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ updatedAt?: Date | string;
+
+ @Field(() => CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput, {nullable:true})
+ commentThreadTargets?: CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput;
+
+ @Field(() => CommentUncheckedCreateNestedManyWithoutCommentThreadInput, {nullable:true})
+ comments?: CommentUncheckedCreateNestedManyWithoutCommentThreadInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts
index 7a77e02ca08..ff17713a73f 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts
@@ -15,6 +15,15 @@ export class CommentThreadUncheckedCreateWithoutCommentThreadTargetsInput {
@HideField()
workspaceId!: string;
+ @Field(() => String, {nullable:false})
+ authorId!: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts
index 23ad12f7199..786866edca8 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts
@@ -15,6 +15,15 @@ export class CommentThreadUncheckedCreateWithoutCommentsInput {
@HideField()
workspaceId!: string;
+ @Field(() => String, {nullable:false})
+ authorId!: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts
index 697f3100177..99dd0248d1d 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts
@@ -13,6 +13,15 @@ export class CommentThreadUncheckedCreateWithoutWorkspaceInput {
@Validator.IsOptional()
id?: string;
+ @Field(() => String, {nullable:false})
+ authorId!: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts
index c67e5a29b7e..493cde6a076 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts
@@ -16,6 +16,15 @@ export class CommentThreadUncheckedCreateInput {
@HideField()
workspaceId!: string;
+ @Field(() => String, {nullable:false})
+ authorId!: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-author-nested.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-author-nested.input.ts
new file mode 100644
index 00000000000..9e19b91675c
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-author-nested.input.ts
@@ -0,0 +1,59 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadCreateWithoutAuthorInput } from './comment-thread-create-without-author.input';
+import { Type } from 'class-transformer';
+import { CommentThreadCreateOrConnectWithoutAuthorInput } from './comment-thread-create-or-connect-without-author.input';
+import { CommentThreadUpsertWithWhereUniqueWithoutAuthorInput } from './comment-thread-upsert-with-where-unique-without-author.input';
+import { CommentThreadCreateManyAuthorInputEnvelope } from './comment-thread-create-many-author-input-envelope.input';
+import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
+import { CommentThreadUpdateWithWhereUniqueWithoutAuthorInput } from './comment-thread-update-with-where-unique-without-author.input';
+import { CommentThreadUpdateManyWithWhereWithoutAuthorInput } from './comment-thread-update-many-with-where-without-author.input';
+import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input';
+
+@InputType()
+export class CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput {
+
+ @Field(() => [CommentThreadCreateWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadCreateWithoutAuthorInput)
+ create?: Array<CommentThreadCreateWithoutAuthorInput>;
+
+ @Field(() => [CommentThreadCreateOrConnectWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadCreateOrConnectWithoutAuthorInput)
+ connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutAuthorInput>;
+
+ @Field(() => [CommentThreadUpsertWithWhereUniqueWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadUpsertWithWhereUniqueWithoutAuthorInput)
+ upsert?: Array<CommentThreadUpsertWithWhereUniqueWithoutAuthorInput>;
+
+ @Field(() => CommentThreadCreateManyAuthorInputEnvelope, {nullable:true})
+ @Type(() => CommentThreadCreateManyAuthorInputEnvelope)
+ createMany?: CommentThreadCreateManyAuthorInputEnvelope;
+
+ @Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
+ @Type(() => CommentThreadWhereUniqueInput)
+ set?: Array<CommentThreadWhereUniqueInput>;
+
+ @Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
+ @Type(() => CommentThreadWhereUniqueInput)
+ disconnect?: Array<CommentThreadWhereUniqueInput>;
+
+ @Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
+ @Type(() => CommentThreadWhereUniqueInput)
+ delete?: Array<CommentThreadWhereUniqueInput>;
+
+ @Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
+ @Type(() => CommentThreadWhereUniqueInput)
+ connect?: Array<CommentThreadWhereUniqueInput>;
+
+ @Field(() => [CommentThreadUpdateWithWhereUniqueWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadUpdateWithWhereUniqueWithoutAuthorInput)
+ update?: Array<CommentThreadUpdateWithWhereUniqueWithoutAuthorInput>;
+
+ @Field(() => [CommentThreadUpdateManyWithWhereWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadUpdateManyWithWhereWithoutAuthorInput)
+ updateMany?: Array<CommentThreadUpdateManyWithWhereWithoutAuthorInput>;
+
+ @Field(() => [CommentThreadScalarWhereInput], {nullable:true})
+ @Type(() => CommentThreadScalarWhereInput)
+ deleteMany?: Array<CommentThreadScalarWhereInput>;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-thread.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-thread.input.ts
new file mode 100644
index 00000000000..046bc72be02
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-thread.input.ts
@@ -0,0 +1,32 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
+import { HideField } from '@nestjs/graphql';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
+import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
+
+@InputType()
+export class CommentThreadUncheckedUpdateManyWithoutCommentThreadInput {
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ id?: StringFieldUpdateOperationsInput;
+
+ @HideField()
+ workspaceId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
+ @HideField()
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ createdAt?: DateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ updatedAt?: DateTimeFieldUpdateOperationsInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts
index a8176bf8640..1888e3f19c9 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts
@@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@@ -11,6 +12,15 @@ export class CommentThreadUncheckedUpdateManyWithoutCommentThreadsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ authorId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts
index e29d948537d..e1f3ea66e57 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@@ -14,6 +15,15 @@ export class CommentThreadUncheckedUpdateManyInput {
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ authorId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-author.input.ts
new file mode 100644
index 00000000000..b3fe842f403
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-author.input.ts
@@ -0,0 +1,40 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
+import { HideField } from '@nestjs/graphql';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
+import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
+import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input';
+import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input';
+
+@InputType()
+export class CommentThreadUncheckedUpdateWithoutAuthorInput {
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ id?: StringFieldUpdateOperationsInput;
+
+ @HideField()
+ workspaceId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
+ @HideField()
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ createdAt?: DateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ updatedAt?: DateTimeFieldUpdateOperationsInput;
+
+ @Field(() => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
+ commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput;
+
+ @Field(() => CommentUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
+ comments?: CommentUncheckedUpdateManyWithoutCommentThreadNestedInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts
index a3f3a2bfee8..3ab751cb38d 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input';
@@ -15,6 +16,15 @@ export class CommentThreadUncheckedUpdateWithoutCommentThreadTargetsInput {
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ authorId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts
index 9c05d049c4d..b256f8fd198 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input';
@@ -15,6 +16,15 @@ export class CommentThreadUncheckedUpdateWithoutCommentsInput {
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ authorId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts
index a9dbbbdfe69..88832fa6ae9 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts
@@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@@ -13,6 +14,15 @@ export class CommentThreadUncheckedUpdateWithoutWorkspaceInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ authorId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts
index 73ee096f5aa..cc6268a5f60 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input';
@@ -16,6 +17,15 @@ export class CommentThreadUncheckedUpdateInput {
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ authorId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts
index 4ac5fe47731..e5b15731c2b 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts
@@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@@ -11,6 +12,12 @@ export class CommentThreadUpdateManyMutationInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-many-with-where-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-many-with-where-without-author.input.ts
new file mode 100644
index 00000000000..44fd12a1d96
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-many-with-where-without-author.input.ts
@@ -0,0 +1,17 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input';
+import { Type } from 'class-transformer';
+import { CommentThreadUpdateManyMutationInput } from './comment-thread-update-many-mutation.input';
+
+@InputType()
+export class CommentThreadUpdateManyWithWhereWithoutAuthorInput {
+
+ @Field(() => CommentThreadScalarWhereInput, {nullable:false})
+ @Type(() => CommentThreadScalarWhereInput)
+ where!: CommentThreadScalarWhereInput;
+
+ @Field(() => CommentThreadUpdateManyMutationInput, {nullable:false})
+ @Type(() => CommentThreadUpdateManyMutationInput)
+ data!: CommentThreadUpdateManyMutationInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-many-without-author-nested.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-many-without-author-nested.input.ts
new file mode 100644
index 00000000000..1281f5177a3
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-many-without-author-nested.input.ts
@@ -0,0 +1,59 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadCreateWithoutAuthorInput } from './comment-thread-create-without-author.input';
+import { Type } from 'class-transformer';
+import { CommentThreadCreateOrConnectWithoutAuthorInput } from './comment-thread-create-or-connect-without-author.input';
+import { CommentThreadUpsertWithWhereUniqueWithoutAuthorInput } from './comment-thread-upsert-with-where-unique-without-author.input';
+import { CommentThreadCreateManyAuthorInputEnvelope } from './comment-thread-create-many-author-input-envelope.input';
+import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
+import { CommentThreadUpdateWithWhereUniqueWithoutAuthorInput } from './comment-thread-update-with-where-unique-without-author.input';
+import { CommentThreadUpdateManyWithWhereWithoutAuthorInput } from './comment-thread-update-many-with-where-without-author.input';
+import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input';
+
+@InputType()
+export class CommentThreadUpdateManyWithoutAuthorNestedInput {
+
+ @Field(() => [CommentThreadCreateWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadCreateWithoutAuthorInput)
+ create?: Array<CommentThreadCreateWithoutAuthorInput>;
+
+ @Field(() => [CommentThreadCreateOrConnectWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadCreateOrConnectWithoutAuthorInput)
+ connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutAuthorInput>;
+
+ @Field(() => [CommentThreadUpsertWithWhereUniqueWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadUpsertWithWhereUniqueWithoutAuthorInput)
+ upsert?: Array<CommentThreadUpsertWithWhereUniqueWithoutAuthorInput>;
+
+ @Field(() => CommentThreadCreateManyAuthorInputEnvelope, {nullable:true})
+ @Type(() => CommentThreadCreateManyAuthorInputEnvelope)
+ createMany?: CommentThreadCreateManyAuthorInputEnvelope;
+
+ @Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
+ @Type(() => CommentThreadWhereUniqueInput)
+ set?: Array<CommentThreadWhereUniqueInput>;
+
+ @Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
+ @Type(() => CommentThreadWhereUniqueInput)
+ disconnect?: Array<CommentThreadWhereUniqueInput>;
+
+ @Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
+ @Type(() => CommentThreadWhereUniqueInput)
+ delete?: Array<CommentThreadWhereUniqueInput>;
+
+ @Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
+ @Type(() => CommentThreadWhereUniqueInput)
+ connect?: Array<CommentThreadWhereUniqueInput>;
+
+ @Field(() => [CommentThreadUpdateWithWhereUniqueWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadUpdateWithWhereUniqueWithoutAuthorInput)
+ update?: Array<CommentThreadUpdateWithWhereUniqueWithoutAuthorInput>;
+
+ @Field(() => [CommentThreadUpdateManyWithWhereWithoutAuthorInput], {nullable:true})
+ @Type(() => CommentThreadUpdateManyWithWhereWithoutAuthorInput)
+ updateMany?: Array<CommentThreadUpdateManyWithWhereWithoutAuthorInput>;
+
+ @Field(() => [CommentThreadScalarWhereInput], {nullable:true})
+ @Type(() => CommentThreadScalarWhereInput)
+ deleteMany?: Array<CommentThreadScalarWhereInput>;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-with-where-unique-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-with-where-unique-without-author.input.ts
new file mode 100644
index 00000000000..6adcc0a15ab
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-with-where-unique-without-author.input.ts
@@ -0,0 +1,17 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
+import { Type } from 'class-transformer';
+import { CommentThreadUpdateWithoutAuthorInput } from './comment-thread-update-without-author.input';
+
+@InputType()
+export class CommentThreadUpdateWithWhereUniqueWithoutAuthorInput {
+
+ @Field(() => CommentThreadWhereUniqueInput, {nullable:false})
+ @Type(() => CommentThreadWhereUniqueInput)
+ where!: CommentThreadWhereUniqueInput;
+
+ @Field(() => CommentThreadUpdateWithoutAuthorInput, {nullable:false})
+ @Type(() => CommentThreadUpdateWithoutAuthorInput)
+ data!: CommentThreadUpdateWithoutAuthorInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-author.input.ts
new file mode 100644
index 00000000000..01b3d157be4
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-author.input.ts
@@ -0,0 +1,41 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
+import { HideField } from '@nestjs/graphql';
+import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
+import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input';
+import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input';
+import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input';
+
+@InputType()
+export class CommentThreadUpdateWithoutAuthorInput {
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ id?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
+ @HideField()
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ createdAt?: DateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ updatedAt?: DateTimeFieldUpdateOperationsInput;
+
+ @Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
+ commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput;
+
+ @Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
+ comments?: CommentUpdateManyWithoutCommentThreadNestedInput;
+
+ @HideField()
+ workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts
index 11962b372cb..73c85e07508 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts
@@ -1,11 +1,13 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input';
import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input';
+import { UserUpdateOneRequiredWithoutCommentThreadNestedInput } from '../user/user-update-one-required-without-comment-thread-nested.input';
@InputType()
export class CommentThreadUpdateWithoutCommentThreadTargetsInput {
@@ -13,6 +15,12 @@ export class CommentThreadUpdateWithoutCommentThreadTargetsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@@ -27,4 +35,7 @@ export class CommentThreadUpdateWithoutCommentThreadTargetsInput {
@HideField()
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
+
+ @Field(() => UserUpdateOneRequiredWithoutCommentThreadNestedInput, {nullable:true})
+ author?: UserUpdateOneRequiredWithoutCommentThreadNestedInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts
index 4c2d34db466..13be38fe98c 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts
@@ -1,11 +1,13 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input';
import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input';
+import { UserUpdateOneRequiredWithoutCommentThreadNestedInput } from '../user/user-update-one-required-without-comment-thread-nested.input';
@InputType()
export class CommentThreadUpdateWithoutCommentsInput {
@@ -13,6 +15,12 @@ export class CommentThreadUpdateWithoutCommentsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@@ -27,4 +35,7 @@ export class CommentThreadUpdateWithoutCommentsInput {
@HideField()
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
+
+ @Field(() => UserUpdateOneRequiredWithoutCommentThreadNestedInput, {nullable:true})
+ author?: UserUpdateOneRequiredWithoutCommentThreadNestedInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts
index 0860a0f3302..251a0982923 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts
@@ -1,11 +1,13 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input';
import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input';
+import { UserUpdateOneRequiredWithoutCommentThreadNestedInput } from '../user/user-update-one-required-without-comment-thread-nested.input';
@InputType()
export class CommentThreadUpdateWithoutWorkspaceInput {
@@ -13,6 +15,12 @@ export class CommentThreadUpdateWithoutWorkspaceInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@@ -27,4 +35,7 @@ export class CommentThreadUpdateWithoutWorkspaceInput {
@Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
comments?: CommentUpdateManyWithoutCommentThreadNestedInput;
+
+ @Field(() => UserUpdateOneRequiredWithoutCommentThreadNestedInput, {nullable:true})
+ author?: UserUpdateOneRequiredWithoutCommentThreadNestedInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update.input.ts
index f9558ac23f9..d5f63a2e2a2 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-update.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-update.input.ts
@@ -1,12 +1,14 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input';
import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input';
import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input';
+import { UserUpdateOneRequiredWithoutCommentThreadNestedInput } from '../user/user-update-one-required-without-comment-thread-nested.input';
@InputType()
export class CommentThreadUpdateInput {
@@ -14,6 +16,12 @@ export class CommentThreadUpdateInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@@ -31,4 +39,7 @@ export class CommentThreadUpdateInput {
@HideField()
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
+
+ @Field(() => UserUpdateOneRequiredWithoutCommentThreadNestedInput, {nullable:true})
+ author?: UserUpdateOneRequiredWithoutCommentThreadNestedInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-upsert-with-where-unique-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-upsert-with-where-unique-without-author.input.ts
new file mode 100644
index 00000000000..d85d75c21f2
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-upsert-with-where-unique-without-author.input.ts
@@ -0,0 +1,22 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
+import { Type } from 'class-transformer';
+import { CommentThreadUpdateWithoutAuthorInput } from './comment-thread-update-without-author.input';
+import { CommentThreadCreateWithoutAuthorInput } from './comment-thread-create-without-author.input';
+
+@InputType()
+export class CommentThreadUpsertWithWhereUniqueWithoutAuthorInput {
+
+ @Field(() => CommentThreadWhereUniqueInput, {nullable:false})
+ @Type(() => CommentThreadWhereUniqueInput)
+ where!: CommentThreadWhereUniqueInput;
+
+ @Field(() => CommentThreadUpdateWithoutAuthorInput, {nullable:false})
+ @Type(() => CommentThreadUpdateWithoutAuthorInput)
+ update!: CommentThreadUpdateWithoutAuthorInput;
+
+ @Field(() => CommentThreadCreateWithoutAuthorInput, {nullable:false})
+ @Type(() => CommentThreadCreateWithoutAuthorInput)
+ create!: CommentThreadCreateWithoutAuthorInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-where.input.ts b/server/src/core/@generated/comment-thread/comment-thread-where.input.ts
index 8565dd9b847..a6ebf673d68 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-where.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-where.input.ts
@@ -2,11 +2,13 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFilter } from '../prisma/string-filter.input';
import { HideField } from '@nestjs/graphql';
+import { StringNullableFilter } from '../prisma/string-nullable-filter.input';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
import { CommentThreadTargetListRelationFilter } from '../comment-thread-target/comment-thread-target-list-relation-filter.input';
import { CommentListRelationFilter } from '../comment/comment-list-relation-filter.input';
import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input';
+import { UserRelationFilter } from '../user/user-relation-filter.input';
@InputType()
export class CommentThreadWhereInput {
@@ -26,6 +28,15 @@ export class CommentThreadWhereInput {
@HideField()
workspaceId?: StringFilter;
+ @Field(() => StringFilter, {nullable:true})
+ authorId?: StringFilter;
+
+ @Field(() => StringNullableFilter, {nullable:true})
+ body?: StringNullableFilter;
+
+ @Field(() => StringNullableFilter, {nullable:true})
+ title?: StringNullableFilter;
+
@HideField()
deletedAt?: DateTimeNullableFilter;
@@ -43,4 +54,7 @@ export class CommentThreadWhereInput {
@HideField()
workspace?: WorkspaceRelationFilter;
+
+ @Field(() => UserRelationFilter, {nullable:true})
+ author?: UserRelationFilter;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread.model.ts b/server/src/core/@generated/comment-thread/comment-thread.model.ts
index 430b1964bb2..e8411c7368f 100644
--- a/server/src/core/@generated/comment-thread/comment-thread.model.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread.model.ts
@@ -5,6 +5,7 @@ import { HideField } from '@nestjs/graphql';
import { CommentThreadTarget } from '../comment-thread-target/comment-thread-target.model';
import { Comment } from '../comment/comment.model';
import { Workspace } from '../workspace/workspace.model';
+import { User } from '../user/user.model';
import { CommentThreadCount } from '../comment/comment-thread-count.output';
@ObjectType()
@@ -16,6 +17,15 @@ export class CommentThread {
@HideField()
workspaceId!: string;
+ @Field(() => String, {nullable:false})
+ authorId!: string;
+
+ @Field(() => String, {nullable:true})
+ body!: string | null;
+
+ @Field(() => String, {nullable:true})
+ title!: string | null;
+
@HideField()
deletedAt!: Date | null;
@@ -34,6 +44,9 @@ export class CommentThread {
@HideField()
workspace?: Workspace;
+ @Field(() => User, {nullable:false})
+ author?: User;
+
@HideField()
_count?: CommentThreadCount;
}
diff --git a/server/src/core/@generated/user/user-count.output.ts b/server/src/core/@generated/user/user-count.output.ts
index a2e33d9c0ef..13d95817fc2 100644
--- a/server/src/core/@generated/user/user-count.output.ts
+++ b/server/src/core/@generated/user/user-count.output.ts
@@ -13,4 +13,7 @@ export class UserCount {
@Field(() => Int, {nullable:false})
comments?: number;
+
+ @Field(() => Int, {nullable:false})
+ CommentThread?: number;
}
diff --git a/server/src/core/@generated/user/user-create-nested-one-without-comment-thread.input.ts b/server/src/core/@generated/user/user-create-nested-one-without-comment-thread.input.ts
new file mode 100644
index 00000000000..3ecbc6a70a7
--- /dev/null
+++ b/server/src/core/@generated/user/user-create-nested-one-without-comment-thread.input.ts
@@ -0,0 +1,22 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { UserCreateWithoutCommentThreadInput } from './user-create-without-comment-thread.input';
+import { Type } from 'class-transformer';
+import { UserCreateOrConnectWithoutCommentThreadInput } from './user-create-or-connect-without-comment-thread.input';
+import { UserWhereUniqueInput } from './user-where-unique.input';
+
+@InputType()
+export class UserCreateNestedOneWithoutCommentThreadInput {
+
+ @Field(() => UserCreateWithoutCommentThreadInput, {nullable:true})
+ @Type(() => UserCreateWithoutCommentThreadInput)
+ create?: UserCreateWithoutCommentThreadInput;
+
+ @Field(() => UserCreateOrConnectWithoutCommentThreadInput, {nullable:true})
+ @Type(() => UserCreateOrConnectWithoutCommentThreadInput)
+ connectOrCreate?: UserCreateOrConnectWithoutCommentThreadInput;
+
+ @Field(() => UserWhereUniqueInput, {nullable:true})
+ @Type(() => UserWhereUniqueInput)
+ connect?: UserWhereUniqueInput;
+}
diff --git a/server/src/core/@generated/user/user-create-or-connect-without-comment-thread.input.ts b/server/src/core/@generated/user/user-create-or-connect-without-comment-thread.input.ts
new file mode 100644
index 00000000000..8643ebc848d
--- /dev/null
+++ b/server/src/core/@generated/user/user-create-or-connect-without-comment-thread.input.ts
@@ -0,0 +1,17 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { UserWhereUniqueInput } from './user-where-unique.input';
+import { Type } from 'class-transformer';
+import { UserCreateWithoutCommentThreadInput } from './user-create-without-comment-thread.input';
+
+@InputType()
+export class UserCreateOrConnectWithoutCommentThreadInput {
+
+ @Field(() => UserWhereUniqueInput, {nullable:false})
+ @Type(() => UserWhereUniqueInput)
+ where!: UserWhereUniqueInput;
+
+ @Field(() => UserCreateWithoutCommentThreadInput, {nullable:false})
+ @Type(() => UserCreateWithoutCommentThreadInput)
+ create!: UserCreateWithoutCommentThreadInput;
+}
diff --git a/server/src/core/@generated/user/user-create-without-comment-thread.input.ts b/server/src/core/@generated/user/user-create-without-comment-thread.input.ts
new file mode 100644
index 00000000000..6301fb2eec8
--- /dev/null
+++ b/server/src/core/@generated/user/user-create-without-comment-thread.input.ts
@@ -0,0 +1,90 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import * as Validator from 'class-validator';
+import { HideField } from '@nestjs/graphql';
+import { GraphQLJSON } from 'graphql-type-json';
+import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input';
+import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input';
+import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input';
+import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
+
+@InputType()
+export class UserCreateWithoutCommentThreadInput {
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ id?: string;
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ firstName?: string;
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ lastName?: string;
+
+ @Field(() => String, {nullable:false})
+ @Validator.IsEmail()
+ email!: string;
+
+ @Field(() => Boolean, {nullable:true})
+ @Validator.IsBoolean()
+ @Validator.IsOptional()
+ emailVerified?: boolean;
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ avatarUrl?: string;
+
+ @Field(() => String, {nullable:false})
+ @Validator.IsString()
+ locale!: string;
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ phoneNumber?: string;
+
+ @Field(() => Date, {nullable:true})
+ @Validator.IsDate()
+ @Validator.IsOptional()
+ lastSeen?: Date | string;
+
+ @Field(() => Boolean, {nullable:true})
+ @Validator.IsBoolean()
+ @Validator.IsOptional()
+ disabled?: boolean;
+
+ @HideField()
+ passwordHash?: string;
+
+ @Field(() => GraphQLJSON, {nullable:true})
+ @Validator.IsJSON()
+ @Validator.IsOptional()
+ metadata?: any;
+
+ @HideField()
+ deletedAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ createdAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ updatedAt?: Date | string;
+
+ @HideField()
+ workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput;
+
+ @Field(() => CompanyCreateNestedManyWithoutAccountOwnerInput, {nullable:true})
+ companies?: CompanyCreateNestedManyWithoutAccountOwnerInput;
+
+ @HideField()
+ refreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput;
+
+ @Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true})
+ comments?: CommentCreateNestedManyWithoutAuthorInput;
+}
diff --git a/server/src/core/@generated/user/user-create-without-comments.input.ts b/server/src/core/@generated/user/user-create-without-comments.input.ts
index 092db27445b..92756af64dc 100644
--- a/server/src/core/@generated/user/user-create-without-comments.input.ts
+++ b/server/src/core/@generated/user/user-create-without-comments.input.ts
@@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input';
import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input';
import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input';
+import { CommentThreadCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-create-nested-many-without-author.input';
@InputType()
export class UserCreateWithoutCommentsInput {
@@ -83,4 +84,7 @@ export class UserCreateWithoutCommentsInput {
@HideField()
refreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput;
+
+ @Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
+ CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
}
diff --git a/server/src/core/@generated/user/user-create-without-companies.input.ts b/server/src/core/@generated/user/user-create-without-companies.input.ts
index a03de953935..1cac06dd225 100644
--- a/server/src/core/@generated/user/user-create-without-companies.input.ts
+++ b/server/src/core/@generated/user/user-create-without-companies.input.ts
@@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input';
import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input';
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
+import { CommentThreadCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-create-nested-many-without-author.input';
@InputType()
export class UserCreateWithoutCompaniesInput {
@@ -83,4 +84,7 @@ export class UserCreateWithoutCompaniesInput {
@Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true})
comments?: CommentCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
+ CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
}
diff --git a/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts
index 0224711f09b..aff40d1947a 100644
--- a/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts
+++ b/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts
@@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input';
import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input';
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
+import { CommentThreadCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-create-nested-many-without-author.input';
@InputType()
export class UserCreateWithoutRefreshTokensInput {
@@ -83,4 +84,7 @@ export class UserCreateWithoutRefreshTokensInput {
@Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true})
comments?: CommentCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
+ CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
}
diff --git a/server/src/core/@generated/user/user-create-without-workspace-member.input.ts b/server/src/core/@generated/user/user-create-without-workspace-member.input.ts
index 267c3aec399..9bf4406dbab 100644
--- a/server/src/core/@generated/user/user-create-without-workspace-member.input.ts
+++ b/server/src/core/@generated/user/user-create-without-workspace-member.input.ts
@@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input';
import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input';
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
+import { CommentThreadCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-create-nested-many-without-author.input';
@InputType()
export class UserCreateWithoutWorkspaceMemberInput {
@@ -83,4 +84,7 @@ export class UserCreateWithoutWorkspaceMemberInput {
@Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true})
comments?: CommentCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
+ CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
}
diff --git a/server/src/core/@generated/user/user-create.input.ts b/server/src/core/@generated/user/user-create.input.ts
index 16910b68157..781f3ea3a54 100644
--- a/server/src/core/@generated/user/user-create.input.ts
+++ b/server/src/core/@generated/user/user-create.input.ts
@@ -7,6 +7,7 @@ import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-mem
import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input';
import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input';
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
+import { CommentThreadCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-create-nested-many-without-author.input';
@InputType()
export class UserCreateInput {
@@ -87,4 +88,7 @@ export class UserCreateInput {
@Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true})
comments?: CommentCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
+ CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
}
diff --git a/server/src/core/@generated/user/user-order-by-with-relation.input.ts b/server/src/core/@generated/user/user-order-by-with-relation.input.ts
index 1472696c395..c0408a00584 100644
--- a/server/src/core/@generated/user/user-order-by-with-relation.input.ts
+++ b/server/src/core/@generated/user/user-order-by-with-relation.input.ts
@@ -6,6 +6,7 @@ import { WorkspaceMemberOrderByWithRelationInput } from '../workspace-member/wor
import { CompanyOrderByRelationAggregateInput } from '../company/company-order-by-relation-aggregate.input';
import { RefreshTokenOrderByRelationAggregateInput } from '../refresh-token/refresh-token-order-by-relation-aggregate.input';
import { CommentOrderByRelationAggregateInput } from '../comment/comment-order-by-relation-aggregate.input';
+import { CommentThreadOrderByRelationAggregateInput } from '../comment-thread/comment-thread-order-by-relation-aggregate.input';
@InputType()
export class UserOrderByWithRelationInput {
@@ -66,4 +67,7 @@ export class UserOrderByWithRelationInput {
@Field(() => CommentOrderByRelationAggregateInput, {nullable:true})
comments?: CommentOrderByRelationAggregateInput;
+
+ @Field(() => CommentThreadOrderByRelationAggregateInput, {nullable:true})
+ CommentThread?: CommentThreadOrderByRelationAggregateInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-comment-thread.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-comment-thread.input.ts
new file mode 100644
index 00000000000..1a2c9459904
--- /dev/null
+++ b/server/src/core/@generated/user/user-unchecked-create-without-comment-thread.input.ts
@@ -0,0 +1,90 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import * as Validator from 'class-validator';
+import { HideField } from '@nestjs/graphql';
+import { GraphQLJSON } from 'graphql-type-json';
+import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input';
+import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input';
+import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
+import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
+
+@InputType()
+export class UserUncheckedCreateWithoutCommentThreadInput {
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ id?: string;
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ firstName?: string;
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ lastName?: string;
+
+ @Field(() => String, {nullable:false})
+ @Validator.IsEmail()
+ email!: string;
+
+ @Field(() => Boolean, {nullable:true})
+ @Validator.IsBoolean()
+ @Validator.IsOptional()
+ emailVerified?: boolean;
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ avatarUrl?: string;
+
+ @Field(() => String, {nullable:false})
+ @Validator.IsString()
+ locale!: string;
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ phoneNumber?: string;
+
+ @Field(() => Date, {nullable:true})
+ @Validator.IsDate()
+ @Validator.IsOptional()
+ lastSeen?: Date | string;
+
+ @Field(() => Boolean, {nullable:true})
+ @Validator.IsBoolean()
+ @Validator.IsOptional()
+ disabled?: boolean;
+
+ @HideField()
+ passwordHash?: string;
+
+ @Field(() => GraphQLJSON, {nullable:true})
+ @Validator.IsJSON()
+ @Validator.IsOptional()
+ metadata?: any;
+
+ @HideField()
+ deletedAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ createdAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ updatedAt?: Date | string;
+
+ @HideField()
+ workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput;
+
+ @Field(() => CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput, {nullable:true})
+ companies?: CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput;
+
+ @HideField()
+ refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput;
+
+ @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
+ comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
+}
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts
index eaa0600da4c..696c291e2d0 100644
--- a/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts
@@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input';
import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input';
import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
+import { CommentThreadUncheckedCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-author.input';
@InputType()
export class UserUncheckedCreateWithoutCommentsInput {
@@ -83,4 +84,7 @@ export class UserUncheckedCreateWithoutCommentsInput {
@HideField()
refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput;
+
+ @Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
+ CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts
index 20e868db1e6..5c6c6603aea 100644
--- a/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts
@@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input';
import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
+import { CommentThreadUncheckedCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-author.input';
@InputType()
export class UserUncheckedCreateWithoutCompaniesInput {
@@ -83,4 +84,7 @@ export class UserUncheckedCreateWithoutCompaniesInput {
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
+ CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts
index 5410fed9ea7..e837ecd071b 100644
--- a/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts
@@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input';
import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input';
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
+import { CommentThreadUncheckedCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-author.input';
@InputType()
export class UserUncheckedCreateWithoutRefreshTokensInput {
@@ -83,4 +84,7 @@ export class UserUncheckedCreateWithoutRefreshTokensInput {
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
+ CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts
index 83f674541f1..42538905f2a 100644
--- a/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts
@@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input';
import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
+import { CommentThreadUncheckedCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-author.input';
@InputType()
export class UserUncheckedCreateWithoutWorkspaceMemberInput {
@@ -83,4 +84,7 @@ export class UserUncheckedCreateWithoutWorkspaceMemberInput {
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
+ CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-create.input.ts b/server/src/core/@generated/user/user-unchecked-create.input.ts
index 70fd59b9ec7..45ad7e2fcde 100644
--- a/server/src/core/@generated/user/user-unchecked-create.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create.input.ts
@@ -7,6 +7,7 @@ import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../work
import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input';
import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
+import { CommentThreadUncheckedCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-author.input';
@InputType()
export class UserUncheckedCreateInput {
@@ -87,4 +88,7 @@ export class UserUncheckedCreateInput {
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
+ CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-comment-thread.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-comment-thread.input.ts
new file mode 100644
index 00000000000..2e41256ada8
--- /dev/null
+++ b/server/src/core/@generated/user/user-unchecked-update-without-comment-thread.input.ts
@@ -0,0 +1,77 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
+import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
+import { HideField } from '@nestjs/graphql';
+import { GraphQLJSON } from 'graphql-type-json';
+import * as Validator from 'class-validator';
+import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
+import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input';
+import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
+import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
+import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
+
+@InputType()
+export class UserUncheckedUpdateWithoutCommentThreadInput {
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ id?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ email?: StringFieldUpdateOperationsInput;
+
+ @Field(() => BoolFieldUpdateOperationsInput, {nullable:true})
+ emailVerified?: BoolFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ avatarUrl?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ locale?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ phoneNumber?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => BoolFieldUpdateOperationsInput, {nullable:true})
+ disabled?: BoolFieldUpdateOperationsInput;
+
+ @HideField()
+ passwordHash?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => GraphQLJSON, {nullable:true})
+ @Validator.IsJSON()
+ @Validator.IsOptional()
+ metadata?: any;
+
+ @HideField()
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ createdAt?: DateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ updatedAt?: DateTimeFieldUpdateOperationsInput;
+
+ @HideField()
+ workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput;
+
+ @Field(() => CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput, {nullable:true})
+ companies?: CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput;
+
+ @HideField()
+ refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput;
+
+ @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
+}
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts
index 6e6ba6f8489..e8dae84bda9 100644
--- a/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts
@@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input';
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
+import { CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-author-nested.input';
@InputType()
export class UserUncheckedUpdateWithoutCommentsInput {
@@ -70,4 +71,7 @@ export class UserUncheckedUpdateWithoutCommentsInput {
@HideField()
refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput;
+
+ @Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts
index a6494ab941b..c81f4b60f33 100644
--- a/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts
@@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input';
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
+import { CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-author-nested.input';
@InputType()
export class UserUncheckedUpdateWithoutCompaniesInput {
@@ -70,4 +71,7 @@ export class UserUncheckedUpdateWithoutCompaniesInput {
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts
index 30f68b5cf02..d9f4d216c2e 100644
--- a/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts
@@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input';
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
+import { CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-author-nested.input';
@InputType()
export class UserUncheckedUpdateWithoutRefreshTokensInput {
@@ -70,4 +71,7 @@ export class UserUncheckedUpdateWithoutRefreshTokensInput {
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts
index 13b4db3703f..232260e7a3e 100644
--- a/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts
@@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
+import { CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-author-nested.input';
@InputType()
export class UserUncheckedUpdateWithoutWorkspaceMemberInput {
@@ -70,4 +71,7 @@ export class UserUncheckedUpdateWithoutWorkspaceMemberInput {
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-update.input.ts b/server/src/core/@generated/user/user-unchecked-update.input.ts
index f7480885915..cb481e6687b 100644
--- a/server/src/core/@generated/user/user-unchecked-update.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update.input.ts
@@ -12,6 +12,7 @@ import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../work
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
+import { CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-author-nested.input';
@InputType()
export class UserUncheckedUpdateInput {
@@ -74,4 +75,7 @@ export class UserUncheckedUpdateInput {
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
}
diff --git a/server/src/core/@generated/user/user-update-one-required-without-comment-thread-nested.input.ts b/server/src/core/@generated/user/user-update-one-required-without-comment-thread-nested.input.ts
new file mode 100644
index 00000000000..d57bab76569
--- /dev/null
+++ b/server/src/core/@generated/user/user-update-one-required-without-comment-thread-nested.input.ts
@@ -0,0 +1,32 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { UserCreateWithoutCommentThreadInput } from './user-create-without-comment-thread.input';
+import { Type } from 'class-transformer';
+import { UserCreateOrConnectWithoutCommentThreadInput } from './user-create-or-connect-without-comment-thread.input';
+import { UserUpsertWithoutCommentThreadInput } from './user-upsert-without-comment-thread.input';
+import { UserWhereUniqueInput } from './user-where-unique.input';
+import { UserUpdateWithoutCommentThreadInput } from './user-update-without-comment-thread.input';
+
+@InputType()
+export class UserUpdateOneRequiredWithoutCommentThreadNestedInput {
+
+ @Field(() => UserCreateWithoutCommentThreadInput, {nullable:true})
+ @Type(() => UserCreateWithoutCommentThreadInput)
+ create?: UserCreateWithoutCommentThreadInput;
+
+ @Field(() => UserCreateOrConnectWithoutCommentThreadInput, {nullable:true})
+ @Type(() => UserCreateOrConnectWithoutCommentThreadInput)
+ connectOrCreate?: UserCreateOrConnectWithoutCommentThreadInput;
+
+ @Field(() => UserUpsertWithoutCommentThreadInput, {nullable:true})
+ @Type(() => UserUpsertWithoutCommentThreadInput)
+ upsert?: UserUpsertWithoutCommentThreadInput;
+
+ @Field(() => UserWhereUniqueInput, {nullable:true})
+ @Type(() => UserWhereUniqueInput)
+ connect?: UserWhereUniqueInput;
+
+ @Field(() => UserUpdateWithoutCommentThreadInput, {nullable:true})
+ @Type(() => UserUpdateWithoutCommentThreadInput)
+ update?: UserUpdateWithoutCommentThreadInput;
+}
diff --git a/server/src/core/@generated/user/user-update-without-comment-thread.input.ts b/server/src/core/@generated/user/user-update-without-comment-thread.input.ts
new file mode 100644
index 00000000000..95503851073
--- /dev/null
+++ b/server/src/core/@generated/user/user-update-without-comment-thread.input.ts
@@ -0,0 +1,77 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
+import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
+import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
+import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
+import { HideField } from '@nestjs/graphql';
+import { GraphQLJSON } from 'graphql-type-json';
+import * as Validator from 'class-validator';
+import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
+import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input';
+import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
+import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
+import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
+
+@InputType()
+export class UserUpdateWithoutCommentThreadInput {
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ id?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ firstName?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ lastName?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ email?: StringFieldUpdateOperationsInput;
+
+ @Field(() => BoolFieldUpdateOperationsInput, {nullable:true})
+ emailVerified?: BoolFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ avatarUrl?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ locale?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ phoneNumber?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => BoolFieldUpdateOperationsInput, {nullable:true})
+ disabled?: BoolFieldUpdateOperationsInput;
+
+ @HideField()
+ passwordHash?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => GraphQLJSON, {nullable:true})
+ @Validator.IsJSON()
+ @Validator.IsOptional()
+ metadata?: any;
+
+ @HideField()
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ createdAt?: DateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ updatedAt?: DateTimeFieldUpdateOperationsInput;
+
+ @HideField()
+ workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput;
+
+ @Field(() => CompanyUpdateManyWithoutAccountOwnerNestedInput, {nullable:true})
+ companies?: CompanyUpdateManyWithoutAccountOwnerNestedInput;
+
+ @HideField()
+ refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput;
+
+ @Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ comments?: CommentUpdateManyWithoutAuthorNestedInput;
+}
diff --git a/server/src/core/@generated/user/user-update-without-comments.input.ts b/server/src/core/@generated/user/user-update-without-comments.input.ts
index c2fda043877..c662b5fd9a5 100644
--- a/server/src/core/@generated/user/user-update-without-comments.input.ts
+++ b/server/src/core/@generated/user/user-update-without-comments.input.ts
@@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input';
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
+import { CommentThreadUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-update-many-without-author-nested.input';
@InputType()
export class UserUpdateWithoutCommentsInput {
@@ -70,4 +71,7 @@ export class UserUpdateWithoutCommentsInput {
@HideField()
refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput;
+
+ @Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
}
diff --git a/server/src/core/@generated/user/user-update-without-companies.input.ts b/server/src/core/@generated/user/user-update-without-companies.input.ts
index 12bbd0ec19e..c7a7aa74b74 100644
--- a/server/src/core/@generated/user/user-update-without-companies.input.ts
+++ b/server/src/core/@generated/user/user-update-without-companies.input.ts
@@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input';
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
+import { CommentThreadUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-update-many-without-author-nested.input';
@InputType()
export class UserUpdateWithoutCompaniesInput {
@@ -70,4 +71,7 @@ export class UserUpdateWithoutCompaniesInput {
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true})
comments?: CommentUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
}
diff --git a/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts
index b3d03f25a9f..57eb5fa34de 100644
--- a/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts
+++ b/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts
@@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input';
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
+import { CommentThreadUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-update-many-without-author-nested.input';
@InputType()
export class UserUpdateWithoutRefreshTokensInput {
@@ -70,4 +71,7 @@ export class UserUpdateWithoutRefreshTokensInput {
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true})
comments?: CommentUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
}
diff --git a/server/src/core/@generated/user/user-update-without-workspace-member.input.ts b/server/src/core/@generated/user/user-update-without-workspace-member.input.ts
index 21f241cbe54..8c1e55be289 100644
--- a/server/src/core/@generated/user/user-update-without-workspace-member.input.ts
+++ b/server/src/core/@generated/user/user-update-without-workspace-member.input.ts
@@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
+import { CommentThreadUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-update-many-without-author-nested.input';
@InputType()
export class UserUpdateWithoutWorkspaceMemberInput {
@@ -70,4 +71,7 @@ export class UserUpdateWithoutWorkspaceMemberInput {
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true})
comments?: CommentUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
}
diff --git a/server/src/core/@generated/user/user-update.input.ts b/server/src/core/@generated/user/user-update.input.ts
index f2f7897920f..2f8f2ef0254 100644
--- a/server/src/core/@generated/user/user-update.input.ts
+++ b/server/src/core/@generated/user/user-update.input.ts
@@ -12,6 +12,7 @@ import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-mem
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
+import { CommentThreadUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-update-many-without-author-nested.input';
@InputType()
export class UserUpdateInput {
@@ -74,4 +75,7 @@ export class UserUpdateInput {
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true})
comments?: CommentUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
}
diff --git a/server/src/core/@generated/user/user-upsert-without-comment-thread.input.ts b/server/src/core/@generated/user/user-upsert-without-comment-thread.input.ts
new file mode 100644
index 00000000000..5845fa9129f
--- /dev/null
+++ b/server/src/core/@generated/user/user-upsert-without-comment-thread.input.ts
@@ -0,0 +1,17 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { UserUpdateWithoutCommentThreadInput } from './user-update-without-comment-thread.input';
+import { Type } from 'class-transformer';
+import { UserCreateWithoutCommentThreadInput } from './user-create-without-comment-thread.input';
+
+@InputType()
+export class UserUpsertWithoutCommentThreadInput {
+
+ @Field(() => UserUpdateWithoutCommentThreadInput, {nullable:false})
+ @Type(() => UserUpdateWithoutCommentThreadInput)
+ update!: UserUpdateWithoutCommentThreadInput;
+
+ @Field(() => UserCreateWithoutCommentThreadInput, {nullable:false})
+ @Type(() => UserCreateWithoutCommentThreadInput)
+ create!: UserCreateWithoutCommentThreadInput;
+}
diff --git a/server/src/core/@generated/user/user-where.input.ts b/server/src/core/@generated/user/user-where.input.ts
index c7eae991f44..f1896e7a240 100644
--- a/server/src/core/@generated/user/user-where.input.ts
+++ b/server/src/core/@generated/user/user-where.input.ts
@@ -11,6 +11,7 @@ import { WorkspaceMemberRelationFilter } from '../workspace-member/workspace-mem
import { CompanyListRelationFilter } from '../company/company-list-relation-filter.input';
import { RefreshTokenListRelationFilter } from '../refresh-token/refresh-token-list-relation-filter.input';
import { CommentListRelationFilter } from '../comment/comment-list-relation-filter.input';
+import { CommentThreadListRelationFilter } from '../comment-thread/comment-thread-list-relation-filter.input';
@InputType()
export class UserWhereInput {
@@ -80,4 +81,7 @@ export class UserWhereInput {
@Field(() => CommentListRelationFilter, {nullable:true})
comments?: CommentListRelationFilter;
+
+ @Field(() => CommentThreadListRelationFilter, {nullable:true})
+ CommentThread?: CommentThreadListRelationFilter;
}
diff --git a/server/src/core/@generated/user/user.model.ts b/server/src/core/@generated/user/user.model.ts
index 9441f85ed4d..b003a1fc0d5 100644
--- a/server/src/core/@generated/user/user.model.ts
+++ b/server/src/core/@generated/user/user.model.ts
@@ -7,6 +7,7 @@ import { WorkspaceMember } from '../workspace-member/workspace-member.model';
import { Company } from '../company/company.model';
import { RefreshToken } from '../refresh-token/refresh-token.model';
import { Comment } from '../comment/comment.model';
+import { CommentThread } from '../comment-thread/comment-thread.model';
import { UserCount } from './user-count.output';
@ObjectType()
@@ -69,6 +70,9 @@ export class User {
@Field(() => [Comment], {nullable:true})
comments?: Array<Comment>;
+ @Field(() => [CommentThread], {nullable:true})
+ CommentThread?: Array<CommentThread>;
+
@HideField()
_count?: UserCount;
}
diff --git a/server/src/core/comment/resolvers/comment-thread.resolver.ts b/server/src/core/comment/resolvers/comment-thread.resolver.ts
index 5c36029d276..f93939f47c4 100644
--- a/server/src/core/comment/resolvers/comment-thread.resolver.ts
+++ b/server/src/core/comment/resolvers/comment-thread.resolver.ts
@@ -45,21 +45,13 @@ export class CommentThreadResolver {
@PrismaSelector({ modelName: 'CommentThread' })
prismaSelect: PrismaSelect<'CommentThread'>,
): Promise<Partial<CommentThread>> {
- const newCommentData = args.data.comments?.createMany?.data
- ? args.data.comments?.createMany?.data?.map((comment) => ({
- ...comment,
- ...{ workspaceId: workspace.id },
- }))
- : [];
-
const createdCommentThread = await this.commentThreadService.create({
data: {
...args.data,
- ...{ comments: { createMany: { data: newCommentData } } },
...{ workspace: { connect: { id: workspace.id } } },
},
select: prismaSelect.value,
- });
+ } as Prisma.CommentThreadCreateArgs);
return createdCommentThread;
}
diff --git a/server/src/core/company/company-relations.resolver.ts b/server/src/core/company/company-relations.resolver.ts
index 3f38af17cee..5f84259647b 100644
--- a/server/src/core/company/company-relations.resolver.ts
+++ b/server/src/core/company/company-relations.resolver.ts
@@ -63,15 +63,13 @@ export class CompanyRelationsResolver {
@ResolveField(() => Int, {
nullable: false,
})
- async _commentCount(@Root() company: Company): Promise<number> {
- return this.commentService.count({
+ async _commentThreadCount(@Root() company: Company): Promise<number> {
+ return this.commentThreadService.count({
where: {
- commentThread: {
- commentThreadTargets: {
- some: {
- commentableId: company.id,
- commentableType: 'Company',
- },
+ commentThreadTargets: {
+ some: {
+ commentableId: company.id,
+ commentableType: 'Company',
},
},
},
diff --git a/server/src/core/company/company.resolver.ts b/server/src/core/company/company.resolver.ts
index b000a6c571c..0de30df7d25 100644
--- a/server/src/core/company/company.resolver.ts
+++ b/server/src/core/company/company.resolver.ts
@@ -58,6 +58,23 @@ export class CompanyResolver {
});
}
+ @Query(() => Company)
+ @UseGuards(AbilityGuard)
+ @CheckAbilities(ReadCompanyAbilityHandler)
+ async findUniqueCompany(
+ @Args('id') id: string,
+ @UserAbility() ability: AppAbility,
+ @PrismaSelector({ modelName: 'Company' })
+ prismaSelect: PrismaSelect<'Company'>,
+ ): Promise<Partial<Company>> {
+ return this.companyService.findUniqueOrThrow({
+ where: {
+ id: id,
+ },
+ select: prismaSelect.value,
+ });
+ }
+
@UseGuards(UpdateOneGuard)
@Mutation(() => Company, {
nullable: true,
diff --git a/server/src/core/person/person-relations.resolver.ts b/server/src/core/person/person-relations.resolver.ts
index 5681e2d8670..0e9e0e2c150 100644
--- a/server/src/core/person/person-relations.resolver.ts
+++ b/server/src/core/person/person-relations.resolver.ts
@@ -63,15 +63,13 @@ export class PersonRelationsResolver {
@ResolveField(() => Int, {
nullable: false,
})
- async _commentCount(@Root() person: Person): Promise<number> {
- return this.commentService.count({
+ async _commentThreadCount(@Root() person: Person): Promise<number> {
+ return this.commentThreadService.count({
where: {
- commentThread: {
- commentThreadTargets: {
- some: {
- commentableId: person.id,
- commentableType: 'Person',
- },
+ commentThreadTargets: {
+ some: {
+ commentableId: person.id,
+ commentableType: 'Person',
},
},
},
diff --git a/server/src/core/person/person.resolver.ts b/server/src/core/person/person.resolver.ts
index 94e8cff2542..bfbb96c6787 100644
--- a/server/src/core/person/person.resolver.ts
+++ b/server/src/core/person/person.resolver.ts
@@ -1,4 +1,11 @@
-import { Resolver, Query, Args, Mutation } from '@nestjs/graphql';
+import {
+ Resolver,
+ Query,
+ Args,
+ Mutation,
+ ResolveField,
+ Parent,
+} from '@nestjs/graphql';
import { UseGuards } from '@nestjs/common';
import { JwtAuthGuard } from 'src/guards/jwt.auth.guard';
import { Person } from '../../core/@generated/person/person.model';
@@ -61,6 +68,30 @@ export class PersonResolver {
});
}
+ @Query(() => Person)
+ @UseGuards(AbilityGuard)
+ @CheckAbilities(ReadPersonAbilityHandler)
+ async findUniquePerson(
+ @Args('id') id: string,
+ @UserAbility() ability: AppAbility,
+ @PrismaSelector({ modelName: 'Person' })
+ prismaSelect: PrismaSelect<'Person'>,
+ ): Promise<Partial<Person>> {
+ return this.personService.findUniqueOrThrow({
+ where: {
+ id: id,
+ },
+ select: prismaSelect.value,
+ });
+ }
+
+ @ResolveField(() => String, {
+ nullable: false,
+ })
+ displayName(@Parent() parent: Person): string {
+ return `${parent.firstName ?? ''} ${parent.lastName ?? ''}`;
+ }
+
@UseGuards(UpdateOneGuard)
@Mutation(() => Person, {
nullable: true,
diff --git a/server/src/database/migrations/20230706072223_add_body_title_author_fields_to_comment_threads/migration.sql b/server/src/database/migrations/20230706072223_add_body_title_author_fields_to_comment_threads/migration.sql
new file mode 100644
index 00000000000..2e333f05eb6
--- /dev/null
+++ b/server/src/database/migrations/20230706072223_add_body_title_author_fields_to_comment_threads/migration.sql
@@ -0,0 +1,15 @@
+-- AlterTable
+ALTER TABLE "comment_threads" ADD COLUMN "body" TEXT,
+ADD COLUMN "title" TEXT,
+ADD COLUMN "authorId" TEXT;
+
+
+-- Update field with a random user if some rows already exist...
+UPDATE "comment_threads"
+SET "authorId" = (SELECT id FROM users LIMIT 1);
+
+
+ALTER TABLE "comment_threads"
+ALTER COLUMN "authorId" SET NOT NULL;
+
+ALTER TABLE "comment_threads" ADD CONSTRAINT "comment_threads_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "users"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
diff --git a/server/src/database/schema.prisma b/server/src/database/schema.prisma
index 38c31306e1f..602caa385b0 100644
--- a/server/src/database/schema.prisma
+++ b/server/src/database/schema.prisma
@@ -175,8 +175,9 @@ model User {
/// @TypeGraphQL.omit(input: true, output: true)
deletedAt DateTime?
- createdAt DateTime @default(now())
- updatedAt DateTime @updatedAt
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ CommentThread CommentThread[]
@@map("users")
}
@@ -332,6 +333,12 @@ model CommentThread {
/// @TypeGraphQL.omit(input: true, output: true)
workspaceId String
+ authorId String
+ author User @relation(fields: [authorId], references: [id])
+
+ body String?
+ title String?
+
/// @TypeGraphQL.omit(input: true, output: true)
deletedAt DateTime?
diff --git a/server/src/database/seeds/comments.ts b/server/src/database/seeds/comments.ts
index 73ec7cf2926..18cfe3522a7 100644
--- a/server/src/database/seeds/comments.ts
+++ b/server/src/database/seeds/comments.ts
@@ -6,6 +6,9 @@ export const seedComments = async (prisma: PrismaClient) => {
create: {
id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb400',
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
+ title: 'Performance update',
+ body: '[{"id":"555df0c3-ab88-4c62-abae-c9b557c37c5b","type":"paragraph","props":{"textColor":"default","backgroundColor":"default","textAlignment":"left"},"content":[{"type":"text","text":"In the North American region, we have observed a strong growth rate of 18% in sales. Europe followed suit with a significant 14% increase, while Asia-Pacific sustained its performance with a steady 10% rise. Special kudos to the North American team for the excellent work done in penetrating new markets and establishing stronger footholds in the existing ones.","styles":{}}],"children":[]},{"id":"13530934-b3ce-4332-9238-3760aa4acb3e","type":"paragraph","props":{"textColor":"default","backgroundColor":"default","textAlignment":"left"},"content":[],"children":[]}]',
+ authorId: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfa408',
},
});
@@ -50,6 +53,9 @@ export const seedComments = async (prisma: PrismaClient) => {
create: {
id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfc408',
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
+ title: 'Buyout Proposal',
+ body: '[{"id":"333df0c3-ab88-4c62-abae-c9b557c37c5b","type":"paragraph","props":{"textColor":"default","backgroundColor":"default","textAlignment":"left"},"content":[{"type":"text","text":"We are considering the potential acquisition of [Company], a leading company in [Industry/Specific Technology]. This company has demonstrated remarkable success and pioneering advancements in their field, paralleling our own commitment to progress. By integrating their expertise with our own, we believe that we can amplify our growth, broaden our offerings, and fortify our position at the forefront of technology. This prospective partnership could help to ensure our continued leadership in the industry and allow us to deliver even more innovative solutions for our customers.","styles":{}}],"children":[]},{"id":"13530934-b3ce-4332-9238-3760aa4acb3e","type":"paragraph","props":{"textColor":"default","backgroundColor":"default","textAlignment":"left"},"content":[],"children":[]}]',
+ authorId: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfa408',
},
});
@@ -82,6 +88,9 @@ export const seedComments = async (prisma: PrismaClient) => {
create: {
id: 'twenty-dev-fe256b39-3ec3-4fe3-8997-b76aaabfb408',
workspaceId: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420',
+ title: 'Call summary',
+ body: '[{"id":"555df0c3-ab88-4c62-abae-c9b557c37c5b","type":"paragraph","props":{"textColor":"default","backgroundColor":"default","textAlignment":"left"},"content":[{"type":"text","text":"Valuation & Due Diligence: The CFO highlighted the financial implications, pointing out that the acquisition will be accretive to earnings. The M&A team has been directed to commence due diligence and work closely with legal counsel to assess all aspects of the acquisition.","styles":{}}],"children":[]},{"id":"13530934-b3ce-4332-9238-3760aa4acb3e","type":"paragraph","props":{"textColor":"default","backgroundColor":"default","textAlignment":"left"},"content":[],"children":[]}]',
+ authorId: 'twenty-dev-gk256b39-3ec3-4fe3-8997-b76aa0boa408',
},
});
diff --git a/server/src/guards/show-one.guard.ts b/server/src/guards/show-one.guard.ts
new file mode 100644
index 00000000000..ef597c60db0
--- /dev/null
+++ b/server/src/guards/show-one.guard.ts
@@ -0,0 +1,12 @@
+import { CanActivate, Injectable } from '@nestjs/common';
+import { PrismaService } from 'src/database/prisma.service';
+
+@Injectable()
+export class ShowOneGuard implements CanActivate {
+ constructor(private prismaService: PrismaService) {}
+
+ async canActivate(): Promise<boolean> {
+ // TODO
+ return true;
+ }
+}