@ones-editor/editor 2.0.8-beta.3 → 2.1.0-beta.3

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 (145) hide show
  1. package/@ones-editor/block-menu/src/block-menu/items/insert-block-items/index.d.ts +1 -1
  2. package/@ones-editor/block-menu/src/block-menu-button/drag-preview/element-to-data-url.d.ts +1 -1
  3. package/@ones-editor/block-menu/src/block-menu-button/index.d.ts +4 -15
  4. package/@ones-editor/block-menu/src/block-menu-button/menu-button/index.d.ts +23 -0
  5. package/@ones-editor/callout-block/package.json +11 -0
  6. package/@ones-editor/callout-block/src/callout-block/callout-block-content.d.ts +3 -0
  7. package/@ones-editor/callout-block/src/callout-block/callout-block-doc.d.ts +2 -0
  8. package/@ones-editor/callout-block/src/callout-block/callout-block.d.ts +3 -0
  9. package/@ones-editor/callout-block/src/callout-block/callout-converter-interceptor.d.ts +8 -0
  10. package/@ones-editor/callout-block/src/callout-block/callout-input-handler.d.ts +11 -0
  11. package/@ones-editor/callout-block/src/callout-block/callout-last-callout-payload.d.ts +9 -0
  12. package/@ones-editor/callout-block/src/callout-block/callout-options.d.ts +2 -0
  13. package/@ones-editor/callout-block/src/callout-block/callout-properties.d.ts +2 -0
  14. package/@ones-editor/callout-block/src/callout-block/callout-quick-menu-item-filter.d.ts +8 -0
  15. package/@ones-editor/callout-block/src/callout-block/command-items/bg-color-item.d.ts +22 -0
  16. package/@ones-editor/callout-block/src/callout-block/command-items/delete-icon-item.d.ts +4 -0
  17. package/@ones-editor/callout-block/src/callout-block/command-items/preset-item.d.ts +16 -0
  18. package/@ones-editor/callout-block/src/callout-block/converter.d.ts +3 -0
  19. package/@ones-editor/callout-block/src/callout-block/helper.d.ts +4 -0
  20. package/@ones-editor/callout-block/src/callout-block/index.d.ts +1 -0
  21. package/@ones-editor/callout-block/src/callout-block/types.d.ts +9 -0
  22. package/@ones-editor/callout-block/src/index.d.ts +3 -0
  23. package/@ones-editor/callout-block/src/locale/en-us.d.ts +12 -0
  24. package/@ones-editor/callout-block/src/locale/index.d.ts +1 -0
  25. package/@ones-editor/callout-block/src/locale/ja-jp.d.ts +12 -0
  26. package/@ones-editor/callout-block/src/locale/zh-cn.d.ts +12 -0
  27. package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +17 -0
  28. package/@ones-editor/comments/src/index.d.ts +3 -0
  29. package/@ones-editor/context-menu/src/helper/command-items.d.ts +1 -0
  30. package/@ones-editor/core/src/core/blocks/common/block-properties.d.ts +9 -9
  31. package/@ones-editor/core/src/core/blocks/common/block-wrapper.d.ts +2 -1
  32. package/@ones-editor/core/src/core/blocks/common/insert-empty-block.d.ts +3 -2
  33. package/@ones-editor/core/src/core/blocks/complex-blocks/child-blocks.d.ts +2 -1
  34. package/@ones-editor/core/src/core/blocks/embed-blocks/embed-block/common.d.ts +1 -0
  35. package/@ones-editor/core/src/core/blocks/embed-blocks/embed-block/index.d.ts +1 -0
  36. package/@ones-editor/core/src/core/blocks/text-blocks/base/child.d.ts +2 -7
  37. package/@ones-editor/core/src/core/composition/editor-input.d.ts +3 -3
  38. package/@ones-editor/core/src/core/containers/children.d.ts +5 -2
  39. package/@ones-editor/core/src/core/containers/element.d.ts +1 -0
  40. package/@ones-editor/core/src/core/doc/container.d.ts +2 -2
  41. package/@ones-editor/core/src/core/doc/doc.d.ts +1 -0
  42. package/@ones-editor/core/src/core/editor/actions/insert-doc/insert-doc.d.ts +1 -1
  43. package/@ones-editor/core/src/core/editor-doc/handle-block-data-changed.d.ts +2 -1
  44. package/@ones-editor/core/src/core/types.d.ts +77 -12
  45. package/@ones-editor/core/src/helper/hovering-block.d.ts +3 -1
  46. package/@ones-editor/core/src/i18n/en-us.d.ts +1 -0
  47. package/@ones-editor/core/src/i18n/i18n.d.ts +3 -0
  48. package/@ones-editor/core/src/i18n/ja-jp.d.ts +1 -0
  49. package/@ones-editor/core/src/i18n/zh-cn.d.ts +1 -0
  50. package/@ones-editor/core/src/utils/data-url.d.ts +1 -0
  51. package/@ones-editor/drop-target/src/drop-indicator.d.ts +5 -4
  52. package/@ones-editor/drop-target/src/drop-target.d.ts +2 -1
  53. package/@ones-editor/drop-target/src/find-drop-target.d.ts +1 -1
  54. package/@ones-editor/drop-target/src/index.d.ts +2 -1
  55. package/@ones-editor/embed-block-helper/src/block-resizer/index.d.ts +2 -0
  56. package/@ones-editor/file/src/file-embed/card/index.d.ts +1 -1
  57. package/@ones-editor/file/src/types.d.ts +1 -0
  58. package/@ones-editor/graph-embed/src/config/index.d.ts +1 -0
  59. package/@ones-editor/graph-embed/src/helper/graph-base.d.ts +1 -1
  60. package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +3 -1
  61. package/@ones-editor/heading-collapse/src/heading-collapse-button/heading-utils.d.ts +2 -1
  62. package/@ones-editor/heading-collapse/src/index.d.ts +1 -0
  63. package/@ones-editor/image-embed/src/drag-drop/handle-drop-over.d.ts +1 -4
  64. package/@ones-editor/image-embed/src/drag-drop/handle-drop.d.ts +3 -2
  65. package/@ones-editor/image-embed/src/hovering-toolbar/index.d.ts +22 -0
  66. package/@ones-editor/image-embed/src/image-dom/download-image.d.ts +2 -0
  67. package/@ones-editor/image-embed/src/image-object.d.ts +3 -0
  68. package/@ones-editor/image-embed/src/index.d.ts +5 -1
  69. package/@ones-editor/image-embed/src/types.d.ts +1 -0
  70. package/@ones-editor/input-handlers/src/index.d.ts +4 -1
  71. package/@ones-editor/input-handlers/src/markdown-shortcuts/converter-interceptors.d.ts +12 -0
  72. package/@ones-editor/input-handlers/src/markdown-shortcuts/match-block-convert.d.ts +9 -1
  73. package/@ones-editor/{column-block → layout-block}/package.json +1 -1
  74. package/@ones-editor/layout-block/src/block-drop.d.ts +3 -0
  75. package/@ones-editor/layout-block/src/caption.d.ts +8 -0
  76. package/@ones-editor/layout-block/src/child-containers.d.ts +3 -0
  77. package/@ones-editor/layout-block/src/column-resizer/index.d.ts +2 -0
  78. package/@ones-editor/layout-block/src/constants.d.ts +32 -0
  79. package/@ones-editor/layout-block/src/index.d.ts +6 -0
  80. package/@ones-editor/layout-block/src/layout-creator/index.d.ts +27 -0
  81. package/@ones-editor/layout-block/src/layout-operations.d.ts +11 -0
  82. package/@ones-editor/layout-block/src/locale/en-us.d.ts +10 -0
  83. package/@ones-editor/layout-block/src/locale/index.d.ts +1 -0
  84. package/@ones-editor/layout-block/src/locale/ja-jp.d.ts +10 -0
  85. package/@ones-editor/layout-block/src/locale/zh-cn.d.ts +10 -0
  86. package/@ones-editor/layout-block/src/options.d.ts +2 -0
  87. package/@ones-editor/layout-block/src/percent-bar.d.ts +3 -0
  88. package/@ones-editor/layout-block/src/selection.d.ts +5 -0
  89. package/@ones-editor/layout-block/src/toolbar.d.ts +33 -0
  90. package/@ones-editor/layout-block/src/types.d.ts +17 -0
  91. package/@ones-editor/layout-block/src/utils.d.ts +6 -0
  92. package/@ones-editor/media-embed/src/core/hovering-toolbar/index.d.ts +22 -0
  93. package/@ones-editor/misc/src/image.d.ts +2 -1
  94. package/@ones-editor/paste-special/src/paste-special-handler.d.ts +1 -0
  95. package/@ones-editor/sharedb-doc/src/index.d.ts +3 -0
  96. package/@ones-editor/table-block/src/index.d.ts +1 -0
  97. package/@ones-editor/table-block/src/table-block/doc-table-grid.d.ts +1 -0
  98. package/@ones-editor/table-block/src/table-block/table-creator/index.d.ts +1 -1
  99. package/@ones-editor/table-block/src/table-block/table-grid.d.ts +1 -0
  100. package/@ones-editor/to-docx/src/doc2other/colors.d.ts +7 -1
  101. package/@ones-editor/to-docx/src/doc2other/core.d.ts +2 -0
  102. package/@ones-editor/to-docx/src/doc2other/layout.d.ts +10 -0
  103. package/@ones-editor/toc/src/build-toc.d.ts +1 -0
  104. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  105. package/@ones-editor/ui/src/index.d.ts +6 -3
  106. package/@ones-editor/ui/src/quick-menu/basic-menu-items.d.ts +1 -1
  107. package/@ones-editor/ui/src/quick-menu/index.d.ts +9 -2
  108. package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +4 -2
  109. package/@ones-editor/ui/src/quick-menu/types.d.ts +5 -0
  110. package/@ones-editor/ui/src/readonly-toolbar/add-comment-to-old-doc.d.ts +22 -0
  111. package/@ones-editor/ui/src/readonly-toolbar/index.d.ts +29 -0
  112. package/@ones-editor/ui/src/readonly-toolbar/types.d.ts +12 -0
  113. package/@ones-editor/ui/src/toolbar/link-commands.d.ts +7 -0
  114. package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +2 -0
  115. package/@ones-editor/ui-base/src/color-palette/color-palette.d.ts +2 -1
  116. package/@ones-editor/ui-base/src/color-palette/create-palette.d.ts +8 -0
  117. package/@ones-editor/ui-base/src/color-palette/index.d.ts +2 -2
  118. package/@ones-editor/ui-base/src/command-bar/types.d.ts +1 -0
  119. package/@ones-editor/ui-base/src/emoji-item/emoji-item.d.ts +19 -0
  120. package/@ones-editor/ui-base/src/emoji-item/index.d.ts +2 -0
  121. package/@ones-editor/ui-base/src/emoji-palette/emoji-content.d.ts +21 -0
  122. package/@ones-editor/ui-base/src/emoji-palette/emoji-data.d.ts +60 -0
  123. package/@ones-editor/ui-base/src/emoji-palette/emoji-navigation.d.ts +16 -0
  124. package/@ones-editor/ui-base/src/emoji-palette/emoji-search.d.ts +11 -0
  125. package/@ones-editor/ui-base/src/emoji-palette/index.d.ts +23 -0
  126. package/@ones-editor/ui-base/src/emoji-palette/types.d.ts +0 -0
  127. package/@ones-editor/ui-base/src/icons/index.d.ts +20 -1
  128. package/@ones-editor/ui-base/src/index.d.ts +1 -0
  129. package/@ones-editor/ui-base/src/input/create-input.d.ts +1 -0
  130. package/@ones-editor/ui-base/src/locale/en-us.d.ts +20 -0
  131. package/@ones-editor/ui-base/src/locale/ja-jp.d.ts +20 -0
  132. package/@ones-editor/ui-base/src/locale/zh-cn.d.ts +20 -0
  133. package/dist/comments/local-doc-comments-provider.d.ts +2 -1
  134. package/dist/index.d.ts +2 -1
  135. package/dist/index.js +67011 -16042
  136. package/dist/lang/en-us.d.ts +1 -0
  137. package/dist/lang/ja-jp.d.ts +1 -0
  138. package/dist/lang/zh-cn.d.ts +1 -0
  139. package/dist/types.d.ts +2 -0
  140. package/package.json +3 -3
  141. package/@ones-editor/column-block/src/child-containers.d.ts +0 -2
  142. package/@ones-editor/column-block/src/columns-options.d.ts +0 -2
  143. package/@ones-editor/column-block/src/columns-properties.d.ts +0 -15
  144. package/@ones-editor/column-block/src/index.d.ts +0 -4
  145. package/@ones-editor/column-block/src/types.d.ts +0 -11
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  readonlyTitle: string;
6
6
  content: string;
