@atlaskit/tmp-editor-statsig 158.0.0 → 159.0.1

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-statsig-tmp
2
2
 
3
+ ## 159.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
8
+ VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
9
+ voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
10
+ changes.
11
+
12
+ ## 159.0.0
13
+
14
+ ### Major Changes
15
+
16
+ - [`4067622b56b33`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4067622b56b33) -
17
+ Clean up experiment `platform_editor_flex_based_centering`
18
+
3
19
  ## 158.0.0
4
20
 
5
21
  ### Major Changes
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.dynamicConfigStringListIncludes = dynamicConfigStringListIncludes;
8
- var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
8
+ var _featureGates = _interopRequireDefault(require("@atlaskit/feature-gate-js-client/feature-gates"));
9
9
  function isStringList(value) {
10
10
  return Array.isArray(value) && value.every(function (item) {
11
11
  return typeof item === 'string';
@@ -20,13 +20,13 @@ var STRING_LIST_CONFIG_KEY = 'value';
20
20
  * Used for UX tokens such as `remove-rovo-placeholder` inside `platform_editor_ai_autocomplete_ux_config`.
21
21
  */
22
22
  function dynamicConfigStringListIncludes(configName, token) {
23
- if (!_featureGateJsClient.default.initializeCompleted()) {
23
+ if (!_featureGates.default.initializeCompleted()) {
24
24
  return false;
25
25
  }
26
26
  try {
27
27
  // Dynamic configs are exposed through the same client surface as experiments.
28
28
  // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
29
- var config = _featureGateJsClient.default.getExperiment(configName);
29
+ var config = _featureGates.default.getExperiment(configName);
30
30
  var listCandidate = config.value[STRING_LIST_CONFIG_KEY];
31
31
  if (!isStringList(listCandidate)) {
32
32
  return false;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.expValEqualsInternal = expValEqualsInternal;
8
- var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
8
+ var _featureGates = _interopRequireDefault(require("@atlaskit/feature-gate-js-client/feature-gates"));
9
9
  var _featureFlagsAccessed = require("@atlaskit/react-ufo/feature-flags-accessed");
10
10
  var _experimentsConfig = require("./experiments-config");
11
11
  var _setup = require("./setup");
@@ -37,7 +37,7 @@ function expValEqualsInternal(experimentName, experimentParam, experimentExpecte
37
37
  }
38
38
 
39
39
  // If client is not initialized, we compare with the default value
40
- if (!_featureGateJsClient.default.initializeCompleted()) {
40
+ if (!_featureGates.default.initializeCompleted()) {
41
41
  return experimentDefaultValue === experimentExpectedValue;
42
42
  }
43
43
 
@@ -46,12 +46,12 @@ function expValEqualsInternal(experimentName, experimentParam, experimentExpecte
46
46
  (_editorExperimentsCon = (_editorExperimentsCon2 = _experimentsConfig.editorExperimentsConfig[experimentName]) === null || _editorExperimentsCon2 === void 0 || (_editorExperimentsCon2 = _editorExperimentsCon2.productKeys) === null || _editorExperimentsCon2 === void 0 ? void 0 : _editorExperimentsCon2[_setup._product]) !== null && _editorExperimentsCon !== void 0 ? _editorExperimentsCon : experimentName : experimentName;
47
47
 
48
48
  // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
49
- var experimentValue = _featureGateJsClient.default.getExperimentValue(experimentKeyName, experimentParam, experimentDefaultValue, {
49
+ var experimentValue = _featureGates.default.getExperimentValue(experimentKeyName, experimentParam, experimentDefaultValue, {
50
50
  fireExperimentExposure: experimentExposure
51
51
  });
52
52
  if (
53
53
  // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
54
- _featureGateJsClient.default.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
54
+ _featureGates.default.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
55
55
  // Duplicated from /confluence/next/packages/feature-experiments/src/index.ts
56
56
  (0, _featureFlagsAccessed.addFeatureFlagAccessed)("".concat(experimentKeyName, ":").concat(experimentParam), experimentValue);
57
57
  }
@@ -897,13 +897,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
897
897
  param: 'isEnabled',
898
898
  defaultValue: false
899
899
  }),
900
- platform_editor_flex_based_centering: (0, _createBooleanExperiment.createBooleanExperiment)({
901
- productKeys: {
902
- confluence: 'platform_editor_flex_based_centering'
903
- },
904
- param: 'isEnabled',
905
- defaultValue: false
906
- }),
907
900
  // Added 2026-02-18
908
901
  editor_a11y_7152_profile_card_tab_order: (0, _createBooleanExperiment.createBooleanExperiment)({
909
902
  productKeys: {
@@ -1,4 +1,4 @@
1
- import FeatureGates from '@atlaskit/feature-gate-js-client';
1
+ import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
2
2
  function isStringList(value) {
3
3
  return Array.isArray(value) && value.every(item => typeof item === 'string');
4
4
  }
@@ -1,4 +1,4 @@
1
- import FeatureGates from '@atlaskit/feature-gate-js-client';
1
+ import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
2
2
  import { addFeatureFlagAccessed } from '@atlaskit/react-ufo/feature-flags-accessed';
3
3
  import { editorExperimentsConfig } from './experiments-config';
4
4
  import { _overrides, _product } from './setup';
@@ -891,13 +891,6 @@ export const editorExperimentsConfig = {
891
891
  param: 'isEnabled',
892
892
  defaultValue: false
893
893
  }),
894
- platform_editor_flex_based_centering: createBooleanExperiment({
895
- productKeys: {
896
- confluence: 'platform_editor_flex_based_centering'
897
- },
898
- param: 'isEnabled',
899
- defaultValue: false
900
- }),
901
894
  // Added 2026-02-18
902
895
  editor_a11y_7152_profile_card_tab_order: createBooleanExperiment({
903
896
  productKeys: {
@@ -1,4 +1,4 @@
1
- import FeatureGates from '@atlaskit/feature-gate-js-client';
1
+ import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
2
2
  function isStringList(value) {
3
3
  return Array.isArray(value) && value.every(function (item) {
4
4
  return typeof item === 'string';
@@ -1,4 +1,4 @@
1
- import FeatureGates from '@atlaskit/feature-gate-js-client';
1
+ import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
2
2
  import { addFeatureFlagAccessed } from '@atlaskit/react-ufo/feature-flags-accessed';
3
3
  import { editorExperimentsConfig } from './experiments-config';
4
4
  import { _overrides, _product } from './setup';
@@ -891,13 +891,6 @@ export var editorExperimentsConfig = {
891
891
  param: 'isEnabled',
892
892
  defaultValue: false
893
893
  }),
894
- platform_editor_flex_based_centering: createBooleanExperiment({
895
- productKeys: {
896
- confluence: 'platform_editor_flex_based_centering'
897
- },
898
- param: 'isEnabled',
899
- defaultValue: false
900
- }),
901
894
  // Added 2026-02-18
902
895
  editor_a11y_7152_profile_card_tab_order: createBooleanExperiment({
903
896
  productKeys: {
@@ -191,12 +191,6 @@ export declare const editorExperimentsConfig: {
191
191
  productKeys?: ProductKeys;
192
192
  typeGuard: IsBooleanType;
193
193
  };
194
- platform_editor_flex_based_centering: {
195
- defaultValue: boolean;
196
- param: string;
197
- productKeys?: ProductKeys;
198
- typeGuard: IsBooleanType;
199
- };
200
194
  platform_editor_code_block_q4_lovability: {
201
195
  defaultValue: boolean;
202
196
  param: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "158.0.0",
3
+ "version": "159.0.1",
4
4
  "description": "Temp plugin to ease use of statsig feature flags until platform feature flags are available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",