@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
|
@@ -10,8 +10,8 @@ import ColorPalette from '../ColorPalette';
|
|
|
10
10
|
import { DEFAULT_BORDER_COLOR } from '../ColorPalette/Palettes/common';
|
|
11
11
|
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
12
12
|
import { editorAnalyticsChannel } from '../../plugins/analytics/consts';
|
|
13
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../plugins/analytics/types';
|
|
14
|
-
|
|
13
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../plugins/analytics/types';
|
|
14
|
+
// helps adjusts position of popup
|
|
15
15
|
const colorPickerButtonWrapper = css`
|
|
16
16
|
position: relative;
|
|
17
17
|
`; // Control the size of color picker buttons and preview
|
|
@@ -100,6 +100,23 @@ const ColorPickerButton = props => {
|
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
const title = props.title || '';
|
|
103
|
+
const buttonStyle = css`
|
|
104
|
+
padding: 6px;
|
|
105
|
+
background-color: ${"var(--ds-background-neutral, transparent)"};
|
|
106
|
+
&:before {
|
|
107
|
+
display: flex;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
align-items: center;
|
|
110
|
+
align-self: center;
|
|
111
|
+
content: '';
|
|
112
|
+
border: 1px solid ${DEFAULT_BORDER_COLOR};
|
|
113
|
+
border-radius: ${borderRadius()}px;
|
|
114
|
+
background-color: ${props.currentColor || 'transparent'};
|
|
115
|
+
width: ${((_props$size = props.size) === null || _props$size === void 0 ? void 0 : _props$size.width) || 14}px;
|
|
116
|
+
height: ${((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.height) || 14}px;
|
|
117
|
+
padding: 0;
|
|
118
|
+
}
|
|
119
|
+
`;
|
|
103
120
|
return jsx("div", {
|
|
104
121
|
css: colorPickerButtonWrapper
|
|
105
122
|
}, jsx(Tooltip, {
|
|
@@ -110,13 +127,7 @@ const ColorPickerButton = props => {
|
|
|
110
127
|
"aria-label": title,
|
|
111
128
|
spacing: "compact",
|
|
112
129
|
onClick: togglePopup,
|
|
113
|
-
|
|
114
|
-
backgroundColor: props.currentColor || 'transparent',
|
|
115
|
-
border: `1px solid ${DEFAULT_BORDER_COLOR}`,
|
|
116
|
-
width: `${((_props$size = props.size) === null || _props$size === void 0 ? void 0 : _props$size.width) || 20}px`,
|
|
117
|
-
height: `${((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.height) || 20}px`,
|
|
118
|
-
padding: 0
|
|
119
|
-
}
|
|
130
|
+
css: buttonStyle
|
|
120
131
|
})), renderPopup());
|
|
121
132
|
};
|
|
122
133
|
|
|
@@ -5,7 +5,6 @@ import { Fragment, useCallback } from 'react';
|
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { Checkbox as AKCheckbox } from '@atlaskit/checkbox';
|
|
7
7
|
import { Field, Fieldset as AKFieldset } from '@atlaskit/form';
|
|
8
|
-
import { token } from '@atlaskit/tokens';
|
|
9
8
|
import { ValidationError } from '../types';
|
|
10
9
|
import FieldMessages from '../FieldMessages';
|
|
11
10
|
|
|
@@ -16,7 +15,7 @@ function validate(value, isRequired) {
|
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
const requiredIndicator = css`
|
|
19
|
-
color: ${
|
|
18
|
+
color: ${"var(--ds-text-danger, #bf2600)"};
|
|
20
19
|
`;
|
|
21
20
|
|
|
22
21
|
function CheckboxGroupInner({
|
|
@@ -3,14 +3,13 @@ import React, { useState } from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { injectIntl } from 'react-intl-next';
|
|
5
5
|
import { N40 } from '@atlaskit/theme/colors';
|
|
6
|
-
import { token } from '@atlaskit/tokens';
|
|
7
6
|
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
8
7
|
import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
|
|
9
8
|
import Button from '@atlaskit/button';
|
|
10
9
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
11
10
|
import { messages } from '../messages';
|
|
12
11
|
export const expandContainer = css`
|
|
13
|
-
border-bottom: 1px solid ${
|
|
12
|
+
border-bottom: 1px solid ${`var(--ds-border, ${N40})`};
|
|
14
13
|
`;
|
|
15
14
|
export const expandControl = css`
|
|
16
15
|
display: flex;
|
|
@@ -12,9 +12,8 @@ import { messages } from '../messages';
|
|
|
12
12
|
import { getNameFromDuplicateField, isDuplicateField } from '../utils';
|
|
13
13
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
14
14
|
import { N40A } from '@atlaskit/theme/colors';
|
|
15
|
-
import { token } from '@atlaskit/tokens';
|
|
16
15
|
const actionsWrapper = css`
|
|
17
|
-
border-top: 1px solid ${
|
|
16
|
+
border-top: 1px solid ${`var(--ds-border, ${N40A})`};
|
|
18
17
|
margin-top: ${gridSize() * 2}px;
|
|
19
18
|
padding-top: ${gridSize() * 2}px;
|
|
20
19
|
`;
|
|
@@ -7,7 +7,6 @@ import Button from '@atlaskit/button/custom-theme-button';
|
|
|
7
7
|
import CrossIcon from '@atlaskit/icon/glyph/cross';
|
|
8
8
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
9
9
|
import { N200 } from '@atlaskit/theme/colors';
|
|
10
|
-
import { token } from '@atlaskit/tokens';
|
|
11
10
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
12
11
|
import { messages } from './messages';
|
|
13
12
|
const iconWidth = 40;
|
|
@@ -22,7 +21,7 @@ const itemIcon = css`
|
|
|
22
21
|
width: ${iconWidth}px;
|
|
23
22
|
height: ${iconWidth}px;
|
|
24
23
|
overflow: hidden;
|
|
25
|
-
border: 1px solid ${
|
|
24
|
+
border: 1px solid ${"var(--ds-border, rgba(223, 225, 229, 0.5))"}; /* N60 at 50% */
|
|
26
25
|
border-radius: ${borderRadius()}px;
|
|
27
26
|
box-sizing: border-box;
|
|
28
27
|
|
|
@@ -55,7 +54,7 @@ const itemText = css`
|
|
|
55
54
|
white-space: initial;
|
|
56
55
|
.item-summary {
|
|
57
56
|
font-size: ${relativeFontSizeToBase16(11.67)};
|
|
58
|
-
color: ${
|
|
57
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
59
58
|
margin-top: 4px;
|
|
60
59
|
|
|
61
60
|
white-space: nowrap;
|
|
@@ -6,7 +6,6 @@ import { gridSize } from '@atlaskit/theme/constants';
|
|
|
6
6
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
7
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
8
8
|
import { N80, R300 } from '@atlaskit/theme/colors';
|
|
9
|
-
import { token } from '@atlaskit/tokens';
|
|
10
9
|
import { messages } from '../messages';
|
|
11
10
|
const removableFieldWrapper = css`
|
|
12
11
|
position: relative;
|
|
@@ -21,10 +20,10 @@ const removeButtonWrapper = css`
|
|
|
21
20
|
top: 0;
|
|
22
21
|
cursor: pointer;
|
|
23
22
|
|
|
24
|
-
color: ${
|
|
23
|
+
color: ${`var(--ds-icon-subtle, ${N80})`};
|
|
25
24
|
|
|
26
25
|
&:hover {
|
|
27
|
-
color: ${
|
|
26
|
+
color: ${`var(--ds-icon-danger, ${R300})`};
|
|
28
27
|
}
|
|
29
28
|
`;
|
|
30
29
|
|
|
@@ -3,7 +3,6 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
import { jsx, css, useTheme } from '@emotion/react';
|
|
4
4
|
import { whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, shadowSharedStyle, dateSharedStyle, tasksAndDecisionsStyles, annotationSharedStyles, smartCardSharedStyles, textColorStyles } from '@atlaskit/editor-common/styles';
|
|
5
5
|
import { editorFontSize } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { token } from '@atlaskit/tokens';
|
|
7
6
|
import { unsupportedStyles } from '../../plugins/unsupported-content/styles';
|
|
8
7
|
import { telepointerStyle } from '../../plugins/collab-edit/styles';
|
|
9
8
|
import { gapCursorStyles } from '../../plugins/selection/gap-cursor/styles';
|
|
@@ -67,7 +66,7 @@ const contentStyles = props => css`
|
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
.ProseMirror-selectednode:empty {
|
|
70
|
-
outline: 2px solid ${
|
|
69
|
+
outline: 2px solid ${"var(--ds-border-focused, #8cf)"};
|
|
71
70
|
}
|
|
72
71
|
|
|
73
72
|
${placeholderTextStyles}
|
|
@@ -13,7 +13,6 @@ import { pluginKey as contextPanelPluginKey } from '../../plugins/context-panel'
|
|
|
13
13
|
import { pluginKey as widthPluginKey } from '../../plugins/width';
|
|
14
14
|
import WithEditorActions from '../WithEditorActions';
|
|
15
15
|
import { getChildBreakoutModes } from '../../utils/document';
|
|
16
|
-
import { token } from '@atlaskit/tokens';
|
|
17
16
|
const ANIM_SPEED_MS = 500;
|
|
18
17
|
const EDITOR_WIDTH = akEditorDefaultLayoutWidth + akEditorBreakoutPadding;
|
|
19
18
|
const WIDE_EDITOR_WIDTH = akEditorWideLayoutWidth + akEditorBreakoutPadding;
|
|
@@ -43,7 +42,7 @@ export const panel = css`
|
|
|
43
42
|
height: 100%;
|
|
44
43
|
transition: width ${ANIM_SPEED_MS}ms ${akEditorSwoopCubicBezier};
|
|
45
44
|
overflow: hidden;
|
|
46
|
-
box-shadow: inset 2px 0 0 0 ${
|
|
45
|
+
box-shadow: inset 2px 0 0 0 ${`var(--ds-border, ${N30})`};
|
|
47
46
|
`;
|
|
48
47
|
export const content = css`
|
|
49
48
|
transition: width 600ms ${akEditorSwoopCubicBezier};
|
|
@@ -17,7 +17,6 @@ import { getFeaturedQuickInsertItems, searchQuickInsertItems } from '../../plugi
|
|
|
17
17
|
import { insertItem } from '../../plugins/quick-insert/commands';
|
|
18
18
|
import ElementBrowser from './components/ElementBrowserLoader';
|
|
19
19
|
import { ELEMENT_ITEM_HEIGHT } from './constants';
|
|
20
|
-
import { token } from '@atlaskit/tokens';
|
|
21
20
|
|
|
22
21
|
const InsertMenu = ({
|
|
23
22
|
editorView,
|
|
@@ -148,13 +147,13 @@ const insertMenuWrapper = (theme, itemCount) => css`
|
|
|
148
147
|
itemCount
|
|
149
148
|
})}px;
|
|
150
149
|
background-color: ${themed({
|
|
151
|
-
light:
|
|
152
|
-
dark:
|
|
150
|
+
light: `var(--ds-surface-overlay, ${N0})`,
|
|
151
|
+
dark: `var(--ds-surface-overlay, ${DN50})`
|
|
153
152
|
})(theme)};
|
|
154
153
|
border-radius: ${borderRadius()}px;
|
|
155
|
-
box-shadow: ${
|
|
154
|
+
box-shadow: ${`var(--ds-shadow-overlay, ${`0 0 0 1px ${N30A},
|
|
156
155
|
0 2px 1px ${N30A},
|
|
157
|
-
0 0 20px -6px ${N60A}`)};
|
|
156
|
+
0 0 20px -6px ${N60A}`})`};
|
|
158
157
|
`;
|
|
159
158
|
|
|
160
159
|
const itemBefore = css`
|
|
@@ -12,7 +12,6 @@ import ElementBrowser from './components/ElementBrowserLoader';
|
|
|
12
12
|
import { getCategories } from './categories';
|
|
13
13
|
import { MODAL_WRAPPER_PADDING } from './constants';
|
|
14
14
|
import { messages } from './messages';
|
|
15
|
-
import { token } from '@atlaskit/tokens';
|
|
16
15
|
const actions = css`
|
|
17
16
|
display: inline-flex;
|
|
18
17
|
margin: 0 -4px;
|
|
@@ -28,8 +27,8 @@ const wrapper = css`
|
|
|
28
27
|
padding: ${MODAL_WRAPPER_PADDING}px ${MODAL_WRAPPER_PADDING}px 0 10px;
|
|
29
28
|
overflow: hidden;
|
|
30
29
|
background-color: ${themed({
|
|
31
|
-
light:
|
|
32
|
-
dark:
|
|
30
|
+
light: `var(--ds-surface-overlay, ${N0})`,
|
|
31
|
+
dark: `var(--ds-surface-overlay, ${DN50})`
|
|
33
32
|
})()};
|
|
34
33
|
border-radius: ${borderRadius()}px;
|
|
35
34
|
`;
|
|
@@ -9,7 +9,6 @@ import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
|
9
9
|
import { DEVICE_BREAKPOINT_NUMBERS, GRID_SIZE } from '../constants';
|
|
10
10
|
import useFocus from '../hooks/use-focus';
|
|
11
11
|
import { fireAnalyticsEvent, EVENT_TYPE, ACTION_SUBJECT, ACTION_SUBJECT_ID, ACTION } from '../../../plugins/analytics';
|
|
12
|
-
import { token } from '@atlaskit/tokens';
|
|
13
12
|
|
|
14
13
|
function CategoryList({
|
|
15
14
|
categories = [],
|
|
@@ -72,9 +71,9 @@ function CategoryListItem({
|
|
|
72
71
|
marginLeft: '2px',
|
|
73
72
|
height: '100%',
|
|
74
73
|
width: '100%',
|
|
75
|
-
color: category.name !== selectedCategory ?
|
|
74
|
+
color: category.name !== selectedCategory ? `var(--ds-text, ${N800})` : `var(--ds-text-selected, ${B400})`,
|
|
76
75
|
...(category.name === selectedCategory && {
|
|
77
|
-
background:
|
|
76
|
+
background: `var(--ds-background-selected, ${B50})`
|
|
78
77
|
})
|
|
79
78
|
},
|
|
80
79
|
...rest
|
|
@@ -9,7 +9,6 @@ import { ButtonItem } from '@atlaskit/menu';
|
|
|
9
9
|
import { B100, N200 } from '@atlaskit/theme/colors';
|
|
10
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
11
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
12
|
-
import { token } from '@atlaskit/tokens';
|
|
13
12
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
14
13
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../../plugins/analytics';
|
|
15
14
|
import IconFallback from '../../../../plugins/quick-insert/assets/fallback';
|
|
@@ -238,7 +237,7 @@ const elementItemsWrapper = css`
|
|
|
238
237
|
|
|
239
238
|
:focus {
|
|
240
239
|
box-shadow: 0 0 0 ${ELEMENT_LIST_PADDING}px
|
|
241
|
-
${
|
|
240
|
+
${`var(--ds-border-focused, ${B100})`};
|
|
242
241
|
}
|
|
243
242
|
}
|
|
244
243
|
.ReactVirtualized__Collection__innerScrollContainer {
|
|
@@ -281,7 +280,7 @@ const itemDescription = css`
|
|
|
281
280
|
|
|
282
281
|
overflow: hidden;
|
|
283
282
|
font-size: ${relativeFontSizeToBase16(11.67)};
|
|
284
|
-
color: ${
|
|
283
|
+
color: ${`var(--ds-text-subtle, ${N200})`};
|
|
285
284
|
margin-top: 2px;
|
|
286
285
|
`;
|
|
287
286
|
const itemText = css`
|
|
@@ -3,7 +3,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
5
|
import NotFoundIllustration from './NotFoundIllustration';
|
|
6
|
-
import { token } from '@atlaskit/tokens';
|
|
7
6
|
export default function EmptyState({
|
|
8
7
|
onExternalLinkClick
|
|
9
8
|
}) {
|
|
@@ -37,7 +36,7 @@ export default function EmptyState({
|
|
|
37
36
|
const emptyStateHeading = css`
|
|
38
37
|
font-size: 1.42857em;
|
|
39
38
|
line-height: 1.2;
|
|
40
|
-
color: ${
|
|
39
|
+
color: ${"var(--ds-text, rgb(23, 43, 77))"};
|
|
41
40
|
font-weight: 500;
|
|
42
41
|
letter-spacing: -0.008em;
|
|
43
42
|
margin-top: 28px;
|
|
@@ -11,7 +11,6 @@ import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
|
|
|
11
11
|
import useFocus from '../hooks/use-focus';
|
|
12
12
|
import { Modes } from '../types';
|
|
13
13
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
14
|
-
import { token } from '@atlaskit/tokens';
|
|
15
14
|
|
|
16
15
|
function ElementSearch({
|
|
17
16
|
onSearch,
|
|
@@ -102,7 +101,7 @@ const wrapperInline = css`
|
|
|
102
101
|
`;
|
|
103
102
|
const elementBeforeInput = css`
|
|
104
103
|
margin: 1px 6px 0 8px;
|
|
105
|
-
color: ${
|
|
104
|
+
color: ${`var(--ds-icon, ${N200})`};
|
|
106
105
|
|
|
107
106
|
// Custom SearchIcon style
|
|
108
107
|
span,
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
3
3
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
export const container = height => css`
|
|
6
5
|
border-radius: ${borderRadius()}px;
|
|
7
|
-
box-shadow: ${
|
|
6
|
+
box-shadow: ${`var(--ds-shadow-overlay, ${`0 12px 24px -6px ${N50A}, 0 0 1px ${N60A}`})`};
|
|
8
7
|
display: flex;
|
|
9
8
|
align-items: center;
|
|
10
9
|
box-sizing: border-box;
|
|
11
10
|
padding: 4px 8px;
|
|
12
|
-
background-color: ${
|
|
11
|
+
background-color: ${`var(--ds-background-input, ${N0})`};
|
|
13
12
|
${height ? css`
|
|
14
13
|
height: ${height}px;
|
|
15
14
|
` : ''};
|
|
@@ -6,7 +6,6 @@ import { css, jsx } from '@emotion/react'; // AFP-2532 TODO: Fix automatic suppr
|
|
|
6
6
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
7
7
|
|
|
8
8
|
import { fontSizeSmall } from '@atlaskit/theme';
|
|
9
|
-
import { token } from '@atlaskit/tokens';
|
|
10
9
|
import { N20, N300, N800 } from '@atlaskit/theme/colors';
|
|
11
10
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
12
11
|
import { getCorrectAltByIconUrl } from './listItemAlts';
|
|
@@ -20,20 +19,20 @@ export const container = css`
|
|
|
20
19
|
margin-top: 0;
|
|
21
20
|
`;
|
|
22
21
|
export const containerSelected = css`
|
|
23
|
-
background-color: ${
|
|
22
|
+
background-color: ${`var(--ds-background-neutral-subtle-hovered, ${N20})`};
|
|
24
23
|
`;
|
|
25
24
|
const nameWrapper = css`
|
|
26
25
|
overflow: hidden;
|
|
27
26
|
`;
|
|
28
27
|
export const nameStyle = css`
|
|
29
|
-
color: ${
|
|
28
|
+
color: ${`var(--ds-text, ${N800})`};
|
|
30
29
|
overflow: hidden;
|
|
31
30
|
text-overflow: ellipsis;
|
|
32
31
|
white-space: nowrap;
|
|
33
32
|
line-height: 20px;
|
|
34
33
|
`;
|
|
35
34
|
export const containerName = css`
|
|
36
|
-
color: ${
|
|
35
|
+
color: ${`var(--ds-text-subtlest, ${N300})`};
|
|
37
36
|
line-height: 14px;
|
|
38
37
|
font-size: ${relativeFontSizeToBase16(fontSizeSmall())};
|
|
39
38
|
`;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N400, N100 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
// Normal .className gets overridden by input[type=text] hence this hack to produce input.className
|
|
6
5
|
export const panelTextInput = css`
|
|
7
6
|
input& {
|
|
8
7
|
background: transparent;
|
|
9
8
|
border: 0;
|
|
10
9
|
border-radius: 0;
|
|
11
10
|
box-sizing: content-box;
|
|
12
|
-
color: ${
|
|
11
|
+
color: ${`var(--ds-text-subtle, ${N400})`};
|
|
13
12
|
flex-grow: 1;
|
|
14
13
|
font-size: ${relativeFontSizeToBase16(13)};
|
|
15
14
|
line-height: 20px;
|
|
@@ -26,7 +25,7 @@ export const panelTextInput = css`
|
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
&::placeholder {
|
|
29
|
-
color: ${
|
|
28
|
+
color: ${`var(--ds-text-subtlest, ${N100})`};
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
`;
|
|
@@ -23,7 +23,8 @@ export const ToolbarArrowKeyNavigationProvider = ({
|
|
|
23
23
|
editorView,
|
|
24
24
|
childComponentSelector,
|
|
25
25
|
handleEscape,
|
|
26
|
-
disableArrowKeyNavigation
|
|
26
|
+
disableArrowKeyNavigation,
|
|
27
|
+
isShortcutToFocusToolbar
|
|
27
28
|
}) => {
|
|
28
29
|
const wrapperRef = useRef(null);
|
|
29
30
|
const selectedItemIndex = useRef(0);
|
|
@@ -142,11 +143,35 @@ export const ToolbarArrowKeyNavigationProvider = ({
|
|
|
142
143
|
}
|
|
143
144
|
};
|
|
144
145
|
|
|
146
|
+
const globalKeyDownHandler = event => {
|
|
147
|
+
//To focus the first element in the toolbar
|
|
148
|
+
if (isShortcutToFocusToolbar(event)) {
|
|
149
|
+
var _filteredFocusableEle4, _filteredFocusableEle5;
|
|
150
|
+
|
|
151
|
+
const filteredFocusableElements = getFilteredFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
|
|
152
|
+
(_filteredFocusableEle4 = filteredFocusableElements[0]) === null || _filteredFocusableEle4 === void 0 ? void 0 : _filteredFocusableEle4.focus();
|
|
153
|
+
(_filteredFocusableEle5 = filteredFocusableElements[0]) === null || _filteredFocusableEle5 === void 0 ? void 0 : _filteredFocusableEle5.scrollIntoView({
|
|
154
|
+
behavior: 'smooth',
|
|
155
|
+
block: 'center',
|
|
156
|
+
inline: 'nearest'
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
|
|
145
161
|
element === null || element === void 0 ? void 0 : element.addEventListener('keydown', handleKeyDown);
|
|
162
|
+
|
|
163
|
+
if (isShortcutToFocusToolbar) {
|
|
164
|
+
document.addEventListener('keydown', globalKeyDownHandler);
|
|
165
|
+
}
|
|
166
|
+
|
|
146
167
|
return () => {
|
|
147
168
|
element === null || element === void 0 ? void 0 : element.removeEventListener('keydown', handleKeyDown);
|
|
169
|
+
|
|
170
|
+
if (isShortcutToFocusToolbar) {
|
|
171
|
+
document.removeEventListener('keydown', globalKeyDownHandler);
|
|
172
|
+
}
|
|
148
173
|
};
|
|
149
|
-
}, [selectedItemIndex, wrapperRef, editorView, disableArrowKeyNavigation, handleEscape, childComponentSelector, incrementIndex, decrementIndex]);
|
|
174
|
+
}, [selectedItemIndex, wrapperRef, editorView, disableArrowKeyNavigation, handleEscape, childComponentSelector, incrementIndex, decrementIndex, isShortcutToFocusToolbar]);
|
|
150
175
|
return /*#__PURE__*/React.createElement("div", {
|
|
151
176
|
className: "custom-key-handler-wrapper",
|
|
152
177
|
ref: wrapperRef
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
3
3
|
import { N60A, N400, P400 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
6
5
|
export const buttonContent = css`
|
|
7
6
|
display: flex;
|
|
@@ -14,9 +13,9 @@ export const wrapper = css`
|
|
|
14
13
|
margin-right: 0;
|
|
15
14
|
`;
|
|
16
15
|
export const confirmationPopup = css`
|
|
17
|
-
background: ${
|
|
16
|
+
background: ${"var(--ds-surface-overlay, #fff)"};
|
|
18
17
|
border-radius: ${borderRadius()}px;
|
|
19
|
-
box-shadow: ${
|
|
18
|
+
box-shadow: ${`var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`};
|
|
20
19
|
display: flex;
|
|
21
20
|
flex-direction: column;
|
|
22
21
|
box-sizing: border-box;
|
|
@@ -29,7 +28,7 @@ export const confirmationText = css`
|
|
|
29
28
|
font-size: ${relativeFontSizeToBase16(14)};
|
|
30
29
|
word-spacing: 4px;
|
|
31
30
|
line-height: 22px;
|
|
32
|
-
color: ${
|
|
31
|
+
color: ${`var(--ds-text-subtle, ${N400})`};
|
|
33
32
|
margin-top: 30px;
|
|
34
33
|
padding: 20px;
|
|
35
34
|
& > div {
|
|
@@ -43,7 +42,7 @@ export const confirmationText = css`
|
|
|
43
42
|
}
|
|
44
43
|
`;
|
|
45
44
|
export const confirmationHeader = css`
|
|
46
|
-
background-color: ${
|
|
45
|
+
background-color: ${`var(--ds-background-discovery-bold, ${P400})`};
|
|
47
46
|
height: 100px;
|
|
48
47
|
width: 100%;
|
|
49
48
|
display: inline-block;
|
|
@@ -4,21 +4,20 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { css, jsx, keyframes } from '@emotion/react';
|
|
6
6
|
import { R100 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
7
|
const pulseBackground = keyframes`
|
|
9
8
|
50% {
|
|
10
|
-
background-color: ${
|
|
9
|
+
background-color: ${`var(--ds-blanket-danger, ${R100})`};
|
|
11
10
|
}
|
|
12
11
|
`;
|
|
13
12
|
const pulseBackgroundReverse = keyframes`
|
|
14
13
|
0% {
|
|
15
|
-
background-color: ${
|
|
14
|
+
background-color: ${`var(--ds-blanket-danger, ${R100})`};
|
|
16
15
|
}
|
|
17
16
|
50% {
|
|
18
17
|
background-color: auto;
|
|
19
18
|
}
|
|
20
19
|
100% {
|
|
21
|
-
background-color: ${
|
|
20
|
+
background-color: ${`var(--ds-blanket-danger, ${R100})`};
|
|
22
21
|
}
|
|
23
22
|
`;
|
|
24
23
|
const flashWrapper = css`
|
package/dist/es2019/ui/styles.js
CHANGED
|
@@ -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
|
export { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
5
4
|
export { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
6
5
|
export const buttonGroupStyle = css`
|
|
@@ -12,7 +11,7 @@ export const buttonGroupStyle = css`
|
|
|
12
11
|
}
|
|
13
12
|
`;
|
|
14
13
|
export const separatorStyles = css`
|
|
15
|
-
background: ${
|
|
14
|
+
background: ${`var(--ds-border, ${N30})`};
|
|
16
15
|
width: 1px;
|
|
17
16
|
height: 24px;
|
|
18
17
|
display: inline-block;
|
|
@@ -58,8 +57,8 @@ export const buttonContentReducedSpacingStyle = css`
|
|
|
58
57
|
`; // Taken from the style of inline dialog components
|
|
59
58
|
|
|
60
59
|
export const dropShadow = css`
|
|
61
|
-
box-shadow: ${
|
|
62
|
-
0 4px 8px -2px rgba(9, 30, 66, 0.25)`)};
|
|
60
|
+
box-shadow: ${`var(--ds-shadow-overlay, ${`0 0 1px rgba(9, 30, 66, 0.31),
|
|
61
|
+
0 4px 8px -2px rgba(9, 30, 66, 0.25)`})`};
|
|
63
62
|
`;
|
|
64
63
|
export const clickSelectWrapperStyle = css`
|
|
65
64
|
user-select: all;
|
|
@@ -11,18 +11,20 @@ export class InstrumentedPlugin extends SafePlugin {
|
|
|
11
11
|
enabled: false
|
|
12
12
|
},
|
|
13
13
|
saferDispatchedTransactions = false,
|
|
14
|
+
saferDispatchedTransactionsAnalyticsOnly = false,
|
|
14
15
|
dispatchAnalyticsEvent
|
|
15
16
|
} = options;
|
|
16
|
-
const shouldOverrideApply = transactionTracking.enabled && transactionTracker || saferDispatchedTransactions;
|
|
17
|
+
const shouldOverrideApply = transactionTracking.enabled && transactionTracker || saferDispatchedTransactions || saferDispatchedTransactionsAnalyticsOnly;
|
|
17
18
|
|
|
18
19
|
if (shouldOverrideApply && spec.state) {
|
|
19
20
|
const originalApply = spec.state.apply.bind(spec.state);
|
|
20
21
|
|
|
21
22
|
spec.state.apply = (aTr, value, oldState, newState) => {
|
|
22
23
|
const self = this;
|
|
23
|
-
const tr = saferDispatchedTransactions ? new Proxy(aTr, freezeUnsafeTransactionProperties({
|
|
24
|
+
const tr = saferDispatchedTransactions || saferDispatchedTransactionsAnalyticsOnly ? new Proxy(aTr, freezeUnsafeTransactionProperties({
|
|
24
25
|
dispatchAnalyticsEvent,
|
|
25
|
-
pluginKey: self.key
|
|
26
|
+
pluginKey: self.key,
|
|
27
|
+
analyticsOnly: saferDispatchedTransactionsAnalyticsOnly
|
|
26
28
|
})) : aTr;
|
|
27
29
|
const shouldTrackTransactions = transactionTracker === null || transactionTracker === void 0 ? void 0 : transactionTracker.shouldTrackTransaction(transactionTracking);
|
|
28
30
|
|
|
@@ -7,7 +7,8 @@ const isReadOnlyProperty = prop => ['doc', 'docs', 'steps', 'selection'].include
|
|
|
7
7
|
|
|
8
8
|
export const freezeUnsafeTransactionProperties = ({
|
|
9
9
|
dispatchAnalyticsEvent,
|
|
10
|
-
pluginKey
|
|
10
|
+
pluginKey,
|
|
11
|
+
analyticsOnly
|
|
11
12
|
}) => {
|
|
12
13
|
const isUnsafe = () => {
|
|
13
14
|
if (dispatchAnalyticsEvent) {
|
|
@@ -17,11 +18,16 @@ export const freezeUnsafeTransactionProperties = ({
|
|
|
17
18
|
eventType: EVENT_TYPE.OPERATIONAL,
|
|
18
19
|
attributes: {
|
|
19
20
|
pluginKey: pluginKey || 'unknown'
|
|
21
|
+
},
|
|
22
|
+
nonPrivacySafeAttributes: {
|
|
23
|
+
stack: new Error().stack
|
|
20
24
|
}
|
|
21
25
|
});
|
|
22
26
|
}
|
|
23
27
|
|
|
24
|
-
|
|
28
|
+
if (!analyticsOnly) {
|
|
29
|
+
throw new Error(UNSAFE_PROPERTY_SET_ERROR);
|
|
30
|
+
}
|
|
25
31
|
};
|
|
26
32
|
|
|
27
33
|
return {
|
package/dist/es2019/version.json
CHANGED
|
@@ -97,8 +97,10 @@ export var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component
|
|
|
97
97
|
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
98
98
|
eventType: EVENT_TYPE.OPERATIONAL,
|
|
99
99
|
attributes: {
|
|
100
|
-
errorStack: errorStack,
|
|
101
100
|
errorId: sharedId
|
|
101
|
+
},
|
|
102
|
+
nonPrivacySafeAttributes: {
|
|
103
|
+
errorStack: errorStack
|
|
102
104
|
}
|
|
103
105
|
});
|
|
104
106
|
|
|
@@ -354,9 +354,10 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
354
354
|
|
|
355
355
|
var nodes = findChangedNodesFromTransaction(unsafeTransaction);
|
|
356
356
|
var changedNodesValid = validateNodes(nodes);
|
|
357
|
-
var transaction = _this.featureFlags.saferDispatchedTransactions ? new Proxy(unsafeTransaction, freezeUnsafeTransactionProperties({
|
|
357
|
+
var transaction = _this.featureFlags.saferDispatchedTransactions || _this.featureFlags.saferDispatchedTransactionsAnalyticsOnly ? new Proxy(unsafeTransaction, freezeUnsafeTransactionProperties({
|
|
358
358
|
dispatchAnalyticsEvent: _this.dispatchAnalyticsEvent,
|
|
359
|
-
pluginKey: 'unknown-reacteditorview'
|
|
359
|
+
pluginKey: 'unknown-reacteditorview',
|
|
360
|
+
analyticsOnly: _this.featureFlags.saferDispatchedTransactionsAnalyticsOnly
|
|
360
361
|
})) : unsafeTransaction;
|
|
361
362
|
|
|
362
363
|
if (changedNodesValid) {
|