@atlaskit/tmp-editor-statsig 13.42.0 → 13.42.1
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 +7 -0
- package/dist/cjs/expVal.js +7 -0
- package/dist/es2019/expVal.js +7 -0
- package/dist/esm/expVal.js +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-statsig-tmp
|
|
2
2
|
|
|
3
|
+
## 13.42.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c36719b325b2d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c36719b325b2d) -
|
|
8
|
+
ED-29674 Enabling UFO tooling for expVal
|
|
9
|
+
|
|
3
10
|
## 13.42.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/dist/cjs/expVal.js
CHANGED
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.expVal = expVal;
|
|
8
8
|
exports.expValNoExposure = expValNoExposure;
|
|
9
9
|
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
10
|
+
var _featureFlagsAccessed = require("@atlaskit/react-ufo/feature-flags-accessed");
|
|
10
11
|
var _experimentsConfig = require("./experiments-config");
|
|
11
12
|
var _setup = require("./setup");
|
|
12
13
|
function expValInternal(_ref) {
|
|
@@ -58,6 +59,12 @@ function expValInternal(_ref) {
|
|
|
58
59
|
var experimentValue = _featureGateJsClient.default.getExperimentValue(experimentName, experimentParam, defaultValue, {
|
|
59
60
|
fireExperimentExposure: fireExperimentExposure
|
|
60
61
|
});
|
|
62
|
+
if (
|
|
63
|
+
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
64
|
+
_featureGateJsClient.default.getExperimentValue('cc_editor_experiments_ufo_gate_reporting_expval', 'isEnabled', false)) {
|
|
65
|
+
// Duplicated from /confluence/next/packages/feature-experiments/src/index.ts
|
|
66
|
+
(0, _featureFlagsAccessed.addFeatureFlagAccessed)("".concat(experimentName, ":").concat(experimentParam), experimentValue);
|
|
67
|
+
}
|
|
61
68
|
return experimentValue;
|
|
62
69
|
}
|
|
63
70
|
|
package/dist/es2019/expVal.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
2
|
+
import { addFeatureFlagAccessed } from '@atlaskit/react-ufo/feature-flags-accessed';
|
|
2
3
|
import { editorExperimentsConfig } from './experiments-config';
|
|
3
4
|
import { _overrides, _paramOverrides, _product } from './setup';
|
|
4
5
|
function expValInternal({
|
|
@@ -51,6 +52,12 @@ function expValInternal({
|
|
|
51
52
|
const experimentValue = FeatureGates.getExperimentValue(experimentName, experimentParam, defaultValue, {
|
|
52
53
|
fireExperimentExposure: fireExperimentExposure
|
|
53
54
|
});
|
|
55
|
+
if (
|
|
56
|
+
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
57
|
+
FeatureGates.getExperimentValue('cc_editor_experiments_ufo_gate_reporting_expval', 'isEnabled', false)) {
|
|
58
|
+
// Duplicated from /confluence/next/packages/feature-experiments/src/index.ts
|
|
59
|
+
addFeatureFlagAccessed(`${experimentName}:${experimentParam}`, experimentValue);
|
|
60
|
+
}
|
|
54
61
|
return experimentValue;
|
|
55
62
|
}
|
|
56
63
|
|
package/dist/esm/expVal.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
2
|
+
import { addFeatureFlagAccessed } from '@atlaskit/react-ufo/feature-flags-accessed';
|
|
2
3
|
import { editorExperimentsConfig } from './experiments-config';
|
|
3
4
|
import { _overrides, _paramOverrides, _product } from './setup';
|
|
4
5
|
function expValInternal(_ref) {
|
|
@@ -50,6 +51,12 @@ function expValInternal(_ref) {
|
|
|
50
51
|
var experimentValue = FeatureGates.getExperimentValue(experimentName, experimentParam, defaultValue, {
|
|
51
52
|
fireExperimentExposure: fireExperimentExposure
|
|
52
53
|
});
|
|
54
|
+
if (
|
|
55
|
+
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
56
|
+
FeatureGates.getExperimentValue('cc_editor_experiments_ufo_gate_reporting_expval', 'isEnabled', false)) {
|
|
57
|
+
// Duplicated from /confluence/next/packages/feature-experiments/src/index.ts
|
|
58
|
+
addFeatureFlagAccessed("".concat(experimentName, ":").concat(experimentParam), experimentValue);
|
|
59
|
+
}
|
|
53
60
|
return experimentValue;
|
|
54
61
|
}
|
|
55
62
|
|
package/package.json
CHANGED