@atlaskit/adf-schema 49.0.5 → 49.1.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 (184) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/index.js +114 -0
  3. package/dist/cjs/next-schema/generated/nodeTypes.js +118 -1
  4. package/dist/cjs/next-schema/nodes/blockCard.js +15 -0
  5. package/dist/cjs/next-schema/nodes/blockquote.js +16 -2
  6. package/dist/cjs/next-schema/nodes/caption.js +7 -0
  7. package/dist/cjs/next-schema/nodes/codeBlock.js +5 -0
  8. package/dist/cjs/next-schema/nodes/date.js +5 -0
  9. package/dist/cjs/next-schema/nodes/embedCard.js +5 -0
  10. package/dist/cjs/next-schema/nodes/emoji.js +5 -0
  11. package/dist/cjs/next-schema/nodes/expand.js +5 -0
  12. package/dist/cjs/next-schema/nodes/hardBreak.js +5 -0
  13. package/dist/cjs/next-schema/nodes/inlineCard.js +10 -0
  14. package/dist/cjs/next-schema/nodes/layoutColumn.js +5 -0
  15. package/dist/cjs/next-schema/nodes/layoutSection.js +12 -0
  16. package/dist/cjs/next-schema/nodes/list.js +20 -1
  17. package/dist/cjs/next-schema/nodes/media.js +10 -0
  18. package/dist/cjs/next-schema/nodes/mediaInline.js +5 -0
  19. package/dist/cjs/next-schema/nodes/mediaSingle.js +10 -0
  20. package/dist/cjs/next-schema/nodes/nestedExpand.js +5 -0
  21. package/dist/cjs/next-schema/nodes/panel.js +5 -0
  22. package/dist/cjs/next-schema/nodes/placeholder.js +5 -0
  23. package/dist/cjs/next-schema/nodes/rule.js +9 -1
  24. package/dist/cjs/schema/index.js +120 -0
  25. package/dist/cjs/schema/marks/background-color.js +9 -9
  26. package/dist/cjs/schema/nodes/block-card.js +48 -1
  27. package/dist/cjs/schema/nodes/blockquote.js +20 -2
  28. package/dist/cjs/schema/nodes/bullet-list.js +20 -1
  29. package/dist/cjs/schema/nodes/caption.js +20 -1
  30. package/dist/cjs/schema/nodes/code-block.js +72 -2
  31. package/dist/cjs/schema/nodes/date.js +22 -1
  32. package/dist/cjs/schema/nodes/embed-card.js +36 -1
  33. package/dist/cjs/schema/nodes/emoji.js +73 -1
  34. package/dist/cjs/schema/nodes/expand.js +56 -1
  35. package/dist/cjs/schema/nodes/hard-break.js +18 -1
  36. package/dist/cjs/schema/nodes/index.js +120 -0
  37. package/dist/cjs/schema/nodes/inline-card.js +46 -1
  38. package/dist/cjs/schema/nodes/layout-column.js +37 -1
  39. package/dist/cjs/schema/nodes/layout-section.js +31 -1
  40. package/dist/cjs/schema/nodes/list-item.js +34 -1
  41. package/dist/cjs/schema/nodes/media-inline.js +12 -2
  42. package/dist/cjs/schema/nodes/media-single.js +22 -2
  43. package/dist/cjs/schema/nodes/media.js +21 -4
  44. package/dist/cjs/schema/nodes/nested-expand.js +34 -7
  45. package/dist/cjs/schema/nodes/ordered-list.js +54 -3
  46. package/dist/cjs/schema/nodes/panel.js +13 -5
  47. package/dist/cjs/schema/nodes/placeholder.js +24 -1
  48. package/dist/cjs/schema/nodes/rule.js +18 -1
  49. package/dist/cjs/validator-schema/generated/validatorSpec.js +142 -0
  50. package/dist/es2019/index.js +2 -2
  51. package/dist/es2019/next-schema/generated/nodeTypes.js +118 -1
  52. package/dist/es2019/next-schema/nodes/blockCard.js +15 -0
  53. package/dist/es2019/next-schema/nodes/blockquote.js +16 -2
  54. package/dist/es2019/next-schema/nodes/caption.js +7 -0
  55. package/dist/es2019/next-schema/nodes/codeBlock.js +5 -0
  56. package/dist/es2019/next-schema/nodes/date.js +5 -0
  57. package/dist/es2019/next-schema/nodes/embedCard.js +5 -0
  58. package/dist/es2019/next-schema/nodes/emoji.js +5 -0
  59. package/dist/es2019/next-schema/nodes/expand.js +5 -0
  60. package/dist/es2019/next-schema/nodes/hardBreak.js +5 -0
  61. package/dist/es2019/next-schema/nodes/inlineCard.js +10 -0
  62. package/dist/es2019/next-schema/nodes/layoutColumn.js +5 -0
  63. package/dist/es2019/next-schema/nodes/layoutSection.js +12 -0
  64. package/dist/es2019/next-schema/nodes/list.js +20 -1
  65. package/dist/es2019/next-schema/nodes/media.js +10 -0
  66. package/dist/es2019/next-schema/nodes/mediaInline.js +5 -0
  67. package/dist/es2019/next-schema/nodes/mediaSingle.js +10 -0
  68. package/dist/es2019/next-schema/nodes/nestedExpand.js +5 -0
  69. package/dist/es2019/next-schema/nodes/panel.js +5 -0
  70. package/dist/es2019/next-schema/nodes/placeholder.js +5 -0
  71. package/dist/es2019/next-schema/nodes/rule.js +9 -1
  72. package/dist/es2019/schema/index.js +1 -1
  73. package/dist/es2019/schema/marks/background-color.js +9 -9
  74. package/dist/es2019/schema/nodes/block-card.js +50 -0
  75. package/dist/es2019/schema/nodes/blockquote.js +19 -1
  76. package/dist/es2019/schema/nodes/bullet-list.js +19 -0
  77. package/dist/es2019/schema/nodes/caption.js +19 -0
  78. package/dist/es2019/schema/nodes/code-block.js +68 -0
  79. package/dist/es2019/schema/nodes/date.js +19 -0
  80. package/dist/es2019/schema/nodes/embed-card.js +34 -0
  81. package/dist/es2019/schema/nodes/emoji.js +71 -0
  82. package/dist/es2019/schema/nodes/expand.js +59 -0
  83. package/dist/es2019/schema/nodes/hard-break.js +15 -0
  84. package/dist/es2019/schema/nodes/index.js +19 -19
  85. package/dist/es2019/schema/nodes/inline-card.js +45 -0
  86. package/dist/es2019/schema/nodes/layout-column.js +38 -0
  87. package/dist/es2019/schema/nodes/layout-section.js +32 -0
  88. package/dist/es2019/schema/nodes/list-item.js +29 -0
  89. package/dist/es2019/schema/nodes/media-inline.js +8 -1
  90. package/dist/es2019/schema/nodes/media-single.js +20 -1
  91. package/dist/es2019/schema/nodes/media.js +17 -4
  92. package/dist/es2019/schema/nodes/nested-expand.js +21 -6
  93. package/dist/es2019/schema/nodes/ordered-list.js +51 -2
  94. package/dist/es2019/schema/nodes/panel.js +11 -5
  95. package/dist/es2019/schema/nodes/placeholder.js +23 -0
  96. package/dist/es2019/schema/nodes/rule.js +15 -0
  97. package/dist/es2019/validator-schema/generated/validatorSpec.js +142 -0
  98. package/dist/esm/index.js +2 -2
  99. package/dist/esm/next-schema/generated/nodeTypes.js +118 -1
  100. package/dist/esm/next-schema/nodes/blockCard.js +15 -0
  101. package/dist/esm/next-schema/nodes/blockquote.js +16 -2
  102. package/dist/esm/next-schema/nodes/caption.js +7 -0
  103. package/dist/esm/next-schema/nodes/codeBlock.js +5 -0
  104. package/dist/esm/next-schema/nodes/date.js +5 -0
  105. package/dist/esm/next-schema/nodes/embedCard.js +5 -0
  106. package/dist/esm/next-schema/nodes/emoji.js +5 -0
  107. package/dist/esm/next-schema/nodes/expand.js +5 -0
  108. package/dist/esm/next-schema/nodes/hardBreak.js +5 -0
  109. package/dist/esm/next-schema/nodes/inlineCard.js +10 -0
  110. package/dist/esm/next-schema/nodes/layoutColumn.js +5 -0
  111. package/dist/esm/next-schema/nodes/layoutSection.js +12 -0
  112. package/dist/esm/next-schema/nodes/list.js +20 -1
  113. package/dist/esm/next-schema/nodes/media.js +10 -0
  114. package/dist/esm/next-schema/nodes/mediaInline.js +5 -0
  115. package/dist/esm/next-schema/nodes/mediaSingle.js +10 -0
  116. package/dist/esm/next-schema/nodes/nestedExpand.js +5 -0
  117. package/dist/esm/next-schema/nodes/panel.js +5 -0
  118. package/dist/esm/next-schema/nodes/placeholder.js +5 -0
  119. package/dist/esm/next-schema/nodes/rule.js +9 -1
  120. package/dist/esm/schema/index.js +1 -1
  121. package/dist/esm/schema/marks/background-color.js +9 -9
  122. package/dist/esm/schema/nodes/block-card.js +47 -0
  123. package/dist/esm/schema/nodes/blockquote.js +19 -1
  124. package/dist/esm/schema/nodes/bullet-list.js +19 -0
  125. package/dist/esm/schema/nodes/caption.js +19 -0
  126. package/dist/esm/schema/nodes/code-block.js +71 -1
  127. package/dist/esm/schema/nodes/date.js +21 -0
  128. package/dist/esm/schema/nodes/embed-card.js +35 -0
  129. package/dist/esm/schema/nodes/emoji.js +71 -0
  130. package/dist/esm/schema/nodes/expand.js +55 -0
  131. package/dist/esm/schema/nodes/hard-break.js +17 -0
  132. package/dist/esm/schema/nodes/index.js +19 -19
  133. package/dist/esm/schema/nodes/inline-card.js +45 -0
  134. package/dist/esm/schema/nodes/layout-column.js +36 -0
  135. package/dist/esm/schema/nodes/layout-section.js +30 -0
  136. package/dist/esm/schema/nodes/list-item.js +33 -0
  137. package/dist/esm/schema/nodes/media-inline.js +10 -1
  138. package/dist/esm/schema/nodes/media-single.js +21 -1
  139. package/dist/esm/schema/nodes/media.js +19 -3
  140. package/dist/esm/schema/nodes/nested-expand.js +32 -6
  141. package/dist/esm/schema/nodes/ordered-list.js +53 -2
  142. package/dist/esm/schema/nodes/panel.js +12 -4
  143. package/dist/esm/schema/nodes/placeholder.js +23 -0
  144. package/dist/esm/schema/nodes/rule.js +17 -0
  145. package/dist/esm/validator-schema/generated/validatorSpec.js +142 -0
  146. package/dist/json-schema/v1/full.json +125 -2
  147. package/dist/json-schema/v1/stage-0.json +137 -2
  148. package/dist/types/index.d.ts +2 -2
  149. package/dist/types/next-schema/generated/nodeTypes.d.ts +62 -0
  150. package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +7 -0
  151. package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +7 -0
  152. package/dist/types/next-schema/nodes/blockquote.d.ts +7 -0
  153. package/dist/types/next-schema/nodes/layoutSection.d.ts +5 -0
  154. package/dist/types/schema/index.d.ts +1 -1
  155. package/dist/types/schema/nodes/block-card.d.ts +4 -0
  156. package/dist/types/schema/nodes/blockquote.d.ts +4 -0
  157. package/dist/types/schema/nodes/bullet-list.d.ts +1 -0
  158. package/dist/types/schema/nodes/caption.d.ts +4 -0
  159. package/dist/types/schema/nodes/code-block.d.ts +2 -0
  160. package/dist/types/schema/nodes/date.d.ts +2 -0
  161. package/dist/types/schema/nodes/embed-card.d.ts +2 -0
  162. package/dist/types/schema/nodes/emoji.d.ts +2 -0
  163. package/dist/types/schema/nodes/expand.d.ts +2 -0
  164. package/dist/types/schema/nodes/hard-break.d.ts +2 -0
  165. package/dist/types/schema/nodes/index.d.ts +19 -19
  166. package/dist/types/schema/nodes/inline-card.d.ts +1 -0
  167. package/dist/types/schema/nodes/layout-column.d.ts +2 -0
  168. package/dist/types/schema/nodes/layout-section.d.ts +4 -0
  169. package/dist/types/schema/nodes/list-item.d.ts +2 -0
  170. package/dist/types/schema/nodes/media-inline.d.ts +1 -0
  171. package/dist/types/schema/nodes/media-single.d.ts +3 -1
  172. package/dist/types/schema/nodes/media.d.ts +3 -1
  173. package/dist/types/schema/nodes/nested-expand.d.ts +2 -0
  174. package/dist/types/schema/nodes/ordered-list.d.ts +2 -0
  175. package/dist/types/schema/nodes/panel.d.ts +2 -0
  176. package/dist/types/schema/nodes/placeholder.d.ts +2 -0
  177. package/dist/types/schema/nodes/rule.d.ts +4 -0
  178. package/dist/types/schema/nodes/types/list.d.ts +7 -0
  179. package/dist/types/schema/nodes/types/rich-media-common.d.ts +1 -0
  180. package/dist/types/validator-schema/generated/validatorSpec.d.ts +142 -0
  181. package/json-schema/v1/full.json +125 -2
  182. package/json-schema/v1/stage-0.json +137 -2
  183. package/package.json +2 -2
  184. package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -0
