@atlaskit/editor-plugin-type-ahead 2.7.2 → 2.7.3
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 +6 -0
- package/dist/cjs/ui/ListRow.js +13 -0
- package/dist/cjs/ui/TypeAheadList.js +1 -0
- package/dist/es2019/ui/ListRow.js +13 -0
- package/dist/es2019/ui/TypeAheadList.js +1 -0
- package/dist/esm/ui/ListRow.js +13 -0
- package/dist/esm/ui/TypeAheadList.js +1 -0
- package/dist/types/pm-plugins/analytics.d.ts +3 -3
- package/dist/types/ui/ListRow.d.ts +15 -2
- package/dist/types/ui/TypeAheadList.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/analytics.d.ts +3 -3
- package/dist/types-ts4.5/ui/ListRow.d.ts +15 -2
- package/dist/types-ts4.5/ui/TypeAheadList.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/cjs/ui/ListRow.js
CHANGED
|
@@ -8,6 +8,19 @@ exports.ListRow = ListRow;
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
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); }
|
|
10
10
|
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; }
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param root0
|
|
14
|
+
* @param root0.children
|
|
15
|
+
* @param root0.registerChild
|
|
16
|
+
* @param root0.measure
|
|
17
|
+
* @param root0.index
|
|
18
|
+
* @param root0.style
|
|
19
|
+
* @param root0.isVisible
|
|
20
|
+
* @param root0.isScrolling
|
|
21
|
+
* @param root0.onMouseMove
|
|
22
|
+
* @example
|
|
23
|
+
*/
|
|
11
24
|
function ListRow(_ref) {
|
|
12
25
|
var children = _ref.children,
|
|
13
26
|
registerChild = _ref.registerChild,
|
|
@@ -218,6 +218,7 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
218
218
|
/**
|
|
219
219
|
* To handle the key events on the list
|
|
220
220
|
* @param event
|
|
221
|
+
* @example
|
|
221
222
|
*/
|
|
222
223
|
var handleKeyDown = function handleKeyDown(event) {
|
|
223
224
|
if (isNavigationKey(event)) {
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param root0
|
|
5
|
+
* @param root0.children
|
|
6
|
+
* @param root0.registerChild
|
|
7
|
+
* @param root0.measure
|
|
8
|
+
* @param root0.index
|
|
9
|
+
* @param root0.style
|
|
10
|
+
* @param root0.isVisible
|
|
11
|
+
* @param root0.isScrolling
|
|
12
|
+
* @param root0.onMouseMove
|
|
13
|
+
* @example
|
|
14
|
+
*/
|
|
2
15
|
export function ListRow({
|
|
3
16
|
children,
|
|
4
17
|
registerChild,
|
package/dist/esm/ui/ListRow.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param root0
|
|
5
|
+
* @param root0.children
|
|
6
|
+
* @param root0.registerChild
|
|
7
|
+
* @param root0.measure
|
|
8
|
+
* @param root0.index
|
|
9
|
+
* @param root0.style
|
|
10
|
+
* @param root0.isVisible
|
|
11
|
+
* @param root0.isScrolling
|
|
12
|
+
* @param root0.onMouseMove
|
|
13
|
+
* @example
|
|
14
|
+
*/
|
|
2
15
|
export function ListRow(_ref) {
|
|
3
16
|
var children = _ref.children,
|
|
4
17
|
registerChild = _ref.registerChild,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ACTION, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
4
|
-
import { TypeAheadInputMethod } from '../types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
4
|
+
import type { TypeAheadInputMethod } from '../types';
|
|
5
5
|
export type CloseActionType = ACTION.INSERTED | ACTION.CANCELLED | ACTION.VIEW_MORE;
|
|
6
6
|
export type InputMethodType = INPUT_METHOD.KEYBOARD | INPUT_METHOD.MOUSE;
|
|
7
7
|
export declare const fireTypeAheadClosedAnalyticsEvent: (api: ExtractInjectionAPI<TypeAheadPlugin> | undefined, closeAction: CloseActionType | null, hasQuery: boolean, inputMethod: InputMethodType | null, invocationMethod?: TypeAheadInputMethod | null) => void;
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
import React, { type ReactNode, MouseEventHandler } from 'react';
|
|
2
|
-
import { ListRowProps } from 'react-virtualized';
|
|
1
|
+
import React, { type ReactNode, type MouseEventHandler } from 'react';
|
|
2
|
+
import { type ListRowProps } from 'react-virtualized';
|
|
3
3
|
type Props = {
|
|
4
4
|
measure: () => void;
|
|
5
5
|
registerChild?: (element?: Element) => void;
|
|
6
6
|
onMouseMove: MouseEventHandler<HTMLDivElement>;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
} & Pick<ListRowProps, 'index' | 'style' | 'isScrolling' | 'isVisible'>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param root0
|
|
12
|
+
* @param root0.children
|
|
13
|
+
* @param root0.registerChild
|
|
14
|
+
* @param root0.measure
|
|
15
|
+
* @param root0.index
|
|
16
|
+
* @param root0.style
|
|
17
|
+
* @param root0.isVisible
|
|
18
|
+
* @param root0.isScrolling
|
|
19
|
+
* @param root0.onMouseMove
|
|
20
|
+
* @example
|
|
21
|
+
*/
|
|
9
22
|
export declare function ListRow({ children, registerChild, measure, index, style, isVisible, isScrolling, onMouseMove, }: Props): React.JSX.Element;
|
|
10
23
|
export {};
|
|
@@ -7,7 +7,7 @@ import type { WrappedComponentProps } from 'react-intl-next';
|
|
|
7
7
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
8
8
|
import { type ExtractInjectionAPI, type TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
-
import { InputMethodType } from '../pm-plugins/analytics';
|
|
10
|
+
import { type InputMethodType } from '../pm-plugins/analytics';
|
|
11
11
|
import { type TypeAheadPlugin } from '../typeAheadPluginType';
|
|
12
12
|
import type { TypeAheadHandler } from '../types';
|
|
13
13
|
export declare const TypeAheadList: React.FC<import("react-intl-next").WithIntlProps<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ACTION, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
4
|
-
import { TypeAheadInputMethod } from '../types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
4
|
+
import type { TypeAheadInputMethod } from '../types';
|
|
5
5
|
export type CloseActionType = ACTION.INSERTED | ACTION.CANCELLED | ACTION.VIEW_MORE;
|
|
6
6
|
export type InputMethodType = INPUT_METHOD.KEYBOARD | INPUT_METHOD.MOUSE;
|
|
7
7
|
export declare const fireTypeAheadClosedAnalyticsEvent: (api: ExtractInjectionAPI<TypeAheadPlugin> | undefined, closeAction: CloseActionType | null, hasQuery: boolean, inputMethod: InputMethodType | null, invocationMethod?: TypeAheadInputMethod | null) => void;
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
import React, { type ReactNode, MouseEventHandler } from 'react';
|
|
2
|
-
import { ListRowProps } from 'react-virtualized';
|
|
1
|
+
import React, { type ReactNode, type MouseEventHandler } from 'react';
|
|
2
|
+
import { type ListRowProps } from 'react-virtualized';
|
|
3
3
|
type Props = {
|
|
4
4
|
measure: () => void;
|
|
5
5
|
registerChild?: (element?: Element) => void;
|
|
6
6
|
onMouseMove: MouseEventHandler<HTMLDivElement>;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
} & Pick<ListRowProps, 'index' | 'style' | 'isScrolling' | 'isVisible'>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param root0
|
|
12
|
+
* @param root0.children
|
|
13
|
+
* @param root0.registerChild
|
|
14
|
+
* @param root0.measure
|
|
15
|
+
* @param root0.index
|
|
16
|
+
* @param root0.style
|
|
17
|
+
* @param root0.isVisible
|
|
18
|
+
* @param root0.isScrolling
|
|
19
|
+
* @param root0.onMouseMove
|
|
20
|
+
* @example
|
|
21
|
+
*/
|
|
9
22
|
export declare function ListRow({ children, registerChild, measure, index, style, isVisible, isScrolling, onMouseMove, }: Props): React.JSX.Element;
|
|
10
23
|
export {};
|
|
@@ -7,7 +7,7 @@ import type { WrappedComponentProps } from 'react-intl-next';
|
|
|
7
7
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
8
8
|
import { type ExtractInjectionAPI, type TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
-
import { InputMethodType } from '../pm-plugins/analytics';
|
|
10
|
+
import { type InputMethodType } from '../pm-plugins/analytics';
|
|
11
11
|
import { type TypeAheadPlugin } from '../typeAheadPluginType';
|
|
12
12
|
import type { TypeAheadHandler } from '../types';
|
|
13
13
|
export declare const TypeAheadList: React.FC<import("react-intl-next").WithIntlProps<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
|
-
"@atlaskit/editor-common": "^105.
|
|
37
|
+
"@atlaskit/editor-common": "^105.5.0",
|
|
38
38
|
"@atlaskit/editor-element-browser": "^0.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
40
40
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
45
45
|
"@atlaskit/heading": "^5.2.0",
|
|
46
46
|
"@atlaskit/icon": "^26.0.0",
|
|
47
|
-
"@atlaskit/menu": "^
|
|
47
|
+
"@atlaskit/menu": "^6.0.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/primitives": "^14.7.0",
|
|
50
50
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
51
51
|
"@atlaskit/theme": "^18.0.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^4.22.0",
|
|
53
53
|
"@atlaskit/tokens": "^4.8.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1",
|