@atlaskit/editor-plugin-toolbar 1.1.1 → 1.1.3

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,21 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 1.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a628d848005b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a628d848005b7) -
8
+ [ED-29180] Remove duplicative text style button from inline text toolbar
9
+ - Updated dependencies
10
+
11
+ ## 1.1.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [`a8630c1107c3d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a8630c1107c3d) -
16
+ [ED-28781] Hide inline text toolbar when other popups are open
17
+ - Updated dependencies
18
+
3
19
  ## 1.1.1
4
20
 
5
21
  ### Patch Changes
@@ -65,7 +65,7 @@ var SelectionToolbar = exports.SelectionToolbar = function SelectionToolbar(_ref
65
65
  if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_template_editor', 'isEnabled', true) && toolbarDocking === 'top' && disableSelectionToolbarWhenPinned || !components || !toolbar) {
66
66
  return null;
67
67
  }
68
- if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) || (0, _coreUtils.isSSR)()) {
68
+ if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) || currentUserIntent && currentUserIntent !== 'default' && (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) || (0, _coreUtils.isSSR)()) {
69
69
  return null;
70
70
  }
71
71
  return /*#__PURE__*/_react.default.createElement(_ui.Popup, {
@@ -71,10 +71,6 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
71
71
  type: _toolbar.TEXT_SECTION_COLLAPSED.type,
72
72
  key: _toolbar.TEXT_SECTION_COLLAPSED.key,
73
73
  parents: [{
74
- type: 'toolbar',
75
- key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
76
- rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION_COLLAPSED.key]
77
- }, {
78
74
  type: 'toolbar',
79
75
  key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
80
76
  rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION_COLLAPSED.key]
@@ -57,7 +57,7 @@ export const SelectionToolbar = ({
57
57
  if (expValEquals('platform_editor_toolbar_aifc_template_editor', 'isEnabled', true) && toolbarDocking === 'top' && disableSelectionToolbarWhenPinned || !components || !toolbar) {
58
58
  return null;
59
59
  }
60
- if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || isSSR()) {
60
+ if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || currentUserIntent && currentUserIntent !== 'default' && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) || isSSR()) {
61
61
  return null;
62
62
  }
63
63
  return /*#__PURE__*/React.createElement(Popup, {
@@ -64,10 +64,6 @@ export const getToolbarComponents = (api, disableSelectionToolbar) => {
64
64
  type: TEXT_SECTION_COLLAPSED.type,
65
65
  key: TEXT_SECTION_COLLAPSED.key,
66
66
  parents: [{
67
- type: 'toolbar',
68
- key: TOOLBARS.INLINE_TEXT_TOOLBAR,
69
- rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
70
- }, {
71
67
  type: 'toolbar',
72
68
  key: TOOLBARS.PRIMARY_TOOLBAR,
73
69
  rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
@@ -57,7 +57,7 @@ export var SelectionToolbar = function SelectionToolbar(_ref) {
57
57
  if (expValEquals('platform_editor_toolbar_aifc_template_editor', 'isEnabled', true) && toolbarDocking === 'top' && disableSelectionToolbarWhenPinned || !components || !toolbar) {
58
58
  return null;
59
59
  }
60
- if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || isSSR()) {
60
+ if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || currentUserIntent && currentUserIntent !== 'default' && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) || isSSR()) {
61
61
  return null;
62
62
  }
63
63
  return /*#__PURE__*/React.createElement(Popup, {
@@ -64,10 +64,6 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
64
64
  type: TEXT_SECTION_COLLAPSED.type,
65
65
  key: TEXT_SECTION_COLLAPSED.key,
66
66
  parents: [{
67
- type: 'toolbar',
68
- key: TOOLBARS.INLINE_TEXT_TOOLBAR,
69
- rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
70
- }, {
71
67
  type: 'toolbar',
72
68
  key: TOOLBARS.PRIMARY_TOOLBAR,
73
69
  rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,13 +36,13 @@
36
36
  "@atlaskit/editor-prosemirror": "7.0.0",
37
37
  "@atlaskit/editor-toolbar": "^0.8.0",
38
38
  "@atlaskit/editor-toolbar-model": "^0.2.0",
39
- "@atlaskit/tmp-editor-statsig": "^12.4.0",
39
+ "@atlaskit/tmp-editor-statsig": "^12.6.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "bind-event-listener": "^3.0.0",
42
42
  "react-intl-next": "npm:react-intl@^5.18.1"
43
43
  },
44
44
  "peerDependencies": {
45
- "@atlaskit/editor-common": "^108.2.0",
45
+ "@atlaskit/editor-common": "^108.5.0",
46
46
  "react": "^18.2.0"
47
47
  },
48
48
  "techstack": {