collabmd 0.1.36 → 0.1.38

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 (44) hide show
  1. package/README.md +1 -0
  2. package/dist/client/assets/{drawio-editor-D4Qoluwz.js → drawio-editor-BHI0pLby.js} +1 -1
  3. package/dist/client/assets/{drawioEditor-B65FWq-b.js → drawioEditor-DOaXwaY2.js} +2 -2
  4. package/dist/client/assets/{editor-session-DV80PhYL.js → editor-session-BFsA-WRc.js} +1 -1
  5. package/dist/client/assets/{excalidraw-editor-hiJQt1cX.js → excalidraw-editor-6pgH2kf5.js} +1 -1
  6. package/dist/client/assets/{excalidrawEditor-BnbblxK4.js → excalidrawEditor-Ck9hgrTa.js} +2 -2
  7. package/dist/client/assets/export-page-4M8Zo-AL.js +39 -0
  8. package/dist/client/assets/exportDocument-BAqaHlIn.css +1 -0
  9. package/dist/client/assets/{exportDocument-CULEGKmb.js → exportDocument-mlXOym-R.js} +2 -2
  10. package/dist/client/assets/{index-BjdYZiBM.js → index-CCfHrm_9.js} +2 -2
  11. package/dist/client/assets/{index-BryqP9QY.css → index-maPm_Kvk.css} +1 -1
  12. package/dist/client/assets/main-BQMPQ4CW.js +1410 -0
  13. package/dist/client/assets/preview-render-compiler-9SmLUP5V.js +1 -0
  14. package/dist/client/assets/{preview-render-compiler-Tkc6JX1O.js → preview-render-compiler-IUtgIlOM.js} +1 -1
  15. package/dist/client/assets/{preview-render-worker-1LBLqgKu.js → preview-render-worker-BwQ5sPy9.js} +1 -1
  16. package/dist/client/assets/runtime-config-BcUbZKho.js +1 -0
  17. package/dist/client/assets/{vault-api-client-DSx3mWkH.js → vault-api-client-BDKKvtOF.js} +1 -1
  18. package/dist/client/drawio-editor.html +1 -1
  19. package/dist/client/excalidraw-editor.html +1 -1
  20. package/dist/client/export-document.html +2 -2
  21. package/dist/client/index.html +2 -2
  22. package/docker-compose.yml +1 -0
  23. package/package.json +12 -9
  24. package/src/client/application/app-shell/ui-feature-shell.js +237 -0
  25. package/src/client/application/preview-render-compiler.js +120 -1
  26. package/src/client/application/preview-render-executor.js +4 -0
  27. package/src/client/application/preview-render-worker.js +2 -0
  28. package/src/client/application/preview-renderer.js +5 -2
  29. package/src/client/application/wiki-link-file-controller.js +7 -0
  30. package/src/client/application/workspace-route-controller.js +9 -0
  31. package/src/client/bootstrap/collabmd-app-shell.js +13 -0
  32. package/src/client/domain/hash-routes.js +49 -0
  33. package/src/client/domain/runtime-paths.js +1 -0
  34. package/src/client/export/export-pipeline.js +100 -26
  35. package/src/client/infrastructure/runtime-config.js +22 -24
  36. package/src/client/presentation/outline-controller.js +28 -7
  37. package/src/client/styles/features/preview-markdown.css +51 -0
  38. package/src/server/config/env.js +1 -0
  39. package/src/server/infrastructure/http/create-static-handler.js +2 -0
  40. package/dist/client/assets/export-page-BKDarp9x.js +0 -39
  41. package/dist/client/assets/exportDocument-BbkN85c4.css +0 -1
  42. package/dist/client/assets/main-QJcxyvDa.js +0 -1404
  43. package/dist/client/assets/preview-render-compiler-BCB8u6iM.js +0 -1
  44. package/dist/client/assets/runtime-config-DWTejofP.js +0 -1
