@atlaskit/adf-schema 25.0.0 → 25.1.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 +63 -0
- package/dist/cjs/schema/marks/text-color.js +7 -15
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/index.js +3 -1
- package/dist/es2019/schema/index.js +3 -1
- package/dist/es2019/schema/marks/text-color.js +7 -9
- package/dist/es2019/version.json +1 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/schema/index.js +3 -1
- package/dist/esm/schema/marks/text-color.js +7 -15
- package/dist/esm/version.json +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/schema/index.d.ts +3 -1
- package/dist/types/schema/marks/text-color.d.ts +1 -0
- package/package.json +1 -1
- package/report.api.md +12 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,68 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 25.1.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [`055a333dad9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/055a333dad9) - [ux] Remove `moreTextColors` feature flag and deprecate `allowMoreTextColors` field of `allowTextColor` editor prop and `colorPaletteExtended` mark.
|
8
|
+
|
9
|
+
Showing more colors in the color selection palette is now a default behaviour.
|
10
|
+
|
11
|
+
## **DEPRECATION WARNING:**
|
12
|
+
|
13
|
+
There are 2 deprecations in this change:
|
14
|
+
|
15
|
+
### 1. `allowMoreTextColors` field of `allowTextColor` editor prop.
|
16
|
+
|
17
|
+
`allowMoreTextColors` field of `allowTextColor` editor prop. **is now deprecated and will be removed in the next stable release of `@atlaskit/editor-core` package**. Please take steps to remove that field from your code. E.g.:
|
18
|
+
|
19
|
+
```tsx
|
20
|
+
<Editor
|
21
|
+
...
|
22
|
+
allowTextColor ={
|
23
|
+
allowMoreTextColors: true // <-- Deprecated
|
24
|
+
defaultColour: {color: 'red', label: 'red'}
|
25
|
+
}
|
26
|
+
/>
|
27
|
+
```
|
28
|
+
|
29
|
+
Remove all instances of `allowMoreTextColors` field from `allowTextColor` `Editor` prop. I.e.:
|
30
|
+
|
31
|
+
```tsx
|
32
|
+
<Editor
|
33
|
+
...
|
34
|
+
allowTextColor ={
|
35
|
+
defaultColour: {color: 'red', label: 'red'}
|
36
|
+
}
|
37
|
+
/>
|
38
|
+
```
|
39
|
+
|
40
|
+
If the resulting `allowTextColor` prop is an empty object, set `allowTextColor` property value to `true`. E.g.:
|
41
|
+
|
42
|
+
```tsx
|
43
|
+
<Editor
|
44
|
+
appearance="full-page"
|
45
|
+
...
|
46
|
+
allowTextColor ={
|
47
|
+
allowMoreTextColors: true // <-- Invalid
|
48
|
+
}
|
49
|
+
/>
|
50
|
+
```
|
51
|
+
|
52
|
+
should become
|
53
|
+
|
54
|
+
```tsx
|
55
|
+
<Editor
|
56
|
+
appearance="full-page"
|
57
|
+
...
|
58
|
+
allowTextColor={true}
|
59
|
+
/>
|
60
|
+
```
|
61
|
+
|
62
|
+
### 2. `colorPaletteExtended` mark of the ADF schema
|
63
|
+
|
64
|
+
`colorPaletteExtended` mark of the ADF schema **is now deprecated and will be removed in the next stable release**. The extended palette is now rolled into the main one. use `colorPalette` instead.
|
65
|
+
|
3
66
|
## 25.0.0
|
4
67
|
|
5
68
|
### Major Changes
|
@@ -17,11 +17,8 @@ var _groups = require("../groups");
|
|
17
17
|
|
18
18
|
var _colors = require("../../utils/colors");
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
[_colors.N80, 'Light gray'], [_colors.P300, 'Purple'], [_colors.T300, 'Teal'], [_colors.G300, 'Green'], [_colors.R300, 'Red'], [_colors.Y400, 'Orange']]; // used for extended palette in text color picker
|
23
|
-
|
24
|
-
var colorArrayPaletteExtended = [// default row - first color is added programatically
|
20
|
+
// used for extended palette in text color picker
|
21
|
+
var colorArrayPalette = [// default row - first color is added programatically
|
25
22
|
// [N800, 'Squid ink'], // default dark gray
|
26
23
|
[_colors.B500, 'Dark blue'], // Chore coat
|
27
24
|
[_colors.T500, 'Dark teal'], // Shabby chic
|
@@ -47,8 +44,10 @@ var colorArrayPaletteExtended = [// default row - first color is added programat
|
|
47
44
|
]; // @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/55979455/Colour+picker+decisions#Colourpickerdecisions-Visualdesigndecisions
|
48
45
|
|
49
46
|
var colorPalette = new Map();
|
47
|
+
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
48
|
+
|
50
49
|
exports.colorPalette = colorPalette;
|
51
|
-
var colorPaletteExtended =
|
50
|
+
var colorPaletteExtended = colorPalette;
|
52
51
|
exports.colorPaletteExtended = colorPaletteExtended;
|
53
52
|
colorArrayPalette.forEach(function (_ref) {
|
54
53
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
@@ -57,13 +56,6 @@ colorArrayPalette.forEach(function (_ref) {
|
|
57
56
|
|
58
57
|
return colorPalette.set(color.toLowerCase(), label);
|
59
58
|
});
|
60
|
-
colorArrayPaletteExtended.forEach(function (_ref3) {
|
61
|
-
var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
|
62
|
-
color = _ref4[0],
|
63
|
-
label = _ref4[1];
|
64
|
-
|
65
|
-
return colorPaletteExtended.set(color.toLowerCase(), label);
|
66
|
-
});
|
67
59
|
var textColor = {
|
68
60
|
attrs: {
|
69
61
|
color: {}
|
@@ -83,7 +75,7 @@ var textColor = {
|
|
83
75
|
} // else handle other colour formats
|
84
76
|
|
85
77
|
|
86
|
-
return hexColor &&
|
78
|
+
return hexColor && colorPalette.has(hexColor) ? {
|
87
79
|
color: hexColor
|
88
80
|
} : false;
|
89
81
|
}
|
@@ -103,7 +95,7 @@ var textColor = {
|
|
103
95
|
}
|
104
96
|
|
105
97
|
var hexColor = maybeElement.dataset.textCustomColor;
|
106
|
-
return hexColor &&
|
98
|
+
return hexColor && colorPalette.has(hexColor) ? {
|
107
99
|
color: hexColor
|
108
100
|
} : false;
|
109
101
|
}
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/index.js
CHANGED
@@ -1,2 +1,4 @@
|
|
1
|
-
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
|
1
|
+
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
|
2
|
+
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute } from './schema';
|
2
4
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid } from './utils';
|
@@ -1,5 +1,7 @@
|
|
1
1
|
export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, media, mediaGroup, mediaSingle, mediaInline, mediaSingleWithCaption, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline } from './nodes';
|
2
|
-
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
2
|
+
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
3
|
+
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
4
|
+
colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute } from './marks';
|
3
5
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
4
6
|
export { inlineNodes } from './inline-nodes';
|
5
7
|
export { sanitizeNodes, createSchema } from './create-schema';
|
@@ -1,11 +1,8 @@
|
|
1
1
|
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette';
|
2
2
|
import { COLOR } from '../groups';
|
3
3
|
import { rgbToHex, N0, N80, P50, P300, P500, T75, T300, T500, G75, G300, G500, R75, R300, R500, Y75, Y200, Y400, B75, B100, B500 } from '../../utils/colors';
|
4
|
-
|
5
|
-
|
6
|
-
[N80, 'Light gray'], [P300, 'Purple'], [T300, 'Teal'], [G300, 'Green'], [R300, 'Red'], [Y400, 'Orange']]; // used for extended palette in text color picker
|
7
|
-
|
8
|
-
const colorArrayPaletteExtended = [// default row - first color is added programatically
|
4
|
+
// used for extended palette in text color picker
|
5
|
+
const colorArrayPalette = [// default row - first color is added programatically
|
9
6
|
// [N800, 'Squid ink'], // default dark gray
|
10
7
|
[B500, 'Dark blue'], // Chore coat
|
11
8
|
[T500, 'Dark teal'], // Shabby chic
|
@@ -31,9 +28,10 @@ const colorArrayPaletteExtended = [// default row - first color is added program
|
|
31
28
|
]; // @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/55979455/Colour+picker+decisions#Colourpickerdecisions-Visualdesigndecisions
|
32
29
|
|
33
30
|
export const colorPalette = new Map();
|
34
|
-
|
31
|
+
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
32
|
+
|
33
|
+
export const colorPaletteExtended = colorPalette;
|
35
34
|
colorArrayPalette.forEach(([color, label]) => colorPalette.set(color.toLowerCase(), label));
|
36
|
-
colorArrayPaletteExtended.forEach(([color, label]) => colorPaletteExtended.set(color.toLowerCase(), label));
|
37
35
|
export const textColor = {
|
38
36
|
attrs: {
|
39
37
|
color: {}
|
@@ -53,7 +51,7 @@ export const textColor = {
|
|
53
51
|
} // else handle other colour formats
|
54
52
|
|
55
53
|
|
56
|
-
return hexColor &&
|
54
|
+
return hexColor && colorPalette.has(hexColor) ? {
|
57
55
|
color: hexColor
|
58
56
|
} : false;
|
59
57
|
}
|
@@ -73,7 +71,7 @@ export const textColor = {
|
|
73
71
|
}
|
74
72
|
|
75
73
|
const hexColor = maybeElement.dataset.textCustomColor;
|
76
|
-
return hexColor &&
|
74
|
+
return hexColor && colorPalette.has(hexColor) ? {
|
77
75
|
color: hexColor
|
78
76
|
} : false;
|
79
77
|
}
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/index.js
CHANGED
@@ -1,2 +1,4 @@
|
|
1
|
-
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
|
1
|
+
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
|
2
|
+
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute } from './schema';
|
2
4
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid } from './utils';
|
package/dist/esm/schema/index.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, media, mediaGroup, mediaSingle, mediaInline, mediaSingleWithCaption, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline } from './nodes';
|
2
|
-
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
2
|
+
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
3
|
+
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
4
|
+
colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute } from './marks';
|
3
5
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
4
6
|
export { inlineNodes } from './inline-nodes';
|
5
7
|
export { sanitizeNodes, createSchema } from './create-schema';
|
@@ -3,11 +3,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette';
|
4
4
|
import { COLOR } from '../groups';
|
5
5
|
import { rgbToHex, N0, N80, P50, P300, P500, T75, T300, T500, G75, G300, G500, R75, R300, R500, Y75, Y200, Y400, B75, B100, B500 } from '../../utils/colors';
|
6
|
-
|
7
|
-
|
8
|
-
[N80, 'Light gray'], [P300, 'Purple'], [T300, 'Teal'], [G300, 'Green'], [R300, 'Red'], [Y400, 'Orange']]; // used for extended palette in text color picker
|
9
|
-
|
10
|
-
var colorArrayPaletteExtended = [// default row - first color is added programatically
|
6
|
+
// used for extended palette in text color picker
|
7
|
+
var colorArrayPalette = [// default row - first color is added programatically
|
11
8
|
// [N800, 'Squid ink'], // default dark gray
|
12
9
|
[B500, 'Dark blue'], // Chore coat
|
13
10
|
[T500, 'Dark teal'], // Shabby chic
|
@@ -33,7 +30,9 @@ var colorArrayPaletteExtended = [// default row - first color is added programat
|
|
33
30
|
]; // @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/55979455/Colour+picker+decisions#Colourpickerdecisions-Visualdesigndecisions
|
34
31
|
|
35
32
|
export var colorPalette = new Map();
|
36
|
-
|
33
|
+
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
34
|
+
|
35
|
+
export var colorPaletteExtended = colorPalette;
|
37
36
|
colorArrayPalette.forEach(function (_ref) {
|
38
37
|
var _ref2 = _slicedToArray(_ref, 2),
|
39
38
|
color = _ref2[0],
|
@@ -41,13 +40,6 @@ colorArrayPalette.forEach(function (_ref) {
|
|
41
40
|
|
42
41
|
return colorPalette.set(color.toLowerCase(), label);
|
43
42
|
});
|
44
|
-
colorArrayPaletteExtended.forEach(function (_ref3) {
|
45
|
-
var _ref4 = _slicedToArray(_ref3, 2),
|
46
|
-
color = _ref4[0],
|
47
|
-
label = _ref4[1];
|
48
|
-
|
49
|
-
return colorPaletteExtended.set(color.toLowerCase(), label);
|
50
|
-
});
|
51
43
|
export var textColor = {
|
52
44
|
attrs: {
|
53
45
|
color: {}
|
@@ -67,7 +59,7 @@ export var textColor = {
|
|
67
59
|
} // else handle other colour formats
|
68
60
|
|
69
61
|
|
70
|
-
return hexColor &&
|
62
|
+
return hexColor && colorPalette.has(hexColor) ? {
|
71
63
|
color: hexColor
|
72
64
|
} : false;
|
73
65
|
}
|
@@ -87,7 +79,7 @@ export var textColor = {
|
|
87
79
|
}
|
88
80
|
|
89
81
|
var hexColor = maybeElement.dataset.textCustomColor;
|
90
|
-
return hexColor &&
|
82
|
+
return hexColor && colorPalette.has(hexColor) ? {
|
91
83
|
color: hexColor
|
92
84
|
} : false;
|
93
85
|
}
|
package/dist/esm/version.json
CHANGED
package/dist/types/index.d.ts
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
|
1
|
+
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
|
2
|
+
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, } from './schema';
|
2
4
|
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, } from './schema';
|
3
5
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, } from './utils';
|
4
6
|
export type { Match, NameToEmoji } from './utils';
|
@@ -1,6 +1,8 @@
|
|
1
1
|
export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, media, mediaGroup, mediaSingle, mediaInline, mediaSingleWithCaption, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, } from './nodes';
|
2
2
|
export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, RichMediaLayout, CellDomAttrs, } from './nodes';
|
3
|
-
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
3
|
+
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
4
|
+
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
5
|
+
colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, } from './marks';
|
4
6
|
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, CodeDefinition, EmDefinition, FragmentAttributes, FragmentDefinition, IndentationMarkAttributes, IndentationMarkDefinition, LinkAttributes, LinkDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TextColorAttributes, TextColorDefinition, UnderlineDefinition, AnnotationId, AnnotationDataAttributes, DataConsumerAttributes, DataConsumerDefinition, } from './marks';
|
5
7
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
6
8
|
export { inlineNodes } from './inline-nodes';
|
@@ -17,5 +17,6 @@ export interface TextColorMark extends Mark {
|
|
17
17
|
}
|
18
18
|
export declare type TextColorKey = 'Light gray' | 'Purple' | 'Teal' | 'Green' | 'Red' | 'Orange' | 'Dark gray' | 'Blue' | 'Yellow' | 'Dark blue' | 'Dark teal' | 'Dark green' | 'Dark red' | 'Dark purple' | 'White' | 'Light blue' | 'Light teal' | 'Light green' | 'Light yellow' | 'Light red' | 'Light purple';
|
19
19
|
export declare const colorPalette: Map<string, TextColorKey>;
|
20
|
+
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
20
21
|
export declare const colorPaletteExtended: Map<string, TextColorKey>;
|
21
22
|
export declare const textColor: MarkSpec;
|
package/package.json
CHANGED
package/report.api.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
### Table of contents
|
9
9
|
|
10
10
|
- [Main Entry Types](#main-entry-types)
|
11
|
+
- [Peer Dependencies](#peer-dependencies)
|
11
12
|
|
12
13
|
### Main Entry Types
|
13
14
|
|
@@ -323,7 +324,7 @@ export interface CodeDefinition {
|
|
323
324
|
// @public (undocumented)
|
324
325
|
export const colorPalette: Map<string, TextColorKey>;
|
325
326
|
|
326
|
-
// @public (undocumented)
|
327
|
+
// @public @deprecated (undocumented)
|
327
328
|
export const colorPaletteExtended: Map<string, TextColorKey>;
|
328
329
|
|
329
330
|
// @public (undocumented)
|
@@ -1817,3 +1818,13 @@ export const Y75 = '#FFF0B3';
|
|
1817
1818
|
```
|
1818
1819
|
|
1819
1820
|
<!--SECTION END: Main Entry Types-->
|
1821
|
+
|
1822
|
+
### Peer Dependencies
|
1823
|
+
|
1824
|
+
<!--SECTION START: Peer Dependencies-->
|
1825
|
+
|
1826
|
+
```json
|
1827
|
+
{}
|
1828
|
+
```
|
1829
|
+
|
1830
|
+
<!--SECTION END: Peer Dependencies-->
|