@atlaskit/tmp-editor-statsig 147.1.0 → 148.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 148.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`24a6057e3d2f3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/24a6057e3d2f3) -
8
+ Clean up experiment `platform_editor_dom_node_count`. `editorDomSize` is now always reported on
9
+ the editor `inp` and `proseMirrorRendered` events.
10
+
3
11
  ## 147.1.0
4
12
 
5
13
  ### Minor Changes
@@ -31,10 +31,8 @@ var allowsProductKeys = ['cc-maui-experiment', 'cc_maui_create_keyword', 'cc_mau
31
31
  */
32
32
  function expValEqualsInternal(experimentName, experimentParam, experimentExpectedValue, experimentDefaultValue, experimentExposure) {
33
33
  var _editorExperimentsCon, _editorExperimentsCon2;
34
- // @ts-ignore need to loosen the type here to allow for any experiment name
35
34
  if (_setup._overrides[experimentName] !== undefined) {
36
35
  // This will be hit in the case of a test setting an override
37
- // @ts-ignore need to loosen the type here to allow for any experiment name
38
36
  return _setup._overrides[experimentName] === experimentExpectedValue;
39
37
  }
40
38
 
@@ -24,8 +24,6 @@ function expValInternal(_ref) {
24
24
  // We will definitely crash via any code path later in this function - this just makes the error explicit and clear.
25
25
  throw new Error("Editor experiment configuration is not defined ".concat(experimentName, ". Likely the experiment does not exist or editor package versions are misaligned"));
26
26
  }
27
-
28
- // @ts-ignore need to loosen the type here to allow for any experiment name
29
27
  if (_setup._overrides[experimentName] !== undefined) {
30
28
  // This will be hit in the case of a test setting an override
31
29
  // @ts-ignore need to loosen the type here to allow for any experiment name
@@ -214,14 +214,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
214
214
  param: 'isEnabled',
215
215
  defaultValue: false
216
216
  }),
217
- // Added 2026-07-14
218
- platform_editor_dom_node_count: (0, _experimentBuilders.createBooleanExperiment)({
219
- productKeys: {
220
- confluence: 'platform_editor_dom_node_count'
221
- },
222
- param: 'isEnabled',
223
- defaultValue: false
224
- }),
225
217
  // Added 2026-03-26
226
218
  cc_editor_fix_insm_inp_buffer: (0, _experimentBuilders.createBooleanExperiment)({
227
219
  productKeys: {
@@ -93,9 +93,7 @@ function editorExperiment(experimentName, expectedExperimentValue) {
93
93
  }
94
94
 
95
95
  // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
96
- var experimentValue = _featureGateJsClient.default.getExperimentValue(
97
- // @ts-ignore
98
- experimentKey, experimentConfig.param, experimentConfig.defaultValue, {
96
+ var experimentValue = _featureGateJsClient.default.getExperimentValue(experimentKey, experimentConfig.param, experimentConfig.defaultValue, {
99
97
  typeGuard: experimentConfig.typeGuard,
100
98
  fireExperimentExposure: options.exposure
101
99
  });
package/dist/cjs/setup.js CHANGED
@@ -43,7 +43,6 @@ paramOverrides, options) {
43
43
  // values.
44
44
  // For production usage -- this is done via the feature flag client which takes the type
45
45
  // and performs equivalent logic.
46
- // @ts-ignore
47
46
  groupOverrides = Object.entries(groupOverrides).reduce(function (acc, _ref) {
48
47
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
49
48
  key = _ref2[0],
@@ -25,10 +25,8 @@ const allowsProductKeys = ['cc-maui-experiment', 'cc_maui_create_keyword', 'cc_m
25
25
  */
26
26
  export function expValEqualsInternal(experimentName, experimentParam, experimentExpectedValue, experimentDefaultValue, experimentExposure) {
27
27
  var _editorExperimentsCon, _editorExperimentsCon2, _editorExperimentsCon3;
28
- // @ts-ignore need to loosen the type here to allow for any experiment name
29
28
  if (_overrides[experimentName] !== undefined) {
30
29
  // This will be hit in the case of a test setting an override
31
- // @ts-ignore need to loosen the type here to allow for any experiment name
32
30
  return _overrides[experimentName] === experimentExpectedValue;
33
31
  }
34
32
 
@@ -17,8 +17,6 @@ function expValInternal({
17
17
  // We will definitely crash via any code path later in this function - this just makes the error explicit and clear.
18
18
  throw new Error(`Editor experiment configuration is not defined ${experimentName}. Likely the experiment does not exist or editor package versions are misaligned`);
19
19
  }
20
-
21
- // @ts-ignore need to loosen the type here to allow for any experiment name
22
20
  if (_overrides[experimentName] !== undefined) {
23
21
  // This will be hit in the case of a test setting an override
24
22
  // @ts-ignore need to loosen the type here to allow for any experiment name
@@ -208,14 +208,6 @@ export const editorExperimentsConfig = {
208
208
  param: 'isEnabled',
209
209
  defaultValue: false
210
210
  }),
211
- // Added 2026-07-14
212
- platform_editor_dom_node_count: createBooleanExperiment({
213
- productKeys: {
214
- confluence: 'platform_editor_dom_node_count'
215
- },
216
- param: 'isEnabled',
217
- defaultValue: false
218
- }),
219
211
  // Added 2026-03-26
220
212
  cc_editor_fix_insm_inp_buffer: createBooleanExperiment({
221
213
  productKeys: {
@@ -85,9 +85,7 @@ export function editorExperiment(experimentName, expectedExperimentValue, option
85
85
  }
86
86
 
87
87
  // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
88
- const experimentValue = FeatureGates.getExperimentValue(
89
- // @ts-ignore
90
- experimentKey, experimentConfig.param, experimentConfig.defaultValue, {
88
+ const experimentValue = FeatureGates.getExperimentValue(experimentKey, experimentConfig.param, experimentConfig.defaultValue, {
91
89
  typeGuard: experimentConfig.typeGuard,
92
90
  fireExperimentExposure: options.exposure
93
91
  });
@@ -34,7 +34,6 @@ paramOverrides, options) {
34
34
  // values.
35
35
  // For production usage -- this is done via the feature flag client which takes the type
36
36
  // and performs equivalent logic.
37
- // @ts-ignore
38
37
  groupOverrides = Object.entries(groupOverrides).reduce((acc, [key, value]) => {
39
38
  const config = editorExperimentsConfig[key];
40
39
  if (config) {
@@ -25,10 +25,8 @@ var allowsProductKeys = ['cc-maui-experiment', 'cc_maui_create_keyword', 'cc_mau
25
25
  */
26
26
  export function expValEqualsInternal(experimentName, experimentParam, experimentExpectedValue, experimentDefaultValue, experimentExposure) {
27
27
  var _editorExperimentsCon, _editorExperimentsCon2;
28
- // @ts-ignore need to loosen the type here to allow for any experiment name
29
28
  if (_overrides[experimentName] !== undefined) {
30
29
  // This will be hit in the case of a test setting an override
31
- // @ts-ignore need to loosen the type here to allow for any experiment name
32
30
  return _overrides[experimentName] === experimentExpectedValue;
33
31
  }
34
32
 
@@ -16,8 +16,6 @@ function expValInternal(_ref) {
16
16
  // We will definitely crash via any code path later in this function - this just makes the error explicit and clear.
17
17
  throw new Error("Editor experiment configuration is not defined ".concat(experimentName, ". Likely the experiment does not exist or editor package versions are misaligned"));
18
18
  }
19
-
20
- // @ts-ignore need to loosen the type here to allow for any experiment name
21
19
  if (_overrides[experimentName] !== undefined) {
22
20
  // This will be hit in the case of a test setting an override
23
21
  // @ts-ignore need to loosen the type here to allow for any experiment name
@@ -208,14 +208,6 @@ export var editorExperimentsConfig = {
208
208
  param: 'isEnabled',
209
209
  defaultValue: false
210
210
  }),
211
- // Added 2026-07-14
212
- platform_editor_dom_node_count: createBooleanExperiment({
213
- productKeys: {
214
- confluence: 'platform_editor_dom_node_count'
215
- },
216
- param: 'isEnabled',
217
- defaultValue: false
218
- }),
219
211
  // Added 2026-03-26
220
212
  cc_editor_fix_insm_inp_buffer: createBooleanExperiment({
221
213
  productKeys: {
@@ -86,9 +86,7 @@ export function editorExperiment(experimentName, expectedExperimentValue) {
86
86
  }
87
87
 
88
88
  // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
89
- var experimentValue = FeatureGates.getExperimentValue(
90
- // @ts-ignore
91
- experimentKey, experimentConfig.param, experimentConfig.defaultValue, {
89
+ var experimentValue = FeatureGates.getExperimentValue(experimentKey, experimentConfig.param, experimentConfig.defaultValue, {
92
90
  typeGuard: experimentConfig.typeGuard,
93
91
  fireExperimentExposure: options.exposure
94
92
  });
package/dist/esm/setup.js CHANGED
@@ -38,7 +38,6 @@ paramOverrides, options) {
38
38
  // values.
39
39
  // For production usage -- this is done via the feature flag client which takes the type
40
40
  // and performs equivalent logic.
41
- // @ts-ignore
42
41
  groupOverrides = Object.entries(groupOverrides).reduce(function (acc, _ref) {
43
42
  var _ref2 = _slicedToArray(_ref, 2),
44
43
  key = _ref2[0],
@@ -112,12 +112,6 @@ export declare const editorExperimentsConfig: {
112
112
  productKeys?: ProductKeys;
113
113
  typeGuard: IsBooleanType;
114
114
  };
115
- platform_editor_dom_node_count: {
116
- defaultValue: boolean;
117
- param: string;
118
- productKeys?: ProductKeys;
119
- typeGuard: IsBooleanType;
120
- };
121
115
  cc_editor_fix_insm_inp_buffer: {
122
116
  defaultValue: boolean;
123
117
  param: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "147.1.0",
3
+ "version": "148.0.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",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@atlaskit/feature-gate-js-client": "^6.0.0",
29
29
  "@atlaskit/platform-feature-flags": "^2.1.0",
30
- "@atlaskit/react-ufo": "^7.5.0",
30
+ "@atlaskit/react-ufo": "^7.6.0",
31
31
  "@babel/runtime": "^7.0.0"
32
32
  },
33
33
  "platform-feature-flags": {