@atlaskit/editor-common 110.50.2 → 111.0.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 +22 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/panel.js +0 -6
- package/dist/cjs/styles/shared/panel.js +1 -68
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Messages/index.js +3 -7
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +0 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +23 -168
- package/dist/cjs/ui-color/index.js +0 -6
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +17 -10
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/panel.js +1 -1
- package/dist/es2019/styles/shared/panel.js +0 -70
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Messages/index.js +3 -7
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +0 -2
- package/dist/es2019/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +21 -167
- package/dist/es2019/ui-color/index.js +1 -1
- package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +15 -8
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/panel.js +1 -1
- package/dist/esm/styles/shared/panel.js +0 -65
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Messages/index.js +3 -7
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +0 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +21 -168
- package/dist/esm/ui-color/index.js +1 -1
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +17 -10
- package/dist/types/panel.d.ts +1 -1
- package/dist/types/styles/shared/panel.d.ts +0 -49
- package/dist/types/ui-color/ColorPalette/Palettes/panelBackgroundPalette.d.ts +1 -3
- package/dist/types/ui-color/index.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -0
- package/dist/types-ts4.5/panel.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -49
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/panelBackgroundPalette.d.ts +1 -3
- package/dist/types-ts4.5/ui-color/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -0
- package/package.json +1 -1
|
@@ -57,7 +57,6 @@ export const EditorDiagonalLineIcon = () => {
|
|
|
57
57
|
*/
|
|
58
58
|
export const highlightColorPalette = [{
|
|
59
59
|
value: REMOVE_HIGHLIGHT_COLOR,
|
|
60
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
61
60
|
label: 'No color',
|
|
62
61
|
// Mostly informative, only used for analytics
|
|
63
62
|
border: "var(--ds-border, #091E4224)",
|
|
@@ -69,7 +68,6 @@ backgroundColorPalette.forEach((label, color) => {
|
|
|
69
68
|
});
|
|
70
69
|
export const highlightColorPaletteNext = [{
|
|
71
70
|
value: REMOVE_HIGHLIGHT_COLOR,
|
|
72
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
73
71
|
label: 'No color',
|
|
74
72
|
// Mostly informative, only used for analytics
|
|
75
73
|
border: "var(--ds-border, #091E4224)",
|
|
@@ -1,214 +1,68 @@
|
|
|
1
|
-
/* eslint-disable @atlassian/i18n/no-literal-string-in-object */
|
|
2
|
-
|
|
3
|
-
import { darkPanelColors } from '../../../panel';
|
|
4
1
|
import { DEFAULT_BORDER_COLOR } from './common';
|
|
5
|
-
|
|
6
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
7
|
-
export const panelBackgroundPalette = [
|
|
8
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
9
|
-
{
|
|
2
|
+
export const panelBackgroundPalette = [{
|
|
10
3
|
label: 'White',
|
|
11
4
|
value: '#FFFFFF'
|
|
12
|
-
},
|
|
13
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
14
|
-
{
|
|
5
|
+
}, {
|
|
15
6
|
label: 'Light blue',
|
|
16
7
|
value: '#DEEBFF'
|
|
17
|
-
},
|
|
18
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
19
|
-
{
|
|
8
|
+
}, {
|
|
20
9
|
label: 'Light teal',
|
|
21
10
|
value: '#E6FCFF'
|
|
22
|
-
},
|
|
23
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
24
|
-
{
|
|
11
|
+
}, {
|
|
25
12
|
label: 'Light green',
|
|
26
13
|
value: '#E3FCEF'
|
|
27
|
-
},
|
|
28
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
29
|
-
{
|
|
14
|
+
}, {
|
|
30
15
|
label: 'Light yellow',
|
|
31
16
|
value: '#FFFAE6'
|
|
32
|
-
},
|
|
33
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
34
|
-
{
|
|
17
|
+
}, {
|
|
35
18
|
label: 'Light red',
|
|
36
19
|
value: '#FFEBE6'
|
|
37
|
-
},
|
|
38
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
39
|
-
{
|
|
20
|
+
}, {
|
|
40
21
|
label: 'Light purple',
|
|
41
22
|
value: '#EAE6FF'
|
|
42
|
-
},
|
|
43
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
44
|
-
{
|
|
23
|
+
}, {
|
|
45
24
|
label: 'Light gray',
|
|
46
25
|
value: '#F4F5F7'
|
|
47
|
-
},
|
|
48
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
49
|
-
{
|
|
26
|
+
}, {
|
|
50
27
|
label: 'Blue',
|
|
51
28
|
value: '#B3D4FF'
|
|
52
|
-
},
|
|
53
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
54
|
-
{
|
|
29
|
+
}, {
|
|
55
30
|
label: 'Teal',
|
|
56
31
|
value: '#B3F5FF'
|
|
57
|
-
},
|
|
58
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
59
|
-
{
|
|
32
|
+
}, {
|
|
60
33
|
label: 'Green',
|
|
61
34
|
value: '#ABF5D1'
|
|
62
|
-
},
|
|
63
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
64
|
-
{
|
|
35
|
+
}, {
|
|
65
36
|
label: 'Yellow',
|
|
66
37
|
value: '#FFF0B3'
|
|
67
|
-
},
|
|
68
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
69
|
-
{
|
|
38
|
+
}, {
|
|
70
39
|
label: 'Red',
|
|
71
40
|
value: '#FFBDAD'
|
|
72
|
-
},
|
|
73
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
74
|
-
{
|
|
41
|
+
}, {
|
|
75
42
|
label: 'Purple',
|
|
76
43
|
value: '#C0B6F2'
|
|
77
|
-
},
|
|
78
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
79
|
-
{
|
|
44
|
+
}, {
|
|
80
45
|
label: 'Gray',
|
|
81
46
|
value: '#B3BAC5'
|
|
82
|
-
},
|
|
83
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
84
|
-
{
|
|
47
|
+
}, {
|
|
85
48
|
label: 'Dark blue',
|
|
86
49
|
value: '#4C9AFF'
|
|
87
|
-
},
|
|
88
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
89
|
-
{
|
|
50
|
+
}, {
|
|
90
51
|
label: 'Dark teal',
|
|
91
52
|
value: '#79E2F2'
|
|
92
|
-
},
|
|
93
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
94
|
-
{
|
|
53
|
+
}, {
|
|
95
54
|
label: 'Dark green',
|
|
96
55
|
value: '#57D9A3'
|
|
97
|
-
},
|
|
98
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
99
|
-
{
|
|
56
|
+
}, {
|
|
100
57
|
label: 'Dark yellow',
|
|
101
58
|
value: '#FFC400'
|
|
102
|
-
},
|
|
103
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
104
|
-
{
|
|
59
|
+
}, {
|
|
105
60
|
label: 'Dark red',
|
|
106
61
|
value: '#FF8F73'
|
|
107
|
-
},
|
|
108
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
109
|
-
{
|
|
62
|
+
}, {
|
|
110
63
|
label: 'Dark purple',
|
|
111
64
|
value: '#998DD9'
|
|
112
65
|
}].map(color => ({
|
|
113
66
|
...color,
|
|
114
67
|
border: `var(--ds-border, ${DEFAULT_BORDER_COLOR})`
|
|
115
|
-
}));
|
|
116
|
-
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
117
|
-
|
|
118
|
-
export const panelDarkModeBackgroundPalette = [
|
|
119
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
120
|
-
{
|
|
121
|
-
label: 'Dark gray',
|
|
122
|
-
value: darkPanelColors.DarkGray
|
|
123
|
-
},
|
|
124
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
125
|
-
{
|
|
126
|
-
label: 'Dark blue',
|
|
127
|
-
value: darkPanelColors.B1200S
|
|
128
|
-
},
|
|
129
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
130
|
-
{
|
|
131
|
-
label: 'Dark teal',
|
|
132
|
-
value: darkPanelColors.T1200S
|
|
133
|
-
},
|
|
134
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
135
|
-
{
|
|
136
|
-
label: 'Dark green',
|
|
137
|
-
value: darkPanelColors.G1200S
|
|
138
|
-
},
|
|
139
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
140
|
-
{
|
|
141
|
-
label: 'Dark yellow',
|
|
142
|
-
value: darkPanelColors.Y1200S
|
|
143
|
-
},
|
|
144
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
145
|
-
{
|
|
146
|
-
label: 'Dark red',
|
|
147
|
-
value: darkPanelColors.R1200S
|
|
148
|
-
},
|
|
149
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
150
|
-
{
|
|
151
|
-
label: 'Dark purple',
|
|
152
|
-
value: darkPanelColors.P1200S
|
|
153
|
-
},
|
|
154
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
155
|
-
{
|
|
156
|
-
label: 'Gray',
|
|
157
|
-
value: darkPanelColors.Gray
|
|
158
|
-
}, {
|
|
159
|
-
label: 'blue',
|
|
160
|
-
value: darkPanelColors.B900
|
|
161
|
-
}, {
|
|
162
|
-
label: 'teal',
|
|
163
|
-
value: darkPanelColors.T900
|
|
164
|
-
}, {
|
|
165
|
-
label: 'green',
|
|
166
|
-
value: darkPanelColors.G900
|
|
167
|
-
}, {
|
|
168
|
-
label: 'yellow',
|
|
169
|
-
value: darkPanelColors.Y900
|
|
170
|
-
}, {
|
|
171
|
-
label: 'red',
|
|
172
|
-
value: darkPanelColors.R900
|
|
173
|
-
}, {
|
|
174
|
-
label: 'purple',
|
|
175
|
-
value: darkPanelColors.P900
|
|
176
|
-
},
|
|
177
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
178
|
-
{
|
|
179
|
-
label: 'Light gray',
|
|
180
|
-
value: darkPanelColors.LightGray
|
|
181
|
-
},
|
|
182
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
183
|
-
{
|
|
184
|
-
label: 'Light blue',
|
|
185
|
-
value: darkPanelColors.B800S
|
|
186
|
-
},
|
|
187
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
188
|
-
{
|
|
189
|
-
label: 'Light teal',
|
|
190
|
-
value: darkPanelColors.T900S
|
|
191
|
-
},
|
|
192
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
193
|
-
{
|
|
194
|
-
label: 'Light green',
|
|
195
|
-
value: darkPanelColors.G900S
|
|
196
|
-
},
|
|
197
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
198
|
-
{
|
|
199
|
-
label: 'Light yellow',
|
|
200
|
-
value: darkPanelColors.Y800S
|
|
201
|
-
},
|
|
202
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
203
|
-
{
|
|
204
|
-
label: 'Light red',
|
|
205
|
-
value: darkPanelColors.R800S
|
|
206
|
-
},
|
|
207
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
208
|
-
{
|
|
209
|
-
label: 'Light purple',
|
|
210
|
-
value: darkPanelColors.P800S
|
|
211
|
-
}].map(color => ({
|
|
212
|
-
...color,
|
|
213
|
-
border: DEFAULT_BORDER_COLOR
|
|
214
68
|
}));
|
|
@@ -6,7 +6,7 @@ export { default as Color } from './ColorPalette/Color';
|
|
|
6
6
|
export { DEFAULT_COLOR_PICKER_COLUMNS, getColorsPerRowFromPalette, getSelectedRowAndColumn, getSelectedRowAndColumnFromPalette } from './ColorPalette/utils';
|
|
7
7
|
export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/cellBackgroundColorPalette';
|
|
8
8
|
export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
|
|
9
|
-
export { panelBackgroundPalette
|
|
9
|
+
export { panelBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
10
10
|
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
11
11
|
export { highlightColorPalette, highlightColorPaletteNext, REMOVE_HIGHLIGHT_COLOR } from './ColorPalette/Palettes/highlightColorPalette';
|
|
12
12
|
export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes/paletteMessagesTokenModeNames';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { PureComponent, useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
5
|
import ReactEditorViewContext from './ReactEditorViewContext';
|
|
5
6
|
// Use this context to pass in the reference of the element that should be considered as the outside click target
|
|
@@ -29,7 +30,7 @@ class WithOutsideClick extends PureComponent {
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
|
-
_defineProperty(this, "
|
|
33
|
+
_defineProperty(this, "handleKeyDown", evt => {
|
|
33
34
|
if (!this.props.isActiveComponent) {
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
@@ -47,6 +48,10 @@ class WithOutsideClick extends PureComponent {
|
|
|
47
48
|
} else if ((evt.code === 'Delete' || evt.code === 'Backspace') && this.props.handleBackspaceDeleteKeydown) {
|
|
48
49
|
this.props.handleBackspaceDeleteKeydown(evt);
|
|
49
50
|
}
|
|
51
|
+
if (expValEquals('platform_editor_block_menu', 'isEnabled', true)) {
|
|
52
|
+
var _this$props$handleKey, _this$props;
|
|
53
|
+
(_this$props$handleKey = (_this$props = this.props).handleKeyDown) === null || _this$props$handleKey === void 0 ? void 0 : _this$props$handleKey.call(_this$props, evt);
|
|
54
|
+
}
|
|
50
55
|
});
|
|
51
56
|
}
|
|
52
57
|
componentDidMount() {
|
|
@@ -58,7 +63,7 @@ class WithOutsideClick extends PureComponent {
|
|
|
58
63
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
59
64
|
document.addEventListener('click', this.handleClick, options);
|
|
60
65
|
}
|
|
61
|
-
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown) {
|
|
66
|
+
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown && expValEquals('platform_editor_block_menu', 'isEnabled', true)) {
|
|
62
67
|
var _this$props$editorRef;
|
|
63
68
|
// Attached event to the menu so that 'ESC' events from the opened menu also will be handled.
|
|
64
69
|
// Ignored via go/ees005
|
|
@@ -69,7 +74,7 @@ class WithOutsideClick extends PureComponent {
|
|
|
69
74
|
|
|
70
75
|
// Ignored via go/ees005
|
|
71
76
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
72
|
-
).addEventListener('keydown', this.
|
|
77
|
+
).addEventListener('keydown', this.handleKeyDown, false);
|
|
73
78
|
}
|
|
74
79
|
}
|
|
75
80
|
componentWillUnmount() {
|
|
@@ -81,7 +86,7 @@ class WithOutsideClick extends PureComponent {
|
|
|
81
86
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
82
87
|
document.removeEventListener('click', this.handleClick, options);
|
|
83
88
|
}
|
|
84
|
-
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown) {
|
|
89
|
+
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown && expValEquals('platform_editor_block_menu', 'isEnabled', true)) {
|
|
85
90
|
var _this$props$editorRef2;
|
|
86
91
|
// Ignored via go/ees005
|
|
87
92
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
@@ -91,7 +96,7 @@ class WithOutsideClick extends PureComponent {
|
|
|
91
96
|
|
|
92
97
|
// Ignored via go/ees005
|
|
93
98
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
94
|
-
).removeEventListener('keydown', this.
|
|
99
|
+
).removeEventListener('keydown', this.handleKeyDown, false);
|
|
95
100
|
}
|
|
96
101
|
}
|
|
97
102
|
render() {
|
|
@@ -105,12 +110,13 @@ function hasIsOpen(props) {
|
|
|
105
110
|
}
|
|
106
111
|
export default function withReactEditorViewOuterListeners(Component) {
|
|
107
112
|
return ({
|
|
113
|
+
captureClick,
|
|
114
|
+
closeOnTab,
|
|
115
|
+
handleBackspaceDeleteKeydown,
|
|
108
116
|
handleClickOutside,
|
|
109
117
|
handleEnterKeydown,
|
|
110
118
|
handleEscapeKeydown,
|
|
111
|
-
|
|
112
|
-
closeOnTab,
|
|
113
|
-
captureClick,
|
|
119
|
+
handleKeyDown,
|
|
114
120
|
...props
|
|
115
121
|
}) => {
|
|
116
122
|
const isActiveProp = hasIsOpen(props) ? props.isOpen : true;
|
|
@@ -141,6 +147,7 @@ export default function withReactEditorViewOuterListeners(Component) {
|
|
|
141
147
|
handleEnterKeydown: handleEnterKeydown,
|
|
142
148
|
handleEscapeKeydown: handleEscapeKeydown,
|
|
143
149
|
handleBackspaceDeleteKeydown: handleBackspaceDeleteKeydown,
|
|
150
|
+
handleKeyDown: handleKeyDown,
|
|
144
151
|
closeOnTab: closeOnTab,
|
|
145
152
|
captureClick: captureClick
|
|
146
153
|
}, /*#__PURE__*/React.createElement(Component
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "110.50.
|
|
13
|
+
var packageVersion = "110.50.3";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
package/dist/esm/panel.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Disable no-re-export rule for entry point files
|
|
2
2
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
3
|
|
|
4
|
-
export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens,
|
|
4
|
+
export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, PanelSharedCssClassName, PanelSharedSelectors } from './styles/shared/panel';
|
|
@@ -8,71 +8,6 @@ var lightPanelColors = {
|
|
|
8
8
|
warning: '#FFFAE6',
|
|
9
9
|
error: '#FFEBE6'
|
|
10
10
|
};
|
|
11
|
-
export var darkPanelColors = {
|
|
12
|
-
// standard panels
|
|
13
|
-
info: "#0C294F",
|
|
14
|
-
error: "#441C13",
|
|
15
|
-
warning: "#413001",
|
|
16
|
-
tip: "#052E21",
|
|
17
|
-
success: "#052E21",
|
|
18
|
-
note: "#282249",
|
|
19
|
-
// Reds
|
|
20
|
-
R900: '#601D16',
|
|
21
|
-
// Red Saturated
|
|
22
|
-
R100S: "#FFEFEB",
|
|
23
|
-
R300S: "#FFB5A3",
|
|
24
|
-
R500S: "#FF6B47",
|
|
25
|
-
R800S: "#C4320E",
|
|
26
|
-
R1200S: "#441C13",
|
|
27
|
-
// Yellows
|
|
28
|
-
Y900: '#533F04',
|
|
29
|
-
// Yellow Saturated
|
|
30
|
-
Y100S: "#FFF3D1",
|
|
31
|
-
Y300S: "#FFDC7A",
|
|
32
|
-
Y500S: "#FFC933",
|
|
33
|
-
Y800S: "#D8A003",
|
|
34
|
-
Y1200S: "#413001",
|
|
35
|
-
// Greens
|
|
36
|
-
G900: '#164B35',
|
|
37
|
-
// Green Saturated
|
|
38
|
-
G100S: "#E3FCF0",
|
|
39
|
-
G300S: "#95EEC5",
|
|
40
|
-
G400S: "#60DCA8",
|
|
41
|
-
G900S: "#086848",
|
|
42
|
-
G1200S: "#052E21",
|
|
43
|
-
// Blues
|
|
44
|
-
B900: '#09326C',
|
|
45
|
-
// Saturated Blues
|
|
46
|
-
B100S: '#E5F0FF',
|
|
47
|
-
B300S: '#A3C9FF',
|
|
48
|
-
B500S: '#4794FF',
|
|
49
|
-
B800S: '#0055CC',
|
|
50
|
-
B1200S: '#0C294F',
|
|
51
|
-
// Purples
|
|
52
|
-
P900: "#352C63",
|
|
53
|
-
// Purple Saturated
|
|
54
|
-
P100S: "#EEEBFF",
|
|
55
|
-
P300S: "#CCC3FE",
|
|
56
|
-
P500S: "#A292F7",
|
|
57
|
-
P800S: "#5E49CA",
|
|
58
|
-
P1200S: "#282249",
|
|
59
|
-
// Teals
|
|
60
|
-
T900: '#1D474C',
|
|
61
|
-
// Teal Saturated
|
|
62
|
-
T100S: "#DBFAFF",
|
|
63
|
-
T300S: "#78EBFC",
|
|
64
|
-
T400S: "#3AD6EE",
|
|
65
|
-
T900S: "#056270",
|
|
66
|
-
T1200S: "#0B3037",
|
|
67
|
-
// Dark Mode Alpha
|
|
68
|
-
DarkGray: '#161A1D',
|
|
69
|
-
Gray: '#2C333A',
|
|
70
|
-
LightGray: '#5A6977',
|
|
71
|
-
TextColor: '#D9DDE3'
|
|
72
|
-
};
|
|
73
|
-
export function getPanelDarkModeCSS(colorName, colorValue) {
|
|
74
|
-
return "\n &[data-panel-color=\"".concat(colorName, "\"] {\n background-color: ").concat(colorValue, " !important; // !important to override default style color\n color: ").concat(darkPanelColors.TextColor, ";\n }\n ");
|
|
75
|
-
}
|
|
76
11
|
var prefix = 'ak-editor-panel';
|
|
77
12
|
export var PanelSharedCssClassName = {
|
|
78
13
|
prefix: prefix,
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "110.50.
|
|
24
|
+
var packageVersion = "110.50.3";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -54,14 +54,10 @@ export var ErrorMessage = function ErrorMessage(_ref2) {
|
|
|
54
54
|
}
|
|
55
55
|
}, jsx("span", {
|
|
56
56
|
css: iconWrapperStyle
|
|
57
|
-
},
|
|
57
|
+
}, jsx(ErrorIcon, {
|
|
58
58
|
LEGACY_size: "small",
|
|
59
|
-
label: intl.formatMessage(commonMessages.error)
|
|
60
|
-
|
|
61
|
-
/* eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx */ : jsx(ErrorIcon, {
|
|
62
|
-
LEGACY_size: "small",
|
|
63
|
-
label: "error",
|
|
64
|
-
"aria-label": "error"
|
|
59
|
+
label: fg('platform_editor_dec_a11y_fixes') ? intl.formatMessage(commonMessages.error) : "error",
|
|
60
|
+
"aria-label": fg('platform_editor_dec_a11y_fixes') ? undefined : "error"
|
|
65
61
|
})), children);
|
|
66
62
|
};
|
|
67
63
|
export var ValidMessage = function ValidMessage(_ref3) {
|
|
@@ -58,7 +58,6 @@ export var EditorDiagonalLineIcon = function EditorDiagonalLineIcon() {
|
|
|
58
58
|
*/
|
|
59
59
|
export var highlightColorPalette = [{
|
|
60
60
|
value: REMOVE_HIGHLIGHT_COLOR,
|
|
61
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
62
61
|
label: 'No color',
|
|
63
62
|
// Mostly informative, only used for analytics
|
|
64
63
|
border: "var(--ds-border, #091E4224)",
|
|
@@ -70,7 +69,6 @@ backgroundColorPalette.forEach(function (label, color) {
|
|
|
70
69
|
});
|
|
71
70
|
export var highlightColorPaletteNext = [{
|
|
72
71
|
value: REMOVE_HIGHLIGHT_COLOR,
|
|
73
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
74
72
|
label: 'No color',
|
|
75
73
|
// Mostly informative, only used for analytics
|
|
76
74
|
border: "var(--ds-border, #091E4224)",
|