@atlaskit/adf-schema 57.5.4 → 57.6.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 (56) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/next-schema/full-schema.adf.js +1 -1
  3. package/dist/cjs/next-schema/generated/nodeTypes.js +66 -17
  4. package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
  5. package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
  6. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  7. package/dist/cjs/next-schema/nodes/blockquote.js +1 -1
  8. package/dist/cjs/next-schema/nodes/expand.js +2 -1
  9. package/dist/cjs/next-schema/nodes/extension.js +8 -0
  10. package/dist/cjs/next-schema/nodes/list.js +1 -1
  11. package/dist/cjs/next-schema/nodes/nestedExpand.js +1 -1
  12. package/dist/cjs/next-schema/nodes/panel.js +3 -3
  13. package/dist/cjs/next-schema/nodes/task.js +1 -1
  14. package/dist/cjs/schema/default-schema.js +3 -1
  15. package/dist/cjs/schema/nodes/extension.js +15 -1
  16. package/dist/cjs/validator-schema/generated/validatorSpec.js +39 -15
  17. package/dist/es2019/next-schema/full-schema.adf.js +1 -1
  18. package/dist/es2019/next-schema/generated/nodeTypes.js +65 -16
  19. package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
  20. package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
  21. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  22. package/dist/es2019/next-schema/nodes/blockquote.js +1 -1
  23. package/dist/es2019/next-schema/nodes/expand.js +2 -1
  24. package/dist/es2019/next-schema/nodes/extension.js +8 -0
  25. package/dist/es2019/next-schema/nodes/list.js +1 -1
  26. package/dist/es2019/next-schema/nodes/nestedExpand.js +1 -1
  27. package/dist/es2019/next-schema/nodes/panel.js +3 -3
  28. package/dist/es2019/next-schema/nodes/task.js +1 -1
  29. package/dist/es2019/schema/default-schema.js +3 -1
  30. package/dist/es2019/schema/nodes/extension.js +16 -0
  31. package/dist/es2019/validator-schema/generated/validatorSpec.js +37 -13
  32. package/dist/esm/next-schema/full-schema.adf.js +1 -1
  33. package/dist/esm/next-schema/generated/nodeTypes.js +65 -16
  34. package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
  35. package/dist/esm/next-schema/groups/blockGroup.js +1 -1
  36. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  37. package/dist/esm/next-schema/nodes/blockquote.js +1 -1
  38. package/dist/esm/next-schema/nodes/expand.js +2 -1
  39. package/dist/esm/next-schema/nodes/extension.js +8 -0
  40. package/dist/esm/next-schema/nodes/list.js +1 -1
  41. package/dist/esm/next-schema/nodes/nestedExpand.js +1 -1
  42. package/dist/esm/next-schema/nodes/panel.js +3 -3
  43. package/dist/esm/next-schema/nodes/task.js +1 -1
  44. package/dist/esm/schema/default-schema.js +3 -1
  45. package/dist/esm/schema/nodes/extension.js +14 -0
  46. package/dist/esm/validator-schema/generated/validatorSpec.js +37 -13
  47. package/dist/json-schema/v1/stage-0.json +106 -0
  48. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
  49. package/dist/types/next-schema/generated/nodeTypes.d.ts +43 -15
  50. package/dist/types/next-schema/nodes/extension.d.ts +3 -1
  51. package/dist/types/schema/nodes/doc.d.ts +2 -2
  52. package/dist/types/schema/nodes/extension.d.ts +11 -0
  53. package/dist/types/validator-schema/generated/validatorSpec.d.ts +24 -0
  54. package/json-schema/v1/stage-0.json +106 -0
  55. package/package.json +6 -2
  56. package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -0
@@ -787,6 +787,30 @@ export declare const extension_root_only: (string | {
787
787
  };
788
788
  };
789
789
  })[];
