@atlaskit/adf-schema 46.0.0 → 46.2.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/index.js +6 -0
  3. package/dist/cjs/next-schema/generated/nodeTypes.js +15 -1
  4. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  5. package/dist/cjs/next-schema/nodes/expand.js +1 -9
  6. package/dist/cjs/next-schema/nodes/nestedExpand.js +16 -3
  7. package/dist/cjs/schema/default-schema.js +2 -1
  8. package/dist/cjs/schema/index.js +6 -0
  9. package/dist/cjs/schema/nodes/index.js +6 -0
  10. package/dist/cjs/schema/nodes/nested-expand.js +15 -8
  11. package/dist/cjs/schema/nodes/tableNodes.js +1 -1
  12. package/dist/cjs/validator-schema/generated/validatorSpec.js +28 -6
  13. package/dist/es2019/index.js +1 -1
  14. package/dist/es2019/next-schema/generated/nodeTypes.js +14 -0
  15. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  16. package/dist/es2019/next-schema/nodes/expand.js +1 -9
  17. package/dist/es2019/next-schema/nodes/nestedExpand.js +16 -3
  18. package/dist/es2019/schema/default-schema.js +3 -2
  19. package/dist/es2019/schema/index.js +1 -1
  20. package/dist/es2019/schema/nodes/index.js +1 -1
  21. package/dist/es2019/schema/nodes/nested-expand.js +15 -8
  22. package/dist/es2019/schema/nodes/tableNodes.js +1 -1
  23. package/dist/es2019/validator-schema/generated/validatorSpec.js +27 -5
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/next-schema/generated/nodeTypes.js +14 -0
  26. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  27. package/dist/esm/next-schema/nodes/expand.js +1 -9
  28. package/dist/esm/next-schema/nodes/nestedExpand.js +16 -3
  29. package/dist/esm/schema/default-schema.js +3 -2
  30. package/dist/esm/schema/index.js +1 -1
  31. package/dist/esm/schema/nodes/index.js +1 -1
  32. package/dist/esm/schema/nodes/nested-expand.js +15 -8
  33. package/dist/esm/schema/nodes/tableNodes.js +1 -1
  34. package/dist/esm/validator-schema/generated/validatorSpec.js +27 -5
  35. package/dist/json-schema/v1/full.json +3 -6
  36. package/dist/json-schema/v1/stage-0.json +85 -6
  37. package/dist/types/index.d.ts +1 -1
  38. package/dist/types/next-schema/generated/nodeTypes.d.ts +16 -6
  39. package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +6 -0
  40. package/dist/types/next-schema/nodes/nestedExpand.d.ts +7 -1
  41. package/dist/types/schema/index.d.ts +1 -1
  42. package/dist/types/schema/nodes/index.d.ts +1 -1
  43. package/dist/types/schema/nodes/nested-expand.d.ts +5 -0
  44. package/dist/types/validator-schema/generated/validatorSpec.d.ts +23 -1
  45. package/json-schema/v1/full.json +3 -6
  46. package/json-schema/v1/stage-0.json +85 -6
  47. package/package.json +3 -3
@@ -860,7 +860,7 @@
860
860
  }
861
861
  },
862
862
  "additionalProperties": false,
863
- "required": ["type", "content", "attrs"]
863
+ "required": ["type", "content"]
864
864
  },
865
865
  "expand_root_only_node": {
866
866
  "type": "object",
@@ -1348,13 +1348,10 @@
1348
1348
  },
1349
1349
  "minItems": 2,
1350
1350
  "maxItems": 3
1351
- },
1352
- "type": {
1353
- "enum": ["layoutSection"]
1354
1351
  }
1355
1352
  },
1356
- "required": ["type", "content"],
1357
- "additionalProperties": false
1353
+ "required": ["content"],
1354
+ "additionalProperties": true
1358
1355
  }
1359
1356
  ]
1360
1357
  },
@@ -884,6 +884,9 @@
884
884
  },
885
885
  {
886
886
  "$ref": "#/definitions/nestedExpand_with_no_marks_node"
887
+ },
888
+ {
889
+ "$ref": "#/definitions/nestedExpand_with_non_bodied_macros_node"
887
890
  }
888
891
  ]
889
892
  },
@@ -891,7 +894,7 @@
891
894
  }
892
895
  },
893
896
  "additionalProperties": false,
894
- "required": ["type", "content", "attrs"]
897
+ "required": ["type", "content"]
895
898
  },
