@servantcdh/ez-planet-labeling 0.5.24 → 0.5.26

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 (2) hide show
  1. package/dist/index.js +16 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3589,7 +3589,7 @@ const LIB_AUTHOR = "최동호";
3589
3589
  const LIB_CONTACT = "servantcdh@naver.com";
3590
3590
  const __EZ_PLANET_META__ = Object.freeze({
3591
3591
  name: LIB_NAME,
3592
- version: "0.5.24",
3592
+ version: "0.5.26",
3593
3593
  author: LIB_AUTHOR,
3594
3594
  contact: LIB_CONTACT,
3595
3595
  license: "Proprietary — See LICENSE"
@@ -18692,6 +18692,9 @@ const useImageLabelingUIMeta = ({
18692
18692
  setSelectedSubToolId(tool == null ? void 0 : tool.id);
18693
18693
  setLastSelectedType("subTool");
18694
18694
  }
18695
+ if (tool && tool.id !== "seg-anything" && useExtensionFloatingPanelStore.getState().activePanelId) {
18696
+ useExtensionFloatingPanelStore.getState().closePanel();
18697
+ }
18695
18698
  setIsActiveSubToolPanel(false);
18696
18699
  }, [tool, setSelectedSubToolId]);
18697
18700
  useEffect(() => {
@@ -21016,6 +21019,18 @@ function WorkspaceImageSection({
21016
21019
  setNavigationActive(!navigationActive);
21017
21020
  event.preventDefault();
21018
21021
  break;
21022
+ default: {
21023
+ const extItems = useToolbarSubMenuItemsStore.getState().items;
21024
+ const matched = extItems.find((ext) => {
21025
+ var _a2;
21026
+ return ((_a2 = ext.shortcut) == null ? void 0 : _a2.key) === key;
21027
+ });
21028
+ if (matched) {
21029
+ matched.onClick();
21030
+ event.preventDefault();
21031
+ }
21032
+ break;
21033
+ }
21019
21034
  }
21020
21035
  };
21021
21036
  window.addEventListener("keydown", handleToolShortcut);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servantcdh/ez-planet-labeling",
3
- "version": "0.5.24",
3
+ "version": "0.5.26",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",