@atlaskit/editor-common 137.5.1 → 137.5.2

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,17 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 137.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`721ebae8b9b14`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/721ebae8b9b14) -
8
+ Add platform_editor_ai_xstate_migration_other to the shared Editor AI migration checks for
9
+ remaining products.
10
+ - [`3a4337d2e4a60`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a4337d2e4a60) -
11
+ Clean up feature gate `platform_editor_ai_show_diff_patch_2`; the show-diff improvements are now
12
+ always on.
13
+ - Updated dependencies
14
+
3
15
  ## 137.5.1
4
16
 
5
17
  ### Patch Changes
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.toggleExpandRange = exports.isExpandCollapsed = exports.getNextNodeExpandPos = exports.expandedState = exports.TOGGLE_EXPAND_RANGE_META_KEY = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
9
  var _utils = require("@atlaskit/editor-prosemirror/utils");
10
- var _fg = require("@atlaskit/platform-feature-flags/fg");
11
10
  // Used to store the state of the new single player expand node
12
11
  var expandedState = exports.expandedState = new WeakMap();
13
12
 
@@ -42,7 +41,7 @@ var toggleExpandRange = exports.toggleExpandRange = function toggleExpandRange(f
42
41
  // preserve positions from earlier calls on the same transaction so callers can target disjoint ranges
43
42
  // without opening unrelated expands between them.
44
43
  var existingMeta = tr.getMeta(TOGGLE_EXPAND_RANGE_META_KEY);
45
- var combinedPositions = (existingMeta === null || existingMeta === void 0 ? void 0 : existingMeta.open) === open && (0, _fg.fg)('platform_editor_ai_show_diff_patch_2') ? Array.from(new Set([].concat((0, _toConsumableArray2.default)(existingMeta.positions), positions))) : positions;
44
+ var combinedPositions = (existingMeta === null || existingMeta === void 0 ? void 0 : existingMeta.open) === open ? Array.from(new Set([].concat((0, _toConsumableArray2.default)(existingMeta.positions), positions))) : positions;
46
45
 
47
46
  // Set meta so the expand PM plugin can add node decorations.
48
47
  // This ensures ExpandNodeView.update() receives the decoration and visually
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
27
27
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
28
28
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
29
29
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
30
- var packageVersion = "137.5.0";
30
+ var packageVersion = "137.5.1";
31
31
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
32
32
  // Remove URL as it has UGC
33
33
  // Ignored via go/ees007
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.getStickyHeaderHeight = getStickyHeaderHeight;
7
7
  var _utils = require("@atlaskit/editor-prosemirror/utils");
8
- var _fg = require("@atlaskit/platform-feature-flags/fg");
9
8
  /**
10
9
  * Returns the outermost table's sticky header height for `targetPos` if its a table row and eligible to be
11
10
  * sticky. Table headers at least half the viewport high intentionally do not become sticky.
@@ -28,7 +27,7 @@ function getStickyHeaderHeight(view, targetPos) {
28
27
  var firstRowPos = outermostTable.pos + 1;
29
28
 
30
29
  // do not add sticky header offset if the target is in the sticky header
31
- if (firstRow && targetPos >= firstRowPos && targetPos < firstRowPos + firstRow.nodeSize && (0, _fg.fg)('platform_editor_ai_show_diff_patch_2')) {
30
+ if (firstRow && targetPos >= firstRowPos && targetPos < firstRowPos + firstRow.nodeSize) {
32
31
  return undefined;
33
32
  }
34
33
  var firstRowDom = view.nodeDOM(firstRowPos);
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "137.5.0";
26
+ var packageVersion = "137.5.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -8,11 +8,12 @@ var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/un
8
8
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
9
9
  /**
10
10
  * Same as `isAiXstateMigrationEnabled` from `@atlaskit/editor-common/ai-xstate-migration`
11
- * (Confluence `platform_editor_ai_xstate_migration` OR Jira
12
- * `platform_editor_ai_xstate_migration_jira`), but never fires exposure.
11
+ * (Confluence `platform_editor_ai_xstate_migration`, Jira
12
+ * `platform_editor_ai_xstate_migration_jira`, OR remaining products
13
+ * `platform_editor_ai_xstate_migration_other`), but never fires exposure.
13
14
  *
14
- * Cleanup: only remove once BOTH experiments have shipped.
15
+ * Cleanup: only remove once ALL three experiments have shipped.
15
16
  */
16
17
  var isAiXstateMigrationEnabledNoExposure = exports.isAiXstateMigrationEnabledNoExposure = function isAiXstateMigrationEnabledNoExposure() {
17
- return (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_xstate_migration', 'isEnabled', true) || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_ai_xstate_migration_jira', 'isEnabled', false) === true;
18
+ return (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_xstate_migration', 'isEnabled', true) || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_ai_xstate_migration_jira', 'isEnabled', false) === true || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_ai_xstate_migration_other', 'isEnabled', false) === true;
18
19
  };
@@ -9,22 +9,25 @@ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
9
  /**
10
10
  * Whether the editor AI xstate migration is enabled for the current product.
11
11
  *
12
- * The migration is rolled out via two product-specific experiments:
12
+ * The migration is rolled out via three audience-specific experiments:
13
13
  * - `platform_editor_ai_xstate_migration` (Confluence), a legacy editor experiment
14
14
  * read via `@atlaskit/tmp-editor-statsig`
15
15
  * - `platform_editor_ai_xstate_migration_jira` (Jira), a platform feature experiment
16
16
  * read via `@atlaskit/platform-feature-experiments`
17
+ * - `platform_editor_ai_xstate_migration_other` (remaining products), a platform
18
+ * feature experiment. Targeting must exclude Jira and Confluence, and the existing
19
+ * experiments must exclude the remaining products to preserve their control group.
17
20
  *
18
- * Use this helper instead of checking either experiment directly so every call site
21
+ * Use this helper instead of checking an experiment directly so every call site
19
22
  * stays consistent across products. Use `isAiXstateMigrationEnabledNoExposure` from
20
23
  * `@atlaskit/editor-common/ai-xstate-migration-no-exposure` when exposure must not fire.
21
24
  *
22
25
  * Cleanup: only remove this helper (and replace its call sites with `true`) once
23
- * BOTH experiments have shipped. Cleaning up the Confluence experiment alone by
24
- * replacing it with `true` would also force the migration on for Jira.
26
+ * ALL three experiments have shipped. Cleaning up one experiment alone by replacing
27
+ * it with `true` would also force the migration on for the other products.
25
28
  *
26
29
  * Note: This method fires exposure for the evaluated experiment(s).
27
30
  */
28
31
  var isAiXstateMigrationEnabled = exports.isAiXstateMigrationEnabled = function isAiXstateMigrationEnabled() {
29
- return (0, _expValEquals.expValEquals)('platform_editor_ai_xstate_migration', 'isEnabled', true) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_ai_xstate_migration_jira');
32
+ return (0, _expValEquals.expValEquals)('platform_editor_ai_xstate_migration', 'isEnabled', true) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_ai_xstate_migration_jira') || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_ai_xstate_migration_other');
30
33
  };
