@atlaskit/editor-plugin-floating-toolbar 0.2.0 → 0.2.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 CHANGED
@@ -1 +1,8 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
+
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`87366c84531`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87366c84531) - Extract context panel plugin to new package @atlaskit/editor-plugin-context-panel
8
+ - Updated dependencies
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,10 +1,15 @@
1
1
  import type { EditorView } from 'prosemirror-view';
2
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
+ import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
3
4
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
4
5
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
5
6
  export type ForceFocusSelector = (selector: string | null, view?: EditorView) => void;
6
7
  export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
7
- dependencies: [typeof featureFlagsPlugin, typeof decorationsPlugin];
8
+ dependencies: [
9
+ typeof featureFlagsPlugin,
10
+ typeof decorationsPlugin,
11
+ OptionalPlugin<typeof contextPanelPlugin>
12
+ ];
8
13
  actions: {
9
14
  forceFocusSelector: ForceFocusSelector;
10
15
  };
@@ -1,12 +1,14 @@
1
1
  import type { EditorView } from 'prosemirror-view';
2
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
+ import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
3
4
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
4
5
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
5
6
  export type ForceFocusSelector = (selector: string | null, view?: EditorView) => void;
6
7
  export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
7
8
  dependencies: [
8
9
  typeof featureFlagsPlugin,
9
- typeof decorationsPlugin
10
+ typeof decorationsPlugin,
11
+ OptionalPlugin<typeof contextPanelPlugin>
10
12
  ];
11
13
  actions: {
12
14
  forceFocusSelector: ForceFocusSelector;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,6 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@atlaskit/editor-common": "^74.2.0",
26
+ "@atlaskit/editor-plugin-context-panel": "^0.1.0",
26
27
  "@atlaskit/editor-plugin-decorations": "^0.1.0",
27
28
  "@atlaskit/editor-plugin-feature-flags": "^0.1.0",
28
29
  "@babel/runtime": "^7.0.0",
@@ -34,7 +35,7 @@
34
35
  "devDependencies": {
35
36
  "@atlaskit/docs": "*",
36
37
  "@atlaskit/editor-core": "^185.1.6",
37
- "@atlaskit/editor-test-helpers": "^18.5.0",
38
+ "@atlaskit/editor-test-helpers": "^18.7.0",
38
39
  "@atlaskit/ssr": "*",
39
40
  "@atlaskit/visual-regression": "*",
40
41
  "@atlaskit/webdriver-runner": "*",