@atlaskit/editor-common 119.15.1 → 119.16.1

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,28 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 119.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 119.16.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`943e747f0c27d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/943e747f0c27d) -
14
+ Enable React 19 compatibility for additional Editor packages.
15
+ - [`5cc70c8e13d71`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5cc70c8e13d71) -
16
+ Add the suggestionsPanelEmptyState analytics entry point for the
17
+ platform_editor_ai_content_suggested_edits experiment.
18
+
19
+ ### Patch Changes
20
+
21
+ - [`9e4a665de419a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9e4a665de419a) -
22
+ Clean up of expriment flag `platform_editor_preview_panel_linking_exp_conf` and
23
+ `platform_editor_preview_panel_linking_exp_jira`.
24
+ - Updated dependencies
25
+
3
26
  ## 119.15.1
4
27
 
5
28
  ### Patch Changes
@@ -15,13 +15,7 @@ const EXCLUDED_PACKAGE_JSON_PATHS = [
15
15
  'packages/editor/editor-core/package.json',
16
16
  'packages/editor/editor-plugin-ai-tests/package.json',
17
17
  'packages/editor/editor-plugin-extension-tests/package.json',
18
- 'packages/editor/editor-plugin-synced-block-tests/package.json',
19
- 'packages/editor/generative-ai-modal/package.json',
20
- 'packages/editor/editor-plugin-show-diff-tests/package.json',
21
18
  'packages/editor/editor-plugin-table-tests/package.json',
22
- 'packages/editor/editor-plugin-quick-insert-tests/package.json',
23
- 'packages/editor/editor-referentiality/package.json',
24
- 'packages/editor/editor-synced-block-renderer-tests/package.json',
25
19
  ];
26
20
 
27
21
  type DependencyName = 'react' | 'react-dom' | '@types/react' | '@types/react-dom';
@@ -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 = "119.15.0";
31
+ var packageVersion = "119.16.0";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // Ignored via go/ees007
@@ -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 = "119.15.0";
27
+ var packageVersion = "119.16.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -18,7 +18,6 @@ var _panelRight = _interopRequireDefault(require("@atlaskit/icon/core/panel-righ
18
18
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
19
  var _primitives = require("@atlaskit/primitives");
20
20
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
21
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
22
21
  var _analytics = require("../../analytics");
23
22
  var _messages = require("../../messages");
24
23
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -208,14 +207,13 @@ var HoverLinkOverlay = function HoverLinkOverlay(_ref) {
208
207
  sendVisitLinkAnalytics(_analytics.INPUT_METHOD.BUTTON);
209
208
  }
210
209
  };
211
- var isPreviewButton = showPanelButton && (0, _experiments.editorExperiment)('platform_editor_preview_panel_linking_exp', true);
212
- var label = isPreviewButton ? formatMessage(_messages.cardMessages.previewButtonTitle) : formatMessage(_messages.cardMessages.openButtonTitle);
210
+ var label = showPanelButton ? formatMessage(_messages.cardMessages.previewButtonTitle) : formatMessage(_messages.cardMessages.openButtonTitle);
213
211
  var icon = null;
