@atlaskit/editor-common 92.1.2 → 93.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 +42 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/afm-post-office/tsconfig.json +0 -3
- package/dist/cjs/analytics/types/enums.js +2 -0
- package/dist/cjs/element-browser/components/CategoryList.js +2 -3
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +11 -13
- package/dist/cjs/element-browser/components/ElementSearch.js +1 -2
- package/dist/cjs/element-browser/constants.js +1 -6
- package/dist/cjs/extensibility/Extension/Extension/styles.js +3 -4
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +1 -2
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
- package/dist/cjs/extensibility/Extension/styles.js +3 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +2 -3
- package/dist/cjs/icons/shared/SteppedRainbowIconDecoration.js +2 -3
- package/dist/cjs/keymaps/index.js +6 -5
- package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +4 -5
- package/dist/cjs/link/ConfigureLinkOverlay/index.js +2 -4
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +1 -2
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -6
- package/dist/cjs/media-inline/constants.js +10 -8
- package/dist/cjs/media-inline/styles.js +1 -2
- package/dist/cjs/media-inline/views/error-view.js +1 -2
- package/dist/cjs/media-inline/views/wrapper.js +3 -4
- package/dist/cjs/media-single/CommentBadge.js +1 -2
- package/dist/cjs/messages/block-controls.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +5 -10
- package/dist/cjs/panel.js +0 -12
- package/dist/cjs/styles/shared/annotation.js +11 -14
- package/dist/cjs/styles/shared/code-block.js +2 -4
- package/dist/cjs/styles/shared/code-mark.js +1 -2
- package/dist/cjs/styles/shared/grid.js +2 -3
- package/dist/cjs/styles/shared/headings.js +56 -17
- package/dist/cjs/styles/shared/panel.js +13 -34
- package/dist/cjs/styles/shared/plugins.js +1 -2
- package/dist/cjs/styles/shared/resizer.js +1 -2
- package/dist/cjs/styles/shared/rule.js +1 -2
- package/dist/cjs/styles/shared/shadow.js +2 -3
- package/dist/cjs/styles/shared/smartCard.js +2 -3
- package/dist/cjs/table/SortingIcon.js +1 -2
- package/dist/cjs/ui/BaseTheme/index.js +1 -2
- package/dist/cjs/ui/Caption/index.js +2 -3
- package/dist/cjs/ui/DropList/index.js +4 -5
- package/dist/cjs/ui/Expand/index.js +2 -3
- package/dist/cjs/ui/Expand/sharedStyles.js +7 -17
- package/dist/cjs/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/cjs/ui/FloatingToolbar/styles.js +10 -12
- package/dist/cjs/ui/Messages/index.js +8 -6
- package/dist/cjs/ui/PanelTextInput/styles.js +4 -5
- package/dist/cjs/ui/UnsupportedBlock/index.js +4 -6
- package/dist/cjs/ui/UnsupportedInline/index.js +4 -6
- package/dist/cjs/ui/WidthProvider/index.js +5 -39
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +3 -4
- package/dist/cjs/ui-color/ColorPalette/Palettes/common.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +22 -24
- package/dist/cjs/ui-color/ColorPalette/index.js +2 -3
- package/dist/cjs/ui-color/index.js +0 -13
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -3
- package/dist/es2019/analytics/types/enums.js +2 -0
- package/dist/es2019/element-browser/components/CategoryList.js +2 -3
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +3 -5
- package/dist/es2019/element-browser/components/ElementSearch.js +1 -2
- package/dist/es2019/element-browser/constants.js +1 -5
- package/dist/es2019/extensibility/Extension/Extension/styles.js +3 -4
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +1 -2
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
- package/dist/es2019/extensibility/Extension/styles.js +3 -4
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +2 -3
- package/dist/es2019/icons/shared/SteppedRainbowIconDecoration.js +2 -3
- package/dist/es2019/keymaps/index.js +3 -2
- package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +4 -5
- package/dist/es2019/link/ConfigureLinkOverlay/index.js +2 -4
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +1 -2
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +4 -6
- package/dist/es2019/media-inline/constants.js +10 -8
- package/dist/es2019/media-inline/styles.js +1 -2
- package/dist/es2019/media-inline/views/error-view.js +1 -2
- package/dist/es2019/media-inline/views/wrapper.js +3 -4
- package/dist/es2019/media-single/CommentBadge.js +1 -2
- package/dist/es2019/messages/block-controls.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +5 -9
- package/dist/es2019/panel.js +1 -1
- package/dist/es2019/styles/shared/annotation.js +11 -14
- package/dist/es2019/styles/shared/code-block.js +12 -14
- package/dist/es2019/styles/shared/code-mark.js +1 -2
- package/dist/es2019/styles/shared/grid.js +2 -3
- package/dist/es2019/styles/shared/headings.js +35 -8
- package/dist/es2019/styles/shared/panel.js +12 -25
- package/dist/es2019/styles/shared/plugins.js +1 -2
- package/dist/es2019/styles/shared/resizer.js +6 -7
- package/dist/es2019/styles/shared/rule.js +1 -2
- package/dist/es2019/styles/shared/shadow.js +2 -3
- package/dist/es2019/styles/shared/smartCard.js +5 -7
- package/dist/es2019/table/SortingIcon.js +2 -3
- package/dist/es2019/ui/BaseTheme/index.js +1 -2
- package/dist/es2019/ui/Caption/index.js +2 -3
- package/dist/es2019/ui/DropList/index.js +4 -5
- package/dist/es2019/ui/Expand/index.js +2 -3
- package/dist/es2019/ui/Expand/sharedStyles.js +7 -17
- package/dist/es2019/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/es2019/ui/FloatingToolbar/styles.js +10 -12
- package/dist/es2019/ui/Messages/index.js +8 -6
- package/dist/es2019/ui/PanelTextInput/styles.js +4 -5
- package/dist/es2019/ui/UnsupportedBlock/index.js +4 -6
- package/dist/es2019/ui/UnsupportedInline/index.js +4 -6
- package/dist/es2019/ui/WidthProvider/index.js +2 -33
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +1 -4
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +3 -4
- package/dist/es2019/ui-color/ColorPalette/Palettes/common.js +1 -2
- package/dist/es2019/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +21 -24
- package/dist/es2019/ui-color/ColorPalette/index.js +2 -3
- package/dist/es2019/ui-color/index.js +0 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/es2019/ui-menu/DropdownMenu/index.js +3 -4
- package/dist/esm/analytics/types/enums.js +2 -0
- package/dist/esm/element-browser/components/CategoryList.js +2 -3
- package/dist/esm/element-browser/components/ElementList/ElementList.js +3 -5
- package/dist/esm/element-browser/components/ElementSearch.js +1 -2
- package/dist/esm/element-browser/constants.js +1 -5
- package/dist/esm/extensibility/Extension/Extension/styles.js +3 -4
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +1 -2
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
- package/dist/esm/extensibility/Extension/styles.js +3 -4
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +2 -3
- package/dist/esm/icons/shared/SteppedRainbowIconDecoration.js +2 -3
- package/dist/esm/keymaps/index.js +3 -2
- package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +4 -5
- package/dist/esm/link/ConfigureLinkOverlay/index.js +2 -4
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
- package/dist/esm/link/LinkSearch/LinkSearchList.js +1 -2
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +4 -6
- package/dist/esm/media-inline/constants.js +10 -8
- package/dist/esm/media-inline/styles.js +1 -2
- package/dist/esm/media-inline/views/error-view.js +1 -2
- package/dist/esm/media-inline/views/wrapper.js +3 -4
- package/dist/esm/media-single/CommentBadge.js +1 -2
- package/dist/esm/messages/block-controls.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +5 -9
- package/dist/esm/panel.js +1 -1
- package/dist/esm/styles/shared/annotation.js +11 -14
- package/dist/esm/styles/shared/code-block.js +2 -4
- package/dist/esm/styles/shared/code-mark.js +1 -2
- package/dist/esm/styles/shared/grid.js +2 -3
- package/dist/esm/styles/shared/headings.js +53 -17
- package/dist/esm/styles/shared/panel.js +12 -33
- package/dist/esm/styles/shared/plugins.js +1 -2
- package/dist/esm/styles/shared/resizer.js +1 -2
- package/dist/esm/styles/shared/rule.js +1 -2
- package/dist/esm/styles/shared/shadow.js +2 -3
- package/dist/esm/styles/shared/smartCard.js +2 -4
- package/dist/esm/table/SortingIcon.js +1 -2
- package/dist/esm/ui/BaseTheme/index.js +1 -2
- package/dist/esm/ui/Caption/index.js +2 -3
- package/dist/esm/ui/DropList/index.js +4 -5
- package/dist/esm/ui/Expand/index.js +2 -3
- package/dist/esm/ui/Expand/sharedStyles.js +7 -17
- package/dist/esm/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/esm/ui/FloatingToolbar/styles.js +10 -12
- package/dist/esm/ui/Messages/index.js +8 -6
- package/dist/esm/ui/PanelTextInput/styles.js +4 -5
- package/dist/esm/ui/UnsupportedBlock/index.js +4 -6
- package/dist/esm/ui/UnsupportedInline/index.js +4 -6
- package/dist/esm/ui/WidthProvider/index.js +5 -39
- package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +3 -4
- package/dist/esm/ui-color/ColorPalette/Palettes/common.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +21 -24
- package/dist/esm/ui-color/ColorPalette/index.js +2 -3
- package/dist/esm/ui-color/index.js +0 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/esm/ui-menu/DropdownMenu/index.js +2 -3
- package/dist/types/analytics/types/enums.d.ts +2 -0
- package/dist/types/element-browser/constants.d.ts +3 -3
- package/dist/types/keymaps/index.d.ts +2 -0
- package/dist/types/media-inline/constants.d.ts +3 -0
- package/dist/types/messages/block-controls.d.ts +10 -0
- package/dist/types/panel.d.ts +1 -1
- package/dist/types/styles/shared/panel.d.ts +0 -2
- package/dist/types/ui/WidthProvider/index.d.ts +0 -5
- package/dist/types/ui-color/index.d.ts +0 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -0
- package/dist/types-ts4.5/element-browser/constants.d.ts +3 -3
- package/dist/types-ts4.5/keymaps/index.d.ts +2 -0
- package/dist/types-ts4.5/media-inline/constants.d.ts +3 -0
- package/dist/types-ts4.5/messages/block-controls.d.ts +10 -0
- package/dist/types-ts4.5/panel.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -2
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +0 -5
- package/dist/types-ts4.5/ui-color/index.d.ts +0 -1
- package/package.json +3 -7
- package/dist/cjs/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -11
- package/dist/cjs/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -60
- package/dist/es2019/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -6
- package/dist/es2019/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -54
- package/dist/esm/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -6
- package/dist/esm/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -54
- package/dist/types/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.d.ts +0 -1
- package/dist/types/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
- package/dist/types-ts4.5/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.d.ts +0 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
|
@@ -1,76 +1,73 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
|
-
// AFP-2532 TODO: Fix automatic suppressions below
|
|
5
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
6
|
-
import { colors } from '@atlaskit/theme';
|
|
7
4
|
import { darkPanelColors } from '../../../panel';
|
|
8
5
|
import { DEFAULT_BORDER_COLOR } from './common';
|
|
9
6
|
/** this is not new usage - old code extracted from editor-core */
|
|
10
7
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
11
8
|
export var panelBackgroundPalette = [{
|
|
12
9
|
label: 'White',
|
|
13
|
-
value:
|
|
10
|
+
value: '#FFFFFF'
|
|
14
11
|
}, {
|
|
15
12
|
label: 'Light blue',
|
|
16
|
-
value:
|
|
13
|
+
value: '#DEEBFF'
|
|
17
14
|
}, {
|
|
18
15
|
label: 'Light teal',
|
|
19
|
-
value:
|
|
16
|
+
value: '#E6FCFF'
|
|
20
17
|
}, {
|
|
21
18
|
label: 'Light green',
|
|
22
|
-
value:
|
|
19
|
+
value: '#E3FCEF'
|
|
23
20
|
}, {
|
|
24
21
|
label: 'Light yellow',
|
|
25
|
-
value:
|
|
22
|
+
value: '#FFFAE6'
|
|
26
23
|
}, {
|
|
27
24
|
label: 'Light red',
|
|
28
|
-
value:
|
|
25
|
+
value: '#FFEBE6'
|
|
29
26
|
}, {
|
|
30
27
|
label: 'Light purple',
|
|
31
|
-
value:
|
|
28
|
+
value: '#EAE6FF'
|
|
32
29
|
}, {
|
|
33
30
|
label: 'Light gray',
|
|
34
|
-
value:
|
|
31
|
+
value: '#F4F5F7'
|
|
35
32
|
}, {
|
|
36
33
|
label: 'Blue',
|
|
37
|
-
value:
|
|
34
|
+
value: '#B3D4FF'
|
|
38
35
|
}, {
|
|
39
36
|
label: 'Teal',
|
|
40
|
-
value:
|
|
37
|
+
value: '#B3F5FF'
|
|
41
38
|
}, {
|
|
42
39
|
label: 'Green',
|
|
43
|
-
value:
|
|
40
|
+
value: '#ABF5D1'
|
|
44
41
|
}, {
|
|
45
42
|
label: 'Yellow',
|
|
46
|
-
value:
|
|
43
|
+
value: '#FFF0B3'
|
|
47
44
|
}, {
|
|
48
45
|
label: 'Red',
|
|
49
|
-
value:
|
|
46
|
+
value: '#FFBDAD'
|
|
50
47
|
}, {
|
|
51
48
|
label: 'Purple',
|
|
52
|
-
value:
|
|
49
|
+
value: '#C0B6F2'
|
|
53
50
|
}, {
|
|
54
51
|
label: 'Gray',
|
|
55
|
-
value:
|
|
52
|
+
value: '#B3BAC5'
|
|
56
53
|
}, {
|
|
57
54
|
label: 'Dark blue',
|
|
58
|
-
value:
|
|
55
|
+
value: '#4C9AFF'
|
|
59
56
|
}, {
|
|
60
57
|
label: 'Dark teal',
|
|
61
|
-
value:
|
|
58
|
+
value: '#79E2F2'
|
|
62
59
|
}, {
|
|
63
60
|
label: 'Dark green',
|
|
64
|
-
value:
|
|
61
|
+
value: '#57D9A3'
|
|
65
62
|
}, {
|
|
66
63
|
label: 'Dark yellow',
|
|
67
|
-
value:
|
|
64
|
+
value: '#FFC400'
|
|
68
65
|
}, {
|
|
69
66
|
label: 'Dark red',
|
|
70
|
-
value:
|
|
67
|
+
value: '#FF8F73'
|
|
71
68
|
}, {
|
|
72
69
|
label: 'Dark purple',
|
|
73
|
-
value:
|
|
70
|
+
value: '#998DD9'
|
|
74
71
|
}].map(function (color) {
|
|
75
72
|
return _objectSpread(_objectSpread({}, color), {}, {
|
|
76
73
|
border: "var(--ds-border, ".concat(DEFAULT_BORDER_COLOR, ")")
|
|
@@ -8,7 +8,6 @@ import React from 'react';
|
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import chromatism from 'chromatism';
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
|
-
import { N0, N500 } from '@atlaskit/theme/colors';
|
|
12
11
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
13
12
|
import Color from './Color';
|
|
14
13
|
import getColorMessage from './Palettes/getColorMessage';
|
|
@@ -27,7 +26,7 @@ function getCheckMarkColor(color, useIconToken) {
|
|
|
27
26
|
var colorValue = !!tokenVal ? tokenVal : color;
|
|
28
27
|
|
|
29
28
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
30
|
-
var contrastColor = [
|
|
29
|
+
var contrastColor = ['#FFFFFF', '#42526E'].sort(function (a, b) {
|
|
31
30
|
return chromatism.difference(b, colorValue) - chromatism.difference(a, colorValue);
|
|
32
31
|
})[0];
|
|
33
32
|
if (!useIconToken) {
|
|
@@ -38,7 +37,7 @@ function getCheckMarkColor(color, useIconToken) {
|
|
|
38
37
|
// they are only intended for use with text colors (and there are different tokens
|
|
39
38
|
// planned to be used when this extended to be used with other palettes).
|
|
40
39
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
41
|
-
return contrastColor ===
|
|
40
|
+
return contrastColor === '#FFFFFF' ? "var(--ds-icon-inverse, #FFFFFF)" : "var(--ds-icon, #44546F)";
|
|
42
41
|
}
|
|
43
42
|
var ColorPalette = function ColorPalette(props) {
|
|
44
43
|
var _props$cols = props.cols,
|
|
@@ -4,7 +4,6 @@ export { DEFAULT_COLOR_PICKER_COLUMNS, getColorsPerRowFromPalette, getSelectedRo
|
|
|
4
4
|
export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/cellBackgroundColorPalette';
|
|
5
5
|
export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
|
|
6
6
|
export { panelBackgroundPalette, panelDarkModeBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
7
|
-
export { lightModeStatusColorPalette, darkModeStatusColorPalette } from './ColorPalette/Palettes/statusColorPalette';
|
|
8
7
|
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
9
8
|
export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR } from './ColorPalette/Palettes/highlightColorPalette';
|
|
10
9
|
export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes';
|
|
@@ -11,7 +11,6 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
11
11
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
12
12
|
import Button from '@atlaskit/button/standard-button';
|
|
13
13
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
14
|
-
import { N0, N30A, N60A } from '@atlaskit/theme/colors';
|
|
15
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
16
15
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
|
|
17
16
|
import { ColorPalette, DEFAULT_BORDER_COLOR, getSelectedRowAndColumnFromPalette } from '../../ui-color';
|
|
@@ -35,8 +34,8 @@ var colorPickerExpandContainer = css({
|
|
|
35
34
|
var colorPickerWrapper = function colorPickerWrapper() {
|
|
36
35
|
return css({
|
|
37
36
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
38
|
-
backgroundColor: "var(--ds-surface-overlay,
|
|
39
|
-
boxShadow: "var(--ds-shadow-overlay,
|
|
37
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
38
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
|
40
39
|
padding: "var(--ds-space-100, 8px)".concat(" 0px")
|
|
41
40
|
});
|
|
42
41
|
};
|
|
@@ -197,7 +196,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
197
196
|
margin: "0px ".concat("var(--ds-space-025, 2px)")
|
|
198
197
|
},
|
|
199
198
|
'&:hover': {
|
|
200
|
-
background: "var(--ds-background-neutral-subtle-hovered,
|
|
199
|
+
background: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
|
|
201
200
|
}
|
|
202
201
|
});
|
|
203
202
|
};
|
|
@@ -26,7 +26,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
26
26
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
27
27
|
import { CustomItem, MenuGroup, Section } from '@atlaskit/menu';
|
|
28
28
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
29
|
-
import { B100, N70, N900 } from '@atlaskit/theme/colors';
|
|
30
29
|
import Tooltip from '@atlaskit/tooltip';
|
|
31
30
|
import { DropdownMenuSharedCssClassName } from '../../styles';
|
|
32
31
|
import { KeyDownHandlerContext } from '../../ui-menu/ToolbarArrowKeyNavigationProvider';
|
|
@@ -43,7 +42,7 @@ var wrapper = css({
|
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
var focusedMenuItemStyle = css({
|
|
46
|
-
boxShadow: "inset 0px 0px 0px 2px ".concat("var(--ds-border-focused,
|
|
45
|
+
boxShadow: "inset 0px 0px 0px 2px ".concat("var(--ds-border-focused, #388BFF)"),
|
|
47
46
|
outline: 'none'
|
|
48
47
|
});
|
|
49
48
|
var buttonStyles = function buttonStyles(isActive, submenuActive) {
|
|
@@ -55,7 +54,7 @@ var buttonStyles = function buttonStyles(isActive, submenuActive) {
|
|
|
55
54
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t> span,\n\t\t\t> span:hover,\n\t\t\t> span:active {\n\t\t\t\tbackground: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-background-selected, #6c798f)", "var(--ds-text, #fff)", focusedMenuItemStyle);
|
|
56
55
|
} else {
|
|
57
56
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
58
|
-
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t> span:hover[aria-disabled='false'] {\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\t", "\n\t\t\t> span[aria-disabled='true'] {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-text,
|
|
57
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t> span:hover[aria-disabled='false'] {\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\t", "\n\t\t\t> span[aria-disabled='true'] {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-text, #172B4D)", "var(--ds-background-neutral-subtle-hovered, rgb(244, 245, 247))", !submenuActive && "\n\t\t\t\t\t> span:active[aria-disabled='false'] {\n\t\t\t\t\t\tbackground-color: ".concat("var(--ds-background-neutral-subtle-pressed, rgb(179, 212, 255))", ";\n\t\t\t\t\t}"), "var(--ds-text-disabled, #091E424F)", focusedMenuItemStyle); // The default focus-visible style is removed to ensure consistency across browsers
|
|
59
58
|
}
|
|
60
59
|
};
|
|
61
60
|
var DropListWithOutsideListeners = withReactEditorViewOuterListeners(DropList);
|
|
@@ -222,6 +222,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
222
222
|
LIST = "list",
|
|
223
223
|
MEDIA = "media",
|
|
224
224
|
MEDIA_SINGLE = "mediaSingle",
|
|
225
|
+
MENTION = "mention",
|
|
225
226
|
NESTED_EXPAND = "nestedExpand",
|
|
226
227
|
PANEL = "panel",
|
|
227
228
|
PICKER = "picker",
|
|
@@ -326,6 +327,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
326
327
|
MEDIA_LINK = "mediaLink",
|
|
327
328
|
MEDIA_SINGLE = "mediaSingle",
|
|
328
329
|
MENTION = "mention",
|
|
330
|
+
MENTION_PROVIDER = "mentionProvider",
|
|
329
331
|
NESTED_EXPAND = "nestedExpand",
|
|
330
332
|
NODE = "node",
|
|
331
333
|
OPEN_LINK = "openLink",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const GRID_SIZE
|
|
1
|
+
export declare const GRID_SIZE = 8;
|
|
2
2
|
export declare const DEVICE_BREAKPOINT_NUMBERS: {
|
|
3
3
|
small: number;
|
|
4
4
|
medium: number;
|
|
@@ -9,8 +9,8 @@ export declare const FLEX_ITEMS_CONTAINER_BREAKPOINT_NUMBERS: {
|
|
|
9
9
|
medium: number;
|
|
10
10
|
large: number;
|
|
11
11
|
};
|
|
12
|
-
export declare const SIDEBAR_WIDTH
|
|
13
|
-
export declare const SIDEBAR_HEADING_WRAPPER_HEIGHT
|
|
12
|
+
export declare const SIDEBAR_WIDTH = "200px";
|
|
13
|
+
export declare const SIDEBAR_HEADING_WRAPPER_HEIGHT = "48px";
|
|
14
14
|
export declare const SIDEBAR_HEADING_PADDING_LEFT = "12px";
|
|
15
15
|
export declare const INLINE_SIDEBAR_HEIGHT = "54px";
|
|
16
16
|
export declare const SEARCH_ITEM_HEIGHT_WIDTH = "20px";
|
|
@@ -96,6 +96,8 @@ export declare const toggleHighlightPalette: Keymap;
|
|
|
96
96
|
export declare const focusToContextMenuTrigger: Keymap;
|
|
97
97
|
export declare const dragToMoveUp: Keymap;
|
|
98
98
|
export declare const dragToMoveDown: Keymap;
|
|
99
|
+
export declare const dragToMoveLeft: Keymap;
|
|
100
|
+
export declare const dragToMoveRight: Keymap;
|
|
99
101
|
export declare const showElementDragHandle: Keymap;
|
|
100
102
|
export declare const continueInRovoChat: Keymap;
|
|
101
103
|
export declare function formatShortcut(keymap: Keymap): string | undefined;
|
|
@@ -10,6 +10,9 @@ export declare const DEFAULT_INLINE_IMAGE_BORDER_SIZE = 0;
|
|
|
10
10
|
*
|
|
11
11
|
* There is conversation about refactoring media inline nodes to conform to
|
|
12
12
|
* aligning correctly with the surrounding text.
|
|
13
|
+
*
|
|
14
|
+
* These constants originally came from `headingSizes` from the `theme` package
|
|
15
|
+
* and have been copied here to remove this package.
|
|
13
16
|
*/
|
|
14
17
|
export declare const referenceHeights: {
|
|
15
18
|
p: number;
|
|
@@ -29,4 +29,14 @@ export declare const messages: {
|
|
|
29
29
|
defaultMessage: string;
|
|
30
30
|
description: string;
|
|
31
31
|
};
|
|
32
|
+
moveLeft: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
moveRight: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
32
42
|
};
|
package/dist/types/panel.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors,
|
|
1
|
+
export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors, panelSharedStyles, panelSharedStylesWithoutPrefix, PanelSharedCssClassName, PanelSharedSelectors, } from './styles/shared/panel';
|
|
@@ -47,8 +47,6 @@ export declare const darkPanelColors: {
|
|
|
47
47
|
LightGray: string;
|
|
48
48
|
TextColor: string;
|
|
49
49
|
};
|
|
50
|
-
export declare const getPanelDarkColor: (panelColor: string) => string;
|
|
51
|
-
export declare const getPanelBackgroundDarkModeColors: string;
|
|
52
50
|
export declare function getPanelDarkModeCSS(colorName: string, colorValue: string): string;
|
|
53
51
|
export declare const PanelSharedCssClassName: {
|
|
54
52
|
prefix: string;
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
declare global {
|
|
8
|
-
interface Window {
|
|
9
|
-
__SSR_BREAKOUT_OBSERVED?: boolean;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
7
|
export type Breakpoints = 'S' | 'M' | 'L';
|
|
13
8
|
export type WidthConsumerContext = {
|
|
14
9
|
width: number;
|
|
@@ -4,7 +4,6 @@ export { DEFAULT_COLOR_PICKER_COLUMNS, getColorsPerRowFromPalette, getSelectedRo
|
|
|
4
4
|
export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/cellBackgroundColorPalette';
|
|
5
5
|
export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
|
|
6
6
|
export { panelBackgroundPalette, panelDarkModeBackgroundPalette, } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
7
|
-
export { lightModeStatusColorPalette, darkModeStatusColorPalette, } from './ColorPalette/Palettes/statusColorPalette';
|
|
8
7
|
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
9
8
|
export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR, } from './ColorPalette/Palettes/highlightColorPalette';
|
|
10
9
|
export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages, } from './ColorPalette/Palettes';
|
|
@@ -222,6 +222,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
222
222
|
LIST = "list",
|
|
223
223
|
MEDIA = "media",
|
|
224
224
|
MEDIA_SINGLE = "mediaSingle",
|
|
225
|
+
MENTION = "mention",
|
|
225
226
|
NESTED_EXPAND = "nestedExpand",
|
|
226
227
|
PANEL = "panel",
|
|
227
228
|
PICKER = "picker",
|
|
@@ -326,6 +327,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
326
327
|
MEDIA_LINK = "mediaLink",
|
|
327
328
|
MEDIA_SINGLE = "mediaSingle",
|
|
328
329
|
MENTION = "mention",
|
|
330
|
+
MENTION_PROVIDER = "mentionProvider",
|
|
329
331
|
NESTED_EXPAND = "nestedExpand",
|
|
330
332
|
NODE = "node",
|
|
331
333
|
OPEN_LINK = "openLink",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const GRID_SIZE
|
|
1
|
+
export declare const GRID_SIZE = 8;
|
|
2
2
|
export declare const DEVICE_BREAKPOINT_NUMBERS: {
|
|
3
3
|
small: number;
|
|
4
4
|
medium: number;
|
|
@@ -9,8 +9,8 @@ export declare const FLEX_ITEMS_CONTAINER_BREAKPOINT_NUMBERS: {
|
|
|
9
9
|
medium: number;
|
|
10
10
|
large: number;
|
|
11
11
|
};
|
|
12
|
-
export declare const SIDEBAR_WIDTH
|
|
13
|
-
export declare const SIDEBAR_HEADING_WRAPPER_HEIGHT
|
|
12
|
+
export declare const SIDEBAR_WIDTH = "200px";
|
|
13
|
+
export declare const SIDEBAR_HEADING_WRAPPER_HEIGHT = "48px";
|
|
14
14
|
export declare const SIDEBAR_HEADING_PADDING_LEFT = "12px";
|
|
15
15
|
export declare const INLINE_SIDEBAR_HEIGHT = "54px";
|
|
16
16
|
export declare const SEARCH_ITEM_HEIGHT_WIDTH = "20px";
|
|
@@ -96,6 +96,8 @@ export declare const toggleHighlightPalette: Keymap;
|
|
|
96
96
|
export declare const focusToContextMenuTrigger: Keymap;
|
|
97
97
|
export declare const dragToMoveUp: Keymap;
|
|
98
98
|
export declare const dragToMoveDown: Keymap;
|
|
99
|
+
export declare const dragToMoveLeft: Keymap;
|
|
100
|
+
export declare const dragToMoveRight: Keymap;
|
|
99
101
|
export declare const showElementDragHandle: Keymap;
|
|
100
102
|
export declare const continueInRovoChat: Keymap;
|
|
101
103
|
export declare function formatShortcut(keymap: Keymap): string | undefined;
|
|
@@ -10,6 +10,9 @@ export declare const DEFAULT_INLINE_IMAGE_BORDER_SIZE = 0;
|
|
|
10
10
|
*
|
|
11
11
|
* There is conversation about refactoring media inline nodes to conform to
|
|
12
12
|
* aligning correctly with the surrounding text.
|
|
13
|
+
*
|
|
14
|
+
* These constants originally came from `headingSizes` from the `theme` package
|
|
15
|
+
* and have been copied here to remove this package.
|
|
13
16
|
*/
|
|
14
17
|
export declare const referenceHeights: {
|
|
15
18
|
p: number;
|
|
@@ -29,4 +29,14 @@ export declare const messages: {
|
|
|
29
29
|
defaultMessage: string;
|
|
30
30
|
description: string;
|
|
31
31
|
};
|
|
32
|
+
moveLeft: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
moveRight: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
32
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors,
|
|
1
|
+
export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors, panelSharedStyles, panelSharedStylesWithoutPrefix, PanelSharedCssClassName, PanelSharedSelectors, } from './styles/shared/panel';
|
|
@@ -47,8 +47,6 @@ export declare const darkPanelColors: {
|
|
|
47
47
|
LightGray: string;
|
|
48
48
|
TextColor: string;
|
|
49
49
|
};
|
|
50
|
-
export declare const getPanelDarkColor: (panelColor: string) => string;
|
|
51
|
-
export declare const getPanelBackgroundDarkModeColors: string;
|
|
52
50
|
export declare function getPanelDarkModeCSS(colorName: string, colorValue: string): string;
|
|
53
51
|
export declare const PanelSharedCssClassName: {
|
|
54
52
|
prefix: string;
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
declare global {
|
|
8
|
-
interface Window {
|
|
9
|
-
__SSR_BREAKOUT_OBSERVED?: boolean;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
7
|
export type Breakpoints = 'S' | 'M' | 'L';
|
|
13
8
|
export type WidthConsumerContext = {
|
|
14
9
|
width: number;
|
|
@@ -4,7 +4,6 @@ export { DEFAULT_COLOR_PICKER_COLUMNS, getColorsPerRowFromPalette, getSelectedRo
|
|
|
4
4
|
export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/cellBackgroundColorPalette';
|
|
5
5
|
export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
|
|
6
6
|
export { panelBackgroundPalette, panelDarkModeBackgroundPalette, } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
7
|
-
export { lightModeStatusColorPalette, darkModeStatusColorPalette, } from './ColorPalette/Palettes/statusColorPalette';
|
|
8
7
|
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
9
8
|
export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR, } from './ColorPalette/Palettes/highlightColorPalette';
|
|
10
9
|
export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages, } from './ColorPalette/Palettes';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "93.1.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"@atlaskit/emoji": "^67.8.0",
|
|
128
128
|
"@atlaskit/icon": "^22.20.0",
|
|
129
129
|
"@atlaskit/icon-object": "^6.5.0",
|
|
130
|
-
"@atlaskit/link-datasource": "^3.
|
|
130
|
+
"@atlaskit/link-datasource": "^3.4.0",
|
|
131
131
|
"@atlaskit/link-picker": "^1.47.0",
|
|
132
132
|
"@atlaskit/media-card": "^78.5.0",
|
|
133
133
|
"@atlaskit/media-client": "^28.0.0",
|
|
@@ -148,10 +148,9 @@
|
|
|
148
148
|
"@atlaskit/spinner": "^16.3.0",
|
|
149
149
|
"@atlaskit/task-decision": "^17.11.0",
|
|
150
150
|
"@atlaskit/textfield": "^6.5.0",
|
|
151
|
-
"@atlaskit/theme": "^13.0.0",
|
|
152
151
|
"@atlaskit/tmp-editor-statsig": "*",
|
|
153
152
|
"@atlaskit/tokens": "^2.0.0",
|
|
154
|
-
"@atlaskit/tooltip": "^18.
|
|
153
|
+
"@atlaskit/tooltip": "^18.8.0",
|
|
155
154
|
"@atlaskit/ufo": "^0.3.0",
|
|
156
155
|
"@atlaskit/width-detector": "^4.3.0",
|
|
157
156
|
"@babel/runtime": "^7.0.0",
|
|
@@ -267,9 +266,6 @@
|
|
|
267
266
|
"cc_page_experiences_live_search_wysiwyg": {
|
|
268
267
|
"type": "boolean"
|
|
269
268
|
},
|
|
270
|
-
"platform-fix-table-ssr-resizing": {
|
|
271
|
-
"type": "boolean"
|
|
272
|
-
},
|
|
273
269
|
"use-effect-in-use-previous-props": {
|
|
274
270
|
"type": "boolean"
|
|
275
271
|
},
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isSsrButNoBreakoutScriptObserved = isSsrButNoBreakoutScriptObserved;
|
|
7
|
-
var _isSsr = require("../../core-utils/is-ssr");
|
|
8
|
-
// export for testing
|
|
9
|
-
function isSsrButNoBreakoutScriptObserved() {
|
|
10
|
-
return (0, _isSsr.isSSR)() && !window.__SSR_BREAKOUT_OBSERVED;
|
|
11
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.lightModeStatusColorPalette = exports.darkModeStatusColorPalette = void 0;
|
|
7
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
8
|
-
/** this is not new usage - old code extracted from editor-core */
|
|
9
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
10
|
-
var lightModeStatusColorPalette = exports.lightModeStatusColorPalette = [{
|
|
11
|
-
label: 'neutral',
|
|
12
|
-
value: _colors.N40,
|
|
13
|
-
border: _colors.N400
|
|
14
|
-
}, {
|
|
15
|
-
label: 'purple',
|
|
16
|
-
value: _colors.P50,
|
|
17
|
-
border: _colors.P400
|
|
18
|
-
}, {
|
|
19
|
-
label: 'blue',
|
|
20
|
-
value: _colors.B50,
|
|
21
|
-
border: _colors.B400
|
|
22
|
-
}, {
|
|
23
|
-
label: 'red',
|
|
24
|
-
value: _colors.R50,
|
|
25
|
-
border: _colors.R400
|
|
26
|
-
}, {
|
|
27
|
-
label: 'yellow',
|
|
28
|
-
value: _colors.Y75,
|
|
29
|
-
border: _colors.Y400
|
|
30
|
-
}, {
|
|
31
|
-
label: 'green',
|
|
32
|
-
value: _colors.G50,
|
|
33
|
-
border: _colors.G400
|
|
34
|
-
}];
|
|
35
|
-
var darkModeStatusColorPalette = exports.darkModeStatusColorPalette = [{
|
|
36
|
-
label: 'neutral',
|
|
37
|
-
value: '#7F9BB4',
|
|
38
|
-
border: _colors.N400
|
|
39
|
-
}, {
|
|
40
|
-
label: 'purple',
|
|
41
|
-
value: '#282249',
|
|
42
|
-
border: _colors.P400
|
|
43
|
-
}, {
|
|
44
|
-
label: 'blue',
|
|
45
|
-
value: '#0C294F',
|
|
46
|
-
border: _colors.B400
|
|
47
|
-
}, {
|
|
48
|
-
label: 'red',
|
|
49
|
-
value: '#441C13',
|
|
50
|
-
border: _colors.R400
|
|
51
|
-
}, {
|
|
52
|
-
label: 'yellow',
|
|
53
|
-
value: '#413001',
|
|
54
|
-
border: _colors.Y400
|
|
55
|
-
}, {
|
|
56
|
-
label: 'green',
|
|
57
|
-
value: '#052E21',
|
|
58
|
-
border: _colors.G400
|
|
59
|
-
}];
|
|
60
|
-
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { B400, B50, G400, G50, N40, N400, P400, P50, R400, R50, Y400, Y75 } from '@atlaskit/theme/colors';
|
|
2
|
-
/** this is not new usage - old code extracted from editor-core */
|
|
3
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
4
|
-
export const lightModeStatusColorPalette = [{
|
|
5
|
-
label: 'neutral',
|
|
6
|
-
value: N40,
|
|
7
|
-
border: N400
|
|
8
|
-
}, {
|
|
9
|
-
label: 'purple',
|
|
10
|
-
value: P50,
|
|
11
|
-
border: P400
|
|
12
|
-
}, {
|
|
13
|
-
label: 'blue',
|
|
14
|
-
value: B50,
|
|
15
|
-
border: B400
|
|
16
|
-
}, {
|
|
17
|
-
label: 'red',
|
|
18
|
-
value: R50,
|
|
19
|
-
border: R400
|
|
20
|
-
}, {
|
|
21
|
-
label: 'yellow',
|
|
22
|
-
value: Y75,
|
|
23
|
-
border: Y400
|
|
24
|
-
}, {
|
|
25
|
-
label: 'green',
|
|
26
|
-
value: G50,
|
|
27
|
-
border: G400
|
|
28
|
-
}];
|
|
29
|
-
export const darkModeStatusColorPalette = [{
|
|
30
|
-
label: 'neutral',
|
|
31
|
-
value: '#7F9BB4',
|
|
32
|
-
border: N400
|
|
33
|
-
}, {
|
|
34
|
-
label: 'purple',
|
|
35
|
-
value: '#282249',
|
|
36
|
-
border: P400
|
|
37
|
-
}, {
|
|
38
|
-
label: 'blue',
|
|
39
|
-
value: '#0C294F',
|
|
40
|
-
border: B400
|
|
41
|
-
}, {
|
|
42
|
-
label: 'red',
|
|
43
|
-
value: '#441C13',
|
|
44
|
-
border: R400
|
|
45
|
-
}, {
|
|
46
|
-
label: 'yellow',
|
|
47
|
-
value: '#413001',
|
|
48
|
-
border: Y400
|
|
49
|
-
}, {
|
|
50
|
-
label: 'green',
|
|
51
|
-
value: '#052E21',
|
|
52
|
-
border: G400
|
|
53
|
-
}];
|
|
54
|
-
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { B400, B50, G400, G50, N40, N400, P400, P50, R400, R50, Y400, Y75 } from '@atlaskit/theme/colors';
|
|
2
|
-
/** this is not new usage - old code extracted from editor-core */
|
|
3
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
4
|
-
export var lightModeStatusColorPalette = [{
|
|
5
|
-
label: 'neutral',
|
|
6
|
-
value: N40,
|
|
7
|
-
border: N400
|
|
8
|
-
}, {
|
|
9
|
-
label: 'purple',
|
|
10
|
-
value: P50,
|
|
11
|
-
border: P400
|
|
12
|
-
}, {
|
|
13
|
-
label: 'blue',
|
|
14
|
-
value: B50,
|
|
15
|
-
border: B400
|
|
16
|
-
}, {
|
|
17
|
-
label: 'red',
|
|
18
|
-
value: R50,
|
|
19
|
-
border: R400
|
|
20
|
-
}, {
|
|
21
|
-
label: 'yellow',
|
|
22
|
-
value: Y75,
|
|
23
|
-
border: Y400
|
|
24
|
-
}, {
|
|
25
|
-
label: 'green',
|
|
26
|
-
value: G50,
|
|
27
|
-
border: G400
|
|
28
|
-
}];
|
|
29
|
-
export var darkModeStatusColorPalette = [{
|
|
30
|
-
label: 'neutral',
|
|
31
|
-
value: '#7F9BB4',
|
|
32
|
-
border: N400
|
|
33
|
-
}, {
|
|
34
|
-
label: 'purple',
|
|
35
|
-
value: '#282249',
|
|
36
|
-
border: P400
|
|
37
|
-
}, {
|
|
38
|
-
label: 'blue',
|
|
39
|
-
value: '#0C294F',
|
|
40
|
-
border: B400
|
|
41
|
-
}, {
|
|
42
|
-
label: 'red',
|
|
43
|
-
value: '#441C13',
|
|
44
|
-
border: R400
|
|
45
|
-
}, {
|
|
46
|
-
label: 'yellow',
|
|
47
|
-
value: '#413001',
|
|
48
|
-
border: Y400
|
|
49
|
-
}, {
|
|
50
|
-
label: 'green',
|
|
51
|
-
value: '#052E21',
|
|
52
|
-
border: G400
|
|
53
|
-
}];
|
|
54
|
-
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isSsrButNoBreakoutScriptObserved(): boolean;
|