electron 44.0.0-alpha.9 → 44.0.0-beta.2
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 +61 -61
- package/electron.d.ts +123 -129
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v44.0.0-
|
|
3
|
-
"chromedriver-v44.0.0-
|
|
4
|
-
"chromedriver-v44.0.0-
|
|
5
|
-
"chromedriver-v44.0.0-
|
|
6
|
-
"chromedriver-v44.0.0-
|
|
7
|
-
"chromedriver-v44.0.0-
|
|
8
|
-
"chromedriver-v44.0.0-
|
|
9
|
-
"chromedriver-v44.0.0-
|
|
10
|
-
"electron-api.json": "
|
|
11
|
-
"electron-v44.0.0-
|
|
12
|
-
"electron-v44.0.0-
|
|
13
|
-
"electron-v44.0.0-
|
|
14
|
-
"electron-v44.0.0-
|
|
15
|
-
"electron-v44.0.0-
|
|
16
|
-
"electron-v44.0.0-
|
|
17
|
-
"electron-v44.0.0-
|
|
18
|
-
"electron-v44.0.0-
|
|
19
|
-
"electron-v44.0.0-
|
|
20
|
-
"electron-v44.0.0-
|
|
21
|
-
"electron-v44.0.0-
|
|
22
|
-
"electron-v44.0.0-
|
|
23
|
-
"electron-v44.0.0-
|
|
24
|
-
"electron-v44.0.0-
|
|
25
|
-
"electron-v44.0.0-
|
|
26
|
-
"electron-v44.0.0-
|
|
27
|
-
"electron-v44.0.0-
|
|
28
|
-
"electron-v44.0.0-
|
|
29
|
-
"electron-v44.0.0-
|
|
30
|
-
"electron-v44.0.0-
|
|
31
|
-
"electron-v44.0.0-
|
|
32
|
-
"electron-v44.0.0-
|
|
33
|
-
"electron-v44.0.0-
|
|
34
|
-
"electron-v44.0.0-
|
|
35
|
-
"electron-v44.0.0-
|
|
36
|
-
"electron-v44.0.0-
|
|
37
|
-
"electron-v44.0.0-
|
|
38
|
-
"electron-v44.0.0-
|
|
39
|
-
"electron-v44.0.0-
|
|
40
|
-
"electron-v44.0.0-
|
|
41
|
-
"electron.d.ts": "
|
|
42
|
-
"ffmpeg-v44.0.0-
|
|
43
|
-
"ffmpeg-v44.0.0-
|
|
44
|
-
"ffmpeg-v44.0.0-
|
|
45
|
-
"ffmpeg-v44.0.0-
|
|
46
|
-
"ffmpeg-v44.0.0-
|
|
47
|
-
"ffmpeg-v44.0.0-
|
|
48
|
-
"ffmpeg-v44.0.0-
|
|
49
|
-
"ffmpeg-v44.0.0-
|
|
50
|
-
"hunspell_dictionaries.zip": "
|
|
51
|
-
"libcxx-objects-v44.0.0-
|
|
52
|
-
"libcxx-objects-v44.0.0-
|
|
53
|
-
"libcxx_headers.zip": "
|
|
54
|
-
"libcxxabi_headers.zip": "
|
|
55
|
-
"mksnapshot-v44.0.0-
|
|
56
|
-
"mksnapshot-v44.0.0-
|
|
57
|
-
"mksnapshot-v44.0.0-
|
|
58
|
-
"mksnapshot-v44.0.0-
|
|
59
|
-
"mksnapshot-v44.0.0-
|
|
60
|
-
"mksnapshot-v44.0.0-
|
|
61
|
-
"mksnapshot-v44.0.0-
|
|
62
|
-
"mksnapshot-v44.0.0-
|
|
2
|
+
"chromedriver-v44.0.0-beta.2-darwin-arm64.zip": "851a53308a5cc0287f4be90b4a18b38bed5c6940366b1cd6e2682a9c10dd0b61",
|
|
3
|
+
"chromedriver-v44.0.0-beta.2-darwin-x64.zip": "a43e917e53bd9b3f7b0e977d2d78824a2b89329f54d6f560281a3f752d44e585",
|
|
4
|
+
"chromedriver-v44.0.0-beta.2-linux-arm64.zip": "ac5b0a7e56beba8db10288a0fc6a9b4e056503fd825ac2aec10a0cdf0d28d25a",
|
|
5
|
+
"chromedriver-v44.0.0-beta.2-linux-x64.zip": "4697e493d5506b9dbd2de99425be825f01aa4c13b6dc133a93d73daaf76184a3",
|
|
6
|
+
"chromedriver-v44.0.0-beta.2-mas-arm64.zip": "9f4f17345d3f86dab56d8b42d35bde6d078d98c3abb6abc6581c14dab0b8940d",
|
|
7
|
+
"chromedriver-v44.0.0-beta.2-mas-x64.zip": "0738017ad111f76f56d19483160145b652d25903f2d9dae2aa0b31f9bf7bb91d",
|
|
8
|
+
"chromedriver-v44.0.0-beta.2-win32-arm64.zip": "9edc233f7ecd56652147e2be10b19b0bdb2d5043c6dab5c0a16364f23dd5e516",
|
|
9
|
+
"chromedriver-v44.0.0-beta.2-win32-x64.zip": "2bdd3f2ad2d374e39d0d31a2b62dc4ad6601f93f2715c60b8e373eaff2faf51f",
|
|
10
|
+
"electron-api.json": "29a3b65ade4721b3944141e7cc4ba96a14df8797318c6b23b136a2c90cbb4fa2",
|
|
11
|
+
"electron-v44.0.0-beta.2-darwin-arm64-dsym-snapshot.zip": "ca6e57a7b1f647259f73b5ffb55f1c644eff94b417bb650c896cc2163e43d3ab",
|
|
12
|
+
"electron-v44.0.0-beta.2-darwin-arm64-dsym.tar.xz": "e66c7b697f03aca610ff39f7cc04edcd7673aef314a25ff376cb803705dffd27",
|
|
13
|
+
"electron-v44.0.0-beta.2-darwin-arm64-symbols.zip": "48e4f35dbad057bd5e10a89e312212fefa11f7b7bae08be0a0ff0deefd919cc2",
|
|
14
|
+
"electron-v44.0.0-beta.2-darwin-arm64.zip": "4397bd75e53d0e910e75c9537ba32990a48dd7b9c808c1ba57c26a069cf11058",
|
|
15
|
+
"electron-v44.0.0-beta.2-darwin-x64-dsym-snapshot.zip": "a8dc56e4b070ffd5f932628610b7789e1e5b84f291b9007516df062b98ea27d7",
|
|
16
|
+
"electron-v44.0.0-beta.2-darwin-x64-dsym.tar.xz": "ccda4172e3e6de0731430183e9d649dde6312b726b7a4b5aff2d09c6cb76a92a",
|
|
17
|
+
"electron-v44.0.0-beta.2-darwin-x64-symbols.zip": "0c34042699fc3dc45644d4dd3113df1ffe2008e11f36996d8abf62ae6fffee29",
|
|
18
|
+
"electron-v44.0.0-beta.2-darwin-x64.zip": "e4d2b7bf197863c545be148626c052d022ad023cf04886a7bcca8745ed63dd35",
|
|
19
|
+
"electron-v44.0.0-beta.2-linux-arm64-debug.zip": "6c47b3dd353f63ef462e383fc149dec7482e6b3d639bb86ed7606aac04c812d5",
|
|
20
|
+
"electron-v44.0.0-beta.2-linux-arm64-symbols.zip": "98c9a7078061936d170c0b791b1e770de59f8a9224b0c8d84868b2d1a9cbe9f5",
|
|
21
|
+
"electron-v44.0.0-beta.2-linux-arm64.zip": "eb694a2a57c26d71c7a5963c9b30661727400d6636dffc3278299417e29f6670",
|
|
22
|
+
"electron-v44.0.0-beta.2-linux-x64-debug.zip": "02618c9a73461b8c3d0d3c655d967616b464e5d908b5be18b0d380c7c2492d0a",
|
|
23
|
+
"electron-v44.0.0-beta.2-linux-x64-symbols.zip": "883720fc876917b05a6ee22ea5aeeb2260f1a43b4d84016ccb186784db3607a8",
|
|
24
|
+
"electron-v44.0.0-beta.2-linux-x64.zip": "18b73841a623ee908ce8f5f0ed8237ee2354150052b1c3915034194cf3c643c1",
|
|
25
|
+
"electron-v44.0.0-beta.2-mas-arm64-dsym-snapshot.zip": "71e55ce534200c4443b00e755a7513a6cfcb841484ee6059fdd1ce588f8ed228",
|
|
26
|
+
"electron-v44.0.0-beta.2-mas-arm64-dsym.tar.xz": "01d9f4f6e2e0e35eac68721879b9b40ba53d6a010466983faa655bfc9285e14a",
|
|
27
|
+
"electron-v44.0.0-beta.2-mas-arm64-symbols.zip": "2ee5a4eba8373d84e7dc8bad836ac158c0ce1773263f74119ca4351e39001565",
|
|
28
|
+
"electron-v44.0.0-beta.2-mas-arm64.zip": "303dcc8284c7787939e783da7e666095ab737249878c0b4eb5c029aa54270c0b",
|
|
29
|
+
"electron-v44.0.0-beta.2-mas-x64-dsym-snapshot.zip": "06596f1f2293bad6d7b5aaa9d1c315c6042af4c244562a35a2d28708bd6788d7",
|
|
30
|
+
"electron-v44.0.0-beta.2-mas-x64-dsym.tar.xz": "510d5093e725199f2996f7b212ccf564c2751ecf48d350bcee30ea7139eb9f2f",
|
|
31
|
+
"electron-v44.0.0-beta.2-mas-x64-symbols.zip": "6744c554b5c43ee31408552dc6549297da0b5b2b7e0ac45e37dd2366778edbd4",
|
|
32
|
+
"electron-v44.0.0-beta.2-mas-x64.zip": "19f32beb42910eb05e8385fbb237c6edc34e4254c551b2fe4ab685b822b7689e",
|
|
33
|
+
"electron-v44.0.0-beta.2-win32-arm64-pdb.zip": "bdce46499f9a7b1508390fb6cf705e45345a6ef4b663d9928fdf857a5654289e",
|
|
34
|
+
"electron-v44.0.0-beta.2-win32-arm64-symbols.zip": "9da0e81df7db7568a67b7136fcb96eb1e179955000861b21566ec6feea23a772",
|
|
35
|
+
"electron-v44.0.0-beta.2-win32-arm64-toolchain-profile.zip": "93e0253324919c9cd187a9864291f4452e4632747b8ecc1d9ec7e6d6afbf86e9",
|
|
36
|
+
"electron-v44.0.0-beta.2-win32-arm64.zip": "4f7d3a2b650c3c95743c34246e432ec2069466d64aa4591c251a5779af042e32",
|
|
37
|
+
"electron-v44.0.0-beta.2-win32-x64-pdb.zip": "a424c53e53a8545c0b6ce5db57fe2b48f7c554771306057f7cdefc8edddd2f89",
|
|
38
|
+
"electron-v44.0.0-beta.2-win32-x64-symbols.zip": "65b5f9d1613dde1fa3798e25507391f915700bd51bdc8afc0087f8b2f3c73cc1",
|
|
39
|
+
"electron-v44.0.0-beta.2-win32-x64-toolchain-profile.zip": "93e0253324919c9cd187a9864291f4452e4632747b8ecc1d9ec7e6d6afbf86e9",
|
|
40
|
+
"electron-v44.0.0-beta.2-win32-x64.zip": "f1b0d78bf17b178da2f4d61a34955ffbddf026c084c9f262de9578f5bc1790de",
|
|
41
|
+
"electron.d.ts": "50077fee2e1771ee8b06aef84f456d9aee1fb9f5011f9f39dd3fc96eae441847",
|
|
42
|
+
"ffmpeg-v44.0.0-beta.2-darwin-arm64.zip": "d6d50ea44989aa84bbf4296f777f401806fbc47a75602759e5097f788d97126c",
|
|
43
|
+
"ffmpeg-v44.0.0-beta.2-darwin-x64.zip": "c4c7bd41586d86f3cae6a75b54946c166c40e9265e8c06ff7e43dcab8c3dba50",
|
|
44
|
+
"ffmpeg-v44.0.0-beta.2-linux-arm64.zip": "e18f351b0bcf68fd5a7e4c71bf762b1fcd6bd4c5514cf848f43d01102872140e",
|
|
45
|
+
"ffmpeg-v44.0.0-beta.2-linux-x64.zip": "022779cbca289b4800a1b20206df3b4d7faa2759dd95441f65632a5c462c90c1",
|
|
46
|
+
"ffmpeg-v44.0.0-beta.2-mas-arm64.zip": "545f6cc5ad3d45dc042676974271519b836c8f23a847c477e23381ff3c9cd3c8",
|
|
47
|
+
"ffmpeg-v44.0.0-beta.2-mas-x64.zip": "ec3462a88b6af79e83ea79fd4e9985f920be03c324b7e028bada36b8aa8927f6",
|
|
48
|
+
"ffmpeg-v44.0.0-beta.2-win32-arm64.zip": "f94e207d3f685a9492addd322f10d7947f734f28d9609526c0be36f58fc2fab4",
|
|
49
|
+
"ffmpeg-v44.0.0-beta.2-win32-x64.zip": "f97856712d89f717687d02852ad07cd08757363922b5adbb5d746d7837befb36",
|
|
50
|
+
"hunspell_dictionaries.zip": "86b15cf74c4eddee49a092bc19a076e33687cb5295e0287e29a3e1bcc9479ecb",
|
|
51
|
+
"libcxx-objects-v44.0.0-beta.2-linux-arm64.zip": "ead02620c5bd3878b1587f20d19d7497dc3eceb7d638107a3a0e7a56dae92610",
|
|
52
|
+
"libcxx-objects-v44.0.0-beta.2-linux-x64.zip": "9a6e2e386f6a8d815837a5b3fffaa9873393233aa2594fa6f138913ebf8dfcfe",
|
|
53
|
+
"libcxx_headers.zip": "414305c95a57a9d8752e10e687d9750a4c03907db14063a59ca57d24463efe1a",
|
|
54
|
+
"libcxxabi_headers.zip": "4c150f4569cb6c661f2c6def9aac93bc396520fe0dccb9544a95958e74ccfa7b",
|
|
55
|
+
"mksnapshot-v44.0.0-beta.2-darwin-arm64.zip": "39faf984607bf3d6f86497c293ac984c0d63446cf2b805db3e0b754a5b41e2d0",
|
|
56
|
+
"mksnapshot-v44.0.0-beta.2-darwin-x64.zip": "f9f9da534dcdac8d35b6bb83a840a5373bfb134da754658cf7df6797a1a0693d",
|
|
57
|
+
"mksnapshot-v44.0.0-beta.2-linux-arm64-x64.zip": "b76bf7205a1b8aabe9ec40acf62f9d73f5fb390085d571852421c8efee25bfc7",
|
|
58
|
+
"mksnapshot-v44.0.0-beta.2-linux-x64.zip": "d62d13e2728b8d41617baccc2bae5b67c10f7840c8104e2d7943ef3e0c7121dc",
|
|
59
|
+
"mksnapshot-v44.0.0-beta.2-mas-arm64.zip": "82bb5d93c38f35c9d49366e28f208417432740fe9cc392c01dcc7d8a554b6d6d",
|
|
60
|
+
"mksnapshot-v44.0.0-beta.2-mas-x64.zip": "9707fbbcec606581b700c502a0cd0ec6fac8612c6f9c62eee160c3b04c408078",
|
|
61
|
+
"mksnapshot-v44.0.0-beta.2-win32-arm64-x64.zip": "fc78a343762058aac64641bd7ef7055de65c755efff5e10074a8a57724511f5c",
|
|
62
|
+
"mksnapshot-v44.0.0-beta.2-win32-x64.zip": "edc953ebeaa1f29e9e4cf6ffe8d355c32d5a8544e71ff75396b345d3dcfad8f3"
|
|
63
63
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 44.0.0-
|
|
1
|
+
// Type definitions for Electron 44.0.0-beta.2
|
|
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
|
|
@@ -1252,19 +1252,8 @@ declare namespace Electron {
|
|
|
1252
1252
|
*
|
|
1253
1253
|
*
|
|
1254
1254
|
* * `openAtLogin` boolean - `true` if the app is set to open at login.
|
|
1255
|
-
* * `openAsHidden` boolean _macOS_ _Deprecated_ - `true` if the app is set to open
|
|
1256
|
-
* as hidden at login. This does not work on macOS 13 and up.
|
|
1257
1255
|
* * `wasOpenedAtLogin` boolean _macOS_ - `true` if the app was opened at login
|
|
1258
1256
|
* automatically.
|
|
1259
|
-
* * `wasOpenedAsHidden` boolean _macOS_ _Deprecated_ - `true` if the app was
|
|
1260
|
-
* opened as a hidden login item. This indicates that the app should not open any
|
|
1261
|
-
* windows at startup. This setting is not available on MAS builds or on macOS 13
|
|
1262
|
-
* and up.
|
|
1263
|
-
* * `restoreState` boolean _macOS_ _Deprecated_ - `true` if the app was opened as
|
|
1264
|
-
* a login item that should restore the state from the previous session. This
|
|
1265
|
-
* indicates that the app should restore the windows that were open the last time
|
|
1266
|
-
* the app was closed. This setting is not available on MAS builds or on macOS 13
|
|
1267
|
-
* and up.
|
|
1268
1257
|
* * `status` string _macOS_ - can be `not-registered`, `enabled`,
|
|
1269
1258
|
* `requires-approval`, or `not-found`.
|
|
1270
1259
|
* * `executableWillLaunchAtLogin` boolean _Windows_ - `true` if app is set to open
|
|
@@ -1759,8 +1748,8 @@ declare namespace Electron {
|
|
|
1759
1748
|
* is a stub application automatically generated by Squirrel which will
|
|
1760
1749
|
* automatically launch the latest version.
|
|
1761
1750
|
*
|
|
1762
|
-
* For more information about setting different services as login items on macOS
|
|
1763
|
-
*
|
|
1751
|
+
* For more information about setting different services as login items on macOS,
|
|
1752
|
+
* see `SMAppService`.
|
|
1764
1753
|
*
|
|
1765
1754
|
* @platform darwin,win32
|
|
1766
1755
|
*/
|
|
@@ -11206,6 +11195,95 @@ declare namespace Electron {
|
|
|
11206
11195
|
options: Options;
|
|
11207
11196
|
}
|
|
11208
11197
|
|
|
11198
|
+
interface PrintToPDFMargins {
|
|
11199
|
+
|
|
11200
|
+
// Docs: https://electronjs.org/docs/api/structures/print-to-pdf-margins
|
|
11201
|
+
|
|
11202
|
+
/**
|
|
11203
|
+
* Bottom margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11204
|
+
*/
|
|
11205
|
+
bottom?: number;
|
|
11206
|
+
/**
|
|
11207
|
+
* Left margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11208
|
+
*/
|
|
11209
|
+
left?: number;
|
|
11210
|
+
/**
|
|
11211
|
+
* Right margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11212
|
+
*/
|
|
11213
|
+
right?: number;
|
|
11214
|
+
/**
|
|
11215
|
+
* Top margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11216
|
+
*/
|
|
11217
|
+
top?: number;
|
|
11218
|
+
}
|
|
11219
|
+
|
|
11220
|
+
interface PrintToPDFOptions {
|
|
11221
|
+
|
|
11222
|
+
// Docs: https://electronjs.org/docs/api/structures/print-to-pdf-options
|
|
11223
|
+
|
|
11224
|
+
/**
|
|
11225
|
+
* Whether to display header and footer. Defaults to false.
|
|
11226
|
+
*/
|
|
11227
|
+
displayHeaderFooter?: boolean;
|
|
11228
|
+
/**
|
|
11229
|
+
* HTML template for the print footer. Should use the same format as the
|
|
11230
|
+
* `headerTemplate`.
|
|
11231
|
+
*/
|
|
11232
|
+
footerTemplate?: string;
|
|
11233
|
+
/**
|
|
11234
|
+
* Whether or not to generate a PDF document outline from content headers. Defaults
|
|
11235
|
+
* to false.
|
|
11236
|
+
*
|
|
11237
|
+
* @experimental
|
|
11238
|
+
*/
|
|
11239
|
+
generateDocumentOutline?: boolean;
|
|
11240
|
+
/**
|
|
11241
|
+
* Whether or not to generate a tagged (accessible) PDF. Defaults to false. As this
|
|
11242
|
+
* property is experimental, the generated PDF may not adhere fully to PDF/UA and
|
|
11243
|
+
* WCAG standards.
|
|
11244
|
+
*
|
|
11245
|
+
* @experimental
|
|
11246
|
+
*/
|
|
11247
|
+
generateTaggedPDF?: boolean;
|
|
11248
|
+
/**
|
|
11249
|
+
* HTML template for the print header. Should be valid HTML markup with following
|
|
11250
|
+
* classes used to inject printing values into them: `date` (formatted print date),
|
|
11251
|
+
* `title` (document title), `url` (document location), `pageNumber` (current page
|
|
11252
|
+
* number) and `totalPages` (total pages in the document). For example, `<span
|
|
11253
|
+
* class=title></span>` would generate span containing the title.
|
|
11254
|
+
*/
|
|
11255
|
+
headerTemplate?: string;
|
|
11256
|
+
/**
|
|
11257
|
+
* Paper orientation.`true` for landscape, `false` for portrait. Defaults to false.
|
|
11258
|
+
*/
|
|
11259
|
+
landscape?: boolean;
|
|
11260
|
+
margins?: PrintToPDFMargins;
|
|
11261
|
+
/**
|
|
11262
|
+
* Page ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which
|
|
11263
|
+
* means print all pages.
|
|
11264
|
+
*/
|
|
11265
|
+
pageRanges?: string;
|
|
11266
|
+
/**
|
|
11267
|
+
* Specify page size of the generated PDF. Can be `A0`, `A1`, `A2`, `A3`, `A4`,
|
|
11268
|
+
* `A5`, `A6`, `Legal`, `Letter`, `Tabloid`, `Ledger`, or an Object containing
|
|
11269
|
+
* `height` and `width` in inches. Defaults to `Letter`.
|
|
11270
|
+
*/
|
|
11271
|
+
pageSize?: (('A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'Legal' | 'Letter' | 'Tabloid' | 'Ledger')) | (Size);
|
|
11272
|
+
/**
|
|
11273
|
+
* Whether or not to prefer page size as defined by css. Defaults to false, in
|
|
11274
|
+
* which case the content will be scaled to fit the paper size.
|
|
11275
|
+
*/
|
|
11276
|
+
preferCSSPageSize?: boolean;
|
|
11277
|
+
/**
|
|
11278
|
+
* Whether to print background graphics. Defaults to false.
|
|
11279
|
+
*/
|
|
11280
|
+
printBackground?: boolean;
|
|
11281
|
+
/**
|
|
11282
|
+
* Scale of the webpage rendering. Defaults to 1.
|
|
11283
|
+
*/
|
|
11284
|
+
scale?: number;
|
|
11285
|
+
}
|
|
11286
|
+
|
|
11209
11287
|
interface ProcessMemoryInfo {
|
|
11210
11288
|
|
|
11211
11289
|
// Docs: https://electronjs.org/docs/api/structures/process-memory-info
|
|
@@ -18979,6 +19057,22 @@ declare namespace Electron {
|
|
|
18979
19057
|
* For example:
|
|
18980
19058
|
*/
|
|
18981
19059
|
postMessage(channel: string, message: any, transfer?: MessagePortMain[]): void;
|
|
19060
|
+
/**
|
|
19061
|
+
* Resolves with the generated PDF data.
|
|
19062
|
+
*
|
|
19063
|
+
* Prints the frame's web page as PDF.
|
|
19064
|
+
*
|
|
19065
|
+
* Unlike `webContents.printToPDF`, this method prints only the contents of the
|
|
19066
|
+
* frame it is called on. This can be used to print an individual `<iframe>` from
|
|
19067
|
+
* the main process.
|
|
19068
|
+
*
|
|
19069
|
+
* The `landscape` will be ignored if `@page` CSS at-rule is used in the web page.
|
|
19070
|
+
*
|
|
19071
|
+
* An example of printing an iframe to PDF:
|
|
19072
|
+
*
|
|
19073
|
+
* See Page.printToPdf for more information.
|
|
19074
|
+
*/
|
|
19075
|
+
printToPDF(options: PrintToPDFOptions): Promise<Buffer>;
|
|
18982
19076
|
/**
|
|
18983
19077
|
* Whether the reload was initiated successfully. Only results in `false` when the
|
|
18984
19078
|
* frame has no history.
|
|
@@ -22080,39 +22174,12 @@ declare namespace Electron {
|
|
|
22080
22174
|
* `true` if the app is set to open at login.
|
|
22081
22175
|
*/
|
|
22082
22176
|
openAtLogin: boolean;
|
|
22083
|
-
/**
|
|
22084
|
-
* `true` if the app is set to open as hidden at login. This does not work on macOS
|
|
22085
|
-
* 13 and up.
|
|
22086
|
-
*
|
|
22087
|
-
* @deprecated
|
|
22088
|
-
* @platform darwin
|
|
22089
|
-
*/
|
|
22090
|
-
openAsHidden: boolean;
|
|
22091
22177
|
/**
|
|
22092
22178
|
* `true` if the app was opened at login automatically.
|
|
22093
22179
|
*
|
|
22094
22180
|
* @platform darwin
|
|
22095
22181
|
*/
|
|
22096
22182
|
wasOpenedAtLogin: boolean;
|
|
22097
|
-
/**
|
|
22098
|
-
* `true` if the app was opened as a hidden login item. This indicates that the app
|
|
22099
|
-
* should not open any windows at startup. This setting is not available on MAS
|
|
22100
|
-
* builds or on macOS 13 and up.
|
|
22101
|
-
*
|
|
22102
|
-
* @deprecated
|
|
22103
|
-
* @platform darwin
|
|
22104
|
-
*/
|
|
22105
|
-
wasOpenedAsHidden: boolean;
|
|
22106
|
-
/**
|
|
22107
|
-
* `true` if the app was opened as a login item that should restore the state from
|
|
22108
|
-
* the previous session. This indicates that the app should restore the windows
|
|
22109
|
-
* that were open the last time the app was closed. This setting is not available
|
|
22110
|
-
* on MAS builds or on macOS 13 and up.
|
|
22111
|
-
*
|
|
22112
|
-
* @deprecated
|
|
22113
|
-
* @platform darwin
|
|
22114
|
-
*/
|
|
22115
|
-
restoreState: boolean;
|
|
22116
22183
|
/**
|
|
22117
22184
|
* can be `not-registered`, `enabled`, `requires-approval`, or `not-found`.
|
|
22118
22185
|
*
|
|
@@ -22134,15 +22201,14 @@ declare namespace Electron {
|
|
|
22134
22201
|
interface LoginItemSettingsOptions {
|
|
22135
22202
|
/**
|
|
22136
22203
|
* Can be `mainAppService`, `agentService`, `daemonService`, or `loginItemService`.
|
|
22137
|
-
* Defaults to `mainAppService`.
|
|
22138
|
-
*
|
|
22204
|
+
* Defaults to `mainAppService`. See app.setLoginItemSettings for more information
|
|
22205
|
+
* about each type.
|
|
22139
22206
|
*
|
|
22140
22207
|
* @platform darwin
|
|
22141
22208
|
*/
|
|
22142
22209
|
type?: ('mainAppService' | 'agentService' | 'daemonService' | 'loginItemService');
|
|
22143
22210
|
/**
|
|
22144
|
-
* The name of the service. Required if `type` is non-default.
|
|
22145
|
-
* macOS 13 and up.
|
|
22211
|
+
* The name of the service. Required if `type` is non-default.
|
|
22146
22212
|
*
|
|
22147
22213
|
* @platform darwin
|
|
22148
22214
|
*/
|
|
@@ -23150,70 +23216,6 @@ declare namespace Electron {
|
|
|
23150
23216
|
numSockets?: number;
|
|
23151
23217
|
}
|
|
23152
23218
|
|
|
23153
|
-
interface PrintToPDFOptions {
|
|
23154
|
-
/**
|
|
23155
|
-
* Paper orientation.`true` for landscape, `false` for portrait. Defaults to false.
|
|
23156
|
-
*/
|
|
23157
|
-
landscape?: boolean;
|
|
23158
|
-
/**
|
|
23159
|
-
* Whether to display header and footer. Defaults to false.
|
|
23160
|
-
*/
|
|
23161
|
-
displayHeaderFooter?: boolean;
|
|
23162
|
-
/**
|
|
23163
|
-
* Whether to print background graphics. Defaults to false.
|
|
23164
|
-
*/
|
|
23165
|
-
printBackground?: boolean;
|
|
23166
|
-
/**
|
|
23167
|
-
* Scale of the webpage rendering. Defaults to 1.
|
|
23168
|
-
*/
|
|
23169
|
-
scale?: number;
|
|
23170
|
-
/**
|
|
23171
|
-
* Specify page size of the generated PDF. Can be `A0`, `A1`, `A2`, `A3`, `A4`,
|
|
23172
|
-
* `A5`, `A6`, `Legal`, `Letter`, `Tabloid`, `Ledger`, or an Object containing
|
|
23173
|
-
* `height` and `width` in inches. Defaults to `Letter`.
|
|
23174
|
-
*/
|
|
23175
|
-
pageSize?: (('A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'Legal' | 'Letter' | 'Tabloid' | 'Ledger')) | (Size);
|
|
23176
|
-
margins?: Margins;
|
|
23177
|
-
/**
|
|
23178
|
-
* Page ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which
|
|
23179
|
-
* means print all pages.
|
|
23180
|
-
*/
|
|
23181
|
-
pageRanges?: string;
|
|
23182
|
-
/**
|
|
23183
|
-
* HTML template for the print header. Should be valid HTML markup with following
|
|
23184
|
-
* classes used to inject printing values into them: `date` (formatted print date),
|
|
23185
|
-
* `title` (document title), `url` (document location), `pageNumber` (current page
|
|
23186
|
-
* number) and `totalPages` (total pages in the document). For example, `<span
|
|
23187
|
-
* class=title></span>` would generate span containing the title.
|
|
23188
|
-
*/
|
|
23189
|
-
headerTemplate?: string;
|
|
23190
|
-
/**
|
|
23191
|
-
* HTML template for the print footer. Should use the same format as the
|
|
23192
|
-
* `headerTemplate`.
|
|
23193
|
-
*/
|
|
23194
|
-
footerTemplate?: string;
|
|
23195
|
-
/**
|
|
23196
|
-
* Whether or not to prefer page size as defined by css. Defaults to false, in
|
|
23197
|
-
* which case the content will be scaled to fit the paper size.
|
|
23198
|
-
*/
|
|
23199
|
-
preferCSSPageSize?: boolean;
|
|
23200
|
-
/**
|
|
23201
|
-
* Whether or not to generate a tagged (accessible) PDF. Defaults to false. As this
|
|
23202
|
-
* property is experimental, the generated PDF may not adhere fully to PDF/UA and
|
|
23203
|
-
* WCAG standards.
|
|
23204
|
-
*
|
|
23205
|
-
* @experimental
|
|
23206
|
-
*/
|
|
23207
|
-
generateTaggedPDF?: boolean;
|
|
23208
|
-
/**
|
|
23209
|
-
* Whether or not to generate a PDF document outline from content headers. Defaults
|
|
23210
|
-
* to false.
|
|
23211
|
-
*
|
|
23212
|
-
* @experimental
|
|
23213
|
-
*/
|
|
23214
|
-
generateDocumentOutline?: boolean;
|
|
23215
|
-
}
|
|
23216
|
-
|
|
23217
23219
|
interface Privileges {
|
|
23218
23220
|
/**
|
|
23219
23221
|
* Default false.
|
|
@@ -23613,26 +23615,13 @@ declare namespace Electron {
|
|
|
23613
23615
|
*/
|
|
23614
23616
|
openAtLogin?: boolean;
|
|
23615
23617
|
/**
|
|
23616
|
-
*
|
|
23617
|
-
* setting from the System Preferences so
|
|
23618
|
-
* `app.getLoginItemSettings().wasOpenedAsHidden` should be checked when the app is
|
|
23619
|
-
* opened to know the current value. This setting is not available on MAS builds or
|
|
23620
|
-
* on macOS 13 and up.
|
|
23621
|
-
*
|
|
23622
|
-
* @deprecated
|
|
23623
|
-
* @platform darwin
|
|
23624
|
-
*/
|
|
23625
|
-
openAsHidden?: boolean;
|
|
23626
|
-
/**
|
|
23627
|
-
* The type of service to add as a login item. Defaults to `mainAppService`. Only
|
|
23628
|
-
* available on macOS 13 and up.
|
|
23618
|
+
* The type of service to add as a login item. Defaults to `mainAppService`.
|
|
23629
23619
|
*
|
|
23630
23620
|
* @platform darwin
|
|
23631
23621
|
*/
|
|
23632
23622
|
type?: ('mainAppService' | 'agentService' | 'daemonService' | 'loginItemService');
|
|
23633
23623
|
/**
|
|
23634
|
-
* The name of the service. Required if `type` is non-default.
|
|
23635
|
-
* macOS 13 and up.
|
|
23624
|
+
* The name of the service. Required if `type` is non-default.
|
|
23636
23625
|
*
|
|
23637
23626
|
* @platform darwin
|
|
23638
23627
|
*/
|
|
@@ -25148,7 +25137,6 @@ declare namespace Electron {
|
|
|
25148
25137
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
25149
25138
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
25150
25139
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25151
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25152
25140
|
type Privileges = Electron.Privileges;
|
|
25153
25141
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
25154
25142
|
type Provider = Electron.Provider;
|
|
@@ -25291,6 +25279,8 @@ declare namespace Electron {
|
|
|
25291
25279
|
type PreloadScript = Electron.PreloadScript;
|
|
25292
25280
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
25293
25281
|
type PrinterInfo = Electron.PrinterInfo;
|
|
25282
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
25283
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25294
25284
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
25295
25285
|
type ProcessMetric = Electron.ProcessMetric;
|
|
25296
25286
|
type Product = Electron.Product;
|
|
@@ -25559,7 +25549,6 @@ declare namespace Electron {
|
|
|
25559
25549
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
25560
25550
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
25561
25551
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25562
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25563
25552
|
type Privileges = Electron.Privileges;
|
|
25564
25553
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
25565
25554
|
type Provider = Electron.Provider;
|
|
@@ -25702,6 +25691,8 @@ declare namespace Electron {
|
|
|
25702
25691
|
type PreloadScript = Electron.PreloadScript;
|
|
25703
25692
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
25704
25693
|
type PrinterInfo = Electron.PrinterInfo;
|
|
25694
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
25695
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25705
25696
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
25706
25697
|
type ProcessMetric = Electron.ProcessMetric;
|
|
25707
25698
|
type Product = Electron.Product;
|
|
@@ -25894,7 +25885,6 @@ declare namespace Electron {
|
|
|
25894
25885
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
25895
25886
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
25896
25887
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25897
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25898
25888
|
type Privileges = Electron.Privileges;
|
|
25899
25889
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
25900
25890
|
type Provider = Electron.Provider;
|
|
@@ -26037,6 +26027,8 @@ declare namespace Electron {
|
|
|
26037
26027
|
type PreloadScript = Electron.PreloadScript;
|
|
26038
26028
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
26039
26029
|
type PrinterInfo = Electron.PrinterInfo;
|
|
26030
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
26031
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26040
26032
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
26041
26033
|
type ProcessMetric = Electron.ProcessMetric;
|
|
26042
26034
|
type Product = Electron.Product;
|
|
@@ -26228,7 +26220,6 @@ declare namespace Electron {
|
|
|
26228
26220
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
26229
26221
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
26230
26222
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
26231
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26232
26223
|
type Privileges = Electron.Privileges;
|
|
26233
26224
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
26234
26225
|
type Provider = Electron.Provider;
|
|
@@ -26371,6 +26362,8 @@ declare namespace Electron {
|
|
|
26371
26362
|
type PreloadScript = Electron.PreloadScript;
|
|
26372
26363
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
26373
26364
|
type PrinterInfo = Electron.PrinterInfo;
|
|
26365
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
26366
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26374
26367
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
26375
26368
|
type ProcessMetric = Electron.ProcessMetric;
|
|
26376
26369
|
type Product = Electron.Product;
|
|
@@ -26658,7 +26651,6 @@ declare namespace Electron {
|
|
|
26658
26651
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
26659
26652
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
26660
26653
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
26661
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26662
26654
|
type Privileges = Electron.Privileges;
|
|
26663
26655
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
26664
26656
|
type Provider = Electron.Provider;
|
|
@@ -26801,6 +26793,8 @@ declare namespace Electron {
|
|
|
26801
26793
|
type PreloadScript = Electron.PreloadScript;
|
|
26802
26794
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
26803
26795
|
type PrinterInfo = Electron.PrinterInfo;
|
|
26796
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
26797
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26804
26798
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
26805
26799
|
type ProcessMetric = Electron.ProcessMetric;
|
|
26806
26800
|
type Product = Electron.Product;
|
package/package.json
CHANGED