@atlaskit/tmp-editor-statsig 4.6.0 → 4.6.2
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/experiment-builders.js +31 -0
- package/dist/cjs/experiments-config.js +4 -12
- package/dist/cjs/types.js +1 -0
- package/dist/es2019/experiment-builders.js +22 -0
- package/dist/es2019/experiments-config.js +4 -12
- package/dist/es2019/types.js +0 -0
- package/dist/esm/experiment-builders.js +23 -0
- package/dist/esm/experiments-config.js +4 -12
- package/dist/esm/types.js +0 -0
- package/dist/types/editor-experiments-test-utils.d.ts +2 -10
- package/dist/types/experiment-builders.d.ts +9 -0
- package/dist/types/experiments-config.d.ts +1 -9
- package/dist/types/setup.d.ts +1 -2
- package/dist/types/types.d.ts +22 -0
- package/dist/types-ts4.5/editor-experiments-test-utils.d.ts +2 -10
- package/dist/types-ts4.5/experiment-builders.d.ts +9 -0
- package/dist/types-ts4.5/experiments-config.d.ts +1 -9
- package/dist/types-ts4.5/setup.d.ts +1 -2
- package/dist/types-ts4.5/types.d.ts +22 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 4.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#133802](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/133802)
|
|
8
|
+
[`f523489c8b68a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f523489c8b68a) -
|
|
9
|
+
[ux] ED-27217 Clean up experiment platform_editor_element_drag_and_drop_nested
|
|
10
|
+
|
|
11
|
+
## 4.6.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#134378](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/134378)
|
|
16
|
+
[`210a48c778086`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/210a48c778086) -
|
|
17
|
+
EDITOR-546 Cleaned up platform_editor_cmd_a_progressively_select_nodes to revert to control
|
|
18
|
+
behaviour.
|
|
19
|
+
|
|
3
20
|
## 4.6.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.createBooleanExperiment = createBooleanExperiment;
|
|
8
|
+
exports.createMultivariateExperiment = createMultivariateExperiment;
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _typeGuards = require("./type-guards");
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
/**
|
|
14
|
+
* Helper to create a boolean experiment configuration
|
|
15
|
+
*/
|
|
16
|
+
function createBooleanExperiment(config) {
|
|
17
|
+
return _objectSpread(_objectSpread({}, config), {}, {
|
|
18
|
+
typeGuard: _typeGuards.isBoolean,
|
|
19
|
+
defaultValue: config.defaultValue
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Helper to create a multivariate experiment configuration
|
|
25
|
+
*/
|
|
26
|
+
function createMultivariateExperiment(config) {
|
|
27
|
+
return _objectSpread(_objectSpread({}, config), {}, {
|
|
28
|
+
typeGuard: (0, _typeGuards.oneOf)(config.values),
|
|
29
|
+
defaultValue: config.defaultValue
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -45,15 +45,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
45
45
|
typeGuard: _typeGuards.isBoolean,
|
|
46
46
|
defaultValue: false
|
|
47
47
|
},
|
|
48
|
-
// Added 2024-08-30
|
|
49
|
-
'nested-dnd': {
|
|
50
|
-
productKeys: {
|
|
51
|
-
confluence: 'platform_editor_element_drag_and_drop_nested'
|
|
52
|
-
},
|
|
53
|
-
param: 'isEnabled',
|
|
54
|
-
typeGuard: _typeGuards.isBoolean,
|
|
55
|
-
defaultValue: false
|
|
56
|
-
},
|
|
57
48
|
// Added 2024-09-05
|
|
58
49
|
support_table_in_comment: {
|
|
59
50
|
productKeys: {
|
|
@@ -255,10 +246,11 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
255
246
|
typeGuard: (0, _typeGuards.oneOf)(['off', 'fallback-small', 'fallback-large']),
|
|
256
247
|
defaultValue: 'off'
|
|
257
248
|
},
|
|
258
|
-
// Added 2025-
|
|
259
|
-
|
|
249
|
+
// Added 2025-04-01
|
|
250
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_vanilla_dom/setup
|
|
251
|
+
platform_editor_vanilla_dom: {
|
|
260
252
|
productKeys: {
|
|
261
|
-
confluence: '
|
|
253
|
+
confluence: 'platform_editor_vanilla_dom'
|
|
262
254
|
},
|
|
263
255
|
param: 'isEnabled',
|
|
264
256
|
typeGuard: _typeGuards.isBoolean,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { isBoolean, oneOf } from './type-guards';
|
|
2
|
+
/**
|
|
3
|
+
* Helper to create a boolean experiment configuration
|
|
4
|
+
*/
|
|
5
|
+
export function createBooleanExperiment(config) {
|
|
6
|
+
return {
|
|
7
|
+
...config,
|
|
8
|
+
typeGuard: isBoolean,
|
|
9
|
+
defaultValue: config.defaultValue
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Helper to create a multivariate experiment configuration
|
|
15
|
+
*/
|
|
16
|
+
export function createMultivariateExperiment(config) {
|
|
17
|
+
return {
|
|
18
|
+
...config,
|
|
19
|
+
typeGuard: oneOf(config.values),
|
|
20
|
+
defaultValue: config.defaultValue
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -39,15 +39,6 @@ export const editorExperimentsConfig = {
|
|
|
39
39
|
typeGuard: isBoolean,
|
|
40
40
|
defaultValue: false
|
|
41
41
|
},
|
|
42
|
-
// Added 2024-08-30
|
|
43
|
-
'nested-dnd': {
|
|
44
|
-
productKeys: {
|
|
45
|
-
confluence: 'platform_editor_element_drag_and_drop_nested'
|
|
46
|
-
},
|
|
47
|
-
param: 'isEnabled',
|
|
48
|
-
typeGuard: isBoolean,
|
|
49
|
-
defaultValue: false
|
|
50
|
-
},
|
|
51
42
|
// Added 2024-09-05
|
|
52
43
|
support_table_in_comment: {
|
|
53
44
|
productKeys: {
|
|
@@ -249,10 +240,11 @@ export const editorExperimentsConfig = {
|
|
|
249
240
|
typeGuard: oneOf(['off', 'fallback-small', 'fallback-large']),
|
|
250
241
|
defaultValue: 'off'
|
|
251
242
|
},
|
|
252
|
-
// Added 2025-
|
|
253
|
-
|
|
243
|
+
// Added 2025-04-01
|
|
244
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_vanilla_dom/setup
|
|
245
|
+
platform_editor_vanilla_dom: {
|
|
254
246
|
productKeys: {
|
|
255
|
-
confluence: '
|
|
247
|
+
confluence: 'platform_editor_vanilla_dom'
|
|
256
248
|
},
|
|
257
249
|
param: 'isEnabled',
|
|
258
250
|
typeGuard: isBoolean,
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
import { isBoolean, oneOf } from './type-guards';
|
|
5
|
+
/**
|
|
6
|
+
* Helper to create a boolean experiment configuration
|
|
7
|
+
*/
|
|
8
|
+
export function createBooleanExperiment(config) {
|
|
9
|
+
return _objectSpread(_objectSpread({}, config), {}, {
|
|
10
|
+
typeGuard: isBoolean,
|
|
11
|
+
defaultValue: config.defaultValue
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Helper to create a multivariate experiment configuration
|
|
17
|
+
*/
|
|
18
|
+
export function createMultivariateExperiment(config) {
|
|
19
|
+
return _objectSpread(_objectSpread({}, config), {}, {
|
|
20
|
+
typeGuard: oneOf(config.values),
|
|
21
|
+
defaultValue: config.defaultValue
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -39,15 +39,6 @@ export var editorExperimentsConfig = {
|
|
|
39
39
|
typeGuard: isBoolean,
|
|
40
40
|
defaultValue: false
|
|
41
41
|
},
|
|
42
|
-
// Added 2024-08-30
|
|
43
|
-
'nested-dnd': {
|
|
44
|
-
productKeys: {
|
|
45
|
-
confluence: 'platform_editor_element_drag_and_drop_nested'
|
|
46
|
-
},
|
|
47
|
-
param: 'isEnabled',
|
|
48
|
-
typeGuard: isBoolean,
|
|
49
|
-
defaultValue: false
|
|
50
|
-
},
|
|
51
42
|
// Added 2024-09-05
|
|
52
43
|
support_table_in_comment: {
|
|
53
44
|
productKeys: {
|
|
@@ -249,10 +240,11 @@ export var editorExperimentsConfig = {
|
|
|
249
240
|
typeGuard: oneOf(['off', 'fallback-small', 'fallback-large']),
|
|
250
241
|
defaultValue: 'off'
|
|
251
242
|
},
|
|
252
|
-
// Added 2025-
|
|
253
|
-
|
|
243
|
+
// Added 2025-04-01
|
|
244
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_vanilla_dom/setup
|
|
245
|
+
platform_editor_vanilla_dom: {
|
|
254
246
|
productKeys: {
|
|
255
|
-
confluence: '
|
|
247
|
+
confluence: 'platform_editor_vanilla_dom'
|
|
256
248
|
},
|
|
257
249
|
param: 'isEnabled',
|
|
258
250
|
typeGuard: isBoolean,
|
|
File without changes
|
|
@@ -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" | "
|
|
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" | "nested-expand-in-expand" | "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" | "expand_selection_range_to_include_inline_node" | "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_nested_non_bodied_macros" | "editor_ai_inline_suggestion_date" | "platform_editor_insertion" | "platform_editor_inline_node_virtualization" | "platform_editor_vanilla_dom" | "editor_text_highlight_orange_to_yellow" | "platform_editor_ai_proactive_ai_nudge_score" | "platform_editor_markdown_next_media_plugin_exp">(experimentName: ExperimentName, describeName: string) => {
|
|
49
49
|
variant: (value: {
|
|
50
50
|
'example-boolean': {
|
|
51
51
|
productKeys: {
|
|
@@ -72,14 +72,6 @@ declare namespace eeTest {
|
|
|
72
72
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
73
73
|
defaultValue: boolean;
|
|
74
74
|
};
|
|
75
|
-
'nested-dnd': {
|
|
76
|
-
productKeys: {
|
|
77
|
-
confluence: string;
|
|
78
|
-
};
|
|
79
|
-
param: string;
|
|
80
|
-
typeGuard: typeof import("./type-guards").isBoolean;
|
|
81
|
-
defaultValue: boolean;
|
|
82
|
-
};
|
|
83
75
|
support_table_in_comment: {
|
|
84
76
|
productKeys: {
|
|
85
77
|
confluence: string;
|
|
@@ -256,7 +248,7 @@ declare namespace eeTest {
|
|
|
256
248
|
typeGuard: (value: unknown) => value is "off" | "fallback-small" | "fallback-large";
|
|
257
249
|
defaultValue: "off" | "fallback-small" | "fallback-large";
|
|
258
250
|
};
|
|
259
|
-
|
|
251
|
+
platform_editor_vanilla_dom: {
|
|
260
252
|
productKeys: {
|
|
261
253
|
confluence: string;
|
|
262
254
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BooleanExperimentConfig, ExperimentConfigValue, MultivariateExperimentConfig } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Helper to create a boolean experiment configuration
|
|
4
|
+
*/
|
|
5
|
+
export declare function createBooleanExperiment(config: BooleanExperimentConfig): ExperimentConfigValue;
|
|
6
|
+
/**
|
|
7
|
+
* Helper to create a multivariate experiment configuration
|
|
8
|
+
*/
|
|
9
|
+
export declare function createMultivariateExperiment<T extends string[]>(config: MultivariateExperimentConfig<T>): ExperimentConfigValue;
|
|
@@ -31,14 +31,6 @@ export declare const editorExperimentsConfig: {
|
|
|
31
31
|
typeGuard: typeof isBoolean;
|
|
32
32
|
defaultValue: boolean;
|
|
33
33
|
};
|
|
34
|
-
'nested-dnd': {
|
|
35
|
-
productKeys: {
|
|
36
|
-
confluence: string;
|
|
37
|
-
};
|
|
38
|
-
param: string;
|
|
39
|
-
typeGuard: typeof isBoolean;
|
|
40
|
-
defaultValue: boolean;
|
|
41
|
-
};
|
|
42
34
|
support_table_in_comment: {
|
|
43
35
|
productKeys: {
|
|
44
36
|
confluence: string;
|
|
@@ -215,7 +207,7 @@ export declare const editorExperimentsConfig: {
|
|
|
215
207
|
typeGuard: (value: unknown) => value is "off" | "fallback-small" | "fallback-large";
|
|
216
208
|
defaultValue: "off" | "fallback-small" | "fallback-large";
|
|
217
209
|
};
|
|
218
|
-
|
|
210
|
+
platform_editor_vanilla_dom: {
|
|
219
211
|
productKeys: {
|
|
220
212
|
confluence: string;
|
|
221
213
|
};
|
package/dist/types/setup.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export declare let _overrides: Partial<{
|
|
|
11
11
|
'example-boolean': boolean;
|
|
12
12
|
'example-multivariate': "one" | "two" | "three";
|
|
13
13
|
'test-new-experiments-package': boolean;
|
|
14
|
-
'nested-dnd': boolean;
|
|
15
14
|
support_table_in_comment: boolean;
|
|
16
15
|
platform_editor_exp_lazy_node_views: boolean;
|
|
17
16
|
platform_renderer_table_sticky_scrollbar: boolean;
|
|
@@ -34,7 +33,7 @@ export declare let _overrides: Partial<{
|
|
|
34
33
|
editor_ai_inline_suggestion_date: "test" | "control";
|
|
35
34
|
platform_editor_insertion: "control" | "variant1";
|
|
36
35
|
platform_editor_inline_node_virtualization: "off" | "fallback-small" | "fallback-large";
|
|
37
|
-
|
|
36
|
+
platform_editor_vanilla_dom: boolean;
|
|
38
37
|
editor_text_highlight_orange_to_yellow: "test" | "control";
|
|
39
38
|
platform_editor_ai_proactive_ai_nudge_score: "control" | "variant1";
|
|
40
39
|
platform_editor_markdown_next_media_plugin_exp: boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type ProductKeys = {
|
|
2
|
+
confluence?: string;
|
|
3
|
+
jira?: string;
|
|
4
|
+
test?: string;
|
|
5
|
+
};
|
|
6
|
+
export type ExperimentConfigValue = {
|
|
7
|
+
productKeys?: ProductKeys;
|
|
8
|
+
param: string;
|
|
9
|
+
typeGuard: (value: unknown) => boolean;
|
|
10
|
+
defaultValue: boolean | string;
|
|
11
|
+
};
|
|
12
|
+
export type BooleanExperimentConfig = {
|
|
13
|
+
productKeys?: ProductKeys;
|
|
14
|
+
param: string;
|
|
15
|
+
defaultValue: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type MultivariateExperimentConfig<T extends string[]> = {
|
|
18
|
+
productKeys?: ProductKeys;
|
|
19
|
+
param: string;
|
|
20
|
+
values: T;
|
|
21
|
+
defaultValue: T[number];
|
|
22
|
+
};
|
|
@@ -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" | "
|
|
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" | "nested-expand-in-expand" | "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" | "expand_selection_range_to_include_inline_node" | "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_nested_non_bodied_macros" | "editor_ai_inline_suggestion_date" | "platform_editor_insertion" | "platform_editor_inline_node_virtualization" | "platform_editor_vanilla_dom" | "editor_text_highlight_orange_to_yellow" | "platform_editor_ai_proactive_ai_nudge_score" | "platform_editor_markdown_next_media_plugin_exp">(experimentName: ExperimentName, describeName: string) => {
|
|
49
49
|
variant: (value: {
|
|
50
50
|
'example-boolean': {
|
|
51
51
|
productKeys: {
|
|
@@ -72,14 +72,6 @@ declare namespace eeTest {
|
|
|
72
72
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
73
73
|
defaultValue: boolean;
|
|
74
74
|
};
|
|
75
|
-
'nested-dnd': {
|
|
76
|
-
productKeys: {
|
|
77
|
-
confluence: string;
|
|
78
|
-
};
|
|
79
|
-
param: string;
|
|
80
|
-
typeGuard: typeof import("./type-guards").isBoolean;
|
|
81
|
-
defaultValue: boolean;
|
|
82
|
-
};
|
|
83
75
|
support_table_in_comment: {
|
|
84
76
|
productKeys: {
|
|
85
77
|
confluence: string;
|
|
@@ -256,7 +248,7 @@ declare namespace eeTest {
|
|
|
256
248
|
typeGuard: (value: unknown) => value is "off" | "fallback-small" | "fallback-large";
|
|
257
249
|
defaultValue: "off" | "fallback-small" | "fallback-large";
|
|
258
250
|
};
|
|
259
|
-
|
|
251
|
+
platform_editor_vanilla_dom: {
|
|
260
252
|
productKeys: {
|
|
261
253
|
confluence: string;
|
|
262
254
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BooleanExperimentConfig, ExperimentConfigValue, MultivariateExperimentConfig } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Helper to create a boolean experiment configuration
|
|
4
|
+
*/
|
|
5
|
+
export declare function createBooleanExperiment(config: BooleanExperimentConfig): ExperimentConfigValue;
|
|
6
|
+
/**
|
|
7
|
+
* Helper to create a multivariate experiment configuration
|
|
8
|
+
*/
|
|
9
|
+
export declare function createMultivariateExperiment<T extends string[]>(config: MultivariateExperimentConfig<T>): ExperimentConfigValue;
|
|
@@ -31,14 +31,6 @@ export declare const editorExperimentsConfig: {
|
|
|
31
31
|
typeGuard: typeof isBoolean;
|
|
32
32
|
defaultValue: boolean;
|
|
33
33
|
};
|
|
34
|
-
'nested-dnd': {
|
|
35
|
-
productKeys: {
|
|
36
|
-
confluence: string;
|
|
37
|
-
};
|
|
38
|
-
param: string;
|
|
39
|
-
typeGuard: typeof isBoolean;
|
|
40
|
-
defaultValue: boolean;
|
|
41
|
-
};
|
|
42
34
|
support_table_in_comment: {
|
|
43
35
|
productKeys: {
|
|
44
36
|
confluence: string;
|
|
@@ -215,7 +207,7 @@ export declare const editorExperimentsConfig: {
|
|
|
215
207
|
typeGuard: (value: unknown) => value is "off" | "fallback-small" | "fallback-large";
|
|
216
208
|
defaultValue: "off" | "fallback-small" | "fallback-large";
|
|
217
209
|
};
|
|
218
|
-
|
|
210
|
+
platform_editor_vanilla_dom: {
|
|
219
211
|
productKeys: {
|
|
220
212
|
confluence: string;
|
|
221
213
|
};
|
|
@@ -11,7 +11,6 @@ export declare let _overrides: Partial<{
|
|
|
11
11
|
'example-boolean': boolean;
|
|
12
12
|
'example-multivariate': "one" | "two" | "three";
|
|
13
13
|
'test-new-experiments-package': boolean;
|
|
14
|
-
'nested-dnd': boolean;
|
|
15
14
|
support_table_in_comment: boolean;
|
|
16
15
|
platform_editor_exp_lazy_node_views: boolean;
|
|
17
16
|
platform_renderer_table_sticky_scrollbar: boolean;
|
|
@@ -34,7 +33,7 @@ export declare let _overrides: Partial<{
|
|
|
34
33
|
editor_ai_inline_suggestion_date: "test" | "control";
|
|
35
34
|
platform_editor_insertion: "control" | "variant1";
|
|
36
35
|
platform_editor_inline_node_virtualization: "off" | "fallback-small" | "fallback-large";
|
|
37
|
-
|
|
36
|
+
platform_editor_vanilla_dom: boolean;
|
|
38
37
|
editor_text_highlight_orange_to_yellow: "test" | "control";
|
|
39
38
|
platform_editor_ai_proactive_ai_nudge_score: "control" | "variant1";
|
|
40
39
|
platform_editor_markdown_next_media_plugin_exp: boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type ProductKeys = {
|
|
2
|
+
confluence?: string;
|
|
3
|
+
jira?: string;
|
|
4
|
+
test?: string;
|
|
5
|
+
};
|
|
6
|
+
export type ExperimentConfigValue = {
|
|
7
|
+
productKeys?: ProductKeys;
|
|
8
|
+
param: string;
|
|
9
|
+
typeGuard: (value: unknown) => boolean;
|
|
10
|
+
defaultValue: boolean | string;
|
|
11
|
+
};
|
|
12
|
+
export type BooleanExperimentConfig = {
|
|
13
|
+
productKeys?: ProductKeys;
|
|
14
|
+
param: string;
|
|
15
|
+
defaultValue: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type MultivariateExperimentConfig<T extends string[]> = {
|
|
18
|
+
productKeys?: ProductKeys;
|
|
19
|
+
param: string;
|
|
20
|
+
values: T;
|
|
21
|
+
defaultValue: T[number];
|
|
22
|
+
};
|
package/package.json
CHANGED