@fde-desktop/fde-core 0.4.6 → 0.4.8

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 (311) hide show
  1. package/dist/AccordionChevron-CJXAq5o5.js +26 -0
  2. package/dist/AccordionChevron-DBXp38Lm.cjs +1 -0
  3. package/dist/ActionIcon-C_SfdBfx.cjs +1 -0
  4. package/dist/ActionIcon-CtVbYlGY.js +145 -0
  5. package/dist/AppEmptyState-BTujnL_b.js +4962 -0
  6. package/dist/AppEmptyState-Dc4GaDfu.cjs +1 -0
  7. package/dist/AppIcon--qzR4sgf.cjs +1 -0
  8. package/dist/AppIcon-DCDuaU-t.js +80 -0
  9. package/dist/AppMenuBar-BiHbNg9V.cjs +9 -0
  10. package/dist/AppMenuBar-CHJy8OF0.js +2639 -0
  11. package/dist/Box-DRm8EabO.js +1593 -0
  12. package/dist/Box-D_64wv6n.cjs +1 -0
  13. package/dist/Button-D0FXpkur.cjs +1 -0
  14. package/dist/Button-k7SxX1Xl.js +178 -0
  15. package/dist/CalendarApp-C1HvuJoa.cjs +1 -0
  16. package/dist/CalendarApp-DBEQqsS_.js +1721 -0
  17. package/dist/Center-CyryG5zn.js +25 -0
  18. package/dist/Center-T4No_FAa.cjs +1 -0
  19. package/dist/CheckIcon-C3WjIR2i.js +25 -0
  20. package/dist/CheckIcon-CBMLR6Gc.cjs +1 -0
  21. package/dist/CodeServerApp-B3l5QPuG.cjs +1 -0
  22. package/dist/CodeServerApp-BpeALSaX.js +2 -0
  23. package/dist/CodeServerApp-CRjCngFv.cjs +1 -0
  24. package/dist/CodeServerApp-DY94cy1a.js +149 -0
  25. package/dist/ColorPicker-BL4UbKCV.cjs +1 -0
  26. package/dist/ColorPicker-DvRR-wlQ.js +997 -0
  27. package/dist/Colors-BxX4G8kX.cjs +1 -0
  28. package/dist/Colors-hca6raEG.js +15 -0
  29. package/dist/CreateItemApp-BU9wmjKM.cjs +1 -0
  30. package/dist/CreateItemApp-CtdH1K1g.js +400 -0
  31. package/dist/CreateItemApp-t9F-a6wD.cjs +1 -0
  32. package/dist/DeviceInfoApp-C306YvtZ.js +223 -0
  33. package/dist/DeviceInfoApp-Cdju_LIB.cjs +1 -0
  34. package/dist/DeviceInfoApp-CyB01v4D.cjs +1 -0
  35. package/dist/DownloadProgress-IRw1dzLX.cjs +1 -0
  36. package/dist/DownloadProgress-hdupSUBT.js +174 -0
  37. package/dist/FileIcon-BCpGMI5U.js +88 -0
  38. package/dist/FileIcon-BCrsxmtt.cjs +1 -0
  39. package/dist/FilePickerApp-DMGuvahM.js +409 -0
  40. package/dist/FilePickerApp-Eu0cr2Cm.cjs +1 -0
  41. package/dist/FilesApp-30OjnOuP.cjs +1 -0
  42. package/dist/FilesApp-BvlzPNuO.cjs +1 -0
  43. package/dist/FilesApp-VXrmtt63.js +225 -0
  44. package/dist/Group-BzwlMeob.js +48 -0
  45. package/dist/Group-DhwePB84.cjs +1 -0
  46. package/dist/ImageViewerApp-BOz59TGc.cjs +1 -0
  47. package/dist/ImageViewerApp-BeqY6voE.cjs +1 -0
  48. package/dist/ImageViewerApp-CWiP6zx-.js +68 -0
  49. package/dist/ImageViewerApp-DBAfJPSo.js +2 -0
  50. package/dist/ImageViewerMenuBar-BULkh_Ku.js +86 -0
  51. package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +2 -0
  52. package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +1 -0
  53. package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +1 -0
  54. package/dist/MenuEditApp-BoKtj2GH.js +2 -0
  55. package/dist/MenuEditApp-D21sEp86.js +2615 -0
  56. package/dist/MenuEditApp-k3cPfTG9.cjs +1 -0
  57. package/dist/MenuEditApp-sz9GlLVH.cjs +5 -0
  58. package/dist/MenuEditMenuBar-6QxlIDpl.cjs +1 -0
  59. package/dist/MenuEditMenuBar-B94z4Umw.js +59 -0
  60. package/dist/MenuEditMenuBar-Bv6R42lf.js +2 -0
  61. package/dist/MenuEditMenuBar-CBsmH_-T.cjs +1 -0
  62. package/dist/NotesApp-BtR55Hva.cjs +207 -0
  63. package/dist/NotesApp-C59exz_9.js +16154 -0
  64. package/dist/NotesApp-D47I5LS_.js +2 -0
  65. package/dist/NotesApp-lOwsi2sg.cjs +1 -0
  66. package/dist/NotesMenuBar-BB4NkKGf.js +61 -0
  67. package/dist/NotesMenuBar-BZITC74y.cjs +1 -0
  68. package/dist/NotesMenuBar-Bp0sPqyR.cjs +1 -0
  69. package/dist/NotesMenuBar-xlfODmMA.js +2 -0
  70. package/dist/Paper-DtUYKmYn.js +30 -0
  71. package/dist/Paper-DwCpwWwH.cjs +1 -0
  72. package/dist/PdfApp-1XbFGfoY.cjs +1 -0
  73. package/dist/PdfApp-BhIoJWeK.cjs +1 -0
  74. package/dist/PdfApp-C5Rt1Zaw.js +2 -0
  75. package/dist/PdfApp-C8Hwxxqh.js +38 -0
  76. package/dist/PdfMenuBar-BA9rKuMP.cjs +1 -0
  77. package/dist/PdfMenuBar-JXHqwxhZ.cjs +1 -0
  78. package/dist/PdfMenuBar-R0fu7oYF.js +2 -0
  79. package/dist/PdfMenuBar-sd-9Vk3h.js +38 -0
  80. package/dist/SettingsApp-BA-5B4RA.cjs +1 -0
  81. package/dist/SettingsApp-B_rev1xh.cjs +1 -0
  82. package/dist/SettingsApp-Ck4aUXs5.js +2 -0
  83. package/dist/SettingsApp-DUMKSA3K.js +2425 -0
  84. package/dist/SettingsMenuBar-BPwv8JQK.js +41 -0
  85. package/dist/SettingsMenuBar-D8R7hOik.js +2 -0
  86. package/dist/SettingsMenuBar-DDrjZLmg.cjs +1 -0
  87. package/dist/SettingsMenuBar-DQjUa8g1.cjs +1 -0
  88. package/dist/Slider-BNO-vDFn.js +1175 -0
  89. package/dist/Slider-Bg_EIBg6.cjs +1 -0
  90. package/dist/Stack-BOaJgV3N.cjs +1 -0
  91. package/dist/Stack-CuDEaP7e.js +34 -0
  92. package/dist/StorybookApp-Bkr-7mXp.cjs +1 -0
  93. package/dist/StorybookApp-WYninkJo.js +10 -0
  94. package/dist/TerminalApp-8XbsKAWa.js +10041 -0
  95. package/dist/TerminalApp-Bq2e7QQu.cjs +1 -0
  96. package/dist/TerminalApp-CVu3Axc9.js +2 -0
  97. package/dist/TerminalApp-b7_d0jRO.cjs +36 -0
  98. package/dist/TerminalMenuBar-Cb8x9laS.js +2 -0
  99. package/dist/TerminalMenuBar-De-FH5AE.cjs +1 -0
  100. package/dist/TerminalMenuBar-iKLydNda.js +112 -0
  101. package/dist/TerminalMenuBar-yOaWd-hn.cjs +1 -0
  102. package/dist/TextInput-C3qfxxWI.js +980 -0
  103. package/dist/TextInput-DcYns3hz.cjs +1 -0
  104. package/dist/Tooltip-CAOO-qdx.js +3185 -0
  105. package/dist/Tooltip-DDh_x-CB.cjs +1 -0
  106. package/dist/UnstyledButton-CI3kyRck.js +25 -0
  107. package/dist/UnstyledButton-Cl5RuIid.cjs +1 -0
  108. package/dist/UploaderApp-BZXW75A0.cjs +1 -0
  109. package/dist/UploaderApp-C9W_yCT-.js +487 -0
  110. package/dist/UploaderApp-CPpStgP5.cjs +1 -0
  111. package/dist/UploaderApp-DHsMQN-f.js +2 -0
  112. package/dist/VscIcon-CxEmqD80.cjs +1 -0
  113. package/dist/VscIcon-DueRJVTe.js +8 -0
  114. package/dist/chunk-BQCxAhux.js +23 -0
  115. package/dist/chunk-CiTBaPhY.cjs +1 -0
  116. package/dist/create-safe-context-95P-Bfg3.cjs +1 -0
  117. package/dist/create-safe-context-XT2cxc14.js +12 -0
  118. package/dist/desktopStore-B0R1-BeA.js +1905 -0
  119. package/dist/desktopStore-Cox-Og1z.cjs +1 -0
  120. package/dist/fc-DejOsQyD.cjs +1 -0
  121. package/dist/fc-kd8WzIER.js +20536 -0
  122. package/dist/fc-xJ_v2ayq.cjs +184 -0
  123. package/dist/fi-BahYsbim.js +9993 -0
  124. package/dist/fi-BkhyTcZo.cjs +1 -0
  125. package/dist/getRuntime-BLXyQZBB.cjs +1 -0
  126. package/dist/getRuntime-CCRXVzJH.js +63 -0
  127. package/dist/iconBase-B4UCuSvv.cjs +1 -0
  128. package/dist/iconBase-D7iPes7B.js +108 -0
  129. package/dist/imageViewerStore-CH1qW6md.cjs +1 -0
  130. package/dist/imageViewerStore-CJMRXaQh.js +50 -0
  131. package/dist/index.cjs +53 -5642
  132. package/dist/index.css +2 -9192
  133. package/dist/index.d.ts +2258 -2019
  134. package/dist/index.js +8983 -4780
  135. package/dist/is-element-BocgicRg.cjs +1 -0
  136. package/dist/is-element-Bu_JY8Qy.js +7 -0
  137. package/dist/menuEditStore-C8S_EedM.js +38 -0
  138. package/dist/menuEditStore-CU7IAg3L.cjs +1 -0
  139. package/dist/notesStore-DKRgTTFn.js +36 -0
  140. package/dist/notesStore-zKmChTfF.cjs +1 -0
  141. package/dist/react-DYmzHD0X.js +27 -0
  142. package/dist/react-Dldg32sN.cjs +1 -0
  143. package/dist/settingsAppStore-BrlImdAH.cjs +1 -0
  144. package/dist/settingsAppStore-KOeWRO6h.js +29 -0
  145. package/dist/terminalStore-LWWjCvCe.js +30 -0
  146. package/dist/terminalStore-fZe5t7Ty.cjs +1 -0
  147. package/dist/use-merged-ref-BI9n1hUK.cjs +1 -0
  148. package/dist/use-merged-ref-BT8_u6vW.js +25 -0
  149. package/dist/use-resolved-styles-api-AVDygMKo.cjs +1 -0
  150. package/dist/use-resolved-styles-api-pEOi2wiK.js +21 -0
  151. package/dist/use-uncontrolled-A4hm9ATM.js +23 -0
  152. package/dist/use-uncontrolled-BPrfGv0W.cjs +1 -0
  153. package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +1 -0
  154. package/dist/useAdaptiveDimensions-CunsU0mn.js +40 -0
  155. package/dist/useCloseInterceptor-CuKAAFnj.js +51 -0
  156. package/dist/useCloseInterceptor-a_6Lcuqj.cjs +1 -0
  157. package/dist/useDynamicIcon-GJg3vWsJ.js +22 -0
  158. package/dist/useDynamicIcon-SytdL1Tu.cjs +1 -0
  159. package/dist/useMenuBarUtils-Bp5PiztD.cjs +1 -0
  160. package/dist/useMenuBarUtils-ChmpZjwu.js +6 -0
  161. package/dist/useOpenApp-BdarhIgl.cjs +1 -0
  162. package/dist/useOpenApp-JHCPTBWa.js +279 -0
  163. package/dist/useResolvedUrl-Be5ZlCX7.cjs +1 -0
  164. package/dist/useResolvedUrl-DFKXq598.js +30 -0
  165. package/dist/useTranslation-DMRGdqZi.js +279 -0
  166. package/dist/useTranslation-D_O7S4RJ.cjs +1 -0
  167. package/dist/vsc-Ciibqbxo.cjs +1 -0
  168. package/dist/vsc-DGKSpOAR.js +9574 -0
  169. package/package.json +7 -3
  170. package/dist/CalendarApp-CHLUCAI7.css +0 -744
  171. package/dist/CalendarApp-K7ZOUZ6C.js +0 -2
  172. package/dist/CalendarApp-OTGEERSS.cjs +0 -8
  173. package/dist/CodeServerApp-5KZGO7HL.css +0 -75
  174. package/dist/CodeServerApp-LUZFCQBI.js +0 -3
  175. package/dist/CodeServerApp-P3TMJPLY.cjs +0 -9
  176. package/dist/CreateItemApp-2EME6FYH.js +0 -8
  177. package/dist/CreateItemApp-BSEISPUS.cjs +0 -14
  178. package/dist/CreateItemApp-PQB5GTFG.css +0 -107
  179. package/dist/DeviceInfoApp-2MJFK32B.cjs +0 -11
  180. package/dist/DeviceInfoApp-KFYU3E43.js +0 -5
  181. package/dist/DeviceInfoApp-ZSMRSITP.css +0 -7
  182. package/dist/FilesApp-B7JR4PEP.cjs +0 -14
  183. package/dist/FilesApp-E6L5W3T2.css +0 -1817
  184. package/dist/FilesApp-HYTIWN3O.js +0 -8
  185. package/dist/ImageViewerApp-N2Q7E7WZ.css +0 -215
  186. package/dist/ImageViewerApp-PLHNQFZ3.js +0 -11
  187. package/dist/ImageViewerApp-UIXSGW2X.cjs +0 -17
  188. package/dist/ImageViewerMenuBar-I3TFKQPS.cjs +0 -14
  189. package/dist/ImageViewerMenuBar-TV5C6TM2.js +0 -5
  190. package/dist/ImageViewerMenuBar-XLK4LIHW.css +0 -56
  191. package/dist/MenuEditApp-4DB5UEWH.js +0 -9
  192. package/dist/MenuEditApp-B2ZMG4ZY.cjs +0 -15
  193. package/dist/MenuEditApp-YA6HSAMJ.css +0 -94
  194. package/dist/MenuEditMenuBar-7VHMZNRM.css +0 -56
  195. package/dist/MenuEditMenuBar-GF6L4PGZ.cjs +0 -15
  196. package/dist/MenuEditMenuBar-IUXFPZE5.js +0 -6
  197. package/dist/NotesApp-BZYASRVJ.cjs +0 -16
  198. package/dist/NotesApp-MW37NRSN.js +0 -10
  199. package/dist/NotesApp-TQ6IHDNX.css +0 -302
  200. package/dist/NotesMenuBar-25LKN3SE.cjs +0 -15
  201. package/dist/NotesMenuBar-MXLOX7OT.css +0 -56
  202. package/dist/NotesMenuBar-SRV3AIAL.js +0 -6
  203. package/dist/PdfApp-3ZINDODQ.cjs +0 -16
  204. package/dist/PdfApp-BUIC5U5H.css +0 -206
  205. package/dist/PdfApp-ZSYAQP7L.js +0 -10
  206. package/dist/PdfMenuBar-NLZC6JHS.js +0 -4
  207. package/dist/PdfMenuBar-QUM72EE4.css +0 -56
  208. package/dist/PdfMenuBar-WBRTKMLN.cjs +0 -13
  209. package/dist/SettingsApp-2ZNO7AVY.cjs +0 -20
  210. package/dist/SettingsApp-JVOSEFH3.css +0 -283
  211. package/dist/SettingsApp-ODZINK6T.js +0 -14
  212. package/dist/SettingsMenuBar-5CBSSMVM.css +0 -56
  213. package/dist/SettingsMenuBar-VLT6TTCM.js +0 -6
  214. package/dist/SettingsMenuBar-Y5QEXDEO.cjs +0 -15
  215. package/dist/StorybookApp-NQ244BER.css +0 -7
  216. package/dist/StorybookApp-NZDV4X3Y.js +0 -1
  217. package/dist/StorybookApp-VF3KIMU3.cjs +0 -7
  218. package/dist/TerminalApp-CDGWRBFJ.cjs +0 -10
  219. package/dist/TerminalApp-EAATMIMX.css +0 -77
  220. package/dist/TerminalApp-GCKJCM55.js +0 -4
  221. package/dist/TerminalMenuBar-3J26O26Q.css +0 -56
  222. package/dist/TerminalMenuBar-7BH7MGNJ.cjs +0 -14
  223. package/dist/TerminalMenuBar-7JAEQUZ4.js +0 -5
  224. package/dist/UploaderApp-6KV3TGCT.css +0 -1817
  225. package/dist/UploaderApp-MTRIYWV4.cjs +0 -16
  226. package/dist/UploaderApp-V3WUDCG2.js +0 -10
  227. package/dist/chunk-25GVAXBU.js +0 -215
  228. package/dist/chunk-2MYZWMDC.js +0 -444
  229. package/dist/chunk-2NGIGLVP.cjs +0 -219
  230. package/dist/chunk-2O3W6TLG.cjs +0 -49
  231. package/dist/chunk-2PSTHGTD.cjs +0 -42
  232. package/dist/chunk-2RQX7QBP.cjs +0 -148
  233. package/dist/chunk-2UW42GAP.cjs +0 -2308
  234. package/dist/chunk-43W6UDUZ.cjs +0 -19
  235. package/dist/chunk-4E45FBAH.js +0 -223
  236. package/dist/chunk-4KIMZJ3L.cjs +0 -88
  237. package/dist/chunk-4XURSNM4.js +0 -43
  238. package/dist/chunk-4ZCRYHL6.js +0 -407
  239. package/dist/chunk-57ZTJB2W.cjs +0 -2329
  240. package/dist/chunk-5C6IQE42.cjs +0 -35
  241. package/dist/chunk-5NOHYJNH.js +0 -84
  242. package/dist/chunk-5YH6AKEO.js +0 -146
  243. package/dist/chunk-7FGL7HGS.cjs +0 -83
  244. package/dist/chunk-7HQ6KUIO.cjs +0 -50
  245. package/dist/chunk-7Y7HB7FB.cjs +0 -53
  246. package/dist/chunk-ABIAPZ6S.cjs +0 -45
  247. package/dist/chunk-AU4IENXY.cjs +0 -449
  248. package/dist/chunk-BFMSPWLP.cjs +0 -165
  249. package/dist/chunk-BQCD5RAF.cjs +0 -48
  250. package/dist/chunk-BQL3YXMV.js +0 -17429
  251. package/dist/chunk-C6BEZNAM.cjs +0 -45
  252. package/dist/chunk-CV5PUHAE.cjs +0 -86
  253. package/dist/chunk-D5MVFFID.js +0 -42
  254. package/dist/chunk-D7R55WWT.js +0 -1601
  255. package/dist/chunk-DEVJOHGE.cjs +0 -38
  256. package/dist/chunk-DWP2SYF7.js +0 -55
  257. package/dist/chunk-E55VXNLK.cjs +0 -17498
  258. package/dist/chunk-EAELL43F.js +0 -42
  259. package/dist/chunk-EX5V2ZTU.js +0 -40
  260. package/dist/chunk-FH4ILMKF.js +0 -38
  261. package/dist/chunk-FNWS4ZKT.js +0 -48
  262. package/dist/chunk-FRHBM2U7.js +0 -33
  263. package/dist/chunk-FX2TPX3L.cjs +0 -45
  264. package/dist/chunk-GRYCUBJZ.js +0 -9
  265. package/dist/chunk-HIGKZ7UP.js +0 -2293
  266. package/dist/chunk-HWHBSAUC.js +0 -40
  267. package/dist/chunk-HYJJVB7G.js +0 -442
  268. package/dist/chunk-I5MJXFYW.cjs +0 -34
  269. package/dist/chunk-IDHP3R4I.js +0 -31
  270. package/dist/chunk-JEBKLIMU.cjs +0 -123
  271. package/dist/chunk-JX65IKJZ.cjs +0 -324
  272. package/dist/chunk-KGMXUBWQ.js +0 -280
  273. package/dist/chunk-KI5FXBOM.cjs +0 -286
  274. package/dist/chunk-KQHICFX3.js +0 -121
  275. package/dist/chunk-LMJE6V4N.cjs +0 -42
  276. package/dist/chunk-MVDGM5Y4.js +0 -68
  277. package/dist/chunk-NULEEBCG.js +0 -32
  278. package/dist/chunk-NVEGEK3N.js +0 -31
  279. package/dist/chunk-OJIDKDKF.js +0 -68
  280. package/dist/chunk-PDEZ7BIN.js +0 -541
  281. package/dist/chunk-PKPQA5NR.js +0 -15
  282. package/dist/chunk-PNDBLFJW.cjs +0 -50
  283. package/dist/chunk-PVBI2WRF.js +0 -77
  284. package/dist/chunk-Q3WA72BF.cjs +0 -70
  285. package/dist/chunk-QFGHYAD7.cjs +0 -237
  286. package/dist/chunk-RDIDAZ3S.cjs +0 -9
  287. package/dist/chunk-RGJPRXYY.js +0 -48
  288. package/dist/chunk-RQ6OZRUW.cjs +0 -41
  289. package/dist/chunk-SBE4SZAN.cjs +0 -226
  290. package/dist/chunk-TGWMOHAO.js +0 -17
  291. package/dist/chunk-U5JKHQBS.js +0 -234
  292. package/dist/chunk-UIQCTAVM.cjs +0 -59
  293. package/dist/chunk-VFPEMNSX.js +0 -47
  294. package/dist/chunk-VLWKVIYD.js +0 -162
  295. package/dist/chunk-W2Y22XR6.js +0 -2240
  296. package/dist/chunk-WHZGUG7Q.js +0 -36
  297. package/dist/chunk-WSA5WSHN.js +0 -283
  298. package/dist/chunk-XVASHRCE.cjs +0 -70
  299. package/dist/chunk-XYSMVQQD.cjs +0 -1608
  300. package/dist/chunk-Y2WL2M7M.js +0 -86
  301. package/dist/chunk-YAIWI4Z5.js +0 -7
  302. package/dist/chunk-YOHBUOZJ.cjs +0 -451
  303. package/dist/chunk-YP2PLNOF.cjs +0 -34
  304. package/dist/chunk-YSOLW4FS.cjs +0 -11
  305. package/dist/chunk-YSWU4OKP.cjs +0 -548
  306. package/dist/chunk-YY6OUR2U.js +0 -44
  307. package/dist/chunk-YZWS7FDT.cjs +0 -409
  308. package/dist/chunk-Z5YGWL65.cjs +0 -39
  309. package/dist/chunk-ZHNDXNL4.js +0 -45
  310. package/dist/chunk-ZX3EDZ5C.cjs +0 -17
  311. package/dist/index.d.cts +0 -2019
