hyperbook 0.71.5 → 0.72.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 +164 -0
- package/dist/assets/content.css +203 -11
- package/dist/assets/dexie-export-import.js +15 -3497
- package/dist/assets/directive-multievent/multievent.js +2 -0
- package/dist/assets/directive-multievent/style.css +1 -0
- package/dist/index.js +323 -100
- package/dist/locales/de.json +6 -0
- package/dist/locales/en.json +6 -0
- package/package.json +2 -2
|
@@ -964,6 +964,8 @@ var multievent = {
|
|
|
964
964
|
}
|
|
965
965
|
|
|
966
966
|
SK[clNr].style.display = "block";
|
|
967
|
+
SK[clNr].style.visibility = "visible";
|
|
968
|
+
SK[clNr].style.opacity = "1";
|
|
967
969
|
|
|
968
970
|
// Add event listeners to save state on changes
|
|
969
971
|
var allInputs = SK[clNr].getElementsByTagName("input");
|
package/dist/index.js
CHANGED
|
@@ -155917,6 +155917,12 @@ var en_default = {
|
|
|
155917
155917
|
"slideshow-next": "Next",
|
|
155918
155918
|
"slideshow-jump-to": "Jump to {{index}}",
|
|
155919
155919
|
"toggle-bookmark": "Toggle Bookmark",
|
|
155920
|
+
"shell-share": "Share",
|
|
155921
|
+
"share-dialog-title": "Create Shareable URL",
|
|
155922
|
+
"share-dialog-standalone": "Standalone Mode",
|
|
155923
|
+
"share-dialog-select-sections": "Select Sections",
|
|
155924
|
+
"share-dialog-copy-url": "Copy Shareable URL",
|
|
155925
|
+
"share-dialog-url-copied": "URL copied to clipboard!",
|
|
155920
155926
|
"webide-code-preview": "Code Preview",
|
|
155921
155927
|
"webide-html": "HTML",
|
|
155922
155928
|
"webide-css": "CSS",
|
|
@@ -155970,6 +155976,12 @@ var de_default = {
|
|
|
155970
155976
|
"slideshow-next": "Weiter",
|
|
155971
155977
|
"slideshow-jump-to": "Springe zu {{index}}",
|
|
155972
155978
|
"toggle-bookmark": "Lesezeichen umschalten",
|
|
155979
|
+
"shell-share": "Teilen",
|
|
155980
|
+
"share-dialog-title": "Teilbare URL erstellen",
|
|
155981
|
+
"share-dialog-standalone": "Standalone-Modus",
|
|
155982
|
+
"share-dialog-select-sections": "Abschnitte ausw\xE4hlen",
|
|
155983
|
+
"share-dialog-copy-url": "Teilbare URL kopieren",
|
|
155984
|
+
"share-dialog-url-copied": "URL in Zwischenablage kopiert!",
|
|
155973
155985
|
"webide-code-preview": "Code-Vorschau",
|
|
155974
155986
|
"webide-html": "HTML",
|
|
155975
155987
|
"webide-css": "CSS",
|
|
@@ -156132,105 +156144,115 @@ var rehypeTableOfContents_default = (ctx) => () => {
|
|
|
156132
156144
|
return (tree, file) => {
|
|
156133
156145
|
const headings = file.data.headings || [];
|
|
156134
156146
|
const originalChildren = tree.children;
|
|
156135
|
-
const
|
|
156136
|
-
|
|
156137
|
-
|
|
156138
|
-
|
|
156139
|
-
|
|
156140
|
-
|
|
156141
|
-
|
|
156142
|
-
|
|
156147
|
+
const tocButton = {
|
|
156148
|
+
type: "element",
|
|
156149
|
+
tagName: "button",
|
|
156150
|
+
properties: {
|
|
156151
|
+
id: "toc-toggle",
|
|
156152
|
+
onclick: "hyperbook.tocToggle()",
|
|
156153
|
+
title: i18n.get("table-of-contents")
|
|
156154
|
+
},
|
|
156155
|
+
children: [
|
|
156156
|
+
{
|
|
156157
|
+
type: "element",
|
|
156158
|
+
tagName: "div",
|
|
156159
|
+
properties: {
|
|
156160
|
+
class: "bar1"
|
|
156161
|
+
},
|
|
156162
|
+
children: []
|
|
156143
156163
|
},
|
|
156144
|
-
|
|
156145
|
-
|
|
156146
|
-
|
|
156147
|
-
|
|
156148
|
-
|
|
156149
|
-
class: "bar1"
|
|
156150
|
-
},
|
|
156151
|
-
children: []
|
|
156164
|
+
{
|
|
156165
|
+
type: "element",
|
|
156166
|
+
tagName: "div",
|
|
156167
|
+
properties: {
|
|
156168
|
+
class: "bar2"
|
|
156152
156169
|
},
|
|
156153
|
-
|
|
156154
|
-
|
|
156155
|
-
|
|
156156
|
-
|
|
156157
|
-
|
|
156158
|
-
|
|
156159
|
-
|
|
156170
|
+
children: []
|
|
156171
|
+
},
|
|
156172
|
+
{
|
|
156173
|
+
type: "element",
|
|
156174
|
+
tagName: "div",
|
|
156175
|
+
properties: {
|
|
156176
|
+
class: "bar3"
|
|
156160
156177
|
},
|
|
156161
|
-
|
|
156162
|
-
|
|
156163
|
-
|
|
156164
|
-
|
|
156165
|
-
|
|
156166
|
-
|
|
156167
|
-
|
|
156178
|
+
children: []
|
|
156179
|
+
},
|
|
156180
|
+
{
|
|
156181
|
+
type: "element",
|
|
156182
|
+
tagName: "div",
|
|
156183
|
+
properties: {
|
|
156184
|
+
class: "bar4"
|
|
156168
156185
|
},
|
|
156169
|
-
|
|
156170
|
-
|
|
156171
|
-
|
|
156172
|
-
|
|
156173
|
-
|
|
156174
|
-
|
|
156175
|
-
|
|
156176
|
-
|
|
156177
|
-
|
|
156186
|
+
children: []
|
|
156187
|
+
}
|
|
156188
|
+
]
|
|
156189
|
+
};
|
|
156190
|
+
const tocDrawer = {
|
|
156191
|
+
type: "element",
|
|
156192
|
+
tagName: "side-drawer",
|
|
156193
|
+
properties: {
|
|
156194
|
+
id: "toc-drawer",
|
|
156195
|
+
right: true
|
|
156178
156196
|
},
|
|
156197
|
+
children: [
|
|
156198
|
+
{
|
|
156199
|
+
type: "element",
|
|
156200
|
+
tagName: "div",
|
|
156201
|
+
properties: {
|
|
156202
|
+
class: "toc-drawer-content"
|
|
156203
|
+
},
|
|
156204
|
+
children: [
|
|
156205
|
+
{
|
|
156206
|
+
type: "element",
|
|
156207
|
+
tagName: "nav",
|
|
156208
|
+
properties: {
|
|
156209
|
+
class: "toc"
|
|
156210
|
+
},
|
|
156211
|
+
children: [
|
|
156212
|
+
{
|
|
156213
|
+
type: "element",
|
|
156214
|
+
tagName: "ul",
|
|
156215
|
+
properties: {},
|
|
156216
|
+
children: headings.map((heading3) => ({
|
|
156217
|
+
type: "element",
|
|
156218
|
+
tagName: "li",
|
|
156219
|
+
properties: {
|
|
156220
|
+
class: `level-${heading3.level}`
|
|
156221
|
+
},
|
|
156222
|
+
children: [
|
|
156223
|
+
{
|
|
156224
|
+
type: "element",
|
|
156225
|
+
tagName: "a",
|
|
156226
|
+
properties: {
|
|
156227
|
+
href: `#${heading3.anchor}`
|
|
156228
|
+
},
|
|
156229
|
+
children: [
|
|
156230
|
+
{
|
|
156231
|
+
type: "text",
|
|
156232
|
+
value: heading3.label
|
|
156233
|
+
}
|
|
156234
|
+
]
|
|
156235
|
+
}
|
|
156236
|
+
]
|
|
156237
|
+
}))
|
|
156238
|
+
}
|
|
156239
|
+
]
|
|
156240
|
+
}
|
|
156241
|
+
]
|
|
156242
|
+
}
|
|
156243
|
+
]
|
|
156244
|
+
};
|
|
156245
|
+
const tocSidebar = [
|
|
156179
156246
|
{
|
|
156180
156247
|
type: "element",
|
|
156181
|
-
tagName: "
|
|
156248
|
+
tagName: "div",
|
|
156182
156249
|
properties: {
|
|
156183
|
-
|
|
156184
|
-
|
|
156250
|
+
class: "floating-buttons-container",
|
|
156251
|
+
id: "floating-buttons-container"
|
|
156185
156252
|
},
|
|
156186
|
-
children: [
|
|
156187
|
-
|
|
156188
|
-
|
|
156189
|
-
tagName: "div",
|
|
156190
|
-
properties: {
|
|
156191
|
-
class: "toc-drawer-content"
|
|
156192
|
-
},
|
|
156193
|
-
children: [
|
|
156194
|
-
{
|
|
156195
|
-
type: "element",
|
|
156196
|
-
tagName: "nav",
|
|
156197
|
-
properties: {
|
|
156198
|
-
class: "toc"
|
|
156199
|
-
},
|
|
156200
|
-
children: [
|
|
156201
|
-
{
|
|
156202
|
-
type: "element",
|
|
156203
|
-
tagName: "ul",
|
|
156204
|
-
properties: {},
|
|
156205
|
-
children: headings.map((heading3) => ({
|
|
156206
|
-
type: "element",
|
|
156207
|
-
tagName: "li",
|
|
156208
|
-
properties: {
|
|
156209
|
-
class: `level-${heading3.level}`
|
|
156210
|
-
},
|
|
156211
|
-
children: [
|
|
156212
|
-
{
|
|
156213
|
-
type: "element",
|
|
156214
|
-
tagName: "a",
|
|
156215
|
-
properties: {
|
|
156216
|
-
href: `#${heading3.anchor}`
|
|
156217
|
-
},
|
|
156218
|
-
children: [
|
|
156219
|
-
{
|
|
156220
|
-
type: "text",
|
|
156221
|
-
value: heading3.label
|
|
156222
|
-
}
|
|
156223
|
-
]
|
|
156224
|
-
}
|
|
156225
|
-
]
|
|
156226
|
-
}))
|
|
156227
|
-
}
|
|
156228
|
-
]
|
|
156229
|
-
}
|
|
156230
|
-
]
|
|
156231
|
-
}
|
|
156232
|
-
]
|
|
156233
|
-
}
|
|
156253
|
+
children: [tocButton]
|
|
156254
|
+
},
|
|
156255
|
+
tocDrawer
|
|
156234
156256
|
];
|
|
156235
156257
|
tree.children = [
|
|
156236
156258
|
{
|
|
@@ -156845,11 +156867,13 @@ body::-webkit-scrollbar {
|
|
|
156845
156867
|
font-family: hyperbook-heading;
|
|
156846
156868
|
src: url(${makeUrl(parseFont(font)[0], "public")});
|
|
156847
156869
|
size-adjust: ${parseFont(font)[1]};
|
|
156870
|
+
font-display: swap;
|
|
156848
156871
|
}
|
|
156849
156872
|
@font-face {
|
|
156850
156873
|
font-family: hyperbook-body;
|
|
156851
156874
|
src: url(${makeUrl(parseFont(font)[0], "public")});
|
|
156852
156875
|
size-adjust: ${parseFont(font)[1]};
|
|
156876
|
+
font-display: swap;
|
|
156853
156877
|
}
|
|
156854
156878
|
`;
|
|
156855
156879
|
}
|
|
@@ -156859,6 +156883,7 @@ body::-webkit-scrollbar {
|
|
|
156859
156883
|
font-family: hyperbook-body;
|
|
156860
156884
|
src: url(${makeUrl(parseFont(fonts.body)[0], "public")});
|
|
156861
156885
|
size-adjust: ${parseFont(fonts.body)[1]};
|
|
156886
|
+
font-display: swap;
|
|
156862
156887
|
}
|
|
156863
156888
|
`;
|
|
156864
156889
|
}
|
|
@@ -156868,6 +156893,7 @@ body::-webkit-scrollbar {
|
|
|
156868
156893
|
font-family: hyperbook-heading;
|
|
156869
156894
|
src: url(${makeUrl(parseFont(fonts.heading)[0], "public")});
|
|
156870
156895
|
size-adjust: ${parseFont(fonts.heading)[1]};
|
|
156896
|
+
font-display: swap;
|
|
156871
156897
|
}
|
|
156872
156898
|
`;
|
|
156873
156899
|
}
|
|
@@ -156877,6 +156903,7 @@ body::-webkit-scrollbar {
|
|
|
156877
156903
|
font-family: hyperbook-code;
|
|
156878
156904
|
src: url(${makeUrl(parseFont(fonts.code)[0], "public")});
|
|
156879
156905
|
size-adjust: ${parseFont(fonts.code)[1]};
|
|
156906
|
+
font-display: swap;
|
|
156880
156907
|
}
|
|
156881
156908
|
`;
|
|
156882
156909
|
}
|
|
@@ -157088,7 +157115,8 @@ var rehypeHtmlStructure_default = (ctx) => () => {
|
|
|
157088
157115
|
type: "element",
|
|
157089
157116
|
tagName: "script",
|
|
157090
157117
|
properties: {
|
|
157091
|
-
src: makeUrl(["i18n.js"], "assets")
|
|
157118
|
+
src: makeUrl(["i18n.js"], "assets"),
|
|
157119
|
+
defer: true
|
|
157092
157120
|
},
|
|
157093
157121
|
children: []
|
|
157094
157122
|
},
|
|
@@ -157096,7 +157124,8 @@ var rehypeHtmlStructure_default = (ctx) => () => {
|
|
|
157096
157124
|
type: "element",
|
|
157097
157125
|
tagName: "script",
|
|
157098
157126
|
properties: {
|
|
157099
|
-
src: makeUrl(["dexie.min.js"], "assets")
|
|
157127
|
+
src: makeUrl(["dexie.min.js"], "assets"),
|
|
157128
|
+
defer: true
|
|
157100
157129
|
},
|
|
157101
157130
|
children: []
|
|
157102
157131
|
},
|
|
@@ -157104,7 +157133,8 @@ var rehypeHtmlStructure_default = (ctx) => () => {
|
|
|
157104
157133
|
type: "element",
|
|
157105
157134
|
tagName: "script",
|
|
157106
157135
|
properties: {
|
|
157107
|
-
src: makeUrl(["dexie-export-import.js"], "assets")
|
|
157136
|
+
src: makeUrl(["dexie-export-import.js"], "assets"),
|
|
157137
|
+
defer: true
|
|
157108
157138
|
},
|
|
157109
157139
|
children: []
|
|
157110
157140
|
},
|
|
@@ -157112,7 +157142,8 @@ var rehypeHtmlStructure_default = (ctx) => () => {
|
|
|
157112
157142
|
type: "element",
|
|
157113
157143
|
tagName: "script",
|
|
157114
157144
|
properties: {
|
|
157115
|
-
src: makeUrl(["store.js"], "assets")
|
|
157145
|
+
src: makeUrl(["store.js"], "assets"),
|
|
157146
|
+
defer: true
|
|
157116
157147
|
},
|
|
157117
157148
|
children: []
|
|
157118
157149
|
},
|
|
@@ -157133,7 +157164,8 @@ window.Prism.manual = true;`
|
|
|
157133
157164
|
type: "element",
|
|
157134
157165
|
tagName: "script",
|
|
157135
157166
|
properties: {
|
|
157136
|
-
src: makeUrl(["prism", "prism.js"], "assets")
|
|
157167
|
+
src: makeUrl(["prism", "prism.js"], "assets"),
|
|
157168
|
+
defer: true
|
|
157137
157169
|
},
|
|
157138
157170
|
children: []
|
|
157139
157171
|
},
|
|
@@ -157793,7 +157825,8 @@ var makeHeaderElements = (ctx) => {
|
|
|
157793
157825
|
tagName: "img",
|
|
157794
157826
|
properties: {
|
|
157795
157827
|
alt: "logo",
|
|
157796
|
-
src: ctx.makeUrl(ctx.config.logo, "public")
|
|
157828
|
+
src: ctx.makeUrl(ctx.config.logo, "public"),
|
|
157829
|
+
height: "40"
|
|
157797
157830
|
},
|
|
157798
157831
|
children: []
|
|
157799
157832
|
}
|
|
@@ -158033,6 +158066,26 @@ var makeHeaderElements = (ctx) => {
|
|
|
158033
158066
|
]
|
|
158034
158067
|
});
|
|
158035
158068
|
}
|
|
158069
|
+
elements.push({
|
|
158070
|
+
type: "element",
|
|
158071
|
+
tagName: "button",
|
|
158072
|
+
properties: {
|
|
158073
|
+
id: "share-button",
|
|
158074
|
+
class: "icon-button",
|
|
158075
|
+
title: i18n.get("shell-share"),
|
|
158076
|
+
onclick: "hyperbook.shareOpen()"
|
|
158077
|
+
},
|
|
158078
|
+
children: [
|
|
158079
|
+
{
|
|
158080
|
+
type: "element",
|
|
158081
|
+
tagName: "div",
|
|
158082
|
+
properties: {
|
|
158083
|
+
class: "share-icon"
|
|
158084
|
+
},
|
|
158085
|
+
children: []
|
|
158086
|
+
}
|
|
158087
|
+
]
|
|
158088
|
+
});
|
|
158036
158089
|
elements.push({
|
|
158037
158090
|
type: "element",
|
|
158038
158091
|
tagName: "dark-mode-toggle",
|
|
@@ -165340,10 +165393,178 @@ var rehypeQrCode_default = (ctx) => () => {
|
|
|
165340
165393
|
]
|
|
165341
165394
|
}
|
|
165342
165395
|
];
|
|
165396
|
+
const qrcodeButton = qrcodeDialog[0];
|
|
165397
|
+
const qrcodeDialogElement = qrcodeDialog[1];
|
|
165343
165398
|
if (originalChildren[0].type === "element" && originalChildren[0].tagName === "div") {
|
|
165344
|
-
originalChildren[0].children.
|
|
165399
|
+
const floatingContainer = originalChildren[0].children.find(
|
|
165400
|
+
(child) => child.type === "element" && child.properties?.id === "floating-buttons-container"
|
|
165401
|
+
);
|
|
165402
|
+
if (floatingContainer && floatingContainer.type === "element") {
|
|
165403
|
+
floatingContainer.children.push(qrcodeButton);
|
|
165404
|
+
} else {
|
|
165405
|
+
originalChildren[0].children.push(qrcodeButton);
|
|
165406
|
+
}
|
|
165407
|
+
}
|
|
165408
|
+
tree.children = [...originalChildren, qrcodeDialogElement];
|
|
165409
|
+
};
|
|
165410
|
+
};
|
|
165411
|
+
|
|
165412
|
+
// src/rehypeShareDialog.ts
|
|
165413
|
+
var rehypeShareDialog_default = (ctx) => () => {
|
|
165414
|
+
return (tree, file) => {
|
|
165415
|
+
const originalChildren = tree.children;
|
|
165416
|
+
const headings = file.data.headings || [];
|
|
165417
|
+
if (!ctx.navigation.current?.href) {
|
|
165418
|
+
return;
|
|
165345
165419
|
}
|
|
165346
|
-
|
|
165420
|
+
const headingCheckboxes = headings.map((heading3) => ({
|
|
165421
|
+
type: "element",
|
|
165422
|
+
tagName: "label",
|
|
165423
|
+
properties: {
|
|
165424
|
+
class: `heading-item level-${heading3.level}`
|
|
165425
|
+
},
|
|
165426
|
+
children: [
|
|
165427
|
+
{
|
|
165428
|
+
type: "element",
|
|
165429
|
+
tagName: "input",
|
|
165430
|
+
properties: {
|
|
165431
|
+
type: "checkbox",
|
|
165432
|
+
value: heading3.anchor,
|
|
165433
|
+
"data-anchor": heading3.anchor,
|
|
165434
|
+
onchange: "hyperbook.shareUpdatePreview()"
|
|
165435
|
+
},
|
|
165436
|
+
children: []
|
|
165437
|
+
},
|
|
165438
|
+
{
|
|
165439
|
+
type: "text",
|
|
165440
|
+
value: ` ${heading3.label}`
|
|
165441
|
+
}
|
|
165442
|
+
]
|
|
165443
|
+
}));
|
|
165444
|
+
const shareDialog = [
|
|
165445
|
+
{
|
|
165446
|
+
type: "element",
|
|
165447
|
+
tagName: "dialog",
|
|
165448
|
+
properties: {
|
|
165449
|
+
id: "share-dialog"
|
|
165450
|
+
},
|
|
165451
|
+
children: [
|
|
165452
|
+
{
|
|
165453
|
+
type: "element",
|
|
165454
|
+
tagName: "div",
|
|
165455
|
+
properties: {
|
|
165456
|
+
class: "container"
|
|
165457
|
+
},
|
|
165458
|
+
children: [
|
|
165459
|
+
{
|
|
165460
|
+
type: "element",
|
|
165461
|
+
tagName: "h2",
|
|
165462
|
+
properties: {
|
|
165463
|
+
class: "title"
|
|
165464
|
+
},
|
|
165465
|
+
children: [
|
|
165466
|
+
{
|
|
165467
|
+
type: "text",
|
|
165468
|
+
value: i18n.get("share-dialog-title")
|
|
165469
|
+
}
|
|
165470
|
+
]
|
|
165471
|
+
},
|
|
165472
|
+
{
|
|
165473
|
+
type: "element",
|
|
165474
|
+
tagName: "label",
|
|
165475
|
+
properties: {
|
|
165476
|
+
class: "standalone-option"
|
|
165477
|
+
},
|
|
165478
|
+
children: [
|
|
165479
|
+
{
|
|
165480
|
+
type: "element",
|
|
165481
|
+
tagName: "input",
|
|
165482
|
+
properties: {
|
|
165483
|
+
type: "checkbox",
|
|
165484
|
+
id: "share-standalone-checkbox",
|
|
165485
|
+
onchange: "hyperbook.shareUpdatePreview()"
|
|
165486
|
+
},
|
|
165487
|
+
children: []
|
|
165488
|
+
},
|
|
165489
|
+
{
|
|
165490
|
+
type: "text",
|
|
165491
|
+
value: ` ${i18n.get("share-dialog-standalone")}`
|
|
165492
|
+
}
|
|
165493
|
+
]
|
|
165494
|
+
},
|
|
165495
|
+
{
|
|
165496
|
+
type: "element",
|
|
165497
|
+
tagName: "h3",
|
|
165498
|
+
properties: {
|
|
165499
|
+
class: "sections-title"
|
|
165500
|
+
},
|
|
165501
|
+
children: [
|
|
165502
|
+
{
|
|
165503
|
+
type: "text",
|
|
165504
|
+
value: i18n.get("share-dialog-select-sections")
|
|
165505
|
+
}
|
|
165506
|
+
]
|
|
165507
|
+
},
|
|
165508
|
+
{
|
|
165509
|
+
type: "element",
|
|
165510
|
+
tagName: "div",
|
|
165511
|
+
properties: {
|
|
165512
|
+
class: "sections-list"
|
|
165513
|
+
},
|
|
165514
|
+
children: headingCheckboxes
|
|
165515
|
+
},
|
|
165516
|
+
{
|
|
165517
|
+
type: "element",
|
|
165518
|
+
tagName: "div",
|
|
165519
|
+
properties: {
|
|
165520
|
+
class: "url-preview",
|
|
165521
|
+
id: "share-url-preview"
|
|
165522
|
+
},
|
|
165523
|
+
children: [
|
|
165524
|
+
{
|
|
165525
|
+
type: "text",
|
|
165526
|
+
value: ""
|
|
165527
|
+
}
|
|
165528
|
+
]
|
|
165529
|
+
},
|
|
165530
|
+
{
|
|
165531
|
+
type: "element",
|
|
165532
|
+
tagName: "button",
|
|
165533
|
+
properties: {
|
|
165534
|
+
class: "copy-button",
|
|
165535
|
+
onclick: "hyperbook.shareCopyUrl()"
|
|
165536
|
+
},
|
|
165537
|
+
children: [
|
|
165538
|
+
{
|
|
165539
|
+
type: "text",
|
|
165540
|
+
value: i18n.get("share-dialog-copy-url")
|
|
165541
|
+
}
|
|
165542
|
+
]
|
|
165543
|
+
}
|
|
165544
|
+
]
|
|
165545
|
+
},
|
|
165546
|
+
{
|
|
165547
|
+
type: "element",
|
|
165548
|
+
tagName: "button",
|
|
165549
|
+
properties: {
|
|
165550
|
+
class: "close",
|
|
165551
|
+
onclick: "hyperbook.shareClose()"
|
|
165552
|
+
},
|
|
165553
|
+
children: [
|
|
165554
|
+
{
|
|
165555
|
+
type: "element",
|
|
165556
|
+
tagName: "div",
|
|
165557
|
+
properties: {
|
|
165558
|
+
class: "close-icon"
|
|
165559
|
+
},
|
|
165560
|
+
children: []
|
|
165561
|
+
}
|
|
165562
|
+
]
|
|
165563
|
+
}
|
|
165564
|
+
]
|
|
165565
|
+
}
|
|
165566
|
+
];
|
|
165567
|
+
tree.children = [...originalChildren, ...shareDialog];
|
|
165347
165568
|
};
|
|
165348
165569
|
};
|
|
165349
165570
|
|
|
@@ -166451,7 +166672,8 @@ var remarkDirectiveMultievent_default = (ctx) => () => {
|
|
|
166451
166672
|
registerDirective(file, name, ["multievent.js"], ["style.css"], []);
|
|
166452
166673
|
data.hName = "div";
|
|
166453
166674
|
data.hProperties = {
|
|
166454
|
-
class: "directive-multievent multievent"
|
|
166675
|
+
class: "directive-multievent multievent",
|
|
166676
|
+
style: "visibility: hidden; opacity: 0;"
|
|
166455
166677
|
};
|
|
166456
166678
|
}
|
|
166457
166679
|
});
|
|
@@ -173214,6 +173436,7 @@ var process2 = (md, ctx) => {
|
|
|
173214
173436
|
rehypeUnwrapImages,
|
|
173215
173437
|
rehypeTableOfContents_default(ctx),
|
|
173216
173438
|
rehypeQrCode_default(ctx),
|
|
173439
|
+
rehypeShareDialog_default(ctx),
|
|
173217
173440
|
rehypeKatex,
|
|
173218
173441
|
rehypeDirectiveP5_default(ctx),
|
|
173219
173442
|
[
|
|
@@ -173263,7 +173486,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
|
|
|
173263
173486
|
/***/ ((module) => {
|
|
173264
173487
|
|
|
173265
173488
|
"use strict";
|
|
173266
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.
|
|
173489
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.72.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":">=12.22.0"},"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"}}');
|
|
173267
173490
|
|
|
173268
173491
|
/***/ })
|
|
173269
173492
|
|
package/dist/locales/de.json
CHANGED
|
@@ -40,6 +40,12 @@
|
|
|
40
40
|
"slideshow-next": "Weiter",
|
|
41
41
|
"slideshow-jump-to": "Springe zu {{index}}",
|
|
42
42
|
"toggle-bookmark": "Lesezeichen umschalten",
|
|
43
|
+
"shell-share": "Teilen",
|
|
44
|
+
"share-dialog-title": "Teilbare URL erstellen",
|
|
45
|
+
"share-dialog-standalone": "Standalone-Modus",
|
|
46
|
+
"share-dialog-select-sections": "Abschnitte auswählen",
|
|
47
|
+
"share-dialog-copy-url": "Teilbare URL kopieren",
|
|
48
|
+
"share-dialog-url-copied": "URL in Zwischenablage kopiert!",
|
|
43
49
|
"webide-code-preview": "Code-Vorschau",
|
|
44
50
|
"webide-html": "HTML",
|
|
45
51
|
"webide-css": "CSS",
|
package/dist/locales/en.json
CHANGED
|
@@ -40,6 +40,12 @@
|
|
|
40
40
|
"slideshow-next": "Next",
|
|
41
41
|
"slideshow-jump-to": "Jump to {{index}}",
|
|
42
42
|
"toggle-bookmark": "Toggle Bookmark",
|
|
43
|
+
"shell-share": "Share",
|
|
44
|
+
"share-dialog-title": "Create Shareable URL",
|
|
45
|
+
"share-dialog-standalone": "Standalone Mode",
|
|
46
|
+
"share-dialog-select-sections": "Select Sections",
|
|
47
|
+
"share-dialog-copy-url": "Copy Shareable URL",
|
|
48
|
+
"share-dialog-url-copied": "URL copied to clipboard!",
|
|
43
49
|
"webide-code-preview": "Code Preview",
|
|
44
50
|
"webide-html": "HTML",
|
|
45
51
|
"webide-css": "CSS",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyperbook",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.1",
|
|
4
4
|
"author": "Mike Barkmin",
|
|
5
5
|
"homepage": "https://github.com/openpatch/hyperbook#readme",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"ws": "^8.18.0",
|
|
59
59
|
"create-hyperbook": "0.3.0",
|
|
60
60
|
"@hyperbook/fs": "0.21.0",
|
|
61
|
-
"@hyperbook/markdown": "0.
|
|
61
|
+
"@hyperbook/markdown": "0.44.1",
|
|
62
62
|
"@hyperbook/types": "0.18.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|