@@ -64,6 +64,10 @@ var blockCard = exports.blockCard = {
64
64
  },
65
65
  attrs: [{
66
66
  props: {
67
+ localId: {
68
+ type: 'string',
69
+ optional: true
70
+ },
67
71
  url: {
68
72
  type: 'string',
69
73
  optional: true,
@@ -109,12 +113,20 @@ var blockCard = exports.blockCard = {
109
113
  url: {
110
114
  type: 'string',
111
115
  validatorFn: 'safeUrl'
116
+ },
117
+ localId: {
118
+ type: 'string',
119
+ optional: true
112
120
  }
113
121
  }
114
122
  }, {
115
123
  props: {
116
124
  data: {
117
125
  type: 'object'
126
+ },
127
+ localId: {
128
+ type: 'string',
129
+ optional: true
118
130
  }
119
131
  }
120
132
  }]
@@ -127,6 +139,15 @@ var blockquote = exports.blockquote = {
127
139
  type: 'enum',
128
140
  values: ['blockquote']
129
141
  },
142
+ attrs: {
143
+ props: {
144
+ localId: {
145
+ type: 'string',
146
+ optional: true
147
+ }
148
+ },
149
+ optional: true
150
+ },
130
151
  content: {
131
152
  type: 'array',
132
153
  items: [['paragraph_with_no_marks', 'orderedList', 'bulletList', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'extension_with_marks']],
@@ -241,6 +262,15 @@ var bulletList = exports.bulletList = {
241
262
  type: 'enum',
242
263
  values: ['bulletList']
243
264
  },
265
+ attrs: {
266
+ props: {
267
+ localId: {
268
+ type: 'string',
269
+ optional: true
270
+ }
271
+ },
272
+ optional: true
273
+ },
244
274
  content: {
245
275
  type: 'array',
246
276
  items: [['listItem', 'listItem_with_nested_decision']],
@@ -254,6 +284,15 @@ var caption = exports.caption = {
254
284
  type: 'enum',
255
285
  values: ['caption']
256
286
  },
287
+ attrs: {
288
+ props: {
289
+ localId: {
290
+ type: 'string',
291
+ optional: true
292
+ }
293
+ },
294
+ optional: true
295
+ },
257
296
  content: {
258
297
  type: 'array',
259
298
  items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', 'text_formatted', 'text_code_inline']],
@@ -285,6 +324,10 @@ var codeBlock = exports.codeBlock = {
285
324
  uniqueId: {
286
325
  type: 'string',
287
326
  optional: true
327
+ },
328
+ localId: {
329
+ type: 'string',
330
+ optional: true
288
331
  }
289
332
  },
290
333
  optional: true
@@ -351,6 +394,10 @@ var date = exports.date = {
351
394
  timestamp: {
352
395
  minLength: 1,
353
396
  type: 'string'
397
+ },
398
+ localId: {
399
+ type: 'string',
400
+ optional: true
354
401
  }
355
402
  }
356
403
  },
@@ -460,6 +507,10 @@ var embedCard = exports.embedCard = {
460
507
  originalWidth: {
461
508
  type: 'number',
462
509
  optional: true
510
+ },
511
+ localId: {
512
+ type: 'string',
513
+ optional: true
463
514
  }
464
515
  }
465
516
  }
@@ -483,6 +534,10 @@ var emoji = exports.emoji = {
483
534
  text: {
484
535
  type: 'string',
485
536
  optional: true
537
+ },
538
+ localId: {
539
+ type: 'string',
540
+ optional: true
486
541
  }
487
542
  }
488
543
  },
@@ -504,6 +559,10 @@ var expand = exports.expand = {
504
559
  title: {
505
560
  type: 'string',
506
561
  optional: true
562
+ },
563
+ localId: {
564
+ type: 'string',
565
+ optional: true
507
566
  }
508
567
  },
509
568
  optional: true
@@ -627,6 +686,10 @@ var hardBreak = exports.hardBreak = {
627
686
  type: 'enum',
628
687
  values: ['\n'],
629
688
  optional: true
689
+ },
690
+ localId: {
691
+ type: 'string',
692
+ optional: true
630
693
  }
631
694
  },
632
695
  optional: true
@@ -722,12 +785,20 @@ var inlineCard = exports.inlineCard = {
722
785
  url: {
723
786
  type: 'string',
724
787
  validatorFn: 'safeUrl'
788
+ },
789
+ localId: {
790
+ type: 'string',
791
+ optional: true
725
792
  }
726
793
  }
727
794
  }, {
728
795
  props: {
729
796
  data: {
730
797
  type: 'object'
798
+ },
799
+ localId: {
800
+ type: 'string',
801
+ optional: true
731
802
  }
732
803
  }
733
804
  }],
