@oxide/react-asciidoc 0.0.1-alpha.14 → 0.0.1-alpha.16
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/react-asciidoc.js +1374 -1370
- package/dist/react-asciidoc.umd.cjs +17 -17
- package/dist/types/index.d.ts +4 -2
- package/package.json +1 -4
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import asciidoctor from '@asciidoctor/core';
|
|
3
|
-
import type { AbstractBlock, Attributes } from '@asciidoctor/core';
|
|
3
|
+
import type { AbstractBlock, Attributes, Extensions } from '@asciidoctor/core';
|
|
4
4
|
import type * as AdocTypes from '@asciidoctor/core';
|
|
5
5
|
import useGetContent from './hooks/useGetContent';
|
|
6
6
|
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';
|
|
@@ -30,10 +30,12 @@ declare type Overrides = {
|
|
|
30
30
|
ulist?: typeof UList;
|
|
31
31
|
verse?: typeof Verse;
|
|
32
32
|
};
|
|
33
|
-
declare type
|
|
33
|
+
declare type ExtensionFn = (this: Extensions.Registry) => void;
|
|
34
|
+
export declare type Options = {
|
|
34
35
|
overrides?: Overrides;
|
|
35
36
|
customDocument?: typeof Document;
|
|
36
37
|
attributes?: Attributes;
|
|
38
|
+
extensions?: [ExtensionFn];
|
|
37
39
|
};
|
|
38
40
|
declare const Asciidoc: ({ content, options }: {
|
|
39
41
|
content: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxide/react-asciidoc",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.16",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -19,8 +19,6 @@
|
|
|
19
19
|
"dev": "vite --port 8000",
|
|
20
20
|
"clean": "rimraf dist/",
|
|
21
21
|
"build": "npm run clean && vite build && tsc",
|
|
22
|
-
"preview": "vite preview",
|
|
23
|
-
"release": "auto shipit",
|
|
24
22
|
"test:init": "rm -rf ./tests/renderer.spec.ts-snapshots & npx playwright test -g html",
|
|
25
23
|
"test:run": "npx playwright test -g react",
|
|
26
24
|
"fmt": "prettier --write --ignore-path ./.gitignore .",
|
|
@@ -44,7 +42,6 @@
|
|
|
44
42
|
"@types/react": "^18.0.18",
|
|
45
43
|
"@types/react-dom": "^18.0.6",
|
|
46
44
|
"@vitejs/plugin-react": "^2.1.0",
|
|
47
|
-
"auto": "^10.37.6",
|
|
48
45
|
"eslint": "^8.23.0",
|
|
49
46
|
"npm-run-all": "^4.1.5",
|
|
50
47
|
"prettier": "^2.7.1",
|