@atlaskit/adf-schema 36.8.2 → 36.8.3

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 36.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 3d6a62a: Add properties, marks, and mark array type
8
+
3
9
  ## 36.8.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "36.8.2",
3
+ "version": "36.8.3",
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/"
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@atlassian/adf-schema-json": "^1.15.0",
47
- "@atlaskit/adf-schema-generator": "^1.7.1",
47
+ "@atlaskit/adf-schema-generator": "^1.7.2",
48
48
  "@babel/cli": "^7.22.9",
49
49
  "@babel/core": "^7.22.9",
50
50
  "@babel/plugin-proposal-class-properties": "^7.18.6",
@@ -25,3 +25,20 @@ Delete all subfields except for type and properties. Content objects are also de
25
25
  ```sh
26
26
  cat packages/adf-schema/json-schema/v1/full.json | jq 'walk(if type == "object" then del(.content, .text, .marks, .attrs, .version, .required, .additionalProperties, .allOf, .anyOf, .items, .minItems, .block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node) else . end)'
27
27
  ```
28
+
29
+ Delete all subfields except for marks, type and properties. Content objects are also deleted. Inline is also deleted, as it is a content object for paragraph.
30
+
31
+ ```sh
32
+ cat packages/adf-schema/json-schema/v1/full.json | jq 'walk(if type == "object" then del(.content, .text, .attrs, .version, .required, .additionalProperties, .allOf, .anyOf, .items, .minItems, .block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node) else . end)'
33
+ ```
34
+
35
+ Delete all subfields except for marks, type and properties. Content objects are also deleted. Inline is also deleted, as it is a content object for paragraph.
36
+
37
+ A number of nodes have `marks` defined, yet the array is empty. Assuming this is redundant, I've removed them.
38
+
39
+ ```sh
40
+ cat packages/adf-schema/json-schema/v1/full.json | jq 'walk(if type == "object" then del(
41
+ .content, .text, .attrs, .version, .required, .additionalProperties, .allOf, .anyOf, .items, .minItems,
42
+ .block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node,
43
+ .bodiedExtension_node.properties.marks, .codeBlock_node.properties.marks, .expand_node.properties.marks, .heading_node.properties.marks, .inlineExtension_node.properties.marks, .text_node.properties.marks) else . end)'
44
+ ```
@@ -238,6 +238,9 @@ const jsonWithTypes = {
238
238
  type: {
239
239
  enum: ['media'],
240
240
  },
241
+ marks: {
242
+ type: 'array',
243
+ },
241
244
  },
242
245
  },
243
246
  mediaInline_node: {
@@ -246,6 +249,9 @@ const jsonWithTypes = {
246
249
  type: {
247
250
  enum: ['mediaInline'],
248
251
  },
252
+ marks: {
253
+ type: 'array',
254
+ },
249
255
  },
250
256
  },
251
257
  formatted_text_inline_node: {},
@@ -256,6 +262,9 @@ const jsonWithTypes = {
256
262
  type: {
257
263
  enum: ['paragraph'],
258
264
  },
265
+ marks: {
266
+ type: 'array',
267
+ },
259
268
  },
260
269
  },
261
270
  paragraph_with_no_marks_node: {},
@@ -275,6 +284,9 @@ const jsonWithTypes = {
275
284
  type: {
276
285
  enum: ['mediaSingle'],
277
286
  },
287
+ marks: {
288
+ type: 'array',
289
+ },
278
290
  },
279
291
  },
280
292
  mediaSingle_caption_node: {},
@@ -384,6 +396,9 @@ const jsonWithTypes = {
384
396
  type: {
385
397
  enum: ['extension'],
386
398
  },
399
+ marks: {
400
+ type: 'array',
401
+ },
387
402
  },
388
403
  },
389
404
  extension_with_marks_node: {},
@@ -410,6 +425,9 @@ const jsonWithTypes = {
410
425
  type: {
411
426
  enum: ['table'],
412
427
  },
428
+ marks: {
429
+ type: 'array',
430
+ },
413
431
  },
414
432
  },
415
433
  table_row_node: {
@@ -469,6 +487,9 @@ const jsonWithTypes = {
469
487
  type: {
470
488
  enum: ['layoutSection'],
471
489
  },
490
+ marks: {
491
+ type: 'array',
492
+ },
472
493
  },
473
494
  },
474
495
  layoutSection_full_node: {},