@atlaskit/editor-plugin-type-ahead 0.7.5 → 0.7.6

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
+ ## 0.7.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790) [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) - ED-21266: Updated @atlaskit/adf-schema to 34.0.1
8
+
3
9
  ## 0.7.5
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,16 +31,16 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^34.0.0",
34
+ "@atlaskit/adf-schema": "^34.0.1",
35
35
  "@atlaskit/analytics-next": "^9.1.0",
36
- "@atlaskit/editor-common": "^76.22.0",
36
+ "@atlaskit/editor-common": "^76.23.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^0.3.0",
38
38
  "@atlaskit/editor-prosemirror": "1.1.0",
39
39
  "@atlaskit/editor-shared-styles": "^2.8.0",
40
40
  "@atlaskit/menu": "^2.1.0",
41
41
  "@atlaskit/prosemirror-input-rules": "^2.4.0",
42
42
  "@atlaskit/theme": "^12.6.0",
43
- "@atlaskit/tokens": "^1.28.0",
43
+ "@atlaskit/tokens": "^1.29.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@emotion/react": "^11.7.1",
46
46
  "lodash": "^4.17.21",
@@ -1,99 +0,0 @@
1
- ## API Report File for "@atlaskit/editor-plugin-type-ahead"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
8
- import type { Command } from '@atlaskit/editor-common/types';
9
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
10
- import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
11
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
12
- import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
13
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
14
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
15
- import type { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
16
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
17
- import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
18
- import type { TypeAheadItem } from '@atlaskit/editor-common/types';
19
- import type { TypeAheadStats } from '@atlaskit/editor-common/types';
20
-
21
- // @public (undocumented)
22
- type CloseTypeAheadProps = {
23
- insertCurrentQueryAsRawText: boolean;
24
- attachCommand?: Command;
25
- };
26
-
27
- // @public (undocumented)
28
- type InsertTypeAheadItemProps = {
29
- triggerHandler: TypeAheadHandler;
30
- contentItem: TypeAheadItem;
31
- query: string;
32
- sourceListItem: TypeAheadItem[];
33
- mode?: SelectItemMode;
34
- };
35
-
36
- // @public (undocumented)
37
- type OpenTypeAheadProps = {
38
- triggerHandler: TypeAheadHandler;
39
- inputMethod: TypeAheadInputMethod;
40
- query?: string;
41
- };
42
-
43
- export { TypeAheadHandler }
44
-
45
- // @public (undocumented)
46
- export type TypeAheadInputMethod = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
47
-
48
- // @public
49
- export type TypeAheadPlugin = NextEditorPlugin<'typeAhead', {
50
- pluginConfiguration: TypeAheadPluginOptions | undefined;
51
- dependencies: [OptionalPlugin<AnalyticsPlugin>];
52
- sharedState: {
53
- query: string;
54
- isOpen: boolean;
55
- isAllowed: boolean;
56
- currentHandler?: TypeAheadHandler;
57
- };
58
- actions: {
59
- isOpen: (editorState: EditorState) => boolean;
60
- isAllowed: (editorState: EditorState) => boolean;
61
- insert: (props: InsertTypeAheadItemProps) => boolean;
62
- findHandlerByTrigger: (trigger: string) => TypeAheadHandler | null;
63
- open: (props: OpenTypeAheadProps) => boolean;
64
- close: (props: CloseTypeAheadProps) => boolean;
65
- openAtTransaction: (props: OpenTypeAheadProps) => (tr: Transaction) => boolean;
66
- };
67
- }>;
68
-
69
- // @public
70
- export const typeAheadPlugin: TypeAheadPlugin;
71
-
72
- // @public (undocumented)
73
- export type TypeAheadPluginOptions = {
74
- isMobile?: boolean;
75
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
76
- };
77
-
78
- // @public (undocumented)
79
- export type TypeAheadPluginState = {
80
- decorationSet: DecorationSet;
81
- decorationElement: HTMLElement | null;
82
- typeAheadHandlers: Array<TypeAheadHandler>;
83
- query: string;
84
- items: Array<TypeAheadItem>;
85
- triggerHandler?: TypeAheadHandler;
86
- selectedIndex: number;
87
- stats: TypeAheadStatsSerializable | null;
88
- inputMethod: TypeAheadInputMethod | null;
89
- };
90
-
91
- // @public (undocumented)
92
- interface TypeAheadStatsSerializable extends TypeAheadStats {
93
- // (undocumented)
94
- serialize: () => TypeAheadStats;
95
- }
96
-
97
- // (No @packageDocumentation comment for this package)
98
-
99
- ```