@atlaskit/editor-common 135.2.0 → 136.0.0

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/afm-products/tsconfig.json +3 -0
  3. package/dist/cjs/ai-messages/ai-suggestions.js +5 -0
  4. package/dist/cjs/analytics/types/ai-suggestions-events.js +2 -0
  5. package/dist/cjs/link/utils.js +2 -3
  6. package/dist/cjs/media-inline/media-inline-image-card.js +1 -2
  7. package/dist/cjs/messages/layout.js +0 -5
  8. package/dist/cjs/monitoring/error.js +1 -1
  9. package/dist/cjs/portal/PortalBucket.js +7 -35
  10. package/dist/cjs/portal/PortalManager.js +1 -2
  11. package/dist/cjs/toolbar-flag-check.js +2 -3
  12. package/dist/cjs/ui/DropList/index.js +1 -1
  13. package/dist/cjs/ui/TableSelector/index.js +2 -7
  14. package/dist/cjs/ui/TableSelector/table-selector.js +1 -2
  15. package/dist/cjs/ui-menu/ColorPickerButton/index.js +1 -2
  16. package/dist/cjs/ui-menu/DropdownMenu/index.js +3 -12
  17. package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +2 -3
  18. package/dist/cjs/utils/document.js +3 -24
  19. package/dist/cjs/utils/index.js +0 -6
  20. package/dist/es2019/ai-messages/ai-suggestions.js +5 -0
  21. package/dist/es2019/analytics/types/ai-suggestions-events.js +2 -0
  22. package/dist/es2019/link/utils.js +2 -3
  23. package/dist/es2019/media-inline/media-inline-image-card.js +1 -2
  24. package/dist/es2019/messages/layout.js +0 -5
  25. package/dist/es2019/monitoring/error.js +1 -1
  26. package/dist/es2019/portal/PortalBucket.js +2 -26
  27. package/dist/es2019/portal/PortalManager.js +1 -2
  28. package/dist/es2019/toolbar-flag-check.js +1 -2
  29. package/dist/es2019/ui/DropList/index.js +1 -1
  30. package/dist/es2019/ui/TableSelector/index.js +2 -7
  31. package/dist/es2019/ui/TableSelector/table-selector.js +1 -2
  32. package/dist/es2019/ui-menu/ColorPickerButton/index.js +1 -2
  33. package/dist/es2019/ui-menu/DropdownMenu/index.js +11 -34
  34. package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +2 -3
  35. package/dist/es2019/utils/document.js +0 -24
  36. package/dist/es2019/utils/index.js +1 -1
  37. package/dist/esm/ai-messages/ai-suggestions.js +5 -0
  38. package/dist/esm/analytics/types/ai-suggestions-events.js +2 -0
  39. package/dist/esm/link/utils.js +2 -3
  40. package/dist/esm/media-inline/media-inline-image-card.js +1 -2
  41. package/dist/esm/messages/layout.js +0 -5
  42. package/dist/esm/monitoring/error.js +1 -1
  43. package/dist/esm/portal/PortalBucket.js +8 -36
  44. package/dist/esm/portal/PortalManager.js +1 -2
  45. package/dist/esm/toolbar-flag-check.js +2 -3
  46. package/dist/esm/ui/DropList/index.js +1 -1
  47. package/dist/esm/ui/TableSelector/index.js +2 -7
  48. package/dist/esm/ui/TableSelector/table-selector.js +1 -2
  49. package/dist/esm/ui-menu/ColorPickerButton/index.js +1 -2
  50. package/dist/esm/ui-menu/DropdownMenu/index.js +3 -12
  51. package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +2 -3
  52. package/dist/esm/utils/document.js +3 -24
  53. package/dist/esm/utils/index.js +1 -1
  54. package/dist/types/ai-messages/ai-suggestions.d.ts +5 -0
  55. package/dist/types/analytics/types/ai-suggestions-events.d.ts +2 -0
  56. package/dist/types/analytics/types/insert-events.d.ts +17 -1
  57. package/dist/types/credit-guard/types.d.ts +1 -1
  58. package/dist/types/messages/layout.d.ts +0 -5
  59. package/dist/types/toolbar-flag-check.d.ts +1 -1
  60. package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -1
  61. package/dist/types/utils/document.d.ts +0 -1
  62. package/dist/types/utils/index.d.ts +1 -1
  63. package/package.json +8 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,65 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 136.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f039487b0e531`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f039487b0e531) -
8
+ Remove the unused `bracketTyped` helper from `@atlaskit/editor-common/utils` and
9
+ `@atlaskit/editor-common/utils/document`, and the unused `layoutPlaceholder` message from
10
+ `@atlaskit/editor-common/messages/layout`. Neither has had a caller since the
11
+ `platform_editor_controls` experiment cleanup. If you import either, copy the implementation or
12
+ message into your package.
13
+
14
+ ### Minor Changes
15
+
16
+ - [`b39746d497598`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b39746d497598) -
17
+ Show "Feel free to keep editing, suggestions are on the way" in the AI suggestions thinking
18
+ messages behind platform_editor_ai_suggested_edits_reduce_cancel. Under the same experiment, size
19
+ the thinking bar to its longest rotating message so it doesn't resize between messages.
20
+ - [`8dcac7cf29ad6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8dcac7cf29ad6) -
21
+ EDITOR-10169: Add the Rovo Chat Content Reviewer analytics entry point for the
22
+ platform_editor_rovo_chat_review_cta experiment.
23
+
24
+ Track review generation outcomes for the new Rovo Chat entry point.
25
+
26
+ ### Patch Changes
27
+
28
+ - [`2177c03219c5c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2177c03219c5c) -
29
+ Check `getAICreditStatus` before more Remix buttons open Remix, showing the product's credits
30
+ content below the button when credits are blocked:
31
+
32
+ - the expand and nested expand toolbars, as `expandFloatingToolbar-remix`
33
+ - the layout toolbar, as `layoutFloatingToolbar-remix`
34
+ - the native tabs toolbar, as `nativeTabsFloatingToolbar-remix`
35
+ - the native embed toolbar, as `nativeEmbedFloatingToolbar-remix`
36
+
37
+ Adds these names and `nativeEmbedFloatingToolbar-askRovo` to the editor and Confluence credit
38
+ feature names.
39
+
40
+ - [`b2444e74978c4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b2444e74978c4) -
41
+ Make the shipped editor memory-leak reductions permanent and remove the experiment checks.
42
+ - Updated dependencies
43
+
44
+ ## 135.3.0
45
+
46
+ ### Minor Changes
47
+
48
+ - [`c13b574ab38d2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c13b574ab38d2) -
49
+ Declare the workspace dependencies used by package source and emitted types so isolated
50
+ installations can resolve them.
51
+
52
+ ### Patch Changes
53
+
54
+ - [`dc4bf5ef54cd1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dc4bf5ef54cd1) -
55
+ Remove the `control` branches of experiment `platform_editor_controls`; the editor controls
56
+ (`variant1`) experience is now permanent.
57
+ - [`5b44df5f1aa56`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5b44df5f1aa56) -
58
+ Report a `failedToInsert` analytics event (and capture the exception) when the media insertion
59
+ type cannot be determined, including whether the `mediaInline` flag is on while the schema has no
60
+ `mediaInline` node. The error is rethrown, so behaviour is unchanged.
61
+ - Updated dependencies
62
+
3
63
  ## 135.2.0
