@atlaskit/tmp-editor-statsig 11.3.1 → 11.4.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 +7 -0
- package/dist/cjs/exp-test-overrides.js +2 -1
- package/dist/cjs/expVal.js +19 -1
- package/dist/cjs/experiments-config.js +10 -0
- package/dist/cjs/setup.js +1 -3
- package/dist/es2019/exp-test-overrides.js +2 -1
- package/dist/es2019/expVal.js +20 -2
- package/dist/es2019/experiments-config.js +10 -0
- package/dist/es2019/setup.js +1 -3
- package/dist/esm/exp-test-overrides.js +2 -1
- package/dist/esm/expVal.js +20 -2
- package/dist/esm/experiments-config.js +10 -0
- package/dist/esm/setup.js +1 -3
- package/dist/types/experiments-config.d.ts +7 -0
- package/dist/types-ts4.5/experiments-config.d.ts +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 11.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`4339fad1c3ec0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4339fad1c3ec0) -
|
|
8
|
+
Updated expVal to default true for tests
|
|
9
|
+
|
|
3
10
|
## 11.3.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -15,7 +15,8 @@ var testMultivariateOverrides = exports.testMultivariateOverrides = {
|
|
|
15
15
|
platform_editor_insertion: 'control',
|
|
16
16
|
editor_ai_inline_suggestion_date_v2: 'control',
|
|
17
17
|
platform_editor_add_orange_highlight_color: 'control',
|
|
18
|
-
platform_editor_ai_iw_adf_streaming: 'control'
|
|
18
|
+
platform_editor_ai_iw_adf_streaming: 'control',
|
|
19
|
+
platform_hover_card_preview_panel: 'control'
|
|
19
20
|
};
|
|
20
21
|
var testBooleanOverrides = exports.testBooleanOverrides = {
|
|
21
22
|
platform_editor_feedback_mandatory_rating: false,
|
package/dist/cjs/expVal.js
CHANGED
|
@@ -10,7 +10,7 @@ var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gat
|
|
|
10
10
|
var _experimentsConfig = require("./experiments-config");
|
|
11
11
|
var _setup = require("./setup");
|
|
12
12
|
function expValInternal(_ref) {
|
|
13
|
-
var _experimentConfig$pro;
|
|
13
|
+
var _paramOverrides2, _experimentConfig$pro;
|
|
14
14
|
var experimentName = _ref.experimentName,
|
|
15
15
|
experimentParam = _ref.experimentParam,
|
|
16
16
|
defaultValue = _ref.defaultValue,
|
|
@@ -22,6 +22,24 @@ function expValInternal(_ref) {
|
|
|
22
22
|
// We will definitely crash via any code path later in this function - this just makes the error explicit and clear.
|
|
23
23
|
throw new Error("Editor experiment configuration is not defined ".concat(experimentName, ". Likely the experiment does not exist or editor package versions are misaligned"));
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
// @ts-ignore need to loosen the type here to allow for any experiment name
|
|
27
|
+
if (_setup._overrides[experimentName] !== undefined) {
|
|
28
|
+
// This will be hit in the case of a test setting an override
|
|
29
|
+
// @ts-ignore need to loosen the type here to allow for any experiment name
|
|
30
|
+
return _setup._overrides[experimentName];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Check for parameter overrides
|
|
34
|
+
var paramOverride = (_paramOverrides2 = _setup._paramOverrides[experimentName]) === null || _paramOverrides2 === void 0 ? void 0 : _paramOverrides2[experimentParam];
|
|
35
|
+
if (paramOverride !== undefined) {
|
|
36
|
+
return paramOverride;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// If client is not initialized, we return the default value
|
|
40
|
+
if (!_featureGateJsClient.default.initializeCompleted()) {
|
|
41
|
+
return defaultValue;
|
|
42
|
+
}
|
|
25
43
|
if (!_setup._product) {
|
|
26
44
|
// This will be hit in the case of a product not having setup the editor experiment tooling
|
|
27
45
|
return defaultValue;
|
|
@@ -547,6 +547,16 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
547
547
|
param: 'isEnabled',
|
|
548
548
|
defaultValue: false
|
|
549
549
|
}),
|
|
550
|
+
// Added 2025-08-17
|
|
551
|
+
platform_hover_card_preview_panel: (0, _experimentBuilders.createMultivariateExperiment)({
|
|
552
|
+
productKeys: {
|
|
553
|
+
confluence: 'platform_hover_card_preview_panel',
|
|
554
|
+
jira: 'platform_hover_card_preview_panel'
|
|
555
|
+
},
|
|
556
|
+
param: 'cohort',
|
|
557
|
+
values: ['control', 'test'],
|
|
558
|
+
defaultValue: 'control'
|
|
559
|
+
}),
|
|
550
560
|
// Added 2025--8-05
|
|
551
561
|
platform_editor_block_menu: (0, _experimentBuilders.createBooleanExperiment)({
|
|
552
562
|
productKeys: {
|
package/dist/cjs/setup.js
CHANGED
|
@@ -70,7 +70,5 @@ paramOverrides) {
|
|
|
70
70
|
exports._overrides = _overrides = testOverrides;
|
|
71
71
|
}
|
|
72
72
|
exports._product = _product = product;
|
|
73
|
-
|
|
74
|
-
exports._paramOverrides = _paramOverrides = paramOverrides;
|
|
75
|
-
}
|
|
73
|
+
exports._paramOverrides = _paramOverrides = paramOverrides || {};
|
|
76
74
|
}
|
|
@@ -9,7 +9,8 @@ export const testMultivariateOverrides = {
|
|
|
9
9
|
platform_editor_insertion: 'control',
|
|
10
10
|
editor_ai_inline_suggestion_date_v2: 'control',
|
|
11
11
|
platform_editor_add_orange_highlight_color: 'control',
|
|
12
|
-
platform_editor_ai_iw_adf_streaming: 'control'
|
|
12
|
+
platform_editor_ai_iw_adf_streaming: 'control',
|
|
13
|
+
platform_hover_card_preview_panel: 'control'
|
|
13
14
|
};
|
|
14
15
|
export const testBooleanOverrides = {
|
|
15
16
|
platform_editor_feedback_mandatory_rating: false,
|
package/dist/es2019/expVal.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
2
2
|
import { editorExperimentsConfig } from './experiments-config';
|
|
3
|
-
import { _product } from './setup';
|
|
3
|
+
import { _overrides, _paramOverrides, _product } from './setup';
|
|
4
4
|
function expValInternal({
|
|
5
5
|
experimentName,
|
|
6
6
|
experimentParam,
|
|
7
7
|
defaultValue,
|
|
8
8
|
fireExperimentExposure
|
|
9
9
|
}) {
|
|
10
|
-
var _experimentConfig$pro;
|
|
10
|
+
var _paramOverrides2, _experimentConfig$pro;
|
|
11
11
|
const experimentConfig = editorExperimentsConfig[experimentName];
|
|
12
12
|
if (experimentConfig === undefined) {
|
|
13
13
|
// Warning! If a product is improperly configured (ie. their editor packages are misaligned)
|
|
@@ -15,6 +15,24 @@ function expValInternal({
|
|
|
15
15
|
// We will definitely crash via any code path later in this function - this just makes the error explicit and clear.
|
|
16
16
|
throw new Error(`Editor experiment configuration is not defined ${experimentName}. Likely the experiment does not exist or editor package versions are misaligned`);
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
// @ts-ignore need to loosen the type here to allow for any experiment name
|
|
20
|
+
if (_overrides[experimentName] !== undefined) {
|
|
21
|
+
// This will be hit in the case of a test setting an override
|
|
22
|
+
// @ts-ignore need to loosen the type here to allow for any experiment name
|
|
23
|
+
return _overrides[experimentName];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Check for parameter overrides
|
|
27
|
+
const paramOverride = (_paramOverrides2 = _paramOverrides[experimentName]) === null || _paramOverrides2 === void 0 ? void 0 : _paramOverrides2[experimentParam];
|
|
28
|
+
if (paramOverride !== undefined) {
|
|
29
|
+
return paramOverride;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// If client is not initialized, we return the default value
|
|
33
|
+
if (!FeatureGates.initializeCompleted()) {
|
|
34
|
+
return defaultValue;
|
|
35
|
+
}
|
|
18
36
|
if (!_product) {
|
|
19
37
|
// This will be hit in the case of a product not having setup the editor experiment tooling
|
|
20
38
|
return defaultValue;
|
|
@@ -541,6 +541,16 @@ export const editorExperimentsConfig = {
|
|
|
541
541
|
param: 'isEnabled',
|
|
542
542
|
defaultValue: false
|
|
543
543
|
}),
|
|
544
|
+
// Added 2025-08-17
|
|
545
|
+
platform_hover_card_preview_panel: createMultivariateExperiment({
|
|
546
|
+
productKeys: {
|
|
547
|
+
confluence: 'platform_hover_card_preview_panel',
|
|
548
|
+
jira: 'platform_hover_card_preview_panel'
|
|
549
|
+
},
|
|
550
|
+
param: 'cohort',
|
|
551
|
+
values: ['control', 'test'],
|
|
552
|
+
defaultValue: 'control'
|
|
553
|
+
}),
|
|
544
554
|
// Added 2025--8-05
|
|
545
555
|
platform_editor_block_menu: createBooleanExperiment({
|
|
546
556
|
productKeys: {
|
package/dist/es2019/setup.js
CHANGED
|
@@ -9,7 +9,8 @@ export var testMultivariateOverrides = {
|
|
|
9
9
|
platform_editor_insertion: 'control',
|
|
10
10
|
editor_ai_inline_suggestion_date_v2: 'control',
|
|
11
11
|
platform_editor_add_orange_highlight_color: 'control',
|
|
12
|
-
platform_editor_ai_iw_adf_streaming: 'control'
|
|
12
|
+
platform_editor_ai_iw_adf_streaming: 'control',
|
|
13
|
+
platform_hover_card_preview_panel: 'control'
|
|
13
14
|
};
|
|
14
15
|
export var testBooleanOverrides = {
|
|
15
16
|
platform_editor_feedback_mandatory_rating: false,
|
package/dist/esm/expVal.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
2
2
|
import { editorExperimentsConfig } from './experiments-config';
|
|
3
|
-
import { _product } from './setup';
|
|
3
|
+
import { _overrides, _paramOverrides, _product } from './setup';
|
|
4
4
|
function expValInternal(_ref) {
|
|
5
|
-
var _experimentConfig$pro;
|
|
5
|
+
var _paramOverrides2, _experimentConfig$pro;
|
|
6
6
|
var experimentName = _ref.experimentName,
|
|
7
7
|
experimentParam = _ref.experimentParam,
|
|
8
8
|
defaultValue = _ref.defaultValue,
|
|
@@ -14,6 +14,24 @@ function expValInternal(_ref) {
|
|
|
14
14
|
// We will definitely crash via any code path later in this function - this just makes the error explicit and clear.
|
|
15
15
|
throw new Error("Editor experiment configuration is not defined ".concat(experimentName, ". Likely the experiment does not exist or editor package versions are misaligned"));
|
|
16
16
|
}
|
|
17
|
+
|
|
18
|
+
// @ts-ignore need to loosen the type here to allow for any experiment name
|
|
19
|
+
if (_overrides[experimentName] !== undefined) {
|
|
20
|
+
// This will be hit in the case of a test setting an override
|
|
21
|
+
// @ts-ignore need to loosen the type here to allow for any experiment name
|
|
22
|
+
return _overrides[experimentName];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Check for parameter overrides
|
|
26
|
+
var paramOverride = (_paramOverrides2 = _paramOverrides[experimentName]) === null || _paramOverrides2 === void 0 ? void 0 : _paramOverrides2[experimentParam];
|
|
27
|
+
if (paramOverride !== undefined) {
|
|
28
|
+
return paramOverride;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// If client is not initialized, we return the default value
|
|
32
|
+
if (!FeatureGates.initializeCompleted()) {
|
|
33
|
+
return defaultValue;
|
|
34
|
+
}
|
|
17
35
|
if (!_product) {
|
|
18
36
|
// This will be hit in the case of a product not having setup the editor experiment tooling
|
|
19
37
|
return defaultValue;
|
|
@@ -541,6 +541,16 @@ export var editorExperimentsConfig = {
|
|
|
541
541
|
param: 'isEnabled',
|
|
542
542
|
defaultValue: false
|
|
543
543
|
}),
|
|
544
|
+
// Added 2025-08-17
|
|
545
|
+
platform_hover_card_preview_panel: createMultivariateExperiment({
|
|
546
|
+
productKeys: {
|
|
547
|
+
confluence: 'platform_hover_card_preview_panel',
|
|
548
|
+
jira: 'platform_hover_card_preview_panel'
|
|
549
|
+
},
|
|
550
|
+
param: 'cohort',
|
|
551
|
+
values: ['control', 'test'],
|
|
552
|
+
defaultValue: 'control'
|
|
553
|
+
}),
|
|
544
554
|
// Added 2025--8-05
|
|
545
555
|
platform_editor_block_menu: createBooleanExperiment({
|
|
546
556
|
productKeys: {
|
package/dist/esm/setup.js
CHANGED
|
@@ -404,6 +404,13 @@ export declare const editorExperimentsConfig: {
|
|
|
404
404
|
productKeys?: import("./types").ProductKeys;
|
|
405
405
|
param: string;
|
|
406
406
|
};
|
|
407
|
+
platform_hover_card_preview_panel: {
|
|
408
|
+
values: ("test" | "control")[];
|
|
409
|
+
typeGuard: (value: unknown) => value is "test" | "control";
|
|
410
|
+
defaultValue: "test" | "control";
|
|
411
|
+
productKeys?: import("./types").ProductKeys;
|
|
412
|
+
param: string;
|
|
413
|
+
};
|
|
407
414
|
platform_editor_block_menu: {
|
|
408
415
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
409
416
|
defaultValue: boolean;
|
|
@@ -404,6 +404,13 @@ export declare const editorExperimentsConfig: {
|
|
|
404
404
|
productKeys?: import("./types").ProductKeys;
|
|
405
405
|
param: string;
|
|
406
406
|
};
|
|
407
|
+
platform_hover_card_preview_panel: {
|
|
408
|
+
values: ("test" | "control")[];
|
|
409
|
+
typeGuard: (value: unknown) => value is "test" | "control";
|
|
410
|
+
defaultValue: "test" | "control";
|
|
411
|
+
productKeys?: import("./types").ProductKeys;
|
|
412
|
+
param: string;
|
|
413
|
+
};
|
|
407
414
|
platform_editor_block_menu: {
|
|
408
415
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
409
416
|
defaultValue: boolean;
|
package/package.json
CHANGED