@atlaskit/editor-plugin-insert-block 2.4.26 → 2.4.28

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 2.4.28
4
+
5
+ ### Patch Changes
6
+
7
+ - [#99274](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99274)
8
+ [`b4dd134e0caaa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b4dd134e0caaa) -
9
+ ED-25961 Add analytics for clear formatting and adding blockquote from text styles menu
10
+
11
+ ## 2.4.27
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 2.4.26
4
18
 
5
19
  ### Patch Changes
@@ -28,6 +28,9 @@ var _ToolbarInsertBlock = _interopRequireDefault(require("./ui/ToolbarInsertBloc
28
28
  var _transformOptions = require("./ui/transformOptions");
29
29
  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); }
30
30
  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; }
31
+ // Ignored via go/ees005
32
+ // eslint-disable-next-line import/no-named-as-default
33
+
31
34
  var toolbarSizeToButtons = exports.toolbarSizeToButtons = function toolbarSizeToButtons(toolbarSize, appearance) {
32
35
  // Different button numbers for full-page to better match full page toolbar breakpoints
33
36
  if (appearance === 'full-page' && (0, _platformFeatureFlags.fg)('platform_editor_toolbar_responsive_fixes')) {
@@ -83,7 +86,7 @@ function handleInsertBlockType(insertCodeBlock, insertPanel, insertBlockQuote) {
83
86
  return insertPanel(_analytics.INPUT_METHOD.TOOLBAR);
84
87
  }
85
88
  if (name === _consts.BLOCK_QUOTE.name && insertBlockQuote) {
86
- return insertBlockQuote(_analytics.INPUT_METHOD.TOOLBAR);
89
+ return insertBlockQuote(_analytics.INPUT_METHOD.INSERT_MENU);
87
90
  }
88
91
  return function () {
89
92
  return false;
@@ -310,6 +313,8 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
310
313
  if (
311
314
  // @ts-ignore
312
315
  ['full-page', 'full-width'].includes((_options$appearance4 = options.appearance) !== null && _options$appearance4 !== void 0 ? _options$appearance4 : '') && (0, _experiments.editorExperiment)('insert-menu-in-right-rail', true)) {
316
+ // Ignored via go/ees005
317
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
313
318
  plugin.pluginsOptions.contextPanel = function (state) {
314
319
  // api.getSharedState() will have an outdated reference to editorState on first mount of this component
315
320
  // so instead just rely on plugin key as we don't need to be reactive to changes here
@@ -273,10 +273,14 @@ var FlexWrapper = function FlexWrapper(props) {
273
273
  var setOutsideClickTargetRef = (0, _react.useContext)(_uiReact.OutsideClickTargetRefContext);
274
274
  var children = props.children,
275
275
  divProps = (0, _objectWithoutProperties2.default)(props, _excluded);
276
- return (0, _react2.jsx)("div", (0, _extends2.default)({
277
- ref: setOutsideClickTargetRef,
278
- css: flexWrapperStyles
279
- }, divProps), children);
276
+ return (
277
+ // Ignored via go/ees005
278
+ // eslint-disable-next-line react/jsx-props-no-spreading
279
+ (0, _react2.jsx)("div", (0, _extends2.default)({
280
+ ref: setOutsideClickTargetRef,
281
+ css: flexWrapperStyles
282
+ }, divProps), children)
283
+ );
280
284
  };
281
285
  var ElementBrowserWrapper = (0, _uiReact.withReactEditorViewOuterListeners)(FlexWrapper);
282
286
  var _default = exports.default = InsertMenu;
@@ -38,6 +38,10 @@ var _templateObject;
38
38
  * @jsx jsx
39
39
  */
40
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
41
+ // Ignored via go/ees005
42
+ // eslint-disable-next-line import/no-namespace
43
+ // Ignored via go/ees005
44
+ // eslint-disable-next-line import/no-named-as-default
41
45
  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); }
42
46
  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; }
43
47
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
@@ -61,6 +65,8 @@ var getHoverStyles = function getHoverStyles(selector) {
61
65
  };
62
66
  var EmojiPicker = function EmojiPicker(props) {
63
67
  var setOutsideClickTargetRef = _react.default.useContext(_uiReact.OutsideClickTargetRefContext);
68
+ // Ignored via go/ees005
69
+ // eslint-disable-next-line react/jsx-props-no-spreading
64
70
  return (0, _react2.jsx)(_picker.EmojiPicker, (0, _extends2.default)({
65
71
  onPickerRef: setOutsideClickTargetRef
66
72
  }, props));
@@ -165,6 +171,8 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
165
171
  // Workaround for FS-1322 - where two onClicks fire - one when the upload button is
166
172
  // still in the document, and one once it's detached. Does not always occur, and
167
173
  // may be a side effect of a react render optimisation
174
+ // Ignored via go/ees005
175
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
168
176
  if (e.target && !isDetachedElement(e.target)) {
169
177
  _this.toggleEmojiPicker(_analytics.INPUT_METHOD.TOOLBAR);
170
178
  }
@@ -213,6 +221,8 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
213
221
  });
214
222
  (0, _defineProperty2.default)(_this, "handleTableSelectorClickOutside", function (e) {
215
223
  // Ignore click events for detached elements.
224
+ // Ignored via go/ees005
225
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
216
226
  if (e.target && !isDetachedElement(e.target)) {
217
227
  _this.toggleTableSelector(_analytics.INPUT_METHOD.TOOLBAR);
218
228
  }
@@ -426,6 +436,9 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
426
436
  onInsertBlockType = _this$props9.onInsertBlockType;
427
437
  var state = editorView.state,
428
438
  dispatch = editorView.dispatch;
439
+
440
+ // Ignored via go/ees005
441
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
429
442
  onInsertBlockType(itemName)(state, dispatch);
430
443
  return true;
431
444
  };
@@ -132,7 +132,10 @@ var TableSelectorPopup = function TableSelectorPopup(_ref3) {
132
132
  row = _ref4.row;
133
133
  var isCurrentFocused = isFocused && selectedCol === col && selectedRow === row;
134
134
  var isActive = selectedCol >= col && selectedRow >= row ? true : false;
135
- return (0, _react2.jsx)(TableSelectorButton, {
135
+ return (0, _react2.jsx)(TableSelectorButton
136
+ // Ignored via go/ees005
137
+ // eslint-disable-next-line react/no-array-index-key
138
+ , {
136
139
  key: index,
137
140
  isActive: isActive,
138
141
  col: col,
@@ -16,6 +16,8 @@ import { toggleInsertBlockPmKey, toggleInsertBlockPmPlugin } from './pm-plugins/
16
16
  import SwitchIcon from './ui/assets/switch';
17
17
  import { InsertMenuRail } from './ui/ElementRail';
18
18
  import { templateOptions } from './ui/templateOptions';
19
+ // Ignored via go/ees005
20
+ // eslint-disable-next-line import/no-named-as-default
19
21
  import ToolbarInsertBlock from './ui/ToolbarInsertBlock';
20
22
  import { transformationOptions } from './ui/transformOptions';
21
23
  export const toolbarSizeToButtons = (toolbarSize, appearance) => {
@@ -73,7 +75,7 @@ function handleInsertBlockType(insertCodeBlock, insertPanel, insertBlockQuote) {
73
75
  return insertPanel(INPUT_METHOD.TOOLBAR);
74
76
  }
75
77
  if (name === BLOCK_QUOTE.name && insertBlockQuote) {
76
- return insertBlockQuote(INPUT_METHOD.TOOLBAR);
78
+ return insertBlockQuote(INPUT_METHOD.INSERT_MENU);
77
79
  }
78
80
  return () => false;
79
81
  };
@@ -298,6 +300,8 @@ export const insertBlockPlugin = ({
298
300
  if (
299
301
  // @ts-ignore
300
302
  ['full-page', 'full-width'].includes((_options$appearance4 = options.appearance) !== null && _options$appearance4 !== void 0 ? _options$appearance4 : '') && editorExperiment('insert-menu-in-right-rail', true)) {
303
+ // Ignored via go/ees005
304
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
301
305
  plugin.pluginsOptions.contextPanel = state => {
302
306
  // api.getSharedState() will have an outdated reference to editorState on first mount of this component
303
307
  // so instead just rely on plugin key as we don't need to be reactive to changes here
@@ -255,10 +255,14 @@ const FlexWrapper = props => {
255
255
  children,
256
256
  ...divProps
257
257
  } = props;
258
- return jsx("div", _extends({
259
- ref: setOutsideClickTargetRef,
260
- css: flexWrapperStyles
261
- }, divProps), children);
258
+ return (
259
+ // Ignored via go/ees005
260
+ // eslint-disable-next-line react/jsx-props-no-spreading
261
+ jsx("div", _extends({
262
+ ref: setOutsideClickTargetRef,
263
+ css: flexWrapperStyles
264
+ }, divProps), children)
265
+ );
262
266
  };
263
267
  const ElementBrowserWrapper = withOuterListeners(FlexWrapper);
264
268
  export default InsertMenu;
@@ -41,7 +41,7 @@ export const InsertMenuRail = ({
41
41
  state,
42
42
  dispatch
43
43
  } = editorView;
44
- let inputMethod = INPUT_METHOD.INSERT_MENU_RIGHT_RAIL;
44
+ const inputMethod = INPUT_METHOD.INSERT_MENU_RIGHT_RAIL;
45
45
  if (!api) {
46
46
  return;
47
47
  }
@@ -17,11 +17,15 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
17
17
  import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners as withOuterListeners } from '@atlaskit/editor-common/ui-react';
18
18
  import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
19
19
  import { EmojiPicker as AkEmojiPicker } from '@atlaskit/emoji/picker';
20
+ // Ignored via go/ees005
21
+ // eslint-disable-next-line import/no-namespace
20
22
  import * as colors from '@atlaskit/theme/colors';
21
23
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
22
24
  import { toggleInsertMenuRightRail } from '../../pm-plugins/commands';
23
25
  import { BlockInsertMenu } from './block-insert-menu';
24
26
  import { createItems } from './create-items';
27
+ // Ignored via go/ees005
28
+ // eslint-disable-next-line import/no-named-as-default
25
29
  import TableSelectorPopup from './table-selector-popup-with-listeners';
26
30
  /**
27
31
  * Checks if an element is detached (i.e. not in the current document)
@@ -39,6 +43,8 @@ const getHoverStyles = selector => `&:hover ${selector} {
39
43
  }`;
40
44
  const EmojiPicker = props => {
41
45
  const setOutsideClickTargetRef = React.useContext(OutsideClickTargetRefContext);
46
+ // Ignored via go/ees005
47
+ // eslint-disable-next-line react/jsx-props-no-spreading
42
48
  return jsx(AkEmojiPicker, _extends({
43
49
  onPickerRef: setOutsideClickTargetRef
44
50
  }, props));
@@ -169,6 +175,8 @@ export class ToolbarInsertBlock extends React.PureComponent {
169
175
  // Workaround for FS-1322 - where two onClicks fire - one when the upload button is
170
176
  // still in the document, and one once it's detached. Does not always occur, and
171
177
  // may be a side effect of a react render optimisation
178
+ // Ignored via go/ees005
179
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
172
180
  if (e.target && !isDetachedElement(e.target)) {
173
181
  this.toggleEmojiPicker(INPUT_METHOD.TOOLBAR);
174
182
  }
@@ -212,6 +220,8 @@ export class ToolbarInsertBlock extends React.PureComponent {
212
220
  });
213
221
  _defineProperty(this, "handleTableSelectorClickOutside", e => {
214
222
  // Ignore click events for detached elements.
223
+ // Ignored via go/ees005
224
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
215
225
  if (e.target && !isDetachedElement(e.target)) {
216
226
  this.toggleTableSelector(INPUT_METHOD.TOOLBAR);
217
227
  }
@@ -449,6 +459,9 @@ export class ToolbarInsertBlock extends React.PureComponent {
449
459
  state,
450
460
  dispatch
451
461
  } = editorView;
462
+
463
+ // Ignored via go/ees005
464
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
452
465
  onInsertBlockType(itemName)(state, dispatch);
453
466
  return true;
454
467
  });
@@ -743,12 +756,12 @@ export class ToolbarInsertBlock extends React.PureComponent {
743
756
  if (buttons.length === 0 && dropdownItems.length === 0) {
744
757
  return null;
745
758
  }
746
- let toolbarButtons = [];
759
+ const toolbarButtons = [];
747
760
  let tableSelectorButton;
748
761
  let tableButton;
749
762
 
750
763
  // Seperate table buttons from toolbar buttons
751
- for (let btn of buttons) {
764
+ for (const btn of buttons) {
752
765
  if (btn.value.name === TABLE_SELECTOR_STRING) {
753
766
  tableSelectorButton = btn;
754
767
  } else if (btn.value.name === 'table' && this.props.tableSelectorSupported) {
@@ -185,7 +185,7 @@ export const TableSelectorPopup = props => {
185
185
  enableKeyboardMode();
186
186
  setSize(prevSize => {
187
187
  const getRow = (prevRow, prevCol) => {
188
- let row = prevRow;
188
+ const row = prevRow;
189
189
  // Move to previous row for wrap around
190
190
  if (prevSize.col === 1 && prevSize.row > 1) {
191
191
  return prevRow - 1;
@@ -124,7 +124,10 @@ const TableSelectorPopup = ({
124
124
  }, index) => {
125
125
  const isCurrentFocused = isFocused && selectedCol === col && selectedRow === row;
126
126
  const isActive = selectedCol >= col && selectedRow >= row ? true : false;
127
- return jsx(TableSelectorButton, {
127
+ return jsx(TableSelectorButton
128
+ // Ignored via go/ees005
129
+ // eslint-disable-next-line react/no-array-index-key
130
+ , {
128
131
  key: index,
129
132
  isActive: isActive,
130
133
  col: col,
@@ -16,6 +16,8 @@ import { toggleInsertBlockPmKey, toggleInsertBlockPmPlugin } from './pm-plugins/
16
16
  import SwitchIcon from './ui/assets/switch';
17
17
  import { InsertMenuRail } from './ui/ElementRail';
18
18
  import { templateOptions } from './ui/templateOptions';
19
+ // Ignored via go/ees005
20
+ // eslint-disable-next-line import/no-named-as-default
19
21
  import ToolbarInsertBlock from './ui/ToolbarInsertBlock';
20
22
  import { transformationOptions } from './ui/transformOptions';
21
23
  export var toolbarSizeToButtons = function toolbarSizeToButtons(toolbarSize, appearance) {
@@ -73,7 +75,7 @@ function handleInsertBlockType(insertCodeBlock, insertPanel, insertBlockQuote) {
73
75
  return insertPanel(INPUT_METHOD.TOOLBAR);
74
76
  }
75
77
  if (name === BLOCK_QUOTE.name && insertBlockQuote) {
76
- return insertBlockQuote(INPUT_METHOD.TOOLBAR);
78
+ return insertBlockQuote(INPUT_METHOD.INSERT_MENU);
77
79
  }
78
80
  return function () {
79
81
  return false;
@@ -300,6 +302,8 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
300
302
  if (
301
303
  // @ts-ignore
302
304
  ['full-page', 'full-width'].includes((_options$appearance4 = options.appearance) !== null && _options$appearance4 !== void 0 ? _options$appearance4 : '') && editorExperiment('insert-menu-in-right-rail', true)) {
305
+ // Ignored via go/ees005
306
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
303
307
  plugin.pluginsOptions.contextPanel = function (state) {
304
308
  // api.getSharedState() will have an outdated reference to editorState on first mount of this component
305
309
  // so instead just rely on plugin key as we don't need to be reactive to changes here
@@ -270,10 +270,14 @@ var FlexWrapper = function FlexWrapper(props) {
270
270
  var setOutsideClickTargetRef = useContext(OutsideClickTargetRefContext);
271
271
  var children = props.children,
272
272
  divProps = _objectWithoutProperties(props, _excluded);
273
- return jsx("div", _extends({
274
- ref: setOutsideClickTargetRef,
275
- css: flexWrapperStyles
276
- }, divProps), children);
273
+ return (
274
+ // Ignored via go/ees005
275
+ // eslint-disable-next-line react/jsx-props-no-spreading
276
+ jsx("div", _extends({
277
+ ref: setOutsideClickTargetRef,
278
+ css: flexWrapperStyles
279
+ }, divProps), children)
280
+ );
277
281
  };
278
282
  var ElementBrowserWrapper = withOuterListeners(FlexWrapper);
279
283
  export default InsertMenu;
@@ -32,11 +32,15 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
32
32
  import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners as withOuterListeners } from '@atlaskit/editor-common/ui-react';
33
33
  import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
34
34
  import { EmojiPicker as AkEmojiPicker } from '@atlaskit/emoji/picker';
35
+ // Ignored via go/ees005
36
+ // eslint-disable-next-line import/no-namespace
35
37
  import * as colors from '@atlaskit/theme/colors';
36
38
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
37
39
  import { toggleInsertMenuRightRail } from '../../pm-plugins/commands';
38
40
  import { BlockInsertMenu } from './block-insert-menu';
39
41
  import { createItems } from './create-items';
42
+ // Ignored via go/ees005
43
+ // eslint-disable-next-line import/no-named-as-default
40
44
  import TableSelectorPopup from './table-selector-popup-with-listeners';
41
45
  /**
42
46
  * Checks if an element is detached (i.e. not in the current document)
@@ -52,6 +56,8 @@ var getHoverStyles = function getHoverStyles(selector) {
52
56
  };
53
57
  var EmojiPicker = function EmojiPicker(props) {
54
58
  var setOutsideClickTargetRef = React.useContext(OutsideClickTargetRefContext);
59
+ // Ignored via go/ees005
60
+ // eslint-disable-next-line react/jsx-props-no-spreading
55
61
  return jsx(AkEmojiPicker, _extends({
56
62
  onPickerRef: setOutsideClickTargetRef
57
63
  }, props));
@@ -156,6 +162,8 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
156
162
  // Workaround for FS-1322 - where two onClicks fire - one when the upload button is
157
163
  // still in the document, and one once it's detached. Does not always occur, and
158
164
  // may be a side effect of a react render optimisation
165
+ // Ignored via go/ees005
166
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
159
167
  if (e.target && !isDetachedElement(e.target)) {
160
168
  _this.toggleEmojiPicker(INPUT_METHOD.TOOLBAR);
161
169
  }
@@ -204,6 +212,8 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
204
212
  });
205
213
  _defineProperty(_this, "handleTableSelectorClickOutside", function (e) {
206
214
  // Ignore click events for detached elements.
215
+ // Ignored via go/ees005
216
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
207
217
  if (e.target && !isDetachedElement(e.target)) {
208
218
  _this.toggleTableSelector(INPUT_METHOD.TOOLBAR);
209
219
  }
@@ -417,6 +427,9 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
417
427
  onInsertBlockType = _this$props9.onInsertBlockType;
418
428
  var state = editorView.state,
419
429
  dispatch = editorView.dispatch;
430
+
431
+ // Ignored via go/ees005
432
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
420
433
  onInsertBlockType(itemName)(state, dispatch);
421
434
  return true;
422
435
  };
@@ -124,7 +124,10 @@ var TableSelectorPopup = function TableSelectorPopup(_ref3) {
124
124
  row = _ref4.row;
125
125
  var isCurrentFocused = isFocused && selectedCol === col && selectedRow === row;
126
126
  var isActive = selectedCol >= col && selectedRow >= row ? true : false;
127
- return jsx(TableSelectorButton, {
127
+ return jsx(TableSelectorButton
128
+ // Ignored via go/ees005
129
+ // eslint-disable-next-line react/no-array-index-key
130
+ , {
128
131
  key: index,
129
132
  isActive: isActive,
130
133
  col: col,
@@ -1 +1 @@
1
- export declare const shallowEquals: <T extends {}>([aRaw]: ReadonlyArray<unknown>, [bRaw]: ReadonlyArray<unknown>) => boolean;
1
+ export declare const shallowEquals: <T extends Object>([aRaw]: ReadonlyArray<unknown>, [bRaw]: ReadonlyArray<unknown>) => boolean;
@@ -1 +1 @@
1
- export declare const shallowEquals: <T extends {}>([aRaw]: ReadonlyArray<unknown>, [bRaw]: ReadonlyArray<unknown>) => boolean;
1
+ export declare const shallowEquals: <T extends Object>([aRaw]: ReadonlyArray<unknown>, [bRaw]: ReadonlyArray<unknown>) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "2.4.26",
3
+ "version": "2.4.28",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/button": "^20.3.0",
35
- "@atlaskit/editor-common": "^97.0.0",
35
+ "@atlaskit/editor-common": "^98.0.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
37
- "@atlaskit/editor-plugin-block-type": "^4.0.0",
37
+ "@atlaskit/editor-plugin-block-type": "^4.1.0",
38
38
  "@atlaskit/editor-plugin-code-block": "^3.5.0",
39
39
  "@atlaskit/editor-plugin-connectivity": "^1.1.0",
40
40
  "@atlaskit/editor-plugin-date": "^2.4.0",
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/editor-plugin-quick-insert": "^1.8.0",
55
55
  "@atlaskit/editor-plugin-rule": "^1.9.0",
56
56
  "@atlaskit/editor-plugin-status": "^2.6.0",
57
- "@atlaskit/editor-plugin-table": "^8.4.0",
57
+ "@atlaskit/editor-plugin-table": "^9.0.0",
58
58
  "@atlaskit/editor-plugin-tasks-and-decisions": "^2.12.0",
59
59
  "@atlaskit/editor-plugin-type-ahead": "^1.11.0",
60
60
  "@atlaskit/editor-prosemirror": "6.2.1",
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/platform-feature-flags": "^0.3.0",
67
67
  "@atlaskit/primitives": "^13.3.0",
68
68
  "@atlaskit/theme": "^14.0.0",
69
- "@atlaskit/tmp-editor-statsig": "^2.29.0",
69
+ "@atlaskit/tmp-editor-statsig": "^2.31.0",
70
70
  "@atlaskit/tokens": "^2.5.0",
71
71
  "@atlaskit/tooltip": "19.0.0",
72
72
  "@babel/runtime": "^7.0.0",