@myst-theme/jupyter 0.5.20 → 0.5.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/dist/BinderBadge.js
CHANGED
|
@@ -5,5 +5,5 @@ function BinderBadgeLogo() {
|
|
|
5
5
|
export function BinderBadge({ binder }) {
|
|
6
6
|
if (!binder)
|
|
7
7
|
return null;
|
|
8
|
-
return (_jsx("div", { className: "inline-block m-1 opacity-80 hover:opacity-100", children: _jsx("a", { href: binder, title: `Launch
|
|
8
|
+
return (_jsx("div", { className: "inline-block m-1 opacity-80 hover:opacity-100", children: _jsx("a", { href: binder, title: `Launch Jupyter Session: ${binder}`, target: "_blank", rel: "noopener noreferrer", className: "text-inherit hover:text-inherit", children: _jsx(BinderBadgeLogo, {}) }) }));
|
|
9
9
|
}
|
|
@@ -37,7 +37,7 @@ export function ConnectionStatusTray({ waitForSessions }) {
|
|
|
37
37
|
}
|
|
38
38
|
}, [options, busy, ready, error]);
|
|
39
39
|
const host = ((_a = options === null || options === void 0 ? void 0 : options.thebe) === null || _a === void 0 ? void 0 : _a.useBinder)
|
|
40
|
-
? '
|
|
40
|
+
? 'Jupyter'
|
|
41
41
|
: ((_b = options === null || options === void 0 ? void 0 : options.thebe) === null || _b === void 0 ? void 0 : _b.useJupyterLite)
|
|
42
42
|
? 'JupyterLite'
|
|
43
43
|
: 'Local Server';
|
package/dist/controls/Buttons.js
CHANGED
|
@@ -26,9 +26,9 @@ export function LaunchBinder({ type, location }) {
|
|
|
26
26
|
if (ready) {
|
|
27
27
|
// we expect ?token= to be in the url
|
|
28
28
|
const userServerUrl = getUserServerUrl(location);
|
|
29
|
-
return (_jsx("a", { ref: autoClickRef, className: btnStyles, href: userServerUrl, target: "_blank", rel: "noopener noreferrer", title: "Binder server is available, click to open in a new tab", children: _jsxs("div", { className: "flex items-center h-full", children: [icon, _jsx("span", { children: "Open in
|
|
29
|
+
return (_jsx("a", { ref: autoClickRef, className: btnStyles, href: userServerUrl, target: "_blank", rel: "noopener noreferrer", title: "Binder server is available, click to open in a new tab", children: _jsxs("div", { className: "flex items-center h-full", children: [icon, _jsx("span", { children: "Open in Jupyter" })] }) }));
|
|
30
30
|
}
|
|
31
|
-
let label = 'Launch
|
|
31
|
+
let label = 'Launch Jupyter';
|
|
32
32
|
let title = 'Click to start a new compute session';
|
|
33
33
|
if (error) {
|
|
34
34
|
label = 'Launch Error';
|
|
@@ -36,7 +36,7 @@ export function LaunchBinder({ type, location }) {
|
|
|
36
36
|
}
|
|
37
37
|
else if (connecting) {
|
|
38
38
|
label = 'Launching...';
|
|
39
|
-
title = '
|
|
39
|
+
title = 'Starting a jupyter server, please wait';
|
|
40
40
|
}
|
|
41
41
|
return (_jsx(BinderButton, { className: btnStyles, icon: icon, label: label, title: title, busy: connecting, error: !!error, onClick: handleStart }));
|
|
42
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myst-theme/jupyter",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@curvenote/ansi-to-react": "^7.0.0",
|
|
26
26
|
"@headlessui/react": "^1.7.15",
|
|
27
27
|
"@heroicons/react": "^2.0.18",
|
|
28
|
-
"@myst-theme/providers": "^0.5.
|
|
28
|
+
"@myst-theme/providers": "^0.5.22",
|
|
29
29
|
"@scienceicons/react": "^0.0.6",
|
|
30
30
|
"buffer": "^6.0.3",
|
|
31
31
|
"classnames": "^2.3.2",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"myst-frontmatter": "^1.1.18",
|
|
35
35
|
"myst-spec": "^0.0.4",
|
|
36
36
|
"myst-spec-ext": "^1.1.18",
|
|
37
|
-
"myst-to-react": "^0.5.
|
|
37
|
+
"myst-to-react": "^0.5.22",
|
|
38
38
|
"nanoid": "^4.0.2",
|
|
39
39
|
"nbtx": "^0.2.3",
|
|
40
40
|
"react-syntax-highlighter": "^15.5.0",
|
|
41
41
|
"swr": "^2.1.5",
|
|
42
|
-
"thebe-core": "^0.4.
|
|
43
|
-
"thebe-lite": "^0.4.
|
|
44
|
-
"thebe-react": "^0.4.
|
|
42
|
+
"thebe-core": "^0.4.5",
|
|
43
|
+
"thebe-lite": "^0.4.5",
|
|
44
|
+
"thebe-react": "^0.4.5",
|
|
45
45
|
"unist-util-select": "^4.0.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|