@atlaskit/adf-schema 42.3.0 → 42.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 +13 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +6 -1
- package/dist/cjs/next-schema/nodes/layoutSection.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +6 -1
- package/dist/es2019/next-schema/nodes/layoutSection.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +6 -1
- package/dist/esm/next-schema/nodes/layoutSection.js +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +1 -1
- package/dist/types/next-schema/nodes/layoutSection.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 42.4.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- 6114d78: add attr.text to hr, in order to match it with json schema spec
|
8
|
+
- 844e6bd: Filter out empty content groups in json and validator spec and improve min and max item calculation
|
9
|
+
|
10
|
+
## 42.3.1
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- dfa64c8: Add override for pm.spec to ensure unsupportedBlock is correct for layoutSection_single_column
|
15
|
+
|
3
16
|
## 42.3.0
|
4
17
|
|
5
18
|
### Minor Changes
|
@@ -397,6 +397,11 @@ var extensionFrameStage0 = exports.extensionFrameStage0 = (0, _createPMSpecFacto
|
|
397
397
|
var hardBreak = exports.hardBreak = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
398
398
|
group: 'inline',
|
399
399
|
inline: true,
|
400
|
+
attrs: {
|
401
|
+
text: {
|
402
|
+
default: '\n'
|
403
|
+
}
|
404
|
+
},
|
400
405
|
selectable: false,
|
401
406
|
linebreakReplacement: true
|
402
407
|
});
|
@@ -563,7 +568,7 @@ var layoutSectionFull = exports.layoutSectionFull = (0, _createPMSpecFactory.cre
|
|
563
568
|
isolating: true
|
564
569
|
});
|
565
570
|
var layoutSectionWithSingleColumnStage0 = exports.layoutSectionWithSingleColumnStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
566
|
-
content: '(layoutColumn | unsupportedBlock){1,5}',
|
571
|
+
content: '(layoutColumn | unsupportedBlock){1,5} unsupportedBlock*',
|
567
572
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
568
573
|
attrs: {
|
569
574
|
columnRuleStyle: {
|
@@ -30,7 +30,7 @@ var layoutSection = exports.layoutSection = (0, _adfSchemaGenerator.adfNode)('la
|
|
30
30
|
}
|
31
31
|
}).variant('with_single_column', {
|
32
32
|
stage0: true,
|
33
|
-
content: [(0, _adfSchemaGenerator.$range)(1, 5, (0, _adfSchemaGenerator.$or)(_layoutColumn.layoutColumn, _unsupportedBlock.unsupportedBlock))],
|
33
|
+
content: [(0, _adfSchemaGenerator.$range)(1, 5, (0, _adfSchemaGenerator.$or)(_layoutColumn.layoutColumn, _unsupportedBlock.unsupportedBlock)), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_unsupportedBlock.unsupportedBlock))],
|
34
34
|
ignore: [],
|
35
35
|
attrs: {
|
36
36
|
columnRuleStyle: {
|
@@ -391,6 +391,11 @@ export const extensionFrameStage0 = createPMNodeSpecFactory({
|
|
391
391
|
export const hardBreak = createPMNodeSpecFactory({
|
392
392
|
group: 'inline',
|
393
393
|
inline: true,
|
394
|
+
attrs: {
|
395
|
+
text: {
|
396
|
+
default: '\n'
|
397
|
+
}
|
398
|
+
},
|
394
399
|
selectable: false,
|
395
400
|
linebreakReplacement: true
|
396
401
|
});
|
@@ -557,7 +562,7 @@ export const layoutSectionFull = createPMNodeSpecFactory({
|
|
557
562
|
isolating: true
|
558
563
|
});
|
559
564
|
export const layoutSectionWithSingleColumnStage0 = createPMNodeSpecFactory({
|
560
|
-
content: '(layoutColumn | unsupportedBlock){1,5}',
|
565
|
+
content: '(layoutColumn | unsupportedBlock){1,5} unsupportedBlock*',
|
561
566
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
562
567
|
attrs: {
|
563
568
|
columnRuleStyle: {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { $or, $range, adfNode } from '@atlaskit/adf-schema-generator';
|
1
|
+
import { $or, $range, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
|
2
2
|
import { breakout } from '../marks/breakout';
|
3
3
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
4
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
@@ -24,7 +24,7 @@ export const layoutSection = adfNode('layoutSection').define({
|
|
24
24
|
}
|
25
25
|
}).variant('with_single_column', {
|
26
26
|
stage0: true,
|
27
|
-
content: [$range(1, 5, $or(layoutColumn, unsupportedBlock))],
|
27
|
+
content: [$range(1, 5, $or(layoutColumn, unsupportedBlock)), $zeroPlus($or(unsupportedBlock))],
|
28
28
|
ignore: [],
|
29
29
|
attrs: {
|
30
30
|
columnRuleStyle: {
|
@@ -391,6 +391,11 @@ export var extensionFrameStage0 = createPMNodeSpecFactory({
|
|
391
391
|
export var hardBreak = createPMNodeSpecFactory({
|
392
392
|
group: 'inline',
|
393
393
|
inline: true,
|
394
|
+
attrs: {
|
395
|
+
text: {
|
396
|
+
default: '\n'
|
397
|
+
}
|
398
|
+
},
|
394
399
|
selectable: false,
|
395
400
|
linebreakReplacement: true
|
396
401
|
});
|
@@ -557,7 +562,7 @@ export var layoutSectionFull = createPMNodeSpecFactory({
|
|
557
562
|
isolating: true
|
558
563
|
});
|
559
564
|
export var layoutSectionWithSingleColumnStage0 = createPMNodeSpecFactory({
|
560
|
-
content: '(layoutColumn | unsupportedBlock){1,5}',
|
565
|
+
content: '(layoutColumn | unsupportedBlock){1,5} unsupportedBlock*',
|
561
566
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
562
567
|
attrs: {
|
563
568
|
columnRuleStyle: {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { $or, $range, adfNode } from '@atlaskit/adf-schema-generator';
|
1
|
+
import { $or, $range, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
|
2
2
|
import { breakout } from '../marks/breakout';
|
3
3
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
4
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
@@ -24,7 +24,7 @@ export var layoutSection = adfNode('layoutSection').define({
|
|
24
24
|
}
|
25
25
|
}).variant('with_single_column', {
|
26
26
|
stage0: true,
|
27
|
-
content: [$range(1, 5, $or(layoutColumn, unsupportedBlock))],
|
27
|
+
content: [$range(1, 5, $or(layoutColumn, unsupportedBlock)), $zeroPlus($or(unsupportedBlock))],
|
28
28
|
ignore: [],
|
29
29
|
attrs: {
|
30
30
|
columnRuleStyle: {
|
@@ -419,7 +419,7 @@ export type LayoutSectionFullNode = PMNode & LayoutSectionFullDefinition;
|
|
419
419
|
export declare const layoutSectionFull: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<LayoutSectionFullNode>) => import("prosemirror-model").NodeSpec;
|
420
420
|
export interface LayoutSectionWithSingleColumnStage0Definition {
|
421
421
|
type: 'layoutSection';
|
422
|
-
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition>;
|
422
|
+
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
423
423
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
424
424
|
attrs: {
|
425
425
|
columnRuleStyle?: 'solid';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export declare const layoutSection: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_single_column", "full"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
2
2
|
stage0: true;
|
3
|
-
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentRangeSpec[];
|
3
|
+
content: (import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentZeroOrMoreSpec | import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentRangeSpec)[];
|
4
4
|
ignore: any[];
|
5
5
|
attrs: {
|
6
6
|
columnRuleStyle: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "42.
|
3
|
+
"version": "42.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.22.0",
|
49
|
-
"@atlaskit/adf-schema-generator": "^1.
|
49
|
+
"@atlaskit/adf-schema-generator": "^1.34.0",
|
50
50
|
"@atlaskit/codemod-utils": "^4.2.4",
|
51
51
|
"@babel/cli": "^7.22.9",
|
52
52
|
"@babel/core": "^7.22.9",
|