@atlaskit/adf-schema 52.9.5 → 52.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist/cjs/index.js +30 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +126 -1
- package/dist/cjs/next-schema/nodes/layoutColumn.js +29 -14
- package/dist/cjs/next-schema/nodes/tableNodes.js +63 -62
- package/dist/cjs/schema/default-schema.js +3 -2
- package/dist/cjs/schema/index.js +30 -0
- package/dist/cjs/schema/nodes/index.js +30 -0
- package/dist/cjs/schema/nodes/layout-column.js +87 -54
- package/dist/cjs/schema/nodes/tableNodes.js +69 -1
- package/dist/cjs/schema/nodes/types/valign.js +20 -0
- package/dist/cjs/validator-schema/generated/validatorSpec.js +15 -0
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +125 -0
- package/dist/es2019/next-schema/nodes/layoutColumn.js +25 -13
- package/dist/es2019/next-schema/nodes/tableNodes.js +62 -60
- package/dist/es2019/schema/default-schema.js +4 -3
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/index.js +2 -2
- package/dist/es2019/schema/nodes/layout-column.js +79 -58
- package/dist/es2019/schema/nodes/tableNodes.js +61 -1
- package/dist/es2019/schema/nodes/types/valign.js +14 -0
- package/dist/es2019/validator-schema/generated/validatorSpec.js +15 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +125 -0
- package/dist/esm/next-schema/nodes/layoutColumn.js +28 -14
- package/dist/esm/next-schema/nodes/tableNodes.js +63 -62
- package/dist/esm/schema/default-schema.js +4 -3
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/index.js +2 -2
- package/dist/esm/schema/nodes/layout-column.js +85 -54
- package/dist/esm/schema/nodes/tableNodes.js +69 -1
- package/dist/esm/schema/nodes/types/valign.js +14 -0
- package/dist/esm/validator-schema/generated/validatorSpec.js +15 -0
- package/dist/json-schema/v1/stage-0.json +9 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/next-schema/generated/nodeTypes.d.ts +77 -5
- package/dist/types/schema/index.d.ts +2 -2
- package/dist/types/schema/nodes/index.d.ts +6 -6
- package/dist/types/schema/nodes/layout-column.d.ts +7 -0
- package/dist/types/schema/nodes/tableNodes.d.ts +10 -0
- package/dist/types/schema/nodes/types/valign.d.ts +6 -0
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +15 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +77 -5
- package/dist/types-ts4.5/schema/index.d.ts +2 -2
- package/dist/types-ts4.5/schema/nodes/index.d.ts +6 -6
- package/dist/types-ts4.5/schema/nodes/layout-column.d.ts +7 -0
- package/dist/types-ts4.5/schema/nodes/tableNodes.d.ts +10 -0
- package/dist/types-ts4.5/schema/nodes/types/valign.d.ts +6 -0
- package/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +15 -0
- package/json-schema/v1/stage-0.json +9 -0
- package/package.json +3 -3
|
@@ -468,9 +468,21 @@ export interface LayoutColumnDefinition {
|
|
|
468
468
|
}
|
|
469
469
|
export type LayoutColumnNode = PMNode & LayoutColumnDefinition;
|
|
470
470
|
export declare const layoutColumn: PMNodeSpecFactoryInstance<LayoutColumnNode>;
|
|
471
|
+
export interface LayoutColumnStage0Definition {
|
|
472
|
+
type: 'layoutColumn';
|
|
473
|
+
content: Array<BlockDefinition | UnsupportedBlockDefinition>;
|
|
474
|
+
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
475
|
+
attrs: {
|
|
476
|
+
width: number;
|
|
477
|
+
localId?: string;
|
|
478
|
+
valign?: 'top' | 'middle' | 'bottom';
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
export type LayoutColumnStage0Node = PMNode & LayoutColumnStage0Definition;
|
|
482
|
+
export declare const layoutColumnStage0: PMNodeSpecFactoryInstance<LayoutColumnStage0Node>;
|
|
471
483
|
export interface LayoutSectionDefinition {
|
|
472
484
|
type: 'layoutSection';
|
|
473
|
-
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
|
485
|
+
content: Array<LayoutColumnDefinition | LayoutColumnStage0Definition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
|
474
486
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
475
487
|
attrs: {
|
|
476
488
|
localId?: string;
|
|
@@ -480,7 +492,7 @@ export type LayoutSectionNode = PMNode & LayoutSectionDefinition;
|
|
|
480
492
|
export declare const layoutSection: PMNodeSpecFactoryInstance<LayoutSectionNode>;
|
|
481
493
|
export interface LayoutSectionFullDefinition {
|
|
482
494
|
type: 'layoutSection';
|
|
483
|
-
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition>;
|
|
495
|
+
content: Array<LayoutColumnDefinition | LayoutColumnStage0Definition | UnsupportedBlockDefinition>;
|
|
484
496
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
485
497
|
attrs: {
|
|
486
498
|
localId?: string;
|
|
@@ -490,7 +502,7 @@ export type LayoutSectionFullNode = PMNode & LayoutSectionFullDefinition;
|
|
|
490
502
|
export declare const layoutSectionFull: PMNodeSpecFactoryInstance<LayoutSectionFullNode>;
|
|
491
503
|
export interface LayoutSectionWithSingleColumnStage0Definition {
|
|
492
504
|
type: 'layoutSection';
|
|
493
|
-
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
|
505
|
+
content: Array<LayoutColumnDefinition | LayoutColumnStage0Definition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
|
494
506
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
495
507
|
attrs: {
|
|
496
508
|
columnRuleStyle?: 'solid';
|
|
@@ -880,6 +892,21 @@ export interface TableCellDefinition {
|
|
|
880
892
|
}
|
|
881
893
|
export type TableCellNode = PMNode & TableCellDefinition;
|
|
882
894
|
export declare const tableCell: PMNodeSpecFactoryInstance<TableCellNode>;
|
|
895
|
+
export interface TableCellStage0Definition {
|
|
896
|
+
type: 'tableCell';
|
|
897
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
898
|
+
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
899
|
+
attrs: {
|
|
900
|
+
colspan?: number;
|
|
901
|
+
rowspan?: number;
|
|
902
|
+
colwidth?: Array<number>;
|
|
903
|
+
background?: string;
|
|
904
|
+
localId?: string;
|
|
905
|
+
valign?: 'top' | 'middle' | 'bottom';
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
export type TableCellStage0Node = PMNode & TableCellStage0Definition;
|
|
909
|
+
export declare const tableCellStage0: PMNodeSpecFactoryInstance<TableCellStage0Node>;
|
|
883
910
|
export interface TableCellWithNestedTableDefinition {
|
|
884
911
|
type: 'tableCell';
|
|
885
912
|
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
@@ -894,6 +921,21 @@ export interface TableCellWithNestedTableDefinition {
|
|
|
894
921
|
}
|
|
895
922
|
export type TableCellWithNestedTableNode = PMNode & TableCellWithNestedTableDefinition;
|
|
896
923
|
export declare const tableCellWithNestedTable: PMNodeSpecFactoryInstance<TableCellWithNestedTableNode>;
|
|
924
|
+
export interface TableCellWithNestedTableStage0Definition {
|
|
925
|
+
type: 'tableCell';
|
|
926
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
927
|
+
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
928
|
+
attrs: {
|
|
929
|
+
colspan?: number;
|
|
930
|
+
rowspan?: number;
|
|
931
|
+
colwidth?: Array<number>;
|
|
932
|
+
background?: string;
|
|
933
|
+
localId?: string;
|
|
934
|
+
valign?: 'top' | 'middle' | 'bottom';
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
export type TableCellWithNestedTableStage0Node = PMNode & TableCellWithNestedTableStage0Definition;
|
|
938
|
+
export declare const tableCellWithNestedTableStage0: PMNodeSpecFactoryInstance<TableCellWithNestedTableStage0Node>;
|
|
897
939
|
export interface TableHeaderDefinition {
|
|
898
940
|
type: 'tableHeader';
|
|
899
941
|
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
|
|
@@ -908,6 +950,21 @@ export interface TableHeaderDefinition {
|
|
|
908
950
|
}
|
|
909
951
|
export type TableHeaderNode = PMNode & TableHeaderDefinition;
|
|
910
952
|
export declare const tableHeader: PMNodeSpecFactoryInstance<TableHeaderNode>;
|
|
953
|
+
export interface TableHeaderStage0Definition {
|
|
954
|
+
type: 'tableHeader';
|
|
955
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
|
|
956
|
+
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
957
|
+
attrs: {
|
|
958
|
+
colspan?: number;
|
|
959
|
+
rowspan?: number;
|
|
960
|
+
colwidth?: Array<number>;
|
|
961
|
+
background?: string;
|
|
962
|
+
localId?: string;
|
|
963
|
+
valign?: 'top' | 'middle' | 'bottom';
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
export type TableHeaderStage0Node = PMNode & TableHeaderStage0Definition;
|
|
967
|
+
export declare const tableHeaderStage0: PMNodeSpecFactoryInstance<TableHeaderStage0Node>;
|
|
911
968
|
export interface TableHeaderWithNestedTableDefinition {
|
|
912
969
|
type: 'tableHeader';
|
|
913
970
|
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
|
|
@@ -922,9 +979,24 @@ export interface TableHeaderWithNestedTableDefinition {
|
|
|
922
979
|
}
|
|
923
980
|
export type TableHeaderWithNestedTableNode = PMNode & TableHeaderWithNestedTableDefinition;
|
|
924
981
|
export declare const tableHeaderWithNestedTable: PMNodeSpecFactoryInstance<TableHeaderWithNestedTableNode>;
|
|
982
|
+
export interface TableHeaderWithNestedTableStage0Definition {
|
|
983
|
+
type: 'tableHeader';
|
|
984
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
|
|
985
|
+
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
986
|
+
attrs: {
|
|
987
|
+
colspan?: number;
|
|
988
|
+
rowspan?: number;
|
|
989
|
+
colwidth?: Array<number>;
|
|
990
|
+
background?: string;
|
|
991
|
+
localId?: string;
|
|
992
|
+
valign?: 'top' | 'middle' | 'bottom';
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
export type TableHeaderWithNestedTableStage0Node = PMNode & TableHeaderWithNestedTableStage0Definition;
|
|
996
|
+
export declare const tableHeaderWithNestedTableStage0: PMNodeSpecFactoryInstance<TableHeaderWithNestedTableStage0Node>;
|
|
925
997
|
export interface TableRowDefinition {
|
|
926
998
|
type: 'tableRow';
|
|
927
|
-
content: Array<TableCellDefinition | TableHeaderDefinition>;
|
|
999
|
+
content: Array<TableCellDefinition | TableCellStage0Definition | TableHeaderDefinition | TableHeaderStage0Definition>;
|
|
928
1000
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
929
1001
|
attrs: {
|
|
930
1002
|
localId?: string;
|
|
@@ -934,7 +1006,7 @@ export type TableRowNode = PMNode & TableRowDefinition;
|
|
|
934
1006
|
export declare const tableRow: PMNodeSpecFactoryInstance<TableRowNode>;
|
|
935
1007
|
export interface TableRowWithNestedTableDefinition {
|
|
936
1008
|
type: 'tableRow';
|
|
937
|
-
content: Array<TableCellWithNestedTableDefinition | TableHeaderWithNestedTableDefinition>;
|
|
1009
|
+
content: Array<TableCellWithNestedTableDefinition | TableCellWithNestedTableStage0Definition | TableHeaderWithNestedTableDefinition | TableHeaderWithNestedTableStage0Definition>;
|
|
938
1010
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
939
1011
|
attrs: {
|
|
940
1012
|
localId?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './nodes';
|
|
1
|
+
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './nodes';
|
|
2
2
|
export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, BlockTaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition, } from './nodes';
|
|
3
3
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, fontSize, breakout, code, colorPalette,
|
|
4
4
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
|
@@ -9,4 +9,4 @@ export { inlineNodes } from './inline-nodes';
|
|
|
9
9
|
export { createSchema } from './create-schema';
|
|
10
10
|
export { sanitizeNodes } from './sanitizeNodes';
|
|
11
11
|
export type { NodeSpecOptions, MarkSpecOptions } from './createPMSpecFactory';
|
|
12
|
-
export { createPMNodeSpecFactory, createPMMarkSpecFactory } from './createPMSpecFactory';
|
|
12
|
+
export { createPMNodeSpecFactory, createPMMarkSpecFactory, } from './createPMSpecFactory';
|
|
@@ -5,9 +5,9 @@ export { confluenceUnsupportedBlock } from './confluence-unsupported-block';
|
|
|
5
5
|
export { confluenceUnsupportedInline } from './confluence-unsupported-inline';
|
|
6
6
|
export { doc } from './doc';
|
|
7
7
|
export type { DocNode } from './doc';
|
|
8
|
-
export { blockquote, extendedBlockquote, extendedBlockquoteWithLocalId } from './blockquote';
|
|
8
|
+
export { blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, } from './blockquote';
|
|
9
9
|
export type { BlockQuoteDefinition } from './blockquote';
|
|
10
|
-
export { bulletList, bulletListSelector, bulletListWithLocalId } from './bullet-list';
|
|
10
|
+
export { bulletList, bulletListSelector, bulletListWithLocalId, } from './bullet-list';
|
|
11
11
|
export type { BulletListDefinition } from './types/list';
|
|
12
12
|
export { codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, toJSON as codeBlockToJSON, } from './code-block';
|
|
13
13
|
export type { CodeBlockDefinition, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockWithMarksDefinition, } from './code-block';
|
|
@@ -25,7 +25,7 @@ export { emoji, emojiWithLocalId } from './emoji';
|
|
|
25
25
|
export type { EmojiAttributes, EmojiDefinition } from './emoji';
|
|
26
26
|
export { image } from './image';
|
|
27
27
|
export { mention, toJSON as mentionToJSON } from './mention';
|
|
28
|
-
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition } from './mention';
|
|
28
|
+
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition, } from './mention';
|
|
29
29
|
export { listItem, listItemWithLocalId } from './list-item';
|
|
30
30
|
export type { ListItemArray, ListItemDefinition } from './types/list';
|
|
31
31
|
export { extendedPanel, extendedPanelWithLocalId, PanelType } from './panel';
|
|
@@ -39,11 +39,11 @@ export { media, copyPrivateAttributes as copyPrivateMediaAttributes, toJSON as m
|
|
|
39
39
|
export type { MediaType, MediaBaseAttributes, MediaAttributes, ExternalMediaAttributes, DisplayType as MediaDisplayType, MediaDefinition, MediaADFAttrs, } from './media';
|
|
40
40
|
export { mediaGroup } from './media-group';
|
|
41
41
|
export { mediaInline } from './media-inline';
|
|
42
|
-
export type { MediaInlineAttributes, MediaInlineDefinition } from './media-inline';
|
|
42
|
+
export type { MediaInlineAttributes, MediaInlineDefinition, } from './media-inline';
|
|
43
43
|
export type { MediaGroupDefinition } from './media-group';
|
|
44
44
|
export { mediaSingle, mediaSingleSpec, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, toJSON as mediaSingleToJSON, } from './media-single';
|
|
45
45
|
export type { MediaSingleDefinition } from './media-single';
|
|
46
|
-
export { table, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector, } from './tableNodes';
|
|
46
|
+
export { table, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector, } from './tableNodes';
|
|
47
47
|
export type { DisplayMode as TableDisplayMode, TableAttributes, CellAttributes, Layout as TableLayout, TableDefinition, TableCell as TableCellDefinition, TableHeader as TableHeaderDefinition, TableRow as TableRowDefinition, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, CellDomAttrs, } from './tableNodes';
|
|
48
48
|
export { decisionList, decisionListSelector } from './decision-list';
|
|
49
49
|
export type { DecisionListDefinition } from './decision-list';
|
|
@@ -59,7 +59,7 @@ export { placeholder, placeholderWithLocalId } from './placeholder';
|
|
|
59
59
|
export type { PlaceholderDefinition } from './placeholder';
|
|
60
60
|
export { layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, } from './layout-section';
|
|
61
61
|
export type { LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, } from './layout-section';
|
|
62
|
-
export { layoutColumn, layoutColumnWithLocalId } from './layout-column';
|
|
62
|
+
export { layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, } from './layout-column';
|
|
63
63
|
export type { LayoutColumnDefinition } from './layout-column';
|
|
64
64
|
export { inlineCard, inlineCardWithLocalId } from './inline-card';
|
|
65
65
|
export type { InlineCardDefinition } from './inline-card';
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import type { BlockContent } from './types/block-content';
|
|
2
2
|
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { Valign } from './types/valign';
|
|
3
4
|
/**
|
|
4
5
|
* @name layoutColumn_node
|
|
5
6
|
*/
|
|
6
7
|
export interface LayoutColumnDefinition {
|
|
7
8
|
attrs: {
|
|
8
9
|
localId?: string;
|
|
10
|
+
/**
|
|
11
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
12
|
+
* @stage 0
|
|
13
|
+
*/
|
|
14
|
+
valign?: Valign;
|
|
9
15
|
/**
|
|
10
16
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
11
17
|
* @minimum 0
|
|
@@ -24,4 +30,5 @@ export interface LayoutColumnDefinition {
|
|
|
24
30
|
type: 'layoutColumn';
|
|
25
31
|
}
|
|
26
32
|
export declare const layoutColumn: NodeSpec;
|
|
33
|
+
export declare const layoutColumnStage0: NodeSpec;
|
|
27
34
|
export declare const layoutColumnWithLocalId: NodeSpec;
|
|
@@ -15,12 +15,17 @@ import type { BlockCardDefinition as BlockCard } from './block-card';
|
|
|
15
15
|
import type { EmbedCardDefinition as EmbedCard } from './embed-card';
|
|
16
16
|
import type { NestedExpandDefinition as NestedExpand } from './nested-expand';
|
|
17
17
|
import type { FragmentDefinition } from '../marks/fragment';
|
|
18
|
+
import type { Valign } from './types/valign';
|
|
18
19
|
export interface CellAttributes {
|
|
19
20
|
background?: string;
|
|
20
21
|
colspan?: number;
|
|
21
22
|
colwidth?: number[];
|
|
22
23
|
localId?: string;
|
|
23
24
|
rowspan?: number;
|
|
25
|
+
/**
|
|
26
|
+
* @stage 0
|
|
27
|
+
*/
|
|
28
|
+
valign?: Valign;
|
|
24
29
|
}
|
|
25
30
|
export declare const tablePrefixSelector = "pm-table";
|
|
26
31
|
export declare const tableCellSelector: 'pm-table-cell-content-wrap';
|
|
@@ -41,6 +46,7 @@ export type CellDomAttrs = {
|
|
|
41
46
|
'data-cell-background'?: string;
|
|
42
47
|
'data-colwidth'?: string;
|
|
43
48
|
'data-local-id'?: string;
|
|
49
|
+
'data-valign'?: Valign;
|
|
44
50
|
rowspan?: string;
|
|
45
51
|
style?: string;
|
|
46
52
|
};
|
|
@@ -156,6 +162,10 @@ export declare const tableWithNestedTable: NodeSpec;
|
|
|
156
162
|
export declare const tableRowWithNestedTable: NodeSpec;
|
|
157
163
|
export declare const tableCellWithNestedTable: NodeSpec;
|
|
158
164
|
export declare const tableHeaderWithNestedTable: NodeSpec;
|
|
165
|
+
export declare const tableCellStage0: NodeSpec;
|
|
166
|
+
export declare const tableHeaderStage0: NodeSpec;
|
|
167
|
+
export declare const tableCellWithNestedTableStage0: NodeSpec;
|
|
168
|
+
export declare const tableHeaderWithNestedTableStage0: NodeSpec;
|
|
159
169
|
export declare const tableRowWithLocalId: NodeSpec;
|
|
160
170
|
export declare const tableCellWithLocalId: NodeSpec;
|
|
161
171
|
export declare const tableHeaderWithLocalId: NodeSpec;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type Valign = 'top' | 'middle' | 'bottom';
|
|
2
|
+
/**
|
|
3
|
+
* Parses a raw DOM attribute string into a valid {@link Valign}, or `undefined` if
|
|
4
|
+
* the value is absent or not one of the allowed values.
|
|
5
|
+
*/
|
|
6
|
+
export declare const parseValign: (raw: string | null) => Valign | undefined;
|
|
@@ -1004,6 +1004,11 @@ export declare const layoutColumn: {
|
|
|
1004
1004
|
optional: boolean;
|
|
1005
1005
|
type: string;
|
|
1006
1006
|
};
|
|
1007
|
+
valign: {
|
|
1008
|
+
optional: boolean;
|
|
1009
|
+
type: string;
|
|
1010
|
+
values: string[];
|
|
1011
|
+
};
|
|
1007
1012
|
width: {
|
|
1008
1013
|
maximum: number;
|
|
1009
1014
|
minimum: number;
|
|
@@ -1852,6 +1857,11 @@ export declare const tableCell: {
|
|
|
1852
1857
|
optional: boolean;
|
|
1853
1858
|
type: string;
|
|
1854
1859
|
};
|
|
1860
|
+
valign: {
|
|
1861
|
+
optional: boolean;
|
|
1862
|
+
type: string;
|
|
1863
|
+
values: string[];
|
|
1864
|
+
};
|
|
1855
1865
|
};
|
|
1856
1866
|
};
|
|
1857
1867
|
content: {
|
|
@@ -1895,6 +1905,11 @@ export declare const tableHeader: {
|
|
|
1895
1905
|
optional: boolean;
|
|
1896
1906
|
type: string;
|
|
1897
1907
|
};
|
|
1908
|
+
valign: {
|
|
1909
|
+
optional: boolean;
|
|
1910
|
+
type: string;
|
|
1911
|
+
values: string[];
|
|
1912
|
+
};
|
|
1898
1913
|
};
|
|
1899
1914
|
};
|
|
1900
1915
|
content: {
|
|
@@ -1787,6 +1787,9 @@
|
|
|
1787
1787
|
},
|
|
1788
1788
|
"localId": {
|
|
1789
1789
|
"type": "string"
|
|
1790
|
+
},
|
|
1791
|
+
"valign": {
|
|
1792
|
+
"enum": ["top", "middle", "bottom"]
|
|
1790
1793
|
}
|
|
1791
1794
|
},
|
|
1792
1795
|
"required": ["width"],
|
|
@@ -3004,6 +3007,9 @@
|
|
|
3004
3007
|
},
|
|
3005
3008
|
"localId": {
|
|
3006
3009
|
"type": "string"
|
|
3010
|
+
},
|
|
3011
|
+
"valign": {
|
|
3012
|
+
"enum": ["top", "middle", "bottom"]
|
|
3007
3013
|
}
|
|
3008
3014
|
},
|
|
3009
3015
|
"additionalProperties": false
|
|
@@ -3041,6 +3047,9 @@
|
|
|
3041
3047
|
},
|
|
3042
3048
|
"localId": {
|
|
3043
3049
|
"type": "string"
|
|
3050
|
+
},
|
|
3051
|
+
"valign": {
|
|
3052
|
+
"enum": ["top", "middle", "bottom"]
|
|
3044
3053
|
}
|
|
3045
3054
|
},
|
|
3046
3055
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "52.
|
|
3
|
+
"version": "52.11.0",
|
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/adf-schema-generator": "^2.2.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^78.0.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"css-color-names": "0.0.4",
|
|
49
49
|
"linkify-it": "^3.0.3",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"json-schema-diff-validator": "^0.4.1",
|
|
79
79
|
"prettier": "^3.2.5",
|
|
80
80
|
"prop-types": "^15.5.10",
|
|
81
|
-
"react": "^
|
|
81
|
+
"react": "^18.2.0",
|
|
82
82
|
"react-dom": "^18.2.0",
|
|
83
83
|
"react-magnetic-di": "^3.1.4",
|
|
84
84
|
"rxjs": "^5.5.0",
|