@@ -1 +0,0 @@
1
- import{t as e}from"./preview-render-compiler-Tkc6JX1O.js";export{e as compilePreviewDocument};
@@ -1 +0,0 @@
1
- function e(e){return e.endsWith(`/`)?e.slice(0,-1):e}function t(n){let r=e(String(n??``).trim());if(!r||r===`/`)return``;if(/^[a-zA-Z][a-zA-Z\d+.-]*:/u.test(r))try{return t(new URL(r).pathname)}catch{return``}return r.startsWith(`/`)?r:`/${r}`}function n(t,n){let r=e(String(t??``).trim());return!r||r===`/`?n:r.startsWith(`/`)?r:`/${r}`}function r(e,n){let r=t(e),i=String(n??``).trim();return i?/^[a-zA-Z][a-zA-Z\d+.-]*:/u.test(i)||r&&(i===r||i.startsWith(`${r}/`))?i:i===`/`?r||`/`:i.startsWith(`/`)?r?`${r}${i}`:i:r?`${r}/${i}`:`/${i}`:r||`/`}function i(){let e={auth:{enabled:!1,implemented:!0,loginEndpoint:`/api/auth/oidc/login`,provider:``,requiresLogin:!1,sessionEndpoint:`/api/auth/session`,statusEndpoint:`/api/auth/status`,strategy:`none`},basePath:``,build:{id:``,packageVersion:``},drawioBaseUrl:`https://embed.diagrams.net`,environment:`development`,gitEnabled:!0,publicWsBaseUrl:``,wsBasePath:`/ws`,...window.__COLLABMD_CONFIG__??{}},i=t(e.basePath),a={enabled:!1,implemented:!0,loginEndpoint:`/api/auth/oidc/login`,provider:``,requiresLogin:!1,sessionEndpoint:`/api/auth/session`,statusEndpoint:`/api/auth/status`,strategy:`none`,...e.auth??{}},o={id:``,packageVersion:``,...e.build??{}};return{...e,auth:{...a,loginEndpoint:r(i,a.loginEndpoint),sessionEndpoint:r(i,a.sessionEndpoint),statusEndpoint:r(i,a.statusEndpoint)},basePath:i,build:o,wsBasePath:n(e.wsBasePath,`/ws`)}}function a(e=`/`,t=i()){return r(t.basePath,e)}function o(e=`/`,t=i()){return new URL(a(e,t),window.location.origin).toString()}function s(e=`/`,t=i()){let n=String(e??``).trim();return!n||n===`/`?a(`/api`,t):n.startsWith(`/api`)?a(n,t):a(`/api${n.startsWith(`/`)?n:`/${n}`}`,t)}function c(t=i()){let n=new URLSearchParams(window.location.search).get(`server`);return n?e(n):t.publicWsBaseUrl?e(t.publicWsBaseUrl):`${window.location.protocol===`https:`?`wss:`:`ws:`}//${window.location.host}${a(t.wsBasePath,t)}`}function l(){return i()}function u(){let e=window.location.hash.startsWith(`#`)?window.location.hash.slice(1):window.location.hash;return new URLSearchParams(e)}function d(e){return e===`staged`||e===`all`||e===`working-tree`?e:`all`}function f(){let e=u();if(e.has(`git-file-preview`)){let t=e.get(`git-file-preview`)||null;return{currentFilePath:e.get(`current`)||t,filePath:t,hash:e.get(`hash`)||null,type:`git-file-preview`}}if(e.has(`git-file-history`))return{filePath:e.get(`git-file-history`)||null,type:`git-file-history`};if(e.has(`git-history`))return{type:`git-history`};if(e.has(`git-commit`))return{hash:e.get(`git-commit`)||null,historyFilePath:e.get(`history`)||null,path:e.get(`path`)||null,type:`git-commit`};if(e.has(`git-diff`)){let t=e.get(`git-diff`)||null;return{filePath:t,scope:d(e.get(`scope`)||(t?`working-tree`:`all`)),type:`git-diff`}}return e.has(`file`)?{drawioMode:e.get(`drawio`)||null,filePath:e.get(`file`),type:`file`}:{type:`empty`}}function p(e,{drawioMode:t=null}={}){let n=new URLSearchParams;e&&n.set(`file`,e),t&&n.set(`drawio`,t),window.location.hash=n.toString()}function m({filePath:e=null,scope:t=`all`}={}){let n=new URLSearchParams;n.set(`git-diff`,e??``),n.set(`scope`,d(t)),window.location.hash=n.toString()}function h({hash:e,path:t=null,historyFilePath:n=null}={}){let r=String(e??``).trim(),i=new URLSearchParams;i.set(`git-commit`,r),n&&i.set(`history`,n),t&&i.set(`path`,t),window.location.hash=i.toString()}function g(){let e=new URLSearchParams;e.set(`git-history`,`1`),window.location.hash=e.toString()}function _({filePath:e}={}){let t=new URLSearchParams;t.set(`git-file-history`,e??``),window.location.hash=t.toString()}function v({hash:e,path:t,currentFilePath:n=null}={}){let r=String(e??``).trim(),i=new URLSearchParams;i.set(`git-file-preview`,t??``),n&&i.set(`current`,n),i.set(`hash`,r),window.location.hash=i.toString()}export{m as a,g as c,o as d,c as f,h as i,s as l,l as n,_ as o,p as r,v as s,f as t,a as u};