214
- if (isPreviewButton && showPanelButtonIcon === 'panel') {
212
+ if (showPanelButton && showPanelButtonIcon === 'panel') {
215
213
  icon = (0, _react2.jsx)(_panelRight.default, {
216
214
  label: ""
217
215
  });
218
- } else if (isPreviewButton && showPanelButtonIcon === 'modal') {
216
+ } else if (showPanelButton && showPanelButtonIcon === 'modal') {
219
217
  icon = (0, _react2.jsx)(_growDiagonal.default, {
220
218
  label: ""
221
219
  });
@@ -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 = "119.15.0";
17
+ const packageVersion = "119.16.0";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // Ignored via go/ees007
@@ -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 = "119.15.0";
17
+ const packageVersion = "119.16.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -19,7 +19,6 @@ import { fg } from '@atlaskit/platform-feature-flags';
19
19
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
20
20
  import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
21
21
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
22
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
23
22
  import { buildVisitedNonHyperLinkPayload, INPUT_METHOD } from '../../analytics';
24
23
  import { cardMessages } from '../../messages';
25
24
  /**
@@ -187,14 +186,13 @@ const HoverLinkOverlay = ({
187
186
  sendVisitLinkAnalytics(INPUT_METHOD.BUTTON);
188
187
  }
189
188
  };
190
- const isPreviewButton = showPanelButton && editorExperiment('platform_editor_preview_panel_linking_exp', true);
191
- const label = isPreviewButton ? formatMessage(cardMessages.previewButtonTitle) : formatMessage(cardMessages.openButtonTitle);
189
+ const label = showPanelButton ? formatMessage(cardMessages.previewButtonTitle) : formatMessage(cardMessages.openButtonTitle);
192
190
  let icon = null;
193
- if (isPreviewButton && showPanelButtonIcon === 'panel') {
191
+ if (showPanelButton && showPanelButtonIcon === 'panel') {
194
192
  icon = jsx(PanelRightIcon, {
195
193
  label: ""
196
194
  });
197
- } else if (isPreviewButton && showPanelButtonIcon === 'modal') {
195
+ } else if (showPanelButton && showPanelButtonIcon === 'modal') {
198
196
  icon = jsx(GrowDiagonalIcon, {
199
197
  label: ""
200
198
  });
@@ -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 = "119.15.0";
23
+ var packageVersion = "119.16.0";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // Ignored via go/ees007
@@ -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 = "119.15.0";
24
+ var packageVersion = "119.16.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -20,7 +20,6 @@ import { fg } from '@atlaskit/platform-feature-flags';
20
20
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
21
21
  import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
22
22
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
23
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
24
23
  import { buildVisitedNonHyperLinkPayload, INPUT_METHOD } from '../../analytics';
25
24
  import { cardMessages } from '../../messages';
26
25
  /**
@@ -195,14 +194,13 @@ var HoverLinkOverlay = function HoverLinkOverlay(_ref) {
195
194
  sendVisitLinkAnalytics(INPUT_METHOD.BUTTON);
196
195
  }
197
196
  };
198
- var isPreviewButton = showPanelButton && editorExperiment('platform_editor_preview_panel_linking_exp', true);
199
- var label = isPreviewButton ? formatMessage(cardMessages.previewButtonTitle) : formatMessage(cardMessages.openButtonTitle);
197
+ var label = showPanelButton ? formatMessage(cardMessages.previewButtonTitle) : formatMessage(cardMessages.openButtonTitle);
200
198
  var icon = null;
201
- if (isPreviewButton && showPanelButtonIcon === 'panel') {
199
+ if (showPanelButton && showPanelButtonIcon === 'panel') {
202
200
  icon = jsx(PanelRightIcon, {
203
201
  label: ""
204
202
  });
205
- } else if (isPreviewButton && showPanelButtonIcon === 'modal') {
203
+ } else if (showPanelButton && showPanelButtonIcon === 'modal') {
206
204
  icon = jsx(GrowDiagonalIcon, {
207
205
  label: ""
208
206
  });
@@ -1,11 +1,17 @@
1
1
  import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
2
2
  import type { OperationalAEP, TrackAEP } from './utils';
3
- export type AiSuggestionsEntryPoint = 'primaryToolbar' | 'commentsEmptyState' | 'objectSidebarControl'
3
+ export type AiSuggestionsEntryPoint = 'primaryToolbar'
4
+ /**
5
+ * Legacy entry point retained for the suggestions surface in the comments panel.
6
+ * Use `suggestionsPanelEmptyState` for the standalone suggestions panel.
7
+ */
8
+ | 'commentsEmptyState' | 'suggestionsPanelEmptyState' | 'objectSidebarControl'
4
9
  /**
5
10
  * Generation started automatically because a suggestions surface was opened
6
11
  * with nothing to show — no explicit user action. Kept distinct from
7
- * `commentsEmptyState` (the "Review" button in that empty state) so the two
8
- * can be told apart in analytics.
12
+ * `suggestionsPanelEmptyState` and the legacy `commentsEmptyState` (the "Review"
13
+ * button in those empty states) so automatic and user-initiated generation can
14
+ * be told apart in analytics.
9
15
  */
10
16
  | 'suggestionsPanelMount'
11
17
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "119.15.1",
3
+ "version": "119.16.1",
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/"
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/feature-gate-js-client": "^6.0.0",
55
55
  "@atlaskit/icon": "^37.5.0",
56
56
  "@atlaskit/link": "^5.1.0",
57
- "@atlaskit/link-datasource": "^6.6.0",
57
+ "@atlaskit/link-datasource": "^6.7.0",
58
58
  "@atlaskit/link-picker": "^6.5.0",
59
59
  "@atlaskit/media-card": "^81.7.0",
60
60
  "@atlaskit/media-client": "^37.5.0",
@@ -84,7 +84,7 @@
84
84
  "@atlaskit/task-decision": "^21.8.0",
85
85
  "@atlaskit/teams-app-config": "^2.2.0",
86
86
  "@atlaskit/textfield": "^10.1.0",
87
- "@atlaskit/tmp-editor-statsig": "^157.0.0",
87
+ "@atlaskit/tmp-editor-statsig": "^159.0.0",
88
88
  "@atlaskit/tokens": "^16.8.0",
89
89
  "@atlaskit/tooltip": "^24.2.0",
90
90
  "@atlaskit/width-detector": "^7.1.0",
@@ -125,7 +125,7 @@
125
125
  },
126
126
  "devDependencies": {
127
127
  "@atlaskit/media-core": "^38.0.0",
128
- "@atlassian/a11y-jest-testing": "^0.16.0",
128
+ "@atlassian/a11y-jest-testing": "^0.17.0",
129
129
  "@atlassian/experiment-test-utils": "^0.2.0",
130
130
  "@atlassian/feature-flags-test-utils": "^1.2.0",
131
131
  "@atlassian/testing-library": "^0.11.0",