@atlaskit/tmp-editor-statsig 2.3.0 → 2.3.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 2.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#150384](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150384)
8
+ [`d3dad252dbe46`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d3dad252dbe46) -
9
+ [EDF-1177](https://product-fabric.atlassian.net/browse/EDF-1177) - add pulse effect support into
10
+ editor floating toolbar
11
+
3
12
  ## 2.3.0
4
13
 
5
14
  ### Minor Changes
@@ -218,6 +218,16 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
218
218
  typeGuard: (0, _typeGuards.oneOf)(['control', 'test']),
219
219
  defaultValue: 'control'
220
220
  },
221
+ // Added 2024-10-03
222
+ // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_ai_onboarding/setup
223
+ platform_editor_ai_onboarding: {
224
+ productKeys: {
225
+ confluence: 'platform_editor_ai_onboarding'
226
+ },
227
+ param: 'cohort',
228
+ typeGuard: (0, _typeGuards.oneOf)(['control', 'test']),
229
+ defaultValue: 'control'
230
+ },
221
231
  // Added 2024-10-01
222
232
  comment_on_bodied_extensions: {
223
233
  productKeys: {
@@ -232,9 +242,9 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
232
242
  productKeys: {
233
243
  confluence: 'platform_editor_ai_floating_toolbar_v2'
234
244
  },
235
- param: 'isEnabled',
236
- typeGuard: _typeGuards.isBoolean,
237
- defaultValue: false
245
+ param: 'cohort',
246
+ typeGuard: (0, _typeGuards.oneOf)(['control', 'leading', 'trailing']),
247
+ defaultValue: 'control'
238
248
  },
239
249
  // Added 2024-10-04
240
250
  // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_typography_migration_ugc/setup
@@ -212,6 +212,16 @@ export const editorExperimentsConfig = {
212
212
  typeGuard: oneOf(['control', 'test']),
213
213
  defaultValue: 'control'
214
214
  },
215
+ // Added 2024-10-03
216
+ // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_ai_onboarding/setup
217
+ platform_editor_ai_onboarding: {
218
+ productKeys: {
219
+ confluence: 'platform_editor_ai_onboarding'
220
+ },
221
+ param: 'cohort',
222
+ typeGuard: oneOf(['control', 'test']),
223
+ defaultValue: 'control'
224
+ },
215
225
  // Added 2024-10-01
216
226
  comment_on_bodied_extensions: {
217
227
  productKeys: {
@@ -226,9 +236,9 @@ export const editorExperimentsConfig = {
226
236
  productKeys: {
227
237
  confluence: 'platform_editor_ai_floating_toolbar_v2'
228
238
  },
229
- param: 'isEnabled',
230
- typeGuard: isBoolean,
231
- defaultValue: false
239
+ param: 'cohort',
240
+ typeGuard: oneOf(['control', 'leading', 'trailing']),
241
+ defaultValue: 'control'
232
242
  },
233
243
  // Added 2024-10-04
234
244
  // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_typography_migration_ugc/setup
@@ -212,6 +212,16 @@ export var editorExperimentsConfig = {
212
212
  typeGuard: oneOf(['control', 'test']),
213
213
  defaultValue: 'control'
214
214
  },
215
+ // Added 2024-10-03
216
+ // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_ai_onboarding/setup
217
+ platform_editor_ai_onboarding: {
218
+ productKeys: {
219
+ confluence: 'platform_editor_ai_onboarding'
220
+ },
221
+ param: 'cohort',
222
+ typeGuard: oneOf(['control', 'test']),
223
+ defaultValue: 'control'
224
+ },
215
225
  // Added 2024-10-01
216
226
  comment_on_bodied_extensions: {
217
227
  productKeys: {
@@ -226,9 +236,9 @@ export var editorExperimentsConfig = {
226
236
  productKeys: {
227
237
  confluence: 'platform_editor_ai_floating_toolbar_v2'
228
238
  },
229
- param: 'isEnabled',
230
- typeGuard: isBoolean,
231
- defaultValue: false
239
+ param: 'cohort',
240
+ typeGuard: oneOf(['control', 'leading', 'trailing']),
241
+ defaultValue: 'control'
232
242
  },
233
243
  // Added 2024-10-04
234
244
  // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_typography_migration_ugc/setup
@@ -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" | "platform_editor_ai_command_palate_improvement" | "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" | "typography_migration_ugc">(experimentName: ExperimentName, describeName: string) => {
48
+ var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "basic-text-transformations" | "platform_editor_ai_command_palate_improvement" | "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" | "platform_editor_ai_onboarding" | "comment_on_bodied_extensions" | "platform_editor_ai_floating_toolbar_v2" | "typography_migration_ugc">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  productKeys: {
@@ -224,6 +224,14 @@ declare namespace eeTest {
224
224
  typeGuard: (value: unknown) => value is "test" | "control";
225
225
  defaultValue: "test" | "control";
226
226
  };
227
+ platform_editor_ai_onboarding: {
228
+ productKeys: {
229
+ confluence: string;
230
+ };
231
+ param: string;
232
+ typeGuard: (value: unknown) => value is "test" | "control";
233
+ defaultValue: "test" | "control";
234
+ };
227
235
  comment_on_bodied_extensions: {
228
236
  productKeys: {
229
237
  confluence: string;
@@ -237,8 +245,8 @@ declare namespace eeTest {
237
245
  confluence: string;
238
246
  };
239
247
  param: string;
240
- typeGuard: typeof import("./type-guards").isBoolean;
241
- defaultValue: boolean;
248
+ typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
249
+ defaultValue: "control" | "leading" | "trailing";
242
250
  };
243
251
  typography_migration_ugc: {
244
252
  productKeys: {
@@ -183,6 +183,14 @@ export declare const editorExperimentsConfig: {
183
183
  typeGuard: (value: unknown) => value is "test" | "control";
184
184
  defaultValue: "test" | "control";
185
185
  };
186
+ platform_editor_ai_onboarding: {
187
+ productKeys: {
188
+ confluence: string;
189
+ };
190
+ param: string;
191
+ typeGuard: (value: unknown) => value is "test" | "control";
192
+ defaultValue: "test" | "control";
193
+ };
186
194
  comment_on_bodied_extensions: {
187
195
  productKeys: {
188
196
  confluence: string;
@@ -196,8 +204,8 @@ export declare const editorExperimentsConfig: {
196
204
  confluence: string;
197
205
  };
198
206
  param: string;
199
- typeGuard: typeof isBoolean;
200
- defaultValue: boolean;
207
+ typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
208
+ defaultValue: "control" | "leading" | "trailing";
201
209
  };
202
210
  typography_migration_ugc: {
203
211
  productKeys: {
@@ -25,8 +25,9 @@ export declare let _overrides: Partial<{
25
25
  platform_editor_table_use_shared_state_hook: boolean;
26
26
  'editor_ai_-_multi_prompts': "test" | "control";
27
27
  platform_editor_ai_additional_editor_prompts: "test" | "control";
28
+ platform_editor_ai_onboarding: "test" | "control";
28
29
  comment_on_bodied_extensions: boolean;
29
- platform_editor_ai_floating_toolbar_v2: boolean;
30
+ platform_editor_ai_floating_toolbar_v2: "control" | "leading" | "trailing";
30
31
  typography_migration_ugc: boolean;
31
32
  }>;
32
33
  export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
@@ -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" | "platform_editor_ai_command_palate_improvement" | "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" | "typography_migration_ugc">(experimentName: ExperimentName, describeName: string) => {
48
+ var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "basic-text-transformations" | "platform_editor_ai_command_palate_improvement" | "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" | "platform_editor_ai_onboarding" | "comment_on_bodied_extensions" | "platform_editor_ai_floating_toolbar_v2" | "typography_migration_ugc">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  productKeys: {
@@ -224,6 +224,14 @@ declare namespace eeTest {
224
224
  typeGuard: (value: unknown) => value is "test" | "control";
225
225
  defaultValue: "test" | "control";
226
226
  };
227
+ platform_editor_ai_onboarding: {
228
+ productKeys: {
229
+ confluence: string;
230
+ };
231
+ param: string;
232
+ typeGuard: (value: unknown) => value is "test" | "control";
233
+ defaultValue: "test" | "control";
234
+ };
227
235
  comment_on_bodied_extensions: {
228
236
  productKeys: {
229
237
  confluence: string;
@@ -237,8 +245,8 @@ declare namespace eeTest {
237
245
  confluence: string;
238
246
  };
239
247
  param: string;
240
- typeGuard: typeof import("./type-guards").isBoolean;
241
- defaultValue: boolean;
248
+ typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
249
+ defaultValue: "control" | "leading" | "trailing";
242
250
  };
243
251
  typography_migration_ugc: {
244
252
  productKeys: {
@@ -183,6 +183,14 @@ export declare const editorExperimentsConfig: {
183
183
  typeGuard: (value: unknown) => value is "test" | "control";
184
184
  defaultValue: "test" | "control";
185
185
  };
186
+ platform_editor_ai_onboarding: {
187
+ productKeys: {
188
+ confluence: string;
189
+ };
190
+ param: string;
191
+ typeGuard: (value: unknown) => value is "test" | "control";
192
+ defaultValue: "test" | "control";
193
+ };
186
194
  comment_on_bodied_extensions: {
187
195
  productKeys: {
188
196
  confluence: string;
@@ -196,8 +204,8 @@ export declare const editorExperimentsConfig: {
196
204
  confluence: string;
197
205
  };
198
206
  param: string;
199
- typeGuard: typeof isBoolean;
200
- defaultValue: boolean;
207
+ typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
208
+ defaultValue: "control" | "leading" | "trailing";
201
209
  };
202
210
  typography_migration_ugc: {
203
211
  productKeys: {
@@ -25,8 +25,9 @@ export declare let _overrides: Partial<{
25
25
  platform_editor_table_use_shared_state_hook: boolean;
26
26
  'editor_ai_-_multi_prompts': "test" | "control";
27
27
  platform_editor_ai_additional_editor_prompts: "test" | "control";
28
+ platform_editor_ai_onboarding: "test" | "control";
28
29
  comment_on_bodied_extensions: boolean;
29
- platform_editor_ai_floating_toolbar_v2: boolean;
30
+ platform_editor_ai_floating_toolbar_v2: "control" | "leading" | "trailing";
30
31
  typography_migration_ugc: boolean;
31
32
  }>;
32
33
  export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "2.3.0",
3
+ "version": "2.3.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",