@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
@@ -29,7 +29,7 @@ export var Extension = /*#__PURE__*/function (_Component) {
29
29
  editorAppearance = _this$props.editorAppearance,
30
30
  pluginInjectionApi = _this$props.pluginInjectionApi,
31
31
  eventDispatcher = _this$props.eventDispatcher,
32
- showMacroInteractionDesignUpdates = _this$props.showMacroInteractionDesignUpdates;
32
+ macroInteractionDesignFeatureFlags = _this$props.macroInteractionDesignFeatureFlags;
33
33
  return /*#__PURE__*/React.createElement(ExtensionComponent, {
34
34
  editorView: editorView,
35
35
  node: node,
@@ -41,7 +41,7 @@ export var Extension = /*#__PURE__*/function (_Component) {
41
41
  editorAppearance: editorAppearance,
42
42
  pluginInjectionApi: pluginInjectionApi,
43
43
  eventDispatcher: eventDispatcher,
44
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
44
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags
45
45
  });
46
46
  });
47
47
  _this.providerFactory = props.providerFactory || new ProviderFactory();
@@ -190,7 +190,7 @@ export var ExtensionComponent = /*#__PURE__*/function (_Component) {
190
190
  pluginInjectionApi = _this$props2.pluginInjectionApi,
191
191
  getPos = _this$props2.getPos,
192
192
  eventDispatcher = _this$props2.eventDispatcher,
193
- showMacroInteractionDesignUpdates = _this$props2.showMacroInteractionDesignUpdates;
193
+ macroInteractionDesignFeatureFlags = _this$props2.macroInteractionDesignFeatureFlags;
194
194
  var selection = editorView.state.selection;
195
195
  var selectedNode = selection instanceof NodeSelection && selection.node;
196
196
  var position = typeof getPos === 'function' && getPos();
@@ -206,7 +206,7 @@ export var ExtensionComponent = /*#__PURE__*/function (_Component) {
206
206
  eventDispatcher: eventDispatcher,
207
207
  pluginInjectionApi: pluginInjectionApi,
208
208
  editorAppearance: editorAppearance,
209
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
209
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags,
210
210
  isNodeSelected: selectedNode === node,
211
211
  isNodeNested: isNodeNested,
212
212
  isNodeHovered: this.state.isNodeHovered,
@@ -227,7 +227,7 @@ export var ExtensionComponent = /*#__PURE__*/function (_Component) {
227
227
  editorAppearance: editorAppearance,
228
228
  hideFrame: (_this$state$_privateP = this.state._privateProps) === null || _this$state$_privateP === void 0 ? void 0 : _this$state$_privateP.__hideFrame,
229
229
  pluginInjectionApi: pluginInjectionApi,
230
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
230
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags,
231
231
  isNodeSelected: selectedNode === node,
232
232
  isNodeHovered: this.state.isNodeHovered,
233
233
  isNodeNested: isNodeNested,
@@ -236,7 +236,7 @@ export var ExtensionComponent = /*#__PURE__*/function (_Component) {
236
236
  case 'inlineExtension':
237
237
  return /*#__PURE__*/React.createElement(InlineExtension, {
238
238
  node: node,
239
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
239
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags,
240
240
  isNodeSelected: selectedNode === node,
241
241
  pluginInjectionApi: pluginInjectionApi,
242
242
  isNodeHovered: this.state.isNodeHovered,
@@ -26,7 +26,9 @@ var styles = css({
26
26
  export var ExtensionNodeWrapper = function ExtensionNodeWrapper(_ref) {
27
27
  var children = _ref.children,
28
28
  nodeType = _ref.nodeType,
29
- showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
29
+ macroInteractionDesignFeatureFlags = _ref.macroInteractionDesignFeatureFlags;
30
+ var _ref2 = macroInteractionDesignFeatureFlags || {},
31
+ showMacroInteractionDesignUpdates = _ref2.showMacroInteractionDesignUpdates;
30
32
  var wrapperClassNames = classnames({
31
33
  'inline-extension': nodeType === 'inlineExtension' && showMacroInteractionDesignUpdates,
32
34
  relative: showMacroInteractionDesignUpdates
@@ -73,11 +73,13 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
73
73
  eventDispatcher = _ref.eventDispatcher,
74
74
  widthState = _ref.widthState,
75
75
  editorAppearance = _ref.editorAppearance,
76
- showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates,
76
+ macroInteractionDesignFeatureFlags = _ref.macroInteractionDesignFeatureFlags,
77
77
  isNodeSelected = _ref.isNodeSelected,
78
78
  isNodeHovered = _ref.isNodeHovered,
79
79
  isNodeNested = _ref.isNodeNested,
80
80
  setIsNodeHovered = _ref.setIsNodeHovered;
81
+ var _ref2 = macroInteractionDesignFeatureFlags || {},
82
+ showMacroInteractionDesignUpdates = _ref2.showMacroInteractionDesignUpdates;
81
83
  var _node$attrs = node.attrs,
82
84
  parameters = _node$attrs.parameters,
83
85
  extensionKey = _node$attrs.extensionKey;
@@ -242,8 +244,8 @@ var MultiBodiedExtensionDeprecated = function MultiBodiedExtensionDeprecated(pro
242
244
  plugins: {
243
245
  widthState: widthPluginKey
244
246
  },
245
- render: function render(_ref2) {
246
- var widthState = _ref2.widthState;
247
+ render: function render(_ref3) {
248
+ var widthState = _ref3.widthState;
247
249
  return jsx(MultiBodiedExtensionWithWidth, _extends({
248
250
  widthState: widthState
249
251
  }, props));
@@ -48,7 +48,7 @@ export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
48
48
  var _props$extensionNodeV;
49
49
  return /*#__PURE__*/React.createElement(ExtensionNodeWrapper, {
50
50
  nodeType: this.node.type.name,
51
- showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
51
+ macroInteractionDesignFeatureFlags: props.macroInteractionDesignFeatureFlags
52
52
  }, /*#__PURE__*/React.createElement(Extension, {
53
53
  editorView: this.view,
54
54
  node: this.node,
@@ -66,13 +66,13 @@ export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
66
66
  extensionHandlers: props.extensionHandlers,
67
67
  editorAppearance: (_props$extensionNodeV = props.extensionNodeViewOptions) === null || _props$extensionNodeV === void 0 ? void 0 : _props$extensionNodeV.appearance,
68
68
  pluginInjectionApi: props.pluginInjectionApi,
69
- showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
69
+ macroInteractionDesignFeatureFlags: props.macroInteractionDesignFeatureFlags
70
70
  }));
71
71
  }
72
72
  }]);
73
73
  return ExtensionNode;
74
74
  }(ReactNodeView);
75
- export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, showMacroInteractionDesignUpdates) {
75
+ export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags) {
76
76
  return function (node, view, getPos) {
77
77
  var hasIntlContext = true;
78
78
  return new ExtensionNode(node, view, getPos, portalProviderAPI, eventDispatcher, {
@@ -80,7 +80,7 @@ export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, pr
80
80
  extensionHandlers: extensionHandlers,
81
81
  extensionNodeViewOptions: extensionNodeViewOptions,
82
82
  pluginInjectionApi: pluginInjectionApi,
83
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
83
+ macroInteractionDesignFeatureFlags: macroInteractionDesignFeatureFlags
84
84
  }, undefined, undefined, undefined, hasIntlContext).init();
85
85
  };
86
86
  }
@@ -24,7 +24,8 @@ import { isSafeUrl } from '@atlaskit/adf-schema';
24
24
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
25
25
  import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
26
26
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
27
- import { N200, N90 } from '@atlaskit/theme/colors';
27
+ import { Pressable, xcss } from '@atlaskit/primitives';
28
+ import { N200 } from '@atlaskit/theme/colors';
28
29
  import { fontSizeSmall } from '@atlaskit/theme/constants';
29
30
  import Tooltip from '@atlaskit/tooltip';
30
31
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '../../../analytics';
@@ -51,12 +52,10 @@ export var visuallyHiddenStyles = css({
51
52
  position: 'absolute'
52
53
  });
53
54
  export var RECENT_SEARCH_LIST_SIZE = 5;
54
- var clearText = css({
55
- cursor: 'pointer',
56
- padding: 0,
57
- marginRight: "var(--ds-space-100, 8px)",
58
- color: "var(--ds-icon-subtle, ".concat(N90, ")"),
59
- background: 'transparent',
55
+ var clearTextButtonStyles = xcss({
56
+ padding: 'space.0',
57
+ marginRight: 'space.100',
58
+ backgroundColor: 'color.background.neutral.subtle',
60
59
  border: 'none'
61
60
  });
62
61
  var clearTextWrapper = css({
@@ -883,13 +882,12 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
883
882
  css: clearTextWrapper
884
883
  }, jsx(Tooltip, {
885
884
  content: formatClearLinkText
886
- }, jsx("button", {
887
- type: "button",
888
- css: clearText,
889
- onClick: this.handleClearText,
890
- tabIndex: 0
885
+ }, jsx(Pressable, {
886
+ xcss: clearTextButtonStyles,
887
+ onClick: this.handleClearText
891
888
  }, jsx(CrossCircleIcon, {
892
- label: formatClearLinkText
889
+ label: formatClearLinkText,
890
+ primaryColor: "var(--ds-icon-subtle, #626F86)"
893
891
  }))))), jsx("label", {
894
892
  htmlFor: displayTextInputId,
895
893
  css: [inputLabel, textLabelMargin]
@@ -910,13 +908,13 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
910
908
  css: clearTextWrapper
911
909
  }, jsx(Tooltip, {
912
910
  content: formatMessage(messages.clearText)
913
- }, jsx("button", {
914
- type: "button",
915
- css: clearText,
911
+ }, jsx(Pressable, {
912
+ xcss: clearTextButtonStyles,
916
913
  onClick: this.handleClearDisplayText,
917
914
  onKeyDown: this.handleClearTextKeyDown
918
915
  }, jsx(CrossCircleIcon, {
919
- label: formatMessage(messages.clearText)
916
+ label: formatMessage(messages.clearText),
917
+ primaryColor: "var(--ds-icon-subtle, #626F86)"
920
918
  }))))), jsx("div", {
921
919
  css: visuallyHiddenStyles,
922
920
  "aria-live": "polite",
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "82.9.1";
10
+ var packageVersion = "82.10.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -12,9 +12,9 @@ var gapCursorBlink = keyframes({
12
12
  });
13
13
  export var hideCaretModifier = 'ProseMirror-hide-gapcursor';
14
14
  var gapCursor = '.ProseMirror-gapcursor';
15
- var prosemirrorwidget = '.ProseMirror-widget';
15
+ var prosemirrorwidgetNotBlock = '.ProseMirror-widget:not([data-blocks-decoration-container="true"]):not([data-blocks-drag-handle-container="true"])';
16
16
  var wrapLeft = '[layout="wrap-left"]';
17
17
  var wrapRight = '[layout="wrap-right"]';
18
18
 
19
19
  // 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.
20
- export var gapCursorStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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);
20
+ export var gapCursorStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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);
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "82.9.1";
20
+ var packageVersion = "82.10.0";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -4,7 +4,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { ExtensionProvider, ReferenceEntity } from '../../../extensions';
5
5
  import type { ProsemirrorGetPosHandler } from '../../../react-node-view';
6
6
  import type { EditorAppearance } from '../../../types';
7
- import type { ExtensionsPluginInjectionAPI } from '../../types';
7
+ import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from '../../types';
8
8
  export interface Props {
9
9
  node: PmNode;
10
10
  getPos: ProsemirrorGetPosHandler;
@@ -16,7 +16,7 @@ export interface Props {
16
16
  hideFrame?: boolean;
17
17
  editorAppearance?: EditorAppearance;
18
18
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
19
- showMacroInteractionDesignUpdates?: boolean;
19
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
20
20
  isNodeSelected?: boolean;
21
21
  isNodeHovered?: boolean;
22
22
  isNodeNested?: boolean;
@@ -2,12 +2,12 @@
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
5
- import type { ExtensionsPluginInjectionAPI } from '../../types';
5
+ import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from '../../types';
6
6
  export interface Props {
7
7
  node: PmNode;
8
8
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
9
9
  children?: React.ReactNode;
10
- showMacroInteractionDesignUpdates?: boolean;
10
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
11
11
  isNodeSelected?: boolean;
12
12
  isNodeHovered?: boolean;
13
13
  setIsNodeHovered?: (isHovered: boolean) => void;
@@ -6,7 +6,7 @@ import type { ExtensionHandlers, ReferenceEntity } from '../extensions';
6
6
  import { ProviderFactory } from '../provider-factory';
7
7
  import type { ProsemirrorGetPosHandler } from '../react-node-view';
8
8
  import type { EditorAppearance } from '../types';
9
- import type { ExtensionsPluginInjectionAPI } from './types';
9
+ import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from './types';
10
10
  export interface Props {
11
11
  editorView: EditorView;
12
12
  node: PMNode;
@@ -18,7 +18,7 @@ export interface Props {
18
18
  editorAppearance?: EditorAppearance;
19
19
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
20
20
  eventDispatcher?: EventDispatcher;
21
- showMacroInteractionDesignUpdates?: boolean;
21
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
22
22
  }
23
23
  export declare class Extension extends Component<Props, any> {
24
24
  static displayName: string;
@@ -6,7 +6,7 @@ import { getExtensionModuleNodePrivateProps, getNodeRenderer } from '../extensio
6
6
  import type { ExtensionHandlers, ExtensionProvider, ReferenceEntity } from '../extensions';
7
7
  import type { ProsemirrorGetPosHandler } from '../react-node-view';
8
8
  import type { EditorAppearance } from '../types';
9
- import type { ExtensionsPluginInjectionAPI } from './types';
9
+ import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from './types';
10
10
  export interface Props {
11
11
  editorView: EditorView;
12
12
  node: PMNode;
@@ -18,7 +18,7 @@ export interface Props {
18
18
  editorAppearance?: EditorAppearance;
19
19
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
20
20
  eventDispatcher?: EventDispatcher;
21
- showMacroInteractionDesignUpdates?: boolean;
21
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
22
22
  }
23
23
  export interface State {
24
24
  extensionProvider?: ExtensionProvider;
@@ -1,10 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
+ import type { MacroInteractionDesignFeatureFlags } from "./types";
4
5
  type Props = {
5
6
  children: React.ReactNode;
6
7
  nodeType: string;
7
- showMacroInteractionDesignUpdates?: boolean;
8
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
8
9
  };
9
10
  /**
10
11
  * If inlineExtension, add zero width space to the end of the nodes and wrap with span;
@@ -14,5 +15,5 @@ type Props = {
14
15
  * @param param0
15
16
  * @returns
16
17
  */
17
- export declare const ExtensionNodeWrapper: ({ children, nodeType, showMacroInteractionDesignUpdates, }: Props) => jsx.JSX.Element;
18
+ export declare const ExtensionNodeWrapper: ({ children, nodeType, macroInteractionDesignFeatureFlags, }: Props) => jsx.JSX.Element;
18
19
  export {};
@@ -7,7 +7,7 @@ import type { EventDispatcher } from '../../event-dispatcher';
7
7
  import type { MultiBodiedExtensionActions } from '../../extensions';
8
8
  import type { EditorAppearance } from '../../types';
9
9
  import type { OverflowShadowProps } from '../../ui';
10
- import type { ExtensionsPluginInjectionAPI } from '../types';
10
+ import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from '../types';
11
11
  export type TryExtensionHandlerType = (actions: MultiBodiedExtensionActions | undefined) => React.ReactElement | null;
12
12
  type Props = {
13
13
  node: PmNode;
@@ -18,7 +18,7 @@ type Props = {
18
18
  eventDispatcher?: EventDispatcher;
19
19
  pluginInjectionApi?: ExtensionsPluginInjectionAPI;
20
20
  editorAppearance?: EditorAppearance;
21
- showMacroInteractionDesignUpdates?: boolean;
21
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
22
22
  isNodeSelected?: boolean;
23
23
  isNodeHovered?: boolean;
24
24
  isNodeNested?: boolean;
@@ -9,7 +9,7 @@ import type { ForwardRef, getPosHandler } from '../react-node-view';
9
9
  import ReactNodeView from '../react-node-view';
10
10
  import type { EditorAppearance } from '../types';
11
11
  import type { LegacyPortalProviderAPI } from '../ui/PortalProvider';
12
- import type { ExtensionsPluginInjectionAPI } from './types';
12
+ import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from './types';
13
13
  interface ExtensionNodeViewOptions {
14
14
  appearance?: EditorAppearance;
15
15
  }
@@ -26,8 +26,8 @@ export declare class ExtensionNode extends ReactNodeView {
26
26
  extensionHandlers: ExtensionHandlers;
27
27
  extensionNodeViewOptions?: ExtensionNodeViewOptions;
28
28
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
29
- showMacroInteractionDesignUpdates: boolean;
29
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
30
30
  }, forwardRef: ForwardRef): JSX.Element;
31
31
  }
32
- export default function ExtensionNodeView(portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: ExtensionsPluginInjectionAPI, showMacroInteractionDesignUpdates?: boolean): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
32
+ export default function ExtensionNodeView(portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: ExtensionsPluginInjectionAPI, macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
33
33
  export {};
@@ -3,4 +3,8 @@ type WidthPluginType = NextEditorPlugin<'width', {
3
3
  sharedState: EditorContainerWidth | undefined;
4
4
  }>;
5
5
  export type ExtensionsPluginInjectionAPI = PublicPluginAPI<[WidthPluginType]> | undefined;
6
+ export type MacroInteractionDesignFeatureFlags = {
7
+ showMacroInteractionDesignUpdates?: boolean;
8
+ showMacroButtonUpdates?: boolean;
9
+ };
6
10
  export {};
@@ -269,6 +269,14 @@ export type FeatureFlags = {
269
269
  * @default false
270
270
  */
271
271
  macroInteractionUpdates?: boolean;
272
+ /**
273
+ * @description
274
+ * Enables macro interaction visual button updates
275
+ *
276
+ * @see https://product-fabric.atlassian.net/browse/PGXT-5513
277
+ * @default false
278
+ */
279
+ macroInteractionButtonUpdates?: boolean;
272
280
  /**
273
281
  * @description
274
282
  * Enables bug fix on media comments
@@ -4,7 +4,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { ExtensionProvider, ReferenceEntity } from '../../../extensions';
5
5
  import type { ProsemirrorGetPosHandler } from '../../../react-node-view';
6
6
  import type { EditorAppearance } from '../../../types';
7
- import type { ExtensionsPluginInjectionAPI } from '../../types';
7
+ import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from '../../types';
8
8
  export interface Props {
9
9
  node: PmNode;
10
10
  getPos: ProsemirrorGetPosHandler;
@@ -16,7 +16,7 @@ export interface Props {
16
16
  hideFrame?: boolean;
17
17
  editorAppearance?: EditorAppearance;
18
18
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
19
- showMacroInteractionDesignUpdates?: boolean;
19
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
20
20
  isNodeSelected?: boolean;
21
21
  isNodeHovered?: boolean;
22
22
  isNodeNested?: boolean;
@@ -2,12 +2,12 @@
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
5
- import type { ExtensionsPluginInjectionAPI } from '../../types';
5
+ import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from '../../types';
6
6
  export interface Props {
7
7
  node: PmNode;
8
8
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
9
9
  children?: React.ReactNode;
10
- showMacroInteractionDesignUpdates?: boolean;
10
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
11
11
  isNodeSelected?: boolean;
12
12
  isNodeHovered?: boolean;
13
13
  setIsNodeHovered?: (isHovered: boolean) => void;
@@ -6,7 +6,7 @@ import type { ExtensionHandlers, ReferenceEntity } from '../extensions';
6
6
  import { ProviderFactory } from '../provider-factory';
7
7
  import type { ProsemirrorGetPosHandler } from '../react-node-view';
8
8
  import type { EditorAppearance } from '../types';
9
- import type { ExtensionsPluginInjectionAPI } from './types';
9
+ import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from './types';
10
10
  export interface Props {
11
11
  editorView: EditorView;
12
12
  node: PMNode;
@@ -18,7 +18,7 @@ export interface Props {
18
18
  editorAppearance?: EditorAppearance;
19
19
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
20
20
  eventDispatcher?: EventDispatcher;
21
- showMacroInteractionDesignUpdates?: boolean;
21
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
22
22
  }
23
23
  export declare class Extension extends Component<Props, any> {
24
24
  static displayName: string;
@@ -6,7 +6,7 @@ import { getExtensionModuleNodePrivateProps, getNodeRenderer } from '../extensio
6
6
  import type { ExtensionHandlers, ExtensionProvider, ReferenceEntity } from '../extensions';
7
7
  import type { ProsemirrorGetPosHandler } from '../react-node-view';
8
8
  import type { EditorAppearance } from '../types';
9
- import type { ExtensionsPluginInjectionAPI } from './types';
9
+ import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from './types';
10
10
  export interface Props {
11
11
  editorView: EditorView;
12
12
  node: PMNode;
@@ -18,7 +18,7 @@ export interface Props {
18
18
  editorAppearance?: EditorAppearance;
19
19
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
20
20
  eventDispatcher?: EventDispatcher;
21
- showMacroInteractionDesignUpdates?: boolean;
21
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
22
22
  }
23
23
  export interface State {
24
24
  extensionProvider?: ExtensionProvider;
@@ -1,10 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
+ import type { MacroInteractionDesignFeatureFlags } from "./types";
4
5
  type Props = {
5
6
  children: React.ReactNode;
6
7
  nodeType: string;
7
- showMacroInteractionDesignUpdates?: boolean;
8
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
8
9
  };
9
10
  /**
10
11
  * If inlineExtension, add zero width space to the end of the nodes and wrap with span;
@@ -14,5 +15,5 @@ type Props = {
14
15
  * @param param0
15
16
  * @returns
16
17
  */
17
- export declare const ExtensionNodeWrapper: ({ children, nodeType, showMacroInteractionDesignUpdates, }: Props) => jsx.JSX.Element;
18
+ export declare const ExtensionNodeWrapper: ({ children, nodeType, macroInteractionDesignFeatureFlags, }: Props) => jsx.JSX.Element;
18
19
  export {};
@@ -7,7 +7,7 @@ import type { EventDispatcher } from '../../event-dispatcher';
7
7
  import type { MultiBodiedExtensionActions } from '../../extensions';
8
8
  import type { EditorAppearance } from '../../types';
9
9
  import type { OverflowShadowProps } from '../../ui';
10
- import type { ExtensionsPluginInjectionAPI } from '../types';
10
+ import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from '../types';
11
11
  export type TryExtensionHandlerType = (actions: MultiBodiedExtensionActions | undefined) => React.ReactElement | null;
12
12
  type Props = {
13
13
  node: PmNode;
@@ -18,7 +18,7 @@ type Props = {
18
18
  eventDispatcher?: EventDispatcher;
19
19
  pluginInjectionApi?: ExtensionsPluginInjectionAPI;
20
20
  editorAppearance?: EditorAppearance;
21
- showMacroInteractionDesignUpdates?: boolean;
21
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
22
22
  isNodeSelected?: boolean;
23
23
  isNodeHovered?: boolean;
24
24
  isNodeNested?: boolean;
@@ -9,7 +9,7 @@ import type { ForwardRef, getPosHandler } from '../react-node-view';
9
9
  import ReactNodeView from '../react-node-view';
10
10
  import type { EditorAppearance } from '../types';
11
11
  import type { LegacyPortalProviderAPI } from '../ui/PortalProvider';
12
- import type { ExtensionsPluginInjectionAPI } from './types';
12
+ import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from './types';
13
13
  interface ExtensionNodeViewOptions {
14
14
  appearance?: EditorAppearance;
15
15
  }
@@ -26,8 +26,8 @@ export declare class ExtensionNode extends ReactNodeView {
26
26
  extensionHandlers: ExtensionHandlers;
27
27
  extensionNodeViewOptions?: ExtensionNodeViewOptions;
28
28
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
29
- showMacroInteractionDesignUpdates: boolean;
29
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
30
30
  }, forwardRef: ForwardRef): JSX.Element;
31
31
  }
32
- export default function ExtensionNodeView(portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: ExtensionsPluginInjectionAPI, showMacroInteractionDesignUpdates?: boolean): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
32
+ export default function ExtensionNodeView(portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: ExtensionsPluginInjectionAPI, macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
33
33
  export {};
@@ -5,4 +5,8 @@ type WidthPluginType = NextEditorPlugin<'width', {
5
5
  export type ExtensionsPluginInjectionAPI = PublicPluginAPI<[
6
6
  WidthPluginType
7
7
  ]> | undefined;
8
+ export type MacroInteractionDesignFeatureFlags = {
9
+ showMacroInteractionDesignUpdates?: boolean;
10
+ showMacroButtonUpdates?: boolean;
11
+ };
8
12
  export {};
@@ -269,6 +269,14 @@ export type FeatureFlags = {
269
269
  * @default false
270
270
  */
271
271
  macroInteractionUpdates?: boolean;
272
+ /**
273
+ * @description
274
+ * Enables macro interaction visual button updates
275
+ *
276
+ * @see https://product-fabric.atlassian.net/browse/PGXT-5513
277
+ * @default false
278
+ */
279
+ macroInteractionButtonUpdates?: boolean;
272
280
  /**
273
281
  * @description
274
282
  * Enables bug fix on media comments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "82.9.1",
3
+ "version": "82.10.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/"
@@ -102,7 +102,7 @@
102
102
  "@atlaskit/analytics-namespaced-context": "^6.10.0",
103
103
  "@atlaskit/analytics-next": "^9.3.0",
104
104
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
105
- "@atlaskit/button": "^17.22.0",
105
+ "@atlaskit/button": "^17.23.0",
106
106
  "@atlaskit/code": "^15.3.0",
107
107
  "@atlaskit/codemod-utils": "^4.2.0",
108
108
  "@atlaskit/custom-steps": "^0.2.0",
@@ -119,11 +119,11 @@
119
119
  "@atlaskit/media-card": "^77.12.0",
120
120
  "@atlaskit/media-client": "^27.3.0",
121
121
  "@atlaskit/media-client-react": "^2.0.0",
122
- "@atlaskit/media-common": "^11.2.0",
122
+ "@atlaskit/media-common": "^11.3.0",
123
123
  "@atlaskit/media-file-preview": "^0.5.0",
124
124
  "@atlaskit/media-picker": "^66.4.0",
125
125
  "@atlaskit/media-ui": "^25.10.0",
126
- "@atlaskit/media-viewer": "48.6.5",
126
+ "@atlaskit/media-viewer": "48.6.6",
127
127
  "@atlaskit/mention": "^23.2.0",
128
128
  "@atlaskit/menu": "^2.5.0",
129
129
  "@atlaskit/platform-feature-flags": "^0.2.0",
@@ -135,7 +135,7 @@
135
135
  "@atlaskit/spinner": "^16.2.0",
136
136
  "@atlaskit/task-decision": "^17.10.0",
137
137
  "@atlaskit/textfield": "^6.4.0",
138
- "@atlaskit/theme": "^12.10.0",
138
+ "@atlaskit/theme": "^12.11.0",
139
139
  "@atlaskit/tokens": "^1.51.0",
140
140
  "@atlaskit/tooltip": "^18.5.0",
141
141
  "@atlaskit/ufo": "^0.2.0",