@atlaskit/editor-plugin-date 21.1.5 → 23.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-date
|
|
2
2
|
|
|
3
|
+
## 23.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
|
+
## 22.0.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 21.1.5
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
9
9
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
10
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
11
11
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
12
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
13
12
|
var _internal = require("../ui/DatePicker/utils/internal");
|
|
14
13
|
var _pluginKey = require("./plugin-key");
|
|
15
14
|
/** Delete the date and close the datepicker */
|
|
@@ -48,14 +47,13 @@ var insertDateCommand = exports.insertDateCommand = function insertDateCommand(p
|
|
|
48
47
|
}
|
|
49
48
|
if (inputMethod) {
|
|
50
49
|
var _pluginInjectionApi$a;
|
|
51
|
-
var resolvedInputMethod = (0, _fg.fg)('platform_editor_element_browser_analytic') ? inputMethod : _analytics.INPUT_METHOD.QUICK_INSERT;
|
|
52
50
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 || (_pluginInjectionApi$a = _pluginInjectionApi$a.actions) === null || _pluginInjectionApi$a === void 0 || _pluginInjectionApi$a.attachAnalyticsEvent({
|
|
53
51
|
action: _analytics.ACTION.INSERTED,
|
|
54
52
|
actionSubject: _analytics.ACTION_SUBJECT.DOCUMENT,
|
|
55
53
|
actionSubjectId: _analytics.ACTION_SUBJECT_ID.DATE,
|
|
56
54
|
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
57
55
|
attributes: {
|
|
58
|
-
inputMethod:
|
|
56
|
+
inputMethod: inputMethod
|
|
59
57
|
}
|
|
60
58
|
})(tr);
|
|
61
59
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { todayTimestampInUTC } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { canInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
6
|
import { isToday } from '../ui/DatePicker/utils/internal';
|
|
8
7
|
import { pluginKey } from './plugin-key';
|
|
9
8
|
/** Delete the date and close the datepicker */
|
|
@@ -43,14 +42,13 @@ export const insertDateCommand = pluginInjectionApi => ({
|
|
|
43
42
|
}
|
|
44
43
|
if (inputMethod) {
|
|
45
44
|
var _pluginInjectionApi$a, _pluginInjectionApi$a2;
|
|
46
|
-
const resolvedInputMethod = fg('platform_editor_element_browser_analytic') ? inputMethod : INPUT_METHOD.QUICK_INSERT;
|
|
47
45
|
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : (_pluginInjectionApi$a2 = _pluginInjectionApi$a.actions) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.attachAnalyticsEvent({
|
|
48
46
|
action: ACTION.INSERTED,
|
|
49
47
|
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
50
48
|
actionSubjectId: ACTION_SUBJECT_ID.DATE,
|
|
51
49
|
eventType: EVENT_TYPE.TRACK,
|
|
52
50
|
attributes: {
|
|
53
|
-
inputMethod
|
|
51
|
+
inputMethod
|
|
54
52
|
}
|
|
55
53
|
})(tr);
|
|
56
54
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { todayTimestampInUTC } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { canInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
6
|
import { isToday } from '../ui/DatePicker/utils/internal';
|
|
8
7
|
import { pluginKey } from './plugin-key';
|
|
9
8
|
/** Delete the date and close the datepicker */
|
|
@@ -42,14 +41,13 @@ export var insertDateCommand = function insertDateCommand(pluginInjectionApi) {
|
|
|
42
41
|
}
|
|
43
42
|
if (inputMethod) {
|
|
44
43
|
var _pluginInjectionApi$a;
|
|
45
|
-
var resolvedInputMethod = fg('platform_editor_element_browser_analytic') ? inputMethod : INPUT_METHOD.QUICK_INSERT;
|
|
46
44
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 || (_pluginInjectionApi$a = _pluginInjectionApi$a.actions) === null || _pluginInjectionApi$a === void 0 || _pluginInjectionApi$a.attachAnalyticsEvent({
|
|
47
45
|
action: ACTION.INSERTED,
|
|
48
46
|
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
49
47
|
actionSubjectId: ACTION_SUBJECT_ID.DATE,
|
|
50
48
|
eventType: EVENT_TYPE.TRACK,
|
|
51
49
|
attributes: {
|
|
52
|
-
inputMethod:
|
|
50
|
+
inputMethod: inputMethod
|
|
53
51
|
}
|
|
54
52
|
})(tr);
|
|
55
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,22 +24,22 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^57.6.0",
|
|
25
25
|
"@atlaskit/calendar": "^19.3.0",
|
|
26
26
|
"@atlaskit/css": "^1.1.0",
|
|
27
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
28
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
29
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
30
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
31
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^
|
|
27
|
+
"@atlaskit/editor-plugin-analytics": "^21.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-annotation": "^21.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-editor-disabled": "^21.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^23.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^15.0.0",
|
|
32
32
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
33
33
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
34
34
|
"@atlaskit/editor-ui-control-model": "^2.10.0",
|
|
35
|
-
"@atlaskit/form": "^
|
|
36
|
-
"@atlaskit/icon": "^
|
|
35
|
+
"@atlaskit/form": "^18.0.0",
|
|
36
|
+
"@atlaskit/icon": "^38.0.0",
|
|
37
37
|
"@atlaskit/locale": "^5.3.0",
|
|
38
38
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
40
40
|
"@atlaskit/textfield": "^10.2.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
-
"@atlaskit/tokens": "^
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^205.0.0",
|
|
42
|
+
"@atlaskit/tokens": "^20.0.0",
|
|
43
43
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"bind-event-listener": "^3.0.0",
|
|
@@ -54,15 +54,12 @@
|
|
|
54
54
|
"react-intl": "^7.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"
|
|
61
61
|
},
|
|
62
62
|
"platform-feature-flags": {
|
|
63
|
-
"platform_editor_element_browser_analytic": {
|
|
64
|
-
"type": "boolean"
|
|
65
|
-
},
|
|
66
63
|
"platform_editor_adf_with_localid": {
|
|
67
64
|
"type": "boolean"
|
|
68
65
|
}
|