@atlaskit/editor-common 88.2.1 → 88.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 88.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#131403](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/131403)
8
+ [`1ac0252dbed37`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1ac0252dbed37) -
9
+ [ED-24665] Fire analytics event for media insert via file browser
10
+ - [#134243](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134243)
11
+ [`f80ad43fc6eea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f80ad43fc6eea) -
12
+ Fix text selection inside datasource table input
13
+
14
+ ## 88.3.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [#134463](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134463)
19
+ [`d20ae898369bc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d20ae898369bc) -
20
+ [ux] [ED-24326] Add local file upload tab to media insert popup
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies
25
+
3
26
  ## 88.2.1
4
27
 
5
28
  ### Patch Changes
@@ -182,6 +182,7 @@ var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
182
182
  INPUT_METHOD["DATASOURCE"] = "datasource_config";
183
183
  INPUT_METHOD["TABLE_CONTEXT_MENU"] = "tableContextMenu";
184
184
  INPUT_METHOD["MOUSE"] = "mouse";
185
+ INPUT_METHOD["BROWSER"] = "browser";
185
186
  return INPUT_METHOD;
186
187
  }({});
187
188
  var TRIGGER_METHOD = exports.TRIGGER_METHOD = /*#__PURE__*/function (TRIGGER_METHOD) {
@@ -382,7 +383,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
382
383
  ACTION_SUBJECT_ID["ON_UNSUPPORTED_INLINE"] = "onUnsupportedInline";
383
384
  ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
384
385
  ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
385
- ACTION_SUBJECT_ID["UPLOAD_MEDIA_FROM_URL"] = "uploadMediaFromUrl";
386
+ ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
386
387
  return ACTION_SUBJECT_ID;
387
388
  }({});
388
389
  var FLOATING_CONTROLS_TITLE = exports.FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
@@ -26,26 +26,46 @@ var mediaInsertMessages = exports.mediaInsertMessages = (0, _reactIntlNext.defin
26
26
  defaultMessage: 'Cancel',
27
27
  description: 'Text on the modal action button that cancels the media file insertion and closes the modal'
28
28
  },
29
- errorMessage: {
30
- id: 'fabric.editor.media.insert.errorMessage',
29
+ fromUrlErrorMessage: {
30
+ id: 'fabric.editor.media.insert.fromUrlErrorMessage',
31
31
  defaultMessage: 'Unfortunately, we can’t add this image link. Download the image, then drag and drop onto the page.',
32
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
33
  },
34
- warning: {
35
- id: 'fabric.editor.media.insert.warning',
34
+ fromUrlWarning: {
35
+ id: 'fabric.editor.media.insert.fromUrlErrorMessage',
36
36
  defaultMessage: 'This image might not be visible to others due to source restrictions. Consider uploading the file instead.',
37
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
38
  },
39
+ localFileNetworkErrorMessage: {
40
+ id: 'fabric.editor.media.insert.localFileNetworkErrorMessage',
41
+ defaultMessage: 'File upload error. Check file path or network.',
42
+ description: 'Error message displayed when a network error occurs during file upload'
43
+ },
44
+ localFileErrorMessage: {
45
+ id: 'fabric.editor.media.insert.localFileErrorMessage',
46
+ defaultMessage: 'This file couldn’t be uploaded.',
47
+ description: 'Generic catch-all error message displayed when file upload fails'
48
+ },
39
49
  mediaAlt: {
40
50
  id: 'fabric.editor.media.insert.mediaAlt',
41
51
  defaultMessage: 'Preview for uploaded image or video file',
42
52
  description: 'Alt text describing a preview of an image uploaded.'
43
53
  },
54
+ upload: {
55
+ id: 'fabric.editor.media.insert.upload',
56
+ defaultMessage: 'Upload',
57
+ description: 'Text on a button that opens a file picker dialog to upload a media file'
58
+ },
44
59
  linkTabTitle: {
45
60
  id: 'fabric.editor.media.insert.linkTabTitle',
46
61
  defaultMessage: 'Link',
47
62
  description: 'Title of the navigation tab that allows users to insert media from a URL or link'
48
63
  },
64
+ fileTabTitle: {
65
+ id: 'fabric.editor.media.insert.fileTabTitle',
66
+ defaultMessage: 'File',
67
+ description: 'Title of the navigation tab that allows users to upload local media files'
68
+ },
49
69
  mediaPickerPopupAriaLabel: {
50
70
  id: 'fabric.editor.media.insert.mediaPickerPopupAriaLabel',
51
71
  defaultMessage: 'Media picker',
@@ -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 = "88.2.1";
20
+ var packageVersion = "88.3.1";
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
@@ -17,11 +17,11 @@ var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = exports.FLOATING_TOOLBAR_LINKPICKER_
17
17
 
18
18
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
19
19
  var smartCardStyles = exports.smartCardStyles = function smartCardStyles() {
20
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: ", ";\n\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), _smartCard.SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y75, ")"), ";\n border-bottom: 2px solid ", "var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")"), ";\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(_colors.N60A, ", -1px 2px 3px ").concat(_colors.N60A), ")"), ";\n }") : '', "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), _editorSharedStyles.akEditorSelectedNodeClassName, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), _smartCard.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER,
20
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: ", ";\n\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), _smartCard.SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y75, ")"), ";\n border-bottom: 2px solid ", "var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")"), ";\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(_colors.N60A, ", -1px 2px 3px ").concat(_colors.N60A), ")"), ";\n }") : '', "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), _editorSharedStyles.akEditorSelectedNodeClassName, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), _smartCard.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER,
21
21
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
22
22
  (0, _platformFeatureFlags.fg)('platform.linking-platform.smart-links-in-live-pages') ? 'text' : 'pointer',
