@atlaskit/editor-common 118.4.0 → 118.5.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 +26 -0
- package/deprecated-platform-feature-experiments/package.json +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/platform-feature-experiments/exp-val.js +25 -0
- package/dist/cjs/platform-feature-experiments/index.js +26 -0
- package/dist/cjs/platform-feature-experiments/is-experiment-enabled.js +26 -0
- package/dist/cjs/platform-feature-experiments/unsafe-exp-val-no-exposure.js +22 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/platform-feature-experiments/exp-val.js +19 -0
- package/dist/es2019/platform-feature-experiments/index.js +4 -0
- package/dist/es2019/platform-feature-experiments/is-experiment-enabled.js +20 -0
- package/dist/es2019/platform-feature-experiments/unsafe-exp-val-no-exposure.js +17 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/platform-feature-experiments/exp-val.js +19 -0
- package/dist/esm/platform-feature-experiments/index.js +4 -0
- package/dist/esm/platform-feature-experiments/is-experiment-enabled.js +20 -0
- package/dist/esm/platform-feature-experiments/unsafe-exp-val-no-exposure.js +17 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/sync-block-events.d.ts +5 -5
- package/dist/types/platform-feature-experiments/exp-val.d.ts +11 -0
- package/dist/types/platform-feature-experiments/index.d.ts +3 -0
- package/dist/types/platform-feature-experiments/is-experiment-enabled.d.ts +11 -0
- package/dist/types/platform-feature-experiments/unsafe-exp-val-no-exposure.d.ts +8 -0
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 118.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`3a38a59a355f5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a38a59a355f5) -
|
|
8
|
+
Add a feature-gated platform experiments strangler entry point and migrate the inline-diffs
|
|
9
|
+
experiment as its first consumer.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { isExperimentEnabled } from '@atlaskit/editor-common/deprecated-platform-feature-experiments';
|
|
13
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
|
+
|
|
15
|
+
const isEnabled = isExperimentEnabled('platform_editor_example', () =>
|
|
16
|
+
expValEquals('platform_editor_example', 'isEnabled', true),
|
|
17
|
+
);
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## 118.4.1
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- [`1f0dab65b6efd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1f0dab65b6efd) -
|
|
25
|
+
Remove unreachable cut-handling branch and duplicated synced block node view setup left over from
|
|
26
|
+
feature gate cleanup
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 118.4.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/deprecated-platform-feature-experiments",
|
|
3
|
+
"main": "../dist/cjs/platform-feature-experiments/index.js",
|
|
4
|
+
"module": "../dist/esm/platform-feature-experiments/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/platform-feature-experiments/index.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/platform-feature-experiments/index.d.ts"
|
|
10
|
+
}
|
|
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
28
28
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
29
29
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
30
30
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
31
|
-
var packageVersion = "118.
|
|
31
|
+
var packageVersion = "118.4.1";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.expVal = expVal;
|
|
7
|
+
var _expVal = require("@atlaskit/platform-feature-experiments/exp-val");
|
|
8
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
|
+
/* eslint-disable @atlaskit/platform/inline-usage -- This temporary strangler intentionally wraps the old and new experiment APIs during migration. */
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Temporary strangler for migrating editor experiments to
|
|
13
|
+
* `@atlaskit/platform-feature-experiments`.
|
|
14
|
+
*
|
|
15
|
+
* The final callback preserves the existing experiment implementation while the migration gate is
|
|
16
|
+
* off. It is evaluated lazily so only one implementation reads the experiment or fires exposure.
|
|
17
|
+
* Migrate callers to `@atlaskit/platform-feature-experiments/exp-val` when the transition gate is
|
|
18
|
+
* removed.
|
|
19
|
+
*/
|
|
20
|
+
function expVal(experimentName, param, defaultValue, legacyValue) {
|
|
21
|
+
if ((0, _fg.fg)('platform_editor_use_new_experiments_api')) {
|
|
22
|
+
return (0, _expVal.expVal)(experimentName, param, defaultValue);
|
|
23
|
+
}
|
|
24
|
+
return legacyValue();
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "UNSAFE_expValNoExposure", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _unsafeExpValNoExposure.UNSAFE_expValNoExposure;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "expVal", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _expVal.expVal;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "isExperimentEnabled", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _isExperimentEnabled.isExperimentEnabled;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _expVal = require("./exp-val");
|
|
25
|
+
var _isExperimentEnabled = require("./is-experiment-enabled");
|
|
26
|
+
var _unsafeExpValNoExposure = require("./unsafe-exp-val-no-exposure");
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isExperimentEnabled = isExperimentEnabled;
|
|
7
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
8
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
|
+
/* eslint-disable @atlaskit/platform/inline-usage -- This temporary strangler intentionally wraps the old and new experiment APIs during migration. */
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Temporary strangler for boolean editor experiments using the conventional `isEnabled` param.
|
|
13
|
+
* The legacy callback is evaluated only while the migration gate is off.
|
|
14
|
+
*
|
|
15
|
+
* For experiments with multiple product keys, OR one call per unique product key. Pass the real
|
|
16
|
+
* legacy callback only to the first call and `() => false` to the remaining calls so the fallback
|
|
17
|
+
* is evaluated at most once.
|
|
18
|
+
* Migrate callers to `@atlaskit/platform-feature-experiments/is-experiment-enabled` when the
|
|
19
|
+
* transition gate is removed.
|
|
20
|
+
*/
|
|
21
|
+
function isExperimentEnabled(experimentName, legacyValue) {
|
|
22
|
+
if ((0, _fg.fg)('platform_editor_use_new_experiments_api')) {
|
|
23
|
+
return (0, _isExperimentEnabled.isExperimentEnabled)(experimentName);
|
|
24
|
+
}
|
|
25
|
+
return legacyValue();
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.UNSAFE_expValNoExposure = UNSAFE_expValNoExposure;
|
|
7
|
+
var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure");
|
|
8
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
|
+
/* eslint-disable @atlaskit/platform/inline-usage -- This temporary strangler intentionally wraps the old and new experiment APIs during migration. */
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Temporary strangler for editor experiment reads that intentionally do not fire exposure.
|
|
13
|
+
* The legacy callback is evaluated only while the migration gate is off.
|
|
14
|
+
* Migrate callers to `@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure` when the
|
|
15
|
+
* transition gate is removed.
|
|
16
|
+
*/
|
|
17
|
+
function UNSAFE_expValNoExposure(experimentName, param, defaultValue, legacyValue) {
|
|
18
|
+
if ((0, _fg.fg)('platform_editor_use_new_experiments_api')) {
|
|
19
|
+
return (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)(experimentName, param, defaultValue);
|
|
20
|
+
}
|
|
21
|
+
return legacyValue();
|
|
22
|
+
}
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "118.
|
|
27
|
+
var packageVersion = "118.4.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "118.
|
|
17
|
+
const packageVersion = "118.4.1";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/platform/inline-usage -- This temporary strangler intentionally wraps the old and new experiment APIs during migration. */
|
|
2
|
+
import { expVal as platformExpVal } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Temporary strangler for migrating editor experiments to
|
|
7
|
+
* `@atlaskit/platform-feature-experiments`.
|
|
8
|
+
*
|
|
9
|
+
* The final callback preserves the existing experiment implementation while the migration gate is
|
|
10
|
+
* off. It is evaluated lazily so only one implementation reads the experiment or fires exposure.
|
|
11
|
+
* Migrate callers to `@atlaskit/platform-feature-experiments/exp-val` when the transition gate is
|
|
12
|
+
* removed.
|
|
13
|
+
*/
|
|
14
|
+
export function expVal(experimentName, param, defaultValue, legacyValue) {
|
|
15
|
+
if (fg('platform_editor_use_new_experiments_api')) {
|
|
16
|
+
return platformExpVal(experimentName, param, defaultValue);
|
|
17
|
+
}
|
|
18
|
+
return legacyValue();
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/platform/inline-usage -- This temporary strangler intentionally wraps the old and new experiment APIs during migration. */
|
|
2
|
+
import { isExperimentEnabled as platformIsExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Temporary strangler for boolean editor experiments using the conventional `isEnabled` param.
|
|
7
|
+
* The legacy callback is evaluated only while the migration gate is off.
|
|
8
|
+
*
|
|
9
|
+
* For experiments with multiple product keys, OR one call per unique product key. Pass the real
|
|
10
|
+
* legacy callback only to the first call and `() => false` to the remaining calls so the fallback
|
|
11
|
+
* is evaluated at most once.
|
|
12
|
+
* Migrate callers to `@atlaskit/platform-feature-experiments/is-experiment-enabled` when the
|
|
13
|
+
* transition gate is removed.
|
|
14
|
+
*/
|
|
15
|
+
export function isExperimentEnabled(experimentName, legacyValue) {
|
|
16
|
+
if (fg('platform_editor_use_new_experiments_api')) {
|
|
17
|
+
return platformIsExperimentEnabled(experimentName);
|
|
18
|
+
}
|
|
19
|
+
return legacyValue();
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/platform/inline-usage -- This temporary strangler intentionally wraps the old and new experiment APIs during migration. */
|
|
2
|
+
|
|
3
|
+
import { UNSAFE_expValNoExposure as platformUnsafeExpValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Temporary strangler for editor experiment reads that intentionally do not fire exposure.
|
|
8
|
+
* The legacy callback is evaluated only while the migration gate is off.
|
|
9
|
+
* Migrate callers to `@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure` when the
|
|
10
|
+
* transition gate is removed.
|
|
11
|
+
*/
|
|
12
|
+
export function UNSAFE_expValNoExposure(experimentName, param, defaultValue, legacyValue) {
|
|
13
|
+
if (fg('platform_editor_use_new_experiments_api')) {
|
|
14
|
+
return platformUnsafeExpValNoExposure(experimentName, param, defaultValue);
|
|
15
|
+
}
|
|
16
|
+
return legacyValue();
|
|
17
|
+
}
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "118.
|
|
17
|
+
const packageVersion = "118.4.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "118.
|
|
23
|
+
var packageVersion = "118.4.1";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/platform/inline-usage -- This temporary strangler intentionally wraps the old and new experiment APIs during migration. */
|
|
2
|
+
import { expVal as platformExpVal } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Temporary strangler for migrating editor experiments to
|
|
7
|
+
* `@atlaskit/platform-feature-experiments`.
|
|
8
|
+
*
|
|
9
|
+
* The final callback preserves the existing experiment implementation while the migration gate is
|
|
10
|
+
* off. It is evaluated lazily so only one implementation reads the experiment or fires exposure.
|
|
11
|
+
* Migrate callers to `@atlaskit/platform-feature-experiments/exp-val` when the transition gate is
|
|
12
|
+
* removed.
|
|
13
|
+
*/
|
|
14
|
+
export function expVal(experimentName, param, defaultValue, legacyValue) {
|
|
15
|
+
if (fg('platform_editor_use_new_experiments_api')) {
|
|
16
|
+
return platformExpVal(experimentName, param, defaultValue);
|
|
17
|
+
}
|
|
18
|
+
return legacyValue();
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/platform/inline-usage -- This temporary strangler intentionally wraps the old and new experiment APIs during migration. */
|
|
2
|
+
import { isExperimentEnabled as platformIsExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Temporary strangler for boolean editor experiments using the conventional `isEnabled` param.
|
|
7
|
+
* The legacy callback is evaluated only while the migration gate is off.
|
|
8
|
+
*
|
|
9
|
+
* For experiments with multiple product keys, OR one call per unique product key. Pass the real
|
|
10
|
+
* legacy callback only to the first call and `() => false` to the remaining calls so the fallback
|
|
11
|
+
* is evaluated at most once.
|
|
12
|
+
* Migrate callers to `@atlaskit/platform-feature-experiments/is-experiment-enabled` when the
|
|
13
|
+
* transition gate is removed.
|
|
14
|
+
*/
|
|
15
|
+
export function isExperimentEnabled(experimentName, legacyValue) {
|
|
16
|
+
if (fg('platform_editor_use_new_experiments_api')) {
|
|
17
|
+
return platformIsExperimentEnabled(experimentName);
|
|
18
|
+
}
|
|
19
|
+
return legacyValue();
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/platform/inline-usage -- This temporary strangler intentionally wraps the old and new experiment APIs during migration. */
|
|
2
|
+
|
|
3
|
+
import { UNSAFE_expValNoExposure as platformUnsafeExpValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Temporary strangler for editor experiment reads that intentionally do not fire exposure.
|
|
8
|
+
* The legacy callback is evaluated only while the migration gate is off.
|
|
9
|
+
* Migrate callers to `@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure` when the
|
|
10
|
+
* transition gate is removed.
|
|
11
|
+
*/
|
|
12
|
+
export function UNSAFE_expValNoExposure(experimentName, param, defaultValue, legacyValue) {
|
|
13
|
+
if (fg('platform_editor_use_new_experiments_api')) {
|
|
14
|
+
return platformUnsafeExpValNoExposure(experimentName, param, defaultValue);
|
|
15
|
+
}
|
|
16
|
+
return legacyValue();
|
|
17
|
+
}
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "118.
|
|
24
|
+
var packageVersion = "118.4.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -23,8 +23,8 @@ type SyncedBlockErrorAttributes = {
|
|
|
23
23
|
*/
|
|
24
24
|
sourceProduct?: string;
|
|
25
25
|
/**
|
|
26
|
-
* Categorical failure cause for dashboard grouping.
|
|
27
|
-
*
|
|
26
|
+
* Categorical failure cause for dashboard grouping. Populated when error
|
|
27
|
+
* attribution data is available (EDITOR-7796 / EDITOR-7862).
|
|
28
28
|
*/
|
|
29
29
|
reason?: SyncedBlockErrorReasonAttribute;
|
|
30
30
|
/** Backend HTTP status code when the failure came from a `BlockError`. */
|
|
@@ -33,7 +33,7 @@ type SyncedBlockErrorAttributes = {
|
|
|
33
33
|
* Whether the failure reason is a benign/working-as-designed outcome (e.g. the source
|
|
34
34
|
* was intentionally deleted/unpublished, or permission denied) rather than a genuine
|
|
35
35
|
* system failure. Lets the dashboard compute a true error rate without free-text regex.
|
|
36
|
-
* Only emitted on fetch/subscribe error events
|
|
36
|
+
* Only emitted on fetch/subscribe error events (EDITOR-7862).
|
|
37
37
|
*/
|
|
38
38
|
benign?: boolean;
|
|
39
39
|
};
|
|
@@ -75,8 +75,8 @@ type SyncedBlockEditSourceAttributes = SyncedBlockSuccessAttributes & {
|
|
|
75
75
|
sameDocument?: boolean;
|
|
76
76
|
};
|
|
77
77
|
/**
|
|
78
|
-
* Source `syncedBlockCreate` success attrs. Both optional so
|
|
79
|
-
*
|
|
78
|
+
* Source `syncedBlockCreate` success attrs. Both optional so legacy payloads
|
|
79
|
+
* are unchanged. `inputMethod`: creating surface (enum, PII-safe).
|
|
80
80
|
* `createdEmpty`: true when created from an empty selection, false when content
|
|
81
81
|
* was converted into the block.
|
|
82
82
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AssurePrimitives } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
2
|
+
/**
|
|
3
|
+
* Temporary strangler for migrating editor experiments to
|
|
4
|
+
* `@atlaskit/platform-feature-experiments`.
|
|
5
|
+
*
|
|
6
|
+
* The final callback preserves the existing experiment implementation while the migration gate is
|
|
7
|
+
* off. It is evaluated lazily so only one implementation reads the experiment or fires exposure.
|
|
8
|
+
* Migrate callers to `@atlaskit/platform-feature-experiments/exp-val` when the transition gate is
|
|
9
|
+
* removed.
|
|
10
|
+
*/
|
|
11
|
+
export declare function expVal<T>(experimentName: string, param: string, defaultValue: T extends true ? never : T, legacyValue: () => AssurePrimitives<T>): AssurePrimitives<T>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Temporary strangler for boolean editor experiments using the conventional `isEnabled` param.
|
|
3
|
+
* The legacy callback is evaluated only while the migration gate is off.
|
|
4
|
+
*
|
|
5
|
+
* For experiments with multiple product keys, OR one call per unique product key. Pass the real
|
|
6
|
+
* legacy callback only to the first call and `() => false` to the remaining calls so the fallback
|
|
7
|
+
* is evaluated at most once.
|
|
8
|
+
* Migrate callers to `@atlaskit/platform-feature-experiments/is-experiment-enabled` when the
|
|
9
|
+
* transition gate is removed.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isExperimentEnabled(experimentName: string, legacyValue: () => boolean): boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AssurePrimitives } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
2
|
+
/**
|
|
3
|
+
* Temporary strangler for editor experiment reads that intentionally do not fire exposure.
|
|
4
|
+
* The legacy callback is evaluated only while the migration gate is off.
|
|
5
|
+
* Migrate callers to `@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure` when the
|
|
6
|
+
* transition gate is removed.
|
|
7
|
+
*/
|
|
8
|
+
export declare function UNSAFE_expValNoExposure<T>(experimentName: string, param: string, defaultValue: T extends true ? never : T, legacyValue: () => AssurePrimitives<T>): AssurePrimitives<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "118.
|
|
3
|
+
"version": "118.5.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
73
73
|
"@atlaskit/popper": "^9.1.0",
|
|
74
74
|
"@atlaskit/primitives": "^22.2.0",
|
|
75
|
-
"@atlaskit/profilecard": "^26.
|
|
75
|
+
"@atlaskit/profilecard": "^26.17.0",
|
|
76
76
|
"@atlaskit/prosemirror-history": "^1.1.0",
|
|
77
77
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
78
78
|
"@atlaskit/react-ufo": "^7.3.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@atlaskit/task-decision": "^21.8.0",
|
|
84
84
|
"@atlaskit/teams-app-config": "^2.2.0",
|
|
85
85
|
"@atlaskit/textfield": "^10.0.0",
|
|
86
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
86
|
+
"@atlaskit/tmp-editor-statsig": "^146.0.0",
|
|
87
87
|
"@atlaskit/tokens": "^16.6.0",
|
|
88
88
|
"@atlaskit/tooltip": "^24.0.0",
|
|
89
89
|
"@atlaskit/width-detector": "^7.0.0",
|
|
@@ -164,6 +164,9 @@
|
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
"platform-feature-flags": {
|
|
167
|
+
"platform_editor_use_new_experiments_api": {
|
|
168
|
+
"type": "boolean"
|
|
169
|
+
},
|
|
167
170
|
"platform-dst-popper-consolidation": {
|
|
168
171
|
"type": "boolean",
|
|
169
172
|
"referenceOnly": true
|