@inkeep/open-knowledge 0.87.4-beta.0 → 0.87.5-beta.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/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/cli.mjs +72 -72
- package/dist/constants-BTkEHXzz.mjs +1 -0
- package/dist/{dist-BJZIDN3k.mjs → dist-Cv2PQOLP.mjs} +509 -508
- package/dist/{dist-Dly9AMSy.mjs → dist-catZfEB7.mjs} +1 -1
- package/dist/index.mjs +208 -208
- package/dist/{init-DAt352Cb.mjs → init-B0HZTMrR.mjs} +26 -26
- package/dist/init-Cxpu4pbQ.mjs +1 -0
- package/dist/{launch-json-removal-Dgb32hCB.mjs → launch-json-removal-BkTNm3c-.mjs} +1 -1
- package/dist/loader-B3hEOQVY.mjs +1 -0
- package/dist/{loader-B6O7IvYr.mjs → loader-DP-nPPZA.mjs} +1 -1
- package/dist/{md-manager-BGnqyqi1-CuOBBDL0.mjs → md-manager-BGnqyqi1-DoZJSsFD.mjs} +172 -172
- package/dist/{open-browser-Dn4EWvoa.mjs → open-browser-Bouj-ci9.mjs} +1 -1
- package/dist/parse-worker.mjs +1 -1
- package/dist/preview-BOXXnhBV.mjs +1 -0
- package/dist/{preview-vam38uZa.mjs → preview-C92fHry_.mjs} +1 -1
- package/dist/public/assets/{AccountSection-CB7CDjMG.js → AccountSection-CHLobgpO.js} +1 -1
- package/dist/public/assets/{ActivityModeContent-DvPNvgf8.js → ActivityModeContent-BCDNq6Vj.js} +1 -1
- package/dist/public/assets/{AddPropertiesButton-D9O40Sa0.js → AddPropertiesButton-Df8YbLY4.js} +2 -2
- package/dist/public/assets/{AgentConnectionsSection-BP4v8Jzk.js → AgentConnectionsSection-CrXyZ7s0.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-0_6Kk-OC.js → AgentDiffPane-ClLlEwwH.js} +1 -1
- package/dist/public/assets/{AttachmentsSection-DfG9Nl_-.js → AttachmentsSection-BaNEINam.js} +1 -1
- package/dist/public/assets/{AuthModal-DR2nnIe4.js → AuthModal-CiMWDLP2.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-u2_2jHS_.js → CodeMirrorPropInput-BArPCB_D.js} +2 -2
- package/dist/public/assets/{ContentRulesSection-3US5PoEh.js → ContentRulesSection-D3U4OKY-.js} +1 -1
- package/dist/public/assets/{DiffViewBoundary-HF9wG1D5.js → DiffViewBoundary-3eDWqiFB.js} +1 -1
- package/dist/public/assets/{DocumentContext-DUjEW8u4.js → DocumentContext-Bqs88KmQ.js} +3 -3
- package/dist/public/assets/{EditorModeToggle-Cu0pHbiP.js → EditorModeToggle-CqGUDvi5.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-Bip9Ubqq.js → ExcalidrawDocEditor-8vsPu1pP.js} +1 -1
- package/dist/public/assets/FeedbackForm-C49v3vCV.js +1 -0
- package/dist/public/assets/{GraphPanel-D-NAOA44.js → GraphPanel-CbJhUFdz.js} +2 -2
- package/dist/public/assets/{ImportSkillDialog-CpvbAEjJ.js → ImportSkillDialog-FEorgbTw.js} +1 -1
- package/dist/public/assets/{LinkPreviewsSection-B4A0DxBJ.js → LinkPreviewsSection-4-TD7MMH.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-DFBRocCp.js → LintConfigEditor-Db2YKLpK.js} +1 -1
- package/dist/public/assets/{LintingSection-4xNHBcmO.js → LintingSection-5q-82m8S.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-C4tDV1dh.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-RV8k9v_W.js +1 -0
- package/dist/public/assets/{McpConsentDialogBody-xbsziJ8M.js → McpConsentDialogBody-T-AsMqAM.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-DhAt04cF.js → MermaidDocEditor-DxwWgnS9.js} +1 -1
- package/dist/public/assets/{NetworkAccessSection-5V9ZCRBW.js → NetworkAccessSection-Bli_TwC9.js} +1 -1
- package/dist/public/assets/{OkignoreSection-CQywQkmc.js → OkignoreSection-CRFoJuYb.js} +1 -1
- package/dist/public/assets/{ProjectTemplatesSection-B7Ooul87.js → ProjectTemplatesSection-Dm9jRJL0.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-D43pENxf.js → PropertyDisplayRow-CGHweNEd.js} +2 -2
- package/dist/public/assets/{PublishToGitHubDialog-CNTkWUNd.js → PublishToGitHubDialog-B2me1giD.js} +1 -1
- package/dist/public/assets/{RegisteredAgentIcon-CAJfDHjD.js → RegisteredAgentIcon-g86u94_w.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-Csu8qLuF.js → SchemaConfigEditor-xdiDSy2g.js} +1 -1
- package/dist/public/assets/{SearchSection-DVvMh3lH.js → SearchSection-Bf1V9QwZ.js} +1 -1
- package/dist/public/assets/{SessionsHost-DfZwS6qh.js → SessionsHost-DM9lcsTc.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-DqYqc4my.js → SettingsDialogBody-DftEF818.js} +2 -2
- package/dist/public/assets/{ShareReceiveMissDialog-BkT_YdaX.js → ShareReceiveMissDialog-BfsIZpEx.js} +1 -1
- package/dist/public/assets/{SkillCostValue-BFJMlQId.js → SkillCostValue-Cv4fxI3N.js} +1 -1
- package/dist/public/assets/{SkillEditBanner-BYQhRIjd.js → SkillEditBanner-1xI4AWZN.js} +1 -1
- package/dist/public/assets/{SkillForkDialog-cfPQA1If.js → SkillForkDialog-B7AI0Y-p.js} +1 -1
- package/dist/public/assets/{SkillInstallMenu-CpyTgAOO.js → SkillInstallMenu-ujjOQM8T.js} +1 -1
- package/dist/public/assets/SkillModeBanner-DJo427go.js +1 -0
- package/dist/public/assets/{SkillOriginInline-reReggq9.js → SkillOriginInline-COdARBhh.js} +1 -1
- package/dist/public/assets/{SkillPluginBundleDialog-Ct2pafVZ.js → SkillPluginBundleDialog-CriBEhj8.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-Dt7zvk3G.js → SkillToolbarControls-uynLsV5F.js} +1 -1
- package/dist/public/assets/{SkillsManagerSection-Ba3qS3d6.js → SkillsManagerSection-De-RcGVw.js} +1 -1
- package/dist/public/assets/{SlidesToolbarControls-Ctd7A4Q8.js → SlidesToolbarControls-C79NF9Vc.js} +1 -1
- package/dist/public/assets/{SourceEditor-Bhh0RMkf.js → SourceEditor-GFY333ie.js} +1 -1
- package/dist/public/assets/{SpellingSettings-CWteA58C.js → SpellingSettings-CdT9a_rM.js} +1 -1
- package/dist/public/assets/{SyncSection-96p0Bvsg.js → SyncSection-oPddlij9.js} +1 -1
- package/dist/public/assets/{SyncStatusBadge-Bi-a1KVS.js → SyncStatusBadge-Byx3qoQq.js} +1 -1
- package/dist/public/assets/{TemplateRow-DybWEh-V.js → TemplateRow-DK66-N83.js} +2 -2
- package/dist/public/assets/{TerminalLaunchContext-zaxrx8Ob.js → TerminalLaunchContext-8h1FtRCM.js} +1 -1
- package/dist/public/assets/{TerminalPanel-CzyduRsB.js → TerminalPanel-BQ72xwRb.js} +1 -1
- package/dist/public/assets/{TerminalSection-D-FarFrO.js → TerminalSection-DbfCiHbJ.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-CjO1HPt0.js → TerminalWindowApp-CaI80HFq.js} +1 -1
- package/dist/public/assets/{TextDocEditor-BQO_dN7M.js → TextDocEditor-C-pM2yOa.js} +1 -1
- package/dist/public/assets/ThemePluginSection-X00m8_oh.js +6 -0
- package/dist/public/assets/{ThreadView-hZyerxM7.js → ThreadView-DesX-mmn.js} +1 -1
- package/dist/public/assets/{TimelineDiffPane-BkKFnaJa.js → TimelineDiffPane-B6lBH3xv.js} +1 -1
- package/dist/public/assets/{agent-connections-CKjjlHMQ.js → agent-connections-WVUAXE1-.js} +1 -1
- package/dist/public/assets/{agent-registry-CHWxsZbl.js → agent-registry-tQw4RviC.js} +1 -1
- package/dist/public/assets/{bridge-nc43unzY.js → bridge-D0zaOiIE.js} +3 -3
- package/dist/public/assets/{calendar-B0urmsQ1.js → calendar-aomRwj8d.js} +1 -1
- package/dist/public/assets/{catalog-B9JwWDPk.js → catalog-igkheV1C.js} +1 -1
- package/dist/public/assets/{client-version-kkepkREF.js → client-version-DTnfpIjW.js} +1 -1
- package/dist/public/assets/{comment-chips-Jmrwo5Hd.js → comment-chips-BtMos4uY.js} +1 -1
- package/dist/public/assets/{config-provider-CPYdYpEf.js → config-provider-BJVaZWcl.js} +1 -1
- package/dist/public/assets/config-schema-B1_3y0l5.js +1 -0
- package/dist/public/assets/{css-color-to-hex-BUw_awQK.js → css-color-to-hex-CkzbmYKA.js} +1 -1
- package/dist/public/assets/{doc-undo-manager-DbITmbUh.js → doc-undo-manager-BcgKArWo.js} +1 -1
- package/dist/public/assets/{field-controls-kKc5F9zV.js → field-controls-BiNEe5aI.js} +1 -1
- package/dist/public/assets/field-controls-DDgmYrsM.js +1 -0
- package/dist/public/assets/{ime-composition-sf57BdPh.js → ime-composition-BAiFUm_0.js} +1 -1
- package/dist/public/assets/index-C9Dhh52J.js +2209 -0
- package/dist/public/assets/{lint-config-client-CMydN46i.js → lint-config-client-N8fwiy94.js} +1 -1
- package/dist/public/assets/{lint-plugins-CThm4iHI.js → lint-plugins-B41rezsy.js} +1 -1
- package/dist/public/assets/{markdown-lint-B8Z_0Kvy.js → markdown-lint-DXOOOaOH.js} +3 -3
- package/dist/public/assets/{markdownlint-rule-browser-CXbjrFdy.js → markdownlint-rule-browser-Bp3fW5jF.js} +1 -1
- package/dist/public/assets/messages--ehzGEyL.js +1 -0
- package/dist/public/assets/messages-BY8vnrN5.js +1 -0
- package/dist/public/assets/messages-BsaUfgyT.js +1 -0
- package/dist/public/assets/messages-C3jyZ-tQ.js +1 -0
- package/dist/public/assets/messages-CRaWmTK3.js +1 -0
- package/dist/public/assets/messages-CjxzZ_an.js +1 -0
- package/dist/public/assets/messages-D9Q_Zb27.js +1 -0
- package/dist/public/assets/messages-Di5PZudR.js +1 -0
- package/dist/public/assets/messages-Dt7AN68O.js +1 -0
- package/dist/public/assets/messages-SQ_HVqr-.js +1 -0
- package/dist/public/assets/messages-VFA4QUBO.js +1 -0
- package/dist/public/assets/messages-kSFbJVg5.js +1 -0
- package/dist/public/assets/messages-mX7CV8Xh.js +1 -0
- package/dist/public/assets/{pending-receive-nav-store-B7V1Rg9x.js → pending-receive-nav-store-B9uyVDcN.js} +1 -1
- package/dist/public/assets/{preferred-session-events-69rtaUyj.js → preferred-session-events-lXAuS48Q.js} +1 -1
- package/dist/public/assets/{progress-DIQhloBy.js → progress-C0gt7LAt.js} +1 -1
- package/dist/public/assets/{saved-themes-client-DmclwZ8v.js → saved-themes-client-D8SE9Dxo.js} +1 -1
- package/dist/public/assets/{schema-section-BXgkFDyQ.js → schema-section-QQLWvNa_.js} +1 -1
- package/dist/public/assets/{schemas-api-B9gBqMLK.js → schemas-api-CxajedMJ.js} +1 -1
- package/dist/public/assets/{selection-context-dbGtxQBF.js → selection-context-Bpox3Yhn.js} +1 -1
- package/dist/public/assets/{skills-api-5TsLTlcr.js → skills-api-BA63vOx_.js} +1 -1
- package/dist/public/assets/{src-BL_fN-D8.js → src-DvFRMb_f.js} +1 -1
- package/dist/public/assets/storage-scope-DKwOLa7W.js +1 -0
- package/dist/public/assets/{tag-pill-input-DOxurUWT.js → tag-pill-input--UfEq84b.js} +1 -1
- package/dist/public/assets/{telemetry-impl-CXXiQc57.js → telemetry-impl-C3w8nakT.js} +1 -1
- package/dist/public/assets/{telemetry-startup-DzMu0hx1.js → telemetry-startup-6J8BtuaH.js} +1 -1
- package/dist/public/assets/{terminal-launch-events-BFXRsi4V.js → terminal-launch-events-DHPVU8Cu.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-B3wt6IKV.js → typing-burst-detector-qyrW2QW_.js} +1 -1
- package/dist/public/assets/{uninstall-DyYmGM9i.js → uninstall-DizefbDX.js} +1 -1
- package/dist/public/assets/{use-activity-panel-ucWiCMhm.js → use-activity-panel-DdkcoGpF.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-BPRaqk9x.js → use-apply-config-color-theme-QBoEiHRM.js} +2 -2
- package/dist/public/assets/{use-apply-config-language-DlSviEmN.js → use-apply-config-language-CbiUoguW.js} +2 -2
- package/dist/public/assets/{use-conflicts-BKMO-Ys4.js → use-conflicts-DZvpR_hq.js} +1 -1
- package/dist/public/assets/{use-live-xterm-theme-8O2LGwCv.js → use-live-xterm-theme-COXlqksJ.js} +1 -1
- package/dist/public/assets/{use-open-skill-4UI_Rt49.js → use-open-skill-CZ1zDukA.js} +1 -1
- package/dist/public/assets/{use-semantic-search-status-lORVQFbY.js → use-semantic-search-status-BENQM7pt.js} +1 -1
- package/dist/public/assets/{use-skill-origin-14pvHqaa.js → use-skill-origin-H8JMxGxS.js} +1 -1
- package/dist/public/assets/{use-skill-targets-d0ssmszt.js → use-skill-targets-DJsi-lk-.js} +1 -1
- package/dist/public/assets/{use-skills-CEIGHZpc.js → use-skills-BQFGJ-V4.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-DG0rrtVc.js → use-terminal-enabled-BXdPTHGz.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-LiNGovKG.js → use-timeline-entry-diff-Dk-vSJNV.js} +1 -1
- package/dist/public/assets/{use-workspace-CAGIeY37.js → use-workspace-DLEb_ZeP.js} +1 -1
- package/dist/public/index.html +56 -56
- package/dist/public/uninstall.html +3 -3
- package/dist/{registry-probes-CvdAGpV3.mjs → registry-probes-DR7RHs-x.mjs} +3 -3
- package/dist/{removal-file-path-C_21UYfe.mjs → removal-file-path-q6DdNYPp.mjs} +1 -1
- package/dist/{repair-launch-json-Cwg1Hh00.mjs → repair-launch-json-I57zhKjr.mjs} +1 -1
- package/dist/{repair-mcp-configs-CDG-W2sF.mjs → repair-mcp-configs-CIePXQjA.mjs} +1 -1
- package/dist/src-C6hpRK1Z.mjs +16 -0
- package/dist/src-CI-IG26s.mjs +1 -0
- package/dist/{start-CY5gJiIk.mjs → start-BzsIwG3Z.mjs} +3 -3
- package/dist/start-DXv1zj_Z.mjs +1 -0
- package/package.json +4 -4
- package/dist/constants-BxYU-W85.mjs +0 -1
- package/dist/init-BECqR4z5.mjs +0 -1
- package/dist/loader-DGSDCWET.mjs +0 -1
- package/dist/preview-BagRttds.mjs +0 -1
- package/dist/public/assets/FeedbackForm-CusD41pH.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-CLFV7Mcu.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-DRdRpbdP.js +0 -1
- package/dist/public/assets/SkillModeBanner-CmfPlHVL.js +0 -1
- package/dist/public/assets/ThemePluginSection-GfXRIsMz.js +0 -6
- package/dist/public/assets/config-schema-B9u6M8He.js +0 -1
- package/dist/public/assets/field-controls-CKK_bzDT.js +0 -1
- package/dist/public/assets/index-Di8-FkAo.js +0 -2209
- package/dist/public/assets/messages-BDCxJPx2.js +0 -1
- package/dist/public/assets/messages-BEW0uPVX.js +0 -1
- package/dist/public/assets/messages-BO-eBk9m.js +0 -1
- package/dist/public/assets/messages-BaDp2_Fp.js +0 -1
- package/dist/public/assets/messages-CDO-xexo.js +0 -1
- package/dist/public/assets/messages-CRHWN_nJ.js +0 -1
- package/dist/public/assets/messages-CVuWmrbN.js +0 -1
- package/dist/public/assets/messages-C_w7Btlk.js +0 -1
- package/dist/public/assets/messages-CtVlTdzP.js +0 -1
- package/dist/public/assets/messages-Cz11LTJA.js +0 -1
- package/dist/public/assets/messages-D3qz2TwL.js +0 -1
- package/dist/public/assets/messages-DHXe_6Gj.js +0 -1
- package/dist/public/assets/messages-DKWtuhsU.js +0 -1
- package/dist/public/assets/storage-scope-Cnm-5Aal.js +0 -1
- package/dist/src-62vCU-5L.mjs +0 -16
- package/dist/src-D47eU9XX.mjs +0 -1
- package/dist/start-CKoud1mN.mjs +0 -1
- /package/dist/public/assets/{DeleteConfirmationDialog-B0lltyMh.js → DeleteConfirmationDialog-BsTU-OWm.js} +0 -0
- /package/dist/public/assets/{alert-RmVFIy8D.js → alert-Bb4K23ol.js} +0 -0
- /package/dist/public/assets/{folder-config-api-BDhEYA86.js → folder-config-api-oMYXBtrq.js} +0 -0
- /package/dist/public/assets/{format-CJ1bI5np.js → format-eyy9pWAn.js} +0 -0
- /package/dist/public/assets/{settings-section-labels-VKfUFuEe.js → settings-section-labels-DX7VF2VJ.js} +0 -0
- /package/dist/public/assets/{sortable.esm-CFAacZUM.js → sortable.esm-CtrUfCv8.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{n as a}from"./dist-PQ5KMVDh.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./utils-CPqDy6Hr.js";import{i as c,n as l,t as u}from"./tooltip-Bz6z4_se.js";import{n as d,t as f}from"./toggle-group-B7p69Qfd.js";import{t as p}from"./button-DzgjsZzC.js";import{a as m,v as h}from"./constants-upload-CVKO8P4d.js";import{n as g}from"./dist-BGzUo_18.js";import{n as _}from"./config-errors-DDAH9fqy.js";import{i as v}from"./use-apply-config-theme-CYFG76sS.js";import{o as y}from"./ime-composition-sf57BdPh.js";import"./config-provider-CPYdYpEf.js";import{t as b}from"./file-tree-utils-CiVz_BRk.js";import{J as x,M as S,Tt as C}from"./dist-B8KZUrr_.js";import{i as w,n as T,r as E,t as D}from"./cm-theme-DY245iRg.js";import{t as O}from"./dist-8cadZTcN.js";import{t as k}from"./text-viewer-languages-CKtwqOI2.js";var A=o(),j=e(n(),1),M=class extends Error{httpStatus;constructor(e,t){super(e),this.name=`ViewerTextLoadError`,this.httpStatus=t}};function N(e){let t=(0,A.c)(10),{_:n}=i(),r;t[0]===n?r=t[1]:(r=e=>n(e===413?{id:`C_WGy8`}:e===415?{id:`VM7H66`}:e===404?{id:`s0IDhW`}:e===400?{id:`N1mdmS`}:typeof e==`number`?{id:`96w9hU`,values:{status:e}}:{id:`ig5vUe`}),t[0]=n,t[1]=r);let a=r,{src:o,loadText:s}=e,c=(0,j.useRef)(s),l=(0,j.useRef)(a),u;t[2]!==s||t[3]!==a?(u=()=>{c.current=s,l.current=a},t[2]=s,t[3]=a,t[4]=u):u=t[4],(0,j.useEffect)(u);let d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d={status:`loading`},t[5]=d):d=t[5];let[f,p]=(0,j.useState)(d),m,h;return t[6]!==n||t[7]!==o?(m=()=>{let e=!1,t=new AbortController;p({status:`loading`});let r=c.current;return r?(r(t.signal).then(t=>{if(!e){if(t.ok){p({status:`loaded`,content:t.text});return}p({status:`error`,message:t.message??l.current(t.status),httpStatus:t.status})}}).catch(t=>{e||t instanceof Error&&t.name===`AbortError`||p({status:`error`,message:n({id:`ig5vUe`})})}),()=>{e=!0,t.abort()}):(fetch(o??``,{credentials:`same-origin`,signal:t.signal}).then(async e=>{if(!e.ok)throw new M(l.current(e.status),e.status);return e.text()}).then(t=>{e||p({status:`loaded`,content:t})}).catch(t=>{e||t instanceof Error&&t.name===`AbortError`||p({status:`error`,message:t instanceof Error?t.message:n({id:`ig5vUe`}),httpStatus:t instanceof M?t.httpStatus:void 0})}),()=>{e=!0,t.abort()})},h=[o,n],t[6]=n,t[7]=o,t[8]=m,t[9]=h):(m=t[8],h=t[9]),(0,j.useEffect)(m,h),f}var P=t();function F(e){let t=(0,A.c)(10),{fileName:n,dataAttr:i,extraAttrs:a}=e,o=`${i}-state`,s;t[0]!==i||t[1]!==o?(s={[i]:``,[o]:`loading`},t[0]=i,t[1]=o,t[2]=s):s=t[2];let c;t[3]===n?c=t[4]:(c=(0,P.jsx)(`span`,{children:(0,P.jsx)(r,{id:`Md709y`,values:{fileName:n}})}),t[3]=n,t[4]=c);let l;return t[5]!==a||t[6]!==n||t[7]!==s||t[8]!==c?(l=(0,P.jsx)(`section`,{className:`flex h-full min-h-0 flex-col items-center justify-center bg-background text-muted-foreground text-sm`,"aria-label":n,...s,...a,children:c}),t[5]=a,t[6]=n,t[7]=s,t[8]=c,t[9]=l):l=t[9],l}function I(e){let t=(0,A.c)(16),{fileName:n,dataAttr:i,extraAttrs:a,message:o,openFile:s}=e,c=`${i}-state`,l;t[0]!==i||t[1]!==c?(l={[i]:``,[c]:`error`},t[0]=i,t[1]=c,t[2]=l):l=t[2];let u;t[3]===n?u=t[4]:(u=(0,P.jsx)(`div`,{className:`font-medium text-sm`,children:(0,P.jsx)(r,{id:`qdBUHP`,values:{fileName:n}})}),t[3]=n,t[4]=u);let d;t[5]===o?d=t[6]:(d=(0,P.jsx)(`div`,{className:`text-muted-foreground text-xs`,children:o}),t[5]=o,t[6]=d);let f;t[7]===s?f=t[8]:(f=s?(0,P.jsx)(p,{variant:`outline`,size:`sm`,className:`mt-2`,"data-testid":`viewer-open-file`,onClick:()=>{E({url:s.url,projectRelPath:s.projectRelPath,ext:s.ext,title:s.title,forceOsDelegation:!0})},children:(0,P.jsx)(r,{id:`9npOH9`})}):null,t[7]=s,t[8]=f);let m;return t[9]!==a||t[10]!==n||t[11]!==l||t[12]!==u||t[13]!==d||t[14]!==f?(m=(0,P.jsxs)(`section`,{className:`flex h-full min-h-0 flex-col items-center justify-center gap-2 bg-background p-4 text-center`,"aria-label":n,...l,...a,children:[u,d,f]}),t[9]=a,t[10]=n,t[11]=l,t[12]=u,t[13]=d,t[14]=f,t[15]=m):m=t[15],m}function L({assetPath:e,fileName:t,extension:n,httpStatus:r}){if(!e||r===404)return;let i=n.toLowerCase();return{projectRelPath:e,ext:i,title:t,url:w(`${m.has(i)?`/api/asset`:`/api/asset-text`}?path=${encodeURIComponent(e)}`)}}var R=D({dark:!0,background:`var(--background)`,gutterBackground:`var(--muted)`}),z=D({dark:!1,background:`var(--background)`,gutterBackground:`var(--muted)`});function B(e){let t=(0,A.c)(28),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({fileName:r,extension:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let o=(0,j.useRef)(null),s=(0,j.useRef)(null),{resolvedTheme:c}=a(),l=N(i),u=l.status===`loaded`?l.content:null,d,f;t[4]!==n||t[5]!==u||t[6]!==c?(d=()=>{if(!o.current||u===null)return;let e=n.toLowerCase(),t=h(e),r=c===`dark`?R:z,i=!1,a=null;return k(e,t).then(e=>{if(i||!o.current)return;let t=[O,S(T),...e?[e]:[],x.editable.of(!0),C.readOnly.of(!0),x.lineWrapping,r];a=new x({state:C.create({doc:u,extensions:t}),parent:o.current}),s.current=a}),()=>{i=!0,a?.destroy(),s.current=null}},f=[u,n,c],t[4]=n,t[5]=u,t[6]=c,t[7]=d,t[8]=f):(d=t[7],f=t[8]),(0,j.useEffect)(d,f);let p;t[9]===n?p=t[10]:(p={"data-text-viewer-extension":n},t[9]=n,t[10]=p);let m=p;if(l.status===`loading`){let e;return t[11]!==m||t[12]!==r?(e=(0,P.jsx)(F,{fileName:r,dataAttr:`data-text-viewer`,extraAttrs:m}),t[11]=m,t[12]=r,t[13]=e):e=t[13],e}if(l.status===`error`){let e=l.message,a;t[14]!==n||t[15]!==l.httpStatus||t[16]!==r||t[17]!==i.assetPath?(a=L({assetPath:i.assetPath,fileName:r,extension:n,httpStatus:l.httpStatus}),t[14]=n,t[15]=l.httpStatus,t[16]=r,t[17]=i.assetPath,t[18]=a):a=t[18];let o;return t[19]!==m||t[20]!==l.message||t[21]!==r||t[22]!==a?(o=(0,P.jsx)(I,{fileName:r,dataAttr:`data-text-viewer`,extraAttrs:m,message:e,openFile:a}),t[19]=m,t[20]=l.message,t[21]=r,t[22]=a,t[23]=o):o=t[23],o}let g;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,P.jsx)(`div`,{ref:o,className:`min-h-0 flex-1 overflow-auto`}),t[24]=g):g=t[24];let _;return t[25]!==n||t[26]!==r?(_=(0,P.jsx)(`section`,{className:`flex h-full min-h-0 flex-col bg-background`,"aria-label":r,"data-text-viewer":``,"data-text-viewer-state":`loaded`,"data-text-viewer-extension":n,children:g}),t[25]=n,t[26]=r,t[27]=_):_=t[27],_}function V(e){let t=(0,A.c)(29),{entry:n,className:r}=e,{_:a}=i(),{projectLocalBinding:o,projectLocalSynced:c,merged:l}=v();if(l===null||!c)return null;let u=l?.appearance?.sidebar,d=u?.showHiddenFiles??!1,f=u?.showOnlyMarkdownFiles??!1,m;t[0]!==n||t[1]!==d||t[2]!==f?(m=b(n,{showHiddenFiles:d,showOnlyMarkdownFiles:f}),t[0]=n,t[1]=d,t[2]=f,t[3]=m):m=t[3];let h=m;if(!h.hiddenFiles&&!h.onlyMarkdownFiles)return null;let x;t[4]!==a||t[5]!==o?(x=e=>{if(o===null)return;let t=o.patch({appearance:{sidebar:e}});t.ok||(console.warn(`[NotInSidebarIndicator] sidebar visibility flip rejected:`,_(t.error)),g.error(a({id:`P47EWZ`}),{description:_(t.error)}))},t[4]=a,t[5]=o,t[6]=x):x=t[6];let S=x,C;t[7]===r?C=t[8]:(C=s(`flex items-center gap-1.5 text-muted-foreground/70 text-xs`,r),t[7]=r,t[8]=C);let w;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,P.jsx)(y,{"aria-hidden":`true`,className:`size-3.5 shrink-0`}),t[9]=w):w=t[9];let T;t[10]===a?T=t[11]:(T=a({id:`j9tqwO`}),t[10]=a,t[11]=T);let E;t[12]===T?E=t[13]:(E=(0,P.jsx)(`span`,{className:`whitespace-nowrap`,children:T}),t[12]=T,t[13]=E);let D;t[14]!==a||t[15]!==h.hiddenFiles||t[16]!==S||t[17]!==o?(D=h.hiddenFiles?(0,P.jsx)(p,{variant:`outline`,size:`sm`,className:`h-5 rounded-sm px-1.5 font-normal text-2xs text-muted-foreground hover:text-foreground`,disabled:o===null,onClick:()=>S({showHiddenFiles:!0}),"aria-label":a({id:`XcGbim`}),title:a({id:`XcGbim`}),"data-testid":`not-in-sidebar-flip-hidden-files`,children:a({id:`6KCH4m`})}):null,t[14]=a,t[15]=h.hiddenFiles,t[16]=S,t[17]=o,t[18]=D):D=t[18];let O;t[19]!==a||t[20]!==h.onlyMarkdownFiles||t[21]!==S||t[22]!==o?(O=h.onlyMarkdownFiles?(0,P.jsx)(p,{variant:`outline`,size:`sm`,className:`h-5 rounded-sm px-1.5 font-normal text-2xs text-muted-foreground hover:text-foreground`,disabled:o===null,onClick:()=>S({showOnlyMarkdownFiles:!1}),"aria-label":a({id:`10g8I_`}),title:a({id:`10g8I_`}),"data-testid":`not-in-sidebar-flip-only-markdown`,children:a({id:`5-o4kO`})}):null,t[19]=a,t[20]=h.onlyMarkdownFiles,t[21]=S,t[22]=o,t[23]=O):O=t[23];let k;return t[24]!==O||t[25]!==C||t[26]!==E||t[27]!==D?(k=(0,P.jsxs)(`div`,{"data-testid":`not-in-sidebar-indicator`,className:C,children:[w,E,D,O]}),t[24]=O,t[25]=C,t[26]=E,t[27]=D,t[28]=k):k=t[28],k}var H={fill:`none`,height:24,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,viewBox:`0 0 24 24`,width:24,xmlns:`http://www.w3.org/2000/svg`},U=e=>{let t=(0,A.c)(15),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({color:a,size:o,strokeWidth:s,absoluteStrokeWidth:n,className:c,children:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`currentColor`:a,u=o===void 0?24:o,d=s===void 0?2:s,f=c===void 0?``:c,p=n?Number(d)*24/Number(u):d,m;return t[8]!==r||t[9]!==f||t[10]!==l||t[11]!==i||t[12]!==u||t[13]!==p?(m=(0,P.jsx)(`svg`,{"aria-hidden":`true`,...H,className:f,height:u,stroke:l,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:p,width:u,...i,children:r}),t[8]=r,t[9]=f,t[10]=l,t[11]=i,t[12]=u,t[13]=p,t[14]=m):m=t[14],m},W=e=>{let t=(0,A.c)(4),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,P.jsx)(`title`,{children:`Markdown`}),r=(0,P.jsx)(`path`,{d:`M232,48H24A16,16,0,0,0,8,64V192a16,16,0,0,0,16,16H232a16,16,0,0,0,16-16V64A16,16,0,0,0,232,48Zm0,144H24V64H232V192ZM128,104v48a8,8,0,0,1-16,0V123.31L93.66,141.66a8,8,0,0,1-11.32,0L64,123.31V152a8,8,0,0,1-16,0V104a8,8,0,0,1,13.66-5.66L88,124.69l26.34-26.35A8,8,0,0,1,128,104Zm77.66,18.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L168,132.69V104a8,8,0,0,1,16,0v28.69l10.34-10.35A8,8,0,0,1,205.66,122.34Z`}),t[0]=n,t[1]=r):(n=t[0],r=t[1]);let i;return t[2]===e?i=t[3]:(i=(0,P.jsxs)(U,{...e,viewBox:`0 0 256 256`,fill:`currentColor`,children:[n,r]}),t[2]=e,t[3]=i),i},G=e=>{let t=(0,A.c)(4),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,P.jsx)(`title`,{children:`Textbox`}),r=(0,P.jsx)(`path`,{d:`M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z`}),t[0]=n,t[1]=r):(n=t[0],r=t[1]);let i;return t[2]===e?i=t[3]:(i=(0,P.jsxs)(U,{...e,viewBox:`0 0 256 256`,fill:`currentColor`,children:[n,r]}),t[2]=e,t[3]=i),i};function K(e){let t=(0,A.c)(48),{isSourceMode:n,onModeChange:a,sourceDisabled:o,wysiwygDisabled:s,wysiwygLabel:p,sourceLabel:m,wysiwygDisabledReason:h}=e,g=o===void 0?!1:o,_=s===void 0?!1:s,{_:v}=i(),y;t[0]!==v||t[1]!==p?(y=p??v({id:`ur2XSb`}),t[0]=v,t[1]=p,t[2]=y):y=t[2];let b=y,x;t[3]!==v||t[4]!==m?(x=m??v({id:`xbdtfY`}),t[3]=v,t[4]=m,t[5]=x):x=t[5];let S=x,C=(0,j.useId)(),w=_&&h?h:null,T=n?`source`:`wysiwyg`,E;t[6]===a?E=t[7]:(E=e=>{e&&a(e)},t[6]=a,t[7]=E);let D;t[8]===v?D=t[9]:(D=v({id:`n7aopT`}),t[8]=v,t[9]=D);let O=w?C:void 0,k;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,P.jsx)(G,{className:`size-4`}),t[10]=k):k=t[10];let M;t[11]!==O||t[12]!==_||t[13]!==b?(M=(0,P.jsx)(d,{value:`wysiwyg`,"aria-label":b,"aria-describedby":O,disabled:_,className:`size-7 px-0 dark:data-[state=on]:bg-foreground/15`,children:k}),t[11]=O,t[12]=_,t[13]=b,t[14]=M):M=t[14];let N;t[15]!==w||t[16]!==C?(N=w?(0,P.jsx)(`span`,{id:C,className:`sr-only`,children:w}):null,t[15]=w,t[16]=C,t[17]=N):N=t[17];let F;t[18]!==M||t[19]!==N?(F=(0,P.jsx)(c,{asChild:!0,children:(0,P.jsxs)(`div`,{children:[M,N]})}),t[18]=M,t[19]=N,t[20]=F):F=t[20];let I;t[21]!==_||t[22]!==h||t[23]!==p?(I=_&&h?h:p||(0,P.jsx)(r,{id:`Mb_20S`}),t[21]=_,t[22]=h,t[23]=p,t[24]=I):I=t[24];let L;t[25]===I?L=t[26]:(L=(0,P.jsx)(l,{side:`bottom`,children:I}),t[25]=I,t[26]=L);let R;t[27]!==F||t[28]!==L?(R=(0,P.jsxs)(u,{children:[F,L]}),t[27]=F,t[28]=L,t[29]=R):R=t[29];let z;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,P.jsx)(W,{className:`size-4`}),t[30]=z):z=t[30];let B;t[31]!==g||t[32]!==S?(B=(0,P.jsx)(c,{asChild:!0,children:(0,P.jsx)(`div`,{children:(0,P.jsx)(d,{value:`source`,"aria-label":S,disabled:g,className:`size-7 px-0 dark:data-[state=on]:bg-foreground/15`,children:z})})}),t[31]=g,t[32]=S,t[33]=B):B=t[33];let V;t[34]!==g||t[35]!==m?(V=g?(0,P.jsx)(r,{id:`G-JBA1`}):m||(0,P.jsx)(r,{id:`u6Hp4N`}),t[34]=g,t[35]=m,t[36]=V):V=t[36];let H;t[37]===V?H=t[38]:(H=(0,P.jsx)(l,{side:`bottom`,children:V}),t[37]=V,t[38]=H);let U;t[39]!==B||t[40]!==H?(U=(0,P.jsxs)(u,{children:[B,H]}),t[39]=B,t[40]=H,t[41]=U):U=t[41];let K;return t[42]!==R||t[43]!==U||t[44]!==T||t[45]!==E||t[46]!==D?(K=(0,P.jsxs)(f,{type:`single`,value:T,onValueChange:E,"aria-label":D,variant:`segmented`,size:`sm`,spacing:1,className:`shrink-0 bg-muted p-0.5 data-[size=sm]:rounded-[10px]`,children:[R,U]}),t[42]=R,t[43]=U,t[44]=T,t[45]=E,t[46]=D,t[47]=K):K=t[47],K}export{L as a,N as c,B as i,W as n,I as o,V as r,F as s,K as t};
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{n as a}from"./dist-PQ5KMVDh.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./utils-CPqDy6Hr.js";import{i as c,n as l,t as u}from"./tooltip-Bz6z4_se.js";import{n as d,t as f}from"./toggle-group-B7p69Qfd.js";import{t as p}from"./button-DzgjsZzC.js";import{a as m,v as h}from"./constants-upload-CVKO8P4d.js";import{n as g}from"./dist-BGzUo_18.js";import{n as _}from"./config-errors-DDAH9fqy.js";import{i as v}from"./use-apply-config-theme-CYFG76sS.js";import{o as y}from"./ime-composition-BAiFUm_0.js";import"./config-provider-BJVaZWcl.js";import{t as b}from"./file-tree-utils-CiVz_BRk.js";import{J as x,M as S,Tt as C}from"./dist-B8KZUrr_.js";import{i as w,n as T,r as E,t as D}from"./cm-theme-DY245iRg.js";import{t as O}from"./dist-8cadZTcN.js";import{t as k}from"./text-viewer-languages-CKtwqOI2.js";var A=o(),j=e(n(),1),M=class extends Error{httpStatus;constructor(e,t){super(e),this.name=`ViewerTextLoadError`,this.httpStatus=t}};function N(e){let t=(0,A.c)(10),{_:n}=i(),r;t[0]===n?r=t[1]:(r=e=>n(e===413?{id:`C_WGy8`}:e===415?{id:`VM7H66`}:e===404?{id:`s0IDhW`}:e===400?{id:`N1mdmS`}:typeof e==`number`?{id:`96w9hU`,values:{status:e}}:{id:`ig5vUe`}),t[0]=n,t[1]=r);let a=r,{src:o,loadText:s}=e,c=(0,j.useRef)(s),l=(0,j.useRef)(a),u;t[2]!==s||t[3]!==a?(u=()=>{c.current=s,l.current=a},t[2]=s,t[3]=a,t[4]=u):u=t[4],(0,j.useEffect)(u);let d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d={status:`loading`},t[5]=d):d=t[5];let[f,p]=(0,j.useState)(d),m,h;return t[6]!==n||t[7]!==o?(m=()=>{let e=!1,t=new AbortController;p({status:`loading`});let r=c.current;return r?(r(t.signal).then(t=>{if(!e){if(t.ok){p({status:`loaded`,content:t.text});return}p({status:`error`,message:t.message??l.current(t.status),httpStatus:t.status})}}).catch(t=>{e||t instanceof Error&&t.name===`AbortError`||p({status:`error`,message:n({id:`ig5vUe`})})}),()=>{e=!0,t.abort()}):(fetch(o??``,{credentials:`same-origin`,signal:t.signal}).then(async e=>{if(!e.ok)throw new M(l.current(e.status),e.status);return e.text()}).then(t=>{e||p({status:`loaded`,content:t})}).catch(t=>{e||t instanceof Error&&t.name===`AbortError`||p({status:`error`,message:t instanceof Error?t.message:n({id:`ig5vUe`}),httpStatus:t instanceof M?t.httpStatus:void 0})}),()=>{e=!0,t.abort()})},h=[o,n],t[6]=n,t[7]=o,t[8]=m,t[9]=h):(m=t[8],h=t[9]),(0,j.useEffect)(m,h),f}var P=t();function F(e){let t=(0,A.c)(10),{fileName:n,dataAttr:i,extraAttrs:a}=e,o=`${i}-state`,s;t[0]!==i||t[1]!==o?(s={[i]:``,[o]:`loading`},t[0]=i,t[1]=o,t[2]=s):s=t[2];let c;t[3]===n?c=t[4]:(c=(0,P.jsx)(`span`,{children:(0,P.jsx)(r,{id:`Md709y`,values:{fileName:n}})}),t[3]=n,t[4]=c);let l;return t[5]!==a||t[6]!==n||t[7]!==s||t[8]!==c?(l=(0,P.jsx)(`section`,{className:`flex h-full min-h-0 flex-col items-center justify-center bg-background text-muted-foreground text-sm`,"aria-label":n,...s,...a,children:c}),t[5]=a,t[6]=n,t[7]=s,t[8]=c,t[9]=l):l=t[9],l}function I(e){let t=(0,A.c)(16),{fileName:n,dataAttr:i,extraAttrs:a,message:o,openFile:s}=e,c=`${i}-state`,l;t[0]!==i||t[1]!==c?(l={[i]:``,[c]:`error`},t[0]=i,t[1]=c,t[2]=l):l=t[2];let u;t[3]===n?u=t[4]:(u=(0,P.jsx)(`div`,{className:`font-medium text-sm`,children:(0,P.jsx)(r,{id:`qdBUHP`,values:{fileName:n}})}),t[3]=n,t[4]=u);let d;t[5]===o?d=t[6]:(d=(0,P.jsx)(`div`,{className:`text-muted-foreground text-xs`,children:o}),t[5]=o,t[6]=d);let f;t[7]===s?f=t[8]:(f=s?(0,P.jsx)(p,{variant:`outline`,size:`sm`,className:`mt-2`,"data-testid":`viewer-open-file`,onClick:()=>{E({url:s.url,projectRelPath:s.projectRelPath,ext:s.ext,title:s.title,forceOsDelegation:!0})},children:(0,P.jsx)(r,{id:`9npOH9`})}):null,t[7]=s,t[8]=f);let m;return t[9]!==a||t[10]!==n||t[11]!==l||t[12]!==u||t[13]!==d||t[14]!==f?(m=(0,P.jsxs)(`section`,{className:`flex h-full min-h-0 flex-col items-center justify-center gap-2 bg-background p-4 text-center`,"aria-label":n,...l,...a,children:[u,d,f]}),t[9]=a,t[10]=n,t[11]=l,t[12]=u,t[13]=d,t[14]=f,t[15]=m):m=t[15],m}function L({assetPath:e,fileName:t,extension:n,httpStatus:r}){if(!e||r===404)return;let i=n.toLowerCase();return{projectRelPath:e,ext:i,title:t,url:w(`${m.has(i)?`/api/asset`:`/api/asset-text`}?path=${encodeURIComponent(e)}`)}}var R=D({dark:!0,background:`var(--background)`,gutterBackground:`var(--muted)`}),z=D({dark:!1,background:`var(--background)`,gutterBackground:`var(--muted)`});function B(e){let t=(0,A.c)(28),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({fileName:r,extension:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let o=(0,j.useRef)(null),s=(0,j.useRef)(null),{resolvedTheme:c}=a(),l=N(i),u=l.status===`loaded`?l.content:null,d,f;t[4]!==n||t[5]!==u||t[6]!==c?(d=()=>{if(!o.current||u===null)return;let e=n.toLowerCase(),t=h(e),r=c===`dark`?R:z,i=!1,a=null;return k(e,t).then(e=>{if(i||!o.current)return;let t=[O,S(T),...e?[e]:[],x.editable.of(!0),C.readOnly.of(!0),x.lineWrapping,r];a=new x({state:C.create({doc:u,extensions:t}),parent:o.current}),s.current=a}),()=>{i=!0,a?.destroy(),s.current=null}},f=[u,n,c],t[4]=n,t[5]=u,t[6]=c,t[7]=d,t[8]=f):(d=t[7],f=t[8]),(0,j.useEffect)(d,f);let p;t[9]===n?p=t[10]:(p={"data-text-viewer-extension":n},t[9]=n,t[10]=p);let m=p;if(l.status===`loading`){let e;return t[11]!==m||t[12]!==r?(e=(0,P.jsx)(F,{fileName:r,dataAttr:`data-text-viewer`,extraAttrs:m}),t[11]=m,t[12]=r,t[13]=e):e=t[13],e}if(l.status===`error`){let e=l.message,a;t[14]!==n||t[15]!==l.httpStatus||t[16]!==r||t[17]!==i.assetPath?(a=L({assetPath:i.assetPath,fileName:r,extension:n,httpStatus:l.httpStatus}),t[14]=n,t[15]=l.httpStatus,t[16]=r,t[17]=i.assetPath,t[18]=a):a=t[18];let o;return t[19]!==m||t[20]!==l.message||t[21]!==r||t[22]!==a?(o=(0,P.jsx)(I,{fileName:r,dataAttr:`data-text-viewer`,extraAttrs:m,message:e,openFile:a}),t[19]=m,t[20]=l.message,t[21]=r,t[22]=a,t[23]=o):o=t[23],o}let g;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,P.jsx)(`div`,{ref:o,className:`min-h-0 flex-1 overflow-auto`}),t[24]=g):g=t[24];let _;return t[25]!==n||t[26]!==r?(_=(0,P.jsx)(`section`,{className:`flex h-full min-h-0 flex-col bg-background`,"aria-label":r,"data-text-viewer":``,"data-text-viewer-state":`loaded`,"data-text-viewer-extension":n,children:g}),t[25]=n,t[26]=r,t[27]=_):_=t[27],_}function V(e){let t=(0,A.c)(29),{entry:n,className:r}=e,{_:a}=i(),{projectLocalBinding:o,projectLocalSynced:c,merged:l}=v();if(l===null||!c)return null;let u=l?.appearance?.sidebar,d=u?.showHiddenFiles??!1,f=u?.showOnlyMarkdownFiles??!1,m;t[0]!==n||t[1]!==d||t[2]!==f?(m=b(n,{showHiddenFiles:d,showOnlyMarkdownFiles:f}),t[0]=n,t[1]=d,t[2]=f,t[3]=m):m=t[3];let h=m;if(!h.hiddenFiles&&!h.onlyMarkdownFiles)return null;let x;t[4]!==a||t[5]!==o?(x=e=>{if(o===null)return;let t=o.patch({appearance:{sidebar:e}});t.ok||(console.warn(`[NotInSidebarIndicator] sidebar visibility flip rejected:`,_(t.error)),g.error(a({id:`P47EWZ`}),{description:_(t.error)}))},t[4]=a,t[5]=o,t[6]=x):x=t[6];let S=x,C;t[7]===r?C=t[8]:(C=s(`flex items-center gap-1.5 text-muted-foreground/70 text-xs`,r),t[7]=r,t[8]=C);let w;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,P.jsx)(y,{"aria-hidden":`true`,className:`size-3.5 shrink-0`}),t[9]=w):w=t[9];let T;t[10]===a?T=t[11]:(T=a({id:`j9tqwO`}),t[10]=a,t[11]=T);let E;t[12]===T?E=t[13]:(E=(0,P.jsx)(`span`,{className:`whitespace-nowrap`,children:T}),t[12]=T,t[13]=E);let D;t[14]!==a||t[15]!==h.hiddenFiles||t[16]!==S||t[17]!==o?(D=h.hiddenFiles?(0,P.jsx)(p,{variant:`outline`,size:`sm`,className:`h-5 rounded-sm px-1.5 font-normal text-2xs text-muted-foreground hover:text-foreground`,disabled:o===null,onClick:()=>S({showHiddenFiles:!0}),"aria-label":a({id:`XcGbim`}),title:a({id:`XcGbim`}),"data-testid":`not-in-sidebar-flip-hidden-files`,children:a({id:`6KCH4m`})}):null,t[14]=a,t[15]=h.hiddenFiles,t[16]=S,t[17]=o,t[18]=D):D=t[18];let O;t[19]!==a||t[20]!==h.onlyMarkdownFiles||t[21]!==S||t[22]!==o?(O=h.onlyMarkdownFiles?(0,P.jsx)(p,{variant:`outline`,size:`sm`,className:`h-5 rounded-sm px-1.5 font-normal text-2xs text-muted-foreground hover:text-foreground`,disabled:o===null,onClick:()=>S({showOnlyMarkdownFiles:!1}),"aria-label":a({id:`10g8I_`}),title:a({id:`10g8I_`}),"data-testid":`not-in-sidebar-flip-only-markdown`,children:a({id:`5-o4kO`})}):null,t[19]=a,t[20]=h.onlyMarkdownFiles,t[21]=S,t[22]=o,t[23]=O):O=t[23];let k;return t[24]!==O||t[25]!==C||t[26]!==E||t[27]!==D?(k=(0,P.jsxs)(`div`,{"data-testid":`not-in-sidebar-indicator`,className:C,children:[w,E,D,O]}),t[24]=O,t[25]=C,t[26]=E,t[27]=D,t[28]=k):k=t[28],k}var H={fill:`none`,height:24,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,viewBox:`0 0 24 24`,width:24,xmlns:`http://www.w3.org/2000/svg`},U=e=>{let t=(0,A.c)(15),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({color:a,size:o,strokeWidth:s,absoluteStrokeWidth:n,className:c,children:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`currentColor`:a,u=o===void 0?24:o,d=s===void 0?2:s,f=c===void 0?``:c,p=n?Number(d)*24/Number(u):d,m;return t[8]!==r||t[9]!==f||t[10]!==l||t[11]!==i||t[12]!==u||t[13]!==p?(m=(0,P.jsx)(`svg`,{"aria-hidden":`true`,...H,className:f,height:u,stroke:l,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:p,width:u,...i,children:r}),t[8]=r,t[9]=f,t[10]=l,t[11]=i,t[12]=u,t[13]=p,t[14]=m):m=t[14],m},W=e=>{let t=(0,A.c)(4),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,P.jsx)(`title`,{children:`Markdown`}),r=(0,P.jsx)(`path`,{d:`M232,48H24A16,16,0,0,0,8,64V192a16,16,0,0,0,16,16H232a16,16,0,0,0,16-16V64A16,16,0,0,0,232,48Zm0,144H24V64H232V192ZM128,104v48a8,8,0,0,1-16,0V123.31L93.66,141.66a8,8,0,0,1-11.32,0L64,123.31V152a8,8,0,0,1-16,0V104a8,8,0,0,1,13.66-5.66L88,124.69l26.34-26.35A8,8,0,0,1,128,104Zm77.66,18.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L168,132.69V104a8,8,0,0,1,16,0v28.69l10.34-10.35A8,8,0,0,1,205.66,122.34Z`}),t[0]=n,t[1]=r):(n=t[0],r=t[1]);let i;return t[2]===e?i=t[3]:(i=(0,P.jsxs)(U,{...e,viewBox:`0 0 256 256`,fill:`currentColor`,children:[n,r]}),t[2]=e,t[3]=i),i},G=e=>{let t=(0,A.c)(4),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,P.jsx)(`title`,{children:`Textbox`}),r=(0,P.jsx)(`path`,{d:`M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z`}),t[0]=n,t[1]=r):(n=t[0],r=t[1]);let i;return t[2]===e?i=t[3]:(i=(0,P.jsxs)(U,{...e,viewBox:`0 0 256 256`,fill:`currentColor`,children:[n,r]}),t[2]=e,t[3]=i),i};function K(e){let t=(0,A.c)(48),{isSourceMode:n,onModeChange:a,sourceDisabled:o,wysiwygDisabled:s,wysiwygLabel:p,sourceLabel:m,wysiwygDisabledReason:h}=e,g=o===void 0?!1:o,_=s===void 0?!1:s,{_:v}=i(),y;t[0]!==v||t[1]!==p?(y=p??v({id:`ur2XSb`}),t[0]=v,t[1]=p,t[2]=y):y=t[2];let b=y,x;t[3]!==v||t[4]!==m?(x=m??v({id:`xbdtfY`}),t[3]=v,t[4]=m,t[5]=x):x=t[5];let S=x,C=(0,j.useId)(),w=_&&h?h:null,T=n?`source`:`wysiwyg`,E;t[6]===a?E=t[7]:(E=e=>{e&&a(e)},t[6]=a,t[7]=E);let D;t[8]===v?D=t[9]:(D=v({id:`n7aopT`}),t[8]=v,t[9]=D);let O=w?C:void 0,k;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,P.jsx)(G,{className:`size-4`}),t[10]=k):k=t[10];let M;t[11]!==O||t[12]!==_||t[13]!==b?(M=(0,P.jsx)(d,{value:`wysiwyg`,"aria-label":b,"aria-describedby":O,disabled:_,className:`size-7 px-0 dark:data-[state=on]:bg-foreground/15`,children:k}),t[11]=O,t[12]=_,t[13]=b,t[14]=M):M=t[14];let N;t[15]!==w||t[16]!==C?(N=w?(0,P.jsx)(`span`,{id:C,className:`sr-only`,children:w}):null,t[15]=w,t[16]=C,t[17]=N):N=t[17];let F;t[18]!==M||t[19]!==N?(F=(0,P.jsx)(c,{asChild:!0,children:(0,P.jsxs)(`div`,{children:[M,N]})}),t[18]=M,t[19]=N,t[20]=F):F=t[20];let I;t[21]!==_||t[22]!==h||t[23]!==p?(I=_&&h?h:p||(0,P.jsx)(r,{id:`Mb_20S`}),t[21]=_,t[22]=h,t[23]=p,t[24]=I):I=t[24];let L;t[25]===I?L=t[26]:(L=(0,P.jsx)(l,{side:`bottom`,children:I}),t[25]=I,t[26]=L);let R;t[27]!==F||t[28]!==L?(R=(0,P.jsxs)(u,{children:[F,L]}),t[27]=F,t[28]=L,t[29]=R):R=t[29];let z;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,P.jsx)(W,{className:`size-4`}),t[30]=z):z=t[30];let B;t[31]!==g||t[32]!==S?(B=(0,P.jsx)(c,{asChild:!0,children:(0,P.jsx)(`div`,{children:(0,P.jsx)(d,{value:`source`,"aria-label":S,disabled:g,className:`size-7 px-0 dark:data-[state=on]:bg-foreground/15`,children:z})})}),t[31]=g,t[32]=S,t[33]=B):B=t[33];let V;t[34]!==g||t[35]!==m?(V=g?(0,P.jsx)(r,{id:`G-JBA1`}):m||(0,P.jsx)(r,{id:`u6Hp4N`}),t[34]=g,t[35]=m,t[36]=V):V=t[36];let H;t[37]===V?H=t[38]:(H=(0,P.jsx)(l,{side:`bottom`,children:V}),t[37]=V,t[38]=H);let U;t[39]!==B||t[40]!==H?(U=(0,P.jsxs)(u,{children:[B,H]}),t[39]=B,t[40]=H,t[41]=U):U=t[41];let K;return t[42]!==R||t[43]!==U||t[44]!==T||t[45]!==E||t[46]!==D?(K=(0,P.jsxs)(f,{type:`single`,value:T,onValueChange:E,"aria-label":D,variant:`segmented`,size:`sm`,spacing:1,className:`shrink-0 bg-muted p-0.5 data-[size=sm]:rounded-[10px]`,children:[R,U]}),t[42]=R,t[43]=U,t[44]=T,t[45]=E,t[46]=D,t[47]=K):K=t[47],K}export{L as a,N as c,B as i,W as n,I as o,V as r,F as s,K as t};
|
package/dist/public/assets/{ExcalidrawDocEditor-Bip9Ubqq.js → ExcalidrawDocEditor-8vsPu1pP.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{r}from"./dist-Nvb76hAm.js";import{t as i}from"./compiler-runtime-BfE3aGVn.js";import{u as a}from"./use-apply-config-language-
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{r}from"./dist-Nvb76hAm.js";import{t as i}from"./compiler-runtime-BfE3aGVn.js";import{u as a}from"./use-apply-config-language-CbiUoguW.js";import{n as o,t as s}from"./excalidraw-scene-DKlZeb8o.js";import{Na as c}from"./chunk-RM4UPSZO-CKzZrDwB.js";import{Excalidraw as l,t as u}from"./prod-TDqup_vF.js";import{replaceYText as d}from"./MermaidDocEditor-DxwWgnS9.js";var f=i(),p=e(n(),1),m={en:`en`,"zh-Hans":`zh-CN`,"zh-Hant":`zh-TW`,hi:null,es:`es-ES`,ar:`ar-SA`,fr:`fr-FR`,bn:null,"pt-BR":`pt-BR`,id:`id-ID`,ur:null,ko:`ko-KR`,pl:`pl-PL`};a.filter(e=>m[e]===null);function h(e){return Object.hasOwn(m,e)}function g(e){return h(e)?m[e]??`en`:`en`}var _=t();function v(e){if(e.trim()===``)return{ok:!0,scene:s(u,null)};try{return{ok:!0,scene:s(u,JSON.parse(e))}}catch{return{ok:!1,scene:s(u,null)}}}function y(e){let t=(0,f.c)(22),{provider:n}=e,{_:i,i18n:a}=r(),s=n.document.getText(`source`),[m,h]=(0,p.useState)(null),y=(0,p.useRef)(s.toString()),b=v(s.toString());b.ok||console.warn(`[ExcalidrawDocEditor] initial snapshot could not be parsed — falling back to a blank canvas; the original bytes remain in the doc until the user draws their first element (appState-only tweaks on an empty canvas don't unblock the guard)`);let x=(0,p.useRef)(!b.ok),S;t[0]!==m||t[1]!==y||t[2]!==s?(S=()=>{if(m===null)return;let e=()=>{let e=s.toString();if(e===y.current)return;y.current=e;let t=v(e);if(!t.ok){console.warn(`[ExcalidrawDocEditor] sync: remote snapshot could not be parsed — skipping this update`);return}let{elements:n,appState:r,files:i}=t.scene;m.updateScene({elements:n,appState:r,captureUpdate:c.NEVER});let a=Object.values(i);a.length>0&&m.addFiles(a)};return s.observe(e),()=>s.unobserve(e)},t[0]=m,t[1]=y,t[2]=s,t[3]=S):S=t[3];let C;t[4]!==m||t[5]!==s?(C=[s,m],t[4]=m,t[5]=s,t[6]=C):C=t[6],(0,p.useEffect)(S,C);let w;t[7]!==y||t[8]!==s?(w=(e,t,n)=>{if(x.current){if(e.length===0)return;x.current=!1}let r=o(u,e,t,n);r!==y.current&&(y.current=r,d(s,r))},t[7]=y,t[8]=s,t[9]=w):w=t[9];let T=w,E;t[10]===i?E=t[11]:(E=i({id:`wxRR0H`}),t[10]=i,t[11]=E);let D=b.scene,O;t[12]===a.locale?O=t[13]:(O=g(a.locale),t[12]=a.locale,t[13]=O);let k;t[14]!==T||t[15]!==b.scene||t[16]!==h||t[17]!==O?(k=(0,_.jsx)(`div`,{className:`absolute inset-0 z-0`,children:(0,_.jsx)(l,{onExcalidrawAPI:h,initialData:D,onChange:T,langCode:O})}),t[14]=T,t[15]=b.scene,t[16]=h,t[17]=O,t[18]=k):k=t[18];let A;return t[19]!==E||t[20]!==k?(A=(0,_.jsx)(`section`,{className:`relative flex h-full min-h-0 flex-col bg-background`,"aria-label":E,"data-excalidraw-doc-editor":``,children:k}),t[19]=E,t[20]=k,t[21]=A):A=t[21],A}export{y as ExcalidrawDocEditor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./index-C9Dhh52J.js";export{e as FeedbackForm};
|