@@ -1,324 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkDEVJOHGE_cjs = require('./chunk-DEVJOHGE.cjs');
4
- var chunk2UW42GAP_cjs = require('./chunk-2UW42GAP.cjs');
5
- var react = require('react');
6
-
7
- // src/constants/Animations.ts
8
- var ANIMATION_DURATION = 0.3;
9
- var createEaseIn = (duration) => ({
10
- duration,
11
- ease: "easeIn"
12
- });
13
- var createEaseOut = (duration) => ({
14
- duration,
15
- ease: "easeOut"
16
- });
17
- var createWindowVariants = (duration) => ({
18
- hidden: { opacity: 0, scale: 0.92, y: 12 },
19
- visible: { opacity: 1, scale: 1, y: 0, transition: createEaseOut(duration) },
20
- exit: { opacity: 0, scale: 0.92, y: 12, transition: createEaseIn(duration) }
21
- });
22
- var createPanelVariants = (duration) => ({
23
- initial: { opacity: 0, y: 8, scale: 0.96 },
24
- animate: { opacity: 1, y: 0, scale: 1, transition: createEaseOut(duration) },
25
- exit: { opacity: 0, y: 8, scale: 0.96, transition: createEaseIn(duration) }
26
- });
27
- var createMinimizeVariant = (duration) => (deltaX, deltaY) => ({
28
- opacity: 0,
29
- scale: 0.1,
30
- x: deltaX,
31
- y: deltaY,
32
- transition: { duration, ease: [0.4, 0, 1, 1] }
33
- });
34
- var createRestoreVariant = (duration) => (deltaX, deltaY) => ({
35
- opacity: [0, 1],
36
- scale: [0.1, 1],
37
- x: [deltaX, 0],
38
- y: [deltaY, 0],
39
- transition: { duration, ease: [0, 0, 0.2, 1] }
40
- });
41
- var createMaximizeTransition = (duration) => ({
42
- duration,
43
- ease: "easeOut"
44
- });
45
- var EASE_IN = { duration: ANIMATION_DURATION, ease: "easeIn" };
46
- var EASE_OUT = { duration: ANIMATION_DURATION, ease: "easeOut" };
47
- var windowVariants = createWindowVariants(ANIMATION_DURATION);
48
- var panelVariants = createPanelVariants(ANIMATION_DURATION);
49
- var minimizeVariant = createMinimizeVariant(0.3);
50
- var restoreVariant = createRestoreVariant(0.3);
51
- var openVariants = {
52
- scale: {
53
- hidden: { opacity: 0, scale: 0.92, y: 12 },
54
- visible: { opacity: 1, scale: 1, y: 0, transition: EASE_OUT }
55
- },
56
- slide: {
57
- hidden: { opacity: 0, y: 40 },
58
- visible: { opacity: 1, y: 0, transition: EASE_OUT }
59
- },
60
- fade: {
61
- hidden: { opacity: 0 },
62
- visible: { opacity: 1, transition: EASE_OUT }
63
- }
64
- };
65
- var maximizeTransition = { duration: 0.25, ease: "easeOut" };
66
- var randomWindowPosition = () => ({
67
- x: 150 + Math.random() * 200,
68
- y: 80 + Math.random() * 100
69
- });
70
- var centerWindowPosition = (viewportWidth, viewportHeight, windowWidth, windowHeight) => ({
71
- x: Math.round((viewportWidth - windowWidth) / 2),
72
- y: Math.round((viewportHeight - windowHeight) / 2)
73
- });
74
- var FilesAppLazy = react.lazy(() => import('./FilesApp-B7JR4PEP.cjs'));
75
- var NotesAppLazy = react.lazy(() => import('./NotesApp-BZYASRVJ.cjs'));
76
- var ImageViewerAppLazy = react.lazy(() => import('./ImageViewerApp-UIXSGW2X.cjs'));
77
- var PdfAppLazy = react.lazy(() => import('./PdfApp-3ZINDODQ.cjs'));
78
- var MenuEditAppLazy = react.lazy(() => import('./MenuEditApp-B2ZMG4ZY.cjs'));
79
- var UploaderAppLazy = react.lazy(() => import('./UploaderApp-MTRIYWV4.cjs'));
80
- var SettingsAppLazy = react.lazy(() => import('./SettingsApp-2ZNO7AVY.cjs'));
81
- var DeviceInfoAppLazy = react.lazy(() => import('./DeviceInfoApp-2MJFK32B.cjs'));
82
- var CalendarAppLazy = react.lazy(() => import('./CalendarApp-OTGEERSS.cjs'));
83
- var CreateItemAppLazy = react.lazy(() => import('./CreateItemApp-BSEISPUS.cjs'));
84
- var NotesMenuBarLazy = react.lazy(
85
- () => import('./NotesMenuBar-25LKN3SE.cjs').then((m) => ({ default: m.NotesMenuBar }))
86
- );
87
- var MenuEditMenuBarLazy = react.lazy(
88
- () => import('./MenuEditMenuBar-GF6L4PGZ.cjs').then((m) => ({ default: m.MenuEditMenuBar }))
89
- );
90
- var SettingsMenuBarLazy = react.lazy(
91
- () => import('./SettingsMenuBar-Y5QEXDEO.cjs').then((m) => ({ default: m.SettingsMenuBar }))
92
- );
93
- var PdfMenuBarLazy = react.lazy(
94
- () => import('./PdfMenuBar-WBRTKMLN.cjs').then((m) => ({ default: m.PdfMenuBar }))
95
- );
96
- var ImageViewerMenuBarLazy = react.lazy(
97
- () => import('./ImageViewerMenuBar-I3TFKQPS.cjs').then((m) => ({
98
- default: m.ImageViewerMenuBar
99
- }))
100
- );
101
- var TerminalAppLazy = react.lazy(() => import('./TerminalApp-CDGWRBFJ.cjs'));
102
- var TerminalMenuBarLazy = react.lazy(
103
- () => import('./TerminalMenuBar-7BH7MGNJ.cjs').then((m) => ({ default: m.TerminalMenuBar }))
104
- );
105
- var CodeServerAppLazy = react.lazy(() => import('./CodeServerApp-P3TMJPLY.cjs'));
106
- var StorybookAppLazy = react.lazy(() => import('./StorybookApp-VF3KIMU3.cjs'));
107
-
108
- // src/components/Window/helperRegistry.ts
109
- var _registry = null;
110
- var NULL_COMPONENT = (() => null);
111
- function resolveEntry(entry) {
112
- return {
113
- ...entry,
114
- component: entry.component ?? (entry.loader ? react.lazy(entry.loader) : void 0),
115
- MenuBarComponent: entry.MenuBarComponent ?? (entry.menuBarLoader ? react.lazy(entry.menuBarLoader) : void 0)
116
- };
117
- }
118
- function initRegistry(registry) {
119
- _registry = {};
120
- for (const [key, entry] of Object.entries(registry)) {
121
- _registry[key] = resolveEntry(entry);
122
- }
123
- }
124
- function getAppComponent(content) {
125
- if (!_registry) {
126
- console.warn(`[AppRegistry] Registry not initialized, requested app: ${content}`);
127
- return NULL_COMPONENT;
128
- }
129
- const component = _registry[content]?.component;
130
- if (!component) {
131
- console.warn(`[AppRegistry] App not found: ${content}`);
132
- return NULL_COMPONENT;
133
- }
134
- return component;
135
- }
136
- function getMenuBarBuilder(content) {
137
- return _registry?.[content]?.buildMenuBar;
138
- }
139
- function getMenuBarComponent(content) {
140
- return _registry?.[content]?.MenuBarComponent;
141
- }
142
- function isLazyApp(content) {
143
- return _registry?.[content]?.isLazy ?? false;
144
- }
145
- function getAppName(content) {
146
- return _registry?.[content]?.appName;
147
- }
148
- function getRegistryEntry(content) {
149
- return _registry?.[content];
150
- }
151
- function registerComponents(entries) {
152
- if (!_registry) _registry = {};
153
- for (const [key, entry] of Object.entries(entries)) {
154
- _registry[key] = resolveEntry(entry);
155
- }
156
- }
157
- var CORE_REGISTRY = {};
158
- function initCoreRegistry() {
159
- const entries = {
160
- files: {
161
- component: FilesAppLazy,
162
- appName: "Files",
163
- isLazy: true
164
- },
165
- settings: {
166
- component: SettingsAppLazy,
167
- MenuBarComponent: SettingsMenuBarLazy,
168
- appName: "Settings",
169
- isLazy: true
170
- },
171
- pdf: {
172
- component: PdfAppLazy,
173
- MenuBarComponent: PdfMenuBarLazy,
174
- appName: "PDF",
175
- isLazy: true
176
- },
177
- "image-viewer": {
178
- component: ImageViewerAppLazy,
179
- MenuBarComponent: ImageViewerMenuBarLazy,
180
- appName: "Image Viewer",
181
- isLazy: true
182
- },
183
- uploader: {
184
- component: UploaderAppLazy,
185
- appName: "Uploader",
186
- isLazy: true
187
- },
188
- createItem: {
189
- component: CreateItemAppLazy,
190
- appName: "Create Item",
191
- isLazy: true
192
- },
193
- "device-info": {
194
- component: DeviceInfoAppLazy,
195
- appName: "Device Info",
196
- isLazy: true
197
- },
198
- menuedit: {
199
- component: MenuEditAppLazy,
200
- MenuBarComponent: MenuEditMenuBarLazy,
201
- appName: "Menu Editor",
202
- isLazy: true
203
- },
204
- notepad: {
205
- component: NotesAppLazy,
206
- MenuBarComponent: NotesMenuBarLazy,
207
- appName: "Notepad",
208
- isLazy: true
209
- },
210
- calendar: {
211
- component: CalendarAppLazy,
212
- appName: "Calendar",
213
- isLazy: true
214
- },
215
- terminal: {
216
- component: TerminalAppLazy,
217
- MenuBarComponent: TerminalMenuBarLazy,
218
- appName: "Terminal",
219
- isLazy: true
220
- },
221
- "code-server": {
222
- component: CodeServerAppLazy,
223
- appName: "VS Code",
224
- isLazy: true
225
- },
226
- storybook: {
227
- component: StorybookAppLazy,
228
- appName: "Storybook",
229
- isLazy: true
230
- }
231
- };
232
- Object.assign(CORE_REGISTRY, entries);
233
- registerComponents(entries);
234
- }
235
-
236
- // src/hooks/useOpenApp.ts
237
- var useOpenApp = () => {
238
- const openWindow = chunk2UW42GAP_cjs.useDesktopStore((state) => state.openWindow);
239
- const focusWindow = chunk2UW42GAP_cjs.useDesktopStore((state) => state.focusWindow);
240
- const windows = chunk2UW42GAP_cjs.useDesktopStore((state) => state.windows);
241
- const customApps = chunk2UW42GAP_cjs.useDesktopStore((state) => state.customApps);
242
- const adaptiveDimensions = chunkDEVJOHGE_cjs.useAdaptiveDimensions();
243
- return react.useCallback(
244
- (appId, { contentData, position } = {}) => {
245
- const app = chunk2UW42GAP_cjs.APPS.find((a) => a.id === appId);
246
- const customApp = customApps.find((a) => a.id === appId);
247
- const registryEntry = getRegistryEntry(appId);
248
- const isSingleWindow = app?.singleWindow === true || customApp?.window?.singleWindow === true || registryEntry?.singleWindow === true;
249
- if (isSingleWindow) {
250
- const existingWindow = windows.find((w) => w.content === appId);
251
- if (existingWindow) {
252
- focusWindow(existingWindow.id);
253
- return;
254
- }
255
- }
256
- const { x, y } = position ?? randomWindowPosition();
257
- openWindow({
258
- title: app?.name ?? registryEntry?.appName ?? customApp?.name ?? appId.charAt(0).toUpperCase() + appId.slice(1),
259
- content: appId,
260
- icon: app?.icon ?? registryEntry?.icon ?? customApp?.icon,
261
- fcIcon: app?.fcIcon ?? registryEntry?.fcIcon,
262
- iconUrl: app?.iconUrl ?? registryEntry?.iconUrl,
263
- iconColor: app?.iconColor ?? registryEntry?.iconColor,
264
- canMaximize: app?.canMaximize ?? registryEntry?.canMaximize ?? customApp?.window?.canMaximize,
265
- x,
266
- y,
267
- width: app?.defaultWidth ?? registryEntry?.defaultWidth ?? customApp?.window?.defaultWidth ?? adaptiveDimensions.defaultWidth,
268
- height: app?.defaultHeight ?? registryEntry?.defaultHeight ?? customApp?.window?.defaultHeight ?? adaptiveDimensions.defaultHeight,
269
- minWidth: app?.minWidth === false || registryEntry?.minWidth === false || customApp?.window?.minWidth === false ? void 0 : app?.minWidth ?? registryEntry?.minWidth ?? customApp?.window?.minWidth ?? adaptiveDimensions.minWidth,
270
- minHeight: app?.minHeight === false || registryEntry?.minHeight === false || customApp?.window?.minHeight === false ? void 0 : app?.minHeight ?? registryEntry?.minHeight ?? customApp?.window?.minHeight ?? adaptiveDimensions.minHeight,
271
- contentData: {
272
- ...contentData,
273
- ...app?.autoLoad ? { autoLoad: app.autoLoad } : {}
274
- },
275
- alwaysOnTop: app?.alwaysOnTop ?? registryEntry?.alwaysOnTop
276
- });
277
- },
278
- [openWindow, focusWindow, windows, customApps, adaptiveDimensions]
279
- );
280
- };
281
-
282
- exports.ANIMATION_DURATION = ANIMATION_DURATION;
283
- exports.CORE_REGISTRY = CORE_REGISTRY;
284
- exports.CalendarAppLazy = CalendarAppLazy;
285
- exports.CreateItemAppLazy = CreateItemAppLazy;
286
- exports.DeviceInfoAppLazy = DeviceInfoAppLazy;
287
- exports.EASE_IN = EASE_IN;
288
- exports.EASE_OUT = EASE_OUT;
289
- exports.FilesAppLazy = FilesAppLazy;
290
- exports.ImageViewerAppLazy = ImageViewerAppLazy;
291
- exports.ImageViewerMenuBarLazy = ImageViewerMenuBarLazy;
292
- exports.MenuEditAppLazy = MenuEditAppLazy;
293
- exports.MenuEditMenuBarLazy = MenuEditMenuBarLazy;
294
- exports.NotesAppLazy = NotesAppLazy;
295
- exports.NotesMenuBarLazy = NotesMenuBarLazy;
296
- exports.PdfAppLazy = PdfAppLazy;
297
- exports.PdfMenuBarLazy = PdfMenuBarLazy;
298
- exports.SettingsAppLazy = SettingsAppLazy;
299
- exports.SettingsMenuBarLazy = SettingsMenuBarLazy;
300
- exports.UploaderAppLazy = UploaderAppLazy;
301
- exports.centerWindowPosition = centerWindowPosition;
302
- exports.createEaseIn = createEaseIn;
303
- exports.createEaseOut = createEaseOut;
304
- exports.createMaximizeTransition = createMaximizeTransition;
305
- exports.createMinimizeVariant = createMinimizeVariant;
306
- exports.createPanelVariants = createPanelVariants;
307
- exports.createRestoreVariant = createRestoreVariant;
308
- exports.createWindowVariants = createWindowVariants;
309
- exports.getAppComponent = getAppComponent;
310
- exports.getAppName = getAppName;
311
- exports.getMenuBarBuilder = getMenuBarBuilder;
312
- exports.getMenuBarComponent = getMenuBarComponent;
313
- exports.initCoreRegistry = initCoreRegistry;
314
- exports.initRegistry = initRegistry;
315
- exports.isLazyApp = isLazyApp;
316
- exports.maximizeTransition = maximizeTransition;
317
- exports.minimizeVariant = minimizeVariant;
318
- exports.openVariants = openVariants;
319
- exports.panelVariants = panelVariants;
320
- exports.randomWindowPosition = randomWindowPosition;
321
- exports.registerComponents = registerComponents;
322
- exports.restoreVariant = restoreVariant;
323
- exports.useOpenApp = useOpenApp;
324
- exports.windowVariants = windowVariants;
@@ -1,280 +0,0 @@
1
- import { useAdaptiveDimensions } from './chunk-WHZGUG7Q.js';
2
- import { useDesktopStore, APPS } from './chunk-W2Y22XR6.js';
3
- import { lazy, useCallback } from 'react';
4
-
5
- // src/constants/Animations.ts
6
- var ANIMATION_DURATION = 0.3;
7
- var createEaseIn = (duration) => ({
8
- duration,
9
- ease: "easeIn"
10
- });
11
- var createEaseOut = (duration) => ({
12
- duration,
13
- ease: "easeOut"
14
- });
15
- var createWindowVariants = (duration) => ({
16
- hidden: { opacity: 0, scale: 0.92, y: 12 },
17
- visible: { opacity: 1, scale: 1, y: 0, transition: createEaseOut(duration) },
18
- exit: { opacity: 0, scale: 0.92, y: 12, transition: createEaseIn(duration) }
19
- });
20
- var createPanelVariants = (duration) => ({
21
- initial: { opacity: 0, y: 8, scale: 0.96 },
22
- animate: { opacity: 1, y: 0, scale: 1, transition: createEaseOut(duration) },
23
- exit: { opacity: 0, y: 8, scale: 0.96, transition: createEaseIn(duration) }
24
- });
25
- var createMinimizeVariant = (duration) => (deltaX, deltaY) => ({
26
- opacity: 0,
27
- scale: 0.1,
28
- x: deltaX,
29
- y: deltaY,
30
- transition: { duration, ease: [0.4, 0, 1, 1] }
31
- });
32
- var createRestoreVariant = (duration) => (deltaX, deltaY) => ({
33
- opacity: [0, 1],
34
- scale: [0.1, 1],
35
- x: [deltaX, 0],
36
- y: [deltaY, 0],
37
- transition: { duration, ease: [0, 0, 0.2, 1] }
38
- });
39
- var createMaximizeTransition = (duration) => ({
40
- duration,
41
- ease: "easeOut"
42
- });
43
- var EASE_IN = { duration: ANIMATION_DURATION, ease: "easeIn" };
44
- var EASE_OUT = { duration: ANIMATION_DURATION, ease: "easeOut" };
45
- var windowVariants = createWindowVariants(ANIMATION_DURATION);
46
- var panelVariants = createPanelVariants(ANIMATION_DURATION);
47
- var minimizeVariant = createMinimizeVariant(0.3);
48
- var restoreVariant = createRestoreVariant(0.3);
49
- var openVariants = {
50
- scale: {
51
- hidden: { opacity: 0, scale: 0.92, y: 12 },
52
- visible: { opacity: 1, scale: 1, y: 0, transition: EASE_OUT }
53
- },
54
- slide: {
55
- hidden: { opacity: 0, y: 40 },
56
- visible: { opacity: 1, y: 0, transition: EASE_OUT }
57
- },
58
- fade: {
59
- hidden: { opacity: 0 },
60
- visible: { opacity: 1, transition: EASE_OUT }
61
- }
62
- };
63
- var maximizeTransition = { duration: 0.25, ease: "easeOut" };
64
- var randomWindowPosition = () => ({
65
- x: 150 + Math.random() * 200,
66
- y: 80 + Math.random() * 100
67
- });
68
- var centerWindowPosition = (viewportWidth, viewportHeight, windowWidth, windowHeight) => ({
69
- x: Math.round((viewportWidth - windowWidth) / 2),
70
- y: Math.round((viewportHeight - windowHeight) / 2)
71
- });
72
- var FilesAppLazy = lazy(() => import('./FilesApp-HYTIWN3O.js'));
73
- var NotesAppLazy = lazy(() => import('./NotesApp-MW37NRSN.js'));
74
- var ImageViewerAppLazy = lazy(() => import('./ImageViewerApp-PLHNQFZ3.js'));
75
- var PdfAppLazy = lazy(() => import('./PdfApp-ZSYAQP7L.js'));
76
- var MenuEditAppLazy = lazy(() => import('./MenuEditApp-4DB5UEWH.js'));
77
- var UploaderAppLazy = lazy(() => import('./UploaderApp-V3WUDCG2.js'));
78
- var SettingsAppLazy = lazy(() => import('./SettingsApp-ODZINK6T.js'));
79
- var DeviceInfoAppLazy = lazy(() => import('./DeviceInfoApp-KFYU3E43.js'));
80
- var CalendarAppLazy = lazy(() => import('./CalendarApp-K7ZOUZ6C.js'));
81
- var CreateItemAppLazy = lazy(() => import('./CreateItemApp-2EME6FYH.js'));
82
- var NotesMenuBarLazy = lazy(
83
- () => import('./NotesMenuBar-SRV3AIAL.js').then((m) => ({ default: m.NotesMenuBar }))
84
- );
85
- var MenuEditMenuBarLazy = lazy(
86
- () => import('./MenuEditMenuBar-IUXFPZE5.js').then((m) => ({ default: m.MenuEditMenuBar }))
87
- );
88
- var SettingsMenuBarLazy = lazy(
89
- () => import('./SettingsMenuBar-VLT6TTCM.js').then((m) => ({ default: m.SettingsMenuBar }))
90
- );
91
- var PdfMenuBarLazy = lazy(
92
- () => import('./PdfMenuBar-NLZC6JHS.js').then((m) => ({ default: m.PdfMenuBar }))
93
- );
94
- var ImageViewerMenuBarLazy = lazy(
95
- () => import('./ImageViewerMenuBar-TV5C6TM2.js').then((m) => ({
96
- default: m.ImageViewerMenuBar
97
- }))
98
- );
99
- var TerminalAppLazy = lazy(() => import('./TerminalApp-GCKJCM55.js'));
100
- var TerminalMenuBarLazy = lazy(
101
- () => import('./TerminalMenuBar-7JAEQUZ4.js').then((m) => ({ default: m.TerminalMenuBar }))
102
- );
103
- var CodeServerAppLazy = lazy(() => import('./CodeServerApp-LUZFCQBI.js'));
104
- var StorybookAppLazy = lazy(() => import('./StorybookApp-NZDV4X3Y.js'));
105
-
106
- // src/components/Window/helperRegistry.ts
107
- var _registry = null;
108
- var NULL_COMPONENT = (() => null);
109
- function resolveEntry(entry) {
110
- return {
111
- ...entry,
112
- component: entry.component ?? (entry.loader ? lazy(entry.loader) : void 0),
113
- MenuBarComponent: entry.MenuBarComponent ?? (entry.menuBarLoader ? lazy(entry.menuBarLoader) : void 0)
114
- };
115
- }
116
- function initRegistry(registry) {
117
- _registry = {};
118
- for (const [key, entry] of Object.entries(registry)) {
119
- _registry[key] = resolveEntry(entry);
120
- }
121
- }
122
- function getAppComponent(content) {
123
- if (!_registry) {
124
- console.warn(`[AppRegistry] Registry not initialized, requested app: ${content}`);
125
- return NULL_COMPONENT;
126
- }
127
- const component = _registry[content]?.component;
128
- if (!component) {
129
- console.warn(`[AppRegistry] App not found: ${content}`);
130
- return NULL_COMPONENT;
131
- }
132
- return component;
133
- }
134
- function getMenuBarBuilder(content) {
135
- return _registry?.[content]?.buildMenuBar;
136
- }
137
- function getMenuBarComponent(content) {
138
- return _registry?.[content]?.MenuBarComponent;
139
- }
140
- function isLazyApp(content) {
141
- return _registry?.[content]?.isLazy ?? false;
142
- }
143
- function getAppName(content) {
144
- return _registry?.[content]?.appName;
145
- }
146
- function getRegistryEntry(content) {
147
- return _registry?.[content];
148
- }
149
- function registerComponents(entries) {
150
- if (!_registry) _registry = {};
151
- for (const [key, entry] of Object.entries(entries)) {
152
- _registry[key] = resolveEntry(entry);
153
- }
154
- }
155
- var CORE_REGISTRY = {};
156
- function initCoreRegistry() {
157
- const entries = {
158
- files: {
159
- component: FilesAppLazy,
160
- appName: "Files",
161
- isLazy: true
162
- },
163
- settings: {
164
- component: SettingsAppLazy,
165
- MenuBarComponent: SettingsMenuBarLazy,
166
- appName: "Settings",
167
- isLazy: true
168
- },
169
- pdf: {
170
- component: PdfAppLazy,
171
- MenuBarComponent: PdfMenuBarLazy,
172
- appName: "PDF",
173
- isLazy: true
174
- },
175
- "image-viewer": {
176
- component: ImageViewerAppLazy,
177
- MenuBarComponent: ImageViewerMenuBarLazy,
178
- appName: "Image Viewer",
179
- isLazy: true
180
- },
181
- uploader: {
182
- component: UploaderAppLazy,
183
- appName: "Uploader",
184
- isLazy: true
185
- },
186
- createItem: {
187
- component: CreateItemAppLazy,
188
- appName: "Create Item",
189
- isLazy: true
190
- },
191
- "device-info": {
192
- component: DeviceInfoAppLazy,
193
- appName: "Device Info",
194
- isLazy: true
195
- },
196
- menuedit: {
197
- component: MenuEditAppLazy,
198
- MenuBarComponent: MenuEditMenuBarLazy,
199
- appName: "Menu Editor",
200
- isLazy: true
201
- },
202
- notepad: {
203
- component: NotesAppLazy,
204
- MenuBarComponent: NotesMenuBarLazy,
205
- appName: "Notepad",
206
- isLazy: true
207
- },
208
- calendar: {
209
- component: CalendarAppLazy,
210
- appName: "Calendar",
211
- isLazy: true
212
- },
213
- terminal: {
214
- component: TerminalAppLazy,
215
- MenuBarComponent: TerminalMenuBarLazy,
216
- appName: "Terminal",
217
- isLazy: true
218
- },
219
- "code-server": {
220
- component: CodeServerAppLazy,
221
- appName: "VS Code",
222
- isLazy: true
223
- },
224
- storybook: {
225
- component: StorybookAppLazy,
226
- appName: "Storybook",
227
- isLazy: true
228
- }
229
- };
230
- Object.assign(CORE_REGISTRY, entries);
231
- registerComponents(entries);
232
- }
233
-
234
- // src/hooks/useOpenApp.ts
235
- var useOpenApp = () => {
236
- const openWindow = useDesktopStore((state) => state.openWindow);
237
- const focusWindow = useDesktopStore((state) => state.focusWindow);
238
- const windows = useDesktopStore((state) => state.windows);
239
- const customApps = useDesktopStore((state) => state.customApps);
240
- const adaptiveDimensions = useAdaptiveDimensions();
241
- return useCallback(
242
- (appId, { contentData, position } = {}) => {
243
- const app = APPS.find((a) => a.id === appId);
244
- const customApp = customApps.find((a) => a.id === appId);
245
- const registryEntry = getRegistryEntry(appId);
246
- const isSingleWindow = app?.singleWindow === true || customApp?.window?.singleWindow === true || registryEntry?.singleWindow === true;
247
- if (isSingleWindow) {
248
- const existingWindow = windows.find((w) => w.content === appId);
249
- if (existingWindow) {
250
- focusWindow(existingWindow.id);
251
- return;
252
- }
253
- }
254
- const { x, y } = position ?? randomWindowPosition();
255
- openWindow({
256
- title: app?.name ?? registryEntry?.appName ?? customApp?.name ?? appId.charAt(0).toUpperCase() + appId.slice(1),
257
- content: appId,
258
- icon: app?.icon ?? registryEntry?.icon ?? customApp?.icon,
259
- fcIcon: app?.fcIcon ?? registryEntry?.fcIcon,
260
- iconUrl: app?.iconUrl ?? registryEntry?.iconUrl,
261
- iconColor: app?.iconColor ?? registryEntry?.iconColor,
262
- canMaximize: app?.canMaximize ?? registryEntry?.canMaximize ?? customApp?.window?.canMaximize,
263
- x,
264
- y,
265
- width: app?.defaultWidth ?? registryEntry?.defaultWidth ?? customApp?.window?.defaultWidth ?? adaptiveDimensions.defaultWidth,
266
- height: app?.defaultHeight ?? registryEntry?.defaultHeight ?? customApp?.window?.defaultHeight ?? adaptiveDimensions.defaultHeight,
267
- minWidth: app?.minWidth === false || registryEntry?.minWidth === false || customApp?.window?.minWidth === false ? void 0 : app?.minWidth ?? registryEntry?.minWidth ?? customApp?.window?.minWidth ?? adaptiveDimensions.minWidth,
268
- minHeight: app?.minHeight === false || registryEntry?.minHeight === false || customApp?.window?.minHeight === false ? void 0 : app?.minHeight ?? registryEntry?.minHeight ?? customApp?.window?.minHeight ?? adaptiveDimensions.minHeight,
269
- contentData: {
270
- ...contentData,
271
- ...app?.autoLoad ? { autoLoad: app.autoLoad } : {}
272
- },
273
- alwaysOnTop: app?.alwaysOnTop ?? registryEntry?.alwaysOnTop
274
- });
275
- },
276
- [openWindow, focusWindow, windows, customApps, adaptiveDimensions]
277
- );
278
- };
279
-
280
- export { ANIMATION_DURATION, CORE_REGISTRY, CalendarAppLazy, CreateItemAppLazy, DeviceInfoAppLazy, EASE_IN, EASE_OUT, FilesAppLazy, ImageViewerAppLazy, ImageViewerMenuBarLazy, MenuEditAppLazy, MenuEditMenuBarLazy, NotesAppLazy, NotesMenuBarLazy, PdfAppLazy, PdfMenuBarLazy, SettingsAppLazy, SettingsMenuBarLazy, UploaderAppLazy, centerWindowPosition, createEaseIn, createEaseOut, createMaximizeTransition, createMinimizeVariant, createPanelVariants, createRestoreVariant, createWindowVariants, getAppComponent, getAppName, getMenuBarBuilder, getMenuBarComponent, initCoreRegistry, initRegistry, isLazyApp, maximizeTransition, minimizeVariant, openVariants, panelVariants, randomWindowPosition, registerComponents, restoreVariant, useOpenApp, windowVariants };