@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.
Files changed (48) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/create-editor/create-plugins-list.js +2 -7
  3. package/dist/cjs/create-editor/feature-flags-from-props.js +23 -28
  4. package/dist/cjs/plugins/type-ahead/index.js +1 -4
  5. package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +2 -4
  6. package/dist/cjs/plugins/type-ahead/pm-plugins/main.js +2 -4
  7. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +21 -40
  8. package/dist/cjs/plugins/type-ahead/ui/WrapperTypeAhead.js +5 -9
  9. package/dist/cjs/plugins/type-ahead/utils.js +15 -19
  10. package/dist/cjs/version-wrapper.js +1 -1
  11. package/dist/cjs/version.json +1 -1
  12. package/dist/es2019/create-editor/create-plugins-list.js +2 -7
  13. package/dist/es2019/create-editor/feature-flags-from-props.js +23 -28
  14. package/dist/es2019/plugins/type-ahead/index.js +1 -4
  15. package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +2 -4
  16. package/dist/es2019/plugins/type-ahead/pm-plugins/main.js +2 -4
  17. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +21 -40
  18. package/dist/es2019/plugins/type-ahead/ui/WrapperTypeAhead.js +5 -9
  19. package/dist/es2019/plugins/type-ahead/utils.js +15 -19
  20. package/dist/es2019/version-wrapper.js +1 -1
  21. package/dist/es2019/version.json +1 -1
  22. package/dist/esm/create-editor/create-plugins-list.js +2 -7
  23. package/dist/esm/create-editor/feature-flags-from-props.js +23 -28
  24. package/dist/esm/plugins/type-ahead/index.js +1 -4
  25. package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +2 -4
  26. package/dist/esm/plugins/type-ahead/pm-plugins/main.js +2 -4
  27. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +21 -40
  28. package/dist/esm/plugins/type-ahead/ui/WrapperTypeAhead.js +5 -9
  29. package/dist/esm/plugins/type-ahead/utils.js +15 -19
  30. package/dist/esm/version-wrapper.js +1 -1
  31. package/dist/esm/version.json +1 -1
  32. package/dist/types/create-editor/create-plugins-list.d.ts +6 -6
  33. package/dist/types/plugins/type-ahead/index.d.ts +0 -1
  34. package/dist/types/plugins/type-ahead/pm-plugins/decorations.d.ts +1 -2
  35. package/dist/types/plugins/type-ahead/pm-plugins/main.d.ts +1 -2
  36. package/dist/types/plugins/type-ahead/ui/InputQuery.d.ts +0 -1
  37. package/dist/types/plugins/type-ahead/ui/WrapperTypeAhead.d.ts +0 -1
  38. package/dist/types/plugins/type-ahead/utils.d.ts +1 -2
  39. package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +6 -6
  40. package/dist/types-ts4.5/plugins/type-ahead/index.d.ts +0 -1
  41. package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/decorations.d.ts +1 -2
  42. package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/main.d.ts +1 -2
  43. package/dist/types-ts4.5/plugins/type-ahead/ui/InputQuery.d.ts +0 -1
  44. package/dist/types-ts4.5/plugins/type-ahead/ui/WrapperTypeAhead.d.ts +0 -1
  45. package/dist/types-ts4.5/plugins/type-ahead/utils.d.ts +1 -2
  46. package/package.json +1 -1
  47. package/report.api.md +1 -2
  48. 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;
@@ -4,7 +4,6 @@ import { pluginKey as typeAheadPluginKey } from './pm-plugins/key';
4
4
  export type TypeAheadPluginOptions = {
5
5
  isMobile?: boolean;
6
6
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
7
- useBetterTypeaheadNavigation?: boolean;
8
7
  };
9
8
  /**
10
9
  *
@@ -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, useBetterTypeaheadNavigation, }: FactoryProps) => FactoryReturn;
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, useBetterTypeaheadNavigation, }: Props): SafePlugin;
13
+ export declare function createPlugin({ reactDispatch, popupMountRef, createAnalyticsEvent, typeAheadHandlers, getIntl, }: Props): SafePlugin;
15
14
  export {};
@@ -21,7 +21,6 @@ type InputQueryProps = {
21
21
  reopenQuery?: string;
22
22
  editorView: EditorView;
23
23
  items: any[];
24
- useBetterTypeaheadNavigation: boolean;
25
24
  };
26
25
  export declare const InputQuery: React.FC<InputQueryProps>;
27
26
  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, useBetterTypeaheadNavigation, }: MoveSelectedIndexProps) => () => void;
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;
@@ -4,7 +4,6 @@ import { pluginKey as typeAheadPluginKey } from './pm-plugins/key';
4
4
  export type TypeAheadPluginOptions = {
5
5
  isMobile?: boolean;
6
6
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
7
- useBetterTypeaheadNavigation?: boolean;
8
7
  };
9
8
  /**
10
9
  *
@@ -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, useBetterTypeaheadNavigation, }: FactoryProps) => FactoryReturn;
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, useBetterTypeaheadNavigation, }: Props): SafePlugin;
13
+ export declare function createPlugin({ reactDispatch, popupMountRef, createAnalyticsEvent, typeAheadHandlers, getIntl, }: Props): SafePlugin;
15
14
  export {};
@@ -21,7 +21,6 @@ type InputQueryProps = {
21
21
  reopenQuery?: string;
22
22
  editorView: EditorView;
23
23
  items: any[];
24
- useBetterTypeaheadNavigation: boolean;
25
24
  };
26
25
  export declare const InputQuery: React.FC<InputQueryProps>;
27
26
  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, useBetterTypeaheadNavigation, }: MoveSelectedIndexProps) => () => void;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.15.0",
3
+ "version": "187.15.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
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)
@@ -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)