896
899
  "expand_root_only_node": {
897
900
  "type": "object",
@@ -923,6 +926,9 @@
923
926
  },
924
927
  {
925
928
  "$ref": "#/definitions/nestedExpand_with_no_marks_node"
929
+ },
930
+ {
931
+ "$ref": "#/definitions/nestedExpand_with_non_bodied_macros_node"
926
932
  }
927
933
  ]
928
934
  },
@@ -1470,13 +1476,10 @@
1470
1476
  },
1471
1477
  "minItems": 2,
1472
1478
  "maxItems": 3
1473
- },
1474
- "type": {
1475
- "enum": ["layoutSection"]
1476
1479
  }
1477
1480
  },
1478
- "required": ["type", "content"],
1479
- "additionalProperties": false
1481
+ "required": ["content"],
1482
+ "additionalProperties": true
1480
1483
  }
1481
1484
  ]
1482
1485
  },
@@ -2132,6 +2135,79 @@
2132
2135
  }
2133
2136
  ]
2134
2137
  },
2138
+ "nestedExpand_with_non_bodied_macros_node": {
2139
+ "type": "object",
2140
+ "properties": {
2141
+ "type": {
2142
+ "enum": ["nestedExpand"]
2143
+ },
2144
+ "marks": {
2145
+ "type": "array",
2146
+ "maxItems": 0
2147
+ },
2148
+ "attrs": {
2149
+ "type": "object",
2150
+ "properties": {
2151
+ "title": {
2152
+ "type": "string"
2153
+ }
2154
+ },
2155
+ "additionalProperties": false
2156
+ },
2157
+ "content": {
2158
+ "type": "array",
2159
+ "items": {
2160
+ "anyOf": [
2161
+ {
2162
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
2163
+ },
2164
+ {
2165
+ "$ref": "#/definitions/heading_with_no_marks_node"
2166
+ },
2167
+ {
2168
+ "$ref": "#/definitions/mediaSingle_caption_node"
2169
+ },
2170
+ {
2171
+ "$ref": "#/definitions/mediaSingle_full_node"
2172
+ },
2173
+ {
2174
+ "$ref": "#/definitions/mediaGroup_node"
2175
+ },
2176
+ {
2177
+ "$ref": "#/definitions/codeBlock_node"
2178
+ },
2179
+ {
2180
+ "$ref": "#/definitions/bulletList_node"
2181
+ },
2182
+ {
2183
+ "$ref": "#/definitions/orderedList_node"
2184
+ },
2185
+ {
2186
+ "$ref": "#/definitions/taskList_node"
2187
+ },
2188
+ {
2189
+ "$ref": "#/definitions/decisionList_node"
2190
+ },
2191
+ {
2192
+ "$ref": "#/definitions/rule_node"
2193
+ },
2194
+ {
2195
+ "$ref": "#/definitions/panel_node"
2196
+ },
2197
+ {
2198
+ "$ref": "#/definitions/blockquote_node"
2199
+ },
2200
+ {
2201
+ "$ref": "#/definitions/extension_with_marks_node"
2202
+ }
2203
+ ]
2204
+ },
2205
+ "minItems": 1
2206
+ }
2207
+ },
2208
+ "additionalProperties": false,
2209
+ "required": ["type", "content"]
2210
+ },
2135
2211
  "non_nestable_block_content": {
2136
2212
  "anyOf": [
2137
2213
  {
@@ -2644,6 +2720,9 @@
2644
2720
  },
2645
2721
  {
2646
2722
  "$ref": "#/definitions/nestedExpand_with_no_marks_node"
2723
+ },
2724
+ {
2725
+ "$ref": "#/definitions/nestedExpand_with_non_bodied_macros_node"
2647
2726
  }
2648
2727
  ]
2649
2728
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "46.0.0",
3
+ "version": "46.2.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/"
@@ -45,8 +45,8 @@
45
45
  "memoize-one": "^6.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@atlassian/adf-schema-json": "^1.24.0",
49
- "@atlaskit/adf-schema-generator": "^2.0.0",
48
+ "@atlassian/adf-schema-json": "^1.25.0",
49
+ "@atlaskit/adf-schema-generator": "^2.1.0",
50
50
  "@atlaskit/codemod-utils": "^4.2.4",
51
51
  "@babel/cli": "^7.22.9",
52
52
  "@babel/core": "^7.22.9",