@atlaskit/tmp-editor-statsig 2.10.0 → 2.11.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
+ ## 2.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#159227](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159227)
8
+ [`a82a45030b4c3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a82a45030b4c3) -
9
+ [EDF-1716] Removed getExperimentCohort from @atlassian/generative-ai-modal/utils/experiments
10
+
3
11
  ## 2.10.0
4
12
 
5
13
  ### Minor Changes
@@ -294,5 +294,38 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
294
294
  param: 'isEnabled',
295
295
  typeGuard: _typeGuards.isBoolean,
296
296
  defaultValue: false
297
+ },
298
+ // Added 28-10-2024
299
+ 'editor_ai_-_proactive_ai_model_variations': {
300
+ productKeys: {
301
+ confluence: 'editor_ai_-_proactive_ai_model_variations'
302
+ },
303
+ param: 'cohort',
304
+ typeGuard: (0, _typeGuards.oneOf)(['control', 'skip_grammar']),
305
+ defaultValue: 'control'
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'
297
330
  }
298
331
  };
@@ -288,5 +288,38 @@ export const editorExperimentsConfig = {
288
288
  param: 'isEnabled',
289
289
  typeGuard: isBoolean,
290
290
  defaultValue: false
291
+ },
292
+ // Added 28-10-2024
293
+ 'editor_ai_-_proactive_ai_model_variations': {
294
+ productKeys: {
295
+ confluence: 'editor_ai_-_proactive_ai_model_variations'
296
+ },
297
+ param: 'cohort',
298
+ typeGuard: oneOf(['control', 'skip_grammar']),
299
+ defaultValue: 'control'
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'
291
324
  }
292
325
  };
@@ -288,5 +288,38 @@ export var editorExperimentsConfig = {
288
288
  param: 'isEnabled',
289
289
  typeGuard: isBoolean,
290
290
  defaultValue: false
291
+ },
292
+ // Added 28-10-2024
293
+ 'editor_ai_-_proactive_ai_model_variations': {
294
+ productKeys: {
295
+ confluence: 'editor_ai_-_proactive_ai_model_variations'
296
+ },
297
+ param: 'cohort',
298
+ typeGuard: oneOf(['control', 'skip_grammar']),
299
+ defaultValue: 'control'
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'
291
324
  }
292
325
  };
@@ -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" | "editor_ai_-_proactive_ai_improve_writing" | "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">(experimentName: ExperimentName, describeName: string) => {
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" | "editor_ai_-_proactive_ai_improve_writing" | "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" | "editor_ai_-_proactive_ai_spelling_and_grammar" | "platform_editor_ai-prompts-placeholder" | "editor_ai_-_gpt4_experiment">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  productKeys: {
@@ -288,6 +288,38 @@ declare namespace eeTest {
288
288
  typeGuard: typeof import("./type-guards").isBoolean;
289
289
  defaultValue: boolean;
290
290
  };
291
+ 'editor_ai_-_proactive_ai_model_variations': {
292
+ productKeys: {
293
+ confluence: string;
294
+ };
295
+ param: string;
296
+ typeGuard: (value: unknown) => value is "control" | "skip_grammar";
297
+ defaultValue: "control" | "skip_grammar";
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
+ };
291
323
  }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
292
324
  each: (describeBody: jest.EmptyFunction) => void;
293
325
  };
@@ -247,4 +247,36 @@ export declare const editorExperimentsConfig: {
247
247
  typeGuard: typeof isBoolean;
248
248
  defaultValue: boolean;
249
249
  };
250
+ 'editor_ai_-_proactive_ai_model_variations': {
251
+ productKeys: {
252
+ confluence: string;
253
+ };
254
+ param: string;
255
+ typeGuard: (value: unknown) => value is "control" | "skip_grammar";
256
+ defaultValue: "control" | "skip_grammar";
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
+ };
250
282
  };
@@ -33,6 +33,10 @@ export declare let _overrides: Partial<{
33
33
  platform_editor_live_pages_ai_definitions: "test" | "control";
34
34
  support_table_in_comment_jira: boolean;
35
35
  comment_on_inline_node_spotlight: boolean;
36
+ 'editor_ai_-_proactive_ai_model_variations': "control" | "skip_grammar";
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";
36
40
  }>;
37
41
  export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
38
42
  /**
@@ -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" | "editor_ai_-_proactive_ai_improve_writing" | "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">(experimentName: ExperimentName, describeName: string) => {
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" | "editor_ai_-_proactive_ai_improve_writing" | "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" | "editor_ai_-_proactive_ai_spelling_and_grammar" | "platform_editor_ai-prompts-placeholder" | "editor_ai_-_gpt4_experiment">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  productKeys: {
@@ -288,6 +288,38 @@ declare namespace eeTest {
288
288
  typeGuard: typeof import("./type-guards").isBoolean;
289
289
  defaultValue: boolean;
290
290
  };
291
+ 'editor_ai_-_proactive_ai_model_variations': {
292
+ productKeys: {
293
+ confluence: string;
294
+ };
295
+ param: string;
296
+ typeGuard: (value: unknown) => value is "control" | "skip_grammar";
297
+ defaultValue: "control" | "skip_grammar";
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
+ };
291
323
  }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
292
324
  each: (describeBody: jest.EmptyFunction) => void;
293
325
  };
@@ -247,4 +247,36 @@ export declare const editorExperimentsConfig: {
247
247
  typeGuard: typeof isBoolean;
248
248
  defaultValue: boolean;
249
249
  };
250
+ 'editor_ai_-_proactive_ai_model_variations': {
251
+ productKeys: {
252
+ confluence: string;
253
+ };
254
+ param: string;
255
+ typeGuard: (value: unknown) => value is "control" | "skip_grammar";
256
+ defaultValue: "control" | "skip_grammar";
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
+ };
250
282
  };
@@ -33,6 +33,10 @@ export declare let _overrides: Partial<{
33
33
  platform_editor_live_pages_ai_definitions: "test" | "control";
34
34
  support_table_in_comment_jira: boolean;
35
35
  comment_on_inline_node_spotlight: boolean;
36
+ 'editor_ai_-_proactive_ai_model_variations': "control" | "skip_grammar";
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";
36
40
  }>;
37
41
  export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
38
42
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "2.10.0",
3
+ "version": "2.11.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",
@@ -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.20.0",
39
+ "@atlaskit/feature-gate-js-client": "^4.22.0",
40
40
  "@babel/runtime": "^7.0.0"
41
41
  },
42
42
  "peerDependencies": {