@fde-desktop/fde-core 0.4.9 → 0.4.11

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 (186) hide show
  1. package/dist/{AppEmptyState-Bxpit0JV.js → AppEmptyState-Boej96TB.js} +1 -1
  2. package/dist/AppEmptyState-CLc00OOG.cjs +1 -0
  3. package/dist/AppIcon-C8vHUVcb.cjs +1 -0
  4. package/dist/AppIcon-mtEoyzOb.js +22 -0
  5. package/dist/AppMenuBar-CAlkNHjj.cjs +1 -0
  6. package/dist/AppMenuBar-DmSfQRXU.js +197 -0
  7. package/dist/CalendarApp-DOmjWbpl.js +10 -0
  8. package/dist/CalendarApp-Z0bCCYsK.cjs +1 -0
  9. package/dist/ColorPicker-CQRRwY-y.cjs +1 -0
  10. package/dist/ColorPicker-WCeD3Wjf.js +35 -0
  11. package/dist/CreateItemApp-BkFFFdX1.cjs +1 -0
  12. package/dist/CreateItemApp-DR8Y4bwo.js +202 -0
  13. package/dist/DeviceInfoApp-BXQ9uOwF.cjs +1 -0
  14. package/dist/DeviceInfoApp-I63mJRWy.js +195 -0
  15. package/dist/DownloadProgress-CkTGTf0z.cjs +1 -0
  16. package/dist/DownloadProgress-DnVASsv5.js +39 -0
  17. package/dist/FilePickerApp-By6-vbag.cjs +1 -0
  18. package/dist/FilePickerApp-ClHuhm6Z.js +390 -0
  19. package/dist/FilesApp-BC4UPNuw.cjs +1 -0
  20. package/dist/FilesApp-D8MqvC5X.js +210 -0
  21. package/dist/ImageViewerApp-B1niWF75.cjs +1 -0
  22. package/dist/{ImageViewerApp-BaLP3gkO.js → ImageViewerApp-iojtyFEf.js} +5 -5
  23. package/dist/{ImageViewerMenuBar-CabGSi9r.js → ImageViewerMenuBar-BIsUokxV.js} +2 -2
  24. package/dist/ImageViewerMenuBar-BgzgSF3v.cjs +1 -0
  25. package/dist/MenuEditApp-BHptoJbz.cjs +1 -0
  26. package/dist/{MenuEditApp-BTRppYnD.js → MenuEditApp-CJUbJaqh.js} +138 -143
  27. package/dist/MenuEditMenuBar-CCOSPAUe.cjs +1 -0
  28. package/dist/{MenuEditMenuBar-x1IQrHP2.js → MenuEditMenuBar-DnCL-kaZ.js} +3 -3
  29. package/dist/NotesApp-BmQIBtJ2.cjs +1 -0
  30. package/dist/{NotesApp-CQe7UfBC.js → NotesApp-DJ2dGt4-.js} +5 -5
  31. package/dist/NotesMenuBar-BzojwMtH.cjs +1 -0
  32. package/dist/{NotesMenuBar-VhpIe68v.js → NotesMenuBar-DILZTjnT.js} +3 -3
  33. package/dist/{PdfApp-DL_R9-Nc.js → PdfApp-IjY_GtnW.js} +3 -3
  34. package/dist/PdfApp-krW8UI97.cjs +1 -0
  35. package/dist/{PdfMenuBar-DZCLSOpR.js → PdfMenuBar-Bd5MTZcZ.js} +1 -1
  36. package/dist/PdfMenuBar-DWD0Qa3F.cjs +1 -0
  37. package/dist/SettingsApp-BE22l5UP.cjs +1 -0
  38. package/dist/SettingsApp-BTFtTFY_.js +1228 -0
  39. package/dist/SettingsMenuBar-CZE2evG2.cjs +1 -0
  40. package/dist/{SettingsMenuBar-YWiJHaxq.js → SettingsMenuBar-ktC0viTd.js} +3 -3
  41. package/dist/UploaderApp-CbypD538.js +263 -0
  42. package/dist/UploaderApp-D_qD3O70.cjs +1 -0
  43. package/dist/{VscIcon-DBfVnArE.js → VscIcon-AEENjKOE.js} +1 -1
  44. package/dist/VscIcon-BYb_Soyy.cjs +1 -0
  45. package/dist/buildBreadcrumbs-Ccd8i11b.cjs +1 -0
  46. package/dist/buildBreadcrumbs-noWhu8os.js +45 -0
  47. package/dist/{desktopStore-F8bgLqFl.js → desktopStore-8cSZlj7s.js} +407 -477
  48. package/dist/desktopStore-C1jR6Fdb.cjs +1 -0
  49. package/dist/imageViewerStore-Dfylg59V.cjs +1 -0
  50. package/dist/index.cjs +1 -1
  51. package/dist/index.css +1 -1
  52. package/dist/index.d.ts +16 -6
  53. package/dist/index.js +1646 -1960
  54. package/dist/menuEditStore-CYwtfD6H.cjs +1 -0
  55. package/dist/notesStore-CrWTO6oB.cjs +1 -0
  56. package/dist/settingsAppStore-DuYZNeFf.cjs +1 -0
  57. package/dist/useAdaptiveDimensions-3Lz4X0Tc.cjs +1 -0
  58. package/dist/{useAdaptiveDimensions-AVDc_qPa.js → useAdaptiveDimensions-DxNLJ7R5.js} +1 -1
  59. package/dist/{useCloseInterceptor-BZd3VILp.js → useCloseInterceptor-CIxhOZx1.js} +1 -1
  60. package/dist/useCloseInterceptor-CdX-09Ib.cjs +1 -0
  61. package/dist/useDynamicIcon-CK6SjEv5.cjs +1 -0
  62. package/dist/useOpenApp-D-FOY88T.cjs +1 -0
  63. package/dist/{useOpenApp-CBIm7Gzl.js → useOpenApp-DkZLFFCH.js} +51 -67
  64. package/dist/{useResolvedUrl-DQpLqOoL.js → useResolvedUrl-B6x4xy0x.js} +1 -2
  65. package/dist/useResolvedUrl-Bb39DpVy.cjs +1 -0
  66. package/package.json +2 -1
  67. package/dist/AccordionChevron-DxpOyInK.js +0 -26
  68. package/dist/AccordionChevron-kn5kSrEc.cjs +0 -1
  69. package/dist/ActionIcon-Drh4p6Fv.js +0 -145
  70. package/dist/ActionIcon-alk2zZD6.cjs +0 -1
  71. package/dist/AppEmptyState-BWCUbf-B.cjs +0 -1
  72. package/dist/AppIcon-BU7a3ZNH.cjs +0 -1
  73. package/dist/AppIcon-XumS3bIG.js +0 -80
  74. package/dist/AppMenuBar-B9U0n1Vv.cjs +0 -1
  75. package/dist/AppMenuBar-CnIEVjr8.js +0 -2049
  76. package/dist/Box-DSKR_qaa.js +0 -1579
  77. package/dist/Box-zW6Twge8.cjs +0 -1
  78. package/dist/Button-DMlnrqyx.cjs +0 -1
  79. package/dist/Button-wTOTQKxF.js +0 -178
  80. package/dist/CalendarApp-B_e1B1Yn.cjs +0 -1
  81. package/dist/CalendarApp-C-l9D6nd.cjs +0 -1
  82. package/dist/CalendarApp-D0ftTCTG.js +0 -1399
  83. package/dist/Center-CmxXB9ql.js +0 -25
  84. package/dist/Center-DKUE2pER.cjs +0 -1
  85. package/dist/CheckIcon-CZhtJD1O.cjs +0 -1
  86. package/dist/CheckIcon-N5qBqXQJ.js +0 -25
  87. package/dist/CodeServerApp-BOoGwZ7r.cjs +0 -1
  88. package/dist/CodeServerApp-Be3I5EGg.cjs +0 -1
  89. package/dist/CodeServerApp-DW18EZxa.js +0 -150
  90. package/dist/ColorPicker-BCNqi02x.js +0 -997
  91. package/dist/ColorPicker-BrDE7tMO.cjs +0 -1
  92. package/dist/CreateItemApp-B12M1E_1.cjs +0 -1
  93. package/dist/CreateItemApp-TAAprby3.js +0 -400
  94. package/dist/CreateItemApp-ePB6ujNl.cjs +0 -1
  95. package/dist/DeviceInfoApp-BMF18BGo.cjs +0 -1
  96. package/dist/DeviceInfoApp-DRy0H3aT.cjs +0 -1
  97. package/dist/DeviceInfoApp-lgpwkeRR.js +0 -223
  98. package/dist/DownloadProgress-EoyCaD5O.js +0 -174
  99. package/dist/DownloadProgress-VNdj22U8.cjs +0 -1
  100. package/dist/FileIcon-7JaSR3Gn.js +0 -89
  101. package/dist/FileIcon-CIXopWLv.cjs +0 -1
  102. package/dist/FilePickerApp-DaMgEqKh.js +0 -409
  103. package/dist/FilePickerApp-DjmuSFqa.cjs +0 -1
  104. package/dist/FilesApp-Bp7wfrBZ.cjs +0 -1
  105. package/dist/FilesApp-BpJJRKhi.cjs +0 -1
  106. package/dist/FilesApp-Cj94QG5o.js +0 -225
  107. package/dist/Group-CtBJSfCo.js +0 -48
  108. package/dist/Group-Dsrf6lEK.cjs +0 -1
  109. package/dist/ImageViewerApp-DlHGeB3S.cjs +0 -1
  110. package/dist/ImageViewerApp-DoXd_Swu.cjs +0 -1
  111. package/dist/ImageViewerMenuBar-SAI7UNz7.cjs +0 -1
  112. package/dist/ImageViewerMenuBar-_Jr29gii.cjs +0 -1
  113. package/dist/MenuEditApp-BJjlPTOa.cjs +0 -1
  114. package/dist/MenuEditApp-JPsGT-S3.cjs +0 -1
  115. package/dist/MenuEditMenuBar-BydGkqMw.cjs +0 -1
  116. package/dist/MenuEditMenuBar-DptlwVPQ.cjs +0 -1
  117. package/dist/NotesApp-BOcRGO7w.cjs +0 -1
  118. package/dist/NotesApp-OL07JXRE.cjs +0 -1
  119. package/dist/NotesMenuBar-BSI_2Y7p.cjs +0 -1
  120. package/dist/NotesMenuBar-Df6aW85J.cjs +0 -1
  121. package/dist/Paper-BX_9odR6.js +0 -30
  122. package/dist/Paper-D8-BaBx2.cjs +0 -1
  123. package/dist/PdfApp-CNEbty5v.cjs +0 -1
  124. package/dist/PdfApp-CVv3ZCaM.cjs +0 -1
  125. package/dist/PdfMenuBar--E6kDyrT.cjs +0 -1
  126. package/dist/PdfMenuBar-Dj5cJUkg.cjs +0 -1
  127. package/dist/SettingsApp-BlmHuAjT.js +0 -1831
  128. package/dist/SettingsApp-CNvIgf5B.cjs +0 -1
  129. package/dist/SettingsApp-DWxanNE4.cjs +0 -1
  130. package/dist/SettingsMenuBar-CBoOBCfx.cjs +0 -1
  131. package/dist/SettingsMenuBar-DQooFkZN.cjs +0 -1
  132. package/dist/Slider-BUiHxjKO.cjs +0 -1
  133. package/dist/Slider-t-NcD60t.js +0 -1176
  134. package/dist/Stack-Bp1Ek2Gp.js +0 -34
  135. package/dist/Stack-D4jAiRfc.cjs +0 -1
  136. package/dist/StorybookApp-CDLV_kja.cjs +0 -1
  137. package/dist/StorybookApp-DKwlPCmo.js +0 -10
  138. package/dist/TerminalApp-BCB7i1lR.cjs +0 -1
  139. package/dist/TerminalApp-BYc_gHLe.js +0 -326
  140. package/dist/TerminalApp-Dviz6aP2.cjs +0 -1
  141. package/dist/TerminalMenuBar-D5tPmgR_.js +0 -113
  142. package/dist/TerminalMenuBar-DNshPmCa.cjs +0 -1
  143. package/dist/TerminalMenuBar-HzMSR7XP.cjs +0 -1
  144. package/dist/TextInput-C-JtGWn1.js +0 -981
  145. package/dist/TextInput-CrsmcOip.cjs +0 -1
  146. package/dist/Tooltip-D5Cd9wtz.cjs +0 -1
  147. package/dist/Tooltip-DOeIvhrO.js +0 -1142
  148. package/dist/UnstyledButton-DGaG-e_G.js +0 -25
  149. package/dist/UnstyledButton-DX2pTahr.cjs +0 -1
  150. package/dist/UploaderApp-C6xA5Rrf2.cjs +0 -1
  151. package/dist/UploaderApp-DnHIRxB_.cjs +0 -1
  152. package/dist/UploaderApp-qBfpukR_.js +0 -488
  153. package/dist/VscIcon-CcMdrFoJ.cjs +0 -1
  154. package/dist/create-safe-context-Bboj0GWC.cjs +0 -1
  155. package/dist/create-safe-context-XT2cxc14.js +0 -12
  156. package/dist/desktopStore-CZoA9VHO.cjs +0 -1
  157. package/dist/getRuntime-BFK0-8R1.cjs +0 -1
  158. package/dist/getRuntime-DAPqFH2W.js +0 -63
  159. package/dist/imageViewerStore-BB_tssZR.cjs +0 -1
  160. package/dist/is-element-Bu_JY8Qy.js +0 -7
  161. package/dist/is-element-CdV0xajp.cjs +0 -1
  162. package/dist/menuEditStore-CTeM_dns.cjs +0 -1
  163. package/dist/notesStore-BCEl1D_v.cjs +0 -1
  164. package/dist/settingsAppStore-CMBc13VU.cjs +0 -1
  165. package/dist/terminalStore-IWdf4Mm6.js +0 -30
  166. package/dist/terminalStore-iIuyodfK.cjs +0 -1
  167. package/dist/use-merged-ref-BT8_u6vW.js +0 -25
  168. package/dist/use-merged-ref-n9Gw9LNn.cjs +0 -1
  169. package/dist/use-resolved-styles-api-8OXE2oRq.cjs +0 -1
  170. package/dist/use-resolved-styles-api-DNUlJJZf.js +0 -21
  171. package/dist/use-uncontrolled-A4hm9ATM.js +0 -23
  172. package/dist/use-uncontrolled-DDJVQiM_.cjs +0 -1
  173. package/dist/useAdaptiveDimensions-CfITBJ_m.cjs +0 -1
  174. package/dist/useCloseInterceptor-yntBEzNc.cjs +0 -1
  175. package/dist/useDynamicIcon-DJ_il30E.cjs +0 -1
  176. package/dist/useOpenApp-DW4x79Zg.cjs +0 -1
  177. package/dist/useResolvedUrl-BkMPM1fM.cjs +0 -1
  178. /package/dist/{Colors-zP2AFgU3.cjs → Colors-CNJbU7oq.cjs} +0 -0
  179. /package/dist/{Colors-ClnDxnyA.js → Colors-CuABn2W4.js} +0 -0
  180. /package/dist/{imageViewerStore-C5kWz0o7.js → imageViewerStore-COrD02Zu.js} +0 -0
  181. /package/dist/{menuEditStore-Cj1zAwxQ.js → menuEditStore-CxsgLiQu.js} +0 -0
  182. /package/dist/{notesStore-BPyRTHEc.js → notesStore-Dgah46U5.js} +0 -0
  183. /package/dist/{settingsAppStore-BDQ3ts1y.js → settingsAppStore-DHZhi6Rl.js} +0 -0
  184. /package/dist/{useDynamicIcon-Bf0t2foA.js → useDynamicIcon-_wGeWu-b.js} +0 -0
  185. /package/dist/{useMenuBarUtils-nmu9yehT.js → useMenuBarUtils-ChAfI7OA.js} +0 -0
  186. /package/dist/{useMenuBarUtils-nJIPJGIQ.cjs → useMenuBarUtils-DAap0ukp.cjs} +0 -0
