@atlaskit/tmp-editor-statsig 4.17.0 → 4.19.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 +17 -0
- package/dist/cjs/experiment-builders.js +6 -6
- package/dist/cjs/experiments-config.js +8 -0
- package/dist/es2019/experiment-builders.js +5 -4
- package/dist/es2019/experiments-config.js +8 -0
- package/dist/esm/experiment-builders.js +6 -6
- package/dist/esm/experiments-config.js +8 -0
- package/dist/types/editor-experiments-test-utils.d.ts +17 -1
- package/dist/types/experiment-builders.d.ts +1 -0
- package/dist/types/experiments-config.d.ts +16 -0
- package/dist/types/setup.d.ts +1 -0
- package/dist/types/types.d.ts +6 -2
- package/dist/types-ts4.5/editor-experiments-test-utils.d.ts +17 -1
- package/dist/types-ts4.5/experiment-builders.d.ts +3 -0
- package/dist/types-ts4.5/experiments-config.d.ts +16 -0
- package/dist/types-ts4.5/setup.d.ts +1 -0
- package/dist/types-ts4.5/types.d.ts +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 4.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#150067](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/150067)
|
|
8
|
+
[`f625a2dfb3214`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f625a2dfb3214) -
|
|
9
|
+
NO-ISSUE: Pass in values into multivariate configs so that it can be picked up by the experiment
|
|
10
|
+
picker in Statlas
|
|
11
|
+
|
|
12
|
+
## 4.18.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#149914](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149914)
|
|
17
|
+
[`069cd0cee4bdd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/069cd0cee4bdd) -
|
|
18
|
+
migrate editor core styles under new experiment to prepare optimization
|
|
19
|
+
|
|
3
20
|
## 4.17.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.createBooleanExperiment = createBooleanExperiment;
|
|
8
8
|
exports.createMultivariateExperiment = createMultivariateExperiment;
|
|
9
|
-
var
|
|
9
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _typeGuards = require("./type-guards");
|
|
12
|
-
var _excluded = ["values"];
|
|
13
12
|
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; }
|
|
14
13
|
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; }
|
|
15
14
|
/**
|
|
@@ -26,10 +25,11 @@ function createBooleanExperiment(config) {
|
|
|
26
25
|
* Helper to create a multivariate experiment configuration
|
|
27
26
|
*/
|
|
28
27
|
function createMultivariateExperiment(config) {
|
|
29
|
-
var values = config.values
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
var values = config.values;
|
|
29
|
+
return _objectSpread(_objectSpread({}, config), {}, {
|
|
30
|
+
values: (0, _toConsumableArray2.default)(values),
|
|
31
|
+
// Maintains the tuple
|
|
32
|
+
typeGuard: (0, _typeGuards.oneOf)(config.values),
|
|
33
33
|
defaultValue: config.defaultValue
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -292,5 +292,13 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
292
292
|
},
|
|
293
293
|
param: 'isEnabled',
|
|
294
294
|
defaultValue: false
|
|
295
|
+
}),
|
|
296
|
+
// Added 2025-05-08
|
|
297
|
+
platform_editor_core_static_emotion: (0, _experimentBuilders.createBooleanExperiment)({
|
|
298
|
+
productKeys: {
|
|
299
|
+
confluence: 'platform_editor_core_static_emotion'
|
|
300
|
+
},
|
|
301
|
+
param: 'isEnabled',
|
|
302
|
+
defaultValue: false
|
|
295
303
|
})
|
|
296
304
|
};
|
|
@@ -15,12 +15,13 @@ export function createBooleanExperiment(config) {
|
|
|
15
15
|
*/
|
|
16
16
|
export function createMultivariateExperiment(config) {
|
|
17
17
|
const {
|
|
18
|
-
values
|
|
19
|
-
...restConfig
|
|
18
|
+
values
|
|
20
19
|
} = config;
|
|
21
20
|
return {
|
|
22
|
-
...
|
|
23
|
-
|
|
21
|
+
...config,
|
|
22
|
+
values: [...values],
|
|
23
|
+
// Maintains the tuple
|
|
24
|
+
typeGuard: oneOf(config.values),
|
|
24
25
|
defaultValue: config.defaultValue
|
|
25
26
|
};
|
|
26
27
|
}
|
|
@@ -286,5 +286,13 @@ export const editorExperimentsConfig = {
|
|
|
286
286
|
},
|
|
287
287
|
param: 'isEnabled',
|
|
288
288
|
defaultValue: false
|
|
289
|
+
}),
|
|
290
|
+
// Added 2025-05-08
|
|
291
|
+
platform_editor_core_static_emotion: createBooleanExperiment({
|
|
292
|
+
productKeys: {
|
|
293
|
+
confluence: 'platform_editor_core_static_emotion'
|
|
294
|
+
},
|
|
295
|
+
param: 'isEnabled',
|
|
296
|
+
defaultValue: false
|
|
289
297
|
})
|
|
290
298
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
var _excluded = ["values"];
|
|
4
3
|
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; }
|
|
5
4
|
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; }
|
|
6
5
|
import { isBoolean, oneOf } from './type-guards';
|
|
@@ -18,10 +17,11 @@ export function createBooleanExperiment(config) {
|
|
|
18
17
|
* Helper to create a multivariate experiment configuration
|
|
19
18
|
*/
|
|
20
19
|
export function createMultivariateExperiment(config) {
|
|
21
|
-
var values = config.values
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
var values = config.values;
|
|
21
|
+
return _objectSpread(_objectSpread({}, config), {}, {
|
|
22
|
+
values: _toConsumableArray(values),
|
|
23
|
+
// Maintains the tuple
|
|
24
|
+
typeGuard: oneOf(config.values),
|
|
25
25
|
defaultValue: config.defaultValue
|
|
26
26
|
});
|
|
27
27
|
}
|
|
@@ -286,5 +286,13 @@ export var editorExperimentsConfig = {
|
|
|
286
286
|
},
|
|
287
287
|
param: 'isEnabled',
|
|
288
288
|
defaultValue: false
|
|
289
|
+
}),
|
|
290
|
+
// Added 2025-05-08
|
|
291
|
+
platform_editor_core_static_emotion: createBooleanExperiment({
|
|
292
|
+
productKeys: {
|
|
293
|
+
confluence: 'platform_editor_core_static_emotion'
|
|
294
|
+
},
|
|
295
|
+
param: 'isEnabled',
|
|
296
|
+
defaultValue: false
|
|
289
297
|
})
|
|
290
298
|
};
|
|
@@ -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">(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" | "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">(experimentName: ExperimentName, describeName: string) => {
|
|
49
49
|
variant: (value: {
|
|
50
50
|
'example-boolean': {
|
|
51
51
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
@@ -54,6 +54,7 @@ declare namespace eeTest {
|
|
|
54
54
|
param: string;
|
|
55
55
|
};
|
|
56
56
|
'example-multivariate': {
|
|
57
|
+
values: ("one" | "two" | "three")[];
|
|
57
58
|
typeGuard: (value: unknown) => value is "one" | "two" | "three";
|
|
58
59
|
defaultValue: "one" | "two" | "three";
|
|
59
60
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -108,6 +109,7 @@ declare namespace eeTest {
|
|
|
108
109
|
param: string;
|
|
109
110
|
};
|
|
110
111
|
'platform_editor_ai-prompts-placeholder': {
|
|
112
|
+
values: ("test" | "control")[];
|
|
111
113
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
112
114
|
defaultValue: "test" | "control";
|
|
113
115
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -144,6 +146,7 @@ declare namespace eeTest {
|
|
|
144
146
|
param: string;
|
|
145
147
|
};
|
|
146
148
|
live_pages_graceful_edit: {
|
|
149
|
+
values: ("control" | "text-click-delayed" | "text-click-no-delay" | "initially-hide-toolbar")[];
|
|
147
150
|
typeGuard: (value: unknown) => value is "control" | "text-click-delayed" | "text-click-no-delay" | "initially-hide-toolbar";
|
|
148
151
|
defaultValue: "control" | "text-click-delayed" | "text-click-no-delay" | "initially-hide-toolbar";
|
|
149
152
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -156,18 +159,21 @@ declare namespace eeTest {
|
|
|
156
159
|
param: string;
|
|
157
160
|
};
|
|
158
161
|
platform_editor_controls: {
|
|
162
|
+
values: ("control" | "variant1")[];
|
|
159
163
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
160
164
|
defaultValue: "control" | "variant1";
|
|
161
165
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
162
166
|
param: string;
|
|
163
167
|
};
|
|
164
168
|
platform_editor_controls_shadow: {
|
|
169
|
+
values: ("control" | "variant1")[];
|
|
165
170
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
166
171
|
defaultValue: "control" | "variant1";
|
|
167
172
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
168
173
|
param: string;
|
|
169
174
|
};
|
|
170
175
|
platform_editor_insertion: {
|
|
176
|
+
values: ("control" | "variant1")[];
|
|
171
177
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
172
178
|
defaultValue: "control" | "variant1";
|
|
173
179
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -180,12 +186,14 @@ declare namespace eeTest {
|
|
|
180
186
|
param: string;
|
|
181
187
|
};
|
|
182
188
|
editor_text_highlight_orange_to_yellow: {
|
|
189
|
+
values: ("test" | "control")[];
|
|
183
190
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
184
191
|
defaultValue: "test" | "control";
|
|
185
192
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
186
193
|
param: string;
|
|
187
194
|
};
|
|
188
195
|
platform_editor_ai_proactive_ai_nudge_parameters: {
|
|
196
|
+
values: ("control" | "variant1")[];
|
|
189
197
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
190
198
|
defaultValue: "control" | "variant1";
|
|
191
199
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -204,6 +212,7 @@ declare namespace eeTest {
|
|
|
204
212
|
param: string;
|
|
205
213
|
};
|
|
206
214
|
editor_ai_inline_suggestion_date_v2: {
|
|
215
|
+
values: ("test" | "control")[];
|
|
207
216
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
208
217
|
defaultValue: "test" | "control";
|
|
209
218
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -234,6 +243,7 @@ declare namespace eeTest {
|
|
|
234
243
|
param: string;
|
|
235
244
|
};
|
|
236
245
|
editor_ai_contextual_selection_toolbar_button: {
|
|
246
|
+
values: ("test" | "control")[];
|
|
237
247
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
238
248
|
defaultValue: "test" | "control";
|
|
239
249
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -245,6 +255,12 @@ declare namespace eeTest {
|
|
|
245
255
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
246
256
|
param: string;
|
|
247
257
|
};
|
|
258
|
+
platform_editor_core_static_emotion: {
|
|
259
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
260
|
+
defaultValue: boolean;
|
|
261
|
+
productKeys?: import("./types").ProductKeys | undefined;
|
|
262
|
+
param: string;
|
|
263
|
+
};
|
|
248
264
|
}[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
|
|
249
265
|
each: (describeBody: jest.EmptyFunction) => void;
|
|
250
266
|
};
|
|
@@ -13,6 +13,7 @@ export declare function createBooleanExperiment(config: BooleanExperimentConfig)
|
|
|
13
13
|
* Helper to create a multivariate experiment configuration
|
|
14
14
|
*/
|
|
15
15
|
export declare function createMultivariateExperiment<T extends string[]>(config: MultivariateExperimentConfig<T>): {
|
|
16
|
+
values: [...T][number][];
|
|
16
17
|
typeGuard: (value: unknown) => value is T[number];
|
|
17
18
|
defaultValue: T[number];
|
|
18
19
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -12,6 +12,7 @@ export declare const editorExperimentsConfig: {
|
|
|
12
12
|
param: string;
|
|
13
13
|
};
|
|
14
14
|
'example-multivariate': {
|
|
15
|
+
values: ("one" | "two" | "three")[];
|
|
15
16
|
typeGuard: (value: unknown) => value is "one" | "two" | "three";
|
|
16
17
|
defaultValue: "one" | "two" | "three";
|
|
17
18
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -66,6 +67,7 @@ export declare const editorExperimentsConfig: {
|
|
|
66
67
|
param: string;
|
|
67
68
|
};
|
|
68
69
|
'platform_editor_ai-prompts-placeholder': {
|
|
70
|
+
values: ("test" | "control")[];
|
|
69
71
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
70
72
|
defaultValue: "test" | "control";
|
|
71
73
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -102,6 +104,7 @@ export declare const editorExperimentsConfig: {
|
|
|
102
104
|
param: string;
|
|
103
105
|
};
|
|
104
106
|
live_pages_graceful_edit: {
|
|
107
|
+
values: ("control" | "text-click-delayed" | "text-click-no-delay" | "initially-hide-toolbar")[];
|
|
105
108
|
typeGuard: (value: unknown) => value is "control" | "text-click-delayed" | "text-click-no-delay" | "initially-hide-toolbar";
|
|
106
109
|
defaultValue: "control" | "text-click-delayed" | "text-click-no-delay" | "initially-hide-toolbar";
|
|
107
110
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -114,18 +117,21 @@ export declare const editorExperimentsConfig: {
|
|
|
114
117
|
param: string;
|
|
115
118
|
};
|
|
116
119
|
platform_editor_controls: {
|
|
120
|
+
values: ("control" | "variant1")[];
|
|
117
121
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
118
122
|
defaultValue: "control" | "variant1";
|
|
119
123
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
120
124
|
param: string;
|
|
121
125
|
};
|
|
122
126
|
platform_editor_controls_shadow: {
|
|
127
|
+
values: ("control" | "variant1")[];
|
|
123
128
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
124
129
|
defaultValue: "control" | "variant1";
|
|
125
130
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
126
131
|
param: string;
|
|
127
132
|
};
|
|
128
133
|
platform_editor_insertion: {
|
|
134
|
+
values: ("control" | "variant1")[];
|
|
129
135
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
130
136
|
defaultValue: "control" | "variant1";
|
|
131
137
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -138,12 +144,14 @@ export declare const editorExperimentsConfig: {
|
|
|
138
144
|
param: string;
|
|
139
145
|
};
|
|
140
146
|
editor_text_highlight_orange_to_yellow: {
|
|
147
|
+
values: ("test" | "control")[];
|
|
141
148
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
142
149
|
defaultValue: "test" | "control";
|
|
143
150
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
144
151
|
param: string;
|
|
145
152
|
};
|
|
146
153
|
platform_editor_ai_proactive_ai_nudge_parameters: {
|
|
154
|
+
values: ("control" | "variant1")[];
|
|
147
155
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
148
156
|
defaultValue: "control" | "variant1";
|
|
149
157
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -162,6 +170,7 @@ export declare const editorExperimentsConfig: {
|
|
|
162
170
|
param: string;
|
|
163
171
|
};
|
|
164
172
|
editor_ai_inline_suggestion_date_v2: {
|
|
173
|
+
values: ("test" | "control")[];
|
|
165
174
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
166
175
|
defaultValue: "test" | "control";
|
|
167
176
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -192,6 +201,7 @@ export declare const editorExperimentsConfig: {
|
|
|
192
201
|
param: string;
|
|
193
202
|
};
|
|
194
203
|
editor_ai_contextual_selection_toolbar_button: {
|
|
204
|
+
values: ("test" | "control")[];
|
|
195
205
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
196
206
|
defaultValue: "test" | "control";
|
|
197
207
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -203,4 +213,10 @@ export declare const editorExperimentsConfig: {
|
|
|
203
213
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
204
214
|
param: string;
|
|
205
215
|
};
|
|
216
|
+
platform_editor_core_static_emotion: {
|
|
217
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
218
|
+
defaultValue: boolean;
|
|
219
|
+
productKeys?: import("./types").ProductKeys | undefined;
|
|
220
|
+
param: string;
|
|
221
|
+
};
|
|
206
222
|
};
|
package/dist/types/setup.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare let _overrides: Partial<{
|
|
|
41
41
|
platform_renderer_fix_analytics_memo_callback: boolean;
|
|
42
42
|
editor_ai_contextual_selection_toolbar_button: "test" | "control";
|
|
43
43
|
editor_ai_cmd_palette_remove_retry: boolean;
|
|
44
|
+
platform_editor_core_static_emotion: boolean;
|
|
44
45
|
}>;
|
|
45
46
|
export declare let _paramOverrides: EditorExperimentParamOverrides;
|
|
46
47
|
export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -7,8 +7,12 @@ export type ExperimentConfigValue = {
|
|
|
7
7
|
productKeys?: ProductKeys;
|
|
8
8
|
param: string;
|
|
9
9
|
typeGuard: (value: unknown) => boolean;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
} & ({
|
|
11
|
+
defaultValue: boolean;
|
|
12
|
+
} | {
|
|
13
|
+
defaultValue: string;
|
|
14
|
+
values: string[];
|
|
15
|
+
});
|
|
12
16
|
export type BooleanExperimentConfig = {
|
|
13
17
|
productKeys?: ProductKeys;
|
|
14
18
|
param: string;
|
|
@@ -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">(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" | "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">(experimentName: ExperimentName, describeName: string) => {
|
|
49
49
|
variant: (value: {
|
|
50
50
|
'example-boolean': {
|
|
51
51
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
@@ -54,6 +54,7 @@ declare namespace eeTest {
|
|
|
54
54
|
param: string;
|
|
55
55
|
};
|
|
56
56
|
'example-multivariate': {
|
|
57
|
+
values: ("one" | "two" | "three")[];
|
|
57
58
|
typeGuard: (value: unknown) => value is "one" | "two" | "three";
|
|
58
59
|
defaultValue: "one" | "two" | "three";
|
|
59
60
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -108,6 +109,7 @@ declare namespace eeTest {
|
|
|
108
109
|
param: string;
|
|
109
110
|
};
|
|
110
111
|
'platform_editor_ai-prompts-placeholder': {
|
|
112
|
+
values: ("test" | "control")[];
|
|
111
113
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
112
114
|
defaultValue: "test" | "control";
|
|
113
115
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -144,6 +146,7 @@ declare namespace eeTest {
|
|
|
144
146
|
param: string;
|
|
145
147
|
};
|
|
146
148
|
live_pages_graceful_edit: {
|
|
149
|
+
values: ("control" | "text-click-delayed" | "text-click-no-delay" | "initially-hide-toolbar")[];
|
|
147
150
|
typeGuard: (value: unknown) => value is "control" | "text-click-delayed" | "text-click-no-delay" | "initially-hide-toolbar";
|
|
148
151
|
defaultValue: "control" | "text-click-delayed" | "text-click-no-delay" | "initially-hide-toolbar";
|
|
149
152
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -156,18 +159,21 @@ declare namespace eeTest {
|
|
|
156
159
|
param: string;
|
|
157
160
|
};
|
|
158
161
|
platform_editor_controls: {
|
|
162
|
+
values: ("control" | "variant1")[];
|
|
159
163
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
160
164
|
defaultValue: "control" | "variant1";
|
|
161
165
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
162
166
|
param: string;
|
|
163
167
|
};
|
|
164
168
|
platform_editor_controls_shadow: {
|
|
169
|
+
values: ("control" | "variant1")[];
|
|
165
170
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
166
171
|
defaultValue: "control" | "variant1";
|
|
167
172
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
168
173
|
param: string;
|
|
169
174
|
};
|
|
170
175
|
platform_editor_insertion: {
|
|
176
|
+
values: ("control" | "variant1")[];
|
|
171
177
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
172
178
|
defaultValue: "control" | "variant1";
|
|
173
179
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -180,12 +186,14 @@ declare namespace eeTest {
|
|
|
180
186
|
param: string;
|
|
181
187
|
};
|
|
182
188
|
editor_text_highlight_orange_to_yellow: {
|
|
189
|
+
values: ("test" | "control")[];
|
|
183
190
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
184
191
|
defaultValue: "test" | "control";
|
|
185
192
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
186
193
|
param: string;
|
|
187
194
|
};
|
|
188
195
|
platform_editor_ai_proactive_ai_nudge_parameters: {
|
|
196
|
+
values: ("control" | "variant1")[];
|
|
189
197
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
190
198
|
defaultValue: "control" | "variant1";
|
|
191
199
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -204,6 +212,7 @@ declare namespace eeTest {
|
|
|
204
212
|
param: string;
|
|
205
213
|
};
|
|
206
214
|
editor_ai_inline_suggestion_date_v2: {
|
|
215
|
+
values: ("test" | "control")[];
|
|
207
216
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
208
217
|
defaultValue: "test" | "control";
|
|
209
218
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -234,6 +243,7 @@ declare namespace eeTest {
|
|
|
234
243
|
param: string;
|
|
235
244
|
};
|
|
236
245
|
editor_ai_contextual_selection_toolbar_button: {
|
|
246
|
+
values: ("test" | "control")[];
|
|
237
247
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
238
248
|
defaultValue: "test" | "control";
|
|
239
249
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -245,6 +255,12 @@ declare namespace eeTest {
|
|
|
245
255
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
246
256
|
param: string;
|
|
247
257
|
};
|
|
258
|
+
platform_editor_core_static_emotion: {
|
|
259
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
260
|
+
defaultValue: boolean;
|
|
261
|
+
productKeys?: import("./types").ProductKeys | undefined;
|
|
262
|
+
param: string;
|
|
263
|
+
};
|
|
248
264
|
}[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
|
|
249
265
|
each: (describeBody: jest.EmptyFunction) => void;
|
|
250
266
|
};
|
|
@@ -13,6 +13,9 @@ export declare function createBooleanExperiment(config: BooleanExperimentConfig)
|
|
|
13
13
|
* Helper to create a multivariate experiment configuration
|
|
14
14
|
*/
|
|
15
15
|
export declare function createMultivariateExperiment<T extends string[]>(config: MultivariateExperimentConfig<T>): {
|
|
16
|
+
values: [
|
|
17
|
+
...T
|
|
18
|
+
][number][];
|
|
16
19
|
typeGuard: (value: unknown) => value is T[number];
|
|
17
20
|
defaultValue: T[number];
|
|
18
21
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -12,6 +12,7 @@ export declare const editorExperimentsConfig: {
|
|
|
12
12
|
param: string;
|
|
13
13
|
};
|
|
14
14
|
'example-multivariate': {
|
|
15
|
+
values: ("one" | "two" | "three")[];
|
|
15
16
|
typeGuard: (value: unknown) => value is "one" | "two" | "three";
|
|
16
17
|
defaultValue: "one" | "two" | "three";
|
|
17
18
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -66,6 +67,7 @@ export declare const editorExperimentsConfig: {
|
|
|
66
67
|
param: string;
|
|
67
68
|
};
|
|
68
69
|
'platform_editor_ai-prompts-placeholder': {
|
|
70
|
+
values: ("test" | "control")[];
|
|
69
71
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
70
72
|
defaultValue: "test" | "control";
|
|
71
73
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -102,6 +104,7 @@ export declare const editorExperimentsConfig: {
|
|
|
102
104
|
param: string;
|
|
103
105
|
};
|
|
104
106
|
live_pages_graceful_edit: {
|
|
107
|
+
values: ("control" | "text-click-delayed" | "text-click-no-delay" | "initially-hide-toolbar")[];
|
|
105
108
|
typeGuard: (value: unknown) => value is "control" | "text-click-delayed" | "text-click-no-delay" | "initially-hide-toolbar";
|
|
106
109
|
defaultValue: "control" | "text-click-delayed" | "text-click-no-delay" | "initially-hide-toolbar";
|
|
107
110
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -114,18 +117,21 @@ export declare const editorExperimentsConfig: {
|
|
|
114
117
|
param: string;
|
|
115
118
|
};
|
|
116
119
|
platform_editor_controls: {
|
|
120
|
+
values: ("control" | "variant1")[];
|
|
117
121
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
118
122
|
defaultValue: "control" | "variant1";
|
|
119
123
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
120
124
|
param: string;
|
|
121
125
|
};
|
|
122
126
|
platform_editor_controls_shadow: {
|
|
127
|
+
values: ("control" | "variant1")[];
|
|
123
128
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
124
129
|
defaultValue: "control" | "variant1";
|
|
125
130
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
126
131
|
param: string;
|
|
127
132
|
};
|
|
128
133
|
platform_editor_insertion: {
|
|
134
|
+
values: ("control" | "variant1")[];
|
|
129
135
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
130
136
|
defaultValue: "control" | "variant1";
|
|
131
137
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -138,12 +144,14 @@ export declare const editorExperimentsConfig: {
|
|
|
138
144
|
param: string;
|
|
139
145
|
};
|
|
140
146
|
editor_text_highlight_orange_to_yellow: {
|
|
147
|
+
values: ("test" | "control")[];
|
|
141
148
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
142
149
|
defaultValue: "test" | "control";
|
|
143
150
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
144
151
|
param: string;
|
|
145
152
|
};
|
|
146
153
|
platform_editor_ai_proactive_ai_nudge_parameters: {
|
|
154
|
+
values: ("control" | "variant1")[];
|
|
147
155
|
typeGuard: (value: unknown) => value is "control" | "variant1";
|
|
148
156
|
defaultValue: "control" | "variant1";
|
|
149
157
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -162,6 +170,7 @@ export declare const editorExperimentsConfig: {
|
|
|
162
170
|
param: string;
|
|
163
171
|
};
|
|
164
172
|
editor_ai_inline_suggestion_date_v2: {
|
|
173
|
+
values: ("test" | "control")[];
|
|
165
174
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
166
175
|
defaultValue: "test" | "control";
|
|
167
176
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -192,6 +201,7 @@ export declare const editorExperimentsConfig: {
|
|
|
192
201
|
param: string;
|
|
193
202
|
};
|
|
194
203
|
editor_ai_contextual_selection_toolbar_button: {
|
|
204
|
+
values: ("test" | "control")[];
|
|
195
205
|
typeGuard: (value: unknown) => value is "test" | "control";
|
|
196
206
|
defaultValue: "test" | "control";
|
|
197
207
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
@@ -203,4 +213,10 @@ export declare const editorExperimentsConfig: {
|
|
|
203
213
|
productKeys?: import("./types").ProductKeys | undefined;
|
|
204
214
|
param: string;
|
|
205
215
|
};
|
|
216
|
+
platform_editor_core_static_emotion: {
|
|
217
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
218
|
+
defaultValue: boolean;
|
|
219
|
+
productKeys?: import("./types").ProductKeys | undefined;
|
|
220
|
+
param: string;
|
|
221
|
+
};
|
|
206
222
|
};
|
|
@@ -41,6 +41,7 @@ export declare let _overrides: Partial<{
|
|
|
41
41
|
platform_renderer_fix_analytics_memo_callback: boolean;
|
|
42
42
|
editor_ai_contextual_selection_toolbar_button: "test" | "control";
|
|
43
43
|
editor_ai_cmd_palette_remove_retry: boolean;
|
|
44
|
+
platform_editor_core_static_emotion: boolean;
|
|
44
45
|
}>;
|
|
45
46
|
export declare let _paramOverrides: EditorExperimentParamOverrides;
|
|
46
47
|
export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
|
|
@@ -7,8 +7,12 @@ export type ExperimentConfigValue = {
|
|
|
7
7
|
productKeys?: ProductKeys;
|
|
8
8
|
param: string;
|
|
9
9
|
typeGuard: (value: unknown) => boolean;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
} & ({
|
|
11
|
+
defaultValue: boolean;
|
|
12
|
+
} | {
|
|
13
|
+
defaultValue: string;
|
|
14
|
+
values: string[];
|
|
15
|
+
});
|
|
12
16
|
export type BooleanExperimentConfig = {
|
|
13
17
|
productKeys?: ProductKeys;
|
|
14
18
|
param: string;
|
package/package.json
CHANGED