@atlaskit/adf-schema 25.3.1 → 25.4.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 +25 -0
  2. package/dist/cjs/index.js +12 -0
  3. package/dist/cjs/schema/create-schema.js +3 -0
  4. package/dist/cjs/schema/default-schema.js +4 -0
  5. package/dist/cjs/schema/index.js +12 -0
  6. package/dist/cjs/schema/marks/border.js +52 -0
  7. package/dist/cjs/schema/marks/index.js +14 -1
  8. package/dist/cjs/schema/nodes/media-group.js +4 -1
  9. package/dist/cjs/schema/nodes/media-single.js +3 -3
  10. package/dist/cjs/schema/nodes/tableNodes.js +6 -1
  11. package/dist/cjs/utils/colors.js +7 -1
  12. package/dist/cjs/version.json +1 -1
  13. package/dist/es2019/index.js +1 -1
  14. package/dist/es2019/schema/create-schema.js +4 -1
  15. package/dist/es2019/schema/default-schema.js +4 -0
  16. package/dist/es2019/schema/index.js +1 -1
  17. package/dist/es2019/schema/marks/border.js +37 -0
  18. package/dist/es2019/schema/marks/index.js +2 -1
  19. package/dist/es2019/schema/nodes/media-group.js +4 -1
  20. package/dist/es2019/schema/nodes/media-single.js +3 -3
  21. package/dist/es2019/schema/nodes/tableNodes.js +6 -1
  22. package/dist/es2019/utils/colors.js +3 -0
  23. package/dist/es2019/version.json +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/schema/create-schema.js +4 -1
  26. package/dist/esm/schema/default-schema.js +4 -0
  27. package/dist/esm/schema/index.js +1 -1
  28. package/dist/esm/schema/marks/border.js +43 -0
  29. package/dist/esm/schema/marks/index.js +2 -1
  30. package/dist/esm/schema/nodes/media-group.js +4 -1
  31. package/dist/esm/schema/nodes/media-single.js +3 -3
  32. package/dist/esm/schema/nodes/tableNodes.js +6 -1
  33. package/dist/esm/utils/colors.js +3 -0
  34. package/dist/esm/version.json +1 -1
  35. package/dist/json-schema/v1/full.json +29 -29
  36. package/dist/json-schema/v1/stage-0.json +71 -30
  37. package/dist/types/index.d.ts +2 -2
  38. package/dist/types/schema/index.d.ts +2 -2
  39. package/dist/types/schema/marks/border.d.ts +24 -0
  40. package/dist/types/schema/marks/index.d.ts +2 -0
  41. package/dist/types/schema/nodes/media-single.d.ts +10 -10
  42. package/dist/types/schema/nodes/media.d.ts +2 -1
  43. package/dist/types/utils/colors.d.ts +3 -0
  44. package/json-schema/v1/full.json +29 -29
  45. package/json-schema/v1/stage-0.json +71 -30
  46. package/package.json +5 -4
  47. package/report.api.md +25 -1
@@ -1,4 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import { hexToEditorBackgroundPaletteColorTokenName } from '@atlaskit/editor-palette';
3
+ import { getTokenValue } from '@atlaskit/tokens';
2
4
  import { B100, B50, B75, G200, G50, G75, hexToRgba, isHex, isRgb, N0, N20, N60, N800, P100, P50, P75, R100, R50, R75, rgbToHex, T100, T50, T75, Y200, Y50, Y75 } from '../../utils/colors';
3
5
  import { uuid } from '../../utils/uuid';
4
6
  export var tablePrefixSelector = 'pm-table';
