@atlaskit/editor-plugin-type-ahead 1.0.9 → 1.0.11
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 +13 -0
- package/dist/cjs/ui/TypeAheadPopup.js +13 -4
- package/dist/es2019/ui/TypeAheadPopup.js +11 -11
- package/dist/esm/ui/TypeAheadPopup.js +11 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 1.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426) [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) - Bump adf-schema to 35.9.2 to support table alignment options
|
|
8
|
+
|
|
9
|
+
## 1.0.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106) [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) - Bump ADF-schema package to version 35.0.0
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 1.0.9
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.TypeAheadPopup = void 0;
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
11
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
11
|
var _react2 = require("@emotion/react");
|
|
13
12
|
var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
@@ -17,13 +16,23 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
|
17
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
18
17
|
var _constants = require("../constants");
|
|
19
18
|
var _TypeAheadList = require("./TypeAheadList");
|
|
20
|
-
var _templateObject;
|
|
21
|
-
/** @jsx jsx */
|
|
22
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); }
|
|
23
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
|
+
/** @jsx jsx */
|
|
22
|
+
|
|
24
23
|
var DEFAULT_TYPEAHEAD_MENU_HEIGHT = 380;
|
|
25
24
|
var ITEM_PADDING = 12;
|
|
26
|
-
var typeAheadContent = (0, _react2.css)(
|
|
25
|
+
var typeAheadContent = (0, _react2.css)({
|
|
26
|
+
background: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
27
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
28
|
+
boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 1px ".concat(_colors.N60A, ", 0 4px 8px -2px ").concat(_colors.N50A), ")"),
|
|
29
|
+
padding: "var(--ds-space-050, 4px)".concat(" 0"),
|
|
30
|
+
width: '320px',
|
|
31
|
+
maxHeight: '380px' /* ~5.5 visibile items */,
|
|
32
|
+
overflowY: 'auto',
|
|
33
|
+
MsOverflowStyle: '-ms-autohiding-scrollbar',
|
|
34
|
+
position: 'relative'
|
|
35
|
+
});
|
|
27
36
|
var Highlight = function Highlight(_ref) {
|
|
28
37
|
var state = _ref.state,
|
|
29
38
|
triggerHandler = _ref.triggerHandler;
|
|
@@ -10,17 +10,17 @@ import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE, TYPE_AHEAD
|
|
|
10
10
|
import { TypeAheadList } from './TypeAheadList';
|
|
11
11
|
const DEFAULT_TYPEAHEAD_MENU_HEIGHT = 380;
|
|
12
12
|
const ITEM_PADDING = 12;
|
|
13
|
-
const typeAheadContent = css
|
|
14
|
-
background:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
padding:
|
|
18
|
-
width: 320px
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
position: relative
|
|
23
|
-
|
|
13
|
+
const typeAheadContent = css({
|
|
14
|
+
background: `var(--ds-surface-overlay, ${N0})`,
|
|
15
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
16
|
+
boxShadow: `var(--ds-shadow-overlay, ${`0 0 1px ${N60A}, 0 4px 8px -2px ${N50A}`})`,
|
|
17
|
+
padding: `${"var(--ds-space-050, 4px)"} 0`,
|
|
18
|
+
width: '320px',
|
|
19
|
+
maxHeight: '380px' /* ~5.5 visibile items */,
|
|
20
|
+
overflowY: 'auto',
|
|
21
|
+
MsOverflowStyle: '-ms-autohiding-scrollbar',
|
|
22
|
+
position: 'relative'
|
|
23
|
+
});
|
|
24
24
|
const Highlight = ({
|
|
25
25
|
state,
|
|
26
26
|
triggerHandler
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
|
-
var _templateObject;
|
|
4
2
|
/** @jsx jsx */
|
|
5
3
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
6
4
|
import { css, jsx } from '@emotion/react';
|
|
@@ -13,7 +11,17 @@ import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE, TYPE_AHEAD
|
|
|
13
11
|
import { TypeAheadList } from './TypeAheadList';
|
|
14
12
|
var DEFAULT_TYPEAHEAD_MENU_HEIGHT = 380;
|
|
15
13
|
var ITEM_PADDING = 12;
|
|
16
|
-
var typeAheadContent = css(
|
|
14
|
+
var typeAheadContent = css({
|
|
15
|
+
background: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
16
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
17
|
+
boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 1px ".concat(N60A, ", 0 4px 8px -2px ").concat(N50A), ")"),
|
|
18
|
+
padding: "var(--ds-space-050, 4px)".concat(" 0"),
|
|
19
|
+
width: '320px',
|
|
20
|
+
maxHeight: '380px' /* ~5.5 visibile items */,
|
|
21
|
+
overflowY: 'auto',
|
|
22
|
+
MsOverflowStyle: '-ms-autohiding-scrollbar',
|
|
23
|
+
position: 'relative'
|
|
24
|
+
});
|
|
17
25
|
var Highlight = function Highlight(_ref) {
|
|
18
26
|
var state = _ref.state,
|
|
19
27
|
triggerHandler = _ref.triggerHandler;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^35.
|
|
35
|
+
"@atlaskit/adf-schema": "^35.9.2",
|
|
36
36
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
37
|
-
"@atlaskit/editor-common": "^78.
|
|
37
|
+
"@atlaskit/editor-common": "^78.30.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
40
40
|
"@atlaskit/editor-shared-styles": "^2.9.0",
|