hyperbook 0.83.0 → 0.84.1
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/assets/client.js +2 -2
- package/dist/assets/cloud.js +759 -0
- package/dist/assets/shell.css +194 -0
- package/dist/assets/store.js +149 -23
- package/dist/index.js +264 -3
- package/dist/locales/de.json +21 -1
- package/dist/locales/en.json +21 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -178911,7 +178911,27 @@ var en_default = {
|
|
|
178911
178911
|
"typst-filename-exists": "File already exists",
|
|
178912
178912
|
"typst-file-replace": "Replace existing file?",
|
|
178913
178913
|
"typst-binary-files": "Binary Files",
|
|
178914
|
-
"typst-no-binary-files": "No binary files"
|
|
178914
|
+
"typst-no-binary-files": "No binary files",
|
|
178915
|
+
"user-login-title": "Login",
|
|
178916
|
+
"user-username": "Username",
|
|
178917
|
+
"user-password": "Password",
|
|
178918
|
+
"user-login": "Login",
|
|
178919
|
+
"user-info-title": "User Info",
|
|
178920
|
+
"user-status": "Status",
|
|
178921
|
+
"user-saved": "Saved",
|
|
178922
|
+
"user-saving": "Saving...",
|
|
178923
|
+
"user-save-error": "Save Error",
|
|
178924
|
+
"user-unsaved": "Unsaved changes",
|
|
178925
|
+
"user-offline": "Offline",
|
|
178926
|
+
"user-offline-queued": "Saved locally",
|
|
178927
|
+
"user-save": "Save Now",
|
|
178928
|
+
"user-logout": "Logout",
|
|
178929
|
+
"user-login-required": "Username and password required",
|
|
178930
|
+
"user-login-failed": "Login failed",
|
|
178931
|
+
"user-logout-confirm": "Are you sure you want to logout?",
|
|
178932
|
+
"user-readonly": "Read-Only Mode",
|
|
178933
|
+
"user-impersonating": "Impersonating",
|
|
178934
|
+
"user-exit-impersonation": "Exit Impersonation"
|
|
178915
178935
|
};
|
|
178916
178936
|
|
|
178917
178937
|
// locales/de.json
|
|
@@ -178992,7 +179012,27 @@ var de_default = {
|
|
|
178992
179012
|
"typst-filename-exists": "Datei existiert bereits",
|
|
178993
179013
|
"typst-file-replace": "Existierende Datei ersetzen?",
|
|
178994
179014
|
"typst-binary-files": "Bin\xE4rdateien",
|
|
178995
|
-
"typst-no-binary-files": "Keine Bin\xE4rdateien"
|
|
179015
|
+
"typst-no-binary-files": "Keine Bin\xE4rdateien",
|
|
179016
|
+
"user-login-title": "Anmelden",
|
|
179017
|
+
"user-username": "Benutzername",
|
|
179018
|
+
"user-password": "Passwort",
|
|
179019
|
+
"user-login": "Anmelden",
|
|
179020
|
+
"user-info-title": "Benutzer Info",
|
|
179021
|
+
"user-status": "Status",
|
|
179022
|
+
"user-saved": "Gespeichert",
|
|
179023
|
+
"user-saving": "Speichere...",
|
|
179024
|
+
"user-save-error": "Fehler beim Speichern",
|
|
179025
|
+
"user-unsaved": "Ungespeicherte \xC4nderungen",
|
|
179026
|
+
"user-offline": "Offline",
|
|
179027
|
+
"user-offline-queued": "Lokal gespeichert",
|
|
179028
|
+
"user-save": "Jetzt speichern",
|
|
179029
|
+
"user-logout": "Abmelden",
|
|
179030
|
+
"user-login-required": "Benutzername und Passwort erforderlich",
|
|
179031
|
+
"user-login-failed": "Anmeldung fehlgeschlagen",
|
|
179032
|
+
"user-logout-confirm": "M\xF6chten Sie sich wirklich abmelden?",
|
|
179033
|
+
"user-readonly": "Nur-Lesen-Modus",
|
|
179034
|
+
"user-impersonating": "Angemeldet als",
|
|
179035
|
+
"user-exit-impersonation": "Identit\xE4tswechsel beenden"
|
|
178996
179036
|
};
|
|
178997
179037
|
|
|
178998
179038
|
// src/i18n.ts
|
|
@@ -180308,6 +180348,7 @@ window.Prism.manual = true;`
|
|
|
180308
180348
|
type: "raw",
|
|
180309
180349
|
value: `
|
|
180310
180350
|
HYPERBOOK_ASSETS = "${makeUrl("/", "assets")}"
|
|
180351
|
+
${ctx.config.cloud ? `HYPERBOOK_CLOUD = ${JSON.stringify(ctx.config.cloud).replace(/</g, "\\u003c")}` : ""}
|
|
180311
180352
|
`
|
|
180312
180353
|
}
|
|
180313
180354
|
]
|
|
@@ -180392,6 +180433,17 @@ HYPERBOOK_ASSETS = "${makeUrl("/", "assets")}"
|
|
|
180392
180433
|
properties: {},
|
|
180393
180434
|
children: [
|
|
180394
180435
|
...originalChildren,
|
|
180436
|
+
...ctx.config.cloud ? [
|
|
180437
|
+
{
|
|
180438
|
+
type: "element",
|
|
180439
|
+
tagName: "script",
|
|
180440
|
+
properties: {
|
|
180441
|
+
src: makeUrl(["cloud.js"], "assets"),
|
|
180442
|
+
defer: true
|
|
180443
|
+
},
|
|
180444
|
+
children: []
|
|
180445
|
+
}
|
|
180446
|
+
] : [],
|
|
180395
180447
|
{
|
|
180396
180448
|
type: "element",
|
|
180397
180449
|
tagName: "script",
|
|
@@ -181391,6 +181443,215 @@ var makeHeaderElements = (ctx) => {
|
|
|
181391
181443
|
},
|
|
181392
181444
|
children: []
|
|
181393
181445
|
});
|
|
181446
|
+
if (config2.cloud) {
|
|
181447
|
+
elements.push({
|
|
181448
|
+
type: "element",
|
|
181449
|
+
tagName: "button",
|
|
181450
|
+
properties: {
|
|
181451
|
+
id: "user-toggle",
|
|
181452
|
+
class: "icon-button",
|
|
181453
|
+
title: "User",
|
|
181454
|
+
onclick: "hyperbook.cloud.userToggle()"
|
|
181455
|
+
},
|
|
181456
|
+
children: [
|
|
181457
|
+
{
|
|
181458
|
+
type: "element",
|
|
181459
|
+
tagName: "div",
|
|
181460
|
+
properties: {
|
|
181461
|
+
class: "user-icon"
|
|
181462
|
+
},
|
|
181463
|
+
children: []
|
|
181464
|
+
}
|
|
181465
|
+
]
|
|
181466
|
+
});
|
|
181467
|
+
elements.push({
|
|
181468
|
+
type: "element",
|
|
181469
|
+
tagName: "side-drawer",
|
|
181470
|
+
properties: {
|
|
181471
|
+
id: "user-drawer",
|
|
181472
|
+
right: true
|
|
181473
|
+
},
|
|
181474
|
+
children: [
|
|
181475
|
+
{
|
|
181476
|
+
type: "element",
|
|
181477
|
+
tagName: "div",
|
|
181478
|
+
properties: {
|
|
181479
|
+
class: "user-drawer-content"
|
|
181480
|
+
},
|
|
181481
|
+
children: [
|
|
181482
|
+
{
|
|
181483
|
+
type: "element",
|
|
181484
|
+
tagName: "div",
|
|
181485
|
+
properties: {
|
|
181486
|
+
id: "user-login-form",
|
|
181487
|
+
class: "user-form"
|
|
181488
|
+
},
|
|
181489
|
+
children: [
|
|
181490
|
+
{
|
|
181491
|
+
type: "element",
|
|
181492
|
+
tagName: "h3",
|
|
181493
|
+
properties: {},
|
|
181494
|
+
children: [
|
|
181495
|
+
{
|
|
181496
|
+
type: "text",
|
|
181497
|
+
value: i18n.get("user-login-title")
|
|
181498
|
+
}
|
|
181499
|
+
]
|
|
181500
|
+
},
|
|
181501
|
+
{
|
|
181502
|
+
type: "element",
|
|
181503
|
+
tagName: "input",
|
|
181504
|
+
properties: {
|
|
181505
|
+
type: "text",
|
|
181506
|
+
id: "user-username",
|
|
181507
|
+
placeholder: i18n.get("user-username")
|
|
181508
|
+
},
|
|
181509
|
+
children: []
|
|
181510
|
+
},
|
|
181511
|
+
{
|
|
181512
|
+
type: "element",
|
|
181513
|
+
tagName: "input",
|
|
181514
|
+
properties: {
|
|
181515
|
+
type: "password",
|
|
181516
|
+
id: "user-password",
|
|
181517
|
+
placeholder: i18n.get("user-password")
|
|
181518
|
+
},
|
|
181519
|
+
children: []
|
|
181520
|
+
},
|
|
181521
|
+
{
|
|
181522
|
+
type: "element",
|
|
181523
|
+
tagName: "button",
|
|
181524
|
+
properties: {
|
|
181525
|
+
onclick: "hyperbook.cloud.login()"
|
|
181526
|
+
},
|
|
181527
|
+
children: [
|
|
181528
|
+
{
|
|
181529
|
+
type: "text",
|
|
181530
|
+
value: i18n.get("user-login")
|
|
181531
|
+
}
|
|
181532
|
+
]
|
|
181533
|
+
},
|
|
181534
|
+
{
|
|
181535
|
+
type: "element",
|
|
181536
|
+
tagName: "div",
|
|
181537
|
+
properties: {
|
|
181538
|
+
id: "user-login-error",
|
|
181539
|
+
class: "user-error"
|
|
181540
|
+
},
|
|
181541
|
+
children: []
|
|
181542
|
+
}
|
|
181543
|
+
]
|
|
181544
|
+
},
|
|
181545
|
+
{
|
|
181546
|
+
type: "element",
|
|
181547
|
+
tagName: "div",
|
|
181548
|
+
properties: {
|
|
181549
|
+
id: "user-info",
|
|
181550
|
+
class: "user-info hidden"
|
|
181551
|
+
},
|
|
181552
|
+
children: [
|
|
181553
|
+
{
|
|
181554
|
+
type: "element",
|
|
181555
|
+
tagName: "h3",
|
|
181556
|
+
properties: {},
|
|
181557
|
+
children: [
|
|
181558
|
+
{
|
|
181559
|
+
type: "text",
|
|
181560
|
+
value: i18n.get("user-info-title")
|
|
181561
|
+
}
|
|
181562
|
+
]
|
|
181563
|
+
},
|
|
181564
|
+
{
|
|
181565
|
+
type: "element",
|
|
181566
|
+
tagName: "p",
|
|
181567
|
+
properties: {},
|
|
181568
|
+
children: [
|
|
181569
|
+
{
|
|
181570
|
+
type: "element",
|
|
181571
|
+
tagName: "strong",
|
|
181572
|
+
properties: {},
|
|
181573
|
+
children: [
|
|
181574
|
+
{
|
|
181575
|
+
type: "text",
|
|
181576
|
+
value: i18n.get("user-username") + ": "
|
|
181577
|
+
}
|
|
181578
|
+
]
|
|
181579
|
+
},
|
|
181580
|
+
{
|
|
181581
|
+
type: "element",
|
|
181582
|
+
tagName: "span",
|
|
181583
|
+
properties: {
|
|
181584
|
+
id: "user-display-name"
|
|
181585
|
+
},
|
|
181586
|
+
children: []
|
|
181587
|
+
}
|
|
181588
|
+
]
|
|
181589
|
+
},
|
|
181590
|
+
{
|
|
181591
|
+
type: "element",
|
|
181592
|
+
tagName: "p",
|
|
181593
|
+
properties: {},
|
|
181594
|
+
children: [
|
|
181595
|
+
{
|
|
181596
|
+
type: "element",
|
|
181597
|
+
tagName: "strong",
|
|
181598
|
+
properties: {},
|
|
181599
|
+
children: [
|
|
181600
|
+
{
|
|
181601
|
+
type: "text",
|
|
181602
|
+
value: i18n.get("user-status") + ": "
|
|
181603
|
+
}
|
|
181604
|
+
]
|
|
181605
|
+
},
|
|
181606
|
+
{
|
|
181607
|
+
type: "element",
|
|
181608
|
+
tagName: "span",
|
|
181609
|
+
properties: {
|
|
181610
|
+
id: "user-save-status"
|
|
181611
|
+
},
|
|
181612
|
+
children: [
|
|
181613
|
+
{
|
|
181614
|
+
type: "text",
|
|
181615
|
+
value: i18n.get("user-saved")
|
|
181616
|
+
}
|
|
181617
|
+
]
|
|
181618
|
+
}
|
|
181619
|
+
]
|
|
181620
|
+
},
|
|
181621
|
+
{
|
|
181622
|
+
type: "element",
|
|
181623
|
+
tagName: "button",
|
|
181624
|
+
properties: {
|
|
181625
|
+
onclick: "hyperbook.cloud.save()"
|
|
181626
|
+
},
|
|
181627
|
+
children: [
|
|
181628
|
+
{
|
|
181629
|
+
type: "text",
|
|
181630
|
+
value: i18n.get("user-save")
|
|
181631
|
+
}
|
|
181632
|
+
]
|
|
181633
|
+
},
|
|
181634
|
+
{
|
|
181635
|
+
type: "element",
|
|
181636
|
+
tagName: "button",
|
|
181637
|
+
properties: {
|
|
181638
|
+
onclick: "hyperbook.cloud.logout()",
|
|
181639
|
+
class: "logout-btn"
|
|
181640
|
+
},
|
|
181641
|
+
children: [
|
|
181642
|
+
{
|
|
181643
|
+
type: "text",
|
|
181644
|
+
value: i18n.get("user-logout")
|
|
181645
|
+
}
|
|
181646
|
+
]
|
|
181647
|
+
}
|
|
181648
|
+
]
|
|
181649
|
+
}
|
|
181650
|
+
]
|
|
181651
|
+
}
|
|
181652
|
+
]
|
|
181653
|
+
});
|
|
181654
|
+
}
|
|
181394
181655
|
return [
|
|
181395
181656
|
{
|
|
181396
181657
|
type: "element",
|
|
@@ -202562,7 +202823,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
|
|
|
202562
202823
|
/***/ ((module) => {
|
|
202563
202824
|
|
|
202564
202825
|
"use strict";
|
|
202565
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.
|
|
202826
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.84.1","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"}}');
|
|
202566
202827
|
|
|
202567
202828
|
/***/ })
|
|
202568
202829
|
|
package/dist/locales/de.json
CHANGED
|
@@ -75,5 +75,25 @@
|
|
|
75
75
|
"typst-filename-exists": "Datei existiert bereits",
|
|
76
76
|
"typst-file-replace": "Existierende Datei ersetzen?",
|
|
77
77
|
"typst-binary-files": "Binärdateien",
|
|
78
|
-
"typst-no-binary-files": "Keine Binärdateien"
|
|
78
|
+
"typst-no-binary-files": "Keine Binärdateien",
|
|
79
|
+
"user-login-title": "Anmelden",
|
|
80
|
+
"user-username": "Benutzername",
|
|
81
|
+
"user-password": "Passwort",
|
|
82
|
+
"user-login": "Anmelden",
|
|
83
|
+
"user-info-title": "Benutzer Info",
|
|
84
|
+
"user-status": "Status",
|
|
85
|
+
"user-saved": "Gespeichert",
|
|
86
|
+
"user-saving": "Speichere...",
|
|
87
|
+
"user-save-error": "Fehler beim Speichern",
|
|
88
|
+
"user-unsaved": "Ungespeicherte Änderungen",
|
|
89
|
+
"user-offline": "Offline",
|
|
90
|
+
"user-offline-queued": "Lokal gespeichert",
|
|
91
|
+
"user-save": "Jetzt speichern",
|
|
92
|
+
"user-logout": "Abmelden",
|
|
93
|
+
"user-login-required": "Benutzername und Passwort erforderlich",
|
|
94
|
+
"user-login-failed": "Anmeldung fehlgeschlagen",
|
|
95
|
+
"user-logout-confirm": "Möchten Sie sich wirklich abmelden?",
|
|
96
|
+
"user-readonly": "Nur-Lesen-Modus",
|
|
97
|
+
"user-impersonating": "Angemeldet als",
|
|
98
|
+
"user-exit-impersonation": "Identitätswechsel beenden"
|
|
79
99
|
}
|
package/dist/locales/en.json
CHANGED
|
@@ -75,5 +75,25 @@
|
|
|
75
75
|
"typst-filename-exists": "File already exists",
|
|
76
76
|
"typst-file-replace": "Replace existing file?",
|
|
77
77
|
"typst-binary-files": "Binary Files",
|
|
78
|
-
"typst-no-binary-files": "No binary files"
|
|
78
|
+
"typst-no-binary-files": "No binary files",
|
|
79
|
+
"user-login-title": "Login",
|
|
80
|
+
"user-username": "Username",
|
|
81
|
+
"user-password": "Password",
|
|
82
|
+
"user-login": "Login",
|
|
83
|
+
"user-info-title": "User Info",
|
|
84
|
+
"user-status": "Status",
|
|
85
|
+
"user-saved": "Saved",
|
|
86
|
+
"user-saving": "Saving...",
|
|
87
|
+
"user-save-error": "Save Error",
|
|
88
|
+
"user-unsaved": "Unsaved changes",
|
|
89
|
+
"user-offline": "Offline",
|
|
90
|
+
"user-offline-queued": "Saved locally",
|
|
91
|
+
"user-save": "Save Now",
|
|
92
|
+
"user-logout": "Logout",
|
|
93
|
+
"user-login-required": "Username and password required",
|
|
94
|
+
"user-login-failed": "Login failed",
|
|
95
|
+
"user-logout-confirm": "Are you sure you want to logout?",
|
|
96
|
+
"user-readonly": "Read-Only Mode",
|
|
97
|
+
"user-impersonating": "Impersonating",
|
|
98
|
+
"user-exit-impersonation": "Exit Impersonation"
|
|
79
99
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyperbook",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.1",
|
|
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
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"@hyperbook/
|
|
62
|
-
"@hyperbook/
|
|
59
|
+
"create-hyperbook": "0.3.4",
|
|
60
|
+
"@hyperbook/markdown": "0.55.1",
|
|
61
|
+
"@hyperbook/types": "0.22.0",
|
|
62
|
+
"@hyperbook/fs": "0.24.2"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"version": "pnpm build",
|