rme 0.3.0 → 0.3.1-beta.2
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/dist/index.d.ts +10 -0
- package/dist/index.mjs +339 -13576
- package/package.json +7 -7
- package/dist/index.mjs.map +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -595,6 +595,15 @@ interface ImageExtensionAttributes$1 {
|
|
|
595
595
|
'data-file-name'?: string;
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
+
interface TypewriterScrollOptions {
|
|
599
|
+
/**
|
|
600
|
+
* Whether to enable typewriter scroll behavior.
|
|
601
|
+
* When enabled, the caret will be centered in the viewport during editing.
|
|
602
|
+
* @default true
|
|
603
|
+
*/
|
|
604
|
+
enabled?: boolean;
|
|
605
|
+
}
|
|
606
|
+
|
|
598
607
|
type DelayedImage = DelayedPromiseCreator<ImageAttributes>;
|
|
599
608
|
interface ImageOptions {
|
|
600
609
|
createPlaceholder?: (view: EditorView$2, pos: number) => HTMLElement;
|
|
@@ -766,6 +775,7 @@ type ExtensionsOptions = {
|
|
|
766
775
|
clipboardReadFunction?: ClipboardReadFunction;
|
|
767
776
|
codemirrorOptions?: CodemirrorOptions;
|
|
768
777
|
uploadImageHandler?: (files: FileWithProgress$1[]) => DelayedImage$1[];
|
|
778
|
+
typewriterScroll?: TypewriterScrollOptions;
|
|
769
779
|
};
|
|
770
780
|
declare function extensions(options: ExtensionsOptions): any[];
|
|
771
781
|
|