@atlaskit/editor-plugin-floating-toolbar 8.2.17 → 8.2.19

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-floating-toolbar
2
2
 
3
+ ## 8.2.19
4
+
5
+ ### Patch Changes
6
+
7
+ - [`24092f8832d34`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/24092f8832d34) -
8
+ [EDITOR-3321] Clean up platform_editor_update_modal_close_button
9
+ - Updated dependencies
10
+
11
+ ## 8.2.18
12
+
13
+ ### Patch Changes
14
+
15
+ - [`695e971dbebd6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/695e971dbebd6) -
16
+ FG cleanup platform_editor_block_menu_hide_floating_toolbar
17
+ - Updated dependencies
18
+
3
19
  ## 8.2.17
4
20
 
5
21
  ### Patch Changes
@@ -258,7 +258,7 @@ function ContentComponent(_ref5) {
258
258
  return null;
259
259
  }
260
260
  var userIntentEnabled = Boolean((pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.userIntent) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_user_intent', 'isEnabled', true));
261
- if (((userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'dragging' || (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'blockMenuOpen' && (0, _expValEquals.expValEquals)('platform_editor_block_menu', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_block_menu_hide_floating_toolbar')) && !userIntentEnabled) {
261
+ if (((userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'dragging' || (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'blockMenuOpen' && (0, _expValEquals.expValEquals)('platform_editor_block_menu', 'isEnabled', true)) && !userIntentEnabled) {
262
262
  return null;
263
263
  }
264
264
  if (userIntentState !== null && userIntentState !== void 0 && userIntentState.currentUserIntent && SUPPRESS_TOOLBAR_USER_INTENTS.includes(userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) && userIntentEnabled) {
@@ -13,7 +13,6 @@ var _new = _interopRequireDefault(require("@atlaskit/button/new"));
13
13
  var _checkbox = require("@atlaskit/checkbox");
14
14
  var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
15
15
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _compiled = require("@atlaskit/primitives/compiled");
18
17
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
19
18
  var CheckboxModal = exports.CheckboxModal = function CheckboxModal(props) {
@@ -63,7 +62,7 @@ var CheckboxModal = exports.CheckboxModal = function CheckboxModal(props) {
63
62
  onClose: onClose,
64
63
  testId: testId
65
64
  }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, {
66
- hasCloseButton: (0, _platformFeatureFlags.fg)('platform_editor_update_modal_close_button')
65
+ hasCloseButton: true
67
66
  }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, {
68
67
  appearance: "warning"
69
68
  }, heading)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
@@ -10,7 +10,6 @@ var _react = _interopRequireDefault(require("react"));
10
10
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
11
11
  var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
12
12
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _compiled = require("@atlaskit/primitives/compiled");
15
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
16
15
  var SimpleModal = exports.SimpleModal = function SimpleModal(props) {
@@ -26,7 +25,7 @@ var SimpleModal = exports.SimpleModal = function SimpleModal(props) {
26
25
  onClose: onClose,
27
26
  testId: testId
28
27
  }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, {
29
- hasCloseButton: (0, _platformFeatureFlags.fg)('platform_editor_update_modal_close_button')
28
+ hasCloseButton: true
30
29
  }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, {
31
30
  appearance: "warning"
32
31
  }, heading)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
@@ -247,7 +247,7 @@ export function ContentComponent({
247
247
  return null;
248
248
  }
249
249
  const userIntentEnabled = Boolean((pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.userIntent) && expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true));
250
- if (((userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'dragging' || (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'blockMenuOpen' && expValEquals('platform_editor_block_menu', 'isEnabled', true) && fg('platform_editor_block_menu_hide_floating_toolbar')) && !userIntentEnabled) {
250
+ if (((userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'dragging' || (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'blockMenuOpen' && expValEquals('platform_editor_block_menu', 'isEnabled', true)) && !userIntentEnabled) {
251
251
  return null;
252
252
  }
253
253
  if (userIntentState !== null && userIntentState !== void 0 && userIntentState.currentUserIntent && SUPPRESS_TOOLBAR_USER_INTENTS.includes(userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) && userIntentEnabled) {
@@ -4,7 +4,6 @@ import Button from '@atlaskit/button/new';
4
4
  import { Checkbox } from '@atlaskit/checkbox';
5
5
  import { messages } from '@atlaskit/editor-common/floating-toolbar';
6
6
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { Text } from '@atlaskit/primitives/compiled';
9
8
  export const CheckboxModal = props => {
10
9
  var _options$getChildrenI;
@@ -54,7 +53,7 @@ export const CheckboxModal = props => {
54
53
  onClose: onClose,
55
54
  testId: testId
56
55
  }, /*#__PURE__*/React.createElement(ModalHeader, {
57
- hasCloseButton: fg('platform_editor_update_modal_close_button')
56
+ hasCloseButton: true
58
57
  }, /*#__PURE__*/React.createElement(ModalTitle, {
59
58
  appearance: "warning"
60
59
  }, heading)), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Text, {
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import Button from '@atlaskit/button/new';
3
3
  import { messages } from '@atlaskit/editor-common/floating-toolbar';
4
4
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { Text } from '@atlaskit/primitives/compiled';
7
6
  export const SimpleModal = props => {
8
7
  const {
@@ -21,7 +20,7 @@ export const SimpleModal = props => {
21
20
  onClose: onClose,
22
21
  testId: testId
23
22
  }, /*#__PURE__*/React.createElement(ModalHeader, {
24
- hasCloseButton: fg('platform_editor_update_modal_close_button')
23
+ hasCloseButton: true
25
24
  }, /*#__PURE__*/React.createElement(ModalTitle, {
26
25
  appearance: "warning"
27
26
  }, heading)), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Text, {
@@ -248,7 +248,7 @@ export function ContentComponent(_ref5) {
248
248
  return null;
249
249
  }
250
250
  var userIntentEnabled = Boolean((pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.userIntent) && expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true));
251
- if (((userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'dragging' || (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'blockMenuOpen' && expValEquals('platform_editor_block_menu', 'isEnabled', true) && fg('platform_editor_block_menu_hide_floating_toolbar')) && !userIntentEnabled) {
251
+ if (((userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'dragging' || (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'blockMenuOpen' && expValEquals('platform_editor_block_menu', 'isEnabled', true)) && !userIntentEnabled) {
252
252
  return null;
253
253
  }
254
254
  if (userIntentState !== null && userIntentState !== void 0 && userIntentState.currentUserIntent && SUPPRESS_TOOLBAR_USER_INTENTS.includes(userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) && userIntentEnabled) {
@@ -5,7 +5,6 @@ import Button from '@atlaskit/button/new';
5
5
  import { Checkbox } from '@atlaskit/checkbox';
6
6
  import { messages } from '@atlaskit/editor-common/floating-toolbar';
7
7
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { Text } from '@atlaskit/primitives/compiled';
10
9
  export var CheckboxModal = function CheckboxModal(props) {
11
10
  var _options$getChildrenI;
@@ -54,7 +53,7 @@ export var CheckboxModal = function CheckboxModal(props) {
54
53
  onClose: onClose,
55
54
  testId: testId
56
55
  }, /*#__PURE__*/React.createElement(ModalHeader, {
57
- hasCloseButton: fg('platform_editor_update_modal_close_button')
56
+ hasCloseButton: true
58
57
  }, /*#__PURE__*/React.createElement(ModalTitle, {
59
58
  appearance: "warning"
60
59
  }, heading)), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Text, {
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import Button from '@atlaskit/button/new';
3
3
  import { messages } from '@atlaskit/editor-common/floating-toolbar';
4
4
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { Text } from '@atlaskit/primitives/compiled';
7
6
  export var SimpleModal = function SimpleModal(props) {
8
7
  var onConfirm = props.onConfirm,
@@ -17,7 +16,7 @@ export var SimpleModal = function SimpleModal(props) {
17
16
  onClose: onClose,
18
17
  testId: testId
19
18
  }, /*#__PURE__*/React.createElement(ModalHeader, {
20
- hasCloseButton: fg('platform_editor_update_modal_close_button')
19
+ hasCloseButton: true
21
20
  }, /*#__PURE__*/React.createElement(ModalTitle, {
22
21
  appearance: "warning"
23
22
  }, heading)), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Text, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "8.2.17",
3
+ "version": "8.2.19",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,20 +34,20 @@
34
34
  "@atlaskit/editor-plugin-emoji": "^7.6.0",
35
35
  "@atlaskit/editor-plugin-extension": "^9.2.0",
36
36
  "@atlaskit/editor-plugin-interaction": "^10.0.0",
37
- "@atlaskit/editor-plugin-table": "^15.3.0",
37
+ "@atlaskit/editor-plugin-table": "^15.4.0",
38
38
  "@atlaskit/editor-plugin-user-intent": "^4.0.0",
39
39
  "@atlaskit/editor-prosemirror": "7.0.0",
40
- "@atlaskit/emoji": "^69.7.0",
40
+ "@atlaskit/emoji": "^69.8.0",
41
41
  "@atlaskit/icon": "^29.0.0",
42
42
  "@atlaskit/menu": "^8.4.0",
43
- "@atlaskit/modal-dialog": "^14.6.0",
43
+ "@atlaskit/modal-dialog": "^14.7.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
- "@atlaskit/primitives": "^16.1.0",
46
- "@atlaskit/select": "^21.3.0",
45
+ "@atlaskit/primitives": "^16.2.0",
46
+ "@atlaskit/select": "^21.4.0",
47
47
  "@atlaskit/theme": "^21.0.0",
48
- "@atlaskit/tmp-editor-statsig": "^13.35.0",
49
- "@atlaskit/tokens": "^8.0.0",
50
- "@atlaskit/tooltip": "^20.8.0",
48
+ "@atlaskit/tmp-editor-statsig": "^13.42.0",
49
+ "@atlaskit/tokens": "^8.2.0",
50
+ "@atlaskit/tooltip": "^20.10.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1",
53
53
  "bind-event-listener": "^3.0.0",
@@ -57,7 +57,7 @@
57
57
  "react-loadable": "^5.1.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atlaskit/editor-common": "^110.27.0",
60
+ "@atlaskit/editor-common": "^110.34.0",
61
61
  "react": "^18.2.0",
62
62
  "react-dom": "^18.2.0"
63
63
  },
@@ -119,18 +119,12 @@
119
119
  "platform_editor_user_intent_plugin": {
120
120
  "type": "boolean"
121
121
  },
122
- "platform_editor_block_menu_hide_floating_toolbar": {
123
- "type": "boolean"
124
- },
125
122
  "platform_editor_fix_confirm_table_removal": {
126
123
  "type": "boolean"
127
124
  },
128
125
  "platform_editor_a11y_add_role_to_popup": {
129
126
  "type": "boolean"
130
127
  },
131
- "platform_editor_update_modal_close_button": {
132
- "type": "boolean"
133
- },
134
128
  "platform_editor_toolbar_aifc_user_intent_fix": {
135
129
  "type": "boolean"
136
130
  }