@myst-theme/site 0.3.4 → 0.3.6

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.4",
3
+ "version": "0.3.6",
4
4
  "main": "./src/index.ts",
5
5
  "types": "./src/index.ts",
6
6
  "files": [
@@ -9,27 +9,27 @@
9
9
  "license": "MIT",
10
10
  "sideEffects": false,
11
11
  "scripts": {
12
- "compile": "tsc",
12
+ "compile": "tsc --noEmit",
13
13
  "lint": "eslint src/**/*.ts*",
14
14
  "lint:format": "prettier --check \"src/**/*.{ts,tsx,md}\""
15
15
  },
16
16
  "dependencies": {
17
17
  "@headlessui/react": "^1.7.15",
18
18
  "@heroicons/react": "^2.0.18",
19
- "@myst-theme/diagrams": "^0.3.4",
20
- "@myst-theme/frontmatter": "^0.3.4",
21
- "@myst-theme/jupyter": "^0.3.4",
22
- "@myst-theme/providers": "^0.3.4",
19
+ "@myst-theme/diagrams": "^0.3.6",
20
+ "@myst-theme/frontmatter": "^0.3.6",
21
+ "@myst-theme/jupyter": "^0.3.6",
22
+ "@myst-theme/providers": "^0.3.6",
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.4",
28
- "myst-to-react": "^0.3.4",
27
+ "myst-demo": "^0.3.6",
28
+ "myst-to-react": "^0.3.6",
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.7",
32
+ "thebe-react": "^0.2.9",
33
33
  "unist-util-select": "^4.0.1"
34
34
  },
35
35
  "peerDependencies": {
@@ -23,7 +23,7 @@ export function Navigation({
23
23
  {children}
24
24
  {open && (
25
25
  <div
26
- className="fixed inset-0 bg-black opacity-50"
26
+ className="fixed inset-0 z-30 bg-black opacity-50"
27
27
  style={{ marginTop: top }}
28
28
  onClick={() => setOpen(false)}
29
29
  ></div>
@@ -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 origin-top-left bg-white rounded-sm shadow-lg left-4 ring-1 ring-black ring-opacity-5 focus:outline-none">
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 origin-top-right bg-white rounded-sm shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
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 }) => (
@@ -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 />
@@ -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 bg-white dark:bg-stone-900">
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}>