@atlaskit/tmp-editor-statsig 4.21.0 → 4.22.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,22 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 4.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#154858](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/154858)
8
+ [`bf96267428ccd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bf96267428ccd) -
9
+ Adds experiment to not render children of expand element until it gets expanded
10
+
11
+ ## 4.21.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#153577](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/153577)
16
+ [`2d3375a7a48b1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2d3375a7a48b1) -
17
+ [EDF-2259] Update usage of next media plugin behind fg 'platform_editor_ai_next_media_plugin'
18
+ instead of experiment 'platform_editor_markdown_next_media_plugin_exp'
19
+
3
20
  ## 4.21.0
4
21
 
5
22
  ### Minor Changes
@@ -227,14 +227,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
227
227
  param: 'isEnabled',
228
228
  defaultValue: false
229
229
  }),
230
- // Added 2025-03-26
231
- platform_editor_markdown_next_media_plugin_exp: (0, _experimentBuilders.createBooleanExperiment)({
232
- productKeys: {
233
- confluence: 'platform_editor_markdown_next_media_plugin_exp'
234
- },
235
- param: 'isEnabled',
236
- defaultValue: false
237
- }),
238
230
  // Added 2025-04-14
239
231
  editor_ai_inline_suggestion_date_v2: (0, _experimentBuilders.createMultivariateExperiment)({
240
232
  productKeys: {
@@ -316,5 +308,13 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
316
308
  },
317
309
  param: 'isEnabled',
318
310
  defaultValue: false
311
+ }),
312
+ // Added 2025-05-15
313
+ confluence_p2m_style_recalc_and_expand_joint_exp: (0, _experimentBuilders.createBooleanExperiment)({
314
+ productKeys: {
315
+ confluence: 'confluence_p2m_style_recalc_and_expand_joint_exp'
316
+ },
317
+ param: 'isEnabled',
318
+ defaultValue: false
319
319
  })
320
320
  };
@@ -221,14 +221,6 @@ export const editorExperimentsConfig = {
221
221
  param: 'isEnabled',
222
222
  defaultValue: false
223
223
  }),
224
- // Added 2025-03-26
225
- platform_editor_markdown_next_media_plugin_exp: createBooleanExperiment({
226
- productKeys: {
227
- confluence: 'platform_editor_markdown_next_media_plugin_exp'
228
- },
229
- param: 'isEnabled',
230
- defaultValue: false
231
- }),
232
224
  // Added 2025-04-14
233
225
  editor_ai_inline_suggestion_date_v2: createMultivariateExperiment({
234
226
  productKeys: {
@@ -310,5 +302,13 @@ export const editorExperimentsConfig = {
310
302
  },
311
303
  param: 'isEnabled',
312
304
  defaultValue: false
305
+ }),
306
+ // Added 2025-05-15
307
+ confluence_p2m_style_recalc_and_expand_joint_exp: createBooleanExperiment({
308
+ productKeys: {
309
+ confluence: 'confluence_p2m_style_recalc_and_expand_joint_exp'
310
+ },
311
+ param: 'isEnabled',
312
+ defaultValue: false
313
313
  })
314
314
  };
@@ -221,14 +221,6 @@ export var editorExperimentsConfig = {
221
221
  param: 'isEnabled',
222
222
  defaultValue: false
223
223
  }),
224
- // Added 2025-03-26
225
- platform_editor_markdown_next_media_plugin_exp: createBooleanExperiment({
226
- productKeys: {
227
- confluence: 'platform_editor_markdown_next_media_plugin_exp'
228
- },
229
- param: 'isEnabled',
230
- defaultValue: false
231
- }),
232
224
  // Added 2025-04-14
233
225
  editor_ai_inline_suggestion_date_v2: createMultivariateExperiment({
234
226
  productKeys: {
@@ -310,5 +302,13 @@ export var editorExperimentsConfig = {
310
302
  },
311
303
  param: 'isEnabled',
312
304
  defaultValue: false
305
+ }),
306
+ // Added 2025-05-15
307
+ confluence_p2m_style_recalc_and_expand_joint_exp: createBooleanExperiment({
308
+ productKeys: {
309
+ confluence: 'confluence_p2m_style_recalc_and_expand_joint_exp'
310
+ },
311
+ param: 'isEnabled',
312
+ defaultValue: false
313
313
  })
314
314
  };
