@atlaskit/editor-plugin-type-ahead 3.0.1 → 3.0.2

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-type-ahead
2
2
 
3
+ ## 3.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 3.0.1
4
10
 
5
11
  ### Patch Changes
@@ -30,7 +30,7 @@ export declare const createTypeAheadTools: (editorView: EditorView) => {
30
30
  close: (options?: CloseOptions) => boolean;
31
31
  insert: ({ index, mode }: {
32
32
  index: number;
33
- mode?: SelectItemMode;
33
+ mode?: SelectItemMode | undefined;
34
34
  }) => Promise<void>;
35
35
  };
36
36
  openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
@@ -40,7 +40,7 @@ export declare const createTypeAheadTools: (editorView: EditorView) => {
40
40
  close: (options?: CloseOptions) => boolean;
41
41
  insert: ({ index, mode }: {
42
42
  index: number;
43
- mode?: SelectItemMode;
43
+ mode?: SelectItemMode | undefined;
44
44
  }) => Promise<void>;
45
45
  };
46
46
  openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
@@ -50,7 +50,7 @@ export declare const createTypeAheadTools: (editorView: EditorView) => {
50
50
  close: (options?: CloseOptions) => boolean;
51
51
  insert: ({ index, mode }: {
52
52
  index: number;
53
- mode?: SelectItemMode;
53
+ mode?: SelectItemMode | undefined;
54
54
  }) => Promise<void>;
55
55
  };
56
56
  insertItemMention: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { jsx } from '@emotion/react';
2
3
  type Props = {
3
4
  onClick: () => void;
@@ -17,11 +17,11 @@ export declare const TypeAheadList: React.FC<import("react-intl-next").WithIntlP
17
17
  onItemClick: (mode: SelectItemMode, index: number, inputMethod?: InputMethodType) => void;
18
18
  fitHeight: number;
19
19
  decorationElement: HTMLElement;
20
- triggerHandler?: TypeAheadHandler;
21
- moreElementsInQuickInsertViewEnabled?: boolean;
20
+ triggerHandler?: TypeAheadHandler | undefined;
21
+ moreElementsInQuickInsertViewEnabled?: boolean | undefined;
22
22
  api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
23
- showMoreOptionsButton?: boolean;
24
- onMoreOptionsClicked?: () => void;
23
+ showMoreOptionsButton?: boolean | undefined;
24
+ onMoreOptionsClicked?: (() => void) | undefined;
25
25
  } & WrappedComponentProps>> & {
26
26
  WrappedComponent: React.ComponentType<{
27
27
  items: Array<TypeAheadItem>;
@@ -30,10 +30,10 @@ export declare const TypeAheadList: React.FC<import("react-intl-next").WithIntlP
30
30
  onItemClick: (mode: SelectItemMode, index: number, inputMethod?: InputMethodType) => void;
31
31
  fitHeight: number;
32
32
  decorationElement: HTMLElement;
33
- triggerHandler?: TypeAheadHandler;
34
- moreElementsInQuickInsertViewEnabled?: boolean;
33
+ triggerHandler?: TypeAheadHandler | undefined;
34
+ moreElementsInQuickInsertViewEnabled?: boolean | undefined;
35
35
  api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
36
- showMoreOptionsButton?: boolean;
37
- onMoreOptionsClicked?: () => void;
36
+ showMoreOptionsButton?: boolean | undefined;
37
+ onMoreOptionsClicked?: (() => void) | undefined;
38
38
  } & WrappedComponentProps>;
39
39
  };
@@ -30,7 +30,7 @@ export declare const createTypeAheadTools: (editorView: EditorView) => {
30
30
  close: (options?: CloseOptions) => boolean;
31
31
  insert: ({ index, mode }: {
32
32
  index: number;
33
- mode?: SelectItemMode;
33
+ mode?: SelectItemMode | undefined;
34
34
  }) => Promise<void>;
35
35
  };
36
36
  openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
@@ -40,7 +40,7 @@ export declare const createTypeAheadTools: (editorView: EditorView) => {
40
40
  close: (options?: CloseOptions) => boolean;
41
41
  insert: ({ index, mode }: {
42
42
  index: number;
43
- mode?: SelectItemMode;
43
+ mode?: SelectItemMode | undefined;
44
44
  }) => Promise<void>;
45
45
  };
46
46
  openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
@@ -50,7 +50,7 @@ export declare const createTypeAheadTools: (editorView: EditorView) => {
50
50
  close: (options?: CloseOptions) => boolean;
51
51
  insert: ({ index, mode }: {
52
52
  index: number;
53
- mode?: SelectItemMode;
53
+ mode?: SelectItemMode | undefined;
54
54
  }) => Promise<void>;
55
55
  };
56
56
  insertItemMention: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { jsx } from '@emotion/react';
2
3
  type Props = {
3
4
  onClick: () => void;
@@ -17,11 +17,11 @@ export declare const TypeAheadList: React.FC<import("react-intl-next").WithIntlP
17
17
  onItemClick: (mode: SelectItemMode, index: number, inputMethod?: InputMethodType) => void;
18
18
  fitHeight: number;
19
19
  decorationElement: HTMLElement;
20
- triggerHandler?: TypeAheadHandler;
21
- moreElementsInQuickInsertViewEnabled?: boolean;
20
+ triggerHandler?: TypeAheadHandler | undefined;
21
+ moreElementsInQuickInsertViewEnabled?: boolean | undefined;
22
22
  api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
23
- showMoreOptionsButton?: boolean;
24
- onMoreOptionsClicked?: () => void;
23
+ showMoreOptionsButton?: boolean | undefined;
24
+ onMoreOptionsClicked?: (() => void) | undefined;
25
25
  } & WrappedComponentProps>> & {
26
26
  WrappedComponent: React.ComponentType<{
27
27
  items: Array<TypeAheadItem>;
@@ -30,10 +30,10 @@ export declare const TypeAheadList: React.FC<import("react-intl-next").WithIntlP
30
30
  onItemClick: (mode: SelectItemMode, index: number, inputMethod?: InputMethodType) => void;
31
31
  fitHeight: number;
32
32
  decorationElement: HTMLElement;
33
- triggerHandler?: TypeAheadHandler;
34
- moreElementsInQuickInsertViewEnabled?: boolean;
33
+ triggerHandler?: TypeAheadHandler | undefined;
34
+ moreElementsInQuickInsertViewEnabled?: boolean | undefined;
35
35
  api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
36
- showMoreOptionsButton?: boolean;
37
- onMoreOptionsClicked?: () => void;
36
+ showMoreOptionsButton?: boolean | undefined;
37
+ onMoreOptionsClicked?: (() => void) | undefined;
38
38
  } & WrappedComponentProps>;
39
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -41,13 +41,13 @@
41
41
  "@atlaskit/editor-prosemirror": "7.0.0",
42
42
  "@atlaskit/editor-shared-styles": "^3.4.0",
43
43
  "@atlaskit/heading": "^5.2.0",
44
- "@atlaskit/icon": "^27.2.0",
44
+ "@atlaskit/icon": "^27.3.0",
45
45
  "@atlaskit/menu": "^8.0.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/primitives": "^14.10.0",
48
48
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
49
49
  "@atlaskit/theme": "^18.0.0",
50
- "@atlaskit/tmp-editor-statsig": "^8.8.0",
50
+ "@atlaskit/tmp-editor-statsig": "^9.0.0",
51
51
  "@atlaskit/tokens": "^5.4.0",
52
52
  "@babel/runtime": "^7.0.0",
53
53
  "@emotion/react": "^11.7.1",