@atlaskit/editor-plugin-type-ahead 2.7.11 → 2.7.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-type-ahead
|
|
2
2
|
|
|
3
|
+
## 2.7.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#165113](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/165113)
|
|
8
|
+
[`867bcb05452bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/867bcb05452bf) -
|
|
9
|
+
Cleaned up platform_editor_controls_patch_analytics and platform_editor_controls_patch_analytics_2
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.7.11
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.fireTypeAheadClosedAnalyticsEvent = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
7
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
-
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; }
|
|
12
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
8
|
var fireTypeAheadClosedAnalyticsEvent = exports.fireTypeAheadClosedAnalyticsEvent = function fireTypeAheadClosedAnalyticsEvent(api, closeAction, hasQuery, inputMethod) {
|
|
14
9
|
var _api$analytics;
|
|
15
10
|
var invocationMethod = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
16
|
-
var additionalAttributes = (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_analytics') ? {
|
|
17
|
-
invocationMethod: invocationMethod
|
|
18
|
-
} : {};
|
|
19
11
|
api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || _api$analytics.actions.fireAnalyticsEvent({
|
|
20
12
|
action: _analytics.ACTION.CLOSED,
|
|
21
13
|
actionSubject: _analytics.ACTION_SUBJECT.TYPEAHEAD,
|
|
22
14
|
actionSubjectId: _analytics.ACTION_SUBJECT_ID.TYPEAHEAD_QUICK_INSERT,
|
|
23
|
-
attributes:
|
|
15
|
+
attributes: {
|
|
24
16
|
inputMethod: inputMethod,
|
|
25
17
|
closeAction: closeAction,
|
|
26
|
-
hasQuery: hasQuery
|
|
27
|
-
|
|
18
|
+
hasQuery: hasQuery,
|
|
19
|
+
invocationMethod: invocationMethod
|
|
20
|
+
},
|
|
28
21
|
eventType: _analytics.EVENT_TYPE.TRACK
|
|
29
22
|
});
|
|
30
23
|
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
export const fireTypeAheadClosedAnalyticsEvent = (api, closeAction, hasQuery, inputMethod, invocationMethod = null) => {
|
|
4
3
|
var _api$analytics;
|
|
5
|
-
const additionalAttributes = fg('platform_editor_controls_patch_analytics') ? {
|
|
6
|
-
invocationMethod
|
|
7
|
-
} : {};
|
|
8
4
|
api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions.fireAnalyticsEvent({
|
|
9
5
|
action: ACTION.CLOSED,
|
|
10
6
|
actionSubject: ACTION_SUBJECT.TYPEAHEAD,
|
|
@@ -13,7 +9,7 @@ export const fireTypeAheadClosedAnalyticsEvent = (api, closeAction, hasQuery, in
|
|
|
13
9
|
inputMethod,
|
|
14
10
|
closeAction,
|
|
15
11
|
hasQuery,
|
|
16
|
-
|
|
12
|
+
invocationMethod
|
|
17
13
|
},
|
|
18
14
|
eventType: EVENT_TYPE.TRACK
|
|
19
15
|
});
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
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; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
2
|
export var fireTypeAheadClosedAnalyticsEvent = function fireTypeAheadClosedAnalyticsEvent(api, closeAction, hasQuery, inputMethod) {
|
|
7
3
|
var _api$analytics;
|
|
8
4
|
var invocationMethod = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
9
|
-
var additionalAttributes = fg('platform_editor_controls_patch_analytics') ? {
|
|
10
|
-
invocationMethod: invocationMethod
|
|
11
|
-
} : {};
|
|
12
5
|
api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || _api$analytics.actions.fireAnalyticsEvent({
|
|
13
6
|
action: ACTION.CLOSED,
|
|
14
7
|
actionSubject: ACTION_SUBJECT.TYPEAHEAD,
|
|
15
8
|
actionSubjectId: ACTION_SUBJECT_ID.TYPEAHEAD_QUICK_INSERT,
|
|
16
|
-
attributes:
|
|
9
|
+
attributes: {
|
|
17
10
|
inputMethod: inputMethod,
|
|
18
11
|
closeAction: closeAction,
|
|
19
|
-
hasQuery: hasQuery
|
|
20
|
-
|
|
12
|
+
hasQuery: hasQuery,
|
|
13
|
+
invocationMethod: invocationMethod
|
|
14
|
+
},
|
|
21
15
|
eventType: EVENT_TYPE.TRACK
|
|
22
16
|
});
|
|
23
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.12",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@atlaskit/primitives": "^14.8.0",
|
|
50
50
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
51
51
|
"@atlaskit/theme": "^18.0.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
53
|
-
"@atlaskit/tokens": "^5.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^5.14.0",
|
|
53
|
+
"@atlaskit/tokens": "^5.1.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1",
|
|
56
56
|
"lodash": "^4.17.21",
|
|
@@ -111,9 +111,6 @@
|
|
|
111
111
|
"platform_editor_controls_patch_4": {
|
|
112
112
|
"type": "boolean"
|
|
113
113
|
},
|
|
114
|
-
"platform_editor_controls_patch_analytics": {
|
|
115
|
-
"type": "boolean"
|
|
116
|
-
},
|
|
117
114
|
"platform_editor_controls_patch_analytics_3": {
|
|
118
115
|
"type": "boolean"
|
|
119
116
|
},
|