@atlaskit/adf-schema 55.0.2 → 55.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 (64) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/entry-points/background-color.js +6 -0
  3. package/dist/cjs/entry-points/schema-background-color.js +6 -0
  4. package/dist/cjs/entry-points/schema-text-color.js +6 -0
  5. package/dist/cjs/entry-points/text-color.js +6 -0
  6. package/dist/cjs/index.js +12 -0
  7. package/dist/cjs/next-schema/generated/nodeTypes.js +1 -1
  8. package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +1 -1
  9. package/dist/cjs/next-schema/nodes/panel.js +2 -1
  10. package/dist/cjs/schema/index.js +12 -0
  11. package/dist/cjs/schema/marks/background-color.js +28 -3
  12. package/dist/cjs/schema/marks/index.js +12 -0
  13. package/dist/cjs/schema/marks/text-color.js +52 -1
  14. package/dist/cjs/schema/nodes/panel.js +3 -0
  15. package/dist/cjs/schema/sanitizeNodes.js +5 -1
  16. package/dist/cjs/utils/colors.js +10 -1
  17. package/dist/cjs/utils/editor-palette.js +28 -2
  18. package/dist/es2019/entry-points/background-color.js +1 -1
  19. package/dist/es2019/entry-points/schema-background-color.js +1 -1
  20. package/dist/es2019/entry-points/schema-text-color.js +1 -1
  21. package/dist/es2019/entry-points/text-color.js +1 -1
  22. package/dist/es2019/index.js +2 -2
  23. package/dist/es2019/next-schema/generated/nodeTypes.js +1 -1
  24. package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +1 -1
  25. package/dist/es2019/next-schema/nodes/panel.js +2 -1
  26. package/dist/es2019/schema/index.js +2 -2
  27. package/dist/es2019/schema/marks/background-color.js +22 -2
  28. package/dist/es2019/schema/marks/index.js +2 -2
  29. package/dist/es2019/schema/marks/text-color.js +47 -1
  30. package/dist/es2019/schema/nodes/panel.js +4 -0
  31. package/dist/es2019/schema/sanitizeNodes.js +3 -1
  32. package/dist/es2019/utils/colors.js +9 -0
  33. package/dist/es2019/utils/editor-palette.js +28 -2
  34. package/dist/esm/entry-points/background-color.js +1 -1
  35. package/dist/esm/entry-points/schema-background-color.js +1 -1
  36. package/dist/esm/entry-points/schema-text-color.js +1 -1
  37. package/dist/esm/entry-points/text-color.js +1 -1
  38. package/dist/esm/index.js +2 -2
  39. package/dist/esm/next-schema/generated/nodeTypes.js +1 -1
  40. package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +1 -1
  41. package/dist/esm/next-schema/nodes/panel.js +2 -1
  42. package/dist/esm/schema/index.js +2 -2
  43. package/dist/esm/schema/marks/background-color.js +27 -2
  44. package/dist/esm/schema/marks/index.js +2 -2
  45. package/dist/esm/schema/marks/text-color.js +52 -1
  46. package/dist/esm/schema/nodes/panel.js +4 -0
  47. package/dist/esm/schema/sanitizeNodes.js +5 -1
  48. package/dist/esm/utils/colors.js +9 -0
  49. package/dist/esm/utils/editor-palette.js +28 -2
  50. package/dist/types/entry-points/background-color.d.ts +1 -1
  51. package/dist/types/entry-points/schema-background-color.d.ts +1 -1
  52. package/dist/types/entry-points/schema-text-color.d.ts +1 -1
  53. package/dist/types/entry-points/text-color.d.ts +1 -1
  54. package/dist/types/index.d.ts +2 -2
  55. package/dist/types/next-schema/generated/nodeTypes.d.ts +1 -1
  56. package/dist/types/schema/index.d.ts +2 -2
  57. package/dist/types/schema/marks/background-color.d.ts +2 -1
  58. package/dist/types/schema/marks/index.d.ts +2 -2
  59. package/dist/types/schema/marks/text-color.d.ts +2 -1
  60. package/dist/types/schema/nodes/bodied-sync-block.d.ts +2 -2
  61. package/dist/types/schema/nodes/panel.d.ts +15 -0
  62. package/dist/types/utils/colors.d.ts +9 -0
  63. package/dist/types/utils/editor-palette.d.ts +26 -0
  64. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import { textColor as textColorFactory } from '../../next-schema/generated/markTypes';
2
2
  import { hexToEditorTextPaletteColor } from '../../utils/editor-palette';
