@atlaskit/editor-common 111.14.1 → 111.14.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 (79) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/analytics/types/enums.js +2 -0
  3. package/dist/cjs/card/LinkToolbarButtonGroup.js +7 -10
  4. package/dist/cjs/card/ui/assets/card.js +12 -9
  5. package/dist/cjs/card/ui/assets/embed.js +12 -9
  6. package/dist/cjs/card/ui/assets/inline.js +12 -9
  7. package/dist/cjs/card/ui/assets/url.js +12 -9
  8. package/dist/cjs/icons/shared/BorderIcon.js +12 -9
  9. package/dist/cjs/icons/shared/PanelErrorIcon.js +8 -10
  10. package/dist/cjs/icons/shared/PanelInfoIcon.js +8 -10
  11. package/dist/cjs/icons/shared/PanelNoteIcon.js +6 -9
  12. package/dist/cjs/icons/shared/PanelSuccessIcon.js +8 -10
  13. package/dist/cjs/icons/shared/PanelWarningIcon.js +8 -10
  14. package/dist/cjs/monitoring/error.js +1 -1
  15. package/dist/cjs/quick-insert/assets/index.js +4 -6
  16. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +1 -2
  17. package/dist/cjs/react-node-view/index.js +9 -2
  18. package/dist/cjs/ui/DropList/index.js +1 -1
  19. package/dist/cjs/ui/Emoji/index.js +21 -4
  20. package/dist/cjs/ui/Expand/index.js +9 -14
  21. package/dist/cjs/ui/OverflowShadow/index.js +6 -10
  22. package/dist/cjs/ui-menu/DropdownContainer/index.js +1 -2
  23. package/dist/cjs/ui-menu/DropdownMenu/index.js +4 -8
  24. package/dist/es2019/analytics/types/enums.js +2 -0
  25. package/dist/es2019/card/LinkToolbarButtonGroup.js +5 -8
  26. package/dist/es2019/card/ui/assets/card.js +11 -7
  27. package/dist/es2019/card/ui/assets/embed.js +11 -7
  28. package/dist/es2019/card/ui/assets/inline.js +11 -7
  29. package/dist/es2019/card/ui/assets/url.js +11 -7
  30. package/dist/es2019/icons/shared/BorderIcon.js +11 -7
  31. package/dist/es2019/icons/shared/PanelErrorIcon.js +7 -7
  32. package/dist/es2019/icons/shared/PanelInfoIcon.js +7 -7
  33. package/dist/es2019/icons/shared/PanelNoteIcon.js +7 -8
  34. package/dist/es2019/icons/shared/PanelSuccessIcon.js +7 -7
  35. package/dist/es2019/icons/shared/PanelWarningIcon.js +7 -7
  36. package/dist/es2019/monitoring/error.js +1 -1
  37. package/dist/es2019/quick-insert/assets/index.js +4 -4
  38. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -2
  39. package/dist/es2019/react-node-view/index.js +9 -2
  40. package/dist/es2019/ui/DropList/index.js +1 -1
  41. package/dist/es2019/ui/Emoji/index.js +22 -4
  42. package/dist/es2019/ui/Expand/index.js +10 -16
  43. package/dist/es2019/ui/OverflowShadow/index.js +6 -10
  44. package/dist/es2019/ui-menu/DropdownContainer/index.js +1 -2
  45. package/dist/es2019/ui-menu/DropdownMenu/index.js +4 -8
  46. package/dist/esm/analytics/types/enums.js +2 -0
  47. package/dist/esm/card/LinkToolbarButtonGroup.js +5 -10
  48. package/dist/esm/card/ui/assets/card.js +12 -9
  49. package/dist/esm/card/ui/assets/embed.js +12 -9
  50. package/dist/esm/card/ui/assets/inline.js +12 -9
  51. package/dist/esm/card/ui/assets/url.js +12 -9
  52. package/dist/esm/icons/shared/BorderIcon.js +12 -9
  53. package/dist/esm/icons/shared/PanelErrorIcon.js +8 -9
  54. package/dist/esm/icons/shared/PanelInfoIcon.js +8 -9
  55. package/dist/esm/icons/shared/PanelNoteIcon.js +6 -8
  56. package/dist/esm/icons/shared/PanelSuccessIcon.js +8 -9
  57. package/dist/esm/icons/shared/PanelWarningIcon.js +8 -9
  58. package/dist/esm/monitoring/error.js +1 -1
  59. package/dist/esm/quick-insert/assets/index.js +4 -6
  60. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -2
  61. package/dist/esm/react-node-view/index.js +9 -2
  62. package/dist/esm/ui/DropList/index.js +1 -1
  63. package/dist/esm/ui/Emoji/index.js +21 -4
  64. package/dist/esm/ui/Expand/index.js +9 -14
  65. package/dist/esm/ui/OverflowShadow/index.js +6 -10
  66. package/dist/esm/ui-menu/DropdownContainer/index.js +1 -2
  67. package/dist/esm/ui-menu/DropdownMenu/index.js +4 -8
  68. package/dist/types/analytics/types/enums.d.ts +2 -0
  69. package/dist/types/analytics/types/insert-events.d.ts +8 -1
  70. package/dist/types/analytics/types/sync-block-events.d.ts +2 -1
  71. package/dist/types/quick-insert/assets/index.d.ts +1 -1
  72. package/dist/types/ui/Emoji/index.d.ts +1 -1
  73. package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -0
  74. package/dist/types-ts4.5/analytics/types/insert-events.d.ts +8 -1
  75. package/dist/types-ts4.5/analytics/types/sync-block-events.d.ts +2 -1
  76. package/dist/types-ts4.5/quick-insert/assets/index.d.ts +1 -1
  77. package/dist/types-ts4.5/ui/Emoji/index.d.ts +1 -1
  78. package/package.json +1 -1
  79. package/tsconfig.json +0 -2
