@atlaskit/tmp-editor-statsig 4.21.0 → 4.21.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
+ ## 4.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#153577](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/153577)
8
+ [`2d3375a7a48b1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2d3375a7a48b1) -
9
+ [EDF-2259] Update usage of next media plugin behind fg 'platform_editor_ai_next_media_plugin'
10
+ instead of experiment 'platform_editor_markdown_next_media_plugin_exp'
11
+
3
12
  ## 4.21.0
4
13
 
5
14
  ### 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: {
@@ -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: {
@@ -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: {
@@ -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">(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";
@@ -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";
@@ -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;
@@ -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">(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";
@@ -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";
@@ -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;
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.21.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",