@atlaskit/editor-core 190.1.24 → 190.1.25
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 +10 -0
- package/dist/cjs/plugins/paste/handlers.js +2 -2
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +13 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/paste/handlers.js +2 -2
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +13 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/paste/handlers.js +2 -2
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +13 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 190.1.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#63290](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63290) [`52ea8e908f57`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/52ea8e908f57) - ED-19613: Cleaned references for feature flag: platform.editor.table-remove-update-resize-handles_djvab.
|
|
8
|
+
- [#63303](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63303) [`db6946b29596`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db6946b29596) - [ux] ED-18288 Adding right offset to color palette in config panel
|
|
9
|
+
- [#61531](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61531) [`e543bc778081`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e543bc778081) - [ux] add ff for delete button hover selection
|
|
10
|
+
- [#63306](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63306) [`61970079e90c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/61970079e90c) - ED-21651 : This PR fixes the bug where copy list-in-quote should paste as list in quote. Its working for bullet but not for ordered list.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 190.1.24
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -849,8 +849,8 @@ function handleRichText(slice, queueCardsFromChangedTr) {
|
|
|
849
849
|
schema: schema
|
|
850
850
|
});
|
|
851
851
|
} else if (noNeedForSafeInsert) {
|
|
852
|
-
var _firstChildOfSlice$ty2, _firstChildOfSlice$co;
|
|
853
|
-
if ((firstChildOfSlice === null || firstChildOfSlice === void 0 || (_firstChildOfSlice$ty2 = firstChildOfSlice.type) === null || _firstChildOfSlice$ty2 === void 0 ? void 0 : _firstChildOfSlice$ty2.name) === 'blockquote' && (firstChildOfSlice === null || firstChildOfSlice === void 0 || (_firstChildOfSlice$
|
|
852
|
+
var _firstChildOfSlice$ty2, _firstChildOfSlice$co, _firstChildOfSlice$co2;
|
|
853
|
+
if ((firstChildOfSlice === null || firstChildOfSlice === void 0 || (_firstChildOfSlice$ty2 = firstChildOfSlice.type) === null || _firstChildOfSlice$ty2 === void 0 ? void 0 : _firstChildOfSlice$ty2.name) === 'blockquote' && firstChildOfSlice !== null && firstChildOfSlice !== void 0 && (_firstChildOfSlice$co = firstChildOfSlice.content.firstChild) !== null && _firstChildOfSlice$co !== void 0 && _firstChildOfSlice$co.type.name && ['bulletList', 'orderedList'].includes(firstChildOfSlice === null || firstChildOfSlice === void 0 || (_firstChildOfSlice$co2 = firstChildOfSlice.content.firstChild) === null || _firstChildOfSlice$co2 === void 0 ? void 0 : _firstChildOfSlice$co2.type.name)) {
|
|
854
854
|
// checks if parent node is a blockquote and child node is either a bulletlist or orderedlist
|
|
855
855
|
(0, _edgeCases.insertSliceForListsInsideBlockquote)({
|
|
856
856
|
tr: tr,
|
|
@@ -354,6 +354,11 @@ var ColorPicker = function ColorPicker(props) {
|
|
|
354
354
|
width: "var(--ds-space-300, 24px)",
|
|
355
355
|
height: "var(--ds-space-300, 24px)"
|
|
356
356
|
}
|
|
357
|
+
/* ED-18288 We align the palette to the right edge which is 1.5rem spacing away to avoid
|
|
358
|
+
excess overflow on left. Additional 1 is to mitigate 1px added by floating toolbar. */,
|
|
359
|
+
absoluteOffset: {
|
|
360
|
+
right: Number(-1.5 * getCurrentRemSize() - 1)
|
|
361
|
+
}
|
|
357
362
|
});
|
|
358
363
|
};
|
|
359
364
|
var ColorPickerField = function ColorPickerField(_ref) {
|
|
@@ -395,4 +400,12 @@ var ColorPickerField = function ColorPickerField(_ref) {
|
|
|
395
400
|
}));
|
|
396
401
|
});
|
|
397
402
|
};
|
|
403
|
+
var getCurrentRemSize = function getCurrentRemSize() {
|
|
404
|
+
var fallback = 16; // 16px is the default rem size for most browsers
|
|
405
|
+
if (typeof document === 'undefined' || typeof getComputedStyle === 'undefined') {
|
|
406
|
+
return fallback;
|
|
407
|
+
}
|
|
408
|
+
var value = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
409
|
+
return value || fallback;
|
|
410
|
+
};
|
|
398
411
|
var _default = exports.default = ColorPickerField;
|
|
@@ -831,8 +831,8 @@ export function handleRichText(slice, queueCardsFromChangedTr) {
|
|
|
831
831
|
schema
|
|
832
832
|
});
|
|
833
833
|
} else if (noNeedForSafeInsert) {
|
|
834
|
-
var _firstChildOfSlice$ty2, _firstChildOfSlice$co;
|
|
835
|
-
if ((firstChildOfSlice === null || firstChildOfSlice === void 0 ? void 0 : (_firstChildOfSlice$ty2 = firstChildOfSlice.type) === null || _firstChildOfSlice$ty2 === void 0 ? void 0 : _firstChildOfSlice$ty2.name) === 'blockquote' && (firstChildOfSlice === null || firstChildOfSlice === void 0 ? void 0 : (_firstChildOfSlice$
|
|
834
|
+
var _firstChildOfSlice$ty2, _firstChildOfSlice$co, _firstChildOfSlice$co2;
|
|
835
|
+
if ((firstChildOfSlice === null || firstChildOfSlice === void 0 ? void 0 : (_firstChildOfSlice$ty2 = firstChildOfSlice.type) === null || _firstChildOfSlice$ty2 === void 0 ? void 0 : _firstChildOfSlice$ty2.name) === 'blockquote' && firstChildOfSlice !== null && firstChildOfSlice !== void 0 && (_firstChildOfSlice$co = firstChildOfSlice.content.firstChild) !== null && _firstChildOfSlice$co !== void 0 && _firstChildOfSlice$co.type.name && ['bulletList', 'orderedList'].includes(firstChildOfSlice === null || firstChildOfSlice === void 0 ? void 0 : (_firstChildOfSlice$co2 = firstChildOfSlice.content.firstChild) === null || _firstChildOfSlice$co2 === void 0 ? void 0 : _firstChildOfSlice$co2.type.name)) {
|
|
836
836
|
// checks if parent node is a blockquote and child node is either a bulletlist or orderedlist
|
|
837
837
|
insertSliceForListsInsideBlockquote({
|
|
838
838
|
tr,
|
|
@@ -353,6 +353,11 @@ const ColorPicker = props => {
|
|
|
353
353
|
width: "var(--ds-space-300, 24px)",
|
|
354
354
|
height: "var(--ds-space-300, 24px)"
|
|
355
355
|
}
|
|
356
|
+
/* ED-18288 We align the palette to the right edge which is 1.5rem spacing away to avoid
|
|
357
|
+
excess overflow on left. Additional 1 is to mitigate 1px added by floating toolbar. */,
|
|
358
|
+
absoluteOffset: {
|
|
359
|
+
right: Number(-1.5 * getCurrentRemSize() - 1)
|
|
360
|
+
}
|
|
356
361
|
});
|
|
357
362
|
};
|
|
358
363
|
const ColorPickerField = ({
|
|
@@ -394,4 +399,12 @@ const ColorPickerField = ({
|
|
|
394
399
|
description: ""
|
|
395
400
|
})));
|
|
396
401
|
};
|
|
402
|
+
const getCurrentRemSize = () => {
|
|
403
|
+
const fallback = 16; // 16px is the default rem size for most browsers
|
|
404
|
+
if (typeof document === 'undefined' || typeof getComputedStyle === 'undefined') {
|
|
405
|
+
return fallback;
|
|
406
|
+
}
|
|
407
|
+
const value = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
408
|
+
return value || fallback;
|
|
409
|
+
};
|
|
397
410
|
export default ColorPickerField;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "190.1.
|
|
2
|
+
export const version = "190.1.25";
|
|
@@ -828,8 +828,8 @@ export function handleRichText(slice, queueCardsFromChangedTr) {
|
|
|
828
828
|
schema: schema
|
|
829
829
|
});
|
|
830
830
|
} else if (noNeedForSafeInsert) {
|
|
831
|
-
var _firstChildOfSlice$ty2, _firstChildOfSlice$co;
|
|
832
|
-
if ((firstChildOfSlice === null || firstChildOfSlice === void 0 || (_firstChildOfSlice$ty2 = firstChildOfSlice.type) === null || _firstChildOfSlice$ty2 === void 0 ? void 0 : _firstChildOfSlice$ty2.name) === 'blockquote' && (firstChildOfSlice === null || firstChildOfSlice === void 0 || (_firstChildOfSlice$
|
|
831
|
+
var _firstChildOfSlice$ty2, _firstChildOfSlice$co, _firstChildOfSlice$co2;
|
|
832
|
+
if ((firstChildOfSlice === null || firstChildOfSlice === void 0 || (_firstChildOfSlice$ty2 = firstChildOfSlice.type) === null || _firstChildOfSlice$ty2 === void 0 ? void 0 : _firstChildOfSlice$ty2.name) === 'blockquote' && firstChildOfSlice !== null && firstChildOfSlice !== void 0 && (_firstChildOfSlice$co = firstChildOfSlice.content.firstChild) !== null && _firstChildOfSlice$co !== void 0 && _firstChildOfSlice$co.type.name && ['bulletList', 'orderedList'].includes(firstChildOfSlice === null || firstChildOfSlice === void 0 || (_firstChildOfSlice$co2 = firstChildOfSlice.content.firstChild) === null || _firstChildOfSlice$co2 === void 0 ? void 0 : _firstChildOfSlice$co2.type.name)) {
|
|
833
833
|
// checks if parent node is a blockquote and child node is either a bulletlist or orderedlist
|
|
834
834
|
insertSliceForListsInsideBlockquote({
|
|
835
835
|
tr: tr,
|
|
@@ -349,6 +349,11 @@ var ColorPicker = function ColorPicker(props) {
|
|
|
349
349
|
width: "var(--ds-space-300, 24px)",
|
|
350
350
|
height: "var(--ds-space-300, 24px)"
|
|
351
351
|
}
|
|
352
|
+
/* ED-18288 We align the palette to the right edge which is 1.5rem spacing away to avoid
|
|
353
|
+
excess overflow on left. Additional 1 is to mitigate 1px added by floating toolbar. */,
|
|
354
|
+
absoluteOffset: {
|
|
355
|
+
right: Number(-1.5 * getCurrentRemSize() - 1)
|
|
356
|
+
}
|
|
352
357
|
});
|
|
353
358
|
};
|
|
354
359
|
var ColorPickerField = function ColorPickerField(_ref) {
|
|
@@ -390,4 +395,12 @@ var ColorPickerField = function ColorPickerField(_ref) {
|
|
|
390
395
|
}));
|
|
391
396
|
});
|
|
392
397
|
};
|
|
398
|
+
var getCurrentRemSize = function getCurrentRemSize() {
|
|
399
|
+
var fallback = 16; // 16px is the default rem size for most browsers
|
|
400
|
+
if (typeof document === 'undefined' || typeof getComputedStyle === 'undefined') {
|
|
401
|
+
return fallback;
|
|
402
|
+
}
|
|
403
|
+
var value = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
404
|
+
return value || fallback;
|
|
405
|
+
};
|
|
393
406
|
export default ColorPickerField;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "190.1.
|
|
2
|
+
export var version = "190.1.25";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "190.1.
|
|
3
|
+
"version": "190.1.25",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/checkbox": "^13.0.0",
|
|
53
53
|
"@atlaskit/date": "^0.10.0",
|
|
54
54
|
"@atlaskit/datetime-picker": "^13.0.3",
|
|
55
|
-
"@atlaskit/editor-common": "^76.
|
|
55
|
+
"@atlaskit/editor-common": "^76.30.0",
|
|
56
56
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
57
57
|
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
58
58
|
"@atlaskit/editor-plugin-alignment": "^0.1.0",
|
|
@@ -258,10 +258,6 @@
|
|
|
258
258
|
"type": "boolean",
|
|
259
259
|
"referenceOnly": "true"
|
|
260
260
|
},
|
|
261
|
-
"platform.editor.table-remove-update-resize-handles_djvab": {
|
|
262
|
-
"type": "boolean",
|
|
263
|
-
"referenceOnly": "true"
|
|
264
|
-
},
|
|
265
261
|
"platform.editor.media.extended-resize-experience": {
|
|
266
262
|
"type": "boolean"
|
|
267
263
|
},
|
|
@@ -377,6 +373,10 @@
|
|
|
377
373
|
"platform.editor.annotation.decouple-inline-comment-closed_flmox": {
|
|
378
374
|
"type": "boolean",
|
|
379
375
|
"referenceOnly": "true"
|
|
376
|
+
},
|
|
377
|
+
"platform.editor.table.in-danger-hover-merged-cells-fix": {
|
|
378
|
+
"type": "boolean",
|
|
379
|
+
"referenceOnly": "true"
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
}
|