@atlaskit/editor-common 87.5.0 → 87.6.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 (56) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/cjs/analytics/types/enums.js +4 -0
  3. package/dist/cjs/analytics/types/upload-media-events.js +5 -0
  4. package/dist/cjs/i18n/en.js +6 -0
  5. package/dist/cjs/i18n/en_GB.js +6 -0
  6. package/dist/cjs/i18n/en_ZZ.js +6 -0
  7. package/dist/cjs/lazy-node-view/replace-node-views.js +13 -4
  8. package/dist/cjs/messages/index.js +7 -0
  9. package/dist/cjs/messages/media-insert.js +44 -0
  10. package/dist/cjs/monitoring/error.js +1 -1
  11. package/dist/cjs/ui/DropList/index.js +1 -1
  12. package/dist/es2019/analytics/types/enums.js +4 -0
  13. package/dist/es2019/analytics/types/upload-media-events.js +1 -0
  14. package/dist/es2019/i18n/en.js +6 -0
  15. package/dist/es2019/i18n/en_GB.js +6 -0
  16. package/dist/es2019/i18n/en_ZZ.js +6 -0
  17. package/dist/es2019/lazy-node-view/replace-node-views.js +13 -4
  18. package/dist/es2019/messages/index.js +1 -0
  19. package/dist/es2019/messages/media-insert.js +38 -0
  20. package/dist/es2019/monitoring/error.js +1 -1
  21. package/dist/es2019/ui/DropList/index.js +1 -1
  22. package/dist/esm/analytics/types/enums.js +4 -0
  23. package/dist/esm/analytics/types/upload-media-events.js +1 -0
  24. package/dist/esm/i18n/en.js +6 -0
  25. package/dist/esm/i18n/en_GB.js +6 -0
  26. package/dist/esm/i18n/en_ZZ.js +6 -0
  27. package/dist/esm/lazy-node-view/replace-node-views.js +13 -4
  28. package/dist/esm/messages/index.js +1 -0
  29. package/dist/esm/messages/media-insert.js +38 -0
  30. package/dist/esm/monitoring/error.js +1 -1
  31. package/dist/esm/ui/DropList/index.js +1 -1
  32. package/dist/types/analytics/types/enums.d.ts +5 -1
  33. package/dist/types/analytics/types/events.d.ts +2 -1
  34. package/dist/types/analytics/types/format-events.d.ts +2 -2
  35. package/dist/types/analytics/types/general-events.d.ts +2 -1
  36. package/dist/types/analytics/types/index.d.ts +1 -0
  37. package/dist/types/analytics/types/insert-events.d.ts +1 -1
  38. package/dist/types/analytics/types/upload-media-events.d.ts +10 -0
  39. package/dist/types/i18n/en.d.ts +6 -0
  40. package/dist/types/i18n/en_GB.d.ts +6 -0
  41. package/dist/types/i18n/en_ZZ.d.ts +6 -0
  42. package/dist/types/messages/index.d.ts +1 -0
  43. package/dist/types/messages/media-insert.d.ts +37 -0
  44. package/dist/types-ts4.5/analytics/types/enums.d.ts +5 -1
  45. package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
  46. package/dist/types-ts4.5/analytics/types/format-events.d.ts +2 -2
  47. package/dist/types-ts4.5/analytics/types/general-events.d.ts +2 -1
  48. package/dist/types-ts4.5/analytics/types/index.d.ts +1 -0
  49. package/dist/types-ts4.5/analytics/types/insert-events.d.ts +1 -1
  50. package/dist/types-ts4.5/analytics/types/upload-media-events.d.ts +10 -0
  51. package/dist/types-ts4.5/i18n/en.d.ts +6 -0
  52. package/dist/types-ts4.5/i18n/en_GB.d.ts +6 -0
  53. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +6 -0
  54. package/dist/types-ts4.5/messages/index.d.ts +1 -0
  55. package/dist/types-ts4.5/messages/media-insert.d.ts +37 -0
  56. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 87.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#128347](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128347)
8
+ [`e33566cebd5d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e33566cebd5d1) -
9
+ [ED-24175] bump @atlaskit/adf-schema to 40.8.1 and @atlassian/adf-schema-json to 1.22.0 to
10
+ promotecodeblocks & media in quotes, and nested expands in expands to full schema, and allow
11
+ quotes in panels and decisions in lists in stage0 schema, and a validator spec change
12
+ - [#128527](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128527)
13
+ [`e9e003a733b63`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9e003a733b63) -
14
+ Add media upload from URL and associated i18n, analytics and test packages
15
+ - [#128333](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128333)
16
+ [`4ad86751ab1d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4ad86751ab1d7) -
17
+ [ED-24505] Implement onClick handler for Turn into dropdown options and update relevant insertion
18
+ analytics with inputMethod: floatingToolbar when an element is inserted via the dropdown
19
+
20
+ ### Patch Changes
21
+
22
+ - [#128105](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128105)
23
+ [`b55614e1ea801`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b55614e1ea801) -
24
+ added a timeout to the requestIdleCallback inside the LazyNode replacement debounce to ensure it
25
+ is called eventually, limiting potential issues with infinite re-rendering
26
+ - Updated dependencies
27
+
28
+ ## 87.5.1
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies
33
+
3
34
  ## 87.5.0
4
35
 
5
36
  ### Minor Changes
@@ -145,6 +145,9 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
145
145
  ACTION["UPDATE_PARAMETERS"] = "updateParameters";
146
146
  ACTION["GET_CHILDERN"] = "getChildern";
147
147
  ACTION["MOVED"] = "moved";
148
+ ACTION["UPLOAD_COMMENCED"] = "uploadCommenced";
149
+ ACTION["UPLOAD_SUCCEEDED"] = "uploadSucceeded";
150
+ ACTION["UPLOAD_FAILED"] = "uploadFailed";
148
151
  ACTION["TOGGLE_CODE_BLOCK_WRAP"] = "toggleCodeBlockWrap";
149
152
  return ACTION;
150
153
  }({});
