@atlaskit/editor-plugin-primary-toolbar 16.0.10 → 16.0.12

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,19 @@
1
1
  # @atlaskit/editor-plugin-primary-toolbar
2
2
 
3
+ ## 16.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c3fe10586763c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c3fe10586763c) -
8
+ Clean up feature gate `platform_editor_undo_redo_find_on_primary_toolbar`
9
+ - Updated dependencies
10
+
11
+ ## 16.0.11
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 16.0.10
4
18
 
5
19
  ### Patch Changes
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.getToolbarComponents = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
9
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
11
10
  var getToolbarComponents = exports.getToolbarComponents = function getToolbarComponents(_ref) {
12
11
  var componentRegistry = _ref.componentRegistry,
@@ -16,8 +15,7 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
16
15
  if (contextualFormattingEnabled && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
17
16
  exposure: true
18
17
  })) {
19
- var shouldShowUndoRedoGroup = (0, _platformFeatureFlags.fg)('platform_editor_undo_redo_find_on_primary_toolbar');
20
- configuration = toolbarConfigurationV2(true, shouldShowUndoRedoGroup);
18
+ configuration = toolbarConfigurationV2(true);
21
19
  } else {
22
20
  var shouldShowFindGroup = !!contextualFormattingEnabled;
23
21
  if (componentRegistry.has('trackChanges')) {
@@ -159,9 +157,9 @@ var toolbarConfiguration = function toolbarConfiguration(shouldShowFindGroup) {
159
157
  var pinToolbar = [{
160
158
  name: 'pinToolbar'
161
159
  }];
162
- var toolbarConfigurationV2 = function toolbarConfigurationV2(shouldShowInsertBlock, shouldShowUndoRedoGroup) {
163
- var shouldShowFindGroup = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
164
- return [].concat((0, _toConsumableArray2.default)(shouldShowUndoRedoGroup ? undoRedoGroup : []), blockTypeGroup, textFormattingGroup, textColorGroup, alignmentGroup, listFormattingGroup, hyperlinkGroup, (0, _toConsumableArray2.default)(shouldShowInsertBlock ? insertBlockGroup : []), [{
160
+ var toolbarConfigurationV2 = function toolbarConfigurationV2(shouldShowInsertBlock) {
161
+ var shouldShowFindGroup = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
162
+ return [].concat(blockTypeGroup, textFormattingGroup, textColorGroup, alignmentGroup, listFormattingGroup, hyperlinkGroup, (0, _toConsumableArray2.default)(shouldShowInsertBlock ? insertBlockGroup : []), [{
165
163
  name: 'selectionExtension'
166
164
  }], pinToolbar, [{
167
165
  name: 'beforePrimaryToolbar'
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
2
  export const getToolbarComponents = ({
4
3
  componentRegistry,
@@ -9,8 +8,7 @@ export const getToolbarComponents = ({
9
8
  if (contextualFormattingEnabled && editorExperiment('platform_editor_controls', 'variant1', {
10
9
  exposure: true
11
10
  })) {
12
- const shouldShowUndoRedoGroup = fg('platform_editor_undo_redo_find_on_primary_toolbar');
13
- configuration = toolbarConfigurationV2(true, shouldShowUndoRedoGroup);
11
+ configuration = toolbarConfigurationV2(true);
14
12
  } else {
15
13
  const shouldShowFindGroup = !!contextualFormattingEnabled;
16
14
  if (componentRegistry.has('trackChanges')) {
@@ -124,7 +122,7 @@ const toolbarConfiguration = shouldShowFindGroup => [...undoRedoGroup, ...spellC
124
122
  const pinToolbar = [{
125
123
  name: 'pinToolbar'
126
124
  }];
127
- const toolbarConfigurationV2 = (shouldShowInsertBlock, shouldShowUndoRedoGroup, shouldShowFindGroup = false) => [...(shouldShowUndoRedoGroup ? undoRedoGroup : []), ...blockTypeGroup, ...textFormattingGroup, ...textColorGroup, ...alignmentGroup, ...listFormattingGroup, ...hyperlinkGroup, ...(shouldShowInsertBlock ? insertBlockGroup : []), {
125
+ const toolbarConfigurationV2 = (shouldShowInsertBlock, shouldShowFindGroup = false) => [...blockTypeGroup, ...textFormattingGroup, ...textColorGroup, ...alignmentGroup, ...listFormattingGroup, ...hyperlinkGroup, ...(shouldShowInsertBlock ? insertBlockGroup : []), {
128
126
  name: 'selectionExtension'
129
127
  }, ...pinToolbar, {
130
128
  name: 'beforePrimaryToolbar'
@@ -1,5 +1,4 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
4
3
  export var getToolbarComponents = function getToolbarComponents(_ref) {
5
4
  var componentRegistry = _ref.componentRegistry,
@@ -9,8 +8,7 @@ export var getToolbarComponents = function getToolbarComponents(_ref) {
9
8
  if (contextualFormattingEnabled && editorExperiment('platform_editor_controls', 'variant1', {
10
9
  exposure: true
11
10
  })) {
12
- var shouldShowUndoRedoGroup = fg('platform_editor_undo_redo_find_on_primary_toolbar');
13
- configuration = toolbarConfigurationV2(true, shouldShowUndoRedoGroup);
11
+ configuration = toolbarConfigurationV2(true);
14
12
  } else {
15
13
  var shouldShowFindGroup = !!contextualFormattingEnabled;
16
14
  if (componentRegistry.has('trackChanges')) {
@@ -152,9 +150,9 @@ var toolbarConfiguration = function toolbarConfiguration(shouldShowFindGroup) {
152
150
  var pinToolbar = [{
153
151
  name: 'pinToolbar'
154
152
  }];
155
- var toolbarConfigurationV2 = function toolbarConfigurationV2(shouldShowInsertBlock, shouldShowUndoRedoGroup) {
156
- var shouldShowFindGroup = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
157
- return [].concat(_toConsumableArray(shouldShowUndoRedoGroup ? undoRedoGroup : []), blockTypeGroup, textFormattingGroup, textColorGroup, alignmentGroup, listFormattingGroup, hyperlinkGroup, _toConsumableArray(shouldShowInsertBlock ? insertBlockGroup : []), [{
153
+ var toolbarConfigurationV2 = function toolbarConfigurationV2(shouldShowInsertBlock) {
154
+ var shouldShowFindGroup = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
155
+ return [].concat(blockTypeGroup, textFormattingGroup, textColorGroup, alignmentGroup, listFormattingGroup, hyperlinkGroup, _toConsumableArray(shouldShowInsertBlock ? insertBlockGroup : []), [{
158
156
  name: 'selectionExtension'
159
157
  }], pinToolbar, [{
160
158
  name: 'beforePrimaryToolbar'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-primary-toolbar",
3
- "version": "16.0.10",
3
+ "version": "16.0.12",
4
4
  "description": "Primary toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -26,12 +26,12 @@
26
26
  "dependencies": {
27
27
  "@atlaskit/editor-prosemirror": "^8.0.0",
28
28
  "@atlaskit/platform-feature-flags": "^2.1.0",
29
- "@atlaskit/tmp-editor-statsig": "^157.0.0",
29
+ "@atlaskit/tmp-editor-statsig": "^159.0.0",
30
30
  "@babel/runtime": "^7.0.0",
31
31
  "@emotion/react": "^11.7.1"
32
32
  },
33
33
  "peerDependencies": {
34
- "@atlaskit/editor-common": "^119.13.0",
34
+ "@atlaskit/editor-common": "^119.16.0",
35
35
  "react": "^18.2.0 || ^19.2.0"
36
36
  },
37
37
  "techstack": {
@@ -69,11 +69,6 @@
69
69
  ]
70
70
  }
71
71
  },
72
- "platform-feature-flags": {
73
- "platform_editor_undo_redo_find_on_primary_toolbar": {
74
- "type": "boolean"
75
- }
76
- },
77
72
  "devDependencies": {
78
73
  "react": "^19.2.0"
79
74
  }