@@ -798,6 +869,10 @@ var layoutColumn = exports.layoutColumn = {
798
869
  type: 'number',
799
870
  minimum: 0,
800
871
  maximum: 100
872
+ },
873
+ localId: {
874
+ type: 'string',
875
+ optional: true
801
876
  }
802
877
  }
803
878
  },
@@ -815,6 +890,15 @@ var layoutSection = exports.layoutSection = {
815
890
  type: 'enum',
816
891
  values: ['layoutSection']
817
892
  },
893
+ attrs: {
894
+ props: {
895
+ localId: {
896
+ type: 'string',
897
+ optional: true
898
+ }
899
+ },
900
+ optional: true
901
+ },
818
902
  content: {
819
903
  type: 'array',
820
904
  items: ['layoutColumn'],
@@ -853,6 +937,10 @@ var layoutSection_with_single_column = exports.layoutSection_with_single_column
853
937
  type: 'enum',
854
938
  values: ['solid'],
855
939
  optional: true
940
+ },
941
+ localId: {
942
+ type: 'string',
943
+ optional: true
856
944
  }
857
945
  },
858
946
  optional: true
@@ -909,6 +997,15 @@ var listItem = exports.listItem = {
909
997
  type: 'enum',
910
998
  values: ['listItem']
911
999
  },
