@surrealdb/ui 1.0.72 → 1.0.73

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/ui.d.ts CHANGED
@@ -34,6 +34,7 @@ import { PaperProps } from '@mantine/core';
34
34
  import { PluginKey } from 'prosemirror-state';
35
35
  import type * as React_2 from 'react';
36
36
  import { ReactNode } from 'react';
37
+ import { Ref } from 'react';
37
38
  import { RefObject } from 'react';
38
39
  import { ResolvedPos } from 'prosemirror-model';
39
40
  import { Schema } from 'prosemirror-model';
@@ -94,8 +95,8 @@ export declare const BlockEditor: FC<BlockEditorProps>;
94
95
  * component.
95
96
  */
96
97
  export declare interface BlockEditorController {
97
- /** Ref to attach to the editor's mount point DOM element. */
98
- ref: RefObject<HTMLDivElement | null>;
98
+ /** Ref to attach to the editor's mount point DOM element (RefObject or callback ref). */
99
+ ref: Ref<HTMLDivElement | null>;
99
100
  /** Whether the ProseMirror EditorView has been mounted. */
100
101
  mounted: boolean;
101
102
  /** Access the underlying ProseMirror EditorView. Throws if not mounted. */
@@ -558,7 +559,7 @@ declare type ComponentMap = {
558
559
  * Factory function to create a BlockEditorController from refs.
559
560
  * Used internally by `useBlockEditor`.
560
561
  */
561
- export declare function createBlockEditorController(ref: RefObject<HTMLDivElement | null>, editorViewRef: RefObject<EditorView_2 | null>, mountedRef: {
562
+ export declare function createBlockEditorController(ref: Ref<HTMLDivElement | null>, editorViewRef: RefObject<EditorView_2 | null>, mountedRef: {
562
563
  current: boolean;
563
564
  }): BlockEditorController;
564
565