@atlaskit/editor-common 112.8.0 → 112.8.2

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 (97) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/card/ui/assets/card.js +1 -1
  3. package/dist/cjs/card/ui/assets/embed.js +1 -1
  4. package/dist/cjs/card/ui/assets/inline.js +1 -1
  5. package/dist/cjs/card/ui/assets/url.js +1 -1
  6. package/dist/cjs/extensibility/Extension/Extension/index.js +3 -3
  7. package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  8. package/dist/cjs/extensibility/Extension.js +1 -1
  9. package/dist/cjs/keymaps/index.js +3 -2
  10. package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +2 -2
  11. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +2 -2
  12. package/dist/cjs/link/LinkSearch/LinkSearchList.js +2 -2
  13. package/dist/cjs/link/LinkSearch/withActivityProvider.js +1 -1
  14. package/dist/cjs/media-inline/inline-image-card.js +1 -1
  15. package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
  16. package/dist/cjs/media-single/CommentBadge.js +1 -1
  17. package/dist/cjs/media-single/CommentBadgeNext.js +1 -1
  18. package/dist/cjs/media-single/MediaBadges.js +1 -1
  19. package/dist/cjs/monitoring/error.js +1 -1
  20. package/dist/cjs/react-node-view/onVisibleObserverFactory.js +1 -1
  21. package/dist/cjs/resizer/BreakoutResizer.js +1 -1
  22. package/dist/cjs/resizer/Resizer.js +1 -1
  23. package/dist/cjs/toolbar/context.js +1 -1
  24. package/dist/cjs/ui/ContextPanel/context.js +1 -1
  25. package/dist/cjs/ui/DropList/index.js +1 -1
  26. package/dist/cjs/ui/FloatingToolbar/Button.js +2 -2
  27. package/dist/cjs/ui/Mention/index.js +1 -1
  28. package/dist/cjs/ui/ResizerLegacy/index.js +1 -1
  29. package/dist/cjs/ui/TableSelector/index.js +1 -1
  30. package/dist/cjs/ui-menu/ColorPickerButton/index.js +4 -4
  31. package/dist/cjs/ui-menu/DropdownMenu/index.js +6 -6
  32. package/dist/cjs/utils/commands.js +1 -2
  33. package/dist/es2019/card/ui/assets/card.js +1 -1
  34. package/dist/es2019/card/ui/assets/embed.js +1 -1
  35. package/dist/es2019/card/ui/assets/inline.js +1 -1
  36. package/dist/es2019/card/ui/assets/url.js +1 -1
  37. package/dist/es2019/extensibility/Extension/Extension/index.js +3 -3
  38. package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  39. package/dist/es2019/extensibility/Extension.js +1 -1
  40. package/dist/es2019/keymaps/index.js +2 -1
  41. package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +2 -2
  42. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +2 -2
  43. package/dist/es2019/link/LinkSearch/LinkSearchList.js +2 -2
  44. package/dist/es2019/link/LinkSearch/withActivityProvider.js +1 -1
  45. package/dist/es2019/media-inline/inline-image-card.js +1 -1
  46. package/dist/es2019/media-inline/media-inline-image-card.js +2 -2
  47. package/dist/es2019/media-single/CommentBadge.js +1 -1
  48. package/dist/es2019/media-single/CommentBadgeNext.js +1 -1
  49. package/dist/es2019/media-single/MediaBadges.js +1 -1
  50. package/dist/es2019/monitoring/error.js +1 -1
  51. package/dist/es2019/react-node-view/onVisibleObserverFactory.js +2 -0
  52. package/dist/es2019/resizer/BreakoutResizer.js +1 -1
  53. package/dist/es2019/resizer/Resizer.js +1 -1
  54. package/dist/es2019/toolbar/context.js +1 -1
  55. package/dist/es2019/ui/ContextPanel/context.js +1 -1
  56. package/dist/es2019/ui/DropList/index.js +1 -1
  57. package/dist/es2019/ui/FloatingToolbar/Button.js +2 -2
  58. package/dist/es2019/ui/Mention/index.js +1 -1
  59. package/dist/es2019/ui/ResizerLegacy/index.js +1 -1
  60. package/dist/es2019/ui/TableSelector/index.js +1 -1
  61. package/dist/es2019/ui-menu/ColorPickerButton/index.js +4 -4
  62. package/dist/es2019/ui-menu/DropdownMenu/index.js +6 -6
  63. package/dist/es2019/utils/commands.js +1 -2
  64. package/dist/esm/card/ui/assets/card.js +1 -1
  65. package/dist/esm/card/ui/assets/embed.js +1 -1
  66. package/dist/esm/card/ui/assets/inline.js +1 -1
  67. package/dist/esm/card/ui/assets/url.js +1 -1
  68. package/dist/esm/extensibility/Extension/Extension/index.js +3 -3
  69. package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  70. package/dist/esm/extensibility/Extension.js +1 -1
  71. package/dist/esm/keymaps/index.js +2 -1
  72. package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +2 -2
  73. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +2 -2
  74. package/dist/esm/link/LinkSearch/LinkSearchList.js +2 -2
  75. package/dist/esm/link/LinkSearch/withActivityProvider.js +1 -1
  76. package/dist/esm/media-inline/inline-image-card.js +1 -1
  77. package/dist/esm/media-inline/media-inline-image-card.js +2 -2
  78. package/dist/esm/media-single/CommentBadge.js +1 -1
  79. package/dist/esm/media-single/CommentBadgeNext.js +1 -1
  80. package/dist/esm/media-single/MediaBadges.js +1 -1
  81. package/dist/esm/monitoring/error.js +1 -1
  82. package/dist/esm/react-node-view/onVisibleObserverFactory.js +2 -0
  83. package/dist/esm/resizer/BreakoutResizer.js +1 -1
  84. package/dist/esm/resizer/Resizer.js +1 -1
  85. package/dist/esm/toolbar/context.js +1 -1
  86. package/dist/esm/ui/ContextPanel/context.js +1 -1
  87. package/dist/esm/ui/DropList/index.js +1 -1
  88. package/dist/esm/ui/FloatingToolbar/Button.js +2 -2
  89. package/dist/esm/ui/Mention/index.js +1 -1
  90. package/dist/esm/ui/ResizerLegacy/index.js +1 -1
  91. package/dist/esm/ui/TableSelector/index.js +1 -1
  92. package/dist/esm/ui-menu/ColorPickerButton/index.js +4 -4
  93. package/dist/esm/ui-menu/DropdownMenu/index.js +6 -6
  94. package/dist/esm/utils/commands.js +1 -2
  95. package/dist/types/keymaps/index.d.ts +1 -0
  96. package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
  97. package/package.json +3 -6
