@atlaskit/tmp-editor-statsig 4.6.0 → 4.6.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 +9 -0
- package/dist/cjs/experiment-builders.js +31 -0
- package/dist/cjs/experiments-config.js +4 -3
- package/dist/cjs/types.js +1 -0
- package/dist/es2019/experiment-builders.js +22 -0
- package/dist/es2019/experiments-config.js +4 -3
- package/dist/es2019/types.js +0 -0
- package/dist/esm/experiment-builders.js +23 -0
- package/dist/esm/experiments-config.js +4 -3
- package/dist/esm/types.js +0 -0
- package/dist/types/editor-experiments-test-utils.d.ts +2 -2
- package/dist/types/experiment-builders.d.ts +9 -0
- package/dist/types/experiments-config.d.ts +1 -1
- package/dist/types/setup.d.ts +1 -1
- package/dist/types/types.d.ts +22 -0
- package/dist/types-ts4.5/editor-experiments-test-utils.d.ts +2 -2
- package/dist/types-ts4.5/experiment-builders.d.ts +9 -0
- package/dist/types-ts4.5/experiments-config.d.ts +1 -1
- package/dist/types-ts4.5/setup.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +22 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 4.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#134378](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/134378)
|
|
8
|
+
[`210a48c778086`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/210a48c778086) -
|
|
9
|
+
EDITOR-546 Cleaned up platform_editor_cmd_a_progressively_select_nodes to revert to control
|
|
10
|
+
behaviour.
|
|
11
|
+
|
|
3
12
|
## 4.6.0
|
|
4
13
|
|
|
5
14
|
### 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
|
+
}
|
|
@@ -255,10 +255,11 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
255
255
|
typeGuard: (0, _typeGuards.oneOf)(['off', 'fallback-small', 'fallback-large']),
|
|
256
256
|
defaultValue: 'off'
|
|
257
257
|
},
|
|
258
|
-
// Added 2025-
|
|
259
|
-
|
|
258
|
+
// Added 2025-04-01
|
|
259
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_vanilla_dom/setup
|
|
260
|
+
platform_editor_vanilla_dom: {
|
|
260
261
|
productKeys: {
|
|
261
|
-
confluence: '
|
|
262
|
+
confluence: 'platform_editor_vanilla_dom'
|
|
262
263
|
},
|
|
263
264
|
param: 'isEnabled',
|
|
264
265
|
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
|
+
}
|
|
@@ -249,10 +249,11 @@ export const editorExperimentsConfig = {
|
|
|
249
249
|
typeGuard: oneOf(['off', 'fallback-small', 'fallback-large']),
|
|
250
250
|
defaultValue: 'off'
|
|
251
251
|
},
|
|
252
|
-
// Added 2025-
|
|
253
|
-
|
|
252
|
+
// Added 2025-04-01
|
|
253
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_vanilla_dom/setup
|
|
254
|
+
platform_editor_vanilla_dom: {
|
|
254
255
|
productKeys: {
|
|
255
|
-
confluence: '
|
|
256
|
+
confluence: 'platform_editor_vanilla_dom'
|
|
256
257
|
},
|
|
257
258
|
param: 'isEnabled',
|
|
258
259
|
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
|
+
}
|
|
@@ -249,10 +249,11 @@ export var editorExperimentsConfig = {
|
|
|
249
249
|
typeGuard: oneOf(['off', 'fallback-small', 'fallback-large']),
|
|
250
250
|
defaultValue: 'off'
|
|
251
251
|
},
|
|
252
|
-
// Added 2025-
|
|
253
|
-
|
|
252
|
+
// Added 2025-04-01
|
|
253
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_vanilla_dom/setup
|
|
254
|
+
platform_editor_vanilla_dom: {
|
|
254
255
|
productKeys: {
|
|
255
|
-
confluence: '
|
|
256
|
+
confluence: 'platform_editor_vanilla_dom'
|
|
256
257
|
},
|
|
257
258
|
param: 'isEnabled',
|
|
258
259
|
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" | "nested-dnd" | "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" | "
|
|
48
|
+
var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "nested-dnd" | "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: {
|
|
@@ -256,7 +256,7 @@ declare namespace eeTest {
|
|
|
256
256
|
typeGuard: (value: unknown) => value is "off" | "fallback-small" | "fallback-large";
|
|
257
257
|
defaultValue: "off" | "fallback-small" | "fallback-large";
|
|
258
258
|
};
|
|
259
|
-
|
|
259
|
+
platform_editor_vanilla_dom: {
|
|
260
260
|
productKeys: {
|
|
261
261
|
confluence: string;
|
|
262
262
|
};
|
|
@@ -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;
|
|
@@ -215,7 +215,7 @@ export declare const editorExperimentsConfig: {
|
|
|
215
215
|
typeGuard: (value: unknown) => value is "off" | "fallback-small" | "fallback-large";
|
|
216
216
|
defaultValue: "off" | "fallback-small" | "fallback-large";
|
|
217
217
|
};
|
|
218
|
-
|
|
218
|
+
platform_editor_vanilla_dom: {
|
|
219
219
|
productKeys: {
|
|
220
220
|
confluence: string;
|
|
221
221
|
};
|
package/dist/types/setup.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare let _overrides: Partial<{
|
|
|
34
34
|
editor_ai_inline_suggestion_date: "test" | "control";
|
|
35
35
|
platform_editor_insertion: "control" | "variant1";
|
|
36
36
|
platform_editor_inline_node_virtualization: "off" | "fallback-small" | "fallback-large";
|
|
37
|
-
|
|
37
|
+
platform_editor_vanilla_dom: boolean;
|
|
38
38
|
editor_text_highlight_orange_to_yellow: "test" | "control";
|
|
39
39
|
platform_editor_ai_proactive_ai_nudge_score: "control" | "variant1";
|
|
40
40
|
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" | "nested-dnd" | "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" | "
|
|
48
|
+
var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "nested-dnd" | "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: {
|
|
@@ -256,7 +256,7 @@ declare namespace eeTest {
|
|
|
256
256
|
typeGuard: (value: unknown) => value is "off" | "fallback-small" | "fallback-large";
|
|
257
257
|
defaultValue: "off" | "fallback-small" | "fallback-large";
|
|
258
258
|
};
|
|
259
|
-
|
|
259
|
+
platform_editor_vanilla_dom: {
|
|
260
260
|
productKeys: {
|
|
261
261
|
confluence: string;
|
|
262
262
|
};
|
|
@@ -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;
|
|
@@ -215,7 +215,7 @@ export declare const editorExperimentsConfig: {
|
|
|
215
215
|
typeGuard: (value: unknown) => value is "off" | "fallback-small" | "fallback-large";
|
|
216
216
|
defaultValue: "off" | "fallback-small" | "fallback-large";
|
|
217
217
|
};
|
|
218
|
-
|
|
218
|
+
platform_editor_vanilla_dom: {
|
|
219
219
|
productKeys: {
|
|
220
220
|
confluence: string;
|
|
221
221
|
};
|
|
@@ -34,7 +34,7 @@ export declare let _overrides: Partial<{
|
|
|
34
34
|
editor_ai_inline_suggestion_date: "test" | "control";
|
|
35
35
|
platform_editor_insertion: "control" | "variant1";
|
|
36
36
|
platform_editor_inline_node_virtualization: "off" | "fallback-small" | "fallback-large";
|
|
37
|
-
|
|
37
|
+
platform_editor_vanilla_dom: boolean;
|
|
38
38
|
editor_text_highlight_orange_to_yellow: "test" | "control";
|
|
39
39
|
platform_editor_ai_proactive_ai_nudge_score: "control" | "variant1";
|
|
40
40
|
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