@atlaskit/tmp-editor-statsig 4.13.0 → 4.14.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,21 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 4.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#145233](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/145233)
8
+ [`bc70a53def230`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bc70a53def230) -
9
+ Revert nullability checks on experiments package.
10
+
11
+ ## 4.14.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#145086](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/145086)
16
+ [`974da2c11753a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/974da2c11753a) -
17
+ Reduced dependency list of analytics callback in renderer
18
+
3
19
  ## 4.13.0
4
20
 
5
21
  ### Minor Changes
@@ -310,5 +310,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
310
310
  param: 'isEnabled',
311
311
  typeGuard: _typeGuards.isBoolean,
312
312
  defaultValue: false
313
+ },
314
+ // Added 2025-04-23
315
+ platform_renderer_fix_analytics_memo_callback: {
316
+ productKeys: {
317
+ confluence: 'platform_renderer_fix_analytics_memo_callback'
318
+ },
319
+ param: 'isEnabled',
320
+ typeGuard: _typeGuards.isBoolean,
321
+ defaultValue: false
313
322
  }
314
323
  };
@@ -64,9 +64,15 @@ function editorExperiment(experimentName, expectedExperimentValue) {
64
64
  // This will be hit in the case of a test setting an override
65
65
  return _setup._overrides[experimentName] === expectedExperimentValue;
66
66
  }
67
+ if (experimentConfig === undefined) {
68
+ // Warning! If a product is improperly configured (ie. their editor packages are misaligned)
69
+ // it can cause the editor to crash here or if the experiment does not exist.
70
+ // We will definitely crash via any code path later in this function - this just makes the error explicit and clear.
71
+ throw new Error("Editor experiment configuration is not defined ".concat(experimentName, ". Likely the experiment does not exist or editor package versions are misaligned"));
72
+ }
67
73
  if (!_setup._product) {
68
74
  // This will be hit in the case of a product not having setup the editor experiment tooling
69
- return (experimentConfig === null || experimentConfig === void 0 ? void 0 : experimentConfig.defaultValue) === expectedExperimentValue;
75
+ return experimentConfig.defaultValue === expectedExperimentValue;
70
76
  }
71
77
 
72
78
  // Typescript is complaining here about accessing the productKeys property
@@ -304,5 +304,14 @@ export const editorExperimentsConfig = {
304
304
  param: 'isEnabled',
305
305
  typeGuard: isBoolean,
306
306
  defaultValue: false
307
+ },
308
+ // Added 2025-04-23
309
+ platform_renderer_fix_analytics_memo_callback: {
310
+ productKeys: {
311
+ confluence: 'platform_renderer_fix_analytics_memo_callback'
312
+ },
313
+ param: 'isEnabled',
314
+ typeGuard: isBoolean,
315
+ defaultValue: false
307
316
  }
308
317
  };
@@ -56,9 +56,15 @@ export function editorExperiment(experimentName, expectedExperimentValue, option
56
56
  // This will be hit in the case of a test setting an override
57
57
  return _overrides[experimentName] === expectedExperimentValue;
58
58
  }
59
+ if (experimentConfig === undefined) {
60
+ // Warning! If a product is improperly configured (ie. their editor packages are misaligned)
61
+ // it can cause the editor to crash here or if the experiment does not exist.
62
+ // We will definitely crash via any code path later in this function - this just makes the error explicit and clear.
63
+ throw new Error(`Editor experiment configuration is not defined ${experimentName}. Likely the experiment does not exist or editor package versions are misaligned`);
64
+ }
59
65
  if (!_product) {
60
66
  // This will be hit in the case of a product not having setup the editor experiment tooling
61
- return (experimentConfig === null || experimentConfig === void 0 ? void 0 : experimentConfig.defaultValue) === expectedExperimentValue;
67
+ return experimentConfig.defaultValue === expectedExperimentValue;
62
68
  }
63
69
 
64
70
  // Typescript is complaining here about accessing the productKeys property
@@ -304,5 +304,14 @@ export var editorExperimentsConfig = {
304
304
  param: 'isEnabled',
305
305
  typeGuard: isBoolean,
306
306
  defaultValue: false
307
+ },
308
+ // Added 2025-04-23
309
+ platform_renderer_fix_analytics_memo_callback: {
310
+ productKeys: {
311
+ confluence: 'platform_renderer_fix_analytics_memo_callback'
312
+ },
313
+ param: 'isEnabled',
314
+ typeGuard: isBoolean,
315
+ defaultValue: false
307
316
  }
308
317
  };
@@ -57,9 +57,15 @@ export function editorExperiment(experimentName, expectedExperimentValue) {
57
57
  // This will be hit in the case of a test setting an override
58
58
  return _overrides[experimentName] === expectedExperimentValue;
59
59
  }
60
+ if (experimentConfig === undefined) {
61
+ // Warning! If a product is improperly configured (ie. their editor packages are misaligned)
62
+ // it can cause the editor to crash here or if the experiment does not exist.
63
+ // We will definitely crash via any code path later in this function - this just makes the error explicit and clear.
64
+ throw new Error("Editor experiment configuration is not defined ".concat(experimentName, ". Likely the experiment does not exist or editor package versions are misaligned"));
65
+ }
60
66
  if (!_product) {
61
67
  // This will be hit in the case of a product not having setup the editor experiment tooling
62
- return (experimentConfig === null || experimentConfig === void 0 ? void 0 : experimentConfig.defaultValue) === expectedExperimentValue;
68
+ return experimentConfig.defaultValue === expectedExperimentValue;
63
69
  }
64
70
 
65
71
  // Typescript is complaining here about accessing the productKeys property
@@ -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_nested_non_bodied_macros" | "platform_editor_insertion" | "platform_editor_inline_node_virtualization" | "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">(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_nested_non_bodied_macros" | "platform_editor_insertion" | "platform_editor_inline_node_virtualization" | "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">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  productKeys: {
@@ -329,6 +329,14 @@ declare namespace eeTest {
329
329
  typeGuard: typeof import("./type-guards").isBoolean;
330
330
  defaultValue: boolean;
331
331
  };
332
+ platform_renderer_fix_analytics_memo_callback: {
333
+ productKeys: {
334
+ confluence: string;
335
+ };
336
+ param: string;
337
+ typeGuard: typeof import("./type-guards").isBoolean;
338
+ defaultValue: boolean;
339
+ };
332
340
  }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
333
341
  each: (describeBody: jest.EmptyFunction) => void;
334
342
  };
@@ -263,4 +263,12 @@ export declare const editorExperimentsConfig: {
263
263
  typeGuard: typeof isBoolean;
264
264
  defaultValue: boolean;
265
265
  };
266
+ platform_renderer_fix_analytics_memo_callback: {
267
+ productKeys: {
268
+ confluence: string;
269
+ };
270
+ param: string;
271
+ typeGuard: typeof isBoolean;
272
+ defaultValue: boolean;
273
+ };
266
274
  };
@@ -40,6 +40,7 @@ export declare let _overrides: Partial<{
40
40
  platform_editor_tables_drag_and_drop: boolean;
41
41
  platform_editor_tables_table_selector: boolean;
42
42
  platform_editor_usesharedpluginstateselector: boolean;
43
+ platform_renderer_fix_analytics_memo_callback: boolean;
43
44
  }>;
44
45
  export declare let _paramOverrides: EditorExperimentParamOverrides;
45
46
  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_nested_non_bodied_macros" | "platform_editor_insertion" | "platform_editor_inline_node_virtualization" | "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">(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_nested_non_bodied_macros" | "platform_editor_insertion" | "platform_editor_inline_node_virtualization" | "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">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  productKeys: {
@@ -329,6 +329,14 @@ declare namespace eeTest {
329
329
  typeGuard: typeof import("./type-guards").isBoolean;
330
330
  defaultValue: boolean;
331
331
  };
332
+ platform_renderer_fix_analytics_memo_callback: {
333
+ productKeys: {
334
+ confluence: string;
335
+ };
336
+ param: string;
337
+ typeGuard: typeof import("./type-guards").isBoolean;
338
+ defaultValue: boolean;
339
+ };
332
340
  }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
333
341
  each: (describeBody: jest.EmptyFunction) => void;
334
342
  };
@@ -263,4 +263,12 @@ export declare const editorExperimentsConfig: {
263
263
  typeGuard: typeof isBoolean;
264
264
  defaultValue: boolean;
265
265
  };
266
+ platform_renderer_fix_analytics_memo_callback: {
267
+ productKeys: {
268
+ confluence: string;
269
+ };
270
+ param: string;
271
+ typeGuard: typeof isBoolean;
272
+ defaultValue: boolean;
273
+ };
266
274
  };
@@ -40,6 +40,7 @@ export declare let _overrides: Partial<{
40
40
  platform_editor_tables_drag_and_drop: boolean;
41
41
  platform_editor_tables_table_selector: boolean;
42
42
  platform_editor_usesharedpluginstateselector: boolean;
43
+ platform_renderer_fix_analytics_memo_callback: boolean;
43
44
  }>;
44
45
  export declare let _paramOverrides: EditorExperimentParamOverrides;
45
46
  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.13.0",
3
+ "version": "4.14.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",