@atlaskit/tmp-editor-statsig 230.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 +22 -0
- package/dist/cjs/editor-experiment.js +2 -12
- package/dist/cjs/exp-val-equals-internal.js +3 -6
- package/dist/cjs/experiments-config.js +0 -16
- package/dist/es2019/editor-experiment.js +2 -12
- package/dist/es2019/exp-val-equals-internal.js +3 -6
- package/dist/es2019/experiments-config.js +0 -16
- package/dist/esm/editor-experiment.js +2 -12
- package/dist/esm/exp-val-equals-internal.js +3 -6
- package/dist/esm/experiments-config.js +0 -16
- package/dist/types/experiments-config.d.ts +0 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
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
|
+
|
|
17
|
+
## 231.0.0
|
|
18
|
+
|
|
19
|
+
### Major Changes
|
|
20
|
+
|
|
21
|
+
- [`97378f96d7fe3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/97378f96d7fe3) -
|
|
22
|
+
Clean up experiment `confluence_fe_disable_comment_if_offline_fix`. The experiment has shipped, so
|
|
23
|
+
its registration has been removed from the editor experiments config.
|
|
24
|
+
|
|
3
25
|
## 230.0.0
|
|
4
26
|
|
|
5
27
|
### 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
53
|
-
//
|
|
54
|
-
|
|
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: {
|
|
@@ -918,14 +910,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
918
910
|
param: 'isEnabled',
|
|
919
911
|
defaultValue: false
|
|
920
912
|
}),
|
|
921
|
-
// Added 2026-04-30
|
|
922
|
-
confluence_fe_disable_comment_if_offline_fix: (0, _createBooleanExperiment.createBooleanExperiment)({
|
|
923
|
-
productKeys: {
|
|
924
|
-
confluence: 'confluence_fe_disable_comment_if_offline_fix'
|
|
925
|
-
},
|
|
926
|
-
param: 'isEnabled',
|
|
927
|
-
defaultValue: false
|
|
928
|
-
}),
|
|
929
913
|
platform_editor_paste_actions_menu_v2: (0, _createMultivariateExperiment.createMultivariateExperiment)({
|
|
930
914
|
productKeys: {
|
|
931
915
|
confluence: 'platform_editor_paste_actions_menu_v2',
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
47
|
-
//
|
|
48
|
-
|
|
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: {
|
|
@@ -912,14 +904,6 @@ export const editorExperimentsConfig = {
|
|
|
912
904
|
param: 'isEnabled',
|
|
913
905
|
defaultValue: false
|
|
914
906
|
}),
|
|
915
|
-
// Added 2026-04-30
|
|
916
|
-
confluence_fe_disable_comment_if_offline_fix: createBooleanExperiment({
|
|
917
|
-
productKeys: {
|
|
918
|
-
confluence: 'confluence_fe_disable_comment_if_offline_fix'
|
|
919
|
-
},
|
|
920
|
-
param: 'isEnabled',
|
|
921
|
-
defaultValue: false
|
|
922
|
-
}),
|
|
923
907
|
platform_editor_paste_actions_menu_v2: createMultivariateExperiment({
|
|
924
908
|
productKeys: {
|
|
925
909
|
confluence: 'platform_editor_paste_actions_menu_v2',
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
47
|
-
//
|
|
48
|
-
|
|
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: {
|
|
@@ -912,14 +904,6 @@ export var editorExperimentsConfig = {
|
|
|
912
904
|
param: 'isEnabled',
|
|
913
905
|
defaultValue: false
|
|
914
906
|
}),
|
|
915
|
-
// Added 2026-04-30
|
|
916
|
-
confluence_fe_disable_comment_if_offline_fix: createBooleanExperiment({
|
|
917
|
-
productKeys: {
|
|
918
|
-
confluence: 'confluence_fe_disable_comment_if_offline_fix'
|
|
919
|
-
},
|
|
920
|
-
param: 'isEnabled',
|
|
921
|
-
defaultValue: false
|
|
922
|
-
}),
|
|
923
907
|
platform_editor_paste_actions_menu_v2: createMultivariateExperiment({
|
|
924
908
|
productKeys: {
|
|
925
909
|
confluence: 'platform_editor_paste_actions_menu_v2',
|
|
@@ -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;
|
|
@@ -654,12 +648,6 @@ export declare const editorExperimentsConfig: {
|
|
|
654
648
|
productKeys?: ProductKeys;
|
|
655
649
|
typeGuard: IsBooleanType;
|
|
656
650
|
};
|
|
657
|
-
confluence_fe_disable_comment_if_offline_fix: {
|
|
658
|
-
defaultValue: boolean;
|
|
659
|
-
param: string;
|
|
660
|
-
productKeys?: ProductKeys;
|
|
661
|
-
typeGuard: IsBooleanType;
|
|
662
|
-
};
|
|
663
651
|
platform_editor_use_html_plus_parser: {
|
|
664
652
|
defaultValue: boolean;
|
|
665
653
|
param: string;
|
package/package.json
CHANGED