@@ -73,7 +75,10 @@ export var getCellDomAttrs = function getCellDomAttrs(node) {
73
75
  attrs.style = '';
74
76
  } else {
75
77
  var color = isRgb(background) ? rgbToHex(background) : background;
76
- attrs.style = "".concat(attrs.style || '', "background-color: ").concat(color);
78
+ var tokenName = hexToEditorBackgroundPaletteColorTokenName(color);
79
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
80
+ var tokenColor = tokenName ? getTokenValue(tokenName) : color;
81
+ attrs.style = "".concat(attrs.style || '', "background-color: ").concat(tokenColor, ";");
77
82
 
78
83
  /**
79
84
  * Storing hex code in data-cell-background because
@@ -40,8 +40,11 @@ export var N80 = '#97A0AF';
40
40
  export var N90 = '#8993A4';
41
41
  export var N200 = '#6B778C';
42
42
  export var N300 = '#5E6C84';
43
+ export var N300A = '#091E4224';
43
44
  export var N500 = '#42526E';
45
+ export var N600 = '#758195';
44
46
  export var N800 = '#172B4D';
47
+ export var N1000 = '#172B4D';
45
48
  export var P50 = '#EAE6FF';
46
49
  export var P75 = '#C0B6F2';
47
50
  export var P100 = '#998DD9';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "25.3.1",
3
+ "version": "25.4.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1238,7 +1238,7 @@
1238
1238
  ],
1239
1239
  "additionalProperties": true
1240
1240
  },
1241
- "mediaSingle_full_node": {
1241
+ "mediaSingle_caption_node": {
1242
1242
  "allOf": [
1243
1243
  {
1244
1244
  "$ref": "#/definitions/mediaSingle_node"
@@ -1248,11 +1248,16 @@
1248
1248
  "properties": {
1249
1249
  "content": {
1250
1250
  "type": "array",
1251
- "items": {
1252
- "$ref": "#/definitions/media_node"
1253
- },
1251
+ "items": [
1252
+ {
1253
+ "$ref": "#/definitions/media_node"
1254
+ },
1255
+ {
1256
+ "$ref": "#/definitions/caption_node"
1257
+ }
1258
+ ],
1254
1259
  "minItems": 1,
1255
- "maxItems": 1
1260
+ "maxItems": 2
1256
1261
  }
1257
1262
  },
1258
1263
  "required": [
@@ -1262,7 +1267,7 @@
1262
1267
  }
1263
1268
  ]
1264
1269
  },
1265
- "mediaSingle_caption_node": {
1270
+ "mediaSingle_full_node": {
1266
1271
  "allOf": [
1267
1272
  {
1268
1273
  "$ref": "#/definitions/mediaSingle_node"
@@ -1272,16 +1277,11 @@
1272
1277
  "properties": {
1273
1278
  "content": {
1274
1279
  "type": "array",
1275
- "items": [
1276
- {
1277
- "$ref": "#/definitions/media_node"
1278
- },
1279
- {
1280
- "$ref": "#/definitions/caption_node"
1281
- }
1282
- ],
1280
+ "items": {
1281
+ "$ref": "#/definitions/media_node"
1282
+ },
1283
1283
  "minItems": 1,
1284
- "maxItems": 2
1284
+ "maxItems": 1
1285
1285
  }
1286
1286
  },
1287
1287
  "required": [
@@ -1311,10 +1311,10 @@
1311
1311
  "$ref": "#/definitions/paragraph_with_no_marks_node"
1312
1312
  },
1313
1313
  {
1314
- "$ref": "#/definitions/mediaSingle_full_node"
1314
+ "$ref": "#/definitions/mediaSingle_caption_node"
1315
1315
  },
1316
1316
  {
1317
- "$ref": "#/definitions/mediaSingle_caption_node"
1317
+ "$ref": "#/definitions/mediaSingle_full_node"
1318
1318
  }
1319
1319
  ]
1320
1320
  },
@@ -1327,10 +1327,10 @@
1327
1327
  "$ref": "#/definitions/paragraph_with_no_marks_node"
1328
1328
  },
1329
1329
  {
1330
- "$ref": "#/definitions/mediaSingle_full_node"
1330
+ "$ref": "#/definitions/mediaSingle_caption_node"
1331
1331
  },
1332
1332
  {
1333
- "$ref": "#/definitions/mediaSingle_caption_node"
1333
+ "$ref": "#/definitions/mediaSingle_full_node"
1334
1334
  },
1335
1335
  {
1336
1336
  "$ref": "#/definitions/bulletList_node"
@@ -1920,10 +1920,10 @@
1920
1920
  "$ref": "#/definitions/paragraph_with_no_marks_node"
1921
1921
  },
1922
1922
  {
1923
- "$ref": "#/definitions/mediaSingle_full_node"
1923
+ "$ref": "#/definitions/mediaSingle_caption_node"
1924
1924
  },
1925
1925
  {
1926
- "$ref": "#/definitions/mediaSingle_caption_node"
1926
+ "$ref": "#/definitions/mediaSingle_full_node"
1927
1927
  },
1928
1928
  {
1929
1929
  "$ref": "#/definitions/heading_with_no_marks_node"
@@ -2073,10 +2073,10 @@
2073
2073
  "$ref": "#/definitions/paragraph_with_alignment_node"
2074
2074
  },
2075
2075
  {
2076
- "$ref": "#/definitions/mediaSingle_full_node"
2076
+ "$ref": "#/definitions/mediaSingle_caption_node"
2077
2077
  },
2078
2078
  {
2079
- "$ref": "#/definitions/mediaSingle_caption_node"
2079
+ "$ref": "#/definitions/mediaSingle_full_node"
2080
2080
  },
2081
2081
  {
2082
2082
  "$ref": "#/definitions/bulletList_node"
@@ -2214,10 +2214,10 @@
2214
2214
  "$ref": "#/definitions/paragraph_with_no_marks_node"
2215
2215
  },
2216
2216
  {
2217
- "$ref": "#/definitions/mediaSingle_full_node"
2217
+ "$ref": "#/definitions/mediaSingle_caption_node"
2218
2218
  },
2219
2219
  {
2220
- "$ref": "#/definitions/mediaSingle_caption_node"
2220
+ "$ref": "#/definitions/mediaSingle_full_node"
2221
2221
  },
2222
2222
  {
2223
2223
  "$ref": "#/definitions/bulletList_node"
@@ -2431,10 +2431,10 @@
2431
2431
  "$ref": "#/definitions/paragraph_with_indentation_node"
2432
2432
  },
2433
2433
  {
2434
- "$ref": "#/definitions/mediaSingle_full_node"
2434
+ "$ref": "#/definitions/mediaSingle_caption_node"
2435
2435
  },
2436
2436
  {
2437
- "$ref": "#/definitions/mediaSingle_caption_node"
2437
+ "$ref": "#/definitions/mediaSingle_full_node"
2438
2438
  },
2439
2439
  {
2440
2440
  "$ref": "#/definitions/bulletList_node"
@@ -2622,10 +2622,10 @@
2622
2622
  "$ref": "#/definitions/paragraph_with_indentation_node"
2623
2623
  },
2624
2624
  {
2625
- "$ref": "#/definitions/mediaSingle_full_node"
2625
+ "$ref": "#/definitions/mediaSingle_caption_node"
2626
2626
  },
2627
2627
  {
2628
- "$ref": "#/definitions/mediaSingle_caption_node"
2628
+ "$ref": "#/definitions/mediaSingle_full_node"
2629
2629
  },
2630
2630
  {
2631
2631
  "$ref": "#/definitions/bulletList_node"
@@ -458,6 +458,40 @@
458
458
  ],
459
459
  "additionalProperties": false
460
460
  },
461
+ "border_mark": {
462
+ "type": "object",
463
+ "properties": {
464
+ "type": {
465
+ "enum": [
466
+ "border"
467
+ ]
468
+ },
469
+ "attrs": {
470
+ "type": "object",
471
+ "properties": {
472
+ "size": {
473
+ "type": "number",
474
+ "minimum": 1,
475
+ "maximum": 3
476
+ },
477
+ "color": {
478
+ "type": "string",
479
+ "pattern": "^#[0-9a-fA-F]{8}$|^#[0-9a-fA-F]{6}$"
480
+ }
481
+ },
482
+ "required": [
483
+ "size",
484
+ "color"
485
+ ],
486
+ "additionalProperties": false
487
+ }
488
+ },
489
+ "required": [
490
+ "type",
491
+ "attrs"
492
+ ],
493
+ "additionalProperties": false
494
+ },
461
495
  "hardBreak_node": {
462
496
  "type": "object",
463
497
  "properties": {
@@ -887,7 +921,14 @@
887
921
  "marks": {
888
922
  "type": "array",
889
923
  "items": {
890
- "$ref": "#/definitions/link_mark"
924
+ "anyOf": [
925
+ {
926
+ "$ref": "#/definitions/link_mark"
927
+ },
928
+ {
929
+ "$ref": "#/definitions/border_mark"
930
+ }
931
+ ]
891
932
  }
892
933
  }
893
934
  },
@@ -1238,7 +1279,7 @@
1238
1279
  ],
1239
1280
  "additionalProperties": true
1240
1281
  },
1241
- "mediaSingle_full_node": {
1282
+ "mediaSingle_caption_node": {
1242
1283
  "allOf": [
1243
1284
  {
1244
1285
  "$ref": "#/definitions/mediaSingle_node"
@@ -1248,11 +1289,16 @@
1248
1289
  "properties": {
1249
1290
  "content": {
1250
1291
  "type": "array",
1251
- "items": {
1252
- "$ref": "#/definitions/media_node"
1253
- },
1292
+ "items": [
1293
+ {
1294
+ "$ref": "#/definitions/media_node"
1295
+ },
1296
+ {
1297
+ "$ref": "#/definitions/caption_node"
1298
+ }
1299
+ ],
1254
1300
  "minItems": 1,
1255
- "maxItems": 1
1301
+ "maxItems": 2
1256
1302
  }
1257
1303
  },
1258
1304
  "required": [
@@ -1262,7 +1308,7 @@
1262
1308
  }
1263
1309
  ]
1264
1310
  },
1265
- "mediaSingle_caption_node": {
1311
+ "mediaSingle_full_node": {
1266
1312
  "allOf": [
1267
1313
  {
1268
1314
  "$ref": "#/definitions/mediaSingle_node"
@@ -1272,16 +1318,11 @@
1272
1318
  "properties": {
1273
1319
  "content": {
1274
1320
  "type": "array",
1275
- "items": [
1276
- {
1277
- "$ref": "#/definitions/media_node"
1278
- },
1279
- {
1280
- "$ref": "#/definitions/caption_node"
1281
- }
1282
- ],
1321
+ "items": {
1322
+ "$ref": "#/definitions/media_node"
1323
+ },
1283
1324
  "minItems": 1,
1284
- "maxItems": 2
1325
+ "maxItems": 1
1285
1326
  }
1286
1327
  },
1287
1328
  "required": [
@@ -1311,10 +1352,10 @@
1311
1352
  "$ref": "#/definitions/paragraph_with_no_marks_node"
1312
1353
  },
1313
1354
  {
1314
- "$ref": "#/definitions/mediaSingle_full_node"
1355
+ "$ref": "#/definitions/mediaSingle_caption_node"
1315
1356
  },
1316
1357
  {
1317
- "$ref": "#/definitions/mediaSingle_caption_node"
1358
+ "$ref": "#/definitions/mediaSingle_full_node"
1318
1359
  }
1319
1360
  ]
1320
1361
  },
@@ -1327,10 +1368,10 @@
1327
1368
  "$ref": "#/definitions/paragraph_with_no_marks_node"
1328
1369
  },
1329
1370
  {
1330
- "$ref": "#/definitions/mediaSingle_full_node"
1371
+ "$ref": "#/definitions/mediaSingle_caption_node"
1331
1372
  },
1332
1373
  {
1333
- "$ref": "#/definitions/mediaSingle_caption_node"
1374
+ "$ref": "#/definitions/mediaSingle_full_node"
1334
1375
  },
1335
1376
  {
1336
1377
  "$ref": "#/definitions/bulletList_node"
@@ -1920,10 +1961,10 @@
1920
1961
  "$ref": "#/definitions/paragraph_with_no_marks_node"
1921
1962
  },
1922
1963
  {
1923
- "$ref": "#/definitions/mediaSingle_full_node"
1964
+ "$ref": "#/definitions/mediaSingle_caption_node"
1924
1965
  },
1925
1966
  {
1926
- "$ref": "#/definitions/mediaSingle_caption_node"
1967
+ "$ref": "#/definitions/mediaSingle_full_node"
1927
1968
  },
1928
1969
  {
1929
1970
  "$ref": "#/definitions/heading_with_no_marks_node"
@@ -2073,10 +2114,10 @@
2073
2114
  "$ref": "#/definitions/paragraph_with_alignment_node"
2074
2115
  },
2075
2116
  {
2076
- "$ref": "#/definitions/mediaSingle_full_node"
2117
+ "$ref": "#/definitions/mediaSingle_caption_node"
2077
2118
  },
2078
2119
  {
2079
- "$ref": "#/definitions/mediaSingle_caption_node"
2120
+ "$ref": "#/definitions/mediaSingle_full_node"
2080
2121
  },
2081
2122
  {
2082
2123
  "$ref": "#/definitions/bulletList_node"
@@ -2214,10 +2255,10 @@
2214
2255
  "$ref": "#/definitions/paragraph_with_no_marks_node"
2215
2256
  },
2216
2257
  {
2217
- "$ref": "#/definitions/mediaSingle_full_node"
2258
+ "$ref": "#/definitions/mediaSingle_caption_node"
2218
2259
  },
2219
2260
  {
2220
- "$ref": "#/definitions/mediaSingle_caption_node"
2261
+ "$ref": "#/definitions/mediaSingle_full_node"
2221
2262
  },
2222
2263
  {
2223
2264
  "$ref": "#/definitions/bulletList_node"
@@ -2431,10 +2472,10 @@
2431
2472
  "$ref": "#/definitions/paragraph_with_indentation_node"
2432
2473
  },
2433
2474
  {
2434
- "$ref": "#/definitions/mediaSingle_full_node"
2475
+ "$ref": "#/definitions/mediaSingle_caption_node"
2435
2476
  },
2436
2477
  {
2437
- "$ref": "#/definitions/mediaSingle_caption_node"
2478
+ "$ref": "#/definitions/mediaSingle_full_node"
2438
2479
  },
2439
2480
  {
2440
2481
  "$ref": "#/definitions/bulletList_node"
@@ -2658,10 +2699,10 @@
2658
2699
  "$ref": "#/definitions/paragraph_with_indentation_node"
2659
2700
  },
2660
2701
  {
2661
- "$ref": "#/definitions/mediaSingle_full_node"
2702
+ "$ref": "#/definitions/mediaSingle_caption_node"
2662
2703
  },
2663
2704
  {
2664
- "$ref": "#/definitions/mediaSingle_caption_node"
2705
+ "$ref": "#/definitions/mediaSingle_full_node"
2665
2706
  },
2666
2707
  {
2667
2708
  "$ref": "#/definitions/bulletList_node"
@@ -1,6 +1,6 @@
1
1
  export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
2
2
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
3
- colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, 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, } from './schema';
4
- export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, } from './schema';
3
+ colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, 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, } from './schema';
4
+ export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, BorderMarkAttributes, BorderMarkDefinition, } from './schema';
5
5
  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, } from './utils';
6
6
  export type { Match, NameToEmoji } from './utils';
@@ -2,8 +2,8 @@ export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletLi
2
2
  export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, RichMediaLayout, CellDomAttrs, } from './nodes';
3
3
  export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
4
4
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
5
- colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, } from './marks';
6
- export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, CodeDefinition, EmDefinition, FragmentAttributes, FragmentDefinition, IndentationMarkAttributes, IndentationMarkDefinition, LinkAttributes, LinkDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TextColorAttributes, TextColorDefinition, UnderlineDefinition, AnnotationId, AnnotationDataAttributes, DataConsumerAttributes, DataConsumerDefinition, } from './marks';
5
+ colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, } from './marks';
6
+ export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, CodeDefinition, EmDefinition, FragmentAttributes, FragmentDefinition, IndentationMarkAttributes, IndentationMarkDefinition, LinkAttributes, LinkDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TextColorAttributes, TextColorDefinition, UnderlineDefinition, AnnotationId, AnnotationDataAttributes, DataConsumerAttributes, DataConsumerDefinition, BorderMarkAttributes, BorderMarkDefinition, } from './marks';
7
7
  export { unsupportedNodeTypesForMediaCards } from './unsupported';
8
8
  export { inlineNodes } from './inline-nodes';
9
9
  export { sanitizeNodes, createSchema } from './create-schema';
@@ -0,0 +1,24 @@
1
+ import { MarkSpec } from 'prosemirror-model';
2
+ export declare type BorderMarkAttributes = {
3
+ /**
4
+ * @minimum 1
5
+ * @maximum 3
6
+ */
7
+ size: number;
8
+ /**
9
+ * @pattern "^#[0-9a-fA-F]{8}$|^#[0-9a-fA-F]{6}$"
10
+ */
11
+ color: string;
12
+ };
13
+ /**
14
+ * @name border_mark
15
+ * @stage 0
16
+ * @description This mark adds decoration to an element, and any element decorated with it will also have a border style.
17
+ */
18
+ export interface BorderMarkDefinition {
19
+ type: 'border';
20
+ attrs: BorderMarkAttributes;
21
+ }
22
+ export declare type BorderColorKey = 'Subtle gray' | 'Gray' | 'Bold gray';
23
+ export declare const borderColorPalette: Map<string, BorderColorKey>;
24
+ export declare const border: MarkSpec;
@@ -30,3 +30,5 @@ export type { DataConsumerAttributes, DataConsumerDefinition, } from './data-con
30
30
  export { dataConsumer, toJSON as dataConsumerToJSON } from './data-consumer';
