@fde-desktop/fde-core 0.4.7 → 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.
- package/dist/AccordionChevron-CJXAq5o5.js +26 -0
- package/dist/AccordionChevron-DBXp38Lm.cjs +1 -0
- package/dist/ActionIcon-C_SfdBfx.cjs +1 -0
- package/dist/ActionIcon-CtVbYlGY.js +145 -0
- package/dist/AppEmptyState-BTujnL_b.js +4962 -0
- package/dist/AppEmptyState-Dc4GaDfu.cjs +1 -0
- package/dist/AppIcon--qzR4sgf.cjs +1 -0
- package/dist/AppIcon-DCDuaU-t.js +80 -0
- package/dist/AppMenuBar-BiHbNg9V.cjs +9 -0
- package/dist/AppMenuBar-CHJy8OF0.js +2639 -0
- package/dist/Box-DRm8EabO.js +1593 -0
- package/dist/Box-D_64wv6n.cjs +1 -0
- package/dist/Button-D0FXpkur.cjs +1 -0
- package/dist/Button-k7SxX1Xl.js +178 -0
- package/dist/CalendarApp-C1HvuJoa.cjs +1 -0
- package/dist/CalendarApp-DBEQqsS_.js +1721 -0
- package/dist/Center-CyryG5zn.js +25 -0
- package/dist/Center-T4No_FAa.cjs +1 -0
- package/dist/CheckIcon-C3WjIR2i.js +25 -0
- package/dist/CheckIcon-CBMLR6Gc.cjs +1 -0
- package/dist/CodeServerApp-B3l5QPuG.cjs +1 -0
- package/dist/CodeServerApp-BpeALSaX.js +2 -0
- package/dist/CodeServerApp-CRjCngFv.cjs +1 -0
- package/dist/CodeServerApp-DY94cy1a.js +149 -0
- package/dist/ColorPicker-BL4UbKCV.cjs +1 -0
- package/dist/ColorPicker-DvRR-wlQ.js +997 -0
- package/dist/Colors-BxX4G8kX.cjs +1 -0
- package/dist/Colors-hca6raEG.js +15 -0
- package/dist/CreateItemApp-BU9wmjKM.cjs +1 -0
- package/dist/CreateItemApp-CtdH1K1g.js +400 -0
- package/dist/CreateItemApp-t9F-a6wD.cjs +1 -0
- package/dist/DeviceInfoApp-C306YvtZ.js +223 -0
- package/dist/DeviceInfoApp-Cdju_LIB.cjs +1 -0
- package/dist/DeviceInfoApp-CyB01v4D.cjs +1 -0
- package/dist/DownloadProgress-IRw1dzLX.cjs +1 -0
- package/dist/DownloadProgress-hdupSUBT.js +174 -0
- package/dist/FileIcon-BCpGMI5U.js +88 -0
- package/dist/FileIcon-BCrsxmtt.cjs +1 -0
- package/dist/FilePickerApp-DMGuvahM.js +409 -0
- package/dist/FilePickerApp-Eu0cr2Cm.cjs +1 -0
- package/dist/FilesApp-30OjnOuP.cjs +1 -0
- package/dist/FilesApp-BvlzPNuO.cjs +1 -0
- package/dist/FilesApp-VXrmtt63.js +225 -0
- package/dist/Group-BzwlMeob.js +48 -0
- package/dist/Group-DhwePB84.cjs +1 -0
- package/dist/ImageViewerApp-BOz59TGc.cjs +1 -0
- package/dist/ImageViewerApp-BeqY6voE.cjs +1 -0
- package/dist/ImageViewerApp-CWiP6zx-.js +68 -0
- package/dist/ImageViewerApp-DBAfJPSo.js +2 -0
- package/dist/ImageViewerMenuBar-BULkh_Ku.js +86 -0
- package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +2 -0
- package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +1 -0
- package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +1 -0
- package/dist/MenuEditApp-BoKtj2GH.js +2 -0
- package/dist/MenuEditApp-D21sEp86.js +2615 -0
- package/dist/MenuEditApp-k3cPfTG9.cjs +1 -0
- package/dist/MenuEditApp-sz9GlLVH.cjs +5 -0
- package/dist/MenuEditMenuBar-6QxlIDpl.cjs +1 -0
- package/dist/MenuEditMenuBar-B94z4Umw.js +59 -0
- package/dist/MenuEditMenuBar-Bv6R42lf.js +2 -0
- package/dist/MenuEditMenuBar-CBsmH_-T.cjs +1 -0
- package/dist/NotesApp-BtR55Hva.cjs +207 -0
- package/dist/NotesApp-C59exz_9.js +16154 -0
- package/dist/NotesApp-D47I5LS_.js +2 -0
- package/dist/NotesApp-lOwsi2sg.cjs +1 -0
- package/dist/NotesMenuBar-BB4NkKGf.js +61 -0
- package/dist/NotesMenuBar-BZITC74y.cjs +1 -0
- package/dist/NotesMenuBar-Bp0sPqyR.cjs +1 -0
- package/dist/NotesMenuBar-xlfODmMA.js +2 -0
- package/dist/Paper-DtUYKmYn.js +30 -0
- package/dist/Paper-DwCpwWwH.cjs +1 -0
- package/dist/PdfApp-1XbFGfoY.cjs +1 -0
- package/dist/PdfApp-BhIoJWeK.cjs +1 -0
- package/dist/PdfApp-C5Rt1Zaw.js +2 -0
- package/dist/PdfApp-C8Hwxxqh.js +38 -0
- package/dist/PdfMenuBar-BA9rKuMP.cjs +1 -0
- package/dist/PdfMenuBar-JXHqwxhZ.cjs +1 -0
- package/dist/PdfMenuBar-R0fu7oYF.js +2 -0
- package/dist/PdfMenuBar-sd-9Vk3h.js +38 -0
- package/dist/SettingsApp-BA-5B4RA.cjs +1 -0
- package/dist/SettingsApp-B_rev1xh.cjs +1 -0
- package/dist/SettingsApp-Ck4aUXs5.js +2 -0
- package/dist/SettingsApp-DUMKSA3K.js +2425 -0
- package/dist/SettingsMenuBar-BPwv8JQK.js +41 -0
- package/dist/SettingsMenuBar-D8R7hOik.js +2 -0
- package/dist/SettingsMenuBar-DDrjZLmg.cjs +1 -0
- package/dist/SettingsMenuBar-DQjUa8g1.cjs +1 -0
- package/dist/Slider-BNO-vDFn.js +1175 -0
- package/dist/Slider-Bg_EIBg6.cjs +1 -0
- package/dist/Stack-BOaJgV3N.cjs +1 -0
- package/dist/Stack-CuDEaP7e.js +34 -0
- package/dist/StorybookApp-Bkr-7mXp.cjs +1 -0
- package/dist/StorybookApp-WYninkJo.js +10 -0
- package/dist/TerminalApp-8XbsKAWa.js +10041 -0
- package/dist/TerminalApp-Bq2e7QQu.cjs +1 -0
- package/dist/TerminalApp-CVu3Axc9.js +2 -0
- package/dist/TerminalApp-b7_d0jRO.cjs +36 -0
- package/dist/TerminalMenuBar-Cb8x9laS.js +2 -0
- package/dist/TerminalMenuBar-De-FH5AE.cjs +1 -0
- package/dist/TerminalMenuBar-iKLydNda.js +112 -0
- package/dist/TerminalMenuBar-yOaWd-hn.cjs +1 -0
- package/dist/TextInput-C3qfxxWI.js +980 -0
- package/dist/TextInput-DcYns3hz.cjs +1 -0
- package/dist/Tooltip-CAOO-qdx.js +3185 -0
- package/dist/Tooltip-DDh_x-CB.cjs +1 -0
- package/dist/UnstyledButton-CI3kyRck.js +25 -0
- package/dist/UnstyledButton-Cl5RuIid.cjs +1 -0
- package/dist/UploaderApp-BZXW75A0.cjs +1 -0
- package/dist/UploaderApp-C9W_yCT-.js +487 -0
- package/dist/UploaderApp-CPpStgP5.cjs +1 -0
- package/dist/UploaderApp-DHsMQN-f.js +2 -0
- package/dist/VscIcon-CxEmqD80.cjs +1 -0
- package/dist/VscIcon-DueRJVTe.js +8 -0
- package/dist/chunk-BQCxAhux.js +23 -0
- package/dist/chunk-CiTBaPhY.cjs +1 -0
- package/dist/create-safe-context-95P-Bfg3.cjs +1 -0
- package/dist/create-safe-context-XT2cxc14.js +12 -0
- package/dist/desktopStore-B0R1-BeA.js +1905 -0
- package/dist/desktopStore-Cox-Og1z.cjs +1 -0
- package/dist/fc-DejOsQyD.cjs +1 -0
- package/dist/fc-kd8WzIER.js +20536 -0
- package/dist/fc-xJ_v2ayq.cjs +184 -0
- package/dist/fi-BahYsbim.js +9993 -0
- package/dist/fi-BkhyTcZo.cjs +1 -0
- package/dist/getRuntime-BLXyQZBB.cjs +1 -0
- package/dist/getRuntime-CCRXVzJH.js +63 -0
- package/dist/iconBase-B4UCuSvv.cjs +1 -0
- package/dist/iconBase-D7iPes7B.js +108 -0
- package/dist/imageViewerStore-CH1qW6md.cjs +1 -0
- package/dist/imageViewerStore-CJMRXaQh.js +50 -0
- package/dist/index.cjs +53 -5642
- package/dist/index.css +2 -9192
- package/dist/index.d.ts +2258 -2019
- package/dist/index.js +8983 -4780
- package/dist/is-element-BocgicRg.cjs +1 -0
- package/dist/is-element-Bu_JY8Qy.js +7 -0
- package/dist/menuEditStore-C8S_EedM.js +38 -0
- package/dist/menuEditStore-CU7IAg3L.cjs +1 -0
- package/dist/notesStore-DKRgTTFn.js +36 -0
- package/dist/notesStore-zKmChTfF.cjs +1 -0
- package/dist/react-DYmzHD0X.js +27 -0
- package/dist/react-Dldg32sN.cjs +1 -0
- package/dist/settingsAppStore-BrlImdAH.cjs +1 -0
- package/dist/settingsAppStore-KOeWRO6h.js +29 -0
- package/dist/terminalStore-LWWjCvCe.js +30 -0
- package/dist/terminalStore-fZe5t7Ty.cjs +1 -0
- package/dist/use-merged-ref-BI9n1hUK.cjs +1 -0
- package/dist/use-merged-ref-BT8_u6vW.js +25 -0
- package/dist/use-resolved-styles-api-AVDygMKo.cjs +1 -0
- package/dist/use-resolved-styles-api-pEOi2wiK.js +21 -0
- package/dist/use-uncontrolled-A4hm9ATM.js +23 -0
- package/dist/use-uncontrolled-BPrfGv0W.cjs +1 -0
- package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +1 -0
- package/dist/useAdaptiveDimensions-CunsU0mn.js +40 -0
- package/dist/useCloseInterceptor-CuKAAFnj.js +51 -0
- package/dist/useCloseInterceptor-a_6Lcuqj.cjs +1 -0
- package/dist/useDynamicIcon-GJg3vWsJ.js +22 -0
- package/dist/useDynamicIcon-SytdL1Tu.cjs +1 -0
- package/dist/useMenuBarUtils-Bp5PiztD.cjs +1 -0
- package/dist/useMenuBarUtils-ChmpZjwu.js +6 -0
- package/dist/useOpenApp-BdarhIgl.cjs +1 -0
- package/dist/useOpenApp-JHCPTBWa.js +279 -0
- package/dist/useResolvedUrl-Be5ZlCX7.cjs +1 -0
- package/dist/useResolvedUrl-DFKXq598.js +30 -0
- package/dist/useTranslation-DMRGdqZi.js +279 -0
- package/dist/useTranslation-D_O7S4RJ.cjs +1 -0
- package/dist/vsc-Ciibqbxo.cjs +1 -0
- package/dist/vsc-DGKSpOAR.js +9574 -0
- package/package.json +7 -3
- package/dist/CalendarApp-CHLUCAI7.css +0 -744
- package/dist/CalendarApp-K7ZOUZ6C.js +0 -2
- package/dist/CalendarApp-OTGEERSS.cjs +0 -8
- package/dist/CodeServerApp-5KZGO7HL.css +0 -75
- package/dist/CodeServerApp-LUZFCQBI.js +0 -3
- package/dist/CodeServerApp-P3TMJPLY.cjs +0 -9
- package/dist/CreateItemApp-ESQ42VHH.js +0 -8
- package/dist/CreateItemApp-PQB5GTFG.css +0 -107
- package/dist/CreateItemApp-RFE3REWZ.cjs +0 -14
- package/dist/DeviceInfoApp-XNIS6ZY6.js +0 -5
- package/dist/DeviceInfoApp-ZNLQNOKI.cjs +0 -11
- package/dist/DeviceInfoApp-ZSMRSITP.css +0 -7
- package/dist/FilesApp-4GEU64QN.js +0 -8
- package/dist/FilesApp-E6L5W3T2.css +0 -1817
- package/dist/FilesApp-QSLB5IWR.cjs +0 -14
- package/dist/ImageViewerApp-N2Q7E7WZ.css +0 -215
- package/dist/ImageViewerApp-NCVDKLB3.js +0 -11
- package/dist/ImageViewerApp-QB373H5Z.cjs +0 -17
- package/dist/ImageViewerMenuBar-I3TFKQPS.cjs +0 -14
- package/dist/ImageViewerMenuBar-TV5C6TM2.js +0 -5
- package/dist/ImageViewerMenuBar-XLK4LIHW.css +0 -56
- package/dist/MenuEditApp-5EFYAPFC.cjs +0 -15
- package/dist/MenuEditApp-V5XOPIHX.js +0 -9
- package/dist/MenuEditApp-YA6HSAMJ.css +0 -94
- package/dist/MenuEditMenuBar-7VHMZNRM.css +0 -56
- package/dist/MenuEditMenuBar-GF6L4PGZ.cjs +0 -15
- package/dist/MenuEditMenuBar-IUXFPZE5.js +0 -6
- package/dist/NotesApp-2YNT7Y3D.js +0 -10
- package/dist/NotesApp-IAEE7YHU.cjs +0 -16
- package/dist/NotesApp-TQ6IHDNX.css +0 -302
- package/dist/NotesMenuBar-25LKN3SE.cjs +0 -15
- package/dist/NotesMenuBar-MXLOX7OT.css +0 -56
- package/dist/NotesMenuBar-SRV3AIAL.js +0 -6
- package/dist/PdfApp-67XIX6AM.js +0 -10
- package/dist/PdfApp-BUIC5U5H.css +0 -206
- package/dist/PdfApp-GZ6RHTBR.cjs +0 -16
- package/dist/PdfMenuBar-NLZC6JHS.js +0 -4
- package/dist/PdfMenuBar-QUM72EE4.css +0 -56
- package/dist/PdfMenuBar-WBRTKMLN.cjs +0 -13
- package/dist/SettingsApp-BPLMGPNK.cjs +0 -20
- package/dist/SettingsApp-JVOSEFH3.css +0 -283
- package/dist/SettingsApp-LUDIXCYY.js +0 -14
- package/dist/SettingsMenuBar-5CBSSMVM.css +0 -56
- package/dist/SettingsMenuBar-VLT6TTCM.js +0 -6
- package/dist/SettingsMenuBar-Y5QEXDEO.cjs +0 -15
- package/dist/StorybookApp-NQ244BER.css +0 -7
- package/dist/StorybookApp-NZDV4X3Y.js +0 -1
- package/dist/StorybookApp-VF3KIMU3.cjs +0 -7
- package/dist/TerminalApp-CDGWRBFJ.cjs +0 -10
- package/dist/TerminalApp-EAATMIMX.css +0 -77
- package/dist/TerminalApp-GCKJCM55.js +0 -4
- package/dist/TerminalMenuBar-3J26O26Q.css +0 -56
- package/dist/TerminalMenuBar-7BH7MGNJ.cjs +0 -14
- package/dist/TerminalMenuBar-7JAEQUZ4.js +0 -5
- package/dist/UploaderApp-6KV3TGCT.css +0 -1817
- package/dist/UploaderApp-FJC2J4I5.js +0 -10
- package/dist/UploaderApp-HLXJYJZQ.cjs +0 -16
- package/dist/chunk-2PSTHGTD.cjs +0 -42
- package/dist/chunk-2RQX7QBP.cjs +0 -148
- package/dist/chunk-43W6UDUZ.cjs +0 -19
- package/dist/chunk-4E45FBAH.js +0 -223
- package/dist/chunk-4E4U2A25.cjs +0 -237
- package/dist/chunk-4QHX7CMN.cjs +0 -38
- package/dist/chunk-4XURSNM4.js +0 -43
- package/dist/chunk-4ZCRYHL6.js +0 -407
- package/dist/chunk-5C6IQE42.cjs +0 -35
- package/dist/chunk-5HUYQDQF.js +0 -36
- package/dist/chunk-5NOHYJNH.js +0 -84
- package/dist/chunk-5QFZW6HW.js +0 -2241
- package/dist/chunk-5YH6AKEO.js +0 -146
- package/dist/chunk-756GPSPM.js +0 -283
- package/dist/chunk-7WUYUTPN.js +0 -2293
- package/dist/chunk-7XCMBW64.js +0 -162
- package/dist/chunk-7Y7HB7FB.cjs +0 -53
- package/dist/chunk-ABIAPZ6S.cjs +0 -45
- package/dist/chunk-ACHGJKCI.cjs +0 -286
- package/dist/chunk-BQCD5RAF.cjs +0 -48
- package/dist/chunk-BQL3YXMV.js +0 -17429
- package/dist/chunk-C3XER4N3.js +0 -442
- package/dist/chunk-C6BEZNAM.cjs +0 -45
- package/dist/chunk-CILU6BWC.cjs +0 -548
- package/dist/chunk-CV5PUHAE.cjs +0 -86
- package/dist/chunk-D5MVFFID.js +0 -42
- package/dist/chunk-D7R55WWT.js +0 -1601
- package/dist/chunk-DFYDUXWP.cjs +0 -34
- package/dist/chunk-DWP2SYF7.js +0 -55
- package/dist/chunk-E55VXNLK.cjs +0 -17498
- package/dist/chunk-E5FW77FG.js +0 -77
- package/dist/chunk-EAELL43F.js +0 -42
- package/dist/chunk-EX5V2ZTU.js +0 -40
- package/dist/chunk-FD7QZCTN.cjs +0 -2329
- package/dist/chunk-FH4ILMKF.js +0 -38
- package/dist/chunk-FRHBM2U7.js +0 -33
- package/dist/chunk-FX2TPX3L.cjs +0 -45
- package/dist/chunk-GPXNLTPI.cjs +0 -451
- package/dist/chunk-GRYCUBJZ.js +0 -9
- package/dist/chunk-HPHHS7FJ.cjs +0 -49
- package/dist/chunk-HWHBSAUC.js +0 -40
- package/dist/chunk-IDHP3R4I.js +0 -31
- package/dist/chunk-IHWGT3DL.js +0 -86
- package/dist/chunk-JEBKLIMU.cjs +0 -123
- package/dist/chunk-KDZLBI6F.cjs +0 -324
- package/dist/chunk-KQHICFX3.js +0 -121
- package/dist/chunk-LMJE6V4N.cjs +0 -42
- package/dist/chunk-MCHPDWVH.js +0 -444
- package/dist/chunk-MVDGM5Y4.js +0 -68
- package/dist/chunk-N36HBL53.cjs +0 -165
- package/dist/chunk-NV5GNFA3.js +0 -541
- package/dist/chunk-NVEGEK3N.js +0 -31
- package/dist/chunk-OJIDKDKF.js +0 -68
- package/dist/chunk-PGGNSLM7.js +0 -215
- package/dist/chunk-PKPQA5NR.js +0 -15
- package/dist/chunk-PNDBLFJW.cjs +0 -50
- package/dist/chunk-Q3WA72BF.cjs +0 -70
- package/dist/chunk-RDIDAZ3S.cjs +0 -9
- package/dist/chunk-RGJPRXYY.js +0 -48
- package/dist/chunk-RPSYXORB.cjs +0 -219
- package/dist/chunk-RQ6OZRUW.cjs +0 -41
- package/dist/chunk-SBE4SZAN.cjs +0 -226
- package/dist/chunk-TAFNCDUI.js +0 -234
- package/dist/chunk-TFIDSENE.cjs +0 -88
- package/dist/chunk-TGWMOHAO.js +0 -17
- package/dist/chunk-UA6XSTW6.js +0 -48
- package/dist/chunk-UIQCTAVM.cjs +0 -59
- package/dist/chunk-UKYESVDS.cjs +0 -50
- package/dist/chunk-V4N255NL.cjs +0 -2309
- package/dist/chunk-VO6KXO2I.js +0 -32
- package/dist/chunk-WXSTSC3D.cjs +0 -83
- package/dist/chunk-XSK7BWYO.js +0 -47
- package/dist/chunk-XVAPJ4PP.cjs +0 -449
- package/dist/chunk-XVASHRCE.cjs +0 -70
- package/dist/chunk-XYSMVQQD.cjs +0 -1608
- package/dist/chunk-YAIWI4Z5.js +0 -7
- package/dist/chunk-YGYOLDKR.js +0 -280
- package/dist/chunk-YP2PLNOF.cjs +0 -34
- package/dist/chunk-YSOLW4FS.cjs +0 -11
- package/dist/chunk-YY6OUR2U.js +0 -44
- package/dist/chunk-YZWS7FDT.cjs +0 -409
- package/dist/chunk-Z5YGWL65.cjs +0 -39
- package/dist/chunk-ZHNDXNL4.js +0 -45
- package/dist/chunk-ZX3EDZ5C.cjs +0 -17
- package/dist/index.d.cts +0 -2019
package/dist/chunk-YAIWI4Z5.js
DELETED
package/dist/chunk-YGYOLDKR.js
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { useAdaptiveDimensions } from './chunk-5HUYQDQF.js';
|
|
2
|
-
import { useDesktopStore, APPS } from './chunk-5QFZW6HW.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-4GEU64QN.js'));
|
|
73
|
-
var NotesAppLazy = lazy(() => import('./NotesApp-2YNT7Y3D.js'));
|
|
74
|
-
var ImageViewerAppLazy = lazy(() => import('./ImageViewerApp-NCVDKLB3.js'));
|
|
75
|
-
var PdfAppLazy = lazy(() => import('./PdfApp-67XIX6AM.js'));
|
|
76
|
-
var MenuEditAppLazy = lazy(() => import('./MenuEditApp-V5XOPIHX.js'));
|
|
77
|
-
var UploaderAppLazy = lazy(() => import('./UploaderApp-FJC2J4I5.js'));
|
|
78
|
-
var SettingsAppLazy = lazy(() => import('./SettingsApp-LUDIXCYY.js'));
|
|
79
|
-
var DeviceInfoAppLazy = lazy(() => import('./DeviceInfoApp-XNIS6ZY6.js'));
|
|
80
|
-
var CalendarAppLazy = lazy(() => import('./CalendarApp-K7ZOUZ6C.js'));
|
|
81
|
-
var CreateItemAppLazy = lazy(() => import('./CreateItemApp-ESQ42VHH.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 };
|
package/dist/chunk-YP2PLNOF.cjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var zustand = require('zustand');
|
|
4
|
-
|
|
5
|
-
// src/stores/factories/createWindowStateStore.ts
|
|
6
|
-
function createDirtyStateStore() {
|
|
7
|
-
const DEFAULT_STATE = { isDirty: false };
|
|
8
|
-
return zustand.create((set, get) => ({
|
|
9
|
-
states: {},
|
|
10
|
-
getIsDirty: (windowId) => get().states[windowId]?.isDirty ?? false,
|
|
11
|
-
setIsDirty: (windowId, isDirty) => {
|
|
12
|
-
const currentIsDirty = get().states[windowId]?.isDirty ?? false;
|
|
13
|
-
if (currentIsDirty === isDirty) return;
|
|
14
|
-
set((s) => ({
|
|
15
|
-
states: {
|
|
16
|
-
...s.states,
|
|
17
|
-
[windowId]: { ...s.states[windowId] ?? DEFAULT_STATE, isDirty }
|
|
18
|
-
}
|
|
19
|
-
}));
|
|
20
|
-
},
|
|
21
|
-
reset: (windowId) => {
|
|
22
|
-
set((s) => ({
|
|
23
|
-
states: { ...s.states, [windowId]: DEFAULT_STATE }
|
|
24
|
-
}));
|
|
25
|
-
}
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// src/components/Apps/SettingsApp/settingsAppStore.ts
|
|
30
|
-
var useSettingsAppStore = createDirtyStateStore();
|
|
31
|
-
var useIsDirty = (windowId) => useSettingsAppStore((s) => s.states[windowId]?.isDirty ?? false);
|
|
32
|
-
|
|
33
|
-
exports.useIsDirty = useIsDirty;
|
|
34
|
-
exports.useSettingsAppStore = useSettingsAppStore;
|
package/dist/chunk-YSOLW4FS.cjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk7Y7HB7FB_cjs = require('./chunk-7Y7HB7FB.cjs');
|
|
4
|
-
|
|
5
|
-
// src/components/Shared/VscIcon.tsx
|
|
6
|
-
var VscIcon = ({ name, size = 20, color }) => {
|
|
7
|
-
return chunk7Y7HB7FB_cjs.useVscIconElement(name, { size, color }) ?? null;
|
|
8
|
-
};
|
|
9
|
-
var VscIcon_default = VscIcon;
|
|
10
|
-
|
|
11
|
-
exports.VscIcon_default = VscIcon_default;
|
package/dist/chunk-YY6OUR2U.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect, createElement } from 'react';
|
|
2
|
-
|
|
3
|
-
// src/hooks/useDynamicIcon.ts
|
|
4
|
-
var useDynamicIcon = (name, library) => {
|
|
5
|
-
const [Icon, setIcon] = useState(null);
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
if (!name || typeof window === "undefined") return;
|
|
8
|
-
let cancelled = false;
|
|
9
|
-
const loadIcon = async () => {
|
|
10
|
-
try {
|
|
11
|
-
let mod;
|
|
12
|
-
if (library === "fi") {
|
|
13
|
-
mod = await import('react-icons/fi');
|
|
14
|
-
} else if (library === "vsc") {
|
|
15
|
-
mod = await import('react-icons/vsc');
|
|
16
|
-
} else {
|
|
17
|
-
mod = await import('react-icons/fc');
|
|
18
|
-
}
|
|
19
|
-
if (!cancelled) {
|
|
20
|
-
setIcon(() => mod[name] ?? null);
|
|
21
|
-
}
|
|
22
|
-
} catch {
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
loadIcon();
|
|
26
|
-
return () => {
|
|
27
|
-
cancelled = true;
|
|
28
|
-
};
|
|
29
|
-
}, [name, library]);
|
|
30
|
-
return Icon;
|
|
31
|
-
};
|
|
32
|
-
var useDynamicIconElement = (name, library, props) => {
|
|
33
|
-
const Icon = useDynamicIcon(name, library);
|
|
34
|
-
if (!Icon) return null;
|
|
35
|
-
return createElement(Icon, props);
|
|
36
|
-
};
|
|
37
|
-
var useFiIcon = (name) => useDynamicIcon(name, "fi");
|
|
38
|
-
var useFcIcon = (name) => useDynamicIcon(name, "fc");
|
|
39
|
-
var useVscIcon = (name) => useDynamicIcon(name, "vsc");
|
|
40
|
-
var useFiIconElement = (name, props) => useDynamicIconElement(name, "fi", props);
|
|
41
|
-
var useFcIconElement = (name, props) => useDynamicIconElement(name, "fc", props);
|
|
42
|
-
var useVscIconElement = (name, props) => useDynamicIconElement(name, "vsc", props);
|
|
43
|
-
|
|
44
|
-
export { useDynamicIcon, useDynamicIconElement, useFcIcon, useFcIconElement, useFiIcon, useFiIconElement, useVscIcon, useVscIconElement };
|