@fde-desktop/fde-core 0.3.8 → 0.4.2

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.
Files changed (148) hide show
  1. package/README.md +419 -68
  2. package/dist/CalendarApp-CHLUCAI7.css +744 -0
  3. package/dist/CalendarApp-K7ZOUZ6C.js +2 -0
  4. package/dist/CalendarApp-OTGEERSS.cjs +8 -0
  5. package/dist/CodeServerApp-5KZGO7HL.css +75 -0
  6. package/dist/CodeServerApp-LUZFCQBI.js +3 -0
  7. package/dist/CodeServerApp-P3TMJPLY.cjs +9 -0
  8. package/dist/CreateItemApp-NAZMXOPK.cjs +14 -0
  9. package/dist/CreateItemApp-PQB5GTFG.css +107 -0
  10. package/dist/CreateItemApp-ZHCTSPQE.js +8 -0
  11. package/dist/DeviceInfoApp-R6YNVIGX.cjs +11 -0
  12. package/dist/DeviceInfoApp-YHCYAO6N.js +5 -0
  13. package/dist/DeviceInfoApp-ZSMRSITP.css +7 -0
  14. package/dist/FilesApp-AKCVRTXR.js +8 -0
  15. package/dist/FilesApp-E6L5W3T2.css +1817 -0
  16. package/dist/FilesApp-RW3Y6ILO.cjs +14 -0
  17. package/dist/ImageViewerApp-5UXNSW2O.js +11 -0
  18. package/dist/ImageViewerApp-N2Q7E7WZ.css +215 -0
  19. package/dist/ImageViewerApp-RRRRKSFN.cjs +17 -0
  20. package/dist/ImageViewerMenuBar-I3TFKQPS.cjs +14 -0
  21. package/dist/ImageViewerMenuBar-TV5C6TM2.js +5 -0
  22. package/dist/ImageViewerMenuBar-XLK4LIHW.css +56 -0
  23. package/dist/MenuEditApp-HUZRFEHE.js +9 -0
  24. package/dist/MenuEditApp-MCUHGTKQ.cjs +15 -0
  25. package/dist/MenuEditApp-YA6HSAMJ.css +94 -0
  26. package/dist/MenuEditMenuBar-7VHMZNRM.css +56 -0
  27. package/dist/MenuEditMenuBar-GF6L4PGZ.cjs +15 -0
  28. package/dist/MenuEditMenuBar-IUXFPZE5.js +6 -0
  29. package/dist/NotesApp-37BV33C6.js +10 -0
  30. package/dist/NotesApp-4EVUQEFZ.cjs +16 -0
  31. package/dist/NotesApp-TQ6IHDNX.css +302 -0
  32. package/dist/NotesMenuBar-25LKN3SE.cjs +15 -0
  33. package/dist/NotesMenuBar-MXLOX7OT.css +56 -0
  34. package/dist/NotesMenuBar-SRV3AIAL.js +6 -0
  35. package/dist/PdfApp-5VBDNRMC.cjs +16 -0
  36. package/dist/PdfApp-BUIC5U5H.css +206 -0
  37. package/dist/PdfApp-RH6MZZX5.js +10 -0
  38. package/dist/PdfMenuBar-NLZC6JHS.js +4 -0
  39. package/dist/PdfMenuBar-QUM72EE4.css +56 -0
  40. package/dist/PdfMenuBar-WBRTKMLN.cjs +13 -0
  41. package/dist/SettingsApp-5LDHEHYV.cjs +20 -0
  42. package/dist/SettingsApp-JVOSEFH3.css +283 -0
  43. package/dist/SettingsApp-X6764D7T.js +14 -0
  44. package/dist/SettingsMenuBar-5CBSSMVM.css +56 -0
  45. package/dist/SettingsMenuBar-VLT6TTCM.js +6 -0
  46. package/dist/SettingsMenuBar-Y5QEXDEO.cjs +15 -0
  47. package/dist/StorybookApp-NQ244BER.css +7 -0
  48. package/dist/StorybookApp-NZDV4X3Y.js +1 -0
  49. package/dist/StorybookApp-VF3KIMU3.cjs +7 -0
  50. package/dist/TerminalApp-CDGWRBFJ.cjs +10 -0
  51. package/dist/TerminalApp-EAATMIMX.css +77 -0
  52. package/dist/TerminalApp-GCKJCM55.js +4 -0
  53. package/dist/TerminalMenuBar-3J26O26Q.css +56 -0
  54. package/dist/TerminalMenuBar-7BH7MGNJ.cjs +14 -0
  55. package/dist/TerminalMenuBar-7JAEQUZ4.js +5 -0
  56. package/dist/UploaderApp-2WYRCUQV.js +10 -0
  57. package/dist/UploaderApp-6KV3TGCT.css +1817 -0
  58. package/dist/UploaderApp-EYFC36PM.cjs +16 -0
  59. package/dist/chunk-2FO445RM.cjs +449 -0
  60. package/dist/chunk-2PSTHGTD.cjs +42 -0
  61. package/dist/chunk-2RQX7QBP.cjs +148 -0
  62. package/dist/chunk-3IICBLEA.js +442 -0
  63. package/dist/chunk-43W6UDUZ.cjs +19 -0
  64. package/dist/chunk-4E45FBAH.js +223 -0
  65. package/dist/chunk-4MCFQPKY.js +444 -0
  66. package/dist/chunk-4OH5RPSQ.cjs +38 -0
  67. package/dist/chunk-4XURSNM4.js +43 -0
  68. package/dist/chunk-4ZCRYHL6.js +407 -0
  69. package/dist/chunk-54PYEQLK.js +283 -0
  70. package/dist/chunk-5C6IQE42.cjs +35 -0
  71. package/dist/chunk-5NOHYJNH.js +84 -0
  72. package/dist/chunk-5PYK5ASL.js +162 -0
  73. package/dist/chunk-5YH6AKEO.js +146 -0
  74. package/dist/chunk-657BJOY5.cjs +324 -0
  75. package/dist/chunk-6QOUYSEE.cjs +2303 -0
  76. package/dist/chunk-7SAFECOJ.js +215 -0
  77. package/dist/chunk-7Y7HB7FB.cjs +53 -0
  78. package/dist/chunk-ABIAPZ6S.cjs +45 -0
  79. package/dist/chunk-AQL372JF.cjs +219 -0
  80. package/dist/chunk-AXDUVZVP.cjs +88 -0
  81. package/dist/chunk-AYFNYHMP.js +541 -0
  82. package/dist/chunk-BDO6B7MZ.cjs +451 -0
  83. package/dist/chunk-BKXEA2BK.cjs +286 -0
  84. package/dist/chunk-BLV47DX2.js +47 -0
  85. package/dist/chunk-BQCD5RAF.cjs +48 -0
  86. package/dist/chunk-BQL3YXMV.js +17429 -0
  87. package/dist/chunk-C6BEZNAM.cjs +45 -0
  88. package/dist/chunk-CFWV2JMR.js +234 -0
  89. package/dist/chunk-CV5PUHAE.cjs +86 -0
  90. package/dist/chunk-D5MVFFID.js +42 -0
  91. package/dist/chunk-D7R55WWT.js +1601 -0
  92. package/dist/chunk-DMNF4CNN.cjs +49 -0
  93. package/dist/chunk-DWP2SYF7.js +55 -0
  94. package/dist/chunk-E55VXNLK.cjs +17498 -0
  95. package/dist/chunk-EAELL43F.js +42 -0
  96. package/dist/chunk-EUQLZW6P.js +48 -0
  97. package/dist/chunk-EX5V2ZTU.js +40 -0
  98. package/dist/chunk-FH4ILMKF.js +38 -0
  99. package/dist/chunk-FRHBM2U7.js +33 -0
  100. package/dist/chunk-FX2TPX3L.cjs +45 -0
  101. package/dist/chunk-GCYD6T52.js +32 -0
  102. package/dist/chunk-GRYCUBJZ.js +9 -0
  103. package/dist/chunk-HWHBSAUC.js +40 -0
  104. package/dist/chunk-ICUE6T7J.cjs +50 -0
  105. package/dist/chunk-IDHP3R4I.js +31 -0
  106. package/dist/chunk-IUOQPOEN.js +2293 -0
  107. package/dist/chunk-J7L2S2GT.cjs +34 -0
  108. package/dist/chunk-JEBKLIMU.cjs +123 -0
  109. package/dist/chunk-KQHICFX3.js +121 -0
  110. package/dist/chunk-LMJE6V4N.cjs +42 -0
  111. package/dist/chunk-MVDGM5Y4.js +68 -0
  112. package/dist/chunk-NVEGEK3N.js +31 -0
  113. package/dist/chunk-NWMSWRUD.js +2236 -0
  114. package/dist/chunk-ODXL6BR3.js +77 -0
  115. package/dist/chunk-OJIDKDKF.js +68 -0
  116. package/dist/chunk-PKPQA5NR.js +15 -0
  117. package/dist/chunk-PNDBLFJW.cjs +50 -0
  118. package/dist/chunk-PYTKNRGM.js +280 -0
  119. package/dist/chunk-Q3WA72BF.cjs +70 -0
  120. package/dist/chunk-QB72BLCJ.cjs +237 -0
  121. package/dist/chunk-QHBBLML3.js +86 -0
  122. package/dist/chunk-RDIDAZ3S.cjs +9 -0
  123. package/dist/chunk-RGJPRXYY.js +48 -0
  124. package/dist/chunk-RQ6OZRUW.cjs +41 -0
  125. package/dist/chunk-SBE4SZAN.cjs +226 -0
  126. package/dist/chunk-SYGUWGWK.cjs +2329 -0
  127. package/dist/chunk-TDZ43MUX.cjs +165 -0
  128. package/dist/chunk-TGWMOHAO.js +17 -0
  129. package/dist/chunk-U4RYIS6Z.cjs +548 -0
  130. package/dist/chunk-UIQCTAVM.cjs +59 -0
  131. package/dist/chunk-XVASHRCE.cjs +70 -0
  132. package/dist/chunk-XYSMVQQD.cjs +1608 -0
  133. package/dist/chunk-YAIWI4Z5.js +7 -0
  134. package/dist/chunk-YP2PLNOF.cjs +34 -0
  135. package/dist/chunk-YSOLW4FS.cjs +11 -0
  136. package/dist/chunk-YY6OUR2U.js +44 -0
  137. package/dist/chunk-YZWS7FDT.cjs +409 -0
  138. package/dist/chunk-Z5YGWL65.cjs +39 -0
  139. package/dist/chunk-ZBGWYTCU.cjs +83 -0
  140. package/dist/chunk-ZHB5Q2M6.js +36 -0
  141. package/dist/chunk-ZHNDXNL4.js +45 -0
  142. package/dist/chunk-ZX3EDZ5C.cjs +17 -0
  143. package/dist/index.cjs +4405 -5156
  144. package/dist/index.css +9192 -0
  145. package/dist/index.d.cts +1324 -762
  146. package/dist/index.d.ts +1324 -762
  147. package/dist/index.js +3648 -5038
  148. package/package.json +14 -6
