@atlaskit/editor-common 76.24.3 → 76.24.5
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 +14 -0
- package/dist/cjs/card/LinkToolbarButtonGroup.js +5 -6
- package/dist/cjs/element-browser/ViewMore.js +3 -4
- package/dist/cjs/element-browser/components/CategoryList.js +4 -5
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +2 -3
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +20 -21
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +8 -9
- package/dist/cjs/element-browser/components/ElementList/NotFoundIllustration.js +15 -16
- package/dist/cjs/element-browser/components/ElementSearch.js +6 -7
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +21 -22
- package/dist/cjs/element-browser/hooks/use-container-width.js +2 -3
- package/dist/cjs/keymaps/index.js +1 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +21 -22
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +5 -6
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +9 -11
- package/dist/cjs/media-inline/inline-image-wrapper.js +1 -3
- package/dist/cjs/media-inline/media-inline-image-card.js +0 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +5 -8
- package/dist/cjs/ui/Caption/index.js +2 -3
- package/dist/cjs/ui/DropList/index.js +6 -6
- package/dist/cjs/ui/Expand/index.js +3 -5
- package/dist/cjs/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/cjs/ui/FloatingToolbar/SmallerEditIcon.js +2 -3
- package/dist/cjs/ui/MediaSingle/index.js +2 -5
- package/dist/cjs/ui/MediaSingle/styled.js +2 -3
- package/dist/cjs/ui/Messages/index.js +7 -8
- package/dist/cjs/ui/PanelTextInput/index.js +2 -3
- package/dist/cjs/ui/UnsupportedBlock/index.js +4 -5
- package/dist/cjs/ui/UnsupportedInline/index.js +4 -5
- package/dist/cjs/ui/WidthProvider/index.js +4 -4
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +5 -6
- package/dist/cjs/ui-color/ColorPalette/index.js +3 -6
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +9 -10
- package/dist/cjs/ui-menu/DropdownContainer/index.js +3 -3
- package/dist/cjs/ui-menu/DropdownMenu/index.js +18 -19
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +2 -3
- package/dist/cjs/ui-menu/ToolbarButton/index.js +3 -4
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +11 -1
- package/dist/es2019/card/LinkToolbarButtonGroup.js +6 -7
- package/dist/es2019/element-browser/ViewMore.js +4 -5
- package/dist/es2019/element-browser/components/CategoryList.js +4 -6
- package/dist/es2019/element-browser/components/ElementBrowserLoader.js +3 -4
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +21 -22
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +9 -10
- package/dist/es2019/element-browser/components/ElementList/NotFoundIllustration.js +16 -17
- package/dist/es2019/element-browser/components/ElementSearch.js +7 -8
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +22 -23
- package/dist/es2019/element-browser/hooks/use-container-width.js +3 -4
- package/dist/es2019/keymaps/index.js +2 -3
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +22 -24
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +6 -7
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +9 -10
- package/dist/es2019/media-inline/inline-image-wrapper.js +2 -4
- package/dist/es2019/media-inline/media-inline-image-card.js +0 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +5 -7
- package/dist/es2019/ui/Caption/index.js +3 -4
- package/dist/es2019/ui/DropList/index.js +6 -8
- package/dist/es2019/ui/Expand/index.js +3 -5
- package/dist/es2019/ui/FloatingToolbar/Separator.js +2 -3
- package/dist/es2019/ui/FloatingToolbar/SmallerEditIcon.js +3 -4
- package/dist/es2019/ui/MediaSingle/index.js +2 -4
- package/dist/es2019/ui/MediaSingle/styled.js +3 -5
- package/dist/es2019/ui/Messages/index.js +8 -10
- package/dist/es2019/ui/PanelTextInput/index.js +1 -4
- package/dist/es2019/ui/UnsupportedBlock/index.js +5 -6
- package/dist/es2019/ui/UnsupportedInline/index.js +5 -6
- package/dist/es2019/ui/WidthProvider/index.js +4 -5
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +4 -6
- package/dist/es2019/ui-color/ColorPalette/index.js +2 -4
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +10 -11
- package/dist/es2019/ui-menu/DropdownContainer/index.js +2 -3
- package/dist/es2019/ui-menu/DropdownMenu/index.js +19 -21
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -4
- package/dist/es2019/ui-menu/ToolbarButton/index.js +5 -5
- package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +8 -2
- package/dist/esm/card/LinkToolbarButtonGroup.js +6 -7
- package/dist/esm/element-browser/ViewMore.js +4 -5
- package/dist/esm/element-browser/components/CategoryList.js +5 -7
- package/dist/esm/element-browser/components/ElementBrowserLoader.js +3 -4
- package/dist/esm/element-browser/components/ElementList/ElementList.js +21 -22
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +9 -10
- package/dist/esm/element-browser/components/ElementList/NotFoundIllustration.js +16 -17
- package/dist/esm/element-browser/components/ElementSearch.js +7 -8
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +22 -23
- package/dist/esm/element-browser/hooks/use-container-width.js +3 -4
- package/dist/esm/keymaps/index.js +2 -3
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +22 -24
- package/dist/esm/link/LinkSearch/LinkSearchList.js +6 -7
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +9 -10
- package/dist/esm/media-inline/inline-image-wrapper.js +2 -4
- package/dist/esm/media-inline/media-inline-image-card.js +0 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +5 -7
- package/dist/esm/ui/Caption/index.js +3 -4
- package/dist/esm/ui/DropList/index.js +6 -8
- package/dist/esm/ui/Expand/index.js +3 -5
- package/dist/esm/ui/FloatingToolbar/Separator.js +2 -3
- package/dist/esm/ui/FloatingToolbar/SmallerEditIcon.js +3 -4
- package/dist/esm/ui/MediaSingle/index.js +2 -4
- package/dist/esm/ui/MediaSingle/styled.js +3 -5
- package/dist/esm/ui/Messages/index.js +8 -10
- package/dist/esm/ui/PanelTextInput/index.js +1 -4
- package/dist/esm/ui/UnsupportedBlock/index.js +5 -6
- package/dist/esm/ui/UnsupportedInline/index.js +5 -6
- package/dist/esm/ui/WidthProvider/index.js +4 -5
- package/dist/esm/ui-color/ColorPalette/Color/index.js +4 -6
- package/dist/esm/ui-color/ColorPalette/index.js +3 -5
- package/dist/esm/ui-menu/ColorPickerButton/index.js +10 -11
- package/dist/esm/ui-menu/DropdownContainer/index.js +2 -3
- package/dist/esm/ui-menu/DropdownMenu/index.js +19 -21
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -4
- package/dist/esm/ui-menu/ToolbarButton/index.js +5 -5
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +12 -2
- package/dist/types/extensions/types/field-definitions.d.ts +2 -2
- package/dist/types-ts4.5/extensions/types/field-definitions.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React, { memo } from 'react';
|
|
5
|
-
import { css
|
|
4
|
+
import { css } from '@emotion/react';
|
|
6
5
|
import { injectIntl } from 'react-intl-next';
|
|
7
6
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
8
7
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
@@ -28,27 +27,27 @@ function ElementSearch(_ref) {
|
|
|
28
27
|
};
|
|
29
28
|
var onFocus = function onFocus(e) {};
|
|
30
29
|
var onBlur = function onBlur(e) {};
|
|
31
|
-
return
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
32
31
|
css: [wrapper, mode === Modes.inline && wrapperInline]
|
|
33
|
-
},
|
|
32
|
+
}, /*#__PURE__*/React.createElement(Textfield, {
|
|
34
33
|
ref: ref,
|
|
35
34
|
onChange: onChange,
|
|
36
35
|
onClick: onClick,
|
|
37
36
|
onFocus: onFocus,
|
|
38
37
|
onKeyDown: onKeyDown,
|
|
39
38
|
onBlur: onBlur,
|
|
40
|
-
elemBeforeInput:
|
|
39
|
+
elemBeforeInput: /*#__PURE__*/React.createElement("div", {
|
|
41
40
|
css: elementBeforeInput,
|
|
42
41
|
"data-testid": "element_search__element_before_input"
|
|
43
|
-
},
|
|
42
|
+
}, /*#__PURE__*/React.createElement(SearchIcon, {
|
|
44
43
|
size: "medium",
|
|
45
44
|
label: "Advanced search",
|
|
46
45
|
primaryColor: "inherit"
|
|
47
46
|
})),
|
|
48
|
-
elemAfterInput:
|
|
47
|
+
elemAfterInput: /*#__PURE__*/React.createElement("div", {
|
|
49
48
|
css: elementAfterInput,
|
|
50
49
|
"data-testid": "element_search__element_after_input"
|
|
51
|
-
},
|
|
50
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
52
51
|
css: styledShortcut
|
|
53
52
|
}, "\u23CE ", formatMessage(elementAfterInputMessage))),
|
|
54
53
|
placeholder: formatMessage(placeHolderMessage),
|
|
@@ -2,9 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15;
|
|
5
|
-
/** @jsx jsx */
|
|
6
5
|
import React, { memo, useCallback, useEffect, useState } from 'react';
|
|
7
|
-
import { css
|
|
6
|
+
import { css } from '@emotion/react';
|
|
8
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
9
8
|
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
10
9
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../analytics';
|
|
@@ -98,10 +97,10 @@ function StatelessElementBrowser(props) {
|
|
|
98
97
|
onSelectItem(selectedItem);
|
|
99
98
|
}
|
|
100
99
|
}, [onSelectItem, selectedItem]);
|
|
101
|
-
return
|
|
100
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
102
101
|
css: wrapper,
|
|
103
102
|
"data-testid": "element-browser"
|
|
104
|
-
},
|
|
103
|
+
}, /*#__PURE__*/React.createElement(ContainerWidthMonitor, null), containerWidth < DEVICE_BREAKPOINT_NUMBERS.medium ? /*#__PURE__*/React.createElement(MobileBrowser, _extends({}, props, {
|
|
105
104
|
selectedItemIndex: selectedItemIndex,
|
|
106
105
|
focusedItemIndex: focusedItemIndex,
|
|
107
106
|
setFocusedItemIndex: setFocusedItemIndex,
|
|
@@ -112,7 +111,7 @@ function StatelessElementBrowser(props) {
|
|
|
112
111
|
onKeyDown: onKeyDown,
|
|
113
112
|
viewMoreItem: viewMoreItem,
|
|
114
113
|
focusOnViewMore: focusOnViewMore
|
|
115
|
-
})) :
|
|
114
|
+
})) : /*#__PURE__*/React.createElement(DesktopBrowser, _extends({}, props, {
|
|
116
115
|
selectedItemIndex: selectedItemIndex,
|
|
117
116
|
focusedItemIndex: focusedItemIndex,
|
|
118
117
|
setFocusedItemIndex: setFocusedItemIndex,
|
|
@@ -146,29 +145,29 @@ function MobileBrowser(_ref) {
|
|
|
146
145
|
createAnalyticsEvent = _ref.createAnalyticsEvent,
|
|
147
146
|
emptyStateHandler = _ref.emptyStateHandler,
|
|
148
147
|
viewMoreItem = _ref.viewMoreItem;
|
|
149
|
-
return
|
|
148
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
150
149
|
css: mobileElementBrowserContainer,
|
|
151
150
|
onKeyDown: onKeyDown,
|
|
152
151
|
"data-testid": "mobile__element-browser"
|
|
153
|
-
},
|
|
152
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
154
153
|
css: showCategories ? [mobileSideBar, mobileSideBarShowCategories] : mobileSideBar
|
|
155
|
-
}, showSearch &&
|
|
154
|
+
}, showSearch && /*#__PURE__*/React.createElement(ElementSearch, {
|
|
156
155
|
onSearch: onSearch,
|
|
157
156
|
onKeyDown: onKeyPress,
|
|
158
157
|
mode: mode,
|
|
159
158
|
focus: focusOnSearch,
|
|
160
159
|
onClick: setFocusOnSearch,
|
|
161
160
|
searchTerm: searchTerm
|
|
162
|
-
}), showCategories &&
|
|
161
|
+
}), showCategories && /*#__PURE__*/React.createElement("nav", {
|
|
163
162
|
css: mobileCategoryListWrapper,
|
|
164
163
|
tabIndex: -1
|
|
165
|
-
},
|
|
164
|
+
}, /*#__PURE__*/React.createElement(CategoryList, {
|
|
166
165
|
categories: categories,
|
|
167
166
|
onSelectCategory: onSelectCategory,
|
|
168
167
|
selectedCategory: selectedCategory
|
|
169
|
-
}))),
|
|
168
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
170
169
|
css: mobileMainContent
|
|
171
|
-
},
|
|
170
|
+
}, /*#__PURE__*/React.createElement(ElementList, {
|
|
172
171
|
items: items,
|
|
173
172
|
mode: mode,
|
|
174
173
|
onInsertItem: onInsertItem,
|
|
@@ -180,7 +179,7 @@ function MobileBrowser(_ref) {
|
|
|
180
179
|
emptyStateHandler: emptyStateHandler,
|
|
181
180
|
selectedCategory: selectedCategory,
|
|
182
181
|
searchTerm: searchTerm
|
|
183
|
-
})), viewMoreItem &&
|
|
182
|
+
})), viewMoreItem && /*#__PURE__*/React.createElement(ViewMore, {
|
|
184
183
|
item: viewMoreItem,
|
|
185
184
|
focus: focusOnViewMore
|
|
186
185
|
}));
|
|
@@ -206,39 +205,39 @@ function DesktopBrowser(_ref2) {
|
|
|
206
205
|
searchTerm = _ref2.searchTerm,
|
|
207
206
|
createAnalyticsEvent = _ref2.createAnalyticsEvent,
|
|
208
207
|
emptyStateHandler = _ref2.emptyStateHandler;
|
|
209
|
-
return
|
|
208
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
210
209
|
css: elementBrowserContainer,
|
|
211
210
|
"data-testid": "desktop__element-browser"
|
|
212
|
-
}, showCategories &&
|
|
211
|
+
}, showCategories && /*#__PURE__*/React.createElement("div", {
|
|
213
212
|
css: showCategories ? sideBarShowCategories : sideBar
|
|
214
|
-
},
|
|
213
|
+
}, /*#__PURE__*/React.createElement("h2", {
|
|
215
214
|
css: sidebarHeading,
|
|
216
215
|
"data-testid": "sidebar-heading"
|
|
217
|
-
},
|
|
216
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
218
217
|
id: "fabric.editor.elementbrowser.sidebar.heading",
|
|
219
218
|
defaultMessage: "Browse",
|
|
220
219
|
description: "Sidebar heading"
|
|
221
|
-
})),
|
|
220
|
+
})), /*#__PURE__*/React.createElement("nav", {
|
|
222
221
|
css: categoryListWrapper
|
|
223
|
-
},
|
|
222
|
+
}, /*#__PURE__*/React.createElement(CategoryList, {
|
|
224
223
|
categories: categories,
|
|
225
224
|
onSelectCategory: onSelectCategory,
|
|
226
225
|
selectedCategory: selectedCategory,
|
|
227
226
|
createAnalyticsEvent: createAnalyticsEvent
|
|
228
|
-
}))),
|
|
227
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
229
228
|
css: mainContent,
|
|
230
229
|
onKeyDown: onKeyDown,
|
|
231
230
|
"data-testid": "main-content"
|
|
232
|
-
}, showSearch &&
|
|
231
|
+
}, showSearch && /*#__PURE__*/React.createElement("div", {
|
|
233
232
|
css: searchContainer
|
|
234
|
-
},
|
|
233
|
+
}, /*#__PURE__*/React.createElement(ElementSearch, {
|
|
235
234
|
onSearch: onSearch,
|
|
236
235
|
onKeyDown: onKeyPress,
|
|
237
236
|
mode: mode,
|
|
238
237
|
focus: focusOnSearch,
|
|
239
238
|
onClick: setFocusOnSearch,
|
|
240
239
|
searchTerm: searchTerm
|
|
241
|
-
})),
|
|
240
|
+
})), /*#__PURE__*/React.createElement(ElementList, {
|
|
242
241
|
items: items,
|
|
243
242
|
mode: mode,
|
|
244
243
|
onInsertItem: onInsertItem,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject;
|
|
4
|
-
/** @jsx jsx */
|
|
5
4
|
import React, { memo, useEffect, useRef, useState } from 'react';
|
|
6
|
-
import { css
|
|
5
|
+
import { css } from '@emotion/react';
|
|
7
6
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -46,11 +45,11 @@ export default function useContainerWidth() {
|
|
|
46
45
|
}
|
|
47
46
|
}, [ref]);
|
|
48
47
|
var ContainerWidthMonitor = /*#__PURE__*/memo(function () {
|
|
49
|
-
return
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
50
49
|
css: widthObserverWrapper,
|
|
51
50
|
ref: ref,
|
|
52
51
|
tabIndex: -1
|
|
53
|
-
},
|
|
52
|
+
}, /*#__PURE__*/React.createElement(WidthObserver, {
|
|
54
53
|
setWidth: setContainerWidth
|
|
55
54
|
}));
|
|
56
55
|
});
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject;
|
|
4
|
-
/** @jsx jsx */
|
|
5
4
|
import React, { Fragment } from 'react';
|
|
6
|
-
import { css
|
|
5
|
+
import { css } from '@emotion/react';
|
|
7
6
|
import { base, keyName } from 'w3c-keyname';
|
|
8
7
|
import { N400 } from '@atlaskit/theme/colors';
|
|
9
8
|
import { editorCommandToPMCommand } from '../preset/editor-commands';
|
|
@@ -113,7 +112,7 @@ export var ToolTipContent = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
113
112
|
shortcutOverride = _ref.shortcutOverride,
|
|
114
113
|
keymap = _ref.keymap;
|
|
115
114
|
var shortcut = shortcutOverride || keymap && formatShortcut(keymap);
|
|
116
|
-
return shortcut || description ?
|
|
115
|
+
return shortcut || description ? /*#__PURE__*/React.createElement(Fragment, null, description, shortcut && description && "\xA0", shortcut && /*#__PURE__*/React.createElement("span", {
|
|
117
116
|
css: tooltipShortcutStyle
|
|
118
117
|
}, shortcut)) : null;
|
|
119
118
|
});
|
|
@@ -13,10 +13,8 @@ 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
|
-
|
|
18
16
|
import React, { PureComponent } from 'react';
|
|
19
|
-
import { css
|
|
17
|
+
import { css } from '@emotion/react';
|
|
20
18
|
import debounce from 'lodash/debounce';
|
|
21
19
|
import { flushSync } from 'react-dom';
|
|
22
20
|
import { defineMessages, injectIntl } from 'react-intl-next';
|
|
@@ -84,7 +82,7 @@ export var messages = defineMessages({
|
|
|
84
82
|
description: 'Visible label for text input in hyperlink floating control'
|
|
85
83
|
}
|
|
86
84
|
});
|
|
87
|
-
var defaultIcon =
|
|
85
|
+
var defaultIcon = /*#__PURE__*/React.createElement(Page16Icon, {
|
|
88
86
|
label: 'page'
|
|
89
87
|
});
|
|
90
88
|
var mapActivityProviderResultToLinkSearchItemData = function mapActivityProviderResultToLinkSearchItemData(_ref) {
|
|
@@ -815,27 +813,27 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
815
813
|
// as the Aria design pattern for combobox does not work in this case
|
|
816
814
|
// for details: https://a11y-internal.atlassian.net/browse/AK-740
|
|
817
815
|
var screenReaderText = browser.safari && this.getScreenReaderText();
|
|
818
|
-
return
|
|
816
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
819
817
|
"aria-label": "Hyperlink Edit",
|
|
820
818
|
className: "recent-list"
|
|
821
|
-
},
|
|
819
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
822
820
|
css: [container, !!activityProvider && containerWithProvider, containerPadding],
|
|
823
821
|
ref: this.wrapperRef
|
|
824
|
-
},
|
|
822
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
825
823
|
htmlFor: linkSearchInputId,
|
|
826
824
|
css: inputLabel
|
|
827
|
-
}, formatMessage(messages.linkVisibleLabel)),
|
|
825
|
+
}, formatMessage(messages.linkVisibleLabel)), /*#__PURE__*/React.createElement("div", {
|
|
828
826
|
css: [inputWrapper, inputWrapperPosition]
|
|
829
|
-
}, screenReaderText &&
|
|
827
|
+
}, screenReaderText && /*#__PURE__*/React.createElement(Announcer, {
|
|
830
828
|
ariaLive: "assertive",
|
|
831
829
|
text: screenReaderText,
|
|
832
830
|
ariaRelevant: "additions",
|
|
833
831
|
delay: 250
|
|
834
|
-
}),
|
|
832
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
835
833
|
css: visuallyHiddenStyles,
|
|
836
834
|
"aria-hidden": "true",
|
|
837
835
|
id: screenReaderDescriptionId
|
|
838
|
-
}, formatMessage(messages.searchLinkAriaDescription)),
|
|
836
|
+
}, formatMessage(messages.searchLinkAriaDescription)), /*#__PURE__*/React.createElement(PanelTextInput, {
|
|
839
837
|
role: "combobox",
|
|
840
838
|
ariaExpanded: true,
|
|
841
839
|
ariaActiveDescendant: ariaActiveDescendant,
|
|
@@ -855,23 +853,23 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
855
853
|
defaultValue: displayUrl,
|
|
856
854
|
onKeyDown: this.handleKeyDown,
|
|
857
855
|
inputId: linkSearchInputId
|
|
858
|
-
}), displayUrl &&
|
|
856
|
+
}), displayUrl && /*#__PURE__*/React.createElement("div", {
|
|
859
857
|
css: clearTextWrapper
|
|
860
|
-
},
|
|
858
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
861
859
|
content: formatClearLinkText
|
|
862
|
-
},
|
|
860
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
863
861
|
type: "button",
|
|
864
862
|
css: clearText,
|
|
865
863
|
onClick: this.handleClearText,
|
|
866
864
|
tabIndex: 0
|
|
867
|
-
},
|
|
865
|
+
}, /*#__PURE__*/React.createElement(CrossCircleIcon, {
|
|
868
866
|
label: formatClearLinkText
|
|
869
|
-
}))))),
|
|
867
|
+
}))))), /*#__PURE__*/React.createElement("label", {
|
|
870
868
|
htmlFor: displayTextInputId,
|
|
871
869
|
css: [inputLabel, textLabelMargin]
|
|
872
|
-
}, formatMessage(messages.textVisibleLabel)),
|
|
870
|
+
}, formatMessage(messages.textVisibleLabel)), /*#__PURE__*/React.createElement("div", {
|
|
873
871
|
css: [inputWrapper, inputWrapperPosition]
|
|
874
|
-
},
|
|
872
|
+
}, /*#__PURE__*/React.createElement(PanelTextInput, {
|
|
875
873
|
ref: function ref(ele) {
|
|
876
874
|
return _this3.displayTextInputContainer = ele;
|
|
877
875
|
},
|
|
@@ -882,25 +880,25 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
882
880
|
onSubmit: this.handleSubmit,
|
|
883
881
|
onKeyDown: this.handleKeyDown,
|
|
884
882
|
inputId: displayTextInputId
|
|
885
|
-
}), displayText &&
|
|
883
|
+
}), displayText && /*#__PURE__*/React.createElement("div", {
|
|
886
884
|
css: clearTextWrapper
|
|
887
|
-
},
|
|
885
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
888
886
|
content: formatMessage(messages.clearText)
|
|
889
|
-
},
|
|
887
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
890
888
|
type: "button",
|
|
891
889
|
css: clearText,
|
|
892
890
|
onClick: this.handleClearDisplayText,
|
|
893
891
|
onKeyDown: this.handleClearTextKeyDown
|
|
894
|
-
},
|
|
892
|
+
}, /*#__PURE__*/React.createElement(CrossCircleIcon, {
|
|
895
893
|
label: formatMessage(messages.clearText)
|
|
896
|
-
}))))),
|
|
894
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
897
895
|
css: visuallyHiddenStyles,
|
|
898
896
|
"aria-live": "polite",
|
|
899
897
|
"aria-atomic": "true",
|
|
900
898
|
id: "fabric.editor.hyperlink.suggested.results"
|
|
901
899
|
}, displayUrl && formatMessage(messages.searchLinkResults, {
|
|
902
900
|
count: items.length
|
|
903
|
-
})),
|
|
901
|
+
})), /*#__PURE__*/React.createElement(LinkSearchList, {
|
|
904
902
|
ariaControls: "fabric.editor.hyperlink.suggested.results",
|
|
905
903
|
id: linkSearchListId,
|
|
906
904
|
role: "listbox",
|
|
@@ -7,9 +7,8 @@ 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 */
|
|
11
10
|
import { PureComponent } from 'react';
|
|
12
|
-
import { css
|
|
11
|
+
import { css } from '@emotion/react';
|
|
13
12
|
import Spinner from '@atlaskit/spinner';
|
|
14
13
|
import { N30 } from '@atlaskit/theme/colors';
|
|
15
14
|
import LinkSearchListItem from './LinkSearchListItem';
|
|
@@ -40,13 +39,13 @@ var LinkSearchList = /*#__PURE__*/function (_PureComponent) {
|
|
|
40
39
|
var itemsContent;
|
|
41
40
|
var loadingContent;
|
|
42
41
|
if (items && items.length > 0) {
|
|
43
|
-
itemsContent =
|
|
42
|
+
itemsContent = /*#__PURE__*/React.createElement("ul", {
|
|
44
43
|
css: linkSearchList,
|
|
45
44
|
id: id,
|
|
46
45
|
role: role,
|
|
47
46
|
"aria-controls": ariaControls
|
|
48
47
|
}, items.map(function (item, index) {
|
|
49
|
-
return
|
|
48
|
+
return /*#__PURE__*/React.createElement(LinkSearchListItem, {
|
|
50
49
|
id: "link-search-list-item-".concat(index),
|
|
51
50
|
role: role && 'option',
|
|
52
51
|
item: item,
|
|
@@ -60,14 +59,14 @@ var LinkSearchList = /*#__PURE__*/function (_PureComponent) {
|
|
|
60
59
|
}));
|
|
61
60
|
}
|
|
62
61
|
if (isLoading) {
|
|
63
|
-
loadingContent =
|
|
62
|
+
loadingContent = /*#__PURE__*/React.createElement("div", {
|
|
64
63
|
"data-testid": "".concat(id, "-loading"),
|
|
65
64
|
css: spinnerContainer
|
|
66
|
-
},
|
|
65
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
67
66
|
size: "medium"
|
|
68
67
|
}));
|
|
69
68
|
}
|
|
70
|
-
return
|
|
69
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
71
70
|
css: listContainer
|
|
72
71
|
}, itemsContent, loadingContent);
|
|
73
72
|
}
|
|
@@ -9,9 +9,8 @@ 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 */
|
|
13
12
|
import React, { Fragment } from 'react';
|
|
14
|
-
import { css
|
|
13
|
+
import { css } from '@emotion/react';
|
|
15
14
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
16
15
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
17
16
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -72,14 +71,14 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
72
71
|
iconUrl = _this$props5$item.iconUrl,
|
|
73
72
|
intl = _this$props5.intl;
|
|
74
73
|
if (icon) {
|
|
75
|
-
return
|
|
74
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
76
75
|
css: iconStyle
|
|
77
76
|
}, icon);
|
|
78
77
|
}
|
|
79
78
|
if (iconUrl) {
|
|
80
|
-
return
|
|
79
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
81
80
|
css: iconStyle
|
|
82
|
-
},
|
|
81
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
83
82
|
src: iconUrl,
|
|
84
83
|
alt: getCorrectAltByIconUrl(iconUrl, intl)
|
|
85
84
|
}));
|
|
@@ -93,7 +92,7 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
93
92
|
item = _this$props6.item,
|
|
94
93
|
intl = _this$props6.intl;
|
|
95
94
|
var date = transformTimeStamp(intl, item.lastViewedDate, item.lastUpdatedDate);
|
|
96
|
-
return date &&
|
|
95
|
+
return date && /*#__PURE__*/React.createElement(Fragment, null, "\xA0 \u2022", /*#__PURE__*/React.createElement("span", {
|
|
97
96
|
className: "link-search-timestamp",
|
|
98
97
|
"data-test-id": "link-search-timestamp"
|
|
99
98
|
}, "\xA0 ", date.pageAction, " ", date.dateString, " ", date.timeSince || ''));
|
|
@@ -106,7 +105,7 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
106
105
|
selected = _this$props7.selected,
|
|
107
106
|
id = _this$props7.id,
|
|
108
107
|
role = _this$props7.role;
|
|
109
|
-
return
|
|
108
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
110
109
|
css: [container, selected && containerSelected],
|
|
111
110
|
role: role,
|
|
112
111
|
id: id,
|
|
@@ -116,11 +115,11 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
116
115
|
onMouseEnter: this.handleMouseEnter,
|
|
117
116
|
onMouseLeave: this.handleMouseLeave,
|
|
118
117
|
onClick: this.handleSelect
|
|
119
|
-
}, this.renderIcon(),
|
|
118
|
+
}, this.renderIcon(), /*#__PURE__*/React.createElement("span", {
|
|
120
119
|
css: nameWrapper
|
|
121
|
-
},
|
|
120
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
122
121
|
css: nameStyle
|
|
123
|
-
}, item.name),
|
|
122
|
+
}, item.name), /*#__PURE__*/React.createElement("div", {
|
|
124
123
|
"data-testid": "link-search-list-item-container",
|
|
125
124
|
css: containerName
|
|
126
125
|
}, item.container, this.renderTimeStamp())));
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { css, jsx } from '@emotion/react';
|
|
1
|
+
import { css } from '@emotion/react';
|
|
4
2
|
var wrapperStyle = css({
|
|
5
3
|
display: 'inline-block'
|
|
6
4
|
});
|
|
7
5
|
export var InlineImageWrapper = function InlineImageWrapper(_ref) {
|
|
8
6
|
var children = _ref.children;
|
|
9
|
-
return
|
|
7
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
8
|
css: wrapperStyle
|
|
11
9
|
}, children);
|
|
12
10
|
};
|
|
@@ -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.24.
|
|
9
|
+
var packageVersion = "76.24.5";
|
|
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,7 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
5
3
|
import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
|
|
6
4
|
import { ErrorBoundary } from '../ui/ErrorBoundary';
|
|
7
5
|
import { analyticsEventKey, getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered, ZERO_WIDTH_SPACE } from '../utils';
|
|
@@ -157,21 +155,21 @@ function getPortalChildren(_ref2) {
|
|
|
157
155
|
// refactor. A test suite to catch any instances of this is ideal however
|
|
158
156
|
// the refactor required is currently out of scope for https://product-fabric.atlassian.net/browse/ED-14176
|
|
159
157
|
|
|
160
|
-
return
|
|
158
|
+
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
161
159
|
component: ACTION_SUBJECT.REACT_NODE_VIEW,
|
|
162
160
|
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,
|
|
163
161
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent
|
|
164
|
-
},
|
|
162
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
165
163
|
className: "zeroWidthSpaceContainer"
|
|
166
|
-
},
|
|
164
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
167
165
|
className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
|
|
168
|
-
}), ZERO_WIDTH_SPACE),
|
|
166
|
+
}), ZERO_WIDTH_SPACE), /*#__PURE__*/React.createElement(Component, _extends({
|
|
169
167
|
view: nodeViewParams.view
|
|
170
168
|
// TODO: ED-13910 - Remove the boolean to fix the prosemirror view type
|
|
171
169
|
,
|
|
172
170
|
getPos: nodeViewParams.getPos,
|
|
173
171
|
node: currentNode
|
|
174
|
-
}, extraComponentProps)),
|
|
172
|
+
}, extraComponentProps)), /*#__PURE__*/React.createElement("span", {
|
|
175
173
|
className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
|
|
176
174
|
}));
|
|
177
175
|
};
|
|
@@ -8,9 +8,8 @@ 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 */
|
|
12
11
|
import React from 'react';
|
|
13
|
-
import { css
|
|
12
|
+
import { css } from '@emotion/react';
|
|
14
13
|
import { injectIntl } from 'react-intl-next';
|
|
15
14
|
import { N200, N400 } from '@atlaskit/theme/colors';
|
|
16
15
|
import { messages } from './messages';
|
|
@@ -33,12 +32,12 @@ export var CaptionComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
33
32
|
dataAttributes = _this$props.dataAttributes,
|
|
34
33
|
formatMessage = _this$props.intl.formatMessage;
|
|
35
34
|
var showPlaceholder = !selected && !hasContent;
|
|
36
|
-
return
|
|
35
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
37
36
|
"data-media-caption": true,
|
|
38
37
|
"data-testid": "media-caption"
|
|
39
38
|
}, dataAttributes, {
|
|
40
39
|
css: captionWrapperStyle
|
|
41
|
-
}), showPlaceholder ?
|
|
40
|
+
}), showPlaceholder ? /*#__PURE__*/React.createElement("p", {
|
|
42
41
|
css: placeholderStyle
|
|
43
42
|
}, formatMessage(messages.placeholder)) : null, children);
|
|
44
43
|
}
|
|
@@ -9,17 +9,15 @@ 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
|
-
|
|
14
12
|
import { Component } from 'react';
|
|
15
|
-
import { css
|
|
13
|
+
import { css } from '@emotion/react';
|
|
16
14
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
17
15
|
import { DN50, DN600, N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
16
|
import { themed } from '@atlaskit/theme/components';
|
|
19
17
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
20
18
|
import Layer from '../Layer';
|
|
21
19
|
var packageName = "@atlaskit/editor-common";
|
|
22
|
-
var packageVersion = "76.24.
|
|
20
|
+
var packageVersion = "76.24.5";
|
|
23
21
|
var halfFocusRing = 1;
|
|
24
22
|
var dropOffset = '0, 8';
|
|
25
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -127,7 +125,7 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
127
125
|
onPositioned = _this$props.onPositioned,
|
|
128
126
|
testId = _this$props.testId,
|
|
129
127
|
id = _this$props.id;
|
|
130
|
-
var layerContent = isOpen ?
|
|
128
|
+
var layerContent = isOpen ? /*#__PURE__*/React.createElement("div", {
|
|
131
129
|
css: function css(theme) {
|
|
132
130
|
return _this2.menuWrapper({
|
|
133
131
|
theme: theme
|
|
@@ -139,14 +137,14 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
139
137
|
id: id,
|
|
140
138
|
role: "presentation"
|
|
141
139
|
}, children) : null;
|
|
142
|
-
return
|
|
140
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
143
141
|
css: this.wrapperStyles
|
|
144
|
-
},
|
|
142
|
+
}, /*#__PURE__*/React.createElement(Layer, {
|
|
145
143
|
content: layerContent,
|
|
146
144
|
offset: dropOffset,
|
|
147
145
|
position: position,
|
|
148
146
|
onPositioned: onPositioned
|
|
149
|
-
},
|
|
147
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
150
148
|
css: this.triggerStyles,
|
|
151
149
|
ref: this.handleTriggerRef
|
|
152
150
|
}, trigger)));
|
|
@@ -3,10 +3,8 @@ 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
|
-
|
|
8
6
|
import React, { forwardRef } from 'react';
|
|
9
|
-
import { css
|
|
7
|
+
import { css } from '@emotion/react';
|
|
10
8
|
import { defineMessages } from 'react-intl-next';
|
|
11
9
|
import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
12
10
|
import { B300, DN50, DN600, N200, N200A, N300A, N30A, N40A, N50A, N90 } from '@atlaskit/theme/colors';
|
|
@@ -50,7 +48,7 @@ var EXPAND_EXPANDED_BORDER_COLOR = themed({
|
|
|
50
48
|
export var ExpandIconWrapper = function ExpandIconWrapper(_ref) {
|
|
51
49
|
var children = _ref.children,
|
|
52
50
|
expanded = _ref.expanded;
|
|
53
|
-
return
|
|
51
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
54
52
|
css: function css(props) {
|
|
55
53
|
return expanded ? [expandIconWrapperStyle(props), expandIconWrapperExpandedStyle] : expandIconWrapperStyle(props);
|
|
56
54
|
}
|
|
@@ -67,7 +65,7 @@ export var expandLayoutWrapperStyle = css(_templateObject3 || (_templateObject3
|
|
|
67
65
|
export var ExpandLayoutWrapperWithRef = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
68
66
|
var children = props.children,
|
|
69
67
|
rest = _objectWithoutProperties(props, _excluded);
|
|
70
|
-
return
|
|
68
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
71
69
|
css: expandLayoutWrapperStyle
|
|
72
70
|
}, rest, {
|
|
73
71
|
ref: ref
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
|
|
4
|
-
import { css, jsx } from '@emotion/react';
|
|
3
|
+
import { css } from '@emotion/react';
|
|
5
4
|
import { N30 } from '@atlaskit/theme/colors';
|
|
6
5
|
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)");
|
|
7
6
|
export default (function () {
|
|
8
|
-
return
|
|
7
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9
8
|
css: separator,
|
|
10
9
|
className: "separator"
|
|
11
10
|
});
|