@atlaskit/tmp-editor-statsig 231.0.0 → 232.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 232.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`44c4a6b4ef4d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/44c4a6b4ef4d3) -
8
+ Clean up experiment `platform_editor_hide_extension_renderer_support`
9
+
10
+ ### Patch Changes
11
+
12
+ - [`64584cfe21afc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/64584cfe21afc) -
13
+ Clean up the shipped `cc_editor_experiments_ufo_gate_reporting` experiment. Editor experiment
14
+ values read through `editorExperiment` and `expValEquals` are now always reported to UFO via
15
+ `addFeatureFlagAccessed`, matching what `expVal` already did.
16
+
3
17
  ## 231.0.0
4
18
 
5
19
  ### Major Changes
@@ -113,11 +113,7 @@ function editorExperiment(experimentName, expectedExperimentValue) {
113
113
  }
114
114
  if (experimentName === EDITOR_CONTROLS_EXPERIMENT) {
115
115
  var cohort = getEditorControlsCohort(experimentConfig.defaultValue);
116
- if (
117
- // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
118
- _featureGates.default.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
119
- (0, _featureFlagsAccessed.addFeatureFlagAccessed)("".concat(experimentName, ":").concat(experimentConfig.param), cohort);
120
- }
116
+ (0, _featureFlagsAccessed.addFeatureFlagAccessed)("".concat(experimentName, ":").concat(experimentConfig.param), cohort);
121
117
  return cohort === expectedExperimentValue;
122
118
  }
123
119
  if (!_setup._product) {
@@ -140,12 +136,6 @@ function editorExperiment(experimentName, expectedExperimentValue) {
140
136
  typeGuard: experimentConfig.typeGuard,
141
137
  fireExperimentExposure: options.exposure
142
138
  });
143
- if (
144
- // When cleaning this gate up -- `calling where the experiments have the product key set`
145
- // in __tests__/experiments should be updated (as it's had the count bumped to include these).
146
- // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
147
- _featureGates.default.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
148
- (0, _featureFlagsAccessed.addFeatureFlagAccessed)("".concat(experimentName, ":").concat(experimentConfig.param), experimentValue);
149
- }
139
+ (0, _featureFlagsAccessed.addFeatureFlagAccessed)("".concat(experimentName, ":").concat(experimentConfig.param), experimentValue);
150
140
  return expectedExperimentValue === experimentValue;
151
141
  }
@@ -49,11 +49,8 @@ function expValEqualsInternal(experimentName, experimentParam, experimentExpecte
49
49
  var experimentValue = _featureGates.default.getExperimentValue(experimentKeyName, experimentParam, experimentDefaultValue, {
50
50
  fireExperimentExposure: experimentExposure
51
51
  });
52
- if (
53
- // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
54
- _featureGates.default.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
55
- // Duplicated from /confluence/next/packages/feature-experiments/src/index.ts
56
- (0, _featureFlagsAccessed.addFeatureFlagAccessed)("".concat(experimentKeyName, ":").concat(experimentParam), experimentValue);
57
- }
52
+
53
+ // Duplicated from /confluence/next/packages/feature-experiments/src/index.ts
54
+ (0, _featureFlagsAccessed.addFeatureFlagAccessed)("".concat(experimentKeyName, ":").concat(experimentParam), experimentValue);
58
55
  return experimentValue === experimentExpectedValue;
59
56
  }
@@ -542,14 +542,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
542
542
  param: 'isEnabled',
543
543
  defaultValue: false
544
544
  }),
545
- // Added 2026-04-13
546
- platform_editor_hide_extension_renderer_support: (0, _createBooleanExperiment.createBooleanExperiment)({
547
- productKeys: {
548
- confluence: 'platform_editor_hide_extension_renderer_support'
549
- },
550
- param: 'isEnabled',
551
- defaultValue: false
552
- }),
553
545
  // Added 2026-07-23
