@atlaskit/editor-core 187.15.0 → 187.15.1
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/create-editor/create-plugins-list.js +2 -7
- package/dist/cjs/create-editor/feature-flags-from-props.js +23 -28
- package/dist/cjs/plugins/type-ahead/index.js +1 -4
- package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +2 -4
- package/dist/cjs/plugins/type-ahead/pm-plugins/main.js +2 -4
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +21 -40
- package/dist/cjs/plugins/type-ahead/ui/WrapperTypeAhead.js +5 -9
- package/dist/cjs/plugins/type-ahead/utils.js +15 -19
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/create-editor/create-plugins-list.js +2 -7
- package/dist/es2019/create-editor/feature-flags-from-props.js +23 -28
- package/dist/es2019/plugins/type-ahead/index.js +1 -4
- package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +2 -4
- package/dist/es2019/plugins/type-ahead/pm-plugins/main.js +2 -4
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +21 -40
- package/dist/es2019/plugins/type-ahead/ui/WrapperTypeAhead.js +5 -9
- package/dist/es2019/plugins/type-ahead/utils.js +15 -19
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/create-editor/create-plugins-list.js +2 -7
- package/dist/esm/create-editor/feature-flags-from-props.js +23 -28
- package/dist/esm/plugins/type-ahead/index.js +1 -4
- package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +2 -4
- package/dist/esm/plugins/type-ahead/pm-plugins/main.js +2 -4
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +21 -40
- package/dist/esm/plugins/type-ahead/ui/WrapperTypeAhead.js +5 -9
- package/dist/esm/plugins/type-ahead/utils.js +15 -19
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/create-editor/create-plugins-list.d.ts +6 -6
- package/dist/types/plugins/type-ahead/index.d.ts +0 -1
- package/dist/types/plugins/type-ahead/pm-plugins/decorations.d.ts +1 -2
- package/dist/types/plugins/type-ahead/pm-plugins/main.d.ts +1 -2
- package/dist/types/plugins/type-ahead/ui/InputQuery.d.ts +0 -1
- package/dist/types/plugins/type-ahead/ui/WrapperTypeAhead.d.ts +0 -1
- package/dist/types/plugins/type-ahead/utils.d.ts +1 -2
- package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +6 -6
- package/dist/types-ts4.5/plugins/type-ahead/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/decorations.d.ts +1 -2
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/main.d.ts +1 -2
- package/dist/types-ts4.5/plugins/type-ahead/ui/InputQuery.d.ts +0 -1
- package/dist/types-ts4.5/plugins/type-ahead/ui/WrapperTypeAhead.d.ts +0 -1
- package/dist/types-ts4.5/plugins/type-ahead/utils.d.ts +1 -2
- package/package.json +1 -1
- package/report.api.md +1 -2
- package/tmp/api-report-tmp.d.ts +1 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { EditorPlugin, EditorProps } from '../types';
|
|
3
|
-
import { EditorPluginFeatureProps } from '../types/editor-props';
|
|
4
|
-
import { ScrollGutterPluginOptions } from '../plugins/base/pm-plugins/scroll-gutter';
|
|
5
|
-
import { DefaultPresetPluginOptions } from '../labs/next/presets/default';
|
|
6
|
-
import { EditorPresetProps } from '../labs/next/presets/types';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { EditorPlugin, EditorProps } from '../types';
|
|
3
|
+
import type { EditorPluginFeatureProps } from '../types/editor-props';
|
|
4
|
+
import type { ScrollGutterPluginOptions } from '../plugins/base/pm-plugins/scroll-gutter';
|
|
5
|
+
import type { DefaultPresetPluginOptions } from '../labs/next/presets/default';
|
|
6
|
+
import type { EditorPresetProps } from '../labs/next/presets/types';
|
|
7
7
|
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
8
8
|
export declare function getScrollGutterOptions(props: EditorProps): ScrollGutterPluginOptions | undefined;
|
|
9
9
|
export declare function getDefaultPresetOptionsFromEditorProps(props: EditorProps, createAnalyticsEvent?: CreateUIAnalyticsEvent): EditorPresetProps & DefaultPresetPluginOptions & EditorPluginFeatureProps;
|
|
@@ -5,11 +5,10 @@ type FactoryProps = {
|
|
|
5
5
|
intl: IntlShape;
|
|
6
6
|
popupMountRef: PopupMountPointReference;
|
|
7
7
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
8
|
-
useBetterTypeaheadNavigation: boolean;
|
|
9
8
|
};
|
|
10
9
|
type FactoryReturn = {
|
|
11
10
|
createDecorations: CreateTypeAheadDecorations;
|
|
12
11
|
removeDecorations: RemoveTypeAheadDecorations;
|
|
13
12
|
};
|
|
14
|
-
export declare const factoryDecorations: ({ intl, popupMountRef, createAnalyticsEvent,
|
|
13
|
+
export declare const factoryDecorations: ({ intl, popupMountRef, createAnalyticsEvent, }: FactoryProps) => FactoryReturn;
|
|
15
14
|
export {};
|
|
@@ -9,7 +9,6 @@ type Props = {
|
|
|
9
9
|
typeAheadHandlers: Array<TypeAheadHandler>;
|
|
10
10
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
11
11
|
getIntl: () => IntlShape;
|
|
12
|
-
useBetterTypeaheadNavigation: boolean;
|
|
13
12
|
};
|
|
14
|
-
export declare function createPlugin({ reactDispatch, popupMountRef, createAnalyticsEvent, typeAheadHandlers, getIntl,
|
|
13
|
+
export declare function createPlugin({ reactDispatch, popupMountRef, createAnalyticsEvent, typeAheadHandlers, getIntl, }: Props): SafePlugin;
|
|
15
14
|
export {};
|
|
@@ -15,7 +15,6 @@ type WrapperProps = {
|
|
|
15
15
|
popupsScrollableElement?: HTMLElement;
|
|
16
16
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
17
17
|
inputMethod?: TypeAheadInputMethod;
|
|
18
|
-
useBetterTypeaheadNavigation: boolean;
|
|
19
18
|
};
|
|
20
19
|
export declare const WrapperTypeAhead: React.FC<WrapperProps>;
|
|
21
20
|
export {};
|
|
@@ -18,9 +18,8 @@ export declare const findHandlerByTrigger: ({ trigger, editorState, }: {
|
|
|
18
18
|
type MoveSelectedIndexProps = {
|
|
19
19
|
editorView: EditorView;
|
|
20
20
|
direction: 'next' | 'previous';
|
|
21
|
-
useBetterTypeaheadNavigation?: boolean;
|
|
22
21
|
};
|
|
23
|
-
export declare const moveSelectedIndex: ({ editorView, direction
|
|
22
|
+
export declare const moveSelectedIndex: ({ editorView, direction }: MoveSelectedIndexProps) => () => void;
|
|
24
23
|
type TypeAheadAssistiveLabels = {
|
|
25
24
|
popupAriaLabel: string;
|
|
26
25
|
listItemAriaLabel?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { EditorPlugin, EditorProps } from '../types';
|
|
3
|
-
import { EditorPluginFeatureProps } from '../types/editor-props';
|
|
4
|
-
import { ScrollGutterPluginOptions } from '../plugins/base/pm-plugins/scroll-gutter';
|
|
5
|
-
import { DefaultPresetPluginOptions } from '../labs/next/presets/default';
|
|
6
|
-
import { EditorPresetProps } from '../labs/next/presets/types';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { EditorPlugin, EditorProps } from '../types';
|
|
3
|
+
import type { EditorPluginFeatureProps } from '../types/editor-props';
|
|
4
|
+
import type { ScrollGutterPluginOptions } from '../plugins/base/pm-plugins/scroll-gutter';
|
|
5
|
+
import type { DefaultPresetPluginOptions } from '../labs/next/presets/default';
|
|
6
|
+
import type { EditorPresetProps } from '../labs/next/presets/types';
|
|
7
7
|
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
8
8
|
export declare function getScrollGutterOptions(props: EditorProps): ScrollGutterPluginOptions | undefined;
|
|
9
9
|
export declare function getDefaultPresetOptionsFromEditorProps(props: EditorProps, createAnalyticsEvent?: CreateUIAnalyticsEvent): EditorPresetProps & DefaultPresetPluginOptions & EditorPluginFeatureProps;
|
|
@@ -5,11 +5,10 @@ type FactoryProps = {
|
|
|
5
5
|
intl: IntlShape;
|
|
6
6
|
popupMountRef: PopupMountPointReference;
|
|
7
7
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
8
|
-
useBetterTypeaheadNavigation: boolean;
|
|
9
8
|
};
|
|
10
9
|
type FactoryReturn = {
|
|
11
10
|
createDecorations: CreateTypeAheadDecorations;
|
|
12
11
|
removeDecorations: RemoveTypeAheadDecorations;
|
|
13
12
|
};
|
|
14
|
-
export declare const factoryDecorations: ({ intl, popupMountRef, createAnalyticsEvent,
|
|
13
|
+
export declare const factoryDecorations: ({ intl, popupMountRef, createAnalyticsEvent, }: FactoryProps) => FactoryReturn;
|
|
15
14
|
export {};
|
|
@@ -9,7 +9,6 @@ type Props = {
|
|
|
9
9
|
typeAheadHandlers: Array<TypeAheadHandler>;
|
|
10
10
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
11
11
|
getIntl: () => IntlShape;
|
|
12
|
-
useBetterTypeaheadNavigation: boolean;
|
|
13
12
|
};
|
|
14
|
-
export declare function createPlugin({ reactDispatch, popupMountRef, createAnalyticsEvent, typeAheadHandlers, getIntl,
|
|
13
|
+
export declare function createPlugin({ reactDispatch, popupMountRef, createAnalyticsEvent, typeAheadHandlers, getIntl, }: Props): SafePlugin;
|
|
15
14
|
export {};
|
|
@@ -15,7 +15,6 @@ type WrapperProps = {
|
|
|
15
15
|
popupsScrollableElement?: HTMLElement;
|
|
16
16
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
17
17
|
inputMethod?: TypeAheadInputMethod;
|
|
18
|
-
useBetterTypeaheadNavigation: boolean;
|
|
19
18
|
};
|
|
20
19
|
export declare const WrapperTypeAhead: React.FC<WrapperProps>;
|
|
21
20
|
export {};
|
|
@@ -18,9 +18,8 @@ export declare const findHandlerByTrigger: ({ trigger, editorState, }: {
|
|
|
18
18
|
type MoveSelectedIndexProps = {
|
|
19
19
|
editorView: EditorView;
|
|
20
20
|
direction: 'next' | 'previous';
|
|
21
|
-
useBetterTypeaheadNavigation?: boolean;
|
|
22
21
|
};
|
|
23
|
-
export declare const moveSelectedIndex: ({ editorView, direction
|
|
22
|
+
export declare const moveSelectedIndex: ({ editorView, direction }: MoveSelectedIndexProps) => () => void;
|
|
24
23
|
type TypeAheadAssistiveLabels = {
|
|
25
24
|
popupAriaLabel: string;
|
|
26
25
|
listItemAriaLabel?: string;
|
package/package.json
CHANGED
package/report.api.md
CHANGED
|
@@ -41,7 +41,7 @@ import type { ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolba
|
|
|
41
41
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
42
42
|
import type { ContextUpdateHandler } from '@atlaskit/editor-common/types';
|
|
43
43
|
import { createTable } from '@atlaskit/editor-plugin-table/commands';
|
|
44
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
44
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
45
45
|
import type { CreateUIAnalyticsEvent as CreateUIAnalyticsEvent_2 } from '@atlaskit/analytics-next/types';
|
|
46
46
|
import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
47
47
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -2216,7 +2216,6 @@ export const typeAheadPluginKey: PluginKey<TypeAheadPluginState>;
|
|
|
2216
2216
|
type TypeAheadPluginOptions = {
|
|
2217
2217
|
isMobile?: boolean;
|
|
2218
2218
|
createAnalyticsEvent?: CreateUIAnalyticsEvent_2;
|
|
2219
|
-
useBetterTypeaheadNavigation?: boolean;
|
|
2220
2219
|
};
|
|
2221
2220
|
|
|
2222
2221
|
// @public (undocumented)
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ import type { ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolba
|
|
|
30
30
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
31
31
|
import type { ContextUpdateHandler } from '@atlaskit/editor-common/types';
|
|
32
32
|
import { createTable } from '@atlaskit/editor-plugin-table/commands';
|
|
33
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
33
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
34
34
|
import type { CreateUIAnalyticsEvent as CreateUIAnalyticsEvent_2 } from '@atlaskit/analytics-next/types';
|
|
35
35
|
import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
36
36
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1972,7 +1972,6 @@ export const typeAheadPluginKey: PluginKey<TypeAheadPluginState>;
|
|
|
1972
1972
|
type TypeAheadPluginOptions = {
|
|
1973
1973
|
isMobile?: boolean;
|
|
1974
1974
|
createAnalyticsEvent?: CreateUIAnalyticsEvent_2;
|
|
1975
|
-
useBetterTypeaheadNavigation?: boolean;
|
|
1976
1975
|
};
|
|
1977
1976
|
|
|
1978
1977
|
// @public (undocumented)
|