@atlaskit/editor-plugin-table 7.25.11 → 7.25.12
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 7.25.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#133347](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133347)
|
|
8
|
+
[`cb1658fdac261`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cb1658fdac261) -
|
|
9
|
+
Create a new tr, instead of letting previous one in append transaction for analytics
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 7.25.11
|
|
4
13
|
|
|
5
14
|
### 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)()(
|
|
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()(
|
|
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()(
|
|
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.
|
|
3
|
+
"version": "7.25.12",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -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.
|
|
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()(
|
|
38
|
+
return resetRowOrColumnMovedTransform()(newTr);
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
return undefined;
|