@ones-editor/editor 2.5.1-beta.1 → 2.5.1-beta.11
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/core/src/utils/auto-scroll.d.ts +0 -1
- package/@ones-editor/server-tools/src/to-markdown/boxes/image.d.ts +5 -0
- package/@ones-editor/server-tools/src/to-markdown/boxes/index.d.ts +3 -1
- package/@ones-editor/server-tools/src/to-markdown/embeds/plugin.d.ts +2 -0
- package/@ones-editor/server-tools/src/utils/is-binary.d.ts +14 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +45 -10
- package/package.json +1 -1
|
@@ -24,7 +24,6 @@ export declare function continuousScroll(scrollElement: HTMLElement, { direction
|
|
|
24
24
|
export declare class AutoScroll {
|
|
25
25
|
private cancelScroll;
|
|
26
26
|
private options;
|
|
27
|
-
private scrollDomInfo;
|
|
28
27
|
private scrolling;
|
|
29
28
|
constructor(options: AutoScrollOptions);
|
|
30
29
|
private getScrollDomInfo;
|
|
@@ -5,12 +5,14 @@ import MentionBoxToMarkdown from './mention';
|
|
|
5
5
|
import TaskLinkBoxToMarkdown from './task-link';
|
|
6
6
|
import KnownLinkBoxToMarkdown from './known-link';
|
|
7
7
|
import DateBoxToMarkdown from './date';
|
|
8
|
+
import ImageBoxToMarkdown from './image';
|
|
8
9
|
export declare function getBoxes(): {
|
|
9
10
|
br: typeof BrBoxToMarkdown;
|
|
10
11
|
file: typeof FileBoxToMarkdown;
|
|
11
|
-
|
|
12
|
+
math: typeof MathjaxBoxToMarkdown;
|
|
12
13
|
mention: typeof MentionBoxToMarkdown;
|
|
13
14
|
date: typeof DateBoxToMarkdown;
|
|
14
15
|
'task-link': typeof TaskLinkBoxToMarkdown;
|
|
15
16
|
'known-link': typeof KnownLinkBoxToMarkdown;
|
|
17
|
+
image: typeof ImageBoxToMarkdown;
|
|
16
18
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export interface EncodingOpts {
|
|
3
|
+
/** Defaults to 24 */
|
|
4
|
+
chunkLength?: number;
|
|
5
|
+
/** If not provided, will check the start, beginning, and end */
|
|
6
|
+
chunkBegin?: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get the encoding of a buffer.
|
|
10
|
+
* Checks the start, middle, and end of the buffer for characters that are unrecognized within UTF8 encoding.
|
|
11
|
+
* History has shown that inspection at all three locations is necessary.
|
|
12
|
+
* @returns Will be `null` if `buffer` was not provided. Otherwise will be either `'utf8'` or `'binary'`
|
|
13
|
+
*/
|
|
14
|
+
export declare function getEncoding(buffer: Buffer | null, opts?: EncodingOpts): 'utf8' | 'binary' | null;
|