@drghaliasri/butex 5.6.1 → 6.0.0
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 +49 -3
- package/dist/document2-cli.js +3346 -0
- package/dist/document2-cli.js.map +1 -0
- package/dist/document2.d.mts +55 -2
- package/dist/document2.d.ts +55 -2
- package/dist/document2.js +566 -190
- package/dist/document2.js.map +1 -1
- package/dist/document2.mjs +561 -190
- package/dist/document2.mjs.map +1 -1
- package/dist/react-document2.d.mts +32 -3
- package/dist/react-document2.d.ts +32 -3
- package/dist/react-document2.js +572 -199
- package/dist/react-document2.js.map +1 -1
- package/dist/react-document2.mjs +606 -233
- package/dist/react-document2.mjs.map +1 -1
- package/package.json +11 -1
package/dist/document2.d.mts
CHANGED
|
@@ -186,6 +186,8 @@ type Document2Json = {
|
|
|
186
186
|
blocks: Document2BlockJson[];
|
|
187
187
|
};
|
|
188
188
|
type Document2BlockJson = {
|
|
189
|
+
/** Stable identity used by headless commands. Legacy JSON may omit it. */
|
|
190
|
+
id?: string;
|
|
189
191
|
command: string;
|
|
190
192
|
value?: string;
|
|
191
193
|
formats?: TextFormatSpan2Json[];
|
|
@@ -597,6 +599,11 @@ type FormatHijriDateOptions = {
|
|
|
597
599
|
declare function formatHijriDate(date: Document2HijriDate, options?: FormatHijriDateOptions | ButexUiLocale): string;
|
|
598
600
|
declare function cloneDocument2Meta(meta: Document2Meta): Document2Meta;
|
|
599
601
|
|
|
602
|
+
type Document2ImageAssetRef = {
|
|
603
|
+
assetId: string;
|
|
604
|
+
value?: string;
|
|
605
|
+
};
|
|
606
|
+
type Document2ImageInput = string | Document2ImageAssetRef | undefined;
|
|
600
607
|
declare function findFirstInlineField(document: Document2Node): InlineField2 | null;
|
|
601
608
|
declare function updateTextToken(document: Document2Node, fieldId: string, tokenId: string, text: string): Document2Node;
|
|
602
609
|
declare function cloneDocument2Node(document: Document2Node): Document2Node;
|
|
@@ -614,8 +621,10 @@ declare function updateDocument2TextBlockCentered(document: Document2Node, block
|
|
|
614
621
|
declare function removeDocument2BlockById(document: Document2Node, blockId: string): Document2Node;
|
|
615
622
|
declare function addDocument2ListBlock(document: Document2Node, ordered: boolean, afterBlockId?: string | null): Document2Node;
|
|
616
623
|
declare function addDocument2TableBlock(document: Document2Node, columns?: string, rowCount?: number, colCount?: number, afterBlockId?: string | null): Document2Node;
|
|
617
|
-
declare function addDocument2ImageBlock(document: Document2Node,
|
|
624
|
+
declare function addDocument2ImageBlock(document: Document2Node, srcOrAsset?: Document2ImageInput, afterBlockId?: string | null): Document2Node;
|
|
618
625
|
declare function updateDocument2ImageValue(document: Document2Node, blockId: string, value: string): Document2Node;
|
|
626
|
+
declare function updateDocument2ImageAsset(document: Document2Node, blockId: string, asset: Document2ImageAssetRef): Document2Node;
|
|
627
|
+
declare function clearDocument2ImageAsset(document: Document2Node, blockId: string): Document2Node;
|
|
619
628
|
declare function updateDocument2ImageMeta(document: Document2Node, blockId: string, patch: FloatMetaPatch): Document2Node;
|
|
620
629
|
declare function updateDocument2TableMeta(document: Document2Node, blockId: string, patch: FloatMetaPatch): Document2Node;
|
|
621
630
|
declare function updateMathTokenLabel(document: Document2Node, tokenId: string, patch: {
|
|
@@ -638,6 +647,50 @@ declare function moveDocument2Reference(document: Document2Node, referenceId: st
|
|
|
638
647
|
declare function setDocument2References(document: Document2Node, references: Reference2[]): Document2Node;
|
|
639
648
|
declare function updateDocument2Meta(document: Document2Node, patch: Document2MetaProp): Document2Node;
|
|
640
649
|
|
|
650
|
+
type Document2TextBlockKind = 'section' | 'subsection' | 'subsubsection' | 'paragraph';
|
|
651
|
+
type Document2Anchor = {
|
|
652
|
+
after_block_id: string;
|
|
653
|
+
} | {
|
|
654
|
+
end: true;
|
|
655
|
+
};
|
|
656
|
+
type Document2Command = {
|
|
657
|
+
op: 'insert_text_block';
|
|
658
|
+
kind: Document2TextBlockKind;
|
|
659
|
+
text: string;
|
|
660
|
+
anchor: Document2Anchor;
|
|
661
|
+
} | {
|
|
662
|
+
op: 'replace_text_block';
|
|
663
|
+
block_id: string;
|
|
664
|
+
text: string;
|
|
665
|
+
} | {
|
|
666
|
+
op: 'remove_block';
|
|
667
|
+
block_id: string;
|
|
668
|
+
} | {
|
|
669
|
+
op: 'insert_figure';
|
|
670
|
+
asset_id: string;
|
|
671
|
+
value?: string;
|
|
672
|
+
caption?: string;
|
|
673
|
+
label?: string;
|
|
674
|
+
anchor: Document2Anchor;
|
|
675
|
+
};
|
|
676
|
+
type Document2CommandErrorCode = 'invalid_document' | 'invalid_command' | 'missing_block_id' | 'duplicate_block_id' | 'anchor_not_found' | 'block_not_found' | 'block_kind_mismatch' | 'unsupported_inline_content';
|
|
677
|
+
declare class Document2CommandError extends Error {
|
|
678
|
+
readonly code: Document2CommandErrorCode;
|
|
679
|
+
constructor(code: Document2CommandErrorCode, message: string);
|
|
680
|
+
}
|
|
681
|
+
/** Apply one validated, top-level command and return canonical JSON. */
|
|
682
|
+
declare function applyDocument2Command(json: Document2Json, commandInput: Document2Command): Document2Json;
|
|
683
|
+
|
|
684
|
+
type Document2OutlineKind = 'section' | 'subsection' | 'subsubsection' | 'paragraph' | 'list' | 'table' | 'figure' | 'bibliography' | 'raw';
|
|
685
|
+
type Document2OutlineEntry = {
|
|
686
|
+
id: string;
|
|
687
|
+
kind: Document2OutlineKind;
|
|
688
|
+
command: string;
|
|
689
|
+
excerpt: string;
|
|
690
|
+
};
|
|
691
|
+
/** Return a compact top-level outline for a canonical document. */
|
|
692
|
+
declare function document2Outline(json: Document2Json): Document2OutlineEntry[];
|
|
693
|
+
|
|
641
694
|
type Document2KeyError = 'empty' | 'invalid' | 'duplicate';
|
|
642
695
|
/** NFC-normalize and trim a document key (label or bibliography). */
|
|
643
696
|
declare function normalizeDocument2Key(key: string): string;
|
|
@@ -771,4 +824,4 @@ type Document2PreviewOptions = {
|
|
|
771
824
|
};
|
|
772
825
|
declare function document2Preview(document: Document2Node, output?: Document2MathOutput, equationSide?: EditorSide, previewOptions?: Document2PreviewOptions): Document2Preview;
|
|
773
826
|
|
|
774
|
-
export { type ArabicDigitsMapping, type ArabicXeLatexPreambleOptions, BUTEX_BASMALA, BUTEX_BASMALA_LINE1, BUTEX_BASMALA_LINE2, BUTEX_BASMALA_SALAWAT, BUTEX_CLOSING_HAMDALA, type BibliographyBlock2, type BlockSelectionRange, type BlockSelectionState, type CiteToken2, DEFAULT_DOCUMENT2_HISTORY_MAX_DEPTH, DEFAULT_HIJRI_DATE, DEFAULT_REFERENCE_FIELD_SEPARATOR, type Document2Block, type Document2BlockJson, type Document2Diagnostic, type Document2Direction, type Document2HijriDate, type Document2HistoryStacks, type Document2Json, type Document2KeyError, type Document2KeyNamespace, type Document2LabelEntry, type Document2LabelKind, type Document2LatexOptions, type Document2MathObjectJson, type Document2MathOutput, type Document2Meta, type Document2MetaProp, type Document2Node, type Document2Preview, type Document2PreviewOptions, type FloatMeta2, type FloatMetaPatch, type FormatCiteLabelOptions, type FormatFloatCaptionTitleOptions, HIJRI_MONTH_IDS, HIJRI_YEAR_MAX, HIJRI_YEAR_MIN, type HijriMonthId, type ImageBlock2, type ImportDocument2Options, type InlineField2, type InlineToken2, type ListBlock2, type MathIsland2, type MathObject2Json, type MathToken2, type PreviewBlock2, type PreviewInline2, type RawBlock2, type RawMathObject2Json, type RefToken2, type Reference2, type Reference2Json, type ReferenceFieldSeparator, type TableBlock2, type TextBlock2, type TextFormatSpan2Json, type TextStyle2, type TextToken2, absoluteHttpHref, addDocument2ImageBlock, addDocument2ListBlock, addDocument2ListItem, addDocument2Reference, addDocument2TableBlock, addDocument2TextBlock, applyFloatMetaPatch, arabicXeLatexPreambleCmd, arabicXeLatexPreambleFont, arabicXeLatexPreamblePkg, bibliographyEntryBody, bibliographyEntryLatex, butexBasmalaDisplayLatex, butexBasmalaDisplayTex, butexBasmalaTitlingPreamble, butexDiwaniDisplayLatex, butexDiwaniDisplayTex, butexInColumnMaketitleHook, butexMaghribiDisplayLatex, butexMaghribiDisplayTex, citeTokenLatex, cloneDocument2Meta, cloneDocument2Node, collectDocument2Labels, createDocument2History, createEmptyArabicEquationSession, createEmptyDocument2, createEmptyEquationSession, createEmptyReference2, createInlineField2, defaultFloatMeta, detectInlineSpans2, detectMathSpans2, document2HasAbstract, document2HasMaketitle, document2HasTitleStack, document2HistoryCanRedo, document2HistoryCanUndo, document2KeyError, document2Latex, document2Preview, emptyBlockSelection, emptyDocument2Meta, ensureDocument2BibliographyBlock, extendBlockSelectionFromAnchor, fillDocument2MetaGaps, findFirstInlineField, formatBibliographyNumber, formatCiteLabel, formatFloatCaptionPreview, formatFloatCaptionTitle, formatHijriDate, formatRefLabel, fromDocumentJson2, getArabicXeLatexPreamble, hijriMonthLabel, inlineFieldLatex, insertCiteTokenAtCaret, insertDocument2BlockAfter, insertMathToken, insertMathTokenAtCaret, insertRefTokenAtCaret, isDuplicateDocument2Key, isValidDocument2Key, labelNumberMap, mathNodeFromArabicSession, mathNodeFromSession, mathSourceFromArabicSession, mathSourceFromSession, mathTokenSourceForSide, mathTokenToArabicEditorSession, mathTokenToEditorSession, mergeDocument2Meta, moveDocument2BlockById, moveDocument2BlockRange, moveDocument2Reference, normalizeBlockSelection, normalizeDocument2HijriDate, normalizeDocument2Key, normalizeDocument2Meta, normalizeReferenceFieldSeparator, parseCiteKeys, parseFloatMetaFromJson, parseRefKeys, pushDocument2Snapshot, refTokenLatex, referenceFromJson, referenceNumberMap, remapSelectionAfterRangeMove, removeCiteTokenById, removeDocument2BlockById, removeDocument2BlockRange, removeDocument2ListItem, removeDocument2Reference, removeMathTokenById, removeRefTokenById, replaceMathTokenFromSession, resolveCiteNumbers, restoreDocument2Redo, restoreDocument2Undo, setDocument2References, stripDisplayMathDelimiters, toDocumentJson2, toggleBlockInSelection, toggleTextTokenStyle, updateCiteTokenKeys, updateDocument2ImageMeta, updateDocument2ImageValue, updateDocument2Meta, updateDocument2Reference, updateDocument2TableMeta, updateDocument2TextBlockCentered, updateMathTokenLabel, updateRefTokenKeys, updateTextToken };
|
|
827
|
+
export { type ArabicDigitsMapping, type ArabicXeLatexPreambleOptions, BUTEX_BASMALA, BUTEX_BASMALA_LINE1, BUTEX_BASMALA_LINE2, BUTEX_BASMALA_SALAWAT, BUTEX_CLOSING_HAMDALA, type BibliographyBlock2, type BlockSelectionRange, type BlockSelectionState, type CiteToken2, DEFAULT_DOCUMENT2_HISTORY_MAX_DEPTH, DEFAULT_HIJRI_DATE, DEFAULT_REFERENCE_FIELD_SEPARATOR, type Document2Anchor, type Document2Block, type Document2BlockJson, type Document2Command, Document2CommandError, type Document2CommandErrorCode, type Document2Diagnostic, type Document2Direction, type Document2HijriDate, type Document2HistoryStacks, type Document2ImageAssetRef, type Document2Json, type Document2KeyError, type Document2KeyNamespace, type Document2LabelEntry, type Document2LabelKind, type Document2LatexOptions, type Document2MathObjectJson, type Document2MathOutput, type Document2Meta, type Document2MetaProp, type Document2Node, type Document2OutlineEntry, type Document2OutlineKind, type Document2Preview, type Document2PreviewOptions, type Document2TextBlockKind, type FloatMeta2, type FloatMetaPatch, type FormatCiteLabelOptions, type FormatFloatCaptionTitleOptions, HIJRI_MONTH_IDS, HIJRI_YEAR_MAX, HIJRI_YEAR_MIN, type HijriMonthId, type ImageBlock2, type ImportDocument2Options, type InlineField2, type InlineToken2, type ListBlock2, type MathIsland2, type MathObject2Json, type MathToken2, type PreviewBlock2, type PreviewInline2, type RawBlock2, type RawMathObject2Json, type RefToken2, type Reference2, type Reference2Json, type ReferenceFieldSeparator, type TableBlock2, type TextBlock2, type TextFormatSpan2Json, type TextStyle2, type TextToken2, absoluteHttpHref, addDocument2ImageBlock, addDocument2ListBlock, addDocument2ListItem, addDocument2Reference, addDocument2TableBlock, addDocument2TextBlock, applyDocument2Command, applyFloatMetaPatch, arabicXeLatexPreambleCmd, arabicXeLatexPreambleFont, arabicXeLatexPreamblePkg, bibliographyEntryBody, bibliographyEntryLatex, butexBasmalaDisplayLatex, butexBasmalaDisplayTex, butexBasmalaTitlingPreamble, butexDiwaniDisplayLatex, butexDiwaniDisplayTex, butexInColumnMaketitleHook, butexMaghribiDisplayLatex, butexMaghribiDisplayTex, citeTokenLatex, clearDocument2ImageAsset, cloneDocument2Meta, cloneDocument2Node, collectDocument2Labels, createDocument2History, createEmptyArabicEquationSession, createEmptyDocument2, createEmptyEquationSession, createEmptyReference2, createInlineField2, defaultFloatMeta, detectInlineSpans2, detectMathSpans2, document2HasAbstract, document2HasMaketitle, document2HasTitleStack, document2HistoryCanRedo, document2HistoryCanUndo, document2KeyError, document2Latex, document2Outline, document2Preview, emptyBlockSelection, emptyDocument2Meta, ensureDocument2BibliographyBlock, extendBlockSelectionFromAnchor, fillDocument2MetaGaps, findFirstInlineField, formatBibliographyNumber, formatCiteLabel, formatFloatCaptionPreview, formatFloatCaptionTitle, formatHijriDate, formatRefLabel, fromDocumentJson2, getArabicXeLatexPreamble, hijriMonthLabel, inlineFieldLatex, insertCiteTokenAtCaret, insertDocument2BlockAfter, insertMathToken, insertMathTokenAtCaret, insertRefTokenAtCaret, isDuplicateDocument2Key, isValidDocument2Key, labelNumberMap, mathNodeFromArabicSession, mathNodeFromSession, mathSourceFromArabicSession, mathSourceFromSession, mathTokenSourceForSide, mathTokenToArabicEditorSession, mathTokenToEditorSession, mergeDocument2Meta, moveDocument2BlockById, moveDocument2BlockRange, moveDocument2Reference, normalizeBlockSelection, normalizeDocument2HijriDate, normalizeDocument2Key, normalizeDocument2Meta, normalizeReferenceFieldSeparator, parseCiteKeys, parseFloatMetaFromJson, parseRefKeys, pushDocument2Snapshot, refTokenLatex, referenceFromJson, referenceNumberMap, remapSelectionAfterRangeMove, removeCiteTokenById, removeDocument2BlockById, removeDocument2BlockRange, removeDocument2ListItem, removeDocument2Reference, removeMathTokenById, removeRefTokenById, replaceMathTokenFromSession, resolveCiteNumbers, restoreDocument2Redo, restoreDocument2Undo, setDocument2References, stripDisplayMathDelimiters, toDocumentJson2, toggleBlockInSelection, toggleTextTokenStyle, updateCiteTokenKeys, updateDocument2ImageAsset, updateDocument2ImageMeta, updateDocument2ImageValue, updateDocument2Meta, updateDocument2Reference, updateDocument2TableMeta, updateDocument2TextBlockCentered, updateMathTokenLabel, updateRefTokenKeys, updateTextToken };
|
package/dist/document2.d.ts
CHANGED
|
@@ -186,6 +186,8 @@ type Document2Json = {
|
|
|
186
186
|
blocks: Document2BlockJson[];
|
|
187
187
|
};
|
|
188
188
|
type Document2BlockJson = {
|
|
189
|
+
/** Stable identity used by headless commands. Legacy JSON may omit it. */
|
|
190
|
+
id?: string;
|
|
189
191
|
command: string;
|
|
190
192
|
value?: string;
|
|
191
193
|
formats?: TextFormatSpan2Json[];
|
|
@@ -597,6 +599,11 @@ type FormatHijriDateOptions = {
|
|
|
597
599
|
declare function formatHijriDate(date: Document2HijriDate, options?: FormatHijriDateOptions | ButexUiLocale): string;
|
|
598
600
|
declare function cloneDocument2Meta(meta: Document2Meta): Document2Meta;
|
|
599
601
|
|
|
602
|
+
type Document2ImageAssetRef = {
|
|
603
|
+
assetId: string;
|
|
604
|
+
value?: string;
|
|
605
|
+
};
|
|
606
|
+
type Document2ImageInput = string | Document2ImageAssetRef | undefined;
|
|
600
607
|
declare function findFirstInlineField(document: Document2Node): InlineField2 | null;
|
|
601
608
|
declare function updateTextToken(document: Document2Node, fieldId: string, tokenId: string, text: string): Document2Node;
|
|
602
609
|
declare function cloneDocument2Node(document: Document2Node): Document2Node;
|
|
@@ -614,8 +621,10 @@ declare function updateDocument2TextBlockCentered(document: Document2Node, block
|
|
|
614
621
|
declare function removeDocument2BlockById(document: Document2Node, blockId: string): Document2Node;
|
|
615
622
|
declare function addDocument2ListBlock(document: Document2Node, ordered: boolean, afterBlockId?: string | null): Document2Node;
|
|
616
623
|
declare function addDocument2TableBlock(document: Document2Node, columns?: string, rowCount?: number, colCount?: number, afterBlockId?: string | null): Document2Node;
|
|
617
|
-
declare function addDocument2ImageBlock(document: Document2Node,
|
|
624
|
+
declare function addDocument2ImageBlock(document: Document2Node, srcOrAsset?: Document2ImageInput, afterBlockId?: string | null): Document2Node;
|
|
618
625
|
declare function updateDocument2ImageValue(document: Document2Node, blockId: string, value: string): Document2Node;
|
|
626
|
+
declare function updateDocument2ImageAsset(document: Document2Node, blockId: string, asset: Document2ImageAssetRef): Document2Node;
|
|
627
|
+
declare function clearDocument2ImageAsset(document: Document2Node, blockId: string): Document2Node;
|
|
619
628
|
declare function updateDocument2ImageMeta(document: Document2Node, blockId: string, patch: FloatMetaPatch): Document2Node;
|
|
620
629
|
declare function updateDocument2TableMeta(document: Document2Node, blockId: string, patch: FloatMetaPatch): Document2Node;
|
|
621
630
|
declare function updateMathTokenLabel(document: Document2Node, tokenId: string, patch: {
|
|
@@ -638,6 +647,50 @@ declare function moveDocument2Reference(document: Document2Node, referenceId: st
|
|
|
638
647
|
declare function setDocument2References(document: Document2Node, references: Reference2[]): Document2Node;
|
|
639
648
|
declare function updateDocument2Meta(document: Document2Node, patch: Document2MetaProp): Document2Node;
|
|
640
649
|
|
|
650
|
+
type Document2TextBlockKind = 'section' | 'subsection' | 'subsubsection' | 'paragraph';
|
|
651
|
+
type Document2Anchor = {
|
|
652
|
+
after_block_id: string;
|
|
653
|
+
} | {
|
|
654
|
+
end: true;
|
|
655
|
+
};
|
|
656
|
+
type Document2Command = {
|
|
657
|
+
op: 'insert_text_block';
|
|
658
|
+
kind: Document2TextBlockKind;
|
|
659
|
+
text: string;
|
|
660
|
+
anchor: Document2Anchor;
|
|
661
|
+
} | {
|
|
662
|
+
op: 'replace_text_block';
|
|
663
|
+
block_id: string;
|
|
664
|
+
text: string;
|
|
665
|
+
} | {
|
|
666
|
+
op: 'remove_block';
|
|
667
|
+
block_id: string;
|
|
668
|
+
} | {
|
|
669
|
+
op: 'insert_figure';
|
|
670
|
+
asset_id: string;
|
|
671
|
+
value?: string;
|
|
672
|
+
caption?: string;
|
|
673
|
+
label?: string;
|
|
674
|
+
anchor: Document2Anchor;
|
|
675
|
+
};
|
|
676
|
+
type Document2CommandErrorCode = 'invalid_document' | 'invalid_command' | 'missing_block_id' | 'duplicate_block_id' | 'anchor_not_found' | 'block_not_found' | 'block_kind_mismatch' | 'unsupported_inline_content';
|
|
677
|
+
declare class Document2CommandError extends Error {
|
|
678
|
+
readonly code: Document2CommandErrorCode;
|
|
679
|
+
constructor(code: Document2CommandErrorCode, message: string);
|
|
680
|
+
}
|
|
681
|
+
/** Apply one validated, top-level command and return canonical JSON. */
|
|
682
|
+
declare function applyDocument2Command(json: Document2Json, commandInput: Document2Command): Document2Json;
|
|
683
|
+
|
|
684
|
+
type Document2OutlineKind = 'section' | 'subsection' | 'subsubsection' | 'paragraph' | 'list' | 'table' | 'figure' | 'bibliography' | 'raw';
|
|
685
|
+
type Document2OutlineEntry = {
|
|
686
|
+
id: string;
|
|
687
|
+
kind: Document2OutlineKind;
|
|
688
|
+
command: string;
|
|
689
|
+
excerpt: string;
|
|
690
|
+
};
|
|
691
|
+
/** Return a compact top-level outline for a canonical document. */
|
|
692
|
+
declare function document2Outline(json: Document2Json): Document2OutlineEntry[];
|
|
693
|
+
|
|
641
694
|
type Document2KeyError = 'empty' | 'invalid' | 'duplicate';
|
|
642
695
|
/** NFC-normalize and trim a document key (label or bibliography). */
|
|
643
696
|
declare function normalizeDocument2Key(key: string): string;
|
|
@@ -771,4 +824,4 @@ type Document2PreviewOptions = {
|
|
|
771
824
|
};
|
|
772
825
|
declare function document2Preview(document: Document2Node, output?: Document2MathOutput, equationSide?: EditorSide, previewOptions?: Document2PreviewOptions): Document2Preview;
|
|
773
826
|
|
|
774
|
-
export { type ArabicDigitsMapping, type ArabicXeLatexPreambleOptions, BUTEX_BASMALA, BUTEX_BASMALA_LINE1, BUTEX_BASMALA_LINE2, BUTEX_BASMALA_SALAWAT, BUTEX_CLOSING_HAMDALA, type BibliographyBlock2, type BlockSelectionRange, type BlockSelectionState, type CiteToken2, DEFAULT_DOCUMENT2_HISTORY_MAX_DEPTH, DEFAULT_HIJRI_DATE, DEFAULT_REFERENCE_FIELD_SEPARATOR, type Document2Block, type Document2BlockJson, type Document2Diagnostic, type Document2Direction, type Document2HijriDate, type Document2HistoryStacks, type Document2Json, type Document2KeyError, type Document2KeyNamespace, type Document2LabelEntry, type Document2LabelKind, type Document2LatexOptions, type Document2MathObjectJson, type Document2MathOutput, type Document2Meta, type Document2MetaProp, type Document2Node, type Document2Preview, type Document2PreviewOptions, type FloatMeta2, type FloatMetaPatch, type FormatCiteLabelOptions, type FormatFloatCaptionTitleOptions, HIJRI_MONTH_IDS, HIJRI_YEAR_MAX, HIJRI_YEAR_MIN, type HijriMonthId, type ImageBlock2, type ImportDocument2Options, type InlineField2, type InlineToken2, type ListBlock2, type MathIsland2, type MathObject2Json, type MathToken2, type PreviewBlock2, type PreviewInline2, type RawBlock2, type RawMathObject2Json, type RefToken2, type Reference2, type Reference2Json, type ReferenceFieldSeparator, type TableBlock2, type TextBlock2, type TextFormatSpan2Json, type TextStyle2, type TextToken2, absoluteHttpHref, addDocument2ImageBlock, addDocument2ListBlock, addDocument2ListItem, addDocument2Reference, addDocument2TableBlock, addDocument2TextBlock, applyFloatMetaPatch, arabicXeLatexPreambleCmd, arabicXeLatexPreambleFont, arabicXeLatexPreamblePkg, bibliographyEntryBody, bibliographyEntryLatex, butexBasmalaDisplayLatex, butexBasmalaDisplayTex, butexBasmalaTitlingPreamble, butexDiwaniDisplayLatex, butexDiwaniDisplayTex, butexInColumnMaketitleHook, butexMaghribiDisplayLatex, butexMaghribiDisplayTex, citeTokenLatex, cloneDocument2Meta, cloneDocument2Node, collectDocument2Labels, createDocument2History, createEmptyArabicEquationSession, createEmptyDocument2, createEmptyEquationSession, createEmptyReference2, createInlineField2, defaultFloatMeta, detectInlineSpans2, detectMathSpans2, document2HasAbstract, document2HasMaketitle, document2HasTitleStack, document2HistoryCanRedo, document2HistoryCanUndo, document2KeyError, document2Latex, document2Preview, emptyBlockSelection, emptyDocument2Meta, ensureDocument2BibliographyBlock, extendBlockSelectionFromAnchor, fillDocument2MetaGaps, findFirstInlineField, formatBibliographyNumber, formatCiteLabel, formatFloatCaptionPreview, formatFloatCaptionTitle, formatHijriDate, formatRefLabel, fromDocumentJson2, getArabicXeLatexPreamble, hijriMonthLabel, inlineFieldLatex, insertCiteTokenAtCaret, insertDocument2BlockAfter, insertMathToken, insertMathTokenAtCaret, insertRefTokenAtCaret, isDuplicateDocument2Key, isValidDocument2Key, labelNumberMap, mathNodeFromArabicSession, mathNodeFromSession, mathSourceFromArabicSession, mathSourceFromSession, mathTokenSourceForSide, mathTokenToArabicEditorSession, mathTokenToEditorSession, mergeDocument2Meta, moveDocument2BlockById, moveDocument2BlockRange, moveDocument2Reference, normalizeBlockSelection, normalizeDocument2HijriDate, normalizeDocument2Key, normalizeDocument2Meta, normalizeReferenceFieldSeparator, parseCiteKeys, parseFloatMetaFromJson, parseRefKeys, pushDocument2Snapshot, refTokenLatex, referenceFromJson, referenceNumberMap, remapSelectionAfterRangeMove, removeCiteTokenById, removeDocument2BlockById, removeDocument2BlockRange, removeDocument2ListItem, removeDocument2Reference, removeMathTokenById, removeRefTokenById, replaceMathTokenFromSession, resolveCiteNumbers, restoreDocument2Redo, restoreDocument2Undo, setDocument2References, stripDisplayMathDelimiters, toDocumentJson2, toggleBlockInSelection, toggleTextTokenStyle, updateCiteTokenKeys, updateDocument2ImageMeta, updateDocument2ImageValue, updateDocument2Meta, updateDocument2Reference, updateDocument2TableMeta, updateDocument2TextBlockCentered, updateMathTokenLabel, updateRefTokenKeys, updateTextToken };
|
|
827
|
+
export { type ArabicDigitsMapping, type ArabicXeLatexPreambleOptions, BUTEX_BASMALA, BUTEX_BASMALA_LINE1, BUTEX_BASMALA_LINE2, BUTEX_BASMALA_SALAWAT, BUTEX_CLOSING_HAMDALA, type BibliographyBlock2, type BlockSelectionRange, type BlockSelectionState, type CiteToken2, DEFAULT_DOCUMENT2_HISTORY_MAX_DEPTH, DEFAULT_HIJRI_DATE, DEFAULT_REFERENCE_FIELD_SEPARATOR, type Document2Anchor, type Document2Block, type Document2BlockJson, type Document2Command, Document2CommandError, type Document2CommandErrorCode, type Document2Diagnostic, type Document2Direction, type Document2HijriDate, type Document2HistoryStacks, type Document2ImageAssetRef, type Document2Json, type Document2KeyError, type Document2KeyNamespace, type Document2LabelEntry, type Document2LabelKind, type Document2LatexOptions, type Document2MathObjectJson, type Document2MathOutput, type Document2Meta, type Document2MetaProp, type Document2Node, type Document2OutlineEntry, type Document2OutlineKind, type Document2Preview, type Document2PreviewOptions, type Document2TextBlockKind, type FloatMeta2, type FloatMetaPatch, type FormatCiteLabelOptions, type FormatFloatCaptionTitleOptions, HIJRI_MONTH_IDS, HIJRI_YEAR_MAX, HIJRI_YEAR_MIN, type HijriMonthId, type ImageBlock2, type ImportDocument2Options, type InlineField2, type InlineToken2, type ListBlock2, type MathIsland2, type MathObject2Json, type MathToken2, type PreviewBlock2, type PreviewInline2, type RawBlock2, type RawMathObject2Json, type RefToken2, type Reference2, type Reference2Json, type ReferenceFieldSeparator, type TableBlock2, type TextBlock2, type TextFormatSpan2Json, type TextStyle2, type TextToken2, absoluteHttpHref, addDocument2ImageBlock, addDocument2ListBlock, addDocument2ListItem, addDocument2Reference, addDocument2TableBlock, addDocument2TextBlock, applyDocument2Command, applyFloatMetaPatch, arabicXeLatexPreambleCmd, arabicXeLatexPreambleFont, arabicXeLatexPreamblePkg, bibliographyEntryBody, bibliographyEntryLatex, butexBasmalaDisplayLatex, butexBasmalaDisplayTex, butexBasmalaTitlingPreamble, butexDiwaniDisplayLatex, butexDiwaniDisplayTex, butexInColumnMaketitleHook, butexMaghribiDisplayLatex, butexMaghribiDisplayTex, citeTokenLatex, clearDocument2ImageAsset, cloneDocument2Meta, cloneDocument2Node, collectDocument2Labels, createDocument2History, createEmptyArabicEquationSession, createEmptyDocument2, createEmptyEquationSession, createEmptyReference2, createInlineField2, defaultFloatMeta, detectInlineSpans2, detectMathSpans2, document2HasAbstract, document2HasMaketitle, document2HasTitleStack, document2HistoryCanRedo, document2HistoryCanUndo, document2KeyError, document2Latex, document2Outline, document2Preview, emptyBlockSelection, emptyDocument2Meta, ensureDocument2BibliographyBlock, extendBlockSelectionFromAnchor, fillDocument2MetaGaps, findFirstInlineField, formatBibliographyNumber, formatCiteLabel, formatFloatCaptionPreview, formatFloatCaptionTitle, formatHijriDate, formatRefLabel, fromDocumentJson2, getArabicXeLatexPreamble, hijriMonthLabel, inlineFieldLatex, insertCiteTokenAtCaret, insertDocument2BlockAfter, insertMathToken, insertMathTokenAtCaret, insertRefTokenAtCaret, isDuplicateDocument2Key, isValidDocument2Key, labelNumberMap, mathNodeFromArabicSession, mathNodeFromSession, mathSourceFromArabicSession, mathSourceFromSession, mathTokenSourceForSide, mathTokenToArabicEditorSession, mathTokenToEditorSession, mergeDocument2Meta, moveDocument2BlockById, moveDocument2BlockRange, moveDocument2Reference, normalizeBlockSelection, normalizeDocument2HijriDate, normalizeDocument2Key, normalizeDocument2Meta, normalizeReferenceFieldSeparator, parseCiteKeys, parseFloatMetaFromJson, parseRefKeys, pushDocument2Snapshot, refTokenLatex, referenceFromJson, referenceNumberMap, remapSelectionAfterRangeMove, removeCiteTokenById, removeDocument2BlockById, removeDocument2BlockRange, removeDocument2ListItem, removeDocument2Reference, removeMathTokenById, removeRefTokenById, replaceMathTokenFromSession, resolveCiteNumbers, restoreDocument2Redo, restoreDocument2Undo, setDocument2References, stripDisplayMathDelimiters, toDocumentJson2, toggleBlockInSelection, toggleTextTokenStyle, updateCiteTokenKeys, updateDocument2ImageAsset, updateDocument2ImageMeta, updateDocument2ImageValue, updateDocument2Meta, updateDocument2Reference, updateDocument2TableMeta, updateDocument2TextBlockCentered, updateMathTokenLabel, updateRefTokenKeys, updateTextToken };
|