@atlaskit/tmp-editor-statsig 44.0.0 → 44.2.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 +25 -0
- package/dist/cjs/dynamic-config-value-contains.js +38 -0
- package/dist/cjs/experiments-config.js +24 -0
- package/dist/es2019/dynamic-config-value-contains.js +29 -0
- package/dist/es2019/experiments-config.js +24 -0
- package/dist/esm/dynamic-config-value-contains.js +31 -0
- package/dist/esm/experiments-config.js +24 -0
- package/dist/types/dynamic-config-value-contains.d.ts +7 -0
- package/dist/types/experiments-config.d.ts +18 -0
- package/dist/types-ts4.5/dynamic-config-value-contains.d.ts +7 -0
- package/dist/types-ts4.5/experiments-config.d.ts +18 -0
- package/dynamic-config-value-contains/package.json +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 44.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`aa4e1fcb89ca8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aa4e1fcb89ca8) -
|
|
8
|
+
Added new `platform_editor_flexible_list_schema` experiment that independently enables ADF schema
|
|
9
|
+
and CSS rendering support for flexible lists, without creation behaviour. Updated schema node
|
|
10
|
+
selection, CSS rendering, ADF validation, and task list schema to use the new gate. Indent/outdent
|
|
11
|
+
behaviour remains on the existing `platform_editor_flexible_list_indentation` gate.
|
|
12
|
+
- [`bd008993d07cd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd008993d07cd) -
|
|
13
|
+
Reuse the same selectors for determinig hover locations and location to draw drag handle
|
|
14
|
+
|
|
15
|
+
## 44.1.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [`d43c8a96e6740`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d43c8a96e6740) -
|
|
20
|
+
Gate table ref update dispatch behind tableActive check to avoid unnecessary transactions firing
|
|
21
|
+
for every table on the page
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [`4fa16b0f7b7a3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4fa16b0f7b7a3) -
|
|
26
|
+
Add dynamic config function for string list and use to turn Rovo placeholder off.
|
|
27
|
+
|
|
3
28
|
## 44.0.0
|
|
4
29
|
|
|
5
30
|
### 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
|
+
}
|
|
@@ -915,6 +915,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
915
915
|
param: 'isEnabled',
|
|
916
916
|
defaultValue: false
|
|
917
917
|
}),
|
|
918
|
+
platform_editor_unify_native_dnd_selectors: (0, _experimentBuilders.createBooleanExperiment)({
|
|
919
|
+
productKeys: {
|
|
920
|
+
confluence: 'platform_editor_unify_native_dnd_selectors',
|
|
921
|
+
jira: 'platform_editor_unify_native_dnd_selectors'
|
|
922
|
+
},
|
|
923
|
+
param: 'isEnabled',
|
|
924
|
+
defaultValue: false
|
|
925
|
+
}),
|
|
918
926
|
// Added 2025-09-10
|
|
919
927
|
platform_editor_fix_button_name_violation_in_table: (0, _experimentBuilders.createBooleanExperiment)({
|
|
920
928
|
productKeys: {
|
|
@@ -1527,6 +1535,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
1527
1535
|
param: 'isEnabled',
|
|
1528
1536
|
defaultValue: false
|
|
1529
1537
|
}),
|
|
1538
|
+
// Added 2026-03-24
|
|
1539
|
+
platform_editor_flexible_list_schema: (0, _experimentBuilders.createBooleanExperiment)({
|
|
1540
|
+
productKeys: {
|
|
1541
|
+
confluence: 'platform_editor_flexible_list_schema'
|
|
1542
|
+
},
|
|
1543
|
+
param: 'isEnabled',
|
|
1544
|
+
defaultValue: false
|
|
1545
|
+
}),
|
|
1530
1546
|
// Added 2026-02-24
|
|
1531
1547
|
platform_editor_emoji_default_scale: (0, _experimentBuilders.createBooleanExperiment)({
|
|
1532
1548
|
productKeys: {
|
|
@@ -1756,6 +1772,14 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
1756
1772
|
param: 'isEnabled',
|
|
1757
1773
|
defaultValue: false
|
|
1758
1774
|
}),
|
|
1775
|
+
// Added 2026-03-24
|
|
1776
|
+
platform_editor_table_ref_optimisation: (0, _experimentBuilders.createBooleanExperiment)({
|
|
1777
|
+
productKeys: {
|
|
1778
|
+
confluence: 'platform_editor_table_ref_optimisation'
|
|
1779
|
+
},
|
|
1780
|
+
param: 'isEnabled',
|
|
1781
|
+
defaultValue: false
|
|
1782
|
+
}),
|
|
1759
1783
|
// Added 2026-03-20
|
|
1760
1784
|
platform_editor_chromeless_expand_fix: (0, _experimentBuilders.createBooleanExperiment)({
|
|
1761
1785
|
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
|
+
}
|
|
@@ -909,6 +909,14 @@ export const editorExperimentsConfig = {
|
|
|
909
909
|
param: 'isEnabled',
|
|
910
910
|
defaultValue: false
|
|
911
911
|
}),
|
|
912
|
+
platform_editor_unify_native_dnd_selectors: createBooleanExperiment({
|
|
913
|
+
productKeys: {
|
|
914
|
+
confluence: 'platform_editor_unify_native_dnd_selectors',
|
|
915
|
+
jira: 'platform_editor_unify_native_dnd_selectors'
|
|
916
|
+
},
|
|
917
|
+
param: 'isEnabled',
|
|
918
|
+
defaultValue: false
|
|
919
|
+
}),
|
|
912
920
|
// Added 2025-09-10
|
|
913
921
|
platform_editor_fix_button_name_violation_in_table: createBooleanExperiment({
|
|
914
922
|
productKeys: {
|
|
@@ -1521,6 +1529,14 @@ export const editorExperimentsConfig = {
|
|
|
1521
1529
|
param: 'isEnabled',
|
|
1522
1530
|
defaultValue: false
|
|
1523
1531
|
}),
|
|
1532
|
+
// Added 2026-03-24
|
|
1533
|
+
platform_editor_flexible_list_schema: createBooleanExperiment({
|
|
1534
|
+
productKeys: {
|
|
1535
|
+
confluence: 'platform_editor_flexible_list_schema'
|
|
1536
|
+
},
|
|
1537
|
+
param: 'isEnabled',
|
|
1538
|
+
defaultValue: false
|
|
1539
|
+
}),
|
|
1524
1540
|
// Added 2026-02-24
|
|
1525
1541
|
platform_editor_emoji_default_scale: createBooleanExperiment({
|
|
1526
1542
|
productKeys: {
|
|
@@ -1750,6 +1766,14 @@ export const editorExperimentsConfig = {
|
|
|
1750
1766
|
param: 'isEnabled',
|
|
1751
1767
|
defaultValue: false
|
|
1752
1768
|
}),
|
|
1769
|
+
// Added 2026-03-24
|
|
1770
|
+
platform_editor_table_ref_optimisation: createBooleanExperiment({
|
|
1771
|
+
productKeys: {
|
|
1772
|
+
confluence: 'platform_editor_table_ref_optimisation'
|
|
1773
|
+
},
|
|
1774
|
+
param: 'isEnabled',
|
|
1775
|
+
defaultValue: false
|
|
1776
|
+
}),
|
|
1753
1777
|
// Added 2026-03-20
|
|
1754
1778
|
platform_editor_chromeless_expand_fix: createBooleanExperiment({
|
|
1755
1779
|
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
|
+
}
|
|
@@ -909,6 +909,14 @@ export var editorExperimentsConfig = {
|
|
|
909
909
|
param: 'isEnabled',
|
|
910
910
|
defaultValue: false
|
|
911
911
|
}),
|
|
912
|
+
platform_editor_unify_native_dnd_selectors: createBooleanExperiment({
|
|
913
|
+
productKeys: {
|
|
914
|
+
confluence: 'platform_editor_unify_native_dnd_selectors',
|
|
915
|
+
jira: 'platform_editor_unify_native_dnd_selectors'
|
|
916
|
+
},
|
|
917
|
+
param: 'isEnabled',
|
|
918
|
+
defaultValue: false
|
|
919
|
+
}),
|
|
912
920
|
// Added 2025-09-10
|
|
913
921
|
platform_editor_fix_button_name_violation_in_table: createBooleanExperiment({
|
|
914
922
|
productKeys: {
|
|
@@ -1521,6 +1529,14 @@ export var editorExperimentsConfig = {
|
|
|
1521
1529
|
param: 'isEnabled',
|
|
1522
1530
|
defaultValue: false
|
|
1523
1531
|
}),
|
|
1532
|
+
// Added 2026-03-24
|
|
1533
|
+
platform_editor_flexible_list_schema: createBooleanExperiment({
|
|
1534
|
+
productKeys: {
|
|
1535
|
+
confluence: 'platform_editor_flexible_list_schema'
|
|
1536
|
+
},
|
|
1537
|
+
param: 'isEnabled',
|
|
1538
|
+
defaultValue: false
|
|
1539
|
+
}),
|
|
1524
1540
|
// Added 2026-02-24
|
|
1525
1541
|
platform_editor_emoji_default_scale: createBooleanExperiment({
|
|
1526
1542
|
productKeys: {
|
|
@@ -1750,6 +1766,14 @@ export var editorExperimentsConfig = {
|
|
|
1750
1766
|
param: 'isEnabled',
|
|
1751
1767
|
defaultValue: false
|
|
1752
1768
|
}),
|
|
1769
|
+
// Added 2026-03-24
|
|
1770
|
+
platform_editor_table_ref_optimisation: createBooleanExperiment({
|
|
1771
|
+
productKeys: {
|
|
1772
|
+
confluence: 'platform_editor_table_ref_optimisation'
|
|
1773
|
+
},
|
|
1774
|
+
param: 'isEnabled',
|
|
1775
|
+
defaultValue: false
|
|
1776
|
+
}),
|
|
1753
1777
|
// Added 2026-03-20
|
|
1754
1778
|
platform_editor_chromeless_expand_fix: createBooleanExperiment({
|
|
1755
1779
|
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;
|
|
@@ -160,6 +160,12 @@ export declare const editorExperimentsConfig: {
|
|
|
160
160
|
productKeys?: ProductKeys;
|
|
161
161
|
typeGuard: IsBooleanType;
|
|
162
162
|
};
|
|
163
|
+
platform_editor_unify_native_dnd_selectors: {
|
|
164
|
+
defaultValue: boolean;
|
|
165
|
+
param: string;
|
|
166
|
+
productKeys?: ProductKeys;
|
|
167
|
+
typeGuard: IsBooleanType;
|
|
168
|
+
};
|
|
163
169
|
ai_speech_to_text_in_editor: {
|
|
164
170
|
defaultValue: boolean;
|
|
165
171
|
param: string;
|
|
@@ -692,6 +698,12 @@ export declare const editorExperimentsConfig: {
|
|
|
692
698
|
productKeys?: ProductKeys;
|
|
693
699
|
typeGuard: IsBooleanType;
|
|
694
700
|
};
|
|
701
|
+
platform_editor_table_ref_optimisation: {
|
|
702
|
+
defaultValue: boolean;
|
|
703
|
+
param: string;
|
|
704
|
+
productKeys?: ProductKeys;
|
|
705
|
+
typeGuard: IsBooleanType;
|
|
706
|
+
};
|
|
695
707
|
platform_editor_task_item_styles: {
|
|
696
708
|
defaultValue: boolean;
|
|
697
709
|
param: string;
|
|
@@ -1086,6 +1098,12 @@ export declare const editorExperimentsConfig: {
|
|
|
1086
1098
|
productKeys?: ProductKeys;
|
|
1087
1099
|
typeGuard: IsBooleanType;
|
|
1088
1100
|
};
|
|
1101
|
+
platform_editor_flexible_list_schema: {
|
|
1102
|
+
defaultValue: boolean;
|
|
1103
|
+
param: string;
|
|
1104
|
+
productKeys?: ProductKeys;
|
|
1105
|
+
typeGuard: IsBooleanType;
|
|
1106
|
+
};
|
|
1089
1107
|
platform_editor_vc90_transition_table_border: {
|
|
1090
1108
|
defaultValue: boolean;
|
|
1091
1109
|
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;
|
|
@@ -160,6 +160,12 @@ export declare const editorExperimentsConfig: {
|
|
|
160
160
|
productKeys?: ProductKeys;
|
|
161
161
|
typeGuard: IsBooleanType;
|
|
162
162
|
};
|
|
163
|
+
platform_editor_unify_native_dnd_selectors: {
|
|
164
|
+
defaultValue: boolean;
|
|
165
|
+
param: string;
|
|
166
|
+
productKeys?: ProductKeys;
|
|
167
|
+
typeGuard: IsBooleanType;
|
|
168
|
+
};
|
|
163
169
|
ai_speech_to_text_in_editor: {
|
|
164
170
|
defaultValue: boolean;
|
|
165
171
|
param: string;
|
|
@@ -692,6 +698,12 @@ export declare const editorExperimentsConfig: {
|
|
|
692
698
|
productKeys?: ProductKeys;
|
|
693
699
|
typeGuard: IsBooleanType;
|
|
694
700
|
};
|
|
701
|
+
platform_editor_table_ref_optimisation: {
|
|
702
|
+
defaultValue: boolean;
|
|
703
|
+
param: string;
|
|
704
|
+
productKeys?: ProductKeys;
|
|
705
|
+
typeGuard: IsBooleanType;
|
|
706
|
+
};
|
|
695
707
|
platform_editor_task_item_styles: {
|
|
696
708
|
defaultValue: boolean;
|
|
697
709
|
param: string;
|
|
@@ -1086,6 +1098,12 @@ export declare const editorExperimentsConfig: {
|
|
|
1086
1098
|
productKeys?: ProductKeys;
|
|
1087
1099
|
typeGuard: IsBooleanType;
|
|
1088
1100
|
};
|
|
1101
|
+
platform_editor_flexible_list_schema: {
|
|
1102
|
+
defaultValue: boolean;
|
|
1103
|
+
param: string;
|
|
1104
|
+
productKeys?: ProductKeys;
|
|
1105
|
+
typeGuard: IsBooleanType;
|
|
1106
|
+
};
|
|
1089
1107
|
platform_editor_vc90_transition_table_border: {
|
|
1090
1108
|
defaultValue: boolean;
|
|
1091
1109
|
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