@atlaskit/tmp-editor-statsig 2.10.0 → 2.12.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 +32 -0
- package/dist/cjs/experiments-config.js +52 -10
- package/dist/es2019/experiments-config.js +52 -10
- package/dist/esm/experiments-config.js +52 -10
- package/dist/types/editor-experiments-test-utils.d.ts +49 -9
- package/dist/types/experiments-config.d.ts +48 -8
- package/dist/types/setup.d.ts +6 -1
- package/dist/types-ts4.5/editor-experiments-test-utils.d.ts +49 -9
- package/dist/types-ts4.5/experiments-config.d.ts +48 -8
- package/dist/types-ts4.5/setup.d.ts +6 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 2.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#160594](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/160594)
|
|
8
|
+
[`493429610a122`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/493429610a122) -
|
|
9
|
+
Updated the proactive ai visual formatting experiment gate to use a new gate which is scoped to
|
|
10
|
+
the tenantId. This will no longer be controlled via an experiment.
|
|
11
|
+
|
|
12
|
+
## 2.12.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`1e479826df45b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1e479826df45b) -
|
|
17
|
+
[EDF-1804](https://product-fabric.atlassian.net/browse/EDF-1804)
|
|
18
|
+
[EDF-1805](https://product-fabric.atlassian.net/browse/EDF-1805) - add Refine button to the Editor
|
|
19
|
+
AI Command Palette
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#159628](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159628)
|
|
24
|
+
[`38ed9d4438ed0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/38ed9d4438ed0) -
|
|
25
|
+
EDF-1840 Set up statsig experiment
|
|
26
|
+
|
|
27
|
+
## 2.11.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- [#159227](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159227)
|
|
32
|
+
[`a82a45030b4c3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a82a45030b4c3) -
|
|
33
|
+
[EDF-1716] Removed getExperimentCohort from @atlassian/generative-ai-modal/utils/experiments
|
|
34
|
+
|
|
3
35
|
## 2.10.0
|
|
4
36
|
|
|
5
37
|
### Minor Changes
|
|
@@ -226,16 +226,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
226
226
|
typeGuard: (0, _typeGuards.oneOf)(['control', 'leading', 'trailing']),
|
|
227
227
|
defaultValue: 'control'
|
|
228
228
|
},
|
|
229
|
-
// Added 2024-10-03
|
|
230
|
-
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/editor_ai_-_proactive_ai_improve_writing/setup
|
|
231
|
-
'editor_ai_-_proactive_ai_improve_writing': {
|
|
232
|
-
productKeys: {
|
|
233
|
-
confluence: 'editor_ai_-_proactive_ai_improve_writing'
|
|
234
|
-
},
|
|
235
|
-
param: 'cohort',
|
|
236
|
-
typeGuard: (0, _typeGuards.oneOf)(['control', 'test']),
|
|
237
|
-
defaultValue: 'control'
|
|
238
|
-
},
|
|
239
229
|
// Added 2024-10-06
|
|
240
230
|
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_element_dnd_apply_optimisation
|
|
241
231
|
'optimised-apply-dnd': {
|
|
@@ -294,5 +284,57 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
294
284
|
param: 'isEnabled',
|
|
295
285
|
typeGuard: _typeGuards.isBoolean,
|
|
296
286
|
defaultValue: false
|
|
287
|
+
},
|
|
288
|
+
// Added 28-10-2024
|
|
289
|
+
'editor_ai_-_proactive_ai_model_variations': {
|
|
290
|
+
productKeys: {
|
|
291
|
+
confluence: 'editor_ai_-_proactive_ai_model_variations'
|
|
292
|
+
},
|
|
293
|
+
param: 'cohort',
|
|
294
|
+
typeGuard: (0, _typeGuards.oneOf)(['control', 'skip_grammar']),
|
|
295
|
+
defaultValue: 'control'
|
|
296
|
+
},
|
|
297
|
+
// Added 2024-10-31
|
|
298
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_ai_refine_response_button/setup
|
|
299
|
+
platform_editor_ai_refine_response_button: {
|
|
300
|
+
productKeys: {
|
|
301
|
+
confluence: 'platform_editor_ai_refine_response_button'
|
|
302
|
+
},
|
|
303
|
+
param: 'isEnabled',
|
|
304
|
+
typeGuard: _typeGuards.isBoolean,
|
|
305
|
+
defaultValue: false
|
|
306
|
+
},
|
|
307
|
+
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
308
|
+
productKeys: {
|
|
309
|
+
confluence: 'editor_ai_-_proactive_ai_spelling_and_grammar'
|
|
310
|
+
},
|
|
311
|
+
param: 'cohort',
|
|
312
|
+
typeGuard: (0, _typeGuards.oneOf)(['control', 'default-off', 'default-on']),
|
|
313
|
+
defaultValue: 'control'
|
|
314
|
+
},
|
|
315
|
+
'platform_editor_ai-prompts-placeholder': {
|
|
316
|
+
productKeys: {
|
|
317
|
+
confluence: 'platform_editor_ai-prompts-placeholder'
|
|
318
|
+
},
|
|
319
|
+
param: 'cohort',
|
|
320
|
+
typeGuard: (0, _typeGuards.oneOf)(['control', 'test']),
|
|
321
|
+
defaultValue: 'control'
|
|
322
|
+
},
|
|
323
|
+
'editor_ai_-_gpt4_experiment': {
|
|
324
|
+
productKeys: {
|
|
325
|
+
confluence: 'editor_ai_-_gpt4_experiment'
|
|
326
|
+
},
|
|
327
|
+
param: 'cohort',
|
|
328
|
+
typeGuard: (0, _typeGuards.oneOf)(['control', 'einstein']),
|
|
329
|
+
defaultValue: 'control'
|
|
330
|
+
},
|
|
331
|
+
// Added 2024-11-06
|
|
332
|
+
platform_editor_ai_facepile: {
|
|
333
|
+
productKeys: {
|
|
334
|
+
confluence: 'platform_editor_ai_facepile'
|
|
335
|
+
},
|
|
336
|
+
param: 'isEnabled',
|
|
337
|
+
typeGuard: _typeGuards.isBoolean,
|
|
338
|
+
defaultValue: false
|
|
297
339
|
}
|
|
298
340
|
};
|
|
@@ -220,16 +220,6 @@ export const editorExperimentsConfig = {
|
|
|
220
220
|
typeGuard: oneOf(['control', 'leading', 'trailing']),
|
|
221
221
|
defaultValue: 'control'
|
|
222
222
|
},
|
|
223
|
-
// Added 2024-10-03
|
|
224
|
-
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/editor_ai_-_proactive_ai_improve_writing/setup
|
|
225
|
-
'editor_ai_-_proactive_ai_improve_writing': {
|
|
226
|
-
productKeys: {
|
|
227
|
-
confluence: 'editor_ai_-_proactive_ai_improve_writing'
|
|
228
|
-
},
|
|
229
|
-
param: 'cohort',
|
|
230
|
-
typeGuard: oneOf(['control', 'test']),
|
|
231
|
-
defaultValue: 'control'
|
|
232
|
-
},
|
|
233
223
|
// Added 2024-10-06
|
|
234
224
|
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_element_dnd_apply_optimisation
|
|
235
225
|
'optimised-apply-dnd': {
|
|
@@ -288,5 +278,57 @@ export const editorExperimentsConfig = {
|
|
|
288
278
|
param: 'isEnabled',
|
|
289
279
|
typeGuard: isBoolean,
|
|
290
280
|
defaultValue: false
|
|
281
|
+
},
|
|
282
|
+
// Added 28-10-2024
|
|
283
|
+
'editor_ai_-_proactive_ai_model_variations': {
|
|
284
|
+
productKeys: {
|
|
285
|
+
confluence: 'editor_ai_-_proactive_ai_model_variations'
|
|
286
|
+
},
|
|
287
|
+
param: 'cohort',
|
|
288
|
+
typeGuard: oneOf(['control', 'skip_grammar']),
|
|
289
|
+
defaultValue: 'control'
|
|
290
|
+
},
|
|
291
|
+
// Added 2024-10-31
|
|
292
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_ai_refine_response_button/setup
|
|
293
|
+
platform_editor_ai_refine_response_button: {
|
|
294
|
+
productKeys: {
|
|
295
|
+
confluence: 'platform_editor_ai_refine_response_button'
|
|
296
|
+
},
|
|
297
|
+
param: 'isEnabled',
|
|
298
|
+
typeGuard: isBoolean,
|
|
299
|
+
defaultValue: false
|
|
300
|
+
},
|
|
301
|
+
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
302
|
+
productKeys: {
|
|
303
|
+
confluence: 'editor_ai_-_proactive_ai_spelling_and_grammar'
|
|
304
|
+
},
|
|
305
|
+
param: 'cohort',
|
|
306
|
+
typeGuard: oneOf(['control', 'default-off', 'default-on']),
|
|
307
|
+
defaultValue: 'control'
|
|
308
|
+
},
|
|
309
|
+
'platform_editor_ai-prompts-placeholder': {
|
|
310
|
+
productKeys: {
|
|
311
|
+
confluence: 'platform_editor_ai-prompts-placeholder'
|
|
312
|
+
},
|
|
313
|
+
param: 'cohort',
|
|
314
|
+
typeGuard: oneOf(['control', 'test']),
|
|
315
|
+
defaultValue: 'control'
|
|
316
|
+
},
|
|
317
|
+
'editor_ai_-_gpt4_experiment': {
|
|
318
|
+
productKeys: {
|
|
319
|
+
confluence: 'editor_ai_-_gpt4_experiment'
|
|
320
|
+
},
|
|
321
|
+
param: 'cohort',
|
|
322
|
+
typeGuard: oneOf(['control', 'einstein']),
|
|
323
|
+
defaultValue: 'control'
|
|
324
|
+
},
|
|
325
|
+
// Added 2024-11-06
|
|
326
|
+
platform_editor_ai_facepile: {
|
|
327
|
+
productKeys: {
|
|
328
|
+
confluence: 'platform_editor_ai_facepile'
|
|
329
|
+
},
|
|
330
|
+
param: 'isEnabled',
|
|
331
|
+
typeGuard: isBoolean,
|
|
332
|
+
defaultValue: false
|
|
291
333
|
}
|
|
292
334
|
};
|
|
@@ -220,16 +220,6 @@ export var editorExperimentsConfig = {
|
|
|
220
220
|
typeGuard: oneOf(['control', 'leading', 'trailing']),
|
|
221
221
|
defaultValue: 'control'
|
|
222
222
|
},
|
|
223
|
-
// Added 2024-10-03
|
|
224
|
-
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/editor_ai_-_proactive_ai_improve_writing/setup
|
|
225
|
-
'editor_ai_-_proactive_ai_improve_writing': {
|
|
226
|
-
productKeys: {
|
|
227
|
-
confluence: 'editor_ai_-_proactive_ai_improve_writing'
|
|
228
|
-
},
|
|
229
|
-
param: 'cohort',
|
|
230
|
-
typeGuard: oneOf(['control', 'test']),
|
|
231
|
-
defaultValue: 'control'
|
|
232
|
-
},
|
|
233
223
|
// Added 2024-10-06
|
|
234
224
|
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_element_dnd_apply_optimisation
|
|
235
225
|
'optimised-apply-dnd': {
|
|
@@ -288,5 +278,57 @@ export var editorExperimentsConfig = {
|
|
|
288
278
|
param: 'isEnabled',
|
|
289
279
|
typeGuard: isBoolean,
|
|
290
280
|
defaultValue: false
|
|
281
|
+
},
|
|
282
|
+
// Added 28-10-2024
|
|
283
|
+
'editor_ai_-_proactive_ai_model_variations': {
|
|
284
|
+
productKeys: {
|
|
285
|
+
confluence: 'editor_ai_-_proactive_ai_model_variations'
|
|
286
|
+
},
|
|
287
|
+
param: 'cohort',
|
|
288
|
+
typeGuard: oneOf(['control', 'skip_grammar']),
|
|
289
|
+
defaultValue: 'control'
|
|
290
|
+
},
|
|
291
|
+
// Added 2024-10-31
|
|
292
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_ai_refine_response_button/setup
|
|
293
|
+
platform_editor_ai_refine_response_button: {
|
|
294
|
+
productKeys: {
|
|
295
|
+
confluence: 'platform_editor_ai_refine_response_button'
|
|
296
|
+
},
|
|
297
|
+
param: 'isEnabled',
|
|
298
|
+
typeGuard: isBoolean,
|
|
299
|
+
defaultValue: false
|
|
300
|
+
},
|
|
301
|
+
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
302
|
+
productKeys: {
|
|
303
|
+
confluence: 'editor_ai_-_proactive_ai_spelling_and_grammar'
|
|
304
|
+
},
|
|
305
|
+
param: 'cohort',
|
|
306
|
+
typeGuard: oneOf(['control', 'default-off', 'default-on']),
|
|
307
|
+
defaultValue: 'control'
|
|
308
|
+
},
|
|
309
|
+
'platform_editor_ai-prompts-placeholder': {
|
|
310
|
+
productKeys: {
|
|
311
|
+
confluence: 'platform_editor_ai-prompts-placeholder'
|
|
312
|
+
},
|
|
313
|
+
param: 'cohort',
|
|
314
|
+
typeGuard: oneOf(['control', 'test']),
|
|
315
|
+
defaultValue: 'control'
|
|
316
|
+
},
|
|
317
|
+
'editor_ai_-_gpt4_experiment': {
|
|
318
|
+
productKeys: {
|
|
319
|
+
confluence: 'editor_ai_-_gpt4_experiment'
|
|
320
|
+
},
|
|
321
|
+
param: 'cohort',
|
|
322
|
+
typeGuard: oneOf(['control', 'einstein']),
|
|
323
|
+
defaultValue: 'control'
|
|
324
|
+
},
|
|
325
|
+
// Added 2024-11-06
|
|
326
|
+
platform_editor_ai_facepile: {
|
|
327
|
+
productKeys: {
|
|
328
|
+
confluence: 'platform_editor_ai_facepile'
|
|
329
|
+
},
|
|
330
|
+
param: 'isEnabled',
|
|
331
|
+
typeGuard: isBoolean,
|
|
332
|
+
defaultValue: false
|
|
291
333
|
}
|
|
292
334
|
};
|
|
@@ -45,7 +45,7 @@ declare function eeTest<ExperimentName extends keyof EditorExperimentsConfig>(ex
|
|
|
45
45
|
false: DescribeBody;
|
|
46
46
|
}, otherExperiments?: EditorExperimentOverrides): void;
|
|
47
47
|
declare namespace eeTest {
|
|
48
|
-
var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "basic-text-transformations" | "dnd-input-performance-optimisation" | "element-level-templates" | "add-media-from-url" | "nested-dnd" | "table-nested-dnd" | "insert-menu-in-right-rail" | "platform_editor_empty_line_prompt" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_editor_ai_ai_button_block_elements" | "platform_renderer_table_sticky_scrollbar" | "nest-media-and-codeblock-in-quote" | "nested-expand-in-expand" | "platform_editor_ai_command_palette_post_ga" | "platform_editor_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "platform_editor_ai_additional_editor_prompts" | "comment_on_bodied_extensions" | "platform_editor_ai_floating_toolbar_v2" | "
|
|
48
|
+
var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "basic-text-transformations" | "dnd-input-performance-optimisation" | "element-level-templates" | "add-media-from-url" | "nested-dnd" | "table-nested-dnd" | "insert-menu-in-right-rail" | "platform_editor_empty_line_prompt" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_editor_ai_ai_button_block_elements" | "platform_renderer_table_sticky_scrollbar" | "nest-media-and-codeblock-in-quote" | "nested-expand-in-expand" | "platform_editor_ai_command_palette_post_ga" | "platform_editor_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "platform_editor_ai_additional_editor_prompts" | "comment_on_bodied_extensions" | "platform_editor_ai_floating_toolbar_v2" | "optimised-apply-dnd" | "platform_editor_ai_1p_placeholder_hints" | "advanced_layouts" | "platform_editor_live_pages_ai_definitions" | "support_table_in_comment_jira" | "comment_on_inline_node_spotlight" | "editor_ai_-_proactive_ai_model_variations" | "platform_editor_ai_refine_response_button" | "editor_ai_-_proactive_ai_spelling_and_grammar" | "platform_editor_ai-prompts-placeholder" | "editor_ai_-_gpt4_experiment" | "platform_editor_ai_facepile">(experimentName: ExperimentName, describeName: string) => {
|
|
49
49
|
variant: (value: {
|
|
50
50
|
'example-boolean': {
|
|
51
51
|
productKeys: {
|
|
@@ -232,14 +232,6 @@ declare namespace eeTest {
|
|
|
232
232
|
typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
|
|
233
233
|
defaultValue: "control" | "leading" | "trailing";
|
|
234
234
|
};
|
|
235
|
-
'editor_ai_-_proactive_ai_improve_writing': {
|
|
236
|
-
productKeys: {
|
|
237
|
-
confluence: string;
|
|
238
|
-
};
|
|
239
|
-
param: string;
|
|
240
|
-
typeGuard: (value: unknown) => value is "test" | "control";
|
|
241
|
-
defaultValue: "test" | "control";
|
|
242
|
-
};
|
|
243
235
|
'optimised-apply-dnd': {
|
|
244
236
|
productKeys: {
|
|
245
237
|
confluence: string;
|
|
@@ -288,6 +280,54 @@ declare namespace eeTest {
|
|
|
288
280
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
289
281
|
defaultValue: boolean;
|
|
290
282
|
};
|
|
283
|
+
'editor_ai_-_proactive_ai_model_variations': {
|
|
284
|
+
productKeys: {
|
|
285
|
+
confluence: string;
|
|
286
|
+
};
|
|
287
|
+
param: string;
|
|
288
|
+
typeGuard: (value: unknown) => value is "control" | "skip_grammar";
|
|
289
|
+
defaultValue: "control" | "skip_grammar";
|
|
290
|
+
};
|
|
291
|
+
platform_editor_ai_refine_response_button: {
|
|
292
|
+
productKeys: {
|
|
293
|
+
confluence: string;
|
|
294
|
+
};
|
|
295
|
+
param: string;
|
|
296
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
297
|
+
defaultValue: boolean;
|
|
298
|
+
};
|
|
299
|
+
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
300
|
+
productKeys: {
|
|
301
|
+
confluence: string;
|
|
302
|
+
};
|
|
303
|
+
param: string;
|
|
304
|
+
typeGuard: (value: unknown) => value is "control" | "default-off" | "default-on";
|
|
305
|
+
defaultValue: "control" | "default-off" | "default-on";
|
|
306
|
+
};
|
|
307
|
+
'platform_editor_ai-prompts-placeholder': {
|
|
308
|
+
productKeys: {
|
|
309
|
+
confluence: string;
|
|
310
|
+
};
|
|
311
|
+
param: string;
|
|
312
|
+
typeGuard: (value: unknown) => value is "test" | "control";
|
|
313
|
+
defaultValue: "test" | "control";
|
|
314
|
+
};
|
|
315
|
+
'editor_ai_-_gpt4_experiment': {
|
|
316
|
+
productKeys: {
|
|
317
|
+
confluence: string;
|
|
318
|
+
};
|
|
319
|
+
param: string;
|
|
320
|
+
typeGuard: (value: unknown) => value is "control" | "einstein";
|
|
321
|
+
defaultValue: "control" | "einstein";
|
|
322
|
+
};
|
|
323
|
+
platform_editor_ai_facepile: {
|
|
324
|
+
productKeys: {
|
|
325
|
+
confluence: string;
|
|
326
|
+
};
|
|
327
|
+
param: string;
|
|
328
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
329
|
+
defaultValue: boolean;
|
|
330
|
+
};
|
|
291
331
|
}[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
|
|
292
332
|
each: (describeBody: jest.EmptyFunction) => void;
|
|
293
333
|
};
|
|
@@ -191,14 +191,6 @@ export declare const editorExperimentsConfig: {
|
|
|
191
191
|
typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
|
|
192
192
|
defaultValue: "control" | "leading" | "trailing";
|
|
193
193
|
};
|
|
194
|
-
'editor_ai_-_proactive_ai_improve_writing': {
|
|
195
|
-
productKeys: {
|
|
196
|
-
confluence: string;
|
|
197
|
-
};
|
|
198
|
-
param: string;
|
|
199
|
-
typeGuard: (value: unknown) => value is "test" | "control";
|
|
200
|
-
defaultValue: "test" | "control";
|
|
201
|
-
};
|
|
202
194
|
'optimised-apply-dnd': {
|
|
203
195
|
productKeys: {
|
|
204
196
|
confluence: string;
|
|
@@ -247,4 +239,52 @@ export declare const editorExperimentsConfig: {
|
|
|
247
239
|
typeGuard: typeof isBoolean;
|
|
248
240
|
defaultValue: boolean;
|
|
249
241
|
};
|
|
242
|
+
'editor_ai_-_proactive_ai_model_variations': {
|
|
243
|
+
productKeys: {
|
|
244
|
+
confluence: string;
|
|
245
|
+
};
|
|
246
|
+
param: string;
|
|
247
|
+
typeGuard: (value: unknown) => value is "control" | "skip_grammar";
|
|
248
|
+
defaultValue: "control" | "skip_grammar";
|
|
249
|
+
};
|
|
250
|
+
platform_editor_ai_refine_response_button: {
|
|
251
|
+
productKeys: {
|
|
252
|
+
confluence: string;
|
|
253
|
+
};
|
|
254
|
+
param: string;
|
|
255
|
+
typeGuard: typeof isBoolean;
|
|
256
|
+
defaultValue: boolean;
|
|
257
|
+
};
|
|
258
|
+
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
259
|
+
productKeys: {
|
|
260
|
+
confluence: string;
|
|
261
|
+
};
|
|
262
|
+
param: string;
|
|
263
|
+
typeGuard: (value: unknown) => value is "control" | "default-off" | "default-on";
|
|
264
|
+
defaultValue: "control" | "default-off" | "default-on";
|
|
265
|
+
};
|
|
266
|
+
'platform_editor_ai-prompts-placeholder': {
|
|
267
|
+
productKeys: {
|
|
268
|
+
confluence: string;
|
|
269
|
+
};
|
|
270
|
+
param: string;
|
|
271
|
+
typeGuard: (value: unknown) => value is "test" | "control";
|
|
272
|
+
defaultValue: "test" | "control";
|
|
273
|
+
};
|
|
274
|
+
'editor_ai_-_gpt4_experiment': {
|
|
275
|
+
productKeys: {
|
|
276
|
+
confluence: string;
|
|
277
|
+
};
|
|
278
|
+
param: string;
|
|
279
|
+
typeGuard: (value: unknown) => value is "control" | "einstein";
|
|
280
|
+
defaultValue: "control" | "einstein";
|
|
281
|
+
};
|
|
282
|
+
platform_editor_ai_facepile: {
|
|
283
|
+
productKeys: {
|
|
284
|
+
confluence: string;
|
|
285
|
+
};
|
|
286
|
+
param: string;
|
|
287
|
+
typeGuard: typeof isBoolean;
|
|
288
|
+
defaultValue: boolean;
|
|
289
|
+
};
|
|
250
290
|
};
|
package/dist/types/setup.d.ts
CHANGED
|
@@ -26,13 +26,18 @@ export declare let _overrides: Partial<{
|
|
|
26
26
|
platform_editor_ai_additional_editor_prompts: "test" | "control";
|
|
27
27
|
comment_on_bodied_extensions: boolean;
|
|
28
28
|
platform_editor_ai_floating_toolbar_v2: "control" | "leading" | "trailing";
|
|
29
|
-
'editor_ai_-_proactive_ai_improve_writing': "test" | "control";
|
|
30
29
|
'optimised-apply-dnd': boolean;
|
|
31
30
|
platform_editor_ai_1p_placeholder_hints: "control" | "example-placeholders" | "tip-placeholders";
|
|
32
31
|
advanced_layouts: boolean;
|
|
33
32
|
platform_editor_live_pages_ai_definitions: "test" | "control";
|
|
34
33
|
support_table_in_comment_jira: boolean;
|
|
35
34
|
comment_on_inline_node_spotlight: boolean;
|
|
35
|
+
'editor_ai_-_proactive_ai_model_variations': "control" | "skip_grammar";
|
|
36
|
+
platform_editor_ai_refine_response_button: boolean;
|
|
37
|
+
'editor_ai_-_proactive_ai_spelling_and_grammar': "control" | "default-off" | "default-on";
|
|
38
|
+
'platform_editor_ai-prompts-placeholder': "test" | "control";
|
|
39
|
+
'editor_ai_-_gpt4_experiment': "control" | "einstein";
|
|
40
|
+
platform_editor_ai_facepile: boolean;
|
|
36
41
|
}>;
|
|
37
42
|
export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
|
|
38
43
|
/**
|
|
@@ -45,7 +45,7 @@ declare function eeTest<ExperimentName extends keyof EditorExperimentsConfig>(ex
|
|
|
45
45
|
false: DescribeBody;
|
|
46
46
|
}, otherExperiments?: EditorExperimentOverrides): void;
|
|
47
47
|
declare namespace eeTest {
|
|
48
|
-
var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "basic-text-transformations" | "dnd-input-performance-optimisation" | "element-level-templates" | "add-media-from-url" | "nested-dnd" | "table-nested-dnd" | "insert-menu-in-right-rail" | "platform_editor_empty_line_prompt" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_editor_ai_ai_button_block_elements" | "platform_renderer_table_sticky_scrollbar" | "nest-media-and-codeblock-in-quote" | "nested-expand-in-expand" | "platform_editor_ai_command_palette_post_ga" | "platform_editor_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "platform_editor_ai_additional_editor_prompts" | "comment_on_bodied_extensions" | "platform_editor_ai_floating_toolbar_v2" | "
|
|
48
|
+
var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "basic-text-transformations" | "dnd-input-performance-optimisation" | "element-level-templates" | "add-media-from-url" | "nested-dnd" | "table-nested-dnd" | "insert-menu-in-right-rail" | "platform_editor_empty_line_prompt" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_editor_ai_ai_button_block_elements" | "platform_renderer_table_sticky_scrollbar" | "nest-media-and-codeblock-in-quote" | "nested-expand-in-expand" | "platform_editor_ai_command_palette_post_ga" | "platform_editor_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "platform_editor_ai_additional_editor_prompts" | "comment_on_bodied_extensions" | "platform_editor_ai_floating_toolbar_v2" | "optimised-apply-dnd" | "platform_editor_ai_1p_placeholder_hints" | "advanced_layouts" | "platform_editor_live_pages_ai_definitions" | "support_table_in_comment_jira" | "comment_on_inline_node_spotlight" | "editor_ai_-_proactive_ai_model_variations" | "platform_editor_ai_refine_response_button" | "editor_ai_-_proactive_ai_spelling_and_grammar" | "platform_editor_ai-prompts-placeholder" | "editor_ai_-_gpt4_experiment" | "platform_editor_ai_facepile">(experimentName: ExperimentName, describeName: string) => {
|
|
49
49
|
variant: (value: {
|
|
50
50
|
'example-boolean': {
|
|
51
51
|
productKeys: {
|
|
@@ -232,14 +232,6 @@ declare namespace eeTest {
|
|
|
232
232
|
typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
|
|
233
233
|
defaultValue: "control" | "leading" | "trailing";
|
|
234
234
|
};
|
|
235
|
-
'editor_ai_-_proactive_ai_improve_writing': {
|
|
236
|
-
productKeys: {
|
|
237
|
-
confluence: string;
|
|
238
|
-
};
|
|
239
|
-
param: string;
|
|
240
|
-
typeGuard: (value: unknown) => value is "test" | "control";
|
|
241
|
-
defaultValue: "test" | "control";
|
|
242
|
-
};
|
|
243
235
|
'optimised-apply-dnd': {
|
|
244
236
|
productKeys: {
|
|
245
237
|
confluence: string;
|
|
@@ -288,6 +280,54 @@ declare namespace eeTest {
|
|
|
288
280
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
289
281
|
defaultValue: boolean;
|
|
290
282
|
};
|
|
283
|
+
'editor_ai_-_proactive_ai_model_variations': {
|
|
284
|
+
productKeys: {
|
|
285
|
+
confluence: string;
|
|
286
|
+
};
|
|
287
|
+
param: string;
|
|
288
|
+
typeGuard: (value: unknown) => value is "control" | "skip_grammar";
|
|
289
|
+
defaultValue: "control" | "skip_grammar";
|
|
290
|
+
};
|
|
291
|
+
platform_editor_ai_refine_response_button: {
|
|
292
|
+
productKeys: {
|
|
293
|
+
confluence: string;
|
|
294
|
+
};
|
|
295
|
+
param: string;
|
|
296
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
297
|
+
defaultValue: boolean;
|
|
298
|
+
};
|
|
299
|
+
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
300
|
+
productKeys: {
|
|
301
|
+
confluence: string;
|
|
302
|
+
};
|
|
303
|
+
param: string;
|
|
304
|
+
typeGuard: (value: unknown) => value is "control" | "default-off" | "default-on";
|
|
305
|
+
defaultValue: "control" | "default-off" | "default-on";
|
|
306
|
+
};
|
|
307
|
+
'platform_editor_ai-prompts-placeholder': {
|
|
308
|
+
productKeys: {
|
|
309
|
+
confluence: string;
|
|
310
|
+
};
|
|
311
|
+
param: string;
|
|
312
|
+
typeGuard: (value: unknown) => value is "test" | "control";
|
|
313
|
+
defaultValue: "test" | "control";
|
|
314
|
+
};
|
|
315
|
+
'editor_ai_-_gpt4_experiment': {
|
|
316
|
+
productKeys: {
|
|
317
|
+
confluence: string;
|
|
318
|
+
};
|
|
319
|
+
param: string;
|
|
320
|
+
typeGuard: (value: unknown) => value is "control" | "einstein";
|
|
321
|
+
defaultValue: "control" | "einstein";
|
|
322
|
+
};
|
|
323
|
+
platform_editor_ai_facepile: {
|
|
324
|
+
productKeys: {
|
|
325
|
+
confluence: string;
|
|
326
|
+
};
|
|
327
|
+
param: string;
|
|
328
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
329
|
+
defaultValue: boolean;
|
|
330
|
+
};
|
|
291
331
|
}[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
|
|
292
332
|
each: (describeBody: jest.EmptyFunction) => void;
|
|
293
333
|
};
|
|
@@ -191,14 +191,6 @@ export declare const editorExperimentsConfig: {
|
|
|
191
191
|
typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
|
|
192
192
|
defaultValue: "control" | "leading" | "trailing";
|
|
193
193
|
};
|
|
194
|
-
'editor_ai_-_proactive_ai_improve_writing': {
|
|
195
|
-
productKeys: {
|
|
196
|
-
confluence: string;
|
|
197
|
-
};
|
|
198
|
-
param: string;
|
|
199
|
-
typeGuard: (value: unknown) => value is "test" | "control";
|
|
200
|
-
defaultValue: "test" | "control";
|
|
201
|
-
};
|
|
202
194
|
'optimised-apply-dnd': {
|
|
203
195
|
productKeys: {
|
|
204
196
|
confluence: string;
|
|
@@ -247,4 +239,52 @@ export declare const editorExperimentsConfig: {
|
|
|
247
239
|
typeGuard: typeof isBoolean;
|
|
248
240
|
defaultValue: boolean;
|
|
249
241
|
};
|
|
242
|
+
'editor_ai_-_proactive_ai_model_variations': {
|
|
243
|
+
productKeys: {
|
|
244
|
+
confluence: string;
|
|
245
|
+
};
|
|
246
|
+
param: string;
|
|
247
|
+
typeGuard: (value: unknown) => value is "control" | "skip_grammar";
|
|
248
|
+
defaultValue: "control" | "skip_grammar";
|
|
249
|
+
};
|
|
250
|
+
platform_editor_ai_refine_response_button: {
|
|
251
|
+
productKeys: {
|
|
252
|
+
confluence: string;
|
|
253
|
+
};
|
|
254
|
+
param: string;
|
|
255
|
+
typeGuard: typeof isBoolean;
|
|
256
|
+
defaultValue: boolean;
|
|
257
|
+
};
|
|
258
|
+
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
259
|
+
productKeys: {
|
|
260
|
+
confluence: string;
|
|
261
|
+
};
|
|
262
|
+
param: string;
|
|
263
|
+
typeGuard: (value: unknown) => value is "control" | "default-off" | "default-on";
|
|
264
|
+
defaultValue: "control" | "default-off" | "default-on";
|
|
265
|
+
};
|
|
266
|
+
'platform_editor_ai-prompts-placeholder': {
|
|
267
|
+
productKeys: {
|
|
268
|
+
confluence: string;
|
|
269
|
+
};
|
|
270
|
+
param: string;
|
|
271
|
+
typeGuard: (value: unknown) => value is "test" | "control";
|
|
272
|
+
defaultValue: "test" | "control";
|
|
273
|
+
};
|
|
274
|
+
'editor_ai_-_gpt4_experiment': {
|
|
275
|
+
productKeys: {
|
|
276
|
+
confluence: string;
|
|
277
|
+
};
|
|
278
|
+
param: string;
|
|
279
|
+
typeGuard: (value: unknown) => value is "control" | "einstein";
|
|
280
|
+
defaultValue: "control" | "einstein";
|
|
281
|
+
};
|
|
282
|
+
platform_editor_ai_facepile: {
|
|
283
|
+
productKeys: {
|
|
284
|
+
confluence: string;
|
|
285
|
+
};
|
|
286
|
+
param: string;
|
|
287
|
+
typeGuard: typeof isBoolean;
|
|
288
|
+
defaultValue: boolean;
|
|
289
|
+
};
|
|
250
290
|
};
|
|
@@ -26,13 +26,18 @@ export declare let _overrides: Partial<{
|
|
|
26
26
|
platform_editor_ai_additional_editor_prompts: "test" | "control";
|
|
27
27
|
comment_on_bodied_extensions: boolean;
|
|
28
28
|
platform_editor_ai_floating_toolbar_v2: "control" | "leading" | "trailing";
|
|
29
|
-
'editor_ai_-_proactive_ai_improve_writing': "test" | "control";
|
|
30
29
|
'optimised-apply-dnd': boolean;
|
|
31
30
|
platform_editor_ai_1p_placeholder_hints: "control" | "example-placeholders" | "tip-placeholders";
|
|
32
31
|
advanced_layouts: boolean;
|
|
33
32
|
platform_editor_live_pages_ai_definitions: "test" | "control";
|
|
34
33
|
support_table_in_comment_jira: boolean;
|
|
35
34
|
comment_on_inline_node_spotlight: boolean;
|
|
35
|
+
'editor_ai_-_proactive_ai_model_variations': "control" | "skip_grammar";
|
|
36
|
+
platform_editor_ai_refine_response_button: boolean;
|
|
37
|
+
'editor_ai_-_proactive_ai_spelling_and_grammar': "control" | "default-off" | "default-on";
|
|
38
|
+
'platform_editor_ai-prompts-placeholder': "test" | "control";
|
|
39
|
+
'editor_ai_-_gpt4_experiment': "control" | "einstein";
|
|
40
|
+
platform_editor_ai_facepile: boolean;
|
|
36
41
|
}>;
|
|
37
42
|
export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
|
|
38
43
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tmp-editor-statsig",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.1",
|
|
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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"./editor-experiments-test-utils": "./src/editor-experiments-test-utils.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/feature-gate-js-client": "^4.
|
|
39
|
+
"@atlaskit/feature-gate-js-client": "^4.22.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|