@atlaskit/editor-plugin-floating-toolbar 0.2.2 → 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 +16 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +19 -4
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +19 -4
- package/package.json +6 -10
- package/report.api.md +82 -0
- package/tmp/api-report-tmp.d.ts +51 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`31405891e32`](https://bitbucket.org/atlassian/atlassian-frontend/commits/31405891e32) - Extract editor disabled plugin as separate package.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 0.2.3
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) - [ED-19233] Import prosemirror libraries from internal facade package
|
|
18
|
+
|
|
3
19
|
## 0.2.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { FloatingToolbarPlugin, ForceFocusSelector } from './types';
|
|
1
|
+
export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, } from './types';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { FloatingToolbarConfig, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
2
|
import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
4
3
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
4
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
5
5
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
6
|
-
|
|
6
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
+
export type ConfigWithNodeInfo = {
|
|
9
|
+
config: FloatingToolbarConfig | undefined;
|
|
10
|
+
pos: number;
|
|
11
|
+
node: Node;
|
|
12
|
+
};
|
|
13
|
+
export type FloatingToolbarPluginData = {
|
|
14
|
+
confirmDialogForItem?: number;
|
|
15
|
+
};
|
|
16
|
+
export type ForceFocusSelector = (selector: string | null) => (tr: Transaction) => Transaction;
|
|
7
17
|
export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
|
|
8
18
|
dependencies: [
|
|
9
19
|
typeof featureFlagsPlugin,
|
|
10
20
|
typeof decorationsPlugin,
|
|
11
|
-
OptionalPlugin<typeof contextPanelPlugin
|
|
21
|
+
OptionalPlugin<typeof contextPanelPlugin>,
|
|
22
|
+
EditorDisabledPlugin
|
|
12
23
|
];
|
|
13
24
|
actions: {
|
|
14
25
|
forceFocusSelector: ForceFocusSelector;
|
|
15
26
|
};
|
|
27
|
+
sharedState: {
|
|
28
|
+
configWithNodeInfo: ConfigWithNodeInfo | undefined;
|
|
29
|
+
floatingToolbarData: FloatingToolbarPluginData | undefined;
|
|
30
|
+
} | undefined;
|
|
16
31
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { FloatingToolbarPlugin, ForceFocusSelector } from './types';
|
|
1
|
+
export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, } from './types';
|
|
@@ -1,16 +1,31 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { FloatingToolbarConfig, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
2
|
import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
4
3
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
4
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
5
5
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
6
|
-
|
|
6
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
+
export type ConfigWithNodeInfo = {
|
|
9
|
+
config: FloatingToolbarConfig | undefined;
|
|
10
|
+
pos: number;
|
|
11
|
+
node: Node;
|
|
12
|
+
};
|
|
13
|
+
export type FloatingToolbarPluginData = {
|
|
14
|
+
confirmDialogForItem?: number;
|
|
15
|
+
};
|
|
16
|
+
export type ForceFocusSelector = (selector: string | null) => (tr: Transaction) => Transaction;
|
|
7
17
|
export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
|
|
8
18
|
dependencies: [
|
|
9
19
|
typeof featureFlagsPlugin,
|
|
10
20
|
typeof decorationsPlugin,
|
|
11
|
-
OptionalPlugin<typeof contextPanelPlugin
|
|
21
|
+
OptionalPlugin<typeof contextPanelPlugin>,
|
|
22
|
+
EditorDisabledPlugin
|
|
12
23
|
];
|
|
13
24
|
actions: {
|
|
14
25
|
forceFocusSelector: ForceFocusSelector;
|
|
15
26
|
};
|
|
27
|
+
sharedState: {
|
|
28
|
+
configWithNodeInfo: ConfigWithNodeInfo | undefined;
|
|
29
|
+
floatingToolbarData: FloatingToolbarPluginData | undefined;
|
|
30
|
+
} | undefined;
|
|
16
31
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor",
|
|
12
12
|
"singleton": true,
|
|
13
|
-
"releaseModel": "
|
|
13
|
+
"releaseModel": "continuous"
|
|
14
14
|
},
|
|
15
15
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
16
16
|
"main": "dist/cjs/index.js",
|
|
@@ -23,23 +23,19 @@
|
|
|
23
23
|
".": "./src/index.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/editor-common": "^74.
|
|
26
|
+
"@atlaskit/editor-common": "^74.34.0",
|
|
27
27
|
"@atlaskit/editor-plugin-context-panel": "^0.1.0",
|
|
28
28
|
"@atlaskit/editor-plugin-decorations": "^0.1.0",
|
|
29
|
+
"@atlaskit/editor-plugin-editor-disabled": "^0.1.0",
|
|
29
30
|
"@atlaskit/editor-plugin-feature-flags": "^0.1.0",
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
31
|
+
"@atlaskit/editor-prosemirror": "1.0.2",
|
|
32
|
+
"@babel/runtime": "^7.0.0"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
35
|
"react": "^16.8.0"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@atlaskit/docs": "*",
|
|
38
|
-
"@atlaskit/editor-core": "^185.3.0",
|
|
39
|
-
"@atlaskit/editor-test-helpers": "^18.7.0",
|
|
40
|
-
"@atlaskit/ssr": "*",
|
|
41
38
|
"@atlaskit/visual-regression": "*",
|
|
42
|
-
"@atlaskit/webdriver-runner": "*",
|
|
43
39
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
44
40
|
"@testing-library/react": "^12.1.5",
|
|
45
41
|
"react-dom": "^16.8.0",
|
package/report.api.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<!-- API Report Version: 2.3 -->
|
|
2
|
+
|
|
3
|
+
## API Report File for "@atlaskit/editor-plugin-floating-toolbar"
|
|
4
|
+
|
|
5
|
+
> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
|
|
6
|
+
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
|
+
|
|
8
|
+
### Table of contents
|
|
9
|
+
|
|
10
|
+
- [Main Entry Types](#main-entry-types)
|
|
11
|
+
- [Peer Dependencies](#peer-dependencies)
|
|
12
|
+
|
|
13
|
+
### Main Entry Types
|
|
14
|
+
|
|
15
|
+
<!--SECTION START: Main Entry Types-->
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
19
|
+
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
20
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
21
|
+
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
22
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
23
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
24
|
+
import type { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
25
|
+
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
26
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
27
|
+
|
|
28
|
+
// @public (undocumented)
|
|
29
|
+
export type ConfigWithNodeInfo = {
|
|
30
|
+
config: FloatingToolbarConfig | undefined;
|
|
31
|
+
pos: number;
|
|
32
|
+
node: Node_2;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// @public (undocumented)
|
|
36
|
+
export type FloatingToolbarPlugin = NextEditorPlugin<
|
|
37
|
+
'floatingToolbar',
|
|
38
|
+
{
|
|
39
|
+
dependencies: [
|
|
40
|
+
typeof featureFlagsPlugin,
|
|
41
|
+
typeof decorationsPlugin,
|
|
42
|
+
OptionalPlugin<typeof contextPanelPlugin>,
|
|
43
|
+
EditorDisabledPlugin,
|
|
44
|
+
];
|
|
45
|
+
actions: {
|
|
46
|
+
forceFocusSelector: ForceFocusSelector;
|
|
47
|
+
};
|
|
48
|
+
sharedState:
|
|
49
|
+
| undefined
|
|
50
|
+
| {
|
|
51
|
+
configWithNodeInfo: ConfigWithNodeInfo | undefined;
|
|
52
|
+
floatingToolbarData: FloatingToolbarPluginData | undefined;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
>;
|
|
56
|
+
|
|
57
|
+
// @public (undocumented)
|
|
58
|
+
export type FloatingToolbarPluginData = {
|
|
59
|
+
confirmDialogForItem?: number;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
// @public (undocumented)
|
|
63
|
+
export type ForceFocusSelector = (
|
|
64
|
+
selector: null | string,
|
|
65
|
+
) => (tr: Transaction) => Transaction;
|
|
66
|
+
|
|
67
|
+
// (No @packageDocumentation comment for this package)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
<!--SECTION END: Main Entry Types-->
|
|
71
|
+
|
|
72
|
+
### Peer Dependencies
|
|
73
|
+
|
|
74
|
+
<!--SECTION START: Peer Dependencies-->
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"react": "^16.8.0"
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
<!--SECTION END: Peer Dependencies-->
|
|
@@ -0,0 +1,51 @@
|
|
|
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 featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
11
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
12
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
13
|
+
import type { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
14
|
+
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
15
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
16
|
+
|
|
17
|
+
// @public (undocumented)
|
|
18
|
+
export type ConfigWithNodeInfo = {
|
|
19
|
+
config: FloatingToolbarConfig | undefined;
|
|
20
|
+
pos: number;
|
|
21
|
+
node: Node_2;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// @public (undocumented)
|
|
25
|
+
export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
|
|
26
|
+
dependencies: [
|
|
27
|
+
typeof featureFlagsPlugin,
|
|
28
|
+
typeof decorationsPlugin,
|
|
29
|
+
OptionalPlugin<typeof contextPanelPlugin>,
|
|
30
|
+
EditorDisabledPlugin
|
|
31
|
+
];
|
|
32
|
+
actions: {
|
|
33
|
+
forceFocusSelector: ForceFocusSelector;
|
|
34
|
+
};
|
|
35
|
+
sharedState: undefined | {
|
|
36
|
+
configWithNodeInfo: ConfigWithNodeInfo | undefined;
|
|
37
|
+
floatingToolbarData: FloatingToolbarPluginData | undefined;
|
|
38
|
+
};
|
|
39
|
+
}>;
|
|
40
|
+
|
|
41
|
+
// @public (undocumented)
|
|
42
|
+
export type FloatingToolbarPluginData = {
|
|
43
|
+
confirmDialogForItem?: number;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// @public (undocumented)
|
|
47
|
+
export type ForceFocusSelector = (selector: null | string) => (tr: Transaction) => Transaction;
|
|
48
|
+
|
|
49
|
+
// (No @packageDocumentation comment for this package)
|
|
50
|
+
|
|
51
|
+
```
|