@ones-editor/editor 2.1.7-beta.9 → 2.1.8-beta.1

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.
Files changed (205) hide show
  1. package/@ones-editor/{ui → block-menu}/src/block-menu/index.d.ts +1 -3
  2. package/@ones-editor/block-menu/src/block-menu/items/block-command-items.d.ts +3 -0
  3. package/@ones-editor/block-menu/src/block-menu/items/index.d.ts +5 -0
  4. package/@ones-editor/block-menu/src/block-menu/items/insert-block-items/index.d.ts +5 -0
  5. package/@ones-editor/block-menu/src/block-menu/items/text-styles/text-style-item.d.ts +30 -0
  6. package/@ones-editor/block-menu/src/block-menu/items/types.d.ts +5 -0
  7. package/@ones-editor/block-menu/src/block-menu-button/menu-button/index.d.ts +1 -1
  8. package/@ones-editor/block-padding/src/index.d.ts +1 -1
  9. package/@ones-editor/callout-block/src/callout-block/callout-quick-menu-item-filter.d.ts +4 -3
  10. package/@ones-editor/callout-block/src/index.d.ts +0 -1
  11. package/@ones-editor/comments/src/index.d.ts +1 -5
  12. package/@ones-editor/comments/src/text-comments/comments-command-provider.d.ts +3 -4
  13. package/@ones-editor/core/src/core/blocks/common/block-properties.d.ts +9 -9
  14. package/@ones-editor/core/src/core/blocks/common/execute-block-command.d.ts +2 -2
  15. package/@ones-editor/core/src/core/blocks/complex-blocks/child-blocks.d.ts +1 -2
  16. package/@ones-editor/core/src/core/blocks/complex-blocks/complex-block-helper.d.ts +1 -2
  17. package/@ones-editor/core/src/core/blocks/text-blocks/base/child.d.ts +7 -2
  18. package/@ones-editor/core/src/core/command-providers/commands/index.d.ts +0 -2
  19. package/@ones-editor/core/src/core/command-providers/commands/range-commands.d.ts +5 -2
  20. package/@ones-editor/core/src/core/command-providers/editor-command-providers.d.ts +14 -5
  21. package/@ones-editor/core/src/core/command-providers/index.d.ts +1 -3
  22. package/@ones-editor/core/src/core/composition/editor-input.d.ts +1 -1
  23. package/@ones-editor/core/src/core/containers/root-container.d.ts +2 -2
  24. package/@ones-editor/core/src/core/doc/doc.d.ts +0 -3
  25. package/@ones-editor/core/src/core/doc/rich-text/text-style.d.ts +0 -2
  26. package/@ones-editor/core/src/core/editor/actions/clear-selected-contents.d.ts +2 -2
  27. package/@ones-editor/core/src/core/selection/actions/index.d.ts +1 -2
  28. package/@ones-editor/core/src/core/selection/index.d.ts +0 -1
  29. package/@ones-editor/core/src/core/selection/select-handler.d.ts +3 -3
  30. package/@ones-editor/core/src/core/types.d.ts +28 -40
  31. package/@ones-editor/core/src/helper/hovering-block.d.ts +2 -2
  32. package/@ones-editor/core/src/utils/dom.d.ts +0 -3
  33. package/@ones-editor/core/src/utils/drag-drop.d.ts +3 -8
  34. package/@ones-editor/embed-block-helper/src/block-properties/embed-block-properties.d.ts +5 -6
  35. package/@ones-editor/file/src/locale/en-us.d.ts +0 -1
  36. package/@ones-editor/file/src/locale/ja-jp.d.ts +0 -1
  37. package/@ones-editor/file/src/locale/zh-cn.d.ts +0 -1
  38. package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +19 -5
  39. package/@ones-editor/image-embed/src/hovering-toolbar/index.d.ts +1 -12
  40. package/@ones-editor/image-embed/src/splitter-resizer/index.d.ts +3 -3
  41. package/@ones-editor/input-handlers/src/i18n/en-us.d.ts +0 -1
  42. package/@ones-editor/input-handlers/src/i18n/ja-jp.d.ts +0 -1
  43. package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +0 -1
  44. package/@ones-editor/layout-block/src/index.d.ts +0 -1
  45. package/@ones-editor/list-block/src/index.d.ts +1 -2
  46. package/@ones-editor/media-embed/src/core/hovering-toolbar/index.d.ts +1 -12
  47. package/@ones-editor/mention/src/locale/en-us.d.ts +0 -3
  48. package/@ones-editor/mention/src/locale/ja-jp.d.ts +0 -3
  49. package/@ones-editor/mention/src/locale/zh-cn.d.ts +0 -3
  50. package/@ones-editor/mention/src/mention.d.ts +0 -15
  51. package/@ones-editor/mobile-helper/src/index.d.ts +1 -10
  52. package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +1 -4
  53. package/@ones-editor/sharedb-doc/src/index.d.ts +1 -8
  54. package/@ones-editor/table-block/src/commands/index.d.ts +0 -2
  55. package/@ones-editor/table-block/src/commands/table-block-commands.d.ts +3 -4
  56. package/@ones-editor/table-block/src/index.d.ts +2 -6
  57. package/@ones-editor/table-block/src/locale/en-us.d.ts +0 -5
  58. package/@ones-editor/table-block/src/locale/ja-jp.d.ts +0 -5
  59. package/@ones-editor/table-block/src/locale/zh-cn.d.ts +0 -5
  60. package/@ones-editor/table-block/src/table-block/cell-menu/table-cell-dom.d.ts +0 -6
  61. package/@ones-editor/table-block/src/table-block/table-resize/resize-drag-drop.d.ts +4 -4
  62. package/@ones-editor/text-commands/src/index.d.ts +2 -1
  63. package/@ones-editor/text-commands/src/text-command-provider.d.ts +24 -0
  64. package/@ones-editor/text-commands/src/text-commands.d.ts +4 -0
  65. package/@ones-editor/{ui/src/providers/utils → text-commands/src}/text-styles.d.ts +1 -3
  66. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  67. package/@ones-editor/ui/src/index.d.ts +9 -33
  68. package/@ones-editor/ui/src/locale/en-us.d.ts +0 -5
  69. package/@ones-editor/ui/src/locale/ja-jp.d.ts +0 -5
  70. package/@ones-editor/ui/src/locale/zh-cn.d.ts +0 -5
  71. package/@ones-editor/ui/src/{providers/utils → quick-menu}/basic-commands.d.ts +2 -1
  72. package/@ones-editor/ui/src/quick-menu/basic-menu-items.d.ts +16 -0
  73. package/@ones-editor/ui/src/quick-menu/index.d.ts +19 -7
  74. package/@ones-editor/ui/src/quick-menu/inline-box-items.d.ts +8 -0
  75. package/@ones-editor/ui/src/quick-menu/insert-empty-block.d.ts +4 -0
  76. package/@ones-editor/ui/src/quick-menu/order.d.ts +1 -0
  77. package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +9 -0
  78. package/@ones-editor/ui/src/quick-menu/types.d.ts +5 -2
  79. package/@ones-editor/{ui-base → ui}/src/text-button/index.d.ts +1 -1
  80. package/@ones-editor/ui/src/toolbar/commands/align.d.ts +10 -0
  81. package/@ones-editor/ui/src/toolbar/commands/paragraph.d.ts +11 -0
  82. package/@ones-editor/ui/src/toolbar/commands/turn-into.d.ts +10 -0
  83. package/@ones-editor/ui/src/toolbar/merge-commands.d.ts +2 -0
  84. package/@ones-editor/ui/src/toolbar/text-commands.d.ts +2 -2
  85. package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +0 -3
  86. package/@ones-editor/ui/src/tooltips/index.d.ts +21 -9
  87. package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +1 -2
  88. package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +1 -1
  89. package/@ones-editor/ui-base/src/color-button/color-button.d.ts +0 -1
  90. package/@ones-editor/ui-base/src/color-button/text-color-item.d.ts +2 -9
  91. package/@ones-editor/ui-base/src/color-palette/color-palette.d.ts +1 -1
  92. package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +2 -3
  93. package/@ones-editor/ui-base/src/command-bar/fixed-toolbar.d.ts +1 -3
  94. package/@ones-editor/ui-base/src/command-bar/init-toolbar-item.d.ts +0 -1
  95. package/@ones-editor/ui-base/src/command-bar/types.d.ts +1 -4
  96. package/@ones-editor/ui-base/src/icons/index.d.ts +1 -5
  97. package/@ones-editor/ui-base/src/index.d.ts +0 -2
  98. package/@ones-editor/ui-base/src/input/create-input.d.ts +3 -23
  99. package/@ones-editor/ui-base/src/locale/en-us.d.ts +0 -1
  100. package/@ones-editor/ui-base/src/locale/ja-jp.d.ts +0 -1
  101. package/@ones-editor/ui-base/src/locale/zh-cn.d.ts +0 -1
  102. package/@ones-editor/ui-base/src/popup/popup.d.ts +1 -1
  103. package/@ones-editor/versions/src/constant/index.d.ts +1 -0
  104. package/@ones-editor/versions/src/history-render/index.d.ts +1 -1
  105. package/@ones-editor/versions/src/history-tooltip/index.d.ts +10 -0
  106. package/@ones-editor/versions/src/version-dialog/index.d.ts +1 -0
  107. package/dist/comments/local-doc-comments-provider.d.ts +1 -2
  108. package/dist/index.d.ts +4 -65
  109. package/dist/index.js +26170 -30610
  110. package/dist/types.d.ts +1 -11
  111. package/package.json +1 -1
  112. package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +0 -16
  113. package/@ones-editor/core/src/core/command-providers/abstract-providers.d.ts +0 -25
  114. package/@ones-editor/core/src/core/command-providers/block-attributes.d.ts +0 -14
  115. package/@ones-editor/core/src/core/command-providers/commands/inject-source.d.ts +0 -3
  116. package/@ones-editor/core/src/core/command-providers/commands/merge-commands.d.ts +0 -4
  117. package/@ones-editor/layout-block/src/command-filter.d.ts +0 -6
  118. package/@ones-editor/main-toolbar/package.json +0 -7
  119. package/@ones-editor/main-toolbar/src/index.d.ts +0 -18
  120. package/@ones-editor/main-toolbar/src/items/comment.d.ts +0 -8
  121. package/@ones-editor/main-toolbar/src/items/find.d.ts +0 -8
  122. package/@ones-editor/main-toolbar/src/items/font-style.d.ts +0 -40
  123. package/@ones-editor/main-toolbar/src/items/image.d.ts +0 -8
  124. package/@ones-editor/main-toolbar/src/items/index.d.ts +0 -16
  125. package/@ones-editor/main-toolbar/src/items/insert.d.ts +0 -12
  126. package/@ones-editor/main-toolbar/src/items/link.d.ts +0 -11
  127. package/@ones-editor/main-toolbar/src/items/list.d.ts +0 -29
  128. package/@ones-editor/main-toolbar/src/items/paragraph.d.ts +0 -14
  129. package/@ones-editor/main-toolbar/src/items/quote.d.ts +0 -11
  130. package/@ones-editor/main-toolbar/src/items/separator.d.ts +0 -7
  131. package/@ones-editor/main-toolbar/src/items/text-align.d.ts +0 -21
  132. package/@ones-editor/main-toolbar/src/items/text-color.d.ts +0 -48
  133. package/@ones-editor/main-toolbar/src/items/undo.d.ts +0 -18
  134. package/@ones-editor/main-toolbar/src/locale/en-us.d.ts +0 -9
  135. package/@ones-editor/main-toolbar/src/locale/index.d.ts +0 -1
  136. package/@ones-editor/main-toolbar/src/locale/ja-jp.d.ts +0 -9
  137. package/@ones-editor/main-toolbar/src/locale/zh-cn.d.ts +0 -9
  138. package/@ones-editor/main-toolbar/src/types.d.ts +0 -5
  139. package/@ones-editor/media-embed/src/utils/dom.d.ts +0 -2
  140. package/@ones-editor/mobile-helper/src/cursor-toolbar.d.ts +0 -14
  141. package/@ones-editor/mobile-helper/src/fixed-toolbar/active-observer.d.ts +0 -11
  142. package/@ones-editor/mobile-helper/src/fixed-toolbar/fixed-providers.d.ts +0 -6
  143. package/@ones-editor/mobile-helper/src/fixed-toolbar/index.d.ts +0 -21
  144. package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/align-dropdown.d.ts +0 -9
  145. package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/group.d.ts +0 -7
  146. package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert-menu.d.ts +0 -15
  147. package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert.d.ts +0 -8
  148. package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/paragraph.d.ts +0 -9
  149. package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/tab-provider.d.ts +0 -10
  150. package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/text-dropdown.d.ts +0 -9
  151. package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/turn-into.d.ts +0 -8
  152. package/@ones-editor/mobile-helper/src/fixed-toolbar/toolbar-handler.d.ts +0 -11
  153. package/@ones-editor/mobile-helper/src/locale/en-us.d.ts +0 -9
  154. package/@ones-editor/mobile-helper/src/locale/index.d.ts +0 -1
  155. package/@ones-editor/mobile-helper/src/locale/ja-jp.d.ts +0 -9
  156. package/@ones-editor/mobile-helper/src/locale/zh-cn.d.ts +0 -9
  157. package/@ones-editor/mobile-helper/src/selection-gripper/index.d.ts +0 -19
  158. package/@ones-editor/mobile-helper/src/selection-gripper/select-handle.d.ts +0 -3
  159. package/@ones-editor/sharedb-doc/src/doc/sharedb-client-base.d.ts +0 -24
  160. package/@ones-editor/sharedb-doc/src/doc/sharedb-local-doc.d.ts +0 -17
  161. package/@ones-editor/table-block/src/commands/table-command-provider.d.ts +0 -12
  162. package/@ones-editor/ui/src/block-menu/block-command-providers.d.ts +0 -8
  163. package/@ones-editor/ui/src/box-helper/standard-box-commands.d.ts +0 -10
  164. package/@ones-editor/ui/src/box-helper/standard-box-provider.d.ts +0 -9
  165. package/@ones-editor/ui/src/providers/align-dropdown.d.ts +0 -10
  166. package/@ones-editor/ui/src/providers/align.d.ts +0 -11
  167. package/@ones-editor/ui/src/providers/block-hook-provider.d.ts +0 -16
  168. package/@ones-editor/ui/src/providers/clipboard-provider.d.ts +0 -19
  169. package/@ones-editor/ui/src/providers/color-provider.d.ts +0 -18
  170. package/@ones-editor/ui/src/providers/edit-link-provider.d.ts +0 -6
  171. package/@ones-editor/ui/src/providers/heading.d.ts +0 -13
  172. package/@ones-editor/ui/src/providers/inline-code-provider.d.ts +0 -10
  173. package/@ones-editor/ui/src/providers/inline-style-provider.d.ts +0 -10
  174. package/@ones-editor/ui/src/providers/insert-above.d.ts +0 -9
  175. package/@ones-editor/ui/src/providers/insert-after.d.ts +0 -9
  176. package/@ones-editor/ui/src/providers/insert-box-provider.d.ts +0 -12
  177. package/@ones-editor/ui/src/providers/insert-group.d.ts +0 -7
  178. package/@ones-editor/ui/src/providers/insert-menu.d.ts +0 -16
  179. package/@ones-editor/ui/src/providers/link.d.ts +0 -12
  180. package/@ones-editor/ui/src/providers/list.d.ts +0 -13
  181. package/@ones-editor/ui/src/providers/mobile-link-provider.d.ts +0 -10
  182. package/@ones-editor/ui/src/providers/paragraph.d.ts +0 -9
  183. package/@ones-editor/ui/src/providers/proxy-provider.d.ts +0 -9
  184. package/@ones-editor/ui/src/providers/quoted.d.ts +0 -10
  185. package/@ones-editor/ui/src/providers/script-with-dropdown.d.ts +0 -9
  186. package/@ones-editor/ui/src/providers/text-command-provider.d.ts +0 -16
  187. package/@ones-editor/ui/src/providers/text-fixed-provider.d.ts +0 -16
  188. package/@ones-editor/ui/src/providers/text-script-provider.d.ts +0 -10
  189. package/@ones-editor/ui/src/providers/text-styles.d.ts +0 -9
  190. package/@ones-editor/ui/src/providers/turn-into.d.ts +0 -9
  191. package/@ones-editor/ui/src/providers/utils/add-section.d.ts +0 -2
  192. package/@ones-editor/ui/src/providers/utils/clipboard.d.ts +0 -6
  193. package/@ones-editor/ui/src/providers/utils/index.d.ts +0 -2
  194. package/@ones-editor/ui/src/providers/utils/inject-block-options.d.ts +0 -8
  195. package/@ones-editor/ui/src/providers/utils/text-commands.d.ts +0 -3
  196. package/@ones-editor/ui/src/quick-menu/quick-command-providers.d.ts +0 -8
  197. package/@ones-editor/ui/src/readonly-toolbar/add-comment-to-old-doc.d.ts +0 -23
  198. package/@ones-editor/ui/src/readonly-toolbar/index.d.ts +0 -29
  199. package/@ones-editor/ui/src/readonly-toolbar/types.d.ts +0 -12
  200. package/@ones-editor/ui/src/toolbar/link-commands.d.ts +0 -11
  201. package/@ones-editor/ui/src/utils/hide-toolbar.d.ts +0 -2
  202. package/@ones-editor/ui-base/src/mobile-command-bar/init-menu-item.d.ts +0 -3
  203. package/@ones-editor/ui-base/src/mobile-command-bar/mobile-bottom-menu.d.ts +0 -23
  204. package/dist/auto-new-line.d.ts +0 -7
  205. /package/@ones-editor/{ui → block-menu}/src/block-menu/standard-block-actions/hook.d.ts +0 -0
