@atlaskit/tmp-editor-statsig 11.3.0 → 11.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 11.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`4339fad1c3ec0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4339fad1c3ec0) -
8
+ Updated expVal to default true for tests
9
+
10
+ ## 11.3.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`3cb013fc55d88`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3cb013fc55d88) -
15
+ Add initial trigger for Improve Writing on Paste experiment
16
+
3
17
  ## 11.3.0
4
18
 
5
19
  ### Minor Changes
@@ -15,7 +15,8 @@ var testMultivariateOverrides = exports.testMultivariateOverrides = {
15
15
  platform_editor_insertion: 'control',
16
16
  editor_ai_inline_suggestion_date_v2: 'control',
17
17
  platform_editor_add_orange_highlight_color: 'control',
18
- platform_editor_ai_iw_adf_streaming: 'control'
18
+ platform_editor_ai_iw_adf_streaming: 'control',
19
+ platform_hover_card_preview_panel: 'control'
19
20
  };
20
21
  var testBooleanOverrides = exports.testBooleanOverrides = {
21
22
  platform_editor_feedback_mandatory_rating: false,
@@ -63,5 +64,6 @@ var testBooleanOverrides = exports.testBooleanOverrides = {
63
64
  cc_editor_ufo_hold_table_till_resize_complete: false,
64
65
  platform_editor_toggle_expand_on_match_found: false,
65
66
  platform_editor_reduce_noisy_steps_ncs: false,
67
+ cc_improve_writing_on_paste: false,
66
68
  platform_editor_ai_aifc: false
67
69
  };
@@ -10,7 +10,7 @@ var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gat
10
10
  var _experimentsConfig = require("./experiments-config");
11
11
  var _setup = require("./setup");
12
12
  function expValInternal(_ref) {
13
- var _experimentConfig$pro;
13
+ var _paramOverrides2, _experimentConfig$pro;
14
14
  var experimentName = _ref.experimentName,
15
15
  experimentParam = _ref.experimentParam,
16
16
  defaultValue = _ref.defaultValue,
@@ -22,6 +22,24 @@ function expValInternal(_ref) {
22
22
  // We will definitely crash via any code path later in this function - this just makes the error explicit and clear.
23
23
  throw new Error("Editor experiment configuration is not defined ".concat(experimentName, ". Likely the experiment does not exist or editor package versions are misaligned"));
24
24
  }
25
+
26
+ // @ts-ignore need to loosen the type here to allow for any experiment name
27
+ if (_setup._overrides[experimentName] !== undefined) {
28
+ // This will be hit in the case of a test setting an override
29
+ // @ts-ignore need to loosen the type here to allow for any experiment name
30
+ return _setup._overrides[experimentName];
31
+ }
32
+
33
+ // Check for parameter overrides
34
+ var paramOverride = (_paramOverrides2 = _setup._paramOverrides[experimentName]) === null || _paramOverrides2 === void 0 ? void 0 : _paramOverrides2[experimentParam];
35
+ if (paramOverride !== undefined) {
36
+ return paramOverride;
37
+ }
38
+
39
+ // If client is not initialized, we return the default value
40
+ if (!_featureGateJsClient.default.initializeCompleted()) {
41
+ return defaultValue;
42
+ }
25
43
  if (!_setup._product) {
26
44
  // This will be hit in the case of a product not having setup the editor experiment tooling
27
45
  return defaultValue;
@@ -547,6 +547,16 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
547
547
  param: 'isEnabled',
548
548
  defaultValue: false
549
549
  }),
550
+ // Added 2025-08-17
551
+ platform_hover_card_preview_panel: (0, _experimentBuilders.createMultivariateExperiment)({
552
+ productKeys: {
553
+ confluence: 'platform_hover_card_preview_panel',
554
+ jira: 'platform_hover_card_preview_panel'
555
+ },
556
+ param: 'cohort',
557
+ values: ['control', 'test'],
558
+ defaultValue: 'control'
559
+ }),
550
560
  // Added 2025--8-05
551
561
  platform_editor_block_menu: (0, _experimentBuilders.createBooleanExperiment)({
552
562
  productKeys: {
@@ -711,6 +721,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
711
721
  param: 'isEnabled',
712
722
  defaultValue: false
713
723
  }),
724
+ // Added 2025-08-06
725
+ cc_improve_writing_on_paste: (0, _experimentBuilders.createBooleanExperiment)({
726
+ productKeys: {
727
+ confluence: 'cc_improve_writing_on_paste'
728
+ },
729
+ param: 'isEnabled',
730
+ defaultValue: false
731
+ }),
714
732
  // Added 2025-08-18
715
733
  platform_editor_locale_datepicker: (0, _experimentBuilders.createBooleanExperiment)({
716
734
  productKeys: {
package/dist/cjs/setup.js CHANGED
@@ -70,7 +70,5 @@ paramOverrides) {
70
70
  exports._overrides = _overrides = testOverrides;
71
71
  }
72
72
  exports._product = _product = product;
73
- if (paramOverrides) {
74
- exports._paramOverrides = _paramOverrides = paramOverrides;
75
- }
73
+ exports._paramOverrides = _paramOverrides = paramOverrides || {};
76
74
  }
@@ -9,7 +9,8 @@ export const testMultivariateOverrides = {
9
9
  platform_editor_insertion: 'control',
10
10
  editor_ai_inline_suggestion_date_v2: 'control',
11
11
  platform_editor_add_orange_highlight_color: 'control',
12
- platform_editor_ai_iw_adf_streaming: 'control'
12
+ platform_editor_ai_iw_adf_streaming: 'control',
13
+ platform_hover_card_preview_panel: 'control'
13
14
  };
14
15
  export const testBooleanOverrides = {
15
16
  platform_editor_feedback_mandatory_rating: false,
@@ -57,5 +58,6 @@ export const testBooleanOverrides = {
57
58
  cc_editor_ufo_hold_table_till_resize_complete: false,
58
59
  platform_editor_toggle_expand_on_match_found: false,
59
60
  platform_editor_reduce_noisy_steps_ncs: false,
61
+ cc_improve_writing_on_paste: false,
60
62
  platform_editor_ai_aifc: false
61
63
  };
@@ -1,13 +1,13 @@
1
1
  import FeatureGates from '@atlaskit/feature-gate-js-client';
2
2
  import { editorExperimentsConfig } from './experiments-config';
3
- import { _product } from './setup';
3
+ import { _overrides, _paramOverrides, _product } from './setup';
4
4
  function expValInternal({
5
5
  experimentName,
6
6
  experimentParam,
7
7
  defaultValue,
8
8
  fireExperimentExposure
9
9
  }) {
10
- var _experimentConfig$pro;
10
+ var _paramOverrides2, _experimentConfig$pro;
11
11
  const experimentConfig = editorExperimentsConfig[experimentName];
12
12
  if (experimentConfig === undefined) {
13
13
  // Warning! If a product is improperly configured (ie. their editor packages are misaligned)
@@ -15,6 +15,24 @@ function expValInternal({
15
15
  // We will definitely crash via any code path later in this function - this just makes the error explicit and clear.
16
16
  throw new Error(`Editor experiment configuration is not defined ${experimentName}. Likely the experiment does not exist or editor package versions are misaligned`);
17
17
  }
18
+
19
+ // @ts-ignore need to loosen the type here to allow for any experiment name
20
+ if (_overrides[experimentName] !== undefined) {
21
+ // This will be hit in the case of a test setting an override
22
+ // @ts-ignore need to loosen the type here to allow for any experiment name
23
+ return _overrides[experimentName];
24
+ }
25
+
26
+ // Check for parameter overrides
27
+ const paramOverride = (_paramOverrides2 = _paramOverrides[experimentName]) === null || _paramOverrides2 === void 0 ? void 0 : _paramOverrides2[experimentParam];
28
+ if (paramOverride !== undefined) {
29
+ return paramOverride;
30
+ }
31
+
32
+ // If client is not initialized, we return the default value
33
+ if (!FeatureGates.initializeCompleted()) {
34
+ return defaultValue;
35
+ }
18
36
  if (!_product) {
19
37
  // This will be hit in the case of a product not having setup the editor experiment tooling
20
38
  return defaultValue;
@@ -541,6 +541,16 @@ export const editorExperimentsConfig = {
541
541
  param: 'isEnabled',
542
542
  defaultValue: false
543
543
  }),
544
+ // Added 2025-08-17
545
+ platform_hover_card_preview_panel: createMultivariateExperiment({
546
+ productKeys: {
547
+ confluence: 'platform_hover_card_preview_panel',
548
+ jira: 'platform_hover_card_preview_panel'
549
+ },
550
+ param: 'cohort',
551
+ values: ['control', 'test'],
552
+ defaultValue: 'control'
553
+ }),
544
554
  // Added 2025--8-05
545
555
  platform_editor_block_menu: createBooleanExperiment({
546
556
  productKeys: {
@@ -705,6 +715,14 @@ export const editorExperimentsConfig = {
705
715
  param: 'isEnabled',
706
716
  defaultValue: false
707
717
  }),
718
+ // Added 2025-08-06
719
+ cc_improve_writing_on_paste: createBooleanExperiment({
720
+ productKeys: {
721
+ confluence: 'cc_improve_writing_on_paste'
722
+ },
723
+ param: 'isEnabled',
724
+ defaultValue: false
725
+ }),
708
726
  // Added 2025-08-18
709
727
  platform_editor_locale_datepicker: createBooleanExperiment({
710
728
  productKeys: {
@@ -58,7 +58,5 @@ paramOverrides) {
58
58
  _overrides = testOverrides;
59
59
  }
60
60
  _product = product;
61
- if (paramOverrides) {
62
- _paramOverrides = paramOverrides;
63
- }
61
+ _paramOverrides = paramOverrides || {};
64
62
  }
@@ -9,7 +9,8 @@ export var testMultivariateOverrides = {
9
9
  platform_editor_insertion: 'control',
10
10
  editor_ai_inline_suggestion_date_v2: 'control',
11
11
  platform_editor_add_orange_highlight_color: 'control',
12
- platform_editor_ai_iw_adf_streaming: 'control'
12
+ platform_editor_ai_iw_adf_streaming: 'control',
13
+ platform_hover_card_preview_panel: 'control'
13
14
  };
14
15
  export var testBooleanOverrides = {
15
16
  platform_editor_feedback_mandatory_rating: false,
@@ -57,5 +58,6 @@ export var testBooleanOverrides = {
57
58
  cc_editor_ufo_hold_table_till_resize_complete: false,
58
59
  platform_editor_toggle_expand_on_match_found: false,
59
60
  platform_editor_reduce_noisy_steps_ncs: false,
61
+ cc_improve_writing_on_paste: false,
60
62
  platform_editor_ai_aifc: false
61
63
  };
@@ -1,8 +1,8 @@
1
1
  import FeatureGates from '@atlaskit/feature-gate-js-client';
2
2
  import { editorExperimentsConfig } from './experiments-config';
3
- import { _product } from './setup';
3
+ import { _overrides, _paramOverrides, _product } from './setup';
4
4
  function expValInternal(_ref) {
5
- var _experimentConfig$pro;
5
+ var _paramOverrides2, _experimentConfig$pro;
6
6
  var experimentName = _ref.experimentName,
7
7
  experimentParam = _ref.experimentParam,
8
8
  defaultValue = _ref.defaultValue,
@@ -14,6 +14,24 @@ function expValInternal(_ref) {
14
14
  // We will definitely crash via any code path later in this function - this just makes the error explicit and clear.
15
15
  throw new Error("Editor experiment configuration is not defined ".concat(experimentName, ". Likely the experiment does not exist or editor package versions are misaligned"));
16
16
  }
17
+
18
+ // @ts-ignore need to loosen the type here to allow for any experiment name
19
+ if (_overrides[experimentName] !== undefined) {
20
+ // This will be hit in the case of a test setting an override
21
+ // @ts-ignore need to loosen the type here to allow for any experiment name
22
+ return _overrides[experimentName];
23
+ }
24
+
25
+ // Check for parameter overrides
26
+ var paramOverride = (_paramOverrides2 = _paramOverrides[experimentName]) === null || _paramOverrides2 === void 0 ? void 0 : _paramOverrides2[experimentParam];
27
+ if (paramOverride !== undefined) {
28
+ return paramOverride;
29
+ }
30
+
31
+ // If client is not initialized, we return the default value
32
+ if (!FeatureGates.initializeCompleted()) {
33
+ return defaultValue;
34
+ }
17
35
  if (!_product) {
18
36
  // This will be hit in the case of a product not having setup the editor experiment tooling
19
37
  return defaultValue;
@@ -541,6 +541,16 @@ export var editorExperimentsConfig = {
541
541
  param: 'isEnabled',
542
542
  defaultValue: false
543
543
  }),
544
+ // Added 2025-08-17
545
+ platform_hover_card_preview_panel: createMultivariateExperiment({
546
+ productKeys: {
547
+ confluence: 'platform_hover_card_preview_panel',
548
+ jira: 'platform_hover_card_preview_panel'
549
+ },
550
+ param: 'cohort',
551
+ values: ['control', 'test'],
552
+ defaultValue: 'control'
553
+ }),
544
554
  // Added 2025--8-05
545
555
  platform_editor_block_menu: createBooleanExperiment({
546
556
  productKeys: {
@@ -705,6 +715,14 @@ export var editorExperimentsConfig = {
705
715
  param: 'isEnabled',
706
716
  defaultValue: false
707
717
  }),
718
+ // Added 2025-08-06
719
+ cc_improve_writing_on_paste: createBooleanExperiment({
720
+ productKeys: {
721
+ confluence: 'cc_improve_writing_on_paste'
722
+ },
723
+ param: 'isEnabled',
724
+ defaultValue: false
725
+ }),
708
726
  // Added 2025-08-18
709
727
  platform_editor_locale_datepicker: createBooleanExperiment({
710
728
  productKeys: {
package/dist/esm/setup.js CHANGED
@@ -65,7 +65,5 @@ paramOverrides) {
65
65
  _overrides = testOverrides;
66
66
  }
67
67
  _product = product;
68
- if (paramOverrides) {
69
- _paramOverrides = paramOverrides;
70
- }
68
+ _paramOverrides = paramOverrides || {};
71
69
  }
@@ -404,6 +404,13 @@ export declare const editorExperimentsConfig: {
404
404
  productKeys?: import("./types").ProductKeys;
405
405
  param: string;
406
406
  };
407
+ platform_hover_card_preview_panel: {
408
+ values: ("test" | "control")[];
409
+ typeGuard: (value: unknown) => value is "test" | "control";
410
+ defaultValue: "test" | "control";
411
+ productKeys?: import("./types").ProductKeys;
412
+ param: string;
413
+ };
407
414
  platform_editor_block_menu: {
408
415
  typeGuard: typeof import("./type-guards").isBoolean;
409
416
  defaultValue: boolean;
@@ -526,6 +533,12 @@ export declare const editorExperimentsConfig: {
526
533
  productKeys?: import("./types").ProductKeys;
527
534
  param: string;
528
535
  };
536
+ cc_improve_writing_on_paste: {
537
+ typeGuard: typeof import("./type-guards").isBoolean;
538
+ defaultValue: boolean;
539
+ productKeys?: import("./types").ProductKeys;
540
+ param: string;
541
+ };
529
542
  platform_editor_locale_datepicker: {
530
543
  typeGuard: typeof import("./type-guards").isBoolean;
531
544
  defaultValue: boolean;
@@ -404,6 +404,13 @@ export declare const editorExperimentsConfig: {
404
404
  productKeys?: import("./types").ProductKeys;
405
405
  param: string;
406
406
  };
407
+ platform_hover_card_preview_panel: {
408
+ values: ("test" | "control")[];
409
+ typeGuard: (value: unknown) => value is "test" | "control";
410
+ defaultValue: "test" | "control";
411
+ productKeys?: import("./types").ProductKeys;
412
+ param: string;
413
+ };
407
414
  platform_editor_block_menu: {
408
415
  typeGuard: typeof import("./type-guards").isBoolean;
409
416
  defaultValue: boolean;
@@ -526,6 +533,12 @@ export declare const editorExperimentsConfig: {
526
533
  productKeys?: import("./types").ProductKeys;
527
534
  param: string;
528
535
  };
536
+ cc_improve_writing_on_paste: {
537
+ typeGuard: typeof import("./type-guards").isBoolean;
538
+ defaultValue: boolean;
539
+ productKeys?: import("./types").ProductKeys;
540
+ param: string;
541
+ };
529
542
  platform_editor_locale_datepicker: {
530
543
  typeGuard: typeof import("./type-guards").isBoolean;
531
544
  defaultValue: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "11.3.0",
3
+ "version": "11.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",