@atlaskit/editor-plugin-type-ahead 27.0.3 → 27.0.5
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 +12 -0
- package/dist/cjs/pm-plugins/analytics.js +5 -5
- package/dist/cjs/pm-plugins/api.js +2 -2
- package/dist/cjs/pm-plugins/commands/insert-utils.js +2 -2
- package/dist/cjs/pm-plugins/commands/open-typeahead-at-cursor.js +1 -1
- package/dist/cjs/pm-plugins/input-rules.js +6 -5
- package/dist/cjs/pm-plugins/item-is-disabled.js +2 -2
- package/dist/cjs/pm-plugins/main.js +4 -4
- package/dist/cjs/pm-plugins/reducer.js +5 -5
- package/dist/cjs/pm-plugins/utils.js +10 -9
- package/dist/cjs/typeAheadPlugin.js +6 -6
- package/dist/cjs/ui/ContentComponent.js +2 -2
- package/dist/cjs/ui/InputQuery.js +22 -21
- package/dist/cjs/ui/TypeAheadErrorFallback/index.js +3 -3
- package/dist/cjs/ui/TypeAheadList.js +11 -10
- package/dist/cjs/ui/TypeAheadListItem.js +13 -12
- package/dist/cjs/ui/TypeAheadPopup.js +30 -29
- package/dist/cjs/ui/WrapperTypeAhead.js +4 -4
- package/dist/cjs/ui/registered-menu/RegisteredTypeAheadMenu.js +2 -2
- package/dist/cjs/ui/registered-menu/TypeAheadMenuRenderer.js +2 -2
- package/dist/cjs/ui/registered-menu/quick-insert/TypeAheadQuickInsertProvider.js +2 -2
- package/dist/cjs/ui/registered-menu/typeAheadSurfaces.js +4 -3
- package/dist/es2019/pm-plugins/analytics.js +1 -1
- package/dist/es2019/pm-plugins/api.js +1 -1
- package/dist/es2019/pm-plugins/commands/insert-utils.js +1 -1
- package/dist/es2019/pm-plugins/commands/open-typeahead-at-cursor.js +1 -1
- package/dist/es2019/pm-plugins/input-rules.js +3 -2
- package/dist/es2019/pm-plugins/item-is-disabled.js +1 -1
- package/dist/es2019/pm-plugins/main.js +2 -2
- package/dist/es2019/pm-plugins/reducer.js +2 -2
- package/dist/es2019/pm-plugins/utils.js +3 -2
- package/dist/es2019/typeAheadPlugin.js +1 -1
- package/dist/es2019/ui/ContentComponent.js +1 -1
- package/dist/es2019/ui/InputQuery.js +4 -3
- package/dist/es2019/ui/TypeAheadErrorFallback/index.js +1 -1
- package/dist/es2019/ui/TypeAheadList.js +5 -4
- package/dist/es2019/ui/TypeAheadListItem.js +7 -6
- package/dist/es2019/ui/TypeAheadPopup.js +5 -4
- package/dist/es2019/ui/WrapperTypeAhead.js +1 -1
- package/dist/es2019/ui/registered-menu/RegisteredTypeAheadMenu.js +1 -1
- package/dist/es2019/ui/registered-menu/TypeAheadMenuRenderer.js +1 -1
- package/dist/es2019/ui/registered-menu/quick-insert/TypeAheadQuickInsertProvider.js +1 -1
- package/dist/es2019/ui/registered-menu/typeAheadSurfaces.js +3 -2
- package/dist/esm/pm-plugins/analytics.js +1 -1
- package/dist/esm/pm-plugins/api.js +1 -1
- package/dist/esm/pm-plugins/commands/insert-utils.js +1 -1
- package/dist/esm/pm-plugins/commands/open-typeahead-at-cursor.js +1 -1
- package/dist/esm/pm-plugins/input-rules.js +3 -2
- package/dist/esm/pm-plugins/item-is-disabled.js +1 -1
- package/dist/esm/pm-plugins/main.js +2 -2
- package/dist/esm/pm-plugins/reducer.js +2 -2
- package/dist/esm/pm-plugins/utils.js +3 -2
- package/dist/esm/typeAheadPlugin.js +1 -1
- package/dist/esm/ui/ContentComponent.js +1 -1
- package/dist/esm/ui/InputQuery.js +4 -3
- package/dist/esm/ui/TypeAheadErrorFallback/index.js +1 -1
- package/dist/esm/ui/TypeAheadList.js +5 -4
- package/dist/esm/ui/TypeAheadListItem.js +7 -6
- package/dist/esm/ui/TypeAheadPopup.js +5 -4
- package/dist/esm/ui/WrapperTypeAhead.js +1 -1
- package/dist/esm/ui/registered-menu/RegisteredTypeAheadMenu.js +1 -1
- package/dist/esm/ui/registered-menu/TypeAheadMenuRenderer.js +1 -1
- package/dist/esm/ui/registered-menu/quick-insert/TypeAheadQuickInsertProvider.js +1 -1
- package/dist/esm/ui/registered-menu/typeAheadSurfaces.js +3 -2
- package/dist/types/pm-plugins/analytics.d.ts +3 -3
- package/dist/types/pm-plugins/api.d.ts +2 -2
- package/dist/types/pm-plugins/commands/clear-list-error.d.ts +1 -1
- package/dist/types/pm-plugins/commands/insert-type-ahead-item.d.ts +1 -1
- package/dist/types/pm-plugins/commands/open-typeahead-at-cursor.d.ts +1 -1
- package/dist/types/pm-plugins/commands/update-list-error.d.ts +1 -1
- package/dist/types/pm-plugins/commands/update-list-items.d.ts +2 -1
- package/dist/types/pm-plugins/commands/update-query.d.ts +1 -1
- package/dist/types/pm-plugins/commands/update-section-title.d.ts +2 -1
- package/dist/types/pm-plugins/commands/update-selected-index.d.ts +2 -1
- package/dist/types/pm-plugins/decorations.d.ts +2 -2
- package/dist/types/pm-plugins/input-rules.d.ts +1 -1
- package/dist/types/pm-plugins/item-is-disabled.d.ts +2 -1
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/pm-plugins/utils.d.ts +2 -1
- package/dist/types/typeAheadPluginType.d.ts +8 -6
- package/dist/types/types/index.d.ts +3 -3
- package/dist/types/ui/ContentComponent.d.ts +1 -1
- package/dist/types/ui/InputQuery.d.ts +1 -1
- package/dist/types/ui/TypeAheadList.d.ts +2 -1
- package/dist/types/ui/TypeAheadListItem.d.ts +2 -1
- package/dist/types/ui/TypeAheadMenu.d.ts +1 -1
- package/dist/types/ui/TypeAheadPopup.d.ts +2 -1
- package/dist/types/ui/WrapperTypeAhead.d.ts +1 -1
- package/dist/types/ui/hooks/build-sectioned-result.d.ts +1 -1
- package/dist/types/ui/hooks/use-item-insert.d.ts +2 -1
- package/dist/types/ui/hooks/use-load-items.d.ts +2 -1
- package/dist/types/ui/hooks/use-on-force-select.d.ts +1 -1
- package/dist/types/ui/registered-menu/RegisteredTypeAheadMenu.d.ts +2 -1
- package/dist/types/ui/registered-menu/TypeAheadContext.d.ts +3 -2
- package/dist/types/ui/registered-menu/typeAheadSurfaces.d.ts +1 -1
- package/package.json +2 -2
|
@@ -2,9 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { InsertTypeAheadStages, InsertTypeAheadStep } from '@atlaskit/adf-schema/steps/type-ahead';
|
|
5
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
6
6
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import { insm } from '@atlaskit/insm';
|
|
7
|
+
import { insm } from '@atlaskit/insm/api';
|
|
8
8
|
import { ACTIONS } from './actions';
|
|
9
9
|
import { pluginKey } from './key';
|
|
10
10
|
import { isTypeAheadHandler } from './utils';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { mentionMessages } from '@atlaskit/editor-common/messages';
|
|
2
|
-
import { TypeAheadAvailableNodes
|
|
1
|
+
import { mentionMessages } from '@atlaskit/editor-common/messages/mentions';
|
|
2
|
+
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
3
|
+
import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead/messages';
|
|
3
4
|
import { AGENT_MENTION_LOAD_ERROR_ID } from '@atlaskit/mention/types';
|
|
4
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { typeAheadQuery } from '@atlaskit/adf-schema/type-ahead-query';
|
|
11
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
11
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
12
12
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
13
13
|
import { SelectItemMode, TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
14
14
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/
|
|
2
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
3
3
|
import { getTypeAheadSurface } from './registered-menu/typeAheadSurfaces';
|
|
4
4
|
import { TypeAheadMenu } from './TypeAheadMenu';
|
|
5
5
|
export function ContentComponent(_ref) {
|
|
@@ -9,10 +9,11 @@ import React, { Fragment, useCallback, useLayoutEffect, useRef, useState } from
|
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { useIntl } from 'react-intl';
|
|
11
11
|
import { keyName as keyNameNormalized } from 'w3c-keyname';
|
|
12
|
+
import { AssistiveText } from '@atlaskit/editor-common/AssistiveText';
|
|
12
13
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
13
|
-
import { SelectItemMode
|
|
14
|
-
import {
|
|
15
|
-
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
14
|
+
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
15
|
+
import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead/messages';
|
|
16
|
+
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles/constants';
|
|
16
17
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
17
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
18
19
|
import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_ELEMENT_ID, TYPE_AHEAD_POPUP_CONTENT_CLASS } from '../pm-plugins/constants';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
|
-
import { typeAheadListMessages as messages } from '@atlaskit/editor-common/type-ahead';
|
|
8
|
+
import { typeAheadListMessages as messages } from '@atlaskit/editor-common/type-ahead/messages';
|
|
9
9
|
import { EmptyState } from './EmptyState';
|
|
10
10
|
import { GenericErrorSVG } from './GenericErrorSVG';
|
|
11
11
|
var minHeightComponentStyles = css({
|
|
@@ -12,10 +12,11 @@ import { css, jsx } from '@emotion/react';
|
|
|
12
12
|
import { injectIntl, useIntl } from 'react-intl';
|
|
13
13
|
import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
|
|
14
14
|
import { List } from 'react-virtualized/dist/commonjs/List';
|
|
15
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
15
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
16
|
+
import { AssistiveText } from '@atlaskit/editor-common/AssistiveText';
|
|
17
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages/insert-block';
|
|
18
|
+
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
19
|
+
import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead/messages';
|
|
19
20
|
import MenuGroup from '@atlaskit/menu/menu-group';
|
|
20
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
21
22
|
import { Box, Inline, Text } from '@atlaskit/primitives/compiled';
|
|
@@ -10,12 +10,13 @@ import React, { useCallback, useLayoutEffect, useMemo } from 'react';
|
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { useIntl } from 'react-intl';
|
|
12
12
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import { SelectItemMode
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
13
|
+
import { isOfflineMode } from '@atlaskit/editor-common/connectivity/isOfflineMode';
|
|
14
|
+
import IconFallback from '@atlaskit/editor-common/fallback';
|
|
15
|
+
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
16
|
+
import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead/messages';
|
|
17
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
18
|
+
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles/constants';
|
|
19
|
+
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
|
|
19
20
|
import ButtonItem from '@atlaskit/menu/button-item';
|
|
20
21
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
21
22
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
@@ -8,11 +8,12 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import rafSchedule from 'raf-schd';
|
|
11
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
12
|
-
import
|
|
11
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
12
|
+
import Popup from '@atlaskit/editor-common/Popup';
|
|
13
|
+
import { findOverflowScrollParent } from '@atlaskit/editor-common/Popup/utils';
|
|
13
14
|
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
14
|
-
import {
|
|
15
|
-
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
|
|
15
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
16
|
+
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
16
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
17
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
19
|
import { fireTypeAheadClosedAnalyticsEvent } from '../pm-plugins/analytics';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { ACTION, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { ACTION, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
5
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
@@ -4,11 +4,11 @@ import "./RegisteredTypeAheadMenu.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useCallback, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
+
import Popup from '@atlaskit/editor-common/Popup';
|
|
7
8
|
import { buildQuickInsertMenuModel, getMatchingQuickInsertComponents, getQuickInsertMenuRows, selectQuickInsertCategoryItems } from '@atlaskit/editor-common/quick-insert/registered-menu-model';
|
|
8
9
|
import { useMenuPopupSizing } from '@atlaskit/editor-common/quick-insert/use-menu-popup-sizing';
|
|
9
10
|
import { isSectionOverflowItemKey } from '@atlaskit/editor-common/type-ahead-is-section-overflow-item-key';
|
|
10
11
|
import { TYPE_AHEAD_SURFACE_CONTEXT } from '@atlaskit/editor-common/type-ahead-surface-context';
|
|
11
|
-
import { Popup } from '@atlaskit/editor-common/ui';
|
|
12
12
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
13
13
|
import { createSurfaceContext } from '@atlaskit/editor-ui-control-model/create-surface-context';
|
|
14
14
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -8,7 +8,7 @@ import { CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer'
|
|
|
8
8
|
import { List } from 'react-virtualized/dist/commonjs/List';
|
|
9
9
|
import { getQuickInsertMenuRows } from '@atlaskit/editor-common/quick-insert/registered-menu-model';
|
|
10
10
|
import { useMenuListHeight } from '@atlaskit/editor-common/quick-insert/use-menu-list-height';
|
|
11
|
-
import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
|
|
11
|
+
import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead/messages';
|
|
12
12
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
13
13
|
import { createTypeAheadRowRenderer } from './createTypeAheadRowRenderer';
|
|
14
14
|
import { getTypeAheadGlobalViewMoreId } from './getTypeAheadGlobalViewMoreId';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from 'react';
|
|
2
2
|
import { isOfflineMode } from '@atlaskit/editor-common/connectivity/isOfflineMode';
|
|
3
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
3
|
import { QuickInsertProvider } from '@atlaskit/editor-common/quick-insert/provider';
|
|
4
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
5
5
|
import { performTypeAheadSelection } from '../../../pm-plugins/commands/insert-type-ahead-item';
|
|
6
6
|
import { useTypeAheadContext } from '../useTypeAheadContext';
|
|
7
7
|
export var TypeAheadQuickInsertProvider = function TypeAheadQuickInsertProvider(_ref) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import { MENU } from '@atlaskit/editor-common/quick-insert/keys';
|
|
3
|
-
import { TypeAheadAvailableNodes
|
|
3
|
+
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
4
|
+
import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead/messages';
|
|
4
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
6
|
import { TypeAheadQuickInsertItem } from './quick-insert/TypeAheadQuickInsertItem';
|
|
6
7
|
import { TypeAheadQuickInsertProvider } from './quick-insert/TypeAheadQuickInsertProvider';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import { ACTION } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
4
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
5
5
|
import type { TypeAheadInputMethod } from '../types';
|
|
6
6
|
export type CloseActionType = ACTION.INSERTED | ACTION.CANCELLED | ACTION.VIEW_MORE;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TypeAheadItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
1
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
3
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
3
|
+
import type { TypeAheadItem } from '@atlaskit/editor-common/types/type-ahead';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { TypeAheadHandler, TypeAheadInputMethod } from '../types';
|
|
6
6
|
type CloseOptions = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
2
2
|
export declare const clearListError: () => EditorCommand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { QuickInsertSelectionHandler } from '@atlaskit/editor-common/quick-insert/context';
|
|
2
2
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
3
|
-
import type { TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types/type-ahead';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
type Props = {
|
|
6
6
|
handler: TypeAheadHandler;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { OpenTypeAheadProps } from '../../types';
|
|
4
4
|
export declare const openTypeAhead: (props: OpenTypeAheadProps) => (tr: Transaction) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
export declare const updateListError: (errorInfo: Record<string, string>) => Command;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { Command
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
|
+
import type { TypeAheadItem } from '@atlaskit/editor-common/types/type-ahead';
|
|
2
3
|
import type { TypeAheadResolvedSection } from '../../types';
|
|
3
4
|
export declare const updateListItem: (items: Array<TypeAheadItem>, sections?: Array<TypeAheadResolvedSection>) => Command;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
export declare const updateQuery: (query: string) => Command;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type { Command
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
|
+
import type { TypeAheadSectionTitleUpdate } from '@atlaskit/editor-common/types/type-ahead';
|
|
2
3
|
export declare const updateSectionTitle: ({ id, title, sectionTitleDisplay, }: TypeAheadSectionTitleUpdate) => Command;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { Command
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
3
|
import type { TypeAheadPlugin } from '../../typeAheadPluginType';
|
|
3
4
|
export declare const updateSelectedIndex: (selectedIndex: number, api: ExtractInjectionAPI<TypeAheadPlugin> | undefined) => Command;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
4
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
5
5
|
import type { CreateTypeAheadDecorations, PopupMountPointReference, RemoveTypeAheadDecorations } from '../types';
|
|
6
6
|
type FactoryProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
3
3
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { TypeAheadHandler } from '../types';
|
|
5
5
|
export declare function inputRulePlugin(schema: Schema, typeAheads: TypeAheadHandler[], featureFlags: FeatureFlags): SafePlugin | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
|
+
import type { TypeAheadItem } from '@atlaskit/editor-common/types/type-ahead';
|
|
2
3
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
3
4
|
export declare const itemIsDisabled: (item: TypeAheadItem | undefined, api: ExtractInjectionAPI<TypeAheadPlugin> | undefined) => boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
2
3
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
6
6
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
7
7
|
import type { PopupMountPointReference, TypeAheadHandler } from '../types';
|
|
8
8
|
type Props = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { ExtractInjectionAPI
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
|
+
import type { TypeAheadItem } from '@atlaskit/editor-common/types/type-ahead';
|
|
3
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
6
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
2
|
-
import type { Command
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
3
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
|
+
import type { TypeAheadHandler, TypeAheadItem, TypeAheadSectionTitleUpdate } from '@atlaskit/editor-common/types/type-ahead';
|
|
5
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
|
|
6
|
+
import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity/connectivityPluginType';
|
|
7
|
+
import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel/contextPanelPluginType';
|
|
8
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags/featureFlagsPluginType';
|
|
9
|
+
import type { MetricsPlugin } from '@atlaskit/editor-plugin-metrics/metrics-plugin-type';
|
|
8
10
|
import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry/ui-control-registry-plugin-type';
|
|
9
11
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
10
12
|
import type { TypeAheadPluginOptions, TypeAheadPluginSharedState, OpenTypeAheadProps } from './types';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
3
|
import type { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
4
|
-
import type { TypeAheadHandler, TypeAheadItem, TypeAheadStats
|
|
5
|
-
import type {
|
|
4
|
+
import type { TypeAheadSectionTitleDisplay, TypeAheadHandler, TypeAheadItem, TypeAheadStats } from '@atlaskit/editor-common/types/type-ahead';
|
|
5
|
+
import type { UiComponentFactoryParams } from '@atlaskit/editor-common/types/ui-components';
|
|
6
6
|
import type { EditorState, ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
export type { TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
5
5
|
import type { PopupMountPointReference } from '../types';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
8
|
-
import type { TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
8
|
+
import type { TypeAheadItem } from '@atlaskit/editor-common/types/type-ahead';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import { CloseSelectionOptions } from '../pm-plugins/constants';
|
|
11
11
|
export declare const scheduleFocusAfterAttachment: (queryRef: React.RefObject<HTMLElement>, focusQuery: () => void) => (() => void);
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
7
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
8
|
-
import type { ExtractInjectionAPI
|
|
8
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
9
|
+
import type { TypeAheadItem } from '@atlaskit/editor-common/types/type-ahead';
|
|
9
10
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
11
|
import type { InputMethodType } from '../pm-plugins/analytics';
|
|
11
12
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
@@ -6,7 +6,8 @@ import React from 'react';
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { SerializedStyles } from '@emotion/react';
|
|
8
8
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
9
|
-
import type { ExtractInjectionAPI
|
|
9
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
10
|
+
import type { TypeAheadItem } from '@atlaskit/editor-common/types/type-ahead';
|
|
10
11
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
11
12
|
export declare const itemIcon: SerializedStyles;
|
|
12
13
|
type TypeAheadListItemProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
5
5
|
import type { PopupMountPointReference, TypeAheadPluginSharedState } from '../types';
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
8
|
-
import type { ExtractInjectionAPI
|
|
8
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
9
|
+
import type { TypeAheadItem, TypeAheadHandler } from '@atlaskit/editor-common/types/type-ahead';
|
|
9
10
|
import type { DecorationSet, EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
11
|
import { CloseSelectionOptions } from '../pm-plugins/constants';
|
|
11
12
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { TypeAheadPlugin } from '../typeAheadPluginType';
|
|
5
5
|
import type { TypeAheadHandler, TypeAheadInputMethod } from '../types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types/type-ahead';
|
|
3
3
|
import type { TypeAheadResolvedSection } from '../../types';
|
|
4
4
|
export declare const buildSectionedResult: ({ items, triggerHandler, intl, }: {
|
|
5
5
|
intl: IntlShape | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
|
+
import type { TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types/type-ahead';
|
|
2
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
4
|
import type { TypeAheadPlugin } from '../../typeAheadPluginType';
|
|
4
5
|
import type { OnInsertSelectedItem, OnItemMatch, OnTextInsert } from '../../types';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { ExtractInjectionAPI
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
|
+
import type { TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types/type-ahead';
|
|
3
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
5
|
import type { TypeAheadPlugin } from '../../typeAheadPluginType';
|
|
5
6
|
export declare const useLoadItems: (triggerHandler: TypeAheadHandler, editorView: EditorView, query: string, showViewMore?: boolean, api?: ExtractInjectionAPI<TypeAheadPlugin> | undefined, intl?: IntlShape, enabled?: boolean) => Array<TypeAheadItem>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types/type-ahead';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
type Props = {
|
|
4
4
|
closePopup: () => void;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { ExtractInjectionAPI
|
|
6
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
7
|
+
import type { TypeAheadHandler } from '@atlaskit/editor-common/types/type-ahead';
|
|
7
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
9
|
import type { CloseSelectionOptions } from '../../pm-plugins/constants';
|
|
9
10
|
import type { TypeAheadPlugin } from '../../typeAheadPluginType';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Context } from 'react';
|
|
2
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { ExtractInjectionAPI
|
|
2
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
|
+
import type { TypeAheadHandler } from '@atlaskit/editor-common/types/type-ahead';
|
|
4
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
6
|
import type { SurfaceContext } from '@atlaskit/editor-ui-control-model/types';
|
|
6
7
|
import type { TypeAheadPlugin } from '../../typeAheadPluginType';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { MessageDescriptor } from 'react-intl';
|
|
3
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
4
|
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
5
5
|
import type { TypeAheadItemComponent } from './typeAheadMenuTypes';
|
|
6
6
|
export type TypeAheadSurface = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "27.0.
|
|
3
|
+
"version": "27.0.5",
|
|
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": "^232.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^20.4.0",
|
|
47
47
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|