@myst-theme/site 0.3.4 → 0.3.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myst-theme/site",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"main": "./src/index.ts",
|
|
5
5
|
"types": "./src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@headlessui/react": "^1.7.15",
|
|
18
18
|
"@heroicons/react": "^2.0.18",
|
|
19
|
-
"@myst-theme/diagrams": "^0.3.
|
|
20
|
-
"@myst-theme/frontmatter": "^0.3.
|
|
21
|
-
"@myst-theme/jupyter": "^0.3.
|
|
22
|
-
"@myst-theme/providers": "^0.3.
|
|
19
|
+
"@myst-theme/diagrams": "^0.3.5",
|
|
20
|
+
"@myst-theme/frontmatter": "^0.3.5",
|
|
21
|
+
"@myst-theme/jupyter": "^0.3.5",
|
|
22
|
+
"@myst-theme/providers": "^0.3.5",
|
|
23
23
|
"classnames": "^2.3.2",
|
|
24
24
|
"lodash.throttle": "^4.1.1",
|
|
25
25
|
"myst-common": "^1.0.1",
|
|
26
26
|
"myst-config": "^1.0.0",
|
|
27
|
-
"myst-demo": "^0.3.
|
|
28
|
-
"myst-to-react": "^0.3.
|
|
27
|
+
"myst-demo": "^0.3.5",
|
|
28
|
+
"myst-to-react": "^0.3.5",
|
|
29
29
|
"nbtx": "^0.2.3",
|
|
30
30
|
"node-cache": "^5.1.2",
|
|
31
31
|
"node-fetch": "^2.6.11",
|
|
32
|
-
"thebe-react": "^0.2.
|
|
32
|
+
"thebe-react": "^0.2.9",
|
|
33
33
|
"unist-util-select": "^4.0.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
@@ -165,6 +165,7 @@ export const TableOfContents = ({
|
|
|
165
165
|
className={classNames(
|
|
166
166
|
'fixed xl:article-grid article-grid-gap xl:w-screen xl:pointer-events-none overflow-auto max-xl:min-w-[300px]',
|
|
167
167
|
{ hidden: !open },
|
|
168
|
+
{ 'z-30': open },
|
|
168
169
|
)}
|
|
169
170
|
style={{
|
|
170
171
|
top: top ?? 0,
|
|
@@ -92,7 +92,7 @@ function NavItem({ item }: { item: SiteNavItem }) {
|
|
|
92
92
|
leaveFrom="transform opacity-100 scale-100"
|
|
93
93
|
leaveTo="transform opacity-0 scale-95"
|
|
94
94
|
>
|
|
95
|
-
<Menu.Items className="absolute w-48 py-1 mt-2
|
|
95
|
+
<Menu.Items className="absolute w-48 py-1 mt-2 bg-white rounded-sm shadow-lg origin-top-left left-4 ring-1 ring-black ring-opacity-5 focus:outline-none">
|
|
96
96
|
{item.children?.map((action) => (
|
|
97
97
|
<Menu.Item key={action.url}>
|
|
98
98
|
{/* This is really ugly, BUT, the action needs to be defined HERE or the click away doesn't work for some reason */}
|
|
@@ -160,7 +160,7 @@ function ActionMenu({ actions }: { actions?: SiteManifest['actions'] }) {
|
|
|
160
160
|
leaveFrom="transform opacity-100 scale-100"
|
|
161
161
|
leaveTo="transform opacity-0 scale-95"
|
|
162
162
|
>
|
|
163
|
-
<Menu.Items className="absolute right-0 w-48 py-1 mt-2
|
|
163
|
+
<Menu.Items className="absolute right-0 w-48 py-1 mt-2 bg-white rounded-sm shadow-lg origin-top-right ring-1 ring-black ring-opacity-5 focus:outline-none">
|
|
164
164
|
{actions?.map((action) => (
|
|
165
165
|
<Menu.Item key={action.url}>
|
|
166
166
|
{({ active }) => (
|
package/src/pages/Article.tsx
CHANGED
|
@@ -40,7 +40,7 @@ export const ArticlePage = React.memo(function ({ article }: { article: PageLoad
|
|
|
40
40
|
</div>
|
|
41
41
|
)}
|
|
42
42
|
{canCompute && article.kind === SourceFileKind.Notebook && <NotebookToolbar showLaunch />}
|
|
43
|
-
{canCompute && article.kind === SourceFileKind.Article && <NotebookToolbar />}
|
|
43
|
+
{/* {canCompute && article.kind === SourceFileKind.Article && <NotebookToolbar />} */}
|
|
44
44
|
<ContentBlocks pageKind={article.kind} mdast={article.mdast as GenericParent} />
|
|
45
45
|
<Bibliography />
|
|
46
46
|
<ConnectionStatusTray />
|
package/src/pages/Root.tsx
CHANGED
|
@@ -60,7 +60,7 @@ export function Document({
|
|
|
60
60
|
analytics_plausible={config?.analytics_plausible}
|
|
61
61
|
/>
|
|
62
62
|
</head>
|
|
63
|
-
<body className="m-0 transition-colors duration-500
|
|
63
|
+
<body className="m-0 bg-white transition-colors duration-500 dark:bg-stone-900">
|
|
64
64
|
<ThemeProvider theme={theme} renderers={renderers} {...links}>
|
|
65
65
|
<BaseUrlProvider baseurl={baseurl}>
|
|
66
66
|
<ThebeBundleLoaderProvider loadThebeLite publicPath={baseurl}>
|