@atlaskit/editor-plugin-highlight 1.19.5 → 1.19.6
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 +6 -0
- package/dist/cjs/pm-plugins/keymap.js +7 -1
- package/dist/cjs/pm-plugins/main.js +2 -0
- package/dist/cjs/ui/PrimaryToolbarHighlightColor.js +2 -0
- package/dist/es2019/pm-plugins/keymap.js +7 -1
- package/dist/es2019/pm-plugins/main.js +2 -0
- package/dist/es2019/ui/PrimaryToolbarHighlightColor.js +2 -0
- package/dist/esm/pm-plugins/keymap.js +7 -1
- package/dist/esm/pm-plugins/main.js +2 -0
- package/dist/esm/ui/PrimaryToolbarHighlightColor.js +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -10,7 +10,13 @@ var _palette = require("../editor-commands/palette");
|
|
|
10
10
|
function keymapPlugin(_ref) {
|
|
11
11
|
var api = _ref.api;
|
|
12
12
|
var list = {};
|
|
13
|
-
(0, _keymaps.bindKeymapWithCommand)(
|
|
13
|
+
(0, _keymaps.bindKeymapWithCommand)(
|
|
14
|
+
// Ignored via go/ees005
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
16
|
+
_keymaps.toggleHighlightPalette.common,
|
|
17
|
+
// Ignored via go/ees005
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
19
|
+
(0, _palette.togglePalette)(api)({
|
|
14
20
|
inputMethod: _analytics.INPUT_METHOD.SHORTCUT
|
|
15
21
|
}), list);
|
|
16
22
|
return (0, _keymaps.keymap)(list);
|
|
@@ -30,6 +30,8 @@ var createPlugin = exports.createPlugin = function createPlugin(_ref) {
|
|
|
30
30
|
isPaletteOpen: false
|
|
31
31
|
};
|
|
32
32
|
},
|
|
33
|
+
// Ignored via go/ees005
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
33
35
|
apply: function apply(tr, pluginState, _oldState, newState) {
|
|
34
36
|
var _tr$getMeta;
|
|
35
37
|
var action = (_tr$getMeta = tr.getMeta(highlightPluginKey)) === null || _tr$getMeta === void 0 ? void 0 : _tr$getMeta.type;
|
|
@@ -48,6 +48,8 @@ var PrimaryToolbarHighlightColor = function PrimaryToolbarHighlightColor(_ref) {
|
|
|
48
48
|
if (!(highlightState !== null && highlightState !== void 0 && highlightState.disabled)) {
|
|
49
49
|
var state = editorView.state,
|
|
50
50
|
dispatch = editorView.dispatch;
|
|
51
|
+
// Ignored via go/ees005
|
|
52
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
51
53
|
(0, _palette.setPalette)(pluginInjectionApi)({
|
|
52
54
|
isPaletteOpen: isOpen,
|
|
53
55
|
inputMethod: _analytics.INPUT_METHOD.TOOLBAR
|
|
@@ -5,7 +5,13 @@ export function keymapPlugin({
|
|
|
5
5
|
api
|
|
6
6
|
}) {
|
|
7
7
|
const list = {};
|
|
8
|
-
bindKeymapWithCommand(
|
|
8
|
+
bindKeymapWithCommand(
|
|
9
|
+
// Ignored via go/ees005
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
11
|
+
toggleHighlightPalette.common,
|
|
12
|
+
// Ignored via go/ees005
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
14
|
+
togglePalette(api)({
|
|
9
15
|
inputMethod: INPUT_METHOD.SHORTCUT
|
|
10
16
|
}), list);
|
|
11
17
|
return keymap(list);
|
|
@@ -19,6 +19,8 @@ export const createPlugin = ({
|
|
|
19
19
|
disabled: getDisabledState(editorState),
|
|
20
20
|
isPaletteOpen: false
|
|
21
21
|
}),
|
|
22
|
+
// Ignored via go/ees005
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
22
24
|
apply: (tr, pluginState, _oldState, newState) => {
|
|
23
25
|
var _tr$getMeta;
|
|
24
26
|
const action = (_tr$getMeta = tr.getMeta(highlightPluginKey)) === null || _tr$getMeta === void 0 ? void 0 : _tr$getMeta.type;
|
|
@@ -46,6 +46,8 @@ const PrimaryToolbarHighlightColor = ({
|
|
|
46
46
|
state,
|
|
47
47
|
dispatch
|
|
48
48
|
} = editorView;
|
|
49
|
+
// Ignored via go/ees005
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
49
51
|
setPalette(pluginInjectionApi)({
|
|
50
52
|
isPaletteOpen: isOpen,
|
|
51
53
|
inputMethod: INPUT_METHOD.TOOLBAR
|
|
@@ -4,7 +4,13 @@ import { togglePalette } from '../editor-commands/palette';
|
|
|
4
4
|
export function keymapPlugin(_ref) {
|
|
5
5
|
var api = _ref.api;
|
|
6
6
|
var list = {};
|
|
7
|
-
bindKeymapWithCommand(
|
|
7
|
+
bindKeymapWithCommand(
|
|
8
|
+
// Ignored via go/ees005
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
10
|
+
toggleHighlightPalette.common,
|
|
11
|
+
// Ignored via go/ees005
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
13
|
+
togglePalette(api)({
|
|
8
14
|
inputMethod: INPUT_METHOD.SHORTCUT
|
|
9
15
|
}), list);
|
|
10
16
|
return keymap(list);
|
|
@@ -23,6 +23,8 @@ export var createPlugin = function createPlugin(_ref) {
|
|
|
23
23
|
isPaletteOpen: false
|
|
24
24
|
};
|
|
25
25
|
},
|
|
26
|
+
// Ignored via go/ees005
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
26
28
|
apply: function apply(tr, pluginState, _oldState, newState) {
|
|
27
29
|
var _tr$getMeta;
|
|
28
30
|
var action = (_tr$getMeta = tr.getMeta(highlightPluginKey)) === null || _tr$getMeta === void 0 ? void 0 : _tr$getMeta.type;
|
|
@@ -40,6 +40,8 @@ var PrimaryToolbarHighlightColor = function PrimaryToolbarHighlightColor(_ref) {
|
|
|
40
40
|
if (!(highlightState !== null && highlightState !== void 0 && highlightState.disabled)) {
|
|
41
41
|
var state = editorView.state,
|
|
42
42
|
dispatch = editorView.dispatch;
|
|
43
|
+
// Ignored via go/ees005
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
43
45
|
setPalette(pluginInjectionApi)({
|
|
44
46
|
isPaletteOpen: isOpen,
|
|
45
47
|
inputMethod: INPUT_METHOD.TOOLBAR
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.6",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
40
|
-
"@atlaskit/editor-common": "^
|
|
40
|
+
"@atlaskit/editor-common": "^98.0.0",
|
|
41
41
|
"@atlaskit/editor-palette": "1.6.3",
|
|
42
42
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
43
43
|
"@atlaskit/editor-plugin-primary-toolbar": "^2.1.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/icon": "^23.1.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
50
50
|
"@atlaskit/primitives": "^13.3.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^2.31.0",
|
|
52
52
|
"@atlaskit/tokens": "^2.5.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@emotion/react": "^11.7.1"
|