@atlaskit/tmp-editor-statsig 4.14.1 → 4.16.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 +22 -0
- package/dist/cjs/experiment-builders.js +6 -2
- package/dist/cjs/experiments-config.js +81 -116
- package/dist/es2019/experiment-builders.js +6 -2
- package/dist/es2019/experiments-config.js +81 -116
- package/dist/esm/experiment-builders.js +6 -2
- package/dist/esm/experiments-config.js +81 -116
- package/dist/types/editor-experiments-test-utils.d.ts +67 -165
- package/dist/types/experiment-builders.d.ts +14 -3
- package/dist/types/experiments-config.d.ts +88 -162
- package/dist/types/setup.d.ts +1 -2
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/editor-experiments-test-utils.d.ts +67 -165
- package/dist/types-ts4.5/experiment-builders.d.ts +14 -3
- package/dist/types-ts4.5/experiments-config.d.ts +88 -162
- package/dist/types-ts4.5/setup.d.ts +1 -2
- package/dist/types-ts4.5/types.d.ts +3 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
2
|
// Entry file in package.json
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { createBooleanExperiment, createMultivariateExperiment } from './experiment-builders';
|
|
5
5
|
/**
|
|
6
6
|
* When adding a new experiment, you need to add it here.
|
|
7
7
|
* Please follow the pattern established in the examples and any
|
|
@@ -9,309 +9,274 @@ import { isBoolean, oneOf } from './type-guards';
|
|
|
9
9
|
*/
|
|
10
10
|
export var editorExperimentsConfig = {
|
|
11
11
|
// Added 2024-08-08
|
|
12
|
-
'example-boolean': {
|
|
12
|
+
'example-boolean': createBooleanExperiment({
|
|
13
13
|
productKeys: {
|
|
14
14
|
confluence: 'confluence_editor_experiment_test_new_package_boolean'
|
|
15
15
|
},
|
|
16
16
|
param: 'isEnabled',
|
|
17
|
-
typeGuard: isBoolean,
|
|
18
|
-
// Note -- you need to set the type to boolean for the default value
|
|
19
17
|
defaultValue: false
|
|
20
|
-
},
|
|
18
|
+
}),
|
|
21
19
|
// Added 2024-08-08
|
|
22
|
-
'example-multivariate': {
|
|
20
|
+
'example-multivariate': createMultivariateExperiment({
|
|
23
21
|
productKeys: {
|
|
24
22
|
confluence: 'confluence_editor_experiment_test_new_package_multivariate'
|
|
25
23
|
},
|
|
26
24
|
param: 'variant',
|
|
27
|
-
|
|
28
|
-
// Note -- you need to specify the type of the default value as the union of all possible values
|
|
29
|
-
// This is used to provide type safety on consumption
|
|
25
|
+
values: ['one', 'two', 'three'],
|
|
30
26
|
defaultValue: 'one'
|
|
31
|
-
},
|
|
27
|
+
}),
|
|
32
28
|
// Added 2024-08-08
|
|
33
|
-
'test-new-experiments-package': {
|
|
29
|
+
'test-new-experiments-package': createBooleanExperiment({
|
|
34
30
|
productKeys: {
|
|
35
31
|
confluence: 'confluence_editor_experiment_test_new_package',
|
|
36
32
|
jira: 'jira_editor_experiment_test_new_package'
|
|
37
33
|
},
|
|
38
34
|
param: 'isEnabled',
|
|
39
|
-
typeGuard: isBoolean,
|
|
40
35
|
defaultValue: false
|
|
41
|
-
},
|
|
36
|
+
}),
|
|
42
37
|
// Added 2024-09-05
|
|
43
|
-
support_table_in_comment: {
|
|
38
|
+
support_table_in_comment: createBooleanExperiment({
|
|
44
39
|
productKeys: {
|
|
45
40
|
confluence: 'platform_editor_support_table_in_comment_exp'
|
|
46
41
|
},
|
|
47
42
|
param: 'isEnabled',
|
|
48
|
-
typeGuard: isBoolean,
|
|
49
43
|
defaultValue: false
|
|
50
|
-
},
|
|
44
|
+
}),
|
|
51
45
|
// Added 2024-09-07
|
|
52
|
-
platform_editor_exp_lazy_node_views: {
|
|
46
|
+
platform_editor_exp_lazy_node_views: createBooleanExperiment({
|
|
53
47
|
productKeys: {
|
|
54
48
|
confluence: 'platform_editor_exp_lazy_node_views'
|
|
55
49
|
},
|
|
56
50
|
param: 'isEnabled',
|
|
57
|
-
typeGuard: isBoolean,
|
|
58
51
|
defaultValue: false
|
|
59
|
-
},
|
|
52
|
+
}),
|
|
60
53
|
// Added 2024-09-18
|
|
61
|
-
platform_renderer_table_sticky_scrollbar: {
|
|
54
|
+
platform_renderer_table_sticky_scrollbar: createBooleanExperiment({
|
|
62
55
|
productKeys: {
|
|
63
56
|
confluence: 'platform_renderer_table_sticky_scrollbar'
|
|
64
57
|
},
|
|
65
58
|
param: 'isEnabled',
|
|
66
|
-
typeGuard: isBoolean,
|
|
67
59
|
defaultValue: false
|
|
68
|
-
},
|
|
60
|
+
}),
|
|
69
61
|
// Added 2024-10-01
|
|
70
|
-
comment_on_bodied_extensions: {
|
|
62
|
+
comment_on_bodied_extensions: createBooleanExperiment({
|
|
71
63
|
productKeys: {
|
|
72
64
|
confluence: 'platform_editor_comment_on_bodied_extensions'
|
|
73
65
|
},
|
|
74
66
|
param: 'isEnabled',
|
|
75
|
-
typeGuard: isBoolean,
|
|
76
67
|
defaultValue: false
|
|
77
|
-
},
|
|
68
|
+
}),
|
|
78
69
|
// Added 2024-10-14
|
|
79
70
|
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_advanced_layouts/setup
|
|
80
|
-
advanced_layouts: {
|
|
71
|
+
advanced_layouts: createBooleanExperiment({
|
|
81
72
|
productKeys: {
|
|
82
73
|
confluence: 'platform_editor_advanced_layouts'
|
|
83
74
|
},
|
|
84
75
|
param: 'isEnabled',
|
|
85
|
-
typeGuard: isBoolean,
|
|
86
76
|
defaultValue: false
|
|
87
|
-
},
|
|
77
|
+
}),
|
|
88
78
|
// Added 2025-3-15
|
|
89
79
|
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_single_column_layout/setup
|
|
90
|
-
single_column_layouts: {
|
|
80
|
+
single_column_layouts: createBooleanExperiment({
|
|
91
81
|
productKeys: {
|
|
92
82
|
confluence: 'platform_editor_single_column_layout'
|
|
93
83
|
},
|
|
94
84
|
param: 'isEnabled',
|
|
95
|
-
typeGuard: isBoolean,
|
|
96
85
|
defaultValue: false
|
|
97
|
-
},
|
|
86
|
+
}),
|
|
98
87
|
// Added 2024-10-08
|
|
99
|
-
support_table_in_comment_jira: {
|
|
88
|
+
support_table_in_comment_jira: createBooleanExperiment({
|
|
100
89
|
productKeys: {
|
|
101
90
|
jira: 'platform_editor_support_table_in_comment_jira'
|
|
102
91
|
},
|
|
103
92
|
param: 'isEnabled',
|
|
104
|
-
typeGuard: isBoolean,
|
|
105
93
|
defaultValue: false
|
|
106
|
-
},
|
|
107
|
-
'platform_editor_ai-prompts-placeholder': {
|
|
94
|
+
}),
|
|
95
|
+
'platform_editor_ai-prompts-placeholder': createMultivariateExperiment({
|
|
108
96
|
productKeys: {
|
|
109
97
|
confluence: 'platform_editor_ai-prompts-placeholder'
|
|
110
98
|
},
|
|
111
99
|
param: 'cohort',
|
|
112
|
-
|
|
100
|
+
values: ['control', 'test'],
|
|
113
101
|
defaultValue: 'control'
|
|
114
|
-
},
|
|
102
|
+
}),
|
|
115
103
|
// added 2024-11-06
|
|
116
104
|
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_nested_tables/setup
|
|
117
|
-
'nested-tables-in-tables': {
|
|
105
|
+
'nested-tables-in-tables': createBooleanExperiment({
|
|
118
106
|
productKeys: {
|
|
119
107
|
confluence: 'platform_editor_nested_tables'
|
|
120
108
|
},
|
|
121
109
|
param: 'isEnabled',
|
|
122
|
-
typeGuard: isBoolean,
|
|
123
110
|
defaultValue: false
|
|
124
|
-
},
|
|
111
|
+
}),
|
|
125
112
|
// Added 2024-11-26
|
|
126
|
-
platform_editor_ai_unsplash_page_header: {
|
|
113
|
+
platform_editor_ai_unsplash_page_header: createBooleanExperiment({
|
|
127
114
|
productKeys: {
|
|
128
115
|
confluence: 'platform_editor_ai_unsplash_page_header'
|
|
129
116
|
},
|
|
130
117
|
param: 'isEnabled',
|
|
131
|
-
typeGuard: isBoolean,
|
|
132
118
|
defaultValue: false
|
|
133
|
-
},
|
|
119
|
+
}),
|
|
134
120
|
// Added 2024-12-05
|
|
135
|
-
platform_editor_blockquote_in_text_formatting_menu: {
|
|
121
|
+
platform_editor_blockquote_in_text_formatting_menu: createBooleanExperiment({
|
|
136
122
|
productKeys: {
|
|
137
123
|
confluence: 'platform_editor_blockquote_in_text_formatting_menu'
|
|
138
124
|
},
|
|
139
125
|
param: 'isEnabled',
|
|
140
|
-
typeGuard: isBoolean,
|
|
141
126
|
defaultValue: false
|
|
142
|
-
},
|
|
127
|
+
}),
|
|
143
128
|
// Added 2025-01-09
|
|
144
|
-
platform_editor_advanced_code_blocks: {
|
|
129
|
+
platform_editor_advanced_code_blocks: createBooleanExperiment({
|
|
145
130
|
productKeys: {
|
|
146
131
|
confluence: 'platform_editor_advanced_code_blocks'
|
|
147
132
|
},
|
|
148
133
|
param: 'isEnabled',
|
|
149
|
-
typeGuard: isBoolean,
|
|
150
134
|
defaultValue: false
|
|
151
|
-
},
|
|
135
|
+
}),
|
|
152
136
|
// Added 2025-01-13
|
|
153
|
-
platform_editor_element_drag_and_drop_multiselect: {
|
|
137
|
+
platform_editor_element_drag_and_drop_multiselect: createBooleanExperiment({
|
|
154
138
|
productKeys: {
|
|
155
139
|
confluence: 'platform_editor_element_drag_and_drop_multiselect'
|
|
156
140
|
},
|
|
157
141
|
param: 'isEnabled',
|
|
158
|
-
typeGuard: isBoolean,
|
|
159
142
|
defaultValue: false
|
|
160
|
-
},
|
|
143
|
+
}),
|
|
161
144
|
// Added 2025-01-16
|
|
162
|
-
live_pages_graceful_edit: {
|
|
145
|
+
live_pages_graceful_edit: createMultivariateExperiment({
|
|
163
146
|
productKeys: {
|
|
164
147
|
confluence: 'live_pages_graceful_edit'
|
|
165
148
|
},
|
|
166
149
|
param: 'cohort',
|
|
167
|
-
|
|
150
|
+
values: ['control', 'text-click-delayed', 'text-click-no-delay', 'initially-hide-toolbar'],
|
|
168
151
|
defaultValue: 'control'
|
|
169
|
-
},
|
|
152
|
+
}),
|
|
170
153
|
// Added 2025-01-19
|
|
171
|
-
platform_editor_ai_edit_response_in_preview: {
|
|
154
|
+
platform_editor_ai_edit_response_in_preview: createBooleanExperiment({
|
|
172
155
|
productKeys: {
|
|
173
156
|
confluence: 'platform_editor_ai_edit_response_in_preview'
|
|
174
157
|
},
|
|
175
158
|
param: 'isEnabled',
|
|
176
|
-
typeGuard: isBoolean,
|
|
177
159
|
defaultValue: false
|
|
178
|
-
},
|
|
160
|
+
}),
|
|
179
161
|
// Added 2025-02-10
|
|
180
|
-
platform_editor_controls: {
|
|
162
|
+
platform_editor_controls: createMultivariateExperiment({
|
|
181
163
|
productKeys: {
|
|
182
164
|
confluence: 'platform_editor_controls'
|
|
183
165
|
},
|
|
184
166
|
param: 'cohort',
|
|
185
|
-
|
|
167
|
+
values: ['control', 'variant1'],
|
|
186
168
|
defaultValue: 'control'
|
|
187
|
-
},
|
|
169
|
+
}),
|
|
188
170
|
// Added 2025-04-14
|
|
189
|
-
platform_editor_controls_shadow: {
|
|
171
|
+
platform_editor_controls_shadow: createMultivariateExperiment({
|
|
190
172
|
productKeys: {
|
|
191
173
|
confluence: 'platform_editor_controls_shadow'
|
|
192
174
|
},
|
|
193
175
|
param: 'cohort',
|
|
194
|
-
|
|
176
|
+
values: ['control', 'variant1'],
|
|
195
177
|
defaultValue: 'control'
|
|
196
|
-
},
|
|
197
|
-
// Added 2025-02-18
|
|
198
|
-
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_nested_non_bodied_macros/setup
|
|
199
|
-
platform_editor_nested_non_bodied_macros: {
|
|
200
|
-
productKeys: {
|
|
201
|
-
confluence: 'platform_editor_nested_non_bodied_macros'
|
|
202
|
-
},
|
|
203
|
-
param: 'cohort',
|
|
204
|
-
typeGuard: oneOf(['control', 'test']),
|
|
205
|
-
defaultValue: 'control'
|
|
206
|
-
},
|
|
178
|
+
}),
|
|
207
179
|
// Added 28-02-2025
|
|
208
|
-
platform_editor_insertion: {
|
|
180
|
+
platform_editor_insertion: createMultivariateExperiment({
|
|
209
181
|
productKeys: {
|
|
210
182
|
confluence: 'platform_editor_insertion'
|
|
211
183
|
},
|
|
212
184
|
param: 'cohort',
|
|
213
|
-
|
|
185
|
+
values: ['control', 'variant1'],
|
|
214
186
|
defaultValue: 'control'
|
|
215
|
-
},
|
|
216
|
-
// Added 2025-02-25
|
|
217
|
-
platform_editor_inline_node_virtualization: {
|
|
218
|
-
productKeys: {
|
|
219
|
-
confluence: 'platform_editor_inline_node_virtualization'
|
|
220
|
-
},
|
|
221
|
-
param: 'variant',
|
|
222
|
-
typeGuard: oneOf(['off', 'fallback-small', 'fallback-large']),
|
|
223
|
-
defaultValue: 'off'
|
|
224
|
-
},
|
|
187
|
+
}),
|
|
225
188
|
// Added 2025-04-01
|
|
226
189
|
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_vanilla_dom/setup
|
|
227
|
-
platform_editor_vanilla_dom: {
|
|
190
|
+
platform_editor_vanilla_dom: createBooleanExperiment({
|
|
228
191
|
productKeys: {
|
|
229
192
|
confluence: 'platform_editor_vanilla_dom'
|
|
230
193
|
},
|
|
231
194
|
param: 'isEnabled',
|
|
232
|
-
typeGuard: isBoolean,
|
|
233
195
|
defaultValue: false
|
|
234
|
-
},
|
|
196
|
+
}),
|
|
235
197
|
// Added 2025-03-13
|
|
236
|
-
editor_text_highlight_orange_to_yellow: {
|
|
198
|
+
editor_text_highlight_orange_to_yellow: createMultivariateExperiment({
|
|
237
199
|
productKeys: {
|
|
238
200
|
confluence: 'editor_text_highlight_orange_to_yellow'
|
|
239
201
|
},
|
|
240
202
|
param: 'cohort',
|
|
241
|
-
|
|
203
|
+
values: ['control', 'test'],
|
|
242
204
|
defaultValue: 'control'
|
|
243
|
-
},
|
|
205
|
+
}),
|
|
244
206
|
// Added 2025-03-28
|
|
245
|
-
platform_editor_ai_proactive_ai_nudge_parameters: {
|
|
207
|
+
platform_editor_ai_proactive_ai_nudge_parameters: createMultivariateExperiment({
|
|
246
208
|
productKeys: {
|
|
247
209
|
confluence: 'platform_editor_ai_proactive_ai_nudge_parameters'
|
|
248
210
|
},
|
|
249
211
|
param: 'cohort',
|
|
250
|
-
|
|
212
|
+
values: ['control', 'variant1'],
|
|
251
213
|
defaultValue: 'control'
|
|
252
|
-
},
|
|
214
|
+
}),
|
|
253
215
|
// Added 2025-04-14
|
|
254
216
|
// https://switcheroo.atlassian.com/ui/gates/b159b45a-86d9-4f4b-b482-f9aca5b615d6/key/platform_editor_offline_editing_web
|
|
255
|
-
platform_editor_offline_editing_web: {
|
|
217
|
+
platform_editor_offline_editing_web: createBooleanExperiment({
|
|
256
218
|
productKeys: {
|
|
257
219
|
confluence: 'platform_editor_offline_editing_web'
|
|
258
220
|
},
|
|
259
221
|
param: 'isEnabled',
|
|
260
|
-
typeGuard: isBoolean,
|
|
261
222
|
defaultValue: false
|
|
262
|
-
},
|
|
223
|
+
}),
|
|
263
224
|
// Added 2025-03-26
|
|
264
|
-
platform_editor_markdown_next_media_plugin_exp: {
|
|
225
|
+
platform_editor_markdown_next_media_plugin_exp: createBooleanExperiment({
|
|
265
226
|
productKeys: {
|
|
266
227
|
confluence: 'platform_editor_markdown_next_media_plugin_exp'
|
|
267
228
|
},
|
|
268
229
|
param: 'isEnabled',
|
|
269
|
-
typeGuard: isBoolean,
|
|
270
230
|
defaultValue: false
|
|
271
|
-
},
|
|
231
|
+
}),
|
|
272
232
|
// Added 2025-04-14
|
|
273
|
-
editor_ai_inline_suggestion_date_v2: {
|
|
233
|
+
editor_ai_inline_suggestion_date_v2: createMultivariateExperiment({
|
|
274
234
|
productKeys: {
|
|
275
235
|
confluence: 'editor_ai_inline_suggestion_date_v2'
|
|
276
236
|
},
|
|
277
237
|
param: 'cohort',
|
|
278
|
-
|
|
238
|
+
values: ['control', 'test'],
|
|
279
239
|
defaultValue: 'control'
|
|
280
|
-
},
|
|
240
|
+
}),
|
|
281
241
|
// Added 2025-04-17
|
|
282
|
-
platform_editor_tables_drag_and_drop: {
|
|
242
|
+
platform_editor_tables_drag_and_drop: createBooleanExperiment({
|
|
283
243
|
productKeys: {
|
|
284
244
|
confluence: 'platform_editor_tables_drag_and_drop'
|
|
285
245
|
},
|
|
286
246
|
param: 'isEnabled',
|
|
287
|
-
typeGuard: isBoolean,
|
|
288
247
|
defaultValue: false
|
|
289
|
-
},
|
|
248
|
+
}),
|
|
290
249
|
// Added 2025-04-17
|
|
291
|
-
platform_editor_tables_table_selector: {
|
|
250
|
+
platform_editor_tables_table_selector: createBooleanExperiment({
|
|
292
251
|
productKeys: {
|
|
293
252
|
confluence: 'platform_editor_tables_table_selector'
|
|
294
253
|
},
|
|
295
254
|
param: 'isEnabled',
|
|
296
|
-
typeGuard: isBoolean,
|
|
297
255
|
defaultValue: false
|
|
298
|
-
},
|
|
256
|
+
}),
|
|
299
257
|
// Added 2025-04-23
|
|
300
|
-
platform_editor_usesharedpluginstateselector: {
|
|
258
|
+
platform_editor_usesharedpluginstateselector: createBooleanExperiment({
|
|
301
259
|
productKeys: {
|
|
302
260
|
confluence: 'platform_editor_usesharedpluginstateselector'
|
|
303
261
|
},
|
|
304
262
|
param: 'isEnabled',
|
|
305
|
-
typeGuard: isBoolean,
|
|
306
263
|
defaultValue: false
|
|
307
|
-
},
|
|
264
|
+
}),
|
|
308
265
|
// Added 2025-04-23
|
|
309
|
-
platform_renderer_fix_analytics_memo_callback: {
|
|
266
|
+
platform_renderer_fix_analytics_memo_callback: createBooleanExperiment({
|
|
310
267
|
productKeys: {
|
|
311
268
|
confluence: 'platform_renderer_fix_analytics_memo_callback'
|
|
312
269
|
},
|
|
313
270
|
param: 'isEnabled',
|
|
314
|
-
typeGuard: isBoolean,
|
|
315
271
|
defaultValue: false
|
|
316
|
-
}
|
|
272
|
+
}),
|
|
273
|
+
// Added 2025-05-05
|
|
274
|
+
editor_ai_contextual_selection_toolbar_button: createMultivariateExperiment({
|
|
275
|
+
productKeys: {
|
|
276
|
+
confluence: 'editor_ai_contextual_selection_toolbar_button'
|
|
277
|
+
},
|
|
278
|
+
param: 'cohort',
|
|
279
|
+
values: ['control', 'test'],
|
|
280
|
+
defaultValue: 'control'
|
|
281
|
+
})
|
|
317
282
|
};
|