@atlaskit/editor-plugin-highlight 3.0.2 → 3.0.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
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-highlight
|
|
2
2
|
|
|
3
|
+
## 3.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#184251](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/184251)
|
|
8
|
+
[`be8b910f66de1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be8b910f66de1) -
|
|
9
|
+
[ED-91152] Clean up experiment editor_text_highlight_orange_to_yellow
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 3.0.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -11,7 +11,6 @@ var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
|
11
11
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
12
12
|
var _editorPalette = require("@atlaskit/editor-palette");
|
|
13
13
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
14
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
15
14
|
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; }
|
|
16
15
|
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) { (0, _defineProperty2.default)(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; }
|
|
17
16
|
var PaletteDropdown = exports.PaletteDropdown = function PaletteDropdown(props) {
|
|
@@ -30,19 +29,15 @@ var PaletteDropdown = exports.PaletteDropdown = function PaletteDropdown(props)
|
|
|
30
29
|
// this should reflect the width of the dropdown when fully populated with colors, including translations due to layering
|
|
31
30
|
var fitWidth = 242;
|
|
32
31
|
var colorPalette = _uiColor.highlightColorPalette;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
return item;
|
|
44
|
-
});
|
|
45
|
-
}
|
|
32
|
+
colorPalette = _uiColor.highlightColorPalette.map(function (item) {
|
|
33
|
+
if (item.label === 'Orange') {
|
|
34
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
35
|
+
label: 'Yellow',
|
|
36
|
+
message: _uiColor.colorPaletteMessages.yellow
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return item;
|
|
40
|
+
});
|
|
46
41
|
var _getSelectedRowAndCol = (0, _uiColor.getSelectedRowAndColumnFromPalette)(colorPalette, activeColor),
|
|
47
42
|
selectedRowIndex = _getSelectedRowAndCol.selectedRowIndex,
|
|
48
43
|
selectedColumnIndex = _getSelectedRowAndCol.selectedColumnIndex;
|
|
@@ -3,7 +3,6 @@ import { ColorPalette, colorPaletteMessages, getSelectedRowAndColumnFromPalette,
|
|
|
3
3
|
import { ArrowKeyNavigationType, DropdownContainer as Dropdown } from '@atlaskit/editor-common/ui-menu';
|
|
4
4
|
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
5
5
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
6
|
export const PaletteDropdown = props => {
|
|
8
7
|
const {
|
|
9
8
|
popupsMountPoint,
|
|
@@ -22,20 +21,16 @@ export const PaletteDropdown = props => {
|
|
|
22
21
|
// this should reflect the width of the dropdown when fully populated with colors, including translations due to layering
|
|
23
22
|
const fitWidth = 242;
|
|
24
23
|
let colorPalette = highlightColorPalette;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
return item;
|
|
37
|
-
});
|
|
38
|
-
}
|
|
24
|
+
colorPalette = highlightColorPalette.map(item => {
|
|
25
|
+
if (item.label === 'Orange') {
|
|
26
|
+
return {
|
|
27
|
+
...item,
|
|
28
|
+
label: 'Yellow',
|
|
29
|
+
message: colorPaletteMessages.yellow
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return item;
|
|
33
|
+
});
|
|
39
34
|
const {
|
|
40
35
|
selectedRowIndex,
|
|
41
36
|
selectedColumnIndex
|
|
@@ -6,7 +6,6 @@ import { ColorPalette, colorPaletteMessages, getSelectedRowAndColumnFromPalette,
|
|
|
6
6
|
import { ArrowKeyNavigationType, DropdownContainer as Dropdown } from '@atlaskit/editor-common/ui-menu';
|
|
7
7
|
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
8
8
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
9
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
9
|
export var PaletteDropdown = function PaletteDropdown(props) {
|
|
11
10
|
var popupsMountPoint = props.popupsMountPoint,
|
|
12
11
|
popupsBoundariesElement = props.popupsBoundariesElement,
|
|
@@ -23,19 +22,15 @@ export var PaletteDropdown = function PaletteDropdown(props) {
|
|
|
23
22
|
// this should reflect the width of the dropdown when fully populated with colors, including translations due to layering
|
|
24
23
|
var fitWidth = 242;
|
|
25
24
|
var colorPalette = highlightColorPalette;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
return item;
|
|
37
|
-
});
|
|
38
|
-
}
|
|
25
|
+
colorPalette = highlightColorPalette.map(function (item) {
|
|
26
|
+
if (item.label === 'Orange') {
|
|
27
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
28
|
+
label: 'Yellow',
|
|
29
|
+
message: colorPaletteMessages.yellow
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return item;
|
|
33
|
+
});
|
|
39
34
|
var _getSelectedRowAndCol = getSelectedRowAndColumnFromPalette(colorPalette, activeColor),
|
|
40
35
|
selectedRowIndex = _getSelectedRowAndCol.selectedRowIndex,
|
|
41
36
|
selectedColumnIndex = _getSelectedRowAndCol.selectedColumnIndex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
".": "./src/index.ts"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@atlaskit/adf-schema": "^
|
|
38
|
+
"@atlaskit/adf-schema": "^49.0.5",
|
|
39
39
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-primary-toolbar": "^4.0.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/icon": "^27.3.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/primitives": "^14.10.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^9.3.0",
|
|
51
51
|
"@atlaskit/tokens": "^5.4.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|