hyperbook 0.87.0 → 0.87.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -200902,7 +200902,8 @@ var remarkDirectiveBlockflowPlayer_default = (ctx) => () => {
200902
200902
  height = "600px",
200903
200903
  aspectRatio = "4/3"
200904
200904
  } = node3.attributes || {};
200905
- const iframeSrc = src ? `https://blockflow.openpatch.org/player.html?project=${encodeURIComponent(src)}` : void 0;
200905
+ const siteSrc = ctx.makeUrl(src || "", "public", ctx.navigation.current || void 0);
200906
+ const iframeSrc = src ? `https://blockflow.openpatch.org/player.html?project=${encodeURIComponent(siteSrc)}` : void 0;
200906
200907
  data.hName = "div";
200907
200908
  data.hProperties = {
200908
200909
  class: "directive-blockflow-player",
@@ -200949,7 +200950,8 @@ var remarkDirectiveBlockflowEditor_default = (ctx) => () => {
200949
200950
  } = node3.attributes || {};
200950
200951
  let projectParam;
200951
200952
  if (project) {
200952
- projectParam = encodeURIComponent(project);
200953
+ const projectSrc = ctx.makeUrl(project, "public", ctx.navigation.current || void 0);
200954
+ projectParam = encodeURIComponent(projectSrc);
200953
200955
  } else {
200954
200956
  const steps = [];
200955
200957
  for (const child of node3.children || []) {
@@ -200959,13 +200961,13 @@ var remarkDirectiveBlockflowEditor_default = (ctx) => () => {
200959
200961
  steps.push({
200960
200962
  title: stepAttrs.title || void 0,
200961
200963
  text: text9,
200962
- image: stepAttrs.image || void 0,
200963
- video: stepAttrs.video || void 0
200964
+ image: stepAttrs.image ? ctx.makeUrl(stepAttrs.image, "public", ctx.navigation.current || void 0) : void 0,
200965
+ video: stepAttrs.video ? ctx.makeUrl(stepAttrs.video, "public", ctx.navigation.current || void 0) : void 0
200964
200966
  });
200965
200967
  }
200966
200968
  const config2 = {};
200967
200969
  if (title) config2.title = title;
200968
- if (src) config2.sb3 = src;
200970
+ if (src) config2.sb3 = ctx.makeUrl(src, "public", ctx.navigation.current || void 0);
200969
200971
  const ui = {};
200970
200972
  if (allowExtensions !== void 0) {
200971
200973
  ui.allowExtensions = allowExtensions !== "false";
@@ -201184,7 +201186,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
201184
201186
  /***/ ((module) => {
201185
201187
 
201186
201188
  "use strict";
201187
- module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.87.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"}}');
201189
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.87.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"}}');
201188
201190
 
201189
201191
  /***/ })
201190
201192
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperbook",
3
- "version": "0.87.0",
3
+ "version": "0.87.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.5",
60
60
  "@hyperbook/fs": "0.25.0",
61
- "@hyperbook/markdown": "0.59.0",
61
+ "@hyperbook/markdown": "0.59.1",
62
62
  "@hyperbook/types": "0.22.1"
63
63
  },
64
64
  "scripts": {