@oxide/react-asciidoc 1.0.4 → 1.0.5--canary.91bbec0.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/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import parse from 'html-react-parser';
|
|
2
|
-
import { Admonition, Audio, CoList, DList, Document, Example, FloatingTitle, Image, Listing, Literal, OList, Open, PageBreak, Paragraph, Pass, Preamble, Quote, Section, Sidebar, Table, TableOfContents, ThematicBreak, UList, Verse } from './templates';
|
|
2
|
+
import { Admonition, Audio, CoList, DList, Document, Example, FloatingTitle, Image, Listing, Literal, OList, Open, PageBreak, Paragraph, Pass, Preamble, Quote, Section, Sidebar, Table, TableOfContents, ThematicBreak, UList, Verse, Video } from './templates';
|
|
3
3
|
import { Title } from './templates/util';
|
|
4
4
|
import { prepareDocument, processDocument } from './utils/prepareDocument';
|
|
5
5
|
import type { AdmonitionBlock, AudioBlock, Block, CoListBlock, DListBlock, DocumentBlock, DocumentSection, ImageBlock, ListBlock, LiteralBlock, ParagraphBlock, SectionBlock, TableBlock } from './utils/prepareDocument';
|
|
@@ -27,6 +27,7 @@ type Overrides = {
|
|
|
27
27
|
thematic_break?: typeof ThematicBreak;
|
|
28
28
|
ulist?: typeof UList;
|
|
29
29
|
verse?: typeof Verse;
|
|
30
|
+
video?: typeof Video;
|
|
30
31
|
};
|
|
31
32
|
export type Options = {
|
|
32
33
|
overrides?: Overrides;
|
|
@@ -23,4 +23,5 @@ import TableOfContents from './TableOfContents';
|
|
|
23
23
|
import ThematicBreak from './ThematicBreak';
|
|
24
24
|
import UList from './UList';
|
|
25
25
|
import Verse from './Verse';
|
|
26
|
-
|
|
26
|
+
import Video from './Video';
|
|
27
|
+
export { Audio, Admonition, CoList, Document, DList, Example, Outline, FloatingTitle, Listing, Literal, Image, OList, Open, PageBreak, Pass, Paragraph, Preamble, Section, Sidebar, Table, ThematicBreak, UList, Quote, Verse, TableOfContents, Video, };
|
|
@@ -14,7 +14,7 @@ export type BaseBlock = {
|
|
|
14
14
|
title?: string | undefined;
|
|
15
15
|
level: number;
|
|
16
16
|
};
|
|
17
|
-
export type Block = BaseBlock | ParagraphBlock | AdmonitionBlock | CoListBlock | ImageBlock | LiteralBlock | SectionBlock | TableBlock;
|
|
17
|
+
export type Block = BaseBlock | ParagraphBlock | AdmonitionBlock | CoListBlock | ImageBlock | LiteralBlock | SectionBlock | TableBlock | AudioBlock | VideoBlock;
|
|
18
18
|
export type DocumentSection = {
|
|
19
19
|
id: string;
|
|
20
20
|
title: string;
|
|
@@ -54,6 +54,13 @@ export interface AudioBlock extends BaseBlock {
|
|
|
54
54
|
noControls: boolean;
|
|
55
55
|
loop: boolean;
|
|
56
56
|
}
|
|
57
|
+
export interface VideoBlock extends BaseBlock {
|
|
58
|
+
type: 'video';
|
|
59
|
+
mediaUri: string;
|
|
60
|
+
autoplay: boolean;
|
|
61
|
+
noControls: boolean;
|
|
62
|
+
loop: boolean;
|
|
63
|
+
}
|
|
57
64
|
export interface ImageBlock extends BaseBlock {
|
|
58
65
|
type: 'image';
|
|
59
66
|
imageUri: string;
|