@atlaskit/editor-plugin-paste-options-toolbar 1.4.5 → 1.4.6

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,11 @@
1
1
  # @atlaskit/editor-plugin-paste-options-toolbar
2
2
 
3
+ ## 1.4.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 1.4.5
4
10
 
5
11
  ### Patch Changes
@@ -43,7 +43,7 @@ export function createPlugin(dispatch) {
43
43
  highlightContent,
44
44
  pasteStartPos
45
45
  } = pasteOptionsPluginKey.getState(state) || {};
46
- let decorationSet = (_pasteOptionsPluginKe = (_pasteOptionsPluginKe2 = pasteOptionsPluginKey.getState(state)) === null || _pasteOptionsPluginKe2 === void 0 ? void 0 : _pasteOptionsPluginKe2.highlightDecorationSet) !== null && _pasteOptionsPluginKe !== void 0 ? _pasteOptionsPluginKe : DecorationSet.empty;
46
+ const decorationSet = (_pasteOptionsPluginKe = (_pasteOptionsPluginKe2 = pasteOptionsPluginKey.getState(state)) === null || _pasteOptionsPluginKe2 === void 0 ? void 0 : _pasteOptionsPluginKe2.highlightDecorationSet) !== null && _pasteOptionsPluginKe !== void 0 ? _pasteOptionsPluginKe : DecorationSet.empty;
47
47
  if (!highlightContent) {
48
48
  return decorationSet;
49
49
  }
@@ -7,8 +7,8 @@ import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
7
7
  import { escapeLinks } from './index';
8
8
  export const formatMarkdown = (tr, pluginState) => {
9
9
  let pasteStartPos = pluginState.pasteStartPos;
10
- let pasteEndPos = pluginState.pasteEndPos;
11
- let plaintext = pluginState.plaintext;
10
+ const pasteEndPos = pluginState.pasteEndPos;
11
+ const plaintext = pluginState.plaintext;
12
12
  if (pasteStartPos < 0) {
13
13
  return tr;
14
14
  }
@@ -31,7 +31,7 @@ export const formatMarkdown = (tr, pluginState) => {
31
31
  };
32
32
  export const formatRichText = (tr, pluginState) => {
33
33
  let pasteStartPos = pluginState.pasteStartPos;
34
- let pasteEndPos = pluginState.pasteEndPos;
34
+ const pasteEndPos = pluginState.pasteEndPos;
35
35
  const richTextSlice = pluginState.richTextSlice;
36
36
  if (pasteStartPos < 0) {
37
37
  return tr;
@@ -54,8 +54,8 @@ export const formatRichText = (tr, pluginState) => {
54
54
  };
55
55
  export const formatPlainText = (tr, pluginState) => {
56
56
  let pasteStartPos = pluginState.pasteStartPos;
57
- let pasteEndPos = pluginState.pasteEndPos;
58
- let plaintext = pluginState.plaintext;
57
+ const pasteEndPos = pluginState.pasteEndPos;
58
+ const plaintext = pluginState.plaintext;
59
59
 
60
60
  //not possible to create plain text slice with empty string
61
61
  if (pasteStartPos < 0 || plaintext === '') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste-options-toolbar",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  "./styles": "./src/ui/styles.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/editor-common": "^97.2.0",
35
+ "@atlaskit/editor-common": "^98.0.0",
36
36
  "@atlaskit/editor-markdown-transformer": "^5.13.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
38
38
  "@atlaskit/editor-plugin-paste": "^2.0.0",