electron 43.3.0 → 43.4.1
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/checksums.json +75 -75
- package/electron.d.ts +147 -77
- package/install.js +6 -2
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v43.
|
|
3
|
-
"chromedriver-v43.
|
|
4
|
-
"chromedriver-v43.
|
|
5
|
-
"chromedriver-v43.
|
|
6
|
-
"chromedriver-v43.
|
|
7
|
-
"chromedriver-v43.
|
|
8
|
-
"chromedriver-v43.
|
|
9
|
-
"chromedriver-v43.
|
|
10
|
-
"chromedriver-v43.
|
|
11
|
-
"chromedriver-v43.
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-v43.
|
|
14
|
-
"electron-v43.
|
|
15
|
-
"electron-v43.
|
|
16
|
-
"electron-v43.
|
|
17
|
-
"electron-v43.
|
|
18
|
-
"electron-v43.
|
|
19
|
-
"electron-v43.
|
|
20
|
-
"electron-v43.
|
|
21
|
-
"electron-v43.
|
|
22
|
-
"electron-v43.
|
|
23
|
-
"electron-v43.
|
|
24
|
-
"electron-v43.
|
|
25
|
-
"electron-v43.
|
|
26
|
-
"electron-v43.
|
|
27
|
-
"electron-v43.
|
|
28
|
-
"electron-v43.
|
|
29
|
-
"electron-v43.
|
|
30
|
-
"electron-v43.
|
|
31
|
-
"electron-v43.
|
|
32
|
-
"electron-v43.
|
|
33
|
-
"electron-v43.
|
|
34
|
-
"electron-v43.
|
|
35
|
-
"electron-v43.
|
|
36
|
-
"electron-v43.
|
|
37
|
-
"electron-v43.
|
|
38
|
-
"electron-v43.
|
|
39
|
-
"electron-v43.
|
|
40
|
-
"electron-v43.
|
|
41
|
-
"electron-v43.
|
|
42
|
-
"electron-v43.
|
|
43
|
-
"electron-v43.
|
|
44
|
-
"electron-v43.
|
|
45
|
-
"electron-v43.
|
|
46
|
-
"electron-v43.
|
|
47
|
-
"electron-v43.
|
|
48
|
-
"electron-v43.
|
|
49
|
-
"electron-v43.
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-v43.
|
|
52
|
-
"ffmpeg-v43.
|
|
53
|
-
"ffmpeg-v43.
|
|
54
|
-
"ffmpeg-v43.
|
|
55
|
-
"ffmpeg-v43.
|
|
56
|
-
"ffmpeg-v43.
|
|
57
|
-
"ffmpeg-v43.
|
|
58
|
-
"ffmpeg-v43.
|
|
59
|
-
"ffmpeg-v43.
|
|
60
|
-
"ffmpeg-v43.
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-v43.
|
|
63
|
-
"libcxx-objects-v43.
|
|
64
|
-
"libcxx-objects-v43.
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-v43.
|
|
68
|
-
"mksnapshot-v43.
|
|
69
|
-
"mksnapshot-v43.
|
|
70
|
-
"mksnapshot-v43.
|
|
71
|
-
"mksnapshot-v43.
|
|
72
|
-
"mksnapshot-v43.
|
|
73
|
-
"mksnapshot-v43.
|
|
74
|
-
"mksnapshot-v43.
|
|
75
|
-
"mksnapshot-v43.
|
|
76
|
-
"mksnapshot-v43.
|
|
2
|
+
"chromedriver-v43.4.1-darwin-arm64.zip": "5facb44cd08b2d84054ec42ce9ef2d9ea9763bd081e93e04b835c82c6ea8ab49",
|
|
3
|
+
"chromedriver-v43.4.1-darwin-x64.zip": "c8882cca8c99afede4d61bd47b9d706c3c5d40af677756bbbcd7df2cbfb47cf0",
|
|
4
|
+
"chromedriver-v43.4.1-linux-arm64.zip": "c9f666e0a2736378273545277e3fe00decfa856ff4701928c51adfeacd81b5a4",
|
|
5
|
+
"chromedriver-v43.4.1-linux-armv7l.zip": "2aaefcc5bd00d2ce61378c9f064e83f03177848526a057922dfef0cddbb0d49c",
|
|
6
|
+
"chromedriver-v43.4.1-linux-x64.zip": "7d66ef37dd8ac3dd9a80baf28193e686d97abddcd7229a47f021ec824259679e",
|
|
7
|
+
"chromedriver-v43.4.1-mas-arm64.zip": "cacaa050e8065ad0296ab94fe2026ebd919c351bc0012b7dbd51de115fcd6b3a",
|
|
8
|
+
"chromedriver-v43.4.1-mas-x64.zip": "aa5e05f7717b832c38b8c798c3bf072d49fa7def61e3900eb52733fb46c8ab79",
|
|
9
|
+
"chromedriver-v43.4.1-win32-arm64.zip": "52aa1b903331f85cf5ef644b1b626ab1600b100eae11ad51108190c5a6ce7011",
|
|
10
|
+
"chromedriver-v43.4.1-win32-ia32.zip": "7cee00855803e4a0742c3109508ead2de4eef61240fd0981299dc30c05d3084e",
|
|
11
|
+
"chromedriver-v43.4.1-win32-x64.zip": "df4429ac529ae99e6550d33f5f72dae4cae140989a723c1429a9717049958c85",
|
|
12
|
+
"electron-api.json": "65dba00a60302d471db0f9481f16e3d4b09cd2fd2dff9e8e7921a06f7efa07e9",
|
|
13
|
+
"electron-v43.4.1-darwin-arm64-dsym-snapshot.zip": "6605b5de7735f2f64787ba9791436d40eace3e63c86f2c0df4ff76acdec176a8",
|
|
14
|
+
"electron-v43.4.1-darwin-arm64-dsym.tar.xz": "54184846f6e4d9f8d8431fcfa851c226b045a29aa92e2a6dfe60a264a5543ec5",
|
|
15
|
+
"electron-v43.4.1-darwin-arm64-symbols.zip": "97ef8ae9fc43e6f295f8ae0d67e58bf72ef2e5b44e9ffe121a528b3c0561ea60",
|
|
16
|
+
"electron-v43.4.1-darwin-arm64.zip": "fe3cac8cbfd9ba1739fac6c69166cf30848741f93cbe251d800ae6ef7cebb64b",
|
|
17
|
+
"electron-v43.4.1-darwin-x64-dsym-snapshot.zip": "7b8d78c6e8baa5fb86b0f902bc43401fccc1055795cbf98642e0e5737eb60698",
|
|
18
|
+
"electron-v43.4.1-darwin-x64-dsym.tar.xz": "487532594856d3a481ea4a9c38e2cb5140c43ae7ee9deec926b50a737db5dca1",
|
|
19
|
+
"electron-v43.4.1-darwin-x64-symbols.zip": "80249d6b5a255124cdcba4fa30fa82f2e0cdfce387d6d809e5453e8060d50bb2",
|
|
20
|
+
"electron-v43.4.1-darwin-x64.zip": "4fd0f1826660a94216a0633600a3c3e2cd87ee9e4bc6f0e1edf717ad8e30c10b",
|
|
21
|
+
"electron-v43.4.1-linux-arm64-debug.zip": "08e3b627109518c226ce802394a890a6ec0af7d371ccf09d416bc8314134b0d7",
|
|
22
|
+
"electron-v43.4.1-linux-arm64-symbols.zip": "1ad956df47782f9c336c2b51875ca63737e58bdd61bd0077f87950a692198430",
|
|
23
|
+
"electron-v43.4.1-linux-arm64.zip": "9e2b5cfbd387e138f06c7bb19b399bb3ee487dbb4110215df097d94e80431892",
|
|
24
|
+
"electron-v43.4.1-linux-armv7l-debug.zip": "8db348f1602a044b14b49ea72b6ad77e7db19d86e1b041270923a06072b80e79",
|
|
25
|
+
"electron-v43.4.1-linux-armv7l-symbols.zip": "80d2fa0933f3e43fbe1d475b97d9317ba86f91467fff8692d53dc2f42aae408b",
|
|
26
|
+
"electron-v43.4.1-linux-armv7l.zip": "2875860d6b7cb2e8a0142fb87f9f7be50a382a87a24bf15a0861f20ba53dc400",
|
|
27
|
+
"electron-v43.4.1-linux-x64-debug.zip": "228d179925f73692675ca81594d38fd530f140863b893a0ab2105a66b5218241",
|
|
28
|
+
"electron-v43.4.1-linux-x64-symbols.zip": "e5b41b65a50a656d4973f519df5b4393e09435e2e9a942f9e285a02d933904c8",
|
|
29
|
+
"electron-v43.4.1-linux-x64.zip": "79d4efd69f0ccf1fc11891ea5075329c7b3faddad79a08d9fb395bbd63169acf",
|
|
30
|
+
"electron-v43.4.1-mas-arm64-dsym-snapshot.zip": "510c0f8264d92e0d0e0c71c10c5ccb113675f16304718a733d5f7dc2f9d247bd",
|
|
31
|
+
"electron-v43.4.1-mas-arm64-dsym.tar.xz": "0e63cb9dc2c472def1a9c3aad2e9e31e4f28348e2d8376eba93bc2cd0747af30",
|
|
32
|
+
"electron-v43.4.1-mas-arm64-symbols.zip": "ae5d57d9f5d1d8f52dfbaed60afbe51e4c7c5e89e9ca440b22784561d0ab21b5",
|
|
33
|
+
"electron-v43.4.1-mas-arm64.zip": "84e562785040616029df3d562f3193c8b3953948a095d8b8611c990b45a69b98",
|
|
34
|
+
"electron-v43.4.1-mas-x64-dsym-snapshot.zip": "84fc89751dee3b23a3573e5cc1cecff4172aecff3974265bb89561debda03540",
|
|
35
|
+
"electron-v43.4.1-mas-x64-dsym.tar.xz": "269c994f01747690762cfcbc86d8640ec9ac07dd8cd9908bc992d61728015cef",
|
|
36
|
+
"electron-v43.4.1-mas-x64-symbols.zip": "9700a66c2d3006787418da978edde3b08423fa2e37a755447ae4515e654d0d2c",
|
|
37
|
+
"electron-v43.4.1-mas-x64.zip": "c9ae1cb01d2227face64cc7a9e6b5284e1afdfb28d6502a087d186648d19ae38",
|
|
38
|
+
"electron-v43.4.1-win32-arm64-pdb.zip": "e5b30d52c5783b53c4181a559527e54e4453621a9606dd70c3bc5896345b2db6",
|
|
39
|
+
"electron-v43.4.1-win32-arm64-symbols.zip": "dc5b6a22b5ab7381806aa659268d8ee8c3fd26161bde7315f948aaa980e56f29",
|
|
40
|
+
"electron-v43.4.1-win32-arm64-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
|
|
41
|
+
"electron-v43.4.1-win32-arm64.zip": "659e53872a7bba34d0a80bcbac69233c9e0919f75534b46244c581115f1f93d1",
|
|
42
|
+
"electron-v43.4.1-win32-ia32-pdb.zip": "4572a463c375e34eefabd3ee9ba41d44c45a055445017ca8e877841c4212334f",
|
|
43
|
+
"electron-v43.4.1-win32-ia32-symbols.zip": "c2a2b68ffc3748609c4efd5ce2e7a09fac44f4b80c4054e63833b483e68c3a01",
|
|
44
|
+
"electron-v43.4.1-win32-ia32-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
|
|
45
|
+
"electron-v43.4.1-win32-ia32.zip": "22cc6a2ff1dc7dd1693227e9ca9845c8ec6700a6c93309575810fa839bc822c0",
|
|
46
|
+
"electron-v43.4.1-win32-x64-pdb.zip": "cb9451ac032d7c693f473b84e8042382de0f95f392fa6fa3bd76392d020da6e6",
|
|
47
|
+
"electron-v43.4.1-win32-x64-symbols.zip": "693ec50f823410740a33413aa0443e9438080a3d7be56a06232b74e8b4615b71",
|
|
48
|
+
"electron-v43.4.1-win32-x64-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
|
|
49
|
+
"electron-v43.4.1-win32-x64.zip": "c2ef9a5f65472c34d14bd3e67b7d14e66b0c01f124aba45263d6a4232160e13a",
|
|
50
|
+
"electron.d.ts": "e70d34f8d5d246bca8e39b3897b47e005c0f629673315b6f97ccae0f2405e7b8",
|
|
51
|
+
"ffmpeg-v43.4.1-darwin-arm64.zip": "6f1f928758df8ba0539b75abb635d692f79c5ae69e4e2fae63facf42b1e600c0",
|
|
52
|
+
"ffmpeg-v43.4.1-darwin-x64.zip": "56aa1e0fc5344015b86a7eb57bca7f2ba9ac8b1b5091f80c21a6574dcc25ac79",
|
|
53
|
+
"ffmpeg-v43.4.1-linux-arm64.zip": "67c68c217f93ff136c9e2959f45b0976e05c2f8b5740345997c108c13c4eb376",
|
|
54
|
+
"ffmpeg-v43.4.1-linux-armv7l.zip": "001847bd19549781850fd6f69941a54f92356ed26bca02892e9642637215668d",
|
|
55
|
+
"ffmpeg-v43.4.1-linux-x64.zip": "8ba33625e83e884809d41ddfc9e80640392e11f2126d0181b72a547ea20bb3f3",
|
|
56
|
+
"ffmpeg-v43.4.1-mas-arm64.zip": "a1a6c9a4132b3cdb1c540cb9038efaa0a05164921f72d4c70a7364d151368e6c",
|
|
57
|
+
"ffmpeg-v43.4.1-mas-x64.zip": "6b0200f704da29feaa23340361607b2e2142956b013039b362f47d8b61fc53bb",
|
|
58
|
+
"ffmpeg-v43.4.1-win32-arm64.zip": "8cda9aa4273fefccec6bf0ad47d552e8f34f1c27b8dc2870d6aab8a8833517f6",
|
|
59
|
+
"ffmpeg-v43.4.1-win32-ia32.zip": "1b9473b43ee7d865a9cfbe4a4d4c0580d5cc2082303a4bbad01ffe307bd55480",
|
|
60
|
+
"ffmpeg-v43.4.1-win32-x64.zip": "c1eb46063b1295812a44aeaf2c363793da763e81a151d8782c21e48b35662287",
|
|
61
|
+
"hunspell_dictionaries.zip": "966f3593f8451c9634b95aa6910fd35cdac5ef08d0f264959e14e6c9d73b41c6",
|
|
62
|
+
"libcxx-objects-v43.4.1-linux-arm64.zip": "e6ac211059250c946e39aa63fcc5a90661287207a16611b63aafdf0c5082c8f8",
|
|
63
|
+
"libcxx-objects-v43.4.1-linux-armv7l.zip": "a49472929e0f59a387ef72a4501f531f91fe712d31cf975530458115c000f3de",
|
|
64
|
+
"libcxx-objects-v43.4.1-linux-x64.zip": "5da5159c89f74969921c411129f4244fe0c666dec058a9b27253d6f61cd92871",
|
|
65
|
+
"libcxx_headers.zip": "7d46b22bbbe8de00a634a96aa69a95976aa47ad3e9d8a19e9b8d4ef0933a50be",
|
|
66
|
+
"libcxxabi_headers.zip": "0ccd65db7b9278d87d7de7456c8936fc907f1601fd9f915436e59f84d7e602d5",
|
|
67
|
+
"mksnapshot-v43.4.1-darwin-arm64.zip": "a7078ae8f46fd32c2ccc074356e3559703ca719e0fc032ad447c1f4ca255fdf8",
|
|
68
|
+
"mksnapshot-v43.4.1-darwin-x64.zip": "bf445a7bcf23f06a916b87788c9d8b01637b3109d97a46fbf6847fcde1a9c285",
|
|
69
|
+
"mksnapshot-v43.4.1-linux-arm64-x64.zip": "70061de777ae7117b6d076e5e67e0b9a51b9b27c3c294a294aa3db0741baf553",
|
|
70
|
+
"mksnapshot-v43.4.1-linux-armv7l-x64.zip": "94bfe0171a6a406720dfece23a91ff899a94037a076c5cebda69a4ad9d133ed9",
|
|
71
|
+
"mksnapshot-v43.4.1-linux-x64.zip": "836a6a5f64ab111759153ee26c4b4ae1f2208a3e60fefe3fedaf99a198b0742f",
|
|
72
|
+
"mksnapshot-v43.4.1-mas-arm64.zip": "fbd00ffa0e3accf542f3d6793b912477e5ac548525ad41046718c64753db15db",
|
|
73
|
+
"mksnapshot-v43.4.1-mas-x64.zip": "7fb7fdfe575147454cea6293caf3f796cb53acbdac671729562ad0445fb25fa2",
|
|
74
|
+
"mksnapshot-v43.4.1-win32-arm64-x64.zip": "07df5adc8307300cce9f46872a05935d827696cd14ee325d1d811fef40eb8bd9",
|
|
75
|
+
"mksnapshot-v43.4.1-win32-ia32.zip": "0bd7c80f3132accf1056293f5ffac936cb5d6cdd19bf2963547942d089d30687",
|
|
76
|
+
"mksnapshot-v43.4.1-win32-x64.zip": "42b513bc240b3a5df05a3e453c74d4e667e995dbd857182beef992c1db8033f9"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 43.
|
|
1
|
+
// Type definitions for Electron 43.4.1
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/typescript-definitions
|
|
@@ -1701,14 +1701,31 @@ declare namespace Electron {
|
|
|
1701
1701
|
*/
|
|
1702
1702
|
setClientCertRequestPasswordHandler(handler: (clientCertRequestParams: ClientCertRequestParams) => Promise<string>): void;
|
|
1703
1703
|
/**
|
|
1704
|
-
* Sets the `.desktop` filename on Linux. This
|
|
1705
|
-
*
|
|
1704
|
+
* Sets the `.desktop` filename on Linux. This must match the base filename of the
|
|
1705
|
+
* app's installed `.desktop` file. The `.desktop` suffix is optional.
|
|
1706
1706
|
*
|
|
1707
|
-
*
|
|
1708
|
-
*
|
|
1709
|
-
*
|
|
1710
|
-
*
|
|
1711
|
-
*
|
|
1707
|
+
* The name (without the `.desktop` suffix) is the app's identity for Linux desktop
|
|
1708
|
+
* integration. It should be a reverse-DNS style ID such as `com.example.MyApp`,
|
|
1709
|
+
* following the desktop entry naming conventions. This value is used as:
|
|
1710
|
+
*
|
|
1711
|
+
* * the XDG application ID (`app_id`) on Wayland and `WM_CLASS` on X11, used to
|
|
1712
|
+
* match the app's icon and window grouping.
|
|
1713
|
+
* * the app ID that `xdg-desktop-portal` reports to portal backends such as
|
|
1714
|
+
* GlobalShortcuts.
|
|
1715
|
+
*
|
|
1716
|
+
* Portals increasingly enforce this identity. If the name is not a valid
|
|
1717
|
+
* reverse-DNS ID or does not match an installed `.desktop` file:
|
|
1718
|
+
*
|
|
1719
|
+
* * GNOME 50.0/50.1 (Ubuntu 26.04) rejects `globalShortcut` binds with
|
|
1720
|
+
* `org.freedesktop.portal.Error.NotAllowed` — with no error surfaced to the app
|
|
1721
|
+
* (see #52218).
|
|
1722
|
+
* * `xdg-desktop-portal` 1.21 and later refuses portal sessions for app IDs it
|
|
1723
|
+
* cannot resolve to a `.desktop` file.
|
|
1724
|
+
*
|
|
1725
|
+
* If this value is not set and `desktopName` is not present in `package.json`,
|
|
1726
|
+
* Electron falls back to a lowercased, hyphenated slug of the app's name (e.g. `My
|
|
1727
|
+
* App` → `my-app.desktop`), which is unlikely to be a valid portal identity —
|
|
1728
|
+
* packaged apps should always set it explicitly.
|
|
1712
1729
|
*
|
|
1713
1730
|
* This API must be called before the `ready` event. The value can also be set
|
|
1714
1731
|
* using `desktopName` in `package.json`.
|
|
@@ -11189,6 +11206,95 @@ declare namespace Electron {
|
|
|
11189
11206
|
options: Options;
|
|
11190
11207
|
}
|
|
11191
11208
|
|
|
11209
|
+
interface PrintToPDFMargins {
|
|
11210
|
+
|
|
11211
|
+
// Docs: https://electronjs.org/docs/api/structures/print-to-pdf-margins
|
|
11212
|
+
|
|
11213
|
+
/**
|
|
11214
|
+
* Bottom margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11215
|
+
*/
|
|
11216
|
+
bottom?: number;
|
|
11217
|
+
/**
|
|
11218
|
+
* Left margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11219
|
+
*/
|
|
11220
|
+
left?: number;
|
|
11221
|
+
/**
|
|
11222
|
+
* Right margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11223
|
+
*/
|
|
11224
|
+
right?: number;
|
|
11225
|
+
/**
|
|
11226
|
+
* Top margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11227
|
+
*/
|
|
11228
|
+
top?: number;
|
|
11229
|
+
}
|
|
11230
|
+
|
|
11231
|
+
interface PrintToPDFOptions {
|
|
11232
|
+
|
|
11233
|
+
// Docs: https://electronjs.org/docs/api/structures/print-to-pdf-options
|
|
11234
|
+
|
|
11235
|
+
/**
|
|
11236
|
+
* Whether to display header and footer. Defaults to false.
|
|
11237
|
+
*/
|
|
11238
|
+
displayHeaderFooter?: boolean;
|
|
11239
|
+
/**
|
|
11240
|
+
* HTML template for the print footer. Should use the same format as the
|
|
11241
|
+
* `headerTemplate`.
|
|
11242
|
+
*/
|
|
11243
|
+
footerTemplate?: string;
|
|
11244
|
+
/**
|
|
11245
|
+
* Whether or not to generate a PDF document outline from content headers. Defaults
|
|
11246
|
+
* to false.
|
|
11247
|
+
*
|
|
11248
|
+
* @experimental
|
|
11249
|
+
*/
|
|
11250
|
+
generateDocumentOutline?: boolean;
|
|
11251
|
+
/**
|
|
11252
|
+
* Whether or not to generate a tagged (accessible) PDF. Defaults to false. As this
|
|
11253
|
+
* property is experimental, the generated PDF may not adhere fully to PDF/UA and
|
|
11254
|
+
* WCAG standards.
|
|
11255
|
+
*
|
|
11256
|
+
* @experimental
|
|
11257
|
+
*/
|
|
11258
|
+
generateTaggedPDF?: boolean;
|
|
11259
|
+
/**
|
|
11260
|
+
* HTML template for the print header. Should be valid HTML markup with following
|
|
11261
|
+
* classes used to inject printing values into them: `date` (formatted print date),
|
|
11262
|
+
* `title` (document title), `url` (document location), `pageNumber` (current page
|
|
11263
|
+
* number) and `totalPages` (total pages in the document). For example, `<span
|
|
11264
|
+
* class=title></span>` would generate span containing the title.
|
|
11265
|
+
*/
|
|
11266
|
+
headerTemplate?: string;
|
|
11267
|
+
/**
|
|
11268
|
+
* Paper orientation.`true` for landscape, `false` for portrait. Defaults to false.
|
|
11269
|
+
*/
|
|
11270
|
+
landscape?: boolean;
|
|
11271
|
+
margins?: PrintToPDFMargins;
|
|
11272
|
+
/**
|
|
11273
|
+
* Page ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which
|
|
11274
|
+
* means print all pages.
|
|
11275
|
+
*/
|
|
11276
|
+
pageRanges?: string;
|
|
11277
|
+
/**
|
|
11278
|
+
* Specify page size of the generated PDF. Can be `A0`, `A1`, `A2`, `A3`, `A4`,
|
|
11279
|
+
* `A5`, `A6`, `Legal`, `Letter`, `Tabloid`, `Ledger`, or an Object containing
|
|
11280
|
+
* `height` and `width` in inches. Defaults to `Letter`.
|
|
11281
|
+
*/
|
|
11282
|
+
pageSize?: (('A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'Legal' | 'Letter' | 'Tabloid' | 'Ledger')) | (Size);
|
|
11283
|
+
/**
|
|
11284
|
+
* Whether or not to prefer page size as defined by css. Defaults to false, in
|
|
11285
|
+
* which case the content will be scaled to fit the paper size.
|
|
11286
|
+
*/
|
|
11287
|
+
preferCSSPageSize?: boolean;
|
|
11288
|
+
/**
|
|
11289
|
+
* Whether to print background graphics. Defaults to false.
|
|
11290
|
+
*/
|
|
11291
|
+
printBackground?: boolean;
|
|
11292
|
+
/**
|
|
11293
|
+
* Scale of the webpage rendering. Defaults to 1.
|
|
11294
|
+
*/
|
|
11295
|
+
scale?: number;
|
|
11296
|
+
}
|
|
11297
|
+
|
|
11192
11298
|
interface ProcessMemoryInfo {
|
|
11193
11299
|
|
|
11194
11300
|
// Docs: https://electronjs.org/docs/api/structures/process-memory-info
|
|
@@ -18934,6 +19040,22 @@ declare namespace Electron {
|
|
|
18934
19040
|
* For example:
|
|
18935
19041
|
*/
|
|
18936
19042
|
postMessage(channel: string, message: any, transfer?: MessagePortMain[]): void;
|
|
19043
|
+
/**
|
|
19044
|
+
* Resolves with the generated PDF data.
|
|
19045
|
+
*
|
|
19046
|
+
* Prints the frame's web page as PDF.
|
|
19047
|
+
*
|
|
19048
|
+
* Unlike `webContents.printToPDF`, this method prints only the contents of the
|
|
19049
|
+
* frame it is called on. This can be used to print an individual `<iframe>` from
|
|
19050
|
+
* the main process.
|
|
19051
|
+
*
|
|
19052
|
+
* The `landscape` will be ignored if `@page` CSS at-rule is used in the web page.
|
|
19053
|
+
*
|
|
19054
|
+
* An example of printing an iframe to PDF:
|
|
19055
|
+
*
|
|
19056
|
+
* See Page.printToPdf for more information.
|
|
19057
|
+
*/
|
|
19058
|
+
printToPDF(options: PrintToPDFOptions): Promise<Buffer>;
|
|
18937
19059
|
/**
|
|
18938
19060
|
* Whether the reload was initiated successfully. Only results in `false` when the
|
|
18939
19061
|
* frame has no history.
|
|
@@ -20267,6 +20389,13 @@ declare namespace Electron {
|
|
|
20267
20389
|
* another value by including an `=`, followed by the value. Special values `yes`
|
|
20268
20390
|
* and `1` are interpreted as `true`, while `no` and `0` are interpreted as
|
|
20269
20391
|
* `false`.
|
|
20392
|
+
*
|
|
20393
|
+
* Security-critical preferences cannot be used to make the guest less secure than
|
|
20394
|
+
* its embedder. When the embedder has any of `contextIsolation`, `javascript`,
|
|
20395
|
+
* `nodeIntegration`, `nodeIntegrationInWorker`, `sandbox`,
|
|
20396
|
+
* `nodeIntegrationInSubFrames` or `enableWebSQL` set to its more secure value, the
|
|
20397
|
+
* guest inherits that value and the corresponding `webpreferences` entry is
|
|
20398
|
+
* ignored.
|
|
20270
20399
|
*/
|
|
20271
20400
|
webpreferences: string;
|
|
20272
20401
|
}
|
|
@@ -23093,70 +23222,6 @@ declare namespace Electron {
|
|
|
23093
23222
|
numSockets?: number;
|
|
23094
23223
|
}
|
|
23095
23224
|
|
|
23096
|
-
interface PrintToPDFOptions {
|
|
23097
|
-
/**
|
|
23098
|
-
* Paper orientation.`true` for landscape, `false` for portrait. Defaults to false.
|
|
23099
|
-
*/
|
|
23100
|
-
landscape?: boolean;
|
|
23101
|
-
/**
|
|
23102
|
-
* Whether to display header and footer. Defaults to false.
|
|
23103
|
-
*/
|
|
23104
|
-
displayHeaderFooter?: boolean;
|
|
23105
|
-
/**
|
|
23106
|
-
* Whether to print background graphics. Defaults to false.
|
|
23107
|
-
*/
|
|
23108
|
-
printBackground?: boolean;
|
|
23109
|
-
/**
|
|
23110
|
-
* Scale of the webpage rendering. Defaults to 1.
|
|
23111
|
-
*/
|
|
23112
|
-
scale?: number;
|
|
23113
|
-
/**
|
|
23114
|
-
* Specify page size of the generated PDF. Can be `A0`, `A1`, `A2`, `A3`, `A4`,
|
|
23115
|
-
* `A5`, `A6`, `Legal`, `Letter`, `Tabloid`, `Ledger`, or an Object containing
|
|
23116
|
-
* `height` and `width` in inches. Defaults to `Letter`.
|
|
23117
|
-
*/
|
|
23118
|
-
pageSize?: (('A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'Legal' | 'Letter' | 'Tabloid' | 'Ledger')) | (Size);
|
|
23119
|
-
margins?: Margins;
|
|
23120
|
-
/**
|
|
23121
|
-
* Page ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which
|
|
23122
|
-
* means print all pages.
|
|
23123
|
-
*/
|
|
23124
|
-
pageRanges?: string;
|
|
23125
|
-
/**
|
|
23126
|
-
* HTML template for the print header. Should be valid HTML markup with following
|
|
23127
|
-
* classes used to inject printing values into them: `date` (formatted print date),
|
|
23128
|
-
* `title` (document title), `url` (document location), `pageNumber` (current page
|
|
23129
|
-
* number) and `totalPages` (total pages in the document). For example, `<span
|
|
23130
|
-
* class=title></span>` would generate span containing the title.
|
|
23131
|
-
*/
|
|
23132
|
-
headerTemplate?: string;
|
|
23133
|
-
/**
|
|
23134
|
-
* HTML template for the print footer. Should use the same format as the
|
|
23135
|
-
* `headerTemplate`.
|
|
23136
|
-
*/
|
|
23137
|
-
footerTemplate?: string;
|
|
23138
|
-
/**
|
|
23139
|
-
* Whether or not to prefer page size as defined by css. Defaults to false, in
|
|
23140
|
-
* which case the content will be scaled to fit the paper size.
|
|
23141
|
-
*/
|
|
23142
|
-
preferCSSPageSize?: boolean;
|
|
23143
|
-
/**
|
|
23144
|
-
* Whether or not to generate a tagged (accessible) PDF. Defaults to false. As this
|
|
23145
|
-
* property is experimental, the generated PDF may not adhere fully to PDF/UA and
|
|
23146
|
-
* WCAG standards.
|
|
23147
|
-
*
|
|
23148
|
-
* @experimental
|
|
23149
|
-
*/
|
|
23150
|
-
generateTaggedPDF?: boolean;
|
|
23151
|
-
/**
|
|
23152
|
-
* Whether or not to generate a PDF document outline from content headers. Defaults
|
|
23153
|
-
* to false.
|
|
23154
|
-
*
|
|
23155
|
-
* @experimental
|
|
23156
|
-
*/
|
|
23157
|
-
generateDocumentOutline?: boolean;
|
|
23158
|
-
}
|
|
23159
|
-
|
|
23160
23225
|
interface Privileges {
|
|
23161
23226
|
/**
|
|
23162
23227
|
* Default false.
|
|
@@ -25099,7 +25164,6 @@ declare namespace Electron {
|
|
|
25099
25164
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
25100
25165
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
25101
25166
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25102
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25103
25167
|
type Privileges = Electron.Privileges;
|
|
25104
25168
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
25105
25169
|
type Provider = Electron.Provider;
|
|
@@ -25242,6 +25306,8 @@ declare namespace Electron {
|
|
|
25242
25306
|
type PreloadScript = Electron.PreloadScript;
|
|
25243
25307
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
25244
25308
|
type PrinterInfo = Electron.PrinterInfo;
|
|
25309
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
25310
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25245
25311
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
25246
25312
|
type ProcessMetric = Electron.ProcessMetric;
|
|
25247
25313
|
type Product = Electron.Product;
|
|
@@ -25507,7 +25573,6 @@ declare namespace Electron {
|
|
|
25507
25573
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
25508
25574
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
25509
25575
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25510
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25511
25576
|
type Privileges = Electron.Privileges;
|
|
25512
25577
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
25513
25578
|
type Provider = Electron.Provider;
|
|
@@ -25650,6 +25715,8 @@ declare namespace Electron {
|
|
|
25650
25715
|
type PreloadScript = Electron.PreloadScript;
|
|
25651
25716
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
25652
25717
|
type PrinterInfo = Electron.PrinterInfo;
|
|
25718
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
25719
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25653
25720
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
25654
25721
|
type ProcessMetric = Electron.ProcessMetric;
|
|
25655
25722
|
type Product = Electron.Product;
|
|
@@ -25842,7 +25909,6 @@ declare namespace Electron {
|
|
|
25842
25909
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
25843
25910
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
25844
25911
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25845
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25846
25912
|
type Privileges = Electron.Privileges;
|
|
25847
25913
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
25848
25914
|
type Provider = Electron.Provider;
|
|
@@ -25985,6 +26051,8 @@ declare namespace Electron {
|
|
|
25985
26051
|
type PreloadScript = Electron.PreloadScript;
|
|
25986
26052
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
25987
26053
|
type PrinterInfo = Electron.PrinterInfo;
|
|
26054
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
26055
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25988
26056
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
25989
26057
|
type ProcessMetric = Electron.ProcessMetric;
|
|
25990
26058
|
type Product = Electron.Product;
|
|
@@ -26176,7 +26244,6 @@ declare namespace Electron {
|
|
|
26176
26244
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
26177
26245
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
26178
26246
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
26179
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26180
26247
|
type Privileges = Electron.Privileges;
|
|
26181
26248
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
26182
26249
|
type Provider = Electron.Provider;
|
|
@@ -26319,6 +26386,8 @@ declare namespace Electron {
|
|
|
26319
26386
|
type PreloadScript = Electron.PreloadScript;
|
|
26320
26387
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
26321
26388
|
type PrinterInfo = Electron.PrinterInfo;
|
|
26389
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
26390
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26322
26391
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
26323
26392
|
type ProcessMetric = Electron.ProcessMetric;
|
|
26324
26393
|
type Product = Electron.Product;
|
|
@@ -26605,7 +26674,6 @@ declare namespace Electron {
|
|
|
26605
26674
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
26606
26675
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
26607
26676
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
26608
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26609
26677
|
type Privileges = Electron.Privileges;
|
|
26610
26678
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
26611
26679
|
type Provider = Electron.Provider;
|
|
@@ -26748,6 +26816,8 @@ declare namespace Electron {
|
|
|
26748
26816
|
type PreloadScript = Electron.PreloadScript;
|
|
26749
26817
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
26750
26818
|
type PrinterInfo = Electron.PrinterInfo;
|
|
26819
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
26820
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26751
26821
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
26752
26822
|
type ProcessMetric = Electron.ProcessMetric;
|
|
26753
26823
|
type Product = Electron.Product;
|
package/install.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const { downloadArtifact } = require('@electron/get');
|
|
4
4
|
|
|
5
|
-
const { extract } = require('@electron-internal/extract-zip');
|
|
6
|
-
|
|
7
5
|
const childProcess = require('child_process');
|
|
8
6
|
const fs = require('fs');
|
|
9
7
|
const os = require('os');
|
|
@@ -77,6 +75,12 @@ function isInstalled() {
|
|
|
77
75
|
|
|
78
76
|
// unzips and makes path.txt point at the correct executable
|
|
79
77
|
function extractFile(zipPath) {
|
|
78
|
+
// Loaded here, not at the top of the file: the extractor has a native
|
|
79
|
+
// binding, and an OS policy can block its load (see electron/electron#52481).
|
|
80
|
+
// A lazy require keeps `isInstalled()` working in that case, so an
|
|
81
|
+
// already-installed dist does not need the extractor at all.
|
|
82
|
+
const { extract } = require('@electron-internal/extract-zip');
|
|
83
|
+
|
|
80
84
|
const distPath = process.env.ELECTRON_OVERRIDE_DIST_PATH || path.join(__dirname, 'dist');
|
|
81
85
|
|
|
82
86
|
return extract(zipPath, { dir: path.join(__dirname, 'dist') }).then(() => {
|