23
23
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
24
- (0, _platformFeatureFlags.fg)('platform.linking-platform.smart-links-in-live-pages') ? 'pointer' : 'auto', _editorSharedStyles.akEditorSelectedNodeClassName, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), _smartCard.SmartCardSharedCssClassName.DATASOURCE_CONTAINER, _smartCard.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(_colors.N0, ")"), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(_colors.N40, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), _smartCard.SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER,
24
+ (0, _platformFeatureFlags.fg)('platform.linking-platform.smart-links-in-live-pages') ? 'pointer' : 'auto', _editorSharedStyles.akEditorSelectedNodeClassName, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), _smartCard.SmartCardSharedCssClassName.DATASOURCE_CONTAINER, _smartCard.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(_colors.N0, ")"), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(_colors.N40, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), (0, _platformFeatureFlags.fg)('platform-datasources-enable-two-way-sync') ? "\n\t\t\t\t\tinput::selection {\n\t\t\t\t\t\tbackground-color: ".concat("var(--ds-background-selected-hovered, #CCE0FF)", ";\n\t\t\t\t\t}\n\t\t\t\t\tinput::-moz-selection {\n\t\t\t\t\t\tbackground-color: ", "var(--ds-background-selected-hovered, #CCE0FF)", ";\n\t\t\t\t\t}\n\t\t\t\t") : '', DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), _smartCard.SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER,
25
25
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
26
26
  (0, _platformFeatureFlags.fg)('platform.linking-platform.smart-links-in-live-pages') ? 'pointer' : 'auto', _editorSharedStyles.akEditorSelectedNodeClassName, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
27
27
  };
@@ -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 = "88.2.1";
26
+ var packageVersion = "88.3.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  var DropList = /*#__PURE__*/function (_Component) {
@@ -176,6 +176,7 @@ export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
176
176
  INPUT_METHOD["DATASOURCE"] = "datasource_config";
177
177
  INPUT_METHOD["TABLE_CONTEXT_MENU"] = "tableContextMenu";
178
178
  INPUT_METHOD["MOUSE"] = "mouse";
179
+ INPUT_METHOD["BROWSER"] = "browser";
179
180
  return INPUT_METHOD;
180
181
  }({});
181
182
  export let TRIGGER_METHOD = /*#__PURE__*/function (TRIGGER_METHOD) {
@@ -376,7 +377,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
376
377
  ACTION_SUBJECT_ID["ON_UNSUPPORTED_INLINE"] = "onUnsupportedInline";
377
378
  ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
378
379
  ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
379
- ACTION_SUBJECT_ID["UPLOAD_MEDIA_FROM_URL"] = "uploadMediaFromUrl";
380
+ ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
380
381
  return ACTION_SUBJECT_ID;
381
382
  }({});
