google-closure-compiler 20250412.0.0-nightly → 20250413.0.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.
- package/README.md +5 -30
- package/cli.js +3 -4
- package/externs/browser/decorators.js +276 -0
- package/externs/browser/deprecated.js +58 -0
- package/externs/browser/es6_proxy.js +143 -0
- package/externs/browser/fetchapi.js +449 -0
- package/externs/browser/fido.js +94 -0
- package/externs/browser/flash.js +226 -0
- package/externs/browser/gecko_css.js +126 -0
- package/externs/browser/gecko_dom.js +479 -0
- package/externs/browser/gecko_event.js +86 -0
- package/externs/browser/gecko_xml.js +73 -0
- package/externs/browser/google_legacy.js +31 -0
- package/externs/browser/html5.js +6647 -0
- package/externs/browser/ie_css.js +270 -0
- package/externs/browser/ie_dom.js +1232 -0
- package/externs/browser/ie_event.js +310 -0
- package/externs/browser/ie_vml.js +77 -0
- package/externs/browser/intersection_observer.js +178 -0
- package/externs/browser/intl.js +602 -0
- package/externs/browser/iphone.js +204 -0
- package/externs/browser/mediakeys.js +305 -0
- package/externs/browser/mediasource.js +155 -0
- package/externs/browser/nonstandard_anim_timing.js +97 -0
- package/externs/browser/nonstandard_audio.js +82 -0
- package/externs/browser/nonstandard_console.js +75 -0
- package/externs/browser/nonstandard_fileapi.js +1066 -0
- package/externs/browser/nonstandard_indexeddb.js +78 -0
- package/externs/browser/nonstandard_navigation_timing.js +38 -0
- package/externs/browser/nonstandard_selection.js +80 -0
- package/externs/browser/page_visibility.js +28 -0
- package/externs/browser/streamsapi.js +593 -0
- package/externs/browser/svg.js +10016 -0
- package/externs/browser/url.js +202 -0
- package/externs/browser/v8.js +134 -0
- package/externs/browser/w3c_abort.js +89 -0
- package/externs/browser/w3c_anim_timing.js +49 -0
- package/externs/browser/w3c_aria_mixin.js +286 -0
- package/externs/browser/w3c_audio.js +1660 -0
- package/externs/browser/w3c_batterystatus.js +85 -0
- package/externs/browser/w3c_clipboard.js +74 -0
- package/externs/browser/w3c_clipboardevent.js +47 -0
- package/externs/browser/w3c_composition_event.js +93 -0
- package/externs/browser/w3c_css.js +3790 -0
- package/externs/browser/w3c_css3d.js +199 -0
- package/externs/browser/w3c_device_sensor_event.js +122 -0
- package/externs/browser/w3c_dom1.js +1160 -0
- package/externs/browser/w3c_dom2.js +3151 -0
- package/externs/browser/w3c_dom3.js +555 -0
- package/externs/browser/w3c_dom4.js +289 -0
- package/externs/browser/w3c_elementtraversal.js +116 -0
- package/externs/browser/w3c_event.js +607 -0
- package/externs/browser/w3c_event3.js +77 -0
- package/externs/browser/w3c_eventsource.js +110 -0
- package/externs/browser/w3c_fileapi.js +302 -0
- package/externs/browser/w3c_gamepad.js +113 -0
- package/externs/browser/w3c_geolocation.js +130 -0
- package/externs/browser/w3c_geometry1.js +899 -0
- package/externs/browser/w3c_indexeddb.js +771 -0
- package/externs/browser/w3c_keyboardlock.js +47 -0
- package/externs/browser/w3c_mediacapabilities.js +206 -0
- package/externs/browser/w3c_midi.js +301 -0
- package/externs/browser/w3c_navigation.js +72 -0
- package/externs/browser/w3c_navigation_timing.js +437 -0
- package/externs/browser/w3c_netinfo.js +85 -0
- package/externs/browser/w3c_payment_request.js +401 -0
- package/externs/browser/w3c_permissions.js +112 -0
- package/externs/browser/w3c_permissions_policy.js +78 -0
- package/externs/browser/w3c_pointer_events.js +163 -0
- package/externs/browser/w3c_pointerlock.js +63 -0
- package/externs/browser/w3c_range.js +284 -0
- package/externs/browser/w3c_referrer_policy.js +36 -0
- package/externs/browser/w3c_requestidlecallback.js +76 -0
- package/externs/browser/w3c_rtc.js +3882 -0
- package/externs/browser/w3c_screen_orientation.js +53 -0
- package/externs/browser/w3c_screen_wake_lock.js +58 -0
- package/externs/browser/w3c_selection.js +209 -0
- package/externs/browser/w3c_selectors.js +113 -0
- package/externs/browser/w3c_serviceworker.js +739 -0
- package/externs/browser/w3c_speech.js +426 -0
- package/externs/browser/w3c_touch_event.js +296 -0
- package/externs/browser/w3c_trusted_types.js +142 -0
- package/externs/browser/w3c_vibration.js +38 -0
- package/externs/browser/w3c_webcodecs.js +1473 -0
- package/externs/browser/w3c_webcrypto.js +839 -0
- package/externs/browser/w3c_worklets.js +54 -0
- package/externs/browser/w3c_xml.js +533 -0
- package/externs/browser/web_animations.js +452 -0
- package/externs/browser/web_app_manifest.js +50 -0
- package/externs/browser/webassembly.js +223 -0
- package/externs/browser/webgl.js +3409 -0
- package/externs/browser/webgl2.js +2727 -0
- package/externs/browser/webgl2_compute.js +1609 -0
- package/externs/browser/webkit_css.js +456 -0
- package/externs/browser/webkit_dom.js +118 -0
- package/externs/browser/webkit_event.js +46 -0
- package/externs/browser/webkit_notifications.js +258 -0
- package/externs/browser/webkit_usercontent.js +55 -0
- package/externs/browser/weblocksapi.js +125 -0
- package/externs/browser/webstorage.js +171 -0
- package/externs/browser/whatwg_bitmap_context.js +37 -0
- package/externs/browser/whatwg_console.js +152 -0
- package/externs/browser/whatwg_encoding.js +99 -0
- package/externs/browser/whatwg_file_system.js +296 -0
- package/externs/browser/wicg_attribution_reporting.js +42 -0
- package/externs/browser/wicg_compression_stream.js +60 -0
- package/externs/browser/wicg_constructable_stylesheets.js +60 -0
- package/externs/browser/wicg_entries.js +169 -0
- package/externs/browser/wicg_file_handling.js +41 -0
- package/externs/browser/wicg_file_system_access.js +191 -0
- package/externs/browser/wicg_floc.js +41 -0
- package/externs/browser/wicg_ink.js +89 -0
- package/externs/browser/wicg_resizeobserver.js +100 -0
- package/externs/browser/wicg_scheduler.js +62 -0
- package/externs/browser/wicg_trust_token.js +89 -0
- package/externs/browser/wicg_uach.js +100 -0
- package/externs/browser/window.js +190 -0
- package/externs/es3.js +2716 -0
- package/externs/es5.js +284 -0
- package/externs/es6.js +2554 -0
- package/externs/es6_collections.js +323 -0
- package/index.js +13 -16
- package/lib/grunt/index.js +71 -92
- package/lib/grunt/vinyl-stream.js +12 -18
- package/lib/gulp/concat-to-json.js +30 -18
- package/lib/gulp/index.js +174 -181
- package/lib/gulp/json-to-vinyl.js +8 -8
- package/lib/node/{closure-compiler.js → index.js} +27 -51
- package/lib/utils.js +16 -14
- package/package.json +19 -16
- package/lib/logger.js +0 -89
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015 The Closure Compiler Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Definitions for W3C's Battery Status API.
|
|
19
|
+
* The whole file has been fully type annotated. Created from
|
|
20
|
+
* https://www.w3.org/TR/battery-status/
|
|
21
|
+
*
|
|
22
|
+
* @externs
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @interface
|
|
29
|
+
* @extends {EventTarget}
|
|
30
|
+
*/
|
|
31
|
+
function BatteryManager() {}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
*/
|
|
37
|
+
BatteryManager.prototype.charging;
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @type {number}
|
|
42
|
+
*/
|
|
43
|
+
BatteryManager.prototype.chargingTime;
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @type {number}
|
|
48
|
+
*/
|
|
49
|
+
BatteryManager.prototype.dischargingTime;
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @type {number}
|
|
54
|
+
*/
|
|
55
|
+
BatteryManager.prototype.level;
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @type {?function(!Event): void}
|
|
60
|
+
*/
|
|
61
|
+
BatteryManager.prototype.onchargingchange;
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @type {?function(!Event): void}
|
|
66
|
+
*/
|
|
67
|
+
BatteryManager.prototype.onchargingtimechange;
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @type {?function(!Event): void}
|
|
72
|
+
*/
|
|
73
|
+
BatteryManager.prototype.ondischargingtimechange;
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @type {?function(!Event): void}
|
|
78
|
+
*/
|
|
79
|
+
BatteryManager.prototype.onlevelchange;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @return {!Promise<!BatteryManager>}
|
|
83
|
+
* @see http://www.w3.org/TR/battery-status/
|
|
84
|
+
*/
|
|
85
|
+
Navigator.prototype.getBattery = function() {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2018 The Closure Compiler Authors.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Declaration of the asynchronous clipboard Web API.
|
|
19
|
+
* @externs
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @constructor
|
|
24
|
+
* @see https://w3c.github.io/clipboard-apis/#clipboard-interface
|
|
25
|
+
*/
|
|
26
|
+
function Clipboard() {}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @return {!Promise<!Array<!ClipboardItem>>}
|
|
30
|
+
*/
|
|
31
|
+
Clipboard.prototype.read = function() {};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @return {!Promise<string>}
|
|
35
|
+
*/
|
|
36
|
+
Clipboard.prototype.readText = function() {};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @param {!Array<!ClipboardItem>} data
|
|
40
|
+
* @return {!Promise<void>}
|
|
41
|
+
*/
|
|
42
|
+
Clipboard.prototype.write = function(data) {};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @param {string} text
|
|
46
|
+
* @return {!Promise<void>}
|
|
47
|
+
*/
|
|
48
|
+
Clipboard.prototype.writeText = function(text) {};
|
|
49
|
+
|
|
50
|
+
/** @const {!Clipboard} */
|
|
51
|
+
Navigator.prototype.clipboard;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @constructor
|
|
55
|
+
* @param {!Object<string, (!string|!Blob|!Promise<!string>|!Promise<!Blob>)>}
|
|
56
|
+
* items
|
|
57
|
+
* @param {ClipboardItemOptions=} options
|
|
58
|
+
*/
|
|
59
|
+
function ClipboardItem(items, options) {}
|
|
60
|
+
|
|
61
|
+
/** @type {!Array<!string>} */
|
|
62
|
+
ClipboardItem.prototype.types;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @param {string} type
|
|
66
|
+
* @return {!Promise<!Blob>}
|
|
67
|
+
*/
|
|
68
|
+
ClipboardItem.prototype.getType = function(type) {};
|
|
69
|
+
|
|
70
|
+
/** @record */
|
|
71
|
+
function ClipboardItemOptions() {}
|
|
72
|
+
|
|
73
|
+
/** @type {string|undefined} */
|
|
74
|
+
ClipboardItemOptions.prototype.presentationStyle;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015 The Closure Compiler Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Definitions for W3C's ClipboardEvent API.
|
|
19
|
+
* @see http://www.w3.org/TR/clipboard-apis/
|
|
20
|
+
*
|
|
21
|
+
* @externs
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @record
|
|
28
|
+
* @extends {EventInit}
|
|
29
|
+
* @see https://www.w3.org/TR/clipboard-apis/#dfn-eventinit
|
|
30
|
+
*/
|
|
31
|
+
function ClipboardEventInit() {}
|
|
32
|
+
|
|
33
|
+
/** @type {?DataTransfer|undefined} */
|
|
34
|
+
ClipboardEventInit.prototype.clipboardData;
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @constructor
|
|
39
|
+
* @extends {Event}
|
|
40
|
+
* @param {string} type
|
|
41
|
+
* @param {ClipboardEventInit=} opt_eventInitDict
|
|
42
|
+
*/
|
|
43
|
+
function ClipboardEvent(type, opt_eventInitDict) {}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/** @const {?DataTransfer} */
|
|
47
|
+
ClipboardEvent.prototype.clipboardData;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2018 The Closure Compiler Authors.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Definitions for W3C's Composition Events specification.
|
|
19
|
+
* @externs
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The `CompositionEvent` interface provides specific contextual information
|
|
24
|
+
* associated with Composition Events.
|
|
25
|
+
* @see https://www.w3.org/TR/uievents/#interface-compositionevent
|
|
26
|
+
* @record
|
|
27
|
+
* @extends {UIEventInit}
|
|
28
|
+
*/
|
|
29
|
+
function CompositionEventInit() {}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* `data` holds the value of the characters generated by an input method. This
|
|
33
|
+
* MAY be a single Unicode character or a non-empty sequence of Unicode
|
|
34
|
+
* characters. This attribute MAY be the empty string. The un-initialized value
|
|
35
|
+
* of this attribute MUST be "" (the empty string).
|
|
36
|
+
* @type {string}
|
|
37
|
+
*/
|
|
38
|
+
CompositionEventInit.prototype.data;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Composition Events provide a means for inputing text in a supplementary or
|
|
42
|
+
* alternate manner than by Keyboard Events, in order to allow the use of
|
|
43
|
+
* characters that might not be commonly available on keyboard. For example,
|
|
44
|
+
* Composition Events might be used to add accents to characters despite their
|
|
45
|
+
* absence from standard US keyboards, to build up logograms of many Asian
|
|
46
|
+
* languages from their base components or categories, to select word choices
|
|
47
|
+
* from a combination of key presses on a mobile device keyboard, or to convert
|
|
48
|
+
* voice commands into text using a speech recognition processor.
|
|
49
|
+
*
|
|
50
|
+
* Conceptually, a composition session consists of one `compositionstart` event,
|
|
51
|
+
* one or more `compositionupdate` events, and one `compositionend` event, with
|
|
52
|
+
* the value of the data attribute persisting between each stage of this event
|
|
53
|
+
* chain during each session.
|
|
54
|
+
*
|
|
55
|
+
* Not all IME systems or devices expose the necessary data to the DOM, so the
|
|
56
|
+
* active composition string (the "Reading Window" or "candidate selection" menu
|
|
57
|
+
* option) might not be available through this interface, in which case the
|
|
58
|
+
* selection MAY be represented by the empty string.
|
|
59
|
+
*
|
|
60
|
+
* @see https://www.w3.org/TR/uievents/#events-compositionevents
|
|
61
|
+
* @param {string} type
|
|
62
|
+
* @param {!CompositionEventInit=} opt_eventInitDict
|
|
63
|
+
* @extends {UIEvent}
|
|
64
|
+
* @constructor
|
|
65
|
+
*/
|
|
66
|
+
function CompositionEvent(type, opt_eventInitDict) {}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Initializes attributes of a `CompositionEvent` object. This method has the
|
|
70
|
+
* same behavior as `UIEvent.initUIEvent()`. The value of `detail` remains
|
|
71
|
+
* undefined.
|
|
72
|
+
*
|
|
73
|
+
* @see https://www.w3.org/TR/uievents/#idl-interface-CompositionEvent-initializers
|
|
74
|
+
* @param {string} typeArg
|
|
75
|
+
* @param {boolean} canBubbleArg
|
|
76
|
+
* @param {boolean} cancelableArg
|
|
77
|
+
* @param {?Window} viewArg
|
|
78
|
+
* @param {string} dataArg
|
|
79
|
+
* @param {string} localeArg
|
|
80
|
+
* @return {undefined}
|
|
81
|
+
*/
|
|
82
|
+
CompositionEvent.prototype.initCompositionEvent = function(
|
|
83
|
+
typeArg, canBubbleArg, cancelableArg, viewArg, dataArg, localeArg) {};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @type {string}
|
|
87
|
+
*/
|
|
88
|
+
CompositionEvent.prototype.data;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @type {string}
|
|
92
|
+
*/
|
|
93
|
+
CompositionEvent.prototype.locale;
|