@oxide/react-asciidoc 0.0.1-alpha.2 → 0.0.1-alpha.3

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/index.d.ts CHANGED
@@ -1,9 +1,44 @@
1
- import type { AbstractBlock } from '@asciidoctor/core';
2
- export declare const ad: import("@asciidoctor/core").Asciidoctor;
3
- declare const Asciidoc: ({ content }: {
1
+ import type { AbstractBlock, Attributes } from '@asciidoctor/core';
2
+ import type * as AdocTypes from '@asciidoctor/core';
3
+ import useGetContent from './hooks/useGetContent';
4
+ import { Admonition, Audio, CoList, DList, Example, FloatingTitle, Image, Listing, Literal, OList, Open, PageBreak, Paragraph, Pass, Preamble, Quote, Section, Sidebar, Table, TableOfContents, ThematicBreak, UList, Verse } from './templates';
5
+ import { CaptionedTitle, Title, getRole } from './templates/util';
6
+ declare const ad: AdocTypes.Asciidoctor;
7
+ type Overrides = {
8
+ admonition?: typeof Admonition;
9
+ audio?: typeof Audio;
10
+ colist?: typeof CoList;
11
+ dlist?: typeof DList;
12
+ example?: typeof Example;
13
+ floating_title?: typeof FloatingTitle;
14
+ image?: typeof Image;
15
+ listing?: typeof Listing;
16
+ literal?: typeof Literal;
17
+ olist?: typeof OList;
18
+ open?: typeof Open;
19
+ page_break?: typeof PageBreak;
20
+ paragraph?: typeof Paragraph;
21
+ pass?: typeof Pass;
22
+ preamble?: typeof Preamble;
23
+ quote?: typeof Quote;
24
+ section?: typeof Section;
25
+ sidebar?: typeof Sidebar;
26
+ table?: typeof Table;
27
+ toc?: typeof TableOfContents;
28
+ thematic_break?: typeof ThematicBreak;
29
+ ulist?: typeof UList;
30
+ verse?: typeof Verse;
31
+ };
32
+ type Options = {
33
+ overrides?: Overrides;
34
+ attributes?: Attributes;
35
+ };
36
+ declare const Asciidoc: ({ content, options }: {
4
37
  content: string;
38
+ options?: Options | undefined;
5
39
  }) => JSX.Element;
6
- export declare const Content: ({ blocks }: {
40
+ declare const Content: ({ blocks }: {
7
41
  blocks: AbstractBlock[];
8
42
  }) => JSX.Element;
9
43
  export default Asciidoc;
44
+ export { Content, useGetContent, Title, getRole, CaptionedTitle, ad as asciidoctor, AdocTypes, };