382
383
  export let FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
@@ -20,26 +20,46 @@ export const mediaInsertMessages = defineMessages({
20
20
  defaultMessage: 'Cancel',
21
21
  description: 'Text on the modal action button that cancels the media file insertion and closes the modal'
22
22
  },
23
- errorMessage: {
24
- id: 'fabric.editor.media.insert.errorMessage',
23
+ fromUrlErrorMessage: {
24
+ id: 'fabric.editor.media.insert.fromUrlErrorMessage',
25
25
  defaultMessage: 'Unfortunately, we can’t add this image link. Download the image, then drag and drop onto the page.',
26
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
27
  },
28
- warning: {
29
- id: 'fabric.editor.media.insert.warning',
28
+ fromUrlWarning: {
29
+ id: 'fabric.editor.media.insert.fromUrlErrorMessage',
30
30
  defaultMessage: 'This image might not be visible to others due to source restrictions. Consider uploading the file instead.',
31
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
32
  },
33
+ localFileNetworkErrorMessage: {
34
+ id: 'fabric.editor.media.insert.localFileNetworkErrorMessage',
35
+ defaultMessage: 'File upload error. Check file path or network.',
36
+ description: 'Error message displayed when a network error occurs during file upload'
37
+ },
38
+ localFileErrorMessage: {
39
+ id: 'fabric.editor.media.insert.localFileErrorMessage',
40
+ defaultMessage: 'This file couldn’t be uploaded.',
41
+ description: 'Generic catch-all error message displayed when file upload fails'
42
+ },
33
43
  mediaAlt: {
34
44
  id: 'fabric.editor.media.insert.mediaAlt',
35
45
  defaultMessage: 'Preview for uploaded image or video file',
36
46
  description: 'Alt text describing a preview of an image uploaded.'
37
47
  },
48
+ upload: {
49
+ id: 'fabric.editor.media.insert.upload',
50
+ defaultMessage: 'Upload',
51
+ description: 'Text on a button that opens a file picker dialog to upload a media file'
52
+ },
38
53
  linkTabTitle: {
39
54
  id: 'fabric.editor.media.insert.linkTabTitle',
40
55
  defaultMessage: 'Link',
41
56
  description: 'Title of the navigation tab that allows users to insert media from a URL or link'
42
57
  },
58
+ fileTabTitle: {
59
+ id: 'fabric.editor.media.insert.fileTabTitle',
60
+ defaultMessage: 'File',
61
+ description: 'Title of the navigation tab that allows users to upload local media files'
62
+ },
43
63
  mediaPickerPopupAriaLabel: {
44
64
  id: 'fabric.editor.media.insert.mediaPickerPopupAriaLabel',
45
65
  defaultMessage: 'Media picker',
@@ -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 = "88.2.1";
4
+ const packageVersion = "88.3.1";
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
@@ -91,6 +91,15 @@ fg('platform.linking-platform.smart-links-in-live-pages') ? 'pointer' : 'auto'};
91
91
  &.${akEditorSelectedNodeClassName} {
92
92
  .${DATASOURCE_INNER_CONTAINER_CLASSNAME} {
93
93
  ${getSelectionStyles([SelectionStyle.BoxShadow])}
94
+
95
+ ${fg('platform-datasources-enable-two-way-sync') ? `
96
+ input::selection {
97
+ background-color: ${"var(--ds-background-selected-hovered, #CCE0FF)"};
98
+ }
99
+ input::-moz-selection {
100
+ background-color: ${"var(--ds-background-selected-hovered, #CCE0FF)"};
101
+ }
102
+ ` : ''}
94
103
  }
95
104
  }
96
105
 
@@ -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 = "88.2.1";
15
+ const packageVersion = "88.3.1";
16
16
  const halfFocusRing = 1;
17
17
  const dropOffset = '0, 8';
18
18
  class DropList extends Component {
@@ -176,6 +176,7 @@ export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
176
176
  INPUT_METHOD["DATASOURCE"] = "datasource_config";
177
177
  INPUT_METHOD["TABLE_CONTEXT_MENU"] = "tableContextMenu";
178
178
  INPUT_METHOD["MOUSE"] = "mouse";
179
+ INPUT_METHOD["BROWSER"] = "browser";
179
180
  return INPUT_METHOD;
180
181
  }({});
181
182
  export var TRIGGER_METHOD = /*#__PURE__*/function (TRIGGER_METHOD) {
@@ -376,7 +377,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
376
377
  ACTION_SUBJECT_ID["ON_UNSUPPORTED_INLINE"] = "onUnsupportedInline";
377
378
  ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
378
379
  ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
379
- ACTION_SUBJECT_ID["UPLOAD_MEDIA_FROM_URL"] = "uploadMediaFromUrl";
380
+ ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
380
381
  return ACTION_SUBJECT_ID;
381
382
  }({});
382
383
  export var FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
@@ -20,26 +20,46 @@ export var mediaInsertMessages = defineMessages({
20
20
  defaultMessage: 'Cancel',
21
21
  description: 'Text on the modal action button that cancels the media file insertion and closes the modal'
22
22
  },
23
- errorMessage: {
24
- id: 'fabric.editor.media.insert.errorMessage',
23
+ fromUrlErrorMessage: {
24
+ id: 'fabric.editor.media.insert.fromUrlErrorMessage',
25
25
  defaultMessage: 'Unfortunately, we can’t add this image link. Download the image, then drag and drop onto the page.',
26
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
27
  },
28
- warning: {
29
- id: 'fabric.editor.media.insert.warning',
28
+ fromUrlWarning: {
29
+ id: 'fabric.editor.media.insert.fromUrlErrorMessage',
30
30
  defaultMessage: 'This image might not be visible to others due to source restrictions. Consider uploading the file instead.',
31
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
32
  },
33
+ localFileNetworkErrorMessage: {
34
+ id: 'fabric.editor.media.insert.localFileNetworkErrorMessage',
35
+ defaultMessage: 'File upload error. Check file path or network.',
36
+ description: 'Error message displayed when a network error occurs during file upload'
37
+ },
38
+ localFileErrorMessage: {
39
+ id: 'fabric.editor.media.insert.localFileErrorMessage',
40
+ defaultMessage: 'This file couldn’t be uploaded.',
41
+ description: 'Generic catch-all error message displayed when file upload fails'
42
+ },
33
43
  mediaAlt: {
34
44
  id: 'fabric.editor.media.insert.mediaAlt',
35
45
  defaultMessage: 'Preview for uploaded image or video file',
36
46
  description: 'Alt text describing a preview of an image uploaded.'
37
47
  },
48
+ upload: {
49
+ id: 'fabric.editor.media.insert.upload',
50
+ defaultMessage: 'Upload',
51
+ description: 'Text on a button that opens a file picker dialog to upload a media file'
52
+ },
38
53
  linkTabTitle: {
39
54
  id: 'fabric.editor.media.insert.linkTabTitle',
40
55
  defaultMessage: 'Link',
41
56
  description: 'Title of the navigation tab that allows users to insert media from a URL or link'
42
57
  },
58
+ fileTabTitle: {
59
+ id: 'fabric.editor.media.insert.fileTabTitle',
60
+ defaultMessage: 'File',
61
+ description: 'Title of the navigation tab that allows users to upload local media files'
62
+ },
43
63
  mediaPickerPopupAriaLabel: {
44
64
  id: 'fabric.editor.media.insert.mediaPickerPopupAriaLabel',
45
65
  defaultMessage: 'Media picker',
@@ -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 = "88.2.1";
10
+ var packageVersion = "88.3.1";
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
@@ -12,11 +12,11 @@ export var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-
12
12
 
13
13
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
14
14
  export var smartCardStyles = function smartCardStyles() {
15
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: ", ";\n\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, fg('editor_inline_comments_on_inline_nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"), ";\n border-bottom: 2px solid ", "var(--ds-border-accent-yellow, ".concat(Y300, ")"), ";\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")"), ";\n }") : '', "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER,
15
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: ", ";\n\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, fg('editor_inline_comments_on_inline_nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"), ";\n border-bottom: 2px solid ", "var(--ds-border-accent-yellow, ".concat(Y300, ")"), ";\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")"), ";\n }") : '', "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER,
16
16
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
17
17
  fg('platform.linking-platform.smart-links-in-live-pages') ? 'text' : 'pointer',
18
18
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
19
- fg('platform.linking-platform.smart-links-in-live-pages') ? 'pointer' : 'auto', akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(N0, ")"), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(N40, ")"), akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, getSelectionStyles([SelectionStyle.BoxShadow]), DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER,
19
+ fg('platform.linking-platform.smart-links-in-live-pages') ? 'pointer' : 'auto', akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(N0, ")"), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(N40, ")"), akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, getSelectionStyles([SelectionStyle.BoxShadow]), fg('platform-datasources-enable-two-way-sync') ? "\n\t\t\t\t\tinput::selection {\n\t\t\t\t\t\tbackground-color: ".concat("var(--ds-background-selected-hovered, #CCE0FF)", ";\n\t\t\t\t\t}\n\t\t\t\t\tinput::-moz-selection {\n\t\t\t\t\t\tbackground-color: ", "var(--ds-background-selected-hovered, #CCE0FF)", ";\n\t\t\t\t\t}\n\t\t\t\t") : '', DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER,
20
20
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
21
21
  fg('platform.linking-platform.smart-links-in-live-pages') ? 'pointer' : 'auto', akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
22
22
  };
@@ -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 = "88.2.1";
23
+ var packageVersion = "88.3.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -181,7 +181,8 @@ export declare enum INPUT_METHOD {
181
181
  TYPEAHEAD = "typeAhead",
182
182
  DATASOURCE = "datasource_config",
183
183
  TABLE_CONTEXT_MENU = "tableContextMenu",
184
- MOUSE = "mouse"
184
+ MOUSE = "mouse",
185
+ BROWSER = "browser"
185
186
  }
186
187
  export declare enum TRIGGER_METHOD {
187
188
  BUTTON = "button",
@@ -379,7 +380,7 @@ export declare enum ACTION_SUBJECT_ID {
379
380
  ON_UNSUPPORTED_INLINE = "onUnsupportedInline",
380
381
  ON_UNSUPPORTED_BLOCK = "onUnsupportedBlock",
381
382
  MULTI_BODIED_EXTENSION = "multiBodiedExtension",
382
- UPLOAD_MEDIA_FROM_URL = "uploadMediaFromUrl"
383
+ UPLOAD_MEDIA = "uploadMedia"
383
384
  }
384
385
  export declare enum FLOATING_CONTROLS_TITLE {
385
386
  CODE_BLOCK = "codeBlockFloatingControls",
@@ -129,7 +129,7 @@ type ButtonHelpAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_HELP, {
129
129
  inputMethod: INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR;
130
130
  }>;
131
131
  type ButtonFeedbackAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_FEEDBACK, undefined>;
132
- type ButtonUploadMediaAEP = ButtonAEP<ACTION_SUBJECT_ID.UPLOAD_MEDIA_FROM_URL, undefined>;
132
+ type ButtonUploadMediaAEP = ButtonAEP<ACTION_SUBJECT_ID.UPLOAD_MEDIA, undefined>;
133
133
  type PickerEmojiAEP = PickerAEP<ACTION_SUBJECT_ID.PICKER_EMOJI, {
134
134
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD;
135
135
  }>;
@@ -68,7 +68,7 @@ type InsertEmojiAEP = InsertAEP<ACTION_SUBJECT_ID.EMOJI, {
68
68
  type InsertStatusAEP = InsertAEP<ACTION_SUBJECT_ID.STATUS, {
69
69
  inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
70
70
  }, undefined>;
71
- export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP;
71
+ export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.BROWSER;
72
72
  type InsertMediaSingleAEP = InsertAEP<ACTION_SUBJECT_ID.MEDIA, {
73
73
  inputMethod: InputMethodInsertMedia;
74
74
  fileExtension?: string;
@@ -1,9 +1,12 @@
1
1
  import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
2
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, {
3
+ type MediaUploadAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.UPLOAD_MEDIA, Attributes>;
4
+ type SourceAttrs = {
5
+ mediaUploadSource: 'local' | 'url';
6
+ };
7
+ type MediaUploadCommencedAEP = MediaUploadAEP<ACTION.UPLOAD_COMMENCED, SourceAttrs>;
8
+ type MediaUploadSuccessAEP = MediaUploadAEP<ACTION.UPLOAD_SUCCEEDED, SourceAttrs>;
9
+ type MediaUploadFailAEP = MediaUploadAEP<ACTION.UPLOAD_FAILED, SourceAttrs & {
7
10
  reason: string;
8
11
  }>;
9
12
  export type MediaUploadEventPayload = MediaUploadCommencedAEP | MediaUploadSuccessAEP | MediaUploadFailAEP;
@@ -19,12 +19,22 @@ export declare const mediaInsertMessages: {
19
19
  defaultMessage: string;
20
20
  description: string;
21
21
  };
22
- errorMessage: {
22
+ fromUrlErrorMessage: {
23
23
  id: string;
24
24
  defaultMessage: string;
25
25
  description: string;
26
26
  };
27
- warning: {
27
+ fromUrlWarning: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ localFileNetworkErrorMessage: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ localFileErrorMessage: {
28
38
  id: string;
29
39
  defaultMessage: string;
30
40
  description: string;
@@ -34,11 +44,21 @@ export declare const mediaInsertMessages: {
34
44
  defaultMessage: string;
35
45
  description: string;
36
46
  };
47
+ upload: {
48
+ id: string;
49
+ defaultMessage: string;
50
+ description: string;
51
+ };
37
52
  linkTabTitle: {
38
53
  id: string;
39
54
  defaultMessage: string;
40
55
  description: string;
41
56
  };
57
+ fileTabTitle: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ description: string;
61
+ };
42
62
  mediaPickerPopupAriaLabel: {
43
63
  id: string;
44
64
  defaultMessage: string;
@@ -181,7 +181,8 @@ export declare enum INPUT_METHOD {
181
181
  TYPEAHEAD = "typeAhead",
182
182
  DATASOURCE = "datasource_config",
183
183
  TABLE_CONTEXT_MENU = "tableContextMenu",
184
- MOUSE = "mouse"
184
+ MOUSE = "mouse",
185
+ BROWSER = "browser"
185
186
  }
186
187
  export declare enum TRIGGER_METHOD {
187
188
  BUTTON = "button",
@@ -379,7 +380,7 @@ export declare enum ACTION_SUBJECT_ID {
379
380
  ON_UNSUPPORTED_INLINE = "onUnsupportedInline",
380
381
  ON_UNSUPPORTED_BLOCK = "onUnsupportedBlock",
381
382
  MULTI_BODIED_EXTENSION = "multiBodiedExtension",
382
- UPLOAD_MEDIA_FROM_URL = "uploadMediaFromUrl"
383
+ UPLOAD_MEDIA = "uploadMedia"
383
384
  }
384
385
  export declare enum FLOATING_CONTROLS_TITLE {
385
386
  CODE_BLOCK = "codeBlockFloatingControls",
@@ -129,7 +129,7 @@ type ButtonHelpAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_HELP, {
129
129
  inputMethod: INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR;
130
130
  }>;
131
131
  type ButtonFeedbackAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_FEEDBACK, undefined>;
132
- type ButtonUploadMediaAEP = ButtonAEP<ACTION_SUBJECT_ID.UPLOAD_MEDIA_FROM_URL, undefined>;
132
+ type ButtonUploadMediaAEP = ButtonAEP<ACTION_SUBJECT_ID.UPLOAD_MEDIA, undefined>;
133
133
  type PickerEmojiAEP = PickerAEP<ACTION_SUBJECT_ID.PICKER_EMOJI, {
134
134
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD;
135
135
  }>;
@@ -68,7 +68,7 @@ type InsertEmojiAEP = InsertAEP<ACTION_SUBJECT_ID.EMOJI, {
68
68
  type InsertStatusAEP = InsertAEP<ACTION_SUBJECT_ID.STATUS, {
69
69
  inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
70
70
  }, undefined>;
71
- export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP;
71
+ export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.BROWSER;
72
72
  type InsertMediaSingleAEP = InsertAEP<ACTION_SUBJECT_ID.MEDIA, {
73
73
  inputMethod: InputMethodInsertMedia;
74
74
  fileExtension?: string;
@@ -1,9 +1,12 @@
1
1
  import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
2
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, {
3
+ type MediaUploadAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.UPLOAD_MEDIA, Attributes>;
4
+ type SourceAttrs = {
5
+ mediaUploadSource: 'local' | 'url';
6
+ };
7
+ type MediaUploadCommencedAEP = MediaUploadAEP<ACTION.UPLOAD_COMMENCED, SourceAttrs>;
8
+ type MediaUploadSuccessAEP = MediaUploadAEP<ACTION.UPLOAD_SUCCEEDED, SourceAttrs>;
9
+ type MediaUploadFailAEP = MediaUploadAEP<ACTION.UPLOAD_FAILED, SourceAttrs & {
7
10
  reason: string;
8
11
  }>;
9
12
  export type MediaUploadEventPayload = MediaUploadCommencedAEP | MediaUploadSuccessAEP | MediaUploadFailAEP;
@@ -19,12 +19,22 @@ export declare const mediaInsertMessages: {
19
19
  defaultMessage: string;
20
20
  description: string;
21
21
  };
22
- errorMessage: {
22
+ fromUrlErrorMessage: {
23
23
  id: string;
24
24
  defaultMessage: string;
25
25
  description: string;
26
26
  };
27
- warning: {
27
+ fromUrlWarning: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ localFileNetworkErrorMessage: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ localFileErrorMessage: {
28
38
  id: string;
29
39
  defaultMessage: string;
30
40
  description: string;
@@ -34,11 +44,21 @@ export declare const mediaInsertMessages: {
34
44
  defaultMessage: string;
35
45
  description: string;
36
46
  };
47
+ upload: {
48
+ id: string;
49
+ defaultMessage: string;
50
+ description: string;
51
+ };
37
52
  linkTabTitle: {
38
53
  id: string;
39
54
  defaultMessage: string;
40
55
  description: string;
41
56
  };
57
+ fileTabTitle: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ description: string;
61
+ };
42
62
  mediaPickerPopupAriaLabel: {
43
63
  id: string;
44
64
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "88.2.1",
3
+ "version": "88.3.1",
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/"
@@ -106,10 +106,10 @@
106
106
  "@atlaskit/analytics-next": "^10.1.0",
107
107
  "@atlaskit/atlassian-context": "^0.0.1",
108
108
  "@atlaskit/button": "^20.1.0",
109
- "@atlaskit/code": "^15.5.0",
109
+ "@atlaskit/code": "^15.6.0",
110
110
  "@atlaskit/codemod-utils": "^4.2.0",
111
111
  "@atlaskit/custom-steps": "^0.7.0",
112
- "@atlaskit/dropdown-menu": "^12.17.0",
112
+ "@atlaskit/dropdown-menu": "^12.18.0",
113
113
  "@atlaskit/editor-json-transformer": "^8.18.0",
114
114
  "@atlaskit/editor-palette": "1.6.0",
115
115
  "@atlaskit/editor-prosemirror": "5.0.1",
@@ -132,9 +132,9 @@
132
132
  "@atlaskit/menu": "^2.12.0",
133
133
  "@atlaskit/platform-feature-flags": "^0.3.0",
134
134
  "@atlaskit/primitives": "^12.0.0",
135
- "@atlaskit/profilecard": "^19.21.0",
135
+ "@atlaskit/profilecard": "^19.22.0",
136
136
  "@atlaskit/section-message": "^6.6.0",
137
- "@atlaskit/smart-card": "^27.18.0",
137
+ "@atlaskit/smart-card": "^27.19.0",
138
138
  "@atlaskit/smart-user-picker": "^6.10.0",
139
139
  "@atlaskit/spinner": "^16.3.0",
140
140
  "@atlaskit/task-decision": "^17.10.0",
@@ -271,6 +271,9 @@
271
271
  },
272
272
  "use-effect-in-use-previous-props": {
273
273
  "type": "boolean"
274
+ },
275
+ "platform-datasources-enable-two-way-sync": {
276
+ "type": "boolean"
274
277
  }
275
278
  }
276
279
  }