31
31
  export type { FragmentAttributes, FragmentDefinition, LocalId, } from './fragment';
32
32
  export { fragment, toJSON as fragmentToJSON } from './fragment';
33
+ export { border, borderColorPalette } from './border';
34
+ export type { BorderMarkAttributes, BorderMarkDefinition } from './border';
@@ -16,33 +16,33 @@ export interface MediaSingleBaseDefinition {
16
16
  /**
17
17
  * @additionalProperties true
18
18
  */
19
- export interface MediaSingleFullContent {
19
+ export interface MediaCaptionContent {
20
20
  /**
21
21
  * @minItems 1
22
- * @maxItems 1
22
+ * @maxItems 2
23
23
  * @allowUnsupportedBlock true
24
24
  */
25
- content: Array<Media>;
25
+ content: [Media, Caption?];
26
26
  }
27
27
  /**
28
- * @name mediaSingle_full_node
28
+ * @name mediaSingle_caption_node
29
29
  */
30
- export declare type MediaSingleFullDefinition = MediaSingleBaseDefinition & MediaSingleFullContent;
30
+ export declare type MediaSingleWithCaptionDefinition = MediaSingleBaseDefinition & MediaCaptionContent;
31
31
  /**
32
32
  * @additionalProperties true
33
33
  */
34
- export interface MediaCaptionContent {
34
+ export interface MediaSingleFullContent {
35
35
  /**
36
36
  * @minItems 1
37
- * @maxItems 2
37
+ * @maxItems 1
38
38
  * @allowUnsupportedBlock true
39
39
  */
40
- content: [Media, Caption?];
40
+ content: Array<Media>;
41
41
  }
42
42
  /**
43
- * @name mediaSingle_caption_node
43
+ * @name mediaSingle_full_node
44
44
  */
45
- export declare type MediaSingleWithCaptionDefinition = MediaSingleBaseDefinition & MediaCaptionContent;
45
+ export declare type MediaSingleFullDefinition = MediaSingleBaseDefinition & MediaSingleFullContent;
46
46
  export declare const defaultAttrs: {
47
47
  width: {
48
48
  default: null;
@@ -1,4 +1,5 @@
1
1
  import { NodeSpec, Node as PMNode } from 'prosemirror-model';
2
+ import { BorderMarkDefinition } from '../marks/border';
2
3
  import { LinkDefinition } from '../marks/link';
3
4
  export declare type MediaType = 'file' | 'link' | 'external';
4
5
  export declare type DisplayType = 'file' | 'thumbnail';
@@ -16,7 +17,7 @@ export interface MediaDefinition {
16
17
  * @minItems 1
17
18
  */
18
19
  attrs: MediaADFAttrs;
19
- marks?: Array<LinkDefinition>;
20
+ marks?: Array<LinkDefinition | BorderMarkDefinition>;
20
21
  }
21
22
  export interface MediaBaseAttributes {
22
23
  /**
@@ -36,8 +36,11 @@ export declare const N80 = "#97A0AF";
36
36
  export declare const N90 = "#8993A4";
37
37
  export declare const N200 = "#6B778C";
38
38
  export declare const N300 = "#5E6C84";
39
+ export declare const N300A = "#091E4224";
39
40
  export declare const N500 = "#42526E";
41
+ export declare const N600 = "#758195";
40
42
  export declare const N800 = "#172B4D";
43
+ export declare const N1000 = "#172B4D";
41
44
  export declare const P50 = "#EAE6FF";
42
45
  export declare const P75 = "#C0B6F2";
43
46
  export declare const P100 = "#998DD9";