@atlaskit/editor-plugin-floating-toolbar 4.2.4 → 4.2.6

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,17 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 4.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.2.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 4.2.4
4
16
 
5
17
  ### Patch Changes
@@ -18,7 +18,6 @@ var _ui = require("@atlaskit/editor-common/ui");
18
18
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
19
19
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
20
20
  var _chevronDown2 = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
21
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
21
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
23
22
  var _Divider = require("./Divider");
24
23
  var _DropdownMenu = _interopRequireWildcard(require("./DropdownMenu"));
@@ -173,7 +172,7 @@ var Dropdown = exports.default = /*#__PURE__*/function (_Component) {
173
172
  selected: isOpen,
174
173
  disabled: disabled,
175
174
  tooltipContent: tooltip,
176
- ariaHasPopup: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? true : undefined,
175
+ ariaHasPopup: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? true : undefined,
177
176
  onMount: onMount,
178
177
  pulse: pulse,
179
178
  spotlightConfig: spotlightConfig
@@ -62,7 +62,7 @@ function groupItems(items) {
62
62
  } else {
63
63
  finalOutput.push(item);
64
64
  }
65
- } else if (item.type === 'separator' && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6')) {
65
+ } else if (item.type === 'separator' && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
66
66
  var _items;
67
67
  var isLeadingSeparator = i === 0;
68
68
  var isTrailingSeparator = i === items.length - 1;
@@ -341,7 +341,7 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
341
341
  scrollable: scrollable
342
342
  });
343
343
  case 'separator':
344
- if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6')) {
344
+ if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
345
345
  return item.fullHeight ? (0, _react2.jsx)(_ui.FloatingToolbarSeparator, {
346
346
  key: idx,
347
347
  fullHeight: true
@@ -13,7 +13,6 @@ import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
13
13
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
14
14
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
15
15
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
16
- import { fg } from '@atlaskit/platform-feature-flags';
17
16
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
18
17
  import { Divider } from './Divider';
19
18
  import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
@@ -155,7 +154,7 @@ export default class Dropdown extends Component {
155
154
  selected: isOpen,
156
155
  disabled: disabled,
157
156
  tooltipContent: tooltip,
158
- ariaHasPopup: editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_8') ? true : undefined,
157
+ ariaHasPopup: editorExperiment('platform_editor_controls', 'variant1') ? true : undefined,
159
158
  onMount: onMount,
160
159
  pulse: pulse,
161
160
  spotlightConfig: spotlightConfig
@@ -51,7 +51,7 @@ export function groupItems(items) {
51
51
  } else {
52
52
  finalOutput.push(item);
53
53
  }
54
- } else if (item.type === 'separator' && editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_6')) {
54
+ } else if (item.type === 'separator' && editorExperiment('platform_editor_controls', 'variant1')) {
55
55
  var _items;
56
56
  const isLeadingSeparator = i === 0;
57
57
  const isTrailingSeparator = i === items.length - 1;
@@ -315,7 +315,7 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
315
315
  scrollable: scrollable
316
316
  });
317
317
  case 'separator':
318
- if (editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_6')) {
318
+ if (editorExperiment('platform_editor_controls', 'variant1')) {
319
319
  return item.fullHeight ? jsx(Separator, {
320
320
  key: idx,
321
321
  fullHeight: true
@@ -22,7 +22,6 @@ import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
22
22
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
23
23
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
24
24
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
25
- import { fg } from '@atlaskit/platform-feature-flags';
26
25
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
27
26
  import { Divider } from './Divider';
28
27
  import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
@@ -169,7 +168,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
169
168
  selected: isOpen,
170
169
  disabled: disabled,
171
170
  tooltipContent: tooltip,
172
- ariaHasPopup: editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_8') ? true : undefined,
171
+ ariaHasPopup: editorExperiment('platform_editor_controls', 'variant1') ? true : undefined,
173
172
  onMount: onMount,
174
173
  pulse: pulse,
175
174
  spotlightConfig: spotlightConfig
@@ -56,7 +56,7 @@ export function groupItems(items) {
56
56
  } else {
57
57
  finalOutput.push(item);
58
58
  }
59
- } else if (item.type === 'separator' && editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_6')) {
59
+ } else if (item.type === 'separator' && editorExperiment('platform_editor_controls', 'variant1')) {
60
60
  var _items;
61
61
  var isLeadingSeparator = i === 0;
62
62
  var isTrailingSeparator = i === items.length - 1;
@@ -335,7 +335,7 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
335
335
  scrollable: scrollable
336
336
  });
337
337
  case 'separator':
338
- if (editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_6')) {
338
+ if (editorExperiment('platform_editor_controls', 'variant1')) {
339
339
  return item.fullHeight ? jsx(Separator, {
340
340
  key: idx,
341
341
  fullHeight: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "4.2.4",
3
+ "version": "4.2.6",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -28,7 +28,7 @@
28
28
  "@atlaskit/adf-utils": "^19.20.0",
29
29
  "@atlaskit/button": "^23.2.0",
30
30
  "@atlaskit/checkbox": "^17.1.0",
31
- "@atlaskit/editor-common": "^106.9.0",
31
+ "@atlaskit/editor-common": "^107.0.0",
32
32
  "@atlaskit/editor-palette": "^2.1.0",
33
33
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
34
34
  "@atlaskit/editor-plugin-context-panel": "^4.1.0",
@@ -47,11 +47,11 @@
47
47
  "@atlaskit/menu": "^8.0.0",
48
48
  "@atlaskit/modal-dialog": "^14.2.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
- "@atlaskit/primitives": "^14.8.0",
50
+ "@atlaskit/primitives": "^14.9.0",
51
51
  "@atlaskit/select": "^20.7.0",
52
52
  "@atlaskit/theme": "^18.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^7.1.0",
54
- "@atlaskit/tokens": "^5.2.0",
53
+ "@atlaskit/tmp-editor-statsig": "^8.0.0",
54
+ "@atlaskit/tokens": "^5.3.0",
55
55
  "@atlaskit/tooltip": "^20.3.0",
56
56
  "@babel/runtime": "^7.0.0",
57
57
  "@emotion/react": "^11.7.1",
@@ -137,15 +137,12 @@
137
137
  "platform_editor_remove_slow_table_transactions": {
138
138
  "type": "boolean"
139
139
  },
140
- "platform_editor_controls_patch_6": {
140
+ "platform_editor_user_intent_plugin": {
141
141
  "type": "boolean"
142
142
  },
143
143
  "platform_editor_controls_patch_13": {
144
144
  "type": "boolean"
145
145
  },
146
- "platform_editor_controls_patch_8": {
147
- "type": "boolean"
148
- },
149
146
  "platform_editor_interaction_api_refactor": {
150
147
  "type": "boolean"
151
148
  },