@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
|
@@ -7,7 +7,6 @@ import React, { useMemo } from 'react';
|
|
|
7
7
|
import { jsx, css, useTheme } from '@emotion/react';
|
|
8
8
|
import { whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, shadowSharedStyle, dateSharedStyle, tasksAndDecisionsStyles, annotationSharedStyles, smartCardSharedStyles, textColorStyles } from '@atlaskit/editor-common/styles';
|
|
9
9
|
import { editorFontSize } from '@atlaskit/editor-shared-styles';
|
|
10
|
-
import { token } from '@atlaskit/tokens';
|
|
11
10
|
import { unsupportedStyles } from '../../plugins/unsupported-content/styles';
|
|
12
11
|
import { telepointerStyle } from '../../plugins/collab-edit/styles';
|
|
13
12
|
import { gapCursorStyles } from '../../plugins/selection/gap-cursor/styles';
|
|
@@ -42,7 +41,7 @@ import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewPro
|
|
|
42
41
|
var contentStyles = function contentStyles(props) {
|
|
43
42
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), editorFontSize({
|
|
44
43
|
theme: props.theme
|
|
45
|
-
}), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles,
|
|
44
|
+
}), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(props), blocktypeStyles(props), textFormattingStyles(props), textColorStyles, listsStyles, ruleStyles(props), mediaStyles, layoutStyles, telepointerStyle, gapCursorStyles, tableStyles(props), panelStyles(props), fakeCursorStyles, mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(props), findReplaceStyles, taskDecisionStyles, statusStyles, annotationSharedStyles(props), smartCardStyles, smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, ClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
46
45
|
};
|
|
47
46
|
|
|
48
47
|
export var createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
@@ -30,7 +30,6 @@ import { pluginKey as contextPanelPluginKey } from '../../plugins/context-panel'
|
|
|
30
30
|
import { pluginKey as widthPluginKey } from '../../plugins/width';
|
|
31
31
|
import WithEditorActions from '../WithEditorActions';
|
|
32
32
|
import { getChildBreakoutModes } from '../../utils/document';
|
|
33
|
-
import { token } from '@atlaskit/tokens';
|
|
34
33
|
var ANIM_SPEED_MS = 500;
|
|
35
34
|
var EDITOR_WIDTH = akEditorDefaultLayoutWidth + akEditorBreakoutPadding;
|
|
36
35
|
var WIDE_EDITOR_WIDTH = akEditorWideLayoutWidth + akEditorBreakoutPadding;
|
|
@@ -48,7 +47,7 @@ export var shouldPanelBePositionedOverEditor = function shouldPanelBePositionedO
|
|
|
48
47
|
return editorNotFullWidth && (hasSpaceForPanel || hasSpaceForWideBreakoutsAndPanel);
|
|
49
48
|
};
|
|
50
49
|
var panelHidden = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 0;\n"])));
|
|
51
|
-
export var panel = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", "px;\n height: 100%;\n transition: width ", "ms ", ";\n overflow: hidden;\n box-shadow: inset 2px 0 0 0 ", ";\n"])), akEditorContextPanelWidth, ANIM_SPEED_MS, akEditorSwoopCubicBezier,
|
|
50
|
+
export var panel = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", "px;\n height: 100%;\n transition: width ", "ms ", ";\n overflow: hidden;\n box-shadow: inset 2px 0 0 0 ", ";\n"])), akEditorContextPanelWidth, ANIM_SPEED_MS, akEditorSwoopCubicBezier, "var(--ds-border, ".concat(N30, ")"));
|
|
52
51
|
export var content = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n transition: width 600ms ", ";\n box-sizing: border-box;\n padding: 16px 16px 0px;\n width: ", "px;\n height: 100%;\n overflow-y: auto;\n"])), akEditorSwoopCubicBezier, akEditorContextPanelWidth);
|
|
53
52
|
export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
|
|
54
53
|
_inherits(SwappableContentArea, _React$PureComponent);
|
|
@@ -23,7 +23,6 @@ import { getFeaturedQuickInsertItems, searchQuickInsertItems } from '../../plugi
|
|
|
23
23
|
import { insertItem } from '../../plugins/quick-insert/commands';
|
|
24
24
|
import ElementBrowser from './components/ElementBrowserLoader';
|
|
25
25
|
import { ELEMENT_ITEM_HEIGHT } from './constants';
|
|
26
|
-
import { token } from '@atlaskit/tokens';
|
|
27
26
|
|
|
28
27
|
var InsertMenu = function InsertMenu(_ref) {
|
|
29
28
|
var editorView = _ref.editorView,
|
|
@@ -160,9 +159,9 @@ var insertMenuWrapper = function insertMenuWrapper(theme, itemCount) {
|
|
|
160
159
|
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 320px;\n height: ", "px;\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n"])), getInsertMenuHeight({
|
|
161
160
|
itemCount: itemCount
|
|
162
161
|
}), themed({
|
|
163
|
-
light:
|
|
164
|
-
dark:
|
|
165
|
-
})(theme), borderRadius(),
|
|
162
|
+
light: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
163
|
+
dark: "var(--ds-surface-overlay, ".concat(DN50, ")")
|
|
164
|
+
})(theme), borderRadius(), "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(N30A, ",\n 0 2px 1px ").concat(N30A, ",\n 0 0 20px -6px ").concat(N60A), ")"));
|
|
166
165
|
};
|
|
167
166
|
|
|
168
167
|
var itemBefore = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 40px;\n height: 40px;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: ", "px;\n"])), gridSize() / 2);
|
|
@@ -17,12 +17,11 @@ import ElementBrowser from './components/ElementBrowserLoader';
|
|
|
17
17
|
import { getCategories } from './categories';
|
|
18
18
|
import { MODAL_WRAPPER_PADDING } from './constants';
|
|
19
19
|
import { messages } from './messages';
|
|
20
|
-
import { token } from '@atlaskit/tokens';
|
|
21
20
|
var actions = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n margin: 0 -4px;\n"])));
|
|
22
21
|
var actionItem = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex: 1 0 auto;\n margin: 0 4px;\n"])));
|
|
23
22
|
var wrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex: 1 1 auto;\n box-sizing: border-box;\n padding: ", "px ", "px 0 10px;\n overflow: hidden;\n background-color: ", ";\n border-radius: ", "px;\n"])), MODAL_WRAPPER_PADDING, MODAL_WRAPPER_PADDING, themed({
|
|
24
|
-
light:
|
|
25
|
-
dark:
|
|
23
|
+
light: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
24
|
+
dark: "var(--ds-surface-overlay, ".concat(DN50, ")")
|
|
26
25
|
})(), borderRadius());
|
|
27
26
|
var modalFooter = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n padding: ", "px;\n\n position: relative;\n align-items: center;\n justify-content: space-between;\n"])), MODAL_WRAPPER_PADDING);
|
|
28
27
|
|
|
@@ -22,7 +22,6 @@ import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
|
22
22
|
import { DEVICE_BREAKPOINT_NUMBERS, GRID_SIZE } from '../constants';
|
|
23
23
|
import useFocus from '../hooks/use-focus';
|
|
24
24
|
import { fireAnalyticsEvent, EVENT_TYPE, ACTION_SUBJECT, ACTION_SUBJECT_ID, ACTION } from '../../../plugins/analytics';
|
|
25
|
-
import { token } from '@atlaskit/tokens';
|
|
26
25
|
|
|
27
26
|
function CategoryList(_ref) {
|
|
28
27
|
var _ref$categories = _ref.categories,
|
|
@@ -91,9 +90,9 @@ function CategoryListItem(_ref2) {
|
|
|
91
90
|
marginLeft: '2px',
|
|
92
91
|
height: '100%',
|
|
93
92
|
width: '100%',
|
|
94
|
-
color: category.name !== selectedCategory ?
|
|
93
|
+
color: category.name !== selectedCategory ? "var(--ds-text, ".concat(N800, ")") : "var(--ds-text-selected, ".concat(B400, ")")
|
|
95
94
|
}, category.name === selectedCategory && {
|
|
96
|
-
background:
|
|
95
|
+
background: "var(--ds-background-selected, ".concat(B50, ")")
|
|
97
96
|
})
|
|
98
97
|
}, rest);
|
|
99
98
|
}, [category.name, selectedCategory]);
|
|
@@ -16,7 +16,6 @@ import { ButtonItem } from '@atlaskit/menu';
|
|
|
16
16
|
import { B100, N200 } from '@atlaskit/theme/colors';
|
|
17
17
|
import Tooltip from '@atlaskit/tooltip';
|
|
18
18
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
19
|
-
import { token } from '@atlaskit/tokens';
|
|
20
19
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
21
20
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../../plugins/analytics';
|
|
22
21
|
import IconFallback from '../../../../plugins/quick-insert/assets/fallback';
|
|
@@ -237,7 +236,7 @@ var ItemContent = /*#__PURE__*/memo(function (_ref6) {
|
|
|
237
236
|
css: itemDescription
|
|
238
237
|
}, description)));
|
|
239
238
|
});
|
|
240
|
-
var elementItemsWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n flex-flow: row wrap;\n align-items: flex-start;\n justify-content: flex-start;\n overflow: hidden;\n padding: ", "px; // For Focus outline\n\n .ReactVirtualized__Collection {\n border-radius: 3px; // Standard border-radius across other components like Search or Item.\n outline: none;\n\n :focus {\n box-shadow: 0 0 0 ", "px\n ", ";\n }\n }\n .ReactVirtualized__Collection__innerScrollContainer {\n div[class='element-item-wrapper']:last-child {\n padding-bottom: 4px;\n }\n }\n"])), ELEMENT_LIST_PADDING, ELEMENT_LIST_PADDING,
|
|
239
|
+
var elementItemsWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n flex-flow: row wrap;\n align-items: flex-start;\n justify-content: flex-start;\n overflow: hidden;\n padding: ", "px; // For Focus outline\n\n .ReactVirtualized__Collection {\n border-radius: 3px; // Standard border-radius across other components like Search or Item.\n outline: none;\n\n :focus {\n box-shadow: 0 0 0 ", "px\n ", ";\n }\n }\n .ReactVirtualized__Collection__innerScrollContainer {\n div[class='element-item-wrapper']:last-child {\n padding-bottom: 4px;\n }\n }\n"])), ELEMENT_LIST_PADDING, ELEMENT_LIST_PADDING, "var(--ds-border-focused, ".concat(B100, ")"));
|
|
241
240
|
var elementItemWrapper = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n div {\n button {\n height: 75px;\n align-items: flex-start;\n padding: 12px 12px 11px;\n }\n }\n"])));
|
|
242
241
|
var itemBody = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n line-height: 1.4;\n width: 100%;\n\n margin-top: -2px; // Fixes the Item Icon and text's alignment issue\n"])));
|
|
243
242
|
/*
|
|
@@ -246,7 +245,7 @@ var itemBody = css(_templateObject3 || (_templateObject3 = _taggedTemplateLitera
|
|
|
246
245
|
*/
|
|
247
246
|
|
|
248
247
|
var multilineStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"])));
|
|
249
|
-
var itemDescription = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", ";\n\n overflow: hidden;\n font-size: ", ";\n color: ", ";\n margin-top: 2px;\n"])), multilineStyle, relativeFontSizeToBase16(11.67),
|
|
248
|
+
var itemDescription = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", ";\n\n overflow: hidden;\n font-size: ", ";\n color: ", ";\n margin-top: 2px;\n"])), multilineStyle, relativeFontSizeToBase16(11.67), "var(--ds-text-subtle, ".concat(N200, ")"));
|
|
250
249
|
var itemText = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: inherit;\n white-space: initial;\n"])));
|
|
251
250
|
var itemTitleWrapper = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between; // Title and keyboardshortcut are rendered in the same block\n"])));
|
|
252
251
|
var itemTitle = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 100%;\n overflow: hidden;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n"])));
|
|
@@ -7,7 +7,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
7
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
8
|
import Button from '@atlaskit/button';
|
|
9
9
|
import NotFoundIllustration from './NotFoundIllustration';
|
|
10
|
-
import { token } from '@atlaskit/tokens';
|
|
11
10
|
export default function EmptyState(_ref) {
|
|
12
11
|
var onExternalLinkClick = _ref.onExternalLinkClick;
|
|
13
12
|
return jsx("div", {
|
|
@@ -37,7 +36,7 @@ export default function EmptyState(_ref) {
|
|
|
37
36
|
description: "Empty state sub-heading external link"
|
|
38
37
|
})))));
|
|
39
38
|
}
|
|
40
|
-
var emptyStateHeading = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: 1.42857em;\n line-height: 1.2;\n color: ", ";\n font-weight: 500;\n letter-spacing: -0.008em;\n margin-top: 28px;\n"])),
|
|
39
|
+
var emptyStateHeading = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: 1.42857em;\n line-height: 1.2;\n color: ", ";\n font-weight: 500;\n letter-spacing: -0.008em;\n margin-top: 28px;\n"])), "var(--ds-text, rgb(23, 43, 77))");
|
|
41
40
|
var emptyStateSubHeading = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-top: 16px;\n max-width: 400px;\n text-align: center;\n"])));
|
|
42
41
|
var emptyStateWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n"])));
|
|
43
42
|
var externalLinkWrapper = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-top: 14px;\n"])));
|
|
@@ -15,7 +15,6 @@ import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
|
|
|
15
15
|
import useFocus from '../hooks/use-focus';
|
|
16
16
|
import { Modes } from '../types';
|
|
17
17
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
18
|
-
import { token } from '@atlaskit/tokens';
|
|
19
18
|
|
|
20
19
|
function ElementSearch(_ref) {
|
|
21
20
|
var onSearch = _ref.onSearch,
|
|
@@ -76,7 +75,7 @@ var placeHolderMessage = {
|
|
|
76
75
|
var styledShortcut = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n padding: ", "px ", "px;\n width: ", "px;\n"])), shortcutStyle, GRID_SIZE / 2, GRID_SIZE, GRID_SIZE * 6);
|
|
77
76
|
var wrapper = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & > [data-ds--text-field--container] {\n height: ", "px;\n border-radius: ", "px;\n flex: 1 1 100%;\n overflow: visible;\n & > [data-ds--text-field--input] {\n margin-bottom: 3px;\n font-size: ", ";\n padding: ", "px 6px ", "px 0;\n }\n }\n"])), GRID_SIZE * 6, GRID_SIZE, relativeFontSizeToBase16(14), GRID_SIZE, GRID_SIZE);
|
|
78
77
|
var wrapperInline = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n & > [data-ds--text-field--container] {\n height: ", "px;\n flex: none;\n overflow: revert;\n }\n"])), GRID_SIZE * 5);
|
|
79
|
-
var elementBeforeInput = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 1px 6px 0 8px;\n color: ", ";\n\n // Custom SearchIcon style\n span,\n svg {\n height: 20px;\n width: 20px;\n }\n"])),
|
|
78
|
+
var elementBeforeInput = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 1px 6px 0 8px;\n color: ", ";\n\n // Custom SearchIcon style\n span,\n svg {\n height: 20px;\n width: 20px;\n }\n"])), "var(--ds-icon, ".concat(N200, ")"));
|
|
80
79
|
var elementAfterInput = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin: 0 8px;\n height: ", ";\n text-align: center;\n"])), SEARCH_ITEM_HEIGHT_WIDTH);
|
|
81
80
|
var MemoizedElementSearchWithAnalytics = /*#__PURE__*/memo(withAnalyticsContext({
|
|
82
81
|
component: 'Searchbar'
|
|
@@ -5,7 +5,6 @@ var _templateObject, _templateObject2;
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
7
7
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
8
|
-
import { token } from '@atlaskit/tokens';
|
|
9
8
|
export var container = function container(height) {
|
|
10
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-radius: ", "px;\n box-shadow: ", ";\n display: flex;\n align-items: center;\n box-sizing: border-box;\n padding: 4px 8px;\n background-color: ", ";\n ", ";\n"])), borderRadius(),
|
|
9
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-radius: ", "px;\n box-shadow: ", ";\n display: flex;\n align-items: center;\n box-sizing: border-box;\n padding: 4px 8px;\n background-color: ", ";\n ", ";\n"])), borderRadius(), "var(--ds-shadow-overlay, ".concat("0 12px 24px -6px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")"), "var(--ds-background-input, ".concat(N0, ")"), height ? css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: ", "px;\n "])), height) : '');
|
|
11
10
|
};
|
|
@@ -19,17 +19,16 @@ import { css, jsx } from '@emotion/react'; // AFP-2532 TODO: Fix automatic suppr
|
|
|
19
19
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
20
20
|
|
|
21
21
|
import { fontSizeSmall } from '@atlaskit/theme';
|
|
22
|
-
import { token } from '@atlaskit/tokens';
|
|
23
22
|
import { N20, N300, N800 } from '@atlaskit/theme/colors';
|
|
24
23
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
25
24
|
import { getCorrectAltByIconUrl } from './listItemAlts';
|
|
26
25
|
import { transformTimeStamp } from './transformTimeStamp';
|
|
27
26
|
import { injectIntl } from 'react-intl-next';
|
|
28
27
|
export var container = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: transparent;\n padding: 8px 12px;\n cursor: pointer;\n display: flex;\n margin-top: 0;\n"])));
|
|
29
|
-
export var containerSelected = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])),
|
|
28
|
+
export var containerSelected = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), "var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")"));
|
|
30
29
|
var nameWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n overflow: hidden;\n"])));
|
|
31
|
-
export var nameStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 20px;\n"])),
|
|
32
|
-
export var containerName = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n line-height: 14px;\n font-size: ", ";\n"])),
|
|
30
|
+
export var nameStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 20px;\n"])), "var(--ds-text, ".concat(N800, ")"));
|
|
31
|
+
export var containerName = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n line-height: 14px;\n font-size: ", ";\n"])), "var(--ds-text-subtlest, ".concat(N300, ")"), relativeFontSizeToBase16(fontSizeSmall()));
|
|
33
32
|
var iconStyle = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n min-width: 16px;\n margin-top: 3px;\n margin-right: 12px;\n\n img {\n max-width: 16px;\n }\n"])));
|
|
34
33
|
|
|
35
34
|
var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -5,9 +5,8 @@ var _templateObject, _templateObject2;
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { N400, N100 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export var panelTextInput = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n input& {\n background: transparent;\n border: 0;\n border-radius: 0;\n box-sizing: content-box;\n color: ", ";\n flex-grow: 1;\n font-size: ", ";\n line-height: 20px;\n padding: 0;\n min-width: 145px;\n\n /* Hides IE10+ built-in [x] clear input button */\n &::-ms-clear {\n display: none;\n }\n\n &:focus {\n outline: none;\n }\n\n &::placeholder {\n color: ", ";\n }\n }\n"])), token('color.text.subtle', N400), relativeFontSizeToBase16(13), token('color.text.subtlest', N100));
|
|
8
|
+
// Normal .className gets overridden by input[type=text] hence this hack to produce input.className
|
|
9
|
+
export var panelTextInput = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n input& {\n background: transparent;\n border: 0;\n border-radius: 0;\n box-sizing: content-box;\n color: ", ";\n flex-grow: 1;\n font-size: ", ";\n line-height: 20px;\n padding: 0;\n min-width: 145px;\n\n /* Hides IE10+ built-in [x] clear input button */\n &::-ms-clear {\n display: none;\n }\n\n &:focus {\n outline: none;\n }\n\n &::placeholder {\n color: ", ";\n }\n }\n"])), "var(--ds-text-subtle, ".concat(N400, ")"), relativeFontSizeToBase16(13), "var(--ds-text-subtlest, ".concat(N100, ")"));
|
|
11
10
|
export var panelTextInputWithCustomWidth = function panelTextInputWithCustomWidth(width) {
|
|
12
11
|
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n input& {\n width: ", "px;\n }\n"])), width);
|
|
13
12
|
};
|
|
@@ -23,7 +23,8 @@ export var ToolbarArrowKeyNavigationProvider = function ToolbarArrowKeyNavigatio
|
|
|
23
23
|
editorView = _ref.editorView,
|
|
24
24
|
childComponentSelector = _ref.childComponentSelector,
|
|
25
25
|
handleEscape = _ref.handleEscape,
|
|
26
|
-
disableArrowKeyNavigation = _ref.disableArrowKeyNavigation
|
|
26
|
+
disableArrowKeyNavigation = _ref.disableArrowKeyNavigation,
|
|
27
|
+
isShortcutToFocusToolbar = _ref.isShortcutToFocusToolbar;
|
|
27
28
|
var wrapperRef = useRef(null);
|
|
28
29
|
var selectedItemIndex = useRef(0);
|
|
29
30
|
var incrementIndex = useCallback(function (list) {
|
|
@@ -139,11 +140,35 @@ export var ToolbarArrowKeyNavigationProvider = function ToolbarArrowKeyNavigatio
|
|
|
139
140
|
}
|
|
140
141
|
};
|
|
141
142
|
|
|
143
|
+
var globalKeyDownHandler = function globalKeyDownHandler(event) {
|
|
144
|
+
//To focus the first element in the toolbar
|
|
145
|
+
if (isShortcutToFocusToolbar(event)) {
|
|
146
|
+
var _filteredFocusableEle4, _filteredFocusableEle5;
|
|
147
|
+
|
|
148
|
+
var filteredFocusableElements = getFilteredFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
|
|
149
|
+
(_filteredFocusableEle4 = filteredFocusableElements[0]) === null || _filteredFocusableEle4 === void 0 ? void 0 : _filteredFocusableEle4.focus();
|
|
150
|
+
(_filteredFocusableEle5 = filteredFocusableElements[0]) === null || _filteredFocusableEle5 === void 0 ? void 0 : _filteredFocusableEle5.scrollIntoView({
|
|
151
|
+
behavior: 'smooth',
|
|
152
|
+
block: 'center',
|
|
153
|
+
inline: 'nearest'
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
142
158
|
element === null || element === void 0 ? void 0 : element.addEventListener('keydown', handleKeyDown);
|
|
159
|
+
|
|
160
|
+
if (isShortcutToFocusToolbar) {
|
|
161
|
+
document.addEventListener('keydown', globalKeyDownHandler);
|
|
162
|
+
}
|
|
163
|
+
|
|
143
164
|
return function () {
|
|
144
165
|
element === null || element === void 0 ? void 0 : element.removeEventListener('keydown', handleKeyDown);
|
|
166
|
+
|
|
167
|
+
if (isShortcutToFocusToolbar) {
|
|
168
|
+
document.removeEventListener('keydown', globalKeyDownHandler);
|
|
169
|
+
}
|
|
145
170
|
};
|
|
146
|
-
}, [selectedItemIndex, wrapperRef, editorView, disableArrowKeyNavigation, handleEscape, childComponentSelector, incrementIndex, decrementIndex]);
|
|
171
|
+
}, [selectedItemIndex, wrapperRef, editorView, disableArrowKeyNavigation, handleEscape, childComponentSelector, incrementIndex, decrementIndex, isShortcutToFocusToolbar]);
|
|
147
172
|
return /*#__PURE__*/React.createElement("div", {
|
|
148
173
|
className: "custom-key-handler-wrapper",
|
|
149
174
|
ref: wrapperRef
|
|
@@ -5,11 +5,10 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
7
7
|
import { N60A, N400, P400 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { token } from '@atlaskit/tokens';
|
|
9
8
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
10
9
|
export var buttonContent = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n height: 24px;\n line-height: 24px;\n min-width: 70px;\n"])));
|
|
11
10
|
export var wrapper = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n margin-right: 0;\n"])));
|
|
12
|
-
export var confirmationPopup = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n overflow: auto;\n max-height: none;\n height: 410px;\n width: 280px;\n"])),
|
|
13
|
-
export var confirmationText = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: ", ";\n word-spacing: 4px;\n line-height: 22px;\n color: ", ";\n margin-top: 30px;\n padding: 20px;\n & > div {\n width: 240px;\n }\n & > div:first-of-type {\n margin-bottom: 12px;\n }\n & > div:nth-of-type(2) {\n margin-bottom: 20px;\n }\n"])), relativeFontSizeToBase16(14),
|
|
14
|
-
export var confirmationHeader = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n background-color: ", ";\n height: 100px;\n width: 100%;\n display: inline-block;\n"])),
|
|
11
|
+
export var confirmationPopup = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n overflow: auto;\n max-height: none;\n height: 410px;\n width: 280px;\n"])), "var(--ds-surface-overlay, #fff)", borderRadius(), "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"));
|
|
12
|
+
export var confirmationText = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: ", ";\n word-spacing: 4px;\n line-height: 22px;\n color: ", ";\n margin-top: 30px;\n padding: 20px;\n & > div {\n width: 240px;\n }\n & > div:first-of-type {\n margin-bottom: 12px;\n }\n & > div:nth-of-type(2) {\n margin-bottom: 20px;\n }\n"])), relativeFontSizeToBase16(14), "var(--ds-text-subtle, ".concat(N400, ")"));
|
|
13
|
+
export var confirmationHeader = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n background-color: ", ";\n height: 100px;\n width: 100%;\n display: inline-block;\n"])), "var(--ds-background-discovery-bold, ".concat(P400, ")"));
|
|
15
14
|
export var confirmationImg = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100px;\n display: block;\n margin: 25px auto 0 auto;\n"])));
|
|
@@ -17,9 +17,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import { css, jsx, keyframes } from '@emotion/react';
|
|
19
19
|
import { R100 } from '@atlaskit/theme/colors';
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
var pulseBackgroundReverse = keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n background-color: ", ";\n }\n 50% {\n background-color: auto;\n }\n 100% {\n background-color: ", ";\n }\n"])), token('color.blanket.danger', R100), token('color.blanket.danger', R100));
|
|
20
|
+
var pulseBackground = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 50% {\n background-color: ", ";\n }\n"])), "var(--ds-blanket-danger, ".concat(R100, ")"));
|
|
21
|
+
var pulseBackgroundReverse = keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n background-color: ", ";\n }\n 50% {\n background-color: auto;\n }\n 100% {\n background-color: ", ";\n }\n"])), "var(--ds-blanket-danger, ".concat(R100, ")"), "var(--ds-blanket-danger, ".concat(R100, ")"));
|
|
23
22
|
var flashWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n &.-flash > div {\n animation: 0.25s ease-in-out ", ";\n }\n\n & > div {\n animation: 'none';\n }\n"])), pulseBackgroundReverse);
|
|
24
23
|
var flashWrapperAnimated = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n\n & > div {\n animation: 0.25s ease-in-out ", ";\n }\n"])), flashWrapper, pulseBackground);
|
|
25
24
|
|
package/dist/esm/ui/styles.js
CHANGED
|
@@ -4,11 +4,10 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { N30 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
7
|
export { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
9
8
|
export { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
10
9
|
export var buttonGroupStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n align-items: center;\n\n & > div {\n display: flex;\n }\n"])));
|
|
11
|
-
export var separatorStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: ", ";\n width: 1px;\n height: 24px;\n display: inline-block;\n margin: 0 8px;\n"])),
|
|
10
|
+
export var separatorStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: ", ";\n width: 1px;\n height: 24px;\n display: inline-block;\n margin: 0 8px;\n"])), "var(--ds-border, ".concat(N30, ")"));
|
|
12
11
|
export var wrapperStyle = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n > div,\n > span {\n display: flex;\n }\n\n > div > div {\n display: flex;\n }\n\n margin-left: 0;\n min-width: auto;\n"])));
|
|
13
12
|
export var wrapperSmallStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-left: 4px;\n min-width: 40px;\n"])));
|
|
14
13
|
export var expandIconWrapperStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-left: -8px;\n"])));
|
|
@@ -16,5 +15,5 @@ export var triggerWrapperStyles = css(_templateObject6 || (_templateObject6 = _t
|
|
|
16
15
|
export var buttonContentStyle = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n min-width: 80px;\n align-items: center;\n overflow: hidden;\n justify-content: center;\n flex-direction: column;\n padding: 6px;\n"])));
|
|
17
16
|
export var buttonContentReducedSpacingStyle = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n padding: 8px;\n"]))); // Taken from the style of inline dialog components
|
|
18
17
|
|
|
19
|
-
export var dropShadow = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n box-shadow: ", ";\n"])),
|
|
18
|
+
export var dropShadow = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n box-shadow: ", ";\n"])), "var(--ds-shadow-overlay, ".concat("0 0 1px rgba(9, 30, 66, 0.31),\n 0 4px 8px -2px rgba(9, 30, 66, 0.25)", ")"));
|
|
20
19
|
export var clickSelectWrapperStyle = css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n user-select: all;\n"])));
|
|
@@ -35,8 +35,10 @@ export var InstrumentedPlugin = /*#__PURE__*/function (_SafePlugin) {
|
|
|
35
35
|
} : _options$uiTracking,
|
|
36
36
|
_options$saferDispatc = options.saferDispatchedTransactions,
|
|
37
37
|
saferDispatchedTransactions = _options$saferDispatc === void 0 ? false : _options$saferDispatc,
|
|
38
|
+
_options$saferDispatc2 = options.saferDispatchedTransactionsAnalyticsOnly,
|
|
39
|
+
saferDispatchedTransactionsAnalyticsOnly = _options$saferDispatc2 === void 0 ? false : _options$saferDispatc2,
|
|
38
40
|
dispatchAnalyticsEvent = options.dispatchAnalyticsEvent;
|
|
39
|
-
var shouldOverrideApply = transactionTracking.enabled && transactionTracker || saferDispatchedTransactions;
|
|
41
|
+
var shouldOverrideApply = transactionTracking.enabled && transactionTracker || saferDispatchedTransactions || saferDispatchedTransactionsAnalyticsOnly;
|
|
40
42
|
|
|
41
43
|
if (shouldOverrideApply && spec.state) {
|
|
42
44
|
var originalApply = spec.state.apply.bind(spec.state);
|
|
@@ -44,9 +46,10 @@ export var InstrumentedPlugin = /*#__PURE__*/function (_SafePlugin) {
|
|
|
44
46
|
spec.state.apply = function (aTr, value, oldState, newState) {
|
|
45
47
|
var self = _assertThisInitialized(_this);
|
|
46
48
|
|
|
47
|
-
var tr = saferDispatchedTransactions ? new Proxy(aTr, freezeUnsafeTransactionProperties({
|
|
49
|
+
var tr = saferDispatchedTransactions || saferDispatchedTransactionsAnalyticsOnly ? new Proxy(aTr, freezeUnsafeTransactionProperties({
|
|
48
50
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
49
|
-
pluginKey: self.key
|
|
51
|
+
pluginKey: self.key,
|
|
52
|
+
analyticsOnly: saferDispatchedTransactionsAnalyticsOnly
|
|
50
53
|
})) : aTr;
|
|
51
54
|
var shouldTrackTransactions = transactionTracker === null || transactionTracker === void 0 ? void 0 : transactionTracker.shouldTrackTransaction(transactionTracking);
|
|
52
55
|
|
|
@@ -11,7 +11,8 @@ var isReadOnlyProperty = function isReadOnlyProperty(prop) {
|
|
|
11
11
|
|
|
12
12
|
export var freezeUnsafeTransactionProperties = function freezeUnsafeTransactionProperties(_ref) {
|
|
13
13
|
var dispatchAnalyticsEvent = _ref.dispatchAnalyticsEvent,
|
|
14
|
-
pluginKey = _ref.pluginKey
|
|
14
|
+
pluginKey = _ref.pluginKey,
|
|
15
|
+
analyticsOnly = _ref.analyticsOnly;
|
|
15
16
|
|
|
16
17
|
var isUnsafe = function isUnsafe() {
|
|
17
18
|
if (dispatchAnalyticsEvent) {
|
|
@@ -21,11 +22,16 @@ export var freezeUnsafeTransactionProperties = function freezeUnsafeTransactionP
|
|
|
21
22
|
eventType: EVENT_TYPE.OPERATIONAL,
|
|
22
23
|
attributes: {
|
|
23
24
|
pluginKey: pluginKey || 'unknown'
|
|
25
|
+
},
|
|
26
|
+
nonPrivacySafeAttributes: {
|
|
27
|
+
stack: new Error().stack
|
|
24
28
|
}
|
|
25
29
|
});
|
|
26
30
|
}
|
|
27
31
|
|
|
28
|
-
|
|
32
|
+
if (!analyticsOnly) {
|
|
33
|
+
throw new Error(UNSAFE_PROPERTY_SET_ERROR);
|
|
34
|
+
}
|
|
29
35
|
};
|
|
30
36
|
|
|
31
37
|
return {
|
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Command } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Fixes cursor position after delete for list/task in panel and table
|
|
4
|
+
*
|
|
5
|
+
* ED-13873 fixes a bug where after deleting a list the cursor would move
|
|
6
|
+
* to the cell to the right. Uses setSelection to position the cursor as expected after deleting.
|
|
7
|
+
*
|
|
8
|
+
* @param state EditorState<any>
|
|
9
|
+
* @param dispatch CommandDispatch
|
|
10
|
+
* @returns boolean
|
|
11
|
+
*/
|
|
12
|
+
export declare const deleteAndMoveCursor: Command;
|
|
@@ -2,3 +2,4 @@ export { cleanUpAtTheStartOfDocument, insertBlockType, insertBlockTypesWithAnaly
|
|
|
2
2
|
export type { InputMethod } from './block-type';
|
|
3
3
|
export { insertBlock } from './insert-block';
|
|
4
4
|
export { isConvertableToCodeBlock, transformToCodeBlockAction, } from './transform-to-code-block';
|
|
5
|
+
export { deleteAndMoveCursor } from './delete-and-move-cursor';
|
|
@@ -19,6 +19,7 @@ export interface DropdownButtonItemProps extends ButtonItemProps {
|
|
|
19
19
|
onMouseEnter?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
20
20
|
onMouseOver?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
21
21
|
onMouseLeave?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
22
|
+
onMouseOut?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
22
23
|
onFocus?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
23
24
|
onBlur?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
24
25
|
}
|
|
@@ -5,7 +5,6 @@ import { PaletteColor } from '../../../ui/ColorPalette/Palettes/type';
|
|
|
5
5
|
export { DEFAULT_COLOR } from '../utils/color';
|
|
6
6
|
export declare type TextColorPluginState = {
|
|
7
7
|
palette: Array<PaletteColor>;
|
|
8
|
-
paletteExpanded?: Array<PaletteColor>;
|
|
9
8
|
defaultColor: string;
|
|
10
9
|
disabled?: boolean;
|
|
11
10
|
color: string | null;
|
|
@@ -25,6 +24,7 @@ export declare type TextColorDefaultColor = {
|
|
|
25
24
|
};
|
|
26
25
|
export interface TextColorPluginConfig {
|
|
27
26
|
defaultColor?: TextColorDefaultColor;
|
|
27
|
+
/** @deprecated [ED-15849] Color selection palette now shows more colors by default. */
|
|
28
28
|
allowMoreTextColors?: boolean;
|
|
29
29
|
}
|
|
30
30
|
export declare function createInitialPluginState(editorState: EditorState, pluginConfig?: TextColorPluginConfig): TextColorPluginState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { textColorPalette
|
|
1
|
+
export { textColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
@@ -12,10 +12,11 @@ export declare const KeyDownHandlerContext: React.Context<KeyDownHandlerContext>
|
|
|
12
12
|
* @param
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
|
-
export declare const ToolbarArrowKeyNavigationProvider: ({ children, editorView, childComponentSelector, handleEscape, disableArrowKeyNavigation, }: {
|
|
15
|
+
export declare const ToolbarArrowKeyNavigationProvider: ({ children, editorView, childComponentSelector, handleEscape, disableArrowKeyNavigation, isShortcutToFocusToolbar, }: {
|
|
16
16
|
children: ReactNode;
|
|
17
17
|
editorView?: EditorView<any> | undefined;
|
|
18
18
|
childComponentSelector: string;
|
|
19
19
|
handleEscape?: ((event: KeyboardEvent) => void) | undefined;
|
|
20
20
|
disableArrowKeyNavigation?: boolean | undefined;
|
|
21
|
+
isShortcutToFocusToolbar?: ((event: KeyboardEvent) => boolean) | undefined;
|
|
21
22
|
}) => JSX.Element;
|
|
@@ -7,6 +7,7 @@ import { FeatureFlags } from '../../types/feature-flags';
|
|
|
7
7
|
import { DispatchAnalyticsEvent } from '../../plugins/analytics/types';
|
|
8
8
|
declare type InstrumentedPluginOptions = EditorProps['performanceTracking'] & {
|
|
9
9
|
saferDispatchedTransactions?: FeatureFlags['saferDispatchedTransactions'];
|
|
10
|
+
saferDispatchedTransactionsAnalyticsOnly?: FeatureFlags['saferDispatchedTransactionsAnalyticsOnly'];
|
|
10
11
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
11
12
|
};
|
|
12
13
|
export declare class InstrumentedPlugin<PluginState, NodeSchema extends Schema<any, any>> extends SafePlugin<PluginState, NodeSchema> {
|
|
@@ -3,6 +3,7 @@ export declare const UNSAFE_PROPERTY_SET_ERROR = "Setting an unsafe property on
|
|
|
3
3
|
interface FreezeUnsafeTransactionOptions {
|
|
4
4
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
5
5
|
pluginKey?: string;
|
|
6
|
+
analyticsOnly?: boolean;
|
|
6
7
|
}
|
|
7
|
-
export declare const freezeUnsafeTransactionProperties: <TrType extends object>({ dispatchAnalyticsEvent, pluginKey, }: FreezeUnsafeTransactionOptions) => ProxyHandler<TrType>;
|
|
8
|
+
export declare const freezeUnsafeTransactionProperties: <TrType extends object>({ dispatchAnalyticsEvent, pluginKey, analyticsOnly, }: FreezeUnsafeTransactionOptions) => ProxyHandler<TrType>;
|
|
8
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "178.0.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/activity": "^1.0.1",
|
|
28
28
|
"@atlaskit/activity-provider": "^2.3.0",
|
|
29
|
-
"@atlaskit/adf-schema": "^25.
|
|
29
|
+
"@atlaskit/adf-schema": "^25.1.0",
|
|
30
30
|
"@atlaskit/adf-utils": "^18.0.0",
|
|
31
31
|
"@atlaskit/analytics-gas-types": "^5.0.0",
|
|
32
32
|
"@atlaskit/analytics-listeners": "^8.3.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/code": "^14.4.0",
|
|
42
42
|
"@atlaskit/date": "^0.9.0",
|
|
43
43
|
"@atlaskit/datetime-picker": "^12.3.0",
|
|
44
|
-
"@atlaskit/editor-common": "^72.
|
|
44
|
+
"@atlaskit/editor-common": "^72.1.0",
|
|
45
45
|
"@atlaskit/editor-json-transformer": "^8.8.0",
|
|
46
46
|
"@atlaskit/editor-markdown-transformer": "^5.0.0",
|
|
47
47
|
"@atlaskit/editor-plugin-table": "^1.0.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/locale": "^2.3.0",
|
|
57
57
|
"@atlaskit/logo": "^13.10.0",
|
|
58
58
|
"@atlaskit/media-card": "^74.4.0",
|
|
59
|
-
"@atlaskit/media-client": "^
|
|
59
|
+
"@atlaskit/media-client": "^20.0.0",
|
|
60
60
|
"@atlaskit/media-common": "^2.18.0",
|
|
61
61
|
"@atlaskit/media-filmstrip": "^46.1.0",
|
|
62
62
|
"@atlaskit/media-picker": "^64.1.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/radio": "^5.4.0",
|
|
70
70
|
"@atlaskit/section-message": "^6.3.0",
|
|
71
71
|
"@atlaskit/select": "^16.1.0",
|
|
72
|
-
"@atlaskit/smart-card": "^23.
|
|
72
|
+
"@atlaskit/smart-card": "^23.12.0",
|
|
73
73
|
"@atlaskit/smart-user-picker": "^6.0.0",
|
|
74
74
|
"@atlaskit/spinner": "^15.3.0",
|
|
75
75
|
"@atlaskit/status": "^1.2.0",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"w3c-keyname": "^2.1.0"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
|
-
"@atlaskit/link-provider": "^1.3.
|
|
129
|
+
"@atlaskit/link-provider": "^1.3.8",
|
|
130
130
|
"@atlaskit/media-core": "^34.0.1",
|
|
131
131
|
"react": "^16.8.0",
|
|
132
132
|
"react-dom": "^16.8.0",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"@atlaskit/atlassian-navigation": "^2.3.0",
|
|
137
137
|
"@atlaskit/breadcrumbs": "11.7.7",
|
|
138
138
|
"@atlaskit/code": "^14.4.0",
|
|
139
|
-
"@atlaskit/collab-provider": "8.0.
|
|
139
|
+
"@atlaskit/collab-provider": "8.0.1",
|
|
140
140
|
"@atlaskit/docs": "*",
|
|
141
141
|
"@atlaskit/drawer": "^7.4.0",
|
|
142
142
|
"@atlaskit/dropdown-menu": "^11.5.0",
|
|
@@ -155,8 +155,8 @@
|
|
|
155
155
|
"@atlaskit/media-test-helpers": "^30.1.0",
|
|
156
156
|
"@atlaskit/menu": "^1.4.0",
|
|
157
157
|
"@atlaskit/page-layout": "^1.3.0",
|
|
158
|
-
"@atlaskit/profilecard": "^18.
|
|
159
|
-
"@atlaskit/pubsub": "^6.
|
|
158
|
+
"@atlaskit/profilecard": "^18.1.0",
|
|
159
|
+
"@atlaskit/pubsub": "^6.2.0",
|
|
160
160
|
"@atlaskit/renderer": "^105.0.0",
|
|
161
161
|
"@atlaskit/section-message": "^6.3.0",
|
|
162
162
|
"@atlaskit/share": "*",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"@atlaskit/webdriver-runner": "*",
|
|
171
171
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
172
172
|
"@atlassian/link-picker-atlassian-plugin": "^26.0.0",
|
|
173
|
-
"@atlassian/link-picker-plugins": "^14.
|
|
173
|
+
"@atlassian/link-picker-plugins": "^14.1.0",
|
|
174
174
|
"@atlassian/search-provider": "2.3.9",
|
|
175
175
|
"@atlassian/ufo": "^0.1.0",
|
|
176
176
|
"@emotion/jest": "^11.8.0",
|
|
@@ -204,7 +204,6 @@
|
|
|
204
204
|
"react-test-renderer": "^16.8.0",
|
|
205
205
|
"rison": "^0.1.1",
|
|
206
206
|
"sinon": "^2.2.0",
|
|
207
|
-
"styled-components": "^3.2.6",
|
|
208
207
|
"typescript": "4.5.5",
|
|
209
208
|
"url-search-params": "^0.10.0",
|
|
210
209
|
"worker-plugin": "^4.0.2"
|