@atlaskit/editor-common 92.1.2 → 93.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/afm-post-office/tsconfig.json +0 -3
- package/dist/cjs/analytics/types/enums.js +2 -0
- package/dist/cjs/element-browser/components/CategoryList.js +2 -3
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +11 -13
- package/dist/cjs/element-browser/components/ElementSearch.js +1 -2
- package/dist/cjs/element-browser/constants.js +1 -6
- package/dist/cjs/extensibility/Extension/Extension/styles.js +3 -4
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +1 -2
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
- package/dist/cjs/extensibility/Extension/styles.js +3 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +2 -3
- package/dist/cjs/icons/shared/SteppedRainbowIconDecoration.js +2 -3
- package/dist/cjs/keymaps/index.js +6 -5
- package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +4 -5
- package/dist/cjs/link/ConfigureLinkOverlay/index.js +2 -4
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +1 -2
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -6
- package/dist/cjs/media-inline/constants.js +10 -8
- package/dist/cjs/media-inline/styles.js +1 -2
- package/dist/cjs/media-inline/views/error-view.js +1 -2
- package/dist/cjs/media-inline/views/wrapper.js +3 -4
- package/dist/cjs/media-single/CommentBadge.js +1 -2
- package/dist/cjs/messages/block-controls.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +5 -10
- package/dist/cjs/panel.js +0 -12
- package/dist/cjs/styles/shared/annotation.js +11 -14
- package/dist/cjs/styles/shared/code-block.js +2 -4
- package/dist/cjs/styles/shared/code-mark.js +1 -2
- package/dist/cjs/styles/shared/grid.js +2 -3
- package/dist/cjs/styles/shared/headings.js +56 -17
- package/dist/cjs/styles/shared/panel.js +13 -34
- package/dist/cjs/styles/shared/plugins.js +1 -2
- package/dist/cjs/styles/shared/resizer.js +1 -2
- package/dist/cjs/styles/shared/rule.js +1 -2
- package/dist/cjs/styles/shared/shadow.js +2 -3
- package/dist/cjs/styles/shared/smartCard.js +2 -3
- package/dist/cjs/table/SortingIcon.js +1 -2
- package/dist/cjs/ui/BaseTheme/index.js +1 -2
- package/dist/cjs/ui/Caption/index.js +2 -3
- package/dist/cjs/ui/DropList/index.js +4 -5
- package/dist/cjs/ui/Expand/index.js +2 -3
- package/dist/cjs/ui/Expand/sharedStyles.js +7 -17
- package/dist/cjs/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/cjs/ui/FloatingToolbar/styles.js +10 -12
- package/dist/cjs/ui/Messages/index.js +8 -6
- package/dist/cjs/ui/PanelTextInput/styles.js +4 -5
- package/dist/cjs/ui/UnsupportedBlock/index.js +4 -6
- package/dist/cjs/ui/UnsupportedInline/index.js +4 -6
- package/dist/cjs/ui/WidthProvider/index.js +5 -39
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +3 -4
- package/dist/cjs/ui-color/ColorPalette/Palettes/common.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +22 -24
- package/dist/cjs/ui-color/ColorPalette/index.js +2 -3
- package/dist/cjs/ui-color/index.js +0 -13
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -3
- package/dist/es2019/analytics/types/enums.js +2 -0
- package/dist/es2019/element-browser/components/CategoryList.js +2 -3
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +3 -5
- package/dist/es2019/element-browser/components/ElementSearch.js +1 -2
- package/dist/es2019/element-browser/constants.js +1 -5
- package/dist/es2019/extensibility/Extension/Extension/styles.js +3 -4
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +1 -2
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
- package/dist/es2019/extensibility/Extension/styles.js +3 -4
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +2 -3
- package/dist/es2019/icons/shared/SteppedRainbowIconDecoration.js +2 -3
- package/dist/es2019/keymaps/index.js +3 -2
- package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +4 -5
- package/dist/es2019/link/ConfigureLinkOverlay/index.js +2 -4
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +1 -2
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +4 -6
- package/dist/es2019/media-inline/constants.js +10 -8
- package/dist/es2019/media-inline/styles.js +1 -2
- package/dist/es2019/media-inline/views/error-view.js +1 -2
- package/dist/es2019/media-inline/views/wrapper.js +3 -4
- package/dist/es2019/media-single/CommentBadge.js +1 -2
- package/dist/es2019/messages/block-controls.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +5 -9
- package/dist/es2019/panel.js +1 -1
- package/dist/es2019/styles/shared/annotation.js +11 -14
- package/dist/es2019/styles/shared/code-block.js +12 -14
- package/dist/es2019/styles/shared/code-mark.js +1 -2
- package/dist/es2019/styles/shared/grid.js +2 -3
- package/dist/es2019/styles/shared/headings.js +35 -8
- package/dist/es2019/styles/shared/panel.js +12 -25
- package/dist/es2019/styles/shared/plugins.js +1 -2
- package/dist/es2019/styles/shared/resizer.js +6 -7
- package/dist/es2019/styles/shared/rule.js +1 -2
- package/dist/es2019/styles/shared/shadow.js +2 -3
- package/dist/es2019/styles/shared/smartCard.js +5 -7
- package/dist/es2019/table/SortingIcon.js +2 -3
- package/dist/es2019/ui/BaseTheme/index.js +1 -2
- package/dist/es2019/ui/Caption/index.js +2 -3
- package/dist/es2019/ui/DropList/index.js +4 -5
- package/dist/es2019/ui/Expand/index.js +2 -3
- package/dist/es2019/ui/Expand/sharedStyles.js +7 -17
- package/dist/es2019/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/es2019/ui/FloatingToolbar/styles.js +10 -12
- package/dist/es2019/ui/Messages/index.js +8 -6
- package/dist/es2019/ui/PanelTextInput/styles.js +4 -5
- package/dist/es2019/ui/UnsupportedBlock/index.js +4 -6
- package/dist/es2019/ui/UnsupportedInline/index.js +4 -6
- package/dist/es2019/ui/WidthProvider/index.js +2 -33
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +1 -4
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +3 -4
- package/dist/es2019/ui-color/ColorPalette/Palettes/common.js +1 -2
- package/dist/es2019/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +21 -24
- package/dist/es2019/ui-color/ColorPalette/index.js +2 -3
- package/dist/es2019/ui-color/index.js +0 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/es2019/ui-menu/DropdownMenu/index.js +3 -4
- package/dist/esm/analytics/types/enums.js +2 -0
- package/dist/esm/element-browser/components/CategoryList.js +2 -3
- package/dist/esm/element-browser/components/ElementList/ElementList.js +3 -5
- package/dist/esm/element-browser/components/ElementSearch.js +1 -2
- package/dist/esm/element-browser/constants.js +1 -5
- package/dist/esm/extensibility/Extension/Extension/styles.js +3 -4
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +1 -2
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
- package/dist/esm/extensibility/Extension/styles.js +3 -4
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +2 -3
- package/dist/esm/icons/shared/SteppedRainbowIconDecoration.js +2 -3
- package/dist/esm/keymaps/index.js +3 -2
- package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +4 -5
- package/dist/esm/link/ConfigureLinkOverlay/index.js +2 -4
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
- package/dist/esm/link/LinkSearch/LinkSearchList.js +1 -2
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +4 -6
- package/dist/esm/media-inline/constants.js +10 -8
- package/dist/esm/media-inline/styles.js +1 -2
- package/dist/esm/media-inline/views/error-view.js +1 -2
- package/dist/esm/media-inline/views/wrapper.js +3 -4
- package/dist/esm/media-single/CommentBadge.js +1 -2
- package/dist/esm/messages/block-controls.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +5 -9
- package/dist/esm/panel.js +1 -1
- package/dist/esm/styles/shared/annotation.js +11 -14
- package/dist/esm/styles/shared/code-block.js +2 -4
- package/dist/esm/styles/shared/code-mark.js +1 -2
- package/dist/esm/styles/shared/grid.js +2 -3
- package/dist/esm/styles/shared/headings.js +53 -17
- package/dist/esm/styles/shared/panel.js +12 -33
- package/dist/esm/styles/shared/plugins.js +1 -2
- package/dist/esm/styles/shared/resizer.js +1 -2
- package/dist/esm/styles/shared/rule.js +1 -2
- package/dist/esm/styles/shared/shadow.js +2 -3
- package/dist/esm/styles/shared/smartCard.js +2 -4
- package/dist/esm/table/SortingIcon.js +1 -2
- package/dist/esm/ui/BaseTheme/index.js +1 -2
- package/dist/esm/ui/Caption/index.js +2 -3
- package/dist/esm/ui/DropList/index.js +4 -5
- package/dist/esm/ui/Expand/index.js +2 -3
- package/dist/esm/ui/Expand/sharedStyles.js +7 -17
- package/dist/esm/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/esm/ui/FloatingToolbar/styles.js +10 -12
- package/dist/esm/ui/Messages/index.js +8 -6
- package/dist/esm/ui/PanelTextInput/styles.js +4 -5
- package/dist/esm/ui/UnsupportedBlock/index.js +4 -6
- package/dist/esm/ui/UnsupportedInline/index.js +4 -6
- package/dist/esm/ui/WidthProvider/index.js +5 -39
- package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +3 -4
- package/dist/esm/ui-color/ColorPalette/Palettes/common.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +21 -24
- package/dist/esm/ui-color/ColorPalette/index.js +2 -3
- package/dist/esm/ui-color/index.js +0 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/esm/ui-menu/DropdownMenu/index.js +2 -3
- package/dist/types/analytics/types/enums.d.ts +2 -0
- package/dist/types/element-browser/constants.d.ts +3 -3
- package/dist/types/keymaps/index.d.ts +2 -0
- package/dist/types/media-inline/constants.d.ts +3 -0
- package/dist/types/messages/block-controls.d.ts +10 -0
- package/dist/types/panel.d.ts +1 -1
- package/dist/types/styles/shared/panel.d.ts +0 -2
- package/dist/types/ui/WidthProvider/index.d.ts +0 -5
- package/dist/types/ui-color/index.d.ts +0 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -0
- package/dist/types-ts4.5/element-browser/constants.d.ts +3 -3
- package/dist/types-ts4.5/keymaps/index.d.ts +2 -0
- package/dist/types-ts4.5/media-inline/constants.d.ts +3 -0
- package/dist/types-ts4.5/messages/block-controls.d.ts +10 -0
- package/dist/types-ts4.5/panel.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -2
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +0 -5
- package/dist/types-ts4.5/ui-color/index.d.ts +0 -1
- package/package.json +3 -7
- package/dist/cjs/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -11
- package/dist/cjs/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -60
- package/dist/es2019/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -6
- package/dist/es2019/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -54
- package/dist/esm/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -6
- package/dist/esm/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -54
- package/dist/types/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.d.ts +0 -1
- package/dist/types/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
- package/dist/types-ts4.5/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.d.ts +0 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
|
@@ -4,19 +4,17 @@ var _templateObject;
|
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
import { N0, N40 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
|
|
9
7
|
import { SmartCardSharedCssClassName } from './smart-card';
|
|
10
8
|
export var DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
11
9
|
export var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
12
10
|
|
|
13
11
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
12
|
export var smartCardStyles = function smartCardStyles() {
|
|
15
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: ", ";\n\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, fg('editor_inline_comments_on_inline_nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler,
|
|
13
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: ", ";\n\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, fg('editor_inline_comments_on_inline_nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler, #F8E6A0)", ";\n border-bottom: 2px solid ", "var(--ds-border-accent-yellow, #B38600)", ";\n box-shadow: ", "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)", ";\n }") : '', "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER,
|
|
16
14
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
17
15
|
fg('linking_platform_smart_links_in_live_pages') ? 'text' : 'pointer',
|
|
18
16
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
19
|
-
fg('linking_platform_smart_links_in_live_pages') ? 'pointer' : 'auto', akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle,
|
|
17
|
+
fg('linking_platform_smart_links_in_live_pages') ? 'pointer' : 'auto', akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, #00000000)", "var(--ds-border-radius-200, 8px)", "var(--ds-border, #091E4224)", akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, getSelectionStyles([SelectionStyle.BoxShadow]), fg('platform-datasources-enable-two-way-sync') ? "\n\t\t\t\t\tinput::selection {\n\t\t\t\t\t\tbackground-color: ".concat("var(--ds-background-selected-hovered, #CCE0FF)", ";\n\t\t\t\t\t}\n\t\t\t\t\tinput::-moz-selection {\n\t\t\t\t\t\tbackground-color: ", "var(--ds-background-selected-hovered, #CCE0FF)", ";\n\t\t\t\t\t}\n\t\t\t\t") : '', DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER,
|
|
20
18
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
21
19
|
fg('linking_platform_smart_links_in_live_pages') ? 'pointer' : 'auto', akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
|
|
22
20
|
};
|
|
@@ -8,7 +8,6 @@ var _templateObject, _templateObject2;
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
-
import { N20, N30 } from '@atlaskit/theme/colors';
|
|
12
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
12
|
import { SortOrder } from '../types';
|
|
14
13
|
import { SORTABLE_COLUMN_ICON_CLASSNAME } from './consts';
|
|
@@ -25,7 +24,7 @@ export var StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
|
|
|
25
24
|
}({});
|
|
26
25
|
|
|
27
26
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
28
|
-
var buttonStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tposition: absolute;\n\tdisplay: flex;\n\theight: 28px;\n\twidth: 28px;\n\tmargin: ", ";\n\tright: 0;\n\ttop: 0;\n\tborder: 2px solid ", ";\n\tborder-radius: ", ";\n\tbackground-color: ", ";\n\tjustify-content: center;\n\talign-items: center;\n\tcursor: pointer;\n\n\t&:hover {\n\t\tbackground-color: ", ";\n\t}\n\n\t&:active {\n\t\tbackground-color: ", ";\n\t}\n\n\t&.", "__not-allowed {\n\t\tcursor: not-allowed;\n\t}\n"])), "var(--ds-space-075, 6px)", "var(--ds-border, #fff)", "var(--ds-border-radius-100, 4px)", "var(--ds-surface-overlay,
|
|
27
|
+
var buttonStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tposition: absolute;\n\tdisplay: flex;\n\theight: 28px;\n\twidth: 28px;\n\tmargin: ", ";\n\tright: 0;\n\ttop: 0;\n\tborder: 2px solid ", ";\n\tborder-radius: ", ";\n\tbackground-color: ", ";\n\tjustify-content: center;\n\talign-items: center;\n\tcursor: pointer;\n\n\t&:hover {\n\t\tbackground-color: ", ";\n\t}\n\n\t&:active {\n\t\tbackground-color: ", ";\n\t}\n\n\t&.", "__not-allowed {\n\t\tcursor: not-allowed;\n\t}\n"])), "var(--ds-space-075, 6px)", "var(--ds-border, #fff)", "var(--ds-border-radius-100, 4px)", "var(--ds-surface-overlay, #FFFFFF)", "var(--ds-surface-overlay-hovered, #F1F2F4)", "var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))", SORTABLE_COLUMN_ICON_CLASSNAME);
|
|
29
28
|
|
|
30
29
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
31
30
|
var iconWrapperStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\twidth: 8px;\n\theight: 12px;\n\ttransition: transform 0.3s cubic-bezier(0.15, 1, 0.3, 1);\n\ttransform-origin: 50% 50%;\n\tdisplay: flex;\n\tjustify-content: center;\n\n\t&.", " {\n\t\ttransform: rotate(-180deg);\n\t}\n\n\t&.", "-inactive {\n\t\topacity: 0.7;\n\t}\n"])), StatusClassNames.DESC, SORTABLE_COLUMN_ICON_CLASSNAME);
|
|
@@ -3,7 +3,6 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { ThemeProvider } from '@emotion/react';
|
|
5
5
|
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { fontSize } from '@atlaskit/theme/constants';
|
|
7
6
|
import { WidthConsumer } from '../WidthProvider';
|
|
8
7
|
export function mapBreakpointToLayoutMaxWidth(breakpoint) {
|
|
9
8
|
switch (breakpoint) {
|
|
@@ -19,7 +18,7 @@ export function BaseThemeWrapper(_ref) {
|
|
|
19
18
|
children = _ref.children;
|
|
20
19
|
var memoizedTheme = useMemo(function () {
|
|
21
20
|
return {
|
|
22
|
-
baseFontSize: baseFontSize ||
|
|
21
|
+
baseFontSize: baseFontSize || 14,
|
|
23
22
|
layoutMaxWidth: akEditorDefaultLayoutWidth
|
|
24
23
|
};
|
|
25
24
|
}, [baseFontSize]);
|
|
@@ -15,16 +15,15 @@ import React from 'react';
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
import { css, jsx } from '@emotion/react';
|
|
17
17
|
import { injectIntl } from 'react-intl-next';
|
|
18
|
-
import { N200, N400 } from '@atlaskit/theme/colors';
|
|
19
18
|
import { messages } from './messages';
|
|
20
19
|
var captionWrapperStyle = css({
|
|
21
20
|
marginTop: "var(--ds-space-100, 8px)",
|
|
22
21
|
textAlign: 'center',
|
|
23
22
|
position: 'relative',
|
|
24
|
-
color: "var(--ds-text-subtle,
|
|
23
|
+
color: "var(--ds-text-subtle, #44546F)"
|
|
25
24
|
});
|
|
26
25
|
var placeholderStyle = css({
|
|
27
|
-
color: "var(--ds-text-subtlest,
|
|
26
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
28
27
|
position: 'absolute',
|
|
29
28
|
top: 0,
|
|
30
29
|
width: '100%'
|
|
@@ -19,10 +19,9 @@ import { css, jsx } from '@emotion/react';
|
|
|
19
19
|
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
20
20
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
21
21
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
22
|
-
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
23
22
|
import Layer from '../Layer';
|
|
24
23
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "
|
|
24
|
+
var packageVersion = "93.1.0";
|
|
26
25
|
var halfFocusRing = 1;
|
|
27
26
|
var dropOffset = '0, 8';
|
|
28
27
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -54,10 +53,10 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
54
53
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
55
54
|
_defineProperty(_assertThisInitialized(_this), "menuWrapper", function () {
|
|
56
55
|
return css({
|
|
57
|
-
color: "var(--ds-text,
|
|
58
|
-
backgroundColor: "var(--ds-surface-overlay,
|
|
56
|
+
color: "var(--ds-text, #172B4D)",
|
|
57
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
59
58
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
60
|
-
boxShadow: "var(--ds-shadow-overlay,
|
|
59
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
|
61
60
|
boxSizing: 'border-box',
|
|
62
61
|
overflow: 'auto',
|
|
63
62
|
padding: "var(--ds-space-050, 4px)".concat(" 0"),
|
|
@@ -12,7 +12,6 @@ import React, { forwardRef } from 'react';
|
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import { defineMessages } from 'react-intl-next';
|
|
14
14
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
15
|
-
import { N30A, N90 } from '@atlaskit/theme/colors';
|
|
16
15
|
export var messages = defineMessages({
|
|
17
16
|
collapseNode: {
|
|
18
17
|
id: 'fabric.editor.collapseNode',
|
|
@@ -48,12 +47,12 @@ var expandIconWrapperStyle = function expandIconWrapperStyle() {
|
|
|
48
47
|
return css({
|
|
49
48
|
cursor: 'pointer',
|
|
50
49
|
display: 'flex',
|
|
51
|
-
color: "var(--ds-icon,
|
|
50
|
+
color: "var(--ds-icon, #44546F)",
|
|
52
51
|
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
53
52
|
width: '24px',
|
|
54
53
|
height: '24px',
|
|
55
54
|
'&:hover': {
|
|
56
|
-
background: "var(--ds-background-neutral-subtle-hovered,
|
|
55
|
+
background: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
|
|
57
56
|
},
|
|
58
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
59
58
|
svg: {
|
|
@@ -3,15 +3,12 @@ var _templateObject;
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { B300, N200, N200A, N300A, N40A, N50A } from '@atlaskit/theme/colors';
|
|
7
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
8
|
-
import { fontSize } from '@atlaskit/theme/constants';
|
|
9
6
|
var BORDER_RADIUS = "var(--ds-border-radius-100, 4px)";
|
|
10
7
|
var EXPAND_COLLAPSED_BACKGROUND = "var(--ds-background-neutral-subtle, transparent)";
|
|
11
8
|
var EXPAND_SELECTED_BACKGROUND = "var(--ds-surface, rgba(255, 255, 255, 0.6))";
|
|
12
|
-
var EXPAND_FOCUSED_BORDER_COLOR = "var(--ds-border-focused,
|
|
9
|
+
var EXPAND_FOCUSED_BORDER_COLOR = "var(--ds-border-focused, #388BFF)";
|
|
13
10
|
var EXPAND_COLLAPSED_BORDER_COLOR = 'transparent';
|
|
14
|
-
var EXPAND_EXPANDED_BORDER_COLOR = "var(--ds-border,
|
|
11
|
+
var EXPAND_EXPANDED_BORDER_COLOR = "var(--ds-border, #091E4224)";
|
|
15
12
|
var containerStyles = function containerStyles(styleProps) {
|
|
16
13
|
var expanded = styleProps.expanded,
|
|
17
14
|
focused = styleProps.focused;
|
|
@@ -36,13 +33,6 @@ var containerStyles = function containerStyles(styleProps) {
|
|
|
36
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
34
|
transition: "background 0.3s ".concat(akEditorSwoopCubicBezier, ", border-color 0.3s ").concat(akEditorSwoopCubicBezier),
|
|
38
35
|
padding: "var(--ds-space-100, 8px)",
|
|
39
|
-
'&:hover': {
|
|
40
|
-
// TODO: Remove the border styles below once design tokens have been enabled and fallbacks are no longer triggered.
|
|
41
|
-
// This is because the default state already uses the same token and, as such, the hover style won't change anything.
|
|
42
|
-
// https://product-fabric.atlassian.net/browse/DSP-4152
|
|
43
|
-
border: "1px solid ".concat("var(--ds-border, ".concat(N50A, ")")),
|
|
44
|
-
background: EXPAND_SELECTED_BACKGROUND
|
|
45
|
-
},
|
|
46
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
47
37
|
'td > :not(style):first-child, td > style:first-child + *': {
|
|
48
38
|
marginTop: 0
|
|
@@ -62,11 +52,11 @@ var titleInputStyles = function titleInputStyles() {
|
|
|
62
52
|
outline: 'none',
|
|
63
53
|
border: 'none',
|
|
64
54
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
65
|
-
fontSize: relativeFontSizeToBase16(
|
|
55
|
+
fontSize: relativeFontSizeToBase16(14),
|
|
66
56
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
67
57
|
lineHeight: akEditorLineHeight,
|
|
68
58
|
fontWeight: 'normal',
|
|
69
|
-
color: "var(--ds-text-subtlest,
|
|
59
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
70
60
|
background: 'transparent',
|
|
71
61
|
display: 'flex',
|
|
72
62
|
flex: 1,
|
|
@@ -74,7 +64,7 @@ var titleInputStyles = function titleInputStyles() {
|
|
|
74
64
|
width: '100%',
|
|
75
65
|
'&::placeholder': {
|
|
76
66
|
opacity: 1,
|
|
77
|
-
color: "var(--ds-text-subtlest,
|
|
67
|
+
color: "var(--ds-text-subtlest, #626F86)"
|
|
78
68
|
}
|
|
79
69
|
});
|
|
80
70
|
};
|
|
@@ -86,9 +76,9 @@ var titleContainerStyles = function titleContainerStyles() {
|
|
|
86
76
|
background: 'none',
|
|
87
77
|
border: 'none',
|
|
88
78
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
89
|
-
fontSize: relativeFontSizeToBase16(
|
|
79
|
+
fontSize: relativeFontSizeToBase16(14),
|
|
90
80
|
width: '100%',
|
|
91
|
-
color: "var(--ds-text-subtle,
|
|
81
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
92
82
|
overflow: 'hidden',
|
|
93
83
|
cursor: 'pointer',
|
|
94
84
|
'&:focus': {
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { N30 } from '@atlaskit/theme/colors';
|
|
8
7
|
var separator = css({
|
|
9
|
-
background: "var(--ds-border,
|
|
8
|
+
background: "var(--ds-border, #091E4224)",
|
|
10
9
|
width: '1px',
|
|
11
10
|
height: '20px',
|
|
12
11
|
margin: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { hexToRgba } from '@atlaskit/adf-schema';
|
|
2
|
-
import { B75, DN400, N30A, N400, R400 } from '@atlaskit/theme/colors';
|
|
3
1
|
export var iconOnlySpacing = {
|
|
4
2
|
'&&': {
|
|
5
3
|
padding: '0px',
|
|
@@ -35,28 +33,28 @@ var background = {
|
|
|
35
33
|
dark: 'inherit'
|
|
36
34
|
},
|
|
37
35
|
hover: {
|
|
38
|
-
light: "var(--ds-background-neutral-subtle-hovered,
|
|
39
|
-
dark: "var(--ds-background-neutral-subtle-hovered,
|
|
36
|
+
light: "var(--ds-background-neutral-subtle-hovered, #091E420F)",
|
|
37
|
+
dark: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
|
|
40
38
|
},
|
|
41
39
|
active: {
|
|
42
|
-
light: "var(--ds-background-neutral-pressed,
|
|
43
|
-
dark: "var(--ds-background-neutral-pressed,
|
|
40
|
+
light: "var(--ds-background-neutral-pressed, #091E424F)",
|
|
41
|
+
dark: "var(--ds-background-neutral-pressed, #091E424F)"
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
};
|
|
47
45
|
var color = {
|
|
48
46
|
danger: {
|
|
49
47
|
default: {
|
|
50
|
-
light: "var(--ds-icon,
|
|
51
|
-
dark: "var(--ds-icon,
|
|
48
|
+
light: "var(--ds-icon, #44546F)",
|
|
49
|
+
dark: "var(--ds-icon, #44546F)"
|
|
52
50
|
},
|
|
53
51
|
hover: {
|
|
54
|
-
light: "var(--ds-icon-danger,
|
|
55
|
-
dark: "var(--ds-icon-danger,
|
|
52
|
+
light: "var(--ds-icon-danger, #C9372C)",
|
|
53
|
+
dark: "var(--ds-icon-danger, #C9372C)"
|
|
56
54
|
},
|
|
57
55
|
active: {
|
|
58
|
-
light: "var(--ds-icon-danger,
|
|
59
|
-
dark: "var(--ds-icon-danger,
|
|
56
|
+
light: "var(--ds-icon-danger, #C9372C)",
|
|
57
|
+
dark: "var(--ds-icon-danger, #C9372C)"
|
|
60
58
|
}
|
|
61
59
|
}
|
|
62
60
|
};
|
|
@@ -7,22 +7,24 @@
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import SuccessIcon from '@atlaskit/icon/glyph/editor/success';
|
|
9
9
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
10
|
-
import { G400, N200, R400 } from '@atlaskit/theme/colors';
|
|
11
|
-
import { h200 } from '@atlaskit/theme/typography';
|
|
12
10
|
var errorColor = css({
|
|
13
|
-
color: "var(--ds-text-danger,
|
|
11
|
+
color: "var(--ds-text-danger, #AE2E24)"
|
|
14
12
|
});
|
|
15
13
|
var validColor = css({
|
|
16
|
-
color: "var(--ds-text-success,
|
|
14
|
+
color: "var(--ds-text-success, #216E4E)"
|
|
17
15
|
});
|
|
18
16
|
|
|
19
17
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
20
18
|
var messageStyle = function messageStyle() {
|
|
21
19
|
return (
|
|
22
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
|
-
css(
|
|
21
|
+
css({
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
23
|
+
fontSize: "".concat(12 / 14, "em"),
|
|
24
|
+
fontStyle: 'inherit',
|
|
25
|
+
lineHeight: 16 / 12,
|
|
24
26
|
fontWeight: 'normal',
|
|
25
|
-
color: "var(--ds-text-subtlest,
|
|
27
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
26
28
|
marginTop: "var(--ds-space-050, 4px)",
|
|
27
29
|
display: 'flex',
|
|
28
30
|
justifyContent: 'baseline'
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { B100, N100, N30, N400 } from '@atlaskit/theme/colors';
|
|
5
4
|
// Normal .className gets overridden by input[type=text] hence this hack to produce input.className
|
|
6
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
6
|
export var panelTextInput = css({
|
|
8
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
9
8
|
'input&': {
|
|
10
9
|
background: 'transparent',
|
|
11
|
-
border: "2px solid ".concat("var(--ds-border,
|
|
10
|
+
border: "2px solid ".concat("var(--ds-border, #091E4224)"),
|
|
12
11
|
borderRadius: 0,
|
|
13
12
|
boxSizing: 'content-box',
|
|
14
|
-
color: "var(--ds-text-subtle,
|
|
13
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
15
14
|
flexGrow: 1,
|
|
16
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
16
|
fontSize: relativeFontSizeToBase16(13),
|
|
@@ -25,10 +24,10 @@ export var panelTextInput = css({
|
|
|
25
24
|
},
|
|
26
25
|
'&:focus': {
|
|
27
26
|
outline: 'none',
|
|
28
|
-
borderColor: "var(--ds-border-focused,
|
|
27
|
+
borderColor: "var(--ds-border-focused, #388BFF)"
|
|
29
28
|
},
|
|
30
29
|
'&::placeholder': {
|
|
31
|
-
color: "var(--ds-text-subtlest,
|
|
30
|
+
color: "var(--ds-text-subtlest, #626F86)"
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
});
|
|
@@ -9,23 +9,21 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
10
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import QuestionsIcon from '@atlaskit/icon/glyph/question-circle';
|
|
12
|
-
import { N30, N50 } from '@atlaskit/theme/colors';
|
|
13
|
-
import { borderRadius, fontSize } from '@atlaskit/theme/constants';
|
|
14
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
13
|
import { ACTION_SUBJECT_ID } from '../../analytics';
|
|
16
14
|
import { unsupportedContentMessages } from '../../messages/unsupportedContent';
|
|
17
15
|
import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
|
|
18
16
|
import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
19
17
|
var blockNodeStyle = css({
|
|
20
|
-
background: "var(--ds-background-disabled,
|
|
21
|
-
border: "1px dashed ".concat("var(--ds-border-disabled,
|
|
18
|
+
background: "var(--ds-background-disabled, #091E4208)",
|
|
19
|
+
border: "1px dashed ".concat("var(--ds-border-disabled, #091E420F)"),
|
|
22
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
|
-
borderRadius: "
|
|
21
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
24
22
|
boxSizing: 'border-box',
|
|
25
23
|
cursor: 'default',
|
|
26
24
|
display: 'flex',
|
|
27
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
|
-
fontSize: relativeFontSizeToBase16(
|
|
26
|
+
fontSize: relativeFontSizeToBase16(14),
|
|
29
27
|
margin: "var(--ds-space-100, 8px)".concat(" 0"),
|
|
30
28
|
minHeight: '24px',
|
|
31
29
|
padding: "var(--ds-space-150, 12px)",
|
|
@@ -9,8 +9,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
10
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import QuestionsIcon from '@atlaskit/icon/glyph/question-circle';
|
|
12
|
-
import { N30, N50 } from '@atlaskit/theme/colors';
|
|
13
|
-
import { borderRadius, fontSize } from '@atlaskit/theme/constants';
|
|
14
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
13
|
import { ACTION_SUBJECT_ID } from '../../analytics';
|
|
16
14
|
import { unsupportedContentMessages } from '../../messages/unsupportedContent';
|
|
@@ -18,15 +16,15 @@ import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-un
|
|
|
18
16
|
import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
19
17
|
var inlineNodeStyle = css({
|
|
20
18
|
alignItems: 'center',
|
|
21
|
-
background: "var(--ds-background-disabled,
|
|
22
|
-
border: "1px dashed ".concat("var(--ds-border-disabled,
|
|
19
|
+
background: "var(--ds-background-disabled, #091E4208)",
|
|
20
|
+
border: "1px dashed ".concat("var(--ds-border-disabled, #091E420F)"),
|
|
23
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
|
-
borderRadius: "
|
|
22
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
25
23
|
boxSizing: 'border-box',
|
|
26
24
|
cursor: 'default',
|
|
27
25
|
display: 'inline-flex',
|
|
28
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
|
-
fontSize: relativeFontSizeToBase16(
|
|
27
|
+
fontSize: relativeFontSizeToBase16(14),
|
|
30
28
|
margin: "0 ".concat("var(--ds-space-025, 2px)"),
|
|
31
29
|
minHeight: '24px',
|
|
32
30
|
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
@@ -9,10 +9,8 @@ import React, { Fragment, useContext, useMemo, useRef, useState } from 'react';
|
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import memoizeOne from 'memoize-one';
|
|
11
11
|
import rafSchedule from 'raf-schd';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
14
13
|
import { isSSR } from '../../core-utils/is-ssr';
|
|
15
|
-
import { isSsrButNoBreakoutScriptObserved } from './isSsrButNoBreakoutScriptObserved';
|
|
16
14
|
var styles = css({
|
|
17
15
|
position: 'relative',
|
|
18
16
|
width: '100%'
|
|
@@ -59,17 +57,11 @@ export var WidthProvider = function WidthProvider(_ref) {
|
|
|
59
57
|
var className = _ref.className,
|
|
60
58
|
shouldCheckExistingValue = _ref.shouldCheckExistingValue,
|
|
61
59
|
children = _ref.children;
|
|
62
|
-
var shouldFixTableResizing = Boolean(fg('platform-fix-table-ssr-resizing'));
|
|
63
|
-
var containerRef = useRef(null);
|
|
64
60
|
var existingContextValue = useContext(WidthContext);
|
|
65
|
-
var _useState = useState(
|
|
61
|
+
var _useState = useState(getBodyWidth),
|
|
66
62
|
_useState2 = _slicedToArray(_useState, 2),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
var _useState3 = useState(getBodyWidth),
|
|
70
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
71
|
-
width = _useState4[0],
|
|
72
|
-
setWidth = _useState4[1];
|
|
63
|
+
width = _useState2[0],
|
|
64
|
+
setWidth = _useState2[1];
|
|
73
65
|
var widthRef = useRef(width);
|
|
74
66
|
var isMountedRef = useRef(true);
|
|
75
67
|
var providerValue = useMemo(function () {
|
|
@@ -93,41 +85,15 @@ export var WidthProvider = function WidthProvider(_ref) {
|
|
|
93
85
|
var skipWidthDetection = shouldCheckExistingValue && existingContextValue.width > 0;
|
|
94
86
|
React.useLayoutEffect(function () {
|
|
95
87
|
isMountedRef.current = true;
|
|
96
|
-
if (shouldFixTableResizing && !isInitialWidthUpdated) {
|
|
97
|
-
// useLayoutEffect is not run in SSR mode
|
|
98
|
-
// The visibility change for SSR is done in packages/editor/renderer/src/ui/Renderer/breakout-ssr.tsx
|
|
99
|
-
setIsInitialWidthUpdated(true);
|
|
100
|
-
if (containerRef.current) {
|
|
101
|
-
setWidth(containerRef.current.offsetWidth);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
88
|
return function () {
|
|
105
89
|
isMountedRef.current = false;
|
|
106
90
|
};
|
|
107
|
-
}, [
|
|
91
|
+
}, []);
|
|
108
92
|
return jsx("div", {
|
|
109
93
|
css: styles
|
|
110
94
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
111
95
|
,
|
|
112
|
-
className: className
|
|
113
|
-
ref: containerRef
|
|
114
|
-
// Using style not css prop because we need to also reset these style in SSR
|
|
115
|
-
// It is done in packages/editor/renderer/src/ui/Renderer/breakout-ssr.tsx
|
|
116
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Intended
|
|
117
|
-
,
|
|
118
|
-
style:
|
|
119
|
-
// The hidden visibility is relying on the observer in breakout-ssr.tsx to clear.
|
|
120
|
-
// Do not hide if the observer is not observed. This happens in editor SSR.
|
|
121
|
-
shouldFixTableResizing && !isSsrButNoBreakoutScriptObserved() && !isInitialWidthUpdated ? {
|
|
122
|
-
// Width is initialized with body width but in Confluence this is too wide as side nav takes some space.
|
|
123
|
-
// Putting the div into hidden until we can get the correct width.
|
|
124
|
-
// Only setting the visibility so children still takes space which will make scrollbar to correct appear.
|
|
125
|
-
// Scrollbar has width too it needs to be taken into account otherwise table is going to shrink after appeared.
|
|
126
|
-
visibility: 'hidden',
|
|
127
|
-
// Because the body width is too wide, the horizontal scrollbar gonna shown
|
|
128
|
-
// Temporary hide it until we get the correct width
|
|
129
|
-
overflowX: 'hidden'
|
|
130
|
-
} : {}
|
|
96
|
+
className: className
|
|
131
97
|
}, !skipWidthDetection && jsx(Fragment, null, jsx(WidthObserver, {
|
|
132
98
|
setWidth: updateWidth,
|
|
133
99
|
offscreen: true
|
|
@@ -7,7 +7,6 @@ import React from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
|
|
10
|
-
import { N0 } from '@atlaskit/theme/colors';
|
|
11
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
12
11
|
import { buttonStyle, buttonWrapperStyle } from './styles';
|
|
13
12
|
var Color = function Color(props) {
|
|
@@ -18,7 +17,7 @@ var Color = function Color(props) {
|
|
|
18
17
|
isSelected = props.isSelected,
|
|
19
18
|
borderColor = props.borderColor,
|
|
20
19
|
_props$checkMarkColor = props.checkMarkColor,
|
|
21
|
-
checkMarkColor = _props$checkMarkColor === void 0 ?
|
|
20
|
+
checkMarkColor = _props$checkMarkColor === void 0 ? '#FFFFFF' : _props$checkMarkColor,
|
|
22
21
|
hexToPaletteColor = props.hexToPaletteColor,
|
|
23
22
|
decorator = props.decorator;
|
|
24
23
|
var colorStyle = hexToPaletteColor ? hexToPaletteColor(value) : value;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { N0, N50, N900 } from '@atlaskit/theme/colors';
|
|
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
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
6
|
export var buttonStyle = css({
|
|
8
7
|
height: '26px',
|
|
9
8
|
width: '26px',
|
|
10
|
-
background: "var(--ds-background-neutral,
|
|
9
|
+
background: "var(--ds-background-neutral, #091E420F)",
|
|
11
10
|
padding: 0,
|
|
12
11
|
borderRadius: '4px',
|
|
13
|
-
border: "1px solid ".concat("var(--ds-border-inverse,
|
|
12
|
+
border: "1px solid ".concat("var(--ds-border-inverse, #FFFFFF)"),
|
|
14
13
|
cursor: 'pointer',
|
|
15
14
|
display: 'block'
|
|
16
15
|
});
|
|
@@ -28,7 +27,7 @@ export var buttonWrapperStyle = css({
|
|
|
28
27
|
borderRadius: '6px',
|
|
29
28
|
'&:focus-within, &:focus, &:hover': {
|
|
30
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
31
|
-
borderColor: "
|
|
30
|
+
borderColor: "var(--ds-border, #091E4224)".concat(" !important")
|
|
32
31
|
}
|
|
33
32
|
});
|
|
34
33
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import chromatism from 'chromatism';
|
|
2
|
-
import { N800 } from '@atlaskit/theme/colors';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* For a given color set the alpha channel to alpha
|
|
@@ -18,5 +17,5 @@ function setAlpha(color, alpha) {
|
|
|
18
17
|
|
|
19
18
|
/** this is not new usage - old code extracted from editor-core */
|
|
20
19
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
21
|
-
export var DEFAULT_BORDER_COLOR = setAlpha(
|
|
20
|
+
export var DEFAULT_BORDER_COLOR = setAlpha('#172B4D', 0.12);
|
|
22
21
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|