@@ -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" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "comment_on_bodied_extensions" | "advanced_layouts" | "single_column_layouts" | "support_table_in_comment_jira" | "platform_editor_ai-prompts-placeholder" | "nested-tables-in-tables" | "platform_editor_ai_unsplash_page_header" | "platform_editor_blockquote_in_text_formatting_menu" | "platform_editor_advanced_code_blocks" | "platform_editor_element_drag_and_drop_multiselect" | "live_pages_graceful_edit" | "platform_editor_ai_edit_response_in_preview" | "platform_editor_controls" | "platform_editor_controls_shadow" | "platform_editor_insertion" | "platform_editor_vanilla_dom" | "editor_text_highlight_orange_to_yellow" | "platform_editor_ai_proactive_ai_nudge_parameters" | "platform_editor_offline_editing_web" | "platform_editor_markdown_next_media_plugin_exp" | "editor_ai_inline_suggestion_date_v2" | "platform_editor_tables_drag_and_drop" | "platform_editor_tables_table_selector" | "platform_editor_usesharedpluginstateselector" | "platform_renderer_fix_analytics_memo_callback" | "editor_ai_contextual_selection_toolbar_button" | "editor_ai_cmd_palette_remove_retry" | "platform_editor_core_static_emotion" | "editor_ai_converge_free_gen_on_rovo" | "editor_ai_comment_freegen_rovo">(experimentName: ExperimentName, describeName: string) => {
48
+ var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "comment_on_bodied_extensions" | "advanced_layouts" | "single_column_layouts" | "support_table_in_comment_jira" | "platform_editor_ai-prompts-placeholder" | "nested-tables-in-tables" | "platform_editor_ai_unsplash_page_header" | "platform_editor_blockquote_in_text_formatting_menu" | "platform_editor_advanced_code_blocks" | "platform_editor_element_drag_and_drop_multiselect" | "live_pages_graceful_edit" | "platform_editor_ai_edit_response_in_preview" | "platform_editor_controls" | "platform_editor_controls_shadow" | "platform_editor_insertion" | "platform_editor_vanilla_dom" | "editor_text_highlight_orange_to_yellow" | "platform_editor_ai_proactive_ai_nudge_parameters" | "platform_editor_offline_editing_web" | "editor_ai_inline_suggestion_date_v2" | "platform_editor_tables_drag_and_drop" | "platform_editor_tables_table_selector" | "platform_editor_usesharedpluginstateselector" | "platform_renderer_fix_analytics_memo_callback" | "editor_ai_contextual_selection_toolbar_button" | "editor_ai_cmd_palette_remove_retry" | "platform_editor_core_static_emotion" | "editor_ai_converge_free_gen_on_rovo" | "editor_ai_comment_freegen_rovo" | "confluence_p2m_style_recalc_and_expand_joint_exp">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  typeGuard: typeof import("./type-guards").isBoolean;
@@ -115,6 +115,31 @@ declare namespace eeTest {
115
115
  productKeys?: import("./types").ProductKeys | undefined;
116
116
  param: string;
117
117
  };
