@atlaskit/tmp-editor-statsig 11.3.1 → 11.5.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 +14 -0
- package/dist/cjs/exp-test-overrides.js +2 -1
- package/dist/cjs/expVal.js +19 -1
- package/dist/cjs/experiments-config.js +18 -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 +18 -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 +18 -0
- package/dist/esm/setup.js +1 -3
- package/dist/types/experiments-config.d.ts +13 -0
- package/dist/types-ts4.5/experiments-config.d.ts +13 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 11.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`14e7b85d72f07`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/14e7b85d72f07) -
|
|
8
|
+
EDITOR-1385 Setup platform_editor_ai_non_iw_adf_streaming experiment.
|
|
9
|
+
|
|
10
|
+
## 11.4.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`4339fad1c3ec0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4339fad1c3ec0) -
|
|
15
|
+
Updated expVal to default true for tests
|
|
16
|
+
|
|
3
17
|
## 11.3.1
|
|
4
18
|
|
|
5
19
|
### 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;
|
|
@@ -448,6 +448,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
448
448
|
param: 'isEnabled',
|
|
449
449
|
defaultValue: false
|
|
450
450
|
}),
|
|
451
|
+
// Added 2025-08-20
|
|
452
|
+
platform_editor_ai_non_iw_adf_streaming: (0, _experimentBuilders.createBooleanExperiment)({
|
|
453
|
+
productKeys: {
|
|
454
|
+
confluence: 'platform_editor_ai_non_iw_adf_streaming'
|
|
455
|
+
},
|
|
456
|
+
param: 'isEnabled',
|
|
457
|
+
defaultValue: false
|
|
458
|
+
}),
|
|
451
459
|
// Added 2025-07-07
|
|
452
460
|
platform_editor_ai_remove_trivial_prompts_cc: (0, _experimentBuilders.createBooleanExperiment)({
|
|
453
461
|
productKeys: {
|
|
@@ -547,6 +555,16 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
547
555
|
param: 'isEnabled',
|
|
548
556
|
defaultValue: false
|
|
549
557
|
}),
|
|
558
|
+
// Added 2025-08-17
|
|
559
|
+
platform_hover_card_preview_panel: (0, _experimentBuilders.createMultivariateExperiment)({
|
|
560
|
+
productKeys: {
|
|
561
|
+
confluence: 'platform_hover_card_preview_panel',
|
|
562
|
+
jira: 'platform_hover_card_preview_panel'
|
|
563
|
+
},
|
|
564
|
+
param: 'cohort',
|
|
565
|
+
values: ['control', 'test'],
|
|
566
|
+
defaultValue: 'control'
|
|
567
|
+
}),
|
|
550
568
|
// Added 2025--8-05
|
|
551
569
|
platform_editor_block_menu: (0, _experimentBuilders.createBooleanExperiment)({
|
|
552
570
|
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;
|
|
@@ -442,6 +442,14 @@ export const editorExperimentsConfig = {
|
|
|
442
442
|
param: 'isEnabled',
|
|
443
443
|
defaultValue: false
|
|
444
444
|
}),
|
|
445
|
+
// Added 2025-08-20
|
|
446
|
+
platform_editor_ai_non_iw_adf_streaming: createBooleanExperiment({
|
|
447
|
+
productKeys: {
|
|
448
|
+
confluence: 'platform_editor_ai_non_iw_adf_streaming'
|
|
449
|
+
},
|
|
450
|
+
param: 'isEnabled',
|
|
451
|
+
defaultValue: false
|
|
452
|
+
}),
|
|
445
453
|
// Added 2025-07-07
|
|
446
454
|
platform_editor_ai_remove_trivial_prompts_cc: createBooleanExperiment({
|
|
447
455
|
productKeys: {
|
|
@@ -541,6 +549,16 @@ export const editorExperimentsConfig = {
|
|
|
541
549
|
param: 'isEnabled',
|
|
542
550
|
defaultValue: false
|
|
543
551
|
}),
|
|
552
|
+
// Added 2025-08-17
|
|
553
|
+
platform_hover_card_preview_panel: createMultivariateExperiment({
|
|
554
|
+
productKeys: {
|
|
555
|
+
confluence: 'platform_hover_card_preview_panel',
|
|
556
|
+
jira: 'platform_hover_card_preview_panel'
|
|
557
|
+
},
|
|
558
|
+
param: 'cohort',
|
|
559
|
+
values: ['control', 'test'],
|
|
560
|
+
defaultValue: 'control'
|
|
561
|
+
}),
|
|
544
562
|
// Added 2025--8-05
|
|
545
563
|
platform_editor_block_menu: createBooleanExperiment({
|
|
546
564
|
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;
|
|
@@ -442,6 +442,14 @@ export var editorExperimentsConfig = {
|
|
|
442
442
|
param: 'isEnabled',
|
|
443
443
|
defaultValue: false
|
|
444
444
|
}),
|
|
445
|
+
// Added 2025-08-20
|
|
446
|
+
platform_editor_ai_non_iw_adf_streaming: createBooleanExperiment({
|
|
447
|
+
productKeys: {
|
|
448
|
+
confluence: 'platform_editor_ai_non_iw_adf_streaming'
|
|
449
|
+
},
|
|
450
|
+
param: 'isEnabled',
|
|
451
|
+
defaultValue: false
|
|
452
|
+
}),
|
|
445
453
|
// Added 2025-07-07
|
|
446
454
|
platform_editor_ai_remove_trivial_prompts_cc: createBooleanExperiment({
|
|
447
455
|
productKeys: {
|
|
@@ -541,6 +549,16 @@ export var editorExperimentsConfig = {
|
|
|
541
549
|
param: 'isEnabled',
|
|
542
550
|
defaultValue: false
|
|
543
551
|
}),
|
|
552
|
+
// Added 2025-08-17
|
|
553
|
+
platform_hover_card_preview_panel: createMultivariateExperiment({
|
|
554
|
+
productKeys: {
|
|
555
|
+
confluence: 'platform_hover_card_preview_panel',
|
|
556
|
+
jira: 'platform_hover_card_preview_panel'
|
|
557
|
+
},
|
|
558
|
+
param: 'cohort',
|
|
559
|
+
values: ['control', 'test'],
|
|
560
|
+
defaultValue: 'control'
|
|
561
|
+
}),
|
|
544
562
|
// Added 2025--8-05
|
|
545
563
|
platform_editor_block_menu: createBooleanExperiment({
|
|
546
564
|
productKeys: {
|
package/dist/esm/setup.js
CHANGED
|
@@ -330,6 +330,12 @@ export declare const editorExperimentsConfig: {
|
|
|
330
330
|
productKeys?: import("./types").ProductKeys;
|
|
331
331
|
param: string;
|
|
332
332
|
};
|
|
333
|
+
platform_editor_ai_non_iw_adf_streaming: {
|
|
334
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
335
|
+
defaultValue: boolean;
|
|
336
|
+
productKeys?: import("./types").ProductKeys;
|
|
337
|
+
param: string;
|
|
338
|
+
};
|
|
333
339
|
platform_editor_ai_remove_trivial_prompts_cc: {
|
|
334
340
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
335
341
|
defaultValue: boolean;
|
|
@@ -404,6 +410,13 @@ export declare const editorExperimentsConfig: {
|
|
|
404
410
|
productKeys?: import("./types").ProductKeys;
|
|
405
411
|
param: string;
|
|
406
412
|
};
|
|
413
|
+
platform_hover_card_preview_panel: {
|
|
414
|
+
values: ("test" | "control")[];
|
|
415
|
+
typeGuard: (value: unknown) => value is "test" | "control";
|
|
416
|
+
defaultValue: "test" | "control";
|
|
417
|
+
productKeys?: import("./types").ProductKeys;
|
|
418
|
+
param: string;
|
|
419
|
+
};
|
|
407
420
|
platform_editor_block_menu: {
|
|
408
421
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
409
422
|
defaultValue: boolean;
|
|
@@ -330,6 +330,12 @@ export declare const editorExperimentsConfig: {
|
|
|
330
330
|
productKeys?: import("./types").ProductKeys;
|
|
331
331
|
param: string;
|
|
332
332
|
};
|
|
333
|
+
platform_editor_ai_non_iw_adf_streaming: {
|
|
334
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
335
|
+
defaultValue: boolean;
|
|
336
|
+
productKeys?: import("./types").ProductKeys;
|
|
337
|
+
param: string;
|
|
338
|
+
};
|
|
333
339
|
platform_editor_ai_remove_trivial_prompts_cc: {
|
|
334
340
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
335
341
|
defaultValue: boolean;
|
|
@@ -404,6 +410,13 @@ export declare const editorExperimentsConfig: {
|
|
|
404
410
|
productKeys?: import("./types").ProductKeys;
|
|
405
411
|
param: string;
|
|
406
412
|
};
|
|
413
|
+
platform_hover_card_preview_panel: {
|
|
414
|
+
values: ("test" | "control")[];
|
|
415
|
+
typeGuard: (value: unknown) => value is "test" | "control";
|
|
416
|
+
defaultValue: "test" | "control";
|
|
417
|
+
productKeys?: import("./types").ProductKeys;
|
|
418
|
+
param: string;
|
|
419
|
+
};
|
|
407
420
|
platform_editor_block_menu: {
|
|
408
421
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
409
422
|
defaultValue: boolean;
|
package/package.json
CHANGED