@@ -0,0 +1,165 @@
1
+ 'use strict';
2
+
3
+ var chunk4OH5RPSQ_cjs = require('./chunk-4OH5RPSQ.cjs');
4
+ var chunk6QOUYSEE_cjs = require('./chunk-6QOUYSEE.cjs');
5
+ var chunkZ5YGWL65_cjs = require('./chunk-Z5YGWL65.cjs');
6
+ var chunkE55VXNLK_cjs = require('./chunk-E55VXNLK.cjs');
7
+ var react = require('react');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+
10
+ var getIsMobile = () => {
11
+ const width = window.innerWidth;
12
+ const isCoarsePointer = window.matchMedia("(pointer: coarse)").matches;
13
+ return width < chunk6QOUYSEE_cjs.BREAKPOINTS.MOBILE || isCoarsePointer;
14
+ };
15
+ var getIsTablet = () => {
16
+ const width = window.innerWidth;
17
+ return width >= chunk6QOUYSEE_cjs.BREAKPOINTS.MOBILE && width < chunk6QOUYSEE_cjs.BREAKPOINTS.TABLET;
18
+ };
19
+ var getIsDesktop = () => {
20
+ const width = window.innerWidth;
21
+ return width >= chunk6QOUYSEE_cjs.BREAKPOINTS.TABLET;
22
+ };
23
+ var getIsPortrait = () => {
24
+ if (screen.orientation) {
25
+ return screen.orientation.type.includes("portrait");
26
+ }
27
+ return window.innerHeight > window.innerWidth;
28
+ };
29
+ function useDeviceDetection() {
30
+ const [deviceInfo, setDeviceInfo] = react.useState(() => ({
31
+ isMobile: getIsMobile(),
32
+ isTablet: getIsTablet(),
33
+ isDesktop: getIsDesktop(),
34
+ isPortrait: getIsPortrait(),
35
+ shouldShowWarning: getIsMobile() && getIsPortrait(),
36
+ screenWidth: window.innerWidth,
37
+ screenHeight: window.innerHeight
38
+ }));
39
+ const updateDeviceInfo = react.useCallback(() => {
40
+ const isMobile = getIsMobile();
41
+ const isPortrait = getIsPortrait();
42
+ setDeviceInfo({
43
+ isMobile,
44
+ isTablet: getIsTablet(),
45
+ isDesktop: getIsDesktop(),
46
+ isPortrait,
47
+ shouldShowWarning: isMobile && isPortrait,
48
+ screenWidth: window.innerWidth,
49
+ screenHeight: window.innerHeight
50
+ });
51
+ }, []);
52
+ react.useEffect(() => {
53
+ window.addEventListener("resize", updateDeviceInfo);
54
+ screen.orientation?.addEventListener?.("change", updateDeviceInfo);
55
+ return () => {
56
+ window.removeEventListener("resize", updateDeviceInfo);
57
+ screen.orientation?.removeEventListener?.("change", updateDeviceInfo);
58
+ };
59
+ }, [updateDeviceInfo]);
60
+ return deviceInfo;
61
+ }
62
+
63
+ // src/components/Apps/DeviceInfoApp/DeviceInfoApp.module.css
64
+ var DeviceInfoApp_default = {};
65
+ var DeviceInfoApp = ({ window: win, notifyReady }) => {
66
+ const device = useDeviceDetection();
67
+ const dimensions = chunk4OH5RPSQ_cjs.useAdaptiveDimensions();
68
+ const viewportWidth = chunk6QOUYSEE_cjs.useDesktopStore((state) => state.viewportWidth);
69
+ const viewportHeight = chunk6QOUYSEE_cjs.useDesktopStore((state) => state.viewportHeight);
70
+ const setViewportSize = chunk6QOUYSEE_cjs.useDesktopStore((state) => state.setViewportSize);
71
+ react.useEffect(() => {
72
+ notifyReady?.({});
73
+ }, [notifyReady]);
74
+ react.useEffect(() => {
75
+ const handleResize = () => {
76
+ setViewportSize(window.innerWidth, window.innerHeight);
77
+ };
78
+ handleResize();
79
+ window.addEventListener("resize", handleResize);
80
+ return () => window.removeEventListener("resize", handleResize);
81
+ }, [setViewportSize]);
82
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: DeviceInfoApp_default.container, "data-windowid": win?.id, children: [
83
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Paper, { p: "sm", shadow: "sm", withBorder: true, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Stack, { gap: "xs", children: [
84
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Text, { fw: "bold", size: "sm", children: "Runtime Environment" }),
85
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
86
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "isDocker:" }),
87
+ " ",
88
+ String(chunkZ5YGWL65_cjs.isDocker())
89
+ ] }),
90
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
91
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "isDev:" }),
92
+ " ",
93
+ String(chunkZ5YGWL65_cjs.isDev())
94
+ ] })
95
+ ] }) }),
96
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Paper, { p: "sm", shadow: "sm", withBorder: true, mt: "sm", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Stack, { gap: "xs", children: [
97
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Text, { fw: "bold", size: "sm", children: "Device Detection" }),
98
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
99
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "isMobile:" }),
100
+ " ",
101
+ String(device.isMobile)
102
+ ] }),
103
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
104
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "isTablet:" }),
105
+ " ",
106
+ String(device.isTablet)
107
+ ] }),
108
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
109
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "isDesktop:" }),
110
+ " ",
111
+ String(device.isDesktop)
112
+ ] }),
113
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
114
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "isPortrait:" }),
115
+ " ",
116
+ String(device.isPortrait)
117
+ ] }),
118
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
119
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "shouldShowWarning:" }),
120
+ " ",
121
+ String(device.shouldShowWarning)
122
+ ] }),
123
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
124
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "viewportWidth:" }),
125
+ " ",
126
+ viewportWidth,
127
+ "px"
128
+ ] }),
129
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
130
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "viewportHeight:" }),
131
+ " ",
132
+ viewportHeight,
133
+ "px"
134
+ ] }),
135
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
136
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "defaultWidth:" }),
137
+ " ",
138
+ dimensions.defaultWidth,
139
+ "px"
140
+ ] }),
141
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
142
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "defaultHeight:" }),
143
+ " ",
144
+ dimensions.defaultHeight,
145
+ "px"
146
+ ] }),
147
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
148
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "minWidth:" }),
149
+ " ",
150
+ dimensions.minWidth,
151
+ "px"
152
+ ] }),
153
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
154
+ /* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "minHeight:" }),
155
+ " ",
156
+ dimensions.minHeight,
157
+ "px"
158
+ ] })
159
+ ] }) })
160
+ ] });
161
+ };
162
+ var DeviceInfoApp_default2 = DeviceInfoApp;
163
+
164
+ exports.DeviceInfoApp_default = DeviceInfoApp_default2;
165
+ exports.useDeviceDetection = useDeviceDetection;
@@ -0,0 +1,17 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+
3
+ // src/components/Apps/StorybookApp/StorybookApp.module.css
4
+ var StorybookApp_default = {};
5
+ var STORYBOOK_URL = "https://frannunpal.github.io/storybook/";
6
+ var StorybookApp = () => /* @__PURE__ */ jsx(
7
+ "iframe",
8
+ {
9
+ src: STORYBOOK_URL,
10
+ className: StorybookApp_default.frame,
11
+ title: "Storybook",
12
+ "aria-label": "Storybook component explorer"
13
+ }
14
+ );
15
+ var StorybookApp_default2 = StorybookApp;
16
+
17
+ export { StorybookApp_default2 as StorybookApp_default };