@ones-editor/editor 1.1.16-beta.6 → 1.1.16-beta.9
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/@ones-editor/block-menu/src/block-menu/items/insert-block-items/index.d.ts +1 -1
- package/@ones-editor/code-block/src/code-block/languages.d.ts +1 -1
- package/@ones-editor/code-block/src/locale/en-us.d.ts +1 -0
- package/@ones-editor/code-block/src/locale/ja-jp.d.ts +1 -0
- package/@ones-editor/code-block/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/comments/src/comments-render/index.d.ts +1 -0
- package/@ones-editor/core/src/core/doc/rich-text/text-style.d.ts +1 -0
- package/@ones-editor/core/src/core/editor/actions/update-block-text.d.ts +3 -3
- package/@ones-editor/core/src/core/editor/actions/update-box-data.d.ts +2 -2
- package/@ones-editor/core/src/core/types.d.ts +2 -2
- package/@ones-editor/core/src/utils/dom.d.ts +1 -0
- package/@ones-editor/input-handlers/src/enforce-with-document-title/types.d.ts +0 -2
- package/@ones-editor/paste-special/src/paste-special-button.d.ts +0 -1
- package/@ones-editor/status/package.json +7 -0
- package/@ones-editor/status/src/dom/input.d.ts +1 -0
- package/@ones-editor/status/src/dom/overflow-tooltip-tag.d.ts +10 -0
- package/@ones-editor/status/src/dom/status-palette.d.ts +6 -0
- package/@ones-editor/status/src/index.d.ts +4 -0
- package/@ones-editor/status/src/locale/en-us.d.ts +25 -0
- package/@ones-editor/status/src/locale/index.d.ts +1 -0
- package/@ones-editor/status/src/locale/ja-jp.d.ts +25 -0
- package/@ones-editor/status/src/locale/zh-cn.d.ts +25 -0
- package/@ones-editor/status/src/status-box-command.d.ts +7 -0
- package/@ones-editor/status/src/status-box-data.d.ts +5 -0
- package/@ones-editor/status/src/status-box-editor.d.ts +21 -0
- package/@ones-editor/status/src/status-box.d.ts +4 -0
- package/@ones-editor/status/src/types.d.ts +8 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +2 -2
- package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +1 -2
- package/@ones-editor/ui/src/quick-menu/types.d.ts +1 -1
- package/@ones-editor/ui-base/src/command-bar/manual-menu.d.ts +1 -1
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +0 -1
- package/@ones-editor/ui-base/src/icons/index.d.ts +2 -1
- package/@ones-editor/ui-base/src/input/create-input.d.ts +3 -2
- package/@ones-editor/ui-base/src/popup/popup.d.ts +0 -2
- package/@ones-editor/versions/src/types.d.ts +1 -3
- package/@ones-editor/versions/src/version-dialog/size-limit-textarea.d.ts +2 -1
- package/@ones-editor/versions/src/version-dialog/version-list.d.ts +0 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +210 -199
- package/dist/types.d.ts +1 -4
- package/package.json +2 -1
package/dist/types.d.ts
CHANGED
|
@@ -56,9 +56,6 @@ export interface CreateOnesEditorOptions {
|
|
|
56
56
|
lang?: i18n.LANGS;
|
|
57
57
|
logLevel?: LogLevel;
|
|
58
58
|
hideTitle?: boolean;
|
|
59
|
-
placeholder?: {
|
|
60
|
-
applyContentPlaceholder?: (editor: OnesEditor) => boolean;
|
|
61
|
-
};
|
|
62
59
|
onReauth?: (userId: string, docId: string, permission: OnesEditorUserPermission) => Promise<string>;
|
|
63
60
|
user: {
|
|
64
61
|
userId: string;
|
|
@@ -71,7 +68,6 @@ export interface CreateOnesEditorOptions {
|
|
|
71
68
|
embeds?: Embed[];
|
|
72
69
|
boxes?: Box[];
|
|
73
70
|
blockHooks?: OnesEditorBlockHook[];
|
|
74
|
-
textRenders?: OnesEditorBlockRenderer[];
|
|
75
71
|
commandProviders?: OnesEditorCommandProvider[];
|
|
76
72
|
};
|
|
77
73
|
events?: EditorEvents;
|
|
@@ -84,6 +80,7 @@ export interface CreateLocalEditorOptions {
|
|
|
84
80
|
logLevel?: LogLevel;
|
|
85
81
|
scrollContainer?: HTMLElement;
|
|
86
82
|
components?: {
|
|
83
|
+
blocks?: Block[];
|
|
87
84
|
embeds?: Embed[];
|
|
88
85
|
boxes?: Box[];
|
|
89
86
|
blockHooks?: OnesEditorBlockHook[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ones-editor/editor",
|
|
3
|
-
"version": "1.1.16-beta.
|
|
3
|
+
"version": "1.1.16-beta.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"lodash.upperfirst": "^4.3.1",
|
|
37
37
|
"marked": "^4.2.1",
|
|
38
38
|
"marked-extended-latex": "^1.1.0",
|
|
39
|
+
"markmap-common": "0.1.6",
|
|
39
40
|
"markmap-view": "^0.15.4",
|
|
40
41
|
"mermaid": "^9.1.0",
|
|
41
42
|
"mime-db": "^1.52.0",
|