@atlaskit/editor-plugin-metrics 3.5.3 → 4.0.0

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/cjs/metricsPlugin.js +2 -2
  3. package/dist/es2019/metricsPlugin.js +2 -2
  4. package/dist/esm/metricsPlugin.js +2 -2
  5. package/dist/types/metricsPluginType.d.ts +2 -1
  6. package/dist/types/pm-plugins/main.d.ts +2 -2
  7. package/dist/types/pm-plugins/utils/analytics.d.ts +1 -1
  8. package/dist/types/pm-plugins/utils/check-tr-actions/tr-checks/check-deleting-content.d.ts +1 -1
  9. package/dist/types/pm-plugins/utils/check-tr-actions/tr-checks/check-empty-line-added-or-deleted.d.ts +1 -1
  10. package/dist/types/pm-plugins/utils/check-tr-actions/tr-checks/check-list-type-node-changed.d.ts +1 -1
  11. package/dist/types/pm-plugins/utils/check-tr-actions/tr-checks/check-mark-changed.d.ts +1 -1
  12. package/dist/types/pm-plugins/utils/check-tr-actions/tr-checks/check-node-attribute-changed.d.ts +1 -1
  13. package/dist/types/pm-plugins/utils/check-tr-actions/tr-checks/check-status-changed.d.ts +1 -1
  14. package/dist/types/pm-plugins/utils/check-tr-actions/tr-checks/check-text-input.d.ts +1 -1
  15. package/dist/types/pm-plugins/utils/check-tr-actions/types.d.ts +2 -2
  16. package/dist/types/pm-plugins/utils/get-node-changes.d.ts +1 -1
  17. package/dist/types/pm-plugins/utils/is-safe-insert.d.ts +1 -1
  18. package/dist/types-ts4.5/metricsPluginType.d.ts +3 -1
  19. package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
  20. package/dist/types-ts4.5/pm-plugins/utils/analytics.d.ts +1 -1
  21. package/dist/types-ts4.5/pm-plugins/utils/check-tr-actions/tr-checks/check-deleting-content.d.ts +1 -1
  22. package/dist/types-ts4.5/pm-plugins/utils/check-tr-actions/tr-checks/check-empty-line-added-or-deleted.d.ts +1 -1
  23. package/dist/types-ts4.5/pm-plugins/utils/check-tr-actions/tr-checks/check-list-type-node-changed.d.ts +1 -1
  24. package/dist/types-ts4.5/pm-plugins/utils/check-tr-actions/tr-checks/check-mark-changed.d.ts +1 -1
  25. package/dist/types-ts4.5/pm-plugins/utils/check-tr-actions/tr-checks/check-node-attribute-changed.d.ts +1 -1
  26. package/dist/types-ts4.5/pm-plugins/utils/check-tr-actions/tr-checks/check-status-changed.d.ts +1 -1
  27. package/dist/types-ts4.5/pm-plugins/utils/check-tr-actions/tr-checks/check-text-input.d.ts +1 -1
  28. package/dist/types-ts4.5/pm-plugins/utils/check-tr-actions/types.d.ts +2 -2
  29. package/dist/types-ts4.5/pm-plugins/utils/get-node-changes.d.ts +1 -1
  30. package/dist/types-ts4.5/pm-plugins/utils/is-safe-insert.d.ts +1 -1
  31. package/package.json +9 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # @atlaskit/editor-plugin-metrics
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#181024](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181024)
8
+ [`8e80c487ca307`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e80c487ca307) - ##
9
+ Make `@atlaskit/editor-common` a peer dependency
10
+
11
+ **WHAT:** `@atlaskit/editor-common` has been moved from `dependencies` to `peerDependencies` in
12
+ all editor plugin packages.
13
+
14
+ **WHY:** This change ensures that only a single version of `@atlaskit/editor-common` is used in
15
+ consuming applications, preventing issues caused by multiple versions of singleton libraries (such
16
+ as context mismatches or duplicated state). This is especially important for packages that rely on
17
+ shared context or singletons.
18
+
19
+ **HOW TO ADJUST:**
20
+
21
+ - Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
22
+ any of these editor plugins.
23
+ - Ensure the version you install matches the version required by the plugins.
24
+ - You can use the
25
+ [`check-peer-dependencies`](https://www.npmjs.com/package/check-peer-dependencies) package to
26
+ verify that all required peer dependencies are installed and compatible.
27
+ - Example install command:
28
+ ```
29
+ npm install @atlaskit/editor-common
30
+ ```
31
+ or
32
+ ```
33
+ yarn add @atlaskit/editor-common
34
+ ```
35
+
36
+ **Note:** This is a breaking change. If `@atlaskit/editor-common` is not installed at the
37
+ application level, you may see errors or unexpected behavior.
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies
42
+
43
+ ## 3.6.0
44
+
45
+ ### Minor Changes
46
+
47
+ - [#177157](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/177157)
48
+ [`6bcf8912217df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6bcf8912217df) -
49
+ ED-27284 additional integration with user preference plugin
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies
54
+
3
55
  ## 3.5.3
4
56
 
5
57
  ### Patch Changes
@@ -62,8 +62,8 @@ var metricsPlugin = exports.metricsPlugin = function metricsPlugin(_ref) {
62
62
  var _api$analytics;
63
63
  var toolbarDocking;
64
64
  if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_13')) {
65
- var _config$userPreferenc;
66
- toolbarDocking = config === null || config === void 0 || (_config$userPreferenc = config.userPreferencesProvider) === null || _config$userPreferenc === void 0 ? void 0 : _config$userPreferenc.getPreference('toolbarDockingInitialPosition');
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');
67
67
  }
68
68
  var payloadToSend = (0, _analytics.getAnalyticsPayload)({
69
69
  currentContent: tr.doc.content,
@@ -52,8 +52,8 @@ export const metricsPlugin = ({
52
52
  var _api$analytics;
53
53
  let toolbarDocking;
54
54
  if (expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_13')) {
55
- var _config$userPreferenc;
56
- toolbarDocking = config === null || config === void 0 ? void 0 : (_config$userPreferenc = config.userPreferencesProvider) === null || _config$userPreferenc === void 0 ? void 0 : _config$userPreferenc.getPreference('toolbarDockingInitialPosition');
55
+ var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2, _config$userPreferenc;
56
+ toolbarDocking = toolbarDocking = fg('platform_editor_use_preferences_plugin') ? 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 : config === null || config === void 0 ? void 0 : (_config$userPreferenc = config.userPreferencesProvider) === null || _config$userPreferenc === void 0 ? void 0 : _config$userPreferenc.getPreference('toolbarDockingInitialPosition');
57
57
  }
58
58
  const payloadToSend = getAnalyticsPayload({
59
59
  currentContent: tr.doc.content,
@@ -56,8 +56,8 @@ export var metricsPlugin = function metricsPlugin(_ref) {
56
56
  var _api$analytics;
57
57
  var toolbarDocking;
58
58
  if (expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_13')) {
59
- var _config$userPreferenc;
60
- toolbarDocking = config === null || config === void 0 || (_config$userPreferenc = config.userPreferencesProvider) === null || _config$userPreferenc === void 0 ? void 0 : _config$userPreferenc.getPreference('toolbarDockingInitialPosition');
59
+ var _api$userPreferences, _config$userPreferenc;
60
+ toolbarDocking = toolbarDocking = 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');
61
61
  }
62
62
  var payloadToSend = getAnalyticsPayload({
63
63
  currentContent: tr.doc.content,
@@ -1,5 +1,6 @@
1
1
  import type { EditorCommand, NextEditorPlugin, OptionalPlugin, UserPreferencesProvider } from '@atlaskit/editor-common/types';
2
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
+ import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
3
4
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
5
  import type { MetricsState } from './pm-plugins/main';
5
6
  type handleIntentToStartEditProps = {
@@ -12,7 +13,7 @@ export type MetricsPluginOptions = {
12
13
  };
13
14
  export type MetricsPlugin = NextEditorPlugin<'metrics', {
14
15
  pluginConfiguration?: MetricsPluginOptions;
15
- dependencies: [OptionalPlugin<AnalyticsPlugin>];
16
+ dependencies: [OptionalPlugin<AnalyticsPlugin>, OptionalPlugin<UserPreferencesPlugin>];
16
17
  sharedState: MetricsState;
17
18
  commands: {
18
19
  setContentMoved: () => EditorCommand;
@@ -1,7 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { UserPreferencesProvider, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
4
- import { PluginKey, Selection } from '@atlaskit/editor-prosemirror/state';
3
+ import { type Fragment } from '@atlaskit/editor-prosemirror/model';
4
+ import { PluginKey, type Selection } from '@atlaskit/editor-prosemirror/state';
5
5
  import { type MetricsPlugin } from '../metricsPluginType';
6
6
  import { type TrActionType } from './utils/check-tr-actions/types';
7
7
  export declare const metricsKey: PluginKey<any>;
@@ -1,5 +1,5 @@
1
1
  import { type ActiveSessionEventPayload } from '@atlaskit/editor-common/analytics';
2
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
2
+ import { type Fragment } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { MetricsState } from '../main';
4
4
  export declare const getAnalyticsPayload: ({ currentContent, pluginState, toolbarDocking, }: {
5
5
  currentContent: Fragment;
@@ -1,3 +1,3 @@
1
- import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
2
  import { ActionType, type TrAction } from '../types';
3
3
  export declare const checkDeletingContent: (step: ReplaceStep) => TrAction<ActionType.DELETING_CONTENT> | undefined;
@@ -1,3 +1,3 @@
1
- import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
2
  import { ActionType, type TrAction } from '../types';
3
3
  export declare const checkEmptyLineAddedOrDeleted: (step: ReplaceStep) => TrAction<ActionType.EMPTY_LINE_ADDED_OR_DELETED> | undefined;
@@ -1,3 +1,3 @@
1
- import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type ReplaceAroundStep, type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
2
  import { ActionType, type TrAction } from '../types';
3
3
  export declare const checkListTypeNodeChanged: (step: ReplaceStep | ReplaceAroundStep) => TrAction<ActionType.INSERTING_NEW_LIST_TYPE_NODE | ActionType.UPDATING_NEW_LIST_TYPE_ITEM> | undefined;
@@ -1,3 +1,3 @@
1
- import { Step } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type Step } from '@atlaskit/editor-prosemirror/transform';
2
2
  import { type MarkChangeAction } from '../types';
3
3
  export declare const checkMarkChanged: (step: Step) => MarkChangeAction | undefined;
@@ -1,4 +1,4 @@
1
1
  import type { ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
2
- import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
+ import { type ReplaceAroundStep, type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { type AttrChangeAction } from '../types';
4
4
  export declare const checkNodeAttributeChanged: (tr: ReadonlyTransaction, step: ReplaceAroundStep | ReplaceStep) => AttrChangeAction | undefined;
@@ -1,3 +1,3 @@
1
- import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
2
  import { type StatusChangeAction } from '../types';
3
3
  export declare const checkStatusChanged: (step: ReplaceStep) => StatusChangeAction | undefined;
@@ -1,3 +1,3 @@
1
- import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
2
  import { type TrAction, ActionType } from '../types';
3
3
  export declare const checkTextInput: (step: ReplaceStep) => TrAction<ActionType.TEXT_INPUT> | undefined;
@@ -1,5 +1,5 @@
1
- import { Slice } from '@atlaskit/editor-prosemirror/model';
2
- import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type Slice } from '@atlaskit/editor-prosemirror/model';
2
+ import { type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
3
3
  export interface DetailedReplaceStep extends ReplaceStep {
4
4
  from: number;
5
5
  to: number;
@@ -1,4 +1,4 @@
1
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
1
+ import { type Fragment } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { MetricsState } from '../main';
3
3
  export declare const getNodeChanges: ({ currentContent, pluginState, }: {
4
4
  currentContent: Fragment;
@@ -1,3 +1,3 @@
1
1
  import type { ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
2
- import { ActionType } from './check-tr-actions/types';
2
+ import { type ActionType } from './check-tr-actions/types';
3
3
  export declare const isSafeInsert: (tr: ReadonlyTransaction, insertPos: number, trType?: ActionType) => boolean;
@@ -1,5 +1,6 @@
1
1
  import type { EditorCommand, NextEditorPlugin, OptionalPlugin, UserPreferencesProvider } from '@atlaskit/editor-common/types';
2
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
+ import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
3
4
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
5
  import type { MetricsState } from './pm-plugins/main';
5
6
  type handleIntentToStartEditProps = {
@@ -13,7 +14,8 @@ export type MetricsPluginOptions = {
13
14
  export type MetricsPlugin = NextEditorPlugin<'metrics', {
14
15
  pluginConfiguration?: MetricsPluginOptions;
15
16
  dependencies: [
16
- OptionalPlugin<AnalyticsPlugin>
17
+ OptionalPlugin<AnalyticsPlugin>,
18
+ OptionalPlugin<UserPreferencesPlugin>
17
19
  ];
18
20
  sharedState: MetricsState;
19
21
  commands: {
@@ -1,7 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { UserPreferencesProvider, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
4
- import { PluginKey, Selection } from '@atlaskit/editor-prosemirror/state';
3
+ import { type Fragment } from '@atlaskit/editor-prosemirror/model';
4
+ import { PluginKey, type Selection } from '@atlaskit/editor-prosemirror/state';
5
5
  import { type MetricsPlugin } from '../metricsPluginType';
6
6
  import { type TrActionType } from './utils/check-tr-actions/types';
7
7
  export declare const metricsKey: PluginKey<any>;
@@ -1,5 +1,5 @@
1
1
  import { type ActiveSessionEventPayload } from '@atlaskit/editor-common/analytics';
2
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
2
+ import { type Fragment } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { MetricsState } from '../main';
4
4
  export declare const getAnalyticsPayload: ({ currentContent, pluginState, toolbarDocking, }: {
5
5
  currentContent: Fragment;
@@ -1,3 +1,3 @@
1
- import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
2
  import { ActionType, type TrAction } from '../types';
3
3
  export declare const checkDeletingContent: (step: ReplaceStep) => TrAction<ActionType.DELETING_CONTENT> | undefined;
@@ -1,3 +1,3 @@
1
- import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
2
  import { ActionType, type TrAction } from '../types';
3
3
  export declare const checkEmptyLineAddedOrDeleted: (step: ReplaceStep) => TrAction<ActionType.EMPTY_LINE_ADDED_OR_DELETED> | undefined;
@@ -1,3 +1,3 @@
1
- import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type ReplaceAroundStep, type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
2
  import { ActionType, type TrAction } from '../types';
3
3
  export declare const checkListTypeNodeChanged: (step: ReplaceStep | ReplaceAroundStep) => TrAction<ActionType.INSERTING_NEW_LIST_TYPE_NODE | ActionType.UPDATING_NEW_LIST_TYPE_ITEM> | undefined;
@@ -1,3 +1,3 @@
1
- import { Step } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type Step } from '@atlaskit/editor-prosemirror/transform';
2
2
  import { type MarkChangeAction } from '../types';
3
3
  export declare const checkMarkChanged: (step: Step) => MarkChangeAction | undefined;
@@ -1,4 +1,4 @@
1
1
  import type { ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
2
- import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
+ import { type ReplaceAroundStep, type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { type AttrChangeAction } from '../types';
4
4
  export declare const checkNodeAttributeChanged: (tr: ReadonlyTransaction, step: ReplaceAroundStep | ReplaceStep) => AttrChangeAction | undefined;
@@ -1,3 +1,3 @@
1
- import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
2
  import { type StatusChangeAction } from '../types';
3
3
  export declare const checkStatusChanged: (step: ReplaceStep) => StatusChangeAction | undefined;
@@ -1,3 +1,3 @@
1
- import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
2
  import { type TrAction, ActionType } from '../types';
3
3
  export declare const checkTextInput: (step: ReplaceStep) => TrAction<ActionType.TEXT_INPUT> | undefined;
@@ -1,5 +1,5 @@
1
- import { Slice } from '@atlaskit/editor-prosemirror/model';
2
- import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
1
+ import { type Slice } from '@atlaskit/editor-prosemirror/model';
2
+ import { type ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
3
3
  export interface DetailedReplaceStep extends ReplaceStep {
4
4
  from: number;
5
5
  to: number;
@@ -1,4 +1,4 @@
1
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
1
+ import { type Fragment } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { MetricsState } from '../main';
3
3
  export declare const getNodeChanges: ({ currentContent, pluginState, }: {
4
4
  currentContent: Fragment;
@@ -1,3 +1,3 @@
1
1
  import type { ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
2
- import { ActionType } from './check-tr-actions/types';
2
+ import { type ActionType } from './check-tr-actions/types';
3
3
  export declare const isSafeInsert: (tr: ReadonlyTransaction, insertPos: number, trType?: ActionType) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-metrics",
3
- "version": "3.5.3",
3
+ "version": "4.0.0",
4
4
  "description": "Metrics plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -10,8 +10,7 @@
10
10
  "atlassian": {
11
11
  "team": "Editor: Jenga",
12
12
  "singleton": true,
13
- "releaseModel": "continuous",
14
- "runReact18": true
13
+ "releaseModel": "continuous"
15
14
  },
16
15
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
17
16
  "main": "dist/cjs/index.js",
@@ -33,15 +32,16 @@
33
32
  },
34
33
  "dependencies": {
35
34
  "@atlaskit/adf-schema": "^47.6.0",
36
- "@atlaskit/editor-common": "^107.0.0",
37
- "@atlaskit/editor-plugin-analytics": "^2.3.0",
35
+ "@atlaskit/editor-plugin-analytics": "^3.0.0",
36
+ "@atlaskit/editor-plugin-user-preferences": "^1.0.0",
38
37
  "@atlaskit/editor-prosemirror": "7.0.0",
39
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
- "@atlaskit/tmp-editor-statsig": "^8.0.0",
39
+ "@atlaskit/tmp-editor-statsig": "^8.7.0",
41
40
  "@babel/runtime": "^7.0.0",
42
41
  "bind-event-listener": "^3.0.0"
43
42
  },
44
43
  "peerDependencies": {
44
+ "@atlaskit/editor-common": "^107.6.0",
45
45
  "react": "^18.2.0",
46
46
  "react-dom": "^18.2.0"
47
47
  },
@@ -83,6 +83,9 @@
83
83
  }
84
84
  },
85
85
  "platform-feature-flags": {
86
+ "platform_editor_use_preferences_plugin": {
87
+ "type": "boolean"
88
+ },
86
89
  "platform_editor_controls_patch_13": {
87
90
  "type": "boolean"
88
91
  }