@atlaskit/editor-core 177.0.0 → 178.0.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 +89 -0
- package/codemods/__tests__/next-remove-allow-more-text-colors-prop.ts +147 -0
- package/codemods/migrates/next-remove-allow-more-text-colors-prop.ts +58 -0
- package/dist/cjs/create-editor/ErrorBoundary.js +3 -1
- package/dist/cjs/create-editor/ReactEditorView.js +3 -2
- package/dist/cjs/create-editor/create-editor.js +3 -1
- package/dist/cjs/editor.js +7 -0
- package/dist/cjs/labs/next/full-page.js +2 -4
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -3
- package/dist/cjs/plugins/block-type/commands/delete-and-move-cursor.js +67 -0
- package/dist/cjs/plugins/block-type/commands/index.js +9 -1
- package/dist/cjs/plugins/block-type/pm-plugins/keymap.js +8 -3
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -4
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +1 -3
- package/dist/cjs/plugins/card/styles.js +1 -3
- package/dist/cjs/plugins/code-block/styles.js +2 -4
- package/dist/cjs/plugins/collab-edit/styles.js +2 -4
- package/dist/cjs/plugins/collab-edit/ui/styles.js +2 -4
- package/dist/cjs/plugins/date/styles.js +1 -3
- package/dist/cjs/plugins/date/ui/DatePicker/index.js +1 -3
- package/dist/cjs/plugins/expand/ui/styles.js +14 -16
- package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +4 -6
- package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -3
- package/dist/cjs/plugins/extension/ui/Extension/styles.js +5 -7
- package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -4
- package/dist/cjs/plugins/extension/ui/styles.js +1 -3
- package/dist/cjs/plugins/fake-text-cursor/styles.js +1 -3
- package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +12 -12
- package/dist/cjs/plugins/find-replace/ui/styles.js +2 -4
- package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +40 -14
- package/dist/cjs/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -3
- package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +1 -3
- package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +1 -3
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +11 -20
- package/dist/cjs/plugins/floating-toolbar/ui/styles.js +10 -12
- package/dist/cjs/plugins/grid/styles.js +1 -3
- package/dist/cjs/plugins/help-dialog/ui/styles.js +9 -11
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +5 -5
- package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +2 -4
- package/dist/cjs/plugins/layout/styles.js +1 -3
- package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -5
- package/dist/cjs/plugins/media/styles.js +1 -3
- package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +1 -3
- package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +2 -4
- package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +1 -3
- package/dist/cjs/plugins/mentions/styles.js +1 -3
- package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +1 -3
- package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +2 -4
- package/dist/cjs/plugins/panel/styles.js +1 -3
- package/dist/cjs/plugins/placeholder/styles.js +1 -3
- package/dist/cjs/plugins/placeholder-text/styles.js +1 -3
- package/dist/cjs/plugins/rule/styles.js +1 -3
- package/dist/cjs/plugins/status/ui/statusPicker.js +1 -3
- package/dist/cjs/plugins/tasks-and-decisions/styles.js +1 -3
- package/dist/cjs/plugins/text-color/commands/change-color.js +1 -2
- package/dist/cjs/plugins/text-color/pm-plugins/main.js +1 -1
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +2 -10
- package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +1 -3
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +1 -3
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +7 -9
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +1 -3
- package/dist/cjs/plugins/unsupported-content/styles.js +1 -3
- package/dist/cjs/ui/Addon/Dropdown/styles.js +1 -3
- package/dist/cjs/ui/Addon/DropdownItem/styles.js +1 -3
- package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -3
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -4
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +19 -1
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +2 -4
- package/dist/cjs/ui/ChromeCollapsed/styles.js +1 -3
- package/dist/cjs/ui/ColorPalette/Palettes/textColorPalette.js +0 -6
- package/dist/cjs/ui/ColorPickerButton/index.js +3 -8
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -3
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +1 -3
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +1 -3
- package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -3
- package/dist/cjs/ui/ConfigPanel/Header.js +2 -4
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -3
- package/dist/cjs/ui/ContentStyles/index.js +1 -3
- package/dist/cjs/ui/ContextPanel/index.js +1 -3
- package/dist/cjs/ui/ElementBrowser/InsertMenu.js +3 -5
- package/dist/cjs/ui/ElementBrowser/ModalElementBrowser.js +2 -4
- package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +2 -4
- package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +2 -4
- package/dist/cjs/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -3
- package/dist/cjs/ui/ElementBrowser/components/ElementSearch.js +1 -3
- package/dist/cjs/ui/FloatingToolbar/styles.js +1 -3
- package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +3 -5
- package/dist/cjs/ui/PanelTextInput/styles.js +1 -3
- package/dist/cjs/ui/ToolbarArrowKeyNavigationProvider/index.js +27 -2
- package/dist/cjs/ui/ToolbarFeedback/styles.js +3 -5
- package/dist/cjs/ui/WithFlash/index.js +2 -4
- package/dist/cjs/ui/styles.js +2 -4
- package/dist/cjs/utils/performance/instrumented-plugin.js +6 -3
- package/dist/cjs/utils/performance/safer-transactions.js +8 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/create-editor/ErrorBoundary.js +3 -1
- package/dist/es2019/create-editor/ReactEditorView.js +3 -2
- package/dist/es2019/create-editor/create-editor.js +3 -1
- package/dist/es2019/editor.js +7 -0
- package/dist/es2019/labs/next/full-page.js +2 -3
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
- package/dist/es2019/plugins/block-type/commands/delete-and-move-cursor.js +63 -0
- package/dist/es2019/plugins/block-type/commands/index.js +2 -1
- package/dist/es2019/plugins/block-type/pm-plugins/keymap.js +7 -4
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +4 -5
- package/dist/es2019/plugins/card/styles.js +6 -7
- package/dist/es2019/plugins/code-block/styles.js +8 -9
- package/dist/es2019/plugins/collab-edit/styles.js +2 -3
- package/dist/es2019/plugins/collab-edit/ui/styles.js +3 -4
- package/dist/es2019/plugins/date/styles.js +1 -2
- package/dist/es2019/plugins/date/ui/DatePicker/index.js +2 -3
- package/dist/es2019/plugins/expand/ui/styles.js +14 -15
- package/dist/es2019/plugins/extension/ui/Extension/Extension/styles.js +4 -5
- package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
- package/dist/es2019/plugins/extension/ui/Extension/styles.js +6 -7
- package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +3 -4
- package/dist/es2019/plugins/extension/ui/styles.js +2 -3
- package/dist/es2019/plugins/fake-text-cursor/styles.js +2 -3
- package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +12 -12
- package/dist/es2019/plugins/find-replace/ui/styles.js +2 -3
- package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +43 -13
- package/dist/es2019/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
- package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +1 -2
- package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +1 -2
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +12 -21
- package/dist/es2019/plugins/floating-toolbar/ui/styles.js +10 -11
- package/dist/es2019/plugins/grid/styles.js +2 -3
- package/dist/es2019/plugins/help-dialog/ui/styles.js +11 -12
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +6 -5
- package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +5 -6
- package/dist/es2019/plugins/layout/styles.js +4 -5
- package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +4 -5
- package/dist/es2019/plugins/media/styles.js +10 -11
- package/dist/es2019/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
- package/dist/es2019/plugins/media/ui/Media/DropPlaceholder.js +3 -4
- package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +1 -2
- package/dist/es2019/plugins/mentions/styles.js +4 -5
- package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +1 -2
- package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +2 -3
- package/dist/es2019/plugins/panel/styles.js +4 -5
- package/dist/es2019/plugins/placeholder/styles.js +1 -2
- package/dist/es2019/plugins/placeholder-text/styles.js +4 -5
- package/dist/es2019/plugins/rule/styles.js +1 -2
- package/dist/es2019/plugins/status/ui/statusPicker.js +2 -3
- package/dist/es2019/plugins/tasks-and-decisions/styles.js +2 -3
- package/dist/es2019/plugins/text-color/commands/change-color.js +1 -2
- package/dist/es2019/plugins/text-color/pm-plugins/main.js +2 -2
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +2 -6
- package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +1 -2
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +1 -2
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +8 -9
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +2 -3
- package/dist/es2019/plugins/unsupported-content/styles.js +2 -3
- package/dist/es2019/ui/Addon/Dropdown/styles.js +2 -3
- package/dist/es2019/ui/Addon/DropdownItem/styles.js +2 -3
- package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -3
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -3
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +19 -1
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +2 -3
- package/dist/es2019/ui/ChromeCollapsed/styles.js +5 -6
- package/dist/es2019/ui/ColorPalette/Palettes/textColorPalette.js +1 -1
- package/dist/es2019/ui/ColorPickerButton/index.js +20 -9
- package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +1 -2
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +1 -2
- package/dist/es2019/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
- package/dist/es2019/ui/ConfigPanel/Header.js +2 -3
- package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +2 -3
- package/dist/es2019/ui/ContentStyles/index.js +1 -2
- package/dist/es2019/ui/ContextPanel/index.js +1 -2
- package/dist/es2019/ui/ElementBrowser/InsertMenu.js +4 -5
- package/dist/es2019/ui/ElementBrowser/ModalElementBrowser.js +2 -3
- package/dist/es2019/ui/ElementBrowser/components/CategoryList.js +2 -3
- package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
- package/dist/es2019/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
- package/dist/es2019/ui/ElementBrowser/components/ElementSearch.js +1 -2
- package/dist/es2019/ui/FloatingToolbar/styles.js +2 -3
- package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +3 -4
- package/dist/es2019/ui/PanelTextInput/styles.js +3 -4
- package/dist/es2019/ui/ToolbarArrowKeyNavigationProvider/index.js +27 -2
- package/dist/es2019/ui/ToolbarFeedback/styles.js +4 -5
- package/dist/es2019/ui/WithFlash/index.js +3 -4
- package/dist/es2019/ui/styles.js +3 -4
- package/dist/es2019/utils/performance/instrumented-plugin.js +5 -3
- package/dist/es2019/utils/performance/safer-transactions.js +8 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/create-editor/ErrorBoundary.js +3 -1
- package/dist/esm/create-editor/ReactEditorView.js +3 -2
- package/dist/esm/create-editor/create-editor.js +3 -1
- package/dist/esm/editor.js +7 -0
- package/dist/esm/labs/next/full-page.js +2 -3
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
- package/dist/esm/plugins/block-type/commands/delete-and-move-cursor.js +58 -0
- package/dist/esm/plugins/block-type/commands/index.js +2 -1
- package/dist/esm/plugins/block-type/pm-plugins/keymap.js +7 -4
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +1 -2
- package/dist/esm/plugins/card/styles.js +1 -2
- package/dist/esm/plugins/code-block/styles.js +2 -3
- package/dist/esm/plugins/collab-edit/styles.js +2 -3
- package/dist/esm/plugins/collab-edit/ui/styles.js +2 -3
- package/dist/esm/plugins/date/styles.js +1 -2
- package/dist/esm/plugins/date/ui/DatePicker/index.js +1 -2
- package/dist/esm/plugins/expand/ui/styles.js +14 -15
- package/dist/esm/plugins/extension/ui/Extension/Extension/styles.js +4 -5
- package/dist/esm/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
- package/dist/esm/plugins/extension/ui/Extension/styles.js +5 -6
- package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -3
- package/dist/esm/plugins/extension/ui/styles.js +1 -2
- package/dist/esm/plugins/fake-text-cursor/styles.js +1 -2
- package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +12 -12
- package/dist/esm/plugins/find-replace/ui/styles.js +2 -3
- package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +41 -14
- package/dist/esm/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
- package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +1 -2
- package/dist/esm/plugins/floating-toolbar/ui/Separator.js +1 -2
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +12 -21
- package/dist/esm/plugins/floating-toolbar/ui/styles.js +10 -11
- package/dist/esm/plugins/grid/styles.js +1 -2
- package/dist/esm/plugins/help-dialog/ui/styles.js +9 -10
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +5 -4
- package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +2 -3
- package/dist/esm/plugins/layout/styles.js +1 -2
- package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -4
- package/dist/esm/plugins/media/styles.js +1 -2
- package/dist/esm/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
- package/dist/esm/plugins/media/ui/Media/DropPlaceholder.js +2 -3
- package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -2
- package/dist/esm/plugins/mentions/styles.js +1 -2
- package/dist/esm/plugins/mentions/ui/InviteItem/index.js +1 -2
- package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +2 -3
- package/dist/esm/plugins/panel/styles.js +1 -2
- package/dist/esm/plugins/placeholder/styles.js +1 -2
- package/dist/esm/plugins/placeholder-text/styles.js +1 -2
- package/dist/esm/plugins/rule/styles.js +1 -2
- package/dist/esm/plugins/status/ui/statusPicker.js +1 -2
- package/dist/esm/plugins/tasks-and-decisions/styles.js +1 -2
- package/dist/esm/plugins/text-color/commands/change-color.js +1 -2
- package/dist/esm/plugins/text-color/pm-plugins/main.js +2 -2
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +2 -9
- package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +1 -2
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +1 -2
- package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +7 -8
- package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +1 -2
- package/dist/esm/plugins/unsupported-content/styles.js +1 -2
- package/dist/esm/ui/Addon/Dropdown/styles.js +1 -2
- package/dist/esm/ui/Addon/DropdownItem/styles.js +1 -2
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -2
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -3
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +19 -1
- package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +2 -3
- package/dist/esm/ui/ChromeCollapsed/styles.js +1 -2
- package/dist/esm/ui/ColorPalette/Palettes/textColorPalette.js +1 -1
- package/dist/esm/ui/ColorPickerButton/index.js +5 -10
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +1 -2
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +1 -2
- package/dist/esm/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
- package/dist/esm/ui/ConfigPanel/Header.js +2 -3
- package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
- package/dist/esm/ui/ContentStyles/index.js +1 -2
- package/dist/esm/ui/ContextPanel/index.js +1 -2
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +3 -4
- package/dist/esm/ui/ElementBrowser/ModalElementBrowser.js +2 -3
- package/dist/esm/ui/ElementBrowser/components/CategoryList.js +2 -3
- package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
- package/dist/esm/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
- package/dist/esm/ui/ElementBrowser/components/ElementSearch.js +1 -2
- package/dist/esm/ui/FloatingToolbar/styles.js +1 -2
- package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +3 -4
- package/dist/esm/ui/PanelTextInput/styles.js +2 -3
- package/dist/esm/ui/ToolbarArrowKeyNavigationProvider/index.js +27 -2
- package/dist/esm/ui/ToolbarFeedback/styles.js +3 -4
- package/dist/esm/ui/WithFlash/index.js +2 -3
- package/dist/esm/ui/styles.js +2 -3
- package/dist/esm/utils/performance/instrumented-plugin.js +6 -3
- package/dist/esm/utils/performance/safer-transactions.js +8 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/plugins/block-type/commands/delete-and-move-cursor.d.ts +12 -0
- package/dist/types/plugins/block-type/commands/index.d.ts +1 -0
- package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +1 -0
- package/dist/types/plugins/text-color/pm-plugins/main.d.ts +1 -1
- package/dist/types/ui/ColorPalette/Palettes/textColorPalette.d.ts +1 -1
- package/dist/types/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +2 -1
- package/dist/types/utils/performance/instrumented-plugin.d.ts +1 -0
- package/dist/types/utils/performance/safer-transactions.d.ts +2 -1
- package/package.json +10 -11
- package/report.api.md +18 -2
|
@@ -6,11 +6,10 @@ import DocumentFilledIcon from '@atlaskit/icon/glyph/document-filled';
|
|
|
6
6
|
import { hexToRgba } from '@atlaskit/adf-schema';
|
|
7
7
|
import { injectIntl } from 'react-intl-next';
|
|
8
8
|
import { dropPlaceholderMessages } from './drop-placeholder-messages';
|
|
9
|
-
import { token } from '@atlaskit/tokens';
|
|
10
9
|
import { MEDIA_HEIGHT, FILE_WIDTH } from '../../nodeviews/mediaNodeView/media';
|
|
11
10
|
const iconWrapper = css`
|
|
12
|
-
color: ${
|
|
13
|
-
background: ${
|
|
11
|
+
color: ${`var(--ds-icon-accent-blue, ${hexToRgba(B400, 0.4) || B400})`};
|
|
12
|
+
background: ${`var(--ds-background-accent-blue-subtle, ${hexToRgba(B300, 0.6) || B300})`};
|
|
14
13
|
border-radius: ${borderRadius()}px;
|
|
15
14
|
margin: 5px 3px 25px;
|
|
16
15
|
width: ${FILE_WIDTH}px;
|
|
@@ -20,7 +19,7 @@ const iconWrapper = css`
|
|
|
20
19
|
justify-content: center;
|
|
21
20
|
`;
|
|
22
21
|
const dropLine = css`
|
|
23
|
-
background: ${
|
|
22
|
+
background: ${`var(--ds-border-focused, ${B200})`};
|
|
24
23
|
border-radius: ${borderRadius()}px;
|
|
25
24
|
margin: 2px 0;
|
|
26
25
|
width: 100%;
|
|
@@ -17,12 +17,11 @@ import { normalizeUrl } from '../../hyperlink/utils';
|
|
|
17
17
|
import { R400 } from '@atlaskit/theme/colors';
|
|
18
18
|
import { INPUT_METHOD } from '../../analytics/types/enums';
|
|
19
19
|
import { mediaLinkToolbarMessages } from './media-linking-toolbar-messages';
|
|
20
|
-
import { token } from '@atlaskit/tokens';
|
|
21
20
|
const validationWrapper = css`
|
|
22
21
|
line-height: 0;
|
|
23
22
|
padding: 12px 24px 12px 0;
|
|
24
23
|
margin: 0 4px 0 32px;
|
|
25
|
-
border-top: 1px solid ${
|
|
24
|
+
border-top: 1px solid ${`var(--ds-border-danger, ${R400})`};
|
|
26
25
|
align-items: start;
|
|
27
26
|
display: flex;
|
|
28
27
|
flex-direction: column;
|
|
@@ -2,7 +2,6 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
|
|
3
3
|
import { SelectionStyle, getSelectionStyles, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorDeleteBackgroundWithOpacity, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { N500, N30A } from '@atlaskit/theme/colors';
|
|
5
|
-
import { token } from '@atlaskit/tokens';
|
|
6
5
|
export const mentionsStyles = css`
|
|
7
6
|
.${MentionSharedCssClassName.MENTION_CONTAINER} {
|
|
8
7
|
&.${akEditorSelectedNodeClassName} [data-mention-id] > span {
|
|
@@ -10,7 +9,7 @@ export const mentionsStyles = css`
|
|
|
10
9
|
|
|
11
10
|
/* need to specify dark text colour because personal mentions
|
|
12
11
|
(in dark blue) have white text by default */
|
|
13
|
-
color: ${
|
|
12
|
+
color: ${`var(--ds-text-subtle, ${N500})`};
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
15
|
|
|
@@ -20,11 +19,11 @@ export const mentionsStyles = css`
|
|
|
20
19
|
> span
|
|
21
20
|
> span {
|
|
22
21
|
box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px ${akEditorDeleteBorder};
|
|
23
|
-
background-color: ${
|
|
22
|
+
background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackgroundWithOpacity})`};
|
|
24
23
|
}
|
|
25
24
|
.${MentionSharedCssClassName.MENTION_CONTAINER} > span > span > span {
|
|
26
|
-
background-color: ${
|
|
27
|
-
color: ${
|
|
25
|
+
background-color: ${`var(--ds-background-neutral, ${N30A})`};
|
|
26
|
+
color: ${`var(--ds-text-subtle, ${N500})`};
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
`;
|
|
@@ -4,7 +4,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
5
|
import AddIcon from '@atlaskit/icon/glyph/add';
|
|
6
6
|
import { N300 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
7
|
import React, { useCallback, useEffect } from 'react';
|
|
9
8
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
10
9
|
import { avatarStyle, capitalizedStyle, mentionItemStyle, nameSectionStyle, rowStyle, ROW_SIDE_PADDING, AVATAR_HEIGHT, mentionItemSelectedStyle } from './styles';
|
|
@@ -54,7 +53,7 @@ const InviteItem = ({
|
|
|
54
53
|
css: avatarStyle
|
|
55
54
|
}, jsx(AddIcon, {
|
|
56
55
|
label: intl.formatMessage(messages.mentionsAddLabel),
|
|
57
|
-
primaryColor:
|
|
56
|
+
primaryColor: `var(--ds-icon-subtle, ${N300})`
|
|
58
57
|
})), jsx("div", {
|
|
59
58
|
css: nameSectionStyle,
|
|
60
59
|
"data-testid": "name-section"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N30, N300 } from '@atlaskit/theme/colors';
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
3
|
export const ROW_SIDE_PADDING = 14;
|
|
5
4
|
export const rowStyle = css`
|
|
6
5
|
align-items: center;
|
|
@@ -30,7 +29,7 @@ export const nameSectionStyle = css`
|
|
|
30
29
|
flex: 1;
|
|
31
30
|
min-width: 0;
|
|
32
31
|
margin-left: 14px;
|
|
33
|
-
color: ${
|
|
32
|
+
color: ${`var(--ds-text-subtle, ${N300})`};
|
|
34
33
|
opacity: inherit;
|
|
35
34
|
`;
|
|
36
35
|
export const mentionItemStyle = css`
|
|
@@ -41,7 +40,7 @@ export const mentionItemStyle = css`
|
|
|
41
40
|
cursor: pointer;
|
|
42
41
|
`;
|
|
43
42
|
export const mentionItemSelectedStyle = css`
|
|
44
|
-
background-color: ${
|
|
43
|
+
background-color: ${`var(--ds-background-neutral-subtle-hovered, ${N30})`};
|
|
45
44
|
`;
|
|
46
45
|
export const capitalizedStyle = css`
|
|
47
46
|
text-transform: capitalize;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { panelSharedStyles, PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
3
3
|
import { SelectionStyle, getSelectionStyles, akEditorDeleteBackground, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorDeleteIconColor, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
export const panelStyles = props => css`
|
|
6
5
|
.ProseMirror {
|
|
7
6
|
.${PanelSharedCssClassName.prefix} {
|
|
@@ -11,10 +10,10 @@ export const panelStyles = props => css`
|
|
|
11
10
|
&.danger {
|
|
12
11
|
box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px
|
|
13
12
|
${akEditorDeleteBorder};
|
|
14
|
-
background-color: ${
|
|
13
|
+
background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackground})`} !important;
|
|
15
14
|
|
|
16
15
|
.${PanelSharedCssClassName.icon} {
|
|
17
|
-
color: ${
|
|
16
|
+
color: ${`var(--ds-icon-danger, ${akEditorDeleteIconColor})`} !important;
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
}
|
|
@@ -26,10 +25,10 @@ export const panelStyles = props => css`
|
|
|
26
25
|
/* Danger when nested node */
|
|
27
26
|
.danger .${PanelSharedCssClassName.prefix} {
|
|
28
27
|
&[data-panel-type] {
|
|
29
|
-
background-color: ${
|
|
28
|
+
background-color: ${`var(--ds-blanket-danger, ${akEditorDeleteBackgroundWithOpacity})`};
|
|
30
29
|
|
|
31
30
|
.${PanelSharedCssClassName.icon} {
|
|
32
|
-
color: ${
|
|
31
|
+
color: ${`var(--ds-icon-danger, ${akEditorDeleteIconColor})`};
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N200 } from '@atlaskit/theme/colors';
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
3
|
export const placeholderStyles = css`
|
|
5
4
|
.ProseMirror .placeholder-decoration {
|
|
6
|
-
color: ${
|
|
5
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
7
6
|
width: 100%;
|
|
8
7
|
pointer-events: none;
|
|
9
8
|
user-select: none;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N300 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
export const placeholderTextStyles = css`
|
|
6
5
|
.ProseMirror span[data-placeholder] {
|
|
7
|
-
color: ${
|
|
6
|
+
color: ${`var(--ds-text-subtlest, ${N300})`};
|
|
8
7
|
display: inline;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
.ProseMirror span.pm-placeholder {
|
|
12
11
|
display: inline;
|
|
13
|
-
color: ${
|
|
12
|
+
color: ${`var(--ds-text-subtlest, ${N300})`};
|
|
14
13
|
}
|
|
15
14
|
.ProseMirror span.pm-placeholder__text {
|
|
16
15
|
display: inline;
|
|
17
|
-
color: ${
|
|
16
|
+
color: ${`var(--ds-text-subtlest, ${N300})`};
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
.ProseMirror span.pm-placeholder.${akEditorSelectedNodeClassName} {
|
|
@@ -22,7 +21,7 @@ export const placeholderTextStyles = css`
|
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
.ProseMirror span.pm-placeholder__text[data-placeholder]::after {
|
|
25
|
-
color: ${
|
|
24
|
+
color: ${`var(--ds-text-subtlest, ${N300})`};
|
|
26
25
|
cursor: text;
|
|
27
26
|
content: attr(data-placeholder);
|
|
28
27
|
display: inline;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { ruleSharedStyles } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { akEditorLineHeight, akEditorSelectedBorderColor, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
export const ruleStyles = props => css`
|
|
6
5
|
.ProseMirror {
|
|
7
6
|
${ruleSharedStyles(props)};
|
|
@@ -14,7 +13,7 @@ export const ruleStyles = props => css`
|
|
|
14
13
|
|
|
15
14
|
&.${akEditorSelectedNodeClassName} {
|
|
16
15
|
outline: none;
|
|
17
|
-
background-color: ${
|
|
16
|
+
background-color: ${`var(--ds-border-selected, ${akEditorSelectedBorderColor})`};
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
}
|
|
@@ -12,7 +12,6 @@ import { N0 } from '@atlaskit/theme/colors';
|
|
|
12
12
|
import withOuterListeners from '../../../ui/with-outer-listeners';
|
|
13
13
|
import { DEFAULT_STATUS } from '../actions';
|
|
14
14
|
import { analyticsState, createStatusAnalyticsAndFire } from '../analytics';
|
|
15
|
-
import { token } from '@atlaskit/tokens';
|
|
16
15
|
const PopupWithListeners = withOuterListeners(Popup);
|
|
17
16
|
export let InputMethod;
|
|
18
17
|
|
|
@@ -23,10 +22,10 @@ export let InputMethod;
|
|
|
23
22
|
})(InputMethod || (InputMethod = {}));
|
|
24
23
|
|
|
25
24
|
const pickerContainer = css`
|
|
26
|
-
background: ${
|
|
25
|
+
background: ${`var(--ds-surface-overlay, ${N0})`};
|
|
27
26
|
padding: ${gridSize()}px 0;
|
|
28
27
|
border-radius: ${borderRadius()}px;
|
|
29
|
-
box-shadow: ${
|
|
28
|
+
box-shadow: ${"var(--ds-shadow-overlay, 0 0 1px rgba(9, 30, 66, 0.31), 0 4px 8px -2px rgba(9, 30, 66, 0.25))"};
|
|
30
29
|
input {
|
|
31
30
|
text-transform: uppercase;
|
|
32
31
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { SelectionStyle, getSelectionStyles, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
export const taskDecisionStyles = css`
|
|
6
5
|
[data-decision-wrapper] {
|
|
7
6
|
cursor: pointer;
|
|
@@ -17,8 +16,8 @@ export const taskDecisionStyles = css`
|
|
|
17
16
|
.${TaskDecisionSharedCssClassName.DECISION_CONTAINER}.${akEditorSelectedNodeClassName}
|
|
18
17
|
> div {
|
|
19
18
|
box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px
|
|
20
|
-
${
|
|
21
|
-
background-color: ${
|
|
19
|
+
${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
|
|
20
|
+
background-color: ${`var(--ds-blanket-danger, ${akEditorDeleteBackgroundWithOpacity})`};
|
|
22
21
|
&::after {
|
|
23
22
|
content: none; /* reset the Blanket selection style */
|
|
24
23
|
}
|
|
@@ -40,8 +40,7 @@ export const changeColor = color => (state, dispatch) => {
|
|
|
40
40
|
if (textColor) {
|
|
41
41
|
const pluginState = pluginKey.getState(state);
|
|
42
42
|
const activeColor = getActiveColor(state);
|
|
43
|
-
const withColorAnalytics = createWithColorAnalytics(color, activeColor,
|
|
44
|
-
pluginState.paletteExpanded || pluginState.palette);
|
|
43
|
+
const withColorAnalytics = createWithColorAnalytics(color, activeColor, pluginState.palette);
|
|
45
44
|
|
|
46
45
|
if (pluginState.disabled) {
|
|
47
46
|
return false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
|
-
import {
|
|
3
|
+
import { textColorPalette } from '../../../ui/ColorPalette/Palettes/textColorPalette';
|
|
4
4
|
import { DEFAULT_BORDER_COLOR } from '../../../ui/ColorPalette/Palettes/common';
|
|
5
5
|
import { DEFAULT_COLOR, getActiveColor } from '../utils/color';
|
|
6
6
|
import { getDisabledState } from '../utils/disabled';
|
|
@@ -11,7 +11,7 @@ export function createInitialPluginState(editorState, pluginConfig) {
|
|
|
11
11
|
value: defaultColor.color,
|
|
12
12
|
label: defaultColor.label,
|
|
13
13
|
border: DEFAULT_BORDER_COLOR
|
|
14
|
-
}, ...
|
|
14
|
+
}, ...textColorPalette];
|
|
15
15
|
const state = {
|
|
16
16
|
color: getActiveColor(editorState),
|
|
17
17
|
disabled: getDisabledState(editorState),
|
|
@@ -7,7 +7,6 @@ import { defineMessages, injectIntl } from 'react-intl-next';
|
|
|
7
7
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
8
8
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
9
9
|
import ColorPalette from '../../../../ui/ColorPalette';
|
|
10
|
-
import { textColorPalette as originalTextColors } from '../../../../ui/ColorPalette/Palettes/textColorPalette';
|
|
11
10
|
import Dropdown from '../../../../ui/Dropdown';
|
|
12
11
|
import { expandIconWrapperStyle, wrapperStyle, separatorStyles, triggerWrapperStyles } from '../../../../ui/styles';
|
|
13
12
|
import ToolbarButton, { TOOLBAR_BUTTON } from '../../../../ui/ToolbarButton';
|
|
@@ -51,16 +50,13 @@ export class ToolbarTextColor extends React.Component {
|
|
|
51
50
|
|
|
52
51
|
const {
|
|
53
52
|
pluginState: {
|
|
54
|
-
palette
|
|
55
|
-
defaultColor
|
|
53
|
+
palette
|
|
56
54
|
}
|
|
57
55
|
} = this.props; // we store color names in analytics
|
|
58
56
|
|
|
59
57
|
const swatch = palette.find(sw => sw.value === color);
|
|
60
|
-
const isNewColor = color !== defaultColor && !originalTextColors.some(col => col.value === color);
|
|
61
58
|
this.dispatchAnalyticsEvent(this.buildAnalyticsSelectColor({
|
|
62
|
-
color: (swatch ? swatch.label : color).toLowerCase()
|
|
63
|
-
isNewColor
|
|
59
|
+
color: (swatch ? swatch.label : color).toLowerCase()
|
|
64
60
|
}));
|
|
65
61
|
this.handleOpenChange({
|
|
66
62
|
isOpen: false,
|
|
@@ -12,7 +12,6 @@ import { WrapperTypeAhead } from '../ui/WrapperTypeAhead';
|
|
|
12
12
|
import { StatsModifier } from '../stats-modifier';
|
|
13
13
|
import { getTypeAheadQuery } from '../utils';
|
|
14
14
|
import { closeTypeAhead } from '../transforms/close-type-ahead';
|
|
15
|
-
import { token } from '@atlaskit/tokens';
|
|
16
15
|
export const factoryDecorations = ({
|
|
17
16
|
intl,
|
|
18
17
|
popupMountRef,
|
|
@@ -56,7 +55,7 @@ export const factoryDecorations = ({
|
|
|
56
55
|
|
|
57
56
|
typeaheadComponent.dataset.editorPopup = 'true';
|
|
58
57
|
typeaheadComponent.dataset.typeAhead = TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE;
|
|
59
|
-
typeaheadComponent.style.color =
|
|
58
|
+
typeaheadComponent.style.color = `var(--ds-text-accent-blue, ${B400})`;
|
|
60
59
|
typeaheadComponent.style.backgroundColor = 'transparent';
|
|
61
60
|
|
|
62
61
|
const onUndoRedo = inputType => {
|
|
@@ -10,7 +10,6 @@ import { TYPE_AHEAD_DECORATION_ELEMENT_ID } from '../constants';
|
|
|
10
10
|
import { AssistiveText } from './AssistiveText';
|
|
11
11
|
import { typeAheadListMessages } from '../messages';
|
|
12
12
|
import { useIntl } from 'react-intl-next';
|
|
13
|
-
import { token } from '@atlaskit/tokens';
|
|
14
13
|
import * as colors from '@atlaskit/theme/colors';
|
|
15
14
|
|
|
16
15
|
const isNavigationKey = event => {
|
|
@@ -230,7 +229,7 @@ export const InputQuery = /*#__PURE__*/React.memo(({
|
|
|
230
229
|
background: 'transparent',
|
|
231
230
|
border: 'none',
|
|
232
231
|
'&&': {
|
|
233
|
-
color: `${
|
|
232
|
+
color: `${`var(--ds-link, ${colors.B400})`}`
|
|
234
233
|
}
|
|
235
234
|
});
|
|
236
235
|
useLayoutEffect(() => {
|
|
@@ -9,7 +9,6 @@ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
|
9
9
|
import IconFallback from '../../quick-insert/assets/fallback';
|
|
10
10
|
import { shortcutStyle } from '../../../ui/styles';
|
|
11
11
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
12
|
-
import { token } from '@atlaskit/tokens';
|
|
13
12
|
import { useIntl } from 'react-intl-next';
|
|
14
13
|
import { typeAheadListMessages } from '../messages';
|
|
15
14
|
export const ICON_HEIGHT = 40;
|
|
@@ -19,7 +18,7 @@ export const itemIcon = css`
|
|
|
19
18
|
width: ${ICON_WIDTH}px;
|
|
20
19
|
height: ${ICON_HEIGHT}px;
|
|
21
20
|
overflow: hidden;
|
|
22
|
-
border: 1px solid ${
|
|
21
|
+
border: 1px solid ${"var(--ds-border, rgba(223, 225, 229, 0.5))"}; /* N60 at 50% */
|
|
23
22
|
border-radius: ${borderRadius()}px;
|
|
24
23
|
box-sizing: border-box;
|
|
25
24
|
|
|
@@ -42,15 +41,15 @@ const itemBody = css`
|
|
|
42
41
|
const itemText = theme => css`
|
|
43
42
|
white-space: initial;
|
|
44
43
|
color: ${themed({
|
|
45
|
-
light:
|
|
46
|
-
dark:
|
|
44
|
+
light: `var(--ds-text, ${N800})`,
|
|
45
|
+
dark: `var(--ds-text, ${DN600})`
|
|
47
46
|
})(theme)};
|
|
48
47
|
.item-title {
|
|
49
48
|
line-height: 1.4;
|
|
50
49
|
}
|
|
51
50
|
.item-description {
|
|
52
51
|
font-size: ${relativeFontSizeToBase16(12)};
|
|
53
|
-
color: ${
|
|
52
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
54
53
|
margin-top: 3px;
|
|
55
54
|
}
|
|
56
55
|
`;
|
|
@@ -61,10 +60,10 @@ const itemAfter = css`
|
|
|
61
60
|
const customRenderItemDivStyle = css`
|
|
62
61
|
overflow: hidden;
|
|
63
62
|
&:hover {
|
|
64
|
-
background-color: ${
|
|
63
|
+
background-color: ${`var(--ds-background-selected, ${N30})`};
|
|
65
64
|
}
|
|
66
65
|
&:focus {
|
|
67
|
-
box-shadow: inset 0px 0px 0px 2px ${
|
|
66
|
+
box-shadow: inset 0px 0px 0px 2px ${`var(--ds-border-focused, ${B100})`};
|
|
68
67
|
outline: none;
|
|
69
68
|
}
|
|
70
69
|
`;
|
|
@@ -76,7 +75,7 @@ const customRenderItemDivStyle = css`
|
|
|
76
75
|
|
|
77
76
|
const selectionFrame = {
|
|
78
77
|
'& > button:focus': {
|
|
79
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
78
|
+
boxShadow: `inset 0px 0px 0px 2px ${`var(--ds-border-focused, ${B100})`}`,
|
|
80
79
|
outline: 'none',
|
|
81
80
|
'&:active': {
|
|
82
81
|
boxShadow: 'none'
|
|
@@ -84,7 +83,7 @@ const selectionFrame = {
|
|
|
84
83
|
}
|
|
85
84
|
};
|
|
86
85
|
const selectedStyle = css`
|
|
87
|
-
background-color: ${
|
|
86
|
+
background-color: ${`var(--ds-background-selected, ${N30})`};
|
|
88
87
|
`;
|
|
89
88
|
const FallbackIcon = /*#__PURE__*/React.memo(({
|
|
90
89
|
label
|
|
@@ -10,12 +10,11 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/anal
|
|
|
10
10
|
import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE, TYPE_AHEAD_POPUP_CONTENT_CLASS } from '../constants';
|
|
11
11
|
import { TypeAheadList } from './TypeAheadList';
|
|
12
12
|
import { ITEM_PADDING } from './TypeAheadListItem';
|
|
13
|
-
import { token } from '@atlaskit/tokens';
|
|
14
13
|
const DEFAULT_TYPEAHEAD_MENU_HEIGHT = 380;
|
|
15
14
|
const typeAheadContent = css`
|
|
16
|
-
background: ${
|
|
15
|
+
background: ${`var(--ds-surface-overlay, ${N0})`};
|
|
17
16
|
border-radius: ${borderRadius()}px;
|
|
18
|
-
box-shadow: ${
|
|
17
|
+
box-shadow: ${`var(--ds-shadow-overlay, ${`0 0 1px ${N60A}, 0 4px 8px -2px ${N50A}`})`};
|
|
19
18
|
padding: ${gridSize() / 2}px 0;
|
|
20
19
|
width: 320px;
|
|
21
20
|
max-height: 380px; /* ~5.5 visibile items */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { SelectionStyle, getSelectionStyles, akEditorDeleteBackgroundWithOpacity, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
3
|
export const UnsupportedSharedCssClassName = {
|
|
5
4
|
BLOCK_CONTAINER: 'unsupportedBlockView-content-wrap',
|
|
6
5
|
INLINE_CONTAINER: 'unsupportedInlineView-content-wrap'
|
|
@@ -21,8 +20,8 @@ export const unsupportedStyles = css`
|
|
|
21
20
|
.${akEditorSelectedNodeClassName}${blockUnsupportedSelector},
|
|
22
21
|
.${akEditorSelectedNodeClassName}${inlineUnsupportedSelector} {
|
|
23
22
|
border: ${akEditorSelectedBorderSize}px solid
|
|
24
|
-
${
|
|
25
|
-
background-color: ${
|
|
23
|
+
${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
|
|
24
|
+
background-color: ${`var(--ds-blanket-danger, ${akEditorDeleteBackgroundWithOpacity})`};
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
`;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
3
3
|
import { N60A } from '@atlaskit/theme/colors';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
export const dropdown = css`
|
|
6
5
|
display: flex;
|
|
7
6
|
flex-direction: column;
|
|
8
|
-
background: ${
|
|
7
|
+
background: ${"var(--ds-surface-overlay, white)"};
|
|
9
8
|
border-radius: ${borderRadius()}px;
|
|
10
|
-
box-shadow: ${
|
|
9
|
+
box-shadow: ${`var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`};
|
|
11
10
|
box-sizing: border-box;
|
|
12
11
|
padding: 4px 0;
|
|
13
12
|
`;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N800, N20 } from '@atlaskit/theme/colors';
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
3
|
export const dropdownItem = css`
|
|
5
4
|
display: flex;
|
|
6
5
|
align-items: center;
|
|
7
6
|
cursor: pointer;
|
|
8
7
|
text-decoration: none;
|
|
9
8
|
padding: 8px 32px 8px 12px;
|
|
10
|
-
color: ${
|
|
9
|
+
color: ${`var(--ds-text, ${N800})`};
|
|
11
10
|
> span {
|
|
12
11
|
display: flex;
|
|
13
12
|
margin-right: 8px;
|
|
14
13
|
}
|
|
15
14
|
&:hover {
|
|
16
|
-
background-color: ${
|
|
15
|
+
background-color: ${`var(--ds-background-neutral-subtle-hovered, ${N20})`};
|
|
17
16
|
}
|
|
18
17
|
`;
|
|
@@ -7,7 +7,6 @@ import ButtonGroup from '@atlaskit/button/button-group';
|
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
8
8
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
9
9
|
import { N40 } from '@atlaskit/theme/colors';
|
|
10
|
-
import { token } from '@atlaskit/tokens';
|
|
11
10
|
import Toolbar from '../../Toolbar';
|
|
12
11
|
import PluginSlot from '../../PluginSlot';
|
|
13
12
|
import WithPluginState from '../../WithPluginState';
|
|
@@ -40,8 +39,8 @@ const commentEditorStyle = css`
|
|
|
40
39
|
/* calc(2px + 40px + 24px + ( 20px + (32px * 2))) */
|
|
41
40
|
|
|
42
41
|
height: auto;
|
|
43
|
-
background-color: ${
|
|
44
|
-
border: 1px solid ${
|
|
42
|
+
background-color: ${"var(--ds-background-input, white)"};
|
|
43
|
+
border: 1px solid ${`var(--ds-border, ${N40})`};
|
|
45
44
|
box-sizing: border-box;
|
|
46
45
|
border-radius: ${borderRadius()}px;
|
|
47
46
|
|
|
@@ -3,7 +3,6 @@ import React, { useEffect, useState } from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
5
5
|
import { N30 } from '@atlaskit/theme/colors';
|
|
6
|
-
import { token } from '@atlaskit/tokens';
|
|
7
6
|
import { akEditorToolbarKeylineHeight, akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
8
7
|
export const TableControlsPadding = 20;
|
|
9
8
|
const mainToolbarWrapperStyle = css`
|
|
@@ -12,7 +11,7 @@ const mainToolbarWrapperStyle = css`
|
|
|
12
11
|
padding: ${gridSize()}px ${gridSize()}px 0;
|
|
13
12
|
display: flex;
|
|
14
13
|
height: auto;
|
|
15
|
-
background-color: ${
|
|
14
|
+
background-color: ${"var(--ds-surface, white)"};
|
|
16
15
|
box-shadow: none;
|
|
17
16
|
padding-left: ${TableControlsPadding}px;
|
|
18
17
|
|
|
@@ -37,7 +36,7 @@ const stickyToolbarWrapperStyle = css`
|
|
|
37
36
|
transition: box-shadow ease-in-out 0.2s;
|
|
38
37
|
&.show-keyline {
|
|
39
38
|
box-shadow: 0 ${akEditorToolbarKeylineHeight}px 0 0
|
|
40
|
-
${
|
|
39
|
+
${`var(--ds-border, ${N30})`};
|
|
41
40
|
}
|
|
42
41
|
`;
|
|
43
42
|
|
|
@@ -65,6 +65,22 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
65
65
|
return () => window.removeEventListener('resize', updateOnResize);
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
+
|
|
69
|
+
const isShortcutToFocusToolbar = event => {
|
|
70
|
+
//Alt + F9 to reach first element in this main toolbar
|
|
71
|
+
return event.altKey && (event.key === 'F9' || event.keyCode === 120);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const handleEscape = event => {
|
|
75
|
+
var _props$editorView;
|
|
76
|
+
|
|
77
|
+
if (!((_props$editorView = props.editorView) !== null && _props$editorView !== void 0 && _props$editorView.hasFocus())) {
|
|
78
|
+
var _props$editorView2;
|
|
79
|
+
|
|
80
|
+
(_props$editorView2 = props.editorView) === null || _props$editorView2 === void 0 ? void 0 : _props$editorView2.focus();
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
68
84
|
return jsx(ContextPanelConsumer, null, ({
|
|
69
85
|
width: contextPanelWidth
|
|
70
86
|
}) => {
|
|
@@ -72,7 +88,9 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
72
88
|
|
|
73
89
|
return jsx(ToolbarArrowKeyNavigationProvider, {
|
|
74
90
|
editorView: props.editorView,
|
|
75
|
-
childComponentSelector: "[data-testid='ak-editor-main-toolbar']"
|
|
91
|
+
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
92
|
+
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
93
|
+
handleEscape: handleEscape
|
|
76
94
|
}, jsx("div", {
|
|
77
95
|
css: mainToolbarStyle(props.showKeyline || contextPanelWidth > 0, !!((_props$featureFlags8 = props.featureFlags) !== null && _props$featureFlags8 !== void 0 && _props$featureFlags8.twoLineEditorToolbar)),
|
|
78
96
|
"data-testid": "ak-editor-main-toolbar"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N30 } from '@atlaskit/theme/colors';
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
5
4
|
import { akEditorMenuZIndex, akEditorSwoopCubicBezier, akEditorToolbarKeylineHeight, akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
6
5
|
export const MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
|
|
@@ -8,7 +7,7 @@ const toolbarLineHeight = 56; // box-shadow is overriden by the mainToolbar
|
|
|
8
7
|
|
|
9
8
|
const mainToolbarWithKeyline = css`
|
|
10
9
|
box-shadow: 0 ${akEditorToolbarKeylineHeight}px 0 0
|
|
11
|
-
${
|
|
10
|
+
${`var(--ds-border, ${N30})`};
|
|
12
11
|
`;
|
|
13
12
|
const mainToolbarTwoLineStyle = css`
|
|
14
13
|
@media (max-width: ${MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT}px) {
|
|
@@ -26,7 +25,7 @@ const mainToolbar = css`
|
|
|
26
25
|
height: ${toolbarLineHeight}px;
|
|
27
26
|
flex-shrink: 0;
|
|
28
27
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4456
|
|
29
|
-
background-color: ${
|
|
28
|
+
background-color: ${"var(--ds-surface, white)"};
|
|
30
29
|
|
|
31
30
|
& object {
|
|
32
31
|
height: 0 !important;
|
|
@@ -2,12 +2,11 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { akEditorSubtleAccent, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
3
3
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
4
4
|
import { N300, N50 } from '@atlaskit/theme/colors';
|
|
5
|
-
import { token } from '@atlaskit/tokens';
|
|
6
5
|
export const inputStyle = css`
|
|
7
6
|
/* Normal .className gets overridden by input[type=text] hence this hack to produce input.className */
|
|
8
7
|
input& {
|
|
9
|
-
background-color: ${
|
|
10
|
-
border: 1px solid ${
|
|
8
|
+
background-color: ${"var(--ds-background-input, white)"};
|
|
9
|
+
border: 1px solid ${`var(--ds-border-input, ${akEditorSubtleAccent})`};
|
|
11
10
|
border-radius: ${borderRadius()}px;
|
|
12
11
|
box-sizing: border-box;
|
|
13
12
|
height: 40px;
|
|
@@ -19,11 +18,11 @@ export const inputStyle = css`
|
|
|
19
18
|
font-weight: 400;
|
|
20
19
|
line-height: 1.42857142857143;
|
|
21
20
|
letter-spacing: -0.005em;
|
|
22
|
-
color: ${
|
|
21
|
+
color: ${`var(--ds-text-subtlest, ${N300})`};
|
|
23
22
|
|
|
24
23
|
&:hover {
|
|
25
|
-
background-color: ${
|
|
26
|
-
border-color: ${
|
|
24
|
+
background-color: ${"var(--ds-background-input-hovered, white)"};
|
|
25
|
+
border-color: ${`var(--ds-border-input, ${N50})`};
|
|
27
26
|
cursor: text;
|
|
28
27
|
}
|
|
29
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { textColorPalette
|
|
1
|
+
export { textColorPalette } from '@atlaskit/editor-common/ui-color';
|