@atlaskit/editor-plugin-selection-toolbar 4.3.9 → 4.3.11

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,19 @@
1
1
  # @atlaskit/editor-plugin-selection-toolbar
2
2
 
3
+ ## 4.3.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.3.10
10
+
11
+ ### Patch Changes
12
+
13
+ - [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
14
+ Sorted type and interface props to improve Atlaskit docs
15
+ - Updated dependencies
16
+
3
17
  ## 4.3.9
4
18
 
5
19
  ### Patch Changes
@@ -7,8 +7,8 @@ import type { PopupPosition as Position } from '@atlaskit/editor-common/ui';
7
7
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
8
  export declare const calculateToolbarPositionTrackHead: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
9
9
  export type CoordsAtPos = {
10
- top: number;
11
10
  bottom: number;
12
11
  left: number;
13
12
  right: number;
13
+ top: number;
14
14
  };
@@ -8,9 +8,9 @@ export declare const updateToolbarDocking: ({ toolbarDocking }: {
8
8
  toolbarDocking: ToolbarDocking;
9
9
  }) => EditorCommand;
10
10
  export declare const setToolbarDocking: ({ toolbarDocking, userPreferencesProvider, editorAnalyticsApi, }: {
11
+ editorAnalyticsApi?: EditorAnalyticsAPI | undefined;
11
12
  toolbarDocking: ToolbarDocking;
12
13
  userPreferencesProvider?: UserPreferencesProvider;
13
- editorAnalyticsApi?: EditorAnalyticsAPI | undefined;
14
14
  }) => EditorCommand;
15
15
  export declare const forceToolbarDockingWithoutAnalytics: ({ toolbarDocking, userPreferencesProvider, }: {
16
16
  toolbarDocking: ToolbarDocking;
@@ -9,16 +9,23 @@ import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
9
9
  import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
10
10
  import type { ToolbarDocking } from './types';
11
11
  export type SelectionToolbarPluginOptions = {
12
+ contextualFormattingEnabled?: boolean;
12
13
  /** @defaults false */
13
14
  preferenceToolbarAboveSelection?: boolean;
14
15
  userPreferencesProvider?: UserPreferencesProvider;
15
- contextualFormattingEnabled?: boolean;
16
16
  };
17
17
  export type SelectionToolbarPlugin = NextEditorPlugin<'selectionToolbar', {
18
- sharedState: {
19
- toolbarDocking: ToolbarDocking;
18
+ actions?: {
19
+ forceToolbarDockingWithoutAnalytics?: (toolbarDocking: ToolbarDocking) => boolean;
20
+ refreshToolbarDocking?: () => boolean;
21
+ /**
22
+ * @private
23
+ * @deprecated use userPreference API to set toolbar docking instead
24
+ */
25
+ setToolbarDocking?: (toolbarDocking: ToolbarDocking) => boolean;
26
+ suppressToolbar?: () => boolean;
27
+ unsuppressToolbar?: () => boolean;
20
28
  };
21
- pluginConfiguration: SelectionToolbarPluginOptions;
22
29
  dependencies: [
23
30
  OptionalPlugin<EditorViewModePlugin>,
24
31
  OptionalPlugin<PrimaryToolbarPlugin>,
@@ -29,15 +36,8 @@ export type SelectionToolbarPlugin = NextEditorPlugin<'selectionToolbar', {
29
36
  OptionalPlugin<ToolbarPlugin>,
30
37
  OptionalPlugin<UserIntentPlugin>
31
38
  ];
32
- actions?: {
33
- suppressToolbar?: () => boolean;
34
- unsuppressToolbar?: () => boolean;
35
- /**
36
- * @private
37
- * @deprecated use userPreference API to set toolbar docking instead
38
- */
39
- setToolbarDocking?: (toolbarDocking: ToolbarDocking) => boolean;
40
- forceToolbarDockingWithoutAnalytics?: (toolbarDocking: ToolbarDocking) => boolean;
41
- refreshToolbarDocking?: () => boolean;
39
+ pluginConfiguration: SelectionToolbarPluginOptions;
40
+ sharedState: {
41
+ toolbarDocking: ToolbarDocking;
42
42
  };
43
43
  }>;
@@ -9,8 +9,8 @@ import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
9
9
  import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
10
10
  type OverflowToobarConfigOptions = {
11
11
  api?: ExtractInjectionAPI<SelectionToolbarPlugin>;
12
- toolbarDocking?: 'top' | 'none';
13
12
  intl: IntlShape;
13
+ toolbarDocking?: 'top' | 'none';
14
14
  };
15
15
  export declare const getOverflowPrimaryToolbarConfig: ({ api, intl, }: OverflowToobarConfigOptions) => {
16
16
  items: MenuItem[];
@@ -4,8 +4,8 @@ import type { Command, FloatingToolbarItem } from '@atlaskit/editor-common/types
4
4
  import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
5
5
  type PinToobarConfig = {
6
6
  api?: ExtractInjectionAPI<SelectionToolbarPlugin>;
7
- toolbarDocking?: 'top' | 'none';
8
7
  intl: IntlShape;
8
+ toolbarDocking?: 'top' | 'none';
9
9
  };
10
10
  export declare const getPinOptionToolbarConfig: ({ api, toolbarDocking, intl, }: PinToobarConfig) => FloatingToolbarItem<Command>[];
11
11
  export {};
@@ -7,8 +7,8 @@ import type { PopupPosition as Position } from '@atlaskit/editor-common/ui';
7
7
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
8
  export declare const calculateToolbarPositionTrackHead: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
9
9
  export type CoordsAtPos = {
10
- top: number;
11
10
  bottom: number;
12
11
  left: number;
13
12
  right: number;
13
+ top: number;
14
14
  };
@@ -8,9 +8,9 @@ export declare const updateToolbarDocking: ({ toolbarDocking }: {
8
8
  toolbarDocking: ToolbarDocking;
9
9
  }) => EditorCommand;
10
10
  export declare const setToolbarDocking: ({ toolbarDocking, userPreferencesProvider, editorAnalyticsApi, }: {
11
+ editorAnalyticsApi?: EditorAnalyticsAPI | undefined;
11
12
  toolbarDocking: ToolbarDocking;
12
13
  userPreferencesProvider?: UserPreferencesProvider;
13
- editorAnalyticsApi?: EditorAnalyticsAPI | undefined;
14
14
  }) => EditorCommand;
15
15
  export declare const forceToolbarDockingWithoutAnalytics: ({ toolbarDocking, userPreferencesProvider, }: {
16
16
  toolbarDocking: ToolbarDocking;
@@ -9,16 +9,23 @@ import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
9
9
  import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
10
10
  import type { ToolbarDocking } from './types';
11
11
  export type SelectionToolbarPluginOptions = {
12
+ contextualFormattingEnabled?: boolean;
12
13
  /** @defaults false */
13
14
  preferenceToolbarAboveSelection?: boolean;
14
15
  userPreferencesProvider?: UserPreferencesProvider;
15
- contextualFormattingEnabled?: boolean;
16
16
  };
17
17
  export type SelectionToolbarPlugin = NextEditorPlugin<'selectionToolbar', {
18
- sharedState: {
19
- toolbarDocking: ToolbarDocking;
18
+ actions?: {
19
+ forceToolbarDockingWithoutAnalytics?: (toolbarDocking: ToolbarDocking) => boolean;
20
+ refreshToolbarDocking?: () => boolean;
21
+ /**
22
+ * @private
23
+ * @deprecated use userPreference API to set toolbar docking instead
24
+ */
25
+ setToolbarDocking?: (toolbarDocking: ToolbarDocking) => boolean;
26
+ suppressToolbar?: () => boolean;
27
+ unsuppressToolbar?: () => boolean;
20
28
  };
21
- pluginConfiguration: SelectionToolbarPluginOptions;
22
29
  dependencies: [
23
30
  OptionalPlugin<EditorViewModePlugin>,
24
31
  OptionalPlugin<PrimaryToolbarPlugin>,
@@ -29,15 +36,8 @@ export type SelectionToolbarPlugin = NextEditorPlugin<'selectionToolbar', {
29
36
  OptionalPlugin<ToolbarPlugin>,
30
37
  OptionalPlugin<UserIntentPlugin>
31
38
  ];
32
- actions?: {
33
- suppressToolbar?: () => boolean;
34
- unsuppressToolbar?: () => boolean;
35
- /**
36
- * @private
37
- * @deprecated use userPreference API to set toolbar docking instead
38
- */
39
- setToolbarDocking?: (toolbarDocking: ToolbarDocking) => boolean;
40
- forceToolbarDockingWithoutAnalytics?: (toolbarDocking: ToolbarDocking) => boolean;
41
- refreshToolbarDocking?: () => boolean;
39
+ pluginConfiguration: SelectionToolbarPluginOptions;
40
+ sharedState: {
41
+ toolbarDocking: ToolbarDocking;
42
42
  };
43
43
  }>;
@@ -9,8 +9,8 @@ import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
9
9
  import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
10
10
  type OverflowToobarConfigOptions = {
11
11
  api?: ExtractInjectionAPI<SelectionToolbarPlugin>;
12
- toolbarDocking?: 'top' | 'none';
13
12
  intl: IntlShape;
13
+ toolbarDocking?: 'top' | 'none';
14
14
  };
15
15
  export declare const getOverflowPrimaryToolbarConfig: ({ api, intl, }: OverflowToobarConfigOptions) => {
16
16
  items: MenuItem[];
@@ -4,8 +4,8 @@ import type { Command, FloatingToolbarItem } from '@atlaskit/editor-common/types
4
4
  import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
5
5
  type PinToobarConfig = {
6
6
  api?: ExtractInjectionAPI<SelectionToolbarPlugin>;
7
- toolbarDocking?: 'top' | 'none';
8
7
  intl: IntlShape;
8
+ toolbarDocking?: 'top' | 'none';
9
9
  };
10
10
  export declare const getPinOptionToolbarConfig: ({ api, toolbarDocking, intl, }: PinToobarConfig) => FloatingToolbarItem<Command>[];
11
11
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-toolbar",
3
- "version": "4.3.9",
3
+ "version": "4.3.11",
4
4
  "description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -28,9 +28,6 @@
28
28
  "*.compiled.css"
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
- "af:exports": {
32
- ".": "./src/index.ts"
33
- },
34
31
  "dependencies": {
35
32
  "@atlaskit/css": "^0.12.0",
36
33
  "@atlaskit/editor-plugin-analytics": "^3.0.0",
@@ -42,19 +39,19 @@
42
39
  "@atlaskit/editor-plugin-user-intent": "^1.1.0",
43
40
  "@atlaskit/editor-plugin-user-preferences": "^1.2.0",
44
41
  "@atlaskit/editor-prosemirror": "7.0.0",
45
- "@atlaskit/editor-toolbar": "^0.3.0",
42
+ "@atlaskit/editor-toolbar": "^0.4.0",
46
43
  "@atlaskit/editor-toolbar-model": "^0.1.0",
47
- "@atlaskit/icon": "^28.0.0",
48
- "@atlaskit/icon-lab": "^5.6.0",
44
+ "@atlaskit/icon": "^28.1.0",
45
+ "@atlaskit/icon-lab": "^5.7.0",
49
46
  "@atlaskit/menu": "^8.3.0",
50
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
51
- "@atlaskit/tmp-editor-statsig": "^11.5.0",
52
- "@atlaskit/tokens": "^6.0.0",
48
+ "@atlaskit/tmp-editor-statsig": "^11.8.0",
49
+ "@atlaskit/tokens": "^6.1.0",
53
50
  "@babel/runtime": "^7.0.0",
54
51
  "bind-event-listener": "^3.0.0"
55
52
  },
56
53
  "peerDependencies": {
57
- "@atlaskit/editor-common": "^107.28.0",
54
+ "@atlaskit/editor-common": "^107.32.0",
58
55
  "react": "^18.2.0",
59
56
  "react-dom": "^18.2.0",
60
57
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -62,7 +59,6 @@
62
59
  "devDependencies": {
63
60
  "@af/visual-regression": "workspace:^",
64
61
  "@atlaskit/ssr": "workspace:^",
65
- "@atlaskit/visual-regression": "workspace:^",
66
62
  "@testing-library/react": "^13.4.0",
67
63
  "wait-for-expect": "^1.2.0"
68
64
  },