@atlaskit/tmp-editor-statsig 13.44.0 → 14.0.1

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,24 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 14.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5e935a27d0d78`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5e935a27d0d78) -
8
+ Cleanup platform_editor_resizer_cls_fix experiment
9
+
10
+ ## 14.0.0
11
+
12
+ ### Major Changes
13
+
14
+ - [`66121121982b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/66121121982b2) -
15
+ [EXP-CLEANUP] editor_ai_inline_suggestion_date_v2
16
+
17
+ ### Minor Changes
18
+
19
+ - [`d84e4018e7a77`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d84e4018e7a77) -
20
+ ED-29689 create new exp
21
+
3
22
  ## 13.44.0
4
23
 
5
24
  ### 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)
@@ -316,14 +318,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
316
318
  param: 'isEnabled',
317
319
  defaultValue: false
318
320
  }),
319
- // Added 2025-10-14
320
- platform_editor_resizer_cls_fix: (0, _experimentBuilders.createBooleanExperiment)({
321
- productKeys: {
322
- confluence: 'platform_editor_resizer_cls_fix'
323
- },
324
- param: 'isEnabled',
325
- defaultValue: false
326
- }),
327
321
  // Added 2025-03-28
328
322
  platform_editor_ai_proactive_ai_nudge_parameters: (0, _experimentBuilders.createMultivariateExperiment)({
329
323
  productKeys: {
@@ -342,14 +336,13 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
342
336
  param: 'isEnabled',
343
337
  defaultValue: false
344
338
  }),
345
- // Added 2025-04-14
346
- editor_ai_inline_suggestion_date_v2: (0, _experimentBuilders.createMultivariateExperiment)({
339
+ // Added 2025-10-15
340
+ platform_editor_no_ssr: (0, _experimentBuilders.createBooleanExperiment)({
347
341
  productKeys: {
348
- confluence: 'editor_ai_inline_suggestion_date_v2'
342
+ confluence: 'platform_editor_no_ssr'
349
343
  },
350
- param: 'cohort',
351
- values: ['control', 'test'],
352
- defaultValue: 'control'
344
+ param: 'isEnabled',
345
+ defaultValue: false
353
346
  }),
354
347
  // Added 2025-10-31
355
348
  platform_editor_lovability_suppress_toolbar_event: (0, _experimentBuilders.createBooleanExperiment)({
@@ -784,9 +777,9 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
784
777
  defaultValue: false
785
778
  }),
786
779
  // Added 2025-08-05
787
- platform_editor_native_anchor_support: (0, _experimentBuilders.createBooleanExperiment)({
780
+ platform_editor_native_anchor_with_dnd: (0, _experimentBuilders.createBooleanExperiment)({
788
781
  productKeys: {
789
- confluence: 'platform_editor_native_anchor_support'
782
+ confluence: 'platform_editor_native_anchor_with_dnd'
790
783
  },
791
784
  param: 'isEnabled',
792
785
  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.
@@ -311,14 +312,6 @@ export const editorExperimentsConfig = {
311
312
  param: 'isEnabled',
312
313
  defaultValue: false
313
314
  }),
314
- // Added 2025-10-14
315
- platform_editor_resizer_cls_fix: createBooleanExperiment({
316
- productKeys: {
317
- confluence: 'platform_editor_resizer_cls_fix'
318
- },
319
- param: 'isEnabled',
320
- defaultValue: false
321
- }),
322
315
  // Added 2025-03-28
323
316
  platform_editor_ai_proactive_ai_nudge_parameters: createMultivariateExperiment({
324
317
  productKeys: {
@@ -337,14 +330,13 @@ export const editorExperimentsConfig = {
337
330
  param: 'isEnabled',
338
331
  defaultValue: false
339
332
  }),
340
- // Added 2025-04-14
341
- editor_ai_inline_suggestion_date_v2: createMultivariateExperiment({
333
+ // Added 2025-10-15
334
+ platform_editor_no_ssr: createBooleanExperiment({
342
335
  productKeys: {
343
- confluence: 'editor_ai_inline_suggestion_date_v2'
336
+ confluence: 'platform_editor_no_ssr'
344
337
  },
345
- param: 'cohort',
346
- values: ['control', 'test'],
347
- defaultValue: 'control'
338
+ param: 'isEnabled',
339
+ defaultValue: false
348
340
  }),
349
341
  // Added 2025-10-31
350
342
  platform_editor_lovability_suppress_toolbar_event: createBooleanExperiment({
@@ -779,9 +771,9 @@ export const editorExperimentsConfig = {
779
771
  defaultValue: false
780
772
  }),
781
773
  // Added 2025-08-05
782
- platform_editor_native_anchor_support: createBooleanExperiment({
774
+ platform_editor_native_anchor_with_dnd: createBooleanExperiment({
783
775
  productKeys: {
784
- confluence: 'platform_editor_native_anchor_support'
776
+ confluence: 'platform_editor_native_anchor_with_dnd'
785
777
  },
786
778
  param: 'isEnabled',
787
779
  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.
@@ -311,14 +312,6 @@ export var editorExperimentsConfig = {
311
312
  param: 'isEnabled',
312
313
  defaultValue: false
313
314
  }),
314
- // Added 2025-10-14
315
- platform_editor_resizer_cls_fix: createBooleanExperiment({
316
- productKeys: {
317
- confluence: 'platform_editor_resizer_cls_fix'
318
- },
319
- param: 'isEnabled',
320
- defaultValue: false
321
- }),
322
315
  // Added 2025-03-28
323
316
  platform_editor_ai_proactive_ai_nudge_parameters: createMultivariateExperiment({
324
317
  productKeys: {
@@ -337,14 +330,13 @@ export var editorExperimentsConfig = {
337
330
  param: 'isEnabled',
338
331
  defaultValue: false
339
332
  }),
340
- // Added 2025-04-14
341
- editor_ai_inline_suggestion_date_v2: createMultivariateExperiment({
333
+ // Added 2025-10-15
334
+ platform_editor_no_ssr: createBooleanExperiment({
342
335
  productKeys: {
343
- confluence: 'editor_ai_inline_suggestion_date_v2'
336
+ confluence: 'platform_editor_no_ssr'
344
337
  },
345
- param: 'cohort',
346
- values: ['control', 'test'],
347
- defaultValue: 'control'
338
+ param: 'isEnabled',
339
+ defaultValue: false
348
340
  }),
349
341
  // Added 2025-10-31
350
342
  platform_editor_lovability_suppress_toolbar_event: createBooleanExperiment({
@@ -779,9 +771,9 @@ export var editorExperimentsConfig = {
779
771
  defaultValue: false
780
772
  }),
781
773
  // Added 2025-08-05
782
- platform_editor_native_anchor_support: createBooleanExperiment({
774
+ platform_editor_native_anchor_with_dnd: createBooleanExperiment({
783
775
  productKeys: {
784
- confluence: 'platform_editor_native_anchor_support'
776
+ confluence: 'platform_editor_native_anchor_with_dnd'
785
777
  },
786
778
  param: 'isEnabled',
787
779
  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
  };