@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-C6BEZNAM.cjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkSBE4SZAN_cjs = require('./chunk-SBE4SZAN.cjs');
|
|
4
|
-
var react = require('react');
|
|
5
|
-
var reactI18next = require('react-i18next');
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
|
|
8
|
-
var usePdfMenuBarElements = (options) => {
|
|
9
|
-
const { contentData, onExit } = options;
|
|
10
|
-
const { t } = reactI18next.useTranslation("common");
|
|
11
|
-
const setPickerOpen = contentData?.setPickerOpen;
|
|
12
|
-
return react.useMemo(() => {
|
|
13
|
-
return [
|
|
14
|
-
{
|
|
15
|
-
type: "menu",
|
|
16
|
-
label: t("menu.file"),
|
|
17
|
-
items: [
|
|
18
|
-
{
|
|
19
|
-
type: "item",
|
|
20
|
-
label: t("actions.open"),
|
|
21
|
-
icon: "FcOpenedFolder",
|
|
22
|
-
onClick: () => setPickerOpen?.()
|
|
23
|
-
},
|
|
24
|
-
{ type: "divider" },
|
|
25
|
-
{
|
|
26
|
-
type: "item",
|
|
27
|
-
label: t("actions.exit"),
|
|
28
|
-
icon: "FcLeft",
|
|
29
|
-
onClick: onExit
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
];
|
|
34
|
-
}, [t, setPickerOpen, onExit]);
|
|
35
|
-
};
|
|
36
|
-
var PdfMenuBar = react.memo(({ windowId, contentData, onExit }) => {
|
|
37
|
-
const elements = usePdfMenuBarElements({
|
|
38
|
-
contentData,
|
|
39
|
-
onExit
|
|
40
|
-
});
|
|
41
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkSBE4SZAN_cjs.AppMenuBar_default, { elements });
|
|
42
|
-
});
|
|
43
|
-
PdfMenuBar.displayName = "PdfMenuBar";
|
|
44
|
-
|
|
45
|
-
exports.PdfMenuBar = PdfMenuBar;
|
package/dist/chunk-CV5PUHAE.cjs
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkSBE4SZAN_cjs = require('./chunk-SBE4SZAN.cjs');
|
|
4
|
-
var chunkUIQCTAVM_cjs = require('./chunk-UIQCTAVM.cjs');
|
|
5
|
-
var react = require('react');
|
|
6
|
-
var reactI18next = require('react-i18next');
|
|
7
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
|
|
9
|
-
var ZOOM_MARKS = [
|
|
10
|
-
{ value: 25, label: "25%" },
|
|
11
|
-
{ value: 50, label: "50%" },
|
|
12
|
-
{ value: 75, label: "75%" },
|
|
13
|
-
{ value: 100, label: "100%" },
|
|
14
|
-
{ value: 200, label: "200%" }
|
|
15
|
-
];
|
|
16
|
-
var useImageViewerMenuBarElements = (options) => {
|
|
17
|
-
const { windowId, onOpenPicker, onExit } = options;
|
|
18
|
-
const { t } = reactI18next.useTranslation("common");
|
|
19
|
-
const { t: tApps } = reactI18next.useTranslation("apps");
|
|
20
|
-
const displayZoom = chunkUIQCTAVM_cjs.useDisplayZoom(windowId);
|
|
21
|
-
const fitToWindow = chunkUIQCTAVM_cjs.useFitToWindow(windowId);
|
|
22
|
-
const setUserZoom = chunkUIQCTAVM_cjs.useImageViewerStore((s) => s.setUserZoom);
|
|
23
|
-
const setFitToWindow = chunkUIQCTAVM_cjs.useImageViewerStore((s) => s.setFitToWindow);
|
|
24
|
-
const handleFitChange = react.useCallback(
|
|
25
|
-
(checked) => setFitToWindow(windowId, checked),
|
|
26
|
-
[windowId, setFitToWindow]
|
|
27
|
-
);
|
|
28
|
-
const handleZoomChange = react.useCallback(
|
|
29
|
-
(value) => setUserZoom(windowId, value),
|
|
30
|
-
[windowId, setUserZoom]
|
|
31
|
-
);
|
|
32
|
-
return react.useMemo(() => {
|
|
33
|
-
const zoomLabel = `${tApps("imageViewer.zoom")}: ${displayZoom}%`;
|
|
34
|
-
return [
|
|
35
|
-
{
|
|
36
|
-
type: "menu",
|
|
37
|
-
label: t("menu.file"),
|
|
38
|
-
items: [
|
|
39
|
-
{
|
|
40
|
-
type: "item",
|
|
41
|
-
label: t("actions.open"),
|
|
42
|
-
icon: "FcOpenedFolder",
|
|
43
|
-
onClick: onOpenPicker ?? (() => {
|
|
44
|
-
})
|
|
45
|
-
},
|
|
46
|
-
{ type: "divider" },
|
|
47
|
-
{
|
|
48
|
-
type: "item",
|
|
49
|
-
label: t("actions.exit"),
|
|
50
|
-
icon: "FcLeft",
|
|
51
|
-
onClick: onExit
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
type: "switch",
|
|
57
|
-
label: tApps("imageViewer.fitToWindow"),
|
|
58
|
-
checked: fitToWindow,
|
|
59
|
-
onChange: handleFitChange
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
type: "slider",
|
|
63
|
-
label: zoomLabel,
|
|
64
|
-
min: 10,
|
|
65
|
-
max: 200,
|
|
66
|
-
value: displayZoom,
|
|
67
|
-
onChange: handleZoomChange,
|
|
68
|
-
marks: ZOOM_MARKS,
|
|
69
|
-
labelFormat: (value) => `${value}%`
|
|
70
|
-
}
|
|
71
|
-
];
|
|
72
|
-
}, [t, tApps, onOpenPicker, onExit, displayZoom, fitToWindow, handleFitChange, handleZoomChange]);
|
|
73
|
-
};
|
|
74
|
-
var ImageViewerMenuBar = react.memo(
|
|
75
|
-
({ windowId, contentData, onExit }) => {
|
|
76
|
-
const elements = useImageViewerMenuBarElements({
|
|
77
|
-
windowId,
|
|
78
|
-
onOpenPicker: contentData?.setPickerOpen,
|
|
79
|
-
onExit
|
|
80
|
-
});
|
|
81
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkSBE4SZAN_cjs.AppMenuBar_default, { elements });
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
ImageViewerMenuBar.displayName = "ImageViewerMenuBar";
|
|
85
|
-
|
|
86
|
-
exports.ImageViewerMenuBar = ImageViewerMenuBar;
|
package/dist/chunk-D5MVFFID.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { create } from 'zustand';
|
|
2
|
-
|
|
3
|
-
// src/components/Apps/MenuEditApp/menuEditStore.ts
|
|
4
|
-
var useMenuEditStore = create((set, get) => ({
|
|
5
|
-
windows: {},
|
|
6
|
-
reset: (windowId) => {
|
|
7
|
-
set((state) => ({
|
|
8
|
-
windows: {
|
|
9
|
-
...state.windows,
|
|
10
|
-
[windowId]: { isDirty: false, snapshot: null }
|
|
11
|
-
}
|
|
12
|
-
}));
|
|
13
|
-
},
|
|
14
|
-
setIsDirty: (windowId, isDirty) => {
|
|
15
|
-
set((state) => {
|
|
16
|
-
const windowState = state.windows[windowId];
|
|
17
|
-
if (windowState?.isDirty === isDirty) return state;
|
|
18
|
-
return {
|
|
19
|
-
windows: {
|
|
20
|
-
...state.windows,
|
|
21
|
-
[windowId]: { ...windowState, isDirty }
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
},
|
|
26
|
-
takeSnapshot: (windowId, folders) => {
|
|
27
|
-
set((state) => ({
|
|
28
|
-
windows: {
|
|
29
|
-
...state.windows,
|
|
30
|
-
[windowId]: { isDirty: false, snapshot: folders }
|
|
31
|
-
}
|
|
32
|
-
}));
|
|
33
|
-
},
|
|
34
|
-
getSnapshot: (windowId) => {
|
|
35
|
-
return get().windows[windowId]?.snapshot ?? null;
|
|
36
|
-
}
|
|
37
|
-
}));
|
|
38
|
-
var useIsDirty = (windowId) => {
|
|
39
|
-
return useMenuEditStore((state) => state.windows[windowId]?.isDirty ?? false);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { useIsDirty, useMenuEditStore };
|