@readme/markdown 6.75.0-beta.25 → 6.75.0-beta.27
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/components/Callout/index.d.ts +12 -0
- package/dist/example/App.d.ts +3 -0
- package/dist/example/Doc.d.ts +3 -0
- package/dist/example/Form.d.ts +3 -0
- package/dist/example/Header.d.ts +3 -0
- package/dist/example/RenderError.d.ts +22 -0
- package/dist/example/Root.d.ts +3 -0
- package/dist/example/docs.d.ts +2 -0
- package/dist/example/index.d.ts +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/main.js +2825 -2340
- package/dist/main.node.js +2158 -1835
- package/dist/processor/transform/callouts.d.ts +2 -0
- package/package.json +8 -7
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface Props extends React.PropsWithChildren<React.HTMLAttributes<HTMLQuoteElement>> {
|
|
3
|
+
attributes: {};
|
|
4
|
+
icon: string;
|
|
5
|
+
theme: string;
|
|
6
|
+
heading?: React.ReactElement;
|
|
7
|
+
}
|
|
8
|
+
declare const Callout: {
|
|
9
|
+
(props: Props): React.JSX.Element;
|
|
10
|
+
sanitize(sanitizeSchema: any): any;
|
|
11
|
+
};
|
|
12
|
+
export default Callout;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
}
|
|
4
|
+
interface State {
|
|
5
|
+
hasError: boolean;
|
|
6
|
+
message?: string;
|
|
7
|
+
}
|
|
8
|
+
declare class RenderError extends React.Component<PropsWithChildren<Props>, State> {
|
|
9
|
+
state: {
|
|
10
|
+
hasError: boolean;
|
|
11
|
+
message: any;
|
|
12
|
+
};
|
|
13
|
+
static getDerivedStateFromError(error: Error): {
|
|
14
|
+
hasError: boolean;
|
|
15
|
+
message: string;
|
|
16
|
+
};
|
|
17
|
+
componentDidCatch(error: any, info: {
|
|
18
|
+
componentStack: any;
|
|
19
|
+
}): void;
|
|
20
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element;
|
|
21
|
+
}
|
|
22
|
+
export default RenderError;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RunOptions } from '@mdx-js/mdx';
|
|
2
|
+
import * as Components from './components';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
type RunOpts = Omit<RunOptions, 'Fragment'> & {
|
|
5
|
+
components?: Record<string, () => React.ReactNode>;
|
|
6
|
+
imports?: Record<string, unknown>;
|
|
7
|
+
};
|
|
8
|
+
export { Components };
|
|
9
|
+
export declare const utils: {
|
|
10
|
+
readonly options: any;
|
|
11
|
+
BaseUrlContext: any;
|
|
12
|
+
getHref: any;
|
|
13
|
+
GlossaryContext: any;
|
|
14
|
+
VariablesContext: any;
|
|
15
|
+
calloutIcons: {};
|
|
16
|
+
};
|
|
17
|
+
export declare const reactProcessor: (opts?: {}) => import("unified").Processor<import("mdast").Root, import("estree").Program, import("estree").Program, import("estree").Program, string>;
|
|
18
|
+
export declare const compile: (text: string, opts?: {}) => string;
|
|
19
|
+
export declare const run: (code: string, _opts?: RunOpts) => Promise<import("mdx/types").MDXContent | (() => any)>;
|
|
20
|
+
export declare const reactTOC: (text: string, opts?: {}) => void;
|
|
21
|
+
export declare const mdx: (tree: any, opts?: {}) => string;
|
|
22
|
+
export declare const html: (text: string, opts?: {}) => void;
|
|
23
|
+
export declare const mdast: any;
|
|
24
|
+
export declare const hast: (text: string, opts?: {}) => void;
|
|
25
|
+
export declare const esast: (text: string, opts?: {}) => void;
|
|
26
|
+
export declare const plain: (text: string, opts?: {}) => void;
|