@atlaskit/editor-plugin-selection-extension 2.1.6 → 2.1.7
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-selection-extension
|
|
2
2
|
|
|
3
|
+
## 2.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#135586](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135586)
|
|
8
|
+
[`3aeba66081612`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3aeba66081612) -
|
|
9
|
+
ED-26593 Add missing i18n for editor control
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.1.6
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.selectionExtensionPlugin = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
10
11
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
11
12
|
var _main = require("./pm-plugins/main");
|
|
12
13
|
var _SelectionExtensionComponentWrapper = require("./ui/extension/SelectionExtensionComponentWrapper");
|
|
@@ -54,7 +55,7 @@ var selectionExtensionPlugin = exports.selectionExtensionPlugin = function selec
|
|
|
54
55
|
});
|
|
55
56
|
},
|
|
56
57
|
pluginsOptions: {
|
|
57
|
-
selectionToolbar: function selectionToolbar(state) {
|
|
58
|
+
selectionToolbar: function selectionToolbar(state, intl) {
|
|
58
59
|
var _api$editorViewMode;
|
|
59
60
|
if (!config) {
|
|
60
61
|
return;
|
|
@@ -166,7 +167,7 @@ var selectionExtensionPlugin = exports.selectionExtensionPlugin = function selec
|
|
|
166
167
|
});
|
|
167
168
|
var externalExtensionsHeading = {
|
|
168
169
|
type: 'overflow-dropdown-heading',
|
|
169
|
-
title:
|
|
170
|
+
title: intl.formatMessage(_messages.selectionExtensionMessages.externalExtensionsHeading)
|
|
170
171
|
};
|
|
171
172
|
externalExtensions.unshift(externalExtensionsHeading);
|
|
172
173
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { selectionExtensionMessages } from '@atlaskit/editor-common/messages';
|
|
2
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
4
|
import { createPlugin, selectionExtensionPluginKey } from './pm-plugins/main';
|
|
4
5
|
import { SelectionExtensionComponentWrapper } from './ui/extension/SelectionExtensionComponentWrapper';
|
|
@@ -46,7 +47,7 @@ export const selectionExtensionPlugin = ({
|
|
|
46
47
|
});
|
|
47
48
|
},
|
|
48
49
|
pluginsOptions: {
|
|
49
|
-
selectionToolbar: state => {
|
|
50
|
+
selectionToolbar: (state, intl) => {
|
|
50
51
|
var _api$editorViewMode, _api$editorViewMode$s;
|
|
51
52
|
if (!config) {
|
|
52
53
|
return;
|
|
@@ -158,7 +159,7 @@ export const selectionExtensionPlugin = ({
|
|
|
158
159
|
externalExtensions = extensions.map((ext, index) => convertExtensionToDropdownMenuItem(ext));
|
|
159
160
|
const externalExtensionsHeading = {
|
|
160
161
|
type: 'overflow-dropdown-heading',
|
|
161
|
-
title:
|
|
162
|
+
title: intl.formatMessage(selectionExtensionMessages.externalExtensionsHeading)
|
|
162
163
|
};
|
|
163
164
|
externalExtensions.unshift(externalExtensionsHeading);
|
|
164
165
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { selectionExtensionMessages } from '@atlaskit/editor-common/messages';
|
|
3
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
5
|
import { createPlugin, selectionExtensionPluginKey } from './pm-plugins/main';
|
|
5
6
|
import { SelectionExtensionComponentWrapper } from './ui/extension/SelectionExtensionComponentWrapper';
|
|
@@ -47,7 +48,7 @@ export var selectionExtensionPlugin = function selectionExtensionPlugin(_ref) {
|
|
|
47
48
|
});
|
|
48
49
|
},
|
|
49
50
|
pluginsOptions: {
|
|
50
|
-
selectionToolbar: function selectionToolbar(state) {
|
|
51
|
+
selectionToolbar: function selectionToolbar(state, intl) {
|
|
51
52
|
var _api$editorViewMode;
|
|
52
53
|
if (!config) {
|
|
53
54
|
return;
|
|
@@ -159,7 +160,7 @@ export var selectionExtensionPlugin = function selectionExtensionPlugin(_ref) {
|
|
|
159
160
|
});
|
|
160
161
|
var externalExtensionsHeading = {
|
|
161
162
|
type: 'overflow-dropdown-heading',
|
|
162
|
-
title:
|
|
163
|
+
title: intl.formatMessage(selectionExtensionMessages.externalExtensionsHeading)
|
|
163
164
|
};
|
|
164
165
|
externalExtensions.unshift(externalExtensionsHeading);
|
|
165
166
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-extension",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
".": "./src/index.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^102.
|
|
39
|
+
"@atlaskit/editor-common": "^102.18.0",
|
|
40
40
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
|
|
42
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^3.
|
|
42
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^3.1.0",
|
|
43
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
44
|
-
"@atlaskit/icon": "^25.
|
|
45
|
-
"@atlaskit/primitives": "^14.
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
44
|
+
"@atlaskit/icon": "^25.5.0",
|
|
45
|
+
"@atlaskit/primitives": "^14.3.0",
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^4.6.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
49
49
|
"uuid": "^3.1.0"
|