@atlaskit/editor-common 82.9.1 → 82.10.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 (53) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/extensibility/Extension/Extension/index.js +5 -3
  3. package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -1
  4. package/dist/cjs/extensibility/Extension.js +2 -2
  5. package/dist/cjs/extensibility/ExtensionComponent.js +4 -4
  6. package/dist/cjs/extensibility/ExtensionNodeWrapper.js +3 -1
  7. package/dist/cjs/extensibility/MultiBodiedExtension/index.js +5 -3
  8. package/dist/cjs/extensibility/extensionNodeView.js +4 -4
  9. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +14 -16
  10. package/dist/cjs/monitoring/error.js +1 -1
  11. package/dist/cjs/selection/gap-cursor/styles.js +2 -2
  12. package/dist/cjs/ui/DropList/index.js +1 -1
  13. package/dist/es2019/extensibility/Extension/Extension/index.js +4 -1
  14. package/dist/es2019/extensibility/Extension/InlineExtension/index.js +4 -1
  15. package/dist/es2019/extensibility/Extension.js +2 -2
  16. package/dist/es2019/extensibility/ExtensionComponent.js +4 -4
  17. package/dist/es2019/extensibility/ExtensionNodeWrapper.js +4 -1
  18. package/dist/es2019/extensibility/MultiBodiedExtension/index.js +4 -1
  19. package/dist/es2019/extensibility/extensionNodeView.js +4 -4
  20. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +15 -17
  21. package/dist/es2019/monitoring/error.js +1 -1
  22. package/dist/es2019/selection/gap-cursor/styles.js +3 -3
  23. package/dist/es2019/ui/DropList/index.js +1 -1
  24. package/dist/esm/extensibility/Extension/Extension/index.js +5 -3
  25. package/dist/esm/extensibility/Extension/InlineExtension/index.js +3 -1
  26. package/dist/esm/extensibility/Extension.js +2 -2
  27. package/dist/esm/extensibility/ExtensionComponent.js +4 -4
  28. package/dist/esm/extensibility/ExtensionNodeWrapper.js +3 -1
  29. package/dist/esm/extensibility/MultiBodiedExtension/index.js +5 -3
  30. package/dist/esm/extensibility/extensionNodeView.js +4 -4
  31. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +15 -17
  32. package/dist/esm/monitoring/error.js +1 -1
  33. package/dist/esm/selection/gap-cursor/styles.js +2 -2
  34. package/dist/esm/ui/DropList/index.js +1 -1
  35. package/dist/types/extensibility/Extension/Extension/index.d.ts +2 -2
  36. package/dist/types/extensibility/Extension/InlineExtension/index.d.ts +2 -2
  37. package/dist/types/extensibility/Extension.d.ts +2 -2
  38. package/dist/types/extensibility/ExtensionComponent.d.ts +2 -2
  39. package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +3 -2
  40. package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +2 -2
  41. package/dist/types/extensibility/extensionNodeView.d.ts +3 -3
  42. package/dist/types/extensibility/types.d.ts +4 -0
  43. package/dist/types/types/feature-flags.d.ts +8 -0
  44. package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +2 -2
  45. package/dist/types-ts4.5/extensibility/Extension/InlineExtension/index.d.ts +2 -2
  46. package/dist/types-ts4.5/extensibility/Extension.d.ts +2 -2
  47. package/dist/types-ts4.5/extensibility/ExtensionComponent.d.ts +2 -2
  48. package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +3 -2
  49. package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +2 -2
  50. package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +3 -3
  51. package/dist/types-ts4.5/extensibility/types.d.ts +4 -0
  52. package/dist/types-ts4.5/types/feature-flags.d.ts +8 -0
  53. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 82.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#112575](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112575)
8
+ [`63dcaae87255b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/63dcaae87255b) -
9
+ Passes new FF for new experiment to macro code and updates type to be object from boolean to
10
+ account for multiple FFs
11
+
12
+ ### Patch Changes
13
+
14
+ - [#113192](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113192)
15
+ [`80dfa651ba955`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/80dfa651ba955) -
16
+ Migration of native HTML buttons to new Pressable primitive.
17
+ - [#113192](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113192)
18
+ [`80dfa651ba955`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/80dfa651ba955) -
19
+ Migration of native HTML buttons to new Pressable primitive.
20
+
21
+ ## 82.9.2
22
+
23
+ ### Patch Changes
24
+
25
+ - [#112394](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112394)
26
+ [`cbce87c004124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cbce87c004124) -
27
+ ED-23678 fix blocks gap cursor styling
28
+ - Updated dependencies
29
+
3
30
  ## 82.9.1
4
31
 
5
32
  ### Patch Changes
