@atlaskit/adf-schema 56.2.0 → 56.3.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 +6 -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 +20 -2
- package/dist/cjs/utils/colors.js +14 -1
- package/dist/cjs/utils/editor-palette.js +121 -3
- 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 +17 -2
- package/dist/es2019/utils/colors.js +13 -0
- package/dist/es2019/utils/editor-palette.js +89 -3
- 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 +20 -2
- package/dist/esm/utils/colors.js +13 -0
- package/dist/esm/utils/editor-palette.js +121 -3
- 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 +6 -0
- package/dist/types/utils/colors.d.ts +13 -0
- package/dist/types/utils/editor-palette.d.ts +80 -0
- package/package.json +5 -2
|
@@ -147,8 +147,11 @@ export const editorTextPalette = {
|
|
|
147
147
|
export function hexToEditorTextBackgroundPaletteColor(hexColor) {
|
|
148
148
|
// Ts ignore was used to allow use of conditional return type
|
|
149
149
|
// (preferring better type on consumption over safety in implementation)
|
|
150
|
+
return hexColor ?
|
|
150
151
|
// @ts-expect-error
|
|
151
|
-
|
|
152
|
+
textBackgroundColorPalette[hexColor.toUpperCase()] :
|
|
153
|
+
// @ts-expect-error
|
|
154
|
+
undefined;
|
|
152
155
|
}
|
|
153
156
|
export const textBackgroundColorPalette = {
|
|
154
157
|
/** Gray - light */
|
|
@@ -188,8 +191,9 @@ export const textBackgroundColorPalette = {
|
|
|
188
191
|
export function hexToEditorBackgroundPaletteRawValue(hexColor) {
|
|
189
192
|
// Ts ignore was used to allow use of conditional return type
|
|
190
193
|
// (preferencing better type on consumption over safety in implementation)
|
|
191
|
-
|
|
192
|
-
|
|
194
|
+
const tokenData = hexColor ?
|
|
195
|
+
// @ts-expect-error
|
|
196
|
+
editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
|
193
197
|
// @ts-expect-error
|
|
194
198
|
return tokenData ? tokenData.getValue(hexColor) : undefined;
|
|
195
199
|
}
|
|
@@ -303,6 +307,88 @@ export const editorBackgroundPalette = {
|
|
|
303
307
|
'#B3BAC5': {
|
|
304
308
|
getValue: () => '#B3BAC5',
|
|
305
309
|
token: 'var(--ds-background-accent-gray-subtle, #B3BAC5)'
|
|
310
|
+
},
|
|
311
|
+
/** lime - light */
|
|
312
|
+
'#EFFFD6': {
|
|
313
|
+
getValue: () => '#EFFFD6',
|
|
314
|
+
token: 'var(--ds-background-accent-lime-subtlest, #EFFFD6)'
|
|
315
|
+
},
|
|
316
|
+
/** lime - medium */
|
|
317
|
+
'#D3F1A7': {
|
|
318
|
+
getValue: () => '#D3F1A7',
|
|
319
|
+
token: 'var(--ds-background-accent-lime-subtler, #D3F1A7)'
|
|
320
|
+
},
|
|
321
|
+
/** lime - bold */
|
|
322
|
+
'#BDE97C': {
|
|
323
|
+
getValue: () => '#BDE97C',
|
|
324
|
+
token: 'var(--ds-background-accent-lime-subtler-hovered, #BDE97C)'
|
|
325
|
+
},
|
|
326
|
+
/** orange - light */
|
|
327
|
+
'#FFF5DB': {
|
|
328
|
+
getValue: () => '#FFF5DB',
|
|
329
|
+
token: 'var(--ds-background-accent-orange-subtlest, #FFF5DB)'
|
|
330
|
+
},
|
|
331
|
+
/** orange - medium */
|
|
332
|
+
'#FCE4A6': {
|
|
333
|
+
getValue: () => '#FCE4A6',
|
|
334
|
+
token: 'var(--ds-background-accent-orange-subtler, #FCE4A6)'
|
|
335
|
+
},
|
|
336
|
+
/** orange - bold */
|
|
337
|
+
'#FBD779': {
|
|
338
|
+
getValue: () => '#FBD779',
|
|
339
|
+
token: 'var(--ds-background-accent-orange-subtler-hovered, #FBD779)'
|
|
340
|
+
},
|
|
341
|
+
/** magenta - light */
|
|
342
|
+
'#FFECF8': {
|
|
343
|
+
getValue: () => '#FFECF8',
|
|
344
|
+
token: 'var(--ds-background-accent-magenta-subtlest, #FFECF8)'
|
|
345
|
+
},
|
|
346
|
+
/** magenta - medium */
|
|
347
|
+
'#FDD0EC': {
|
|
348
|
+
getValue: () => '#FDD0EC',
|
|
349
|
+
token: 'var(--ds-background-accent-magenta-subtler, #FDD0EC)'
|
|
350
|
+
},
|
|
351
|
+
/** magenta - bold */
|
|
352
|
+
'#FCB6E1': {
|
|
353
|
+
getValue: () => '#FCB6E1',
|
|
354
|
+
token: 'var(--ds-background-accent-magenta-subtler-hovered, #FCB6E1)'
|
|
355
|
+
},
|
|
356
|
+
// Bold row mappings using subtler.hovered tokens. These use new hex codes
|
|
357
|
+
// so pre-existing documents keep their old subtle-token mappings above.
|
|
358
|
+
/** blue - bold */
|
|
359
|
+
'#ADCBFB': {
|
|
360
|
+
getValue: () => '#ADCBFB',
|
|
361
|
+
token: 'var(--ds-background-accent-blue-subtler-hovered, #ADCBFB)'
|
|
362
|
+
},
|
|
363
|
+
/** teal - bold */
|
|
364
|
+
'#B1E4F7': {
|
|
365
|
+
getValue: () => '#B1E4F7',
|
|
366
|
+
token: 'var(--ds-background-accent-teal-subtler-hovered, #B1E4F7)'
|
|
367
|
+
},
|
|
368
|
+
/** green - bold */
|
|
369
|
+
'#97EDC9': {
|
|
370
|
+
getValue: () => '#97EDC9',
|
|
371
|
+
token: 'var(--ds-background-accent-green-subtler-hovered, #97EDC9)'
|
|
372
|
+
},
|
|
373
|
+
/** yellow - bold */
|
|
374
|
+
'#EFDD4E': {
|
|
375
|
+
getValue: () => '#EFDD4E',
|
|
376
|
+
token: 'var(--ds-background-accent-yellow-subtler-hovered, #EFDD4E)'
|
|
377
|
+
},
|
|
378
|
+
/** red - bold */
|
|
379
|
+
'#FFB8B2': {
|
|
380
|
+
getValue: () => '#FFB8B2',
|
|
381
|
+
token: 'var(--ds-background-accent-red-subtler-hovered, #FFB8B2)'
|
|
382
|
+
},
|
|
383
|
+
/** purple - bold */
|
|
384
|
+
'#E3BDFA': {
|
|
385
|
+
getValue: () => '#E3BDFA',
|
|
386
|
+
token: 'var(--ds-background-accent-purple-subtler-hovered, #E3BDFA)'
|
|
387
|
+
},
|
|
388
|
+
/** gray - bold */
|
|
389
|
+
'#B7B9BE': {
|
|
390
|
+
getValue: () => '#B7B9BE',
|
|
391
|
+
token: 'var(--ds-background-accent-gray-subtler-hovered, #B7B9BE)'
|
|
306
392
|
}
|
|
307
393
|
};
|
|
308
394
|
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, 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, 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, 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, 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, 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, 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, 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,9 @@ 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 {
|
|
6
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
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
9
|
import { uuid } from '../../utils/uuid';
|
|
8
10
|
import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
|
|
9
11
|
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 +177,8 @@ export var getCellDomAttrs = function getCellDomAttrs(node) {
|
|
|
175
177
|
attrs['data-cell-background'] = color;
|
|
176
178
|
}
|
|
177
179
|
if (typeof color === 'string') {
|
|
178
|
-
|
|
180
|
+
var palette = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2') ? tableBackgroundColorPaletteNew : tableBackgroundColorPalette;
|
|
181
|
+
attrs.colorname = palette.get(color.toLowerCase());
|
|
179
182
|
}
|
|
180
183
|
}
|
|
181
184
|
}
|
|
@@ -193,13 +196,28 @@ export var getCellDomAttrs = function getCellDomAttrs(node) {
|
|
|
193
196
|
return attrs;
|
|
194
197
|
};
|
|
195
198
|
export var tableBackgroundColorPalette = new Map();
|
|
199
|
+
/**
|
|
200
|
+
* Expanded 10-column (30-entry) palette that adds lime, orange, and magenta columns
|
|
201
|
+
* and updates the bold row to use `subtler.hovered` design tokens.
|
|
202
|
+
* This is a superset of {@link tableBackgroundColorPalette}.
|
|
203
|
+
*/
|
|
204
|
+
export var tableBackgroundColorPaletteNew = new Map();
|
|
196
205
|
export var tableBackgroundBorderColor = hexToRgba(N800, 0.12) || N0;
|
|
197
206
|
export var tableBackgroundColorNames = new Map();
|
|
207
|
+
|
|
208
|
+
// Original 7-column palette — kept as the default export so external consumers
|
|
209
|
+
// are not broken. When cleaning up the platform_editor_lovability_text_bg_color experiment, check if this can be removed
|
|
198
210
|
[[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
211
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
200
212
|
colorValue = _ref2[0],
|
|
201
213
|
colorName = _ref2[1];
|
|
202
214
|
tableBackgroundColorPalette.set(colorValue.toLowerCase(), colorName);
|
|
215
|
+
});
|
|
216
|
+
[[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) {
|
|
217
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
218
|
+
colorValue = _ref4[0],
|
|
219
|
+
colorName = _ref4[1];
|
|
220
|
+
tableBackgroundColorPaletteNew.set(colorValue.toLowerCase(), colorName);
|
|
203
221
|
tableBackgroundColorNames.set(colorName.toLowerCase(), colorValue.toLowerCase());
|
|
204
222
|
});
|
|
205
223
|
|
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';
|
|
@@ -145,8 +145,11 @@ export var editorTextPalette = _defineProperty(_defineAccessor("get", {
|
|
|
145
145
|
export function hexToEditorTextBackgroundPaletteColor(hexColor) {
|
|
146
146
|
// Ts ignore was used to allow use of conditional return type
|
|
147
147
|
// (preferring better type on consumption over safety in implementation)
|
|
148
|
+
return hexColor ?
|
|
148
149
|
// @ts-expect-error
|
|
149
|
-
|
|
150
|
+
textBackgroundColorPalette[hexColor.toUpperCase()] :
|
|
151
|
+
// @ts-expect-error
|
|
152
|
+
undefined;
|
|
150
153
|
}
|
|
151
154
|
export var textBackgroundColorPalette = {
|
|
152
155
|
/** Gray - light */
|
|
@@ -186,8 +189,9 @@ export var textBackgroundColorPalette = {
|
|
|
186
189
|
export function hexToEditorBackgroundPaletteRawValue(hexColor) {
|
|
187
190
|
// Ts ignore was used to allow use of conditional return type
|
|
188
191
|
// (preferencing better type on consumption over safety in implementation)
|
|
189
|
-
|
|
190
|
-
|
|
192
|
+
var tokenData = hexColor ?
|
|
193
|
+
// @ts-expect-error
|
|
194
|
+
editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
|
191
195
|
// @ts-expect-error
|
|
192
196
|
return tokenData ? tokenData.getValue(hexColor) : undefined;
|
|
193
197
|
}
|
|
@@ -343,6 +347,120 @@ export var editorBackgroundPalette = {
|
|
|
343
347
|
return '#B3BAC5';
|
|
344
348
|
},
|
|
345
349
|
token: 'var(--ds-background-accent-gray-subtle, #B3BAC5)'
|
|
350
|
+
},
|
|
351
|
+
/** lime - light */
|
|
352
|
+
'#EFFFD6': {
|
|
353
|
+
getValue: function getValue() {
|
|
354
|
+
return '#EFFFD6';
|
|
355
|
+
},
|
|
356
|
+
token: 'var(--ds-background-accent-lime-subtlest, #EFFFD6)'
|
|
357
|
+
},
|
|
358
|
+
/** lime - medium */
|
|
359
|
+
'#D3F1A7': {
|
|
360
|
+
getValue: function getValue() {
|
|
361
|
+
return '#D3F1A7';
|
|
362
|
+
},
|
|
363
|
+
token: 'var(--ds-background-accent-lime-subtler, #D3F1A7)'
|
|
364
|
+
},
|
|
365
|
+
/** lime - bold */
|
|
366
|
+
'#BDE97C': {
|
|
367
|
+
getValue: function getValue() {
|
|
368
|
+
return '#BDE97C';
|
|
369
|
+
},
|
|
370
|
+
token: 'var(--ds-background-accent-lime-subtler-hovered, #BDE97C)'
|
|
371
|
+
},
|
|
372
|
+
/** orange - light */
|
|
373
|
+
'#FFF5DB': {
|
|
374
|
+
getValue: function getValue() {
|
|
375
|
+
return '#FFF5DB';
|
|
376
|
+
},
|
|
377
|
+
token: 'var(--ds-background-accent-orange-subtlest, #FFF5DB)'
|
|
378
|
+
},
|
|
379
|
+
/** orange - medium */
|
|
380
|
+
'#FCE4A6': {
|
|
381
|
+
getValue: function getValue() {
|
|
382
|
+
return '#FCE4A6';
|
|
383
|
+
},
|
|
384
|
+
token: 'var(--ds-background-accent-orange-subtler, #FCE4A6)'
|
|
385
|
+
},
|
|
386
|
+
/** orange - bold */
|
|
387
|
+
'#FBD779': {
|
|
388
|
+
getValue: function getValue() {
|
|
389
|
+
return '#FBD779';
|
|
390
|
+
},
|
|
391
|
+
token: 'var(--ds-background-accent-orange-subtler-hovered, #FBD779)'
|
|
392
|
+
},
|
|
393
|
+
/** magenta - light */
|
|
394
|
+
'#FFECF8': {
|
|
395
|
+
getValue: function getValue() {
|
|
396
|
+
return '#FFECF8';
|
|
397
|
+
},
|
|
398
|
+
token: 'var(--ds-background-accent-magenta-subtlest, #FFECF8)'
|
|
399
|
+
},
|
|
400
|
+
/** magenta - medium */
|
|
401
|
+
'#FDD0EC': {
|
|
402
|
+
getValue: function getValue() {
|
|
403
|
+
return '#FDD0EC';
|
|
404
|
+
},
|
|
405
|
+
token: 'var(--ds-background-accent-magenta-subtler, #FDD0EC)'
|
|
406
|
+
},
|
|
407
|
+
/** magenta - bold */
|
|
408
|
+
'#FCB6E1': {
|
|
409
|
+
getValue: function getValue() {
|
|
410
|
+
return '#FCB6E1';
|
|
411
|
+
},
|
|
412
|
+
token: 'var(--ds-background-accent-magenta-subtler-hovered, #FCB6E1)'
|
|
413
|
+
},
|
|
414
|
+
// Bold row mappings using subtler.hovered tokens. These use new hex codes
|
|
415
|
+
// so pre-existing documents keep their old subtle-token mappings above.
|
|
416
|
+
/** blue - bold */
|
|
417
|
+
'#ADCBFB': {
|
|
418
|
+
getValue: function getValue() {
|
|
419
|
+
return '#ADCBFB';
|
|
420
|
+
},
|
|
421
|
+
token: 'var(--ds-background-accent-blue-subtler-hovered, #ADCBFB)'
|
|
422
|
+
},
|
|
423
|
+
/** teal - bold */
|
|
424
|
+
'#B1E4F7': {
|
|
425
|
+
getValue: function getValue() {
|
|
426
|
+
return '#B1E4F7';
|
|
427
|
+
},
|
|
428
|
+
token: 'var(--ds-background-accent-teal-subtler-hovered, #B1E4F7)'
|
|
429
|
+
},
|
|
430
|
+
/** green - bold */
|
|
431
|
+
'#97EDC9': {
|
|
432
|
+
getValue: function getValue() {
|
|
433
|
+
return '#97EDC9';
|
|
434
|
+
},
|
|
435
|
+
token: 'var(--ds-background-accent-green-subtler-hovered, #97EDC9)'
|
|
436
|
+
},
|
|
437
|
+
/** yellow - bold */
|
|
438
|
+
'#EFDD4E': {
|
|
439
|
+
getValue: function getValue() {
|
|
440
|
+
return '#EFDD4E';
|
|
441
|
+
},
|
|
442
|
+
token: 'var(--ds-background-accent-yellow-subtler-hovered, #EFDD4E)'
|
|
443
|
+
},
|
|
444
|
+
/** red - bold */
|
|
445
|
+
'#FFB8B2': {
|
|
446
|
+
getValue: function getValue() {
|
|
447
|
+
return '#FFB8B2';
|
|
448
|
+
},
|
|
449
|
+
token: 'var(--ds-background-accent-red-subtler-hovered, #FFB8B2)'
|
|
450
|
+
},
|
|
451
|
+
/** purple - bold */
|
|
452
|
+
'#E3BDFA': {
|
|
453
|
+
getValue: function getValue() {
|
|
454
|
+
return '#E3BDFA';
|
|
455
|
+
},
|
|
456
|
+
token: 'var(--ds-background-accent-purple-subtler-hovered, #E3BDFA)'
|
|
457
|
+
},
|
|
458
|
+
/** gray - bold */
|
|
459
|
+
'#B7B9BE': {
|
|
460
|
+
getValue: function getValue() {
|
|
461
|
+
return '#B7B9BE';
|
|
462
|
+
},
|
|
463
|
+
token: 'var(--ds-background-accent-gray-subtler-hovered, #B7B9BE)'
|
|
346
464
|
}
|
|
347
465
|
};
|
|
348
466
|
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, 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, 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, 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, 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, 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, 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, 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
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,6 +55,12 @@ 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 that adds lime, orange, and magenta columns
|
|
60
|
+
* and updates the bold row to use `subtler.hovered` design tokens.
|
|
61
|
+
* This is a superset of {@link tableBackgroundColorPalette}.
|
|
62
|
+
*/
|
|
63
|
+
export declare const tableBackgroundColorPaletteNew: Map<string, string>;
|
|
58
64
|
export declare const tableBackgroundBorderColor: string;
|
|
59
65
|
export declare const tableBackgroundColorNames: Map<string, string>;
|
|
60
66
|
export type DisplayMode = 'default' | 'fixed';
|
|
@@ -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";
|