@atlaskit/editor-plugin-floating-toolbar 0.3.0 → 0.3.2

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`3413f770f2b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3413f770f2b) - Moving references to floating-toolbar types to `editor-common`
14
+
3
15
  ## 0.3.0
4
16
 
5
17
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1 +1 @@
1
- export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, } from './types';
1
+ export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, FloatingToolbarPluginState, } from './types';
@@ -4,12 +4,15 @@ import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
4
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';
7
+ import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
8
8
  export type ConfigWithNodeInfo = {
9
9
  config: FloatingToolbarConfig | undefined;
10
10
  pos: number;
11
11
  node: Node;
12
12
  };
13
+ export type FloatingToolbarPluginState = {
14
+ getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
15
+ };
13
16
  export type FloatingToolbarPluginData = {
14
17
  confirmDialogForItem?: number;
15
18
  };
@@ -1 +1 @@
1
- export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, } from './types';
1
+ export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, FloatingToolbarPluginState, } from './types';
@@ -4,12 +4,15 @@ import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
4
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';
7
+ import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
8
8
  export type ConfigWithNodeInfo = {
9
9
  config: FloatingToolbarConfig | undefined;
10
10
  pos: number;
11
11
  node: Node;
12
12
  };
13
+ export type FloatingToolbarPluginState = {
14
+ getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
15
+ };
13
16
  export type FloatingToolbarPluginData = {
14
17
  confirmDialogForItem?: number;
15
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,12 +23,12 @@
23
23
  ".": "./src/index.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/editor-common": "^74.34.0",
26
+ "@atlaskit/editor-common": "^74.42.0",
27
27
  "@atlaskit/editor-plugin-context-panel": "^0.1.0",
28
28
  "@atlaskit/editor-plugin-decorations": "^0.1.0",
29
29
  "@atlaskit/editor-plugin-editor-disabled": "^0.1.0",
30
30
  "@atlaskit/editor-plugin-feature-flags": "^0.1.0",
31
- "@atlaskit/editor-prosemirror": "1.0.2",
31
+ "@atlaskit/editor-prosemirror": "1.1.0",
32
32
  "@babel/runtime": "^7.0.0"
33
33
  },
34
34
  "peerDependencies": {
package/report.api.md CHANGED
@@ -18,6 +18,7 @@
18
18
  import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
19
19
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
20
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';
22
23
  import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
23
24
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
@@ -59,6 +60,13 @@ export type FloatingToolbarPluginData = {
59
60
  confirmDialogForItem?: number;
60
61
  };
61
62
 
63
+ // @public (undocumented)
64
+ export type FloatingToolbarPluginState = {
65
+ getConfigWithNodeInfo: (
66
+ state: EditorState,
67
+ ) => ConfigWithNodeInfo | null | undefined;
68
+ };
69
+
62
70
  // @public (undocumented)
63
71
  export type ForceFocusSelector = (
64
72
  selector: null | string,
@@ -7,6 +7,7 @@
7
7
  import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
8
8
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
9
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';
11
12
  import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
12
13
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
@@ -43,6 +44,11 @@ export type FloatingToolbarPluginData = {
43
44
  confirmDialogForItem?: number;
44
45
  };
45
46
 
47
+ // @public (undocumented)
48
+ export type FloatingToolbarPluginState = {
49
+ getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
50
+ };
51
+
46
52
  // @public (undocumented)
47
53
  export type ForceFocusSelector = (selector: null | string) => (tr: Transaction) => Transaction;
48
54