hyperbook 0.113.0 → 0.113.2
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/README.md +18 -3
- package/dist/asset-manifest.json +9 -9
- package/dist/assets/directive-bitflow/{EditorElement-zyz99U6n.js → EditorElement-CE3Yr86b.js} +155 -155
- package/dist/assets/directive-bitflow/{ReportElements-BnX14NtV.js → ReportElements-eYGRtw6N.js} +1 -1
- package/dist/assets/directive-bitflow/{bitLoaders-DIGwTcpd.js → bitLoaders-CxvZkGrY.js} +1138 -1073
- package/dist/assets/directive-bitflow/editor.js +3 -3
- package/dist/assets/directive-bitflow/flow.js +3 -3
- package/dist/assets/directive-bitflow/{index-IQHOi2fr.js → index-88c3K20U.js} +31 -31
- package/dist/assets/directive-bitflow/{index-Bqf-kixT.js → index-B61LKxr1.js} +45 -45
- package/dist/assets/directive-bitflow/{index-CFcRAa3F.js → index-BG0PL-Z6.js} +30 -30
- package/dist/assets/directive-bitflow/{index-B3jMTk1o.js → index-BNdpL6Ss.js} +78 -78
- package/dist/assets/directive-bitflow/{index-Fq7njn6_.js → index-BO-d4HVC.js} +48 -48
- package/dist/assets/directive-bitflow/{index-Bf_NXJjq.js → index-BZhNY0lo.js} +12 -12
- package/dist/assets/directive-bitflow/{index-COndsSPW.js → index-BadyFTU5.js} +8 -8
- package/dist/assets/directive-bitflow/{index-CvCZVgKv.js → index-BlT1EcFH.js} +34 -34
- package/dist/assets/directive-bitflow/{index-CW9iev-_.js → index-BuQ-K_tR.js} +7 -7
- package/dist/assets/directive-bitflow/{index-DjWNEPDL.js → index-Bw0pL0hW.js} +28 -28
- package/dist/assets/directive-bitflow/{index-BQ5h4nDN.js → index-BwBVUdJ9.js} +94 -94
- package/dist/assets/directive-bitflow/{index-CjscG0z6.js → index-BydYlLy4.js} +73 -73
- package/dist/assets/directive-bitflow/{index-BpG316Ls.js → index-C7RJxxAx.js} +63 -63
- package/dist/assets/directive-bitflow/{index-eN2S_MLj.js → index-CERSJ9uS.js} +70 -70
- package/dist/assets/directive-bitflow/{index-DtsDy2By.js → index-CLHtOGrW.js} +11 -11
- package/dist/assets/directive-bitflow/{index-Bf_FQRbK.js → index-CWe2GjBK.js} +14 -14
- package/dist/assets/directive-bitflow/{index-CzdZQibq.js → index-CfKpkSVC.js} +72 -72
- package/dist/assets/directive-bitflow/{index-Fr7yl4Vn.js → index-CjKhq7gY.js} +23 -23
- package/dist/assets/directive-bitflow/{index-DoKlIgCD.js → index-Cm4w1Zyc.js} +38 -38
- package/dist/assets/directive-bitflow/{index-D5yZNeIg.js → index-D0U3nepG.js} +52 -52
- package/dist/assets/directive-bitflow/{index-C5czXkRd.js → index-D4PdXMcj.js} +33 -33
- package/dist/assets/directive-bitflow/{index-BLcJNyog.js → index-D9LOuqr2.js} +99 -99
- package/dist/assets/directive-bitflow/{index-BIJ7VfD2.js → index-DIb3CXwC.js} +42 -42
- package/dist/assets/directive-bitflow/{index-CZyaFdD2.js → index-DQP0cUsP.js} +70 -70
- package/dist/assets/directive-bitflow/{index-ChgzyMHe.js → index-DUOrQfVe.js} +27 -27
- package/dist/assets/directive-bitflow/{index-kRpwcprB.js → index-DW3cUBvZ.js} +1 -1
- package/dist/assets/directive-bitflow/{index-C_ZTSeqv.js → index-DYWo0PUv.js} +24 -24
- package/dist/assets/directive-bitflow/{index-xapm2BQE.js → index-D_QhyFcx.js} +101 -91
- package/dist/assets/directive-bitflow/{index-BdBBCZSy.js → index-Dn5hHVuT.js} +226 -193
- package/dist/assets/directive-bitflow/{index-D7m-hJZ9.js → index-DruC5d43.js} +69 -69
- package/dist/assets/directive-bitflow/{index-e_8twLaN.js → index-EKIgFddO.js} +105 -105
- package/dist/assets/directive-bitflow/{index-8jTO-NJA.js → index-HXNGIC7K.js} +70 -70
- package/dist/assets/directive-bitflow/{index-DnVYIuen.js → index-ISbOe239.js} +42 -42
- package/dist/assets/directive-bitflow/{index-cnRM_JDB.js → index-IsMJtrUT.js} +31 -31
- package/dist/assets/directive-bitflow/{index-B7Z6Q-PQ.js → index-TUXuIR22.js} +6 -6
- package/dist/assets/directive-bitflow/{index-CK1UMcfT.js → index-WbE9UOFa.js} +24 -24
- package/dist/assets/directive-bitflow/{index-YPMWh-1B.js → index-d5ebPDeY.js} +13 -13
- package/dist/assets/directive-bitflow/{index-NyNuXp4C.js → index-ledofrbo.js} +33 -33
- package/dist/assets/directive-bitflow/{index-BseSaQlX.js → index-oNmOArKu.js} +1 -1
- package/dist/assets/directive-bitflow/{index-ivI25bnR.js → index-rp4UTV85.js} +84 -84
- package/dist/assets/directive-bitflow/{index-XxGfBwJe.js → index-xTX3CXJW.js} +23 -23
- package/dist/assets/directive-bitflow/index.js +6 -6
- package/dist/assets/directive-bitflow/katex-DSLAjWZH-CHGN3Pr6.js +11314 -0
- package/dist/assets/directive-bitflow/katex-Dv-tcU2S-Dv-tcU2S.js +4 -0
- package/dist/assets/directive-bitflow/report.js +1 -1
- package/dist/assets/directive-bitflow/{shareableReport-ArQU1XjG.js → shareableReport-vjEU4OvA.js} +2 -2
- package/dist/index.js +6351 -3340
- package/dist/schemas/hyperbook.schema.json +4 -4
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -100,6 +100,9 @@ run `hyperbook assets fetch`, build with `--offline`, and save the cache again.
|
|
|
100
100
|
|
|
101
101
|
Deleting the cache is safe; the next online build downloads the required bundles again.
|
|
102
102
|
|
|
103
|
+
The Hyperbook extension for VS Code shares this cache. Its preview uses the
|
|
104
|
+
runtimes found there, and its **Download Element Runtimes** commands fill it.
|
|
105
|
+
|
|
103
106
|
### Optional CDNs
|
|
104
107
|
|
|
105
108
|
Set `cdn` per element in `hyperbook.json` to load its large runtime from a CDN:
|
|
@@ -117,8 +120,10 @@ Set `cdn` per element in `hyperbook.json` to load its large runtime from a CDN:
|
|
|
117
120
|
```
|
|
118
121
|
|
|
119
122
|
Omitting `cdn` or setting it to `false` keeps local assets. `true` selects the
|
|
120
|
-
default CDN: jsDelivr for Pyodide and Typst, GeoGebra's server for GeoGebra,
|
|
121
|
-
|
|
123
|
+
default CDN: jsDelivr for Pyodide and Typst, GeoGebra's server for GeoGebra,
|
|
124
|
+
`blockflow.openpatch.org` for Blockflow, Excalidraw's own packages on UNPKG for
|
|
125
|
+
Excalidraw, and versioned `@hyperbook/markdown` assets on UNPKG for OpenSCAD,
|
|
126
|
+
the Online IDE, and the SQL IDE. The option supports
|
|
122
127
|
`pyide`, `typst`, `geogebra`, `openscad`, `excalidraw`, `onlineide`, `sqlide`, and
|
|
123
128
|
`blockflow` (both player and editor).
|
|
124
129
|
|
|
@@ -143,7 +148,17 @@ to the CDN. `assets fetch --all` still downloads every bundle.
|
|
|
143
148
|
Build the workspace packages before building the CLI. Its postbuild step writes
|
|
144
149
|
the small npm package to `dist/`, an asset manifest to `dist/asset-manifest.json`,
|
|
145
150
|
and eight separate archives to `.cache/asset-bundles/<cli-version>/`. The Markdown
|
|
146
|
-
|
|
151
|
+
build keeps its complete assets in `dist/assets`, which the CLI and the VS Code
|
|
152
|
+
extension build from. The published packages stay small:
|
|
153
|
+
|
|
154
|
+
- Markdown's npm tarball omits the Pyodide, GeoGebra, Typst, Blockflow, and
|
|
155
|
+
Excalidraw runtimes, which have upstream CDNs. It keeps OpenSCAD, the Online
|
|
156
|
+
IDE, and the SQL IDE, because their default CDN is this package on UNPKG.
|
|
157
|
+
`packages/markdown/tests/packageContents.test.ts` enforces this split.
|
|
158
|
+
- The VS Code extension omits all eight runtimes through `.vscodeignore`. Its
|
|
159
|
+
preview uses runtimes from the CLI's asset cache and loads missing ones from
|
|
160
|
+
their default CDN. It ships the CLI's `asset-manifest.json`, so its download
|
|
161
|
+
commands fetch the same verified bundles into the same cache.
|
|
147
162
|
Locally built CLIs use these archives directly, including with `--offline`,
|
|
148
163
|
so workspace builds work before the corresponding release is published.
|
|
149
164
|
|
package/dist/asset-manifest.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
|
-
"version": "0.113.
|
|
3
|
+
"version": "0.113.2",
|
|
4
4
|
"bundles": {
|
|
5
5
|
"blockflow": {
|
|
6
|
-
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.
|
|
6
|
+
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.2/blockflow.tar.gz",
|
|
7
7
|
"sha256": "78ff52d909e18d26e0b254ffa31c0977aa263dfcd0a1e59b400252cff775c38d",
|
|
8
8
|
"bytes": 77496168,
|
|
9
9
|
"files": {
|
|
@@ -1854,7 +1854,7 @@
|
|
|
1854
1854
|
}
|
|
1855
1855
|
},
|
|
1856
1856
|
"onlineide": {
|
|
1857
|
-
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.
|
|
1857
|
+
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.2/onlineide.tar.gz",
|
|
1858
1858
|
"sha256": "7b719e7ac5feb118276b0e41472db9117c24ad36f57bd1ac6c11634972695d16",
|
|
1859
1859
|
"bytes": 19880188,
|
|
1860
1860
|
"files": {
|
|
@@ -2278,7 +2278,7 @@
|
|
|
2278
2278
|
}
|
|
2279
2279
|
},
|
|
2280
2280
|
"sqlide": {
|
|
2281
|
-
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.
|
|
2281
|
+
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.2/sqlide.tar.gz",
|
|
2282
2282
|
"sha256": "2eae75b9d3d02efa907943c3b4ed4960f50f601cbf89d6365fd9fac3e90be149",
|
|
2283
2283
|
"bytes": 7962401,
|
|
2284
2284
|
"files": {
|
|
@@ -2397,7 +2397,7 @@
|
|
|
2397
2397
|
}
|
|
2398
2398
|
},
|
|
2399
2399
|
"excalidraw": {
|
|
2400
|
-
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.
|
|
2400
|
+
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.2/excalidraw.tar.gz",
|
|
2401
2401
|
"sha256": "11d7da549303b5f31e69d6c8b402ad27eb18bb6b139169fa17ced6aabced074e",
|
|
2402
2402
|
"bytes": 15587730,
|
|
2403
2403
|
"files": {
|
|
@@ -2642,7 +2642,7 @@
|
|
|
2642
2642
|
}
|
|
2643
2643
|
},
|
|
2644
2644
|
"openscad": {
|
|
2645
|
-
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.
|
|
2645
|
+
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.2/openscad.tar.gz",
|
|
2646
2646
|
"sha256": "481a1ec86fed04d30c6be78ecf3ccfef2fd3483736aeaf797728d456cae4a3cb",
|
|
2647
2647
|
"bytes": 9632010,
|
|
2648
2648
|
"files": {
|
|
@@ -2660,7 +2660,7 @@
|
|
|
2660
2660
|
}
|
|
2661
2661
|
},
|
|
2662
2662
|
"geogebra": {
|
|
2663
|
-
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.
|
|
2663
|
+
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.2/geogebra.tar.gz",
|
|
2664
2664
|
"sha256": "29b17dfad78db2700d3594fdf2a18223ffb3f823683986de1b07fa144d90f740",
|
|
2665
2665
|
"bytes": 33231124,
|
|
2666
2666
|
"files": {
|
|
@@ -3106,7 +3106,7 @@
|
|
|
3106
3106
|
}
|
|
3107
3107
|
},
|
|
3108
3108
|
"pyide": {
|
|
3109
|
-
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.
|
|
3109
|
+
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.2/pyide.tar.gz",
|
|
3110
3110
|
"sha256": "7107f8a1ddf9baf9a3d5bdd93c7c4b9902b7f17bf245d868eba9043d004850eb",
|
|
3111
3111
|
"bytes": 336772760,
|
|
3112
3112
|
"files": {
|
|
@@ -3535,7 +3535,7 @@
|
|
|
3535
3535
|
}
|
|
3536
3536
|
},
|
|
3537
3537
|
"typst": {
|
|
3538
|
-
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.
|
|
3538
|
+
"url": "https://github.com/openpatch/hyperbook/releases/download/hyperbook-assets-v0.113.2/typst.tar.gz",
|
|
3539
3539
|
"sha256": "3a3b9f3af069b2fa5ac2b659aac7507336f3519f2b9d62ecbb87071f80ebff39",
|
|
3540
3540
|
"bytes": 17067045,
|
|
3541
3541
|
"files": {
|