dreamcontext 0.17.1 → 0.17.2

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 (124) hide show
  1. package/README.md +1 -1
  2. package/dist/dashboard/assets/{BrainCanvas3D-DyF_3yYD.js → BrainCanvas3D-BmE9c-fY.js} +1 -1
  3. package/dist/dashboard/assets/{_baseUniq-Do8VMBA0.js → _baseUniq-C4h3LMXa.js} +1 -1
  4. package/dist/dashboard/assets/{ar-SA-G6X2FPQ2-DmbXDb2R.js → ar-SA-G6X2FPQ2-CiBeBuku.js} +1 -1
  5. package/dist/dashboard/assets/{arc-CwtUBQfU.js → arc-Dh9OLaRt.js} +1 -1
  6. package/dist/dashboard/assets/{architectureDiagram-Q4EWVU46-O9bOog_f.js → architectureDiagram-Q4EWVU46-B5SN9uIW.js} +1 -1
  7. package/dist/dashboard/assets/{az-AZ-76LH7QW2-c9Zk10vG.js → az-AZ-76LH7QW2-C4n1wxZ6.js} +1 -1
  8. package/dist/dashboard/assets/{bg-BG-XCXSNQG7-uMTg84lX.js → bg-BG-XCXSNQG7-CPQuP6fM.js} +1 -1
  9. package/dist/dashboard/assets/{blockDiagram-DXYQGD6D-BTENXCSO.js → blockDiagram-DXYQGD6D-BHZe2v2l.js} +1 -1
  10. package/dist/dashboard/assets/{bn-BD-2XOGV67Q-DUFKHcua.js → bn-BD-2XOGV67Q-CkfPJKYN.js} +1 -1
  11. package/dist/dashboard/assets/{c4Diagram-AHTNJAMY-DMXPWRiQ.js → c4Diagram-AHTNJAMY-Cr8ikewQ.js} +1 -1
  12. package/dist/dashboard/assets/{ca-ES-6MX7JW3Y-BuYX1q89.js → ca-ES-6MX7JW3Y-DSb9A-uO.js} +1 -1
  13. package/dist/dashboard/assets/channel-BATJLyDl.js +1 -0
  14. package/dist/dashboard/assets/{chunk-4BX2VUAB-DgefvnWS.js → chunk-4BX2VUAB-BKSSJPQN.js} +1 -1
  15. package/dist/dashboard/assets/{chunk-4TB4RGXK-BnFO5G1t.js → chunk-4TB4RGXK-BW3bbV8A.js} +1 -1
  16. package/dist/dashboard/assets/{chunk-55IACEB6-COm2TYEM.js → chunk-55IACEB6-TMgamyg1.js} +1 -1
  17. package/dist/dashboard/assets/{chunk-EDXVE4YY-CtsGCwZp.js → chunk-EDXVE4YY-C21wWkfJ.js} +1 -1
  18. package/dist/dashboard/assets/{chunk-FMBD7UC4-cfSvx35j.js → chunk-FMBD7UC4-Jgs85560.js} +1 -1
  19. package/dist/dashboard/assets/{chunk-OYMX7WX6-DAhDKteL.js → chunk-OYMX7WX6-DGVyPCY-.js} +1 -1
  20. package/dist/dashboard/assets/{chunk-QZHKN3VN-B5h4qML3.js → chunk-QZHKN3VN-CaB536B9.js} +1 -1
  21. package/dist/dashboard/assets/{chunk-YZCP3GAM-CGp_NiRg.js → chunk-YZCP3GAM-B5678oV6.js} +1 -1
  22. package/dist/dashboard/assets/classDiagram-6PBFFD2Q-DsrXpYhW.js +1 -0
  23. package/dist/dashboard/assets/classDiagram-v2-HSJHXN6E-DsrXpYhW.js +1 -0
  24. package/dist/dashboard/assets/clone-CL4CWABW.js +1 -0
  25. package/dist/dashboard/assets/{cose-bilkent-S5V4N54A-Dk7CMFA4.js → cose-bilkent-S5V4N54A-Cfo2Gh38.js} +1 -1
  26. package/dist/dashboard/assets/{cs-CZ-2BRQDIVT-zfUTiS_d.js → cs-CZ-2BRQDIVT-DHFTb7Nf.js} +1 -1
  27. package/dist/dashboard/assets/{da-DK-5WZEPLOC-CU14f8NA.js → da-DK-5WZEPLOC-BXIvQ4fp.js} +1 -1
  28. package/dist/dashboard/assets/{dagre-KV5264BT-BiMVxC4Q.js → dagre-KV5264BT-fSOPShhM.js} +1 -1
  29. package/dist/dashboard/assets/{de-DE-XR44H4JA-CDOHAJGo.js → de-DE-XR44H4JA-TpauT9Dz.js} +1 -1
  30. package/dist/dashboard/assets/{diagram-5BDNPKRD-DfJEsVTA.js → diagram-5BDNPKRD-Drzr1k9m.js} +1 -1
  31. package/dist/dashboard/assets/{diagram-G4DWMVQ6-CztLHIcY.js → diagram-G4DWMVQ6-0EMIXQ8j.js} +1 -1
  32. package/dist/dashboard/assets/{diagram-MMDJMWI5-DqoQLlWK.js → diagram-MMDJMWI5-B4gAlQAU.js} +1 -1
  33. package/dist/dashboard/assets/{diagram-TYMM5635-DvyvQBCc.js → diagram-TYMM5635-Cb35vRAz.js} +1 -1
  34. package/dist/dashboard/assets/{el-GR-BZB4AONW-ChUphbcv.js → el-GR-BZB4AONW-C-AL3qBe.js} +1 -1
  35. package/dist/dashboard/assets/{erDiagram-SMLLAGMA-D_uSs2_2.js → erDiagram-SMLLAGMA-DNrdnDHM.js} +1 -1
  36. package/dist/dashboard/assets/{es-ES-U4NZUMDT-BNalBEhb.js → es-ES-U4NZUMDT-BWpJorHA.js} +1 -1
  37. package/dist/dashboard/assets/{eu-ES-A7QVB2H4-BMiQyA2y.js → eu-ES-A7QVB2H4-qC7athaf.js} +1 -1
  38. package/dist/dashboard/assets/{fa-IR-HGAKTJCU-Bd6ZnTSo.js → fa-IR-HGAKTJCU-B3QcjMlj.js} +1 -1
  39. package/dist/dashboard/assets/{fi-FI-Z5N7JZ37-BWAfJadC.js → fi-FI-Z5N7JZ37-B--tWG-3.js} +1 -1
  40. package/dist/dashboard/assets/{flowDiagram-DWJPFMVM-Bmsp6kyU.js → flowDiagram-DWJPFMVM-CzNjJYhW.js} +1 -1
  41. package/dist/dashboard/assets/{fr-FR-RHASNOE6-CspbYzOW.js → fr-FR-RHASNOE6-BAqr1UGs.js} +1 -1
  42. package/dist/dashboard/assets/{ganttDiagram-T4ZO3ILL-wEdysXo_.js → ganttDiagram-T4ZO3ILL-CoO72eho.js} +1 -1
  43. package/dist/dashboard/assets/{gitGraphDiagram-UUTBAWPF-BEiGpPBj.js → gitGraphDiagram-UUTBAWPF-wOCXldeR.js} +1 -1
  44. package/dist/dashboard/assets/{gl-ES-HMX3MZ6V-CV76vsWr.js → gl-ES-HMX3MZ6V-Ct0Kh-0r.js} +1 -1
  45. package/dist/dashboard/assets/{graph-CZFIeNHZ.js → graph-DK-0NQrf.js} +1 -1
  46. package/dist/dashboard/assets/{he-IL-6SHJWFNN-Y1VoXJ_H.js → he-IL-6SHJWFNN-_eIdOA1F.js} +1 -1
  47. package/dist/dashboard/assets/{hi-IN-IWLTKZ5I-Crh5S49o.js → hi-IN-IWLTKZ5I-DCXAx0Ed.js} +1 -1
  48. package/dist/dashboard/assets/{hu-HU-A5ZG7DT2-D4I3gCbp.js → hu-HU-A5ZG7DT2-g2pOOboC.js} +1 -1
  49. package/dist/dashboard/assets/{id-ID-SAP4L64H-Chvzkuvi.js → id-ID-SAP4L64H-nncKIomD.js} +1 -1
  50. package/dist/dashboard/assets/image-FgR93jdt.js +1 -0
  51. package/dist/dashboard/assets/index-2m8ueOUn.js +1 -0
  52. package/dist/dashboard/assets/{index-BdZ3tppu.css → index-BhGTUdzl.css} +1 -1
  53. package/dist/dashboard/assets/{index-C7Bo5AQH.js → index-NqQnRGLb.js} +1 -1
  54. package/dist/dashboard/assets/{index-BIfrbaFS.js → index-RYCWQyp_.js} +128 -126
  55. package/dist/dashboard/assets/{infoDiagram-42DDH7IO-BzfuDHl4.js → infoDiagram-42DDH7IO-Ct0KiOeh.js} +1 -1
  56. package/dist/dashboard/assets/{ishikawaDiagram-UXIWVN3A-BVoNJ9VS.js → ishikawaDiagram-UXIWVN3A-2UGJk4Te.js} +1 -1
  57. package/dist/dashboard/assets/{it-IT-JPQ66NNP-BH_gN5es.js → it-IT-JPQ66NNP-XMIC0CYZ.js} +1 -1
  58. package/dist/dashboard/assets/{ja-JP-DBVTYXUO-DU_WmLVa.js → ja-JP-DBVTYXUO-2-0l8yCd.js} +1 -1
  59. package/dist/dashboard/assets/{journeyDiagram-VCZTEJTY-DbwICa_a.js → journeyDiagram-VCZTEJTY-V3bz3qVC.js} +1 -1
  60. package/dist/dashboard/assets/{kaa-6HZHGXH3-KYU9qowM.js → kaa-6HZHGXH3-mQ5TTVGp.js} +1 -1
  61. package/dist/dashboard/assets/{kab-KAB-ZGHBKWFO-bjhyiUq5.js → kab-KAB-ZGHBKWFO-CriUVt31.js} +1 -1
  62. package/dist/dashboard/assets/{kanban-definition-6JOO6SKY-D9XucLs4.js → kanban-definition-6JOO6SKY-Bn78IKO5.js} +1 -1
  63. package/dist/dashboard/assets/{kk-KZ-P5N5QNE5-CYTx_dAZ.js → kk-KZ-P5N5QNE5-BAlV3q5m.js} +1 -1
  64. package/dist/dashboard/assets/{km-KH-HSX4SM5Z-DqsuY4Lf.js → km-KH-HSX4SM5Z-BhdYeIdp.js} +1 -1
  65. package/dist/dashboard/assets/{ko-KR-MTYHY66A-BZe7NywF.js → ko-KR-MTYHY66A-CAKtaTgT.js} +1 -1
  66. package/dist/dashboard/assets/{ku-TR-6OUDTVRD-F5d6HFWt.js → ku-TR-6OUDTVRD-aroxiDy2.js} +1 -1
  67. package/dist/dashboard/assets/{layout-CotqU0S9.js → layout-H9V_G3od.js} +1 -1
  68. package/dist/dashboard/assets/{linear-Dqv87Scf.js → linear-DvltrDet.js} +1 -1
  69. package/dist/dashboard/assets/{lt-LT-XHIRWOB4-BCCuaPbS.js → lt-LT-XHIRWOB4-DDSfhBL-.js} +1 -1
  70. package/dist/dashboard/assets/{lv-LV-5QDEKY6T-NLGi-vJ6.js → lv-LV-5QDEKY6T-DHwj30kv.js} +1 -1
  71. package/dist/dashboard/assets/{min-BbJdnc3h.js → min-D2j4bY60.js} +1 -1
  72. package/dist/dashboard/assets/{mindmap-definition-QFDTVHPH-Dk4QySu7.js → mindmap-definition-QFDTVHPH-q-d1aQDU.js} +1 -1
  73. package/dist/dashboard/assets/{mr-IN-CRQNXWMA-BnGDIgVN.js → mr-IN-CRQNXWMA-DwiNWn2z.js} +1 -1
  74. package/dist/dashboard/assets/{my-MM-5M5IBNSE-CspgYE9_.js → my-MM-5M5IBNSE-d0ft8kqP.js} +1 -1
  75. package/dist/dashboard/assets/{nb-NO-T6EIAALU-BeRPw3hu.js → nb-NO-T6EIAALU-DkYMAbp0.js} +1 -1
  76. package/dist/dashboard/assets/{nl-NL-IS3SIHDZ-C-G-bljM.js → nl-NL-IS3SIHDZ-DdQOLvgs.js} +1 -1
  77. package/dist/dashboard/assets/{nn-NO-6E72VCQL-Ct7VZY8D.js → nn-NO-6E72VCQL-CjV1UWFM.js} +1 -1
  78. package/dist/dashboard/assets/{oc-FR-POXYY2M6-Cv5-C4Qq.js → oc-FR-POXYY2M6-CVZoTE_i.js} +1 -1
  79. package/dist/dashboard/assets/{pa-IN-N4M65BXN-DAgkIThL.js → pa-IN-N4M65BXN-BupygyyC.js} +1 -1
  80. package/dist/dashboard/assets/{percentages-BXMCSKIN-vidRYabK.js → percentages-BXMCSKIN-Bu0vZZw_.js} +7 -7
  81. package/dist/dashboard/assets/{pica-Cy-Xl-mi.js → pica-mkWTjDU4.js} +1 -1
  82. package/dist/dashboard/assets/{pieDiagram-DEJITSTG-BnP4-zwd.js → pieDiagram-DEJITSTG-CQF5LXYE.js} +1 -1
  83. package/dist/dashboard/assets/{pl-PL-T2D74RX3-BuJQ3HD-.js → pl-PL-T2D74RX3-BBXs3cmL.js} +1 -1
  84. package/dist/dashboard/assets/{pt-BR-5N22H2LF-BbAqsvD6.js → pt-BR-5N22H2LF-B93mlBha.js} +1 -1
  85. package/dist/dashboard/assets/{pt-PT-UZXXM6DQ-DzFJedU3.js → pt-PT-UZXXM6DQ-xVjOmMs-.js} +1 -1
  86. package/dist/dashboard/assets/{quadrantDiagram-34T5L4WZ-BXN88cHy.js → quadrantDiagram-34T5L4WZ-DqivnL0s.js} +1 -1
  87. package/dist/dashboard/assets/{requirementDiagram-MS252O5E-D34hL42a.js → requirementDiagram-MS252O5E-BIViT9zj.js} +1 -1
  88. package/dist/dashboard/assets/{ro-RO-JPDTUUEW-BV2-sOiv.js → ro-RO-JPDTUUEW-ClxrWe_s.js} +1 -1
  89. package/dist/dashboard/assets/{ru-RU-B4JR7IUQ-BCL4N9Ej.js → ru-RU-B4JR7IUQ-LSY-t1rx.js} +1 -1
  90. package/dist/dashboard/assets/{sankeyDiagram-XADWPNL6-0mFeok-3.js → sankeyDiagram-XADWPNL6-BhNfg4hX.js} +1 -1
  91. package/dist/dashboard/assets/{sequenceDiagram-FGHM5R23-C-5nW5j6.js → sequenceDiagram-FGHM5R23-CYR3zuKy.js} +1 -1
  92. package/dist/dashboard/assets/{si-LK-N5RQ5JYF-CNhaw4jx.js → si-LK-N5RQ5JYF-BWqC_fm0.js} +1 -1
  93. package/dist/dashboard/assets/{sk-SK-C5VTKIMK-mHCphOXu.js → sk-SK-C5VTKIMK-DNzaj-nB.js} +1 -1
  94. package/dist/dashboard/assets/{sl-SI-NN7IZMDC--lzgHthQ.js → sl-SI-NN7IZMDC-Dr0L8iue.js} +1 -1
  95. package/dist/dashboard/assets/{stateDiagram-FHFEXIEX-C50iDFqe.js → stateDiagram-FHFEXIEX-ColiPt5A.js} +1 -1
  96. package/dist/dashboard/assets/stateDiagram-v2-QKLJ7IA2-DF6l17l1.js +1 -0
  97. package/dist/dashboard/assets/{subset-shared.chunk-DNsjL37s.js → subset-shared.chunk-Djsk2OUB.js} +1 -1
  98. package/dist/dashboard/assets/{subset-worker.chunk-BaV3r-bl.js → subset-worker.chunk-DmFi9L0s.js} +1 -1
  99. package/dist/dashboard/assets/{sv-SE-XGPEYMSR-ckw8jfGN.js → sv-SE-XGPEYMSR-DYYaiKrL.js} +1 -1
  100. package/dist/dashboard/assets/{ta-IN-2NMHFXQM-CSeNmVhS.js → ta-IN-2NMHFXQM-Xswgugie.js} +1 -1
  101. package/dist/dashboard/assets/{th-TH-HPSO5L25-Cvn1sg_3.js → th-TH-HPSO5L25-B_zlnHli.js} +1 -1
  102. package/dist/dashboard/assets/{timeline-definition-GMOUNBTQ-DRYfuqHT.js → timeline-definition-GMOUNBTQ-CEAWgKK1.js} +1 -1
  103. package/dist/dashboard/assets/{tr-TR-DEFEU3FU-CyhY22TB.js → tr-TR-DEFEU3FU-D6tTkvDX.js} +1 -1
  104. package/dist/dashboard/assets/{uk-UA-QMV73CPH-BvvAEO6U.js → uk-UA-QMV73CPH-Bra75jyv.js} +1 -1
  105. package/dist/dashboard/assets/{vennDiagram-DHZGUBPP-Crril7Cj.js → vennDiagram-DHZGUBPP-Am2c5V36.js} +1 -1
  106. package/dist/dashboard/assets/{vi-VN-M7AON7JQ-c7AwSUZ8.js → vi-VN-M7AON7JQ-CRhUTOPb.js} +1 -1
  107. package/dist/dashboard/assets/{wardley-RL74JXVD-Da5AhSWU.js → wardley-RL74JXVD-BlsSvNdP.js} +1 -1
  108. package/dist/dashboard/assets/{wardleyDiagram-NUSXRM2D-C4GeB_Df.js → wardleyDiagram-NUSXRM2D-BONuwasj.js} +1 -1
  109. package/dist/dashboard/assets/webviewWindow-Bwv2421L.js +1 -0
  110. package/dist/dashboard/assets/window-BObcHN8e.js +1 -0
  111. package/dist/dashboard/assets/{xychartDiagram-5P7HB3ND-BPCFKXqR.js → xychartDiagram-5P7HB3ND-BCWtz6EH.js} +1 -1
  112. package/dist/dashboard/assets/{zh-CN-LNUGB5OW-BvNiZwKU.js → zh-CN-LNUGB5OW-BgEkcxVF.js} +1 -1
  113. package/dist/dashboard/assets/{zh-HK-E62DVLB3-CCFtoCWb.js → zh-HK-E62DVLB3-iXpoob62.js} +1 -1
  114. package/dist/dashboard/assets/{zh-TW-RAJ6MFWO-bYBr-stu.js → zh-TW-RAJ6MFWO-BY7Ya34m.js} +1 -1
  115. package/dist/dashboard/index.html +2 -2
  116. package/dist/index.js +1119 -572
  117. package/package.json +1 -1
  118. package/dist/dashboard/assets/channel-2YfRjala.js +0 -1
  119. package/dist/dashboard/assets/classDiagram-6PBFFD2Q-DB_UnN1h.js +0 -1
  120. package/dist/dashboard/assets/classDiagram-v2-HSJHXN6E-DB_UnN1h.js +0 -1
  121. package/dist/dashboard/assets/clone-DaDvB3N6.js +0 -1
  122. package/dist/dashboard/assets/stateDiagram-v2-QKLJ7IA2-eW9-s0Sm.js +0 -1
  123. package/dist/dashboard/assets/webviewWindow-BbG9Cr7f.js +0 -1
  124. package/dist/dashboard/assets/window-DmNpeJAL.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dreamcontext",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "dreamcontext — the persistent brain for your AI agents. Remembers what you built, knows how your project works.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1 +0,0 @@