@@ -0,0 +1 @@
1
+ require(`./NotesApp-BmQIBtJ2.cjs`);var e=(0,require(`zustand`).create)((e,t)=>({windows:{},reset:t=>{e(e=>({windows:{...e.windows,[t]:{isDirty:!1,snapshot:null}}}))},setIsDirty:(t,n)=>{e(e=>{let r=e.windows[t];return r?.isDirty===n?e:{windows:{...e.windows,[t]:{...r,isDirty:n}}}})},takeSnapshot:(t,n)=>{e(e=>({windows:{...e.windows,[t]:{isDirty:!1,snapshot:n}}}))},getSnapshot:e=>t().windows[e]?.snapshot??null})),t=t=>e(e=>e.windows[t]?.isDirty??!1);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -0,0 +1 @@
1
+ require(`./NotesApp-BmQIBtJ2.cjs`);let e=require(`zustand`);var t={isDirty:!1,contentLoaded:!1},n=(0,e.create)((e,n)=>({states:{},getIsDirty:e=>n().states[e]?.isDirty??!1,setIsDirty:(r,i)=>{(n().states[r]?.isDirty??!1)!==i&&e(e=>({states:{...e.states,[r]:{...e.states[r]??t,isDirty:i}}}))},getContentLoaded:e=>n().states[e]?.contentLoaded??!1,setContentLoaded:(n,r)=>{e(e=>({states:{...e.states,[n]:{...e.states[n]??t,contentLoaded:r}}}))},reset:n=>{e(e=>({states:{...e.states,[n]:t}}))}})),r=e=>n(t=>t.states[e]?.isDirty??!1);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
@@ -0,0 +1 @@
1
+ require(`./NotesApp-BmQIBtJ2.cjs`);let e=require(`zustand`);function t(){let t={isDirty:!1};return(0,e.create)((e,n)=>({states:{},getIsDirty:e=>n().states[e]?.isDirty??!1,setIsDirty:(r,i)=>{(n().states[r]?.isDirty??!1)!==i&&e(e=>({states:{...e.states,[r]:{...e.states[r]??t,isDirty:i}}}))},reset:n=>{e(e=>({states:{...e.states,[n]:t}}))}}))}var n=t(),r=e=>n(t=>t.states[e]?.isDirty??!1);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
@@ -0,0 +1 @@
1
+ require(`./NotesApp-BmQIBtJ2.cjs`);const e=require(`./desktopStore-C1jR6Fdb.cjs`);let t=require(`react`);var n={mobile:{defaultWidth:300,defaultHeight:500,minWidth:280,minHeight:400},tablet:{defaultWidth:600,defaultHeight:450,minWidth:400,minHeight:350},desktop:{defaultWidth:800,defaultHeight:600,minWidth:640,minHeight:480},largeDesktop:{defaultWidth:1e3,defaultHeight:700,minWidth:800,minHeight:600}},r=1440,i=()=>{let t=window.innerWidth;return t<e.p.MOBILE?n.mobile:t<e.p.TABLET?n.tablet:t<r?n.desktop:n.largeDesktop};function a(){let[e,n]=(0,t.useState)(()=>i()),r=(0,t.useCallback)(()=>{n(i())},[]);return(0,t.useEffect)(()=>(window.addEventListener(`resize`,r),()=>window.removeEventListener(`resize`,r)),[r]),e}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
@@ -1,4 +1,4 @@
1
- import { p as e } from "./desktopStore-F8bgLqFl.js";
1
+ import { p as e } from "./desktopStore-8cSZlj7s.js";
2
2
  import { useCallback as t, useEffect as n, useState as r } from "react";
