@myst-theme/site 0.0.19 → 0.1.22
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 -14
- package/src/components/Navigation/TableOfContents.tsx +3 -3
- package/src/index.ts +0 -1
- package/src/types.ts +1 -0
- package/src/store.ts +0 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myst-theme/site",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"main": "./src/index.ts",
|
|
5
5
|
"types": "./src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,21 +14,19 @@
|
|
|
14
14
|
"lint:format": "prettier --check \"src/**/*.{ts,tsx,md}\""
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@curvenote/connect": "^0.0.7",
|
|
18
17
|
"@curvenote/icons": "^0.0.3",
|
|
19
|
-
"@
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"@myst-theme/
|
|
23
|
-
"@myst-theme/
|
|
24
|
-
"@myst-theme/
|
|
25
|
-
"@myst-theme/providers": "^0.1.20",
|
|
18
|
+
"@headlessui/react": "^1.7.8",
|
|
19
|
+
"@heroicons/react": "^2.0.14",
|
|
20
|
+
"@myst-theme/diagrams": "^0.1.22",
|
|
21
|
+
"@myst-theme/frontmatter": "^0.1.22",
|
|
22
|
+
"@myst-theme/jupyter": "^0.1.22",
|
|
23
|
+
"@myst-theme/providers": "^0.1.22",
|
|
26
24
|
"classnames": "^2.3.2",
|
|
27
25
|
"lodash.throttle": "^4.1.1",
|
|
28
26
|
"myst-common": "^0.0.12",
|
|
29
|
-
"myst-config": "^0.0.
|
|
30
|
-
"myst-demo": "^0.1.
|
|
31
|
-
"myst-to-react": "^0.1.
|
|
27
|
+
"myst-config": "^0.0.8",
|
|
28
|
+
"myst-demo": "^0.1.22",
|
|
29
|
+
"myst-to-react": "^0.1.22",
|
|
32
30
|
"mystjs": "^0.0.15",
|
|
33
31
|
"nbtx": "^0.2.3",
|
|
34
32
|
"node-cache": "^5.1.2",
|
|
@@ -36,8 +34,8 @@
|
|
|
36
34
|
"unist-util-select": "^4.0.1"
|
|
37
35
|
},
|
|
38
36
|
"peerDependencies": {
|
|
39
|
-
"@remix-run/node": "^1.
|
|
40
|
-
"@remix-run/react": "^1.
|
|
37
|
+
"@remix-run/node": "^1.12.0",
|
|
38
|
+
"@remix-run/react": "^1.12.0",
|
|
41
39
|
"@types/react": "^16.8 || ^17.0 || ^18.0",
|
|
42
40
|
"@types/react-dom": "^16.8 || ^17.0 || ^18.0",
|
|
43
41
|
"react": "^16.8 || ^17.0 || ^18.0",
|
|
@@ -82,11 +82,11 @@ const Headings = ({ folder, headings, sections }: Props) => {
|
|
|
82
82
|
path={heading.path}
|
|
83
83
|
isIndex={heading.level === 'index'}
|
|
84
84
|
>
|
|
85
|
-
{heading.title}
|
|
85
|
+
{heading.short_title || heading.title}
|
|
86
86
|
</HeadingLink>
|
|
87
87
|
) : (
|
|
88
88
|
<h5 className="text-slate-900 font-semibold my-2 text-md leading-6 dark:text-slate-100 break-words">
|
|
89
|
-
{heading.title}
|
|
89
|
+
{heading.short_title || heading.title}
|
|
90
90
|
</h5>
|
|
91
91
|
)}
|
|
92
92
|
</li>
|
|
@@ -94,7 +94,7 @@ const Headings = ({ folder, headings, sections }: Props) => {
|
|
|
94
94
|
}
|
|
95
95
|
return (
|
|
96
96
|
<li key={sec.slug} className={classNames('p-1 my-2 lg:hidden', HEADING_CLASSES)}>
|
|
97
|
-
<HeadingLink path={`/${sec.slug}`}>{sec.title}</HeadingLink>
|
|
97
|
+
<HeadingLink path={`/${sec.slug}`}>{sec.short_title || sec.title}</HeadingLink>
|
|
98
98
|
</li>
|
|
99
99
|
);
|
|
100
100
|
})}
|
package/src/index.ts
CHANGED
package/src/types.ts
CHANGED
package/src/store.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { applyMiddleware, createStore, combineReducers } from 'redux';
|
|
2
|
-
import thunkMiddleware from 'redux-thunk';
|
|
3
|
-
import type { types } from '@curvenote/runtime';
|
|
4
|
-
import runtime from '@curvenote/runtime';
|
|
5
|
-
import type { HostState } from '@curvenote/connect';
|
|
6
|
-
import { host } from '@curvenote/connect';
|
|
7
|
-
|
|
8
|
-
export interface State {
|
|
9
|
-
runtime: types.State;
|
|
10
|
-
app: HostState;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function createCurvenoteReduxStore() {
|
|
14
|
-
return createStore(
|
|
15
|
-
combineReducers({
|
|
16
|
-
runtime: runtime.reducer,
|
|
17
|
-
app: host.reducer,
|
|
18
|
-
}),
|
|
19
|
-
applyMiddleware(thunkMiddleware, runtime.triggerEvaluate, runtime.dangerousEvaluatation),
|
|
20
|
-
);
|
|
21
|
-
}
|