@atlaskit/editor-plugin-floating-toolbar 0.3.3 → 0.4.1
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 +16 -0
- package/README.md +29 -2
- package/dist/types/types.d.ts +4 -0
- package/dist/types-ts4.5/types.d.ts +4 -0
- package/package.json +7 -7
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +57 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating all plugins with minor version to correct issue with semver.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 0.3.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Editor plugin floating toolbar
|
|
2
2
|
|
|
3
|
-
Floating toolbar plugin for @atlaskit/editor-core
|
|
3
|
+
Floating toolbar 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-floating-toolbar*
|
|
11
|
+
- **npm** - [@atlaskit/editor-plugin-floating-toolbar](https://www.npmjs.com/package/@atlaskit/editor-plugin-floating-toolbar)
|
|
12
|
+
- **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-floating-toolbar)
|
|
13
|
+
- **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-floating-toolbar/dist/)
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
---
|
|
17
|
+
**Internal use only**
|
|
18
|
+
|
|
19
|
+
@atlaskit/editor-plugin-floating-toolbar 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.
|
|
22
|
+
|
|
23
|
+
Please see [Atlaskit - Editor plugin floating toolbar](https://atlaskit.atlassian.com/packages/editor/editor-plugin-floating-toolbar) for documentation and examples for this package.
|
|
24
|
+
|
|
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
|
@@ -17,6 +17,10 @@ export type FloatingToolbarPluginData = {
|
|
|
17
17
|
confirmDialogForItem?: number;
|
|
18
18
|
};
|
|
19
19
|
export type ForceFocusSelector = (selector: string | null) => (tr: Transaction) => Transaction;
|
|
20
|
+
/**
|
|
21
|
+
* Floating toolbar plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
22
|
+
* from `@atlaskit/editor-core`.
|
|
23
|
+
*/
|
|
20
24
|
export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
|
|
21
25
|
dependencies: [
|
|
22
26
|
FeatureFlagsPlugin,
|
|
@@ -17,6 +17,10 @@ export type FloatingToolbarPluginData = {
|
|
|
17
17
|
confirmDialogForItem?: number;
|
|
18
18
|
};
|
|
19
19
|
export type ForceFocusSelector = (selector: string | null) => (tr: Transaction) => Transaction;
|
|
20
|
+
/**
|
|
21
|
+
* Floating toolbar plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
22
|
+
* from `@atlaskit/editor-core`.
|
|
23
|
+
*/
|
|
20
24
|
export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
|
|
21
25
|
dependencies: [
|
|
22
26
|
FeatureFlagsPlugin,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Floating toolbar 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
|
"singleton": true,
|
|
13
13
|
"releaseModel": "continuous"
|
|
14
14
|
},
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
".": "./src/index.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/editor-common": "^74.
|
|
27
|
-
"@atlaskit/editor-plugin-context-panel": "^0.
|
|
28
|
-
"@atlaskit/editor-plugin-decorations": "^0.
|
|
29
|
-
"@atlaskit/editor-plugin-editor-disabled": "^0.
|
|
30
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
26
|
+
"@atlaskit/editor-common": "^74.56.0",
|
|
27
|
+
"@atlaskit/editor-plugin-context-panel": "^0.2.0",
|
|
28
|
+
"@atlaskit/editor-plugin-decorations": "^0.2.0",
|
|
29
|
+
"@atlaskit/editor-plugin-editor-disabled": "^0.2.0",
|
|
30
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
31
31
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0"
|
|
33
33
|
},
|
package/report.api.md
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/editor-plugin-floating-toolbar"
|
|
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 { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
8
|
+
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
9
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
10
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
11
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
12
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
13
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
14
|
+
import type { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
15
|
+
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
16
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
17
|
+
|
|
18
|
+
// @public (undocumented)
|
|
19
|
+
export type ConfigWithNodeInfo = {
|
|
20
|
+
config: FloatingToolbarConfig | undefined;
|
|
21
|
+
pos: number;
|
|
22
|
+
node: Node_2;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// @public
|
|
26
|
+
export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
|
|
27
|
+
dependencies: [
|
|
28
|
+
FeatureFlagsPlugin,
|
|
29
|
+
DecorationsPlugin,
|
|
30
|
+
OptionalPlugin<ContextPanelPlugin>,
|
|
31
|
+
EditorDisabledPlugin
|
|
32
|
+
];
|
|
33
|
+
actions: {
|
|
34
|
+
forceFocusSelector: ForceFocusSelector;
|
|
35
|
+
};
|
|
36
|
+
sharedState: undefined | {
|
|
37
|
+
configWithNodeInfo: ConfigWithNodeInfo | undefined;
|
|
38
|
+
floatingToolbarData: FloatingToolbarPluginData | undefined;
|
|
39
|
+
};
|
|
40
|
+
}>;
|
|
41
|
+
|
|
42
|
+
// @public (undocumented)
|
|
43
|
+
export type FloatingToolbarPluginData = {
|
|
44
|
+
confirmDialogForItem?: number;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// @public (undocumented)
|
|
48
|
+
export type FloatingToolbarPluginState = {
|
|
49
|
+
getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// @public (undocumented)
|
|
53
|
+
export type ForceFocusSelector = (selector: null | string) => (tr: Transaction) => Transaction;
|
|
54
|
+
|
|
55
|
+
// (No @packageDocumentation comment for this package)
|
|
56
|
+
|
|
57
|
+
```
|