myst-to-react 0.1.24 → 0.1.26
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 +8 -6
- package/dist/cjs/admonitions.d.ts.map +1 -1
- package/dist/cjs/admonitions.js +36 -22
- package/dist/cjs/crossReference.js +1 -1
- package/dist/cjs/reactive.d.ts +1 -1
- package/dist/cjs/reactive.d.ts.map +1 -1
- package/dist/cjs/tabs.js +2 -2
- package/dist/types/admonitions.d.ts +8 -6
- package/dist/types/admonitions.d.ts.map +1 -1
- package/dist/types/reactive.d.ts +1 -1
- package/dist/types/reactive.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { Admonition as AdmonitionSpec, AdmonitionTitle as AdmonitionTitleSpec } from 'myst-spec';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { NodeRenderer } from '@myst-theme/providers';
|
|
4
4
|
export declare enum AdmonitionKind {
|
|
@@ -15,18 +15,20 @@ export declare enum AdmonitionKind {
|
|
|
15
15
|
warning = "warning"
|
|
16
16
|
}
|
|
17
17
|
type Color = 'blue' | 'green' | 'yellow' | 'red';
|
|
18
|
-
export declare const AdmonitionTitle: NodeRenderer<
|
|
19
|
-
export declare function Admonition({ title, kind, color, dropdown, children, }: {
|
|
18
|
+
export declare const AdmonitionTitle: NodeRenderer<AdmonitionTitleSpec>;
|
|
19
|
+
export declare function Admonition({ title, kind, color, simple, dropdown, children, hideIcon, }: {
|
|
20
20
|
title?: React.ReactNode;
|
|
21
21
|
color?: Color;
|
|
22
22
|
kind?: AdmonitionKind;
|
|
23
23
|
children: React.ReactNode;
|
|
24
|
+
simple?: boolean;
|
|
24
25
|
dropdown?: boolean;
|
|
26
|
+
hideIcon?: boolean;
|
|
25
27
|
}): JSX.Element;
|
|
26
|
-
export declare const AdmonitionRenderer: NodeRenderer<
|
|
28
|
+
export declare const AdmonitionRenderer: NodeRenderer<AdmonitionSpec>;
|
|
27
29
|
declare const ADMONITION_RENDERERS: {
|
|
28
|
-
admonition: NodeRenderer<
|
|
29
|
-
admonitionTitle: NodeRenderer<
|
|
30
|
+
admonition: NodeRenderer<AdmonitionSpec>;
|
|
31
|
+
admonitionTitle: NodeRenderer<AdmonitionTitleSpec>;
|
|
30
32
|
};
|
|
31
33
|
export default ADMONITION_RENDERERS;
|
|
32
34
|
//# sourceMappingURL=admonitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admonitions.d.ts","sourceRoot":"","sources":["../../src/admonitions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"admonitions.d.ts","sourceRoot":"","sources":["../../src/admonitions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,IAAI,cAAc,EAC5B,eAAe,IAAI,mBAAmB,EACvC,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAoB1D,oBAAY,cAAc;IACxB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,OAAO,YAAY;CACpB;AAED,KAAK,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAwEjD,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,mBAAmB,CAE7D,CAAC;AA4BF,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,IAAI,EACJ,KAAK,EACL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,eAmEA;AAED,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,cAAc,CAwB3D,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;CAGzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/dist/cjs/admonitions.js
CHANGED
|
@@ -8,7 +8,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
8
8
|
const outline_1 = require("@heroicons/react/24/outline");
|
|
9
9
|
const solid_1 = require("@heroicons/react/24/solid");
|
|
10
10
|
const classnames_1 = __importDefault(require("classnames"));
|
|
11
|
-
// import { AdmonitionKind } from '
|
|
11
|
+
// import { AdmonitionKind } from 'myst-common';
|
|
12
12
|
// TODO: get this from myst-spec?
|
|
13
13
|
var AdmonitionKind;
|
|
14
14
|
(function (AdmonitionKind) {
|
|
@@ -63,28 +63,29 @@ function getFirstKind({ kind, classes = [], }) {
|
|
|
63
63
|
return { kind: AdmonitionKind.note, color: 'blue' };
|
|
64
64
|
}
|
|
65
65
|
const iconClass = 'h-8 w-8 inline-block pl-2 mr-2 self-center flex-none';
|
|
66
|
-
function AdmonitionIcon({ kind }) {
|
|
66
|
+
function AdmonitionIcon({ kind, className }) {
|
|
67
|
+
const cn = (0, classnames_1.default)(iconClass, className);
|
|
67
68
|
if (kind === AdmonitionKind.note)
|
|
68
|
-
return (0, jsx_runtime_1.jsx)(outline_1.InformationCircleIcon, { className:
|
|
69
|
+
return (0, jsx_runtime_1.jsx)(outline_1.InformationCircleIcon, { className: cn });
|
|
69
70
|
if (kind === AdmonitionKind.caution)
|
|
70
|
-
return (0, jsx_runtime_1.jsx)(outline_1.ExclamationCircleIcon, { className:
|
|
71
|
+
return (0, jsx_runtime_1.jsx)(outline_1.ExclamationCircleIcon, { className: cn });
|
|
71
72
|
if (kind === AdmonitionKind.warning)
|
|
72
|
-
return (0, jsx_runtime_1.jsx)(solid_1.ExclamationTriangleIcon, { className:
|
|
73
|
+
return (0, jsx_runtime_1.jsx)(solid_1.ExclamationTriangleIcon, { className: cn });
|
|
73
74
|
if (kind === AdmonitionKind.danger)
|
|
74
|
-
return (0, jsx_runtime_1.jsx)(solid_1.ExclamationCircleIcon, { className:
|
|
75
|
+
return (0, jsx_runtime_1.jsx)(solid_1.ExclamationCircleIcon, { className: cn });
|
|
75
76
|
if (kind === AdmonitionKind.error)
|
|
76
|
-
return (0, jsx_runtime_1.jsx)(solid_1.XCircleIcon, { className:
|
|
77
|
+
return (0, jsx_runtime_1.jsx)(solid_1.XCircleIcon, { className: cn });
|
|
77
78
|
if (kind === AdmonitionKind.attention)
|
|
78
|
-
return (0, jsx_runtime_1.jsx)(outline_1.MegaphoneIcon, { className:
|
|
79
|
+
return (0, jsx_runtime_1.jsx)(outline_1.MegaphoneIcon, { className: cn });
|
|
79
80
|
if (kind === AdmonitionKind.tip)
|
|
80
|
-
return (0, jsx_runtime_1.jsx)(outline_1.PencilSquareIcon, { className:
|
|
81
|
+
return (0, jsx_runtime_1.jsx)(outline_1.PencilSquareIcon, { className: cn });
|
|
81
82
|
if (kind === AdmonitionKind.hint)
|
|
82
|
-
return (0, jsx_runtime_1.jsx)(outline_1.LightBulbIcon, { className:
|
|
83
|
+
return (0, jsx_runtime_1.jsx)(outline_1.LightBulbIcon, { className: cn });
|
|
83
84
|
if (kind === AdmonitionKind.important)
|
|
84
|
-
return (0, jsx_runtime_1.jsx)(solid_1.BoltIcon, { className:
|
|
85
|
+
return (0, jsx_runtime_1.jsx)(solid_1.BoltIcon, { className: cn });
|
|
85
86
|
if (kind === AdmonitionKind.seealso)
|
|
86
|
-
return (0, jsx_runtime_1.jsx)(outline_1.ArrowRightCircleIcon, { className:
|
|
87
|
-
return (0, jsx_runtime_1.jsx)(outline_1.InformationCircleIcon, { className:
|
|
87
|
+
return (0, jsx_runtime_1.jsx)(outline_1.ArrowRightCircleIcon, { className: cn });
|
|
88
|
+
return (0, jsx_runtime_1.jsx)(outline_1.InformationCircleIcon, { className: cn });
|
|
88
89
|
}
|
|
89
90
|
const AdmonitionTitle = (node, children) => {
|
|
90
91
|
return children;
|
|
@@ -100,19 +101,30 @@ const HeaderElement = ({ dropdown, className, children, }) => {
|
|
|
100
101
|
return (0, jsx_runtime_1.jsx)("summary", Object.assign({ className: className }, { children: children }));
|
|
101
102
|
return (0, jsx_runtime_1.jsx)("div", Object.assign({ className: className }, { children: children }));
|
|
102
103
|
};
|
|
103
|
-
function Admonition({ title, kind, color, dropdown, children, }) {
|
|
104
|
-
return ((0, jsx_runtime_1.jsxs)(WrapperElement, Object.assign({ dropdown: dropdown, className: (0, classnames_1.default)('
|
|
104
|
+
function Admonition({ title, kind, color, simple, dropdown, children, hideIcon, }) {
|
|
105
|
+
return ((0, jsx_runtime_1.jsxs)(WrapperElement, Object.assign({ dropdown: dropdown, className: (0, classnames_1.default)('my-4 shadow-md dark:shadow-2xl dark:shadow-neutral-900', 'bg-gray-50 dark:bg-stone-800', 'overflow-hidden', {
|
|
106
|
+
'rounded-md border-l-4': !simple,
|
|
107
|
+
'rounded border-l-2': simple,
|
|
105
108
|
'border-blue-500': !color || color === 'blue',
|
|
106
109
|
'border-green-600': color === 'green',
|
|
107
110
|
'border-amber-600': color === 'yellow',
|
|
108
111
|
'border-red-600': color === 'red',
|
|
109
|
-
}) }, { children: [title && ((0, jsx_runtime_1.jsxs)(HeaderElement, Object.assign({ dropdown: dropdown, className: (0, classnames_1.default)('
|
|
110
|
-
'text-
|
|
111
|
-
'text-
|
|
112
|
-
'
|
|
113
|
-
'text-
|
|
112
|
+
}) }, { children: [title && ((0, jsx_runtime_1.jsxs)(HeaderElement, Object.assign({ dropdown: dropdown, className: (0, classnames_1.default)('m-0 font-medium py-1 flex min-w-0', {
|
|
113
|
+
'text-lg': !simple,
|
|
114
|
+
'text-md': simple,
|
|
115
|
+
'bg-gray-100 dark:bg-stone-700': simple,
|
|
116
|
+
'text-blue-600 bg-blue-50 dark:bg-slate-900': !simple && (!color || color === 'blue'),
|
|
117
|
+
'text-green-600 bg-green-50 dark:bg-slate-900': !simple && color === 'green',
|
|
118
|
+
'text-amber-600 bg-amber-50 dark:bg-slate-900': !simple && color === 'yellow',
|
|
119
|
+
'text-red-600 bg-red-50 dark:bg-slate-900': !simple && color === 'red',
|
|
114
120
|
'cursor-pointer hover:shadow-[inset_0_0_0px_20px_#00000003] dark:hover:shadow-[inset_0_0_0px_20px_#FFFFFF03]': dropdown,
|
|
115
|
-
}) }, { children: [(0, jsx_runtime_1.jsx)(AdmonitionIcon, { kind: kind !== null && kind !== void 0 ? kind : AdmonitionKind.note
|
|
121
|
+
}) }, { children: [!hideIcon && ((0, jsx_runtime_1.jsx)(AdmonitionIcon, { kind: kind !== null && kind !== void 0 ? kind : AdmonitionKind.note, className: (0, classnames_1.default)({
|
|
122
|
+
// Needed for simple!
|
|
123
|
+
'text-blue-600': !color || color === 'blue',
|
|
124
|
+
'text-green-600': color === 'green',
|
|
125
|
+
'text-amber-600': color === 'yellow',
|
|
126
|
+
'text-red-600': color === 'red',
|
|
127
|
+
}) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)('text-neutral-900 dark:text-white grow self-center overflow-hidden break-words', { 'ml-2': hideIcon }) }, { children: title })), dropdown && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "font-thin text-sm text-neutral-700 dark:text-neutral-200 self-center flex-none" }, { children: (0, jsx_runtime_1.jsx)(solid_1.ChevronRightIcon, { className: (0, classnames_1.default)(iconClass, 'transition-transform details-toggle') }) })))] }))), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)('px-4', { 'py-1': !simple, 'details-body': dropdown }) }, { children: children }))] })));
|
|
116
128
|
}
|
|
117
129
|
exports.Admonition = Admonition;
|
|
118
130
|
const AdmonitionRenderer = (node, children) => {
|
|
@@ -121,8 +133,10 @@ const AdmonitionRenderer = (node, children) => {
|
|
|
121
133
|
const classes = getClasses(node.class);
|
|
122
134
|
const { kind, color } = getFirstKind({ kind: node.kind, classes });
|
|
123
135
|
const isDropdown = classes.includes('dropdown');
|
|
136
|
+
const isSimple = classes.includes('simple');
|
|
137
|
+
const hideIcon = node.icon === false;
|
|
124
138
|
const useTitle = ((_a = node.children) === null || _a === void 0 ? void 0 : _a[0].type) === 'admonitionTitle';
|
|
125
|
-
return ((0, jsx_runtime_1.jsxs)(Admonition, Object.assign({ title: useTitle ? title : undefined, kind: kind, color: color, dropdown: isDropdown }, { children: [!useTitle && title, rest] }), node.key));
|
|
139
|
+
return ((0, jsx_runtime_1.jsxs)(Admonition, Object.assign({ title: useTitle ? title : undefined, kind: kind, color: color, dropdown: isDropdown, simple: isSimple, hideIcon: hideIcon }, { children: [!useTitle && title, rest] }), node.key));
|
|
126
140
|
};
|
|
127
141
|
exports.AdmonitionRenderer = AdmonitionRenderer;
|
|
128
142
|
const ADMONITION_RENDERERS = {
|
|
@@ -76,7 +76,7 @@ function ReferencedContent({ identifier, close, }) {
|
|
|
76
76
|
if (!nodes || nodes.length === 0) {
|
|
77
77
|
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(inlineError_1.InlineError, { value: identifier || 'No Label', message: "Cross Reference Not Found" }) }));
|
|
78
78
|
}
|
|
79
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "exclude-from-outline" }, { children: [remote && external && ((0, jsx_runtime_1.jsx)("a", Object.assign({ href: link, className: "absolute top-4 right-1", target: "_blank" }, { children: (0, jsx_runtime_1.jsx)(outline_1.ArrowTopRightOnSquareIcon, { className: "w-4 h-4" }) }))), remote && !external && ((0, jsx_runtime_1.jsx)(Link, Object.assign({ to:
|
|
79
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "exclude-from-outline" }, { children: [remote && external && ((0, jsx_runtime_1.jsx)("a", Object.assign({ href: link, className: "absolute top-4 right-1", target: "_blank" }, { children: (0, jsx_runtime_1.jsx)(outline_1.ArrowTopRightOnSquareIcon, { className: "w-4 h-4" }) }))), remote && !external && ((0, jsx_runtime_1.jsx)(Link, Object.assign({ to: (0, providers_1.withUrlbase)(url, urlbase), className: "absolute top-4 right-1", prefetch: "intent" }, { children: (0, jsx_runtime_1.jsx)(outline_1.ArrowTopRightOnSquareIcon, { className: "w-4 h-4" }) }))), !remote && ((0, jsx_runtime_1.jsx)("button", Object.assign({ onClick: onClose, className: "absolute top-4 right-1" }, { children: (0, jsx_runtime_1.jsx)(outline_1.LinkIcon, { className: "w-4 h-4" }) }))), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "popout" }, { children: children }))] })));
|
|
80
80
|
}
|
|
81
81
|
exports.ReferencedContent = ReferencedContent;
|
|
82
82
|
const CrossReferenceNode = (node, children) => {
|
package/dist/cjs/reactive.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactive.d.ts","sourceRoot":"","sources":["../../src/reactive.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"reactive.d.ts","sourceRoot":"","sources":["../../src/reactive.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,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"}
|
package/dist/cjs/tabs.js
CHANGED
|
@@ -15,9 +15,9 @@ function TabSetStateProvider({ active, children }) {
|
|
|
15
15
|
return (0, jsx_runtime_1.jsx)(TabSetContext.Provider, Object.assign({ value: active }, { children: children }));
|
|
16
16
|
}
|
|
17
17
|
function TabSet({ tabs, children }) {
|
|
18
|
-
var _a, _b, _c;
|
|
18
|
+
var _a, _b, _c, _d;
|
|
19
19
|
const [lastClickedTab, onClickSyncedTab] = (_a = (0, providers_1.useTabSet)()) !== null && _a !== void 0 ? _a : [];
|
|
20
|
-
const [active, setActive] = (0, react_1.useState)((_c = (_b = tabs.find((t) => t.selected)) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : tabs[0].id);
|
|
20
|
+
const [active, setActive] = (0, react_1.useState)((_c = (_b = tabs.find((t) => t.selected)) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : (_d = tabs === null || tabs === void 0 ? void 0 : tabs[0]) === null || _d === void 0 ? void 0 : _d.id);
|
|
21
21
|
const onClick = (tab) => {
|
|
22
22
|
setActive(tab.id);
|
|
23
23
|
if (tab.sync) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { Admonition as AdmonitionSpec, AdmonitionTitle as AdmonitionTitleSpec } from 'myst-spec';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { NodeRenderer } from '@myst-theme/providers';
|
|
4
4
|
export declare enum AdmonitionKind {
|
|
@@ -15,18 +15,20 @@ export declare enum AdmonitionKind {
|
|
|
15
15
|
warning = "warning"
|
|
16
16
|
}
|
|
17
17
|
type Color = 'blue' | 'green' | 'yellow' | 'red';
|
|
18
|
-
export declare const AdmonitionTitle: NodeRenderer<
|
|
19
|
-
export declare function Admonition({ title, kind, color, dropdown, children, }: {
|
|
18
|
+
export declare const AdmonitionTitle: NodeRenderer<AdmonitionTitleSpec>;
|
|
19
|
+
export declare function Admonition({ title, kind, color, simple, dropdown, children, hideIcon, }: {
|
|
20
20
|
title?: React.ReactNode;
|
|
21
21
|
color?: Color;
|
|
22
22
|
kind?: AdmonitionKind;
|
|
23
23
|
children: React.ReactNode;
|
|
24
|
+
simple?: boolean;
|
|
24
25
|
dropdown?: boolean;
|
|
26
|
+
hideIcon?: boolean;
|
|
25
27
|
}): JSX.Element;
|
|
26
|
-
export declare const AdmonitionRenderer: NodeRenderer<
|
|
28
|
+
export declare const AdmonitionRenderer: NodeRenderer<AdmonitionSpec>;
|
|
27
29
|
declare const ADMONITION_RENDERERS: {
|
|
28
|
-
admonition: NodeRenderer<
|
|
29
|
-
admonitionTitle: NodeRenderer<
|
|
30
|
+
admonition: NodeRenderer<AdmonitionSpec>;
|
|
31
|
+
admonitionTitle: NodeRenderer<AdmonitionTitleSpec>;
|
|
30
32
|
};
|
|
31
33
|
export default ADMONITION_RENDERERS;
|
|
32
34
|
//# sourceMappingURL=admonitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admonitions.d.ts","sourceRoot":"","sources":["../../src/admonitions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"admonitions.d.ts","sourceRoot":"","sources":["../../src/admonitions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,IAAI,cAAc,EAC5B,eAAe,IAAI,mBAAmB,EACvC,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAoB1D,oBAAY,cAAc;IACxB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,OAAO,YAAY;CACpB;AAED,KAAK,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAwEjD,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,mBAAmB,CAE7D,CAAC;AA4BF,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,IAAI,EACJ,KAAK,EACL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,eAmEA;AAED,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,cAAc,CAwB3D,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;CAGzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/dist/types/reactive.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactive.d.ts","sourceRoot":"","sources":["../../src/reactive.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"reactive.d.ts","sourceRoot":"","sources":["../../src/reactive.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "myst-to-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"types": "dist/types/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"build": "npm-run-all -l clean -p build:cjs build:types"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@myst-theme/providers": "^0.1.
|
|
20
|
+
"@myst-theme/providers": "^0.1.26",
|
|
21
21
|
"@headlessui/react": "^1.7.7",
|
|
22
22
|
"@heroicons/react": "^2.0.13",
|
|
23
23
|
"@popperjs/core": "^2.11.6",
|
|
24
24
|
"buffer": "^6.0.3",
|
|
25
25
|
"classnames": "^2.3.2",
|
|
26
|
-
"myst-common": "^0.0.
|
|
26
|
+
"myst-common": "^0.0.14",
|
|
27
27
|
"myst-config": "^0.0.9",
|
|
28
28
|
"myst-spec": "^0.0.4",
|
|
29
29
|
"nanoid": "^4.0.0",
|