@atlaskit/editor-common 120.16.2 → 120.16.3

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,14 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 120.16.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c263d4de33054`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c263d4de33054) -
8
+ Render retryable agent mention load errors in the typeahead menu behind
9
+ `platform_editor_agent_mentions_rovo_query_timeout`.
10
+ - Updated dependencies
11
+
3
12
  ## 120.16.2
4
13
 
5
14
  ### Patch Changes
@@ -55,5 +55,15 @@ var mentionMessages = exports.mentionMessages = (0, _reactIntl.defineMessages)({
55
55
  id: 'editor-common.messages.mentions.typeAheadSectionAgentsLabsLozengeLabel',
56
56
  defaultMessage: 'Labs',
57
57
  description: 'Lozenge label shown next to the Agents section header in the mention type-ahead menu to indicate that agent mentions are experimental. This label is intentionally captialised.'
58
+ },
59
+ typeAheadSectionAgentsLoadError: {
60
+ id: 'editor-common.messages.mentions.typeAheadSectionAgentsLoadError',
61
+ defaultMessage: 'Unable to load agents',
62
+ description: 'Error text shown in the Agents section of the mention type-ahead menu when agent results fail to load.'
63
+ },
64
+ typeAheadSectionAgentsRetry: {
65
+ id: 'editor-common.messages.mentions.typeAheadSectionAgentsRetry',
66
+ defaultMessage: 'Retry',
67
+ description: 'Retry action text shown next to the agent loading error in the mention type-ahead menu.'
58
68
  }
59
69
  });
@@ -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 = "120.16.1";
30
+ var packageVersion = "120.16.2";
31
31
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
32
32
  // Remove URL as it has UGC
33
33
  // 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 = "120.16.1";
27
+ var packageVersion = "120.16.2";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -49,5 +49,15 @@ export const mentionMessages = defineMessages({
49
49
  id: 'editor-common.messages.mentions.typeAheadSectionAgentsLabsLozengeLabel',
50
50
  defaultMessage: 'Labs',
51
51
  description: 'Lozenge label shown next to the Agents section header in the mention type-ahead menu to indicate that agent mentions are experimental. This label is intentionally captialised.'
52
+ },
53
+ typeAheadSectionAgentsLoadError: {
54
+ id: 'editor-common.messages.mentions.typeAheadSectionAgentsLoadError',
55
+ defaultMessage: 'Unable to load agents',
56
+ description: 'Error text shown in the Agents section of the mention type-ahead menu when agent results fail to load.'
57
+ },
58
+ typeAheadSectionAgentsRetry: {
59
+ id: 'editor-common.messages.mentions.typeAheadSectionAgentsRetry',
60
+ defaultMessage: 'Retry',
61
+ description: 'Retry action text shown next to the agent loading error in the mention type-ahead menu.'
52
62
  }
53
63
  });
@@ -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 = "120.16.1";
16
+ const packageVersion = "120.16.2";
17
17
  const sanitiseSentryEvents = (data, _hint) => {
18
18
  // Remove URL as it has UGC
19
19
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags/fg';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "120.16.1";
17
+ const packageVersion = "120.16.2";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -49,5 +49,15 @@ export var mentionMessages = defineMessages({
49
49
  id: 'editor-common.messages.mentions.typeAheadSectionAgentsLabsLozengeLabel',
50
50
  defaultMessage: 'Labs',
51
51
  description: 'Lozenge label shown next to the Agents section header in the mention type-ahead menu to indicate that agent mentions are experimental. This label is intentionally captialised.'
52
+ },
53
+ typeAheadSectionAgentsLoadError: {
54
+ id: 'editor-common.messages.mentions.typeAheadSectionAgentsLoadError',
55
+ defaultMessage: 'Unable to load agents',
56
+ description: 'Error text shown in the Agents section of the mention type-ahead menu when agent results fail to load.'
57
+ },
58
+ typeAheadSectionAgentsRetry: {
59
+ id: 'editor-common.messages.mentions.typeAheadSectionAgentsRetry',
60
+ defaultMessage: 'Retry',
61
+ description: 'Retry action text shown next to the agent loading error in the mention type-ahead menu.'
52
62
  }
53
63
  });
@@ -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 = "120.16.1";
22
+ var packageVersion = "120.16.2";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags/fg';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "120.16.1";
24
+ var packageVersion = "120.16.2";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -39,6 +39,16 @@ export declare const mentionMessages: {
39
39
  description: string;
40
40
  id: string;
41
41
  };
42
+ typeAheadSectionAgentsLoadError: {
43
+ defaultMessage: string;
44
+ description: string;
45
+ id: string;
46
+ };
47
+ typeAheadSectionAgentsRetry: {
48
+ defaultMessage: string;
49
+ description: string;
50
+ id: string;
51
+ };
42
52
  typeAheadSectionPeople: {
43
53
  defaultMessage: string;
44
54
  description: string;
@@ -23,7 +23,7 @@ export type TypeAheadItemRenderProps = {
23
23
  onClick: () => void;
24
24
  onHover: () => void;
25
25
  };
26
- export type TypeAheadInsert = (node?: PMNode | Object | string | Fragment, opts?: {
26
+ export type TypeAheadInsert = (node?: PMNode | object | string | Fragment, opts?: {
27
27
  selectInlineNode?: boolean;
28
28
  }) => Transaction;
29
29
  export type TypeAheadSelectItem = (state: EditorState, item: TypeAheadItem, insert: TypeAheadInsert, meta: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "120.16.2",
3
+ "version": "120.16.3",
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/"
@@ -64,7 +64,7 @@
64
64
  "@atlaskit/media-picker": "^72.4.0",
65
65
  "@atlaskit/media-ui": "^30.15.0",
66
66
  "@atlaskit/media-viewer": "^54.8.0",
67
- "@atlaskit/mention": "^27.19.0",
67
+ "@atlaskit/mention": "^28.0.0",
68
68
  "@atlaskit/menu": "^10.2.0",
69
69
  "@atlaskit/object": "^2.3.0",
70
70
  "@atlaskit/onboarding": "^15.4.0",