4
64
 
5
65
  ### Minor Changes
@@ -103,6 +103,9 @@
103
103
  {
104
104
  "path": "../../../linking-platform/link-picker/afm-products/tsconfig.json"
105
105
  },
106
+ {
107
+ "path": "../../../linking-platform/linking-common/afm-products/tsconfig.json"
108
+ },
106
109
  {
107
110
  "path": "../../../design-system/logo/afm-products/tsconfig.json"
108
111
  },
@@ -331,6 +331,11 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
331
331
  defaultMessage: 'This may take a few minutes',
332
332
  description: 'Loading message setting expectations that the AI review may take a few minutes'
333
333
  },
334
+ thinkingKeepEditing: {
335
+ id: 'fabric.editor.ai.suggestions.thinking.keepEditing.non-final',
336
+ defaultMessage: 'Feel free to keep editing, suggestions are on the way',
337
+ description: 'Loading message on the AI suggestions thinking bar telling the user the review is running and they can keep editing while suggestions are generated'
338
+ },
334
339
  thinkingReviewingConsistency: {
335
340
  id: 'fabric.editor.ai.suggestions.thinking.reviewingConsistency.non-final',
336
341
  defaultMessage: 'Reviewing consistency',
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.AiSuggestionsRightRailEntryPointValue = exports.AiSuggestionsRegenerationTriggerValue = exports.AiSuggestionsRegenerationOutcomeValue = exports.AiSuggestionsEntryPointValue = void 0;
7
7
  var AiSuggestionsEntryPointValue = exports.AiSuggestionsEntryPointValue = /*#__PURE__*/function (AiSuggestionsEntryPointValue) {
8
8
  AiSuggestionsEntryPointValue["PRIMARY_TOOLBAR"] = "primaryToolbar";
9
+ /** Content Reviewer quick action in the Rovo Chat editor empty state. */
10
+ AiSuggestionsEntryPointValue["ROVO_CHAT"] = "rovoChat";
9
11
  /**
10
12
  * @private
11
13
  * @deprecated Legacy entry point retained for backwards compatibility.
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "isTextAtPos", {
17
17
  }
18
18
  });
19
19
  var _getUrlForDomainInContext = require("@atlaskit/atlassian-context/get-url-for-domain-in-context");
20
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
21
20
  var _constants = require("./constants");
22
21
  var _isTextAtPos = require("./isTextAtPos");
23
22
  var _isLinkAtPos = require("./isLinkAtPos");
@@ -64,7 +63,7 @@ var getActiveLinkMark = exports.getActiveLinkMark = function getActiveLinkMark(s
64
63
  pos: pos
65
64
  } : undefined;
66
65
  }
67
- if (isEmptySelectionBeforeLink(state) && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1')) {
66
+ if (isEmptySelectionBeforeLink(state)) {
68
67
  // if user clicks right before the link, we want to show the toolbar for the link
69
68
  // but only if the link is a single character
70
69
  var _node = state.doc.nodeAt($from.pos);
@@ -73,7 +72,7 @@ var getActiveLinkMark = exports.getActiveLinkMark = function getActiveLinkMark(s
73
72
  pos: $from.pos
74
73
  } : undefined;
75
74
  }
76
- if (isEmptySelectionAfterLink(state) && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1')) {
75
+ if (isEmptySelectionAfterLink(state)) {
77
76
  // if user clicks right after the link, we want to show the toolbar for the link
78
77
  // but only if the link is a single character
79
78
  // and we return the position of the link
@@ -19,7 +19,6 @@ var _mediaClient = require("@atlaskit/media-client");
19
19
  var _mediaClientProvider = require("@atlaskit/media-client-react/media-client-provider");
20
20
  var _mediaViewerLoader = _interopRequireDefault(require("@atlaskit/media-viewer/media-viewer-loader"));
21
21
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
22
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
23
22
  var _mediaInlineCard = require("../messages/media-inline-card");
24
23
  var _constants = require("./constants");
25
24
  var _inlineImageCard = require("./inline-image-card");
@@ -223,7 +222,7 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
223
222
  // In edit mode (node content wrapper has contenteditable set to true), link redirection is disabled by default
224
223
  // We need to call "stopPropagation" here in order to prevent in editor view mode, the browser from navigating to
225
224
  // another URL if the media node is wrapped in a link mark.
226
- if (isViewOnly && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1')) {
225
+ if (isViewOnly) {
227
226
  e.preventDefault();
228
227
  }
229
228
  }, [shouldOpenMediaViewer, isViewOnly, setMediaViewerVisible]);
@@ -76,11 +76,6 @@ var toolbarMessages = exports.toolbarMessages = (0, _reactIntl.defineMessages)({
76
76
  defaultMessage: 'Layout options',
77
77
  description: "a floating toolbar radiogroup's aria label"
78
78
  },
79
- layoutPlaceholder: {
80
- id: 'fabric.editor.layout.placeholder',
81
- defaultMessage: 'Add content',
82
- description: 'Placeholder text shown inside an empty layout column, prompting the user to add content.'
83
- },
84
79
  controlslayoutPlaceholder: {
85
80
  id: 'fabric.editor.layout.controls.placeholder',
86
81
  defaultMessage: '/ to insert',
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
27
27
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
28
28
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
29
29
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
30
- var packageVersion = "135.1.0";
30
+ var packageVersion = "135.3.0";
31
31
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
32
32
  // Remove URL as it has UGC
33
33
  // Ignored via go/ees007
@@ -8,41 +8,16 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.PortalBucket = PortalBucket;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
- var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
12
11
  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); }
13
- function LegacyPortalBucket(_ref) {
14
- var id = _ref.id,
15
- portalManager = _ref.portalManager;
16
- // State to hold the current portals for this bucket
17
- var _useState = (0, _react.useState)({}),
18
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
19
- portals = _useState2[0],
20
- setPortals = _useState2[1];
21
- // Effect to register/unregister this bucket with the portal manager on mount/unmount
22
- (0, _react.useLayoutEffect)(function () {
23
- portalManager.registerBucket(id, setPortals);
24
- return function () {
25
- portalManager.unregisterBucket(id);
26
- };
27
- }, [id, portalManager]);
28
- // Memoize the portal elements to avoid unnecessary re-renders
29
- var portalElements = (0, _react.useMemo)(function () {
30
- return Object.values(portals);
31
- }, [portals]);
32
- // Render the current portal elements
33
- // @ts-ignore - TS2322 TypeScript 5.9.2 upgrade
34
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, portalElements);
35
- }
36
-
37
12
  /**
38
13
  * Portals stay in the manager; state is only a render tick. React keeps
39
14
  * hook state on both the current and alternate fiber, so storing portals
40
15
  * in state would retain removed portals until the next render.
41
16
  */
42
- function TickPortalBucket(_ref2) {
17
+ function TickPortalBucket(_ref) {
43
18
  var _portalManager$getBuc, _portalManager$getBuc2;
44
- var id = _ref2.id,
45
- portalManager = _ref2.portalManager;
19
+ var id = _ref.id,
20
+ portalManager = _ref.portalManager;
46
21
  var _useReducer = (0, _react.useReducer)(function (tick) {
47
22
  return tick + 1;
48
23
  }, 0),
@@ -71,13 +46,10 @@ function TickPortalBucket(_ref2) {
71
46
  * @param {PortalManager} props.portalManager An instance of `PortalManager` which manages the registration and unregistration of portal buckets and their content.
72
47
  * @returns {React.ReactElement} The React element(s) that are currently registered to this portal bucket.
73
48
  */
74
- function PortalBucket(_ref3) {
75
- var id = _ref3.id,
76
- portalManager = _ref3.portalManager;
77
- return (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_memory_leaks') ? /*#__PURE__*/_react.default.createElement(TickPortalBucket, {
78
- id: id,
79
- portalManager: portalManager
80
- }) : /*#__PURE__*/_react.default.createElement(LegacyPortalBucket, {
49
+ function PortalBucket(_ref2) {
50
+ var id = _ref2.id,
51
+ portalManager = _ref2.portalManager;
52
+ return /*#__PURE__*/_react.default.createElement(TickPortalBucket, {
81
53
  id: id,
82
54
  portalManager: portalManager
83
55
  });
@@ -10,7 +10,6 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
12
  var _throttle = _interopRequireDefault(require("lodash/throttle"));
13
- var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
14
13
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
14
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
15
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -207,7 +206,7 @@ var PortalManager = exports.PortalManager = /*#__PURE__*/function () {
207
206
  var _this$portalToBucketM,
208
207
  _this4 = this;
209
208
  var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
210
- if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_memory_leaks') || !this.portalToBucketMap.has(key)) {
209
+ if (!this.portalToBucketMap.has(key)) {
211
210
  this.createBucket();
212
211
  // @ts-ignore - TS2538 TypeScript 5.9.2 upgrade
213
212
  this.buckets[this.getCurrentBucket()].capacity -= 1;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.areToolbarFlagsEnabled = void 0;
7
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
8
- var areToolbarFlagsEnabled = exports.areToolbarFlagsEnabled = function areToolbarFlagsEnabled(isNewToolbarEnabled) {
9
- return Boolean((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') || isNewToolbarEnabled);
7
+ var areToolbarFlagsEnabled = exports.areToolbarFlagsEnabled = function areToolbarFlagsEnabled(_isNewToolbarEnabled) {
8
+ return true;
10
9
  };
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "135.1.0";
26
+ var packageVersion = "135.3.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -13,7 +13,6 @@ var _react2 = require("@emotion/react");
13
13
  var _bindEventListener = require("bind-event-listener");
14
14
  var _constants = require("@atlaskit/editor-shared-styles/constants");
15
15
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
16
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
17
16
  var _uiReact = require("../../ui-react");
18
17
  var _Popup = _interopRequireDefault(require("../Popup"));
19
18
  var _tableSelector = _interopRequireWildcard(require("./table-selector"));
@@ -180,9 +179,7 @@ var TableSelectorPopup = exports.TableSelectorPopup = function TableSelectorPopu
180
179
  maxRow: getMaxRow(prevSize, event.key)
181
180
  });
182
181
  });
183
- if ((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1')) {
184
- event.preventDefault();
185
- }
182
+ event.preventDefault();
186
183
  }
187
184
  if (event.key === 'ArrowRight') {
188
185
  enableKeyboardMode();
@@ -225,9 +222,7 @@ var TableSelectorPopup = exports.TableSelectorPopup = function TableSelectorPopu
225
222
  maxRow: getMaxRow(prevSize, event.key)
226
223
  });
227
224
  });
228
- if ((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1')) {
229
- event.preventDefault();
230
- }
225
+ event.preventDefault();
231
226
  }
232
227
  }, [enableKeyboardMode, setSize]);
233
228
  (0, _react.useEffect)(function () {
@@ -8,7 +8,6 @@ var _react = require("react");
8
8
  var _react2 = require("@emotion/react");
9
9
  var _reactIntl = require("react-intl");
10
10
  var _stack = require("@atlaskit/primitives/compiled/stack");
11
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
12
11
  var _messages = require("../../messages");
13
12
  var _uiReact = require("../../ui-react");
14
13
  /**
@@ -63,7 +62,7 @@ var TableSelectorButton = function TableSelectorButton(_ref) {
63
62
  if (btnRef.current) {
64
63
  if (isFocused) {
65
64
  btnRef.current.focus({
66
- preventScroll: (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') ? true : undefined
65
+ preventScroll: true
67
66
  });
68
67
  } else {
69
68
  btnRef.current.blur();
@@ -18,7 +18,6 @@ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-ex
18
18
  var _box = require("@atlaskit/primitives/box");
19
19
  var _inline = require("@atlaskit/primitives/inline");
20
20
  var _xcss = require("@atlaskit/primitives/xcss/xcss");
21
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
22
21
  var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
23
22
  var _analytics = require("../../analytics");
24
23
  var _colorPickerButton = require("../../messages/color-picker-button");
@@ -280,7 +279,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
280
279
  ref: buttonRef,
281
280
  "aria-label": title,
282
281
  "aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
283
- spacing: (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') ? 'default' : 'compact',
282
+ spacing: "default",
284
283
  onClick: togglePopup,
285
284
  onKeyDown: onKeyDown,
286
285
  "data-selected-color": props.currentColor,
@@ -25,7 +25,6 @@ var _customItem = _interopRequireDefault(require("@atlaskit/menu/custom-item"));
25
25
  var _menuGroup = _interopRequireDefault(require("@atlaskit/menu/menu-group"));
26
26
  var _section = _interopRequireDefault(require("@atlaskit/menu/section"));
27
27
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
28
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
29
28
  var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
30
29
  var _styles = require("../../styles");
31
30
  var _ToolbarArrowKeyNavigationProvider = require("../../ui-menu/ToolbarArrowKeyNavigationProvider");
@@ -35,7 +34,7 @@ var _Popup = _interopRequireDefault(require("../../ui/Popup"));
35
34
  var _ArrowKeyNavigationProvider = require("../ArrowKeyNavigationProvider");
36
35
  var _types = require("../ArrowKeyNavigationProvider/types");
37
36
  var _excluded = ["children"];
38
- var _templateObject, _templateObject2, _templateObject3;
37
+ var _templateObject, _templateObject2;
39
38
  /* eslint-disable @repo/internal/react/no-class-components */
40
39
  /**
41
40
  * @jsxRuntime classic
@@ -60,22 +59,14 @@ var focusedMenuItemStyle = (0, _react2.css)({
60
59
  });
61
60
  var buttonStyles = function buttonStyles(isActive, submenuActive) {
62
61
  if (isActive) {
63
- if ((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1')) {
64
- /**
65
- * Hack for item to imitate old dropdown-menu selected styles
66
- */
67
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
68
- return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\tposition: relative;\n\t\t\t\t&::before {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\twidth: 2px;\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tleft: 0;\n\t\t\t\t\ttop: 0;\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t\tcontent: '';\n\t\t\t\t}\n\t\t\t\t> span,\n\t\t\t\t> span:hover,\n\t\t\t\t> span:active {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t\t", ";\n\t\t\t\t}\n\t\t\t\t:focus-visible,\n\t\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\t\toutline: none;\n\t\t\t\t}\n\t\t\t"])), "var(--ds-border-selected, #1868DB)", "var(--ds-background-selected, #E9F2FE)", "var(--ds-text-selected, #1868DB)", focusedMenuItemStyle);
69
- }
70
-
71
62
  /**
72
63
  * Hack for item to imitate old dropdown-menu selected styles
73
64
  */
74
65
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
75
- return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t> span,\n\t\t\t> span:hover,\n\t\t\t> span:active {\n\t\t\t\tbackground: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-background-selected, #E9F2FE)", "var(--ds-text-selected, #1868DB)", focusedMenuItemStyle);
66
+ return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\tposition: relative;\n\t\t\t&::before {\n\t\t\t\tdisplay: block;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 2px;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 0;\n\t\t\t\ttop: 0;\n\t\t\t\tbackground: ", ";\n\t\t\t\tcontent: '';\n\t\t\t}\n\t\t\t> span,\n\t\t\t> span:hover,\n\t\t\t> span:active {\n\t\t\t\tbackground: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-border-selected, #1868DB)", "var(--ds-background-selected, #E9F2FE)", "var(--ds-text-selected, #1868DB)", focusedMenuItemStyle);
76
67
  } else {
77
68
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
78
- return (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t> span:hover[aria-disabled='false'] {\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\t", "\n\t\t\t> span[aria-disabled='true'] {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-text, #292A2E)", "var(--ds-background-neutral-subtle-hovered, #0515240F)", !submenuActive && "\n\t\t\t\t\t> span:active[aria-disabled='false'] {\n\t\t\t\t\t\tbackground-color: ".concat("var(--ds-background-neutral-subtle-pressed, #0B120E24)", ";\n\t\t\t\t\t}"), "var(--ds-text-disabled, #080F214A)", focusedMenuItemStyle); // The default focus-visible style is removed to ensure consistency across browsers
69
+ return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t> span:hover[aria-disabled='false'] {\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\t", "\n\t\t\t> span[aria-disabled='true'] {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-text, #292A2E)", "var(--ds-background-neutral-subtle-hovered, #0515240F)", !submenuActive && "\n\t\t\t\t\t> span:active[aria-disabled='false'] {\n\t\t\t\t\t\tbackground-color: ".concat("var(--ds-background-neutral-subtle-pressed, #0B120E24)", ";\n\t\t\t\t\t}"), "var(--ds-text-disabled, #080F214A)", focusedMenuItemStyle); // The default focus-visible style is removed to ensure consistency across browsers
79
70
  }
80
71
  };
81
72
  var DropListWithOutsideClickTargetRef = function DropListWithOutsideClickTargetRef(props) {
@@ -21,7 +21,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
21
21
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
22
22
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
23
  var _react = _interopRequireWildcard(require("react"));
24
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
25
24
  var _OutsideClickTargetRefContext = require("./OutsideClickTargetRefContext");
26
25
  var _ReactEditorViewContext = _interopRequireDefault(require("./ReactEditorViewContext"));
27
26
  var _excluded = ["captureClick", "closeOnTab", "handleBackspaceDeleteKeydown", "handleClickOutside", "handleEnterKeydown", "handleEscapeKeydown", "handleKeyDown"];
@@ -83,7 +82,7 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
83
82
  key: "componentDidMount",
84
83
  value: function componentDidMount() {
85
84
  if (this.props.handleClickOutside) {
86
- var options = this.props.captureClick && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') ? {
85
+ var options = this.props.captureClick ? {
87
86
  capture: true
88
87
  } : false;
89
88
  // Ignored via go/ees005
@@ -108,7 +107,7 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
108
107
  key: "componentWillUnmount",
109
108
  value: function componentWillUnmount() {
110
109
  if (this.props.handleClickOutside) {
111
- var options = this.props.captureClick && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') ? {
110
+ var options = this.props.captureClick ? {
112
111
  capture: true
113
112
  } : false;
114
113
  // Ignored via go/ees005
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.areNodesEqualIgnoreAttrs = areNodesEqualIgnoreAttrs;
8
- exports.bracketTyped = bracketTyped;
9
8
  exports.getChangedNodes = getChangedNodes;
10
9
  Object.defineProperty(exports, "getStepRange", {
11
10
  enumerable: true,
@@ -51,26 +50,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
51
50
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
52
51
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
53
52
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
54
- function bracketTyped(state) {
55
- var selection = state.selection;
56
- var _ref = selection,
57
- $cursor = _ref.$cursor,
58
- $anchor = _ref.$anchor;
59
- if (!$cursor) {
60
- return false;
61
- }
62
- var node = $cursor.nodeBefore;
63
- if (!node) {
64
- return false;
65
- }
66
- if (node.type.name === 'text' && node.text === '{') {
67
- var paragraphNode = $anchor.node();
68
- return paragraphNode.marks.length === 0 && (0, _hasDocAsParent.hasDocAsParent)($anchor);
69
- }
70
- return false;
71
- }
72
-
73
- // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
74
53
  function nodesBetweenChanged(tr, f, startPos) {
75
54
  var stepRange = (0, _getStepRange.getStepRange)(tr);
76
55
  if (!stepRange) {
@@ -78,9 +57,9 @@ function nodesBetweenChanged(tr, f, startPos) {
78
57
  }
79
58
  tr.doc.nodesBetween(stepRange.from, stepRange.to, f, startPos);
80
59
  }
81
- function getChangedNodesIn(_ref2) {
82
- var tr = _ref2.tr,
83
- doc = _ref2.doc;
60
+ function getChangedNodesIn(_ref) {
61
+ var tr = _ref.tr,
62
+ doc = _ref.doc;
84
63
  var nodes = [];
85
64
  var stepRange = (0, _getStepRange.getStepRange)(tr);
86
65
  if (!stepRange) {
@@ -124,12 +124,6 @@ Object.defineProperty(exports, "autoJoinTr", {
124
124
  return _autojoin.autoJoinTr;
125
125
  }
126
126
  });
127
- Object.defineProperty(exports, "bracketTyped", {
128
- enumerable: true,
129
- get: function get() {
130
- return _document.bracketTyped;
131
- }
132
- });
133
127
  Object.defineProperty(exports, "breakoutConsts", {
134
128
  enumerable: true,
135
129
  get: function get() {
@@ -325,6 +325,11 @@ export const aiSuggestionsMessages = defineMessages({
325
325
  defaultMessage: 'This may take a few minutes',
326
326
  description: 'Loading message setting expectations that the AI review may take a few minutes'
327
327
  },
328
+ thinkingKeepEditing: {
329
+ id: 'fabric.editor.ai.suggestions.thinking.keepEditing.non-final',
330
+ defaultMessage: 'Feel free to keep editing, suggestions are on the way',
331
+ description: 'Loading message on the AI suggestions thinking bar telling the user the review is running and they can keep editing while suggestions are generated'
332
+ },
328
333
  thinkingReviewingConsistency: {
329
334
  id: 'fabric.editor.ai.suggestions.thinking.reviewingConsistency.non-final',
330
335
  defaultMessage: 'Reviewing consistency',
@@ -1,5 +1,7 @@
1
1
  export let AiSuggestionsEntryPointValue = /*#__PURE__*/function (AiSuggestionsEntryPointValue) {
2
2
  AiSuggestionsEntryPointValue["PRIMARY_TOOLBAR"] = "primaryToolbar";
3
+ /** Content Reviewer quick action in the Rovo Chat editor empty state. */
4
+ AiSuggestionsEntryPointValue["ROVO_CHAT"] = "rovoChat";
3
5
  /**
4
6
  * @private
5
7
  * @deprecated Legacy entry point retained for backwards compatibility.
@@ -1,5 +1,4 @@
1
1
  import { getUrlForDomainInContext } from '@atlaskit/atlassian-context/get-url-for-domain-in-context';
2
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
3
2
  import { linkPreferencesPath } from './constants';
4
3
  const STAGING = 'staging';
5
4
  const PRODUCTION = 'prod';
@@ -49,7 +48,7 @@ export const getActiveLinkMark = state => {
49
48
  pos
50
49
  } : undefined;
51
50
  }
52
- if (isEmptySelectionBeforeLink(state) && editorExperiment('platform_editor_controls', 'variant1')) {
51
+ if (isEmptySelectionBeforeLink(state)) {
53
52
  // if user clicks right before the link, we want to show the toolbar for the link
54
53
  // but only if the link is a single character
55
54
  const node = state.doc.nodeAt($from.pos);
@@ -58,7 +57,7 @@ export const getActiveLinkMark = state => {
58
57
  pos: $from.pos
59
58
  } : undefined;
60
59
  }
61
- if (isEmptySelectionAfterLink(state) && editorExperiment('platform_editor_controls', 'variant1')) {
60
+ if (isEmptySelectionAfterLink(state)) {
62
61
  // if user clicks right after the link, we want to show the toolbar for the link
63
62
  // but only if the link is a single character
64
63
  // and we return the position of the link
@@ -16,7 +16,6 @@ import { FileFetcherError } from '@atlaskit/media-client';
16
16
  import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
17
17
  import MediaViewer from '@atlaskit/media-viewer/media-viewer-loader';
18
18
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
19
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
20
19
  import { messages } from '../messages/media-inline-card';
21
20
  import { referenceHeights } from './constants';
22
21
  import { InlineImageCard } from './inline-image-card';
@@ -196,7 +195,7 @@ export const MediaInlineImageCardInternal = ({
196
195
  // In edit mode (node content wrapper has contenteditable set to true), link redirection is disabled by default
197
196
  // We need to call "stopPropagation" here in order to prevent in editor view mode, the browser from navigating to
198
197
  // another URL if the media node is wrapped in a link mark.
199
- if (isViewOnly && editorExperiment('platform_editor_controls', 'variant1')) {
198
+ if (isViewOnly) {
200
199
  e.preventDefault();
201
200
  }
202
201
  }, [shouldOpenMediaViewer, isViewOnly, setMediaViewerVisible]);
@@ -70,11 +70,6 @@ export const toolbarMessages = defineMessages({
70
70
  defaultMessage: 'Layout options',
71
71
  description: "a floating toolbar radiogroup's aria label"
72
72
  },
73
- layoutPlaceholder: {
74
- id: 'fabric.editor.layout.placeholder',
75
- defaultMessage: 'Add content',
76
- description: 'Placeholder text shown inside an empty layout column, prompting the user to add content.'
77
- },
78
73
  controlslayoutPlaceholder: {
79
74
  id: 'fabric.editor.layout.controls.placeholder',
80
75
  defaultMessage: '/ to insert',
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
13
13
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
14
14
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
15
15
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
16
- const packageVersion = "135.1.0";
16
+ const packageVersion = "135.3.0";
17
17
  const sanitiseSentryEvents = (data, _hint) => {
18
18
  // Remove URL as it has UGC
19
19
  // Ignored via go/ees007
@@ -1,25 +1,4 @@
1
- import React, { useCallback, useLayoutEffect, useMemo, useReducer, useState } from 'react';
2
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
3
- function LegacyPortalBucket({
4
- id,
5
- portalManager
6
- }) {
7
- // State to hold the current portals for this bucket
8
- const [portals, setPortals] = useState({});
9
- // Effect to register/unregister this bucket with the portal manager on mount/unmount
10
- useLayoutEffect(() => {
11
- portalManager.registerBucket(id, setPortals);
12
- return () => {
13
- portalManager.unregisterBucket(id);
14
- };
15
- }, [id, portalManager]);
16
- // Memoize the portal elements to avoid unnecessary re-renders
17
- const portalElements = useMemo(() => Object.values(portals), [portals]);
18
- // Render the current portal elements
19
- // @ts-ignore - TS2322 TypeScript 5.9.2 upgrade
20
- return /*#__PURE__*/React.createElement(React.Fragment, null, portalElements);
21
- }
22
-
1
+ import React, { useCallback, useLayoutEffect, useReducer } from 'react';
23
2
  /**
24
3
  * Portals stay in the manager; state is only a render tick. React keeps
25
4
  * hook state on both the current and alternate fiber, so storing portals
@@ -56,10 +35,7 @@ export function PortalBucket({
56
35
  id,
57
36
  portalManager
58
37
  }) {
59
- return isExperimentEnabled('platform_editor_reduce_memory_leaks') ? /*#__PURE__*/React.createElement(TickPortalBucket, {
60
- id: id,
61
- portalManager: portalManager
62
- }) : /*#__PURE__*/React.createElement(LegacyPortalBucket, {
38
+ return /*#__PURE__*/React.createElement(TickPortalBucket, {
63
39
  id: id,
64
40
  portalManager: portalManager
65
41
  });
@@ -1,6 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import throttle from 'lodash/throttle';
3
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
3
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  const DEFAULT_INITIAL_BUCKETS = 50;
6
5
  const DEFAULT_MAX_BUCKET_CAPACITY = 50;
@@ -163,7 +162,7 @@ export class PortalManager {
163
162
  }
164
163
  registerPortal(key, portal, immediate = false) {
165
164
  var _this$portalToBucketM;
166
- if (!isExperimentEnabled('platform_editor_reduce_memory_leaks') || !this.portalToBucketMap.has(key)) {
165
+ if (!this.portalToBucketMap.has(key)) {
167
166
  this.createBucket();
168
167
  // @ts-ignore - TS2538 TypeScript 5.9.2 upgrade
169
168
  this.buckets[this.getCurrentBucket()].capacity -= 1;
@@ -1,2 +1 @@
1
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
2
- export const areToolbarFlagsEnabled = isNewToolbarEnabled => Boolean(editorExperiment('platform_editor_controls', 'variant1') || isNewToolbarEnabled);
1
+ export const areToolbarFlagsEnabled = _isNewToolbarEnabled => true;