1000
+ attrs: {
1001
+ props: {
1002
+ localId: {
1003
+ type: 'string',
1004
+ optional: true
1005
+ }
1006
+ },
1007
+ optional: true
1008
+ },
912
1009
  content: {
913
1010
  type: 'array',
914
1011
  isTupleLike: true,
@@ -941,6 +1038,10 @@ var media = exports.media = {
941
1038
  type: 'enum',
942
1039
  values: ['link', 'file']
943
1040
  },
1041
+ localId: {
1042
+ type: 'string',
1043
+ optional: true
1044
+ },
944
1045
  id: {
945
1046
  minLength: 1,
946
1047
  type: 'string'
@@ -972,6 +1073,10 @@ var media = exports.media = {
972
1073
  type: 'enum',
973
1074
  values: ['external']
974
1075
  },
1076
+ localId: {
1077
+ type: 'string',
1078
+ optional: true
1079
+ },
975
1080
  alt: {
976
1081
  type: 'string',
977
1082
  optional: true
@@ -1024,6 +1129,10 @@ var mediaInline = exports.mediaInline = {
1024
1129
  values: ['link', 'file', 'image'],
1025
1130
  optional: true
1026
1131
  },
1132
+ localId: {
1133
+ type: 'string',
1134
+ optional: true
1135
+ },
1027
1136
  url: {
1028
1137
  type: 'string',
1029
1138
  optional: true
@@ -1073,6 +1182,10 @@ var mediaSingle = exports.mediaSingle = {
1073
1182
  },
1074
1183
  attrs: [{
1075
1184
  props: {
1185
+ localId: {
1186
+ type: 'string',
1187
+ optional: true
1188
+ },
1076
1189
  width: {
1077
1190
  type: 'number',
1078
1191
  minimum: 0,
@@ -1091,6 +1204,10 @@ var mediaSingle = exports.mediaSingle = {
1091
1204
  }
1092
1205
  }, {
1093
1206
  props: {
1207
+ localId: {
1208
+ type: 'string',
1209
+ optional: true
1210
+ },
1094
1211
  width: {
1095
1212
  type: 'number',
1096
1213
  minimum: 0
@@ -1241,6 +1358,10 @@ var nestedExpand = exports.nestedExpand = {
1241
1358
  title: {
1242
1359
  type: 'string',
1243
1360
  optional: true
1361
+ },
1362
+ localId: {
1363
+ type: 'string',
1364
+ optional: true
1244
1365
  }
1245
1366
  }
1246
1367
  },
@@ -1277,6 +1398,10 @@ var orderedList = exports.orderedList = {
1277
1398
  type: 'number',
1278
1399
  minimum: 0,
1279
1400
  optional: true
1401
+ },
1402
+ localId: {
1403
+ type: 'string',
1404
+ optional: true
1280
1405
  }
1281
1406
  },
1282
1407
  optional: true
@@ -1315,6 +1440,10 @@ var panel = exports.panel = {
1315
1440
  panelColor: {
1316
1441
  type: 'string',
1317
1442
  optional: true
1443
+ },
1444
+ localId: {
1445
+ type: 'string',
1446
+ optional: true
1318
1447
  }
1319
1448
  }
1320
1449
  },
@@ -1392,6 +1521,10 @@ var placeholder = exports.placeholder = {
1392
1521
  props: {
1393
1522
  text: {
1394
1523
  type: 'string'
1524
+ },
1525
+ localId: {
1526
+ type: 'string',
1527
+ optional: true
1395
1528
  }
1396
1529
  }
1397
1530
  }
@@ -1402,6 +1535,15 @@ var rule = exports.rule = {
1402
1535
  type: {
1403
1536
  type: 'enum',
1404
1537
  values: ['rule']
1538
+ },
1539
+ attrs: {
1540
+ props: {
1541
+ localId: {
1542
+ type: 'string',
1543
+ optional: true
1544
+ }
1545
+ },
1546
+ optional: true
1405
1547
  }
1406
1548
  }
1407
1549
  };
@@ -1,5 +1,5 @@
1
- export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, extendedBlockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
2
- colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expandWithNestedExpand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, backgroundColorPaletteNext, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './schema';
1
+ export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockToJSON, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
2
+ colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, hardBreakWithLocalId, heading, image, indentation, inlineCard, inlineCardWithLocalId, inlineExtension, inlineNodes, layoutColumn, layoutColumnWithLocalId, layoutSection, link, linkToJSON, listItem, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, backgroundColorPaletteNext, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './schema';
3
3
  export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor } from './utils';
4
4
 
5
5
  // ADF createPMSpecFactory
@@ -8,6 +8,9 @@ import { createPMNodeSpecFactory } from '../../schema/createPMSpecFactory';
8
8
  export const blockCard = createPMNodeSpecFactory({
9
9
  group: 'block',
10
10
  attrs: {
11
+ localId: {
12
+ default: null
13
+ },
11
14
  url: {
12
15
  default: null
13
16
  },
@@ -31,6 +34,11 @@ export const blockquote = createPMNodeSpecFactory({
31
34
  content: '(paragraph | orderedList | bulletList | unsupportedBlock | codeBlock | mediaSingle | mediaGroup | extension)+',
32
35
  marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
33
36
  group: 'block',
37
+ attrs: {
38
+ localId: {
39
+ default: null
40
+ }
41
+ },
34
42
  selectable: true,
35
43
  defining: true
36
44
  });
@@ -38,6 +46,11 @@ export const blockquoteLegacy = createPMNodeSpecFactory({
38
46
  content: '(paragraph | unsupportedBlock)+',
39
47
  marks: 'unsupportedMark unsupportedNodeAttribute',
40
48
  group: 'block',
49
+ attrs: {
50
+ localId: {
51
+ default: null
52
+ }
53
+ },
41
54
  selectable: true,
42
55
  defining: true
43
56
  });
@@ -100,11 +113,21 @@ export const bulletList = createPMNodeSpecFactory({
100
113
  content: 'listItem+',
101
114
  marks: 'unsupportedMark unsupportedNodeAttribute',
102
115
  group: 'block',
116
+ attrs: {
117
+ localId: {
118
+ default: null
119
+ }
120
+ },
103
121
  selectable: false
104
122
  });
105
123
  export const caption = createPMNodeSpecFactory({
106
124
  content: '(hardBreak | mention | emoji | date | placeholder | inlineCard | status | text | unsupportedInline)*',
107
125
  marks: '_',
126
+ attrs: {
127
+ localId: {
128
+ default: null
129
+ }
130
+ },
108
131
  selectable: false,
109
132
  isolating: true
110
133
  });
@@ -118,6 +141,9 @@ export const codeBlock = createPMNodeSpecFactory({
118
141
  },
119
142
  uniqueId: {
120
143
  default: null
144
+ },
145
+ localId: {
146
+ default: null
121
147
  }
122
148
  },
123
149
  code: true,
@@ -132,6 +158,9 @@ export const codeBlockRootOnly = createPMNodeSpecFactory({
132
158
  },
133
159
  uniqueId: {
134
160
  default: null
161
+ },
162
+ localId: {
163
+ default: null
135
164
  }
136
165
  },
137
166
  code: true,
@@ -183,6 +212,9 @@ export const date = createPMNodeSpecFactory({
183
212
  attrs: {
184
213
  timestamp: {
185
214
  default: ''
215
+ },
216
+ localId: {
217
+ default: null
186
218
  }
187
219
  },
188
220
  selectable: true
@@ -193,6 +225,9 @@ export const dateStage0 = createPMNodeSpecFactory({
193
225
  attrs: {
194
226
  timestamp: {
195
227
  default: ''
228
+ },
229
+ localId: {
230
+ default: null
196
231
  }
197
232
  },
198
233
  selectable: true
@@ -243,6 +278,9 @@ export const embedCard = createPMNodeSpecFactory({
243
278
  },
244
279
  originalWidth: {
245
280
  default: null
281
+ },
282
+ localId: {
283
+ default: null
246
284
  }
247
285
  },
248
286
  selectable: true
@@ -259,6 +297,9 @@ export const emoji = createPMNodeSpecFactory({
259
297
  },
260
298
  text: {
261
299
  default: ''
300
+ },
301
+ localId: {
302
+ default: null
262
303
  }
263
304
  },
264
305
  selectable: true
@@ -275,6 +316,9 @@ export const emojiStage0 = createPMNodeSpecFactory({
275
316
  },
276
317
  text: {
277
318
  default: ''
319
+ },
320
+ localId: {
321
+ default: null
278
322
  }
279
323
  },
280
324
  selectable: true
@@ -289,6 +333,9 @@ export const expand = createPMNodeSpecFactory({
289
333
  },
290
334
  __expanded: {
291
335
  default: true
336
+ },
337
+ localId: {
338
+ default: null
292
339
  }
293
340
  },
294
341
  selectable: true,
@@ -303,6 +350,9 @@ export const expandRootOnly = createPMNodeSpecFactory({
303
350
  },
304
351
  __expanded: {
305
352
  default: true
353
+ },
354
+ localId: {
355
+ default: null
306
356
  }
307
357
  },
308
358
  selectable: true,
@@ -373,6 +423,9 @@ export const hardBreak = createPMNodeSpecFactory({
373
423
  attrs: {
374
424
  text: {
375
425
  default: '\n'
426
+ },
427
+ localId: {
428
+ default: null
376
429
  }
377
430
  },
378
431
  selectable: false,
@@ -455,6 +508,9 @@ export const inlineCard = createPMNodeSpecFactory({
455
508
  url: {
456
509
  default: null
457
510
  },
511
+ localId: {
512
+ default: null
513
+ },
458
514
  data: {
459
515
  default: null
460
516
  }
@@ -469,6 +525,9 @@ export const inlineCardStage0 = createPMNodeSpecFactory({
469
525
  url: {
470
526
  default: null
471
527
  },
528
+ localId: {
529
+ default: null
530
+ },
472
531
  data: {
473
532
  default: null
474
533
  }
@@ -526,6 +585,9 @@ export const layoutColumn = createPMNodeSpecFactory({
526
585
  attrs: {
527
586
  width: {
528
587
  default: undefined
588
+ },
589
+ localId: {
590
+ default: null
529
591
  }
530
592
  },
531
593
  selectable: false,
@@ -534,11 +596,21 @@ export const layoutColumn = createPMNodeSpecFactory({
534
596
  export const layoutSection = createPMNodeSpecFactory({
535
597
  content: '(layoutColumn | unsupportedBlock){1,3} unsupportedBlock*',
536
598
  marks: 'unsupportedMark unsupportedNodeAttribute',
599
+ attrs: {
600
+ localId: {
601
+ default: null
602
+ }
603
+ },
537
604
  isolating: true
538
605
  });
539
606
  export const layoutSectionFull = createPMNodeSpecFactory({
540
607
  content: '(layoutColumn | unsupportedBlock){2,3}',
541
608
  marks: 'unsupportedMark unsupportedNodeAttribute',
609
+ attrs: {
610
+ localId: {
611
+ default: null
612
+ }
613
+ },
542
614
  isolating: true
543
615
  });
544
616
  export const layoutSectionWithSingleColumnStage0 = createPMNodeSpecFactory({
@@ -547,6 +619,9 @@ export const layoutSectionWithSingleColumnStage0 = createPMNodeSpecFactory({
547
619
  attrs: {
548
620
  columnRuleStyle: {
549
621
  default: null
622
+ },
623
+ localId: {
624
+ default: null
550
625
  }
551
626
  },
552
627
  isolating: true
@@ -554,12 +629,22 @@ export const layoutSectionWithSingleColumnStage0 = createPMNodeSpecFactory({
554
629
  export const listItem = createPMNodeSpecFactory({
555
630
  content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock | extension) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | extension)*',
556
631
  marks: 'dataConsumer fragment unsupportedMark unsupportedNodeAttribute',
632
+ attrs: {
633
+ localId: {
634
+ default: null
635
+ }
636
+ },
557
637
  selectable: false,
558
638
  defining: true
559
639
  });
560
640
  export const listItemWithNestedDecisionStage0 = createPMNodeSpecFactory({
561
641
  content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension)*',
562
642
  marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
643
+ attrs: {
644
+ localId: {
645
+ default: null
646
+ }
647
+ },
563
648
  selectable: false,
564
649
  defining: true
565
650
  });
@@ -568,6 +653,9 @@ export const media = createPMNodeSpecFactory({
568
653
  type: {
569
654
  default: 'file'
570
655
  },
656
+ localId: {
657
+ default: null
658
+ },
571
659
  id: {
572
660
  default: ''
573
661
  },
@@ -627,6 +715,9 @@ export const mediaInline = createPMNodeSpecFactory({
627
715
  type: {
628
716
  default: 'file'
629
717
  },
718
+ localId: {
719
+ default: null
720
+ },
630
721
  url: {
631
722
  default: null
632
723
  },
@@ -708,6 +799,9 @@ export const mediaSingleFull = createPMNodeSpecFactory({
708
799
  group: 'block',
709
800
  atom: false,
710
801
  attrs: {
802
+ localId: {
803
+ default: null
804
+ },
711
805
  width: {
712
806
  default: null
713
807
  },
@@ -726,6 +820,9 @@ export const mediaSingleWidthType = createPMNodeSpecFactory({
726
820
  group: 'block',
727
821
  atom: true,
728
822
  attrs: {
823
+ localId: {
824
+ default: null
825
+ },
729
826
  width: {
730
827
  default: null
731
828
  },
@@ -818,6 +915,9 @@ export const nestedExpand = createPMNodeSpecFactory({
818
915
  },
819
916
  __expanded: {
820
917
  default: true
918
+ },
919
+ localId: {
920
+ default: null
821
921
  }
822
922
  },
823
923
  selectable: true,
@@ -830,6 +930,9 @@ export const nestedExpandWithNoMarks = createPMNodeSpecFactory({
830
930
  },
831
931
  __expanded: {
832
932
  default: true
933
+ },
934
+ localId: {
935
+ default: null
833
936
  }
834
937
  },
835
938
  selectable: true,
@@ -842,6 +945,9 @@ export const orderedList = createPMNodeSpecFactory({
842
945
  attrs: {
843
946
  order: {
844
947
  default: 1
948
+ },
949
+ localId: {
950
+ default: null
845
951
  }
846
952
  },
847
953
  selectable: false
@@ -865,6 +971,9 @@ export const panel = createPMNodeSpecFactory({
865
971
  },
866
972
  panelColor: {
867
973
  default: null
974
+ },
975
+ localId: {
976
+ default: null
868
977
  }
869
978
  },
870
979
  selectable: true
@@ -914,12 +1023,20 @@ export const placeholder = createPMNodeSpecFactory({
914
1023
  attrs: {
915
1024
  text: {
916
1025
  default: ''
1026
+ },
1027
+ localId: {
1028
+ default: null
917
1029
  }
918
1030
  },
919
1031
  selectable: false
920
1032
  });
921
1033
  export const rule = createPMNodeSpecFactory({
922
- group: 'block'
1034
+ group: 'block',
1035
+ attrs: {
1036
+ localId: {
1037
+ default: null
1038
+ }
1039
+ }
923
1040
  });
924
1041
  export const status = createPMNodeSpecFactory({
925
1042
  group: 'inline',
@@ -7,6 +7,11 @@ export const blockCard = adfNode('blockCard').define({
7
7
  marks: [unsupportedMark, unsupportedNodeAttribute],
8
8
  attrs: {
9
9
  anyOf: [{
10
+ localId: {
11
+ type: 'string',
12
+ default: null,
13
+ optional: true
14
+ },
10
15
  url: {
11
16
  type: 'string',
12
17
  optional: true,
@@ -62,11 +67,21 @@ export const blockCard = adfNode('blockCard').define({
62
67
  url: {
63
68
  type: 'string',
64
69
  validatorFn: 'safeUrl'
70
+ },
71
+ localId: {
72
+ type: 'string',
73
+ default: null,
74
+ optional: true
65
75
  }
66
76
  }, {
67
77
  data: {
68
78
  type: 'object',
69
79
  default: null
80
+ },
81
+ localId: {
82
+ type: 'string',
83
+ default: null,
84
+ optional: true
70
85
  }
71
86
  }]
72
87
  }