@atlaskit/adf-schema 56.5.5 → 56.6.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.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/entry-points/schema-tableNodes.js +6 -0
- package/dist/cjs/entry-points/tableNodes.js +12 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/schema/index.js +6 -0
- package/dist/cjs/schema/nodes/index.js +6 -0
- package/dist/cjs/schema/nodes/tableNodes.js +39 -2
- package/dist/cjs/utils/colors.js +14 -1
- package/dist/cjs/utils/editor-palette.js +114 -1
- package/dist/es2019/entry-points/schema-tableNodes.js +1 -1
- package/dist/es2019/entry-points/tableNodes.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/schema/nodes/tableNodes.js +36 -2
- package/dist/es2019/utils/colors.js +13 -0
- package/dist/es2019/utils/editor-palette.js +82 -1
- package/dist/esm/entry-points/schema-tableNodes.js +1 -1
- package/dist/esm/entry-points/tableNodes.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/schema/nodes/tableNodes.js +39 -2
- package/dist/esm/utils/colors.js +13 -0
- package/dist/esm/utils/editor-palette.js +114 -1
- package/dist/types/entry-points/schema-tableNodes.d.ts +1 -1
- package/dist/types/entry-points/tableNodes.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/index.d.ts +1 -1
- package/dist/types/schema/nodes/tableNodes.d.ts +25 -0
- package/dist/types/utils/colors.d.ts +13 -0
- package/dist/types/utils/editor-palette.d.ts +80 -0
- package/package.json +2 -2
|
@@ -188,7 +188,6 @@ export const textBackgroundColorPalette = {
|
|
|
188
188
|
export function hexToEditorBackgroundPaletteRawValue(hexColor) {
|
|
189
189
|
// Ts ignore was used to allow use of conditional return type
|
|
190
190
|
// (preferencing better type on consumption over safety in implementation)
|
|
191
|
-
// @ts-ignore
|
|
192
191
|
const tokenData = hexColor ? editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
|
193
192
|
// @ts-expect-error
|
|
194
193
|
return tokenData ? tokenData.getValue(hexColor) : undefined;
|
|
@@ -303,6 +302,88 @@ export const editorBackgroundPalette = {
|
|
|
303
302
|
'#B3BAC5': {
|
|
304
303
|
getValue: () => '#B3BAC5',
|
|
305
304
|
token: 'var(--ds-background-accent-gray-subtle, #B3BAC5)'
|
|
305
|
+
},
|
|
306
|
+
/** lime - light */
|
|
307
|
+
'#EFFFD6': {
|
|
308
|
+
getValue: () => '#EFFFD6',
|
|
309
|
+
token: 'var(--ds-background-accent-lime-subtlest, #EFFFD6)'
|
|
310
|
+
},
|
|
311
|
+
/** lime - medium */
|
|
312
|
+
'#D3F1A7': {
|
|
313
|
+
getValue: () => '#D3F1A7',
|
|
314
|
+
token: 'var(--ds-background-accent-lime-subtler, #D3F1A7)'
|
|
315
|
+
},
|
|
316
|
+
/** lime - bold */
|
|
317
|
+
'#BDE97C': {
|
|
318
|
+
getValue: () => '#BDE97C',
|
|
319
|
+
token: 'var(--ds-background-accent-lime-subtler-hovered, #BDE97C)'
|
|
320
|
+
},
|
|
321
|
+
/** orange - light */
|
|
322
|
+
'#FFF5DB': {
|
|
323
|
+
getValue: () => '#FFF5DB',
|
|
324
|
+
token: 'var(--ds-background-accent-orange-subtlest, #FFF5DB)'
|
|
325
|
+
},
|
|
326
|
+
/** orange - medium */
|
|
327
|
+
'#FCE4A6': {
|
|
328
|
+
getValue: () => '#FCE4A6',
|
|
329
|
+
token: 'var(--ds-background-accent-orange-subtler, #FCE4A6)'
|
|
330
|
+
},
|
|
331
|
+
/** orange - bold */
|
|
332
|
+
'#FBD779': {
|
|
333
|
+
getValue: () => '#FBD779',
|
|
334
|
+
token: 'var(--ds-background-accent-orange-subtler-hovered, #FBD779)'
|
|
335
|
+
},
|
|
336
|
+
/** magenta - light */
|
|
337
|
+
'#FFECF8': {
|
|
338
|
+
getValue: () => '#FFECF8',
|
|
339
|
+
token: 'var(--ds-background-accent-magenta-subtlest, #FFECF8)'
|
|
340
|
+
},
|
|
341
|
+
/** magenta - medium */
|
|
342
|
+
'#FDD0EC': {
|
|
343
|
+
getValue: () => '#FDD0EC',
|
|
344
|
+
token: 'var(--ds-background-accent-magenta-subtler, #FDD0EC)'
|
|
345
|
+
},
|
|
346
|
+
/** magenta - bold */
|
|
347
|
+
'#FCB6E1': {
|
|
348
|
+
getValue: () => '#FCB6E1',
|
|
349
|
+
token: 'var(--ds-background-accent-magenta-subtler-hovered, #FCB6E1)'
|
|
350
|
+
},
|
|
351
|
+
// Bold row mappings using subtler.hovered tokens. These use new hex codes
|
|
352
|
+
// so pre-existing documents keep their old subtle-token mappings above.
|
|
353
|
+
/** blue - bold */
|
|
354
|
+
'#ADCBFB': {
|
|
355
|
+
getValue: () => '#ADCBFB',
|
|
356
|
+
token: 'var(--ds-background-accent-blue-subtler-hovered, #ADCBFB)'
|
|
357
|
+
},
|
|
358
|
+
/** teal - bold */
|
|
359
|
+
'#B1E4F7': {
|
|
360
|
+
getValue: () => '#B1E4F7',
|
|
361
|
+
token: 'var(--ds-background-accent-teal-subtler-hovered, #B1E4F7)'
|
|
362
|
+
},
|
|
363
|
+
/** green - bold */
|
|
364
|
+
'#97EDC9': {
|
|
365
|
+
getValue: () => '#97EDC9',
|
|
366
|
+
token: 'var(--ds-background-accent-green-subtler-hovered, #97EDC9)'
|
|
367
|
+
},
|
|
368
|
+
/** yellow - bold */
|
|
369
|
+
'#EFDD4E': {
|
|
370
|
+
getValue: () => '#EFDD4E',
|
|
371
|
+
token: 'var(--ds-background-accent-yellow-subtler-hovered, #EFDD4E)'
|
|
372
|
+
},
|
|
373
|
+
/** red - bold */
|
|
374
|
+
'#FFB8B2': {
|
|
375
|
+
getValue: () => '#FFB8B2',
|
|
376
|
+
token: 'var(--ds-background-accent-red-subtler-hovered, #FFB8B2)'
|
|
377
|
+
},
|
|
378
|
+
/** purple - bold */
|
|
379
|
+
'#E3BDFA': {
|
|
380
|
+
getValue: () => '#E3BDFA',
|
|
381
|
+
token: 'var(--ds-background-accent-purple-subtler-hovered, #E3BDFA)'
|
|
382
|
+
},
|
|
383
|
+
/** gray - bold */
|
|
384
|
+
'#B7B9BE': {
|
|
385
|
+
getValue: () => '#B7B9BE',
|
|
386
|
+
token: 'var(--ds-background-accent-gray-subtler-hovered, #B7B9BE)'
|
|
306
387
|
}
|
|
307
388
|
};
|
|
308
389
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, toJSONTableCell, toJSONTableHeader, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from '../schema/nodes/tableNodes';
|
|
2
|
+
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableBackgroundColorPaletteNew, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, toJSONTableCell, toJSONTableHeader, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from '../schema/nodes/tableNodes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, toJSONTableCell, toJSONTableHeader, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from '../schema/nodes/tableNodes';
|
|
2
|
+
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNameByHex, tableBackgroundColorNames, tableBackgroundColorPalette, tableBackgroundColorPaletteNew, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, toJSONTableCell, toJSONTableHeader, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from '../schema/nodes/tableNodes';
|
package/dist/esm/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
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,
|
|
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, tableBackgroundColorPaletteNew, 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';
|
|
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
|
package/dist/esm/schema/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bodiedExtensionRootOnlyStage0, 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, extensionRootOnlyStage0, 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, extendedPanelRootOnlyStage0, extendedPanelC1RootOnlyStage0, 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, multiBodiedExtensionRootOnlyStage0, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from './nodes';
|
|
2
|
+
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bodiedExtensionRootOnlyStage0, 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, extensionRootOnlyStage0, 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, extendedPanelRootOnlyStage0, extendedPanelC1RootOnlyStage0, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableBackgroundColorPaletteNew, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, multiBodiedExtensionRootOnlyStage0, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from './nodes';
|
|
3
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. */
|
|
@@ -24,7 +24,7 @@ export { media, copyPrivateAttributes as copyPrivateMediaAttributes, toJSON as m
|
|
|
24
24
|
export { mediaGroup } from './media-group';
|
|
25
25
|
export { mediaInline } from './media-inline';
|
|
26
26
|
export { mediaSingle, mediaSingleSpec, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, toJSON as mediaSingleToJSON } from './media-single';
|
|
27
|
-
export { table, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector } from './tableNodes';
|
|
27
|
+
export { table, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundColorPaletteNew, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector } from './tableNodes';
|
|
28
28
|
export { decisionList, decisionListSelector } from './decision-list';
|
|
29
29
|
export { decisionItem } from './decision-item';
|
|
30
30
|
export { taskList, taskListSelector } from './task-list';
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import { hexToEditorBackgroundPaletteRawValue } from '../../utils/editor-palette';
|
|
6
|
-
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';
|
|
6
|
+
import { B100, B50, B75, BlueBold, G200, G50, G75, GrayBold, GreenBold, hexToRgba, isHex, isRgb, L200, L400, L50, M200, M400, M50, N0, N20, N60, N800, Orange200, Orange400, Orange50, P100, P50, P75, PurpleBold, R100, R50, R75, RedBold, rgbToHex, T100, T50, T75, TealBold, Y200, Y50, Y75, YellowBold } from '../../utils/colors';
|
|
7
7
|
import { uuid } from '../../utils/uuid';
|
|
8
8
|
import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
|
|
9
9
|
import { table as tableFactory, tableWithNestedTable as tableWithNestedTableFactory, tableRow as tableRowFactory, tableRowWithNestedTable as tableRowWithNestedTableFactory, tableHeader as tableHeaderFactory, tableHeaderWithNestedTable as tableHeaderWithNestedTableFactory, tableCell as tableCellFactory, tableCellWithNestedTable as tableCellWithNestedTableFactory } from '../../next-schema/generated/nodeTypes';
|
|
@@ -175,7 +175,7 @@ export var getCellDomAttrs = function getCellDomAttrs(node) {
|
|
|
175
175
|
attrs['data-cell-background'] = color;
|
|
176
176
|
}
|
|
177
177
|
if (typeof color === 'string') {
|
|
178
|
-
attrs.colorname =
|
|
178
|
+
attrs.colorname = tableBackgroundColorNameByHex.get(color.toLowerCase());
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}
|
|
@@ -193,14 +193,51 @@ export var getCellDomAttrs = function getCellDomAttrs(node) {
|
|
|
193
193
|
return attrs;
|
|
194
194
|
};
|
|
195
195
|
export var tableBackgroundColorPalette = new Map();
|
|
196
|
+
/**
|
|
197
|
+
* Expanded 10-column (30-entry) palette. Compared with {@link tableBackgroundColorPalette} it adds
|
|
198
|
+
* lime, orange and magenta columns, and replaces the `Gray` / `Dark *` row with a bold row built on
|
|
199
|
+
* `subtler.hovered` design tokens.
|
|
200
|
+
*
|
|
201
|
+
* NOTE: it is *not* a superset of {@link tableBackgroundColorPalette} — the bold row uses different
|
|
202
|
+
* hex codes, so the earlier row's colours are absent here. Use this map only to build the colour
|
|
203
|
+
* picker. To resolve a colour a document may already contain, use
|
|
204
|
+
* {@link tableBackgroundColorNameByHex}, which spans both palettes.
|
|
205
|
+
*/
|
|
206
|
+
export var tableBackgroundColorPaletteNew = new Map();
|
|
196
207
|
export var tableBackgroundBorderColor = hexToRgba(N800, 0.12) || N0;
|
|
208
|
+
/**
|
|
209
|
+
* Colour name -> hex, and its inverse {@link tableBackgroundColorNameByHex}, covering the colours of
|
|
210
|
+
* {@link tableBackgroundColorPalette} and {@link tableBackgroundColorPaletteNew} together.
|
|
211
|
+
*
|
|
212
|
+
* These drive the themed CSS variables and `td[colorname=...]` overrides in editor-core and
|
|
213
|
+
* renderer, so they must span both palettes: the hex is stored in ADF, which outlives whichever
|
|
214
|
+
* palette produced it, and is read back by the editor, the renderer and Confluence export. Resolving
|
|
215
|
+
* against only one palette would leave cells coloured from the other rendering untokenised, or with
|
|
216
|
+
* no background at all.
|
|
217
|
+
*/
|
|
197
218
|
export var tableBackgroundColorNames = new Map();
|
|
219
|
+
/**
|
|
220
|
+
* Hex -> colour name, the inverse of {@link tableBackgroundColorNames}. Also spans both palettes.
|
|
221
|
+
*/
|
|
222
|
+
export var tableBackgroundColorNameByHex = new Map();
|
|
223
|
+
|
|
224
|
+
// Original 7-column palette — kept as the default export so external consumers
|
|
225
|
+
// are not broken. When cleaning up the platform_editor_lovability_text_bg_color experiment, check if this can be removed
|
|
198
226
|
[[N0, 'White'], [B50, 'Light blue'], [T50, 'Light teal'], [G50, 'Light green'], [Y50, 'Light yellow'], [R50, 'Light red'], [P50, 'Light purple'], [N20, 'Light gray'], [B75, 'Blue'], [T75, 'Teal'], [G75, 'Green'], [Y75, 'Yellow'], [R75, 'Red'], [P75, 'Purple'], [N60, 'Gray'], [B100, 'Dark blue'], [T100, 'Dark teal'], [G200, 'Dark green'], [Y200, 'Dark yellow'], [R100, 'Dark red'], [P100, 'Dark purple']].forEach(function (_ref) {
|
|
199
227
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
200
228
|
colorValue = _ref2[0],
|
|
201
229
|
colorName = _ref2[1];
|
|
202
230
|
tableBackgroundColorPalette.set(colorValue.toLowerCase(), colorName);
|
|
203
231
|
tableBackgroundColorNames.set(colorName.toLowerCase(), colorValue.toLowerCase());
|
|
232
|
+
tableBackgroundColorNameByHex.set(colorValue.toLowerCase(), colorName);
|
|
233
|
+
});
|
|
234
|
+
[[N0, 'White'], [B50, 'Light blue'], [T50, 'Light teal'], [G50, 'Light green'], [L50, 'Subtle lime'], [Y50, 'Light yellow'], [Orange50, 'Subtle orange'], [R50, 'Light red'], [M50, 'Subtle magenta'], [P50, 'Light purple'], [N20, 'Light gray'], [B75, 'Blue'], [T75, 'Teal'], [G75, 'Green'], [L200, 'Lime'], [Y75, 'Yellow'], [Orange200, 'Orange'], [R75, 'Red'], [M200, 'Magenta'], [P75, 'Purple'], [GrayBold, 'Bold gray'], [BlueBold, 'Bold blue'], [TealBold, 'Bold teal'], [GreenBold, 'Bold green'], [L400, 'Bold lime'], [YellowBold, 'Bold yellow'], [Orange400, 'Bold orange'], [RedBold, 'Bold red'], [M400, 'Bold magenta'], [PurpleBold, 'Bold purple']].forEach(function (_ref3) {
|
|
235
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
236
|
+
colorValue = _ref4[0],
|
|
237
|
+
colorName = _ref4[1];
|
|
238
|
+
tableBackgroundColorPaletteNew.set(colorValue.toLowerCase(), colorName);
|
|
239
|
+
tableBackgroundColorNames.set(colorName.toLowerCase(), colorValue.toLowerCase());
|
|
240
|
+
tableBackgroundColorNameByHex.set(colorValue.toLowerCase(), colorName);
|
|
204
241
|
});
|
|
205
242
|
|
|
206
243
|
/**
|
package/dist/esm/utils/colors.js
CHANGED
|
@@ -13,6 +13,7 @@ import * as namedColors from 'css-color-names';
|
|
|
13
13
|
export var R50 = '#FFEBE6';
|
|
14
14
|
export var R75 = '#FFBDAD';
|
|
15
15
|
export var R100 = '#FF8F73';
|
|
16
|
+
export var RedBold = '#FFB8B2';
|
|
16
17
|
export var R200 = '#FFD5D2';
|
|
17
18
|
export var R300 = '#FF5630';
|
|
18
19
|
export var R400 = '#DE350B';
|
|
@@ -20,6 +21,7 @@ export var R500 = '#BF2600';
|
|
|
20
21
|
export var Y50 = '#FFFAE6';
|
|
21
22
|
export var Y75 = '#FFF0B3';
|
|
22
23
|
export var Y200 = '#FFC400';
|
|
24
|
+
export var YellowBold = '#EFDD4E';
|
|
23
25
|
export var Yellow200 = '#F8E6A0';
|
|
24
26
|
export var Y400 = '#FF991F';
|
|
25
27
|
export var Y500 = '#FF8B00';
|
|
@@ -28,15 +30,19 @@ export var Y800 = '#7F5F01';
|
|
|
28
30
|
export var G50 = '#E3FCEF';
|
|
29
31
|
export var G75 = '#ABF5D1';
|
|
30
32
|
export var G200 = '#57D9A3';
|
|
33
|
+
export var GreenBold = '#97EDC9';
|
|
31
34
|
export var G300 = '#36B37E';
|
|
32
35
|
export var G400 = '#00875A';
|
|
33
36
|
export var G500 = '#006644';
|
|
34
37
|
export var B50 = '#DEEBFF';
|
|
35
38
|
export var B75 = '#B3D4FF';
|
|
36
39
|
export var B100 = '#4C9AFF';
|
|
40
|
+
export var BlueBold = '#ADCBFB';
|
|
37
41
|
export var B400 = '#0052CC';
|
|
38
42
|
export var B500 = '#0747A6';
|
|
43
|
+
export var L50 = '#EFFFD6';
|
|
39
44
|
export var L200 = '#D3F1A7';
|
|
45
|
+
export var L400 = '#BDE97C';
|
|
40
46
|
export var L600 = '#6A9A23';
|
|
41
47
|
export var L800 = '#4C6B1F';
|
|
42
48
|
export var N0 = '#FFFFFF';
|
|
@@ -45,6 +51,7 @@ export var N30 = '#EBECF0';
|
|
|
45
51
|
export var N40 = '#DFE1E6';
|
|
46
52
|
export var N50 = '#C1C7D0';
|
|
47
53
|
export var N60 = '#B3BAC5';
|
|
54
|
+
export var GrayBold = '#B7B9BE';
|
|
48
55
|
export var N80 = '#97A0AF';
|
|
49
56
|
export var N90 = '#8993A4';
|
|
50
57
|
export var N200 = '#6B778C';
|
|
@@ -55,16 +62,21 @@ export var N500 = '#42526E';
|
|
|
55
62
|
export var N600 = '#758195';
|
|
56
63
|
export var N800 = '#172B4D';
|
|
57
64
|
export var N1000 = '#172B4D';
|
|
65
|
+
export var M50 = '#FFECF8';
|
|
58
66
|
export var M200 = '#FDD0EC';
|
|
67
|
+
export var M400 = '#FCB6E1';
|
|
59
68
|
export var M600 = '#CD519D';
|
|
60
69
|
export var M800 = '#943D73';
|
|
61
70
|
export var O200 = '#FEDEC8';
|
|
71
|
+
export var Orange50 = '#FFF5DB';
|
|
62
72
|
export var Orange200 = '#FCE4A6';
|
|
73
|
+
export var Orange400 = '#FBD779';
|
|
63
74
|
export var O600 = '#E06C00';
|
|
64
75
|
export var O800 = '#9E4C00';
|
|
65
76
|
export var P50 = '#EAE6FF';
|
|
66
77
|
export var P75 = '#C0B6F2';
|
|
67
78
|
export var P100 = '#998DD9';
|
|
79
|
+
export var PurpleBold = '#E3BDFA';
|
|
68
80
|
export var P200 = '#DFD8FD';
|
|
69
81
|
export var P300 = '#6554C0';
|
|
70
82
|
export var P400 = '#5243AA';
|
|
@@ -72,6 +84,7 @@ export var P500 = '#403294';
|
|
|
72
84
|
export var T50 = '#E6FCFF';
|
|
73
85
|
export var T75 = '#B3F5FF';
|
|
74
86
|
export var T100 = '#79E2F2';
|
|
87
|
+
export var TealBold = '#B1E4F7';
|
|
75
88
|
export var T200 = '#C6EDFB';
|
|
76
89
|
export var T300 = '#00B8D9';
|
|
77
90
|
export var T500 = '#008DA6';
|
|
@@ -186,7 +186,6 @@ export var textBackgroundColorPalette = {
|
|
|
186
186
|
export function hexToEditorBackgroundPaletteRawValue(hexColor) {
|
|
187
187
|
// Ts ignore was used to allow use of conditional return type
|
|
188
188
|
// (preferencing better type on consumption over safety in implementation)
|
|
189
|
-
// @ts-ignore
|
|
190
189
|
var tokenData = hexColor ? editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
|
191
190
|
// @ts-expect-error
|
|
192
191
|
return tokenData ? tokenData.getValue(hexColor) : undefined;
|
|
@@ -343,6 +342,120 @@ export var editorBackgroundPalette = {
|
|
|
343
342
|
return '#B3BAC5';
|
|
344
343
|
},
|
|
345
344
|
token: 'var(--ds-background-accent-gray-subtle, #B3BAC5)'
|
|
345
|
+
},
|
|
346
|
+
/** lime - light */
|
|
347
|
+
'#EFFFD6': {
|
|
348
|
+
getValue: function getValue() {
|
|
349
|
+
return '#EFFFD6';
|
|
350
|
+
},
|
|
351
|
+
token: 'var(--ds-background-accent-lime-subtlest, #EFFFD6)'
|
|
352
|
+
},
|
|
353
|
+
/** lime - medium */
|
|
354
|
+
'#D3F1A7': {
|
|
355
|
+
getValue: function getValue() {
|
|
356
|
+
return '#D3F1A7';
|
|
357
|
+
},
|
|
358
|
+
token: 'var(--ds-background-accent-lime-subtler, #D3F1A7)'
|
|
359
|
+
},
|
|
360
|
+
/** lime - bold */
|
|
361
|
+
'#BDE97C': {
|
|
362
|
+
getValue: function getValue() {
|
|
363
|
+
return '#BDE97C';
|
|
364
|
+
},
|
|
365
|
+
token: 'var(--ds-background-accent-lime-subtler-hovered, #BDE97C)'
|
|
366
|
+
},
|
|
367
|
+
/** orange - light */
|
|
368
|
+
'#FFF5DB': {
|
|
369
|
+
getValue: function getValue() {
|
|
370
|
+
return '#FFF5DB';
|
|
371
|
+
},
|
|
372
|
+
token: 'var(--ds-background-accent-orange-subtlest, #FFF5DB)'
|
|
373
|
+
},
|
|
374
|
+
/** orange - medium */
|
|
375
|
+
'#FCE4A6': {
|
|
376
|
+
getValue: function getValue() {
|
|
377
|
+
return '#FCE4A6';
|
|
378
|
+
},
|
|
379
|
+
token: 'var(--ds-background-accent-orange-subtler, #FCE4A6)'
|
|
380
|
+
},
|
|
381
|
+
/** orange - bold */
|
|
382
|
+
'#FBD779': {
|
|
383
|
+
getValue: function getValue() {
|
|
384
|
+
return '#FBD779';
|
|
385
|
+
},
|
|
386
|
+
token: 'var(--ds-background-accent-orange-subtler-hovered, #FBD779)'
|
|
387
|
+
},
|
|
388
|
+
/** magenta - light */
|
|
389
|
+
'#FFECF8': {
|
|
390
|
+
getValue: function getValue() {
|
|
391
|
+
return '#FFECF8';
|
|
392
|
+
},
|
|
393
|
+
token: 'var(--ds-background-accent-magenta-subtlest, #FFECF8)'
|
|
394
|
+
},
|
|
395
|
+
/** magenta - medium */
|
|
396
|
+
'#FDD0EC': {
|
|
397
|
+
getValue: function getValue() {
|
|
398
|
+
return '#FDD0EC';
|
|
399
|
+
},
|
|
400
|
+
token: 'var(--ds-background-accent-magenta-subtler, #FDD0EC)'
|
|
401
|
+
},
|
|
402
|
+
/** magenta - bold */
|
|
403
|
+
'#FCB6E1': {
|
|
404
|
+
getValue: function getValue() {
|
|
405
|
+
return '#FCB6E1';
|
|
406
|
+
},
|
|
407
|
+
token: 'var(--ds-background-accent-magenta-subtler-hovered, #FCB6E1)'
|
|
408
|
+
},
|
|
409
|
+
// Bold row mappings using subtler.hovered tokens. These use new hex codes
|
|
410
|
+
// so pre-existing documents keep their old subtle-token mappings above.
|
|
411
|
+
/** blue - bold */
|
|
412
|
+
'#ADCBFB': {
|
|
413
|
+
getValue: function getValue() {
|
|
414
|
+
return '#ADCBFB';
|
|
415
|
+
},
|
|
416
|
+
token: 'var(--ds-background-accent-blue-subtler-hovered, #ADCBFB)'
|
|
417
|
+
},
|
|
418
|
+
/** teal - bold */
|
|
419
|
+
'#B1E4F7': {
|
|
420
|
+
getValue: function getValue() {
|
|
421
|
+
return '#B1E4F7';
|
|
422
|
+
},
|
|
423
|
+
token: 'var(--ds-background-accent-teal-subtler-hovered, #B1E4F7)'
|
|
424
|
+
},
|
|
425
|
+
/** green - bold */
|
|
426
|
+
'#97EDC9': {
|
|
427
|
+
getValue: function getValue() {
|
|
428
|
+
return '#97EDC9';
|
|
429
|
+
},
|
|
430
|
+
token: 'var(--ds-background-accent-green-subtler-hovered, #97EDC9)'
|
|
431
|
+
},
|
|
432
|
+
/** yellow - bold */
|
|
433
|
+
'#EFDD4E': {
|
|
434
|
+
getValue: function getValue() {
|
|
435
|
+
return '#EFDD4E';
|
|
436
|
+
},
|
|
437
|
+
token: 'var(--ds-background-accent-yellow-subtler-hovered, #EFDD4E)'
|
|
438
|
+
},
|
|
439
|
+
/** red - bold */
|
|
440
|
+
'#FFB8B2': {
|
|
441
|
+
getValue: function getValue() {
|
|
442
|
+
return '#FFB8B2';
|
|
443
|
+
},
|
|
444
|
+
token: 'var(--ds-background-accent-red-subtler-hovered, #FFB8B2)'
|
|
445
|
+
},
|
|
446
|
+
/** purple - bold */
|
|
447
|
+
'#E3BDFA': {
|
|
448
|
+
getValue: function getValue() {
|
|
449
|
+
return '#E3BDFA';
|
|
450
|
+
},
|
|
451
|
+
token: 'var(--ds-background-accent-purple-subtler-hovered, #E3BDFA)'
|
|
452
|
+
},
|
|
453
|
+
/** gray - bold */
|
|
454
|
+
'#B7B9BE': {
|
|
455
|
+
getValue: function getValue() {
|
|
456
|
+
return '#B7B9BE';
|
|
457
|
+
},
|
|
458
|
+
token: 'var(--ds-background-accent-gray-subtler-hovered, #B7B9BE)'
|
|
346
459
|
}
|
|
347
460
|
};
|
|
348
461
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, toJSONTableCell, toJSONTableHeader, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from '../schema/nodes/tableNodes';
|
|
1
|
+
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableBackgroundColorPaletteNew, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, toJSONTableCell, toJSONTableHeader, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from '../schema/nodes/tableNodes';
|
|
2
2
|
export type { CellAttributes, TableAttributes, TableCell as TableCellDefinition, TableDefinition, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, DisplayMode as TableDisplayMode, TableHeader as TableHeaderDefinition, Layout as TableLayout, TableRow as TableRowDefinition, CellDomAttrs, } from '../schema/nodes/tableNodes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, toJSONTableCell, toJSONTableHeader, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from '../schema/nodes/tableNodes';
|
|
1
|
+
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNameByHex, tableBackgroundColorNames, tableBackgroundColorPalette, tableBackgroundColorPaletteNew, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, toJSONTableCell, toJSONTableHeader, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from '../schema/nodes/tableNodes';
|
|
2
2
|
export type { CellAttributes, TableAttributes, TableCell as TableCellDefinition, TableDefinition, DisplayMode as TableDisplayMode, TableHeader as TableHeaderDefinition, Layout as TableLayout, TableRow as TableRowDefinition, CellDomAttrs, } from '../schema/nodes/tableNodes';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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,
|
|
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, tableBackgroundColorPaletteNew, 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';
|
|
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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bodiedExtensionRootOnlyStage0, 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, extensionRootOnlyStage0, 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, extendedPanelRootOnlyStage0, extendedPanelC1RootOnlyStage0, 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, multiBodiedExtensionRootOnlyStage0, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './nodes';
|
|
1
|
+
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bodiedExtensionRootOnlyStage0, 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, extensionRootOnlyStage0, 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, extendedPanelRootOnlyStage0, extendedPanelC1RootOnlyStage0, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableBackgroundColorPaletteNew, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, multiBodiedExtensionRootOnlyStage0, 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, BodiedExtensionRootOnlyDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionRootOnlyDefinition, 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, MultiBodiedExtensionRootOnlyDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition, } from './nodes';
|
|
3
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. */
|
|
@@ -43,7 +43,7 @@ export type { MediaInlineAttributes, MediaInlineDefinition } from './media-inlin
|
|
|
43
43
|
export type { MediaGroupDefinition } from './media-group';
|
|
44
44
|
export { mediaSingle, mediaSingleSpec, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, toJSON as mediaSingleToJSON, } from './media-single';
|
|
45
45
|
export type { MediaSingleDefinition } from './media-single';
|
|
46
|
-
export { table, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector, } from './tableNodes';
|
|
46
|
+
export { table, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundColorPaletteNew, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector, } from './tableNodes';
|
|
47
47
|
export type { DisplayMode as TableDisplayMode, TableAttributes, CellAttributes, Layout as TableLayout, TableDefinition, TableCell as TableCellDefinition, TableHeader as TableHeaderDefinition, TableRow as TableRowDefinition, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, CellDomAttrs, } from './tableNodes';
|
|
48
48
|
export { decisionList, decisionListSelector } from './decision-list';
|
|
49
49
|
export type { DecisionListDefinition } from './decision-list';
|
|
@@ -55,8 +55,33 @@ export declare const setGlobalTheme: (theme: string) => void;
|
|
|
55
55
|
*/
|
|
56
56
|
export declare const getCellDomAttrs: (node: PmNode) => CellDomAttrs;
|
|
57
57
|
export declare const tableBackgroundColorPalette: Map<string, string>;
|
|
58
|
+
/**
|
|
59
|
+
* Expanded 10-column (30-entry) palette. Compared with {@link tableBackgroundColorPalette} it adds
|
|
60
|
+
* lime, orange and magenta columns, and replaces the `Gray` / `Dark *` row with a bold row built on
|
|
61
|
+
* `subtler.hovered` design tokens.
|
|
62
|
+
*
|
|
63
|
+
* NOTE: it is *not* a superset of {@link tableBackgroundColorPalette} — the bold row uses different
|
|
64
|
+
* hex codes, so the earlier row's colours are absent here. Use this map only to build the colour
|
|
65
|
+
* picker. To resolve a colour a document may already contain, use
|
|
66
|
+
* {@link tableBackgroundColorNameByHex}, which spans both palettes.
|
|
67
|
+
*/
|
|
68
|
+
export declare const tableBackgroundColorPaletteNew: Map<string, string>;
|
|
58
69
|
export declare const tableBackgroundBorderColor: string;
|
|
70
|
+
/**
|
|
71
|
+
* Colour name -> hex, and its inverse {@link tableBackgroundColorNameByHex}, covering the colours of
|
|
72
|
+
* {@link tableBackgroundColorPalette} and {@link tableBackgroundColorPaletteNew} together.
|
|
73
|
+
*
|
|
74
|
+
* These drive the themed CSS variables and `td[colorname=...]` overrides in editor-core and
|
|
75
|
+
* renderer, so they must span both palettes: the hex is stored in ADF, which outlives whichever
|
|
76
|
+
* palette produced it, and is read back by the editor, the renderer and Confluence export. Resolving
|
|
77
|
+
* against only one palette would leave cells coloured from the other rendering untokenised, or with
|
|
78
|
+
* no background at all.
|
|
79
|
+
*/
|
|
59
80
|
export declare const tableBackgroundColorNames: Map<string, string>;
|
|
81
|
+
/**
|
|
82
|
+
* Hex -> colour name, the inverse of {@link tableBackgroundColorNames}. Also spans both palettes.
|
|
83
|
+
*/
|
|
84
|
+
export declare const tableBackgroundColorNameByHex: Map<string, string>;
|
|
60
85
|
export type DisplayMode = 'default' | 'fixed';
|
|
61
86
|
export type Layout = 'default' | 'full-width' | 'wide' | 'center' | 'align-start' | 'align-end';
|
|
62
87
|
export interface TableAttributes {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
export declare const R50 = "#FFEBE6";
|
|
8
8
|
export declare const R75 = "#FFBDAD";
|
|
9
9
|
export declare const R100 = "#FF8F73";
|
|
10
|
+
export declare const RedBold = "#FFB8B2";
|
|
10
11
|
export declare const R200 = "#FFD5D2";
|
|
11
12
|
export declare const R300 = "#FF5630";
|
|
12
13
|
export declare const R400 = "#DE350B";
|
|
@@ -14,6 +15,7 @@ export declare const R500 = "#BF2600";
|
|
|
14
15
|
export declare const Y50 = "#FFFAE6";
|
|
15
16
|
export declare const Y75 = "#FFF0B3";
|
|
16
17
|
export declare const Y200 = "#FFC400";
|
|
18
|
+
export declare const YellowBold = "#EFDD4E";
|
|
17
19
|
export declare const Yellow200 = "#F8E6A0";
|
|
18
20
|
export declare const Y400 = "#FF991F";
|
|
19
21
|
export declare const Y500 = "#FF8B00";
|
|
@@ -22,15 +24,19 @@ export declare const Y800 = "#7F5F01";
|
|
|
22
24
|
export declare const G50 = "#E3FCEF";
|
|
23
25
|
export declare const G75 = "#ABF5D1";
|
|
24
26
|
export declare const G200 = "#57D9A3";
|
|
27
|
+
export declare const GreenBold = "#97EDC9";
|
|
25
28
|
export declare const G300 = "#36B37E";
|
|
26
29
|
export declare const G400 = "#00875A";
|
|
27
30
|
export declare const G500 = "#006644";
|
|
28
31
|
export declare const B50 = "#DEEBFF";
|
|
29
32
|
export declare const B75 = "#B3D4FF";
|
|
30
33
|
export declare const B100 = "#4C9AFF";
|
|
34
|
+
export declare const BlueBold = "#ADCBFB";
|
|
31
35
|
export declare const B400 = "#0052CC";
|
|
32
36
|
export declare const B500 = "#0747A6";
|
|
37
|
+
export declare const L50 = "#EFFFD6";
|
|
33
38
|
export declare const L200 = "#D3F1A7";
|
|
39
|
+
export declare const L400 = "#BDE97C";
|
|
34
40
|
export declare const L600 = "#6A9A23";
|
|
35
41
|
export declare const L800 = "#4C6B1F";
|
|
36
42
|
export declare const N0 = "#FFFFFF";
|
|
@@ -39,6 +45,7 @@ export declare const N30 = "#EBECF0";
|
|
|
39
45
|
export declare const N40 = "#DFE1E6";
|
|
40
46
|
export declare const N50 = "#C1C7D0";
|
|
41
47
|
export declare const N60 = "#B3BAC5";
|
|
48
|
+
export declare const GrayBold = "#B7B9BE";
|
|
42
49
|
export declare const N80 = "#97A0AF";
|
|
43
50
|
export declare const N90 = "#8993A4";
|
|
44
51
|
export declare const N200 = "#6B778C";
|
|
@@ -49,16 +56,21 @@ export declare const N500 = "#42526E";
|
|
|
49
56
|
export declare const N600 = "#758195";
|
|
50
57
|
export declare const N800 = "#172B4D";
|
|
51
58
|
export declare const N1000 = "#172B4D";
|
|
59
|
+
export declare const M50 = "#FFECF8";
|
|
52
60
|
export declare const M200 = "#FDD0EC";
|
|
61
|
+
export declare const M400 = "#FCB6E1";
|
|
53
62
|
export declare const M600 = "#CD519D";
|
|
54
63
|
export declare const M800 = "#943D73";
|
|
55
64
|
export declare const O200 = "#FEDEC8";
|
|
65
|
+
export declare const Orange50 = "#FFF5DB";
|
|
56
66
|
export declare const Orange200 = "#FCE4A6";
|
|
67
|
+
export declare const Orange400 = "#FBD779";
|
|
57
68
|
export declare const O600 = "#E06C00";
|
|
58
69
|
export declare const O800 = "#9E4C00";
|
|
59
70
|
export declare const P50 = "#EAE6FF";
|
|
60
71
|
export declare const P75 = "#C0B6F2";
|
|
61
72
|
export declare const P100 = "#998DD9";
|
|
73
|
+
export declare const PurpleBold = "#E3BDFA";
|
|
62
74
|
export declare const P200 = "#DFD8FD";
|
|
63
75
|
export declare const P300 = "#6554C0";
|
|
64
76
|
export declare const P400 = "#5243AA";
|
|
@@ -66,6 +78,7 @@ export declare const P500 = "#403294";
|
|
|
66
78
|
export declare const T50 = "#E6FCFF";
|
|
67
79
|
export declare const T75 = "#B3F5FF";
|
|
68
80
|
export declare const T100 = "#79E2F2";
|
|
81
|
+
export declare const TealBold = "#B1E4F7";
|
|
69
82
|
export declare const T200 = "#C6EDFB";
|
|
70
83
|
export declare const T300 = "#00B8D9";
|
|
71
84
|
export declare const T500 = "#008DA6";
|