@atlaskit/editor-common 114.14.0 → 114.16.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 +26 -0
  2. package/dist/cjs/ai-messages/ai-suggestions.js +5 -0
  3. package/dist/cjs/analytics/types/enums.js +1 -0
  4. package/dist/cjs/messages/syncBlock.js +5 -0
  5. package/dist/cjs/monitoring/error.js +1 -1
  6. package/dist/cjs/ui/DropList/index.js +1 -1
  7. package/dist/es2019/ai-messages/ai-suggestions.js +5 -0
  8. package/dist/es2019/analytics/types/enums.js +1 -0
  9. package/dist/es2019/messages/syncBlock.js +5 -0
  10. package/dist/es2019/monitoring/error.js +1 -1
  11. package/dist/es2019/ui/DropList/index.js +1 -1
  12. package/dist/esm/ai-messages/ai-suggestions.js +5 -0
  13. package/dist/esm/analytics/types/enums.js +1 -0
  14. package/dist/esm/messages/syncBlock.js +5 -0
  15. package/dist/esm/monitoring/error.js +1 -1
  16. package/dist/esm/ui/DropList/index.js +1 -1
  17. package/dist/types/ai-messages/ai-suggestions.d.ts +5 -0
  18. package/dist/types/analytics/types/ai-quick-prompt-events.d.ts +7 -2
  19. package/dist/types/analytics/types/element-events.d.ts +0 -1
  20. package/dist/types/analytics/types/enums.d.ts +1 -0
  21. package/dist/types/analytics/types/move-content-events.d.ts +0 -1
  22. package/dist/types/messages/syncBlock.d.ts +5 -0
  23. package/dist/types-ts4.5/ai-messages/ai-suggestions.d.ts +5 -0
  24. package/dist/types-ts4.5/analytics/types/ai-quick-prompt-events.d.ts +7 -2
  25. package/dist/types-ts4.5/analytics/types/element-events.d.ts +0 -1
  26. package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
  27. package/dist/types-ts4.5/analytics/types/move-content-events.d.ts +0 -1
  28. package/dist/types-ts4.5/messages/syncBlock.d.ts +5 -0
  29. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 114.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`2145a251392fe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2145a251392fe) -
8
+ EDITOR-6750 - Tab to improve writing: Add analytics for api error
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 114.15.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`8946d017490c6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8946d017490c6) -
19
+ Add new actions in AI suggestions plugin to be used in product.
20
+ - [`ab837b5646256`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab837b5646256) -
21
+ [ux] EDITOR-6274 Clean up platform_editor_element_drag_and_drop_multiselect
22
+
23
+ ### Patch Changes
24
+
25
+ - [`d4f2db5ce63e2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d4f2db5ce63e2) -
26
+ [ux] EDITOR-5011 Adding paste warning flag when sync block pasted in atlas editors
27
+ - Updated dependencies
28
+
3
29
  ## 114.14.0
4
30
 
5
31
  ### Minor Changes
@@ -96,6 +96,11 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
96
96
  defaultMessage: 'Close',
97
97
  description: 'Label for the close button on the AI suggestions card'
98
98
  },
99
+ cardShowSidebarButtonLabel: {
100
+ id: 'fabric.editor.ai.suggestions.card.showSidebarButtonLabel.non-final',
101
+ defaultMessage: 'Show sidebar',
102
+ description: 'Label for the show sidebar button on the AI suggestions card'
103
+ },
99
104
  cardExpandButtonLabel: {
100
105
  id: 'fabric.editor.ai.suggestions.card.expandButtonLabel.non-final',
101
106
  defaultMessage: 'Expand',
@@ -308,6 +308,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
308
308
  ACTION_SUBJECT["EMBEDS"] = "embeds";
309
309
  ACTION_SUBJECT["EXPAND"] = "expand";
310
310
  ACTION_SUBJECT["EXTENSION"] = "extension";
311
+ ACTION_SUBJECT["EXTENSION_AS_INLINE"] = "extensionAsInline";
311
312
  ACTION_SUBJECT["FEATURE"] = "feature";
312
313
  ACTION_SUBJECT["FEEDBACK_DIALOG"] = "feedbackDialog";
313
314
  ACTION_SUBJECT["FIND_REPLACE_DIALOG"] = "findReplaceDialog";
@@ -371,6 +371,11 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntl.defineMessage
371
371
  defaultMessage: 'We’re still building this feature. Currently, you can only paste synced content once your work item has been created. ',
372
372
  description: 'Description in flag which appears when a synced block cannot be pasted'
373
373
  },
374
+ cannotPasteSyncedBlockUnsupportedDescription: {
375
+ id: 'fabric.editor.cannotPasteSyncedBlockUnsupportedDescription',
376
+ defaultMessage: "Sync blocks aren't supported here yet. ",
377
+ description: 'Description in flag which appears when a synced block cannot be pasted'
378
+ },
374
379
  cannotPasteSyncedBlockAction: {
375
380
  id: 'fabric.editor.cannotPasteSyncedBlockAction',
376
381
  defaultMessage: 'Learn more',
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  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); }
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 = "114.13.3";
22
+ var packageVersion = "114.15.0";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // 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 = "114.13.3";
27
+ var packageVersion = "114.15.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -90,6 +90,11 @@ export const aiSuggestionsMessages = defineMessages({
90
90
  defaultMessage: 'Close',
91
91
  description: 'Label for the close button on the AI suggestions card'
92
92
  },
93
+ cardShowSidebarButtonLabel: {
94
+ id: 'fabric.editor.ai.suggestions.card.showSidebarButtonLabel.non-final',
95
+ defaultMessage: 'Show sidebar',
96
+ description: 'Label for the show sidebar button on the AI suggestions card'
97
+ },
93
98
  cardExpandButtonLabel: {
94
99
  id: 'fabric.editor.ai.suggestions.card.expandButtonLabel.non-final',
95
100
  defaultMessage: 'Expand',
@@ -302,6 +302,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
302
302
  ACTION_SUBJECT["EMBEDS"] = "embeds";
303
303
  ACTION_SUBJECT["EXPAND"] = "expand";
304
304
  ACTION_SUBJECT["EXTENSION"] = "extension";
305
+ ACTION_SUBJECT["EXTENSION_AS_INLINE"] = "extensionAsInline";
305
306
  ACTION_SUBJECT["FEATURE"] = "feature";
306
307
  ACTION_SUBJECT["FEEDBACK_DIALOG"] = "feedbackDialog";
307
308
  ACTION_SUBJECT["FIND_REPLACE_DIALOG"] = "findReplaceDialog";
@@ -365,6 +365,11 @@ export const syncBlockMessages = defineMessages({
365
365
  defaultMessage: 'We’re still building this feature. Currently, you can only paste synced content once your work item has been created. ',
366
366
  description: 'Description in flag which appears when a synced block cannot be pasted'
367
367
  },
368
+ cannotPasteSyncedBlockUnsupportedDescription: {
369
+ id: 'fabric.editor.cannotPasteSyncedBlockUnsupportedDescription',
370
+ defaultMessage: `Sync blocks aren't supported here yet. `,
371
+ description: 'Description in flag which appears when a synced block cannot be pasted'
372
+ },
368
373
  cannotPasteSyncedBlockAction: {
369
374
  id: 'fabric.editor.cannotPasteSyncedBlockAction',
370
375
  defaultMessage: 'Learn more',
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "114.13.3";
7
+ const packageVersion = "114.15.0";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // 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 = "114.13.3";
17
+ const packageVersion = "114.15.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -90,6 +90,11 @@ export var aiSuggestionsMessages = defineMessages({
90
90
  defaultMessage: 'Close',
91
91
  description: 'Label for the close button on the AI suggestions card'
92
92
  },
