@atlaskit/editor-core 187.4.8 → 187.4.10
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 +6 -0
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +1 -1
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +2 -1
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +1 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +1 -1
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +7 -6
- package/dist/cjs/plugins/text-formatting/commands/clear-formatting.js +1 -1
- package/dist/cjs/plugins/text-formatting/index.js +2 -2
- package/dist/cjs/plugins/text-formatting/pm-plugins/clear-formatting-keymap.js +1 -1
- package/dist/cjs/plugins/text-formatting/pm-plugins/clear-formatting.js +5 -2
- package/dist/cjs/plugins/text-formatting/pm-plugins/keymap.js +3 -3
- package/dist/cjs/plugins/text-formatting/pm-plugins/main.js +1 -1
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/constants.js +1 -1
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +5 -5
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +6 -7
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/index.js +1 -1
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/more-button.js +3 -3
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +3 -4
- package/dist/cjs/plugins/toolbar-lists-indentation/ui/Toolbar.js +1 -1
- package/dist/cjs/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +4 -3
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +1 -1
- package/dist/cjs/ui/styles.js +9 -25
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/index.js +1 -1
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +2 -1
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/index.js +1 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +1 -1
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +2 -1
- package/dist/es2019/plugins/text-formatting/commands/clear-formatting.js +1 -1
- package/dist/es2019/plugins/text-formatting/index.js +1 -1
- package/dist/es2019/plugins/text-formatting/pm-plugins/clear-formatting-keymap.js +1 -1
- package/dist/es2019/plugins/text-formatting/pm-plugins/clear-formatting.js +2 -2
- package/dist/es2019/plugins/text-formatting/pm-plugins/input-rule.js +1 -2
- package/dist/es2019/plugins/text-formatting/pm-plugins/keymap.js +2 -2
- package/dist/es2019/plugins/text-formatting/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/constants.js +1 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +3 -3
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +2 -3
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/index.js +1 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/more-button.js +2 -2
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +2 -2
- package/dist/es2019/plugins/toolbar-lists-indentation/ui/Toolbar.js +1 -1
- package/dist/es2019/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +2 -1
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +1 -1
- package/dist/es2019/ui/styles.js +3 -45
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +1 -1
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +2 -1
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/index.js +1 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +1 -1
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +2 -1
- package/dist/esm/plugins/text-formatting/commands/clear-formatting.js +1 -1
- package/dist/esm/plugins/text-formatting/index.js +1 -1
- package/dist/esm/plugins/text-formatting/pm-plugins/clear-formatting-keymap.js +1 -1
- package/dist/esm/plugins/text-formatting/pm-plugins/clear-formatting.js +2 -2
- package/dist/esm/plugins/text-formatting/pm-plugins/input-rule.js +1 -2
- package/dist/esm/plugins/text-formatting/pm-plugins/keymap.js +2 -2
- package/dist/esm/plugins/text-formatting/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/constants.js +1 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +3 -3
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +2 -3
- package/dist/esm/plugins/text-formatting/ui/Toolbar/index.js +1 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/more-button.js +2 -2
- package/dist/esm/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +2 -2
- package/dist/esm/plugins/toolbar-lists-indentation/ui/Toolbar.js +1 -1
- package/dist/esm/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +2 -1
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +1 -1
- package/dist/esm/ui/styles.js +7 -18
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/plugins/alignment/ui/ToolbarAlignment/index.d.ts +2 -2
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/blocktype-button.d.ts +2 -2
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/index.d.ts +5 -5
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +2 -2
- package/dist/types/plugins/text-color/ui/ToolbarTextColor/index.d.ts +5 -5
- package/dist/types/plugins/text-formatting/commands/clear-formatting.d.ts +2 -2
- package/dist/types/plugins/text-formatting/commands/text-formatting.d.ts +3 -2
- package/dist/types/plugins/text-formatting/commands/transform-to-code.d.ts +1 -1
- package/dist/types/plugins/text-formatting/index.d.ts +1 -1
- package/dist/types/plugins/text-formatting/pm-plugins/clear-formatting-keymap.d.ts +2 -2
- package/dist/types/plugins/text-formatting/pm-plugins/clear-formatting.d.ts +3 -3
- package/dist/types/plugins/text-formatting/pm-plugins/input-rule.d.ts +3 -3
- package/dist/types/plugins/text-formatting/pm-plugins/keymap.d.ts +3 -3
- package/dist/types/plugins/text-formatting/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/text-formatting/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/text-formatting/pm-plugins/smart-input-rule.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/constants.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/dropdown-menu.d.ts +2 -2
- package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.d.ts +2 -2
- package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/responsive-toolbar-buttons.d.ts +2 -2
- package/dist/types/plugins/text-formatting/ui/Toolbar/index.d.ts +5 -5
- package/dist/types/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.d.ts +2 -2
- package/dist/types/plugins/text-formatting/ui/Toolbar/types.d.ts +5 -5
- package/dist/{types-ts4.5 → types/plugins/text-formatting}/utils/cell-selection.d.ts +2 -2
- package/dist/types/plugins/text-formatting/utils.d.ts +3 -3
- package/dist/types/plugins/toolbar-lists-indentation/ui/Toolbar.d.ts +1 -1
- package/dist/types/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.d.ts +1 -1
- package/dist/types/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +3 -3
- package/dist/types/ui/styles.d.ts +0 -4
- package/dist/types/utils/commands.d.ts +3 -3
- package/dist/types/utils/index.d.ts +3 -3
- package/dist/types/utils/input-rules.d.ts +3 -3
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/block-type/ui/ToolbarBlockType/blocktype-button.d.ts +2 -2
- package/dist/types-ts4.5/plugins/block-type/ui/ToolbarBlockType/index.d.ts +5 -5
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/index.d.ts +5 -5
- package/dist/types-ts4.5/plugins/text-formatting/commands/clear-formatting.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/commands/text-formatting.d.ts +3 -2
- package/dist/types-ts4.5/plugins/text-formatting/commands/transform-to-code.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/clear-formatting-keymap.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/clear-formatting.d.ts +3 -3
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/input-rule.d.ts +3 -3
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/keymap.d.ts +3 -3
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/smart-input-rule.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/constants.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/dropdown-menu.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/hooks/responsive-toolbar-buttons.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/index.d.ts +5 -5
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/types.d.ts +5 -5
- package/dist/{types → types-ts4.5/plugins/text-formatting}/utils/cell-selection.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/utils.d.ts +3 -3
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/Toolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.d.ts +1 -1
- package/dist/types-ts4.5/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/styles.d.ts +0 -4
- package/dist/types-ts4.5/utils/commands.d.ts +3 -3
- package/dist/types-ts4.5/utils/index.d.ts +3 -3
- package/dist/types-ts4.5/utils/input-rules.d.ts +3 -3
- package/package.json +1 -1
- package/report.api.md +14 -14
- package/tmp/api-report-tmp.d.ts +14 -14
- /package/dist/cjs/{utils → plugins/text-formatting/utils}/cell-selection.js +0 -0
- /package/dist/es2019/{utils → plugins/text-formatting/utils}/cell-selection.js +0 -0
- /package/dist/esm/{utils → plugins/text-formatting/utils}/cell-selection.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as keymaps from '
|
|
2
|
-
import { keymap } from '
|
|
1
|
+
import * as keymaps from '@atlaskit/editor-common/keymaps';
|
|
2
|
+
import { keymap } from 'prosemirror-keymap';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import * as commands from '../commands/text-formatting';
|
|
5
5
|
export default function keymapPlugin(schema, editorAnalyticsAPI) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toggleMark } from 'prosemirror-commands';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import * as keymaps from '
|
|
3
|
+
import * as keymaps from '@atlaskit/editor-common/keymaps';
|
|
4
4
|
import { shallowEqual } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { createInlineCodeFromTextInputWithAnalytics } from '../commands/text-formatting';
|
|
6
6
|
// eslint-disable-next-line no-duplicate-imports
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ToolbarSize } from '
|
|
1
|
+
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { IconTypes } from './types';
|
|
3
3
|
export const DefaultButtonsToolbar = [IconTypes.strong, IconTypes.em];
|
|
4
4
|
export const DefaultButtonsMenu = [IconTypes.underline, IconTypes.strike, IconTypes.code, IconTypes.subscript, IconTypes.superscript];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useCallback, useMemo } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { shortcutStyle } from '
|
|
4
|
+
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
5
5
|
import { toolbarMessages } from '../toolbar-messages';
|
|
6
6
|
import { clearFormattingWithAnalytics } from '../../../commands/clear-formatting';
|
|
7
7
|
import { pluginKey as clearFormattingPluginKey } from '../../../pm-plugins/clear-formatting';
|
|
8
|
-
import { clearFormatting as clearFormattingKeymap, tooltip } from '
|
|
9
|
-
import { INPUT_METHOD } from '
|
|
8
|
+
import { clearFormatting as clearFormattingKeymap, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
9
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
const useClearFormattingPluginState = editorState => {
|
|
11
11
|
return useMemo(() => clearFormattingPluginKey.getState(editorState), [editorState]);
|
|
12
12
|
};
|
|
@@ -3,13 +3,12 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
import BoldIcon from '@atlaskit/icon/glyph/editor/bold';
|
|
5
5
|
import ItalicIcon from '@atlaskit/icon/glyph/editor/italic';
|
|
6
|
-
import { shortcutStyle } from '
|
|
6
|
+
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
7
7
|
import { toolbarMessages } from '../toolbar-messages';
|
|
8
8
|
import * as commands from '../../../commands/text-formatting';
|
|
9
|
-
import { TOOLBAR_ACTION_SUBJECT_ID } from '
|
|
9
|
+
import { TOOLBAR_ACTION_SUBJECT_ID, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import { pluginKey as textFormattingPluginKey } from '../../../pm-plugins/plugin-key';
|
|
11
11
|
import { toggleCode, toggleStrikethrough, toggleUnderline, tooltip, toggleBold, toggleItalic, toggleSubscript, toggleSuperscript, ToolTipContent } from '../../../../../keymaps';
|
|
12
|
-
import { INPUT_METHOD } from '../../../../analytics/types/enums';
|
|
13
12
|
import { IconTypes } from '../types';
|
|
14
13
|
import { getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
15
14
|
const withToolbarInputMethod = func => func({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { useMemo, useState, useEffect } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
import { injectIntl } from 'react-intl-next';
|
|
5
|
-
import { separatorStyles,
|
|
5
|
+
import { separatorStyles, buttonGroupStyle, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
6
6
|
import { useFormattingIcons, useHasFormattingActived } from './hooks/formatting-icons';
|
|
7
7
|
import { useClearIcon } from './hooks/clear-formatting-icon';
|
|
8
8
|
import { useResponsiveToolbarButtons, useResponsiveIconTypeMenu } from './hooks/responsive-toolbar-buttons';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
import MoreIcon from '@atlaskit/icon/glyph/editor/more';
|
|
5
|
-
import { triggerWrapperStyles } from '
|
|
6
|
-
import ToolbarButton from '
|
|
5
|
+
import { triggerWrapperStyles } from '@atlaskit/editor-common/styles';
|
|
6
|
+
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
7
7
|
export const MoreButton = /*#__PURE__*/React.memo(({
|
|
8
8
|
label,
|
|
9
9
|
'aria-expanded': ariaExpanded,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
4
|
+
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
5
|
+
import { buttonGroupStyle } from '@atlaskit/editor-common/styles';
|
|
6
6
|
export const SingleToolbarButtons = /*#__PURE__*/React.memo(({
|
|
7
7
|
items,
|
|
8
8
|
isReducedSpacing,
|
|
@@ -9,7 +9,7 @@ import { toggleBulletList as toggleBulletListKeymap, toggleOrderedList as toggle
|
|
|
9
9
|
import ToolbarButton, { TOOLBAR_BUTTON } from '../../../ui/ToolbarButton';
|
|
10
10
|
import { messages } from '../../list/messages';
|
|
11
11
|
import { messages as indentationMessages } from '../../indentation/messages';
|
|
12
|
-
import {
|
|
12
|
+
import { separatorStyles, buttonGroupStyle } from '@atlaskit/editor-common/styles';
|
|
13
13
|
import { getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
14
14
|
import { useEffect, useRef } from 'react';
|
|
15
15
|
export function Toolbar(props) {
|
|
@@ -7,7 +7,8 @@ import BulletListIcon from '@atlaskit/icon/glyph/editor/bullet-list';
|
|
|
7
7
|
import { toggleBulletList as toggleBulletListKeymap, toggleOrderedList as toggleOrderedListKeymap, indent as toggleIndentKeymap, outdent as toggleOutdentKeymap, tooltip } from '../../../keymaps';
|
|
8
8
|
import DropdownMenu from '../../../ui/DropdownMenu';
|
|
9
9
|
import ToolbarButton from '../../../ui/ToolbarButton';
|
|
10
|
-
import {
|
|
10
|
+
import { expandIconWrapperStyle, shortcutStyle } from '../../../ui/styles';
|
|
11
|
+
import { wrapperStyle, separatorStyles } from '@atlaskit/editor-common/styles';
|
|
11
12
|
import { messages as listMessages } from '../../list/messages';
|
|
12
13
|
import { messages as indentationMessages } from '../../indentation/messages';
|
|
13
14
|
export function ToolbarDropdown(props) {
|
|
@@ -5,7 +5,7 @@ import { injectIntl } from 'react-intl-next';
|
|
|
5
5
|
import UndoIcon from '@atlaskit/icon/glyph/undo';
|
|
6
6
|
import RedoIcon from '@atlaskit/icon/glyph/redo';
|
|
7
7
|
import { undo as undoKeymap, redo as redoKeymap, ToolTipContent, tooltip } from '../../../../keymaps';
|
|
8
|
-
import {
|
|
8
|
+
import { separatorStyles, buttonGroupStyle } from '@atlaskit/editor-common/styles';
|
|
9
9
|
import ToolbarButton, { TOOLBAR_BUTTON } from '../../../../ui/ToolbarButton';
|
|
10
10
|
import { messages } from '../../messages';
|
|
11
11
|
import { createTypeAheadTools } from '../../../type-ahead/api';
|
package/dist/es2019/ui/styles.js
CHANGED
|
@@ -1,55 +1,13 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
import { N30 } from '@atlaskit/theme/colors';
|
|
3
2
|
export { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
4
3
|
export { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
5
|
-
export const buttonGroupStyle = css`
|
|
6
|
-
display: inline-flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
|
|
9
|
-
& > div {
|
|
10
|
-
display: flex;
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
// This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
|
|
15
|
-
// If you make change here, change in above file as well.
|
|
16
|
-
export const separatorStyles = css`
|
|
17
|
-
background: ${`var(--ds-border, ${N30})`};
|
|
18
|
-
width: 1px;
|
|
19
|
-
height: 24px;
|
|
20
|
-
display: inline-block;
|
|
21
|
-
margin: 0 8px;
|
|
22
|
-
user-select: none;
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
// This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
|
|
26
|
-
// If you make change here, change in above file as well.
|
|
27
|
-
export const wrapperStyle = css`
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
|
|
31
|
-
> div,
|
|
32
|
-
> span {
|
|
33
|
-
display: flex;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
> div > div {
|
|
37
|
-
display: flex;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
margin-left: 0;
|
|
41
|
-
min-width: auto;
|
|
42
|
-
`;
|
|
43
4
|
export const wrapperSmallStyle = css`
|
|
44
|
-
margin-left: 4px;
|
|
5
|
+
margin-left: ${"var(--ds-space-050, 4px)"};
|
|
45
6
|
min-width: 40px;
|
|
46
7
|
`;
|
|
47
8
|
export const expandIconWrapperStyle = css`
|
|
48
9
|
margin-left: -8px;
|
|
49
10
|
`;
|
|
50
|
-
export const triggerWrapperStyles = css`
|
|
51
|
-
display: flex;
|
|
52
|
-
`;
|
|
53
11
|
export const buttonContentStyle = css`
|
|
54
12
|
display: flex;
|
|
55
13
|
min-width: 80px;
|
|
@@ -57,10 +15,10 @@ export const buttonContentStyle = css`
|
|
|
57
15
|
overflow: hidden;
|
|
58
16
|
justify-content: center;
|
|
59
17
|
flex-direction: column;
|
|
60
|
-
padding: 6px;
|
|
18
|
+
padding: ${"var(--ds-space-075, 6px)"};
|
|
61
19
|
`;
|
|
62
20
|
export const buttonContentReducedSpacingStyle = css`
|
|
63
|
-
padding: 8px;
|
|
21
|
+
padding: ${"var(--ds-space-100, 8px)"};
|
|
64
22
|
`;
|
|
65
23
|
export const clickSelectWrapperStyle = css`
|
|
66
24
|
user-select: all;
|
package/dist/es2019/version.json
CHANGED
|
@@ -18,7 +18,7 @@ import ToolbarButton from '../../../../ui/ToolbarButton';
|
|
|
18
18
|
import Dropdown from '../../../../ui/Dropdown';
|
|
19
19
|
import Alignment from '../../../../ui/Alignment';
|
|
20
20
|
import { expandIconWrapper, triggerWrapper, wrapper } from './styles';
|
|
21
|
-
import { separatorStyles } from '
|
|
21
|
+
import { separatorStyles } from '@atlaskit/editor-common/styles';
|
|
22
22
|
import { IconMap } from './icon-map';
|
|
23
23
|
import { messages } from './messages';
|
|
24
24
|
export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
@@ -5,7 +5,8 @@ import { FormattedMessage, defineMessages } from 'react-intl-next';
|
|
|
5
5
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
6
6
|
import TextStyleIcon from '@atlaskit/icon/glyph/editor/text-style';
|
|
7
7
|
import ToolbarButton from '../../../../ui/ToolbarButton';
|
|
8
|
-
import { buttonContentStyle, buttonContentReducedSpacingStyle,
|
|
8
|
+
import { buttonContentStyle, buttonContentReducedSpacingStyle, wrapperSmallStyle, expandIconWrapperStyle } from '../../../../ui/styles';
|
|
9
|
+
import { wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
9
10
|
import { NORMAL_TEXT } from '../../types';
|
|
10
11
|
export var messages = defineMessages({
|
|
11
12
|
textStyles: {
|
|
@@ -15,7 +15,7 @@ import { jsx } from '@emotion/react';
|
|
|
15
15
|
import { injectIntl } from 'react-intl-next';
|
|
16
16
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
17
17
|
import DropdownMenu from '../../../../ui/DropdownMenu';
|
|
18
|
-
import { separatorStyles, wrapperStyle } from '
|
|
18
|
+
import { separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
19
19
|
import { blockTypeMenuItemStyle, keyboardShortcut, keyboardShortcutSelect } from './styled';
|
|
20
20
|
import { tooltip, findKeymapByDescription } from '../../../../keymaps';
|
|
21
21
|
import { BlockTypeButton } from './blocktype-button';
|
|
@@ -18,7 +18,7 @@ import { injectIntl } from 'react-intl-next';
|
|
|
18
18
|
import { EmojiPicker as AkEmojiPicker } from '@atlaskit/emoji/picker';
|
|
19
19
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
20
20
|
import ToolbarButton from '../../../../ui/ToolbarButton';
|
|
21
|
-
import { separatorStyles, buttonGroupStyle, wrapperStyle } from '
|
|
21
|
+
import { separatorStyles, buttonGroupStyle, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
22
22
|
import { insertDate } from '../../../date/actions';
|
|
23
23
|
import { openElementBrowserModal } from '../../../quick-insert/commands';
|
|
24
24
|
import { showPlaceholderFloatingToolbar } from '../../../placeholder-text/actions';
|
|
@@ -20,7 +20,8 @@ import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
|
20
20
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
21
21
|
import ColorPalette, { textPaletteTooltipMessages } from '../../../../ui/ColorPalette';
|
|
22
22
|
import Dropdown from '../../../../ui/Dropdown';
|
|
23
|
-
import { expandIconWrapperStyle
|
|
23
|
+
import { expandIconWrapperStyle } from '../../../../ui/styles';
|
|
24
|
+
import { wrapperStyle, separatorStyles, triggerWrapperStyles } from '@atlaskit/editor-common/styles';
|
|
24
25
|
import ToolbarButton, { TOOLBAR_BUTTON } from '../../../../ui/ToolbarButton';
|
|
25
26
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../analytics';
|
|
26
27
|
import * as commands from '../../commands/change-color';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
2
2
|
import { liftTarget } from 'prosemirror-transform';
|
|
3
|
-
import { cellSelectionNodesBetween } from '../../../utils/cell-selection';
|
|
4
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { cellSelectionNodesBetween } from '../utils/cell-selection';
|
|
5
5
|
export var FORMATTING_NODE_TYPES = ['heading', 'codeBlock', 'blockquote'];
|
|
6
6
|
export var FORMATTING_MARK_TYPES = ['em', 'code', 'strike', 'strong', 'underline', 'textColor', 'subsup'];
|
|
7
7
|
var formatTypes = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { code, em, strike, strong, subsup, underline } from '@atlaskit/adf-schema';
|
|
3
|
-
import WithPluginState from '
|
|
3
|
+
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
4
4
|
import { plugin as textFormattingPlugin, pluginKey as textFormattingPluginKey } from './pm-plugins/main';
|
|
5
5
|
import { plugin as clearFormattingPlugin, pluginKey as clearFormattingPluginKey } from './pm-plugins/clear-formatting';
|
|
6
6
|
import clearFormattingKeymapPlugin from './pm-plugins/clear-formatting-keymap';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { keymap } from 'prosemirror-keymap';
|
|
2
|
-
import * as keymaps from '
|
|
2
|
+
import * as keymaps from '@atlaskit/editor-common/keymaps';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { clearFormattingWithAnalytics } from '../commands/clear-formatting';
|
|
5
5
|
export function keymapPlugin(editorAnalyticsAPI) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as safePlugin from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
3
|
import { checkFormattingIsPresent } from '../utils';
|
|
4
4
|
export var pluginKey = new PluginKey('clearFormattingPlugin');
|
|
5
5
|
export var plugin = function plugin(dispatch) {
|
|
6
|
-
return new SafePlugin({
|
|
6
|
+
return new safePlugin.SafePlugin({
|
|
7
7
|
state: {
|
|
8
8
|
init: function init(_config, state) {
|
|
9
9
|
return {
|
|
@@ -11,8 +11,7 @@ var _ValidCombinations;
|
|
|
11
11
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
12
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
13
|
import { ruleWithAnalytics } from '../../../utils/input-rules';
|
|
14
|
-
import { createRule, createPlugin } from '@atlaskit/prosemirror-input-rules';
|
|
15
|
-
import { leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
|
|
14
|
+
import { createRule, createPlugin, leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
|
|
16
15
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
17
16
|
import { transformSmartCharsMentionsAndEmojis } from '../commands/transform-to-code';
|
|
18
17
|
var ValidAutoformatChars = /*#__PURE__*/function (ValidAutoformatChars) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as keymaps from '
|
|
2
|
-
import { keymap } from '
|
|
1
|
+
import * as keymaps from '@atlaskit/editor-common/keymaps';
|
|
2
|
+
import { keymap } from 'prosemirror-keymap';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import * as commands from '../commands/text-formatting';
|
|
5
5
|
export default function keymapPlugin(schema, editorAnalyticsAPI) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toggleMark } from 'prosemirror-commands';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import * as keymaps from '
|
|
3
|
+
import * as keymaps from '@atlaskit/editor-common/keymaps';
|
|
4
4
|
import { shallowEqual } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { createInlineCodeFromTextInputWithAnalytics } from '../commands/text-formatting';
|
|
6
6
|
// eslint-disable-next-line no-duplicate-imports
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
var _ResponsiveCustomButt, _ResponsiveCustomMenu;
|
|
3
|
-
import { ToolbarSize } from '
|
|
3
|
+
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { IconTypes } from './types';
|
|
5
5
|
export var DefaultButtonsToolbar = [IconTypes.strong, IconTypes.em];
|
|
6
6
|
export var DefaultButtonsMenu = [IconTypes.underline, IconTypes.strike, IconTypes.code, IconTypes.subscript, IconTypes.superscript];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useCallback, useMemo } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { shortcutStyle } from '
|
|
4
|
+
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
5
5
|
import { toolbarMessages } from '../toolbar-messages';
|
|
6
6
|
import { clearFormattingWithAnalytics } from '../../../commands/clear-formatting';
|
|
7
7
|
import { pluginKey as clearFormattingPluginKey } from '../../../pm-plugins/clear-formatting';
|
|
8
|
-
import { clearFormatting as clearFormattingKeymap, tooltip } from '
|
|
9
|
-
import { INPUT_METHOD } from '
|
|
8
|
+
import { clearFormatting as clearFormattingKeymap, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
9
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
var useClearFormattingPluginState = function useClearFormattingPluginState(editorState) {
|
|
11
11
|
return useMemo(function () {
|
|
12
12
|
return clearFormattingPluginKey.getState(editorState);
|
|
@@ -5,13 +5,12 @@ import React, { useMemo } from 'react';
|
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
6
|
import BoldIcon from '@atlaskit/icon/glyph/editor/bold';
|
|
7
7
|
import ItalicIcon from '@atlaskit/icon/glyph/editor/italic';
|
|
8
|
-
import { shortcutStyle } from '
|
|
8
|
+
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
9
9
|
import { toolbarMessages } from '../toolbar-messages';
|
|
10
10
|
import * as commands from '../../../commands/text-formatting';
|
|
11
|
-
import { TOOLBAR_ACTION_SUBJECT_ID } from '
|
|
11
|
+
import { TOOLBAR_ACTION_SUBJECT_ID, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
12
12
|
import { pluginKey as textFormattingPluginKey } from '../../../pm-plugins/plugin-key';
|
|
13
13
|
import { toggleCode, toggleStrikethrough, toggleUnderline, tooltip, toggleBold, toggleItalic, toggleSubscript, toggleSuperscript, ToolTipContent } from '../../../../../keymaps';
|
|
14
|
-
import { INPUT_METHOD } from '../../../../analytics/types/enums';
|
|
15
14
|
import { IconTypes } from '../types';
|
|
16
15
|
import { getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
17
16
|
var withToolbarInputMethod = function withToolbarInputMethod(func) {
|
|
@@ -11,7 +11,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
11
11
|
import React, { useMemo, useState, useEffect } from 'react';
|
|
12
12
|
import { jsx } from '@emotion/react';
|
|
13
13
|
import { injectIntl } from 'react-intl-next';
|
|
14
|
-
import { separatorStyles,
|
|
14
|
+
import { separatorStyles, buttonGroupStyle, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
15
15
|
import { useFormattingIcons, useHasFormattingActived } from './hooks/formatting-icons';
|
|
16
16
|
import { useClearIcon } from './hooks/clear-formatting-icon';
|
|
17
17
|
import { useResponsiveToolbarButtons, useResponsiveIconTypeMenu } from './hooks/responsive-toolbar-buttons';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
import MoreIcon from '@atlaskit/icon/glyph/editor/more';
|
|
5
|
-
import { triggerWrapperStyles } from '
|
|
6
|
-
import ToolbarButton from '
|
|
5
|
+
import { triggerWrapperStyles } from '@atlaskit/editor-common/styles';
|
|
6
|
+
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
7
7
|
export var MoreButton = /*#__PURE__*/React.memo(function (_ref) {
|
|
8
8
|
var label = _ref.label,
|
|
9
9
|
ariaExpanded = _ref['aria-expanded'],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
4
|
+
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
5
|
+
import { buttonGroupStyle } from '@atlaskit/editor-common/styles';
|
|
6
6
|
export var SingleToolbarButtons = /*#__PURE__*/React.memo(function (_ref) {
|
|
7
7
|
var items = _ref.items,
|
|
8
8
|
isReducedSpacing = _ref.isReducedSpacing,
|
|
@@ -9,7 +9,7 @@ import { toggleBulletList as toggleBulletListKeymap, toggleOrderedList as toggle
|
|
|
9
9
|
import ToolbarButton, { TOOLBAR_BUTTON } from '../../../ui/ToolbarButton';
|
|
10
10
|
import { messages } from '../../list/messages';
|
|
11
11
|
import { messages as indentationMessages } from '../../indentation/messages';
|
|
12
|
-
import {
|
|
12
|
+
import { separatorStyles, buttonGroupStyle } from '@atlaskit/editor-common/styles';
|
|
13
13
|
import { getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
14
14
|
import { useEffect, useRef } from 'react';
|
|
15
15
|
export function Toolbar(props) {
|
|
@@ -8,7 +8,8 @@ import BulletListIcon from '@atlaskit/icon/glyph/editor/bullet-list';
|
|
|
8
8
|
import { toggleBulletList as toggleBulletListKeymap, toggleOrderedList as toggleOrderedListKeymap, indent as toggleIndentKeymap, outdent as toggleOutdentKeymap, tooltip } from '../../../keymaps';
|
|
9
9
|
import DropdownMenu from '../../../ui/DropdownMenu';
|
|
10
10
|
import ToolbarButton from '../../../ui/ToolbarButton';
|
|
11
|
-
import {
|
|
11
|
+
import { expandIconWrapperStyle, shortcutStyle } from '../../../ui/styles';
|
|
12
|
+
import { wrapperStyle, separatorStyles } from '@atlaskit/editor-common/styles';
|
|
12
13
|
import { messages as listMessages } from '../../list/messages';
|
|
13
14
|
import { messages as indentationMessages } from '../../indentation/messages';
|
|
14
15
|
export function ToolbarDropdown(props) {
|
|
@@ -12,7 +12,7 @@ import { injectIntl } from 'react-intl-next';
|
|
|
12
12
|
import UndoIcon from '@atlaskit/icon/glyph/undo';
|
|
13
13
|
import RedoIcon from '@atlaskit/icon/glyph/redo';
|
|
14
14
|
import { undo as undoKeymap, redo as redoKeymap, ToolTipContent, tooltip } from '../../../../keymaps';
|
|
15
|
-
import {
|
|
15
|
+
import { separatorStyles, buttonGroupStyle } from '@atlaskit/editor-common/styles';
|
|
16
16
|
import ToolbarButton, { TOOLBAR_BUTTON } from '../../../../ui/ToolbarButton';
|
|
17
17
|
import { messages } from '../../messages';
|
|
18
18
|
import { createTypeAheadTools } from '../../../type-ahead/api';
|
package/dist/esm/ui/styles.js
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
import { N30 } from '@atlaskit/theme/colors';
|
|
5
4
|
export { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
6
5
|
export { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
7
|
-
export var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export var
|
|
12
|
-
|
|
13
|
-
// This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
|
|
14
|
-
// If you make change here, change in above file as well.
|
|
15
|
-
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"])));
|
|
16
|
-
export var wrapperSmallStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-left: 4px;\n min-width: 40px;\n"])));
|
|
17
|
-
export var expandIconWrapperStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-left: -8px;\n"])));
|
|
18
|
-
export var triggerWrapperStyles = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n"])));
|
|
19
|
-
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"])));
|
|
20
|
-
export var buttonContentReducedSpacingStyle = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n padding: 8px;\n"])));
|
|
21
|
-
export var clickSelectWrapperStyle = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n user-select: all;\n"])));
|
|
22
|
-
export var centeredToolbarContainer = css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n align-items: center;\n"])));
|
|
6
|
+
export var wrapperSmallStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-left: ", ";\n min-width: 40px;\n"])), "var(--ds-space-050, 4px)");
|
|
7
|
+
export var expandIconWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-left: -8px;\n"])));
|
|
8
|
+
export var buttonContentStyle = css(_templateObject3 || (_templateObject3 = _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: ", ";\n"])), "var(--ds-space-075, 6px)");
|
|
9
|
+
export var buttonContentReducedSpacingStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: ", ";\n"])), "var(--ds-space-100, 8px)");
|
|
10
|
+
export var clickSelectWrapperStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n user-select: all;\n"])));
|
|
11
|
+
export var centeredToolbarContainer = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n align-items: center;\n"])));
|
package/dist/esm/version.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
import { AlignmentPluginState, AlignmentState } from '../../pm-plugins/types';
|
|
4
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
+
import type { AlignmentPluginState, AlignmentState } from '../../pm-plugins/types';
|
|
6
6
|
export interface State {
|
|
7
7
|
isOpen: boolean;
|
|
8
8
|
isOpenedByKeyboard: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { MessageDescriptor } from '../../../../types/i18n';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { MessageDescriptor } from '../../../../types/i18n';
|
|
5
5
|
export interface BlockTypeButtonProps {
|
|
6
6
|
isSmall?: boolean;
|
|
7
7
|
isReducedSpacing?: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { BlockTypeState } from '../../pm-plugins/main';
|
|
5
|
-
import { BlockType } from '../../types';
|
|
6
|
-
import { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
7
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { BlockTypeState } from '../../pm-plugins/main';
|
|
5
|
+
import type { BlockType } from '../../types';
|
|
6
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
7
|
+
import type { EditorView } from 'prosemirror-view';
|
|
8
8
|
export type DropdownItem = MenuItem & {
|
|
9
9
|
value: BlockType;
|
|
10
10
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
import { Props, State } from './types';
|
|
4
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
+
import type { Props, State } from './types';
|
|
6
6
|
export declare class ToolbarInsertBlock extends React.PureComponent<Props & WrappedComponentProps, State> {
|
|
7
7
|
private dropdownButtonRef?;
|
|
8
8
|
private emojiButtonRef?;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { EditorView } from 'prosemirror-view';
|
|
5
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
-
import { DispatchAnalyticsEvent } from '../../../analytics';
|
|
7
|
-
import { TextColorPluginState } from '../../pm-plugins/main';
|
|
8
|
-
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { EditorView } from 'prosemirror-view';
|
|
5
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { DispatchAnalyticsEvent } from '../../../analytics';
|
|
7
|
+
import type { TextColorPluginState } from '../../pm-plugins/main';
|
|
8
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
9
9
|
export declare const messages: {
|
|
10
10
|
textColor: {
|
|
11
11
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Command } from '
|
|
2
|
-
import { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
export declare const FORMATTING_NODE_TYPES: string[];
|
|
4
4
|
export declare const FORMATTING_MARK_TYPES: string[];
|
|
5
5
|
export declare function clearFormattingWithAnalytics(inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): Command;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Command } from '
|
|
2
|
-
import {
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
export declare const moveRight: () => Command;
|
|
4
5
|
export declare const moveLeft: () => Command;
|
|
5
6
|
export type InputMethodToolbar = INPUT_METHOD.TOOLBAR;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Transaction } from 'prosemirror-state';
|
|
1
|
+
import type { Transaction } from 'prosemirror-state';
|
|
2
2
|
export declare const transformSmartCharsMentionsAndEmojis: (from: number, to: number, tr: Transaction) => void;
|