@atlaskit/editor-plugin-insert-block 1.3.5 → 1.3.7

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,17 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 1.3.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.3.6
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.3.5
4
16
 
5
17
  ### Patch Changes
@@ -18,6 +18,7 @@ var _theme = require("@atlaskit/theme");
18
18
  var _colors = require("@atlaskit/theme/colors");
19
19
  var _excluded = ["children"];
20
20
  /** @jsx jsx */
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
21
22
  // AFP-2532 TODO: Fix automatic suppressions below
22
23
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
23
24
  var InsertMenu = function InsertMenu(_ref) {
@@ -144,10 +145,12 @@ var insertMenuWrapper = function insertMenuWrapper(itemCount) {
144
145
  display: 'flex',
145
146
  flexDirection: 'column',
146
147
  width: '320px',
148
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
147
149
  height: "".concat(getInsertMenuHeight({
148
150
  itemCount: itemCount
149
151
  }), "px"),
150
152
  backgroundColor: "".concat("var(--ds-surface-overlay, ".concat(_colors.N0, ")")),
153
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
151
154
  borderRadius: "".concat((0, _theme.borderRadius)(), "px"),
152
155
  boxShadow: "".concat("var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N30A, ",\n 0 2px 1px ").concat(_colors.N30A, ",\n 0 0 20px -6px ").concat(_colors.N60A), ")"))
153
156
  });
@@ -15,9 +15,11 @@ var _add = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/add"));
15
15
  var _styles2 = require("./styles");
16
16
  /** @jsx jsx */
