@atlaskit/tmp-editor-statsig 12.5.0 → 12.6.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,12 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 12.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`9fd320fad58ed`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9fd320fad58ed) -
8
+ EDITOR-1516 Updated ADF experiments
9
+
3
10
  ## 12.5.0
4
11
 
5
12
  ### Minor Changes
@@ -16,6 +16,7 @@ var testMultivariateOverrides = exports.testMultivariateOverrides = {
16
16
  editor_ai_inline_suggestion_date_v2: 'control',
17
17
  platform_editor_add_orange_highlight_color: 'control',
18
18
  platform_editor_ai_iw_adf_streaming: 'control',
19
+ platform_editor_ai_non_iw_adf_streaming: 'control',
19
20
  platform_hover_card_preview_panel: 'control'
20
21
  };
21
22
  var testBooleanOverrides = exports.testBooleanOverrides = {
@@ -437,7 +437,7 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
437
437
  confluence: 'platform_editor_ai_iw_adf_streaming'
438
438
  },
439
439
  param: 'cohort',
440
- values: ['control', 'adf', 'adf_personalisation'],
440
+ values: ['control', 'adf_gemini25flash', 'adf_gpt41mini'],
441
441
  defaultValue: 'control'
442
442
  }),
443
443
  // Added 2025-06-18
@@ -449,12 +449,13 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
449
449
  defaultValue: false
450
450
  }),
451
451
  // Added 2025-08-20
