@atlaskit/editor-plugin-user-preferences 17.0.2 → 17.0.4

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-user-preferences
2
2
 
3
+ ## 17.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d2d3703fed89b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2d3703fed89b) -
8
+ Clean up experiment `platform_editor_ai_improve_formatting_toolbar`
9
+ - Updated dependencies
10
+
11
+ ## 17.0.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 17.0.2
4
18
 
5
19
  ### Patch Changes
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useUserPreferencesInitListener = void 0;
7
7
  var _react = require("react");
8
8
  var _analytics = require("@atlaskit/editor-common/analytics");
9
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
10
9
  var useUserPreferencesInitListener = exports.useUserPreferencesInitListener = function useUserPreferencesInitListener(isInitialized, resolvedUserPreferences, api) {
11
10
  var isInitializedRef = (0, _react.useRef)(false);
12
11
  (0, _react.useEffect)(function () {
@@ -22,14 +21,6 @@ var useUserPreferencesInitListener = exports.useUserPreferencesInitListener = fu
22
21
  },
23
22
  eventType: _analytics.EVENT_TYPE.OPERATIONAL
24
23
  });
25
-
26
- // Only users with the toolbar docked at the top will see the button, so we
27
- // constrain the experiment population here rather than on every editor load.
28
- // This call is purely to log the exposure.
29
- if (resolvedUserPreferences.toolbarDockingPosition === 'top') {
30
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
31
- (0, _expValEquals.expValEquals)('platform_editor_ai_improve_formatting_toolbar', 'isEnabled', true);
32
- }
33
24
  }
34
25
  }, [api, isInitialized, resolvedUserPreferences]);
35
26
  };
@@ -1,6 +1,5 @@
1
1
  import { useEffect, useRef } from 'react';
2
2
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
3
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
3
  export const useUserPreferencesInitListener = (isInitialized, resolvedUserPreferences, api) => {
5
4
  const isInitializedRef = useRef(false);
6
5
  useEffect(() => {
@@ -16,14 +15,6 @@ export const useUserPreferencesInitListener = (isInitialized, resolvedUserPrefer
16
15
  },
17
16
  eventType: EVENT_TYPE.OPERATIONAL
18
17
  });
19
-
20
- // Only users with the toolbar docked at the top will see the button, so we
21
- // constrain the experiment population here rather than on every editor load.
22
- // This call is purely to log the exposure.
23
- if (resolvedUserPreferences.toolbarDockingPosition === 'top') {
24
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
25
- expValEquals('platform_editor_ai_improve_formatting_toolbar', 'isEnabled', true);
26
- }
27
18
  }
28
19
  }, [api, isInitialized, resolvedUserPreferences]);
29
20
  };
@@ -1,6 +1,5 @@
1
1
  import { useEffect, useRef } from 'react';
2
2
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
3
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
3
  export var useUserPreferencesInitListener = function useUserPreferencesInitListener(isInitialized, resolvedUserPreferences, api) {
5
4
  var isInitializedRef = useRef(false);
6
5
  useEffect(function () {
@@ -16,14 +15,6 @@ export var useUserPreferencesInitListener = function useUserPreferencesInitListe
16
15
  },
17
16
  eventType: EVENT_TYPE.OPERATIONAL
18
17
  });
19
-
20
- // Only users with the toolbar docked at the top will see the button, so we
21
- // constrain the experiment population here rather than on every editor load.
22
- // This call is purely to log the exposure.
23
- if (resolvedUserPreferences.toolbarDockingPosition === 'top') {
24
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
25
- expValEquals('platform_editor_ai_improve_formatting_toolbar', 'isEnabled', true);
26
- }
27
18
  }
28
19
  }, [api, isInitialized, resolvedUserPreferences]);
29
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-user-preferences",
3
- "version": "17.0.2",
3
+ "version": "17.0.4",
4
4
  "description": "UserPreferences plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,12 +27,12 @@
27
27
  "dependencies": {
28
28
  "@atlaskit/editor-plugin-analytics": "^19.0.0",
29
29
  "@atlaskit/editor-prosemirror": "^9.0.0",
30
- "@atlaskit/tmp-editor-statsig": "^201.0.0",
30
+ "@atlaskit/tmp-editor-statsig": "^203.0.0",
31
31
  "@babel/runtime": "^7.0.0",
32
32
  "bind-event-listener": "^3.0.0"
33
33
  },
34
34
  "peerDependencies": {
35
- "@atlaskit/editor-common": "^123.2.0",
35
+ "@atlaskit/editor-common": "^123.8.0",
36
36
  "react": "^18.2.0 || ^19.2.0"
37
37
  },
38
38
  "devDependencies": {