@atlaskit/adf-schema 55.2.1 → 56.0.1
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 +20 -0
- package/dist/cjs/entry-points/schema-next-nodeTypes.js +4 -4
- package/dist/cjs/index.js +0 -12
- package/dist/cjs/next-schema/generated/nodeTypes.js +1 -97
- package/dist/cjs/next-schema/nodes/tableNodes.js +4 -26
- package/dist/cjs/schema/nodes/tableNodes.js +20 -61
- package/dist/es2019/entry-points/schema-next-nodeTypes.js +1 -1
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/next-schema/generated/nodeTypes.js +0 -96
- package/dist/es2019/next-schema/nodes/tableNodes.js +4 -27
- package/dist/es2019/schema/nodes/tableNodes.js +21 -53
- package/dist/esm/entry-points/schema-next-nodeTypes.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +0 -96
- package/dist/esm/next-schema/nodes/tableNodes.js +4 -26
- package/dist/esm/schema/nodes/tableNodes.js +21 -62
- package/dist/json-schema/v1/full.json +6 -0
- package/dist/types/entry-points/schema-next-nodeTypes.d.ts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +6 -62
- package/dist/types/schema/nodes/tableNodes.d.ts +9 -7
- package/json-schema/v1/full.json +6 -0
- package/package.json +2 -2
|
@@ -869,25 +869,11 @@ export interface TableCellDefinition {
|
|
|
869
869
|
colwidth?: Array<number>;
|
|
870
870
|
background?: string;
|
|
871
871
|
localId?: string;
|
|
872
|
+
valign?: 'top' | 'middle' | 'bottom';
|
|
872
873
|
};
|
|
873
874
|
}
|
|
874
875
|
export type TableCellNode = PMNode & TableCellDefinition;
|
|
875
876
|
export declare const tableCell: PMNodeSpecFactoryInstance<TableCellNode>;
|
|
876
|
-
export interface TableCellStage0Definition {
|
|
877
|
-
type: 'tableCell';
|
|
878
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
879
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
880
|
-
attrs: {
|
|
881
|
-
colspan?: number;
|
|
882
|
-
rowspan?: number;
|
|
883
|
-
colwidth?: Array<number>;
|
|
884
|
-
background?: string;
|
|
885
|
-
localId?: string;
|
|
886
|
-
valign?: 'top' | 'middle' | 'bottom';
|
|
887
|
-
};
|
|
888
|
-
}
|
|
889
|
-
export type TableCellStage0Node = PMNode & TableCellStage0Definition;
|
|
890
|
-
export declare const tableCellStage0: PMNodeSpecFactoryInstance<TableCellStage0Node>;
|
|
891
877
|
export interface TableCellWithNestedTableDefinition {
|
|
892
878
|
type: 'tableCell';
|
|
893
879
|
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
@@ -898,25 +884,11 @@ export interface TableCellWithNestedTableDefinition {
|
|
|
898
884
|
colwidth?: Array<number>;
|
|
899
885
|
background?: string;
|
|
900
886
|
localId?: string;
|
|
887
|
+
valign?: 'top' | 'middle' | 'bottom';
|
|
901
888
|
};
|
|
902
889
|
}
|
|
903
890
|
export type TableCellWithNestedTableNode = PMNode & TableCellWithNestedTableDefinition;
|
|
904
891
|
export declare const tableCellWithNestedTable: PMNodeSpecFactoryInstance<TableCellWithNestedTableNode>;
|
|
905
|
-
export interface TableCellWithNestedTableStage0Definition {
|
|
906
|
-
type: 'tableCell';
|
|
907
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
908
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
909
|
-
attrs: {
|
|
910
|
-
colspan?: number;
|
|
911
|
-
rowspan?: number;
|
|
912
|
-
colwidth?: Array<number>;
|
|
913
|
-
background?: string;
|
|
914
|
-
localId?: string;
|
|
915
|
-
valign?: 'top' | 'middle' | 'bottom';
|
|
916
|
-
};
|
|
917
|
-
}
|
|
918
|
-
export type TableCellWithNestedTableStage0Node = PMNode & TableCellWithNestedTableStage0Definition;
|
|
919
|
-
export declare const tableCellWithNestedTableStage0: PMNodeSpecFactoryInstance<TableCellWithNestedTableStage0Node>;
|
|
920
892
|
export interface TableHeaderDefinition {
|
|
921
893
|
type: 'tableHeader';
|
|
922
894
|
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
|
|
@@ -927,25 +899,11 @@ export interface TableHeaderDefinition {
|
|
|
927
899
|
colwidth?: Array<number>;
|
|
928
900
|
background?: string;
|
|
929
901
|
localId?: string;
|
|
902
|
+
valign?: 'top' | 'middle' | 'bottom';
|
|
930
903
|
};
|
|
931
904
|
}
|
|
932
905
|
export type TableHeaderNode = PMNode & TableHeaderDefinition;
|
|
933
906
|
export declare const tableHeader: PMNodeSpecFactoryInstance<TableHeaderNode>;
|
|
934
|
-
export interface TableHeaderStage0Definition {
|
|
935
|
-
type: 'tableHeader';
|
|
936
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
|
|
937
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
938
|
-
attrs: {
|
|
939
|
-
colspan?: number;
|
|
940
|
-
rowspan?: number;
|
|
941
|
-
colwidth?: Array<number>;
|
|
942
|
-
background?: string;
|
|
943
|
-
localId?: string;
|
|
944
|
-
valign?: 'top' | 'middle' | 'bottom';
|
|
945
|
-
};
|
|
946
|
-
}
|
|
947
|
-
export type TableHeaderStage0Node = PMNode & TableHeaderStage0Definition;
|
|
948
|
-
export declare const tableHeaderStage0: PMNodeSpecFactoryInstance<TableHeaderStage0Node>;
|
|
949
907
|
export interface TableHeaderWithNestedTableDefinition {
|
|
950
908
|
type: 'tableHeader';
|
|
951
909
|
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
|
|
@@ -956,28 +914,14 @@ export interface TableHeaderWithNestedTableDefinition {
|
|
|
956
914
|
colwidth?: Array<number>;
|
|
957
915
|
background?: string;
|
|
958
916
|
localId?: string;
|
|
917
|
+
valign?: 'top' | 'middle' | 'bottom';
|
|
959
918
|
};
|
|
960
919
|
}
|
|
961
920
|
export type TableHeaderWithNestedTableNode = PMNode & TableHeaderWithNestedTableDefinition;
|
|
962
921
|
export declare const tableHeaderWithNestedTable: PMNodeSpecFactoryInstance<TableHeaderWithNestedTableNode>;
|
|
963
|
-
export interface TableHeaderWithNestedTableStage0Definition {
|
|
964
|
-
type: 'tableHeader';
|
|
965
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
|
|
966
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
967
|
-
attrs: {
|
|
968
|
-
colspan?: number;
|
|
969
|
-
rowspan?: number;
|
|
970
|
-
colwidth?: Array<number>;
|
|
971
|
-
background?: string;
|
|
972
|
-
localId?: string;
|
|
973
|
-
valign?: 'top' | 'middle' | 'bottom';
|
|
974
|
-
};
|
|
975
|
-
}
|
|
976
|
-
export type TableHeaderWithNestedTableStage0Node = PMNode & TableHeaderWithNestedTableStage0Definition;
|
|
977
|
-
export declare const tableHeaderWithNestedTableStage0: PMNodeSpecFactoryInstance<TableHeaderWithNestedTableStage0Node>;
|
|
978
922
|
export interface TableRowDefinition {
|
|
979
923
|
type: 'tableRow';
|
|
980
|
-
content: Array<TableCellDefinition |
|
|
924
|
+
content: Array<TableCellDefinition | TableHeaderDefinition>;
|
|
981
925
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
982
926
|
attrs: {
|
|
983
927
|
localId?: string;
|
|
@@ -987,7 +931,7 @@ export type TableRowNode = PMNode & TableRowDefinition;
|
|
|
987
931
|
export declare const tableRow: PMNodeSpecFactoryInstance<TableRowNode>;
|
|
988
932
|
export interface TableRowWithNestedTableDefinition {
|
|
989
933
|
type: 'tableRow';
|
|
990
|
-
content: Array<TableCellWithNestedTableDefinition |
|
|
934
|
+
content: Array<TableCellWithNestedTableDefinition | TableHeaderWithNestedTableDefinition>;
|
|
991
935
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
992
936
|
attrs: {
|
|
993
937
|
localId?: string;
|
|
@@ -22,9 +22,6 @@ export interface CellAttributes {
|
|
|
22
22
|
colwidth?: number[];
|
|
23
23
|
localId?: string;
|
|
24
24
|
rowspan?: number;
|
|
25
|
-
/**
|
|
26
|
-
* @stage 0
|
|
27
|
-
*/
|
|
28
25
|
valign?: Valign;
|
|
29
26
|
}
|
|
30
27
|
export declare const tablePrefixSelector = "pm-table";
|
|
@@ -38,6 +35,7 @@ export declare const getCellAttrs: (dom: HTMLElement, defaultValues?: CellAttrib
|
|
|
38
35
|
colwidth: number[] | null;
|
|
39
36
|
localId?: string;
|
|
40
37
|
rowspan: number;
|
|
38
|
+
valign?: Valign;
|
|
41
39
|
};
|
|
42
40
|
export type CellDomAttrs = {
|
|
43
41
|
class?: string;
|
|
@@ -162,13 +160,17 @@ export declare const tableWithNestedTable: NodeSpec;
|
|
|
162
160
|
export declare const tableRowWithNestedTable: NodeSpec;
|
|
163
161
|
export declare const tableCellWithNestedTable: NodeSpec;
|
|
164
162
|
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;
|
|
169
163
|
export declare const tableRowWithLocalId: NodeSpec;
|
|
170
164
|
export declare const tableCellWithLocalId: NodeSpec;
|
|
171
165
|
export declare const tableHeaderWithLocalId: NodeSpec;
|
|
172
166
|
export declare const tableRowWithNestedTableWithLocalId: NodeSpec;
|
|
173
167
|
export declare const tableCellWithNestedTableWithLocalId: NodeSpec;
|
|
174
168
|
export declare const tableHeaderWithNestedTableWithLocalId: NodeSpec;
|
|
169
|
+
/** @deprecated [EDITOR-7723] use `tableCellWithLocalId` */
|
|
170
|
+
export declare const tableCellStage0: NodeSpec;
|
|
171
|
+
/** @deprecated [EDITOR-7723] use `tableHeaderWithLocalId` */
|
|
172
|
+
export declare const tableHeaderStage0: NodeSpec;
|
|
173
|
+
/** @deprecated [EDITOR-7723] use `tableCellWithNestedTableWithLocalId` */
|
|
174
|
+
export declare const tableCellWithNestedTableStage0: NodeSpec;
|
|
175
|
+
/** @deprecated [EDITOR-7723] use `tableHeaderWithNestedTableWithLocalId` */
|
|
176
|
+
export declare const tableHeaderWithNestedTableStage0: NodeSpec;
|
package/json-schema/v1/full.json
CHANGED
|
@@ -2711,6 +2711,9 @@
|
|
|
2711
2711
|
},
|
|
2712
2712
|
"localId": {
|
|
2713
2713
|
"type": "string"
|
|
2714
|
+
},
|
|
2715
|
+
"valign": {
|
|
2716
|
+
"enum": ["top", "middle", "bottom"]
|
|
2714
2717
|
}
|
|
2715
2718
|
},
|
|
2716
2719
|
"additionalProperties": false
|
|
@@ -2748,6 +2751,9 @@
|
|
|
2748
2751
|
},
|
|
2749
2752
|
"localId": {
|
|
2750
2753
|
"type": "string"
|
|
2754
|
+
},
|
|
2755
|
+
"valign": {
|
|
2756
|
+
"enum": ["top", "middle", "bottom"]
|
|
2751
2757
|
}
|
|
2752
2758
|
},
|
|
2753
2759
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "56.0.1",
|
|
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/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/adf-schema-generator": "^3.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^108.
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^108.4.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"css-color-names": "0.0.4",
|
|
45
45
|
"linkify-it": "^3.0.3",
|