@atlaskit/adf-schema 36.12.2 → 36.13.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 +12 -0
- package/dist/cjs/next-schema/full-schema.adf.js +2 -1
- package/dist/cjs/next-schema/groups/blockGroup.js +3 -1
- package/dist/cjs/next-schema/groups/inlineGroup.js +3 -1
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
- package/dist/cjs/next-schema/marks/unsupportedMark.js +16 -0
- package/dist/cjs/next-schema/marks/unsupportedNodeAttribute.js +20 -0
- package/dist/cjs/next-schema/nodes/blockCard.js +5 -0
- package/dist/cjs/next-schema/nodes/blockquote.js +6 -2
- package/dist/cjs/next-schema/nodes/bodiedExtension.js +4 -1
- package/dist/cjs/next-schema/nodes/caption.js +5 -2
- package/dist/cjs/next-schema/nodes/codeBlock.js +6 -2
- package/dist/cjs/next-schema/nodes/confluenceUnsupportedBlock.js +16 -0
- package/dist/cjs/next-schema/nodes/confluenceUnsupportedInline.js +18 -0
- package/dist/cjs/next-schema/nodes/date.js +3 -0
- package/dist/cjs/next-schema/nodes/decisionItem.js +5 -1
- package/dist/cjs/next-schema/nodes/decisionList.js +5 -1
- package/dist/cjs/next-schema/nodes/embedCard.js +3 -0
- package/dist/cjs/next-schema/nodes/emoji.js +3 -0
- package/dist/cjs/next-schema/nodes/expand.js +4 -1
- package/dist/cjs/next-schema/nodes/extension.js +4 -1
- package/dist/cjs/next-schema/nodes/extensionFrame.js +3 -1
- package/dist/cjs/next-schema/nodes/hardBreak.js +3 -0
- package/dist/cjs/next-schema/nodes/heading.js +9 -6
- package/dist/cjs/next-schema/nodes/inlineCard.js +4 -1
- package/dist/cjs/next-schema/nodes/inlineExtension.js +3 -0
- package/dist/cjs/next-schema/nodes/layoutColumn.js +3 -0
- package/dist/cjs/next-schema/nodes/layoutSection.js +5 -2
- package/dist/cjs/next-schema/nodes/list.js +7 -1
- package/dist/cjs/next-schema/nodes/media.js +3 -1
- package/dist/cjs/next-schema/nodes/mediaGroup.js +5 -1
- package/dist/cjs/next-schema/nodes/mediaInline.js +3 -1
- package/dist/cjs/next-schema/nodes/mediaSingle.js +5 -2
- package/dist/cjs/next-schema/nodes/mention.js +3 -0
- package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +3 -0
- package/dist/cjs/next-schema/nodes/nestedExpand.js +5 -1
- package/dist/cjs/next-schema/nodes/panel.js +5 -1
- package/dist/cjs/next-schema/nodes/paragraph.js +8 -4
- package/dist/cjs/next-schema/nodes/placeholder.js +3 -0
- package/dist/cjs/next-schema/nodes/status.js +3 -0
- package/dist/cjs/next-schema/nodes/table.js +3 -1
- package/dist/cjs/next-schema/nodes/tableCell.js +5 -1
- package/dist/cjs/next-schema/nodes/tableHeader.js +3 -0
- package/dist/cjs/next-schema/nodes/tableRow.js +3 -0
- package/dist/cjs/next-schema/nodes/task.js +8 -2
- package/dist/cjs/next-schema/nodes/text.js +4 -2
- package/dist/cjs/next-schema/nodes/unsupportedBlock.js +18 -0
- package/dist/cjs/next-schema/nodes/unsupportedInline.js +18 -0
- package/dist/es2019/next-schema/full-schema.adf.js +2 -1
- package/dist/es2019/next-schema/groups/blockGroup.js +3 -1
- package/dist/es2019/next-schema/groups/inlineGroup.js +3 -1
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
- package/dist/es2019/next-schema/marks/unsupportedMark.js +10 -0
- package/dist/es2019/next-schema/marks/unsupportedNodeAttribute.js +14 -0
- package/dist/es2019/next-schema/nodes/blockCard.js +5 -0
- package/dist/es2019/next-schema/nodes/blockquote.js +6 -2
- package/dist/es2019/next-schema/nodes/bodiedExtension.js +4 -1
- package/dist/es2019/next-schema/nodes/caption.js +5 -3
- package/dist/es2019/next-schema/nodes/codeBlock.js +6 -2
- package/dist/es2019/next-schema/nodes/confluenceUnsupportedBlock.js +10 -0
- package/dist/es2019/next-schema/nodes/confluenceUnsupportedInline.js +12 -0
- package/dist/es2019/next-schema/nodes/date.js +3 -0
- package/dist/es2019/next-schema/nodes/decisionItem.js +5 -1
- package/dist/es2019/next-schema/nodes/decisionList.js +5 -1
- package/dist/es2019/next-schema/nodes/embedCard.js +3 -0
- package/dist/es2019/next-schema/nodes/emoji.js +3 -0
- package/dist/es2019/next-schema/nodes/expand.js +4 -1
- package/dist/es2019/next-schema/nodes/extension.js +4 -1
- package/dist/es2019/next-schema/nodes/extensionFrame.js +3 -1
- package/dist/es2019/next-schema/nodes/hardBreak.js +3 -0
- package/dist/es2019/next-schema/nodes/heading.js +8 -5
- package/dist/es2019/next-schema/nodes/inlineCard.js +4 -1
- package/dist/es2019/next-schema/nodes/inlineExtension.js +3 -0
- package/dist/es2019/next-schema/nodes/layoutColumn.js +3 -0
- package/dist/es2019/next-schema/nodes/layoutSection.js +5 -2
- package/dist/es2019/next-schema/nodes/list.js +7 -1
- package/dist/es2019/next-schema/nodes/media.js +3 -1
- package/dist/es2019/next-schema/nodes/mediaGroup.js +5 -1
- package/dist/es2019/next-schema/nodes/mediaInline.js +3 -1
- package/dist/es2019/next-schema/nodes/mediaSingle.js +5 -2
- package/dist/es2019/next-schema/nodes/mention.js +3 -0
- package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +3 -0
- package/dist/es2019/next-schema/nodes/nestedExpand.js +5 -1
- package/dist/es2019/next-schema/nodes/panel.js +5 -1
- package/dist/es2019/next-schema/nodes/paragraph.js +8 -4
- package/dist/es2019/next-schema/nodes/placeholder.js +3 -0
- package/dist/es2019/next-schema/nodes/status.js +3 -0
- package/dist/es2019/next-schema/nodes/table.js +3 -1
- package/dist/es2019/next-schema/nodes/tableCell.js +5 -1
- package/dist/es2019/next-schema/nodes/tableHeader.js +3 -0
- package/dist/es2019/next-schema/nodes/tableRow.js +4 -1
- package/dist/es2019/next-schema/nodes/task.js +8 -2
- package/dist/es2019/next-schema/nodes/text.js +4 -2
- package/dist/es2019/next-schema/nodes/unsupportedBlock.js +12 -0
- package/dist/es2019/next-schema/nodes/unsupportedInline.js +12 -0
- package/dist/esm/next-schema/full-schema.adf.js +2 -1
- package/dist/esm/next-schema/groups/blockGroup.js +3 -1
- package/dist/esm/next-schema/groups/inlineGroup.js +3 -1
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
- package/dist/esm/next-schema/marks/unsupportedMark.js +10 -0
- package/dist/esm/next-schema/marks/unsupportedNodeAttribute.js +14 -0
- package/dist/esm/next-schema/nodes/blockCard.js +5 -0
- package/dist/esm/next-schema/nodes/blockquote.js +6 -2
- package/dist/esm/next-schema/nodes/bodiedExtension.js +4 -1
- package/dist/esm/next-schema/nodes/caption.js +5 -3
- package/dist/esm/next-schema/nodes/codeBlock.js +6 -2
- package/dist/esm/next-schema/nodes/confluenceUnsupportedBlock.js +10 -0
- package/dist/esm/next-schema/nodes/confluenceUnsupportedInline.js +12 -0
- package/dist/esm/next-schema/nodes/date.js +3 -0
- package/dist/esm/next-schema/nodes/decisionItem.js +5 -1
- package/dist/esm/next-schema/nodes/decisionList.js +5 -1
- package/dist/esm/next-schema/nodes/embedCard.js +3 -0
- package/dist/esm/next-schema/nodes/emoji.js +3 -0
- package/dist/esm/next-schema/nodes/expand.js +4 -1
- package/dist/esm/next-schema/nodes/extension.js +4 -1
- package/dist/esm/next-schema/nodes/extensionFrame.js +3 -1
- package/dist/esm/next-schema/nodes/hardBreak.js +3 -0
- package/dist/esm/next-schema/nodes/heading.js +8 -5
- package/dist/esm/next-schema/nodes/inlineCard.js +4 -1
- package/dist/esm/next-schema/nodes/inlineExtension.js +3 -0
- package/dist/esm/next-schema/nodes/layoutColumn.js +3 -0
- package/dist/esm/next-schema/nodes/layoutSection.js +5 -2
- package/dist/esm/next-schema/nodes/list.js +7 -1
- package/dist/esm/next-schema/nodes/media.js +3 -1
- package/dist/esm/next-schema/nodes/mediaGroup.js +5 -1
- package/dist/esm/next-schema/nodes/mediaInline.js +3 -1
- package/dist/esm/next-schema/nodes/mediaSingle.js +5 -2
- package/dist/esm/next-schema/nodes/mention.js +3 -0
- package/dist/esm/next-schema/nodes/multiBodiedExtension.js +3 -0
- package/dist/esm/next-schema/nodes/nestedExpand.js +5 -1
- package/dist/esm/next-schema/nodes/panel.js +5 -1
- package/dist/esm/next-schema/nodes/paragraph.js +8 -4
- package/dist/esm/next-schema/nodes/placeholder.js +3 -0
- package/dist/esm/next-schema/nodes/status.js +3 -0
- package/dist/esm/next-schema/nodes/table.js +3 -1
- package/dist/esm/next-schema/nodes/tableCell.js +5 -1
- package/dist/esm/next-schema/nodes/tableHeader.js +3 -0
- package/dist/esm/next-schema/nodes/tableRow.js +4 -1
- package/dist/esm/next-schema/nodes/task.js +8 -2
- package/dist/esm/next-schema/nodes/text.js +4 -2
- package/dist/esm/next-schema/nodes/unsupportedBlock.js +12 -0
- package/dist/esm/next-schema/nodes/unsupportedInline.js +12 -0
- package/dist/types/next-schema/marks/unsupportedMark.d.ts +1 -0
- package/dist/types/next-schema/marks/unsupportedNodeAttribute.d.ts +1 -0
- package/dist/types/next-schema/nodes/confluenceUnsupportedBlock.d.ts +19 -0
- package/dist/types/next-schema/nodes/confluenceUnsupportedInline.d.ts +19 -0
- package/dist/types/next-schema/nodes/heading.d.ts +0 -23
- package/dist/types/next-schema/nodes/unsupportedBlock.d.ts +19 -0
- package/dist/types/next-schema/nodes/unsupportedInline.d.ts +19 -0
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/jqueries.md +13 -0
- package/schema-generators/__tests__/unit/json-full-schema.unit.ts +103 -0
@@ -1,4 +1,6 @@
|
|
1
1
|
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { unsupportedMark } from '../marks/unsupportedMark';
|
3
|
+
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
2
4
|
import { blockCard } from './blockCard';
|
3
5
|
import { blockquote } from './blockquote';
|
4
6
|
import { codeBlock } from './codeBlock';
|
@@ -18,6 +20,7 @@ export var tableHeader = adfNode('tableHeader').define({
|
|
18
20
|
isolating: true,
|
19
21
|
selectable: false,
|
20
22
|
tableRole: 'header_cell',
|
23
|
+
marks: [unsupportedNodeAttribute, unsupportedMark],
|
21
24
|
attrs: {
|
22
25
|
colspan: {
|
23
26
|
type: 'number',
|
@@ -1,7 +1,10 @@
|
|
1
|
-
import { $
|
1
|
+
import { $or, $onePlus, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { unsupportedMark } from '../marks/unsupportedMark';
|
3
|
+
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
2
4
|
import { tableCell } from './tableCell';
|
3
5
|
import { tableHeader } from './tableHeader';
|
4
6
|
export var tableRow = adfNode('tableRow').define({
|
5
7
|
selectable: false,
|
8
|
+
marks: [unsupportedNodeAttribute, unsupportedMark],
|
6
9
|
content: [$onePlus($or(tableCell, tableHeader))]
|
7
10
|
});
|
@@ -1,10 +1,15 @@
|
|
1
1
|
import { $onePlus, $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
|
2
2
|
import { inlineGroup } from '../groups/inlineGroup';
|
3
|
+
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
|
+
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
5
|
+
import { unsupportedInline } from './unsupportedInline';
|
6
|
+
import { unsupportedBlock } from './unsupportedBlock';
|
3
7
|
export var taskItem = adfNode('taskItem');
|
4
8
|
export var taskList = adfNode('taskList');
|
5
9
|
taskItem.define({
|
6
10
|
defining: true,
|
7
11
|
selectable: false,
|
12
|
+
marks: [unsupportedNodeAttribute, unsupportedMark],
|
8
13
|
attrs: {
|
9
14
|
localId: {
|
10
15
|
type: 'string',
|
@@ -16,16 +21,17 @@ taskItem.define({
|
|
16
21
|
default: 'TODO'
|
17
22
|
}
|
18
23
|
},
|
19
|
-
content: [$zeroPlus($or(inlineGroup))]
|
24
|
+
content: [$zeroPlus($or(inlineGroup, unsupportedInline))]
|
20
25
|
});
|
21
26
|
taskList.define({
|
22
27
|
defining: true,
|
23
28
|
selectable: false,
|
29
|
+
marks: [unsupportedNodeAttribute, unsupportedMark],
|
24
30
|
attrs: {
|
25
31
|
localId: {
|
26
32
|
type: 'string',
|
27
33
|
default: ''
|
28
34
|
}
|
29
35
|
},
|
30
|
-
content: [$onePlus($or(taskItem)), $zeroPlus($or(taskItem, taskList))]
|
36
|
+
content: [$onePlus($or(taskItem, unsupportedBlock)), $zeroPlus($or(taskItem, taskList, unsupportedBlock))]
|
31
37
|
});
|
@@ -8,8 +8,10 @@ import { strong } from '../marks/strong';
|
|
8
8
|
import { subsup } from '../marks/subsup';
|
9
9
|
import { underline } from '../marks/underline';
|
10
10
|
import { backgroundColor, textColor } from '../marks/color';
|
11
|
+
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
12
|
+
import { unsupportedMark } from '../marks/unsupportedMark';
|
11
13
|
export var text = adfNode('text').define({}).variant('formatted', {
|
12
|
-
marks: [link, em, strong, strike, subsup, underline, textColor, annotation, backgroundColor]
|
14
|
+
marks: [link, em, strong, strike, subsup, underline, textColor, annotation, backgroundColor, unsupportedNodeAttribute, unsupportedMark]
|
13
15
|
}).variant('code_inline', {
|
14
|
-
marks: [code, link, annotation]
|
16
|
+
marks: [code, link, annotation, unsupportedNodeAttribute, unsupportedMark]
|
15
17
|
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { adfNode, JSONSchemaTransformerName, ValidatorSpecTransformerName } from '@atlaskit/adf-schema-generator';
|
2
|
+
export var unsupportedBlock = adfNode('unsupportedBlock').define({
|
3
|
+
ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
|
4
|
+
atom: true,
|
5
|
+
selectable: true,
|
6
|
+
attrs: {
|
7
|
+
originalValue: {
|
8
|
+
type: 'object',
|
9
|
+
default: {}
|
10
|
+
}
|
11
|
+
}
|
12
|
+
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { adfNode, JSONSchemaTransformerName, ValidatorSpecTransformerName } from '@atlaskit/adf-schema-generator';
|
2
|
+
export var unsupportedInline = adfNode('unsupportedInline').define({
|
3
|
+
ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
|
4
|
+
inline: true,
|
5
|
+
selectable: true,
|
6
|
+
attrs: {
|
7
|
+
originalValue: {
|
8
|
+
type: 'object',
|
9
|
+
default: {}
|
10
|
+
}
|
11
|
+
}
|
12
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const unsupportedMark: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const unsupportedNodeAttribute: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export declare const confluenceUnsupportedBlock: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
|
+
ignore?: import("@atlaskit/adf-schema-generator/dist/types/transforms/transformerNames").TransformerNames[];
|
3
|
+
root?: boolean;
|
4
|
+
atom?: boolean;
|
5
|
+
version?: 1;
|
6
|
+
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
7
|
+
inline?: true;
|
8
|
+
code?: boolean;
|
9
|
+
content?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentSpec[];
|
10
|
+
defining?: boolean;
|
11
|
+
definingAsContext?: boolean;
|
12
|
+
definingForContent?: boolean;
|
13
|
+
draggable?: boolean;
|
14
|
+
group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
|
15
|
+
isolating?: boolean;
|
16
|
+
marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
|
17
|
+
selectable?: boolean;
|
18
|
+
whitespace?: "pre" | "normal";
|
19
|
+
}>;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export declare const confluenceUnsupportedInline: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
|
+
ignore?: import("@atlaskit/adf-schema-generator/dist/types/transforms/transformerNames").TransformerNames[];
|
3
|
+
root?: boolean;
|
4
|
+
atom?: boolean;
|
5
|
+
version?: 1;
|
6
|
+
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
7
|
+
inline?: true;
|
8
|
+
code?: boolean;
|
9
|
+
content?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentSpec[];
|
10
|
+
defining?: boolean;
|
11
|
+
definingAsContext?: boolean;
|
12
|
+
definingForContent?: boolean;
|
13
|
+
draggable?: boolean;
|
14
|
+
group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
|
15
|
+
isolating?: boolean;
|
16
|
+
marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
|
17
|
+
selectable?: boolean;
|
18
|
+
whitespace?: "pre" | "normal";
|
19
|
+
}>;
|
@@ -21,26 +21,3 @@ export declare const heading: import("@atlaskit/adf-schema-generator/dist/types/
|
|
21
21
|
} & {
|
22
22
|
marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
|
23
23
|
}>;
|
24
|
-
export declare const headingWithMarks: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_alignment", "with_indentation", "with_no_marks"], {
|
25
|
-
ignore?: import("@atlaskit/adf-schema-generator/dist/types/transforms/transformerNames").TransformerNames[];
|
26
|
-
root?: boolean;
|
27
|
-
atom?: boolean;
|
28
|
-
version?: 1;
|
29
|
-
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
30
|
-
inline?: true;
|
31
|
-
code?: boolean;
|
32
|
-
content?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentSpec[];
|
33
|
-
defining?: boolean;
|
34
|
-
definingAsContext?: boolean;
|
35
|
-
definingForContent?: boolean;
|
36
|
-
draggable?: boolean;
|
37
|
-
group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
|
38
|
-
isolating?: boolean;
|
39
|
-
marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
|
40
|
-
selectable?: boolean;
|
41
|
-
whitespace?: "pre" | "normal";
|
42
|
-
} & {
|
43
|
-
marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
|
44
|
-
} & {
|
45
|
-
marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
|
46
|
-
}>;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export declare const unsupportedBlock: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
|
+
ignore?: import("@atlaskit/adf-schema-generator/dist/types/transforms/transformerNames").TransformerNames[];
|
3
|
+
root?: boolean;
|
4
|
+
atom?: boolean;
|
5
|
+
version?: 1;
|
6
|
+
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
7
|
+
inline?: true;
|
8
|
+
code?: boolean;
|
9
|
+
content?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentSpec[];
|
10
|
+
defining?: boolean;
|
11
|
+
definingAsContext?: boolean;
|
12
|
+
definingForContent?: boolean;
|
13
|
+
draggable?: boolean;
|
14
|
+
group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
|
15
|
+
isolating?: boolean;
|
16
|
+
marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
|
17
|
+
selectable?: boolean;
|
18
|
+
whitespace?: "pre" | "normal";
|
19
|
+
}>;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export declare const unsupportedInline: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
|
+
ignore?: import("@atlaskit/adf-schema-generator/dist/types/transforms/transformerNames").TransformerNames[];
|
3
|
+
root?: boolean;
|
4
|
+
atom?: boolean;
|
5
|
+
version?: 1;
|
6
|
+
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
7
|
+
inline?: true;
|
8
|
+
code?: boolean;
|
9
|
+
content?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentSpec[];
|
10
|
+
defining?: boolean;
|
11
|
+
definingAsContext?: boolean;
|
12
|
+
definingForContent?: boolean;
|
13
|
+
draggable?: boolean;
|
14
|
+
group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
|
15
|
+
isolating?: boolean;
|
16
|
+
marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
|
17
|
+
selectable?: boolean;
|
18
|
+
whitespace?: "pre" | "normal";
|
19
|
+
}>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "36.
|
3
|
+
"version": "36.13.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/"
|
@@ -44,7 +44,7 @@
|
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
46
|
"@atlassian/adf-schema-json": "^1.15.0",
|
47
|
-
"@atlaskit/adf-schema-generator": "^1.
|
47
|
+
"@atlaskit/adf-schema-generator": "^1.12.0",
|
48
48
|
"@atlaskit/codemod-utils": "^4.2.4",
|
49
49
|
"@atlaskit/json-schema-generator": "^3.3.9",
|
50
50
|
"@babel/cli": "^7.22.9",
|
@@ -179,3 +179,16 @@ A number of nodes have `marks` defined, yet the array is empty. Assuming this is
|
|
179
179
|
.block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node,
|
180
180
|
.bodiedExtension_node.properties.marks, .codeBlock_node.properties.marks, .expand_node.properties.marks, .heading_node.properties.marks, .inlineExtension_node.properties.marks, .text_node.properties.marks, .extension_node.properties.marks, .paragraph_node.properties.marks) else . end)' | pbcopy
|
181
181
|
```
|
182
|
+
|
183
|
+
Base level content objects (not nodes) are deleted. `inline` is also deleted, as it is a content object for paragraph.
|
184
|
+
|
185
|
+
`additionalProperties` and `allOf` are deleted as well.
|
186
|
+
|
187
|
+
A number of nodes have `marks` defined, yet the array is empty. Assuming this is redundant, I've removed them.
|
188
|
+
|
189
|
+
```sh
|
190
|
+
cat packages/adf-schema/json-schema/v1/full.json | jq 'walk(if type == "object" then del(
|
191
|
+
.allOf,
|
192
|
+
.block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node,
|
193
|
+
.bodiedExtension_node.properties.marks, .codeBlock_node.properties.marks, .expand_node.properties.marks, .heading_node.properties.marks, .inlineExtension_node.properties.marks, .text_node.properties.marks, .extension_node.properties.marks, .paragraph_node.properties.marks) else . end)' | pbcopy
|
194
|
+
```
|