118
+ /**
119
+ * eeTest.describe() Wrapper utility for describe() that runs a test with a editor experiment overides.
120
+ *
121
+ * @example Single experiment
122
+ * ```ts
123
+ * eeTest.describe('Description of test "suite" containing nested suites and tests.', { 'example-boolean': true }, () => {
124
+ * it('should do the thing', () => {
125
+ * expect(editorExperiment('example-boolean', true)).toBe(true);
126
+ * });
127
+ * });
128
+ * ```
129
+ *
130
+ *
131
+ * @example Multiple experiment
132
+ * ```ts
133
+ * eeTest.describe('Description of test "suite" containing nested suites and tests.', { 'example-boolean': true, 'example-multivariate': 'three' }, () => {
134
+ * it('should do the thing', () => {
135
+ * expect(editorExperiment('example-boolean', true)).toBe(true);
136
+ * });
137
+ * });
138
+ * ```
139
+ *
140
+ * API based on next gen ffTest API
141
+ * - https://hello.atlassian.net/wiki/spaces/AF/pages/2569505829/Task+Testing+your+feature+flag+in+platform+and+product#Next-Generation-API-%E2%9C%A8
142
+ */
118
143
  'nested-tables-in-tables': {
119
144
  typeGuard: typeof import("./type-guards").isBoolean;
120
145
  defaultValue: boolean;
@@ -205,12 +230,6 @@ declare namespace eeTest {
205
230
  productKeys?: import("./types").ProductKeys | undefined;
206
231
  param: string;
207
232
  };
208
- platform_editor_markdown_next_media_plugin_exp: {
209
- typeGuard: typeof import("./type-guards").isBoolean;
210
- defaultValue: boolean;
211
- productKeys?: import("./types").ProductKeys | undefined;
212
- param: string;
213
- };
214
233
  editor_ai_inline_suggestion_date_v2: {
215
234
  values: ("test" | "control")[];
216
235
  typeGuard: (value: unknown) => value is "test" | "control";
@@ -273,6 +292,12 @@ declare namespace eeTest {
273
292
  productKeys?: import("./types").ProductKeys | undefined;
274
293
  param: string;
275
294
  };
295
+ confluence_p2m_style_recalc_and_expand_joint_exp: {
296
+ typeGuard: typeof import("./type-guards").isBoolean;
297
+ defaultValue: boolean;
298
+ productKeys?: import("./types").ProductKeys | undefined;
299
+ param: string;
300
+ };
276
301
  }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
277
302
  each: (describeBody: jest.EmptyFunction) => void;
278
303
  };
@@ -163,12 +163,6 @@ export declare const editorExperimentsConfig: {
163
163
  productKeys?: import("./types").ProductKeys | undefined;
164
164
  param: string;
165
165
  };
166
- platform_editor_markdown_next_media_plugin_exp: {
167
- typeGuard: typeof import("./type-guards").isBoolean;
168
- defaultValue: boolean;
169
- productKeys?: import("./types").ProductKeys | undefined;
170
- param: string;
171
- };
172
166
  editor_ai_inline_suggestion_date_v2: {
173
167
  values: ("test" | "control")[];
174
168
  typeGuard: (value: unknown) => value is "test" | "control";
@@ -231,4 +225,10 @@ export declare const editorExperimentsConfig: {
231
225
  productKeys?: import("./types").ProductKeys | undefined;
232
226
  param: string;
233
227
  };
228
+ confluence_p2m_style_recalc_and_expand_joint_exp: {
229
+ typeGuard: typeof import("./type-guards").isBoolean;
230
+ defaultValue: boolean;
231
+ productKeys?: import("./types").ProductKeys | undefined;
232
+ param: string;
233
+ };
234
234
  };
