@atlaskit/editor-plugin-table 7.25.11 → 7.25.13

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,22 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 7.25.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [#134213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134213)
8
+ [`93bd7032842ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93bd7032842ec) -
9
+ [ux] [ED-24636] Bump ADF Schema package
10
+
11
+ ## 7.25.12
12
+
13
+ ### Patch Changes
14
+
15
+ - [#133347](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133347)
16
+ [`cb1658fdac261`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cb1658fdac261) -
17
+ Create a new tr, instead of letting previous one in append transaction for analytics
18
+ - Updated dependencies
19
+
3
20
  ## 7.25.11
4
21
 
5
22
  ### Patch Changes
@@ -22,6 +22,7 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, dispat
22
22
  });
23
23
  if (tr) {
24
24
  var _tr$getMeta2;
25
+ var newTr = newState.tr;
25
26
  dispatchAnalyticsEvent({
26
27
  action: _analytics.TABLE_ACTION.ROW_OR_COLUMN_MOVED,
27
28
  actionSubject: _analytics.ACTION_SUBJECT.TABLE,
@@ -31,7 +32,7 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, dispat
31
32
  type: (_tr$getMeta2 = tr.getMeta(_pluginKey.pluginKey)) === null || _tr$getMeta2 === void 0 || (_tr$getMeta2 = _tr$getMeta2.data) === null || _tr$getMeta2 === void 0 ? void 0 : _tr$getMeta2.type
32
33
  }
33
34
  });
34
- return (0, _commands.resetRowOrColumnMovedTransform)()(tr);
35
+ return (0, _commands.resetRowOrColumnMovedTransform)()(newTr);
35
36
  }
36
37
  return undefined;
37
38
  },
@@ -15,6 +15,7 @@ export const createPlugin = (dispatch, dispatchAnalyticsEvent) => new SafePlugin
15
15
  });
16
16
  if (tr) {
17
17
  var _tr$getMeta2, _tr$getMeta2$data;
18
+ const newTr = newState.tr;
18
19
  dispatchAnalyticsEvent({
19
20
  action: TABLE_ACTION.ROW_OR_COLUMN_MOVED,
20
21
  actionSubject: ACTION_SUBJECT.TABLE,
@@ -24,7 +25,7 @@ export const createPlugin = (dispatch, dispatchAnalyticsEvent) => new SafePlugin
24
25
  type: (_tr$getMeta2 = tr.getMeta(pluginKey)) === null || _tr$getMeta2 === void 0 ? void 0 : (_tr$getMeta2$data = _tr$getMeta2.data) === null || _tr$getMeta2$data === void 0 ? void 0 : _tr$getMeta2$data.type
25
26
  }
26
27
  });
27
- return resetRowOrColumnMovedTransform()(tr);
28
+ return resetRowOrColumnMovedTransform()(newTr);
28
29
  }
29
30
  return undefined;
30
31
  },
@@ -16,6 +16,7 @@ export var createPlugin = function createPlugin(dispatch, dispatchAnalyticsEvent
16
16
  });
17
17
  if (tr) {
18
18
  var _tr$getMeta2;
19
+ var newTr = newState.tr;
19
20
  dispatchAnalyticsEvent({
20
21
  action: TABLE_ACTION.ROW_OR_COLUMN_MOVED,
21
22
  actionSubject: ACTION_SUBJECT.TABLE,
@@ -25,7 +26,7 @@ export var createPlugin = function createPlugin(dispatch, dispatchAnalyticsEvent
25
26
  type: (_tr$getMeta2 = tr.getMeta(pluginKey)) === null || _tr$getMeta2 === void 0 || (_tr$getMeta2 = _tr$getMeta2.data) === null || _tr$getMeta2 === void 0 ? void 0 : _tr$getMeta2.type
26
27
  }
27
28
  });
28
- return resetRowOrColumnMovedTransform()(tr);
29
+ return resetRowOrColumnMovedTransform()(newTr);
29
30
  }
30
31
  return undefined;
31
32
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "7.25.11",
3
+ "version": "7.25.13",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,10 +28,10 @@
28
28
  "runReact18": false
29
29
  },
30
30
  "dependencies": {
31
- "@atlaskit/adf-schema": "^40.8.1",
31
+ "@atlaskit/adf-schema": "^40.9.0",
32
32
  "@atlaskit/button": "^20.1.0",
33
33
  "@atlaskit/custom-steps": "^0.7.0",
34
- "@atlaskit/editor-common": "^88.1.0",
34
+ "@atlaskit/editor-common": "^88.2.0",
35
35
  "@atlaskit/editor-palette": "1.6.0",
36
36
  "@atlaskit/editor-plugin-accessibility-utils": "^1.2.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/editor-prosemirror": "5.0.1",
44
44
  "@atlaskit/editor-shared-styles": "^2.13.0",
45
45
  "@atlaskit/editor-tables": "^2.8.0",
46
- "@atlaskit/icon": "^22.14.0",
46
+ "@atlaskit/icon": "^22.15.0",
47
47
  "@atlaskit/menu": "^2.12.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
49
  "@atlaskit/pragmatic-drag-and-drop": "^1.3.0",
@@ -25,6 +25,7 @@ export const createPlugin = (dispatch: Dispatch, dispatchAnalyticsEvent: Dispatc
25
25
  );
26
26
 
27
27
  if (tr) {
28
+ const newTr = newState.tr;
28
29
  dispatchAnalyticsEvent({
29
30
  action: TABLE_ACTION.ROW_OR_COLUMN_MOVED,
30
31
  actionSubject: ACTION_SUBJECT.TABLE,
@@ -34,7 +35,7 @@ export const createPlugin = (dispatch: Dispatch, dispatchAnalyticsEvent: Dispatc
34
35
  type: tr.getMeta(pluginKey)?.data?.type,
35
36
  },
36
37
  });
37
- return resetRowOrColumnMovedTransform()(tr);
38
+ return resetRowOrColumnMovedTransform()(newTr);
38
39
  }
39
40
 
40
41
  return undefined;