@myst-theme/jupyter 1.0.1 → 1.1.0
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/block.js +1 -1
- package/package.json +3 -3
package/dist/block.js
CHANGED
|
@@ -10,7 +10,7 @@ export function NotebookBlock({ node, className }) {
|
|
|
10
10
|
const block = (_jsxs("div", { id: (_b = (_a = node.html_id) !== null && _a !== void 0 ? _a : node.identifier) !== null && _b !== void 0 ? _b : node.key, className: classNames('myst-jp-nb-block relative group/block', className, node.class, {
|
|
11
11
|
[(_c = node.data) === null || _c === void 0 ? void 0 : _c.class]: typeof ((_d = node.data) === null || _d === void 0 ? void 0 : _d.class) === 'string',
|
|
12
12
|
hidden: node.visibility === 'remove',
|
|
13
|
-
}), children: [pageKind === SourceFileKind.Notebook && node.kind === 'notebook-code' && (_jsxs(_Fragment, { children: [_jsx("div", { className: "myst-jp-nb-block-spinner flex sticky top-[115px] z-10 opacity-90 group-hover/block:opacity-100 group-hover/block:hidden", children: _jsx("div", { className: "flex absolute top-0 right-0", children: _jsx(NotebookRunCellSpinnerOnly, { id:
|
|
13
|
+
}), children: [pageKind === SourceFileKind.Notebook && node.kind === 'notebook-code' && (_jsxs(_Fragment, { children: [_jsx("div", { className: "myst-jp-nb-block-spinner flex sticky top-[115px] z-10 opacity-90 group-hover/block:opacity-100 group-hover/block:hidden", children: _jsx("div", { className: "flex absolute top-0 right-0", children: _jsx(NotebookRunCellSpinnerOnly, { id: node.key }) }) }), _jsx("div", { className: "myst-jp-nb-block sticky top-[115px] z-10 opacity-90 group-hover/block:opacity-100 group-hover/block:flex", children: _jsxs("div", { className: "absolute -top-[12px] right-0 flex flex-row rounded bg-white dark:bg-slate-800", children: [_jsx(NotebookRunCell, { id: node.key }), _jsx(NotebookClearCell, { id: node.key })] }) })] })), _jsx(MyST, { ast: node.children })] }));
|
|
14
14
|
if (node.visibility === 'hide') {
|
|
15
15
|
return _jsx(Details, { title: "Notebook Cell", children: block });
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myst-theme/jupyter",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@curvenote/ansi-to-react": "^7.0.0",
|
|
30
30
|
"@headlessui/react": "^1.7.15",
|
|
31
31
|
"@heroicons/react": "^2.0.18",
|
|
32
|
-
"@myst-theme/providers": "^1.0
|
|
32
|
+
"@myst-theme/providers": "^1.1.0",
|
|
33
33
|
"@scienceicons/react": "^0.0.13",
|
|
34
34
|
"buffer": "^6.0.3",
|
|
35
35
|
"classnames": "^2.5.1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"myst-frontmatter": "^1.7.9",
|
|
40
40
|
"myst-spec": "^0.0.5",
|
|
41
41
|
"myst-spec-ext": "^1.8.1",
|
|
42
|
-
"myst-to-react": "^1.0
|
|
42
|
+
"myst-to-react": "^1.1.0",
|
|
43
43
|
"nanoid": "^4.0.2",
|
|
44
44
|
"nbtx": "^0.2.3",
|
|
45
45
|
"react-syntax-highlighter": "^15.5.0",
|