@atlaskit/adf-schema 36.10.0 → 36.10.2

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 (82) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/next-schema/marks/alignmentAndIndentation.js +1 -1
  3. package/dist/cjs/next-schema/marks/backgroundColor.js +8 -1
  4. package/dist/cjs/next-schema/marks/border.js +1 -0
  5. package/dist/cjs/next-schema/marks/dataConsumer.js +1 -2
  6. package/dist/cjs/next-schema/marks/fragment.js +1 -0
  7. package/dist/cjs/next-schema/marks/link.js +1 -1
  8. package/dist/cjs/next-schema/marks/textColor.js +2 -1
  9. package/dist/cjs/next-schema/nodes/blockCard.js +47 -21
  10. package/dist/cjs/next-schema/nodes/bodiedExtension.js +4 -1
  11. package/dist/cjs/next-schema/nodes/codeBlock.js +0 -4
  12. package/dist/cjs/next-schema/nodes/date.js +1 -0
  13. package/dist/cjs/next-schema/nodes/embedCard.js +3 -1
  14. package/dist/cjs/next-schema/nodes/extension.js +4 -1
  15. package/dist/cjs/next-schema/nodes/hardBreak.js +2 -1
  16. package/dist/cjs/next-schema/nodes/inlineCard.js +13 -10
  17. package/dist/cjs/next-schema/nodes/inlineExtension.js +3 -0
  18. package/dist/cjs/next-schema/nodes/media.js +98 -73
  19. package/dist/cjs/next-schema/nodes/mediaInline.js +6 -1
  20. package/dist/cjs/next-schema/nodes/mediaSingle.js +37 -18
  21. package/dist/cjs/next-schema/nodes/mention.js +3 -0
  22. package/dist/cjs/next-schema/nodes/panel.js +1 -1
  23. package/dist/cjs/next-schema/nodes/status.js +1 -0
  24. package/dist/cjs/next-schema/nodes/table.js +6 -1
  25. package/dist/cjs/next-schema/nodes/tableCell.js +1 -1
  26. package/dist/cjs/next-schema/nodes/tableHeader.js +1 -1
  27. package/dist/cjs/schema/nodes/block-card.js +1 -1
  28. package/dist/es2019/next-schema/marks/alignmentAndIndentation.js +1 -1
  29. package/dist/es2019/next-schema/marks/backgroundColor.js +8 -1
  30. package/dist/es2019/next-schema/marks/border.js +1 -0
  31. package/dist/es2019/next-schema/marks/dataConsumer.js +1 -2
  32. package/dist/es2019/next-schema/marks/fragment.js +1 -0
  33. package/dist/es2019/next-schema/marks/link.js +1 -1
  34. package/dist/es2019/next-schema/marks/textColor.js +2 -1
  35. package/dist/es2019/next-schema/nodes/blockCard.js +47 -21
  36. package/dist/es2019/next-schema/nodes/bodiedExtension.js +4 -1
  37. package/dist/es2019/next-schema/nodes/codeBlock.js +0 -4
  38. package/dist/es2019/next-schema/nodes/date.js +1 -0
  39. package/dist/es2019/next-schema/nodes/embedCard.js +3 -1
  40. package/dist/es2019/next-schema/nodes/extension.js +4 -1
  41. package/dist/es2019/next-schema/nodes/hardBreak.js +2 -1
  42. package/dist/es2019/next-schema/nodes/inlineCard.js +13 -10
  43. package/dist/es2019/next-schema/nodes/inlineExtension.js +3 -0
  44. package/dist/es2019/next-schema/nodes/media.js +98 -73
  45. package/dist/es2019/next-schema/nodes/mediaInline.js +6 -1
  46. package/dist/es2019/next-schema/nodes/mediaSingle.js +37 -18
  47. package/dist/es2019/next-schema/nodes/mention.js +3 -0
  48. package/dist/es2019/next-schema/nodes/panel.js +1 -1
  49. package/dist/es2019/next-schema/nodes/status.js +1 -0
  50. package/dist/es2019/next-schema/nodes/table.js +6 -1
  51. package/dist/es2019/next-schema/nodes/tableCell.js +1 -1
  52. package/dist/es2019/next-schema/nodes/tableHeader.js +1 -1
  53. package/dist/es2019/schema/nodes/block-card.js +1 -1
  54. package/dist/esm/next-schema/marks/alignmentAndIndentation.js +1 -1
  55. package/dist/esm/next-schema/marks/backgroundColor.js +8 -1
  56. package/dist/esm/next-schema/marks/border.js +1 -0
  57. package/dist/esm/next-schema/marks/dataConsumer.js +1 -2
  58. package/dist/esm/next-schema/marks/fragment.js +1 -0
  59. package/dist/esm/next-schema/marks/link.js +1 -1
  60. package/dist/esm/next-schema/marks/textColor.js +2 -1
  61. package/dist/esm/next-schema/nodes/blockCard.js +47 -21
  62. package/dist/esm/next-schema/nodes/bodiedExtension.js +4 -1
  63. package/dist/esm/next-schema/nodes/codeBlock.js +0 -4
  64. package/dist/esm/next-schema/nodes/date.js +1 -0
  65. package/dist/esm/next-schema/nodes/embedCard.js +3 -1
  66. package/dist/esm/next-schema/nodes/extension.js +4 -1
  67. package/dist/esm/next-schema/nodes/hardBreak.js +2 -1
  68. package/dist/esm/next-schema/nodes/inlineCard.js +13 -10
  69. package/dist/esm/next-schema/nodes/inlineExtension.js +3 -0
  70. package/dist/esm/next-schema/nodes/media.js +98 -73
  71. package/dist/esm/next-schema/nodes/mediaInline.js +6 -1
  72. package/dist/esm/next-schema/nodes/mediaSingle.js +37 -18
  73. package/dist/esm/next-schema/nodes/mention.js +3 -0
  74. package/dist/esm/next-schema/nodes/panel.js +1 -1
  75. package/dist/esm/next-schema/nodes/status.js +1 -0
  76. package/dist/esm/next-schema/nodes/table.js +6 -1
  77. package/dist/esm/next-schema/nodes/tableCell.js +1 -1
  78. package/dist/esm/next-schema/nodes/tableHeader.js +1 -1
  79. package/dist/esm/schema/nodes/block-card.js +1 -1
  80. package/package.json +2 -2
  81. package/schema-generators/__tests__/unit/jqueries.md +22 -0
  82. package/schema-generators/__tests__/unit/json-full-schema.unit.ts +698 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "36.10.0",
