@atlaskit/editor-common 111.15.0 → 111.16.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 (36) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/analytics/types/enums.js +1 -0
  3. package/dist/cjs/extensions/manifest-helpers.js +3 -1
  4. package/dist/cjs/extensions.js +12 -0
  5. package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +16 -0
  6. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +8 -1
  7. package/dist/cjs/monitoring/error.js +1 -1
  8. package/dist/cjs/ui/DropList/index.js +1 -1
  9. package/dist/cjs/user-intent/UserIntentPopupWrapper.js +2 -3
  10. package/dist/es2019/analytics/types/enums.js +1 -0
  11. package/dist/es2019/extensions/manifest-helpers.js +2 -0
  12. package/dist/es2019/extensions.js +1 -1
  13. package/dist/es2019/link/LinkPicker/EditorLinkPicker/index.js +16 -0
  14. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +8 -1
  15. package/dist/es2019/monitoring/error.js +1 -1
  16. package/dist/es2019/ui/DropList/index.js +1 -1
  17. package/dist/es2019/user-intent/UserIntentPopupWrapper.js +2 -3
  18. package/dist/esm/analytics/types/enums.js +1 -0
  19. package/dist/esm/extensions/manifest-helpers.js +2 -0
  20. package/dist/esm/extensions.js +1 -1
  21. package/dist/esm/link/LinkPicker/EditorLinkPicker/index.js +16 -0
  22. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +8 -1
  23. package/dist/esm/monitoring/error.js +1 -1
  24. package/dist/esm/ui/DropList/index.js +1 -1
  25. package/dist/esm/user-intent/UserIntentPopupWrapper.js +2 -3
  26. package/dist/types/analytics/types/enums.d.ts +2 -1
  27. package/dist/types/analytics/types/insert-events.d.ts +2 -2
  28. package/dist/types/extensions/manifest-helpers.d.ts +2 -0
  29. package/dist/types/extensions.d.ts +1 -1
  30. package/dist/types/provider-factory/quick-insert-provider.d.ts +1 -1
  31. package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
  32. package/dist/types-ts4.5/analytics/types/insert-events.d.ts +2 -2
  33. package/dist/types-ts4.5/extensions/manifest-helpers.d.ts +2 -0
  34. package/dist/types-ts4.5/extensions.d.ts +1 -1
  35. package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +1 -1
  36. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 111.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8fb68ee0471cc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8fb68ee0471cc) -
