@atlaskit/tmp-editor-statsig 26.0.0 → 28.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,32 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 28.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`a040c03082274`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a040c03082274) -
8
+ [ux] EDITOR-507 Clean up main nested tables experiment `platform_editor_nested_tables`
9
+
10
+ ## 27.1.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`0eed66892511e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0eed66892511e) -
15
+ EDITOR-5120 - Add additional ProseMirror rendered analytics attributes behind the
16
+ platform_editor_prosemirror_rendered_data experiment.
17
+
18
+ ## 27.0.0
19
+
20
+ ### Major Changes
21
+
22
+ - [`19911524eaec5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/19911524eaec5) -
23
+ Cleanup A/A test for cc_fd_db_top_editor_toolbar experiment.
24
+
25
+ ### Minor Changes
26
+
27
+ - [`dece098c3ab1f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dece098c3ab1f) -
28
+ [ux] ENGHEALTH-46818 Add focus and blur handlers to table buttons to fix a11y
29
+
3
30
  ## 26.0.0
4
31
 
5
32
  ### Major Changes
package/README.md CHANGED
@@ -1,6 +1,124 @@
1
1
  # @atlaskit/tmp-editor-statsig
2
2
 
3
3
  Temp plugin to ease use of statsig feature flags until platform feature flags are available
