@quanta-intellect/vessel-browser 0.1.69 → 0.1.71
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/preload/index.js
CHANGED
|
@@ -78,6 +78,17 @@ const Channels = {
|
|
|
78
78
|
DEVTOOLS_PANEL_RESIZE: "devtools-panel:resize",
|
|
79
79
|
// Ad blocking
|
|
80
80
|
TAB_TOGGLE_AD_BLOCK: "tab:toggle-ad-block",
|
|
81
|
+
// Zoom
|
|
82
|
+
TAB_ZOOM_IN: "tab:zoom-in",
|
|
83
|
+
TAB_ZOOM_OUT: "tab:zoom-out",
|
|
84
|
+
TAB_ZOOM_RESET: "tab:zoom-reset",
|
|
85
|
+
// Closed tabs / duplication
|
|
86
|
+
TAB_REOPEN_CLOSED: "tab:reopen-closed",
|
|
87
|
+
TAB_DUPLICATE: "tab:duplicate",
|
|
88
|
+
TAB_CONTEXT_MENU: "tab:context-menu",
|
|
89
|
+
// Private browsing
|
|
90
|
+
OPEN_PRIVATE_WINDOW: "private:open-window",
|
|
91
|
+
IS_PRIVATE_MODE: "private:is-private",
|
|
81
92
|
// Find in page
|
|
82
93
|
FIND_IN_PAGE_START: "find:start",
|
|
83
94
|
FIND_IN_PAGE_NEXT: "find:next",
|
|
@@ -146,6 +157,14 @@ const api = {
|
|
|
146
157
|
forward: (id) => electron.ipcRenderer.invoke(Channels.TAB_FORWARD, id),
|
|
147
158
|
reload: (id) => electron.ipcRenderer.invoke(Channels.TAB_RELOAD, id),
|
|
148
159
|
toggleAdBlock: (id) => electron.ipcRenderer.invoke(Channels.TAB_TOGGLE_AD_BLOCK, id),
|
|
160
|
+
zoomIn: (id) => electron.ipcRenderer.invoke(Channels.TAB_ZOOM_IN, id),
|
|
161
|
+
zoomOut: (id) => electron.ipcRenderer.invoke(Channels.TAB_ZOOM_OUT, id),
|
|
162
|
+
zoomReset: (id) => electron.ipcRenderer.invoke(Channels.TAB_ZOOM_RESET, id),
|
|
163
|
+
reopenClosed: () => electron.ipcRenderer.invoke(Channels.TAB_REOPEN_CLOSED),
|
|
164
|
+
duplicate: (id) => electron.ipcRenderer.invoke(Channels.TAB_DUPLICATE, id),
|
|
165
|
+
showContextMenu: (id) => electron.ipcRenderer.send(Channels.TAB_CONTEXT_MENU, id),
|
|
166
|
+
openPrivateWindow: () => electron.ipcRenderer.invoke(Channels.OPEN_PRIVATE_WINDOW),
|
|
167
|
+
isPrivateMode: () => electron.ipcRenderer.invoke(Channels.IS_PRIVATE_MODE),
|
|
149
168
|
getState: () => electron.ipcRenderer.invoke(Channels.TAB_STATE_GET),
|
|
150
169
|
onStateUpdate: (cb) => {
|
|
151
170
|
const handler = (_, tabs, activeId) => cb(tabs, activeId);
|