@atlaskit/editor-plugin-type-ahead 0.2.0 → 0.3.0
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/types/types.d.ts +4 -0
- package/dist/types-ts4.5/types.d.ts +4 -0
- package/package.json +3 -2
- package/report.api.md +4 -0
- package/tmp/api-report-tmp.d.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ef0c2a89c72`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ef0c2a89c72) - Add isTypeAheadOpen action to type-ahead plugin. Decouple placeholder plugin from editor-core.
|
|
8
|
+
|
|
3
9
|
## 0.2.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { EditorCommand, NextEditorPlugin, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
export type TypeAheadInputMethod = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
|
|
5
6
|
type Props = {
|
|
6
7
|
triggerHandler: TypeAheadHandler;
|
|
@@ -18,6 +19,9 @@ type OpenTypeAheadAtCursorType = (props: Props) => EditorCommand;
|
|
|
18
19
|
*/
|
|
19
20
|
export type TypeAheadPlugin = NextEditorPlugin<'typeAhead', {
|
|
20
21
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
22
|
+
actions: {
|
|
23
|
+
isOpen: (editorState: EditorState) => boolean;
|
|
24
|
+
};
|
|
21
25
|
commands: {
|
|
22
26
|
openTypeAheadAtCursor: OpenTypeAheadAtCursorType;
|
|
23
27
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { EditorCommand, NextEditorPlugin, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
export type TypeAheadInputMethod = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
|
|
5
6
|
type Props = {
|
|
6
7
|
triggerHandler: TypeAheadHandler;
|
|
@@ -18,6 +19,9 @@ type OpenTypeAheadAtCursorType = (props: Props) => EditorCommand;
|
|
|
18
19
|
*/
|
|
19
20
|
export type TypeAheadPlugin = NextEditorPlugin<'typeAhead', {
|
|
20
21
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
22
|
+
actions: {
|
|
23
|
+
isOpen: (editorState: EditorState) => boolean;
|
|
24
|
+
};
|
|
21
25
|
commands: {
|
|
22
26
|
openTypeAheadAtCursor: OpenTypeAheadAtCursorType;
|
|
23
27
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/editor-common": "^74.
|
|
34
|
+
"@atlaskit/editor-common": "^74.56.0",
|
|
35
|
+
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
35
36
|
"@babel/runtime": "^7.0.0"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
package/report.api.md
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
```ts
|
|
18
18
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
19
19
|
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
20
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
20
21
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
21
22
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
22
23
|
import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
@@ -43,6 +44,9 @@ export type TypeAheadPlugin = NextEditorPlugin<
|
|
|
43
44
|
'typeAhead',
|
|
44
45
|
{
|
|
45
46
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
47
|
+
actions: {
|
|
48
|
+
isOpen: (editorState: EditorState) => boolean;
|
|
49
|
+
};
|
|
46
50
|
commands: {
|
|
47
51
|
openTypeAheadAtCursor: OpenTypeAheadAtCursorType;
|
|
48
52
|
};
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
8
8
|
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
9
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
9
10
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
10
11
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
11
12
|
import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
@@ -26,6 +27,9 @@ export type TypeAheadInputMethod = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBO
|
|
|
26
27
|
// @public
|
|
27
28
|
export type TypeAheadPlugin = NextEditorPlugin<'typeAhead', {
|
|
28
29
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
30
|
+
actions: {
|
|
31
|
+
isOpen: (editorState: EditorState) => boolean;
|
|
32
|
+
};
|
|
29
33
|
commands: {
|
|
30
34
|
openTypeAheadAtCursor: OpenTypeAheadAtCursorType;
|
|
31
35
|
};
|