3
3
  //#region src/hooks/useAdaptiveDimensions.ts
4
4
  var i = {
@@ -1,4 +1,4 @@
1
- import { o as e } from "./desktopStore-F8bgLqFl.js";
1
+ import { o as e } from "./desktopStore-8cSZlj7s.js";
2
2
  import { useCallback as t, useEffect as n, useRef as r } from "react";
3
3
  import { create as i } from "zustand";
4
4
  //#region src/stores/closeModalStore.ts
@@ -0,0 +1 @@
1
+ require(`./NotesApp-BmQIBtJ2.cjs`);const e=require(`./desktopStore-C1jR6Fdb.cjs`);let t=require(`react`);var n=(0,require(`zustand`).create)()(e=>({isOpen:!1,windowId:null,onSave:null,onDiscard:null,openModal:(t,n,r)=>e({isOpen:!0,windowId:t,onSave:n,onDiscard:r}),closeModal:()=>e({isOpen:!1,windowId:null,onSave:null,onDiscard:null})})),r=new Map,i=(e,t)=>{r.set(e,t)},a=e=>{r.delete(e)},o=e=>r.get(e);function s({isDirtyGetter:r,windowId:o,onDiscard:s,onSave:c}){let l=e.o(e=>e.windows),u=e.o(e=>e.closeWindow),d=n(e=>e.openModal),f=o??l.find(e=>e.isOpen)?.id,p=(0,t.useRef)(r),m=(0,t.useRef)(!1),h=(0,t.useRef)(s),g=(0,t.useRef)(c);(0,t.useEffect)(()=>{p.current=r,h.current=s,g.current=c},[r,s,c]);let _=(0,t.useCallback)(()=>{f&&(h.current?.(),u(f))},[f,u]),v=(0,t.useCallback)(()=>{f&&(g.current?.(),u(f))},[f,u]);(0,t.useEffect)(()=>f?(m.current=!0,i(f,()=>m.current&&p.current()?(d(f,v,_),!1):!0),()=>{m.current=!1,a(f)}):void 0,[f,d,v,_])}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
@@ -0,0 +1 @@
1
+ require(`./NotesApp-BmQIBtJ2.cjs`);let e=require(`react`);var t=(t,n)=>{let[r,i]=(0,e.useState)(null);return(0,e.useEffect)(()=>{if(!t||typeof window>`u`)return;let e=!1;return(async()=>{try{let r;r=n===`fi`?await import(`react-icons/fi`):n===`vsc`?await import(`react-icons/vsc`):await import(`react-icons/fc`),e||i(()=>r[t]??null)}catch{}})(),()=>{e=!0}},[t,n]),r},n=(n,r,i)=>{let a=t(n,r);return a?(0,e.createElement)(a,i):null},r=e=>t(e,`fi`),i=e=>t(e,`fc`),a=e=>t(e,`vsc`),o=(e,t)=>n(e,`fi`,t),s=(e,t)=>n(e,`fc`,t),c=(e,t)=>n(e,`vsc`,t);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -0,0 +1 @@
1
+ require(`./NotesApp-BmQIBtJ2.cjs`);const e=require(`./desktopStore-C1jR6Fdb.cjs`),t=require(`./useAdaptiveDimensions-3Lz4X0Tc.cjs`);let n=require(`react`);var r=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./FilesApp-BC4UPNuw.cjs`)).then(e=>e.n)),i=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./NotesApp-BmQIBtJ2.cjs`)).then(e=>e.n)),a=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./ImageViewerApp-B1niWF75.cjs`)).then(e=>e.n)),o=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./PdfApp-krW8UI97.cjs`)).then(e=>e.n)),s=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./MenuEditApp-BHptoJbz.cjs`)).then(e=>e.n)),c=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./UploaderApp-D_qD3O70.cjs`)).then(e=>e.n)),l=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./SettingsApp-BE22l5UP.cjs`)).then(e=>e.n)),u=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./DeviceInfoApp-BXQ9uOwF.cjs`)).then(e=>e.n)),d=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./CalendarApp-Z0bCCYsK.cjs`)).then(e=>e.n)),f=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./CreateItemApp-BkFFFdX1.cjs`)).then(e=>e.n)),p=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./NotesMenuBar-BzojwMtH.cjs`)).then(e=>e.n).then(e=>({default:e.NotesMenuBar}))),m=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./MenuEditMenuBar-CCOSPAUe.cjs`)).then(e=>e.n).then(e=>({default:e.MenuEditMenuBar}))),h=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./SettingsMenuBar-CZE2evG2.cjs`)).then(e=>e.n).then(e=>({default:e.SettingsMenuBar}))),g=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./PdfMenuBar-DWD0Qa3F.cjs`)).then(e=>e.n).then(e=>({default:e.PdfMenuBar}))),_=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./ImageViewerMenuBar-BgzgSF3v.cjs`)).then(e=>e.n).then(e=>({default:e.ImageViewerMenuBar}))),v=null,y=(()=>null);function b(e){return{...e,component:e.component??(e.loader?(0,n.lazy)(e.loader):void 0),MenuBarComponent:e.MenuBarComponent??(e.menuBarLoader?(0,n.lazy)(e.menuBarLoader):void 0)}}function x(e){v={};for(let[t,n]of Object.entries(e))v[t]=b(n)}function S(e){return v?v[e]?.component||(console.warn(`[AppRegistry] App not found: ${e}`),y):(console.warn(`[AppRegistry] Registry not initialized, requested app: ${e}`),y)}function C(e){return v?.[e]?.buildMenuBar}function w(e){return v?.[e]?.MenuBarComponent}function T(e){return v?.[e]?.isLazy??!1}function E(e){return v?.[e]?.appName}function D(e){return v?.[e]}function O(e){v||={};for(let[t,n]of Object.entries(e))v[t]=b(n)}var k={};function A(){let e={files:{component:r,appName:`Files`,isLazy:!0},settings:{component:l,MenuBarComponent:h,appName:`Settings`,isLazy:!0},pdf:{component:o,MenuBarComponent:g,appName:`PDF`,isLazy:!0},"image-viewer":{component:a,MenuBarComponent:_,appName:`Image Viewer`,isLazy:!0},uploader:{component:c,appName:`Uploader`,isLazy:!0},createItem:{component:f,appName:`Create Item`,isLazy:!0},"device-info":{component:u,appName:`Device Info`,isLazy:!0},menuedit:{component:s,MenuBarComponent:m,appName:`Menu Editor`,isLazy:!0},notepad:{component:i,MenuBarComponent:p,appName:`Notepad`,isLazy:!0},calendar:{component:d,appName:`Calendar`,isLazy:!0}};Object.assign(k,e),O(e)}var j=.3,M=e=>({duration:e,ease:`easeIn`}),N=e=>({duration:e,ease:`easeOut`}),P=e=>({hidden:{opacity:0,scale:.92,y:12},visible:{opacity:1,scale:1,y:0,transition:N(e)},exit:{opacity:0,scale:.92,y:12,transition:M(e)}}),F=e=>({initial:{opacity:0,y:8,scale:.96},animate:{opacity:1,y:0,scale:1,transition:N(e)},exit:{opacity:0,y:8,scale:.96,transition:M(e)}}),I=e=>(t,n)=>({opacity:0,scale:.1,x:t,y:n,transition:{duration:e,ease:[.4,0,1,1]}}),L=e=>(t,n)=>({opacity:[0,1],scale:[.1,1],x:[t,0],y:[n,0],transition:{duration:e,ease:[0,0,.2,1]}}),R=e=>({duration:e,ease:`easeOut`}),z={duration:j,ease:`easeIn`},B={duration:j,ease:`easeOut`},V=P(j),H=F(j),U=I(.3),W=L(.3),G={scale:{hidden:{opacity:0,scale:.92,y:12},visible:{opacity:1,scale:1,y:0,transition:B}},slide:{hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:B}},fade:{hidden:{opacity:0},visible:{opacity:1,transition:B}}},K={duration:.25,ease:`easeOut`},q=()=>({x:150+Math.random()*200,y:80+Math.random()*100}),J=(e,t,n,r)=>({x:Math.round((e-n)/2),y:Math.round((t-r)/2)}),Y=()=>{let r=e.o(e=>e.openWindow),i=e.o(e=>e.focusWindow),a=e.o(e=>e.windows),o=e.o(e=>e.customApps),s=t.t();return(0,n.useCallback)((t,{contentData:n,position:c}={})=>{let l=e.st.find(e=>e.id===t),u=o.find(e=>e.id===t),d=D(t);if(l?.singleWindow===!0||u?.window?.singleWindow===!0||d?.singleWindow===!0){let e=a.find(e=>e.content===t);if(e){i(e.id);return}}let{x:f,y:p}=c??q();r({title:l?.name??d?.appName??u?.name??t.charAt(0).toUpperCase()+t.slice(1),content:t,icon:l?.icon??d?.icon??u?.icon,fcIcon:l?.fcIcon??d?.fcIcon,iconUrl:l?.iconUrl??d?.iconUrl,iconColor:l?.iconColor??d?.iconColor,canMaximize:l?.canMaximize??d?.canMaximize??u?.window?.canMaximize,x:f,y:p,width:l?.defaultWidth??d?.defaultWidth??u?.window?.defaultWidth??s.defaultWidth,height:l?.defaultHeight??d?.defaultHeight??u?.window?.defaultHeight??s.defaultHeight,minWidth:l?.minWidth===!1||d?.minWidth===!1||u?.window?.minWidth===!1?void 0:l?.minWidth??d?.minWidth??u?.window?.minWidth??s.minWidth,minHeight:l?.minHeight===!1||d?.minHeight===!1||u?.window?.minHeight===!1?void 0:l?.minHeight??d?.minHeight??u?.window?.minHeight??s.minHeight,contentData:{...n,...l?.autoLoad?{autoLoad:l.autoLoad}:{}},alwaysOnTop:l?.alwaysOnTop??d?.alwaysOnTop})},[r,i,a,o,s])};Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return o}});
@@ -1,43 +1,43 @@
1
- import { C as e, o as t } from "./desktopStore-F8bgLqFl.js";
2
- import { t as n } from "./useAdaptiveDimensions-AVDc_qPa.js";
1
+ import { ct as e, o as t } from "./desktopStore-8cSZlj7s.js";
2
+ import { t as n } from "./useAdaptiveDimensions-DxNLJ7R5.js";
3
3
  import { lazy as r, useCallback as i } from "react";
4
4
  //#region src/components/Window/lazyApps.ts
5
- var a = r(() => import("./FilesApp-Cj94QG5o.js").then((e) => e.n)), o = r(() => import("./NotesApp-CQe7UfBC.js").then((e) => e.n)), s = r(() => import("./ImageViewerApp-BaLP3gkO.js").then((e) => e.n)), c = r(() => import("./PdfApp-DL_R9-Nc.js").then((e) => e.n)), l = r(() => import("./MenuEditApp-BTRppYnD.js").then((e) => e.n)), u = r(() => import("./UploaderApp-qBfpukR_.js").then((e) => e.n)), d = r(() => import("./SettingsApp-BlmHuAjT.js").then((e) => e.n)), f = r(() => import("./DeviceInfoApp-lgpwkeRR.js").then((e) => e.n)), p = r(() => import("./CalendarApp-D0ftTCTG.js").then((e) => e.n)), m = r(() => import("./CreateItemApp-TAAprby3.js").then((e) => e.n)), h = r(() => import("./NotesMenuBar-VhpIe68v.js").then((e) => e.n).then((e) => ({ default: e.NotesMenuBar }))), g = r(() => import("./MenuEditMenuBar-x1IQrHP2.js").then((e) => e.n).then((e) => ({ default: e.MenuEditMenuBar }))), _ = r(() => import("./SettingsMenuBar-YWiJHaxq.js").then((e) => e.n).then((e) => ({ default: e.SettingsMenuBar }))), v = r(() => import("./PdfMenuBar-DZCLSOpR.js").then((e) => e.n).then((e) => ({ default: e.PdfMenuBar }))), y = r(() => import("./ImageViewerMenuBar-CabGSi9r.js").then((e) => e.n).then((e) => ({ default: e.ImageViewerMenuBar }))), b = r(() => import("./TerminalApp-BYc_gHLe.js").then((e) => e.t)), x = r(() => import("./TerminalMenuBar-D5tPmgR_.js").then((e) => e.t).then((e) => ({ default: e.TerminalMenuBar }))), S = r(() => import("./CodeServerApp-DW18EZxa.js").then((e) => e.t)), C = r(() => import("./StorybookApp-DKwlPCmo.js").then((e) => e.n)), w = null, T = (() => null);
6
- function E(e) {
5
+ var a = r(() => import("./FilesApp-D8MqvC5X.js").then((e) => e.n)), o = r(() => import("./NotesApp-DJ2dGt4-.js").then((e) => e.n)), s = r(() => import("./ImageViewerApp-iojtyFEf.js").then((e) => e.n)), c = r(() => import("./PdfApp-IjY_GtnW.js").then((e) => e.n)), l = r(() => import("./MenuEditApp-CJUbJaqh.js").then((e) => e.n)), u = r(() => import("./UploaderApp-CbypD538.js").then((e) => e.n)), d = r(() => import("./SettingsApp-BTFtTFY_.js").then((e) => e.n)), f = r(() => import("./DeviceInfoApp-I63mJRWy.js").then((e) => e.n)), p = r(() => import("./CalendarApp-DOmjWbpl.js").then((e) => e.n)), m = r(() => import("./CreateItemApp-DR8Y4bwo.js").then((e) => e.n)), h = r(() => import("./NotesMenuBar-DILZTjnT.js").then((e) => e.n).then((e) => ({ default: e.NotesMenuBar }))), g = r(() => import("./MenuEditMenuBar-DnCL-kaZ.js").then((e) => e.n).then((e) => ({ default: e.MenuEditMenuBar }))), _ = r(() => import("./SettingsMenuBar-ktC0viTd.js").then((e) => e.n).then((e) => ({ default: e.SettingsMenuBar }))), v = r(() => import("./PdfMenuBar-Bd5MTZcZ.js").then((e) => e.n).then((e) => ({ default: e.PdfMenuBar }))), y = r(() => import("./ImageViewerMenuBar-BIsUokxV.js").then((e) => e.n).then((e) => ({ default: e.ImageViewerMenuBar }))), b = null, x = (() => null);
6
+ function S(e) {
7
7
  return {
8
8
  ...e,
9
9
  component: e.component ?? (e.loader ? r(e.loader) : void 0),
10
10
  MenuBarComponent: e.MenuBarComponent ?? (e.menuBarLoader ? r(e.menuBarLoader) : void 0)
11
11
  };
12
12
  }
13
- function D(e) {
14
- w = {};
15
- for (let [t, n] of Object.entries(e)) w[t] = E(n);
13
+ function C(e) {
14
+ b = {};
15
+ for (let [t, n] of Object.entries(e)) b[t] = S(n);
16
16
  }
17
- function O(e) {
18
- return w ? w[e]?.component || (console.warn(`[AppRegistry] App not found: ${e}`), T) : (console.warn(`[AppRegistry] Registry not initialized, requested app: ${e}`), T);
17
+ function w(e) {
18
+ return b ? b[e]?.component || (console.warn(`[AppRegistry] App not found: ${e}`), x) : (console.warn(`[AppRegistry] Registry not initialized, requested app: ${e}`), x);
19
19
  }
20
- function k(e) {
21
- return w?.[e]?.buildMenuBar;
20
+ function T(e) {
21
+ return b?.[e]?.buildMenuBar;
22
22
  }
23
- function A(e) {
24
- return w?.[e]?.MenuBarComponent;
23
+ function E(e) {
24
+ return b?.[e]?.MenuBarComponent;
25
25
  }
26
- function j(e) {
27
- return w?.[e]?.isLazy ?? !1;
26
+ function D(e) {
27
+ return b?.[e]?.isLazy ?? !1;
28
28
  }
29
- function M(e) {
30
- return w?.[e]?.appName;
29
+ function O(e) {
30
+ return b?.[e]?.appName;
31
31
  }
32
- function N(e) {
33
- return w?.[e];
32
+ function k(e) {
33
+ return b?.[e];
34
34
  }
35
- function P(e) {
36
- w ||= {};
37
- for (let [t, n] of Object.entries(e)) w[t] = E(n);
35
+ function A(e) {
36
+ b ||= {};
37
+ for (let [t, n] of Object.entries(e)) b[t] = S(n);
38
38
  }
39
- var F = {};
40
- function I() {
39
+ var j = {};
40
+ function M() {
41
41
  let e = {
42
42
  files: {
43
43
  component: a,
@@ -93,35 +93,19 @@ function I() {
93
93
  component: p,
94
94
  appName: "Calendar",
95
95
  isLazy: !0
96
- },
97
- terminal: {
98
- component: b,
99
- MenuBarComponent: x,
100
- appName: "Terminal",
101
- isLazy: !0
102
- },
103
- "code-server": {
104
- component: S,
105
- appName: "VS Code",
106
- isLazy: !0
107
- },
108
- storybook: {
109
- component: C,
110
- appName: "Storybook",
111
- isLazy: !0
112
96
  }
113
97
  };
114
- Object.assign(F, e), P(e);
98
+ Object.assign(j, e), A(e);
115
99
  }
116
100
  //#endregion
117
101
  //#region src/constants/Animations.ts
118
- var L = .3, R = (e) => ({
102
+ var N = .3, P = (e) => ({
119
103
  duration: e,
120
104
  ease: "easeIn"
121
- }), z = (e) => ({
105
+ }), F = (e) => ({
122
106
  duration: e,
123
107
  ease: "easeOut"
124
- }), B = (e) => ({
108
+ }), I = (e) => ({
125
109
  hidden: {
126
110
  opacity: 0,
127
111
  scale: .92,
@@ -131,15 +115,15 @@ var L = .3, R = (e) => ({
131
115
  opacity: 1,
132
116
  scale: 1,
133
117
  y: 0,
134
- transition: z(e)
118
+ transition: F(e)
135
119
  },
136
120
  exit: {
137
121
  opacity: 0,
138
122
  scale: .92,
139
123
  y: 12,
140
- transition: R(e)
124
+ transition: P(e)
141
125
  }
142
- }), V = (e) => ({
126
+ }), L = (e) => ({
143
127
  initial: {
144
128
  opacity: 0,
145
129
  y: 8,
@@ -149,15 +133,15 @@ var L = .3, R = (e) => ({
149
133
  opacity: 1,
150
134
  y: 0,
151
135
  scale: 1,
152
- transition: z(e)
136
+ transition: F(e)
153
137
  },
154
138
  exit: {
155
139
  opacity: 0,
156
140
  y: 8,
157
141
  scale: .96,
158
- transition: R(e)
142
+ transition: P(e)
159
143
  }
160
- }), H = (e) => (t, n) => ({
144
+ }), R = (e) => (t, n) => ({
161
145
  opacity: 0,
162
146
  scale: .1,
163
147
  x: t,
@@ -171,7 +155,7 @@ var L = .3, R = (e) => ({
171
155
  1
172
156
  ]
173
157
  }
174
- }), U = (e) => (t, n) => ({
158
+ }), z = (e) => (t, n) => ({
175
159
  opacity: [0, 1],
176
160
  scale: [.1, 1],
177
161
  x: [t, 0],
@@ -185,16 +169,16 @@ var L = .3, R = (e) => ({
185
169
  1
186
170
  ]
187
171
  }
188
- }), W = (e) => ({
172
+ }), B = (e) => ({
189
173
  duration: e,
190
174
  ease: "easeOut"
191
- }), G = {
192
- duration: L,
175
+ }), V = {
176
+ duration: N,
193
177
  ease: "easeIn"
194
- }, K = {
195
- duration: L,
178
+ }, H = {
179
+ duration: N,
196
180
  ease: "easeOut"
197
- }, q = B(L), J = V(L), Y = H(.3), X = U(.3), Z = {
181
+ }, U = I(N), W = L(N), G = R(.3), K = z(.3), q = {
198
182
  scale: {
199
183
  hidden: {
200
184
  opacity: 0,
@@ -205,7 +189,7 @@ var L = .3, R = (e) => ({
205
189
  opacity: 1,
206
190
  scale: 1,
207
191
  y: 0,
208
- transition: K
192
+ transition: H
209
193
  }
210
194
  },
211
195
  slide: {
@@ -216,29 +200,29 @@ var L = .3, R = (e) => ({
216
200
  visible: {
217
201
  opacity: 1,
218
202
  y: 0,
219
- transition: K
203
+ transition: H
220
204
  }
221
205
  },
222
206
  fade: {
223
207
  hidden: { opacity: 0 },
224
208
  visible: {
225
209
  opacity: 1,
226
- transition: K
210
+ transition: H
227
211
  }
228
212
  }
229
- }, Q = {
213
+ }, J = {
230
214
  duration: .25,
231
215
  ease: "easeOut"
232
- }, $ = () => ({
216
+ }, Y = () => ({
233
217
  x: 150 + Math.random() * 200,
234
218
  y: 80 + Math.random() * 100
235
- }), ee = (e, t, n, r) => ({
219
+ }), X = (e, t, n, r) => ({
236
220
  x: Math.round((e - n) / 2),
237
221
  y: Math.round((t - r) / 2)
238
- }), te = () => {
222
+ }), Z = () => {
239
223
  let r = t((e) => e.openWindow), a = t((e) => e.focusWindow), o = t((e) => e.windows), s = t((e) => e.customApps), c = n();
240
224
  return i((t, { contentData: n, position: i } = {}) => {
241
- let l = e.find((e) => e.id === t), u = s.find((e) => e.id === t), d = N(t);
225
+ let l = e.find((e) => e.id === t), u = s.find((e) => e.id === t), d = k(t);
242
226
  if (l?.singleWindow === !0 || u?.window?.singleWindow === !0 || d?.singleWindow === !0) {
243
227
  let e = o.find((e) => e.content === t);
244
228
  if (e) {
@@ -246,7 +230,7 @@ var L = .3, R = (e) => ({
246
230
  return;
247
231
  }
248
232
  }
249
- let { x: f, y: p } = i ?? $();
233
+ let { x: f, y: p } = i ?? Y();
250
234
  r({
251
235
  title: l?.name ?? d?.appName ?? u?.name ?? t.charAt(0).toUpperCase() + t.slice(1),
252
236
  content: t,
@@ -276,4 +260,4 @@ var L = .3, R = (e) => ({
276
260
  ]);
277
261
  };
278
262
  //#endregion
279
- export { m as A, v as B, k as C, j as D, D as E, l as F, _ as H, g as I, o as L, a as M, s as N, P as O, y as P, h as R, M as S, I as T, u as U, d as V, $ as _, ee as a, F as b, W as c, U as d, B as f, J as g, Z as h, K as i, f as j, p as k, H as l, Y as m, L as n, R as o, Q as p, G as r, z as s, te as t, V as u, X as v, A as w, O as x, q as y, c as z };
263
+ export { m as A, v as B, T as C, D, C as E, l as F, _ as H, g as I, o as L, a as M, s as N, A as O, y as P, h as R, O as S, M as T, u as U, d as V, Y as _, X as a, j as b, B as c, z as d, I as f, W as g, q as h, H as i, f as j, p as k, R as l, G as m, N as n, P as o, J as p, V as r, F as s, Z as t, L as u, K as v, E as w, w as x, U as y, c as z };
@@ -1,5 +1,4 @@
1
- import { i as e } from "./getRuntime-DAPqFH2W.js";
2
- import { m as t, n } from "./desktopStore-F8bgLqFl.js";
1
+ import { G as e, m as t, n } from "./desktopStore-8cSZlj7s.js";
3
2
  import { useEffect as r, useMemo as i, useRef as a, useState as o } from "react";
4
3
  //#region src/hooks/useResolvedUrl.ts
5
4
  function s(s) {
@@ -0,0 +1 @@
1
+ require(`./NotesApp-BmQIBtJ2.cjs`);const e=require(`./desktopStore-C1jR6Fdb.cjs`);let t=require(`react`);function n(n){let r=(0,t.useMemo)(()=>(n?.startsWith(`idb://`)||e.G()&&n?.startsWith(`/api/fs`))??!1,[n]),i=(0,t.useMemo)(()=>n?.startsWith(`/api/fs`)??!1,[n]),[a,o]=(0,t.useState)(void 0),s=(0,t.useRef)(void 0);if((0,t.useEffect)(()=>{if(!n||!r)return;let t=!1;return e.n.toBlobUrl(n).then(e=>{if(t){e&&URL.revokeObjectURL(e);return}s.current=e??void 0,o(e??void 0)}),()=>{t=!0,s.current&&=(URL.revokeObjectURL(s.current),void 0),o(void 0)}},[n,r]),n){if(i&&r)return a;if(!r){if(n.startsWith(`/`)||n.startsWith(`http://`)||n.startsWith(`https://`))return n;let t=e.m();return`${t.endsWith(`/`)?t:`${t}/`}${n}`}return a}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fde-desktop/fde-core",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
4
4
  "type": "module",
