@atlaskit/adf-schema 44.3.0 → 44.4.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 +6 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +1 -0
- package/dist/cjs/next-schema/nodes/heading.js +2 -16
- package/dist/cjs/next-schema/nodes/paragraph.js +1 -13
- package/dist/es2019/next-schema/generated/nodeTypes.js +1 -0
- package/dist/es2019/next-schema/nodes/heading.js +2 -16
- package/dist/es2019/next-schema/nodes/paragraph.js +1 -13
- package/dist/esm/next-schema/generated/nodeTypes.js +1 -0
- package/dist/esm/next-schema/nodes/heading.js +2 -16
- package/dist/esm/next-schema/nodes/paragraph.js +1 -13
- package/dist/types/next-schema/generated/nodeTypes.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -407,6 +407,7 @@ var hardBreak = exports.hardBreak = (0, _createPMSpecFactory.createPMNodeSpecFac
|
|
407
407
|
});
|
408
408
|
var heading = exports.heading = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
409
409
|
content: 'inline*',
|
410
|
+
marks: 'link em strong strike subsup underline textColor annotation backgroundColor typeAheadQuery confluenceInlineComment unsupportedNodeAttribute unsupportedMark code dataConsumer fragment border',
|
410
411
|
group: 'block',
|
411
412
|
attrs: {
|
412
413
|
level: {
|
@@ -13,9 +13,7 @@ var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
|
13
13
|
var heading = exports.heading = (0, _adfSchemaGenerator.adfNode)('heading').define({
|
14
14
|
defining: true,
|
15
15
|
selectable: false,
|
16
|
-
|
17
|
-
// packages/adf-schema-generator/src/transforms/adfToPm/buildPmSpec.ts
|
18
|
-
// marks: [unsupportedMark, unsupportedNodeAttribute],
|
16
|
+
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
19
17
|
hasEmptyMarks: true,
|
20
18
|
attrs: {
|
21
19
|
level: {
|
@@ -30,19 +28,7 @@ var heading = exports.heading = (0, _adfSchemaGenerator.adfNode)('heading').defi
|
|
30
28
|
default: null
|
31
29
|
}
|
32
30
|
},
|
33
|
-
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _inlineContentGroup.inlineContentGroup))]
|
34
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
35
|
-
'validator-spec': {
|
36
|
-
'props.marks': {
|
37
|
-
value: {
|
38
|
-
type: 'array',
|
39
|
-
items: [],
|
40
|
-
optional: true
|
41
|
-
},
|
42
|
-
reason: 'In old types, some nodes have marks: Array<any>, which is not possible to represent in new DSL'
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
31
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _inlineContentGroup.inlineContentGroup))]
|
46
32
|
}).variant('with_alignment', {
|
47
33
|
marks: [_alignmentAndIndentation.alignment, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
48
34
|
content: [],
|
@@ -21,19 +21,7 @@ var paragraph = exports.paragraph = (0, _adfSchemaGenerator.adfNode)('paragraph'
|
|
21
21
|
selectable: false,
|
22
22
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
23
23
|
hasEmptyMarks: true,
|
24
|
-
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _inlineContentGroup.inlineContentGroup))]
|
25
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
26
|
-
'validator-spec': {
|
27
|
-
'props.marks': {
|
28
|
-
value: {
|
29
|
-
type: 'array',
|
30
|
-
items: [],
|
31
|
-
optional: true
|
32
|
-
},
|
33
|
-
reason: 'NoMark type used in old schema had a hack maxItems: 0 to mark nodes that should not have any marks. This is not possible to represent in new DSL.'
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
24
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _inlineContentGroup.inlineContentGroup))]
|
37
25
|
}).variant('with_alignment', {
|
38
26
|
marks: [_alignmentAndIndentation.alignment, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
39
27
|
content: [],
|
@@ -401,6 +401,7 @@ export const hardBreak = createPMNodeSpecFactory({
|
|
401
401
|
});
|
402
402
|
export const heading = createPMNodeSpecFactory({
|
403
403
|
content: 'inline*',
|
404
|
+
marks: 'link em strong strike subsup underline textColor annotation backgroundColor typeAheadQuery confluenceInlineComment unsupportedNodeAttribute unsupportedMark code dataConsumer fragment border',
|
404
405
|
group: 'block',
|
405
406
|
attrs: {
|
406
407
|
level: {
|
@@ -7,9 +7,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
7
7
|
export const heading = adfNode('heading').define({
|
8
8
|
defining: true,
|
9
9
|
selectable: false,
|
10
|
-
|
11
|
-
// packages/adf-schema-generator/src/transforms/adfToPm/buildPmSpec.ts
|
12
|
-
// marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
13
11
|
hasEmptyMarks: true,
|
14
12
|
attrs: {
|
15
13
|
level: {
|
@@ -24,19 +22,7 @@ export const heading = adfNode('heading').define({
|
|
24
22
|
default: null
|
25
23
|
}
|
26
24
|
},
|
27
|
-
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
|
28
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
29
|
-
'validator-spec': {
|
30
|
-
'props.marks': {
|
31
|
-
value: {
|
32
|
-
type: 'array',
|
33
|
-
items: [],
|
34
|
-
optional: true
|
35
|
-
},
|
36
|
-
reason: 'In old types, some nodes have marks: Array<any>, which is not possible to represent in new DSL'
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
25
|
+
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
|
40
26
|
}).variant('with_alignment', {
|
41
27
|
marks: [alignment, unsupportedMark, unsupportedNodeAttribute],
|
42
28
|
content: [],
|
@@ -15,19 +15,7 @@ export const paragraph = adfNode('paragraph').define({
|
|
15
15
|
selectable: false,
|
16
16
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
17
17
|
hasEmptyMarks: true,
|
18
|
-
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
|
19
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
20
|
-
'validator-spec': {
|
21
|
-
'props.marks': {
|
22
|
-
value: {
|
23
|
-
type: 'array',
|
24
|
-
items: [],
|
25
|
-
optional: true
|
26
|
-
},
|
27
|
-
reason: 'NoMark type used in old schema had a hack maxItems: 0 to mark nodes that should not have any marks. This is not possible to represent in new DSL.'
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}
|
18
|
+
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
|
31
19
|
}).variant('with_alignment', {
|
32
20
|
marks: [alignment, unsupportedMark, unsupportedNodeAttribute],
|
33
21
|
content: [],
|
@@ -401,6 +401,7 @@ export var hardBreak = createPMNodeSpecFactory({
|
|
401
401
|
});
|
402
402
|
export var heading = createPMNodeSpecFactory({
|
403
403
|
content: 'inline*',
|
404
|
+
marks: 'link em strong strike subsup underline textColor annotation backgroundColor typeAheadQuery confluenceInlineComment unsupportedNodeAttribute unsupportedMark code dataConsumer fragment border',
|
404
405
|
group: 'block',
|
405
406
|
attrs: {
|
406
407
|
level: {
|
@@ -7,9 +7,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
7
7
|
export var heading = adfNode('heading').define({
|
8
8
|
defining: true,
|
9
9
|
selectable: false,
|
10
|
-
|
11
|
-
// packages/adf-schema-generator/src/transforms/adfToPm/buildPmSpec.ts
|
12
|
-
// marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
13
11
|
hasEmptyMarks: true,
|
14
12
|
attrs: {
|
15
13
|
level: {
|
@@ -24,19 +22,7 @@ export var heading = adfNode('heading').define({
|
|
24
22
|
default: null
|
25
23
|
}
|
26
24
|
},
|
27
|
-
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
|
28
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
29
|
-
'validator-spec': {
|
30
|
-
'props.marks': {
|
31
|
-
value: {
|
32
|
-
type: 'array',
|
33
|
-
items: [],
|
34
|
-
optional: true
|
35
|
-
},
|
36
|
-
reason: 'In old types, some nodes have marks: Array<any>, which is not possible to represent in new DSL'
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
25
|
+
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
|
40
26
|
}).variant('with_alignment', {
|
41
27
|
marks: [alignment, unsupportedMark, unsupportedNodeAttribute],
|
42
28
|
content: [],
|
@@ -15,19 +15,7 @@ export var paragraph = adfNode('paragraph').define({
|
|
15
15
|
selectable: false,
|
16
16
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
17
17
|
hasEmptyMarks: true,
|
18
|
-
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
|
19
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
20
|
-
'validator-spec': {
|
21
|
-
'props.marks': {
|
22
|
-
value: {
|
23
|
-
type: 'array',
|
24
|
-
items: [],
|
25
|
-
optional: true
|
26
|
-
},
|
27
|
-
reason: 'NoMark type used in old schema had a hack maxItems: 0 to mark nodes that should not have any marks. This is not possible to represent in new DSL.'
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}
|
18
|
+
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
|
31
19
|
}).variant('with_alignment', {
|
32
20
|
marks: [alignment, unsupportedMark, unsupportedNodeAttribute],
|
33
21
|
content: [],
|
@@ -295,6 +295,7 @@ export declare const hardBreak: ({ parseDOM, toDOM, toDebugString }: import("../
|
|
295
295
|
export interface HeadingDefinition {
|
296
296
|
type: 'heading';
|
297
297
|
content: Array<InlineDefinition>;
|
298
|
+
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
298
299
|
attrs: {
|
299
300
|
level: number;
|
300
301
|
localId?: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "44.
|
3
|
+
"version": "44.4.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/"
|
@@ -46,7 +46,7 @@
|
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
48
48
|
"@atlassian/adf-schema-json": "^1.24.0",
|
49
|
-
"@atlaskit/adf-schema-generator": "^1.
|
49
|
+
"@atlaskit/adf-schema-generator": "^1.37.0",
|
50
50
|
"@atlaskit/codemod-utils": "^4.2.4",
|
51
51
|
"@babel/cli": "^7.22.9",
|
52
52
|
"@babel/core": "^7.22.9",
|