@oxide/react-asciidoc 1.0.0 → 1.0.1

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import parse from 'html-react-parser';
3
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';
4
3
  import { Title } from './templates/util';
@@ -35,20 +34,20 @@ export type Options = {
35
34
  };
36
35
  export declare const Context: import("react").Context<Options & {
37
36
  document: {
38
- attributes?: DocumentBlock['attributes'];
37
+ attributes?: DocumentBlock["attributes"];
39
38
  sections?: DocumentSection[];
40
39
  };
41
40
  }>;
42
41
  declare const Asciidoc: ({ document, options, }: {
43
42
  document: DocumentBlock;
44
- options?: Options | undefined;
45
- }) => JSX.Element;
43
+ options?: Options;
44
+ }) => import("react/jsx-runtime").JSX.Element;
46
45
  declare const Content: ({ blocks }: {
47
46
  blocks: Block[];
48
- }) => JSX.Element;
47
+ }) => import("react/jsx-runtime").JSX.Element;
49
48
  export declare const useConverterContext: () => Options & {
50
49
  document: {
51
- attributes?: DocumentBlock['attributes'];
50
+ attributes?: DocumentBlock["attributes"];
52
51
  sections?: DocumentSection[];
53
52
  };
54
53
  };
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { AdmonitionBlock } from '../utils/prepareDocument';
3
2
  declare const Admonition: ({ node }: {
4
3
  node: AdmonitionBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Admonition;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type AudioBlock } from '../utils/prepareDocument';
3
2
  declare const Audio: ({ node }: {
4
3
  node: AudioBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Audio;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import type { CoListBlock } from '../utils/prepareDocument';
3
2
  declare const CoList: ({ node }: {
4
3
  node: CoListBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default CoList;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type DListBlock } from '../utils/prepareDocument';
3
2
  declare const DList: ({ node }: {
4
3
  node: DListBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default DList;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type DocumentBlock } from '../utils/prepareDocument';
3
2
  declare const Document: ({ document }: {
4
3
  document: DocumentBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Document;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type Block } from '../utils/prepareDocument';
3
2
  declare const Example: ({ node }: {
4
3
  node: Block;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Example;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type BaseBlock } from '../utils/prepareDocument';
3
2
  declare const FloatingTitle: ({ node }: {
4
3
  node: BaseBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default FloatingTitle;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type ImageBlock } from '../utils/prepareDocument';
3
2
  declare const Image: ({ node }: {
4
3
  node: ImageBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Image;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type LiteralBlock } from '../utils/prepareDocument';
3
2
  declare const Listing: ({ node }: {
4
3
  node: LiteralBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Listing;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type LiteralBlock } from '../utils/prepareDocument';
3
2
  declare const Literal: ({ node }: {
4
3
  node: LiteralBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Literal;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type ListBlock } from '../utils/prepareDocument';
3
2
  declare const OList: ({ node }: {
4
3
  node: ListBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default OList;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type BaseBlock } from '../utils/prepareDocument';
3
2
  declare const Open: ({ node }: {
4
3
  node: BaseBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Open;
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { type DocumentSection } from '../utils/prepareDocument';
3
2
  declare const Outline: ({ sections, opts, }: {
4
3
  sections: DocumentSection[];
5
4
  opts?: {
6
- tocLevels?: number | undefined;
7
- sectNumLevels?: number | undefined;
8
- } | undefined;
9
- }) => JSX.Element | null;
5
+ tocLevels?: number;
6
+ sectNumLevels?: number;
7
+ };
8
+ }) => import("react/jsx-runtime").JSX.Element | null;
10
9
  export default Outline;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const PageBreak: () => JSX.Element;
1
+ declare const PageBreak: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default PageBreak;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type ParagraphBlock } from '../utils/prepareDocument';
3
2
  declare const Paragraph: ({ node }: {
4
3
  node: ParagraphBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Paragraph;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type Block } from '../utils/prepareDocument';
3
2
  declare const Pass: ({ node }: {
4
3
  node: Block;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Pass;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type BaseBlock } from '../utils/prepareDocument';
3
2
  declare const Preamble: ({ node }: {
4
3
  node: BaseBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Preamble;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type Block } from '../utils/prepareDocument';
3
2
  declare const Quote: ({ node }: {
4
3
  node: Block;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Quote;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type SectionBlock } from '../utils/prepareDocument';
3
2
  declare const Section: ({ node }: {
4
3
  node: SectionBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Section;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type Block } from '../utils/prepareDocument';
3
2
  declare const Sidebar: ({ node }: {
4
3
  node: Block;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Sidebar;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type TableBlock } from '../utils/prepareDocument';
3
2
  declare const Table: ({ node }: {
4
3
  node: TableBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Table;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { Block } from '../utils/prepareDocument';
3
2
  declare const TableOfContents: ({ node }: {
4
3
  node: Block;
5
- }) => JSX.Element | null;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
6
5
  export default TableOfContents;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const ThematicBreak: () => JSX.Element;
1
+ declare const ThematicBreak: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default ThematicBreak;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type ListBlock } from '../utils/prepareDocument';
3
2
  declare const UList: ({ node }: {
4
3
  node: ListBlock;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default UList;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type Block } from '../utils/prepareDocument';
3
2
  declare const Verse: ({ node }: {
4
3
  node: Block;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Verse;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Title: ({ text }: {
3
2
  text: string | undefined;
4
- }) => JSX.Element | null;
3
+ }) => import("react/jsx-runtime").JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxide/react-asciidoc",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -36,27 +36,26 @@
36
36
  "classnames": "^2.3.2",
37
37
  "highlight.js": "^11.6.0",
38
38
  "html-entities": "^2.5.2",
39
- "html-react-parser": "^4.2.2",
40
- "vite-tsconfig-paths": "^3.5.1",
41
- "vitest": "^0.24.3"
39
+ "html-react-parser": "^5.1.15",
40
+ "vite-tsconfig-paths": "^5.0.1"
42
41
  },
43
42
  "devDependencies": {
44
43
  "@asciidoctor/core": "^3.0.2",
45
44
  "@playwright/test": "^1.27.1",
46
- "@trivago/prettier-plugin-sort-imports": "^3.3.0",
45
+ "@trivago/prettier-plugin-sort-imports": "^4.3.0",
47
46
  "@types/node": "^18.15.11",
48
47
  "@types/react": "^18.0.18",
49
48
  "@types/react-dom": "^18.0.6",
50
- "@vitejs/plugin-react": "^2.1.0",
49
+ "@vitejs/plugin-react": "^4.3.1",
51
50
  "auto": "^11.1.2",
52
51
  "eslint": "^8.23.0",
53
52
  "npm-run-all": "^4.1.5",
54
- "prettier": "^2.7.1",
55
- "rollup-plugin-dts": "^5.3.0",
53
+ "prettier": "^3.3.3",
54
+ "rollup-plugin-dts": "^6.1.1",
56
55
  "typescript": "^5.1.6",
57
- "vite": "^3.1.0",
56
+ "vite": "^5.4.3",
58
57
  "vite-dts": "^1.0.4",
59
- "vite-plugin-dts": "^2.3.0"
58
+ "vite-plugin-dts": "^4.2.1"
60
59
  },
61
60
  "peerDependencies": {
62
61
  "react": "^18.2.0",