@atlaskit/tmp-editor-statsig 43.0.0 → 44.1.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,27 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 44.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`d43c8a96e6740`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d43c8a96e6740) -
8
+ Gate table ref update dispatch behind tableActive check to avoid unnecessary transactions firing
9
+ for every table on the page
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4fa16b0f7b7a3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4fa16b0f7b7a3) -
14
+ Add dynamic config function for string list and use to turn Rovo placeholder off.
15
+
16
+ ## 44.0.0
17
+
18
+ ### Major Changes
19
+
20
+ - [`a35f1a8d92461`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a35f1a8d92461) -
21
+ [FFCLEANUP-84844] Clean up stale feature flag platform_editor_nested_table_refresh_width_fix
22
+ - [`b50791532c24a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b50791532c24a) -
23
+ [FFCLEANUP-79900] Remove experiment editor_refactor_backspace_task_and_decisions
24
+
3
25
  ## 43.0.0
4
26
 
5
27
  ### Major Changes
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.dynamicConfigStringListIncludes = dynamicConfigStringListIncludes;
8
+ var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
9
+ function isStringList(value) {
10
+ return Array.isArray(value) && value.every(function (item) {
11
+ return typeof item === 'string';
12
+ });
13
+ }
14
+ var STRING_LIST_CONFIG_KEY = 'value';
15
+
16
+ /**
17
+ * Returns whether a Statsig dynamic config's string list (under the `value` key) includes `token`
18
+ * (exact match).
19
+ *
20
+ * Used for UX tokens such as `remove-rovo-placeholder` inside `platform_editor_ai_autocomplete_ux_config`.
21
+ */
22
+ function dynamicConfigStringListIncludes(configName, token) {
23
+ if (!_featureGateJsClient.default.initializeCompleted()) {
24
+ return false;
25
+ }
26
+ try {
27
+ // Dynamic configs are exposed through the same client surface as experiments.
28
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
29
+ var config = _featureGateJsClient.default.getExperiment(configName);
30
+ var listCandidate = config.value[STRING_LIST_CONFIG_KEY];
31
+ if (!isStringList(listCandidate)) {
32
+ return false;
33
+ }
34
+ return listCandidate.includes(token);
35
+ } catch (_unused) {
36
+ return false;
37
+ }
38
+ }
@@ -709,14 +709,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
709
709
  param: 'isEnabled',
710
710
  defaultValue: false
711
711
  }),
712
- // Added 2025-09-04
713
- editor_refactor_backspace_task_and_decisions: (0, _experimentBuilders.createBooleanExperiment)({
714
- productKeys: {
715
- confluence: 'editor_refactor_backspace_task_and_decisions'
716
- },
717
- param: 'isEnabled',
718
- defaultValue: false
719
- }),
720
712
  // Added 2025-08-04
721
713
  platform_editor_floating_toolbar_button_aria_label: (0, _experimentBuilders.createBooleanExperiment)({
722
714
  productKeys: {
@@ -955,14 +947,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
955
947
  param: 'isEnabled',
956
948
  defaultValue: false
957
949
  }),
958
- // Added 2025-09-16
959
- platform_editor_nested_table_refresh_width_fix: (0, _experimentBuilders.createBooleanExperiment)({
960
- productKeys: {
961
- confluence: 'platform_editor_nested_table_refresh_width_fix'
962
- },
963
- param: 'isEnabled',
964
- defaultValue: false
965
- }),
966
950
  // Added 2025-10-10
967
951
  platform_use_llm_space_recommendations: (0, _experimentBuilders.createBooleanExperiment)({
968
952
  productKeys: {
@@ -1772,6 +1756,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
1772
1756
  param: 'isEnabled',
1773
1757
  defaultValue: false
1774
1758
  }),
1759
+ // Added 2026-03-24
1760
+ platform_editor_table_ref_optimisation: (0, _experimentBuilders.createBooleanExperiment)({
1761
+ productKeys: {
1762
+ confluence: 'platform_editor_table_ref_optimisation'
1763
+ },
1764
+ param: 'isEnabled',
1765
+ defaultValue: false
1766
+ }),
1775
1767
  // Added 2026-03-20
1776
1768
  platform_editor_chromeless_expand_fix: (0, _experimentBuilders.createBooleanExperiment)({
1777
1769
  productKeys: {
@@ -1781,6 +1773,15 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
1781
1773
  param: 'isEnabled',
1782
1774
  defaultValue: false
1783
1775
  }),
1776
+ // Added 2026-03-23
1777
+ platform_editor_inline_media_copy_paste_fix: (0, _experimentBuilders.createBooleanExperiment)({
1778
+ productKeys: {
1779
+ confluence: 'platform_editor_inline_media_copy_paste_fix',
1780
+ jira: 'platform_editor_inline_media_copy_paste_fix'
1781
+ },
1782
+ param: 'isEnabled',
1783
+ defaultValue: false
1784
+ }),
1784
1785
  // Added 2026-03-13
1785
1786
  platform_editor_misaligned_ai_screens_firefox_fix: (0, _experimentBuilders.createBooleanExperiment)({
1786
1787
  productKeys: {
@@ -0,0 +1,29 @@
1
+ import FeatureGates from '@atlaskit/feature-gate-js-client';
2
+ function isStringList(value) {
3
+ return Array.isArray(value) && value.every(item => typeof item === 'string');
4
+ }
5
+ const STRING_LIST_CONFIG_KEY = 'value';
6
+
7
+ /**
8
+ * Returns whether a Statsig dynamic config's string list (under the `value` key) includes `token`
9
+ * (exact match).
10
+ *
11
+ * Used for UX tokens such as `remove-rovo-placeholder` inside `platform_editor_ai_autocomplete_ux_config`.
12
+ */
13
+ export function dynamicConfigStringListIncludes(configName, token) {
14
+ if (!FeatureGates.initializeCompleted()) {
15
+ return false;
16
+ }
17
+ try {
18
+ // Dynamic configs are exposed through the same client surface as experiments.
19
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
20
+ const config = FeatureGates.getExperiment(configName);
21
+ const listCandidate = config.value[STRING_LIST_CONFIG_KEY];
22
+ if (!isStringList(listCandidate)) {
23
+ return false;
24
+ }
25
+ return listCandidate.includes(token);
26
+ } catch {
27
+ return false;
28
+ }
29
+ }
@@ -703,14 +703,6 @@ export const editorExperimentsConfig = {
703
703
  param: 'isEnabled',
704
704
  defaultValue: false
705
705
  }),
706
- // Added 2025-09-04
707
- editor_refactor_backspace_task_and_decisions: createBooleanExperiment({
708
- productKeys: {
709
- confluence: 'editor_refactor_backspace_task_and_decisions'
710
- },
711
- param: 'isEnabled',
712
- defaultValue: false
713
- }),
714
706
  // Added 2025-08-04
715
707
  platform_editor_floating_toolbar_button_aria_label: createBooleanExperiment({
716
708
  productKeys: {
@@ -949,14 +941,6 @@ export const editorExperimentsConfig = {
949
941
  param: 'isEnabled',
950
942
  defaultValue: false
951
943
  }),
952
- // Added 2025-09-16
953
- platform_editor_nested_table_refresh_width_fix: createBooleanExperiment({
954
- productKeys: {
955
- confluence: 'platform_editor_nested_table_refresh_width_fix'
956
- },
957
- param: 'isEnabled',
958
- defaultValue: false
959
- }),
960
944
  // Added 2025-10-10
961
945
  platform_use_llm_space_recommendations: createBooleanExperiment({
962
946
  productKeys: {
@@ -1766,6 +1750,14 @@ export const editorExperimentsConfig = {
1766
1750
  param: 'isEnabled',
1767
1751
  defaultValue: false
1768
1752
  }),
1753
+ // Added 2026-03-24
1754
+ platform_editor_table_ref_optimisation: createBooleanExperiment({
1755
+ productKeys: {
1756
+ confluence: 'platform_editor_table_ref_optimisation'
1757
+ },
1758
+ param: 'isEnabled',
1759
+ defaultValue: false
1760
+ }),
1769
1761
  // Added 2026-03-20
1770
1762
  platform_editor_chromeless_expand_fix: createBooleanExperiment({
1771
1763
  productKeys: {
@@ -1775,6 +1767,15 @@ export const editorExperimentsConfig = {
1775
1767
  param: 'isEnabled',
1776
1768
  defaultValue: false
1777
1769
  }),
1770
+ // Added 2026-03-23
1771
+ platform_editor_inline_media_copy_paste_fix: createBooleanExperiment({
1772
+ productKeys: {
1773
+ confluence: 'platform_editor_inline_media_copy_paste_fix',
1774
+ jira: 'platform_editor_inline_media_copy_paste_fix'
1775
+ },
1776
+ param: 'isEnabled',
1777
+ defaultValue: false
1778
+ }),
1778
1779
  // Added 2026-03-13
1779
1780
  platform_editor_misaligned_ai_screens_firefox_fix: createBooleanExperiment({
1780
1781
  productKeys: {
@@ -0,0 +1,31 @@
1
+ import FeatureGates from '@atlaskit/feature-gate-js-client';
2
+ function isStringList(value) {
3
+ return Array.isArray(value) && value.every(function (item) {
4
+ return typeof item === 'string';
5
+ });
6
+ }
7
+ var STRING_LIST_CONFIG_KEY = 'value';
8
+
9
+ /**
10
+ * Returns whether a Statsig dynamic config's string list (under the `value` key) includes `token`
11
+ * (exact match).
12
+ *
13
+ * Used for UX tokens such as `remove-rovo-placeholder` inside `platform_editor_ai_autocomplete_ux_config`.
14
+ */
15
+ export function dynamicConfigStringListIncludes(configName, token) {
16
+ if (!FeatureGates.initializeCompleted()) {
17
+ return false;
18
+ }
19
+ try {
20
+ // Dynamic configs are exposed through the same client surface as experiments.
21
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
22
+ var config = FeatureGates.getExperiment(configName);
23
+ var listCandidate = config.value[STRING_LIST_CONFIG_KEY];
24
+ if (!isStringList(listCandidate)) {
25
+ return false;
26
+ }
27
+ return listCandidate.includes(token);
28
+ } catch (_unused) {
29
+ return false;
30
+ }
31
+ }
@@ -703,14 +703,6 @@ export var editorExperimentsConfig = {
703
703
  param: 'isEnabled',
704
704
  defaultValue: false
705
705
  }),
706
- // Added 2025-09-04
707
- editor_refactor_backspace_task_and_decisions: createBooleanExperiment({
708
- productKeys: {
709
- confluence: 'editor_refactor_backspace_task_and_decisions'
710
- },
711
- param: 'isEnabled',
712
- defaultValue: false
713
- }),
714
706
  // Added 2025-08-04
715
707
  platform_editor_floating_toolbar_button_aria_label: createBooleanExperiment({
716
708
  productKeys: {
@@ -949,14 +941,6 @@ export var editorExperimentsConfig = {
949
941
  param: 'isEnabled',
950
942
  defaultValue: false
951
943
  }),
952
- // Added 2025-09-16
953
- platform_editor_nested_table_refresh_width_fix: createBooleanExperiment({
954
- productKeys: {
955
- confluence: 'platform_editor_nested_table_refresh_width_fix'
956
- },
957
- param: 'isEnabled',
958
- defaultValue: false
959
- }),
960
944
  // Added 2025-10-10
961
945
  platform_use_llm_space_recommendations: createBooleanExperiment({
962
946
  productKeys: {
@@ -1766,6 +1750,14 @@ export var editorExperimentsConfig = {
1766
1750
  param: 'isEnabled',
1767
1751
  defaultValue: false
1768
1752
  }),
1753
+ // Added 2026-03-24
1754
+ platform_editor_table_ref_optimisation: createBooleanExperiment({
1755
+ productKeys: {
1756
+ confluence: 'platform_editor_table_ref_optimisation'
1757
+ },
1758
+ param: 'isEnabled',
1759
+ defaultValue: false
1760
+ }),
1769
1761
  // Added 2026-03-20
1770
1762
  platform_editor_chromeless_expand_fix: createBooleanExperiment({
1771
1763
  productKeys: {
@@ -1775,6 +1767,15 @@ export var editorExperimentsConfig = {
1775
1767
  param: 'isEnabled',
1776
1768
  defaultValue: false
1777
1769
  }),
1770
+ // Added 2026-03-23
1771
+ platform_editor_inline_media_copy_paste_fix: createBooleanExperiment({
1772
+ productKeys: {
1773
+ confluence: 'platform_editor_inline_media_copy_paste_fix',
1774
+ jira: 'platform_editor_inline_media_copy_paste_fix'
1775
+ },
1776
+ param: 'isEnabled',
1777
+ defaultValue: false
1778
+ }),
1778
1779
  // Added 2026-03-13
1779
1780
  platform_editor_misaligned_ai_screens_firefox_fix: createBooleanExperiment({
1780
1781
  productKeys: {
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Returns whether a Statsig dynamic config's string list (under the `value` key) includes `token`
3
+ * (exact match).
4
+ *
5
+ * Used for UX tokens such as `remove-rovo-placeholder` inside `platform_editor_ai_autocomplete_ux_config`.
6
+ */
7
+ export declare function dynamicConfigStringListIncludes(configName: string, token: string): boolean;
@@ -202,12 +202,6 @@ export declare const editorExperimentsConfig: {
202
202
  productKeys?: ProductKeys;
203
203
  typeGuard: IsBooleanType;
204
204
  };
205
- editor_refactor_backspace_task_and_decisions: {
206
- defaultValue: boolean;
207
- param: string;
208
- productKeys?: ProductKeys;
209
- typeGuard: IsBooleanType;
210
- };
211
205
  platform_editor_paste_actions_menu: {
212
206
  defaultValue: boolean;
213
207
  param: string;
@@ -559,12 +553,6 @@ export declare const editorExperimentsConfig: {
559
553
  productKeys?: ProductKeys;
560
554
  typeGuard: IsBooleanType;
561
555
  };
562
- platform_editor_nested_table_refresh_width_fix: {
563
- defaultValue: boolean;
564
- param: string;
565
- productKeys?: ProductKeys;
566
- typeGuard: IsBooleanType;
567
- };
568
556
  platform_editor_no_cursor_on_edit_page_init: {
569
557
  defaultValue: boolean;
570
558
  param: string;
@@ -704,6 +692,12 @@ export declare const editorExperimentsConfig: {
704
692
  productKeys?: ProductKeys;
705
693
  typeGuard: IsBooleanType;
706
694
  };
695
+ platform_editor_table_ref_optimisation: {
696
+ defaultValue: boolean;
697
+ param: string;
698
+ productKeys?: ProductKeys;
699
+ typeGuard: IsBooleanType;
700
+ };
707
701
  platform_editor_task_item_styles: {
708
702
  defaultValue: boolean;
709
703
  param: string;
@@ -1302,6 +1296,12 @@ export declare const editorExperimentsConfig: {
1302
1296
  productKeys?: ProductKeys;
1303
1297
  typeGuard: IsBooleanType;
1304
1298
  };
1299
+ platform_editor_inline_media_copy_paste_fix: {
1300
+ defaultValue: boolean;
1301
+ param: string;
1302
+ productKeys?: ProductKeys;
1303
+ typeGuard: IsBooleanType;
1304
+ };
1305
1305
  platform_editor_misaligned_ai_screens_firefox_fix: {
1306
1306
  defaultValue: boolean;
1307
1307
  param: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Returns whether a Statsig dynamic config's string list (under the `value` key) includes `token`
3
+ * (exact match).
4
+ *
5
+ * Used for UX tokens such as `remove-rovo-placeholder` inside `platform_editor_ai_autocomplete_ux_config`.
6
+ */
7
+ export declare function dynamicConfigStringListIncludes(configName: string, token: string): boolean;
@@ -202,12 +202,6 @@ export declare const editorExperimentsConfig: {
202
202
  productKeys?: ProductKeys;
203
203
  typeGuard: IsBooleanType;
204
204
  };
205
- editor_refactor_backspace_task_and_decisions: {
206
- defaultValue: boolean;
207
- param: string;
208
- productKeys?: ProductKeys;
209
- typeGuard: IsBooleanType;
210
- };
211
205
  platform_editor_paste_actions_menu: {
212
206
  defaultValue: boolean;
213
207
  param: string;
@@ -559,12 +553,6 @@ export declare const editorExperimentsConfig: {
559
553
  productKeys?: ProductKeys;
560
554
  typeGuard: IsBooleanType;
561
555
  };
562
- platform_editor_nested_table_refresh_width_fix: {
563
- defaultValue: boolean;
564
- param: string;
565
- productKeys?: ProductKeys;
566
- typeGuard: IsBooleanType;
567
- };
568
556
  platform_editor_no_cursor_on_edit_page_init: {
569
557
  defaultValue: boolean;
570
558
  param: string;
@@ -704,6 +692,12 @@ export declare const editorExperimentsConfig: {
704
692
  productKeys?: ProductKeys;
705
693
  typeGuard: IsBooleanType;
706
694
  };
695
+ platform_editor_table_ref_optimisation: {
696
+ defaultValue: boolean;
697
+ param: string;
698
+ productKeys?: ProductKeys;
699
+ typeGuard: IsBooleanType;
700
+ };
707
701
  platform_editor_task_item_styles: {
708
702
  defaultValue: boolean;
709
703
  param: string;
@@ -1302,6 +1296,12 @@ export declare const editorExperimentsConfig: {
1302
1296
  productKeys?: ProductKeys;
1303
1297
  typeGuard: IsBooleanType;
1304
1298
  };
1299
+ platform_editor_inline_media_copy_paste_fix: {
1300
+ defaultValue: boolean;
1301
+ param: string;
1302
+ productKeys?: ProductKeys;
1303
+ typeGuard: IsBooleanType;
1304
+ };
1305
1305
  platform_editor_misaligned_ai_screens_firefox_fix: {
1306
1306
  defaultValue: boolean;
1307
1307
  param: string;
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "@atlaskit/tmp-editor-statsig/dynamic-config-value-contains",
3
+ "main": "../dist/cjs/dynamic-config-value-contains.js",
4
+ "module": "../dist/esm/dynamic-config-value-contains.js",
5
+ "module:es2019": "../dist/es2019/dynamic-config-value-contains.js",
6
+ "types": "../dist/types/dynamic-config-value-contains.d.ts",
7
+ "typesVersions": {
8
+ ">=4.5 <5.9": {
9
+ "*": [
10
+ "../dist/types-ts4.5/dynamic-config-value-contains.d.ts"
11
+ ]
12
+ }
13
+ }
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "43.0.0",
3
+ "version": "44.1.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",