@atlaskit/tmp-editor-statsig 2.33.0 → 2.34.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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 2.34.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#100411](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100411)
8
+ [`14499ab145534`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/14499ab145534) -
9
+ [ux] Introduces advanced code block as per:
10
+ https://hello.atlassian.net/wiki/spaces/EDITOR/pages/4632293323/Editor+RFC+063+Advanced+code+blocks.
11
+ This can be added to an existing editor preset to enrich the code block experience with syntax
12
+ highlighting and can be extended for other features via CodeMirror extensions (ie. autocompletion,
13
+ code folding etc.).
14
+ - [#102045](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102045)
15
+ [`44f96aff22dd9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/44f96aff22dd9) -
16
+ [ED-26179] clean up platform_editor_elements_dnd_nested_table
17
+
18
+ ## 2.33.1
19
+
20
+ ### Patch Changes
21
+
22
+ - [#102069](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102069)
23
+ [`3d4c9e1a85d9c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3d4c9e1a85d9c) -
24
+ Clean up platform_editor_dnd_input_performance_optimisation experiment
25
+
3
26
  ## 2.33.0
4
27
 
5
28
  ### Minor Changes
@@ -54,15 +54,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
54
54
  typeGuard: _typeGuards.isBoolean,
55
55
  defaultValue: false
56
56
  },
57
- // Added 2024-08-27
58
- 'dnd-input-performance-optimisation': {
59
- productKeys: {
60
- confluence: 'platform_editor_dnd_input_performance_optimisation'
61
- },
62
- param: 'isEnabled',
63
- typeGuard: _typeGuards.isBoolean,
64
- defaultValue: false
65
- },
66
57
  // Added 2024-08-28
