@atlaskit/tmp-editor-statsig 2.3.1 → 2.4.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 +20 -0
- package/dist/cjs/experiments-config.js +20 -0
- package/dist/es2019/experiments-config.js +20 -0
- package/dist/esm/experiments-config.js +20 -0
- package/dist/types/editor-experiments-test-utils.d.ts +17 -1
- package/dist/types/experiments-config.d.ts +16 -0
- package/dist/types/setup.d.ts +2 -0
- package/dist/types-ts4.5/editor-experiments-test-utils.d.ts +17 -1
- package/dist/types-ts4.5/experiments-config.d.ts +16 -0
- package/dist/types-ts4.5/setup.d.ts +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 2.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#152099](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152099)
|
|
8
|
+
[`e7d3d5459e447`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e7d3d5459e447) -
|
|
9
|
+
Add optimised-apply-dnd
|
|
10
|
+
- [#151154](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151154)
|
|
11
|
+
[`c10924372260d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c10924372260d) -
|
|
12
|
+
minor bump to ensure previously added experiments are picked up by products
|
|
13
|
+
|
|
14
|
+
## 2.3.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#151153](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151153)
|
|
19
|
+
[`b08ca9cb58898`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b08ca9cb58898) -
|
|
20
|
+
Added a new proactive ai prosemirror plugin to the editor ai plugin. This plugin will be used for
|
|
21
|
+
generating recommendations using AI and providing them to the user for inserting
|
|
22
|
+
|
|
3
23
|
## 2.3.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -246,6 +246,16 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
246
246
|
typeGuard: (0, _typeGuards.oneOf)(['control', 'leading', 'trailing']),
|
|
247
247
|
defaultValue: 'control'
|
|
248
248
|
},
|
|
249
|
+
// Added 2024-10-03
|
|
250
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/editor_ai_-_proactive_ai_improve_writing/setup
|
|
251
|
+
'editor_ai_-_proactive_ai_improve_writing': {
|
|
252
|
+
productKeys: {
|
|
253
|
+
confluence: 'editor_ai_-_proactive_ai_improve_writing'
|
|
254
|
+
},
|
|
255
|
+
param: 'cohort',
|
|
256
|
+
typeGuard: (0, _typeGuards.oneOf)(['control', 'test']),
|
|
257
|
+
defaultValue: 'control'
|
|
258
|
+
},
|
|
249
259
|
// Added 2024-10-04
|
|
250
260
|
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_typography_migration_ugc/setup
|
|
251
261
|
typography_migration_ugc: {
|
|
@@ -255,5 +265,15 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
255
265
|
param: 'isEnabled',
|
|
256
266
|
typeGuard: _typeGuards.isBoolean,
|
|
257
267
|
defaultValue: false
|
|
268
|
+
},
|
|
269
|
+
// Added 2024-10-06
|
|
270
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_element_dnd_apply_optimisation
|
|
271
|
+
'optimised-apply-dnd': {
|
|
272
|
+
productKeys: {
|
|
273
|
+
confluence: 'platform_editor_element_dnd_apply_optimisation'
|
|
274
|
+
},
|
|
275
|
+
param: 'isEnabled',
|
|
276
|
+
typeGuard: _typeGuards.isBoolean,
|
|
277
|
+
defaultValue: false
|
|
258
278
|
}
|
|
259
279
|
};
|
|
@@ -240,6 +240,16 @@ export const editorExperimentsConfig = {
|
|
|
240
240
|
typeGuard: oneOf(['control', 'leading', 'trailing']),
|
|
241
241
|
defaultValue: 'control'
|
|
242
242
|
},
|
|
243
|
+
// Added 2024-10-03
|
|
244
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/editor_ai_-_proactive_ai_improve_writing/setup
|
|
245
|
+
'editor_ai_-_proactive_ai_improve_writing': {
|
|
246
|
+
productKeys: {
|
|
247
|
+
confluence: 'editor_ai_-_proactive_ai_improve_writing'
|
|
248
|
+
},
|
|
249
|
+
param: 'cohort',
|
|
250
|
+
typeGuard: oneOf(['control', 'test']),
|
|
251
|
+
defaultValue: 'control'
|
|
252
|
+
},
|
|
243
253
|
// Added 2024-10-04
|
|
244
254
|
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_typography_migration_ugc/setup
|
|
245
255
|
typography_migration_ugc: {
|
|
@@ -249,5 +259,15 @@ export const editorExperimentsConfig = {
|
|
|
249
259
|
param: 'isEnabled',
|
|
250
260
|
typeGuard: isBoolean,
|
|
251
261
|
defaultValue: false
|
|
262
|
+
},
|
|
263
|
+
// Added 2024-10-06
|
|
264
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_element_dnd_apply_optimisation
|
|
265
|
+
'optimised-apply-dnd': {
|
|
266
|
+
productKeys: {
|
|
267
|
+
confluence: 'platform_editor_element_dnd_apply_optimisation'
|
|
268
|
+
},
|
|
269
|
+
param: 'isEnabled',
|
|
270
|
+
typeGuard: isBoolean,
|
|
271
|
+
defaultValue: false
|
|
252
272
|
}
|
|
253
273
|
};
|
|
@@ -240,6 +240,16 @@ export var editorExperimentsConfig = {
|
|
|
240
240
|
typeGuard: oneOf(['control', 'leading', 'trailing']),
|
|
241
241
|
defaultValue: 'control'
|
|
242
242
|
},
|
|
243
|
+
// Added 2024-10-03
|
|
244
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/editor_ai_-_proactive_ai_improve_writing/setup
|
|
245
|
+
'editor_ai_-_proactive_ai_improve_writing': {
|
|
246
|
+
productKeys: {
|
|
247
|
+
confluence: 'editor_ai_-_proactive_ai_improve_writing'
|
|
248
|
+
},
|
|
249
|
+
param: 'cohort',
|
|
250
|
+
typeGuard: oneOf(['control', 'test']),
|
|
251
|
+
defaultValue: 'control'
|
|
252
|
+
},
|
|
243
253
|
// Added 2024-10-04
|
|
244
254
|
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_typography_migration_ugc/setup
|
|
245
255
|
typography_migration_ugc: {
|
|
@@ -249,5 +259,15 @@ export var editorExperimentsConfig = {
|
|
|
249
259
|
param: 'isEnabled',
|
|
250
260
|
typeGuard: isBoolean,
|
|
251
261
|
defaultValue: false
|
|
262
|
+
},
|
|
263
|
+
// Added 2024-10-06
|
|
264
|
+
// https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_element_dnd_apply_optimisation
|
|
265
|
+
'optimised-apply-dnd': {
|
|
266
|
+
productKeys: {
|
|
267
|
+
confluence: 'platform_editor_element_dnd_apply_optimisation'
|
|
268
|
+
},
|
|
269
|
+
param: 'isEnabled',
|
|
270
|
+
typeGuard: isBoolean,
|
|
271
|
+
defaultValue: false
|
|
252
272
|
}
|
|
253
273
|
};
|
|
@@ -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" | "basic-text-transformations" | "platform_editor_ai_command_palate_improvement" | "dnd-input-performance-optimisation" | "element-level-templates" | "add-media-from-url" | "nested-dnd" | "table-nested-dnd" | "insert-menu-in-right-rail" | "platform_editor_empty_line_prompt" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_editor_ai_ai_button_block_elements" | "platform_renderer_table_sticky_scrollbar" | "nest-media-and-codeblock-in-quote" | "nested-expand-in-expand" | "platform_editor_ai_command_palette_post_ga" | "platform_editor_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "platform_editor_ai_additional_editor_prompts" | "platform_editor_ai_onboarding" | "comment_on_bodied_extensions" | "platform_editor_ai_floating_toolbar_v2" | "typography_migration_ugc">(experimentName: ExperimentName, describeName: string) => {
|
|
48
|
+
var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "basic-text-transformations" | "platform_editor_ai_command_palate_improvement" | "dnd-input-performance-optimisation" | "element-level-templates" | "add-media-from-url" | "nested-dnd" | "table-nested-dnd" | "insert-menu-in-right-rail" | "platform_editor_empty_line_prompt" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_editor_ai_ai_button_block_elements" | "platform_renderer_table_sticky_scrollbar" | "nest-media-and-codeblock-in-quote" | "nested-expand-in-expand" | "platform_editor_ai_command_palette_post_ga" | "platform_editor_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "platform_editor_ai_additional_editor_prompts" | "platform_editor_ai_onboarding" | "comment_on_bodied_extensions" | "platform_editor_ai_floating_toolbar_v2" | "editor_ai_-_proactive_ai_improve_writing" | "typography_migration_ugc" | "optimised-apply-dnd">(experimentName: ExperimentName, describeName: string) => {
|
|
49
49
|
variant: (value: {
|
|
50
50
|
'example-boolean': {
|
|
51
51
|
productKeys: {
|
|
@@ -248,6 +248,14 @@ declare namespace eeTest {
|
|
|
248
248
|
typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
|
|
249
249
|
defaultValue: "control" | "leading" | "trailing";
|
|
250
250
|
};
|
|
251
|
+
'editor_ai_-_proactive_ai_improve_writing': {
|
|
252
|
+
productKeys: {
|
|
253
|
+
confluence: string;
|
|
254
|
+
};
|
|
255
|
+
param: string;
|
|
256
|
+
typeGuard: (value: unknown) => value is "test" | "control";
|
|
257
|
+
defaultValue: "test" | "control";
|
|
258
|
+
};
|
|
251
259
|
typography_migration_ugc: {
|
|
252
260
|
productKeys: {
|
|
253
261
|
confluence: string;
|
|
@@ -256,6 +264,14 @@ declare namespace eeTest {
|
|
|
256
264
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
257
265
|
defaultValue: boolean;
|
|
258
266
|
};
|
|
267
|
+
'optimised-apply-dnd': {
|
|
268
|
+
productKeys: {
|
|
269
|
+
confluence: string;
|
|
270
|
+
};
|
|
271
|
+
param: string;
|
|
272
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
273
|
+
defaultValue: boolean;
|
|
274
|
+
};
|
|
259
275
|
}[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
|
|
260
276
|
each: (describeBody: jest.EmptyFunction) => void;
|
|
261
277
|
};
|
|
@@ -207,6 +207,14 @@ export declare const editorExperimentsConfig: {
|
|
|
207
207
|
typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
|
|
208
208
|
defaultValue: "control" | "leading" | "trailing";
|
|
209
209
|
};
|
|
210
|
+
'editor_ai_-_proactive_ai_improve_writing': {
|
|
211
|
+
productKeys: {
|
|
212
|
+
confluence: string;
|
|
213
|
+
};
|
|
214
|
+
param: string;
|
|
215
|
+
typeGuard: (value: unknown) => value is "test" | "control";
|
|
216
|
+
defaultValue: "test" | "control";
|
|
217
|
+
};
|
|
210
218
|
typography_migration_ugc: {
|
|
211
219
|
productKeys: {
|
|
212
220
|
confluence: string;
|
|
@@ -215,4 +223,12 @@ export declare const editorExperimentsConfig: {
|
|
|
215
223
|
typeGuard: typeof isBoolean;
|
|
216
224
|
defaultValue: boolean;
|
|
217
225
|
};
|
|
226
|
+
'optimised-apply-dnd': {
|
|
227
|
+
productKeys: {
|
|
228
|
+
confluence: string;
|
|
229
|
+
};
|
|
230
|
+
param: string;
|
|
231
|
+
typeGuard: typeof isBoolean;
|
|
232
|
+
defaultValue: boolean;
|
|
233
|
+
};
|
|
218
234
|
};
|
package/dist/types/setup.d.ts
CHANGED
|
@@ -28,7 +28,9 @@ export declare let _overrides: Partial<{
|
|
|
28
28
|
platform_editor_ai_onboarding: "test" | "control";
|
|
29
29
|
comment_on_bodied_extensions: boolean;
|
|
30
30
|
platform_editor_ai_floating_toolbar_v2: "control" | "leading" | "trailing";
|
|
31
|
+
'editor_ai_-_proactive_ai_improve_writing': "test" | "control";
|
|
31
32
|
typography_migration_ugc: boolean;
|
|
33
|
+
'optimised-apply-dnd': boolean;
|
|
32
34
|
}>;
|
|
33
35
|
export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
|
|
34
36
|
/**
|
|
@@ -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" | "basic-text-transformations" | "platform_editor_ai_command_palate_improvement" | "dnd-input-performance-optimisation" | "element-level-templates" | "add-media-from-url" | "nested-dnd" | "table-nested-dnd" | "insert-menu-in-right-rail" | "platform_editor_empty_line_prompt" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_editor_ai_ai_button_block_elements" | "platform_renderer_table_sticky_scrollbar" | "nest-media-and-codeblock-in-quote" | "nested-expand-in-expand" | "platform_editor_ai_command_palette_post_ga" | "platform_editor_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "platform_editor_ai_additional_editor_prompts" | "platform_editor_ai_onboarding" | "comment_on_bodied_extensions" | "platform_editor_ai_floating_toolbar_v2" | "typography_migration_ugc">(experimentName: ExperimentName, describeName: string) => {
|
|
48
|
+
var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "basic-text-transformations" | "platform_editor_ai_command_palate_improvement" | "dnd-input-performance-optimisation" | "element-level-templates" | "add-media-from-url" | "nested-dnd" | "table-nested-dnd" | "insert-menu-in-right-rail" | "platform_editor_empty_line_prompt" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_editor_ai_ai_button_block_elements" | "platform_renderer_table_sticky_scrollbar" | "nest-media-and-codeblock-in-quote" | "nested-expand-in-expand" | "platform_editor_ai_command_palette_post_ga" | "platform_editor_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "platform_editor_ai_additional_editor_prompts" | "platform_editor_ai_onboarding" | "comment_on_bodied_extensions" | "platform_editor_ai_floating_toolbar_v2" | "editor_ai_-_proactive_ai_improve_writing" | "typography_migration_ugc" | "optimised-apply-dnd">(experimentName: ExperimentName, describeName: string) => {
|
|
49
49
|
variant: (value: {
|
|
50
50
|
'example-boolean': {
|
|
51
51
|
productKeys: {
|
|
@@ -248,6 +248,14 @@ declare namespace eeTest {
|
|
|
248
248
|
typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
|
|
249
249
|
defaultValue: "control" | "leading" | "trailing";
|
|
250
250
|
};
|
|
251
|
+
'editor_ai_-_proactive_ai_improve_writing': {
|
|
252
|
+
productKeys: {
|
|
253
|
+
confluence: string;
|
|
254
|
+
};
|
|
255
|
+
param: string;
|
|
256
|
+
typeGuard: (value: unknown) => value is "test" | "control";
|
|
257
|
+
defaultValue: "test" | "control";
|
|
258
|
+
};
|
|
251
259
|
typography_migration_ugc: {
|
|
252
260
|
productKeys: {
|
|
253
261
|
confluence: string;
|
|
@@ -256,6 +264,14 @@ declare namespace eeTest {
|
|
|
256
264
|
typeGuard: typeof import("./type-guards").isBoolean;
|
|
257
265
|
defaultValue: boolean;
|
|
258
266
|
};
|
|
267
|
+
'optimised-apply-dnd': {
|
|
268
|
+
productKeys: {
|
|
269
|
+
confluence: string;
|
|
270
|
+
};
|
|
271
|
+
param: string;
|
|
272
|
+
typeGuard: typeof import("./type-guards").isBoolean;
|
|
273
|
+
defaultValue: boolean;
|
|
274
|
+
};
|
|
259
275
|
}[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
|
|
260
276
|
each: (describeBody: jest.EmptyFunction) => void;
|
|
261
277
|
};
|
|
@@ -207,6 +207,14 @@ export declare const editorExperimentsConfig: {
|
|
|
207
207
|
typeGuard: (value: unknown) => value is "control" | "leading" | "trailing";
|
|
208
208
|
defaultValue: "control" | "leading" | "trailing";
|
|
209
209
|
};
|
|
210
|
+
'editor_ai_-_proactive_ai_improve_writing': {
|
|
211
|
+
productKeys: {
|
|
212
|
+
confluence: string;
|
|
213
|
+
};
|
|
214
|
+
param: string;
|
|
215
|
+
typeGuard: (value: unknown) => value is "test" | "control";
|
|
216
|
+
defaultValue: "test" | "control";
|
|
217
|
+
};
|
|
210
218
|
typography_migration_ugc: {
|
|
211
219
|
productKeys: {
|
|
212
220
|
confluence: string;
|
|
@@ -215,4 +223,12 @@ export declare const editorExperimentsConfig: {
|
|
|
215
223
|
typeGuard: typeof isBoolean;
|
|
216
224
|
defaultValue: boolean;
|
|
217
225
|
};
|
|
226
|
+
'optimised-apply-dnd': {
|
|
227
|
+
productKeys: {
|
|
228
|
+
confluence: string;
|
|
229
|
+
};
|
|
230
|
+
param: string;
|
|
231
|
+
typeGuard: typeof isBoolean;
|
|
232
|
+
defaultValue: boolean;
|
|
233
|
+
};
|
|
218
234
|
};
|
|
@@ -28,7 +28,9 @@ export declare let _overrides: Partial<{
|
|
|
28
28
|
platform_editor_ai_onboarding: "test" | "control";
|
|
29
29
|
comment_on_bodied_extensions: boolean;
|
|
30
30
|
platform_editor_ai_floating_toolbar_v2: "control" | "leading" | "trailing";
|
|
31
|
+
'editor_ai_-_proactive_ai_improve_writing': "test" | "control";
|
|
31
32
|
typography_migration_ugc: boolean;
|
|
33
|
+
'optimised-apply-dnd': boolean;
|
|
32
34
|
}>;
|
|
33
35
|
export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
|
|
34
36
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tmp-editor-statsig",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Temp plugin to ease use of statsig feature flags until platform feature flags are available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"./editor-experiments-test-utils": "./src/editor-experiments-test-utils.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/feature-gate-js-client": "^4.
|
|
39
|
+
"@atlaskit/feature-gate-js-client": "^4.20.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|