rme 0.3.1-beta.2 → 0.3.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 CHANGED
@@ -274,6 +274,15 @@ type HTMLAstNode = {
274
274
  };
275
275
  declare const Preview: React.FC<PreviewProps>;
276
276
 
277
+ interface TypewriterScrollOptions {
278
+ /**
279
+ * Whether to enable typewriter scroll behavior.
280
+ * When enabled, the caret will be centered in the viewport during editing.
281
+ * @default true
282
+ */
283
+ enabled?: boolean;
284
+ }
285
+
277
286
  type StringToDoc = (content: string) => Node;
278
287
  type DocToString = (doc: Node) => string;
279
288
  type EditorDelegate<E extends AnyExtension = any> = {
@@ -318,6 +327,7 @@ type CreateSourceCodeManagerOptions = {
318
327
  */
319
328
  disableAllBuildInShortcuts?: boolean;
320
329
  clipboardReadFunction?: ClipboardReadFunction;
330
+ typewriterScroll?: TypewriterScrollOptions;
321
331
  };
322
332
  declare function createSourceCodeManager(options?: CreateSourceCodeManagerOptions): RemirrorManager$1<any>;
323
333
  declare const createSourceCodeDelegate: (options?: CreateSourceCodeManagerOptions) => EditorDelegate<any>;
@@ -595,15 +605,6 @@ interface ImageExtensionAttributes$1 {
595
605
  'data-file-name'?: string;
596
606
  }
597
607
 
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
-
607
608
  type DelayedImage = DelayedPromiseCreator<ImageAttributes>;
608
609
  interface ImageOptions {
609
610
  createPlaceholder?: (view: EditorView$2, pos: number) => HTMLElement;