452
- platform_editor_ai_non_iw_adf_streaming: (0, _experimentBuilders.createBooleanExperiment)({
452
+ platform_editor_ai_non_iw_adf_streaming: (0, _experimentBuilders.createMultivariateExperiment)({
453
453
  productKeys: {
454
454
  confluence: 'platform_editor_ai_non_iw_adf_streaming'
455
455
  },
456
- param: 'isEnabled',
457
- defaultValue: false
456
+ param: 'cohort',
457
+ values: ['control', 'adf_gemini25flash', 'adf_gpt41mini'],
458
+ defaultValue: 'control'
458
459
  }),
459
460
  // Added 2025-07-07
460
461
  platform_editor_ai_remove_trivial_prompts_cc: (0, _experimentBuilders.createBooleanExperiment)({
package/dist/cjs/setup.js CHANGED
@@ -37,7 +37,7 @@ groupOverrides,
37
37
  * Param overrides are used to set the experiment parameters for testing purposes.
38
38
  * This is useful when you want to tweak the experiment parameters for testing.
39
39
  */
40
- paramOverrides) {
40
+ paramOverrides, options) {
41
41
  if (groupOverrides) {
42
42
  // When setting up overrides, we want to ensure that experiments don't end up with invalid
43
43
  // values.
@@ -56,7 +56,7 @@ paramOverrides) {
56
56
  }, {});
57
57
  exports._overrides = _overrides = groupOverrides;
58
58
  }
59
- if (product === 'test') {
59
+ if (product === 'test' && !(options !== null && options !== void 0 && options.disableTestOverrides)) {
60
60
  // Enforce expectation - file overrides, then global overrides, then default to true for boolean
61
61
  // experiments, then last result use the default value
62
62
  var testOverrides = Object.fromEntries(Object.entries(_experimentsConfig.editorExperimentsConfig).map(function (_ref3) {
@@ -10,6 +10,7 @@ export const testMultivariateOverrides = {
10
10
  editor_ai_inline_suggestion_date_v2: 'control',
11
11
  platform_editor_add_orange_highlight_color: 'control',
12
12
  platform_editor_ai_iw_adf_streaming: 'control',
13
+ platform_editor_ai_non_iw_adf_streaming: 'control',
13
14
  platform_hover_card_preview_panel: 'control'
14
15
  };
15
16
  export const testBooleanOverrides = {
@@ -431,7 +431,7 @@ export const editorExperimentsConfig = {
431
431
  confluence: 'platform_editor_ai_iw_adf_streaming'
432
432
  },
433
433
  param: 'cohort',
434
- values: ['control', 'adf', 'adf_personalisation'],
434
+ values: ['control', 'adf_gemini25flash', 'adf_gpt41mini'],
435
435
  defaultValue: 'control'
436
436
  }),
437
437
  // Added 2025-06-18
@@ -443,12 +443,13 @@ export const editorExperimentsConfig = {
443
443
  defaultValue: false
444
444
  }),
445
445
  // Added 2025-08-20
446
- platform_editor_ai_non_iw_adf_streaming: createBooleanExperiment({
446
+ platform_editor_ai_non_iw_adf_streaming: createMultivariateExperiment({
447
447
  productKeys: {
448
448
  confluence: 'platform_editor_ai_non_iw_adf_streaming'
449
449
  },
450
- param: 'isEnabled',
451
- defaultValue: false
450
+ param: 'cohort',
451
+ values: ['control', 'adf_gemini25flash', 'adf_gpt41mini'],
452
+ defaultValue: 'control'
452
453
  }),
453
454
  // Added 2025-07-07
454
455
  platform_editor_ai_remove_trivial_prompts_cc: createBooleanExperiment({
@@ -28,7 +28,7 @@ groupOverrides,
28
28
  * Param overrides are used to set the experiment parameters for testing purposes.
29
29
  * This is useful when you want to tweak the experiment parameters for testing.
30
30
  */
31
- paramOverrides) {
31
+ paramOverrides, options) {
32
32
  if (groupOverrides) {
33
33
  // When setting up overrides, we want to ensure that experiments don't end up with invalid
34
34
  // values.
@@ -47,7 +47,7 @@ paramOverrides) {
47
47
  }, {});
48
48
  _overrides = groupOverrides;
49
49
  }
50
- if (product === 'test') {
50
+ if (product === 'test' && !(options !== null && options !== void 0 && options.disableTestOverrides)) {
51
51
  // Enforce expectation - file overrides, then global overrides, then default to true for boolean
52
52
  // experiments, then last result use the default value
53
53
  const testOverrides = Object.fromEntries(Object.entries(editorExperimentsConfig).map(([key, value]) => {
@@ -10,6 +10,7 @@ export var testMultivariateOverrides = {
10
10
  editor_ai_inline_suggestion_date_v2: 'control',
11
11
  platform_editor_add_orange_highlight_color: 'control',
12
12
  platform_editor_ai_iw_adf_streaming: 'control',
13
+ platform_editor_ai_non_iw_adf_streaming: 'control',
13
14
  platform_hover_card_preview_panel: 'control'
14
15
  };
15
16
  export var testBooleanOverrides = {
@@ -431,7 +431,7 @@ export var editorExperimentsConfig = {
431
431
  confluence: 'platform_editor_ai_iw_adf_streaming'
432
432
  },
433
433
  param: 'cohort',
434
- values: ['control', 'adf', 'adf_personalisation'],
434
+ values: ['control', 'adf_gemini25flash', 'adf_gpt41mini'],
435
435
  defaultValue: 'control'
436
436
  }),
437
437
  // Added 2025-06-18
@@ -443,12 +443,13 @@ export var editorExperimentsConfig = {
443
443
  defaultValue: false
444
444
  }),
445
445
  // Added 2025-08-20
446
- platform_editor_ai_non_iw_adf_streaming: createBooleanExperiment({
446
+ platform_editor_ai_non_iw_adf_streaming: createMultivariateExperiment({
447
447
  productKeys: {
448
448
  confluence: 'platform_editor_ai_non_iw_adf_streaming'
449
449
  },
450
- param: 'isEnabled',
451
- defaultValue: false
450
+ param: 'cohort',
451
+ values: ['control', 'adf_gemini25flash', 'adf_gpt41mini'],
452
+ defaultValue: 'control'
452
453
  }),
453
454
  // Added 2025-07-07
454
455
  platform_editor_ai_remove_trivial_prompts_cc: createBooleanExperiment({
package/dist/esm/setup.js CHANGED
@@ -32,7 +32,7 @@ groupOverrides,
32
32
  * Param overrides are used to set the experiment parameters for testing purposes.
33
33
  * This is useful when you want to tweak the experiment parameters for testing.
34
34
  */
35
- paramOverrides) {
35
+ paramOverrides, options) {
36
36
  if (groupOverrides) {
37
37
  // When setting up overrides, we want to ensure that experiments don't end up with invalid
38
38
  // values.
@@ -51,7 +51,7 @@ paramOverrides) {
51
51
  }, {});
52
52
  _overrides = groupOverrides;
53
53
  }
54
- if (product === 'test') {
54
+ if (product === 'test' && !(options !== null && options !== void 0 && options.disableTestOverrides)) {
55
55
  // Enforce expectation - file overrides, then global overrides, then default to true for boolean
56
56
  // experiments, then last result use the default value
57
57
  var testOverrides = Object.fromEntries(Object.entries(editorExperimentsConfig).map(function (_ref3) {
@@ -318,9 +318,9 @@ export declare const editorExperimentsConfig: {
318
318
  productKeys?: import("./types").ProductKeys;
319
319
  };
320
320
  platform_editor_ai_iw_adf_streaming: {
321
- values: ("control" | "adf" | "adf_personalisation")[];
322
- typeGuard: (value: unknown) => value is "control" | "adf" | "adf_personalisation";
323
- defaultValue: "control" | "adf" | "adf_personalisation";
321
+ values: ("control" | "adf_gemini25flash" | "adf_gpt41mini")[];
322
+ typeGuard: (value: unknown) => value is "control" | "adf_gemini25flash" | "adf_gpt41mini";
323
+ defaultValue: "control" | "adf_gemini25flash" | "adf_gpt41mini";
324
324
  param: string;
325
325
  productKeys?: import("./types").ProductKeys;
326
326
  };
@@ -331,8 +331,9 @@ export declare const editorExperimentsConfig: {
331
331
  productKeys?: import("./types").ProductKeys;
332
332
  };
333
333
  platform_editor_ai_non_iw_adf_streaming: {
334
- typeGuard: typeof import("./type-guards").isBoolean;
335
- defaultValue: boolean;
334
+ values: ("control" | "adf_gemini25flash" | "adf_gpt41mini")[];
335
+ typeGuard: (value: unknown) => value is "control" | "adf_gemini25flash" | "adf_gpt41mini";
336
+ defaultValue: "control" | "adf_gemini25flash" | "adf_gpt41mini";
336
337
  param: string;
337
338
  productKeys?: import("./types").ProductKeys;
338
339
  };
@@ -31,4 +31,10 @@ groupOverrides?: EditorExperimentOverrides,
31
31
  * Param overrides are used to set the experiment parameters for testing purposes.
32
32
  * This is useful when you want to tweak the experiment parameters for testing.
33
33
  */
34
- paramOverrides?: EditorExperimentParamOverrides): void;
34
+ paramOverrides?: EditorExperimentParamOverrides, options?: {
35
+ /**
36
+ * By default, boolean experiments are enabled when using `product === test`
37
+ * This option allows you to disable this behaviour (ie. for examples)
38
+ */
39
+ disableTestOverrides?: boolean;
40
+ }): void;
@@ -318,9 +318,9 @@ export declare const editorExperimentsConfig: {
318
318
  productKeys?: import("./types").ProductKeys;
319
319
  };
320
320
  platform_editor_ai_iw_adf_streaming: {
321
- values: ("control" | "adf" | "adf_personalisation")[];
322
- typeGuard: (value: unknown) => value is "control" | "adf" | "adf_personalisation";
323
- defaultValue: "control" | "adf" | "adf_personalisation";
321
+ values: ("control" | "adf_gemini25flash" | "adf_gpt41mini")[];
322
+ typeGuard: (value: unknown) => value is "control" | "adf_gemini25flash" | "adf_gpt41mini";
323
+ defaultValue: "control" | "adf_gemini25flash" | "adf_gpt41mini";
324
324
  param: string;
325
325
  productKeys?: import("./types").ProductKeys;
326
326
  };
@@ -331,8 +331,9 @@ export declare const editorExperimentsConfig: {
331
331
  productKeys?: import("./types").ProductKeys;
332
332
  };
333
333
  platform_editor_ai_non_iw_adf_streaming: {
334
- typeGuard: typeof import("./type-guards").isBoolean;
335
- defaultValue: boolean;
334
+ values: ("control" | "adf_gemini25flash" | "adf_gpt41mini")[];
335
+ typeGuard: (value: unknown) => value is "control" | "adf_gemini25flash" | "adf_gpt41mini";
336
+ defaultValue: "control" | "adf_gemini25flash" | "adf_gpt41mini";
336
337
  param: string;
337
338
  productKeys?: import("./types").ProductKeys;
338
339
  };
@@ -31,4 +31,10 @@ groupOverrides?: EditorExperimentOverrides,
31
31
  * Param overrides are used to set the experiment parameters for testing purposes.
32
32
  * This is useful when you want to tweak the experiment parameters for testing.
33
33
  */
34
- paramOverrides?: EditorExperimentParamOverrides): void;
34
+ paramOverrides?: EditorExperimentParamOverrides, options?: {
35
+ /**
36
+ * By default, boolean experiments are enabled when using `product === test`
37
+ * This option allows you to disable this behaviour (ie. for examples)
38
+ */
39
+ disableTestOverrides?: boolean;
40
+ }): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "12.5.0",
3
+ "version": "12.6.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",