5
5
  "description": "Core library for building FDE Desktop environments",
6
6
  "author": "Francisco Núñez Palomares (frannunpal@gmail.com)",
@@ -46,6 +46,7 @@
46
46
  "@mantine/core": "^9.0.0",
47
47
  "@mantine/dates": "^9.0.0",
48
48
  "@mantine/hooks": "^9.0.0",
49
+ "@tanstack/react-query": "^5.0.0",
49
50
  "@tiptap/core": "^3.20.1",
50
51
  "@tiptap/markdown": "^3.20.1",
51
52
  "@tiptap/pm": "^3.20.1",
@@ -1,26 +0,0 @@
1
- import { I as e } from "./Box-DSKR_qaa.js";
2
- import { jsx as t } from "react/jsx-runtime";
3
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Accordion/AccordionChevron.mjs
4
- function n({ style: n, size: r = 16, ...i }) {
5
- return /* @__PURE__ */ t("svg", {
6
- viewBox: "0 0 15 15",
7
- fill: "none",
8
- xmlns: "http://www.w3.org/2000/svg",
9
- style: {
10
- ...n,
11
- width: e(r),
12
- height: e(r),
13
- display: "block"
14
- },
15
- ...i,
16
- children: /* @__PURE__ */ t("path", {
17
- d: "M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",
18
- fill: "currentColor",
19
- fillRule: "evenodd",
20
- clipRule: "evenodd"
21
- })
22
- });
23
- }
24
- n.displayName = "@mantine/core/AccordionChevron";
25
- //#endregion
26
- export { n as t };
@@ -1 +0,0 @@
1
- const e=require(`./Box-zW6Twge8.cjs`);let t=require(`react/jsx-runtime`);function n({style:n,size:r=16,...i}){return(0,t.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...n,width:e.I(r),height:e.I(r),display:`block`},...i,children:(0,t.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}n.displayName=`@mantine/core/AccordionChevron`,Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
@@ -1,145 +0,0 @@
1
- import { A as e, D as t, I as n, M as r, O as i, c as a, l as o, n as s, r as c, t as l } from "./Box-DSKR_qaa.js";
2
- import { c as u, s as d } from "./TextInput-C-JtGWn1.js";
3
- import { t as f } from "./UnstyledButton-DGaG-e_G.js";
4
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
5
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.module.mjs
6
- var h = {
7
- root: "m_8d3f4000",
8
- icon: "m_8d3afb97",
9
- loader: "m_302b9fb1",
10
- group: "m_1a0f1b21",
11
- groupSection: "m_437b6484"
12
- }, g = { orientation: "horizontal" }, _ = t((e, { borderWidth: t }) => ({ group: { "--ai-border-width": n(t) } })), v = c((e) => {
13
- let t = o("ActionIconGroup", g, e), { className: n, style: r, classNames: i, styles: s, unstyled: c, orientation: u, vars: d, borderWidth: f, variant: m, mod: v, attributes: y, ...b } = o("ActionIconGroup", g, e);
14
- return /* @__PURE__ */ p(l, {
15
- ...a({
16
- name: "ActionIconGroup",
17
- props: t,
18
- classes: h,
19
- className: n,
20
- style: r,
21
- classNames: i,
22
- styles: s,
23
- unstyled: c,
24
- attributes: y,
25
- vars: d,
26
- varsResolver: _,
27
- rootSelector: "group"
28
- })("group"),
29
- variant: m,
30
- mod: [{ "data-orientation": u }, v],
31
- role: "group",
32
- ...b
33
- });
34
- });
35
- v.classes = h, v.varsResolver = _, v.displayName = "@mantine/core/ActionIconGroup";
36
- //#endregion
37
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.mjs
38
- var y = t((t, { radius: n, color: a, gradient: o, variant: s, autoContrast: c, size: l }) => {
39
- let u = t.variantColorResolver({
40
- color: a || t.primaryColor,
41
- theme: t,
42
- gradient: o,
43
- variant: s || "filled",
44
- autoContrast: c
45
- });
46
- return { groupSection: {
47
- "--section-height": r(l, "section-height"),
48
- "--section-padding-x": r(l, "section-padding-x"),
49
- "--section-fz": i(l),
50
- "--section-radius": n === void 0 ? void 0 : e(n),
51
- "--section-bg": a || s ? u.background : void 0,
52
- "--section-color": u.color,
53
- "--section-bd": a || s ? u.border : void 0
54
- } };
55
- }), b = c((e) => {
56
- let t = o("ActionIconGroupSection", null, e), { className: n, style: r, classNames: i, styles: s, unstyled: c, vars: u, variant: d, gradient: f, radius: m, autoContrast: g, attributes: _, ...v } = t;
57
- return /* @__PURE__ */ p(l, {
58
- ...a({
59
- name: "ActionIconGroupSection",
60
- props: t,
61
- classes: h,
62
- className: n,
63
- style: r,
64
- classNames: i,
65
- styles: s,
66
- unstyled: c,
67
- attributes: _,
68
- vars: u,
69
- varsResolver: y,
70
- rootSelector: "groupSection"
71
- })("groupSection"),
72
- variant: d,
73
- ...v
74
- });
75
- });
76
- b.classes = h, b.varsResolver = y, b.displayName = "@mantine/core/ActionIconGroupSection";
77
- //#endregion
78
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.mjs
79
- var x = t((t, { size: n, radius: i, variant: a, gradient: o, color: s, autoContrast: c }) => {
80
- let l = t.variantColorResolver({
81
- color: s || t.primaryColor,
82
- theme: t,
83
- gradient: o,
84
- variant: a || "filled",
85
- autoContrast: c
86
- });
87
- return { root: {
88
- "--ai-size": r(n, "ai-size"),
89
- "--ai-radius": i === void 0 ? void 0 : e(i),
90
- "--ai-bg": s || a ? l.background : void 0,
91
- "--ai-hover": s || a ? l.hover : void 0,
92
- "--ai-hover-color": s || a ? l.hoverColor : void 0,
93
- "--ai-color": l.color,
94
- "--ai-bd": s || a ? l.border : void 0
95
- } };
96
- }), S = s((e) => {
97
- let t = o("ActionIcon", null, e), { className: n, unstyled: r, variant: i, classNames: s, styles: c, style: g, loading: _, loaderProps: v, size: y, color: b, radius: S, __staticSelector: C, gradient: w, vars: T, children: E, disabled: D, "data-disabled": O, autoContrast: k, mod: A, attributes: j, ...M } = t, N = a({
98
- name: ["ActionIcon", C],
99
- props: t,
100
- className: n,
101
- style: g,
102
- classes: h,
103
- classNames: s,
104
- styles: c,
105
- unstyled: r,
106
- attributes: j,
107
- vars: T,
108
- varsResolver: x
109
- });
110
- return /* @__PURE__ */ m(f, {
111
- ...N("root", { active: !D && !_ && !O }),
112
- ...M,
113
- unstyled: r,
114
- variant: i,
115
- size: y,
116
- disabled: D || _,
117
- mod: [{
118
- loading: _,
119
- disabled: D || O
120
- }, A],
121
- children: [typeof _ == "boolean" && /* @__PURE__ */ p(u, {
122
- mounted: _,
123
- transition: "slide-down",
124
- duration: 150,
125
- children: (e) => /* @__PURE__ */ p(l, {
126
- component: "span",
127
- ...N("loader", { style: e }),
128
- "aria-hidden": !0,
129
- children: /* @__PURE__ */ p(d, {
130
- color: "var(--ai-color)",
131
- size: "calc(var(--ai-size) * 0.55)",
132
- ...v
133
- })
134
- })
135
- }), /* @__PURE__ */ p(l, {
136
- component: "span",
137
- mod: { loading: _ },
138
- ...N("icon"),
139
- children: E
140
- })]
141
- });
142
- });
143
- S.classes = h, S.varsResolver = x, S.displayName = "@mantine/core/ActionIcon", S.Group = v, S.GroupSection = b;
144
- //#endregion
145
- export { S as t };
@@ -1 +0,0 @@
1
- const e=require(`./Box-zW6Twge8.cjs`),t=require(`./TextInput-CrsmcOip.cjs`),n=require(`./UnstyledButton-DX2pTahr.cjs`);let r=require(`react/jsx-runtime`);var i={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},a={orientation:`horizontal`},o=e.D((t,{borderWidth:n})=>({group:{"--ai-border-width":e.I(n)}})),s=e.r(t=>{let n=e.l(`ActionIconGroup`,a,t),{className:s,style:c,classNames:l,styles:u,unstyled:d,orientation:f,vars:p,borderWidth:m,variant:h,mod:g,attributes:_,...v}=e.l(`ActionIconGroup`,a,t);return(0,r.jsx)(e.t,{...e.c({name:`ActionIconGroup`,props:n,classes:i,className:s,style:c,classNames:l,styles:u,unstyled:d,attributes:_,vars:p,varsResolver:o,rootSelector:`group`})(`group`),variant:h,mod:[{"data-orientation":f},g],role:`group`,...v})});s.classes=i,s.varsResolver=o,s.displayName=`@mantine/core/ActionIconGroup`;var c=e.D((t,{radius:n,color:r,gradient:i,variant:a,autoContrast:o,size:s})=>{let c=t.variantColorResolver({color:r||t.primaryColor,theme:t,gradient:i,variant:a||`filled`,autoContrast:o});return{groupSection:{"--section-height":e.M(s,`section-height`),"--section-padding-x":e.M(s,`section-padding-x`),"--section-fz":e.O(s),"--section-radius":n===void 0?void 0:e.A(n),"--section-bg":r||a?c.background:void 0,"--section-color":c.color,"--section-bd":r||a?c.border:void 0}}}),l=e.r(t=>{let n=e.l(`ActionIconGroupSection`,null,t),{className:a,style:o,classNames:s,styles:l,unstyled:u,vars:d,variant:f,gradient:p,radius:m,autoContrast:h,attributes:g,..._}=n;return(0,r.jsx)(e.t,{...e.c({name:`ActionIconGroupSection`,props:n,classes:i,className:a,style:o,classNames:s,styles:l,unstyled:u,attributes:g,vars:d,varsResolver:c,rootSelector:`groupSection`})(`groupSection`),variant:f,..._})});l.classes=i,l.varsResolver=c,l.displayName=`@mantine/core/ActionIconGroupSection`;var u=e.D((t,{size:n,radius:r,variant:i,gradient:a,color:o,autoContrast:s})=>{let c=t.variantColorResolver({color:o||t.primaryColor,theme:t,gradient:a,variant:i||`filled`,autoContrast:s});return{root:{"--ai-size":e.M(n,`ai-size`),"--ai-radius":r===void 0?void 0:e.A(r),"--ai-bg":o||i?c.background:void 0,"--ai-hover":o||i?c.hover:void 0,"--ai-hover-color":o||i?c.hoverColor:void 0,"--ai-color":c.color,"--ai-bd":o||i?c.border:void 0}}}),d=e.n(a=>{let o=e.l(`ActionIcon`,null,a),{className:s,unstyled:c,variant:l,classNames:d,styles:f,style:p,loading:m,loaderProps:h,size:g,color:_,radius:v,__staticSelector:y,gradient:b,vars:x,children:S,disabled:C,"data-disabled":w,autoContrast:T,mod:E,attributes:D,...O}=o,k=e.c({name:[`ActionIcon`,y],props:o,className:s,style:p,classes:i,classNames:d,styles:f,unstyled:c,attributes:D,vars:x,varsResolver:u});return(0,r.jsxs)(n.t,{...k(`root`,{active:!C&&!m&&!w}),...O,unstyled:c,variant:l,size:g,disabled:C||m,mod:[{loading:m,disabled:C||w},E],children:[typeof m==`boolean`&&(0,r.jsx)(t.c,{mounted:m,transition:`slide-down`,duration:150,children:n=>(0,r.jsx)(e.t,{component:`span`,...k(`loader`,{style:n}),"aria-hidden":!0,children:(0,r.jsx)(t.s,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...h})})}),(0,r.jsx)(e.t,{component:`span`,mod:{loading:m},...k(`icon`),children:S})]})});d.classes=i,d.varsResolver=u,d.displayName=`@mantine/core/ActionIcon`,d.Group=s,d.GroupSection=l,Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
@@ -1 +0,0 @@
1
- require(`./Box-zW6Twge8.cjs`);const e=require(`./Colors-zP2AFgU3.cjs`);let t=require(`react`),n=require(`react/jsx-runtime`),r=require(`framer-motion`);var i={root:`_root_19u7b_1`,container:`_container_19u7b_10`,item:`_item_19u7b_23`,label:`_label_19u7b_29`};function a(t=4){return[...e.t].sort(()=>Math.random()-.5).slice(0,t)}var o=a(),s={type:`spring`,damping:20,stiffness:300};function c(e){return[...e].sort(()=>Math.random()-.5)}var l=({label:e=`Work In Progress`})=>{let[a,l]=(0,t.useState)(o);return(0,t.useEffect)(()=>{let e=setTimeout(()=>l(e=>c(e)),1e3);return()=>clearTimeout(e)},[a]),(0,n.jsxs)(`div`,{className:i.root,"data-testid":`app-empty-state`,children:[(0,n.jsx)(`ul`,{className:i.container,children:a.map(e=>(0,n.jsx)(r.motion.li,{layout:!0,transition:s,className:i.item,style:{backgroundColor:e}},e))}),(0,n.jsx)(`p`,{className:i.label,children:e})]})};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return l}});
@@ -1 +0,0 @@
1
- const e=require(`./Box-zW6Twge8.cjs`),t=require(`./create-safe-context-Bboj0GWC.cjs`),n=require(`./Paper-D8-BaBx2.cjs`),r=require(`./desktopStore-CZoA9VHO.cjs`),i=require(`./useDynamicIcon-DJ_il30E.cjs`);let a=require(`react`),o=require(`react/jsx-runtime`);var[s,c]=t.t(`Card component was not found in tree`),l={root:`m_e615b15f`,section:`m_599a2148`},u=e.n(t=>{let{classNames:n,className:r,style:i,styles:a,vars:s,withBorder:l,inheritPadding:u,mod:d,...f}=e.l(`CardSection`,null,t),p=c();return(0,o.jsx)(e.t,{mod:[{"with-border":l,"inherit-padding":u},d],...p.getStyles(`section`,{className:r,style:i,styles:a,classNames:n}),...f})});u.classes=l,u.displayName=`@mantine/core/CardSection`;var d=e.D((t,{padding:n})=>({root:{"--card-padding":e.N(n)}})),f={orientation:`vertical`},p=e.n(t=>{let r=e.l(`Card`,f,t),{classNames:i,className:c,style:p,styles:m,unstyled:h,vars:g,children:_,padding:v,attributes:y,orientation:b,...x}=r,S=e.c({name:`Card`,props:r,classes:l,className:c,style:p,classNames:i,styles:m,unstyled:h,attributes:y,vars:g,varsResolver:d}),C=a.Children.toArray(_),w=C.map((e,t)=>typeof e==`object`&&e&&`type`in e&&e.type===u?(0,a.cloneElement)(e,{"data-orientation":b,"data-first-section":t===0||void 0,"data-last-section":t===C.length-1||void 0}):e);return(0,o.jsx)(s,{value:{getStyles:S},children:(0,o.jsx)(n.t,{unstyled:h,"data-orientation":b,...S(`root`),...x,children:w})})});p.classes=l,p.varsResolver=d,p.displayName=`@mantine/core/Card`,p.Section=u;var m=({fcIcon:e,fallback:t,iconUrl:n,size:a=20,color:s})=>{let c=e?.startsWith(`Fi`),l=e?.startsWith(`Vsc`),u=i.i(!c&&!l?e??``:``,{size:a}),d=i.o(c?e??``:``,{size:a,color:s}),f=i.c(l?e??``:``,{size:a});return n?(0,o.jsx)(`img`,{src:r.g(n),alt:``,width:a,height:a,style:{objectFit:`contain`}}):c&&d?d:l&&f?f:u||(t?(0,o.jsx)(`span`,{"aria-hidden":`true`,children:t}):null)};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return m}});
@@ -1,80 +0,0 @@
1
- import { D as e, N as t, c as n, l as r, n as i, t as a } from "./Box-DSKR_qaa.js";
2
- import { t as o } from "./create-safe-context-XT2cxc14.js";
3
- import { t as s } from "./Paper-BX_9odR6.js";
4
- import { g as c } from "./desktopStore-F8bgLqFl.js";
5
- import { c as l, i as u, o as d } from "./useDynamicIcon-Bf0t2foA.js";
6
- import { Children as f, cloneElement as p } from "react";
7
- import { jsx as m } from "react/jsx-runtime";
8
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Card/Card.context.mjs
9
- var [h, g] = o("Card component was not found in tree"), _ = {
10
- root: "m_e615b15f",
11
- section: "m_599a2148"
12
- }, v = i((e) => {
13
- let { classNames: t, className: n, style: i, styles: o, vars: s, withBorder: c, inheritPadding: l, mod: u, ...d } = r("CardSection", null, e), f = g();
14
- return /* @__PURE__ */ m(a, {
15
- mod: [{
16
- "with-border": c,
17
- "inherit-padding": l
18
- }, u],
19
- ...f.getStyles("section", {
20
- className: n,
21
- style: i,
22
- styles: o,
23
- classNames: t
24
- }),
25
- ...d
26
- });
27
- });
28
- v.classes = _, v.displayName = "@mantine/core/CardSection";
29
- //#endregion
30
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Card/Card.mjs
31
- var y = e((e, { padding: n }) => ({ root: { "--card-padding": t(n) } })), b = { orientation: "vertical" }, x = i((e) => {
32
- let t = r("Card", b, e), { classNames: i, className: a, style: o, styles: c, unstyled: l, vars: u, children: d, padding: g, attributes: x, orientation: S, ...C } = t, w = n({
33
- name: "Card",
34
- props: t,
35
- classes: _,
36
- className: a,
37
- style: o,
38
- classNames: i,
39
- styles: c,
40
- unstyled: l,
41
- attributes: x,
42
- vars: u,
43
- varsResolver: y
44
- }), T = f.toArray(d), E = T.map((e, t) => typeof e == "object" && e && "type" in e && e.type === v ? p(e, {
45
- "data-orientation": S,
46
- "data-first-section": t === 0 || void 0,
47
- "data-last-section": t === T.length - 1 || void 0
48
- }) : e);
49
- return /* @__PURE__ */ m(h, {
50
- value: { getStyles: w },
51
- children: /* @__PURE__ */ m(s, {
52
- unstyled: l,
53
- "data-orientation": S,
54
- ...w("root"),
55
- ...C,
56
- children: E
57
- })
58
- });
59
- });
60
- x.classes = _, x.varsResolver = y, x.displayName = "@mantine/core/Card", x.Section = v;
61
- //#endregion
62
- //#region src/components/Shared/AppIcon.tsx
63
- var S = ({ fcIcon: e, fallback: t, iconUrl: n, size: r = 20, color: i }) => {
64
- let a = e?.startsWith("Fi"), o = e?.startsWith("Vsc"), s = u(!a && !o ? e ?? "" : "", { size: r }), f = d(a ? e ?? "" : "", {
65
- size: r,
66
- color: i
67
- }), p = l(o ? e ?? "" : "", { size: r });
68
- return n ? /* @__PURE__ */ m("img", {
69
- src: c(n),
70
- alt: "",
71
- width: r,
72
- height: r,
73
- style: { objectFit: "contain" }
74
- }) : a && f ? f : o && p ? p : s || (t ? /* @__PURE__ */ m("span", {
75
- "aria-hidden": "true",
76
- children: t
77
- }) : null);
78
- };
79
- //#endregion
80
- export { x as n, S as t };