@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
@@ -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⁡‌⁠⁡⁠‌⁡‌‍؜⁡‌‍⁡⁣⁤',
@@ -51,16 +51,25 @@ export var debouncedReplaceNodeviews = debounce(function (cache, view) {
51
51
  // From here, we will access the loaded node views by lexical scope
52
52
  cache.set(view, {});
53
53
 
54
- // eslint-disable-next-line compat/compat
55
- var idle = window.requestIdleCallback;
56
-
57
54
  /*
58
55
  * For reasons that goes beyond my knowledge
59
56
  * some Firefox versions aren't calling the requestIdleCallback.
60
57
  *
61
58
  * So, we need this check to make sure we use the requestAnimationFrame instead
59
+ *
60
+ * setting timeout to 2s to ensure this function is called, but not before prosemirror render
61
+ * and other important tasks are done - adjust this timeout based on user feedback
62
62
  */
63
- var later = isFirefox || typeof idle !== 'function' ? window.requestAnimationFrame : idle;
63
+ var later = function later(callback) {
64
+ // eslint-disable-next-line compat/compat
65
+ if (isFirefox || !window.requestIdleCallback) {
66
+ return window.requestAnimationFrame(callback);
67
+ }
68
+ // eslint-disable-next-line compat/compat
69
+ window.requestIdleCallback(callback, {
70
+ timeout: 2000
71
+ });
72
+ };
64
73
  later(function () {
65
74
  var currentNodeViews = view.props.nodeViews;
66
75
  var nextNodeViews = _objectSpread(_objectSpread({}, currentNodeViews), nodeViewsToReplace);
@@ -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 var 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
+ });
@@ -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 = "87.5.0";
10
+ var packageVersion = "87.6.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -20,7 +20,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
20
20
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "87.5.0";
23
+ var packageVersion = "87.6.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -146,6 +146,9 @@ export declare enum ACTION {
146
146
  UPDATE_PARAMETERS = "updateParameters",
147
147
  GET_CHILDERN = "getChildern",
148
148
  MOVED = "moved",
149
+ UPLOAD_COMMENCED = "uploadCommenced",
150
+ UPLOAD_SUCCEEDED = "uploadSucceeded",
151
+ UPLOAD_FAILED = "uploadFailed",
149
152
  TOGGLE_CODE_BLOCK_WRAP = "toggleCodeBlockWrap"
150
153
  }
151
154
  export declare enum INPUT_METHOD {
@@ -373,7 +376,8 @@ export declare enum ACTION_SUBJECT_ID {
373
376
  UNSUPPORTED_MARK = "unsupportedMark",
374
377
  ON_UNSUPPORTED_INLINE = "onUnsupportedInline",
375
378
  ON_UNSUPPORTED_BLOCK = "onUnsupportedBlock",
376
- MULTI_BODIED_EXTENSION = "multiBodiedExtension"
379
+ MULTI_BODIED_EXTENSION = "multiBodiedExtension",
380
+ UPLOAD_MEDIA_FROM_URL = "uploadMediaFromUrl"
377
381
  }
378
382
  export declare enum FLOATING_CONTROLS_TITLE {
379
383
  CODE_BLOCK = "codeBlockFloatingControls",
@@ -33,6 +33,7 @@ import type { SelectionEventPayload } from './selection-events';
33
33
  import type { SubstituteEventPayload } from './substitute-events';
34
34
  import type { TableEventPayload } from './table-events';
35
35
  import type { TypeAheadPayload } from './type-ahead';
36
+ import type { MediaUploadEventPayload } from './upload-media-events';
36
37
  import type { OperationalAEP, OperationalExposureAEP, TrackAEP } from './utils';
37
38
  import type { ViewEventPayload } from './view-events';
38
39
  type Dispatch<T = any> = (eventName: PluginKey | string, data: T) => void;
@@ -43,7 +44,7 @@ export type SimplifiedNode = {
43
44
  marks?: string[];
44
45
  content?: SimplifiedNode[];
45
46
  };
46
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload;
47
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload;
47
48
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
48
49
  previousColor: string;
49
50
  newColor: string;
@@ -27,12 +27,12 @@ type FormatIndentationAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_INDENT, {
27
27
  indentType: INDENT_TYPE.PARAGRAPH | INDENT_TYPE.LIST | INDENT_TYPE.HEADING | INDENT_TYPE.CODE_BLOCK | INDENT_TYPE.TASK_LIST;
28
28
  }>;
29
29
  type FormatHeadingAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_HEADING, {
30
- inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.QUICK_INSERT;
30
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FLOATING_TB;
31
31
  newHeadingLevel: HeadingLevelsAndNormalText;
32
32
  previousHeadingLevel?: HeadingLevelsAndNormalText;
33
33
  }>;
34
34
  type FormatBlockQuoteAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_BLOCK_QUOTE, {
35
- inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.QUICK_INSERT;
35
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FLOATING_TB;
36
36
  }>;
37
37
  type FormatClearAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_CLEAR, {
38
38
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT;
@@ -128,6 +128,7 @@ type ButtonHelpAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_HELP, {
128
128
  inputMethod: INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR;
129
129
  }>;
130
130
  type ButtonFeedbackAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_FEEDBACK, undefined>;
131
+ type ButtonUploadMediaAEP = ButtonAEP<ACTION_SUBJECT_ID.UPLOAD_MEDIA_FROM_URL, undefined>;
131
132
  type PickerEmojiAEP = PickerAEP<ACTION_SUBJECT_ID.PICKER_EMOJI, {
132
133
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD;
133
134
  }>;
@@ -181,5 +182,5 @@ type CodeBlockWordWrapToggleAEP = TrackAEP<ACTION.TOGGLE_CODE_BLOCK_WRAP, ACTION
181
182
  mode: MODE;
182
183
  wordWrapEnabled: boolean;
183
184
  }, undefined>;
184
- export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ColorPickerAEP | DispatchedTransactionAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | EditorTTIAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamlingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | UfoSessionCompletePayloadAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | CodeBlockWordWrapToggleAEP;
185
+ export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ButtonUploadMediaAEP | ColorPickerAEP | DispatchedTransactionAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | EditorTTIAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamlingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | UfoSessionCompletePayloadAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | CodeBlockWordWrapToggleAEP;
185
186
  export {};
@@ -37,3 +37,4 @@ export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceRep
37
37
  export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './referentiality-events';
38
38
  export type { ElementEventPayload } from './element-events';
39
39
  export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './view-events';
40
+ export type { MediaUploadEventPayload } from './upload-media-events';
@@ -50,7 +50,7 @@ type InsertTableAEP = InsertAEP<ACTION_SUBJECT_ID.TABLE, {
50
50
  localId?: string;
51
51
  }, undefined>;
52
52
  type InsertExpandAEP = InsertAEP<ACTION_SUBJECT_ID.EXPAND | ACTION_SUBJECT_ID.NESTED_EXPAND, {
53
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU;
53
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FLOATING_TB;
54
54
  }, undefined>;
55
55
  type InsertActionDecisionAEP = InsertAEP<ACTION_SUBJECT_ID.DECISION | ACTION_SUBJECT_ID.ACTION, {
56
56
  inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
@@ -0,0 +1,10 @@
1
+ import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
2
+ import type { OperationalAEP } from './utils';
3
+ type MediaUploadAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.UPLOAD_MEDIA_FROM_URL, Attributes>;
4
+ type MediaUploadCommencedAEP = MediaUploadAEP<ACTION.UPLOAD_COMMENCED, undefined>;
5
+ type MediaUploadSuccessAEP = MediaUploadAEP<ACTION.UPLOAD_SUCCEEDED, undefined>;
6
+ type MediaUploadFailAEP = MediaUploadAEP<ACTION.UPLOAD_FAILED, {
7
+ reason: string;
8
+ }>;
9
+ export type MediaUploadEventPayload = MediaUploadCommencedAEP | MediaUploadSuccessAEP | MediaUploadFailAEP;
10
+ export {};
@@ -36,6 +36,8 @@ declare const _default: {
36
36
  'fabric.editor.blockControlDragHandleUsageInfo': string;
37
37
  'fabric.editor.blockControlMoveDown': string;
38
38
  'fabric.editor.blockControlMoveUp': string;
39
+ 'fabric.editor.blockControlMovedDown': string;
40
+ 'fabric.editor.blockControlMovedUp': string;
39
41
  'fabric.editor.blockDescription': string;
40
42
  'fabric.editor.blockTitle': string;
41
43
  'fabric.editor.blockquote': string;
@@ -264,6 +266,8 @@ declare const _default: {
264
266
  'fabric.editor.inputQueryAssistiveTxt': string;
265
267
  'fabric.editor.insertColumn': string;
266
268
  'fabric.editor.insertColumnDrag': string;
269
+ 'fabric.editor.insertMediaFromUrl': string;
270
+ 'fabric.editor.insertMediaFromUrlDescription': string;
267
271
  'fabric.editor.insertMenu': string;
268
272
  'fabric.editor.insertRow': string;
269
273
  'fabric.editor.insertRowDrag': string;
@@ -335,6 +339,7 @@ declare const _default: {
335
339
  'fabric.editor.other': string;
336
340
  'fabric.editor.outdent': string;
337
341
  'fabric.editor.pageActionsLabel': string;
342
+ 'fabric.editor.panel': string;
338
343
  'fabric.editor.panel.backgroundColor': string;
339
344
  'fabric.editor.panel.emoji': string;
340
345
  'fabric.editor.panel.panelsGroup': string;
@@ -444,6 +449,7 @@ declare const _default: {
444
449
  'fabric.editor.tooltip.defaultBlockNode': string;
445
450
  'fabric.editor.tooltip.nestedExpand': string;
446
451
  'fabric.editor.tooltip.taskList': string;
452
+ 'fabric.editor.turnInto': string;
447
453
  'fabric.editor.twoColumns': string;
448
454
  'fabric.editor.typeAhead.popupLabel': string;
449
455
  'fabric.editor.typeAhead.quickInsertInputLabel': string;
@@ -36,6 +36,8 @@ declare const _default: {
36
36
  'fabric.editor.blockControlDragHandleUsageInfo': string;
37
37
  'fabric.editor.blockControlMoveDown': string;
38
38
  'fabric.editor.blockControlMoveUp': string;
39
+ 'fabric.editor.blockControlMovedDown': string;
40
+ 'fabric.editor.blockControlMovedUp': string;
39
41
  'fabric.editor.blockDescription': string;
40
42
  'fabric.editor.blockTitle': string;
41
43
  'fabric.editor.blockquote': string;
@@ -264,6 +266,8 @@ declare const _default: {
264
266
  'fabric.editor.inputQueryAssistiveTxt': string;
265
267
  'fabric.editor.insertColumn': string;
266
268
  'fabric.editor.insertColumnDrag': string;
269
+ 'fabric.editor.insertMediaFromUrl': string;
270
+ 'fabric.editor.insertMediaFromUrlDescription': string;
267
271
  'fabric.editor.insertMenu': string;
268
272
  'fabric.editor.insertRow': string;
269
273
  'fabric.editor.insertRowDrag': string;
@@ -335,6 +339,7 @@ declare const _default: {
335
339
  'fabric.editor.other': string;
336
340
  'fabric.editor.outdent': string;
337
341
  'fabric.editor.pageActionsLabel': string;
342
+ 'fabric.editor.panel': string;
338
343
  'fabric.editor.panel.backgroundColor': string;
339
344
  'fabric.editor.panel.emoji': string;
340
345
  'fabric.editor.panel.panelsGroup': string;
@@ -444,6 +449,7 @@ declare const _default: {
444
449
  'fabric.editor.tooltip.defaultBlockNode': string;
445
450
  'fabric.editor.tooltip.nestedExpand': string;
446
451
  'fabric.editor.tooltip.taskList': string;
452
+ 'fabric.editor.turnInto': string;
447
453
  'fabric.editor.twoColumns': string;
448
454
  'fabric.editor.typeAhead.popupLabel': string;
449
455
  'fabric.editor.typeAhead.quickInsertInputLabel': string;
@@ -36,6 +36,8 @@ declare const _default: {
36
36
  'fabric.editor.blockControlDragHandleUsageInfo': string;
37
37
  'fabric.editor.blockControlMoveDown': string;
38
38
  'fabric.editor.blockControlMoveUp': string;
39
+ 'fabric.editor.blockControlMovedDown': string;
40
+ 'fabric.editor.blockControlMovedUp': string;
39
41
  'fabric.editor.blockDescription': string;
40
42
  'fabric.editor.blockTitle': string;
41
43
  'fabric.editor.blockquote': string;
@@ -264,6 +266,8 @@ declare const _default: {
264
266
  'fabric.editor.inputQueryAssistiveTxt': string;
265
267
  'fabric.editor.insertColumn': string;
266
268
  'fabric.editor.insertColumnDrag': string;
269
+ 'fabric.editor.insertMediaFromUrl': string;
270
+ 'fabric.editor.insertMediaFromUrlDescription': string;
267
271
  'fabric.editor.insertMenu': string;
268
272
  'fabric.editor.insertRow': string;
269
273
  'fabric.editor.insertRowDrag': string;
@@ -335,6 +339,7 @@ declare const _default: {
335
339
  'fabric.editor.other': string;
336
340
  'fabric.editor.outdent': string;
337
341
  'fabric.editor.pageActionsLabel': string;
342
+ 'fabric.editor.panel': string;
338
343
  'fabric.editor.panel.backgroundColor': string;
339
344
  'fabric.editor.panel.emoji': string;
340
345
  'fabric.editor.panel.panelsGroup': string;
@@ -443,6 +448,7 @@ declare const _default: {
443
448
  'fabric.editor.tooltip.defaultBlockNode': string;
444
449
  'fabric.editor.tooltip.nestedExpand': string;
445
450
  'fabric.editor.tooltip.taskList': string;
451
+ 'fabric.editor.turnInto': string;
446
452
  'fabric.editor.twoColumns': string;
447
453
  'fabric.editor.typeAhead.popupLabel': string;
448
454
  'fabric.editor.typeAhead.quickInsertInputLabel': string;
@@ -29,6 +29,7 @@ export { mentionMessages } from './mentions';
29
29
  export { helpDialogMessages } from './help-dialog';
30
30
  export { highlightMessages } from './highlight';
31
31
  export { messages as blockControlsMessages } from './block-controls';
32
+ export { mediaInsertMessages } from './media-insert';
32
33
  declare const _default: {
33
34
  layoutFixedWidth: {
34
35
  id: string;
@@ -0,0 +1,37 @@
1
+ export declare const mediaInsertMessages: {
2
+ loadPreview: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ insert: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ pasteLinkToUpload: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ cancel: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ errorMessage: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ warning: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ mediaAlt: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ };
@@ -146,6 +146,9 @@ export declare enum ACTION {
146
146
  UPDATE_PARAMETERS = "updateParameters",
147
147
  GET_CHILDERN = "getChildern",
148
148
  MOVED = "moved",
149
+ UPLOAD_COMMENCED = "uploadCommenced",
150
+ UPLOAD_SUCCEEDED = "uploadSucceeded",
151
+ UPLOAD_FAILED = "uploadFailed",
149
152
  TOGGLE_CODE_BLOCK_WRAP = "toggleCodeBlockWrap"
150
153
  }
151
154
  export declare enum INPUT_METHOD {
@@ -373,7 +376,8 @@ export declare enum ACTION_SUBJECT_ID {
373
376
  UNSUPPORTED_MARK = "unsupportedMark",
374
377
  ON_UNSUPPORTED_INLINE = "onUnsupportedInline",
375
378
  ON_UNSUPPORTED_BLOCK = "onUnsupportedBlock",
376
- MULTI_BODIED_EXTENSION = "multiBodiedExtension"
379
+ MULTI_BODIED_EXTENSION = "multiBodiedExtension",
380
+ UPLOAD_MEDIA_FROM_URL = "uploadMediaFromUrl"
377
381
  }
378
382
  export declare enum FLOATING_CONTROLS_TITLE {
379
383
  CODE_BLOCK = "codeBlockFloatingControls",
@@ -33,6 +33,7 @@ import type { SelectionEventPayload } from './selection-events';
33
33
  import type { SubstituteEventPayload } from './substitute-events';
34
34
  import type { TableEventPayload } from './table-events';
35
35
  import type { TypeAheadPayload } from './type-ahead';
36
+ import type { MediaUploadEventPayload } from './upload-media-events';
36
37
  import type { OperationalAEP, OperationalExposureAEP, TrackAEP } from './utils';
37
38
  import type { ViewEventPayload } from './view-events';
38
39
  type Dispatch<T = any> = (eventName: PluginKey | string, data: T) => void;
@@ -43,7 +44,7 @@ export type SimplifiedNode = {
43
44
  marks?: string[];
44
45
  content?: SimplifiedNode[];
45
46
  };
46
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload;
47
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload;
47
48
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
48
49
  previousColor: string;
49
50
  newColor: string;
@@ -27,12 +27,12 @@ type FormatIndentationAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_INDENT, {
27
27
  indentType: INDENT_TYPE.PARAGRAPH | INDENT_TYPE.LIST | INDENT_TYPE.HEADING | INDENT_TYPE.CODE_BLOCK | INDENT_TYPE.TASK_LIST;
28
28
  }>;
29
29
  type FormatHeadingAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_HEADING, {
30
- inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.QUICK_INSERT;
30
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FLOATING_TB;
31
31
  newHeadingLevel: HeadingLevelsAndNormalText;
32
32
  previousHeadingLevel?: HeadingLevelsAndNormalText;
33
33
  }>;
34
34
  type FormatBlockQuoteAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_BLOCK_QUOTE, {
35
- inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.QUICK_INSERT;
35
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FLOATING_TB;
36
36
  }>;
37
37
  type FormatClearAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_CLEAR, {
38
38
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT;
@@ -128,6 +128,7 @@ type ButtonHelpAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_HELP, {
128
128
  inputMethod: INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR;
129
129
  }>;
130
130
  type ButtonFeedbackAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_FEEDBACK, undefined>;
131
+ type ButtonUploadMediaAEP = ButtonAEP<ACTION_SUBJECT_ID.UPLOAD_MEDIA_FROM_URL, undefined>;
131
132
  type PickerEmojiAEP = PickerAEP<ACTION_SUBJECT_ID.PICKER_EMOJI, {
132
133
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD;
133
134
  }>;
@@ -181,5 +182,5 @@ type CodeBlockWordWrapToggleAEP = TrackAEP<ACTION.TOGGLE_CODE_BLOCK_WRAP, ACTION
181
182
  mode: MODE;
182
183
  wordWrapEnabled: boolean;
183
184
  }, undefined>;
184
- export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ColorPickerAEP | DispatchedTransactionAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | EditorTTIAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamlingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | UfoSessionCompletePayloadAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | CodeBlockWordWrapToggleAEP;
185
+ export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ButtonUploadMediaAEP | ColorPickerAEP | DispatchedTransactionAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | EditorTTIAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamlingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | UfoSessionCompletePayloadAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | CodeBlockWordWrapToggleAEP;
185
186
  export {};
@@ -37,3 +37,4 @@ export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceRep
37
37
  export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './referentiality-events';
38
38
  export type { ElementEventPayload } from './element-events';
39
39
  export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './view-events';
40
+ export type { MediaUploadEventPayload } from './upload-media-events';
@@ -50,7 +50,7 @@ type InsertTableAEP = InsertAEP<ACTION_SUBJECT_ID.TABLE, {
50
50
  localId?: string;
51
51
  }, undefined>;
52
52
  type InsertExpandAEP = InsertAEP<ACTION_SUBJECT_ID.EXPAND | ACTION_SUBJECT_ID.NESTED_EXPAND, {
53
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU;
53
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FLOATING_TB;
54
54
  }, undefined>;
55
55
  type InsertActionDecisionAEP = InsertAEP<ACTION_SUBJECT_ID.DECISION | ACTION_SUBJECT_ID.ACTION, {
56
56
  inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
@@ -0,0 +1,10 @@
1
+ import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
2
+ import type { OperationalAEP } from './utils';
3
+ type MediaUploadAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.UPLOAD_MEDIA_FROM_URL, Attributes>;
4
+ type MediaUploadCommencedAEP = MediaUploadAEP<ACTION.UPLOAD_COMMENCED, undefined>;
5
+ type MediaUploadSuccessAEP = MediaUploadAEP<ACTION.UPLOAD_SUCCEEDED, undefined>;
6
+ type MediaUploadFailAEP = MediaUploadAEP<ACTION.UPLOAD_FAILED, {
7
+ reason: string;
8
+ }>;
9
+ export type MediaUploadEventPayload = MediaUploadCommencedAEP | MediaUploadSuccessAEP | MediaUploadFailAEP;
10
+ export {};
@@ -36,6 +36,8 @@ declare const _default: {
36
36
  'fabric.editor.blockControlDragHandleUsageInfo': string;
37
37
  'fabric.editor.blockControlMoveDown': string;
38
38
  'fabric.editor.blockControlMoveUp': string;
39
+ 'fabric.editor.blockControlMovedDown': string;
40
+ 'fabric.editor.blockControlMovedUp': string;
39
41
  'fabric.editor.blockDescription': string;
40
42
  'fabric.editor.blockTitle': string;
41
43
  'fabric.editor.blockquote': string;
@@ -264,6 +266,8 @@ declare const _default: {
264
266
  'fabric.editor.inputQueryAssistiveTxt': string;
265
267
  'fabric.editor.insertColumn': string;
266
268
  'fabric.editor.insertColumnDrag': string;
269
+ 'fabric.editor.insertMediaFromUrl': string;
270
+ 'fabric.editor.insertMediaFromUrlDescription': string;
267
271
  'fabric.editor.insertMenu': string;
268
272
  'fabric.editor.insertRow': string;
269
273
  'fabric.editor.insertRowDrag': string;
@@ -335,6 +339,7 @@ declare const _default: {
335
339
  'fabric.editor.other': string;
336
340
  'fabric.editor.outdent': string;
337
341
  'fabric.editor.pageActionsLabel': string;
342
+ 'fabric.editor.panel': string;
338
343
  'fabric.editor.panel.backgroundColor': string;
339
344
  'fabric.editor.panel.emoji': string;
340
345
  'fabric.editor.panel.panelsGroup': string;
@@ -444,6 +449,7 @@ declare const _default: {
444
449
  'fabric.editor.tooltip.defaultBlockNode': string;
445
450
  'fabric.editor.tooltip.nestedExpand': string;
446
451
  'fabric.editor.tooltip.taskList': string;
452
+ 'fabric.editor.turnInto': string;
447
453
  'fabric.editor.twoColumns': string;
448
454
  'fabric.editor.typeAhead.popupLabel': string;
449
455
  'fabric.editor.typeAhead.quickInsertInputLabel': string;
@@ -36,6 +36,8 @@ declare const _default: {
36
36
  'fabric.editor.blockControlDragHandleUsageInfo': string;
37
37
  'fabric.editor.blockControlMoveDown': string;
38
38
  'fabric.editor.blockControlMoveUp': string;
39
+ 'fabric.editor.blockControlMovedDown': string;
40
+ 'fabric.editor.blockControlMovedUp': string;
39
41
  'fabric.editor.blockDescription': string;
40
42
  'fabric.editor.blockTitle': string;
41
43
  'fabric.editor.blockquote': string;
@@ -264,6 +266,8 @@ declare const _default: {
264
266
  'fabric.editor.inputQueryAssistiveTxt': string;
265
267
  'fabric.editor.insertColumn': string;
266
268
  'fabric.editor.insertColumnDrag': string;
269
+ 'fabric.editor.insertMediaFromUrl': string;
270
+ 'fabric.editor.insertMediaFromUrlDescription': string;
267
271
  'fabric.editor.insertMenu': string;
268
272
  'fabric.editor.insertRow': string;
269
273
  'fabric.editor.insertRowDrag': string;
@@ -335,6 +339,7 @@ declare const _default: {
335
339
  'fabric.editor.other': string;
336
340
  'fabric.editor.outdent': string;
337
341
  'fabric.editor.pageActionsLabel': string;
342
+ 'fabric.editor.panel': string;
338
343
  'fabric.editor.panel.backgroundColor': string;
339
344
  'fabric.editor.panel.emoji': string;
340
345
  'fabric.editor.panel.panelsGroup': string;
@@ -444,6 +449,7 @@ declare const _default: {
444
449
  'fabric.editor.tooltip.defaultBlockNode': string;
445
450
  'fabric.editor.tooltip.nestedExpand': string;
446
451
  'fabric.editor.tooltip.taskList': string;
452
+ 'fabric.editor.turnInto': string;
447
453
  'fabric.editor.twoColumns': string;
448
454
  'fabric.editor.typeAhead.popupLabel': string;
449
455
  'fabric.editor.typeAhead.quickInsertInputLabel': string;
@@ -36,6 +36,8 @@ declare const _default: {
36
36
  'fabric.editor.blockControlDragHandleUsageInfo': string;
37
37
  'fabric.editor.blockControlMoveDown': string;
38
38
  'fabric.editor.blockControlMoveUp': string;
39
+ 'fabric.editor.blockControlMovedDown': string;
40
+ 'fabric.editor.blockControlMovedUp': string;
39
41
  'fabric.editor.blockDescription': string;
40
42
  'fabric.editor.blockTitle': string;
41
43
  'fabric.editor.blockquote': string;
@@ -264,6 +266,8 @@ declare const _default: {
264
266
  'fabric.editor.inputQueryAssistiveTxt': string;
265
267
  'fabric.editor.insertColumn': string;
266
268
  'fabric.editor.insertColumnDrag': string;
269
+ 'fabric.editor.insertMediaFromUrl': string;
270
+ 'fabric.editor.insertMediaFromUrlDescription': string;
267
271
  'fabric.editor.insertMenu': string;
268
272
  'fabric.editor.insertRow': string;
269
273
  'fabric.editor.insertRowDrag': string;
@@ -335,6 +339,7 @@ declare const _default: {
335
339
  'fabric.editor.other': string;
336
340
  'fabric.editor.outdent': string;
337
341
  'fabric.editor.pageActionsLabel': string;
342
+ 'fabric.editor.panel': string;
338
343
  'fabric.editor.panel.backgroundColor': string;
339
344
  'fabric.editor.panel.emoji': string;
340
345
  'fabric.editor.panel.panelsGroup': string;
@@ -443,6 +448,7 @@ declare const _default: {
443
448
  'fabric.editor.tooltip.defaultBlockNode': string;
444
449
  'fabric.editor.tooltip.nestedExpand': string;
445
450
  'fabric.editor.tooltip.taskList': string;
451
+ 'fabric.editor.turnInto': string;
446
452
  'fabric.editor.twoColumns': string;
447
453
  'fabric.editor.typeAhead.popupLabel': string;
448
454
  'fabric.editor.typeAhead.quickInsertInputLabel': string;
@@ -29,6 +29,7 @@ export { mentionMessages } from './mentions';
29
29
  export { helpDialogMessages } from './help-dialog';
30
30
  export { highlightMessages } from './highlight';
31
31
  export { messages as blockControlsMessages } from './block-controls';
32
+ export { mediaInsertMessages } from './media-insert';
32
33
  declare const _default: {
33
34
  layoutFixedWidth: {
34
35
  id: string;