@quanta-intellect/vessel-browser 0.1.14 → 0.1.15
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/README.md +1 -1
- package/out/main/index.js +1195 -505
- package/out/preload/index.js +32 -1
- package/out/renderer/assets/{index-CvRVBELV.js → index-DSaws_sH.js} +313 -307
- package/out/renderer/index.html +2 -1
- package/package.json +1 -1
package/out/preload/index.js
CHANGED
|
@@ -63,6 +63,17 @@ const Channels = {
|
|
|
63
63
|
// DevTools panel
|
|
64
64
|
DEVTOOLS_PANEL_TOGGLE: "devtools-panel:toggle",
|
|
65
65
|
DEVTOOLS_PANEL_STATE: "devtools-panel:state",
|
|
66
|
+
DEVTOOLS_PANEL_RESIZE: "devtools-panel:resize",
|
|
67
|
+
// Find in page
|
|
68
|
+
FIND_IN_PAGE_START: "find:start",
|
|
69
|
+
FIND_IN_PAGE_NEXT: "find:next",
|
|
70
|
+
FIND_IN_PAGE_STOP: "find:stop",
|
|
71
|
+
FIND_IN_PAGE_RESULT: "find:result",
|
|
72
|
+
// Browsing history
|
|
73
|
+
HISTORY_GET: "history:get",
|
|
74
|
+
HISTORY_SEARCH: "history:search",
|
|
75
|
+
HISTORY_CLEAR: "history:clear",
|
|
76
|
+
HISTORY_UPDATE: "history:update",
|
|
66
77
|
// Window controls
|
|
67
78
|
WINDOW_MINIMIZE: "window:minimize",
|
|
68
79
|
WINDOW_MAXIMIZE: "window:maximize",
|
|
@@ -185,13 +196,33 @@ const api = {
|
|
|
185
196
|
},
|
|
186
197
|
devtoolsPanel: {
|
|
187
198
|
toggle: () => electron.ipcRenderer.invoke(Channels.DEVTOOLS_PANEL_TOGGLE),
|
|
188
|
-
resize: (height) => electron.ipcRenderer.invoke(
|
|
199
|
+
resize: (height) => electron.ipcRenderer.invoke(Channels.DEVTOOLS_PANEL_RESIZE, height),
|
|
189
200
|
onStateUpdate: (cb) => {
|
|
190
201
|
const handler = (_, state) => cb(state);
|
|
191
202
|
electron.ipcRenderer.on(Channels.DEVTOOLS_PANEL_STATE, handler);
|
|
192
203
|
return () => electron.ipcRenderer.removeListener(Channels.DEVTOOLS_PANEL_STATE, handler);
|
|
193
204
|
}
|
|
194
205
|
},
|
|
206
|
+
find: {
|
|
207
|
+
start: (text, options) => electron.ipcRenderer.invoke(Channels.FIND_IN_PAGE_START, text, options),
|
|
208
|
+
next: (forward) => electron.ipcRenderer.invoke(Channels.FIND_IN_PAGE_NEXT, forward),
|
|
209
|
+
stop: (action) => electron.ipcRenderer.invoke(Channels.FIND_IN_PAGE_STOP, action),
|
|
210
|
+
onResult: (cb) => {
|
|
211
|
+
const handler = (_, result) => cb(result);
|
|
212
|
+
electron.ipcRenderer.on(Channels.FIND_IN_PAGE_RESULT, handler);
|
|
213
|
+
return () => electron.ipcRenderer.removeListener(Channels.FIND_IN_PAGE_RESULT, handler);
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
history: {
|
|
217
|
+
get: () => electron.ipcRenderer.invoke(Channels.HISTORY_GET),
|
|
218
|
+
search: (query) => electron.ipcRenderer.invoke(Channels.HISTORY_SEARCH, query),
|
|
219
|
+
clear: () => electron.ipcRenderer.invoke(Channels.HISTORY_CLEAR),
|
|
220
|
+
onUpdate: (cb) => {
|
|
221
|
+
const handler = (_, state) => cb(state);
|
|
222
|
+
electron.ipcRenderer.on(Channels.HISTORY_UPDATE, handler);
|
|
223
|
+
return () => electron.ipcRenderer.removeListener(Channels.HISTORY_UPDATE, handler);
|
|
224
|
+
}
|
|
225
|
+
},
|
|
195
226
|
window: {
|
|
196
227
|
minimize: () => electron.ipcRenderer.invoke(Channels.WINDOW_MINIMIZE),
|
|
197
228
|
maximize: () => electron.ipcRenderer.invoke(Channels.WINDOW_MAXIMIZE),
|