@atlaskit/tmp-editor-statsig 159.0.0 → 159.0.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 159.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
8
+ VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
9
+ voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
10
+ changes.
11
+
3
12
  ## 159.0.0
4
13
 
5
14
  ### Major Changes
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.dynamicConfigStringListIncludes = dynamicConfigStringListIncludes;
8
- var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
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 (!_featureGateJsClient.default.initializeCompleted()) {
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 = _featureGateJsClient.default.getExperiment(configName);
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;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.expValEqualsInternal = expValEqualsInternal;
8
- var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
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 (!_featureGateJsClient.default.initializeCompleted()) {
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 = _featureGateJsClient.default.getExperimentValue(experimentKeyName, experimentParam, experimentDefaultValue, {
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
- _featureGateJsClient.default.getExperimentValue('cc_editor_experiments_ufo_gate_reporting', 'isEnabled', false)) {
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
  }
@@ -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
  function isStringList(value) {
3
3
  return Array.isArray(value) && value.every(item => typeof item === 'string');
4
4
  }
@@ -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';
@@ -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
  function isStringList(value) {
3
3
  return Array.isArray(value) && value.every(function (item) {
4
4
  return typeof item === 'string';
@@ -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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "159.0.0",
3
+ "version": "159.0.1",
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",