ywana-core8 0.2.18 → 0.2.20
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/index.js +27 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +27 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +27 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/desktop/ApplicationMenu.js +0 -1
- package/src/desktop/index.js +1 -0
package/dist/index.modern.js
CHANGED
@@ -32659,6 +32659,26 @@ const useWindowInstance = () => {
|
|
32659
32659
|
}
|
32660
32660
|
return context;
|
32661
32661
|
};
|
32662
|
+
const useWindowDialogs = () => {
|
32663
|
+
const { dialogs, showDialog, hideDialog, hideAllDialogs } = useWindowInstance();
|
32664
|
+
return { dialogs, showDialog, hideDialog, hideAllDialogs };
|
32665
|
+
};
|
32666
|
+
const useWindowNotifications = () => {
|
32667
|
+
const { notifications, showNotification, hideNotification, hideAllNotifications } = useWindowInstance();
|
32668
|
+
return { notifications, showNotification, hideNotification, hideAllNotifications };
|
32669
|
+
};
|
32670
|
+
const useWindowTooltips = () => {
|
32671
|
+
const { tooltips, showTooltip, hideTooltip, hideAllTooltips } = useWindowInstance();
|
32672
|
+
return { tooltips, showTooltip, hideTooltip, hideAllTooltips };
|
32673
|
+
};
|
32674
|
+
const useWindowContextMenus = () => {
|
32675
|
+
const { contextMenus, showContextMenu, hideContextMenu, hideAllContextMenus } = useWindowInstance();
|
32676
|
+
return { contextMenus, showContextMenu, hideContextMenu, hideAllContextMenus };
|
32677
|
+
};
|
32678
|
+
const useWindowOverlays = () => {
|
32679
|
+
const { overlays, showOverlay, hideOverlay, hideAllOverlays } = useWindowInstance();
|
32680
|
+
return { overlays, showOverlay, hideOverlay, hideAllOverlays };
|
32681
|
+
};
|
32662
32682
|
const FloatingElementsRenderer = () => {
|
32663
32683
|
const { dialogs, notifications, tooltips, contextMenus, overlays } = useWindowInstance();
|
32664
32684
|
return /* @__PURE__ */ React.createElement("div", { className: "window-floating-elements" }, overlays.map((overlay) => /* @__PURE__ */ React.createElement("div", { key: overlay.id, className: "window-overlay" }, /* @__PURE__ */ React.createElement("div", { className: "window-overlay__content" }, overlay.content, overlay.showCloseButton !== false && /* @__PURE__ */ React.createElement(
|
@@ -32734,7 +32754,6 @@ const FloatingElementsRenderer = () => {
|
|
32734
32754
|
)));
|
32735
32755
|
};
|
32736
32756
|
const ApplicationMenu = ({ isOpen, onClose }) => {
|
32737
|
-
console.log("ApplicationMenu render - isOpen:", isOpen, "onClose:", onClose);
|
32738
32757
|
const appManager = useAppManager();
|
32739
32758
|
const [searchTerm, setSearchTerm] = useState("");
|
32740
32759
|
const [selectedCategory, setSelectedCategory] = useState("all");
|
@@ -43399,6 +43418,7 @@ export {
|
|
43399
43418
|
ViewerTest,
|
43400
43419
|
WaitScreen,
|
43401
43420
|
Window,
|
43421
|
+
WindowInstanceProvider,
|
43402
43422
|
WindowManager,
|
43403
43423
|
WindowProvider,
|
43404
43424
|
Wizard,
|
@@ -43412,7 +43432,13 @@ export {
|
|
43412
43432
|
useCreateWindow,
|
43413
43433
|
useHashPage,
|
43414
43434
|
useWindow,
|
43435
|
+
useWindowContextMenus,
|
43436
|
+
useWindowDialogs,
|
43437
|
+
useWindowInstance,
|
43438
|
+
useWindowNotifications,
|
43439
|
+
useWindowOverlays,
|
43415
43440
|
useWindowStats,
|
43441
|
+
useWindowTooltips,
|
43416
43442
|
useWindows,
|
43417
43443
|
validatePassword
|
43418
43444
|
};
|