@atlaskit/tmp-editor-statsig 5.14.0 → 6.0.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 +23 -0
- package/dist/cjs/exp-val-equals-internal.js +5 -0
- package/dist/cjs/experiments-config.js +7 -8
- package/dist/cjs/experiments.js +3 -3
- package/dist/es2019/exp-val-equals-internal.js +5 -0
- package/dist/es2019/experiments-config.js +7 -8
- package/dist/es2019/experiments.js +3 -3
- package/dist/esm/exp-val-equals-internal.js +5 -0
- package/dist/esm/experiments-config.js +7 -8
- package/dist/esm/experiments.js +3 -3
- package/dist/types/editor-experiments-test-utils.d.ts +7 -7
- package/dist/types/experiments-config.d.ts +6 -6
- package/dist/types/experiments.d.ts +3 -3
- package/dist/types/setup.d.ts +1 -1
- package/dist/types-ts4.5/editor-experiments-test-utils.d.ts +7 -7
- package/dist/types-ts4.5/experiments-config.d.ts +6 -6
- package/dist/types-ts4.5/experiments.d.ts +3 -3
- package/dist/types-ts4.5/setup.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#166402](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/166402)
|
|
8
|
+
[`86b124543d340`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/86b124543d340) -
|
|
9
|
+
NO-ISSUE: Convert from experiment (editor_ai_in_editor_streaming) to feature gate
|
|
10
|
+
(platform_editor_ai_in_editor_streaming)
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [#167123](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167123)
|
|
15
|
+
[`8baa50249f460`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8baa50249f460) -
|
|
16
|
+
fix: stable class name for EditorView.dom
|
|
17
|
+
|
|
18
|
+
## 5.14.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#167332](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167332)
|
|
23
|
+
[`5d312dcfaa21a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5d312dcfaa21a) -
|
|
24
|
+
Fix expValEquals should work when FeatureGate client is not initialised
|
|
25
|
+
|
|
3
26
|
## 5.14.0
|
|
4
27
|
|
|
5
28
|
### 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
|
|
@@ -87,6 +87,13 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
87
87
|
param: 'isEnabled',
|
|
88
88
|
defaultValue: false
|
|
89
89
|
}),
|
|
90
|
+
platform_editor_stable_editorview_classname: (0, _experimentBuilders.createBooleanExperiment)({
|
|
91
|
+
productKeys: {
|
|
92
|
+
confluence: 'platform_editor_stable_editorview_classname'
|
|
93
|
+
},
|
|
94
|
+
param: 'isEnabled',
|
|
95
|
+
defaultValue: false
|
|
96
|
+
}),
|
|
90
97
|
// Added 2025-05-28
|
|
91
98
|
platform_editor_controls_performance_fixes: (0, _experimentBuilders.createBooleanExperiment)({
|
|
92
99
|
productKeys: {
|
|
@@ -386,14 +393,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
386
393
|
param: 'isEnabled',
|
|
387
394
|
defaultValue: false
|
|
388
395
|
}),
|
|
389
|
-
// Added 2025-05-22
|
|
390
|
-
editor_ai_in_editor_streaming: (0, _experimentBuilders.createBooleanExperiment)({
|
|
391
|
-
productKeys: {
|
|
392
|
-
confluence: 'editor_ai_in_editor_streaming'
|
|
393
|
-
},
|
|
394
|
-
param: 'isEnabled',
|
|
395
|
-
defaultValue: false
|
|
396
|
-
}),
|
|
397
396
|
platform_editor_hide_floating_toolbar_in_ssr: (0, _experimentBuilders.createBooleanExperiment)({
|
|
398
397
|
productKeys: {
|
|
399
398
|
confluence: 'platform_editor_hide_floating_toolbar_in_ssr'
|
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
|
|
@@ -81,6 +81,13 @@ export const editorExperimentsConfig = {
|
|
|
81
81
|
param: 'isEnabled',
|
|
82
82
|
defaultValue: false
|
|
83
83
|
}),
|
|
84
|
+
platform_editor_stable_editorview_classname: createBooleanExperiment({
|
|
85
|
+
productKeys: {
|
|
86
|
+
confluence: 'platform_editor_stable_editorview_classname'
|
|
87
|
+
},
|
|
88
|
+
param: 'isEnabled',
|
|
89
|
+
defaultValue: false
|
|
90
|
+
}),
|
|
84
91
|
// Added 2025-05-28
|
|
85
92
|
platform_editor_controls_performance_fixes: createBooleanExperiment({
|
|
86
93
|
productKeys: {
|
|
@@ -380,14 +387,6 @@ export const editorExperimentsConfig = {
|
|
|
380
387
|
param: 'isEnabled',
|
|
381
388
|
defaultValue: false
|
|
382
389
|
}),
|
|
383
|
-
// Added 2025-05-22
|
|
384
|
-
editor_ai_in_editor_streaming: createBooleanExperiment({
|
|
385
|
-
productKeys: {
|
|
386
|
-
confluence: 'editor_ai_in_editor_streaming'
|
|
387
|
-
},
|
|
388
|
-
param: 'isEnabled',
|
|
389
|
-
defaultValue: false
|
|
390
|
-
}),
|
|
391
390
|
platform_editor_hide_floating_toolbar_in_ssr: createBooleanExperiment({
|
|
392
391
|
productKeys: {
|
|
393
392
|
confluence: 'platform_editor_hide_floating_toolbar_in_ssr'
|
|
@@ -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
|
|
@@ -81,6 +81,13 @@ export var editorExperimentsConfig = {
|
|
|
81
81
|
param: 'isEnabled',
|
|
82
82
|
defaultValue: false
|
|
83
83
|
}),
|
|
84
|
+
platform_editor_stable_editorview_classname: createBooleanExperiment({
|
|
85
|
+
productKeys: {
|
|
86
|
+
confluence: 'platform_editor_stable_editorview_classname'
|
|
87
|
+
},
|
|
88
|
+
param: 'isEnabled',
|
|
89
|
+
defaultValue: false
|
|
90
|
+
}),
|
|
84
91
|
// Added 2025-05-28
|
|
85
92
|
platform_editor_controls_performance_fixes: createBooleanExperiment({
|
|
86
93
|
productKeys: {
|
|
@@ -380,14 +387,6 @@ export var editorExperimentsConfig = {
|
|
|
380
387
|
param: 'isEnabled',
|
|
381
388
|
defaultValue: false
|
|
382
389
|
}),
|
|
383
|
-
// Added 2025-05-22
|
|
384
|
-
editor_ai_in_editor_streaming: createBooleanExperiment({
|
|
385
|
-
productKeys: {
|
|
386
|
-
confluence: 'editor_ai_in_editor_streaming'
|
|
387
|
-
},
|
|
388
|
-
param: 'isEnabled',
|
|
389
|
-
defaultValue: false
|
|
390
|
-
}),
|
|
391
390
|
platform_editor_hide_floating_toolbar_in_ssr: createBooleanExperiment({
|
|
392
391
|
productKeys: {
|
|
393
392
|
confluence: 'platform_editor_hide_floating_toolbar_in_ssr'
|
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_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" | "
|
|
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_stable_editorview_classname" | "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" | "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;
|
|
@@ -102,6 +102,12 @@ declare namespace eeTest {
|
|
|
102
102
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
103
103
|
param: string;
|
|
104
104
|
};
|
|
105
|
+
platform_editor_stable_editorview_classname: {
|
|
106
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
107
|
+
defaultValue: boolean;
|
|
108
|
+
productKeys?: import("./types").ProductKeys | undefined;
|
|
109
|
+
param: string;
|
|
110
|
+
};
|
|
105
111
|
platform_editor_controls_performance_fixes: {
|
|
106
112
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
107
113
|
defaultValue: boolean;
|
|
@@ -325,12 +331,6 @@ declare namespace eeTest {
|
|
|
325
331
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
326
332
|
param: string;
|
|
327
333
|
};
|
|
328
|
-
editor_ai_in_editor_streaming: {
|
|
329
|
-
typeGuard: typeof import("./type-guards").isBoolean;
|
|
330
|
-
defaultValue: boolean;
|
|
331
|
-
productKeys?: import("./types").ProductKeys | undefined;
|
|
332
|
-
param: string;
|
|
333
|
-
};
|
|
334
334
|
platform_editor_hide_floating_toolbar_in_ssr: {
|
|
335
335
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
336
336
|
defaultValue: boolean;
|
|
@@ -60,6 +60,12 @@ export declare const editorExperimentsConfig: {
|
|
|
60
60
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
61
61
|
param: string;
|
|
62
62
|
};
|
|
63
|
+
platform_editor_stable_editorview_classname: {
|
|
64
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
65
|
+
defaultValue: boolean;
|
|
66
|
+
productKeys?: import("./types").ProductKeys | undefined;
|
|
67
|
+
param: string;
|
|
68
|
+
};
|
|
63
69
|
platform_editor_controls_performance_fixes: {
|
|
64
70
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
65
71
|
defaultValue: boolean;
|
|
@@ -283,12 +289,6 @@ export declare const editorExperimentsConfig: {
|
|
|
283
289
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
284
290
|
param: string;
|
|
285
291
|
};
|
|
286
|
-
editor_ai_in_editor_streaming: {
|
|
287
|
-
typeGuard: typeof import("./type-guards").isBoolean;
|
|
288
|
-
defaultValue: boolean;
|
|
289
|
-
productKeys?: import("./types").ProductKeys | undefined;
|
|
290
|
-
param: string;
|
|
291
|
-
};
|
|
292
292
|
platform_editor_hide_floating_toolbar_in_ssr: {
|
|
293
293
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
294
294
|
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
|
@@ -17,6 +17,7 @@ export declare let _overrides: Partial<{
|
|
|
17
17
|
support_table_in_comment: boolean;
|
|
18
18
|
platform_editor_exp_lazy_node_views: boolean;
|
|
19
19
|
platform_renderer_table_sticky_scrollbar: boolean;
|
|
20
|
+
platform_editor_stable_editorview_classname: boolean;
|
|
20
21
|
platform_editor_controls_performance_fixes: boolean;
|
|
21
22
|
platform_editor_prevent_toolbar_layout_shifts: boolean;
|
|
22
23
|
comment_on_bodied_extensions: boolean;
|
|
@@ -53,7 +54,6 @@ export declare let _overrides: Partial<{
|
|
|
53
54
|
platform_editor_breakout_resizing: boolean;
|
|
54
55
|
platform_editor_exp_disable_lnv: boolean;
|
|
55
56
|
platform_editor_ai_quickstart_command: boolean;
|
|
56
|
-
editor_ai_in_editor_streaming: boolean;
|
|
57
57
|
platform_editor_hide_floating_toolbar_in_ssr: boolean;
|
|
58
58
|
platform_editor_smart_card_open_overlay_perf: boolean;
|
|
59
59
|
platform_editor_toolbar_rerender_optimization_exp: 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 "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" | "
|
|
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_stable_editorview_classname" | "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" | "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;
|
|
@@ -102,6 +102,12 @@ declare namespace eeTest {
|
|
|
102
102
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
103
103
|
param: string;
|
|
104
104
|
};
|
|
105
|
+
platform_editor_stable_editorview_classname: {
|
|
106
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
107
|
+
defaultValue: boolean;
|
|
108
|
+
productKeys?: import("./types").ProductKeys | undefined;
|
|
109
|
+
param: string;
|
|
110
|
+
};
|
|
105
111
|
platform_editor_controls_performance_fixes: {
|
|
106
112
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
107
113
|
defaultValue: boolean;
|
|
@@ -325,12 +331,6 @@ declare namespace eeTest {
|
|
|
325
331
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
326
332
|
param: string;
|
|
327
333
|
};
|
|
328
|
-
editor_ai_in_editor_streaming: {
|
|
329
|
-
typeGuard: typeof import("./type-guards").isBoolean;
|
|
330
|
-
defaultValue: boolean;
|
|
331
|
-
productKeys?: import("./types").ProductKeys | undefined;
|
|
332
|
-
param: string;
|
|
333
|
-
};
|
|
334
334
|
platform_editor_hide_floating_toolbar_in_ssr: {
|
|
335
335
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
336
336
|
defaultValue: boolean;
|
|
@@ -60,6 +60,12 @@ export declare const editorExperimentsConfig: {
|
|
|
60
60
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
61
61
|
param: string;
|
|
62
62
|
};
|
|
63
|
+
platform_editor_stable_editorview_classname: {
|
|
64
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
65
|
+
defaultValue: boolean;
|
|
66
|
+
productKeys?: import("./types").ProductKeys | undefined;
|
|
67
|
+
param: string;
|
|
68
|
+
};
|
|
63
69
|
platform_editor_controls_performance_fixes: {
|
|
64
70
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
65
71
|
defaultValue: boolean;
|
|
@@ -283,12 +289,6 @@ export declare const editorExperimentsConfig: {
|
|
|
283
289
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
284
290
|
param: string;
|
|
285
291
|
};
|
|
286
|
-
editor_ai_in_editor_streaming: {
|
|
287
|
-
typeGuard: typeof import("./type-guards").isBoolean;
|
|
288
|
-
defaultValue: boolean;
|
|
289
|
-
productKeys?: import("./types").ProductKeys | undefined;
|
|
290
|
-
param: string;
|
|
291
|
-
};
|
|
292
292
|
platform_editor_hide_floating_toolbar_in_ssr: {
|
|
293
293
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
294
294
|
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;
|
|
@@ -17,6 +17,7 @@ export declare let _overrides: Partial<{
|
|
|
17
17
|
support_table_in_comment: boolean;
|
|
18
18
|
platform_editor_exp_lazy_node_views: boolean;
|
|
19
19
|
platform_renderer_table_sticky_scrollbar: boolean;
|
|
20
|
+
platform_editor_stable_editorview_classname: boolean;
|
|
20
21
|
platform_editor_controls_performance_fixes: boolean;
|
|
21
22
|
platform_editor_prevent_toolbar_layout_shifts: boolean;
|
|
22
23
|
comment_on_bodied_extensions: boolean;
|
|
@@ -53,7 +54,6 @@ export declare let _overrides: Partial<{
|
|
|
53
54
|
platform_editor_breakout_resizing: boolean;
|
|
54
55
|
platform_editor_exp_disable_lnv: boolean;
|
|
55
56
|
platform_editor_ai_quickstart_command: boolean;
|
|
56
|
-
editor_ai_in_editor_streaming: boolean;
|
|
57
57
|
platform_editor_hide_floating_toolbar_in_ssr: boolean;
|
|
58
58
|
platform_editor_smart_card_open_overlay_perf: boolean;
|
|
59
59
|
platform_editor_toolbar_rerender_optimization_exp: boolean;
|
package/package.json
CHANGED