@fde-desktop/fde-core 0.4.4 → 0.4.6
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/README.md +5 -5
- package/dist/{CreateItemApp-ZHCTSPQE.js → CreateItemApp-2EME6FYH.js} +2 -2
- package/dist/{CreateItemApp-NAZMXOPK.cjs → CreateItemApp-BSEISPUS.cjs} +3 -3
- package/dist/DeviceInfoApp-2MJFK32B.cjs +11 -0
- package/dist/DeviceInfoApp-KFYU3E43.js +5 -0
- package/dist/FilesApp-B7JR4PEP.cjs +14 -0
- package/dist/FilesApp-HYTIWN3O.js +8 -0
- package/dist/{ImageViewerApp-5UXNSW2O.js → ImageViewerApp-PLHNQFZ3.js} +4 -4
- package/dist/{ImageViewerApp-RRRRKSFN.cjs → ImageViewerApp-UIXSGW2X.cjs} +5 -5
- package/dist/{MenuEditApp-HUZRFEHE.js → MenuEditApp-4DB5UEWH.js} +4 -4
- package/dist/MenuEditApp-B2ZMG4ZY.cjs +15 -0
- package/dist/{NotesApp-4EVUQEFZ.cjs → NotesApp-BZYASRVJ.cjs} +5 -5
- package/dist/{NotesApp-37BV33C6.js → NotesApp-MW37NRSN.js} +4 -4
- package/dist/{PdfApp-5VBDNRMC.cjs → PdfApp-3ZINDODQ.cjs} +5 -5
- package/dist/{PdfApp-RH6MZZX5.js → PdfApp-ZSYAQP7L.js} +4 -4
- package/dist/{SettingsApp-5LDHEHYV.cjs → SettingsApp-2ZNO7AVY.cjs} +7 -7
- package/dist/{SettingsApp-X6764D7T.js → SettingsApp-ODZINK6T.js} +6 -6
- package/dist/UploaderApp-MTRIYWV4.cjs +16 -0
- package/dist/UploaderApp-V3WUDCG2.js +10 -0
- package/dist/{chunk-7SAFECOJ.js → chunk-25GVAXBU.js} +1 -1
- package/dist/{chunk-4MCFQPKY.js → chunk-2MYZWMDC.js} +1 -1
- package/dist/{chunk-AQL372JF.cjs → chunk-2NGIGLVP.cjs} +8 -8
- package/dist/{chunk-DMNF4CNN.cjs → chunk-2O3W6TLG.cjs} +4 -4
- package/dist/{chunk-6QOUYSEE.cjs → chunk-2UW42GAP.cjs} +16 -11
- package/dist/{chunk-AXDUVZVP.cjs → chunk-4KIMZJ3L.cjs} +6 -6
- package/dist/{chunk-SYGUWGWK.cjs → chunk-57ZTJB2W.cjs} +13 -13
- package/dist/{chunk-ZBGWYTCU.cjs → chunk-7FGL7HGS.cjs} +3 -3
- package/dist/{chunk-ICUE6T7J.cjs → chunk-7HQ6KUIO.cjs} +3 -3
- package/dist/{chunk-2FO445RM.cjs → chunk-AU4IENXY.cjs} +12 -12
- package/dist/{chunk-TDZ43MUX.cjs → chunk-BFMSPWLP.cjs} +9 -9
- package/dist/{chunk-4OH5RPSQ.cjs → chunk-DEVJOHGE.cjs} +3 -3
- package/dist/{chunk-EUQLZW6P.js → chunk-FNWS4ZKT.js} +1 -1
- package/dist/{chunk-IUOQPOEN.js → chunk-HIGKZ7UP.js} +5 -5
- package/dist/{chunk-3IICBLEA.js → chunk-HYJJVB7G.js} +3 -3
- package/dist/{chunk-J7L2S2GT.cjs → chunk-I5MJXFYW.cjs} +2 -2
- package/dist/{chunk-657BJOY5.cjs → chunk-JX65IKJZ.cjs} +17 -17
- package/dist/{chunk-PYTKNRGM.js → chunk-KGMXUBWQ.js} +11 -11
- package/dist/{chunk-BKXEA2BK.cjs → chunk-KI5FXBOM.cjs} +13 -13
- package/dist/{chunk-GCYD6T52.js → chunk-NULEEBCG.js} +1 -1
- package/dist/{chunk-AYFNYHMP.js → chunk-PDEZ7BIN.js} +3 -3
- package/dist/{chunk-ODXL6BR3.js → chunk-PVBI2WRF.js} +1 -1
- package/dist/{chunk-QB72BLCJ.cjs → chunk-QFGHYAD7.cjs} +10 -10
- package/dist/{chunk-CFWV2JMR.js → chunk-U5JKHQBS.js} +3 -3
- package/dist/{chunk-BLV47DX2.js → chunk-VFPEMNSX.js} +2 -2
- package/dist/{chunk-5PYK5ASL.js → chunk-VLWKVIYD.js} +2 -2
- package/dist/{chunk-NWMSWRUD.js → chunk-W2Y22XR6.js} +16 -12
- package/dist/{chunk-ZHB5Q2M6.js → chunk-WHZGUG7Q.js} +1 -1
- package/dist/{chunk-54PYEQLK.js → chunk-WSA5WSHN.js} +2 -2
- package/dist/{chunk-QHBBLML3.js → chunk-Y2WL2M7M.js} +3 -3
- package/dist/{chunk-BDO6B7MZ.cjs → chunk-YOHBUOZJ.cjs} +6 -6
- package/dist/{chunk-U4RYIS6Z.cjs → chunk-YSWU4OKP.cjs} +20 -20
- package/dist/index.cjs +381 -380
- package/dist/index.js +28 -27
- package/package.json +3 -2
- package/dist/DeviceInfoApp-R6YNVIGX.cjs +0 -11
- package/dist/DeviceInfoApp-YHCYAO6N.js +0 -5
- package/dist/FilesApp-AKCVRTXR.js +0 -8
- package/dist/FilesApp-RW3Y6ILO.cjs +0 -14
- package/dist/MenuEditApp-MCUHGTKQ.cjs +0 -15
- package/dist/UploaderApp-2WYRCUQV.js +0 -10
- package/dist/UploaderApp-EYFC36PM.cjs +0 -16
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkFX2TPX3L_cjs = require('./chunk-FX2TPX3L.cjs');
|
|
4
4
|
var chunkYSOLW4FS_cjs = require('./chunk-YSOLW4FS.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var chunkI5MJXFYW_cjs = require('./chunk-I5MJXFYW.cjs');
|
|
6
|
+
var chunk7FGL7HGS_cjs = require('./chunk-7FGL7HGS.cjs');
|
|
7
|
+
var chunk2UW42GAP_cjs = require('./chunk-2UW42GAP.cjs');
|
|
8
8
|
var chunkZ5YGWL65_cjs = require('./chunk-Z5YGWL65.cjs');
|
|
9
9
|
var chunkE55VXNLK_cjs = require('./chunk-E55VXNLK.cjs');
|
|
10
10
|
var react = require('react');
|
|
@@ -152,7 +152,7 @@ var DragOverlayComponent = () => {
|
|
|
152
152
|
if (!activeItem) return null;
|
|
153
153
|
return /* @__PURE__ */ jsxRuntime.jsx(core.DragOverlay, { dropAnimation: core.defaultDropAnimation, modifiers: [snapCenterToCursor], children: /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Box, { className: DragOverlay_default.dragOverlay, children: [
|
|
154
154
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
155
|
-
|
|
155
|
+
chunkI5MJXFYW_cjs.AppIcon_default,
|
|
156
156
|
{
|
|
157
157
|
fcIcon: activeItem.metadata?.fcIcon,
|
|
158
158
|
iconUrl: activeItem.metadata?.iconUrl,
|
|
@@ -220,7 +220,7 @@ var FolderItem = ({
|
|
|
220
220
|
style: { flex: 1 }
|
|
221
221
|
}
|
|
222
222
|
) : /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Group, { gap: "xs", children: [
|
|
223
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
223
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI5MJXFYW_cjs.AppIcon_default, { fcIcon: folder.fcIcon, size: 16 }),
|
|
224
224
|
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Text, { size: "sm", fw: 500, children: folderName }),
|
|
225
225
|
folder.isPredefined && /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", c: "dimmed", children: [
|
|
226
226
|
"(",
|
|
@@ -253,7 +253,7 @@ var FolderItem = ({
|
|
|
253
253
|
] })
|
|
254
254
|
] }),
|
|
255
255
|
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Box, { className: MenuEditApp_default.appList, children: folder.appIds.map((appId) => {
|
|
256
|
-
const app =
|
|
256
|
+
const app = chunk2UW42GAP_cjs.APPS.find((a) => a.id === appId);
|
|
257
257
|
if (!app) return null;
|
|
258
258
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
259
259
|
DraggableApp,
|
|
@@ -298,7 +298,7 @@ var DraggableApp = ({ app, sourceId, onContextMenu }) => {
|
|
|
298
298
|
...attributes,
|
|
299
299
|
...listeners,
|
|
300
300
|
children: [
|
|
301
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
301
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI5MJXFYW_cjs.AppIcon_default, { fcIcon: app.fcIcon, iconUrl: app.iconUrl, fallback: app.icon, size: 16 }),
|
|
302
302
|
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Text, { size: "xs", children: app.name })
|
|
303
303
|
]
|
|
304
304
|
}
|
|
@@ -315,9 +315,9 @@ var AvailableApps = ({ customFolderId }) => {
|
|
|
315
315
|
accepts: ACCEPTED_TYPES["available-apps"]
|
|
316
316
|
}
|
|
317
317
|
});
|
|
318
|
-
const appsInFolders = new Set(
|
|
319
|
-
const availableApps =
|
|
320
|
-
const addAppToFolder =
|
|
318
|
+
const appsInFolders = new Set(chunk2UW42GAP_cjs.useDesktopStore.getState().launcherFolders.flatMap((f) => f.appIds));
|
|
319
|
+
const availableApps = chunk2UW42GAP_cjs.APPS.filter((app) => app.id !== "settings" && app.id !== "menuedit");
|
|
320
|
+
const addAppToFolder = chunk2UW42GAP_cjs.useDesktopStore((state) => state.addAppToFolder);
|
|
321
321
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
322
322
|
chunkE55VXNLK_cjs.Box,
|
|
323
323
|
{
|
|
@@ -371,7 +371,7 @@ var DraggableAppFromAvailable = ({ app, targetFolderId, onAdd }) => {
|
|
|
371
371
|
...attributes,
|
|
372
372
|
...listeners,
|
|
373
373
|
children: [
|
|
374
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
374
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI5MJXFYW_cjs.AppIcon_default, { fcIcon: app.fcIcon, iconUrl: app.iconUrl, fallback: app.icon, size: 16 }),
|
|
375
375
|
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Text, { size: "xs", children: app.name })
|
|
376
376
|
]
|
|
377
377
|
}
|
|
@@ -380,12 +380,12 @@ var DraggableAppFromAvailable = ({ app, targetFolderId, onAdd }) => {
|
|
|
380
380
|
var MenuEditAppContent = ({ window: win, notifyReady }) => {
|
|
381
381
|
const { t } = reactI18next.useTranslation("menuedit");
|
|
382
382
|
const windowId = win?.id;
|
|
383
|
-
const launcherFolders =
|
|
384
|
-
const setLauncherFolders =
|
|
385
|
-
const createLauncherFolder =
|
|
386
|
-
const updateLauncherFolder =
|
|
387
|
-
const deleteLauncherFolder =
|
|
388
|
-
const removeAppFromFolder =
|
|
383
|
+
const launcherFolders = chunk2UW42GAP_cjs.useDesktopStore((state) => state.launcherFolders);
|
|
384
|
+
const setLauncherFolders = chunk2UW42GAP_cjs.useDesktopStore((state) => state.setLauncherFolders);
|
|
385
|
+
const createLauncherFolder = chunk2UW42GAP_cjs.useDesktopStore((state) => state.createLauncherFolder);
|
|
386
|
+
const updateLauncherFolder = chunk2UW42GAP_cjs.useDesktopStore((state) => state.updateLauncherFolder);
|
|
387
|
+
const deleteLauncherFolder = chunk2UW42GAP_cjs.useDesktopStore((state) => state.deleteLauncherFolder);
|
|
388
|
+
const removeAppFromFolder = chunk2UW42GAP_cjs.useDesktopStore((state) => state.removeAppFromFolder);
|
|
389
389
|
const [editingFolderId, setEditingFolderId] = react.useState(null);
|
|
390
390
|
const [editingName, setEditingName] = react.useState("");
|
|
391
391
|
const initializedRef = react.useRef(false);
|
|
@@ -424,7 +424,7 @@ var MenuEditAppContent = ({ window: win, notifyReady }) => {
|
|
|
424
424
|
const snapshot = chunkFX2TPX3L_cjs.useMenuEditStore.getState().getSnapshot(windowId);
|
|
425
425
|
return JSON.stringify(launcherFolders) !== JSON.stringify(snapshot ?? []);
|
|
426
426
|
}, [windowId, launcherFolders]);
|
|
427
|
-
|
|
427
|
+
chunk7FGL7HGS_cjs.useCloseInterceptor({
|
|
428
428
|
isDirtyGetter,
|
|
429
429
|
windowId: win?.id,
|
|
430
430
|
onDiscard: revertToSnapshot,
|
|
@@ -514,8 +514,8 @@ var MenuEditAppContent = ({ window: win, notifyReady }) => {
|
|
|
514
514
|
] }) });
|
|
515
515
|
};
|
|
516
516
|
var MenuEditApp = (props) => {
|
|
517
|
-
const addAppToFolder =
|
|
518
|
-
const removeAppFromFolder =
|
|
517
|
+
const addAppToFolder = chunk2UW42GAP_cjs.useDesktopStore((state) => state.addAppToFolder);
|
|
518
|
+
const removeAppFromFolder = chunk2UW42GAP_cjs.useDesktopStore((state) => state.removeAppFromFolder);
|
|
519
519
|
const handleDrop = react.useCallback(
|
|
520
520
|
(item, target) => {
|
|
521
521
|
if (item.type !== "app") return;
|