@atlaskit/editor-plugin-highlight 6.1.1 → 6.2.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
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-highlight
|
|
2
2
|
|
|
3
|
+
## 6.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`872bd8d576773`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/872bd8d576773) -
|
|
8
|
+
[ux] ED-29272 Add missing tooltip and shortcut for TextColorDropdownMenu
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 6.1.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 6.1.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -9,21 +9,24 @@ var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
|
9
9
|
var _preset = require("@atlaskit/editor-common/preset");
|
|
10
10
|
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
11
11
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
12
13
|
var _changeColor = require("../editor-commands/change-color");
|
|
13
14
|
var _palette = require("../editor-commands/palette");
|
|
14
15
|
function keymapPlugin(_ref) {
|
|
15
16
|
var _api$analytics;
|
|
16
17
|
var api = _ref.api;
|
|
17
18
|
var list = {};
|
|
18
|
-
(0,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
if (!((0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true) && (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true))) {
|
|
20
|
+
(0, _keymaps.bindKeymapWithCommand)(
|
|
21
|
+
// Ignored via go/ees005
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
23
|
+
_keymaps.toggleHighlightPalette.common,
|
|
24
|
+
// Ignored via go/ees005
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
26
|
+
(0, _palette.togglePalette)(api)({
|
|
27
|
+
inputMethod: _analytics.INPUT_METHOD.SHORTCUT
|
|
28
|
+
}), list);
|
|
29
|
+
}
|
|
27
30
|
var analyticsApi = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
28
31
|
var color = (0, _expValEquals.expValEquals)('platform_editor_add_orange_highlight_color', 'cohort', 'test') ? _uiColor.highlightColorPaletteNext.find(function (_ref2) {
|
|
29
32
|
var label = _ref2.label;
|
|
@@ -3,6 +3,7 @@ import { bindKeymapWithCommand, keymap, toggleHighlightPalette, applyYellowHighl
|
|
|
3
3
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
4
4
|
import { highlightColorPalette, highlightColorPaletteNext } from '@atlaskit/editor-common/ui-color';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
7
|
import { changeColor } from '../editor-commands/change-color';
|
|
7
8
|
import { togglePalette } from '../editor-commands/palette';
|
|
8
9
|
export function keymapPlugin({
|
|
@@ -10,15 +11,17 @@ export function keymapPlugin({
|
|
|
10
11
|
}) {
|
|
11
12
|
var _api$analytics;
|
|
12
13
|
const list = {};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
if (!(editorExperiment('platform_editor_toolbar_aifc', true) && expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true))) {
|
|
15
|
+
bindKeymapWithCommand(
|
|
16
|
+
// Ignored via go/ees005
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
18
|
+
toggleHighlightPalette.common,
|
|
19
|
+
// Ignored via go/ees005
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
21
|
+
togglePalette(api)({
|
|
22
|
+
inputMethod: INPUT_METHOD.SHORTCUT
|
|
23
|
+
}), list);
|
|
24
|
+
}
|
|
22
25
|
const analyticsApi = api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
23
26
|
const color = expValEquals('platform_editor_add_orange_highlight_color', 'cohort', 'test') ? highlightColorPaletteNext.find(({
|
|
24
27
|
label
|
|
@@ -3,21 +3,24 @@ import { bindKeymapWithCommand, keymap, toggleHighlightPalette, applyYellowHighl
|
|
|
3
3
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
4
4
|
import { highlightColorPalette, highlightColorPaletteNext } from '@atlaskit/editor-common/ui-color';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
7
|
import { changeColor } from '../editor-commands/change-color';
|
|
7
8
|
import { togglePalette } from '../editor-commands/palette';
|
|
8
9
|
export function keymapPlugin(_ref) {
|
|
9
10
|
var _api$analytics;
|
|
10
11
|
var api = _ref.api;
|
|
11
12
|
var list = {};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
if (!(editorExperiment('platform_editor_toolbar_aifc', true) && expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true))) {
|
|
14
|
+
bindKeymapWithCommand(
|
|
15
|
+
// Ignored via go/ees005
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
17
|
+
toggleHighlightPalette.common,
|
|
18
|
+
// Ignored via go/ees005
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
20
|
+
togglePalette(api)({
|
|
21
|
+
inputMethod: INPUT_METHOD.SHORTCUT
|
|
22
|
+
}), list);
|
|
23
|
+
}
|
|
21
24
|
var analyticsApi = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
22
25
|
var color = expValEquals('platform_editor_add_orange_highlight_color', 'cohort', 'test') ? highlightColorPaletteNext.find(function (_ref2) {
|
|
23
26
|
var label = _ref2.label;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-selection-toolbar": "^7.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-text-formatting": "^6.0.0",
|
|
43
|
-
"@atlaskit/editor-plugin-toolbar": "^3.
|
|
43
|
+
"@atlaskit/editor-plugin-toolbar": "^3.1.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
45
45
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
46
46
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
47
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
47
|
+
"@atlaskit/editor-toolbar": "^0.14.0",
|
|
48
48
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
49
49
|
"@atlaskit/heading": "^5.2.0",
|
|
50
|
-
"@atlaskit/icon": "^28.
|
|
50
|
+
"@atlaskit/icon": "^28.4.0",
|
|
51
51
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
52
52
|
"@atlaskit/primitives": "^14.15.0",
|
|
53
53
|
"@atlaskit/tmp-editor-statsig": "^13.2.0",
|