@atlaskit/editor-common 107.18.1 → 107.18.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,14 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 107.18.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#197821](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/197821)
8
+ [`ceed6696867c2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ceed6696867c2) -
9
+ [ux] [EDITOR-1062] updated error screen design and texts
10
+ - Updated dependencies
11
+
3
12
  ## 107.18.1
4
13
 
5
14
  ### Patch Changes
@@ -13,6 +13,11 @@ var aiFailedStateMessages = exports.aiFailedStateMessages = (0, _reactIntlNext.d
13
13
  defaultMessage: 'Your prompt or content might not comply with our Acceptable Use Policy. Please review both and refer to our <link>Acceptable Use Policy</link> if needed. If the problem persists, consider trying a different prompt or content.',
14
14
  description: 'Message to indicate to user their prompt or content (this can be a range of content, such as a selection or document -- we used content to keep it vague -- as this will change without user knowing) has been detected as violating Atlassians acceptable use policy. Note the markdown link -- this is expected to remain as markdown as this string is converted to html.'
15
15
  },
16
+ cmdPaletteAupViolationMessage: {
17
+ id: 'fabric.editor.ai.experience.cmdPaletteAupViolationMessage',
18
+ defaultMessage: "We couldn’t complete that request because it doesn't comply with our <link>Acceptable Use Policy</link>.",
19
+ description: 'Message to indicate to user their prompt or content (this can be a range of content, such as a selection or document -- we used content to keep it vague -- as this will change without user knowing) has been detected as violating Atlassians acceptable use policy. Note the markdown link -- this is expected to remain as markdown as this string is converted to html.'
20
+ },
16
21
  documentInsertError: {
17
22
  id: 'fabric.editor.ai.experience-application.documentInsertError',
18
23
  defaultMessage: "We're having trouble inserting the response. Close the dialog and try again.",
@@ -33,6 +38,11 @@ var aiFailedStateMessages = exports.aiFailedStateMessages = (0, _reactIntlNext.d
33
38
  defaultMessage: "We couldn\u2019t get a response, please try again.",
34
39
  description: "We couldn't get a response due to an api error (ie. the backend responded with an error, or got a timeout)"
35
40
  },
41
+ cmdPaletteApiError: {
42
+ id: 'fabric.editor.ai.experience.cmdPaletteApiError',
43
+ defaultMessage: "An error occurred while generating your response.",
44
+ description: "We couldn't get a response due to an api error (ie. the backend responded with an error, or got a timeout)"
45
+ },
36
46
  elevateDisabledGenerateError: {
37
47
  id: 'fabric.editor.ai.experience.elevateDisabledGenetateError',
38
48
  defaultMessage: "Free generate is disabled in Elevate at this time.",
@@ -198,6 +198,11 @@ var aiMessages = exports.aiMessages = (0, _reactIntlNext.defineMessages)({
198
198
  defaultMessage: "We're having trouble. Close the dialog and try again.",
199
199
  description: 'Message to users that displays when an unexpected error happens'
200
200
  },
201
+ cmdPaletteUnhandledErrorMessage: {
202
+ id: 'fabric.editor.ai.experience-application.cmdPaletteUnhandledErrorMessage',
203
+ defaultMessage: "We're having issues and can't generate a response right now. Try again later.",
204
+ description: 'Message to users that displays when an unexpected error happens'
205
+ },
201
206
  markdownErrorMessage: {
202
207
  id: 'fabric.editor.ai.experience-application.error-boundary.markdownErrorMessage',
203
208
  defaultMessage: "We're having trouble generating the preview. Close the dialog and try again.",
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  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); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "107.18.0";
19
+ var packageVersion = "107.18.1";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -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 = "107.18.0";
26
+ var packageVersion = "107.18.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -6,6 +6,11 @@ export const aiFailedStateMessages = defineMessages({
6
6
  defaultMessage: 'Your prompt or content might not comply with our Acceptable Use Policy. Please review both and refer to our <link>Acceptable Use Policy</link> if needed. If the problem persists, consider trying a different prompt or content.',
7
7
  description: 'Message to indicate to user their prompt or content (this can be a range of content, such as a selection or document -- we used content to keep it vague -- as this will change without user knowing) has been detected as violating Atlassians acceptable use policy. Note the markdown link -- this is expected to remain as markdown as this string is converted to html.'
8
8
  },
9
+ cmdPaletteAupViolationMessage: {
10
+ id: 'fabric.editor.ai.experience.cmdPaletteAupViolationMessage',
11
+ defaultMessage: "We couldn’t complete that request because it doesn't comply with our <link>Acceptable Use Policy</link>.",
12
+ description: 'Message to indicate to user their prompt or content (this can be a range of content, such as a selection or document -- we used content to keep it vague -- as this will change without user knowing) has been detected as violating Atlassians acceptable use policy. Note the markdown link -- this is expected to remain as markdown as this string is converted to html.'
13
+ },
9
14
  documentInsertError: {
10
15
  id: 'fabric.editor.ai.experience-application.documentInsertError',
11
16
  defaultMessage: `We're having trouble inserting the response. Close the dialog and try again.`,
@@ -26,6 +31,11 @@ export const aiFailedStateMessages = defineMessages({
26
31
  defaultMessage: `We couldn’t get a response, please try again.`,
27
32
  description: `We couldn't get a response due to an api error (ie. the backend responded with an error, or got a timeout)`
28
33
  },
34
+ cmdPaletteApiError: {
35
+ id: 'fabric.editor.ai.experience.cmdPaletteApiError',
36
+ defaultMessage: `An error occurred while generating your response.`,
37
+ description: `We couldn't get a response due to an api error (ie. the backend responded with an error, or got a timeout)`
38
+ },
29
39
  elevateDisabledGenerateError: {
30
40
  id: 'fabric.editor.ai.experience.elevateDisabledGenetateError',
31
41
  defaultMessage: `Free generate is disabled in Elevate at this time.`,
@@ -192,6 +192,11 @@ export const aiMessages = defineMessages({
192
192
  defaultMessage: "We're having trouble. Close the dialog and try again.",
193
193
  description: 'Message to users that displays when an unexpected error happens'
194
194
  },
195
+ cmdPaletteUnhandledErrorMessage: {
196
+ id: 'fabric.editor.ai.experience-application.cmdPaletteUnhandledErrorMessage',
197
+ defaultMessage: "We're having issues and can't generate a response right now. Try again later.",
198
+ description: 'Message to users that displays when an unexpected error happens'
199
+ },
195
200
  markdownErrorMessage: {
196
201
  id: 'fabric.editor.ai.experience-application.error-boundary.markdownErrorMessage',
197
202
  defaultMessage: "We're having trouble generating the preview. Close the dialog and try again.",
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "107.18.0";
4
+ const packageVersion = "107.18.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -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 = "107.18.0";
16
+ const packageVersion = "107.18.1";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -6,6 +6,11 @@ export var aiFailedStateMessages = defineMessages({
6
6
  defaultMessage: 'Your prompt or content might not comply with our Acceptable Use Policy. Please review both and refer to our <link>Acceptable Use Policy</link> if needed. If the problem persists, consider trying a different prompt or content.',
7
7
  description: 'Message to indicate to user their prompt or content (this can be a range of content, such as a selection or document -- we used content to keep it vague -- as this will change without user knowing) has been detected as violating Atlassians acceptable use policy. Note the markdown link -- this is expected to remain as markdown as this string is converted to html.'
8
8
  },
9
+ cmdPaletteAupViolationMessage: {
10
+ id: 'fabric.editor.ai.experience.cmdPaletteAupViolationMessage',
11
+ defaultMessage: "We couldn’t complete that request because it doesn't comply with our <link>Acceptable Use Policy</link>.",
12
+ description: 'Message to indicate to user their prompt or content (this can be a range of content, such as a selection or document -- we used content to keep it vague -- as this will change without user knowing) has been detected as violating Atlassians acceptable use policy. Note the markdown link -- this is expected to remain as markdown as this string is converted to html.'
13
+ },
9
14
  documentInsertError: {
10
15
  id: 'fabric.editor.ai.experience-application.documentInsertError',
11
16
  defaultMessage: "We're having trouble inserting the response. Close the dialog and try again.",
@@ -26,6 +31,11 @@ export var aiFailedStateMessages = defineMessages({
26
31
  defaultMessage: "We couldn\u2019t get a response, please try again.",
27
32
  description: "We couldn't get a response due to an api error (ie. the backend responded with an error, or got a timeout)"
28
33
  },
34
+ cmdPaletteApiError: {
35
+ id: 'fabric.editor.ai.experience.cmdPaletteApiError',
36
+ defaultMessage: "An error occurred while generating your response.",
37
+ description: "We couldn't get a response due to an api error (ie. the backend responded with an error, or got a timeout)"
38
+ },
29
39
  elevateDisabledGenerateError: {
30
40
  id: 'fabric.editor.ai.experience.elevateDisabledGenetateError',
31
41
  defaultMessage: "Free generate is disabled in Elevate at this time.",
@@ -192,6 +192,11 @@ export var aiMessages = defineMessages({
192
192
  defaultMessage: "We're having trouble. Close the dialog and try again.",
193
193
  description: 'Message to users that displays when an unexpected error happens'
194
194
  },
195
+ cmdPaletteUnhandledErrorMessage: {
196
+ id: 'fabric.editor.ai.experience-application.cmdPaletteUnhandledErrorMessage',
197
+ defaultMessage: "We're having issues and can't generate a response right now. Try again later.",
198
+ description: 'Message to users that displays when an unexpected error happens'
199
+ },
195
200
  markdownErrorMessage: {
196
201
  id: 'fabric.editor.ai.experience-application.error-boundary.markdownErrorMessage',
197
202
  defaultMessage: "We're having trouble generating the preview. Close the dialog and try again.",
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "107.18.0";
10
+ var packageVersion = "107.18.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -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 = "107.18.0";
23
+ var packageVersion = "107.18.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -4,6 +4,11 @@ export declare const aiFailedStateMessages: {
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
+ cmdPaletteAupViolationMessage: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
7
12
  documentInsertError: {
8
13
  id: string;
9
14
  defaultMessage: string;
@@ -24,6 +29,11 @@ export declare const aiFailedStateMessages: {
24
29
  defaultMessage: string;
25
30
  description: string;
26
31
  };
32
+ cmdPaletteApiError: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
27
37
  elevateDisabledGenerateError: {
28
38
  id: string;
29
39
  defaultMessage: string;
@@ -184,6 +184,11 @@ export declare const aiMessages: {
184
184
  defaultMessage: string;
185
185
  description: string;
186
186
  };
187
+ cmdPaletteUnhandledErrorMessage: {
188
+ id: string;
189
+ defaultMessage: string;
190
+ description: string;
191
+ };
187
192
  markdownErrorMessage: {
188
193
  id: string;
189
194
  defaultMessage: string;
@@ -4,6 +4,11 @@ export declare const aiFailedStateMessages: {
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
+ cmdPaletteAupViolationMessage: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
7
12
  documentInsertError: {
8
13
  id: string;
9
14
  defaultMessage: string;
@@ -24,6 +29,11 @@ export declare const aiFailedStateMessages: {
24
29
  defaultMessage: string;
25
30
  description: string;
26
31
  };
32
+ cmdPaletteApiError: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
27
37
  elevateDisabledGenerateError: {
28
38
  id: string;
29
39
  defaultMessage: string;
@@ -184,6 +184,11 @@ export declare const aiMessages: {
184
184
  defaultMessage: string;
185
185
  description: string;
186
186
  };
187
+ cmdPaletteUnhandledErrorMessage: {
188
+ id: string;
189
+ defaultMessage: string;
190
+ description: string;
191
+ };
187
192
  markdownErrorMessage: {
188
193
  id: string;
189
194
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "107.18.1",
3
+ "version": "107.18.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/"
@@ -148,7 +148,7 @@
148
148
  "@atlaskit/link-datasource": "^4.19.0",
149
149
  "@atlaskit/link-picker": "^3.9.0",
150
150
  "@atlaskit/media-card": "^79.5.0",
151
- "@atlaskit/media-client": "^35.2.0",
151
+ "@atlaskit/media-client": "^35.3.0",
152
152
  "@atlaskit/media-client-react": "^4.1.0",
153
153
  "@atlaskit/media-common": "^12.3.0",
154
154
  "@atlaskit/media-file-preview": "^0.11.0",
@@ -162,7 +162,7 @@
162
162
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
163
163
  "@atlaskit/popper": "^7.1.0",
164
164
  "@atlaskit/primitives": "^14.11.0",
165
- "@atlaskit/profilecard": "^24.1.0",
165
+ "@atlaskit/profilecard": "^24.2.0",
166
166
  "@atlaskit/react-ufo": "^4.2.0",
167
167
  "@atlaskit/section-message": "^8.5.0",
168
168
  "@atlaskit/smart-card": "^40.7.0",