@atlaskit/editor-plugin-selection-extension 4.1.1 → 4.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 +19 -0
- package/dist/cjs/selectionExtensionPlugin.js +2 -1
- package/dist/cjs/ui/toolbar-components/MenuItem.js +1 -0
- package/dist/es2019/selectionExtensionPlugin.js +2 -1
- package/dist/es2019/ui/toolbar-components/MenuItem.js +1 -0
- package/dist/esm/selectionExtensionPlugin.js +2 -1
- package/dist/esm/ui/toolbar-components/MenuItem.js +1 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types-ts4.5/types/index.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-extension
|
|
2
2
|
|
|
3
|
+
## 4.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`555ac8f256674`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/555ac8f256674) -
|
|
8
|
+
Update menu item icon size to small, tweak paddings and font styles
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 4.1.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`db97eb262cc5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/db97eb262cc5a) -
|
|
19
|
+
replace platform_editor_toolbar_aifc with separate experiements for jira and confluence
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 4.1.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -13,6 +13,7 @@ var _usePluginStateEffect = require("@atlaskit/editor-common/use-plugin-state-ef
|
|
|
13
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
14
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
15
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
16
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
17
|
var _insertAdfAtEndOfDoc2 = require("./pm-plugins/actions/insertAdfAtEndOfDoc");
|
|
17
18
|
var _replaceWithAdf2 = require("./pm-plugins/actions/replaceWithAdf");
|
|
18
19
|
var _main = require("./pm-plugins/main");
|
|
@@ -32,7 +33,7 @@ var selectionExtensionPlugin = exports.selectionExtensionPlugin = function selec
|
|
|
32
33
|
};
|
|
33
34
|
var cachedSelection;
|
|
34
35
|
var cachedOverflowMenuOptions;
|
|
35
|
-
var isToolbarAIFCEnabled = (0,
|
|
36
|
+
var isToolbarAIFCEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true);
|
|
36
37
|
var _ref2 = config || {},
|
|
37
38
|
_ref2$extensionList = _ref2.extensionList,
|
|
38
39
|
extensionList = _ref2$extensionList === void 0 ? [] : _ref2$extensionList,
|
|
@@ -48,6 +48,7 @@ var MenuItem = exports.MenuItem = function MenuItem(_ref) {
|
|
|
48
48
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
|
|
49
49
|
key: extension.label,
|
|
50
50
|
elemBefore: /*#__PURE__*/_react.default.createElement(Icon, {
|
|
51
|
+
size: "small",
|
|
51
52
|
label: ""
|
|
52
53
|
}),
|
|
53
54
|
onClick: onClickHandle(extension),
|
|
@@ -5,6 +5,7 @@ import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-e
|
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
7
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
8
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
9
|
import { insertAdfAtEndOfDoc } from './pm-plugins/actions/insertAdfAtEndOfDoc';
|
|
9
10
|
import { replaceWithAdf } from './pm-plugins/actions/replaceWithAdf';
|
|
10
11
|
import { createPlugin, selectionExtensionPluginKey } from './pm-plugins/main';
|
|
@@ -25,7 +26,7 @@ export const selectionExtensionPlugin = ({
|
|
|
25
26
|
};
|
|
26
27
|
let cachedSelection;
|
|
27
28
|
let cachedOverflowMenuOptions;
|
|
28
|
-
const isToolbarAIFCEnabled =
|
|
29
|
+
const isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true);
|
|
29
30
|
const {
|
|
30
31
|
extensionList = [],
|
|
31
32
|
extensions = {}
|
|
@@ -6,6 +6,7 @@ import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-e
|
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
8
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
9
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
10
|
import { insertAdfAtEndOfDoc as _insertAdfAtEndOfDoc } from './pm-plugins/actions/insertAdfAtEndOfDoc';
|
|
10
11
|
import { replaceWithAdf as _replaceWithAdf } from './pm-plugins/actions/replaceWithAdf';
|
|
11
12
|
import { createPlugin, selectionExtensionPluginKey } from './pm-plugins/main';
|
|
@@ -25,7 +26,7 @@ export var selectionExtensionPlugin = function selectionExtensionPlugin(_ref) {
|
|
|
25
26
|
};
|
|
26
27
|
var cachedSelection;
|
|
27
28
|
var cachedOverflowMenuOptions;
|
|
28
|
-
var isToolbarAIFCEnabled =
|
|
29
|
+
var isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true);
|
|
29
30
|
var _ref2 = config || {},
|
|
30
31
|
_ref2$extensionList = _ref2.extensionList,
|
|
31
32
|
extensionList = _ref2$extensionList === void 0 ? [] : _ref2$extensionList,
|
|
@@ -41,6 +41,7 @@ export var MenuItem = function MenuItem(_ref) {
|
|
|
41
41
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
42
42
|
key: extension.label,
|
|
43
43
|
elemBefore: /*#__PURE__*/React.createElement(Icon, {
|
|
44
|
+
size: "small",
|
|
44
45
|
label: ""
|
|
45
46
|
}),
|
|
46
47
|
onClick: onClickHandle(extension),
|
|
@@ -160,6 +160,7 @@ export type ExtensionMenuItemConfiguration = {
|
|
|
160
160
|
contentComponent?: React.ComponentType<SelectionExtensionComponentProps>;
|
|
161
161
|
icon: React.ComponentType<React.PropsWithChildren<{
|
|
162
162
|
label: string;
|
|
163
|
+
size?: 'small' | 'medium';
|
|
163
164
|
}>>;
|
|
164
165
|
isDisabled?: boolean;
|
|
165
166
|
label: string;
|
|
@@ -160,6 +160,7 @@ export type ExtensionMenuItemConfiguration = {
|
|
|
160
160
|
contentComponent?: React.ComponentType<SelectionExtensionComponentProps>;
|
|
161
161
|
icon: React.ComponentType<React.PropsWithChildren<{
|
|
162
162
|
label: string;
|
|
163
|
+
size?: 'small' | 'medium';
|
|
163
164
|
}>>;
|
|
164
165
|
isDisabled?: boolean;
|
|
165
166
|
label: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-extension",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"@atlaskit/icon": "^28.1.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
50
|
"@atlaskit/primitives": "^14.13.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^12.5.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"lodash": "^4.17.21",
|
|
54
54
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
55
55
|
"uuid": "^3.1.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@atlaskit/editor-common": "^108.
|
|
58
|
+
"@atlaskit/editor-common": "^108.5.0",
|
|
59
59
|
"react": "^18.2.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|