790
+ export declare const extension_root_only_with_annotation: (string | {
791
+ meta: {
792
+ stage0: boolean;
793
+ };
794
+ props: {
795
+ marks: {
796
+ items: string[][];
797
+ optional: boolean;
798
+ type: string;
799
+ };
800
+ };
801
+ })[];
802
+ export declare const extension_with_annotation: (string | {
803
+ meta: {
804
+ stage0: boolean;
805
+ };
806
+ props: {
807
+ marks: {
808
+ items: string[][];
809
+ optional: boolean;
810
+ type: string;
811
+ };
812
+ };
813
+ })[];
790
814
  export declare const extension_with_marks: (string | {
791
815
  props: {
792
816
  marks: {
@@ -132,6 +132,9 @@
132
132
  {
133
133
  "$ref": "#/definitions/extension_with_marks_node"
134
134
  },
135
+ {
136
+ "$ref": "#/definitions/extension_with_annotation_node"
137
+ },
135
138
  {
136
139
  "$ref": "#/definitions/embedCard_node"
137
140
  },
@@ -279,6 +282,9 @@
279
282
  },
280
283
  {
281
284
  "$ref": "#/definitions/extension_with_marks_node"
285
+ },
286
+ {
287
+ "$ref": "#/definitions/extension_with_annotation_node"
282
288
  }
283
289
  ]
284
290
  },
@@ -320,6 +326,9 @@
320
326
  },
321
327
  {
322
328
  "$ref": "#/definitions/extension_with_marks_node"
329
+ },
330
+ {
331
+ "$ref": "#/definitions/extension_with_annotation_node"
323
332
  }
324
333
  ]
325
334
  },
@@ -333,6 +342,9 @@
333
342
  },
334
343
  {
335
344
  "$ref": "#/definitions/extension_with_marks_node"
345
+ },
346
+ {
347
+ "$ref": "#/definitions/extension_with_annotation_node"
336
348
  }
337
349
  ]
338
350
  }
@@ -1100,6 +1112,9 @@
1100
1112
  {
1101
1113
  "$ref": "#/definitions/extension_with_marks_node"
1102
1114
  },
1115
+ {
1116
+ "$ref": "#/definitions/extension_with_annotation_node"
1117
+ },
1103
1118
  {
1104
1119
  "$ref": "#/definitions/heading_with_indentation_node"
1105
1120
  },
@@ -1157,6 +1172,9 @@
1157
1172
  {
1158
1173
  "$ref": "#/definitions/extension_root_only_node"
1159
1174
  },
1175
+ {
1176
+ "$ref": "#/definitions/extension_root_only_with_annotation_node"
1177
+ },
1160
1178
  {
1161
1179
  "$ref": "#/definitions/bodiedExtension_root_only_node"
1162
1180
  },
@@ -1310,6 +1328,9 @@
1310
1328
  {
1311
1329
  "$ref": "#/definitions/non_nestable_block_content"
1312
1330
  },
1331
+ {
1332
+ "$ref": "#/definitions/extension_with_annotation_node"
1333
+ },
1313
1334
  {
1314
1335
  "$ref": "#/definitions/nestedExpand_with_no_marks_node"
1315
1336
  }
@@ -1352,6 +1373,9 @@
1352
1373
  {
1353
1374
  "$ref": "#/definitions/non_nestable_block_content"
1354
1375
  },
1376
+ {
1377
+ "$ref": "#/definitions/extension_with_annotation_node"
1378
+ },
1355
1379
  {
1356
1380
  "$ref": "#/definitions/nestedExpand_with_no_marks_node"
1357
1381
  }
@@ -1431,6 +1455,67 @@
1431
1455
  }
1432
1456
  ]
1433
1457
  },
1458
+ "extension_root_only_with_annotation_node": {
1459
+ "allOf": [
1460
+ {
1461
+ "$ref": "#/definitions/extension_node"
1462
+ },
1463
+ {
1464
+ "type": "object",
1465
+ "properties": {
1466
+ "marks": {
1467
+ "type": "array",
1468
+ "items": {
1469
+ "anyOf": [
1470
+ {
1471
+ "$ref": "#/definitions/annotation_mark"
1472
+ },
1473
+ {
1474
+ "$ref": "#/definitions/breakout_mark"
1475
+ },
1476
+ {
1477
+ "$ref": "#/definitions/dataConsumer_mark"
1478
+ },
1479
+ {
1480
+ "$ref": "#/definitions/fragment_mark"
1481
+ }
1482
+ ]
1483
+ }
1484
+ }
1485
+ },
1486
+ "additionalProperties": true
1487
+ }
1488
+ ]
1489
+ },
1490
+ "extension_with_annotation_node": {
1491
+ "allOf": [
1492
+ {
1493
+ "$ref": "#/definitions/extension_node"
1494
+ },
1495
+ {
1496
+ "type": "object",
1497
+ "properties": {
1498
+ "marks": {
1499
+ "type": "array",
1500
+ "items": {
1501
+ "anyOf": [
1502
+ {
1503
+ "$ref": "#/definitions/annotation_mark"
1504
+ },
1505
+ {
1506
+ "$ref": "#/definitions/dataConsumer_mark"
1507
+ },
1508
+ {
1509
+ "$ref": "#/definitions/fragment_mark"
1510
+ }
1511
+ ]
1512
+ }
1513
+ }
1514
+ },
1515
+ "additionalProperties": true
1516
+ }
1517
+ ]
1518
+ },
1434
1519
  "extension_with_marks_node": {
1435
1520
  "allOf": [
1436
1521
  {
@@ -2132,6 +2217,9 @@
2132
2217
  },
2133
2218
  {
2134
2219
  "$ref": "#/definitions/extension_with_marks_node"
2220
+ },
2221
+ {
2222
+ "$ref": "#/definitions/extension_with_annotation_node"
2135
2223
  }
2136
2224
  ]
2137
2225
  },
