2f36c2e82e
closes https://github.com/twentyhq/core-team-issues/issues/1893 sync in the transformation layer - with just the blocknote format - <img width="1532" height="1058" alt="CleanShot 2025-12-04 at 16 43 27" src="https://github.com/user-attachments/assets/081483fb-0bd0-4f14-81fc-8ea2261367a2" /> with just the mardown format - <img width="1534" height="1056" alt="CleanShot 2025-12-04 at 16 45 03" src="https://github.com/user-attachments/assets/4eae513b-423d-4597-b79c-97d1f33ab994" /> attaching response since in screen shot its getting cut - ``` { "id": "7189a10a-177c-4cc2-8946-950b8c125913", "pageLayoutTabId": "82ac56dd-4351-43ad-bf3d-49624c057e17", "workspaceId": "20202020-1c25-4d02-bf25-6aeccf7ea419", "title": "awdawd awdawdawd", "type": "STANDALONE_RICH_TEXT", "objectMetadataId": null, "gridPosition": { "row": 1, "column": 1, "rowSpan": 1, "columnSpan": 1 }, "configuration": { "body": { "markdown": "# Hello World", "blocknote": "[{\"id\":\"2e744f21-7c71-414d-b87f-fb48400c593c\",\"type\":\"heading\",\"props\":{\"textColor\":\"default\",\"backgroundColor\":\"default\",\"textAlignment\":\"left\",\"level\":1},\"content\":[{\"type\":\"text\",\"text\":\"Hello World\",\"styles\":{}}],\"children\":[]}]" } }, "createdAt": "2025-12-04T11:14:52.212Z", "updatedAt": "2025-12-04T11:14:52.212Z", "deletedAt": null } ```
126 lines
2.8 KiB
TypeScript
126 lines
2.8 KiB
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export const PAGE_LAYOUT_WIDGET_FRAGMENT = gql`
|
|
fragment PageLayoutWidgetFragment on PageLayoutWidget {
|
|
id
|
|
title
|
|
type
|
|
objectMetadataId
|
|
createdAt
|
|
updatedAt
|
|
deletedAt
|
|
gridPosition {
|
|
column
|
|
columnSpan
|
|
row
|
|
rowSpan
|
|
}
|
|
configuration {
|
|
... on BarChartConfiguration {
|
|
graphType
|
|
aggregateFieldMetadataId
|
|
aggregateOperation
|
|
primaryAxisGroupByFieldMetadataId
|
|
primaryAxisGroupBySubFieldName
|
|
primaryAxisDateGranularity
|
|
primaryAxisOrderBy
|
|
secondaryAxisGroupByFieldMetadataId
|
|
secondaryAxisGroupBySubFieldName
|
|
secondaryAxisGroupByDateGranularity
|
|
secondaryAxisOrderBy
|
|
omitNullValues
|
|
axisNameDisplay
|
|
displayDataLabel
|
|
displayLegend
|
|
rangeMin
|
|
rangeMax
|
|
color
|
|
description
|
|
filter
|
|
groupMode
|
|
isCumulative
|
|
timezone
|
|
firstDayOfTheWeek
|
|
}
|
|
... on LineChartConfiguration {
|
|
graphType
|
|
aggregateFieldMetadataId
|
|
aggregateOperation
|
|
primaryAxisGroupByFieldMetadataId
|
|
primaryAxisGroupBySubFieldName
|
|
primaryAxisDateGranularity
|
|
primaryAxisOrderBy
|
|
secondaryAxisGroupByFieldMetadataId
|
|
secondaryAxisGroupBySubFieldName
|
|
secondaryAxisGroupByDateGranularity
|
|
secondaryAxisOrderBy
|
|
omitNullValues
|
|
axisNameDisplay
|
|
displayDataLabel
|
|
displayLegend
|
|
rangeMin
|
|
rangeMax
|
|
color
|
|
description
|
|
filter
|
|
isStacked
|
|
isCumulative
|
|
timezone
|
|
firstDayOfTheWeek
|
|
}
|
|
... on PieChartConfiguration {
|
|
graphType
|
|
groupByFieldMetadataId
|
|
aggregateFieldMetadataId
|
|
aggregateOperation
|
|
groupBySubFieldName
|
|
dateGranularity
|
|
orderBy
|
|
displayDataLabel
|
|
showCenterMetric
|
|
displayLegend
|
|
color
|
|
description
|
|
filter
|
|
timezone
|
|
firstDayOfTheWeek
|
|
}
|
|
... on AggregateChartConfiguration {
|
|
graphType
|
|
aggregateFieldMetadataId
|
|
aggregateOperation
|
|
label
|
|
displayDataLabel
|
|
format
|
|
description
|
|
filter
|
|
prefix
|
|
suffix
|
|
timezone
|
|
firstDayOfTheWeek
|
|
}
|
|
... on GaugeChartConfiguration {
|
|
graphType
|
|
aggregateFieldMetadataId
|
|
aggregateOperation
|
|
displayDataLabel
|
|
color
|
|
description
|
|
filter
|
|
timezone
|
|
firstDayOfTheWeek
|
|
}
|
|
... on IframeConfiguration {
|
|
url
|
|
}
|
|
... on StandaloneRichTextConfiguration {
|
|
body {
|
|
blocknote
|
|
markdown
|
|
}
|
|
}
|
|
}
|
|
pageLayoutTabId
|
|
}
|
|
`;
|