@atlaskit/tmp-editor-statsig 2.3.2 → 2.4.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,16 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 2.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#152099](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152099)
8
+ [`e7d3d5459e447`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e7d3d5459e447) -
9
+ Add optimised-apply-dnd
10
+ - [#151154](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151154)
11
+ [`c10924372260d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c10924372260d) -
12
+ minor bump to ensure previously added experiments are picked up by products
13
+
3
14
  ## 2.3.2
4
15
 
5
16
  ### Patch Changes
@@ -246,6 +246,16 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
246
246
  typeGuard: (0, _typeGuards.oneOf)(['control', 'leading', 'trailing']),
247
247
  defaultValue: 'control'
248
248
  },
249
+ // Added 2024-10-03
250
+ // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/editor_ai_-_proactive_ai_improve_writing/setup
251
+ 'editor_ai_-_proactive_ai_improve_writing': {
252
+ productKeys: {
253
+ confluence: 'editor_ai_-_proactive_ai_improve_writing'
254
+ },
255
+ param: 'cohort',
256
+ typeGuard: (0, _typeGuards.oneOf)(['control', 'test']),
257
+ defaultValue: 'control'
258
+ },
249
259
  // Added 2024-10-04
250
260
  // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_typography_migration_ugc/setup
251
261
  typography_migration_ugc: {
@@ -256,14 +266,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
256
266
  typeGuard: _typeGuards.isBoolean,
257
267
  defaultValue: false
258
268
  },
259
- // Added 2024-10-03
260
- // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/editor_ai_-_proactive_ai_improve_writing/setup
261
- 'editor_ai_-_proactive_ai_improve_writing': {
269
+ // Added 2024-10-06
270
+ // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_element_dnd_apply_optimisation
271
+ 'optimised-apply-dnd': {
262
272
  productKeys: {
263
- confluence: 'editor_ai_-_proactive_ai_improve_writing'
273
+ confluence: 'platform_editor_element_dnd_apply_optimisation'
264
274
  },
265
- param: 'cohort',
266
- typeGuard: (0, _typeGuards.oneOf)(['control', 'test']),
267
- defaultValue: 'control'
275
+ param: 'isEnabled',
276
+ typeGuard: _typeGuards.isBoolean,
277
+ defaultValue: false
268
278
  }
269
279
  };
@@ -240,6 +240,16 @@ export const editorExperimentsConfig = {
240
240
  typeGuard: oneOf(['control', 'leading', 'trailing']),
241
241
  defaultValue: 'control'
242
242
  },
243
+ // Added 2024-10-03
244
+ // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/editor_ai_-_proactive_ai_improve_writing/setup
245
+ 'editor_ai_-_proactive_ai_improve_writing': {
246
+ productKeys: {
247
+ confluence: 'editor_ai_-_proactive_ai_improve_writing'
248
+ },
249
+ param: 'cohort',
250
+ typeGuard: oneOf(['control', 'test']),
251
+ defaultValue: 'control'
252
+ },
243
253
  // Added 2024-10-04
244
254
  // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_typography_migration_ugc/setup
245
255
  typography_migration_ugc: {
@@ -250,14 +260,14 @@ export const editorExperimentsConfig = {
250
260
  typeGuard: isBoolean,
251
261
  defaultValue: false
252
262
  },
253
- // Added 2024-10-03
254
- // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/editor_ai_-_proactive_ai_improve_writing/setup
255
- 'editor_ai_-_proactive_ai_improve_writing': {
263
+ // Added 2024-10-06
264
+ // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_element_dnd_apply_optimisation
265
+ 'optimised-apply-dnd': {
256
266
  productKeys: {
257
- confluence: 'editor_ai_-_proactive_ai_improve_writing'
267
+ confluence: 'platform_editor_element_dnd_apply_optimisation'
258
268
  },
259
- param: 'cohort',
260
- typeGuard: oneOf(['control', 'test']),
261
- defaultValue: 'control'
269
+ param: 'isEnabled',
270
+ typeGuard: isBoolean,
271
+ defaultValue: false
262
272
  }
263
273
  };
@@ -240,6 +240,16 @@ export var editorExperimentsConfig = {
240
240
  typeGuard: oneOf(['control', 'leading', 'trailing']),
241
241
  defaultValue: 'control'
242
242
  },
243
+ // Added 2024-10-03
244
+ // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/editor_ai_-_proactive_ai_improve_writing/setup
245
+ 'editor_ai_-_proactive_ai_improve_writing': {
246
+ productKeys: {
247
+ confluence: 'editor_ai_-_proactive_ai_improve_writing'
248
+ },
249
+ param: 'cohort',
250
+ typeGuard: oneOf(['control', 'test']),
251
+ defaultValue: 'control'
252
+ },
243
253
  // Added 2024-10-04
244
254
  // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_typography_migration_ugc/setup
245
255
  typography_migration_ugc: {
@@ -250,14 +260,14 @@ export var editorExperimentsConfig = {
250
260
  typeGuard: isBoolean,
251
261
  defaultValue: false
252
262
  },
253
- // Added 2024-10-03
254
- // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/editor_ai_-_proactive_ai_improve_writing/setup
255
- 'editor_ai_-_proactive_ai_improve_writing': {
263
+ // Added 2024-10-06
264
+ // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_element_dnd_apply_optimisation
265
+ 'optimised-apply-dnd': {
256
266
  productKeys: {
257
- confluence: 'editor_ai_-_proactive_ai_improve_writing'
267
+ confluence: 'platform_editor_element_dnd_apply_optimisation'
258
268
  },
259
- param: 'cohort',
260
- typeGuard: oneOf(['control', 'test']),
261
- defaultValue: 'control'
269
+ param: 'isEnabled',
270
+ typeGuard: isBoolean,
271
+ defaultValue: false
262
272
  }
263
273
  };
@@ -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" | "platform_editor_ai_onboarding" | "comment_on_bodied_extensions" | "platform_editor_ai_floating_toolbar_v2" | "typography_migration_ugc" | "editor_ai_-_proactive_ai_improve_writing">(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" | "editor_ai_-_proactive_ai_improve_writing" | "typography_migration_ugc" | "optimised-apply-dnd">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  productKeys: {
@@ -248,6 +248,14 @@ declare namespace eeTest {
248
248
  typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
249
249
  defaultValue: "control" | "leading" | "trailing";
250
250
  };
251
+ 'editor_ai_-_proactive_ai_improve_writing': {
252
+ productKeys: {
253
+ confluence: string;
254
+ };
255
+ param: string;
256
+ typeGuard: (value: unknown) => value is "test" | "control";
257
+ defaultValue: "test" | "control";
258
+ };
251
259
  typography_migration_ugc: {
252
260
  productKeys: {
253
261
  confluence: string;
@@ -256,13 +264,13 @@ declare namespace eeTest {
256
264
  typeGuard: typeof import("./type-guards").isBoolean;
257
265
  defaultValue: boolean;
258
266
  };
259
- 'editor_ai_-_proactive_ai_improve_writing': {
267
+ 'optimised-apply-dnd': {
260
268
  productKeys: {
261
269
  confluence: string;
262
270
  };
263
271
  param: string;
264
- typeGuard: (value: unknown) => value is "test" | "control";
265
- defaultValue: "test" | "control";
272
+ typeGuard: typeof import("./type-guards").isBoolean;
273
+ defaultValue: boolean;
266
274
  };
267
275
  }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
268
276
  each: (describeBody: jest.EmptyFunction) => void;
@@ -207,6 +207,14 @@ export declare const editorExperimentsConfig: {
207
207
  typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
208
208
  defaultValue: "control" | "leading" | "trailing";
209
209
  };
210
+ 'editor_ai_-_proactive_ai_improve_writing': {
211
+ productKeys: {
212
+ confluence: string;
213
+ };
214
+ param: string;
215
+ typeGuard: (value: unknown) => value is "test" | "control";
216
+ defaultValue: "test" | "control";
217
+ };
210
218
  typography_migration_ugc: {
211
219
  productKeys: {
212
220
  confluence: string;
@@ -215,12 +223,12 @@ export declare const editorExperimentsConfig: {
215
223
  typeGuard: typeof isBoolean;
216
224
  defaultValue: boolean;
217
225
  };
218
- 'editor_ai_-_proactive_ai_improve_writing': {
226
+ 'optimised-apply-dnd': {
219
227
  productKeys: {
220
228
  confluence: string;
221
229
  };
222
230
  param: string;
223
- typeGuard: (value: unknown) => value is "test" | "control";
224
- defaultValue: "test" | "control";
231
+ typeGuard: typeof isBoolean;
232
+ defaultValue: boolean;
225
233
  };
226
234
  };
@@ -28,8 +28,9 @@ export declare let _overrides: Partial<{
28
28
  platform_editor_ai_onboarding: "test" | "control";
29
29
  comment_on_bodied_extensions: boolean;
30
30
  platform_editor_ai_floating_toolbar_v2: "control" | "leading" | "trailing";
31
- typography_migration_ugc: boolean;
32
31
  'editor_ai_-_proactive_ai_improve_writing': "test" | "control";
32
+ typography_migration_ugc: boolean;
33
+ 'optimised-apply-dnd': boolean;
33
34
  }>;
34
35
  export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
35
36
  /**
@@ -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" | "platform_editor_ai_onboarding" | "comment_on_bodied_extensions" | "platform_editor_ai_floating_toolbar_v2" | "typography_migration_ugc" | "editor_ai_-_proactive_ai_improve_writing">(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" | "editor_ai_-_proactive_ai_improve_writing" | "typography_migration_ugc" | "optimised-apply-dnd">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  productKeys: {
@@ -248,6 +248,14 @@ declare namespace eeTest {
248
248
  typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
249
249
  defaultValue: "control" | "leading" | "trailing";
250
250
  };
251
+ 'editor_ai_-_proactive_ai_improve_writing': {
252
+ productKeys: {
253
+ confluence: string;
254
+ };
255
+ param: string;
256
+ typeGuard: (value: unknown) => value is "test" | "control";
257
+ defaultValue: "test" | "control";
258
+ };
251
259
  typography_migration_ugc: {
252
260
  productKeys: {
253
261
  confluence: string;
@@ -256,13 +264,13 @@ declare namespace eeTest {
256
264
  typeGuard: typeof import("./type-guards").isBoolean;
257
265
  defaultValue: boolean;
258
266
  };
259
- 'editor_ai_-_proactive_ai_improve_writing': {
267
+ 'optimised-apply-dnd': {
260
268
  productKeys: {
261
269
  confluence: string;
262
270
  };
263
271
  param: string;
264
- typeGuard: (value: unknown) => value is "test" | "control";
265
- defaultValue: "test" | "control";
272
+ typeGuard: typeof import("./type-guards").isBoolean;
273
+ defaultValue: boolean;
266
274
  };
267
275
  }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
268
276
  each: (describeBody: jest.EmptyFunction) => void;
@@ -207,6 +207,14 @@ export declare const editorExperimentsConfig: {
207
207
  typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
208
208
  defaultValue: "control" | "leading" | "trailing";
209
209
  };
210
+ 'editor_ai_-_proactive_ai_improve_writing': {
211
+ productKeys: {
212
+ confluence: string;
213
+ };
214
+ param: string;
215
+ typeGuard: (value: unknown) => value is "test" | "control";
216
+ defaultValue: "test" | "control";
217
+ };
210
218
  typography_migration_ugc: {
211
219
  productKeys: {
212
220
  confluence: string;
@@ -215,12 +223,12 @@ export declare const editorExperimentsConfig: {
215
223
  typeGuard: typeof isBoolean;
216
224
  defaultValue: boolean;
217
225
  };
218
- 'editor_ai_-_proactive_ai_improve_writing': {
226
+ 'optimised-apply-dnd': {
219
227
  productKeys: {
220
228
  confluence: string;
221
229
  };
222
230
  param: string;
223
- typeGuard: (value: unknown) => value is "test" | "control";
224
- defaultValue: "test" | "control";
231
+ typeGuard: typeof isBoolean;
232
+ defaultValue: boolean;
225
233
  };
226
234
  };
@@ -28,8 +28,9 @@ export declare let _overrides: Partial<{
28
28
  platform_editor_ai_onboarding: "test" | "control";
29
29
  comment_on_bodied_extensions: boolean;
30
30
  platform_editor_ai_floating_toolbar_v2: "control" | "leading" | "trailing";
31
- typography_migration_ugc: boolean;
32
31
  'editor_ai_-_proactive_ai_improve_writing': "test" | "control";
32
+ typography_migration_ugc: boolean;
33
+ 'optimised-apply-dnd': boolean;
33
34
  }>;
34
35
  export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
35
36
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "2.3.2",
3
+ "version": "2.4.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.19.0",
39
+ "@atlaskit/feature-gate-js-client": "^4.20.0",
40
40
  "@babel/runtime": "^7.0.0"
41
41
  },
42
42
  "peerDependencies": {