@atlaskit/editor-plugin-paste-options-toolbar 3.1.1 → 3.1.3

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-paste-options-toolbar
2
2
 
3
+ ## 3.1.3
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
+
11
+ ## 3.1.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 3.1.1
4
18
 
5
19
  ### Patch Changes
@@ -9,15 +9,15 @@ export declare enum PastePluginActionTypes {
9
9
  CHANGE_FORMAT = "CHANGE_FORMAT"
10
10
  }
11
11
  export interface ShowPasteOptions {
12
- type: PastePluginActionTypes.SHOW_PASTE_OPTIONS;
13
12
  data: {
14
- plaintext: string;
15
- selectedOption: ToolbarDropdownOption;
16
13
  isPlainText: boolean;
17
- richTextSlice: Slice;
18
- pasteStartPos: number;
19
14
  pasteEndPos: number;
15
+ pasteStartPos: number;
16
+ plaintext: string;
17
+ richTextSlice: Slice;
18
+ selectedOption: ToolbarDropdownOption;
20
19
  };
20
+ type: PastePluginActionTypes.SHOW_PASTE_OPTIONS;
21
21
  }
22
22
  export interface HidePasteOptions {
23
23
  type: PastePluginActionTypes.HIDE_PASTE_OPTIONS;
@@ -26,9 +26,9 @@ export interface HighlightContent {
26
26
  type: PastePluginActionTypes.HIGHLIGHT_CONTENT;
27
27
  }
28
28
  export interface ChangeFormat {
29
- type: PastePluginActionTypes.CHANGE_FORMAT;
30
29
  data: {
31
30
  selectedOption: ToolbarDropdownOption;
32
31
  };
32
+ type: PastePluginActionTypes.CHANGE_FORMAT;
33
33
  }
34
34
  export type PastePluginAction = ShowPasteOptions | HidePasteOptions | HighlightContent | ChangeFormat;
@@ -1,2 +1,2 @@
1
1
  import type { PasteOtionsPluginState } from '../types/types';
2
- export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: PasteOtionsPluginState | ((state: import("prosemirror-state").EditorState) => PasteOtionsPluginState)) => import("prosemirror-state").SafeStateField<PasteOtionsPluginState>, createCommand: <A = import("../editor-actions/actions").PastePluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => PasteOtionsPluginState;
2
+ export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: PasteOtionsPluginState | ((state: import("prosemirror-state").EditorState) => PasteOtionsPluginState)) => import("prosemirror-state").SafeStateField<PasteOtionsPluginState>, createCommand: <A = import("../editor-actions/actions").PastePluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => PasteOtionsPluginState;
@@ -9,17 +9,17 @@ export declare enum ToolbarDropdownOption {
9
9
  None = 3
10
10
  }
11
11
  export interface PasteOtionsPluginState {
12
- showToolbar: boolean;
13
- pasteStartPos: number;
12
+ highlightContent: boolean;
13
+ highlightDecorationSet: DecorationSet;
14
+ isPlainText: boolean;
14
15
  pasteEndPos: number;
16
+ pasteStartPos: number;
15
17
  plaintext: string;
16
18
  richTextSlice: Slice;
17
- isPlainText: boolean;
18
- highlightContent: boolean;
19
- highlightDecorationSet: DecorationSet;
20
19
  selectedOption: ToolbarDropdownOption;
20
+ showToolbar: boolean;
21
21
  }
22
22
  export interface Position {
23
- top?: number;
24
23
  left?: number;
24
+ top?: number;
25
25
  }
@@ -9,15 +9,15 @@ export declare enum PastePluginActionTypes {
9
9
  CHANGE_FORMAT = "CHANGE_FORMAT"
10
10
  }
11
11
  export interface ShowPasteOptions {
12
- type: PastePluginActionTypes.SHOW_PASTE_OPTIONS;
13
12
  data: {
14
- plaintext: string;
15
- selectedOption: ToolbarDropdownOption;
16
13
  isPlainText: boolean;
17
- richTextSlice: Slice;
18
- pasteStartPos: number;
19
14
  pasteEndPos: number;
15
+ pasteStartPos: number;
16
+ plaintext: string;
17
+ richTextSlice: Slice;
18
+ selectedOption: ToolbarDropdownOption;
20
19
  };
20
+ type: PastePluginActionTypes.SHOW_PASTE_OPTIONS;
21
21
  }
