@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.
- package/README.md +2 -2
- package/dist/document2-cli.js.map +1 -1
- package/dist/document2.d.mts +33 -2
- package/dist/document2.d.ts +33 -2
- package/dist/document2.js +430 -44
- package/dist/document2.js.map +1 -1
- package/dist/document2.mjs +421 -39
- package/dist/document2.mjs.map +1 -1
- package/dist/react-document2.d.mts +10 -2
- package/dist/react-document2.d.ts +10 -2
- package/dist/react-document2.js +521 -49
- package/dist/react-document2.js.map +1 -1
- package/dist/react-document2.mjs +521 -49
- package/dist/react-document2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
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;
|