@atlaskit/editor-plugin-undo-redo 7.1.1 → 7.2.1
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-undo-redo
|
|
2
2
|
|
|
3
|
+
## 7.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 7.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`37a002ff9028f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/37a002ff9028f) -
|
|
14
|
+
[https://hello.jira.atlassian.cloud/browse/EDITOR-4332](EDITOR-4332) - clean up
|
|
15
|
+
platform_editor_add_undo_meta_analytics
|
|
16
|
+
|
|
3
17
|
## 7.1.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -11,7 +11,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
12
12
|
var _editorAnalytics = require("@atlaskit/editor-common/editor-analytics");
|
|
13
13
|
var _document = require("@atlaskit/editor-common/utils/document");
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _enums = require("./enums");
|
|
16
15
|
var _pluginKey = require("./plugin-key");
|
|
17
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -92,7 +91,7 @@ function getChanges(_ref2) {
|
|
|
92
91
|
var attachInputMetaWithAnalytics = exports.attachInputMetaWithAnalytics = function attachInputMetaWithAnalytics(editorAnalyticsAPI) {
|
|
93
92
|
return function (inputSource, action) {
|
|
94
93
|
return function (command) {
|
|
95
|
-
return attachInputMeta(inputSource)((0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI,
|
|
94
|
+
return attachInputMeta(inputSource)((0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, function (_ref3, _ref4) {
|
|
96
95
|
var before = _ref3.doc;
|
|
97
96
|
var after = _ref4.currentDoc;
|
|
98
97
|
return {
|
|
@@ -106,13 +105,6 @@ var attachInputMetaWithAnalytics = exports.attachInputMetaWithAnalytics = functi
|
|
|
106
105
|
after: after
|
|
107
106
|
}))
|
|
108
107
|
};
|
|
109
|
-
} : {
|
|
110
|
-
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
111
|
-
action: action,
|
|
112
|
-
actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
|
|
113
|
-
attributes: {
|
|
114
|
-
inputMethod: inputSourceToInputMethod(inputSource)
|
|
115
|
-
}
|
|
116
108
|
})(command));
|
|
117
109
|
};
|
|
118
110
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
|
|
3
3
|
import { areNodesEqualIgnoreAttrs } from '@atlaskit/editor-common/utils/document';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { InputSource } from './enums';
|
|
6
5
|
import { pluginKey as undoPluginKey } from './plugin-key';
|
|
7
6
|
export const attachInputMeta = inputSource => command => (state, dispatch) => {
|
|
@@ -74,7 +73,7 @@ export function getChanges({
|
|
|
74
73
|
affectedNodes
|
|
75
74
|
};
|
|
76
75
|
}
|
|
77
|
-
export const attachInputMetaWithAnalytics = editorAnalyticsAPI => (inputSource, action) => command => attachInputMeta(inputSource)(withAnalytics(editorAnalyticsAPI,
|
|
76
|
+
export const attachInputMetaWithAnalytics = editorAnalyticsAPI => (inputSource, action) => command => attachInputMeta(inputSource)(withAnalytics(editorAnalyticsAPI, ({
|
|
78
77
|
doc: before
|
|
79
78
|
}, {
|
|
80
79
|
currentDoc: after
|
|
@@ -89,11 +88,4 @@ export const attachInputMetaWithAnalytics = editorAnalyticsAPI => (inputSource,
|
|
|
89
88
|
after
|
|
90
89
|
})
|
|
91
90
|
}
|
|
92
|
-
})
|
|
93
|
-
eventType: EVENT_TYPE.TRACK,
|
|
94
|
-
action,
|
|
95
|
-
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
96
|
-
attributes: {
|
|
97
|
-
inputMethod: inputSourceToInputMethod(inputSource)
|
|
98
|
-
}
|
|
99
|
-
})(command));
|
|
91
|
+
}))(command));
|
|
@@ -5,7 +5,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import { ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
|
|
7
7
|
import { areNodesEqualIgnoreAttrs } from '@atlaskit/editor-common/utils/document';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { InputSource } from './enums';
|
|
10
9
|
import { pluginKey as undoPluginKey } from './plugin-key';
|
|
11
10
|
export var attachInputMeta = function attachInputMeta(inputSource) {
|
|
@@ -84,7 +83,7 @@ export function getChanges(_ref2) {
|
|
|
84
83
|
export var attachInputMetaWithAnalytics = function attachInputMetaWithAnalytics(editorAnalyticsAPI) {
|
|
85
84
|
return function (inputSource, action) {
|
|
86
85
|
return function (command) {
|
|
87
|
-
return attachInputMeta(inputSource)(withAnalytics(editorAnalyticsAPI,
|
|
86
|
+
return attachInputMeta(inputSource)(withAnalytics(editorAnalyticsAPI, function (_ref3, _ref4) {
|
|
88
87
|
var before = _ref3.doc;
|
|
89
88
|
var after = _ref4.currentDoc;
|
|
90
89
|
return {
|
|
@@ -98,13 +97,6 @@ export var attachInputMetaWithAnalytics = function attachInputMetaWithAnalytics(
|
|
|
98
97
|
after: after
|
|
99
98
|
}))
|
|
100
99
|
};
|
|
101
|
-
} : {
|
|
102
|
-
eventType: EVENT_TYPE.TRACK,
|
|
103
|
-
action: action,
|
|
104
|
-
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
105
|
-
attributes: {
|
|
106
|
-
inputMethod: inputSourceToInputMethod(inputSource)
|
|
107
|
-
}
|
|
108
100
|
})(command));
|
|
109
101
|
};
|
|
110
102
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-undo-redo",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "Undo redo plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"@atlaskit/editor-plugin-type-ahead": "^7.0.0",
|
|
36
36
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
37
37
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
38
|
-
"@atlaskit/editor-toolbar-model": "^0.
|
|
38
|
+
"@atlaskit/editor-toolbar-model": "^0.3.0",
|
|
39
39
|
"@atlaskit/icon": "^29.4.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
41
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^16.23.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@atlaskit/editor-common": "^111.
|
|
47
|
+
"@atlaskit/editor-common": "^111.8.0",
|
|
48
48
|
"react": "^18.2.0",
|
|
49
49
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
50
50
|
},
|
|
@@ -89,9 +89,5 @@
|
|
|
89
89
|
"checkDevDependencies": true
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
|
-
"platform-feature-flags": {
|
|
93
|
-
"platform_editor_add_undo_meta_analytics": {
|
|
94
|
-
"type": "boolean"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
92
|
+
"platform-feature-flags": {}
|
|
97
93
|
}
|