22
22
  export interface HidePasteOptions {
23
23
  type: PastePluginActionTypes.HIDE_PASTE_OPTIONS;
@@ -26,9 +26,9 @@ export interface HighlightContent {
26
26
  type: PastePluginActionTypes.HIGHLIGHT_CONTENT;
27
27
  }
28
28
  export interface ChangeFormat {
29
- type: PastePluginActionTypes.CHANGE_FORMAT;
30
29
  data: {
31
30
  selectedOption: ToolbarDropdownOption;
32
31
  };
32
+ type: PastePluginActionTypes.CHANGE_FORMAT;
33
33
  }
34
34
  export type PastePluginAction = ShowPasteOptions | HidePasteOptions | HighlightContent | ChangeFormat;
@@ -1,2 +1,2 @@
1
1
  import type { PasteOtionsPluginState } from '../types/types';
2
- export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: PasteOtionsPluginState | ((state: import("prosemirror-state").EditorState) => PasteOtionsPluginState)) => import("prosemirror-state").SafeStateField<PasteOtionsPluginState>, createCommand: <A = import("../editor-actions/actions").PastePluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => PasteOtionsPluginState;
2
+ export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: PasteOtionsPluginState | ((state: import("prosemirror-state").EditorState) => PasteOtionsPluginState)) => import("prosemirror-state").SafeStateField<PasteOtionsPluginState>, createCommand: <A = import("../editor-actions/actions").PastePluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => PasteOtionsPluginState;
@@ -9,17 +9,17 @@ export declare enum ToolbarDropdownOption {
9
9
  None = 3
10
10
  }
11
11
  export interface PasteOtionsPluginState {
12
- showToolbar: boolean;
13
- pasteStartPos: number;
12
+ highlightContent: boolean;
13
+ highlightDecorationSet: DecorationSet;
14
+ isPlainText: boolean;
14
15
  pasteEndPos: number;
16
+ pasteStartPos: number;
15
17
  plaintext: string;
16
18
  richTextSlice: Slice;
17
- isPlainText: boolean;
18
- highlightContent: boolean;
19
- highlightDecorationSet: DecorationSet;
20
19
  selectedOption: ToolbarDropdownOption;
20
+ showToolbar: boolean;
21
21
  }
22
22
  export interface Position {
23
- top?: number;
24
23
  left?: number;
24
+ top?: number;
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste-options-toolbar",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,24 +37,22 @@
37
37
  "@atlaskit/editor-plugin-analytics": "^3.0.0",
38
38
  "@atlaskit/editor-plugin-paste": "^4.1.0",
39
39
  "@atlaskit/editor-prosemirror": "7.0.0",
40
- "@atlaskit/editor-shared-styles": "^3.5.0",
41
- "@atlaskit/icon": "^27.9.0",
40
+ "@atlaskit/editor-shared-styles": "^3.6.0",
41
+ "@atlaskit/icon": "^28.0.0",
42
42
  "@atlaskit/tokens": "^6.0.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@emotion/react": "^11.7.1",
45
45
  "react-intl-next": "npm:react-intl@^5.18.1"
46
46
  },
47
47
  "peerDependencies": {
48
- "@atlaskit/editor-common": "^107.16.0",
48
+ "@atlaskit/editor-common": "^107.28.0",
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@af/visual-regression": "workspace:^",
54
54
  "@atlaskit/ssr": "workspace:^",
55
- "@atlaskit/visual-regression": "workspace:^",
56
55
  "@testing-library/react": "^13.4.0",
57
- "typescript": "~5.4.2",
58
56
  "wait-for-expect": "^1.2.0"
59
57
  },
60
58
  "techstack": {
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/ui/styles.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/ui/styles.d.ts"
14
14
  ]