@atlaskit/tmp-editor-statsig 8.8.0 → 9.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,13 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 9.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#178344](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/178344)
8
+ [`d6ea53c8a5621`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d6ea53c8a5621) -
9
+ EDITOR-988: Clean up dynamic selection toolbar AI button.
10
+
3
11
  ## 8.8.0
4
12
 
5
13
  ### Minor Changes
@@ -304,15 +304,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
304
304
  param: 'isEnabled',
305
305
  defaultValue: false
306
306
  }),
307
- // Added 2025-05-05
308
- editor_ai_contextual_selection_toolbar_button: (0, _experimentBuilders.createMultivariateExperiment)({
309
- productKeys: {
310
- confluence: 'editor_ai_contextual_selection_toolbar_button'
311
- },
312
- param: 'cohort',
313
- values: ['control', 'test'],
314
- defaultValue: 'control'
315
- }),
316
307
  // Added 2025-05-08
317
308
  editor_ai_converge_free_gen_on_rovo: (0, _experimentBuilders.createBooleanExperiment)({
318
309
  productKeys: {
@@ -298,15 +298,6 @@ export const editorExperimentsConfig = {
298
298
  param: 'isEnabled',
299
299
  defaultValue: false
300
300
  }),
301
- // Added 2025-05-05
302
- editor_ai_contextual_selection_toolbar_button: createMultivariateExperiment({
303
- productKeys: {
304
- confluence: 'editor_ai_contextual_selection_toolbar_button'
305
- },
306
- param: 'cohort',
307
- values: ['control', 'test'],
308
- defaultValue: 'control'
309
- }),
310
301
  // Added 2025-05-08
311
302
  editor_ai_converge_free_gen_on_rovo: createBooleanExperiment({
312
303
  productKeys: {
@@ -298,15 +298,6 @@ export var editorExperimentsConfig = {
298
298
  param: 'isEnabled',
299
299
  defaultValue: false
300
300
  }),
301
- // Added 2025-05-05
302
- editor_ai_contextual_selection_toolbar_button: createMultivariateExperiment({
303
- productKeys: {
304
- confluence: 'editor_ai_contextual_selection_toolbar_button'
305
- },
306
- param: 'cohort',
307
- values: ['control', 'test'],
308
- defaultValue: 'control'
309
- }),
310
301
  // Added 2025-05-08
311
302
  editor_ai_converge_free_gen_on_rovo: createBooleanExperiment({
312
303
  productKeys: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="jest" />
1
2
  import { type EditorExperimentOverrides } from './setup';
2
3
  import { type EditorExperimentsConfig } from './experiments-config';
3
4
  type DescribeBody = Parameters<typeof describe>[1];
@@ -44,9 +45,325 @@ declare function eeTest<ExperimentName extends keyof EditorExperimentsConfig>(ex
44
45
  false: DescribeBody;
45
46
  }, otherExperiments?: EditorExperimentOverrides): void;
46
47
  declare namespace eeTest {
47
- var describe: <ExperimentName extends keyof EditorExperimentsConfig>(experimentName: ExperimentName, describeName: string) => {
48
- variant: (value: EditorExperimentsConfig[ExperimentName]["defaultValue"], describeBody: DescribeBody) => void;
49
- each: (describeBody: DescribeBody) => void;
48
+ var describe: <ExperimentName extends "platform_editor_reduce_noisy_steps_ncs" | "platform_editor_memoized_node_check" | "platform_editor_media_card_vc_wrapper_attribute" | "platform_editor_block_control_optimise_render" | "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "platform_editor_controls_performance_fixes" | "platform_editor_prevent_toolbar_layout_shifts" | "comment_on_bodied_extensions" | "advanced_layouts" | "single_column_layouts" | "support_table_in_comment_jira" | "platform_editor_ai-prompts-placeholder" | "nested-tables-in-tables" | "platform_editor_ai_unsplash_page_header" | "platform_editor_blockquote_in_text_formatting_menu" | "platform_editor_advanced_code_blocks" | "platform_editor_element_drag_and_drop_multiselect" | "platform_editor_ai_edit_response_in_preview" | "platform_editor_controls" | "platform_editor_smart_link_cmd_ctrl_click" | "platform_editor_insertion" | "platform_editor_vanilla_dom" | "editor_text_highlight_orange_to_yellow" | "platform_editor_ai_proactive_ai_nudge_parameters" | "platform_editor_offline_editing_web" | "editor_ai_inline_suggestion_date_v2" | "platform_editor_tables_drag_and_drop" | "platform_editor_tables_table_selector" | "platform_editor_usesharedpluginstateselector" | "platform_renderer_fix_analytics_memo_callback" | "editor_ai_converge_free_gen_on_rovo" | "platform_editor_stop_width_reflows" | "platform_editor_core_static_emotion" | "platform_editor_core_static_emotion_non_central" | "platform_editor_no_cursor_on_edit_page_init" | "platform_editor_breakout_resizing" | "platform_editor_ai_quickstart_command" | "platform_editor_toolbar_rerender_optimization_exp" | "platform_editor_controls_toolbar_pinning_exp" | "platform_editor_block_controls_perf_optimization" | "platform_editor_enable_single_player_step_merging" | "platform_editor_ai_iw_adf_streaming" | "platform_editor_ai_remove_trivial_prompts_cc" | "confluence_whiteboards_quick_insert_aa" | "platform_editor_find_and_replace_improvements" | "confluence_whiteboards_quick_insert">(experimentName: ExperimentName, describeName: string) => {
49
+ variant: (value: {
50
+ platform_editor_reduce_noisy_steps_ncs: {
51
+ typeGuard: typeof import("./type-guards").isBoolean;
52
+ defaultValue: boolean;
53
+ productKeys?: import("./types").ProductKeys | undefined;
54
+ param: string;
55
+ };
56
+ platform_editor_memoized_node_check: {
57
+ typeGuard: typeof import("./type-guards").isBoolean;
58
+ defaultValue: boolean;
59
+ productKeys?: import("./types").ProductKeys | undefined;
60
+ param: string;
61
+ };
62
+ platform_editor_media_card_vc_wrapper_attribute: {
63
+ typeGuard: typeof import("./type-guards").isBoolean;
64
+ defaultValue: boolean;
65
+ productKeys?: import("./types").ProductKeys | undefined;
66
+ param: string;
67
+ };
68
+ platform_editor_block_control_optimise_render: {
69
+ typeGuard: typeof import("./type-guards").isBoolean;
70
+ defaultValue: boolean;
71
+ productKeys?: import("./types").ProductKeys | undefined;
72
+ param: string;
73
+ };
74
+ 'example-boolean': {
75
+ typeGuard: typeof import("./type-guards").isBoolean;
76
+ defaultValue: boolean;
77
+ productKeys?: import("./types").ProductKeys | undefined;
78
+ param: string;
79
+ };
80
+ 'example-multivariate': {
81
+ values: ("one" | "two" | "three")[];
82
+ typeGuard: (value: unknown) => value is "one" | "two" | "three";
83
+ defaultValue: "one" | "two" | "three";
84
+ productKeys?: import("./types").ProductKeys | undefined;
85
+ param: string;
86
+ };
87
+ 'test-new-experiments-package': {
88
+ typeGuard: typeof import("./type-guards").isBoolean;
89
+ defaultValue: boolean;
90
+ productKeys?: import("./types").ProductKeys | undefined;
91
+ param: string;
92
+ };
93
+ support_table_in_comment: {
94
+ typeGuard: typeof import("./type-guards").isBoolean;
95
+ defaultValue: boolean;
96
+ productKeys?: import("./types").ProductKeys | undefined;
97
+ param: string;
98
+ };
99
+ platform_editor_exp_lazy_node_views: {
100
+ typeGuard: typeof import("./type-guards").isBoolean;
101
+ defaultValue: boolean;
102
+ productKeys?: import("./types").ProductKeys | undefined;
103
+ param: string;
104
+ };
105
+ platform_renderer_table_sticky_scrollbar: {
106
+ typeGuard: typeof import("./type-guards").isBoolean;
107
+ defaultValue: boolean;
108
+ productKeys?: import("./types").ProductKeys | undefined;
109
+ param: string;
110
+ };
111
+ platform_editor_controls_performance_fixes: {
112
+ typeGuard: typeof import("./type-guards").isBoolean;
113
+ defaultValue: boolean;
114
+ productKeys?: import("./types").ProductKeys | undefined;
115
+ param: string;
116
+ };
117
+ platform_editor_prevent_toolbar_layout_shifts: {
118
+ typeGuard: typeof import("./type-guards").isBoolean;
119
+ defaultValue: boolean;
120
+ productKeys?: import("./types").ProductKeys | undefined;
121
+ param: string;
122
+ };
123
+ comment_on_bodied_extensions: {
124
+ typeGuard: typeof import("./type-guards").isBoolean;
125
+ defaultValue: boolean;
126
+ productKeys?: import("./types").ProductKeys | undefined;
127
+ param: string;
128
+ };
129
+ advanced_layouts: {
130
+ typeGuard: typeof import("./type-guards").isBoolean;
131
+ defaultValue: boolean;
132
+ productKeys?: import("./types").ProductKeys | undefined;
133
+ param: string;
134
+ };
135
+ single_column_layouts: {
136
+ typeGuard: typeof import("./type-guards").isBoolean;
137
+ defaultValue: boolean;
138
+ productKeys?: import("./types").ProductKeys | undefined;
139
+ param: string;
140
+ };
141
+ support_table_in_comment_jira: {
142
+ typeGuard: typeof import("./type-guards").isBoolean;
143
+ defaultValue: boolean;
144
+ productKeys?: import("./types").ProductKeys | undefined;
145
+ param: string;
146
+ };
147
+ 'platform_editor_ai-prompts-placeholder': {
148
+ values: ("test" | "control")[];
149
+ typeGuard: (value: unknown) => value is "test" | "control";
150
+ defaultValue: "test" | "control";
151
+ productKeys?: import("./types").ProductKeys | undefined;
152
+ param: string;
153
+ };
154
+ 'nested-tables-in-tables': {
155
+ typeGuard: typeof import("./type-guards").isBoolean;
156
+ defaultValue: boolean;
157
+ productKeys?: import("./types").ProductKeys | undefined;
158
+ param: string;
159
+ };
160
+ platform_editor_ai_unsplash_page_header: {
161
+ typeGuard: typeof import("./type-guards").isBoolean;
162
+ defaultValue: boolean;
163
+ productKeys?: import("./types").ProductKeys | undefined;
164
+ param: string;
165
+ };
166
+ platform_editor_blockquote_in_text_formatting_menu: {
167
+ typeGuard: typeof import("./type-guards").isBoolean;
168
+ defaultValue: boolean;
169
+ productKeys?: import("./types").ProductKeys | undefined;
170
+ param: string;
171
+ };
172
+ platform_editor_advanced_code_blocks: {
173
+ typeGuard: typeof import("./type-guards").isBoolean;
174
+ defaultValue: boolean;
175
+ productKeys?: import("./types").ProductKeys | undefined;
176
+ param: string;
177
+ };
178
+ platform_editor_element_drag_and_drop_multiselect: {
179
+ typeGuard: typeof import("./type-guards").isBoolean;
180
+ defaultValue: boolean;
181
+ productKeys?: import("./types").ProductKeys | undefined;
182
+ param: string;
183
+ };
184
+ platform_editor_ai_edit_response_in_preview: {
185
+ typeGuard: typeof import("./type-guards").isBoolean;
186
+ defaultValue: boolean;
187
+ productKeys?: import("./types").ProductKeys | undefined;
188
+ param: string;
189
+ };
190
+ platform_editor_controls: {
191
+ values: ("control" | "variant1")[];
192
+ typeGuard: (value: unknown) => value is "control" | "variant1";
193
+ defaultValue: "control" | "variant1";
194
+ productKeys?: import("./types").ProductKeys | undefined;
195
+ param: string;
196
+ };
197
+ platform_editor_smart_link_cmd_ctrl_click: {
198
+ typeGuard: typeof import("./type-guards").isBoolean;
199
+ defaultValue: boolean;
200
+ productKeys?: import("./types").ProductKeys | undefined;
201
+ param: string;
202
+ };
203
+ platform_editor_insertion: {
204
+ values: ("control" | "variant1")[];
205
+ typeGuard: (value: unknown) => value is "control" | "variant1";
206
+ defaultValue: "control" | "variant1";
207
+ productKeys?: import("./types").ProductKeys | undefined;
208
+ param: string;
209
+ };
210
+ platform_editor_vanilla_dom: {
211
+ typeGuard: typeof import("./type-guards").isBoolean;
212
+ defaultValue: boolean;
213
+ productKeys?: import("./types").ProductKeys | undefined;
214
+ param: string;
215
+ };
216
+ editor_text_highlight_orange_to_yellow: {
217
+ values: ("test" | "control")[];
218
+ typeGuard: (value: unknown) => value is "test" | "control";
219
+ defaultValue: "test" | "control";
220
+ productKeys?: import("./types").ProductKeys | undefined;
221
+ param: string;
222
+ };
223
+ platform_editor_ai_proactive_ai_nudge_parameters: {
224
+ values: ("control" | "variant1")[];
225
+ typeGuard: (value: unknown) => value is "control" | "variant1";
226
+ defaultValue: "control" | "variant1";
227
+ productKeys?: import("./types").ProductKeys | undefined;
228
+ param: string;
229
+ };
230
+ platform_editor_offline_editing_web: {
231
+ typeGuard: typeof import("./type-guards").isBoolean;
232
+ defaultValue: boolean;
233
+ productKeys?: import("./types").ProductKeys | undefined;
234
+ param: string;
235
+ };
236
+ editor_ai_inline_suggestion_date_v2: {
237
+ values: ("test" | "control")[];
238
+ typeGuard: (value: unknown) => value is "test" | "control";
239
+ defaultValue: "test" | "control";
240
+ productKeys?: import("./types").ProductKeys | undefined;
241
+ param: string;
242
+ };
243
+ platform_editor_tables_drag_and_drop: {
244
+ typeGuard: typeof import("./type-guards").isBoolean;
245
+ defaultValue: boolean;
246
+ productKeys?: import("./types").ProductKeys | undefined;
247
+ param: string;
248
+ };
249
+ platform_editor_tables_table_selector: {
250
+ typeGuard: typeof import("./type-guards").isBoolean;
251
+ defaultValue: boolean;
252
+ productKeys?: import("./types").ProductKeys | undefined;
253
+ param: string;
254
+ };
255
+ platform_editor_usesharedpluginstateselector: {
256
+ typeGuard: typeof import("./type-guards").isBoolean;
257
+ defaultValue: boolean;
258
+ productKeys?: import("./types").ProductKeys | undefined;
259
+ param: string;
260
+ };
261
+ platform_renderer_fix_analytics_memo_callback: {
262
+ typeGuard: typeof import("./type-guards").isBoolean;
263
+ defaultValue: boolean;
264
+ productKeys?: import("./types").ProductKeys | undefined;
265
+ param: string;
266
+ };
267
+ editor_ai_converge_free_gen_on_rovo: {
268
+ typeGuard: typeof import("./type-guards").isBoolean;
269
+ defaultValue: boolean;
270
+ productKeys?: import("./types").ProductKeys | undefined;
271
+ param: string;
272
+ };
273
+ platform_editor_stop_width_reflows: {
274
+ typeGuard: typeof import("./type-guards").isBoolean;
275
+ defaultValue: boolean;
276
+ productKeys?: import("./types").ProductKeys | undefined;
277
+ param: string;
278
+ };
279
+ platform_editor_core_static_emotion: {
280
+ typeGuard: typeof import("./type-guards").isBoolean;
281
+ defaultValue: boolean;
282
+ productKeys?: import("./types").ProductKeys | undefined;
283
+ param: string;
284
+ };
285
+ platform_editor_core_static_emotion_non_central: {
286
+ typeGuard: typeof import("./type-guards").isBoolean;
287
+ defaultValue: boolean;
288
+ productKeys?: import("./types").ProductKeys | undefined;
289
+ param: string;
290
+ };
291
+ platform_editor_no_cursor_on_edit_page_init: {
292
+ typeGuard: typeof import("./type-guards").isBoolean;
293
+ defaultValue: boolean;
294
+ productKeys?: import("./types").ProductKeys | undefined;
295
+ param: string;
296
+ };
297
+ platform_editor_breakout_resizing: {
298
+ typeGuard: typeof import("./type-guards").isBoolean;
299
+ defaultValue: boolean;
300
+ productKeys?: import("./types").ProductKeys | undefined;
301
+ param: string;
302
+ };
303
+ platform_editor_ai_quickstart_command: {
304
+ typeGuard: typeof import("./type-guards").isBoolean;
305
+ defaultValue: boolean;
306
+ productKeys?: import("./types").ProductKeys | undefined;
307
+ param: string;
308
+ };
309
+ platform_editor_toolbar_rerender_optimization_exp: {
310
+ typeGuard: typeof import("./type-guards").isBoolean;
311
+ defaultValue: boolean;
312
+ productKeys?: import("./types").ProductKeys | undefined;
313
+ param: string;
314
+ };
315
+ platform_editor_controls_toolbar_pinning_exp: {
316
+ typeGuard: typeof import("./type-guards").isBoolean;
317
+ defaultValue: boolean;
318
+ productKeys?: import("./types").ProductKeys | undefined;
319
+ param: string;
320
+ };
321
+ platform_editor_block_controls_perf_optimization: {
322
+ typeGuard: typeof import("./type-guards").isBoolean;
323
+ defaultValue: boolean;
324
+ productKeys?: import("./types").ProductKeys | undefined;
325
+ param: string;
326
+ };
327
+ platform_editor_enable_single_player_step_merging: {
328
+ typeGuard: typeof import("./type-guards").isBoolean;
329
+ defaultValue: boolean;
330
+ productKeys?: import("./types").ProductKeys | undefined;
331
+ param: string;
332
+ };
333
+ platform_editor_ai_iw_adf_streaming: {
334
+ typeGuard: typeof import("./type-guards").isBoolean;
335
+ defaultValue: boolean;
336
+ productKeys?: import("./types").ProductKeys | undefined;
337
+ param: string;
338
+ };
339
+ platform_editor_ai_remove_trivial_prompts_cc: {
340
+ typeGuard: typeof import("./type-guards").isBoolean;
341
+ defaultValue: boolean;
342
+ productKeys?: import("./types").ProductKeys | undefined;
343
+ param: string;
344
+ };
345
+ confluence_whiteboards_quick_insert_aa: {
346
+ values: ("control" | "test_blank" | "test_diagram")[];
347
+ typeGuard: (value: unknown) => value is "control" | "test_blank" | "test_diagram";
348
+ defaultValue: "control" | "test_blank" | "test_diagram";
349
+ productKeys?: import("./types").ProductKeys | undefined;
350
+ param: string;
351
+ };
352
+ platform_editor_find_and_replace_improvements: {
353
+ typeGuard: typeof import("./type-guards").isBoolean;
354
+ defaultValue: boolean;
355
+ productKeys?: import("./types").ProductKeys | undefined;
356
+ param: string;
357
+ };
358
+ confluence_whiteboards_quick_insert: {
359
+ values: ("control" | "test_blank" | "test_diagram")[];
360
+ typeGuard: (value: unknown) => value is "control" | "test_blank" | "test_diagram";
361
+ defaultValue: "control" | "test_blank" | "test_diagram";
362
+ productKeys?: import("./types").ProductKeys | undefined;
363
+ param: string;
364
+ };
365
+ }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
366
+ each: (describeBody: jest.EmptyFunction) => void;
50
367
  };
51
368
  }
52
369
  export { eeTest };
@@ -6,7 +6,7 @@ import type { BooleanExperimentConfig, MultivariateExperimentConfig } from './ty
6
6
  export declare function createBooleanExperiment(config: BooleanExperimentConfig): {
7
7
  typeGuard: typeof isBoolean;
8
8
  defaultValue: boolean;
9
- productKeys?: import("./types").ProductKeys;
9
+ productKeys?: import("./types").ProductKeys | undefined;
10
10
  param: string;
11
11
  };
12
12
  /**
@@ -16,6 +16,6 @@ export declare function createMultivariateExperiment<T extends string[]>(config:
16
16
  values: [...T][number][];
17
17
  typeGuard: (value: unknown) => value is T[number];
18
18
  defaultValue: T[number];
19
- productKeys?: import("./types").ProductKeys;
19
+ productKeys?: import("./types").ProductKeys | undefined;
20
20
  param: string;
21
21
  };