@atlaskit/editor-core 203.7.3 → 203.7.4

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 (163) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/codemods/__tests__/next-remove-allow-more-text-colors-prop.ts +2 -0
  3. package/codemods/__tests__/remove-config-panel-width-prop.ts +2 -0
  4. package/codemods/__tests__/rename-editor-to-editor-migration-component.ts +2 -0
  5. package/codemods/__tests__/rename-smartlinks-prop.ts +2 -0
  6. package/codemods/__tests__/rename-unsafe-allowUndoRedoButtons-prop.ts +2 -0
  7. package/codemods/__tests__/rename-unsafe-cards-prop.ts +2 -0
  8. package/codemods/utils.ts +2 -0
  9. package/dist/cjs/CollapsedEditor/index.js +4 -1
  10. package/dist/cjs/actions/index.js +7 -0
  11. package/dist/cjs/composable-editor/composable-editor.js +4 -0
  12. package/dist/cjs/composable-editor/core-editor.js +6 -1
  13. package/dist/cjs/composable-editor/editor-internal.js +13 -2
  14. package/dist/cjs/composable-editor/hooks/useProviderFactory.js +6 -1
  15. package/dist/cjs/composable-editor/utils/handleProviders.js +2 -0
  16. package/dist/cjs/create-editor/ErrorBoundary.js +2 -0
  17. package/dist/cjs/create-editor/ReactEditorView.js +8 -1
  18. package/dist/cjs/create-editor/WithEditorView.js +8 -3
  19. package/dist/cjs/create-editor/create-editor.js +2 -0
  20. package/dist/cjs/create-editor/feature-flags-from-props.js +2 -0
  21. package/dist/cjs/editor-appearances/ChromelessEditor.js +2 -0
  22. package/dist/cjs/editor-appearances/CommentEditor.js +2 -0
  23. package/dist/cjs/editor-appearances/FullPageEditor.js +4 -1
  24. package/dist/cjs/editor-appearances/FullWidthEditor.js +2 -0
  25. package/dist/cjs/editor.js +4 -0
  26. package/dist/cjs/test-utils.js +2 -0
  27. package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +2 -0
  28. package/dist/cjs/ui/Addon/Dropdown/index.js +2 -0
  29. package/dist/cjs/ui/Addon/click-area-helper.js +13 -2
  30. package/dist/cjs/ui/Appearance/Chromeless.js +2 -0
  31. package/dist/cjs/ui/Appearance/Comment/Comment.js +15 -3
  32. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +4 -1
  33. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +12 -3
  34. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +3 -0
  35. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +4 -0
  36. package/dist/cjs/ui/ChromeCollapsed/index.js +2 -0
  37. package/dist/cjs/ui/CollapsedEditor/index.js +2 -0
  38. package/dist/cjs/ui/ContextPanel/index.js +10 -4
  39. package/dist/cjs/ui/EditorContext/index.js +11 -0
  40. package/dist/cjs/ui/ErrorBoundary/index.js +2 -0
  41. package/dist/cjs/ui/PluginSlot/index.js +10 -0
  42. package/dist/cjs/ui/PluginSlot/mount-plugin-hooks.js +4 -1
  43. package/dist/cjs/ui/Toolbar/ToolbarInner.js +5 -0
  44. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +8 -2
  45. package/dist/cjs/ui/WithEditorActions/index.js +11 -1
  46. package/dist/cjs/ui/WithFlash/index.js +2 -0
  47. package/dist/cjs/ui/WithHelpTrigger/index.js +4 -0
  48. package/dist/cjs/utils/extensions.js +5 -1
  49. package/dist/cjs/utils/findChangedNodesFromTransaction.js +2 -0
  50. package/dist/cjs/utils/outdatedBrowsers.js +21 -1
  51. package/dist/cjs/utils/prepare-quick-insert-provider.js +2 -0
  52. package/dist/cjs/version-wrapper.js +1 -1
  53. package/dist/es2019/CollapsedEditor/index.js +6 -0
  54. package/dist/es2019/actions/index.js +8 -0
  55. package/dist/es2019/composable-editor/composable-editor.js +4 -0
  56. package/dist/es2019/composable-editor/core-editor.js +6 -1
  57. package/dist/es2019/composable-editor/editor-internal.js +13 -2
  58. package/dist/es2019/composable-editor/hooks/useProviderFactory.js +6 -1
  59. package/dist/es2019/composable-editor/utils/handleProviders.js +2 -0
  60. package/dist/es2019/create-editor/ErrorBoundary.js +2 -0
  61. package/dist/es2019/create-editor/ReactEditorView.js +6 -0
  62. package/dist/es2019/create-editor/WithEditorView.js +8 -3
  63. package/dist/es2019/create-editor/create-editor.js +2 -0
  64. package/dist/es2019/create-editor/feature-flags-from-props.js +2 -0
  65. package/dist/es2019/editor-appearances/ChromelessEditor.js +2 -0
  66. package/dist/es2019/editor-appearances/CommentEditor.js +2 -0
  67. package/dist/es2019/editor-appearances/FullPageEditor.js +4 -1
  68. package/dist/es2019/editor-appearances/FullWidthEditor.js +2 -0
  69. package/dist/es2019/editor.js +4 -0
  70. package/dist/es2019/test-utils.js +2 -0
  71. package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +2 -0
  72. package/dist/es2019/ui/Addon/Dropdown/index.js +2 -0
  73. package/dist/es2019/ui/Addon/click-area-helper.js +13 -2
  74. package/dist/es2019/ui/Appearance/Chromeless.js +2 -0
  75. package/dist/es2019/ui/Appearance/Comment/Comment.js +14 -3
  76. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +4 -1
  77. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +12 -3
  78. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +2 -0
  79. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +4 -0
  80. package/dist/es2019/ui/ChromeCollapsed/index.js +3 -2
  81. package/dist/es2019/ui/CollapsedEditor/index.js +2 -0
  82. package/dist/es2019/ui/ContextPanel/index.js +10 -4
  83. package/dist/es2019/ui/EditorContext/index.js +11 -0
  84. package/dist/es2019/ui/ErrorBoundary/index.js +2 -0
  85. package/dist/es2019/ui/PluginSlot/index.js +10 -0
  86. package/dist/es2019/ui/PluginSlot/mount-plugin-hooks.js +4 -1
  87. package/dist/es2019/ui/Toolbar/ToolbarInner.js +5 -0
  88. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +8 -2
  89. package/dist/es2019/ui/WithEditorActions/index.js +12 -0
  90. package/dist/es2019/ui/WithFlash/index.js +2 -0
  91. package/dist/es2019/ui/WithHelpTrigger/index.js +4 -0
  92. package/dist/es2019/utils/extensions.js +6 -0
  93. package/dist/es2019/utils/findChangedNodesFromTransaction.js +2 -0
  94. package/dist/es2019/utils/outdatedBrowsers.js +21 -1
  95. package/dist/es2019/utils/prepare-quick-insert-provider.js +2 -0
  96. package/dist/es2019/version-wrapper.js +1 -1
  97. package/dist/esm/CollapsedEditor/index.js +6 -0
  98. package/dist/esm/actions/index.js +7 -0
  99. package/dist/esm/composable-editor/composable-editor.js +4 -0
  100. package/dist/esm/composable-editor/core-editor.js +6 -1
  101. package/dist/esm/composable-editor/editor-internal.js +13 -2
  102. package/dist/esm/composable-editor/hooks/useProviderFactory.js +6 -1
  103. package/dist/esm/composable-editor/utils/handleProviders.js +2 -0
  104. package/dist/esm/create-editor/ErrorBoundary.js +2 -0
  105. package/dist/esm/create-editor/ReactEditorView.js +8 -1
  106. package/dist/esm/create-editor/WithEditorView.js +8 -3
  107. package/dist/esm/create-editor/create-editor.js +2 -0
  108. package/dist/esm/create-editor/feature-flags-from-props.js +2 -0
  109. package/dist/esm/editor-appearances/ChromelessEditor.js +2 -0
  110. package/dist/esm/editor-appearances/CommentEditor.js +2 -0
  111. package/dist/esm/editor-appearances/FullPageEditor.js +4 -1
  112. package/dist/esm/editor-appearances/FullWidthEditor.js +2 -0
  113. package/dist/esm/editor.js +4 -0
  114. package/dist/esm/test-utils.js +2 -0
  115. package/dist/esm/ui/Addon/ClickAreaMobile/index.js +2 -0
  116. package/dist/esm/ui/Addon/Dropdown/index.js +2 -0
  117. package/dist/esm/ui/Addon/click-area-helper.js +13 -2
  118. package/dist/esm/ui/Appearance/Chromeless.js +2 -0
  119. package/dist/esm/ui/Appearance/Comment/Comment.js +14 -3
  120. package/dist/esm/ui/Appearance/Comment/Toolbar.js +4 -1
  121. package/dist/esm/ui/Appearance/FullPage/FullPage.js +12 -3
  122. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +2 -0
  123. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +4 -0
  124. package/dist/esm/ui/ChromeCollapsed/index.js +3 -2
  125. package/dist/esm/ui/CollapsedEditor/index.js +2 -0
  126. package/dist/esm/ui/ContextPanel/index.js +10 -4
  127. package/dist/esm/ui/EditorContext/index.js +11 -0
  128. package/dist/esm/ui/ErrorBoundary/index.js +2 -0
  129. package/dist/esm/ui/PluginSlot/index.js +10 -0
  130. package/dist/esm/ui/PluginSlot/mount-plugin-hooks.js +4 -1
  131. package/dist/esm/ui/Toolbar/ToolbarInner.js +5 -0
  132. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +8 -2
  133. package/dist/esm/ui/WithEditorActions/index.js +11 -1
  134. package/dist/esm/ui/WithFlash/index.js +2 -0
  135. package/dist/esm/ui/WithHelpTrigger/index.js +4 -0
  136. package/dist/esm/utils/extensions.js +6 -0
  137. package/dist/esm/utils/findChangedNodesFromTransaction.js +2 -0
  138. package/dist/esm/utils/outdatedBrowsers.js +21 -1
  139. package/dist/esm/utils/prepare-quick-insert-provider.js +2 -0
  140. package/dist/esm/version-wrapper.js +1 -1
  141. package/dist/types/create-editor/ReactEditorView.d.ts +1 -1
  142. package/dist/types/create-editor/create-universal-preset.d.ts +1825 -1825
  143. package/dist/types/create-editor/get-plugins.d.ts +2 -2
  144. package/dist/types/presets/default.d.ts +476 -476
  145. package/dist/types/presets/universal.d.ts +1394 -1394
  146. package/dist/types/presets/useUniversalPreset.d.ts +2032 -2032
  147. package/dist/types/ui/CollapsedEditor/index.d.ts +1 -2
  148. package/dist/types/ui/EditorContext/index.d.ts +2 -2
  149. package/dist/types/ui/WithEditorActions/index.d.ts +1 -1
  150. package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +1 -1
  151. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +1823 -1823
  152. package/dist/types-ts4.5/create-editor/get-plugins.d.ts +2 -2
  153. package/dist/types-ts4.5/presets/default.d.ts +476 -476
  154. package/dist/types-ts4.5/presets/universal.d.ts +1394 -1394
  155. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +2030 -2030
  156. package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +1 -2
  157. package/dist/types-ts4.5/ui/EditorContext/index.d.ts +2 -2
  158. package/dist/types-ts4.5/ui/WithEditorActions/index.d.ts +1 -1
  159. package/docs/0-intro.tsx +6 -0
  160. package/docs/1-legacy-editor.tsx +6 -0
  161. package/docs/4-annotations.tsx +2 -0
  162. package/package.json +11 -7
  163. package/tsconfig.json +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 203.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 203.7.3