@@ -33,7 +33,6 @@ export declare let _overrides: Partial<{
33
33
  editor_text_highlight_orange_to_yellow: "test" | "control";
34
34
  platform_editor_ai_proactive_ai_nudge_parameters: "control" | "variant1";
35
35
  platform_editor_offline_editing_web: boolean;
36
- platform_editor_markdown_next_media_plugin_exp: boolean;
37
36
  editor_ai_inline_suggestion_date_v2: "test" | "control";
38
37
  platform_editor_tables_drag_and_drop: boolean;
39
38
  platform_editor_tables_table_selector: boolean;
@@ -44,6 +43,7 @@ export declare let _overrides: Partial<{
44
43
  platform_editor_core_static_emotion: boolean;
45
44
  editor_ai_converge_free_gen_on_rovo: boolean;
46
45
  editor_ai_comment_freegen_rovo: boolean;
46
+ confluence_p2m_style_recalc_and_expand_joint_exp: boolean;
47
47
  }>;
48
48
  export declare let _paramOverrides: EditorExperimentParamOverrides;
49
49
  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" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "comment_on_bodied_extensions" | "advanced_layouts" | "single_column_layouts" | "support_table_in_comment_jira" | "platform_editor_ai-prompts-placeholder" | "nested-tables-in-tables" | "platform_editor_ai_unsplash_page_header" | "platform_editor_blockquote_in_text_formatting_menu" | "platform_editor_advanced_code_blocks" | "platform_editor_element_drag_and_drop_multiselect" | "live_pages_graceful_edit" | "platform_editor_ai_edit_response_in_preview" | "platform_editor_controls" | "platform_editor_controls_shadow" | "platform_editor_insertion" | "platform_editor_vanilla_dom" | "editor_text_highlight_orange_to_yellow" | "platform_editor_ai_proactive_ai_nudge_parameters" | "platform_editor_offline_editing_web" | "platform_editor_markdown_next_media_plugin_exp" | "editor_ai_inline_suggestion_date_v2" | "platform_editor_tables_drag_and_drop" | "platform_editor_tables_table_selector" | "platform_editor_usesharedpluginstateselector" | "platform_renderer_fix_analytics_memo_callback" | "editor_ai_contextual_selection_toolbar_button" | "editor_ai_cmd_palette_remove_retry" | "platform_editor_core_static_emotion" | "editor_ai_converge_free_gen_on_rovo" | "editor_ai_comment_freegen_rovo">(experimentName: ExperimentName, describeName: string) => {
48
+ var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "comment_on_bodied_extensions" | "advanced_layouts" | "single_column_layouts" | "support_table_in_comment_jira" | "platform_editor_ai-prompts-placeholder" | "nested-tables-in-tables" | "platform_editor_ai_unsplash_page_header" | "platform_editor_blockquote_in_text_formatting_menu" | "platform_editor_advanced_code_blocks" | "platform_editor_element_drag_and_drop_multiselect" | "live_pages_graceful_edit" | "platform_editor_ai_edit_response_in_preview" | "platform_editor_controls" | "platform_editor_controls_shadow" | "platform_editor_insertion" | "platform_editor_vanilla_dom" | "editor_text_highlight_orange_to_yellow" | "platform_editor_ai_proactive_ai_nudge_parameters" | "platform_editor_offline_editing_web" | "editor_ai_inline_suggestion_date_v2" | "platform_editor_tables_drag_and_drop" | "platform_editor_tables_table_selector" | "platform_editor_usesharedpluginstateselector" | "platform_renderer_fix_analytics_memo_callback" | "editor_ai_contextual_selection_toolbar_button" | "editor_ai_cmd_palette_remove_retry" | "platform_editor_core_static_emotion" | "editor_ai_converge_free_gen_on_rovo" | "editor_ai_comment_freegen_rovo" | "confluence_p2m_style_recalc_and_expand_joint_exp">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  typeGuard: typeof import("./type-guards").isBoolean;
@@ -115,6 +115,31 @@ declare namespace eeTest {
115
115
  productKeys?: import("./types").ProductKeys | undefined;
116
116
  param: string;
117
117
  };
118
+ /**
119
+ * eeTest.describe() Wrapper utility for describe() that runs a test with a editor experiment overides.
120
+ *
121
+ * @example Single experiment
122
+ * ```ts
123
+ * eeTest.describe('Description of test "suite" containing nested suites and tests.', { 'example-boolean': true }, () => {
124
+ * it('should do the thing', () => {
125
+ * expect(editorExperiment('example-boolean', true)).toBe(true);
126
+ * });
127
+ * });
128
+ * ```
129
+ *
130
+ *
131
+ * @example Multiple experiment
132
+ * ```ts
133
+ * eeTest.describe('Description of test "suite" containing nested suites and tests.', { 'example-boolean': true, 'example-multivariate': 'three' }, () => {
134
+ * it('should do the thing', () => {
135
+ * expect(editorExperiment('example-boolean', true)).toBe(true);
136
+ * });
137
+ * });
138
+ * ```
139
+ *
140
+ * API based on next gen ffTest API
141
+ * - https://hello.atlassian.net/wiki/spaces/AF/pages/2569505829/Task+Testing+your+feature+flag+in+platform+and+product#Next-Generation-API-%E2%9C%A8
142
+ */
118
143
  'nested-tables-in-tables': {
119
144
  typeGuard: typeof import("./type-guards").isBoolean;
120
145
  defaultValue: boolean;
@@ -205,12 +230,6 @@ declare namespace eeTest {
205
230
  productKeys?: import("./types").ProductKeys | undefined;
206
231
  param: string;
207
232
  };
208
- platform_editor_markdown_next_media_plugin_exp: {
209
- typeGuard: typeof import("./type-guards").isBoolean;
210
- defaultValue: boolean;
211
- productKeys?: import("./types").ProductKeys | undefined;
212
- param: string;
213
- };
214
233
  editor_ai_inline_suggestion_date_v2: {
215
234
  values: ("test" | "control")[];
216
235
  typeGuard: (value: unknown) => value is "test" | "control";
@@ -273,6 +292,12 @@ declare namespace eeTest {
273
292
  productKeys?: import("./types").ProductKeys | undefined;
274
293
  param: string;
275
294
  };
295
+ confluence_p2m_style_recalc_and_expand_joint_exp: {
296
+ typeGuard: typeof import("./type-guards").isBoolean;
297
+ defaultValue: boolean;
298
+ productKeys?: import("./types").ProductKeys | undefined;
299
+ param: string;
300
+ };
276
301
  }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
277
302
  each: (describeBody: jest.EmptyFunction) => void;
278
303
  };
@@ -163,12 +163,6 @@ export declare const editorExperimentsConfig: {
163
163
  productKeys?: import("./types").ProductKeys | undefined;
164
164
  param: string;
165
165
  };
166
- platform_editor_markdown_next_media_plugin_exp: {
167
- typeGuard: typeof import("./type-guards").isBoolean;
168
- defaultValue: boolean;
169
- productKeys?: import("./types").ProductKeys | undefined;
170
- param: string;
171
- };
172
166
  editor_ai_inline_suggestion_date_v2: {
173
167
  values: ("test" | "control")[];
174
168
  typeGuard: (value: unknown) => value is "test" | "control";
@@ -231,4 +225,10 @@ export declare const editorExperimentsConfig: {
231
225
  productKeys?: import("./types").ProductKeys | undefined;
232
226
  param: string;
233
227
  };
228
+ confluence_p2m_style_recalc_and_expand_joint_exp: {
229
+ typeGuard: typeof import("./type-guards").isBoolean;
230
+ defaultValue: boolean;
231
+ productKeys?: import("./types").ProductKeys | undefined;
232
+ param: string;
233
+ };
234
234
  };
@@ -33,7 +33,6 @@ export declare let _overrides: Partial<{
33
33
  editor_text_highlight_orange_to_yellow: "test" | "control";
34
34
  platform_editor_ai_proactive_ai_nudge_parameters: "control" | "variant1";
35
35
  platform_editor_offline_editing_web: boolean;
36
- platform_editor_markdown_next_media_plugin_exp: boolean;
37
36
  editor_ai_inline_suggestion_date_v2: "test" | "control";
38
37
  platform_editor_tables_drag_and_drop: boolean;
39
38
  platform_editor_tables_table_selector: boolean;
@@ -44,6 +43,7 @@ export declare let _overrides: Partial<{
44
43
  platform_editor_core_static_emotion: boolean;
45
44
  editor_ai_converge_free_gen_on_rovo: boolean;
46
45
  editor_ai_comment_freegen_rovo: boolean;
46
+ confluence_p2m_style_recalc_and_expand_joint_exp: boolean;
47
47
  }>;
48
48
  export declare let _paramOverrides: EditorExperimentParamOverrides;
49
49
  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": "4.21.0",
3
+ "version": "4.22.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",