@atlaskit/tmp-editor-statsig 200.0.0 → 202.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,22 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 202.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`3f8ea6c51b718`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3f8ea6c51b718) -
8
+ Remove the rolled-out `editor_tinymce_full_width_mode` and
9
+ `confluence_max_width_content_appearance` experiments and make max-width content behavior
10
+ permanent.
11
+
12
+ ## 201.0.0
13
+
14
+ ### Major Changes
15
+
16
+ - [`1e8d2aad8e882`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1e8d2aad8e882) -
17
+ Remove the permanent `platform_editor_layout_typeahead_reorder` experiment and its temporary
18
+ Editor Statsig registration.
19
+
3
20
  ## 200.0.0
4
21
 
5
22
  ### Major Changes
@@ -60,6 +60,7 @@ var _setup = require("./setup");
60
60
  * It also closely aligns with similar utilities in other Atlassian products.
61
61
  * For no exposure option use `expValEqualsNoExposure` from `@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure`.
62
62
  */
63
+
63
64
  function editorExperiment(experimentName, expectedExperimentValue) {
64
65
  var _experimentConfig$pro;
65
66
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
@@ -8,8 +8,8 @@ exports.eeTest = eeTest;
8
8
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
- var _setup = require("./setup");
12
11
  var _experimentsConfig = require("./experiments-config");
12
+ var _setup = require("./setup");
13
13
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
14
14
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
15
15
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -101,14 +101,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
101
101
  param: 'isEnabled',
102
102
  defaultValue: false
103
103
  }),
104
- // Added 2025-11-03
105
- editor_tinymce_full_width_mode: (0, _createBooleanExperiment.createBooleanExperiment)({
106
- productKeys: {
107
- confluence: 'editor_tinymce_full_width_mode'
108
- },
109
- param: 'isEnabled',
110
- defaultValue: false
111
- }),
112
104
  // Added 2026-02-16