@@ -1,42 +1,18 @@
1
1
  import './style.scss';
2
2
  import OnesEditorToolbar from './toolbar/toolbar-handler';
3
- import { QuickMenuCommandBetween, QuickMenuCommandInline, QuickMenuCommandProvider, QuickMenuCommandParams, AddMenuCommand, QuickMenuItem, QuickMenuOptions } from './quick-menu/types';
4
- import OnesEditorQuickMenu from './quick-menu';
5
- import * as BasicCommands from './providers/utils/basic-commands';
6
- import OnesEditorTooltip from './tooltips';
3
+ import OnesEditorQuickMenu, { getAllQuickMenuItems, getHeadingMenuOptions, QuickMenuCommandBetween, QuickMenuCommandInline, QuickMenuCommandProvider, BasicCommands, GetAllQuickMenuItemsOptions, QuickMenuCommandParams, AddMenuCommand, QuickMenuItemFilter } from './quick-menu';
4
+ import OnesEditorTooltip, { OnesEditorTooltipCallbacks, EditorTooltipTippyInstance, OnesEditorTooltipProps } from './tooltips';
7
5
  import TextStyleShortcuts from './shortcuts';
8
6
  import { editLink } from './link-popup';
9
7
  import { getToolbar } from './toolbar/helper';