17
17
 
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
+
18
20
  var DropDownButtonIcon = /*#__PURE__*/_react.default.memo(function (props) {
19
21
  return (
20
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
22
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
21
23
  (0, _react2.jsx)("span", {
22
24
  css: _styles2.triggerWrapper
23
25
  }, (0, _react2.jsx)(_add.default, {
@@ -33,6 +33,7 @@ var _messages = require("./messages");
33
33
  var _tableSelectorPopupWithListeners = _interopRequireDefault(require("./table-selector-popup-with-listeners"));
34
34
  var _templateObject;
35
35
  /** @jsx jsx */
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
36
37
  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); }
37
38
  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 && Object.prototype.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; }
38
39
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
@@ -654,7 +655,7 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
654
655
  _iterator.f();
655
656
  }
656
657
  return (
657
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
658
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
658
659
  (0, _react2.jsx)("span", {
659
660
  css: _styles.buttonGroupStyle
660
661
  }, toolbarButtons.map(function (btn) {
@@ -31,6 +31,8 @@ var _status = _interopRequireDefault(require("@atlaskit/icon/glyph/status"));
31
31
  var _shallowEquals = require("./shallow-equals");
32
32
  /** @jsx jsx */
33
33
 
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
35
+
34
36
  var from = function from(init) {
35
37
  return {
36
38
  content: init.content,
@@ -42,7 +44,7 @@ var from = function from(init) {
42
44
  label: ""
43
45
  }),
44
46
  elemAfter: init.shortcut ?
45
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
47
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
46
48
  (0, _react2.jsx)("div", {
47
49
  css: _shortcut.shortcutStyle
48
50
  }, init.shortcut) : undefined,
@@ -5,13 +5,18 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.triggerWrapper = void 0;
7
7
  var _react = require("@emotion/react");
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
+
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
8
11
  var triggerWrapper = exports.triggerWrapper = (0, _react.css)({
9
12
  width: '42px',
10
13
  display: 'flex',
11
14
  alignItems: 'center',
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
12
16
  '> div, > span': {
13
17
  display: 'flex'
14
18
  },
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
15
20
  '> div > div': {
16
21
  display: 'flex'
17
22
  }
@@ -19,7 +19,7 @@ var _tableSelectorPopup = _interopRequireWildcard(require("./table-selector-popu
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 && Object.prototype.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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
22
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
23
23
  var TABLE_SELECTOR_PADDING_TOP = 8;
24
24
  var TABLE_SELECTOR_PADDING_SIDE = 10;
25
25
  var DEFAULT_TABLE_SELECTOR_ROWS = 5;
@@ -12,6 +12,8 @@ var _primitives = require("@atlaskit/primitives");
12
12
  var _colors = require("@atlaskit/theme/colors");
13
13
  /** @jsx jsx */
14
14
 
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
+
15
17
  var TABLE_SELECTOR_BUTTON_GAP = exports.TABLE_SELECTOR_BUTTON_GAP = 2;
16
18
  var TABLE_SELECTOR_BUTTON_SIZE = exports.TABLE_SELECTOR_BUTTON_SIZE = 17;
17
19
  var selectedButtonStyles = (0, _react2.css)({
@@ -90,7 +92,9 @@ var gridWrapperStyles = function gridWrapperStyles(_ref2) {
90
92
  maxRows = _ref2.maxRows;
91
93
  return (0, _react2.css)({
92
94
  display: 'grid',
95
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
93
96
  gridTemplateColumns: "repeat(".concat(maxCols, ", 1fr)"),
97
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
94
98
  gridTemplateRows: "repeat(".concat(maxRows, ", 1fr)"),
95
99
  gap: "".concat("var(--ds-space-025, ".concat("".concat(TABLE_SELECTOR_BUTTON_GAP, "px"), ")"))
96
100
  });
@@ -2,6 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
3
 
4
4
  import { useCallback, useState } from 'react';
5
+
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
7
  import { css, jsx } from '@emotion/react';
6
8
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
9
  import { ELEMENT_ITEM_HEIGHT, ElementBrowser } from '@atlaskit/editor-common/element-browser';
@@ -128,10 +130,12 @@ const insertMenuWrapper = itemCount => css({
128
130
  display: 'flex',
129
131
  flexDirection: 'column',
130
132
  width: '320px',
133
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
131
134
  height: `${getInsertMenuHeight({
132
135
  itemCount
133
136
  })}px`,
134
137
  backgroundColor: `${`var(--ds-surface-overlay, ${N0})`}`,
138
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
135
139
  borderRadius: `${borderRadius()}px`,
136
140
  boxShadow: `${`var(--ds-shadow-overlay, ${`0 0 0 1px ${N30A},
137
141
  0 2px 1px ${N30A},
@@ -1,5 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
+
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
5
  import { jsx } from '@emotion/react';
4
6
  import { ToolTipContent } from '@atlaskit/editor-common/keymaps';
5
7
  import { expandIconWrapperStyle } from '@atlaskit/editor-common/styles';
@@ -8,7 +10,7 @@ import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
8
10
  import AddIcon from '@atlaskit/icon/glyph/editor/add';
9
11
  import { triggerWrapper } from './styles';
10
12
  const DropDownButtonIcon = /*#__PURE__*/React.memo(props =>
11
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
13
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
12
14
  jsx("span", {
13
15
  css: triggerWrapper
14
16
  }, jsx(AddIcon, {
@@ -1,6 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /** @jsx jsx */
3
3
  import React from 'react';
4
+
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
6
  import { css, jsx } from '@emotion/react';
5
7
  import ReactDOM from 'react-dom';
6
8
  import { injectIntl } from 'react-intl-next';
@@ -684,7 +686,7 @@ export class ToolbarInsertBlock extends React.PureComponent {
684
686
  }
685
687
  }
686
688
  return (
687
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
689
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
688
690
  jsx("span", {
689
691
  css: buttonGroupStyle
690
692
  }, toolbarButtons.map(btn => {
@@ -1,5 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
+
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
5
  import { jsx } from '@emotion/react';
4
6
  import memoizeOne from 'memoize-one';
5
7
  import { addLink, getAriaKeyshortcuts, toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
@@ -33,7 +35,7 @@ const from = init => ({
33
35
  label: ""
34
36
  }),
35
37
  elemAfter: init.shortcut ?
36
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
38
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
37
39
  jsx("div", {
38
40
  css: shortcutStyle
39
41
  }, init.shortcut) : undefined,
@@ -1,11 +1,16 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
3
+
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
2
5
  export const triggerWrapper = css({
3
6
  width: '42px',
4
7
  display: 'flex',
5
8
  alignItems: 'center',
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
6
10
  '> div, > span': {
7
11
  display: 'flex'
8
12
  },
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
9
14
  '> div > div': {
10
15
  display: 'flex'
11
16
  }
@@ -1,6 +1,8 @@
1
1
  /** @jsx jsx */
2
2
 
3
3
  import { useCallback, useEffect, useRef, useState } from 'react';
4
+
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
6
  import { css, jsx } from '@emotion/react';
5
7
  import { bind } from 'bind-event-listener';
6
8
  import { Popup } from '@atlaskit/editor-common/ui';
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { useEffect, useMemo, useRef } from 'react';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
4
  import { css, jsx } from '@emotion/react';
4
5
  import { injectIntl } from 'react-intl-next';
5
6
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
@@ -80,7 +81,9 @@ const gridWrapperStyles = ({
80
81
  maxRows
81
82
  }) => css({
82
83
  display: 'grid',
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
83
85
  gridTemplateColumns: `repeat(${maxCols}, 1fr)`,
86
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
84
87
  gridTemplateRows: `repeat(${maxRows}, 1fr)`,
85
88
  gap: `${`var(--ds-space-025, ${`${TABLE_SELECTOR_BUTTON_GAP}px`})`}`
86
89
  });
@@ -5,6 +5,8 @@ var _excluded = ["children"];
5
5
  /** @jsx jsx */
6
6
 
7
7
  import { useCallback, useState } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
10
  import { css, jsx } from '@emotion/react';
9
11
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
10
12
  import { ELEMENT_ITEM_HEIGHT, ElementBrowser } from '@atlaskit/editor-common/element-browser';
@@ -138,10 +140,12 @@ var insertMenuWrapper = function insertMenuWrapper(itemCount) {
138
140
  display: 'flex',
139
141
  flexDirection: 'column',
140
142
  width: '320px',
143
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
141
144
  height: "".concat(getInsertMenuHeight({
142
145
  itemCount: itemCount
143
146
  }), "px"),
144
147
  backgroundColor: "".concat("var(--ds-surface-overlay, ".concat(N0, ")")),
148
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
145
149
  borderRadius: "".concat(borderRadius(), "px"),
146
150
  boxShadow: "".concat("var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(N30A, ",\n 0 2px 1px ").concat(N30A, ",\n 0 0 20px -6px ").concat(N60A), ")"))
147
151
  });
@@ -1,5 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
+
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
5
  import { jsx } from '@emotion/react';
4
6
  import { ToolTipContent } from '@atlaskit/editor-common/keymaps';
5
7
  import { expandIconWrapperStyle } from '@atlaskit/editor-common/styles';
@@ -9,7 +11,7 @@ import AddIcon from '@atlaskit/icon/glyph/editor/add';
9
11
  import { triggerWrapper } from './styles';
10
12
  var DropDownButtonIcon = /*#__PURE__*/React.memo(function (props) {
11
13
  return (
12
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
14
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
13
15
  jsx("span", {
14
16
  css: triggerWrapper
15
17
  }, jsx(AddIcon, {
@@ -17,6 +17,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
17
17
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
18
18
  /** @jsx jsx */
19
19
  import React from 'react';
20
+
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
22
  import { css, jsx } from '@emotion/react';
21
23
  import ReactDOM from 'react-dom';
22
24
  import { injectIntl } from 'react-intl-next';
@@ -644,7 +646,7 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
644
646
  _iterator.f();
645
647
  }
646
648
  return (
647
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
649
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
648
650
  jsx("span", {
649
651
  css: buttonGroupStyle
650
652
  }, toolbarButtons.map(function (btn) {
@@ -1,5 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
+
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
5
  import { jsx } from '@emotion/react';
4
6
  import memoizeOne from 'memoize-one';
5
7
  import { addLink, getAriaKeyshortcuts, toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
@@ -34,7 +36,7 @@ var from = function from(init) {
34
36
  label: ""
35
37
  }),
36
38
  elemAfter: init.shortcut ?
37
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
39
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
38
40
  jsx("div", {
39
41
  css: shortcutStyle
40
42
  }, init.shortcut) : undefined,
@@ -1,11 +1,16 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
3
+
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
2
5
  export var triggerWrapper = css({
3
6
  width: '42px',
4
7
  display: 'flex',
5
8
  alignItems: 'center',
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
6
10
  '> div, > span': {
7
11
  display: 'flex'
8
12
  },
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
9
14
  '> div > div': {
10
15
  display: 'flex'
11
16
  }
@@ -5,6 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  /** @jsx jsx */
6
6
 
7
7
  import { useCallback, useEffect, useRef, useState } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
10
  import { css, jsx } from '@emotion/react';
9
11
  import { bind } from 'bind-event-listener';
10
12
  import { Popup } from '@atlaskit/editor-common/ui';
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { useEffect, useMemo, useRef } from 'react';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
4
  import { css, jsx } from '@emotion/react';
4
5
  import { injectIntl } from 'react-intl-next';
5
6
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
@@ -83,7 +84,9 @@ var gridWrapperStyles = function gridWrapperStyles(_ref2) {
83
84
  maxRows = _ref2.maxRows;
84
85
  return css({
85
86
  display: 'grid',
87
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
86
88
  gridTemplateColumns: "repeat(".concat(maxCols, ", 1fr)"),
89
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
87
90
  gridTemplateRows: "repeat(".concat(maxRows, ", 1fr)"),
88
91
  gap: "".concat("var(--ds-space-025, ".concat("".concat(TABLE_SELECTOR_BUTTON_GAP, "px"), ")"))
89
92
  });
package/package.json CHANGED
@@ -1,117 +1,117 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "1.3.5",
4
- "description": "Insert block plugin for @atlaskit/editor-core",
5
- "author": "Atlassian Pty Ltd",
6
- "license": "Apache-2.0",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org/"
9
- },
10
- "atlassian": {
11
- "team": "Editor: Lego",
12
- "singleton": true,
13
- "inPublicMirror": false,
14
- "releaseModel": "continuous",
15
- "runReact18": false
16
- },
17
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
18
- "main": "dist/cjs/index.js",
19
- "module": "dist/esm/index.js",
20
- "module:es2019": "dist/es2019/index.js",
21
- "types": "dist/types/index.d.ts",
22
- "typesVersions": {
23
- ">=4.5 <4.9": {
24
- "*": [
25
- "dist/types-ts4.5/*",
26
- "dist/types-ts4.5/index.d.ts"
27
- ]
28
- }
29
- },
30
- "sideEffects": false,
31
- "atlaskit:src": "src/index.ts",
32
- "af:exports": {
33
- ".": "./src/index.ts"
34
- },
35
- "dependencies": {
36
- "@atlaskit/editor-common": "^82.0.0",
37
- "@atlaskit/editor-plugin-analytics": "^1.2.0",
38
- "@atlaskit/editor-plugin-block-type": "^3.5.0",
39
- "@atlaskit/editor-plugin-code-block": "^1.3.0",
40
- "@atlaskit/editor-plugin-date": "^1.2.0",
41
- "@atlaskit/editor-plugin-emoji": "^1.3.0",
42
- "@atlaskit/editor-plugin-expand": "^1.7.0",
43
- "@atlaskit/editor-plugin-extension": "^1.5.0",
44
- "@atlaskit/editor-plugin-hyperlink": "^2.0.0",
45
- "@atlaskit/editor-plugin-image-upload": "^1.1.0",
46
- "@atlaskit/editor-plugin-layout": "^1.2.0",
47
- "@atlaskit/editor-plugin-media": "^1.20.0",
48
- "@atlaskit/editor-plugin-mentions": "^1.5.0",
49
- "@atlaskit/editor-plugin-panel": "^1.2.0",
50
- "@atlaskit/editor-plugin-placeholder-text": "^1.2.0",
51
- "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
52
- "@atlaskit/editor-plugin-rule": "^1.3.0",
53
- "@atlaskit/editor-plugin-status": "^1.2.0",
54
- "@atlaskit/editor-plugin-table": "^7.16.0",
55
- "@atlaskit/editor-plugin-tasks-and-decisions": "^1.3.0",
56
- "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
57
- "@atlaskit/editor-prosemirror": "4.0.1",
58
- "@atlaskit/editor-shared-styles": "^2.12.0",
59
- "@atlaskit/emoji": "^67.6.0",
60
- "@atlaskit/icon": "^22.3.0",
61
- "@atlaskit/primitives": "^6.5.0",
62
- "@atlaskit/theme": "^12.8.0",
63
- "@atlaskit/tokens": "^1.49.0",
64
- "@babel/runtime": "^7.0.0",
65
- "@emotion/react": "^11.7.1",
66
- "bind-event-listener": "^3.0.0",
67
- "lodash": "^4.17.21",
68
- "memoize-one": "^6.0.0"
69
- },
70
- "peerDependencies": {
71
- "react": "^16.8.0",
72
- "react-dom": "^16.8.0",
73
- "react-intl-next": "npm:react-intl@^5.18.1"
74
- },
75
- "devDependencies": {
76
- "@af/integration-testing": "*",
77
- "@af/visual-regression": "*",
78
- "@atlaskit/ssr": "*",
79
- "@atlaskit/visual-regression": "*",
80
- "@testing-library/react": "^12.1.5",
81
- "react-dom": "^16.8.0",
82
- "typescript": "~5.4.2"
83
- },
84
- "techstack": {
85
- "@atlassian/frontend": {
86
- "import-structure": [
87
- "atlassian-conventions"
88
- ],
89
- "circular-dependencies": [
90
- "file-and-folder-level"
91
- ]
92
- },
93
- "@repo/internal": {
94
- "dom-events": "use-bind-event-listener",
95
- "analytics": [
96
- "analytics-next"
97
- ],
98
- "design-tokens": [
99
- "color"
100
- ],
101
- "theming": [
102
- "react-context"
103
- ],
104
- "ui-components": [
105
- "lite-mode"
106
- ],
107
- "deprecation": "no-deprecated-imports",
108
- "styling": [
109
- "emotion",
110
- "emotion"
111
- ],
112
- "imports": [
113
- "import-no-extraneous-disable-for-examples-and-docs"
114
- ]
115
- }
116
- }
117
- }
2
+ "name": "@atlaskit/editor-plugin-insert-block",
3
+ "version": "1.3.7",
4
+ "description": "Insert block plugin for @atlaskit/editor-core",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "Editor: Lego",
12
+ "singleton": true,
13
+ "inPublicMirror": false,
14
+ "releaseModel": "continuous",
15
+ "runReact18": false
16
+ },
17
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
18
+ "main": "dist/cjs/index.js",
19
+ "module": "dist/esm/index.js",
20
+ "module:es2019": "dist/es2019/index.js",
21
+ "types": "dist/types/index.d.ts",
22
+ "typesVersions": {
23
+ ">=4.5 <4.9": {
24
+ "*": [
25
+ "dist/types-ts4.5/*",
26
+ "dist/types-ts4.5/index.d.ts"
27
+ ]
28
+ }
29
+ },
30
+ "sideEffects": false,
31
+ "atlaskit:src": "src/index.ts",
32
+ "af:exports": {
33
+ ".": "./src/index.ts"
34
+ },
35
+ "dependencies": {
36
+ "@atlaskit/editor-common": "^82.9.0",
37
+ "@atlaskit/editor-plugin-analytics": "^1.2.0",
38
+ "@atlaskit/editor-plugin-block-type": "^3.6.0",
39
+ "@atlaskit/editor-plugin-code-block": "^1.3.0",
40
+ "@atlaskit/editor-plugin-date": "^1.2.0",
41
+ "@atlaskit/editor-plugin-emoji": "^1.3.0",
42
+ "@atlaskit/editor-plugin-expand": "^1.7.0",
43
+ "@atlaskit/editor-plugin-extension": "^1.6.0",
44
+ "@atlaskit/editor-plugin-hyperlink": "^2.1.0",
45
+ "@atlaskit/editor-plugin-image-upload": "^1.1.0",
46
+ "@atlaskit/editor-plugin-layout": "^1.2.0",
47
+ "@atlaskit/editor-plugin-media": "^1.20.0",
48
+ "@atlaskit/editor-plugin-mentions": "^1.6.0",
49
+ "@atlaskit/editor-plugin-panel": "^1.2.0",
50
+ "@atlaskit/editor-plugin-placeholder-text": "^1.2.0",
51
+ "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
52
+ "@atlaskit/editor-plugin-rule": "^1.3.0",
53
+ "@atlaskit/editor-plugin-status": "^1.2.0",
54
+ "@atlaskit/editor-plugin-table": "^7.17.0",
55
+ "@atlaskit/editor-plugin-tasks-and-decisions": "^1.3.0",
56
+ "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
57
+ "@atlaskit/editor-prosemirror": "4.0.1",
58
+ "@atlaskit/editor-shared-styles": "^2.12.0",
59
+ "@atlaskit/emoji": "^67.6.0",
60
+ "@atlaskit/icon": "^22.4.0",
61
+ "@atlaskit/primitives": "^8.0.0",
62
+ "@atlaskit/theme": "^12.10.0",
63
+ "@atlaskit/tokens": "^1.51.0",
64
+ "@babel/runtime": "^7.0.0",
65
+ "@emotion/react": "^11.7.1",
66
+ "bind-event-listener": "^3.0.0",
67
+ "lodash": "^4.17.21",
68
+ "memoize-one": "^6.0.0"
69
+ },
70
+ "peerDependencies": {
71
+ "react": "^16.8.0",
72
+ "react-dom": "^16.8.0",
73
+ "react-intl-next": "npm:react-intl@^5.18.1"
74
+ },
75
+ "devDependencies": {
76
+ "@af/integration-testing": "*",
77
+ "@af/visual-regression": "*",
78
+ "@atlaskit/ssr": "*",
79
+ "@atlaskit/visual-regression": "*",
80
+ "@testing-library/react": "^12.1.5",
81
+ "react-dom": "^16.8.0",
82
+ "typescript": "~5.4.2"
83
+ },
84
+ "techstack": {
85
+ "@atlassian/frontend": {
86
+ "import-structure": [
87
+ "atlassian-conventions"
88
+ ],
89
+ "circular-dependencies": [
90
+ "file-and-folder-level"
91
+ ]
92
+ },
93
+ "@repo/internal": {
94
+ "dom-events": "use-bind-event-listener",
95
+ "analytics": [
96
+ "analytics-next"
97
+ ],
98
+ "design-tokens": [
99
+ "color"
100
+ ],
101
+ "theming": [
102
+ "react-context"
103
+ ],
104
+ "ui-components": [
105
+ "lite-mode"
106
+ ],
107
+ "deprecation": "no-deprecated-imports",
108
+ "styling": [
109
+ "emotion",
110
+ "emotion"
111
+ ],
112
+ "imports": [
113
+ "import-no-extraneous-disable-for-examples-and-docs"
114
+ ]
115
+ }
116
+ }
117
+ }