myst-to-react 0.1.17 → 0.1.19
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/cjs/admonitions.d.ts +32 -0
- package/dist/cjs/admonitions.d.ts.map +1 -0
- package/dist/cjs/admonitions.js +126 -0
- package/dist/cjs/basic.d.ts +62 -0
- package/dist/cjs/basic.d.ts.map +1 -0
- package/dist/cjs/basic.js +125 -0
- package/dist/cjs/card.d.ts +27 -0
- package/dist/cjs/card.d.ts.map +1 -0
- package/dist/cjs/card.js +64 -0
- package/dist/cjs/cite.d.ts +6 -0
- package/dist/cjs/cite.d.ts.map +1 -0
- package/dist/cjs/cite.js +36 -0
- package/dist/cjs/code.d.ts +20 -0
- package/dist/cjs/code.d.ts.map +1 -0
- package/dist/cjs/code.js +63 -0
- package/dist/cjs/components/ClickPopover.d.ts +11 -0
- package/dist/cjs/components/ClickPopover.d.ts.map +1 -0
- package/dist/cjs/components/ClickPopover.js +18 -0
- package/dist/cjs/components/CopyIcon.d.ts +5 -0
- package/dist/cjs/components/CopyIcon.d.ts.map +1 -0
- package/dist/cjs/components/CopyIcon.js +28 -0
- package/dist/cjs/components/HoverPopover.d.ts +9 -0
- package/dist/cjs/components/HoverPopover.d.ts.map +1 -0
- package/dist/cjs/components/HoverPopover.js +32 -0
- package/dist/cjs/components/LinkCard.d.ts +11 -0
- package/dist/cjs/components/LinkCard.d.ts.map +1 -0
- package/dist/cjs/components/LinkCard.js +15 -0
- package/dist/cjs/convertToReact.d.ts +6 -0
- package/dist/cjs/convertToReact.d.ts.map +1 -0
- package/dist/cjs/convertToReact.js +30 -0
- package/dist/cjs/crossReference.d.ts +13 -0
- package/dist/cjs/crossReference.d.ts.map +1 -0
- package/dist/cjs/crossReference.js +91 -0
- package/dist/cjs/dropdown.d.ts +16 -0
- package/dist/cjs/dropdown.d.ts.map +1 -0
- package/dist/cjs/dropdown.js +27 -0
- package/dist/cjs/extensions/chemicalFormula.d.ts +7 -0
- package/dist/cjs/extensions/chemicalFormula.d.ts.map +1 -0
- package/dist/cjs/extensions/chemicalFormula.js +39 -0
- package/dist/cjs/extensions/index.d.ts +4 -0
- package/dist/cjs/extensions/index.d.ts.map +1 -0
- package/dist/cjs/extensions/index.js +9 -0
- package/dist/cjs/extensions/siunits.d.ts +7 -0
- package/dist/cjs/extensions/siunits.d.ts.map +1 -0
- package/dist/cjs/extensions/siunits.js +12 -0
- package/dist/cjs/footnotes.d.ts +11 -0
- package/dist/cjs/footnotes.d.ts.map +1 -0
- package/dist/cjs/footnotes.js +24 -0
- package/dist/cjs/grid.d.ts +11 -0
- package/dist/cjs/grid.d.ts.map +1 -0
- package/dist/cjs/grid.js +117 -0
- package/dist/cjs/heading.d.ts +14 -0
- package/dist/cjs/heading.d.ts.map +1 -0
- package/dist/cjs/heading.js +40 -0
- package/dist/cjs/iframe.d.ts +7 -0
- package/dist/cjs/iframe.d.ts.map +1 -0
- package/dist/cjs/iframe.js +24 -0
- package/dist/cjs/image.d.ts +11 -0
- package/dist/cjs/image.d.ts.map +1 -0
- package/dist/cjs/image.js +52 -0
- package/dist/cjs/index.d.ts +10 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +46 -0
- package/dist/cjs/inlineError.d.ts +8 -0
- package/dist/cjs/inlineError.d.ts.map +1 -0
- package/dist/cjs/inlineError.js +9 -0
- package/dist/cjs/links/github.d.ts +12 -0
- package/dist/cjs/links/github.d.ts.map +1 -0
- package/dist/cjs/links/github.js +63 -0
- package/dist/cjs/links/index.d.ts +14 -0
- package/dist/cjs/links/index.d.ts.map +1 -0
- package/dist/cjs/links/index.js +68 -0
- package/dist/cjs/links/rrid.d.ts +5 -0
- package/dist/cjs/links/rrid.d.ts.map +1 -0
- package/dist/cjs/links/rrid.js +35 -0
- package/dist/cjs/links/wiki.d.ts +8 -0
- package/dist/cjs/links/wiki.d.ts.map +1 -0
- package/dist/cjs/links/wiki.js +39 -0
- package/dist/cjs/math.d.ts +13 -0
- package/dist/cjs/math.d.ts.map +1 -0
- package/dist/cjs/math.js +29 -0
- package/dist/cjs/output/components.d.ts +10 -0
- package/dist/cjs/output/components.d.ts.map +1 -0
- package/dist/cjs/output/components.js +41 -0
- package/dist/cjs/output/error.d.ts +6 -0
- package/dist/cjs/output/error.d.ts.map +1 -0
- package/dist/cjs/output/error.js +15 -0
- package/dist/cjs/output/hooks.d.ts +67 -0
- package/dist/cjs/output/hooks.d.ts.map +1 -0
- package/dist/cjs/output/hooks.js +85 -0
- package/dist/cjs/output/index.d.ts +6 -0
- package/dist/cjs/output/index.d.ts.map +1 -0
- package/dist/cjs/output/index.js +7 -0
- package/dist/cjs/output/jupyter.d.ts +7 -0
- package/dist/cjs/output/jupyter.d.ts.map +1 -0
- package/dist/cjs/output/jupyter.js +75 -0
- package/dist/cjs/output/output.d.ts +7 -0
- package/dist/cjs/output/output.d.ts.map +1 -0
- package/dist/cjs/output/output.js +66 -0
- package/dist/cjs/output/outputBlock.d.ts +10 -0
- package/dist/cjs/output/outputBlock.d.ts.map +1 -0
- package/dist/cjs/output/outputBlock.js +13 -0
- package/dist/cjs/output/safe.d.ts +7 -0
- package/dist/cjs/output/safe.d.ts.map +1 -0
- package/dist/cjs/output/safe.js +77 -0
- package/dist/cjs/output/selectors.d.ts +10 -0
- package/dist/cjs/output/selectors.d.ts.map +1 -0
- package/dist/cjs/output/selectors.js +10 -0
- package/dist/cjs/output/stream.d.ts +6 -0
- package/dist/cjs/output/stream.d.ts.map +1 -0
- package/dist/cjs/output/stream.js +13 -0
- package/dist/cjs/reactive.d.ts +88 -0
- package/dist/cjs/reactive.d.ts.map +1 -0
- package/dist/cjs/reactive.js +64 -0
- package/dist/cjs/tabs.d.ts +12 -0
- package/dist/cjs/tabs.d.ts.map +1 -0
- package/dist/cjs/tabs.js +38 -0
- package/dist/cjs/types.d.ts +7 -0
- package/dist/cjs/types.d.ts.map +1 -0
- package/dist/cjs/types.js +2 -0
- package/dist/types/admonitions.d.ts +32 -0
- package/dist/types/admonitions.d.ts.map +1 -0
- package/dist/types/basic.d.ts +62 -0
- package/dist/types/basic.d.ts.map +1 -0
- package/dist/types/card.d.ts +27 -0
- package/dist/types/card.d.ts.map +1 -0
- package/dist/types/cite.d.ts +6 -0
- package/dist/types/cite.d.ts.map +1 -0
- package/dist/types/code.d.ts +20 -0
- package/dist/types/code.d.ts.map +1 -0
- package/dist/types/components/ClickPopover.d.ts +11 -0
- package/dist/types/components/ClickPopover.d.ts.map +1 -0
- package/dist/types/components/CopyIcon.d.ts +5 -0
- package/dist/types/components/CopyIcon.d.ts.map +1 -0
- package/dist/types/components/HoverPopover.d.ts +9 -0
- package/dist/types/components/HoverPopover.d.ts.map +1 -0
- package/dist/types/components/LinkCard.d.ts +11 -0
- package/dist/types/components/LinkCard.d.ts.map +1 -0
- package/dist/types/convertToReact.d.ts +6 -0
- package/dist/types/convertToReact.d.ts.map +1 -0
- package/dist/types/crossReference.d.ts +13 -0
- package/dist/types/crossReference.d.ts.map +1 -0
- package/dist/types/dropdown.d.ts +16 -0
- package/dist/types/dropdown.d.ts.map +1 -0
- package/dist/types/extensions/chemicalFormula.d.ts +7 -0
- package/dist/types/extensions/chemicalFormula.d.ts.map +1 -0
- package/dist/types/extensions/index.d.ts +4 -0
- package/dist/types/extensions/index.d.ts.map +1 -0
- package/dist/types/extensions/siunits.d.ts +7 -0
- package/dist/types/extensions/siunits.d.ts.map +1 -0
- package/dist/types/footnotes.d.ts +11 -0
- package/dist/types/footnotes.d.ts.map +1 -0
- package/dist/types/grid.d.ts +11 -0
- package/dist/types/grid.d.ts.map +1 -0
- package/dist/types/heading.d.ts +14 -0
- package/dist/types/heading.d.ts.map +1 -0
- package/dist/types/iframe.d.ts +7 -0
- package/dist/types/iframe.d.ts.map +1 -0
- package/dist/types/image.d.ts +11 -0
- package/dist/types/image.d.ts.map +1 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/inlineError.d.ts +8 -0
- package/dist/types/inlineError.d.ts.map +1 -0
- package/dist/types/links/github.d.ts +12 -0
- package/dist/types/links/github.d.ts.map +1 -0
- package/dist/types/links/index.d.ts +14 -0
- package/dist/types/links/index.d.ts.map +1 -0
- package/dist/types/links/rrid.d.ts +5 -0
- package/dist/types/links/rrid.d.ts.map +1 -0
- package/dist/types/links/wiki.d.ts +8 -0
- package/dist/types/links/wiki.d.ts.map +1 -0
- package/dist/types/math.d.ts +13 -0
- package/dist/types/math.d.ts.map +1 -0
- package/dist/types/output/components.d.ts +10 -0
- package/dist/types/output/components.d.ts.map +1 -0
- package/dist/types/output/error.d.ts +6 -0
- package/dist/types/output/error.d.ts.map +1 -0
- package/dist/types/output/hooks.d.ts +67 -0
- package/dist/types/output/hooks.d.ts.map +1 -0
- package/dist/types/output/index.d.ts +6 -0
- package/dist/types/output/index.d.ts.map +1 -0
- package/dist/types/output/jupyter.d.ts +7 -0
- package/dist/types/output/jupyter.d.ts.map +1 -0
- package/dist/types/output/output.d.ts +7 -0
- package/dist/types/output/output.d.ts.map +1 -0
- package/dist/types/output/outputBlock.d.ts +10 -0
- package/dist/types/output/outputBlock.d.ts.map +1 -0
- package/dist/types/output/safe.d.ts +7 -0
- package/dist/types/output/safe.d.ts.map +1 -0
- package/dist/types/output/selectors.d.ts +10 -0
- package/dist/types/output/selectors.d.ts.map +1 -0
- package/dist/types/output/stream.d.ts +6 -0
- package/dist/types/output/stream.d.ts.map +1 -0
- package/dist/types/reactive.d.ts +88 -0
- package/dist/types/reactive.d.ts.map +1 -0
- package/dist/types/tabs.d.ts +12 -0
- package/dist/types/tabs.d.ts.map +1 -0
- package/dist/types/types.d.ts +7 -0
- package/dist/types/types.d.ts.map +1 -0
- package/package.json +36 -23
- package/src/admonitions.tsx +0 -183
- package/src/basic.tsx +0 -224
- package/src/card.tsx +0 -153
- package/src/cite.tsx +0 -94
- package/src/code.tsx +0 -119
- package/src/components/ClickPopover.tsx +0 -56
- package/src/components/CopyIcon.tsx +0 -40
- package/src/components/HoverPopover.tsx +0 -60
- package/src/components/LinkCard.tsx +0 -42
- package/src/convertToReact.ts +0 -33
- package/src/crossReference.tsx +0 -139
- package/src/dropdown.tsx +0 -69
- package/src/extensions/chemicalFormula.tsx +0 -42
- package/src/extensions/index.tsx +0 -10
- package/src/extensions/siunits.tsx +0 -15
- package/src/footnotes.tsx +0 -30
- package/src/grid.tsx +0 -127
- package/src/heading.tsx +0 -68
- package/src/iframe.tsx +0 -42
- package/src/image.tsx +0 -97
- package/src/index.tsx +0 -65
- package/src/inlineError.tsx +0 -15
- package/src/links/index.tsx +0 -132
- package/src/links/rrid.tsx +0 -81
- package/src/links/wiki.tsx +0 -119
- package/src/math.tsx +0 -81
- package/src/mermaid.tsx +0 -49
- package/src/myst.tsx +0 -221
- package/src/output/components.tsx +0 -34
- package/src/output/error.tsx +0 -20
- package/src/output/hooks.ts +0 -127
- package/src/output/index.tsx +0 -7
- package/src/output/jupyter.tsx +0 -86
- package/src/output/output.tsx +0 -79
- package/src/output/outputBlock.tsx +0 -21
- package/src/output/safe.tsx +0 -84
- package/src/output/selectors.ts +0 -15
- package/src/output/stream.tsx +0 -18
- package/src/reactive.tsx +0 -64
- package/src/tabs.tsx +0 -63
- package/src/types.ts +0 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { NodeRenderer } from './types';
|
|
3
|
+
import type { GenericParent } from 'myst-common';
|
|
4
|
+
export type { NodeRenderer } from './types';
|
|
5
|
+
export { CopyIcon } from './components/CopyIcon';
|
|
6
|
+
export { CodeBlock } from './code';
|
|
7
|
+
export { Admonition, AdmonitionKind } from './admonitions';
|
|
8
|
+
export declare const DEFAULT_RENDERERS: Record<string, NodeRenderer>;
|
|
9
|
+
export declare function useParse(node: GenericParent | null, renderers?: Record<string, NodeRenderer>): import("react").ReactNode;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAqBjD,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE3D,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAmB1D,CAAC;AAEF,wBAAgB,QAAQ,CACtB,IAAI,EAAE,aAAa,GAAG,IAAI,EAC1B,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAqB,6BAU5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inlineError.d.ts","sourceRoot":"","sources":["../../src/inlineError.tsx"],"names":[],"mappings":";AAEA,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,KAAK,eAOpD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function GithubLink({ children, url, org, repo, raw, file, from, to, }: {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
url: string;
|
|
5
|
+
raw: string;
|
|
6
|
+
org: string;
|
|
7
|
+
repo: string;
|
|
8
|
+
file: string;
|
|
9
|
+
from?: number;
|
|
10
|
+
to?: number;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
//# sourceMappingURL=github.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../src/links/github.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAwGnD,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,IAAI,EACJ,EAAE,GACH,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,eAqBA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Link } from 'myst-spec';
|
|
2
|
+
import type { NodeRenderer } from '../types';
|
|
3
|
+
type TransformedLink = Link & {
|
|
4
|
+
internal?: boolean;
|
|
5
|
+
protocol?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const link: NodeRenderer<TransformedLink>;
|
|
8
|
+
export declare const linkBlock: NodeRenderer<TransformedLink>;
|
|
9
|
+
declare const LINK_RENDERERS: {
|
|
10
|
+
link: NodeRenderer<TransformedLink>;
|
|
11
|
+
linkBlock: NodeRenderer<TransformedLink>;
|
|
12
|
+
};
|
|
13
|
+
export default LINK_RENDERERS;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/links/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAOtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAO7C,KAAK,eAAe,GAAG,IAAI,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAiDxE,eAAO,MAAM,IAAI,EAAE,YAAY,CAAC,eAAe,CA+C9C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,YAAY,CAAC,eAAe,CAkCnD,CAAC;AAEF,QAAA,MAAM,cAAc;;;CAGnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rrid.d.ts","sourceRoot":"","sources":["../../../src/links/rrid.tsx"],"names":[],"mappings":";AAyEA,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,eAOlD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wiki.d.ts","sourceRoot":"","sources":["../../../src/links/wiki.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgG1B,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,IAAI,EACJ,GAAG,EACH,IAAI,GACL,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,eAQA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { InlineMath, Math } from 'myst-spec';
|
|
2
|
+
import type { NodeRenderer } from './types';
|
|
3
|
+
type MathLike = (InlineMath | Math) & {
|
|
4
|
+
error?: boolean;
|
|
5
|
+
message?: string;
|
|
6
|
+
html?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const MATH_RENDERERS: {
|
|
9
|
+
math: NodeRenderer<MathLike>;
|
|
10
|
+
inlineMath: NodeRenderer<MathLike>;
|
|
11
|
+
};
|
|
12
|
+
export default MATH_RENDERERS;
|
|
13
|
+
//# sourceMappingURL=math.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../src/math.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGlD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA2B5C,KAAK,QAAQ,GAAG,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG;IACpC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAuCF,QAAA,MAAM,cAAc;;;CAGnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const MaybeLongContent: ({ content, path, render, }: {
|
|
3
|
+
content?: string | undefined;
|
|
4
|
+
path?: string | undefined;
|
|
5
|
+
render: (content: string) => JSX.Element;
|
|
6
|
+
}) => JSX.Element;
|
|
7
|
+
export declare const DangerousHTML: ({ content, ...rest }: {
|
|
8
|
+
content: string;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/output/components.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,gBAAgB;;;sBAOT,MAAM,KAAK,WAAW;iBAUzC,CAAC;AAEF,eAAO,MAAM,aAAa;aAAqC,MAAM;iBAWpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/output/error.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3D,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,mBAAmB,CAAA;CAAE,eAcxE"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { MinifiedOutput } from '@curvenote/nbtx/dist/minify/types';
|
|
2
|
+
/**
|
|
3
|
+
* Truncation vs Summarization
|
|
4
|
+
*
|
|
5
|
+
* In Curvespace, we're decided to change our data structure for outputs to align it as
|
|
6
|
+
* closely as possible with Jupyters nbformat.IOutput[] type, but in a way that still allows
|
|
7
|
+
* us to truncate output content and push that to storage.
|
|
8
|
+
*
|
|
9
|
+
* This will be used only in the CLI and Curvespace initially but should be ported back to
|
|
10
|
+
* the rest of the code base. This will mean
|
|
11
|
+
*
|
|
12
|
+
* - changing the DB schema
|
|
13
|
+
* - migration
|
|
14
|
+
* - changing API response
|
|
15
|
+
* - changing the frontend
|
|
16
|
+
* - changing the extension
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
interface LongContent {
|
|
20
|
+
content_type?: string;
|
|
21
|
+
content: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function useLongContent(content?: string, url?: string): {
|
|
24
|
+
data?: LongContent;
|
|
25
|
+
error?: Error;
|
|
26
|
+
};
|
|
27
|
+
export declare function useFetchAnyTruncatedContent(outputs: MinifiedOutput[]): {
|
|
28
|
+
data: ({
|
|
29
|
+
data: {};
|
|
30
|
+
path?: string | undefined;
|
|
31
|
+
traceback: string & string[];
|
|
32
|
+
output_type: "error";
|
|
33
|
+
ename: string;
|
|
34
|
+
evalue: string;
|
|
35
|
+
} | {
|
|
36
|
+
data: {};
|
|
37
|
+
path?: string | undefined;
|
|
38
|
+
output_type: "stream";
|
|
39
|
+
name: import("@jupyterlab/nbformat").StreamType;
|
|
40
|
+
text: import("@jupyterlab/nbformat").MultilineString;
|
|
41
|
+
} | {
|
|
42
|
+
data: {};
|
|
43
|
+
output_type: import("@curvenote/nbtx/dist/minify/types").MimeOutputType;
|
|
44
|
+
execution_count?: import("@jupyterlab/nbformat").ExecutionCount | undefined;
|
|
45
|
+
metadata: import("@lumino/coreutils").PartialJSONObject;
|
|
46
|
+
} | {
|
|
47
|
+
[x: string]: import("@lumino/coreutils").PartialJSONValue | undefined;
|
|
48
|
+
path?: string | undefined;
|
|
49
|
+
traceback: string & string[];
|
|
50
|
+
output_type: "error";
|
|
51
|
+
ename: string;
|
|
52
|
+
evalue: string;
|
|
53
|
+
} | {
|
|
54
|
+
[x: string]: import("@lumino/coreutils").PartialJSONValue | undefined;
|
|
55
|
+
path?: string | undefined;
|
|
56
|
+
output_type: "stream";
|
|
57
|
+
name: import("@jupyterlab/nbformat").StreamType;
|
|
58
|
+
text: import("@jupyterlab/nbformat").MultilineString;
|
|
59
|
+
})[] | undefined;
|
|
60
|
+
error: any;
|
|
61
|
+
};
|
|
62
|
+
export default function useWindowSize(): {
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
};
|
|
66
|
+
export {};
|
|
67
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/output/hooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,cAAc,EAEf,MAAM,mCAAmC,CAAC;AAI3C;;;;;;;;;;;;;;;;GAgBG;AAEH,UAAU,WAAW;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAQD,wBAAgB,cAAc,CAC5B,OAAO,CAAC,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,GACX;IAAE,IAAI,CAAC,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAQvC;AAuBD,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,cAAc,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BpE;AAUD,MAAM,CAAC,OAAO,UAAU,aAAa;;;EAapC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/output/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,gBAAgB;;CAErB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jupyter.d.ts","sourceRoot":"","sources":["../../../src/output/jupyter.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAQtD,eAAO,MAAM,oBAAoB;QAI3B,MAAM;aACD,cAAc,EAAE;iBAmE1B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { GenericNode } from 'mystjs';
|
|
3
|
+
import type { MinifiedOutput } from '@curvenote/nbtx/dist/minify/types';
|
|
4
|
+
export declare function allOutputsAreSafe(outputs: MinifiedOutput[], directOutputTypes: Set<string>, directMimeTypes: Set<string>): boolean;
|
|
5
|
+
export declare function anyErrors(outputs: MinifiedOutput[]): boolean;
|
|
6
|
+
export declare function Output(node: GenericNode): JSX.Element;
|
|
7
|
+
//# sourceMappingURL=output.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/output/output.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,OAAO,KAAK,EAAsB,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAgB5F,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,cAAc,EAAE,EACzB,iBAAiB,EAAE,GAAG,CAAC,MAAM,CAAC,EAC9B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,WAY7B;AAWD,wBAAgB,SAAS,CAAC,OAAO,EAAE,cAAc,EAAE,WAElD;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,WAAW,eA8BvC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
allSafe?: boolean;
|
|
5
|
+
hasError?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function OutputBlock(props: Props): JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=outputBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputBlock.d.ts","sourceRoot":"","sources":["../../../src/output/outputBlock.tsx"],"names":[],"mappings":";AAEA,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,eAWvC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { MinifiedOutput } from '@curvenote/nbtx/dist/minify/types';
|
|
3
|
+
export declare function SafeOutputs({ keyStub, outputs }: {
|
|
4
|
+
keyStub: string;
|
|
5
|
+
outputs: MinifiedOutput[];
|
|
6
|
+
}): JSX.Element;
|
|
7
|
+
//# sourceMappingURL=safe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe.d.ts","sourceRoot":"","sources":["../../../src/output/safe.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAGV,cAAc,EACf,MAAM,mCAAmC,CAAC;AAwE3C,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,cAAc,EAAE,CAAA;CAAE,eAM/F"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HostState } from '@curvenote/connect';
|
|
2
|
+
export interface State {
|
|
3
|
+
app: HostState;
|
|
4
|
+
}
|
|
5
|
+
export declare const selectIFrameHeight: (state: State, id: string) => number | null;
|
|
6
|
+
export declare const selectIFrameReady: (state: State, id: string) => boolean;
|
|
7
|
+
export declare const selectIFrameSendFailed: (state: State, id: string) => false | {
|
|
8
|
+
message: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../src/output/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGpD,MAAM,WAAW,KAAK;IACpB,GAAG,EAAE,SAAS,CAAC;CAChB;AAED,eAAO,MAAM,kBAAkB,UAAW,KAAK,MAAM,MAAM,kBACX,CAAC;AAEjD,eAAO,MAAM,iBAAiB,UAAW,KAAK,MAAM,MAAM,YACT,CAAC;AAElD,eAAO,MAAM,sBAAsB,UAAW,KAAK,MAAM,MAAM;;CACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../src/output/stream.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAG5D,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,oBAAoB,CAAA;CAAE,eAY1E"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { GenericNode } from 'mystjs';
|
|
3
|
+
export declare const RVar: (node: GenericNode) => import("react").ReactElement<{
|
|
4
|
+
key: any;
|
|
5
|
+
name: any;
|
|
6
|
+
value: string | undefined;
|
|
7
|
+
':value': any;
|
|
8
|
+
format: any;
|
|
9
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
10
|
+
export declare const RDisplay: (node: GenericNode) => import("react").ReactElement<{
|
|
11
|
+
key: any;
|
|
12
|
+
name: any;
|
|
13
|
+
value: string | undefined;
|
|
14
|
+
':value': any;
|
|
15
|
+
format: any;
|
|
16
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
export declare const RDynamic: (node: GenericNode) => import("react").ReactElement<{
|
|
18
|
+
key: any;
|
|
19
|
+
name: any;
|
|
20
|
+
value: string | undefined;
|
|
21
|
+
':value': any;
|
|
22
|
+
max: any;
|
|
23
|
+
':max': any;
|
|
24
|
+
min: any;
|
|
25
|
+
':min': any;
|
|
26
|
+
step: any;
|
|
27
|
+
':step': any;
|
|
28
|
+
':change': any;
|
|
29
|
+
format: any;
|
|
30
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
31
|
+
export declare const RRange: (node: GenericNode) => import("react").ReactElement<{
|
|
32
|
+
key: any;
|
|
33
|
+
name: any;
|
|
34
|
+
value: string | undefined;
|
|
35
|
+
':value': any;
|
|
36
|
+
max: any;
|
|
37
|
+
':max': any;
|
|
38
|
+
min: any;
|
|
39
|
+
':min': any;
|
|
40
|
+
step: any;
|
|
41
|
+
':step': any;
|
|
42
|
+
':change': any;
|
|
43
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
44
|
+
declare const REACTIVE_RENDERERS: {
|
|
45
|
+
'r:var': (node: GenericNode) => import("react").ReactElement<{
|
|
46
|
+
key: any;
|
|
47
|
+
name: any;
|
|
48
|
+
value: string | undefined;
|
|
49
|
+
':value': any;
|
|
50
|
+
format: any;
|
|
51
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
52
|
+
'r:display': (node: GenericNode) => import("react").ReactElement<{
|
|
53
|
+
key: any;
|
|
54
|
+
name: any;
|
|
55
|
+
value: string | undefined;
|
|
56
|
+
':value': any;
|
|
57
|
+
format: any;
|
|
58
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
59
|
+
'r:dynamic': (node: GenericNode) => import("react").ReactElement<{
|
|
60
|
+
key: any;
|
|
61
|
+
name: any;
|
|
62
|
+
value: string | undefined;
|
|
63
|
+
':value': any;
|
|
64
|
+
max: any;
|
|
65
|
+
':max': any;
|
|
66
|
+
min: any;
|
|
67
|
+
':min': any;
|
|
68
|
+
step: any;
|
|
69
|
+
':step': any;
|
|
70
|
+
':change': any;
|
|
71
|
+
format: any;
|
|
72
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
73
|
+
'r:range': (node: GenericNode) => import("react").ReactElement<{
|
|
74
|
+
key: any;
|
|
75
|
+
name: any;
|
|
76
|
+
value: string | undefined;
|
|
77
|
+
':value': any;
|
|
78
|
+
max: any;
|
|
79
|
+
':max': any;
|
|
80
|
+
min: any;
|
|
81
|
+
':min': any;
|
|
82
|
+
step: any;
|
|
83
|
+
':step': any;
|
|
84
|
+
':change': any;
|
|
85
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
86
|
+
};
|
|
87
|
+
export default REACTIVE_RENDERERS;
|
|
88
|
+
//# sourceMappingURL=reactive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactive.d.ts","sourceRoot":"","sources":["../../src/reactive.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAG1C,eAAO,MAAM,IAAI,SAAU,WAAW;;;;;;uDAQrC,CAAC;AAEF,eAAO,MAAM,QAAQ,SAAU,WAAW;;;;;;uDAQzC,CAAC;AAEF,eAAO,MAAM,QAAQ,SAAU,WAAW;;;;;;;;;;;;;uDAezC,CAAC;AAEF,eAAO,MAAM,MAAM,SAAU,WAAW;;;;;;;;;;;;uDAcvC,CAAC;AAEF,QAAA,MAAM,kBAAkB;oBArDG,WAAW;;;;;;;wBAUP,WAAW;;;;;;;wBAUX,WAAW;;;;;;;;;;;;;;sBAiBb,WAAW;;;;;;;;;;;;;CAqBvC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { GenericNode } from 'mystjs';
|
|
2
|
+
import type { NodeRenderer } from './types';
|
|
3
|
+
interface TabItem extends GenericNode {
|
|
4
|
+
key: string;
|
|
5
|
+
title: string;
|
|
6
|
+
sync?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const TabSetRenderer: NodeRenderer;
|
|
9
|
+
export declare const TabItemRenderer: NodeRenderer<TabItem>;
|
|
10
|
+
declare const TAB_RENDERERS: Record<string, NodeRenderer>;
|
|
11
|
+
export default TAB_RENDERERS;
|
|
12
|
+
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAG1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,UAAU,OAAQ,SAAQ,WAAW;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,cAAc,EAAE,YAiC5B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,OAAO,CAOjD,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAG/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,GAAG,IAAI,CAClC,IAAI,EAAE,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,EACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,KACvB,KAAK,CAAC,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,50 +1,63 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "myst-to-react",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"main": "
|
|
5
|
-
"types": "
|
|
3
|
+
"version": "0.1.19",
|
|
4
|
+
"main": "dist/cjs/index.js",
|
|
5
|
+
"types": "dist/types/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
|
-
"
|
|
7
|
+
"dist"
|
|
8
8
|
],
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
|
+
"clean": "rimraf dist",
|
|
12
|
+
"compile": "tsc",
|
|
11
13
|
"lint": "eslint \"src/**/*.ts*\" \"src/**/*.tsx\" -c ./.eslintrc.js",
|
|
12
|
-
"lint:format": "prettier --check \"src/**/*.{ts,tsx,md}\""
|
|
14
|
+
"lint:format": "prettier --check \"src/**/*.{ts,tsx,md}\"",
|
|
15
|
+
"dev": "npm-run-all --parallel \"build:* -- --watch\"",
|
|
16
|
+
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
|
|
17
|
+
"build:types": "tsc --declaration --emitDeclarationOnly --declarationMap --outDir dist/types",
|
|
18
|
+
"build": "npm-run-all -l clean -p build:cjs build:types"
|
|
13
19
|
},
|
|
14
20
|
"dependencies": {
|
|
15
|
-
"@curvenote/blocks": "
|
|
16
|
-
"@curvenote/connect": "
|
|
21
|
+
"@curvenote/blocks": "^1.5.17",
|
|
22
|
+
"@curvenote/connect": "0.0.6",
|
|
17
23
|
"@curvenote/nbtx": "^0.1.11",
|
|
18
|
-
"@
|
|
24
|
+
"@myst-theme/providers": "^0.1.19",
|
|
19
25
|
"@headlessui/react": "^1.6.5",
|
|
20
|
-
"@heroicons/react": "^
|
|
26
|
+
"@heroicons/react": "^2.0.12",
|
|
21
27
|
"@popperjs/core": "^2.11.5",
|
|
22
|
-
"@remix-run/react": "^1.6.3",
|
|
23
28
|
"ansi-to-react": "^6.1.6",
|
|
24
29
|
"buffer": "^6.0.3",
|
|
25
30
|
"classnames": "^2.3.1",
|
|
26
|
-
"
|
|
31
|
+
"myst-common": "^0.0.12",
|
|
32
|
+
"myst-config": "^0.0.6",
|
|
27
33
|
"myst-spec": "^0.0.4",
|
|
28
|
-
"myst-to-docx": "*",
|
|
29
|
-
"myst-to-tex": "*",
|
|
30
|
-
"myst-transforms": "*",
|
|
31
|
-
"mystjs": "^0.0.13",
|
|
32
34
|
"nanoid": "^4.0.0",
|
|
33
|
-
"react-dom": "^17.0.2",
|
|
34
35
|
"react-popper": "^2.3.0",
|
|
35
|
-
"react-redux": "^8.0.2",
|
|
36
36
|
"react-syntax-highlighter": "^15.5.0",
|
|
37
37
|
"swr": "^1.3.0",
|
|
38
38
|
"unist-util-select": "^4.0.1"
|
|
39
39
|
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"@types/react": "^16.8 || ^17.0 || ^18.0",
|
|
42
|
+
"@types/react-dom": "^16.8 || ^17.0 || ^18.0",
|
|
43
|
+
"react": "^16.8 || ^17.0 || ^18.0",
|
|
44
|
+
"react-dom": "^16.8 || ^17.0 || ^18.0",
|
|
45
|
+
"react-redux": "^7.2.1 || ^8.0.2"
|
|
46
|
+
},
|
|
40
47
|
"devDependencies": {
|
|
41
|
-
"@types/
|
|
42
|
-
"@types/react": "^
|
|
43
|
-
"@types/react-dom": "^17.0.11",
|
|
48
|
+
"@types/js-yaml": "^4.0.5",
|
|
49
|
+
"@types/react-syntax-highlighter": "^15.5.5",
|
|
44
50
|
"eslint": "^8.21.0",
|
|
45
|
-
"eslint-config-curvenote": "
|
|
46
|
-
"
|
|
47
|
-
"
|
|
51
|
+
"eslint-config-curvenote": "latest",
|
|
52
|
+
"npm-run-all": "^4.1.5",
|
|
53
|
+
"react-redux": "^8.0.5",
|
|
54
|
+
"tsconfig": "latest",
|
|
48
55
|
"typescript": "latest"
|
|
56
|
+
},
|
|
57
|
+
"overrides": {
|
|
58
|
+
"ansi-to-react": {
|
|
59
|
+
"react": "^16.8 || ^17.0 || ^18.0",
|
|
60
|
+
"react-dom": "^16.8 || ^17.0 || ^18.0"
|
|
61
|
+
}
|
|
49
62
|
}
|
|
50
63
|
}
|