8
+ Add analytic event input method when selecting from Insert Element Browser.
9
+
10
+ ### Patch Changes
11
+
12
+ - [`954a1eed1f43b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/954a1eed1f43b) -
13
+ [A11Y-35924] wrap LinkPicker in focus lock to return focus to trigger after escaping Link dialog
14
+ - Updated dependencies
15
+
16
+ ## 111.15.1
17
+
18
+ ### Patch Changes
19
+
20
+ - [`7ef3027df8198`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7ef3027df8198) -
21
+ remove platform_editor_lovability_user_intent experiment
22
+ - Updated dependencies
23
+
3
24
  ## 111.15.0
4
25
 
5
26
  ### Minor Changes
@@ -264,6 +264,7 @@ var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
264
264
  INPUT_METHOD["SYNCED_BLOCK_TB"] = "syncedBlockToolbar";
265
265
  INPUT_METHOD["BLOCK_MENU"] = "blockMenu";
266
266
  INPUT_METHOD["SMART_LINK"] = "smartLink";
267
+ INPUT_METHOD["ELEMENT_BROWSER"] = "elementBrowser";
267
268
  return INPUT_METHOD;
268
269
  }({});
269
270
  var INSERT_MEDIA_VIA = exports.INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.FORGE_EXTENSION_TYPE = void 0;
7
+ exports.NATIVE_EMBED_EXTENSION_TYPE = exports.NATIVE_EMBED_EXTENSION_KEY = exports.FORGE_EXTENSION_TYPE = void 0;
8
8
  exports.buildAction = buildAction;
9
9
  exports.buildExtensionKeyAndNodeKey = void 0;
10
10
  exports.buildNode = buildNode;
@@ -16,6 +16,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
16
16
  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; }
17
17
  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; }
18
18
  var FORGE_EXTENSION_TYPE = exports.FORGE_EXTENSION_TYPE = 'com.atlassian.ecosystem';
19
+ var NATIVE_EMBED_EXTENSION_TYPE = exports.NATIVE_EMBED_EXTENSION_TYPE = 'com.atlassian.native-embeds';
20
+ var NATIVE_EMBED_EXTENSION_KEY = exports.NATIVE_EMBED_EXTENSION_KEY = 'native-embed';
19
21
  var getExtensionKeyAndNodeKey = exports.getExtensionKeyAndNodeKey = function getExtensionKeyAndNodeKey(extensionKey, extensionType) {
20
22
  // Forge macro extensionKey has a user generated string, so splitting on
21
23
  // a colon is unstable for their particular use case. They only have one
@@ -10,6 +10,18 @@ Object.defineProperty(exports, "DefaultExtensionProvider", {
10
10
  return _defaultExtensionProvider.default;
11
11
  }
12
12
  });
13
+ Object.defineProperty(exports, "NATIVE_EMBED_EXTENSION_KEY", {
14
+ enumerable: true,
15
+ get: function get() {
16
+ return _manifestHelpers.NATIVE_EMBED_EXTENSION_KEY;
17
+ }
18
+ });
19
+ Object.defineProperty(exports, "NATIVE_EMBED_EXTENSION_TYPE", {
20
+ enumerable: true,
21
+ get: function get() {
22
+ return _manifestHelpers.NATIVE_EMBED_EXTENSION_TYPE;
23
+ }
24
+ });
13
25
  Object.defineProperty(exports, "buildMenuItem", {
14
26
  enumerable: true,
15
27
  get: function get() {
@@ -9,8 +9,10 @@ exports.EditorLinkPicker = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
+ var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
12
13
  var _AnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/AnalyticsContext"));
13
14
  var _lazy = require("@atlaskit/link-picker/lazy");
15
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
14
16
  var _utils = require("../../../utils");
15
17
  var _useEscapeClickaway = require("./useEscapeClickaway");
16
18
  var _excluded = ["view", "onCancel", "invokeMethod", "editorAppearance", "onClose", "onEscapeCallback", "onClickAwayCallback"];
@@ -74,6 +76,20 @@ var EditorLinkPicker = exports.EditorLinkPicker = function EditorLinkPicker(_ref
74
76
  location: analyticsEditorAppearance
75
77
  };
76
78
  }, [invokeMethod, analyticsEditorAppearance]);
79
+ if ((0, _expValEquals.expValEquals)('platform_editor_a11y_escape_link_dialog', 'isEnabled', true)) {
80
+ return /*#__PURE__*/_react.default.createElement("div", {
81
+ ref: ref
82
+ }, /*#__PURE__*/_react.default.createElement(_AnalyticsContext.default, {
83
+ data: analyticsData
84
+ }, /*#__PURE__*/_react.default.createElement(_reactFocusLock.default, {
85
+ returnFocus: true
86
+ }, /*#__PURE__*/_react.default.createElement(_lazy.LazyLinkPicker
87
+ // Ignored via go/ees005
88
+ // eslint-disable-next-line react/jsx-props-no-spreading
89
+ , (0, _extends2.default)({}, restProps, {
90
+ onCancel: onEscape
91
+ })))));
92
+ }
77
93
  return /*#__PURE__*/_react.default.createElement("div", {
78
94
  ref: ref
79
95
  }, /*#__PURE__*/_react.default.createElement(_AnalyticsContext.default, {
@@ -20,6 +20,7 @@ var _react = _interopRequireWildcard(require("react"));
20
20
  var _react2 = require("@emotion/react");
21
21
  var _debounce = _interopRequireDefault(require("lodash/debounce"));
22
22
  var _reactDom = require("react-dom");
23
+ var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
23
24
  var _reactIntlNext = require("react-intl-next");
24
25
  var _adfSchema = require("@atlaskit/adf-schema");
25
26
  var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
@@ -885,7 +886,7 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
885
886
  // for details: https://a11y-internal.atlassian.net/browse/AK-740
886
887
  var screenReaderText = browser.safari && this.getScreenReaderText();
887
888
  var containerWidth = (0, _platformFeatureFlags.fg)('platform_editor_link_picker_width_fix') ? _ToolbarComponents.narrowContainerWidth : !!activityProvider && _ToolbarComponents.containerWithProvider;
888
- return (0, _react2.jsx)("div", {
889
+ var hyperlinkElement = (0, _react2.jsx)("div", {
889
890
  "aria-label": (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? formatMessage(messages.hyperlinkAriaLabel) : 'Hyperlink Edit'
890
891
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
891
892
  ,
@@ -987,6 +988,12 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
987
988
  onMouseEnter: this.handleMouseEnterResultItem,
988
989
  onMouseLeave: this.handleMouseLeaveResultItem
989
990
  })));
991
+ if ((0, _expValEquals.expValEquals)('platform_editor_a11y_escape_link_dialog', 'isEnabled', true)) {
992
+ return (0, _react2.jsx)(_reactFocusLock.default, {
993
+ returnFocus: true
994
+ }, hyperlinkElement);
995
+ }
996
+ return hyperlinkElement;
990
997
  }
991
998
  }]);
992
999
  }(_react.PureComponent);
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  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); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "111.14.3";
22
+ var packageVersion = "111.15.1";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "111.14.3";
27
+ var packageVersion = "111.15.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.UserIntentPopupWrapper = void 0;
7
7
  var _react = require("react");
8
8
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
9
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
10
9
  /**
11
10
  *
12
11
  * A wrapper for popups to signal popupOpen user intent
@@ -18,10 +17,10 @@ var UserIntentPopupWrapper = exports.UserIntentPopupWrapper = function UserInten
18
17
  api = _ref.api;
19
18
  (0, _react.useEffect)(function () {
20
19
  var _api$userIntent;
21
- api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 ? void 0 : _api$userIntent.commands.setCurrentUserIntent((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_user_intent', 'isEnabled', true) ? userIntent : 'popupOpen'));
20
+ api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 ? void 0 : _api$userIntent.commands.setCurrentUserIntent(userIntent));
22
21
  return function () {
23
22
  var _api$userIntent2;
24
- if (!(0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_user_intent', 'isEnabled', true) || userIntent === (api === null || api === void 0 || (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 || (_api$userIntent2 = _api$userIntent2.sharedState.currentState()) === null || _api$userIntent2 === void 0 ? void 0 : _api$userIntent2.currentUserIntent)) {
23
+ if (userIntent === (api === null || api === void 0 || (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 || (_api$userIntent2 = _api$userIntent2.sharedState.currentState()) === null || _api$userIntent2 === void 0 ? void 0 : _api$userIntent2.currentUserIntent)) {
25
24
  if ((0, _platformFeatureFlags.fg)('platform_editor_fix_popup_user_intent')) {
26
25
  // Defer the reset to avoid interfering with ongoing ProseMirror transactions
27
26
  // This fixes a race condition where cleanup happens during a transaction
@@ -258,6 +258,7 @@ export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
258
258
  INPUT_METHOD["SYNCED_BLOCK_TB"] = "syncedBlockToolbar";
259
259
  INPUT_METHOD["BLOCK_MENU"] = "blockMenu";
260
260
  INPUT_METHOD["SMART_LINK"] = "smartLink";
261
+ INPUT_METHOD["ELEMENT_BROWSER"] = "elementBrowser";
261
262
  return INPUT_METHOD;
262
263
  }({});
263
264
  export let INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
@@ -1,4 +1,6 @@
1
1
  export const FORGE_EXTENSION_TYPE = 'com.atlassian.ecosystem';
2
+ export const NATIVE_EMBED_EXTENSION_TYPE = 'com.atlassian.native-embeds';
3
+ export const NATIVE_EMBED_EXTENSION_KEY = 'native-embed';
2
4
  export const getExtensionKeyAndNodeKey = (extensionKey, extensionType) => {
3
5
  // Forge macro extensionKey has a user generated string, so splitting on
4
6
  // a colon is unstable for their particular use case. They only have one
@@ -5,7 +5,7 @@ export { isFieldset, isTabGroup, isTabField, isExpand, isDateRange } from './ext
5
5
  export { createAutoConverterRunner, getExtensionAutoConvertersFromProvider, getQuickInsertItemsFromModule, getContextualToolbarItemsFromModule, buildMenuItem } from './extensions/module-helpers';
6
6
  export { default as DefaultExtensionProvider } from './extensions/default-extension-provider';
7
7
  export { default as combineExtensionProviders } from './extensions/combine-extension-providers';
8
- export { getExtensionKeyAndNodeKey, resolveImport } from './extensions/manifest-helpers';
8
+ export { getExtensionKeyAndNodeKey, NATIVE_EMBED_EXTENSION_TYPE, NATIVE_EMBED_EXTENSION_KEY, resolveImport } from './extensions/manifest-helpers';
9
9
  export { getExtensionModuleNode, getNodeRenderer, getExtensionModuleNodePrivateProps, getExtensionManifest } from './extensions/extension-handlers';
10
10
  export { getCustomFieldResolver, getFieldSerializer, getFieldDeserializer, getUserFieldContextProvider } from './extensions/extension-fields-helpers';
11
11
  export { configPanelMessages, messages } from './extensions/messages';
@@ -1,7 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useCallback, useEffect, useMemo, useRef } from 'react';
3
+ import FocusLock from 'react-focus-lock';
3
4
  import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
4
5
  import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
6
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
7
  import { getAnalyticsEditorAppearance } from '../../../utils';
6
8
  import { useEscapeClickaway } from './useEscapeClickaway';
7
9
 
@@ -64,6 +66,20 @@ export const EditorLinkPicker = ({
64
66
  // Below is added for the future implementation of Linking Platform namespaced analytic context
65
67
  location: analyticsEditorAppearance
66
68
  }), [invokeMethod, analyticsEditorAppearance]);
69
+ if (expValEquals('platform_editor_a11y_escape_link_dialog', 'isEnabled', true)) {
70
+ return /*#__PURE__*/React.createElement("div", {
71
+ ref: ref
72
+ }, /*#__PURE__*/React.createElement(AnalyticsContext, {
73
+ data: analyticsData
74
+ }, /*#__PURE__*/React.createElement(FocusLock, {
75
+ returnFocus: true
76
+ }, /*#__PURE__*/React.createElement(LazyLinkPicker
77
+ // Ignored via go/ees005
78
+ // eslint-disable-next-line react/jsx-props-no-spreading
79
+ , _extends({}, restProps, {
80
+ onCancel: onEscape
81
+ })))));
82
+ }
67
83
  return /*#__PURE__*/React.createElement("div", {
68
84
  ref: ref
69
85
  }, /*#__PURE__*/React.createElement(AnalyticsContext, {
@@ -10,6 +10,7 @@ import React, { PureComponent } from 'react';
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import debounce from 'lodash/debounce';
12
12
  import { flushSync } from 'react-dom';
13
+ import FocusLock from 'react-focus-lock';
13
14
  import { defineMessages, injectIntl } from 'react-intl-next';
14
15
  import { isSafeUrl } from '@atlaskit/adf-schema';
15
16
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
@@ -737,7 +738,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
737
738
  // for details: https://a11y-internal.atlassian.net/browse/AK-740
738
739
  const screenReaderText = browser.safari && this.getScreenReaderText();
739
740
  const containerWidth = fg('platform_editor_link_picker_width_fix') ? narrowContainerWidth : !!activityProvider && containerWithProvider;
740
- return jsx("div", {
741
+ const hyperlinkElement = jsx("div", {
741
742
  "aria-label": fg('platform_editor_dec_a11y_fixes') ? formatMessage(messages.hyperlinkAriaLabel) : 'Hyperlink Edit'
742
743
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
743
744
  ,
@@ -835,6 +836,12 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
835
836
  onMouseEnter: this.handleMouseEnterResultItem,
836
837
  onMouseLeave: this.handleMouseLeaveResultItem
837
838
  })));
839
+ if (expValEquals('platform_editor_a11y_escape_link_dialog', 'isEnabled', true)) {
840
+ return jsx(FocusLock, {
841
+ returnFocus: true
842
+ }, hyperlinkElement);
843
+ }
844
+ return hyperlinkElement;
838
845
  }
839
846
  }
840
847
  function findIndex(array, predicate) {
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "111.14.3";
7
+ const packageVersion = "111.15.1";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "111.14.3";
17
+ const packageVersion = "111.15.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -1,6 +1,5 @@
1
1
  import { useEffect } from 'react';
2
2
  import { fg } from '@atlaskit/platform-feature-flags';
3
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
4
3
  /**
5
4
  *
6
5
  * A wrapper for popups to signal popupOpen user intent
@@ -12,10 +11,10 @@ export const UserIntentPopupWrapper = ({
12
11
  }) => {
13
12
  useEffect(() => {
14
13
  var _api$userIntent;
15
- api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 ? void 0 : _api$userIntent.commands.setCurrentUserIntent(expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true) ? userIntent : 'popupOpen'));
14
+ api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 ? void 0 : _api$userIntent.commands.setCurrentUserIntent(userIntent));
16
15
  return () => {
17
16
  var _api$userIntent2, _api$userIntent2$shar;
18
- if (!expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true) || userIntent === (api === null || api === void 0 ? void 0 : (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 ? void 0 : (_api$userIntent2$shar = _api$userIntent2.sharedState.currentState()) === null || _api$userIntent2$shar === void 0 ? void 0 : _api$userIntent2$shar.currentUserIntent)) {
17
+ if (userIntent === (api === null || api === void 0 ? void 0 : (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 ? void 0 : (_api$userIntent2$shar = _api$userIntent2.sharedState.currentState()) === null || _api$userIntent2$shar === void 0 ? void 0 : _api$userIntent2$shar.currentUserIntent)) {
19
18
  if (fg('platform_editor_fix_popup_user_intent')) {
20
19
  // Defer the reset to avoid interfering with ongoing ProseMirror transactions
21
20
  // This fixes a race condition where cleanup happens during a transaction
@@ -258,6 +258,7 @@ export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
258
258
  INPUT_METHOD["SYNCED_BLOCK_TB"] = "syncedBlockToolbar";
259
259
  INPUT_METHOD["BLOCK_MENU"] = "blockMenu";
260
260
  INPUT_METHOD["SMART_LINK"] = "smartLink";
261
+ INPUT_METHOD["ELEMENT_BROWSER"] = "elementBrowser";
261
262
  return INPUT_METHOD;
262
263
  }({});
263
264
  export var INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
@@ -5,6 +5,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
5
5
  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) { _defineProperty(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; }
6
6
  import _regeneratorRuntime from "@babel/runtime/regenerator";
7
7
  export var FORGE_EXTENSION_TYPE = 'com.atlassian.ecosystem';
8
+ export var NATIVE_EMBED_EXTENSION_TYPE = 'com.atlassian.native-embeds';
9
+ export var NATIVE_EMBED_EXTENSION_KEY = 'native-embed';
8
10
  export var getExtensionKeyAndNodeKey = function getExtensionKeyAndNodeKey(extensionKey, extensionType) {
9
11
  // Forge macro extensionKey has a user generated string, so splitting on
10
12
  // a colon is unstable for their particular use case. They only have one
@@ -5,7 +5,7 @@ export { isFieldset, isTabGroup, isTabField, isExpand, isDateRange } from './ext
5
5
  export { createAutoConverterRunner, getExtensionAutoConvertersFromProvider, getQuickInsertItemsFromModule, getContextualToolbarItemsFromModule, buildMenuItem } from './extensions/module-helpers';
6
6
  export { default as DefaultExtensionProvider } from './extensions/default-extension-provider';
7
7
  export { default as combineExtensionProviders } from './extensions/combine-extension-providers';
8
- export { getExtensionKeyAndNodeKey, resolveImport } from './extensions/manifest-helpers';
8
+ export { getExtensionKeyAndNodeKey, NATIVE_EMBED_EXTENSION_TYPE, NATIVE_EMBED_EXTENSION_KEY, resolveImport } from './extensions/manifest-helpers';
9
9
  export { getExtensionModuleNode, getNodeRenderer, getExtensionModuleNodePrivateProps, getExtensionManifest } from './extensions/extension-handlers';
10
10
  export { getCustomFieldResolver, getFieldSerializer, getFieldDeserializer, getUserFieldContextProvider } from './extensions/extension-fields-helpers';
11
11
  export { configPanelMessages, messages } from './extensions/messages';
@@ -2,8 +2,10 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["view", "onCancel", "invokeMethod", "editorAppearance", "onClose", "onEscapeCallback", "onClickAwayCallback"];
4
4
  import React, { useCallback, useEffect, useMemo, useRef } from 'react';
5
+ import FocusLock from 'react-focus-lock';
5
6
  import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
6
7
  import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
8
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
9
  import { getAnalyticsEditorAppearance } from '../../../utils';
8
10
  import { useEscapeClickaway } from './useEscapeClickaway';
9
11
 
@@ -66,6 +68,20 @@ export var EditorLinkPicker = function EditorLinkPicker(_ref) {
66
68
  location: analyticsEditorAppearance
67
69
  };
68
70
  }, [invokeMethod, analyticsEditorAppearance]);
71
+ if (expValEquals('platform_editor_a11y_escape_link_dialog', 'isEnabled', true)) {
72
+ return /*#__PURE__*/React.createElement("div", {
73
+ ref: ref
74
+ }, /*#__PURE__*/React.createElement(AnalyticsContext, {
75
+ data: analyticsData
76
+ }, /*#__PURE__*/React.createElement(FocusLock, {
77
+ returnFocus: true
78
+ }, /*#__PURE__*/React.createElement(LazyLinkPicker
79
+ // Ignored via go/ees005
80
+ // eslint-disable-next-line react/jsx-props-no-spreading
81
+ , _extends({}, restProps, {
82
+ onCancel: onEscape
83
+ })))));
84
+ }
69
85
  return /*#__PURE__*/React.createElement("div", {
70
86
  ref: ref
71
87
  }, /*#__PURE__*/React.createElement(AnalyticsContext, {
@@ -21,6 +21,7 @@ import React, { PureComponent } from 'react';
21
21
  import { css, jsx } from '@emotion/react';
22
22
  import debounce from 'lodash/debounce';
23
23
  import { flushSync } from 'react-dom';
24
+ import FocusLock from 'react-focus-lock';
24
25
  import { defineMessages, injectIntl } from 'react-intl-next';
25
26
  import { isSafeUrl } from '@atlaskit/adf-schema';
26
27
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
@@ -881,7 +882,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
881
882
  // for details: https://a11y-internal.atlassian.net/browse/AK-740
882
883
  var screenReaderText = browser.safari && this.getScreenReaderText();
883
884
  var containerWidth = fg('platform_editor_link_picker_width_fix') ? narrowContainerWidth : !!activityProvider && containerWithProvider;
884
- return jsx("div", {
885
+ var hyperlinkElement = jsx("div", {
885
886
  "aria-label": fg('platform_editor_dec_a11y_fixes') ? formatMessage(messages.hyperlinkAriaLabel) : 'Hyperlink Edit'
886
887
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
887
888
  ,
@@ -983,6 +984,12 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
983
984
  onMouseEnter: this.handleMouseEnterResultItem,
984
985
  onMouseLeave: this.handleMouseLeaveResultItem
985
986
  })));
987
+ if (expValEquals('platform_editor_a11y_escape_link_dialog', 'isEnabled', true)) {
988
+ return jsx(FocusLock, {
989
+ returnFocus: true
990
+ }, hyperlinkElement);
991
+ }
992
+ return hyperlinkElement;
986
993
  }
987
994
  }]);
988
995
  }(PureComponent);
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "111.14.3";
13
+ var packageVersion = "111.15.1";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "111.14.3";
24
+ var packageVersion = "111.15.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -1,6 +1,5 @@
1
1
  import { useEffect } from 'react';
2
2
  import { fg } from '@atlaskit/platform-feature-flags';
3
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
4
3
  /**
5
4
  *
6
5
  * A wrapper for popups to signal popupOpen user intent
@@ -12,10 +11,10 @@ export var UserIntentPopupWrapper = function UserIntentPopupWrapper(_ref) {
12
11
  api = _ref.api;
13
12
  useEffect(function () {
14
13
  var _api$userIntent;
15
- api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 ? void 0 : _api$userIntent.commands.setCurrentUserIntent(expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true) ? userIntent : 'popupOpen'));
14
+ api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 ? void 0 : _api$userIntent.commands.setCurrentUserIntent(userIntent));
16
15
  return function () {
17
16
  var _api$userIntent2;
18
- if (!expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true) || userIntent === (api === null || api === void 0 || (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 || (_api$userIntent2 = _api$userIntent2.sharedState.currentState()) === null || _api$userIntent2 === void 0 ? void 0 : _api$userIntent2.currentUserIntent)) {
17
+ if (userIntent === (api === null || api === void 0 || (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 || (_api$userIntent2 = _api$userIntent2.sharedState.currentState()) === null || _api$userIntent2 === void 0 ? void 0 : _api$userIntent2.currentUserIntent)) {
19
18
  if (fg('platform_editor_fix_popup_user_intent')) {
20
19
  // Defer the reset to avoid interfering with ongoing ProseMirror transactions
21
20
  // This fixes a race condition where cleanup happens during a transaction
@@ -255,7 +255,8 @@ export declare enum INPUT_METHOD {
255
255
  INLINE_SUGGESTION_FLOATING_TB = "inlineSuggestionFloatingToolbar",
256
256
  SYNCED_BLOCK_TB = "syncedBlockToolbar",
257
257
  BLOCK_MENU = "blockMenu",
258
- SMART_LINK = "smartLink"
258
+ SMART_LINK = "smartLink",
259
+ ELEMENT_BROWSER = "elementBrowser"
259
260
  }
260
261
  export declare enum INSERT_MEDIA_VIA {
261
262
  LOCAL_UPLOAD = "localUpload",
@@ -41,7 +41,7 @@ type InsertPanelAEP = InsertAEP<ACTION_SUBJECT_ID.PANEL, {
41
41
  panelType: PanelType;
42
42
  }, undefined>;
43
43
  type InsertCodeBlockAEP = InsertAEP<ACTION_SUBJECT_ID.CODE_BLOCK, {
44
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU;
44
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.ELEMENT_BROWSER;
45
45
  }, undefined>;
46
46
  type InsertTableAEP = InsertAEP<ACTION_SUBJECT_ID.TABLE, {
47
47
  inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.PICKER | INPUT_METHOD.SHORTCUT;
@@ -116,7 +116,7 @@ export type InsertDateAEP = InsertAEP<ACTION_SUBJECT_ID.DATE, {
116
116
  type InsertExtensionAEP = InsertAEP<ACTION_SUBJECT_ID.EXTENSION, {
117
117
  extensionKey: string;
118
118
  extensionType: string;
119
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
119
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.ELEMENT_BROWSER;
120
120
  key: string;
121
121
  }, any>;
122
122
  type InsertNodeViaExtensionAPIAEP = InsertAEP<undefined, {
@@ -2,6 +2,8 @@ import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { ExtensionKey, ExtensionManifest, ExtensionModuleAction, ExtensionModuleActionObject, ExtensionModuleKey, ExtensionType, Module } from './types/extension-manifest';
3
3
  import type { Parameters } from './types/extension-parameters';
4
4
  export declare const FORGE_EXTENSION_TYPE = "com.atlassian.ecosystem";
5
+ export declare const NATIVE_EMBED_EXTENSION_TYPE = "com.atlassian.native-embeds";
6
+ export declare const NATIVE_EMBED_EXTENSION_KEY = "native-embed";
5
7
  export declare const getExtensionKeyAndNodeKey: (extensionKey: ExtensionKey, extensionType: ExtensionType) => string[];
6
8
  export declare const buildExtensionKeyAndNodeKey: (extensionKey: ExtensionKey, nodeKey?: ExtensionModuleKey) => string;
7
9
  export declare function buildAction<T extends Parameters>(action: ExtensionModuleAction<T>, manifest: ExtensionManifest<T>): ADFEntity | import("./types/extension-manifest").ExtensionModuleActionHandler | undefined;
@@ -2,7 +2,7 @@ export { isFieldset, isTabGroup, isTabField, isExpand, isDateRange, } from './ex
2
2
  export { createAutoConverterRunner, getExtensionAutoConvertersFromProvider, getQuickInsertItemsFromModule, getContextualToolbarItemsFromModule, buildMenuItem, } from './extensions/module-helpers';
3
3
  export { default as DefaultExtensionProvider } from './extensions/default-extension-provider';
4
4
  export { default as combineExtensionProviders } from './extensions/combine-extension-providers';
5
- export { getExtensionKeyAndNodeKey, resolveImport } from './extensions/manifest-helpers';
5
+ export { getExtensionKeyAndNodeKey, NATIVE_EMBED_EXTENSION_TYPE, NATIVE_EMBED_EXTENSION_KEY, resolveImport, } from './extensions/manifest-helpers';
6
6
  export { getExtensionModuleNode, getNodeRenderer, getExtensionModuleNodePrivateProps, getExtensionManifest, } from './extensions/extension-handlers';
7
7
  export { getCustomFieldResolver, getFieldSerializer, getFieldDeserializer, getUserFieldContextProvider, } from './extensions/extension-fields-helpers';
8
8
  export { configPanelMessages, messages } from './extensions/messages';
@@ -14,7 +14,7 @@ export type QuickInsertItem = TypeAheadItem & {
14
14
  * If a search occurs -- then a separate insert action is called
15
15
  * @see packages/editor/editor-core/src/plugins/insert-block/ui/ToolbarInsertBlock/index.tsx for details
16
16
  */
17
- action: (insert: QuickInsertActionInsert, state: EditorState, source?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT) => Transaction | false;
17
+ action: (insert: QuickInsertActionInsert, state: EditorState, source?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.ELEMENT_BROWSER) => Transaction | false;
18
18
  /** categories where to find the item */
19
19
  categories?: Array<string>;
20
20
  /** indicates if the item will be highlighted where appropriate (plus menu for now) */
@@ -255,7 +255,8 @@ export declare enum INPUT_METHOD {
255
255
  INLINE_SUGGESTION_FLOATING_TB = "inlineSuggestionFloatingToolbar",
256
256
  SYNCED_BLOCK_TB = "syncedBlockToolbar",
257
257
  BLOCK_MENU = "blockMenu",
258
- SMART_LINK = "smartLink"
258
+ SMART_LINK = "smartLink",
259
+ ELEMENT_BROWSER = "elementBrowser"
259
260
  }
260
261
  export declare enum INSERT_MEDIA_VIA {
261
262
  LOCAL_UPLOAD = "localUpload",
@@ -41,7 +41,7 @@ type InsertPanelAEP = InsertAEP<ACTION_SUBJECT_ID.PANEL, {
41
41
  panelType: PanelType;
42
42
  }, undefined>;
43
43
  type InsertCodeBlockAEP = InsertAEP<ACTION_SUBJECT_ID.CODE_BLOCK, {
44
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU;
44
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.ELEMENT_BROWSER;
45
45
  }, undefined>;
46
46
  type InsertTableAEP = InsertAEP<ACTION_SUBJECT_ID.TABLE, {
47
47
  inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.PICKER | INPUT_METHOD.SHORTCUT;
@@ -116,7 +116,7 @@ export type InsertDateAEP = InsertAEP<ACTION_SUBJECT_ID.DATE, {
116
116
  type InsertExtensionAEP = InsertAEP<ACTION_SUBJECT_ID.EXTENSION, {
117
117
  extensionKey: string;
118
118
  extensionType: string;
119
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
119
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.ELEMENT_BROWSER;
120
120
  key: string;
121
121
  }, any>;
122
122
  type InsertNodeViaExtensionAPIAEP = InsertAEP<undefined, {
@@ -2,6 +2,8 @@ import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { ExtensionKey, ExtensionManifest, ExtensionModuleAction, ExtensionModuleActionObject, ExtensionModuleKey, ExtensionType, Module } from './types/extension-manifest';
3
3
  import type { Parameters } from './types/extension-parameters';
4
4
  export declare const FORGE_EXTENSION_TYPE = "com.atlassian.ecosystem";
5
+ export declare const NATIVE_EMBED_EXTENSION_TYPE = "com.atlassian.native-embeds";
6
+ export declare const NATIVE_EMBED_EXTENSION_KEY = "native-embed";
5
7
  export declare const getExtensionKeyAndNodeKey: (extensionKey: ExtensionKey, extensionType: ExtensionType) => string[];
6
8
  export declare const buildExtensionKeyAndNodeKey: (extensionKey: ExtensionKey, nodeKey?: ExtensionModuleKey) => string;
7
9
  export declare function buildAction<T extends Parameters>(action: ExtensionModuleAction<T>, manifest: ExtensionManifest<T>): ADFEntity | import("./types/extension-manifest").ExtensionModuleActionHandler | undefined;
@@ -2,7 +2,7 @@ export { isFieldset, isTabGroup, isTabField, isExpand, isDateRange, } from './ex
2
2
  export { createAutoConverterRunner, getExtensionAutoConvertersFromProvider, getQuickInsertItemsFromModule, getContextualToolbarItemsFromModule, buildMenuItem, } from './extensions/module-helpers';
3
3
  export { default as DefaultExtensionProvider } from './extensions/default-extension-provider';
4
4
  export { default as combineExtensionProviders } from './extensions/combine-extension-providers';
5
- export { getExtensionKeyAndNodeKey, resolveImport } from './extensions/manifest-helpers';
5
+ export { getExtensionKeyAndNodeKey, NATIVE_EMBED_EXTENSION_TYPE, NATIVE_EMBED_EXTENSION_KEY, resolveImport, } from './extensions/manifest-helpers';
6
6
  export { getExtensionModuleNode, getNodeRenderer, getExtensionModuleNodePrivateProps, getExtensionManifest, } from './extensions/extension-handlers';
7
7
  export { getCustomFieldResolver, getFieldSerializer, getFieldDeserializer, getUserFieldContextProvider, } from './extensions/extension-fields-helpers';
8
8
  export { configPanelMessages, messages } from './extensions/messages';
@@ -14,7 +14,7 @@ export type QuickInsertItem = TypeAheadItem & {
14
14
  * If a search occurs -- then a separate insert action is called
15
15
  * @see packages/editor/editor-core/src/plugins/insert-block/ui/ToolbarInsertBlock/index.tsx for details
16
16
  */
17
- action: (insert: QuickInsertActionInsert, state: EditorState, source?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT) => Transaction | false;
17
+ action: (insert: QuickInsertActionInsert, state: EditorState, source?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.ELEMENT_BROWSER) => Transaction | false;
18
18
  /** categories where to find the item */
19
19
  categories?: Array<string>;
20
20
  /** indicates if the item will be highlighted where appropriate (plus menu for now) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "111.15.0",
3
+ "version": "111.16.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -81,7 +81,7 @@
81
81
  "@atlaskit/task-decision": "^19.2.0",
82
82
  "@atlaskit/textfield": "^8.2.0",
83
83
  "@atlaskit/theme": "^21.0.0",
84
- "@atlaskit/tmp-editor-statsig": "^25.5.0",
84
+ "@atlaskit/tmp-editor-statsig": "^25.7.0",
85
85
  "@atlaskit/tokens": "^11.0.0",
86
86
  "@atlaskit/tooltip": "^20.14.0",
87
87
  "@atlaskit/width-detector": "^5.0.0",
@@ -107,6 +107,7 @@
107
107
  "prop-types": "^15.5.10",
108
108
  "raf-schd": "^4.0.3",
109
109
  "re-resizable": "6.0.0",
110
+ "react-focus-lock": "^2.9.5",
110
111
  "react-loadable": "^5.1.0",
111
112
  "react-virtualized": "^9.22.6",
112
113
  "rusha": "^0.8.13",