@atlaskit/editor-plugin-floating-toolbar 10.0.23 → 10.0.25

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,25 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 10.0.25
4
+
5
+ ### Patch Changes
6
+
7
+ - [`36aa4e6236ba8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/36aa4e6236ba8) -
8
+ Migrate @atlaskit/onboarding to @atlaskit/spotlight, gate pulse removal behind
9
+ platform_editor_spotlight_migration experiment. Remove dead spotlight config code from floating
10
+ toolbar.
11
+ - Updated dependencies
12
+
13
+ ## 10.0.24
14
+
15
+ ### Patch Changes
16
+
17
+ - [`2e8697decd076`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2e8697decd076) -
18
+ Migrate @atlaskit/onboarding to @atlaskit/spotlight, gate pulse removal behind
19
+ platform_editor_spotlight_migration experiment. Remove dead spotlight config code from floating
20
+ toolbar.
21
+ - Updated dependencies
22
+
3
23
  ## 10.0.23
4
24
 
5
25
  ### Patch Changes
@@ -155,7 +155,6 @@ var Dropdown = exports.default = /*#__PURE__*/function (_Component) {
155
155
  footer = _this$props2.footer,
156
156
  onMount = _this$props2.onMount,
157
157
  pulse = _this$props2.pulse,
158
- spotlightConfig = _this$props2.spotlightConfig,
159
158
  shouldFitContainer = _this$props2.shouldFitContainer,
160
159
  alignX = _this$props2.alignX,
161
160
  areAnyNewToolbarFlagsEnabled = _this$props2.areAnyNewToolbarFlagsEnabled;
@@ -176,7 +175,6 @@ var Dropdown = exports.default = /*#__PURE__*/function (_Component) {
176
175
  ariaHasPopup: areAnyNewToolbarFlagsEnabled ? true : undefined,
177
176
  onMount: onMount,
178
177
  pulse: pulse,
179
- spotlightConfig: spotlightConfig,
180
178
  areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
181
179
  });
182
180
  } else {
@@ -200,7 +198,6 @@ var Dropdown = exports.default = /*#__PURE__*/function (_Component) {
200
198
  areaControls: dropdownListId,
201
199
  onMount: onMount,
202
200
  pulse: pulse,
203
- spotlightConfig: spotlightConfig,
204
201
  areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
205
202
  }, title);
206
203
  }
@@ -179,7 +179,6 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
179
179
  isRadioButton: item.isRadioButton,
180
180
  ariaLabel: (0, _expValEquals.expValEquals)('platform_editor_floating_toolbar_button_aria_label', 'isEnabled', true) ? item === null || item === void 0 ? void 0 : item.ariaLabel : undefined,
181
181
  pulse: item.pulse,
182
- spotlightConfig: item.spotlightConfig,
183
182
  interactionName: item.interactionName,
184
183
  areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
185
184
  }, item.showTitle && item.title);
@@ -136,7 +136,6 @@ export default class Dropdown extends Component {
136
136
  footer,
137
137
  onMount,
138
138
  pulse,
139
- spotlightConfig,
140
139
  shouldFitContainer,
141
140
  alignX,
142
141
  areAnyNewToolbarFlagsEnabled
@@ -158,7 +157,6 @@ export default class Dropdown extends Component {
158
157
  ariaHasPopup: areAnyNewToolbarFlagsEnabled ? true : undefined,
159
158
  onMount: onMount,
160
159
  pulse: pulse,
161
- spotlightConfig: spotlightConfig,
162
160
  areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
163
161
  });
164
162
  } else {
@@ -182,7 +180,6 @@ export default class Dropdown extends Component {
182
180
  areaControls: dropdownListId,
183
181
  onMount: onMount,
184
182
  pulse: pulse,
185
- spotlightConfig: spotlightConfig,
186
183
  areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
187
184
  }, title);
188
185
  }
@@ -159,7 +159,6 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
159
159
  isRadioButton: item.isRadioButton,
160
160
  ariaLabel: expValEquals('platform_editor_floating_toolbar_button_aria_label', 'isEnabled', true) ? item === null || item === void 0 ? void 0 : item.ariaLabel : undefined,
161
161
  pulse: item.pulse,
162
- spotlightConfig: item.spotlightConfig,
163
162
  interactionName: item.interactionName,
164
163
  areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
165
164
  }, item.showTitle && item.title);
@@ -151,7 +151,6 @@ var Dropdown = /*#__PURE__*/function (_Component) {
151
151
  footer = _this$props2.footer,
152
152
  onMount = _this$props2.onMount,
153
153
  pulse = _this$props2.pulse,
154
- spotlightConfig = _this$props2.spotlightConfig,
155
154
  shouldFitContainer = _this$props2.shouldFitContainer,
156
155
  alignX = _this$props2.alignX,
157
156
  areAnyNewToolbarFlagsEnabled = _this$props2.areAnyNewToolbarFlagsEnabled;
@@ -172,7 +171,6 @@ var Dropdown = /*#__PURE__*/function (_Component) {
172
171
  ariaHasPopup: areAnyNewToolbarFlagsEnabled ? true : undefined,
173
172
  onMount: onMount,
174
173
  pulse: pulse,
175
- spotlightConfig: spotlightConfig,
176
174
  areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
177
175
  });
178
176
  } else {
@@ -196,7 +194,6 @@ var Dropdown = /*#__PURE__*/function (_Component) {
196
194
  areaControls: dropdownListId,
197
195
  onMount: onMount,
198
196
  pulse: pulse,
199
- spotlightConfig: spotlightConfig,
200
197
  areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
201
198
  }, title);
202
199
  }
@@ -173,7 +173,6 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
173
173
  isRadioButton: item.isRadioButton,
174
174
  ariaLabel: expValEquals('platform_editor_floating_toolbar_button_aria_label', 'isEnabled', true) ? item === null || item === void 0 ? void 0 : item.ariaLabel : undefined,
175
175
  pulse: item.pulse,
176
- spotlightConfig: item.spotlightConfig,
177
176
  interactionName: item.interactionName,
178
177
  areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
179
178
  }, item.showTitle && item.title);
@@ -6,7 +6,7 @@
6
6
  import type { ReactElement } from 'react';
7
7
  import React, { Component } from 'react';
8
8
  import { jsx } from '@emotion/react';
9
- import type { CommandDispatch, DropdownOptions, ExtensionDropdownOptions, FloatingToolbarButtonSpotlightConfig, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
9
+ import type { CommandDispatch, DropdownOptions, ExtensionDropdownOptions, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
10
10
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
11
11
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
12
12
  export interface Props {
@@ -35,7 +35,6 @@ export interface Props {
35
35
  setDisableParentScroll?: (disable: boolean) => void;
36
36
  shouldFitContainer?: boolean;
37
37
  showSelected?: boolean;
38
- spotlightConfig?: FloatingToolbarButtonSpotlightConfig;
39
38
  title: string;
40
39
  tooltip?: string;
41
40
  }
@@ -6,7 +6,7 @@
6
6
  import type { ReactElement } from 'react';
7
7
  import React, { Component } from 'react';
8
8
  import { jsx } from '@emotion/react';
9
- import type { CommandDispatch, DropdownOptions, ExtensionDropdownOptions, FloatingToolbarButtonSpotlightConfig, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
9
+ import type { CommandDispatch, DropdownOptions, ExtensionDropdownOptions, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
10
10
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
11
11
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
12
12
  export interface Props {
@@ -35,7 +35,6 @@ export interface Props {
35
35
  setDisableParentScroll?: (disable: boolean) => void;
36
36
  shouldFitContainer?: boolean;
37
37
  showSelected?: boolean;
38
- spotlightConfig?: FloatingToolbarButtonSpotlightConfig;
39
38
  title: string;
40
39
  tooltip?: string;
41
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "10.0.23",
3
+ "version": "10.0.25",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/primitives": "^18.1.0",
45
45
  "@atlaskit/select": "^21.10.0",
46
- "@atlaskit/tmp-editor-statsig": "^54.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^54.4.0",
47
47
  "@atlaskit/tokens": "^11.4.0",
48
48
  "@atlaskit/tooltip": "^21.1.0",
49
49
  "@babel/runtime": "^7.0.0",
@@ -55,7 +55,7 @@
55
55
  "react-loadable": "^5.1.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "@atlaskit/editor-common": "^112.16.0",
58
+ "@atlaskit/editor-common": "^112.18.0",
59
59
  "react": "^18.2.0",
60
60
  "react-dom": "^18.2.0"
61
61
  },