@atlaskit/editor-plugin-selection-toolbar 8.0.3 → 8.0.4
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-toolbar
|
|
2
2
|
|
|
3
|
+
## 8.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e1361a964ccd9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e1361a964ccd9) -
|
|
8
|
+
Clean up platform_editor_toolbar_aifc_placement_config feature flag
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 8.0.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -46,18 +46,13 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
|
|
|
46
46
|
var userPreferencesProvider = config.userPreferencesProvider,
|
|
47
47
|
contextualFormattingEnabled = config.contextualFormattingEnabled;
|
|
48
48
|
if (isToolbarAIFCEnabled) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
api === null || api === void 0 || (_api$toolbar2 = api.toolbar) === null || _api$toolbar2 === void 0 || _api$toolbar2.actions.registerComponents((0, _toolbarComponents.getToolbarComponents)(api, true));
|
|
57
|
-
}
|
|
58
|
-
} else {
|
|
59
|
-
var _api$toolbar3;
|
|
60
|
-
api === null || api === void 0 || (_api$toolbar3 = api.toolbar) === null || _api$toolbar3 === void 0 || _api$toolbar3.actions.registerComponents((0, _toolbarComponents.getToolbarComponents)(api, contextualFormattingEnabled));
|
|
49
|
+
var _api$toolbar;
|
|
50
|
+
/**
|
|
51
|
+
* If toolbar is set to always-pinned or always-inline, there is no control over toolbar placement
|
|
52
|
+
*/
|
|
53
|
+
if ((api === null || api === void 0 || (_api$toolbar = api.toolbar) === null || _api$toolbar === void 0 ? void 0 : _api$toolbar.actions.contextualFormattingMode()) === 'controlled') {
|
|
54
|
+
var _api$toolbar2;
|
|
55
|
+
api === null || api === void 0 || (_api$toolbar2 = api.toolbar) === null || _api$toolbar2 === void 0 || _api$toolbar2.actions.registerComponents((0, _toolbarComponents.getToolbarComponents)(api, true));
|
|
61
56
|
}
|
|
62
57
|
} else {
|
|
63
58
|
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
@@ -38,18 +38,13 @@ export const selectionToolbarPlugin = ({
|
|
|
38
38
|
contextualFormattingEnabled
|
|
39
39
|
} = config;
|
|
40
40
|
if (isToolbarAIFCEnabled) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
api === null || api === void 0 ? void 0 : (_api$toolbar2 = api.toolbar) === null || _api$toolbar2 === void 0 ? void 0 : _api$toolbar2.actions.registerComponents(getToolbarComponents(api, true));
|
|
49
|
-
}
|
|
50
|
-
} else {
|
|
51
|
-
var _api$toolbar3;
|
|
52
|
-
api === null || api === void 0 ? void 0 : (_api$toolbar3 = api.toolbar) === null || _api$toolbar3 === void 0 ? void 0 : _api$toolbar3.actions.registerComponents(getToolbarComponents(api, contextualFormattingEnabled));
|
|
41
|
+
var _api$toolbar;
|
|
42
|
+
/**
|
|
43
|
+
* If toolbar is set to always-pinned or always-inline, there is no control over toolbar placement
|
|
44
|
+
*/
|
|
45
|
+
if ((api === null || api === void 0 ? void 0 : (_api$toolbar = api.toolbar) === null || _api$toolbar === void 0 ? void 0 : _api$toolbar.actions.contextualFormattingMode()) === 'controlled') {
|
|
46
|
+
var _api$toolbar2;
|
|
47
|
+
api === null || api === void 0 ? void 0 : (_api$toolbar2 = api.toolbar) === null || _api$toolbar2 === void 0 ? void 0 : _api$toolbar2.actions.registerComponents(getToolbarComponents(api, true));
|
|
53
48
|
}
|
|
54
49
|
} else {
|
|
55
50
|
if (editorExperiment('platform_editor_controls', 'variant1', {
|
|
@@ -39,18 +39,13 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(_ref) {
|
|
|
39
39
|
var userPreferencesProvider = config.userPreferencesProvider,
|
|
40
40
|
contextualFormattingEnabled = config.contextualFormattingEnabled;
|
|
41
41
|
if (isToolbarAIFCEnabled) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
api === null || api === void 0 || (_api$toolbar2 = api.toolbar) === null || _api$toolbar2 === void 0 || _api$toolbar2.actions.registerComponents(getToolbarComponents(api, true));
|
|
50
|
-
}
|
|
51
|
-
} else {
|
|
52
|
-
var _api$toolbar3;
|
|
53
|
-
api === null || api === void 0 || (_api$toolbar3 = api.toolbar) === null || _api$toolbar3 === void 0 || _api$toolbar3.actions.registerComponents(getToolbarComponents(api, contextualFormattingEnabled));
|
|
42
|
+
var _api$toolbar;
|
|
43
|
+
/**
|
|
44
|
+
* If toolbar is set to always-pinned or always-inline, there is no control over toolbar placement
|
|
45
|
+
*/
|
|
46
|
+
if ((api === null || api === void 0 || (_api$toolbar = api.toolbar) === null || _api$toolbar === void 0 ? void 0 : _api$toolbar.actions.contextualFormattingMode()) === 'controlled') {
|
|
47
|
+
var _api$toolbar2;
|
|
48
|
+
api === null || api === void 0 || (_api$toolbar2 = api.toolbar) === null || _api$toolbar2 === void 0 || _api$toolbar2.actions.registerComponents(getToolbarComponents(api, true));
|
|
54
49
|
}
|
|
55
50
|
} else {
|
|
56
51
|
if (editorExperiment('platform_editor_controls', 'variant1', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-toolbar",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.4",
|
|
4
4
|
"description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"@atlaskit/menu": "^8.4.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^16.23.0",
|
|
50
50
|
"@atlaskit/tokens": "^9.1.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"bind-event-listener": "^3.0.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@atlaskit/editor-common": "^111.
|
|
55
|
+
"@atlaskit/editor-common": "^111.8.0",
|
|
56
56
|
"react": "^18.2.0",
|
|
57
57
|
"react-dom": "^18.2.0",
|
|
58
58
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -105,9 +105,6 @@
|
|
|
105
105
|
},
|
|
106
106
|
"platform_editor_toolbar_aifc_patch_7": {
|
|
107
107
|
"type": "boolean"
|
|
108
|
-
},
|
|
109
|
-
"platform_editor_toolbar_aifc_placement_config": {
|
|
110
|
-
"type": "boolean"
|
|
111
108
|
}
|
|
112
109
|
}
|
|
113
110
|
}
|