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.js
CHANGED
@@ -32661,6 +32661,26 @@ const useWindowInstance = () => {
|
|
32661
32661
|
}
|
32662
32662
|
return context;
|
32663
32663
|
};
|
32664
|
+
const useWindowDialogs = () => {
|
32665
|
+
const { dialogs, showDialog, hideDialog, hideAllDialogs } = useWindowInstance();
|
32666
|
+
return { dialogs, showDialog, hideDialog, hideAllDialogs };
|
32667
|
+
};
|
32668
|
+
const useWindowNotifications = () => {
|
32669
|
+
const { notifications, showNotification, hideNotification, hideAllNotifications } = useWindowInstance();
|
32670
|
+
return { notifications, showNotification, hideNotification, hideAllNotifications };
|
32671
|
+
};
|
32672
|
+
const useWindowTooltips = () => {
|
32673
|
+
const { tooltips, showTooltip, hideTooltip, hideAllTooltips } = useWindowInstance();
|
32674
|
+
return { tooltips, showTooltip, hideTooltip, hideAllTooltips };
|
32675
|
+
};
|
32676
|
+
const useWindowContextMenus = () => {
|
32677
|
+
const { contextMenus, showContextMenu, hideContextMenu, hideAllContextMenus } = useWindowInstance();
|
32678
|
+
return { contextMenus, showContextMenu, hideContextMenu, hideAllContextMenus };
|
32679
|
+
};
|
32680
|
+
const useWindowOverlays = () => {
|
32681
|
+
const { overlays, showOverlay, hideOverlay, hideAllOverlays } = useWindowInstance();
|
32682
|
+
return { overlays, showOverlay, hideOverlay, hideAllOverlays };
|
32683
|
+
};
|
32664
32684
|
const FloatingElementsRenderer = () => {
|
32665
32685
|
const { dialogs, notifications, tooltips, contextMenus, overlays } = useWindowInstance();
|
32666
32686
|
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(
|
@@ -32736,7 +32756,6 @@ const FloatingElementsRenderer = () => {
|
|
32736
32756
|
)));
|
32737
32757
|
};
|
32738
32758
|
const ApplicationMenu = ({ isOpen, onClose }) => {
|
32739
|
-
console.log("ApplicationMenu render - isOpen:", isOpen, "onClose:", onClose);
|
32740
32759
|
const appManager = useAppManager();
|
32741
32760
|
const [searchTerm, setSearchTerm] = React.useState("");
|
32742
32761
|
const [selectedCategory, setSelectedCategory] = React.useState("all");
|
@@ -43400,6 +43419,7 @@ exports.Viewer = Viewer;
|
|
43400
43419
|
exports.ViewerTest = ViewerTest;
|
43401
43420
|
exports.WaitScreen = WaitScreen;
|
43402
43421
|
exports.Window = Window;
|
43422
|
+
exports.WindowInstanceProvider = WindowInstanceProvider;
|
43403
43423
|
exports.WindowManager = WindowManager;
|
43404
43424
|
exports.WindowProvider = WindowProvider;
|
43405
43425
|
exports.Wizard = Wizard;
|
@@ -43413,7 +43433,13 @@ exports.useApplicationMenu = useApplicationMenu;
|
|
43413
43433
|
exports.useCreateWindow = useCreateWindow;
|
43414
43434
|
exports.useHashPage = useHashPage;
|
43415
43435
|
exports.useWindow = useWindow;
|
43436
|
+
exports.useWindowContextMenus = useWindowContextMenus;
|
43437
|
+
exports.useWindowDialogs = useWindowDialogs;
|
43438
|
+
exports.useWindowInstance = useWindowInstance;
|
43439
|
+
exports.useWindowNotifications = useWindowNotifications;
|
43440
|
+
exports.useWindowOverlays = useWindowOverlays;
|
43416
43441
|
exports.useWindowStats = useWindowStats;
|
43442
|
+
exports.useWindowTooltips = useWindowTooltips;
|
43417
43443
|
exports.useWindows = useWindows;
|
43418
43444
|
exports.validatePassword = validatePassword;
|
43419
43445
|
//# sourceMappingURL=index.js.map
|