@atlaskit/editor-plugin-autocomplete 9.2.0 → 9.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,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-autocomplete
|
|
2
2
|
|
|
3
|
+
## 9.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
|
|
8
|
+
VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
|
|
9
|
+
voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
|
|
10
|
+
changes.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 9.2.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.succeedExp = exports.startExp = exports.failExp = exports.abortExp = exports.EXPERIENCE_NAME = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _concurrentExperience = require("@atlaskit/ufo/concurrent-experience");
|
|
10
|
+
var _experienceTypes = require("@atlaskit/ufo/experience-types");
|
|
10
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; }
|
|
11
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; } /**
|
|
12
13
|
* UFO experience tracking helpers for `@atlaskit/editor-plugin-autocomplete`.
|
|
@@ -50,15 +51,15 @@ var operationConfig = {
|
|
|
50
51
|
platform: {
|
|
51
52
|
component: 'editor-plugin-autocomplete'
|
|
52
53
|
},
|
|
53
|
-
type:
|
|
54
|
-
performanceType:
|
|
54
|
+
type: _experienceTypes.ExperienceTypes.Operation,
|
|
55
|
+
performanceType: _experienceTypes.ExperiencePerformanceTypes.Custom,
|
|
55
56
|
performanceConfig: {
|
|
56
|
-
histogram: (0, _defineProperty2.default)({},
|
|
57
|
+
histogram: (0, _defineProperty2.default)({}, _experienceTypes.ExperiencePerformanceTypes.Custom, {
|
|
57
58
|
duration: '50_100_250_500_1000_2000_4000'
|
|
58
59
|
})
|
|
59
60
|
}
|
|
60
61
|
};
|
|
61
|
-
var experiences = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, EXPERIENCE_NAME.SLOW_LANE_FETCH, new
|
|
62
|
+
var experiences = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, EXPERIENCE_NAME.SLOW_LANE_FETCH, new _concurrentExperience.ConcurrentExperience(EXPERIENCE_NAME.SLOW_LANE_FETCH, operationConfig)), EXPERIENCE_NAME.LOAD_VOCABULARY, new _concurrentExperience.ConcurrentExperience(EXPERIENCE_NAME.LOAD_VOCABULARY, operationConfig)), EXPERIENCE_NAME.LOAD_VECTORS, new _concurrentExperience.ConcurrentExperience(EXPERIENCE_NAME.LOAD_VECTORS, operationConfig)), EXPERIENCE_NAME.LOAD_PHRASES, new _concurrentExperience.ConcurrentExperience(EXPERIENCE_NAME.LOAD_PHRASES, operationConfig)), EXPERIENCE_NAME.LOAD_GRAMMAR, new _concurrentExperience.ConcurrentExperience(EXPERIENCE_NAME.LOAD_GRAMMAR, operationConfig));
|
|
62
63
|
var startExp = exports.startExp = function startExp(name, id, metadata) {
|
|
63
64
|
if (!isUfoEnabled()) {
|
|
64
65
|
return;
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
* https://hello.atlassian.net/wiki/spaces/AA6/pages/3961393753
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import { ConcurrentExperience
|
|
14
|
+
import { ConcurrentExperience } from '@atlaskit/ufo/concurrent-experience';
|
|
15
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* Experience name strings are surfaced downstream by the UFO pipeline as
|
|
@@ -14,7 +14,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
14
14
|
* https://hello.atlassian.net/wiki/spaces/AA6/pages/3961393753
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { ConcurrentExperience
|
|
17
|
+
import { ConcurrentExperience } from '@atlaskit/ufo/concurrent-experience';
|
|
18
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* Experience name strings are surfaced downstream by the UFO pipeline as
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* they can power FE Reliability SLOs:
|
|
11
11
|
* https://hello.atlassian.net/wiki/spaces/AA6/pages/3961393753
|
|
12
12
|
*/
|
|
13
|
-
import {
|
|
13
|
+
import type { CustomData } from '@atlaskit/ufo/types';
|
|
14
14
|
/**
|
|
15
15
|
* Experience name strings are surfaced downstream by the UFO pipeline as
|
|
16
16
|
* `platform.fe.<type>.<platform.component>.<name>` (e.g.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-autocomplete",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.1",
|
|
4
4
|
"description": "Client-side text autocomplete plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"wink-nlp": "^2.4.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@atlaskit/editor-common": "^119.
|
|
30
|
+
"@atlaskit/editor-common": "^119.16.0",
|
|
31
31
|
"@atlaskit/editor-plugin-analytics": "^15.0.0",
|
|
32
32
|
"react": "^18.2.0 || ^19.2.0"
|
|
33
33
|
},
|
package/src/analytics/ufo.ts
CHANGED
|
@@ -11,12 +11,9 @@
|
|
|
11
11
|
* https://hello.atlassian.net/wiki/spaces/AA6/pages/3961393753
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ExperiencePerformanceTypes,
|
|
18
|
-
ExperienceTypes,
|
|
19
|
-
} from '@atlaskit/ufo';
|
|
14
|
+
import { ConcurrentExperience } from '@atlaskit/ufo/concurrent-experience';
|
|
15
|
+
import type { CustomData } from '@atlaskit/ufo/types';
|
|
16
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
20
17
|
|
|
21
18
|
/**
|
|
22
19
|
* Experience name strings are surfaced downstream by the UFO pipeline as
|