@atlaskit/editor-plugin-type-ahead 2.7.9 → 2.7.11

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.
@@ -30,7 +30,7 @@ type TypeAheadPopupProps = {
30
30
  forceFocusOnEditor: boolean;
31
31
  }) => void;
32
32
  api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
33
- showViewMore?: boolean;
33
+ showMoreOptionsButton?: boolean;
34
34
  };
35
35
  export declare const TypeAheadPopup: React.MemoExoticComponent<(props: TypeAheadPopupProps) => jsx.JSX.Element>;
36
36
  export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { jsx } from '@emotion/react';
3
+ type Props = {
4
+ onClick: () => void;
5
+ isFocused: boolean;
6
+ title: string;
7
+ ariaLabel?: string;
8
+ iconBefore?: React.ReactNode;
9
+ };
10
+ export declare const MoreOptions: ({ onClick, isFocused, title, ariaLabel, iconBefore }: Props) => jsx.JSX.Element;
11
+ export {};
@@ -20,8 +20,8 @@ export declare const TypeAheadList: React.FC<import("react-intl-next").WithIntlP
20
20
  triggerHandler?: TypeAheadHandler | undefined;
21
21
  moreElementsInQuickInsertViewEnabled?: boolean | undefined;
22
22
  api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
23
- showViewMore?: boolean | undefined;
24
- onViewMoreClick?: (() => void) | undefined;
23
+ showMoreOptionsButton?: boolean | undefined;
24
+ onMoreOptionsClicked?: (() => void) | undefined;
25
25
  } & WrappedComponentProps>> & {
26
26
  WrappedComponent: React.ComponentType<{
27
27
  items: Array<TypeAheadItem>;
@@ -33,7 +33,7 @@ export declare const TypeAheadList: React.FC<import("react-intl-next").WithIntlP
33
33
  triggerHandler?: TypeAheadHandler | undefined;
34
34
  moreElementsInQuickInsertViewEnabled?: boolean | undefined;
35
35
  api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
36
- showViewMore?: boolean | undefined;
37
- onViewMoreClick?: (() => void) | undefined;
36
+ showMoreOptionsButton?: boolean | undefined;
37
+ onMoreOptionsClicked?: (() => void) | undefined;
38
38
  } & WrappedComponentProps>;
39
39
  };
@@ -30,7 +30,7 @@ type TypeAheadPopupProps = {
30
30
  forceFocusOnEditor: boolean;
31
31
  }) => void;
32
32
  api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
33
- showViewMore?: boolean;
33
+ showMoreOptionsButton?: boolean;
34
34
  };
35
35
  export declare const TypeAheadPopup: React.MemoExoticComponent<(props: TypeAheadPopupProps) => jsx.JSX.Element>;
36
36
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "2.7.9",
3
+ "version": "2.7.11",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
- "@atlaskit/editor-common": "^106.0.0",
37
+ "@atlaskit/editor-common": "^106.3.0",
38
38
  "@atlaskit/editor-element-browser": "^0.1.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
40
40
  "@atlaskit/editor-plugin-connectivity": "^2.0.0",
@@ -49,8 +49,8 @@
49
49
  "@atlaskit/primitives": "^14.8.0",
50
50
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
51
51
  "@atlaskit/theme": "^18.0.0",
52
- "@atlaskit/tmp-editor-statsig": "^5.2.0",
53
- "@atlaskit/tokens": "^4.9.0",
52
+ "@atlaskit/tmp-editor-statsig": "^5.13.0",
53
+ "@atlaskit/tokens": "^5.0.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",
56
56
  "lodash": "^4.17.21",
@@ -125,6 +125,9 @@
125
125
  },
126
126
  "platform_editor_controls_patch_8": {
127
127
  "type": "boolean"
128
+ },
129
+ "platform_editor_controls_patch_12": {
130
+ "type": "boolean"
128
131
  }
129
132
  }
130
133
  }