@atlaskit/adf-schema 36.14.0 → 36.14.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 +6 -0
- package/dist/cjs/next-schema/full-schema.adf.js +3 -2
- package/dist/cjs/next-schema/generated/markTypes.js +23 -23
- package/dist/cjs/next-schema/generated/nodeTypes.js +135 -202
- package/dist/cjs/next-schema/groups/blockGroup.js +5 -1
- package/dist/cjs/next-schema/groups/inlineGroup.js +1 -3
- package/dist/cjs/next-schema/nodes/blockCard.js +7 -3
- package/dist/cjs/next-schema/nodes/codeBlock.js +2 -2
- package/dist/cjs/next-schema/nodes/inlineExtension.js +5 -1
- package/dist/cjs/next-schema/nodes/layoutColumn.js +2 -1
- package/dist/cjs/next-schema/nodes/media.js +2 -2
- package/dist/cjs/next-schema/nodes/mediaInline.js +29 -12
- package/dist/cjs/next-schema/nodes/mediaSingle.js +2 -1
- package/dist/cjs/next-schema/nodes/mention.js +2 -1
- package/dist/cjs/next-schema/nodes/placeholder.js +1 -0
- package/dist/cjs/next-schema/nodes/table.js +1 -0
- package/dist/cjs/next-schema/nodes/tableCell.js +2 -2
- package/dist/cjs/next-schema/nodes/tableHeader.js +2 -2
- package/dist/cjs/next-schema/nodes/tableRow.js +2 -1
- package/dist/es2019/next-schema/full-schema.adf.js +3 -2
- package/dist/es2019/next-schema/generated/markTypes.js +23 -23
- package/dist/es2019/next-schema/generated/nodeTypes.js +134 -201
- package/dist/es2019/next-schema/groups/blockGroup.js +5 -1
- package/dist/es2019/next-schema/groups/inlineGroup.js +1 -3
- package/dist/es2019/next-schema/nodes/blockCard.js +7 -3
- package/dist/es2019/next-schema/nodes/codeBlock.js +1 -1
- package/dist/es2019/next-schema/nodes/inlineExtension.js +5 -1
- package/dist/es2019/next-schema/nodes/layoutColumn.js +2 -1
- package/dist/es2019/next-schema/nodes/media.js +2 -2
- package/dist/es2019/next-schema/nodes/mediaInline.js +29 -12
- package/dist/es2019/next-schema/nodes/mediaSingle.js +2 -1
- package/dist/es2019/next-schema/nodes/mention.js +2 -1
- package/dist/es2019/next-schema/nodes/placeholder.js +1 -0
- package/dist/es2019/next-schema/nodes/table.js +1 -0
- package/dist/es2019/next-schema/nodes/tableCell.js +2 -2
- package/dist/es2019/next-schema/nodes/tableHeader.js +2 -2
- package/dist/es2019/next-schema/nodes/tableRow.js +2 -1
- package/dist/esm/next-schema/full-schema.adf.js +3 -2
- package/dist/esm/next-schema/generated/markTypes.js +23 -23
- package/dist/esm/next-schema/generated/nodeTypes.js +134 -201
- package/dist/esm/next-schema/groups/blockGroup.js +5 -1
- package/dist/esm/next-schema/groups/inlineGroup.js +1 -3
- package/dist/esm/next-schema/nodes/blockCard.js +7 -3
- package/dist/esm/next-schema/nodes/codeBlock.js +1 -1
- package/dist/esm/next-schema/nodes/inlineExtension.js +5 -1
- package/dist/esm/next-schema/nodes/layoutColumn.js +2 -1
- package/dist/esm/next-schema/nodes/media.js +2 -2
- package/dist/esm/next-schema/nodes/mediaInline.js +29 -12
- package/dist/esm/next-schema/nodes/mediaSingle.js +2 -1
- package/dist/esm/next-schema/nodes/mention.js +2 -1
- package/dist/esm/next-schema/nodes/placeholder.js +1 -0
- package/dist/esm/next-schema/nodes/table.js +1 -0
- package/dist/esm/next-schema/nodes/tableCell.js +2 -2
- package/dist/esm/next-schema/nodes/tableHeader.js +2 -2
- package/dist/esm/next-schema/nodes/tableRow.js +2 -1
- package/dist/types/next-schema/generated/markTypes.d.ts +36 -36
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +4 -4
- package/dist/types/next-schema/generated/nodeTypes.d.ts +59 -120
- package/dist/types/next-schema/nodes/codeBlock.d.ts +1 -1
- package/dist/types/next-schema/nodes/inlineExtension.d.ts +2 -0
- package/package.json +1 -1
- package/schema-generators/__tests__/helpers/_utils.ts +123 -0
- package/schema-generators/__tests__/helpers/utils.unit.ts +66 -0
- package/schema-generators/__tests__/unit/json-full-schema.unit.ts +1142 -1231
- package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +162 -36
package/CHANGELOG.md
CHANGED
@@ -8,12 +8,13 @@ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
|
8
8
|
var _blockGroup = require("./groups/blockGroup");
|
9
9
|
var _layoutSection = require("./nodes/layoutSection");
|
10
10
|
var _blockRootOnlyGroup = require("./groups/blockRootOnlyGroup");
|
11
|
-
var _nestedExpand = require("./nodes/nestedExpand");
|
12
11
|
var _paragraph = require("./nodes/paragraph");
|
12
|
+
var _expand = require("./nodes/expand");
|
13
|
+
var _codeBlock = require("./nodes/codeBlock");
|
13
14
|
var _unsupportedBlock = require("./nodes/unsupportedBlock");
|
14
15
|
var doc = (0, _adfSchemaGenerator.adfNode)('doc').define({
|
15
16
|
root: true,
|
16
17
|
version: 1,
|
17
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _layoutSection.layoutSection, _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup,
|
18
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _layoutSection.layoutSection, _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup, _expand.expand.use('with_breakout_mark'), _codeBlock.codeBlock.use('with_no_marks'), _codeBlock.codeBlock.use('with_marks'), _paragraph.paragraph.use('with_indentation'), _unsupportedBlock.unsupportedBlock))]
|
18
19
|
});
|
19
20
|
var _default = exports.default = doc;
|
@@ -22,15 +22,6 @@ var unsupportedMark = exports.unsupportedMark = (0, _adfSchemaGenerator.createPM
|
|
22
22
|
}
|
23
23
|
}
|
24
24
|
});
|
25
|
-
var breakout = exports.breakout = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
26
|
-
attrs: {
|
27
|
-
mode: {
|
28
|
-
default: 'wide'
|
29
|
-
}
|
30
|
-
},
|
31
|
-
inclusive: false,
|
32
|
-
spanning: false
|
33
|
-
});
|
34
25
|
var link = exports.link = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
35
26
|
attrs: {
|
36
27
|
href: {},
|
@@ -109,20 +100,6 @@ var code = exports.code = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
|
109
100
|
inclusive: true,
|
110
101
|
excludes: 'fontStyle link searchQuery color'
|
111
102
|
});
|
112
|
-
var alignment = exports.alignment = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
113
|
-
attrs: {
|
114
|
-
align: {}
|
115
|
-
},
|
116
|
-
excludes: 'alignment indentation',
|
117
|
-
group: 'alignment'
|
118
|
-
});
|
119
|
-
var indentation = exports.indentation = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
120
|
-
attrs: {
|
121
|
-
level: {}
|
122
|
-
},
|
123
|
-
excludes: 'indentation alignment',
|
124
|
-
group: 'indentation'
|
125
|
-
});
|
126
103
|
var dataConsumer = exports.dataConsumer = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
127
104
|
attrs: {
|
128
105
|
sources: {
|
@@ -140,4 +117,27 @@ var fragment = exports.fragment = (0, _adfSchemaGenerator.createPMMarkSpecFactor
|
|
140
117
|
}
|
141
118
|
},
|
142
119
|
inclusive: false
|
120
|
+
});
|
121
|
+
var alignment = exports.alignment = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
122
|
+
attrs: {
|
123
|
+
align: {}
|
124
|
+
},
|
125
|
+
excludes: 'alignment indentation',
|
126
|
+
group: 'alignment'
|
127
|
+
});
|
128
|
+
var indentation = exports.indentation = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
129
|
+
attrs: {
|
130
|
+
level: {}
|
131
|
+
},
|
132
|
+
excludes: 'indentation alignment',
|
133
|
+
group: 'indentation'
|
134
|
+
});
|
135
|
+
var breakout = exports.breakout = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
136
|
+
attrs: {
|
137
|
+
mode: {
|
138
|
+
default: 'wide'
|
139
|
+
}
|
140
|
+
},
|
141
|
+
inclusive: false,
|
142
|
+
spanning: false
|
143
143
|
});
|