@atlaskit/editor-plugin-toolbar-lists-indentation 27.0.4 → 27.0.7
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 +18 -0
- package/dist/cjs/pm-plugins/indentation-buttons.js +2 -2
- package/dist/cjs/toolbarListsIndentationPlugin.js +2 -2
- package/dist/cjs/ui/FloatingToolbarComponent.js +2 -2
- package/dist/cjs/ui/Toolbar.js +23 -20
- package/dist/cjs/ui/ToolbarDropdown.js +22 -16
- package/dist/cjs/ui/index.js +2 -2
- package/dist/cjs/ui/toolbar-components/BulletedListButton.js +6 -4
- package/dist/cjs/ui/toolbar-components/BulletedListButtonGroup.js +17 -14
- package/dist/cjs/ui/toolbar-components/BulletedListMenuItem.js +10 -8
- package/dist/cjs/ui/toolbar-components/IndentMenuItem.js +10 -7
- package/dist/cjs/ui/toolbar-components/ListsIndentationGroupForInlineToolbar.js +7 -6
- package/dist/cjs/ui/toolbar-components/ListsIndentationGroupForPrimaryToolbar.js +22 -19
- package/dist/cjs/ui/toolbar-components/ListsIndentationHeroButton.js +20 -16
- package/dist/cjs/ui/toolbar-components/ListsIndentationHeroButtonGroup.js +15 -14
- package/dist/cjs/ui/toolbar-components/ListsIndentationMenu.js +16 -14
- package/dist/cjs/ui/toolbar-components/ListsIndentationMenuGroup.js +41 -40
- package/dist/cjs/ui/toolbar-components/MenuSection.js +4 -4
- package/dist/cjs/ui/toolbar-components/NumberedListMenuItem.js +10 -8
- package/dist/cjs/ui/toolbar-components/OutdentMenuItem.js +10 -7
- package/dist/cjs/ui/toolbar-components/TaskListMenuItem.js +10 -9
- package/dist/cjs/ui/utils/hooks.js +3 -3
- package/dist/cjs/ui/utils/input-method.js +2 -2
- package/dist/es2019/pm-plugins/indentation-buttons.js +1 -1
- package/dist/es2019/toolbarListsIndentationPlugin.js +1 -1
- package/dist/es2019/ui/FloatingToolbarComponent.js +1 -1
- package/dist/es2019/ui/Toolbar.js +6 -3
- package/dist/es2019/ui/ToolbarDropdown.js +9 -3
- package/dist/es2019/ui/index.js +1 -1
- package/dist/es2019/ui/toolbar-components/BulletedListButton.js +3 -1
- package/dist/es2019/ui/toolbar-components/BulletedListButtonGroup.js +5 -2
- package/dist/es2019/ui/toolbar-components/BulletedListMenuItem.js +5 -3
- package/dist/es2019/ui/toolbar-components/IndentMenuItem.js +6 -3
- package/dist/es2019/ui/toolbar-components/ListsIndentationGroupForInlineToolbar.js +2 -1
- package/dist/es2019/ui/toolbar-components/ListsIndentationGroupForPrimaryToolbar.js +5 -2
- package/dist/es2019/ui/toolbar-components/ListsIndentationHeroButton.js +7 -3
- package/dist/es2019/ui/toolbar-components/ListsIndentationHeroButtonGroup.js +2 -1
- package/dist/es2019/ui/toolbar-components/ListsIndentationMenu.js +6 -4
- package/dist/es2019/ui/toolbar-components/ListsIndentationMenuGroup.js +2 -1
- package/dist/es2019/ui/toolbar-components/MenuSection.js +2 -2
- package/dist/es2019/ui/toolbar-components/NumberedListMenuItem.js +5 -3
- package/dist/es2019/ui/toolbar-components/OutdentMenuItem.js +6 -3
- package/dist/es2019/ui/toolbar-components/TaskListMenuItem.js +5 -4
- package/dist/es2019/ui/utils/hooks.js +1 -1
- package/dist/es2019/ui/utils/input-method.js +1 -1
- package/dist/esm/pm-plugins/indentation-buttons.js +1 -1
- package/dist/esm/toolbarListsIndentationPlugin.js +1 -1
- package/dist/esm/ui/FloatingToolbarComponent.js +1 -1
- package/dist/esm/ui/Toolbar.js +6 -3
- package/dist/esm/ui/ToolbarDropdown.js +9 -3
- package/dist/esm/ui/index.js +1 -1
- package/dist/esm/ui/toolbar-components/BulletedListButton.js +3 -1
- package/dist/esm/ui/toolbar-components/BulletedListButtonGroup.js +5 -2
- package/dist/esm/ui/toolbar-components/BulletedListMenuItem.js +5 -3
- package/dist/esm/ui/toolbar-components/IndentMenuItem.js +6 -3
- package/dist/esm/ui/toolbar-components/ListsIndentationGroupForInlineToolbar.js +2 -1
- package/dist/esm/ui/toolbar-components/ListsIndentationGroupForPrimaryToolbar.js +5 -2
- package/dist/esm/ui/toolbar-components/ListsIndentationHeroButton.js +7 -3
- package/dist/esm/ui/toolbar-components/ListsIndentationHeroButtonGroup.js +2 -1
- package/dist/esm/ui/toolbar-components/ListsIndentationMenu.js +6 -4
- package/dist/esm/ui/toolbar-components/ListsIndentationMenuGroup.js +2 -1
- package/dist/esm/ui/toolbar-components/MenuSection.js +2 -2
- package/dist/esm/ui/toolbar-components/NumberedListMenuItem.js +5 -3
- package/dist/esm/ui/toolbar-components/OutdentMenuItem.js +6 -3
- package/dist/esm/ui/toolbar-components/TaskListMenuItem.js +5 -4
- package/dist/esm/ui/utils/hooks.js +1 -1
- package/dist/esm/ui/utils/input-method.js +1 -1
- package/dist/types/toolbarListsIndentationPlugin.d.ts +3 -1
- package/dist/types/toolbarListsIndentationPluginType.d.ts +11 -11
- package/dist/types/types/index.d.ts +3 -2
- package/dist/types/ui/FloatingToolbarComponent.d.ts +2 -1
- package/dist/types/ui/index.d.ts +2 -1
- package/dist/types/ui/onItemActivated.d.ts +2 -2
- package/dist/types/ui/toolbar-components/BulletedListButton.d.ts +2 -2
- package/dist/types/ui/toolbar-components/BulletedListButtonGroup.d.ts +2 -2
- package/dist/types/ui/toolbar-components/BulletedListMenuItem.d.ts +2 -2
- package/dist/types/ui/toolbar-components/IndentMenuItem.d.ts +2 -2
- package/dist/types/ui/toolbar-components/ListsIndentationGroupForInlineToolbar.d.ts +1 -1
- package/dist/types/ui/toolbar-components/ListsIndentationGroupForPrimaryToolbar.d.ts +1 -1
- package/dist/types/ui/toolbar-components/ListsIndentationHeroButton.d.ts +2 -2
- package/dist/types/ui/toolbar-components/ListsIndentationHeroButtonGroup.d.ts +2 -2
- package/dist/types/ui/toolbar-components/ListsIndentationMenu.d.ts +1 -1
- package/dist/types/ui/toolbar-components/ListsIndentationMenuGroup.d.ts +2 -2
- package/dist/types/ui/toolbar-components/MenuSection.d.ts +1 -1
- package/dist/types/ui/toolbar-components/NumberedListMenuItem.d.ts +2 -2
- package/dist/types/ui/toolbar-components/OutdentMenuItem.d.ts +2 -2
- package/dist/types/ui/toolbar-components/TaskListMenuItem.d.ts +2 -2
- package/dist/types/ui/toolbar-components.d.ts +2 -2
- package/dist/types/ui/utils/hooks.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { toggleBulletList as toggleBulletListKeymap, ToolTipContent, getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
3
|
-
import { ListBulletedIcon
|
|
3
|
+
import { ListBulletedIcon } from '@atlaskit/editor-toolbar/list-bulleted-icon';
|
|
4
|
+
import { ToolbarButton } from '@atlaskit/editor-toolbar/toolbar-button';
|
|
5
|
+
import { ToolbarTooltip } from '@atlaskit/editor-toolbar/toolbar-tooltip';
|
|
4
6
|
import { useBulletedListInfo } from './BulletedListMenuItem';
|
|
5
7
|
export const BulletedListButton = ({
|
|
6
8
|
api,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
3
|
+
import { BULLETED_LIST_BUTTON, BULLETED_LIST_BUTTON_GROUP, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar/keys';
|
|
4
|
+
import { TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar/rank';
|
|
5
|
+
import { Show } from '@atlaskit/editor-toolbar/show';
|
|
6
|
+
import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
|
|
4
7
|
import { BulletedListButton } from './BulletedListButton';
|
|
5
8
|
const BulletedListButtonGroup = ({
|
|
6
9
|
children
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
3
|
import { toggleBulletList as toggleBulletListKeymap, formatShortcut } from '@atlaskit/editor-common/keymaps';
|
|
5
|
-
import { listMessages } from '@atlaskit/editor-common/messages';
|
|
4
|
+
import { messages as listMessages } from '@atlaskit/editor-common/messages/list';
|
|
6
5
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
7
|
-
import {
|
|
6
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
7
|
+
import { ListBulletedIcon } from '@atlaskit/editor-toolbar/list-bulleted-icon';
|
|
8
|
+
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
9
|
+
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
8
10
|
export const useBulletedListInfo = ({
|
|
9
11
|
api,
|
|
10
12
|
parents
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { indent as toggleIndentKeymap, formatShortcut } from '@atlaskit/editor-common/keymaps';
|
|
4
|
-
import { indentationMessages } from '@atlaskit/editor-common/messages';
|
|
5
|
-
import { getInputMethodFromParentKeys
|
|
6
|
-
import {
|
|
4
|
+
import { messages as indentationMessages } from '@atlaskit/editor-common/messages/indentation';
|
|
5
|
+
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
6
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
7
|
+
import { IndentIcon } from '@atlaskit/editor-toolbar/indent-icon';
|
|
8
|
+
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
9
|
+
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
7
10
|
import { useIndentationState } from '../utils/hooks';
|
|
8
11
|
export const IndentMenuItem = ({
|
|
9
12
|
api,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_INLINE, TEXT_SECTION
|
|
1
|
+
import { LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_INLINE, TEXT_SECTION } from '@atlaskit/editor-common/toolbar/keys';
|
|
2
|
+
import { TEXT_SECTION_RANK } from '@atlaskit/editor-common/toolbar/rank';
|
|
2
3
|
export const getListsIndentationGroupForInlineToolbar = () => {
|
|
3
4
|
return [{
|
|
4
5
|
type: LISTS_INDENTATION_GROUP_INLINE.type,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
3
|
+
import { LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_COLLAPSED, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar/keys';
|
|
4
|
+
import { TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar/rank';
|
|
5
|
+
import { Show } from '@atlaskit/editor-toolbar/show';
|
|
6
|
+
import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
|
|
4
7
|
const ListsIndentationGroup = ({
|
|
5
8
|
children
|
|
6
9
|
}) => {
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
3
|
import { toggleBulletList as toggleBulletListKeymap, toggleOrderedList as toggleOrderedListKeymap, toggleTaskList as toggleTaskListKeymap, formatShortcut, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
5
|
-
import { listMessages
|
|
4
|
+
import { messages as listMessages } from '@atlaskit/editor-common/messages/list';
|
|
5
|
+
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages/tasks-and-decisions';
|
|
6
6
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
7
|
-
import {
|
|
7
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
8
|
+
import { ListBulletedIcon } from '@atlaskit/editor-toolbar/list-bulleted-icon';
|
|
9
|
+
import { ListNumberedIcon } from '@atlaskit/editor-toolbar/list-numbered-icon';
|
|
10
|
+
import { ToolbarButton } from '@atlaskit/editor-toolbar/toolbar-button';
|
|
11
|
+
import { ToolbarTooltip } from '@atlaskit/editor-toolbar/toolbar-tooltip';
|
|
8
12
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
9
13
|
function useListsIndentationHeroButtonInfo({
|
|
10
14
|
api,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_COLLAPSED,
|
|
2
|
+
import { LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_COLLAPSED, LISTS_INDENTATION_GROUP_INLINE, LISTS_INDENTATION_HERO_BUTTON, LISTS_INDENTATION_HERO_BUTTON_COLLAPSED } from '@atlaskit/editor-common/toolbar/keys';
|
|
3
|
+
import { LISTS_INDENTATION_GROUP_COLLAPSED_RANK, LISTS_INDENTATION_GROUP_RANK } from '@atlaskit/editor-common/toolbar/rank';
|
|
3
4
|
import { ListsIndentationHeroButtonCollapsed, ListsIndentationHeroButtonNew } from './ListsIndentationHeroButton';
|
|
4
5
|
export const getListsIndentationHeroButton = api => {
|
|
5
6
|
return [{
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { MoreItemsIcon
|
|
3
|
+
import { messages } from '@atlaskit/editor-common/lists/messages';
|
|
4
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
5
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
6
|
+
import { MoreItemsIcon } from '@atlaskit/editor-toolbar/more-items-icon';
|
|
7
|
+
import { ToolbarDropdownMenu } from '@atlaskit/editor-toolbar/toolbar-dropdown-menu';
|
|
8
|
+
import { ToolbarTooltip } from '@atlaskit/editor-toolbar/toolbar-tooltip';
|
|
7
9
|
import { useIndentationState } from '../utils/hooks';
|
|
8
10
|
export const ListsIndentationMenu = ({
|
|
9
11
|
children,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BULLETED_LIST_MENU_ITEM, INDENT_MENU_ITEM, LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_COLLAPSED,
|
|
2
|
+
import { BULLETED_LIST_MENU_ITEM, INDENT_MENU_ITEM, LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_COLLAPSED, LISTS_INDENTATION_GROUP_INLINE, LISTS_INDENTATION_MENU, LISTS_INDENTATION_MENU_SECTION, NUMBERED_LIST_MENU_ITEM, OUTDENT_MENU_ITEM, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar/keys';
|
|
3
|
+
import { LISTS_INDENTATION_GROUP_COLLAPSED_RANK, LISTS_INDENTATION_GROUP_RANK, LISTS_INDENTATION_MENU_RANK, LISTS_INDENTATION_MENU_SECTION_RANK, TEXT_COLLAPSED_MENU_RANK } from '@atlaskit/editor-common/toolbar/rank';
|
|
3
4
|
import { BulletedListMenuItem } from './BulletedListMenuItem';
|
|
4
5
|
import { IndentMenuItem } from './IndentMenuItem';
|
|
5
6
|
import { ListsIndentationMenu } from './ListsIndentationMenu';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
2
|
+
import { TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar/keys';
|
|
3
|
+
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar/toolbar-dropdown-item-section';
|
|
4
4
|
export const MenuSection = ({
|
|
5
5
|
children,
|
|
6
6
|
title,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
3
|
import { toggleOrderedList as toggleOrderedListKeymap, formatShortcut } from '@atlaskit/editor-common/keymaps';
|
|
5
|
-
import { listMessages } from '@atlaskit/editor-common/messages';
|
|
4
|
+
import { messages as listMessages } from '@atlaskit/editor-common/messages/list';
|
|
6
5
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
7
|
-
import {
|
|
6
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
7
|
+
import { ListNumberedIcon } from '@atlaskit/editor-toolbar/list-numbered-icon';
|
|
8
|
+
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
9
|
+
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
8
10
|
export const NumberedListMenuItem = ({
|
|
9
11
|
api,
|
|
10
12
|
parents
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { outdent as toggleOutdentKeymap, formatShortcut } from '@atlaskit/editor-common/keymaps';
|
|
4
|
-
import { indentationMessages } from '@atlaskit/editor-common/messages';
|
|
5
|
-
import { getInputMethodFromParentKeys
|
|
6
|
-
import {
|
|
4
|
+
import { messages as indentationMessages } from '@atlaskit/editor-common/messages/indentation';
|
|
5
|
+
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
6
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
7
|
+
import { OutdentIcon } from '@atlaskit/editor-toolbar/outdent-icon';
|
|
8
|
+
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
9
|
+
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
7
10
|
import { useIndentationState } from '../utils/hooks';
|
|
8
11
|
export const OutdentMenuItem = ({
|
|
9
12
|
api,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { ToolbarDropdownItem
|
|
3
|
+
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages/tasks-and-decisions';
|
|
4
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
5
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
6
|
+
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
7
|
+
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
7
8
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
8
9
|
export const TaskListMenuItem = ({
|
|
9
10
|
api
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/
|
|
1
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
2
2
|
import { getIndentationButtonsState } from '../../pm-plugins/indentation-buttons';
|
|
3
3
|
export const useIndentationState = ({
|
|
4
4
|
api,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import { ToolbarType } from '../../types';
|
|
3
3
|
const toolbarTypeToInputMethod = {
|
|
4
4
|
[ToolbarType.PRIMARY]: INPUT_METHOD.TOOLBAR,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
|
|
2
|
-
import { getListItemAttributes } from '@atlaskit/editor-common/lists';
|
|
2
|
+
import { getListItemAttributes } from '@atlaskit/editor-common/lists/selection';
|
|
3
3
|
import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
4
4
|
export function getIndentationButtonsState(editorState, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, isInsideListItem) {
|
|
5
5
|
var _indentationState$isI;
|
|
@@ -3,9 +3,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import React, { useState } from 'react';
|
|
6
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
7
6
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
8
7
|
import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
|
|
8
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
9
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
10
10
|
import { getIndentationButtonsState } from './pm-plugins/indentation-buttons';
|
|
11
11
|
import { ToolbarType } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
3
|
import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
|
|
4
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
5
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
6
6
|
import { getIndentationButtonsState } from '../pm-plugins/indentation-buttons';
|
|
7
7
|
import { ToolbarType } from '../types';
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -3,10 +3,13 @@ import * as React from 'react';
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import { useEffect, useRef } from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
+
import { TOOLBAR_ACTION_SUBJECT_ID as TOOLBAR_BUTTON } from '@atlaskit/editor-common/analytics/types/toolbar-button';
|
|
6
7
|
import { getAriaKeyshortcuts, toggleBulletList as toggleBulletListKeymap, indent as toggleIndentKeymap, toggleOrderedList as toggleOrderedListKeymap, outdent as toggleOutdentKeymap, tooltip, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
8
|
+
import { messages as indentationMessages } from '@atlaskit/editor-common/messages/indentation';
|
|
9
|
+
import { messages } from '@atlaskit/editor-common/messages/list';
|
|
10
|
+
import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
|
|
11
|
+
import { ToolbarButtonGroup } from '@atlaskit/editor-common/ui-toolbar/ButtonGroup';
|
|
12
|
+
import { ToolbarSeparator } from '@atlaskit/editor-common/ui-toolbar/Separator';
|
|
10
13
|
import BulletedListIcon from '@atlaskit/icon/core/list-bulleted';
|
|
11
14
|
import NumberListIcon from '@atlaskit/icon/core/list-numbered';
|
|
12
15
|
import OutdentIcon from '@atlaskit/icon/core/text-indent-left';
|
|
@@ -4,9 +4,15 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { toggleBulletList as toggleBulletListKeymap, indent as toggleIndentKeymap, toggleOrderedList as toggleOrderedListKeymap, outdent as toggleOutdentKeymap, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
7
|
-
import { indentationMessages
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { messages as indentationMessages } from '@atlaskit/editor-common/messages/indentation';
|
|
8
|
+
import { messages as listMessages } from '@atlaskit/editor-common/messages/list';
|
|
9
|
+
import { Shortcut } from '@atlaskit/editor-common/Shortcut';
|
|
10
|
+
import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/editor-common/ui-menu/DropdownMenu';
|
|
11
|
+
import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
|
|
12
|
+
import { ToolbarDropdownTriggerWrapper } from '@atlaskit/editor-common/ui-toolbar/DropdownTriggerWrapper';
|
|
13
|
+
import { ToolbarDropdownWrapper } from '@atlaskit/editor-common/ui-toolbar/DropdownWrapper';
|
|
14
|
+
import { ToolbarExpandIcon } from '@atlaskit/editor-common/ui-toolbar/ExpandIcon';
|
|
15
|
+
import { ToolbarSeparator } from '@atlaskit/editor-common/ui-toolbar/Separator';
|
|
10
16
|
import ListBulletedIcon from '@atlaskit/icon/core/list-bulleted';
|
|
11
17
|
import ListNumberedIcon from '@atlaskit/icon/core/list-numbered';
|
|
12
18
|
import TextIndentLeftIcon from '@atlaskit/icon/core/text-indent-left';
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
6
6
|
import { ToolbarType } from '../types';
|
|
7
7
|
import { onItemActivated } from './onItemActivated';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { toggleBulletList as toggleBulletListKeymap, ToolTipContent, getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
3
|
-
import { ListBulletedIcon
|
|
3
|
+
import { ListBulletedIcon } from '@atlaskit/editor-toolbar/list-bulleted-icon';
|
|
4
|
+
import { ToolbarButton } from '@atlaskit/editor-toolbar/toolbar-button';
|
|
5
|
+
import { ToolbarTooltip } from '@atlaskit/editor-toolbar/toolbar-tooltip';
|
|
4
6
|
import { useBulletedListInfo } from './BulletedListMenuItem';
|
|
5
7
|
export var BulletedListButton = function BulletedListButton(_ref) {
|
|
6
8
|
var api = _ref.api,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
3
|
+
import { BULLETED_LIST_BUTTON, BULLETED_LIST_BUTTON_GROUP, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar/keys';
|
|
4
|
+
import { TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar/rank';
|
|
5
|
+
import { Show } from '@atlaskit/editor-toolbar/show';
|
|
6
|
+
import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
|
|
4
7
|
import { BulletedListButton } from './BulletedListButton';
|
|
5
8
|
var BulletedListButtonGroup = function BulletedListButtonGroup(_ref) {
|
|
6
9
|
var children = _ref.children;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
3
|
import { toggleBulletList as toggleBulletListKeymap, formatShortcut } from '@atlaskit/editor-common/keymaps';
|
|
5
|
-
import { listMessages } from '@atlaskit/editor-common/messages';
|
|
4
|
+
import { messages as listMessages } from '@atlaskit/editor-common/messages/list';
|
|
6
5
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
7
|
-
import {
|
|
6
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
7
|
+
import { ListBulletedIcon } from '@atlaskit/editor-toolbar/list-bulleted-icon';
|
|
8
|
+
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
9
|
+
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
8
10
|
export var useBulletedListInfo = function useBulletedListInfo(_ref) {
|
|
9
11
|
var api = _ref.api,
|
|
10
12
|
parents = _ref.parents;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { indent as toggleIndentKeymap, formatShortcut } from '@atlaskit/editor-common/keymaps';
|
|
4
|
-
import { indentationMessages } from '@atlaskit/editor-common/messages';
|
|
5
|
-
import { getInputMethodFromParentKeys
|
|
6
|
-
import {
|
|
4
|
+
import { messages as indentationMessages } from '@atlaskit/editor-common/messages/indentation';
|
|
5
|
+
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
6
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
7
|
+
import { IndentIcon } from '@atlaskit/editor-toolbar/indent-icon';
|
|
8
|
+
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
9
|
+
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
7
10
|
import { useIndentationState } from '../utils/hooks';
|
|
8
11
|
export var IndentMenuItem = function IndentMenuItem(_ref) {
|
|
9
12
|
var api = _ref.api,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_INLINE, TEXT_SECTION
|
|
1
|
+
import { LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_INLINE, TEXT_SECTION } from '@atlaskit/editor-common/toolbar/keys';
|
|
2
|
+
import { TEXT_SECTION_RANK } from '@atlaskit/editor-common/toolbar/rank';
|
|
2
3
|
export var getListsIndentationGroupForInlineToolbar = function getListsIndentationGroupForInlineToolbar() {
|
|
3
4
|
return [{
|
|
4
5
|
type: LISTS_INDENTATION_GROUP_INLINE.type,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
3
|
+
import { LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_COLLAPSED, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar/keys';
|
|
4
|
+
import { TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar/rank';
|
|
5
|
+
import { Show } from '@atlaskit/editor-toolbar/show';
|
|
6
|
+
import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
|
|
4
7
|
var ListsIndentationGroup = function ListsIndentationGroup(_ref) {
|
|
5
8
|
var children = _ref.children;
|
|
6
9
|
var _useEditorToolbar = useEditorToolbar(),
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
3
|
import { toggleBulletList as toggleBulletListKeymap, toggleOrderedList as toggleOrderedListKeymap, toggleTaskList as toggleTaskListKeymap, formatShortcut, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
5
|
-
import { listMessages
|
|
4
|
+
import { messages as listMessages } from '@atlaskit/editor-common/messages/list';
|
|
5
|
+
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages/tasks-and-decisions';
|
|
6
6
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
7
|
-
import {
|
|
7
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
8
|
+
import { ListBulletedIcon } from '@atlaskit/editor-toolbar/list-bulleted-icon';
|
|
9
|
+
import { ListNumberedIcon } from '@atlaskit/editor-toolbar/list-numbered-icon';
|
|
10
|
+
import { ToolbarButton } from '@atlaskit/editor-toolbar/toolbar-button';
|
|
11
|
+
import { ToolbarTooltip } from '@atlaskit/editor-toolbar/toolbar-tooltip';
|
|
8
12
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
9
13
|
function useListsIndentationHeroButtonInfo(_ref) {
|
|
10
14
|
var api = _ref.api,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_COLLAPSED,
|
|
2
|
+
import { LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_COLLAPSED, LISTS_INDENTATION_GROUP_INLINE, LISTS_INDENTATION_HERO_BUTTON, LISTS_INDENTATION_HERO_BUTTON_COLLAPSED } from '@atlaskit/editor-common/toolbar/keys';
|
|
3
|
+
import { LISTS_INDENTATION_GROUP_COLLAPSED_RANK, LISTS_INDENTATION_GROUP_RANK } from '@atlaskit/editor-common/toolbar/rank';
|
|
3
4
|
import { ListsIndentationHeroButtonCollapsed, ListsIndentationHeroButtonNew } from './ListsIndentationHeroButton';
|
|
4
5
|
export var getListsIndentationHeroButton = function getListsIndentationHeroButton(api) {
|
|
5
6
|
return [{
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { MoreItemsIcon
|
|
3
|
+
import { messages } from '@atlaskit/editor-common/lists/messages';
|
|
4
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
5
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
6
|
+
import { MoreItemsIcon } from '@atlaskit/editor-toolbar/more-items-icon';
|
|
7
|
+
import { ToolbarDropdownMenu } from '@atlaskit/editor-toolbar/toolbar-dropdown-menu';
|
|
8
|
+
import { ToolbarTooltip } from '@atlaskit/editor-toolbar/toolbar-tooltip';
|
|
7
9
|
import { useIndentationState } from '../utils/hooks';
|
|
8
10
|
export var ListsIndentationMenu = function ListsIndentationMenu(_ref) {
|
|
9
11
|
var children = _ref.children,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BULLETED_LIST_MENU_ITEM, INDENT_MENU_ITEM, LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_COLLAPSED,
|
|
2
|
+
import { BULLETED_LIST_MENU_ITEM, INDENT_MENU_ITEM, LISTS_INDENTATION_GROUP, LISTS_INDENTATION_GROUP_COLLAPSED, LISTS_INDENTATION_GROUP_INLINE, LISTS_INDENTATION_MENU, LISTS_INDENTATION_MENU_SECTION, NUMBERED_LIST_MENU_ITEM, OUTDENT_MENU_ITEM, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar/keys';
|
|
3
|
+
import { LISTS_INDENTATION_GROUP_COLLAPSED_RANK, LISTS_INDENTATION_GROUP_RANK, LISTS_INDENTATION_MENU_RANK, LISTS_INDENTATION_MENU_SECTION_RANK, TEXT_COLLAPSED_MENU_RANK } from '@atlaskit/editor-common/toolbar/rank';
|
|
3
4
|
import { BulletedListMenuItem } from './BulletedListMenuItem';
|
|
4
5
|
import { IndentMenuItem } from './IndentMenuItem';
|
|
5
6
|
import { ListsIndentationMenu } from './ListsIndentationMenu';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
2
|
+
import { TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar/keys';
|
|
3
|
+
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar/toolbar-dropdown-item-section';
|
|
4
4
|
export var MenuSection = function MenuSection(_ref) {
|
|
5
5
|
var children = _ref.children,
|
|
6
6
|
title = _ref.title,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
3
|
import { toggleOrderedList as toggleOrderedListKeymap, formatShortcut } from '@atlaskit/editor-common/keymaps';
|
|
5
|
-
import { listMessages } from '@atlaskit/editor-common/messages';
|
|
4
|
+
import { messages as listMessages } from '@atlaskit/editor-common/messages/list';
|
|
6
5
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
7
|
-
import {
|
|
6
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
7
|
+
import { ListNumberedIcon } from '@atlaskit/editor-toolbar/list-numbered-icon';
|
|
8
|
+
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
9
|
+
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
8
10
|
export var NumberedListMenuItem = function NumberedListMenuItem(_ref) {
|
|
9
11
|
var api = _ref.api,
|
|
10
12
|
parents = _ref.parents;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { outdent as toggleOutdentKeymap, formatShortcut } from '@atlaskit/editor-common/keymaps';
|
|
4
|
-
import { indentationMessages } from '@atlaskit/editor-common/messages';
|
|
5
|
-
import { getInputMethodFromParentKeys
|
|
6
|
-
import {
|
|
4
|
+
import { messages as indentationMessages } from '@atlaskit/editor-common/messages/indentation';
|
|
5
|
+
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
6
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
7
|
+
import { OutdentIcon } from '@atlaskit/editor-toolbar/outdent-icon';
|
|
8
|
+
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
9
|
+
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
7
10
|
import { useIndentationState } from '../utils/hooks';
|
|
8
11
|
export var OutdentMenuItem = function OutdentMenuItem(_ref) {
|
|
9
12
|
var api = _ref.api,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { ToolbarDropdownItem
|
|
3
|
+
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages/tasks-and-decisions';
|
|
4
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
5
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
6
|
+
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
7
|
+
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
7
8
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
8
9
|
export var TaskListMenuItem = function TaskListMenuItem(_ref) {
|
|
9
10
|
var api = _ref.api;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/
|
|
1
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
2
2
|
import { getIndentationButtonsState } from '../../pm-plugins/indentation-buttons';
|
|
3
3
|
export var useIndentationState = function useIndentationState(_ref) {
|
|
4
4
|
var api = _ref.api,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
3
|
import { ToolbarType } from '../../types';
|
|
4
4
|
var toolbarTypeToInputMethod = _defineProperty(_defineProperty({}, ToolbarType.PRIMARY, INPUT_METHOD.TOOLBAR), ToolbarType.FLOATING, INPUT_METHOD.FLOATING_TB);
|
|
5
5
|
export var getInputMethod = function getInputMethod(toolbarType) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
|
+
import type { ToolbarUiComponentFactoryParams } from '@atlaskit/editor-common/types/toolbar';
|
|
3
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
6
|
import type { ToolbarListsIndentationPlugin } from './toolbarListsIndentationPluginType';
|
|
5
7
|
export declare const toolbarListsIndentationPlugin: ToolbarListsIndentationPlugin;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
-
import type { IndentationPlugin } from '@atlaskit/editor-plugin-indentation';
|
|
5
|
-
import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
|
|
6
|
-
import type { ListPlugin } from '@atlaskit/editor-plugin-list';
|
|
7
|
-
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
8
|
-
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
9
|
-
import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
|
|
10
|
-
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
11
|
-
import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
1
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
|
|
3
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags/featureFlagsPluginType';
|
|
4
|
+
import type { IndentationPlugin } from '@atlaskit/editor-plugin-indentation/indentationPluginType';
|
|
5
|
+
import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction/interaction-plugin-type';
|
|
6
|
+
import type { ListPlugin } from '@atlaskit/editor-plugin-list/list-plugin-type';
|
|
7
|
+
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar/primary-toolbar-plugin-type';
|
|
8
|
+
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar/selection-toolbar-plugin-type';
|
|
9
|
+
import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions/tasks-and-decisions-plugin-type';
|
|
10
|
+
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar/toolbar-plugin-type';
|
|
11
|
+
import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences/user-preferences-plugin-type';
|
|
12
12
|
export type ToolbarListsIndentationPluginOptions = {
|
|
13
13
|
allowHeadingAndParagraphIndentation: boolean;
|
|
14
14
|
showIndentationButtons: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type {
|
|
1
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
5
|
import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
|
|
5
6
|
import type { onItemActivated } from '../ui/onItemActivated';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
5
|
import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
|
|
5
6
|
type FloatingToolbarComponentProps = {
|
package/dist/types/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
4
|
import type { IndentationButtonNode } from '../pm-plugins/indentation-buttons';
|
|
4
5
|
import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { ToolbarListsIndentationPlugin } from '../index';
|
|
5
5
|
import type { IndentationButtonNode } from '../pm-plugins/indentation-buttons';
|