@portabletext/editor 2.6.0 → 2.6.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.
@@ -573,6 +573,7 @@ type HotkeyOptions = {
573
573
  * @public
574
574
  */
575
575
  type PortableTextEditableProps = Omit<TextareaHTMLAttributes<HTMLDivElement>, 'onPaste' | 'onCopy' | 'onBeforeInput'> & {
576
+ ref?: React.RefObject<HTMLDivElement>;
576
577
  hotkeys?: HotkeyOptions;
577
578
  onBeforeInput?: (event: InputEvent) => void;
578
579
  onPaste?: OnPasteFn;
@@ -609,23 +610,7 @@ type PortableTextEditableProps = Omit<TextareaHTMLAttributes<HTMLDivElement>, 'o
609
610
  * ```
610
611
  * @group Components
611
612
  */
612
- declare const PortableTextEditable: react20.ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLDivElement>, "onPaste" | "onBeforeInput" | "onCopy"> & {
613
- hotkeys?: HotkeyOptions;
614
- onBeforeInput?: (event: InputEvent) => void;
615
- onPaste?: OnPasteFn;
616
- onCopy?: OnCopyFn;
617
- rangeDecorations?: RangeDecoration[];
618
- renderAnnotation?: RenderAnnotationFunction;
619
- renderBlock?: RenderBlockFunction;
620
- renderChild?: RenderChildFunction;
621
- renderDecorator?: RenderDecoratorFunction;
622
- renderListItem?: RenderListItemFunction;
623
- renderPlaceholder?: RenderPlaceholderFunction;
624
- renderStyle?: RenderStyleFunction;
625
- scrollSelectionIntoView?: ScrollSelectionIntoViewFunction;
626
- selection?: EditorSelection;
627
- spellCheck?: boolean;
628
- } & react20.RefAttributes<Omit<HTMLDivElement, "as" | "onPaste" | "onBeforeInput">>>;
613
+ declare const PortableTextEditable: react20.ForwardRefExoticComponent<Omit<PortableTextEditableProps, "ref"> & react20.RefAttributes<Omit<HTMLDivElement, "as" | "onPaste" | "onBeforeInput">>>;
629
614
  type DecoratedRange = BaseRange & {
630
615
  rangeDecoration: RangeDecoration;
631
616
  };
@@ -573,6 +573,7 @@ type HotkeyOptions = {
573
573
  * @public
574
574
  */
575
575
  type PortableTextEditableProps = Omit<TextareaHTMLAttributes<HTMLDivElement>, 'onPaste' | 'onCopy' | 'onBeforeInput'> & {
576
+ ref?: React.RefObject<HTMLDivElement>;
576
577
  hotkeys?: HotkeyOptions;
577
578
  onBeforeInput?: (event: InputEvent) => void;
578
579
  onPaste?: OnPasteFn;
@@ -609,23 +610,7 @@ type PortableTextEditableProps = Omit<TextareaHTMLAttributes<HTMLDivElement>, 'o
609
610
  * ```
610
611
  * @group Components
611
612
  */
612
- declare const PortableTextEditable: react20.ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLDivElement>, "onPaste" | "onBeforeInput" | "onCopy"> & {
613
- hotkeys?: HotkeyOptions;
614
- onBeforeInput?: (event: InputEvent) => void;
615
- onPaste?: OnPasteFn;
616
- onCopy?: OnCopyFn;
617
- rangeDecorations?: RangeDecoration[];
618
- renderAnnotation?: RenderAnnotationFunction;
619
- renderBlock?: RenderBlockFunction;
620
- renderChild?: RenderChildFunction;
621
- renderDecorator?: RenderDecoratorFunction;
622
- renderListItem?: RenderListItemFunction;
623
- renderPlaceholder?: RenderPlaceholderFunction;
624
- renderStyle?: RenderStyleFunction;
625
- scrollSelectionIntoView?: ScrollSelectionIntoViewFunction;
626
- selection?: EditorSelection;
627
- spellCheck?: boolean;
628
- } & react20.RefAttributes<Omit<HTMLDivElement, "as" | "onPaste" | "onBeforeInput">>>;
613
+ declare const PortableTextEditable: react20.ForwardRefExoticComponent<Omit<PortableTextEditableProps, "ref"> & react20.RefAttributes<Omit<HTMLDivElement, "as" | "onPaste" | "onBeforeInput">>>;
629
614
  type DecoratedRange = BaseRange & {
630
615
  rangeDecoration: RangeDecoration;
631
616
  };