@atlaskit/editor-common 118.4.1 → 118.6.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/deprecated-platform-feature-experiments/package.json +10 -0
  3. package/dist/cjs/ai-messages/ai.js +5 -0
  4. package/dist/cjs/monitoring/error.js +1 -1
  5. package/dist/cjs/platform-feature-experiments/exp-val.js +25 -0
  6. package/dist/cjs/platform-feature-experiments/index.js +26 -0
  7. package/dist/cjs/platform-feature-experiments/is-experiment-enabled.js +26 -0
  8. package/dist/cjs/platform-feature-experiments/unsafe-exp-val-no-exposure.js +22 -0
  9. package/dist/cjs/ui/DropList/index.js +1 -1
  10. package/dist/es2019/ai-messages/ai.js +5 -0
  11. package/dist/es2019/monitoring/error.js +1 -1
  12. package/dist/es2019/platform-feature-experiments/exp-val.js +19 -0
  13. package/dist/es2019/platform-feature-experiments/index.js +4 -0
  14. package/dist/es2019/platform-feature-experiments/is-experiment-enabled.js +20 -0
  15. package/dist/es2019/platform-feature-experiments/unsafe-exp-val-no-exposure.js +17 -0
  16. package/dist/es2019/ui/DropList/index.js +1 -1
  17. package/dist/esm/ai-messages/ai.js +5 -0
  18. package/dist/esm/monitoring/error.js +1 -1
  19. package/dist/esm/platform-feature-experiments/exp-val.js +19 -0
  20. package/dist/esm/platform-feature-experiments/index.js +4 -0
  21. package/dist/esm/platform-feature-experiments/is-experiment-enabled.js +20 -0
  22. package/dist/esm/platform-feature-experiments/unsafe-exp-val-no-exposure.js +17 -0
  23. package/dist/esm/ui/DropList/index.js +1 -1
  24. package/dist/types/ai-messages/ai.d.ts +5 -0
  25. package/dist/types/platform-feature-experiments/exp-val.d.ts +11 -0
  26. package/dist/types/platform-feature-experiments/index.d.ts +3 -0
  27. package/dist/types/platform-feature-experiments/is-experiment-enabled.d.ts +11 -0
  28. package/dist/types/platform-feature-experiments/unsafe-exp-val-no-exposure.d.ts +8 -0
  29. package/package.json +4 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 118.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`dfef77237944a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dfef77237944a) -
8
+ Add a configurable, localized product identity for document-streaming telepointers.
9
+
10
+ ```ts
11
+ import type { StreamingTelepointerIdentity } from '@atlassian/editor-plugin-ai/types';
12
+
13
+ const streamingTelepointerIdentity: StreamingTelepointerIdentity = 'planner';
14
+ ```
15
+
16
+ ## 118.5.0
17
+
18
+ ### Minor Changes
19
+
20
+ - [`3a38a59a355f5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a38a59a355f5) -
21
+ Add a feature-gated platform experiments strangler entry point and migrate the inline-diffs
22
+ experiment as its first consumer.
23
+
24
+ ```ts
25
+ import { isExperimentEnabled } from '@atlaskit/editor-common/deprecated-platform-feature-experiments';
26
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
27
+
28
+ const isEnabled = isExperimentEnabled('platform_editor_example', () =>
29
+ expValEquals('platform_editor_example', 'isEnabled', true),
30
+ );
31
+ ```
32
+
3
33
  ## 118.4.1
4
34
 
5
35
  ### Patch 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
+ }
@@ -271,6 +271,11 @@ var aiMessages = exports.aiMessages = (0, _reactIntl.defineMessages)({
271
271
  description: 'When there is selection, show the selected content in the AI dynamic surface panel'
272
272
  },
273
273
  // Telepointer
274
+ aiPlannerTelepointer: {
275
+ id: 'fabric.editor.ai.telepointer.planner',
276
+ defaultMessage: 'Planner',
277
+ description: 'Product name shown beside the streaming cursor when Planner writes content'
278
+ },
274
279
  aiRovoTelepointer: {
275
280
  id: 'fabric.editor.ai.telepointer.rovo',
276
281
  defaultMessage: 'Rovo',
@@ -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.4.0";
31
+ var packageVersion = "118.5.0";
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.4.0";
27
+ var packageVersion = "118.5.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -265,6 +265,11 @@ export const aiMessages = defineMessages({
265
265
  description: 'When there is selection, show the selected content in the AI dynamic surface panel'
266
266
  },
267
267
  // Telepointer
268
+ aiPlannerTelepointer: {
269
+ id: 'fabric.editor.ai.telepointer.planner',
270
+ defaultMessage: 'Planner',
271
+ description: 'Product name shown beside the streaming cursor when Planner writes content'
272
+ },
268
273
  aiRovoTelepointer: {
269
274
  id: 'fabric.editor.ai.telepointer.rovo',
270
275
  defaultMessage: 'Rovo',
@@ -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.4.0";
17
+ const packageVersion = "118.5.0";
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,4 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export -- Entry file in package.json */
2
+ export { expVal } from './exp-val';
3
+ export { isExperimentEnabled } from './is-experiment-enabled';
4
+ export { UNSAFE_expValNoExposure } from './unsafe-exp-val-no-exposure';
@@ -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.4.0";
17
+ const packageVersion = "118.5.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -265,6 +265,11 @@ export var aiMessages = defineMessages({
265
265
  description: 'When there is selection, show the selected content in the AI dynamic surface panel'
266
266
  },
267
267
  // Telepointer
268
+ aiPlannerTelepointer: {
269
+ id: 'fabric.editor.ai.telepointer.planner',
270
+ defaultMessage: 'Planner',
271
+ description: 'Product name shown beside the streaming cursor when Planner writes content'
272
+ },
268
273
  aiRovoTelepointer: {
269
274
  id: 'fabric.editor.ai.telepointer.rovo',
270
275
  defaultMessage: 'Rovo',
@@ -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.4.0";
23
+ var packageVersion = "118.5.0";
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,4 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export -- Entry file in package.json */
2
+ export { expVal } from './exp-val';
3
+ export { isExperimentEnabled } from './is-experiment-enabled';
4
+ export { UNSAFE_expValNoExposure } from './unsafe-exp-val-no-exposure';
@@ -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.4.0";
24
+ var packageVersion = "118.5.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -24,6 +24,11 @@ export declare const aiMessages: {
24
24
  description: string;
25
25
  id: string;
26
26
  };
27
+ aiPlannerTelepointer: {
28
+ defaultMessage: string;
29
+ description: string;
30
+ id: string;
31
+ };
27
32
  aiRovoTelepointer: {
28
33
  defaultMessage: string;
29
34
  description: string;
@@ -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,3 @@
1
+ export { expVal } from './exp-val';
2
+ export { isExperimentEnabled } from './is-experiment-enabled';
3
+ export { UNSAFE_expValNoExposure } from './unsafe-exp-val-no-exposure';
@@ -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.4.1",
3
+ "version": "118.6.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/"
@@ -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