67
58
  'element-level-templates': {
68
59
  productKeys: {
@@ -90,15 +81,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
90
81
  typeGuard: _typeGuards.isBoolean,
91
82
  defaultValue: false
92
83
  },
93
- // Add 2024-08-27
94
- 'table-nested-dnd': {
95
- productKeys: {
96
- confluence: 'platform_editor_elements_dnd_nested_table'
97
- },
98
- param: 'isEnabled',
99
- typeGuard: _typeGuards.isBoolean,
100
- defaultValue: false
101
- },
102
84
  // Added 2024-08-29
103
85
  'insert-menu-in-right-rail': {
104
86
  productKeys: {
@@ -309,5 +291,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
309
291
  param: 'isEnabled',
310
292
  typeGuard: _typeGuards.isBoolean,
311
293
  defaultValue: false
294
+ },
295
+ // Added 2025-01-09
296
+ platform_editor_advanced_code_blocks: {
297
+ productKeys: {
298
+ confluence: 'platform_editor_advanced_code_blocks'
299
+ },
300
+ param: 'isEnabled',
301
+ typeGuard: _typeGuards.isBoolean,
302
+ defaultValue: false
312
303
  }
313
304
  };
@@ -48,15 +48,6 @@ export const editorExperimentsConfig = {
48
48
  typeGuard: isBoolean,
49
49
  defaultValue: false
50
50
  },
51
- // Added 2024-08-27
52
- 'dnd-input-performance-optimisation': {
53
- productKeys: {
54
- confluence: 'platform_editor_dnd_input_performance_optimisation'
55
- },
56
- param: 'isEnabled',
57
- typeGuard: isBoolean,
58
- defaultValue: false
59
- },
60
51
  // Added 2024-08-28
61
52
  'element-level-templates': {
62
53
  productKeys: {
@@ -84,15 +75,6 @@ export const editorExperimentsConfig = {
84
75
  typeGuard: isBoolean,
85
76
  defaultValue: false
86
77
  },
87
- // Add 2024-08-27
88
- 'table-nested-dnd': {
89
- productKeys: {
90
- confluence: 'platform_editor_elements_dnd_nested_table'
91
- },
92
- param: 'isEnabled',
93
- typeGuard: isBoolean,
94
- defaultValue: false
95
- },
96
78
  // Added 2024-08-29
97
79
  'insert-menu-in-right-rail': {
98
80
  productKeys: {
@@ -303,5 +285,14 @@ export const editorExperimentsConfig = {
303
285
  param: 'isEnabled',
304
286
  typeGuard: isBoolean,
305
287
  defaultValue: false
288
+ },
289
+ // Added 2025-01-09
290
+ platform_editor_advanced_code_blocks: {
291
+ productKeys: {
292
+ confluence: 'platform_editor_advanced_code_blocks'
293
+ },
294
+ param: 'isEnabled',
295
+ typeGuard: isBoolean,
296
+ defaultValue: false
306
297
  }
307
298
  };
@@ -48,15 +48,6 @@ export var editorExperimentsConfig = {
48
48
  typeGuard: isBoolean,
49
49
  defaultValue: false
50
50
  },
51
- // Added 2024-08-27
52
- 'dnd-input-performance-optimisation': {
53
- productKeys: {
54
- confluence: 'platform_editor_dnd_input_performance_optimisation'
55
- },
56
- param: 'isEnabled',
57
- typeGuard: isBoolean,
58
- defaultValue: false
59
- },
60
51
  // Added 2024-08-28
61
52
  'element-level-templates': {
62
53
  productKeys: {
@@ -84,15 +75,6 @@ export var editorExperimentsConfig = {
84
75
  typeGuard: isBoolean,
85
76
  defaultValue: false
86
77
  },
87
- // Add 2024-08-27
88
- 'table-nested-dnd': {
89
- productKeys: {
90
- confluence: 'platform_editor_elements_dnd_nested_table'
91
- },
92
- param: 'isEnabled',
93
- typeGuard: isBoolean,
94
- defaultValue: false
95
- },
96
78
  // Added 2024-08-29
97
79
  'insert-menu-in-right-rail': {
98
80
  productKeys: {
@@ -303,5 +285,14 @@ export var editorExperimentsConfig = {
303
285
  param: 'isEnabled',
304
286
  typeGuard: isBoolean,
305
287
  defaultValue: false
288
+ },
289
+ // Added 2025-01-09
290
+ platform_editor_advanced_code_blocks: {
291
+ productKeys: {
292
+ confluence: 'platform_editor_advanced_code_blocks'
293
+ },
294
+ param: 'isEnabled',
295
+ typeGuard: isBoolean,
296
+ defaultValue: false
306
297
  }
307
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" | "basic-text-transformations" | "dnd-input-performance-optimisation" | "element-level-templates" | "add-media-from-url" | "nested-dnd" | "table-nested-dnd" | "insert-menu-in-right-rail" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "nest-media-and-codeblock-in-quote" | "nested-expand-in-expand" | "platform_editor_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "comment_on_bodied_extensions" | "advanced_layouts" | "support_table_in_comment_jira" | "comment_on_inline_node_spotlight" | "platform_editor_ai-prompts-placeholder" | "nested-tables-in-tables" | "platform_editor_ai_mentions_support" | "platform_editor_ai_change_tone_floating_toolbar" | "issue_view_action_items" | "contextual_formatting_toolbar" | "platform_editor_ai_1p_smart_link_unfurl_in_prompt" | "platform_editor_ai_draft_with_ai" | "platform_editor_ai_unsplash_page_header" | "expand_selection_range_to_include_inline_node" | "platform_editor_blockquote_in_text_formatting_menu">(experimentName: ExperimentName, describeName: string) => {
48
+ var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "basic-text-transformations" | "element-level-templates" | "add-media-from-url" | "nested-dnd" | "insert-menu-in-right-rail" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "nest-media-and-codeblock-in-quote" | "nested-expand-in-expand" | "platform_editor_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "comment_on_bodied_extensions" | "advanced_layouts" | "support_table_in_comment_jira" | "comment_on_inline_node_spotlight" | "platform_editor_ai-prompts-placeholder" | "nested-tables-in-tables" | "platform_editor_ai_mentions_support" | "platform_editor_ai_change_tone_floating_toolbar" | "issue_view_action_items" | "contextual_formatting_toolbar" | "platform_editor_ai_1p_smart_link_unfurl_in_prompt" | "platform_editor_ai_draft_with_ai" | "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">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  productKeys: {
@@ -80,14 +80,6 @@ declare namespace eeTest {
80
80
  typeGuard: typeof import("./type-guards").isBoolean;
81
81
  defaultValue: boolean;
82
82
  };
83
- 'dnd-input-performance-optimisation': {
84
- productKeys: {
85
- confluence: string;
86
- };
87
- param: string;
88
- typeGuard: typeof import("./type-guards").isBoolean;
89
- defaultValue: boolean;
90
- };
91
83
  'element-level-templates': {
92
84
  productKeys: {
93
85
  confluence: string;
@@ -112,14 +104,6 @@ declare namespace eeTest {
112
104
  typeGuard: typeof import("./type-guards").isBoolean;
113
105
  defaultValue: boolean;
114
106
  };
115
- 'table-nested-dnd': {
116
- productKeys: {
117
- confluence: string;
118
- };
119
- param: string;
120
- typeGuard: typeof import("./type-guards").isBoolean;
121
- defaultValue: boolean;
122
- };
123
107
  'insert-menu-in-right-rail': {
124
108
  productKeys: {
125
109
  confluence: string;
@@ -304,6 +288,14 @@ declare namespace eeTest {
304
288
  typeGuard: typeof import("./type-guards").isBoolean;
305
289
  defaultValue: boolean;
306
290
  };
291
+ platform_editor_advanced_code_blocks: {
292
+ productKeys: {
293
+ confluence: string;
294
+ };
295
+ param: string;
296
+ typeGuard: typeof import("./type-guards").isBoolean;
297
+ defaultValue: boolean;
298
+ };
307
299
  }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
308
300
  each: (describeBody: jest.EmptyFunction) => void;
309
301
  };
@@ -39,14 +39,6 @@ export declare const editorExperimentsConfig: {
39
39
  typeGuard: typeof isBoolean;
40
40
  defaultValue: boolean;
41
41
  };
42
- 'dnd-input-performance-optimisation': {
43
- productKeys: {
44
- confluence: string;
45
- };
46
- param: string;
47
- typeGuard: typeof isBoolean;
48
- defaultValue: boolean;
49
- };
50
42
  'element-level-templates': {
51
43
  productKeys: {
52
44
  confluence: string;
@@ -71,14 +63,6 @@ export declare const editorExperimentsConfig: {
71
63
  typeGuard: typeof isBoolean;
72
64
  defaultValue: boolean;
73
65
  };
74
- 'table-nested-dnd': {
75
- productKeys: {
76
- confluence: string;
77
- };
78
- param: string;
79
- typeGuard: typeof isBoolean;
80
- defaultValue: boolean;
81
- };
82
66
  'insert-menu-in-right-rail': {
83
67
  productKeys: {
84
68
  confluence: string;
@@ -263,4 +247,12 @@ export declare const editorExperimentsConfig: {
263
247
  typeGuard: typeof isBoolean;
264
248
  defaultValue: boolean;
265
249
  };
250
+ platform_editor_advanced_code_blocks: {
251
+ productKeys: {
252
+ confluence: string;
253
+ };
254
+ param: string;
255
+ typeGuard: typeof isBoolean;
256
+ defaultValue: boolean;
257
+ };
266
258
  };
@@ -7,11 +7,9 @@ export declare let _overrides: Partial<{
7
7
  'example-multivariate': "one" | "two" | "three";
8
8
  'test-new-experiments-package': boolean;
9
9
  'basic-text-transformations': boolean;
10
- 'dnd-input-performance-optimisation': boolean;
11
10
  'element-level-templates': boolean;
12
11
  'add-media-from-url': boolean;
13
12
  'nested-dnd': boolean;
14
- 'table-nested-dnd': boolean;
15
13
  'insert-menu-in-right-rail': boolean;
16
14
  support_table_in_comment: boolean;
17
15
  platform_editor_exp_lazy_node_views: boolean;
@@ -35,6 +33,7 @@ export declare let _overrides: Partial<{
35
33
  platform_editor_ai_unsplash_page_header: boolean;
36
34
  expand_selection_range_to_include_inline_node: boolean;
37
35
  platform_editor_blockquote_in_text_formatting_menu: boolean;
36
+ platform_editor_advanced_code_blocks: boolean;
38
37
  }>;
39
38
  export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
40
39
  /**
@@ -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" | "dnd-input-performance-optimisation" | "element-level-templates" | "add-media-from-url" | "nested-dnd" | "table-nested-dnd" | "insert-menu-in-right-rail" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "nest-media-and-codeblock-in-quote" | "nested-expand-in-expand" | "platform_editor_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "comment_on_bodied_extensions" | "advanced_layouts" | "support_table_in_comment_jira" | "comment_on_inline_node_spotlight" | "platform_editor_ai-prompts-placeholder" | "nested-tables-in-tables" | "platform_editor_ai_mentions_support" | "platform_editor_ai_change_tone_floating_toolbar" | "issue_view_action_items" | "contextual_formatting_toolbar" | "platform_editor_ai_1p_smart_link_unfurl_in_prompt" | "platform_editor_ai_draft_with_ai" | "platform_editor_ai_unsplash_page_header" | "expand_selection_range_to_include_inline_node" | "platform_editor_blockquote_in_text_formatting_menu">(experimentName: ExperimentName, describeName: string) => {
48
+ var describe: <ExperimentName extends "example-boolean" | "example-multivariate" | "test-new-experiments-package" | "basic-text-transformations" | "element-level-templates" | "add-media-from-url" | "nested-dnd" | "insert-menu-in-right-rail" | "support_table_in_comment" | "platform_editor_exp_lazy_node_views" | "platform_renderer_table_sticky_scrollbar" | "nest-media-and-codeblock-in-quote" | "nested-expand-in-expand" | "platform_editor_table_use_shared_state_hook" | "editor_ai_-_multi_prompts" | "comment_on_bodied_extensions" | "advanced_layouts" | "support_table_in_comment_jira" | "comment_on_inline_node_spotlight" | "platform_editor_ai-prompts-placeholder" | "nested-tables-in-tables" | "platform_editor_ai_mentions_support" | "platform_editor_ai_change_tone_floating_toolbar" | "issue_view_action_items" | "contextual_formatting_toolbar" | "platform_editor_ai_1p_smart_link_unfurl_in_prompt" | "platform_editor_ai_draft_with_ai" | "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">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  productKeys: {
@@ -80,14 +80,6 @@ declare namespace eeTest {
80
80
  typeGuard: typeof import("./type-guards").isBoolean;
81
81
  defaultValue: boolean;
82
82
  };
83
- 'dnd-input-performance-optimisation': {
84
- productKeys: {
85
- confluence: string;
86
- };
87
- param: string;
88
- typeGuard: typeof import("./type-guards").isBoolean;
89
- defaultValue: boolean;
90
- };
91
83
  'element-level-templates': {
92
84
  productKeys: {
93
85
  confluence: string;
@@ -112,14 +104,6 @@ declare namespace eeTest {
112
104
  typeGuard: typeof import("./type-guards").isBoolean;
113
105
  defaultValue: boolean;
114
106
  };
115
- 'table-nested-dnd': {
116
- productKeys: {
117
- confluence: string;
118
- };
119
- param: string;
120
- typeGuard: typeof import("./type-guards").isBoolean;
121
- defaultValue: boolean;
122
- };
123
107
  'insert-menu-in-right-rail': {
124
108
  productKeys: {
125
109
  confluence: string;
@@ -304,6 +288,14 @@ declare namespace eeTest {
304
288
  typeGuard: typeof import("./type-guards").isBoolean;
305
289
  defaultValue: boolean;
306
290
  };
291
+ platform_editor_advanced_code_blocks: {
292
+ productKeys: {
293
+ confluence: string;
294
+ };
295
+ param: string;
296
+ typeGuard: typeof import("./type-guards").isBoolean;
297
+ defaultValue: boolean;
298
+ };
307
299
  }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
308
300
  each: (describeBody: jest.EmptyFunction) => void;
309
301
  };
@@ -39,14 +39,6 @@ export declare const editorExperimentsConfig: {
39
39
  typeGuard: typeof isBoolean;
40
40
  defaultValue: boolean;
41
41
  };
42
- 'dnd-input-performance-optimisation': {
43
- productKeys: {
44
- confluence: string;
45
- };
46
- param: string;
47
- typeGuard: typeof isBoolean;
48
- defaultValue: boolean;
49
- };
50
42
  'element-level-templates': {
51
43
  productKeys: {
52
44
  confluence: string;
@@ -71,14 +63,6 @@ export declare const editorExperimentsConfig: {
71
63
  typeGuard: typeof isBoolean;
72
64
  defaultValue: boolean;
73
65
  };
74
- 'table-nested-dnd': {
75
- productKeys: {
76
- confluence: string;
77
- };
78
- param: string;
79
- typeGuard: typeof isBoolean;
80
- defaultValue: boolean;
81
- };
82
66
  'insert-menu-in-right-rail': {
83
67
  productKeys: {
84
68
  confluence: string;
@@ -263,4 +247,12 @@ export declare const editorExperimentsConfig: {
263
247
  typeGuard: typeof isBoolean;
264
248
  defaultValue: boolean;
265
249
  };
250
+ platform_editor_advanced_code_blocks: {
251
+ productKeys: {
252
+ confluence: string;
253
+ };
254
+ param: string;
255
+ typeGuard: typeof isBoolean;
256
+ defaultValue: boolean;
257
+ };
266
258
  };
@@ -7,11 +7,9 @@ export declare let _overrides: Partial<{
7
7
  'example-multivariate': "one" | "two" | "three";
8
8
  'test-new-experiments-package': boolean;
9
9
  'basic-text-transformations': boolean;
10
- 'dnd-input-performance-optimisation': boolean;
11
10
  'element-level-templates': boolean;
12
11
  'add-media-from-url': boolean;
13
12
  'nested-dnd': boolean;
14
- 'table-nested-dnd': boolean;
15
13
  'insert-menu-in-right-rail': boolean;
16
14
  support_table_in_comment: boolean;
17
15
  platform_editor_exp_lazy_node_views: boolean;
@@ -35,6 +33,7 @@ export declare let _overrides: Partial<{
35
33
  platform_editor_ai_unsplash_page_header: boolean;
36
34
  expand_selection_range_to_include_inline_node: boolean;
37
35
  platform_editor_blockquote_in_text_formatting_menu: boolean;
36
+ platform_editor_advanced_code_blocks: boolean;
38
37
  }>;
39
38
  export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
40
39
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "2.33.0",
3
+ "version": "2.34.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",