7
7
  contentInTable: string;
8
+ contentInCallout: string;
8
9
  };
9
10
  local: {
10
11
  readonlyTitle: string;
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  readonlyTitle: string;
6
6
  content: string;
7
7
  contentInTable: string;
8
+ contentInCallout: string;
8
9
  };
9
10
  local: {
10
11
  readonlyTitle: string;
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  readonlyTitle: string;
6
6
  content: string;
7
7
  contentInTable: string;
8
+ contentInCallout: string;
8
9
  };
9
10
  local: {
10
11
  readonlyTitle: string;
package/dist/types.d.ts CHANGED
@@ -15,6 +15,7 @@ import { CodeBlockExternalOptions } from '../@ones-editor/code-block';
15
15
  import { MentionOptions } from '../@ones-editor/mention';
16
16
  import { MathjaxOptions } from '../@ones-editor/mathjax';
17
17
  import { LinkOptions } from '../@ones-editor/ui/src/link-popup';
18
+ import { EditorConfigLayoutOptions } from '../@ones-editor/layout-block/src/types';
18
19
  export interface RemoteCaretsOptions {
19
20
  onUserChanged?: (editor: OnesEditor, users: OnesEditorUser[]) => void;
20
21
  }
@@ -40,6 +41,7 @@ export type EditorComponentOptions = {
40
41
  code?: CodeBlockExternalOptions;
41
42
  mathjax?: MathjaxOptions;
42
43
  link?: LinkOptions;
44
+ columns?: EditorConfigLayoutOptions;
43
45
  };
44
46
  export type EditorEvents = {
45
47
  onClickLink?: (editor: OnesEditor, event: MouseEvent, link: Element) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.0.8-beta.3",
3
+ "version": "2.1.0-beta.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -37,8 +37,8 @@
37
37
  "lodash.upperfirst": "^4.3.1",
38
38
  "marked": "^4.2.1",
39
39
  "marked-extended-latex": "^1.1.0",
40
- "markmap-common": "^0.15.0",
41
- "markmap-view": "^0.15.0",
40
+ "markmap-common": "0.15.3",
41
+ "markmap-view": "0.15.4",
42
42
  "mermaid": "^9.1.0",
43
43
  "mime-db": "^1.52.0",
44
44
  "nanoid": "^3.2.0",
@@ -1,2 +0,0 @@
1
- import { BlockElement, ContainerElement } from '../../../@ones-editor/core';
2
- export declare function getColumnChildContainers(block: BlockElement): ContainerElement[];
@@ -1,2 +0,0 @@
1
- import { BlockOptions, OnesEditor } from '../../../@ones-editor/core';
2
- export declare function getColumnsOptions(editor: OnesEditor): BlockOptions;
@@ -1,15 +0,0 @@
1
- import { BlockCommands, BlockElement, CommandItem, OnesEditor } from '../../../@ones-editor/core';
2
- export declare class ColumnsBlockCommands implements BlockCommands {
3
- protected editor: OnesEditor;
4
- protected block: BlockElement;
5
- group: string;
6
- constructor(editor: OnesEditor, block: BlockElement);
7
- _commands: CommandItem[];
8
- get commands(): CommandItem[];
9
- executeCommand(editor: OnesEditor, block: BlockElement, item: CommandItem): void;
10
- }
11
- export declare function getColumnsBlockProperties(editor: OnesEditor, block: BlockElement): {
12
- blockCommands: {
13
- 'hovering-toolbar': ColumnsBlockCommands;
14
- };
15
- };
@@ -1,4 +0,0 @@
1
- import { ComplexKindBlock } from '../../../@ones-editor/core';
2
- import './columns-styles.scss';
3
- declare const ColumnBlock: ComplexKindBlock;
4
- export default ColumnBlock;
@@ -1,11 +0,0 @@
1
- import { DocBlock } from '../../../@ones-editor/core';
2
- export type ColumnData = {
3
- type: string;
4
- columns: 1 | 2 | 3 | 4;
5
- };
6
- export declare const COLUMNS: ColumnData[];
7
- export interface DocColumnsBlock extends DocBlock {
8
- columnType: string;
9
- children: string[];
10
- }
11
- export declare function getColumnData(type: string): ColumnData;