8
+ import { GroupOrder } from './quick-menu/order';
10
9
  import { getReferenceClientRect } from './toolbar/get-reference-client-rect';
11
10
  import { isSelectBoxOnly } from './toolbar/box-only';
11
+ import { InlineBoxCommandProvider } from './quick-menu/inline-box-items';
12
12
  import './locale';
13
13
  import type { OnesEditorToolbarBase } from './toolbar/types';
14
- import { BlockCommandProviders } from './block-menu/block-command-providers';
15
- import BlockMenu from './block-menu';
16
- import InlineStyleProvider from './providers/inline-style-provider';
17
- import ColorStyleProvider from './providers/color-provider';
18
- import ScriptDropdownProvider from './providers/script-with-dropdown';
19
- import TextScriptProvider from './providers/text-script-provider';
20
- import HeadingProvider from './providers/heading';
21
- import { ProxyProvider } from './providers/proxy-provider';
22
- import ParagraphProvider from './providers/paragraph';
23
- import AlignProvider from './providers/align';
24
- import { InlineBoxCommandProvider } from './providers/insert-box-provider';
25
- import { LinkProvider } from './providers/link';
26
- import InsertMenuProvider from './providers/insert-menu';
27
- import { injectBlockOptions } from './providers/utils/inject-block-options';
28
- import TextCommandProvider from './providers/text-command-provider';
29
- import InlineCodeProvider from './providers/inline-code-provider';
30
- import { MobileLinkProvider } from './providers/mobile-link-provider';
31
- import ListProvider from './providers/list';
32
- import QuotedProvider from './providers/quoted';
33
- import { ReadonlyToolbar } from './readonly-toolbar';
34
- import { ReadonlyToolbarCommandProvider, ReadonlyCommandOptions } from './readonly-toolbar/types';
35
- import { AddCommentToOldDocCommandProvider } from './readonly-toolbar/add-comment-to-old-doc';
36
- import ClipboardProvider from './providers/clipboard-provider';
37
- export * from './providers/utils/clipboard';
38
- export * from './providers/utils';
39
- export { ClipboardProvider, ListProvider, QuotedProvider, TextCommandProvider, injectBlockOptions, LinkProvider, InlineBoxCommandProvider, AlignProvider, ParagraphProvider, ProxyProvider, InlineCodeProvider, InlineStyleProvider, ColorStyleProvider, ScriptDropdownProvider, TextScriptProvider, HeadingProvider, MobileLinkProvider, InsertMenuProvider, };
40
- export type { QuickMenuCommandParams, QuickMenuCommandProvider, QuickMenuCommandBetween, AddMenuCommand, QuickMenuCommandInline, OnesEditorToolbarBase, QuickMenuItem, QuickMenuOptions, ReadonlyToolbarCommandProvider, ReadonlyCommandOptions, };
41
- export { BlockMenu, BlockCommandProviders, OnesEditorToolbar, OnesEditorQuickMenu, OnesEditorTooltip, editLink, TextStyleShortcuts, getToolbar, BasicCommands, isSelectBoxOnly, getReferenceClientRect, ReadonlyToolbar, AddCommentToOldDocCommandProvider, };
42
- export * from './utils/hide-toolbar';
14
+ import type { QuickMenuItem } from './quick-menu';
15
+ export type { QuickMenuItemFilter, QuickMenuCommandParams, QuickMenuCommandProvider, QuickMenuCommandBetween, AddMenuCommand, QuickMenuCommandInline, GetAllQuickMenuItemsOptions, OnesEditorToolbarBase, OnesEditorTooltipCallbacks, EditorTooltipTippyInstance, OnesEditorTooltipProps, };
16
+ export { OnesEditorToolbar, OnesEditorQuickMenu, OnesEditorTooltip, getAllQuickMenuItems, QuickMenuItem, editLink, TextStyleShortcuts, getToolbar, getHeadingMenuOptions, BasicCommands, GroupOrder, isSelectBoxOnly, InlineBoxCommandProvider, getReferenceClientRect, };
17
+ export { createTextButton } from './text-button';
18
+ export { mergeCommands } from './toolbar/merge-commands';
@@ -24,8 +24,6 @@ declare const _default: {
24
24
  cancelText: string;
25
25
  edit: string;
26
26
  remove: string;
27
- title: string;
28
- openLink: string;
29
27
  };