3
+ "version": "36.10.2",
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/"
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@atlassian/adf-schema-json": "^1.15.0",
48
- "@atlaskit/adf-schema-generator": "^1.7.5",
48
+ "@atlaskit/adf-schema-generator": "^1.7.6",
49
49
  "@babel/cli": "^7.22.9",
50
50
  "@babel/core": "^7.22.9",
51
51
  "@babel/plugin-proposal-class-properties": "^7.18.6",
@@ -53,3 +53,25 @@ A number of nodes have `marks` defined, yet the array is empty. Assuming this is
53
53
  .block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node,
54
54
  .bodiedExtension_node.properties.marks, .codeBlock_node.properties.marks, .expand_node.properties.marks, .heading_node.properties.marks, .inlineExtension_node.properties.marks, .text_node.properties.marks, .extension_node.properties.marks, .paragraph_node.properties.marks) else . end)'
55
55
  ```
56
+
57
+ Delete all subfields except for marks, attrs, anyOf, items, type and properties. Content objects are also deleted. Inline is also deleted, as it is a content object for paragraph.
58
+
59
+ A number of nodes have `marks` defined, yet the array is empty. Assuming this is redundant, I've removed them.
60
+
61
+ ```sh
62
+ cat packages/adf-schema/json-schema/v1/full.json | jq 'walk(if type == "object" then del(
63
+ .content, .text, .version, .required, .additionalProperties, .allOf, .minItems,
64
+ .block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node,
65
+ .bodiedExtension_node.properties.marks, .codeBlock_node.properties.marks, .expand_node.properties.marks, .heading_node.properties.marks, .inlineExtension_node.properties.marks, .text_node.properties.marks, .extension_node.properties.marks, .paragraph_node.properties.marks) else . end)'
66
+ ```
67
+
68
+ Delete all subfields except for text, marks, attrs, anyOf, items, type and properties. Content objects are also deleted. Inline is also deleted, as it is a content object for paragraph.
69
+
70
+ A number of nodes have `marks` defined, yet the array is empty. Assuming this is redundant, I've removed them.
71
+
72
+ ```sh
73
+ cat packages/adf-schema/json-schema/v1/full.json | jq 'walk(if type == "object" then del(
74
+ .content, .version, .required, .additionalProperties, .allOf, .minItems,
75
+ .block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node,
76
+ .bodiedExtension_node.properties.marks, .codeBlock_node.properties.marks, .expand_node.properties.marks, .heading_node.properties.marks, .inlineExtension_node.properties.marks, .text_node.properties.marks, .extension_node.properties.marks, .paragraph_node.properties.marks) else . end)'
77
+ ```