@atlaskit/editor-plugin-selection-extension 10.1.2 → 10.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 +12 -0
- package/dist/cjs/ui/toolbar-components/ToolbarButton.js +2 -15
- package/dist/cjs/ui/toolbar-components/ToolbarMenu.js +2 -12
- package/dist/es2019/ui/toolbar-components/ToolbarButton.js +2 -13
- package/dist/es2019/ui/toolbar-components/ToolbarMenu.js +2 -10
- package/dist/esm/ui/toolbar-components/ToolbarButton.js +2 -15
- package/dist/esm/ui/toolbar-components/ToolbarMenu.js +2 -12
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-extension
|
|
2
2
|
|
|
3
|
+
## 10.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6e8029473620b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e8029473620b) -
|
|
8
|
+
[EDITOR-4496] clean up experiment platform_editor_toolbar_aifc_patch_3 and remove view-mode plugin
|
|
9
|
+
dependency from loom plugin
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 10.1.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -7,27 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.ToolbarButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
10
|
-
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
11
10
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
12
|
-
var
|
|
13
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
|
-
/**
|
|
15
|
-
* !! When removing platform_editor_toolbar_aifc_patch_3 also remove package dependency on `@atlaskit/editor-plugin-view-mode`.
|
|
16
|
-
*/
|
|
17
|
-
var usePluginState = (0, _platformFeatureFlagsReact.conditionalHooksFactory)(function () {
|
|
18
|
-
return (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true);
|
|
19
|
-
}, function (api) {
|
|
11
|
+
var usePluginState = function usePluginState(_api) {
|
|
20
12
|
var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
|
|
21
13
|
editorToolbarDockingPreference = _useEditorToolbar.editorToolbarDockingPreference;
|
|
22
14
|
return {
|
|
23
15
|
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
24
16
|
};
|
|
25
|
-
}
|
|
26
|
-
var editorToolbarDockingPreference = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'userPreferences.preferences.toolbarDockingPosition');
|
|
27
|
-
return {
|
|
28
|
-
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
29
|
-
};
|
|
30
|
-
});
|
|
17
|
+
};
|
|
31
18
|
var ToolbarButton = exports.ToolbarButton = function ToolbarButton(_ref) {
|
|
32
19
|
var api = _ref.api,
|
|
33
20
|
config = _ref.config;
|
|
@@ -7,24 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.ToolbarMenu = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
10
|
-
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
11
10
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
12
|
-
var
|
|
13
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
|
-
var usePluginState = (0, _platformFeatureFlagsReact.conditionalHooksFactory)(function () {
|
|
15
|
-
return (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true);
|
|
16
|
-
}, function (api) {
|
|
11
|
+
var usePluginState = function usePluginState(_api) {
|
|
17
12
|
var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
|
|
18
13
|
editorToolbarDockingPreference = _useEditorToolbar.editorToolbarDockingPreference;
|
|
19
14
|
return {
|
|
20
15
|
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
21
16
|
};
|
|
22
|
-
}
|
|
23
|
-
var editorToolbarDockingPreference = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'userPreferences.preferences.toolbarDockingPosition');
|
|
24
|
-
return {
|
|
25
|
-
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
26
|
-
};
|
|
27
|
-
});
|
|
17
|
+
};
|
|
28
18
|
var ToolbarMenu = exports.ToolbarMenu = function ToolbarMenu(_ref) {
|
|
29
19
|
var api = _ref.api,
|
|
30
20
|
config = _ref.config,
|
|
@@ -1,25 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
3
|
import { ToolbarTooltip, ToolbarButton as BaseToolbarButton } from '@atlaskit/editor-toolbar';
|
|
5
|
-
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
-
/**
|
|
8
|
-
* !! When removing platform_editor_toolbar_aifc_patch_3 also remove package dependency on `@atlaskit/editor-plugin-view-mode`.
|
|
9
|
-
*/
|
|
10
|
-
const usePluginState = conditionalHooksFactory(() => expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true), api => {
|
|
4
|
+
const usePluginState = _api => {
|
|
11
5
|
const {
|
|
12
6
|
editorToolbarDockingPreference
|
|
13
7
|
} = useEditorToolbar();
|
|
14
8
|
return {
|
|
15
9
|
editorToolbarDockingPreference
|
|
16
10
|
};
|
|
17
|
-
}
|
|
18
|
-
const editorToolbarDockingPreference = useSharedPluginStateSelector(api, 'userPreferences.preferences.toolbarDockingPosition');
|
|
19
|
-
return {
|
|
20
|
-
editorToolbarDockingPreference
|
|
21
|
-
};
|
|
22
|
-
});
|
|
11
|
+
};
|
|
23
12
|
export const ToolbarButton = ({
|
|
24
13
|
api,
|
|
25
14
|
config
|
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
3
|
import { ToolbarTooltip, ToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
5
|
-
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
-
const usePluginState = conditionalHooksFactory(() => expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true), api => {
|
|
4
|
+
const usePluginState = _api => {
|
|
8
5
|
const {
|
|
9
6
|
editorToolbarDockingPreference
|
|
10
7
|
} = useEditorToolbar();
|
|
11
8
|
return {
|
|
12
9
|
editorToolbarDockingPreference
|
|
13
10
|
};
|
|
14
|
-
}
|
|
15
|
-
const editorToolbarDockingPreference = useSharedPluginStateSelector(api, 'userPreferences.preferences.toolbarDockingPosition');
|
|
16
|
-
return {
|
|
17
|
-
editorToolbarDockingPreference
|
|
18
|
-
};
|
|
19
|
-
});
|
|
11
|
+
};
|
|
20
12
|
export const ToolbarMenu = ({
|
|
21
13
|
api,
|
|
22
14
|
config,
|
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
3
|
import { ToolbarTooltip, ToolbarButton as BaseToolbarButton } from '@atlaskit/editor-toolbar';
|
|
5
|
-
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
-
/**
|
|
8
|
-
* !! When removing platform_editor_toolbar_aifc_patch_3 also remove package dependency on `@atlaskit/editor-plugin-view-mode`.
|
|
9
|
-
*/
|
|
10
|
-
var usePluginState = conditionalHooksFactory(function () {
|
|
11
|
-
return expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true);
|
|
12
|
-
}, function (api) {
|
|
4
|
+
var usePluginState = function usePluginState(_api) {
|
|
13
5
|
var _useEditorToolbar = useEditorToolbar(),
|
|
14
6
|
editorToolbarDockingPreference = _useEditorToolbar.editorToolbarDockingPreference;
|
|
15
7
|
return {
|
|
16
8
|
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
17
9
|
};
|
|
18
|
-
}
|
|
19
|
-
var editorToolbarDockingPreference = useSharedPluginStateSelector(api, 'userPreferences.preferences.toolbarDockingPosition');
|
|
20
|
-
return {
|
|
21
|
-
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
22
|
-
};
|
|
23
|
-
});
|
|
10
|
+
};
|
|
24
11
|
export var ToolbarButton = function ToolbarButton(_ref) {
|
|
25
12
|
var api = _ref.api,
|
|
26
13
|
config = _ref.config;
|
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
3
|
import { ToolbarTooltip, ToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
5
|
-
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
-
var usePluginState = conditionalHooksFactory(function () {
|
|
8
|
-
return expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true);
|
|
9
|
-
}, function (api) {
|
|
4
|
+
var usePluginState = function usePluginState(_api) {
|
|
10
5
|
var _useEditorToolbar = useEditorToolbar(),
|
|
11
6
|
editorToolbarDockingPreference = _useEditorToolbar.editorToolbarDockingPreference;
|
|
12
7
|
return {
|
|
13
8
|
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
14
9
|
};
|
|
15
|
-
}
|
|
16
|
-
var editorToolbarDockingPreference = useSharedPluginStateSelector(api, 'userPreferences.preferences.toolbarDockingPosition');
|
|
17
|
-
return {
|
|
18
|
-
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
19
|
-
};
|
|
20
|
-
});
|
|
10
|
+
};
|
|
21
11
|
export var ToolbarMenu = function ToolbarMenu(_ref) {
|
|
22
12
|
var api = _ref.api,
|
|
23
13
|
config = _ref.config,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-extension",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.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",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@atlaskit/editor-plugin-editor-viewmode": "^9.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-editor-viewmode-effects": "^7.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-primary-toolbar": "^8.0.0",
|
|
44
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^8.
|
|
45
|
-
"@atlaskit/editor-plugin-toolbar": "^4.
|
|
44
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^8.1.0",
|
|
45
|
+
"@atlaskit/editor-plugin-toolbar": "^4.1.0",
|
|
46
46
|
"@atlaskit/editor-plugin-user-preferences": "^5.0.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
@@ -51,9 +51,8 @@
|
|
|
51
51
|
"@atlaskit/icon": "^29.4.0",
|
|
52
52
|
"@atlaskit/lozenge": "^13.3.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
|
-
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
55
54
|
"@atlaskit/primitives": "^17.1.0",
|
|
56
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
55
|
+
"@atlaskit/tmp-editor-statsig": "^16.30.0",
|
|
57
56
|
"@atlaskit/tokens": "^10.1.0",
|
|
58
57
|
"@babel/runtime": "^7.0.0",
|
|
59
58
|
"lodash": "^4.17.21",
|