@atlaskit/editor-plugin-metrics 16.0.13 → 16.0.15

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,21 @@
1
1
  # @atlaskit/editor-plugin-metrics
2
2
 
3
+ ## 16.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 16.0.14
10
+
11
+ ### Patch Changes
12
+
13
+ - [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
14
+ VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
15
+ voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
16
+ changes.
17
+ - Updated dependencies
18
+
3
19
  ## 16.0.13
4
20
 
5
21
  ### Patch Changes
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.metricsPlugin = void 0;
7
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
7
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
8
8
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
9
9
  var _main = require("./pm-plugins/main");
10
10
  var _analytics = require("./pm-plugins/utils/analytics");
@@ -63,7 +63,7 @@ var metricsPlugin = exports.metricsPlugin = function metricsPlugin(_ref) {
63
63
  var toolbarDocking;
64
64
  if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1')) {
65
65
  var _api$userPreferences, _config$userPreferenc;
66
- toolbarDocking = toolbarDocking = (0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin') ? 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 : config === null || config === void 0 || (_config$userPreferenc = config.userPreferencesProvider) === null || _config$userPreferenc === void 0 ? void 0 : _config$userPreferenc.getPreference('toolbarDockingInitialPosition');
66
+ toolbarDocking = toolbarDocking = (0, _fg.fg)('platform_editor_use_preferences_plugin') ? 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 : config === null || config === void 0 || (_config$userPreferenc = config.userPreferencesProvider) === null || _config$userPreferenc === void 0 ? void 0 : _config$userPreferenc.getPreference('toolbarDockingInitialPosition');
67
67
  }
68
68
  var payloadToSend = (0, _analytics.getAnalyticsPayload)({
69
69
  currentContent: tr.doc.content,
@@ -1,4 +1,4 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
1
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
2
2
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
3
3
  import { createPlugin, initialPluginState, metricsKey } from './pm-plugins/main';
4
4
  import { getAnalyticsPayload } from './pm-plugins/utils/analytics';
@@ -1,4 +1,4 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
1
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
2
2
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
3
3
  import { createPlugin, initialPluginState, metricsKey } from './pm-plugins/main';
4
4
  import { getAnalyticsPayload } from './pm-plugins/utils/analytics';
@@ -1,3 +1,3 @@
1
- import type { Step } from '@atlaskit/editor-prosemirror/transform';
1
+ import type { Step } from '@atlaskit/editor-prosemirror/transform-override';
2
2
  import type { MarkChangeAction } from '../types';
3
3
  export declare const checkMarkChanged: (step: Step) => MarkChangeAction | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-metrics",
3
- "version": "16.0.13",
3
+ "version": "16.0.15",
4
4
  "description": "Metrics plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -25,7 +25,7 @@
25
25
  "@atlaskit/editor-plugin-user-preferences": "^13.0.0",
26
26
  "@atlaskit/editor-prosemirror": "^8.0.0",
27
27
  "@atlaskit/platform-feature-flags": "^2.1.0",
28
- "@atlaskit/tmp-editor-statsig": "^159.0.0",
28
+ "@atlaskit/tmp-editor-statsig": "^160.0.0",
29
29
  "@babel/runtime": "^7.0.0",
30
30
  "bind-event-listener": "^3.0.0"
31
31
  },