93
+ cardShowSidebarButtonLabel: {
94
+ id: 'fabric.editor.ai.suggestions.card.showSidebarButtonLabel.non-final',
95
+ defaultMessage: 'Show sidebar',
96
+ description: 'Label for the show sidebar button on the AI suggestions card'
97
+ },
93
98
  cardExpandButtonLabel: {
94
99
  id: 'fabric.editor.ai.suggestions.card.expandButtonLabel.non-final',
95
100
  defaultMessage: 'Expand',
@@ -302,6 +302,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
302
302
  ACTION_SUBJECT["EMBEDS"] = "embeds";
303
303
  ACTION_SUBJECT["EXPAND"] = "expand";
304
304
  ACTION_SUBJECT["EXTENSION"] = "extension";
305
+ ACTION_SUBJECT["EXTENSION_AS_INLINE"] = "extensionAsInline";
305
306
  ACTION_SUBJECT["FEATURE"] = "feature";
306
307
  ACTION_SUBJECT["FEEDBACK_DIALOG"] = "feedbackDialog";
307
308
  ACTION_SUBJECT["FIND_REPLACE_DIALOG"] = "findReplaceDialog";
@@ -365,6 +365,11 @@ export var syncBlockMessages = defineMessages({
365
365
  defaultMessage: 'We’re still building this feature. Currently, you can only paste synced content once your work item has been created. ',
366
366
  description: 'Description in flag which appears when a synced block cannot be pasted'
367
367
  },
368
+ cannotPasteSyncedBlockUnsupportedDescription: {
369
+ id: 'fabric.editor.cannotPasteSyncedBlockUnsupportedDescription',
370
+ defaultMessage: "Sync blocks aren't supported here yet. ",
371
+ description: 'Description in flag which appears when a synced block cannot be pasted'
372
+ },
368
373
  cannotPasteSyncedBlockAction: {
369
374
  id: 'fabric.editor.cannotPasteSyncedBlockAction',
370
375
  defaultMessage: 'Learn more',
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "114.13.3";
13
+ var packageVersion = "114.15.0";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // 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 = "114.13.3";
24
+ var packageVersion = "114.15.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -59,6 +59,11 @@ export declare const aiSuggestionsMessages: {
59
59
  description: string;
60
60
  id: string;
61
61
  };
62
+ cardShowSidebarButtonLabel: {
63
+ defaultMessage: string;
64
+ description: string;
65
+ id: string;
66
+ };
62
67
  cardSourcesButtonLabel: {
63
68
  defaultMessage: string;
64
69
  description: string;
@@ -1,5 +1,5 @@
1
1
  import type { ACTION, ACTION_SUBJECT } from './enums';
2
- import type { UIAEP } from './utils';
2
+ import type { OperationalAEP, UIAEP } from './utils';
3
3
  type AIQuickPromptDisplayedAEP = UIAEP<ACTION.DISPLAYED, ACTION_SUBJECT.AI_QUICK_PROMPT, undefined, {
4
4
  experienceName: string;
5
5
  }>;
@@ -11,5 +11,10 @@ type AIQuickPromptTriggeredAEP = UIAEP<ACTION.TRIGGERED, ACTION_SUBJECT.AI_QUICK
11
11
  experienceName: string;
12
12
  method: string;
13
13
  }>;
14
- export type AIQuickPromptEventPayload = AIQuickPromptDisplayedAEP | AIQuickPromptDismissedAEP | AIQuickPromptTriggeredAEP;
14
+ type AIQuickPromptApiErrorAEP = OperationalAEP<ACTION.API_ERROR, ACTION_SUBJECT.AI_QUICK_PROMPT, undefined, {
15
+ errorMessage?: string;
16
+ experienceName: string;
17
+ statusCode?: number;
18
+ }>;
19
+ export type AIQuickPromptEventPayload = AIQuickPromptDisplayedAEP | AIQuickPromptDismissedAEP | AIQuickPromptTriggeredAEP | AIQuickPromptApiErrorAEP;
15
20
  export {};
@@ -7,7 +7,6 @@ type ElementAttributes = {
7
7
  inputMethod?: string;
8
8
  isSameParent?: boolean;
9
9
  nodeDepth: number;
10
- nodeType: string;
11
10
  nodeTypes?: string;
12
11
  };
13
12
  type ElementMovedAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
@@ -294,6 +294,7 @@ export declare enum ACTION_SUBJECT {
294
294
  EMBEDS = "embeds",
295
295
  EXPAND = "expand",
296
296
  EXTENSION = "extension",
297
+ EXTENSION_AS_INLINE = "extensionAsInline",
297
298
  FEATURE = "feature",
298
299
  FEEDBACK_DIALOG = "feedbackDialog",
299
300
  FIND_REPLACE_DIALOG = "findReplaceDialog",
@@ -4,7 +4,6 @@ type MoveContentAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.DOCUMENT, ACTION_SUB
4
4
  destinationNodeDepth?: number;
5
5
  hasSelectedMultipleNodes?: boolean;
6
6
  nodeDepth?: number;
7
- nodeType?: string;
8
7
  nodeTypes?: string;
9
8
  }, undefined>;
10
9
  export type MoveContentEventPayload = MoveContentAEP;
@@ -34,6 +34,11 @@ export declare const syncBlockMessages: {
34
34
  description: string;
35
35
  id: string;
36
36
  };
37
+ cannotPasteSyncedBlockUnsupportedDescription: {
38
+ defaultMessage: string;
39
+ description: string;
40
+ id: string;
41
+ };
37
42
  cannotPasteSyncedBlockTitle: {
38
43
  defaultMessage: string;
39
44
  description: string;
@@ -59,6 +59,11 @@ export declare const aiSuggestionsMessages: {
59
59
  description: string;
60
60
  id: string;
61
61
  };
62
+ cardShowSidebarButtonLabel: {
63
+ defaultMessage: string;
64
+ description: string;
65
+ id: string;
66
+ };
62
67
  cardSourcesButtonLabel: {
63
68
  defaultMessage: string;
64
69
  description: string;
@@ -1,5 +1,5 @@
1
1
  import type { ACTION, ACTION_SUBJECT } from './enums';
2
- import type { UIAEP } from './utils';
2
+ import type { OperationalAEP, UIAEP } from './utils';
3
3
  type AIQuickPromptDisplayedAEP = UIAEP<ACTION.DISPLAYED, ACTION_SUBJECT.AI_QUICK_PROMPT, undefined, {
4
4
  experienceName: string;
5
5
  }>;
@@ -11,5 +11,10 @@ type AIQuickPromptTriggeredAEP = UIAEP<ACTION.TRIGGERED, ACTION_SUBJECT.AI_QUICK
11
11
  experienceName: string;
12
12
  method: string;
13
13
  }>;
14
- export type AIQuickPromptEventPayload = AIQuickPromptDisplayedAEP | AIQuickPromptDismissedAEP | AIQuickPromptTriggeredAEP;
14
+ type AIQuickPromptApiErrorAEP = OperationalAEP<ACTION.API_ERROR, ACTION_SUBJECT.AI_QUICK_PROMPT, undefined, {
15
+ errorMessage?: string;
16
+ experienceName: string;
17
+ statusCode?: number;
18
+ }>;
19
+ export type AIQuickPromptEventPayload = AIQuickPromptDisplayedAEP | AIQuickPromptDismissedAEP | AIQuickPromptTriggeredAEP | AIQuickPromptApiErrorAEP;
15
20
  export {};
@@ -7,7 +7,6 @@ type ElementAttributes = {
7
7
  inputMethod?: string;
8
8
  isSameParent?: boolean;
9
9
  nodeDepth: number;
10
- nodeType: string;
11
10
  nodeTypes?: string;
12
11
  };
13
12
  type ElementMovedAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
@@ -294,6 +294,7 @@ export declare enum ACTION_SUBJECT {
294
294
  EMBEDS = "embeds",
295
295
  EXPAND = "expand",
296
296
  EXTENSION = "extension",
297
+ EXTENSION_AS_INLINE = "extensionAsInline",
297
298
  FEATURE = "feature",
298
299
  FEEDBACK_DIALOG = "feedbackDialog",
299
300
  FIND_REPLACE_DIALOG = "findReplaceDialog",
@@ -4,7 +4,6 @@ type MoveContentAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.DOCUMENT, ACTION_SUB
4
4
  destinationNodeDepth?: number;
5
5
  hasSelectedMultipleNodes?: boolean;
6
6
  nodeDepth?: number;
7
- nodeType?: string;
8
7
  nodeTypes?: string;
9
8
  }, undefined>;
10
9
  export type MoveContentEventPayload = MoveContentAEP;
@@ -34,6 +34,11 @@ export declare const syncBlockMessages: {
34
34
  description: string;
35
35
  id: string;
36
36
  };
37
+ cannotPasteSyncedBlockUnsupportedDescription: {
38
+ defaultMessage: string;
39
+ description: string;
40
+ id: string;
41
+ };
37
42
  cannotPasteSyncedBlockTitle: {
38
43
  defaultMessage: string;
39
44
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "114.14.0",
3
+ "version": "114.16.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/"
@@ -79,14 +79,14 @@
79
79
  "@atlaskit/primitives": "^19.0.0",
80
80
  "@atlaskit/profilecard": "^25.1.0",
81
81
  "@atlaskit/prosemirror-history": "^0.2.0",
82
- "@atlaskit/react-ufo": "^5.17.0",
82
+ "@atlaskit/react-ufo": "^5.18.0",
83
83
  "@atlaskit/section-message": "^8.12.0",
84
84
  "@atlaskit/smart-card": "^44.3.0",
85
85
  "@atlaskit/smart-user-picker": "^10.0.0",
86
86
  "@atlaskit/spinner": "^19.1.0",
87
87
  "@atlaskit/task-decision": "^20.0.0",
88
88
  "@atlaskit/textfield": "^8.3.0",
89
- "@atlaskit/tmp-editor-statsig": "^73.0.0",
89
+ "@atlaskit/tmp-editor-statsig": "^74.0.0",
90
90
  "@atlaskit/tokens": "^13.0.0",
91
91
  "@atlaskit/tooltip": "^21.2.0",
92
92
  "@atlaskit/width-detector": "^5.1.0",