@atlaskit/editor-plugin-paste 9.1.7 → 9.1.8

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
2
2
 
3
+ ## 9.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 9.1.7
4
10
 
5
11
  ### Patch Changes
@@ -631,7 +631,8 @@ function insertAutoMacro(slice, macro, view, from, to) {
631
631
  // so the autoconversion generates 2 undo steps
632
632
  var macroTr = (0, _prosemirrorHistory.closeHistory)(view.state.tr).replaceRangeWith(before, before + slice.size, macro).scrollIntoView();
633
633
  (0, _card.addLinkMetadata)(view.state.selection, macroTr, {
634
- inputMethod: _analytics.INPUT_METHOD.CLIPBOARD
634
+ inputMethod: _analytics.INPUT_METHOD.CLIPBOARD,
635
+ cardAction: 'AUTO_CONVERT'
635
636
  });
636
637
  view.dispatch(macroTr);
637
638
  return true;
@@ -600,7 +600,8 @@ function insertAutoMacro(slice, macro, view, from, to) {
600
600
  // so the autoconversion generates 2 undo steps
601
601
  const macroTr = closeHistory(view.state.tr).replaceRangeWith(before, before + slice.size, macro).scrollIntoView();
602
602
  addLinkMetadata(view.state.selection, macroTr, {
603
- inputMethod: INPUT_METHOD.CLIPBOARD
603
+ inputMethod: INPUT_METHOD.CLIPBOARD,
604
+ cardAction: 'AUTO_CONVERT'
604
605
  });
605
606
  view.dispatch(macroTr);
606
607
  return true;
@@ -604,7 +604,8 @@ function insertAutoMacro(slice, macro, view, from, to) {
604
604
  // so the autoconversion generates 2 undo steps
605
605
  var macroTr = closeHistory(view.state.tr).replaceRangeWith(before, before + slice.size, macro).scrollIntoView();
606
606
  addLinkMetadata(view.state.selection, macroTr, {
607
- inputMethod: INPUT_METHOD.CLIPBOARD
607
+ inputMethod: INPUT_METHOD.CLIPBOARD,
608
+ cardAction: 'AUTO_CONVERT'
608
609
  });
609
610
  view.dispatch(macroTr);
610
611
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "9.1.7",
3
+ "version": "9.1.8",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -48,8 +48,8 @@
48
48
  "@atlaskit/media-common": "^13.0.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/prosemirror-history": "^0.2.0",
51
- "@atlaskit/tmp-editor-statsig": "^55.0.0",
52
- "@atlaskit/tokens": "^11.4.0",
51
+ "@atlaskit/tmp-editor-statsig": "^55.1.0",
52
+ "@atlaskit/tokens": "^12.0.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "lodash": "^4.17.21",
55
55
  "react-intl-next": "npm:react-intl@^5.18.1",