@oxide/react-asciidoc 0.0.1-alpha.14 → 0.0.1-alpha.15

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,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';
@@ -34,7 +34,9 @@ declare type Options = {
34
34
  overrides?: Overrides;
35
35
  customDocument?: typeof Document;
36
36
  attributes?: Attributes;
37
+ registry?: Extensions.Registry;
37
38
  };
39
+ declare const registry: Extensions.Registry;
38
40
  declare const Asciidoc: ({ content, options }: {
39
41
  content: string;
40
42
  options?: Options | undefined;
@@ -43,5 +45,5 @@ declare const Content: ({ blocks }: {
43
45
  blocks: AbstractBlock[];
44
46
  }) => JSX.Element;
45
47
  export default Asciidoc;
46
- export { asciidoctor, Content, useGetContent, Title, getRole, CaptionedTitle, AdocTypes };
48
+ export { asciidoctor, Content, useGetContent, Title, getRole, CaptionedTitle, AdocTypes, registry, };
47
49
  export * from './templates';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxide/react-asciidoc",
3
- "version": "0.0.1-alpha.14",
3
+ "version": "0.0.1-alpha.15",
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",