@@ -38,11 +38,13 @@ function ExtensionWithPluginState(props) {
38
38
  shadowClassNames = props.shadowClassNames,
39
39
  hideFrame = props.hideFrame,
40
40
  editorAppearance = props.editorAppearance,
41
- showMacroInteractionDesignUpdates = props.showMacroInteractionDesignUpdates,
41
+ macroInteractionDesignFeatureFlags = props.macroInteractionDesignFeatureFlags,
42
42
  isNodeSelected = props.isNodeSelected,
43
43
  isNodeHovered = props.isNodeHovered,
44
44
  isNodeNested = props.isNodeNested,
45
45
  setIsNodeHovered = props.setIsNodeHovered;
46
+ var _ref = macroInteractionDesignFeatureFlags || {},
47
+ showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
46
48
  var hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name);
47
49
  var isMobile = editorAppearance === 'mobile';
48
50
  var hasChildren = !!children;
@@ -199,8 +201,8 @@ var ExtensionDeprecated = function ExtensionDeprecated(props) {
199
201
  plugins: {
200
202
  widthState: widthPluginKey
201
203
  },
202
- render: function render(_ref) {
203
- var widthState = _ref.widthState;
204
+ render: function render(_ref2) {
205
+ var widthState = _ref2.widthState;
204
206
  return (0, _react2.jsx)(ExtensionWithPluginState, (0, _extends2.default)({
205
207
  widthState: widthState
206
208
  }, props));
@@ -25,11 +25,13 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
25
25
  var InlineExtension = function InlineExtension(props) {
26
26
  var node = props.node,
27
27
  pluginInjectionApi = props.pluginInjectionApi,
28
- showMacroInteractionDesignUpdates = props.showMacroInteractionDesignUpdates,
28
+ macroInteractionDesignFeatureFlags = props.macroInteractionDesignFeatureFlags,
29
29
  isNodeSelected = props.isNodeSelected,
30
30
  children = props.children,
31
31
  isNodeHovered = props.isNodeHovered,
32
32
  setIsNodeHovered = props.setIsNodeHovered;
33
+ var _ref = macroInteractionDesignFeatureFlags || {},
34
+ showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
33
35
  var _useSharedPluginState = (0, _hooks.useSharedPluginState)(pluginInjectionApi, ['width']),
34
36
  widthState = _useSharedPluginState.widthState;
35
37
  var hasChildren = !!children;
@@ -39,7 +39,7 @@ var Extension = exports.Extension = /*#__PURE__*/function (_Component) {
39
39
  editorAppearance = _this$props.editorAppearance,
40
40
  pluginInjectionApi = _this$props.pluginInjectionApi,
41
41
  eventDispatcher = _this$props.eventDispatcher,
42
- showMacroInteractionDesignUpdates = _this$props.showMacroInteractionDesignUpdates;
42
+ macroInteractionDesignFeatureFlags = _this$props.macroInteractionDesignFeatureFlags;
43
43
  return /*#__PURE__*/_react.default.createElement(_ExtensionComponent.ExtensionComponent, {
44
44
  editorView: editorView,
45
45
  node: node,
@@ -51,7 +51,7 @@ var Extension = exports.Extension = /*#__PURE__*/function (_Component) {
51
51
  editorAppearance: editorAppearance,
52
52
  pluginInjectionApi: pluginInjectionApi,
53
53
  eventDispatcher: eventDispatcher,
54
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
54
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags
55
55
  });
56
56
  });
57
57
  _this.providerFactory = props.providerFactory || new _providerFactory.ProviderFactory();
@@ -200,7 +200,7 @@ var ExtensionComponent = exports.ExtensionComponent = /*#__PURE__*/function (_Co
200
200
  pluginInjectionApi = _this$props2.pluginInjectionApi,
201
201
  getPos = _this$props2.getPos,
202
202
  eventDispatcher = _this$props2.eventDispatcher,
203
- showMacroInteractionDesignUpdates = _this$props2.showMacroInteractionDesignUpdates;
203
+ macroInteractionDesignFeatureFlags = _this$props2.macroInteractionDesignFeatureFlags;
204
204
  var selection = editorView.state.selection;
205
205
  var selectedNode = selection instanceof _state.NodeSelection && selection.node;
206
206
  var position = typeof getPos === 'function' && getPos();
@@ -216,7 +216,7 @@ var ExtensionComponent = exports.ExtensionComponent = /*#__PURE__*/function (_Co
216
216
  eventDispatcher: eventDispatcher,
217
217
  pluginInjectionApi: pluginInjectionApi,
218
218
  editorAppearance: editorAppearance,
219
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
219
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags,
220
220
  isNodeSelected: selectedNode === node,
221
221
  isNodeNested: isNodeNested,
222
222
  isNodeHovered: this.state.isNodeHovered,
@@ -237,7 +237,7 @@ var ExtensionComponent = exports.ExtensionComponent = /*#__PURE__*/function (_Co
237
237
  editorAppearance: editorAppearance,
238
238
  hideFrame: (_this$state$_privateP = this.state._privateProps) === null || _this$state$_privateP === void 0 ? void 0 : _this$state$_privateP.__hideFrame,
239
239
  pluginInjectionApi: pluginInjectionApi,
240
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
240
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags,
241
241
  isNodeSelected: selectedNode === node,
242
242
  isNodeHovered: this.state.isNodeHovered,
243
243
  isNodeNested: isNodeNested,
@@ -246,7 +246,7 @@ var ExtensionComponent = exports.ExtensionComponent = /*#__PURE__*/function (_Co
246
246
  case 'inlineExtension':
247
247
  return /*#__PURE__*/_react.default.createElement(_InlineExtension.default, {
248
248
  node: node,
249
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
249
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags,
250
250
  isNodeSelected: selectedNode === node,
251
251
  pluginInjectionApi: pluginInjectionApi,
252
252
  isNodeHovered: this.state.isNodeHovered,
@@ -34,7 +34,9 @@ var styles = (0, _react2.css)({
34
34
  var ExtensionNodeWrapper = exports.ExtensionNodeWrapper = function ExtensionNodeWrapper(_ref) {
35
35
  var children = _ref.children,
36
36
  nodeType = _ref.nodeType,
37
- showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
37
+ macroInteractionDesignFeatureFlags = _ref.macroInteractionDesignFeatureFlags;
38
+ var _ref2 = macroInteractionDesignFeatureFlags || {},
39
+ showMacroInteractionDesignUpdates = _ref2.showMacroInteractionDesignUpdates;
38
40
  var wrapperClassNames = (0, _classnames.default)({
39
41
  'inline-extension': nodeType === 'inlineExtension' && showMacroInteractionDesignUpdates,
40
42
  relative: showMacroInteractionDesignUpdates
@@ -81,11 +81,13 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
81
81
  eventDispatcher = _ref.eventDispatcher,
82
82
  widthState = _ref.widthState,
83
83
  editorAppearance = _ref.editorAppearance,
84
- showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates,
84
+ macroInteractionDesignFeatureFlags = _ref.macroInteractionDesignFeatureFlags,
85
85
  isNodeSelected = _ref.isNodeSelected,
86
86
  isNodeHovered = _ref.isNodeHovered,
87
87
  isNodeNested = _ref.isNodeNested,
88
88
  setIsNodeHovered = _ref.setIsNodeHovered;
89
+ var _ref2 = macroInteractionDesignFeatureFlags || {},
90
+ showMacroInteractionDesignUpdates = _ref2.showMacroInteractionDesignUpdates;
89
91
  var _node$attrs = node.attrs,
90
92
  parameters = _node$attrs.parameters,
91
93
  extensionKey = _node$attrs.extensionKey;
@@ -250,8 +252,8 @@ var MultiBodiedExtensionDeprecated = function MultiBodiedExtensionDeprecated(pro
250
252
  plugins: {
251
253
  widthState: widthPluginKey
252
254
  },
253
- render: function render(_ref2) {
254
- var widthState = _ref2.widthState;
255
+ render: function render(_ref3) {
256
+ var widthState = _ref3.widthState;
255
257
  return (0, _react2.jsx)(MultiBodiedExtensionWithWidth, (0, _extends2.default)({
256
258
  widthState: widthState
257
259
  }, props));
@@ -56,7 +56,7 @@ var ExtensionNode = exports.ExtensionNode = /*#__PURE__*/function (_ReactNodeVie
56
56
  var _props$extensionNodeV;
57
57
  return /*#__PURE__*/_react.default.createElement(_ExtensionNodeWrapper.ExtensionNodeWrapper, {
58
58
  nodeType: this.node.type.name,
59
- showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
59
+ macroInteractionDesignFeatureFlags: props.macroInteractionDesignFeatureFlags
60
60
  }, /*#__PURE__*/_react.default.createElement(_Extension.Extension, {
61
61
  editorView: this.view,
62
62
  node: this.node,
@@ -74,13 +74,13 @@ var ExtensionNode = exports.ExtensionNode = /*#__PURE__*/function (_ReactNodeVie
74
74
  extensionHandlers: props.extensionHandlers,
75
75
  editorAppearance: (_props$extensionNodeV = props.extensionNodeViewOptions) === null || _props$extensionNodeV === void 0 ? void 0 : _props$extensionNodeV.appearance,
76
76
  pluginInjectionApi: props.pluginInjectionApi,
77
- showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
77
+ macroInteractionDesignFeatureFlags: props.macroInteractionDesignFeatureFlags
78
78
  }));
79
79
  }
80
80
  }]);
81
81
  return ExtensionNode;
82
82
  }(_reactNodeView.default);
83
- function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, showMacroInteractionDesignUpdates) {
83
+ function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags) {
84
84
  return function (node, view, getPos) {
85
85
  var hasIntlContext = true;
86
86
  return new ExtensionNode(node, view, getPos, portalProviderAPI, eventDispatcher, {
@@ -88,7 +88,7 @@ function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory,
88
88
  extensionHandlers: extensionHandlers,
89
89
  extensionNodeViewOptions: extensionNodeViewOptions,
90
90
  pluginInjectionApi: pluginInjectionApi,
91
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
91
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags
92
92
  }, undefined, undefined, undefined, hasIntlContext).init();
93
93
  };
94
94
  }
@@ -26,6 +26,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
26
26
  var _analyticsNext = require("@atlaskit/analytics-next");
27
27
  var _ = _interopRequireDefault(require("@atlaskit/icon-object/glyph/page/16"));
28
28
  var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/cross-circle"));
29
+ var _primitives = require("@atlaskit/primitives");
29
30
  var _colors = require("@atlaskit/theme/colors");
30
31
  var _constants = require("@atlaskit/theme/constants");
31
32
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
@@ -56,12 +57,10 @@ var visuallyHiddenStyles = exports.visuallyHiddenStyles = (0, _react2.css)({
56
57
  position: 'absolute'
57
58
  });
58
59
  var RECENT_SEARCH_LIST_SIZE = exports.RECENT_SEARCH_LIST_SIZE = 5;
59
- var clearText = (0, _react2.css)({
60
- cursor: 'pointer',
61
- padding: 0,
62
- marginRight: "var(--ds-space-100, 8px)",
63
- color: "var(--ds-icon-subtle, ".concat(_colors.N90, ")"),
64
- background: 'transparent',
60
+ var clearTextButtonStyles = (0, _primitives.xcss)({
61
+ padding: 'space.0',
62
+ marginRight: 'space.100',
63
+ backgroundColor: 'color.background.neutral.subtle',
65
64
  border: 'none'
66
65
  });
67
66
  var clearTextWrapper = (0, _react2.css)({
@@ -888,13 +887,12 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
888
887
  css: clearTextWrapper
889
888
  }, (0, _react2.jsx)(_tooltip.default, {
890
889
  content: formatClearLinkText
891
- }, (0, _react2.jsx)("button", {
892
- type: "button",
893
- css: clearText,
894
- onClick: this.handleClearText,
895
- tabIndex: 0
890
+ }, (0, _react2.jsx)(_primitives.Pressable, {
891
+ xcss: clearTextButtonStyles,
892
+ onClick: this.handleClearText
896
893
  }, (0, _react2.jsx)(_crossCircle.default, {
897
- label: formatClearLinkText
894
+ label: formatClearLinkText,
895
+ primaryColor: "var(--ds-icon-subtle, #626F86)"
898
896
  }))))), (0, _react2.jsx)("label", {
899
897
  htmlFor: displayTextInputId,
900
898
  css: [inputLabel, textLabelMargin]
@@ -915,13 +913,13 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
915
913
  css: clearTextWrapper
916
914
  }, (0, _react2.jsx)(_tooltip.default, {
917
915
  content: formatMessage(messages.clearText)
918
- }, (0, _react2.jsx)("button", {
919
- type: "button",
920
- css: clearText,
916
+ }, (0, _react2.jsx)(_primitives.Pressable, {
917
+ xcss: clearTextButtonStyles,
921
918
  onClick: this.handleClearDisplayText,
922
919
  onKeyDown: this.handleClearTextKeyDown
923
920
  }, (0, _react2.jsx)(_crossCircle.default, {
924
- label: formatMessage(messages.clearText)
921
+ label: formatMessage(messages.clearText),
922
+ primaryColor: "var(--ds-icon-subtle, #626F86)"
925
923
  }))))), (0, _react2.jsx)("div", {
926
924
  css: visuallyHiddenStyles,
927
925
  "aria-live": "polite",
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "82.9.1";
20
+ var packageVersion = "82.10.0";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -18,9 +18,9 @@ var gapCursorBlink = (0, _react.keyframes)({
18
18
  });
19
19
  var hideCaretModifier = exports.hideCaretModifier = 'ProseMirror-hide-gapcursor';
20
20
  var gapCursor = '.ProseMirror-gapcursor';
21
- var prosemirrorwidget = '.ProseMirror-widget';
21
+ var prosemirrorwidgetNotBlock = '.ProseMirror-widget:not([data-blocks-decoration-container="true"]):not([data-blocks-drag-handle-container="true"])';
22
22
  var wrapLeft = '[layout="wrap-left"]';
23
23
  var wrapRight = '[layout="wrap-right"]';
24
24
 
25
25
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-keyframes, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766, This needs manual remediation, it autofixes seemingly safely, but the code style and readability is destroyed.
26
- var gapCursorStyles = exports.gapCursorStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* =============== GAP CURSOR ================== */\n\t.ProseMirror {\n\t\t&.", " {\n\t\t\tcaret-color: transparent;\n\t\t}\n\n\t\t", " {\n\t\t\tdisplay: none;\n\t\t\tpointer-events: none;\n\t\t\tposition: relative;\n\n\t\t\t& span {\n\t\t\t\tcaret-color: transparent;\n\t\t\t\tposition: absolute;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t& span::after {\n\t\t\t\tanimation: 1s ", " step-end infinite;\n\t\t\t\tborder-left: 1px solid;\n\t\t\t\tcontent: '';\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t\t&.-left span::after {\n\t\t\t\tleft: ", ";\n\t\t\t}\n\t\t\t&.-right span::after {\n\t\t\t\tright: ", ";\n\t\t\t}\n\t\t\t& span[layout='full-width'],\n\t\t\t& span[layout='wide'],\n\t\t\t& span[layout='fixed-width'] {\n\t\t\t\tmargin-left: 50%;\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t}\n\t\t\t&", " {\n\t\t\t\tfloat: right;\n\t\t\t}\n\n\t\t\t/* fix vertical alignment of gap cursor */\n\t\t\t&:first-of-type + ul,\n\t\t\t&:first-of-type + span + ul,\n\t\t\t&:first-of-type + ol,\n\t\t\t&:first-of-type + span + ol,\n\t\t\t&:first-of-type + pre,\n\t\t\t&:first-of-type + span + pre,\n\t\t\t&:first-of-type + blockquote,\n\t\t\t&:first-of-type + span + blockquote {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\t\t&.ProseMirror-focused ", " {\n\t\t\tdisplay: block;\n\t\t\tborder-color: transparent;\n\t\t}\n\t}\n\n\t/* This hack below is for two images aligned side by side */\n\t", "", " + span + ", ",\n ", "", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " {\n\t\tclear: none;\n\t}\n\n\t", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div {\n\t\tmargin-right: 0;\n\t\tmargin-left: 0;\n\t\tmargin-bottom: 0;\n\t}\n\n\t", " + ", ",\n ", " + ", " {\n\t\tfloat: left;\n\t}\n\n\t", " + ", " + span + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after {\n\t\tvisibility: hidden;\n\t\tdisplay: block;\n\t\tfont-size: 0;\n\t\tcontent: ' ';\n\t\tclear: both;\n\t\theight: 0;\n\t}\n\n\t", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + *,\n ", " + ", " + span + * {\n\t\tmargin-top: 0;\n\t}\n"])), hideCaretModifier, gapCursor, gapCursorBlink, "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", wrapRight, gapCursor, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, wrapLeft, gapCursor, wrapRight, gapCursor, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, prosemirrorwidget, gapCursor, prosemirrorwidget, gapCursor);
26
+ var gapCursorStyles = exports.gapCursorStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* =============== GAP CURSOR ================== */\n\t.ProseMirror {\n\t\t&.", " {\n\t\t\tcaret-color: transparent;\n\t\t}\n\n\t\t", " {\n\t\t\tdisplay: none;\n\t\t\tpointer-events: none;\n\t\t\tposition: relative;\n\n\t\t\t& span {\n\t\t\t\tcaret-color: transparent;\n\t\t\t\tposition: absolute;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t& span::after {\n\t\t\t\tanimation: 1s ", " step-end infinite;\n\t\t\t\tborder-left: 1px solid;\n\t\t\t\tcontent: '';\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t\t&.-left span::after {\n\t\t\t\tleft: ", ";\n\t\t\t}\n\t\t\t&.-right span::after {\n\t\t\t\tright: ", ";\n\t\t\t}\n\t\t\t& span[layout='full-width'],\n\t\t\t& span[layout='wide'],\n\t\t\t& span[layout='fixed-width'] {\n\t\t\t\tmargin-left: 50%;\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t}\n\t\t\t&", " {\n\t\t\t\tfloat: right;\n\t\t\t}\n\n\t\t\t/* fix vertical alignment of gap cursor */\n\t\t\t&:first-of-type + ul,\n\t\t\t&:first-of-type + span + ul,\n\t\t\t&:first-of-type + ol,\n\t\t\t&:first-of-type + span + ol,\n\t\t\t&:first-of-type + pre,\n\t\t\t&:first-of-type + span + pre,\n\t\t\t&:first-of-type + blockquote,\n\t\t\t&:first-of-type + span + blockquote {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\t\t&.ProseMirror-focused ", " {\n\t\t\tdisplay: block;\n\t\t\tborder-color: transparent;\n\t\t}\n\t}\n\n\t/* This hack below is for two images aligned side by side */\n\t", "", " + span + ", ",\n ", "", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " {\n\t\tclear: none;\n\t}\n\n\t", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div {\n\t\tmargin-right: 0;\n\t\tmargin-left: 0;\n\t\tmargin-bottom: 0;\n\t}\n\n\t", " + ", ",\n ", " + ", " {\n\t\tfloat: left;\n\t}\n\n\t", " + ", " + span + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after {\n\t\tvisibility: hidden;\n\t\tdisplay: block;\n\t\tfont-size: 0;\n\t\tcontent: ' ';\n\t\tclear: both;\n\t\theight: 0;\n\t}\n\n\t", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + *,\n ", " + ", " + span + * {\n\t\tmargin-top: 0;\n\t}\n"])), hideCaretModifier, gapCursor, gapCursorBlink, "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", wrapRight, gapCursor, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, wrapLeft, gapCursor, wrapRight, gapCursor, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, prosemirrorwidgetNotBlock, gapCursor, prosemirrorwidgetNotBlock, gapCursor);
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "82.9.1";
23
+ var packageVersion = "82.10.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -25,12 +25,15 @@ function ExtensionWithPluginState(props) {
25
25
  shadowClassNames,
26
26
  hideFrame,
27
27
  editorAppearance,
28
- showMacroInteractionDesignUpdates,
28
+ macroInteractionDesignFeatureFlags,
29
29
  isNodeSelected,
30
30
  isNodeHovered,
31
31
  isNodeNested,
32
32
  setIsNodeHovered
33
33
  } = props;
34
+ const {
35
+ showMacroInteractionDesignUpdates
36
+ } = macroInteractionDesignFeatureFlags || {};
34
37
  const hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name);
35
38
  const isMobile = editorAppearance === 'mobile';
36
39
  const hasChildren = !!children;
@@ -15,12 +15,15 @@ const InlineExtension = props => {
15
15
  const {
16
16
  node,
17
17
  pluginInjectionApi,
18
- showMacroInteractionDesignUpdates,
18
+ macroInteractionDesignFeatureFlags,
19
19
  isNodeSelected,
20
20
  children,
21
21
  isNodeHovered,
22
22
  setIsNodeHovered
23
23
  } = props;
24
+ const {
25
+ showMacroInteractionDesignUpdates
26
+ } = macroInteractionDesignFeatureFlags || {};
24
27
  const {
25
28
  widthState
26
29
  } = useSharedPluginState(pluginInjectionApi, ['width']);
@@ -18,7 +18,7 @@ export class Extension extends Component {
18
18
  editorAppearance,
19
19
  pluginInjectionApi,
20
20
  eventDispatcher,
21
- showMacroInteractionDesignUpdates
21
+ macroInteractionDesignFeatureFlags
22
22
  } = this.props;
23
23
  return /*#__PURE__*/React.createElement(ExtensionComponent, {
24
24
  editorView: editorView,
@@ -31,7 +31,7 @@ export class Extension extends Component {
31
31
  editorAppearance: editorAppearance,
32
32
  pluginInjectionApi: pluginInjectionApi,
33
33
  eventDispatcher: eventDispatcher,
34
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
34
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags
35
35
  });
36
36
  });
37
37
  this.providerFactory = props.providerFactory || new ProviderFactory();
@@ -152,7 +152,7 @@ export class ExtensionComponent extends Component {
152
152
  pluginInjectionApi,
153
153
  getPos,
154
154
  eventDispatcher,
155
- showMacroInteractionDesignUpdates
155
+ macroInteractionDesignFeatureFlags
156
156
  } = this.props;
157
157
  const {
158
158
  selection
@@ -171,7 +171,7 @@ export class ExtensionComponent extends Component {
171
171
  eventDispatcher: eventDispatcher,
172
172
  pluginInjectionApi: pluginInjectionApi,
173
173
  editorAppearance: editorAppearance,
174
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
174
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags,
175
175
  isNodeSelected: selectedNode === node,
176
176
  isNodeNested: isNodeNested,
177
177
  isNodeHovered: this.state.isNodeHovered,
@@ -192,7 +192,7 @@ export class ExtensionComponent extends Component {
192
192
  editorAppearance: editorAppearance,
193
193
  hideFrame: (_this$state$_privateP = this.state._privateProps) === null || _this$state$_privateP === void 0 ? void 0 : _this$state$_privateP.__hideFrame,
194
194
  pluginInjectionApi: pluginInjectionApi,
195
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
195
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags,
196
196
  isNodeSelected: selectedNode === node,
197
197
  isNodeHovered: this.state.isNodeHovered,
198
198
  isNodeNested: isNodeNested,
@@ -201,7 +201,7 @@ export class ExtensionComponent extends Component {
201
201
  case 'inlineExtension':
202
202
  return /*#__PURE__*/React.createElement(InlineExtension, {
203
203
  node: node,
204
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
204
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags,
205
205
  isNodeSelected: selectedNode === node,
206
206
  pluginInjectionApi: pluginInjectionApi,
207
207
  isNodeHovered: this.state.isNodeHovered,
@@ -26,8 +26,11 @@ const styles = css({
26
26
  export const ExtensionNodeWrapper = ({
27
27
  children,
28
28
  nodeType,
29
- showMacroInteractionDesignUpdates
29
+ macroInteractionDesignFeatureFlags
30
30
  }) => {
31
+ const {
32
+ showMacroInteractionDesignUpdates
33
+ } = macroInteractionDesignFeatureFlags || {};
31
34
  const wrapperClassNames = classnames({
32
35
  'inline-extension': nodeType === 'inlineExtension' && showMacroInteractionDesignUpdates,
33
36
  relative: showMacroInteractionDesignUpdates
@@ -70,12 +70,15 @@ const MultiBodiedExtensionWithWidth = ({
70
70
  eventDispatcher,
71
71
  widthState,
72
72
  editorAppearance,
73
- showMacroInteractionDesignUpdates,
73
+ macroInteractionDesignFeatureFlags,
74
74
  isNodeSelected,
75
75
  isNodeHovered,
76
76
  isNodeNested,
77
77
  setIsNodeHovered
78
78
  }) => {
79
+ const {
80
+ showMacroInteractionDesignUpdates
81
+ } = macroInteractionDesignFeatureFlags || {};
79
82
  const {
80
83
  parameters,
81
84
  extensionKey
@@ -29,7 +29,7 @@ export class ExtensionNode extends ReactNodeView {
29
29
  var _props$extensionNodeV;
30
30
  return /*#__PURE__*/React.createElement(ExtensionNodeWrapper, {
31
31
  nodeType: this.node.type.name,
32
- showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
32
+ macroInteractionDesignFeatureFlags: props.macroInteractionDesignFeatureFlags
33
33
  }, /*#__PURE__*/React.createElement(Extension, {
34
34
  editorView: this.view,
35
35
  node: this.node,
@@ -47,11 +47,11 @@ export class ExtensionNode extends ReactNodeView {
47
47
  extensionHandlers: props.extensionHandlers,
48
48
  editorAppearance: (_props$extensionNodeV = props.extensionNodeViewOptions) === null || _props$extensionNodeV === void 0 ? void 0 : _props$extensionNodeV.appearance,
49
49
  pluginInjectionApi: props.pluginInjectionApi,
50
- showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
50
+ macroInteractionDesignFeatureFlags: props.macroInteractionDesignFeatureFlags
51
51
  }));
52
52
  }
53
53
  }
54
- export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, showMacroInteractionDesignUpdates) {
54
+ export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags) {
55
55
  return (node, view, getPos) => {
56
56
  const hasIntlContext = true;
57
57
  return new ExtensionNode(node, view, getPos, portalProviderAPI, eventDispatcher, {
@@ -59,7 +59,7 @@ export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, pr
59
59
  extensionHandlers,
60
60
  extensionNodeViewOptions,
61
61
  pluginInjectionApi,
62
- showMacroInteractionDesignUpdates
62
+ macroInteractionDesignFeatureFlags
63
63
  }, undefined, undefined, undefined, hasIntlContext).init();
64
64
  };
65
65
  }
@@ -12,7 +12,8 @@ import { isSafeUrl } from '@atlaskit/adf-schema';
12
12
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
13
13
  import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
14
14
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
15
- import { N200, N90 } from '@atlaskit/theme/colors';
15
+ import { Pressable, xcss } from '@atlaskit/primitives';
16
+ import { N200 } from '@atlaskit/theme/colors';
16
17
  import { fontSizeSmall } from '@atlaskit/theme/constants';
17
18
  import Tooltip from '@atlaskit/tooltip';
18
19
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '../../../analytics';
@@ -39,12 +40,10 @@ export const visuallyHiddenStyles = css({
39
40
  position: 'absolute'
40
41
  });
41
42
  export const RECENT_SEARCH_LIST_SIZE = 5;
42
- const clearText = css({
43
- cursor: 'pointer',
44
- padding: 0,
45
- marginRight: "var(--ds-space-100, 8px)",
46
- color: `var(--ds-icon-subtle, ${N90})`,
47
- background: 'transparent',
43
+ const clearTextButtonStyles = xcss({
44
+ padding: 'space.0',
45
+ marginRight: 'space.100',
46
+ backgroundColor: 'color.background.neutral.subtle',
48
47
  border: 'none'
49
48
  });
50
49
  const clearTextWrapper = css({
@@ -728,13 +727,12 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
728
727
  css: clearTextWrapper
729
728
  }, jsx(Tooltip, {
730
729
  content: formatClearLinkText
731
- }, jsx("button", {
732
- type: "button",
733
- css: clearText,
734
- onClick: this.handleClearText,
735
- tabIndex: 0
730
+ }, jsx(Pressable, {
731
+ xcss: clearTextButtonStyles,
732
+ onClick: this.handleClearText
736
733
  }, jsx(CrossCircleIcon, {
737
- label: formatClearLinkText
734
+ label: formatClearLinkText,
735
+ primaryColor: "var(--ds-icon-subtle, #626F86)"
738
736
  }))))), jsx("label", {
739
737
  htmlFor: displayTextInputId,
740
738
  css: [inputLabel, textLabelMargin]
@@ -753,13 +751,13 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
753
751
  css: clearTextWrapper
754
752
  }, jsx(Tooltip, {
755
753
  content: formatMessage(messages.clearText)
756
- }, jsx("button", {
757
- type: "button",
758
- css: clearText,
754
+ }, jsx(Pressable, {
755
+ xcss: clearTextButtonStyles,
759
756
  onClick: this.handleClearDisplayText,
760
757
  onKeyDown: this.handleClearTextKeyDown
761
758
  }, jsx(CrossCircleIcon, {
762
- label: formatMessage(messages.clearText)
759
+ label: formatMessage(messages.clearText),
760
+ primaryColor: "var(--ds-icon-subtle, #626F86)"
763
761
  }))))), jsx("div", {
764
762
  css: visuallyHiddenStyles,
765
763
  "aria-live": "polite",
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "82.9.1";
4
+ const packageVersion = "82.10.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -10,7 +10,7 @@ const gapCursorBlink = keyframes({
10
10
  });
11
11
  export const hideCaretModifier = 'ProseMirror-hide-gapcursor';
12
12
  const gapCursor = '.ProseMirror-gapcursor';
13
- const prosemirrorwidget = '.ProseMirror-widget';
13
+ const prosemirrorwidgetNotBlock = '.ProseMirror-widget:not([data-blocks-decoration-container="true"]):not([data-blocks-drag-handle-container="true"])';
14
14
  const wrapLeft = '[layout="wrap-left"]';
15
15
  const wrapRight = '[layout="wrap-right"]';
16
16
 
@@ -141,8 +141,8 @@ export const gapCursorStyles = css`
141
141
  ${wrapRight} + ${gapCursor} + span + ${wrapLeft} + * > *,
142
142
  ${gapCursor} + ${wrapLeft} + span + ${wrapRight} + * > *,
143
143
  ${gapCursor} + ${wrapRight} + span + ${wrapLeft} + * > *,
144
- ${prosemirrorwidget} + ${gapCursor} + *,
145
- ${prosemirrorwidget} + ${gapCursor} + span + * {
144
+ ${prosemirrorwidgetNotBlock} + ${gapCursor} + *,
145
+ ${prosemirrorwidgetNotBlock} + ${gapCursor} + span + * {
146
146
  margin-top: 0;
147
147
  }
148
148
  `;
@@ -9,7 +9,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
9
9
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
10
10
  import Layer from '../Layer';
11
11
  const packageName = "@atlaskit/editor-common";
12
- const packageVersion = "82.9.1";
12
+ const packageVersion = "82.10.0";
13
13
  const halfFocusRing = 1;
14
14
  const dropOffset = '0, 8';
15
15
  class DropList extends Component {
@@ -30,11 +30,13 @@ function ExtensionWithPluginState(props) {
30
30
  shadowClassNames = props.shadowClassNames,
31
31
  hideFrame = props.hideFrame,
32
32
  editorAppearance = props.editorAppearance,
33
- showMacroInteractionDesignUpdates = props.showMacroInteractionDesignUpdates,
33
+ macroInteractionDesignFeatureFlags = props.macroInteractionDesignFeatureFlags,
34
34
  isNodeSelected = props.isNodeSelected,
35
35
  isNodeHovered = props.isNodeHovered,
36
36
  isNodeNested = props.isNodeNested,
37
37
  setIsNodeHovered = props.setIsNodeHovered;
38
+ var _ref = macroInteractionDesignFeatureFlags || {},
39
+ showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
38
40
  var hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name);
39
41
  var isMobile = editorAppearance === 'mobile';
40
42
  var hasChildren = !!children;
@@ -191,8 +193,8 @@ var ExtensionDeprecated = function ExtensionDeprecated(props) {
191
193
  plugins: {
192
194
  widthState: widthPluginKey
193
195
  },
194
- render: function render(_ref) {
195
- var widthState = _ref.widthState;
196
+ render: function render(_ref2) {
197
+ var widthState = _ref2.widthState;
196
198
  return jsx(ExtensionWithPluginState, _extends({
197
199
  widthState: widthState
198
200
  }, props));
@@ -14,11 +14,13 @@ import { inlineWrapperStyles, wrapperStyle } from './styles';
14
14
  var InlineExtension = function InlineExtension(props) {
15
15
  var node = props.node,
16
16
  pluginInjectionApi = props.pluginInjectionApi,
17
- showMacroInteractionDesignUpdates = props.showMacroInteractionDesignUpdates,
17
+ macroInteractionDesignFeatureFlags = props.macroInteractionDesignFeatureFlags,
18
18
  isNodeSelected = props.isNodeSelected,
19
19
  children = props.children,
20
20
  isNodeHovered = props.isNodeHovered,
21
21
  setIsNodeHovered = props.setIsNodeHovered;
22
+ var _ref = macroInteractionDesignFeatureFlags || {},
23
+ showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
22
24
  var _useSharedPluginState = useSharedPluginState(pluginInjectionApi, ['width']),
23
25
  widthState = _useSharedPluginState.widthState;
24
26
  var hasChildren = !!children;