@atlaskit/tmp-editor-statsig 4.11.0 → 4.12.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,21 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 4.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#142955](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142955)
8
+ [`4eda8a13e23ba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4eda8a13e23ba) -
9
+ [https://product-fabric.atlassian.net/browse/ED-27627](ED-27627) - implement editor
10
+ `featureFlagsPlugin` options creation inside `@atlassian/confluence-presets` package
11
+
12
+ ### Patch Changes
13
+
14
+ - [#139698](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139698)
15
+ [`cf8ea53ed0264`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cf8ea53ed0264) -
16
+ Clean-up nested expand feature gate
17
+ - Updated dependencies
18
+
3
19
  ## 4.11.0
4
20
 
5
21
  ### Minor Changes
@@ -72,16 +72,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
72
72
  typeGuard: _typeGuards.isBoolean,
73
73
  defaultValue: false
74
74
  },
75
- // Added 2024-09-18
76
- // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_nest_nested_expand_in_expand/setup
77
- 'nested-expand-in-expand': {
78
- productKeys: {
79
- confluence: 'platform_editor_nest_nested_expand_in_expand'
80
- },
81
- param: 'isEnabled',
82
- typeGuard: _typeGuards.isBoolean,
83
- defaultValue: false
84
- },
85
75
  // Added 2024-10-01
86
76
  comment_on_bodied_extensions: {
87
77
  productKeys: {
@@ -293,5 +283,23 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
293
283
  param: 'cohort',
294
284
  typeGuard: (0, _typeGuards.oneOf)(['control', 'test']),
295
285
  defaultValue: 'control'
286
+ },
287
+ // Added 2025-04-17
288
+ platform_editor_tables_drag_and_drop: {
289
+ productKeys: {
290
+ confluence: 'platform_editor_tables_drag_and_drop'
291
+ },
292
+ param: 'isEnabled',
293
+ typeGuard: _typeGuards.isBoolean,
294
+ defaultValue: false
295
+ },
296
+ // Added 2025-04-17
297
+ platform_editor_tables_table_selector: {
298
+ productKeys: {
299
+ confluence: 'platform_editor_tables_table_selector'
300
+ },
301
+ param: 'isEnabled',
302
+ typeGuard: _typeGuards.isBoolean,
303
+ defaultValue: false
296
304
  }
297
305
  };
@@ -66,16 +66,6 @@ export const editorExperimentsConfig = {
66
66
  typeGuard: isBoolean,
67
67
  defaultValue: false
68
68
  },
69
- // Added 2024-09-18
70
- // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_nest_nested_expand_in_expand/setup
71
- 'nested-expand-in-expand': {
72
- productKeys: {
73
- confluence: 'platform_editor_nest_nested_expand_in_expand'
74
- },
75
- param: 'isEnabled',
76
- typeGuard: isBoolean,
77
- defaultValue: false
78
- },
79
69
  // Added 2024-10-01
80
70
  comment_on_bodied_extensions: {
81
71
  productKeys: {
@@ -287,5 +277,23 @@ export const editorExperimentsConfig = {
287
277
  param: 'cohort',
288
278
  typeGuard: oneOf(['control', 'test']),
289
279
  defaultValue: 'control'
280
+ },
281
+ // Added 2025-04-17
282
+ platform_editor_tables_drag_and_drop: {
283
+ productKeys: {
284
+ confluence: 'platform_editor_tables_drag_and_drop'
285
+ },
286
+ param: 'isEnabled',
287
+ typeGuard: isBoolean,
288
+ defaultValue: false
289
+ },
290
+ // Added 2025-04-17
291
+ platform_editor_tables_table_selector: {
292
+ productKeys: {
293
+ confluence: 'platform_editor_tables_table_selector'
294
+ },
295
+ param: 'isEnabled',
296
+ typeGuard: isBoolean,
297
+ defaultValue: false
290
298
  }
291
299
  };
@@ -66,16 +66,6 @@ export var editorExperimentsConfig = {
66
66
  typeGuard: isBoolean,
67
67
  defaultValue: false
68
68
  },
69
- // Added 2024-09-18
70
- // https://console.statsig.com/LqivKg6ADZZaGczRfBKfX/experiments/platform_editor_nest_nested_expand_in_expand/setup
71
- 'nested-expand-in-expand': {
72
- productKeys: {
73
- confluence: 'platform_editor_nest_nested_expand_in_expand'
74
- },
75
- param: 'isEnabled',
76
- typeGuard: isBoolean,
77
- defaultValue: false
78
- },
79
69
  // Added 2024-10-01
80
70
  comment_on_bodied_extensions: {
81
71
  productKeys: {
@@ -287,5 +277,23 @@ export var editorExperimentsConfig = {
287
277
  param: 'cohort',
288
278
  typeGuard: oneOf(['control', 'test']),
289
279
  defaultValue: 'control'
280
+ },
281
+ // Added 2025-04-17
282
+ platform_editor_tables_drag_and_drop: {
283
+ productKeys: {
284
+ confluence: 'platform_editor_tables_drag_and_drop'
285
+ },
286
+ param: 'isEnabled',
287
+ typeGuard: isBoolean,
288
+ defaultValue: false
289
+ },
290
+ // Added 2025-04-17
291
+ platform_editor_tables_table_selector: {
292
+ productKeys: {
293
+ confluence: 'platform_editor_tables_table_selector'
294
+ },
295
+ param: 'isEnabled',
296
+ typeGuard: isBoolean,
297
+ defaultValue: false
290
298
  }
291
299
  };
@@ -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" | "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" | "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_nested_non_bodied_macros" | "platform_editor_insertion" | "platform_editor_inline_node_virtualization" | "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">(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_nested_non_bodied_macros" | "platform_editor_insertion" | "platform_editor_inline_node_virtualization" | "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">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  productKeys: {
@@ -96,14 +96,6 @@ declare namespace eeTest {
96
96
  typeGuard: typeof import("./type-guards").isBoolean;
97
97
  defaultValue: boolean;
98
98
  };
99
- 'nested-expand-in-expand': {
100
- productKeys: {
101
- confluence: string;
102
- };
103
- param: string;
104
- typeGuard: typeof import("./type-guards").isBoolean;
105
- defaultValue: boolean;
106
- };
107
99
  comment_on_bodied_extensions: {
108
100
  productKeys: {
109
101
  confluence: string;
@@ -134,6 +126,31 @@ declare namespace eeTest {
134
126
  };
135
127
  param: string;
136
128
  typeGuard: typeof import("./type-guards").isBoolean;
129
+ /**
130
+ * eeTest.describe() Wrapper utility for describe() that runs a test with a editor experiment overides.
131
+ *
132
+ * @example Single experiment
133
+ * ```ts
134
+ * eeTest.describe('Description of test "suite" containing nested suites and tests.', { 'example-boolean': true }, () => {
135
+ * it('should do the thing', () => {
136
+ * expect(editorExperiment('example-boolean', true)).toBe(true);
137
+ * });
138
+ * });
139
+ * ```
140
+ *
141
+ *
142
+ * @example Multiple experiment
143
+ * ```ts
144
+ * eeTest.describe('Description of test "suite" containing nested suites and tests.', { 'example-boolean': true, 'example-multivariate': 'three' }, () => {
145
+ * it('should do the thing', () => {
146
+ * expect(editorExperiment('example-boolean', true)).toBe(true);
147
+ * });
148
+ * });
149
+ * ```
150
+ *
151
+ * API based on next gen ffTest API
152
+ * - https://hello.atlassian.net/wiki/spaces/AF/pages/2569505829/Task+Testing+your+feature+flag+in+platform+and+product#Next-Generation-API-%E2%9C%A8
153
+ */
137
154
  defaultValue: boolean;
138
155
  };
139
156
  'platform_editor_ai-prompts-placeholder': {
@@ -288,6 +305,22 @@ declare namespace eeTest {
288
305
  typeGuard: (value: unknown) => value is "test" | "control";
289
306
  defaultValue: "test" | "control";
290
307
  };
308
+ platform_editor_tables_drag_and_drop: {
309
+ productKeys: {
310
+ confluence: string;
311
+ };
312
+ param: string;
313
+ typeGuard: typeof import("./type-guards").isBoolean;
314
+ defaultValue: boolean;
315
+ };
316
+ platform_editor_tables_table_selector: {
317
+ productKeys: {
318
+ confluence: string;
319
+ };
320
+ param: string;
321
+ typeGuard: typeof import("./type-guards").isBoolean;
322
+ defaultValue: boolean;
323
+ };
291
324
  }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
292
325
  each: (describeBody: jest.EmptyFunction) => void;
293
326
  };
@@ -55,14 +55,6 @@ export declare const editorExperimentsConfig: {
55
55
  typeGuard: typeof isBoolean;
56
56
  defaultValue: boolean;
57
57
  };
58
- 'nested-expand-in-expand': {
59
- productKeys: {
60
- confluence: string;
61
- };
62
- param: string;
63
- typeGuard: typeof isBoolean;
64
- defaultValue: boolean;
65
- };
66
58
  comment_on_bodied_extensions: {
67
59
  productKeys: {
68
60
  confluence: string;
@@ -247,4 +239,20 @@ export declare const editorExperimentsConfig: {
247
239
  typeGuard: (value: unknown) => value is "test" | "control";
248
240
  defaultValue: "test" | "control";
249
241
  };
242
+ platform_editor_tables_drag_and_drop: {
243
+ productKeys: {
244
+ confluence: string;
245
+ };
246
+ param: string;
247
+ typeGuard: typeof isBoolean;
248
+ defaultValue: boolean;
249
+ };
250
+ platform_editor_tables_table_selector: {
251
+ productKeys: {
252
+ confluence: string;
253
+ };
254
+ param: string;
255
+ typeGuard: typeof isBoolean;
256
+ defaultValue: boolean;
257
+ };
250
258
  };
@@ -14,7 +14,6 @@ export declare let _overrides: Partial<{
14
14
  support_table_in_comment: boolean;
15
15
  platform_editor_exp_lazy_node_views: boolean;
16
16
  platform_renderer_table_sticky_scrollbar: boolean;
17
- 'nested-expand-in-expand': boolean;
18
17
  comment_on_bodied_extensions: boolean;
19
18
  advanced_layouts: boolean;
20
19
  single_column_layouts: boolean;
@@ -38,6 +37,8 @@ export declare let _overrides: Partial<{
38
37
  platform_editor_offline_editing_web: boolean;
39
38
  platform_editor_markdown_next_media_plugin_exp: boolean;
40
39
  editor_ai_inline_suggestion_date_v2: "test" | "control";
40
+ platform_editor_tables_drag_and_drop: boolean;
41
+ platform_editor_tables_table_selector: boolean;
41
42
  }>;
42
43
  export declare let _paramOverrides: EditorExperimentParamOverrides;
43
44
  export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
@@ -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" | "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" | "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_nested_non_bodied_macros" | "platform_editor_insertion" | "platform_editor_inline_node_virtualization" | "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">(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_nested_non_bodied_macros" | "platform_editor_insertion" | "platform_editor_inline_node_virtualization" | "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">(experimentName: ExperimentName, describeName: string) => {
49
49
  variant: (value: {
50
50
  'example-boolean': {
51
51
  productKeys: {
@@ -96,14 +96,6 @@ declare namespace eeTest {
96
96
  typeGuard: typeof import("./type-guards").isBoolean;
97
97
  defaultValue: boolean;
98
98
  };
99
- 'nested-expand-in-expand': {
100
- productKeys: {
101
- confluence: string;
102
- };
103
- param: string;
104
- typeGuard: typeof import("./type-guards").isBoolean;
105
- defaultValue: boolean;
106
- };
107
99
  comment_on_bodied_extensions: {
108
100
  productKeys: {
109
101
  confluence: string;
@@ -134,6 +126,31 @@ declare namespace eeTest {
134
126
  };
135
127
  param: string;
136
128
  typeGuard: typeof import("./type-guards").isBoolean;
129
+ /**
130
+ * eeTest.describe() Wrapper utility for describe() that runs a test with a editor experiment overides.
131
+ *
132
+ * @example Single experiment
133
+ * ```ts
134
+ * eeTest.describe('Description of test "suite" containing nested suites and tests.', { 'example-boolean': true }, () => {
135
+ * it('should do the thing', () => {
136
+ * expect(editorExperiment('example-boolean', true)).toBe(true);
137
+ * });
138
+ * });
139
+ * ```
140
+ *
141
+ *
142
+ * @example Multiple experiment
143
+ * ```ts
144
+ * eeTest.describe('Description of test "suite" containing nested suites and tests.', { 'example-boolean': true, 'example-multivariate': 'three' }, () => {
145
+ * it('should do the thing', () => {
146
+ * expect(editorExperiment('example-boolean', true)).toBe(true);
147
+ * });
148
+ * });
149
+ * ```
150
+ *
151
+ * API based on next gen ffTest API
152
+ * - https://hello.atlassian.net/wiki/spaces/AF/pages/2569505829/Task+Testing+your+feature+flag+in+platform+and+product#Next-Generation-API-%E2%9C%A8
153
+ */
137
154
  defaultValue: boolean;
138
155
  };
139
156
  'platform_editor_ai-prompts-placeholder': {
@@ -288,6 +305,22 @@ declare namespace eeTest {
288
305
  typeGuard: (value: unknown) => value is "test" | "control";
289
306
  defaultValue: "test" | "control";
290
307
  };
308
+ platform_editor_tables_drag_and_drop: {
309
+ productKeys: {
310
+ confluence: string;
311
+ };
312
+ param: string;
313
+ typeGuard: typeof import("./type-guards").isBoolean;
314
+ defaultValue: boolean;
315
+ };
316
+ platform_editor_tables_table_selector: {
317
+ productKeys: {
318
+ confluence: string;
319
+ };
320
+ param: string;
321
+ typeGuard: typeof import("./type-guards").isBoolean;
322
+ defaultValue: boolean;
323
+ };
291
324
  }[ExperimentName]["defaultValue"], describeBody: jest.EmptyFunction) => void;
292
325
  each: (describeBody: jest.EmptyFunction) => void;
293
326
  };
@@ -55,14 +55,6 @@ export declare const editorExperimentsConfig: {
55
55
  typeGuard: typeof isBoolean;
56
56
  defaultValue: boolean;
57
57
  };
58
- 'nested-expand-in-expand': {
59
- productKeys: {
60
- confluence: string;
61
- };
62
- param: string;
63
- typeGuard: typeof isBoolean;
64
- defaultValue: boolean;
65
- };
66
58
  comment_on_bodied_extensions: {
67
59
  productKeys: {
68
60
  confluence: string;
@@ -247,4 +239,20 @@ export declare const editorExperimentsConfig: {
247
239
  typeGuard: (value: unknown) => value is "test" | "control";
248
240
  defaultValue: "test" | "control";
249
241
  };
242
+ platform_editor_tables_drag_and_drop: {
243
+ productKeys: {
244
+ confluence: string;
245
+ };
246
+ param: string;
247
+ typeGuard: typeof isBoolean;
248
+ defaultValue: boolean;
249
+ };
250
+ platform_editor_tables_table_selector: {
251
+ productKeys: {
252
+ confluence: string;
253
+ };
254
+ param: string;
255
+ typeGuard: typeof isBoolean;
256
+ defaultValue: boolean;
257
+ };
250
258
  };
@@ -14,7 +14,6 @@ export declare let _overrides: Partial<{
14
14
  support_table_in_comment: boolean;
15
15
  platform_editor_exp_lazy_node_views: boolean;
16
16
  platform_renderer_table_sticky_scrollbar: boolean;
17
- 'nested-expand-in-expand': boolean;
18
17
  comment_on_bodied_extensions: boolean;
19
18
  advanced_layouts: boolean;
20
19
  single_column_layouts: boolean;
@@ -38,6 +37,8 @@ export declare let _overrides: Partial<{
38
37
  platform_editor_offline_editing_web: boolean;
39
38
  platform_editor_markdown_next_media_plugin_exp: boolean;
40
39
  editor_ai_inline_suggestion_date_v2: "test" | "control";
40
+ platform_editor_tables_drag_and_drop: boolean;
41
+ platform_editor_tables_table_selector: boolean;
41
42
  }>;
42
43
  export declare let _paramOverrides: EditorExperimentParamOverrides;
43
44
  export declare let _product: 'confluence' | 'jira' | 'test' | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "4.11.0",
3
+ "version": "4.12.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": "^5.1.0",
39
+ "@atlaskit/feature-gate-js-client": "^5.2.0",
40
40
  "@babel/runtime": "^7.0.0"
41
41
  },
42
42
  "peerDependencies": {