30
28
  commands: {
31
29
  unordered: string;
@@ -40,9 +38,6 @@ declare const _default: {
40
38
  heading: string;
41
39
  headingGroup: string;
42
40
  text: string;
43
- paste: string;
44
- tab: string;
45
- shiftTab: string;
46
41
  };
47
42
  };
48
43
  export default _default;
@@ -24,8 +24,6 @@ declare const _default: {
24
24
  cancelText: string;
25
25
  edit: string;
26
26
  remove: string;
27
- title: string;
28
- openLink: string;
29
27
  };
30
28
  commands: {
31
29
  unordered: string;
@@ -40,9 +38,6 @@ declare const _default: {
40
38
  heading: string;
41
39
  headingGroup: string;
42
40
  text: string;
43
- paste: string;
44
- tab: string;
45
- shiftTab: string;
46
41
  };
47
42
  };
48
43
  export default _default;
@@ -24,8 +24,6 @@ declare const _default: {
24
24
  cancelText: string;
25
25
  edit: string;
26
26
  remove: string;
27
- title: string;
28
- openLink: string;
29
27
  };
30
28
  commands: {
31
29
  unordered: string;
@@ -40,9 +38,6 @@ declare const _default: {
40
38
  heading: string;
41
39
  headingGroup: string;
42
40
  text: string;
43
- paste: string;
44
- tab: string;
45
- shiftTab: string;
46
41
  };
47
42
  };
48
43
  export default _default;
@@ -1,4 +1,5 @@
1
- import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
1
+ import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
2
2
  export declare function applyHeadingStyle(editor: OnesEditor, block: BlockElement, heading: number | null): void;
3
3
  export declare function applyAlignStyle(editor: OnesEditor, block: BlockElement, align: string): void;
4
4
  export declare function applyQuoteStyle(editor: OnesEditor, block: BlockElement): void;
5
+ export declare function applyList(editor: OnesEditor, block: BlockElement, id: 'unordered-list' | 'ordered-list' | 'check-list'): void;
@@ -0,0 +1,16 @@
1
+ import { BlockElement } from '../../../../@ones-editor/core';
2
+ import type { BlockOptions, CommandItem, OnesEditor, InsertEmptyBlockOptions } from '../../../../@ones-editor/core';
3
+ import type { AddMenuCommand, QuickMenuCommandBetween, QuickMenuCommandInline, QuickMenuCommandProvider } from './types';
4
+ export declare function addQuickMenuItemFields(item: CommandItem, options: BlockOptions, blockType: string): void;
5
+ export declare function getPlainTextMenuOptions(): BlockOptions;
6
+ export declare function getHeadingMenuOptions(start?: number): BlockOptions;
7
+ export declare function getCompleteHeadingMenuOptions(): CommandItem[];
8
+ export declare class BasicCommandProvider implements QuickMenuCommandProvider {
9
+ private withPlainText?;
10
+ constructor(withPlainText?: boolean | undefined);
11
+ getCommands(): CommandItem[];
12
+ updateBlock(editor: OnesEditor, containerId: string, block: BlockElement, item: CommandItem): null;
13
+ handleUpdateBlockCore(editor: OnesEditor, options: InsertEmptyBlockOptions): Promise<null>;
14
+ handleInsertEmptyBlockCore(editor: OnesEditor, options: InsertEmptyBlockOptions): Promise<null>;
15
+ executeCommand(editor: OnesEditor, item: CommandItem, params: QuickMenuCommandInline | QuickMenuCommandBetween | AddMenuCommand): Promise<BlockElement | null>;
16
+ }
@@ -1,21 +1,33 @@
1
- import { OnesEditor, CommandItem, CommandFilterId, CommandFilter } from '../../../../@ones-editor/core';
1
+ import { OnesEditor, CommandItem } from '../../../../@ones-editor/core';
2
2
  import { OnesEditorAutoSuggest } from '../../../../@ones-editor/ui-base';
3
- import { QuickMenuOptions } from './types';
3
+ import { QuickMenuItemFilter, QuickMenuItemFilterId, QuickMenuItem, QuickMenuOptions } from './types';
4
+ import { getHeadingMenuOptions } from './basic-menu-items';
5
+ import * as BasicCommands from './basic-commands';
6
+ export * from './types';
7
+ export * from './quick-menu-items';
8
+ export { getHeadingMenuOptions, BasicCommands };
4
9
  export default class OnesEditorQuickMenu {
5
10
  protected editor: OnesEditor;
6
11
  private options;
7
12
  protected suggest: OnesEditorAutoSuggest;
8
- private items;
13
+ private _items;
14
+ private maxHeading;
9
15
  private firstEmptyOffset;
10
- private quickCommandProviders;
16
+ private commandFilters;
17
+ private currentContainerId;
18
+ private currentBlockIndex;
19
+ private get selectedBlock();
20
+ private get items();
21
+ private set items(value);
11
22
  constructor(editor: OnesEditor, options?: QuickMenuOptions);
12
- get menu(): import("@ones-editor/ui-base").ManualMenu | import("@ones-editor/ui-base/src/mobile-command-bar/mobile-bottom-menu").MobileBottomMenu;
13
- addFilter(id: CommandFilterId, filter: CommandFilter): void;
23
+ get menu(): import("@ones-editor/ui-base").ManualMenu;
24
+ addFilter(id: QuickMenuItemFilterId, filter: QuickMenuItemFilter): void;
14
25
  destroy(): void;
15
- queryItems: (suggest: unknown, text: string) => Promise<CommandItem[]>;
26
+ queryItems: (suggest: unknown, text: string) => Promise<QuickMenuItem[]>;
16
27
  onClose: () => void;
17
28
  onShow: (suggest: OnesEditorAutoSuggest, containerId: string, blockIndex: number, offset: number) => boolean;
18
29
  onClickItem: (suggest: unknown, item: CommandItem) => void;
19
30
  private initMenuItems;
31
+ private refreshMenuItems;
20
32
  private handleEmptySearch;
21
33
  }
