@atlaskit/editor-plugin-primary-toolbar 3.2.10 → 3.2.11
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,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-primary-toolbar
|
|
2
2
|
|
|
3
|
+
## 3.2.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#163573](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/163573)
|
|
8
|
+
[`21e93839ec382`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/21e93839ec382) -
|
|
9
|
+
Convert platform_editor_controls_toolbar_pinning fg to
|
|
10
|
+
platform_editor_controls_toolbar_pinning_exp experiment
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 3.2.10
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -141,7 +141,9 @@ var pinToolbar = [{
|
|
|
141
141
|
}];
|
|
142
142
|
var toolbarConfigurationV2 = function toolbarConfigurationV2(shouldShowInsertBlock, shouldShowUndoRedoGroup) {
|
|
143
143
|
var shouldShowFindGroup = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
144
|
-
return [].concat((0, _toConsumableArray2.default)(shouldShowUndoRedoGroup ? undoRedoGroup : []), blockTypeGroup, textFormattingGroup, textColorGroup, alignmentGroup, listFormattingGroup, hyperlinkGroup, (0, _toConsumableArray2.default)(shouldShowInsertBlock ? insertBlockGroup : []), (0, _toConsumableArray2.default)((0,
|
|
144
|
+
return [].concat((0, _toConsumableArray2.default)(shouldShowUndoRedoGroup ? undoRedoGroup : []), blockTypeGroup, textFormattingGroup, textColorGroup, alignmentGroup, listFormattingGroup, hyperlinkGroup, (0, _toConsumableArray2.default)(shouldShowInsertBlock ? insertBlockGroup : []), (0, _toConsumableArray2.default)((0, _experiments.editorExperiment)('platform_editor_controls_toolbar_pinning_exp', true, {
|
|
145
|
+
exposure: true
|
|
146
|
+
}) ? pinToolbar : overflowMenu), [{
|
|
145
147
|
name: 'beforePrimaryToolbar'
|
|
146
148
|
}], (0, _toConsumableArray2.default)(shouldShowFindGroup ? findGroup : []));
|
|
147
149
|
};
|
|
@@ -112,6 +112,8 @@ const overflowMenu = [{
|
|
|
112
112
|
const pinToolbar = [{
|
|
113
113
|
name: 'pinToolbar'
|
|
114
114
|
}];
|
|
115
|
-
const toolbarConfigurationV2 = (shouldShowInsertBlock, shouldShowUndoRedoGroup, shouldShowFindGroup = false) => [...(shouldShowUndoRedoGroup ? undoRedoGroup : []), ...blockTypeGroup, ...textFormattingGroup, ...textColorGroup, ...alignmentGroup, ...listFormattingGroup, ...hyperlinkGroup, ...(shouldShowInsertBlock ? insertBlockGroup : []), ...(
|
|
115
|
+
const toolbarConfigurationV2 = (shouldShowInsertBlock, shouldShowUndoRedoGroup, shouldShowFindGroup = false) => [...(shouldShowUndoRedoGroup ? undoRedoGroup : []), ...blockTypeGroup, ...textFormattingGroup, ...textColorGroup, ...alignmentGroup, ...listFormattingGroup, ...hyperlinkGroup, ...(shouldShowInsertBlock ? insertBlockGroup : []), ...(editorExperiment('platform_editor_controls_toolbar_pinning_exp', true, {
|
|
116
|
+
exposure: true
|
|
117
|
+
}) ? pinToolbar : overflowMenu), {
|
|
116
118
|
name: 'beforePrimaryToolbar'
|
|
117
119
|
}, ...(shouldShowFindGroup ? findGroup : [])];
|
|
@@ -134,7 +134,9 @@ var pinToolbar = [{
|
|
|
134
134
|
}];
|
|
135
135
|
var toolbarConfigurationV2 = function toolbarConfigurationV2(shouldShowInsertBlock, shouldShowUndoRedoGroup) {
|
|
136
136
|
var shouldShowFindGroup = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
137
|
-
return [].concat(_toConsumableArray(shouldShowUndoRedoGroup ? undoRedoGroup : []), blockTypeGroup, textFormattingGroup, textColorGroup, alignmentGroup, listFormattingGroup, hyperlinkGroup, _toConsumableArray(shouldShowInsertBlock ? insertBlockGroup : []), _toConsumableArray(
|
|
137
|
+
return [].concat(_toConsumableArray(shouldShowUndoRedoGroup ? undoRedoGroup : []), blockTypeGroup, textFormattingGroup, textColorGroup, alignmentGroup, listFormattingGroup, hyperlinkGroup, _toConsumableArray(shouldShowInsertBlock ? insertBlockGroup : []), _toConsumableArray(editorExperiment('platform_editor_controls_toolbar_pinning_exp', true, {
|
|
138
|
+
exposure: true
|
|
139
|
+
}) ? pinToolbar : overflowMenu), [{
|
|
138
140
|
name: 'beforePrimaryToolbar'
|
|
139
141
|
}], _toConsumableArray(shouldShowFindGroup ? findGroup : []));
|
|
140
142
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-primary-toolbar",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.11",
|
|
4
4
|
"description": "Primary toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/editor-common": "^106.1.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^5.7.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1"
|
|
45
45
|
},
|
|
@@ -93,9 +93,6 @@
|
|
|
93
93
|
},
|
|
94
94
|
"platform_editor_controls_fix_toolbar_config_embeds": {
|
|
95
95
|
"type": "boolean"
|
|
96
|
-
},
|
|
97
|
-
"platform_editor_controls_toolbar_pinning": {
|
|
98
|
-
"type": "boolean"
|
|
99
96
|
}
|
|
100
97
|
}
|
|
101
98
|
}
|