1
- import{aq as o,ar as n}from"./index-BIfrbaFS.js";const t=(r,a)=>o.lang.round(n.parse(r)[a]);export{t as c};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-4TB4RGXK-BnFO5G1t.js";import{_ as i}from"./index-BIfrbaFS.js";import"./chunk-FMBD7UC4-cfSvx35j.js";import"./chunk-YZCP3GAM-CGp_NiRg.js";import"./chunk-55IACEB6-COm2TYEM.js";import"./chunk-EDXVE4YY-CtsGCwZp.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-4TB4RGXK-BnFO5G1t.js";import{_ as i}from"./index-BIfrbaFS.js";import"./chunk-FMBD7UC4-cfSvx35j.js";import"./chunk-YZCP3GAM-CGp_NiRg.js";import"./chunk-55IACEB6-COm2TYEM.js";import"./chunk-EDXVE4YY-CtsGCwZp.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1 +0,0 @@
1
- import{b as r}from"./graph-CZFIeNHZ.js";var e=4;function a(o){return r(o,e)}export{a as c};
@@ -1 +0,0 @@
1
- import{s as t,b as r,a,S as s}from"./chunk-OYMX7WX6-DAhDKteL.js";import{_ as i}from"./index-BIfrbaFS.js";import"./chunk-55IACEB6-COm2TYEM.js";import"./chunk-EDXVE4YY-CtsGCwZp.js";var l={parser:a,get db(){return new s(2)},renderer:r,styles:t,init:i(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{l as diagram};
@@ -1 +0,0 @@
1
- import{g as k,P as o,a as m,S as b,b as p,W as g}from"./window-DmNpeJAL.js";import{listen as v,once as _,emit as E,emitTo as W,TauriEvent as u}from"./event-BbvoZQ5o.js";import{i as n}from"./core-Cn4yfEqx.js";function d(){return new c(k(),window.__TAURI_INTERNALS__.metadata.currentWebview.label,{skip:!0})}async function y(){return n("plugin:webview|get_all_webviews").then(l=>l.map(e=>new c(new g(e.windowLabel,{skip:!0}),e.label,{skip:!0})))}const w=["tauri://created","tauri://error"];class c{constructor(e,t,i){this.window=e,this.label=t,this.listeners=Object.create(null),i!=null&&i.skip||n("plugin:webview|create_webview",{windowLabel:e.label,options:{...i,label:t}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static async getByLabel(e){var t;return(t=(await y()).find(i=>i.label===e))!==null&&t!==void 0?t:null}static getCurrent(){return d()}static async getAll(){return y()}async listen(e,t){return this._handleTauriEvent(e,t)?()=>{const i=this.listeners[e];i.splice(i.indexOf(t),1)}:v(e,t,{target:{kind:"Webview",label:this.label}})}async once(e,t){return this._handleTauriEvent(e,t)?()=>{const i=this.listeners[e];i.splice(i.indexOf(t),1)}:_(e,t,{target:{kind:"Webview",label:this.label}})}async emit(e,t){if(w.includes(e)){for(const i of this.listeners[e]||[])i({event:e,id:-1,payload:t});return}return E(e,t)}async emitTo(e,t,i){if(w.includes(t)){for(const r of this.listeners[t]||[])r({event:t,id:-1,payload:i});return}return W(e,t,i)}_handleTauriEvent(e,t){return w.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}async position(){return n("plugin:webview|webview_position",{label:this.label}).then(e=>new o(e))}async size(){return n("plugin:webview|webview_size",{label:this.label}).then(e=>new m(e))}async close(){return n("plugin:webview|webview_close",{label:this.label})}async setSize(e){return n("plugin:webview|set_webview_size",{label:this.label,value:e instanceof b?e:new b(e)})}async setPosition(e){return n("plugin:webview|set_webview_position",{label:this.label,value:e instanceof p?e:new p(e)})}async setFocus(){return n("plugin:webview|set_webview_focus",{label:this.label})}async setAutoResize(e){return n("plugin:webview|set_webview_auto_resize",{label:this.label,value:e})}async hide(){return n("plugin:webview|webview_hide",{label:this.label})}async show(){return n("plugin:webview|webview_show",{label:this.label})}async setZoom(e){return n("plugin:webview|set_webview_zoom",{label:this.label,value:e})}async reparent(e){return n("plugin:webview|reparent",{label:this.label,window:typeof e=="string"?e:e.label})}async clearAllBrowsingData(){return n("plugin:webview|clear_all_browsing_data")}async setBackgroundColor(e){return n("plugin:webview|set_webview_background_color",{color:e})}async onDragDropEvent(e){const t=await this.listen(u.DRAG_ENTER,s=>{e({...s,payload:{type:"enter",paths:s.payload.paths,position:new o(s.payload.position)}})}),i=await this.listen(u.DRAG_OVER,s=>{e({...s,payload:{type:"over",position:new o(s.payload.position)}})}),r=await this.listen(u.DRAG_DROP,s=>{e({...s,payload:{type:"drop",paths:s.payload.paths,position:new o(s.payload.position)}})}),f=await this.listen(u.DRAG_LEAVE,s=>{e({...s,payload:{type:"leave"}})});return()=>{t(),r(),i(),f()}}}function A(){const l=d();return new a(l.label,{skip:!0})}async function h(){return n("plugin:window|get_all_windows").then(l=>l.map(e=>new a(e,{skip:!0})))}class a{constructor(e,t={}){var i;this.label=e,this.listeners=Object.create(null),t!=null&&t.skip||n("plugin:webview|create_webview_window",{options:{...t,parent:typeof t.parent=="string"?t.parent:(i=t.parent)===null||i===void 0?void 0:i.label,label:e}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static async getByLabel(e){var t;const i=(t=(await h()).find(r=>r.label===e))!==null&&t!==void 0?t:null;return i?new a(i.label,{skip:!0}):null}static getCurrent(){return A()}static async getAll(){return h()}async listen(e,t){return this._handleTauriEvent(e,t)?()=>{const i=this.listeners[e];i.splice(i.indexOf(t),1)}:v(e,t,{target:{kind:"WebviewWindow",label:this.label}})}async once(e,t){return this._handleTauriEvent(e,t)?()=>{const i=this.listeners[e];i.splice(i.indexOf(t),1)}:_(e,t,{target:{kind:"WebviewWindow",label:this.label}})}async setBackgroundColor(e){return n("plugin:window|set_background_color",{color:e}).then(()=>n("plugin:webview|set_webview_background_color",{color:e}))}}O(a,[g,c]);function O(l,e){(Array.isArray(e)?e:[e]).forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(i=>{var r;typeof l.prototype=="object"&&l.prototype&&i in l.prototype||Object.defineProperty(l.prototype,i,(r=Object.getOwnPropertyDescriptor(t.prototype,i))!==null&&r!==void 0?r:Object.create(null))})})}export{a as WebviewWindow,h as getAllWebviewWindows,A as getCurrentWebviewWindow};
@@ -1 +0,0 @@
1
- import{S as r,R as k,i}from"./core-Cn4yfEqx.js";import{listen as L,once as A,emit as T,emitTo as I,TauriEvent as u}from"./event-BbvoZQ5o.js";class z{constructor(...e){this.type="Logical",e.length===1?"Logical"in e[0]?(this.width=e[0].Logical.width,this.height=e[0].Logical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toPhysical(e){return new h(this.width*e,this.height*e)}[r](){return{width:this.width,height:this.height}}toJSON(){return this[r]()}}class h{constructor(...e){this.type="Physical",e.length===1?"Physical"in e[0]?(this.width=e[0].Physical.width,this.height=e[0].Physical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toLogical(e){return new z(this.width/e,this.height/e)}[r](){return{width:this.width,height:this.height}}toJSON(){return this[r]()}}class c{constructor(e){this.size=e}toLogical(e){return this.size instanceof z?this.size:this.size.toLogical(e)}toPhysical(e){return this.size instanceof h?this.size:this.size.toPhysical(e)}[r](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[r]()}}class x{constructor(...e){this.type="Logical",e.length===1?"Logical"in e[0]?(this.x=e[0].Logical.x,this.y=e[0].Logical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toPhysical(e){return new a(this.x*e,this.y*e)}[r](){return{x:this.x,y:this.y}}toJSON(){return this[r]()}}class a{constructor(...e){this.type="Physical",e.length===1?"Physical"in e[0]?(this.x=e[0].Physical.x,this.y=e[0].Physical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toLogical(e){return new x(this.x/e,this.y/e)}[r](){return{x:this.x,y:this.y}}toJSON(){return this[r]()}}class d{constructor(e){this.position=e}toLogical(e){return this.position instanceof x?this.position:this.position.toLogical(e)}toPhysical(e){return this.position instanceof a?this.position:this.position.toPhysical(e)}[r](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[r]()}}class w extends k{constructor(e){super(e)}static async new(e,n,l){return i("plugin:image|new",{rgba:y(e),width:n,height:l}).then(o=>new w(o))}static async fromBytes(e){return i("plugin:image|from_bytes",{bytes:y(e)}).then(n=>new w(n))}static async fromPath(e){return i("plugin:image|from_path",{path:e}).then(n=>new w(n))}async rgba(){return i("plugin:image|rgba",{rid:this.rid}).then(e=>new Uint8Array(e))}async size(){return i("plugin:image|size",{rid:this.rid})}}function y(t){return t==null?null:typeof t=="string"?t:t instanceof w?t.rid:t}var p;(function(t){t[t.Critical=1]="Critical",t[t.Informational=2]="Informational"})(p||(p={}));class W{constructor(e){this._preventDefault=!1,this.event=e.event,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}var m;(function(t){t.None="none",t.Normal="normal",t.Indeterminate="indeterminate",t.Paused="paused",t.Error="error"})(m||(m={}));function O(){return new D(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function b(){return i("plugin:window|get_all_windows").then(t=>t.map(e=>new D(e,{skip:!0})))}const _=["tauri://created","tauri://error"];class D{constructor(e,n={}){var l;this.label=e,this.listeners=Object.create(null),n!=null&&n.skip||i("plugin:window|create",{options:{...n,parent:typeof n.parent=="string"?n.parent:(l=n.parent)===null||l===void 0?void 0:l.label,label:e}}).then(async()=>this.emit("tauri://created")).catch(async o=>this.emit("tauri://error",o))}static async getByLabel(e){var n;return(n=(await b()).find(l=>l.label===e))!==null&&n!==void 0?n:null}static getCurrent(){return O()}static async getAll(){return b()}static async getFocusedWindow(){for(const e of await b())if(await e.isFocused())return e;return null}async listen(e,n){return this._handleTauriEvent(e,n)?()=>{const l=this.listeners[e];l.splice(l.indexOf(n),1)}:L(e,n,{target:{kind:"Window",label:this.label}})}async once(e,n){return this._handleTauriEvent(e,n)?()=>{const l=this.listeners[e];l.splice(l.indexOf(n),1)}:A(e,n,{target:{kind:"Window",label:this.label}})}async emit(e,n){if(_.includes(e)){for(const l of this.listeners[e]||[])l({event:e,id:-1,payload:n});return}return T(e,n)}async emitTo(e,n,l){if(_.includes(n)){for(const o of this.listeners[n]||[])o({event:n,id:-1,payload:l});return}return I(e,n,l)}_handleTauriEvent(e,n){return _.includes(e)?(e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n],!0):!1}async scaleFactor(){return i("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return i("plugin:window|inner_position",{label:this.label}).then(e=>new a(e))}async outerPosition(){return i("plugin:window|outer_position",{label:this.label}).then(e=>new a(e))}async innerSize(){return i("plugin:window|inner_size",{label:this.label}).then(e=>new h(e))}async outerSize(){return i("plugin:window|outer_size",{label:this.label}).then(e=>new h(e))}async isFullscreen(){return i("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return i("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return i("plugin:window|is_maximized",{label:this.label})}async isFocused(){return i("plugin:window|is_focused",{label:this.label})}async isDecorated(){return i("plugin:window|is_decorated",{label:this.label})}async isResizable(){return i("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return i("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return i("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return i("plugin:window|is_closable",{label:this.label})}async isVisible(){return i("plugin:window|is_visible",{label:this.label})}async title(){return i("plugin:window|title",{label:this.label})}async theme(){return i("plugin:window|theme",{label:this.label})}async isAlwaysOnTop(){return i("plugin:window|is_always_on_top",{label:this.label})}async activityName(){return i("plugin:window|activity_name",{label:this.label})}async sceneIdentifier(){return i("plugin:window|scene_identifier",{label:this.label})}async center(){return i("plugin:window|center",{label:this.label})}async requestUserAttention(e){let n=null;return e&&(e===p.Critical?n={type:"Critical"}:n={type:"Informational"}),i("plugin:window|request_user_attention",{label:this.label,value:n})}async setResizable(e){return i("plugin:window|set_resizable",{label:this.label,value:e})}async setEnabled(e){return i("plugin:window|set_enabled",{label:this.label,value:e})}async isEnabled(){return i("plugin:window|is_enabled",{label:this.label})}async setMaximizable(e){return i("plugin:window|set_maximizable",{label:this.label,value:e})}async setMinimizable(e){return i("plugin:window|set_minimizable",{label:this.label,value:e})}async setClosable(e){return i("plugin:window|set_closable",{label:this.label,value:e})}async setTitle(e){return i("plugin:window|set_title",{label:this.label,value:e})}async maximize(){return i("plugin:window|maximize",{label:this.label})}async unmaximize(){return i("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return i("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return i("plugin:window|minimize",{label:this.label})}async unminimize(){return i("plugin:window|unminimize",{label:this.label})}async show(){return i("plugin:window|show",{label:this.label})}async hide(){return i("plugin:window|hide",{label:this.label})}async close(){return i("plugin:window|close",{label:this.label})}async destroy(){return i("plugin:window|destroy",{label:this.label})}async setDecorations(e){return i("plugin:window|set_decorations",{label:this.label,value:e})}async setShadow(e){return i("plugin:window|set_shadow",{label:this.label,value:e})}async setEffects(e){return i("plugin:window|set_effects",{label:this.label,value:e})}async clearEffects(){return i("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(e){return i("plugin:window|set_always_on_top",{label:this.label,value:e})}async setAlwaysOnBottom(e){return i("plugin:window|set_always_on_bottom",{label:this.label,value:e})}async setContentProtected(e){return i("plugin:window|set_content_protected",{label:this.label,value:e})}async setSize(e){return i("plugin:window|set_size",{label:this.label,value:e instanceof c?e:new c(e)})}async setMinSize(e){return i("plugin:window|set_min_size",{label:this.label,value:e instanceof c?e:e?new c(e):null})}async setMaxSize(e){return i("plugin:window|set_max_size",{label:this.label,value:e instanceof c?e:e?new c(e):null})}async setSizeConstraints(e){function n(l){return l?{Logical:l}:null}return i("plugin:window|set_size_constraints",{label:this.label,value:{minWidth:n(e==null?void 0:e.minWidth),minHeight:n(e==null?void 0:e.minHeight),maxWidth:n(e==null?void 0:e.maxWidth),maxHeight:n(e==null?void 0:e.maxHeight)}})}async setPosition(e){return i("plugin:window|set_position",{label:this.label,value:e instanceof d?e:new d(e)})}async setFullscreen(e){return i("plugin:window|set_fullscreen",{label:this.label,value:e})}async setSimpleFullscreen(e){return i("plugin:window|set_simple_fullscreen",{label:this.label,value:e})}async setFocus(){return i("plugin:window|set_focus",{label:this.label})}async setFocusable(e){return i("plugin:window|set_focusable",{label:this.label,value:e})}async setIcon(e){return i("plugin:window|set_icon",{label:this.label,value:y(e)})}async setSkipTaskbar(e){return i("plugin:window|set_skip_taskbar",{label:this.label,value:e})}async setCursorGrab(e){return i("plugin:window|set_cursor_grab",{label:this.label,value:e})}async setCursorVisible(e){return i("plugin:window|set_cursor_visible",{label:this.label,value:e})}async setCursorIcon(e){return i("plugin:window|set_cursor_icon",{label:this.label,value:e})}async setBackgroundColor(e){return i("plugin:window|set_background_color",{color:e})}async setCursorPosition(e){return i("plugin:window|set_cursor_position",{label:this.label,value:e instanceof d?e:new d(e)})}async setIgnoreCursorEvents(e){return i("plugin:window|set_ignore_cursor_events",{label:this.label,value:e})}async startDragging(){return i("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(e){return i("plugin:window|start_resize_dragging",{label:this.label,value:e})}async setBadgeCount(e){return i("plugin:window|set_badge_count",{label:this.label,value:e})}async setBadgeLabel(e){return i("plugin:window|set_badge_label",{label:this.label,value:e})}async setOverlayIcon(e){return i("plugin:window|set_overlay_icon",{label:this.label,value:e?y(e):void 0})}async setProgressBar(e){return i("plugin:window|set_progress_bar",{label:this.label,value:e})}async setVisibleOnAllWorkspaces(e){return i("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:e})}async setTitleBarStyle(e){return i("plugin:window|set_title_bar_style",{label:this.label,value:e})}async setTheme(e){return i("plugin:window|set_theme",{label:this.label,value:e})}async onResized(e){return this.listen(u.WINDOW_RESIZED,n=>{n.payload=new h(n.payload),e(n)})}async onMoved(e){return this.listen(u.WINDOW_MOVED,n=>{n.payload=new a(n.payload),e(n)})}async onCloseRequested(e){return this.listen(u.WINDOW_CLOSE_REQUESTED,async n=>{const l=new W(n);await e(l),l.isPreventDefault()||await this.destroy()})}async onDragDropEvent(e){const n=await this.listen(u.DRAG_ENTER,s=>{e({...s,payload:{type:"enter",paths:s.payload.paths,position:new a(s.payload.position)}})}),l=await this.listen(u.DRAG_OVER,s=>{e({...s,payload:{type:"over",position:new a(s.payload.position)}})}),o=await this.listen(u.DRAG_DROP,s=>{e({...s,payload:{type:"drop",paths:s.payload.paths,position:new a(s.payload.position)}})}),C=await this.listen(u.DRAG_LEAVE,s=>{e({...s,payload:{type:"leave"}})});return()=>{n(),o(),l(),C()}}async onFocusChanged(e){const n=await this.listen(u.WINDOW_FOCUS,o=>{e({...o,payload:!0})}),l=await this.listen(u.WINDOW_BLUR,o=>{e({...o,payload:!1})});return()=>{n(),l()}}async onScaleChanged(e){return this.listen(u.WINDOW_SCALE_FACTOR_CHANGED,e)}async onThemeChanged(e){return this.listen(u.WINDOW_THEME_CHANGED,e)}}var S;(function(t){t.Disabled="disabled",t.Throttle="throttle",t.Suspend="suspend"})(S||(S={}));var P;(function(t){t.Default="default",t.FluentOverlay="fluentOverlay"})(P||(P={}));var v;(function(t){t.AppearanceBased="appearanceBased",t.Light="light",t.Dark="dark",t.MediumLight="mediumLight",t.UltraDark="ultraDark",t.Titlebar="titlebar",t.Selection="selection",t.Menu="menu",t.Popover="popover",t.Sidebar="sidebar",t.HeaderView="headerView",t.Sheet="sheet",t.WindowBackground="windowBackground",t.HudWindow="hudWindow",t.FullScreenUI="fullScreenUI",t.Tooltip="tooltip",t.ContentBackground="contentBackground",t.UnderWindowBackground="underWindowBackground",t.UnderPageBackground="underPageBackground",t.Mica="mica",t.Blur="blur",t.Acrylic="acrylic",t.Tabbed="tabbed",t.TabbedDark="tabbedDark",t.TabbedLight="tabbedLight"})(v||(v={}));var f;(function(t){t.FollowsWindowActiveState="followsWindowActiveState",t.Active="active",t.Inactive="inactive"})(f||(f={}));function g(t){return t===null?null:{name:t.name,scaleFactor:t.scaleFactor,position:new a(t.position),size:new h(t.size),workArea:{position:new a(t.workArea.position),size:new h(t.workArea.size)}}}async function N(){return i("plugin:window|current_monitor").then(g)}async function R(){return i("plugin:window|primary_monitor").then(g)}async function M(t,e){return i("plugin:window|monitor_from_point",{x:t,y:e}).then(g)}async function B(){return i("plugin:window|available_monitors").then(t=>t.map(g))}async function F(){return i("plugin:window|cursor_position").then(t=>new a(t))}const H=Object.freeze(Object.defineProperty({__proto__:null,CloseRequestedEvent:W,get Effect(){return v},get EffectState(){return f},LogicalPosition:x,LogicalSize:z,PhysicalPosition:a,PhysicalSize:h,get ProgressBarStatus(){return m},get UserAttentionType(){return p},Window:D,availableMonitors:B,currentMonitor:N,cursorPosition:F,getAllWindows:b,getCurrentWindow:O,monitorFromPoint:M,primaryMonitor:R},Symbol.toStringTag,{value:"Module"}));export{a as P,c as S,D as W,h as a,d as b,O as g,H as w};