@atlaskit/editor-plugin-toolbar 0.4.1 → 0.4.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,13 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 0.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+ - Updated dependencies
10
+
3
11
  ## 0.4.1
4
12
 
5
13
  ### Patch Changes
@@ -7,9 +7,9 @@ import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-prefere
7
7
  import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
8
8
  import type { ToolbarPluginOptions } from './types';
9
9
  export type ToolbarPlugin = NextEditorPlugin<'toolbar', {
10
- pluginConfiguration?: ToolbarPluginOptions;
11
- sharedState: {
12
- shouldShowToolbar: boolean;
10
+ actions: {
11
+ getComponents: () => Array<RegisterComponent>;
12
+ registerComponents: (toolbarComponents: Array<RegisterComponent>) => void;
13
13
  };
14
14
  dependencies: [
15
15
  OptionalPlugin<UserIntentPlugin>,
@@ -18,8 +18,8 @@ export type ToolbarPlugin = NextEditorPlugin<'toolbar', {
18
18
  OptionalPlugin<EditorViewModePlugin>,
19
19
  OptionalPlugin<ConnectivityPlugin>
20
20
  ];
21
- actions: {
22
- registerComponents: (toolbarComponents: Array<RegisterComponent>) => void;
23
- getComponents: () => Array<RegisterComponent>;
21
+ pluginConfiguration?: ToolbarPluginOptions;
22
+ sharedState: {
23
+ shouldShowToolbar: boolean;
24
24
  };
25
25
  }>;
@@ -3,13 +3,13 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
4
4
  import type { ToolbarPlugin } from '../toolbarPluginType';
5
5
  type SectionProps = {
6
+ api?: ExtractInjectionAPI<ToolbarPlugin>;
6
7
  children: React.ReactNode;
8
+ disableSelectionToolbar?: boolean;
9
+ isSharedSection?: boolean;
7
10
  parents: ToolbarComponentTypes;
8
- api?: ExtractInjectionAPI<ToolbarPlugin>;
9
- testId?: string;
10
11
  showSeparatorInFullPagePrimaryToolbar?: boolean;
11
- isSharedSection?: boolean;
12
- disableSelectionToolbar?: boolean;
12
+ testId?: string;
13
13
  };
14
14
  export declare const Section: ({ children, parents, api, testId, showSeparatorInFullPagePrimaryToolbar, isSharedSection, disableSelectionToolbar, }: SectionProps) => React.JSX.Element | null;
15
15
  export {};
@@ -3,8 +3,8 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { ToolbarPlugin } from '../../toolbarPluginType';
5
5
  type SelectionToolbarProps = {
6
- editorView: EditorView;
7
6
  api?: ExtractInjectionAPI<ToolbarPlugin>;
7
+ editorView: EditorView;
8
8
  mountPoint: HTMLElement | undefined;
9
9
  };
10
10
  export declare const SelectionToolbar: ({ api, editorView, mountPoint }: SelectionToolbarProps) => React.JSX.Element | null;
@@ -7,9 +7,9 @@ import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-prefere
7
7
  import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
8
8
  import type { ToolbarPluginOptions } from './types';
9
9
  export type ToolbarPlugin = NextEditorPlugin<'toolbar', {
10
- pluginConfiguration?: ToolbarPluginOptions;
11
- sharedState: {
12
- shouldShowToolbar: boolean;
10
+ actions: {
11
+ getComponents: () => Array<RegisterComponent>;
12
+ registerComponents: (toolbarComponents: Array<RegisterComponent>) => void;
13
13
  };
14
14
  dependencies: [
15
15
  OptionalPlugin<UserIntentPlugin>,
@@ -18,8 +18,8 @@ export type ToolbarPlugin = NextEditorPlugin<'toolbar', {
18
18
  OptionalPlugin<EditorViewModePlugin>,
19
19
  OptionalPlugin<ConnectivityPlugin>
20
20
  ];
21
- actions: {
22
- registerComponents: (toolbarComponents: Array<RegisterComponent>) => void;
23
- getComponents: () => Array<RegisterComponent>;
21
+ pluginConfiguration?: ToolbarPluginOptions;
22
+ sharedState: {
23
+ shouldShowToolbar: boolean;
24
24
  };
25
25
  }>;
@@ -3,13 +3,13 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
4
4
  import type { ToolbarPlugin } from '../toolbarPluginType';
5
5
  type SectionProps = {
6
+ api?: ExtractInjectionAPI<ToolbarPlugin>;
6
7
  children: React.ReactNode;
8
+ disableSelectionToolbar?: boolean;
9
+ isSharedSection?: boolean;
7
10
  parents: ToolbarComponentTypes;
8
- api?: ExtractInjectionAPI<ToolbarPlugin>;
9
- testId?: string;
10
11
  showSeparatorInFullPagePrimaryToolbar?: boolean;
11
- isSharedSection?: boolean;
12
- disableSelectionToolbar?: boolean;
12
+ testId?: string;
13
13
  };
14
14
  export declare const Section: ({ children, parents, api, testId, showSeparatorInFullPagePrimaryToolbar, isSharedSection, disableSelectionToolbar, }: SectionProps) => React.JSX.Element | null;
15
15
  export {};
@@ -3,8 +3,8 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { ToolbarPlugin } from '../../toolbarPluginType';
5
5
  type SelectionToolbarProps = {
6
- editorView: EditorView;
7
6
  api?: ExtractInjectionAPI<ToolbarPlugin>;
7
+ editorView: EditorView;
8
8
  mountPoint: HTMLElement | undefined;
9
9
  };
10
10
  export declare const SelectionToolbar: ({ api, editorView, mountPoint }: SelectionToolbarProps) => React.JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",