@atlaskit/tmp-editor-statsig 44.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,18 @@
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
+
3
16
  ## 44.0.0
4
17
 
5
18
  ### 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
+ }
@@ -1756,6 +1756,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
1756
1756
  param: 'isEnabled',
1757
1757
  defaultValue: false
1758
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
+ }),
1759
1767
  // Added 2026-03-20
1760
1768
  platform_editor_chromeless_expand_fix: (0, _experimentBuilders.createBooleanExperiment)({
1761
1769
  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
+ }
@@ -1750,6 +1750,14 @@ export const editorExperimentsConfig = {
1750
1750
  param: 'isEnabled',
1751
1751
  defaultValue: false
1752
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
+ }),
1753
1761
  // Added 2026-03-20
1754
1762
  platform_editor_chromeless_expand_fix: createBooleanExperiment({
1755
1763
  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
+ }
@@ -1750,6 +1750,14 @@ export var editorExperimentsConfig = {
1750
1750
  param: 'isEnabled',
1751
1751
  defaultValue: false
1752
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
+ }),
1753
1761
  // Added 2026-03-20
1754
1762
  platform_editor_chromeless_expand_fix: createBooleanExperiment({
1755
1763
  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;
@@ -692,6 +692,12 @@ export declare const editorExperimentsConfig: {
692
692
  productKeys?: ProductKeys;
693
693
  typeGuard: IsBooleanType;
694
694
  };
695
+ platform_editor_table_ref_optimisation: {
696
+ defaultValue: boolean;
697
+ param: string;
698
+ productKeys?: ProductKeys;
699
+ typeGuard: IsBooleanType;
700
+ };
695
701
  platform_editor_task_item_styles: {
696
702
  defaultValue: boolean;
697
703
  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;
@@ -692,6 +692,12 @@ export declare const editorExperimentsConfig: {
692
692
  productKeys?: ProductKeys;
693
693
  typeGuard: IsBooleanType;
694
694
  };
695
+ platform_editor_table_ref_optimisation: {
696
+ defaultValue: boolean;
697
+ param: string;
698
+ productKeys?: ProductKeys;
699
+ typeGuard: IsBooleanType;
700
+ };
695
701
  platform_editor_task_item_styles: {
696
702
  defaultValue: boolean;
697
703
  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": "44.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",