@atlaskit/tmp-editor-statsig 2.20.0 → 2.21.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 +18 -0
- package/dist/cjs/experiments-config.js +9 -8
- package/dist/es2019/experiments-config.js +9 -8
- package/dist/esm/experiments-config.js +9 -8
- package/dist/types/editor-experiments-test-utils.d.ts +9 -9
- package/dist/types/experiments-config.d.ts +8 -8
- package/dist/types/setup.d.ts +1 -1
- package/dist/types-ts4.5/editor-experiments-test-utils.d.ts +9 -9
- package/dist/types-ts4.5/experiments-config.d.ts +8 -8
- package/dist/types-ts4.5/setup.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 2.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#166948](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166948)
|
|
8
|
+
[`0ab57e453a9f5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0ab57e453a9f5) -
|
|
9
|
+
EDF-1639: Add prefillable prompts for Confluence pages so that when a user selects such prompt, it
|
|
10
|
+
will prefill their AI input field. This is an experiment under platform_editor_ai_draft_with_ai.
|
|
11
|
+
|
|
12
|
+
## 2.20.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#167651](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167651)
|
|
17
|
+
[`5149d4fb1b488`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5149d4fb1b488) -
|
|
18
|
+
Removed experiment editor*ai*-\_proactive_ai_spelling_and_grammar and defaulted the S+G config to
|
|
19
|
+
on
|
|
20
|
+
|
|
3
21
|
## 2.20.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -267,14 +267,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
267
267
|
typeGuard: _typeGuards.isBoolean,
|
|
268
268
|
defaultValue: false
|
|
269
269
|
},
|
|
270
|
-
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
271
|
-
productKeys: {
|
|
272
|
-
confluence: 'editor_ai_-_proactive_ai_spelling_and_grammar'
|
|
273
|
-
},
|
|
274
|
-
param: 'cohort',
|
|
275
|
-
typeGuard: (0, _typeGuards.oneOf)(['control', 'default-off', 'default-on']),
|
|
276
|
-
defaultValue: 'control'
|
|
277
|
-
},
|
|
278
270
|
'platform_editor_ai-prompts-placeholder': {
|
|
279
271
|
productKeys: {
|
|
280
272
|
confluence: 'platform_editor_ai-prompts-placeholder'
|
|
@@ -354,5 +346,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
354
346
|
param: 'isEnabled',
|
|
355
347
|
typeGuard: _typeGuards.isBoolean,
|
|
356
348
|
defaultValue: false
|
|
349
|
+
},
|
|
350
|
+
// Added 2024-11-21
|
|
351
|
+
platform_editor_ai_draft_with_ai: {
|
|
352
|
+
productKeys: {
|
|
353
|
+
confluence: 'platform_editor_ai_draft_with_ai'
|
|
354
|
+
},
|
|
355
|
+
param: 'isEnabled',
|
|
356
|
+
typeGuard: _typeGuards.isBoolean,
|
|
357
|
+
defaultValue: false
|
|
357
358
|
}
|
|
358
359
|
};
|
|
@@ -261,14 +261,6 @@ export const editorExperimentsConfig = {
|
|
|
261
261
|
typeGuard: isBoolean,
|
|
262
262
|
defaultValue: false
|
|
263
263
|
},
|
|
264
|
-
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
265
|
-
productKeys: {
|
|
266
|
-
confluence: 'editor_ai_-_proactive_ai_spelling_and_grammar'
|
|
267
|
-
},
|
|
268
|
-
param: 'cohort',
|
|
269
|
-
typeGuard: oneOf(['control', 'default-off', 'default-on']),
|
|
270
|
-
defaultValue: 'control'
|
|
271
|
-
},
|
|
272
264
|
'platform_editor_ai-prompts-placeholder': {
|
|
273
265
|
productKeys: {
|
|
274
266
|
confluence: 'platform_editor_ai-prompts-placeholder'
|
|
@@ -348,5 +340,14 @@ export const editorExperimentsConfig = {
|
|
|
348
340
|
param: 'isEnabled',
|
|
349
341
|
typeGuard: isBoolean,
|
|
350
342
|
defaultValue: false
|
|
343
|
+
},
|
|
344
|
+
// Added 2024-11-21
|
|
345
|
+
platform_editor_ai_draft_with_ai: {
|
|
346
|
+
productKeys: {
|
|
347
|
+
confluence: 'platform_editor_ai_draft_with_ai'
|
|
348
|
+
},
|
|
349
|
+
param: 'isEnabled',
|
|
350
|
+
typeGuard: isBoolean,
|
|
351
|
+
defaultValue: false
|
|
351
352
|
}
|
|
352
353
|
};
|
|
@@ -261,14 +261,6 @@ export var editorExperimentsConfig = {
|
|
|
261
261
|
typeGuard: isBoolean,
|
|
262
262
|
defaultValue: false
|
|
263
263
|
},
|
|
264
|
-
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
265
|
-
productKeys: {
|
|
266
|
-
confluence: 'editor_ai_-_proactive_ai_spelling_and_grammar'
|
|
267
|
-
},
|
|
268
|
-
param: 'cohort',
|
|
269
|
-
typeGuard: oneOf(['control', 'default-off', 'default-on']),
|
|
270
|
-
defaultValue: 'control'
|
|
271
|
-
},
|
|
272
264
|
'platform_editor_ai-prompts-placeholder': {
|
|
273
265
|
productKeys: {
|
|
274
266
|
confluence: 'platform_editor_ai-prompts-placeholder'
|
|
@@ -348,5 +340,14 @@ export var editorExperimentsConfig = {
|
|
|
348
340
|
param: 'isEnabled',
|
|
349
341
|
typeGuard: isBoolean,
|
|
350
342
|
defaultValue: false
|
|
343
|
+
},
|
|
344
|
+
// Added 2024-11-21
|
|
345
|
+
platform_editor_ai_draft_with_ai: {
|
|
346
|
+
productKeys: {
|
|
347
|
+
confluence: 'platform_editor_ai_draft_with_ai'
|
|
348
|
+
},
|
|
349
|
+
param: 'isEnabled',
|
|
350
|
+
typeGuard: isBoolean,
|
|
351
|
+
defaultValue: false
|
|
351
352
|
}
|
|
352
353
|
};
|
|
@@ -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" | "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_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "platform_editor_ai_additional_editor_prompts" | "comment_on_bodied_extensions" | "optimised-apply-dnd" | "platform_editor_ai_1p_placeholder_hints" | "advanced_layouts" | "support_table_in_comment_jira" | "comment_on_inline_node_spotlight" | "editor_ai_-_proactive_ai_model_variations" | "platform_editor_ai_refine_response_button" | "
|
|
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" | "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_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "platform_editor_ai_additional_editor_prompts" | "comment_on_bodied_extensions" | "optimised-apply-dnd" | "platform_editor_ai_1p_placeholder_hints" | "advanced_layouts" | "support_table_in_comment_jira" | "comment_on_inline_node_spotlight" | "editor_ai_-_proactive_ai_model_variations" | "platform_editor_ai_refine_response_button" | "platform_editor_ai-prompts-placeholder" | "editor_ai_-_gpt4_experiment" | "platform_editor_ai_facepile" | "nested-tables-in-tables" | "platform_editor_ai_change_tone_floating_toolbar" | "platform_editor_ai_response_history" | "issue_view_action_items" | "contextual_formatting_toolbar" | "platform_editor_ai_1p_smart_link_unfurl_in_prompt" | "platform_editor_ai_draft_with_ai">(experimentName: ExperimentName, describeName: string) => {
|
|
49
49
|
variant: (value: {
|
|
50
50
|
'example-boolean': {
|
|
51
51
|
productKeys: {
|
|
@@ -264,14 +264,6 @@ declare namespace eeTest {
|
|
|
264
264
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
265
265
|
defaultValue: boolean;
|
|
266
266
|
};
|
|
267
|
-
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
268
|
-
productKeys: {
|
|
269
|
-
confluence: string;
|
|
270
|
-
};
|
|
271
|
-
param: string;
|
|
272
|
-
typeGuard: (value: unknown) => value is "control" | "default-off" | "default-on";
|
|
273
|
-
defaultValue: "control" | "default-off" | "default-on";
|
|
274
|
-
};
|
|
275
267
|
'platform_editor_ai-prompts-placeholder': {
|
|
276
268
|
productKeys: {
|
|
277
269
|
confluence: string;
|
|
@@ -344,6 +336,14 @@ declare namespace eeTest {
|
|
|
344
336
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
345
337
|
defaultValue: boolean;
|
|
346
338
|
};
|
|
339
|
+
platform_editor_ai_draft_with_ai: {
|
|
340
|
+
productKeys: {
|
|
341
|
+
confluence: string;
|
|
342
|
+
};
|
|
343
|
+
param: string;
|
|
344
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
345
|
+
defaultValue: boolean;
|
|
346
|
+
};
|
|
347
347
|
}[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
|
|
348
348
|
each: (describeBody: jest.EmptyFunction) => void;
|
|
349
349
|
};
|
|
@@ -223,14 +223,6 @@ export declare const editorExperimentsConfig: {
|
|
|
223
223
|
typeGuard: typeof isBoolean;
|
|
224
224
|
defaultValue: boolean;
|
|
225
225
|
};
|
|
226
|
-
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
227
|
-
productKeys: {
|
|
228
|
-
confluence: string;
|
|
229
|
-
};
|
|
230
|
-
param: string;
|
|
231
|
-
typeGuard: (value: unknown) => value is "control" | "default-off" | "default-on";
|
|
232
|
-
defaultValue: "control" | "default-off" | "default-on";
|
|
233
|
-
};
|
|
234
226
|
'platform_editor_ai-prompts-placeholder': {
|
|
235
227
|
productKeys: {
|
|
236
228
|
confluence: string;
|
|
@@ -303,4 +295,12 @@ export declare const editorExperimentsConfig: {
|
|
|
303
295
|
typeGuard: typeof isBoolean;
|
|
304
296
|
defaultValue: boolean;
|
|
305
297
|
};
|
|
298
|
+
platform_editor_ai_draft_with_ai: {
|
|
299
|
+
productKeys: {
|
|
300
|
+
confluence: string;
|
|
301
|
+
};
|
|
302
|
+
param: string;
|
|
303
|
+
typeGuard: typeof isBoolean;
|
|
304
|
+
defaultValue: boolean;
|
|
305
|
+
};
|
|
306
306
|
};
|
package/dist/types/setup.d.ts
CHANGED
|
@@ -30,7 +30,6 @@ export declare let _overrides: Partial<{
|
|
|
30
30
|
comment_on_inline_node_spotlight: boolean;
|
|
31
31
|
'editor_ai_-_proactive_ai_model_variations': "control" | "skip_grammar";
|
|
32
32
|
platform_editor_ai_refine_response_button: boolean;
|
|
33
|
-
'editor_ai_-_proactive_ai_spelling_and_grammar': "control" | "default-off" | "default-on";
|
|
34
33
|
'platform_editor_ai-prompts-placeholder': "test" | "control";
|
|
35
34
|
'editor_ai_-_gpt4_experiment': "control" | "einstein";
|
|
36
35
|
platform_editor_ai_facepile: boolean;
|
|
@@ -40,6 +39,7 @@ export declare let _overrides: Partial<{
|
|
|
40
39
|
issue_view_action_items: boolean;
|
|
41
40
|
contextual_formatting_toolbar: boolean;
|
|
42
41
|
platform_editor_ai_1p_smart_link_unfurl_in_prompt: boolean;
|
|
42
|
+
platform_editor_ai_draft_with_ai: boolean;
|
|
43
43
|
}>;
|
|
44
44
|
export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
|
|
45
45
|
/**
|
|
@@ -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" | "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_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "platform_editor_ai_additional_editor_prompts" | "comment_on_bodied_extensions" | "optimised-apply-dnd" | "platform_editor_ai_1p_placeholder_hints" | "advanced_layouts" | "support_table_in_comment_jira" | "comment_on_inline_node_spotlight" | "editor_ai_-_proactive_ai_model_variations" | "platform_editor_ai_refine_response_button" | "
|
|
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" | "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_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "platform_editor_ai_additional_editor_prompts" | "comment_on_bodied_extensions" | "optimised-apply-dnd" | "platform_editor_ai_1p_placeholder_hints" | "advanced_layouts" | "support_table_in_comment_jira" | "comment_on_inline_node_spotlight" | "editor_ai_-_proactive_ai_model_variations" | "platform_editor_ai_refine_response_button" | "platform_editor_ai-prompts-placeholder" | "editor_ai_-_gpt4_experiment" | "platform_editor_ai_facepile" | "nested-tables-in-tables" | "platform_editor_ai_change_tone_floating_toolbar" | "platform_editor_ai_response_history" | "issue_view_action_items" | "contextual_formatting_toolbar" | "platform_editor_ai_1p_smart_link_unfurl_in_prompt" | "platform_editor_ai_draft_with_ai">(experimentName: ExperimentName, describeName: string) => {
|
|
49
49
|
variant: (value: {
|
|
50
50
|
'example-boolean': {
|
|
51
51
|
productKeys: {
|
|
@@ -264,14 +264,6 @@ declare namespace eeTest {
|
|
|
264
264
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
265
265
|
defaultValue: boolean;
|
|
266
266
|
};
|
|
267
|
-
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
268
|
-
productKeys: {
|
|
269
|
-
confluence: string;
|
|
270
|
-
};
|
|
271
|
-
param: string;
|
|
272
|
-
typeGuard: (value: unknown) => value is "control" | "default-off" | "default-on";
|
|
273
|
-
defaultValue: "control" | "default-off" | "default-on";
|
|
274
|
-
};
|
|
275
267
|
'platform_editor_ai-prompts-placeholder': {
|
|
276
268
|
productKeys: {
|
|
277
269
|
confluence: string;
|
|
@@ -344,6 +336,14 @@ declare namespace eeTest {
|
|
|
344
336
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
345
337
|
defaultValue: boolean;
|
|
346
338
|
};
|
|
339
|
+
platform_editor_ai_draft_with_ai: {
|
|
340
|
+
productKeys: {
|
|
341
|
+
confluence: string;
|
|
342
|
+
};
|
|
343
|
+
param: string;
|
|
344
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
345
|
+
defaultValue: boolean;
|
|
346
|
+
};
|
|
347
347
|
}[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
|
|
348
348
|
each: (describeBody: jest.EmptyFunction) => void;
|
|
349
349
|
};
|
|
@@ -223,14 +223,6 @@ export declare const editorExperimentsConfig: {
|
|
|
223
223
|
typeGuard: typeof isBoolean;
|
|
224
224
|
defaultValue: boolean;
|
|
225
225
|
};
|
|
226
|
-
'editor_ai_-_proactive_ai_spelling_and_grammar': {
|
|
227
|
-
productKeys: {
|
|
228
|
-
confluence: string;
|
|
229
|
-
};
|
|
230
|
-
param: string;
|
|
231
|
-
typeGuard: (value: unknown) => value is "control" | "default-off" | "default-on";
|
|
232
|
-
defaultValue: "control" | "default-off" | "default-on";
|
|
233
|
-
};
|
|
234
226
|
'platform_editor_ai-prompts-placeholder': {
|
|
235
227
|
productKeys: {
|
|
236
228
|
confluence: string;
|
|
@@ -303,4 +295,12 @@ export declare const editorExperimentsConfig: {
|
|
|
303
295
|
typeGuard: typeof isBoolean;
|
|
304
296
|
defaultValue: boolean;
|
|
305
297
|
};
|
|
298
|
+
platform_editor_ai_draft_with_ai: {
|
|
299
|
+
productKeys: {
|
|
300
|
+
confluence: string;
|
|
301
|
+
};
|
|
302
|
+
param: string;
|
|
303
|
+
typeGuard: typeof isBoolean;
|
|
304
|
+
defaultValue: boolean;
|
|
305
|
+
};
|
|
306
306
|
};
|
|
@@ -30,7 +30,6 @@ export declare let _overrides: Partial<{
|
|
|
30
30
|
comment_on_inline_node_spotlight: boolean;
|
|
31
31
|
'editor_ai_-_proactive_ai_model_variations': "control" | "skip_grammar";
|
|
32
32
|
platform_editor_ai_refine_response_button: boolean;
|
|
33
|
-
'editor_ai_-_proactive_ai_spelling_and_grammar': "control" | "default-off" | "default-on";
|
|
34
33
|
'platform_editor_ai-prompts-placeholder': "test" | "control";
|
|
35
34
|
'editor_ai_-_gpt4_experiment': "control" | "einstein";
|
|
36
35
|
platform_editor_ai_facepile: boolean;
|
|
@@ -40,6 +39,7 @@ export declare let _overrides: Partial<{
|
|
|
40
39
|
issue_view_action_items: boolean;
|
|
41
40
|
contextual_formatting_toolbar: boolean;
|
|
42
41
|
platform_editor_ai_1p_smart_link_unfurl_in_prompt: boolean;
|
|
42
|
+
platform_editor_ai_draft_with_ai: boolean;
|
|
43
43
|
}>;
|
|
44
44
|
export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
|
|
45
45
|
/**
|
package/package.json
CHANGED