@atlaskit/tmp-editor-statsig 147.0.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 +19 -0
- package/compass.yml +3 -3
- package/dist/cjs/exp-val-equals-internal.js +0 -2
- package/dist/cjs/expVal.js +0 -2
- package/dist/cjs/experiments-config.js +0 -23
- package/dist/cjs/experiments.js +1 -3
- package/dist/cjs/setup.js +0 -1
- package/dist/es2019/exp-val-equals-internal.js +0 -2
- package/dist/es2019/expVal.js +0 -2
- package/dist/es2019/experiments-config.js +0 -23
- package/dist/es2019/experiments.js +1 -3
- package/dist/es2019/setup.js +0 -1
- package/dist/esm/exp-val-equals-internal.js +0 -2
- package/dist/esm/expVal.js +0 -2
- package/dist/esm/experiments-config.js +0 -23
- package/dist/esm/experiments.js +1 -3
- package/dist/esm/setup.js +0 -1
- package/dist/types/experiments-config.d.ts +0 -18
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
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
|
+
|
|
11
|
+
## 147.1.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`90ba4a2921d81`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/90ba4a2921d81) -
|
|
16
|
+
Remove AFPS metric
|
|
17
|
+
- [`da5eaf0bc37da`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/da5eaf0bc37da) -
|
|
18
|
+
Clean up the platform_editor_editor_ssr_streaming experiment. The SSR streaming code paths are now
|
|
19
|
+
permanent and the isSSRStreaming() utility has been removed from
|
|
20
|
+
@atlaskit/editor-common/core-utils.
|
|
21
|
+
|
|
3
22
|
## 147.0.0
|
|
4
23
|
|
|
5
24
|
### Major Changes
|
package/compass.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
configVersion: 1
|
|
2
2
|
id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/80d90df9-b050-46f2-8563-aa320eca79e5
|
|
3
3
|
name: '@atlaskit/tmp-editor-statsig'
|
|
4
|
-
ownerId: ari:cloud:identity::team/
|
|
4
|
+
ownerId: ari:cloud:identity::team/cf6a670b-5252-4c68-a769-9207de366beb # Editor Developers
|
|
5
5
|
labels:
|
|
6
6
|
- platform-code
|
|
7
7
|
- platform-afm
|
|
@@ -16,14 +16,14 @@ links:
|
|
|
16
16
|
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
|
|
17
17
|
- name: Slack Channel
|
|
18
18
|
type: CHAT_CHANNEL
|
|
19
|
-
url: https://atlassian.enterprise.slack.com/archives/
|
|
19
|
+
url: https://atlassian.enterprise.slack.com/archives/CFG3PSQ9E # #help-editor
|
|
20
20
|
- name: Tmp Editor Statsig
|
|
21
21
|
type: REPOSITORY
|
|
22
22
|
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/editor/tmp-editor-statsig
|
|
23
23
|
customFields:
|
|
24
24
|
- name: Department
|
|
25
25
|
type: text
|
|
26
|
-
value:
|
|
26
|
+
value: Editor Developers
|
|
27
27
|
- name: Trusted Reviewer Teams
|
|
28
28
|
type: text
|
|
29
29
|
value: ari:cloud:identity::team/cf6a670b-5252-4c68-a769-9207de366beb
|
|
@@ -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
|
|
package/dist/cjs/expVal.js
CHANGED
|
@@ -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,21 +214,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
214
214
|
param: 'isEnabled',
|
|
215
215
|
defaultValue: false
|
|
216
216
|
}),
|
|
217
|
-
platform_editor_disable_afps: (0, _experimentBuilders.createBooleanExperiment)({
|
|
218
|
-
productKeys: {
|
|
219
|
-
confluence: 'platform_editor_disable_afps'
|
|
220
|
-
},
|
|
221
|
-
param: 'isEnabled',
|
|
222
|
-
defaultValue: false
|
|
223
|
-
}),
|
|
224
|
-
// Added 2026-07-14
|
|
225
|
-
platform_editor_dom_node_count: (0, _experimentBuilders.createBooleanExperiment)({
|
|
226
|
-
productKeys: {
|
|
227
|
-
confluence: 'platform_editor_dom_node_count'
|
|
228
|
-
},
|
|
229
|
-
param: 'isEnabled',
|
|
230
|
-
defaultValue: false
|
|
231
|
-
}),
|
|
232
217
|
// Added 2026-03-26
|
|
233
218
|
cc_editor_fix_insm_inp_buffer: (0, _experimentBuilders.createBooleanExperiment)({
|
|
234
219
|
productKeys: {
|
|
@@ -491,14 +476,6 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
|
|
|
491
476
|
param: 'isEnabled',
|
|
492
477
|
defaultValue: false
|
|
493
478
|
}),
|
|
494
|
-
// Added 2026-03-30
|
|
495
|
-
platform_editor_editor_ssr_streaming: (0, _experimentBuilders.createBooleanExperiment)({
|
|
496
|
-
productKeys: {
|
|
497
|
-
confluence: 'platform_editor_editor_ssr_streaming'
|
|
498
|
-
},
|
|
499
|
-
param: 'isEnabled',
|
|
500
|
-
defaultValue: false
|
|
501
|
-
}),
|
|
502
479
|
// Added 2025-01-19
|
|
503
480
|
platform_editor_ai_edit_response_in_preview: (0, _experimentBuilders.createBooleanExperiment)({
|
|
504
481
|
productKeys: {
|
package/dist/cjs/experiments.js
CHANGED
|
@@ -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
|
|
package/dist/es2019/expVal.js
CHANGED
|
@@ -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,21 +208,6 @@ export const editorExperimentsConfig = {
|
|
|
208
208
|
param: 'isEnabled',
|
|
209
209
|
defaultValue: false
|
|
210
210
|
}),
|
|
211
|
-
platform_editor_disable_afps: createBooleanExperiment({
|
|
212
|
-
productKeys: {
|
|
213
|
-
confluence: 'platform_editor_disable_afps'
|
|
214
|
-
},
|
|
215
|
-
param: 'isEnabled',
|
|
216
|
-
defaultValue: false
|
|
217
|
-
}),
|
|
218
|
-
// Added 2026-07-14
|
|
219
|
-
platform_editor_dom_node_count: createBooleanExperiment({
|
|
220
|
-
productKeys: {
|
|
221
|
-
confluence: 'platform_editor_dom_node_count'
|
|
222
|
-
},
|
|
223
|
-
param: 'isEnabled',
|
|
224
|
-
defaultValue: false
|
|
225
|
-
}),
|
|
226
211
|
// Added 2026-03-26
|
|
227
212
|
cc_editor_fix_insm_inp_buffer: createBooleanExperiment({
|
|
228
213
|
productKeys: {
|
|
@@ -485,14 +470,6 @@ export const editorExperimentsConfig = {
|
|
|
485
470
|
param: 'isEnabled',
|
|
486
471
|
defaultValue: false
|
|
487
472
|
}),
|
|
488
|
-
// Added 2026-03-30
|
|
489
|
-
platform_editor_editor_ssr_streaming: createBooleanExperiment({
|
|
490
|
-
productKeys: {
|
|
491
|
-
confluence: 'platform_editor_editor_ssr_streaming'
|
|
492
|
-
},
|
|
493
|
-
param: 'isEnabled',
|
|
494
|
-
defaultValue: false
|
|
495
|
-
}),
|
|
496
473
|
// Added 2025-01-19
|
|
497
474
|
platform_editor_ai_edit_response_in_preview: createBooleanExperiment({
|
|
498
475
|
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
|
});
|
package/dist/es2019/setup.js
CHANGED
|
@@ -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
|
|
package/dist/esm/expVal.js
CHANGED
|
@@ -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,21 +208,6 @@ export var editorExperimentsConfig = {
|
|
|
208
208
|
param: 'isEnabled',
|
|
209
209
|
defaultValue: false
|
|
210
210
|
}),
|
|
211
|
-
platform_editor_disable_afps: createBooleanExperiment({
|
|
212
|
-
productKeys: {
|
|
213
|
-
confluence: 'platform_editor_disable_afps'
|
|
214
|
-
},
|
|
215
|
-
param: 'isEnabled',
|
|
216
|
-
defaultValue: false
|
|
217
|
-
}),
|
|
218
|
-
// Added 2026-07-14
|
|
219
|
-
platform_editor_dom_node_count: createBooleanExperiment({
|
|
220
|
-
productKeys: {
|
|
221
|
-
confluence: 'platform_editor_dom_node_count'
|
|
222
|
-
},
|
|
223
|
-
param: 'isEnabled',
|
|
224
|
-
defaultValue: false
|
|
225
|
-
}),
|
|
226
211
|
// Added 2026-03-26
|
|
227
212
|
cc_editor_fix_insm_inp_buffer: createBooleanExperiment({
|
|
228
213
|
productKeys: {
|
|
@@ -485,14 +470,6 @@ export var editorExperimentsConfig = {
|
|
|
485
470
|
param: 'isEnabled',
|
|
486
471
|
defaultValue: false
|
|
487
472
|
}),
|
|
488
|
-
// Added 2026-03-30
|
|
489
|
-
platform_editor_editor_ssr_streaming: createBooleanExperiment({
|
|
490
|
-
productKeys: {
|
|
491
|
-
confluence: 'platform_editor_editor_ssr_streaming'
|
|
492
|
-
},
|
|
493
|
-
param: 'isEnabled',
|
|
494
|
-
defaultValue: false
|
|
495
|
-
}),
|
|
496
473
|
// Added 2025-01-19
|
|
497
474
|
platform_editor_ai_edit_response_in_preview: createBooleanExperiment({
|
|
498
475
|
productKeys: {
|
package/dist/esm/experiments.js
CHANGED
|
@@ -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,18 +112,6 @@ export declare const editorExperimentsConfig: {
|
|
|
112
112
|
productKeys?: ProductKeys;
|
|
113
113
|
typeGuard: IsBooleanType;
|
|
114
114
|
};
|
|
115
|
-
platform_editor_disable_afps: {
|
|
116
|
-
defaultValue: boolean;
|
|
117
|
-
param: string;
|
|
118
|
-
productKeys?: ProductKeys;
|
|
119
|
-
typeGuard: IsBooleanType;
|
|
120
|
-
};
|
|
121
|
-
platform_editor_dom_node_count: {
|
|
122
|
-
defaultValue: boolean;
|
|
123
|
-
param: string;
|
|
124
|
-
productKeys?: ProductKeys;
|
|
125
|
-
typeGuard: IsBooleanType;
|
|
126
|
-
};
|
|
127
115
|
cc_editor_fix_insm_inp_buffer: {
|
|
128
116
|
defaultValue: boolean;
|
|
129
117
|
param: string;
|
|
@@ -307,12 +295,6 @@ export declare const editorExperimentsConfig: {
|
|
|
307
295
|
productKeys?: ProductKeys;
|
|
308
296
|
typeGuard: IsBooleanType;
|
|
309
297
|
};
|
|
310
|
-
platform_editor_editor_ssr_streaming: {
|
|
311
|
-
defaultValue: boolean;
|
|
312
|
-
param: string;
|
|
313
|
-
productKeys?: ProductKeys;
|
|
314
|
-
typeGuard: IsBooleanType;
|
|
315
|
-
};
|
|
316
298
|
confluence_remix_icon_right_side: {
|
|
317
299
|
defaultValue: boolean;
|
|
318
300
|
param: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tmp-editor-statsig",
|
|
3
|
-
"version": "
|
|
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.
|
|
30
|
+
"@atlaskit/react-ufo": "^7.6.0",
|
|
31
31
|
"@babel/runtime": "^7.0.0"
|
|
32
32
|
},
|
|
33
33
|
"platform-feature-flags": {
|