@atlaskit/adf-schema 36.13.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 +12 -0
- package/dist/cjs/next-schema/full-schema.adf.js +3 -2
- package/dist/cjs/next-schema/generated/markTypes.js +38 -21
- package/dist/cjs/next-schema/generated/nodeTypes.js +210 -226
- 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 +37 -20
- package/dist/es2019/next-schema/generated/nodeTypes.js +209 -225
- 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 +37 -20
- package/dist/esm/next-schema/generated/nodeTypes.js +209 -225
- 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 +56 -33
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +4 -4
- package/dist/types/next-schema/generated/nodeTypes.d.ts +165 -156
- 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 +2 -2
- 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
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 36.14.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 32308a7: add test to validate generated nodeSpec from ADF DSL
|
8
|
+
|
9
|
+
## 36.14.0
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- 8df4b1b: Sync generated Pm Spec files
|
14
|
+
|
3
15
|
## 36.13.0
|
4
16
|
|
5
17
|
### Minor Changes
|
@@ -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;
|
@@ -3,16 +3,24 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.underline = exports.textColor = exports.subsup = exports.strong = exports.strike = exports.link = exports.indentation = exports.fragment = exports.em = exports.dataConsumer = exports.code = exports.breakout = exports.border = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
|
6
|
+
exports.unsupportedNodeAttribute = exports.unsupportedMark = exports.underline = exports.textColor = exports.subsup = exports.strong = exports.strike = exports.link = exports.indentation = exports.fragment = exports.em = exports.dataConsumer = exports.code = exports.breakout = exports.border = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
-
var
|
8
|
+
var unsupportedNodeAttribute = exports.unsupportedNodeAttribute = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
9
9
|
attrs: {
|
10
|
-
|
11
|
-
default:
|
10
|
+
type: {
|
11
|
+
default: null
|
12
|
+
},
|
13
|
+
unsupported: {
|
14
|
+
default: {}
|
12
15
|
}
|
13
|
-
}
|
14
|
-
|
15
|
-
|
16
|
+
}
|
17
|
+
});
|
18
|
+
var unsupportedMark = exports.unsupportedMark = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
19
|
+
attrs: {
|
20
|
+
originalValue: {
|
21
|
+
default: {}
|
22
|
+
}
|
23
|
+
}
|
16
24
|
});
|
17
25
|
var link = exports.link = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
18
26
|
attrs: {
|
@@ -92,20 +100,6 @@ var code = exports.code = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
|
92
100
|
inclusive: true,
|
93
101
|
excludes: 'fontStyle link searchQuery color'
|
94
102
|
});
|
95
|
-
var alignment = exports.alignment = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
96
|
-
attrs: {
|
97
|
-
align: {}
|
98
|
-
},
|
99
|
-
excludes: 'alignment indentation',
|
100
|
-
group: 'alignment'
|
101
|
-
});
|
102
|
-
var indentation = exports.indentation = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
103
|
-
attrs: {
|
104
|
-
level: {}
|
105
|
-
},
|
106
|
-
excludes: 'indentation alignment',
|
107
|
-
group: 'indentation'
|
108
|
-
});
|
109
103
|
var dataConsumer = exports.dataConsumer = (0, _adfSchemaGenerator.createPMMarkSpecFactory)({
|
110
104
|
attrs: {
|
111
105
|
sources: {
|
@@ -123,4 +117,27 @@ var fragment = exports.fragment = (0, _adfSchemaGenerator.createPMMarkSpecFactor
|
|
123
117
|
}
|
124
118
|
},
|
125
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
|
126
143
|
});
|