@@ -1,5 +1,4 @@
1
1
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
2
- import { fg } from '@atlaskit/platform-feature-flags/fg';
3
2
  // Used to store the state of the new single player expand node
4
3
  export const expandedState = new WeakMap();
5
4
 
@@ -34,7 +33,7 @@ export const toggleExpandRange = (from, to, open = true) => ({
34
33
  // preserve positions from earlier calls on the same transaction so callers can target disjoint ranges
35
34
  // without opening unrelated expands between them.
36
35
  const existingMeta = tr.getMeta(TOGGLE_EXPAND_RANGE_META_KEY);
37
- const combinedPositions = (existingMeta === null || existingMeta === void 0 ? void 0 : existingMeta.open) === open && fg('platform_editor_ai_show_diff_patch_2') ? Array.from(new Set([...existingMeta.positions, ...positions])) : positions;
36
+ const combinedPositions = (existingMeta === null || existingMeta === void 0 ? void 0 : existingMeta.open) === open ? Array.from(new Set([...existingMeta.positions, ...positions])) : positions;
38
37
 
39
38
  // Set meta so the expand PM plugin can add node decorations.
40
39
  // This ensures ExpandNodeView.update() receives the decoration and visually
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
13
13
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
14
14
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
15
15
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
16
- const packageVersion = "137.5.0";
16
+ const packageVersion = "137.5.1";
17
17
  const sanitiseSentryEvents = (data, _hint) => {
18
18
  // Remove URL as it has UGC
19
19
  // Ignored via go/ees007
@@ -1,6 +1,4 @@
1
1
  import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
2
- import { fg } from '@atlaskit/platform-feature-flags/fg';
3
-
4
2
  /**
5
3
  * Returns the outermost table's sticky header height for `targetPos` if its a table row and eligible to be
6
4
  * sticky. Table headers at least half the viewport high intentionally do not become sticky.
@@ -23,7 +21,7 @@ export function getStickyHeaderHeight(view, targetPos) {
23
21
  const firstRowPos = outermostTable.pos + 1;
24
22
 
25
23
  // do not add sticky header offset if the target is in the sticky header
26
- if (firstRow && targetPos >= firstRowPos && targetPos < firstRowPos + firstRow.nodeSize && fg('platform_editor_ai_show_diff_patch_2')) {
24
+ if (firstRow && targetPos >= firstRowPos && targetPos < firstRowPos + firstRow.nodeSize) {
27
25
  return undefined;
28
26
  }
29
27
  const firstRowDom = view.nodeDOM(firstRowPos);
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "137.5.0";
16
+ const packageVersion = "137.5.1";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -3,9 +3,10 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
3
3
 
4
4
  /**
5
5
  * Same as `isAiXstateMigrationEnabled` from `@atlaskit/editor-common/ai-xstate-migration`
6
- * (Confluence `platform_editor_ai_xstate_migration` OR Jira
7
- * `platform_editor_ai_xstate_migration_jira`), but never fires exposure.
6
+ * (Confluence `platform_editor_ai_xstate_migration`, Jira
7
+ * `platform_editor_ai_xstate_migration_jira`, OR remaining products
8
+ * `platform_editor_ai_xstate_migration_other`), but never fires exposure.
8
9
  *
9
- * Cleanup: only remove once BOTH experiments have shipped.
10
+ * Cleanup: only remove once ALL three experiments have shipped.
10
11
  */
11
- export const isAiXstateMigrationEnabledNoExposure = () => expValEqualsNoExposure('platform_editor_ai_xstate_migration', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_ai_xstate_migration_jira', 'isEnabled', false) === true;
12
+ export const isAiXstateMigrationEnabledNoExposure = () => expValEqualsNoExposure('platform_editor_ai_xstate_migration', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_ai_xstate_migration_jira', 'isEnabled', false) === true || UNSAFE_expValNoExposure('platform_editor_ai_xstate_migration_other', 'isEnabled', false) === true;
@@ -4,20 +4,23 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
4
  /**
5
5
  * Whether the editor AI xstate migration is enabled for the current product.
6
6
  *
7
- * The migration is rolled out via two product-specific experiments:
7
+ * The migration is rolled out via three audience-specific experiments:
8
8
  * - `platform_editor_ai_xstate_migration` (Confluence), a legacy editor experiment
9
9
  * read via `@atlaskit/tmp-editor-statsig`
10
10
  * - `platform_editor_ai_xstate_migration_jira` (Jira), a platform feature experiment
11
11
  * read via `@atlaskit/platform-feature-experiments`
12
+ * - `platform_editor_ai_xstate_migration_other` (remaining products), a platform
13
+ * feature experiment. Targeting must exclude Jira and Confluence, and the existing
14
+ * experiments must exclude the remaining products to preserve their control group.
12
15
  *
13
- * Use this helper instead of checking either experiment directly so every call site
16
+ * Use this helper instead of checking an experiment directly so every call site
14
17
  * stays consistent across products. Use `isAiXstateMigrationEnabledNoExposure` from
15
18
  * `@atlaskit/editor-common/ai-xstate-migration-no-exposure` when exposure must not fire.
16
19
  *
17
20
  * Cleanup: only remove this helper (and replace its call sites with `true`) once
18
- * BOTH experiments have shipped. Cleaning up the Confluence experiment alone by
19
- * replacing it with `true` would also force the migration on for Jira.
21
+ * ALL three experiments have shipped. Cleaning up one experiment alone by replacing
22
+ * it with `true` would also force the migration on for the other products.
20
23
  *
21
24
  * Note: This method fires exposure for the evaluated experiment(s).
22
25
  */
23
- export const isAiXstateMigrationEnabled = () => expValEquals('platform_editor_ai_xstate_migration', 'isEnabled', true) || isExperimentEnabled('platform_editor_ai_xstate_migration_jira');
26
+ export const isAiXstateMigrationEnabled = () => expValEquals('platform_editor_ai_xstate_migration', 'isEnabled', true) || isExperimentEnabled('platform_editor_ai_xstate_migration_jira') || isExperimentEnabled('platform_editor_ai_xstate_migration_other');
@@ -1,6 +1,5 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
3
- import { fg } from '@atlaskit/platform-feature-flags/fg';
4
3
  // Used to store the state of the new single player expand node
5
4
  export var expandedState = new WeakMap();
6
5
 
@@ -35,7 +34,7 @@ export var toggleExpandRange = function toggleExpandRange(from, to) {
35
34
  // preserve positions from earlier calls on the same transaction so callers can target disjoint ranges
36
35
  // without opening unrelated expands between them.
37
36
  var existingMeta = tr.getMeta(TOGGLE_EXPAND_RANGE_META_KEY);
38
- var combinedPositions = (existingMeta === null || existingMeta === void 0 ? void 0 : existingMeta.open) === open && fg('platform_editor_ai_show_diff_patch_2') ? Array.from(new Set([].concat(_toConsumableArray(existingMeta.positions), positions))) : positions;
37
+ var combinedPositions = (existingMeta === null || existingMeta === void 0 ? void 0 : existingMeta.open) === open ? Array.from(new Set([].concat(_toConsumableArray(existingMeta.positions), positions))) : positions;
39
38
 
40
39
  // Set meta so the expand PM plugin can add node decorations.
41
40
  // This ensures ExpandNodeView.update() receives the decoration and visually
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
19
19
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "137.5.0";
22
+ var packageVersion = "137.5.1";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -1,6 +1,4 @@
1
1
  import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
2
- import { fg } from '@atlaskit/platform-feature-flags/fg';
3
-
4
2
  /**
5
3
  * Returns the outermost table's sticky header height for `targetPos` if its a table row and eligible to be
6
4
  * sticky. Table headers at least half the viewport high intentionally do not become sticky.
@@ -23,7 +21,7 @@ export function getStickyHeaderHeight(view, targetPos) {
23
21
  var firstRowPos = outermostTable.pos + 1;
24
22
 
25
23
  // do not add sticky header offset if the target is in the sticky header
26
- if (firstRow && targetPos >= firstRowPos && targetPos < firstRowPos + firstRow.nodeSize && fg('platform_editor_ai_show_diff_patch_2')) {
24
+ if (firstRow && targetPos >= firstRowPos && targetPos < firstRowPos + firstRow.nodeSize) {
27
25
  return undefined;
28
26
  }
29
27
  var firstRowDom = view.nodeDOM(firstRowPos);
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "137.5.0";
23
+ var packageVersion = "137.5.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -3,11 +3,12 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
3
3
 
4
4
  /**
5
5
  * Same as `isAiXstateMigrationEnabled` from `@atlaskit/editor-common/ai-xstate-migration`
6
- * (Confluence `platform_editor_ai_xstate_migration` OR Jira
7
- * `platform_editor_ai_xstate_migration_jira`), but never fires exposure.
6
+ * (Confluence `platform_editor_ai_xstate_migration`, Jira
7
+ * `platform_editor_ai_xstate_migration_jira`, OR remaining products
8
+ * `platform_editor_ai_xstate_migration_other`), but never fires exposure.
8
9
  *
9
- * Cleanup: only remove once BOTH experiments have shipped.
10
+ * Cleanup: only remove once ALL three experiments have shipped.
10
11
  */
11
12
  export var isAiXstateMigrationEnabledNoExposure = function isAiXstateMigrationEnabledNoExposure() {
12
- return expValEqualsNoExposure('platform_editor_ai_xstate_migration', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_ai_xstate_migration_jira', 'isEnabled', false) === true;
13
+ return expValEqualsNoExposure('platform_editor_ai_xstate_migration', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_ai_xstate_migration_jira', 'isEnabled', false) === true || UNSAFE_expValNoExposure('platform_editor_ai_xstate_migration_other', 'isEnabled', false) === true;
13
14
  };
@@ -4,22 +4,25 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
4
  /**
5
5
  * Whether the editor AI xstate migration is enabled for the current product.
6
6
  *
7
- * The migration is rolled out via two product-specific experiments:
7
+ * The migration is rolled out via three audience-specific experiments:
8
8
  * - `platform_editor_ai_xstate_migration` (Confluence), a legacy editor experiment
9
9
  * read via `@atlaskit/tmp-editor-statsig`
10
10
  * - `platform_editor_ai_xstate_migration_jira` (Jira), a platform feature experiment
11
11
  * read via `@atlaskit/platform-feature-experiments`
12
+ * - `platform_editor_ai_xstate_migration_other` (remaining products), a platform
13
+ * feature experiment. Targeting must exclude Jira and Confluence, and the existing
14
+ * experiments must exclude the remaining products to preserve their control group.
12
15
  *
13
- * Use this helper instead of checking either experiment directly so every call site
16
+ * Use this helper instead of checking an experiment directly so every call site
14
17
  * stays consistent across products. Use `isAiXstateMigrationEnabledNoExposure` from
15
18
  * `@atlaskit/editor-common/ai-xstate-migration-no-exposure` when exposure must not fire.
16
19
  *
17
20
  * Cleanup: only remove this helper (and replace its call sites with `true`) once
18
- * BOTH experiments have shipped. Cleaning up the Confluence experiment alone by
19
- * replacing it with `true` would also force the migration on for Jira.
21
+ * ALL three experiments have shipped. Cleaning up one experiment alone by replacing
22
+ * it with `true` would also force the migration on for the other products.
20
23
  *
21
24
  * Note: This method fires exposure for the evaluated experiment(s).
22
25
  */
23
26
  export var isAiXstateMigrationEnabled = function isAiXstateMigrationEnabled() {
24
- return expValEquals('platform_editor_ai_xstate_migration', 'isEnabled', true) || isExperimentEnabled('platform_editor_ai_xstate_migration_jira');
27
+ return expValEquals('platform_editor_ai_xstate_migration', 'isEnabled', true) || isExperimentEnabled('platform_editor_ai_xstate_migration_jira') || isExperimentEnabled('platform_editor_ai_xstate_migration_other');
25
28
  };
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * Same as `isAiXstateMigrationEnabled` from `@atlaskit/editor-common/ai-xstate-migration`
3
- * (Confluence `platform_editor_ai_xstate_migration` OR Jira
4
- * `platform_editor_ai_xstate_migration_jira`), but never fires exposure.
3
+ * (Confluence `platform_editor_ai_xstate_migration`, Jira
4
+ * `platform_editor_ai_xstate_migration_jira`, OR remaining products
5
+ * `platform_editor_ai_xstate_migration_other`), but never fires exposure.
5
6
  *
6
- * Cleanup: only remove once BOTH experiments have shipped.
7
+ * Cleanup: only remove once ALL three experiments have shipped.
7
8
  */
8
9
  export declare const isAiXstateMigrationEnabledNoExposure: () => boolean;
@@ -1,19 +1,22 @@
1
1
  /**
2
2
  * Whether the editor AI xstate migration is enabled for the current product.
3
3
  *
4
- * The migration is rolled out via two product-specific experiments:
4
+ * The migration is rolled out via three audience-specific experiments:
5
5
  * - `platform_editor_ai_xstate_migration` (Confluence), a legacy editor experiment
6
6
  * read via `@atlaskit/tmp-editor-statsig`
7
7
  * - `platform_editor_ai_xstate_migration_jira` (Jira), a platform feature experiment
8
8
  * read via `@atlaskit/platform-feature-experiments`
9
+ * - `platform_editor_ai_xstate_migration_other` (remaining products), a platform
10
+ * feature experiment. Targeting must exclude Jira and Confluence, and the existing
11
+ * experiments must exclude the remaining products to preserve their control group.
9
12
  *
10
- * Use this helper instead of checking either experiment directly so every call site
13
+ * Use this helper instead of checking an experiment directly so every call site
11
14
  * stays consistent across products. Use `isAiXstateMigrationEnabledNoExposure` from
12
15
  * `@atlaskit/editor-common/ai-xstate-migration-no-exposure` when exposure must not fire.
13
16
  *
14
17
  * Cleanup: only remove this helper (and replace its call sites with `true`) once
15
- * BOTH experiments have shipped. Cleaning up the Confluence experiment alone by
16
- * replacing it with `true` would also force the migration on for Jira.
18
+ * ALL three experiments have shipped. Cleaning up one experiment alone by replacing
19
+ * it with `true` would also force the migration on for the other products.
17
20
  *
18
21
  * Note: This method fires exposure for the evaluated experiment(s).
19
22
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "137.5.1",
3
+ "version": "137.5.2",
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/"
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/link": "^5.1.0",
57
57
  "@atlaskit/link-datasource": "^7.15.0",
58
58
  "@atlaskit/link-picker": "^6.22.0",
59
- "@atlaskit/linking-common": "^13.0.0",
59
+ "@atlaskit/linking-common": "^13.1.0",
60
60
  "@atlaskit/logo": "^23.3.0",
61
61
  "@atlaskit/media-card": "^82.3.0",
62
62
  "@atlaskit/media-client": "^39.4.0",
@@ -76,7 +76,7 @@
76
76
  "@atlaskit/popper": "^9.4.0",
77
77
  "@atlaskit/popup": "^10.2.0",
78
78
  "@atlaskit/primitives": "^22.8.0",
79
- "@atlaskit/profilecard": "^27.11.0",
79
+ "@atlaskit/profilecard": "^27.12.0",
80
80
  "@atlaskit/prosemirror-history": "^1.3.0",
81
81
  "@atlaskit/react-compiler-gating": "^0.2.0",
82
82
  "@atlaskit/react-ufo": "^8.5.0",
@@ -161,9 +161,6 @@
161
161
  "type": "boolean",
162
162
  "referenceOnly": true
163
163
  },
164
- "platform_editor_ai_show_diff_patch_2": {
165
- "type": "boolean"
166
- },
167
164
  "platform_editor_hide_configure_lozenge_non_configurable": {
168
165
  "type": "boolean"
169
166
  },