@atlaskit/editor-plugin-toolbar 2.1.5 → 3.0.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 +6 -0
- package/afm-dev-agents/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-passionfruit/tsconfig.json +3 -0
- package/afm-post-office/tsconfig.json +3 -0
- package/afm-rovo-extension/tsconfig.json +3 -0
- package/afm-townsquare/tsconfig.json +3 -0
- package/dist/cjs/ui/toolbar-components.js +49 -17
- package/dist/es2019/ui/toolbar-components.js +36 -3
- package/dist/esm/ui/toolbar-components.js +50 -18
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -41,7 +41,11 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
41
41
|
}, {
|
|
42
42
|
type: _toolbar.TEXT_SECTION.type,
|
|
43
43
|
key: _toolbar.TEXT_SECTION.key,
|
|
44
|
-
parents: [{
|
|
44
|
+
parents: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
|
|
45
|
+
type: 'toolbar',
|
|
46
|
+
key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
47
|
+
rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION.key]
|
|
48
|
+
}] : [{
|
|
45
49
|
type: 'toolbar',
|
|
46
50
|
key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
47
51
|
rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION.key]
|
|
@@ -70,7 +74,35 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
70
74
|
testId: "text-section"
|
|
71
75
|
}, children);
|
|
72
76
|
}
|
|
73
|
-
}].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('
|
|
77
|
+
}].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
|
|
78
|
+
type: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.type,
|
|
79
|
+
key: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.key,
|
|
80
|
+
parents: [{
|
|
81
|
+
type: 'toolbar',
|
|
82
|
+
key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
|
|
83
|
+
rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION.key]
|
|
84
|
+
}],
|
|
85
|
+
component: function component(_ref4) {
|
|
86
|
+
var children = _ref4.children,
|
|
87
|
+
parents = _ref4.parents;
|
|
88
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true)) {
|
|
89
|
+
return /*#__PURE__*/_react.default.createElement(_editorToolbar.Show, {
|
|
90
|
+
above: "md"
|
|
91
|
+
}, /*#__PURE__*/_react.default.createElement(_Section.Section, {
|
|
92
|
+
parents: parents,
|
|
93
|
+
api: api,
|
|
94
|
+
disableSelectionToolbar: disableSelectionToolbar,
|
|
95
|
+
testId: "text-section"
|
|
96
|
+
}, children));
|
|
97
|
+
}
|
|
98
|
+
return /*#__PURE__*/_react.default.createElement(_Section.Section, {
|
|
99
|
+
parents: parents,
|
|
100
|
+
api: api,
|
|
101
|
+
disableSelectionToolbar: disableSelectionToolbar,
|
|
102
|
+
testId: "text-section"
|
|
103
|
+
}, children);
|
|
104
|
+
}
|
|
105
|
+
}] : []), (0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
|
|
74
106
|
type: _toolbar.TEXT_SECTION_COLLAPSED.type,
|
|
75
107
|
key: _toolbar.TEXT_SECTION_COLLAPSED.key,
|
|
76
108
|
parents: [{
|
|
@@ -82,9 +114,9 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
82
114
|
key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
83
115
|
rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION_COLLAPSED.key]
|
|
84
116
|
}],
|
|
85
|
-
component: function component(
|
|
86
|
-
var children =
|
|
87
|
-
parents =
|
|
117
|
+
component: function component(_ref5) {
|
|
118
|
+
var children = _ref5.children,
|
|
119
|
+
parents = _ref5.parents;
|
|
88
120
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.Show, {
|
|
89
121
|
below: "md"
|
|
90
122
|
}, /*#__PURE__*/_react.default.createElement(_Section.Section, {
|
|
@@ -119,9 +151,9 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
119
151
|
key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
|
|
120
152
|
rank: _toolbar.TOOLBAR_RANK[_toolbar.INSERT_BLOCK_SECTION.key]
|
|
121
153
|
}],
|
|
122
|
-
component: function component(
|
|
123
|
-
var children =
|
|
124
|
-
parents =
|
|
154
|
+
component: function component(_ref6) {
|
|
155
|
+
var children = _ref6.children,
|
|
156
|
+
parents = _ref6.parents;
|
|
125
157
|
return /*#__PURE__*/_react.default.createElement(_Section.Section, {
|
|
126
158
|
testId: "insert-block-section",
|
|
127
159
|
parents: parents,
|
|
@@ -142,9 +174,9 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
142
174
|
key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
|
|
143
175
|
rank: _toolbar.TOOLBAR_RANK[_toolbar.LINKING_SECTION.key]
|
|
144
176
|
}],
|
|
145
|
-
component: function component(
|
|
146
|
-
var children =
|
|
147
|
-
parents =
|
|
177
|
+
component: function component(_ref7) {
|
|
178
|
+
var children = _ref7.children,
|
|
179
|
+
parents = _ref7.parents;
|
|
148
180
|
return /*#__PURE__*/_react.default.createElement(_Section.Section, {
|
|
149
181
|
testId: "link-section",
|
|
150
182
|
parents: parents,
|
|
@@ -176,8 +208,8 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
176
208
|
key: _toolbar.OVERFLOW_GROUP.key,
|
|
177
209
|
rank: _toolbar.OVERFLOW_GROUP_RANK[_toolbar.OVERFLOW_MENU.key]
|
|
178
210
|
}],
|
|
179
|
-
component: function component(
|
|
180
|
-
var children =
|
|
211
|
+
component: function component(_ref8) {
|
|
212
|
+
var children = _ref8.children;
|
|
181
213
|
return /*#__PURE__*/_react.default.createElement(_OverflowMenu.OverflowMenu, null, children);
|
|
182
214
|
}
|
|
183
215
|
}, {
|
|
@@ -198,8 +230,8 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
198
230
|
key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
|
|
199
231
|
rank: _toolbar.TOOLBAR_RANK[_toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.key]
|
|
200
232
|
}],
|
|
201
|
-
component: function component(
|
|
202
|
-
var children =
|
|
233
|
+
component: function component(_ref9) {
|
|
234
|
+
var children = _ref9.children;
|
|
203
235
|
return /*#__PURE__*/_react.default.createElement(_OverflowSection.OverflowSection, null, children);
|
|
204
236
|
}
|
|
205
237
|
}, {
|
|
@@ -218,8 +250,8 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
218
250
|
key: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
|
|
219
251
|
rank: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK[_toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.key]
|
|
220
252
|
}],
|
|
221
|
-
component: function component(
|
|
222
|
-
var children =
|
|
253
|
+
component: function component(_ref0) {
|
|
254
|
+
var children = _ref0.children;
|
|
223
255
|
return /*#__PURE__*/_react.default.createElement(_OverflowMenu.OverflowMenu, null, children);
|
|
224
256
|
}
|
|
225
257
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import { INSERT_BLOCK_SECTION, LINKING_SECTION, OVERFLOW_GROUP, OVERFLOW_GROUP_PRIMARY_TOOLBAR, OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK, OVERFLOW_GROUP_RANK, OVERFLOW_MENU, OVERFLOW_MENU_PRIMARY_TOOLBAR, OVERFLOW_SECTION, OVERFLOW_SECTION_PRIMARY_TOOLBAR, OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK, OVERFLOW_SECTION_RANK, PIN_SECTION, TEXT_COLLAPSED_GROUP, TEXT_SECTION, TEXT_SECTION_COLLAPSED, TEXT_COLLAPSED_MENU, TOOLBAR_RANK, TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
3
|
+
import { INSERT_BLOCK_SECTION, LINKING_SECTION, OVERFLOW_GROUP, OVERFLOW_GROUP_PRIMARY_TOOLBAR, OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK, OVERFLOW_GROUP_RANK, OVERFLOW_MENU, OVERFLOW_MENU_PRIMARY_TOOLBAR, OVERFLOW_SECTION, OVERFLOW_SECTION_PRIMARY_TOOLBAR, OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK, OVERFLOW_SECTION_RANK, PIN_SECTION, TEXT_COLLAPSED_GROUP, TEXT_SECTION, TEXT_SECTION_PRIMARY_TOOLBAR, TEXT_SECTION_COLLAPSED, TEXT_COLLAPSED_MENU, TOOLBAR_RANK, TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
4
4
|
import { PrimaryToolbar as PrimaryToolbarBase, Show, Toolbar } from '@atlaskit/editor-toolbar';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
import { SELECTION_TOOLBAR_LABEL } from './consts';
|
|
@@ -33,7 +33,11 @@ export const getToolbarComponents = (api, disableSelectionToolbar) => {
|
|
|
33
33
|
}, {
|
|
34
34
|
type: TEXT_SECTION.type,
|
|
35
35
|
key: TEXT_SECTION.key,
|
|
36
|
-
parents: [{
|
|
36
|
+
parents: expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
|
|
37
|
+
type: 'toolbar',
|
|
38
|
+
key: TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
39
|
+
rank: TOOLBAR_RANK[TEXT_SECTION.key]
|
|
40
|
+
}] : [{
|
|
37
41
|
type: 'toolbar',
|
|
38
42
|
key: TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
39
43
|
rank: TOOLBAR_RANK[TEXT_SECTION.key]
|
|
@@ -63,7 +67,36 @@ export const getToolbarComponents = (api, disableSelectionToolbar) => {
|
|
|
63
67
|
testId: "text-section"
|
|
64
68
|
}, children);
|
|
65
69
|
}
|
|
66
|
-
}, ...(expValEquals('
|
|
70
|
+
}, ...(expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
|
|
71
|
+
type: TEXT_SECTION_PRIMARY_TOOLBAR.type,
|
|
72
|
+
key: TEXT_SECTION_PRIMARY_TOOLBAR.key,
|
|
73
|
+
parents: [{
|
|
74
|
+
type: 'toolbar',
|
|
75
|
+
key: TOOLBARS.PRIMARY_TOOLBAR,
|
|
76
|
+
rank: TOOLBAR_RANK[TEXT_SECTION.key]
|
|
77
|
+
}],
|
|
78
|
+
component: ({
|
|
79
|
+
children,
|
|
80
|
+
parents
|
|
81
|
+
}) => {
|
|
82
|
+
if (expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true)) {
|
|
83
|
+
return /*#__PURE__*/React.createElement(Show, {
|
|
84
|
+
above: "md"
|
|
85
|
+
}, /*#__PURE__*/React.createElement(Section, {
|
|
86
|
+
parents: parents,
|
|
87
|
+
api: api,
|
|
88
|
+
disableSelectionToolbar: disableSelectionToolbar,
|
|
89
|
+
testId: "text-section"
|
|
90
|
+
}, children));
|
|
91
|
+
}
|
|
92
|
+
return /*#__PURE__*/React.createElement(Section, {
|
|
93
|
+
parents: parents,
|
|
94
|
+
api: api,
|
|
95
|
+
disableSelectionToolbar: disableSelectionToolbar,
|
|
96
|
+
testId: "text-section"
|
|
97
|
+
}, children);
|
|
98
|
+
}
|
|
99
|
+
}] : []), ...(expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
|
|
67
100
|
type: TEXT_SECTION_COLLAPSED.type,
|
|
68
101
|
key: TEXT_SECTION_COLLAPSED.key,
|
|
69
102
|
parents: [{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { INSERT_BLOCK_SECTION, LINKING_SECTION, OVERFLOW_GROUP, OVERFLOW_GROUP_PRIMARY_TOOLBAR, OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK, OVERFLOW_GROUP_RANK, OVERFLOW_MENU, OVERFLOW_MENU_PRIMARY_TOOLBAR, OVERFLOW_SECTION, OVERFLOW_SECTION_PRIMARY_TOOLBAR, OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK, OVERFLOW_SECTION_RANK, PIN_SECTION, TEXT_COLLAPSED_GROUP, TEXT_SECTION, TEXT_SECTION_COLLAPSED, TEXT_COLLAPSED_MENU, TOOLBAR_RANK, TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
4
|
+
import { INSERT_BLOCK_SECTION, LINKING_SECTION, OVERFLOW_GROUP, OVERFLOW_GROUP_PRIMARY_TOOLBAR, OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK, OVERFLOW_GROUP_RANK, OVERFLOW_MENU, OVERFLOW_MENU_PRIMARY_TOOLBAR, OVERFLOW_SECTION, OVERFLOW_SECTION_PRIMARY_TOOLBAR, OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK, OVERFLOW_SECTION_RANK, PIN_SECTION, TEXT_COLLAPSED_GROUP, TEXT_SECTION, TEXT_SECTION_PRIMARY_TOOLBAR, TEXT_SECTION_COLLAPSED, TEXT_COLLAPSED_MENU, TOOLBAR_RANK, TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
5
5
|
import { PrimaryToolbar as PrimaryToolbarBase, Show, Toolbar } from '@atlaskit/editor-toolbar';
|
|
6
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
7
|
import { SELECTION_TOOLBAR_LABEL } from './consts';
|
|
@@ -34,7 +34,11 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
|
|
|
34
34
|
}, {
|
|
35
35
|
type: TEXT_SECTION.type,
|
|
36
36
|
key: TEXT_SECTION.key,
|
|
37
|
-
parents: [{
|
|
37
|
+
parents: expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
|
|
38
|
+
type: 'toolbar',
|
|
39
|
+
key: TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
40
|
+
rank: TOOLBAR_RANK[TEXT_SECTION.key]
|
|
41
|
+
}] : [{
|
|
38
42
|
type: 'toolbar',
|
|
39
43
|
key: TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
40
44
|
rank: TOOLBAR_RANK[TEXT_SECTION.key]
|
|
@@ -63,7 +67,35 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
|
|
|
63
67
|
testId: "text-section"
|
|
64
68
|
}, children);
|
|
65
69
|
}
|
|
66
|
-
}].concat(_toConsumableArray(expValEquals('
|
|
70
|
+
}].concat(_toConsumableArray(expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
|
|
71
|
+
type: TEXT_SECTION_PRIMARY_TOOLBAR.type,
|
|
72
|
+
key: TEXT_SECTION_PRIMARY_TOOLBAR.key,
|
|
73
|
+
parents: [{
|
|
74
|
+
type: 'toolbar',
|
|
75
|
+
key: TOOLBARS.PRIMARY_TOOLBAR,
|
|
76
|
+
rank: TOOLBAR_RANK[TEXT_SECTION.key]
|
|
77
|
+
}],
|
|
78
|
+
component: function component(_ref4) {
|
|
79
|
+
var children = _ref4.children,
|
|
80
|
+
parents = _ref4.parents;
|
|
81
|
+
if (expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true)) {
|
|
82
|
+
return /*#__PURE__*/React.createElement(Show, {
|
|
83
|
+
above: "md"
|
|
84
|
+
}, /*#__PURE__*/React.createElement(Section, {
|
|
85
|
+
parents: parents,
|
|
86
|
+
api: api,
|
|
87
|
+
disableSelectionToolbar: disableSelectionToolbar,
|
|
88
|
+
testId: "text-section"
|
|
89
|
+
}, children));
|
|
90
|
+
}
|
|
91
|
+
return /*#__PURE__*/React.createElement(Section, {
|
|
92
|
+
parents: parents,
|
|
93
|
+
api: api,
|
|
94
|
+
disableSelectionToolbar: disableSelectionToolbar,
|
|
95
|
+
testId: "text-section"
|
|
96
|
+
}, children);
|
|
97
|
+
}
|
|
98
|
+
}] : []), _toConsumableArray(expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
|
|
67
99
|
type: TEXT_SECTION_COLLAPSED.type,
|
|
68
100
|
key: TEXT_SECTION_COLLAPSED.key,
|
|
69
101
|
parents: [{
|
|
@@ -75,9 +107,9 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
|
|
|
75
107
|
key: TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
76
108
|
rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
|
|
77
109
|
}],
|
|
78
|
-
component: function component(
|
|
79
|
-
var children =
|
|
80
|
-
parents =
|
|
110
|
+
component: function component(_ref5) {
|
|
111
|
+
var children = _ref5.children,
|
|
112
|
+
parents = _ref5.parents;
|
|
81
113
|
return /*#__PURE__*/React.createElement(Show, {
|
|
82
114
|
below: "md"
|
|
83
115
|
}, /*#__PURE__*/React.createElement(Section, {
|
|
@@ -112,9 +144,9 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
|
|
|
112
144
|
key: TOOLBARS.PRIMARY_TOOLBAR,
|
|
113
145
|
rank: TOOLBAR_RANK[INSERT_BLOCK_SECTION.key]
|
|
114
146
|
}],
|
|
115
|
-
component: function component(
|
|
116
|
-
var children =
|
|
117
|
-
parents =
|
|
147
|
+
component: function component(_ref6) {
|
|
148
|
+
var children = _ref6.children,
|
|
149
|
+
parents = _ref6.parents;
|
|
118
150
|
return /*#__PURE__*/React.createElement(Section, {
|
|
119
151
|
testId: "insert-block-section",
|
|
120
152
|
parents: parents,
|
|
@@ -135,9 +167,9 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
|
|
|
135
167
|
key: TOOLBARS.PRIMARY_TOOLBAR,
|
|
136
168
|
rank: TOOLBAR_RANK[LINKING_SECTION.key]
|
|
137
169
|
}],
|
|
138
|
-
component: function component(
|
|
139
|
-
var children =
|
|
140
|
-
parents =
|
|
170
|
+
component: function component(_ref7) {
|
|
171
|
+
var children = _ref7.children,
|
|
172
|
+
parents = _ref7.parents;
|
|
141
173
|
return /*#__PURE__*/React.createElement(Section, {
|
|
142
174
|
testId: "link-section",
|
|
143
175
|
parents: parents,
|
|
@@ -169,8 +201,8 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
|
|
|
169
201
|
key: OVERFLOW_GROUP.key,
|
|
170
202
|
rank: OVERFLOW_GROUP_RANK[OVERFLOW_MENU.key]
|
|
171
203
|
}],
|
|
172
|
-
component: function component(
|
|
173
|
-
var children =
|
|
204
|
+
component: function component(_ref8) {
|
|
205
|
+
var children = _ref8.children;
|
|
174
206
|
return /*#__PURE__*/React.createElement(OverflowMenu, null, children);
|
|
175
207
|
}
|
|
176
208
|
}, {
|
|
@@ -191,8 +223,8 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
|
|
|
191
223
|
key: TOOLBARS.PRIMARY_TOOLBAR,
|
|
192
224
|
rank: TOOLBAR_RANK[OVERFLOW_SECTION_PRIMARY_TOOLBAR.key]
|
|
193
225
|
}],
|
|
194
|
-
component: function component(
|
|
195
|
-
var children =
|
|
226
|
+
component: function component(_ref9) {
|
|
227
|
+
var children = _ref9.children;
|
|
196
228
|
return /*#__PURE__*/React.createElement(OverflowSection, null, children);
|
|
197
229
|
}
|
|
198
230
|
}, {
|
|
@@ -211,8 +243,8 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
|
|
|
211
243
|
key: OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
|
|
212
244
|
rank: OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK[OVERFLOW_MENU_PRIMARY_TOOLBAR.key]
|
|
213
245
|
}],
|
|
214
|
-
component: function component(
|
|
215
|
-
var children =
|
|
246
|
+
component: function component(_ref0) {
|
|
247
|
+
var children = _ref0.children;
|
|
216
248
|
return /*#__PURE__*/React.createElement(OverflowMenu, null, children);
|
|
217
249
|
}
|
|
218
250
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,23 +29,23 @@
|
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/browser-apis": "^0.0.1",
|
|
32
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
33
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
34
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
35
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
36
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
37
|
-
"@atlaskit/editor-plugin-user-preferences": "^
|
|
32
|
+
"@atlaskit/editor-plugin-analytics": "^6.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-connectivity": "^6.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-selection": "^6.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-user-intent": "^4.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-user-preferences": "^4.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
39
|
"@atlaskit/editor-toolbar": "^0.9.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": "^12.
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^12.31.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": "^
|
|
48
|
+
"@atlaskit/editor-common": "^110.0.0",
|
|
49
49
|
"react": "^18.2.0"
|
|
50
50
|
},
|
|
51
51
|
"techstack": {
|