@fde-desktop/fde-core 0.4.6 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-2EME6FYH.js +0 -8
- package/dist/CreateItemApp-BSEISPUS.cjs +0 -14
- package/dist/CreateItemApp-PQB5GTFG.css +0 -107
- package/dist/DeviceInfoApp-2MJFK32B.cjs +0 -11
- package/dist/DeviceInfoApp-KFYU3E43.js +0 -5
- package/dist/DeviceInfoApp-ZSMRSITP.css +0 -7
- package/dist/FilesApp-B7JR4PEP.cjs +0 -14
- package/dist/FilesApp-E6L5W3T2.css +0 -1817
- package/dist/FilesApp-HYTIWN3O.js +0 -8
- package/dist/ImageViewerApp-N2Q7E7WZ.css +0 -215
- package/dist/ImageViewerApp-PLHNQFZ3.js +0 -11
- package/dist/ImageViewerApp-UIXSGW2X.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-4DB5UEWH.js +0 -9
- package/dist/MenuEditApp-B2ZMG4ZY.cjs +0 -15
- 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-BZYASRVJ.cjs +0 -16
- package/dist/NotesApp-MW37NRSN.js +0 -10
- 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-3ZINDODQ.cjs +0 -16
- package/dist/PdfApp-BUIC5U5H.css +0 -206
- package/dist/PdfApp-ZSYAQP7L.js +0 -10
- package/dist/PdfMenuBar-NLZC6JHS.js +0 -4
- package/dist/PdfMenuBar-QUM72EE4.css +0 -56
- package/dist/PdfMenuBar-WBRTKMLN.cjs +0 -13
- package/dist/SettingsApp-2ZNO7AVY.cjs +0 -20
- package/dist/SettingsApp-JVOSEFH3.css +0 -283
- package/dist/SettingsApp-ODZINK6T.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-MTRIYWV4.cjs +0 -16
- package/dist/UploaderApp-V3WUDCG2.js +0 -10
- package/dist/chunk-25GVAXBU.js +0 -215
- package/dist/chunk-2MYZWMDC.js +0 -444
- package/dist/chunk-2NGIGLVP.cjs +0 -219
- package/dist/chunk-2O3W6TLG.cjs +0 -49
- package/dist/chunk-2PSTHGTD.cjs +0 -42
- package/dist/chunk-2RQX7QBP.cjs +0 -148
- package/dist/chunk-2UW42GAP.cjs +0 -2308
- package/dist/chunk-43W6UDUZ.cjs +0 -19
- package/dist/chunk-4E45FBAH.js +0 -223
- package/dist/chunk-4KIMZJ3L.cjs +0 -88
- package/dist/chunk-4XURSNM4.js +0 -43
- package/dist/chunk-4ZCRYHL6.js +0 -407
- package/dist/chunk-57ZTJB2W.cjs +0 -2329
- package/dist/chunk-5C6IQE42.cjs +0 -35
- package/dist/chunk-5NOHYJNH.js +0 -84
- package/dist/chunk-5YH6AKEO.js +0 -146
- package/dist/chunk-7FGL7HGS.cjs +0 -83
- package/dist/chunk-7HQ6KUIO.cjs +0 -50
- package/dist/chunk-7Y7HB7FB.cjs +0 -53
- package/dist/chunk-ABIAPZ6S.cjs +0 -45
- package/dist/chunk-AU4IENXY.cjs +0 -449
- package/dist/chunk-BFMSPWLP.cjs +0 -165
- package/dist/chunk-BQCD5RAF.cjs +0 -48
- package/dist/chunk-BQL3YXMV.js +0 -17429
- package/dist/chunk-C6BEZNAM.cjs +0 -45
- package/dist/chunk-CV5PUHAE.cjs +0 -86
- package/dist/chunk-D5MVFFID.js +0 -42
- package/dist/chunk-D7R55WWT.js +0 -1601
- package/dist/chunk-DEVJOHGE.cjs +0 -38
- package/dist/chunk-DWP2SYF7.js +0 -55
- package/dist/chunk-E55VXNLK.cjs +0 -17498
- package/dist/chunk-EAELL43F.js +0 -42
- package/dist/chunk-EX5V2ZTU.js +0 -40
- package/dist/chunk-FH4ILMKF.js +0 -38
- package/dist/chunk-FNWS4ZKT.js +0 -48
- package/dist/chunk-FRHBM2U7.js +0 -33
- package/dist/chunk-FX2TPX3L.cjs +0 -45
- package/dist/chunk-GRYCUBJZ.js +0 -9
- package/dist/chunk-HIGKZ7UP.js +0 -2293
- package/dist/chunk-HWHBSAUC.js +0 -40
- package/dist/chunk-HYJJVB7G.js +0 -442
- package/dist/chunk-I5MJXFYW.cjs +0 -34
- package/dist/chunk-IDHP3R4I.js +0 -31
- package/dist/chunk-JEBKLIMU.cjs +0 -123
- package/dist/chunk-JX65IKJZ.cjs +0 -324
- package/dist/chunk-KGMXUBWQ.js +0 -280
- package/dist/chunk-KI5FXBOM.cjs +0 -286
- package/dist/chunk-KQHICFX3.js +0 -121
- package/dist/chunk-LMJE6V4N.cjs +0 -42
- package/dist/chunk-MVDGM5Y4.js +0 -68
- package/dist/chunk-NULEEBCG.js +0 -32
- package/dist/chunk-NVEGEK3N.js +0 -31
- package/dist/chunk-OJIDKDKF.js +0 -68
- package/dist/chunk-PDEZ7BIN.js +0 -541
- package/dist/chunk-PKPQA5NR.js +0 -15
- package/dist/chunk-PNDBLFJW.cjs +0 -50
- package/dist/chunk-PVBI2WRF.js +0 -77
- package/dist/chunk-Q3WA72BF.cjs +0 -70
- package/dist/chunk-QFGHYAD7.cjs +0 -237
- package/dist/chunk-RDIDAZ3S.cjs +0 -9
- package/dist/chunk-RGJPRXYY.js +0 -48
- package/dist/chunk-RQ6OZRUW.cjs +0 -41
- package/dist/chunk-SBE4SZAN.cjs +0 -226
- package/dist/chunk-TGWMOHAO.js +0 -17
- package/dist/chunk-U5JKHQBS.js +0 -234
- package/dist/chunk-UIQCTAVM.cjs +0 -59
- package/dist/chunk-VFPEMNSX.js +0 -47
- package/dist/chunk-VLWKVIYD.js +0 -162
- package/dist/chunk-W2Y22XR6.js +0 -2240
- package/dist/chunk-WHZGUG7Q.js +0 -36
- package/dist/chunk-WSA5WSHN.js +0 -283
- package/dist/chunk-XVASHRCE.cjs +0 -70
- package/dist/chunk-XYSMVQQD.cjs +0 -1608
- package/dist/chunk-Y2WL2M7M.js +0 -86
- package/dist/chunk-YAIWI4Z5.js +0 -7
- package/dist/chunk-YOHBUOZJ.cjs +0 -451
- package/dist/chunk-YP2PLNOF.cjs +0 -34
- package/dist/chunk-YSOLW4FS.cjs +0 -11
- package/dist/chunk-YSWU4OKP.cjs +0 -548
- 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-EAELL43F.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { useVscIcon } from './chunk-YY6OUR2U.js';
|
|
2
|
-
import { createElement } from 'react';
|
|
3
|
-
|
|
4
|
-
// src/utils/getFileExtension.ts
|
|
5
|
-
var getFileExtension = (name) => name.split(".").pop()?.toLowerCase() ?? "";
|
|
6
|
-
var EXTENSION_ICONS = {
|
|
7
|
-
pdf: "VscFilePdf",
|
|
8
|
-
md: "VscMarkdown",
|
|
9
|
-
txt: "VscFile",
|
|
10
|
-
jpg: "VscFileMedia",
|
|
11
|
-
jpeg: "VscFileMedia",
|
|
12
|
-
png: "VscFileMedia",
|
|
13
|
-
gif: "VscFileMedia",
|
|
14
|
-
svg: "VscFileCode",
|
|
15
|
-
ts: "VscFileCode",
|
|
16
|
-
tsx: "VscFileCode",
|
|
17
|
-
js: "VscFileCode",
|
|
18
|
-
jsx: "VscFileCode",
|
|
19
|
-
json: "VscJson",
|
|
20
|
-
html: "VscFileCode",
|
|
21
|
-
css: "VscFileCode"
|
|
22
|
-
};
|
|
23
|
-
var FileIcon = ({ type, name = "", folderNode, fileNode, size = 20 }) => {
|
|
24
|
-
let iconName;
|
|
25
|
-
let iconColor;
|
|
26
|
-
if (type === "folder") {
|
|
27
|
-
iconName = folderNode?.iconName ?? "VscFolder";
|
|
28
|
-
iconColor = folderNode?.iconColor ?? void 0;
|
|
29
|
-
} else if (type === "file" && fileNode?.iconName) {
|
|
30
|
-
iconName = fileNode.iconName;
|
|
31
|
-
iconColor = fileNode.iconColor ?? void 0;
|
|
32
|
-
} else {
|
|
33
|
-
const ext = getFileExtension(name);
|
|
34
|
-
iconName = EXTENSION_ICONS[ext] ?? "VscFile";
|
|
35
|
-
}
|
|
36
|
-
const Icon = useVscIcon(iconName);
|
|
37
|
-
if (!Icon) return null;
|
|
38
|
-
return createElement(Icon, { size, color: iconColor, "aria-hidden": "true" });
|
|
39
|
-
};
|
|
40
|
-
var FileIcon_default = FileIcon;
|
|
41
|
-
|
|
42
|
-
export { FileIcon_default, getFileExtension };
|
package/dist/chunk-EX5V2ZTU.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { PRESET_COLORS } from './chunk-PKPQA5NR.js';
|
|
2
|
-
import { UnstyledButton, ColorInput } from './chunk-BQL3YXMV.js';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
// src/components/Shared/ColorPicker/ColorPicker.module.css
|
|
6
|
-
var ColorPicker_default = {};
|
|
7
|
-
var ColorPicker = ({ value, onChange, error, disabled = false }) => {
|
|
8
|
-
return /* @__PURE__ */ jsxs("div", { className: ColorPicker_default.root, children: [
|
|
9
|
-
/* @__PURE__ */ jsx("div", { className: ColorPicker_default.colorRow, children: PRESET_COLORS.map((color) => /* @__PURE__ */ jsx(
|
|
10
|
-
UnstyledButton,
|
|
11
|
-
{
|
|
12
|
-
className: ColorPicker_default.colorSwatch,
|
|
13
|
-
"data-selected": value === color || void 0,
|
|
14
|
-
"data-disabled": disabled || void 0,
|
|
15
|
-
style: { background: color },
|
|
16
|
-
onClick: () => !disabled && onChange(color),
|
|
17
|
-
"aria-label": `Color ${color}`,
|
|
18
|
-
"aria-pressed": value === color,
|
|
19
|
-
disabled
|
|
20
|
-
},
|
|
21
|
-
color
|
|
22
|
-
)) }),
|
|
23
|
-
/* @__PURE__ */ jsx(
|
|
24
|
-
ColorInput,
|
|
25
|
-
{
|
|
26
|
-
value,
|
|
27
|
-
onChange,
|
|
28
|
-
placeholder: "Custom color",
|
|
29
|
-
size: "xs",
|
|
30
|
-
className: ColorPicker_default.colorInput,
|
|
31
|
-
"aria-label": "Custom color picker",
|
|
32
|
-
error,
|
|
33
|
-
disabled
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
] });
|
|
37
|
-
};
|
|
38
|
-
var ColorPicker_default2 = ColorPicker;
|
|
39
|
-
|
|
40
|
-
export { ColorPicker_default2 as ColorPicker_default };
|
package/dist/chunk-FH4ILMKF.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { create } from 'zustand';
|
|
2
|
-
|
|
3
|
-
// src/components/Apps/NotesApp/notesStore.ts
|
|
4
|
-
var DEFAULT_STATE = {
|
|
5
|
-
isDirty: false,
|
|
6
|
-
contentLoaded: false
|
|
7
|
-
};
|
|
8
|
-
var useNotesStore = 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
|
-
getContentLoaded: (windowId) => get().states[windowId]?.contentLoaded ?? false,
|
|
22
|
-
setContentLoaded: (windowId, loaded) => {
|
|
23
|
-
set((s) => ({
|
|
24
|
-
states: {
|
|
25
|
-
...s.states,
|
|
26
|
-
[windowId]: { ...s.states[windowId] ?? DEFAULT_STATE, contentLoaded: loaded }
|
|
27
|
-
}
|
|
28
|
-
}));
|
|
29
|
-
},
|
|
30
|
-
reset: (windowId) => {
|
|
31
|
-
set((s) => ({
|
|
32
|
-
states: { ...s.states, [windowId]: DEFAULT_STATE }
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
}));
|
|
36
|
-
var useIsDirty = (windowId) => useNotesStore((s) => s.states[windowId]?.isDirty ?? false);
|
|
37
|
-
|
|
38
|
-
export { useIsDirty, useNotesStore };
|
package/dist/chunk-FNWS4ZKT.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { fileSystem, getBaseUrl } from './chunk-W2Y22XR6.js';
|
|
2
|
-
import { isDocker } from './chunk-FRHBM2U7.js';
|
|
3
|
-
import { useMemo, useState, useRef, useEffect } from 'react';
|
|
4
|
-
|
|
5
|
-
function useResolvedUrl(url) {
|
|
6
|
-
const needsBlobResolution = useMemo(
|
|
7
|
-
() => (url?.startsWith("idb://") || isDocker() && url?.startsWith("/api/fs")) ?? false,
|
|
8
|
-
[url]
|
|
9
|
-
);
|
|
10
|
-
const isApiFsUrl = useMemo(() => url?.startsWith("/api/fs") ?? false, [url]);
|
|
11
|
-
const [blobUrl, setBlobUrl] = useState(void 0);
|
|
12
|
-
const revokeRef = useRef(void 0);
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
if (!url || !needsBlobResolution) return;
|
|
15
|
-
let cancelled = false;
|
|
16
|
-
fileSystem.toBlobUrl(url).then((result) => {
|
|
17
|
-
if (cancelled) {
|
|
18
|
-
if (result) URL.revokeObjectURL(result);
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
revokeRef.current = result ?? void 0;
|
|
22
|
-
setBlobUrl(result ?? void 0);
|
|
23
|
-
});
|
|
24
|
-
return () => {
|
|
25
|
-
cancelled = true;
|
|
26
|
-
if (revokeRef.current) {
|
|
27
|
-
URL.revokeObjectURL(revokeRef.current);
|
|
28
|
-
revokeRef.current = void 0;
|
|
29
|
-
}
|
|
30
|
-
setBlobUrl(void 0);
|
|
31
|
-
};
|
|
32
|
-
}, [url, needsBlobResolution]);
|
|
33
|
-
if (!url) return void 0;
|
|
34
|
-
if (isApiFsUrl && needsBlobResolution) {
|
|
35
|
-
return blobUrl;
|
|
36
|
-
}
|
|
37
|
-
if (!needsBlobResolution) {
|
|
38
|
-
if (url.startsWith("/") || url.startsWith("http://") || url.startsWith("https://")) {
|
|
39
|
-
return url;
|
|
40
|
-
}
|
|
41
|
-
const base = getBaseUrl();
|
|
42
|
-
const normalizedBase = base.endsWith("/") ? base : `${base}/`;
|
|
43
|
-
return `${normalizedBase}${url}`;
|
|
44
|
-
}
|
|
45
|
-
return blobUrl;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export { useResolvedUrl };
|
package/dist/chunk-FRHBM2U7.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// src/utils/getRuntime.ts
|
|
2
|
-
function getRuntime() {
|
|
3
|
-
if (typeof window === "undefined") {
|
|
4
|
-
return "browser";
|
|
5
|
-
}
|
|
6
|
-
if (window.__FDE_IN_DOCKER__ === true) {
|
|
7
|
-
return "docker";
|
|
8
|
-
}
|
|
9
|
-
if (typeof navigator !== "undefined" && /Electron/i.test(navigator.userAgent)) {
|
|
10
|
-
return "electron";
|
|
11
|
-
}
|
|
12
|
-
return "browser";
|
|
13
|
-
}
|
|
14
|
-
function isDocker() {
|
|
15
|
-
return getRuntime() === "docker";
|
|
16
|
-
}
|
|
17
|
-
function isElectron() {
|
|
18
|
-
return getRuntime() === "electron";
|
|
19
|
-
}
|
|
20
|
-
function isBrowser() {
|
|
21
|
-
return getRuntime() === "browser";
|
|
22
|
-
}
|
|
23
|
-
function isDev() {
|
|
24
|
-
if (typeof window === "undefined") {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
if (window.__IS_DEV__ === true) {
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
return window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1";
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { getRuntime, isBrowser, isDev, isDocker, isElectron };
|
package/dist/chunk-FX2TPX3L.cjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var zustand = require('zustand');
|
|
4
|
-
|
|
5
|
-
// src/components/Apps/MenuEditApp/menuEditStore.ts
|
|
6
|
-
var useMenuEditStore = zustand.create((set, get) => ({
|
|
7
|
-
windows: {},
|
|
8
|
-
reset: (windowId) => {
|
|
9
|
-
set((state) => ({
|
|
10
|
-
windows: {
|
|
11
|
-
...state.windows,
|
|
12
|
-
[windowId]: { isDirty: false, snapshot: null }
|
|
13
|
-
}
|
|
14
|
-
}));
|
|
15
|
-
},
|
|
16
|
-
setIsDirty: (windowId, isDirty) => {
|
|
17
|
-
set((state) => {
|
|
18
|
-
const windowState = state.windows[windowId];
|
|
19
|
-
if (windowState?.isDirty === isDirty) return state;
|
|
20
|
-
return {
|
|
21
|
-
windows: {
|
|
22
|
-
...state.windows,
|
|
23
|
-
[windowId]: { ...windowState, isDirty }
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
takeSnapshot: (windowId, folders) => {
|
|
29
|
-
set((state) => ({
|
|
30
|
-
windows: {
|
|
31
|
-
...state.windows,
|
|
32
|
-
[windowId]: { isDirty: false, snapshot: folders }
|
|
33
|
-
}
|
|
34
|
-
}));
|
|
35
|
-
},
|
|
36
|
-
getSnapshot: (windowId) => {
|
|
37
|
-
return get().windows[windowId]?.snapshot ?? null;
|
|
38
|
-
}
|
|
39
|
-
}));
|
|
40
|
-
var useIsDirty = (windowId) => {
|
|
41
|
-
return useMenuEditStore((state) => state.windows[windowId]?.isDirty ?? false);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
exports.useIsDirty = useIsDirty;
|
|
45
|
-
exports.useMenuEditStore = useMenuEditStore;
|
package/dist/chunk-GRYCUBJZ.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { useVscIconElement } from './chunk-YY6OUR2U.js';
|
|
2
|
-
|
|
3
|
-
// src/components/Shared/VscIcon.tsx
|
|
4
|
-
var VscIcon = ({ name, size = 20, color }) => {
|
|
5
|
-
return useVscIconElement(name, { size, color }) ?? null;
|
|
6
|
-
};
|
|
7
|
-
var VscIcon_default = VscIcon;
|
|
8
|
-
|
|
9
|
-
export { VscIcon_default };
|