@quanta-intellect/vessel-browser 0.1.118 → 0.1.121
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/out/main/index.js +673 -408
- package/out/preload/index.js +10 -0
- package/out/renderer/assets/{index-COyRPuS5.js → index-DvhZyq1k.js} +600 -478
- package/out/renderer/index.html +1 -1
- package/package.json +1 -1
package/out/preload/index.js
CHANGED
|
@@ -45,6 +45,9 @@ const Channels = {
|
|
|
45
45
|
SIDEBAR_RESIZE: "ui:sidebar-resize",
|
|
46
46
|
SIDEBAR_RESIZE_START: "ui:sidebar-resize-start",
|
|
47
47
|
SIDEBAR_RESIZE_COMMIT: "ui:sidebar-resize-commit",
|
|
48
|
+
SIDEBAR_POPOUT: "ui:sidebar-popout",
|
|
49
|
+
SIDEBAR_DOCK: "ui:sidebar-dock",
|
|
50
|
+
SIDEBAR_STATE_UPDATE: "ui:sidebar-state-update",
|
|
48
51
|
SIDEBAR_CONTEXT_MENU: "ui:sidebar-context-menu",
|
|
49
52
|
FOCUS_MODE_TOGGLE: "ui:focus-mode-toggle",
|
|
50
53
|
SETTINGS_VISIBILITY: "ui:settings-visibility",
|
|
@@ -375,6 +378,8 @@ const api = {
|
|
|
375
378
|
startSidebarResize: () => electron.ipcRenderer.invoke(Channels.SIDEBAR_RESIZE_START),
|
|
376
379
|
resizeSidebar: (width) => electron.ipcRenderer.invoke(Channels.SIDEBAR_RESIZE, width),
|
|
377
380
|
commitSidebarResize: () => electron.ipcRenderer.invoke(Channels.SIDEBAR_RESIZE_COMMIT),
|
|
381
|
+
popOutSidebar: () => electron.ipcRenderer.invoke(Channels.SIDEBAR_POPOUT),
|
|
382
|
+
dockSidebar: () => electron.ipcRenderer.invoke(Channels.SIDEBAR_DOCK),
|
|
378
383
|
rendererReady: (view) => electron.ipcRenderer.send(Channels.RENDERER_VIEW_READY, view),
|
|
379
384
|
onSidebarContextMenu: (cb) => {
|
|
380
385
|
const handler = (_, position) => cb(position);
|
|
@@ -386,6 +391,11 @@ const api = {
|
|
|
386
391
|
electron.ipcRenderer.on(Channels.SIDEBAR_NAVIGATE, handler);
|
|
387
392
|
return () => electron.ipcRenderer.removeListener(Channels.SIDEBAR_NAVIGATE, handler);
|
|
388
393
|
},
|
|
394
|
+
onSidebarStateUpdate: (cb) => {
|
|
395
|
+
const handler = (_, state) => cb(state);
|
|
396
|
+
electron.ipcRenderer.on(Channels.SIDEBAR_STATE_UPDATE, handler);
|
|
397
|
+
return () => electron.ipcRenderer.removeListener(Channels.SIDEBAR_STATE_UPDATE, handler);
|
|
398
|
+
},
|
|
389
399
|
toggleFocusMode: () => electron.ipcRenderer.invoke(Channels.FOCUS_MODE_TOGGLE),
|
|
390
400
|
setSettingsVisibility: (open) => electron.ipcRenderer.invoke(Channels.SETTINGS_VISIBILITY, open)
|
|
391
401
|
},
|