@atlaskit/editor-plugin-type-ahead 0.1.1 → 0.2.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/README.md +25 -4
- package/dist/types/types.d.ts +4 -0
- package/dist/types-ts4.5/types.d.ts +4 -0
- package/package.json +3 -3
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +42 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating all plugins with minor version to correct issue with semver.
|
|
8
|
+
|
|
3
9
|
## 0.1.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Editor plugin type ahead
|
|
2
2
|
|
|
3
|
-
Type
|
|
3
|
+
Type ahead plugin for @atlaskit/editor-core
|
|
4
|
+
|
|
5
|
+
**Note:** This component is designed for internal Atlassian development.
|
|
6
|
+
External contributors will be able to use this component but will not be able to submit issues.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
---
|
|
10
|
+
- **Install** - *yarn add @atlaskit/editor-plugin-type-ahead*
|
|
11
|
+
- **npm** - [@atlaskit/editor-plugin-type-ahead](https://www.npmjs.com/package/@atlaskit/editor-plugin-type-ahead)
|
|
12
|
+
- **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-type-ahead)
|
|
13
|
+
- **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-type-ahead/dist/)
|
|
4
14
|
|
|
5
15
|
## Usage
|
|
16
|
+
---
|
|
17
|
+
**Internal use only**
|
|
18
|
+
|
|
19
|
+
@atlaskit/editor-plugin-type-ahead is intended for internal use by the @atlaskit/editor-core and as a plugin dependency of the Editor within your product.
|
|
20
|
+
|
|
21
|
+
Direct use of this component is not supported.
|
|
6
22
|
|
|
7
|
-
|
|
23
|
+
Please see [Atlaskit - Editor plugin type ahead](https://atlaskit.atlassian.com/packages/editor/editor-plugin-type-ahead) for documentation and examples for this package.
|
|
8
24
|
|
|
9
|
-
|
|
25
|
+
## Support
|
|
26
|
+
---
|
|
27
|
+
For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
|
|
28
|
+
## License
|
|
29
|
+
---
|
|
30
|
+
Please see [Atlassian Frontend - License](https://developer.atlassian.com/cloud/framework/atlassian-frontend/#license) for more licensing information.
|
package/dist/types/types.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ export type TypeAheadPluginOptions = {
|
|
|
12
12
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
13
13
|
};
|
|
14
14
|
type OpenTypeAheadAtCursorType = (props: Props) => EditorCommand;
|
|
15
|
+
/**
|
|
16
|
+
* Type ahead plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
17
|
+
* from `@atlaskit/editor-core`.
|
|
18
|
+
*/
|
|
15
19
|
export type TypeAheadPlugin = NextEditorPlugin<'typeAhead', {
|
|
16
20
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
17
21
|
commands: {
|
|
@@ -12,6 +12,10 @@ export type TypeAheadPluginOptions = {
|
|
|
12
12
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
13
13
|
};
|
|
14
14
|
type OpenTypeAheadAtCursorType = (props: Props) => EditorCommand;
|
|
15
|
+
/**
|
|
16
|
+
* Type ahead plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
17
|
+
* from `@atlaskit/editor-core`.
|
|
18
|
+
*/
|
|
15
19
|
export type TypeAheadPlugin = NextEditorPlugin<'typeAhead', {
|
|
16
20
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
17
21
|
commands: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
|
-
"team": "Editor",
|
|
11
|
+
"team": "Editor: Lego",
|
|
12
12
|
"releaseModel": "continuous",
|
|
13
13
|
"singleton": true
|
|
14
14
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/editor-common": "^74.
|
|
34
|
+
"@atlaskit/editor-common": "^74.55.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
package/report.api.md
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
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 { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
8
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
9
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
10
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
11
|
+
import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
12
|
+
|
|
13
|
+
// @public (undocumented)
|
|
14
|
+
type OpenTypeAheadAtCursorType = (props: Props) => EditorCommand;
|
|
15
|
+
|
|
16
|
+
// @public (undocumented)
|
|
17
|
+
type Props = {
|
|
18
|
+
triggerHandler: TypeAheadHandler;
|
|
19
|
+
inputMethod: TypeAheadInputMethod;
|
|
20
|
+
query?: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
// @public (undocumented)
|
|
24
|
+
export type TypeAheadInputMethod = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
|
|
25
|
+
|
|
26
|
+
// @public
|
|
27
|
+
export type TypeAheadPlugin = NextEditorPlugin<'typeAhead', {
|
|
28
|
+
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
29
|
+
commands: {
|
|
30
|
+
openTypeAheadAtCursor: OpenTypeAheadAtCursorType;
|
|
31
|
+
};
|
|
32
|
+
}>;
|
|
33
|
+
|
|
34
|
+
// @public (undocumented)
|
|
35
|
+
export type TypeAheadPluginOptions = {
|
|
36
|
+
isMobile?: boolean;
|
|
37
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
// (No @packageDocumentation comment for this package)
|
|
41
|
+
|
|
42
|
+
```
|