collabmd 0.1.52 → 0.1.54
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/bin/collabmd.js +3 -2
- package/dist/client/assets/{CodeMirrorEditor-UCMRAMCV-BEz2BKN1.js → CodeMirrorEditor-UCMRAMCV-kJfwukbn.js} +1 -1
- package/dist/client/assets/{browser-BKLM0ThC-IxjwuOIz-C0mP17s1.js → browser-BKLM0ThC-BCLQGPD6-K2seJgRL.js} +1 -1
- package/dist/client/assets/{browser-utils-vlHL9goC.js → browser-utils-S4QYY31r.js} +1 -1
- package/dist/client/assets/{chunk-RUX4WMZV-BGnd3s_C.js → chunk-ISPTBLVO-BMsDq9Ha.js} +2 -2
- package/dist/client/assets/{chunk-4SOEAONT-C3fufoVl.js → chunk-T5WUORNS-DD7KlyY6.js} +9 -9
- package/dist/client/assets/{direct-engine-DdrQKpgq-4QysbH_V.js → direct-engine-DVLMOJWp-C-YL5NFb.js} +1 -1
- package/dist/client/assets/{dist-CXOUa90Q.js → dist-9Eodxf4G.js} +1 -1
- package/dist/client/assets/{dist-jVKfryIL.js → dist-B2ZNQifU.js} +1 -1
- package/dist/client/assets/dist-B6QCMNze.js +1 -0
- package/dist/client/assets/dist-BIAv19LO.js +1 -0
- package/dist/client/assets/{dist-Bog8M5U3.js → dist-BKYp1-dl.js} +4 -4
- package/dist/client/assets/{dist-DI6c02Da.js → dist-BSAZ-Hek.js} +1 -1
- package/dist/client/assets/{dist-DNONgI1P.js → dist-BSTbcioM.js} +1 -1
- package/dist/client/assets/{dist-BfpAc922.js → dist-BT9gJXCb.js} +1 -1
- package/dist/client/assets/{dist-CAG5sIOj.js → dist-BTVg1m-V.js} +1 -1
- package/dist/client/assets/{dist-GTGhtpyW.js → dist-Bi9ZIYXq.js} +1 -1
- package/dist/client/assets/{dist-CvVoyTRF.js → dist-BpAUe9sL.js} +1 -1
- package/dist/client/assets/{dist-B7fBbwrO.js → dist-Bqo-XRVG.js} +1 -1
- package/dist/client/assets/{dist-CUsXdnU4.js → dist-BrKhPlc9.js} +1 -1
- package/dist/client/assets/{dist-CYMCikZo.js → dist-CBsvKPcT.js} +1 -1
- package/dist/client/assets/{dist-W0FoeIxk.js → dist-CJBYh9Wy.js} +1 -1
- package/dist/client/assets/{dist-Ck-B8onw.js → dist-CRwfjtwz.js} +1 -1
- package/dist/client/assets/{dist-Dx37MHWs.js → dist-CX7Kc61C.js} +1 -1
- package/dist/client/assets/{dist-zHDLm1oE.js → dist-CoXN2D3R.js} +1 -1
- package/dist/client/assets/{dist-D4kDR0g8.js → dist-CucpLxUY.js} +1 -1
- package/dist/client/assets/{dist-Cu5Ze2cs.js → dist-DHBMeCxC.js} +1 -1
- package/dist/client/assets/dist-DLEg9d4u.js +1 -0
- package/dist/client/assets/{dist-Y6zYRI-A.js → dist-DOHWxIty.js} +1 -1
- package/dist/client/assets/{dist-DVBYH83t.js → dist-DYFBD-wW.js} +1 -1
- package/dist/client/assets/{dist-CsQTfQFi.js → dist-DeCV9FU4.js} +1 -1
- package/dist/client/assets/dist-DugWGOjQ.js +1 -0
- package/dist/client/assets/{dist-BVCNc-Es.js → dist-KrdpB_GB.js} +1 -1
- package/dist/client/assets/{dist-B_1hMrc6.js → dist-NNrRnB-f.js} +1 -1
- package/dist/client/assets/{dist-Da-jLrCf.js → dist-PUxZqhFe.js} +1 -1
- package/dist/client/assets/dist-cYiJMWHJ.js +1 -0
- package/dist/client/assets/dist-iKC7go4m.js +1 -0
- package/dist/client/assets/{dist-CKf7LlAo.js → dist-lw5TGjI6.js} +1 -1
- package/dist/client/assets/{dist-DGa-2MNX.js → dist-uk11ih8u.js} +1 -1
- package/dist/client/assets/{document-formatter-gO8qM2qY.js → document-formatter-6I63vstk.js} +1 -1
- package/dist/client/assets/{drawioEditor-DCkWweiy.js → drawioEditor-DNTjsjzJ.js} +1 -1
- package/dist/client/assets/{editor-session-DxRyr4EM.js → editor-session-D8GGkJak.js} +3 -3
- package/dist/client/assets/{embedpdf-DyOonRvx.js → embedpdf-TkbBYowM.js} +1 -1
- package/dist/client/assets/{embedpdf-DA4bA119-DsoNiPlQ.js → embedpdf-cl9qiF45-itpgqvGY.js} +2 -2
- package/dist/client/assets/{en-GNC3RJIS-CEy_oGTd.js → en-JTHJ2SIP-DBz9bRq4.js} +1 -1
- package/dist/client/assets/{estree-DCT3Jm65.js → estree-DGmLqopC.js} +17 -17
- package/dist/client/assets/{excalidraw-element-link-CGZ5934B.js → excalidraw-element-link-BRZOTIeI.js} +2 -2
- package/dist/client/assets/{excalidrawEditor-BVfSxjSO.js → excalidrawEditor-D0orhhku.js} +3 -3
- package/dist/client/assets/{export-page-BCo_e15t.js → export-page-CVJNMERq.js} +3 -3
- package/dist/client/assets/{exportDocument-DP6oE_or.js → exportDocument-DSshnmnZ.js} +2 -2
- package/dist/client/assets/{file-search-3hYF4cYa.js → file-search-BA8o_gs0.js} +1 -1
- package/dist/client/assets/{html-CBXMuS97.js → html-BryNQ_yx.js} +6 -6
- package/dist/client/assets/image-I42VHMUI-B2-c_ifV.js +1 -0
- package/dist/client/assets/index-BCgNcVNs.css +1 -0
- package/dist/client/assets/index-BpmR5Qqk.js +1140 -0
- package/dist/client/assets/{lobby-presence-Cz5jGOPg.js → lobby-presence-KJrYhMdN.js} +1 -1
- package/dist/client/assets/{markdown-Bo71X2X2.js → markdown-CZ1tYEW8.js} +17 -17
- package/dist/client/assets/{pdfium-RAgkpwfK.wasm → pdfium-BJ2Yip8Q.wasm} +0 -0
- package/dist/client/assets/{preview-render-compiler-ktU0SXxY.js → preview-render-compiler-BmWQStaL.js} +1 -1
- package/dist/client/assets/{preview-render-worker-BI2bFVqM.js → preview-render-worker-BA4VK_GY.js} +2 -2
- package/dist/client/assets/prod-CA0ie9yD.js +145 -0
- package/dist/client/assets/prod-yKJZ3E4s.js +1 -0
- package/dist/client/assets/{quick-switcher-controller-DSlOwOsU.js → quick-switcher-controller-B5vT9Vj5.js} +1 -1
- package/dist/client/assets/runtime-config-CvrkHb0n.js +1 -0
- package/dist/client/assets/runtime-paths-qQGhzNx4.js +1 -0
- package/dist/client/assets/{standalone-6z5x8CWe.js → standalone-DbyFjvTU.js} +1 -1
- package/dist/client/assets/{vault-api-client-BQxLVPeF.js → vault-api-client-NS_EVHJ3.js} +2 -2
- package/dist/client/assets/{worker-engine-m0rlHn8R-5h66k403.js → worker-engine-BCCrxWYm-CX0qJ_cG.js} +1 -1
- package/dist/client/assets/{workspace-sync-client-C2pdaQUN.js → workspace-sync-client-BrMtf6zN.js} +1 -1
- package/dist/client/drawio-editor.html +5 -5
- package/dist/client/excalidraw-editor.html +9 -9
- package/dist/client/export-document.html +1 -1
- package/dist/client/index.html +13 -2
- package/package.json +14 -14
- package/src/client/app/index.html +11 -0
- package/src/client/app/main-entry.js +30 -4
- package/src/client/bootstrap/collabmd-app-shell.js +3 -1
- package/src/client/browser-utils.js +21 -0
- package/src/client/domain/file-search.js +1 -1
- package/src/client/domain/runtime-paths.js +4 -0
- package/src/client/infrastructure/runtime-config.js +14 -0
- package/src/client/presentation/drawio-embed-controller.js +3 -1
- package/src/client/presentation/excalidraw-embed-controller.js +3 -1
- package/src/client/presentation/file-action-controller.js +21 -1
- package/src/client/presentation/file-explorer-view.js +24 -6
- package/src/client/presentation/vault-dashboard.js +63 -0
- package/src/client/styles/foundation/utilities.css +2 -0
- package/src/client/styles/layout/overlays.css +5 -0
- package/src/client/styles/layout/shell.css +152 -0
- package/src/server/config/env.js +39 -6
- package/src/server/infrastructure/http/create-static-handler.js +3 -1
- package/src/server/infrastructure/http/create-vault-api-query-handler.js +1 -1
- package/dist/client/assets/dist-BYBF4LtZ.js +0 -1
- package/dist/client/assets/dist-BnVaoRgZ.js +0 -1
- package/dist/client/assets/dist-CrkYYcOU.js +0 -1
- package/dist/client/assets/dist-D8LnhZzy.js +0 -1
- package/dist/client/assets/dist-DX6qtdxv.js +0 -1
- package/dist/client/assets/dist-DofvCYzJ.js +0 -1
- package/dist/client/assets/image-EJJKRVD3-BQfi5nWJ.js +0 -1
- package/dist/client/assets/index-BxAuGDoN.css +0 -1
- package/dist/client/assets/index-uw9O0z1c.js +0 -1112
- package/dist/client/assets/prod-DU-0VfI7.js +0 -145
- package/dist/client/assets/prod-cXUNdmYV.js +0 -1
- package/dist/client/assets/runtime-config-BFVdhnJu.js +0 -1
- package/dist/client/assets/runtime-paths-Cn0snt_9.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,C as t,D as n,E as r,F as i,I as a,L as o,M as s,N as c,O as l,P as u,R as d,S as f,T as p,_ as m,a as h,b as g,c as _,d as v,f as y,g as b,h as x,i as S,j as C,k as w,l as T,m as E,n as D,o as O,p as k,r as A,s as j,t as M,u as N,v as P,w as F,x as I,y as L}from"./prod-DU-0VfI7.js";import{Aa as R,B as z,F as B,Fa as V,H,I as U,Lo as W,Mo as G,Ms as K,Nr as q,Ns as J,Pi as Y,Q as X,Tl as Z,U as Q,Ur as $,Wt as ee,Xa as te,Xt as ne,Z as re,Zt as ie,_s as ae,a as oe,bl as se,cl as ce,en as le,g as ue,hc as de,hn as fe,jo as pe,ka as me,kr as he,ml as ge,n as _e,p as ve,qr as ye,r as be,to as xe,wt as Se,xl as Ce,yt as we,z as Te,zc as Ee}from"./chunk-4SOEAONT-C3fufoVl.js";export{x as Button,me as CaptureUpdateAction,i as CommandPalette,Ee as DEFAULT_LASER_COLOR,B as DEFAULT_OVERSCROLL,s as DefaultSidebar,A as DiagramToCodePlugin,a as Ellipsify,T as Excalidraw,c as ExcalidrawAPIContext,j as ExcalidrawAPIProvider,K as FONT_FAMILY,X as Fonts,r as Footer,t as LiveCollaborationTrigger,J as MIME_TYPES,b as MainMenu,ge as ROUNDNESS,v as Sidebar,I as Stats,G as THEME,p as TTDDialog,u as TTDDialogTrigger,y as TTDStreamFetch,Z as UserIdleState,L as WelcomeScreen,ae as applyDarkModeFilter,Y as bumpVersion,V as convertToExcalidrawElements,e as defaultLang,le as elementsOverlappingBBox,O as exportToBlob,g as exportToCanvas,D as exportToClipboard,M as exportToSvg,te as getCommonBounds,z as getDataURL,Ce as getFormFactor,w as getLibraryItemsHash,q as getNonDeletedElements,ee as getSceneVersion,W as getStrokeWidthByKey,he as getTextFromElements,xe as getVisibleSceneBounds,ye as hashElementsVersion,we as hashString,fe as isElementLink,ie as isInvisiblySmallElement,R as isLinearElement,o as isSpreadsheetValidForChartType,F as languages,ue as loadFromBlob,ve as loadLibraryFromBlob,be as loadSceneOrLibraryFromBlob,S as mergeLibraryItems,$ as mutateElement,Se as newElementWith,pe as normalizeLink,E as parseLibraryTokensFromUrl,P as parseSSEStream,h as reconcileElements,l as renderSpreadsheet,U as restoreAppState,oe as restoreElement,H as restoreElements,re as restoreLibraryItems,ce as sceneCoordsToViewportCoords,_e as serializeAsJSON,Q as serializeLibraryAsJSON,ne as setCustomTextMetricsProvider,de as throttleRAF,m as tryParseSpreadsheet,f as useEditorInterface,k as useExcalidrawAPI,d as useExcalidrawStateValue,_ as useHandleLibrary,N as useI18n,C as useOnExcalidrawStateChange,n as useStylesPanelMode,se as viewportCoordsToSceneCoords,Te as zoomToFitBounds};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./runtime-paths-Cn0snt_9.js";var t=Object.freeze({authError:`auth_error`,authPassword:`auth_password`,file:`file`,gitCommit:`git-commit`,gitDiff:`git-diff`,gitFileHistory:`git-file-history`,gitFilePreview:`git-file-preview`,gitHistory:`git-history`});function n(e){return String(e??``).startsWith(`git-`)}function r(e=``){let t=String(e??``),n=t.startsWith(`#`)?t.slice(1):t;return new URLSearchParams(n)}function i(e=``){let t=String(e??``);return t.startsWith(`#`)?t.slice(1):t}function a(e=``){if(!i(e).trim().includes(`=`))return!1;let n=r(e);return Object.values(t).some(e=>n.has(e))}function o(e,{anchor:n=null,column:r=null,drawioMode:i=null,elementId:a=null,elementType:o=null,line:s=null,matchLength:c=null}={}){let l=new URLSearchParams;return e&&l.set(t.file,e),i&&l.set(`drawio`,i),n&&l.set(`anchor`,String(n).trim()),a&&l.set(`element`,String(a).trim()),o===`group`&&l.set(`elementType`,`group`),s!=null&&l.set(`line`,String(Math.max(1,Math.round(Number(s)||1)))),r!=null&&l.set(`column`,String(Math.max(1,Math.round(Number(r)||1)))),c!=null&&l.set(`matchLength`,String(Math.max(0,Math.round(Number(c)||0)))),l.toString()}function s(){return e()}function c(){return r(window.location.hash)}function l(e){return e===`staged`||e===`all`||e===`working-tree`?e:`all`}function u(){let e=c();if(e.has(t.gitFilePreview)){let n=e.get(t.gitFilePreview)||null;return{currentFilePath:e.get(`current`)||n,filePath:n,hash:e.get(`hash`)||null,type:`git-file-preview`}}if(e.has(t.gitFileHistory))return{filePath:e.get(t.gitFileHistory)||null,type:`git-file-history`};if(e.has(t.gitHistory))return{type:`git-history`};if(e.has(t.gitCommit))return{hash:e.get(t.gitCommit)||null,historyFilePath:e.get(`history`)||null,path:e.get(`path`)||null,type:`git-commit`};if(e.has(t.gitDiff)){let n=e.get(t.gitDiff)||null;return{filePath:n,scope:l(e.get(`scope`)||(n?`working-tree`:`all`)),type:`git-diff`}}if(e.has(t.file)){let n={anchor:e.get(`anchor`)||null,column:e.has(`column`)&&Number(e.get(`column`))||null,drawioMode:e.get(`drawio`)||null,filePath:e.get(t.file),line:e.has(`line`)&&Number(e.get(`line`))||null,matchLength:e.has(`matchLength`)&&Number(e.get(`matchLength`))||null,type:`file`},r=e.get(`element`)||``;return r&&(n.elementId=r,n.elementType=e.get(`elementType`)===`group`?`group`:`element`),n}return{type:`empty`}}function d(e,{anchor:t=null,column:n=null,drawioMode:r=null,elementId:i=null,elementType:a=null,line:s=null,matchLength:c=null}={}){window.location.hash=o(e,{anchor:t,column:n,drawioMode:r,elementId:i,elementType:a,line:s,matchLength:c})}function f({filePath:e=null,scope:t=`all`}={}){let n=new URLSearchParams;n.set(`git-diff`,e??``),n.set(`scope`,l(t)),window.location.hash=n.toString()}function p({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 m(){let e=new URLSearchParams;e.set(`git-history`,`1`),window.location.hash=e.toString()}function h({filePath:e}={}){let t=new URLSearchParams;t.set(`git-file-history`,e??``),window.location.hash=t.toString()}function g({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{f as a,m as c,a as d,n as f,p as i,o as l,s as n,h as o,d as r,g as s,u as t,r as u};
|
|
@@ -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||`/`}var i=`collabmd.activeVault`,a=[`/auth/`,`/hosted/`,`/agent/`,`/test/`,`/plantuml/`,`/structurizr/`];function o(e){if(e===`/api`||e===`/api/`||e===`/api/vaults`)return!1;let t=e.startsWith(`/api/`)?e.slice(4):e;return!a.some(e=>t===e.slice(0,-1)||t.startsWith(e))}function s(e=l()){let t=Array.isArray(e?.vaults)?e.vaults.map(e=>e?.id).filter(Boolean):[];if(t.length===0)return null;try{let e=globalThis.window?.localStorage?.getItem(i);if(e&&t.includes(e))return e}catch{}return e?.activeVault&&t.includes(e.activeVault)?e.activeVault:t[0]??null}function c(e){try{globalThis.window?.localStorage?.setItem(i,String(e??``))}catch{}}function l(){let e={activeVault:``,agentAccess:{enabled:!1,endpoint:``,managed:!1},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:``,search:{available:!1,backend:`ripgrep`,minQueryLength:2,unavailableReason:`ripgrep search is unavailable`,version:``},structurizrEnabled:!1,vaults:[],wikiLinkAutoCreate:!0,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 u(e=`/`,t=l()){return r(t.basePath,e)}function d(e=`/`,t=l()){return new URL(u(e,t),window.location.origin).toString()}function f(e=`/`,t=l()){let n=String(e??``).trim();if(!n||n===`/`)return u(`/api`,t);let r=n.startsWith(`/api`)?n:`/api${n.startsWith(`/`)?n:`/${n}`}`,i=r.indexOf(`?`),a=i===-1?r:r.slice(0,i),c=i===-1?``:r.slice(i),d=s(t);return d&&o(a)?u(`/api/v/${d}${a.slice(4)}${c}`,t):u(`${a}${c}`,t)}function p(t=l()){if(![`development`,`test`].includes(t.environment))return``;let n=new URLSearchParams(window.location.search).get(`server`);if(!n)return``;try{let t=new URL(n,window.location.origin);return[`http:`,`https:`,`ws:`,`wss:`].includes(t.protocol)?e(t.toString()):``}catch{return``}}function m(t=l()){let n=s(t),r=n?`/v/${n}`:``,i=p(t);return i?`${i}${r}`:t.publicWsBaseUrl?`${e(t.publicWsBaseUrl)}${r}`:`${window.location.protocol===`https:`?`wss:`:`ws:`}//${window.location.host}${u(`${t.wsBasePath}${r}`,t)}`}export{d as a,c,u as i,l as n,m as o,f as r,p as s,s as t};
|