@atlaskit/editor-plugin-metrics 22.0.3 → 22.0.5
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 +17 -0
- package/dist/cjs/metricsPlugin.js +2 -2
- package/dist/cjs/pm-plugins/main.js +2 -2
- package/dist/es2019/metricsPlugin.js +2 -2
- package/dist/es2019/pm-plugins/main.js +2 -2
- package/dist/esm/metricsPlugin.js +2 -2
- package/dist/esm/pm-plugins/main.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-metrics
|
|
2
2
|
|
|
3
|
+
## 22.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 22.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`e339b127f827a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e339b127f827a) -
|
|
14
|
+
Route `platform_editor_controls` checks that used `expValEquals` / `expValEqualsNoExposure`
|
|
15
|
+
through `editorExperiment`, so they respect the per-product experiment key (Confluence
|
|
16
|
+
`platform_editor_controls`, Jira `platform_editor_controls_jira`). Previously these checks always
|
|
17
|
+
read the Confluence experiment, which evaluated to control in Jira.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 22.0.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.metricsPlugin = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
8
8
|
var _main = require("./pm-plugins/main");
|
|
9
9
|
var _analytics = require("./pm-plugins/utils/analytics");
|
|
10
10
|
/**
|
|
@@ -60,7 +60,7 @@ var metricsPlugin = exports.metricsPlugin = function metricsPlugin(_ref) {
|
|
|
60
60
|
if (pluginState && pluginState.totalActionCount > 0 && pluginState.activeSessionTime > 0) {
|
|
61
61
|
var _api$analytics;
|
|
62
62
|
var toolbarDocking;
|
|
63
|
-
if ((0,
|
|
63
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
64
64
|
var _api$userPreferences;
|
|
65
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;
|
|
66
66
|
}
|
|
@@ -9,7 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _bindEventListener = require("bind-event-listener");
|
|
10
10
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
11
11
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
12
|
-
var
|
|
12
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
13
13
|
var _activeSessionTimer = require("./utils/active-session-timer");
|
|
14
14
|
var _analytics = require("./utils/analytics");
|
|
15
15
|
var _getNewPluginState = require("./utils/get-new-plugin-state");
|
|
@@ -119,7 +119,7 @@ var createPlugin = exports.createPlugin = function createPlugin(api, userPrefere
|
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
121
|
var toolbarDocking;
|
|
122
|
-
if ((0,
|
|
122
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
123
123
|
toolbarDocking = userPreferencesProvider === null || userPreferencesProvider === void 0 ? void 0 : userPreferencesProvider.getPreference('toolbarDockingInitialPosition');
|
|
124
124
|
}
|
|
125
125
|
var payloadToSend = (0, _analytics.getAnalyticsPayload)({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
2
2
|
import { createPlugin, initialPluginState, metricsKey } from './pm-plugins/main';
|
|
3
3
|
import { getAnalyticsPayload } from './pm-plugins/utils/analytics';
|
|
4
4
|
/**
|
|
@@ -50,7 +50,7 @@ export const metricsPlugin = ({
|
|
|
50
50
|
if (pluginState && pluginState.totalActionCount > 0 && pluginState.activeSessionTime > 0) {
|
|
51
51
|
var _api$analytics;
|
|
52
52
|
let toolbarDocking;
|
|
53
|
-
if (
|
|
53
|
+
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
54
54
|
var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2;
|
|
55
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;
|
|
56
56
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bind } from 'bind-event-listener';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import {
|
|
4
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
5
5
|
import { ActiveSessionTimer } from './utils/active-session-timer';
|
|
6
6
|
import { getAnalyticsPayload } from './utils/analytics';
|
|
7
7
|
import { getNewPluginState } from './utils/get-new-plugin-state';
|
|
@@ -114,7 +114,7 @@ export const createPlugin = (api, userPreferencesProvider) => {
|
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
116
116
|
let toolbarDocking;
|
|
117
|
-
if (
|
|
117
|
+
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
118
118
|
toolbarDocking = userPreferencesProvider === null || userPreferencesProvider === void 0 ? void 0 : userPreferencesProvider.getPreference('toolbarDockingInitialPosition');
|
|
119
119
|
}
|
|
120
120
|
const payloadToSend = getAnalyticsPayload({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
2
2
|
import { createPlugin, initialPluginState, metricsKey } from './pm-plugins/main';
|
|
3
3
|
import { getAnalyticsPayload } from './pm-plugins/utils/analytics';
|
|
4
4
|
/**
|
|
@@ -54,7 +54,7 @@ export var metricsPlugin = function metricsPlugin(_ref) {
|
|
|
54
54
|
if (pluginState && pluginState.totalActionCount > 0 && pluginState.activeSessionTime > 0) {
|
|
55
55
|
var _api$analytics;
|
|
56
56
|
var toolbarDocking;
|
|
57
|
-
if (
|
|
57
|
+
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
58
58
|
var _api$userPreferences;
|
|
59
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;
|
|
60
60
|
}
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { bind } from 'bind-event-listener';
|
|
5
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
6
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import {
|
|
7
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
8
8
|
import { ActiveSessionTimer } from './utils/active-session-timer';
|
|
9
9
|
import { getAnalyticsPayload } from './utils/analytics';
|
|
10
10
|
import { getNewPluginState } from './utils/get-new-plugin-state';
|
|
@@ -112,7 +112,7 @@ export var createPlugin = function createPlugin(api, userPreferencesProvider) {
|
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
114
|
var toolbarDocking;
|
|
115
|
-
if (
|
|
115
|
+
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
116
116
|
toolbarDocking = userPreferencesProvider === null || userPreferencesProvider === void 0 ? void 0 : userPreferencesProvider.getPreference('toolbarDockingInitialPosition');
|
|
117
117
|
}
|
|
118
118
|
var payloadToSend = getAnalyticsPayload({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-metrics",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.5",
|
|
4
4
|
"description": "Metrics plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"@atlaskit/editor-plugin-analytics": "^21.0.0",
|
|
25
25
|
"@atlaskit/editor-plugin-user-preferences": "^19.0.0",
|
|
26
26
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
27
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
27
|
+
"@atlaskit/tmp-editor-statsig": "^209.0.0",
|
|
28
28
|
"@babel/runtime": "^7.0.0",
|
|
29
29
|
"bind-event-listener": "^3.0.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@atlaskit/editor-common": "^125.
|
|
32
|
+
"@atlaskit/editor-common": "^125.4.0",
|
|
33
33
|
"react": "^18.2.0 || ^19.2.0",
|
|
34
34
|
"react-dom": "^18.2.0 || ^19.2.0"
|
|
35
35
|
},
|