@atlaskit/editor-plugin-paste-options-toolbar 4.0.0 → 6.0.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,17 @@
1
1
  # @atlaskit/editor-plugin-paste-options-toolbar
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.0.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 4.0.0
4
16
 
5
17
  ### Patch Changes
@@ -12,11 +12,12 @@ var _formatHandlers = require("../pm-plugins/util/format-handlers");
12
12
  var _types = require("../types/types");
13
13
  var showToolbar = exports.showToolbar = function showToolbar(lastContentPasted, selectedOption) {
14
14
  var commandAction = function commandAction(editorState) {
15
+ var _lastContentPasted$te;
15
16
  return {
16
17
  type: _actions.PastePluginActionTypes.SHOW_PASTE_OPTIONS,
17
18
  data: {
18
19
  selectedOption: selectedOption,
19
- plaintext: lastContentPasted.text,
20
+ plaintext: (_lastContentPasted$te = lastContentPasted.text) !== null && _lastContentPasted$te !== void 0 ? _lastContentPasted$te : '',
20
21
  isPlainText: lastContentPasted.isPlainText,
21
22
  richTextSlice: lastContentPasted.pastedSlice,
22
23
  pasteStartPos: lastContentPasted.pasteStartPos,
@@ -6,11 +6,12 @@ import { formatMarkdown, formatPlainText, formatRichText } from '../pm-plugins/u
6
6
  import { pasteOptionsPluginKey, ToolbarDropdownOption } from '../types/types';
7
7
  export const showToolbar = (lastContentPasted, selectedOption) => {
8
8
  const commandAction = editorState => {
9
+ var _lastContentPasted$te;
9
10
  return {
10
11
  type: ActionTypes.SHOW_PASTE_OPTIONS,
11
12
  data: {
12
13
  selectedOption,
13
- plaintext: lastContentPasted.text,
14
+ plaintext: (_lastContentPasted$te = lastContentPasted.text) !== null && _lastContentPasted$te !== void 0 ? _lastContentPasted$te : '',
14
15
  isPlainText: lastContentPasted.isPlainText,
15
16
  richTextSlice: lastContentPasted.pastedSlice,
16
17
  pasteStartPos: lastContentPasted.pasteStartPos,
@@ -6,11 +6,12 @@ import { formatMarkdown, formatPlainText, formatRichText } from '../pm-plugins/u
6
6
  import { pasteOptionsPluginKey, ToolbarDropdownOption } from '../types/types';
7
7
  export var showToolbar = function showToolbar(lastContentPasted, selectedOption) {
8
8
  var commandAction = function commandAction(editorState) {
9
+ var _lastContentPasted$te;
9
10
  return {
10
11
  type: ActionTypes.SHOW_PASTE_OPTIONS,
11
12
  data: {
12
13
  selectedOption: selectedOption,
13
- plaintext: lastContentPasted.text,
14
+ plaintext: (_lastContentPasted$te = lastContentPasted.text) !== null && _lastContentPasted$te !== void 0 ? _lastContentPasted$te : '',
14
15
  isPlainText: lastContentPasted.isPlainText,
15
16
  richTextSlice: lastContentPasted.pastedSlice,
16
17
  pasteStartPos: lastContentPasted.pasteStartPos,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste-options-toolbar",
3
- "version": "4.0.0",
3
+ "version": "6.0.0",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,19 +29,19 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/editor-markdown-transformer": "^5.16.0",
33
- "@atlaskit/editor-plugin-analytics": "^4.0.0",
34
- "@atlaskit/editor-plugin-paste": "^5.0.0",
32
+ "@atlaskit/editor-markdown-transformer": "^5.19.0",
33
+ "@atlaskit/editor-plugin-analytics": "^6.0.0",
34
+ "@atlaskit/editor-plugin-paste": "^7.0.0",
35
35
  "@atlaskit/editor-prosemirror": "7.0.0",
36
36
  "@atlaskit/editor-shared-styles": "^3.6.0",
37
- "@atlaskit/icon": "^28.1.0",
38
- "@atlaskit/tokens": "^6.1.0",
37
+ "@atlaskit/icon": "^28.3.0",
38
+ "@atlaskit/tokens": "^6.3.0",
39
39
  "@babel/runtime": "^7.0.0",
40
40
  "@emotion/react": "^11.7.1",
41
41
  "react-intl-next": "npm:react-intl@^5.18.1"
42
42
  },
43
43
  "peerDependencies": {
44
- "@atlaskit/editor-common": "^108.0.0",
44
+ "@atlaskit/editor-common": "^110.0.0",
45
45
  "react": "^18.2.0",
46
46
  "react-dom": "^18.2.0"
47
47
  },