@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.
Files changed (65) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/next-schema/full-schema.adf.js +3 -2
  3. package/dist/cjs/next-schema/generated/markTypes.js +23 -23
  4. package/dist/cjs/next-schema/generated/nodeTypes.js +135 -202
  5. package/dist/cjs/next-schema/groups/blockGroup.js +5 -1
  6. package/dist/cjs/next-schema/groups/inlineGroup.js +1 -3
  7. package/dist/cjs/next-schema/nodes/blockCard.js +7 -3
  8. package/dist/cjs/next-schema/nodes/codeBlock.js +2 -2
  9. package/dist/cjs/next-schema/nodes/inlineExtension.js +5 -1
  10. package/dist/cjs/next-schema/nodes/layoutColumn.js +2 -1
  11. package/dist/cjs/next-schema/nodes/media.js +2 -2
  12. package/dist/cjs/next-schema/nodes/mediaInline.js +29 -12
  13. package/dist/cjs/next-schema/nodes/mediaSingle.js +2 -1
  14. package/dist/cjs/next-schema/nodes/mention.js +2 -1
  15. package/dist/cjs/next-schema/nodes/placeholder.js +1 -0
  16. package/dist/cjs/next-schema/nodes/table.js +1 -0
  17. package/dist/cjs/next-schema/nodes/tableCell.js +2 -2
  18. package/dist/cjs/next-schema/nodes/tableHeader.js +2 -2
  19. package/dist/cjs/next-schema/nodes/tableRow.js +2 -1
  20. package/dist/es2019/next-schema/full-schema.adf.js +3 -2
  21. package/dist/es2019/next-schema/generated/markTypes.js +23 -23
  22. package/dist/es2019/next-schema/generated/nodeTypes.js +134 -201
  23. package/dist/es2019/next-schema/groups/blockGroup.js +5 -1
  24. package/dist/es2019/next-schema/groups/inlineGroup.js +1 -3
  25. package/dist/es2019/next-schema/nodes/blockCard.js +7 -3
  26. package/dist/es2019/next-schema/nodes/codeBlock.js +1 -1
  27. package/dist/es2019/next-schema/nodes/inlineExtension.js +5 -1
  28. package/dist/es2019/next-schema/nodes/layoutColumn.js +2 -1
  29. package/dist/es2019/next-schema/nodes/media.js +2 -2
  30. package/dist/es2019/next-schema/nodes/mediaInline.js +29 -12
  31. package/dist/es2019/next-schema/nodes/mediaSingle.js +2 -1
  32. package/dist/es2019/next-schema/nodes/mention.js +2 -1
  33. package/dist/es2019/next-schema/nodes/placeholder.js +1 -0
  34. package/dist/es2019/next-schema/nodes/table.js +1 -0
  35. package/dist/es2019/next-schema/nodes/tableCell.js +2 -2
  36. package/dist/es2019/next-schema/nodes/tableHeader.js +2 -2
  37. package/dist/es2019/next-schema/nodes/tableRow.js +2 -1
  38. package/dist/esm/next-schema/full-schema.adf.js +3 -2
  39. package/dist/esm/next-schema/generated/markTypes.js +23 -23
  40. package/dist/esm/next-schema/generated/nodeTypes.js +134 -201
  41. package/dist/esm/next-schema/groups/blockGroup.js +5 -1
  42. package/dist/esm/next-schema/groups/inlineGroup.js +1 -3
  43. package/dist/esm/next-schema/nodes/blockCard.js +7 -3
  44. package/dist/esm/next-schema/nodes/codeBlock.js +1 -1
  45. package/dist/esm/next-schema/nodes/inlineExtension.js +5 -1
  46. package/dist/esm/next-schema/nodes/layoutColumn.js +2 -1
  47. package/dist/esm/next-schema/nodes/media.js +2 -2
  48. package/dist/esm/next-schema/nodes/mediaInline.js +29 -12
  49. package/dist/esm/next-schema/nodes/mediaSingle.js +2 -1
  50. package/dist/esm/next-schema/nodes/mention.js +2 -1
  51. package/dist/esm/next-schema/nodes/placeholder.js +1 -0
  52. package/dist/esm/next-schema/nodes/table.js +1 -0
  53. package/dist/esm/next-schema/nodes/tableCell.js +2 -2
  54. package/dist/esm/next-schema/nodes/tableHeader.js +2 -2
  55. package/dist/esm/next-schema/nodes/tableRow.js +2 -1
  56. package/dist/types/next-schema/generated/markTypes.d.ts +36 -36
  57. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +4 -4
  58. package/dist/types/next-schema/generated/nodeTypes.d.ts +59 -120
  59. package/dist/types/next-schema/nodes/codeBlock.d.ts +1 -1
  60. package/dist/types/next-schema/nodes/inlineExtension.d.ts +2 -0
  61. package/package.json +1 -1
  62. package/schema-generators/__tests__/helpers/_utils.ts +123 -0
  63. package/schema-generators/__tests__/helpers/utils.unit.ts +66 -0
  64. package/schema-generators/__tests__/unit/json-full-schema.unit.ts +1142 -1231
  65. package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +162 -36
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 36.14.0
4
10
 
5
11
  ### 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, _nestedExpand.nestedExpand, _paragraph.paragraph, _unsupportedBlock.unsupportedBlock))]
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
  });