@drghaliasri/butex 6.1.3 → 6.1.5

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.
@@ -506,7 +506,7 @@ type ImageBlockEditorRenderContext = {
506
506
  defaultUi: ReactNode;
507
507
  };
508
508
 
509
- type ButexDocumentEditor2Props = {
509
+ type ButexDocumentEditor2Props$1 = {
510
510
  initialDocument?: Document2Json | Document2Node;
511
511
  /** Seed article metadata when JSON/node omits fields (JSON wins when present). */
512
512
  documentMeta?: Document2MetaProp;
@@ -555,7 +555,15 @@ type ButexDocumentEditor2Ref = {
555
555
  };
556
556
 
557
557
  declare function resolveInitialDocument2(initialDocument: Document2Json | Document2Node | undefined, uiLocale?: ButexUiLocale, documentMeta?: Document2MetaProp): Document2InitialState;
558
- declare const ButexDocumentEditor2: react.ForwardRefExoticComponent<ButexDocumentEditor2Props & react.RefAttributes<ButexDocumentEditor2Ref>>;
558
+
559
+ type ButexDocumentEditor2Props = ButexDocumentEditor2Props$1 & {
560
+ /** Reports whether the current draft is safe for LaTeX compilation. */
561
+ onValidityChange?: (isValid: boolean) => void;
562
+ };
563
+ declare const ButexDocumentEditor2: react.ForwardRefExoticComponent<ButexDocumentEditor2Props$1 & {
564
+ /** Reports whether the current draft is safe for LaTeX compilation. */
565
+ onValidityChange?: (isValid: boolean) => void;
566
+ } & react.RefAttributes<ButexDocumentEditor2Ref>>;
559
567
 
560
568
  type DocumentInsertToolbarProps = {
561
569
  canUndo: boolean;
@@ -506,7 +506,7 @@ type ImageBlockEditorRenderContext = {
506
506
  defaultUi: ReactNode;
507
507
  };
508
508
 
509
- type ButexDocumentEditor2Props = {
509
+ type ButexDocumentEditor2Props$1 = {
510
510
  initialDocument?: Document2Json | Document2Node;
511
511
  /** Seed article metadata when JSON/node omits fields (JSON wins when present). */
512
512
  documentMeta?: Document2MetaProp;
@@ -555,7 +555,15 @@ type ButexDocumentEditor2Ref = {
555
555
  };
556
556
 
557
557
  declare function resolveInitialDocument2(initialDocument: Document2Json | Document2Node | undefined, uiLocale?: ButexUiLocale, documentMeta?: Document2MetaProp): Document2InitialState;
558
- declare const ButexDocumentEditor2: react.ForwardRefExoticComponent<ButexDocumentEditor2Props & react.RefAttributes<ButexDocumentEditor2Ref>>;
558
+
559
+ type ButexDocumentEditor2Props = ButexDocumentEditor2Props$1 & {
560
+ /** Reports whether the current draft is safe for LaTeX compilation. */
561
+ onValidityChange?: (isValid: boolean) => void;
562
+ };
563
+ declare const ButexDocumentEditor2: react.ForwardRefExoticComponent<ButexDocumentEditor2Props$1 & {
564
+ /** Reports whether the current draft is safe for LaTeX compilation. */
565
+ onValidityChange?: (isValid: boolean) => void;
566
+ } & react.RefAttributes<ButexDocumentEditor2Ref>>;
559
567
 
560
568
  type DocumentInsertToolbarProps = {
561
569
  canUndo: boolean;