@atlaskit/tmp-editor-statsig 5.13.0 → 5.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 +17 -0
- package/dist/cjs/exp-val-equals-internal.js +5 -0
- package/dist/cjs/experiments-config.js +7 -0
- package/dist/cjs/experiments.js +3 -3
- package/dist/es2019/exp-val-equals-internal.js +5 -0
- package/dist/es2019/experiments-config.js +7 -0
- package/dist/es2019/experiments.js +3 -3
- package/dist/esm/exp-val-equals-internal.js +5 -0
- package/dist/esm/experiments-config.js +7 -0
- package/dist/esm/experiments.js +3 -3
- package/dist/types/editor-experiments-test-utils.d.ts +7 -1
- package/dist/types/experiments-config.d.ts +6 -0
- package/dist/types/experiments.d.ts +3 -3
- package/dist/types/setup.d.ts +1 -0
- package/dist/types-ts4.5/editor-experiments-test-utils.d.ts +7 -1
- package/dist/types-ts4.5/experiments-config.d.ts +6 -0
- package/dist/types-ts4.5/experiments.d.ts +3 -3
- package/dist/types-ts4.5/setup.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 5.14.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#167332](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167332)
|
|
8
|
+
[`5d312dcfaa21a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5d312dcfaa21a) -
|
|
9
|
+
Fix expValEquals should work when FeatureGate client is not initialised
|
|
10
|
+
|
|
11
|
+
## 5.14.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#167295](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167295)
|
|
16
|
+
[`6c94765105520`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6c94765105520) -
|
|
17
|
+
[https://product-fabric.atlassian.net/browse/ED-28212](ED-28212) - the `validNode()` function from
|
|
18
|
+
@atlaskit/editor-core package will use memoization
|
|
19
|
+
|
|
3
20
|
## 5.13.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -30,6 +30,11 @@ function expValEqualsInternal(experimentName, experimentParam, experimentExpecte
|
|
|
30
30
|
return _setup._overrides[experimentName] === experimentExpectedValue;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
// If client is not initialized, we compare with the default value
|
|
34
|
+
if (!_featureGateJsClient.default.initializeCompleted()) {
|
|
35
|
+
return experimentDefaultValue === experimentExpectedValue;
|
|
36
|
+
}
|
|
37
|
+
|
|
33
38
|
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
34
39
|
var experimentValue = _featureGateJsClient.default.getExperimentValue(experimentName, experimentParam, experimentDefaultValue, {
|
|
35
40
|
fireExperimentExposure: experimentExposure
|
|
@@ -22,6 +22,13 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
22
22
|
param: 'isEnabled',
|
|
23
23
|
defaultValue: false
|
|
24
24
|
}),
|
|
25
|
+
platform_editor_memoized_node_check: (0, _experimentBuilders.createBooleanExperiment)({
|
|
26
|
+
productKeys: {
|
|
27
|
+
confluence: 'platform_editor_memoized_node_check'
|
|
28
|
+
},
|
|
29
|
+
param: 'isEnabled',
|
|
30
|
+
defaultValue: false
|
|
31
|
+
}),
|
|
25
32
|
// Added 2025-06-02
|
|
26
33
|
platform_editor_block_control_optimise_render: (0, _experimentBuilders.createBooleanExperiment)({
|
|
27
34
|
productKeys: {
|
package/dist/cjs/experiments.js
CHANGED
|
@@ -56,9 +56,9 @@ var _setup = require("./setup");
|
|
|
56
56
|
*
|
|
57
57
|
* @private
|
|
58
58
|
* @deprecated This utility is deprecated in favour of using `expValEquals` from `@atlaskit/tmp-editor-statsig/exp-val-equals`.
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
59
|
+
* ExpValEquals fires exposure events by default preventing cases when consumers of exitorExperiment forget to pass the `exposure` option.
|
|
60
|
+
* It also closely aligns with similar utilities in other Atlassian products.
|
|
61
|
+
* For no exposure option use `expValEqualsNoExposure` from `@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure`.
|
|
62
62
|
*/
|
|
63
63
|
function editorExperiment(experimentName, expectedExperimentValue) {
|
|
64
64
|
var _experimentConfig$pro;
|
|
@@ -24,6 +24,11 @@ export function expValEqualsInternal(experimentName, experimentParam, experiment
|
|
|
24
24
|
return _overrides[experimentName] === experimentExpectedValue;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
// If client is not initialized, we compare with the default value
|
|
28
|
+
if (!FeatureGates.initializeCompleted()) {
|
|
29
|
+
return experimentDefaultValue === experimentExpectedValue;
|
|
30
|
+
}
|
|
31
|
+
|
|
27
32
|
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
28
33
|
const experimentValue = FeatureGates.getExperimentValue(experimentName, experimentParam, experimentDefaultValue, {
|
|
29
34
|
fireExperimentExposure: experimentExposure
|
|
@@ -16,6 +16,13 @@ export const editorExperimentsConfig = {
|
|
|
16
16
|
param: 'isEnabled',
|
|
17
17
|
defaultValue: false
|
|
18
18
|
}),
|
|
19
|
+
platform_editor_memoized_node_check: createBooleanExperiment({
|
|
20
|
+
productKeys: {
|
|
21
|
+
confluence: 'platform_editor_memoized_node_check'
|
|
22
|
+
},
|
|
23
|
+
param: 'isEnabled',
|
|
24
|
+
defaultValue: false
|
|
25
|
+
}),
|
|
19
26
|
// Added 2025-06-02
|
|
20
27
|
platform_editor_block_control_optimise_render: createBooleanExperiment({
|
|
21
28
|
productKeys: {
|
|
@@ -49,9 +49,9 @@ import { _overrides, _paramOverrides, _product } from './setup';
|
|
|
49
49
|
*
|
|
50
50
|
* @private
|
|
51
51
|
* @deprecated This utility is deprecated in favour of using `expValEquals` from `@atlaskit/tmp-editor-statsig/exp-val-equals`.
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
52
|
+
* ExpValEquals fires exposure events by default preventing cases when consumers of exitorExperiment forget to pass the `exposure` option.
|
|
53
|
+
* It also closely aligns with similar utilities in other Atlassian products.
|
|
54
|
+
* For no exposure option use `expValEqualsNoExposure` from `@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure`.
|
|
55
55
|
*/
|
|
56
56
|
export function editorExperiment(experimentName, expectedExperimentValue, options = {
|
|
57
57
|
exposure: false
|
|
@@ -24,6 +24,11 @@ export function expValEqualsInternal(experimentName, experimentParam, experiment
|
|
|
24
24
|
return _overrides[experimentName] === experimentExpectedValue;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
// If client is not initialized, we compare with the default value
|
|
28
|
+
if (!FeatureGates.initializeCompleted()) {
|
|
29
|
+
return experimentDefaultValue === experimentExpectedValue;
|
|
30
|
+
}
|
|
31
|
+
|
|
27
32
|
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
28
33
|
var experimentValue = FeatureGates.getExperimentValue(experimentName, experimentParam, experimentDefaultValue, {
|
|
29
34
|
fireExperimentExposure: experimentExposure
|
|
@@ -16,6 +16,13 @@ export var editorExperimentsConfig = {
|
|
|
16
16
|
param: 'isEnabled',
|
|
17
17
|
defaultValue: false
|
|
18
18
|
}),
|
|
19
|
+
platform_editor_memoized_node_check: createBooleanExperiment({
|
|
20
|
+
productKeys: {
|
|
21
|
+
confluence: 'platform_editor_memoized_node_check'
|
|
22
|
+
},
|
|
23
|
+
param: 'isEnabled',
|
|
24
|
+
defaultValue: false
|
|
25
|
+
}),
|
|
19
26
|
// Added 2025-06-02
|
|
20
27
|
platform_editor_block_control_optimise_render: createBooleanExperiment({
|
|
21
28
|
productKeys: {
|
package/dist/esm/experiments.js
CHANGED
|
@@ -49,9 +49,9 @@ import { _overrides, _paramOverrides, _product } from './setup';
|
|
|
49
49
|
*
|
|
50
50
|
* @private
|
|
51
51
|
* @deprecated This utility is deprecated in favour of using `expValEquals` from `@atlaskit/tmp-editor-statsig/exp-val-equals`.
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
52
|
+
* ExpValEquals fires exposure events by default preventing cases when consumers of exitorExperiment forget to pass the `exposure` option.
|
|
53
|
+
* It also closely aligns with similar utilities in other Atlassian products.
|
|
54
|
+
* For no exposure option use `expValEqualsNoExposure` from `@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure`.
|
|
55
55
|
*/
|
|
56
56
|
export function editorExperiment(experimentName, expectedExperimentValue) {
|
|
57
57
|
var _experimentConfig$pro;
|
|
@@ -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 "platform_editor_reduce_noisy_steps_ncs" | "platform_editor_block_control_optimise_render" | "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "platform_editor_controls_performance_fixes" | "platform_editor_prevent_toolbar_layout_shifts" | "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" | "platform_editor_ai_edit_response_in_preview" | "platform_editor_controls" | "platform_editor_smart_link_cmd_ctrl_click" | "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_converge_free_gen_on_rovo" | "editor_ai_cmd_palette_remove_retry" | "platform_editor_stop_width_reflows" | "platform_editor_core_static_emotion" | "editor_ai_comment_freegen_rovo" | "confluence_p2m_style_recalc_and_expand_joint_exp" | "platform_editor_nodevisibility" | "platform_editor_breakout_resizing" | "platform_editor_exp_disable_lnv" | "platform_editor_ai_quickstart_command" | "editor_ai_in_editor_streaming" | "platform_editor_hide_floating_toolbar_in_ssr" | "platform_editor_smart_card_open_overlay_perf" | "platform_editor_toolbar_rerender_optimization_exp" | "platform_editor_controls_toolbar_pinning_exp" | "platform_editor_ai_iw_full_page_adf_streaming">(experimentName: ExperimentName, describeName: string) => {
|
|
48
|
+
var describe: <ExperimentName extends "platform_editor_reduce_noisy_steps_ncs" | "platform_editor_memoized_node_check" | "platform_editor_block_control_optimise_render" | "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "platform_editor_controls_performance_fixes" | "platform_editor_prevent_toolbar_layout_shifts" | "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" | "platform_editor_ai_edit_response_in_preview" | "platform_editor_controls" | "platform_editor_smart_link_cmd_ctrl_click" | "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_converge_free_gen_on_rovo" | "editor_ai_cmd_palette_remove_retry" | "platform_editor_stop_width_reflows" | "platform_editor_core_static_emotion" | "editor_ai_comment_freegen_rovo" | "confluence_p2m_style_recalc_and_expand_joint_exp" | "platform_editor_nodevisibility" | "platform_editor_breakout_resizing" | "platform_editor_exp_disable_lnv" | "platform_editor_ai_quickstart_command" | "editor_ai_in_editor_streaming" | "platform_editor_hide_floating_toolbar_in_ssr" | "platform_editor_smart_card_open_overlay_perf" | "platform_editor_toolbar_rerender_optimization_exp" | "platform_editor_controls_toolbar_pinning_exp" | "platform_editor_ai_iw_full_page_adf_streaming">(experimentName: ExperimentName, describeName: string) => {
|
|
49
49
|
variant: (value: {
|
|
50
50
|
platform_editor_reduce_noisy_steps_ncs: {
|
|
51
51
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
@@ -53,6 +53,12 @@ declare namespace eeTest {
|
|
|
53
53
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
54
54
|
param: string;
|
|
55
55
|
};
|
|
56
|
+
platform_editor_memoized_node_check: {
|
|
57
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
58
|
+
defaultValue: boolean;
|
|
59
|
+
productKeys?: import("./types").ProductKeys | undefined;
|
|
60
|
+
param: string;
|
|
61
|
+
};
|
|
56
62
|
platform_editor_block_control_optimise_render: {
|
|
57
63
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
58
64
|
defaultValue: boolean;
|
|
@@ -11,6 +11,12 @@ export declare const editorExperimentsConfig: {
|
|
|
11
11
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
12
12
|
param: string;
|
|
13
13
|
};
|
|
14
|
+
platform_editor_memoized_node_check: {
|
|
15
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
16
|
+
defaultValue: boolean;
|
|
17
|
+
productKeys?: import("./types").ProductKeys | undefined;
|
|
18
|
+
param: string;
|
|
19
|
+
};
|
|
14
20
|
platform_editor_block_control_optimise_render: {
|
|
15
21
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
16
22
|
defaultValue: boolean;
|
|
@@ -43,9 +43,9 @@ import { type EditorExperimentsConfig } from './experiments-config';
|
|
|
43
43
|
*
|
|
44
44
|
* @private
|
|
45
45
|
* @deprecated This utility is deprecated in favour of using `expValEquals` from `@atlaskit/tmp-editor-statsig/exp-val-equals`.
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
46
|
+
* ExpValEquals fires exposure events by default preventing cases when consumers of exitorExperiment forget to pass the `exposure` option.
|
|
47
|
+
* It also closely aligns with similar utilities in other Atlassian products.
|
|
48
|
+
* For no exposure option use `expValEqualsNoExposure` from `@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure`.
|
|
49
49
|
*/
|
|
50
50
|
export declare function editorExperiment<ExperimentName extends keyof EditorExperimentsConfig>(experimentName: ExperimentName, expectedExperimentValue: EditorExperimentsConfig[ExperimentName]['defaultValue'], options?: {
|
|
51
51
|
exposure: boolean;
|
package/dist/types/setup.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type EditorExperimentParamOverrides = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare let _overrides: Partial<{
|
|
11
11
|
platform_editor_reduce_noisy_steps_ncs: boolean;
|
|
12
|
+
platform_editor_memoized_node_check: boolean;
|
|
12
13
|
platform_editor_block_control_optimise_render: boolean;
|
|
13
14
|
'example-boolean': boolean;
|
|
14
15
|
'example-multivariate': "one" | "two" | "three";
|
|
@@ -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 "platform_editor_reduce_noisy_steps_ncs" | "platform_editor_block_control_optimise_render" | "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "platform_editor_controls_performance_fixes" | "platform_editor_prevent_toolbar_layout_shifts" | "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" | "platform_editor_ai_edit_response_in_preview" | "platform_editor_controls" | "platform_editor_smart_link_cmd_ctrl_click" | "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_converge_free_gen_on_rovo" | "editor_ai_cmd_palette_remove_retry" | "platform_editor_stop_width_reflows" | "platform_editor_core_static_emotion" | "editor_ai_comment_freegen_rovo" | "confluence_p2m_style_recalc_and_expand_joint_exp" | "platform_editor_nodevisibility" | "platform_editor_breakout_resizing" | "platform_editor_exp_disable_lnv" | "platform_editor_ai_quickstart_command" | "editor_ai_in_editor_streaming" | "platform_editor_hide_floating_toolbar_in_ssr" | "platform_editor_smart_card_open_overlay_perf" | "platform_editor_toolbar_rerender_optimization_exp" | "platform_editor_controls_toolbar_pinning_exp" | "platform_editor_ai_iw_full_page_adf_streaming">(experimentName: ExperimentName, describeName: string) => {
|
|
48
|
+
var describe: <ExperimentName extends "platform_editor_reduce_noisy_steps_ncs" | "platform_editor_memoized_node_check" | "platform_editor_block_control_optimise_render" | "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "platform_editor_controls_performance_fixes" | "platform_editor_prevent_toolbar_layout_shifts" | "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" | "platform_editor_ai_edit_response_in_preview" | "platform_editor_controls" | "platform_editor_smart_link_cmd_ctrl_click" | "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_converge_free_gen_on_rovo" | "editor_ai_cmd_palette_remove_retry" | "platform_editor_stop_width_reflows" | "platform_editor_core_static_emotion" | "editor_ai_comment_freegen_rovo" | "confluence_p2m_style_recalc_and_expand_joint_exp" | "platform_editor_nodevisibility" | "platform_editor_breakout_resizing" | "platform_editor_exp_disable_lnv" | "platform_editor_ai_quickstart_command" | "editor_ai_in_editor_streaming" | "platform_editor_hide_floating_toolbar_in_ssr" | "platform_editor_smart_card_open_overlay_perf" | "platform_editor_toolbar_rerender_optimization_exp" | "platform_editor_controls_toolbar_pinning_exp" | "platform_editor_ai_iw_full_page_adf_streaming">(experimentName: ExperimentName, describeName: string) => {
|
|
49
49
|
variant: (value: {
|
|
50
50
|
platform_editor_reduce_noisy_steps_ncs: {
|
|
51
51
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
@@ -53,6 +53,12 @@ declare namespace eeTest {
|
|
|
53
53
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
54
54
|
param: string;
|
|
55
55
|
};
|
|
56
|
+
platform_editor_memoized_node_check: {
|
|
57
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
58
|
+
defaultValue: boolean;
|
|
59
|
+
productKeys?: import("./types").ProductKeys | undefined;
|
|
60
|
+
param: string;
|
|
61
|
+
};
|
|
56
62
|
platform_editor_block_control_optimise_render: {
|
|
57
63
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
58
64
|
defaultValue: boolean;
|
|
@@ -11,6 +11,12 @@ export declare const editorExperimentsConfig: {
|
|
|
11
11
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
12
12
|
param: string;
|
|
13
13
|
};
|
|
14
|
+
platform_editor_memoized_node_check: {
|
|
15
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
16
|
+
defaultValue: boolean;
|
|
17
|
+
productKeys?: import("./types").ProductKeys | undefined;
|
|
18
|
+
param: string;
|
|
19
|
+
};
|
|
14
20
|
platform_editor_block_control_optimise_render: {
|
|
15
21
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
16
22
|
defaultValue: boolean;
|
|
@@ -43,9 +43,9 @@ import { type EditorExperimentsConfig } from './experiments-config';
|
|
|
43
43
|
*
|
|
44
44
|
* @private
|
|
45
45
|
* @deprecated This utility is deprecated in favour of using `expValEquals` from `@atlaskit/tmp-editor-statsig/exp-val-equals`.
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
46
|
+
* ExpValEquals fires exposure events by default preventing cases when consumers of exitorExperiment forget to pass the `exposure` option.
|
|
47
|
+
* It also closely aligns with similar utilities in other Atlassian products.
|
|
48
|
+
* For no exposure option use `expValEqualsNoExposure` from `@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure`.
|
|
49
49
|
*/
|
|
50
50
|
export declare function editorExperiment<ExperimentName extends keyof EditorExperimentsConfig>(experimentName: ExperimentName, expectedExperimentValue: EditorExperimentsConfig[ExperimentName]['defaultValue'], options?: {
|
|
51
51
|
exposure: boolean;
|
|
@@ -9,6 +9,7 @@ export type EditorExperimentParamOverrides = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare let _overrides: Partial<{
|
|
11
11
|
platform_editor_reduce_noisy_steps_ncs: boolean;
|
|
12
|
+
platform_editor_memoized_node_check: boolean;
|
|
12
13
|
platform_editor_block_control_optimise_render: boolean;
|
|
13
14
|
'example-boolean': boolean;
|
|
14
15
|
'example-multivariate': "one" | "two" | "three";
|
package/package.json
CHANGED