@atlaskit/tmp-editor-statsig 13.44.0 → 14.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,17 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 14.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`66121121982b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/66121121982b2) -
8
+ [EXP-CLEANUP] editor_ai_inline_suggestion_date_v2
9
+
10
+ ### Minor Changes
11
+
12
+ - [`d84e4018e7a77`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d84e4018e7a77) -
13
+ ED-29689 create new exp
14
+
3
15
  ## 13.44.0
4
16
 
5
17
  ### Minor Changes
@@ -89,6 +89,10 @@ function eeTest(experimentName, cases, otherExperiments) {
89
89
  });
90
90
  }
91
91
 
92
+ // Namespace declaration to add describe property to eeTest function type
93
+ // TypeScript automatically merges function and namespace declarations with the same name
94
+ // eslint-disable-next-line @typescript-eslint/no-namespace
95
+
92
96
  /**
93
97
  * eeTest.describe() Wrapper utility for describe() that runs a test with a editor experiment overides.
94
98
  *
@@ -13,7 +13,6 @@ var testMultivariateOverrides = exports.testMultivariateOverrides = {
13
13
  confluence_whiteboards_quick_insert: 'control',
14
14
  confluence_whiteboards_quick_insert_localised: 'control',
15
15
  confluence_whiteboards_quick_insert_localised_aa: 'control',
16
- editor_ai_inline_suggestion_date_v2: 'control',
17
16
  cc_editor_ai_content_mode: 'control',
18
17
  platform_editor_add_orange_highlight_color: 'control',
19
18
  platform_editor_ai_iw_adf_streaming: 'control',
@@ -8,6 +8,8 @@ var _experimentBuilders = require("./experiment-builders");
8
8
  /* eslint-disable @atlaskit/editor/no-re-export */
9
9
  // Entry file in package.json
10
10
 
11
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports -- Need value import for typeof
12
+
11
13
  /**
12
14
  * Extract valid expected values.
13
15
  * - For multivariate experiments: returns union of valid string values (inferred from defaultValue type)
@@ -342,14 +344,13 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
342
344
  param: 'isEnabled',
343
345
  defaultValue: false
344
346
  }),
345
- // Added 2025-04-14
346
- editor_ai_inline_suggestion_date_v2: (0, _experimentBuilders.createMultivariateExperiment)({
347
+ // Added 2025-10-15
348
+ platform_editor_no_ssr: (0, _experimentBuilders.createBooleanExperiment)({
347
349
  productKeys: {
348
- confluence: 'editor_ai_inline_suggestion_date_v2'
350
+ confluence: 'platform_editor_no_ssr'
349
351
  },
350
- param: 'cohort',
351
- values: ['control', 'test'],
352
- defaultValue: 'control'
352
+ param: 'isEnabled',
353
+ defaultValue: false
353
354
  }),
354
355
  // Added 2025-10-31
355
356
  platform_editor_lovability_suppress_toolbar_event: (0, _experimentBuilders.createBooleanExperiment)({
@@ -784,9 +785,9 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
784
785
  defaultValue: false
785
786
  }),
786
787
  // Added 2025-08-05
787
- platform_editor_native_anchor_support: (0, _experimentBuilders.createBooleanExperiment)({
788
+ platform_editor_native_anchor_with_dnd: (0, _experimentBuilders.createBooleanExperiment)({
788
789
  productKeys: {
789
- confluence: 'platform_editor_native_anchor_support'
790
+ confluence: 'platform_editor_native_anchor_with_dnd'
790
791
  },
791
792
  param: 'isEnabled',
792
793
  defaultValue: false
@@ -70,6 +70,10 @@ function eeTest(experimentName, cases, otherExperiments) {
70
70
  });
71
71
  }
72
72
 
73
+ // Namespace declaration to add describe property to eeTest function type
74
+ // TypeScript automatically merges function and namespace declarations with the same name
75
+ // eslint-disable-next-line @typescript-eslint/no-namespace
76
+
73
77
  /**
74
78
  * eeTest.describe() Wrapper utility for describe() that runs a test with a editor experiment overides.
75
79
  *
@@ -7,7 +7,6 @@ export const testMultivariateOverrides = {
7
7
  confluence_whiteboards_quick_insert: 'control',
8
8
  confluence_whiteboards_quick_insert_localised: 'control',
9
9
  confluence_whiteboards_quick_insert_localised_aa: 'control',
10
- editor_ai_inline_suggestion_date_v2: 'control',
11
10
  cc_editor_ai_content_mode: 'control',
12
11
  platform_editor_add_orange_highlight_color: 'control',
13
12
  platform_editor_ai_iw_adf_streaming: 'control',
@@ -2,6 +2,7 @@
2
2
  // Entry file in package.json
3
3
 
4
4
  import { createBooleanExperiment, createMultivariateExperiment } from './experiment-builders';
5
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports -- Need value import for typeof
5
6
 
6
7
  /**
7
8
  * Extract valid expected values.
@@ -337,14 +338,13 @@ export const editorExperimentsConfig = {
337
338
  param: 'isEnabled',
338
339
  defaultValue: false
339
340
  }),
340
- // Added 2025-04-14
341
- editor_ai_inline_suggestion_date_v2: createMultivariateExperiment({
341
+ // Added 2025-10-15
342
+ platform_editor_no_ssr: createBooleanExperiment({
342
343
  productKeys: {
343
- confluence: 'editor_ai_inline_suggestion_date_v2'
344
+ confluence: 'platform_editor_no_ssr'
344
345
  },
345
- param: 'cohort',
346
- values: ['control', 'test'],
347
- defaultValue: 'control'
346
+ param: 'isEnabled',
347
+ defaultValue: false
348
348
  }),
349
349
  // Added 2025-10-31
350
350
  platform_editor_lovability_suppress_toolbar_event: createBooleanExperiment({
@@ -779,9 +779,9 @@ export const editorExperimentsConfig = {
779
779
  defaultValue: false
780
780
  }),
781
781
  // Added 2025-08-05
782
- platform_editor_native_anchor_support: createBooleanExperiment({
782
+ platform_editor_native_anchor_with_dnd: createBooleanExperiment({
783
783
  productKeys: {
784
- confluence: 'platform_editor_native_anchor_support'
784
+ confluence: 'platform_editor_native_anchor_with_dnd'
785
785
  },
786
786
  param: 'isEnabled',
787
787
  defaultValue: false
@@ -86,6 +86,10 @@ function eeTest(experimentName, cases, otherExperiments) {
86
86
  });
87
87
  }
88
88
 
89
+ // Namespace declaration to add describe property to eeTest function type
90
+ // TypeScript automatically merges function and namespace declarations with the same name
91
+ // eslint-disable-next-line @typescript-eslint/no-namespace
92
+
89
93
  /**
90
94
  * eeTest.describe() Wrapper utility for describe() that runs a test with a editor experiment overides.
91
95
  *
@@ -7,7 +7,6 @@ export var testMultivariateOverrides = {
7
7
  confluence_whiteboards_quick_insert: 'control',
8
8
  confluence_whiteboards_quick_insert_localised: 'control',
9
9
  confluence_whiteboards_quick_insert_localised_aa: 'control',
10
- editor_ai_inline_suggestion_date_v2: 'control',
11
10
  cc_editor_ai_content_mode: 'control',
12
11
  platform_editor_add_orange_highlight_color: 'control',
13
12
  platform_editor_ai_iw_adf_streaming: 'control',
@@ -2,6 +2,7 @@
2
2
  // Entry file in package.json
3
3
 
4
4
  import { createBooleanExperiment, createMultivariateExperiment } from './experiment-builders';
5
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports -- Need value import for typeof
5
6
 
6
7
  /**
7
8
  * Extract valid expected values.
@@ -337,14 +338,13 @@ export var editorExperimentsConfig = {
337
338
  param: 'isEnabled',
338
339
  defaultValue: false
339
340
  }),
340
- // Added 2025-04-14
341
- editor_ai_inline_suggestion_date_v2: createMultivariateExperiment({
341
+ // Added 2025-10-15
342
+ platform_editor_no_ssr: createBooleanExperiment({
342
343
  productKeys: {
343
- confluence: 'editor_ai_inline_suggestion_date_v2'
344
+ confluence: 'platform_editor_no_ssr'
344
345
  },
345
- param: 'cohort',
346
- values: ['control', 'test'],
347
- defaultValue: 'control'
346
+ param: 'isEnabled',
347
+ defaultValue: false
348
348
  }),
349
349
  // Added 2025-10-31
350
350
  platform_editor_lovability_suppress_toolbar_event: createBooleanExperiment({
@@ -779,9 +779,9 @@ export var editorExperimentsConfig = {
779
779
  defaultValue: false
780
780
  }),
781
781
  // Added 2025-08-05
782
- platform_editor_native_anchor_support: createBooleanExperiment({
782
+ platform_editor_native_anchor_with_dnd: createBooleanExperiment({
783
783
  productKeys: {
784
- confluence: 'platform_editor_native_anchor_support'
784
+ confluence: 'platform_editor_native_anchor_with_dnd'
785
785
  },
786
786
  param: 'isEnabled',
787
787
  defaultValue: false
@@ -43,10 +43,19 @@ declare function eeTest<ExperimentName extends keyof EditorExperimentsConfig>(ex
43
43
  false: DescribeBody;
44
44
  true: DescribeBody;
45
45
  }, otherExperiments?: EditorExperimentOverrides): void;
46
+ interface EeTestDescribeReturn<ExperimentName extends keyof EditorExperimentsConfig> {
47
+ each: (describeBody: DescribeBody) => void;
48
+ variant: (value: EditorExperimentsConfig[ExperimentName]['defaultValue'], describeBody: DescribeBody) => void;
49
+ }
46
50
  declare namespace eeTest {
47
- var describe: <ExperimentName extends keyof EditorExperimentsConfig>(experimentName: ExperimentName, describeName: string) => {
48
- each: (describeBody: DescribeBody) => void;
49
- variant: (value: EditorExperimentsConfig[ExperimentName]["defaultValue"], describeBody: DescribeBody) => void;
50
- };
51
+ function describe<ExperimentName extends keyof EditorExperimentsConfig>(experimentName: ExperimentName, describeName: string): EeTestDescribeReturn<ExperimentName>;
52
+ }
53
+ interface EeTestFunction {
54
+ <ExperimentName extends keyof EditorExperimentsConfig>(experimentName: ExperimentName, cases: EditorExperimentsConfig[ExperimentName]['defaultValue'] extends string ? Record<EditorExperimentsConfig[ExperimentName]['defaultValue'], DescribeBody> : {
55
+ false: DescribeBody;
56
+ true: DescribeBody;
57
+ }, otherExperiments?: EditorExperimentOverrides): void;
58
+ describe: <ExperimentName extends keyof EditorExperimentsConfig>(experimentName: ExperimentName, describeName: string) => EeTestDescribeReturn<ExperimentName>;
51
59
  }
52
60
  export { eeTest };
61
+ export type { EeTestFunction };
@@ -1,21 +1,21 @@
1
1
  import { isBoolean } from './type-guards';
2
- import type { BooleanExperimentConfig, MultivariateExperimentConfig } from './types';
2
+ import type { BooleanExperimentConfig, MultivariateExperimentConfig, ProductKeys } from './types';
3
3
  /**
4
4
  * Helper to create a boolean experiment configuration
5
5
  */
6
6
  export declare function createBooleanExperiment(config: BooleanExperimentConfig): {
7
- typeGuard: typeof isBoolean;
8
7
  defaultValue: boolean;
9
8
  param: string;
10
- productKeys?: import("./types").ProductKeys;
9
+ productKeys?: ProductKeys;
10
+ typeGuard: typeof isBoolean;
11
11
  };
12
12
  /**
13
13
  * Helper to create a multivariate experiment configuration
14
14
  */
15
15
  export declare function createMultivariateExperiment<T extends string[]>(config: MultivariateExperimentConfig<T>): {
16
- values: [...T][number][];
17
- typeGuard: (value: unknown) => value is T[number];
18
16
  defaultValue: T[number];
19
17
  param: string;
20
- productKeys?: import("./types").ProductKeys;
18
+ productKeys?: ProductKeys;
19
+ typeGuard: (value: unknown) => value is T[number];
20
+ values: [...T][number][];
21
21
  };