@atlaskit/editor-common 78.11.3 → 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 +15 -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 +7 -3
- package/dist/cjs/extensibility/Extension/Extension/styles.js +36 -7
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -10
- 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/ExtensionNodeWrapper.js +2 -19
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +11 -5
- package/dist/cjs/extensibility/extensionNodeView.js +2 -3
- 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 +14 -4
- 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/index.js +5 -1
- package/dist/es2019/extensibility/Extension/Extension/styles.js +34 -36
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +3 -7
- package/dist/es2019/extensibility/Extension/styles.js +1 -1
- package/dist/es2019/extensibility/ExtensionComponent.js +0 -1
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +2 -20
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +10 -4
- package/dist/es2019/extensibility/extensionNodeView.js +1 -2
- 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 +13 -4
- 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/index.js +5 -1
- package/dist/esm/extensibility/Extension/Extension/styles.js +37 -7
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +3 -7
- 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/ExtensionNodeWrapper.js +2 -18
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +10 -4
- package/dist/esm/extensibility/extensionNodeView.js +2 -3
- 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 +13 -4
- 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/extensibility/ExtensionNodeWrapper.d.ts +1 -5
- package/dist/types/styles/shared/resizer.d.ts +1 -0
- package/dist/types/ui/MultiBodiedExtension/index.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/extensibility/ExtensionNodeWrapper.d.ts +1 -5
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +1 -0
- package/dist/types-ts4.5/ui/MultiBodiedExtension/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +3 -3
- package/package.json +2 -1
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { N30, N40 } from '@atlaskit/theme/colors';
|
|
5
|
-
import { BODIED_EXT_MBE_MARGIN_TOP } from '../../styles';
|
|
6
|
-
|
|
7
5
|
// Wraps the navigation bar and extensionFrames
|
|
8
6
|
const mbeExtensionContainer = css({
|
|
9
7
|
background: 'transparent !important',
|
|
@@ -12,6 +10,9 @@ const mbeExtensionContainer = css({
|
|
|
12
10
|
right: `${"var(--ds-space-100, 8px)"} !important`
|
|
13
11
|
},
|
|
14
12
|
paddingBottom: "var(--ds-space-100, 8px)",
|
|
13
|
+
'&.remove-padding': {
|
|
14
|
+
paddingBottom: 0
|
|
15
|
+
},
|
|
15
16
|
position: 'relative',
|
|
16
17
|
verticalAlign: 'middle',
|
|
17
18
|
cursor: 'pointer',
|
|
@@ -37,7 +38,11 @@ const mbeNavigation = css({
|
|
|
37
38
|
borderBottom: 'none !important',
|
|
38
39
|
background: "var(--ds-surface, white)",
|
|
39
40
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
40
|
-
marginRight: "var(--ds-space-100, 8px)"
|
|
41
|
+
marginRight: "var(--ds-space-100, 8px)",
|
|
42
|
+
'&.remove-margins': {
|
|
43
|
+
marginLeft: 0,
|
|
44
|
+
marginRight: 0
|
|
45
|
+
}
|
|
41
46
|
});
|
|
42
47
|
const extensionFrameContent = css({
|
|
43
48
|
padding: `${"var(--ds-space-100, 8px)"} !important`,
|
|
@@ -55,12 +60,16 @@ const extensionFrameContent = css({
|
|
|
55
60
|
paddingRight: `${"var(--ds-space-150, 12px)"} !important`
|
|
56
61
|
},
|
|
57
62
|
'.bodiedExtensionView-content-wrap': {
|
|
58
|
-
marginTop: `${
|
|
63
|
+
marginTop: `${"var(--ds-space-150, 12px)"} !important`
|
|
59
64
|
},
|
|
60
65
|
'.extensionView-content-wrap': {
|
|
61
66
|
marginTop: `${"var(--ds-space-100, 8px)"} !important`
|
|
62
67
|
}
|
|
63
68
|
});
|
|
69
|
+
export const removeMargins = css({
|
|
70
|
+
marginLeft: 0,
|
|
71
|
+
marginRight: 0
|
|
72
|
+
});
|
|
64
73
|
export const sharedMultiBodiedExtensionStyles = {
|
|
65
74
|
mbeExtensionContainer,
|
|
66
75
|
mbeNavigation,
|
|
@@ -19,9 +19,9 @@ const blockNodeStyle = css`
|
|
|
19
19
|
cursor: default;
|
|
20
20
|
display: flex;
|
|
21
21
|
font-size: ${relativeFontSizeToBase16(fontSize())};
|
|
22
|
-
margin:
|
|
22
|
+
margin: ${"var(--ds-space-100, 8px)"} 0;
|
|
23
23
|
min-height: 24px;
|
|
24
|
-
padding:
|
|
24
|
+
padding: ${"var(--ds-space-150, 12px)"};
|
|
25
25
|
text-align: center;
|
|
26
26
|
vertical-align: text-bottom;
|
|
27
27
|
min-width: 120px;
|
|
@@ -11,21 +11,21 @@ import { ACTION_SUBJECT_ID } from '../../analytics';
|
|
|
11
11
|
import { unsupportedContentMessages } from '../../messages/unsupportedContent';
|
|
12
12
|
import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
|
|
13
13
|
import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
14
|
-
const inlineNodeStyle = css
|
|
15
|
-
|
|
16
|
-
background:
|
|
17
|
-
border: 1px dashed ${`var(--ds-border-disabled, ${N50})`}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
cursor: default
|
|
21
|
-
display: inline-flex
|
|
22
|
-
|
|
23
|
-
margin: 0 ${"var(--ds-space-025, 2px)"}
|
|
24
|
-
|
|
25
|
-
padding: 0
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
const inlineNodeStyle = css({
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
background: `var(--ds-background-disabled, ${N30})`,
|
|
17
|
+
border: `1px dashed ${`var(--ds-border-disabled, ${N50})`}`,
|
|
18
|
+
borderRadius: `${borderRadius()}px`,
|
|
19
|
+
boxSizing: 'border-box',
|
|
20
|
+
cursor: 'default',
|
|
21
|
+
display: 'inline-flex',
|
|
22
|
+
fontSize: relativeFontSizeToBase16(fontSize()),
|
|
23
|
+
margin: `0 ${"var(--ds-space-025, 2px)"}`,
|
|
24
|
+
minHeight: '24px',
|
|
25
|
+
padding: `0 ${"var(--ds-space-100, 8px)"}`,
|
|
26
|
+
verticalAlign: 'middle',
|
|
27
|
+
whiteSpace: 'nowrap'
|
|
28
|
+
});
|
|
29
29
|
const UnsupportedInlineNode = ({
|
|
30
30
|
node,
|
|
31
31
|
intl,
|
|
@@ -1,34 +1,30 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N0, N50, N900 } from '@atlaskit/theme/colors';
|
|
3
|
-
|
|
4
3
|
/** this is not new usage - old code extracted from editor-core */
|
|
5
4
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
6
|
-
export const buttonStyle = css
|
|
7
|
-
height: 26px
|
|
8
|
-
width: 26px
|
|
9
|
-
background: ${N900}
|
|
10
|
-
padding: 0
|
|
11
|
-
|
|
12
|
-
border: 1px solid ${N0}
|
|
13
|
-
cursor: pointer
|
|
14
|
-
display: block
|
|
15
|
-
|
|
5
|
+
export const buttonStyle = css({
|
|
6
|
+
height: '26px',
|
|
7
|
+
width: '26px',
|
|
8
|
+
background: `var(--ds-background-neutral, ${N900})`,
|
|
9
|
+
padding: 0,
|
|
10
|
+
borderRadius: '4px',
|
|
11
|
+
border: `1px solid ${`var(--ds-border-inverse, ${N0})`}`,
|
|
12
|
+
cursor: 'pointer',
|
|
13
|
+
display: 'block'
|
|
14
|
+
});
|
|
16
15
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
17
16
|
|
|
18
17
|
/** this is not new usage - old code extracted from editor-core */
|
|
19
18
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
20
|
-
export const buttonWrapperStyle = css
|
|
21
|
-
border: 1px solid transparent
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
&:focus,
|
|
30
|
-
&:hover {
|
|
31
|
-
border-color: ${N50} !important;
|
|
19
|
+
export const buttonWrapperStyle = css({
|
|
20
|
+
border: '1px solid transparent',
|
|
21
|
+
fontSize: 0,
|
|
22
|
+
display: 'flex',
|
|
23
|
+
alignItems: 'center',
|
|
24
|
+
padding: "var(--ds-space-025, 2px)",
|
|
25
|
+
borderRadius: '6px',
|
|
26
|
+
'&:focus-within, &:focus, &:hover': {
|
|
27
|
+
borderColor: `${`var(--ds-border, ${N50})`} !important`
|
|
32
28
|
}
|
|
33
|
-
|
|
29
|
+
});
|
|
34
30
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
@@ -14,22 +14,22 @@ import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
|
|
|
14
14
|
import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
|
|
15
15
|
|
|
16
16
|
// helps adjusts position of popup
|
|
17
|
-
const colorPickerButtonWrapper = css
|
|
18
|
-
position: relative
|
|
19
|
-
|
|
20
|
-
const colorPickerExpandContainer = css
|
|
21
|
-
margin: 0px ${"var(--ds-space-negative-050, -4px)"}
|
|
22
|
-
|
|
17
|
+
const colorPickerButtonWrapper = css({
|
|
18
|
+
position: 'relative'
|
|
19
|
+
});
|
|
20
|
+
const colorPickerExpandContainer = css({
|
|
21
|
+
margin: `0px ${"var(--ds-space-negative-050, -4px)"}`
|
|
22
|
+
});
|
|
23
23
|
|
|
24
24
|
// Control the size of color picker buttons and preview
|
|
25
25
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4134
|
|
26
26
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
27
|
-
const colorPickerWrapper = () => css
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
padding:
|
|
32
|
-
|
|
27
|
+
const colorPickerWrapper = () => css({
|
|
28
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
29
|
+
backgroundColor: `var(--ds-surface-overlay, ${N0})`,
|
|
30
|
+
boxShadow: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`,
|
|
31
|
+
padding: `${"var(--ds-space-100, 8px)"} 0px`
|
|
32
|
+
});
|
|
33
33
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
34
34
|
|
|
35
35
|
const ColorPaletteWithListeners = withOuterListeners(ColorPalette);
|
|
@@ -151,29 +151,28 @@ const ColorPickerButton = props => {
|
|
|
151
151
|
const currentColor = props.currentColor && props.hexToPaletteColor ? props.hexToPaletteColor(props.currentColor) : props.currentColor;
|
|
152
152
|
const buttonStyle = () => {
|
|
153
153
|
var _props$size, _props$size2, _props$size3;
|
|
154
|
-
return css
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
`;
|
|
154
|
+
return css({
|
|
155
|
+
padding: `${"var(--ds-space-075, 6px)"} 10px`,
|
|
156
|
+
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
157
|
+
height: `${!!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) ? 'inherit' : ''}`,
|
|
158
|
+
'&:before': {
|
|
159
|
+
display: 'flex',
|
|
160
|
+
justifyContent: 'center',
|
|
161
|
+
alignItems: 'center',
|
|
162
|
+
alignSelf: 'center',
|
|
163
|
+
content: "''",
|
|
164
|
+
border: `1px solid ${DEFAULT_BORDER_COLOR}`,
|
|
165
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
166
|
+
backgroundColor: currentColor || 'transparent',
|
|
167
|
+
width: ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px',
|
|
168
|
+
height: ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px',
|
|
169
|
+
padding: 0,
|
|
170
|
+
margin: `0px ${"var(--ds-space-025, 2px)"}`
|
|
171
|
+
},
|
|
172
|
+
'&:hover': {
|
|
173
|
+
background: `var(--ds-background-neutral-subtle-hovered, ${N30A})`
|
|
174
|
+
}
|
|
175
|
+
});
|
|
177
176
|
};
|
|
178
177
|
return jsx("div", {
|
|
179
178
|
css: colorPickerButtonWrapper
|
package/dist/es2019/utils/dom.js
CHANGED
|
@@ -11,6 +11,7 @@ const DEFAULT_SLOW_THRESHOLD = 4;
|
|
|
11
11
|
// It was using some private types from
|
|
12
12
|
// - EditorAction: packages/editor/editor-core/src/actions/index.ts
|
|
13
13
|
// - EditorSharedConfig: packages/editor/editor-core/src/labs/next/internal/context/shared-config.tsx
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* @private
|
|
16
17
|
* @deprecated
|
|
@@ -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 { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
9
9
|
import { RendererPageObject } from './Renderer';
|
|
10
10
|
export var EditorPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
@@ -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 { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
11
11
|
import { BlockCardPageObject, EmbedCardPageObject, InlineCardPageObject } from '@atlaskit/smart-card/in-product';
|
|
12
12
|
export var EditorSmartLinkPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
@@ -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 { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
9
9
|
export var RendererPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
10
10
|
_inherits(RendererPageObject, _InProductTestPageObj);
|
|
@@ -164,6 +164,7 @@ export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
164
164
|
INPUT_METHOD["TYPEAHEAD"] = "typeAhead";
|
|
165
165
|
INPUT_METHOD["DATASOURCE"] = "datasource_config";
|
|
166
166
|
INPUT_METHOD["TABLE_CONTEXT_MENU"] = "tableContextMenu";
|
|
167
|
+
INPUT_METHOD["MOUSE"] = "mouse";
|
|
167
168
|
return INPUT_METHOD;
|
|
168
169
|
}({});
|
|
169
170
|
export var TRIGGER_METHOD = /*#__PURE__*/function (TRIGGER_METHOD) {
|
|
@@ -23,6 +23,7 @@ export var TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
|
|
|
23
23
|
TABLE_ACTION["FIXED"] = "fixed";
|
|
24
24
|
TABLE_ACTION["RESIZED"] = "resized";
|
|
25
25
|
TABLE_ACTION["RESIZE_PERF_SAMPLING"] = "resizePerfSampling";
|
|
26
|
+
TABLE_ACTION["COLUMN_RESIZED"] = "columnResized";
|
|
26
27
|
TABLE_ACTION["OVERFLOW_CHANGED"] = "overflowChanged";
|
|
27
28
|
TABLE_ACTION["INITIAL_OVERFLOW_CAPTURED"] = "initialOverflowCaptured";
|
|
28
29
|
TABLE_ACTION["MOVED_ROW"] = "movedRow";
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
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); }; }
|
|
8
|
-
function _isNativeReflectConstruct() {
|
|
8
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import { EventEmitter } from 'events';
|
|
10
10
|
export var AnnotationUpdateEmitter = /*#__PURE__*/function (_EventEmitter) {
|
|
11
11
|
_inherits(AnnotationUpdateEmitter, _EventEmitter);
|
|
@@ -20,6 +20,7 @@ import { alignAttributes, isInLayoutColumn, nonWrappedLayouts } from '../../util
|
|
|
20
20
|
|
|
21
21
|
// Workaround as we don't want to import this package into `editor-common`
|
|
22
22
|
// We'll get type errors if this gets out of sync with `editor-plugin-width`.
|
|
23
|
+
|
|
23
24
|
export var alignmentIcons = [{
|
|
24
25
|
id: 'editor.media.alignLeft',
|
|
25
26
|
value: 'align-start',
|
package/dist/esm/collab/index.js
CHANGED
|
@@ -7,8 +7,10 @@ import * as themeColors from '@atlaskit/theme/colors';
|
|
|
7
7
|
|
|
8
8
|
// Format of the payload returned by the callback function passed to the collab provider
|
|
9
9
|
// that gets called when syncing with the back-end service fails.
|
|
10
|
+
|
|
10
11
|
// Format of the document and its metadata returned from the collab provider
|
|
11
12
|
// after editing and for draft sync
|
|
13
|
+
|
|
12
14
|
// Provider Errors
|
|
13
15
|
// Emitted errors
|
|
14
16
|
export var PROVIDER_ERROR_CODE = /*#__PURE__*/function (PROVIDER_ERROR_CODE) {
|
|
@@ -138,7 +140,10 @@ var telepointerColorStyle = function telepointerColorStyle(color, index) {
|
|
|
138
140
|
return "\n &.color-".concat(index, " {\n background-color: ").concat(color.selection, ";\n &::after {\n background-color: ").concat(color.solid, ";\n color: ", "var(--ds-text-inverse, #fff)", ";\n border-color: ").concat(color.solid, ";\n }\n }\n");
|
|
139
141
|
};
|
|
140
142
|
export var TELEPOINTER_DIM_CLASS = 'telepointer-dim';
|
|
141
|
-
|
|
143
|
+
|
|
144
|
+
// Disable top: -14px since it is necessary to align to cursor
|
|
145
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
146
|
+
export var telepointerStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror .telepointer {\n position: relative;\n transition: opacity 200ms;\n\n &.telepointer-selection {\n line-height: 1.2;\n pointer-events: none;\n user-select: none;\n }\n\n &.telepointer-selection-badge::after {\n content: attr(data-initial);\n position: absolute;\n display: block;\n top: -14px;\n font-size: ", ";\n padding: ", ";\n color: ", ";\n left: 0px;\n border-radius: 2px 2px 2px 0;\n line-height: initial;\n }\n\n &.", " {\n opacity: 0.2;\n }\n\n ", ";\n }\n"])), relativeFontSizeToBase16(9), "var(--ds-space-025, 2px)", "var(--ds-text-inverse, white)", TELEPOINTER_DIM_CLASS, colors.map(function (color, index) {
|
|
142
147
|
return telepointerColorStyle(color, index);
|
|
143
148
|
}));
|
|
144
149
|
var tintKey = 'collab:isDirtyTransaction';
|
|
@@ -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, { PureComponent } from 'react';
|
|
11
11
|
import StatelessElementBrowser from './components/StatelessElementBrowser';
|
|
12
12
|
var ElementBrowser = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -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
|
});
|
|
@@ -56,6 +56,9 @@ function ExtensionWithPluginState(props) {
|
|
|
56
56
|
'with-children': hasChildren,
|
|
57
57
|
'without-frame': removeBorder
|
|
58
58
|
});
|
|
59
|
+
var contentClassNames = classnames({
|
|
60
|
+
'remove-padding': showMacroInteractionDesignUpdates
|
|
61
|
+
});
|
|
59
62
|
var customContainerStyles = {
|
|
60
63
|
width: '100%'
|
|
61
64
|
};
|
|
@@ -97,7 +100,8 @@ function ExtensionWithPluginState(props) {
|
|
|
97
100
|
node: node,
|
|
98
101
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
99
102
|
}), children), hasBody && jsx("div", {
|
|
100
|
-
css: newContentStyles
|
|
103
|
+
css: newContentStyles,
|
|
104
|
+
className: contentClassNames
|
|
101
105
|
}, jsx("div", {
|
|
102
106
|
css: content,
|
|
103
107
|
ref: handleContentDOMRef,
|