@@ -0,0 +1,8 @@
1
+ import { InsertEmptyBlockOptions, OnesEditor, BlockElement, CommandItem } from '../../../../@ones-editor/core';
2
+ import { AddMenuCommand, QuickMenuCommandBetween, QuickMenuCommandInline, QuickMenuCommandProvider } from './types';
3
+ export declare class InlineBoxCommandProvider implements QuickMenuCommandProvider {
4
+ getCommands(): CommandItem[];
5
+ handleUpdateBlockCore(editor: OnesEditor, options: InsertEmptyBlockOptions): Promise<void | BlockElement | null>;
6
+ handleInsertEmptyBlockCore(editor: OnesEditor, options: InsertEmptyBlockOptions): Promise<BlockElement | null>;
7
+ executeCommand(editor: OnesEditor, item: CommandItem, params: QuickMenuCommandInline | QuickMenuCommandBetween | AddMenuCommand): Promise<BlockElement | null>;
8
+ }
@@ -0,0 +1,4 @@
1
+ import { OnesEditor } from '../../../../@ones-editor/core';
2
+ import { AutoSuggestAnchor } from '../../../../@ones-editor/ui-base';
3
+ import { QuickMenuItem } from './types';
4
+ export declare function insertEmptyBlock(editor: OnesEditor, quickItem: QuickMenuItem, anchor: AutoSuggestAnchor): void;
@@ -0,0 +1 @@
1
+ export declare const GroupOrder: Record<string, number>;
@@ -0,0 +1,9 @@
1
+ import { BlockElement, CommandItemMenuType, OnesEditor } from '../../../../@ones-editor/core';
2
+ import { QuickMenuCommandParams, QuickMenuItem } from './types';
3
+ export interface GetAllQuickMenuItemsOptions {
4
+ withPlainText: boolean;
5
+ from: QuickMenuCommandParams['from'];
6
+ type: CommandItemMenuType;
7
+ ignoreFilter?: boolean;
8
+ }
9
+ export declare function getAllQuickMenuItems(editor: OnesEditor, block: BlockElement | undefined, options: GetAllQuickMenuItemsOptions): QuickMenuItem[];
@@ -1,4 +1,4 @@
1
- import { CommandItem, BlockOptions, OnesEditor, BlockElement, SelectionRange } from '../../../../@ones-editor/core';
1
+ import { CommandItem, BlockOptions, OnesEditor, BlockElement } from '../../../../@ones-editor/core';
2
2
  export interface QuickMenuItem extends CommandItem {
3
3
  itemType: 'insert-block';
4
4
  blockType?: string;
@@ -26,8 +26,11 @@ export interface QuickMenuCommandBetween extends QuickMenuCommandParams {
26
26
  export interface QuickMenuCommandProvider {
27
27
  getCommands: (editor: OnesEditor, params: QuickMenuCommandParams) => CommandItem[];
28
28
  executeCommand: (editor: OnesEditor, item: CommandItem, params: QuickMenuCommandInline | QuickMenuCommandBetween | AddMenuCommand) => Promise<BlockElement | null>;
29
- filterCommands?: (editor: OnesEditor, items: CommandItem[], range: SelectionRange) => CommandItem[];
30
29
  }
30
+ export interface QuickMenuItemFilter {
31
+ filter: (editor: OnesEditor, items: QuickMenuItem[], from: QuickMenuCommandParams['from']) => QuickMenuItem[];
32
+ }
33
+ export type QuickMenuItemFilterId = keyof any;
31
34
  export interface QuickMenuOptions {
32
35
  id?: string;
33
36
  trigger: string[];
@@ -1,3 +1,3 @@
1
- import { ButtonOptions } from '../components';
1
+ import type { ButtonOptions } from '../../../../@ones-editor/ui-base';
2
2
  import './index.scss';
3
3
  export declare function createTextButton(parent: HTMLElement, ...args: ButtonOptions): HTMLButtonElement;
@@ -0,0 +1,10 @@
1
+ import { BlockCommandItem, BlockElement, DocBlock, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../../@ones-editor/core';
2
+ export default class AlignProvider implements OnesEditorCommandProvider {
3
+ private editor;
4
+ id: string;
5
+ constructor(editor: OnesEditor);
6
+ applyAlignStyle(editor: OnesEditor, block: BlockElement, align: string): void;
7
+ isChecked(blockData: DocBlock, id: string): boolean;
8
+ getAvailableCommands(editor: OnesEditor, block: BlockElement, range: SelectionRange): BlockCommandItem[];
9
+ executeCommand(editor: OnesEditor, block: BlockElement, range: SelectionRange, command: BlockCommandItem): boolean;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { BlockCommandItem, BlockElement, DocBlock, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../../@ones-editor/core';
2
+ export default class ParagraphProvider implements OnesEditorCommandProvider {
3
+ private editor;
4
+ id: string;
5
+ constructor(editor: OnesEditor);
6
+ isChecked(blockData: DocBlock, id: string): boolean;
7
+ getAvailableCommands(editor: OnesEditor, block: BlockElement): BlockCommandItem[];
8
+ convertLink(editor: OnesEditor, range: SelectionRange, block: BlockElement): void;
9
+ convertToList(editor: OnesEditor, block: BlockElement, listType: 'unordered' | 'ordered' | 'unchecked'): void;
10
+ executeCommand(editor: OnesEditor, block: BlockElement, range: SelectionRange, command: BlockCommandItem): boolean;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { BlockCommandItem, BlockElement, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../../@ones-editor/core';
2
+ export default class BlockTurnIntoCommandProvider implements OnesEditorCommandProvider {
3
+ private editor;
4
+ id: string;
5
+ constructor(editor: OnesEditor);
6
+ getHeadingIndex(): number;
7
+ getAvailableCommands(editor: OnesEditor, block: BlockElement, range: SelectionRange): BlockCommandItem[];
8
+ applyHeadingStyle(editor: OnesEditor, block: BlockElement, heading: number | null): void;
9
+ executeCommand(editor: OnesEditor, block: BlockElement, range: SelectionRange, command: BlockCommandItem): boolean;
10
+ }
@@ -0,0 +1,2 @@
1
+ import { CommandItem } from '../../../../@ones-editor/core';
2
+ export declare function mergeCommands(blockCommands: CommandItem[]): CommandItem[];
@@ -1,2 +1,2 @@
1
- import { CommandItem, OnesEditor } from '../../../../@ones-editor/core';
2
- export declare function getTextCommands(editor: OnesEditor, blockCommands: CommandItem[]): CommandItem[];
1
+ import { BlockCommandItem, CommandItem, OnesEditor } from '../../../../@ones-editor/core';
2
+ export declare function getTextCommands(editor: OnesEditor, blockCommands: BlockCommandItem[]): CommandItem[];
@@ -14,7 +14,6 @@ export default class OnesEditorToolbar implements OnesEditorHoveringBlockFilter,
14
14
  private hoveringTextChild;
15
15
  private _disableTextToolbar;
16
16
  private _lastClickTime;
17
- private _disabled;
18
17
  constructor(editor: OnesEditor);
19
18
  disableTextToolbar(): void;
20
19
  enableTextToolbar(): void;
@@ -29,12 +28,10 @@ export default class OnesEditorToolbar implements OnesEditorHoveringBlockFilter,
29
28
  unbindEvents(): void;
30
29
  handleDocumentMouseDown: (event: MouseEvent) => void;
31
30
  handleDocumentMouseUp: () => void;
32
- isHoveringBlockContent(block: BlockElement): boolean;
33
31
  private handleHoveringBlockChildChange;
34
32
  handleSelectionChange: import("lodash").DebouncedFunc<(editor: OnesEditor) => void>;
35
33
  updateItems(updater: (items: CommandItem[]) => CommandItem[]): void;
36
34
  updateItemStates(id: CommandItem['id'], states: Required<CommandItem>['states']): void;
37
- disable(value: boolean): void;
38
35
  update(reason: ShowToolbarReason): void;
39
36
  private showTextToolbar;
40
37
  private showObjectToolbar;
@@ -1,16 +1,27 @@
1
- import { OnesEditor } from '../../../../@ones-editor/core';
2
- import { Instance } from 'tippy.js';
3
- export default class OnesEditorTooltip {
1
+ import { EventCallbacks, OnesEditor } from '../../../../@ones-editor/core';
2
+ import { delegate, DelegateInstance } from 'tippy.js';
3
+ export type OnesEditorTooltipCallbacks = {
4
+ onBeforeShow?: (instance: EditorTooltipTippyInstance) => void;
5
+ };
6
+ export type EditorTooltipTippyInstance = DelegateInstance;
7
+ export type OnesEditorTooltipProps = Omit<Parameters<typeof delegate>[1], 'onShow' | 'content' | 'onShown' | 'onHide' | 'target'>;
8
+ type DelegateProps = OnesEditorTooltipProps & {
9
+ attributeNames: string[];
10
+ };
11
+ type OnesEditorTooltipOptions = {
12
+ onBeforeTooltipInitialize?: (props: Partial<DelegateProps>) => DelegateProps;
13
+ };
14
+ export default class OnesEditorTooltip extends EventCallbacks<OnesEditorTooltipCallbacks> {
4
15
  private editor;
5
- instance: Instance;
16
+ instance: DelegateInstance;
6
17
  mousedown: boolean;
7
- currentInstance: Instance | null;
8
- attributeName: string[];
18
+ currentInstance: DelegateInstance | null;
19
+ attributeNames: string[];
9
20
  attributeDesc: string;
10
21
  private _lastClickButtonId;
11
22
  private observer;
12
23
  private observerCallback;
13
- constructor(editor: OnesEditor);
24
+ constructor(editor: OnesEditor, options?: OnesEditorTooltipOptions);
14
25
  set lastClickButtonId(value: string);
15
26
  createContent: (reference: Element) => string | HTMLDivElement;
16
27
  visible(): boolean | undefined;
@@ -20,9 +31,9 @@ export default class OnesEditorTooltip {
20
31
  private destroyObserver;
21
32
  handleDocumentMouseDown: () => void;
22
33
  handleDocumentMouseUp: () => void;
23
- handleShown: (a: Instance) => void;
34
+ handleShown: (a: DelegateInstance) => void;
24
35
  handleHidden: () => void;
25
- handleShow: (instance: Instance) => boolean;
36
+ handleShow: (instance: DelegateInstance) => boolean;
26
37
  private fixContainerForFullscreen;
27
38
  }
28
39
  declare global {
@@ -30,3 +41,4 @@ declare global {
30
41
  isDragging?: boolean;
31
42
  }
32
43
  }
44
+ export {};
@@ -1,7 +1,6 @@
1
1
  /// <reference types="lodash" />
2
2
  import { CommandItem } from '../../../../@ones-editor/core';
3
3
  import { AbstractCommandBar, ManualMenu } from '../command-bar';
4
- import { MobileBottomMenu } from '../mobile-command-bar/mobile-bottom-menu';
5
4
  export interface AutoSuggestMenuOptions {
6
5
  id: string;
7
6
  showLoading?: boolean;
@@ -22,7 +21,7 @@ export interface AutoSuggestMenuOptions {
22
21
  }
23
22
  export default class AutoSuggestMenu {
24
23
  protected options: AutoSuggestMenuOptions;
25
- menu: ManualMenu | MobileBottomMenu;
24
+ menu: ManualMenu;
26
25
  private currentText;
27
26
  handleSearchText: (text: string) => void;
28
27
  constructor(options: AutoSuggestMenuOptions);
@@ -43,7 +43,7 @@ declare class OnesEditorAutoSuggest implements OnesEditorInputHandler {
43
43
  handleUpdateCompositionText(editor: OnesEditor, containerId: string, blockIndex: number, offset: number, end: boolean): boolean;
44
44
  handleSelectionChanged: (editor: OnesEditor) => void;
45
45
  private resetItems;
46
- deleteTrigger: () => boolean;
46
+ private deleteTrigger;
47
47
  private onClose;
48
48
  private onShow;
49
49
  private onClickItem;
@@ -1,3 +1,2 @@
1
1
  export declare function createColorButton(): HTMLButtonElement;
2
2
  export declare function setColorButtonColor(button: HTMLElement, colors: [number | null, number | null]): void;
3
- export declare function getButtonColor(button: HTMLElement): (number | null)[];
@@ -2,28 +2,21 @@ import { CommandItem, OnesEditor } from '../../../../@ones-editor/core';
2
2
  import { TypedEmitter } from 'tiny-typed-emitter';
3
3
  import { ColorPaletteItem } from '../color-palette';
4
4
  import { ColorPaletteEvents } from '../color-palette/color-palette';
5
- import './text-color-item.scss';
6
5
  export declare class TextColorItem extends TypedEmitter<ColorPaletteEvents> implements CommandItem {
7
- editor: OnesEditor;
8
- private storageName;
6
+ private editor;
9
7
  id: string;
10
8
  name: string;
11
9
  dropdown: boolean;
12
- dropSplit: boolean;
13
- splitTooltip: string;
14
10
  manualShowChildren: boolean;
15
- childrenType: "mobile-bottom-menu" | undefined;
16
11
  children: CommandItem[];
17
12
  element: HTMLButtonElement;
18
13
  colorPaletteItem: ColorPaletteItem;
19
14
  latestColors: [number | null, number | null];
20
- constructor(editor: OnesEditor, storageName?: string);
15
+ constructor(editor: OnesEditor);
21
16
  destroy(): void;
22
17
  handlePaletteClick: (type: 'color' | 'backgroundColor' | 'clearColor', value: number) => void;
23
- handleButtonClick: (event: MouseEvent) => void;
24
18
  setLatestColors: (type: 'color' | 'backgroundColor' | 'clearColor', value: number) => void;
25
19
  beforePopup: () => void;
26
20
  updatePaletteColor(colors: [number | null, number | null]): void;
27
21
  updateButtonColor(colors: [number | null, number | null]): void;
28
- getButtonColor: () => (number | null)[];
29
22
  }
@@ -14,5 +14,5 @@ export default class ColorPalette extends TypedEmitter<ColorPaletteEvents> {
14
14
  constructor(options?: ColorPaletteOptions);
15
15
  destroy(): void;
16
16
  setColor(type: ColorType, value: number | null): void;
17
- handleClick: (event: MouseEvent | PointerEvent) => void;
17
+ handleClick: (event: MouseEvent) => void;
18
18
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="lodash" />
2
1
  import { TypedEmitter } from 'tiny-typed-emitter';
3
2
  import { CloseReason, CommandItem, Closeable } from '../../../../@ones-editor/core';
4
3
  import { AbstractManualCommandBar, AbstractCommandBar, CommandBarEvents, CommandBarOptions, CommandItemElement, CreateManualCommandBarFunction, ManualShowCommandBarOptions, SelectItemFrom } from './types';
@@ -30,13 +29,13 @@ export default abstract class CommandBar extends TypedEmitter<CommandBarEvents>
30
29
  private getSelectedItemIndex;
31
30
  private getPrevItemIndex;
32
31
  private getNextItemIndex;
33
- protected clearSelectedItem: import("lodash").DebouncedFunc<() => void>;
32
+ protected clearSelectedItem(): void;
34
33
  selectItem(id: string, from?: SelectItemFrom): void;
35
34
  private lastEnterPauseTime;
36
35
  private startPauseMouseEnter;
37
36
  private handleItemMouseEnter;
38
37
  private handleItemMouseLeave;
39
- protected handleItemClick: (event: MouseEvent | TouchEvent) => void;
38
+ protected handleItemClick: (event: MouseEvent) => void;
40
39
  private showSubCommandBar;
41
40
  isInCommandBar(target: EventTarget | null): boolean;
42
41
  createCommandItem(item: CommandItem): CommandItemElement;
@@ -1,13 +1,11 @@
1
1
  import { CommandItem } from '../../../../@ones-editor/core';
2
2
  import CommandBar from './command-bar';
3
- import { AbstractManualCommandBar, CommandBarOptions, CommandItemElement, ManualShowCommandBarOptions } from './types';
3
+ import { CommandBarOptions, CommandItemElement } from './types';
4
4
  export default class FixedToolbar extends CommandBar {
5
5
  constructor(parent: HTMLElement, items: CommandItem[], options?: CommandBarOptions);
6
6
  protected initCommandBarElement(elem: HTMLElement): void;
7
7
  protected initItemElement(item: CommandItem, elem: CommandItemElement): void;
8
8
  close(): void;
9
- onShown: (instance: AbstractManualCommandBar) => void;
10
- getSubBarOptions: (item: CommandItem) => ManualShowCommandBarOptions;
11
9
  destroy(): void;
12
10
  protected getCommandBarRoot(): HTMLElement | null;
13
11
  get isVisible(): boolean;
@@ -2,6 +2,5 @@ import { CommandItem } from '../../../../@ones-editor/core';
2
2
  import { CommandItemElement } from './types';
3
3
  export type InitToolbarItemOptions = {
4
4
  tooltipId?: string;
5
- showName?: boolean;
6
5
  };
7
6
  export declare function initToolbarItem(item: CommandItem, elem: CommandItemElement, options: InitToolbarItemOptions): void;
@@ -19,7 +19,6 @@ export interface ManualShowCommandBarOptions {
19
19
  getReferenceClientRect?: GetReferenceClientRect | null | undefined;
20
20
  offset?: [number, number];
21
21
  arrow?: boolean;
22
- onShown?(instance: AbstractManualCommandBar): void;
23
22
  }
24
23
  export interface AbstractCommandBar extends TypedEmitter<CommandBarEvents> {
25
24
  readonly isVisible: boolean;
@@ -29,7 +28,6 @@ export interface AbstractCommandBar extends TypedEmitter<CommandBarEvents> {
29
28
  isInCommandBar: (target: EventTarget | null) => boolean;
30
29
  handleDocumentKeydown: (event: KeyboardEvent) => boolean;
31
30
  getSubBarOptions: (item: CommandItem) => ManualShowCommandBarOptions;
32
- updateItems: (items: CommandItem[]) => void;
33
31
  }
34
32
  export interface ShowCommandBarOptions {
35
33
  placement?: Placement;
@@ -63,8 +61,7 @@ export interface CommandBarOptions {
63
61
  header?: HTMLElement | (() => HTMLElement | null);
64
62
  footer?: HTMLElement | (() => HTMLElement | null);
65
63
  padding?: number;
66
- beforeClose?: (event?: MouseEvent | TouchEvent) => boolean;
67
- showName?: boolean;
64
+ beforeClose?: (event?: MouseEvent) => boolean;
68
65
  }
69
66
  export type CreateManualCommandBarFunction = (parentItem: CommandItem, closeable: Closeable, options?: CommandBarOptions) => AbstractManualCommandBar;
70
67
  export type PopoverOptions = {
@@ -120,8 +120,4 @@ import SymbolIcon from './symbol.svg?raw';
120
120
  import TreeIcon from './tree.svg?raw';
121
121
  import TimeIcon from './time.svg?raw';
122
122
  import SearchIcon from './search.svg?raw';
123
- import TextGroupIcon from './text-group.svg?raw';
124
- import TabIcon from './tab.svg?raw';
125
- import ShiftTabIcon from './shift-tab.svg?raw';
126
- import TableEditIcon from './table-edit.svg?raw';
127
- export { TableEditIcon, TabIcon, ShiftTabIcon, DownloadIcon, AddEmojiIcon, BallIcon, CardIcon, FoodIcon, LightIcon, SmileIcon, SymbolIcon, TreeIcon, TimeIcon, ClearIcon, CloseIcon, PrevIcon, NextIcon, MoreIcon, TextColorIcon, AddIcon, ArrowDownIcon, ArrowUpIcon, ArrowLeftIcon, ArrowRightIcon, DeleteRowIcon, DeleteColIcon, MergeCellIcon, SplitCellIcon, DeleteTableIcon, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, Heading7Icon, Heading8Icon, HeadingNIcon, OrderedListIcon, UnorderedListIcon, CheckListIcon, BlockquoteIcon, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, ImageIcon, ImageMenuIcon, ImageErrorIcon, ImageEmptyIcon, LinkIcon, LinkOffIcon, WarningIcon, PasteSpecialIcon, LaunchIcon, CodeIcon, LayoutIcon, AudioIcon, GraphIcon, VideoIcon, FileIcon, MathIcon, MathMenuIcon, TableIcon, TableMenuIcon, BilibiliIcon, YoukuIcon, ModaoIcon, FigmaIcon, EditIcon, CommentIcon, RefreshIcon, HelpIcon, CheckMarkIcon, TextIcon, RightArrowIcon, TencentVideoIcon, WebPageIcon, UmlIcon, DividingLineIcon, HeadingH1Icon, HeadingH2Icon, HeadingH3Icon, HeadingH4Icon, HeadingH5Icon, HeadingH6Icon, HeadingH7Icon, HeadingH8Icon, CheckboxIcon, QuoteIcon, LinkHrefIcon, OrderedIcon, UnorderedIcon, CopyIcon, CutIcon, DeleteIcon, LockBlockIcon, UnLockBlockIcon, InsertBeforeIcon, InsertAfterIcon, MentionIcon, CircleAddIcon, LoadingIcon, DragIcon, UmlBrandIcon, OnesLoadingIcon, BoldIcon, ItalicIcon, UnderlineIcon, LineThroughIcon, SubscriptIcon, SuperscriptIcon, InlineCodeIcon, ToMindMapIcon, FitIcon, FullScreenIcon, ExitFullScreenIcon, CaretDownIcon, StatusIcon, AlertEmojiIcon, ForbiddenIcon, WarningFilledIcon, InformationFilledIcon, SearchIcon, CalloutIcon, LoadingCircleIcon, TextGroupIcon, };
123
+ export { DownloadIcon, AddEmojiIcon, BallIcon, CardIcon, FoodIcon, LightIcon, SmileIcon, SymbolIcon, TreeIcon, TimeIcon, ClearIcon, CloseIcon, PrevIcon, NextIcon, MoreIcon, TextColorIcon, AddIcon, ArrowDownIcon, ArrowUpIcon, ArrowLeftIcon, ArrowRightIcon, DeleteRowIcon, DeleteColIcon, MergeCellIcon, SplitCellIcon, DeleteTableIcon, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, Heading7Icon, Heading8Icon, HeadingNIcon, OrderedListIcon, UnorderedListIcon, CheckListIcon, BlockquoteIcon, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, ImageIcon, ImageMenuIcon, ImageErrorIcon, ImageEmptyIcon, LinkIcon, LinkOffIcon, WarningIcon, PasteSpecialIcon, LaunchIcon, CodeIcon, LayoutIcon, AudioIcon, GraphIcon, VideoIcon, FileIcon, MathIcon, MathMenuIcon, TableIcon, TableMenuIcon, BilibiliIcon, YoukuIcon, ModaoIcon, FigmaIcon, EditIcon, CommentIcon, RefreshIcon, HelpIcon, CheckMarkIcon, TextIcon, RightArrowIcon, TencentVideoIcon, WebPageIcon, UmlIcon, DividingLineIcon, HeadingH1Icon, HeadingH2Icon, HeadingH3Icon, HeadingH4Icon, HeadingH5Icon, HeadingH6Icon, HeadingH7Icon, HeadingH8Icon, CheckboxIcon, QuoteIcon, LinkHrefIcon, OrderedIcon, UnorderedIcon, CopyIcon, CutIcon, DeleteIcon, LockBlockIcon, UnLockBlockIcon, InsertBeforeIcon, InsertAfterIcon, MentionIcon, CircleAddIcon, LoadingIcon, DragIcon, UmlBrandIcon, OnesLoadingIcon, BoldIcon, ItalicIcon, UnderlineIcon, LineThroughIcon, SubscriptIcon, SuperscriptIcon, InlineCodeIcon, ToMindMapIcon, FitIcon, FullScreenIcon, ExitFullScreenIcon, CaretDownIcon, StatusIcon, AlertEmojiIcon, ForbiddenIcon, WarningFilledIcon, InformationFilledIcon, SearchIcon, CalloutIcon, LoadingCircleIcon, };
@@ -15,6 +15,4 @@ export * from './input/create-input';
15
15
  export * from './auto-suggest';
16
16
  export * from './item-shortcuts';
17
17
  export * from './emoji-item';
18
- export * from './mobile-command-bar/mobile-bottom-menu';
19
- export * from './text-button';
20
18
  export { tippy, };
@@ -1,5 +1,5 @@
1
1
  import './input.scss';
2
- export type EditorInputOptions = {
2
+ export declare function createInput(parent: HTMLElement, options: {
3
3
  label?: string;
4
4
  placeholder?: string;
5
5
  required?: boolean;
@@ -9,29 +9,9 @@ export type EditorInputOptions = {
9
9
  onKeyDown?: (e: KeyboardEvent, composing: boolean) => void;
10
10
  maxLength?: number;
11
11
  prefix?: Element;
12
- suffixClose?: boolean;
13
- };
14
- declare class EditorInput {
15
- private parent;
16
- private options;
17
- private unbindKeyDownEvent;
18
- constructor(parent: HTMLElement, options: EditorInputOptions);
19
- private container;
20
- private get errorContent();
21
- private get input();
22
- private get suffix();
23
- private get prefix();
12
+ }): {
24
13
  getField: () => HTMLInputElement;
25
14
  getInputValue: () => string;
26
15
  setFieldError: (error: string) => void;
27
16
  focus: () => void;
28
- handleKeyDown: (e: KeyboardEvent, composing: boolean) => void;
29
- showSuffix: () => void;
30
- hideSuffix: () => void;
31
- handleInput: (e: Event) => void;
32
- handleClose: (e: Event | TouchEvent) => void;
33
- init(): HTMLDivElement;
34
- destroy(): void;
35
- }
36
- export declare function createInput(parent: HTMLElement, options: EditorInputOptions): EditorInput;
37
- export {};
17
+ };
@@ -4,7 +4,6 @@ declare const _default: {
4
4
  name: string;
5
5
  backgroundDesc: string;
6
6
  reset: string;
7
- more: string;
8
7
  };
9
8
  emojiPalette: {
10
9
  name: string;
@@ -4,7 +4,6 @@ declare const _default: {
4
4
  name: string;
5
5
  backgroundDesc: string;
6
6
  reset: string;
7
- more: string;
8
7
  };
9
8
  emojiPalette: {
10
9
  name: string;
@@ -4,7 +4,6 @@ declare const _default: {
4
4
  name: string;
5
5
  backgroundDesc: string;
6
6
  reset: string;
7
- more: string;
8
7
  };
9
8
  emojiPalette: {
10
9
  name: string;
@@ -3,7 +3,7 @@ import ManualCommandBar from '../command-bar/manual-command-bar';
3
3
  import { CommandBarContentElement, CommandItemElement } from '../command-bar/types';
4
4
  export type PopupOptions = {
5
5
  id?: string;
6
- beforeClose?: (event?: MouseEvent | TouchEvent) => boolean;
6
+ beforeClose?: (event?: MouseEvent) => boolean;
7
7
  };
8
8
  export default class Popup extends ManualCommandBar {
9
9
  constructor(content: HTMLElement, options?: PopupOptions);
@@ -7,3 +7,4 @@ export declare enum HistoryClass {
7
7
  }
8
8
  export declare const OpColor = "--op-color";
9
9
  export declare const OpSelectedColor = "--op-selected-color";
10
+ export declare const HISTORY_TOOLTIP_IDENTIFIER = "data-history-editor-tooltip";
@@ -1,4 +1,4 @@
1
- import { BlockElement, BlockPath, DocBlock, DocBlockTextAttributes, OnesEditor, OnesEditorBlockRenderer, OnesEditorBlockRenderResult } from '../../../../@ones-editor/core';
1
+ import type { BlockElement, BlockPath, DocBlock, DocBlockTextAttributes, OnesEditor, OnesEditorBlockRenderer, OnesEditorBlockRenderResult } from '../../../../@ones-editor/core';
2
2
  export default class OnesEditorHistoryRender implements OnesEditorBlockRenderer {
3
3
  renderBox(editor: OnesEditor, path: BlockPath, attributes: DocBlockTextAttributes): OnesEditorBlockRenderResult;
4
4
  renderText(editor: OnesEditor, path: BlockPath, attributes: DocBlockTextAttributes): OnesEditorBlockRenderResult;