@atlaskit/editor-common 78.11.4 → 78.11.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/.eslintrc.js +8 -0
- package/CHANGELOG.md +8 -0
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/__tests_external__/page-objects/Editor.js +1 -1
- package/dist/cjs/__tests_external__/page-objects/EditorSmartLink.js +1 -1
- package/dist/cjs/__tests_external__/page-objects/Renderer.js +1 -1
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/analytics/types/table-events.js +1 -0
- package/dist/cjs/annotation/index.js +1 -1
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +2 -2
- package/dist/cjs/card/index.js +2 -2
- package/dist/cjs/clipboard/index.js +2 -2
- package/dist/cjs/collab/index.js +6 -3
- package/dist/cjs/element-browser/ElementBrowser.js +3 -3
- package/dist/cjs/element-browser/components/CategoryList.js +2 -2
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +2 -2
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +92 -15
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +6 -5
- package/dist/cjs/element-browser/components/ElementSearch.js +5 -6
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +2 -2
- package/dist/cjs/element-browser/hooks/use-container-width.js +2 -2
- package/dist/cjs/extensibility/Extension/Extension/index.js +2 -2
- package/dist/cjs/extensibility/Extension/Extension/styles.js +3 -3
- package/dist/cjs/extensibility/Extension/Lozenge.js +1 -1
- package/dist/cjs/extensibility/Extension/styles.js +1 -1
- package/dist/cjs/extensibility/Extension.js +3 -3
- package/dist/cjs/extensibility/ExtensionComponent.js +3 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +2 -2
- package/dist/cjs/extensibility/extensionNodeView.js +1 -1
- package/dist/cjs/extensibility/index.js +2 -2
- package/dist/cjs/icons/index.js +2 -2
- package/dist/cjs/keymaps/index.js +2 -2
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +2 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -4
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +15 -7
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -4
- package/dist/cjs/link/LinkSearch/ToolbarComponents.js +17 -6
- package/dist/cjs/link/LinkSearch/index.js +1 -2
- package/dist/cjs/link/LinkSearch/withActivityProvider.js +1 -1
- package/dist/cjs/link/index.js +2 -2
- package/dist/cjs/monitoring/error.js +3 -3
- package/dist/cjs/preset/editor-commands.js +1 -1
- package/dist/cjs/provider-factory/with-providers.js +1 -1
- package/dist/cjs/quick-insert/assets/index.js +2 -2
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +1 -0
- package/dist/cjs/resizer/Resizer.js +8 -11
- package/dist/cjs/safe-plugin/index.js +1 -1
- package/dist/cjs/selection/gap-cursor/selection.js +1 -1
- package/dist/cjs/selection/gap-cursor/styles.js +1 -1
- package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +1 -1
- package/dist/cjs/styles/shared/embedCard.js +19 -5
- package/dist/cjs/styles/shared/grid.js +28 -4
- package/dist/cjs/styles/shared/indentation.js +1 -0
- package/dist/cjs/styles/shared/panel.js +1 -1
- package/dist/cjs/styles/shared/resizer.js +3 -3
- package/dist/cjs/styles/shared/shadow.js +32 -3
- package/dist/cjs/ui/Announcer/announcer.js +4 -2
- package/dist/cjs/ui/BaseTheme/index.js +2 -2
- package/dist/cjs/ui/Caption/index.js +1 -1
- package/dist/cjs/ui/ContextPanel/context.js +1 -1
- package/dist/cjs/ui/DropList/index.js +2 -2
- package/dist/cjs/ui/Emoji/index.js +3 -3
- package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
- package/dist/cjs/ui/Expand/index.js +3 -3
- package/dist/cjs/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/cjs/ui/IntlProviderIfMissingWrapper/index.js +2 -2
- package/dist/cjs/ui/Layer/index.js +3 -4
- package/dist/cjs/ui/Mention/index.js +3 -3
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +2 -2
- package/dist/cjs/ui/Mention/mention-with-providers.js +3 -3
- package/dist/cjs/ui/MultiBodiedExtension/index.js +1 -2
- package/dist/cjs/ui/OverflowShadow/index.js +1 -1
- package/dist/cjs/ui/PanelTextInput/index.js +1 -1
- package/dist/cjs/ui/Popup/index.js +1 -1
- package/dist/cjs/ui/PortalProvider/index.js +1 -1
- package/dist/cjs/ui/ResizerLegacy/index.js +1 -1
- package/dist/cjs/ui/UnsupportedBlock/index.js +3 -3
- package/dist/cjs/ui/UnsupportedInline/index.js +18 -5
- package/dist/cjs/ui/WidthProvider/index.js +2 -2
- package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +1 -1
- package/dist/cjs/ui/index.js +2 -2
- package/dist/cjs/ui/with-outer-listeners.js +3 -3
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +3 -3
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +21 -5
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +2 -2
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +2 -2
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +35 -7
- package/dist/cjs/ui-menu/Dropdown/index.js +3 -3
- package/dist/cjs/ui-menu/DropdownContainer/index.js +2 -2
- package/dist/cjs/ui-menu/DropdownMenu/index.js +3 -4
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +2 -2
- package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -2
- package/dist/cjs/ui-menu/index.js +2 -2
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +3 -3
- package/dist/cjs/utils/imageLoader.js +3 -3
- package/dist/cjs/with-plugin-state/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/analytics/types/table-events.js +1 -0
- package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +1 -0
- package/dist/es2019/collab/index.js +6 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +83 -94
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +6 -5
- package/dist/es2019/element-browser/components/ElementSearch.js +3 -4
- package/dist/es2019/extensibility/Extension/Extension/styles.js +4 -4
- package/dist/es2019/extensibility/Extension/styles.js +1 -1
- package/dist/es2019/extensibility/ExtensionComponent.js +0 -1
- package/dist/es2019/extensions/types/field-definitions.js +1 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +14 -14
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +2 -1
- package/dist/es2019/link/LinkSearch/ToolbarComponents.js +17 -18
- package/dist/es2019/link/LinkSearch/index.js +0 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -0
- package/dist/es2019/resizer/Resizer.js +2 -3
- package/dist/es2019/selection/gap-cursor/styles.js +2 -2
- package/dist/es2019/styles/shared/embedCard.js +17 -21
- package/dist/es2019/styles/shared/grid.js +27 -31
- package/dist/es2019/styles/shared/indentation.js +2 -0
- package/dist/es2019/styles/shared/panel.js +1 -1
- package/dist/es2019/styles/shared/resizer.js +6 -3
- package/dist/es2019/styles/shared/shadow.js +36 -65
- package/dist/es2019/ui/Announcer/announcer.js +2 -0
- package/dist/es2019/ui/ContextPanel/context.js +1 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/index.js +3 -4
- package/dist/es2019/ui/Layer/index.js +0 -1
- package/dist/es2019/ui/MultiBodiedExtension/index.js +1 -3
- package/dist/es2019/ui/UnsupportedBlock/index.js +2 -2
- package/dist/es2019/ui/UnsupportedInline/index.js +15 -15
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +20 -24
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +34 -35
- package/dist/es2019/ui-menu/DropdownMenu/index.js +0 -1
- package/dist/es2019/utils/dom.js +1 -0
- package/dist/es2019/with-plugin-state/index.js +1 -0
- package/dist/esm/__tests_external__/page-objects/Editor.js +1 -1
- package/dist/esm/__tests_external__/page-objects/EditorSmartLink.js +1 -1
- package/dist/esm/__tests_external__/page-objects/Renderer.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/analytics/types/table-events.js +1 -0
- package/dist/esm/annotation/index.js +1 -1
- package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -0
- package/dist/esm/collab/index.js +6 -1
- package/dist/esm/element-browser/ElementBrowser.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +90 -13
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +6 -5
- package/dist/esm/element-browser/components/ElementSearch.js +3 -4
- package/dist/esm/extensibility/Extension/Extension/styles.js +4 -4
- package/dist/esm/extensibility/Extension/Lozenge.js +1 -1
- package/dist/esm/extensibility/Extension/styles.js +1 -1
- package/dist/esm/extensibility/Extension.js +1 -1
- package/dist/esm/extensibility/ExtensionComponent.js +1 -2
- package/dist/esm/extensibility/extensionNodeView.js +1 -1
- package/dist/esm/extensions/types/field-definitions.js +1 -0
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
- package/dist/esm/link/LinkSearch/LinkSearchList.js +15 -6
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +3 -2
- package/dist/esm/link/LinkSearch/ToolbarComponents.js +17 -5
- package/dist/esm/link/LinkSearch/index.js +1 -2
- package/dist/esm/link/LinkSearch/withActivityProvider.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/editor-commands.js +1 -1
- package/dist/esm/provider-factory/with-providers.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -0
- package/dist/esm/resizer/Resizer.js +2 -5
- package/dist/esm/safe-plugin/index.js +1 -1
- package/dist/esm/selection/gap-cursor/selection.js +1 -1
- package/dist/esm/selection/gap-cursor/styles.js +1 -1
- package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +1 -1
- package/dist/esm/styles/shared/embedCard.js +19 -4
- package/dist/esm/styles/shared/grid.js +28 -3
- package/dist/esm/styles/shared/indentation.js +2 -0
- package/dist/esm/styles/shared/panel.js +1 -1
- package/dist/esm/styles/shared/resizer.js +2 -2
- package/dist/esm/styles/shared/shadow.js +32 -3
- package/dist/esm/ui/Announcer/announcer.js +2 -0
- package/dist/esm/ui/Caption/index.js +1 -1
- package/dist/esm/ui/ContextPanel/context.js +2 -1
- package/dist/esm/ui/DropList/index.js +2 -2
- package/dist/esm/ui/Emoji/index.js +1 -1
- package/dist/esm/ui/ErrorBoundary/index.js +1 -1
- package/dist/esm/ui/Expand/index.js +2 -2
- package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/esm/ui/Layer/index.js +1 -2
- package/dist/esm/ui/Mention/index.js +1 -1
- package/dist/esm/ui/Mention/mention-with-providers.js +1 -1
- package/dist/esm/ui/MultiBodiedExtension/index.js +1 -3
- package/dist/esm/ui/OverflowShadow/index.js +1 -1
- package/dist/esm/ui/PanelTextInput/index.js +1 -1
- package/dist/esm/ui/Popup/index.js +1 -1
- package/dist/esm/ui/PortalProvider/index.js +1 -1
- package/dist/esm/ui/ResizerLegacy/index.js +1 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
- package/dist/esm/ui/UnsupportedInline/index.js +15 -3
- package/dist/esm/ui/WithCreateAnalyticsEvent/index.js +1 -1
- package/dist/esm/ui/with-outer-listeners.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +21 -5
- package/dist/esm/ui-menu/ColorPickerButton/index.js +34 -7
- package/dist/esm/ui-menu/Dropdown/index.js +1 -1
- package/dist/esm/ui-menu/DropdownMenu/index.js +1 -2
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -1
- package/dist/esm/utils/dom.js +1 -0
- package/dist/esm/utils/imageLoader.js +1 -1
- package/dist/esm/with-plugin-state/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +2 -1
- package/dist/types/analytics/types/table-events.d.ts +10 -1
- package/dist/types/styles/shared/resizer.d.ts +1 -0
- package/dist/types/ui/UnsupportedInline/index.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +10 -1
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +1 -0
- package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +3 -3
- package/package.json +2 -1
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
4
|
var _excluded = ["items", "mode", "selectedItemIndex", "focusedItemIndex", "setColumnCount", "createAnalyticsEvent", "emptyStateHandler", "selectedCategory", "searchTerm"];
|
|
6
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
7
5
|
/** @jsx jsx */
|
|
8
6
|
import React, { Fragment, memo, useCallback, useEffect, useMemo, useState } from 'react';
|
|
9
7
|
import { css, jsx } from '@emotion/react';
|
|
@@ -27,7 +25,21 @@ import EmptyState from './EmptyState';
|
|
|
27
25
|
import { getColumnCount, getScrollbarWidth } from './utils';
|
|
28
26
|
export var ICON_HEIGHT = 40;
|
|
29
27
|
export var ICON_WIDTH = 40;
|
|
30
|
-
export var itemIcon = css(
|
|
28
|
+
export var itemIcon = css({
|
|
29
|
+
width: "".concat(ICON_WIDTH, "px"),
|
|
30
|
+
height: "".concat(ICON_HEIGHT, "px"),
|
|
31
|
+
overflow: 'hidden',
|
|
32
|
+
border: "1px solid ".concat("var(--ds-border, rgba(223, 225, 229, 0.5))"),
|
|
33
|
+
borderRadius: "".concat(borderRadius(), "px"),
|
|
34
|
+
boxSizing: 'border-box',
|
|
35
|
+
display: 'flex',
|
|
36
|
+
justifyContent: 'center',
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
div: {
|
|
39
|
+
width: "".concat(ICON_WIDTH, "px"),
|
|
40
|
+
height: "".concat(ICON_HEIGHT, "px")
|
|
41
|
+
}
|
|
42
|
+
});
|
|
31
43
|
function ElementList(_ref) {
|
|
32
44
|
var items = _ref.items,
|
|
33
45
|
mode = _ref.mode,
|
|
@@ -221,21 +233,86 @@ var ItemContent = /*#__PURE__*/memo(function (_ref6) {
|
|
|
221
233
|
css: itemDescription
|
|
222
234
|
}, description)));
|
|
223
235
|
});
|
|
224
|
-
var elementItemsWrapper = css(
|
|
225
|
-
|
|
226
|
-
|
|
236
|
+
var elementItemsWrapper = css({
|
|
237
|
+
flex: 1,
|
|
238
|
+
flexFlow: 'row wrap',
|
|
239
|
+
alignItems: 'flex-start',
|
|
240
|
+
justifyContent: 'flex-start',
|
|
241
|
+
overflow: 'hidden',
|
|
242
|
+
padding: "var(--ds-space-025, 2px)",
|
|
243
|
+
'.ReactVirtualized__Collection': {
|
|
244
|
+
borderRadius: '3px',
|
|
245
|
+
outline: 'none',
|
|
246
|
+
':focus': {
|
|
247
|
+
boxShadow: "0 0 0 ".concat(ELEMENT_LIST_PADDING, "px ", "var(--ds-border-focused, ".concat(B100, ")"))
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
'.ReactVirtualized__Collection__innerScrollContainer': {
|
|
251
|
+
"div[class='element-item-wrapper']:last-child": {
|
|
252
|
+
paddingBottom: "var(--ds-space-050, 4px)"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
var elementItemWrapper = css({
|
|
257
|
+
div: {
|
|
258
|
+
button: {
|
|
259
|
+
height: '75px',
|
|
260
|
+
alignItems: 'flex-start',
|
|
261
|
+
padding: "var(--ds-space-150, 12px)"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
var itemBody = css({
|
|
266
|
+
display: 'flex',
|
|
267
|
+
flexDirection: 'row',
|
|
268
|
+
flexWrap: 'nowrap',
|
|
269
|
+
justifyContent: 'space-between',
|
|
270
|
+
lineHeight: 1.4,
|
|
271
|
+
width: '100%',
|
|
272
|
+
marginTop: "var(--ds-space-negative-025, -2px)"
|
|
273
|
+
});
|
|
227
274
|
|
|
228
275
|
/*
|
|
229
276
|
* -webkit-line-clamp is also supported by firefox 🎉
|
|
230
277
|
* https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/68#CSS
|
|
231
278
|
*/
|
|
232
|
-
var multilineStyle = css(
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
var
|
|
238
|
-
|
|
279
|
+
var multilineStyle = css({
|
|
280
|
+
display: '-webkit-box',
|
|
281
|
+
WebkitLineClamp: 2,
|
|
282
|
+
WebkitBoxOrient: 'vertical'
|
|
283
|
+
});
|
|
284
|
+
var itemDescription = css(multilineStyle, {
|
|
285
|
+
overflow: 'hidden',
|
|
286
|
+
fontSize: relativeFontSizeToBase16(11.67),
|
|
287
|
+
color: "var(--ds-text-subtle, ".concat(N200, ")"),
|
|
288
|
+
marginTop: "var(--ds-space-025, 2px)"
|
|
289
|
+
});
|
|
290
|
+
var itemText = css({
|
|
291
|
+
width: 'inherit',
|
|
292
|
+
whiteSpace: 'initial'
|
|
293
|
+
});
|
|
294
|
+
var itemTitleWrapper = css({
|
|
295
|
+
display: 'flex',
|
|
296
|
+
justifyContent: 'space-between'
|
|
297
|
+
});
|
|
298
|
+
var itemTitle = css({
|
|
299
|
+
width: '100%',
|
|
300
|
+
overflow: 'hidden',
|
|
301
|
+
whiteSpace: 'nowrap',
|
|
302
|
+
textOverflow: 'ellipsis'
|
|
303
|
+
});
|
|
304
|
+
var itemAfter = css({
|
|
305
|
+
flex: '0 0 auto',
|
|
306
|
+
paddingTop: "var(--ds-space-025, 2px)",
|
|
307
|
+
marginBottom: "var(--ds-space-negative-025, -2px)"
|
|
308
|
+
});
|
|
309
|
+
var itemIconStyle = css({
|
|
310
|
+
img: {
|
|
311
|
+
height: '40px',
|
|
312
|
+
width: '40px',
|
|
313
|
+
objectFit: 'cover'
|
|
314
|
+
}
|
|
315
|
+
});
|
|
239
316
|
var MemoizedElementListWithAnalytics = /*#__PURE__*/memo(withAnalyticsContext({
|
|
240
317
|
component: 'ElementList'
|
|
241
318
|
})(ElementList));
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
5
6
|
import NotFoundIllustration from './NotFoundIllustration';
|
|
6
7
|
export default function EmptyState(_ref) {
|
|
7
8
|
var onExternalLinkClick = _ref.onExternalLinkClick;
|
|
@@ -20,8 +21,8 @@ export default function EmptyState(_ref) {
|
|
|
20
21
|
id: "fabric.editor.elementbrowser.search.empty-state.sub-heading",
|
|
21
22
|
defaultMessage: "Try searching with a different term or discover new apps for Atlassian products.",
|
|
22
23
|
description: "Empty state sub-heading"
|
|
23
|
-
})), jsx(
|
|
24
|
-
|
|
24
|
+
})), jsx(Box, {
|
|
25
|
+
xcss: externalLinkWrapper
|
|
25
26
|
}, jsx(Button, {
|
|
26
27
|
appearance: "primary",
|
|
27
28
|
target: "_blank",
|
|
@@ -39,7 +40,7 @@ var emptyStateHeading = css({
|
|
|
39
40
|
color: "var(--ds-text, rgb(23, 43, 77))",
|
|
40
41
|
fontWeight: 500,
|
|
41
42
|
letterSpacing: '-0.008em',
|
|
42
|
-
marginTop:
|
|
43
|
+
marginTop: "var(--ds-space-300, 24px)"
|
|
43
44
|
});
|
|
44
45
|
var emptyStateSubHeading = css({
|
|
45
46
|
marginTop: "var(--ds-space-200, 16px)",
|
|
@@ -53,6 +54,6 @@ var emptyStateWrapper = css({
|
|
|
53
54
|
alignItems: 'center',
|
|
54
55
|
width: '100%'
|
|
55
56
|
});
|
|
56
|
-
var externalLinkWrapper =
|
|
57
|
-
marginTop:
|
|
57
|
+
var externalLinkWrapper = xcss({
|
|
58
|
+
marginTop: "var(--ds-space-150, 12px)"
|
|
58
59
|
});
|
|
@@ -112,8 +112,8 @@ function ElementSearch(_ref) {
|
|
|
112
112
|
}, assistiveMessage));
|
|
113
113
|
}
|
|
114
114
|
var styledShortcut = css(shortcutStyle, {
|
|
115
|
-
padding: "".concat(
|
|
116
|
-
width: "
|
|
115
|
+
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"),
|
|
116
|
+
width: "var(--ds-space-600, 48px)"
|
|
117
117
|
});
|
|
118
118
|
var wrapper = css({
|
|
119
119
|
'& > [data-ds--text-field--container]': {
|
|
@@ -122,9 +122,8 @@ var wrapper = css({
|
|
|
122
122
|
flex: '1 1 100%',
|
|
123
123
|
overflow: 'visible',
|
|
124
124
|
'& > [data-ds--text-field--input]': {
|
|
125
|
-
marginBottom: '3px',
|
|
126
125
|
fontSize: relativeFontSizeToBase16(14),
|
|
127
|
-
padding: "".concat(
|
|
126
|
+
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-075, 6px)", " ", "var(--ds-space-100, 8px)", " 0")
|
|
128
127
|
}
|
|
129
128
|
}
|
|
130
129
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N30 } from '@atlaskit/theme/colors';
|
|
3
|
-
import {
|
|
3
|
+
import { wrapperDefault } from '../styles';
|
|
4
4
|
export var widerLayoutClassName = 'wider-layout';
|
|
5
5
|
export var wrapperStyle = css(wrapperDefault, {
|
|
6
6
|
'&.without-frame': {
|
|
@@ -13,7 +13,7 @@ export var wrapperStyle = css(wrapperDefault, {
|
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
export var header = css({
|
|
16
|
-
padding: "".concat(
|
|
16
|
+
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " 0px"),
|
|
17
17
|
verticalAlign: 'middle',
|
|
18
18
|
'&.with-children:not(.without-frame)': {
|
|
19
19
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
|
|
@@ -23,7 +23,7 @@ export var header = css({
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
export var content = css({
|
|
26
|
-
padding: "
|
|
26
|
+
padding: "var(--ds-space-100, 8px)",
|
|
27
27
|
background: "var(--ds-surface, white)",
|
|
28
28
|
border: "1px solid ".concat("var(--ds-border, ".concat(N30, ")")),
|
|
29
29
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
@@ -31,7 +31,7 @@ export var content = css({
|
|
|
31
31
|
width: '100%'
|
|
32
32
|
});
|
|
33
33
|
export var contentWrapper = css({
|
|
34
|
-
padding: "0 ".concat(
|
|
34
|
+
padding: "0 ".concat("var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)"),
|
|
35
35
|
display: 'flex',
|
|
36
36
|
justifyContent: 'center',
|
|
37
37
|
'&.remove-padding': {
|
|
@@ -9,7 +9,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
9
9
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
var _excluded = ["url"];
|
|
11
11
|
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); }; }
|
|
12
|
-
function _isNativeReflectConstruct() {
|
|
12
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
import { Component } from 'react';
|
|
15
15
|
import { jsx } from '@emotion/react';
|
|
@@ -43,7 +43,7 @@ export var placeholderFallback = css({
|
|
|
43
43
|
export var placeholderFallbackParams = css({
|
|
44
44
|
display: 'inline-block',
|
|
45
45
|
maxWidth: '200px',
|
|
46
|
-
marginLeft:
|
|
46
|
+
marginLeft: "var(--ds-space-050, 4px)",
|
|
47
47
|
color: "var(--ds-text-subtlest, ".concat(N70, ")"),
|
|
48
48
|
textOverflow: 'ellipsis',
|
|
49
49
|
whiteSpace: 'nowrap',
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
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
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React, { Component } from 'react';
|
|
11
11
|
import { ProviderFactory, WithProviders } from '../provider-factory';
|
|
12
12
|
import { ExtensionComponent } from './ExtensionComponent';
|
|
@@ -8,7 +8,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
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
|
-
function _isNativeReflectConstruct() {
|
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React, { Component } from 'react';
|
|
13
13
|
import memoizeOne from 'memoize-one';
|
|
14
14
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -245,7 +245,6 @@ export var ExtensionComponent = /*#__PURE__*/function (_Component) {
|
|
|
245
245
|
/** We don't want this error to block renderer */
|
|
246
246
|
/** We keep rendering the default content */
|
|
247
247
|
}
|
|
248
|
-
|
|
249
248
|
return null;
|
|
250
249
|
}
|
|
251
250
|
}]);
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
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); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import ReactNodeView from '../react-node-view';
|
|
10
10
|
import { Extension } from './Extension';
|
|
@@ -12,7 +12,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
12
12
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
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
|
-
function _isNativeReflectConstruct() {
|
|
15
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16
16
|
/** @jsx jsx */
|
|
17
17
|
|
|
18
18
|
import React, { PureComponent } from 'react';
|
|
@@ -39,7 +39,7 @@ import { filterUniqueItems, mapContentTypeToIcon, sha1, wordCount } from './util
|
|
|
39
39
|
* Visible only to screenreaders. Use when there is a need
|
|
40
40
|
* to provide more context to a non-sighted user.
|
|
41
41
|
*/
|
|
42
|
-
export var visuallyHiddenStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n width: 1px;\n margin:
|
|
42
|
+
export var visuallyHiddenStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n width: 1px;\n margin: ", ";\n overflow: hidden;\n padding: 0;\n position: absolute;\n"])), "var(--ds-space-negative-025, -2px)");
|
|
43
43
|
export var RECENT_SEARCH_LIST_SIZE = 5;
|
|
44
44
|
var clearText = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n cursor: pointer;\n padding: 0;\n margin-right: ", ";\n color: ", ";\n background: transparent;\n border: none;\n"])), "var(--ds-space-100, 8px)", "var(--ds-icon-subtle, ".concat(N90, ")"));
|
|
45
45
|
var clearTextWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n right: 0;\n"])));
|
|
@@ -3,19 +3,28 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
7
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
8
6
|
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
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
8
|
/** @jsx jsx */
|
|
11
9
|
import { PureComponent } from 'react';
|
|
12
10
|
import { css, jsx } from '@emotion/react';
|
|
13
11
|
import Spinner from '@atlaskit/spinner';
|
|
14
12
|
import { N30 } from '@atlaskit/theme/colors';
|
|
15
13
|
import LinkSearchListItem from './LinkSearchListItem';
|
|
16
|
-
var listContainer = css(
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
var listContainer = css({
|
|
15
|
+
paddingTop: 0,
|
|
16
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
17
|
+
borderTop: "1px solid ".concat("var(--ds-border, ".concat(N30, ")"))
|
|
18
|
+
});
|
|
19
|
+
var spinnerContainer = css({
|
|
20
|
+
textAlign: 'center',
|
|
21
|
+
minHeight: '80px',
|
|
22
|
+
marginTop: "var(--ds-space-400, 32px)"
|
|
23
|
+
});
|
|
24
|
+
export var linkSearchList = css({
|
|
25
|
+
padding: 0,
|
|
26
|
+
listStyle: 'none'
|
|
27
|
+
});
|
|
19
28
|
var LinkSearchList = /*#__PURE__*/function (_PureComponent) {
|
|
20
29
|
_inherits(LinkSearchList, _PureComponent);
|
|
21
30
|
var _super = _createSuper(LinkSearchList);
|
|
@@ -6,12 +6,13 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
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
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
/** @jsx jsx */
|
|
11
11
|
import React, { Fragment } from 'react';
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
13
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
14
14
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
15
|
+
|
|
15
16
|
import { injectIntl } from 'react-intl-next';
|
|
16
17
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
17
18
|
import { N20, N300, N800 } from '@atlaskit/theme/colors';
|
|
@@ -45,7 +46,7 @@ export var containerName = css({
|
|
|
45
46
|
});
|
|
46
47
|
var iconStyle = css({
|
|
47
48
|
minWidth: '16px',
|
|
48
|
-
marginTop:
|
|
49
|
+
marginTop: "var(--ds-space-050, 4px)",
|
|
49
50
|
marginRight: "var(--ds-space-150, 12px)",
|
|
50
51
|
img: {
|
|
51
52
|
maxWidth: '16px'
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { RECENT_SEARCH_WIDTH_IN_PX, RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX } from '../../ui';
|
|
5
|
-
export var inputWrapper = css(
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export var inputWrapper = css({
|
|
4
|
+
display: 'flex',
|
|
5
|
+
lineHeight: 0,
|
|
6
|
+
padding: "var(--ds-space-075, 6px)".concat(" 0"),
|
|
7
|
+
alignItems: 'center'
|
|
8
|
+
});
|
|
9
|
+
export var container = css({
|
|
10
|
+
display: 'flex',
|
|
11
|
+
flexDirection: 'column',
|
|
12
|
+
overflow: 'auto',
|
|
13
|
+
padding: 0,
|
|
14
|
+
width: "".concat(RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX, "px"),
|
|
15
|
+
lineHeight: 'initial'
|
|
16
|
+
});
|
|
17
|
+
export var containerWithProvider = css({
|
|
18
|
+
width: "".concat(RECENT_SEARCH_WIDTH_IN_PX, "px")
|
|
19
|
+
});
|
|
@@ -8,7 +8,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
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
|
-
function _isNativeReflectConstruct() {
|
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { injectIntl } from 'react-intl-next';
|
|
14
14
|
import { INPUT_METHOD } from '../../analytics';
|
|
@@ -35,7 +35,6 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
|
|
|
35
35
|
if (!inputMethod) {
|
|
36
36
|
return; // No call submit, if there is nothing to submit
|
|
37
37
|
}
|
|
38
|
-
|
|
39
38
|
switch (inputMethod) {
|
|
40
39
|
case INPUT_METHOD.MANUAL:
|
|
41
40
|
{
|
|
@@ -9,7 +9,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
9
9
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
var _excluded = ["providerFactory"];
|
|
11
11
|
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); }; }
|
|
12
|
-
function _isNativeReflectConstruct() {
|
|
12
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { WithProviders } from '../../provider-factory';
|
|
15
15
|
// eslint-disable-next-line no-duplicate-imports
|
|
@@ -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 = "78.11.
|
|
9
|
+
var packageVersion = "78.11.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
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
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); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
/**
|
|
10
10
|
* Convert a EditorCommand to a standard Prosemirror Command.
|
|
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
9
|
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; }
|
|
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
|
-
function _isNativeReflectConstruct() {
|
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import { PureComponent } from 'react';
|
|
13
13
|
export var WithProviders = /*#__PURE__*/function (_PureComponent) {
|
|
14
14
|
_inherits(WithProviders, _PureComponent);
|
|
@@ -196,6 +196,7 @@ function getPortalChildren(_ref2) {
|
|
|
196
196
|
// nodeViews: {
|
|
197
197
|
// [nodeViewName: string]: NodeViewProducer
|
|
198
198
|
// }
|
|
199
|
+
|
|
199
200
|
// This return of this function is intended to be the value of a key
|
|
200
201
|
// in a ProseMirror nodeViews object.
|
|
201
202
|
export function getInlineNodeViewProducer(_ref3) {
|
|
@@ -9,7 +9,7 @@ import React, { forwardRef, useCallback, useImperativeHandle, useMemo, useRef, u
|
|
|
9
9
|
import classnames from 'classnames';
|
|
10
10
|
import { Resizable } from 're-resizable';
|
|
11
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
12
|
-
import { handleWrapperClass, resizerDangerClassName, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
|
|
12
|
+
import { handleWrapperClass, resizerDangerClassName, resizerExtendedZone, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
|
|
13
13
|
var SUPPORTED_HANDLES = ['left', 'right'];
|
|
14
14
|
var ResizerNext = function ResizerNext(props, ref) {
|
|
15
15
|
var _useState = useState(false),
|
|
@@ -103,9 +103,7 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
103
103
|
'is-resizing': isResizing,
|
|
104
104
|
'display-handle': isHandleVisible
|
|
105
105
|
}, resizerDangerClassName, appearance === 'danger'));
|
|
106
|
-
var resizerZoneClassName = classnames(resizerHoverZoneClassName, {
|
|
107
|
-
'is-extended': needExtendedResizeZone
|
|
108
|
-
});
|
|
106
|
+
var resizerZoneClassName = classnames(resizerHoverZoneClassName, _defineProperty({}, resizerExtendedZone, needExtendedResizeZone));
|
|
109
107
|
var handleComponent = useMemo(function () {
|
|
110
108
|
return SUPPORTED_HANDLES.reduce(function (result, position) {
|
|
111
109
|
var thumb = /*#__PURE__*/React.createElement("button", {
|
|
@@ -116,7 +114,6 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
116
114
|
type: "button",
|
|
117
115
|
tabIndex: -1 //We want to control focus on this button ourselves
|
|
118
116
|
});
|
|
119
|
-
|
|
120
117
|
if ((!handleHighlight || handleHighlight === 'none') && !handleTooltipContent) {
|
|
121
118
|
return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, position, thumb));
|
|
122
119
|
}
|
|
@@ -6,7 +6,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
6
6
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
7
7
|
import _toArray from "@babel/runtime/helpers/toArray";
|
|
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
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import { Plugin } from '@atlaskit/editor-prosemirror/state';
|
|
11
11
|
// Wraper to avoid any exception during the get pos operation
|
|
12
12
|
// See this https://hello.atlassian.net/wiki/spaces/EDITOR/pages/2849713193/ED-19672+Extensions+Regression
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
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
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
11
11
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
12
12
|
import { isValidTargetNode } from './utils/is-valid-target-node';
|
|
@@ -7,4 +7,4 @@ var gapCursor = '.ProseMirror-gapcursor';
|
|
|
7
7
|
var prosemirrorwidget = '.ProseMirror-widget';
|
|
8
8
|
var wrapLeft = '[layout="wrap-left"]';
|
|
9
9
|
var wrapRight = '[layout="wrap-right"]';
|
|
10
|
-
export var gapCursorStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n /* =============== GAP CURSOR ================== */\n .ProseMirror {\n &.", " {\n caret-color: transparent;\n }\n\n ", " {\n display: none;\n pointer-events: none;\n position: relative;\n\n & span {\n caret-color: transparent;\n position: absolute;\n height: 100%;\n width: 100%;\n display: block;\n }\n\n & span::after {\n animation: 1s ", " step-end infinite;\n border-left: 1px solid;\n content: '';\n display: block;\n position: absolute;\n top: 0;\n height: 100%;\n }\n &.-left span::after {\n left:
|
|
10
|
+
export var gapCursorStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n /* =============== GAP CURSOR ================== */\n .ProseMirror {\n &.", " {\n caret-color: transparent;\n }\n\n ", " {\n display: none;\n pointer-events: none;\n position: relative;\n\n & span {\n caret-color: transparent;\n position: absolute;\n height: 100%;\n width: 100%;\n display: block;\n }\n\n & span::after {\n animation: 1s ", " step-end infinite;\n border-left: 1px solid;\n content: '';\n display: block;\n position: absolute;\n top: 0;\n height: 100%;\n }\n &.-left span::after {\n left: ", ";\n }\n &.-right span::after {\n right: ", ";\n }\n & span[layout='full-width'],\n & span[layout='wide'],\n & span[layout='fixed-width'] {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n &", " {\n float: right;\n }\n\n /* fix vertical alignment of gap cursor */\n &:first-of-type + ul,\n &:first-of-type + span + ul,\n &:first-of-type + ol,\n &:first-of-type + span + ol,\n &:first-of-type + pre,\n &:first-of-type + span + pre,\n &:first-of-type + blockquote,\n &:first-of-type + span + blockquote {\n margin-top: 0;\n }\n }\n &.ProseMirror-focused ", " {\n display: block;\n border-color: transparent;\n }\n }\n\n /* This hack below is for two images aligned side by side */\n ", "", " + span + ", ",\n ", "", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " {\n clear: none;\n }\n\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div {\n margin-right: 0;\n margin-left: 0;\n margin-bottom: 0;\n }\n\n ", " + ", ",\n ", " + ", " {\n float: left;\n }\n\n ", " + ", " + span + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after {\n visibility: hidden;\n display: block;\n font-size: 0;\n content: ' ';\n clear: both;\n height: 0;\n }\n\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + *,\n ", " + ", " + span + * {\n margin-top: 0;\n }\n"])), hideCaretModifier, gapCursor, gapCursorBlink, "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", wrapRight, gapCursor, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, wrapLeft, gapCursor, wrapRight, gapCursor, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, prosemirrorwidget, gapCursor, prosemirrorwidget, gapCursor);
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
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
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import ReactNodeView from '../react-node-view';
|
|
11
11
|
/**
|
|
12
12
|
* A ReactNodeView that handles React components sensitive
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
|
-
export var embedCardStyles = css(
|
|
5
|
-
|
|
2
|
+
export var embedCardStyles = css({
|
|
3
|
+
'.ProseMirror': {
|
|
4
|
+
".embedCardView-content-wrap[layout^='wrap-']": {
|
|
5
|
+
maxWidth: '100%'
|
|
6
|
+
},
|
|
7
|
+
".embedCardView-content-wrap[layout='wrap-left']": {
|
|
8
|
+
float: 'left'
|
|
9
|
+
},
|
|
10
|
+
".embedCardView-content-wrap[layout='wrap-right']": {
|
|
11
|
+
float: 'right'
|
|
12
|
+
},
|
|
13
|
+
".embedCardView-content-wrap[layout='wrap-right'] + .embedCardView-content-wrap[layout='wrap-left']": {
|
|
14
|
+
clear: 'both'
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export var embedSpacingStyles = css({
|
|
19
|
+
margin: "0 ".concat("var(--ds-space-150, 12px)")
|
|
20
|
+
});
|