@lvce-editor/embeds-process 3.2.0 → 3.3.0

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.
@@ -208,9 +208,13 @@ const getDomTree = async id => {
208
208
  // @ts-ignore
209
209
  return invoke$1('ElectronWebContentsViewFunctions.getDomTree', id);
210
210
  };
211
- const insertCss = async id => {
211
+ const insertCss = async (id, css) => {
212
212
  // @ts-ignore
213
- return invoke$1('ElectronWebContentsViewFunctions.insertCss', id);
213
+ return invoke$1('ElectronWebContentsViewFunctions.insertCss', id, css);
214
+ };
215
+ const insertJavaScript = async (id, css) => {
216
+ // @ts-ignore
217
+ return invoke$1('ElectronWebContentsViewFunctions.insertJavaScript', id, css);
214
218
  };
215
219
  const show = async (id, ...args) => {
216
220
  return invoke$1('ElectronWebContentsViewFunctions.show', id, ...args);
@@ -1570,6 +1574,7 @@ const commandMap = {
1570
1574
  'ElectronWebContentsView.getStats': getStats,
1571
1575
  'ElectronWebContentsView.handleKeyBinding': handleKeyBinding,
1572
1576
  'ElectronWebContentsView.insertCss': insertCss,
1577
+ 'ElectronWebContentsView.insertJavaScript': insertJavaScript,
1573
1578
  'ElectronWebContentsView.inspectElement': inspectElement,
1574
1579
  'ElectronWebContentsView.openDevtools': openDevtools,
1575
1580
  'ElectronWebContentsView.reload': reload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/embeds-process",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Embeds Process",
5
5
  "keywords": [
6
6
  "Lvce Editor"