@myst-theme/site 0.13.1 → 0.13.2
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 +12 -12
- package/src/components/Headers.tsx +9 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myst-theme/site",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@headlessui/react": "^1.7.15",
|
|
23
23
|
"@heroicons/react": "^2.0.18",
|
|
24
|
-
"@myst-theme/common": "^0.13.
|
|
25
|
-
"@myst-theme/diagrams": "^0.13.
|
|
26
|
-
"@myst-theme/frontmatter": "^0.13.
|
|
27
|
-
"@myst-theme/jupyter": "^0.13.
|
|
28
|
-
"@myst-theme/providers": "^0.13.
|
|
29
|
-
"@myst-theme/search": "^0.13.
|
|
24
|
+
"@myst-theme/common": "^0.13.2",
|
|
25
|
+
"@myst-theme/diagrams": "^0.13.2",
|
|
26
|
+
"@myst-theme/frontmatter": "^0.13.2",
|
|
27
|
+
"@myst-theme/jupyter": "^0.13.2",
|
|
28
|
+
"@myst-theme/providers": "^0.13.2",
|
|
29
|
+
"@myst-theme/search": "^0.13.2",
|
|
30
30
|
"@radix-ui/react-collapsible": "^1.0.3",
|
|
31
31
|
"@radix-ui/react-dialog": "^1.0.3",
|
|
32
32
|
"@radix-ui/react-radio-group": "^1.2.0",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"@radix-ui/react-visually-hidden": "^1.1.0",
|
|
36
36
|
"classnames": "^2.3.2",
|
|
37
37
|
"lodash.throttle": "^4.1.1",
|
|
38
|
-
"myst-common": "^1.7.
|
|
39
|
-
"myst-config": "^1.7.
|
|
40
|
-
"myst-demo": "^0.13.
|
|
41
|
-
"myst-spec-ext": "^1.7.
|
|
42
|
-
"myst-to-react": "^0.13.
|
|
38
|
+
"myst-common": "^1.7.2",
|
|
39
|
+
"myst-config": "^1.7.2",
|
|
40
|
+
"myst-demo": "^0.13.2",
|
|
41
|
+
"myst-spec-ext": "^1.7.2",
|
|
42
|
+
"myst-to-react": "^0.13.2",
|
|
43
43
|
"nbtx": "^0.2.3",
|
|
44
44
|
"node-cache": "^5.1.2",
|
|
45
45
|
"node-fetch": "^2.6.11",
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from '@myst-theme/frontmatter';
|
|
8
8
|
import { useGridSystemProvider } from '@myst-theme/providers';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
|
-
import type {
|
|
10
|
+
import type { PageFrontmatterWithDownloads } from '@myst-theme/common';
|
|
11
11
|
import { ThemeButton } from './Navigation/index.js';
|
|
12
12
|
|
|
13
13
|
export function ArticleHeader({
|
|
@@ -16,13 +16,13 @@ export function ArticleHeader({
|
|
|
16
16
|
toggleTheme,
|
|
17
17
|
className,
|
|
18
18
|
}: {
|
|
19
|
-
frontmatter:
|
|
19
|
+
frontmatter: PageFrontmatterWithDownloads;
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
toggleTheme?: boolean;
|
|
22
22
|
className?: string;
|
|
23
23
|
}) {
|
|
24
24
|
const grid = useGridSystemProvider();
|
|
25
|
-
const { subject, venue,
|
|
25
|
+
const { subject, venue, volume, issue, ...rest } = frontmatter ?? {};
|
|
26
26
|
const positionBackground = {
|
|
27
27
|
'col-page-right': grid === 'article-left-grid',
|
|
28
28
|
'col-page': grid === 'article-grid',
|
|
@@ -71,7 +71,12 @@ export function ArticleHeader({
|
|
|
71
71
|
})}
|
|
72
72
|
>
|
|
73
73
|
{subject && <div className={classNames('flex-none pr-2 smallcaps')}>{subject}</div>}
|
|
74
|
-
<Journal
|
|
74
|
+
<Journal
|
|
75
|
+
venue={venue}
|
|
76
|
+
volume={volume}
|
|
77
|
+
issue={issue}
|
|
78
|
+
className="hidden pl-2 border-l md:block"
|
|
79
|
+
/>
|
|
75
80
|
<div className="flex-grow"></div>
|
|
76
81
|
<div className="hidden sm:block">
|
|
77
82
|
<LicenseBadges license={frontmatter?.license} />
|