hyperbook 0.88.2 → 0.89.0
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.
|
@@ -29,10 +29,10 @@ hyperbook.h5p = (function () {
|
|
|
29
29
|
librariesPath: `${assets}/libraries`,
|
|
30
30
|
saveFreq: 1,
|
|
31
31
|
contentUserData: undefined,
|
|
32
|
-
frame:
|
|
33
|
-
copyright:
|
|
32
|
+
frame: true,
|
|
33
|
+
copyright: true,
|
|
34
34
|
export: false,
|
|
35
|
-
icon:
|
|
35
|
+
icon: true,
|
|
36
36
|
embed: false,
|
|
37
37
|
};
|
|
38
38
|
|
package/dist/assets/shell.css
CHANGED
|
@@ -295,6 +295,13 @@ a.jump.previous::before {
|
|
|
295
295
|
font-weight: bold;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
+
.sidebar>.author>.author-version,
|
|
299
|
+
.nav-drawer-content>.author>.author-version {
|
|
300
|
+
display: block;
|
|
301
|
+
font-size: 0.7rem;
|
|
302
|
+
opacity: 0.6;
|
|
303
|
+
}
|
|
304
|
+
|
|
298
305
|
.mobile-nav {
|
|
299
306
|
display: none;
|
|
300
307
|
margin-left: 1rem;
|
package/dist/index.js
CHANGED
|
@@ -55625,6 +55625,7 @@ function makeBaseCtx(root, hyperbookJson, basePath, rootProject) {
|
|
|
55625
55625
|
return {
|
|
55626
55626
|
root,
|
|
55627
55627
|
config: hyperbookJson,
|
|
55628
|
+
version: package_json_1.default.version,
|
|
55628
55629
|
makeUrl: (p, base, page, options = { versioned: true }) => {
|
|
55629
55630
|
if (typeof p === "string") {
|
|
55630
55631
|
if (p.includes("://") || p.startsWith("data:")) {
|
|
@@ -178758,6 +178759,24 @@ ${ctx.config.cloud ? `HYPERBOOK_CLOUD = ${JSON.stringify(ctx.config.cloud).repla
|
|
|
178758
178759
|
}
|
|
178759
178760
|
]
|
|
178760
178761
|
},
|
|
178762
|
+
...(ctx.config.version ?? "console") === "console" && ctx.version ? [
|
|
178763
|
+
{
|
|
178764
|
+
type: "element",
|
|
178765
|
+
tagName: "script",
|
|
178766
|
+
properties: {},
|
|
178767
|
+
children: [
|
|
178768
|
+
{
|
|
178769
|
+
type: "raw",
|
|
178770
|
+
value: `
|
|
178771
|
+
console.log(
|
|
178772
|
+
"%c" +
|
|
178773
|
+
"Hyperbook v${ctx.version}",
|
|
178774
|
+
"font-family: monospace; font-size: 16px;"
|
|
178775
|
+
);`
|
|
178776
|
+
}
|
|
178777
|
+
]
|
|
178778
|
+
}
|
|
178779
|
+
] : [],
|
|
178761
178780
|
{
|
|
178762
178781
|
type: "element",
|
|
178763
178782
|
tagName: "script",
|
|
@@ -178940,6 +178959,52 @@ var resolveEmoji = (text9) => {
|
|
|
178940
178959
|
return github_emojis_default[name] ?? `:${name}:`;
|
|
178941
178960
|
});
|
|
178942
178961
|
};
|
|
178962
|
+
var makeAuthorElement = (ctx) => {
|
|
178963
|
+
const versionMode = ctx.config.version ?? "console";
|
|
178964
|
+
const showTextVersion = versionMode === "text" && ctx.version;
|
|
178965
|
+
const showTooltip = versionMode === "tooltip" && ctx.version;
|
|
178966
|
+
return {
|
|
178967
|
+
type: "element",
|
|
178968
|
+
tagName: "a",
|
|
178969
|
+
properties: {
|
|
178970
|
+
class: "author",
|
|
178971
|
+
href: "https://hyperbook.openpatch.org",
|
|
178972
|
+
...showTooltip ? { title: `Hyperbook v${ctx.version}` } : {}
|
|
178973
|
+
},
|
|
178974
|
+
children: [
|
|
178975
|
+
{
|
|
178976
|
+
type: "text",
|
|
178977
|
+
value: "Powered by "
|
|
178978
|
+
},
|
|
178979
|
+
{
|
|
178980
|
+
type: "element",
|
|
178981
|
+
tagName: "b",
|
|
178982
|
+
properties: {},
|
|
178983
|
+
children: [
|
|
178984
|
+
{
|
|
178985
|
+
type: "text",
|
|
178986
|
+
value: "Hyperbook"
|
|
178987
|
+
}
|
|
178988
|
+
]
|
|
178989
|
+
},
|
|
178990
|
+
...showTextVersion ? [
|
|
178991
|
+
{
|
|
178992
|
+
type: "element",
|
|
178993
|
+
tagName: "span",
|
|
178994
|
+
properties: {
|
|
178995
|
+
class: "author-version"
|
|
178996
|
+
},
|
|
178997
|
+
children: [
|
|
178998
|
+
{
|
|
178999
|
+
type: "text",
|
|
179000
|
+
value: ctx.version
|
|
179001
|
+
}
|
|
179002
|
+
]
|
|
179003
|
+
}
|
|
179004
|
+
] : []
|
|
179005
|
+
]
|
|
179006
|
+
};
|
|
179007
|
+
};
|
|
178943
179008
|
var buildBreadcrumbPath = (ctx) => {
|
|
178944
179009
|
const currentHref = ctx.navigation.current?.href;
|
|
178945
179010
|
if (!currentHref) return [];
|
|
@@ -179540,31 +179605,7 @@ var makeHeaderElements = (ctx) => {
|
|
|
179540
179605
|
},
|
|
179541
179606
|
children: [
|
|
179542
179607
|
...makeNavigationElements(ctx),
|
|
179543
|
-
|
|
179544
|
-
type: "element",
|
|
179545
|
-
tagName: "a",
|
|
179546
|
-
properties: {
|
|
179547
|
-
class: "author",
|
|
179548
|
-
href: "https://hyperbook.openpatch.org"
|
|
179549
|
-
},
|
|
179550
|
-
children: [
|
|
179551
|
-
{
|
|
179552
|
-
type: "text",
|
|
179553
|
-
value: "Powered by "
|
|
179554
|
-
},
|
|
179555
|
-
{
|
|
179556
|
-
type: "element",
|
|
179557
|
-
tagName: "b",
|
|
179558
|
-
properties: {},
|
|
179559
|
-
children: [
|
|
179560
|
-
{
|
|
179561
|
-
type: "text",
|
|
179562
|
-
value: "Hyperbook"
|
|
179563
|
-
}
|
|
179564
|
-
]
|
|
179565
|
-
}
|
|
179566
|
-
]
|
|
179567
|
-
}
|
|
179608
|
+
makeAuthorElement(ctx)
|
|
179568
179609
|
]
|
|
179569
179610
|
}
|
|
179570
179611
|
]
|
|
@@ -180125,31 +180166,7 @@ var makeJump = (ctx) => {
|
|
|
180125
180166
|
var makeSidebar = (ctx) => {
|
|
180126
180167
|
const elements = [
|
|
180127
180168
|
...makeNavigationElements(ctx),
|
|
180128
|
-
|
|
180129
|
-
type: "element",
|
|
180130
|
-
tagName: "a",
|
|
180131
|
-
properties: {
|
|
180132
|
-
class: "author",
|
|
180133
|
-
href: "https://hyperbook.openpatch.org"
|
|
180134
|
-
},
|
|
180135
|
-
children: [
|
|
180136
|
-
{
|
|
180137
|
-
type: "text",
|
|
180138
|
-
value: "Powered by "
|
|
180139
|
-
},
|
|
180140
|
-
{
|
|
180141
|
-
type: "element",
|
|
180142
|
-
tagName: "b",
|
|
180143
|
-
properties: {},
|
|
180144
|
-
children: [
|
|
180145
|
-
{
|
|
180146
|
-
type: "text",
|
|
180147
|
-
value: "Hyperbook"
|
|
180148
|
-
}
|
|
180149
|
-
]
|
|
180150
|
-
}
|
|
180151
|
-
]
|
|
180152
|
-
}
|
|
180169
|
+
makeAuthorElement(ctx)
|
|
180153
180170
|
];
|
|
180154
180171
|
return [
|
|
180155
180172
|
{
|
|
@@ -201531,7 +201548,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
|
|
|
201531
201548
|
/***/ ((module) => {
|
|
201532
201549
|
|
|
201533
201550
|
"use strict";
|
|
201534
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.
|
|
201551
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.89.0","author":"Mike Barkmin","homepage":"https://github.com/openpatch/hyperbook#readme","license":"MIT","bin":{"hyperbook":"./dist/index.js"},"files":["dist"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/openpatch/hyperbook.git","directory":"packages/hyperbook"},"bugs":{"url":"https://github.com/openpatch/hyperbook/issues"},"engines":{"node":">=18"},"scripts":{"version":"pnpm build","lint":"tsc --noEmit","dev":"ncc build ./index.ts -w -o dist/","build":"rimraf dist && ncc build ./index.ts -o ./dist/ --no-cache --no-source-map-register --external favicons --external sharp && node postbuild.mjs"},"dependencies":{"favicons":"^7.2.0"},"devDependencies":{"create-hyperbook":"workspace:*","@hyperbook/fs":"workspace:*","@hyperbook/markdown":"workspace:*","@hyperbook/types":"workspace:*","@pnpm/exportable-manifest":"1000.0.6","@types/archiver":"6.0.3","@types/async-retry":"1.4.9","@types/cross-spawn":"6.0.6","@types/lunr":"^2.3.7","@types/prompts":"2.4.9","@types/tar":"6.1.13","@types/ws":"^8.5.14","@vercel/ncc":"0.38.3","archiver":"7.0.1","async-retry":"1.3.3","chalk":"5.4.1","chokidar":"4.0.3","commander":"12.1.0","cpy":"11.1.0","cross-spawn":"7.0.6","domutils":"^3.2.2","extract-zip":"^2.0.1","got":"12.6.0","htmlparser2":"^10.0.0","lunr":"^2.3.9","lunr-languages":"^1.14.0","mime":"^4.0.6","prompts":"2.4.2","rimraf":"6.0.1","tar":"7.4.3","update-check":"1.5.4","ws":"^8.18.0"}}');
|
|
201535
201552
|
|
|
201536
201553
|
/***/ })
|
|
201537
201554
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyperbook",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.89.0",
|
|
4
4
|
"author": "Mike Barkmin",
|
|
5
5
|
"homepage": "https://github.com/openpatch/hyperbook#readme",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"tar": "7.4.3",
|
|
57
57
|
"update-check": "1.5.4",
|
|
58
58
|
"ws": "^8.18.0",
|
|
59
|
-
"create-hyperbook": "0.3.
|
|
59
|
+
"create-hyperbook": "0.3.6",
|
|
60
60
|
"@hyperbook/fs": "0.25.0",
|
|
61
|
-
"@hyperbook/markdown": "0.
|
|
62
|
-
"@hyperbook/types": "0.
|
|
61
|
+
"@hyperbook/markdown": "0.60.0",
|
|
62
|
+
"@hyperbook/types": "0.23.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"version": "pnpm build",
|