@@ -2625,6 +2713,9 @@
2625
2713
  },
2626
2714
  {
2627
2715
  "$ref": "#/definitions/extension_with_marks_node"
2716
+ },
2717
+ {
2718
+ "$ref": "#/definitions/extension_with_annotation_node"
2628
2719
  }
2629
2720
  ]
2630
2721
  },
@@ -2857,6 +2948,9 @@
2857
2948
  {
2858
2949
  "$ref": "#/definitions/extension_with_marks_node"
2859
2950
  },
2951
+ {
2952
+ "$ref": "#/definitions/extension_with_annotation_node"
2953
+ },
2860
2954
  {
2861
2955
  "$ref": "#/definitions/table_node"
2862
2956
  }
@@ -2965,6 +3059,9 @@
2965
3059
  {
2966
3060
  "$ref": "#/definitions/extension_with_marks_node"
2967
3061
  },
3062
+ {
3063
+ "$ref": "#/definitions/extension_with_annotation_node"
3064
+ },
2968
3065
  {
2969
3066
  "$ref": "#/definitions/table_node"
2970
3067
  }
@@ -3066,6 +3163,9 @@
3066
3163
  },
3067
3164
  {
3068
3165
  "$ref": "#/definitions/extension_with_marks_node"
3166
+ },
3167
+ {
3168
+ "$ref": "#/definitions/extension_with_annotation_node"
3069
3169
  }
3070
3170
  ]
3071
3171
  },
@@ -3140,6 +3240,9 @@
3140
3240
  },
3141
3241
  {
3142
3242
  "$ref": "#/definitions/extension_with_marks_node"
3243
+ },
3244
+ {
3245
+ "$ref": "#/definitions/extension_with_annotation_node"
3143
3246
  }
3144
3247
  ]
3145
3248
  },
@@ -3569,6 +3672,9 @@
3569
3672
  {
3570
3673
  "$ref": "#/definitions/extension_with_marks_node"
3571
3674
  },
3675
+ {
3676
+ "$ref": "#/definitions/extension_with_annotation_node"
3677
+ },
3572
3678
  {
3573
3679
  "$ref": "#/definitions/nestedExpand_with_no_marks_node"
3574
3680
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "57.5.4",
3
+ "version": "57.6.1",
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/"
@@ -40,13 +40,17 @@
40
40
  "@atlaskit/adf-schema-generator": "^4.0.0",
41
41
  "@atlaskit/editor-prosemirror": "^9.0.0",
42
42
  "@atlaskit/platform-feature-flags": "^2.2.0",
43
- "@atlaskit/tmp-editor-statsig": "^201.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^202.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "css-color-names": "0.0.4",
46
46
  "linkify-it": "^5.0.2",
47
47
  "memoize-one": "^6.0.0"
48
48
  },
49
49
  "platform-feature-flags": {
50
+ "cc_maui_annotations_on_extensions": {
51
+ "type": "boolean",
52
+ "referenceOnly": true
53
+ },
50
54
  "platform_bugfix_invalid_urls_parsing_in_editor": {
51
55
  "type": "boolean"
52
56
  },
@@ -82,6 +82,7 @@ const panel = {
82
82
  'bodiedRule',
83
83
  'decisionList',
84
84
  'extension_with_marks',
85
+ 'extension_with_annotation',
85
86
  ],
86
87
  ],
87
88
  minItems: 1,