@atlaskit/adf-schema 56.3.0 → 56.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/cjs/entry-points/schema-tableNodes.js +0 -6
- package/dist/cjs/entry-points/tableNodes.js +0 -6
- package/dist/cjs/index.js +0 -6
- package/dist/cjs/schema/index.js +0 -6
- package/dist/cjs/schema/nodes/index.js +0 -6
- package/dist/cjs/schema/nodes/tableNodes.js +2 -20
- package/dist/cjs/utils/colors.js +1 -14
- package/dist/cjs/utils/editor-palette.js +3 -121
- 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 +2 -17
- package/dist/es2019/utils/colors.js +0 -13
- package/dist/es2019/utils/editor-palette.js +3 -89
- 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 +2 -20
- package/dist/esm/utils/colors.js +0 -13
- package/dist/esm/utils/editor-palette.js +3 -121
- 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 +0 -6
- package/dist/types/utils/colors.d.ts +0 -13
- package/dist/types/utils/editor-palette.d.ts +0 -80
- package/package.json +3 -6
|
@@ -147,11 +147,8 @@ 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 ?
|
|
151
150
|
// @ts-expect-error
|
|
152
|
-
textBackgroundColorPalette[hexColor.toUpperCase()] :
|
|
153
|
-
// @ts-expect-error
|
|
154
|
-
undefined;
|
|
151
|
+
return hexColor ? textBackgroundColorPalette[hexColor.toUpperCase()] : undefined;
|
|
155
152
|
}
|
|
156
153
|
export const textBackgroundColorPalette = {
|
|
157
154
|
/** Gray - light */
|
|
@@ -191,9 +188,8 @@ export const textBackgroundColorPalette = {
|
|
|
191
188
|
export function hexToEditorBackgroundPaletteRawValue(hexColor) {
|
|
192
189
|
// Ts ignore was used to allow use of conditional return type
|
|
193
190
|
// (preferencing better type on consumption over safety in implementation)
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
|
191
|
+
// @ts-ignore
|
|
192
|
+
const tokenData = hexColor ? editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
|
197
193
|
// @ts-expect-error
|
|
198
194
|
return tokenData ? tokenData.getValue(hexColor) : undefined;
|
|
199
195
|
}
|
|
@@ -307,88 +303,6 @@ export const editorBackgroundPalette = {
|
|
|
307
303
|
'#B3BAC5': {
|
|
308
304
|
getValue: () => '#B3BAC5',
|
|
309
305
|
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)'
|
|
392
306
|
}
|
|
393
307
|
};
|
|
394
308
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette,
|
|
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';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette,
|
|
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';
|
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,
|
|
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';
|
|
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,
|
|
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';
|
|
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,
|
|
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';
|
|
28
28
|
export { decisionList, decisionListSelector } from './decision-list';
|
|
29
29
|
export { decisionItem } from './decision-item';
|
|
30
30
|
export { taskList, taskListSelector } from './task-list';
|
|
@@ -3,9 +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 {
|
|
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';
|
|
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';
|
|
9
7
|
import { uuid } from '../../utils/uuid';
|
|
10
8
|
import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
|
|
11
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';
|
|
@@ -177,8 +175,7 @@ export var getCellDomAttrs = function getCellDomAttrs(node) {
|
|
|
177
175
|
attrs['data-cell-background'] = color;
|
|
178
176
|
}
|
|
179
177
|
if (typeof color === 'string') {
|
|
180
|
-
|
|
181
|
-
attrs.colorname = palette.get(color.toLowerCase());
|
|
178
|
+
attrs.colorname = tableBackgroundColorPalette.get(color.toLowerCase());
|
|
182
179
|
}
|
|
183
180
|
}
|
|
184
181
|
}
|
|
@@ -196,28 +193,13 @@ export var getCellDomAttrs = function getCellDomAttrs(node) {
|
|
|
196
193
|
return attrs;
|
|
197
194
|
};
|
|
198
195
|
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();
|
|
205
196
|
export var tableBackgroundBorderColor = hexToRgba(N800, 0.12) || N0;
|
|
206
197
|
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
|
|
210
198
|
[[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) {
|
|
211
199
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
212
200
|
colorValue = _ref2[0],
|
|
213
201
|
colorName = _ref2[1];
|
|
214
202
|
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);
|
|
221
203
|
tableBackgroundColorNames.set(colorName.toLowerCase(), colorValue.toLowerCase());
|
|
222
204
|
});
|
|
223
205
|
|
package/dist/esm/utils/colors.js
CHANGED
|
@@ -13,7 +13,6 @@ 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';
|
|
17
16
|
export var R200 = '#FFD5D2';
|
|
18
17
|
export var R300 = '#FF5630';
|
|
19
18
|
export var R400 = '#DE350B';
|
|
@@ -21,7 +20,6 @@ export var R500 = '#BF2600';
|
|
|
21
20
|
export var Y50 = '#FFFAE6';
|
|
22
21
|
export var Y75 = '#FFF0B3';
|
|
23
22
|
export var Y200 = '#FFC400';
|
|
24
|
-
export var YellowBold = '#EFDD4E';
|
|
25
23
|
export var Yellow200 = '#F8E6A0';
|
|
26
24
|
export var Y400 = '#FF991F';
|
|
27
25
|
export var Y500 = '#FF8B00';
|
|
@@ -30,19 +28,15 @@ export var Y800 = '#7F5F01';
|
|
|
30
28
|
export var G50 = '#E3FCEF';
|
|
31
29
|
export var G75 = '#ABF5D1';
|
|
32
30
|
export var G200 = '#57D9A3';
|
|
33
|
-
export var GreenBold = '#97EDC9';
|
|
34
31
|
export var G300 = '#36B37E';
|
|
35
32
|
export var G400 = '#00875A';
|
|
36
33
|
export var G500 = '#006644';
|
|
37
34
|
export var B50 = '#DEEBFF';
|
|
38
35
|
export var B75 = '#B3D4FF';
|
|
39
36
|
export var B100 = '#4C9AFF';
|
|
40
|
-
export var BlueBold = '#ADCBFB';
|
|
41
37
|
export var B400 = '#0052CC';
|
|
42
38
|
export var B500 = '#0747A6';
|
|
43
|
-
export var L50 = '#EFFFD6';
|
|
44
39
|
export var L200 = '#D3F1A7';
|
|
45
|
-
export var L400 = '#BDE97C';
|
|
46
40
|
export var L600 = '#6A9A23';
|
|
47
41
|
export var L800 = '#4C6B1F';
|
|
48
42
|
export var N0 = '#FFFFFF';
|
|
@@ -51,7 +45,6 @@ export var N30 = '#EBECF0';
|
|
|
51
45
|
export var N40 = '#DFE1E6';
|
|
52
46
|
export var N50 = '#C1C7D0';
|
|
53
47
|
export var N60 = '#B3BAC5';
|
|
54
|
-
export var GrayBold = '#B7B9BE';
|
|
55
48
|
export var N80 = '#97A0AF';
|
|
56
49
|
export var N90 = '#8993A4';
|
|
57
50
|
export var N200 = '#6B778C';
|
|
@@ -62,21 +55,16 @@ export var N500 = '#42526E';
|
|
|
62
55
|
export var N600 = '#758195';
|
|
63
56
|
export var N800 = '#172B4D';
|
|
64
57
|
export var N1000 = '#172B4D';
|
|
65
|
-
export var M50 = '#FFECF8';
|
|
66
58
|
export var M200 = '#FDD0EC';
|
|
67
|
-
export var M400 = '#FCB6E1';
|
|
68
59
|
export var M600 = '#CD519D';
|
|
69
60
|
export var M800 = '#943D73';
|
|
70
61
|
export var O200 = '#FEDEC8';
|
|
71
|
-
export var Orange50 = '#FFF5DB';
|
|
72
62
|
export var Orange200 = '#FCE4A6';
|
|
73
|
-
export var Orange400 = '#FBD779';
|
|
74
63
|
export var O600 = '#E06C00';
|
|
75
64
|
export var O800 = '#9E4C00';
|
|
76
65
|
export var P50 = '#EAE6FF';
|
|
77
66
|
export var P75 = '#C0B6F2';
|
|
78
67
|
export var P100 = '#998DD9';
|
|
79
|
-
export var PurpleBold = '#E3BDFA';
|
|
80
68
|
export var P200 = '#DFD8FD';
|
|
81
69
|
export var P300 = '#6554C0';
|
|
82
70
|
export var P400 = '#5243AA';
|
|
@@ -84,7 +72,6 @@ export var P500 = '#403294';
|
|
|
84
72
|
export var T50 = '#E6FCFF';
|
|
85
73
|
export var T75 = '#B3F5FF';
|
|
86
74
|
export var T100 = '#79E2F2';
|
|
87
|
-
export var TealBold = '#B1E4F7';
|
|
88
75
|
export var T200 = '#C6EDFB';
|
|
89
76
|
export var T300 = '#00B8D9';
|
|
90
77
|
export var T500 = '#008DA6';
|
|
@@ -145,11 +145,8 @@ 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 ?
|
|
149
148
|
// @ts-expect-error
|
|
150
|
-
textBackgroundColorPalette[hexColor.toUpperCase()] :
|
|
151
|
-
// @ts-expect-error
|
|
152
|
-
undefined;
|
|
149
|
+
return hexColor ? textBackgroundColorPalette[hexColor.toUpperCase()] : undefined;
|
|
153
150
|
}
|
|
154
151
|
export var textBackgroundColorPalette = {
|
|
155
152
|
/** Gray - light */
|
|
@@ -189,9 +186,8 @@ export var textBackgroundColorPalette = {
|
|
|
189
186
|
export function hexToEditorBackgroundPaletteRawValue(hexColor) {
|
|
190
187
|
// Ts ignore was used to allow use of conditional return type
|
|
191
188
|
// (preferencing better type on consumption over safety in implementation)
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
|
189
|
+
// @ts-ignore
|
|
190
|
+
var tokenData = hexColor ? editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
|
195
191
|
// @ts-expect-error
|
|
196
192
|
return tokenData ? tokenData.getValue(hexColor) : undefined;
|
|
197
193
|
}
|
|
@@ -347,120 +343,6 @@ export var editorBackgroundPalette = {
|
|
|
347
343
|
return '#B3BAC5';
|
|
348
344
|
},
|
|
349
345
|
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)'
|
|
464
346
|
}
|
|
465
347
|
};
|
|
466
348
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette,
|
|
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';
|
|
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,
|
|
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';
|
|
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,
|
|
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';
|
|
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,
|
|
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';
|
|
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,
|
|
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';
|
|
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,12 +55,6 @@ 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>;
|
|
64
58
|
export declare const tableBackgroundBorderColor: string;
|
|
65
59
|
export declare const tableBackgroundColorNames: Map<string, string>;
|
|
66
60
|
export type DisplayMode = 'default' | 'fixed';
|
|
@@ -7,7 +7,6 @@
|
|
|
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";
|
|
11
10
|
export declare const R200 = "#FFD5D2";
|
|
12
11
|
export declare const R300 = "#FF5630";
|
|
13
12
|
export declare const R400 = "#DE350B";
|
|
@@ -15,7 +14,6 @@ export declare const R500 = "#BF2600";
|
|
|
15
14
|
export declare const Y50 = "#FFFAE6";
|
|
16
15
|
export declare const Y75 = "#FFF0B3";
|
|
17
16
|
export declare const Y200 = "#FFC400";
|
|
18
|
-
export declare const YellowBold = "#EFDD4E";
|
|
19
17
|
export declare const Yellow200 = "#F8E6A0";
|
|
20
18
|
export declare const Y400 = "#FF991F";
|
|
21
19
|
export declare const Y500 = "#FF8B00";
|
|
@@ -24,19 +22,15 @@ export declare const Y800 = "#7F5F01";
|
|
|
24
22
|
export declare const G50 = "#E3FCEF";
|
|
25
23
|
export declare const G75 = "#ABF5D1";
|
|
26
24
|
export declare const G200 = "#57D9A3";
|
|
27
|
-
export declare const GreenBold = "#97EDC9";
|
|
28
25
|
export declare const G300 = "#36B37E";
|
|
29
26
|
export declare const G400 = "#00875A";
|
|
30
27
|
export declare const G500 = "#006644";
|
|
31
28
|
export declare const B50 = "#DEEBFF";
|
|
32
29
|
export declare const B75 = "#B3D4FF";
|
|
33
30
|
export declare const B100 = "#4C9AFF";
|
|
34
|
-
export declare const BlueBold = "#ADCBFB";
|
|
35
31
|
export declare const B400 = "#0052CC";
|
|
36
32
|
export declare const B500 = "#0747A6";
|
|
37
|
-
export declare const L50 = "#EFFFD6";
|
|
38
33
|
export declare const L200 = "#D3F1A7";
|
|
39
|
-
export declare const L400 = "#BDE97C";
|
|
40
34
|
export declare const L600 = "#6A9A23";
|
|
41
35
|
export declare const L800 = "#4C6B1F";
|
|
42
36
|
export declare const N0 = "#FFFFFF";
|
|
@@ -45,7 +39,6 @@ export declare const N30 = "#EBECF0";
|
|
|
45
39
|
export declare const N40 = "#DFE1E6";
|
|
46
40
|
export declare const N50 = "#C1C7D0";
|
|
47
41
|
export declare const N60 = "#B3BAC5";
|
|
48
|
-
export declare const GrayBold = "#B7B9BE";
|
|
49
42
|
export declare const N80 = "#97A0AF";
|
|
50
43
|
export declare const N90 = "#8993A4";
|
|
51
44
|
export declare const N200 = "#6B778C";
|
|
@@ -56,21 +49,16 @@ export declare const N500 = "#42526E";
|
|
|
56
49
|
export declare const N600 = "#758195";
|
|
57
50
|
export declare const N800 = "#172B4D";
|
|
58
51
|
export declare const N1000 = "#172B4D";
|
|
59
|
-
export declare const M50 = "#FFECF8";
|
|
60
52
|
export declare const M200 = "#FDD0EC";
|
|
61
|
-
export declare const M400 = "#FCB6E1";
|
|
62
53
|
export declare const M600 = "#CD519D";
|
|
63
54
|
export declare const M800 = "#943D73";
|
|
64
55
|
export declare const O200 = "#FEDEC8";
|
|
65
|
-
export declare const Orange50 = "#FFF5DB";
|
|
66
56
|
export declare const Orange200 = "#FCE4A6";
|
|
67
|
-
export declare const Orange400 = "#FBD779";
|
|
68
57
|
export declare const O600 = "#E06C00";
|
|
69
58
|
export declare const O800 = "#9E4C00";
|
|
70
59
|
export declare const P50 = "#EAE6FF";
|
|
71
60
|
export declare const P75 = "#C0B6F2";
|
|
72
61
|
export declare const P100 = "#998DD9";
|
|
73
|
-
export declare const PurpleBold = "#E3BDFA";
|
|
74
62
|
export declare const P200 = "#DFD8FD";
|
|
75
63
|
export declare const P300 = "#6554C0";
|
|
76
64
|
export declare const P400 = "#5243AA";
|
|
@@ -78,7 +66,6 @@ export declare const P500 = "#403294";
|
|
|
78
66
|
export declare const T50 = "#E6FCFF";
|
|
79
67
|
export declare const T75 = "#B3F5FF";
|
|
80
68
|
export declare const T100 = "#79E2F2";
|
|
81
|
-
export declare const TealBold = "#B1E4F7";
|
|
82
69
|
export declare const T200 = "#C6EDFB";
|
|
83
70
|
export declare const T300 = "#00B8D9";
|
|
84
71
|
export declare const T500 = "#008DA6";
|