@atlaskit/editor-plugin-paste-options-toolbar 3.1.2 → 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,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 3.1.2
|
|
4
12
|
|
|
5
13
|
### 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;
|
|
@@ -9,17 +9,17 @@ export declare enum ToolbarDropdownOption {
|
|
|
9
9
|
None = 3
|
|
10
10
|
}
|
|
11
11
|
export interface PasteOtionsPluginState {
|
|
12
|
-
|
|
13
|
-
|
|
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;
|
|
@@ -9,17 +9,17 @@ export declare enum ToolbarDropdownOption {
|
|
|
9
9
|
None = 3
|
|
10
10
|
}
|
|
11
11
|
export interface PasteOtionsPluginState {
|
|
12
|
-
|
|
13
|
-
|
|
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.
|
|
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",
|
|
@@ -45,14 +45,13 @@
|
|
|
45
45
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@atlaskit/editor-common": "^107.
|
|
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
56
|
"wait-for-expect": "^1.2.0"
|
|
58
57
|
},
|