113
105
  platform_editor_remove_important_in_render_ext: (0, _createBooleanExperiment.createBooleanExperiment)({
114
106
  productKeys: {
@@ -117,14 +109,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
117
109
  param: 'isEnabled',
118
110
  defaultValue: false
119
111
  }),
120
- // Added 2025-12-10
121
- confluence_max_width_content_appearance: (0, _createBooleanExperiment.createBooleanExperiment)({
122
- productKeys: {
123
- confluence: 'confluence_max_width_content_appearance'
124
- },
125
- param: 'isEnabled',
126
- defaultValue: false
127
- }),
128
112
  // Added 2026-07-06
129
113
  confluence_comment_nudgebar_improvement: (0, _createBooleanExperiment.createBooleanExperiment)({
130
114
  productKeys: {
@@ -1164,15 +1148,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
1164
1148
  param: 'isEnabled',
1165
1149
  defaultValue: false
1166
1150
  }),
1167
- // Added 2026-05-21
1168
- platform_editor_layout_typeahead_reorder: (0, _createBooleanExperiment.createBooleanExperiment)({
1169
- productKeys: {
1170
- confluence: 'platform_editor_layout_typeahead_reorder',
1171
- jira: 'platform_editor_layout_typeahead_reorder'
1172
- },
1173
- param: 'isEnabled',
1174
- defaultValue: false
1175
- }),
1176
1151
  // Added 2026-06-11
1177
1152
  platform_editor_external_embed_grid_fix: (0, _createBooleanExperiment.createBooleanExperiment)({
1178
1153
  productKeys: {
package/dist/cjs/setup.js CHANGED
@@ -8,8 +8,8 @@ exports._product = exports._paramOverrides = exports._overrides = void 0;
8
8
  exports.setupEditorExperiments = setupEditorExperiments;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
- var _experimentsConfig = require("./experiments-config");
12
11
  var _expTestOverrides = require("./exp-test-overrides");
12
+ var _experimentsConfig = require("./experiments-config");
13
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /* eslint-disable @atlaskit/editor/no-re-export */ // Entry file in package.json
15
15
  var _overrides = exports._overrides = {};
@@ -27,6 +27,7 @@ var _product;
27
27
  * });
28
28
  * ```
29
29
  */
30
+
30
31
  function setupEditorExperiments(product,
31
32
  /**
32
33
  * Overrides are used to set the group of an experiment for testing purposes.
@@ -20,6 +20,7 @@ var _setup = require("./setup");
20
20
  *
21
21
  * The typeguard and default value is also expected to move to the experiment config
22
22
  */
23
+
23
24
  function unstable_editorExperimentParam(experimentName, paramName, options) {
24
25
  var _paramOverrides$exper, _options$exposure;
25
26
  if (((_paramOverrides$exper = _setup._paramOverrides[experimentName]) === null || _paramOverrides$exper === void 0 ? void 0 : _paramOverrides$exper[paramName]) !== undefined) {
@@ -54,6 +54,7 @@ import { _overrides, _product } from './setup';
54
54
  * It also closely aligns with similar utilities in other Atlassian products.
55
55
  * For no exposure option use `expValEqualsNoExposure` from `@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure`.
56
56
  */
57
+
57
58
  export function editorExperiment(experimentName, expectedExperimentValue, options = {
58
59
  exposure: false
59
60
  }) {
@@ -3,8 +3,8 @@
3
3
 
4
4
  // This is loosely based on the `ffTest` util from `@atlassian/feature-flags-test-utils` package.
5
5
 
6
- import { setupEditorExperiments } from './setup';
7
6
  import { editorExperimentsConfig } from './experiments-config';
7
+ import { setupEditorExperiments } from './setup';
8
8
  /**
9
9
  * This is a utility function for testing editor experiments.
10
10
  *
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
2
  /* eslint-disable @atlaskit/editor/no-re-export -- deprecated shims re-exporting the split `expVal`/`expValNoExposure` modules for backwards compatibility (VOLTC-139). */
3
+
3
4
  import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
4
5
  import { fg } from '@atlaskit/platform-feature-flags/fg';
5
6
  import { addFeatureFlagAccessed } from '@atlaskit/react-ufo/feature-flags-accessed';
@@ -95,14 +95,6 @@ export const editorExperimentsConfig = {
95
95
  param: 'isEnabled',
96
96
  defaultValue: false
97
97
  }),
98
- // Added 2025-11-03
99
- editor_tinymce_full_width_mode: createBooleanExperiment({
100
- productKeys: {
101
- confluence: 'editor_tinymce_full_width_mode'
102
- },
103
- param: 'isEnabled',
104
- defaultValue: false
105
- }),
106
98
  // Added 2026-02-16
107
99
  platform_editor_remove_important_in_render_ext: createBooleanExperiment({
108
100
  productKeys: {
@@ -111,14 +103,6 @@ export const editorExperimentsConfig = {
111
103
  param: 'isEnabled',
112
104
  defaultValue: false
113
105
  }),
114
- // Added 2025-12-10
115
- confluence_max_width_content_appearance: createBooleanExperiment({
116
- productKeys: {
117
- confluence: 'confluence_max_width_content_appearance'
118
- },
119
- param: 'isEnabled',
120
- defaultValue: false
121
- }),
122
106
  // Added 2026-07-06
123
107
  confluence_comment_nudgebar_improvement: createBooleanExperiment({
124
108
  productKeys: {
@@ -1158,15 +1142,6 @@ export const editorExperimentsConfig = {
1158
1142
  param: 'isEnabled',
1159
1143
  defaultValue: false
1160
1144
  }),
1161
- // Added 2026-05-21
1162
- platform_editor_layout_typeahead_reorder: createBooleanExperiment({
1163
- productKeys: {
1164
- confluence: 'platform_editor_layout_typeahead_reorder',
1165
- jira: 'platform_editor_layout_typeahead_reorder'
1166
- },
1167
- param: 'isEnabled',
1168
- defaultValue: false
1169
- }),
1170
1145
  // Added 2026-06-11
1171
1146
  platform_editor_external_embed_grid_fix: createBooleanExperiment({
1172
1147
  productKeys: {
@@ -5,6 +5,7 @@
5
5
  /**
6
6
  * @deprecated Use `import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments'` instead.
7
7
  */
8
+
8
9
  export { editorExperiment } from './editor-experiment';
9
10
  /**
10
11
  * @deprecated Use `import { unstable_editorExperimentParam } from '@atlaskit/tmp-editor-statsig/experiments'` instead.
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
2
  // Entry file in package.json
3
3
 
4
- import { editorExperimentsConfig } from './experiments-config';
5
4
  import { testBooleanOverrides, testMultivariateOverrides } from './exp-test-overrides';
5
+ import { editorExperimentsConfig } from './experiments-config';
6
6
  export let _overrides = {};
7
7
  export let _paramOverrides = {};
8
8
  export let _product;
@@ -18,6 +18,7 @@ export let _product;
18
18
  * });
19
19
  * ```
20
20
  */
21
+
21
22
  export function setupEditorExperiments(product,
22
23
  /**
23
24
  * Overrides are used to set the group of an experiment for testing purposes.
@@ -14,6 +14,7 @@ import { _paramOverrides } from './setup';
14
14
  *
15
15
  * The typeguard and default value is also expected to move to the experiment config
16
16
  */
17
+
17
18
  export function unstable_editorExperimentParam(experimentName, paramName, options) {
18
19
  var _paramOverrides$exper, _options$exposure;
19
20
  if (((_paramOverrides$exper = _paramOverrides[experimentName]) === null || _paramOverrides$exper === void 0 ? void 0 : _paramOverrides$exper[paramName]) !== undefined) {
@@ -54,6 +54,7 @@ import { _overrides, _product } from './setup';
54
54
  * It also closely aligns with similar utilities in other Atlassian products.
55
55
  * For no exposure option use `expValEqualsNoExposure` from `@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure`.
56
56
  */
57
+
57
58
  export function editorExperiment(experimentName, expectedExperimentValue) {
58
59
  var _experimentConfig$pro;
59
60
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
@@ -11,8 +11,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
11
11
 
12
12
  // This is loosely based on the `ffTest` util from `@atlassian/feature-flags-test-utils` package.
13
13
 
14
- import { setupEditorExperiments } from './setup';
15
14
  import { editorExperimentsConfig } from './experiments-config';
15
+ import { setupEditorExperiments } from './setup';
16
16
  /**
17
17
  * This is a utility function for testing editor experiments.
18
18
  *
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
2
  /* eslint-disable @atlaskit/editor/no-re-export -- deprecated shims re-exporting the split `expVal`/`expValNoExposure` modules for backwards compatibility (VOLTC-139). */
3
+
3
4
  import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
4
5
  import { fg } from '@atlaskit/platform-feature-flags/fg';
5
6
  import { addFeatureFlagAccessed } from '@atlaskit/react-ufo/feature-flags-accessed';
@@ -95,14 +95,6 @@ export var editorExperimentsConfig = {
95
95
  param: 'isEnabled',
96
96
  defaultValue: false
97
97
  }),
98
- // Added 2025-11-03
99
- editor_tinymce_full_width_mode: createBooleanExperiment({
100
- productKeys: {
101
- confluence: 'editor_tinymce_full_width_mode'
102
- },
103
- param: 'isEnabled',
104
- defaultValue: false
105
- }),
106
98
  // Added 2026-02-16
107
99
  platform_editor_remove_important_in_render_ext: createBooleanExperiment({
108
100
  productKeys: {
@@ -111,14 +103,6 @@ export var editorExperimentsConfig = {
111
103
  param: 'isEnabled',
112
104
  defaultValue: false
113
105
  }),
114
- // Added 2025-12-10
115
- confluence_max_width_content_appearance: createBooleanExperiment({
116
- productKeys: {
117
- confluence: 'confluence_max_width_content_appearance'
118
- },
119
- param: 'isEnabled',
120
- defaultValue: false
121
- }),
122
106
  // Added 2026-07-06
123
107
  confluence_comment_nudgebar_improvement: createBooleanExperiment({
124
108
  productKeys: {
@@ -1158,15 +1142,6 @@ export var editorExperimentsConfig = {
1158
1142
  param: 'isEnabled',
1159
1143
  defaultValue: false
1160
1144
  }),
1161
- // Added 2026-05-21
1162
- platform_editor_layout_typeahead_reorder: createBooleanExperiment({
1163
- productKeys: {
1164
- confluence: 'platform_editor_layout_typeahead_reorder',
1165
- jira: 'platform_editor_layout_typeahead_reorder'
1166
- },
1167
- param: 'isEnabled',
1168
- defaultValue: false
1169
- }),
1170
1145
  // Added 2026-06-11
1171
1146
  platform_editor_external_embed_grid_fix: createBooleanExperiment({
1172
1147
  productKeys: {
@@ -5,6 +5,7 @@
5
5
  /**
6
6
  * @deprecated Use `import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments'` instead.
7
7
  */
8
+
8
9
  export { editorExperiment } from './editor-experiment';
9
10
  /**
10
11
  * @deprecated Use `import { unstable_editorExperimentParam } from '@atlaskit/tmp-editor-statsig/experiments'` instead.
package/dist/esm/setup.js CHANGED
@@ -5,8 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  /* eslint-disable @atlaskit/editor/no-re-export */
6
6
  // Entry file in package.json
7
7
 
8
- import { editorExperimentsConfig } from './experiments-config';
9
8
  import { testBooleanOverrides, testMultivariateOverrides } from './exp-test-overrides';
9
+ import { editorExperimentsConfig } from './experiments-config';
10
10
  export var _overrides = {};
11
11
  export var _paramOverrides = {};
12
12
  export var _product;
@@ -22,6 +22,7 @@ export var _product;
22
22
  * });
23
23
  * ```
24
24
  */
25
+
25
26
  export function setupEditorExperiments(product,
26
27
  /**
27
28
  * Overrides are used to set the group of an experiment for testing purposes.
@@ -14,6 +14,7 @@ import { _paramOverrides } from './setup';
14
14
  *
15
15
  * The typeguard and default value is also expected to move to the experiment config
16
16
  */
17
+
17
18
  export function unstable_editorExperimentParam(experimentName, paramName, options) {
18
19
  var _paramOverrides$exper, _options$exposure;
19
20
  if (((_paramOverrides$exper = _paramOverrides[experimentName]) === null || _paramOverrides$exper === void 0 ? void 0 : _paramOverrides$exper[paramName]) !== undefined) {
@@ -1,5 +1,5 @@
1
- import type { EditorExperimentOverrides } from './setup';
2
1
  import type { EditorExperimentsConfig } from './experiments-config';
2
+ import type { EditorExperimentOverrides } from './setup';
3
3
  type DescribeBody = Parameters<typeof describe>[1];
4
4
  /**
5
5
  * This is a utility function for testing editor experiments.
@@ -186,24 +186,12 @@ export declare const editorExperimentsConfig: {
186
186
  productKeys?: ProductKeys;
187
187
  typeGuard: IsBooleanType;
188
188
  };
189
- editor_tinymce_full_width_mode: {
190
- defaultValue: boolean;
191
- param: string;
192
- productKeys?: ProductKeys;
193
- typeGuard: IsBooleanType;
194
- };
195
189
  platform_editor_remove_important_in_render_ext: {
196
190
  defaultValue: boolean;
197
191
  param: string;
198
192
  productKeys?: ProductKeys;
199
193
  typeGuard: IsBooleanType;
200
194
  };
201
- confluence_max_width_content_appearance: {
202
- defaultValue: boolean;
203
- param: string;
204
- productKeys?: ProductKeys;
205
- typeGuard: IsBooleanType;
206
- };
207
195
  confluence_comment_nudgebar_improvement: {
208
196
  defaultValue: boolean;
209
197
  param: string;
@@ -619,12 +607,6 @@ export declare const editorExperimentsConfig: {
619
607
  productKeys?: ProductKeys;
620
608
  typeGuard: IsBooleanType;
621
609
  };
622
- platform_editor_layout_typeahead_reorder: {
623
- defaultValue: boolean;
624
- param: string;
625
- productKeys?: ProductKeys;
626
- typeGuard: IsBooleanType;
627
- };
628
610
  cc_page_experiences_editor_image_generation: {
629
611
  defaultValue: boolean;
630
612
  param: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "200.0.0",
3
+ "version": "202.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",