@fde-desktop/fde-core 0.4.7 → 0.4.9
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-DxpOyInK.js +26 -0
- package/dist/AccordionChevron-kn5kSrEc.cjs +1 -0
- package/dist/ActionIcon-Drh4p6Fv.js +145 -0
- package/dist/ActionIcon-alk2zZD6.cjs +1 -0
- package/dist/AppEmptyState-BWCUbf-B.cjs +1 -0
- package/dist/AppEmptyState-Bxpit0JV.js +49 -0
- package/dist/AppIcon-BU7a3ZNH.cjs +1 -0
- package/dist/AppIcon-XumS3bIG.js +80 -0
- package/dist/AppMenuBar-B9U0n1Vv.cjs +1 -0
- package/dist/AppMenuBar-CnIEVjr8.js +2049 -0
- package/dist/Box-DSKR_qaa.js +1579 -0
- package/dist/Box-zW6Twge8.cjs +1 -0
- package/dist/Button-DMlnrqyx.cjs +1 -0
- package/dist/Button-wTOTQKxF.js +178 -0
- package/dist/CalendarApp-B_e1B1Yn.cjs +1 -0
- package/dist/CalendarApp-C-l9D6nd.cjs +1 -0
- package/dist/CalendarApp-D0ftTCTG.js +1399 -0
- package/dist/Center-CmxXB9ql.js +25 -0
- package/dist/Center-DKUE2pER.cjs +1 -0
- package/dist/CheckIcon-CZhtJD1O.cjs +1 -0
- package/dist/CheckIcon-N5qBqXQJ.js +25 -0
- package/dist/CodeServerApp-BOoGwZ7r.cjs +1 -0
- package/dist/CodeServerApp-Be3I5EGg.cjs +1 -0
- package/dist/CodeServerApp-DW18EZxa.js +150 -0
- package/dist/ColorPicker-BCNqi02x.js +997 -0
- package/dist/ColorPicker-BrDE7tMO.cjs +1 -0
- package/dist/Colors-ClnDxnyA.js +15 -0
- package/dist/Colors-zP2AFgU3.cjs +1 -0
- package/dist/CreateItemApp-B12M1E_1.cjs +1 -0
- package/dist/CreateItemApp-TAAprby3.js +400 -0
- package/dist/CreateItemApp-ePB6ujNl.cjs +1 -0
- package/dist/DeviceInfoApp-BMF18BGo.cjs +1 -0
- package/dist/DeviceInfoApp-DRy0H3aT.cjs +1 -0
- package/dist/DeviceInfoApp-lgpwkeRR.js +223 -0
- package/dist/DownloadProgress-EoyCaD5O.js +174 -0
- package/dist/DownloadProgress-VNdj22U8.cjs +1 -0
- package/dist/FileIcon-7JaSR3Gn.js +89 -0
- package/dist/FileIcon-CIXopWLv.cjs +1 -0
- package/dist/FilePickerApp-DaMgEqKh.js +409 -0
- package/dist/FilePickerApp-DjmuSFqa.cjs +1 -0
- package/dist/FilesApp-Bp7wfrBZ.cjs +1 -0
- package/dist/FilesApp-BpJJRKhi.cjs +1 -0
- package/dist/FilesApp-Cj94QG5o.js +225 -0
- package/dist/Group-CtBJSfCo.js +48 -0
- package/dist/Group-Dsrf6lEK.cjs +1 -0
- package/dist/ImageViewerApp-BaLP3gkO.js +69 -0
- package/dist/ImageViewerApp-DlHGeB3S.cjs +1 -0
- package/dist/ImageViewerApp-DoXd_Swu.cjs +1 -0
- package/dist/ImageViewerMenuBar-CabGSi9r.js +87 -0
- package/dist/ImageViewerMenuBar-SAI7UNz7.cjs +1 -0
- package/dist/ImageViewerMenuBar-_Jr29gii.cjs +1 -0
- package/dist/MenuEditApp-BJjlPTOa.cjs +1 -0
- package/dist/MenuEditApp-BTRppYnD.js +497 -0
- package/dist/MenuEditApp-JPsGT-S3.cjs +1 -0
- package/dist/MenuEditMenuBar-BydGkqMw.cjs +1 -0
- package/dist/MenuEditMenuBar-DptlwVPQ.cjs +1 -0
- package/dist/MenuEditMenuBar-x1IQrHP2.js +60 -0
- package/dist/NotesApp-BOcRGO7w.cjs +1 -0
- package/dist/NotesApp-CQe7UfBC.js +364 -0
- package/dist/NotesApp-OL07JXRE.cjs +1 -0
- package/dist/NotesMenuBar-BSI_2Y7p.cjs +1 -0
- package/dist/NotesMenuBar-Df6aW85J.cjs +1 -0
- package/dist/NotesMenuBar-VhpIe68v.js +62 -0
- package/dist/Paper-BX_9odR6.js +30 -0
- package/dist/Paper-D8-BaBx2.cjs +1 -0
- package/dist/PdfApp-CNEbty5v.cjs +1 -0
- package/dist/PdfApp-CVv3ZCaM.cjs +1 -0
- package/dist/PdfApp-DL_R9-Nc.js +39 -0
- package/dist/PdfMenuBar--E6kDyrT.cjs +1 -0
- package/dist/PdfMenuBar-DZCLSOpR.js +39 -0
- package/dist/PdfMenuBar-Dj5cJUkg.cjs +1 -0
- package/dist/SettingsApp-BlmHuAjT.js +1831 -0
- package/dist/SettingsApp-CNvIgf5B.cjs +1 -0
- package/dist/SettingsApp-DWxanNE4.cjs +1 -0
- package/dist/SettingsMenuBar-CBoOBCfx.cjs +1 -0
- package/dist/SettingsMenuBar-DQooFkZN.cjs +1 -0
- package/dist/SettingsMenuBar-YWiJHaxq.js +42 -0
- package/dist/Slider-BUiHxjKO.cjs +1 -0
- package/dist/Slider-t-NcD60t.js +1176 -0
- package/dist/Stack-Bp1Ek2Gp.js +34 -0
- package/dist/Stack-D4jAiRfc.cjs +1 -0
- package/dist/StorybookApp-CDLV_kja.cjs +1 -0
- package/dist/StorybookApp-DKwlPCmo.js +10 -0
- package/dist/TerminalApp-BCB7i1lR.cjs +1 -0
- package/dist/TerminalApp-BYc_gHLe.js +326 -0
- package/dist/TerminalApp-Dviz6aP2.cjs +1 -0
- package/dist/TerminalMenuBar-D5tPmgR_.js +113 -0
- package/dist/TerminalMenuBar-DNshPmCa.cjs +1 -0
- package/dist/TerminalMenuBar-HzMSR7XP.cjs +1 -0
- package/dist/TextInput-C-JtGWn1.js +981 -0
- package/dist/TextInput-CrsmcOip.cjs +1 -0
- package/dist/Tooltip-D5Cd9wtz.cjs +1 -0
- package/dist/Tooltip-DOeIvhrO.js +1142 -0
- package/dist/UnstyledButton-DGaG-e_G.js +25 -0
- package/dist/UnstyledButton-DX2pTahr.cjs +1 -0
- package/dist/UploaderApp-C6xA5Rrf2.cjs +1 -0
- package/dist/UploaderApp-DnHIRxB_.cjs +1 -0
- package/dist/UploaderApp-qBfpukR_.js +488 -0
- package/dist/VscIcon-CcMdrFoJ.cjs +1 -0
- package/dist/VscIcon-DBfVnArE.js +8 -0
- package/dist/create-safe-context-Bboj0GWC.cjs +1 -0
- package/dist/create-safe-context-XT2cxc14.js +12 -0
- package/dist/desktopStore-CZoA9VHO.cjs +1 -0
- package/dist/desktopStore-F8bgLqFl.js +1768 -0
- package/dist/getRuntime-BFK0-8R1.cjs +1 -0
- package/dist/getRuntime-DAPqFH2W.js +63 -0
- package/dist/imageViewerStore-BB_tssZR.cjs +1 -0
- package/dist/imageViewerStore-C5kWz0o7.js +50 -0
- package/dist/index.cjs +1 -5642
- package/dist/index.css +2 -9192
- package/dist/index.d.ts +2258 -2019
- package/dist/index.js +4826 -4798
- package/dist/is-element-Bu_JY8Qy.js +7 -0
- package/dist/is-element-CdV0xajp.cjs +1 -0
- package/dist/menuEditStore-CTeM_dns.cjs +1 -0
- package/dist/menuEditStore-Cj1zAwxQ.js +38 -0
- package/dist/notesStore-BCEl1D_v.cjs +1 -0
- package/dist/notesStore-BPyRTHEc.js +36 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/settingsAppStore-BDQ3ts1y.js +29 -0
- package/dist/settingsAppStore-CMBc13VU.cjs +1 -0
- package/dist/terminalStore-IWdf4Mm6.js +30 -0
- package/dist/terminalStore-iIuyodfK.cjs +1 -0
- package/dist/use-merged-ref-BT8_u6vW.js +25 -0
- package/dist/use-merged-ref-n9Gw9LNn.cjs +1 -0
- package/dist/use-resolved-styles-api-8OXE2oRq.cjs +1 -0
- package/dist/use-resolved-styles-api-DNUlJJZf.js +21 -0
- package/dist/use-uncontrolled-A4hm9ATM.js +23 -0
- package/dist/use-uncontrolled-DDJVQiM_.cjs +1 -0
- package/dist/useAdaptiveDimensions-AVDc_qPa.js +40 -0
- package/dist/useAdaptiveDimensions-CfITBJ_m.cjs +1 -0
- package/dist/useCloseInterceptor-BZd3VILp.js +51 -0
- package/dist/useCloseInterceptor-yntBEzNc.cjs +1 -0
- package/dist/useDynamicIcon-Bf0t2foA.js +22 -0
- package/dist/useDynamicIcon-DJ_il30E.cjs +1 -0
- package/dist/useMenuBarUtils-nJIPJGIQ.cjs +1 -0
- package/dist/useMenuBarUtils-nmu9yehT.js +6 -0
- package/dist/useOpenApp-CBIm7Gzl.js +279 -0
- package/dist/useOpenApp-DW4x79Zg.cjs +1 -0
- package/dist/useResolvedUrl-BkMPM1fM.cjs +1 -0
- package/dist/useResolvedUrl-DQpLqOoL.js +30 -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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./Box-zW6Twge8.cjs`);const e=require(`./desktopStore-CZoA9VHO.cjs`),t=require(`./useAdaptiveDimensions-CfITBJ_m.cjs`);let n=require(`react`);var r=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./FilesApp-Bp7wfrBZ.cjs`))),i=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./NotesApp-OL07JXRE.cjs`))),a=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./ImageViewerApp-DoXd_Swu.cjs`))),o=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./PdfApp-CVv3ZCaM.cjs`))),s=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./MenuEditApp-BJjlPTOa.cjs`))),c=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./UploaderApp-C6xA5Rrf2.cjs`))),l=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./SettingsApp-CNvIgf5B.cjs`))),u=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./DeviceInfoApp-BMF18BGo.cjs`))),d=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./CalendarApp-C-l9D6nd.cjs`))),f=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./CreateItemApp-ePB6ujNl.cjs`))),p=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./NotesMenuBar-BSI_2Y7p.cjs`)).then(e=>({default:e.NotesMenuBar}))),m=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./MenuEditMenuBar-BydGkqMw.cjs`)).then(e=>({default:e.MenuEditMenuBar}))),h=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./SettingsMenuBar-DQooFkZN.cjs`)).then(e=>({default:e.SettingsMenuBar}))),g=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./PdfMenuBar--E6kDyrT.cjs`)).then(e=>({default:e.PdfMenuBar}))),_=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./ImageViewerMenuBar-SAI7UNz7.cjs`)).then(e=>({default:e.ImageViewerMenuBar}))),v=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./TerminalApp-BCB7i1lR.cjs`))),y=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./TerminalMenuBar-HzMSR7XP.cjs`)).then(e=>({default:e.TerminalMenuBar}))),b=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./CodeServerApp-Be3I5EGg.cjs`))),x=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./StorybookApp-CDLV_kja.cjs`)).then(e=>e.n)),S=null,C=(()=>null);function w(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 T(e){S={};for(let[t,n]of Object.entries(e))S[t]=w(n)}function E(e){return S?S[e]?.component||(console.warn(`[AppRegistry] App not found: ${e}`),C):(console.warn(`[AppRegistry] Registry not initialized, requested app: ${e}`),C)}function D(e){return S?.[e]?.buildMenuBar}function O(e){return S?.[e]?.MenuBarComponent}function k(e){return S?.[e]?.isLazy??!1}function A(e){return S?.[e]?.appName}function j(e){return S?.[e]}function M(e){S||={};for(let[t,n]of Object.entries(e))S[t]=w(n)}var N={};function P(){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},terminal:{component:v,MenuBarComponent:y,appName:`Terminal`,isLazy:!0},"code-server":{component:b,appName:`VS Code`,isLazy:!0},storybook:{component:x,appName:`Storybook`,isLazy:!0}};Object.assign(N,e),M(e)}var F=.3,I=e=>({duration:e,ease:`easeIn`}),L=e=>({duration:e,ease:`easeOut`}),R=e=>({hidden:{opacity:0,scale:.92,y:12},visible:{opacity:1,scale:1,y:0,transition:L(e)},exit:{opacity:0,scale:.92,y:12,transition:I(e)}}),z=e=>({initial:{opacity:0,y:8,scale:.96},animate:{opacity:1,y:0,scale:1,transition:L(e)},exit:{opacity:0,y:8,scale:.96,transition:I(e)}}),B=e=>(t,n)=>({opacity:0,scale:.1,x:t,y:n,transition:{duration:e,ease:[.4,0,1,1]}}),V=e=>(t,n)=>({opacity:[0,1],scale:[.1,1],x:[t,0],y:[n,0],transition:{duration:e,ease:[0,0,.2,1]}}),H=e=>({duration:e,ease:`easeOut`}),U={duration:F,ease:`easeIn`},W={duration:F,ease:`easeOut`},G=R(F),K=z(F),q=B(.3),J=V(.3),Y={scale:{hidden:{opacity:0,scale:.92,y:12},visible:{opacity:1,scale:1,y:0,transition:W}},slide:{hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:W}},fade:{hidden:{opacity:0},visible:{opacity:1,transition:W}}},X={duration:.25,ease:`easeOut`},Z=()=>({x:150+Math.random()*200,y:80+Math.random()*100}),Q=(e,t,n,r)=>({x:Math.round((e-n)/2),y:Math.round((t-r)/2)}),$=()=>{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.C.find(e=>e.id===t),u=o.find(e=>e.id===t),d=j(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??Z();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 D}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return T}}),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 M}}),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 A}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return P}}),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 Z}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return W}}),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 B}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./Box-zW6Twge8.cjs`);const e=require(`./getRuntime-BFK0-8R1.cjs`),t=require(`./desktopStore-CZoA9VHO.cjs`);let n=require(`react`);function r(r){let i=(0,n.useMemo)(()=>(r?.startsWith(`idb://`)||e.i()&&r?.startsWith(`/api/fs`))??!1,[r]),a=(0,n.useMemo)(()=>r?.startsWith(`/api/fs`)??!1,[r]),[o,s]=(0,n.useState)(void 0),c=(0,n.useRef)(void 0);if((0,n.useEffect)(()=>{if(!r||!i)return;let e=!1;return t.n.toBlobUrl(r).then(t=>{if(e){t&&URL.revokeObjectURL(t);return}c.current=t??void 0,s(t??void 0)}),()=>{e=!0,c.current&&=(URL.revokeObjectURL(c.current),void 0),s(void 0)}},[r,i]),r){if(a&&i)return o;if(!i){if(r.startsWith(`/`)||r.startsWith(`http://`)||r.startsWith(`https://`))return r;let e=t.m();return`${e.endsWith(`/`)?e:`${e}/`}${r}`}return o}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { i as e } from "./getRuntime-DAPqFH2W.js";
|
|
2
|
+
import { m as t, n } from "./desktopStore-F8bgLqFl.js";
|
|
3
|
+
import { useEffect as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
4
|
+
//#region src/hooks/useResolvedUrl.ts
|
|
5
|
+
function s(s) {
|
|
6
|
+
let c = i(() => (s?.startsWith("idb://") || e() && s?.startsWith("/api/fs")) ?? !1, [s]), l = i(() => s?.startsWith("/api/fs") ?? !1, [s]), [u, d] = o(void 0), f = a(void 0);
|
|
7
|
+
if (r(() => {
|
|
8
|
+
if (!s || !c) return;
|
|
9
|
+
let e = !1;
|
|
10
|
+
return n.toBlobUrl(s).then((t) => {
|
|
11
|
+
if (e) {
|
|
12
|
+
t && URL.revokeObjectURL(t);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
f.current = t ?? void 0, d(t ?? void 0);
|
|
16
|
+
}), () => {
|
|
17
|
+
e = !0, f.current &&= (URL.revokeObjectURL(f.current), void 0), d(void 0);
|
|
18
|
+
};
|
|
19
|
+
}, [s, c]), s) {
|
|
20
|
+
if (l && c) return u;
|
|
21
|
+
if (!c) {
|
|
22
|
+
if (s.startsWith("/") || s.startsWith("http://") || s.startsWith("https://")) return s;
|
|
23
|
+
let e = t();
|
|
24
|
+
return `${e.endsWith("/") ? e : `${e}/`}${s}`;
|
|
25
|
+
}
|
|
26
|
+
return u;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { s as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fde-desktop/fde-core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core library for building FDE Desktop environments",
|
|
6
6
|
"author": "Francisco Núñez Palomares (frannunpal@gmail.com)",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"default": "./dist/index.js"
|
|
16
16
|
},
|
|
17
17
|
"require": {
|
|
18
|
-
"types": "./dist/index.d.
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
19
|
"default": "./dist/index.cjs"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"scripts": {
|
|
28
|
-
"build": "
|
|
28
|
+
"build": "vite build --config vite.lib.config.ts",
|
|
29
29
|
"dev": "tsup --watch",
|
|
30
30
|
"typecheck": "tsc --noEmit",
|
|
31
31
|
"test": "vitest run",
|
|
@@ -72,9 +72,13 @@
|
|
|
72
72
|
"@types/react": "^19.2.14",
|
|
73
73
|
"@types/react-dom": "^19.2.3",
|
|
74
74
|
"@types/uuid": "^11.0.0",
|
|
75
|
+
"esbuild-css-modules-plugin": "^3.1.5",
|
|
75
76
|
"jsdom": "^29.0.1",
|
|
77
|
+
"postcss": "^8.5.8",
|
|
78
|
+
"postcss-modules": "^6.0.1",
|
|
76
79
|
"tsup": "^8.5.1",
|
|
77
80
|
"typescript": "~5.9.3",
|
|
81
|
+
"vite-plugin-dts": "^4.5.4",
|
|
78
82
|
"vitest": "^3.2.4"
|
|
79
83
|
}
|
|
80
84
|
}
|