@@ -377,6 +380,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
377
380
  ACTION_SUBJECT_ID["ON_UNSUPPORTED_INLINE"] = "onUnsupportedInline";
378
381
  ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
379
382
  ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
383
+ ACTION_SUBJECT_ID["UPLOAD_MEDIA_FROM_URL"] = "uploadMediaFromUrl";
380
384
  return ACTION_SUBJECT_ID;
381
385
  }({});
382
386
  var FLOATING_CONTROLS_TITLE = exports.FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -44,6 +44,8 @@ var _default = exports.default = {
44
44
  'fabric.editor.blockControlDragHandleUsageInfo': 'Drag to move',
45
45
  'fabric.editor.blockControlMoveDown': 'Move down',
46
46
  'fabric.editor.blockControlMoveUp': 'Move up',
47
+ 'fabric.editor.blockControlMovedDown': 'Content has been moved down',
48
+ 'fabric.editor.blockControlMovedUp': 'Content has been moved up',
47
49
  'fabric.editor.blockDescription': 'Display more information about a link, including a summary and actions',
48
50
  'fabric.editor.blockTitle': 'Card',
49
51
  'fabric.editor.blockquote': 'a quote',
@@ -272,6 +274,8 @@ var _default = exports.default = {
272
274
  'fabric.editor.inputQueryAssistiveTxt': 'When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.',
273
275
  'fabric.editor.insertColumn': 'Insert column right',
274
276
  'fabric.editor.insertColumnDrag': 'Insert column',
277
+ 'fabric.editor.insertMediaFromUrl': 'Image from link',
278
+ 'fabric.editor.insertMediaFromUrlDescription': 'Add an image or video from a link',
275
279
  'fabric.editor.insertMenu': 'Insert elements',
276
280
  'fabric.editor.insertRow': 'Insert row below',
277
281
  'fabric.editor.insertRowDrag': 'Insert row',
@@ -343,6 +347,7 @@ var _default = exports.default = {
343
347
  'fabric.editor.other': 'Others...',
344
348
  'fabric.editor.outdent': 'Outdent',
345
349
  'fabric.editor.pageActionsLabel': 'Page actions',
350
+ 'fabric.editor.panel': 'Panel',
346
351
  'fabric.editor.panel.backgroundColor': 'Background color',
347
352
  'fabric.editor.panel.emoji': 'Add emoji',
348
353
  'fabric.editor.panel.panelsGroup': 'Panel Types',
@@ -452,6 +457,7 @@ var _default = exports.default = {
452
457
  'fabric.editor.tooltip.defaultBlockNode': 'a block node',
453
458
  'fabric.editor.tooltip.nestedExpand': 'a nested expand',
454
459
  'fabric.editor.tooltip.taskList': 'an action item',
460
+ 'fabric.editor.turnInto': 'Turn into',
455
461
  'fabric.editor.twoColumns': 'Two columns layout',
456
462
  'fabric.editor.typeAhead.popupLabel': 'Typeahead results',
457
463
  'fabric.editor.typeAhead.quickInsertInputLabel': 'Begin typing to search or filter shortcut options',
@@ -44,6 +44,8 @@ var _default = exports.default = {
44
44
  'fabric.editor.blockControlDragHandleUsageInfo': 'Drag to move',
45
45
  'fabric.editor.blockControlMoveDown': 'Move down',
46
46
  'fabric.editor.blockControlMoveUp': 'Move up',
47
+ 'fabric.editor.blockControlMovedDown': 'Content has been moved down',
48
+ 'fabric.editor.blockControlMovedUp': 'Content has been moved up',
47
49
  'fabric.editor.blockDescription': 'Display more information about a link, including a summary and actions',
48
50
  'fabric.editor.blockTitle': 'Card',
49
51
  'fabric.editor.blockquote': 'a quote',
@@ -272,6 +274,8 @@ var _default = exports.default = {
272
274
  'fabric.editor.inputQueryAssistiveTxt': 'When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.',
273
275
  'fabric.editor.insertColumn': 'Insert column right',
274
276
  'fabric.editor.insertColumnDrag': 'Insert column',
277
+ 'fabric.editor.insertMediaFromUrl': 'Image from link',
278
+ 'fabric.editor.insertMediaFromUrlDescription': 'Add an image or video from a link',
275
279
  'fabric.editor.insertMenu': 'Insert elements',
276
280
  'fabric.editor.insertRow': 'Insert row below',
277
281
  'fabric.editor.insertRowDrag': 'Insert row',
@@ -343,6 +347,7 @@ var _default = exports.default = {
343
347
  'fabric.editor.other': 'Others...',
344
348
  'fabric.editor.outdent': 'Outdent',
345
349
  'fabric.editor.pageActionsLabel': 'Page actions',
350
+ 'fabric.editor.panel': 'Panel',
346
351
  'fabric.editor.panel.backgroundColor': 'Background colour',
347
352
  'fabric.editor.panel.emoji': 'Add emoji',
348
353
  'fabric.editor.panel.panelsGroup': 'Panel Types',
@@ -452,6 +457,7 @@ var _default = exports.default = {
452
457
  'fabric.editor.tooltip.defaultBlockNode': 'a block node',
453
458
  'fabric.editor.tooltip.nestedExpand': 'a nested expand',
454
459
  'fabric.editor.tooltip.taskList': 'an action item',
460
+ 'fabric.editor.turnInto': 'Turn into',
455
461
  'fabric.editor.twoColumns': 'Two columns layout',
456
462
  'fabric.editor.typeAhead.popupLabel': 'Typeahead results',
457
463
  'fabric.editor.typeAhead.quickInsertInputLabel': 'Begin typing to search or filter shortcut options',
@@ -44,6 +44,8 @@ var _default = exports.default = {
44
44
  'fabric.editor.blockControlDragHandleUsageInfo': '⁣⁢Drag to move‌⁡⁡⁠‌⁡؜‌⁡‍؜⁣⁤',
45
45
  'fabric.editor.blockControlMoveDown': '⁣⁢Move down⁠⁡‌‍؜‌‍‌‍⁡⁠⁠⁣⁤',
46
46
  'fabric.editor.blockControlMoveUp': '⁣⁢Move up⁠‌‌⁡‍⁡‌‍‍⁣⁤',
47
+ 'fabric.editor.blockControlMovedDown': '⁣⁢Content has been moved down⁡‍⁡‍‍⁠⁡؜⁠⁡⁠⁣⁤',
48
+ 'fabric.editor.blockControlMovedUp': '⁣⁢Content has been moved up‌⁡‍؜‍‍‌⁡‌‍‌⁣⁤',
47
49
  'fabric.editor.blockDescription': '⁣⁢Display more information about a link, including a summary and actions‍⁠⁡⁣⁤',
48
50
  'fabric.editor.blockTitle': '⁣⁢Card‍‌‌؜‌؜⁡‍‍‌‌؜‍؜⁠⁡⁣⁤',
49
51
  'fabric.editor.blockquote': '⁣⁢a quote‍⁠؜‍‌‌⁠⁠‍⁠‍⁣⁤',
@@ -272,6 +274,8 @@ var _default = exports.default = {
272
274
  'fabric.editor.inputQueryAssistiveTxt': '⁣⁢When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.؜‍‍؜⁡⁡‌؜⁣⁤',
273
275
  'fabric.editor.insertColumn': '⁣⁢Insert column right⁡‍‌‌‍⁠؜‌‌‍⁡⁡؜⁠‍⁣⁤',
274
276
  'fabric.editor.insertColumnDrag': '⁣⁢Insert column؜‌‌⁠⁡⁡‍⁡؜‌⁡‌⁣⁤',
277
+ 'fabric.editor.insertMediaFromUrl': '⁣⁢Image from link⁡‌‌‍‍⁠⁠⁠؜‍‌⁣⁤',
278
+ 'fabric.editor.insertMediaFromUrlDescription': '⁣⁢Add an image or video from a link‍؜‍⁠⁠⁠‌⁣⁤',
275
279
  'fabric.editor.insertMenu': '⁣⁢Insert elements؜؜؜⁡‍‍⁠؜⁡⁣⁤',
276
280
  'fabric.editor.insertRow': '⁣⁢Insert row below‌؜⁡‌‌‍⁠⁣⁤',
277
281
  'fabric.editor.insertRowDrag': '⁣⁢Insert row⁡؜؜‌⁡؜‌⁡‌⁣⁤',
@@ -343,6 +347,7 @@ var _default = exports.default = {
343
347
  'fabric.editor.other': '⁣⁢Others...⁡‌⁠؜⁠‌‍‌‍؜⁠⁣⁤',
344
348
  'fabric.editor.outdent': '⁣⁢Outdent‌‍‌؜؜‍⁡‍‍‌⁣⁤',
345
349
  'fabric.editor.pageActionsLabel': '⁣⁢Page actions‌؜؜؜‍⁡‍؜‌‍⁣⁤',
350
+ 'fabric.editor.panel': '⁣⁢Panel‌‍؜‌⁡‌‍⁠⁡⁣⁤',
346
351
  'fabric.editor.panel.backgroundColor': '⁣⁢Background color‍‌⁠⁠‌‌‍‍⁠⁠⁣⁤',
347
352
  'fabric.editor.panel.emoji': '⁣⁢Add emoji⁠؜‍‍‌⁠؜⁠؜؜‍⁣⁤',
348
353
  'fabric.editor.panel.panelsGroup': '⁣⁢Panel Types؜⁡‍؜؜‍‍‌‍⁣⁤',
@@ -451,6 +456,7 @@ var _default = exports.default = {
451
456
  'fabric.editor.tooltip.defaultBlockNode': '⁣⁢a block node⁠؜‌‌⁡⁡⁡‌⁡‍‌⁣⁤',
452
457
  'fabric.editor.tooltip.nestedExpand': '⁣⁢a nested expand‌‌؜؜؜⁡⁡⁠؜؜⁣⁤',
453
458
  'fabric.editor.tooltip.taskList': '⁣⁢an action item‍؜؜⁡⁠‌⁠‌؜‍⁣⁤',
459
+ 'fabric.editor.turnInto': '⁣⁢Turn into؜؜‌؜⁠‍‌‍؜⁡⁣⁤',
454
460
  'fabric.editor.twoColumns': '⁣⁢Two columns layout‍‍‌؜⁡؜⁠⁡‍⁡‌⁣⁤',
455
461
  'fabric.editor.typeAhead.popupLabel': '⁣⁢Typeahead results⁠⁠⁠⁡⁠‍‍؜⁠‌⁣⁤',
456
462
  'fabric.editor.typeAhead.quickInsertInputLabel': '⁣⁢Begin typing to search or filter shortcut options⁡‌⁠⁡⁠‌⁡‌‍؜⁡‌‍⁡⁣⁤',
@@ -58,16 +58,25 @@ var debouncedReplaceNodeviews = exports.debouncedReplaceNodeviews = (0, _debounc
58
58
  // From here, we will access the loaded node views by lexical scope
59
59
  cache.set(view, {});
60
60
 
61
- // eslint-disable-next-line compat/compat
62
- var idle = window.requestIdleCallback;
63
-
64
61
  /*
65
62
  * For reasons that goes beyond my knowledge
66
63
  * some Firefox versions aren't calling the requestIdleCallback.
67
64
  *
68
65
  * So, we need this check to make sure we use the requestAnimationFrame instead
66
+ *
67
+ * setting timeout to 2s to ensure this function is called, but not before prosemirror render
68
+ * and other important tasks are done - adjust this timeout based on user feedback
69
69
  */
70
- var later = isFirefox || typeof idle !== 'function' ? window.requestAnimationFrame : idle;
70
+ var later = function later(callback) {
71
+ // eslint-disable-next-line compat/compat
72
+ if (isFirefox || !window.requestIdleCallback) {
73
+ return window.requestAnimationFrame(callback);
74
+ }
75
+ // eslint-disable-next-line compat/compat
76
+ window.requestIdleCallback(callback, {
77
+ timeout: 2000
78
+ });
79
+ };
71
80
  later(function () {
72
81
  var currentNodeViews = view.props.nodeViews;
73
82
  var nextNodeViews = _objectSpread(_objectSpread({}, currentNodeViews), nodeViewsToReplace);
@@ -118,6 +118,12 @@ Object.defineProperty(exports, "mediaAndEmbedToolbarMessages", {
118
118
  return _mediaAndEmbedToolbar.toolbarMessages;
119
119
  }
120
120
  });
121
+ Object.defineProperty(exports, "mediaInsertMessages", {
122
+ enumerable: true,
123
+ get: function get() {
124
+ return _mediaInsert.mediaInsertMessages;
125
+ }
126
+ });
121
127
  Object.defineProperty(exports, "mentionMessages", {
122
128
  enumerable: true,
123
129
  get: function get() {
@@ -222,6 +228,7 @@ var _mentions = require("./mentions");
222
228
  var _helpDialog = require("./help-dialog");
223
229
  var _highlight = require("./highlight");
224
230
  var _blockControls = require("./block-controls");
231
+ var _mediaInsert = require("./media-insert");
225
232
  var _default = exports.default = (0, _reactIntlNext.defineMessages)({
226
233
  layoutFixedWidth: {
227
234
  id: 'fabric.editor.layoutFixedWidth',
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mediaInsertMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ var mediaInsertMessages = exports.mediaInsertMessages = (0, _reactIntlNext.defineMessages)({
9
+ loadPreview: {
10
+ id: 'fabric.editor.media.insert.loadPreview',
11
+ defaultMessage: 'Load preview',
12
+ description: 'Text on a button that loads a preview of a media file that has been linked to from a URL'
13
+ },
14
+ insert: {
15
+ id: 'fabric.editor.media.insert.insert',
16
+ defaultMessage: 'Insert',
17
+ description: 'Text on the modal action button that inserts the linked media file into the editor document'
18
+ },
19
+ pasteLinkToUpload: {
20
+ id: 'fabric.editor.media.insert.pasteLinkToUpload',
21
+ defaultMessage: 'Paste link to upload',
22
+ description: 'Placeholder text for the input field where a user can paste (as in copy-paste) a URL to upload a media file'
23
+ },
24
+ cancel: {
25
+ id: 'fabric.editor.media.insert.cancel',
26
+ defaultMessage: 'Cancel',
27
+ description: 'Text on the modal action button that cancels the media file insertion and closes the modal'
28
+ },
29
+ errorMessage: {
30
+ id: 'fabric.editor.media.insert.errorMessage',
31
+ defaultMessage: 'Unfortunately, we can’t add this image link. Download the image, then drag and drop onto the page.',
32
+ description: 'Error message displayed when a user tries to insert an image from a URL that cannot be loaded. This may be because the URL is invalid, there is a network error or any other reason the preview upload does not succeed. When this occurs the suggestion is to attempt downloading the linked file manually and using a local upload instead.'
33
+ },
34
+ warning: {
35
+ id: 'fabric.editor.media.insert.warning',
36
+ defaultMessage: 'This image might not be visible to others due to source restrictions. Consider uploading the file instead.',
37
+ description: 'Warning message displayed when a user tries to insert an image from a URL that may not be visible to others due to source restrictions such as not having permissions/authentication to load the image. The suggestion is to upload the file instead.'
38
+ },
39
+ mediaAlt: {
40
+ id: 'fabric.editor.media.insert.mediaAlt',
41
+ defaultMessage: 'Preview for uploaded image or video file',
42
+ description: 'Alt text describing a preview of an image uploaded.'
43
+ }
44
+ });
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "87.5.0";
20
+ var packageVersion = "87.6.0";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -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 = "87.5.0";
26
+ var packageVersion = "87.6.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  var DropList = /*#__PURE__*/function (_Component) {
@@ -139,6 +139,9 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
139
139
  ACTION["UPDATE_PARAMETERS"] = "updateParameters";
140
140
  ACTION["GET_CHILDERN"] = "getChildern";
141
141
  ACTION["MOVED"] = "moved";
142
+ ACTION["UPLOAD_COMMENCED"] = "uploadCommenced";
143
+ ACTION["UPLOAD_SUCCEEDED"] = "uploadSucceeded";
144
+ ACTION["UPLOAD_FAILED"] = "uploadFailed";
142
145
  ACTION["TOGGLE_CODE_BLOCK_WRAP"] = "toggleCodeBlockWrap";
143
146
  return ACTION;
144
147
  }({});
@@ -371,6 +374,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
371
374
  ACTION_SUBJECT_ID["ON_UNSUPPORTED_INLINE"] = "onUnsupportedInline";
372
375
  ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
373
376
  ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
377
+ ACTION_SUBJECT_ID["UPLOAD_MEDIA_FROM_URL"] = "uploadMediaFromUrl";
374
378
  return ACTION_SUBJECT_ID;
375
379
  }({});
376
380
  export let FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
@@ -0,0 +1 @@
1
+ export {};
@@ -38,6 +38,8 @@ export default {
38
38
  'fabric.editor.blockControlDragHandleUsageInfo': 'Drag to move',
39
39
  'fabric.editor.blockControlMoveDown': 'Move down',
40
40
  'fabric.editor.blockControlMoveUp': 'Move up',
41
+ 'fabric.editor.blockControlMovedDown': 'Content has been moved down',
42
+ 'fabric.editor.blockControlMovedUp': 'Content has been moved up',
41
43
  'fabric.editor.blockDescription': 'Display more information about a link, including a summary and actions',
42
44
  'fabric.editor.blockTitle': 'Card',
43
45
  'fabric.editor.blockquote': 'a quote',
@@ -266,6 +268,8 @@ export default {
266
268
  'fabric.editor.inputQueryAssistiveTxt': 'When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.',
267
269
  'fabric.editor.insertColumn': 'Insert column right',
268
270
  'fabric.editor.insertColumnDrag': 'Insert column',
271
+ 'fabric.editor.insertMediaFromUrl': 'Image from link',
272
+ 'fabric.editor.insertMediaFromUrlDescription': 'Add an image or video from a link',
269
273
  'fabric.editor.insertMenu': 'Insert elements',
270
274
  'fabric.editor.insertRow': 'Insert row below',
271
275
  'fabric.editor.insertRowDrag': 'Insert row',
@@ -337,6 +341,7 @@ export default {
337
341
  'fabric.editor.other': 'Others...',
338
342
  'fabric.editor.outdent': 'Outdent',
339
343
  'fabric.editor.pageActionsLabel': 'Page actions',
344
+ 'fabric.editor.panel': 'Panel',
340
345
  'fabric.editor.panel.backgroundColor': 'Background color',
341
346
  'fabric.editor.panel.emoji': 'Add emoji',
342
347
  'fabric.editor.panel.panelsGroup': 'Panel Types',
@@ -446,6 +451,7 @@ export default {
446
451
  'fabric.editor.tooltip.defaultBlockNode': 'a block node',
447
452
  'fabric.editor.tooltip.nestedExpand': 'a nested expand',
448
453
  'fabric.editor.tooltip.taskList': 'an action item',
454
+ 'fabric.editor.turnInto': 'Turn into',
449
455
  'fabric.editor.twoColumns': 'Two columns layout',
450
456
  'fabric.editor.typeAhead.popupLabel': 'Typeahead results',
451
457
  'fabric.editor.typeAhead.quickInsertInputLabel': 'Begin typing to search or filter shortcut options',
@@ -38,6 +38,8 @@ export default {
38
38
  'fabric.editor.blockControlDragHandleUsageInfo': 'Drag to move',
39
39
  'fabric.editor.blockControlMoveDown': 'Move down',
40
40
  'fabric.editor.blockControlMoveUp': 'Move up',
41
+ 'fabric.editor.blockControlMovedDown': 'Content has been moved down',
42
+ 'fabric.editor.blockControlMovedUp': 'Content has been moved up',
41
43
  'fabric.editor.blockDescription': 'Display more information about a link, including a summary and actions',
42
44
  'fabric.editor.blockTitle': 'Card',
43
45
  'fabric.editor.blockquote': 'a quote',
@@ -266,6 +268,8 @@ export default {
266
268
  'fabric.editor.inputQueryAssistiveTxt': 'When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.',
267
269
  'fabric.editor.insertColumn': 'Insert column right',
268
270
  'fabric.editor.insertColumnDrag': 'Insert column',
271
+ 'fabric.editor.insertMediaFromUrl': 'Image from link',
272
+ 'fabric.editor.insertMediaFromUrlDescription': 'Add an image or video from a link',
269
273
  'fabric.editor.insertMenu': 'Insert elements',
270
274
  'fabric.editor.insertRow': 'Insert row below',
271
275
  'fabric.editor.insertRowDrag': 'Insert row',
@@ -337,6 +341,7 @@ export default {
337
341
  'fabric.editor.other': 'Others...',
338
342
  'fabric.editor.outdent': 'Outdent',
339
343
  'fabric.editor.pageActionsLabel': 'Page actions',
344
+ 'fabric.editor.panel': 'Panel',
340
345
  'fabric.editor.panel.backgroundColor': 'Background colour',
341
346
  'fabric.editor.panel.emoji': 'Add emoji',
342
347
  'fabric.editor.panel.panelsGroup': 'Panel Types',
@@ -446,6 +451,7 @@ export default {
446
451
  'fabric.editor.tooltip.defaultBlockNode': 'a block node',
447
452
  'fabric.editor.tooltip.nestedExpand': 'a nested expand',
448
453
  'fabric.editor.tooltip.taskList': 'an action item',
454
+ 'fabric.editor.turnInto': 'Turn into',
449
455
  'fabric.editor.twoColumns': 'Two columns layout',
450
456
  'fabric.editor.typeAhead.popupLabel': 'Typeahead results',
451
457
  'fabric.editor.typeAhead.quickInsertInputLabel': 'Begin typing to search or filter shortcut options',
@@ -38,6 +38,8 @@ export default {
38
38
  'fabric.editor.blockControlDragHandleUsageInfo': '⁣⁢Drag to move‌⁡⁡⁠‌⁡؜‌⁡‍؜⁣⁤',
39
39
  'fabric.editor.blockControlMoveDown': '⁣⁢Move down⁠⁡‌‍؜‌‍‌‍⁡⁠⁠⁣⁤',
40
40
  'fabric.editor.blockControlMoveUp': '⁣⁢Move up⁠‌‌⁡‍⁡‌‍‍⁣⁤',
41
+ 'fabric.editor.blockControlMovedDown': '⁣⁢Content has been moved down⁡‍⁡‍‍⁠⁡؜⁠⁡⁠⁣⁤',
42
+ 'fabric.editor.blockControlMovedUp': '⁣⁢Content has been moved up‌⁡‍؜‍‍‌⁡‌‍‌⁣⁤',
41
43
  'fabric.editor.blockDescription': '⁣⁢Display more information about a link, including a summary and actions‍⁠⁡⁣⁤',
42
44
  'fabric.editor.blockTitle': '⁣⁢Card‍‌‌؜‌؜⁡‍‍‌‌؜‍؜⁠⁡⁣⁤',
43
45
  'fabric.editor.blockquote': '⁣⁢a quote‍⁠؜‍‌‌⁠⁠‍⁠‍⁣⁤',
@@ -266,6 +268,8 @@ export default {
266
268
  'fabric.editor.inputQueryAssistiveTxt': '⁣⁢When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.؜‍‍؜⁡⁡‌؜⁣⁤',
267
269
  'fabric.editor.insertColumn': '⁣⁢Insert column right⁡‍‌‌‍⁠؜‌‌‍⁡⁡؜⁠‍⁣⁤',
268
270
  'fabric.editor.insertColumnDrag': '⁣⁢Insert column؜‌‌⁠⁡⁡‍⁡؜‌⁡‌⁣⁤',
271
+ 'fabric.editor.insertMediaFromUrl': '⁣⁢Image from link⁡‌‌‍‍⁠⁠⁠؜‍‌⁣⁤',
272
+ 'fabric.editor.insertMediaFromUrlDescription': '⁣⁢Add an image or video from a link‍؜‍⁠⁠⁠‌⁣⁤',
269
273
  'fabric.editor.insertMenu': '⁣⁢Insert elements؜؜؜⁡‍‍⁠؜⁡⁣⁤',
270
274
  'fabric.editor.insertRow': '⁣⁢Insert row below‌؜⁡‌‌‍⁠⁣⁤',
271
275
  'fabric.editor.insertRowDrag': '⁣⁢Insert row⁡؜؜‌⁡؜‌⁡‌⁣⁤',
@@ -337,6 +341,7 @@ export default {
337
341
  'fabric.editor.other': '⁣⁢Others...⁡‌⁠؜⁠‌‍‌‍؜⁠⁣⁤',
338
342
  'fabric.editor.outdent': '⁣⁢Outdent‌‍‌؜؜‍⁡‍‍‌⁣⁤',
339
343
  'fabric.editor.pageActionsLabel': '⁣⁢Page actions‌؜؜؜‍⁡‍؜‌‍⁣⁤',
344
+ 'fabric.editor.panel': '⁣⁢Panel‌‍؜‌⁡‌‍⁠⁡⁣⁤',
340
345
  'fabric.editor.panel.backgroundColor': '⁣⁢Background color‍‌⁠⁠‌‌‍‍⁠⁠⁣⁤',
341
346
  'fabric.editor.panel.emoji': '⁣⁢Add emoji⁠؜‍‍‌⁠؜⁠؜؜‍⁣⁤',
342
347
  'fabric.editor.panel.panelsGroup': '⁣⁢Panel Types؜⁡‍؜؜‍‍‌‍⁣⁤',
@@ -445,6 +450,7 @@ export default {
445
450
  'fabric.editor.tooltip.defaultBlockNode': '⁣⁢a block node⁠؜‌‌⁡⁡⁡‌⁡‍‌⁣⁤',
446
451
  'fabric.editor.tooltip.nestedExpand': '⁣⁢a nested expand‌‌؜؜؜⁡⁡⁠؜؜⁣⁤',
447
452
  'fabric.editor.tooltip.taskList': '⁣⁢an action item‍؜؜⁡⁠‌⁠‌؜‍⁣⁤',
453
+ 'fabric.editor.turnInto': '⁣⁢Turn into؜؜‌؜⁠‍‌‍؜⁡⁣⁤',
448
454
  'fabric.editor.twoColumns': '⁣⁢Two columns layout‍‍‌؜⁡؜⁠⁡‍⁡‌⁣⁤',
449
455
  'fabric.editor.typeAhead.popupLabel': '⁣⁢Typeahead results⁠⁠⁠⁡⁠‍‍؜⁠‌⁣⁤',
450
456
  'fabric.editor.typeAhead.quickInsertInputLabel': '⁣⁢Begin typing to search or filter shortcut options⁡‌⁠⁡⁠‌⁡‌‍؜⁡‌‍⁡⁣⁤',
@@ -50,16 +50,25 @@ export const debouncedReplaceNodeviews = debounce((cache, view) => {
50
50
  // From here, we will access the loaded node views by lexical scope
51
51
  cache.set(view, {});
52
52
 
53
- // eslint-disable-next-line compat/compat
54
- const idle = window.requestIdleCallback;
55
-
56
53
  /*
57
54
  * For reasons that goes beyond my knowledge
58
55
  * some Firefox versions aren't calling the requestIdleCallback.
59
56
  *
60
57
  * So, we need this check to make sure we use the requestAnimationFrame instead
58
+ *
59
+ * setting timeout to 2s to ensure this function is called, but not before prosemirror render
60
+ * and other important tasks are done - adjust this timeout based on user feedback
61
61
  */
62
- const later = isFirefox || typeof idle !== 'function' ? window.requestAnimationFrame : idle;
62
+ const later = callback => {
63
+ // eslint-disable-next-line compat/compat
64
+ if (isFirefox || !window.requestIdleCallback) {
65
+ return window.requestAnimationFrame(callback);
66
+ }
67
+ // eslint-disable-next-line compat/compat
68
+ window.requestIdleCallback(callback, {
69
+ timeout: 2000
70
+ });
71
+ };
63
72
  later(() => {
64
73
  const currentNodeViews = view.props.nodeViews;
65
74
  const nextNodeViews = {
@@ -30,6 +30,7 @@ export { mentionMessages } from './mentions';
30
30
  export { helpDialogMessages } from './help-dialog';
31
31
  export { highlightMessages } from './highlight';
32
32
  export { messages as blockControlsMessages } from './block-controls';
33
+ export { mediaInsertMessages } from './media-insert';
33
34
  export default defineMessages({
34
35
  layoutFixedWidth: {
35
36
  id: 'fabric.editor.layoutFixedWidth',
@@ -0,0 +1,38 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const mediaInsertMessages = defineMessages({
3
+ loadPreview: {
4
+ id: 'fabric.editor.media.insert.loadPreview',
5
+ defaultMessage: 'Load preview',
6
+ description: 'Text on a button that loads a preview of a media file that has been linked to from a URL'
7
+ },
8
+ insert: {
9
+ id: 'fabric.editor.media.insert.insert',
10
+ defaultMessage: 'Insert',
11
+ description: 'Text on the modal action button that inserts the linked media file into the editor document'
12
+ },
13
+ pasteLinkToUpload: {
14
+ id: 'fabric.editor.media.insert.pasteLinkToUpload',
15
+ defaultMessage: 'Paste link to upload',
16
+ description: 'Placeholder text for the input field where a user can paste (as in copy-paste) a URL to upload a media file'
17
+ },
18
+ cancel: {
19
+ id: 'fabric.editor.media.insert.cancel',
20
+ defaultMessage: 'Cancel',
21
+ description: 'Text on the modal action button that cancels the media file insertion and closes the modal'
22
+ },
23
+ errorMessage: {
24
+ id: 'fabric.editor.media.insert.errorMessage',
25
+ defaultMessage: 'Unfortunately, we can’t add this image link. Download the image, then drag and drop onto the page.',
26
+ description: 'Error message displayed when a user tries to insert an image from a URL that cannot be loaded. This may be because the URL is invalid, there is a network error or any other reason the preview upload does not succeed. When this occurs the suggestion is to attempt downloading the linked file manually and using a local upload instead.'
27
+ },
28
+ warning: {
29
+ id: 'fabric.editor.media.insert.warning',
30
+ defaultMessage: 'This image might not be visible to others due to source restrictions. Consider uploading the file instead.',
31
+ description: 'Warning message displayed when a user tries to insert an image from a URL that may not be visible to others due to source restrictions such as not having permissions/authentication to load the image. The suggestion is to upload the file instead.'
32
+ },
33
+ mediaAlt: {
34
+ id: 'fabric.editor.media.insert.mediaAlt',
35
+ defaultMessage: 'Preview for uploaded image or video file',
36
+ description: 'Alt text describing a preview of an image uploaded.'
37
+ }
38
+ });
@@ -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 = "87.5.0";
4
+ const packageVersion = "87.6.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -12,7 +12,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
12
12
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
13
13
  import Layer from '../Layer';
14
14
  const packageName = "@atlaskit/editor-common";
15
- const packageVersion = "87.5.0";
15
+ const packageVersion = "87.6.0";
16
16
  const halfFocusRing = 1;
17
17
  const dropOffset = '0, 8';
18
18
  class DropList extends Component {
@@ -139,6 +139,9 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
139
139
  ACTION["UPDATE_PARAMETERS"] = "updateParameters";
140
140
  ACTION["GET_CHILDERN"] = "getChildern";
141
141
  ACTION["MOVED"] = "moved";
142
+ ACTION["UPLOAD_COMMENCED"] = "uploadCommenced";
143
+ ACTION["UPLOAD_SUCCEEDED"] = "uploadSucceeded";
144
+ ACTION["UPLOAD_FAILED"] = "uploadFailed";
142
145
  ACTION["TOGGLE_CODE_BLOCK_WRAP"] = "toggleCodeBlockWrap";
143
146
  return ACTION;
144
147
  }({});
@@ -371,6 +374,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
371
374
  ACTION_SUBJECT_ID["ON_UNSUPPORTED_INLINE"] = "onUnsupportedInline";
372
375
  ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
373
376
  ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
377
+ ACTION_SUBJECT_ID["UPLOAD_MEDIA_FROM_URL"] = "uploadMediaFromUrl";
374
378
  return ACTION_SUBJECT_ID;
375
379
  }({});
376
380
  export var FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
@@ -0,0 +1 @@
1
+ export {};
@@ -38,6 +38,8 @@ export default {
38
38
  'fabric.editor.blockControlDragHandleUsageInfo': 'Drag to move',
39
39
  'fabric.editor.blockControlMoveDown': 'Move down',
40
40
  'fabric.editor.blockControlMoveUp': 'Move up',
41
+ 'fabric.editor.blockControlMovedDown': 'Content has been moved down',
42
+ 'fabric.editor.blockControlMovedUp': 'Content has been moved up',
41
43
  'fabric.editor.blockDescription': 'Display more information about a link, including a summary and actions',
42
44
  'fabric.editor.blockTitle': 'Card',
43
45
  'fabric.editor.blockquote': 'a quote',
@@ -266,6 +268,8 @@ export default {
266
268
  'fabric.editor.inputQueryAssistiveTxt': 'When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.',
267
269
  'fabric.editor.insertColumn': 'Insert column right',
268
270
  'fabric.editor.insertColumnDrag': 'Insert column',
271
+ 'fabric.editor.insertMediaFromUrl': 'Image from link',
272
+ 'fabric.editor.insertMediaFromUrlDescription': 'Add an image or video from a link',
269
273
  'fabric.editor.insertMenu': 'Insert elements',
270
274
  'fabric.editor.insertRow': 'Insert row below',
271
275
  'fabric.editor.insertRowDrag': 'Insert row',
@@ -337,6 +341,7 @@ export default {
337
341
  'fabric.editor.other': 'Others...',
338
342
  'fabric.editor.outdent': 'Outdent',
339
343
  'fabric.editor.pageActionsLabel': 'Page actions',
344
+ 'fabric.editor.panel': 'Panel',
340
345
  'fabric.editor.panel.backgroundColor': 'Background color',
341
346
  'fabric.editor.panel.emoji': 'Add emoji',
342
347
  'fabric.editor.panel.panelsGroup': 'Panel Types',
@@ -446,6 +451,7 @@ export default {
446
451
  'fabric.editor.tooltip.defaultBlockNode': 'a block node',
447
452
  'fabric.editor.tooltip.nestedExpand': 'a nested expand',
448
453
  'fabric.editor.tooltip.taskList': 'an action item',
454
+ 'fabric.editor.turnInto': 'Turn into',
449
455
  'fabric.editor.twoColumns': 'Two columns layout',
450
456
  'fabric.editor.typeAhead.popupLabel': 'Typeahead results',
451
457
  'fabric.editor.typeAhead.quickInsertInputLabel': 'Begin typing to search or filter shortcut options',
@@ -38,6 +38,8 @@ export default {
38
38
  'fabric.editor.blockControlDragHandleUsageInfo': 'Drag to move',
39
39
  'fabric.editor.blockControlMoveDown': 'Move down',
40
40
  'fabric.editor.blockControlMoveUp': 'Move up',
41
+ 'fabric.editor.blockControlMovedDown': 'Content has been moved down',
42
+ 'fabric.editor.blockControlMovedUp': 'Content has been moved up',
41
43
  'fabric.editor.blockDescription': 'Display more information about a link, including a summary and actions',
42
44
  'fabric.editor.blockTitle': 'Card',
43
45
  'fabric.editor.blockquote': 'a quote',
@@ -266,6 +268,8 @@ export default {
266
268
  'fabric.editor.inputQueryAssistiveTxt': 'When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.',
267
269
  'fabric.editor.insertColumn': 'Insert column right',
268
270
  'fabric.editor.insertColumnDrag': 'Insert column',
271
+ 'fabric.editor.insertMediaFromUrl': 'Image from link',
272
+ 'fabric.editor.insertMediaFromUrlDescription': 'Add an image or video from a link',
269
273
  'fabric.editor.insertMenu': 'Insert elements',
270
274
  'fabric.editor.insertRow': 'Insert row below',
271
275
  'fabric.editor.insertRowDrag': 'Insert row',
@@ -337,6 +341,7 @@ export default {
337
341
  'fabric.editor.other': 'Others...',
338
342
  'fabric.editor.outdent': 'Outdent',
339
343
  'fabric.editor.pageActionsLabel': 'Page actions',
344
+ 'fabric.editor.panel': 'Panel',
340
345
  'fabric.editor.panel.backgroundColor': 'Background colour',
341
346
  'fabric.editor.panel.emoji': 'Add emoji',
342
347
  'fabric.editor.panel.panelsGroup': 'Panel Types',
@@ -446,6 +451,7 @@ export default {
446
451
  'fabric.editor.tooltip.defaultBlockNode': 'a block node',
447
452
  'fabric.editor.tooltip.nestedExpand': 'a nested expand',
448
453
  'fabric.editor.tooltip.taskList': 'an action item',
454
+ 'fabric.editor.turnInto': 'Turn into',
449
455
  'fabric.editor.twoColumns': 'Two columns layout',
450
456
  'fabric.editor.typeAhead.popupLabel': 'Typeahead results',
451
457
  'fabric.editor.typeAhead.quickInsertInputLabel': 'Begin typing to search or filter shortcut options',