@atlaskit/editor-plugin-toolbar 3.1.2 → 3.2.1
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 +23 -0
- package/dist/cjs/toolbarPlugin.js +1 -2
- package/dist/cjs/ui/SelectionToolbar/index.js +2 -1
- package/dist/cjs/ui/toolbar-components.js +1 -1
- package/dist/es2019/toolbarPlugin.js +1 -2
- package/dist/es2019/ui/SelectionToolbar/index.js +3 -2
- package/dist/es2019/ui/toolbar-components.js +1 -1
- package/dist/esm/toolbarPlugin.js +1 -2
- package/dist/esm/ui/SelectionToolbar/index.js +2 -1
- package/dist/esm/ui/toolbar-components.js +1 -1
- package/dist/types/types/index.d.ts +1 -3
- package/dist/types-ts4.5/types/index.d.ts +1 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar
|
|
2
2
|
|
|
3
|
+
## 3.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`14b9e966da4dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/14b9e966da4dd) -
|
|
8
|
+
[ux] ED-29517 Toolbar and offline banner is overlapping
|
|
9
|
+
- [`ef001bf65d48f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef001bf65d48f) -
|
|
10
|
+
Remove usage of `platform_editor_toolbar_aifc` inside editor packages - instead rely on checking
|
|
11
|
+
for new toolbar plugin option, make `enableNewToolbarExperience` mandatory for consumers to opt in
|
|
12
|
+
to new toolbar experience
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 3.2.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [`3e586d8ee0ce4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3e586d8ee0ce4) -
|
|
20
|
+
Remove platform_editor_aifc_selection_toolbar_responsive exp and gate new logic in aiPlugin
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 3.1.2
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -70,8 +70,7 @@ var toolbarPlugin = exports.toolbarPlugin = function toolbarPlugin(_ref) {
|
|
|
70
70
|
_ref$config = _ref.config,
|
|
71
71
|
config = _ref$config === void 0 ? {
|
|
72
72
|
disableSelectionToolbar: false,
|
|
73
|
-
disableSelectionToolbarWhenPinned: false
|
|
74
|
-
enableNewToolbarExperience: true
|
|
73
|
+
disableSelectionToolbarWhenPinned: false
|
|
75
74
|
} : _ref$config;
|
|
76
75
|
var disableSelectionToolbar = config.disableSelectionToolbar,
|
|
77
76
|
disableSelectionToolbarWhenPinned = config.disableSelectionToolbarWhenPinned;
|
|
@@ -120,7 +120,8 @@ var SelectionToolbar = exports.SelectionToolbar = function SelectionToolbar(_ref
|
|
|
120
120
|
}, /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarProvider, {
|
|
121
121
|
editorView: editorView,
|
|
122
122
|
editorToolbarDockingPreference: editorToolbarDockingPreference,
|
|
123
|
-
editorViewMode: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode
|
|
123
|
+
editorViewMode: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode,
|
|
124
|
+
isOffline: isOffline
|
|
124
125
|
}, /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarUIProvider, {
|
|
125
126
|
api: api,
|
|
126
127
|
isDisabled: patch6Enabled ? isDisabled : isOffline
|
|
@@ -102,7 +102,7 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
102
102
|
type: 'toolbar',
|
|
103
103
|
key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
|
|
104
104
|
rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION_COLLAPSED.key]
|
|
105
|
-
}, (0, _expValEquals.expValEquals)('
|
|
105
|
+
}, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) && {
|
|
106
106
|
type: 'toolbar',
|
|
107
107
|
key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
108
108
|
rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION_COLLAPSED.key]
|
|
@@ -71,7 +71,7 @@ export const SelectionToolbar = ({
|
|
|
71
71
|
currentUserIntent,
|
|
72
72
|
shouldShowToolbar,
|
|
73
73
|
editorViewMode,
|
|
74
|
-
// @ts-
|
|
74
|
+
// @ts-ignore
|
|
75
75
|
selection
|
|
76
76
|
} = usePluginState(api);
|
|
77
77
|
const intl = useIntl();
|
|
@@ -113,7 +113,8 @@ export const SelectionToolbar = ({
|
|
|
113
113
|
}, /*#__PURE__*/React.createElement(EditorToolbarProvider, {
|
|
114
114
|
editorView: editorView,
|
|
115
115
|
editorToolbarDockingPreference: editorToolbarDockingPreference,
|
|
116
|
-
editorViewMode: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode
|
|
116
|
+
editorViewMode: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode,
|
|
117
|
+
isOffline: isOffline
|
|
117
118
|
}, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
|
|
118
119
|
api: api,
|
|
119
120
|
isDisabled: patch6Enabled ? isDisabled : isOffline
|
|
@@ -96,7 +96,7 @@ export const getToolbarComponents = (api, disableSelectionToolbar) => {
|
|
|
96
96
|
type: 'toolbar',
|
|
97
97
|
key: TOOLBARS.PRIMARY_TOOLBAR,
|
|
98
98
|
rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
|
|
99
|
-
}, expValEquals('
|
|
99
|
+
}, expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) && {
|
|
100
100
|
type: 'toolbar',
|
|
101
101
|
key: TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
102
102
|
rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
|
|
@@ -63,8 +63,7 @@ export var toolbarPlugin = function toolbarPlugin(_ref) {
|
|
|
63
63
|
_ref$config = _ref.config,
|
|
64
64
|
config = _ref$config === void 0 ? {
|
|
65
65
|
disableSelectionToolbar: false,
|
|
66
|
-
disableSelectionToolbarWhenPinned: false
|
|
67
|
-
enableNewToolbarExperience: true
|
|
66
|
+
disableSelectionToolbarWhenPinned: false
|
|
68
67
|
} : _ref$config;
|
|
69
68
|
var disableSelectionToolbar = config.disableSelectionToolbar,
|
|
70
69
|
disableSelectionToolbarWhenPinned = config.disableSelectionToolbarWhenPinned;
|
|
@@ -112,7 +112,8 @@ export var SelectionToolbar = function SelectionToolbar(_ref) {
|
|
|
112
112
|
}, /*#__PURE__*/React.createElement(EditorToolbarProvider, {
|
|
113
113
|
editorView: editorView,
|
|
114
114
|
editorToolbarDockingPreference: editorToolbarDockingPreference,
|
|
115
|
-
editorViewMode: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode
|
|
115
|
+
editorViewMode: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode,
|
|
116
|
+
isOffline: isOffline
|
|
116
117
|
}, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
|
|
117
118
|
api: api,
|
|
118
119
|
isDisabled: patch6Enabled ? isDisabled : isOffline
|
|
@@ -95,7 +95,7 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
|
|
|
95
95
|
type: 'toolbar',
|
|
96
96
|
key: TOOLBARS.PRIMARY_TOOLBAR,
|
|
97
97
|
rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
|
|
98
|
-
}, expValEquals('
|
|
98
|
+
}, expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) && {
|
|
99
99
|
type: 'toolbar',
|
|
100
100
|
key: TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
101
101
|
rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
|
|
@@ -3,9 +3,7 @@ export type ToolbarPluginOptions = {
|
|
|
3
3
|
disableSelectionToolbar?: boolean;
|
|
4
4
|
disableSelectionToolbarWhenPinned?: boolean;
|
|
5
5
|
/**
|
|
6
|
-
* Option to enable new toolbar designs
|
|
7
|
-
*
|
|
8
|
-
* Default: `true`
|
|
6
|
+
* Option to enable new toolbar designs
|
|
9
7
|
*/
|
|
10
8
|
enableNewToolbarExperience?: boolean;
|
|
11
9
|
};
|
|
@@ -3,9 +3,7 @@ export type ToolbarPluginOptions = {
|
|
|
3
3
|
disableSelectionToolbar?: boolean;
|
|
4
4
|
disableSelectionToolbarWhenPinned?: boolean;
|
|
5
5
|
/**
|
|
6
|
-
* Option to enable new toolbar designs
|
|
7
|
-
*
|
|
8
|
-
* Default: `true`
|
|
6
|
+
* Option to enable new toolbar designs
|
|
9
7
|
*/
|
|
10
8
|
enableNewToolbarExperience?: boolean;
|
|
11
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"@atlaskit/editor-plugin-user-intent": "^4.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-user-preferences": "^4.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
39
|
+
"@atlaskit/editor-toolbar": "^0.15.0",
|
|
40
40
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^13.10.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"bind-event-listener": "^3.0.0",
|
|
45
45
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@atlaskit/editor-common": "^110.
|
|
48
|
+
"@atlaskit/editor-common": "^110.10.0",
|
|
49
49
|
"react": "^18.2.0"
|
|
50
50
|
},
|
|
51
51
|
"techstack": {
|