@@ -1,29 +1,28 @@
1
1
  /* PanelWarningIcon.tsx generated by @compiled/babel-plugin v0.38.1 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
2
  import "./PanelWarningIcon.compiled.css";
4
3
  import * as React from 'react';
5
4
  import { ax, ix } from "@compiled/react/runtime";
6
5
  var iconStyles = null;
7
6
 
8
7
  // Custom icon ejection - these icons have been migrated away from the deprecated Custom / SVG components to native SVG. Please review whether this icon should be contributed to @atlaskit/icon-lab or whether it can be replaced by an existing icon from either @atlaskit/icon or @atlaskit/icon-lab
9
- var PanelWarningGlyph = function PanelWarningGlyph(props) {
10
- return /*#__PURE__*/React.createElement("svg", _extends({
8
+ var PanelWarningGlyph = function PanelWarningGlyph(_ref) {
9
+ var role = _ref.role;
10
+ return /*#__PURE__*/React.createElement("svg", {
11
11
  width: "24",
12
12
  height: "24",
13
13
  viewBox: "0 0 24 24",
14
14
  fill: "none",
15
- xmlns: "http://www.w3.org/2000/svg"
16
- // Ignored via go/ees005
17
- // eslint-disable-next-line react/jsx-props-no-spreading
18
- }, props), /*#__PURE__*/React.createElement("path", {
15
+ xmlns: "http://www.w3.org/2000/svg",
16
+ role: role
17
+ }, /*#__PURE__*/React.createElement("path", {
19
18
  fillRule: "evenodd",
20
19
  clipRule: "evenodd",
21
20
  d: "M13.4897 4.34592L21.8561 18.8611C21.9525 19.0288 22.0021 19.2181 21.9999 19.4101C21.9977 19.6021 21.9438 19.7903 21.8435 19.9559C21.7432 20.1215 21.6001 20.2588 21.4282 20.3542C21.2563 20.4497 21.0616 20.4999 20.8636 20.5H3.13707C2.93882 20.5 2.74401 20.4498 2.57196 20.3543C2.39992 20.2588 2.25663 20.1213 2.15631 19.9556C2.05598 19.7898 2.00212 19.6015 2.00006 19.4093C1.998 19.2171 2.04782 19.0278 2.14456 18.86L10.5121 4.34592C10.6602 4.08939 10.8762 3.87577 11.1377 3.72708C11.3993 3.57838 11.6971 3.5 12.0003 3.5C12.3036 3.5 12.6013 3.57838 12.8629 3.72708C13.1245 3.87577 13.3404 4.08939 13.4885 4.34592H13.4897ZM12.0003 7.82538C11.8232 7.82537 11.6482 7.86212 11.4869 7.93317C11.3257 8.00423 11.182 8.10793 11.0656 8.2373C10.9492 8.36668 10.8627 8.51872 10.8119 8.68321C10.7611 8.8477 10.7473 9.02083 10.7713 9.19093L11.3546 13.3416C11.3754 13.4933 11.4523 13.6326 11.5711 13.7334C11.6899 13.8343 11.8424 13.8899 12.0003 13.8899C12.1582 13.8899 12.3107 13.8343 12.4295 13.7334C12.5483 13.6326 12.6253 13.4933 12.6461 13.3416L13.2293 9.19093C13.2533 9.02083 13.2395 8.8477 13.1887 8.68321C13.138 8.51872 13.0515 8.36668 12.935 8.2373C12.8186 8.10793 12.6749 8.00423 12.5137 7.93317C12.3525 7.86212 12.1774 7.82537 12.0003 7.82538V7.82538ZM12.0003 17.3369C12.3395 17.3369 12.6649 17.2062 12.9047 16.9737C13.1446 16.7412 13.2793 16.4258 13.2793 16.0969C13.2793 15.7681 13.1446 15.4527 12.9047 15.2202C12.6649 14.9877 12.3395 14.857 12.0003 14.857C11.6611 14.857 11.3358 14.9877 11.0959 15.2202C10.8561 15.4527 10.7213 15.7681 10.7213 16.0969C10.7213 16.4258 10.8561 16.7412 11.0959 16.9737C11.3358 17.2062 11.6611 17.3369 12.0003 17.3369V17.3369Z",
22
21
  fill: "currentColor"
23
22
  }));
24
23
  };
25
- export var PanelWarningIcon = function PanelWarningIcon(_ref) {
26
- var label = _ref.label;
24
+ export var PanelWarningIcon = function PanelWarningIcon(_ref2) {
25
+ var label = _ref2.label;
27
26
  return /*#__PURE__*/React.createElement("span", {
28
27
  role: label ? 'img' : undefined,
29
28
  "aria-label": label ? label : undefined,
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "111.14.0";
13
+ var packageVersion = "111.14.1";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -1,5 +1,3 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
- var _excluded = ["level"];
3
1
  function _tsRewriteRelativeImportExtensions(t, e) { return "string" == typeof t && /^\.\.?\//.test(t) ? t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i, function (t, s, r, n, o) { return s ? e ? ".jsx" : ".js" : !r || n && o ? r + n + "." + o.toLowerCase() + "js" : t; }) : t; }
4
2
  import React from 'react';
5
3
  import Loadable from 'react-loadable';
@@ -262,7 +260,7 @@ function importHeading(level) {
262
260
  }
263
261
  export var IconHeading = function IconHeading(_ref) {
264
262
  var level = _ref.level,
265
- props = _objectWithoutProperties(_ref, _excluded);
263
+ label = _ref.label;
266
264
  var Icon = Loadable({
267
265
  loader: function loader() {
268
266
  return importHeading(level).then(function (module) {
@@ -273,9 +271,9 @@ export var IconHeading = function IconHeading(_ref) {
273
271
  return null;
274
272
  }
275
273
  });
276
- // Ignored via go/ees005
277
- // eslint-disable-next-line react/jsx-props-no-spreading
278
- return /*#__PURE__*/React.createElement(Icon, props);
274
+ return /*#__PURE__*/React.createElement(Icon, {
275
+ label: label
276
+ });
279
277
  };
280
278
  export var IconFeedback = Loadable({
281
279
  loader: function loader() {
@@ -351,8 +351,7 @@ function getPortalChildren(_ref3) {
351
351
  ,
352
352
  getPos: nodeViewParams.getPos,
353
353
  node: currentNode
354
- // Ignored via go/ees005
355
- // eslint-disable-next-line react/jsx-props-no-spreading
354
+ // eslint-disable-next-line react/jsx-props-no-spreading -- Spreading props to pass through dynamic component props
356
355
  }, extraComponentProps)), browser.android ?
357
356
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
358
357
  jsx("span", {
@@ -15,11 +15,13 @@ import { generateUniqueNodeKey } from './generateUniqueNodeKey';
15
15
  export { getInlineNodeViewProducer, inlineNodeViewClassname } from './getInlineNodeViewProducer';
16
16
  var ReactNodeView = /*#__PURE__*/function () {
17
17
  function ReactNodeView(_node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps,
18
+ // Spreading props to pass through dynamic component props
18
19
  // Ignored via go/ees005
19
20
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
21
  reactComponent, viewShouldUpdate, shouldRenderImmediatelyInPortal) {
21
22
  var _this = this;
22
23
  _classCallCheck(this, ReactNodeView);
24
+ // Spreading props to pass through dynamic component props
23
25
  // Ignored via go/ees005
24
26
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25
27
  _defineProperty(this, "decorations", []);
@@ -97,6 +99,7 @@ var ReactNodeView = /*#__PURE__*/function () {
97
99
  return this;
98
100
  }
99
101
 
102
+ // Spreading props to pass through dynamic component props
100
103
  // Ignored via go/ees005
101
104
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
102
105
  }, {
@@ -115,6 +118,7 @@ var ReactNodeView = /*#__PURE__*/function () {
115
118
  }, component());
116
119
  };
117
120
  this.portalProviderAPI.render(componentWithErrorBoundary,
121
+ // Spreading props to pass through dynamic component props
118
122
  // Ignored via go/ees005
119
123
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
120
124
  this.domRef, this.key, undefined, this.shouldRenderImmediatelyInPortal);
@@ -139,6 +143,7 @@ var ReactNodeView = /*#__PURE__*/function () {
139
143
  var _this4 = this;
140
144
  var contentDOM = this.contentDOMWrapper || this.contentDOM;
141
145
  // @ts-ignore
146
+ // Spreading props to pass through dynamic component props
142
147
  // Ignored via go/ees005
143
148
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
144
149
  var oldIgnoreMutation;
@@ -190,6 +195,7 @@ var ReactNodeView = /*#__PURE__*/function () {
190
195
  }
191
196
  }
192
197
 
198
+ // Spreading props to pass through dynamic component props
193
199
  // Ignored via go/ees005
194
200
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
195
201
  }, {
@@ -200,8 +206,7 @@ var ReactNodeView = /*#__PURE__*/function () {
200
206
  getPos: this.getPos,
201
207
  node: this.node,
202
208
  forwardRef: forwardRef
203
- // Ignored via go/ees005
204
- // eslint-disable-next-line react/jsx-props-no-spreading
209
+ // eslint-disable-next-line react/jsx-props-no-spreading -- Spreading props to pass through dynamic component props
205
210
  }, props)) : null;
206
211
  }
207
212
  }, {
@@ -257,6 +262,7 @@ var ReactNodeView = /*#__PURE__*/function () {
257
262
  }, {
258
263
  key: "dom",
259
264
  get: function get() {
265
+ // Spreading props to pass through dynamic component props
260
266
  // Ignored via go/ees005
261
267
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
262
268
  return this.domRef;
@@ -274,6 +280,7 @@ var ReactNodeView = /*#__PURE__*/function () {
274
280
  }], [{
275
281
  key: "fromComponent",
276
282
  value: function fromComponent(
283
+ // Spreading props to pass through dynamic component props
277
284
  // Ignored via go/ees005
278
285
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
279
286
  component, portalProviderAPI, eventDispatcher, props, viewShouldUpdate) {
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "111.14.0";
24
+ var packageVersion = "111.14.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -44,9 +44,26 @@ var EmojiNodeFunctional = function EmojiNodeFunctional(props) {
44
44
  editorEmoji: true
45
45
  });
46
46
  };
47
- var EmojiNode = function EmojiNode(props) {
48
- // Ignored via go/ees005
49
- // eslint-disable-next-line react/jsx-props-no-spreading
50
- return /*#__PURE__*/React.createElement(EmojiNodeFunctional, props);
47
+ var EmojiNode = function EmojiNode(_ref) {
48
+ var allowTextFallback = _ref.allowTextFallback,
49
+ shortName = _ref.shortName,
50
+ id = _ref.id,
51
+ fallback = _ref.fallback,
52
+ fitToHeight = _ref.fitToHeight,
53
+ showTooltip = _ref.showTooltip,
54
+ resourceConfig = _ref.resourceConfig,
55
+ emojiProvider = _ref.emojiProvider,
56
+ providers = _ref.providers;
57
+ return /*#__PURE__*/React.createElement(EmojiNodeFunctional, {
58
+ allowTextFallback: allowTextFallback,
59
+ shortName: shortName,
60
+ id: id,
61
+ fallback: fallback,
62
+ fitToHeight: fitToHeight,
63
+ showTooltip: showTooltip,
64
+ resourceConfig: resourceConfig,
65
+ emojiProvider: emojiProvider,
66
+ providers: providers
67
+ });
51
68
  };
52
69
  export default /*#__PURE__*/React.memo(EmojiNode);
@@ -83,19 +83,14 @@ export var expandLayoutWrapperStyle = css({
83
83
  width: "var(--ds-space-300, 24px)",
84
84
  height: "var(--ds-space-300, 24px)"
85
85
  });
86
- export var ExpandLayoutWrapperWithRef = /*#__PURE__*/forwardRef(
87
- // Ignored via go/ees005
88
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
89
- function (props, ref) {
90
- var children = props.children,
91
- rest = _objectWithoutProperties(props, _excluded);
92
- return (
86
+ export var ExpandLayoutWrapperWithRef = /*#__PURE__*/forwardRef(function (_ref2, ref) {
87
+ var children = _ref2.children,
88
+ otherProps = _objectWithoutProperties(_ref2, _excluded);
89
+ return jsx("div", _extends({
93
90
  // Ignored via go/ees005
94
- // eslint-disable-next-line react/jsx-props-no-spreading, @typescript-eslint/no-explicit-any
95
- jsx("div", _extends({
96
- css: expandLayoutWrapperStyle
97
- }, rest, {
98
- ref: ref
99
- }), children)
100
- );
91
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
92
+ css: expandLayoutWrapperStyle,
93
+ ref: ref
94
+ // eslint-disable-next-line react/jsx-props-no-spreading -- Spreading otherProps to pass through HTML attributes (aria-*, data-*, event handlers, etc.) to the native div element
95
+ }, otherProps), children);
101
96
  });
@@ -165,16 +165,12 @@ export default function overflowShadow(Component, options) {
165
165
  * for a11y purposes.
166
166
  */
167
167
  var hasOverflowScroll = showRightShadow || showLeftShadow;
168
- return (
169
- /*#__PURE__*/
170
- // Ignored via go/ees005
171
- React.createElement(Component, _extends({
172
- handleRef: this.handleContainer,
173
- tabIndex: hasOverflowScroll && fg('platform_editor_dec_a11y_fixes') ? 0 : undefined,
174
- shadowClassNames: classNames
175
- // eslint-disable-next-line react/jsx-props-no-spreading
176
- }, this.props))
177
- );
168
+ return /*#__PURE__*/React.createElement(Component, _extends({
169
+ handleRef: this.handleContainer,
170
+ tabIndex: hasOverflowScroll && fg('platform_editor_dec_a11y_fixes') ? 0 : undefined,
171
+ shadowClassNames: classNames
172
+ // eslint-disable-next-line react/jsx-props-no-spreading -- Spreading props to pass all component props through to wrapped generic component
173
+ }, this.props));
178
174
  }
179
175
  }]);
180
176
  }(React.Component);
@@ -26,8 +26,7 @@ export var DropdownContainer = /*#__PURE__*/React.memo(function DropdownContaine
26
26
  //This context is to handle the tab, Arrow Right/Left key events for dropdown.
27
27
  //Default context has the void callbacks for above key events
28
28
  jsx(DropdownComponent
29
- // Ignored via go/ees005
30
- // eslint-disable-next-line react/jsx-props-no-spreading
29
+ // eslint-disable-next-line react/jsx-props-no-spreading -- Spreading props to pass through dynamic component props
31
30
  , _extends({}, props, {
32
31
  arrowKeyNavigationProviderOptions: newArrowKeyNavigationProviderOptions
33
32
  }))
@@ -71,8 +71,7 @@ var buttonStyles = function buttonStyles(isActive, submenuActive) {
71
71
  };
72
72
  var DropListWithOutsideClickTargetRef = function DropListWithOutsideClickTargetRef(props) {
73
73
  var setOutsideClickTargetRef = React.useContext(OutsideClickTargetRefContext);
74
- // Ignored via go/ees005
75
- // eslint-disable-next-line react/jsx-props-no-spreading
74
+ // eslint-disable-next-line react/jsx-props-no-spreading -- Spreading props to pass through dynamic component props
76
75
  return jsx(DropList, _extends({
77
76
  onDroplistRef: setOutsideClickTargetRef
78
77
  }, props));
@@ -183,8 +182,7 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
183
182
  zIndex: zIndex || akEditorFloatingPanelZIndex,
184
183
  offset: offset
185
184
  }, jsx(ArrowKeyNavigationProvider
186
- // Ignored via go/ees005
187
- // eslint-disable-next-line react/jsx-props-no-spreading
185
+ // eslint-disable-next-line react/jsx-props-no-spreading -- Spreading navigationProviderProps to pass through dynamic component props
188
186
  , _extends({}, navigationProviderProps, {
189
187
  handleClose: this.handleCloseAndFocus,
190
188
  closeOnTab: true
@@ -273,8 +271,7 @@ var DropdownMenuItemCustomComponent = /*#__PURE__*/React.forwardRef(function (pr
273
271
  rest = _objectWithoutProperties(props, _excluded);
274
272
  return jsx("span", _extends({
275
273
  ref: ref
276
- // Ignored via go/ees005
277
- // eslint-disable-next-line react/jsx-props-no-spreading
274
+ // eslint-disable-next-line react/jsx-props-no-spreading -- Spreading rest to pass through dynamic component props
278
275
  }, rest, {
279
276
  style: {
280
277
  // This forces the item container back to be `position: static`, the default value.
@@ -380,7 +377,6 @@ function (_ref2) {
380
377
  arrowKeyNavigationProviderOptions: _objectSpread(_objectSpread({}, props.arrowKeyNavigationProviderOptions), {}, {
381
378
  keyDownHandlerContext: keyDownHandlerContext
382
379
  })
383
- // Ignored via go/ees005
384
- // eslint-disable-next-line react/jsx-props-no-spreading
380
+ // eslint-disable-next-line react/jsx-props-no-spreading -- Spreading props to pass through dynamic component props
385
381
  }, props));
386
382
  });
@@ -533,6 +533,8 @@ export declare enum ACTION_SUBJECT_ID {
533
533
  EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM = "editorPluginSelectionExtensionItem",
534
534
  EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT = "editorPluginSelectionExtensionComponent",
535
535
  TRANSFORM = "transform",
536
+ BODIED_SYNCED_BLOCK = "bodiedSyncBlock",
537
+ SYNCED_BLOCK = "syncBlock",
536
538
  SYNCED_BLOCK_TOOLBAR = "syncedBlockToolbar",
537
539
  SYNCED_BLOCK_COPY = "syncedBlockCopy",
538
540
  SYNCED_BLOCK_SOURCE_URL = "syncedBlockSourceUrl",
@@ -142,5 +142,12 @@ type FailedToInsertMediaPayload = OperationalAEP<ACTION.FAILED_TO_INSERT, ACTION
142
142
  insertMediaVia?: InsertMediaVia;
143
143
  reason?: string;
144
144
  }>;
145
- export type InsertEventPayload = InsertDividerAEP | InsertLineBreakAEP | InsertPanelAEP | InsertCodeBlockAEP | InsertTableAEP | InsertExpandAEP | InsertActionDecisionAEP | InsertEmojiAEP | InsertStatusAEP | InsertMediaSingleAEP | InsertMediaGroupAEP | InsertMediaInlineAEP | InsertLinkAEP | InsertLinkPreviewAEP | InsertMediaLinkAEP | InsertSmartLinkAEP | InsertLayoutAEP | InsertExtensionAEP | InsertNodeViaExtensionAPIAEP | InsertDateAEP | InsertPlaceholderTextAEP | FailedToInsertMediaPayload;
145
+ type InsertReferenceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.SYNCED_BLOCK, {
146
+ blockInstanceId: string;
147
+ resourceId: string;
148
+ }, undefined>;
149
+ export type InsertSourceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.BODIED_SYNCED_BLOCK, {
150
+ resourceId: string;
151
+ }, undefined>;
152
+ export type InsertEventPayload = InsertDividerAEP | InsertLineBreakAEP | InsertPanelAEP | InsertCodeBlockAEP | InsertTableAEP | InsertExpandAEP | InsertActionDecisionAEP | InsertEmojiAEP | InsertStatusAEP | InsertMediaSingleAEP | InsertMediaGroupAEP | InsertMediaInlineAEP | InsertLinkAEP | InsertLinkPreviewAEP | InsertMediaLinkAEP | InsertSmartLinkAEP | InsertLayoutAEP | InsertExtensionAEP | InsertNodeViaExtensionAPIAEP | InsertDateAEP | InsertPlaceholderTextAEP | FailedToInsertMediaPayload | InsertReferenceSyncedBlockPayload | InsertSourceSyncedBlockPayload;
146
153
  export {};
@@ -1,5 +1,6 @@
1
1
  import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
2
2
  import type { ExperienceEventPayload } from './experience-events';
3
+ import type { InsertSourceSyncedBlockPayload } from './insert-events';
3
4
  import type { OperationalAEP } from './utils';
4
5
  type SyncedBlockErrorAttributes = {
5
6
  error: string;
@@ -37,6 +38,6 @@ export type SyncedBlockEditSourceAEP = OperationalAEP<ACTION.SYNCED_BLOCK_EDIT_S
37
38
  export type SyncedBlockCopyAEP = OperationalAEP<ACTION.COPIED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_COPY, SyncedBlockCopySuccessAttributes>;
38
39
  export type SyncedBlockCopyErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_COPY, SyncedBlockCopyErrorAttributes>;
39
40
  export type SyncedLocationClickAEP = OperationalAEP<ACTION.CLICKED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_CLICK_SYNCED_LOCATION, SyncedBlockSuccessAttributes>;
40
- export type SyncBlockEventPayload = SyncedBlockSourceURLErrorAEP | SyncedBlockUpdateCacheErrorAEP | SyncedBlockUpdateErrorAEP | SyncedBlockUpdateSuccessAEP | SyncedBlockCreateErrorAEP | SyncedBlockCreateSuccessAEP | SyncedBlockDeleteErrorAEP | SyncedBlockDeleteSuccessAEP | SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP | SyncedBlockFetchSuccessAEP | ReferenceSyncedBlockUpdateErrorAEP | SyncedBlockFetchReferencesErrorAEP | ExperienceEventPayload | ReferenceSyncedBlockCreateSuccessAEP | ReferenceSyncedBlockDeleteSuccessAEP | SyncedBlockEditSourceAEP | SyncedBlockCopyAEP | SyncedBlockCopyErrorAEP | SyncedLocationClickAEP;
41
+ export type SyncBlockEventPayload = SyncedBlockSourceURLErrorAEP | SyncedBlockUpdateCacheErrorAEP | SyncedBlockUpdateErrorAEP | SyncedBlockUpdateSuccessAEP | SyncedBlockCreateErrorAEP | SyncedBlockCreateSuccessAEP | SyncedBlockDeleteErrorAEP | SyncedBlockDeleteSuccessAEP | SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP | SyncedBlockFetchSuccessAEP | ReferenceSyncedBlockUpdateErrorAEP | SyncedBlockFetchReferencesErrorAEP | ExperienceEventPayload | ReferenceSyncedBlockCreateSuccessAEP | ReferenceSyncedBlockDeleteSuccessAEP | SyncedBlockEditSourceAEP | SyncedBlockCopyAEP | SyncedBlockCopyErrorAEP | SyncedLocationClickAEP | InsertSourceSyncedBlockPayload;
41
42
  export type RendererSyncBlockEventPayload = SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP | SyncedBlockFetchSuccessAEP | ReferenceSyncedBlockUpdateErrorAEP | ExperienceEventPayload;
42
43
  export {};
@@ -28,7 +28,7 @@ export declare const IconFiveColumnLayout: React.ComponentType<React.PropsWithCh
28
28
  type HeadingProps = IconProps & {
29
29
  level: HeadingLevels;
30
30
  };
31
- export declare const IconHeading: ({ level, ...props }: HeadingProps) => React.JSX.Element;
31
+ export declare const IconHeading: ({ level, label }: Pick<HeadingProps, "level" | "label">) => React.JSX.Element;
32
32
  export declare const IconFeedback: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
33
33
  export declare const IconExpand: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
34
34
  export declare const IconDatasourceJiraIssue: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
@@ -10,5 +10,5 @@ export interface EmojiProps extends EmojiId {
10
10
  resourceConfig?: EmojiResourceConfig;
11
11
  showTooltip?: boolean;
12
12
  }
13
- declare const _default: React.MemoExoticComponent<(props: EmojiProps) => React.JSX.Element>;
13
+ declare const _default: React.MemoExoticComponent<({ allowTextFallback, shortName, id, fallback, fitToHeight, showTooltip, resourceConfig, emojiProvider, providers, }: EmojiProps) => React.JSX.Element>;
14
14
  export default _default;
@@ -533,6 +533,8 @@ export declare enum ACTION_SUBJECT_ID {
533
533
  EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM = "editorPluginSelectionExtensionItem",
534
534
  EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT = "editorPluginSelectionExtensionComponent",
535
535
  TRANSFORM = "transform",
536
+ BODIED_SYNCED_BLOCK = "bodiedSyncBlock",
537
+ SYNCED_BLOCK = "syncBlock",
536
538
  SYNCED_BLOCK_TOOLBAR = "syncedBlockToolbar",
537
539
  SYNCED_BLOCK_COPY = "syncedBlockCopy",
538
540
  SYNCED_BLOCK_SOURCE_URL = "syncedBlockSourceUrl",
@@ -142,5 +142,12 @@ type FailedToInsertMediaPayload = OperationalAEP<ACTION.FAILED_TO_INSERT, ACTION
142
142
  insertMediaVia?: InsertMediaVia;
143
143
  reason?: string;
144
144
  }>;
145
- export type InsertEventPayload = InsertDividerAEP | InsertLineBreakAEP | InsertPanelAEP | InsertCodeBlockAEP | InsertTableAEP | InsertExpandAEP | InsertActionDecisionAEP | InsertEmojiAEP | InsertStatusAEP | InsertMediaSingleAEP | InsertMediaGroupAEP | InsertMediaInlineAEP | InsertLinkAEP | InsertLinkPreviewAEP | InsertMediaLinkAEP | InsertSmartLinkAEP | InsertLayoutAEP | InsertExtensionAEP | InsertNodeViaExtensionAPIAEP | InsertDateAEP | InsertPlaceholderTextAEP | FailedToInsertMediaPayload;
145
+ type InsertReferenceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.SYNCED_BLOCK, {
146
+ blockInstanceId: string;
147
+ resourceId: string;
148
+ }, undefined>;
149
+ export type InsertSourceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.BODIED_SYNCED_BLOCK, {
150
+ resourceId: string;
151
+ }, undefined>;
152
+ export type InsertEventPayload = InsertDividerAEP | InsertLineBreakAEP | InsertPanelAEP | InsertCodeBlockAEP | InsertTableAEP | InsertExpandAEP | InsertActionDecisionAEP | InsertEmojiAEP | InsertStatusAEP | InsertMediaSingleAEP | InsertMediaGroupAEP | InsertMediaInlineAEP | InsertLinkAEP | InsertLinkPreviewAEP | InsertMediaLinkAEP | InsertSmartLinkAEP | InsertLayoutAEP | InsertExtensionAEP | InsertNodeViaExtensionAPIAEP | InsertDateAEP | InsertPlaceholderTextAEP | FailedToInsertMediaPayload | InsertReferenceSyncedBlockPayload | InsertSourceSyncedBlockPayload;
146
153
  export {};
@@ -1,5 +1,6 @@
1
1
  import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
2
2
  import type { ExperienceEventPayload } from './experience-events';
3
+ import type { InsertSourceSyncedBlockPayload } from './insert-events';
3
4
  import type { OperationalAEP } from './utils';
4
5
  type SyncedBlockErrorAttributes = {
5
6
  error: string;
@@ -37,6 +38,6 @@ export type SyncedBlockEditSourceAEP = OperationalAEP<ACTION.SYNCED_BLOCK_EDIT_S
37
38
  export type SyncedBlockCopyAEP = OperationalAEP<ACTION.COPIED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_COPY, SyncedBlockCopySuccessAttributes>;
38
39
  export type SyncedBlockCopyErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_COPY, SyncedBlockCopyErrorAttributes>;
39
40
  export type SyncedLocationClickAEP = OperationalAEP<ACTION.CLICKED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_CLICK_SYNCED_LOCATION, SyncedBlockSuccessAttributes>;
40
- export type SyncBlockEventPayload = SyncedBlockSourceURLErrorAEP | SyncedBlockUpdateCacheErrorAEP | SyncedBlockUpdateErrorAEP | SyncedBlockUpdateSuccessAEP | SyncedBlockCreateErrorAEP | SyncedBlockCreateSuccessAEP | SyncedBlockDeleteErrorAEP | SyncedBlockDeleteSuccessAEP | SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP | SyncedBlockFetchSuccessAEP | ReferenceSyncedBlockUpdateErrorAEP | SyncedBlockFetchReferencesErrorAEP | ExperienceEventPayload | ReferenceSyncedBlockCreateSuccessAEP | ReferenceSyncedBlockDeleteSuccessAEP | SyncedBlockEditSourceAEP | SyncedBlockCopyAEP | SyncedBlockCopyErrorAEP | SyncedLocationClickAEP;
41
+ export type SyncBlockEventPayload = SyncedBlockSourceURLErrorAEP | SyncedBlockUpdateCacheErrorAEP | SyncedBlockUpdateErrorAEP | SyncedBlockUpdateSuccessAEP | SyncedBlockCreateErrorAEP | SyncedBlockCreateSuccessAEP | SyncedBlockDeleteErrorAEP | SyncedBlockDeleteSuccessAEP | SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP | SyncedBlockFetchSuccessAEP | ReferenceSyncedBlockUpdateErrorAEP | SyncedBlockFetchReferencesErrorAEP | ExperienceEventPayload | ReferenceSyncedBlockCreateSuccessAEP | ReferenceSyncedBlockDeleteSuccessAEP | SyncedBlockEditSourceAEP | SyncedBlockCopyAEP | SyncedBlockCopyErrorAEP | SyncedLocationClickAEP | InsertSourceSyncedBlockPayload;
41
42
  export type RendererSyncBlockEventPayload = SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP | SyncedBlockFetchSuccessAEP | ReferenceSyncedBlockUpdateErrorAEP | ExperienceEventPayload;
42
43
  export {};
@@ -28,7 +28,7 @@ export declare const IconFiveColumnLayout: React.ComponentType<React.PropsWithCh
28
28
  type HeadingProps = IconProps & {
29
29
  level: HeadingLevels;
30
30
  };
31
- export declare const IconHeading: ({ level, ...props }: HeadingProps) => React.JSX.Element;
31
+ export declare const IconHeading: ({ level, label }: Pick<HeadingProps, "level" | "label">) => React.JSX.Element;
32
32
  export declare const IconFeedback: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
33
33
  export declare const IconExpand: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
34
34
  export declare const IconDatasourceJiraIssue: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
@@ -10,5 +10,5 @@ export interface EmojiProps extends EmojiId {
10
10
  resourceConfig?: EmojiResourceConfig;
11
11
  showTooltip?: boolean;
12
12
  }
13
- declare const _default: React.MemoExoticComponent<(props: EmojiProps) => React.JSX.Element>;
13
+ declare const _default: React.MemoExoticComponent<({ allowTextFallback, shortName, id, fallback, fitToHeight, showTooltip, resourceConfig, emojiProvider, providers, }: EmojiProps) => React.JSX.Element>;
14
14
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "111.14.1",
3
+ "version": "111.14.2",
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/"
package/tsconfig.json CHANGED
@@ -1,7 +1,5 @@
1
1
  {
2
2
  "extends": "../../../tsconfig.json",
3
- "compilerOptions": {
4
- },
5
3
  "include": [
6
4
  "src/**/*.ts",
7
5
  "src/**/*.tsx",