@atlaskit/editor-core 187.31.1 → 187.31.3
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 +12 -0
- package/dist/cjs/plugins/insert-block/index.js +13 -12
- package/dist/cjs/plugins/type-ahead/pm-plugins/reducer.js +5 -0
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +58 -65
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/insert-block/index.js +13 -10
- package/dist/es2019/plugins/type-ahead/pm-plugins/reducer.js +5 -0
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +58 -65
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/insert-block/index.js +13 -12
- package/dist/esm/plugins/type-ahead/pm-plugins/reducer.js +5 -0
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +58 -65
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/ConfigPanel/Fields/ColorPicker.d.ts +4 -4
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/ColorPicker.d.ts +4 -4
- package/package.json +3 -3
|
@@ -7,7 +7,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
7
|
import { jsx, css } from '@emotion/react';
|
|
8
8
|
import { Fragment } from 'react';
|
|
9
9
|
import { Field } from '@atlaskit/form';
|
|
10
|
-
import { hexToEditorTableChartsPaletteColor } from '@atlaskit/editor-palette';
|
|
11
10
|
import { DEFAULT_BORDER_COLOR } from '../../../ui/ColorPalette/Palettes/common';
|
|
12
11
|
import { validate as _validate } from '../utils';
|
|
13
12
|
import { requiredIndicator } from './common/RequiredIndicator';
|
|
@@ -25,105 +24,105 @@ import { chartsColorPaletteTooltipMessages } from '../../../ui/ColorPalette';
|
|
|
25
24
|
|
|
26
25
|
export var colorPalette = [{
|
|
27
26
|
label: 'Light Blue',
|
|
28
|
-
value:
|
|
27
|
+
value: "var(--ds-background-accent-blue-subtle, #7AB2FF)"
|
|
29
28
|
},
|
|
30
29
|
// 400
|
|
31
30
|
{
|
|
32
31
|
label: 'Light Green',
|
|
33
|
-
value:
|
|
32
|
+
value: "var(--ds-background-accent-green-subtle, #6BE1B0)"
|
|
34
33
|
},
|
|
35
34
|
// 400
|
|
36
35
|
{
|
|
37
36
|
label: 'Light Yellow',
|
|
38
|
-
value:
|
|
37
|
+
value: "var(--ds-background-accent-yellow-subtle, #FFDB57)"
|
|
39
38
|
},
|
|
40
39
|
// 400
|
|
41
40
|
{
|
|
42
41
|
label: 'Light Red',
|
|
43
|
-
value:
|
|
42
|
+
value: "var(--ds-background-accent-red-subtle, #FF8F73)"
|
|
44
43
|
},
|
|
45
44
|
// 400
|
|
46
45
|
{
|
|
47
46
|
label: 'Light Purple',
|
|
48
|
-
value:
|
|
47
|
+
value: "var(--ds-background-accent-purple-subtle, #B5A7FB)"
|
|
49
48
|
},
|
|
50
49
|
// 400
|
|
51
50
|
|
|
52
51
|
{
|
|
53
52
|
label: 'Blue',
|
|
54
|
-
value:
|
|
53
|
+
value: "var(--ds-chart-blue-bold, #247FFF)"
|
|
55
54
|
},
|
|
56
55
|
// 600
|
|
57
56
|
{
|
|
58
57
|
label: 'Green',
|
|
59
|
-
value:
|
|
58
|
+
value: "var(--ds-chart-green-bold, #23A971)"
|
|
60
59
|
},
|
|
61
60
|
// 600
|
|
62
61
|
{
|
|
63
62
|
label: 'Yellow',
|
|
64
|
-
value:
|
|
63
|
+
value: "var(--ds-chart-yellow-bold, #FFBE33)"
|
|
65
64
|
},
|
|
66
65
|
// 600
|
|
67
66
|
{
|
|
68
67
|
label: 'Red',
|
|
69
|
-
value:
|
|
68
|
+
value: "var(--ds-chart-red-bold, #FC552C)"
|
|
70
69
|
},
|
|
71
70
|
// 600
|
|
72
71
|
{
|
|
73
72
|
label: 'Purple',
|
|
74
|
-
value:
|
|
73
|
+
value: "var(--ds-chart-purple-bold, #8B77EE)"
|
|
75
74
|
},
|
|
76
75
|
// 600
|
|
77
76
|
|
|
78
77
|
{
|
|
79
78
|
label: 'Dark Blue',
|
|
80
|
-
value:
|
|
79
|
+
value: "var(--ds-chart-blue-bolder, #0055CC)"
|
|
81
80
|
},
|
|
82
81
|
// 800
|
|
83
82
|
{
|
|
84
83
|
label: 'Dark Green',
|
|
85
|
-
value:
|
|
84
|
+
value: "var(--ds-chart-green-bolder, #177D52)"
|
|
86
85
|
},
|
|
87
86
|
// 800
|
|
88
87
|
{
|
|
89
88
|
label: 'Dark Yellow',
|
|
90
|
-
value:
|
|
89
|
+
value: "var(--ds-chart-yellow-bolder, #FF9D00)"
|
|
91
90
|
},
|
|
92
91
|
// 800
|
|
93
92
|
{
|
|
94
93
|
label: 'Dark Red',
|
|
95
|
-
value:
|
|
94
|
+
value: "var(--ds-chart-red-bolder, #D32D03)"
|
|
96
95
|
},
|
|
97
96
|
// 800
|
|
98
97
|
{
|
|
99
98
|
label: 'Dark Purple',
|
|
100
|
-
value:
|
|
99
|
+
value: "var(--ds-chart-purple-bolder, #5A43D0)"
|
|
101
100
|
},
|
|
102
101
|
// 800
|
|
103
102
|
|
|
104
103
|
{
|
|
105
104
|
label: 'Darker Blue',
|
|
106
|
-
value:
|
|
105
|
+
value: "var(--ds-chart-blue-boldest, #003884)"
|
|
107
106
|
},
|
|
108
107
|
// 1000
|
|
109
108
|
{
|
|
110
109
|
label: 'Darker Green',
|
|
111
|
-
value:
|
|
110
|
+
value: "var(--ds-chart-green-boldest, #055C3F)"
|
|
112
111
|
},
|
|
113
112
|
// 1000
|
|
114
113
|
{
|
|
115
114
|
label: 'Darker Yellow',
|
|
116
|
-
value:
|
|
115
|
+
value: "var(--ds-chart-yellow-boldest, #946104)"
|
|
117
116
|
},
|
|
118
117
|
// 1000
|
|
119
118
|
{
|
|
120
119
|
label: 'Darker Red',
|
|
121
|
-
value:
|
|
120
|
+
value: "var(--ds-chart-red-boldest, #A32000)"
|
|
122
121
|
},
|
|
123
122
|
// 1000
|
|
124
123
|
{
|
|
125
124
|
label: 'Darker Purple',
|
|
126
|
-
value:
|
|
125
|
+
value: "var(--ds-chart-purple-boldest, #44368B)"
|
|
127
126
|
} // 1000
|
|
128
127
|
].map(function (color) {
|
|
129
128
|
return _objectSpread(_objectSpread({}, color), {}, {
|
|
@@ -137,185 +136,185 @@ export var colorPalette = [{
|
|
|
137
136
|
*/
|
|
138
137
|
export var extendedColorPalette = [{
|
|
139
138
|
label: 'Darker Blue',
|
|
140
|
-
value:
|
|
139
|
+
value: "var(--ds-chart-blue-boldest, #003884)"
|
|
141
140
|
},
|
|
142
141
|
// 1000
|
|
143
142
|
{
|
|
144
143
|
label: 'Darker Teal',
|
|
145
|
-
value:
|
|
144
|
+
value: "var(--ds-chart-teal-boldest, #206B74)"
|
|
146
145
|
},
|
|
147
146
|
// 1000
|
|
148
147
|
{
|
|
149
148
|
label: 'Darker Green',
|
|
150
|
-
value:
|
|
149
|
+
value: "var(--ds-chart-green-boldest, #055C3F)"
|
|
151
150
|
},
|
|
152
151
|
// 1000
|
|
153
152
|
{
|
|
154
153
|
label: 'Darker Yellow',
|
|
155
|
-
value:
|
|
154
|
+
value: "var(--ds-chart-yellow-boldest, #946104)"
|
|
156
155
|
},
|
|
157
156
|
// 1000
|
|
158
157
|
{
|
|
159
158
|
label: 'Darker Orange',
|
|
160
|
-
value:
|
|
159
|
+
value: "var(--ds-chart-orange-boldest, #974F0C)"
|
|
161
160
|
},
|
|
162
161
|
// 1000
|
|
163
162
|
{
|
|
164
163
|
label: 'Darker Red',
|
|
165
|
-
value:
|
|
164
|
+
value: "var(--ds-chart-red-boldest, #A32000)"
|
|
166
165
|
},
|
|
167
166
|
// 1000
|
|
168
167
|
{
|
|
169
168
|
label: 'Darker Magenta',
|
|
170
|
-
value:
|
|
169
|
+
value: "var(--ds-chart-magenta-boldest, #943D73)"
|
|
171
170
|
},
|
|
172
171
|
// 1000
|
|
173
172
|
{
|
|
174
173
|
label: 'Darker Purple',
|
|
175
|
-
value:
|
|
174
|
+
value: "var(--ds-chart-purple-boldest, #44368B)"
|
|
176
175
|
},
|
|
177
176
|
// 1000
|
|
178
177
|
{
|
|
179
178
|
label: 'Darker Gray',
|
|
180
|
-
value:
|
|
179
|
+
value: "var(--ds-chart-gray-boldest, #44546F)"
|
|
181
180
|
},
|
|
182
181
|
// 1000
|
|
183
182
|
|
|
184
183
|
{
|
|
185
184
|
label: 'Dark Blue',
|
|
186
|
-
value:
|
|
185
|
+
value: "var(--ds-chart-blue-bolder, #0055CC)"
|
|
187
186
|
},
|
|
188
187
|
// 800
|
|
189
188
|
{
|
|
190
189
|
label: 'Dark Teal',
|
|
191
|
-
value:
|
|
190
|
+
value: "var(--ds-chart-teal-bolder, #1D7F8C)"
|
|
192
191
|
},
|
|
193
192
|
// 800
|
|
194
193
|
{
|
|
195
194
|
label: 'Dark Green',
|
|
196
|
-
value:
|
|
195
|
+
value: "var(--ds-chart-green-bolder, #177D52)"
|
|
197
196
|
},
|
|
198
197
|
// 800
|
|
199
198
|
{
|
|
200
199
|
label: 'Dark Yellow',
|
|
201
|
-
value:
|
|
200
|
+
value: "var(--ds-chart-yellow-bolder, #FF9D00)"
|
|
202
201
|
},
|
|
203
202
|
// 800
|
|
204
203
|
{
|
|
205
204
|
label: 'Dark Orange',
|
|
206
|
-
value:
|
|
205
|
+
value: "var(--ds-chart-orange-bolder, #B65C02)"
|
|
207
206
|
},
|
|
208
207
|
// 800
|
|
209
208
|
{
|
|
210
209
|
label: 'Dark Red',
|
|
211
|
-
value:
|
|
210
|
+
value: "var(--ds-chart-red-bolder, #D32D03)"
|
|
212
211
|
},
|
|
213
212
|
// 800
|
|
214
213
|
{
|
|
215
214
|
label: 'Dark Magenta',
|
|
216
|
-
value:
|
|
215
|
+
value: "var(--ds-chart-magenta-bolder, #CD519D)"
|
|
217
216
|
},
|
|
218
217
|
// 800
|
|
219
218
|
{
|
|
220
219
|
label: 'Dark Purple',
|
|
221
|
-
value:
|
|
220
|
+
value: "var(--ds-chart-purple-bolder, #5A43D0)"
|
|
222
221
|
},
|
|
223
222
|
// 800
|
|
224
223
|
{
|
|
225
224
|
label: 'Dark Gray',
|
|
226
|
-
value:
|
|
225
|
+
value: "var(--ds-chart-gray-bolder, #758195)"
|
|
227
226
|
},
|
|
228
227
|
// 800
|
|
229
228
|
|
|
230
229
|
{
|
|
231
230
|
label: 'Blue',
|
|
232
|
-
value:
|
|
231
|
+
value: "var(--ds-chart-blue-bold, #247FFF)"
|
|
233
232
|
},
|
|
234
233
|
// 600
|
|
235
234
|
{
|
|
236
235
|
label: 'Teal',
|
|
237
|
-
value:
|
|
236
|
+
value: "var(--ds-chart-teal-bold, #1D9AAA)"
|
|
238
237
|
},
|
|
239
238
|
// 600
|
|
240
239
|
{
|
|
241
240
|
label: 'Green',
|
|
242
|
-
value:
|
|
241
|
+
value: "var(--ds-chart-green-bold, #23A971)"
|
|
243
242
|
},
|
|
244
243
|
// 600
|
|
245
244
|
{
|
|
246
245
|
label: 'Yellow',
|
|
247
|
-
value:
|
|
246
|
+
value: "var(--ds-chart-yellow-bold, #FFBE33)"
|
|
248
247
|
},
|
|
249
248
|
// 600
|
|
250
249
|
{
|
|
251
250
|
label: 'Orange',
|
|
252
|
-
value:
|
|
251
|
+
value: "var(--ds-chart-orange-bold, #D97008)"
|
|
253
252
|
},
|
|
254
253
|
// 600
|
|
255
254
|
{
|
|
256
255
|
label: 'Red',
|
|
257
|
-
value:
|
|
256
|
+
value: "var(--ds-chart-red-bold, #FC552C)"
|
|
258
257
|
},
|
|
259
258
|
// 600
|
|
260
259
|
{
|
|
261
260
|
label: 'Magenta',
|
|
262
|
-
value:
|
|
261
|
+
value: "var(--ds-chart-magenta-bold, #DA62AC)"
|
|
263
262
|
},
|
|
264
263
|
// 600
|
|
265
264
|
{
|
|
266
265
|
label: 'Purple',
|
|
267
|
-
value:
|
|
266
|
+
value: "var(--ds-chart-purple-bold, #8B77EE)"
|
|
268
267
|
},
|
|
269
268
|
// 600
|
|
270
269
|
{
|
|
271
270
|
label: 'Gray',
|
|
272
|
-
value:
|
|
271
|
+
value: "var(--ds-chart-gray-bold, #8590A2)"
|
|
273
272
|
},
|
|
274
273
|
// 600
|
|
275
274
|
|
|
276
275
|
{
|
|
277
276
|
label: 'Light Blue',
|
|
278
|
-
value:
|
|
277
|
+
value: "var(--ds-background-accent-blue-subtle, #7AB2FF)"
|
|
279
278
|
},
|
|
280
279
|
// 400
|
|
281
280
|
{
|
|
282
281
|
label: 'Light Teal',
|
|
283
|
-
value:
|
|
282
|
+
value: "var(--ds-background-accent-teal-subtle, #60C6D2)"
|
|
284
283
|
},
|
|
285
284
|
// 400
|
|
286
285
|
{
|
|
287
286
|
label: 'Light Green',
|
|
288
|
-
value:
|
|
287
|
+
value: "var(--ds-background-accent-green-subtle, #6BE1B0)"
|
|
289
288
|
},
|
|
290
289
|
// 400
|
|
291
290
|
{
|
|
292
291
|
label: 'Light Yellow',
|
|
293
|
-
value:
|
|
292
|
+
value: "var(--ds-background-accent-yellow-subtle, #FFDB57)"
|
|
294
293
|
},
|
|
295
294
|
// 400
|
|
296
295
|
{
|
|
297
296
|
label: 'Light Orange',
|
|
298
|
-
value:
|
|
297
|
+
value: "var(--ds-background-accent-orange-subtle, #FAA53D)"
|
|
299
298
|
},
|
|
300
299
|
// 400
|
|
301
300
|
{
|
|
302
301
|
label: 'Light Red',
|
|
303
|
-
value:
|
|
302
|
+
value: "var(--ds-background-accent-red-subtle, #FF8F73)"
|
|
304
303
|
},
|
|
305
304
|
// 400
|
|
306
305
|
{
|
|
307
306
|
label: 'Light Magenta',
|
|
308
|
-
value:
|
|
307
|
+
value: "var(--ds-background-accent-magenta-subtle, #E774BB)"
|
|
309
308
|
},
|
|
310
309
|
// 400
|
|
311
310
|
{
|
|
312
311
|
label: 'Light Purple',
|
|
313
|
-
value:
|
|
312
|
+
value: "var(--ds-background-accent-purple-subtle, #B5A7FB)"
|
|
314
313
|
},
|
|
315
314
|
// 400
|
|
316
315
|
{
|
|
317
316
|
label: 'Light Gray',
|
|
318
|
-
value:
|
|
317
|
+
value: "var(--ds-background-accent-gray-subtle, #8993A5)"
|
|
319
318
|
} // 400
|
|
320
319
|
].map(function (color) {
|
|
321
320
|
return _objectSpread(_objectSpread({}, color), {}, {
|
|
@@ -345,16 +344,10 @@ var ColorPicker = function ColorPicker(props) {
|
|
|
345
344
|
useSomewhatSemanticTextColorNames = _ref.useSomewhatSemanticTextColorNames,
|
|
346
345
|
expandedChartColors = _ref.expandedChartColors;
|
|
347
346
|
return expandedChartColors ? jsx(ColorPickerButton, {
|
|
348
|
-
title: title
|
|
349
|
-
|
|
350
|
-
// However, alpha channel was always FF, and it was not used
|
|
351
|
-
// Expanded color palette does not have alpha channel, so
|
|
352
|
-
// removing last two characters from hex code with alpha here.
|
|
353
|
-
,
|
|
354
|
-
currentColor: currentColor.substring(0, 7),
|
|
347
|
+
title: title,
|
|
348
|
+
currentColor: currentColor,
|
|
355
349
|
onChange: onColorChange,
|
|
356
350
|
colorPalette: extendedColorPalette,
|
|
357
|
-
hexToPaletteColor: hexToEditorTableChartsPaletteColor,
|
|
358
351
|
paletteColorTooltipMessages: chartsColorPaletteTooltipMessages
|
|
359
352
|
// We did not want to create new FF or update
|
|
360
353
|
// useSomewhatSemanticTextColorNames name
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { ColorField } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
-
import { PaletteColor } from '../../../ui/ColorPalette/Palettes';
|
|
6
|
-
import { OnFieldChange } from '../types';
|
|
3
|
+
import type { ColorField } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { PaletteColor } from '../../../ui/ColorPalette/Palettes';
|
|
6
|
+
import type { OnFieldChange } from '../types';
|
|
7
7
|
export declare const colorPalette: PaletteColor[];
|
|
8
8
|
/**
|
|
9
9
|
* Extended chart colors.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { ColorField } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
-
import { PaletteColor } from '../../../ui/ColorPalette/Palettes';
|
|
6
|
-
import { OnFieldChange } from '../types';
|
|
3
|
+
import type { ColorField } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { PaletteColor } from '../../../ui/ColorPalette/Palettes';
|
|
6
|
+
import type { OnFieldChange } from '../types';
|
|
7
7
|
export declare const colorPalette: PaletteColor[];
|
|
8
8
|
/**
|
|
9
9
|
* Extended chart colors.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "187.31.
|
|
3
|
+
"version": "187.31.3",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/checkbox": "^12.6.0",
|
|
55
55
|
"@atlaskit/code": "^14.6.0",
|
|
56
56
|
"@atlaskit/date": "^0.10.0",
|
|
57
|
-
"@atlaskit/datetime-picker": "^12.
|
|
57
|
+
"@atlaskit/datetime-picker": "^12.8.0",
|
|
58
58
|
"@atlaskit/editor-common": "^74.52.0",
|
|
59
59
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
60
60
|
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
@@ -268,4 +268,4 @@
|
|
|
268
268
|
"type": "boolean"
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
}
|
|
271
|
+
}
|