@atlaskit/editor-plugin-card 0.5.6 → 0.5.7

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,12 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 0.5.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`43bb8818f18`](https://bitbucket.org/atlassian/atlassian-frontend/commits/43bb8818f18) - Pasting a datasource now only requires a single undo to revert
8
+ - Updated dependencies
9
+
3
10
  ## 0.5.6
4
11
 
5
12
  ### Patch Changes
@@ -77,6 +77,9 @@ var DatasourceComponent = /*#__PURE__*/function (_React$PureComponent) {
77
77
  views: views
78
78
  })
79
79
  }));
80
+
81
+ // Ensures dispatch does not contribute to undo history (otherwise user requires three undo's to revert table)
82
+ tr.setMeta('addToHistory', false);
80
83
  tr.setMeta('scrollIntoView', false);
81
84
  dispatch(tr);
82
85
  });
@@ -54,6 +54,9 @@ export class DatasourceComponent extends React.PureComponent {
54
54
  views
55
55
  }
56
56
  });
57
+
58
+ // Ensures dispatch does not contribute to undo history (otherwise user requires three undo's to revert table)
59
+ tr.setMeta('addToHistory', false);
57
60
  tr.setMeta('scrollIntoView', false);
58
61
  dispatch(tr);
59
62
  });
@@ -71,6 +71,9 @@ export var DatasourceComponent = /*#__PURE__*/function (_React$PureComponent) {
71
71
  views: views
72
72
  })
73
73
  }));
74
+
75
+ // Ensures dispatch does not contribute to undo history (otherwise user requires three undo's to revert table)
76
+ tr.setMeta('addToHistory', false);
74
77
  tr.setMeta('scrollIntoView', false);
75
78
  dispatch(tr);
76
79
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "28.1.2",
35
35
  "@atlaskit/analytics-next": "^9.1.0",
36
- "@atlaskit/editor-common": "^74.57.0",
36
+ "@atlaskit/editor-common": "^74.58.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^0.2.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^0.2.0",
39
39
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",