@atlaskit/editor-plugin-type-ahead 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 +16 -0
- package/dist/cjs/ui/registered-menu/TypeAheadMenuFooter.compiled.css +1 -1
- package/dist/cjs/ui/registered-menu/TypeAheadMenuFooter.js +1 -1
- package/dist/cjs/ui/registered-menu/TypeAheadMenuRenderer.js +3 -3
- package/dist/es2019/ui/registered-menu/TypeAheadMenuFooter.compiled.css +1 -1
- package/dist/es2019/ui/registered-menu/TypeAheadMenuFooter.js +1 -1
- package/dist/es2019/ui/registered-menu/TypeAheadMenuRenderer.js +3 -3
- package/dist/esm/ui/registered-menu/TypeAheadMenuFooter.compiled.css +1 -1
- package/dist/esm/ui/registered-menu/TypeAheadMenuFooter.js +1 -1
- package/dist/esm/ui/registered-menu/TypeAheadMenuRenderer.js +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
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
|
|
@@ -11,7 +11,7 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
13
|
var styles = {
|
|
14
|
-
footer: "
|
|
14
|
+
footer: "_1i531l7x _15a5nqa1 _uwhke4h9"
|
|
15
15
|
};
|
|
16
16
|
var TypeAheadMenuFooter = exports.TypeAheadMenuFooter = function TypeAheadMenuFooter(_ref) {
|
|
17
17
|
var id = _ref.id,
|
|
@@ -24,9 +24,9 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
|
|
|
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
26
|
var LIST_WIDTH = 320;
|
|
27
|
-
var ESTIMATED_ROW_HEIGHT =
|
|
28
|
-
//
|
|
29
|
-
var MENU_FOOTER_HEIGHT =
|
|
27
|
+
var ESTIMATED_ROW_HEIGHT = 44;
|
|
28
|
+
// 44px item + 1px separator.
|
|
29
|
+
var MENU_FOOTER_HEIGHT = 45;
|
|
30
30
|
var TypeAheadMenuRenderer = exports.TypeAheadMenuRenderer = function TypeAheadMenuRenderer(_ref) {
|
|
31
31
|
var _model$root$component;
|
|
32
32
|
var Item = _ref.Item,
|
|
@@ -4,7 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
6
|
const styles = {
|
|
7
|
-
footer: "
|
|
7
|
+
footer: "_1i531l7x _15a5nqa1 _uwhke4h9"
|
|
8
8
|
};
|
|
9
9
|
export const TypeAheadMenuFooter = ({
|
|
10
10
|
id,
|
|
@@ -11,9 +11,9 @@ import { getTypeAheadGlobalViewMoreId } from './getTypeAheadGlobalViewMoreId';
|
|
|
11
11
|
import { PassThrough } from './PassThrough';
|
|
12
12
|
import { TypeAheadMenuFooter } from './TypeAheadMenuFooter';
|
|
13
13
|
const LIST_WIDTH = 320;
|
|
14
|
-
const ESTIMATED_ROW_HEIGHT =
|
|
15
|
-
//
|
|
16
|
-
const MENU_FOOTER_HEIGHT =
|
|
14
|
+
const ESTIMATED_ROW_HEIGHT = 44;
|
|
15
|
+
// 44px item + 1px separator.
|
|
16
|
+
const MENU_FOOTER_HEIGHT = 45;
|
|
17
17
|
export const TypeAheadMenuRenderer = ({
|
|
18
18
|
Item,
|
|
19
19
|
listLabel,
|
|
@@ -4,7 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
6
|
var styles = {
|
|
7
|
-
footer: "
|
|
7
|
+
footer: "_1i531l7x _15a5nqa1 _uwhke4h9"
|
|
8
8
|
};
|
|
9
9
|
export var TypeAheadMenuFooter = function TypeAheadMenuFooter(_ref) {
|
|
10
10
|
var id = _ref.id,
|
|
@@ -15,9 +15,9 @@ import { getTypeAheadGlobalViewMoreId } from './getTypeAheadGlobalViewMoreId';
|
|
|
15
15
|
import { PassThrough } from './PassThrough';
|
|
16
16
|
import { TypeAheadMenuFooter } from './TypeAheadMenuFooter';
|
|
17
17
|
var LIST_WIDTH = 320;
|
|
18
|
-
var ESTIMATED_ROW_HEIGHT =
|
|
19
|
-
//
|
|
20
|
-
var MENU_FOOTER_HEIGHT =
|
|
18
|
+
var ESTIMATED_ROW_HEIGHT = 44;
|
|
19
|
+
// 44px item + 1px separator.
|
|
20
|
+
var MENU_FOOTER_HEIGHT = 45;
|
|
21
21
|
export var TypeAheadMenuRenderer = function TypeAheadMenuRenderer(_ref) {
|
|
22
22
|
var _model$root$component;
|
|
23
23
|
var Item = _ref.Item,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "28.0.
|
|
3
|
+
"version": "28.0.2",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/primitives": "^22.5.0",
|
|
43
43
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
44
44
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^237.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^20.5.0",
|
|
47
47
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"w3c-keyname": "^2.1.8"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@atlaskit/editor-common": "^131.
|
|
57
|
+
"@atlaskit/editor-common": "^131.1.0",
|
|
58
58
|
"react": "^18.2.0 || ^19.2.0",
|
|
59
59
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
60
60
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|