@atlaskit/adf-schema 36.18.2 → 37.0.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/index.js +0 -24
- package/dist/cjs/next-schema/generated/markTypes.js +27 -16
- package/dist/cjs/next-schema/generated/nodeTypes.js +36 -4
- package/dist/cjs/next-schema/groups/searchQueryMarkGroup.js +2 -1
- package/dist/cjs/next-schema/marks/annotation.js +1 -0
- package/dist/cjs/next-schema/marks/confluenceInlineComment.js +18 -0
- package/dist/cjs/next-schema/marks/fragment.js +2 -0
- package/dist/cjs/next-schema/marks/typeAheadQuery.js +17 -0
- package/dist/cjs/next-schema/marks/unsupportedMark.js +3 -2
- package/dist/cjs/next-schema/marks/unsupportedNodeAttribute.js +4 -6
- package/dist/cjs/next-schema/nodes/heading.js +5 -0
- package/dist/cjs/next-schema/nodes/paragraph.js +7 -0
- package/dist/cjs/next-schema/nodes/text.js +3 -1
- package/dist/cjs/schema/create-schema.js +2 -2
- package/dist/cjs/schema/default-schema.js +1 -3
- package/dist/cjs/schema/index.js +0 -24
- package/dist/cjs/schema/nodes/heading.js +2 -51
- package/dist/cjs/schema/nodes/index.js +0 -24
- package/dist/cjs/schema/nodes/paragraph.js +2 -18
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/generated/markTypes.js +26 -15
- package/dist/es2019/next-schema/generated/nodeTypes.js +36 -4
- package/dist/es2019/next-schema/groups/searchQueryMarkGroup.js +2 -1
- package/dist/es2019/next-schema/marks/annotation.js +2 -1
- package/dist/es2019/next-schema/marks/confluenceInlineComment.js +12 -0
- package/dist/es2019/next-schema/marks/fragment.js +3 -1
- package/dist/es2019/next-schema/marks/typeAheadQuery.js +11 -0
- package/dist/es2019/next-schema/marks/unsupportedMark.js +4 -3
- package/dist/es2019/next-schema/marks/unsupportedNodeAttribute.js +4 -6
- package/dist/es2019/next-schema/nodes/heading.js +5 -0
- package/dist/es2019/next-schema/nodes/paragraph.js +7 -0
- package/dist/es2019/next-schema/nodes/text.js +3 -1
- package/dist/es2019/schema/create-schema.js +3 -3
- package/dist/es2019/schema/default-schema.js +2 -4
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/heading.js +2 -48
- package/dist/es2019/schema/nodes/index.js +2 -2
- package/dist/es2019/schema/nodes/paragraph.js +2 -15
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/generated/markTypes.js +26 -15
- package/dist/esm/next-schema/generated/nodeTypes.js +36 -4
- package/dist/esm/next-schema/groups/searchQueryMarkGroup.js +2 -1
- package/dist/esm/next-schema/marks/annotation.js +2 -1
- package/dist/esm/next-schema/marks/confluenceInlineComment.js +12 -0
- package/dist/esm/next-schema/marks/fragment.js +3 -1
- package/dist/esm/next-schema/marks/typeAheadQuery.js +11 -0
- package/dist/esm/next-schema/marks/unsupportedMark.js +4 -3
- package/dist/esm/next-schema/marks/unsupportedNodeAttribute.js +4 -6
- package/dist/esm/next-schema/nodes/heading.js +5 -0
- package/dist/esm/next-schema/nodes/paragraph.js +7 -0
- package/dist/esm/next-schema/nodes/text.js +3 -1
- package/dist/esm/schema/create-schema.js +3 -3
- package/dist/esm/schema/default-schema.js +2 -4
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/heading.js +1 -50
- package/dist/esm/schema/nodes/index.js +2 -2
- package/dist/esm/schema/nodes/paragraph.js +1 -17
- package/dist/json-schema/v1/full.json +12 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/next-schema/generated/markTypes.d.ts +23 -1
- package/dist/types/next-schema/generated/nodeTypes.d.ts +18 -2
- package/dist/types/next-schema/marks/confluenceInlineComment.d.ts +1 -0
- package/dist/types/next-schema/marks/typeAheadQuery.d.ts +1 -0
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/heading.d.ts +1 -3
- package/dist/types/schema/nodes/index.d.ts +2 -2
- package/dist/types/schema/nodes/paragraph.d.ts +1 -6
- package/json-schema/v1/full.json +12 -0
- package/package.json +3 -3
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +7 -1
- package/schema-generators/__tests__/unit/json-full-schema.unit.ts +12 -0
- package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +3 -25
@@ -0,0 +1,12 @@
|
|
1
|
+
import { ValidatorSpecTransformerName, JSONSchemaTransformerName, adfMark, MarkExcludesNone } from '@atlaskit/adf-schema-generator';
|
2
|
+
export var confluenceInlineComment = adfMark('confluenceInlineComment').define({
|
3
|
+
ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
|
4
|
+
inclusive: false,
|
5
|
+
excludes: MarkExcludesNone,
|
6
|
+
attrs: {
|
7
|
+
reference: {
|
8
|
+
type: 'string',
|
9
|
+
default: ''
|
10
|
+
}
|
11
|
+
}
|
12
|
+
});
|
@@ -1,6 +1,8 @@
|
|
1
|
-
import { adfMark } from '@atlaskit/adf-schema-generator';
|
1
|
+
import { MarkExcludesNone, adfMark } from '@atlaskit/adf-schema-generator';
|
2
2
|
export var fragment = adfMark('fragment').define({
|
3
3
|
inclusive: false,
|
4
|
+
excludes: MarkExcludesNone,
|
5
|
+
allowExcludesEmpty: true,
|
4
6
|
attrs: {
|
5
7
|
localId: {
|
6
8
|
minLength: 1,
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ValidatorSpecTransformerName, JSONSchemaTransformerName, adfMark } from '@atlaskit/adf-schema-generator';
|
2
|
+
export var typeAheadQuery = adfMark('typeAheadQuery').define({
|
3
|
+
ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
|
4
|
+
inclusive: true,
|
5
|
+
attrs: {
|
6
|
+
trigger: {
|
7
|
+
type: 'string',
|
8
|
+
default: ''
|
9
|
+
}
|
10
|
+
}
|
11
|
+
});
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import { adfMark, JSONSchemaTransformerName, ValidatorSpecTransformerName } from '@atlaskit/adf-schema-generator';
|
1
|
+
import { adfMark, JSONSchemaTransformerName, MarkExcludesNone, ValidatorSpecTransformerName } from '@atlaskit/adf-schema-generator';
|
2
2
|
export var unsupportedMark = adfMark('unsupportedMark').define({
|
3
3
|
ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
|
4
|
+
excludes: MarkExcludesNone,
|
5
|
+
allowExcludesEmpty: true,
|
4
6
|
attrs: {
|
5
7
|
originalValue: {
|
6
|
-
type: 'object'
|
7
|
-
default: {}
|
8
|
+
type: 'object'
|
8
9
|
}
|
9
10
|
}
|
10
11
|
});
|
@@ -2,13 +2,11 @@ import { adfMark, JSONSchemaTransformerName, ValidatorSpecTransformerName } from
|
|
2
2
|
export var unsupportedNodeAttribute = adfMark('unsupportedNodeAttribute').define({
|
3
3
|
ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
|
4
4
|
attrs: {
|
5
|
-
type: {
|
6
|
-
type: 'string',
|
7
|
-
default: null
|
8
|
-
},
|
9
5
|
unsupported: {
|
10
|
-
type: 'object'
|
11
|
-
|
6
|
+
type: 'object'
|
7
|
+
},
|
8
|
+
type: {
|
9
|
+
type: 'string'
|
12
10
|
}
|
13
11
|
}
|
14
12
|
});
|
@@ -4,6 +4,13 @@ import { alignment, indentation } from '../marks/alignmentAndIndentation';
|
|
4
4
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
5
5
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
6
6
|
export var paragraph = adfNode('paragraph').define({
|
7
|
+
attrs: {
|
8
|
+
localId: {
|
9
|
+
type: 'string',
|
10
|
+
optional: true,
|
11
|
+
default: null
|
12
|
+
}
|
13
|
+
},
|
7
14
|
selectable: false,
|
8
15
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
9
16
|
content: [$zeroPlus($or(inlineGroup))]
|
@@ -10,8 +10,10 @@ import { underline } from '../marks/underline';
|
|
10
10
|
import { backgroundColor, textColor } from '../marks/color';
|
11
11
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
12
12
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
13
|
+
import { typeAheadQuery } from '../marks/typeAheadQuery';
|
14
|
+
import { confluenceInlineComment } from '../marks/confluenceInlineComment';
|
13
15
|
export var text = adfNode('text').define({}).variant('formatted', {
|
14
|
-
marks: [link, em, strong, strike, subsup, underline, textColor, annotation, backgroundColor, unsupportedNodeAttribute, unsupportedMark]
|
16
|
+
marks: [link, em, strong, strike, subsup, underline, textColor, annotation, backgroundColor, typeAheadQuery, confluenceInlineComment, unsupportedNodeAttribute, unsupportedMark]
|
15
17
|
}).variant('code_inline', {
|
16
18
|
marks: [code, link, annotation, unsupportedNodeAttribute, unsupportedMark]
|
17
19
|
});
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
4
4
|
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
5
5
|
import { COLOR, FONT_STYLE, SEARCH_QUERY, LINK } from './groups';
|
6
6
|
import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, breakout, alignment, indentation, annotation, unsupportedMark, unsupportedNodeAttribute, dataConsumer, fragment, border, backgroundColor } from './marks';
|
7
|
-
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc,
|
7
|
+
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItemWithTask, heading, blockquoteWithList, codeBlock, extendedPanel, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expand, nestedExpand, embedCard, caption } from './nodes';
|
8
8
|
function addItems(builtInItems, config) {
|
9
9
|
var customSpecs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
10
10
|
if (!config) {
|
@@ -59,7 +59,7 @@ var nodesInOrder = [{
|
|
59
59
|
spec: doc
|
60
60
|
}, {
|
61
61
|
name: 'paragraph',
|
62
|
-
spec:
|
62
|
+
spec: paragraph
|
63
63
|
}, {
|
64
64
|
name: 'text',
|
65
65
|
spec: text
|
@@ -74,7 +74,7 @@ var nodesInOrder = [{
|
|
74
74
|
spec: listItemWithTask
|
75
75
|
}, {
|
76
76
|
name: 'heading',
|
77
|
-
spec:
|
77
|
+
spec: heading
|
78
78
|
}, {
|
79
79
|
name: 'blockquote',
|
80
80
|
spec: blockquoteWithList
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
2
|
-
import { extensionFrame,
|
2
|
+
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension } from './nodes';
|
3
3
|
import { createSchema } from './create-schema';
|
4
4
|
var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
|
5
5
|
var defaultSchemaConfig = {
|
@@ -18,9 +18,7 @@ export var getSchemaBasedOnStage = memoizeOne(function () {
|
|
18
18
|
defaultSchemaConfig.customNodeSpecs = {
|
19
19
|
layoutSection: layoutSectionWithSingleColumn,
|
20
20
|
multiBodiedExtension: multiBodiedExtension,
|
21
|
-
extensionFrame: extensionFrame
|
22
|
-
heading: headingNodeSpec('stage0'),
|
23
|
-
paragraph: paragraphNodeSpec('stage0')
|
21
|
+
extensionFrame: extensionFrame
|
24
22
|
};
|
25
23
|
}
|
26
24
|
return createSchema(defaultSchemaConfig);
|
package/dist/esm/schema/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading,
|
1
|
+
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension } from './nodes';
|
2
2
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
3
|
colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, backgroundColor, backgroundColorPalette } from './marks';
|
4
4
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
@@ -24,7 +24,7 @@ var getAttrs = function getAttrs(level) {
|
|
24
24
|
};
|
25
25
|
};
|
26
26
|
};
|
27
|
-
export var
|
27
|
+
export var heading = {
|
28
28
|
attrs: {
|
29
29
|
level: {
|
30
30
|
default: 1
|
@@ -66,53 +66,4 @@ export var headingStage0 = {
|
|
66
66
|
}] : [];
|
67
67
|
return [name].concat(attrs, [0]);
|
68
68
|
}
|
69
|
-
};
|
70
|
-
export var heading = {
|
71
|
-
attrs: {
|
72
|
-
level: {
|
73
|
-
default: 1
|
74
|
-
}
|
75
|
-
},
|
76
|
-
content: "inline*",
|
77
|
-
group: 'block',
|
78
|
-
defining: true,
|
79
|
-
selectable: false,
|
80
|
-
parseDOM: [{
|
81
|
-
tag: 'h1',
|
82
|
-
attrs: {
|
83
|
-
level: 1
|
84
|
-
}
|
85
|
-
}, {
|
86
|
-
tag: 'h2',
|
87
|
-
attrs: {
|
88
|
-
level: 2
|
89
|
-
}
|
90
|
-
}, {
|
91
|
-
tag: 'h3',
|
92
|
-
attrs: {
|
93
|
-
level: 3
|
94
|
-
}
|
95
|
-
}, {
|
96
|
-
tag: 'h4',
|
97
|
-
attrs: {
|
98
|
-
level: 4
|
99
|
-
}
|
100
|
-
}, {
|
101
|
-
tag: 'h5',
|
102
|
-
attrs: {
|
103
|
-
level: 5
|
104
|
-
}
|
105
|
-
}, {
|
106
|
-
tag: 'h6',
|
107
|
-
attrs: {
|
108
|
-
level: 6
|
109
|
-
}
|
110
|
-
}],
|
111
|
-
toDOM: function toDOM(node) {
|
112
|
-
return ['h' + node.attrs['level'], 0];
|
113
|
-
}
|
114
|
-
};
|
115
|
-
export var headingNodeSpec = function headingNodeSpec() {
|
116
|
-
var adfStage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'full';
|
117
|
-
return adfStage === 'stage0' ? headingStage0 : heading;
|
118
69
|
};
|
@@ -8,10 +8,10 @@ export { blockquoteWithList } from './blockquote';
|
|
8
8
|
export { bulletList, bulletListSelector } from './bullet-list';
|
9
9
|
export { codeBlock, toJSON as codeBlockToJSON } from './code-block';
|
10
10
|
export { hardBreak } from './hard-break';
|
11
|
-
export {
|
11
|
+
export { heading } from './heading';
|
12
12
|
export { rule } from './rule';
|
13
13
|
export { orderedList, orderedListSelector, orderedListWithOrder } from './ordered-list';
|
14
|
-
export { paragraph
|
14
|
+
export { paragraph } from './paragraph';
|
15
15
|
export { emoji } from './emoji';
|
16
16
|
export { image } from './image';
|
17
17
|
export { mention, toJSON as mentionToJSON } from './mention';
|
@@ -23,7 +23,7 @@
|
|
23
23
|
* @name paragraph_with_indentation_node
|
24
24
|
*/
|
25
25
|
|
26
|
-
export var
|
26
|
+
export var paragraph = {
|
27
27
|
selectable: false,
|
28
28
|
content: 'inline*',
|
29
29
|
group: 'block',
|
@@ -52,20 +52,4 @@ export var paragraphStage0 = {
|
|
52
52
|
}] : [];
|
53
53
|
return [name].concat(attrs, [0]);
|
54
54
|
}
|
55
|
-
};
|
56
|
-
export var paragraph = {
|
57
|
-
selectable: false,
|
58
|
-
content: 'inline*',
|
59
|
-
group: 'block',
|
60
|
-
marks: 'strong code em link border strike subsup textColor backgroundColor typeAheadQuery underline confluenceInlineComment annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
61
|
-
parseDOM: [{
|
62
|
-
tag: 'p'
|
63
|
-
}],
|
64
|
-
toDOM: function toDOM() {
|
65
|
-
return ['p', 0];
|
66
|
-
}
|
67
|
-
};
|
68
|
-
export var paragraphNodeSpec = function paragraphNodeSpec() {
|
69
|
-
var adfStage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'full';
|
70
|
-
return adfStage === 'stage0' ? paragraphStage0 : paragraph;
|
71
55
|
};
|
@@ -1226,6 +1226,15 @@
|
|
1226
1226
|
"$ref": "#/definitions/inline_node"
|
1227
1227
|
}
|
1228
1228
|
},
|
1229
|
+
"attrs": {
|
1230
|
+
"type": "object",
|
1231
|
+
"properties": {
|
1232
|
+
"localId": {
|
1233
|
+
"type": "string"
|
1234
|
+
}
|
1235
|
+
},
|
1236
|
+
"additionalProperties": false
|
1237
|
+
},
|
1229
1238
|
"marks": {
|
1230
1239
|
"type": "array"
|
1231
1240
|
}
|
@@ -1705,6 +1714,9 @@
|
|
1705
1714
|
"type": "number",
|
1706
1715
|
"minimum": 1,
|
1707
1716
|
"maximum": 6
|
1717
|
+
},
|
1718
|
+
"localId": {
|
1719
|
+
"type": "string"
|
1708
1720
|
}
|
1709
1721
|
},
|
1710
1722
|
"required": [
|
package/dist/types/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
|
2
2
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
|
-
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading,
|
3
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, } from './schema';
|
4
4
|
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, 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, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, BorderMarkAttributes, BorderMarkDefinition, MultiBodiedExtensionDefinition, ExtensionFrameDefinition, BackgroundColorDefinition, } from './schema';
|
5
5
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor, } from './utils';
|
6
6
|
export type { Match, NameToEmoji } from './utils';
|
@@ -5,8 +5,8 @@
|
|
5
5
|
*/
|
6
6
|
import { Mark } from '@atlaskit/editor-prosemirror/model';
|
7
7
|
export interface UnsupportedNodeAttributeMarkAttributes {
|
8
|
-
type: string;
|
9
8
|
unsupported: Record<string, unknown>;
|
9
|
+
type: string;
|
10
10
|
}
|
11
11
|
export interface UnsupportedNodeAttributeDefinition {
|
12
12
|
type: 'unsupportedNodeAttribute';
|
@@ -108,6 +108,28 @@ export interface BackgroundColorMark extends Mark {
|
|
108
108
|
attrs: BackgroundColorMarkAttributes;
|
109
109
|
}
|
110
110
|
export declare const backgroundColor: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<BackgroundColorMark>) => import("prosemirror-model").MarkSpec;
|
111
|
+
export interface TypeAheadQueryMarkAttributes {
|
112
|
+
trigger: string;
|
113
|
+
}
|
114
|
+
export interface TypeAheadQueryDefinition {
|
115
|
+
type: 'typeAheadQuery';
|
116
|
+
attrs: TypeAheadQueryMarkAttributes;
|
117
|
+
}
|
118
|
+
export interface TypeAheadQueryMark extends Mark {
|
119
|
+
attrs: TypeAheadQueryMarkAttributes;
|
120
|
+
}
|
121
|
+
export declare const typeAheadQuery: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<TypeAheadQueryMark>) => import("prosemirror-model").MarkSpec;
|
122
|
+
export interface ConfluenceInlineCommentMarkAttributes {
|
123
|
+
reference: string;
|
124
|
+
}
|
125
|
+
export interface ConfluenceInlineCommentDefinition {
|
126
|
+
type: 'confluenceInlineComment';
|
127
|
+
attrs: ConfluenceInlineCommentMarkAttributes;
|
128
|
+
}
|
129
|
+
export interface ConfluenceInlineCommentMark extends Mark {
|
130
|
+
attrs: ConfluenceInlineCommentMarkAttributes;
|
131
|
+
}
|
132
|
+
export declare const confluenceInlineComment: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<ConfluenceInlineCommentMark>) => import("prosemirror-model").MarkSpec;
|
111
133
|
export interface CodeDefinition {
|
112
134
|
type: 'code';
|
113
135
|
}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
*/
|
6
6
|
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
7
7
|
import { InlineDefinition, BlockDefinition, BlockRootOnlyDefinition } from './nodeGroupTypes';
|
8
|
-
import { UnsupportedNodeAttributeMark, UnsupportedMarkMark, LinkMark, EmMark, StrongMark, StrikeMark, SubsupMark, UnderlineMark, TextColorMark, AnnotationMark, BackgroundColorMark, CodeMark, DataConsumerMark, FragmentMark, BorderMark, AlignmentMark, IndentationMark, BreakoutMark } from './markTypes';
|
8
|
+
import { UnsupportedNodeAttributeMark, UnsupportedMarkMark, LinkMark, EmMark, StrongMark, StrikeMark, SubsupMark, UnderlineMark, TextColorMark, AnnotationMark, BackgroundColorMark, TypeAheadQueryMark, ConfluenceInlineCommentMark, CodeMark, DataConsumerMark, FragmentMark, BorderMark, AlignmentMark, IndentationMark, BreakoutMark } from './markTypes';
|
9
9
|
export interface TextDefinition {
|
10
10
|
type: 'text';
|
11
11
|
}
|
@@ -51,7 +51,7 @@ export type BlockCardNode = PMNode & BlockCardDefinition;
|
|
51
51
|
export declare const blockCard: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<BlockCardNode>) => import("prosemirror-model").NodeSpec;
|
52
52
|
export interface TextFormattedDefinition {
|
53
53
|
type: 'text';
|
54
|
-
marks: Array<LinkMark | EmMark | StrongMark | StrikeMark | SubsupMark | UnderlineMark | TextColorMark | AnnotationMark | BackgroundColorMark | UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
|
54
|
+
marks: Array<LinkMark | EmMark | StrongMark | StrikeMark | SubsupMark | UnderlineMark | TextColorMark | AnnotationMark | BackgroundColorMark | TypeAheadQueryMark | ConfluenceInlineCommentMark | UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
|
55
55
|
}
|
56
56
|
export type TextFormattedNode = PMNode & TextFormattedDefinition;
|
57
57
|
export declare const textFormatted: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<TextFormattedNode>) => import("prosemirror-model").NodeSpec;
|
@@ -207,6 +207,9 @@ export interface ParagraphWithNoMarksDefinition {
|
|
207
207
|
type: 'paragraph';
|
208
208
|
content: Array<InlineDefinition>;
|
209
209
|
marks: Array<UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
|
210
|
+
attrs: {
|
211
|
+
localId?: string;
|
212
|
+
};
|
210
213
|
}
|
211
214
|
export type ParagraphWithNoMarksNode = PMNode & ParagraphWithNoMarksDefinition;
|
212
215
|
export declare const paragraphWithNoMarks: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<ParagraphWithNoMarksNode>) => import("prosemirror-model").NodeSpec;
|
@@ -342,6 +345,7 @@ export interface HeadingWithNoMarksDefinition {
|
|
342
345
|
marks: Array<UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
|
343
346
|
attrs: {
|
344
347
|
level: number;
|
348
|
+
localId?: string;
|
345
349
|
};
|
346
350
|
}
|
347
351
|
export type HeadingWithNoMarksNode = PMNode & HeadingWithNoMarksDefinition;
|
@@ -397,6 +401,9 @@ export interface ParagraphDefinition {
|
|
397
401
|
type: 'paragraph';
|
398
402
|
content: Array<InlineDefinition>;
|
399
403
|
marks: Array<UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
|
404
|
+
attrs: {
|
405
|
+
localId?: string;
|
406
|
+
};
|
400
407
|
}
|
401
408
|
export type ParagraphNode = PMNode & ParagraphDefinition;
|
402
409
|
export declare const paragraph: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<ParagraphNode>) => import("prosemirror-model").NodeSpec;
|
@@ -404,6 +411,9 @@ export interface ParagraphWithMarksDefinition {
|
|
404
411
|
type: 'paragraph';
|
405
412
|
content: Array<InlineDefinition>;
|
406
413
|
marks: Array<AlignmentMark | IndentationMark | UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
|
414
|
+
attrs: {
|
415
|
+
localId?: string;
|
416
|
+
};
|
407
417
|
}
|
408
418
|
export type ParagraphWithMarksNode = PMNode & ParagraphWithMarksDefinition;
|
409
419
|
export declare const paragraphWithMarks: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<ParagraphWithMarksNode>) => import("prosemirror-model").NodeSpec;
|
@@ -420,6 +430,7 @@ export interface HeadingWithAlignmentDefinition {
|
|
420
430
|
marks: Array<AlignmentMark | UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
|
421
431
|
attrs: {
|
422
432
|
level: number;
|
433
|
+
localId?: string;
|
423
434
|
};
|
424
435
|
}
|
425
436
|
export type HeadingWithAlignmentNode = PMNode & HeadingWithAlignmentDefinition;
|
@@ -430,6 +441,7 @@ export interface HeadingWithIndentationDefinition {
|
|
430
441
|
marks: Array<IndentationMark | UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
|
431
442
|
attrs: {
|
432
443
|
level: number;
|
444
|
+
localId?: string;
|
433
445
|
};
|
434
446
|
}
|
435
447
|
export type HeadingWithIndentationNode = PMNode & HeadingWithIndentationDefinition;
|
@@ -438,6 +450,9 @@ export interface ParagraphWithAlignmentDefinition {
|
|
438
450
|
type: 'paragraph';
|
439
451
|
content: Array<InlineDefinition>;
|
440
452
|
marks: Array<AlignmentMark | UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
|
453
|
+
attrs: {
|
454
|
+
localId?: string;
|
455
|
+
};
|
441
456
|
}
|
442
457
|
export type ParagraphWithAlignmentNode = PMNode & ParagraphWithAlignmentDefinition;
|
443
458
|
export declare const paragraphWithAlignment: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<ParagraphWithAlignmentNode>) => import("prosemirror-model").NodeSpec;
|
@@ -606,6 +621,7 @@ export interface HeadingDefinition {
|
|
606
621
|
marks: Array<UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
|
607
622
|
attrs: {
|
608
623
|
level: number;
|
624
|
+
localId?: string;
|
609
625
|
};
|
610
626
|
}
|
611
627
|
export type HeadingNode = PMNode & HeadingDefinition;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const confluenceInlineComment: 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 typeAheadQuery: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading,
|
1
|
+
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, } 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, InlineAtomic, 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, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, } from './nodes';
|
3
3
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
4
4
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
@@ -19,7 +19,7 @@ export interface HeadingBaseDefinition {
|
|
19
19
|
*/
|
20
20
|
level: number;
|
21
21
|
/**
|
22
|
-
*
|
22
|
+
* An optional UUID for unique identification of the node
|
23
23
|
*/
|
24
24
|
localId?: string;
|
25
25
|
};
|
@@ -37,6 +37,4 @@ export type HeadingWithAlignmentDefinition = HeadingBaseDefinition & MarksObject
|
|
37
37
|
*/
|
38
38
|
export type HeadingWithIndentationDefinition = HeadingBaseDefinition & MarksObject<IndentationMarkDefinition>;
|
39
39
|
export type HeadingWithMarksDefinition = HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition;
|
40
|
-
export declare const headingStage0: NodeSpec;
|
41
40
|
export declare const heading: NodeSpec;
|
42
|
-
export declare const headingNodeSpec: (adfStage?: string) => NodeSpec;
|
@@ -14,13 +14,13 @@ export { codeBlock, toJSON as codeBlockToJSON } from './code-block';
|
|
14
14
|
export type { CodeBlockDefinition, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockWithMarksDefinition, } from './code-block';
|
15
15
|
export { hardBreak } from './hard-break';
|
16
16
|
export type { HardBreakDefinition } from './hard-break';
|
17
|
-
export {
|
17
|
+
export { heading } from './heading';
|
18
18
|
export type { HeadingDefinition, HeadingBaseDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, } from './heading';
|
19
19
|
export { rule } from './rule';
|
20
20
|
export type { RuleDefinition } from './rule';
|
21
21
|
export { orderedList, orderedListSelector, orderedListWithOrder, } from './ordered-list';
|
22
22
|
export type { OrderedListDefinition } from './types/list';
|
23
|
-
export { paragraph
|
23
|
+
export { paragraph } from './paragraph';
|
24
24
|
export type { ParagraphDefinition, ParagraphBaseDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, } from './paragraph';
|
25
25
|
export { emoji } from './emoji';
|
26
26
|
export type { EmojiAttributes, EmojiDefinition } from './emoji';
|
@@ -4,7 +4,7 @@ import { MarksObject, NoMark } from './types/mark';
|
|
4
4
|
import { Inline } from './types/inline-content';
|
5
5
|
export interface ParagraphAttributes {
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* An optional UUID for unique identification of the node
|
8
8
|
*/
|
9
9
|
localId?: string;
|
10
10
|
}
|
@@ -17,9 +17,6 @@ export interface ParagraphBaseDefinition {
|
|
17
17
|
* @allowUnsupportedInline true
|
18
18
|
*/
|
19
19
|
content?: Array<Inline>;
|
20
|
-
/**
|
21
|
-
* @stage 0
|
22
|
-
*/
|
23
20
|
attrs?: ParagraphAttributes;
|
24
21
|
marks?: Array<any>;
|
25
22
|
}
|
@@ -44,6 +41,4 @@ export type ParagraphWithAlignmentDefinition = ParagraphBaseDefinition & MarksOb
|
|
44
41
|
*/
|
45
42
|
export type ParagraphWithIndentationDefinition = ParagraphBaseDefinition & MarksObject<IndentationMarkDefinition>;
|
46
43
|
export type ParagraphWithMarksDefinition = ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition;
|
47
|
-
export declare const paragraphStage0: NodeSpec;
|
48
44
|
export declare const paragraph: NodeSpec;
|
49
|
-
export declare const paragraphNodeSpec: (adfStage?: string) => NodeSpec;
|
package/json-schema/v1/full.json
CHANGED
@@ -1226,6 +1226,15 @@
|
|
1226
1226
|
"$ref": "#/definitions/inline_node"
|
1227
1227
|
}
|
1228
1228
|
},
|
1229
|
+
"attrs": {
|
1230
|
+
"type": "object",
|
1231
|
+
"properties": {
|
1232
|
+
"localId": {
|
1233
|
+
"type": "string"
|
1234
|
+
}
|
1235
|
+
},
|
1236
|
+
"additionalProperties": false
|
1237
|
+
},
|
1229
1238
|
"marks": {
|
1230
1239
|
"type": "array"
|
1231
1240
|
}
|
@@ -1705,6 +1714,9 @@
|
|
1705
1714
|
"type": "number",
|
1706
1715
|
"minimum": 1,
|
1707
1716
|
"maximum": 6
|
1717
|
+
},
|
1718
|
+
"localId": {
|
1719
|
+
"type": "string"
|
1708
1720
|
}
|
1709
1721
|
},
|
1710
1722
|
"required": [
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "
|
3
|
+
"version": "37.0.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,8 +43,8 @@
|
|
43
43
|
"memoize-one": "^6.0.0"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
|
-
"@atlassian/adf-schema-json": "^1.
|
47
|
-
"@atlaskit/adf-schema-generator": "^1.17.
|
46
|
+
"@atlassian/adf-schema-json": "^1.16.0",
|
47
|
+
"@atlaskit/adf-schema-generator": "^1.17.2",
|
48
48
|
"@atlaskit/codemod-utils": "^4.2.4",
|
49
49
|
"@atlaskit/json-schema-generator": "^3.3.9",
|
50
50
|
"@babel/cli": "^7.22.9",
|
@@ -64,6 +64,7 @@ const paragraph = {
|
|
64
64
|
optional: true,
|
65
65
|
},
|
66
66
|
marks: { type: 'array', items: [], optional: true },
|
67
|
+
attrs: { props: { localId: { type: 'string', optional: true } } },
|
67
68
|
},
|
68
69
|
};
|
69
70
|
|
@@ -142,6 +143,11 @@ const heading = {
|
|
142
143
|
optional: true,
|
143
144
|
},
|
144
145
|
marks: { type: 'array', items: [], optional: true },
|
145
|
-
attrs: {
|
146
|
+
attrs: {
|
147
|
+
props: {
|
148
|
+
level: { type: 'number', minimum: 1, maximum: 6 },
|
149
|
+
localId: { type: 'string', optional: true },
|
150
|
+
},
|
151
|
+
},
|
146
152
|
},
|
147
153
|
};
|
@@ -822,6 +822,9 @@ const jsonWithTypes = {
|
|
822
822
|
minimum: 1,
|
823
823
|
type: 'number',
|
824
824
|
},
|
825
|
+
localId: {
|
826
|
+
type: 'string',
|
827
|
+
},
|
825
828
|
},
|
826
829
|
required: ['level'],
|
827
830
|
type: 'object',
|
@@ -1480,6 +1483,15 @@ const jsonWithTypes = {
|
|
1480
1483
|
type: {
|
1481
1484
|
enum: ['paragraph'],
|
1482
1485
|
},
|
1486
|
+
attrs: {
|
1487
|
+
additionalProperties: false,
|
1488
|
+
properties: {
|
1489
|
+
localId: {
|
1490
|
+
type: 'string',
|
1491
|
+
},
|
1492
|
+
},
|
1493
|
+
type: 'object',
|
1494
|
+
},
|
1483
1495
|
},
|
1484
1496
|
required: ['type'],
|
1485
1497
|
type: 'object',
|