@atlaskit/editor-common 76.25.1 → 76.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/afm-cc/tsconfig.json +133 -0
- package/dist/cjs/card/LinkToolbarButtonGroup.js +6 -5
- package/dist/cjs/element-browser/ViewMore.js +4 -3
- package/dist/cjs/element-browser/components/CategoryList.js +5 -4
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +3 -2
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +21 -20
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +9 -8
- package/dist/cjs/element-browser/components/ElementList/NotFoundIllustration.js +16 -15
- package/dist/cjs/element-browser/components/ElementSearch.js +7 -6
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +22 -21
- package/dist/cjs/element-browser/hooks/use-container-width.js +3 -2
- package/dist/cjs/keymaps/index.js +2 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +22 -21
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +6 -5
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +11 -9
- package/dist/cjs/media-inline/inline-image-wrapper.js +3 -1
- package/dist/cjs/media-inline/media-inline-image-card.js +22 -13
- package/dist/cjs/media-inline/types.js +5 -0
- package/dist/cjs/media-inline/views/error-view.js +6 -3
- package/dist/cjs/media-inline/views/frame.js +4 -1
- package/dist/cjs/media-inline/views/icon-wrapper.js +3 -1
- package/dist/cjs/media-inline/views/loading-view.js +5 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +8 -5
- package/dist/cjs/ui/Caption/index.js +3 -2
- package/dist/cjs/ui/DropList/index.js +6 -6
- package/dist/cjs/ui/Expand/index.js +5 -3
- package/dist/cjs/ui/FloatingToolbar/Separator.js +2 -1
- package/dist/cjs/ui/FloatingToolbar/SmallerEditIcon.js +3 -2
- package/dist/cjs/ui/MediaSingle/index.js +5 -2
- package/dist/cjs/ui/MediaSingle/styled.js +3 -2
- package/dist/cjs/ui/Messages/index.js +8 -7
- package/dist/cjs/ui/PanelTextInput/index.js +3 -2
- package/dist/cjs/ui/UnsupportedBlock/index.js +5 -4
- package/dist/cjs/ui/UnsupportedInline/index.js +5 -4
- package/dist/cjs/ui/WidthProvider/index.js +4 -4
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +6 -5
- package/dist/cjs/ui-color/ColorPalette/index.js +6 -3
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +10 -9
- package/dist/cjs/ui-menu/DropdownContainer/index.js +3 -3
- package/dist/cjs/ui-menu/DropdownMenu/index.js +19 -18
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -2
- package/dist/cjs/ui-menu/ToolbarButton/index.js +4 -3
- package/dist/es2019/card/LinkToolbarButtonGroup.js +7 -6
- package/dist/es2019/element-browser/ViewMore.js +5 -4
- package/dist/es2019/element-browser/components/CategoryList.js +6 -4
- package/dist/es2019/element-browser/components/ElementBrowserLoader.js +4 -3
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +22 -21
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +10 -9
- package/dist/es2019/element-browser/components/ElementList/NotFoundIllustration.js +17 -16
- package/dist/es2019/element-browser/components/ElementSearch.js +8 -7
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +23 -22
- package/dist/es2019/element-browser/hooks/use-container-width.js +4 -3
- package/dist/es2019/keymaps/index.js +3 -2
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +24 -22
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +7 -6
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +10 -9
- package/dist/es2019/media-inline/inline-image-wrapper.js +4 -2
- package/dist/es2019/media-inline/media-inline-image-card.js +22 -13
- package/dist/es2019/media-inline/types.js +1 -0
- package/dist/es2019/media-inline/views/error-view.js +6 -3
- package/dist/es2019/media-inline/views/frame.js +4 -1
- package/dist/es2019/media-inline/views/icon-wrapper.js +4 -2
- package/dist/es2019/media-inline/views/loading-view.js +5 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +7 -5
- package/dist/es2019/ui/Caption/index.js +4 -3
- package/dist/es2019/ui/DropList/index.js +8 -6
- package/dist/es2019/ui/Expand/index.js +5 -3
- package/dist/es2019/ui/FloatingToolbar/Separator.js +3 -2
- package/dist/es2019/ui/FloatingToolbar/SmallerEditIcon.js +4 -3
- package/dist/es2019/ui/MediaSingle/index.js +4 -2
- package/dist/es2019/ui/MediaSingle/styled.js +5 -3
- package/dist/es2019/ui/Messages/index.js +10 -8
- package/dist/es2019/ui/PanelTextInput/index.js +4 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +6 -5
- package/dist/es2019/ui/UnsupportedInline/index.js +6 -5
- package/dist/es2019/ui/WidthProvider/index.js +5 -4
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +6 -4
- package/dist/es2019/ui-color/ColorPalette/index.js +4 -2
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +11 -10
- package/dist/es2019/ui-menu/DropdownContainer/index.js +3 -2
- package/dist/es2019/ui-menu/DropdownMenu/index.js +21 -19
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +4 -3
- package/dist/es2019/ui-menu/ToolbarButton/index.js +5 -5
- package/dist/esm/card/LinkToolbarButtonGroup.js +7 -6
- package/dist/esm/element-browser/ViewMore.js +5 -4
- package/dist/esm/element-browser/components/CategoryList.js +7 -5
- package/dist/esm/element-browser/components/ElementBrowserLoader.js +4 -3
- package/dist/esm/element-browser/components/ElementList/ElementList.js +22 -21
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +10 -9
- package/dist/esm/element-browser/components/ElementList/NotFoundIllustration.js +17 -16
- package/dist/esm/element-browser/components/ElementSearch.js +8 -7
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +23 -22
- package/dist/esm/element-browser/hooks/use-container-width.js +4 -3
- package/dist/esm/keymaps/index.js +3 -2
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +24 -22
- package/dist/esm/link/LinkSearch/LinkSearchList.js +7 -6
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +10 -9
- package/dist/esm/media-inline/inline-image-wrapper.js +4 -2
- package/dist/esm/media-inline/media-inline-image-card.js +22 -13
- package/dist/esm/media-inline/types.js +1 -0
- package/dist/esm/media-inline/views/error-view.js +6 -3
- package/dist/esm/media-inline/views/frame.js +4 -1
- package/dist/esm/media-inline/views/icon-wrapper.js +4 -2
- package/dist/esm/media-inline/views/loading-view.js +5 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +7 -5
- package/dist/esm/ui/Caption/index.js +4 -3
- package/dist/esm/ui/DropList/index.js +8 -6
- package/dist/esm/ui/Expand/index.js +5 -3
- package/dist/esm/ui/FloatingToolbar/Separator.js +3 -2
- package/dist/esm/ui/FloatingToolbar/SmallerEditIcon.js +4 -3
- package/dist/esm/ui/MediaSingle/index.js +4 -2
- package/dist/esm/ui/MediaSingle/styled.js +5 -3
- package/dist/esm/ui/Messages/index.js +10 -8
- package/dist/esm/ui/PanelTextInput/index.js +4 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +6 -5
- package/dist/esm/ui/UnsupportedInline/index.js +6 -5
- package/dist/esm/ui/WidthProvider/index.js +5 -4
- package/dist/esm/ui-color/ColorPalette/Color/index.js +6 -4
- package/dist/esm/ui-color/ColorPalette/index.js +5 -3
- package/dist/esm/ui-menu/ColorPickerButton/index.js +11 -10
- package/dist/esm/ui-menu/DropdownContainer/index.js +3 -2
- package/dist/esm/ui-menu/DropdownMenu/index.js +21 -19
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +4 -3
- package/dist/esm/ui-menu/ToolbarButton/index.js +5 -5
- package/dist/types/media-inline/index.d.ts +1 -0
- package/dist/types/media-inline/media-inline-image-card.d.ts +4 -2
- package/dist/types/media-inline/types.d.ts +6 -0
- package/dist/types/types/floating-toolbar.d.ts +1 -0
- package/dist/types-ts4.5/media-inline/index.d.ts +1 -0
- package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +4 -2
- package/dist/types-ts4.5/media-inline/types.d.ts +6 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +1 -0
- package/package.json +2 -2
|
@@ -13,8 +13,10 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
13
13
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
14
14
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
15
15
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
16
|
+
/** @jsx jsx */
|
|
17
|
+
|
|
16
18
|
import React, { PureComponent } from 'react';
|
|
17
|
-
import { css } from '@emotion/react';
|
|
19
|
+
import { css, jsx } from '@emotion/react';
|
|
18
20
|
import debounce from 'lodash/debounce';
|
|
19
21
|
import { flushSync } from 'react-dom';
|
|
20
22
|
import { defineMessages, injectIntl } from 'react-intl-next';
|
|
@@ -82,7 +84,7 @@ export var messages = defineMessages({
|
|
|
82
84
|
description: 'Visible label for text input in hyperlink floating control'
|
|
83
85
|
}
|
|
84
86
|
});
|
|
85
|
-
var defaultIcon =
|
|
87
|
+
var defaultIcon = jsx(Page16Icon, {
|
|
86
88
|
label: 'page'
|
|
87
89
|
});
|
|
88
90
|
var mapActivityProviderResultToLinkSearchItemData = function mapActivityProviderResultToLinkSearchItemData(_ref) {
|
|
@@ -813,27 +815,27 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
813
815
|
// as the Aria design pattern for combobox does not work in this case
|
|
814
816
|
// for details: https://a11y-internal.atlassian.net/browse/AK-740
|
|
815
817
|
var screenReaderText = browser.safari && this.getScreenReaderText();
|
|
816
|
-
return
|
|
818
|
+
return jsx("div", {
|
|
817
819
|
"aria-label": "Hyperlink Edit",
|
|
818
820
|
className: "recent-list"
|
|
819
|
-
},
|
|
821
|
+
}, jsx("div", {
|
|
820
822
|
css: [container, !!activityProvider && containerWithProvider, containerPadding],
|
|
821
823
|
ref: this.wrapperRef
|
|
822
|
-
},
|
|
824
|
+
}, jsx("label", {
|
|
823
825
|
htmlFor: linkSearchInputId,
|
|
824
826
|
css: inputLabel
|
|
825
|
-
}, formatMessage(messages.linkVisibleLabel)),
|
|
827
|
+
}, formatMessage(messages.linkVisibleLabel)), jsx("div", {
|
|
826
828
|
css: [inputWrapper, inputWrapperPosition]
|
|
827
|
-
}, screenReaderText &&
|
|
829
|
+
}, screenReaderText && jsx(Announcer, {
|
|
828
830
|
ariaLive: "assertive",
|
|
829
831
|
text: screenReaderText,
|
|
830
832
|
ariaRelevant: "additions",
|
|
831
833
|
delay: 250
|
|
832
|
-
}),
|
|
834
|
+
}), jsx("div", {
|
|
833
835
|
css: visuallyHiddenStyles,
|
|
834
836
|
"aria-hidden": "true",
|
|
835
837
|
id: screenReaderDescriptionId
|
|
836
|
-
}, formatMessage(messages.searchLinkAriaDescription)),
|
|
838
|
+
}, formatMessage(messages.searchLinkAriaDescription)), jsx(PanelTextInput, {
|
|
837
839
|
role: "combobox",
|
|
838
840
|
ariaExpanded: true,
|
|
839
841
|
ariaActiveDescendant: ariaActiveDescendant,
|
|
@@ -853,23 +855,23 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
853
855
|
defaultValue: displayUrl,
|
|
854
856
|
onKeyDown: this.handleKeyDown,
|
|
855
857
|
inputId: linkSearchInputId
|
|
856
|
-
}), displayUrl &&
|
|
858
|
+
}), displayUrl && jsx("div", {
|
|
857
859
|
css: clearTextWrapper
|
|
858
|
-
},
|
|
860
|
+
}, jsx(Tooltip, {
|
|
859
861
|
content: formatClearLinkText
|
|
860
|
-
},
|
|
862
|
+
}, jsx("button", {
|
|
861
863
|
type: "button",
|
|
862
864
|
css: clearText,
|
|
863
865
|
onClick: this.handleClearText,
|
|
864
866
|
tabIndex: 0
|
|
865
|
-
},
|
|
867
|
+
}, jsx(CrossCircleIcon, {
|
|
866
868
|
label: formatClearLinkText
|
|
867
|
-
}))))),
|
|
869
|
+
}))))), jsx("label", {
|
|
868
870
|
htmlFor: displayTextInputId,
|
|
869
871
|
css: [inputLabel, textLabelMargin]
|
|
870
|
-
}, formatMessage(messages.textVisibleLabel)),
|
|
872
|
+
}, formatMessage(messages.textVisibleLabel)), jsx("div", {
|
|
871
873
|
css: [inputWrapper, inputWrapperPosition]
|
|
872
|
-
},
|
|
874
|
+
}, jsx(PanelTextInput, {
|
|
873
875
|
ref: function ref(ele) {
|
|
874
876
|
return _this3.displayTextInputContainer = ele;
|
|
875
877
|
},
|
|
@@ -880,25 +882,25 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
880
882
|
onSubmit: this.handleSubmit,
|
|
881
883
|
onKeyDown: this.handleKeyDown,
|
|
882
884
|
inputId: displayTextInputId
|
|
883
|
-
}), displayText &&
|
|
885
|
+
}), displayText && jsx("div", {
|
|
884
886
|
css: clearTextWrapper
|
|
885
|
-
},
|
|
887
|
+
}, jsx(Tooltip, {
|
|
886
888
|
content: formatMessage(messages.clearText)
|
|
887
|
-
},
|
|
889
|
+
}, jsx("button", {
|
|
888
890
|
type: "button",
|
|
889
891
|
css: clearText,
|
|
890
892
|
onClick: this.handleClearDisplayText,
|
|
891
893
|
onKeyDown: this.handleClearTextKeyDown
|
|
892
|
-
},
|
|
894
|
+
}, jsx(CrossCircleIcon, {
|
|
893
895
|
label: formatMessage(messages.clearText)
|
|
894
|
-
}))))),
|
|
896
|
+
}))))), jsx("div", {
|
|
895
897
|
css: visuallyHiddenStyles,
|
|
896
898
|
"aria-live": "polite",
|
|
897
899
|
"aria-atomic": "true",
|
|
898
900
|
id: "fabric.editor.hyperlink.suggested.results"
|
|
899
901
|
}, displayUrl && formatMessage(messages.searchLinkResults, {
|
|
900
902
|
count: items.length
|
|
901
|
-
})),
|
|
903
|
+
})), jsx(LinkSearchList, {
|
|
902
904
|
ariaControls: "fabric.editor.hyperlink.suggested.results",
|
|
903
905
|
id: linkSearchListId,
|
|
904
906
|
role: "listbox",
|
|
@@ -7,8 +7,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
7
7
|
var _templateObject, _templateObject2, _templateObject3;
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
|
+
/** @jsx jsx */
|
|
10
11
|
import { PureComponent } from 'react';
|
|
11
|
-
import { css } from '@emotion/react';
|
|
12
|
+
import { css, jsx } from '@emotion/react';
|
|
12
13
|
import Spinner from '@atlaskit/spinner';
|
|
13
14
|
import { N30 } from '@atlaskit/theme/colors';
|
|
14
15
|
import LinkSearchListItem from './LinkSearchListItem';
|
|
@@ -39,13 +40,13 @@ var LinkSearchList = /*#__PURE__*/function (_PureComponent) {
|
|
|
39
40
|
var itemsContent;
|
|
40
41
|
var loadingContent;
|
|
41
42
|
if (items && items.length > 0) {
|
|
42
|
-
itemsContent =
|
|
43
|
+
itemsContent = jsx("ul", {
|
|
43
44
|
css: linkSearchList,
|
|
44
45
|
id: id,
|
|
45
46
|
role: role,
|
|
46
47
|
"aria-controls": ariaControls
|
|
47
48
|
}, items.map(function (item, index) {
|
|
48
|
-
return
|
|
49
|
+
return jsx(LinkSearchListItem, {
|
|
49
50
|
id: "link-search-list-item-".concat(index),
|
|
50
51
|
role: role && 'option',
|
|
51
52
|
item: item,
|
|
@@ -59,14 +60,14 @@ var LinkSearchList = /*#__PURE__*/function (_PureComponent) {
|
|
|
59
60
|
}));
|
|
60
61
|
}
|
|
61
62
|
if (isLoading) {
|
|
62
|
-
loadingContent =
|
|
63
|
+
loadingContent = jsx("div", {
|
|
63
64
|
"data-testid": "".concat(id, "-loading"),
|
|
64
65
|
css: spinnerContainer
|
|
65
|
-
},
|
|
66
|
+
}, jsx(Spinner, {
|
|
66
67
|
size: "medium"
|
|
67
68
|
}));
|
|
68
69
|
}
|
|
69
|
-
return
|
|
70
|
+
return jsx("div", {
|
|
70
71
|
css: listContainer
|
|
71
72
|
}, itemsContent, loadingContent);
|
|
72
73
|
}
|
|
@@ -9,8 +9,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
9
9
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
10
10
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
|
+
/** @jsx jsx */
|
|
12
13
|
import React, { Fragment } from 'react';
|
|
13
|
-
import { css } from '@emotion/react';
|
|
14
|
+
import { css, jsx } from '@emotion/react';
|
|
14
15
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
15
16
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
16
17
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -71,14 +72,14 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
71
72
|
iconUrl = _this$props5$item.iconUrl,
|
|
72
73
|
intl = _this$props5.intl;
|
|
73
74
|
if (icon) {
|
|
74
|
-
return
|
|
75
|
+
return jsx("span", {
|
|
75
76
|
css: iconStyle
|
|
76
77
|
}, icon);
|
|
77
78
|
}
|
|
78
79
|
if (iconUrl) {
|
|
79
|
-
return
|
|
80
|
+
return jsx("span", {
|
|
80
81
|
css: iconStyle
|
|
81
|
-
},
|
|
82
|
+
}, jsx("img", {
|
|
82
83
|
src: iconUrl,
|
|
83
84
|
alt: getCorrectAltByIconUrl(iconUrl, intl)
|
|
84
85
|
}));
|
|
@@ -92,7 +93,7 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
92
93
|
item = _this$props6.item,
|
|
93
94
|
intl = _this$props6.intl;
|
|
94
95
|
var date = transformTimeStamp(intl, item.lastViewedDate, item.lastUpdatedDate);
|
|
95
|
-
return date &&
|
|
96
|
+
return date && jsx(Fragment, null, "\xA0 \u2022", jsx("span", {
|
|
96
97
|
className: "link-search-timestamp",
|
|
97
98
|
"data-test-id": "link-search-timestamp"
|
|
98
99
|
}, "\xA0 ", date.pageAction, " ", date.dateString, " ", date.timeSince || ''));
|
|
@@ -105,7 +106,7 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
105
106
|
selected = _this$props7.selected,
|
|
106
107
|
id = _this$props7.id,
|
|
107
108
|
role = _this$props7.role;
|
|
108
|
-
return
|
|
109
|
+
return jsx("li", {
|
|
109
110
|
css: [container, selected && containerSelected],
|
|
110
111
|
role: role,
|
|
111
112
|
id: id,
|
|
@@ -115,11 +116,11 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
115
116
|
onMouseEnter: this.handleMouseEnter,
|
|
116
117
|
onMouseLeave: this.handleMouseLeave,
|
|
117
118
|
onClick: this.handleSelect
|
|
118
|
-
}, this.renderIcon(),
|
|
119
|
+
}, this.renderIcon(), jsx("span", {
|
|
119
120
|
css: nameWrapper
|
|
120
|
-
},
|
|
121
|
+
}, jsx("div", {
|
|
121
122
|
css: nameStyle
|
|
122
|
-
}, item.name),
|
|
123
|
+
}, item.name), jsx("div", {
|
|
123
124
|
"data-testid": "link-search-list-item-container",
|
|
124
125
|
css: containerName
|
|
125
126
|
}, item.container, this.renderTimeStamp())));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
2
4
|
import { B300 } from '@atlaskit/theme/colors';
|
|
3
5
|
var wrapperStyle = css({
|
|
4
6
|
display: 'inline-block',
|
|
@@ -14,7 +16,7 @@ var selectedStyle = css({
|
|
|
14
16
|
export var InlineImageWrapper = function InlineImageWrapper(_ref) {
|
|
15
17
|
var children = _ref.children,
|
|
16
18
|
isSelected = _ref.isSelected;
|
|
17
|
-
return
|
|
19
|
+
return jsx("span", {
|
|
18
20
|
css: [wrapperStyle, isSelected && selectedStyle]
|
|
19
21
|
}, children);
|
|
20
22
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
|
|
2
4
|
import { useEffect, useState } from 'react';
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
3
6
|
import { createIntl, injectIntl } from 'react-intl-next';
|
|
7
|
+
import { Card } from '@atlaskit/media-card';
|
|
4
8
|
import { messages } from '../messages/media-inline-card';
|
|
5
9
|
import { InlineImageWrapper } from './inline-image-wrapper';
|
|
6
10
|
import { InlineImageCardErrorView } from './views/error-view';
|
|
@@ -9,7 +13,9 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
|
|
|
9
13
|
var mediaClient = _ref.mediaClient,
|
|
10
14
|
identifier = _ref.identifier,
|
|
11
15
|
isSelected = _ref.isSelected,
|
|
12
|
-
intl = _ref.intl
|
|
16
|
+
intl = _ref.intl,
|
|
17
|
+
alt = _ref.alt,
|
|
18
|
+
isLazy = _ref.isLazy;
|
|
13
19
|
var _useState = useState(),
|
|
14
20
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15
21
|
fileState = _useState2[0],
|
|
@@ -42,37 +48,40 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
|
|
|
42
48
|
if (subscribeError) {
|
|
43
49
|
var isUploading = (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading';
|
|
44
50
|
var errorMessage = isUploading ? messages.failedToUpload : messages.unableToLoadContent;
|
|
45
|
-
return
|
|
51
|
+
return jsx(InlineImageCardErrorView, {
|
|
46
52
|
message: formatMessage(errorMessage)
|
|
47
53
|
});
|
|
48
54
|
}
|
|
49
55
|
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'error') {
|
|
50
|
-
return
|
|
56
|
+
return jsx(InlineImageCardErrorView, {
|
|
51
57
|
message: formatMessage(messages.unableToLoadContent)
|
|
52
58
|
});
|
|
53
59
|
}
|
|
54
60
|
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'failed-processing') {
|
|
55
|
-
return
|
|
61
|
+
return jsx(InlineImageCardErrorView, {
|
|
56
62
|
message: formatMessage(messages.unableToLoadContent)
|
|
57
63
|
});
|
|
58
64
|
}
|
|
59
65
|
// Empty file handling
|
|
60
66
|
if (fileState && !fileState.name) {
|
|
61
|
-
return
|
|
67
|
+
return jsx(InlineImageCardErrorView, {
|
|
62
68
|
message: formatMessage(messages.unableToLoadContent)
|
|
63
69
|
});
|
|
64
70
|
}
|
|
65
71
|
if (!fileState) {
|
|
66
|
-
return
|
|
72
|
+
return jsx(InlineImageCardLoadingView, null);
|
|
67
73
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
return jsx(Card, {
|
|
75
|
+
mediaClientConfig: mediaClient.mediaClientConfig,
|
|
76
|
+
isLazy: isLazy,
|
|
77
|
+
identifier: identifier,
|
|
78
|
+
selectable: true,
|
|
79
|
+
disableOverlay: true,
|
|
80
|
+
selected: isSelected,
|
|
81
|
+
alt: alt
|
|
82
|
+
});
|
|
74
83
|
};
|
|
75
|
-
return
|
|
84
|
+
return jsx(InlineImageWrapper, {
|
|
76
85
|
isSelected: isSelected
|
|
77
86
|
}, content());
|
|
78
87
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
1
4
|
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
2
5
|
import { R300 } from '@atlaskit/theme/colors';
|
|
3
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -11,14 +14,14 @@ export var InlineImageCardErrorView = function InlineImageCardErrorView(_ref) {
|
|
|
11
14
|
icon = _ref.icon,
|
|
12
15
|
_ref$height = _ref.height,
|
|
13
16
|
height = _ref$height === void 0 ? ICON_SIZE_THRESOLD : _ref$height;
|
|
14
|
-
return
|
|
17
|
+
return jsx(Frame, {
|
|
15
18
|
testId: testId
|
|
16
|
-
},
|
|
19
|
+
}, jsx(Tooltip, {
|
|
17
20
|
content: message,
|
|
18
21
|
position: "top",
|
|
19
22
|
tag: "span",
|
|
20
23
|
hideTooltipOnClick: true
|
|
21
|
-
},
|
|
24
|
+
}, jsx(IconWrapper, null, icon || jsx(WarningIcon, {
|
|
22
25
|
label: "error",
|
|
23
26
|
size: height > ICON_SIZE_THRESOLD ? 'medium' : 'small',
|
|
24
27
|
primaryColor: "var(--ds-icon-danger, ".concat(R300, ")")
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
1
4
|
import { wrapperStyle } from './wrapper';
|
|
2
5
|
export var Frame = function Frame(_ref) {
|
|
3
6
|
var children = _ref.children,
|
|
4
7
|
testId = _ref.testId;
|
|
5
|
-
return
|
|
8
|
+
return jsx("span", {
|
|
6
9
|
css: wrapperStyle,
|
|
7
10
|
"data-testid": testId
|
|
8
11
|
}, children);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
2
4
|
var wrapperStyle = css({
|
|
3
5
|
display: 'flex',
|
|
4
6
|
'span > svg': {
|
|
@@ -7,7 +9,7 @@ var wrapperStyle = css({
|
|
|
7
9
|
});
|
|
8
10
|
export var IconWrapper = function IconWrapper(_ref) {
|
|
9
11
|
var children = _ref.children;
|
|
10
|
-
return
|
|
12
|
+
return jsx("span", {
|
|
11
13
|
css: wrapperStyle,
|
|
12
14
|
"data-testid": "media-inline-image-card-icon"
|
|
13
15
|
}, children);
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
1
4
|
import Spinner from '@atlaskit/spinner';
|
|
2
5
|
import { ICON_SIZE_THRESOLD } from './constants';
|
|
3
6
|
import { Frame } from './frame';
|
|
@@ -6,9 +9,9 @@ export var InlineImageCardLoadingView = function InlineImageCardLoadingView(_ref
|
|
|
6
9
|
testId = _ref$testId === void 0 ? 'media-inline-image-card-loading-view' : _ref$testId,
|
|
7
10
|
_ref$height = _ref.height,
|
|
8
11
|
height = _ref$height === void 0 ? ICON_SIZE_THRESOLD : _ref$height;
|
|
9
|
-
return
|
|
12
|
+
return jsx(Frame, {
|
|
10
13
|
testId: testId
|
|
11
|
-
},
|
|
14
|
+
}, jsx(Spinner, {
|
|
12
15
|
size: height > ICON_SIZE_THRESOLD ? 'medium' : 'small'
|
|
13
16
|
}));
|
|
14
17
|
};
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "76.25.
|
|
9
|
+
var packageVersion = "76.25.2";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/** @jsx jsx */
|
|
2
3
|
import React from 'react';
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
3
5
|
import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
|
|
4
6
|
import { ErrorBoundary } from '../ui/ErrorBoundary';
|
|
5
7
|
import { analyticsEventKey, getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered, ZERO_WIDTH_SPACE } from '../utils';
|
|
@@ -155,21 +157,21 @@ function getPortalChildren(_ref2) {
|
|
|
155
157
|
// refactor. A test suite to catch any instances of this is ideal however
|
|
156
158
|
// the refactor required is currently out of scope for https://product-fabric.atlassian.net/browse/ED-14176
|
|
157
159
|
|
|
158
|
-
return
|
|
160
|
+
return jsx(ErrorBoundary, {
|
|
159
161
|
component: ACTION_SUBJECT.REACT_NODE_VIEW,
|
|
160
162
|
componentId: (_currentNode$type$nam = currentNode === null || currentNode === void 0 || (_currentNode$type = currentNode.type) === null || _currentNode$type === void 0 ? void 0 : _currentNode$type.name) !== null && _currentNode$type$nam !== void 0 ? _currentNode$type$nam : ACTION_SUBJECT_ID.UNKNOWN_NODE,
|
|
161
163
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent
|
|
162
|
-
},
|
|
164
|
+
}, jsx("span", {
|
|
163
165
|
className: "zeroWidthSpaceContainer"
|
|
164
|
-
},
|
|
166
|
+
}, jsx("span", {
|
|
165
167
|
className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
|
|
166
|
-
}), ZERO_WIDTH_SPACE),
|
|
168
|
+
}), ZERO_WIDTH_SPACE), jsx(Component, _extends({
|
|
167
169
|
view: nodeViewParams.view
|
|
168
170
|
// TODO: ED-13910 - Remove the boolean to fix the prosemirror view type
|
|
169
171
|
,
|
|
170
172
|
getPos: nodeViewParams.getPos,
|
|
171
173
|
node: currentNode
|
|
172
|
-
}, extraComponentProps)),
|
|
174
|
+
}, extraComponentProps)), jsx("span", {
|
|
173
175
|
className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
|
|
174
176
|
}));
|
|
175
177
|
};
|
|
@@ -8,8 +8,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
8
8
|
var _templateObject, _templateObject2;
|
|
9
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
|
+
/** @jsx jsx */
|
|
11
12
|
import React from 'react';
|
|
12
|
-
import { css } from '@emotion/react';
|
|
13
|
+
import { css, jsx } from '@emotion/react';
|
|
13
14
|
import { injectIntl } from 'react-intl-next';
|
|
14
15
|
import { N200, N400 } from '@atlaskit/theme/colors';
|
|
15
16
|
import { messages } from './messages';
|
|
@@ -32,12 +33,12 @@ export var CaptionComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
32
33
|
dataAttributes = _this$props.dataAttributes,
|
|
33
34
|
formatMessage = _this$props.intl.formatMessage;
|
|
34
35
|
var showPlaceholder = !selected && !hasContent;
|
|
35
|
-
return
|
|
36
|
+
return jsx("div", _extends({
|
|
36
37
|
"data-media-caption": true,
|
|
37
38
|
"data-testid": "media-caption"
|
|
38
39
|
}, dataAttributes, {
|
|
39
40
|
css: captionWrapperStyle
|
|
40
|
-
}), showPlaceholder ?
|
|
41
|
+
}), showPlaceholder ? jsx("p", {
|
|
41
42
|
css: placeholderStyle
|
|
42
43
|
}, formatMessage(messages.placeholder)) : null, children);
|
|
43
44
|
}
|
|
@@ -9,15 +9,17 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
9
9
|
var _templateObject, _templateObject2, _templateObject3;
|
|
10
10
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
|
+
/** @jsx jsx */
|
|
13
|
+
|
|
12
14
|
import { Component } from 'react';
|
|
13
|
-
import { css } from '@emotion/react';
|
|
15
|
+
import { css, jsx } from '@emotion/react';
|
|
14
16
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
15
17
|
import { DN50, DN600, N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
16
18
|
import { themed } from '@atlaskit/theme/components';
|
|
17
19
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
18
20
|
import Layer from '../Layer';
|
|
19
21
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "76.25.
|
|
22
|
+
var packageVersion = "76.25.2";
|
|
21
23
|
var halfFocusRing = 1;
|
|
22
24
|
var dropOffset = '0, 8';
|
|
23
25
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -125,7 +127,7 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
125
127
|
onPositioned = _this$props.onPositioned,
|
|
126
128
|
testId = _this$props.testId,
|
|
127
129
|
id = _this$props.id;
|
|
128
|
-
var layerContent = isOpen ?
|
|
130
|
+
var layerContent = isOpen ? jsx("div", {
|
|
129
131
|
css: function css(theme) {
|
|
130
132
|
return _this2.menuWrapper({
|
|
131
133
|
theme: theme
|
|
@@ -137,14 +139,14 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
137
139
|
id: id,
|
|
138
140
|
role: "presentation"
|
|
139
141
|
}, children) : null;
|
|
140
|
-
return
|
|
142
|
+
return jsx("div", {
|
|
141
143
|
css: this.wrapperStyles
|
|
142
|
-
},
|
|
144
|
+
}, jsx(Layer, {
|
|
143
145
|
content: layerContent,
|
|
144
146
|
offset: dropOffset,
|
|
145
147
|
position: position,
|
|
146
148
|
onPositioned: onPositioned
|
|
147
|
-
},
|
|
149
|
+
}, jsx("div", {
|
|
148
150
|
css: this.triggerStyles,
|
|
149
151
|
ref: this.handleTriggerRef
|
|
150
152
|
}, trigger)));
|
|
@@ -3,8 +3,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
4
4
|
var _excluded = ["children"];
|
|
5
5
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
6
|
+
/** @jsx jsx */
|
|
7
|
+
|
|
6
8
|
import React, { forwardRef } from 'react';
|
|
7
|
-
import { css } from '@emotion/react';
|
|
9
|
+
import { css, jsx } from '@emotion/react';
|
|
8
10
|
import { defineMessages } from 'react-intl-next';
|
|
9
11
|
import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
10
12
|
import { B300, DN50, DN600, N200, N200A, N300A, N30A, N40A, N50A, N90 } from '@atlaskit/theme/colors';
|
|
@@ -48,7 +50,7 @@ var EXPAND_EXPANDED_BORDER_COLOR = themed({
|
|
|
48
50
|
export var ExpandIconWrapper = function ExpandIconWrapper(_ref) {
|
|
49
51
|
var children = _ref.children,
|
|
50
52
|
expanded = _ref.expanded;
|
|
51
|
-
return
|
|
53
|
+
return jsx("div", {
|
|
52
54
|
css: function css(props) {
|
|
53
55
|
return expanded ? [expandIconWrapperStyle(props), expandIconWrapperExpandedStyle] : expandIconWrapperStyle(props);
|
|
54
56
|
}
|
|
@@ -65,7 +67,7 @@ export var expandLayoutWrapperStyle = css(_templateObject3 || (_templateObject3
|
|
|
65
67
|
export var ExpandLayoutWrapperWithRef = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
66
68
|
var children = props.children,
|
|
67
69
|
rest = _objectWithoutProperties(props, _excluded);
|
|
68
|
-
return
|
|
70
|
+
return jsx("div", _extends({
|
|
69
71
|
css: expandLayoutWrapperStyle
|
|
70
72
|
}, rest, {
|
|
71
73
|
ref: ref
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
|
|
3
|
+
/** @jsx jsx */
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { N30 } from '@atlaskit/theme/colors';
|
|
5
6
|
var separator = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n width: 1px;\n height: 20px;\n margin: 0 ", ";\n align-self: center;\n"])), "var(--ds-border, ".concat(N30, ")"), "var(--ds-space-050, 4px)");
|
|
6
7
|
export default (function () {
|
|
7
|
-
return
|
|
8
|
+
return jsx("div", {
|
|
8
9
|
css: separator,
|
|
9
10
|
className: "separator"
|
|
10
11
|
});
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
|
|
3
|
+
/** @jsx jsx */
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import EditIcon from '@atlaskit/icon/glyph/edit';
|
|
5
6
|
var editIconStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 20px;\n"])));
|
|
6
7
|
|
|
7
8
|
/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
|
|
8
9
|
export var SmallerEditIcon = function SmallerEditIcon() {
|
|
9
|
-
return
|
|
10
|
+
return jsx("div", {
|
|
10
11
|
css: editIconStyles
|
|
11
|
-
},
|
|
12
|
+
}, jsx(EditIcon, {
|
|
12
13
|
label: "edit"
|
|
13
14
|
}));
|
|
14
15
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
/** @jsx jsx */
|
|
2
3
|
import React from 'react';
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
3
5
|
import classnames from 'classnames';
|
|
4
6
|
import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
5
7
|
import { MEDIA_SINGLE_GUTTER_SIZE } from '../../media-single/constants';
|
|
@@ -75,7 +77,7 @@ export default function MediaSingle(_ref) {
|
|
|
75
77
|
var _children = _slicedToArray(children, 2),
|
|
76
78
|
media = _children[0],
|
|
77
79
|
caption = _children[1];
|
|
78
|
-
return
|
|
80
|
+
return jsx("div", {
|
|
79
81
|
ref: handleMediaSingleRef,
|
|
80
82
|
css: MediaSingleDimensionHelper({
|
|
81
83
|
width: width,
|
|
@@ -93,7 +95,7 @@ export default function MediaSingle(_ref) {
|
|
|
93
95
|
'is-loading': isLoading,
|
|
94
96
|
'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
|
|
95
97
|
})
|
|
96
|
-
},
|
|
98
|
+
}, jsx(MediaWrapper, {
|
|
97
99
|
hasFallbackContainer: hasFallbackContainer,
|
|
98
100
|
height: mediaWrapperHeight,
|
|
99
101
|
paddingBottom: paddingBottom
|
|
@@ -2,8 +2,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _excluded = ["children"];
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
5
|
+
/** @jsx jsx */
|
|
6
|
+
|
|
5
7
|
import React from 'react';
|
|
6
|
-
import { css } from '@emotion/react';
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
7
9
|
import { akEditorFullPageMaxWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
8
10
|
import { nonWrappedLayouts } from '../../utils';
|
|
9
11
|
import { calcBreakoutWidth, calcWideWidth } from '../../utils/breakout';
|
|
@@ -130,7 +132,7 @@ export var mediaWrapperStyle = function mediaWrapperStyle(props) {
|
|
|
130
132
|
export var MediaWrapper = function MediaWrapper(_ref3) {
|
|
131
133
|
var children = _ref3.children,
|
|
132
134
|
rest = _objectWithoutProperties(_ref3, _excluded);
|
|
133
|
-
return
|
|
135
|
+
return jsx("div", {
|
|
134
136
|
css: mediaWrapperStyle(rest)
|
|
135
137
|
}, children);
|
|
136
138
|
};
|
|
@@ -145,7 +147,7 @@ MediaWrapper.displayName = 'WrapperMediaSingle';
|
|
|
145
147
|
|
|
146
148
|
export var MediaBorderGapFiller = function MediaBorderGapFiller(_ref4) {
|
|
147
149
|
var borderColor = _ref4.borderColor;
|
|
148
|
-
return
|
|
150
|
+
return jsx("div", {
|
|
149
151
|
style: {
|
|
150
152
|
position: 'absolute',
|
|
151
153
|
inset: '0px',
|