@@ -63,7 +63,7 @@ const Dropdown = ({
63
63
  focusEditor();
64
64
  }, [fireActionClickEvent, focusEditor, onConfigureClickCallback]);
65
65
  return jsx(DropdownMenu, {
66
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
66
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
67
67
  trigger: ({
68
68
  onClick,
69
69
  triggerRef,
@@ -77,7 +77,7 @@ const Dropdown = ({
77
77
  label: configureLinkLabel,
78
78
  size: "small"
79
79
  })
80
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
80
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
81
81
  ,
82
82
  onClick: e => {
83
83
  onClick === null || onClick === void 0 ? void 0 : onClick(e);
@@ -36,11 +36,11 @@ export function HyperlinkAddToolbar({
36
36
  isOffline
37
37
  }) {
38
38
  return /*#__PURE__*/React.createElement(WithProviders
39
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
39
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
40
40
  , {
41
41
  providers: ['activityProvider', 'searchProvider'],
42
42
  providerFactory: providerFactory
43
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
43
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
44
44
  ,
45
45
  renderNode: ({
46
46
  activityProvider,
@@ -51,7 +51,7 @@ const LinkSearchList = ({
51
51
  id: `link-search-list-item-${index}`,
52
52
  item: item,
53
53
  selected: selectedIndex === index
54
- // eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
54
+ // eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
55
55
  ,
56
56
  onFocus: () => onFocus === null || onFocus === void 0 ? void 0 : onFocus(index),
57
57
  onKeyDown: onKeyDown,
@@ -60,7 +60,7 @@ const LinkSearchList = ({
60
60
  onMouseLeave: onMouseLeave,
61
61
  onSelect: onSelect,
62
62
  key: item.objectId
63
- // eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
63
+ // eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
64
64
  ,
65
65
  ref: el => listItemRefCallback === null || listItemRefCallback === void 0 ? void 0 : listItemRefCallback(el, item.objectId)
66
66
  })));
@@ -29,7 +29,7 @@ export default function withActivityProvider(WrappedComponent) {
29
29
  providerFactory
30
30
  } = this.props;
31
31
  return /*#__PURE__*/React.createElement(WithProviders
32
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
32
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
33
33
  , {
34
34
  providers: ['activityProvider'],
35
35
  providerFactory: providerFactory,
@@ -53,7 +53,7 @@ export const InlineImageCard = ({
53
53
  dataURI: preview.dataURI,
54
54
  alt: alt,
55
55
  previewOrientation: preview.orientation
56
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
56
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
57
57
  ,
58
58
  onImageLoad: () => {
59
59
  onImageLoad(preview);
@@ -122,7 +122,7 @@ export const MediaInlineImageCardInternal = ({
122
122
  }, jsx(InlineImageCard, {
123
123
  dimensions: dimensions,
124
124
  identifier: identifier
125
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
125
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
126
126
  ,
127
127
  renderError: () => jsx(InlineImageCardErrorView, {
128
128
  message: formatMessage(messages.unableToLoadContent)
@@ -192,7 +192,7 @@ export const MediaInlineImageCardInternal = ({
192
192
  if (isMediaViewerVisible && mediaClient !== null && mediaClient !== void 0 && mediaClient.mediaClientConfig) {
193
193
  return /*#__PURE__*/ReactDOM.createPortal(jsx(MediaViewer, {
194
194
  collectionName: identifier.collectionName || ''
195
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
195
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
196
196
  ,
197
197
  items: [identifier],
198
198
  mediaClientConfig: mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig,
@@ -84,7 +84,7 @@ export const CommentBadge = /*#__PURE__*/forwardRef(({
84
84
  position: "top",
85
85
  content: title
86
86
  }, jsx(CustomThemeButton
87
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
87
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
88
88
  , {
89
89
  style: {
90
90
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -34,7 +34,7 @@ export const CommentBadgeNext = ({
34
34
  position: "top",
35
35
  content: title
36
36
  }, /*#__PURE__*/React.createElement(Pressable
37
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
37
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
38
38
  , {
39
39
  xcss: [baseStyles, mediumBadgeStyles],
40
40
  padding: "space.0",
@@ -78,7 +78,7 @@ export const MediaBadges = ({
78
78
  testId: "media-badges",
79
79
  "data-media-badges": "true",
80
80
  contentEditable: false
81
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
81
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
82
82
  ,
83
83
  xcss: [containerStyles, useMinimumZIndex && hackedZIndexStyles, extendedResizeOffset && resizeOffsetStyles]
84
84
  }, children);
@@ -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 = "0.0.0-development";
7
+ const packageVersion = "112.8.1";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -1,3 +1,5 @@
1
+ // oxlint-disable-next-line @atlassian/no-restricted-imports
2
+
1
3
  import memoize from 'lodash/memoize';
2
4
  // Use this selector to set the intersection observer boundary for editor's inline node views
3
5
  // If this does not exist, it will use the IntersectionObserver's default root
@@ -326,7 +326,7 @@ const BreakoutResizer = ({
326
326
  }
327
327
  return /*#__PURE__*/React.createElement(Resizer, {
328
328
  ref: resizerRef
329
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
329
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
330
330
  ,
331
331
  enable: {
332
332
  left: true,
@@ -201,7 +201,7 @@ const ResizerNext = (props, ref) => {
201
201
  }, [snap, snapGap]);
202
202
  return /*#__PURE__*/React.createElement(Resizable, _extends({
203
203
  ref: resizable
204
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
204
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
205
205
  ,
206
206
  size: {
207
207
  width: width !== null && width !== void 0 ? width : 'auto',
@@ -25,7 +25,7 @@ export const EditorToolbarProvider = ({
25
25
  isOffline
26
26
  }) => {
27
27
  return /*#__PURE__*/React.createElement(EditorToolbarContext.Provider, {
28
- // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
28
+ // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
29
29
  value: {
30
30
  editorView,
31
31
  editorAppearance,
@@ -54,7 +54,7 @@ export class ContextPanelWidthProvider extends React.Component {
54
54
  positionedOverEditor
55
55
  } = this.state;
56
56
  return /*#__PURE__*/React.createElement(Provider
57
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
57
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
58
58
  , {
59
59
  value: {
60
60
  width,
@@ -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 = "0.0.0-development";
17
+ const packageVersion = "112.8.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -82,7 +82,7 @@ const FloatingToolbarButton = ({
82
82
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides -- Ignored via go/DSP-18766
83
83
  , {
84
84
  className: className
85
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
85
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
86
86
  ,
87
87
  ref: buttonElement => {
88
88
  setSpotlightReferenceElement(buttonElement);
@@ -94,7 +94,7 @@ const FloatingToolbarButton = ({
94
94
  }
95
95
  }
96
96
  }
97
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
97
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
98
98
  ,
99
99
  theme: (adgTheme, themeProps) => {
100
100
  const {
@@ -39,7 +39,7 @@ export default class Mention extends PureComponent {
39
39
  }
40
40
  render() {
41
41
  return /*#__PURE__*/React.createElement(WithProviders
42
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
42
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
43
43
  , {
44
44
  providers: ['mentionProvider', 'profilecardProvider'],
45
45
  providerFactory: this.providerFactory,
@@ -186,7 +186,7 @@ export default class Resizer extends React.Component {
186
186
  // the div. For now, we just apply the same styles using CSS
187
187
  return /*#__PURE__*/React.createElement(Resizable, {
188
188
  ref: this.resizable
189
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
189
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
190
190
  ,
191
191
  size: {
192
192
  width: nonZeroWidth,
@@ -237,7 +237,7 @@ export const TableSelectorPopup = props => {
237
237
  }, [handleMouseMove, props.allowOutsideSelection, tablePopupRef]);
238
238
  return jsx(Popup, {
239
239
  target: props.target
240
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
240
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
241
241
  ,
242
242
  offset: [0, 3],
243
243
  mountTo: props.popupsMountPoint,
@@ -139,7 +139,7 @@ const ColorPickerButton = props => {
139
139
  target: buttonRef.current,
140
140
  fitHeight: 350,
141
141
  fitWidth: 350
142
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
142
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
143
143
  ,
144
144
  offset: [0, 10],
145
145
  alignX: props.alignX,
@@ -160,7 +160,7 @@ const ColorPickerButton = props => {
160
160
  selectedRowIndex: selectedRowIndex,
161
161
  selectedColumnIndex: selectedColumnIndex,
162
162
  closeOnTab: true
163
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
163
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
164
164
  ,
165
165
  handleClose: () => setIsPopupOpen(false),
166
166
  isOpenedByKeyboard: isOpenedByKeyboard,
@@ -172,7 +172,7 @@ const ColorPickerButton = props => {
172
172
  onClick: onColorSelected,
173
173
  handleClickOutside: togglePopup,
174
174
  handleEscapeKeydown: handleEsc
175
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
175
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
176
176
  ,
177
177
  paletteOptions: {
178
178
  palette: props.colorPalette,
@@ -222,7 +222,7 @@ const ColorPickerButton = props => {
222
222
  "aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
223
223
  spacing: editorExperiment('platform_editor_controls', 'variant1') ? 'default' : 'compact',
224
224
  onClick: togglePopup
225
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
225
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
226
226
  ,
227
227
  onKeyDown: event => {
228
228
  if (event.key === 'Enter' || event.key === ' ') {
@@ -231,7 +231,7 @@ export default class DropdownMenuWrapper extends PureComponent {
231
231
  shouldFitContainer: true,
232
232
  handleClickOutside: this.handleClose,
233
233
  handleEscapeKeydown: handleEscapeKeydown || this.handleCloseAndFocus
234
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
234
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
235
235
  ,
236
236
  handleEnterKeydown: e => {
237
237
  if (!allowEnterDefaultBehavior) {
@@ -363,7 +363,7 @@ export function DropdownMenuItem({
363
363
  iconBefore: item.elemBefore,
364
364
  iconAfter: item.elemAfter,
365
365
  isDisabled: item.isDisabled
366
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
366
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
367
367
  ,
368
368
  onClick: () => onItemActivated && onItemActivated({
369
369
  item
@@ -371,18 +371,18 @@ export function DropdownMenuItem({
371
371
  "aria-label": ariaLabel,
372
372
  "aria-pressed": shouldUseDefaultRole ? item.isActive : undefined,
373
373
  "aria-keyshortcuts": item['aria-keyshortcuts']
374
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
374
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
375
375
  ,
376
376
  onMouseDown: e => {
377
377
  e.preventDefault();
378
378
  },
379
379
  component: DropdownMenuItemCustomComponent
380
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
380
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
381
381
  ,
382
382
  onMouseEnter: () => onMouseEnter && onMouseEnter({
383
383
  item
384
384
  })
385
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
385
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
386
386
  ,
387
387
  onMouseLeave: () => onMouseLeave && onMouseLeave({
388
388
  item
@@ -410,7 +410,7 @@ export const DropdownMenuWithKeyboardNavigation = /*#__PURE__*/React.memo(
410
410
  // This context is to handle the tab, Arrow Right/Left key events for dropdown.
411
411
  // Default context has the void callbacks for above key events
412
412
  return jsx(DropdownMenuWrapper
413
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
413
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
414
414
  , _extends({
415
415
  arrowKeyNavigationProviderOptions: {
416
416
  ...props.arrowKeyNavigationProviderOptions,
@@ -1,6 +1,5 @@
1
1
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
2
2
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
6
5
  import { withAnalytics } from '../editor-analytics';
@@ -332,7 +331,7 @@ export const isEmptySelectionAtEnd = state => {
332
331
 
333
332
  // If blockTaskItem is in the schema,
334
333
  // we need to check if the selection is inside a blockTaskItem
335
- if (blockTaskItem && empty && fg('platform_editor_blocktaskitem_patch_3')) {
334
+ if (blockTaskItem && empty) {
336
335
  // If the parent is in a textblock,
337
336
  // check if it's nested inside a blockTaskItem
338
337
  if ($from.parent.isTextblock) {
@@ -25,7 +25,7 @@ export var IconCard = function IconCard(_ref2) {
25
25
  var label = _ref2.label;
26
26
  return /*#__PURE__*/React.createElement(IconCardGlyph, {
27
27
  "aria-label": label
28
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
28
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
29
29
  ,
30
30
  style: {
31
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -25,7 +25,7 @@ export var IconEmbed = function IconEmbed(_ref2) {
25
25
  var label = _ref2.label;
26
26
  return /*#__PURE__*/React.createElement(IconEmbedGlyph, {
27
27
  "aria-label": label
28
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
28
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
29
29
  ,
30
30
  style: {
31
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -25,7 +25,7 @@ export var IconInline = function IconInline(_ref2) {
25
25
  var label = _ref2.label;
26
26
  return /*#__PURE__*/React.createElement(IconInlineGlyph, {
27
27
  "aria-label": label
28
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
28
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
29
29
  ,
30
30
  style: {
31
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -27,7 +27,7 @@ export var IconUrl = function IconUrl(_ref2) {
27
27
  var label = _ref2.label;
28
28
  return /*#__PURE__*/React.createElement(IconUrlGlyph, {
29
29
  "aria-label": label
30
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
30
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
31
31
  ,
32
32
  style: {
33
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -142,12 +142,12 @@ function ExtensionWithPluginState(props) {
142
142
  return jsx(Fragment, null, expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && jsx(LegacyContentHeader, {
143
143
  isNodeSelected: isNodeSelected,
144
144
  isNodeHovered: isNodeHovered
145
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
145
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
146
146
  ,
147
147
  onMouseEnter: function onMouseEnter() {
148
148
  return handleMouseEvent(true);
149
149
  }
150
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
150
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
151
151
  ,
152
152
  onMouseLeave: function onMouseLeave() {
153
153
  return handleMouseEvent(false);
@@ -247,7 +247,7 @@ var Extension = function Extension(props) {
247
247
 
248
248
  // Ignored via go/ees005
249
249
  return jsx(ExtensionWithPluginState
250
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
250
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
251
251
  , _extends({
252
252
  widthState: {
253
253
  width: width !== null && width !== void 0 ? width : 0,
@@ -181,7 +181,7 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
181
181
  // Ignored via go/ees005
182
182
  // eslint-disable-next-line react/jsx-props-no-spreading
183
183
  , _extends({}, i18n.configure, {
184
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
184
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
185
185
  values: {
186
186
  macroName: text
187
187
  }
@@ -77,7 +77,7 @@ export var Extension = /*#__PURE__*/function (_Component) {
77
77
  key: "render",
78
78
  value: function render() {
79
79
  return /*#__PURE__*/React.createElement(WithProviders
80
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
80
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
81
81
  , {
82
82
  providers: ['extensionProvider'],
83
83
  providerFactory: this.providerFactory,
@@ -32,6 +32,7 @@ export var toggleHeading3 = makeKeyMapWithCommon('Heading 3', 'Mod-Alt-3');
32
32
  export var toggleHeading4 = makeKeyMapWithCommon('Heading 4', 'Mod-Alt-4');
33
33
  export var toggleHeading5 = makeKeyMapWithCommon('Heading 5', 'Mod-Alt-5');
34
34
  export var toggleHeading6 = makeKeyMapWithCommon('Heading 6', 'Mod-Alt-6');
35
+ export var toggleSmallText = makeKeyMapWithCommon('Small text', 'Mod-Alt-7');
35
36
  export var toggleOrderedList = makeKeyMapWithCommon('Numbered list', 'Mod-Shift-7');
36
37
  export var ctrlBackSpace = makeKeyMapWithCommon('Cmd + Backspace', 'Mod-Backspace');
37
38
  export var toggleBulletList = makeKeyMapWithCommon('Bullet list', 'Mod-Shift-8');
@@ -282,7 +283,7 @@ export function getAriaKeyshortcuts(keymap) {
282
283
  return undefined;
283
284
  }
284
285
  }
285
- var ALL = [toggleOrderedList, toggleBulletList, toggleBold, toggleItalic, toggleUnderline, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleCode, setNormalText, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleBlockQuote, insertNewLine, insertRule, splitCodeBlock, splitListItem, redo, undo, find, escape, enter, shiftEnter];
286
+ var ALL = [toggleOrderedList, toggleBulletList, toggleBold, toggleItalic, toggleUnderline, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleCode, setNormalText, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleSmallText, toggleBlockQuote, insertNewLine, insertRule, splitCodeBlock, splitListItem, redo, undo, find, escape, enter, shiftEnter];
286
287
  export function makeKeymap(description, windows, mac, common) {
287
288
  return {
288
289
  description: description,
@@ -63,7 +63,7 @@ var Dropdown = function Dropdown(_ref) {
63
63
  focusEditor();
64
64
  }, [fireActionClickEvent, focusEditor, onConfigureClickCallback]);
65
65
  return jsx(DropdownMenu, {
66
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
66
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
67
67
  trigger: function trigger(_ref3) {
68
68
  var _onClick = _ref3.onClick,
69
69
  triggerRef = _ref3.triggerRef,
@@ -77,7 +77,7 @@ var Dropdown = function Dropdown(_ref) {
77
77
  label: configureLinkLabel,
78
78
  size: "small"
79
79
  })
80
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
80
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
81
81
  ,
82
82
  onClick: function onClick(e) {
83
83
  _onClick === null || _onClick === void 0 || _onClick(e);
@@ -37,11 +37,11 @@ export function HyperlinkAddToolbar(_ref2) {
37
37
  timesViewed = _ref2.timesViewed,
38
38
  isOffline = _ref2.isOffline;
39
39
  return /*#__PURE__*/React.createElement(WithProviders
40
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
40
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
41
41
  , {
42
42
  providers: ['activityProvider', 'searchProvider'],
43
43
  providerFactory: providerFactory
44
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
44
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
45
45
  ,
46
46
  renderNode: function renderNode(_ref3) {
47
47
  var activityProvider = _ref3.activityProvider,
@@ -51,7 +51,7 @@ var LinkSearchList = function LinkSearchList(_ref) {
51
51
  id: "link-search-list-item-".concat(index),
52
52
  item: item,
53
53
  selected: selectedIndex === index
54
- // eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
54
+ // eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
55
55
  ,
56
56
  onFocus: function onFocus() {
57
57
  return _onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(index);
@@ -62,7 +62,7 @@ var LinkSearchList = function LinkSearchList(_ref) {
62
62
  onMouseLeave: onMouseLeave,
63
63
  onSelect: onSelect,
64
64
  key: item.objectId
65
- // eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
65
+ // eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
66
66
  ,
67
67
  ref: function ref(el) {
68
68
  return listItemRefCallback === null || listItemRefCallback === void 0 ? void 0 : listItemRefCallback(el, item.objectId);
@@ -42,7 +42,7 @@ export default function withActivityProvider(WrappedComponent) {
42
42
  value: function render() {
43
43
  var providerFactory = this.props.providerFactory;
44
44
  return /*#__PURE__*/React.createElement(WithProviders
45
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
45
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
46
46
  , {
47
47
  providers: ['activityProvider'],
48
48
  providerFactory: providerFactory,
@@ -53,7 +53,7 @@ export var InlineImageCard = function InlineImageCard(_ref) {
53
53
  dataURI: preview.dataURI,
54
54
  alt: alt,
55
55
  previewOrientation: preview.orientation
56
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
56
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
57
57
  ,
58
58
  onImageLoad: function onImageLoad() {
59
59
  _onImageLoad(preview);
@@ -140,7 +140,7 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
140
140
  }, jsx(InlineImageCard, {
141
141
  dimensions: dimensions,
142
142
  identifier: identifier
143
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
143
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
144
144
  ,
145
145
  renderError: function renderError() {
146
146
  return jsx(InlineImageCardErrorView, {
@@ -213,7 +213,7 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
213
213
  if (isMediaViewerVisible && mediaClient !== null && mediaClient !== void 0 && mediaClient.mediaClientConfig) {
214
214
  return /*#__PURE__*/ReactDOM.createPortal(jsx(MediaViewer, {
215
215
  collectionName: identifier.collectionName || ''
216
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
216
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
217
217
  ,
218
218
  items: [identifier],
219
219
  mediaClientConfig: mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig,
@@ -90,7 +90,7 @@ export var CommentBadge = /*#__PURE__*/forwardRef(function (_ref, ref) {
90
90
  position: "top",
91
91
  content: title
92
92
  }, jsx(CustomThemeButton
93
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
93
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
94
94
  , {
95
95
  style: {
96
96
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -34,7 +34,7 @@ export var CommentBadgeNext = function CommentBadgeNext(_ref) {
34
34
  position: "top",
35
35
  content: title
36
36
  }, /*#__PURE__*/React.createElement(Pressable
37
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
37
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
38
38
  , {
39
39
  xcss: [baseStyles, mediumBadgeStyles],
40
40
  padding: "space.0",
@@ -82,7 +82,7 @@ export var MediaBadges = function MediaBadges(_ref) {
82
82
  testId: "media-badges",
83
83
  "data-media-badges": "true",
84
84
  contentEditable: false
85
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
85
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
86
86
  ,
87
87
  xcss: [containerStyles, useMinimumZIndex && hackedZIndexStyles, extendedResizeOffset && resizeOffsetStyles]
88
88
  }, children);
@@ -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 = "0.0.0-development";
13
+ var packageVersion = "112.8.1";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -1,6 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  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; }
4
+ // oxlint-disable-next-line @atlassian/no-restricted-imports
5
+
4
6
  import memoize from 'lodash/memoize';
5
7
  // Use this selector to set the intersection observer boundary for editor's inline node views
6
8
  // If this does not exist, it will use the IntersectionObserver's default root
@@ -323,7 +323,7 @@ var BreakoutResizer = function BreakoutResizer(_ref) {
323
323
  }
324
324
  return /*#__PURE__*/React.createElement(Resizer, {
325
325
  ref: resizerRef
326
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
326
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
327
327
  ,
328
328
  enable: {
329
329
  left: true,