@fde-desktop/fde-core 0.4.10 → 0.4.13
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/AppEmptyState-Boej96TB.js +49 -0
- package/dist/AppEmptyState-CLc00OOG.cjs +1 -0
- package/dist/AppIcon-C8vHUVcb.cjs +1 -0
- package/dist/AppIcon-mtEoyzOb.js +22 -0
- package/dist/AppMenuBar-CAlkNHjj.cjs +1 -0
- package/dist/AppMenuBar-DmSfQRXU.js +197 -0
- package/dist/CalendarApp-DOmjWbpl.js +10 -0
- package/dist/CalendarApp-Z0bCCYsK.cjs +1 -0
- package/dist/ColorPicker-CQRRwY-y.cjs +1 -0
- package/dist/ColorPicker-WCeD3Wjf.js +35 -0
- package/dist/CreateItemApp-BkFFFdX1.cjs +1 -0
- package/dist/CreateItemApp-DR8Y4bwo.js +202 -0
- package/dist/DeviceInfoApp-BXQ9uOwF.cjs +1 -0
- package/dist/DeviceInfoApp-I63mJRWy.js +195 -0
- package/dist/DownloadProgress-CkTGTf0z.cjs +1 -0
- package/dist/DownloadProgress-DnVASsv5.js +39 -0
- package/dist/FilePickerApp-By6-vbag.cjs +1 -0
- package/dist/FilePickerApp-ClHuhm6Z.js +390 -0
- package/dist/FilesApp-BRK2OqkQ.cjs +1 -0
- package/dist/FilesApp-BuoFP_KA.js +212 -0
- package/dist/ImageViewerApp-B1niWF75.cjs +1 -0
- package/dist/{ImageViewerApp-CWiP6zx-.js → ImageViewerApp-iojtyFEf.js} +18 -17
- package/dist/{ImageViewerMenuBar-BULkh_Ku.js → ImageViewerMenuBar-BIsUokxV.js} +15 -14
- package/dist/ImageViewerMenuBar-BgzgSF3v.cjs +1 -0
- package/dist/MenuEditApp-BHptoJbz.cjs +1 -0
- package/dist/MenuEditApp-CJUbJaqh.js +492 -0
- package/dist/MenuEditMenuBar-CCOSPAUe.cjs +1 -0
- package/dist/{MenuEditMenuBar-B94z4Umw.js → MenuEditMenuBar-DnCL-kaZ.js} +13 -12
- package/dist/NotesApp-BmQIBtJ2.cjs +1 -0
- package/dist/NotesApp-DJ2dGt4-.js +364 -0
- package/dist/NotesMenuBar-BzojwMtH.cjs +1 -0
- package/dist/{NotesMenuBar-BB4NkKGf.js → NotesMenuBar-DILZTjnT.js} +10 -9
- package/dist/PdfApp-IjY_GtnW.js +39 -0
- package/dist/PdfApp-krW8UI97.cjs +1 -0
- package/dist/PdfMenuBar-Bd5MTZcZ.js +39 -0
- package/dist/PdfMenuBar-DWD0Qa3F.cjs +1 -0
- package/dist/SettingsApp-BE22l5UP.cjs +1 -0
- package/dist/SettingsApp-BTFtTFY_.js +1228 -0
- package/dist/SettingsMenuBar-CZE2evG2.cjs +1 -0
- package/dist/SettingsMenuBar-ktC0viTd.js +42 -0
- package/dist/UploaderApp-Bboc4KZ1.js +263 -0
- package/dist/UploaderApp-Dr1mF7oj.cjs +1 -0
- package/dist/{VscIcon-DueRJVTe.js → VscIcon-AEENjKOE.js} +1 -1
- package/dist/VscIcon-BYb_Soyy.cjs +1 -0
- package/dist/buildBreadcrumbs-Ccd8i11b.cjs +1 -0
- package/dist/buildBreadcrumbs-noWhu8os.js +45 -0
- package/dist/{desktopStore-B0R1-BeA.js → desktopStore-8cSZlj7s.js} +342 -549
- package/dist/desktopStore-C1jR6Fdb.cjs +1 -0
- package/dist/{imageViewerStore-CJMRXaQh.js → imageViewerStore-COrD02Zu.js} +1 -1
- package/dist/imageViewerStore-Dfylg59V.cjs +1 -0
- package/dist/index.cjs +1 -53
- package/dist/index.css +1 -1
- package/dist/index.d.ts +16 -6
- package/dist/index.js +3033 -7513
- package/dist/menuEditStore-CYwtfD6H.cjs +1 -0
- package/dist/{menuEditStore-C8S_EedM.js → menuEditStore-CxsgLiQu.js} +1 -1
- package/dist/notesStore-CrWTO6oB.cjs +1 -0
- package/dist/{notesStore-DKRgTTFn.js → notesStore-Dgah46U5.js} +1 -1
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/{settingsAppStore-KOeWRO6h.js → settingsAppStore-DHZhi6Rl.js} +1 -1
- package/dist/settingsAppStore-DuYZNeFf.cjs +1 -0
- package/dist/useAdaptiveDimensions-3Lz4X0Tc.cjs +1 -0
- package/dist/{useAdaptiveDimensions-CunsU0mn.js → useAdaptiveDimensions-DxNLJ7R5.js} +1 -1
- package/dist/{useCloseInterceptor-CuKAAFnj.js → useCloseInterceptor-CIxhOZx1.js} +12 -12
- package/dist/useCloseInterceptor-CdX-09Ib.cjs +1 -0
- package/dist/useDynamicIcon-CK6SjEv5.cjs +1 -0
- package/dist/{useDynamicIcon-GJg3vWsJ.js → useDynamicIcon-_wGeWu-b.js} +1 -1
- package/dist/useOpenApp-ChDhsL9h.cjs +1 -0
- package/dist/{useOpenApp-BVpSfNrG.js → useOpenApp-uguTLkyl.js} +51 -67
- package/dist/{useResolvedUrl-DFKXq598.js → useResolvedUrl-B6x4xy0x.js} +1 -2
- package/dist/useResolvedUrl-Bb39DpVy.cjs +1 -0
- package/package.json +3 -4
- package/dist/AccordionChevron-CJXAq5o5.js +0 -26
- package/dist/AccordionChevron-DBXp38Lm.cjs +0 -1
- package/dist/ActionIcon-C_SfdBfx.cjs +0 -1
- package/dist/ActionIcon-CtVbYlGY.js +0 -145
- package/dist/AppEmptyState-BTujnL_b.js +0 -4962
- package/dist/AppEmptyState-Dc4GaDfu.cjs +0 -1
- package/dist/AppIcon--qzR4sgf.cjs +0 -1
- package/dist/AppIcon-DCDuaU-t.js +0 -80
- package/dist/AppMenuBar-BiHbNg9V.cjs +0 -9
- package/dist/AppMenuBar-CHJy8OF0.js +0 -2639
- package/dist/Box-DRm8EabO.js +0 -1593
- package/dist/Box-D_64wv6n.cjs +0 -1
- package/dist/Button-D0FXpkur.cjs +0 -1
- package/dist/Button-k7SxX1Xl.js +0 -178
- package/dist/CalendarApp-C1HvuJoa.cjs +0 -1
- package/dist/CalendarApp-DBEQqsS_.js +0 -1721
- package/dist/Center-CyryG5zn.js +0 -25
- package/dist/Center-T4No_FAa.cjs +0 -1
- package/dist/CheckIcon-C3WjIR2i.js +0 -25
- package/dist/CheckIcon-CBMLR6Gc.cjs +0 -1
- package/dist/CodeServerApp-B3l5QPuG.cjs +0 -1
- package/dist/CodeServerApp-BpeALSaX.js +0 -2
- package/dist/CodeServerApp-CRjCngFv.cjs +0 -1
- package/dist/CodeServerApp-DY94cy1a.js +0 -149
- package/dist/ColorPicker-BL4UbKCV.cjs +0 -1
- package/dist/ColorPicker-DvRR-wlQ.js +0 -997
- package/dist/CreateItemApp-BU9wmjKM.cjs +0 -1
- package/dist/CreateItemApp-CtdH1K1g.js +0 -400
- package/dist/CreateItemApp-t9F-a6wD.cjs +0 -1
- package/dist/DeviceInfoApp-C306YvtZ.js +0 -223
- package/dist/DeviceInfoApp-Cdju_LIB.cjs +0 -1
- package/dist/DeviceInfoApp-CyB01v4D.cjs +0 -1
- package/dist/DownloadProgress-IRw1dzLX.cjs +0 -1
- package/dist/DownloadProgress-hdupSUBT.js +0 -174
- package/dist/FileIcon-BCpGMI5U.js +0 -88
- package/dist/FileIcon-BCrsxmtt.cjs +0 -1
- package/dist/FilePickerApp-DMGuvahM.js +0 -409
- package/dist/FilePickerApp-Eu0cr2Cm.cjs +0 -1
- package/dist/FilesApp-BQFVHkEn.js +0 -225
- package/dist/FilesApp-BZ_dzZnF.cjs +0 -1
- package/dist/FilesApp-SIWXFPXt.cjs +0 -1
- package/dist/Group-BzwlMeob.js +0 -48
- package/dist/Group-DhwePB84.cjs +0 -1
- package/dist/ImageViewerApp-BOz59TGc.cjs +0 -1
- package/dist/ImageViewerApp-BeqY6voE.cjs +0 -1
- package/dist/ImageViewerApp-DBAfJPSo.js +0 -2
- package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +0 -2
- package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +0 -1
- package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +0 -1
- package/dist/MenuEditApp-BoKtj2GH.js +0 -2
- package/dist/MenuEditApp-D21sEp86.js +0 -2615
- package/dist/MenuEditApp-k3cPfTG9.cjs +0 -1
- package/dist/MenuEditApp-sz9GlLVH.cjs +0 -5
- package/dist/MenuEditMenuBar-6QxlIDpl.cjs +0 -1
- package/dist/MenuEditMenuBar-Bv6R42lf.js +0 -2
- package/dist/MenuEditMenuBar-CBsmH_-T.cjs +0 -1
- package/dist/NotesApp-BtR55Hva.cjs +0 -207
- package/dist/NotesApp-C59exz_9.js +0 -16154
- package/dist/NotesApp-D47I5LS_.js +0 -2
- package/dist/NotesApp-lOwsi2sg.cjs +0 -1
- package/dist/NotesMenuBar-BZITC74y.cjs +0 -1
- package/dist/NotesMenuBar-Bp0sPqyR.cjs +0 -1
- package/dist/NotesMenuBar-xlfODmMA.js +0 -2
- package/dist/Paper-DtUYKmYn.js +0 -30
- package/dist/Paper-DwCpwWwH.cjs +0 -1
- package/dist/PdfApp-1XbFGfoY.cjs +0 -1
- package/dist/PdfApp-BhIoJWeK.cjs +0 -1
- package/dist/PdfApp-C5Rt1Zaw.js +0 -2
- package/dist/PdfApp-C8Hwxxqh.js +0 -38
- package/dist/PdfMenuBar-BA9rKuMP.cjs +0 -1
- package/dist/PdfMenuBar-JXHqwxhZ.cjs +0 -1
- package/dist/PdfMenuBar-R0fu7oYF.js +0 -2
- package/dist/PdfMenuBar-sd-9Vk3h.js +0 -38
- package/dist/SettingsApp-7EhpjzUE.cjs +0 -1
- package/dist/SettingsApp-ByiPAj1I.cjs +0 -1
- package/dist/SettingsApp-d6fmBHxR.js +0 -1829
- package/dist/SettingsApp-qKJmC0lj.js +0 -2
- package/dist/SettingsMenuBar-BPwv8JQK.js +0 -41
- package/dist/SettingsMenuBar-D8R7hOik.js +0 -2
- package/dist/SettingsMenuBar-DDrjZLmg.cjs +0 -1
- package/dist/SettingsMenuBar-DQjUa8g1.cjs +0 -1
- package/dist/Slider-BNO-vDFn.js +0 -1175
- package/dist/Slider-Bg_EIBg6.cjs +0 -1
- package/dist/Stack-BOaJgV3N.cjs +0 -1
- package/dist/Stack-CuDEaP7e.js +0 -34
- package/dist/StorybookApp-Bkr-7mXp.cjs +0 -1
- package/dist/StorybookApp-WYninkJo.js +0 -10
- package/dist/TerminalApp-8XbsKAWa.js +0 -10041
- package/dist/TerminalApp-Bq2e7QQu.cjs +0 -1
- package/dist/TerminalApp-CVu3Axc9.js +0 -2
- package/dist/TerminalApp-b7_d0jRO.cjs +0 -36
- package/dist/TerminalMenuBar-Cb8x9laS.js +0 -2
- package/dist/TerminalMenuBar-De-FH5AE.cjs +0 -1
- package/dist/TerminalMenuBar-iKLydNda.js +0 -112
- package/dist/TerminalMenuBar-yOaWd-hn.cjs +0 -1
- package/dist/TextInput-C3qfxxWI.js +0 -980
- package/dist/TextInput-DcYns3hz.cjs +0 -1
- package/dist/Tooltip-CAOO-qdx.js +0 -3185
- package/dist/Tooltip-DDh_x-CB.cjs +0 -1
- package/dist/UnstyledButton-CI3kyRck.js +0 -25
- package/dist/UnstyledButton-Cl5RuIid.cjs +0 -1
- package/dist/UploaderApp-C76ydsd8.js +0 -487
- package/dist/UploaderApp-CHACW8Yr.js +0 -2
- package/dist/UploaderApp-Q_a3mBik.cjs +0 -1
- package/dist/UploaderApp-htj59ppo.cjs +0 -1
- package/dist/VscIcon-CxEmqD80.cjs +0 -1
- package/dist/chunk-BQCxAhux.js +0 -23
- package/dist/chunk-CiTBaPhY.cjs +0 -1
- package/dist/create-safe-context-95P-Bfg3.cjs +0 -1
- package/dist/create-safe-context-XT2cxc14.js +0 -12
- package/dist/desktopStore-Cox-Og1z.cjs +0 -1
- package/dist/fc-DejOsQyD.cjs +0 -1
- package/dist/fc-kd8WzIER.js +0 -20536
- package/dist/fc-xJ_v2ayq.cjs +0 -184
- package/dist/fi-BahYsbim.js +0 -9993
- package/dist/fi-BkhyTcZo.cjs +0 -1
- package/dist/getRuntime-BLXyQZBB.cjs +0 -1
- package/dist/getRuntime-CCRXVzJH.js +0 -63
- package/dist/iconBase-B4UCuSvv.cjs +0 -1
- package/dist/iconBase-D7iPes7B.js +0 -108
- package/dist/imageViewerStore-CH1qW6md.cjs +0 -1
- package/dist/is-element-BocgicRg.cjs +0 -1
- package/dist/is-element-Bu_JY8Qy.js +0 -7
- package/dist/menuEditStore-CU7IAg3L.cjs +0 -1
- package/dist/notesStore-zKmChTfF.cjs +0 -1
- package/dist/react-DYmzHD0X.js +0 -27
- package/dist/react-Dldg32sN.cjs +0 -1
- package/dist/settingsAppStore-BrlImdAH.cjs +0 -1
- package/dist/terminalStore-LWWjCvCe.js +0 -30
- package/dist/terminalStore-fZe5t7Ty.cjs +0 -1
- package/dist/use-merged-ref-BI9n1hUK.cjs +0 -1
- package/dist/use-merged-ref-BT8_u6vW.js +0 -25
- package/dist/use-resolved-styles-api-AVDygMKo.cjs +0 -1
- package/dist/use-resolved-styles-api-pEOi2wiK.js +0 -21
- package/dist/use-uncontrolled-A4hm9ATM.js +0 -23
- package/dist/use-uncontrolled-BPrfGv0W.cjs +0 -1
- package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +0 -1
- package/dist/useCloseInterceptor-a_6Lcuqj.cjs +0 -1
- package/dist/useDynamicIcon-SytdL1Tu.cjs +0 -1
- package/dist/useOpenApp-Br0jo4-y.cjs +0 -1
- package/dist/useResolvedUrl-Be5ZlCX7.cjs +0 -1
- package/dist/useTranslation-DMRGdqZi.js +0 -279
- package/dist/useTranslation-D_O7S4RJ.cjs +0 -1
- package/dist/vsc-Ciibqbxo.cjs +0 -1
- package/dist/vsc-DGKSpOAR.js +0 -9574
- /package/dist/{Colors-BxX4G8kX.cjs → Colors-CNJbU7oq.cjs} +0 -0
- /package/dist/{Colors-hca6raEG.js → Colors-CuABn2W4.js} +0 -0
- /package/dist/{useMenuBarUtils-ChmpZjwu.js → useMenuBarUtils-ChAfI7OA.js} +0 -0
- /package/dist/{useMenuBarUtils-Bp5PiztD.cjs → useMenuBarUtils-DAap0ukp.cjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./NotesApp-BmQIBtJ2.cjs`);var e=(0,require(`zustand`).create)((e,t)=>({windows:{},reset:t=>{e(e=>({windows:{...e.windows,[t]:{isDirty:!1,snapshot:null}}}))},setIsDirty:(t,n)=>{e(e=>{let r=e.windows[t];return r?.isDirty===n?e:{windows:{...e.windows,[t]:{...r,isDirty:n}}}})},takeSnapshot:(t,n)=>{e(e=>({windows:{...e.windows,[t]:{isDirty:!1,snapshot:n}}}))},getSnapshot:e=>t().windows[e]?.snapshot??null})),t=t=>e(e=>e.windows[t]?.isDirty??!1);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./NotesApp-BmQIBtJ2.cjs`);let e=require(`zustand`);var t={isDirty:!1,contentLoaded:!1},n=(0,e.create)((e,n)=>({states:{},getIsDirty:e=>n().states[e]?.isDirty??!1,setIsDirty:(r,i)=>{(n().states[r]?.isDirty??!1)!==i&&e(e=>({states:{...e.states,[r]:{...e.states[r]??t,isDirty:i}}}))},getContentLoaded:e=>n().states[e]?.contentLoaded??!1,setContentLoaded:(n,r)=>{e(e=>({states:{...e.states,[n]:{...e.states[n]??t,contentLoaded:r}}}))},reset:n=>{e(e=>({states:{...e.states,[n]:t}}))}})),r=e=>n(t=>t.states[e]?.isDirty??!1);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.defineProperty, t = (t, n) => {
|
|
3
|
+
let r = {};
|
|
4
|
+
for (var i in t) e(r, i, {
|
|
5
|
+
get: t[i],
|
|
6
|
+
enumerable: !0
|
|
7
|
+
});
|
|
8
|
+
return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./NotesApp-BmQIBtJ2.cjs`);let e=require(`zustand`);function t(){let t={isDirty:!1};return(0,e.create)((e,n)=>({states:{},getIsDirty:e=>n().states[e]?.isDirty??!1,setIsDirty:(r,i)=>{(n().states[r]?.isDirty??!1)!==i&&e(e=>({states:{...e.states,[r]:{...e.states[r]??t,isDirty:i}}}))},reset:n=>{e(e=>({states:{...e.states,[n]:t}}))}}))}var n=t(),r=e=>n(t=>t.states[e]?.isDirty??!1);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./NotesApp-BmQIBtJ2.cjs`);const e=require(`./desktopStore-C1jR6Fdb.cjs`);let t=require(`react`);var n={mobile:{defaultWidth:300,defaultHeight:500,minWidth:280,minHeight:400},tablet:{defaultWidth:600,defaultHeight:450,minWidth:400,minHeight:350},desktop:{defaultWidth:800,defaultHeight:600,minWidth:640,minHeight:480},largeDesktop:{defaultWidth:1e3,defaultHeight:700,minWidth:800,minHeight:600}},r=1440,i=()=>{let t=window.innerWidth;return t<e.p.MOBILE?n.mobile:t<e.p.TABLET?n.tablet:t<r?n.desktop:n.largeDesktop};function a(){let[e,n]=(0,t.useState)(()=>i()),r=(0,t.useCallback)(()=>{n(i())},[]);return(0,t.useEffect)(()=>(window.addEventListener(`resize`,r),()=>window.removeEventListener(`resize`,r)),[r]),e}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { o as e } from "./desktopStore-8cSZlj7s.js";
|
|
2
|
+
import { useCallback as t, useEffect as n, useRef as r } from "react";
|
|
3
|
+
import { create as i } from "zustand";
|
|
4
4
|
//#region src/stores/closeModalStore.ts
|
|
5
|
-
var a =
|
|
5
|
+
var a = i()((e) => ({
|
|
6
6
|
isOpen: !1,
|
|
7
7
|
windowId: null,
|
|
8
8
|
onSave: null,
|
|
@@ -24,21 +24,21 @@ var a = e()((e) => ({
|
|
|
24
24
|
}, c = (e) => {
|
|
25
25
|
o.delete(e);
|
|
26
26
|
}, l = (e) => o.get(e);
|
|
27
|
-
function u({ isDirtyGetter:
|
|
28
|
-
let d =
|
|
29
|
-
|
|
30
|
-
h.current =
|
|
27
|
+
function u({ isDirtyGetter: i, windowId: o, onDiscard: l, onSave: u }) {
|
|
28
|
+
let d = e((e) => e.windows), f = e((e) => e.closeWindow), p = a((e) => e.openModal), m = o ?? d.find((e) => e.isOpen)?.id, h = r(i), g = r(!1), _ = r(l), v = r(u);
|
|
29
|
+
n(() => {
|
|
30
|
+
h.current = i, _.current = l, v.current = u;
|
|
31
31
|
}, [
|
|
32
|
-
|
|
32
|
+
i,
|
|
33
33
|
l,
|
|
34
34
|
u
|
|
35
35
|
]);
|
|
36
|
-
let y =
|
|
36
|
+
let y = t(() => {
|
|
37
37
|
m && (_.current?.(), f(m));
|
|
38
|
-
}, [m, f]), b =
|
|
38
|
+
}, [m, f]), b = t(() => {
|
|
39
39
|
m && (v.current?.(), f(m));
|
|
40
40
|
}, [m, f]);
|
|
41
|
-
|
|
41
|
+
n(() => m ? (g.current = !0, s(m, () => g.current && h.current() ? (p(m, b, y), !1) : !0), () => {
|
|
42
42
|
g.current = !1, c(m);
|
|
43
43
|
}) : void 0, [
|
|
44
44
|
m,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./NotesApp-BmQIBtJ2.cjs`);const e=require(`./desktopStore-C1jR6Fdb.cjs`);let t=require(`react`);var n=(0,require(`zustand`).create)()(e=>({isOpen:!1,windowId:null,onSave:null,onDiscard:null,openModal:(t,n,r)=>e({isOpen:!0,windowId:t,onSave:n,onDiscard:r}),closeModal:()=>e({isOpen:!1,windowId:null,onSave:null,onDiscard:null})})),r=new Map,i=(e,t)=>{r.set(e,t)},a=e=>{r.delete(e)},o=e=>r.get(e);function s({isDirtyGetter:r,windowId:o,onDiscard:s,onSave:c}){let l=e.o(e=>e.windows),u=e.o(e=>e.closeWindow),d=n(e=>e.openModal),f=o??l.find(e=>e.isOpen)?.id,p=(0,t.useRef)(r),m=(0,t.useRef)(!1),h=(0,t.useRef)(s),g=(0,t.useRef)(c);(0,t.useEffect)(()=>{p.current=r,h.current=s,g.current=c},[r,s,c]);let _=(0,t.useCallback)(()=>{f&&(h.current?.(),u(f))},[f,u]),v=(0,t.useCallback)(()=>{f&&(g.current?.(),u(f))},[f,u]);(0,t.useEffect)(()=>f?(m.current=!0,i(f,()=>m.current&&p.current()?(d(f,v,_),!1):!0),()=>{m.current=!1,a(f)}):void 0,[f,d,v,_])}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./NotesApp-BmQIBtJ2.cjs`);let e=require(`react`);var t=(t,n)=>{let[r,i]=(0,e.useState)(null);return(0,e.useEffect)(()=>{if(!t||typeof window>`u`)return;let e=!1;return(async()=>{try{let r;r=n===`fi`?await import(`react-icons/fi`):n===`vsc`?await import(`react-icons/vsc`):await import(`react-icons/fc`),e||i(()=>r[t]??null)}catch{}})(),()=>{e=!0}},[t,n]),r},n=(n,r,i)=>{let a=t(n,r);return a?(0,e.createElement)(a,i):null},r=e=>t(e,`fi`),i=e=>t(e,`fc`),a=e=>t(e,`vsc`),o=(e,t)=>n(e,`fi`,t),s=(e,t)=>n(e,`fc`,t),c=(e,t)=>n(e,`vsc`,t);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -8,7 +8,7 @@ var r = (e, r) => {
|
|
|
8
8
|
return (async () => {
|
|
9
9
|
try {
|
|
10
10
|
let n;
|
|
11
|
-
n = r === "fi" ? await import("
|
|
11
|
+
n = r === "fi" ? await import("react-icons/fi") : r === "vsc" ? await import("react-icons/vsc") : await import("react-icons/fc"), t || a(() => n[e] ?? null);
|
|
12
12
|
} catch {}
|
|
13
13
|
})(), () => {
|
|
14
14
|
t = !0;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./NotesApp-BmQIBtJ2.cjs`);const e=require(`./desktopStore-C1jR6Fdb.cjs`),t=require(`./useAdaptiveDimensions-3Lz4X0Tc.cjs`);let n=require(`react`);var r=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./FilesApp-BRK2OqkQ.cjs`)).then(e=>e.n)),i=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./NotesApp-BmQIBtJ2.cjs`)).then(e=>e.n)),a=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./ImageViewerApp-B1niWF75.cjs`)).then(e=>e.n)),o=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./PdfApp-krW8UI97.cjs`)).then(e=>e.n)),s=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./MenuEditApp-BHptoJbz.cjs`)).then(e=>e.n)),c=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./UploaderApp-Dr1mF7oj.cjs`)).then(e=>e.n)),l=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./SettingsApp-BE22l5UP.cjs`)).then(e=>e.n)),u=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./DeviceInfoApp-BXQ9uOwF.cjs`)).then(e=>e.n)),d=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./CalendarApp-Z0bCCYsK.cjs`)).then(e=>e.n)),f=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./CreateItemApp-BkFFFdX1.cjs`)).then(e=>e.n)),p=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./NotesMenuBar-BzojwMtH.cjs`)).then(e=>e.n).then(e=>({default:e.NotesMenuBar}))),m=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./MenuEditMenuBar-CCOSPAUe.cjs`)).then(e=>e.n).then(e=>({default:e.MenuEditMenuBar}))),h=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./SettingsMenuBar-CZE2evG2.cjs`)).then(e=>e.n).then(e=>({default:e.SettingsMenuBar}))),g=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./PdfMenuBar-DWD0Qa3F.cjs`)).then(e=>e.n).then(e=>({default:e.PdfMenuBar}))),_=(0,n.lazy)(()=>Promise.resolve().then(()=>require(`./ImageViewerMenuBar-BgzgSF3v.cjs`)).then(e=>e.n).then(e=>({default:e.ImageViewerMenuBar}))),v=null,y=(()=>null);function b(e){return{...e,component:e.component??(e.loader?(0,n.lazy)(e.loader):void 0),MenuBarComponent:e.MenuBarComponent??(e.menuBarLoader?(0,n.lazy)(e.menuBarLoader):void 0)}}function x(e){v={};for(let[t,n]of Object.entries(e))v[t]=b(n)}function S(e){return v?v[e]?.component||(console.warn(`[AppRegistry] App not found: ${e}`),y):(console.warn(`[AppRegistry] Registry not initialized, requested app: ${e}`),y)}function C(e){return v?.[e]?.buildMenuBar}function w(e){return v?.[e]?.MenuBarComponent}function T(e){return v?.[e]?.isLazy??!1}function E(e){return v?.[e]?.appName}function D(e){return v?.[e]}function O(e){v||={};for(let[t,n]of Object.entries(e))v[t]=b(n)}var k={};function A(){let e={files:{component:r,appName:`Files`,isLazy:!0},settings:{component:l,MenuBarComponent:h,appName:`Settings`,isLazy:!0},pdf:{component:o,MenuBarComponent:g,appName:`PDF`,isLazy:!0},"image-viewer":{component:a,MenuBarComponent:_,appName:`Image Viewer`,isLazy:!0},uploader:{component:c,appName:`Uploader`,isLazy:!0},createItem:{component:f,appName:`Create Item`,isLazy:!0},"device-info":{component:u,appName:`Device Info`,isLazy:!0},menuedit:{component:s,MenuBarComponent:m,appName:`Menu Editor`,isLazy:!0},notepad:{component:i,MenuBarComponent:p,appName:`Notepad`,isLazy:!0},calendar:{component:d,appName:`Calendar`,isLazy:!0}};Object.assign(k,e),O(e)}var j=.3,M=e=>({duration:e,ease:`easeIn`}),N=e=>({duration:e,ease:`easeOut`}),P=e=>({hidden:{opacity:0,scale:.92,y:12},visible:{opacity:1,scale:1,y:0,transition:N(e)},exit:{opacity:0,scale:.92,y:12,transition:M(e)}}),F=e=>({initial:{opacity:0,y:8,scale:.96},animate:{opacity:1,y:0,scale:1,transition:N(e)},exit:{opacity:0,y:8,scale:.96,transition:M(e)}}),I=e=>(t,n)=>({opacity:0,scale:.1,x:t,y:n,transition:{duration:e,ease:[.4,0,1,1]}}),L=e=>(t,n)=>({opacity:[0,1],scale:[.1,1],x:[t,0],y:[n,0],transition:{duration:e,ease:[0,0,.2,1]}}),R=e=>({duration:e,ease:`easeOut`}),z={duration:j,ease:`easeIn`},B={duration:j,ease:`easeOut`},V=P(j),H=F(j),U=I(.3),W=L(.3),G={scale:{hidden:{opacity:0,scale:.92,y:12},visible:{opacity:1,scale:1,y:0,transition:B}},slide:{hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:B}},fade:{hidden:{opacity:0},visible:{opacity:1,transition:B}}},K={duration:.25,ease:`easeOut`},q=()=>({x:150+Math.random()*200,y:80+Math.random()*100}),J=(e,t,n,r)=>({x:Math.round((e-n)/2),y:Math.round((t-r)/2)}),Y=()=>{let r=e.o(e=>e.openWindow),i=e.o(e=>e.focusWindow),a=e.o(e=>e.windows),o=e.o(e=>e.customApps),s=t.t();return(0,n.useCallback)((t,{contentData:n,position:c}={})=>{let l=e.st.find(e=>e.id===t),u=o.find(e=>e.id===t),d=D(t);if(l?.singleWindow===!0||u?.window?.singleWindow===!0||d?.singleWindow===!0){let e=a.find(e=>e.content===t);if(e){i(e.id);return}}let{x:f,y:p}=c??q();r({title:l?.name??d?.appName??u?.name??t.charAt(0).toUpperCase()+t.slice(1),content:t,icon:l?.icon??d?.icon??u?.icon,fcIcon:l?.fcIcon??d?.fcIcon,iconUrl:l?.iconUrl??d?.iconUrl,iconColor:l?.iconColor??d?.iconColor,canMaximize:l?.canMaximize??d?.canMaximize??u?.window?.canMaximize,x:f,y:p,width:l?.defaultWidth??d?.defaultWidth??u?.window?.defaultWidth??s.defaultWidth,height:l?.defaultHeight??d?.defaultHeight??u?.window?.defaultHeight??s.defaultHeight,minWidth:l?.minWidth===!1||d?.minWidth===!1||u?.window?.minWidth===!1?void 0:l?.minWidth??d?.minWidth??u?.window?.minWidth??s.minWidth,minHeight:l?.minHeight===!1||d?.minHeight===!1||u?.window?.minHeight===!1?void 0:l?.minHeight??d?.minHeight??u?.window?.minHeight??s.minHeight,contentData:{...n,...l?.autoLoad?{autoLoad:l.autoLoad}:{}},alwaysOnTop:l?.alwaysOnTop??d?.alwaysOnTop})},[r,i,a,o,s])};Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return o}});
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "./useAdaptiveDimensions-
|
|
1
|
+
import { ct as e, o as t } from "./desktopStore-8cSZlj7s.js";
|
|
2
|
+
import { t as n } from "./useAdaptiveDimensions-DxNLJ7R5.js";
|
|
3
3
|
import { lazy as r, useCallback as i } from "react";
|
|
4
4
|
//#region src/components/Window/lazyApps.ts
|
|
5
|
-
var a = r(() => import("./FilesApp-
|
|
6
|
-
function
|
|
5
|
+
var a = r(() => import("./FilesApp-BuoFP_KA.js").then((e) => e.n)), o = r(() => import("./NotesApp-DJ2dGt4-.js").then((e) => e.n)), s = r(() => import("./ImageViewerApp-iojtyFEf.js").then((e) => e.n)), c = r(() => import("./PdfApp-IjY_GtnW.js").then((e) => e.n)), l = r(() => import("./MenuEditApp-CJUbJaqh.js").then((e) => e.n)), u = r(() => import("./UploaderApp-Bboc4KZ1.js").then((e) => e.n)), d = r(() => import("./SettingsApp-BTFtTFY_.js").then((e) => e.n)), f = r(() => import("./DeviceInfoApp-I63mJRWy.js").then((e) => e.n)), p = r(() => import("./CalendarApp-DOmjWbpl.js").then((e) => e.n)), m = r(() => import("./CreateItemApp-DR8Y4bwo.js").then((e) => e.n)), h = r(() => import("./NotesMenuBar-DILZTjnT.js").then((e) => e.n).then((e) => ({ default: e.NotesMenuBar }))), g = r(() => import("./MenuEditMenuBar-DnCL-kaZ.js").then((e) => e.n).then((e) => ({ default: e.MenuEditMenuBar }))), _ = r(() => import("./SettingsMenuBar-ktC0viTd.js").then((e) => e.n).then((e) => ({ default: e.SettingsMenuBar }))), v = r(() => import("./PdfMenuBar-Bd5MTZcZ.js").then((e) => e.n).then((e) => ({ default: e.PdfMenuBar }))), y = r(() => import("./ImageViewerMenuBar-BIsUokxV.js").then((e) => e.n).then((e) => ({ default: e.ImageViewerMenuBar }))), b = null, x = (() => null);
|
|
6
|
+
function S(e) {
|
|
7
7
|
return {
|
|
8
8
|
...e,
|
|
9
9
|
component: e.component ?? (e.loader ? r(e.loader) : void 0),
|
|
10
10
|
MenuBarComponent: e.MenuBarComponent ?? (e.menuBarLoader ? r(e.menuBarLoader) : void 0)
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
for (let [t, n] of Object.entries(e))
|
|
13
|
+
function C(e) {
|
|
14
|
+
b = {};
|
|
15
|
+
for (let [t, n] of Object.entries(e)) b[t] = S(n);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
17
|
+
function w(e) {
|
|
18
|
+
return b ? b[e]?.component || (console.warn(`[AppRegistry] App not found: ${e}`), x) : (console.warn(`[AppRegistry] Registry not initialized, requested app: ${e}`), x);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
return
|
|
20
|
+
function T(e) {
|
|
21
|
+
return b?.[e]?.buildMenuBar;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
return
|
|
23
|
+
function E(e) {
|
|
24
|
+
return b?.[e]?.MenuBarComponent;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
26
|
+
function D(e) {
|
|
27
|
+
return b?.[e]?.isLazy ?? !1;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
return
|
|
29
|
+
function O(e) {
|
|
30
|
+
return b?.[e]?.appName;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
32
|
+
function k(e) {
|
|
33
|
+
return b?.[e];
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
|
|
37
|
-
for (let [t, n] of Object.entries(e))
|
|
35
|
+
function A(e) {
|
|
36
|
+
b ||= {};
|
|
37
|
+
for (let [t, n] of Object.entries(e)) b[t] = S(n);
|
|
38
38
|
}
|
|
39
|
-
var
|
|
40
|
-
function
|
|
39
|
+
var j = {};
|
|
40
|
+
function M() {
|
|
41
41
|
let e = {
|
|
42
42
|
files: {
|
|
43
43
|
component: a,
|
|
@@ -93,35 +93,19 @@ function I() {
|
|
|
93
93
|
component: p,
|
|
94
94
|
appName: "Calendar",
|
|
95
95
|
isLazy: !0
|
|
96
|
-
},
|
|
97
|
-
terminal: {
|
|
98
|
-
component: b,
|
|
99
|
-
MenuBarComponent: x,
|
|
100
|
-
appName: "Terminal",
|
|
101
|
-
isLazy: !0
|
|
102
|
-
},
|
|
103
|
-
"code-server": {
|
|
104
|
-
component: S,
|
|
105
|
-
appName: "VS Code",
|
|
106
|
-
isLazy: !0
|
|
107
|
-
},
|
|
108
|
-
storybook: {
|
|
109
|
-
component: C,
|
|
110
|
-
appName: "Storybook",
|
|
111
|
-
isLazy: !0
|
|
112
96
|
}
|
|
113
97
|
};
|
|
114
|
-
Object.assign(
|
|
98
|
+
Object.assign(j, e), A(e);
|
|
115
99
|
}
|
|
116
100
|
//#endregion
|
|
117
101
|
//#region src/constants/Animations.ts
|
|
118
|
-
var
|
|
102
|
+
var N = .3, P = (e) => ({
|
|
119
103
|
duration: e,
|
|
120
104
|
ease: "easeIn"
|
|
121
|
-
}),
|
|
105
|
+
}), F = (e) => ({
|
|
122
106
|
duration: e,
|
|
123
107
|
ease: "easeOut"
|
|
124
|
-
}),
|
|
108
|
+
}), I = (e) => ({
|
|
125
109
|
hidden: {
|
|
126
110
|
opacity: 0,
|
|
127
111
|
scale: .92,
|
|
@@ -131,15 +115,15 @@ var L = .3, R = (e) => ({
|
|
|
131
115
|
opacity: 1,
|
|
132
116
|
scale: 1,
|
|
133
117
|
y: 0,
|
|
134
|
-
transition:
|
|
118
|
+
transition: F(e)
|
|
135
119
|
},
|
|
136
120
|
exit: {
|
|
137
121
|
opacity: 0,
|
|
138
122
|
scale: .92,
|
|
139
123
|
y: 12,
|
|
140
|
-
transition:
|
|
124
|
+
transition: P(e)
|
|
141
125
|
}
|
|
142
|
-
}),
|
|
126
|
+
}), L = (e) => ({
|
|
143
127
|
initial: {
|
|
144
128
|
opacity: 0,
|
|
145
129
|
y: 8,
|
|
@@ -149,15 +133,15 @@ var L = .3, R = (e) => ({
|
|
|
149
133
|
opacity: 1,
|
|
150
134
|
y: 0,
|
|
151
135
|
scale: 1,
|
|
152
|
-
transition:
|
|
136
|
+
transition: F(e)
|
|
153
137
|
},
|
|
154
138
|
exit: {
|
|
155
139
|
opacity: 0,
|
|
156
140
|
y: 8,
|
|
157
141
|
scale: .96,
|
|
158
|
-
transition:
|
|
142
|
+
transition: P(e)
|
|
159
143
|
}
|
|
160
|
-
}),
|
|
144
|
+
}), R = (e) => (t, n) => ({
|
|
161
145
|
opacity: 0,
|
|
162
146
|
scale: .1,
|
|
163
147
|
x: t,
|
|
@@ -171,7 +155,7 @@ var L = .3, R = (e) => ({
|
|
|
171
155
|
1
|
|
172
156
|
]
|
|
173
157
|
}
|
|
174
|
-
}),
|
|
158
|
+
}), z = (e) => (t, n) => ({
|
|
175
159
|
opacity: [0, 1],
|
|
176
160
|
scale: [.1, 1],
|
|
177
161
|
x: [t, 0],
|
|
@@ -185,16 +169,16 @@ var L = .3, R = (e) => ({
|
|
|
185
169
|
1
|
|
186
170
|
]
|
|
187
171
|
}
|
|
188
|
-
}),
|
|
172
|
+
}), B = (e) => ({
|
|
189
173
|
duration: e,
|
|
190
174
|
ease: "easeOut"
|
|
191
|
-
}),
|
|
192
|
-
duration:
|
|
175
|
+
}), V = {
|
|
176
|
+
duration: N,
|
|
193
177
|
ease: "easeIn"
|
|
194
|
-
},
|
|
195
|
-
duration:
|
|
178
|
+
}, H = {
|
|
179
|
+
duration: N,
|
|
196
180
|
ease: "easeOut"
|
|
197
|
-
},
|
|
181
|
+
}, U = I(N), W = L(N), G = R(.3), K = z(.3), q = {
|
|
198
182
|
scale: {
|
|
199
183
|
hidden: {
|
|
200
184
|
opacity: 0,
|
|
@@ -205,7 +189,7 @@ var L = .3, R = (e) => ({
|
|
|
205
189
|
opacity: 1,
|
|
206
190
|
scale: 1,
|
|
207
191
|
y: 0,
|
|
208
|
-
transition:
|
|
192
|
+
transition: H
|
|
209
193
|
}
|
|
210
194
|
},
|
|
211
195
|
slide: {
|
|
@@ -216,29 +200,29 @@ var L = .3, R = (e) => ({
|
|
|
216
200
|
visible: {
|
|
217
201
|
opacity: 1,
|
|
218
202
|
y: 0,
|
|
219
|
-
transition:
|
|
203
|
+
transition: H
|
|
220
204
|
}
|
|
221
205
|
},
|
|
222
206
|
fade: {
|
|
223
207
|
hidden: { opacity: 0 },
|
|
224
208
|
visible: {
|
|
225
209
|
opacity: 1,
|
|
226
|
-
transition:
|
|
210
|
+
transition: H
|
|
227
211
|
}
|
|
228
212
|
}
|
|
229
|
-
},
|
|
213
|
+
}, J = {
|
|
230
214
|
duration: .25,
|
|
231
215
|
ease: "easeOut"
|
|
232
|
-
},
|
|
216
|
+
}, Y = () => ({
|
|
233
217
|
x: 150 + Math.random() * 200,
|
|
234
218
|
y: 80 + Math.random() * 100
|
|
235
|
-
}),
|
|
219
|
+
}), X = (e, t, n, r) => ({
|
|
236
220
|
x: Math.round((e - n) / 2),
|
|
237
221
|
y: Math.round((t - r) / 2)
|
|
238
|
-
}),
|
|
222
|
+
}), Z = () => {
|
|
239
223
|
let r = t((e) => e.openWindow), a = t((e) => e.focusWindow), o = t((e) => e.windows), s = t((e) => e.customApps), c = n();
|
|
240
224
|
return i((t, { contentData: n, position: i } = {}) => {
|
|
241
|
-
let l = e.find((e) => e.id === t), u = s.find((e) => e.id === t), d =
|
|
225
|
+
let l = e.find((e) => e.id === t), u = s.find((e) => e.id === t), d = k(t);
|
|
242
226
|
if (l?.singleWindow === !0 || u?.window?.singleWindow === !0 || d?.singleWindow === !0) {
|
|
243
227
|
let e = o.find((e) => e.content === t);
|
|
244
228
|
if (e) {
|
|
@@ -246,7 +230,7 @@ var L = .3, R = (e) => ({
|
|
|
246
230
|
return;
|
|
247
231
|
}
|
|
248
232
|
}
|
|
249
|
-
let { x: f, y: p } = i ??
|
|
233
|
+
let { x: f, y: p } = i ?? Y();
|
|
250
234
|
r({
|
|
251
235
|
title: l?.name ?? d?.appName ?? u?.name ?? t.charAt(0).toUpperCase() + t.slice(1),
|
|
252
236
|
content: t,
|
|
@@ -276,4 +260,4 @@ var L = .3, R = (e) => ({
|
|
|
276
260
|
]);
|
|
277
261
|
};
|
|
278
262
|
//#endregion
|
|
279
|
-
export { m as A, v as B,
|
|
263
|
+
export { m as A, v as B, T as C, D, C as E, l as F, _ as H, g as I, o as L, a as M, s as N, A as O, y as P, h as R, O as S, M as T, u as U, d as V, Y as _, X as a, j as b, B as c, z as d, I as f, W as g, q as h, H as i, f as j, p as k, R as l, G as m, N as n, P as o, J as p, V as r, F as s, Z as t, L as u, K as v, E as w, w as x, U as y, c as z };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as t, n } from "./desktopStore-B0R1-BeA.js";
|
|
1
|
+
import { G as e, m as t, n } from "./desktopStore-8cSZlj7s.js";
|
|
3
2
|
import { useEffect as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
4
3
|
//#region src/hooks/useResolvedUrl.ts
|
|
5
4
|
function s(s) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./NotesApp-BmQIBtJ2.cjs`);const e=require(`./desktopStore-C1jR6Fdb.cjs`);let t=require(`react`);function n(n){let r=(0,t.useMemo)(()=>(n?.startsWith(`idb://`)||e.G()&&n?.startsWith(`/api/fs`))??!1,[n]),i=(0,t.useMemo)(()=>n?.startsWith(`/api/fs`)??!1,[n]),[a,o]=(0,t.useState)(void 0),s=(0,t.useRef)(void 0);if((0,t.useEffect)(()=>{if(!n||!r)return;let t=!1;return e.n.toBlobUrl(n).then(e=>{if(t){e&&URL.revokeObjectURL(e);return}s.current=e??void 0,o(e??void 0)}),()=>{t=!0,s.current&&=(URL.revokeObjectURL(s.current),void 0),o(void 0)}},[n,r]),n){if(i&&r)return a;if(!r){if(n.startsWith(`/`)||n.startsWith(`http://`)||n.startsWith(`https://`))return n;let t=e.m();return`${t.endsWith(`/`)?t:`${t}/`}${n}`}return a}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fde-desktop/fde-core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core library for building FDE Desktop environments",
|
|
6
6
|
"author": "Francisco Núñez Palomares (frannunpal@gmail.com)",
|
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": "^19.0.0",
|
|
41
|
-
"react-dom": "^19.0.0"
|
|
42
|
-
"@tanstack/react-query": "^5.0.0"
|
|
41
|
+
"react-dom": "^19.0.0"
|
|
43
42
|
},
|
|
44
43
|
"dependencies": {
|
|
45
44
|
"@dnd-kit/core": "^6.3.1",
|
|
@@ -47,6 +46,7 @@
|
|
|
47
46
|
"@mantine/core": "^9.0.0",
|
|
48
47
|
"@mantine/dates": "^9.0.0",
|
|
49
48
|
"@mantine/hooks": "^9.0.0",
|
|
49
|
+
"@tanstack/react-query": "^5.0.0",
|
|
50
50
|
"@tiptap/core": "^3.20.1",
|
|
51
51
|
"@tiptap/markdown": "^3.20.1",
|
|
52
52
|
"@tiptap/pm": "^3.20.1",
|
|
@@ -67,7 +67,6 @@
|
|
|
67
67
|
"zustand": "^5.0.11"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@tanstack/react-query": "^5.0.0",
|
|
71
70
|
"@testing-library/dom": "^10.4.1",
|
|
72
71
|
"@testing-library/jest-dom": "^6.9.1",
|
|
73
72
|
"@testing-library/react": "^16.3.2",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { L as e } from "./Box-DRm8EabO.js";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Accordion/AccordionChevron.mjs
|
|
4
|
-
function n({ style: n, size: r = 16, ...i }) {
|
|
5
|
-
return /* @__PURE__ */ t("svg", {
|
|
6
|
-
viewBox: "0 0 15 15",
|
|
7
|
-
fill: "none",
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
style: {
|
|
10
|
-
...n,
|
|
11
|
-
width: e(r),
|
|
12
|
-
height: e(r),
|
|
13
|
-
display: "block"
|
|
14
|
-
},
|
|
15
|
-
...i,
|
|
16
|
-
children: /* @__PURE__ */ t("path", {
|
|
17
|
-
d: "M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",
|
|
18
|
-
fill: "currentColor",
|
|
19
|
-
fillRule: "evenodd",
|
|
20
|
-
clipRule: "evenodd"
|
|
21
|
-
})
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n.displayName = "@mantine/core/AccordionChevron";
|
|
25
|
-
//#endregion
|
|
26
|
-
export { n as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./Box-D_64wv6n.cjs`);let t=require(`react/jsx-runtime`);function n({style:n,size:r=16,...i}){return(0,t.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...n,width:e.L(r),height:e.L(r),display:`block`},...i,children:(0,t.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}n.displayName=`@mantine/core/AccordionChevron`,Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./Box-D_64wv6n.cjs`),t=require(`./TextInput-DcYns3hz.cjs`),n=require(`./UnstyledButton-Cl5RuIid.cjs`);let r=require(`react/jsx-runtime`);var i={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},a={orientation:`horizontal`},o=e.O((t,{borderWidth:n})=>({group:{"--ai-border-width":e.L(n)}})),s=e.r(t=>{let n=e.l(`ActionIconGroup`,a,t),{className:s,style:c,classNames:l,styles:u,unstyled:d,orientation:f,vars:p,borderWidth:m,variant:h,mod:g,attributes:_,...v}=e.l(`ActionIconGroup`,a,t);return(0,r.jsx)(e.t,{...e.c({name:`ActionIconGroup`,props:n,classes:i,className:s,style:c,classNames:l,styles:u,unstyled:d,attributes:_,vars:p,varsResolver:o,rootSelector:`group`})(`group`),variant:h,mod:[{"data-orientation":f},g],role:`group`,...v})});s.classes=i,s.varsResolver=o,s.displayName=`@mantine/core/ActionIconGroup`;var c=e.O((t,{radius:n,color:r,gradient:i,variant:a,autoContrast:o,size:s})=>{let c=t.variantColorResolver({color:r||t.primaryColor,theme:t,gradient:i,variant:a||`filled`,autoContrast:o});return{groupSection:{"--section-height":e.N(s,`section-height`),"--section-padding-x":e.N(s,`section-padding-x`),"--section-fz":e.k(s),"--section-radius":n===void 0?void 0:e.j(n),"--section-bg":r||a?c.background:void 0,"--section-color":c.color,"--section-bd":r||a?c.border:void 0}}}),l=e.r(t=>{let n=e.l(`ActionIconGroupSection`,null,t),{className:a,style:o,classNames:s,styles:l,unstyled:u,vars:d,variant:f,gradient:p,radius:m,autoContrast:h,attributes:g,..._}=n;return(0,r.jsx)(e.t,{...e.c({name:`ActionIconGroupSection`,props:n,classes:i,className:a,style:o,classNames:s,styles:l,unstyled:u,attributes:g,vars:d,varsResolver:c,rootSelector:`groupSection`})(`groupSection`),variant:f,..._})});l.classes=i,l.varsResolver=c,l.displayName=`@mantine/core/ActionIconGroupSection`;var u=e.O((t,{size:n,radius:r,variant:i,gradient:a,color:o,autoContrast:s})=>{let c=t.variantColorResolver({color:o||t.primaryColor,theme:t,gradient:a,variant:i||`filled`,autoContrast:s});return{root:{"--ai-size":e.N(n,`ai-size`),"--ai-radius":r===void 0?void 0:e.j(r),"--ai-bg":o||i?c.background:void 0,"--ai-hover":o||i?c.hover:void 0,"--ai-hover-color":o||i?c.hoverColor:void 0,"--ai-color":c.color,"--ai-bd":o||i?c.border:void 0}}}),d=e.n(a=>{let o=e.l(`ActionIcon`,null,a),{className:s,unstyled:c,variant:l,classNames:d,styles:f,style:p,loading:m,loaderProps:h,size:g,color:_,radius:v,__staticSelector:y,gradient:b,vars:x,children:S,disabled:C,"data-disabled":w,autoContrast:T,mod:E,attributes:D,...O}=o,k=e.c({name:[`ActionIcon`,y],props:o,className:s,style:p,classes:i,classNames:d,styles:f,unstyled:c,attributes:D,vars:x,varsResolver:u});return(0,r.jsxs)(n.t,{...k(`root`,{active:!C&&!m&&!w}),...O,unstyled:c,variant:l,size:g,disabled:C||m,mod:[{loading:m,disabled:C||w},E],children:[typeof m==`boolean`&&(0,r.jsx)(t.c,{mounted:m,transition:`slide-down`,duration:150,children:n=>(0,r.jsx)(e.t,{component:`span`,...k(`loader`,{style:n}),"aria-hidden":!0,children:(0,r.jsx)(t.s,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...h})})}),(0,r.jsx)(e.t,{component:`span`,mod:{loading:m},...k(`icon`),children:S})]})});d.classes=i,d.varsResolver=u,d.displayName=`@mantine/core/ActionIcon`,d.Group=s,d.GroupSection=l,Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { L as e, N as t, O as n, c as r, j as i, k as a, l as o, n as s, r as c, t as l } from "./Box-DRm8EabO.js";
|
|
2
|
-
import { c as u, s as d } from "./TextInput-C3qfxxWI.js";
|
|
3
|
-
import { t as f } from "./UnstyledButton-CI3kyRck.js";
|
|
4
|
-
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
5
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.module.mjs
|
|
6
|
-
var h = {
|
|
7
|
-
root: "m_8d3f4000",
|
|
8
|
-
icon: "m_8d3afb97",
|
|
9
|
-
loader: "m_302b9fb1",
|
|
10
|
-
group: "m_1a0f1b21",
|
|
11
|
-
groupSection: "m_437b6484"
|
|
12
|
-
}, g = { orientation: "horizontal" }, _ = n((t, { borderWidth: n }) => ({ group: { "--ai-border-width": e(n) } })), v = c((e) => {
|
|
13
|
-
let t = o("ActionIconGroup", g, e), { className: n, style: i, classNames: a, styles: s, unstyled: c, orientation: u, vars: d, borderWidth: f, variant: m, mod: v, attributes: y, ...b } = o("ActionIconGroup", g, e);
|
|
14
|
-
return /* @__PURE__ */ p(l, {
|
|
15
|
-
...r({
|
|
16
|
-
name: "ActionIconGroup",
|
|
17
|
-
props: t,
|
|
18
|
-
classes: h,
|
|
19
|
-
className: n,
|
|
20
|
-
style: i,
|
|
21
|
-
classNames: a,
|
|
22
|
-
styles: s,
|
|
23
|
-
unstyled: c,
|
|
24
|
-
attributes: y,
|
|
25
|
-
vars: d,
|
|
26
|
-
varsResolver: _,
|
|
27
|
-
rootSelector: "group"
|
|
28
|
-
})("group"),
|
|
29
|
-
variant: m,
|
|
30
|
-
mod: [{ "data-orientation": u }, v],
|
|
31
|
-
role: "group",
|
|
32
|
-
...b
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
v.classes = h, v.varsResolver = _, v.displayName = "@mantine/core/ActionIconGroup";
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.mjs
|
|
38
|
-
var y = n((e, { radius: n, color: r, gradient: o, variant: s, autoContrast: c, size: l }) => {
|
|
39
|
-
let u = e.variantColorResolver({
|
|
40
|
-
color: r || e.primaryColor,
|
|
41
|
-
theme: e,
|
|
42
|
-
gradient: o,
|
|
43
|
-
variant: s || "filled",
|
|
44
|
-
autoContrast: c
|
|
45
|
-
});
|
|
46
|
-
return { groupSection: {
|
|
47
|
-
"--section-height": t(l, "section-height"),
|
|
48
|
-
"--section-padding-x": t(l, "section-padding-x"),
|
|
49
|
-
"--section-fz": a(l),
|
|
50
|
-
"--section-radius": n === void 0 ? void 0 : i(n),
|
|
51
|
-
"--section-bg": r || s ? u.background : void 0,
|
|
52
|
-
"--section-color": u.color,
|
|
53
|
-
"--section-bd": r || s ? u.border : void 0
|
|
54
|
-
} };
|
|
55
|
-
}), b = c((e) => {
|
|
56
|
-
let t = o("ActionIconGroupSection", null, e), { className: n, style: i, classNames: a, styles: s, unstyled: c, vars: u, variant: d, gradient: f, radius: m, autoContrast: g, attributes: _, ...v } = t;
|
|
57
|
-
return /* @__PURE__ */ p(l, {
|
|
58
|
-
...r({
|
|
59
|
-
name: "ActionIconGroupSection",
|
|
60
|
-
props: t,
|
|
61
|
-
classes: h,
|
|
62
|
-
className: n,
|
|
63
|
-
style: i,
|
|
64
|
-
classNames: a,
|
|
65
|
-
styles: s,
|
|
66
|
-
unstyled: c,
|
|
67
|
-
attributes: _,
|
|
68
|
-
vars: u,
|
|
69
|
-
varsResolver: y,
|
|
70
|
-
rootSelector: "groupSection"
|
|
71
|
-
})("groupSection"),
|
|
72
|
-
variant: d,
|
|
73
|
-
...v
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
b.classes = h, b.varsResolver = y, b.displayName = "@mantine/core/ActionIconGroupSection";
|
|
77
|
-
//#endregion
|
|
78
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.mjs
|
|
79
|
-
var x = n((e, { size: n, radius: r, variant: a, gradient: o, color: s, autoContrast: c }) => {
|
|
80
|
-
let l = e.variantColorResolver({
|
|
81
|
-
color: s || e.primaryColor,
|
|
82
|
-
theme: e,
|
|
83
|
-
gradient: o,
|
|
84
|
-
variant: a || "filled",
|
|
85
|
-
autoContrast: c
|
|
86
|
-
});
|
|
87
|
-
return { root: {
|
|
88
|
-
"--ai-size": t(n, "ai-size"),
|
|
89
|
-
"--ai-radius": r === void 0 ? void 0 : i(r),
|
|
90
|
-
"--ai-bg": s || a ? l.background : void 0,
|
|
91
|
-
"--ai-hover": s || a ? l.hover : void 0,
|
|
92
|
-
"--ai-hover-color": s || a ? l.hoverColor : void 0,
|
|
93
|
-
"--ai-color": l.color,
|
|
94
|
-
"--ai-bd": s || a ? l.border : void 0
|
|
95
|
-
} };
|
|
96
|
-
}), S = s((e) => {
|
|
97
|
-
let t = o("ActionIcon", null, e), { className: n, unstyled: i, variant: a, classNames: s, styles: c, style: g, loading: _, loaderProps: v, size: y, color: b, radius: S, __staticSelector: C, gradient: w, vars: T, children: E, disabled: D, "data-disabled": O, autoContrast: k, mod: A, attributes: j, ...M } = t, N = r({
|
|
98
|
-
name: ["ActionIcon", C],
|
|
99
|
-
props: t,
|
|
100
|
-
className: n,
|
|
101
|
-
style: g,
|
|
102
|
-
classes: h,
|
|
103
|
-
classNames: s,
|
|
104
|
-
styles: c,
|
|
105
|
-
unstyled: i,
|
|
106
|
-
attributes: j,
|
|
107
|
-
vars: T,
|
|
108
|
-
varsResolver: x
|
|
109
|
-
});
|
|
110
|
-
return /* @__PURE__ */ m(f, {
|
|
111
|
-
...N("root", { active: !D && !_ && !O }),
|
|
112
|
-
...M,
|
|
113
|
-
unstyled: i,
|
|
114
|
-
variant: a,
|
|
115
|
-
size: y,
|
|
116
|
-
disabled: D || _,
|
|
117
|
-
mod: [{
|
|
118
|
-
loading: _,
|
|
119
|
-
disabled: D || O
|
|
120
|
-
}, A],
|
|
121
|
-
children: [typeof _ == "boolean" && /* @__PURE__ */ p(u, {
|
|
122
|
-
mounted: _,
|
|
123
|
-
transition: "slide-down",
|
|
124
|
-
duration: 150,
|
|
125
|
-
children: (e) => /* @__PURE__ */ p(l, {
|
|
126
|
-
component: "span",
|
|
127
|
-
...N("loader", { style: e }),
|
|
128
|
-
"aria-hidden": !0,
|
|
129
|
-
children: /* @__PURE__ */ p(d, {
|
|
130
|
-
color: "var(--ai-color)",
|
|
131
|
-
size: "calc(var(--ai-size) * 0.55)",
|
|
132
|
-
...v
|
|
133
|
-
})
|
|
134
|
-
})
|
|
135
|
-
}), /* @__PURE__ */ p(l, {
|
|
136
|
-
component: "span",
|
|
137
|
-
mod: { loading: _ },
|
|
138
|
-
...N("icon"),
|
|
139
|
-
children: E
|
|
140
|
-
})]
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
S.classes = h, S.varsResolver = x, S.displayName = "@mantine/core/ActionIcon", S.Group = v, S.GroupSection = b;
|
|
144
|
-
//#endregion
|
|
145
|
-
export { S as t };
|