myst-to-react 0.8.3 → 0.9.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.
- package/dist/aside.d.ts +10 -0
- package/dist/aside.d.ts.map +1 -0
- package/dist/aside.js +32 -0
- package/dist/basic.d.ts +0 -4
- package/dist/basic.d.ts.map +1 -1
- package/dist/basic.js +0 -3
- package/dist/cite.d.ts +2 -1
- package/dist/cite.d.ts.map +1 -1
- package/dist/cite.js +17 -6
- package/dist/crossReference.js +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/package.json +4 -4
package/dist/aside.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { NodeRenderer } from '@myst-theme/providers';
|
|
2
|
+
type Aside = {
|
|
3
|
+
type: 'aside';
|
|
4
|
+
};
|
|
5
|
+
export declare const AsideRenderer: NodeRenderer<Aside>;
|
|
6
|
+
declare const ASIDE_RENDERERS: {
|
|
7
|
+
aside: NodeRenderer<Aside>;
|
|
8
|
+
};
|
|
9
|
+
export default ASIDE_RENDERERS;
|
|
10
|
+
//# sourceMappingURL=aside.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aside.d.ts","sourceRoot":"","sources":["../src/aside.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAI1D,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAsBF,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,KAAK,CAoB7C,CAAC;AAEF,QAAA,MAAM,eAAe;;CAEpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/dist/aside.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { MyST } from './MyST.js';
|
|
3
|
+
function getAsideClass(kind) {
|
|
4
|
+
switch (kind) {
|
|
5
|
+
case 'topic':
|
|
6
|
+
return {
|
|
7
|
+
container: 'my-5 shadow dark:bg-stone-800 overflow-hidden dark:border-l-4 border-slate-400',
|
|
8
|
+
title: 'm-0 font-medium py-2 px-4 flex min-w-0 text-md border-y dark:border-y-0 bg-gray-50/80 dark:bg-slate-900',
|
|
9
|
+
body: 'px-4',
|
|
10
|
+
};
|
|
11
|
+
case 'margin':
|
|
12
|
+
case 'sidebar':
|
|
13
|
+
default:
|
|
14
|
+
return {
|
|
15
|
+
container: 'text-sm lg:h-0 col-margin-right',
|
|
16
|
+
title: 'text-base font-semibold',
|
|
17
|
+
body: '',
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export const AsideRenderer = ({ node }) => {
|
|
22
|
+
const [title, ...rest] = node.children;
|
|
23
|
+
const className = getAsideClass(node.kind);
|
|
24
|
+
if (title.type !== 'admonitionTitle') {
|
|
25
|
+
return (_jsx("aside", { className: className.container, children: _jsx(MyST, { ast: node.children }) }));
|
|
26
|
+
}
|
|
27
|
+
return (_jsxs("aside", { className: className.container, children: [_jsx("div", { className: className.title, children: _jsx(MyST, { ast: title }) }), _jsx("div", { className: className.body, children: _jsx(MyST, { ast: rest }) })] }));
|
|
28
|
+
};
|
|
29
|
+
const ASIDE_RENDERERS = {
|
|
30
|
+
aside: AsideRenderer,
|
|
31
|
+
};
|
|
32
|
+
export default ASIDE_RENDERERS;
|
package/dist/basic.d.ts
CHANGED
|
@@ -28,9 +28,6 @@ type CaptionNumber = {
|
|
|
28
28
|
kind: string;
|
|
29
29
|
identifier: string;
|
|
30
30
|
};
|
|
31
|
-
type Aside = {
|
|
32
|
-
type: 'aside';
|
|
33
|
-
};
|
|
34
31
|
type Keyboard = {
|
|
35
32
|
type: 'keyboard';
|
|
36
33
|
};
|
|
@@ -74,7 +71,6 @@ type BasicNodeRenderers = {
|
|
|
74
71
|
definitionList: NodeRenderer<DefinitionList>;
|
|
75
72
|
definitionTerm: NodeRenderer<DefinitionTerm>;
|
|
76
73
|
definitionDescription: NodeRenderer<DefinitionDescription>;
|
|
77
|
-
aside: NodeRenderer<Aside>;
|
|
78
74
|
include: NodeRenderer<Include>;
|
|
79
75
|
};
|
|
80
76
|
declare const BASIC_RENDERERS: BasicNodeRenderers;
|
package/dist/basic.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic.d.ts","sourceRoot":"","sources":["../src/basic.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAI1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,KAAK,SAAS,GAAG;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,MAAM,GAAG;IACZ,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC;AAEF,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,gBAAgB,CAAC;CACxB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,gBAAgB,CAAC;CACxB,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,uBAAuB,CAAC;CAC/B,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,
|
|
1
|
+
{"version":3,"file":"basic.d.ts","sourceRoot":"","sources":["../src/basic.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,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C,OAAO,CAAC,CAAC;IACpC,WAAW,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAExC,aAAa,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IAC3C,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC7B,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACnC,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IACjC,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAEnC,cAAc,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IAC7C,cAAc,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IAC7C,qBAAqB,EAAE,YAAY,CAAC,qBAAqB,CAAC,CAAC;IAC3D,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;CAChC,CAAC;AAEF,QAAA,MAAM,eAAe,EAAE,kBAoStB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/dist/basic.js
CHANGED
|
@@ -140,9 +140,6 @@ const BASIC_RENDERERS = {
|
|
|
140
140
|
definitionDescription({ node }) {
|
|
141
141
|
return (_jsx("dd", { children: _jsx(MyST, { ast: node.children }) }));
|
|
142
142
|
},
|
|
143
|
-
aside({ node }) {
|
|
144
|
-
return (_jsx("aside", { className: "text-sm lg:h-0 col-margin-right", children: _jsx(MyST, { ast: node.children }) }));
|
|
145
|
-
},
|
|
146
143
|
keyboard({ node }) {
|
|
147
144
|
return (_jsx("kbd", { children: _jsx(MyST, { ast: node.children }) }));
|
|
148
145
|
},
|
package/dist/cite.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { NodeRenderer } from '@myst-theme/providers';
|
|
2
|
-
|
|
2
|
+
import type { GenericParent } from 'myst-common';
|
|
3
|
+
export declare const CiteGroup: NodeRenderer<GenericParent>;
|
|
3
4
|
export declare const Cite: ({ label, error, children, }: {
|
|
4
5
|
label?: string | undefined;
|
|
5
6
|
error?: boolean | undefined;
|
package/dist/cite.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cite.d.ts","sourceRoot":"","sources":["../src/cite.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"cite.d.ts","sourceRoot":"","sources":["../src/cite.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAK1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAiBjD,eAAO,MAAM,SAAS,EAAE,YAAY,CAAC,aAAa,CAcjD,CAAC;AAEF,eAAO,MAAM,IAAI;;;cAOL,MAAM,SAAS;6CAuB1B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,YAO1B,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAGhD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/dist/cite.js
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import { useReferences } from '@myst-theme/providers';
|
|
3
|
+
import { useReferences, useSiteManifest } from '@myst-theme/providers';
|
|
4
4
|
import { doi } from 'doi-utils';
|
|
5
5
|
import { InlineError } from './inlineError.js';
|
|
6
6
|
import { HoverPopover } from './components/index.js';
|
|
7
7
|
import { MyST } from './MyST.js';
|
|
8
|
+
function useNumberedReferences() {
|
|
9
|
+
var _a;
|
|
10
|
+
const config = useSiteManifest();
|
|
11
|
+
const numbered_references = !!((_a = config === null || config === void 0 ? void 0 : config.options) === null || _a === void 0 ? void 0 : _a.numbered_references);
|
|
12
|
+
return numbered_references;
|
|
13
|
+
}
|
|
8
14
|
function CiteChild({ html }) {
|
|
9
15
|
return (_jsx("div", { className: "hover-document article w-[500px] sm:max-w-[500px] p-3", dangerouslySetInnerHTML: { __html: html || '' } }));
|
|
10
16
|
}
|
|
11
17
|
export const CiteGroup = ({ node }) => {
|
|
12
|
-
|
|
18
|
+
var _a, _b;
|
|
19
|
+
const allCite = (_b = (_a = node.children) === null || _a === void 0 ? void 0 : _a.every((child) => child.type === 'cite')) !== null && _b !== void 0 ? _b : false;
|
|
20
|
+
return (_jsx("span", { className: classNames({
|
|
21
|
+
'cite-group': allCite,
|
|
22
|
+
'xref-group': !allCite,
|
|
13
23
|
narrative: node.kind === 'narrative',
|
|
14
24
|
parenthetical: node.kind === 'parenthetical',
|
|
15
25
|
}), children: _jsx(MyST, { ast: node.children }) }));
|
|
@@ -20,15 +30,16 @@ export const Cite = ({ label, error, children, }) => {
|
|
|
20
30
|
if (!label) {
|
|
21
31
|
return _jsx(InlineError, { value: "cite (no label)", message: 'Citation Has No Label' });
|
|
22
32
|
}
|
|
23
|
-
const { html, doi: doiString } = (_b = (_a = references === null || references === void 0 ? void 0 : references.cite) === null || _a === void 0 ? void 0 : _a.data[label]) !== null && _b !== void 0 ? _b : {};
|
|
33
|
+
const { html, doi: doiString, url: refUrl } = (_b = (_a = references === null || references === void 0 ? void 0 : references.cite) === null || _a === void 0 ? void 0 : _a.data[label]) !== null && _b !== void 0 ? _b : {};
|
|
24
34
|
if (error) {
|
|
25
35
|
return _jsx(InlineError, { value: label, message: 'Citation Not Found' });
|
|
26
36
|
}
|
|
27
|
-
const
|
|
28
|
-
return (_jsx(HoverPopover, { openDelay: 300, card: _jsx(CiteChild, { html: html }), children: _jsxs("cite", { children: [
|
|
37
|
+
const url = doiString ? doi.buildUrl(doiString) : refUrl;
|
|
38
|
+
return (_jsx(HoverPopover, { openDelay: 300, card: _jsx(CiteChild, { html: html }), children: _jsxs("cite", { children: [url && (_jsx("a", { href: url, target: "_blank", rel: "noreferrer", className: "hover-link", children: children })), !url && _jsx("span", { className: "hover-link", children: children })] }) }));
|
|
29
39
|
};
|
|
30
40
|
export const CiteRenderer = ({ node }) => {
|
|
31
|
-
|
|
41
|
+
const numbered = useNumberedReferences();
|
|
42
|
+
return (_jsx(Cite, { label: node.label, error: node.error, children: numbered && node.kind === 'parenthetical' ? node.enumerator : _jsx(MyST, { ast: node.children }) }));
|
|
32
43
|
};
|
|
33
44
|
const CITE_RENDERERS = {
|
|
34
45
|
citeGroup: CiteGroup,
|
package/dist/crossReference.js
CHANGED
|
@@ -104,7 +104,7 @@ export function useFetchMdast({ remote, url, dataUrl, }) {
|
|
|
104
104
|
const baseurl = useBaseurl();
|
|
105
105
|
const external = (_a = url === null || url === void 0 ? void 0 : url.startsWith('http')) !== null && _a !== void 0 ? _a : false;
|
|
106
106
|
const lookupUrl = external
|
|
107
|
-
?
|
|
107
|
+
? dataUrl !== null && dataUrl !== void 0 ? dataUrl : `${url}.json`
|
|
108
108
|
: dataUrl
|
|
109
109
|
? `${withBaseurl(dataUrl, baseurl)}`
|
|
110
110
|
: `${withBaseurl(url, baseurl)}.json`;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAwB1D,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAuB1D,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import EXT_RENDERERS from './extensions/index.js';
|
|
|
18
18
|
import INLINE_EXPRESSION_RENDERERS from './inlineExpression.js';
|
|
19
19
|
import PROOF_RENDERERS from './proof.js';
|
|
20
20
|
import EXERCISE_RENDERERS from './exercise.js';
|
|
21
|
+
import ASIDE_RENDERERS from './aside.js';
|
|
21
22
|
import UNKNOWN_MYST_RENDERERS from './unknown.js';
|
|
22
23
|
export { CopyIcon, HoverPopover, Tooltip, LinkCard } from './components/index.js';
|
|
23
24
|
export { CodeBlock } from './code.js';
|
|
@@ -26,5 +27,5 @@ export { Admonition, AdmonitionKind } from './admonitions.js';
|
|
|
26
27
|
export { Details } from './dropdown.js';
|
|
27
28
|
export { TabSet, TabItem } from './tabs.js';
|
|
28
29
|
export { useFetchMdast } from './crossReference.js';
|
|
29
|
-
export const DEFAULT_RENDERERS = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, BASIC_RENDERERS), UNKNOWN_MYST_RENDERERS), IMAGE_RENDERERS), LINK_RENDERERS), CODE_RENDERERS), MATH_RENDERERS), CITE_RENDERERS), TAB_RENDERERS), IFRAME_RENDERERS), FOOTNOTE_RENDERERS), ADMONITION_RENDERERS), REACTIVE_RENDERERS), HEADING_RENDERERS), CROSS_REFERENCE_RENDERERS), DROPDOWN_RENDERERS), CARD_RENDERERS), GRID_RENDERERS), INLINE_EXPRESSION_RENDERERS), EXT_RENDERERS), PROOF_RENDERERS), EXERCISE_RENDERERS);
|
|
30
|
+
export const DEFAULT_RENDERERS = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, BASIC_RENDERERS), UNKNOWN_MYST_RENDERERS), IMAGE_RENDERERS), LINK_RENDERERS), CODE_RENDERERS), MATH_RENDERERS), CITE_RENDERERS), TAB_RENDERERS), IFRAME_RENDERERS), FOOTNOTE_RENDERERS), ADMONITION_RENDERERS), REACTIVE_RENDERERS), HEADING_RENDERERS), CROSS_REFERENCE_RENDERERS), DROPDOWN_RENDERERS), CARD_RENDERERS), GRID_RENDERERS), INLINE_EXPRESSION_RENDERERS), EXT_RENDERERS), PROOF_RENDERERS), EXERCISE_RENDERERS), ASIDE_RENDERERS);
|
|
30
31
|
export { MyST } from './MyST.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "myst-to-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@heroicons/react": "^2.0.18",
|
|
24
|
-
"@myst-theme/providers": "^0.
|
|
24
|
+
"@myst-theme/providers": "^0.9.1",
|
|
25
25
|
"@radix-ui/react-hover-card": "^1.0.6",
|
|
26
26
|
"buffer": "^6.0.3",
|
|
27
27
|
"classnames": "^2.3.2",
|
|
28
|
-
"myst-common": "^1.
|
|
29
|
-
"myst-config": "^1.
|
|
28
|
+
"myst-common": "^1.4.0",
|
|
29
|
+
"myst-config": "^1.4.0",
|
|
30
30
|
"myst-spec": "^0.0.5",
|
|
31
31
|
"nanoid": "^4.0.2",
|
|
32
32
|
"react-syntax-highlighter": "^15.5.0",
|