554
546
  platform_editor_fix_new_line_after_heading: (0, _createBooleanExperiment.createBooleanExperiment)({
555
547
  productKeys: {
@@ -105,11 +105,7 @@ export function editorExperiment(experimentName, expectedExperimentValue, option
105
105
  }
106
106
  if (experimentName === EDITOR_CONTROLS_EXPERIMENT) {
107
107
  const cohort = getEditorControlsCohort(experimentConfig.defaultValue);
108
- if (
109
- // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
110
- FeatureGates.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
111
- addFeatureFlagAccessed(`${experimentName}:${experimentConfig.param}`, cohort);
112
- }
108
+ addFeatureFlagAccessed(`${experimentName}:${experimentConfig.param}`, cohort);
113
109
  return cohort === expectedExperimentValue;
114
110
  }
115
111
  if (!_product) {
@@ -132,12 +128,6 @@ export function editorExperiment(experimentName, expectedExperimentValue, option
132
128
  typeGuard: experimentConfig.typeGuard,
133
129
  fireExperimentExposure: options.exposure
134
130
  });
135
- if (
136
- // When cleaning this gate up -- `calling where the experiments have the product key set`
137
- // in __tests__/experiments should be updated (as it's had the count bumped to include these).
138
- // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
139
- FeatureGates.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
140
- addFeatureFlagAccessed(`${experimentName}:${experimentConfig.param}`, experimentValue);
141
- }
131
+ addFeatureFlagAccessed(`${experimentName}:${experimentConfig.param}`, experimentValue);
142
132
  return expectedExperimentValue === experimentValue;
143
133
  }
@@ -43,11 +43,8 @@ export function expValEqualsInternal(experimentName, experimentParam, experiment
43
43
  const experimentValue = FeatureGates.getExperimentValue(experimentKeyName, experimentParam, experimentDefaultValue, {
44
44
  fireExperimentExposure: experimentExposure
45
45
  });
46
- if (
47
- // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
48
- FeatureGates.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
49
- // Duplicated from /confluence/next/packages/feature-experiments/src/index.ts
50
- addFeatureFlagAccessed(`${experimentKeyName}:${experimentParam}`, experimentValue);
51
- }
46
+
47
+ // Duplicated from /confluence/next/packages/feature-experiments/src/index.ts
48
+ addFeatureFlagAccessed(`${experimentKeyName}:${experimentParam}`, experimentValue);
52
49
  return experimentValue === experimentExpectedValue;
53
50
  }
@@ -536,14 +536,6 @@ export const editorExperimentsConfig = {
536
536
  param: 'isEnabled',
537
537
  defaultValue: false
538
538
  }),
539
- // Added 2026-04-13
540
- platform_editor_hide_extension_renderer_support: createBooleanExperiment({
541
- productKeys: {
542
- confluence: 'platform_editor_hide_extension_renderer_support'
543
- },
544
- param: 'isEnabled',
545
- defaultValue: false
546
- }),
547
539
  // Added 2026-07-23
548
540
  platform_editor_fix_new_line_after_heading: createBooleanExperiment({
549
541
  productKeys: {
@@ -106,11 +106,7 @@ export function editorExperiment(experimentName, expectedExperimentValue) {
106
106
  }
107
107
  if (experimentName === EDITOR_CONTROLS_EXPERIMENT) {
108
108
  var cohort = getEditorControlsCohort(experimentConfig.defaultValue);
109
- if (
110
- // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
111
- FeatureGates.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
112
- addFeatureFlagAccessed("".concat(experimentName, ":").concat(experimentConfig.param), cohort);
113
- }
109
+ addFeatureFlagAccessed("".concat(experimentName, ":").concat(experimentConfig.param), cohort);
114
110
  return cohort === expectedExperimentValue;
115
111
  }
116
112
  if (!_product) {
@@ -133,12 +129,6 @@ export function editorExperiment(experimentName, expectedExperimentValue) {
133
129
  typeGuard: experimentConfig.typeGuard,
134
130
  fireExperimentExposure: options.exposure
135
131
  });
136
- if (
137
- // When cleaning this gate up -- `calling where the experiments have the product key set`
138
- // in __tests__/experiments should be updated (as it's had the count bumped to include these).
139
- // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
140
- FeatureGates.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
141
- addFeatureFlagAccessed("".concat(experimentName, ":").concat(experimentConfig.param), experimentValue);
142
- }
132
+ addFeatureFlagAccessed("".concat(experimentName, ":").concat(experimentConfig.param), experimentValue);
143
133
  return expectedExperimentValue === experimentValue;
144
134
  }
@@ -43,11 +43,8 @@ export function expValEqualsInternal(experimentName, experimentParam, experiment
43
43
  var experimentValue = FeatureGates.getExperimentValue(experimentKeyName, experimentParam, experimentDefaultValue, {
44
44
  fireExperimentExposure: experimentExposure
45
45
  });
46
- if (
47
- // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
48
- FeatureGates.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
49
- // Duplicated from /confluence/next/packages/feature-experiments/src/index.ts
50
- addFeatureFlagAccessed("".concat(experimentKeyName, ":").concat(experimentParam), experimentValue);
51
- }
46
+
47
+ // Duplicated from /confluence/next/packages/feature-experiments/src/index.ts
48
+ addFeatureFlagAccessed("".concat(experimentKeyName, ":").concat(experimentParam), experimentValue);
52
49
  return experimentValue === experimentExpectedValue;
53
50
  }
@@ -536,14 +536,6 @@ export var editorExperimentsConfig = {
536
536
  param: 'isEnabled',
537
537
  defaultValue: false
538
538
  }),
539
- // Added 2026-04-13
540
- platform_editor_hide_extension_renderer_support: createBooleanExperiment({
541
- productKeys: {
542
- confluence: 'platform_editor_hide_extension_renderer_support'
543
- },
544
- param: 'isEnabled',
545
- defaultValue: false
546
- }),
547
539
  // Added 2026-07-23
548
540
  platform_editor_fix_new_line_after_heading: createBooleanExperiment({
549
541
  productKeys: {
@@ -401,12 +401,6 @@ export declare const editorExperimentsConfig: {
401
401
  productKeys?: ProductKeys;
402
402
  typeGuard: IsBooleanType;
403
403
  };
404
- platform_editor_hide_extension_renderer_support: {
405
- defaultValue: boolean;
406
- param: string;
407
- productKeys?: ProductKeys;
408
- typeGuard: IsBooleanType;
409
- };
410
404
  platform_editor_fix_new_line_after_heading: {
411
405
  defaultValue: boolean;
412
406
  param: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "231.0.0",
3
+ "version": "232.0.0",
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",