@atlaskit/editor-plugin-primary-toolbar 3.1.2 → 3.2.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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-plugin-primary-toolbar
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#139139](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139139)
8
+ [`7f6b665d778dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f6b665d778dd) -
9
+ [https://product-fabric.atlassian.net/browse/ED-27499](ED-27499) - the new
10
+ `@atlassian/confluence-presets` package with Confluence `full-page` preset is created
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 3.1.2
4
17
 
5
18
  ### Patch Changes
@@ -1,2 +1,2 @@
1
1
  export { primaryToolbarPlugin } from './primaryToolbarPlugin';
2
- export type { PrimaryToolbarPlugin, PrimaryToolbarPluginState, ToolbarElementNames, } from './primaryToolbarPluginType';
2
+ export type { PrimaryToolbarPlugin, PrimaryToolbarPluginOptions, PrimaryToolbarPluginState, ToolbarElementNames, } from './primaryToolbarPluginType';
@@ -1,5 +1,8 @@
1
1
  import type { NextEditorPlugin, ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
+ export interface PrimaryToolbarPluginOptions {
4
+ contextualFormattingEnabled?: boolean;
5
+ }
3
6
  export type PrimaryToolbarPlugin = NextEditorPlugin<'primaryToolbar', {
4
7
  sharedState: PrimaryToolbarPluginState | undefined;
5
8
  actions: {
@@ -8,9 +11,7 @@ export type PrimaryToolbarPlugin = NextEditorPlugin<'primaryToolbar', {
8
11
  component: ToolbarUIComponentFactory;
9
12
  }) => void;
10
13
  };
11
- pluginConfiguration?: {
12
- contextualFormattingEnabled?: boolean;
13
- };
14
+ pluginConfiguration?: PrimaryToolbarPluginOptions;
14
15
  }>;
15
16
  export type ComponentRegistry = Map<string, ToolbarUIComponentFactory>;
16
17
  export type ToolbarElementNames = 'separator' | 'undoRedoPlugin' | 'blockType' | 'textFormatting' | 'alignment' | 'textColor' | 'highlight' | 'hyperlink' | 'toolbarListsIndentation' | 'insertBlock' | 'beforePrimaryToolbar' | 'avatarGroup' | 'findReplace' | 'aiExperience' | 'aiSimplified' | 'loom' | 'spellCheck' | 'overflowMenu';
@@ -1,2 +1,2 @@
1
1
  export { primaryToolbarPlugin } from './primaryToolbarPlugin';
2
- export type { PrimaryToolbarPlugin, PrimaryToolbarPluginState, ToolbarElementNames, } from './primaryToolbarPluginType';
2
+ export type { PrimaryToolbarPlugin, PrimaryToolbarPluginOptions, PrimaryToolbarPluginState, ToolbarElementNames, } from './primaryToolbarPluginType';
@@ -1,5 +1,8 @@
1
1
  import type { NextEditorPlugin, ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
+ export interface PrimaryToolbarPluginOptions {
4
+ contextualFormattingEnabled?: boolean;
5
+ }
3
6
  export type PrimaryToolbarPlugin = NextEditorPlugin<'primaryToolbar', {
4
7
  sharedState: PrimaryToolbarPluginState | undefined;
5
8
  actions: {
@@ -8,9 +11,7 @@ export type PrimaryToolbarPlugin = NextEditorPlugin<'primaryToolbar', {
8
11
  component: ToolbarUIComponentFactory;
9
12
  }) => void;
10
13
  };
11
- pluginConfiguration?: {
12
- contextualFormattingEnabled?: boolean;
13
- };
14
+ pluginConfiguration?: PrimaryToolbarPluginOptions;
14
15
  }>;
15
16
  export type ComponentRegistry = Map<string, ToolbarUIComponentFactory>;
16
17
  export type ToolbarElementNames = 'separator' | 'undoRedoPlugin' | 'blockType' | 'textFormatting' | 'alignment' | 'textColor' | 'highlight' | 'hyperlink' | 'toolbarListsIndentation' | 'insertBlock' | 'beforePrimaryToolbar' | 'avatarGroup' | 'findReplace' | 'aiExperience' | 'aiSimplified' | 'loom' | 'spellCheck' | 'overflowMenu';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-primary-toolbar",
3
- "version": "3.1.2",
3
+ "version": "3.2.0",
4
4
  "description": "Primary toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  ".": "./src/index.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@atlaskit/editor-common": "^103.1.0",
39
+ "@atlaskit/editor-common": "^103.4.0",
40
40
  "@atlaskit/editor-prosemirror": "7.0.0",
41
41
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
42
  "@atlaskit/tmp-editor-statsig": "^4.6.0",