@drghaliasri/butex 8.1.2 → 8.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/dist/book.d.mts CHANGED
@@ -276,6 +276,7 @@ type DocumentBookTarget = {
276
276
  kind: DocumentLabelKind | 'section' | 'subsection' | 'subsubsection' | 'chapter' | 'appendix';
277
277
  caption?: string;
278
278
  displayLabel?: string;
279
+ ordinal?: string;
279
280
  manualKey?: string;
280
281
  };
281
282
  type DocumentBookContext = {
@@ -359,4 +360,21 @@ declare function validateBookSnapshot(snapshot: unknown): {
359
360
  issues: BookIssue[];
360
361
  };
361
362
 
362
- export { type BookCommand, BookContractError, type BookEntry, type BookGeneratedEntry, type BookGeneratedType, type BookIssue, type BookManifestJson, type BookMetaJson, type BookOutlineEntry, type BookReferencesJson, type BookResolution, type BookSnapshotJson, type BookTarget, type BookUnitEntry, type BookUnitType, applyBookCommand, bookContextForUnit, bookOutline, getBookReferenceIndex, normalizeBookSnapshot, parseBookCommand, resolveBookSnapshot, validateBookSnapshot };
363
+ type BookLatexAsset = {
364
+ asset_id: string;
365
+ output_path: string;
366
+ };
367
+ type BookLatexBundle = {
368
+ main_file: 'main.tex';
369
+ files: Record<string, string>;
370
+ assets: BookLatexAsset[];
371
+ diagnostics: BookIssue[];
372
+ /** Stable source fingerprint; Al-Bayan computes SHA-256 for stored artifacts. */
373
+ fingerprint: string;
374
+ };
375
+ type BookLatexOptions = {
376
+ include_toc_if_missing?: boolean;
377
+ };
378
+ declare function book2Latex(raw: unknown, _options?: BookLatexOptions): BookLatexBundle;
379
+
380
+ export { type BookCommand, BookContractError, type BookEntry, type BookGeneratedEntry, type BookGeneratedType, type BookIssue, type BookLatexAsset, type BookLatexBundle, type BookLatexOptions, type BookManifestJson, type BookMetaJson, type BookOutlineEntry, type BookReferencesJson, type BookResolution, type BookSnapshotJson, type BookTarget, type BookUnitEntry, type BookUnitType, applyBookCommand, book2Latex, bookContextForUnit, bookOutline, getBookReferenceIndex, normalizeBookSnapshot, parseBookCommand, resolveBookSnapshot, validateBookSnapshot };
package/dist/book.d.ts CHANGED
@@ -276,6 +276,7 @@ type DocumentBookTarget = {
276
276
  kind: DocumentLabelKind | 'section' | 'subsection' | 'subsubsection' | 'chapter' | 'appendix';
277
277
  caption?: string;
278
278
  displayLabel?: string;
279
+ ordinal?: string;
279
280
  manualKey?: string;
280
281
  };
281
282
  type DocumentBookContext = {
@@ -359,4 +360,21 @@ declare function validateBookSnapshot(snapshot: unknown): {
359
360
  issues: BookIssue[];
360
361
  };
361
362
 
362
- export { type BookCommand, BookContractError, type BookEntry, type BookGeneratedEntry, type BookGeneratedType, type BookIssue, type BookManifestJson, type BookMetaJson, type BookOutlineEntry, type BookReferencesJson, type BookResolution, type BookSnapshotJson, type BookTarget, type BookUnitEntry, type BookUnitType, applyBookCommand, bookContextForUnit, bookOutline, getBookReferenceIndex, normalizeBookSnapshot, parseBookCommand, resolveBookSnapshot, validateBookSnapshot };
363
+ type BookLatexAsset = {
364
+ asset_id: string;
365
+ output_path: string;
366
+ };
367
+ type BookLatexBundle = {
368
+ main_file: 'main.tex';
369
+ files: Record<string, string>;
370
+ assets: BookLatexAsset[];
371
+ diagnostics: BookIssue[];
372
+ /** Stable source fingerprint; Al-Bayan computes SHA-256 for stored artifacts. */
373
+ fingerprint: string;
374
+ };
375
+ type BookLatexOptions = {
376
+ include_toc_if_missing?: boolean;
377
+ };
378
+ declare function book2Latex(raw: unknown, _options?: BookLatexOptions): BookLatexBundle;
379
+
380
+ export { type BookCommand, BookContractError, type BookEntry, type BookGeneratedEntry, type BookGeneratedType, type BookIssue, type BookLatexAsset, type BookLatexBundle, type BookLatexOptions, type BookManifestJson, type BookMetaJson, type BookOutlineEntry, type BookReferencesJson, type BookResolution, type BookSnapshotJson, type BookTarget, type BookUnitEntry, type BookUnitType, applyBookCommand, book2Latex, bookContextForUnit, bookOutline, getBookReferenceIndex, normalizeBookSnapshot, parseBookCommand, resolveBookSnapshot, validateBookSnapshot };