4
+ Temp plugin to ease use of statsig experiment until a platform solution is available.
5
+
6
+ **Warning:** This is a temporary solution and will be removed once there is a platform solution for statsig experiments.
7
+
8
+ **Warning:** This requires per product setup via the \`setupEditorExperiments\` api (products without this setup will receive the
9
+ default value setup for experiments).
10
+
11
+ ## Usage
12
+
13
+ ### Experiments
14
+
15
+ All experiments must be registered in the \`editorExperimentsConfig\` object in the experiments.ts file.
16
+
17
+ Once they are registered, they can be accessed using the \`editorExperiment\` function from \`@atlaskit/tmp-editor-statsig/experiments\`.
18
+
19
+ #### Boolean experiments
20
+
21
+ ```tsx
22
+ import { editorExperiment } from '@atlaskit/editor-statsig-tmp/experiments';
23
+
24
+ if (editorExperiment('editor_inline_comments_on_inline_nodes', true)) {
25
+ // do something
26
+ } else {
27
+ // do something else
28
+ }
29
+ ```
30
+
31
+ #### Multivariate experiments
32
+
33
+ ```tsx
34
+ import { editorExperiment } from '@atlaskit/editor-statsig-tmp/experiments';
35
+
36
+ switch (true) {
37
+ case editorExperiment('editor_new_control_variants', 'variant-one'): {
38
+ // do something for variant one
39
+ return
40
+ }
41
+ case editorExperiment('editor_new_control_variants', 'variant-two'): {
42
+ // do something for variant two
43
+ return
44
+ }
45
+ case editorExperiment('editor_new_control_variants', 'variant-three'): {
46
+ // do something for variant three
47
+ return
48
+ }
49
+ }
50
+ `}
51
+
52
+
53
+ ### Testing experiments
54
+
55
+ #### Atlaskit examples
56
+
57
+ Not yet supported.
58
+
59
+ #### Jest tests
60
+ ##### Boolean experiments
61
+
62
+ ```tsx
63
+ import { eeTest } from '@atlaskit/tmp-editor-statsig/editor-experiments-test-utils';
64
+
65
+ eeTest('example-boolean', {
66
+ true: () => {
67
+ expect(editorExperiment('example-boolean', true)).toBe(true);
68
+ },
69
+ false: () => {
70
+ expect(editorExperiment('example-boolean', false)).toBe(false);
71
+ },
72
+ });
73
+ ```
74
+
75
+ ##### Multivariate experiments
76
+
77
+ ```tsx
78
+ import { eeTest } from '@atlaskit/tmp-editor-statsig/editor-experiments-test-utils';
79
+
80
+ eeTest('example-multivariate', {
81
+ one: () => {
82
+ expect(editorExperiment('example-boolean')).toBe('variant-one');
83
+ },
84
+ two: () => {
85
+ expect(editorExperiment('example-boolean')).toBe('variant-two');
86
+ },
87
+ three: () => {
88
+ expect(editorExperiment('example-boolean')).toBe('variant-three');
89
+ },
90
+ });
91
+ ```
92
+
93
+ #### Playwright tests
94
+
95
+ Editor Experiments are setup similar to platformFeatureFlags.
96
+
97
+ ```tsx
98
+ test.use({
99
+ adf: exampleAdf,
100
+ platformFeatureFlags: {
101
+ // ...
102
+ },
103
+ editorExperiments: {
104
+ 'example-boolean': true,
105
+ 'example-multivariate': 'variant',
106
+ },
107
+ });
108
+ ```
109
+
110
+ ## Configuration
111
+
112
+ ```tsx
113
+ import { setupEditorExperiments } from '@atlaskit/tmp-editor-statsig/experiments';
114
+
115
+ // Example confluence setup
116
+ setupEditorExperiments('confluence');
117
+
118
+ // Example dev util setup -- takes overrides as a second param (and otherwise defaults all experiments to their default values)
119
+ setupEditorExperiments('test', { 'example-boolean': true });
120
+ ```tsx
121
+
4
122
 
5
123
  ## Usage
6
124
 
@@ -14,8 +14,7 @@ var testMultivariateOverrides = exports.testMultivariateOverrides = {
14
14
  cc_editor_insm_outlier_events: 'test',
15
15
  platform_editor_table_sticky_header_improvements: 'test_with_overflow',
16
16
  platform_sl_3p_unauth_paste_as_block_card: 'control',
17
- cc_fd_db_top_editor_toolbar: 'control',
18
- cc_fd_db_top_editor_toolbar_aa: 'control'
17
+ cc_fd_db_top_editor_toolbar: 'control'
19
18
  };
20
19
  var testBooleanOverrides = exports.testBooleanOverrides = {
21
20
  cc_editor_hover_link_overlay_css_fix: false,
@@ -32,7 +31,6 @@ var testBooleanOverrides = exports.testBooleanOverrides = {
32
31
  advanced_layouts: false,
33
32
  single_column_layouts: false,
34
33
  support_table_in_comment_jira: false,
35
- 'nested-tables-in-tables': false,
36
34
  platform_editor_ai_unsplash_page_header: false,
37
35
  platform_editor_blockquote_in_text_formatting_menu: false,
38
36
  platform_editor_element_drag_and_drop_multiselect: false,
@@ -50,5 +48,6 @@ var testBooleanOverrides = exports.testBooleanOverrides = {
50
48
  platform_editor_find_and_replace_improvements: false,
51
49
  platform_editor_toggle_expand_on_match_found: false,
52
50
  platform_editor_reduce_noisy_steps_ncs: false,
51
+ platform_editor_prosemirror_rendered_data: false,
53
52
  confluence_compact_text_format: false
54
53
  };
@@ -305,15 +305,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
305
305
  values: ['control', 'test'],
306
306
  defaultValue: 'control'
307
307
  }),
308
- // added 2024-11-06
309
- // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_nested_tables/setup
310
- 'nested-tables-in-tables': (0, _experimentBuilders.createBooleanExperiment)({
311
- productKeys: {
312
- confluence: 'platform_editor_nested_tables'
313
- },
314
- param: 'isEnabled',
315
- defaultValue: false
316
- }),
317
308
  // Added 2024-11-26
318
309
  platform_editor_ai_unsplash_page_header: (0, _experimentBuilders.createBooleanExperiment)({
319
310
  productKeys: {
@@ -1230,6 +1221,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
1230
1221
  param: 'isEnabled',
1231
1222
  defaultValue: false
1232
1223
  }),
1224
+ // Added 2026-02-18
1225
+ platform_editor_table_a11y_eslint_fix: (0, _experimentBuilders.createBooleanExperiment)({
1226
+ productKeys: {
1227
+ confluence: 'platform_editor_table_a11y_eslint_fix'
1228
+ },
1229
+ param: 'isEnabled',
1230
+ defaultValue: false
1231
+ }),
1233
1232
  // Added 2026-01-27
1234
1233
  platform_editor_table_cell_colour_change: (0, _experimentBuilders.createBooleanExperiment)({
1235
1234
  productKeys: {
@@ -1332,15 +1331,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
1332
1331
  values: ['control', 'new-description', 'orig-description'],
1333
1332
  defaultValue: 'control'
1334
1333
  }),
1335
- // Added 2026-02-11
1336
- cc_fd_db_top_editor_toolbar_aa: (0, _experimentBuilders.createMultivariateExperiment)({
1337
- productKeys: {
1338
- confluence: 'cc_fd_db_top_editor_toolbar_aa'
1339
- },
1340
- param: 'cohort',
1341
- values: ['control', 'new-description', 'orig-description'],
1342
- defaultValue: 'control'
1343
- }),
1344
1334
  // Added 2026-01-28
1345
1335
  platform_editor_smartlink_local_cache: (0, _experimentBuilders.createBooleanExperiment)({
1346
1336
  productKeys: {
@@ -1430,5 +1420,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
1430
1420
  },
1431
1421
  param: 'isEnabled',
1432
1422
  defaultValue: false
1423
+ }),
1424
+ // Added 2026-02-11
1425
+ platform_editor_prosemirror_rendered_data: (0, _experimentBuilders.createBooleanExperiment)({
1426
+ productKeys: {
1427
+ confluence: 'platform_editor_prosemirror_rendered_data',
1428
+ jira: 'platform_editor_prosemirror_rendered_data'
1429
+ },
1430
+ param: 'isEnabled',
1431
+ defaultValue: false
1433
1432
  })
1434
1433
  };
@@ -8,8 +8,7 @@ export const testMultivariateOverrides = {
8
8
  cc_editor_insm_outlier_events: 'test',
9
9
  platform_editor_table_sticky_header_improvements: 'test_with_overflow',
10
10
  platform_sl_3p_unauth_paste_as_block_card: 'control',
11
- cc_fd_db_top_editor_toolbar: 'control',
12
- cc_fd_db_top_editor_toolbar_aa: 'control'
11
+ cc_fd_db_top_editor_toolbar: 'control'
13
12
  };
14
13
  export const testBooleanOverrides = {
15
14
  cc_editor_hover_link_overlay_css_fix: false,
@@ -26,7 +25,6 @@ export const testBooleanOverrides = {
26
25
  advanced_layouts: false,
27
26
  single_column_layouts: false,
28
27
  support_table_in_comment_jira: false,
29
- 'nested-tables-in-tables': false,
30
28
  platform_editor_ai_unsplash_page_header: false,
31
29
  platform_editor_blockquote_in_text_formatting_menu: false,
32
30
  platform_editor_element_drag_and_drop_multiselect: false,
@@ -44,5 +42,6 @@ export const testBooleanOverrides = {
44
42
  platform_editor_find_and_replace_improvements: false,
45
43
  platform_editor_toggle_expand_on_match_found: false,
46
44
  platform_editor_reduce_noisy_steps_ncs: false,
45
+ platform_editor_prosemirror_rendered_data: false,
47
46
  confluence_compact_text_format: false
48
47
  };
@@ -299,15 +299,6 @@ export const editorExperimentsConfig = {
299
299
  values: ['control', 'test'],
300
300
  defaultValue: 'control'
301
301
  }),
302
- // added 2024-11-06
303
- // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_nested_tables/setup
304
- 'nested-tables-in-tables': createBooleanExperiment({
305
- productKeys: {
306
- confluence: 'platform_editor_nested_tables'
307
- },
308
- param: 'isEnabled',
309
- defaultValue: false
310
- }),
311
302
  // Added 2024-11-26
312
303
  platform_editor_ai_unsplash_page_header: createBooleanExperiment({
313
304
  productKeys: {
@@ -1224,6 +1215,14 @@ export const editorExperimentsConfig = {
1224
1215
  param: 'isEnabled',
1225
1216
  defaultValue: false
1226
1217
  }),
1218
+ // Added 2026-02-18
1219
+ platform_editor_table_a11y_eslint_fix: createBooleanExperiment({
1220
+ productKeys: {
1221
+ confluence: 'platform_editor_table_a11y_eslint_fix'
1222
+ },
1223
+ param: 'isEnabled',
1224
+ defaultValue: false
1225
+ }),
1227
1226
  // Added 2026-01-27
1228
1227
  platform_editor_table_cell_colour_change: createBooleanExperiment({
1229
1228
  productKeys: {
@@ -1326,15 +1325,6 @@ export const editorExperimentsConfig = {
1326
1325
  values: ['control', 'new-description', 'orig-description'],
1327
1326
  defaultValue: 'control'
1328
1327
  }),
1329
- // Added 2026-02-11
1330
- cc_fd_db_top_editor_toolbar_aa: createMultivariateExperiment({
1331
- productKeys: {
1332
- confluence: 'cc_fd_db_top_editor_toolbar_aa'
1333
- },
1334
- param: 'cohort',
1335
- values: ['control', 'new-description', 'orig-description'],
1336
- defaultValue: 'control'
1337
- }),
1338
1328
  // Added 2026-01-28
1339
1329
  platform_editor_smartlink_local_cache: createBooleanExperiment({
1340
1330
  productKeys: {
@@ -1424,5 +1414,14 @@ export const editorExperimentsConfig = {
1424
1414
  },
1425
1415
  param: 'isEnabled',
1426
1416
  defaultValue: false
1417
+ }),
1418
+ // Added 2026-02-11
1419
+ platform_editor_prosemirror_rendered_data: createBooleanExperiment({
1420
+ productKeys: {
1421
+ confluence: 'platform_editor_prosemirror_rendered_data',
1422
+ jira: 'platform_editor_prosemirror_rendered_data'
1423
+ },
1424
+ param: 'isEnabled',
1425
+ defaultValue: false
1427
1426
  })
1428
1427
  };
@@ -8,8 +8,7 @@ export var testMultivariateOverrides = {
8
8
  cc_editor_insm_outlier_events: 'test',
9
9
  platform_editor_table_sticky_header_improvements: 'test_with_overflow',
10
10
  platform_sl_3p_unauth_paste_as_block_card: 'control',
11
- cc_fd_db_top_editor_toolbar: 'control',
12
- cc_fd_db_top_editor_toolbar_aa: 'control'
11
+ cc_fd_db_top_editor_toolbar: 'control'
13
12
  };
14
13
  export var testBooleanOverrides = {
15
14
  cc_editor_hover_link_overlay_css_fix: false,
@@ -26,7 +25,6 @@ export var testBooleanOverrides = {
26
25
  advanced_layouts: false,
27
26
  single_column_layouts: false,
28
27
  support_table_in_comment_jira: false,
29
- 'nested-tables-in-tables': false,
30
28
  platform_editor_ai_unsplash_page_header: false,
31
29
  platform_editor_blockquote_in_text_formatting_menu: false,
32
30
  platform_editor_element_drag_and_drop_multiselect: false,
@@ -44,5 +42,6 @@ export var testBooleanOverrides = {
44
42
  platform_editor_find_and_replace_improvements: false,
45
43
  platform_editor_toggle_expand_on_match_found: false,
46
44
  platform_editor_reduce_noisy_steps_ncs: false,
45
+ platform_editor_prosemirror_rendered_data: false,
47
46
  confluence_compact_text_format: false
48
47
  };
@@ -299,15 +299,6 @@ export var editorExperimentsConfig = {
299
299
  values: ['control', 'test'],
300
300
  defaultValue: 'control'
301
301
  }),
302
- // added 2024-11-06
303
- // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_nested_tables/setup
304
- 'nested-tables-in-tables': createBooleanExperiment({
305
- productKeys: {
306
- confluence: 'platform_editor_nested_tables'
307
- },
308
- param: 'isEnabled',
309
- defaultValue: false
310
- }),
311
302
  // Added 2024-11-26
312
303
  platform_editor_ai_unsplash_page_header: createBooleanExperiment({
313
304
  productKeys: {
@@ -1224,6 +1215,14 @@ export var editorExperimentsConfig = {
1224
1215
  param: 'isEnabled',
1225
1216
  defaultValue: false
1226
1217
  }),
1218
+ // Added 2026-02-18
1219
+ platform_editor_table_a11y_eslint_fix: createBooleanExperiment({
1220
+ productKeys: {
1221
+ confluence: 'platform_editor_table_a11y_eslint_fix'
1222
+ },
1223
+ param: 'isEnabled',
1224
+ defaultValue: false
1225
+ }),
1227
1226
  // Added 2026-01-27
1228
1227
  platform_editor_table_cell_colour_change: createBooleanExperiment({
1229
1228
  productKeys: {
@@ -1326,15 +1325,6 @@ export var editorExperimentsConfig = {
1326
1325
  values: ['control', 'new-description', 'orig-description'],
1327
1326
  defaultValue: 'control'
1328
1327
  }),
1329
- // Added 2026-02-11
1330
- cc_fd_db_top_editor_toolbar_aa: createMultivariateExperiment({
1331
- productKeys: {
1332
- confluence: 'cc_fd_db_top_editor_toolbar_aa'
1333
- },
1334
- param: 'cohort',
1335
- values: ['control', 'new-description', 'orig-description'],
1336
- defaultValue: 'control'
1337
- }),
1338
1328
  // Added 2026-01-28
1339
1329
  platform_editor_smartlink_local_cache: createBooleanExperiment({
1340
1330
  productKeys: {
@@ -1424,5 +1414,14 @@ export var editorExperimentsConfig = {
1424
1414
  },
1425
1415
  param: 'isEnabled',
1426
1416
  defaultValue: false
1417
+ }),
1418
+ // Added 2026-02-11
1419
+ platform_editor_prosemirror_rendered_data: createBooleanExperiment({
1420
+ productKeys: {
1421
+ confluence: 'platform_editor_prosemirror_rendered_data',
1422
+ jira: 'platform_editor_prosemirror_rendered_data'
1423
+ },
1424
+ param: 'isEnabled',
1425
+ defaultValue: false
1427
1426
  })
1428
1427
  };
@@ -118,6 +118,12 @@ export declare const editorExperimentsConfig: {
118
118
  productKeys?: ProductKeys;
119
119
  typeGuard: IsBooleanType;
120
120
  };
121
+ platform_editor_prosemirror_rendered_data: {
122
+ defaultValue: boolean;
123
+ param: string;
124
+ productKeys?: ProductKeys;
125
+ typeGuard: IsBooleanType;
126
+ };
121
127
  confluence_compact_text_format: {
122
128
  defaultValue: boolean;
123
129
  param: string;
@@ -203,12 +209,6 @@ export declare const editorExperimentsConfig: {
203
209
  productKeys?: ProductKeys;
204
210
  typeGuard: IsBooleanType;
205
211
  };
206
- 'nested-tables-in-tables': {
207
- defaultValue: boolean;
208
- param: string;
209
- productKeys?: ProductKeys;
210
- typeGuard: IsBooleanType;
211
- };
212
212
  platform_editor_add_aria_checked_to_inline_img_btn: {
213
213
  defaultValue: boolean;
214
214
  param: string;
@@ -403,6 +403,12 @@ export declare const editorExperimentsConfig: {
403
403
  productKeys?: ProductKeys;
404
404
  typeGuard: IsBooleanType;
405
405
  };
406
+ platform_editor_table_a11y_eslint_fix: {
407
+ defaultValue: boolean;
408
+ param: string;
409
+ productKeys?: ProductKeys;
410
+ typeGuard: IsBooleanType;
411
+ };
406
412
  platform_editor_find_and_replace_improvements: {
407
413
  defaultValue: boolean;
408
414
  param: string;
@@ -984,13 +990,6 @@ export declare const editorExperimentsConfig: {
984
990
  typeGuard: (value: unknown) => value is 'control' | 'new-description' | 'orig-description';
985
991
  values: ('control' | 'new-description' | 'orig-description')[];
986
992
  };
987
- cc_fd_db_top_editor_toolbar_aa: {
988
- defaultValue: 'control' | 'new-description' | 'orig-description';
989
- param: string;
990
- productKeys?: ProductKeys;
991
- typeGuard: (value: unknown) => value is 'control' | 'new-description' | 'orig-description';
992
- values: ('control' | 'new-description' | 'orig-description')[];
993
- };
994
993
  platform_editor_smartlink_local_cache: {
995
994
  defaultValue: boolean;
996
995
  param: string;
@@ -118,6 +118,12 @@ export declare const editorExperimentsConfig: {
118
118
  productKeys?: ProductKeys;
119
119
  typeGuard: IsBooleanType;
120
120
  };
121
+ platform_editor_prosemirror_rendered_data: {
122
+ defaultValue: boolean;
123
+ param: string;
124
+ productKeys?: ProductKeys;
125
+ typeGuard: IsBooleanType;
126
+ };
121
127
  confluence_compact_text_format: {
122
128
  defaultValue: boolean;
123
129
  param: string;
@@ -203,12 +209,6 @@ export declare const editorExperimentsConfig: {
203
209
  productKeys?: ProductKeys;
204
210
  typeGuard: IsBooleanType;
205
211
  };
206
- 'nested-tables-in-tables': {
207
- defaultValue: boolean;
208
- param: string;
209
- productKeys?: ProductKeys;
210
- typeGuard: IsBooleanType;
211
- };
212
212
  platform_editor_add_aria_checked_to_inline_img_btn: {
213
213
  defaultValue: boolean;
214
214
  param: string;
@@ -403,6 +403,12 @@ export declare const editorExperimentsConfig: {
403
403
  productKeys?: ProductKeys;
404
404
  typeGuard: IsBooleanType;
405
405
  };
406
+ platform_editor_table_a11y_eslint_fix: {
407
+ defaultValue: boolean;
408
+ param: string;
409
+ productKeys?: ProductKeys;
410
+ typeGuard: IsBooleanType;
411
+ };
406
412
  platform_editor_find_and_replace_improvements: {
407
413
  defaultValue: boolean;
408
414
  param: string;
@@ -984,13 +990,6 @@ export declare const editorExperimentsConfig: {
984
990
  typeGuard: (value: unknown) => value is 'control' | 'new-description' | 'orig-description';
985
991
  values: ('control' | 'new-description' | 'orig-description')[];
986
992
  };
987
- cc_fd_db_top_editor_toolbar_aa: {
988
- defaultValue: 'control' | 'new-description' | 'orig-description';
989
- param: string;
990
- productKeys?: ProductKeys;
991
- typeGuard: (value: unknown) => value is 'control' | 'new-description' | 'orig-description';
992
- values: ('control' | 'new-description' | 'orig-description')[];
993
- };
994
993
  platform_editor_smartlink_local_cache: {
995
994
  defaultValue: boolean;
996
995
  param: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "26.0.0",
3
+ "version": "28.0.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",