@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,7 +1,32 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { akEditorGridLineZIndex } from '@atlaskit/editor-shared-styles';
|
|
5
3
|
import { B200, N30A } from '@atlaskit/theme/colors';
|
|
6
4
|
export var GRID_GUTTER = 12;
|
|
7
|
-
export var gridStyles = css(
|
|
5
|
+
export var gridStyles = css({
|
|
6
|
+
'.gridParent': {
|
|
7
|
+
width: "calc(100% + ".concat(GRID_GUTTER * 2, "px)"),
|
|
8
|
+
marginLeft: "var(--ds-space-negative-150, -12px)",
|
|
9
|
+
marginRight: "var(--ds-space-negative-150, -12px)",
|
|
10
|
+
transform: 'scale(1)',
|
|
11
|
+
zIndex: akEditorGridLineZIndex
|
|
12
|
+
},
|
|
13
|
+
'.gridContainer': {
|
|
14
|
+
position: 'fixed',
|
|
15
|
+
height: '100vh',
|
|
16
|
+
width: '100%',
|
|
17
|
+
pointerEvents: 'none'
|
|
18
|
+
},
|
|
19
|
+
'.gridLine': {
|
|
20
|
+
borderLeft: "1px solid ".concat("var(--ds-border, ".concat(N30A, ")")),
|
|
21
|
+
display: 'inline-block',
|
|
22
|
+
boxSizing: 'border-box',
|
|
23
|
+
height: '100%',
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
25
|
+
marginLeft: '-1px',
|
|
26
|
+
transition: 'border-color 0.15s linear',
|
|
27
|
+
zIndex: 0
|
|
28
|
+
},
|
|
29
|
+
'.highlight': {
|
|
30
|
+
borderLeft: "1px solid ".concat("var(--ds-border-focused, ".concat(B200, ")"))
|
|
31
|
+
}
|
|
32
|
+
});
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
4
6
|
export var indentationSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .fabric-editor-indentation-mark {\n &[data-level='1'] {\n margin-left: 30px;\n }\n &[data-level='2'] {\n margin-left: 60px;\n }\n &[data-level='3'] {\n margin-left: 90px;\n }\n &[data-level='4'] {\n margin-left: 120px;\n }\n &[data-level='5'] {\n margin-left: 150px;\n }\n &[data-level='6'] {\n margin-left: 180px;\n }\n }\n"])));
|
|
@@ -158,7 +158,7 @@ var mainDynamicStyles = function mainDynamicStyles(panelType) {
|
|
|
158
158
|
return "\n background-color: ".concat(getPanelTypeBackground(panelType), ";\n color: inherit;\n ");
|
|
159
159
|
};
|
|
160
160
|
export var panelSharedStylesWithoutPrefix = function panelSharedStylesWithoutPrefix() {
|
|
161
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-radius: ", ";\n margin: ", " 0 0;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n min-width: ", "px;\n display: flex;\n position: relative;\n align-items: normal;\n word-break: break-word;\n\n ", "\n\n .", " {\n flex-shrink: 0;\n height: ", ";\n width: ", ";\n box-sizing: content-box;\n padding-right: ", ";\n text-align: center;\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n margin-top: 0.1em;\n ", "\n\n > span {\n vertical-align: middle;\n display: inline-flex;\n }\n\n .", " {\n vertical-align: ", "px;\n }\n\n .", " {\n vertical-align: ", "px;\n\n // Vertical align only works for inline-block elements in Firefox\n @-moz-document url-prefix() {\n img {\n display: inline-block;\n }\n }\n }\n }\n\n .ak-editor-panel__content {\n margin:
|
|
161
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-radius: ", ";\n margin: ", " 0 0;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n min-width: ", "px;\n display: flex;\n position: relative;\n align-items: normal;\n word-break: break-word;\n\n ", "\n\n .", " {\n flex-shrink: 0;\n height: ", ";\n width: ", ";\n box-sizing: content-box;\n padding-right: ", ";\n text-align: center;\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n margin-top: 0.1em;\n ", "\n\n > span {\n vertical-align: middle;\n display: inline-flex;\n }\n\n .", " {\n vertical-align: ", "px;\n }\n\n .", " {\n vertical-align: ", "px;\n\n // Vertical align only works for inline-block elements in Firefox\n @-moz-document url-prefix() {\n img {\n display: inline-block;\n }\n }\n }\n }\n\n .ak-editor-panel__content {\n margin: ", " 0 ", ";\n flex: 1 0 0;\n /*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n min-width: 0;\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n"])), "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", iconDynamicStyles(PanelType.INFO), emojiSprite, panelEmojiSpriteVerticalAlignment, emojiImage, panelEmojiImageVerticalAlignment, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", PanelType.NOTE, mainDynamicStyles(PanelType.NOTE), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.NOTE), PanelType.TIP, mainDynamicStyles(PanelType.TIP), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.TIP), PanelType.WARNING, mainDynamicStyles(PanelType.WARNING), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.WARNING), PanelType.ERROR, mainDynamicStyles(PanelType.ERROR), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.ERROR), PanelType.SUCCESS, mainDynamicStyles(PanelType.SUCCESS), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.SUCCESS));
|
|
162
162
|
};
|
|
163
163
|
export var panelSharedStyles = function panelSharedStyles() {
|
|
164
164
|
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .", " {\n ", "\n }\n"])), PanelSharedCssClassName.prefix, panelSharedStylesWithoutPrefix());
|
|
@@ -7,9 +7,9 @@ import { B200, B50, N60 } from '@atlaskit/theme/colors';
|
|
|
7
7
|
Styles in this file are based on
|
|
8
8
|
packages/editor/editor-core/src/plugins/media/styles.ts
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
10
|
export var resizerItemClassName = 'resizer-item';
|
|
12
11
|
export var resizerHoverZoneClassName = 'resizer-hover-zone';
|
|
12
|
+
export var resizerExtendedZone = 'resizer-is-extended';
|
|
13
13
|
export var resizerHandleClassName = 'resizer-handle';
|
|
14
14
|
export var resizerHandleTrackClassName = "".concat(resizerHandleClassName, "-track");
|
|
15
15
|
export var resizerHandleThumbClassName = "".concat(resizerHandleClassName, "-thumb");
|
|
@@ -19,4 +19,4 @@ export var resizerDangerClassName = "".concat(resizerHandleClassName, "-danger")
|
|
|
19
19
|
var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
20
20
|
export var handleWrapperClass = 'resizer-handle-wrapper';
|
|
21
21
|
export var resizerHandleZIndex = 1;
|
|
22
|
-
export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n will-change: width;\n\n &:hover,\n &.display-handle {\n & > .", " > .", " {\n visibility: visible;\n opacity: 1;\n }\n }\n\n &.is-resizing {\n & .", " {\n background: ", ";\n }\n }\n\n &.", " {\n & .", " {\n transition: none;\n background: ", ";\n }\n }\n }\n\n .", " {\n display: flex;\n visibility: hidden;\n opacity: 0;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 7px;\n transition: visibility 0.2s, opacity 0.2s;\n\n /*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n & div[role='presentation'] {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-top: ", ";\n white-space: normal;\n }\n\n /*\n Handle Positions\n */\n &.left {\n align-items: flex-start;\n }\n &.right {\n align-items: flex-end;\n }\n\n /*\n Handle Sizing\n */\n &.small {\n & .", " {\n height: 43px;\n }\n }\n &.medium {\n & .", " {\n height: 64px;\n }\n }\n &.large {\n & .", " {\n height: 96px;\n }\n }\n\n /*\n Handle Alignment\n */\n &.sticky {\n & .", " {\n position: sticky;\n top: ", ";\n bottom: ", ";\n }\n }\n\n &:hover {\n & .", " {\n background: ", ";\n }\n\n & .", " {\n visibility: visible;\n opacity: 0.5;\n }\n }\n }\n\n .", " {\n content: ' ';\n display: flex;\n width: 3px;\n margin: 0 ", ";\n height: 64px;\n transition: background-color 0.2s;\n border-radius: 6px;\n border: 0;\n padding: 0;\n z-index: 2;\n outline: none;\n min-height: 24px;\n background: ", ";\n\n &:hover {\n cursor: col-resize;\n }\n\n &:focus {\n background: ", ";\n\n &::after {\n content: '';\n position: absolute;\n top: ", ";\n right: ", ";\n bottom: ", ";\n left: ", ";\n border: 2px solid ", ";\n border-radius: inherit;\n z-index: -1;\n }\n }\n }\n\n .", " {\n visibility: hidden;\n position: absolute;\n width: 7px;\n height: calc(100% - 40px);\n border-radius: 4px;\n opacity: 0;\n transition: background-color 0.2s, visibility 0.2s, opacity 0.2s;\n\n &.none {\n background: none;\n }\n\n &.shadow {\n background: ", ";\n }\n\n &.full-height {\n background: ", ";\n height: 100%;\n min-height: 36px;\n }\n }\n\n .", " {\n & .", " {\n background: ", ";\n }\n }\n\n .", " {\n position: relative;\n display: inline-block;\n width: 100%;\n\n &.
|
|
22
|
+
export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n will-change: width;\n\n &:hover,\n &.display-handle {\n & > .", " > .", " {\n visibility: visible;\n opacity: 1;\n }\n }\n\n &.is-resizing {\n & .", " {\n background: ", ";\n }\n }\n\n &.", " {\n & .", " {\n transition: none;\n background: ", ";\n }\n }\n }\n\n .", " {\n display: flex;\n visibility: hidden;\n opacity: 0;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 7px;\n transition: visibility 0.2s, opacity 0.2s;\n\n /*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n & div[role='presentation'] {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-top: ", ";\n white-space: normal;\n }\n\n /*\n Handle Positions\n */\n &.left {\n align-items: flex-start;\n }\n &.right {\n align-items: flex-end;\n }\n\n /*\n Handle Sizing\n */\n &.small {\n & .", " {\n height: 43px;\n }\n }\n &.medium {\n & .", " {\n height: 64px;\n }\n }\n &.large {\n & .", " {\n height: 96px;\n }\n }\n\n /*\n Handle Alignment\n */\n &.sticky {\n & .", " {\n position: sticky;\n top: ", ";\n bottom: ", ";\n }\n }\n\n &:hover {\n & .", " {\n background: ", ";\n }\n\n & .", " {\n visibility: visible;\n opacity: 0.5;\n }\n }\n }\n\n .", " {\n content: ' ';\n display: flex;\n width: 3px;\n margin: 0 ", ";\n height: 64px;\n transition: background-color 0.2s;\n border-radius: 6px;\n border: 0;\n padding: 0;\n z-index: 2;\n outline: none;\n min-height: 24px;\n background: ", ";\n\n &:hover {\n cursor: col-resize;\n }\n\n &:focus {\n background: ", ";\n\n &::after {\n content: '';\n position: absolute;\n top: ", ";\n right: ", ";\n bottom: ", ";\n left: ", ";\n border: 2px solid ", ";\n border-radius: inherit;\n z-index: -1;\n }\n }\n }\n\n .", " {\n visibility: hidden;\n position: absolute;\n width: 7px;\n height: calc(100% - 40px);\n border-radius: 4px;\n opacity: 0;\n transition: background-color 0.2s, visibility 0.2s, opacity 0.2s;\n\n &.none {\n background: none;\n }\n\n &.shadow {\n background: ", ";\n }\n\n &.full-height {\n background: ", ";\n height: 100%;\n min-height: 36px;\n }\n }\n\n .", " {\n & .", " {\n background: ", ";\n }\n }\n\n .", " {\n position: relative;\n display: inline-block;\n width: 100%;\n\n &.", " {\n padding: 0 ", ";\n left: ", ";\n }\n }\n\n // This below style is here to make sure the image width is correct when nested in a table\n table\n .", ",\n table\n .", ".", " {\n padding: unset;\n left: unset;\n }\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(N60, ")"), "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, ".concat(B50, ")"), "var(--ds-background-selected, ".concat(B50, ")"), akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
var _css;
|
|
3
3
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
@@ -24,5 +24,34 @@ var shadowWidth = 8;
|
|
|
24
24
|
* background-attachment: local, local, scroll, scroll;
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
-
var shadowSharedStyle = css(
|
|
27
|
+
var shadowSharedStyle = css((_css = {}, _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::before, .").concat(shadowClassNames.RIGHT_SHADOW, "::after, .").concat(shadowClassNames.LEFT_SHADOW, "::before, .").concat(shadowClassNames.LEFT_SHADOW, "::after"), {
|
|
28
|
+
display: 'none',
|
|
29
|
+
position: 'absolute',
|
|
30
|
+
pointerEvents: 'none',
|
|
31
|
+
zIndex: akEditorShadowZIndex,
|
|
32
|
+
width: "".concat(shadowWidth, "px"),
|
|
33
|
+
content: "''",
|
|
34
|
+
height: 'calc(100%)'
|
|
35
|
+
}), _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, ", .").concat(shadowClassNames.LEFT_SHADOW), {
|
|
36
|
+
position: 'relative'
|
|
37
|
+
}), _defineProperty(_css, "& .".concat(shadowClassNames.LEFT_SHADOW, "::before"), {
|
|
38
|
+
background: "linear-gradient( to left, transparent 0, ".concat("var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), " ", getBooleanFF('platform.editor.table.increase-shadow-visibility_lh89r') ? 140 : 100, "% ), linear-gradient( to right, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
|
|
39
|
+
top: '0px',
|
|
40
|
+
left: 0,
|
|
41
|
+
display: 'block'
|
|
42
|
+
}), _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::after"), {
|
|
43
|
+
background: "linear-gradient( to right, transparent 0, ".concat("var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), " ", getBooleanFF('platform.editor.table.increase-shadow-visibility_lh89r') ? 140 : 100, "% ), linear-gradient( to left, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
|
|
44
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
45
|
+
left: "calc(100% - ".concat(shadowWidth, "px)"),
|
|
46
|
+
top: '0px',
|
|
47
|
+
display: 'block'
|
|
48
|
+
}), _defineProperty(_css, "& .".concat(shadowObserverClassNames.SENTINEL_LEFT), {
|
|
49
|
+
height: '100%',
|
|
50
|
+
width: '0px',
|
|
51
|
+
minWidth: '0px'
|
|
52
|
+
}), _defineProperty(_css, "& .".concat(shadowObserverClassNames.SENTINEL_RIGHT), {
|
|
53
|
+
height: '100%',
|
|
54
|
+
width: '0px',
|
|
55
|
+
minWidth: '0px'
|
|
56
|
+
}), _css));
|
|
28
57
|
export { shadowSharedStyle };
|
|
@@ -10,8 +10,10 @@ import React, { forwardRef, memo, useEffect, useState } from 'react';
|
|
|
10
10
|
|
|
11
11
|
// Note: Text won't be announced if the text message doesn't change after the render.
|
|
12
12
|
// For using a forced announcement in this case, set the 'key' attribute - key={Date.now()}
|
|
13
|
+
|
|
13
14
|
// Note: Flag 'contentRendered' resolves bug with duplicates messages (NVDA + Firefox)
|
|
14
15
|
// https://github.com/nvaccess/nvda/labels/bug%2Fdouble-speaking
|
|
16
|
+
|
|
15
17
|
var timer;
|
|
16
18
|
var Announcer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
17
19
|
var _ref$ariaAtomic = _ref.ariaAtomic,
|
|
@@ -7,7 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
8
8
|
var _templateObject, _templateObject2;
|
|
9
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
-
function _isNativeReflectConstruct() {
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { css, jsx } from '@emotion/react';
|
|
@@ -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 from 'react';
|
|
11
11
|
|
|
12
12
|
// React context to communicate the active context panel width up and down the tree.
|
|
@@ -23,6 +23,7 @@ import React from 'react';
|
|
|
23
23
|
// positionedOverEditor is used to determine whether the context panel is positioned over the Editor so we are
|
|
24
24
|
// able to position and add margins to handle certain elements like inline comment dialogues overlapping the context
|
|
25
25
|
// panel
|
|
26
|
+
|
|
26
27
|
export var ContextPanel = /*#__PURE__*/React.createContext({
|
|
27
28
|
width: 0,
|
|
28
29
|
positionedOverEditor: false,
|
|
@@ -8,7 +8,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
var _templateObject, _templateObject2, _templateObject3;
|
|
10
10
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
-
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
|
/** @jsx jsx */
|
|
13
13
|
|
|
14
14
|
import { Component } from 'react';
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "78.11.
|
|
20
|
+
var packageVersion = "78.11.5";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -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 { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
12
12
|
import { ProviderFactory, WithProviders } from '../../provider-factory';
|
|
@@ -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 from 'react';
|
|
11
11
|
import { ACTION, EVENT_TYPE } from '../../analytics';
|
|
12
12
|
import { logException } from '../../monitoring/error';
|
|
@@ -11,7 +11,7 @@ import { defineMessages } from 'react-intl-next';
|
|
|
11
11
|
import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
12
12
|
import { B300, N200, N200A, N300A, N30A, N40A, N50A, N90 } from '@atlaskit/theme/colors';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
14
|
-
import { fontSize
|
|
14
|
+
import { fontSize } from '@atlaskit/theme/constants';
|
|
15
15
|
export var messages = defineMessages({
|
|
16
16
|
collapseNode: {
|
|
17
17
|
id: 'fabric.editor.collapseNode',
|
|
@@ -78,7 +78,7 @@ var containerStyles = function containerStyles(styleProps) {
|
|
|
78
78
|
};
|
|
79
79
|
var contentStyles = function contentStyles(styleProps) {
|
|
80
80
|
return function () {
|
|
81
|
-
return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-right: ", ";\n
|
|
81
|
+
return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-right: ", ";\n padding-left: ", ";\n margin-left: ", ";\n display: flow-root;\n\n // The follow rules inside @supports block are added as a part of ED-8893\n // The fix is targeting mobile bridge on iOS 12 or below,\n // We should consider remove this fix when we no longer support iOS 12\n @supports not (display: flow-root) {\n width: 100%;\n box-sizing: border-box;\n }\n\n ", "\n "])), styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)", "var(--ds-space-100, 8px)", "var(--ds-space-300, 24px)", "var(--ds-space-050, 4px)", !styleProps.expanded ? "\n .expand-content-wrapper, .nestedExpand-content-wrapper {\n /* We visually hide the content here to preserve the content during copy+paste */\n /* Do not add text nowrap here because inline comment navigation depends on the location of the text */\n width: 100%;\n display: block;\n height: 0;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n user-select: none;\n }\n " : '');
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
84
|
var titleInputStyles = function titleInputStyles() {
|
|
@@ -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 from 'react';
|
|
11
11
|
import { IntlProvider } from 'react-intl-next';
|
|
12
12
|
export var REACT_INTL_ERROR_MESSAGE = '<IntlProvider> needs to exist in the component ancestry';
|
|
@@ -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 React, { Component } from 'react';
|
|
13
13
|
import Popper from 'popper.js'; // eslint-disable-line import/extensions
|
|
14
14
|
import rafSchedule from 'raf-schd';
|
|
@@ -151,7 +151,6 @@ var Layer = /*#__PURE__*/function (_Component) {
|
|
|
151
151
|
boundariesElement: 'viewport',
|
|
152
152
|
padding: 0 // leave 0 pixels between popper and the boundariesElement
|
|
153
153
|
},
|
|
154
|
-
|
|
155
154
|
preventOverflow: {
|
|
156
155
|
enabled: false,
|
|
157
156
|
escapeWithReference: true
|
|
@@ -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 { ProviderFactory, WithProviders } from '../../provider-factory';
|
|
12
12
|
import MentionWithProviders from './mention-with-providers';
|
|
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
-
function _isNativeReflectConstruct() {
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React, { PureComponent } from 'react';
|
|
12
12
|
import { ResourcedMention } from '@atlaskit/mention/element';
|
|
13
13
|
import ResourcedMentionWithProfilecard from './mention-with-profilecard';
|
|
@@ -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
|
var mbeExtensionContainer = css({
|
|
9
7
|
background: 'transparent !important',
|
|
@@ -62,7 +60,7 @@ var extensionFrameContent = css({
|
|
|
62
60
|
paddingRight: "var(--ds-space-150, 12px)".concat(" !important")
|
|
63
61
|
},
|
|
64
62
|
'.bodiedExtensionView-content-wrap': {
|
|
65
|
-
marginTop: "".concat(
|
|
63
|
+
marginTop: "var(--ds-space-150, 12px)".concat(" !important")
|
|
66
64
|
},
|
|
67
65
|
'.extensionView-content-wrap': {
|
|
68
66
|
marginTop: "var(--ds-space-100, 8px)".concat(" !important")
|
|
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
-
function _isNativeReflectConstruct() {
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { ShadowObserver, shadowObserverClassNames } from './shadowObserver';
|
|
13
13
|
export var shadowClassNames = {
|
|
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
-
function _isNativeReflectConstruct() {
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
13
|
import { PureComponent } from 'react';
|
|
@@ -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 React from 'react';
|
|
13
13
|
import createFocusTrap from 'focus-trap';
|
|
14
14
|
import rafSchedule from 'raf-schd';
|
|
@@ -8,7 +8,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
var _class4;
|
|
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 PropTypes from 'prop-types';
|
|
14
14
|
import { createPortal, unmountComponentAtNode, unstable_renderSubtreeIntoContainer } from 'react-dom';
|
|
@@ -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 React from 'react';
|
|
13
13
|
import classnames from 'classnames';
|
|
14
14
|
import { Resizable } from 're-resizable';
|
|
@@ -13,7 +13,7 @@ import { ACTION_SUBJECT_ID } from '../../analytics';
|
|
|
13
13
|
import { unsupportedContentMessages } from '../../messages/unsupportedContent';
|
|
14
14
|
import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
|
|
15
15
|
import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
16
|
-
var blockNodeStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px dashed ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n cursor: default;\n display: flex;\n font-size: ", ";\n margin:
|
|
16
|
+
var blockNodeStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px dashed ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n cursor: default;\n display: flex;\n font-size: ", ";\n margin: ", " 0;\n min-height: 24px;\n padding: ", ";\n text-align: center;\n vertical-align: text-bottom;\n min-width: 120px;\n align-items: center;\n justify-content: center;\n"])), "var(--ds-background-disabled, ".concat(N30, ")"), "var(--ds-border-disabled, ".concat(N50, ")"), borderRadius(), relativeFontSizeToBase16(fontSize()), "var(--ds-space-100, 8px)", "var(--ds-space-150, 12px)");
|
|
17
17
|
var UnsupportedBlockNode = function UnsupportedBlockNode(_ref) {
|
|
18
18
|
var node = _ref.node,
|
|
19
19
|
intl = _ref.intl,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
/** @jsx jsx */
|
|
4
2
|
import React, { useCallback, useRef } from 'react';
|
|
5
3
|
import { css, jsx } from '@emotion/react';
|
|
@@ -13,7 +11,21 @@ import { ACTION_SUBJECT_ID } from '../../analytics';
|
|
|
13
11
|
import { unsupportedContentMessages } from '../../messages/unsupportedContent';
|
|
14
12
|
import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
|
|
15
13
|
import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
16
|
-
var inlineNodeStyle = css(
|
|
14
|
+
var inlineNodeStyle = css({
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
background: "var(--ds-background-disabled, ".concat(N30, ")"),
|
|
17
|
+
border: "1px dashed ".concat("var(--ds-border-disabled, ".concat(N50, ")")),
|
|
18
|
+
borderRadius: "".concat(borderRadius(), "px"),
|
|
19
|
+
boxSizing: 'border-box',
|
|
20
|
+
cursor: 'default',
|
|
21
|
+
display: 'inline-flex',
|
|
22
|
+
fontSize: relativeFontSizeToBase16(fontSize()),
|
|
23
|
+
margin: "0 ".concat("var(--ds-space-025, 2px)"),
|
|
24
|
+
minHeight: '24px',
|
|
25
|
+
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
26
|
+
verticalAlign: 'middle',
|
|
27
|
+
whiteSpace: 'nowrap'
|
|
28
|
+
});
|
|
17
29
|
var UnsupportedInlineNode = function UnsupportedInlineNode(_ref) {
|
|
18
30
|
var node = _ref.node,
|
|
19
31
|
intl = _ref.intl,
|
|
@@ -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 { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
10
10
|
export var WithCreateAnalyticsEvent = withAnalyticsEvents()( /*#__PURE__*/function (_React$Component) {
|
|
@@ -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 ReactDOM from 'react-dom';
|
|
12
12
|
export default function withOuterListeners(Component) {
|
|
@@ -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
|
/** @jsx jsx */
|
|
11
11
|
import React, { PureComponent } from 'react';
|
|
12
12
|
import { jsx } from '@emotion/react';
|
|
@@ -1,14 +1,30 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { N0, N50, N900 } from '@atlaskit/theme/colors';
|
|
5
|
-
|
|
6
3
|
/** this is not new usage - old code extracted from editor-core */
|
|
7
4
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
8
|
-
export var buttonStyle = css(
|
|
5
|
+
export var buttonStyle = css({
|
|
6
|
+
height: '26px',
|
|
7
|
+
width: '26px',
|
|
8
|
+
background: "var(--ds-background-neutral, ".concat(N900, ")"),
|
|
9
|
+
padding: 0,
|
|
10
|
+
borderRadius: '4px',
|
|
11
|
+
border: "1px solid ".concat("var(--ds-border-inverse, ".concat(N0, ")")),
|
|
12
|
+
cursor: 'pointer',
|
|
13
|
+
display: 'block'
|
|
14
|
+
});
|
|
9
15
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
10
16
|
|
|
11
17
|
/** this is not new usage - old code extracted from editor-core */
|
|
12
18
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
13
|
-
export var buttonWrapperStyle = css(
|
|
19
|
+
export var 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: "".concat("var(--ds-border, ".concat(N50, ")"), " !important")
|
|
28
|
+
}
|
|
29
|
+
});
|
|
14
30
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
4
2
|
/** @jsx jsx */
|
|
5
3
|
import React from 'react';
|
|
6
4
|
import { css, jsx } from '@emotion/react';
|
|
@@ -17,14 +15,23 @@ import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
|
|
|
17
15
|
import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
|
|
18
16
|
|
|
19
17
|
// helps adjusts position of popup
|
|
20
|
-
var colorPickerButtonWrapper = css(
|
|
21
|
-
|
|
18
|
+
var colorPickerButtonWrapper = css({
|
|
19
|
+
position: 'relative'
|
|
20
|
+
});
|
|
21
|
+
var colorPickerExpandContainer = css({
|
|
22
|
+
margin: "0px ".concat("var(--ds-space-negative-050, -4px)")
|
|
23
|
+
});
|
|
22
24
|
|
|
23
25
|
// Control the size of color picker buttons and preview
|
|
24
26
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4134
|
|
25
27
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
26
28
|
var colorPickerWrapper = function colorPickerWrapper() {
|
|
27
|
-
return css(
|
|
29
|
+
return css({
|
|
30
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
31
|
+
backgroundColor: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
32
|
+
boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"),
|
|
33
|
+
padding: "var(--ds-space-100, 8px)".concat(" 0px")
|
|
34
|
+
});
|
|
28
35
|
};
|
|
29
36
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
30
37
|
|
|
@@ -157,8 +164,28 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
157
164
|
var currentColor = props.currentColor && props.hexToPaletteColor ? props.hexToPaletteColor(props.currentColor) : props.currentColor;
|
|
158
165
|
var buttonStyle = function buttonStyle() {
|
|
159
166
|
var _props$size, _props$size2, _props$size3;
|
|
160
|
-
return css(
|
|
161
|
-
|
|
167
|
+
return css({
|
|
168
|
+
padding: "var(--ds-space-075, 6px)".concat(" 10px"),
|
|
169
|
+
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
170
|
+
height: "".concat(!!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) ? 'inherit' : ''),
|
|
171
|
+
'&:before': {
|
|
172
|
+
display: 'flex',
|
|
173
|
+
justifyContent: 'center',
|
|
174
|
+
alignItems: 'center',
|
|
175
|
+
alignSelf: 'center',
|
|
176
|
+
content: "''",
|
|
177
|
+
border: "1px solid ".concat(DEFAULT_BORDER_COLOR),
|
|
178
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
179
|
+
backgroundColor: currentColor || 'transparent',
|
|
180
|
+
width: ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px',
|
|
181
|
+
height: ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px',
|
|
182
|
+
padding: 0,
|
|
183
|
+
margin: "0px ".concat("var(--ds-space-025, 2px)")
|
|
184
|
+
},
|
|
185
|
+
'&:hover': {
|
|
186
|
+
background: "var(--ds-background-neutral-subtle-hovered, ".concat(N30A, ")")
|
|
187
|
+
}
|
|
188
|
+
});
|
|
162
189
|
};
|
|
163
190
|
return jsx("div", {
|
|
164
191
|
css: colorPickerButtonWrapper
|