@atlaskit/editor-plugin-metrics 19.0.10 → 19.0.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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-metrics
|
|
2
2
|
|
|
3
|
+
## 19.0.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 19.0.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`0920715a6b9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0920715a6b9fc) -
|
|
14
|
+
Clean up feature gate `platform_editor_use_preferences_plugin`
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 19.0.10
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.metricsPlugin = void 0;
|
|
7
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
8
7
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
9
8
|
var _main = require("./pm-plugins/main");
|
|
10
9
|
var _analytics = require("./pm-plugins/utils/analytics");
|
|
@@ -62,8 +61,8 @@ var metricsPlugin = exports.metricsPlugin = function metricsPlugin(_ref) {
|
|
|
62
61
|
var _api$analytics;
|
|
63
62
|
var toolbarDocking;
|
|
64
63
|
if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1')) {
|
|
65
|
-
var _api$userPreferences
|
|
66
|
-
toolbarDocking =
|
|
64
|
+
var _api$userPreferences;
|
|
65
|
+
toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition;
|
|
67
66
|
}
|
|
68
67
|
var payloadToSend = (0, _analytics.getAnalyticsPayload)({
|
|
69
68
|
currentContent: tr.doc.content,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
2
1
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
3
2
|
import { createPlugin, initialPluginState, metricsKey } from './pm-plugins/main';
|
|
4
3
|
import { getAnalyticsPayload } from './pm-plugins/utils/analytics';
|
|
@@ -52,8 +51,8 @@ export const metricsPlugin = ({
|
|
|
52
51
|
var _api$analytics;
|
|
53
52
|
let toolbarDocking;
|
|
54
53
|
if (expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1')) {
|
|
55
|
-
var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2
|
|
56
|
-
toolbarDocking =
|
|
54
|
+
var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2;
|
|
55
|
+
toolbarDocking = api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : (_api$userPreferences$ = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences$ === void 0 ? void 0 : (_api$userPreferences$2 = _api$userPreferences$.preferences) === null || _api$userPreferences$2 === void 0 ? void 0 : _api$userPreferences$2.toolbarDockingPosition;
|
|
57
56
|
}
|
|
58
57
|
const payloadToSend = getAnalyticsPayload({
|
|
59
58
|
currentContent: tr.doc.content,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
2
1
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
3
2
|
import { createPlugin, initialPluginState, metricsKey } from './pm-plugins/main';
|
|
4
3
|
import { getAnalyticsPayload } from './pm-plugins/utils/analytics';
|
|
@@ -56,8 +55,8 @@ export var metricsPlugin = function metricsPlugin(_ref) {
|
|
|
56
55
|
var _api$analytics;
|
|
57
56
|
var toolbarDocking;
|
|
58
57
|
if (expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1')) {
|
|
59
|
-
var _api$userPreferences
|
|
60
|
-
toolbarDocking =
|
|
58
|
+
var _api$userPreferences;
|
|
59
|
+
toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition;
|
|
61
60
|
}
|
|
62
61
|
var payloadToSend = getAnalyticsPayload({
|
|
63
62
|
currentContent: tr.doc.content,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-metrics",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.12",
|
|
4
4
|
"description": "Metrics plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,21 +24,15 @@
|
|
|
24
24
|
"@atlaskit/editor-plugin-analytics": "^18.0.0",
|
|
25
25
|
"@atlaskit/editor-plugin-user-preferences": "^16.0.0",
|
|
26
26
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
27
|
-
"@atlaskit/
|
|
28
|
-
"@atlaskit/tmp-editor-statsig": "^198.0.0",
|
|
27
|
+
"@atlaskit/tmp-editor-statsig": "^199.0.0",
|
|
29
28
|
"@babel/runtime": "^7.0.0",
|
|
30
29
|
"bind-event-listener": "^3.0.0"
|
|
31
30
|
},
|
|
32
31
|
"peerDependencies": {
|
|
33
|
-
"@atlaskit/editor-common": "^122.
|
|
32
|
+
"@atlaskit/editor-common": "^122.11.0",
|
|
34
33
|
"react": "^18.2.0 || ^19.2.0",
|
|
35
34
|
"react-dom": "^18.2.0 || ^19.2.0"
|
|
36
35
|
},
|
|
37
|
-
"platform-feature-flags": {
|
|
38
|
-
"platform_editor_use_preferences_plugin": {
|
|
39
|
-
"type": "boolean"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
36
|
"devDependencies": {
|
|
43
37
|
"react": "^19.2.0",
|
|
44
38
|
"react-dom": "^19.2.0"
|