@atlaskit/tmp-editor-statsig 159.0.0 → 160.0.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 +17 -0
- package/dist/cjs/dynamic-config-value-contains.js +3 -3
- package/dist/cjs/exp-test-overrides.js +0 -1
- package/dist/cjs/exp-val-equals-internal.js +4 -4
- package/dist/cjs/experiments-config.js +0 -8
- package/dist/es2019/dynamic-config-value-contains.js +1 -1
- package/dist/es2019/exp-test-overrides.js +0 -1
- package/dist/es2019/exp-val-equals-internal.js +1 -1
- package/dist/es2019/experiments-config.js +0 -8
- package/dist/esm/dynamic-config-value-contains.js +1 -1
- package/dist/esm/exp-test-overrides.js +0 -1
- package/dist/esm/exp-val-equals-internal.js +1 -1
- package/dist/esm/experiments-config.js +0 -8
- package/dist/types/experiments-config.d.ts +0 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 160.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`b4c4cd8f205e4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b4c4cd8f205e4) -
|
|
8
|
+
Clean up experiment `platform_editor_prevent_toolbar_layout_shifts` and keep the enabled toolbar
|
|
9
|
+
layout behavior.
|
|
10
|
+
|
|
11
|
+
## 159.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
|
|
16
|
+
VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
|
|
17
|
+
voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
|
|
18
|
+
changes.
|
|
19
|
+
|
|
3
20
|
## 159.0.0
|
|
4
21
|
|
|
5
22
|
### Major Changes
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.dynamicConfigStringListIncludes = dynamicConfigStringListIncludes;
|
|
8
|
-
var
|
|
8
|
+
var _featureGates = _interopRequireDefault(require("@atlaskit/feature-gate-js-client/feature-gates"));
|
|
9
9
|
function isStringList(value) {
|
|
10
10
|
return Array.isArray(value) && value.every(function (item) {
|
|
11
11
|
return typeof item === 'string';
|
|
@@ -20,13 +20,13 @@ var STRING_LIST_CONFIG_KEY = 'value';
|
|
|
20
20
|
* Used for UX tokens such as `remove-rovo-placeholder` inside `platform_editor_ai_autocomplete_ux_config`.
|
|
21
21
|
*/
|
|
22
22
|
function dynamicConfigStringListIncludes(configName, token) {
|
|
23
|
-
if (!
|
|
23
|
+
if (!_featureGates.default.initializeCompleted()) {
|
|
24
24
|
return false;
|
|
25
25
|
}
|
|
26
26
|
try {
|
|
27
27
|
// Dynamic configs are exposed through the same client surface as experiments.
|
|
28
28
|
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
29
|
-
var config =
|
|
29
|
+
var config = _featureGates.default.getExperiment(configName);
|
|
30
30
|
var listCandidate = config.value[STRING_LIST_CONFIG_KEY];
|
|
31
31
|
if (!isStringList(listCandidate)) {
|
|
32
32
|
return false;
|
|
@@ -35,7 +35,6 @@ var testBooleanOverrides = exports.testBooleanOverrides = {
|
|
|
35
35
|
'test-new-experiments-package': false,
|
|
36
36
|
platform_editor_exp_lazy_node_views: false,
|
|
37
37
|
platform_renderer_table_sticky_scrollbar: false,
|
|
38
|
-
platform_editor_prevent_toolbar_layout_shifts: false,
|
|
39
38
|
comment_on_bodied_extensions: false,
|
|
40
39
|
advanced_layouts: false,
|
|
41
40
|
single_column_layouts: false,
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.expValEqualsInternal = expValEqualsInternal;
|
|
8
|
-
var
|
|
8
|
+
var _featureGates = _interopRequireDefault(require("@atlaskit/feature-gate-js-client/feature-gates"));
|
|
9
9
|
var _featureFlagsAccessed = require("@atlaskit/react-ufo/feature-flags-accessed");
|
|
10
10
|
var _experimentsConfig = require("./experiments-config");
|
|
11
11
|
var _setup = require("./setup");
|
|
@@ -37,7 +37,7 @@ function expValEqualsInternal(experimentName, experimentParam, experimentExpecte
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
// If client is not initialized, we compare with the default value
|
|
40
|
-
if (!
|
|
40
|
+
if (!_featureGates.default.initializeCompleted()) {
|
|
41
41
|
return experimentDefaultValue === experimentExpectedValue;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -46,12 +46,12 @@ function expValEqualsInternal(experimentName, experimentParam, experimentExpecte
|
|
|
46
46
|
(_editorExperimentsCon = (_editorExperimentsCon2 = _experimentsConfig.editorExperimentsConfig[experimentName]) === null || _editorExperimentsCon2 === void 0 || (_editorExperimentsCon2 = _editorExperimentsCon2.productKeys) === null || _editorExperimentsCon2 === void 0 ? void 0 : _editorExperimentsCon2[_setup._product]) !== null && _editorExperimentsCon !== void 0 ? _editorExperimentsCon : experimentName : experimentName;
|
|
47
47
|
|
|
48
48
|
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
49
|
-
var experimentValue =
|
|
49
|
+
var experimentValue = _featureGates.default.getExperimentValue(experimentKeyName, experimentParam, experimentDefaultValue, {
|
|
50
50
|
fireExperimentExposure: experimentExposure
|
|
51
51
|
});
|
|
52
52
|
if (
|
|
53
53
|
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
54
|
-
|
|
54
|
+
_featureGates.default.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
|
|
55
55
|
// Duplicated from /confluence/next/packages/feature-experiments/src/index.ts
|
|
56
56
|
(0, _featureFlagsAccessed.addFeatureFlagAccessed)("".concat(experimentKeyName, ":").concat(experimentParam), experimentValue);
|
|
57
57
|
}
|
|
@@ -377,14 +377,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
377
377
|
param: 'isEnabled',
|
|
378
378
|
defaultValue: false
|
|
379
379
|
}),
|
|
380
|
-
// Added 2025-05-26
|
|
381
|
-
platform_editor_prevent_toolbar_layout_shifts: (0, _createBooleanExperiment.createBooleanExperiment)({
|
|
382
|
-
productKeys: {
|
|
383
|
-
confluence: 'platform_editor_prevent_toolbar_layout_shifts'
|
|
384
|
-
},
|
|
385
|
-
param: 'isEnabled',
|
|
386
|
-
defaultValue: false
|
|
387
|
-
}),
|
|
388
380
|
// Added 2024-10-01
|
|
389
381
|
comment_on_bodied_extensions: (0, _createBooleanExperiment.createBooleanExperiment)({
|
|
390
382
|
productKeys: {
|
|
@@ -29,7 +29,6 @@ export const testBooleanOverrides = {
|
|
|
29
29
|
'test-new-experiments-package': false,
|
|
30
30
|
platform_editor_exp_lazy_node_views: false,
|
|
31
31
|
platform_renderer_table_sticky_scrollbar: false,
|
|
32
|
-
platform_editor_prevent_toolbar_layout_shifts: false,
|
|
33
32
|
comment_on_bodied_extensions: false,
|
|
34
33
|
advanced_layouts: false,
|
|
35
34
|
single_column_layouts: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
1
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
2
2
|
import { addFeatureFlagAccessed } from '@atlaskit/react-ufo/feature-flags-accessed';
|
|
3
3
|
import { editorExperimentsConfig } from './experiments-config';
|
|
4
4
|
import { _overrides, _product } from './setup';
|
|
@@ -371,14 +371,6 @@ export const editorExperimentsConfig = {
|
|
|
371
371
|
param: 'isEnabled',
|
|
372
372
|
defaultValue: false
|
|
373
373
|
}),
|
|
374
|
-
// Added 2025-05-26
|
|
375
|
-
platform_editor_prevent_toolbar_layout_shifts: createBooleanExperiment({
|
|
376
|
-
productKeys: {
|
|
377
|
-
confluence: 'platform_editor_prevent_toolbar_layout_shifts'
|
|
378
|
-
},
|
|
379
|
-
param: 'isEnabled',
|
|
380
|
-
defaultValue: false
|
|
381
|
-
}),
|
|
382
374
|
// Added 2024-10-01
|
|
383
375
|
comment_on_bodied_extensions: createBooleanExperiment({
|
|
384
376
|
productKeys: {
|
|
@@ -29,7 +29,6 @@ export var testBooleanOverrides = {
|
|
|
29
29
|
'test-new-experiments-package': false,
|
|
30
30
|
platform_editor_exp_lazy_node_views: false,
|
|
31
31
|
platform_renderer_table_sticky_scrollbar: false,
|
|
32
|
-
platform_editor_prevent_toolbar_layout_shifts: false,
|
|
33
32
|
comment_on_bodied_extensions: false,
|
|
34
33
|
advanced_layouts: false,
|
|
35
34
|
single_column_layouts: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
1
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
2
2
|
import { addFeatureFlagAccessed } from '@atlaskit/react-ufo/feature-flags-accessed';
|
|
3
3
|
import { editorExperimentsConfig } from './experiments-config';
|
|
4
4
|
import { _overrides, _product } from './setup';
|
|
@@ -371,14 +371,6 @@ export var editorExperimentsConfig = {
|
|
|
371
371
|
param: 'isEnabled',
|
|
372
372
|
defaultValue: false
|
|
373
373
|
}),
|
|
374
|
-
// Added 2025-05-26
|
|
375
|
-
platform_editor_prevent_toolbar_layout_shifts: createBooleanExperiment({
|
|
376
|
-
productKeys: {
|
|
377
|
-
confluence: 'platform_editor_prevent_toolbar_layout_shifts'
|
|
378
|
-
},
|
|
379
|
-
param: 'isEnabled',
|
|
380
|
-
defaultValue: false
|
|
381
|
-
}),
|
|
382
374
|
// Added 2024-10-01
|
|
383
375
|
comment_on_bodied_extensions: createBooleanExperiment({
|
|
384
376
|
productKeys: {
|
|
@@ -574,12 +574,6 @@ export declare const editorExperimentsConfig: {
|
|
|
574
574
|
productKeys?: ProductKeys;
|
|
575
575
|
typeGuard: IsBooleanType;
|
|
576
576
|
};
|
|
577
|
-
platform_editor_prevent_toolbar_layout_shifts: {
|
|
578
|
-
defaultValue: boolean;
|
|
579
|
-
param: string;
|
|
580
|
-
productKeys?: ProductKeys;
|
|
581
|
-
typeGuard: IsBooleanType;
|
|
582
|
-
};
|
|
583
577
|
platform_editor_preview_panel_responsiveness: {
|
|
584
578
|
defaultValue: boolean;
|
|
585
579
|
param: string;
|
package/package.json
CHANGED