4
10
 
5
11
  ### Patch Changes
@@ -3,6 +3,8 @@ import { removeAllowMoreColorsProp } from '../migrates/next-remove-allow-more-te
3
3
  import { createTransformer } from '../utils';
4
4
 
5
5
  // This stays as require() since changing to import will trigger a linter error
6
+ // Ignored via go/ees005
7
+ // eslint-disable-next-line import/no-commonjs
6
8
  const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
7
9
  const transformer = createTransformer('@atlaskit/editor-core', [removeAllowMoreColorsProp]);
8
10
  describe('remove `allowMoreTextColors` field from `allowTextColor` Editor prop.', () => {
@@ -4,6 +4,8 @@ import { removeConfigPanelWidthProp } from '../migrates/remove-config-panel-widt
4
4
  import { createTransformer } from '../utils';
5
5
 
6
6
  // This stays as require() since changing to import will trigger a linter error
7
+ // Ignored via go/ees005
8
+ // eslint-disable-next-line import/no-commonjs
7
9
  const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
8
10
 
9
11
  const transformer = createTransformer('@atlaskit/editor-core', [removeConfigPanelWidthProp]);
@@ -4,6 +4,8 @@ import { renameEditorToMigrationComponent } from '../migrates/rename-editor-to-e
4
4
  import { createTransformer } from '../utils';
5
5
 
6
6
  // This stays as require() since changing to import will trigger a linter error
7
+ // Ignored via go/ees005
8
+ // eslint-disable-next-line import/no-commonjs
7
9
  const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
8
10
 
9
11
  const transformer = createTransformer('@atlaskit/editor-core', [renameEditorToMigrationComponent]);
@@ -4,6 +4,8 @@ import { renameSmartLinksProp } from '../migrates/rename-smartlinks-prop';
4
4
  import { createTransformer } from '../utils';
5
5
 
6
6
  // This stays as require() since changing to import will trigger a linter error
7
+ // Ignored via go/ees005
8
+ // eslint-disable-next-line import/no-commonjs
7
9
  const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
8
10
 
9
11
  const transformer = createTransformer('@atlaskit/editor-core', [renameSmartLinksProp]);
@@ -4,6 +4,8 @@ import { renameUnsafeAllowUndoRedoButtonsProp } from '../migrates/rename-unsafe-
4
4
  import { createTransformer } from '../utils';
5
5
 
6
6
  // This stays as require() since changing to import will trigger a linter error
7
+ // Ignored via go/ees005
8
+ // eslint-disable-next-line import/no-commonjs
7
9
  const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
8
10
 
9
11
  const transformer = createTransformer('@atlaskit/editor-core', [
@@ -4,6 +4,8 @@ import { renameUnsafeCardProp } from '../migrates/rename-unsafe-cards-prop';
4
4
  import { createTransformer } from '../utils';
5
5
 
6
6
  // This stays as require() since changing to import will trigger a linter error
7
+ // Ignored via go/ees005
8
+ // eslint-disable-next-line import/no-commonjs
7
9
  const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
8
10
 
9
11
  const transformer = createTransformer('@atlaskit/editor-core', [renameUnsafeCardProp]);
package/codemods/utils.ts CHANGED
@@ -52,6 +52,8 @@ export const findImportFromPackage = (
52
52
  source: Collection<unknown>,
53
53
  pkg: string,
54
54
  importName: string,
55
+ // Ignored via go/ees005
56
+ // eslint-disable-next-line @typescript-eslint/max-params
55
57
  ): string[] => {
56
58
  // Find regular or renamed imports
57
59
  return (
@@ -19,8 +19,11 @@ var _excluded = ["Editor"];
19
19
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
20
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
21
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
22
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // Ignored via go/ees005
23
+ // eslint-disable-next-line import/no-namespace
23
24
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25
+ // Ignored via go/ees005
26
+ // eslint-disable-next-line @repo/internal/react/no-class-components
24
27
  var CollapsedEditor = exports.default = /*#__PURE__*/function (_React$Component) {
25
28
  function CollapsedEditor() {
26
29
  var _this;
@@ -121,6 +121,8 @@ var EditorActions = exports.default = /*#__PURE__*/function () {
121
121
  }
122
122
 
123
123
  // This method needs to be public for EditorContext component.
124
+ // Ignored via go/ees005
125
+ // eslint-disable-next-line @typescript-eslint/max-params
124
126
  }, {
125
127
  key: "_privateRegisterEditor",
126
128
  value: function _privateRegisterEditor(editorView, eventDispatcher, contentTransformer) {
@@ -189,6 +191,9 @@ var EditorActions = exports.default = /*#__PURE__*/function () {
189
191
  if (!this.editorView || !this.editorView.hasFocus()) {
190
192
  return false;
191
193
  }
194
+
195
+ // Ignored via go/ees005
196
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
192
197
  this.editorView.dom.blur();
193
198
  return true;
194
199
  }
@@ -242,6 +247,8 @@ var EditorActions = exports.default = /*#__PURE__*/function () {
242
247
  }
243
248
  return _context2.abrupt("return", json);
244
249
  case 9:
250
+ // Ignored via go/ees005
251
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
245
252
  nodeSanitized = _model.Node.fromJSON(this.editorView.state.schema, json);
246
253
  _context2.prev = 10;
247
254
  return _context2.abrupt("return", this.contentEncode(nodeSanitized));
@@ -13,9 +13,13 @@ var _coreEditor = require("./core-editor");
13
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
14
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
15
  function ComposableEditor(props) {
16
+ // Ignored via go/ees005
17
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
16
18
  var AppearanceComponent = (0, _react.useMemo)(function () {
17
19
  return (0, _getUiComponent.default)(props.appearance);
18
20
  }, [props.appearance]);
21
+ // Ignored via go/ees005
22
+ // eslint-disable-next-line react/jsx-props-no-spreading
19
23
  return /*#__PURE__*/_react.default.createElement(_coreEditor.CoreEditor, (0, _extends2.default)({}, props, {
20
24
  AppearanceComponent: AppearanceComponent
21
25
  }));
@@ -33,6 +33,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
33
33
  * @jsxRuntime classic
34
34
  * @jsx jsx
35
35
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
36
+ // Ignored via go/ees005
37
+ // eslint-disable-next-line import/no-named-as-default
36
38
  /**
37
39
  * Editor wrapper that deals with the lifecycle logic of the editor
38
40
  */
@@ -125,7 +127,10 @@ function CoreEditor(props) {
125
127
  // @ts-expect-error Type 'string' is not assignable to type '"editorCore" | "renderer"'.
126
128
  , {
127
129
  data: data
128
- }, (0, _react2.jsx)(Editor, (0, _extends2.default)({}, props, {
130
+ }, (0, _react2.jsx)(Editor
131
+ // Ignored via go/ees005
132
+ // eslint-disable-next-line react/jsx-props-no-spreading
133
+ , (0, _extends2.default)({}, props, {
129
134
  featureFlags: memodEditorFeatureFlags
130
135
  })));
131
136
  }
@@ -28,6 +28,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
28
28
  * @jsxRuntime classic
29
29
  * @jsx jsx
30
30
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
31
+ // Ignored via go/ees005
32
+ // eslint-disable-next-line import/no-named-as-default
31
33
  var editorContainerStyles = (0, _react2.css)({
32
34
  position: 'relative',
33
35
  width: '100%',
@@ -106,7 +108,10 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
106
108
  baseFontSize: (0, _getBaseFontSize.getBaseFontSize)(props.appearance)
107
109
  }, (0, _react2.jsx)(AppearanceComponent, {
108
110
  innerRef: editorRef,
109
- editorAPI: editorAPI,
111
+ editorAPI: editorAPI
112
+ // Ignored via go/ees005
113
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
114
+ ,
110
115
  appearance: props.appearance,
111
116
  disabled: props.disabled,
112
117
  editorActions: editorActions,
@@ -161,7 +166,10 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
161
166
  baseFontSize: (0, _getBaseFontSize.getBaseFontSize)(props.appearance)
162
167
  }, (0, _react2.jsx)(AppearanceComponent, {
163
168
  innerRef: editorRef,
164
- editorAPI: editorAPI,
169
+ editorAPI: editorAPI
170
+ // Ignored via go/ees005
171
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
172
+ ,
165
173
  appearance: props.appearance,
166
174
  disabled: props.disabled,
167
175
  editorActions: editorActions,
@@ -215,6 +223,9 @@ function ReactEditorViewContextWrapper(props) {
215
223
  autoformattingProvider: props.editorProps.autoformattingProvider,
216
224
  taskDecisionProvider: props.editorProps.taskDecisionProvider
217
225
  });
226
+
227
+ // Ignored via go/ees005
228
+ // eslint-disable-next-line react/jsx-props-no-spreading
218
229
  return (0, _react2.jsx)(_ReactEditorView.default, (0, _extends2.default)({}, props, {
219
230
  editorAPI: editorAPI,
220
231
  setEditorAPI: setEditorAPI
@@ -11,7 +11,10 @@ var _prepareExtensionProvider = _interopRequireDefault(require("../../utils/prep
11
11
  var _prepareQuickInsertProvider = _interopRequireDefault(require("../../utils/prepare-quick-insert-provider"));
12
12
  var _getProvidersFromEditorProps = _interopRequireDefault(require("../utils/getProvidersFromEditorProps"));
13
13
  var _handleProviders = _interopRequireDefault(require("../utils/handleProviders"));
14
- function useEditorRef(preset) {
14
+ function useEditorRef(
15
+ // Ignored via go/ees005
16
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
+ preset) {
15
18
  var apiRef = (0, _react.useRef)();
16
19
  (0, _react.useEffect)(function () {
17
20
  return preset === null || preset === void 0 ? void 0 : preset.apiResolver.on(function (api) {
@@ -20,6 +23,8 @@ function useEditorRef(preset) {
20
23
  }, [preset === null || preset === void 0 ? void 0 : preset.apiResolver]);
21
24
  return apiRef;
22
25
  }
26
+ // Ignored via go/ees005
27
+ // eslint-disable-next-line @typescript-eslint/max-params
23
28
  function prepareProviders(editorActions, apiRef, quickInsert, extensionProviders, createAnalyticsEvent) {
24
29
  var extensionProvider = (0, _prepareExtensionProvider.default)(function () {
25
30
  return editorActions;
@@ -13,6 +13,8 @@ exports.default = handleProviders;
13
13
  * @param extensionProvider
14
14
  * @param quickInsertProvider
15
15
  */
16
+ // Ignored via go/ees005
17
+ // eslint-disable-next-line @typescript-eslint/max-params
16
18
  function handleProviders(providerFactory, _ref, extensionProvider, quickInsertProvider) {
17
19
  var mentionProvider = _ref.mentionProvider,
18
20
  contextIdentifierProvider = _ref.contextIdentifierProvider,
@@ -23,6 +23,8 @@ var _outdatedBrowsers = require("../utils/outdatedBrowsers");
23
23
  var _WithEditorView = require("./WithEditorView");
24
24
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
25
25
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
26
+ // Ignored via go/ees005
27
+ // eslint-disable-next-line @repo/internal/react/no-class-components
26
28
  var ErrorBoundaryWithEditorView = exports.ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
27
29
  function ErrorBoundaryWithEditorView(props) {
28
30
  var _this;
@@ -87,6 +87,8 @@ function handleEditorFocus(view) {
87
87
  view.focus();
88
88
  }, 0);
89
89
  }
90
+ // Ignored via go/ees005
91
+ // eslint-disable-next-line @repo/internal/react/no-class-components
90
92
  var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Component) {
91
93
  function ReactEditorView(props) {
92
94
  var _this$props$editorPro3, _props$setEditorAPI;
@@ -397,6 +399,8 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
397
399
  (0, _defineProperty2.default)(_this, "handleEditorViewRef", function (node) {
398
400
  if (!_this.view && node) {
399
401
  _this.createEditorView(node);
402
+ // Ignored via go/ees005
403
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
400
404
  var view = _this.view;
401
405
  _this.props.onEditorCreated({
402
406
  view: view,
@@ -530,7 +534,10 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
530
534
  }
531
535
  }, {
532
536
  key: "UNSAFE_componentWillReceiveProps",
533
- value: function UNSAFE_componentWillReceiveProps(nextProps) {
537
+ value:
538
+ // Ignored via go/ees005
539
+ // eslint-disable-next-line react/no-unsafe
540
+ function UNSAFE_componentWillReceiveProps(nextProps) {
534
541
  var _nextProps$editorProp, _this$props$editorPro4;
535
542
  if (this.view && this.props.editorProps.disabled !== nextProps.editorProps.disabled) {
536
543
  // Disables the contentEditable attribute of the editor if the editor is disabled
@@ -12,9 +12,14 @@ var WithEditorView = exports.WithEditorView = function WithEditorView(WrappedCom
12
12
  var _WithFeatureFlags = function _WithFeatureFlags(props) {
13
13
  var _useEditorContext = (0, _EditorContext.useEditorContext)(),
14
14
  editorActions = _useEditorContext.editorActions;
15
- return /*#__PURE__*/_react.default.createElement(WrappedComponent, (0, _extends2.default)({}, props, {
16
- editorView: editorActions === null || editorActions === void 0 ? void 0 : editorActions._privateGetEditorView()
17
- }));
15
+ return (
16
+ /*#__PURE__*/
17
+ // Ignored via go/ees005
18
+ // eslint-disable-next-line react/jsx-props-no-spreading
19
+ _react.default.createElement(WrappedComponent, (0, _extends2.default)({}, props, {
20
+ editorView: editorActions === null || editorActions === void 0 ? void 0 : editorActions._privateGetEditorView()
21
+ }))
22
+ );
18
23
  };
19
24
  return _WithFeatureFlags;
20
25
  };
@@ -41,6 +41,8 @@ function processPluginsList(plugins) {
41
41
  if (!acc[pluginName]) {
42
42
  acc[pluginName] = [];
43
43
  }
44
+ // Ignored via go/ees005
45
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
44
46
  acc[pluginName].push(plugin.pluginsOptions[pluginName]);
45
47
  });
46
48
  }
@@ -41,6 +41,8 @@ function createFeatureFlagsFromProps(featureFlags) {
41
41
  enableViewUpdateSubscription: Boolean(typeof (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.enableViewUpdateSubscription) === 'boolean' ? !!(featureFlags !== null && featureFlags !== void 0 && featureFlags.enableViewUpdateSubscription) : false),
42
42
  collabAvatarScroll: Boolean(typeof (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.collabAvatarScroll) === 'boolean' ? !!(featureFlags !== null && featureFlags !== void 0 && featureFlags.collabAvatarScroll) : false),
43
43
  twoLineEditorToolbar: Boolean(typeof (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.twoLineEditorToolbar) === 'boolean' ? !!(featureFlags !== null && featureFlags !== void 0 && featureFlags.twoLineEditorToolbar) : false),
44
+ // Ignored via go/ees005
45
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
44
46
  disableSpellcheckByBrowser: getSpellCheck(featureFlags)
45
47
  });
46
48
  }
@@ -20,6 +20,8 @@ var _Chromeless = _interopRequireDefault(require("../ui/Appearance/Chromeless"))
20
20
  * @returns Editor component
21
21
  */
22
22
  function ChromelessEditor(props) {
23
+ // Ignored via go/ees005
24
+ // eslint-disable-next-line react/jsx-props-no-spreading
23
25
  return /*#__PURE__*/_react.default.createElement(_coreEditor.CoreEditor, (0, _extends2.default)({}, props, {
24
26
  appearance: "chromeless",
25
27
  AppearanceComponent: _Chromeless.default
@@ -20,6 +20,8 @@ var _Comment = require("../ui/Appearance/Comment/Comment");
20
20
  * @returns Editor component
21
21
  */
22
22
  function CommentEditor(props) {
23
+ // Ignored via go/ees005
24
+ // eslint-disable-next-line react/jsx-props-no-spreading
23
25
  return /*#__PURE__*/_react.default.createElement(_coreEditor.CoreEditor, (0, _extends2.default)({}, props, {
24
26
  appearance: "comment",
25
27
  AppearanceComponent: _Comment.CommentEditorWithIntl
@@ -21,7 +21,10 @@ var _FullPage = require("../ui/Appearance/FullPage/FullPage");
21
21
  */
22
22
  function FullPageEditor(props) {
23
23
  var _props$appearance;
24
- return /*#__PURE__*/_react.default.createElement(_coreEditor.CoreEditor, (0, _extends2.default)({}, props, {
24
+ return /*#__PURE__*/_react.default.createElement(_coreEditor.CoreEditor
25
+ // Ignored via go/ees005
26
+ // eslint-disable-next-line react/jsx-props-no-spreading
27
+ , (0, _extends2.default)({}, props, {
25
28
  appearance: (_props$appearance = props.appearance) !== null && _props$appearance !== void 0 ? _props$appearance : 'full-page',
26
29
  AppearanceComponent: _FullPage.FullPageEditor
27
30
  }));
@@ -22,6 +22,8 @@ var _FullPage = require("../ui/Appearance/FullPage/FullPage");
22
22
  * @deprecated In favour of `FullPageEditor` with appearance "full-width"
23
23
  */
24
24
  function FullWidthEditor(props) {
25
+ // Ignored via go/ees005
26
+ // eslint-disable-next-line react/jsx-props-no-spreading
25
27
  return /*#__PURE__*/_react.default.createElement(_coreEditor.CoreEditor, (0, _extends2.default)({}, props, {
26
28
  appearance: "full-width",
27
29
  AppearanceComponent: _FullPage.FullPageEditor
@@ -30,6 +30,8 @@ var ComposableEditorWrapper = function ComposableEditorWrapper(_ref) {
30
30
  props: props,
31
31
  initialPluginConfiguration: initialPluginConfiguration
32
32
  });
33
+ // Ignored via go/ees005
34
+ // eslint-disable-next-line react/jsx-props-no-spreading
33
35
  return (0, _react2.jsx)(_composableEditor.ComposableEditor, (0, _extends2.default)({
34
36
  preset: preset
35
37
  }, props));
@@ -42,6 +44,8 @@ var ComposableEditorWrapper = function ComposableEditorWrapper(_ref) {
42
44
  * It allows you to create an editor with a custom set of plugins and configurations.
43
45
  * For more information, see the documentation for the `ComposableEditor` component here: https://atlaskit.atlassian.com/packages/editor/editor-core
44
46
  */
47
+ // Ignored via go/ees005
48
+ // eslint-disable-next-line @repo/internal/react/no-class-components
45
49
  var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
46
50
  function Editor(props) {
47
51
  var _this;
@@ -26,6 +26,8 @@ function lightProcessPluginsList(editorPlugins) {
26
26
  if (!acc[pluginName]) {
27
27
  acc[pluginName] = [];
28
28
  }
29
+ // Ignored via go/ees005
30
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
29
31
  acc[pluginName].push(plugin.pluginsOptions[pluginName]);
30
32
  });
31
33
  }
@@ -47,6 +47,8 @@ var clickWrapper = function clickWrapper(_ref) {
47
47
  * This relies on the Scroll Gutter plugin which inserts additional
48
48
  * whitespace at the end of the document when it overflows the viewport.
49
49
  */
50
+ // Ignored via go/ees005
51
+ // eslint-disable-next-line @repo/internal/react/no-class-components
50
52
  var ClickAreaMobile = exports.default = /*#__PURE__*/function (_React$Component) {
51
53
  function ClickAreaMobile() {
52
54
  var _this;
@@ -19,6 +19,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
19
19
  * @jsxRuntime classic
20
20
  * @jsx jsx
21
21
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
+ // Ignored via go/ees005
23
+ // eslint-disable-next-line @repo/internal/react/no-class-components
22
24
  var DropdownWrapper = exports.default = /*#__PURE__*/function (_React$Component) {
23
25
  function DropdownWrapper() {
24
26
  var _this;
@@ -14,6 +14,8 @@ var insideContentArea = function insideContentArea(ref) {
14
14
  if (ref.classList && ref.classList.contains('ak-editor-content-area')) {
15
15
  return true;
16
16
  }
17
+ // Ignored via go/ees005
18
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
17
19
  ref = ref.parentNode;
18
20
  }
19
21
  return false;
@@ -47,6 +49,9 @@ var clickAreaClickHandler = exports.clickAreaClickHandler = function clickAreaCl
47
49
  if (!(event.target instanceof HTMLElement)) {
48
50
  return;
49
51
  }
52
+
53
+ // Ignored via go/ees005
54
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
50
55
  var target = event.target;
51
56
  var isTargetContentArea = target === null || target === void 0 ? void 0 : target.classList.contains('ak-editor-content-area');
52
57
  var isTargetChildOfContentArea = insideContentArea((target === null || target === void 0 ? void 0 : target.parentNode) instanceof HTMLElement ? target === null || target === void 0 ? void 0 : target.parentNode : null);
@@ -69,7 +74,10 @@ var clickAreaClickHandler = exports.clickAreaClickHandler = function clickAreaCl
69
74
  var isTextAreaClicked = (target === null || target === void 0 ? void 0 : target.nodeName) === 'TEXTAREA';
70
75
  var isBreadcrumbClicked = !!(0, _utils.closestElement)(target, 'nav[aria-label="Breadcrumbs"]');
71
76
  var selection = window.getSelection();
72
- var isEditorPopupTextSelected = (selection === null || selection === void 0 ? void 0 : selection.type) === 'Range' && (0, _utils.closestElement)(selection === null || selection === void 0 ? void 0 : selection.anchorNode, '[data-editor-popup]');
77
+ var isEditorPopupTextSelected = (selection === null || selection === void 0 ? void 0 : selection.type) === 'Range' &&
78
+ // Ignored via go/ees005
79
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
80
+ (0, _utils.closestElement)(selection === null || selection === void 0 ? void 0 : selection.anchorNode, '[data-editor-popup]');
73
81
 
74
82
  // This is a super workaround to find when events are coming from Confluence InlineComment modal
75
83
  // We don't own those components, so we can't change them
@@ -104,7 +112,10 @@ var outsideProsemirrorEditorClickHandler = function outsideProsemirrorEditorClic
104
112
  tr.setMeta('outsideProsemirrorEditorClicked', true);
105
113
  (0, _commands.addParagraphAtEnd)(tr);
106
114
  }
107
- (0, _selection.setSelectionTopLevelBlocks)(tr, event, dom, view.posAtCoords.bind(view), isEditorFocused);
115
+ (0, _selection.setSelectionTopLevelBlocks)(tr, event,
116
+ // Ignored via go/ees005
117
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
118
+ dom, view.posAtCoords.bind(view), isEditorFocused);
108
119
  (0, _collab.tintDirtyTransaction)(tr);
109
120
  if (!tr.docChanged && !tr.selectionSet) {
110
121
  return;
@@ -51,6 +51,8 @@ _scrollbar.scrollbarStyles, {
51
51
  });
52
52
  var ContentArea = (0, _ContentStyles.createEditorContentStyle)();
53
53
  ContentArea.displayName = 'ContentArea';
54
+ // Ignored via go/ees005
55
+ // eslint-disable-next-line @repo/internal/react/no-class-components
54
56
  var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
55
57
  function Editor() {
56
58
  var _this;
@@ -35,6 +35,9 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
35
35
 
36
36
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
37
37
 
38
+ // Ignored via go/ees005
39
+ // eslint-disable-next-line import/no-named-as-default
40
+
38
41
  var CommentEditorMargin = 14;
39
42
  var commentEditorStyles = (0, _react2.css)({
40
43
  display: 'flex',
@@ -185,10 +188,19 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
185
188
  editorAppearance: appearance,
186
189
  useStickyToolbar: useStickyToolbar,
187
190
  intl: intl
188
- }, (0, _react2.jsx)(_ToolbarWithSizeDetector.ToolbarWithSizeDetector, {
191
+ }, (0, _react2.jsx)(_ToolbarWithSizeDetector.ToolbarWithSizeDetector
192
+ // Ignored via go/ees005
193
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
194
+ , {
189
195
  editorView: editorView,
190
- editorActions: editorActions,
191
- eventDispatcher: eventDispatcher,
196
+ editorActions: editorActions
197
+ // Ignored via go/ees005
198
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
199
+ ,
200
+ eventDispatcher: eventDispatcher
201
+ // Ignored via go/ees005
202
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
203
+ ,
192
204
  providerFactory: providerFactory,
193
205
  appearance: appearance,
194
206
  items: primaryToolbarComponents,
@@ -111,7 +111,10 @@ var MainToolbar = exports.MainToolbar = function MainToolbar(_ref) {
111
111
  twoLineEditorToolbar = _ref.twoLineEditorToolbar,
112
112
  children = _ref.children;
113
113
  if (useStickyToolbar) {
114
- return (0, _react2.jsx)(StickyToolbar, (0, _extends2.default)({}, getStickyParameters(useStickyToolbar), {
114
+ return (0, _react2.jsx)(StickyToolbar
115
+ // Ignored via go/ees005
116
+ // eslint-disable-next-line react/jsx-props-no-spreading
117
+ , (0, _extends2.default)({}, getStickyParameters(useStickyToolbar), {
115
118
  twoLineEditorToolbar: twoLineEditorToolbar
116
119
  }), children);
117
120
  }
@@ -87,8 +87,14 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
87
87
  disabled: !!props.disabled,
88
88
  dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
89
89
  editorActions: props.editorActions,
90
- editorDOMElement: props.editorDOMElement,
91
- editorView: props.editorView,
90
+ editorDOMElement: props.editorDOMElement
91
+ // Ignored via go/ees005
92
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
93
+ ,
94
+ editorView: props.editorView
95
+ // Ignored via go/ees005
96
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
97
+ ,
92
98
  eventDispatcher: props.eventDispatcher,
93
99
  hasMinWidth: props.enableToolbarMinWidth,
94
100
  popupsBoundariesElement: props.popupsBoundariesElement,
@@ -108,7 +114,10 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
108
114
  disabled: props.disabled,
109
115
  dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
110
116
  editorActions: props.editorActions,
111
- editorDOMElement: props.editorDOMElement,
117
+ editorDOMElement: props.editorDOMElement
118
+ // Ignored via go/ees005
119
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
120
+ ,
112
121
  editorView: props.editorView,
113
122
  eventDispatcher: props.eventDispatcher,
114
123
  popupsBoundariesElement: popupsBoundariesElement,
@@ -24,6 +24,9 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
24
24
 
25
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
 
27
+ // Ignored via go/ees005
28
+ // eslint-disable-next-line import/no-named-as-default
29
+
27
30
  var CONTENT_AREA_TEST_ID = exports.CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
28
31
  var EDITOR_CONTAINER = exports.EDITOR_CONTAINER = 'ak-editor-container';
29
32
  var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
@@ -76,8 +76,12 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
76
76
  var updateOnResize = function updateOnResize() {
77
77
  setShouldSplitToolbar(window.innerWidth <= _MainToolbar.MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT);
78
78
  };
79
+ // Ignored via go/ees005
80
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
79
81
  window.addEventListener('resize', updateOnResize);
80
82
  updateOnResize();
83
+ // Ignored via go/ees005
84
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
81
85
  return function () {
82
86
  return window.removeEventListener('resize', updateOnResize);
83
87
  };
@@ -24,6 +24,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsxRuntime classic
25
25
  * @jsx jsx
26
26
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
27
+ // Ignored via go/ees005
28
+ // eslint-disable-next-line @repo/internal/react/no-class-components
27
29
  var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
28
30
  function ChromeCollapsed() {
29
31
  var _this;
@@ -16,6 +16,8 @@ var _ChromeCollapsed = _interopRequireDefault(require("../ChromeCollapsed"));
16
16
  var _IntlProviderIfMissingWrapper = require("../IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper");
17
17
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
18
18
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
+ // Ignored via go/ees005
20
+ // eslint-disable-next-line @repo/internal/react/no-class-components
19
21
  var CollapsedEditor = exports.default = /*#__PURE__*/function (_React$Component) {
20
22
  function CollapsedEditor() {
21
23
  var _this;
@@ -55,6 +55,8 @@ var content = exports.content = (0, _react2.css)({
55
55
  var paddingStyles = (0, _react2.css)({
56
56
  padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-200, 16px)", " 0px")
57
57
  });
58
+ // Ignored via go/ees005
59
+ // eslint-disable-next-line @repo/internal/react/no-class-components
58
60
  var SwappableContentArea = exports.SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
59
61
  function SwappableContentArea() {
60
62
  var _this;
@@ -171,8 +173,12 @@ function ContextPanel(props) {
171
173
  var _useSharedPluginState = (0, _hooks.useSharedPluginState)(props.editorAPI, ['contextPanel']),
172
174
  contextPanelState = _useSharedPluginState.contextPanelState;
173
175
  var firstContent = contextPanelState && (contextPanelState === null || contextPanelState === void 0 || (_contextPanelState$co = contextPanelState.contents) === null || _contextPanelState$co === void 0 ? void 0 : _contextPanelState$co.find(Boolean));
174
- return (0, _react2.jsx)(SwappableContentArea, (0, _extends2.default)({}, props, {
175
- editorAPI: props.editorAPI,
176
- pluginContent: firstContent
177
- }));
176
+ return (
177
+ // Ignored via go/ees005
178
+ // eslint-disable-next-line react/jsx-props-no-spreading
179
+ (0, _react2.jsx)(SwappableContentArea, (0, _extends2.default)({}, props, {
180
+ editorAPI: props.editorAPI,
181
+ pluginContent: firstContent
182
+ }))
183
+ );
178
184
  }