wiki-viewer 2.1.3 → 2.2.0
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +1 -0
- package/.next/standalone/.next/build-manifest.json +6 -6
- package/.next/standalone/.next/routes-manifest.json +6 -0
- package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +3 -3
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +3 -3
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/agent/activity/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/events/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/files/[...path]/route.js +5 -5
- package/.next/standalone/.next/server/app/api/agent/files/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/fs/file/[...path]/route.js +6 -6
- package/.next/standalone/.next/server/app/api/agent/fs/file/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/fs/ls/[[...path]]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/fs/move/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/fs/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/internal/span/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/settings/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/sidecar/[...path]/route.js +7 -6
- package/.next/standalone/.next/server/app/api/agent/sidecar/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/app-proxy/[...path]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/app-proxy/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/assets/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/pdf/save/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/pdf/save/route/build-manifest.json +9 -0
- package/.next/standalone/.next/server/app/api/pdf/save/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/pdf/save/route.js +15 -0
- package/.next/standalone/.next/server/app/api/pdf/save/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/pdf/save/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/pdf/save/route_client-reference-manifest.js +3 -0
- package/.next/standalone/.next/server/app/api/share/[token]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/share/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/browse/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/reveal/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/set-root/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/open/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/refresh/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/upload/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/app/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/backlinks/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/content/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/download/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/file/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/folder/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-branches/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-checkout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-diff/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-file-info/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-history/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-pull/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/move/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/new-file/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/outlinks/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/page/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/presence/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/slugs/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/upload/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/watch/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/page/build-manifest.json +3 -3
- package/.next/standalone/.next/server/app/page/react-loadable-manifest.json +10 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/s/[token]/page/build-manifest.json +3 -3
- package/.next/standalone/.next/server/app/s/[token]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/s/[token]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/signin/page/build-manifest.json +3 -3
- package/.next/standalone/.next/server/app/signin/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +1 -0
- package/.next/standalone/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0d2jbo5.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ajw6de._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0m6r9ip._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0stkifk._.js → [root-of-the-server]__0oruwos._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ovhccp._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0n-chxk._.js → [root-of-the-server]__0vxex1w._.js} +3 -3
- package/.next/standalone/.next/server/chunks/_079xuln._.js +1 -1
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_pdf_save_route_actions_12o20jg.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{0~w0_katex_dist_katex_mjs_0s4yb1t._.js → 0~w0_katex_dist_katex_mjs_0108j-2._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__10te1ye._.js → [root-of-the-server]__0~9~gct._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{_0hpi._s._.js → _0h8pw_0._.js} +3 -3
- package/.next/standalone/.next/server/chunks/ssr/{_026lnd.._.js → _0tz4-ka._.js} +4 -4
- package/.next/standalone/.next/server/chunks/ssr/_0v4uz-4._.js +19 -0
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0ndyy93._.js → node_modules__pnpm_03woi-3._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_057-t6m._.js → node_modules__pnpm_06obnp~._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0cahog3._.js → node_modules__pnpm_079v4lb._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0u.uija._.js → node_modules__pnpm_096dp4k._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_05ans~m._.js → node_modules__pnpm_09aa..z._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_02l_1_8._.js → node_modules__pnpm_0c-vmii._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0cxanql._.js → node_modules__pnpm_0e_mxnq._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_05_oahi._.js → node_modules__pnpm_0eam7nc._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_06-2ia.._.js → node_modules__pnpm_0fh0lz3._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0wiyn6d._.js → node_modules__pnpm_0ii7t29._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0met6sx._.js → node_modules__pnpm_0j.gd4k._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0n_swwn._.js → node_modules__pnpm_0jh4djd._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_04frxp9._.js → node_modules__pnpm_0jw1dbx._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_03rzttw._.js → node_modules__pnpm_0k5bvtj._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0jh8q66._.js → node_modules__pnpm_0kor5xc._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0tr41-t._.js → node_modules__pnpm_0n7wt0r._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0mtrsi0._.js → node_modules__pnpm_0o6ac2x._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0m39f~t._.js → node_modules__pnpm_0qg6jjw._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0eqjo2f._.js → node_modules__pnpm_0s4zdbk._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_086.ow4._.js → node_modules__pnpm_0vefx9o._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0-a_zjq._.js → node_modules__pnpm_0vj6od8._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0ygzt82._.js → node_modules__pnpm_0wrs046._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0iu44jv._.js → node_modules__pnpm_0xr~ucg._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0e09gmf._.js → node_modules__pnpm_109gkpr._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0ma-8l.._.js → node_modules__pnpm_130~3i1._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0s-cj7c._.js → node_modules__pnpm_138ebg3._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0f-yazg._.js → node_modules__pnpm_13c3utk._.js} +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +6 -6
- package/.next/standalone/.next/server/middleware-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/static/chunks/0-p6_utxe5a_8.js +1 -0
- package/.next/standalone/.next/static/chunks/04_l8s7dy454_.js +1 -0
- package/.next/standalone/.next/static/chunks/057l2ju6dh43x.js +31 -0
- package/.next/standalone/.next/static/chunks/06eionk6sdadm.css +1 -0
- package/.next/standalone/.next/static/chunks/0bgyypetjs9~i.css +5 -0
- package/.next/standalone/.next/static/chunks/0cy32os0684dj.js +113 -0
- package/.next/standalone/.next/static/chunks/0ff5z2ti4cs.2.js +1 -0
- package/.next/standalone/.next/static/chunks/0k31ncl7m_j9q.js +5 -0
- package/.next/standalone/.next/static/chunks/0sshdogvg3twu.js +113 -0
- package/.next/standalone/.next/static/chunks/0~m~l6t.25dxo.js +1 -0
- package/.next/standalone/.next/static/chunks/10~nefki4aqgv.js +5 -0
- package/.next/standalone/.next/static/chunks/14~-bgg0b~4bh.js +1 -0
- package/.next/standalone/.next/static/chunks/17op0v548wmg9.js +17 -0
- package/.next/standalone/.next/static/chunks/{turbopack-12~z-mr7b9b50.js → turbopack-1105gjd__15ti.js} +1 -1
- package/.next/standalone/.next/static/media/altText_add.11l4.nysz0z47.svg +3 -0
- package/.next/standalone/.next/static/media/altText_disclaimer.0-fkoyz3r4.vr.svg +3 -0
- package/.next/standalone/.next/static/media/altText_done.09w1jqvk3ga77.svg +3 -0
- package/.next/standalone/.next/static/media/altText_spinner.011~3weg7vxwh.svg +30 -0
- package/.next/standalone/.next/static/media/altText_warning.0uszsbnztiu38.svg +3 -0
- package/.next/standalone/.next/static/media/comment-closeButton.09x_diuuox8.p.svg +3 -0
- package/.next/standalone/.next/static/media/comment-popup-editButton.0ncym9lg9cwyw.svg +5 -0
- package/.next/standalone/.next/static/media/cursor-editorFreeHighlight.089qa-ugkz~ml.svg +6 -0
- package/.next/standalone/.next/static/media/cursor-editorFreeText.13jy27m_lk2jb.svg +3 -0
- package/.next/standalone/.next/static/media/cursor-editorInk.0w~p4njb_q99n.svg +4 -0
- package/.next/standalone/.next/static/media/cursor-editorTextHighlight.0e14z1tamqi61.svg +8 -0
- package/.next/standalone/.next/static/media/editor-toolbar-delete.03wunzr0m9rov.svg +5 -0
- package/.next/standalone/.next/static/media/editor-toolbar-edit.0hg-w4v6gf5-d.svg +3 -0
- package/.next/standalone/.next/static/media/loading-icon.0gtb0.n871aax.gif +0 -0
- package/.next/standalone/.next/static/media/messageBar_closingButton.15rqkmbgrfbfy.svg +3 -0
- package/.next/standalone/.next/static/media/messageBar_info.17crwltyl6qk5.svg +3 -0
- package/.next/standalone/.next/static/media/messageBar_warning.0zri3991i~s-j.svg +3 -0
- package/.next/standalone/.next/static/media/toolbarButton-editorHighlight.0ni3w.c8~58pj.svg +6 -0
- package/.next/standalone/.next/static/media/toolbarButton-menuArrow.0tx16jlj3l~wi.svg +3 -0
- package/.next/standalone/package.json +2 -1
- package/.next/standalone/public/pdfjs/pdf.worker.min.mjs +28 -0
- package/package.json +2 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0k9mili._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0yxauu6._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/src_app_page_tsx_0ss2.w7._.js +0 -19
- package/.next/standalone/.next/static/chunks/02c9264uigqjd.js +0 -1
- package/.next/standalone/.next/static/chunks/0_p-~rp2hak3c.js +0 -113
- package/.next/standalone/.next/static/chunks/0lrkdb9w.6kl1.js +0 -1
- package/.next/standalone/.next/static/chunks/0ocp.6r7w_saw.js +0 -31
- package/.next/standalone/.next/static/chunks/0oy4xayqkedl5.js +0 -113
- package/.next/standalone/.next/static/chunks/0quh-cfcrp2ib.js +0 -5
- package/.next/standalone/.next/static/chunks/0r0fa52s8puxv.js +0 -17
- package/.next/standalone/.next/static/chunks/0sx~65~lg4mgl.css +0 -5
- package/.next/standalone/.next/static/chunks/139g2hzko-flp.js +0 -1
- package/.next/standalone/.next/static/chunks/14_efa7172tp-.js +0 -1
- /package/.next/standalone/.next/static/{czHazDjTGrE8lFhf8IAtQ → 76hSogxTu2NPmJmUsmzXu}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{czHazDjTGrE8lFhf8IAtQ → 76hSogxTu2NPmJmUsmzXu}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{czHazDjTGrE8lFhf8IAtQ → 76hSogxTu2NPmJmUsmzXu}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,824627,e=>{"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,n)},n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>n,"__awaiter",0,function(e,t,n,r){return new(n||(n=Promise))(function(s,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function i(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?s(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,i)}l((r=r.apply(e,t||[])).next())})},"__extends",0,function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},"__generator",0,function(e,t){var n,r,s,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=i(0),o.throw=i(1),o.return=i(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function i(i){return function(l){var c=[i,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(s=2&c[0]?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[2&c[0],s.value]),c[0]){case 0:case 1:s=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(s=(s=a.trys).length>0&&s[s.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!s||c[1]>s[0]&&c[1]<s[3])){a.label=c[1];break}if(6===c[0]&&a.label<s[1]){a.label=s[1],s=c;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(c);break}s[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=s=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},"__rest",0,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)0>t.indexOf(r[s])&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n},"__spreadArray",0,function(e,t,n){if(n||2==arguments.length)for(var r,s=0,a=t.length;s<a;s++)!r&&s in t||(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return e.concat(r||Array.prototype.slice.call(t))}])},670977,e=>{"use strict";var t=e.i(44501),n=e.i(425732),r=e.i(301138),s=e.i(567776),a=e.i(691520),o=e.i(764143),i=e.i(391548),l=e.i(43240),c=e.i(367092),d=e.i(702166),u=e.i(101685),m=e.i(519455),p=e.i(793479),x=e.i(515288),f=e.i(755146),h=e.i(427423),w=e.i(912235),g=e.i(96701),y=e.i(780569),j=e.i(894013);e.s(["default",0,function({params:v}){let[b,k]=(0,u.useState)(null),[N,C]=(0,u.useState)({kind:"loading"}),[S,T]=(0,u.useState)(""),[O,_]=(0,u.useState)(!1),[P,E]=(0,u.useState)(!1),[D,I]=(0,u.useState)(null),A=async()=>{if("content"===N.kind)try{await navigator.clipboard.writeText(N.content),I("raw"),setTimeout(()=>I(null),2e3)}catch{}},$=async()=>{if("content"===N.kind)try{let{markdownToHtml:t}=await e.A(299765),n=await t(N.content);"ClipboardItem"in window&&navigator.clipboard.write?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([n],{type:"text/html"}),"text/plain":new Blob([N.content],{type:"text/plain"})})]):await navigator.clipboard.writeText(N.content),I("formatted"),setTimeout(()=>I(null),2e3)}catch{}},B=(0,u.useCallback)(async()=>{if(b){C({kind:"loading"});try{let e=await fetch(`/api/share/${b}`),t=await e.json();e.ok&&void 0!==t.content?(g.useEditorStore.setState({currentPath:`shared/${b}/${t.filename??"document"}`,content:t.content,frontmatter:null,isLoading:!1,loadStatus:"ok",isDirty:!1,currentRevision:null,saveStatus:"saved"}),C({kind:"content",content:t.content,filename:t.filename??"document",viewCount:t.viewCount??0})):401===e.status&&t.protected?C({kind:"password",message:t.message??""}):410===e.status?C({kind:"error",title:"Link unavailable",message:t.message??"This share link is no longer available."}):404===e.status?C({kind:"error",title:"Not found",message:"This share link does not exist."}):C({kind:"error",title:"Error",message:t.message??"Something went wrong. Try again later."})}catch{C({kind:"error",title:"Connection error",message:"Could not reach the server. Check your connection."})}}},[b]);(0,u.useEffect)(()=>{v.then(e=>k(e.token))},[v]),(0,u.useEffect)(()=>{b&&B()},[b,B]);let L=async e=>{if(e.preventDefault(),S.trim()&&b){_(!0),E(!1);try{let e=await fetch(`/api/share/${b}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:S.trim()})}),t=await e.json();e.ok&&void 0!==t.content?(g.useEditorStore.setState({currentPath:`shared/${b}/${t.filename??"document"}`,content:t.content,frontmatter:null,isLoading:!1,loadStatus:"ok",isDirty:!1,currentRevision:null,saveStatus:"saved"}),C({kind:"content",content:t.content,filename:t.filename??"document",viewCount:t.viewCount??0})):403===e.status?(E(!0),C({kind:"password",message:"Incorrect password"})):429===e.status?C({kind:"password",message:"Too many attempts. Try again later."}):C({kind:"error",title:"Error",message:t.message??"Something went wrong."})}catch{C({kind:"error",title:"Connection error",message:"Could not reach the server."})}_(!1)}};return(0,t.jsx)(h.ThemeProvider,{children:(0,t.jsxs)("div",{className:"min-h-screen flex flex-col bg-background text-foreground",children:[(0,t.jsx)("header",{className:"border-b border-border bg-muted/50",children:(0,t.jsx)("div",{className:"mx-auto flex max-w-4xl items-center gap-2 px-4 py-2",children:"content"===N.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-success shrink-0"}),(0,t.jsx)("span",{className:"text-sm font-mono truncate",title:N.filename,children:N.filename})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,t.jsxs)(f.DropdownMenu,{children:[(0,t.jsx)(f.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(m.Button,{size:"sm",variant:"ghost",className:"h-7 gap-1.5 px-2 text-xs data-[state=open]:bg-transparent",title:"Copy link, raw content, or formatted content",children:["link"===D?(0,t.jsx)(l.Check,{className:"h-3.5 w-3.5 text-success"}):(0,t.jsx)(i.Copy,{className:"h-3.5 w-3.5"}),"Copy",(0,t.jsx)(c.ChevronDown,{className:"h-3 w-3 opacity-60"})]})}),(0,t.jsxs)(f.DropdownMenuContent,{align:"end",className:"w-48",children:[(0,t.jsxs)(f.DropdownMenuItem,{onClick:()=>{if(!b)return;let e=`${window.location.origin}/s/${b}`;navigator.clipboard.writeText(e),I("link"),setTimeout(()=>I(null),2e3)},children:[(0,t.jsx)(d.Link,{className:"mr-2 h-3.5 w-3.5"}),"Copy share link"]}),(0,t.jsx)(f.DropdownMenuSeparator,{}),(0,t.jsxs)(f.DropdownMenuItem,{onClick:A,children:[(0,t.jsx)(o.FileText,{className:"mr-2 h-3.5 w-3.5"}),"Copy raw content"]}),(0,t.jsxs)(f.DropdownMenuItem,{onClick:$,children:[(0,t.jsx)(o.FileText,{className:"mr-2 h-3.5 w-3.5"}),"Copy formatted content"]})]})]}),(0,t.jsx)(y.ViewWidthToggle,{}),(0,t.jsx)(j.ThemeToggle,{}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground ml-2",children:[N.viewCount," view",1!==N.viewCount?"s":""]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Eye,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"Shared document"})]})})}),"loading"===N.kind&&(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,t.jsx)(a.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})}),"password"===N.kind&&(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center px-4",children:(0,t.jsx)(x.Card,{className:"max-w-sm w-full p-6",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,t.jsx)("div",{className:"rounded-full bg-muted p-3",children:(0,t.jsx)(s.Lock,{className:"h-6 w-6 text-muted-foreground"})}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-base font-medium",children:"Password required"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:N.message||"This document is password-protected."})]}),(0,t.jsxs)("form",{onSubmit:L,className:"w-full space-y-3",children:[(0,t.jsx)(p.Input,{type:"password",placeholder:"Enter password",value:S,onChange:e=>{T(e.target.value),E(!1)},autoFocus:!0}),P&&(0,t.jsxs)("p",{className:"text-xs text-destructive flex items-center gap-1",children:[(0,t.jsx)(n.AlertCircle,{className:"h-3 w-3"}),"Wrong password. Try again."]}),(0,t.jsx)(m.Button,{type:"submit",className:"w-full",disabled:O||!S.trim(),children:O?(0,t.jsx)(a.Loader2,{className:"h-4 w-4 animate-spin"}):"View document"})]})]})})}),"error"===N.kind&&(0,t.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 px-4 text-center",children:[(0,t.jsx)("div",{className:"rounded-full bg-muted p-3",children:(0,t.jsx)(n.AlertCircle,{className:"h-6 w-6 text-muted-foreground"})}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-base font-medium",children:N.title}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:N.message})]})]}),"content"===N.kind&&(0,t.jsx)(w.KBEditor,{mode:"viewing"}),"content"===N.kind&&(0,t.jsx)("footer",{className:"border-t border-border bg-muted/30",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-4xl items-center gap-2 px-4 py-2",children:[(0,t.jsx)(o.FileText,{className:"h-3 w-3 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:N.filename})]})})]})})}])},299765,e=>{e.v(e=>Promise.resolve().then(()=>e(797715)))}]);
|