3
- import { rgbToHex, N0, N80, P50, P300, P500, T75, T300, T500, G75, G300, G500, R75, R300, R500, Y75, Y200, Y400, B75, B100, B500 } from '../../utils/colors';
3
+ import { rgbToHex, N0, N80, P50, P300, P500, T75, T300, T500, G75, G300, G500, R75, R300, R500, Y75, Y200, Y400, B75, B100, B500, Orange200, O600, O800, M200, M600, M800, L200, L600, L800, Y600, Y800 } from '../../utils/colors';
4
4
  import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
5
5
 
6
6
  /**
@@ -52,12 +52,58 @@ const colorArrayPalette = [
52
52
  [P50, 'Light purple'] // Lavender secret
53
53
  ];
54
54
 
55
+ // experiment: platform_editor_lovability_text_bg_color
56
+ const colorArrayPaletteNew = [
57
+ // default row - first color is added programatically
58
+ // [N800, 'Squid ink'], // default dark gray
59
+ [B500, 'Dark blue'],
60
+ // Chore coat
61
+ [T500, 'Dark teal'],
62
+ // Shabby chic
63
+ [G500, 'Dark green'],
64
+ // Keen green
65
+ [L800, 'Dark lime'], [Y800, 'Dark yellow'], [O800, 'Dark orange'], [R500, 'Dark red'],
66
+ // Dragon's blood
67
+ [M800, 'Dark magenta'], [P500, 'Dark purple'],
68
+ // Prince
69
+ // row 2
70
+ [N80, 'Light gray'],
71
+ // Spooky ghost
72
+ [B100, 'Blue'],
73
+ // Arvo breeze
74
+ [T300, 'Teal'],
75
+ // Tamarama
76
+ [G300, 'Green'],
77
+ // Fine pine
78
+ [L600, 'Lime'], [Y600, 'Yellow'],
79
+ // Pub mix
80
+ [O600, 'Orange'], [R300, 'Red'],
81
+ // Poppy surprise
82
+ [M600, 'Magenta'], [P300, 'Purple'],
83
+ // Da' juice
84
+ // row 3
85
+ [N0, 'White'], [B75, 'Light blue'],
86
+ // Schwag
87
+ [T75, 'Light teal'],
88
+ // Arctic chill
89
+ [G75, 'Light green'],
90
+ // Mintie
91
+ [L200, 'Light lime'], [Y75, 'Light yellow'],
92
+ // Dandelion whisper
93
+ [Orange200, 'Light orange'], [R75, 'Light red'],
94
+ // Bondi sunburn
95
+ [M200, 'Light magenta'], [P50, 'Light purple'] // Lavender secret
96
+ ];
97
+
55
98
  // @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/55979455/Colour+picker+decisions#Colourpickerdecisions-Visualdesigndecisions
56
99
  export const colorPalette = new Map();
100
+ export const colorPaletteNew = new Map();
101
+
57
102
  // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
58
103
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
59
104
  export const colorPaletteExtended = colorPalette;
60
105
  colorArrayPalette.forEach(([color, label]) => colorPalette.set(color.toLowerCase(), label));
106
+ colorArrayPaletteNew.forEach(([color, label]) => colorPaletteNew.set(color.toLowerCase(), label));
61
107
 
62
108
  // these are for test only
63
109
  let testGlobalTheme;
@@ -15,6 +15,10 @@ export let PanelType = /*#__PURE__*/function (PanelType) {
15
15
  * @name panel_node
16
16
  */
17
17
 
18
+ /**
19
+ * @name panel_c1_node
20
+ */
21
+
18
22
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
23
  const getDomAttrs = nodeAttrs => {
20
24
  const attrs = {
@@ -19,7 +19,9 @@ function sanitizeNodeSpecContent(nodes, rawContent) {
19
19
  // @ts-ignore TS1501: This regular expression flag is only available when targeting 'es6' or later.
20
20
  const content = rawContent.replace(/\W/gu, ' ');
21
21
  const contentKeys = content.split(' ');
22
- const unsupportedContentKeys = contentKeys.filter(contentKey => !isContentSupported(nodes, contentKey));
22
+ const unsupportedContentKeys = Array.from(new Set(contentKeys.filter(contentKey => !isContentSupported(nodes, contentKey)))
23
+ // Remove longer variant names first so base names like `panel` don't partially strip `panel_c1`.
24
+ ).sort((a, b) => b.length - a.length);
23
25
  return unsupportedContentKeys.reduce((newContent, nodeName) => sanitizedContent(newContent, nodeName), rawContent);
24
26
  }
25
27
 
@@ -21,6 +21,8 @@ export const Y200 = '#FFC400';
21
21
  export const Yellow200 = '#F8E6A0';
22
22
  export const Y400 = '#FF991F';
23
23
  export const Y500 = '#FF8B00';
24
+ export const Y600 = '#B38600';
25
+ export const Y800 = '#7F5F01';
24
26
  export const G50 = '#E3FCEF';
25
27
  export const G75 = '#ABF5D1';
26
28
  export const G200 = '#57D9A3';
@@ -33,6 +35,8 @@ export const B100 = '#4C9AFF';
33
35
  export const B400 = '#0052CC';
34
36
  export const B500 = '#0747A6';
35
37
  export const L200 = '#D3F1A7';
38
+ export const L600 = '#6A9A23';
39
+ export const L800 = '#4C6B1F';
36
40
  export const N0 = '#FFFFFF';
37
41
  export const N20 = '#F4F5F7';
38
42
  export const N30 = '#EBECF0';
@@ -50,7 +54,12 @@ export const N600 = '#758195';
50
54
  export const N800 = '#172B4D';
51
55
  export const N1000 = '#172B4D';
52
56
  export const M200 = '#FDD0EC';
57
+ export const M600 = '#CD519D';
58
+ export const M800 = '#943D73';
53
59
  export const O200 = '#FEDEC8';
60
+ export const Orange200 = '#FCE4A6';
61
+ export const O600 = '#E06C00';
62
+ export const O800 = '#9E4C00';
54
63
  export const P50 = '#EAE6FF';
55
64
  export const P75 = '#C0B6F2';
56
65
  export const P100 = '#998DD9';
@@ -95,7 +95,29 @@ export const editorTextPalette = {
95
95
  /** whiteGray - medium */
96
96
  '#97A0AF': 'var(--ds-icon-accent-gray, #97A0AF)',
97
97
  /** whiteGray - strong */
98
- '#172B4D': 'var(--ds-text, #172B4D)'
98
+ '#172B4D': 'var(--ds-text, #172B4D)',
99
+ /** lime - light */
100
+ '#D3F1A7': 'var(--ds-background-accent-lime-subtler, #D3F1A7)',
101
+ /** lime - medium */
102
+ '#6A9A23': 'var(--ds-icon-accent-lime, #6A9A23)',
103
+ /** lime - strong */
104
+ '#4C6B1F': 'var(--ds-text-accent-lime, #4C6B1F)',
105
+ /** orange - light */
106
+ '#FCE4A6': 'var(--ds-background-accent-orange-subtler, #FCE4A6)',
107
+ /** orange - medium */
108
+ '#E06C00': 'var(--ds-icon-accent-orange, #E06C00)',
109
+ /** orange - strong */
110
+ '#9E4C00': 'var(--ds-text-accent-orange, #9E4C00)',
111
+ /** magenta - light */
112
+ '#FDD0EC': 'var(--ds-background-accent-magenta-subtler, #FDD0EC)',
113
+ /** magenta - medium */
114
+ '#CD519D': 'var(--ds-icon-accent-magenta, #CD519D)',
115
+ /** magenta - strong */
116
+ '#943D73': 'var(--ds-text-accent-magenta, #943D73)',
117
+ /** yellow - medium */
118
+ '#B38600': 'var(--ds-icon-accent-yellow, #B38600)',
119
+ /** yellow - strong */
120
+ '#7F5F01': 'var(--ds-text-accent-yellow, #7F5F01)'
99
121
  };
100
122
 
101
123
  /**
@@ -135,7 +157,11 @@ export const textBackgroundColorPalette = {
135
157
  /** Magenta - light */
136
158
  '#FDD0EC': 'var(--ds-background-accent-magenta-subtler, #FDD0EC)',
137
159
  /** Purple - light */
138
- '#DFD8FD': 'var(--ds-background-accent-purple-subtler, #DFD8FD)'
160
+ '#DFD8FD': 'var(--ds-background-accent-purple-subtler, #DFD8FD)',
161
+ /** Blue - light */
162
+ '#B3D4FF': 'var(--ds-background-accent-blue-subtler, #B3D4FF)',
163
+ /** Green - light */
164
+ '#ABF5D1': 'var(--ds-background-accent-green-subtler, #ABF5D1)'
139
165
  };
140
166
  /**
141
167
  * Takes an ADF hex color and returns the rendered hex code for the associated background palette design token using getTokenValue.
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { backgroundColor, backgroundColorPalette } from '../schema/marks/background-color';
2
+ export { backgroundColor, backgroundColorPalette, backgroundColorPaletteNew } from '../schema/marks/background-color';
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { backgroundColor, backgroundColorPalette } from '../schema/marks/background-color';
2
+ export { backgroundColor, backgroundColorPalette, backgroundColorPaletteNew } from '../schema/marks/background-color';
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { colorPalette, colorPaletteExtended, textColor } from '../schema/marks/text-color';
2
+ export { colorPalette, colorPaletteNew, colorPaletteExtended, textColor } from '../schema/marks/text-color';
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { colorPalette, colorPaletteExtended, textColor } from '../schema/marks/text-color';
2
+ export { colorPalette, colorPaletteNew, colorPaletteExtended, textColor } from '../schema/marks/text-color';
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockToJSON, colorPalette,
2
+ export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockToJSON, colorPalette, colorPaletteNew,
3
3
  // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
4
4
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
5
- 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, heading, image, indentation, inlineCard, inlineCardWithLocalId, inlineExtension, inlineNodes, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, link, linkToJSON, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, 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, blockTaskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from './schema';
5
+ 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, heading, image, indentation, inlineCard, inlineCardWithLocalId, inlineExtension, inlineNodes, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, link, linkToJSON, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, 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, blockTaskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, backgroundColorPaletteNew, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from './schema';
6
6
  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';
7
7
 
8
8
  // ADF createPMSpecFactory
@@ -124,7 +124,7 @@ export var bodiedExtensionWithMarks = createPMNodeSpecFactory({
124
124
  isolating: true
125
125
  });
126
126
  export var bodiedSyncBlock = createPMNodeSpecFactory({
127
- content: '(paragraph | blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel | rule | table | taskList | unsupportedBlock)+',
127
+ content: '(paragraph | blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel | panel_c1 | rule | table | taskList | unsupportedBlock)+',
128
128
  marks: 'unsupportedMark unsupportedNodeAttribute fontSize alignment indentation breakout link fragment',
129
129
  attrs: {
130
130
  resourceId: {
@@ -34,7 +34,7 @@ export var bodiedSyncBlock = adfNode('bodiedSyncBlock').define({
34
34
  default: ''
35
35
  }
36
36
  },
37
- content: [$onePlus($or(paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), blockCard, blockquote, blockquote.use('legacy'), bulletList, codeBlock, confluenceUnsupportedBlock, decisionList, embedCard, expand, heading, heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), mediaGroup, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), orderedList, panel, rule, table,
37
+ content: [$onePlus($or(paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), blockCard, blockquote, blockquote.use('legacy'), bulletList, codeBlock, confluenceUnsupportedBlock, decisionList, embedCard, expand, heading, heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), mediaGroup, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), orderedList, panel, panel.use('c1'), rule, table,
38
38
  // @ts-expect-error - types don't deal well with circular references for the variant
39
39
  table.use('with_nested_table'), taskList, unsupportedBlock))]
40
40
  });
@@ -54,5 +54,6 @@ export var panel = adfNode('panel').define({
54
54
  // panel_c1 allows all standard panel content plus table (wired via addContent
55
55
  // in full-schema.adf.ts to avoid a circular module import).
56
56
  content: [$onePlus($or.apply(void 0, panelContent.concat([extension.use('with_marks')])))],
57
- ignore: ['json-schema', 'validator-spec']
57
+ ignore: ['json-schema', 'validator-spec'],
58
+ preserveVariantNameInPm: true
58
59
  });
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
2
  export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from './nodes';
3
- export { AnnotationTypes, alignment, alignmentPositionMap, annotation, fontSize, breakout, code, colorPalette,
3
+ export { AnnotationTypes, alignment, alignmentPositionMap, annotation, fontSize, breakout, code, colorPalette, colorPaletteNew,
4
4
  // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
5
5
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
6
- colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, backgroundColor, backgroundColorPalette } from './marks';
6
+ colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, backgroundColor, backgroundColorPalette, backgroundColorPaletteNew } from './marks';
7
7
  export { unsupportedNodeTypesForMediaCards } from './unsupported';
8
8
  export { inlineNodes } from './inline-nodes';
9
9
  export { createSchema } from './create-schema';
@@ -1,10 +1,10 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import { backgroundColor as backgroundColorFactory } from '../../next-schema/generated/markTypes';
4
+ import { B75, G75, L200, M200, Neutral300, O200, P200, rgbToHex, T200, Yellow200 } from '../../utils/colors';
4
5
  import { hexToEditorTextBackgroundPaletteColor } from '../../utils/editor-palette';
5
- import { rgbToHex, L200, T200, P200, M200, Neutral300, O200, Yellow200 } from '../../utils/colors';
6
- import { getGlobalTheme } from './text-color';
7
6
  import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
7
+ import { getGlobalTheme } from './text-color';
8
8
 
9
9
  /**
10
10
  * @name backgroundColor_mark
@@ -24,6 +24,24 @@ var colorArrayPalette = [[Neutral300, 'Gray'],
24
24
  // token: color.background.accent.lime.subtler
25
25
  [T200, 'Teal'] // token: color.background.accent.teal.subtler
26
26
  ];
27
+ var colorArrayPaletteNew = [[Neutral300, 'Gray'],
28
+ // token: color.background.accent.gray.subtler
29
+ [B75, 'Blue'],
30
+ // token: color.background.accent.blue.subtler
31
+ [T200, 'Teal'],
32
+ // token: color.background.accent.teal.subtler
33
+ [G75, 'Green'],
34
+ // token: color.background.accent.green.subtler
35
+ [L200, 'Lime'],
36
+ // token: color.background.accent.lime.subtler
37
+ [Yellow200, 'Yellow'],
38
+ // token: color.background.accent.yellow.subtler
39
+ [O200, 'Orange'],
40
+ // token: color.background.accent.orange.subtler
41
+ [M200, 'Magenta'],
42
+ // token: color.background.accent.magenta.subtler
43
+ [P200, 'Purple'] // token: color.background.accent.purple.subtler
44
+ ];
27
45
 
28
46
  // @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/55979455/Colour+picker+decisions#Colourpickerdecisions-Visualdesigndecisions
29
47
  export var backgroundColorPalette = new Map();
@@ -36,6 +54,13 @@ colorArrayPalette.forEach(function (_ref) {
36
54
 
37
55
  // @ts-ignore TS1501: This regular expression flag is only available when targeting 'es6' or later.
38
56
  var RGB_PREFIX_BG_COLOR_REGEX = /^rgb/i;
57
+ export var backgroundColorPaletteNew = new Map();
58
+ colorArrayPaletteNew.forEach(function (_ref3) {
59
+ var _ref4 = _slicedToArray(_ref3, 2),
60
+ color = _ref4[0],
61
+ label = _ref4[1];
62
+ return backgroundColorPaletteNew.set(color.toLowerCase(), label);
63
+ });
39
64
  export var backgroundColor = backgroundColorFactory({
40
65
  parseDOM: [{
41
66
  style: 'background-color',
@@ -7,7 +7,7 @@ export { underline } from './underline';
7
7
  export { link, toJSON as linkToJSON } from './link';
8
8
  export { typeAheadQuery } from './type-ahead-query';
9
9
  export { subsup } from './subsup';
10
- export { textColor, colorPalette, colorPaletteExtended } from './text-color';
10
+ export { textColor, colorPalette, colorPaletteNew, colorPaletteExtended } from './text-color';
11
11
  export { confluenceInlineComment } from './confluence-inline-comment';
12
12
  export { breakout } from './breakout';
13
13
  export { fontSize } from './font-size';
@@ -19,4 +19,4 @@ export { unsupportedNodeAttribute } from './unsupported-node-attributes';
19
19
  export { dataConsumer, toJSON as dataConsumerToJSON } from './data-consumer';
20
20
  export { fragment, toJSON as fragmentToJSON } from './fragment';
21
21
  export { border, borderColorPalette } from './border';
22
- export { backgroundColor, backgroundColorPalette } from './background-color';
22
+ export { backgroundColor, backgroundColorPalette, backgroundColorPaletteNew } from './background-color';
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import { textColor as textColorFactory } from '../../next-schema/generated/markTypes';
4
4
  import { hexToEditorTextPaletteColor } from '../../utils/editor-palette';
5
- import { rgbToHex, N0, N80, P50, P300, P500, T75, T300, T500, G75, G300, G500, R75, R300, R500, Y75, Y200, Y400, B75, B100, B500 } from '../../utils/colors';
5
+ import { rgbToHex, N0, N80, P50, P300, P500, T75, T300, T500, G75, G300, G500, R75, R300, R500, Y75, Y200, Y400, B75, B100, B500, Orange200, O600, O800, M200, M600, M800, L200, L600, L800, Y600, Y800 } from '../../utils/colors';
6
6
  import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
7
7
 
8
8
  /**
@@ -54,8 +54,53 @@ var colorArrayPalette = [
54
54
  [P50, 'Light purple'] // Lavender secret
55
55
  ];
56
56
 
57
+ // experiment: platform_editor_lovability_text_bg_color
58
+ var colorArrayPaletteNew = [
59
+ // default row - first color is added programatically
60
+ // [N800, 'Squid ink'], // default dark gray
61
+ [B500, 'Dark blue'],
62
+ // Chore coat
63
+ [T500, 'Dark teal'],
64
+ // Shabby chic
65
+ [G500, 'Dark green'],
66
+ // Keen green
67
+ [L800, 'Dark lime'], [Y800, 'Dark yellow'], [O800, 'Dark orange'], [R500, 'Dark red'],
68
+ // Dragon's blood
69
+ [M800, 'Dark magenta'], [P500, 'Dark purple'],
70
+ // Prince
71
+ // row 2
72
+ [N80, 'Light gray'],
73
+ // Spooky ghost
74
+ [B100, 'Blue'],
75
+ // Arvo breeze
76
+ [T300, 'Teal'],
77
+ // Tamarama
78
+ [G300, 'Green'],
79
+ // Fine pine
80
+ [L600, 'Lime'], [Y600, 'Yellow'],
81
+ // Pub mix
82
+ [O600, 'Orange'], [R300, 'Red'],
83
+ // Poppy surprise
84
+ [M600, 'Magenta'], [P300, 'Purple'],
85
+ // Da' juice
86
+ // row 3
87
+ [N0, 'White'], [B75, 'Light blue'],
88
+ // Schwag
89
+ [T75, 'Light teal'],
90
+ // Arctic chill
91
+ [G75, 'Light green'],
92
+ // Mintie
93
+ [L200, 'Light lime'], [Y75, 'Light yellow'],
94
+ // Dandelion whisper
95
+ [Orange200, 'Light orange'], [R75, 'Light red'],
96
+ // Bondi sunburn
97
+ [M200, 'Light magenta'], [P50, 'Light purple'] // Lavender secret
98
+ ];
99
+
57
100
  // @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/55979455/Colour+picker+decisions#Colourpickerdecisions-Visualdesigndecisions
58
101
  export var colorPalette = new Map();
102
+ export var colorPaletteNew = new Map();
103
+
59
104
  // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
60
105
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
61
106
  export var colorPaletteExtended = colorPalette;
@@ -65,6 +110,12 @@ colorArrayPalette.forEach(function (_ref) {
65
110
  label = _ref2[1];
66
111
  return colorPalette.set(color.toLowerCase(), label);
67
112
  });
113
+ colorArrayPaletteNew.forEach(function (_ref3) {
114
+ var _ref4 = _slicedToArray(_ref3, 2),
115
+ color = _ref4[0],
116
+ label = _ref4[1];
117
+ return colorPaletteNew.set(color.toLowerCase(), label);
118
+ });
68
119
 
69
120
  // these are for test only
70
121
  var testGlobalTheme;
@@ -18,6 +18,10 @@ export var PanelType = /*#__PURE__*/function (PanelType) {
18
18
  * @name panel_node
19
19
  */
20
20
 
21
+ /**
22
+ * @name panel_c1_node
23
+ */
24
+
21
25
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
22
26
  var getDomAttrs = function getDomAttrs(nodeAttrs) {
23
27
  var attrs = {
@@ -22,8 +22,12 @@ function sanitizeNodeSpecContent(nodes, rawContent) {
22
22
  // @ts-ignore TS1501: This regular expression flag is only available when targeting 'es6' or later.
23
23
  var content = rawContent.replace(/(?:[\0-\/:-@\[-\^`\{-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g, ' ');
24
24
  var contentKeys = content.split(' ');
25
- var unsupportedContentKeys = contentKeys.filter(function (contentKey) {
25
+ var unsupportedContentKeys = Array.from(new Set(contentKeys.filter(function (contentKey) {
26
26
  return !isContentSupported(nodes, contentKey);
27
+ }))
28
+ // Remove longer variant names first so base names like `panel` don't partially strip `panel_c1`.
29
+ ).sort(function (a, b) {
30
+ return b.length - a.length;
27
31
  });
28
32
  return unsupportedContentKeys.reduce(function (newContent, nodeName) {
29
33
  return sanitizedContent(newContent, nodeName);
@@ -22,6 +22,8 @@ export var Y200 = '#FFC400';
22
22
  export var Yellow200 = '#F8E6A0';
23
23
  export var Y400 = '#FF991F';
24
24
  export var Y500 = '#FF8B00';
25
+ export var Y600 = '#B38600';
26
+ export var Y800 = '#7F5F01';
25
27
  export var G50 = '#E3FCEF';
26
28
  export var G75 = '#ABF5D1';
27
29
  export var G200 = '#57D9A3';
@@ -34,6 +36,8 @@ export var B100 = '#4C9AFF';
34
36
  export var B400 = '#0052CC';
35
37
  export var B500 = '#0747A6';
36
38
  export var L200 = '#D3F1A7';
39
+ export var L600 = '#6A9A23';
40
+ export var L800 = '#4C6B1F';
37
41
  export var N0 = '#FFFFFF';
38
42
  export var N20 = '#F4F5F7';
39
43
  export var N30 = '#EBECF0';
@@ -51,7 +55,12 @@ export var N600 = '#758195';
51
55
  export var N800 = '#172B4D';
52
56
  export var N1000 = '#172B4D';
53
57
  export var M200 = '#FDD0EC';
58
+ export var M600 = '#CD519D';
59
+ export var M800 = '#943D73';
54
60
  export var O200 = '#FEDEC8';
61
+ export var Orange200 = '#FCE4A6';
62
+ export var O600 = '#E06C00';
63
+ export var O800 = '#9E4C00';
55
64
  export var P50 = '#EAE6FF';
56
65
  export var P75 = '#C0B6F2';
57
66
  export var P100 = '#998DD9';
@@ -95,7 +95,29 @@ export var editorTextPalette = {
95
95
  /** whiteGray - medium */
96
96
  '#97A0AF': 'var(--ds-icon-accent-gray, #97A0AF)',
97
97
  /** whiteGray - strong */
98
- '#172B4D': 'var(--ds-text, #172B4D)'
98
+ '#172B4D': 'var(--ds-text, #172B4D)',
99
+ /** lime - light */
100
+ '#D3F1A7': 'var(--ds-background-accent-lime-subtler, #D3F1A7)',
101
+ /** lime - medium */
102
+ '#6A9A23': 'var(--ds-icon-accent-lime, #6A9A23)',
103
+ /** lime - strong */
104
+ '#4C6B1F': 'var(--ds-text-accent-lime, #4C6B1F)',
105
+ /** orange - light */
106
+ '#FCE4A6': 'var(--ds-background-accent-orange-subtler, #FCE4A6)',
107
+ /** orange - medium */
108
+ '#E06C00': 'var(--ds-icon-accent-orange, #E06C00)',
109
+ /** orange - strong */
110
+ '#9E4C00': 'var(--ds-text-accent-orange, #9E4C00)',
111
+ /** magenta - light */
112
+ '#FDD0EC': 'var(--ds-background-accent-magenta-subtler, #FDD0EC)',
113
+ /** magenta - medium */
114
+ '#CD519D': 'var(--ds-icon-accent-magenta, #CD519D)',
115
+ /** magenta - strong */
116
+ '#943D73': 'var(--ds-text-accent-magenta, #943D73)',
117
+ /** yellow - medium */
118
+ '#B38600': 'var(--ds-icon-accent-yellow, #B38600)',
119
+ /** yellow - strong */
120
+ '#7F5F01': 'var(--ds-text-accent-yellow, #7F5F01)'
99
121
  };
100
122
 
101
123
  /**
@@ -135,7 +157,11 @@ export var textBackgroundColorPalette = {
135
157
  /** Magenta - light */
136
158
  '#FDD0EC': 'var(--ds-background-accent-magenta-subtler, #FDD0EC)',
137
159
  /** Purple - light */
138
- '#DFD8FD': 'var(--ds-background-accent-purple-subtler, #DFD8FD)'
160
+ '#DFD8FD': 'var(--ds-background-accent-purple-subtler, #DFD8FD)',
161
+ /** Blue - light */
162
+ '#B3D4FF': 'var(--ds-background-accent-blue-subtler, #B3D4FF)',
163
+ /** Green - light */
164
+ '#ABF5D1': 'var(--ds-background-accent-green-subtler, #ABF5D1)'
139
165
  };
140
166
  /**
141
167
  * Takes an ADF hex color and returns the rendered hex code for the associated background palette design token using getTokenValue.
@@ -1,2 +1,2 @@
1
- export { backgroundColor, backgroundColorPalette } from '../schema/marks/background-color';
1
+ export { backgroundColor, backgroundColorPalette, backgroundColorPaletteNew } from '../schema/marks/background-color';
2
2
  export type { BackgroundColorDefinition } from '../schema/marks/background-color';
@@ -1,2 +1,2 @@
1
- export { backgroundColor, backgroundColorPalette } from '../schema/marks/background-color';
1
+ export { backgroundColor, backgroundColorPalette, backgroundColorPaletteNew } from '../schema/marks/background-color';
2
2
  export type { BackgroundColorDefinition } from '../schema/marks/background-color';
@@ -1,2 +1,2 @@
1
- export { colorPalette, colorPaletteExtended, textColor } from '../schema/marks/text-color';
1
+ export { colorPalette, colorPaletteNew, colorPaletteExtended, textColor, } from '../schema/marks/text-color';
2
2
  export type { TextColorAttributes, TextColorDefinition } from '../schema/marks/text-color';
@@ -1,2 +1,2 @@
1
- export { colorPalette, colorPaletteExtended, textColor } from '../schema/marks/text-color';
1
+ export { colorPalette, colorPaletteNew, colorPaletteExtended, textColor, } from '../schema/marks/text-color';
2
2
  export type { TextColorAttributes, TextColorDefinition } from '../schema/marks/text-color';
@@ -1,6 +1,6 @@
1
- export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockToJSON, colorPalette,
1
+ export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockToJSON, colorPalette, colorPaletteNew,
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, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineCardWithLocalId, inlineExtension, inlineNodes, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, link, linkToJSON, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, 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, blockTaskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './schema';
3
+ 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, heading, image, indentation, inlineCard, inlineCardWithLocalId, inlineExtension, inlineNodes, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, link, linkToJSON, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, 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, blockTaskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, backgroundColorPaletteNew, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './schema';
4
4
  export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FontSizeMarkAttrs, FontSizeMarkDefinition, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, 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, SyncBlockDefinition, BodiedSyncBlockDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, BlockTaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, BorderMarkAttributes, BorderMarkDefinition, MultiBodiedExtensionDefinition, ExtensionFrameDefinition, BackgroundColorDefinition, } 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, getDarkModeLCHColor, } from './utils';
6
6
  export type { Match, NameToEmoji } from './utils';
@@ -91,7 +91,7 @@ export type BodiedExtensionWithMarksNode = PMNode & BodiedExtensionWithMarksDefi
91
91
  export declare const bodiedExtensionWithMarks: PMNodeSpecFactoryInstance<BodiedExtensionWithMarksNode>;
92
92
  export interface BodiedSyncBlockDefinition {
93
93
  type: 'bodiedSyncBlock';
94
- content: Array<BlockCardDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BulletListDefinition | CodeBlockDefinition | ConfluenceUnsupportedBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExpandDefinition | HeadingDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | OrderedListDefinition | PanelDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
94
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BulletListDefinition | CodeBlockDefinition | ConfluenceUnsupportedBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExpandDefinition | HeadingDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | OrderedListDefinition | PanelC1Definition | PanelDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
95
95
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
96
96
  attrs: {
97
97
  resourceId: string;
@@ -1,8 +1,8 @@
1
1
  export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './nodes';
2
2
  export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, 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, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, BlockTaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition, } from './nodes';
3
- export { AnnotationTypes, alignment, alignmentPositionMap, annotation, fontSize, breakout, code, colorPalette,
3
+ export { AnnotationTypes, alignment, alignmentPositionMap, annotation, fontSize, breakout, code, colorPalette, colorPaletteNew,
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, border, borderColorPalette, backgroundColor, backgroundColorPalette, } 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, backgroundColor, backgroundColorPalette, backgroundColorPaletteNew, } from './marks';
6
6
  export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, CodeDefinition, EmDefinition, FontSizeMarkAttrs, FontSizeMarkDefinition, FragmentAttributes, FragmentDefinition, IndentationMarkAttributes, IndentationMarkDefinition, LinkAttributes, LinkDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TextColorAttributes, TextColorDefinition, UnderlineDefinition, AnnotationId, AnnotationDataAttributes, DataConsumerAttributes, DataConsumerDefinition, BorderMarkAttributes, BorderMarkDefinition, BackgroundColorDefinition, } from './marks';
7
7
  export { unsupportedNodeTypesForMediaCards } from './unsupported';
8
8
  export { inlineNodes } from './inline-nodes';
@@ -10,6 +10,7 @@ export interface BackgroundColorDefinition {
10
10
  export interface BackgroundColorMark extends Mark {
11
11
  attrs: TextColorAttributes;
12
12
  }
13
- export type BackgroundColorKey = 'Gray' | 'Teal' | 'Lime' | 'Yellow' | 'Orange' | 'Magenta' | 'Purple';
13
+ export type BackgroundColorKey = 'Gray' | 'Teal' | 'Lime' | 'Yellow' | 'Orange' | 'Magenta' | 'Purple' | 'Blue' | 'Green';
14
14
  export declare const backgroundColorPalette: Map<string, BackgroundColorKey>;
15
+ export declare const backgroundColorPaletteNew: Map<string, BackgroundColorKey>;
15
16
  export declare const backgroundColor: MarkSpec;
@@ -13,7 +13,7 @@ export type { LinkAttributes, LinkDefinition } from './link';
13
13
  export { typeAheadQuery } from './type-ahead-query';
14
14
  export { subsup } from './subsup';
15
15
  export type { SubSupDefinition, SubSupAttributes } from './subsup';
16
- export { textColor, colorPalette, colorPaletteExtended } from './text-color';
16
+ export { textColor, colorPalette, colorPaletteNew, colorPaletteExtended } from './text-color';
17
17
  export type { TextColorDefinition, TextColorAttributes } from './text-color';
18
18
  export { confluenceInlineComment } from './confluence-inline-comment';
19
19
  export { breakout } from './breakout';
@@ -34,5 +34,5 @@ export type { FragmentAttributes, FragmentDefinition, LocalId } from './fragment
34
34
  export { fragment, toJSON as fragmentToJSON } from './fragment';
35
35
  export { border, borderColorPalette } from './border';
36
36
  export type { BorderMarkAttributes, BorderMarkDefinition } from './border';
37
- export { backgroundColor, backgroundColorPalette } from './background-color';
37
+ export { backgroundColor, backgroundColorPalette, backgroundColorPaletteNew } from './background-color';
38
38
  export type { BackgroundColorDefinition } from './background-color';