@atlaskit/editor-plugin-floating-toolbar 8.2.3 → 8.2.4

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,15 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 8.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ef001bf65d48f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef001bf65d48f) -
8
+ Remove usage of `platform_editor_toolbar_aifc` inside editor packages - instead rely on checking
9
+ for new toolbar plugin option, make `enableNewToolbarExperience` mandatory for consumers to opt in
10
+ to new toolbar experience
11
+ - Updated dependencies
12
+
3
13
  ## 8.2.3
4
14
 
5
15
  ### Patch Changes
@@ -266,7 +266,7 @@ function ContentComponent(_ref5) {
266
266
  node = configWithNodeInfo.node;
267
267
 
268
268
  // When the new inline editor-toolbar is enabled, suppress floating toolbar for text selections.
269
- if (Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true)) {
269
+ if (Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar)) {
270
270
  var selection = editorView.state.selection;
271
271
  var isCellSelection = '$anchorCell' in selection && !selection.empty;
272
272
  var isTextSelected = selection instanceof _state.TextSelection && !selection.empty;
@@ -60,7 +60,9 @@ var Dropdown = /*#__PURE__*/(0, _react.memo)(function (props) {
60
60
  return (0, _react2.jsx)("div", {
61
61
  css: menuContainerStyles,
62
62
  role: "menu"
63
- }, items.filter(function (item) {
63
+ }, items
64
+ // @ts-ignore
65
+ .filter(function (item) {
64
66
  return item && (!('hidden' in item) || !item.hidden);
65
67
  }).map(function (item, idx) {
66
68
  if (!('type' in item)) {
@@ -156,9 +156,7 @@ var EmojiPickerButton = exports.EmojiPickerButton = function EmojiPickerButton(p
156
156
  };
157
157
  var title = props.title || '';
158
158
  return (0, _react2.jsx)("div", {
159
- css:
160
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
161
- (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? emojiPickerButtonWrapperVisualRefresh : emojiPickerButtonWrapper
159
+ css: (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? emojiPickerButtonWrapperVisualRefresh : emojiPickerButtonWrapper
162
160
  }, (0, _react2.jsx)(_tooltip.default, {
163
161
  content: title,
164
162
  position: "top"
@@ -258,7 +258,7 @@ export function ContentComponent({
258
258
  } = configWithNodeInfo;
259
259
 
260
260
  // When the new inline editor-toolbar is enabled, suppress floating toolbar for text selections.
261
- if (Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true)) {
261
+ if (Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar)) {
262
262
  const selection = editorView.state.selection;
263
263
  const isCellSelection = '$anchorCell' in selection && !selection.empty;
264
264
  const isTextSelected = selection instanceof TextSelection && !selection.empty;
@@ -54,7 +54,9 @@ const Dropdown = /*#__PURE__*/memo(props => {
54
54
  return jsx("div", {
55
55
  css: menuContainerStyles,
56
56
  role: "menu"
57
- }, items.filter(item => item && (!('hidden' in item) || !item.hidden)).map((item, idx) => {
57
+ }, items
58
+ // @ts-ignore
59
+ .filter(item => item && (!('hidden' in item) || !item.hidden)).map((item, idx) => {
58
60
  if (!('type' in item)) {
59
61
  return jsx(DropdownMenuItem
60
62
  // Ignored via go/ees005
@@ -141,9 +141,7 @@ export const EmojiPickerButton = props => {
141
141
  };
142
142
  const title = props.title || '';
143
143
  return jsx("div", {
144
- css:
145
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
146
- fg('platform-visual-refresh-icons') ? emojiPickerButtonWrapperVisualRefresh : emojiPickerButtonWrapper
144
+ css: fg('platform-visual-refresh-icons') ? emojiPickerButtonWrapperVisualRefresh : emojiPickerButtonWrapper
147
145
  }, jsx(Tooltip, {
148
146
  content: title,
149
147
  position: "top"
@@ -257,7 +257,7 @@ export function ContentComponent(_ref5) {
257
257
  node = configWithNodeInfo.node;
258
258
 
259
259
  // When the new inline editor-toolbar is enabled, suppress floating toolbar for text selections.
260
- if (Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true)) {
260
+ if (Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar)) {
261
261
  var selection = editorView.state.selection;
262
262
  var isCellSelection = '$anchorCell' in selection && !selection.empty;
263
263
  var isTextSelected = selection instanceof TextSelection && !selection.empty;
@@ -53,7 +53,9 @@ var Dropdown = /*#__PURE__*/memo(function (props) {
53
53
  return jsx("div", {
54
54
  css: menuContainerStyles,
55
55
  role: "menu"
56
- }, items.filter(function (item) {
56
+ }, items
57
+ // @ts-ignore
58
+ .filter(function (item) {
57
59
  return item && (!('hidden' in item) || !item.hidden);
58
60
  }).map(function (item, idx) {
59
61
  if (!('type' in item)) {
@@ -147,9 +147,7 @@ export var EmojiPickerButton = function EmojiPickerButton(props) {
147
147
  };
148
148
  var title = props.title || '';
149
149
  return jsx("div", {
150
- css:
151
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
152
- fg('platform-visual-refresh-icons') ? emojiPickerButtonWrapperVisualRefresh : emojiPickerButtonWrapper
150
+ css: fg('platform-visual-refresh-icons') ? emojiPickerButtonWrapperVisualRefresh : emojiPickerButtonWrapper
153
151
  }, jsx(Tooltip, {
154
152
  content: title,
155
153
  position: "top"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "8.2.3",
3
+ "version": "8.2.4",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,9 +29,9 @@
29
29
  "@atlaskit/editor-plugin-context-panel": "^8.0.0",
30
30
  "@atlaskit/editor-plugin-copy-button": "^6.0.0",
31
31
  "@atlaskit/editor-plugin-decorations": "^6.1.0",
32
- "@atlaskit/editor-plugin-editor-disabled": "^6.0.0",
32
+ "@atlaskit/editor-plugin-editor-disabled": "^6.1.0",
33
33
  "@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
34
- "@atlaskit/editor-plugin-emoji": "^7.1.0",
34
+ "@atlaskit/editor-plugin-emoji": "^7.2.0",
35
35
  "@atlaskit/editor-plugin-extension": "^9.0.0",
36
36
  "@atlaskit/editor-plugin-interaction": "^8.0.0",
37
37
  "@atlaskit/editor-plugin-table": "^15.0.0",
@@ -40,12 +40,12 @@
40
40
  "@atlaskit/emoji": "^69.5.0",
41
41
  "@atlaskit/icon": "^28.5.0",
42
42
  "@atlaskit/menu": "^8.4.0",
43
- "@atlaskit/modal-dialog": "^14.4.0",
43
+ "@atlaskit/modal-dialog": "^14.5.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/primitives": "^14.15.0",
46
46
  "@atlaskit/select": "^21.3.0",
47
47
  "@atlaskit/theme": "^21.0.0",
48
- "@atlaskit/tmp-editor-statsig": "^13.5.0",
48
+ "@atlaskit/tmp-editor-statsig": "^13.10.0",
49
49
  "@atlaskit/tokens": "^6.4.0",
50
50
  "@atlaskit/tooltip": "^20.5.0",
51
51
  "@babel/runtime": "^7.0.0",
@@ -57,7 +57,7 @@
57
57
  "react-loadable": "^5.1.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atlaskit/editor-common": "^110.7.0",
60
+ "@atlaskit/editor-common": "^110.10.0",
61
61
  "react": "^18.2.0",
62
62
  "react-dom": "^18.2.0"
63
63
  },