Skip to content

The open alternative to Salesforce, designed for AI.

Replace the BlockNote editor with TipTap in the app (#28487)

neo773a929fc52aa3d
diff --git a/packages/twenty-e2e-testing/tests/create-kanban-view.spec.ts b/packages/twenty-e2e-testing/tests/create-kanban-view.spec.ts
index 7b03d866db7..b7bf3b75595 100644
--- a/packages/twenty-e2e-testing/tests/create-kanban-view.spec.ts
+++ b/packages/twenty-e2e-testing/tests/create-kanban-view.spec.ts
@@ -1,8 +1,8 @@
import { expect, test } from '../lib/fixtures/screenshot';
test.describe.serial('Create Kanban View', () => {
-// Unique per run: serial-group retries re-create the field, and a duplicate label blocks the form.
-const industryLabel = `Industry ${Date.now()}`;
-test('Create Industry Select Field', async ({ page }) => {
+ // Unique per run: serial-group retries re-create the field, and a duplicate label blocks the form.
+ const industryLabel = `Industry ${Date.now()}`;
+ test('Create Industry Select Field', async ({ page }) => {
await page.getByRole('button', { name: 'Settings', exact: true }).click();
await page.getByRole('link', { name: 'Data model' }).click();
await page.getByRole('link', { name: 'Opportunities' }).click();
@@ -15,47 +15,56 @@ test('Create Industry Select Field', async ({ page }) => {
await page.getByRole('textbox').nth(1).press('ControlOrMeta+a');
await page.getByRole('textbox').nth(1).fill('Food');
await page.getByRole('button', { name: 'Add option' }).click();
- await page.getByRole('button', { name: 'Option 2' }).getByRole('textbox').fill('Tech');
+ await page
+ .getByRole('button', { name: 'Option 2' })
+ .getByRole('textbox')
+ .fill('Tech');
await page.getByRole('button', { name: 'Add option' }).click();
- await page.getByRole('button', { name: 'Option 3' }).getByRole('textbox').fill('Travel');
+ await page
+ .getByRole('button', { name: 'Option 3' })
+ .getByRole('textbox')
+ .fill('Travel');
await page.getByRole('button', { name: 'Save' }).click();
await page.waitForURL('**/objects/opportunities');
await page.waitForSelector(`text=${industryLabel}`);
await expect(page.getByText(industryLabel)).toBeVisible();
-});
+ });
-test('Create Kanban View from Industry Select Field', async ({ page }) => {
- await page.getByRole('link', { name: 'Opportunities' }).click();
- await page.getByRole('button', { name: /By Stage/ }).click();
- await page.getByText('Add view').click();
- await page.getByRole('textbox').press('ControlOrMeta+a');
- await page.getByRole('textbox').fill('By industry');
- await page
- .getByText('Stages', { exact: true })
- .locator('xpath=..')
- .getByRole('button')
- .click();
- await page
- .getByRole('dialog', { name: 'Stages' })
- .getByRole('option', { name: industryLabel })
- .click();
- await page.getByRole('button', { name: 'Create new view' }).click();
- await expect(page.getByText('Food')).toBeVisible({ timeout: 30000 });
- await expect(page.getByText('Tech')).toBeVisible();
- await expect(page.getByText('Travel')).toBeVisible();
- await expect(page.getByText('No Value')).toBeVisible();
- const byIndustryElements = await page.locator('text=By industry').all();
- expect(byIndustryElements.length).toBeGreaterThanOrEqual(1);
- for (const element of byIndustryElements) {
- await expect(element).toBeVisible();
- }
- await page.getByText('Options').click();
- await page.getByText('Group', { exact: true }).click();
- await Promise.all([page.getByTestId('hide-group-').click(),
- page.waitForRequest((req) => {
- return req.url().includes('/metadata') &&
- req.method() === 'POST';
- })]);
- await expect(page.getByText('No Value')).not.toBeVisible();
+ test('Create Kanban View from Industry Select Field', async ({ page }) => {
+ await page.getByRole('link', { name: 'Opportunities' }).click();
+ await page.getByRole('button', { name: /By Stage/ }).click();
+ await page.getByText('Add view').click();
+ await page.getByRole('textbox').press('ControlOrMeta+a');
+ await page.getByRole('textbox').fill('By industry');
+ await page
+ .getByText('Stages', { exact: true })
+ .locator('xpath=..')
+ .getByRole('button')
+ .click();
+ await page
+ .getByRole('dialog', { name: 'Stages' })
+ .getByRole('option', { name: industryLabel })
+ .click();
+ await page.getByRole('button', { name: 'Create new view' }).click();
+ await expect(page.getByText('Food')).toBeVisible({ timeout: 30000 });
+ await expect(page.getByText('Tech')).toBeVisible();
+ await expect(page.getByText('Travel')).toBeVisible();
+ await expect(page.getByText('No Value')).toBeVisible();
+ const byIndustryElements = await page.locator('text=By industry').all();
+ expect(byIndustryElements.length).toBeGreaterThanOrEqual(1);
+ for (const element of byIndustryElements) {
+ await expect(element).toBeVisible();
+ }
+ await page.getByText('Options').click();
+ await page.getByText('Group', { exact: true }).click();
+ await Promise.all([
+ page.getByTestId('hide-group-').click(),
+ page.waitForRequest((request) => {
+ return (
+ request.url().includes('/metadata') && request.method() === 'POST'
+ );
+ }),
+ ]);
+ await expect(page.getByText('No Value')).not.toBeVisible();
+ });
});
-})
diff --git a/packages/twenty-e2e-testing/tests/create-record.spec.ts b/packages/twenty-e2e-testing/tests/create-record.spec.ts
index d6c16f305fe..2882f326249 100644
--- a/packages/twenty-e2e-testing/tests/create-record.spec.ts
+++ b/packages/twenty-e2e-testing/tests/create-record.spec.ts
@@ -112,7 +112,9 @@ test('Create and update record', async ({ page }) => {
await page.getByPlaceholder('Intro').press('Enter');
await recordFieldList.getByText('Linkedin', { exact: true }).first().click();
- const urlInput = recordFieldList.getByText('Linkedin', { exact: true }).nth(1);
+ const urlInput = recordFieldList
+ .getByText('Linkedin', { exact: true })
+ .nth(1);
await expect(urlInput).toBeVisible();
await urlInput.click({ force: true });
await page.getByPlaceholder('URL').fill('linkedin.com/johndoe');
@@ -126,7 +128,9 @@ test('Create and update record', async ({ page }) => {
await ratingContainer.locator('svg').nth(3).click({ force: true });
await recordFieldList.getByText('Phones', { exact: true }).first().click();
- const phoneInput = recordFieldList.getByText('Phones', { exact: true }).nth(1);
+ const phoneInput = recordFieldList
+ .getByText('Phones', { exact: true })
+ .nth(1);
await expect(phoneInput).toBeVisible();
await phoneInput.click({ force: true });
await page.getByPlaceholder('Phone').fill('+336 1 122 3344');
diff --git a/packages/twenty-front/package.json b/packages/twenty-front/package.json
index 922afec181f..5e989b4c4e5 100644
--- a/packages/twenty-front/package.json
+++ b/packages/twenty-front/package.json
@@ -30,8 +30,6 @@
},
"dependencies": {
"@apollo/client": "^4.0.0",
- "@blocknote/mantine": "^0.51.4",
- "@blocknote/react": "^0.51.4",
"@calcom/embed-react": "^1.5.3",
"@cyntler/react-doc-viewer": "^1.17.0",
"@dagrejs/dagre": "^1.1.8",
@@ -48,8 +46,6 @@
"@lingui/core": "^5.9.5",
"@lingui/detect-locale": "^5.9.5",
"@lingui/react": "^5.9.5",
- "@mantine/core": "^8.3.11",
- "@mantine/hooks": "^8.3.11",
"@monaco-editor/react": "^4.7.0",
"@nivo/core": "^0.99.0",
"@nivo/line": "^0.99.0",
@@ -61,10 +57,13 @@
"@stripe/stripe-js": "^9.8.0",
"@tiptap/core": "3.30.5",
"@tiptap/extension-bold": "3.30.5",
+ "@tiptap/extension-code": "3.30.5",
+ "@tiptap/extension-code-block": "3.30.5",
"@tiptap/extension-collaboration": "3.30.5",
"@tiptap/extension-document": "3.30.5",
"@tiptap/extension-drag-handle": "patch:@tiptap/extension-drag-handle@npm%3A3.30.5#~/.yarn/patches/@tiptap-extension-drag-handle-npm-3.30.5-e53a22740d.patch",
"@tiptap/extension-drag-handle-react": "3.30.5",
+ "@tiptap/extension-file-handler": "3.30.5",
"@tiptap/extension-hard-break": "3.30.5",
"@tiptap/extension-heading": "3.30.5",
"@tiptap/extension-image": "3.30.5",
@@ -74,9 +73,13 @@
"@tiptap/extension-node-range": "3.30.5",
"@tiptap/extension-paragraph": "3.30.5",
"@tiptap/extension-strike": "3.30.5",
+ "@tiptap/extension-table": "3.30.5",
"@tiptap/extension-text": "3.30.5",
+ "@tiptap/extension-text-align": "3.30.5",
+ "@tiptap/extension-text-style": "3.30.5",
"@tiptap/extension-underline": "3.30.5",
"@tiptap/extensions": "3.30.5",
+ "@tiptap/pm": "3.30.5",
"@tiptap/react": "3.30.5",
"@tiptap/y-tiptap": "^3.0.7",
"@xyflow/react": "^12.4.2",
@@ -145,6 +148,8 @@
"use-debounce": "^10.0.0",
"uuid": "^11.1.1",
"xlsx-ugnis": "^0.19.3",
+ "y-protocols": "^1.0.6",
+ "yjs": "^13.6.27",
"zod": "^4.1.11"
},
"devDependencies": {
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 7e6e9a7f5d3..166fb9bc0f6 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -9257,7 +9257,7 @@ export type PageLayoutFragmentFragment = { __typename?: 'PageLayout', id: string
| { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, numberFormat?: ChartNumberFormat | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null }
| { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, recordLimit?: number | null, isUIEditable?: boolean | null }
- | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } }
+ | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null, tiptap?: string | null } }
| { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType }
@@ -9293,7 +9293,7 @@ export type PageLayoutTabFragmentFragment = { __typename?: 'PageLayoutTab', id:
| { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, numberFormat?: ChartNumberFormat | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null }
| { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, recordLimit?: number | null, isUIEditable?: boolean | null }
- | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } }
+ | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null, tiptap?: string | null } }
| { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType }
@@ -9341,7 +9341,7 @@ export type FindOnePageLayoutQuery = { __typename?: 'Query', getPageLayout?: { _
| { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, numberFormat?: ChartNumberFormat | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null }
| { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, recordLimit?: number | null, isUIEditable?: boolean | null }
- | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } }
+ | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null, tiptap?: string | null } }
| { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType }
@@ -9778,7 +9778,7 @@ export type PageLayoutWidgetFragmentFragment = { __typename?: 'PageLayoutWidget'
| { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, numberFormat?: ChartNumberFormat | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null }
| { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, recordLimit?: number | null, isUIEditable?: boolean | null }
- | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } }
+ | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null, tiptap?: string | null } }
| { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType }
@@ -9819,7 +9819,7 @@ export type ResetPageLayoutTabToDefaultMutation = { __typename?: 'Mutation', res
| { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, numberFormat?: ChartNumberFormat | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null }
| { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, recordLimit?: number | null, isUIEditable?: boolean | null }
- | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } }
+ | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null, tiptap?: string | null } }
| { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType }
@@ -9860,7 +9860,7 @@ export type ResetPageLayoutToDefaultMutation = { __typename?: 'Mutation', resetP
| { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, numberFormat?: ChartNumberFormat | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null }
| { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, recordLimit?: number | null, isUIEditable?: boolean | null }
- | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } }
+ | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null, tiptap?: string | null } }
| { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType }
@@ -9901,7 +9901,7 @@ export type ResetPageLayoutWidgetToDefaultMutation = { __typename?: 'Mutation',
| { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, numberFormat?: ChartNumberFormat | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null }
| { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, recordLimit?: number | null, isUIEditable?: boolean | null }
- | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } }
+ | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null, tiptap?: string | null } }
| { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType }
@@ -9955,7 +9955,7 @@ export type UpdatePageLayoutWithTabsAndWidgetsMutation = { __typename?: 'Mutatio
| { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, numberFormat?: ChartNumberFormat | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null }
| { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, recordLimit?: number | null, isUIEditable?: boolean | null }
- | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } }
+ | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null, tiptap?: string | null } }
| { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType }
@@ -10008,7 +10008,7 @@ export type FindAllRecordFormPageLayoutsQuery = { __typename?: 'Query', getPageL
| { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, numberFormat?: ChartNumberFormat | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null }
| { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, recordLimit?: number | null, isUIEditable?: boolean | null }
- | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } }
+ | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null, tiptap?: string | null } }
| { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType }
@@ -10047,7 +10047,7 @@ export type FindAllRecordPageLayoutsQuery = { __typename?: 'Query', getPageLayou
| { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, numberFormat?: ChartNumberFormat | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null }
| { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, recordLimit?: number | null, isUIEditable?: boolean | null }
- | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } }
+ | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null, tiptap?: string | null } }
| { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType }
| { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType }
@@ -11325,9 +11325,9 @@ export const AuthTokenFragmentFragmentDoc = {"kind":"Document","definitions":[{"
export const AuthTokenPairFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenPairFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthTokenPair"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessOrWorkspaceAgnosticToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AuthTokenFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"refreshToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AuthTokenFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthToken"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]} as unknown as DocumentNode<AuthTokenPairFragmentFragment, unknown>;
export const AvailableSsoIdentityProvidersFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableSSOIdentityProvidersFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FindAvailableSSOIDP"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"workspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}}]}}]}}]} as unknown as DocumentNode<AvailableSsoIdentityProvidersFragmentFragment, unknown>;
export const CommandMenuItemFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommandMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommandMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"coreWorkflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"workflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}}]}},{"kind":"Field","name":{"kind":"Name","value":"engineComponentKey"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"payload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PathCommandMenuItemPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"path"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"hotKeys"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalPinnedExpression"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"navigationTargetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}}]}}]} as unknown as DocumentNode<CommandMenuItemFieldsFragment, unknown>;
-export const PageLayoutWidgetFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutWidgetFragmentFragment, unknown>;
-export const PageLayoutTabFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutTabFragmentFragment, unknown>;
-export const PageLayoutFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<PageLayoutFragmentFragment, unknown>;
+export const PageLayoutWidgetFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"tiptap"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutWidgetFragmentFragment, unknown>;
+export const PageLayoutTabFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"tiptap"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutTabFragmentFragment, unknown>;
+export const PageLayoutFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"tiptap"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<PageLayoutFragmentFragment, unknown>;
export const MarketplaceAppDetailFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"isVetted"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"aboutDescription"}},{"kind":"Field","name":{"kind":"Name","value":"pricingDescription"}},{"kind":"Field","name":{"kind":"Name","value":"termsUrl"}},{"kind":"Field","name":{"kind":"Name","value":"emailSupport"}},{"kind":"Field","name":{"kind":"Name","value":"issueReportUrl"}},{"kind":"Field","name":{"kind":"Name","value":"galleryImages"}},{"kind":"Field","name":{"kind":"Name","value":"installCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"requestedCapabilities"}},{"kind":"Field","name":{"kind":"Name","value":"billsCredits"}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlagUniversalIdentifiers"}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"fieldUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}}]}}]}}]}}]} as unknown as DocumentNode<MarketplaceAppDetailFieldsFragment, unknown>;
export const MarketplaceAppFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceApp"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"isVetted"}}]}}]} as unknown as DocumentNode<MarketplaceAppFieldsFragment, unknown>;
export const NavigationMenuItemFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"agentChatChannelId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<NavigationMenuItemFieldsFragment, unknown>;
@@ -11463,7 +11463,7 @@ export const TriggerAddPeopleToMessageListJobDocument = {"kind":"Document","defi
export const UpdateCommandMenuItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCommandMenuItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateCommandMenuItemInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCommandMenuItem"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommandMenuItemFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommandMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommandMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"coreWorkflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"workflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}}]}},{"kind":"Field","name":{"kind":"Name","value":"engineComponentKey"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"payload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PathCommandMenuItemPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"path"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"hotKeys"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalPinnedExpression"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"navigationTargetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}}]}}]} as unknown as DocumentNode<UpdateCommandMenuItemMutation, UpdateCommandMenuItemMutationVariables>;
export const FindManyCommandMenuItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyCommandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommandMenuItemFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommandMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommandMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"coreWorkflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"workflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}}]}},{"kind":"Field","name":{"kind":"Name","value":"engineComponentKey"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"payload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PathCommandMenuItemPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"path"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"hotKeys"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalPinnedExpression"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"navigationTargetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}}]}}]} as unknown as DocumentNode<FindManyCommandMenuItemsQuery, FindManyCommandMenuItemsQueryVariables>;
export const DuplicateDashboardDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DuplicateDashboard"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"duplicateDashboard"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<DuplicateDashboardMutation, DuplicateDashboardMutationVariables>;
-export const FindOnePageLayoutDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOnePageLayout"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayout"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindOnePageLayoutQuery, FindOnePageLayoutQueryVariables>;
+export const FindOnePageLayoutDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOnePageLayout"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayout"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"tiptap"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindOnePageLayoutQuery, FindOnePageLayoutQueryVariables>;
export const FindOnePageLayoutTypeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOnePageLayoutType"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayout"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]} as unknown as DocumentNode<FindOnePageLayoutTypeQuery, FindOnePageLayoutTypeQueryVariables>;
export const CompleteFileUploadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CompleteFileUpload"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fileId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"completeFileUpload"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fileId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fileId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]} as unknown as DocumentNode<CompleteFileUploadMutation, CompleteFileUploadMutationVariables>;
export const CreateFileUploadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateFileUpload"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filename"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"size"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fileFolder"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"FileFolder"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldMetadataId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createFileUpload"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filename"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filename"}}},{"kind":"Argument","name":{"kind":"Name","value":"size"},"value":{"kind":"Variable","name":{"kind":"Name","value":"size"}}},{"kind":"Argument","name":{"kind":"Name","value":"fileFolder"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fileFolder"}}},{"kind":"Argument","name":{"kind":"Name","value":"fieldMetadataId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldMetadataId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fileId"}},{"kind":"Field","name":{"kind":"Name","value":"uploadUrl"}},{"kind":"Field","name":{"kind":"Name","value":"contentType"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]}}]} as unknown as DocumentNode<CreateFileUploadMutation, CreateFileUploadMutationVariables>;
@@ -11520,15 +11520,15 @@ export const GoBackToPreviousOnboardingStepDocument = {"kind":"Document","defini
export const SkipSyncEmailOnboardingStepDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SkipSyncEmailOnboardingStep"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"isAutoSkipped"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"skipSyncEmailOnboardingStep"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"isAutoSkipped"},"value":{"kind":"Variable","name":{"kind":"Name","value":"isAutoSkipped"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode<SkipSyncEmailOnboardingStepMutation, SkipSyncEmailOnboardingStepMutationVariables>;
export const StartWorkspaceSetupChatDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"StartWorkspaceSetupChat"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"companyContext"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"personContext"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startWorkspaceSetupChat"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"companyContext"},"value":{"kind":"Variable","name":{"kind":"Name","value":"companyContext"}}},{"kind":"Argument","name":{"kind":"Name","value":"personContext"},"value":{"kind":"Variable","name":{"kind":"Name","value":"personContext"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"outcome"}},{"kind":"Field","name":{"kind":"Name","value":"thread"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"totalCacheReadTokens"}},{"kind":"Field","name":{"kind":"Name","value":"totalInputTokens"}},{"kind":"Field","name":{"kind":"Name","value":"totalOutputTokens"}},{"kind":"Field","name":{"kind":"Name","value":"contextWindowTokens"}},{"kind":"Field","name":{"kind":"Name","value":"conversationSize"}},{"kind":"Field","name":{"kind":"Name","value":"totalInputCredits"}},{"kind":"Field","name":{"kind":"Name","value":"totalOutputCredits"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]}}]} as unknown as DocumentNode<StartWorkspaceSetupChatMutation, StartWorkspaceSetupChatMutationVariables>;
export const GetInviteSuggestionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetInviteSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getInviteSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}}]}}]}}]} as unknown as DocumentNode<GetInviteSuggestionsQuery, GetInviteSuggestionsQueryVariables>;
-export const ResetPageLayoutTabToDefaultDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ResetPageLayoutTabToDefault"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"resetPageLayoutTabToDefault"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ResetPageLayoutTabToDefaultMutation, ResetPageLayoutTabToDefaultMutationVariables>;
-export const ResetPageLayoutToDefaultDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ResetPageLayoutToDefault"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"resetPageLayoutToDefault"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<ResetPageLayoutToDefaultMutation, ResetPageLayoutToDefaultMutationVariables>;
-export const ResetPageLayoutWidgetToDefaultDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ResetPageLayoutWidgetToDefault"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"resetPageLayoutWidgetToDefault"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<ResetPageLayoutWidgetToDefaultMutation, ResetPageLayoutWidgetToDefaultMutationVariables>;
+export const ResetPageLayoutTabToDefaultDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ResetPageLayoutTabToDefault"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"resetPageLayoutTabToDefault"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"tiptap"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ResetPageLayoutTabToDefaultMutation, ResetPageLayoutTabToDefaultMutationVariables>;
+export const ResetPageLayoutToDefaultDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ResetPageLayoutToDefault"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"resetPageLayoutToDefault"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"tiptap"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<ResetPageLayoutToDefaultMutation, ResetPageLayoutToDefaultMutationVariables>;
+export const ResetPageLayoutWidgetToDefaultDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ResetPageLayoutWidgetToDefault"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"resetPageLayoutWidgetToDefault"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"tiptap"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<ResetPageLayoutWidgetToDefaultMutation, ResetPageLayoutWidgetToDefaultMutationVariables>;
export const UpdatePageLayoutWidgetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdatePageLayoutWidget"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdatePageLayoutWidgetInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updatePageLayoutWidget"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}}]}}]}}]} as unknown as DocumentNode<UpdatePageLayoutWidgetMutation, UpdatePageLayoutWidgetMutationVariables>;
-export const UpdatePageLayoutWithTabsAndWidgetsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdatePageLayoutWithTabsAndWidgets"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdatePageLayoutWithTabsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updatePageLayoutWithTabsAndWidgets"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdatePageLayoutWithTabsAndWidgetsMutation, UpdatePageLayoutWithTabsAndWidgetsMutationVariables>;
+export const UpdatePageLayoutWithTabsAndWidgetsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdatePageLayoutWithTabsAndWidgets"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdatePageLayoutWithTabsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updatePageLayoutWithTabsAndWidgets"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"tiptap"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdatePageLayoutWithTabsAndWidgetsMutation, UpdatePageLayoutWithTabsAndWidgetsMutationVariables>;
export const UpsertFieldsWidgetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertFieldsWidget"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpsertFieldsWidgetInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertFieldsWidget"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"relationTargetFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"View"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanColumnWidth"}},{"kind":"Field","name":{"kind":"Name","value":"groupLoadLimit"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarEndFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<UpsertFieldsWidgetMutation, UpsertFieldsWidgetMutationVariables>;
export const UpsertViewWidgetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertViewWidget"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpsertViewWidgetInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertViewWidget"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"relationTargetFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"View"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanColumnWidth"}},{"kind":"Field","name":{"kind":"Name","value":"groupLoadLimit"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarEndFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<UpsertViewWidgetMutation, UpsertViewWidgetMutationVariables>;
-export const FindAllRecordFormPageLayoutsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllRecordFormPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayouts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pageLayoutType"},"value":{"kind":"EnumValue","value":"RECORD_FORM"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindAllRecordFormPageLayoutsQuery, FindAllRecordFormPageLayoutsQueryVariables>;
-export const FindAllRecordPageLayoutsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllRecordPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayouts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pageLayoutType"},"value":{"kind":"EnumValue","value":"RECORD_PAGE"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindAllRecordPageLayoutsQuery, FindAllRecordPageLayoutsQueryVariables>;
+export const FindAllRecordFormPageLayoutsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllRecordFormPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayouts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pageLayoutType"},"value":{"kind":"EnumValue","value":"RECORD_FORM"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"tiptap"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindAllRecordFormPageLayoutsQuery, FindAllRecordFormPageLayoutsQueryVariables>;
+export const FindAllRecordPageLayoutsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllRecordPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayouts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pageLayoutType"},"value":{"kind":"EnumValue","value":"RECORD_PAGE"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"tiptap"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatThreadsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChatConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindAllRecordPageLayoutsQuery, FindAllRecordPageLayoutsQueryVariables>;
export const FindAllStandalonePageLayoutsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllStandalonePageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayouts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pageLayoutType"},"value":{"kind":"EnumValue","value":"STANDALONE_PAGE"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<FindAllStandalonePageLayoutsQuery, FindAllStandalonePageLayoutsQueryVariables>;
export const CallRecordingIdForCalendarEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CallRecordingIdForCalendarEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"calendarEventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"callRecordingIdForCalendarEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"calendarEventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"calendarEventId"}}}]}]}}]} as unknown as DocumentNode<CallRecordingIdForCalendarEventQuery, CallRecordingIdForCalendarEventQueryVariables>;
export const BarChartDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BarChartData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartDataInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"barChartData"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"indexBy"}},{"kind":"Field","name":{"kind":"Name","value":"keys"}},{"kind":"Field","name":{"kind":"Name","value":"series"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"xAxisLabel"}},{"kind":"Field","name":{"kind":"Name","value":"yAxisLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showLegend"}},{"kind":"Field","name":{"kind":"Name","value":"showDataLabels"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"hasTooManyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"formattedToRawLookup"}}]}}]}}]} as unknown as DocumentNode<BarChartDataQuery, BarChartDataQueryVariables>;
diff --git a/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx b/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx
index 8a64560452f..a9915818941 100644
--- a/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx
+++ b/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx
@@ -5,10 +5,9 @@ import { useUpsertActivity } from '@/activities/hooks/useUpsertActivity';
import { canCreateActivityState } from '@/activities/states/canCreateActivityState';
import { type Note } from '@/activities/types/Note';
import { type Task } from '@/activities/types/Task';
-import { type BLOCK_SCHEMA } from '@/blocknote-editor/blocks/Schema';
-import { BLOCK_EDITOR_GLOBAL_HOTKEYS_CONFIG } from '@/blocknote-editor/constants/BlockEditorGlobalHotkeysConfig';
import { useLabelIdentifierFieldMetadataItem } from '@/object-metadata/hooks/useLabelIdentifierFieldMetadataItem';
import { RichTextFieldEditor } from '@/object-record/record-field/ui/meta-types/input/components/RichTextFieldEditor';
+import { RICH_TEXT_FIELD_EDITOR_GLOBAL_HOTKEYS_CONFIG } from '@/object-record/record-field/ui/meta-types/input/constants/RichTextFieldEditorGlobalHotkeysConfig';
import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState';
import { isTitleCellInEditModeComponentState } from '@/object-record/record-title-cell/states/isTitleCellInEditModeComponentState';
import { RecordTitleCellContainerType } from '@/object-record/record-title-cell/types/RecordTitleCellContainerType';
@@ -17,6 +16,7 @@ import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePush
import { useRemoveFocusItemFromFocusStackById } from '@/ui/utilities/focus/hooks/useRemoveFocusItemFromFocusStackById';
import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType';
import { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';
+import { type Editor } from '@tiptap/core';
import { type CoreObjectNameSingular } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
@@ -34,7 +34,7 @@ export const ActivityRichTextEditor = ({
const store = useStore();
// oxlint-disable-next-line twenty/no-state-useref
- const editorRef = useRef<typeof BLOCK_SCHEMA.BlockNoteEditor | null>(null);
+ const editorRef = useRef<Editor | null>(null);
const { upsertActivity } = useUpsertActivity({
activityObjectNameSingular,
@@ -60,7 +60,7 @@ export const ActivityRichTextEditor = ({
});
const handlePersistBody = useCallback(
- (blocknote: string) => {
+ (tiptap: string) => {
if (!canCreateActivity) {
setCanCreateActivity(true);
}
@@ -73,7 +73,7 @@ export const ActivityRichTextEditor = ({
upsertActivity({
activity,
input: {
- bodyV2: { blocknote, markdown: null },
+ bodyV2: { blocknote: null, markdown: null, tiptap },
},
});
}
@@ -95,7 +95,7 @@ export const ActivityRichTextEditor = ({
);
if (isRecordTitleCellOpen) {
- editorRef.current?.domElement?.blur();
+ editorRef.current?.commands.blur();
return;
}
@@ -105,7 +105,7 @@ export const ActivityRichTextEditor = ({
type: FocusComponentType.ACTIVITY_RICH_TEXT_EDITOR,
},
focusId: activityId,
- globalHotkeysConfig: BLOCK_EDITOR_GLOBAL_HOTKEYS_CONFIG,
+ globalHotkeysConfig: RICH_TEXT_FIELD_EDITOR_GLOBAL_HOTKEYS_CONFIG,
});
}, [recordTitleCellId, activityId, pushFocusItemToFocusStack, store]);
diff --git a/packages/twenty-front/src/modules/blocknote-editor/hooks/useAttachmentSync.ts b/packages/twenty-front/src/modules/activities/files/hooks/useAttachmentSync.ts
similarity index 96%
rename from packages/twenty-front/src/modules/blocknote-editor/hooks/useAttachmentSync.ts
rename to packages/twenty-front/src/modules/activities/files/hooks/useAttachmentSync.ts
index 70da5a398cd..e37cbc59782 100644
--- a/packages/twenty-front/src/modules/blocknote-editor/hooks/useAttachmentSync.ts
+++ b/packages/twenty-front/src/modules/activities/files/hooks/useAttachmentSync.ts
@@ -40,12 +40,10 @@ export const useAttachmentSync = (attachments: Attachment[]) => {
) => {
if (!newBody) return;
- const previousBodyOrEmptyArray = previousBody?.trim() ? previousBody : '[]';
-
const attachmentIdsToDelete = getActivityAttachmentIdsToDelete(
newBody,
attachments,
- previousBodyOrEmptyArray,
+ previousBody ?? '',
);
if (attachmentIdsToDelete.length > 0) {
diff --git a/packages/twenty-front/src/modules/activities/hooks/__tests__/useActivities.test.tsx b/packages/twenty-front/src/modules/activities/hooks/__tests__/useActivities.test.tsx
index b2475a4e536..d1b31129fc7 100644
--- a/packages/twenty-front/src/modules/activities/hooks/__tests__/useActivities.test.tsx
+++ b/packages/twenty-front/src/modules/activities/hooks/__tests__/useActivities.test.tsx
@@ -30,8 +30,8 @@ const mockActivity = {
assigneeId: '1',
id: '234',
bodyV2: {
- blocknote: 'My Body',
markdown: 'My Body',
+ tiptap: null,
},
assignee: null,
} satisfies Task;
diff --git a/packages/twenty-front/src/modules/activities/hooks/__tests__/useCreateActivityInDB.test.tsx b/packages/twenty-front/src/modules/activities/hooks/__tests__/useCreateActivityInDB.test.tsx
index 31b114afe6c..cf7e0192d27 100644
--- a/packages/twenty-front/src/modules/activities/hooks/__tests__/useCreateActivityInDB.test.tsx
+++ b/packages/twenty-front/src/modules/activities/hooks/__tests__/useCreateActivityInDB.test.tsx
@@ -24,10 +24,12 @@ const mockedDate = '2024-03-15T12:00:00.000Z';
const toISOStringMock = jest.fn(() => mockedDate);
global.Date.prototype.toISOString = toISOStringMock;
-const { id, title, bodyV2, status, dueAt } = mockedTasks[0];
-const bodyV2WithoutTypename = isDefined(bodyV2)
- ? { blocknote: bodyV2.blocknote, markdown: bodyV2.markdown }
- : bodyV2;
+const { id, title, status, dueAt } = mockedTasks[0];
+const bodyV2 = {
+ markdown: null,
+ tiptap:
+ '{"type":"doc","attrs":{"schemaVersion":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Arrange a follow-up call"}]}]}',
+};
const mockedActivity = {
id,
title,
@@ -79,7 +81,7 @@ const mocks: MockedResponse[] = [
variables: {
input: {
...mockedActivity,
- bodyV2: bodyV2WithoutTypename,
+ bodyV2,
},
},
},
diff --git a/packages/twenty-front/src/modules/activities/notes/components/NoteTile.tsx b/packages/twenty-front/src/modules/activities/notes/components/NoteTile.tsx
index db051147369..01068031bf9 100644
--- a/packages/twenty-front/src/modules/activities/notes/components/NoteTile.tsx
+++ b/packages/twenty-front/src/modules/activities/notes/components/NoteTile.tsx
@@ -3,7 +3,6 @@ import { t } from '@lingui/core/macro';
import { useActivityFieldComponentInstanceId } from '@/activities/hooks/useActivityFieldComponentInstanceId';
import { type Note } from '@/activities/types/Note';
-import { getActivityPreview } from '@/activities/utils/getActivityPreview';
import { useObjectMorphJunctionConfigOrThrow } from '@/object-record/record-field/ui/hooks/useObjectMorphJunctionConfigOrThrow';
import { useOpenRecordInSidePanel } from '@/side-panel/hooks/useOpenRecordInSidePanel';
import { CoreObjectNameSingular } from 'twenty-shared/types';
@@ -11,6 +10,7 @@ import { FieldContextProvider } from '@/object-record/record-field/ui/components
import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext';
import { RecordInlineCell } from '@/object-record/record-inline-cell/components/RecordInlineCell';
import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFieldInputId';
+import { getRichTextFieldTextLines } from '@/object-record/record-field/ui/utils/getRichTextFieldTextLines';
import { themeCssVariables } from 'twenty-ui/theme';
const StyledCard = styled.div<{ isSingleNote: boolean }>`
@@ -76,7 +76,7 @@ export const NoteTile = ({
}) => {
const { openRecordInSidePanel } = useOpenRecordInSidePanel();
- const body = getActivityPreview(note?.bodyV2?.blocknote ?? null);
+ const body = getRichTextFieldTextLines(note?.bodyV2).join('\n');
const junctionFieldName = useObjectMorphJunctionConfigOrThrow({
objectNameSingular: CoreObjectNameSingular.Note,
diff --git a/packages/twenty-front/src/modules/activities/tasks/components/TaskRow.tsx b/packages/twenty-front/src/modules/activities/tasks/components/TaskRow.tsx
index d0d2a45a084..effbe4bbab8 100644
--- a/packages/twenty-front/src/modules/activities/tasks/components/TaskRow.tsx
+++ b/packages/twenty-front/src/modules/activities/tasks/components/TaskRow.tsx
@@ -3,7 +3,6 @@ import { t } from '@lingui/core/macro';
import { isNonEmptyString } from '@sniptt/guards';
import { LinkifiedText } from '@/ui/field/display/components/LinkifiedText/LinkifiedText';
-import { getActivitySummary } from '@/activities/utils/getActivitySummary';
import { beautifyExactDate, hasDatePassed } from '~/utils/date-utils';
import { ActivityRow } from '@/activities/components/ActivityRow';
@@ -17,6 +16,7 @@ import { RecordFieldComponentInstanceContext } from '@/object-record/record-fiel
import { RecordInlineCell } from '@/object-record/record-inline-cell/components/RecordInlineCell';
import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFieldInputId';
import { useOpenRecordInSidePanel } from '@/side-panel/hooks/useOpenRecordInSidePanel';
+import { getRichTextFieldTextLines } from '@/object-record/record-field/ui/utils/getRichTextFieldTextLines';
import { CoreObjectNameSingular } from 'twenty-shared/types';
import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';
import { IconCalendar } from 'twenty-ui/icon';
@@ -99,7 +99,7 @@ export const TaskRow = ({
const theme = useTheme();
const { openRecordInSidePanel } = useOpenRecordInSidePanel();
- const body = getActivitySummary(task?.bodyV2?.blocknote ?? null);
+ const body = getRichTextFieldTextLines(task?.bodyV2)[0] ?? '';
const { completeTask } = useCompleteTask(task);
diff --git a/packages/twenty-front/src/modules/activities/tasks/hooks/__tests__/useCompleteTask.test.tsx b/packages/twenty-front/src/modules/activities/tasks/hooks/__tests__/useCompleteTask.test.tsx
index 664c9582c1d..3c826a7e120 100644
--- a/packages/twenty-front/src/modules/activities/tasks/hooks/__tests__/useCompleteTask.test.tsx
+++ b/packages/twenty-front/src/modules/activities/tasks/hooks/__tests__/useCompleteTask.test.tsx
@@ -13,8 +13,8 @@ const task: Task = {
status: 'DONE',
title: 'Test',
bodyV2: {
- blocknote: 'Test',
markdown: 'Test',
+ tiptap: null,
},
dueAt: '2024-03-15T07:33:14.212Z',
createdAt: '2024-03-15T07:33:14.212Z',
@@ -48,8 +48,8 @@ const mocks: MockedResponse[] = [
assigneeId: '123',
attachments: { edges: [] },
bodyV2: {
- blocknote: 'Test',
markdown: 'Test',
+ tiptap: null,
},
createdAt: '2024-03-15T07:33:14.212Z',
createdBy: {
diff --git a/packages/twenty-front/src/modules/activities/types/Activity.ts b/packages/twenty-front/src/modules/activities/types/Activity.ts
index 052136a3f37..73548e35374 100644
--- a/packages/twenty-front/src/modules/activities/types/Activity.ts
+++ b/packages/twenty-front/src/modules/activities/types/Activity.ts
@@ -1,10 +1,9 @@
+import { type FieldRichTextValue } from '@/object-record/record-field/ui/types/FieldMetadata';
+
export type Activity = {
id: string;
createdAt: string;
updatedAt: string;
title: string;
- bodyV2?: {
- blocknote: string | null;
- markdown: string | null;
- };
+ bodyV2?: FieldRichTextValue;
};
diff --git a/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentIdsAndNameToUpdate.test.ts b/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentIdsAndNameToUpdate.test.ts
index 81de9733687..26a08126d41 100644
--- a/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentIdsAndNameToUpdate.test.ts
+++ b/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentIdsAndNameToUpdate.test.ts
@@ -1,6 +1,11 @@
+import { type JSONContent } from '@tiptap/core';
+
import { type Attachment } from '@/activities/files/types/Attachment';
import { getActivityAttachmentIdsAndNameToUpdate } from '@/activities/utils/getActivityAttachmentIdsAndNameToUpdate';
+const buildDocument = (content: JSONContent[]) =>
+ JSON.stringify({ type: 'doc', attrs: { schemaVersion: 1 }, content });
+
describe('getActivityAttachmentIdsAndNameToUpdate', () => {
it('should return an empty array when attachment names are not changed in the body', () => {
const attachments = [
@@ -16,17 +21,17 @@ describe('getActivityAttachmentIdsAndNameToUpdate', () => {
},
] as Attachment[];
- const activityBody = JSON.stringify([
+ const activityBody = buildDocument([
{
type: 'file',
- props: {
+ attrs: {
url: 'https://exemple.com/files/images/test.txt',
name: 'image',
},
},
{
type: 'file',
- props: {
+ attrs: {
url: 'https://exemple.com/files/images/test2.txt',
name: 'image1',
},
@@ -51,17 +56,17 @@ describe('getActivityAttachmentIdsAndNameToUpdate', () => {
},
] as Attachment[];
- const activityBody = JSON.stringify([
+ const activityBody = buildDocument([
{
type: 'file',
- props: {
+ attrs: {
url: 'https://exemple.com/files/images/test.txt',
name: 'image',
},
},
{
type: 'file',
- props: {
+ attrs: {
url: 'https://exemple.com/files/images/test2.txt',
name: 'image4',
},
diff --git a/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentIdsToDelete.test.ts b/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentIdsToDelete.test.ts
index 31e12668526..fef321e7dbe 100644
--- a/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentIdsToDelete.test.ts
+++ b/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentIdsToDelete.test.ts
@@ -1,6 +1,13 @@
import { type Attachment } from '@/activities/files/types/Attachment';
import { getActivityAttachmentIdsToDelete } from '@/activities/utils/getActivityAttachmentIdsToDelete';
+const buildDocument = (urls: string[]) =>
+ JSON.stringify({
+ type: 'doc',
+ attrs: { schemaVersion: 1 },
+ content: urls.map((url) => ({ type: 'file', attrs: { url } })),
+ });
+
describe('getActivityAttachmentIdsToDelete', () => {
it('should not return any ids if attachment are present in the body', () => {
const attachments = [
@@ -13,25 +20,13 @@ describe('getActivityAttachmentIdsToDelete', () => {
file: [{ url: 'https://example.com/files/images/test2.txt' }],
},
] as Attachment[];
- const newActivityBody = JSON.stringify([
- {
- type: 'file',
- props: { url: 'https://example.com/files/images/test.txt' },
- },
- {
- type: 'file',
- props: { url: 'https://example.com/files/images/test2.txt' },
- },
+ const newActivityBody = buildDocument([
+ 'https://example.com/files/images/test.txt',
+ 'https://example.com/files/images/test2.txt',
]);
- const oldActivityBody = JSON.stringify([
- {
- type: 'file',
- props: { url: 'https://example.com/files/images/test.txt' },
- },
- {
- type: 'file',
- props: { url: 'https://example.com/files/images/test2.txt' },
- },
+ const oldActivityBody = buildDocument([
+ 'https://example.com/files/images/test.txt',
+ 'https://example.com/files/images/test2.txt',
]);
const attachmentIdsToDelete = getActivityAttachmentIdsToDelete(
newActivityBody,
@@ -52,21 +47,12 @@ describe('getActivityAttachmentIdsToDelete', () => {
file: [{ url: 'https://example.com/files/images/test2.txt' }],
},
] as Attachment[];
- const newActivityBody = JSON.stringify([
- {
- type: 'file',
- props: { url: 'https://example.com/files/images/test.txt' },
- },
+ const newActivityBody = buildDocument([
+ 'https://example.com/files/images/test.txt',
]);
- const oldActivityBody = JSON.stringify([
- {
- type: 'file',
- props: { url: 'https://example.com/files/images/test.txt' },
- },
- {
- type: 'file',
- props: { url: 'https://example.com/files/images/test2.txt' },
- },
+ const oldActivityBody = buildDocument([
+ 'https://example.com/files/images/test.txt',
+ 'https://example.com/files/images/test2.txt',
]);
const attachmentIdsToDelete = getActivityAttachmentIdsToDelete(
newActivityBody,
diff --git a/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentPathsAndName.test.ts b/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentPathsAndName.test.ts
index 724b1c3b5b3..7c6aa58fc7c 100644
--- a/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentPathsAndName.test.ts
+++ b/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentPathsAndName.test.ts
@@ -1,41 +1,33 @@
+import { type JSONContent } from '@tiptap/core';
+
import { getActivityAttachmentPathsAndName } from '@/activities/utils/getActivityAttachmentPathsAndName';
+const buildDocument = (content: JSONContent[]) =>
+ JSON.stringify({ type: 'doc', attrs: { schemaVersion: 1 }, content });
+
describe('getActivityAttachmentPathsAndName', () => {
- it('should return the file paths and names from the activity blocknote', () => {
- const activityBlocknote = JSON.stringify([
- { type: 'paragraph', props: { text: 'test' } },
- {
- type: 'image',
- props: {
- url: 'https://example.com/files/image/image.jpg?queryParam=value',
- name: 'image',
- },
- },
- {
- type: 'file',
- props: {
- url: 'https://example.com/files/file/file.pdf?queryParam=value',
- name: 'file',
- },
- },
- {
- type: 'video',
- props: {
- url: 'https://example.com/files/video/video.mp4?queryParam=value',
- name: 'video',
+ it('should return the file paths and names from the activity document', () => {
+ const attachmentPathsAndNames = getActivityAttachmentPathsAndName(
+ buildDocument([
+ { type: 'paragraph', content: [{ type: 'text', text: 'test' }] },
+ {
+ type: 'image',
+ attrs: {
+ src: 'https://example.com/files/image/image.jpg?queryParam=value',
+ alt: 'image',
+ },
},
- },
- {
- type: 'audio',
- props: {
- url: 'https://example.com/files/audio/audio.mp3?queryParam=value',
- name: 'audio',
+ {
+ type: 'file',
+ attrs: {
+ url: 'https://example.com/files/file/file.pdf?queryParam=value',
+ name: 'file',
+ },
},
- },
- ]);
- const res = getActivityAttachmentPathsAndName(activityBlocknote);
+ ]),
+ );
- expect(res).toEqual([
+ expect(attachmentPathsAndNames).toEqual([
{
path: 'https://example.com/files/image/image.jpg?queryParam=value',
name: 'image',
@@ -44,14 +36,47 @@ describe('getActivityAttachmentPathsAndName', () => {
path: 'https://example.com/files/file/file.pdf?queryParam=value',
name: 'file',
},
- {
- path: 'https://example.com/files/video/video.mp4?queryParam=value',
- name: 'video',
- },
- {
- path: 'https://example.com/files/audio/audio.mp3?queryParam=value',
- name: 'audio',
- },
]);
});
+
+ it('should find attachments nested in other nodes', () => {
+ const attachmentPathsAndNames = getActivityAttachmentPathsAndName(
+ buildDocument([
+ {
+ type: 'bulletList',
+ content: [
+ {
+ type: 'listItem',
+ content: [
+ {
+ type: 'file',
+ attrs: { url: 'https://example.com/a.pdf', name: 'a' },
+ },
+ ],
+ },
+ ],
+ },
+ ]),
+ );
+
+ expect(attachmentPathsAndNames).toEqual([
+ { path: 'https://example.com/a.pdf', name: 'a' },
+ ]);
+ });
+
+ it('should ignore attachments without a url', () => {
+ const attachmentPathsAndNames = getActivityAttachmentPathsAndName(
+ buildDocument([
+ { type: 'image', attrs: { src: '', alt: 'empty' } },
+ { type: 'file', attrs: { name: 'missing' } },
+ ]),
+ );
+
+ expect(attachmentPathsAndNames).toEqual([]);
+ });
+
+ it('should return no attachments for a body that is not a TipTap document', () => {
+ expect(getActivityAttachmentPathsAndName('')).toEqual([]);
+ expect(getActivityAttachmentPathsAndName('[{"type":"image"}]')).toEqual([]);
+ });
});
diff --git a/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentPathsToRestore.test.ts b/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentPathsToRestore.test.ts
index 675c6062882..7bf5343b0f2 100644
--- a/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentPathsToRestore.test.ts
+++ b/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityAttachmentPathsToRestore.test.ts
@@ -1,13 +1,14 @@
+import { type JSONContent } from '@tiptap/core';
+
import { type Attachment } from '@/activities/files/types/Attachment';
import { getActivityAttachmentPathsToRestore } from '@/activities/utils/getActivityAttachmentPathsToRestore';
+const buildDocument = (content: JSONContent[]) =>
+ JSON.stringify({ type: 'doc', attrs: { schemaVersion: 1 }, content });
+
describe('getActivityAttachmentPathsToRestore', () => {
it('should not return any attachment paths to restore if there are no paths in body', () => {
- const newActivityBody = JSON.stringify([
- {
- type: 'paragraph',
- },
- ]);
+ const newActivityBody = buildDocument([{ type: 'paragraph' }]);
const oldActivityAttachments = [
{
id: '1',
@@ -22,14 +23,14 @@ describe('getActivityAttachmentPathsToRestore', () => {
});
it('should return the attachment paths to restore if paths in body are not present in attachments', () => {
- const newActivityBody = JSON.stringify([
+ const newActivityBody = buildDocument([
{
type: 'file',
- props: { url: 'https://example.com/files/images/test.txt' },
+ attrs: { url: 'https://example.com/files/images/test.txt' },
},
{
type: 'file',
- props: { url: 'https://example.com/files/images/test2.txt' },
+ attrs: { url: 'https://example.com/files/images/test2.txt' },
},
]);
diff --git a/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityPreview.test.ts b/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityPreview.test.ts
deleted file mode 100644
index 183e4c04620..00000000000
--- a/packages/twenty-front/src/modules/activities/utils/__tests__/getActivityPreview.test.ts
+++ /dev/null
@@ -1,112 +0,0 @@
-import { getActivityPreview } from '@/activities/utils/getActivityPreview';
-
-describe('getActivityPreview', () => {
- it('should work for empty body', () => {
- const activityBody = {};
-
- const res = getActivityPreview(JSON.stringify(activityBody));
-
- expect(res).toEqual('');
- });
- it('should work for empty body', () => {
- const activityBody = '';
-
- const res = getActivityPreview(JSON.stringify(activityBody));
-
- expect(res).toEqual('');
- });
- it('should work for text body', () => {
- const activityBody = [
- {
- id: '103003f3-60de-4713-8779-a694ee7a22c9',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [{ type: 'text', text: 'test 1', styles: {} }],
- children: [],
- },
- {
- id: 'bec5b84b-e9e7-49f6-854a-c2a9811f16e5',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [{ type: 'text', text: 'test text', styles: {} }],
- children: [],
- },
- {
- id: 'a347c1e7-65cb-4829-af9e-52fba407c3c8',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [{ type: 'text', text: 'test 2', styles: {} }],
- children: [],
- },
- {
- id: '7b999cbb-f248-4ead-a64f-94840191dc86',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [],
- children: [],
- },
- ];
-
- const res = getActivityPreview(JSON.stringify(activityBody));
-
- expect(res).toEqual('test 1\ntest text\ntest 2');
- });
- it('should work for image as first block', () => {
- const activityBody = [
- {
- id: '7c7779f3-9c60-4504-ab3b-230fe390d430',
- type: 'image',
- props: {
- backgroundColor: 'default',
- textAlignment: 'left',
- url: 'https://twenty-icons.com/anthropic.com',
- caption: '',
- width: 230,
- },
- children: [],
- },
- {
- id: 'ab470e73-4564-493d-a1ad-bbe2c86c4481',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [{ type: 'text', text: 'TEST', styles: {} }],
- children: [],
- },
- {
- id: 'd4720499-2a45-4f3b-96cf-a8415c295678',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [],
- children: [],
- },
- ];
-
- const res = getActivityPreview(JSON.stringify(activityBody));
-
- expect(res).toEqual('TEST');
- });
-});
diff --git a/packages/twenty-front/src/modules/activities/utils/__tests__/getActivitySummary.test.ts b/packages/twenty-front/src/modules/activities/utils/__tests__/getActivitySummary.test.ts
deleted file mode 100644
index a975557c340..00000000000
--- a/packages/twenty-front/src/modules/activities/utils/__tests__/getActivitySummary.test.ts
+++ /dev/null
@@ -1,142 +0,0 @@
-import { getActivitySummary } from '@/activities/utils/getActivitySummary';
-
-describe('getActivitySummary', () => {
- it('should work for empty body ""', () => {
- const activityBody = {};
-
- const res = getActivitySummary(JSON.stringify(activityBody));
-
- expect(res).toEqual('');
- });
- it('should work for empty body {}', () => {
- const activityBody = '';
-
- const res = getActivitySummary(JSON.stringify(activityBody));
-
- expect(res).toEqual('');
- });
- it('should work for paragraph as first block', () => {
- const activityBody = [
- {
- id: '103003f3-60de-4713-8779-a694ee7a22c9',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [{ type: 'text', text: 'test 1', styles: {} }],
- children: [],
- },
- {
- id: 'bec5b84b-e9e7-49f6-854a-c2a9811f16e5',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [{ type: 'text', text: 'test text', styles: {} }],
- children: [],
- },
- {
- id: 'a347c1e7-65cb-4829-af9e-52fba407c3c8',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [{ type: 'text', text: 'test 2', styles: {} }],
- children: [],
- },
- {
- id: '7b999cbb-f248-4ead-a64f-94840191dc86',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [],
- children: [],
- },
- ];
-
- const res = getActivitySummary(JSON.stringify(activityBody));
-
- expect(res).toEqual('test 1');
- });
- it('should work for image as first block', () => {
- const activityBody = [
- {
- id: '7c7779f3-9c60-4504-ab3b-230fe390d430',
- type: 'image',
- props: {
- backgroundColor: 'default',
- textAlignment: 'left',
- url: 'https://twenty-icons.com/anthropic.com',
- caption: '',
- width: 230,
- },
- children: [],
- },
- {
- id: 'ab470e73-4564-493d-a1ad-bbe2c86c4481',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [{ type: 'text', text: 'TEST', styles: {} }],
- children: [],
- },
- {
- id: 'd4720499-2a45-4f3b-96cf-a8415c295678',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [],
- children: [],
- },
- ];
-
- const res = getActivitySummary(JSON.stringify(activityBody));
-
- expect(res).toEqual('TEST');
- });
-
- it('should work for table as first block', () => {
- const activityBody = [
- {
- id: '591c3aa1-9e51-465d-bb59-611ef60344fb',
- type: 'table',
- props: { textColor: 'default', backgroundColor: 'default' },
- content: {
- type: 'tableContent',
- rows: [{ cells: [[], [], []] }, { cells: [[], [], []] }],
- },
- children: [],
- },
- {
- id: '1899ab29-0122-4890-bb50-4d7cf2802f98',
- type: 'paragraph',
- props: {
- textColor: 'default',
- backgroundColor: 'default',
- textAlignment: 'left',
- },
- content: [],
- children: [],
- },
- ];
-
- const res = getActivitySummary(JSON.stringify(activityBody));
-
- expect(res).toEqual('');
- });
-});
diff --git a/packages/twenty-front/src/modules/activities/utils/getActivityAttachmentPathsAndName.ts b/packages/twenty-front/src/modules/activities/utils/getActivityAttachmentPathsAndName.ts
index 07ac380fbdb..38152cb93b3 100644
--- a/packages/twenty-front/src/modules/activities/utils/getActivityAttachmentPathsAndName.ts
+++ b/packages/twenty-front/src/modules/activities/utils/getActivityAttachmentPathsAndName.ts
@@ -1,32 +1,68 @@
import { isNonEmptyString } from '@sniptt/guards';
-
-import { parseInitialBlocknote } from '@/blocknote-editor/utils/parseInitialBlocknote';
+import {
+ isDefined,
+ parseTipTapJsonDocument,
+ TIPTAP_NODE_TYPES,
+ type TipTapNode,
+} from 'twenty-shared/utils';
export type AttachmentInfo = {
path: string;
name: string;
};
-const ATTACHMENT_BLOCK_TYPES = ['image', 'file', 'video', 'audio'];
+const readStringAttribute = ({
+ node,
+ attributeName,
+}: {
+ node: TipTapNode;
+ attributeName: string;
+}) => {
+ const value = node.attrs?.[attributeName];
+
+ return isNonEmptyString(value) ? value : undefined;
+};
+
+const getNodeAttachment = (node: TipTapNode): AttachmentInfo | undefined => {
+ switch (node.type) {
+ case TIPTAP_NODE_TYPES.IMAGE: {
+ const path = readStringAttribute({ node, attributeName: 'src' });
+
+ return isDefined(path)
+ ? {
+ path,
+ name: readStringAttribute({ node, attributeName: 'alt' }) ?? '',
+ }
+ : undefined;
+ }
+ case TIPTAP_NODE_TYPES.FILE: {
+ const path = readStringAttribute({ node, attributeName: 'url' });
+
+ return isDefined(path)
+ ? {
+ path,
+ name: readStringAttribute({ node, attributeName: 'name' }) ?? '',
+ }
+ : undefined;
+ }
+ default:
+ return undefined;
+ }
+};
+
+const collectAttachments = (node: TipTapNode): AttachmentInfo[] => {
+ const attachment = getNodeAttachment(node);
+ const childAttachments = (node.content ?? []).flatMap(collectAttachments);
+
+ return isDefined(attachment)
+ ? [attachment, ...childAttachments]
+ : childAttachments;
+};
export const getActivityAttachmentPathsAndName = (
- stringifiedActivityBlocknote: string,
+ serializedDocument: string,
): AttachmentInfo[] => {
- const blocks = parseInitialBlocknote(stringifiedActivityBlocknote) ?? [];
-
- return blocks.reduce((acc: AttachmentInfo[], block) => {
- const props = block.props as { url?: string; name?: string } | undefined;
-
- if (
- block.type !== undefined &&
- ATTACHMENT_BLOCK_TYPES.includes(block.type) &&
- isNonEmptyString(props?.url)
- ) {
- acc.push({
- path: props.url,
- name: props?.name ?? '',
- });
- }
- return acc;
- }, []);
+ const document = parseTipTapJsonDocument(serializedDocument);
+
+ return isDefined(document) ? collectAttachments(document) : [];
};
diff --git a/packages/twenty-front/src/modules/activities/utils/getActivityPreview.ts b/packages/twenty-front/src/modules/activities/utils/getActivityPreview.ts
deleted file mode 100644
index 6258276d96b..00000000000
--- a/packages/twenty-front/src/modules/activities/utils/getActivityPreview.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import type { PartialBlock } from '@blocknote/core';
-import { isArray, isNonEmptyString } from '@sniptt/guards';
-import { isDefined } from 'twenty-shared/utils';
-
-import { parseInitialBlocknote } from '@/blocknote-editor/utils/parseInitialBlocknote';
-
-const extractTextFromBlock = (block: PartialBlock): string => {
- if (!isDefined(block.content) || !isArray(block.content)) return '';
-
- return (
- block.content as Array<{
- type: string;
- text?: string;
- content?: Array<{ type: string; text?: string }>;
- }>
- )
- .map((inline) => {
- if (inline.type === 'text') {
- return inline.text ?? '';
- }
- if (inline.type === 'link' && isArray(inline.content)) {
- return inline.content
- .map((child) => (child.type === 'text' ? (child.text ?? '') : ''))
- .join(' ');
- }
- return '';
- })
- .join('');
-};
-
-export const getActivityPreview = (activityBody: string | null): string => {
- const blocks = parseInitialBlocknote(activityBody) ?? [];
-
- return blocks.map(extractTextFromBlock).filter(isNonEmptyString).join('\n');
-};
diff --git a/packages/twenty-front/src/modules/activities/utils/getActivitySummary.ts b/packages/twenty-front/src/modules/activities/utils/getActivitySummary.ts
deleted file mode 100644
index 7f95f6c723d..00000000000
--- a/packages/twenty-front/src/modules/activities/utils/getActivitySummary.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import { parseInitialBlocknote } from '@/blocknote-editor/utils/parseInitialBlocknote';
-import { getFirstNonEmptyLineOfRichText } from '@/blocknote-editor/utils/getFirstNonEmptyLineOfRichText';
-
-export const getActivitySummary = (activityBody: string | null): string => {
- const blocks = parseInitialBlocknote(activityBody) ?? null;
-
- return getFirstNonEmptyLineOfRichText(blocks);
-};
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/components/AdvancedTextEditor.tsx b/packages/twenty-front/src/modules/advanced-text-editor/components/AdvancedTextEditor.tsx
index 2130e9b82f6..64740ca307c 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/components/AdvancedTextEditor.tsx
+++ b/packages/twenty-front/src/modules/advanced-text-editor/components/AdvancedTextEditor.tsx
@@ -51,6 +51,7 @@ const StyledEditorContainer = styled.div<{
font-weight: ${themeCssVariables.font.weight.regular};
height: 100%;
line-height: var(--editor-line-height);
+ overflow-wrap: anywhere;
padding: ${themeCssVariables.spacing[1]} ${themeCssVariables.spacing[2]};
p.is-editor-empty:first-of-type:not([data-placeholder=''])::before {
@@ -92,7 +93,10 @@ const StyledEditorContainer = styled.div<{
h1,
h2,
- h3 {
+ h3,
+ h4,
+ h5,
+ h6 {
font-weight: var(--editor-heading-font-weight);
line-height: var(--editor-heading-line-height);
margin: var(--editor-heading-spacing-top) 0
@@ -111,6 +115,12 @@ const StyledEditorContainer = styled.div<{
font-size: var(--editor-heading-3-font-size);
}
+ h4,
+ h5,
+ h6 {
+ font-size: var(--editor-font-size);
+ }
+
ul,
ol {
margin: 0 0 var(--editor-block-spacing);
@@ -150,10 +160,115 @@ const StyledEditorContainer = styled.div<{
padding-left: var(--editor-quote-indent);
}
- .node-image {
+ .node-image,
+ .node-file {
margin-bottom: var(--editor-block-spacing);
}
+ code {
+ background-color: ${themeCssVariables.background.transparent.light};
+ border-radius: ${themeCssVariables.border.radius.sm};
+ font-family: ${themeCssVariables.code.font.family};
+ font-size: 0.9em;
+ padding: 0 ${themeCssVariables.spacing[1]};
+ }
+
+ pre {
+ background-color: ${themeCssVariables.background.transparent.lighter};
+ border-radius: ${themeCssVariables.border.radius.md};
+ margin: 0 0 var(--editor-block-spacing);
+ overflow-x: auto;
+ padding: ${themeCssVariables.spacing[2]} ${themeCssVariables.spacing[3]};
+
+ code {
+ background-color: transparent;
+ padding: 0;
+ }
+ }
+
+ ul[data-type='taskList'] {
+ list-style: none;
+ padding-left: 0;
+
+ li {
+ align-items: flex-start;
+ display: flex;
+ gap: ${themeCssVariables.spacing[2]};
+
+ & > label {
+ flex: 0 0 auto;
+ user-select: none;
+ }
+
+ & > div {
+ flex: 1 1 auto;
+ min-width: 0;
+ }
+
+ & > div > p {
+ margin: 0;
+ }
+ }
+
+ li[data-checked='true'] > div {
+ color: ${themeCssVariables.font.color.tertiary};
+ text-decoration: line-through;
+ }
+ }
+
+ .tableWrapper {
+ margin: 0 0 var(--editor-block-spacing);
+ overflow-x: auto;
+ }
+
+ table {
+ border-collapse: collapse;
+ table-layout: fixed;
+ width: 100%;
+
+ td,
+ th {
+ border: 1px solid ${themeCssVariables.border.color.medium};
+ box-sizing: border-box;
+ min-width: 1em;
+ padding: ${themeCssVariables.spacing[1]} ${themeCssVariables.spacing[2]};
+ position: relative;
+ vertical-align: top;
+
+ & > p {
+ margin: 0;
+ }
+ }
+
+ th {
+ background-color: ${themeCssVariables.background.tertiary};
+ font-weight: ${themeCssVariables.font.weight.medium};
+ text-align: left;
+ }
+
+ .selectedCell::after {
+ background-color: ${themeCssVariables.color.blue3};
+ content: '';
+ inset: 0;
+ pointer-events: none;
+ position: absolute;
+ }
+
+ .column-resize-handle {
+ background-color: ${themeCssVariables.color.blue};
+ bottom: 0;
+ pointer-events: none;
+ position: absolute;
+ right: calc(-1 * ${themeCssVariables.spacing['0.5']});
+ top: 0;
+ width: ${themeCssVariables.spacing[1]};
+ }
+ }
+
+ &.resize-cursor {
+ cursor: col-resize;
+ }
+
.block-section {
border-radius: ${themeCssVariables.border.radius.sm};
box-sizing: border-box;
@@ -217,6 +332,7 @@ const StyledEditorContainer = styled.div<{
border-bottom: none;
border-left: none;
border-right: none;
+ border-top: 1px solid ${themeCssVariables.border.color.medium};
&.ProseMirror-selectednode {
box-shadow: 0 0 0 ${themeCssVariables.spacing[2]}
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/components/FormAdvancedTextFieldInput.tsx b/packages/twenty-front/src/modules/advanced-text-editor/components/FormAdvancedTextFieldInput.tsx
index c537d8ac98e..c3f9784a412 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/components/FormAdvancedTextFieldInput.tsx
+++ b/packages/twenty-front/src/modules/advanced-text-editor/components/FormAdvancedTextFieldInput.tsx
@@ -2,6 +2,8 @@ import { AdvancedTextEditor } from '@/advanced-text-editor/components/AdvancedTe
import { useAdvancedTextEditor } from '@/advanced-text-editor/hooks/useAdvancedTextEditor';
import { type AdvancedTextEditorComponentProps } from '@/advanced-text-editor/types/AdvancedTextEditorComponentProps';
import { type AdvancedTextEditorProfile } from '@/advanced-text-editor/types/AdvancedTextEditorProfile';
+import { type UploadErrorHandler } from '@/advanced-text-editor/types/UploadErrorHandler';
+import { type UploadedFile } from '@/advanced-text-editor/types/UploadedFile';
import { type UploadedImage } from '@/advanced-text-editor/types/UploadedImage';
import { serializeAdvancedTextEditorDocument } from '@/advanced-text-editor/utils/serializeAdvancedTextEditorDocument';
import { FormFieldInputContainer } from '@/ui/input/components/FormFieldInputContainer';
@@ -17,6 +19,7 @@ import { styled } from '@linaria/react';
import { useLingui } from '@lingui/react/macro';
import { type Editor } from '@tiptap/core';
import { type ComponentType, useEffect, useId, useState } from 'react';
+import { flushSync } from 'react-dom';
import { isDefined } from 'twenty-shared/utils';
import { doNotTranslate } from 'twenty-shared/i18n';
import { LightIconButton } from 'twenty-ui/components/input';
@@ -99,7 +102,9 @@ type FormAdvancedTextFieldInputProps = {
placeholder?: string;
VariablePicker?: VariablePickerComponent;
onImageUpload?: (file: File) => Promise<UploadedImage>;
- onImageUploadError?: (error: Error, file: File) => void;
+ onImageUploadError?: UploadErrorHandler;
+ onFileUpload?: (file: File) => Promise<UploadedFile>;
+ onFileUploadError?: UploadErrorHandler;
profile: AdvancedTextEditorProfile;
EditorComponent?: ComponentType<AdvancedTextEditorComponentProps>;
minHeight?: number;
@@ -119,6 +124,8 @@ export const FormAdvancedTextFieldInput = ({
VariablePicker,
onImageUpload,
onImageUploadError,
+ onFileUpload,
+ onFileUploadError,
profile,
EditorComponent = AdvancedTextEditor,
minHeight,
@@ -169,6 +176,8 @@ export const FormAdvancedTextFieldInput = ({
},
onImageUpload,
onImageUploadError,
+ onFileUpload,
+ onFileUploadError,
});
useEffect(() => {
@@ -179,12 +188,11 @@ export const FormAdvancedTextFieldInput = ({
};
}, [editor, onEditorReady]);
- const handleEnterFullScreen = () => {
- setIsFullScreen(true);
- };
-
- const handleExitFullScreen = () => {
- setIsFullScreen(false);
+ const handleFullScreenChange = (isFullScreenOpen: boolean) => {
+ flushSync(() => {
+ setIsFullScreen(isFullScreenOpen);
+ });
+ editor?.commands.focus();
};
const handleVariableTagInsert = (variableName: string) => {
@@ -216,7 +224,7 @@ export const FormAdvancedTextFieldInput = ({
const { renderFullScreenModal } = useFullScreenModal({
links: breadcrumbLinks,
- onClose: handleExitFullScreen,
+ onClose: () => handleFullScreenChange(false),
hasClosePageButton: !isMobile,
});
@@ -274,7 +282,7 @@ export const FormAdvancedTextFieldInput = ({
{!readonly && !isFullScreen && (
<LightIconButton
size="sm"
- onClick={handleEnterFullScreen}
+ onClick={() => handleFullScreenChange(true)}
emphasis="subtle"
aria-label={t`Expand to full screen`}
>
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/components/RichTextColorDropdown.tsx b/packages/twenty-front/src/modules/advanced-text-editor/components/RichTextColorDropdown.tsx
new file mode 100644
index 00000000000..4a65d4ed623
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/components/RichTextColorDropdown.tsx
@@ -0,0 +1,113 @@
+import { useLingui } from '@lingui/react/macro';
+import { type Editor } from '@tiptap/core';
+import { useId } from 'react';
+import {
+ isDefined,
+ RICH_TEXT_COLORS,
+ type RichTextColor,
+} from 'twenty-shared/utils';
+import { LightIconButton } from 'twenty-ui/components/input';
+import { Dropdown } from 'twenty-ui/components/navigation';
+import { useTheme } from 'twenty-ui/theme';
+
+import { RichTextColorIcon } from '@/advanced-text-editor/components/RichTextColorIcon';
+import { RICH_TEXT_COLOR_DISPLAY_NAMES } from '@/advanced-text-editor/constants/RichTextColorDisplayNames';
+import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';
+import { DropdownRoot } from '@/ui/layout/dropdown/components/DropdownRoot';
+
+type RichTextColorDropdownProps = {
+ editor: Editor;
+ textColor: RichTextColor | null;
+ backgroundColor: RichTextColor | null;
+};
+
+export const RichTextColorDropdown = ({
+ editor,
+ textColor,
+ backgroundColor,
+}: RichTextColorDropdownProps) => {
+ const { t } = useLingui();
+ const theme = useTheme();
+ const instanceId = useId();
+
+ const colorOptions = [null, ...RICH_TEXT_COLORS];
+
+ const getColorLabel = (color: RichTextColor | null) =>
+ isDefined(color) ? t(RICH_TEXT_COLOR_DISPLAY_NAMES[color]) : t`Default`;
+
+ const handleColorSelect = ({
+ attributeName,
+ color,
+ }: {
+ attributeName: 'textColor' | 'backgroundColor';
+ color: RichTextColor | null;
+ }) => {
+ editor
+ .chain()
+ .focus()
+ .setMark('textStyle', { [attributeName]: color })
+ .removeEmptyTextStyle()
+ .run();
+ };
+
+ const renderColorOptions = ({
+ attributeName,
+ selectedColor,
+ }: {
+ attributeName: 'textColor' | 'backgroundColor';
+ selectedColor: RichTextColor | null;
+ }) =>
+ colorOptions.map((color) => (
+ <Dropdown.OptionItem
+ key={color ?? 'default'}
+ aria-label={getColorLabel(color)}
+ selected={selectedColor === color}
+ startIcon={<RichTextColorIcon {...{ [attributeName]: color }} />}
+ onSelect={() => handleColorSelect({ attributeName, color })}
+ >
+ {getColorLabel(color)}
+ </Dropdown.OptionItem>
+ ));
+
+ return (
+ <DropdownRoot
+ dropdownId={`rich-text-color-dropdown-${instanceId}`}
+ type="picker"
+ >
+ <Dropdown.Trigger
+ render={
+ <LightIconButton
+ aria-label={t`Text and background colors`}
+ variant="ghost"
+ size="sm"
+ >
+ <RichTextColorIcon
+ textColor={textColor}
+ backgroundColor={backgroundColor}
+ />
+ </LightIconButton>
+ }
+ />
+ <DropdownContent
+ align="end"
+ sideOffset={parseInt(theme.spacing[1], 10)}
+ finalFocus={() => editor.view.dom}
+ aria-label={t`Text and background colors`}
+ >
+ <Dropdown.Section label={t`Text Colors`}>
+ {renderColorOptions({
+ attributeName: 'textColor',
+ selectedColor: textColor,
+ })}
+ </Dropdown.Section>
+ <Dropdown.Separator />
+ <Dropdown.Section label={t`Background Colors`}>
+ {renderColorOptions({
+ attributeName: 'backgroundColor',
+ selectedColor: backgroundColor,
+ })}
+ </Dropdown.Section>
+ </DropdownContent>
+ </DropdownRoot>
+ );
+};
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/components/RichTextColorIcon.tsx b/packages/twenty-front/src/modules/advanced-text-editor/components/RichTextColorIcon.tsx
new file mode 100644
index 00000000000..6e93eed2da0
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/components/RichTextColorIcon.tsx
@@ -0,0 +1,43 @@
+import { styled } from '@linaria/react';
+import { doNotTranslate } from 'twenty-shared/i18n';
+import { isDefined, type RichTextColor } from 'twenty-shared/utils';
+import { themeCssVariables } from 'twenty-ui/theme';
+
+const StyledColorIcon = styled.div<{
+ textColorValue: string;
+ backgroundColorValue: string;
+}>`
+ background-color: ${({ backgroundColorValue }) => backgroundColorValue};
+ border-radius: ${themeCssVariables.border.radius.xs};
+ color: ${({ textColorValue }) => textColorValue};
+ font-size: ${themeCssVariables.font.size.sm};
+ font-weight: ${themeCssVariables.font.weight.medium};
+ height: calc(${themeCssVariables.icon.size.md} * 1px);
+ line-height: calc(${themeCssVariables.icon.size.md} * 1px);
+ pointer-events: none;
+ text-align: center;
+ width: calc(${themeCssVariables.icon.size.md} * 1px);
+`;
+
+type RichTextColorIconProps = {
+ textColor?: RichTextColor | null;
+ backgroundColor?: RichTextColor | null;
+};
+
+export const RichTextColorIcon = ({
+ textColor,
+ backgroundColor,
+}: RichTextColorIconProps) => (
+ <StyledColorIcon
+ textColorValue={
+ isDefined(textColor) ? themeCssVariables.color[textColor] : 'inherit'
+ }
+ backgroundColorValue={
+ isDefined(backgroundColor)
+ ? themeCssVariables.color[`${backgroundColor}3`]
+ : 'transparent'
+ }
+ >
+ {doNotTranslate('A')}
+ </StyledColorIcon>
+);
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/components/TextBubbleMenu.tsx b/packages/twenty-front/src/modules/advanced-text-editor/components/TextBubbleMenu.tsx
index 594e510772f..ed5e4ef82a2 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/components/TextBubbleMenu.tsx
+++ b/packages/twenty-front/src/modules/advanced-text-editor/components/TextBubbleMenu.tsx
@@ -5,6 +5,7 @@ import { StyledBubbleMenuContainer } from '@/advanced-text-editor/components/Sty
import { BubbleMenuIconButton } from '@/advanced-text-editor/components/BubbleMenuIconButton';
import { BubbleMenuSeparator } from '@/advanced-text-editor/components/BubbleMenuSeparator';
import { EditLinkDropdown } from '@/advanced-text-editor/components/EditLinkDropdown';
+import { RichTextColorDropdown } from '@/advanced-text-editor/components/RichTextColorDropdown';
import { TurnIntoBlockDropdown } from '@/advanced-text-editor/components/TurnIntoBlockDropdown';
import { useTextBubbleState } from '@/advanced-text-editor/hooks/useTextBubbleState';
import { hasEditorExtension } from '@/advanced-text-editor/utils/hasEditorExtension';
@@ -14,7 +15,11 @@ import { type Editor } from '@tiptap/core';
import { NodeSelection } from '@tiptap/pm/state';
import { BubbleMenu } from '@tiptap/react/menus';
import {
+ IconAlignCenter,
+ IconAlignLeft,
+ IconAlignRight,
IconBold,
+ IconCode,
IconItalic,
IconList,
IconListNumbers,
@@ -61,6 +66,38 @@ export const TextBubbleMenu = ({ editor }: TextBubbleMenuProps) => {
onClick: () => editor.chain().focus().toggleStrike().run(),
isActive: state.isStrike,
},
+ {
+ Icon: IconCode,
+ label: t`Code`,
+ extensionName: 'code',
+ group: 'format',
+ onClick: () => editor.chain().focus().toggleCode().run(),
+ isActive: state.isCode,
+ },
+ {
+ Icon: IconAlignLeft,
+ label: t`Align left`,
+ extensionName: 'textAlign',
+ group: 'align',
+ onClick: () => editor.chain().focus().setTextAlign('left').run(),
+ isActive: state.textAlignment === 'left',
+ },
+ {
+ Icon: IconAlignCenter,
+ label: t`Align center`,
+ extensionName: 'textAlign',
+ group: 'align',
+ onClick: () => editor.chain().focus().setTextAlign('center').run(),
+ isActive: state.textAlignment === 'center',
+ },
+ {
+ Icon: IconAlignRight,
+ label: t`Align right`,
+ extensionName: 'textAlign',
+ group: 'align',
+ onClick: () => editor.chain().focus().setTextAlign('right').run(),
+ isActive: state.textAlignment === 'right',
+ },
{
Icon: IconList,
label: t`Bullet list`,
@@ -97,6 +134,17 @@ export const TextBubbleMenu = ({ editor }: TextBubbleMenuProps) => {
? [<TurnIntoBlockDropdown key="turn-into" editor={editor} />]
: [],
renderActions('format'),
+ hasEditorExtension(editor, 'richTextColor')
+ ? [
+ <RichTextColorDropdown
+ key="color"
+ editor={editor}
+ textColor={state.textColor}
+ backgroundColor={state.backgroundColor}
+ />,
+ ]
+ : [],
+ renderActions('align'),
renderActions('list'),
hasEditorExtension(editor, 'link')
? [
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/components/__stories__/AdvancedTextEditor.stories.tsx b/packages/twenty-front/src/modules/advanced-text-editor/components/__stories__/AdvancedTextEditor.stories.tsx
index 22b7228a4cf..affc2b16449 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/components/__stories__/AdvancedTextEditor.stories.tsx
+++ b/packages/twenty-front/src/modules/advanced-text-editor/components/__stories__/AdvancedTextEditor.stories.tsx
@@ -59,7 +59,7 @@ const EditorWrapper = ({
onUpdate(JSON.stringify(jsonContent));
},
onImageUpload: async () => ({ url: IMAGE_URL_MOCK }),
- onImageUploadError: (_error: Error, _file: File) => {},
+ onImageUploadError: () => {},
});
if (!editor) {
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/constants/RichTextBlockSlashCommands.ts b/packages/twenty-front/src/modules/advanced-text-editor/constants/RichTextBlockSlashCommands.ts
new file mode 100644
index 00000000000..0539e0dad6d
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/constants/RichTextBlockSlashCommands.ts
@@ -0,0 +1,54 @@
+import { type SlashCommandConfig } from '@/advanced-text-editor/extensions/slash-command/types/SlashCommandConfig';
+import { msg } from '@lingui/core/macro';
+import { isDefined, TIPTAP_NODE_TYPES } from 'twenty-shared/utils';
+import { IconCode, IconFile, IconTable } from 'twenty-ui/icon';
+
+export const RICH_TEXT_BLOCK_SLASH_COMMANDS: SlashCommandConfig[] = [
+ {
+ id: 'codeBlock',
+ title: msg`Code Block`,
+ description: msg`Block of code`,
+ icon: IconCode,
+ keywords: [msg`code`, msg`snippet`, msg`pre`],
+ getIsActive: (editor) => editor.isActive('codeBlock'),
+ getIsVisible: (editor) => editor.can().toggleCodeBlock?.() ?? false,
+ getOnSelect: (editor, range) => () =>
+ editor.chain().focus().deleteRange(range).toggleCodeBlock().run(),
+ },
+ {
+ id: 'table',
+ title: msg`Table`,
+ description: msg`Grid of rows and columns`,
+ icon: IconTable,
+ keywords: [msg`table`, msg`grid`, msg`rows`, msg`columns`],
+ getIsActive: (editor) => editor.isActive('table'),
+ getIsVisible: (editor) =>
+ editor.can().insertTable?.({ rows: 3, cols: 3, withHeaderRow: true }) ??
+ false,
+ getOnSelect: (editor, range) => () =>
+ editor
+ .chain()
+ .focus()
+ .deleteRange(range)
+ .insertTable({ rows: 3, cols: 3, withHeaderRow: true })
+ .run(),
+ },
+ {
+ id: 'file',
+ title: msg`File`,
+ description: msg`Upload a file or an image`,
+ icon: IconFile,
+ keywords: [msg`file`, msg`upload`, msg`attachment`, msg`image`],
+ getIsActive: (editor) => editor.isActive(TIPTAP_NODE_TYPES.FILE),
+ getIsVisible: (editor) =>
+ isDefined(editor.extensionStorage.upload?.onFileUpload) &&
+ editor.can().insertContent({ type: TIPTAP_NODE_TYPES.FILE }),
+ getOnSelect: (editor, range) => () =>
+ editor
+ .chain()
+ .focus()
+ .deleteRange(range)
+ .insertContent({ type: TIPTAP_NODE_TYPES.FILE })
+ .run(),
+ },
+];
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/BlockNoteColorDisplayNames.ts b/packages/twenty-front/src/modules/advanced-text-editor/constants/RichTextColorDisplayNames.ts
similarity index 61%
rename from packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/BlockNoteColorDisplayNames.ts
rename to packages/twenty-front/src/modules/advanced-text-editor/constants/RichTextColorDisplayNames.ts
index 1c2fb96e124..a21abe94f75 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/BlockNoteColorDisplayNames.ts
+++ b/packages/twenty-front/src/modules/advanced-text-editor/constants/RichTextColorDisplayNames.ts
@@ -1,13 +1,11 @@
import { type MessageDescriptor } from '@lingui/core';
import { msg } from '@lingui/core/macro';
+import { type RichTextColor } from 'twenty-shared/utils';
-import { type BlockNoteColor } from '@/page-layout/widgets/standalone-rich-text/types/BlockNoteColor';
-
-export const BLOCKNOTE_COLOR_DISPLAY_NAMES: Record<
- BlockNoteColor,
+export const RICH_TEXT_COLOR_DISPLAY_NAMES: Record<
+ RichTextColor,
MessageDescriptor
> = {
- default: msg`Default`,
gray: msg`Gray`,
brown: msg`Brown`,
red: msg`Red`,
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/constants/__tests__/AdvancedTextEditorBlockCatalog.test.ts b/packages/twenty-front/src/modules/advanced-text-editor/constants/__tests__/AdvancedTextEditorBlockCatalog.test.ts
index 881c73e7b37..8caca2563ea 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/constants/__tests__/AdvancedTextEditorBlockCatalog.test.ts
+++ b/packages/twenty-front/src/modules/advanced-text-editor/constants/__tests__/AdvancedTextEditorBlockCatalog.test.ts
@@ -51,7 +51,7 @@ describe('ADVANCED_TEXT_EDITOR_BLOCK_CATALOG', () => {
).toEqual(recipeIds);
});
- it('keeps document blocks above list commands in the slash menu', () => {
+ it('orders the slash menu commands', () => {
expect(DEFAULT_SLASH_COMMANDS.map(({ id }) => id)).toEqual([
'paragraph',
'h1',
@@ -61,6 +61,10 @@ describe('ADVANCED_TEXT_EDITOR_BLOCK_CATALOG', () => {
...ADVANCED_TEXT_EDITOR_BLOCK_INSERTION_RECIPES.map(({ id }) => id),
'bulletList',
'orderedList',
+ 'taskList',
+ 'codeBlock',
+ 'table',
+ 'file',
]);
});
});
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/extensions/blocks/RichTextDividerNode.ts b/packages/twenty-front/src/modules/advanced-text-editor/extensions/blocks/RichTextDividerNode.ts
new file mode 100644
index 00000000000..ae355248cf6
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/extensions/blocks/RichTextDividerNode.ts
@@ -0,0 +1,5 @@
+import { DividerNode } from '@/advanced-text-editor/extensions/blocks/DividerNode';
+
+export const RichTextDividerNode = DividerNode.extend({
+ addAttributes: () => ({}),
+});
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/extensions/file/FileNode.ts b/packages/twenty-front/src/modules/advanced-text-editor/extensions/file/FileNode.ts
new file mode 100644
index 00000000000..135e1626d0d
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/extensions/file/FileNode.ts
@@ -0,0 +1,36 @@
+import { mergeAttributes, Node } from '@tiptap/core';
+import { ReactNodeViewRenderer } from '@tiptap/react';
+import { TIPTAP_NODE_TYPES } from 'twenty-shared/utils';
+
+import { FileNodeView } from '@/advanced-text-editor/extensions/file/FileNodeView';
+
+export const FileNode = Node.create({
+ name: TIPTAP_NODE_TYPES.FILE,
+ group: 'block',
+ atom: true,
+ draggable: true,
+
+ addAttributes: () => ({
+ url: {
+ default: '',
+ parseHTML: (element) => element.getAttribute('data-url') ?? '',
+ renderHTML: (attributes) => ({ 'data-url': attributes.url }),
+ },
+ name: {
+ default: '',
+ parseHTML: (element) => element.getAttribute('data-name') ?? '',
+ renderHTML: (attributes) => ({ 'data-name': attributes.name }),
+ },
+ }),
+
+ parseHTML: () => [{ tag: 'div[data-type="file"]' }],
+
+ renderHTML: ({ HTMLAttributes }) => [
+ 'div',
+ mergeAttributes(HTMLAttributes, { 'data-type': TIPTAP_NODE_TYPES.FILE }),
+ ],
+
+ renderText: ({ node }) => node.attrs.name,
+
+ addNodeView: () => ReactNodeViewRenderer(FileNodeView),
+});
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/extensions/file/FileNodeView.tsx b/packages/twenty-front/src/modules/advanced-text-editor/extensions/file/FileNodeView.tsx
new file mode 100644
index 00000000000..bafac8cb95c
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/extensions/file/FileNodeView.tsx
@@ -0,0 +1,130 @@
+import { styled } from '@linaria/react';
+import { t } from '@lingui/core/macro';
+import { type NodeViewProps, NodeViewWrapper } from '@tiptap/react';
+import { type ChangeEvent, useRef } from 'react';
+import { getSafeUrl, isDefined, TIPTAP_NODE_TYPES } from 'twenty-shared/utils';
+import { Button } from 'twenty-ui/primitives/input';
+import { themeCssVariables } from 'twenty-ui/theme';
+
+import { getFileType } from '@/activities/files/utils/getFileType';
+import { isImageFile } from '@/advanced-text-editor/utils/isImageFile';
+import { FileIcon } from '@/file/components/FileIcon';
+
+const StyledFileLine = styled.div`
+ align-items: center;
+ display: flex;
+ gap: ${themeCssVariables.spacing[2]};
+`;
+
+const StyledLink = styled.a`
+ align-items: center;
+ color: ${themeCssVariables.font.color.primary};
+ display: flex;
+ text-decoration: none;
+
+ &:hover {
+ color: ${themeCssVariables.font.color.secondary};
+ }
+`;
+
+const StyledUploadingFileName = styled.span`
+ color: ${themeCssVariables.font.color.tertiary};
+`;
+
+const StyledFileInput = styled.input`
+ display: none;
+`;
+
+type FileNodeViewProps = NodeViewProps;
+
+export const FileNodeView = ({
+ node,
+ editor,
+ getPos,
+ updateAttributes,
+}: FileNodeViewProps) => {
+ // oxlint-disable-next-line twenty/no-state-useref
+ const fileInputRef = useRef<HTMLInputElement>(null);
+ const { onFileUpload, onFileUploadError } = editor.extensionStorage.upload;
+
+ const safeUrl = getSafeUrl(node.attrs.url);
+
+ const handleFileChange = async (event: ChangeEvent<HTMLInputElement>) => {
+ const file = event.target.files?.[0];
+
+ if (!isDefined(file) || !isDefined(onFileUpload)) {
+ return;
+ }
+
+ const uploadedFile = await onFileUpload(file).catch((error: Error) => {
+ onFileUploadError?.({ error, file });
+
+ return undefined;
+ });
+ const position = getPos();
+
+ if (!isDefined(uploadedFile) || !isDefined(position)) {
+ return;
+ }
+
+ if (isImageFile(file)) {
+ editor
+ .chain()
+ .insertContentAt(
+ { from: position, to: position + node.nodeSize },
+ {
+ type: TIPTAP_NODE_TYPES.IMAGE,
+ attrs: { src: uploadedFile.url, alt: file.name },
+ },
+ )
+ .run();
+
+ return;
+ }
+
+ updateAttributes({ url: uploadedFile.url, name: file.name });
+ };
+
+ if (node.attrs.url.startsWith('blob:')) {
+ return (
+ <NodeViewWrapper>
+ <StyledFileLine contentEditable={false}>
+ <FileIcon fileCategory={getFileType(node.attrs.name)} />
+ <StyledUploadingFileName>{node.attrs.name}</StyledUploadingFileName>
+ </StyledFileLine>
+ </NodeViewWrapper>
+ );
+ }
+
+ if (isDefined(safeUrl)) {
+ return (
+ <NodeViewWrapper>
+ <StyledFileLine contentEditable={false}>
+ <FileIcon
+ fileCategory={getFileType(node.attrs.name)}
+ thumbnailUrl={safeUrl}
+ />
+ <StyledLink href={safeUrl} target="_blank" rel="noopener noreferrer">
+ {node.attrs.name}
+ </StyledLink>
+ </StyledFileLine>
+ </NodeViewWrapper>
+ );
+ }
+
+ return (
+ <NodeViewWrapper>
+ <StyledFileLine contentEditable={false}>
+ <StyledFileInput
+ ref={fileInputRef}
+ type="file"
+ onChange={handleFileChange}
+ />
+ <Button
+ disabled={!isDefined(onFileUpload) || !editor.isEditable}
+ onClick={() => fileInputRef.current?.click()}
+ >{t`Upload File`}</Button>
+ </StyledFileLine>
+ </NodeViewWrapper>
+ );
+};
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/extensions/resizable-image/UploadImageExtension.ts b/packages/twenty-front/src/modules/advanced-text-editor/extensions/resizable-image/UploadImageExtension.ts
deleted file mode 100644
index 95bb1a6676d..00000000000
--- a/packages/twenty-front/src/modules/advanced-text-editor/extensions/resizable-image/UploadImageExtension.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-import {
- UploadImagePlugin,
- type UploadImagePluginProps,
-} from '@/advanced-text-editor/extensions/resizable-image/UploadImagePlugin';
-import { Extension } from '@tiptap/core';
-import { EMAIL_IMAGE_MIME_TYPES } from 'twenty-shared/constants';
-
-type UploadImageOptions = Omit<UploadImagePluginProps, 'editor'>;
-
-type UploadImageStorage = {
- placeholderImages: Set<string>;
-};
-
-declare module '@tiptap/core' {
- interface Storage {
- uploadImage: UploadImageStorage;
- }
-}
-
-export const UploadImageExtension = Extension.create<
- UploadImageOptions,
- UploadImageStorage
->({
- name: 'uploadImage',
-
- addOptions: () => {
- return {
- allowedMimeTypes: EMAIL_IMAGE_MIME_TYPES,
- onImageUpload: undefined,
- onImageUploadError: undefined,
- };
- },
-
- addStorage: () => {
- return {
- placeholderImages: new Set(),
- };
- },
-
- addProseMirrorPlugins() {
- const { onImageUpload } = this.options;
-
- if (!onImageUpload) {
- return [];
- }
-
- return [
- UploadImagePlugin({
- editor: this.editor,
- allowedMimeTypes: this.options.allowedMimeTypes,
- onImageUpload: this.options.onImageUpload,
- onImageUploadError: this.options.onImageUploadError,
- }),
- ];
- },
-});
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/extensions/resizable-image/UploadImagePlugin.ts b/packages/twenty-front/src/modules/advanced-text-editor/extensions/resizable-image/UploadImagePlugin.ts
deleted file mode 100644
index a5ee113e2c6..00000000000
--- a/packages/twenty-front/src/modules/advanced-text-editor/extensions/resizable-image/UploadImagePlugin.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-import { type Editor } from '@tiptap/core';
-import { Plugin, PluginKey } from '@tiptap/pm/state';
-
-import { type UploadedImage } from '@/advanced-text-editor/types/UploadedImage';
-import { insertUploadingImage } from '@/advanced-text-editor/utils/insertUploadingImage';
-
-export type UploadImagePluginProps = {
- editor: Editor;
- allowedMimeTypes?: readonly string[];
- onImageUpload?: (file: File) => Promise<UploadedImage>;
- onImageUploadError?: (error: Error, file: File) => void;
-};
-
-export const UploadImagePlugin = (options: UploadImagePluginProps) => {
- const { editor, onImageUpload, allowedMimeTypes, onImageUploadError } =
- options;
-
- return new Plugin({
- key: new PluginKey('uploadImage'),
- props: {
- handleDrop: (view, event) => {
- if (!onImageUpload || !event.dataTransfer?.files?.length) {
- return false;
- }
-
- const images = Array.from(event.dataTransfer.files).filter((file) =>
- allowedMimeTypes?.includes(file.type),
- );
- if (images.length === 0) {
- return false;
- }
-
- const pos = view.posAtCoords({
- left: event.clientX,
- top: event.clientY,
- });
- if (!pos) {
- return false;
- }
-
- event.preventDefault();
- event.stopPropagation();
-
- images.forEach((file) =>
- insertUploadingImage({
- editor,
- file,
- pos: pos.pos,
- onImageUpload,
- onImageUploadError,
- }),
- );
- return true;
- },
- handlePaste: (_view, event) => {
- if (!onImageUpload || !event.clipboardData?.files?.length) {
- return false;
- }
-
- const images = Array.from(event.clipboardData.files).filter((file) =>
- allowedMimeTypes?.includes(file.type),
- );
- if (images.length === 0) {
- return false;
- }
-
- event.preventDefault();
- event.stopPropagation();
-
- images.forEach((file) =>
- insertUploadingImage({
- editor,
- file,
- onImageUpload,
- onImageUploadError,
- }),
- );
- return true;
- },
- },
- });
-};
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/extensions/rich-text-color/RichTextColor.ts b/packages/twenty-front/src/modules/advanced-text-editor/extensions/rich-text-color/RichTextColor.ts
new file mode 100644
index 00000000000..b80029dcb8e
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/extensions/rich-text-color/RichTextColor.ts
@@ -0,0 +1,50 @@
+import { isNonEmptyString } from '@sniptt/guards';
+import { Extension } from '@tiptap/core';
+import {
+ type RichTextColor as RichTextColorName,
+ TIPTAP_MARK_TYPES,
+} from 'twenty-shared/utils';
+import { themeCssVariables } from 'twenty-ui/theme';
+
+type RichTextColorAttributes = {
+ textColor?: RichTextColorName | null;
+ backgroundColor?: RichTextColorName | null;
+};
+
+export const RichTextColor = Extension.create({
+ name: 'richTextColor',
+
+ addGlobalAttributes: () => [
+ {
+ types: [TIPTAP_MARK_TYPES.TEXT_STYLE],
+ attributes: {
+ textColor: {
+ default: null,
+ parseHTML: (element) => element.getAttribute('data-text-color'),
+ renderHTML: ({
+ textColor,
+ }: Pick<RichTextColorAttributes, 'textColor'>) =>
+ isNonEmptyString(textColor)
+ ? {
+ 'data-text-color': textColor,
+ style: `color: ${themeCssVariables.color[textColor]}`,
+ }
+ : {},
+ },
+ backgroundColor: {
+ default: null,
+ parseHTML: (element) => element.getAttribute('data-background-color'),
+ renderHTML: ({
+ backgroundColor,
+ }: Pick<RichTextColorAttributes, 'backgroundColor'>) =>
+ isNonEmptyString(backgroundColor)
+ ? {
+ 'data-background-color': backgroundColor,
+ style: `background-color: ${themeCssVariables.color[`${backgroundColor}3`]}`,
+ }
+ : {},
+ },
+ },
+ },
+ ],
+});
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/extensions/slash-command/DefaultSlashCommands.ts b/packages/twenty-front/src/modules/advanced-text-editor/extensions/slash-command/DefaultSlashCommands.ts
index aa6597c97af..8b620f9e6c3 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/extensions/slash-command/DefaultSlashCommands.ts
+++ b/packages/twenty-front/src/modules/advanced-text-editor/extensions/slash-command/DefaultSlashCommands.ts
@@ -1,4 +1,5 @@
import { ADVANCED_TEXT_EDITOR_BLOCK_SLASH_COMMANDS } from '@/advanced-text-editor/constants/AdvancedTextEditorBlockSlashCommands';
+import { RICH_TEXT_BLOCK_SLASH_COMMANDS } from '@/advanced-text-editor/constants/RichTextBlockSlashCommands';
import { type SlashCommandConfig } from '@/advanced-text-editor/extensions/slash-command/types/SlashCommandConfig';
import { msg } from '@lingui/core/macro';
import {
@@ -7,6 +8,7 @@ import {
IconH2,
IconH3,
IconList,
+ IconListCheck,
IconListNumbers,
IconTextSize,
} from 'twenty-ui/icon';
@@ -92,10 +94,22 @@ const LIST_SLASH_COMMANDS: SlashCommandConfig[] = [
getOnSelect: (editor, range) => () =>
editor.chain().focus().deleteRange(range).toggleOrderedList().run(),
},
+ {
+ id: 'taskList',
+ title: msg`Check List`,
+ description: msg`List with checkboxes`,
+ icon: IconListCheck,
+ keywords: [msg`check`, msg`todo`, msg`task`, msg`checkbox`],
+ getIsActive: (editor) => editor.isActive('taskList'),
+ getIsVisible: (editor) => editor.can().toggleTaskList?.() ?? false,
+ getOnSelect: (editor, range) => () =>
+ editor.chain().focus().deleteRange(range).toggleTaskList().run(),
+ },
];
export const DEFAULT_SLASH_COMMANDS: SlashCommandConfig[] = [
...TEXT_SLASH_COMMANDS,
...ADVANCED_TEXT_EDITOR_BLOCK_SLASH_COMMANDS,
...LIST_SLASH_COMMANDS,
+ ...RICH_TEXT_BLOCK_SLASH_COMMANDS,
];
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/extensions/upload/UploadExtension.ts b/packages/twenty-front/src/modules/advanced-text-editor/extensions/upload/UploadExtension.ts
new file mode 100644
index 00000000000..7bf878f9397
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/extensions/upload/UploadExtension.ts
@@ -0,0 +1,102 @@
+import { type Editor, Extension } from '@tiptap/core';
+import { FileHandler } from '@tiptap/extension-file-handler';
+import { EMAIL_IMAGE_MIME_TYPES } from 'twenty-shared/constants';
+import { isDefined } from 'twenty-shared/utils';
+
+import { type AdvancedTextEditorExtensionContext } from '@/advanced-text-editor/types/AdvancedTextEditorExtensionContext';
+import { getPositionAfterCursorBlock } from '@/advanced-text-editor/utils/getPositionAfterCursorBlock';
+import { insertUploadingFile } from '@/advanced-text-editor/utils/insertUploadingFile';
+import { insertUploadingImage } from '@/advanced-text-editor/utils/insertUploadingImage';
+import { isImageFile } from '@/advanced-text-editor/utils/isImageFile';
+
+declare module '@tiptap/core' {
+ interface Storage {
+ upload: AdvancedTextEditorExtensionContext;
+ }
+}
+
+export const UploadExtension = Extension.create<
+ AdvancedTextEditorExtensionContext,
+ AdvancedTextEditorExtensionContext
+>({
+ name: 'upload',
+
+ addOptions: () => ({
+ onImageUpload: undefined,
+ onImageUploadError: undefined,
+ onFileUpload: undefined,
+ onFileUploadError: undefined,
+ }),
+
+ addStorage() {
+ return {
+ onImageUpload: this.options.onImageUpload,
+ onImageUploadError: this.options.onImageUploadError,
+ onFileUpload: this.options.onFileUpload,
+ onFileUploadError: this.options.onFileUploadError,
+ };
+ },
+
+ addExtensions() {
+ const {
+ onImageUpload,
+ onImageUploadError,
+ onFileUpload,
+ onFileUploadError,
+ } = this.options;
+
+ if (!isDefined(onImageUpload) && !isDefined(onFileUpload)) {
+ return [];
+ }
+
+ const insertUploadingFiles = ({
+ editor,
+ files,
+ pos,
+ }: {
+ editor: Editor;
+ files: File[];
+ pos: number;
+ }) =>
+ [...files].reverse().forEach((file) => {
+ if (isImageFile(file) && isDefined(onImageUpload)) {
+ insertUploadingImage({
+ editor,
+ file,
+ pos,
+ onImageUpload,
+ onImageUploadError,
+ });
+
+ return;
+ }
+
+ if (!isImageFile(file) && isDefined(onFileUpload)) {
+ insertUploadingFile({
+ editor,
+ file,
+ pos,
+ onFileUpload,
+ onFileUploadError,
+ });
+ }
+ });
+
+ return [
+ FileHandler.configure({
+ allowedMimeTypes: isDefined(onFileUpload)
+ ? undefined
+ : [...EMAIL_IMAGE_MIME_TYPES],
+ consumePasteEvent: true,
+ onPaste: (editor, files) =>
+ insertUploadingFiles({
+ editor,
+ files,
+ pos: getPositionAfterCursorBlock(editor.state),
+ }),
+ onDrop: (editor, files, pos) =>
+ insertUploadingFiles({ editor, files, pos }),
+ }),
+ ];
+ },
+});
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/extensions/variable-tag/VariableTag.ts b/packages/twenty-front/src/modules/advanced-text-editor/extensions/variable-tag/VariableTag.ts
index 9cdd4198e82..76dda3e0f17 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/extensions/variable-tag/VariableTag.ts
+++ b/packages/twenty-front/src/modules/advanced-text-editor/extensions/variable-tag/VariableTag.ts
@@ -34,6 +34,8 @@ export const VariableTag = Node.create({
},
}),
+ parseHTML: () => [{ tag: 'span[data-type="variableTag"]' }],
+
renderHTML: ({ node, HTMLAttributes }) => {
const variable = node.attrs.variable as string;
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/hooks/useAdvancedTextEditor.ts b/packages/twenty-front/src/modules/advanced-text-editor/hooks/useAdvancedTextEditor.ts
index 90b91d47bf3..b0fd9892c93 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/hooks/useAdvancedTextEditor.ts
+++ b/packages/twenty-front/src/modules/advanced-text-editor/hooks/useAdvancedTextEditor.ts
@@ -1,4 +1,6 @@
import { type AdvancedTextEditorProfile } from '@/advanced-text-editor/types/AdvancedTextEditorProfile';
+import { type UploadErrorHandler } from '@/advanced-text-editor/types/UploadErrorHandler';
+import { type UploadedFile } from '@/advanced-text-editor/types/UploadedFile';
import { type UploadedImage } from '@/advanced-text-editor/types/UploadedImage';
import { buildAdvancedTextEditorExtensions } from '@/advanced-text-editor/utils/buildAdvancedTextEditorExtensions';
import { deserializeAdvancedTextEditorDocument } from '@/advanced-text-editor/utils/deserializeAdvancedTextEditorDocument';
@@ -16,7 +18,9 @@ type UseAdvancedTextEditorProps = {
onFocus?: (editor: Editor) => void;
onBlur?: (editor: Editor) => void;
onImageUpload?: (file: File) => Promise<UploadedImage>;
- onImageUploadError?: (error: Error, file: File) => void;
+ onImageUploadError?: UploadErrorHandler;
+ onFileUpload?: (file: File) => Promise<UploadedFile>;
+ onFileUploadError?: UploadErrorHandler;
content?: Content;
editorProps?: EditorOptions['editorProps'];
};
@@ -32,6 +36,8 @@ export const useAdvancedTextEditor = (
onBlur,
onImageUpload,
onImageUploadError,
+ onFileUpload,
+ onFileUploadError,
content,
editorProps,
}: UseAdvancedTextEditorProps,
@@ -44,11 +50,21 @@ export const useAdvancedTextEditor = (
context: {
onImageUpload,
onImageUploadError,
+ onFileUpload,
+ onFileUploadError,
},
placeholder,
readonly,
}),
- [profile, placeholder, onImageUpload, onImageUploadError, readonly],
+ [
+ profile,
+ placeholder,
+ onImageUpload,
+ onImageUploadError,
+ onFileUpload,
+ onFileUploadError,
+ readonly,
+ ],
);
const getEditorContent = (): Content | undefined => {
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/hooks/useTextBubbleState.ts b/packages/twenty-front/src/modules/advanced-text-editor/hooks/useTextBubbleState.ts
index 22007089f28..f325cfaef77 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/hooks/useTextBubbleState.ts
+++ b/packages/twenty-front/src/modules/advanced-text-editor/hooks/useTextBubbleState.ts
@@ -1,17 +1,36 @@
import { useLiveEditorState } from '@/advanced-text-editor/hooks/useLiveEditorState';
import { type Editor } from '@tiptap/core';
+import {
+ RICH_TEXT_COLORS,
+ RICH_TEXT_TEXT_ALIGNMENTS,
+} from 'twenty-shared/utils';
export const useTextBubbleState = (editor: Editor) => {
const state = useLiveEditorState(editor, (currentEditor) => {
+ const textStyleAttributes = currentEditor.getAttributes('textStyle');
+
return {
isBold: currentEditor.isActive('bold'),
isItalic: currentEditor.isActive('italic'),
isStrike: currentEditor.isActive('strike'),
isUnderline: currentEditor.isActive('underline'),
+ isCode: currentEditor.isActive('code'),
isLink: currentEditor.isActive('link'),
linkHref: currentEditor.getAttributes('link').href || '',
isBulletList: currentEditor.isActive('bulletList'),
isOrderedList: currentEditor.isActive('orderedList'),
+ textColor:
+ RICH_TEXT_COLORS.find(
+ (color) => color === textStyleAttributes.textColor,
+ ) ?? null,
+ backgroundColor:
+ RICH_TEXT_COLORS.find(
+ (color) => color === textStyleAttributes.backgroundColor,
+ ) ?? null,
+ textAlignment:
+ RICH_TEXT_TEXT_ALIGNMENTS.find((alignment) =>
+ currentEditor.isActive({ textAlign: alignment }),
+ ) ?? 'left',
};
});
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/types/AdvancedTextEditorExtensionContext.ts b/packages/twenty-front/src/modules/advanced-text-editor/types/AdvancedTextEditorExtensionContext.ts
index 483626d8bca..e67d49d4837 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/types/AdvancedTextEditorExtensionContext.ts
+++ b/packages/twenty-front/src/modules/advanced-text-editor/types/AdvancedTextEditorExtensionContext.ts
@@ -1,6 +1,10 @@
+import { type UploadErrorHandler } from '@/advanced-text-editor/types/UploadErrorHandler';
+import { type UploadedFile } from '@/advanced-text-editor/types/UploadedFile';
import { type UploadedImage } from '@/advanced-text-editor/types/UploadedImage';
export type AdvancedTextEditorExtensionContext = {
onImageUpload?: (file: File) => Promise<UploadedImage>;
- onImageUploadError?: (error: Error, file: File) => void;
+ onImageUploadError?: UploadErrorHandler;
+ onFileUpload?: (file: File) => Promise<UploadedFile>;
+ onFileUploadError?: UploadErrorHandler;
};
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/types/UploadErrorHandler.ts b/packages/twenty-front/src/modules/advanced-text-editor/types/UploadErrorHandler.ts
new file mode 100644
index 00000000000..c6489ff7b05
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/types/UploadErrorHandler.ts
@@ -0,0 +1,7 @@
+export type UploadErrorHandler = ({
+ error,
+ file,
+}: {
+ error: Error;
+ file: File;
+}) => void;
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/types/UploadedFile.ts b/packages/twenty-front/src/modules/advanced-text-editor/types/UploadedFile.ts
new file mode 100644
index 00000000000..97b63d30d9c
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/types/UploadedFile.ts
@@ -0,0 +1,3 @@
+export type UploadedFile = {
+ url: string;
+};
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/__tests__/buildAdvancedTextEditorExtensions.test.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/__tests__/buildAdvancedTextEditorExtensions.test.ts
index 4f2819483b8..156d00777c9 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/utils/__tests__/buildAdvancedTextEditorExtensions.test.ts
+++ b/packages/twenty-front/src/modules/advanced-text-editor/utils/__tests__/buildAdvancedTextEditorExtensions.test.ts
@@ -53,7 +53,7 @@ describe('buildAdvancedTextEditorExtensions', () => {
'listKit',
'link',
'image',
- 'uploadImage',
+ 'upload',
'variableTag',
'slash-command',
]),
@@ -102,11 +102,11 @@ describe('buildAdvancedTextEditorExtensions', () => {
readonly: false,
});
- const uploadImageExtension = extensions.find(
- (extension) => extension.name === 'uploadImage',
+ const uploadExtension = extensions.find(
+ (extension) => extension.name === 'upload',
);
- expect(uploadImageExtension?.options.onImageUpload).toBe(onImageUpload);
+ expect(uploadExtension?.options.onImageUpload).toBe(onImageUpload);
});
});
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/__tests__/buildRecordRichTextExtensions.test.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/__tests__/buildRecordRichTextExtensions.test.ts
new file mode 100644
index 00000000000..0af654e649d
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/utils/__tests__/buildRecordRichTextExtensions.test.ts
@@ -0,0 +1,212 @@
+import { Editor, type JSONContent } from '@tiptap/core';
+import { richTextDocumentSchema } from 'twenty-shared/utils';
+
+import { type AdvancedTextEditorProfile } from '@/advanced-text-editor/types/AdvancedTextEditorProfile';
+import { buildAdvancedTextEditorExtensions } from '@/advanced-text-editor/utils/buildAdvancedTextEditorExtensions';
+import { buildRecordRichTextExtensions } from '@/advanced-text-editor/utils/buildRecordRichTextExtensions';
+import { getStorableEditorDocument } from '@/advanced-text-editor/utils/getStorableEditorDocument';
+import { serializeAdvancedTextEditorDocument } from '@/advanced-text-editor/utils/serializeAdvancedTextEditorDocument';
+import { serializeJsonContentAsAdvancedTextEditorDocument } from '@/advanced-text-editor/utils/serializeJsonContentAsAdvancedTextEditorDocument';
+
+jest.mock('@tiptap/react', () => ({
+ ...jest.requireActual('@tiptap/react'),
+ ReactNodeViewRenderer: () => () => ({}),
+}));
+
+const text = (value: string, marks?: JSONContent['marks']): JSONContent =>
+ marks === undefined
+ ? { type: 'text', text: value }
+ : { type: 'text', text: value, marks };
+
+const paragraph = (value: string): JSONContent => ({
+ type: 'paragraph',
+ content: [text(value)],
+});
+
+const DOCUMENT_WITH_EVERY_NODE_AND_MARK: JSONContent = {
+ type: 'doc',
+ attrs: { schemaVersion: 1 },
+ content: [
+ {
+ type: 'heading',
+ attrs: { level: 2, textAlign: 'justify' },
+ content: [text('Heading')],
+ },
+ {
+ type: 'paragraph',
+ attrs: { textAlign: 'center' },
+ content: [
+ text('bold', [{ type: 'bold' }]),
+ text('italic', [{ type: 'italic' }]),
+ text('underline', [{ type: 'underline' }]),
+ text('strike', [{ type: 'strike' }]),
+ text('code', [{ type: 'code' }]),
+ text('link', [{ type: 'link', attrs: { href: 'https://twenty.com' } }]),
+ text('colored', [
+ {
+ type: 'textStyle',
+ attrs: { textColor: 'red', backgroundColor: 'yellow' },
+ },
+ ]),
+ { type: 'hardBreak' },
+ {
+ type: 'mentionTag',
+ attrs: {
+ recordId: '20202020-0000-4000-8000-000000000001',
+ objectNameSingular: 'person',
+ label: 'Tim Apple',
+ },
+ },
+ ],
+ },
+ {
+ type: 'bulletList',
+ content: [{ type: 'listItem', content: [paragraph('bullet')] }],
+ },
+ {
+ type: 'orderedList',
+ attrs: { start: 3 },
+ content: [{ type: 'listItem', content: [paragraph('ordered')] }],
+ },
+ {
+ type: 'taskList',
+ content: [
+ {
+ type: 'taskItem',
+ attrs: { checked: true },
+ content: [paragraph('task')],
+ },
+ ],
+ },
+ { type: 'blockquote', content: [paragraph('quote')] },
+ {
+ type: 'codeBlock',
+ attrs: { language: null },
+ content: [text('const value = 1;')],
+ },
+ { type: 'divider' },
+ {
+ type: 'image',
+ attrs: {
+ src: 'https://twenty.com/image.png',
+ alt: 'image.png',
+ title: 'Caption',
+ width: 320,
+ },
+ },
+ {
+ type: 'file',
+ attrs: { url: 'https://twenty.com/file.pdf', name: 'file.pdf' },
+ },
+ {
+ type: 'table',
+ content: [
+ {
+ type: 'tableRow',
+ content: [
+ { type: 'tableHeader', content: [paragraph('header')] },
+ { type: 'tableHeader', content: [paragraph('header')] },
+ ],
+ },
+ {
+ type: 'tableRow',
+ content: [
+ {
+ type: 'tableCell',
+ attrs: { colspan: 2, rowspan: 1, colwidth: [120, 80] },
+ content: [paragraph('cell')],
+ },
+ ],
+ },
+ ],
+ },
+ ],
+};
+
+const createEditor = (
+ content: JSONContent = DOCUMENT_WITH_EVERY_NODE_AND_MARK,
+) =>
+ new Editor({
+ extensions: buildAdvancedTextEditorExtensions({
+ profile: {
+ chrome: 'document',
+ variant: 'app',
+ minHeight: 0,
+ enableFullScreen: false,
+ buildExtensions: buildRecordRichTextExtensions,
+ } satisfies AdvancedTextEditorProfile,
+ context: {},
+ placeholder: undefined,
+ readonly: false,
+ }),
+ content,
+ });
+
+describe('buildRecordRichTextExtensions', () => {
+ it('uses a fixture the rich text document schema accepts', () => {
+ expect(
+ richTextDocumentSchema.safeParse(DOCUMENT_WITH_EVERY_NODE_AND_MARK)
+ .success,
+ ).toBe(true);
+ });
+
+ it('keeps every node, mark and attribute the rich text document schema allows', () => {
+ const editor = createEditor();
+
+ expect(
+ JSON.parse(serializeAdvancedTextEditorDocument(editor)),
+ ).toMatchObject(DOCUMENT_WITH_EVERY_NODE_AND_MARK);
+
+ editor.destroy();
+ });
+
+ it('produces documents the rich text document schema accepts', () => {
+ const editor = createEditor();
+
+ const result = richTextDocumentSchema.safeParse(
+ JSON.parse(serializeAdvancedTextEditorDocument(editor)),
+ );
+
+ expect(result).toEqual(expect.objectContaining({ success: true }));
+
+ editor.destroy();
+ });
+
+ it('stores documents without images the rich text document validator would reject', () => {
+ const editor = createEditor();
+
+ editor.commands.setContent(
+ '<table><tr><td><img src="file:///C:/pasted.png"></td></tr></table>',
+ );
+
+ expect(JSON.stringify(editor.getJSON())).toContain('pasted.png');
+
+ const storableDocument = serializeJsonContentAsAdvancedTextEditorDocument(
+ getStorableEditorDocument(editor),
+ );
+
+ expect(storableDocument).not.toContain('pasted.png');
+ expect(
+ richTextDocumentSchema.safeParse(JSON.parse(storableDocument)).success,
+ ).toBe(true);
+
+ editor.destroy();
+ });
+
+ it('drops links the rich text document validator would reject', () => {
+ const editor = createEditor();
+
+ editor.commands.setContent(
+ '<p><a href="#cite-1">anchor</a> <a href="ftp://twenty.com">ftp</a> <a href="https://twenty.com">safe</a></p>',
+ );
+
+ const linkHrefs = editor
+ .getJSON()
+ .content?.[0]?.content?.flatMap((node) => node.marks ?? [])
+ .map((mark) => mark.attrs?.href);
+
+ expect(linkHrefs).toEqual(['https://twenty.com']);
+
+ editor.destroy();
+ });
+});
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/__tests__/insertUploadingFile.test.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/__tests__/insertUploadingFile.test.ts
new file mode 100644
index 00000000000..02b8f991c0f
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/utils/__tests__/insertUploadingFile.test.ts
@@ -0,0 +1,270 @@
+import { Editor } from '@tiptap/core';
+import { Slice } from '@tiptap/pm/model';
+
+import { type AdvancedTextEditorExtensionContext } from '@/advanced-text-editor/types/AdvancedTextEditorExtensionContext';
+import { type AdvancedTextEditorProfile } from '@/advanced-text-editor/types/AdvancedTextEditorProfile';
+import { buildAdvancedTextEditorExtensions } from '@/advanced-text-editor/utils/buildAdvancedTextEditorExtensions';
+import { buildRecordRichTextExtensions } from '@/advanced-text-editor/utils/buildRecordRichTextExtensions';
+import { getStorableEditorDocument } from '@/advanced-text-editor/utils/getStorableEditorDocument';
+import { insertUploadingFile } from '@/advanced-text-editor/utils/insertUploadingFile';
+import { insertUploadingImage } from '@/advanced-text-editor/utils/insertUploadingImage';
+
+jest.mock('@tiptap/react', () => ({
+ ...jest.requireActual('@tiptap/react'),
+ ReactNodeViewRenderer: () => () => ({}),
+}));
+
+const originalCreateObjectURL = global.URL.createObjectURL;
+const originalRevokeObjectURL = global.URL.revokeObjectURL;
+
+beforeAll(() => {
+ global.URL.createObjectURL = jest.fn(() => 'blob:placeholder');
+ global.URL.revokeObjectURL = jest.fn();
+});
+
+afterAll(() => {
+ global.URL.createObjectURL = originalCreateObjectURL;
+ global.URL.revokeObjectURL = originalRevokeObjectURL;
+});
+
+const createEditorSavingEveryUpdate = (
+ context: AdvancedTextEditorExtensionContext = {},
+) => {
+ const savedDocuments: string[] = [];
+
+ const editor = new Editor({
+ extensions: buildAdvancedTextEditorExtensions({
+ profile: {
+ chrome: 'document',
+ variant: 'app',
+ minHeight: 0,
+ enableFullScreen: false,
+ buildExtensions: buildRecordRichTextExtensions,
+ } satisfies AdvancedTextEditorProfile,
+ context,
+ placeholder: undefined,
+ readonly: false,
+ }),
+ onUpdate: ({ editor: updatedEditor }) => {
+ savedDocuments.push(
+ JSON.stringify(getStorableEditorDocument(updatedEditor)),
+ );
+ },
+ });
+
+ return { editor, savedDocuments };
+};
+
+const flushPromises = () => new Promise((resolve) => setTimeout(resolve, 0));
+
+const FILE = new File(['content'], 'report.pdf', { type: 'application/pdf' });
+
+const isClipboardEvent = (event: Event): event is ClipboardEvent =>
+ 'clipboardData' in event;
+
+const pasteFiles = ({ editor, files }: { editor: Editor; files: File[] }) => {
+ const pasteEvent = Object.assign(new Event('paste', { cancelable: true }), {
+ clipboardData: { files, getData: () => '' },
+ });
+
+ if (!isClipboardEvent(pasteEvent)) {
+ throw new Error('Expected a paste event carrying clipboard data');
+ }
+
+ editor.view.someProp('handlePaste', (handlePaste) =>
+ handlePaste(editor.view, pasteEvent, Slice.empty),
+ );
+};
+
+const onFileUpload = async (file: File) => ({
+ url: `https://files.twenty.com/${file.name}`,
+});
+
+describe('uploading into the editor', () => {
+ it('saves text typed during an upload, then the uploaded file url', async () => {
+ const { editor, savedDocuments } = createEditorSavingEveryUpdate();
+
+ insertUploadingFile({
+ editor,
+ file: FILE,
+ onFileUpload: async () => ({
+ url: 'https://files.twenty.com/report.pdf',
+ }),
+ });
+ editor.commands.insertContent('typed while uploading');
+
+ expect(savedDocuments.at(-1)).toContain('typed while uploading');
+ expect(savedDocuments.at(-1)).not.toContain('blob:placeholder');
+
+ await flushPromises();
+
+ expect(savedDocuments.at(-1)).toContain(
+ 'https://files.twenty.com/report.pdf',
+ );
+
+ editor.destroy();
+ });
+
+ it('saves the uploaded image url once the image upload settles', async () => {
+ const { editor, savedDocuments } = createEditorSavingEveryUpdate();
+
+ insertUploadingImage({
+ editor,
+ file: FILE,
+ onImageUpload: async () => ({ url: 'https://files.twenty.com/logo.png' }),
+ });
+
+ await flushPromises();
+
+ expect(savedDocuments.at(-1)).toContain(
+ 'https://files.twenty.com/logo.png',
+ );
+
+ editor.destroy();
+ });
+
+ it('saves the document without the placeholder when the upload fails', async () => {
+ const { editor, savedDocuments } = createEditorSavingEveryUpdate();
+
+ insertUploadingFile({
+ editor,
+ file: FILE,
+ onFileUpload: async () => {
+ throw new Error('Upload failed');
+ },
+ });
+
+ await flushPromises();
+
+ expect(savedDocuments.at(-1)).not.toContain('blob:placeholder');
+
+ editor.destroy();
+ });
+
+ it('uploads every pasted file, images as images and the rest as files', async () => {
+ const { editor, savedDocuments } = createEditorSavingEveryUpdate({
+ onImageUpload: async () => ({ url: 'https://files.twenty.com/logo.png' }),
+ onFileUpload: async () => ({
+ url: 'https://files.twenty.com/report.pdf',
+ }),
+ });
+ pasteFiles({
+ editor,
+ files: [new File(['image'], 'logo.png', { type: 'image/png' }), FILE],
+ });
+ await flushPromises();
+
+ expect(JSON.parse(savedDocuments.at(-1) ?? '{}').content).toEqual(
+ expect.arrayContaining([
+ expect.objectContaining({
+ type: 'image',
+ attrs: expect.objectContaining({
+ src: 'https://files.twenty.com/logo.png',
+ }),
+ }),
+ expect.objectContaining({
+ type: 'file',
+ attrs: expect.objectContaining({
+ url: 'https://files.twenty.com/report.pdf',
+ }),
+ }),
+ ]),
+ );
+
+ editor.destroy();
+ });
+
+ it('pastes a file after the task item holding the cursor, not inside it', async () => {
+ const { editor } = createEditorSavingEveryUpdate({ onFileUpload });
+
+ editor.commands.setContent({
+ type: 'doc',
+ content: [
+ {
+ type: 'taskList',
+ content: ['First task', 'Second task'].map((text) => ({
+ type: 'taskItem',
+ attrs: { checked: false },
+ content: [{ type: 'paragraph', content: [{ type: 'text', text }] }],
+ })),
+ },
+ ],
+ });
+ editor.commands.setTextSelection(13);
+
+ pasteFiles({ editor, files: [FILE] });
+ await flushPromises();
+
+ expect(editor.getJSON().content?.map(({ type }) => type)).toEqual([
+ 'taskList',
+ 'file',
+ 'taskList',
+ ]);
+
+ editor.destroy();
+ });
+
+ it('pastes files in order after the paragraph holding the cursor', async () => {
+ const { editor } = createEditorSavingEveryUpdate({ onFileUpload });
+
+ editor.commands.setContent({
+ type: 'doc',
+ content: [
+ { type: 'paragraph', content: [{ type: 'text', text: 'hello world' }] },
+ ],
+ });
+ editor.commands.setTextSelection(6);
+
+ pasteFiles({
+ editor,
+ files: [
+ new File(['first'], 'first.pdf', { type: 'application/pdf' }),
+ new File(['second'], 'second.pdf', { type: 'application/pdf' }),
+ ],
+ });
+ await flushPromises();
+
+ expect(editor.getJSON().content).toEqual([
+ expect.objectContaining({
+ type: 'paragraph',
+ content: [expect.objectContaining({ text: 'hello world' })],
+ }),
+ expect.objectContaining({
+ attrs: expect.objectContaining({ name: 'first.pdf' }),
+ }),
+ expect.objectContaining({
+ attrs: expect.objectContaining({ name: 'second.pdf' }),
+ }),
+ ]);
+
+ editor.destroy();
+ });
+
+ it('never brings the placeholder back when undoing a slow upload', async () => {
+ const { editor } = createEditorSavingEveryUpdate();
+ let resolveUpload: (uploadedFile: { url: string }) => void = () => {};
+
+ insertUploadingFile({
+ editor,
+ file: FILE,
+ onFileUpload: () =>
+ new Promise((resolve) => {
+ resolveUpload = resolve;
+ }),
+ });
+
+ const dateNowSpy = jest
+ .spyOn(Date, 'now')
+ .mockReturnValue(Date.now() + 60_000);
+
+ resolveUpload({ url: 'https://files.twenty.com/report.pdf' });
+ await flushPromises();
+
+ editor.commands.undo();
+
+ expect(JSON.stringify(editor.getJSON())).not.toContain('blob:placeholder');
+
+ dateNowSpy.mockRestore();
+ editor.destroy();
+ });
+});
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/buildFullRichTextExtensions.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/buildFullRichTextExtensions.ts
index 01479f153af..fbc5d4c55b5 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/utils/buildFullRichTextExtensions.ts
+++ b/packages/twenty-front/src/modules/advanced-text-editor/utils/buildFullRichTextExtensions.ts
@@ -1,8 +1,8 @@
import { Blockquote } from '@/advanced-text-editor/extensions/blockquote/Blockquote';
import { EmptyBlockHint } from '@/advanced-text-editor/extensions/empty-block-hint/EmptyBlockHint';
import { ResizableImage } from '@/advanced-text-editor/extensions/resizable-image/ResizableImage';
-import { UploadImageExtension } from '@/advanced-text-editor/extensions/resizable-image/UploadImageExtension';
import { SlashCommand } from '@/advanced-text-editor/extensions/slash-command/SlashCommand';
+import { UploadExtension } from '@/advanced-text-editor/extensions/upload/UploadExtension';
import { VariableTag } from '@/advanced-text-editor/extensions/variable-tag/VariableTag';
import { type AdvancedTextEditorExtensionContext } from '@/advanced-text-editor/types/AdvancedTextEditorExtensionContext';
import { type AnyExtension } from '@tiptap/core';
@@ -26,7 +26,10 @@ export const buildFullRichTextExtensions = (
Blockquote,
Link.configure({ openOnClick: false }),
ResizableImage,
- UploadImageExtension.configure(context),
+ UploadExtension.configure({
+ onImageUpload: context.onImageUpload,
+ onImageUploadError: context.onImageUploadError,
+ }),
SlashCommand,
EmptyBlockHint,
];
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/buildRecordRichTextExtensions.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/buildRecordRichTextExtensions.ts
new file mode 100644
index 00000000000..441df984970
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/utils/buildRecordRichTextExtensions.ts
@@ -0,0 +1,63 @@
+import { Blockquote } from '@/advanced-text-editor/extensions/blockquote/Blockquote';
+import { RichTextDividerNode } from '@/advanced-text-editor/extensions/blocks/RichTextDividerNode';
+import { EmptyBlockHint } from '@/advanced-text-editor/extensions/empty-block-hint/EmptyBlockHint';
+import { FileNode } from '@/advanced-text-editor/extensions/file/FileNode';
+import { ResizableImage } from '@/advanced-text-editor/extensions/resizable-image/ResizableImage';
+import { RichTextColor } from '@/advanced-text-editor/extensions/rich-text-color/RichTextColor';
+import { SlashCommand } from '@/advanced-text-editor/extensions/slash-command/SlashCommand';
+import { UploadExtension } from '@/advanced-text-editor/extensions/upload/UploadExtension';
+import { type AdvancedTextEditorExtensionContext } from '@/advanced-text-editor/types/AdvancedTextEditorExtensionContext';
+import { MentionTag } from '@/mention/extensions/MentionTag';
+import { type AnyExtension } from '@tiptap/core';
+import { Bold } from '@tiptap/extension-bold';
+import { Code } from '@tiptap/extension-code';
+import { CodeBlock } from '@tiptap/extension-code-block';
+import { Heading } from '@tiptap/extension-heading';
+import { Italic } from '@tiptap/extension-italic';
+import { Link } from '@tiptap/extension-link';
+import { ListKit } from '@tiptap/extension-list';
+import { Strike } from '@tiptap/extension-strike';
+import { TableKit } from '@tiptap/extension-table';
+import { TextAlign } from '@tiptap/extension-text-align';
+import { TextStyle } from '@tiptap/extension-text-style';
+import { Underline } from '@tiptap/extension-underline';
+import { isStorableRichTextUrl, TIPTAP_NODE_TYPES } from 'twenty-shared/utils';
+
+export const buildRecordRichTextExtensions = ({
+ onImageUpload,
+ onImageUploadError,
+ onFileUpload,
+ onFileUploadError,
+}: AdvancedTextEditorExtensionContext): AnyExtension[] => [
+ Bold,
+ Italic,
+ Strike,
+ Underline,
+ Code,
+ TextStyle,
+ RichTextColor,
+ Heading.configure({ levels: [1, 2, 3, 4, 5, 6] }),
+ TextAlign.configure({
+ types: [TIPTAP_NODE_TYPES.HEADING, TIPTAP_NODE_TYPES.PARAGRAPH],
+ }),
+ ListKit.configure({ taskItem: { nested: true } }),
+ Blockquote,
+ CodeBlock,
+ TableKit.configure({ table: { resizable: true } }),
+ RichTextDividerNode,
+ Link.configure({
+ openOnClick: false,
+ isAllowedUri: isStorableRichTextUrl,
+ }),
+ ResizableImage,
+ UploadExtension.configure({
+ onImageUpload,
+ onImageUploadError,
+ onFileUpload,
+ onFileUploadError,
+ }),
+ FileNode,
+ MentionTag,
+ SlashCommand,
+ EmptyBlockHint,
+];
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/getPositionAfterCursorBlock.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/getPositionAfterCursorBlock.ts
new file mode 100644
index 00000000000..20f9773adbc
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/utils/getPositionAfterCursorBlock.ts
@@ -0,0 +1,23 @@
+import { type EditorState } from '@tiptap/pm/state';
+import { TIPTAP_NODE_TYPES } from 'twenty-shared/utils';
+
+const LIST_ITEM_NODE_TYPES: string[] = [
+ TIPTAP_NODE_TYPES.LIST_ITEM,
+ TIPTAP_NODE_TYPES.TASK_ITEM,
+];
+
+export const getPositionAfterCursorBlock = ({
+ selection: { $head },
+}: EditorState): number => {
+ if ($head.depth === 0) {
+ return $head.pos;
+ }
+
+ for (let depth = $head.depth; depth > 0; depth--) {
+ if (LIST_ITEM_NODE_TYPES.includes($head.node(depth).type.name)) {
+ return $head.after(depth);
+ }
+ }
+
+ return $head.after();
+};
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/getStorableEditorDocument.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/getStorableEditorDocument.ts
new file mode 100644
index 00000000000..2b9e3b604d4
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/utils/getStorableEditorDocument.ts
@@ -0,0 +1,43 @@
+import { type Editor, type JSONContent } from '@tiptap/core';
+import { type Node } from '@tiptap/pm/model';
+import {
+ getTipTapFileUrlAttributeName,
+ isDefined,
+ isStorableRichTextUrl,
+} from 'twenty-shared/utils';
+
+const isUnstorableUploadNode = (node: Node) => {
+ const fileUrlAttributeName = getTipTapFileUrlAttributeName(node.type.name);
+
+ return (
+ isDefined(fileUrlAttributeName) &&
+ !isStorableRichTextUrl(node.attrs[fileUrlAttributeName])
+ );
+};
+
+export const getStorableEditorDocument = (editor: Editor): JSONContent => {
+ const unstorableNodeRanges: { from: number; to: number }[] = [];
+
+ editor.state.doc.descendants((node, position) => {
+ if (isUnstorableUploadNode(node)) {
+ unstorableNodeRanges.push({
+ from: position,
+ to: position + node.nodeSize,
+ });
+
+ return false;
+ }
+ });
+
+ if (unstorableNodeRanges.length === 0) {
+ return editor.getJSON();
+ }
+
+ const transaction = editor.state.tr;
+
+ for (const { from, to } of unstorableNodeRanges.reverse()) {
+ transaction.delete(from, to);
+ }
+
+ return transaction.doc.toJSON();
+};
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/insertUploadingFile.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/insertUploadingFile.ts
new file mode 100644
index 00000000000..724e108844c
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/utils/insertUploadingFile.ts
@@ -0,0 +1,32 @@
+import { type Editor } from '@tiptap/core';
+import { TIPTAP_NODE_TYPES } from 'twenty-shared/utils';
+
+import { type UploadErrorHandler } from '@/advanced-text-editor/types/UploadErrorHandler';
+import { type UploadedFile } from '@/advanced-text-editor/types/UploadedFile';
+import { insertUploadingNode } from '@/advanced-text-editor/utils/insertUploadingNode';
+
+type InsertUploadingFileArgs = {
+ editor: Editor;
+ file: File;
+ pos?: number;
+ onFileUpload: (file: File) => Promise<UploadedFile>;
+ onFileUploadError?: UploadErrorHandler;
+};
+
+export const insertUploadingFile = ({
+ editor,
+ file,
+ pos,
+ onFileUpload,
+ onFileUploadError,
+}: InsertUploadingFileArgs) =>
+ insertUploadingNode({
+ editor,
+ file,
+ pos,
+ nodeType: TIPTAP_NODE_TYPES.FILE,
+ placeholderAttributes: { name: file.name },
+ upload: onFileUpload,
+ getUploadedAttributes: (uploadedFile) => ({ url: uploadedFile.url }),
+ onUploadError: onFileUploadError,
+ });
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/insertUploadingImage.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/insertUploadingImage.ts
index 20f6568a135..b15678be889 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/utils/insertUploadingImage.ts
+++ b/packages/twenty-front/src/modules/advanced-text-editor/utils/insertUploadingImage.ts
@@ -1,14 +1,16 @@
import { type Editor } from '@tiptap/core';
-import { type Node } from '@tiptap/pm/model';
+import { TIPTAP_NODE_TYPES } from 'twenty-shared/utils';
+import { type UploadErrorHandler } from '@/advanced-text-editor/types/UploadErrorHandler';
import { type UploadedImage } from '@/advanced-text-editor/types/UploadedImage';
+import { insertUploadingNode } from '@/advanced-text-editor/utils/insertUploadingNode';
type InsertUploadingImageArgs = {
editor: Editor;
file: File;
pos?: number;
onImageUpload: (file: File) => Promise<UploadedImage>;
- onImageUploadError?: (error: Error, file: File) => void;
+ onImageUploadError?: UploadErrorHandler;
};
export const insertUploadingImage = ({
@@ -17,66 +19,17 @@ export const insertUploadingImage = ({
pos,
onImageUpload,
onImageUploadError,
-}: InsertUploadingImageArgs) => {
- const { view } = editor;
- const placeholderSrc = URL.createObjectURL(file);
-
- const { tr, schema } = view.state;
- const imageNode = schema.nodes.image.create({
- src: placeholderSrc,
- alt: file.name,
+}: InsertUploadingImageArgs) =>
+ insertUploadingNode({
+ editor,
+ file,
+ pos,
+ nodeType: TIPTAP_NODE_TYPES.IMAGE,
+ placeholderAttributes: { alt: file.name },
+ upload: onImageUpload,
+ getUploadedAttributes: (uploadedImage) => ({
+ fileId: uploadedImage.fileId ?? null,
+ src: uploadedImage.url,
+ }),
+ onUploadError: onImageUploadError,
});
-
- editor.extensionStorage.uploadImage.placeholderImages.add(placeholderSrc);
-
- const resolvedPos =
- pos !== undefined
- ? view.state.doc.resolve(pos)
- : view.state.selection.$head;
-
- const transaction = tr.insert(resolvedPos.pos, imageNode);
- view.dispatch(transaction);
-
- onImageUpload(file)
- .then((uploadedImage) => {
- const updateTr = view.state.tr;
-
- const predicate = (node: Node) =>
- node.type.name === 'image' && node.attrs.src === placeholderSrc;
-
- view.state.doc.descendants((node, pos) => {
- if (predicate(node)) {
- updateTr.setNodeMarkup(pos, undefined, {
- ...node.attrs,
- fileId: uploadedImage.fileId ?? null,
- src: uploadedImage.url,
- });
- return false;
- }
- });
-
- view.dispatch(updateTr);
- })
- .catch((error: Error) => {
- const removeTr = view.state.tr;
- const predicate = (node: Node) =>
- node.type.name === 'image' && node.attrs.src === placeholderSrc;
-
- view.state.doc.descendants((node, pos) => {
- if (predicate(node)) {
- removeTr.delete(pos, pos + node.nodeSize);
- return false; // Stop traversal after finding the target
- }
- });
-
- view.dispatch(removeTr);
-
- onImageUploadError?.(error, file);
- })
- .finally(() => {
- editor.extensionStorage.uploadImage.placeholderImages.delete(
- placeholderSrc,
- );
- URL.revokeObjectURL(placeholderSrc);
- });
-};
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/insertUploadingNode.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/insertUploadingNode.ts
new file mode 100644
index 00000000000..2bdf0ae10eb
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/utils/insertUploadingNode.ts
@@ -0,0 +1,93 @@
+import { type Editor } from '@tiptap/core';
+import { type Node } from '@tiptap/pm/model';
+import { doNotTranslate } from 'twenty-shared/i18n';
+import {
+ getTipTapFileUrlAttributeName,
+ isDefined,
+ type TIPTAP_NODE_TYPES,
+} from 'twenty-shared/utils';
+
+import { type UploadErrorHandler } from '@/advanced-text-editor/types/UploadErrorHandler';
+
+type InsertUploadingNodeArgs<TUploaded> = {
+ editor: Editor;
+ file: File;
+ pos?: number;
+ nodeType: typeof TIPTAP_NODE_TYPES.IMAGE | typeof TIPTAP_NODE_TYPES.FILE;
+ placeholderAttributes: Record<string, unknown>;
+ upload: (file: File) => Promise<TUploaded>;
+ getUploadedAttributes: (uploaded: TUploaded) => Record<string, unknown>;
+ onUploadError?: UploadErrorHandler;
+};
+
+export const insertUploadingNode = <TUploaded>({
+ editor,
+ file,
+ pos,
+ nodeType,
+ placeholderAttributes,
+ upload,
+ getUploadedAttributes,
+ onUploadError,
+}: InsertUploadingNodeArgs<TUploaded>) => {
+ const urlAttributeName = getTipTapFileUrlAttributeName(nodeType);
+
+ if (!isDefined(urlAttributeName)) {
+ throw new Error(
+ doNotTranslate(`No file URL attribute for node type ${nodeType}`),
+ );
+ }
+
+ const { view } = editor;
+ const placeholderUrl = URL.createObjectURL(file);
+
+ const isPlaceholderNode = (node: Node) =>
+ node.type.name === nodeType &&
+ node.attrs[urlAttributeName] === placeholderUrl;
+
+ const placeholderNode = view.state.schema.nodes[nodeType].create({
+ ...placeholderAttributes,
+ [urlAttributeName]: placeholderUrl,
+ });
+
+ view.dispatch(
+ view.state.tr.insert(
+ pos ?? view.state.selection.$head.pos,
+ placeholderNode,
+ ),
+ );
+
+ upload(file)
+ .then((uploaded) => {
+ const updateTr = view.state.tr;
+
+ view.state.doc.descendants((node, nodePos) => {
+ if (isPlaceholderNode(node)) {
+ updateTr.setNodeMarkup(nodePos, undefined, {
+ ...node.attrs,
+ ...getUploadedAttributes(uploaded),
+ });
+ return false;
+ }
+ });
+
+ view.dispatch(updateTr.setMeta('addToHistory', false));
+ })
+ .catch((error: Error) => {
+ const removeTr = view.state.tr;
+
+ view.state.doc.descendants((node, nodePos) => {
+ if (isPlaceholderNode(node)) {
+ removeTr.delete(nodePos, nodePos + node.nodeSize);
+ return false;
+ }
+ });
+
+ view.dispatch(removeTr.setMeta('addToHistory', false));
+
+ onUploadError?.({ error, file });
+ })
+ .finally(() => {
+ URL.revokeObjectURL(placeholderUrl);
+ });
+};
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/isImageFile.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/isImageFile.ts
new file mode 100644
index 00000000000..38f6f5fe1eb
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/utils/isImageFile.ts
@@ -0,0 +1,4 @@
+import { EMAIL_IMAGE_MIME_TYPES } from 'twenty-shared/constants';
+
+export const isImageFile = (file: File) =>
+ EMAIL_IMAGE_MIME_TYPES.some((mimeType) => mimeType === file.type);
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/parseLegacyMarkdownDocumentWithVariables.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/parseLegacyMarkdownDocumentWithVariables.ts
new file mode 100644
index 00000000000..bf43719f224
--- /dev/null
+++ b/packages/twenty-front/src/modules/advanced-text-editor/utils/parseLegacyMarkdownDocumentWithVariables.ts
@@ -0,0 +1,29 @@
+import { type Content } from '@tiptap/core';
+import { Marked, type TokenizerAndRendererExtension } from 'marked';
+
+const VARIABLE_TAG_MARKDOWN_EXTENSION: TokenizerAndRendererExtension = {
+ name: 'variableTag',
+ level: 'inline',
+ start: (source) => source.indexOf('{{'),
+ tokenizer: (source) => {
+ const match = /^{{[^{}]+}}/.exec(source);
+
+ return match ? { type: 'variableTag', raw: match[0] } : undefined;
+ },
+ renderer: ({ raw }) => {
+ const variableTagElement = document.createElement('span');
+
+ variableTagElement.dataset.type = 'variableTag';
+ variableTagElement.dataset.variable = raw;
+
+ return variableTagElement.outerHTML;
+ },
+};
+
+export const parseLegacyMarkdownDocumentWithVariables = (
+ serializedDocument: string,
+): Content =>
+ new Marked({ extensions: [VARIABLE_TAG_MARKDOWN_EXTENSION] }).parse(
+ serializedDocument,
+ { async: false },
+ );
diff --git a/packages/twenty-front/src/modules/blocknote-editor/blocks/FileBlock.tsx b/packages/twenty-front/src/modules/blocknote-editor/blocks/FileBlock.tsx
deleted file mode 100644
index 51304967b83..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/blocks/FileBlock.tsx
+++ /dev/null
@@ -1,120 +0,0 @@
-import { createReactBlockSpec } from '@blocknote/react';
-import { styled } from '@linaria/react';
-import { isNonEmptyString } from '@sniptt/guards';
-import { type ChangeEvent, useRef } from 'react';
-import { themeCssVariables } from 'twenty-ui/theme';
-
-import { type AttachmentFileCategory } from '@/activities/files/types/AttachmentFileCategory';
-import { getFileType } from '@/activities/files/utils/getFileType';
-import { FileIcon } from '@/file/components/FileIcon';
-import { t } from '@lingui/core/macro';
-import { getSafeUrl, isDefined } from 'twenty-shared/utils';
-import { Button } from 'twenty-ui/primitives/input';
-
-const StyledFileInput = styled.input`
- display: none;
-`;
-
-const StyledFileLine = styled.div`
- align-items: center;
- display: flex;
- gap: ${themeCssVariables.spacing[2]};
-`;
-
-const StyledLink = styled.a`
- align-items: center;
- color: ${themeCssVariables.font.color.primary};
- display: flex;
- text-decoration: none;
- :hover {
- color: ${themeCssVariables.font.color.secondary};
- }
-`;
-
-const StyledUploadFileContainer = styled.div`
- align-items: center;
- display: flex;
- gap: ${themeCssVariables.spacing[2]};
-`;
-
-export const FileBlock = createReactBlockSpec(
- {
- type: 'file',
- propSchema: {
- url: {
- default: '',
- },
- name: {
- default: '',
- },
- fileCategory: {
- default: 'OTHER' as AttachmentFileCategory,
- },
- },
- content: 'none',
- },
- {
- render: ({ block, editor }) => {
- // oxlint-disable-next-line react-hooks/rules-of-hooks
- const inputFileRef = useRef<HTMLInputElement>(null);
-
- const handleUploadAttachment = async (file: File) => {
- if (!isDefined(file)) {
- return '';
- }
- const fileUrl = await editor.uploadFile?.(file);
-
- if (!isNonEmptyString(fileUrl)) {
- return '';
- }
-
- editor.updateBlock(block.id, {
- props: {
- ...block.props,
- url: fileUrl,
- fileCategory: getFileType(file.name),
- name: file.name,
- },
- });
- };
- const handleUploadFileClick = () => {
- inputFileRef?.current?.click?.();
- };
- const handleFileChange = (e: ChangeEvent<HTMLInputElement>) => {
- if (isDefined(e.target.files))
- handleUploadAttachment?.(e.target.files[0]);
- };
-
- const safeUrl = getSafeUrl(block.props.url);
-
- if (safeUrl) {
- return (
- <StyledFileLine>
- <FileIcon
- fileCategory={block.props.fileCategory as AttachmentFileCategory}
- thumbnailUrl={safeUrl}
- />
- <StyledLink
- href={safeUrl}
- target="_blank"
- rel="noopener noreferrer"
- >
- {block.props.name}
- </StyledLink>
- </StyledFileLine>
- );
- }
-
- return (
- <StyledUploadFileContainer>
- <StyledFileInput
- ref={inputFileRef}
- onChange={handleFileChange}
- type="file"
- />
- <Button onClick={handleUploadFileClick}>{t`Upload File`}</Button>
- </StyledUploadFileContainer>
- );
- },
- },
-);
diff --git a/packages/twenty-front/src/modules/blocknote-editor/blocks/MentionInlineContent.tsx b/packages/twenty-front/src/modules/blocknote-editor/blocks/MentionInlineContent.tsx
deleted file mode 100644
index e7712ccebcc..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/blocks/MentionInlineContent.tsx
+++ /dev/null
@@ -1,127 +0,0 @@
-import { MentionRecordChip } from '@/mention/components/MentionRecordChip';
-import { objectMetadataItemsSelector } from '@/object-metadata/states/objectMetadataItemsSelector';
-import { RecordChip } from '@/object-record/components/RecordChip';
-import { useFindOneRecord } from '@/object-record/hooks/useFindOneRecord';
-import { createReactInlineContentSpec } from '@blocknote/react';
-import { styled } from '@linaria/react';
-import { t } from '@lingui/core/macro';
-import { isNonEmptyString } from '@sniptt/guards';
-import { isDefined } from 'twenty-shared/utils';
-import { Chip } from 'twenty-ui/primitives/data-display';
-import { themeCssVariables } from 'twenty-ui/theme';
-import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-
-const StyledRecordChipContainer = styled.div`
- display: inline;
- height: auto;
- margin: 0;
- padding: 0 ${themeCssVariables.spacing[1]};
-`;
-
-const StyledInlineMentionRecordChipContainer = styled.div`
- display: inline;
- height: auto;
- margin: 0;
- padding: 0 ${themeCssVariables.spacing[1]};
-`;
-
-const LegacyMentionRenderer = ({
- recordId,
- objectMetadataId,
-}: {
- recordId: string;
- objectMetadataId: string;
-}) => {
- const objectMetadataItems = useAtomStateValue(objectMetadataItemsSelector);
-
- const objectMetadataItem = objectMetadataItems.find(
- (item) => item.id === objectMetadataId,
- );
-
- const objectNameSingular = objectMetadataItem?.nameSingular;
-
- const { record, loading } = useFindOneRecord({
- objectNameSingular: objectNameSingular ?? '',
- objectRecordId: recordId,
- skip: !isNonEmptyString(objectNameSingular) || !isNonEmptyString(recordId),
- });
-
- if (loading) {
- return null;
- }
-
- if (!isDefined(objectMetadataItem)) {
- return <Chip variant="plain" aria-disabled>{t`Unknown object`}</Chip>;
- }
-
- if (!isDefined(record)) {
- return <Chip variant="plain" aria-disabled>{t`Deleted record`}</Chip>;
- }
-
- return (
- <StyledRecordChipContainer>
- <RecordChip
- objectNameSingular={objectMetadataItem.nameSingular}
- record={record}
- forceDisableClick={false}
- />
- </StyledRecordChipContainer>
- );
-};
-
-export const MentionInlineContent = createReactInlineContentSpec(
- {
- type: 'mention' as const,
- propSchema: {
- recordId: {
- default: '' as const,
- },
- objectMetadataId: {
- default: '' as const,
- },
- objectNameSingular: {
- default: '' as const,
- },
- label: {
- default: '' as const,
- },
- imageUrl: {
- default: '' as const,
- },
- },
- content: 'none',
- },
- {
- render: (props) => {
- const {
- recordId,
- objectMetadataId,
- objectNameSingular,
- label,
- imageUrl,
- } = props.inlineContent.props;
-
- // New notes store objectNameSingular + label + imageUrl directly
- if (isNonEmptyString(objectNameSingular) && isNonEmptyString(label)) {
- return (
- <StyledInlineMentionRecordChipContainer>
- <MentionRecordChip
- recordId={recordId}
- objectNameSingular={objectNameSingular}
- label={label}
- imageUrl={imageUrl}
- />
- </StyledInlineMentionRecordChipContainer>
- );
- }
-
- // Legacy notes only have objectMetadataId + recordId: fetch data
- return (
- <LegacyMentionRenderer
- recordId={recordId}
- objectMetadataId={objectMetadataId}
- />
- );
- },
- },
-);
diff --git a/packages/twenty-front/src/modules/blocknote-editor/blocks/Schema.ts b/packages/twenty-front/src/modules/blocknote-editor/blocks/Schema.ts
deleted file mode 100644
index dd8c322894d..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/blocks/Schema.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import {
- BlockNoteSchema,
- defaultBlockSpecs,
- defaultInlineContentSpecs,
-} from '@blocknote/core';
-
-import { FileBlock } from '@/blocknote-editor/blocks/FileBlock';
-import { MentionInlineContent } from '@/blocknote-editor/blocks/MentionInlineContent';
-
-export const BLOCK_SCHEMA = BlockNoteSchema.create({
- blockSpecs: {
- ...defaultBlockSpecs,
- file: FileBlock(),
- },
- inlineContentSpecs: {
- ...defaultInlineContentSpecs,
- mention: MentionInlineContent,
- },
-});
diff --git a/packages/twenty-front/src/modules/blocknote-editor/components/BlockEditor.tsx b/packages/twenty-front/src/modules/blocknote-editor/components/BlockEditor.tsx
deleted file mode 100644
index 608d1f53716..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/components/BlockEditor.tsx
+++ /dev/null
@@ -1,259 +0,0 @@
-import {
- filterSuggestionItems,
- SuggestionMenu,
-} from '@blocknote/core/extensions';
-import { BlockNoteView } from '@blocknote/mantine';
-import {
- FormattingToolbar,
- FormattingToolbarController,
- SuggestionMenuController,
-} from '@blocknote/react';
-import { useLingui } from '@lingui/react/macro';
-import { styled } from '@linaria/react';
-import { type ClipboardEvent } from 'react';
-import { type BLOCK_SCHEMA } from '@/blocknote-editor/blocks/Schema';
-import { getBlockTypeSelectItems } from '@/blocknote-editor/utils/getBlockTypeSelectItems';
-import { getSlashMenu } from '@/blocknote-editor/utils/getSlashMenu';
-import { CustomMentionMenu } from '@/blocknote-editor/components/CustomMentionMenu';
-import { CustomSideMenu } from '@/blocknote-editor/components/CustomSideMenu';
-import { CustomSlashMenu } from '@/blocknote-editor/components/CustomSlashMenu';
-import { type SuggestionItem } from '@/blocknote-editor/types/SuggestionMenuItems';
-import { useMentionMenu } from '@/mention/hooks/useMentionMenu';
-import { IconX } from 'twenty-ui/icon';
-import { useThemeColorScheme, themeCssVariables } from 'twenty-ui/theme';
-
-interface BlockEditorProps {
- editor: typeof BLOCK_SCHEMA.BlockNoteEditor;
- onFocus?: () => void;
- onBlur?: () => void;
- onPaste?: (event: ClipboardEvent) => void;
- onChange?: () => void;
- readonly?: boolean;
- isCompact?: boolean;
-}
-
-// oxlint-disable-next-line twenty/no-hardcoded-colors
-const StyledEditor = styled.div`
- max-width: 100%;
- min-width: 0;
- width: 100%;
-
- & .editor {
- background: transparent;
- color: ${themeCssVariables.font.color.primary};
- font-size: 13px;
- min-height: 400px;
- }
- &[data-compact='true'] {
- background-color: ${themeCssVariables.background.transparent.lighter};
- border: 1px solid ${themeCssVariables.border.color.medium};
- border-radius: ${themeCssVariables.border.radius.md};
- box-sizing: border-box;
- }
- &[data-compact='true'] .editor {
- min-height: 120px;
- padding: ${themeCssVariables.spacing[1]} ${themeCssVariables.spacing[2]};
- }
- & .editor [class^='_inlineContent']:before {
- color: ${themeCssVariables.font.color.tertiary};
- font-style: normal !important;
- }
- & .editor .bn-inline-content:has(> .ProseMirror-trailingBreak):before {
- font-style: normal;
- }
- & .mantine-ActionIcon-icon {
- background: transparent;
- height: 20px;
- width: 20px;
- }
- & .bn-container .bn-drag-handle {
- height: 20px;
- width: 20px;
- }
- & .bn-block-content[data-content-type='checkListItem'] > div > div {
- align-items: center;
- display: flex;
- }
- & .bn-drag-handle-menu {
- backdrop-filter: ${themeCssVariables.blur.medium};
- background: ${themeCssVariables.background.transparent.secondary};
- border: 1px solid ${themeCssVariables.border.color.medium};
- border-radius: ${themeCssVariables.border.radius.md};
- box-shadow:
- 0px 2px 4px rgba(0, 0, 0, 0.04),
- 2px 4px 16px rgba(0, 0, 0, 0.12);
- left: 26px;
- min-height: 96px;
- min-width: 160px;
- padding: 4px;
- }
-
- & .bn-editor {
- padding-inline: 0px;
- }
-
- & .bn-block-content {
- min-width: 0;
- }
-
- & .bn-block-content,
- & .bn-inline-content {
- overflow-wrap: anywhere;
- }
-
- & .bn-inline-content {
- max-width: 100%;
- min-width: 0;
- }
-
- & .bn-container .bn-suggestion-menu-item:hover {
- background-color: blue;
- }
-
- & .bn-suggestion-menu {
- backdrop-filter: ${themeCssVariables.blur.medium};
- background: ${themeCssVariables.background.transparent.secondary};
- border: 1px solid ${themeCssVariables.border.color.medium};
- border-radius: ${themeCssVariables.border.radius.md};
- padding: 4px;
- }
-
- & .mantine-Menu-item {
- background-color: transparent;
- color: ${themeCssVariables.font.color.secondary};
- font-family: ${themeCssVariables.font.family};
-
- font-style: normal;
- font-weight: ${themeCssVariables.font.weight.regular};
- min-height: 32px;
- min-width: 152px;
- }
- & .mantine-ActionIcon-root:hover {
- backdrop-filter: blur(20px);
- background: ${themeCssVariables.background.transparent.primary};
- border: 1px solid ${themeCssVariables.border.color.light};
- box-shadow:
- 0px 0px 4px rgba(0, 0, 0, 0.08),
- 0px 2px 4px rgba(0, 0, 0, 0.04);
- }
- & .bn-side-menu .mantine-UnstyledButton-root:not(.mantine-Menu-item) svg {
- height: 16px;
- width: 16px;
- }
-
- & .bn-mantine .bn-side-menu > [draggable='true'] {
- margin-bottom: 5px;
- }
- & .bn-color-picker-dropdown {
- margin-left: 8px;
- }
-
- & .bn-inline-content a {
- color: ${themeCssVariables.color.blue};
- }
-
- & .bn-inline-content code {
- background-color: ${themeCssVariables.background.transparent.light};
- border: 1px solid ${themeCssVariables.font.color.extraLight};
- border-radius: ${themeCssVariables.border.radius.sm};
- color: ${themeCssVariables.font.color.danger};
- font-family: monospace;
- font-size: 0.9rem;
- padding: 2px 4px;
- }
-
- & .bn-mantine {
- container-type: inline-size;
- }
-
- & .bn-mantine .bn-panel {
- width: min(500px, 100cqi);
- }
-`;
-
-export const BlockEditor = ({
- editor,
- onFocus,
- onBlur,
- onChange,
- onPaste,
- readonly,
- isCompact,
-}: BlockEditorProps) => {
- const colorScheme = useThemeColorScheme();
- const { t } = useLingui();
-
- const blockNoteTheme = colorScheme === 'light' ? 'light' : 'dark';
- const getMentionItems = useMentionMenu(editor);
-
- const getSlashMenuItems = async (query: string) => {
- const filtered = filterSuggestionItems<SuggestionItem>(
- getSlashMenu(editor),
- query,
- );
-
- if (filtered.length > 0) {
- return filtered;
- }
-
- return [
- {
- title: t`Close menu`,
- Icon: IconX,
- onItemClick: () => editor.getExtension(SuggestionMenu)?.closeMenu(),
- },
- ];
- };
-
- const handleFocus = () => {
- onFocus?.();
- };
-
- const handleBlur = () => {
- onBlur?.();
- };
-
- const handleChange = () => {
- onChange?.();
- };
-
- const handlePaste = (event: ClipboardEvent) => {
- onPaste?.(event);
- };
-
- return (
- <StyledEditor data-compact={isCompact}>
- <BlockNoteView
- onFocus={handleFocus}
- onBlur={handleBlur}
- onPaste={handlePaste}
- onChange={handleChange}
- editor={editor}
- theme={blockNoteTheme}
- formattingToolbar={false}
- slashMenu={false}
- sideMenu={false}
- editable={!readonly}
- >
- <FormattingToolbarController
- formattingToolbar={() => (
- <FormattingToolbar
- blockTypeSelectItems={getBlockTypeSelectItems(editor.dictionary)}
- />
- )}
- />
- <CustomSideMenu editor={editor} />
- <SuggestionMenuController
- triggerCharacter="/"
- getItems={getSlashMenuItems}
- suggestionMenuComponent={CustomSlashMenu}
- />
- <SuggestionMenuController
- triggerCharacter="@"
- getItems={async (query) => getMentionItems(query)}
- suggestionMenuComponent={CustomMentionMenu}
- />
- </BlockNoteView>
- </StyledEditor>
- );
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/components/CustomAddBlockItem.tsx b/packages/twenty-front/src/modules/blocknote-editor/components/CustomAddBlockItem.tsx
deleted file mode 100644
index f47783ee198..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/components/CustomAddBlockItem.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import { type BLOCK_SCHEMA } from '@/blocknote-editor/blocks/Schema';
-import { SuggestionMenu } from '@blocknote/core/extensions';
-import { useBlockNoteEditor, useComponentsContext } from '@blocknote/react';
-
-type CustomAddBlockItemProps = {
- editor: typeof BLOCK_SCHEMA.BlockNoteEditor;
- children: React.ReactNode;
-};
-
-export const CustomAddBlockItem = ({
- editor,
- children,
-}: CustomAddBlockItemProps) => {
- const Components = useComponentsContext();
- const blockNoteEditor = useBlockNoteEditor();
-
- if (!Components) {
- return null;
- }
-
- const handleClick = () => {
- const currentBlock = blockNoteEditor.getTextCursorPosition().block;
- const blockContent = currentBlock?.content;
-
- const isEmpty = Array.isArray(blockContent) && blockContent.length === 0;
-
- if (isEmpty) {
- editor.setTextCursorPosition(currentBlock);
- }
-
- blockNoteEditor.getExtension(SuggestionMenu)?.openSuggestionMenu('/');
- };
-
- return (
- <Components.Generic.Menu.Item onClick={handleClick}>
- {children}
- </Components.Generic.Menu.Item>
- );
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/components/CustomMentionMenu.tsx b/packages/twenty-front/src/modules/blocknote-editor/components/CustomMentionMenu.tsx
deleted file mode 100644
index 2a709644d8c..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/components/CustomMentionMenu.tsx
+++ /dev/null
@@ -1,88 +0,0 @@
-import { styled } from '@linaria/react';
-import { autoUpdate, useFloating } from '@floating-ui/react';
-import { motion } from 'framer-motion';
-import { t } from '@lingui/core/macro';
-import { type MouseEvent as ReactMouseEvent } from 'react';
-import { createPortal } from 'react-dom';
-
-import { MENTION_MENU_DROPDOWN_CLICK_OUTSIDE_ID } from '@/ui/input/constants/MentionMenuDropdownClickOutsideId';
-import { MentionMenuListItem } from '@/mention/components/MentionMenuListItem';
-import { type CustomMentionMenuProps } from '@/blocknote-editor/types/SuggestionMenuItems';
-import { BLOCK_NOTE_SUGGESTION_MENU_ID } from '@/blocknote-editor/constants/BlockNoteSuggestionMenuId';
-import { getBlockNoteSuggestionMenuItemId } from '@/blocknote-editor/utils/getBlockNoteSuggestionMenuItemId';
-import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
-import { OverlayMenuList } from '@/ui/layout/overlay/components/OverlayMenuList';
-import { OverlayContainer } from '@/ui/layout/overlay/components/OverlayContainer';
-import { isDefined } from 'twenty-shared/utils';
-
-const StyledContainer = styled.div`
- height: 1px;
- width: 1px;
-`;
-
-export const CustomMentionMenu = ({
- items,
- selectedIndex,
- onItemClick,
-}: CustomMentionMenuProps) => {
- const { refs, floatingStyles } = useFloating({
- placement: 'bottom-start',
- whileElementsMounted: autoUpdate,
- });
-
- const handleContainerClick = (e: ReactMouseEvent) => {
- e.stopPropagation();
- };
-
- if (!isDefined(items) || items.length === 0) {
- return null;
- }
-
- const filteredItems = items.filter(
- (item) =>
- isDefined(item.recordId) &&
- isDefined(item.objectNameSingular) &&
- isDefined(item.objectMetadataId),
- );
-
- return (
- <StyledContainer ref={refs.setReference}>
- <>
- {createPortal(
- <motion.div
- initial={{ opacity: 0 }}
- animate={{ opacity: 1 }}
- transition={{ duration: 0.1 }}
- onClick={handleContainerClick}
- >
- <OverlayContainer
- id={BLOCK_NOTE_SUGGESTION_MENU_ID}
- role="listbox"
- aria-label={t`Suggestions`}
- ref={refs.setFloating}
- style={floatingStyles}
- data-click-outside-id={MENTION_MENU_DROPDOWN_CLICK_OUTSIDE_ID}
- >
- <OverlayMenuList width={GenericDropdownContentWidth.Large}>
- {filteredItems.map((item, index) => (
- <MentionMenuListItem
- id={getBlockNoteSuggestionMenuItemId(index)}
- key={item.recordId!}
- recordId={item.recordId!}
- objectNameSingular={item.objectNameSingular!}
- label={item.label ?? item.title}
- imageUrl={item.imageUrl ?? ''}
- objectLabelSingular={item.objectLabelSingular ?? ''}
- isSelected={index === selectedIndex}
- onClick={() => onItemClick?.(item)}
- />
- ))}
- </OverlayMenuList>
- </OverlayContainer>
- </motion.div>,
- document.body,
- )}
- </>
- </StyledContainer>
- );
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/components/CustomSideMenu.tsx b/packages/twenty-front/src/modules/blocknote-editor/components/CustomSideMenu.tsx
deleted file mode 100644
index 6b7a9d93ce2..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/components/CustomSideMenu.tsx
+++ /dev/null
@@ -1,63 +0,0 @@
-import { type BLOCK_SCHEMA } from '@/blocknote-editor/blocks/Schema';
-import { CustomAddBlockItem } from '@/blocknote-editor/components/CustomAddBlockItem';
-import { CustomSideMenuOptions } from '@/blocknote-editor/components/CustomSideMenuOptions';
-import {
- BlockColorsItem,
- DragHandleButton,
- DragHandleMenu,
- RemoveBlockItem,
- SideMenu,
- SideMenuController,
-} from '@blocknote/react';
-import { styled } from '@linaria/react';
-import { useLingui } from '@lingui/react/macro';
-import { IconColorSwatch, IconPlus, IconTrash } from 'twenty-ui/icon';
-import { themeCssVariables } from 'twenty-ui/theme';
-
-type CustomSideMenuProps = {
- editor: typeof BLOCK_SCHEMA.BlockNoteEditor;
-};
-
-const StyledDivToCreateGap = styled.div`
- width: ${themeCssVariables.spacing[2]};
-`;
-
-export const CustomSideMenu = ({ editor }: CustomSideMenuProps) => {
- const { t } = useLingui();
- return (
- <SideMenuController
- sideMenu={() => (
- <SideMenu>
- <DragHandleButton
- dragHandleMenu={() => (
- <DragHandleMenu>
- <CustomAddBlockItem editor={editor}>
- <CustomSideMenuOptions
- LeftIcon={IconPlus}
- text={t`Add Block`}
- Variant="normal"
- />
- </CustomAddBlockItem>
- <BlockColorsItem>
- <CustomSideMenuOptions
- LeftIcon={IconColorSwatch}
- text={t`Change Color`}
- Variant="normal"
- />
- </BlockColorsItem>
- <RemoveBlockItem>
- <CustomSideMenuOptions
- LeftIcon={IconTrash}
- text={t`Delete`}
- Variant="danger"
- />
- </RemoveBlockItem>
- </DragHandleMenu>
- )}
- />
- <StyledDivToCreateGap />
- </SideMenu>
- )}
- />
- );
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/components/CustomSideMenuOptions.tsx b/packages/twenty-front/src/modules/blocknote-editor/components/CustomSideMenuOptions.tsx
deleted file mode 100644
index 0a21e2d8cda..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/components/CustomSideMenuOptions.tsx
+++ /dev/null
@@ -1,40 +0,0 @@
-import { styled } from '@linaria/react';
-import { type IconComponent } from 'twenty-ui/icon';
-import { useTheme, themeCssVariables } from 'twenty-ui/theme';
-
-const StyledContainer = styled.div<{ Variant: Variants }>`
- align-items: center;
- color: ${({ Variant }) =>
- Variant === 'danger' ? themeCssVariables.color.red : 'inherit'};
- display: flex;
- flex-direction: row;
- gap: ${themeCssVariables.spacing[2]};
-`;
-
-const StyledTextContainer = styled.div``;
-
-type CustomSideMenuOptionsProps = {
- LeftIcon: IconComponent; // Any valid React node (e.g., a component)
- Variant: Variants;
- text: string;
-};
-
-type Variants = 'normal' | 'danger';
-
-export const CustomSideMenuOptions = ({
- LeftIcon,
- Variant,
- text,
-}: CustomSideMenuOptionsProps) => {
- const theme = useTheme();
-
- return (
- <StyledContainer Variant={Variant}>
- <LeftIcon
- size={theme.icon.size.md}
- stroke={theme.icon.stroke.sm}
- ></LeftIcon>
- <StyledTextContainer>{text}</StyledTextContainer>
- </StyledContainer>
- );
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/components/CustomSlashMenu.tsx b/packages/twenty-front/src/modules/blocknote-editor/components/CustomSlashMenu.tsx
deleted file mode 100644
index cf13d935b36..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/components/CustomSlashMenu.tsx
+++ /dev/null
@@ -1,88 +0,0 @@
-import { useBlockNoteEditor } from '@blocknote/react';
-import { styled } from '@linaria/react';
-import { autoUpdate, flip, offset, useFloating } from '@floating-ui/react';
-import { motion } from 'framer-motion';
-import { t } from '@lingui/core/macro';
-import { createPortal } from 'react-dom';
-
-import { SLASH_MENU_DROPDOWN_CLICK_OUTSIDE_ID } from '@/ui/input/constants/SlashMenuDropdownClickOutsideId';
-import { CustomSlashMenuListItem } from '@/blocknote-editor/components/CustomSlashMenuListItem';
-import { BLOCK_NOTE_SUGGESTION_MENU_ID } from '@/blocknote-editor/constants/BlockNoteSuggestionMenuId';
-import type { CustomSlashMenuProps } from '@/blocknote-editor/types/SuggestionMenuItems';
-import { OverlayMenuList } from '@/ui/layout/overlay/components/OverlayMenuList';
-import { OverlayContainer } from '@/ui/layout/overlay/components/OverlayContainer';
-
-const StyledContainer = styled.div`
- height: 1px;
- width: 1px;
-`;
-
-export const CustomSlashMenu = ({
- items,
- selectedIndex,
- onItemClick,
-}: CustomSlashMenuProps) => {
- const editor = useBlockNoteEditor();
-
- const currentBlock = editor?.getTextCursorPosition()?.block;
- const blockType = currentBlock?.type;
- const headingLevel =
- blockType === 'heading' ? Number(currentBlock?.props?.level) : null;
-
- const getOffsetValue = (placement: string) => {
- if (!placement.startsWith('top')) return 0;
-
- switch (headingLevel) {
- case 1:
- return 65;
- case 2:
- return 50;
- case 3:
- return 45;
- default:
- return 40;
- }
- };
-
- const { refs, floatingStyles } = useFloating({
- placement: 'bottom-start',
- whileElementsMounted: autoUpdate,
- middleware: [flip(), offset(({ placement }) => getOffsetValue(placement))],
- });
-
- return (
- <StyledContainer ref={refs.setReference}>
- <>
- {createPortal(
- <motion.div
- initial={{ opacity: 0 }}
- animate={{ opacity: 1 }}
- transition={{ duration: 0.1 }}
- >
- <OverlayContainer
- id={BLOCK_NOTE_SUGGESTION_MENU_ID}
- role="listbox"
- aria-label={t`Suggestions`}
- ref={refs.setFloating}
- style={floatingStyles}
- data-click-outside-id={SLASH_MENU_DROPDOWN_CLICK_OUTSIDE_ID}
- >
- <OverlayMenuList>
- {items.map((item, index) => (
- <CustomSlashMenuListItem
- key={item.title}
- item={item}
- index={index}
- isSelected={index === selectedIndex}
- onSelect={() => onItemClick?.(item)}
- />
- ))}
- </OverlayMenuList>
- </OverlayContainer>
- </motion.div>,
- document.body,
- )}
- </>
- </StyledContainer>
- );
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/components/CustomSlashMenuListItem.tsx b/packages/twenty-front/src/modules/blocknote-editor/components/CustomSlashMenuListItem.tsx
deleted file mode 100644
index 9eff85db999..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/components/CustomSlashMenuListItem.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import { type SuggestionItem } from '@/blocknote-editor/types/SuggestionMenuItems';
-import { CustomSlashMenuListItemScrollEffect } from '@/blocknote-editor/components/CustomSlashMenuListItemScrollEffect';
-import { getBlockNoteSuggestionMenuItemId } from '@/blocknote-editor/utils/getBlockNoteSuggestionMenuItemId';
-import { SuggestionListItem } from '@/ui/suggestion/components/SuggestionListItem';
-import { useRef } from 'react';
-import { isDefined } from 'twenty-shared/utils';
-
-type CustomSlashMenuListItemProps = {
- item: SuggestionItem;
- index: number;
- isSelected: boolean;
- onSelect: () => void;
-};
-
-export const CustomSlashMenuListItem = ({
- item,
- index,
- isSelected,
- onSelect,
-}: CustomSlashMenuListItemProps) => {
- const Icon = item.Icon;
- const itemRef = useRef<HTMLButtonElement>(null);
-
- return (
- <>
- <CustomSlashMenuListItemScrollEffect
- itemRef={itemRef}
- isSelected={isSelected}
- />
- <SuggestionListItem
- ref={itemRef}
- id={getBlockNoteSuggestionMenuItemId(index)}
- selected={isSelected}
- onSelect={onSelect}
- startIcon={isDefined(Icon) ? <Icon /> : undefined}
- >
- {item.title}
- </SuggestionListItem>
- </>
- );
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/components/CustomSlashMenuListItemScrollEffect.tsx b/packages/twenty-front/src/modules/blocknote-editor/components/CustomSlashMenuListItemScrollEffect.tsx
deleted file mode 100644
index 9ae5dd2301e..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/components/CustomSlashMenuListItemScrollEffect.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import { type RefObject, useEffect } from 'react';
-
-type CustomSlashMenuListItemScrollEffectProps = {
- itemRef: RefObject<HTMLButtonElement | null>;
- isSelected: boolean;
-};
-
-export const CustomSlashMenuListItemScrollEffect = ({
- itemRef,
- isSelected,
-}: CustomSlashMenuListItemScrollEffectProps) => {
- useEffect(() => {
- if (!isSelected) {
- return;
- }
-
- itemRef.current?.scrollIntoView?.({ block: 'nearest' });
- }, [itemRef, isSelected]);
-
- return null;
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/components/__stories__/CustomSlashMenu.stories.tsx b/packages/twenty-front/src/modules/blocknote-editor/components/__stories__/CustomSlashMenu.stories.tsx
deleted file mode 100644
index 0f0aad2a97a..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/components/__stories__/CustomSlashMenu.stories.tsx
+++ /dev/null
@@ -1,111 +0,0 @@
-import '@blocknote/mantine/style.css';
-import '@blocknote/react/style.css';
-
-import { BlockNoteView } from '@blocknote/mantine';
-import { SuggestionMenuController, useCreateBlockNote } from '@blocknote/react';
-import { type Meta, type StoryObj } from '@storybook/react-vite';
-import { expect, fn, userEvent, waitFor, within } from 'storybook/test';
-import { IconH1, IconTextSize } from 'twenty-ui/icon';
-
-import { CustomSlashMenu } from '@/blocknote-editor/components/CustomSlashMenu';
-import { type SuggestionItem } from '@/blocknote-editor/types/SuggestionMenuItems';
-
-const EditorWithSlashMenu = ({ onSelect }: { onSelect: () => void }) => {
- const editor = useCreateBlockNote({
- domAttributes: {
- editor: { role: 'textbox', 'aria-label': 'Block editor' },
- },
- });
-
- const items: SuggestionItem[] = [
- {
- title: 'First suggestion',
- Icon: IconTextSize,
- onItemClick: () => {
- onSelect();
- editor.insertInlineContent('First selection');
- },
- },
- {
- title: 'Second suggestion',
- Icon: IconH1,
- onItemClick: () => {
- onSelect();
- editor.insertInlineContent('Second selection');
- },
- },
- ];
-
- return (
- <BlockNoteView
- editor={editor}
- slashMenu={false}
- formattingToolbar={false}
- sideMenu={false}
- >
- <SuggestionMenuController
- triggerCharacter="/"
- getItems={async () => items}
- suggestionMenuComponent={CustomSlashMenu}
- />
- </BlockNoteView>
- );
-};
-
-const meta = {
- title: 'Modules/BlocknoteEditor/CustomSlashMenu',
- component: EditorWithSlashMenu,
- args: { onSelect: fn() },
-} satisfies Meta<typeof EditorWithSlashMenu>;
-
-export default meta;
-
-type Story = StoryObj<typeof meta>;
-
-export const EditorOwnsKeyboardSelection: Story = {
- play: async ({ canvasElement, args }) => {
- const body = within(canvasElement.ownerDocument.body);
- const editor = await within(canvasElement).findByRole('textbox', {
- name: 'Block editor',
- });
- await userEvent.click(editor);
- await userEvent.keyboard('/');
- const firstOption = await body.findByRole('option', {
- name: 'First suggestion',
- });
- await expect(firstOption).toHaveAttribute('aria-selected', 'true');
- await expect(editor).toHaveFocus();
- await userEvent.keyboard('{ArrowDown}');
- await expect(
- body.getByRole('option', { name: 'Second suggestion' }),
- ).toHaveAttribute('aria-selected', 'true');
- await expect(firstOption).toHaveAttribute('aria-selected', 'false');
- await userEvent.keyboard('{Enter}');
- await waitFor(() =>
- expect(body.queryByRole('listbox')).not.toBeInTheDocument(),
- );
- await expect(args.onSelect).toHaveBeenCalledTimes(1);
- await expect(editor).toHaveTextContent('Second selection');
- await expect(editor).toHaveFocus();
- },
-};
-
-export const PointerKeepsEditorFocus: Story = {
- play: async ({ canvasElement, args }) => {
- const body = within(canvasElement.ownerDocument.body);
- const editor = await within(canvasElement).findByRole('textbox', {
- name: 'Block editor',
- });
- await userEvent.click(editor);
- await userEvent.keyboard('/');
- await userEvent.click(
- await body.findByRole('option', { name: 'Second suggestion' }),
- );
- await waitFor(() =>
- expect(body.queryByRole('listbox')).not.toBeInTheDocument(),
- );
- await expect(args.onSelect).toHaveBeenCalledTimes(1);
- await expect(editor).toHaveTextContent('Second selection');
- await expect(editor).toHaveFocus();
- },
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/constants/BlockNoteSuggestionMenuId.ts b/packages/twenty-front/src/modules/blocknote-editor/constants/BlockNoteSuggestionMenuId.ts
deleted file mode 100644
index 960aa0485cb..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/constants/BlockNoteSuggestionMenuId.ts
+++ /dev/null
@@ -1 +0,0 @@
-export const BLOCK_NOTE_SUGGESTION_MENU_ID = 'bn-suggestion-menu';
diff --git a/packages/twenty-front/src/modules/blocknote-editor/hooks/useReplaceBlockEditorContent.ts b/packages/twenty-front/src/modules/blocknote-editor/hooks/useReplaceBlockEditorContent.ts
deleted file mode 100644
index d9e8ea58bc8..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/hooks/useReplaceBlockEditorContent.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { useCallback } from 'react';
-import { useStore } from 'jotai';
-
-import { type BLOCK_SCHEMA } from '@/blocknote-editor/blocks/Schema';
-import { parseInitialBlocknote } from '@/blocknote-editor/utils/parseInitialBlocknote';
-import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState';
-import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
-
-export const useReplaceBlockEditorContent = (
- editor: typeof BLOCK_SCHEMA.BlockNoteEditor,
- fieldName: string,
-) => {
- const store = useStore();
-
- const replaceBlockEditorContent = useCallback(
- (recordId: string) => {
- const record = store.get(recordStoreFamilyState.atomFamily(recordId));
-
- const fieldValue = record?.[fieldName] as
- | { blocknote?: string | null }
- | undefined;
-
- const content = parseInitialBlocknote(fieldValue?.blocknote) ?? [
- { type: 'paragraph' as const, content: '' },
- ];
-
- if (!isDeeplyEqual(editor.document, content as typeof editor.document)) {
- editor.replaceBlocks(
- editor.document,
- content as typeof editor.document,
- );
- }
- },
- [store, editor, fieldName],
- );
-
- return { replaceBlockEditorContent };
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/types/SuggestionMenuItems.ts b/packages/twenty-front/src/modules/blocknote-editor/types/SuggestionMenuItems.ts
deleted file mode 100644
index d22ab785926..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/types/SuggestionMenuItems.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import type {
- DefaultReactSuggestionItem,
- SuggestionMenuProps,
-} from '@blocknote/react';
-import { type IconComponent } from 'twenty-ui/icon';
-
-export type SuggestionItem = DefaultReactSuggestionItem & {
- aliases?: string[];
- Icon?: IconComponent;
-};
-
-export type CustomSlashMenuProps = SuggestionMenuProps<SuggestionItem>;
-
-export type MentionItem = DefaultReactSuggestionItem & {
- recordId?: string;
- objectNameSingular?: string;
- objectMetadataId?: string;
- label?: string;
- imageUrl?: string;
- objectLabelSingular?: string;
-};
-
-export type CustomMentionMenuProps = SuggestionMenuProps<MentionItem>;
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/countBlocksDeep.test.ts b/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/countBlocksDeep.test.ts
deleted file mode 100644
index d646f55ee62..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/countBlocksDeep.test.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { countBlocksDeep } from '@/blocknote-editor/utils/countBlocksDeep';
-
-describe('countBlocksDeep', () => {
- it('should count nothing when there is nothing', () => {
- expect(countBlocksDeep(undefined)).toBe(0);
- expect(countBlocksDeep([])).toBe(0);
- });
-
- it('should count top level blocks', () => {
- expect(countBlocksDeep([{}, {}])).toBe(2);
- });
-
- it('should count nested children', () => {
- expect(countBlocksDeep([{ children: [{}, { children: [{}] }] }, {}])).toBe(
- 5,
- );
- });
-});
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/filterBlocksSupportedBySchema.test.ts b/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/filterBlocksSupportedBySchema.test.ts
deleted file mode 100644
index dd8ee9d8d85..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/filterBlocksSupportedBySchema.test.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-import {
- type FilterableBlock,
- filterBlocksSupportedBySchema,
-} from '@/blocknote-editor/utils/filterBlocksSupportedBySchema';
-
-const blockSchema = {
- paragraph: {},
- bulletListItem: {},
-};
-
-describe('filterBlocksSupportedBySchema', () => {
- it('should return undefined when there is nothing to filter', () => {
- expect(
- filterBlocksSupportedBySchema(undefined, blockSchema),
- ).toBeUndefined();
- });
-
- it('should keep blocks the schema knows', () => {
- const blocks = [{ type: 'paragraph', content: [] }];
-
- expect(filterBlocksSupportedBySchema(blocks, blockSchema)).toEqual([
- { type: 'paragraph', content: [], children: undefined },
- ]);
- });
-
- it('should drop blocks the schema does not know', () => {
- const blocks = [
- { type: 'image', props: { url: 'https://example.com/a.png' } },
- { type: 'paragraph', content: [] },
- ];
-
- const filtered = filterBlocksSupportedBySchema(blocks, blockSchema);
-
- expect(filtered).toHaveLength(1);
- expect(filtered?.[0].type).toBe('paragraph');
- });
-
- it('should drop a block with no type', () => {
- const blocks: FilterableBlock[] = [{}];
-
- expect(filterBlocksSupportedBySchema(blocks, blockSchema)).toEqual([]);
- });
-
- it('should drop unsupported children while keeping their parent', () => {
- const blocks = [
- {
- type: 'bulletListItem',
- children: [{ type: 'image' }, { type: 'paragraph' }],
- },
- ];
-
- const filtered = filterBlocksSupportedBySchema(blocks, blockSchema);
-
- expect(filtered?.[0].children).toEqual([
- { type: 'paragraph', children: undefined },
- ]);
- });
-
- it('should drop a whole subtree when its root is unsupported', () => {
- const blocks = [{ type: 'image', children: [{ type: 'paragraph' }] }];
-
- expect(filterBlocksSupportedBySchema(blocks, blockSchema)).toEqual([]);
- });
-
- it('should drop every block of a stored TipTap document', () => {
- const blocks = [{ type: 'bulletList', content: [{ type: 'listItem' }] }];
-
- expect(filterBlocksSupportedBySchema(blocks, blockSchema)).toEqual([]);
- });
-});
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/getFirstNonEmptyLineOfRichText.test.ts b/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/getFirstNonEmptyLineOfRichText.test.ts
deleted file mode 100644
index f8c3b1a71dd..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/getFirstNonEmptyLineOfRichText.test.ts
+++ /dev/null
@@ -1,92 +0,0 @@
-import type { PartialBlock } from '@blocknote/core';
-import { getFirstNonEmptyLineOfRichText } from '@/blocknote-editor/utils/getFirstNonEmptyLineOfRichText';
-
-describe('getFirstNonEmptyLineOfRichText', () => {
- it('should return an empty string if the input is null', () => {
- const result = getFirstNonEmptyLineOfRichText(null);
- expect(result).toBe('');
- });
-
- it('should return an empty string if the input is an empty array', () => {
- const result = getFirstNonEmptyLineOfRichText([]);
- expect(result).toBe('');
- });
-
- it('should return the first non-empty line of text', () => {
- const input: PartialBlock[] = [
- { content: [{ text: '', type: 'text', styles: {} }] },
- { content: [{ text: ' ', type: 'text', styles: {} }] },
- { content: [{ text: 'First non-empty line', type: 'text', styles: {} }] },
- { content: [{ text: 'Second line', type: 'text', styles: {} }] },
- ];
- const result = getFirstNonEmptyLineOfRichText(input);
- expect(result).toBe('First non-empty line');
- });
-
- it('should return an empty string if all lines are empty', () => {
- const input: PartialBlock[] = [
- { content: [{ text: '', type: 'text', styles: {} }] },
- { content: [{ text: ' ', type: 'text', styles: {} }] },
- { content: [{ text: '\n', type: 'text', styles: {} }] },
- ];
- const result = getFirstNonEmptyLineOfRichText(input);
- expect(result).toBe('');
- });
-
- it('should handle mixed content correctly', () => {
- const input: PartialBlock[] = [
- { content: [{ text: '', type: 'text', styles: {} }] },
- { content: [{ text: ' ', type: 'text', styles: {} }] },
- { content: [{ text: 'First non-empty line', type: 'text', styles: {} }] },
- { content: [{ text: '', type: 'text', styles: {} }] },
- {
- content: [{ text: 'Second non-empty line', type: 'text', styles: {} }],
- },
- ];
- const result = getFirstNonEmptyLineOfRichText(input);
- expect(result).toBe('First non-empty line');
- });
-
- it('should handle content with multiple text objects correctly', () => {
- const input: PartialBlock[] = [
- {
- content: [
- { text: '', type: 'text', styles: {} },
- { text: ' ', type: 'text', styles: {} },
- ],
- },
- {
- content: [
- { text: 'First non-empty line', type: 'text', styles: {} },
- { text: 'Second line', type: 'text', styles: {} },
- ],
- },
- ];
- const result = getFirstNonEmptyLineOfRichText(input);
- expect(result).toBe('First non-empty line');
- });
-
- it('should handle content with undefined or null content', () => {
- const input: PartialBlock[] = [
- { content: undefined },
- { content: [{ text: 'First non-empty line', type: 'text', styles: {} }] },
- ];
- const result = getFirstNonEmptyLineOfRichText(input);
- expect(result).toBe('First non-empty line');
- });
-
- it('should handle non-array string content (e.g. heading blocks)', () => {
- const input = [{ content: 'Hello heading' }] as unknown as PartialBlock[];
- const result = getFirstNonEmptyLineOfRichText(input);
- expect(result).toBe('Hello heading');
- });
-
- it('should skip empty non-array string content', () => {
- const input = [
- { content: ' ' },
- { content: [{ text: 'Fallback text', type: 'text', styles: {} }] },
- ] as unknown as PartialBlock[];
- const result = getFirstNonEmptyLineOfRichText(input);
- expect(result).toBe('Fallback text');
- });
-});
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/parseInitialBlocknote.test.ts b/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/parseInitialBlocknote.test.ts
deleted file mode 100644
index b8894a89565..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/parseInitialBlocknote.test.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-import { parseInitialBlocknote } from '@/blocknote-editor/utils/parseInitialBlocknote';
-
-describe('parseInitialBlocknote', () => {
- it('should parse valid JSON array string', () => {
- const input = JSON.stringify([{ type: 'paragraph', content: 'test' }]);
- const result = parseInitialBlocknote(input);
- expect(result).toEqual([{ type: 'paragraph', content: 'test' }]);
- });
-
- it('should return undefined for empty string', () => {
- expect(parseInitialBlocknote('')).toBeUndefined();
- });
-
- it('should return undefined for null', () => {
- expect(parseInitialBlocknote(null)).toBeUndefined();
- });
-
- it('should return undefined for undefined', () => {
- expect(parseInitialBlocknote(undefined)).toBeUndefined();
- });
-
- it('should return undefined for empty object string "{}"', () => {
- expect(parseInitialBlocknote('{}')).toBeUndefined();
- });
-
- it('should return undefined for invalid JSON', () => {
- const consoleSpy = jest.spyOn(console, 'warn').mockImplementation();
- expect(parseInitialBlocknote('invalid json')).toBeUndefined();
- expect(consoleSpy).toHaveBeenCalled();
- consoleSpy.mockRestore();
- });
-
- it('should return undefined for empty array', () => {
- expect(parseInitialBlocknote('[]')).toBeUndefined();
- });
-
- it('should return undefined for non-array JSON', () => {
- expect(parseInitialBlocknote('{"key": "value"}')).toBeUndefined();
- });
-
- it('should use custom log context when parsing fails', () => {
- const consoleSpy = jest.spyOn(console, 'warn').mockImplementation();
- parseInitialBlocknote('invalid', 'Custom context');
- expect(consoleSpy).toHaveBeenCalledWith('Custom context');
- consoleSpy.mockRestore();
- });
-});
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/stripImageUrlTokens.test.ts b/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/stripImageUrlTokens.test.ts
deleted file mode 100644
index 4936119b7d4..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/__tests__/stripImageUrlTokens.test.ts
+++ /dev/null
@@ -1,51 +0,0 @@
-import { stripImageUrlTokens } from '@/blocknote-editor/utils/stripImageUrlTokens';
-
-describe('stripImageUrlTokens', () => {
- it('should return empty string as-is', () => {
- expect(stripImageUrlTokens('')).toBe('');
- });
-
- it('should pass through non-image blocks unchanged', () => {
- const blocks = [
- { type: 'paragraph', content: 'text' },
- { type: 'heading', content: 'title' },
- { type: 'image', props: { alt: 'no url' } },
- ];
-
- expect(JSON.parse(stripImageUrlTokens(JSON.stringify(blocks)))).toEqual(
- blocks,
- );
- });
-
- it('should make two signatures of the same image identical', () => {
- const signedWith = (token: string) =>
- JSON.stringify([
- {
- type: 'image',
- props: {
- url: `https://example.com/file/files-field/file-id?token=${token}`,
- },
- },
- ]);
-
- expect(stripImageUrlTokens(signedWith('first'))).toBe(
- stripImageUrlTokens(signedWith('second')),
- );
- expect(JSON.parse(stripImageUrlTokens(signedWith('first')))).toEqual([
- {
- type: 'image',
- props: { url: 'https://example.com/file/files-field/file-id' },
- },
- ]);
- });
-
- it('should keep a malformed image URL', () => {
- const input = JSON.stringify([
- { type: 'image', props: { url: 'not-a-url' } },
- ]);
-
- expect(JSON.parse(stripImageUrlTokens(input))).toEqual([
- { type: 'image', props: { url: 'not-a-url' } },
- ]);
- });
-});
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/countBlocksDeep.ts b/packages/twenty-front/src/modules/blocknote-editor/utils/countBlocksDeep.ts
deleted file mode 100644
index d718389c7a9..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/countBlocksDeep.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-type CountableBlock = {
- children?: CountableBlock[];
-};
-
-export const countBlocksDeep = (blocks: CountableBlock[] | undefined): number =>
- (blocks ?? []).reduce(
- (total, block) => total + 1 + countBlocksDeep(block.children),
- 0,
- );
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/filterBlocksSupportedBySchema.ts b/packages/twenty-front/src/modules/blocknote-editor/utils/filterBlocksSupportedBySchema.ts
deleted file mode 100644
index bb0c68df146..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/filterBlocksSupportedBySchema.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { isDefined } from 'twenty-shared/utils';
-
-export type FilterableBlock = {
- type?: string;
- children?: FilterableBlock[];
-};
-
-const filterBlockRecursively = <TBlock extends FilterableBlock>(
- block: TBlock,
- supportedBlockTypes: string[],
-): TBlock | undefined => {
- if (!isDefined(block.type) || !supportedBlockTypes.includes(block.type)) {
- return undefined;
- }
-
- return {
- ...block,
- children: block.children
- ?.map((childBlock) =>
- filterBlockRecursively(childBlock, supportedBlockTypes),
- )
- .filter(isDefined),
- };
-};
-
-export const filterBlocksSupportedBySchema = <TBlock extends FilterableBlock>(
- blocks: TBlock[] | undefined,
- blockSchema: Record<string, unknown>,
-): TBlock[] | undefined => {
- if (!isDefined(blocks)) {
- return undefined;
- }
-
- const supportedBlockTypes = Object.keys(blockSchema);
-
- return blocks
- .map((block) => filterBlockRecursively(block, supportedBlockTypes))
- .filter(isDefined);
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/getBlockNoteSuggestionMenuItemId.ts b/packages/twenty-front/src/modules/blocknote-editor/utils/getBlockNoteSuggestionMenuItemId.ts
deleted file mode 100644
index 52dc96fc4b2..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/getBlockNoteSuggestionMenuItemId.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { BLOCK_NOTE_SUGGESTION_MENU_ID } from '@/blocknote-editor/constants/BlockNoteSuggestionMenuId';
-
-export const getBlockNoteSuggestionMenuItemId = (index: number) =>
- `${BLOCK_NOTE_SUGGESTION_MENU_ID}-item-${index}`;
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/getBlockTypeSelectItems.tsx b/packages/twenty-front/src/modules/blocknote-editor/utils/getBlockTypeSelectItems.tsx
deleted file mode 100644
index 8b8b3db34fa..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/getBlockTypeSelectItems.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import { type Dictionary } from '@blocknote/core';
-import {
- type BlockTypeSelectItem,
- blockTypeSelectItems,
-} from '@blocknote/react';
-import { t } from '@lingui/core/macro';
-import { IconTextSize } from 'twenty-ui/icon';
-
-const TextBlockTypeIcon: BlockTypeSelectItem['icon'] = ({ size }) => (
- <IconTextSize size={size} />
-);
-
-export const getBlockTypeSelectItems = (
- dictionary: Dictionary,
-): BlockTypeSelectItem[] =>
- blockTypeSelectItems(dictionary).map((item) =>
- item.type === 'paragraph'
- ? { ...item, name: t`Text`, icon: TextBlockTypeIcon }
- : item,
- );
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/getFirstNonEmptyLineOfRichText.ts b/packages/twenty-front/src/modules/blocknote-editor/utils/getFirstNonEmptyLineOfRichText.ts
deleted file mode 100644
index 4db11d0f4d5..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/getFirstNonEmptyLineOfRichText.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import type { PartialBlock } from '@blocknote/core';
-import { isDefined } from 'twenty-shared/utils';
-
-export const getFirstNonEmptyLineOfRichText = (
- blocks: PartialBlock[] | null,
-): string => {
- if (blocks === null) {
- return '';
- }
- for (const block of blocks) {
- if (isDefined(block.content)) {
- const contentArray = Array.isArray(block.content)
- ? (block.content as Array<{ text: string } | { link: string }>)
- : [block.content as { text: string } | { link: string } | string];
-
- for (const content of contentArray) {
- if (typeof content === 'string') {
- const value = content.trim();
- if (value !== '') {
- return value;
- }
- continue;
- }
- if ('link' in content) {
- return content.link;
- }
- if ('text' in content) {
- const value = content.text.trim();
- if (value !== '') {
- return value;
- }
- }
- }
- }
- }
-
- return '';
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/getSlashMenu.ts b/packages/twenty-front/src/modules/blocknote-editor/utils/getSlashMenu.ts
deleted file mode 100644
index cbd51562d46..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/getSlashMenu.ts
+++ /dev/null
@@ -1,88 +0,0 @@
-import { getDefaultReactSlashMenuItems } from '@blocknote/react';
-import { t } from '@lingui/core/macro';
-
-import { type SuggestionItem } from '@/blocknote-editor/types/SuggestionMenuItems';
-
-import { type BLOCK_SCHEMA } from '@/blocknote-editor/blocks/Schema';
-import {
- IconBlockquote,
- IconCode,
- type IconComponent,
- IconFile,
- IconH1,
- IconH2,
- IconH3,
- IconH4,
- IconH5,
- IconH6,
- IconHeadphones,
- IconList,
- IconListCheck,
- IconListDetails,
- IconListNumbers,
- IconMinus,
- IconMoodSmile,
- IconPhoto,
- IconTable,
- IconTextSize,
- IconVideo,
-} from 'twenty-ui/icon';
-
-const Icons: Record<string, IconComponent> = {
- 'Heading 1': IconH1,
- 'Heading 2': IconH2,
- 'Heading 3': IconH3,
- 'Heading 4': IconH4,
- 'Heading 5': IconH5,
- 'Heading 6': IconH6,
- 'Toggle Heading 1': IconH1,
- 'Toggle Heading 2': IconH2,
- 'Toggle Heading 3': IconH3,
- 'Toggle List': IconListDetails,
- Divider: IconMinus,
- Quote: IconBlockquote,
- 'Numbered List': IconListNumbers,
- 'Bullet List': IconList,
- 'Check List': IconListCheck,
- 'Code Block': IconCode,
- Paragraph: IconTextSize,
- Table: IconTable,
- Image: IconPhoto,
- Video: IconVideo,
- Audio: IconHeadphones,
- Emoji: IconMoodSmile,
-};
-
-export const getSlashMenu = (editor: typeof BLOCK_SCHEMA.BlockNoteEditor) => {
- const items: SuggestionItem[] = [
- ...getDefaultReactSlashMenuItems(editor)
- .filter((item) => item.title !== 'File')
- .map((x) => ({
- ...x,
- title: x.title === 'Paragraph' ? t`Text` : x.title,
- Icon: Icons[x.title],
- })),
- {
- title: t`File`,
- aliases: ['file', 'folder'],
- Icon: IconFile,
- onItemClick: () => {
- const currentBlock = editor.getTextCursorPosition().block;
-
- editor.insertBlocks(
- [
- {
- type: 'file',
- props: {
- url: undefined,
- },
- },
- ],
- currentBlock,
- 'before',
- );
- },
- },
- ];
- return items;
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/parseInitialBlocknote.ts b/packages/twenty-front/src/modules/blocknote-editor/utils/parseInitialBlocknote.ts
deleted file mode 100644
index a3a1ab377a6..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/parseInitialBlocknote.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import type { PartialBlock } from '@blocknote/core';
-import { isArray, isNonEmptyString } from '@sniptt/guards';
-
-export const parseInitialBlocknote = (
- blocknote?: string | null,
- logContext?: string,
-): PartialBlock[] | undefined => {
- if (isNonEmptyString(blocknote) && blocknote !== '{}') {
- let parsedBody: PartialBlock[] | undefined = undefined;
-
- // TODO: Remove this once we have removed the old rich text
- try {
- parsedBody = JSON.parse(blocknote);
- } catch {
- // oxlint-disable-next-line no-console
- console.warn(logContext ?? `Failed to parse blocknote body`);
- // oxlint-disable-next-line no-console
- console.warn(blocknote);
- }
-
- if (!isArray(parsedBody) || parsedBody.length === 0) {
- return undefined;
- }
-
- return parsedBody;
- }
-
- return undefined;
-};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/utils/stripImageUrlTokens.ts b/packages/twenty-front/src/modules/blocknote-editor/utils/stripImageUrlTokens.ts
deleted file mode 100644
index 99848ba538e..00000000000
--- a/packages/twenty-front/src/modules/blocknote-editor/utils/stripImageUrlTokens.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import { parseInitialBlocknote } from '@/blocknote-editor/utils/parseInitialBlocknote';
-
-export const stripImageUrlTokens = (stringifiedBody: string): string => {
- const blocks = parseInitialBlocknote(stringifiedBody);
-
- if (!blocks) return stringifiedBody;
-
- const blocksWithoutTokens = blocks.map((block) => {
- if (block.type !== 'image' || !block.props?.url) {
- return block;
- }
-
- try {
- const imageUrl = new URL(block.props.url);
-
- imageUrl.searchParams.delete('token');
-
- return {
- ...block,
- props: { ...block.props, url: imageUrl.toString() },
- };
- } catch {
- return block;
- }
- });
-
- return JSON.stringify(blocksWithoutTokens);
-};
diff --git a/packages/twenty-front/src/modules/mention/components/MentionMenuListItem.tsx b/packages/twenty-front/src/modules/mention/components/MentionMenuListItem.tsx
deleted file mode 100644
index ab508b9cce5..00000000000
--- a/packages/twenty-front/src/modules/mention/components/MentionMenuListItem.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems';
-import { getAvatarShape } from '@/object-metadata/utils/getAvatarShape';
-import { SuggestionListItem } from '@/ui/suggestion/components/SuggestionListItem';
-import { Avatar } from 'twenty-ui/primitives/data-display';
-import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';
-
-type MentionMenuListItemProps = {
- id: string;
- recordId: string;
- objectNameSingular: string;
- label: string;
- imageUrl: string;
- objectLabelSingular: string;
- isSelected: boolean;
- onClick: () => void;
-};
-
-export const MentionMenuListItem = ({
- id,
- recordId,
- objectNameSingular,
- label,
- imageUrl,
- objectLabelSingular,
- isSelected,
- onClick,
-}: MentionMenuListItemProps) => {
- const { objectMetadataItems } = useObjectMetadataItems();
-
- const objectMetadataItem = objectMetadataItems.find(
- (item) => item.nameSingular === objectNameSingular,
- );
-
- return (
- <SuggestionListItem
- id={id}
- selected={isSelected}
- onSelect={onClick}
- description={objectLabelSingular}
- startIcon={
- <Avatar
- name={label}
- colorSeed={recordId}
- src={getAbsoluteImageUrl(imageUrl)}
- shape={getAvatarShape(objectMetadataItem)}
- size="sm"
- />
- }
- >
- {label}
- </SuggestionListItem>
- );
-};
diff --git a/packages/twenty-front/src/modules/mention/extensions/MentionSuggestion.ts b/packages/twenty-front/src/modules/mention/extensions/MentionSuggestion.ts
index ac56071244a..d93fe2f3677 100644
--- a/packages/twenty-front/src/modules/mention/extensions/MentionSuggestion.ts
+++ b/packages/twenty-front/src/modules/mention/extensions/MentionSuggestion.ts
@@ -14,7 +14,16 @@ type MentionSuggestionOptions = {
searchWorkspaceMembers: (query: string) => MentionSearchResult[];
};
-export const MentionSuggestion = Extension.create<MentionSuggestionOptions>({
+declare module '@tiptap/core' {
+ interface Storage {
+ 'mention-suggestion': MentionSuggestionOptions;
+ }
+}
+
+export const MentionSuggestion = Extension.create<
+ MentionSuggestionOptions,
+ MentionSuggestionOptions
+>({
name: 'mention-suggestion',
addOptions: () => ({
diff --git a/packages/twenty-front/src/modules/mention/hooks/useMentionMenu.ts b/packages/twenty-front/src/modules/mention/hooks/useMentionMenu.ts
deleted file mode 100644
index 86f68de3e15..00000000000
--- a/packages/twenty-front/src/modules/mention/hooks/useMentionMenu.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-import { type BLOCK_SCHEMA } from '@/blocknote-editor/blocks/Schema';
-import { useMentionSearch } from '@/mention/hooks/useMentionSearch';
-import { type MentionItem } from '@/blocknote-editor/types/SuggestionMenuItems';
-import { useCallback } from 'react';
-
-export const useMentionMenu = (editor: typeof BLOCK_SCHEMA.BlockNoteEditor) => {
- const { searchMentionRecords, searchableObjectMetadataItems } =
- useMentionSearch();
-
- const getMentionItems = useCallback(
- async (query: string): Promise<MentionItem[]> => {
- const results = await searchMentionRecords(query);
-
- return results.map((result) => {
- const objectMetadataItem = searchableObjectMetadataItems.find(
- (item) => item.nameSingular === result.objectNameSingular,
- );
-
- return {
- title: result.label,
- recordId: result.recordId,
- objectNameSingular: result.objectNameSingular,
- objectMetadataId: objectMetadataItem?.id,
- label: result.label,
- imageUrl: result.imageUrl,
- objectLabelSingular: result.objectLabelSingular,
- onItemClick: () => {
- editor.insertInlineContent([
- {
- type: 'mention',
- props: {
- recordId: result.recordId,
- objectMetadataId: objectMetadataItem?.id ?? '',
- objectNameSingular: result.objectNameSingular,
- label: result.label,
- imageUrl: result.imageUrl,
- },
- },
- ' ',
- ]);
- },
- };
- });
- },
- [editor, searchMentionRecords, searchableObjectMetadataItems],
- );
-
- return getMentionItems;
-};
diff --git a/packages/twenty-front/src/modules/object-metadata/utils/mapFieldMetadataToGraphQLQuery.ts b/packages/twenty-front/src/modules/object-metadata/utils/mapFieldMetadataToGraphQLQuery.ts
index 2dfc2c6dec0..a48cc44d964 100644
--- a/packages/twenty-front/src/modules/object-metadata/utils/mapFieldMetadataToGraphQLQuery.ts
+++ b/packages/twenty-front/src/modules/object-metadata/utils/mapFieldMetadataToGraphQLQuery.ts
@@ -339,6 +339,7 @@ ${mapObjectMetadataToGraphQLQuery({
{
blocknote
markdown
+ tiptap
}`);
}
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/__mocks__/fieldDefinitions.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/__mocks__/fieldDefinitions.ts
index e9136635f83..939eec9b339 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/__mocks__/fieldDefinitions.ts
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/__mocks__/fieldDefinitions.ts
@@ -139,7 +139,7 @@ export const richTextFieldDefinition: FieldDefinition<FieldRichTextMetadata> = {
label: 'Description',
iconName: 'IconAlignLeft',
type: FieldMetadataType.RICH_TEXT,
- defaultValue: { blocknote: null, markdown: null },
+ defaultValue: { markdown: null, tiptap: null },
metadata: {
fieldName: 'description',
},
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormRecordRichTextFieldInput.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormRecordRichTextFieldInput.tsx
index ed773e7d67a..67aa0934d0a 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormRecordRichTextFieldInput.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormRecordRichTextFieldInput.tsx
@@ -1,53 +1,12 @@
-import { useCreateBlockNote } from '@blocknote/react';
-import { styled } from '@linaria/react';
import { useLingui } from '@lingui/react/macro';
-import { useEffect, useId, useState } from 'react';
-import { flushSync } from 'react-dom';
-import { isNonEmptyArray } from 'twenty-shared/utils';
-import { useToast } from 'twenty-ui/components/feedback';
-import { LightIconButton } from 'twenty-ui/components/input';
-import { IconMaximize } from 'twenty-ui/icon';
-import { Field } from 'twenty-ui/primitives/input';
-import { themeCssVariables } from 'twenty-ui/theme';
-import { useIsMobile } from 'twenty-ui/utilities';
+import { type Editor } from '@tiptap/core';
+import { isDefined } from 'twenty-shared/utils';
-import { BLOCK_SCHEMA } from '@/blocknote-editor/blocks/Schema';
-import { BlockEditor } from '@/blocknote-editor/components/BlockEditor';
-import { BLOCK_EDITOR_GLOBAL_HOTKEYS_CONFIG } from '@/blocknote-editor/constants/BlockEditorGlobalHotkeysConfig';
-import { countBlocksDeep } from '@/blocknote-editor/utils/countBlocksDeep';
-import { filterBlocksSupportedBySchema } from '@/blocknote-editor/utils/filterBlocksSupportedBySchema';
-import { parseInitialBlocknote } from '@/blocknote-editor/utils/parseInitialBlocknote';
+import { FormAdvancedTextFieldInput } from '@/advanced-text-editor/components/FormAdvancedTextFieldInput';
+import { useMentionSearch } from '@/mention/hooks/useMentionSearch';
+import { RECORD_FORM_RICH_TEXT_EDITOR_PROFILE } from '@/object-record/record-field/ui/form-types/constants/RecordFormRichTextEditorProfile';
import { type FieldRichTextValue } from '@/object-record/record-field/ui/types/FieldMetadata';
-import { FormFieldInputContainer } from '@/ui/input/components/FormFieldInputContainer';
-import { useFullScreenModal } from '@/ui/layout/fullscreen/hooks/useFullScreenModal';
-import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePushFocusItemToFocusStack';
-import { useRemoveFocusItemFromFocusStackById } from '@/ui/utilities/focus/hooks/useRemoveFocusItemFromFocusStackById';
-import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType';
-
-import '@blocknote/mantine/style.css';
-import '@blocknote/react/style.css';
-
-const StyledEditorContainer = styled.div`
- position: relative;
-`;
-
-const StyledExpandButtonContainer = styled.div`
- margin-top: ${themeCssVariables.spacing[1]};
- position: absolute;
- right: ${themeCssVariables.spacing[1]};
- top: ${themeCssVariables.spacing[0]};
- z-index: 1;
-`;
-
-const StyledFullScreenEditorContainer = styled.div`
- background-color: ${themeCssVariables.background.secondary};
- border: 1px solid ${themeCssVariables.border.color.medium};
- border-radius: ${themeCssVariables.border.radius.md};
- flex: 1;
- min-height: 0;
- overflow-y: auto;
- padding: ${themeCssVariables.spacing[2]} ${themeCssVariables.spacing[8]};
-`;
+import { getRichTextFieldSerializedContent } from '@/object-record/record-field/ui/utils/getRichTextFieldSerializedContent';
type FormRecordRichTextFieldInputProps = {
label?: string;
@@ -65,148 +24,30 @@ export const FormRecordRichTextFieldInput = ({
readonly,
}: FormRecordRichTextFieldInputProps) => {
const { t } = useLingui();
+ const { searchMentionRecords } = useMentionSearch();
- const focusId = useId();
-
- const { pushFocusItemToFocusStack } = usePushFocusItemToFocusStack();
- const { removeFocusItemFromFocusStackById } =
- useRemoveFocusItemFromFocusStackById();
-
- const { enqueueToast } = useToast();
-
- const isMobile = useIsMobile();
- const [isFullScreen, setIsFullScreen] = useState(false);
-
- const [{ initialBlocks, hasUnreadableStoredValue }] = useState(() => {
- const parsedBlocks = parseInitialBlocknote(
- defaultValue?.blocknote ?? defaultValue?.markdown,
- );
-
- const supportedBlocks = filterBlocksSupportedBySchema(
- parsedBlocks,
- BLOCK_SCHEMA.blockSchema,
- );
-
- return {
- initialBlocks: isNonEmptyArray(supportedBlocks)
- ? supportedBlocks
- : undefined,
- hasUnreadableStoredValue:
- countBlocksDeep(supportedBlocks) < countBlocksDeep(parsedBlocks),
- };
- });
-
- const handleUploadFile = async (): Promise<string> => {
- enqueueToast({
- status: 'error',
- children: t`Save the record before attaching a file`,
- });
-
- return '';
- };
-
- const editor = useCreateBlockNote({
- uploadFile: handleUploadFile,
- initialContent: initialBlocks,
- domAttributes: { editor: { class: 'editor' } },
- schema: BLOCK_SCHEMA,
- placeholders: {
- default: placeholder ?? t`Type '/' for commands`,
- },
- });
-
- const handleChange = () => {
- onChange({
- blocknote: JSON.stringify(editor.document),
- markdown: null,
- });
- };
-
- const handleFocus = () => {
- pushFocusItemToFocusStack({
- component: {
- instanceId: focusId,
- type: FocusComponentType.ACTIVITY_RICH_TEXT_EDITOR,
- },
- focusId,
- globalHotkeysConfig: BLOCK_EDITOR_GLOBAL_HOTKEYS_CONFIG,
- });
+ const handleChange = (tiptap: string) => {
+ onChange({ blocknote: null, markdown: null, tiptap });
};
- const handleBlur = () => {
- removeFocusItemFromFocusStackById({ focusId });
- };
-
- useEffect(() => {
- return () => {
- removeFocusItemFromFocusStackById({ focusId });
- };
- }, [focusId, removeFocusItemFromFocusStackById]);
-
- useEffect(() => {
- if (hasUnreadableStoredValue) {
- enqueueToast({
- status: 'error',
- children: t`This content was saved in an older format and cannot be edited here`,
- });
+ const handleEditorReady = (editor: Editor | null) => {
+ if (!isDefined(editor)) {
+ return;
}
- }, [hasUnreadableStoredValue, enqueueToast, t]);
- const handleFullScreenChange = (isFullScreenOpen: boolean) => {
- flushSync(() => {
- setIsFullScreen(isFullScreenOpen);
- });
- editor.focus();
+ editor.extensionStorage['mention-suggestion'].searchMentionRecords =
+ searchMentionRecords;
};
- const { renderFullScreenModal } = useFullScreenModal({
- links: [{ children: t`Text Editor` }],
- onClose: () => handleFullScreenChange(false),
- });
-
- const isReadonly = readonly || hasUnreadableStoredValue;
-
return (
- <>
- <FormFieldInputContainer>
- {label ? <Field.Label>{label}</Field.Label> : null}
- {!isFullScreen && (
- <StyledEditorContainer>
- <BlockEditor
- editor={editor}
- onChange={handleChange}
- onFocus={handleFocus}
- onBlur={handleBlur}
- readonly={isReadonly}
- isCompact
- />
- {!isReadonly && !isMobile && (
- <StyledExpandButtonContainer>
- <LightIconButton
- size="sm"
- onClick={() => handleFullScreenChange(true)}
- emphasis="subtle"
- aria-label={t`Expand to full screen`}
- >
- <IconMaximize />
- </LightIconButton>
- </StyledExpandButtonContainer>
- )}
- </StyledEditorContainer>
- )}
- </FormFieldInputContainer>
- {renderFullScreenModal(
- <StyledFullScreenEditorContainer>
- <BlockEditor
- editor={editor}
- onChange={handleChange}
- onFocus={handleFocus}
- onBlur={handleBlur}
- readonly={isReadonly}
- />
- </StyledFullScreenEditorContainer>,
- isFullScreen,
- )}
- </>
+ <FormAdvancedTextFieldInput
+ label={label}
+ defaultValue={getRichTextFieldSerializedContent(defaultValue)}
+ placeholder={placeholder ?? t`Type '/' for commands, '@' for mentions`}
+ onChange={handleChange}
+ onEditorReady={handleEditorReady}
+ readonly={readonly}
+ profile={RECORD_FORM_RICH_TEXT_EDITOR_PROFILE}
+ />
);
};
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormRichTextFieldInput.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormRichTextFieldInput.tsx
index b1f3027a7b2..32dd32f6fce 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormRichTextFieldInput.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormRichTextFieldInput.tsx
@@ -2,7 +2,7 @@ import { FormAdvancedTextFieldInput } from '@/advanced-text-editor/components/Fo
import { RECORD_RICH_TEXT_EDITOR_PROFILE } from '@/object-record/record-field/ui/form-types/constants/RecordRichTextEditorProfile';
import { type VariablePickerComponent } from '@/ui/input/types/VariablePickerComponent';
import { type FieldRichTextValue } from '@/object-record/record-field/ui/types/FieldMetadata';
-import { convertTipTapDocumentToBlockNote } from '@/object-record/record-field/ui/form-types/utils/convertTipTapDocumentToBlockNote';
+import { getRichTextFieldSerializedContent } from '@/object-record/record-field/ui/utils/getRichTextFieldSerializedContent';
type FormRichTextFieldInputProps = {
label?: string;
@@ -28,9 +28,9 @@ export const FormRichTextFieldInput = ({
}: FormRichTextFieldInputProps) => {
const handleChange = (value: string) => {
onChange({
- // TODO: drop once RICH_TEXT migrates off the legacy BlockNote array contract.
- blocknote: convertTipTapDocumentToBlockNote(value),
+ blocknote: null,
markdown: null,
+ tiptap: value,
});
};
@@ -39,7 +39,7 @@ export const FormRichTextFieldInput = ({
label={label}
error={error}
hint={hint}
- defaultValue={defaultValue?.blocknote ?? defaultValue?.markdown}
+ defaultValue={getRichTextFieldSerializedContent(defaultValue)}
placeholder={placeholder}
onChange={handleChange}
readonly={readonly}
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRecordRichTextFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRecordRichTextFieldInput.stories.tsx
index 1fc74f37fa7..2e4aeabfe67 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRecordRichTextFieldInput.stories.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRecordRichTextFieldInput.stories.tsx
@@ -1,22 +1,52 @@
import { FormRecordRichTextFieldInput } from '@/object-record/record-field/ui/form-types/components/FormRecordRichTextFieldInput';
import { type Meta, type StoryObj } from '@storybook/react-vite';
+import { type JSONContent } from '@tiptap/core';
import { expect, fn, userEvent, waitFor, within } from 'storybook/test';
+import { TIPTAP_DOCUMENT_SCHEMA_VERSION } from 'twenty-shared/utils';
import { ComponentDecorator } from 'twenty-ui/testing';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';
import { ToastDecorator } from '~/testing/decorators/ToastDecorator';
import { graphqlMocks } from '~/testing/graphqlMocks';
-const BLOCKNOTE_PARAGRAPH = JSON.stringify([
+const serializeDocument = (content: JSONContent[]) =>
+ JSON.stringify({
+ type: 'doc',
+ content,
+ attrs: { schemaVersion: TIPTAP_DOCUMENT_SCHEMA_VERSION },
+ });
+
+const TIPTAP_PARAGRAPH = serializeDocument([
+ { type: 'paragraph', content: [{ type: 'text', text: 'Rich Text' }] },
+]);
+
+const TIPTAP_BULLET_LIST = serializeDocument([
{
- id: 'block-1',
- type: 'paragraph',
- props: {},
- content: [{ type: 'text', text: 'Rich Text', styles: {} }],
+ type: 'bulletList',
+ content: [
+ {
+ type: 'listItem',
+ content: [
+ {
+ type: 'paragraph',
+ content: [{ type: 'text', text: 'First item' }],
+ },
+ ],
+ },
+ {
+ type: 'listItem',
+ content: [
+ {
+ type: 'paragraph',
+ content: [{ type: 'text', text: 'Second item' }],
+ },
+ ],
+ },
+ ],
},
]);
-const BLOCKNOTE_BULLET_LIST = JSON.stringify([
+const LEGACY_BLOCKNOTE_BULLET_LIST = JSON.stringify([
{
id: 'block-1',
type: 'bulletListItem',
@@ -69,7 +99,20 @@ export const WithLabel: Story = {
export const WithBulletList: Story = {
args: {
- defaultValue: { blocknote: BLOCKNOTE_BULLET_LIST, markdown: null },
+ defaultValue: { tiptap: TIPTAP_BULLET_LIST, markdown: null },
+ onChange: fn(),
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await canvas.findByText('First item');
+ await canvas.findByText('Second item');
+ },
+};
+
+export const WithLegacyBlockNoteBulletList: Story = {
+ args: {
+ defaultValue: { blocknote: LEGACY_BLOCKNOTE_BULLET_LIST, markdown: null },
onChange: fn(),
},
play: async ({ canvasElement }) => {
@@ -80,7 +123,7 @@ export const WithBulletList: Story = {
},
};
-export const WritesBlockNoteBlocks: Story = {
+export const WritesTipTapDocument: Story = {
args: {
onChange: fn(),
},
@@ -106,7 +149,7 @@ export const WritesBlockNoteBlocks: Story = {
expect(args.onChange).toHaveBeenLastCalledWith(
expect.objectContaining({
- blocknote: expect.stringContaining('"styles"'),
+ tiptap: expect.stringContaining('"text":"Hello"'),
markdown: null,
}),
);
@@ -153,7 +196,7 @@ export const KeepsContentAcrossFullScreen: Story = {
expect(page.queryByText('Text Editor')).not.toBeInTheDocument();
expect(args.onChange).toHaveBeenLastCalledWith(
expect.objectContaining({
- blocknote: expect.stringContaining('Hello world'),
+ tiptap: expect.stringContaining('Hello world'),
}),
);
},
@@ -161,7 +204,7 @@ export const KeepsContentAcrossFullScreen: Story = {
export const Disabled: Story = {
args: {
- defaultValue: { blocknote: BLOCKNOTE_PARAGRAPH, markdown: null },
+ defaultValue: { tiptap: TIPTAP_PARAGRAPH, markdown: null },
readonly: true,
onChange: fn(),
},
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRichTextFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRichTextFieldInput.stories.tsx
index 32db4d05f27..3e58cc9af0c 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRichTextFieldInput.stories.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/__stories__/FormRichTextFieldInput.stories.tsx
@@ -1,5 +1,6 @@
import { FormRichTextFieldInput } from '@/object-record/record-field/ui/form-types/components/FormRichTextFieldInput';
import { type Meta, type StoryObj } from '@storybook/react-vite';
+import { type JSONContent } from '@tiptap/core';
import {
expect,
fn,
@@ -8,10 +9,18 @@ import {
waitForElementToBeRemoved,
within,
} from 'storybook/test';
+import { TIPTAP_DOCUMENT_SCHEMA_VERSION } from 'twenty-shared/utils';
import { getUserDevice } from 'twenty-ui/utilities';
import { WorkflowStepDecorator } from '~/testing/decorators/WorkflowStepDecorator';
import { MOCKED_STEP_ID } from '~/testing/mock-data/workflow';
+const serializeDocument = (content: JSONContent[]) =>
+ JSON.stringify({
+ type: 'doc',
+ content,
+ attrs: { schemaVersion: TIPTAP_DOCUMENT_SCHEMA_VERSION },
+ });
+
const meta: Meta<typeof FormRichTextFieldInput> = {
title: 'UI/Data/Field/Form/Input/FormRichTextFieldInput',
component: FormRichTextFieldInput,
@@ -46,7 +55,7 @@ export const WithVariable: Story = {
args: {
label: 'Rich Text',
placeholder: 'Rich Text field...',
- defaultValue: { blocknote: null, markdown: '## Title\nVariable: ' },
+ defaultValue: { tiptap: null, markdown: '## Title\nVariable: ' },
VariablePicker: ({ onVariableSelect }) => {
return (
<button
@@ -88,9 +97,27 @@ export const WithVariable: Story = {
await waitFor(() => {
expect(args.onChange).toHaveBeenCalledWith({
- blocknote:
- '[{"type":"paragraph","content":[{"type":"text","text":"## Title"},{"type":"hardBreak"},{"type":"text","text":"Variable: "},{"type":"variableTag","attrs":{"variable":"{{04d5f3bf-9714-400d-ba27-644006a5fb1b.name}}"}}]}]',
+ tiptap: serializeDocument([
+ {
+ type: 'heading',
+ attrs: { level: 2 },
+ content: [{ type: 'text', text: 'Title' }],
+ },
+ {
+ type: 'paragraph',
+ content: [
+ { type: 'text', text: 'Variable:' },
+ {
+ type: 'variableTag',
+ attrs: {
+ variable: '{{04d5f3bf-9714-400d-ba27-644006a5fb1b.name}}',
+ },
+ },
+ ],
+ },
+ ]),
markdown: null,
+ blocknote: null,
});
});
expect(args.onChange).toHaveBeenCalledTimes(1);
@@ -102,7 +129,7 @@ export const WithDeletableVariable: Story = {
label: 'Text',
placeholder: 'Text field...',
defaultValue: {
- blocknote: null,
+ tiptap: null,
markdown: `test {{${MOCKED_STEP_ID}.name}} test`,
},
onChange: fn(),
@@ -135,9 +162,14 @@ export const WithDeletableVariable: Story = {
await waitFor(() => {
expect(args.onChange).toHaveBeenCalledWith({
- blocknote:
- '[{"type":"paragraph","content":[{"type":"text","text":"test test"}]}]',
+ tiptap: serializeDocument([
+ {
+ type: 'paragraph',
+ content: [{ type: 'text', text: 'test test' }],
+ },
+ ]),
markdown: null,
+ blocknote: null,
});
});
expect(args.onChange).toHaveBeenCalledTimes(1);
@@ -149,7 +181,7 @@ export const Disabled: Story = {
label: 'Text',
placeholder: 'Text field...',
defaultValue: {
- blocknote: null,
+ tiptap: null,
markdown: 'Rich Text',
},
readonly: true,
@@ -187,7 +219,7 @@ export const DisabledWithVariable: Story = {
args: {
label: 'Text',
defaultValue: {
- blocknote: null,
+ tiptap: null,
markdown: `test {{${MOCKED_STEP_ID}.name}} test`,
},
readonly: true,
@@ -252,18 +284,34 @@ export const HasHistory: Story = {
await userEvent.click(addVariableButton);
+ const documentWithVariable = serializeDocument([
+ {
+ type: 'paragraph',
+ content: [
+ { type: 'text', text: 'Hello World ' },
+ {
+ type: 'variableTag',
+ attrs: {
+ variable: '{{04d5f3bf-9714-400d-ba27-644006a5fb1b.name}}',
+ },
+ },
+ ],
+ },
+ ]);
+
expect(args.onChange).toHaveBeenLastCalledWith({
- blocknote:
- '[{"type":"paragraph","content":[{"type":"text","text":"Hello World "},{"type":"variableTag","attrs":{"variable":"{{04d5f3bf-9714-400d-ba27-644006a5fb1b.name}}"}}]}]',
+ tiptap: documentWithVariable,
markdown: null,
+ blocknote: null,
});
await userEvent.type(editor, `{${controlKey}>}z{/${controlKey}}`);
expect(editor).toHaveTextContent('');
expect(args.onChange).toHaveBeenLastCalledWith({
- blocknote: '[{"type":"paragraph"}]',
+ tiptap: serializeDocument([{ type: 'paragraph' }]),
markdown: null,
+ blocknote: null,
});
await userEvent.type(
@@ -273,9 +321,9 @@ export const HasHistory: Story = {
expect(editor).toHaveTextContent(`Hello World Name`);
expect(args.onChange).toHaveBeenLastCalledWith({
- blocknote:
- '[{"type":"paragraph","content":[{"type":"text","text":"Hello World "},{"type":"variableTag","attrs":{"variable":"{{04d5f3bf-9714-400d-ba27-644006a5fb1b.name}}"}}]}]',
+ tiptap: documentWithVariable,
markdown: null,
+ blocknote: null,
});
},
};
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/constants/RecordFormRichTextEditorProfile.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/constants/RecordFormRichTextEditorProfile.ts
new file mode 100644
index 00000000000..d135435b0ea
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/constants/RecordFormRichTextEditorProfile.ts
@@ -0,0 +1,16 @@
+import { type AdvancedTextEditorProfile } from '@/advanced-text-editor/types/AdvancedTextEditorProfile';
+import { buildRecordRichTextExtensions } from '@/advanced-text-editor/utils/buildRecordRichTextExtensions';
+import { parseLegacyMarkdownDocument } from '@/advanced-text-editor/utils/parseLegacyMarkdownDocument';
+import { MentionSuggestion } from '@/mention/extensions/MentionSuggestion';
+
+export const RECORD_FORM_RICH_TEXT_EDITOR_PROFILE = {
+ chrome: 'field',
+ variant: 'app',
+ minHeight: 120,
+ enableFullScreen: true,
+ parseLegacyDocument: parseLegacyMarkdownDocument,
+ buildExtensions: (context) => [
+ ...buildRecordRichTextExtensions(context),
+ MentionSuggestion,
+ ],
+} satisfies AdvancedTextEditorProfile;
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/constants/RecordRichTextEditorProfile.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/constants/RecordRichTextEditorProfile.ts
index d603eec5fd2..c8436f5f524 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/constants/RecordRichTextEditorProfile.ts
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/constants/RecordRichTextEditorProfile.ts
@@ -1,6 +1,6 @@
import { type AdvancedTextEditorProfile } from '@/advanced-text-editor/types/AdvancedTextEditorProfile';
import { buildFullRichTextExtensions } from '@/advanced-text-editor/utils/buildFullRichTextExtensions';
-import { parseLegacyRecordRichTextDocument } from '@/object-record/record-field/ui/form-types/utils/parseLegacyRecordRichTextDocument';
+import { parseLegacyMarkdownDocumentWithVariables } from '@/advanced-text-editor/utils/parseLegacyMarkdownDocumentWithVariables';
import { WorkflowVariableTag } from '@/workflow/workflow-variables/extensions/WorkflowVariableTag';
export const RECORD_RICH_TEXT_EDITOR_PROFILE = {
@@ -8,7 +8,7 @@ export const RECORD_RICH_TEXT_EDITOR_PROFILE = {
variant: 'app',
minHeight: 340,
enableFullScreen: true,
- parseLegacyDocument: parseLegacyRecordRichTextDocument,
+ parseLegacyDocument: parseLegacyMarkdownDocumentWithVariables,
buildExtensions: (context) => [
...buildFullRichTextExtensions(context),
WorkflowVariableTag,
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/utils/__tests__/recordRichTextDocumentCompatibility.test.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/utils/__tests__/recordRichTextDocumentCompatibility.test.ts
deleted file mode 100644
index 71929f97b26..00000000000
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/utils/__tests__/recordRichTextDocumentCompatibility.test.ts
+++ /dev/null
@@ -1,72 +0,0 @@
-import { convertTipTapDocumentToBlockNote } from '@/object-record/record-field/ui/form-types/utils/convertTipTapDocumentToBlockNote';
-import { parseLegacyRecordRichTextDocument } from '@/object-record/record-field/ui/form-types/utils/parseLegacyRecordRichTextDocument';
-
-describe('record rich-text document compatibility', () => {
- it('projects canonical documents to the legacy content-array shape', () => {
- const content = [
- {
- type: 'paragraph',
- content: [{ type: 'text', text: 'Hello' }],
- },
- ];
-
- expect(
- JSON.parse(
- convertTipTapDocumentToBlockNote(
- JSON.stringify({
- type: 'doc',
- attrs: { schemaVersion: 1 },
- content,
- }),
- ),
- ),
- ).toEqual(content);
- });
-
- it('preserves unknown legacy values at the write boundary', () => {
- expect(convertTipTapDocumentToBlockNote('legacy markdown')).toBe(
- 'legacy markdown',
- );
- });
-
- it('reads the legacy content-array shape', () => {
- const content = [{ type: 'paragraph', content: [] }];
-
- expect(parseLegacyRecordRichTextDocument(JSON.stringify(content))).toEqual({
- type: 'doc',
- content,
- });
- });
-
- it('normalizes permissive legacy BlockNote string content', () => {
- const content = [
- { type: 'paragraph', content: 'Legacy BlockNote plain content' },
- ];
-
- expect(parseLegacyRecordRichTextDocument(JSON.stringify(content))).toEqual({
- type: 'doc',
- content: [
- {
- type: 'paragraph',
- content: [{ type: 'text', text: 'Legacy BlockNote plain content' }],
- },
- ],
- });
- });
-
- it('does not pass malformed legacy blocks to the editor', () => {
- const serializedDocument = JSON.stringify([
- { type: 'paragraph', marks: 'invalid' },
- ]);
-
- expect(parseLegacyRecordRichTextDocument(serializedDocument)).toEqual({
- type: 'doc',
- content: [
- {
- type: 'paragraph',
- content: [{ type: 'text', text: serializedDocument }],
- },
- ],
- });
- });
-});
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/utils/convertTipTapDocumentToBlockNote.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/utils/convertTipTapDocumentToBlockNote.ts
deleted file mode 100644
index 4ec1c2193f0..00000000000
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/utils/convertTipTapDocumentToBlockNote.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { parseTipTapJsonDocument } from 'twenty-shared/utils';
-
-export const convertTipTapDocumentToBlockNote = (
- serializedDocument: string,
-): string => {
- const document = parseTipTapJsonDocument(serializedDocument);
-
- return document === undefined
- ? serializedDocument
- : JSON.stringify(document.content ?? []);
-};
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/utils/parseLegacyRecordRichTextDocument.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/utils/parseLegacyRecordRichTextDocument.ts
deleted file mode 100644
index 5856a478864..00000000000
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/utils/parseLegacyRecordRichTextDocument.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-import { getInitialEditorContent } from '@/advanced-text-editor/utils/getInitialEditorContent';
-import { type Content } from '@tiptap/core';
-import { isTipTapNode, type TipTapNode } from 'twenty-shared/utils';
-
-const normalizeLegacyBlockContent = (value: unknown): unknown => {
- if (Array.isArray(value)) {
- return value.map(normalizeLegacyBlockContent);
- }
-
- if (typeof value !== 'object' || value === null || !('content' in value)) {
- return value;
- }
-
- const content = value.content;
-
- if (typeof content === 'string') {
- return {
- ...value,
- content: [{ type: 'text', text: content }],
- };
- }
-
- return Array.isArray(content)
- ? { ...value, content: content.map(normalizeLegacyBlockContent) }
- : value;
-};
-
-const isTipTapNodeArray = (value: unknown): value is TipTapNode[] =>
- Array.isArray(value) && value.every(isTipTapNode);
-
-const tryParseJson = (value: string): unknown => {
- try {
- return JSON.parse(value);
- } catch {
- return undefined;
- }
-};
-
-export const parseLegacyRecordRichTextDocument = (
- serializedDocument: string,
-): Content => {
- const blocks = normalizeLegacyBlockContent(tryParseJson(serializedDocument));
-
- if (isTipTapNodeArray(blocks)) {
- return { type: 'doc', content: blocks };
- }
-
- return getInitialEditorContent(serializedDocument);
-};
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/RichTextFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/RichTextFieldDisplay.tsx
index 19c186a9bb0..12a8aea8206 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/RichTextFieldDisplay.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/RichTextFieldDisplay.tsx
@@ -1,12 +1,9 @@
import { useRichTextFieldDisplay } from '@/object-record/record-field/ui/meta-types/hooks/useRichTextFieldDisplay';
-import { getFirstNonEmptyLineOfRichText } from '@/blocknote-editor/utils/getFirstNonEmptyLineOfRichText';
-import { parseInitialBlocknote } from '@/blocknote-editor/utils/parseInitialBlocknote';
+import { getRichTextFieldTextLines } from '@/object-record/record-field/ui/utils/getRichTextFieldTextLines';
import { TextDisplay } from '@/ui/field/display/components/TextDisplay/TextDisplay';
export const RichTextFieldDisplay = () => {
const { fieldValue } = useRichTextFieldDisplay();
- const blocks = parseInitialBlocknote(fieldValue?.blocknote) ?? null;
-
- return <TextDisplay text={getFirstNonEmptyLineOfRichText(blocks)} />;
+ return <TextDisplay text={getRichTextFieldTextLines(fieldValue)[0] ?? ''} />;
};
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/RichTextFieldEditor.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/RichTextFieldEditor.tsx
index ff044578276..1c24cfef62b 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/RichTextFieldEditor.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/RichTextFieldEditor.tsx
@@ -1,22 +1,28 @@
-import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
+import { useCallback } from 'react';
import { useAtom, useStore } from 'jotai';
-import { BLOCK_SCHEMA } from '@/blocknote-editor/blocks/Schema';
-import { BlockEditor } from '@/blocknote-editor/components/BlockEditor';
-import { BLOCK_EDITOR_GLOBAL_HOTKEYS_CONFIG } from '@/blocknote-editor/constants/BlockEditorGlobalHotkeysConfig';
-import { useAttachmentSync } from '@/blocknote-editor/hooks/useAttachmentSync';
-import { useReplaceBlockEditorContent } from '@/blocknote-editor/hooks/useReplaceBlockEditorContent';
-import { parseInitialBlocknote } from '@/blocknote-editor/utils/parseInitialBlocknote';
-import { stripImageUrlTokens } from '@/blocknote-editor/utils/stripImageUrlTokens';
import { type Attachment } from '@/activities/files/types/Attachment';
+import { useAttachmentSync } from '@/activities/files/hooks/useAttachmentSync';
import { useUploadAttachmentFile } from '@/activities/files/hooks/useUploadAttachmentFile';
import { getActivityTargetObjectFieldIdName } from '@/activities/utils/getActivityTargetObjectFieldIdName';
+import { AdvancedTextEditor } from '@/advanced-text-editor/components/AdvancedTextEditor';
+import { AdvancedTextEditorBlockHandle } from '@/advanced-text-editor/components/AdvancedTextEditorBlockHandle';
+import { useAdvancedTextEditor } from '@/advanced-text-editor/hooks/useAdvancedTextEditor';
+import { type UploadErrorHandler } from '@/advanced-text-editor/types/UploadErrorHandler';
+import { getStorableEditorDocument } from '@/advanced-text-editor/utils/getStorableEditorDocument';
+import { serializeJsonContentAsAdvancedTextEditorDocument } from '@/advanced-text-editor/utils/serializeJsonContentAsAdvancedTextEditorDocument';
+import { useMentionSearch } from '@/mention/hooks/useMentionSearch';
import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem';
import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient';
import { CoreObjectNameSingular } from 'twenty-shared/types';
import { modifyRecordFromCache } from '@/object-record/cache/utils/modifyRecordFromCache';
import { useFindManyRecords } from '@/object-record/hooks/useFindManyRecords';
import { useUpdateOneRecord } from '@/object-record/hooks/useUpdateOneRecord';
+import { RICH_TEXT_FIELD_EDITOR_GLOBAL_HOTKEYS_CONFIG } from '@/object-record/record-field/ui/meta-types/input/constants/RichTextFieldEditorGlobalHotkeysConfig';
+import { RICH_TEXT_FIELD_EDITOR_PROFILE } from '@/object-record/record-field/ui/meta-types/input/constants/RichTextFieldEditorProfile';
+import { type FieldRichTextValue } from '@/object-record/record-field/ui/types/FieldMetadata';
+import { getRichTextFieldSerializedContent } from '@/object-record/record-field/ui/utils/getRichTextFieldSerializedContent';
+import { stripRichTextFileUrlTokens } from '@/object-record/record-field/ui/utils/stripRichTextFileUrlTokens';
import { useRecordSeededDraft } from '@/object-record/record-seeded-draft/hooks/useRecordSeededDraft';
import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState';
import { useIsRecordFieldReadOnly } from '@/object-record/read-only/hooks/useIsRecordFieldReadOnly';
@@ -24,25 +30,32 @@ import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePush
import { useRemoveFocusItemFromFocusStackById } from '@/ui/utilities/focus/hooks/useRemoveFocusItemFromFocusStackById';
import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType';
import { useHotkeysOnFocusedElement } from '@/ui/utilities/hotkey/hooks/useHotkeysOnFocusedElement';
+import { styled } from '@linaria/react';
import { t } from '@lingui/core/macro';
-import '@blocknote/mantine/style.css';
-import { useCreateBlockNote } from '@blocknote/react';
-import '@blocknote/react/style.css';
+import { type Editor } from '@tiptap/core';
import { Key } from 'ts-key-enum';
import { isDefined } from 'twenty-shared/utils';
-import { doNotTranslate } from 'twenty-shared/i18n';
+import { useToast } from 'twenty-ui/components/feedback';
+import { themeCssVariables } from 'twenty-ui/theme';
import { useDebouncedCallback } from 'use-debounce';
+const StyledEditorContainer = styled.div`
+ box-sizing: border-box;
+ max-width: 100%;
+ min-width: 0;
+ padding-left: ${themeCssVariables.spacing[8]};
+ position: relative;
+ width: 100%;
+`;
+
type RichTextFieldEditorProps = {
recordId: string;
objectNameSingular: string;
fieldName: string;
- onPersistBody?: (blocknote: string) => void;
+ onPersistBody?: (tiptap: string) => void;
onFocus?: () => void;
onBlur?: () => void;
- editorRef?: React.MutableRefObject<
- typeof BLOCK_SCHEMA.BlockNoteEditor | null
- >;
+ editorRef?: React.MutableRefObject<Editor | null>;
};
export const RichTextFieldEditor = ({
@@ -98,70 +111,42 @@ export const RichTextFieldEditor = ({
const { uploadAttachmentFile } = useUploadAttachmentFile();
- const handleUploadAttachment = async (file: File) => {
- return await uploadAttachmentFile(file, {
+ const { searchMentionRecords } = useMentionSearch();
+
+ const { enqueueToast } = useToast();
+
+ const handleUploadFile = async (file: File) => {
+ const { attachmentAbsoluteURL } = await uploadAttachmentFile(file, {
id: recordId,
targetObjectNameSingular: objectNameSingular,
});
- };
- const handleEditorBuiltInUploadFile = async (file: File) => {
- const { attachmentAbsoluteURL } = await handleUploadAttachment(file);
-
- return attachmentAbsoluteURL;
+ return { url: attachmentAbsoluteURL };
};
- const fieldValue = isDefined(recordInStore)
- ? (recordInStore as Record<string, { blocknote?: string | null }>)?.[
- fieldName
- ]
- : null;
-
- const initialBody = useMemo(() => {
- if (!isDefined(fieldValue)) {
- return undefined;
- }
-
- return parseInitialBlocknote(
- fieldValue?.blocknote,
- doNotTranslate(
- `Failed to parse body for field ${fieldName} on record ${recordId}`,
- ),
- );
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [fieldName, recordId]);
-
- const editor = useCreateBlockNote({
- initialContent: initialBody,
- domAttributes: { editor: { class: 'editor' } },
- schema: BLOCK_SCHEMA,
- uploadFile: handleEditorBuiltInUploadFile,
- placeholders: {
- default: t`Type '/' for commands, '@' for mentions`,
- },
- });
-
- if (editorRef) {
- editorRef.current = editor;
- }
+ const handleUploadFileError: UploadErrorHandler = ({ file }) => {
+ enqueueToast({
+ status: 'error',
+ children: t`Failed to upload "${file.name}"`,
+ });
+ };
- const { replaceBlockEditorContent } = useReplaceBlockEditorContent(
- editor,
- fieldName,
- );
+ const fieldValue: FieldRichTextValue | undefined = recordInStore?.[fieldName];
const { updateDraft, markDirty, flush, draftResyncKey } =
useRecordSeededDraft({
upstreamDraft: {
- blocknote: stripImageUrlTokens(fieldValue?.blocknote ?? ''),
+ tiptap: stripRichTextFileUrlTokens(
+ getRichTextFieldSerializedContent(fieldValue) ?? '',
+ ),
},
persistDebounceMs: 300,
resetKey: recordId,
- onPersist: ({ blocknote }) => {
+ onPersist: ({ tiptap }) => {
if (isRecordFieldReadOnly === true) return;
if (onPersistBody) {
- onPersistBody(blocknote);
+ onPersistBody(tiptap);
return;
}
@@ -170,54 +155,31 @@ export const RichTextFieldEditor = ({
objectNameSingular,
updateOneRecordInput: {
[fieldName]: {
- blocknote,
+ blocknote: null,
markdown: null,
+ tiptap,
},
},
});
},
});
- // Replace the uncontrolled editor's content in place instead of remounting it.
- const [lastAppliedResyncKey, setLastAppliedResyncKey] =
- useState(draftResyncKey);
-
- // Programmatic replacements fire the typing callback, so latch to keep them from echoing back as local edits.
- // oxlint-disable-next-line twenty/no-state-useref
- const isApplyingUpstreamBodyRef = useRef(false);
-
- useEffect(() => {
- if (draftResyncKey === lastAppliedResyncKey) {
- return;
- }
-
- setLastAppliedResyncKey(draftResyncKey);
-
- isApplyingUpstreamBodyRef.current = true;
- try {
- replaceBlockEditorContent(recordId);
- } finally {
- isApplyingUpstreamBodyRef.current = false;
- }
- }, [
- draftResyncKey,
- lastAppliedResyncKey,
- replaceBlockEditorContent,
- recordId,
- ]);
-
- const handleBodyChange = async (newStringifiedBody: string) => {
+ const handleBodyChange = async (newSerializedDocument: string) => {
const oldRecord = store.get(recordStoreFamilyState.atomFamily(recordId));
+ const oldFieldValue: FieldRichTextValue | undefined =
+ oldRecord?.[fieldName];
+ const newFieldValue: FieldRichTextValue = {
+ blocknote: null,
+ markdown: null,
+ tiptap: newSerializedDocument,
+ };
store.set(
recordStoreFamilyState.atomFamily(recordId),
(prev: typeof oldRecord) => ({
...prev,
id: recordId,
- [fieldName]: {
- blocknote: newStringifiedBody,
- markdown: null,
- },
+ [fieldName]: newFieldValue,
__typename: prev?.__typename ?? objectNameSingular,
}),
);
@@ -225,48 +187,35 @@ export const RichTextFieldEditor = ({
modifyRecordFromCache({
recordId,
fieldModifiers: {
- [fieldName]: () => ({
- blocknote: newStringifiedBody,
- markdown: null,
- }),
+ [fieldName]: () => newFieldValue,
},
cache,
objectMetadataItem,
});
- const oldFieldValue = oldRecord?.[fieldName] as
- | { blocknote?: string | null }
- | undefined;
-
// Only after capturing the pre-edit body: persisting rewrites the record, so the diff would miss removed attachments.
- updateDraft({ blocknote: stripImageUrlTokens(newStringifiedBody) });
+ updateDraft({ tiptap: stripRichTextFileUrlTokens(newSerializedDocument) });
- await syncAttachments(newStringifiedBody, oldFieldValue?.blocknote);
+ await syncAttachments(
+ newSerializedDocument,
+ getRichTextFieldSerializedContent(oldFieldValue),
+ );
};
const handleBodyChangeDebounced = useDebouncedCallback(handleBodyChange, 500);
- const handleEditorChange = () => {
- if (isApplyingUpstreamBodyRef.current) {
- return;
- }
-
+ const handleEditorUpdate = (currentEditor: Editor) => {
// Serialization is debounced, so mark dirty now or a remote adoption could replace in-progress typing.
markDirty();
- handleBodyChangeDebounced(JSON.stringify(editor.document) ?? '');
+ handleBodyChangeDebounced(
+ serializeJsonContentAsAdvancedTextEditorDocument(
+ getStorableEditorDocument(currentEditor),
+ ),
+ );
};
- useHotkeysOnFocusedElement({
- keys: Key.Escape,
- callback: () => {
- editor.domElement?.blur();
- },
- focusId,
- dependencies: [editor],
- });
-
- const handleBlockEditorFocus = useCallback(() => {
+ const handleEditorFocus = useCallback(() => {
if (onFocusOverride) {
onFocusOverride();
return;
@@ -278,11 +227,11 @@ export const RichTextFieldEditor = ({
type: FocusComponentType.ACTIVITY_RICH_TEXT_EDITOR,
},
focusId,
- globalHotkeysConfig: BLOCK_EDITOR_GLOBAL_HOTKEYS_CONFIG,
+ globalHotkeysConfig: RICH_TEXT_FIELD_EDITOR_GLOBAL_HOTKEYS_CONFIG,
});
}, [focusId, pushFocusItemToFocusStack, onFocusOverride]);
- const handleBlockEditorBlur = () => {
+ const handleEditorBlur = () => {
handleBodyChangeDebounced.flush();
flush();
@@ -294,13 +243,56 @@ export const RichTextFieldEditor = ({
removeFocusItemFromFocusStackById({ focusId });
};
+ const editor = useAdvancedTextEditor(
+ {
+ profile: RICH_TEXT_FIELD_EDITOR_PROFILE,
+ placeholder: t`Type '/' for commands, '@' for mentions`,
+ readonly: isRecordFieldReadOnly,
+ defaultValue: getRichTextFieldSerializedContent(fieldValue),
+ onUpdate: handleEditorUpdate,
+ onFocus: handleEditorFocus,
+ onBlur: handleEditorBlur,
+ onImageUpload: handleUploadFile,
+ onImageUploadError: handleUploadFileError,
+ onFileUpload: handleUploadFile,
+ onFileUploadError: handleUploadFileError,
+ },
+ [recordId, isRecordFieldReadOnly, draftResyncKey],
+ );
+
+ if (isDefined(editorRef)) {
+ editorRef.current = editor;
+ }
+
+ if (isDefined(editor)) {
+ editor.extensionStorage['mention-suggestion'].searchMentionRecords =
+ searchMentionRecords;
+ }
+
+ useHotkeysOnFocusedElement({
+ keys: Key.Escape,
+ callback: () => {
+ editor?.commands.blur();
+ },
+ focusId,
+ dependencies: [editor],
+ });
+
+ if (!isDefined(editor)) {
+ return null;
+ }
+
return (
- <BlockEditor
- onFocus={handleBlockEditorFocus}
- onBlur={handleBlockEditorBlur}
- onChange={handleEditorChange}
- editor={editor}
- readonly={isRecordFieldReadOnly}
- />
+ <StyledEditorContainer>
+ <AdvancedTextEditor
+ editor={editor}
+ readonly={isRecordFieldReadOnly}
+ minHeight={RICH_TEXT_FIELD_EDITOR_PROFILE.minHeight}
+ variant={RICH_TEXT_FIELD_EDITOR_PROFILE.variant}
+ />
+ {!isRecordFieldReadOnly && (
+ <AdvancedTextEditorBlockHandle editor={editor} />
+ )}
+ </StyledEditorContainer>
);
};
diff --git a/packages/twenty-front/src/modules/blocknote-editor/constants/BlockEditorGlobalHotkeysConfig.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/constants/RichTextFieldEditorGlobalHotkeysConfig.ts
similarity index 61%
rename from packages/twenty-front/src/modules/blocknote-editor/constants/BlockEditorGlobalHotkeysConfig.ts
rename to packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/constants/RichTextFieldEditorGlobalHotkeysConfig.ts
index bcef1712855..84561e0211a 100644
--- a/packages/twenty-front/src/modules/blocknote-editor/constants/BlockEditorGlobalHotkeysConfig.ts
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/constants/RichTextFieldEditorGlobalHotkeysConfig.ts
@@ -1,4 +1,4 @@
-export const BLOCK_EDITOR_GLOBAL_HOTKEYS_CONFIG = {
+export const RICH_TEXT_FIELD_EDITOR_GLOBAL_HOTKEYS_CONFIG = {
enableGlobalHotkeysConflictingWithKeyboard: false,
enableGlobalHotkeysWithModifiers: true,
};
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/constants/RichTextFieldEditorProfile.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/constants/RichTextFieldEditorProfile.ts
new file mode 100644
index 00000000000..159362ef53d
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/constants/RichTextFieldEditorProfile.ts
@@ -0,0 +1,16 @@
+import { type AdvancedTextEditorProfile } from '@/advanced-text-editor/types/AdvancedTextEditorProfile';
+import { buildRecordRichTextExtensions } from '@/advanced-text-editor/utils/buildRecordRichTextExtensions';
+import { parseLegacyMarkdownDocument } from '@/advanced-text-editor/utils/parseLegacyMarkdownDocument';
+import { MentionSuggestion } from '@/mention/extensions/MentionSuggestion';
+
+export const RICH_TEXT_FIELD_EDITOR_PROFILE = {
+ chrome: 'document',
+ variant: 'app',
+ minHeight: 400,
+ enableFullScreen: false,
+ parseLegacyDocument: parseLegacyMarkdownDocument,
+ buildExtensions: (context) => [
+ ...buildRecordRichTextExtensions(context),
+ MentionSuggestion,
+ ],
+} satisfies AdvancedTextEditorProfile;
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/types/FieldMetadata.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/types/FieldMetadata.ts
index b7465c12078..cb96975f202 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/types/FieldMetadata.ts
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/types/FieldMetadata.ts
@@ -303,9 +303,9 @@ export type Json = ZodHelperLiteral | { [key: string]: Json } | Json[];
export type FieldJsonValue = Record<string, Json> | Json[] | null;
export type FieldRichTextValue = {
- blocknote: string | null;
- markdown: string | null;
tiptap?: string | null;
+ markdown?: string | null;
+ blocknote?: string | null;
};
const FieldActorSourceSchema = z.union([
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/getRichTextFieldSerializedContent.test.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/getRichTextFieldSerializedContent.test.ts
new file mode 100644
index 00000000000..b94d2d400aa
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/getRichTextFieldSerializedContent.test.ts
@@ -0,0 +1,97 @@
+import { getRichTextFieldSerializedContent } from '@/object-record/record-field/ui/utils/getRichTextFieldSerializedContent';
+
+const tiptap = JSON.stringify({
+ type: 'doc',
+ attrs: { schemaVersion: 1 },
+ content: [
+ { type: 'paragraph', content: [{ type: 'text', text: 'from tiptap' }] },
+ ],
+});
+
+const blocknote = JSON.stringify([
+ {
+ id: 'block-1',
+ type: 'paragraph',
+ props: {},
+ content: [{ type: 'text', text: 'from blocknote', styles: { bold: true } }],
+ children: [],
+ },
+]);
+
+describe('getRichTextFieldSerializedContent', () => {
+ it('should return undefined when there is no value', () => {
+ expect(getRichTextFieldSerializedContent(undefined)).toBeUndefined();
+ expect(getRichTextFieldSerializedContent(null)).toBeUndefined();
+ expect(
+ getRichTextFieldSerializedContent({
+ markdown: '',
+ blocknote: null,
+ tiptap: null,
+ }),
+ ).toBeUndefined();
+ });
+
+ it('should prefer the TipTap document over legacy values', () => {
+ expect(
+ getRichTextFieldSerializedContent({
+ markdown: 'from markdown',
+ blocknote,
+ tiptap,
+ }),
+ ).toBe(tiptap);
+ });
+
+ it('should convert a legacy BlockNote document to TipTap with its styles', () => {
+ const result = getRichTextFieldSerializedContent({
+ markdown: 'from markdown',
+ blocknote,
+ tiptap: null,
+ });
+
+ expect(JSON.parse(result ?? '')).toMatchObject({
+ type: 'doc',
+ content: [
+ {
+ type: 'paragraph',
+ content: [
+ {
+ type: 'text',
+ text: 'from blocknote',
+ marks: [{ type: 'bold' }],
+ },
+ ],
+ },
+ ],
+ });
+ });
+
+ it('should read TipTap blocks that older workflow forms stored in the BlockNote subfield', () => {
+ const tipTapBlocks = [
+ {
+ type: 'heading',
+ attrs: { level: 2 },
+ content: [{ type: 'text', text: 'Title', marks: [{ type: 'italic' }] }],
+ },
+ ];
+
+ const result = getRichTextFieldSerializedContent({
+ markdown: null,
+ blocknote: JSON.stringify(tipTapBlocks),
+ });
+
+ expect(JSON.parse(result ?? '')).toEqual({
+ type: 'doc',
+ content: tipTapBlocks,
+ });
+ });
+
+ it('should fall back to markdown when no document is stored', () => {
+ expect(
+ getRichTextFieldSerializedContent({
+ markdown: 'from markdown',
+ blocknote: null,
+ tiptap: null,
+ }),
+ ).toBe('from markdown');
+ });
+});
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/getRichTextFieldTextLines.test.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/getRichTextFieldTextLines.test.ts
new file mode 100644
index 00000000000..18ac1b65e89
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/getRichTextFieldTextLines.test.ts
@@ -0,0 +1,131 @@
+import { getRichTextFieldTextLines } from '@/object-record/record-field/ui/utils/getRichTextFieldTextLines';
+
+const buildTipTap = (content: unknown[]) =>
+ JSON.stringify({ type: 'doc', attrs: { schemaVersion: 1 }, content });
+
+const buildParagraph = (text?: string) => ({
+ type: 'paragraph',
+ content: text === undefined ? undefined : [{ type: 'text', text }],
+});
+
+describe('getRichTextFieldTextLines', () => {
+ it('should return no lines for a missing body', () => {
+ expect(getRichTextFieldTextLines(undefined)).toEqual([]);
+ expect(getRichTextFieldTextLines(null)).toEqual([]);
+ expect(getRichTextFieldTextLines({ markdown: null, tiptap: null })).toEqual(
+ [],
+ );
+ });
+
+ it('should return the non-empty paragraphs of a TipTap body', () => {
+ const tiptap = buildTipTap([
+ buildParagraph(),
+ buildParagraph(' '),
+ buildParagraph('test 1'),
+ buildParagraph('test 2'),
+ buildParagraph(),
+ ]);
+
+ expect(getRichTextFieldTextLines({ markdown: null, tiptap })).toEqual([
+ 'test 1',
+ 'test 2',
+ ]);
+ });
+
+ it('should skip an image placed before the text', () => {
+ const tiptap = buildTipTap([
+ { type: 'image', attrs: { src: 'https://twenty-icons.com/a.png' } },
+ buildParagraph('TEST'),
+ ]);
+
+ expect(getRichTextFieldTextLines({ markdown: null, tiptap })).toEqual([
+ 'TEST',
+ ]);
+ });
+
+ it('should return no lines when a table has no text', () => {
+ const tiptap = buildTipTap([
+ {
+ type: 'table',
+ content: [
+ {
+ type: 'tableRow',
+ content: [{ type: 'tableCell', content: [buildParagraph()] }],
+ },
+ ],
+ },
+ buildParagraph(),
+ ]);
+
+ expect(getRichTextFieldTextLines({ markdown: null, tiptap })).toEqual([]);
+ });
+
+ it('should read headings, lists, links and mentions', () => {
+ const tiptap = buildTipTap([
+ {
+ type: 'heading',
+ attrs: { level: 1 },
+ content: [{ type: 'text', text: 'Title' }],
+ },
+ {
+ type: 'bulletList',
+ content: [
+ {
+ type: 'listItem',
+ content: [buildParagraph('first item')],
+ },
+ {
+ type: 'listItem',
+ content: [
+ {
+ type: 'paragraph',
+ content: [
+ { type: 'text', text: 'see ' },
+ {
+ type: 'text',
+ text: 'twenty.com',
+ marks: [
+ { type: 'link', attrs: { href: 'https://twenty.com' } },
+ ],
+ },
+ { type: 'mentionTag', attrs: { label: 'Ada' } },
+ ],
+ },
+ ],
+ },
+ ],
+ },
+ ]);
+
+ expect(getRichTextFieldTextLines({ markdown: null, tiptap })).toEqual([
+ 'Title',
+ 'first item',
+ 'see twenty.comAda',
+ ]);
+ });
+
+ it('should fall back to a legacy BlockNote body', () => {
+ const blocknote = JSON.stringify([
+ {
+ id: 'block-1',
+ type: 'paragraph',
+ props: {},
+ content: [{ type: 'text', text: 'legacy text', styles: {} }],
+ children: [],
+ },
+ ]);
+
+ expect(getRichTextFieldTextLines({ markdown: null, blocknote })).toEqual([
+ 'legacy text',
+ ]);
+ });
+
+ it('should fall back to markdown when there is no document', () => {
+ expect(
+ getRichTextFieldTextLines({
+ markdown: '\nline one\n\nline two',
+ tiptap: null,
+ }),
+ ).toEqual(['line one', 'line two']);
+ });
+});
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/isFieldValueEmpty.test.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/isFieldValueEmpty.test.ts
index 0a96696db5b..9061e5bbda1 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/isFieldValueEmpty.test.ts
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/isFieldValueEmpty.test.ts
@@ -220,17 +220,27 @@ describe('isFieldValueEmpty', () => {
expect(
isFieldValueEmpty({
fieldDefinition: richTextFieldDefinition,
- fieldValue: { blocknote: null, markdown: null },
+ fieldValue: { tiptap: null, markdown: null },
}),
).toBe(true);
expect(
isFieldValueEmpty({
fieldDefinition: richTextFieldDefinition,
- fieldValue: { blocknote: '', markdown: null },
+ fieldValue: { tiptap: '', markdown: null },
}),
).toBe(true);
+ expect(
+ isFieldValueEmpty({
+ fieldDefinition: richTextFieldDefinition,
+ fieldValue: {
+ tiptap: '{"type":"doc","content":[{"type":"paragraph"}]}',
+ markdown: null,
+ },
+ }),
+ ).toBe(false);
+
expect(
isFieldValueEmpty({
fieldDefinition: richTextFieldDefinition,
@@ -241,10 +251,7 @@ describe('isFieldValueEmpty', () => {
expect(
isFieldValueEmpty({
fieldDefinition: richTextFieldDefinition,
- fieldValue: {
- blocknote: '[{"type":"paragraph"}]',
- markdown: 'some text',
- },
+ fieldValue: { tiptap: null, markdown: 'some text' },
}),
).toBe(false);
});
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/stripRichTextFileUrlTokens.test.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/stripRichTextFileUrlTokens.test.ts
new file mode 100644
index 00000000000..a63ae7cc72f
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/__tests__/stripRichTextFileUrlTokens.test.ts
@@ -0,0 +1,101 @@
+import { stripRichTextFileUrlTokens } from '@/object-record/record-field/ui/utils/stripRichTextFileUrlTokens';
+
+const buildDocument = (content: unknown[]) =>
+ JSON.stringify({ type: 'doc', attrs: { schemaVersion: 1 }, content });
+
+describe('stripRichTextFileUrlTokens', () => {
+ it('should remove the token from image and file urls', () => {
+ const result = stripRichTextFileUrlTokens(
+ buildDocument([
+ {
+ type: 'image',
+ attrs: {
+ src: 'https://example.com/files/image.png?token=abc&size=2',
+ alt: 'image.png',
+ },
+ },
+ {
+ type: 'file',
+ attrs: {
+ url: 'https://example.com/files/report.pdf?token=def',
+ name: 'report.pdf',
+ },
+ },
+ ]),
+ );
+
+ expect(JSON.parse(result).content).toEqual([
+ {
+ type: 'image',
+ attrs: {
+ src: 'https://example.com/files/image.png?size=2',
+ alt: 'image.png',
+ },
+ },
+ {
+ type: 'file',
+ attrs: {
+ url: 'https://example.com/files/report.pdf',
+ name: 'report.pdf',
+ },
+ },
+ ]);
+ });
+
+ it('should strip nested files and leave links untouched', () => {
+ const result = stripRichTextFileUrlTokens(
+ buildDocument([
+ {
+ type: 'blockquote',
+ content: [
+ {
+ type: 'image',
+ attrs: { src: 'https://example.com/a.png?token=abc' },
+ },
+ {
+ type: 'paragraph',
+ content: [
+ {
+ type: 'text',
+ text: 'link',
+ marks: [
+ {
+ type: 'link',
+ attrs: { href: 'https://example.com/page?token=keep' },
+ },
+ ],
+ },
+ ],
+ },
+ ],
+ },
+ ]),
+ );
+
+ const [blockquote] = JSON.parse(result).content;
+
+ expect(blockquote.content[0].attrs.src).toBe('https://example.com/a.png');
+ expect(blockquote.content[1].content[0].marks[0].attrs.href).toBe(
+ 'https://example.com/page?token=keep',
+ );
+ });
+
+ it('should keep relative urls as they are', () => {
+ const result = stripRichTextFileUrlTokens(
+ buildDocument([
+ { type: 'image', attrs: { src: '/files/a.png?token=x' } },
+ ]),
+ );
+
+ expect(JSON.parse(result).content[0].attrs.src).toBe(
+ '/files/a.png?token=x',
+ );
+ });
+
+ it('should return the input unchanged when it is not a TipTap document', () => {
+ expect(stripRichTextFileUrlTokens('plain markdown')).toBe('plain markdown');
+ expect(stripRichTextFileUrlTokens('[{"type":"paragraph"}]')).toBe(
+ '[{"type":"paragraph"}]',
+ );
+ });
+});
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/utils/getRichTextFieldSerializedContent.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/getRichTextFieldSerializedContent.ts
new file mode 100644
index 00000000000..2222c525b57
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/getRichTextFieldSerializedContent.ts
@@ -0,0 +1,29 @@
+import { isNonEmptyString } from '@sniptt/guards';
+import {
+ convertBlockNoteToRichTextDocument,
+ convertTipTapBlocksToDocument,
+ isDefined,
+} from 'twenty-shared/utils';
+
+import { type FieldRichTextValue } from '@/object-record/record-field/ui/types/FieldMetadata';
+
+export const getRichTextFieldSerializedContent = (
+ fieldValue: FieldRichTextValue | null | undefined,
+): string | undefined => {
+ if (isNonEmptyString(fieldValue?.tiptap)) {
+ return fieldValue.tiptap;
+ }
+
+ const legacyDocument = isNonEmptyString(fieldValue?.blocknote)
+ ? (convertTipTapBlocksToDocument(fieldValue.blocknote) ??
+ convertBlockNoteToRichTextDocument(fieldValue.blocknote))
+ : undefined;
+
+ if (isDefined(legacyDocument)) {
+ return JSON.stringify(legacyDocument);
+ }
+
+ return isNonEmptyString(fieldValue?.markdown)
+ ? fieldValue.markdown
+ : undefined;
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/utils/getRichTextFieldTextLines.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/getRichTextFieldTextLines.ts
new file mode 100644
index 00000000000..44d68d48479
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/getRichTextFieldTextLines.ts
@@ -0,0 +1,50 @@
+import { isNonEmptyString, isString } from '@sniptt/guards';
+import {
+ isDefined,
+ parseTipTapJsonDocument,
+ TIPTAP_NODE_TYPES,
+ type TipTapNode,
+} from 'twenty-shared/utils';
+
+import { type FieldRichTextValue } from '@/object-record/record-field/ui/types/FieldMetadata';
+import { getRichTextFieldSerializedContent } from '@/object-record/record-field/ui/utils/getRichTextFieldSerializedContent';
+
+const getInlineText = (node: TipTapNode): string => {
+ switch (node.type) {
+ case TIPTAP_NODE_TYPES.TEXT:
+ return node.text ?? '';
+ case TIPTAP_NODE_TYPES.HARD_BREAK:
+ return ' ';
+ case TIPTAP_NODE_TYPES.MENTION_TAG:
+ return isString(node.attrs?.label) ? node.attrs.label : '';
+ default:
+ return (node.content ?? []).map(getInlineText).join('');
+ }
+};
+
+const getTextBlocks = (node: TipTapNode): string[] => {
+ switch (node.type) {
+ case TIPTAP_NODE_TYPES.PARAGRAPH:
+ case TIPTAP_NODE_TYPES.HEADING:
+ case TIPTAP_NODE_TYPES.CODE_BLOCK:
+ return [getInlineText(node)];
+ default:
+ return (node.content ?? []).flatMap(getTextBlocks);
+ }
+};
+
+export const getRichTextFieldTextLines = (
+ fieldValue: FieldRichTextValue | null | undefined,
+): string[] => {
+ const serializedDocument = getRichTextFieldSerializedContent(fieldValue);
+
+ const document = isNonEmptyString(serializedDocument)
+ ? parseTipTapJsonDocument(serializedDocument)
+ : undefined;
+
+ const lines = isDefined(document)
+ ? getTextBlocks(document)
+ : (fieldValue?.markdown ?? '').split('\n');
+
+ return lines.map((line) => line.trim()).filter(isNonEmptyString);
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/utils/isFieldValueEmpty.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/isFieldValueEmpty.ts
index 751228f2ea2..a13ae4fa6d4 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/utils/isFieldValueEmpty.ts
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/isFieldValueEmpty.ts
@@ -181,7 +181,8 @@ export const isFieldValueEmpty = ({
if (isFieldRichText(fieldDefinition)) {
return (
!isFieldRichTextValue(fieldValue) ||
- (isValueEmpty(fieldValue?.blocknote) &&
+ (isValueEmpty(fieldValue?.tiptap) &&
+ isValueEmpty(fieldValue?.blocknote) &&
isValueEmpty(fieldValue?.markdown))
);
}
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/utils/stripRichTextFileUrlTokens.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/stripRichTextFileUrlTokens.ts
new file mode 100644
index 00000000000..cfc15a63ff8
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/utils/stripRichTextFileUrlTokens.ts
@@ -0,0 +1,47 @@
+import { isString } from '@sniptt/guards';
+import {
+ getTipTapFileUrlAttributeName,
+ isDefined,
+ parseTipTapJsonDocument,
+ type TipTapNode,
+} from 'twenty-shared/utils';
+
+const stripUrlToken = (url: unknown): unknown => {
+ if (!isString(url) || !URL.canParse(url)) {
+ return url;
+ }
+
+ const parsedUrl = new URL(url);
+
+ parsedUrl.searchParams.delete('token');
+
+ return parsedUrl.toString();
+};
+
+const stripNodeFileUrlTokens = (node: TipTapNode): TipTapNode => {
+ const strippedNode: TipTapNode = { ...node };
+ const fileUrlAttributeName = getTipTapFileUrlAttributeName(node.type);
+
+ if (isDefined(fileUrlAttributeName) && isDefined(node.attrs)) {
+ strippedNode.attrs = {
+ ...node.attrs,
+ [fileUrlAttributeName]: stripUrlToken(node.attrs[fileUrlAttributeName]),
+ };
+ }
+
+ if (isDefined(node.content)) {
+ strippedNode.content = node.content.map(stripNodeFileUrlTokens);
+ }
+
+ return strippedNode;
+};
+
+export const stripRichTextFileUrlTokens = (
+ serializedDocument: string,
+): string => {
+ const document = parseTipTapJsonDocument(serializedDocument);
+
+ return isDefined(document)
+ ? JSON.stringify(stripNodeFileUrlTokens(document))
+ : serializedDocument;
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/validation-schemas/richTextFieldValueSchema.ts b/packages/twenty-front/src/modules/object-record/record-field/ui/validation-schemas/richTextFieldValueSchema.ts
index fe6745d3d2d..0dd80c5ab9e 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/validation-schemas/richTextFieldValueSchema.ts
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/validation-schemas/richTextFieldValueSchema.ts
@@ -3,6 +3,7 @@ import { z } from 'zod';
import { type FieldRichTextValue } from '@/object-record/record-field/ui/types/FieldMetadata';
export const richTextFieldValueSchema = z.object({
- blocknote: z.string().nullable(),
+ blocknote: z.string().nullable().optional(),
markdown: z.string().nullable(),
+ tiptap: z.string().nullable().optional(),
}) satisfies z.ZodType<FieldRichTextValue>;
diff --git a/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/buildRecordFromImportedStructuredRow.test.ts b/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/buildRecordFromImportedStructuredRow.test.ts
index 368e2f65bca..122b0b0d4a4 100644
--- a/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/buildRecordFromImportedStructuredRow.test.ts
+++ b/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/buildRecordFromImportedStructuredRow.test.ts
@@ -319,6 +319,7 @@ describe('buildRecordFromImportedStructuredRow', () => {
ratingField: '4',
'BlockNote (richTextField)': 'Rich content in blocknote format',
'Markdown (richTextField)': 'Content in markdown format',
+ 'TipTap (richTextField)': 'Rich content in tiptap format',
'First Name (fullNameField)': 'John',
'Last Name (fullNameField)': 'Doe',
'Amount (currencyField)': '75',
@@ -427,6 +428,7 @@ describe('buildRecordFromImportedStructuredRow', () => {
richTextField: {
blocknote: 'Rich content in blocknote format',
markdown: 'Content in markdown format',
+ tiptap: 'Rich content in tiptap format',
},
dateField: '2023-12-25',
dateTimeField: '2023-12-25T10:30:00.000Z',
diff --git a/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/buildRecordFromImportedStructuredRow.ts b/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/buildRecordFromImportedStructuredRow.ts
index 4df419b4f3e..b553e87fe00 100644
--- a/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/buildRecordFromImportedStructuredRow.ts
+++ b/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/buildRecordFromImportedStructuredRow.ts
@@ -211,6 +211,7 @@ export const buildRecordFromImportedStructuredRow = ({
[FieldMetadataType.RICH_TEXT]: {
blocknote: castToString,
markdown: castToString,
+ tiptap: castToString,
},
[FieldMetadataType.EMAILS]: {
diff --git a/packages/twenty-front/src/modules/object-record/utils/generateEmptyFieldValue.ts b/packages/twenty-front/src/modules/object-record/utils/generateEmptyFieldValue.ts
index 74952c48f0f..4bc852a34e3 100644
--- a/packages/twenty-front/src/modules/object-record/utils/generateEmptyFieldValue.ts
+++ b/packages/twenty-front/src/modules/object-record/utils/generateEmptyFieldValue.ts
@@ -99,6 +99,7 @@ export const generateEmptyFieldValue = ({
return {
blocknote: null,
markdown: null,
+ tiptap: null,
};
}
case FieldMetadataType.ACTOR: {
diff --git a/packages/twenty-front/src/modules/page-layout/graphql/fragments/pageLayoutWidgetFragment.ts b/packages/twenty-front/src/modules/page-layout/graphql/fragments/pageLayoutWidgetFragment.ts
index 0fbcb0a5c1a..0208e652c9b 100644
--- a/packages/twenty-front/src/modules/page-layout/graphql/fragments/pageLayoutWidgetFragment.ts
+++ b/packages/twenty-front/src/modules/page-layout/graphql/fragments/pageLayoutWidgetFragment.ts
@@ -148,6 +148,7 @@ export const PAGE_LAYOUT_WIDGET_FRAGMENT = gql`
body {
blocknote
markdown
+ tiptap
}
}
... on CalendarConfiguration {
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreateRecordPageNoteWidget.test.tsx b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreateRecordPageNoteWidget.test.tsx
index 861765919d7..2c12f62d4a9 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreateRecordPageNoteWidget.test.tsx
+++ b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreateRecordPageNoteWidget.test.tsx
@@ -230,7 +230,7 @@ describe('useCreateRecordPageNoteWidget', () => {
},
configuration: {
configurationType: WidgetConfigurationType.STANDALONE_RICH_TEXT,
- body: { blocknote: '', markdown: null },
+ body: { tiptap: '', markdown: null },
},
});
expect(
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useCreateRecordPageNoteWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useCreateRecordPageNoteWidget.ts
index 6d2413688e6..7817344e02c 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useCreateRecordPageNoteWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useCreateRecordPageNoteWidget.ts
@@ -39,7 +39,7 @@ export const useCreateRecordPageNoteWidget = (pageLayoutId?: string) => {
const newWidget = createDefaultStandaloneRichTextWidget({
id: widgetId,
pageLayoutTabId: tabId,
- body: { blocknote: '', markdown: null },
+ body: { tiptap: '', markdown: null },
position: {
layoutMode: PageLayoutTabLayoutMode.VERTICAL_LIST,
index: positionIndex ?? activeTab?.widgets.length ?? 0,
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/buildDraftPageLayoutWidget.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/buildDraftPageLayoutWidget.test.ts
index 31ff9536ea8..8f72049c830 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/buildDraftPageLayoutWidget.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/buildDraftPageLayoutWidget.test.ts
@@ -80,7 +80,7 @@ describe('buildDraftPageLayoutWidget', () => {
type: WidgetType.STANDALONE_RICH_TEXT,
configuration: {
configurationType: WidgetConfigurationType.STANDALONE_RICH_TEXT,
- body: { blocknote: '', markdown: null },
+ body: { tiptap: '', markdown: null },
},
position: {
layoutMode: PageLayoutTabLayoutMode.VERTICAL_LIST,
@@ -103,7 +103,7 @@ describe('buildDraftPageLayoutWidget', () => {
type: WidgetType.STANDALONE_RICH_TEXT,
configuration: {
configurationType: WidgetConfigurationType.STANDALONE_RICH_TEXT,
- body: { blocknote: '[]' },
+ body: { tiptap: '' },
},
position: gridPosition,
objectMetadataId: 'object-1',
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/convertPageLayoutToTabLayouts.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/convertPageLayoutToTabLayouts.test.ts
index f901ab5438e..122257d1c3d 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/convertPageLayoutToTabLayouts.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/convertPageLayoutToTabLayouts.test.ts
@@ -224,7 +224,7 @@ describe('convertPageLayoutToTabLayouts', () => {
type: WidgetType.STANDALONE_RICH_TEXT,
configuration: {
configurationType: WidgetConfigurationType.STANDALONE_RICH_TEXT,
- body: { blocknote: '[]' },
+ body: { tiptap: '' },
},
position: {
__typename: 'PageLayoutWidgetGridPosition' as const,
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultStandaloneRichTextWidget.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultStandaloneRichTextWidget.test.ts
index b1e66de92c5..4bc9afc80fe 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultStandaloneRichTextWidget.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultStandaloneRichTextWidget.test.ts
@@ -4,12 +4,18 @@ import {
} from '~/generated-metadata/graphql';
import { createDefaultStandaloneRichTextWidget } from '@/page-layout/utils/createDefaultStandaloneRichTextWidget';
+const TIPTAP_BODY = JSON.stringify({
+ type: 'doc',
+ attrs: { schemaVersion: 1 },
+ content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Test' }] }],
+});
+
describe('createDefaultStandaloneRichTextWidget', () => {
it('should create a standalone rich text widget with correct structure', () => {
const widget = createDefaultStandaloneRichTextWidget({
id: 'widget-1',
pageLayoutTabId: 'tab-1',
- body: { blocknote: '[{"type":"paragraph","content":"Test"}]' },
+ body: { tiptap: TIPTAP_BODY },
position: {
layoutMode: PageLayoutTabLayoutMode.GRID,
row: 0,
@@ -26,7 +32,7 @@ describe('createDefaultStandaloneRichTextWidget', () => {
type: WidgetType.STANDALONE_RICH_TEXT,
title: 'Untitled Rich Text',
configuration: {
- body: { blocknote: '[{"type":"paragraph","content":"Test"}]' },
+ body: { tiptap: TIPTAP_BODY },
},
position: {
__typename: 'PageLayoutWidgetGridPosition',
@@ -43,7 +49,7 @@ describe('createDefaultStandaloneRichTextWidget', () => {
const withObjectId = createDefaultStandaloneRichTextWidget({
id: 'w1',
pageLayoutTabId: 't1',
- body: { blocknote: '[]' },
+ body: { tiptap: '' },
position: {
layoutMode: PageLayoutTabLayoutMode.GRID,
row: 0,
@@ -58,7 +64,7 @@ describe('createDefaultStandaloneRichTextWidget', () => {
const withoutObjectId = createDefaultStandaloneRichTextWidget({
id: 'w2',
pageLayoutTabId: 't1',
- body: { blocknote: '[]' },
+ body: { tiptap: '' },
position: {
layoutMode: PageLayoutTabLayoutMode.GRID,
row: 0,
@@ -77,7 +83,7 @@ describe('createDefaultStandaloneRichTextWidget', () => {
const widget = createDefaultStandaloneRichTextWidget({
id: 'note-widget',
pageLayoutTabId: 'record-tab',
- body: { blocknote: '', markdown: null },
+ body: { tiptap: '', markdown: null },
position: {
layoutMode: PageLayoutTabLayoutMode.VERTICAL_LIST,
index: 2,
@@ -95,7 +101,7 @@ describe('createDefaultStandaloneRichTextWidget', () => {
index: 2,
},
configuration: {
- body: { blocknote: '', markdown: null },
+ body: { tiptap: '', markdown: null },
},
});
});
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardColorIcon.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardColorIcon.tsx
deleted file mode 100644
index 7045a2cc189..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardColorIcon.tsx
+++ /dev/null
@@ -1,79 +0,0 @@
-import { styled } from '@linaria/react';
-
-import { type BlockNoteColor } from '@/page-layout/widgets/standalone-rich-text/types/BlockNoteColor';
-import { themeCssVariables, useTheme } from 'twenty-ui/theme';
-import { doNotTranslate } from 'twenty-shared/i18n';
-const StyledColorIcon = styled.div<{
- textColorValue: string;
- backgroundColorValue: string;
-}>`
- background-color: ${({ backgroundColorValue }) => backgroundColorValue};
- border-radius: ${themeCssVariables.border.radius.xs};
- color: ${({ textColorValue }) => textColorValue};
- font-size: 12px;
- font-weight: ${themeCssVariables.font.weight.medium};
- height: 16px;
- line-height: 16px;
- pointer-events: none;
- text-align: center;
- width: 16px;
-`;
-
-type DashboardColorIconProps = {
- textColor?: BlockNoteColor;
- backgroundColor?: BlockNoteColor;
-};
-
-export const DashboardColorIcon = ({
- textColor,
- backgroundColor,
-}: DashboardColorIconProps) => {
- const theme = useTheme();
-
- const getThemeColorForTextColor = (color: BlockNoteColor): string => {
- if (color === 'default') {
- return 'inherit';
- }
- return (
- (theme.color as unknown as Record<string, string>)[color] ?? 'inherit'
- );
- };
-
- const getThemeColorForBackgroundColor = (color: BlockNoteColor): string => {
- if (color === 'default') {
- return 'transparent';
- }
-
- const backgroundColorMap: Record<
- Exclude<BlockNoteColor, 'default'>,
- string
- > = {
- gray: theme.color.gray3,
- brown: theme.color.brown3,
- red: theme.color.red3,
- orange: theme.color.orange3,
- yellow: theme.color.yellow3,
- green: theme.color.green3,
- blue: theme.color.blue3,
- purple: theme.color.purple3,
- pink: theme.color.pink3,
- };
-
- return backgroundColorMap[color];
- };
-
- return (
- <StyledColorIcon
- textColorValue={
- textColor ? getThemeColorForTextColor(textColor) : 'inherit'
- }
- backgroundColorValue={
- backgroundColor
- ? getThemeColorForBackgroundColor(backgroundColor)
- : 'transparent'
- }
- >
- {doNotTranslate('A')}
- </StyledColorIcon>
- );
-};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardColorSelectionMenu.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardColorSelectionMenu.tsx
deleted file mode 100644
index 101b6444f5b..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardColorSelectionMenu.tsx
+++ /dev/null
@@ -1,55 +0,0 @@
-import { useLingui } from '@lingui/react/macro';
-import { Dropdown } from 'twenty-ui/components/navigation';
-
-import { DashboardColorIcon } from '@/page-layout/widgets/standalone-rich-text/components/DashboardColorIcon';
-import { BLOCKNOTE_COLOR_DISPLAY_NAMES } from '@/page-layout/widgets/standalone-rich-text/constants/BlockNoteColorDisplayNames';
-import { BLOCKNOTE_COLORS } from '@/page-layout/widgets/standalone-rich-text/constants/BlockNoteColors';
-import { type BlockNoteColor } from '@/page-layout/widgets/standalone-rich-text/types/BlockNoteColor';
-
-type DashboardColorSelectionMenuProps = {
- currentTextColor: string;
- currentBackgroundColor: string;
- onTextColorSelect: (color: BlockNoteColor) => void;
- onBackgroundColorSelect: (color: BlockNoteColor) => void;
-};
-
-export const DashboardColorSelectionMenu = ({
- currentTextColor,
- currentBackgroundColor,
- onTextColorSelect,
- onBackgroundColorSelect,
-}: DashboardColorSelectionMenuProps) => {
- const { t } = useLingui();
-
- return (
- <>
- <Dropdown.Section label={t`Text Colors`}>
- {BLOCKNOTE_COLORS.map((colorName) => (
- <Dropdown.OptionItem
- key={colorName}
- aria-label={t(BLOCKNOTE_COLOR_DISPLAY_NAMES[colorName])}
- selected={currentTextColor === colorName}
- startIcon={<DashboardColorIcon textColor={colorName} />}
- onSelect={() => onTextColorSelect(colorName)}
- >
- {t(BLOCKNOTE_COLOR_DISPLAY_NAMES[colorName])}
- </Dropdown.OptionItem>
- ))}
- </Dropdown.Section>
- <Dropdown.Separator />
- <Dropdown.Section label={t`Background Colors`}>
- {BLOCKNOTE_COLORS.map((colorName) => (
- <Dropdown.OptionItem
- key={colorName}
- aria-label={t(BLOCKNOTE_COLOR_DISPLAY_NAMES[colorName])}
- selected={currentBackgroundColor === colorName}
- startIcon={<DashboardColorIcon backgroundColor={colorName} />}
- onSelect={() => onBackgroundColorSelect(colorName)}
- >
- {t(BLOCKNOTE_COLOR_DISPLAY_NAMES[colorName])}
- </Dropdown.OptionItem>
- ))}
- </Dropdown.Section>
- </>
- );
-};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardEditorSideMenu.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardEditorSideMenu.tsx
deleted file mode 100644
index 63732b9b1f3..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardEditorSideMenu.tsx
+++ /dev/null
@@ -1,108 +0,0 @@
-import { SuggestionMenu } from '@blocknote/core/extensions';
-import {
- BlockColorsItem,
- DragHandleButton,
- DragHandleMenu,
- RemoveBlockItem,
- SideMenu,
- SideMenuController,
- useBlockNoteEditor,
- useComponentsContext,
-} from '@blocknote/react';
-import { styled } from '@linaria/react';
-import { useLingui } from '@lingui/react/macro';
-import { IconColorSwatch, IconPlus, IconTrash } from 'twenty-ui/icon';
-import { isDefined } from 'twenty-shared/utils';
-
-import { CustomSideMenuOptions } from '@/blocknote-editor/components/CustomSideMenuOptions';
-import { type DASHBOARD_BLOCK_SCHEMA } from '@/page-layout/widgets/standalone-rich-text/constants/DashboardBlockSchema';
-import { themeCssVariables } from 'twenty-ui/theme';
-
-type DashboardEditorSideMenuProps = {
- editor: typeof DASHBOARD_BLOCK_SCHEMA.BlockNoteEditor;
-};
-
-const StyledDivToCreateGap = styled.div`
- width: ${themeCssVariables.spacing[2]};
-`;
-
-const DashboardAddBlockItem = ({
- editor,
- children,
-}: {
- editor: typeof DASHBOARD_BLOCK_SCHEMA.BlockNoteEditor;
- children: React.ReactNode;
-}) => {
- const Components = useComponentsContext();
- const blockNoteEditor = useBlockNoteEditor();
-
- if (!Components) {
- return null;
- }
-
- const handleClick = () => {
- const currentBlock = blockNoteEditor.getTextCursorPosition().block;
-
- const insertedBlocks = editor.insertBlocks(
- [{ type: 'paragraph' }],
- currentBlock,
- 'after',
- );
-
- const insertedBlock = insertedBlocks[0];
- if (isDefined(insertedBlock)) {
- editor.setTextCursorPosition(insertedBlock);
- }
-
- blockNoteEditor.getExtension(SuggestionMenu)?.openSuggestionMenu('/');
- };
-
- return (
- <Components.Generic.Menu.Item onClick={handleClick}>
- {children}
- </Components.Generic.Menu.Item>
- );
-};
-
-export const DashboardEditorSideMenu = ({
- editor,
-}: DashboardEditorSideMenuProps) => {
- const { t } = useLingui();
-
- return (
- <SideMenuController
- sideMenu={() => (
- <SideMenu>
- <DragHandleButton
- dragHandleMenu={() => (
- <DragHandleMenu>
- <DashboardAddBlockItem editor={editor}>
- <CustomSideMenuOptions
- LeftIcon={IconPlus}
- text={t`Add Block`}
- Variant="normal"
- />
- </DashboardAddBlockItem>
- <BlockColorsItem>
- <CustomSideMenuOptions
- LeftIcon={IconColorSwatch}
- text={t`Change Color`}
- Variant="normal"
- />
- </BlockColorsItem>
- <RemoveBlockItem>
- <CustomSideMenuOptions
- LeftIcon={IconTrash}
- text={t`Delete`}
- Variant="danger"
- />
- </RemoveBlockItem>
- </DragHandleMenu>
- )}
- />
- <StyledDivToCreateGap />
- </SideMenu>
- )}
- />
- );
-};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardFormattingToolbar.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardFormattingToolbar.tsx
deleted file mode 100644
index d12038d0cf1..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardFormattingToolbar.tsx
+++ /dev/null
@@ -1,88 +0,0 @@
-import {
- BasicTextStyleButton,
- BlockTypeSelect,
- CreateLinkButton,
- FormattingToolbar,
- FormattingToolbarController,
- NestBlockButton,
- TextAlignButton,
- UnnestBlockButton,
- useBlockNoteEditor,
-} from '@blocknote/react';
-import { flip, offset, shift } from '@floating-ui/react';
-
-import { getBlockTypeSelectItems } from '@/blocknote-editor/utils/getBlockTypeSelectItems';
-import { DashboardFormattingToolbarColorButton } from '@/page-layout/widgets/standalone-rich-text/components/DashboardFormattingToolbarColorButton';
-import { FORMATTING_TOOLBAR_FLOATING_CONFIG } from '@/page-layout/widgets/standalone-rich-text/constants/FormattingToolbarFloatingConfig';
-import { styled } from '@linaria/react';
-
-const StyledToolbarContainer = styled.div`
- max-width: calc(
- 100vw - ${FORMATTING_TOOLBAR_FLOATING_CONFIG.boundaryPadding * 2}px
- );
-
- & .bn-formatting-toolbar.bn-toolbar {
- box-sizing: border-box;
- flex-wrap: wrap;
- max-width: 100%;
- overflow: visible;
- }
-
- & .bn-formatting-toolbar .mantine-Button-root {
- height: 24px;
- min-height: 24px;
- }
-`;
-
-export const DashboardFormattingToolbar = () => {
- const editor = useBlockNoteEditor();
-
- return (
- <FormattingToolbarController
- formattingToolbar={() => (
- <StyledToolbarContainer>
- <FormattingToolbar>
- <BlockTypeSelect
- key="blockTypeSelect"
- items={getBlockTypeSelectItems(editor.dictionary)}
- />
- <BasicTextStyleButton basicTextStyle="bold" key="boldStyleButton" />
- <BasicTextStyleButton
- basicTextStyle="italic"
- key="italicStyleButton"
- />
- <BasicTextStyleButton
- basicTextStyle="underline"
- key="underlineStyleButton"
- />
- <BasicTextStyleButton
- basicTextStyle="strike"
- key="strikeStyleButton"
- />
- <TextAlignButton textAlignment="left" key="textAlignLeftButton" />
- <TextAlignButton
- textAlignment="center"
- key="textAlignCenterButton"
- />
- <TextAlignButton textAlignment="right" key="textAlignRightButton" />
- <DashboardFormattingToolbarColorButton key="colorStyleButton" />
- <NestBlockButton key="nestBlockButton" />
- <UnnestBlockButton key="unnestBlockButton" />
- <CreateLinkButton key="createLinkButton" />
- </FormattingToolbar>
- </StyledToolbarContainer>
- )}
- floatingUIOptions={{
- useFloatingOptions: {
- middleware: [
- offset(FORMATTING_TOOLBAR_FLOATING_CONFIG.offsetFromSelection),
- shift({
- padding: FORMATTING_TOOLBAR_FLOATING_CONFIG.boundaryPadding,
- }),
- flip(),
- ],
- },
- }}
- />
- );
-};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardFormattingToolbarColorButton.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardFormattingToolbarColorButton.tsx
deleted file mode 100644
index 4555e8d46a5..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardFormattingToolbarColorButton.tsx
+++ /dev/null
@@ -1,85 +0,0 @@
-import { useActiveStyles, useBlockNoteEditor } from '@blocknote/react';
-import { styled } from '@linaria/react';
-import { useLingui } from '@lingui/react/macro';
-import { useId } from 'react';
-import { Dropdown } from 'twenty-ui/components/navigation';
-import { themeCssVariables } from 'twenty-ui/theme';
-
-import { DashboardColorIcon } from '@/page-layout/widgets/standalone-rich-text/components/DashboardColorIcon';
-import { DashboardColorSelectionMenu } from '@/page-layout/widgets/standalone-rich-text/components/DashboardColorSelectionMenu';
-import { type BlockNoteColor } from '@/page-layout/widgets/standalone-rich-text/types/BlockNoteColor';
-import { extractColorFromProps } from '@/page-layout/widgets/standalone-rich-text/utils/extractColorFromProps';
-import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';
-import { DropdownRoot } from '@/ui/layout/dropdown/components/DropdownRoot';
-
-const StyledColorButton = styled.button`
- align-items: center;
- border-radius: ${themeCssVariables.border.radius.sm};
- display: flex;
- height: 24px;
- justify-content: center;
- padding: ${themeCssVariables.spacing[1]};
- width: 24px;
-
- &:hover {
- background: ${themeCssVariables.background.transparent.light};
- }
-`;
-
-export const DashboardFormattingToolbarColorButton = () => {
- const editor = useBlockNoteEditor();
- const { t } = useLingui();
- const instanceId = useId();
- const activeStyles = useActiveStyles(editor);
- const currentTextColor = extractColorFromProps(activeStyles, 'text');
- const currentBackgroundColor = extractColorFromProps(
- activeStyles,
- 'background',
- );
-
- const handleTextColorSelect = (color: BlockNoteColor) => {
- if (color === 'default') {
- editor.removeStyles({ textColor: color });
- return;
- }
- editor.addStyles({ textColor: color });
- };
-
- const handleBackgroundColorSelect = (color: BlockNoteColor) => {
- if (color === 'default') {
- editor.removeStyles({ backgroundColor: color });
- return;
- }
- editor.addStyles({ backgroundColor: color });
- };
-
- return (
- <DropdownRoot dropdownId={`dashboard-color-${instanceId}`} type="picker">
- <Dropdown.Trigger
- render={
- <StyledColorButton aria-label={t`Text and background colors`}>
- <DashboardColorIcon
- textColor={currentTextColor}
- backgroundColor={currentBackgroundColor}
- />
- </StyledColorButton>
- }
- />
- <DropdownContent
- sideOffset={8}
- aria-label={t`Text and background colors`}
- finalFocus={() => {
- editor.focus();
- return false;
- }}
- >
- <DashboardColorSelectionMenu
- currentTextColor={currentTextColor}
- currentBackgroundColor={currentBackgroundColor}
- onTextColorSelect={handleTextColorSelect}
- onBackgroundColorSelect={handleBackgroundColorSelect}
- />
- </DropdownContent>
- </DropdownRoot>
- );
-};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardsBlockEditor.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardsBlockEditor.tsx
deleted file mode 100644
index a5b7bcc2f2a..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/DashboardsBlockEditor.tsx
+++ /dev/null
@@ -1,211 +0,0 @@
-import { filterSuggestionItems } from '@blocknote/core/extensions';
-import { BlockNoteView } from '@blocknote/mantine';
-import { SuggestionMenuController } from '@blocknote/react';
-import { css } from '@linaria/core';
-import { styled } from '@linaria/react';
-import { type ClipboardEvent } from 'react';
-
-import { CustomSlashMenu } from '@/blocknote-editor/components/CustomSlashMenu';
-import { type SuggestionItem } from '@/blocknote-editor/types/SuggestionMenuItems';
-import { DashboardEditorSideMenu } from '@/page-layout/widgets/standalone-rich-text/components/DashboardEditorSideMenu';
-import { DashboardFormattingToolbar } from '@/page-layout/widgets/standalone-rich-text/components/DashboardFormattingToolbar';
-import { type DASHBOARD_BLOCK_SCHEMA } from '@/page-layout/widgets/standalone-rich-text/constants/DashboardBlockSchema';
-import { getDashboardSlashMenu } from '@/page-layout/widgets/standalone-rich-text/utils/getDashboardSlashMenu';
-import { useThemeColorScheme, themeCssVariables } from 'twenty-ui/theme';
-type DashboardsBlockEditorProps = {
- editor: typeof DASHBOARD_BLOCK_SCHEMA.BlockNoteEditor;
- onFocus?: () => void;
- onBlur?: () => void;
- onPaste?: (event: ClipboardEvent) => void;
- onChange?: () => void;
- readonly?: boolean;
-};
-
-const StyledEditor = styled.div`
- width: 100%;
-`;
-
-// TODO: Refactor these BlockNote CSS overrides - some may be dead code now that we have custom components
-// (DashboardEditorSideMenu, DashboardColorSelectionMenu).
-// Test removing each selector and move necessary styles to appropriate components.
-// BlockNote shares this class with its body portal to preserve menu styles outside the widget.
-// oxlint-disable-next-line twenty/no-hardcoded-colors
-const editorStyles = css`
- & .editor {
- background: transparent;
- color: ${themeCssVariables.font.color.primary};
- font-size: 13px;
- user-select: text;
- }
- & .editor [class^='_inlineContent']:before {
- color: ${themeCssVariables.font.color.tertiary};
- font-style: normal !important;
- }
- & .editor .bn-inline-content:has(> .ProseMirror-trailingBreak):before {
- font-style: normal;
- }
- & .mantine-ActionIcon-icon {
- background: transparent;
- height: 20px;
- width: 20px;
- }
- & .bn-drag-handle {
- height: 20px;
- width: 20px;
- }
- & .bn-block-outer {
- line-height: 1.4;
- }
- & .bn-block-content[data-content-type='checkListItem'] > div > div {
- align-items: center;
- display: flex;
- }
- & .bn-drag-handle-menu {
- backdrop-filter: ${themeCssVariables.blur.medium};
- background: ${themeCssVariables.background.transparent.secondary};
- border: 1px solid ${themeCssVariables.border.color.medium};
- border-radius: ${themeCssVariables.border.radius.md};
- box-shadow:
- 0px 2px 4px rgba(0, 0, 0, 0.04),
- 2px 4px 16px rgba(0, 0, 0, 0.12);
- min-height: 96px;
- min-width: 160px;
- padding: 4px;
- }
-
- & .bn-editor {
- padding-inline: 0px;
- }
-
- & .bn-block-content {
- min-width: 0;
- }
-
- & .bn-block-content,
- & .bn-inline-content {
- overflow-wrap: anywhere;
- }
-
- & .bn-inline-content {
- max-width: 100%;
- min-width: 0;
- }
-
- & .bn-suggestion-menu-item:hover {
- background-color: blue;
- }
-
- & .bn-suggestion-menu {
- backdrop-filter: ${themeCssVariables.blur.medium};
- background: ${themeCssVariables.background.transparent.secondary};
- border: 1px solid ${themeCssVariables.border.color.medium};
- border-radius: ${themeCssVariables.border.radius.md};
- padding: 4px;
- }
-
- & .mantine-Menu-item {
- background-color: transparent;
- color: ${themeCssVariables.font.color.secondary};
- font-family: ${themeCssVariables.font.family};
-
- font-style: normal;
- font-weight: ${themeCssVariables.font.weight.regular};
- min-height: 32px;
- min-width: 152px;
- }
- & .mantine-ActionIcon-root:hover {
- backdrop-filter: blur(20px);
- background: ${themeCssVariables.background.transparent.primary};
- border: 1px solid ${themeCssVariables.border.color.light};
- box-shadow:
- 0px 0px 4px rgba(0, 0, 0, 0.08),
- 0px 2px 4px rgba(0, 0, 0, 0.04);
- }
- & .bn-side-menu .mantine-UnstyledButton-root:not(.mantine-Menu-item) svg {
- height: 16px;
- width: 16px;
- }
-
- & .bn-side-menu > [draggable='true'] {
- margin-bottom: 5px;
- }
- & .bn-color-picker-dropdown {
- margin-left: 8px;
- }
-
- & .bn-inline-content a {
- color: ${themeCssVariables.color.blue};
- }
-
- & .bn-inline-content code {
- background-color: ${themeCssVariables.background.transparent.light};
- border: 1px solid ${themeCssVariables.font.color.extraLight};
- border-radius: ${themeCssVariables.border.radius.sm};
- color: ${themeCssVariables.font.color.danger};
- font-family: monospace;
- font-size: 0.9rem;
- padding: 2px 4px;
- }
-`;
-
-export const DashboardsBlockEditor = ({
- editor,
- onFocus,
- onBlur,
- onChange,
- onPaste,
- readonly,
-}: DashboardsBlockEditorProps) => {
- const colorScheme = useThemeColorScheme();
- const blockNoteTheme = colorScheme === 'light' ? 'light' : 'dark';
-
- const handleFocus = () => {
- onFocus?.();
- };
-
- const handleBlur = () => {
- onBlur?.();
- };
-
- const handleChange = () => {
- onChange?.();
- };
-
- const handlePaste = (event: ClipboardEvent) => {
- onPaste?.(event);
- };
-
- return (
- <StyledEditor>
- <BlockNoteView
- className={editorStyles}
- onFocus={handleFocus}
- onBlur={handleBlur}
- onPaste={handlePaste}
- onChange={handleChange}
- editor={editor}
- theme={blockNoteTheme}
- slashMenu={false}
- sideMenu={false}
- formattingToolbar={false}
- editable={!readonly}
- portalElements={{ default: null }}
- >
- {!readonly && (
- <>
- <DashboardFormattingToolbar />
- <DashboardEditorSideMenu editor={editor} />
- <SuggestionMenuController
- triggerCharacter="/"
- getItems={async (query) => {
- const items = getDashboardSlashMenu(editor);
- return filterSuggestionItems<SuggestionItem>(items, query);
- }}
- suggestionMenuComponent={CustomSlashMenu}
- />
- </>
- )}
- </BlockNoteView>
- </StyledEditor>
- );
-};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextEditorContent.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextEditorContent.tsx
index 450ba37f604..c7ea7ad71c1 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextEditorContent.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextEditorContent.tsx
@@ -1,31 +1,43 @@
import { useCallback, useState } from 'react';
+import { AdvancedTextEditor } from '@/advanced-text-editor/components/AdvancedTextEditor';
+import { AdvancedTextEditorBlockHandle } from '@/advanced-text-editor/components/AdvancedTextEditorBlockHandle';
+import { useAdvancedTextEditor } from '@/advanced-text-editor/hooks/useAdvancedTextEditor';
+import { getStorableEditorDocument } from '@/advanced-text-editor/utils/getStorableEditorDocument';
+import { serializeJsonContentAsAdvancedTextEditorDocument } from '@/advanced-text-editor/utils/serializeJsonContentAsAdvancedTextEditorDocument';
import { isLayoutCustomizationModeEnabledState } from '@/layout-customization/states/isLayoutCustomizationModeEnabledState';
+import { RICH_TEXT_FIELD_EDITOR_GLOBAL_HOTKEYS_CONFIG } from '@/object-record/record-field/ui/meta-types/input/constants/RichTextFieldEditorGlobalHotkeysConfig';
import { useUpdatePageLayoutWidget } from '@/page-layout/hooks/useUpdatePageLayoutWidget';
import { isDashboardInEditModeComponentState } from '@/page-layout/states/isDashboardInEditModeComponentState';
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
-import { DashboardsBlockEditor } from '@/page-layout/widgets/standalone-rich-text/components/DashboardsBlockEditor';
import { StandaloneRichTextWidgetAutoFocusEffect } from '@/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidgetAutoFocusEffect';
-import { DASHBOARD_BLOCK_SCHEMA } from '@/page-layout/widgets/standalone-rich-text/constants/DashboardBlockSchema';
-import { filterSupportedBlocks } from '@/page-layout/widgets/standalone-rich-text/utils/filterSupportedBlocks';
-
-import { BLOCK_EDITOR_GLOBAL_HOTKEYS_CONFIG } from '@/blocknote-editor/constants/BlockEditorGlobalHotkeysConfig';
-import { parseInitialBlocknote } from '@/blocknote-editor/utils/parseInitialBlocknote';
+import { STANDALONE_RICH_TEXT_EDITOR_PROFILE } from '@/page-layout/widgets/standalone-rich-text/constants/StandaloneRichTextEditorProfile';
import { usePushFocusItemToFocusStack } from '@/ui/utilities/focus/hooks/usePushFocusItemToFocusStack';
import { useRemoveFocusItemFromFocusStackById } from '@/ui/utilities/focus/hooks/useRemoveFocusItemFromFocusStackById';
import { FocusComponentType } from '@/ui/utilities/focus/types/FocusComponentType';
import { useAtomComponentStateCallbackState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateCallbackState';
-import '@blocknote/mantine/style.css';
-import { useCreateBlockNote } from '@blocknote/react';
-import '@blocknote/react/style.css';
+import { styled } from '@linaria/react';
import { t } from '@lingui/core/macro';
+import { type Editor } from '@tiptap/core';
import { useStore } from 'jotai';
+import { isDefined } from 'twenty-shared/utils';
+import { themeCssVariables } from 'twenty-ui/theme';
import { useDebouncedCallback } from 'use-debounce';
import { WidgetConfigurationType } from '~/generated-metadata/graphql';
+const StyledEditorContainer = styled.div<{ isEditable: boolean }>`
+ box-sizing: border-box;
+ max-width: 100%;
+ min-width: 0;
+ padding-left: ${({ isEditable }) =>
+ isEditable ? themeCssVariables.spacing[5] : 0};
+ position: relative;
+ width: 100%;
+`;
+
type StandaloneRichTextEditorContentProps = {
widget: PageLayoutWidget;
- currentBody: string;
+ currentBody: string | undefined;
isEditable: boolean;
shouldFocus: boolean;
containerElement: HTMLDivElement | null;
@@ -47,6 +59,8 @@ export const StandaloneRichTextEditorContent = ({
);
const store = useStore();
+ const [initialBody] = useState(currentBody);
+
const shouldPersistDraft = useCallback(() => {
const isDashboardInEditMode = store.get(isDashboardInEditModeState);
const isLayoutCustomizationModeEnabled = store.get(
@@ -57,20 +71,7 @@ export const StandaloneRichTextEditorContent = ({
);
}, [isDashboardInEditModeState, isEditable, store]);
- const [initialContent] = useState(() =>
- filterSupportedBlocks(parseInitialBlocknote(currentBody)),
- );
-
- const editor = useCreateBlockNote({
- initialContent,
- domAttributes: { editor: { class: 'editor' } },
- schema: DASHBOARD_BLOCK_SCHEMA,
- placeholders: {
- default: t`Enter text or type '/' for commands`,
- },
- });
-
- const handlePersistBody = useDebouncedCallback((blocknote: string) => {
+ const handlePersistBody = useDebouncedCallback((tiptap: string) => {
if (!shouldPersistDraft()) {
return;
}
@@ -78,51 +79,71 @@ export const StandaloneRichTextEditorContent = ({
configuration: {
configurationType: WidgetConfigurationType.STANDALONE_RICH_TEXT,
body: {
- blocknote,
+ blocknote: null,
markdown: null,
+ tiptap,
},
},
});
}, 300);
- const handleEditorChange = () => {
- const newStringifiedBody = JSON.stringify(editor.document) ?? '';
-
- handlePersistBody(newStringifiedBody);
+ const handleEditorUpdate = (currentEditor: Editor) => {
+ handlePersistBody(
+ serializeJsonContentAsAdvancedTextEditorDocument(
+ getStorableEditorDocument(currentEditor),
+ ),
+ );
};
- const handleBlockEditorFocus = () => {
+ const handleEditorFocus = () => {
pushFocusItemToFocusStack({
component: {
instanceId: widget.id,
type: FocusComponentType.STANDALONE_RICH_TEXT_WIDGET,
},
focusId: widget.id,
- globalHotkeysConfig: BLOCK_EDITOR_GLOBAL_HOTKEYS_CONFIG,
+ globalHotkeysConfig: RICH_TEXT_FIELD_EDITOR_GLOBAL_HOTKEYS_CONFIG,
});
};
- const handleBlockEditorBlur = () => {
+ const handleEditorBlur = () => {
handlePersistBody.flush();
removeFocusItemFromFocusStackById({
focusId: widget.id,
});
};
+ const editor = useAdvancedTextEditor(
+ {
+ profile: STANDALONE_RICH_TEXT_EDITOR_PROFILE,
+ placeholder: t`Enter text or type '/' for commands`,
+ readonly: !isEditable,
+ defaultValue: initialBody,
+ onUpdate: handleEditorUpdate,
+ onFocus: handleEditorFocus,
+ onBlur: handleEditorBlur,
+ },
+ [widget.id, isEditable],
+ );
+
+ if (!isDefined(editor)) {
+ return null;
+ }
+
return (
- <>
+ <StyledEditorContainer isEditable={isEditable}>
<StandaloneRichTextWidgetAutoFocusEffect
shouldFocus={shouldFocus}
editor={editor}
containerElement={containerElement}
/>
- <DashboardsBlockEditor
- onFocus={handleBlockEditorFocus}
- onBlur={handleBlockEditorBlur}
- onChange={handleEditorChange}
+ <AdvancedTextEditor
editor={editor}
readonly={!isEditable}
+ minHeight={STANDALONE_RICH_TEXT_EDITOR_PROFILE.minHeight}
+ variant={STANDALONE_RICH_TEXT_EDITOR_PROFILE.variant}
/>
- </>
+ {isEditable && <AdvancedTextEditorBlockHandle editor={editor} />}
+ </StyledEditorContainer>
);
};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidget.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidget.tsx
index 1f83b724ccc..7ee7ec7b1ff 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidget.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidget.tsx
@@ -1,5 +1,6 @@
import { useRef } from 'react';
+import { getRichTextFieldSerializedContent } from '@/object-record/record-field/ui/utils/getRichTextFieldSerializedContent';
import { useIsPageLayoutInEditMode } from '@/page-layout/hooks/useIsPageLayoutInEditMode';
import { pageLayoutEditingWidgetIdComponentState } from '@/page-layout/states/pageLayoutEditingWidgetIdComponentState';
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
@@ -8,16 +9,13 @@ import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { styled } from '@linaria/react';
import { type StandaloneRichTextConfiguration } from '~/generated-metadata/graphql';
-import { themeCssVariables } from 'twenty-ui/theme';
-const StyledContainer = styled.div<{ isPageLayoutInEditMode?: boolean }>`
+const StyledContainer = styled.div`
box-sizing: border-box;
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
- padding-left: ${({ isPageLayoutInEditMode }) =>
- isPageLayoutInEditMode ? themeCssVariables.spacing[5] : 0};
width: 100%;
`;
@@ -39,16 +37,13 @@ export const StandaloneRichTextWidget = ({
| StandaloneRichTextConfiguration
| undefined;
- const currentBody = configuration?.body?.blocknote ?? '';
+ const currentBody = getRichTextFieldSerializedContent(configuration?.body);
const isThisWidgetBeingEdited = pageLayoutEditingWidgetId === widget.id;
const isEditable = isPageLayoutInEditMode;
return (
- <StyledContainer
- ref={containerElementRef}
- isPageLayoutInEditMode={isPageLayoutInEditMode}
- >
+ <StyledContainer ref={containerElementRef}>
<ScrollWrapper
componentInstanceId={`scroll-wrapper-rich-text-widget-${widget.id}`}
>
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidgetAutoFocusEffect.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidgetAutoFocusEffect.tsx
index 95ee9f88d62..46002b21a30 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidgetAutoFocusEffect.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidgetAutoFocusEffect.tsx
@@ -1,9 +1,9 @@
-import { type DASHBOARD_BLOCK_SCHEMA } from '@/page-layout/widgets/standalone-rich-text/constants/DashboardBlockSchema';
+import { type Editor } from '@tiptap/core';
import { useEffect } from 'react';
type StandaloneRichTextWidgetAutoFocusEffectProps = {
shouldFocus: boolean;
- editor: typeof DASHBOARD_BLOCK_SCHEMA.BlockNoteEditor;
+ editor: Editor;
containerElement?: HTMLElement | null;
};
@@ -19,7 +19,7 @@ export const StandaloneRichTextWidgetAutoFocusEffect = ({
if (!alreadyFocused) {
const rafId = requestAnimationFrame(() => {
- editor.focus();
+ editor.commands.focus();
});
return () => {
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/__stories__/DashboardFormattingToolbarColorButton.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/__stories__/DashboardFormattingToolbarColorButton.stories.tsx
deleted file mode 100644
index b43e171fc0e..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/__stories__/DashboardFormattingToolbarColorButton.stories.tsx
+++ /dev/null
@@ -1,75 +0,0 @@
-import { useCreateBlockNote } from '@blocknote/react';
-import { type Meta, type StoryObj } from '@storybook/react-vite';
-import { expect, userEvent, waitFor, within } from 'storybook/test';
-import { ComponentDecorator } from 'twenty-ui/testing';
-
-import { DashboardsBlockEditor } from '@/page-layout/widgets/standalone-rich-text/components/DashboardsBlockEditor';
-import { DASHBOARD_BLOCK_SCHEMA } from '@/page-layout/widgets/standalone-rich-text/constants/DashboardBlockSchema';
-
-const ColorToolbarExample = () => {
- const editor = useCreateBlockNote({
- schema: DASHBOARD_BLOCK_SCHEMA,
- initialContent: [{ type: 'paragraph', content: 'Color this text' }],
- });
- return <DashboardsBlockEditor editor={editor} />;
-};
-
-const meta: Meta<typeof ColorToolbarExample> = {
- title: 'Modules/PageLayout/DashboardFormattingToolbarColorButton',
- component: ColorToolbarExample,
- decorators: [ComponentDecorator],
-};
-export default meta;
-type Story = StoryObj<typeof ColorToolbarExample>;
-
-export const ApplyColors: Story = {
- play: async ({ canvasElement }) => {
- const body = within(canvasElement.ownerDocument.body);
- const editor = canvasElement.querySelector<HTMLElement>(
- '[contenteditable="true"]',
- )!;
- await userEvent.tripleClick(within(editor).getByText('Color this text'));
- const selectedText = canvasElement.ownerDocument.getSelection()?.toString();
- await expect(selectedText).not.toBe('');
- await userEvent.click(
- await body.findByRole('button', { name: 'Text and background colors' }),
- );
- const popup = await body.findByRole('dialog', {
- name: 'Text and background colors',
- });
- await expect(within(popup).getByText('Text Colors')).toBeVisible();
- await expect(within(popup).getByText('Background Colors')).toBeVisible();
- await expect(
- within(popup).getAllByRole('button', { name: 'Default' })[0],
- ).toHaveAttribute('aria-pressed', 'true');
- await userEvent.click(
- within(popup).getAllByRole('button', { name: 'Red' })[0],
- );
- await waitFor(() =>
- expect(body.queryByRole('dialog')).not.toBeInTheDocument(),
- );
- await waitFor(() => expect(editor).toHaveFocus());
- await expect(
- editor.querySelector('[data-style-type="textColor"][data-value="red"]'),
- ).toHaveTextContent(selectedText!);
- await userEvent.click(
- await body.findByRole('button', { name: 'Text and background colors' }),
- );
- const reopened = await body.findByRole('dialog');
- await expect(
- within(reopened).getAllByRole('button', { name: 'Red' })[0],
- ).toHaveAttribute('aria-pressed', 'true');
- await userEvent.click(
- within(reopened).getAllByRole('button', { name: 'Blue' })[1],
- );
- await waitFor(() => expect(editor).toHaveFocus());
- await expect(
- editor.querySelector(
- '[data-style-type="backgroundColor"][data-value="blue"]',
- ),
- ).toHaveTextContent(selectedText!);
- await expect(
- await body.findByRole('button', { name: 'Text and background colors' }),
- ).toBeVisible();
- },
-};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/__stories__/RecordPageNoteWidget.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/__stories__/RecordPageNoteWidget.stories.tsx
index e1f792bd3ee..5462c67f917 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/__stories__/RecordPageNoteWidget.stories.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/__stories__/RecordPageNoteWidget.stories.tsx
@@ -46,9 +46,16 @@ const NOTE_WIDGET = createDefaultStandaloneRichTextWidget({
pageLayoutTabId: 'tab-1',
title: 'Note',
body: {
- blocknote: JSON.stringify([
- { id: 'instructions', type: 'paragraph', content: 'Shared instructions' },
- ]),
+ tiptap: JSON.stringify({
+ type: 'doc',
+ attrs: { schemaVersion: 1 },
+ content: [
+ {
+ type: 'paragraph',
+ content: [{ type: 'text', text: 'Shared instructions' }],
+ },
+ ],
+ }),
markdown: null,
},
position: { layoutMode: PageLayoutTabLayoutMode.VERTICAL_LIST, index: 0 },
@@ -246,7 +253,6 @@ export const SelectAndFormatText: Story = {
await userEvent.tripleClick(canvas.getByText('Shared instructions'));
const bold = await body.findByRole('button', { name: /^Bold/ });
await waitFor(() => expect(bold).toBeVisible());
- await expect(canvasElement.contains(bold)).toBe(false);
await expect(jotaiStore.get(isSidePanelOpenedState.atom)).toBe(false);
await expect(jotaiStore.get(EDITING_WIDGET_ATOM)).toBe('other-widget');
await userEvent.click(bold);
@@ -259,7 +265,7 @@ export const SelectAndFormatText: Story = {
expect(
jotaiStore.get(DRAFT_ATOM).tabs[0].widgets[0].configuration,
).toMatchObject({
- body: { blocknote: expect.stringContaining('"bold":true') },
+ body: { tiptap: expect.stringContaining('"type":"bold"') },
}),
);
if (args.layoutType === PageLayoutType.RECORD_PAGE) {
@@ -275,6 +281,90 @@ export const DashboardSelection: Story = {
play: SelectAndFormatText.play,
};
+export const ApplyColors: Story = {
+ args: { layoutType: PageLayoutType.DASHBOARD },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+ const body = within(canvasElement.ownerDocument.body);
+ const editor = await canvas.findByRole('textbox');
+ await userEvent.click(canvas.getByText('Shared instructions'));
+ await waitFor(() => expect(editor).toHaveFocus());
+ await userEvent.tripleClick(canvas.getByText('Shared instructions'));
+ await userEvent.click(
+ await body.findByRole('button', { name: 'Text and background colors' }),
+ );
+ const popup = await body.findByRole('dialog', {
+ name: 'Text and background colors',
+ });
+ await expect(within(popup).getByText('Text Colors')).toBeVisible();
+ await expect(within(popup).getByText('Background Colors')).toBeVisible();
+ await expect(
+ within(popup).getAllByRole('button', { name: 'Default' })[0],
+ ).toHaveAttribute('aria-pressed', 'true');
+ await userEvent.click(
+ within(popup).getAllByRole('button', { name: 'Red' })[0],
+ );
+ await waitFor(() =>
+ expect(body.queryByRole('dialog')).not.toBeInTheDocument(),
+ );
+ await waitFor(() => expect(editor).toHaveFocus());
+ await expect(
+ editor.querySelector('[data-text-color="red"]'),
+ ).toHaveTextContent('Shared instructions');
+ await userEvent.click(
+ await body.findByRole('button', { name: 'Text and background colors' }),
+ );
+ const reopened = await body.findByRole('dialog');
+ await expect(
+ within(reopened).getAllByRole('button', { name: 'Red' })[0],
+ ).toHaveAttribute('aria-pressed', 'true');
+ await userEvent.click(
+ within(reopened).getAllByRole('button', { name: 'Blue' })[1],
+ );
+ await waitFor(() => expect(editor).toHaveFocus());
+ await expect(
+ editor.querySelector('[data-background-color="blue"]'),
+ ).toHaveTextContent('Shared instructions');
+ await waitFor(() =>
+ expect(
+ jotaiStore.get(DRAFT_ATOM).tabs[0].widgets[0].configuration,
+ ).toMatchObject({
+ body: {
+ tiptap: expect.stringContaining('"backgroundColor":"blue"'),
+ },
+ }),
+ );
+ },
+};
+
+export const AlignText: Story = {
+ args: { layoutType: PageLayoutType.DASHBOARD },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+ const body = within(canvasElement.ownerDocument.body);
+ await userEvent.tripleClick(canvas.getByText('Shared instructions'));
+ await expect(
+ await body.findByRole('button', { name: 'Align left' }),
+ ).toHaveAttribute('aria-pressed', 'true');
+ await userEvent.click(body.getByRole('button', { name: 'Align center' }));
+ await waitFor(() =>
+ expect(canvas.getByText('Shared instructions')).toHaveStyle({
+ textAlign: 'center',
+ }),
+ );
+ await expect(
+ body.getByRole('button', { name: 'Align center' }),
+ ).toHaveAttribute('aria-pressed', 'true');
+ await waitFor(() =>
+ expect(
+ jotaiStore.get(DRAFT_ATOM).tabs[0].widgets[0].configuration,
+ ).toMatchObject({
+ body: { tiptap: expect.stringContaining('"textAlign":"center"') },
+ }),
+ );
+ },
+};
+
export const CancelPendingEdit: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/BlockNoteColors.ts b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/BlockNoteColors.ts
deleted file mode 100644
index c550d6246cb..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/BlockNoteColors.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-export const BLOCKNOTE_COLORS = [
- 'default',
- 'gray',
- 'brown',
- 'red',
- 'orange',
- 'yellow',
- 'green',
- 'blue',
- 'purple',
- 'pink',
-] as const;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/DashboardBlockSchema.ts b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/DashboardBlockSchema.ts
deleted file mode 100644
index ffc1ac43f8f..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/DashboardBlockSchema.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { BlockNoteSchema, defaultBlockSpecs } from '@blocknote/core';
-
-export const DASHBOARD_BLOCK_SCHEMA = BlockNoteSchema.create({
- blockSpecs: {
- paragraph: defaultBlockSpecs.paragraph,
- heading: defaultBlockSpecs.heading,
- bulletListItem: defaultBlockSpecs.bulletListItem,
- numberedListItem: defaultBlockSpecs.numberedListItem,
- checkListItem: defaultBlockSpecs.checkListItem,
- codeBlock: defaultBlockSpecs.codeBlock,
- table: defaultBlockSpecs.table,
- quote: defaultBlockSpecs.quote,
- },
-});
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/FormattingToolbarFloatingConfig.ts b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/FormattingToolbarFloatingConfig.ts
deleted file mode 100644
index c3dad72bcd6..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/FormattingToolbarFloatingConfig.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export const FORMATTING_TOOLBAR_FLOATING_CONFIG = {
- offsetFromSelection: 10,
- boundaryPadding: 8,
-};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/StandaloneRichTextEditorProfile.ts b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/StandaloneRichTextEditorProfile.ts
new file mode 100644
index 00000000000..55f3c75b2b1
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/constants/StandaloneRichTextEditorProfile.ts
@@ -0,0 +1,12 @@
+import { type AdvancedTextEditorProfile } from '@/advanced-text-editor/types/AdvancedTextEditorProfile';
+import { buildRecordRichTextExtensions } from '@/advanced-text-editor/utils/buildRecordRichTextExtensions';
+import { parseLegacyMarkdownDocument } from '@/advanced-text-editor/utils/parseLegacyMarkdownDocument';
+
+export const STANDALONE_RICH_TEXT_EDITOR_PROFILE = {
+ chrome: 'document',
+ variant: 'app',
+ minHeight: 0,
+ enableFullScreen: false,
+ parseLegacyDocument: parseLegacyMarkdownDocument,
+ buildExtensions: buildRecordRichTextExtensions,
+} satisfies AdvancedTextEditorProfile;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/types/BlockNoteColor.ts b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/types/BlockNoteColor.ts
deleted file mode 100644
index aa5ae344b76..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/types/BlockNoteColor.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { type BLOCKNOTE_COLORS } from '@/page-layout/widgets/standalone-rich-text/constants/BlockNoteColors';
-
-export type BlockNoteColor = (typeof BLOCKNOTE_COLORS)[number];
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/utils/__tests__/extractColorFromProps.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/utils/__tests__/extractColorFromProps.test.ts
deleted file mode 100644
index 63f4545ed7c..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/utils/__tests__/extractColorFromProps.test.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-import { extractColorFromProps } from '@/page-layout/widgets/standalone-rich-text/utils/extractColorFromProps';
-
-describe('extractColorFromProps', () => {
- describe('text color extraction', () => {
- it('should return textColor when present and is a string', () => {
- const props = { textColor: 'red' };
- expect(extractColorFromProps(props, 'text')).toBe('red');
- });
-
- it('should return default when textColor is not a string', () => {
- const props = { textColor: 123 };
- expect(extractColorFromProps(props, 'text')).toBe('default');
- });
-
- it('should return default when textColor is missing', () => {
- const props = {};
- expect(extractColorFromProps(props, 'text')).toBe('default');
- });
-
- it('should return default when textColor is null', () => {
- const props = { textColor: null };
- expect(extractColorFromProps(props, 'text')).toBe('default');
- });
-
- it('should return default when textColor is undefined', () => {
- const props = { textColor: undefined };
- expect(extractColorFromProps(props, 'text')).toBe('default');
- });
- });
-
- describe('background color extraction', () => {
- it('should return backgroundColor when present and is a string', () => {
- const props = { backgroundColor: 'blue' };
- expect(extractColorFromProps(props, 'background')).toBe('blue');
- });
-
- it('should return default when backgroundColor is not a string', () => {
- const props = { backgroundColor: { value: 'blue' } };
- expect(extractColorFromProps(props, 'background')).toBe('default');
- });
-
- it('should return default when backgroundColor is missing', () => {
- const props = {};
- expect(extractColorFromProps(props, 'background')).toBe('default');
- });
-
- it('should return default when backgroundColor is null', () => {
- const props = { backgroundColor: null };
- expect(extractColorFromProps(props, 'background')).toBe('default');
- });
- });
-
- describe('edge cases', () => {
- it('should not confuse textColor and backgroundColor', () => {
- const props = { textColor: 'red', backgroundColor: 'blue' };
- expect(extractColorFromProps(props, 'text')).toBe('red');
- expect(extractColorFromProps(props, 'background')).toBe('blue');
- });
-
- it('should handle empty string as valid color', () => {
- const props = { textColor: '' };
- expect(extractColorFromProps(props, 'text')).toBe('');
- });
- });
-});
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/utils/extractColorFromProps.ts b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/utils/extractColorFromProps.ts
deleted file mode 100644
index b8ede63127f..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/utils/extractColorFromProps.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { type BlockNoteColor } from '@/page-layout/widgets/standalone-rich-text/types/BlockNoteColor';
-import { isString } from '@sniptt/guards';
-
-export const extractColorFromProps = (
- props: Record<string, unknown>,
- colorType: 'text' | 'background',
-): BlockNoteColor => {
- const propertyName = colorType === 'text' ? 'textColor' : 'backgroundColor';
- return isString(props[propertyName])
- ? (props[propertyName] as BlockNoteColor)
- : 'default';
-};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/utils/filterSupportedBlocks.ts b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/utils/filterSupportedBlocks.ts
deleted file mode 100644
index 8aef210caff..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/utils/filterSupportedBlocks.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { type PartialBlock } from '@blocknote/core';
-
-import { filterBlocksSupportedBySchema } from '@/blocknote-editor/utils/filterBlocksSupportedBySchema';
-import { DASHBOARD_BLOCK_SCHEMA } from '@/page-layout/widgets/standalone-rich-text/constants/DashboardBlockSchema';
-
-type DashboardPartialBlock = (typeof DASHBOARD_BLOCK_SCHEMA)['PartialBlock'];
-
-export const filterSupportedBlocks = (
- blocks: PartialBlock[] | undefined,
-): DashboardPartialBlock[] | undefined =>
- filterBlocksSupportedBySchema(blocks, DASHBOARD_BLOCK_SCHEMA.blockSchema) as
- | DashboardPartialBlock[]
- | undefined;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/utils/getDashboardSlashMenu.ts b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/utils/getDashboardSlashMenu.ts
deleted file mode 100644
index 6f2a40b732b..00000000000
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/utils/getDashboardSlashMenu.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-import { getDefaultReactSlashMenuItems } from '@blocknote/react';
-import { t } from '@lingui/core/macro';
-
-import { type SuggestionItem } from '@/blocknote-editor/types/SuggestionMenuItems';
-import { type DASHBOARD_BLOCK_SCHEMA } from '@/page-layout/widgets/standalone-rich-text/constants/DashboardBlockSchema';
-import {
- IconBlockquote,
- IconCode,
- type IconComponent,
- IconH1,
- IconH2,
- IconH3,
- IconH4,
- IconH5,
- IconH6,
- IconList,
- IconListCheck,
- IconListNumbers,
- IconMoodSmile,
- IconTable,
- IconTextSize,
-} from 'twenty-ui/icon';
-import { doNotTranslate } from 'twenty-shared/i18n';
-
-const Icons: Record<string, IconComponent> = {
- 'Heading 1': IconH1,
- 'Heading 2': IconH2,
- 'Heading 3': IconH3,
- 'Heading 4': IconH4,
- 'Heading 5': IconH5,
- 'Heading 6': IconH6,
- 'Toggle Heading 1': IconH1,
- 'Toggle Heading 2': IconH2,
- 'Toggle Heading 3': IconH3,
- Quote: IconBlockquote,
- 'Numbered List': IconListNumbers,
- 'Bullet List': IconList,
- 'Check List': IconListCheck,
- 'Code Block': IconCode,
- Paragraph: IconTextSize,
- Table: IconTable,
- Emoji: IconMoodSmile,
-};
-
-const EXCLUDED_BLOCK_TYPES = doNotTranslate([
- 'Image',
- 'Video',
- 'Audio',
- 'File',
-]);
-
-export const getDashboardSlashMenu = (
- editor: typeof DASHBOARD_BLOCK_SCHEMA.BlockNoteEditor,
-) => {
- const items: SuggestionItem[] = getDefaultReactSlashMenuItems(editor)
- .filter((item) => !EXCLUDED_BLOCK_TYPES.includes(item.title))
- .map((item) => ({
- ...item,
- title: item.title === 'Paragraph' ? t`Text` : item.title,
- Icon: Icons[item.title],
- }));
-
- return items;
-};
diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationVariableInput.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationVariableInput.tsx
index b357aeaa272..54a4d7af54d 100644
--- a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationVariableInput.tsx
+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationVariableInput.tsx
@@ -54,14 +54,15 @@ const parseRichTextValue = (value: string): FieldRichTextValue => {
typeof parsed.blocknote === 'string' ? parsed.blocknote : null;
const markdown =
typeof parsed.markdown === 'string' ? parsed.markdown : null;
+ const tiptap = typeof parsed.tiptap === 'string' ? parsed.tiptap : null;
- return { blocknote, markdown };
+ return { blocknote, markdown, tiptap };
}
} catch {
- return { blocknote: null, markdown: value === '' ? null : value };
+ return { markdown: value === '' ? null : value };
}
- return { blocknote: null, markdown: value === '' ? null : value };
+ return { markdown: value === '' ? null : value };
};
export const SettingsApplicationVariableInput = ({
diff --git a/packages/twenty-front/src/modules/settings/data-model/constants/SettingsCompositeFieldTypeConfigs.ts b/packages/twenty-front/src/modules/settings/data-model/constants/SettingsCompositeFieldTypeConfigs.ts
index b9e48a3c466..c93357f35d6 100644
--- a/packages/twenty-front/src/modules/settings/data-model/constants/SettingsCompositeFieldTypeConfigs.ts
+++ b/packages/twenty-front/src/modules/settings/data-model/constants/SettingsCompositeFieldTypeConfigs.ts
@@ -546,15 +546,18 @@ export const SETTINGS_COMPOSITE_FIELD_TYPE_CONFIGS = {
],
exampleValues: doNotTranslate([
{
- blocknote: '[{"type":"heading","content":"Hello"}]',
+ tiptap:
+ '{"type":"doc","attrs":{"schemaVersion":1},"content":[{"type":"heading","attrs":{"level":1},"content":[{"type":"text","text":"Hello"}]}]}',
markdown: '# Hello',
},
{
- blocknote: '[{"type":"heading","content":"Hello World"}]',
+ tiptap:
+ '{"type":"doc","attrs":{"schemaVersion":1},"content":[{"type":"heading","attrs":{"level":1},"content":[{"type":"text","text":"Hello World"}]}]}',
markdown: '# Hello World',
},
{
- blocknote: '[{"type":"heading","content":"Hello Again"}]',
+ tiptap:
+ '{"type":"doc","attrs":{"schemaVersion":1},"content":[{"type":"heading","attrs":{"level":1},"content":[{"type":"text","text":"Hello Again"}]}]}',
markdown: '# Hello Again',
},
]),
diff --git a/packages/twenty-front/src/modules/side-panel/components/__tests__/SidePanelRouter.test.tsx b/packages/twenty-front/src/modules/side-panel/components/__tests__/SidePanelRouter.test.tsx
index ba770d7173d..c690ea4d06b 100644
--- a/packages/twenty-front/src/modules/side-panel/components/__tests__/SidePanelRouter.test.tsx
+++ b/packages/twenty-front/src/modules/side-panel/components/__tests__/SidePanelRouter.test.tsx
@@ -29,7 +29,6 @@ import {
import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper';
import { getMockObjectMetadataItemOrThrow } from '~/testing/utils/getMockObjectMetadataItemOrThrow';
-// The full page configs pull in the BlockNote editor, which jest cannot parse
jest.mock('@/side-panel/constants/SidePanelPagesConfig', () => {
const { SidePanelPages: Pages } = jest.requireActual('twenty-shared/types');
const { SidePanelDashboardRecordTableSettings } = jest.requireActual(
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutDashboardWidgetTypeSelect.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutDashboardWidgetTypeSelect.tsx
index 66baa8e2feb..354e2ead6d1 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutDashboardWidgetTypeSelect.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutDashboardWidgetTypeSelect.tsx
@@ -182,7 +182,7 @@ export const SidePanelPageLayoutDashboardWidgetTypeSelect = () => {
title: t`Untitled Rich Text`,
configuration: {
configurationType: WidgetConfigurationType.STANDALONE_RICH_TEXT,
- body: { blocknote: '', markdown: null },
+ body: { tiptap: '', markdown: null },
},
});
setPageLayoutEditingWidgetId(newWidget.id);
diff --git a/packages/twenty-front/src/modules/validation-rules/utils/__tests__/computeDraftValidationRuleViolations.test.ts b/packages/twenty-front/src/modules/validation-rules/utils/__tests__/computeDraftValidationRuleViolations.test.ts
index 8904082daf2..c36eeaec75e 100644
--- a/packages/twenty-front/src/modules/validation-rules/utils/__tests__/computeDraftValidationRuleViolations.test.ts
+++ b/packages/twenty-front/src/modules/validation-rules/utils/__tests__/computeDraftValidationRuleViolations.test.ts
@@ -231,8 +231,8 @@ describe('computeDraftValidationRuleViolations', () => {
it('should leave a rich text rule to the server until the server computes its markdown', () => {
const descriptionAwaitingMarkdown = {
- blocknote:
- '[{"type":"paragraph","content":[{"type":"text","text":"Hello"}]}]',
+ tiptap:
+ '{"type":"doc","attrs":{"schemaVersion":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Hello"}]}]}',
markdown: null,
};
@@ -256,7 +256,7 @@ describe('computeDraftValidationRuleViolations', () => {
compute({}, [DESCRIPTION_RULE]).map((violation) => violation.ruleId),
).toEqual(['description-rule']);
expect(
- compute({ description: { blocknote: null, markdown: null } }, [
+ compute({ description: { tiptap: null, markdown: null } }, [
DESCRIPTION_RULE,
]).map((violation) => violation.ruleId),
).toEqual(['description-rule']);
diff --git a/packages/twenty-front/src/modules/validation-rules/utils/computeDraftValidationRuleViolations.ts b/packages/twenty-front/src/modules/validation-rules/utils/computeDraftValidationRuleViolations.ts
index 20491c294d6..db1daeef061 100644
--- a/packages/twenty-front/src/modules/validation-rules/utils/computeDraftValidationRuleViolations.ts
+++ b/packages/twenty-front/src/modules/validation-rules/utils/computeDraftValidationRuleViolations.ts
@@ -35,7 +35,7 @@ const IS_DRAFT_VALUE_COMPLETED_BY_SERVER_BY_FIELD_TYPE: Partial<
> = {
[FieldMetadataType.RICH_TEXT]: (draftValue) =>
isPlainObject(draftValue) &&
- isNonEmptyString(draftValue.blocknote) &&
+ isNonEmptyString(draftValue.tiptap) &&
!isNonEmptyString(draftValue.markdown),
};
diff --git a/packages/twenty-front/src/testing/mock-data/workflow-run.ts b/packages/twenty-front/src/testing/mock-data/workflow-run.ts
index deced67c1b5..9f42fbee04e 100644
--- a/packages/twenty-front/src/testing/mock-data/workflow-run.ts
+++ b/packages/twenty-front/src/testing/mock-data/workflow-run.ts
@@ -118,6 +118,12 @@ export const oneSucceededWorkflowRunQueryResult = {
value: 'My text',
isLeaf: true,
},
+ tiptap: {
+ type: 'TEXT',
+ label: ' Tiptap',
+ value: 'My text',
+ isLeaf: true,
+ },
},
isLeaf: false,
},
@@ -4402,6 +4408,7 @@ export const oneSucceededWorkflowRunQueryResult = {
bodyV2: {
markdown: '',
blocknote: '',
+ tiptap: '',
},
position: 0,
createdAt: '2025-03-06T12:15:43.371Z',
@@ -4585,6 +4592,12 @@ export const oneSucceededWorkflowRunQueryResult = {
value: 'My text',
isLeaf: true,
},
+ tiptap: {
+ type: 'TEXT',
+ label: ' Tiptap',
+ value: 'My text',
+ isLeaf: true,
+ },
},
isLeaf: false,
},
diff --git a/packages/twenty-front/vite.config.ts b/packages/twenty-front/vite.config.ts
index 0aa50f782f5..24da06d8f8a 100644
--- a/packages/twenty-front/vite.config.ts
+++ b/packages/twenty-front/vite.config.ts
@@ -121,10 +121,7 @@ export default defineConfig(({ mode }) => {
protocol: 'http',
}),
fs: {
- allow: [
- searchForWorkspaceRoot(process.cwd()),
- '**/@blocknote/core/src/fonts/**',
- ],
+ allow: [searchForWorkspaceRoot(process.cwd())],
},
},
diff --git a/yarn.lock b/yarn.lock
index 3cc9745d349..c80a8d8534a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4737,82 +4737,6 @@ __metadata:
languageName: node
linkType: hard
-"@blocknote/core@npm:0.51.4":
- version: 0.51.4
- resolution: "@blocknote/core@npm:0.51.4"
- dependencies:
- "@emoji-mart/data": "npm:^1.2.1"
- "@handlewithcare/prosemirror-inputrules": "npm:^0.1.4"
- "@shikijs/types": "npm:^4"
- "@tanstack/store": "npm:^0.7.7"
- "@tiptap/core": "npm:^3.13.0"
- "@tiptap/extension-bold": "npm:^3.13.0"
- "@tiptap/extension-code": "npm:^3.13.0"
- "@tiptap/extension-horizontal-rule": "npm:^3.13.0"
- "@tiptap/extension-italic": "npm:^3.13.0"
- "@tiptap/extension-paragraph": "npm:^3.13.0"
- "@tiptap/extension-strike": "npm:^3.13.0"
- "@tiptap/extension-text": "npm:^3.13.0"
- "@tiptap/extension-underline": "npm:^3.13.0"
- "@tiptap/extensions": "npm:^3.13.0"
- "@tiptap/pm": "npm:^3.13.0"
- emoji-mart: "npm:^5.6.0"
- fast-deep-equal: "npm:^3.1.3"
- lib0: "npm:^0.2.99"
- prosemirror-highlight: "npm:^0.15.1"
- prosemirror-model: "npm:^1.25.4"
- prosemirror-state: "npm:^1.4.4"
- prosemirror-tables: "npm:^1.8.3"
- prosemirror-transform: "npm:^1.11.0"
- prosemirror-view: "npm:^1.41.4"
- y-prosemirror: "npm:^1.3.7"
- y-protocols: "npm:^1.0.6"
- yjs: "npm:^13.6.27"
- checksum: 10c0/81152a8287e358bbc2a18df002e0850b3e21393221a3a007c00fcfd93450f2320ba72b234fbfe0054bc90202d47fb84705951e6597a4881a625c6fa785cfb6a4
- languageName: node
- linkType: hard
-
-"@blocknote/mantine@npm:^0.51.4":
- version: 0.51.4
- resolution: "@blocknote/mantine@npm:0.51.4"
- dependencies:
- "@blocknote/core": "npm:0.51.4"
- "@blocknote/react": "npm:0.51.4"
- react-icons: "npm:^5.5.0"
- peerDependencies:
- "@mantine/core": ^8.3.11 || ^9.0.2
- "@mantine/hooks": ^8.3.11 || ^9.0.2
- react: ^18.0 || ^19.0 || >= 19.0.0-rc
- react-dom: ^18.0 || ^19.0 || >= 19.0.0-rc
- checksum: 10c0/c6cd80f1b6434b6328da355c4592dc5a02537587c8d6173005c02f8e49f4033fe13481d8670262576ca8b6296466d236f1bd5a8ca3a30800d0d00d03813ebcf9
- languageName: node
- linkType: hard
-
-"@blocknote/react@npm:0.51.4, @blocknote/react@npm:^0.51.4":
- version: 0.51.4
- resolution: "@blocknote/react@npm:0.51.4"
- dependencies:
- "@blocknote/core": "npm:0.51.4"
- "@emoji-mart/data": "npm:^1.2.1"
- "@floating-ui/react": "npm:^0.27.18"
- "@floating-ui/utils": "npm:^0.2.10"
- "@tanstack/react-store": "npm:0.7.7"
- "@tiptap/core": "npm:^3.13.0"
- "@tiptap/pm": "npm:^3.13.0"
- "@tiptap/react": "npm:^3.13.0"
- "@types/use-sync-external-store": "npm:1.5.0"
- emoji-mart: "npm:^5.6.0"
- fast-deep-equal: "npm:^3.1.3"
- lodash.merge: "npm:^4.6.2"
- react-icons: "npm:^5.5.0"
- use-sync-external-store: "npm:1.6.0"
- peerDependencies:
- react: ^18.0 || ^19.0 || >= 19.0.0-rc
- react-dom: ^18.0 || ^19.0 || >= 19.0.0-rc
- checksum: 10c0/ea9ca22144b6deb8645483677b542d38c706e698da6a99886a86c2f0b5911066c377d70bbeb55259ac7ea99b0318202f98d20d84ddb2fe8fc0753fa969ed46ff
- languageName: node
- linkType: hard
-
"@borewit/text-codec@npm:^0.2.1":
version: 0.2.1
resolution: "@borewit/text-codec@npm:0.2.1"
@@ -5825,13 +5749,6 @@ __metadata:
languageName: node
linkType: hard
-"@emoji-mart/data@npm:^1.2.1":
- version: 1.2.1
- resolution: "@emoji-mart/data@npm:1.2.1"
- checksum: 10c0/6784b97bf49a0d3ff110d8447bbd3b0449fcbc497294be3d1c3a6cb1609308776895c7520200be604cbecaa5e172c76927e47f34419c72ba8a76fd4e5a53674b
- languageName: node
- linkType: hard
-
"@emotion/babel-plugin@npm:^11.13.5":
version: 11.13.5
resolution: "@emotion/babel-plugin@npm:11.13.5"
@@ -6812,18 +6729,6 @@ __metadata:
languageName: node
linkType: hard
-"@floating-ui/react-dom@npm:^2.1.7":
- version: 2.1.7
- resolution: "@floating-ui/react-dom@npm:2.1.7"
- dependencies:
- "@floating-ui/dom": "npm:^1.7.5"
- peerDependencies:
- react: ">=16.8.0"
- react-dom: ">=16.8.0"
- checksum: 10c0/3ef4a53ac93d2757e7995ce0313b3c14c5c5c66f2cb893256cc70c74713ff1c192f88a1bde02e2f50e951a7a3d8513b14611a4dbcc2d313def1f7003f7296dba
- languageName: node
- linkType: hard
-
"@floating-ui/react-dom@npm:^2.1.9":
version: 2.1.9
resolution: "@floating-ui/react-dom@npm:2.1.9"
@@ -6864,7 +6769,7 @@ __metadata:
languageName: node
linkType: hard
-"@floating-ui/react@npm:^0.27.15, @floating-ui/react@npm:^0.27.18":
+"@floating-ui/react@npm:^0.27.15":
version: 0.27.19
resolution: "@floating-ui/react@npm:0.27.19"
dependencies:
@@ -6878,20 +6783,6 @@ __metadata:
languageName: node
linkType: hard
-"@floating-ui/react@npm:^0.27.16":
- version: 0.27.18
- resolution: "@floating-ui/react@npm:0.27.18"
- dependencies:
- "@floating-ui/react-dom": "npm:^2.1.7"
- "@floating-ui/utils": "npm:^0.2.10"
- tabbable: "npm:^6.0.0"
- peerDependencies:
- react: ">=17.0.0"
- react-dom: ">=17.0.0"
- checksum: 10c0/d480aeeb6f9495bc85e3ddf037d400e88c0c960c0bad3af6fb8cb1931eef6602e493a6174be98d1baa8edcd7e84fe68d5b1afffd28ae0d32f4dbdb44fa8001fc
- languageName: node
- linkType: hard
-
"@floating-ui/utils@npm:0.2.10, @floating-ui/utils@npm:^0.2.10":
version: 0.2.10
resolution: "@floating-ui/utils@npm:0.2.10"
@@ -7913,20 +7804,6 @@ __metadata:
languageName: node
linkType: hard
-"@handlewithcare/prosemirror-inputrules@npm:^0.1.4":
- version: 0.1.4
- resolution: "@handlewithcare/prosemirror-inputrules@npm:0.1.4"
- dependencies:
- prosemirror-history: "npm:^1.4.1"
- prosemirror-transform: "npm:^1.0.0"
- peerDependencies:
- prosemirror-model: ^1.0.0
- prosemirror-state: ^1.0.0
- prosemirror-view: ^1.0.0
- checksum: 10c0/639545966a73b9bfe45a2baef20e318d27fdb7614dff8e5d9defc2c4e20fafcb437a7c496d0c14c2daff74a20130d284ce84a33c67fd5dc621c8358a0ab9fc44
- languageName: node
- linkType: hard
-
"@hapi/address@npm:^5.1.1":
version: 5.1.1
resolution: "@hapi/address@npm:5.1.1"
@@ -10420,33 +10297,6 @@ __metadata:
languageName: node
linkType: hard
-"@mantine/core@npm:^8.3.11":
- version: 8.3.15
- resolution: "@mantine/core@npm:8.3.15"
- dependencies:
- "@floating-ui/react": "npm:^0.27.16"
- clsx: "npm:^2.1.1"
- react-number-format: "npm:^5.4.4"
- react-remove-scroll: "npm:^2.7.1"
- react-textarea-autosize: "npm:8.5.9"
- type-fest: "npm:^4.41.0"
- peerDependencies:
- "@mantine/hooks": 8.3.15
- react: ^18.x || ^19.x
- react-dom: ^18.x || ^19.x
- checksum: 10c0/e43a55ecd7fa8b69834cf86d6fa44ee4e2718eb1d477e9456e9b49017c48175766d6cf7bbb9b136a136320b6f7d27c4a9b86d2cd1d7cfa33ef406ee446866140
- languageName: node
- linkType: hard
-
-"@mantine/hooks@npm:^8.3.11":
- version: 8.3.18
- resolution: "@mantine/hooks@npm:8.3.18"
- peerDependencies:
- react: ^18.x || ^19.x
- checksum: 10c0/3767cb33a3e1c4469f18f12536c4c6e42d714ebf5f6da032c8b38ebb24db9ad399978437c69e263c5689a61ea97f17f145719dfe2cdcfa1aa70270711d993b19
- languageName: node
- linkType: hard
-
"@marijn/find-cluster-break@npm:^1.0.0":
version: 1.0.2
resolution: "@marijn/find-cluster-break@npm:1.0.2"
@@ -17673,16 +17523,6 @@ __metadata:
languageName: node
linkType: hard
-"@shikijs/types@npm:^4":
- version: 4.2.0
- resolution: "@shikijs/types@npm:4.2.0"
- dependencies:
- "@shikijs/vscode-textmate": "npm:^10.0.2"
- "@types/hast": "npm:^3.0.4"
- checksum: 10c0/d78095c1df9ec8ee0a3cd3e203b9431943f88d1f5efce5cfabad87935f6bcd9628d3f450b42c8e65e7119fd94549e84ae4c5ac564cb55424bab12f67f26a0f0b
- languageName: node
- linkType: hard
-
"@shikijs/vscode-textmate@npm:^10.0.2":
version: 10.0.2
resolution: "@shikijs/vscode-textmate@npm:10.0.2"
@@ -19992,19 +19832,6 @@ __metadata:
languageName: node
linkType: hard
-"@tanstack/react-store@npm:0.7.7":
- version: 0.7.7
- resolution: "@tanstack/react-store@npm:0.7.7"
- dependencies:
- "@tanstack/store": "npm:0.7.7"
- use-sync-external-store: "npm:^1.5.0"
- peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
- checksum: 10c0/12f5119492503aeac0bb45fc41bda140630ccbb6b5b92ebc5dbc1bf0e32728820dbb9455821850aa87bdc15793d4efbf98fa0ff04bb85363fe4d77c03547f13e
- languageName: node
- linkType: hard
-
"@tanstack/react-virtual@npm:^3.13.9":
version: 3.14.2
resolution: "@tanstack/react-virtual@npm:3.14.2"
@@ -20017,13 +19844,6 @@ __metadata:
languageName: node
linkType: hard
-"@tanstack/store@npm:0.7.7, @tanstack/store@npm:^0.7.7":
- version: 0.7.7
- resolution: "@tanstack/store@npm:0.7.7"
- checksum: 10c0/bf90fa957bd97336d7dbc0d7b87379b5fe4baea030efef8a93fe4e49ac1c8bc929247d1a9f84b16a1642e386b67fe53be14df8d5415efdf85f83733ccdf8877a
- languageName: node
- linkType: hard
-
"@tanstack/virtual-core@npm:3.13.2":
version: 3.13.2
resolution: "@tanstack/virtual-core@npm:3.13.2"
@@ -20132,7 +19952,7 @@ __metadata:
languageName: node
linkType: hard
-"@tiptap/core@npm:^3.13.0, @tiptap/core@npm:^3.4.2":
+"@tiptap/core@npm:^3.4.2":
version: 3.31.3
resolution: "@tiptap/core@npm:3.31.3"
peerDependencies:
@@ -20150,16 +19970,7 @@ __metadata:
languageName: node
linkType: hard
-"@tiptap/extension-bold@npm:^3.13.0":
- version: 3.31.3
- resolution: "@tiptap/extension-bold@npm:3.31.3"
- peerDependencies:
- "@tiptap/core": 3.31.3
- checksum: 10c0/4302a94f9d8cfa1090a6ba1a0f75ab748abab9b568d122e94d8bf86fe998089d643c875c058750e017115862747537f0ef0111f7fad4fa0b6ced64da2f97b5ec
- languageName: node
- linkType: hard
-
-"@tiptap/extension-bubble-menu@npm:^3.30.5, @tiptap/extension-bubble-menu@npm:^3.31.3":
+"@tiptap/extension-bubble-menu@npm:^3.30.5":
version: 3.31.3
resolution: "@tiptap/extension-bubble-menu@npm:3.31.3"
dependencies:
@@ -20171,12 +19982,22 @@ __metadata:
languageName: node
linkType: hard
-"@tiptap/extension-code@npm:^3.13.0":
- version: 3.31.3
- resolution: "@tiptap/extension-code@npm:3.31.3"
+"@tiptap/extension-code-block@npm:3.30.5":
+ version: 3.30.5
+ resolution: "@tiptap/extension-code-block@npm:3.30.5"
peerDependencies:
- "@tiptap/core": 3.31.3
- checksum: 10c0/c5d1b543f53df8d2119b09421cb3c9353e6e5844447af2f452e64b1a4fe94dd65857d7717cd1807cde89a55d5eceb5e797163ab83a547cccf0745f87459c2a3b
+ "@tiptap/core": 3.30.5
+ "@tiptap/pm": 3.30.5
+ checksum: 10c0/241c762ab1ddb22ec2d3ef591ebc37e226da65b173113af03d64b70f4990124d03d2fc78e61856bbf7c786df96ec8af532d868769a7b8d677cabcdbd6abf871e
+ languageName: node
+ linkType: hard
+
+"@tiptap/extension-code@npm:3.30.5":
+ version: 3.30.5
+ resolution: "@tiptap/extension-code@npm:3.30.5"
+ peerDependencies:
+ "@tiptap/core": 3.30.5
+ checksum: 10c0/545b887b2ba301a8e7121f4fe36bae76c9a1238ff5fccf63083b40d16113fa5008cdfcd2e4d24589f1b06701de13726862cb427e4d08be283cd8e7510d298cbe
languageName: node
linkType: hard
@@ -20244,7 +20065,18 @@ __metadata:
languageName: node
linkType: hard
-"@tiptap/extension-floating-menu@npm:^3.30.5, @tiptap/extension-floating-menu@npm:^3.31.3":
+"@tiptap/extension-file-handler@npm:3.30.5":
+ version: 3.30.5
+ resolution: "@tiptap/extension-file-handler@npm:3.30.5"
+ peerDependencies:
+ "@tiptap/core": 3.30.5
+ "@tiptap/extension-text-style": 3.30.5
+ "@tiptap/pm": 3.30.5
+ checksum: 10c0/01c5b7529ca0a322324357162cfe9f810860ffab2430ba0bcefb05e6b1813da5f671669c715d6283e9a1e1ce9e79f7edca9ecae05aca4118bb5e450e2fb57174
+ languageName: node
+ linkType: hard
+
+"@tiptap/extension-floating-menu@npm:^3.30.5":
version: 3.31.3
resolution: "@tiptap/extension-floating-menu@npm:3.31.3"
peerDependencies:
@@ -20273,16 +20105,6 @@ __metadata:
languageName: node
linkType: hard
-"@tiptap/extension-horizontal-rule@npm:^3.13.0":
- version: 3.31.3
- resolution: "@tiptap/extension-horizontal-rule@npm:3.31.3"
- peerDependencies:
- "@tiptap/core": 3.31.3
- "@tiptap/pm": 3.31.3
- checksum: 10c0/148c98bb39b3f909167505821d78fd0ff6f2b32bbd881e52d06507e3024b8e47c254db24c821a3e9cd2fdcfb1e8579118cac013948718c4ba8b1dd5ca45054af
- languageName: node
- linkType: hard
-
"@tiptap/extension-image@npm:3.30.5":
version: 3.30.5
resolution: "@tiptap/extension-image@npm:3.30.5"
@@ -20301,15 +20123,6 @@ __metadata:
languageName: node
linkType: hard
-"@tiptap/extension-italic@npm:^3.13.0":
- version: 3.31.3
- resolution: "@tiptap/extension-italic@npm:3.31.3"
- peerDependencies:
- "@tiptap/core": 3.31.3
- checksum: 10c0/7d14fdcf9e6a8fc8f8b6a8f56d20314dd9e426b3c6046592b87c96ccc2a44365dade7cbd53f3d3e4106c6a5b4e606afad41bebd15882ba79b518d4248b025840
- languageName: node
- linkType: hard
-
"@tiptap/extension-link@npm:3.30.5":
version: 3.30.5
resolution: "@tiptap/extension-link@npm:3.30.5"
@@ -20351,15 +20164,6 @@ __metadata:
languageName: node
linkType: hard
-"@tiptap/extension-paragraph@npm:^3.13.0":
- version: 3.31.3
- resolution: "@tiptap/extension-paragraph@npm:3.31.3"
- peerDependencies:
- "@tiptap/core": 3.31.3
- checksum: 10c0/57ee1f635dfb5bd99a2b733522e07c241769ea157fdc4ccb3f69e197fe6af278c0cf6c5eb5cd385a895ff1b8479125cc382da93a1b646bfb74fec456d56dd95a
- languageName: node
- linkType: hard
-
"@tiptap/extension-strike@npm:3.30.5":
version: 3.30.5
resolution: "@tiptap/extension-strike@npm:3.30.5"
@@ -20369,48 +20173,49 @@ __metadata:
languageName: node
linkType: hard
-"@tiptap/extension-strike@npm:^3.13.0":
- version: 3.31.3
- resolution: "@tiptap/extension-strike@npm:3.31.3"
+"@tiptap/extension-table@npm:3.30.5":
+ version: 3.30.5
+ resolution: "@tiptap/extension-table@npm:3.30.5"
peerDependencies:
- "@tiptap/core": 3.31.3
- checksum: 10c0/716c63b30b153d71c4fac07987cab74c0a62892d47b55f3386e57633161b1872f52f02144cd6e1d5581816193d89d74ce624e320b857715a9f485b1468d7735f
+ "@tiptap/core": 3.30.5
+ "@tiptap/pm": 3.30.5
+ checksum: 10c0/4fef7cc7004beffea348cac08df72aa2086658368531140e54ea0febc55a3756f26aa8e6748307457794459879f741ed5b401e4d569738f7eb043ce259ce0ef5
languageName: node
linkType: hard
-"@tiptap/extension-text@npm:3.30.5":
+"@tiptap/extension-text-align@npm:3.30.5":
version: 3.30.5
- resolution: "@tiptap/extension-text@npm:3.30.5"
+ resolution: "@tiptap/extension-text-align@npm:3.30.5"
peerDependencies:
"@tiptap/core": 3.30.5
- checksum: 10c0/48f7a8fc989a7fad1fde76d040ca2f4104e2a0f1d258800359afa80c6e1c3f348664fd6b2d98f5ee3aafe3e9496ee96d5b90882c7f27a71043636ee8d070e9d7
+ checksum: 10c0/9ceee5c06c21dd6efd057b6c02cb815c2dd74cd330d3e4c35d04684b8c066ba82508a89bffdd4c7bb67c3015bb9af558ee52d6d837b616fd006d5775d0be94db
languageName: node
linkType: hard
-"@tiptap/extension-text@npm:^3.13.0":
- version: 3.31.3
- resolution: "@tiptap/extension-text@npm:3.31.3"
+"@tiptap/extension-text-style@npm:3.30.5":
+ version: 3.30.5
+ resolution: "@tiptap/extension-text-style@npm:3.30.5"
peerDependencies:
- "@tiptap/core": 3.31.3
- checksum: 10c0/09812f25b90b93eab0db579a3a58135ed449b9f99dde260da6fb8d6bbf1a3276ca03338e11b71a4f0b4e0b486961cbf94b05ee90ab0af88066632fbf3cc6ec40
+ "@tiptap/core": 3.30.5
+ checksum: 10c0/ba028b4033366ea450a0d76f90c5a8fa2dd279f2058bef54754b4736bf806950d0338290a3885334a4d193055d0d0b6be0d4620c09ca0390b99612408b29cb81
languageName: node
linkType: hard
-"@tiptap/extension-underline@npm:3.30.5":
+"@tiptap/extension-text@npm:3.30.5":
version: 3.30.5
- resolution: "@tiptap/extension-underline@npm:3.30.5"
+ resolution: "@tiptap/extension-text@npm:3.30.5"
peerDependencies:
"@tiptap/core": 3.30.5
- checksum: 10c0/8eee025c2fea9843a89452b2332023c13732f9acde49f8b04a0a85de244bbe1b871334ee5fdd6fcc64c8cff9261c74949d70b5ab64b5f03559344541f2443fc0
+ checksum: 10c0/48f7a8fc989a7fad1fde76d040ca2f4104e2a0f1d258800359afa80c6e1c3f348664fd6b2d98f5ee3aafe3e9496ee96d5b90882c7f27a71043636ee8d070e9d7
languageName: node
linkType: hard
-"@tiptap/extension-underline@npm:^3.13.0":
- version: 3.31.3
- resolution: "@tiptap/extension-underline@npm:3.31.3"
+"@tiptap/extension-underline@npm:3.30.5":
+ version: 3.30.5
+ resolution: "@tiptap/extension-underline@npm:3.30.5"
peerDependencies:
- "@tiptap/core": 3.31.3
- checksum: 10c0/9da38dc1e841aaa81bbd5e1f9d9166bdeb8336412eb127873850ffb4cc14315e9899c904c76462a2140c3444b27aebdba03df852c4ce15a6f5a9a7d6277939f5
+ "@tiptap/core": 3.30.5
+ checksum: 10c0/8eee025c2fea9843a89452b2332023c13732f9acde49f8b04a0a85de244bbe1b871334ee5fdd6fcc64c8cff9261c74949d70b5ab64b5f03559344541f2443fc0
languageName: node
linkType: hard
@@ -20424,19 +20229,9 @@ __metadata:
languageName: node
linkType: hard
-"@tiptap/extensions@npm:^3.13.0":
- version: 3.31.3
- resolution: "@tiptap/extensions@npm:3.31.3"
- peerDependencies:
- "@tiptap/core": 3.31.3
- "@tiptap/pm": 3.31.3
- checksum: 10c0/643e03ec936d67a74d746c0783677925101082b3ea3ad38d56cc04fe86d3a425b3c824dd6e93945fdb329f89a92bacbdcdb72f7d8e1b7800794350583af50096
- languageName: node
- linkType: hard
-
-"@tiptap/pm@npm:^3.13.0":
- version: 3.31.3
- resolution: "@tiptap/pm@npm:3.31.3"
+"@tiptap/pm@npm:3.30.5":
+ version: 3.30.5
+ resolution: "@tiptap/pm@npm:3.30.5"
dependencies:
prosemirror-changeset: "npm:^2.4.1"
prosemirror-commands: "npm:^1.7.1"
@@ -20450,8 +20245,8 @@ __metadata:
prosemirror-state: "npm:^1.4.4"
prosemirror-tables: "npm:^1.8.5"
prosemirror-transform: "npm:^1.12.0"
- prosemirror-view: "npm:^1.42.3"
- checksum: 10c0/ebb91d21867afeab1913c460e0a03f89bcdb97dc6db3c85fe43ffcf48f1c283d0c293bf51d549fe71373f18ef52182d32eae011371e66f125d79effde034d76a
+ prosemirror-view: "npm:^1.41.9"
+ checksum: 10c0/d7acbd3d70a7279e5fb4b01a4feabdcfe87f89fc40a3bc3634f2e468dd8344d78a880230dcde04f4ead6d0c2d2dca143a21f3bcd4abfa1811c6c49369116a720
languageName: node
linkType: hard
@@ -20480,31 +20275,6 @@ __metadata:
languageName: node
linkType: hard
-"@tiptap/react@npm:^3.13.0":
- version: 3.31.3
- resolution: "@tiptap/react@npm:3.31.3"
- dependencies:
- "@tiptap/extension-bubble-menu": "npm:^3.31.3"
- "@tiptap/extension-floating-menu": "npm:^3.31.3"
- "@types/use-sync-external-store": "npm:^0.0.6"
- fast-equals: "npm:^5.3.3"
- use-sync-external-store: "npm:^1.4.0"
- peerDependencies:
- "@tiptap/core": 3.31.3
- "@tiptap/pm": 3.31.3
- "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0
- "@types/react-dom": ^17.0.0 || ^18.0.0 || ^19.0.0
- react: ^17.0.0 || ^18.0.0 || ^19.0.0
- react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0
- dependenciesMeta:
- "@tiptap/extension-bubble-menu":
- optional: true
- "@tiptap/extension-floating-menu":
- optional: true
- checksum: 10c0/b5a9e8b7dfaacf534ed5231c01d3dd4bd9f8add77bd55f9b74bfe2d6c296ce7a404a74fd9619aca941b21ba891ada4a9ce73aef682c2c1dc8fe590a2f26159f6
- languageName: node
- linkType: hard
-
"@tiptap/suggestion@npm:3.30.5":
version: 3.30.5
resolution: "@tiptap/suggestion@npm:3.30.5"
@@ -22222,13 +21992,6 @@ __metadata:
languageName: node
linkType: hard
-"@types/use-sync-external-store@npm:1.5.0":
- version: 1.5.0
- resolution: "@types/use-sync-external-store@npm:1.5.0"
- checksum: 10c0/59790cc055c693b510c7c25bf326ce3faef103b0bce47da18e72d3d796618ea6339da432e4359fa6b28f920e0b0265c317bbe129d5fe50e8941f59a5138a96f3
- languageName: node
- linkType: hard
-
"@types/use-sync-external-store@npm:^0.0.6":
version: 0.0.6
resolution: "@types/use-sync-external-store@npm:0.0.6"
@@ -30343,13 +30106,6 @@ __metadata:
languageName: node
linkType: hard
-"emoji-mart@npm:^5.6.0":
- version: 5.6.0
- resolution: "emoji-mart@npm:5.6.0"
- checksum: 10c0/23e68ab10984f101b696d8f8e103e553ffa8e4d644e9a315190a9657903f71b833db09aac51b05de20f33bb9eef5bc1425eecdb2437042b25aff2dad0231f029
- languageName: node
- linkType: hard
-
"emoji-regex@npm:8.0.0, emoji-regex@npm:^8.0.0":
version: 8.0.0
resolution: "emoji-regex@npm:8.0.0"
@@ -38105,7 +37861,7 @@ __metadata:
languageName: node
linkType: hard
-"lib0@npm:^0.2.100, lib0@npm:^0.2.109":
+"lib0@npm:^0.2.100":
version: 0.2.117
resolution: "lib0@npm:0.2.117"
dependencies:
@@ -38119,15 +37875,15 @@ __metadata:
linkType: hard
"lib0@npm:^0.2.85, lib0@npm:^0.2.99":
- version: 0.2.108
- resolution: "lib0@npm:0.2.108"
+ version: 0.2.119
+ resolution: "lib0@npm:0.2.119"
dependencies:
isomorphic.js: "npm:^0.2.4"
bin:
0ecdsa-generate-keypair: bin/0ecdsa-generate-keypair.js
0gentesthtml: bin/gentesthtml.js
0serve: bin/0serve.js
- checksum: 10c0/50534bbbb0c3e914de3f00ed524753b5b731d3fc9bb5f765d0ae5949087d1cbb04fbca3c986b91fce5b8fb025c41c74e833db6d7d3d0900e6dd7c33e9b8fcf34
+ checksum: 10c0/722277c01158cc560c4cdc6093803435d5c1c1ed278a7ccfca4693968cc8a8ff361a0bbfcf7d76d6085c8b65716d381af81cf8d415bd9b5e48428df8896393bf
languageName: node
linkType: hard
@@ -44398,11 +44154,11 @@ __metadata:
linkType: hard
"prosemirror-changeset@npm:^2.4.1":
- version: 2.4.2
- resolution: "prosemirror-changeset@npm:2.4.2"
+ version: 2.4.4
+ resolution: "prosemirror-changeset@npm:2.4.4"
dependencies:
prosemirror-transform: "npm:^1.0.0"
- checksum: 10c0/41c1a75d63572283381800cef354fe66b35177d3a11c1effea9546cd89f153ab44ba387fdaa57316ecd10f1fd586757653a04f156272eb42bc73a0c54d9c81c5
+ checksum: 10c0/9228d0ba05e3ab3dfb2d919acad3e1b0caeb53e90b66d7945fcb39285cb510d69f189e021cf5844d595a76d710e65359cd409df278e1ad14eeb37eb75b38f5b5
languageName: node
linkType: hard
@@ -44418,13 +44174,13 @@ __metadata:
linkType: hard
"prosemirror-dropcursor@npm:^1.8.2":
- version: 1.8.3
- resolution: "prosemirror-dropcursor@npm:1.8.3"
+ version: 1.8.4
+ resolution: "prosemirror-dropcursor@npm:1.8.4"
dependencies:
prosemirror-state: "npm:^1.0.0"
prosemirror-transform: "npm:^1.1.0"
prosemirror-view: "npm:^1.1.0"
- checksum: 10c0/123381f83a1843ee97d98143bde070cef727dbd20228f63bf7ebf30446d4352baf6982702de9907b27b7958a33d46c8c3d1a274331862c8d7a5912c838a6abce
+ checksum: 10c0/1c3c708e2b9b04edfed7ec95691eddcd522ebc30ca3f89457a806691b5e3c75f720014302422ec865692c72a350ea869f5cb2a0ef0f8b9ec85608d054676e2c8
languageName: node
linkType: hard
@@ -44440,60 +44196,15 @@ __metadata:
languageName: node
linkType: hard
-"prosemirror-highlight@npm:^0.15.1":
- version: 0.15.2
- resolution: "prosemirror-highlight@npm:0.15.2"
- peerDependencies:
- "@lezer/common": ^1.0.0
- "@lezer/highlight": ^1.0.0
- "@shikijs/types": ^1.29.2 || ^2.0.0 || ^3.0.0 || ^4.0.0
- "@types/hast": ^3.0.0
- highlight.js: ^11.9.0
- lowlight: ^3.1.0
- prosemirror-model: ^1.19.3
- prosemirror-state: ^1.4.3
- prosemirror-transform: ^1.8.0
- prosemirror-view: ^1.32.4
- refractor: ^5.0.0
- sugar-high: ^0.6.1 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^1.0.0
- peerDependenciesMeta:
- "@lezer/common":
- optional: true
- "@lezer/highlight":
- optional: true
- "@shikijs/types":
- optional: true
- "@types/hast":
- optional: true
- highlight.js:
- optional: true
- lowlight:
- optional: true
- prosemirror-model:
- optional: true
- prosemirror-state:
- optional: true
- prosemirror-transform:
- optional: true
- prosemirror-view:
- optional: true
- refractor:
- optional: true
- sugar-high:
- optional: true
- checksum: 10c0/ce65d7b06ca6a839459425174386becb30f938280eadc4b50131df90bf10eb5dfdf1165f692a3c4cc6163b9beec184cc7fd26c79de497671998c5d8f9ff1d2f0
- languageName: node
- linkType: hard
-
-"prosemirror-history@npm:^1.4.1, prosemirror-history@npm:^1.5.0":
- version: 1.5.0
- resolution: "prosemirror-history@npm:1.5.0"
+"prosemirror-history@npm:^1.5.0":
+ version: 1.5.1
+ resolution: "prosemirror-history@npm:1.5.1"
dependencies:
prosemirror-state: "npm:^1.2.2"
prosemirror-transform: "npm:^1.0.0"
prosemirror-view: "npm:^1.31.0"
rope-sequence: "npm:^1.3.0"
- checksum: 10c0/9f24c99316c30a52ff40ddd59fc83b5180f1326ee6f466bfa82b847a503b0cdff234c35d5e3decb39ae1382a189ceec7462333ed7d6c34e2c95921892bb98b78
+ checksum: 10c0/3918d2fa9601e98fa45337dcf85601f47dbb09da02ff560388b81420c22b68f0ca462c5ba651466f33d6539aaff30781f8c3dd97143f77cc92ce376c7d85f199
languageName: node
linkType: hard
@@ -44526,12 +44237,12 @@ __metadata:
languageName: node
linkType: hard
-"prosemirror-model@npm:^1.0.0, prosemirror-model@npm:^1.21.0, prosemirror-model@npm:^1.25.11, prosemirror-model@npm:^1.25.4, prosemirror-model@npm:^1.25.8":
- version: 1.25.11
- resolution: "prosemirror-model@npm:1.25.11"
+"prosemirror-model@npm:^1.0.0, prosemirror-model@npm:^1.21.0, prosemirror-model@npm:^1.25.11, prosemirror-model@npm:^1.25.12, prosemirror-model@npm:^1.25.4":
+ version: 1.25.12
+ resolution: "prosemirror-model@npm:1.25.12"
dependencies:
orderedmap: "npm:^2.0.0"
- checksum: 10c0/e41faa477414160a602289b778189163b39a4563799defea1862183087f9ec77f02c292e3e79dd32fcc1a8878aedbdcea50f0f752ee03fe64c24ce6780b82205
+ checksum: 10c0/cec7505351ba635d9bcc4645b52f3a4499cceb8ba736ee092b1d81e74a6aa1ac9bedee21cbfe2f2647b4614579a97e86fdd1a2c5bda319a1d7028e7cbaa8ec9c
languageName: node
linkType: hard
@@ -44557,7 +44268,7 @@ __metadata:
languageName: node
linkType: hard
-"prosemirror-tables@npm:^1.8.3, prosemirror-tables@npm:^1.8.5":
+"prosemirror-tables@npm:^1.8.5":
version: 1.8.5
resolution: "prosemirror-tables@npm:1.8.5"
dependencies:
@@ -44570,23 +44281,23 @@ __metadata:
languageName: node
linkType: hard
-"prosemirror-transform@npm:^1.0.0, prosemirror-transform@npm:^1.1.0, prosemirror-transform@npm:^1.10.2, prosemirror-transform@npm:^1.10.5, prosemirror-transform@npm:^1.11.0, prosemirror-transform@npm:^1.12.0, prosemirror-transform@npm:^1.7.3":
- version: 1.12.0
- resolution: "prosemirror-transform@npm:1.12.0"
+"prosemirror-transform@npm:^1.0.0, prosemirror-transform@npm:^1.1.0, prosemirror-transform@npm:^1.10.2, prosemirror-transform@npm:^1.10.5, prosemirror-transform@npm:^1.12.0, prosemirror-transform@npm:^1.7.3":
+ version: 1.12.2
+ resolution: "prosemirror-transform@npm:1.12.2"
dependencies:
prosemirror-model: "npm:^1.21.0"
- checksum: 10c0/e9e94fbb36fa53badc73d27833bac834835246f28a6176fb33c65a85c9025da0c08ac503f860898591a14fcacef58ba18a29e8df5a916cf376084bc17f324753
+ checksum: 10c0/94c7f19e6324afdf4e3868aeb018c8a6fbabf21bcf84455e6bcdceaae3b1adf5a0715f54d841e1229311083a3fed58b1a6dde6a5668e3137162f6f29b83c5560
languageName: node
linkType: hard
-"prosemirror-view@npm:^1.0.0, prosemirror-view@npm:^1.1.0, prosemirror-view@npm:^1.27.0, prosemirror-view@npm:^1.31.0, prosemirror-view@npm:^1.41.4, prosemirror-view@npm:^1.42.3":
- version: 1.42.3
- resolution: "prosemirror-view@npm:1.42.3"
+"prosemirror-view@npm:^1.0.0, prosemirror-view@npm:^1.1.0, prosemirror-view@npm:^1.27.0, prosemirror-view@npm:^1.31.0, prosemirror-view@npm:^1.41.4, prosemirror-view@npm:^1.41.9":
+ version: 1.42.6
+ resolution: "prosemirror-view@npm:1.42.6"
dependencies:
- prosemirror-model: "npm:^1.25.8"
+ prosemirror-model: "npm:^1.25.12"
prosemirror-state: "npm:^1.0.0"
prosemirror-transform: "npm:^1.1.0"
- checksum: 10c0/42fb27a28378ff843468caa1b99ecf9a74b3b170b25b7009954bcaa11379f6aa10e885c44fa29fe8dd2d892904890ade47952e61acc1512bda4dc926eb2a1bd9
+ checksum: 10c0/2e3d2092bc0b7dd7fb34192c8f698e52205b7065a6513315520d7095154af76b6eb258d74587042e1f8a1c8d403c165ea6dbdd66c3eb9b90f327e009ced4e123
languageName: node
linkType: hard
@@ -45148,15 +44859,6 @@ __metadata:
languageName: node
linkType: hard
-"react-icons@npm:^5.5.0":
- version: 5.5.0
- resolution: "react-icons@npm:5.5.0"
- peerDependencies:
- react: "*"
- checksum: 10c0/a24309bfc993c19cbcbfc928157e53a137851822779977b9588f6dd41ffc4d11ebc98b447f4039b0d309a858f0a42980f6bfb4477fb19f9f2d1bc2e190fcf79c
- languageName: node
- linkType: hard
-
"react-imask@npm:^7.6.0":
version: 7.6.1
resolution: "react-imask@npm:7.6.1"
@@ -45232,16 +44934,6 @@ __metadata:
languageName: node
linkType: hard
-"react-number-format@npm:^5.4.4":
- version: 5.4.4
- resolution: "react-number-format@npm:5.4.4"
- peerDependencies:
- react: ^0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
- react-dom: ^0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
- checksum: 10c0/e55cd16d9f7379a717e77d519db06ed455cc2df9842cd23499b60bc2ba1179df580742e27867a4ae84e0d308b18c0773b7e8943f9162e853f97bd194d15b0de7
- languageName: node
- linkType: hard
-
"react-pdf@npm:^9.0.0":
version: 9.2.1
resolution: "react-pdf@npm:9.2.1"
@@ -45366,7 +45058,7 @@ __metadata:
languageName: node
linkType: hard
-"react-remove-scroll@npm:^2.7.1, react-remove-scroll@npm:^2.7.2":
+"react-remove-scroll@npm:^2.7.2":
version: 2.7.2
resolution: "react-remove-scroll@npm:2.7.2"
dependencies:
@@ -45458,19 +45150,6 @@ __metadata:
languageName: node
linkType: hard
-"react-textarea-autosize@npm:8.5.9":
- version: 8.5.9
- resolution: "react-textarea-autosize@npm:8.5.9"
- dependencies:
- "@babel/runtime": "npm:^7.20.13"
- use-composed-ref: "npm:^1.3.0"
- use-latest: "npm:^1.2.1"
- peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
- checksum: 10c0/3a924db59259a6e3b834dcddc12a8661b43dcdaa1b43c41c732e0548bb2761e9a53dbc6db4e0d9e237728b4869e42c25e5417408b0391aec290c90874733a09f
- languageName: node
- linkType: hard
-
"react-textarea-autosize@npm:^8.4.1":
version: 8.5.3
resolution: "react-textarea-autosize@npm:8.5.3"
@@ -50665,8 +50344,6 @@ __metadata:
"@argos-ci/storybook": "npm:6.2.3"
"@babel/core": "npm:^7.14.5"
"@babel/preset-typescript": "npm:^7.24.6"
- "@blocknote/mantine": "npm:^0.51.4"
- "@blocknote/react": "npm:^0.51.4"
"@calcom/embed-react": "npm:^1.5.3"
"@cyntler/react-doc-viewer": "npm:^1.17.0"
"@dagrejs/dagre": "npm:^1.1.8"
@@ -50691,8 +50368,6 @@ __metadata:
"@lingui/react": "npm:^5.9.5"
"@lingui/swc-plugin": "npm:^5.11.0"
"@lingui/vite-plugin": "npm:^5.9.5"
- "@mantine/core": "npm:^8.3.11"
- "@mantine/hooks": "npm:^8.3.11"
"@monaco-editor/react": "npm:^4.7.0"
"@nivo/core": "npm:^0.99.0"
"@nivo/line": "npm:^0.99.0"
@@ -50714,10 +50389,13 @@ __metadata:
"@testing-library/react": "npm:^16.3.0"
"@tiptap/core": "npm:3.30.5"
"@tiptap/extension-bold": "npm:3.30.5"
+ "@tiptap/extension-code": "npm:3.30.5"
+ "@tiptap/extension-code-block": "npm:3.30.5"
"@tiptap/extension-collaboration": "npm:3.30.5"
"@tiptap/extension-document": "npm:3.30.5"
"@tiptap/extension-drag-handle": "patch:@tiptap/extension-drag-handle@npm%3A3.30.5#~/.yarn/patches/@tiptap-extension-drag-handle-npm-3.30.5-e53a22740d.patch"
"@tiptap/extension-drag-handle-react": "npm:3.30.5"
+ "@tiptap/extension-file-handler": "npm:3.30.5"
"@tiptap/extension-hard-break": "npm:3.30.5"
"@tiptap/extension-heading": "npm:3.30.5"
"@tiptap/extension-image": "npm:3.30.5"
@@ -50727,9 +50405,13 @@ __metadata:
"@tiptap/extension-node-range": "npm:3.30.5"
"@tiptap/extension-paragraph": "npm:3.30.5"
"@tiptap/extension-strike": "npm:3.30.5"
+ "@tiptap/extension-table": "npm:3.30.5"
"@tiptap/extension-text": "npm:3.30.5"
+ "@tiptap/extension-text-align": "npm:3.30.5"
+ "@tiptap/extension-text-style": "npm:3.30.5"
"@tiptap/extension-underline": "npm:3.30.5"
"@tiptap/extensions": "npm:3.30.5"
+ "@tiptap/pm": "npm:3.30.5"
"@tiptap/react": "npm:3.30.5"
"@tiptap/suggestion": "npm:3.30.5"
"@tiptap/y-tiptap": "npm:^3.0.7"
@@ -50830,6 +50512,8 @@ __metadata:
uuid: "npm:^11.1.1"
vite-plugin-svgr: "npm:^4.3.0"
xlsx-ugnis: "npm:^0.19.3"
+ y-protocols: "npm:^1.0.6"
+ yjs: "npm:^13.6.27"
zod: "npm:^4.1.11"
languageName: unknown
linkType: soft
@@ -51444,7 +51128,7 @@ __metadata:
languageName: node
linkType: hard
-"type-fest@npm:^4.10.1, type-fest@npm:^4.18.2, type-fest@npm:^4.21.0, type-fest@npm:^4.26.1, type-fest@npm:^4.27.0, type-fest@npm:^4.39.1, type-fest@npm:^4.41.0, type-fest@npm:^4.6.0":
+"type-fest@npm:^4.10.1, type-fest@npm:^4.18.2, type-fest@npm:^4.21.0, type-fest@npm:^4.26.1, type-fest@npm:^4.27.0, type-fest@npm:^4.39.1, type-fest@npm:^4.6.0":
version: 4.41.0
resolution: "type-fest@npm:4.41.0"
checksum: 10c0/f5ca697797ed5e88d33ac8f1fec21921839871f808dc59345c9cf67345bfb958ce41bd821165dbf3ae591cedec2bf6fe8882098dfdd8dc54320b859711a2c1e4
@@ -52548,7 +52232,7 @@ __metadata:
languageName: node
linkType: hard
-"use-sync-external-store@npm:1.6.0, use-sync-external-store@npm:^1.2.2, use-sync-external-store@npm:^1.5.0, use-sync-external-store@npm:^1.6.0":
+"use-sync-external-store@npm:^1.2.2, use-sync-external-store@npm:^1.5.0, use-sync-external-store@npm:^1.6.0":
version: 1.6.0
resolution: "use-sync-external-store@npm:1.6.0"
peerDependencies:
@@ -54106,29 +53790,14 @@ __metadata:
languageName: node
linkType: hard
-"y-prosemirror@npm:^1.3.7":
- version: 1.3.7
- resolution: "y-prosemirror@npm:1.3.7"
- dependencies:
- lib0: "npm:^0.2.109"
- peerDependencies:
- prosemirror-model: ^1.7.1
- prosemirror-state: ^1.2.3
- prosemirror-view: ^1.9.10
- y-protocols: ^1.0.1
- yjs: ^13.5.38
- checksum: 10c0/4f544af2be316b28cc25f12ed5d1658b34eb9b6194479cafadd63074baf890c0fb6688dc67a7ec9d869187676ce72c1efed220f002e84418f5fbf790c5060d5f
- languageName: node
- linkType: hard
-
"y-protocols@npm:^1.0.6":
- version: 1.0.6
- resolution: "y-protocols@npm:1.0.6"
+ version: 1.0.7
+ resolution: "y-protocols@npm:1.0.7"
dependencies:
lib0: "npm:^0.2.85"
peerDependencies:
yjs: ^13.0.0
- checksum: 10c0/fae7d63d4609e75eac8114320aa3581311993cd0c1b7ac03d13dc30c9a95d7b1680e4500786bb417c1fb3d11a69e1bed3e50d08e15febde9b8abf70f133eb917
+ checksum: 10c0/70e14ab50b9200e97602c5effc3e14ae4ea0f51479a1628569af7cc12a6739fbc02484335828f5c508a4bf6fa0c3ef5ae1c17e13346b7a6093abeb9627f59021
languageName: node
linkType: hard
@@ -54375,11 +54044,11 @@ __metadata:
linkType: hard
"yjs@npm:^13.6.27":
- version: 13.6.29
- resolution: "yjs@npm:13.6.29"
+ version: 13.6.33
+ resolution: "yjs@npm:13.6.33"
dependencies:
lib0: "npm:^0.2.99"
- checksum: 10c0/f300786ea63deac8a83e85598707ab9542e0a90b72fc0a1bcc77a58e618799de531ba4f85bcf349e647ad9e72bc4186edf50c4ecf67c8144cd53d3ac80d27351
+ checksum: 10c0/85dd66a715b04fe4eda0a7676d363b2e0573830113c941568112ffe83857e9b9092b4912de135896fb56e6a7242eaca0abc5804fda7d2847dcf719fc77ba4940
languageName: node
linkType: hard