@atlaskit/editor-plugin-insert-block 28.0.0 → 28.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 28.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`62ee40fadb62f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/62ee40fadb62f) -
8
+ Update registered slash command and toolbar Insert menu spacing to match design: View more footer
9
+ has no extra padding, and row and footer height constants match the 44px items (behind
10
+ platform_editor_slash_command).
11
+ - Updated dependencies
12
+
13
+ ## 28.0.1
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 28.0.0
4
20
 
5
21
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- ._1rjc1b66{padding-block:var(--ds-space-050,4px)}._15a5nqa1{border-top-style:solid}
1
+ ._15a5nqa1{border-top-style:solid}
2
2
  ._16jlkb7n{flex-grow:1}
3
3
  ._18m91wug{overflow-y:auto}
4
4
  ._1e0c1txw{display:flex}
@@ -23,9 +23,9 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
23
23
  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; } } }; }
24
24
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
25
25
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
26
- var ESTIMATED_ROW_HEIGHT = 56;
27
- // 40px item + 8px block padding + 1px separator.
28
- var MENU_FOOTER_HEIGHT = 49;
26
+ var ESTIMATED_ROW_HEIGHT = 44;
27
+ // 44px item + 1px separator.
28
+ var MENU_FOOTER_HEIGHT = 45;
29
29
  var MENU_SEARCH_HEIGHT = 64;
30
30
  var LIST_WIDTH = 350;
31
31
  var listAriaProps = {
@@ -35,7 +35,7 @@ var listAriaProps = {
35
35
  var styles = {
36
36
  content: "_1e0c1txw _2lx21bp4 _1tkeidpf",
37
37
  scrollable: "_16jlkb7n _1tkeidpf _18m91wug",
38
- footer: "_1rjc1b66 _1i531l7x _15a5nqa1 _uwhke4h9 _1o9zidpf"
38
+ footer: "_1i531l7x _15a5nqa1 _uwhke4h9 _1o9zidpf"
39
39
  };
40
40
  var RegisteredInsertMenuList = exports.RegisteredInsertMenuList = function RegisteredInsertMenuList(_ref) {
41
41
  var _model$root$component, _model$root;
@@ -1,4 +1,4 @@
1
- ._1rjc1b66{padding-block:var(--ds-space-050,4px)}._15a5nqa1{border-top-style:solid}
1
+ ._15a5nqa1{border-top-style:solid}
2
2
  ._16jlkb7n{flex-grow:1}
3
3
  ._18m91wug{overflow-y:auto}
4
4
  ._1e0c1txw{display:flex}
@@ -9,9 +9,9 @@ import { getQuickInsertMenuRows } from '@atlaskit/editor-common/quick-insert/reg
9
9
  import { useMenuListHeight } from '@atlaskit/editor-common/quick-insert/use-menu-list-height';
10
10
  import { Box } from '@atlaskit/primitives/compiled';
11
11
  import { RegisteredInsertMenuItem } from './RegisteredInsertMenuItem';
12
- const ESTIMATED_ROW_HEIGHT = 56;
13
- // 40px item + 8px block padding + 1px separator.
14
- const MENU_FOOTER_HEIGHT = 49;
12
+ const ESTIMATED_ROW_HEIGHT = 44;
13
+ // 44px item + 1px separator.
14
+ const MENU_FOOTER_HEIGHT = 45;
15
15
  const MENU_SEARCH_HEIGHT = 64;
16
16
  const LIST_WIDTH = 350;
17
17
  const listAriaProps = {
@@ -21,7 +21,7 @@ const listAriaProps = {
21
21
  const styles = {
22
22
  content: "_1e0c1txw _2lx21bp4 _1tkeidpf",
23
23
  scrollable: "_16jlkb7n _1tkeidpf _18m91wug",
24
- footer: "_1rjc1b66 _1i531l7x _15a5nqa1 _uwhke4h9 _1o9zidpf"
24
+ footer: "_1i531l7x _15a5nqa1 _uwhke4h9 _1o9zidpf"
25
25
  };
26
26
  export const RegisteredInsertMenuList = ({
27
27
  editorView,
@@ -1,4 +1,4 @@
1
- ._1rjc1b66{padding-block:var(--ds-space-050,4px)}._15a5nqa1{border-top-style:solid}
1
+ ._15a5nqa1{border-top-style:solid}
2
2
  ._16jlkb7n{flex-grow:1}
3
3
  ._18m91wug{overflow-y:auto}
4
4
  ._1e0c1txw{display:flex}
@@ -14,9 +14,9 @@ import { getQuickInsertMenuRows } from '@atlaskit/editor-common/quick-insert/reg
14
14
  import { useMenuListHeight } from '@atlaskit/editor-common/quick-insert/use-menu-list-height';
15
15
  import { Box } from '@atlaskit/primitives/compiled';
16
16
  import { RegisteredInsertMenuItem } from './RegisteredInsertMenuItem';
17
- var ESTIMATED_ROW_HEIGHT = 56;
18
- // 40px item + 8px block padding + 1px separator.
19
- var MENU_FOOTER_HEIGHT = 49;
17
+ var ESTIMATED_ROW_HEIGHT = 44;
18
+ // 44px item + 1px separator.
19
+ var MENU_FOOTER_HEIGHT = 45;
20
20
  var MENU_SEARCH_HEIGHT = 64;
21
21
  var LIST_WIDTH = 350;
22
22
  var listAriaProps = {
@@ -26,7 +26,7 @@ var listAriaProps = {
26
26
  var styles = {
27
27
  content: "_1e0c1txw _2lx21bp4 _1tkeidpf",
28
28
  scrollable: "_16jlkb7n _1tkeidpf _18m91wug",
29
- footer: "_1rjc1b66 _1i531l7x _15a5nqa1 _uwhke4h9 _1o9zidpf"
29
+ footer: "_1i531l7x _15a5nqa1 _uwhke4h9 _1o9zidpf"
30
30
  };
31
31
  export var RegisteredInsertMenuList = function RegisteredInsertMenuList(_ref) {
32
32
  var _model$root$component, _model$root;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "28.0.0",
3
+ "version": "28.0.2",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -62,7 +62,7 @@
62
62
  "@atlaskit/platform-feature-flags": "^2.2.0",
63
63
  "@atlaskit/primitives": "^22.5.0",
64
64
  "@atlaskit/textfield": "^10.2.0",
65
- "@atlaskit/tmp-editor-statsig": "^235.0.0",
65
+ "@atlaskit/tmp-editor-statsig": "^237.0.0",
66
66
  "@atlaskit/tokens": "^20.5.0",
67
67
  "@babel/runtime": "^7.0.0",
68
68
  "@emotion/react": "^11.7.1",
@@ -72,7 +72,7 @@
72
72
  "react-virtualized": "^9.22.6"
73
73
  },
74
74
  "peerDependencies": {
75
- "@atlaskit/editor-common": "^131.0.0",
75
+ "@atlaskit/editor-common": "^131.1.0",
76
76
  "react": "^18.2.0 || ^19.2.0",
77
77
  "react-dom": "^18.2.0 || ^19.2.0",
78
78
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"