@atlaskit/editor-plugin-toolbar 9.0.21 → 9.0.23

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-toolbar
2
2
 
3
+ ## 9.0.23
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.0.22
10
+
11
+ ### Patch Changes
12
+
13
+ - [`3b5a6eca9da9d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3b5a6eca9da9d) -
14
+ Clean up feature gate `platform_editor_toolbar_aifc_placement_overridden`
15
+ - Updated dependencies
16
+
3
17
  ## 9.0.21
4
18
 
5
19
  ### Patch Changes
@@ -14,20 +14,11 @@ var shouldShowSection = function shouldShowSection(editMode, toolbar, toolbarDoc
14
14
  if (editMode === 'view') {
15
15
  return false;
16
16
  }
17
- if ((0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_placement_overridden')) {
18
- if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR) {
19
- return toolbarDocking !== 'top' || contextualFormattingEnabled === 'always-inline';
20
- }
21
- if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === _toolbar.TOOLBARS.PRIMARY_TOOLBAR) {
22
- return toolbarDocking !== 'none' || contextualFormattingEnabled === 'always-pinned';
23
- }
24
- } else {
25
- if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR && toolbarDocking !== 'top') {
26
- return true;
27
- }
28
- if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === _toolbar.TOOLBARS.PRIMARY_TOOLBAR && toolbarDocking !== 'none') {
29
- return true;
30
- }
17
+ if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR) {
18
+ return toolbarDocking !== 'top' || contextualFormattingEnabled === 'always-inline';
19
+ }
20
+ if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === _toolbar.TOOLBARS.PRIMARY_TOOLBAR) {
21
+ return toolbarDocking !== 'none' || contextualFormattingEnabled === 'always-pinned';
31
22
  }
32
23
  return false;
33
24
  };
@@ -7,20 +7,11 @@ const shouldShowSection = (editMode, toolbar, toolbarDocking, contextualFormatti
7
7
  if (editMode === 'view') {
8
8
  return false;
9
9
  }
10
- if (fg('platform_editor_toolbar_aifc_placement_overridden')) {
11
- if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === TOOLBARS.INLINE_TEXT_TOOLBAR) {
12
- return toolbarDocking !== 'top' || contextualFormattingEnabled === 'always-inline';
13
- }
14
- if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === TOOLBARS.PRIMARY_TOOLBAR) {
15
- return toolbarDocking !== 'none' || contextualFormattingEnabled === 'always-pinned';
16
- }
17
- } else {
18
- if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === TOOLBARS.INLINE_TEXT_TOOLBAR && toolbarDocking !== 'top') {
19
- return true;
20
- }
21
- if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === TOOLBARS.PRIMARY_TOOLBAR && toolbarDocking !== 'none') {
22
- return true;
23
- }
10
+ if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === TOOLBARS.INLINE_TEXT_TOOLBAR) {
11
+ return toolbarDocking !== 'top' || contextualFormattingEnabled === 'always-inline';
12
+ }
13
+ if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === TOOLBARS.PRIMARY_TOOLBAR) {
14
+ return toolbarDocking !== 'none' || contextualFormattingEnabled === 'always-pinned';
24
15
  }
25
16
  return false;
26
17
  };
@@ -7,20 +7,11 @@ var shouldShowSection = function shouldShowSection(editMode, toolbar, toolbarDoc
7
7
  if (editMode === 'view') {
8
8
  return false;
9
9
  }
10
- if (fg('platform_editor_toolbar_aifc_placement_overridden')) {
11
- if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === TOOLBARS.INLINE_TEXT_TOOLBAR) {
12
- return toolbarDocking !== 'top' || contextualFormattingEnabled === 'always-inline';
13
- }
14
- if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === TOOLBARS.PRIMARY_TOOLBAR) {
15
- return toolbarDocking !== 'none' || contextualFormattingEnabled === 'always-pinned';
16
- }
17
- } else {
18
- if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === TOOLBARS.INLINE_TEXT_TOOLBAR && toolbarDocking !== 'top') {
19
- return true;
20
- }
21
- if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === TOOLBARS.PRIMARY_TOOLBAR && toolbarDocking !== 'none') {
22
- return true;
23
- }
10
+ if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === TOOLBARS.INLINE_TEXT_TOOLBAR) {
11
+ return toolbarDocking !== 'top' || contextualFormattingEnabled === 'always-inline';
12
+ }
13
+ if ((toolbar === null || toolbar === void 0 ? void 0 : toolbar.key) === TOOLBARS.PRIMARY_TOOLBAR) {
14
+ return toolbarDocking !== 'none' || contextualFormattingEnabled === 'always-pinned';
24
15
  }
25
16
  return false;
26
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "9.0.21",
3
+ "version": "9.0.23",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,22 +29,19 @@
29
29
  "@atlaskit/editor-plugin-user-preferences": "^10.0.0",
30
30
  "@atlaskit/editor-prosemirror": "^8.0.0",
31
31
  "@atlaskit/editor-shared-styles": "^4.0.0",
32
- "@atlaskit/editor-toolbar": "^2.1.0",
32
+ "@atlaskit/editor-toolbar": "^2.2.0",
33
33
  "@atlaskit/editor-toolbar-model": "^1.1.0",
34
34
  "@atlaskit/platform-feature-flags": "^2.0.0",
35
- "@atlaskit/tmp-editor-statsig": "^124.0.0",
35
+ "@atlaskit/tmp-editor-statsig": "^125.0.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "bind-event-listener": "^3.0.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@atlaskit/editor-common": "^116.24.0",
40
+ "@atlaskit/editor-common": "^116.30.0",
41
41
  "react": "^18.2.0",
42
42
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
43
43
  },
44
44
  "platform-feature-flags": {
45
- "platform_editor_toolbar_aifc_placement_overridden": {
46
- "type": "boolean"
47
- },
48
45
  "platform_editor_toolbar_mode_override": {
49
46
  "type": "boolean"
50
47
  }