@atlaskit/editor-plugin-type-ahead 8.0.13 → 8.0.14
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 +7 -0
- package/dist/cjs/ui/TypeAheadErrorFallback/MinHeightContainer.js +1 -1
- package/dist/cjs/ui/TypeAheadListItem.js +1 -1
- package/dist/es2019/ui/TypeAheadErrorFallback/MinHeightContainer.js +1 -2
- package/dist/es2019/ui/TypeAheadListItem.js +1 -1
- package/dist/esm/ui/TypeAheadErrorFallback/MinHeightContainer.js +1 -2
- package/dist/esm/ui/TypeAheadListItem.js +1 -1
- package/dist/types/pm-plugins/analytics.d.ts +2 -1
- package/dist/types/pm-plugins/decorations.d.ts +1 -1
- package/dist/types/pm-plugins/item-is-disabled.d.ts +2 -2
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/pm-plugins/utils.d.ts +2 -2
- package/dist/types/typeAheadPlugin.d.ts +1 -1
- package/dist/types/typeAheadPluginType.d.ts +1 -1
- package/dist/types/ui/ListRow.d.ts +3 -2
- package/dist/types/ui/TypeAheadErrorFallback/MinHeightContainer.d.ts +1 -1
- package/dist/types/ui/TypeAheadList.d.ts +3 -3
- package/dist/types/ui/TypeAheadListItem.d.ts +4 -3
- package/dist/types-ts4.5/pm-plugins/analytics.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/decorations.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/item-is-disabled.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/utils.d.ts +2 -2
- package/dist/types-ts4.5/typeAheadPlugin.d.ts +1 -1
- package/dist/types-ts4.5/typeAheadPluginType.d.ts +1 -1
- package/dist/types-ts4.5/ui/ListRow.d.ts +3 -2
- package/dist/types-ts4.5/ui/TypeAheadErrorFallback/MinHeightContainer.d.ts +1 -1
- package/dist/types-ts4.5/ui/TypeAheadList.d.ts +3 -3
- package/dist/types-ts4.5/ui/TypeAheadListItem.d.ts +4 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 8.0.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`86fd5ef0f1d07`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/86fd5ef0f1d07) -
|
|
8
|
+
Mechanical type-import autofix for text formatting editor plugins.
|
|
9
|
+
|
|
3
10
|
## 8.0.13
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ var _excluded = ["minHeight"];
|
|
|
16
16
|
* @jsxRuntime classic
|
|
17
17
|
* @jsx jsx
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766 */
|
|
20
20
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
21
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
22
22
|
var minHeightComponentStyles = exports.minHeightComponentStyles = (0, _react2.css)({
|
|
@@ -26,7 +26,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
26
26
|
* @jsxRuntime classic
|
|
27
27
|
* @jsx jsx
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports, @atlaskit/design-system/no-unsafe-style-overrides */
|
|
30
30
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
32
|
var itemIcon = exports.itemIcon = (0, _react2.css)({
|
|
@@ -5,9 +5,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { forwardRef } from 'react';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766 */
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
|
|
11
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
11
|
export const minHeightComponentStyles = css({
|
|
13
12
|
display: 'flex',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { useCallback, useLayoutEffect, useMemo } from 'react';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports, @atlaskit/design-system/no-unsafe-style-overrides */
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { useIntl } from 'react-intl-next';
|
|
10
10
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
@@ -8,9 +8,8 @@ var _excluded = ["minHeight"];
|
|
|
8
8
|
*/
|
|
9
9
|
import React, { forwardRef } from 'react';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766 */
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
|
-
|
|
14
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
15
14
|
export var minHeightComponentStyles = css({
|
|
16
15
|
display: 'flex',
|
|
@@ -6,7 +6,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
6
6
|
*/
|
|
7
7
|
import React, { useCallback, useLayoutEffect, useMemo } from 'react';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports, @atlaskit/design-system/no-unsafe-style-overrides */
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { useIntl } from 'react-intl-next';
|
|
12
12
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ACTION
|
|
1
|
+
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
4
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
4
5
|
import type { TypeAheadInputMethod } from '../types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
|
-
import {
|
|
2
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
5
5
|
import type { CreateTypeAheadDecorations, PopupMountPointReference, RemoveTypeAheadDecorations } from '../types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
3
3
|
export declare const itemIsDisabled: (item: TypeAheadItem | undefined, api: ExtractInjectionAPI<TypeAheadPlugin> | undefined) => boolean;
|
|
@@ -2,8 +2,8 @@ import type { IntlShape } from 'react-intl-next';
|
|
|
2
2
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
|
+
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
7
7
|
import type { PopupMountPointReference, TypeAheadHandler } from '../types';
|
|
8
8
|
type Props = {
|
|
9
9
|
api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
|
-
import {
|
|
2
|
+
import type { ExtractInjectionAPI, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import {
|
|
5
|
+
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
6
6
|
import type { TypeAheadHandler, TypeAheadPluginState } from '../types';
|
|
7
7
|
export declare const isTypeAheadHandler: (handler: any) => handler is TypeAheadHandler;
|
|
8
8
|
/** Is a typeahead plugin open? */
|
|
@@ -6,7 +6,7 @@ import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
|
6
6
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
7
7
|
import type { MetricsPlugin } from '@atlaskit/editor-plugin-metrics';
|
|
8
8
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
9
|
-
import {
|
|
9
|
+
import type { TypeAheadPluginOptions, TypeAheadPluginSharedState, OpenTypeAheadProps } from './types';
|
|
10
10
|
type InsertTypeAheadItemProps = {
|
|
11
11
|
contentItem: TypeAheadItem;
|
|
12
12
|
mode?: SelectItemMode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactNode, MouseEventHandler } from 'react';
|
|
3
|
+
import type { ListRowProps } from 'react-virtualized';
|
|
3
4
|
/**
|
|
4
5
|
*
|
|
5
6
|
* @param root0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import {
|
|
6
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
7
7
|
export declare const minHeightComponentStyles: SerializedStyles;
|
|
8
8
|
export declare const MinHeightContainer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
9
9
|
minHeight: string;
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
8
|
-
import {
|
|
8
|
+
import type { ExtractInjectionAPI, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import type { InputMethodType } from '../pm-plugins/analytics';
|
|
11
|
+
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
12
12
|
import type { TypeAheadHandler } from '../types';
|
|
13
13
|
export declare const TypeAheadList: React.FC<WithIntlProps<{
|
|
14
14
|
api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { jsx
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
7
8
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
9
|
+
import type { ExtractInjectionAPI, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
10
|
+
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
10
11
|
export declare const itemIcon: SerializedStyles;
|
|
11
12
|
type TypeAheadListItemProps = {
|
|
12
13
|
api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ACTION
|
|
1
|
+
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
4
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
4
5
|
import type { TypeAheadInputMethod } from '../types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
|
-
import {
|
|
2
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
5
5
|
import type { CreateTypeAheadDecorations, PopupMountPointReference, RemoveTypeAheadDecorations } from '../types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
3
3
|
export declare const itemIsDisabled: (item: TypeAheadItem | undefined, api: ExtractInjectionAPI<TypeAheadPlugin> | undefined) => boolean;
|
|
@@ -2,8 +2,8 @@ import type { IntlShape } from 'react-intl-next';
|
|
|
2
2
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
|
+
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
7
7
|
import type { PopupMountPointReference, TypeAheadHandler } from '../types';
|
|
8
8
|
type Props = {
|
|
9
9
|
api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
|
-
import {
|
|
2
|
+
import type { ExtractInjectionAPI, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import {
|
|
5
|
+
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
6
6
|
import type { TypeAheadHandler, TypeAheadPluginState } from '../types';
|
|
7
7
|
export declare const isTypeAheadHandler: (handler: any) => handler is TypeAheadHandler;
|
|
8
8
|
/** Is a typeahead plugin open? */
|
|
@@ -6,7 +6,7 @@ import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
|
6
6
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
7
7
|
import type { MetricsPlugin } from '@atlaskit/editor-plugin-metrics';
|
|
8
8
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
9
|
-
import {
|
|
9
|
+
import type { TypeAheadPluginOptions, TypeAheadPluginSharedState, OpenTypeAheadProps } from './types';
|
|
10
10
|
type InsertTypeAheadItemProps = {
|
|
11
11
|
contentItem: TypeAheadItem;
|
|
12
12
|
mode?: SelectItemMode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactNode, MouseEventHandler } from 'react';
|
|
3
|
+
import type { ListRowProps } from 'react-virtualized';
|
|
3
4
|
/**
|
|
4
5
|
*
|
|
5
6
|
* @param root0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import {
|
|
6
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
7
7
|
export declare const minHeightComponentStyles: SerializedStyles;
|
|
8
8
|
export declare const MinHeightContainer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
9
9
|
minHeight: string;
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
8
|
-
import {
|
|
8
|
+
import type { ExtractInjectionAPI, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import type { InputMethodType } from '../pm-plugins/analytics';
|
|
11
|
+
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
12
12
|
import type { TypeAheadHandler } from '../types';
|
|
13
13
|
export declare const TypeAheadList: React.FC<WithIntlProps<{
|
|
14
14
|
api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { jsx
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
7
8
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
9
|
+
import type { ExtractInjectionAPI, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
10
|
+
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
10
11
|
export declare const itemIcon: SerializedStyles;
|
|
11
12
|
type TypeAheadListItemProps = {
|
|
12
13
|
api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
|