@atlaskit/editor-plugin-tasks-and-decisions 22.0.6 → 24.0.0
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,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 24.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`5c5d7a5bbff74`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5c5d7a5bbff74) -
|
|
8
|
+
Cleanup `feature_gate` `platform_editor_element_browser_analytic`. Insert analytics permanently
|
|
9
|
+
report the caller's actual input method rather than always attributing the insertion to
|
|
10
|
+
`quickInsert`.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 23.0.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 22.0.6
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -14,7 +14,6 @@ var _model = require("@atlaskit/editor-prosemirror/model");
|
|
|
14
14
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
15
15
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
16
16
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
17
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
17
|
var _pluginKey = require("./plugin-key");
|
|
19
18
|
var _types = require("./types");
|
|
20
19
|
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; }
|
|
@@ -39,14 +38,13 @@ var generateAnalyticsPayload = function generateAnalyticsPayload(listType, conte
|
|
|
39
38
|
objectId = contextData.objectId;
|
|
40
39
|
userContext = contextData.userContext;
|
|
41
40
|
}
|
|
42
|
-
var resolvedInputMethod = (0, _fg.fg)('platform_editor_element_browser_analytic') ? inputMethod : _analytics.INPUT_METHOD.QUICK_INSERT;
|
|
43
41
|
return {
|
|
44
42
|
action: _analytics.ACTION.INSERTED,
|
|
45
43
|
actionSubject: _analytics.ACTION_SUBJECT.DOCUMENT,
|
|
46
44
|
actionSubjectId: listType === 'taskList' ? _analytics.ACTION_SUBJECT_ID.ACTION : _analytics.ACTION_SUBJECT_ID.DECISION,
|
|
47
45
|
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
48
46
|
attributes: {
|
|
49
|
-
inputMethod:
|
|
47
|
+
inputMethod: inputMethod,
|
|
50
48
|
containerAri: containerId,
|
|
51
49
|
objectAri: objectId,
|
|
52
50
|
userContext: userContext,
|
|
@@ -6,7 +6,6 @@ import { NodeRange } from '@atlaskit/editor-prosemirror/model';
|
|
|
6
6
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { liftTarget } from '@atlaskit/editor-prosemirror/transform';
|
|
8
8
|
import { findParentNodeOfType, hasParentNodeOfType, replaceParentNodeOfType, safeInsert, setTextSelection } from '@atlaskit/editor-prosemirror/utils';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
9
|
import { stateKey } from './plugin-key';
|
|
11
10
|
import { ACTIONS } from './types';
|
|
12
11
|
const getContextData = (contextProvider = {}) => {
|
|
@@ -32,14 +31,13 @@ const generateAnalyticsPayload = (listType, contextData, inputMethod, itemLocalI
|
|
|
32
31
|
userContext
|
|
33
32
|
} = contextData);
|
|
34
33
|
}
|
|
35
|
-
const resolvedInputMethod = fg('platform_editor_element_browser_analytic') ? inputMethod : INPUT_METHOD.QUICK_INSERT;
|
|
36
34
|
return {
|
|
37
35
|
action: ACTION.INSERTED,
|
|
38
36
|
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
39
37
|
actionSubjectId: listType === 'taskList' ? ACTION_SUBJECT_ID.ACTION : ACTION_SUBJECT_ID.DECISION,
|
|
40
38
|
eventType: EVENT_TYPE.TRACK,
|
|
41
39
|
attributes: {
|
|
42
|
-
inputMethod
|
|
40
|
+
inputMethod,
|
|
43
41
|
containerAri: containerId,
|
|
44
42
|
objectAri: objectId,
|
|
45
43
|
userContext,
|
|
@@ -9,7 +9,6 @@ import { NodeRange } from '@atlaskit/editor-prosemirror/model';
|
|
|
9
9
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import { liftTarget } from '@atlaskit/editor-prosemirror/transform';
|
|
11
11
|
import { findParentNodeOfType, hasParentNodeOfType, replaceParentNodeOfType, safeInsert, setTextSelection } from '@atlaskit/editor-prosemirror/utils';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
12
|
import { stateKey } from './plugin-key';
|
|
14
13
|
import { ACTIONS } from './types';
|
|
15
14
|
var getContextData = function getContextData() {
|
|
@@ -32,14 +31,13 @@ var generateAnalyticsPayload = function generateAnalyticsPayload(listType, conte
|
|
|
32
31
|
objectId = contextData.objectId;
|
|
33
32
|
userContext = contextData.userContext;
|
|
34
33
|
}
|
|
35
|
-
var resolvedInputMethod = fg('platform_editor_element_browser_analytic') ? inputMethod : INPUT_METHOD.QUICK_INSERT;
|
|
36
34
|
return {
|
|
37
35
|
action: ACTION.INSERTED,
|
|
38
36
|
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
39
37
|
actionSubjectId: listType === 'taskList' ? ACTION_SUBJECT_ID.ACTION : ACTION_SUBJECT_ID.DECISION,
|
|
40
38
|
eventType: EVENT_TYPE.TRACK,
|
|
41
39
|
attributes: {
|
|
42
|
-
inputMethod:
|
|
40
|
+
inputMethod: inputMethod,
|
|
43
41
|
containerAri: containerId,
|
|
44
42
|
objectAri: objectId,
|
|
45
43
|
userContext: userContext,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.0.0",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,32 +29,32 @@
|
|
|
29
29
|
"@atlaskit/adf-schema": "^57.6.0",
|
|
30
30
|
"@atlaskit/analytics-namespaced-context": "^8.2.0",
|
|
31
31
|
"@atlaskit/css": "^1.1.0",
|
|
32
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
33
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
34
|
-
"@atlaskit/editor-plugin-context-identifier": "^
|
|
35
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
36
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
37
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
38
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
32
|
+
"@atlaskit/editor-plugin-analytics": "^21.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-block-menu": "^20.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-context-identifier": "^21.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^23.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-selection": "^21.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-toolbar": "^18.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-type-ahead": "^22.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
40
40
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
41
41
|
"@atlaskit/editor-toolbar": "^2.7.0",
|
|
42
42
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
43
|
-
"@atlaskit/heading": "^
|
|
44
|
-
"@atlaskit/icon": "^
|
|
43
|
+
"@atlaskit/heading": "^8.0.0",
|
|
44
|
+
"@atlaskit/icon": "^38.0.0",
|
|
45
45
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
47
47
|
"@atlaskit/primitives": "^22.5.0",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
49
49
|
"@atlaskit/task-decision": "^21.10.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
51
|
-
"@atlaskit/tokens": "^
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^205.0.0",
|
|
51
|
+
"@atlaskit/tokens": "^20.0.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@compiled/react": "^1.0.2",
|
|
54
54
|
"bind-event-listener": "^3.0.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@atlaskit/editor-common": "^
|
|
57
|
+
"@atlaskit/editor-common": "^125.0.0",
|
|
58
58
|
"react": "^18.2.0 || ^19.2.0",
|
|
59
59
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
60
60
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -73,9 +73,6 @@
|
|
|
73
73
|
"type": "boolean",
|
|
74
74
|
"referenceOnly": true
|
|
75
75
|
},
|
|
76
|
-
"platform_editor_element_browser_analytic": {
|
|
77
|
-
"type": "boolean"
|
|
78
|
-
},
|
|
79
76
|
"platform_editor_markdown_compatible_toolbar": {
|
|
80
77
|
"type": "boolean"
|
|
81
78
|
}
|