@atlaskit/editor-plugin-floating-toolbar 0.2.3 → 0.3.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/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 +22 -4
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +22 -4
- package/package.json +3 -2
- package/report.api.md +32 -3
- package/tmp/api-report-tmp.d.ts +29 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3413f770f2b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3413f770f2b) - Moving references to floating-toolbar types to `editor-common`
|
|
8
|
+
|
|
9
|
+
## 0.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`31405891e32`](https://bitbucket.org/atlassian/atlassian-frontend/commits/31405891e32) - Extract editor disabled plugin as separate package.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 0.2.3
|
|
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, FloatingToolbarPluginState, } from './types';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,16 +1,34 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { FloatingToolbarConfig, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
3
3
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
4
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
4
5
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
5
|
-
import type {
|
|
6
|
-
|
|
6
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
+
export type ConfigWithNodeInfo = {
|
|
9
|
+
config: FloatingToolbarConfig | undefined;
|
|
10
|
+
pos: number;
|
|
11
|
+
node: Node;
|
|
12
|
+
};
|
|
13
|
+
export type FloatingToolbarPluginState = {
|
|
14
|
+
getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
|
|
15
|
+
};
|
|
16
|
+
export type FloatingToolbarPluginData = {
|
|
17
|
+
confirmDialogForItem?: number;
|
|
18
|
+
};
|
|
19
|
+
export type ForceFocusSelector = (selector: string | null) => (tr: Transaction) => Transaction;
|
|
7
20
|
export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
|
|
8
21
|
dependencies: [
|
|
9
22
|
typeof featureFlagsPlugin,
|
|
10
23
|
typeof decorationsPlugin,
|
|
11
|
-
OptionalPlugin<typeof contextPanelPlugin
|
|
24
|
+
OptionalPlugin<typeof contextPanelPlugin>,
|
|
25
|
+
EditorDisabledPlugin
|
|
12
26
|
];
|
|
13
27
|
actions: {
|
|
14
28
|
forceFocusSelector: ForceFocusSelector;
|
|
15
29
|
};
|
|
30
|
+
sharedState: {
|
|
31
|
+
configWithNodeInfo: ConfigWithNodeInfo | undefined;
|
|
32
|
+
floatingToolbarData: FloatingToolbarPluginData | undefined;
|
|
33
|
+
} | undefined;
|
|
16
34
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { FloatingToolbarPlugin, ForceFocusSelector } from './types';
|
|
1
|
+
export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, FloatingToolbarPluginState, } from './types';
|
|
@@ -1,16 +1,34 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { FloatingToolbarConfig, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
3
3
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
4
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
4
5
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
5
|
-
import type {
|
|
6
|
-
|
|
6
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
+
export type ConfigWithNodeInfo = {
|
|
9
|
+
config: FloatingToolbarConfig | undefined;
|
|
10
|
+
pos: number;
|
|
11
|
+
node: Node;
|
|
12
|
+
};
|
|
13
|
+
export type FloatingToolbarPluginState = {
|
|
14
|
+
getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
|
|
15
|
+
};
|
|
16
|
+
export type FloatingToolbarPluginData = {
|
|
17
|
+
confirmDialogForItem?: number;
|
|
18
|
+
};
|
|
19
|
+
export type ForceFocusSelector = (selector: string | null) => (tr: Transaction) => Transaction;
|
|
7
20
|
export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
|
|
8
21
|
dependencies: [
|
|
9
22
|
typeof featureFlagsPlugin,
|
|
10
23
|
typeof decorationsPlugin,
|
|
11
|
-
OptionalPlugin<typeof contextPanelPlugin
|
|
24
|
+
OptionalPlugin<typeof contextPanelPlugin>,
|
|
25
|
+
EditorDisabledPlugin
|
|
12
26
|
];
|
|
13
27
|
actions: {
|
|
14
28
|
forceFocusSelector: ForceFocusSelector;
|
|
15
29
|
};
|
|
30
|
+
sharedState: {
|
|
31
|
+
configWithNodeInfo: ConfigWithNodeInfo | undefined;
|
|
32
|
+
floatingToolbarData: FloatingToolbarPluginData | undefined;
|
|
33
|
+
} | undefined;
|
|
16
34
|
}>;
|
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.1",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,9 +23,10 @@
|
|
|
23
23
|
".": "./src/index.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/editor-common": "^74.
|
|
26
|
+
"@atlaskit/editor-common": "^74.41.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
|
"@atlaskit/editor-prosemirror": "1.0.2",
|
|
31
32
|
"@babel/runtime": "^7.0.0"
|
package/report.api.md
CHANGED
|
@@ -17,10 +17,21 @@
|
|
|
17
17
|
```ts
|
|
18
18
|
import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
19
19
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
20
|
-
import type {
|
|
20
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
21
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
21
22
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
23
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
22
24
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
25
|
+
import type { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
23
26
|
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
27
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
28
|
+
|
|
29
|
+
// @public (undocumented)
|
|
30
|
+
export type ConfigWithNodeInfo = {
|
|
31
|
+
config: FloatingToolbarConfig | undefined;
|
|
32
|
+
pos: number;
|
|
33
|
+
node: Node_2;
|
|
34
|
+
};
|
|
24
35
|
|
|
25
36
|
// @public (undocumented)
|
|
26
37
|
export type FloatingToolbarPlugin = NextEditorPlugin<
|
|
@@ -30,18 +41,36 @@ export type FloatingToolbarPlugin = NextEditorPlugin<
|
|
|
30
41
|
typeof featureFlagsPlugin,
|
|
31
42
|
typeof decorationsPlugin,
|
|
32
43
|
OptionalPlugin<typeof contextPanelPlugin>,
|
|
44
|
+
EditorDisabledPlugin,
|
|
33
45
|
];
|
|
34
46
|
actions: {
|
|
35
47
|
forceFocusSelector: ForceFocusSelector;
|
|
36
48
|
};
|
|
49
|
+
sharedState:
|
|
50
|
+
| undefined
|
|
51
|
+
| {
|
|
52
|
+
configWithNodeInfo: ConfigWithNodeInfo | undefined;
|
|
53
|
+
floatingToolbarData: FloatingToolbarPluginData | undefined;
|
|
54
|
+
};
|
|
37
55
|
}
|
|
38
56
|
>;
|
|
39
57
|
|
|
58
|
+
// @public (undocumented)
|
|
59
|
+
export type FloatingToolbarPluginData = {
|
|
60
|
+
confirmDialogForItem?: number;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// @public (undocumented)
|
|
64
|
+
export type FloatingToolbarPluginState = {
|
|
65
|
+
getConfigWithNodeInfo: (
|
|
66
|
+
state: EditorState,
|
|
67
|
+
) => ConfigWithNodeInfo | null | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
40
70
|
// @public (undocumented)
|
|
41
71
|
export type ForceFocusSelector = (
|
|
42
72
|
selector: null | string,
|
|
43
|
-
|
|
44
|
-
) => void;
|
|
73
|
+
) => (tr: Transaction) => Transaction;
|
|
45
74
|
|
|
46
75
|
// (No @packageDocumentation comment for this package)
|
|
47
76
|
```
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -6,25 +6,51 @@
|
|
|
6
6
|
|
|
7
7
|
import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
8
8
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
9
|
-
import type {
|
|
9
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
10
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
10
11
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
12
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
11
13
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
14
|
+
import type { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
12
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
|
+
};
|
|
13
24
|
|
|
14
25
|
// @public (undocumented)
|
|
15
26
|
export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
|
|
16
27
|
dependencies: [
|
|
17
28
|
typeof featureFlagsPlugin,
|
|
18
29
|
typeof decorationsPlugin,
|
|
19
|
-
OptionalPlugin<typeof contextPanelPlugin
|
|
30
|
+
OptionalPlugin<typeof contextPanelPlugin>,
|
|
31
|
+
EditorDisabledPlugin
|
|
20
32
|
];
|
|
21
33
|
actions: {
|
|
22
34
|
forceFocusSelector: ForceFocusSelector;
|
|
23
35
|
};
|
|
36
|
+
sharedState: undefined | {
|
|
37
|
+
configWithNodeInfo: ConfigWithNodeInfo | undefined;
|
|
38
|
+
floatingToolbarData: FloatingToolbarPluginData | undefined;
|
|
39
|
+
};
|
|
24
40
|
}>;
|
|
25
41
|
|
|
26
42
|
// @public (undocumented)
|
|
27
|
-
export type
|
|
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;
|
|
28
54
|
|
|
29
55
|
// (No @packageDocumentation comment for this package)
|
|
30
56
|
|