Skip to content

Commit ede3321

Browse files
authored
update to @webref/[email protected] (#1288)
Co-authored-by: saschanaz <[email protected]>
1 parent d5fc0b1 commit ede3321

File tree

5 files changed

+29
-25
lines changed

5 files changed

+29
-25
lines changed

baselines/dom.generated.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -3582,14 +3582,15 @@ declare var ClipboardEvent: {
35823582
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
35833583
};
35843584

3585+
/** Available only in secure contexts. */
35853586
interface ClipboardItem {
35863587
readonly types: ReadonlyArray<string>;
35873588
getType(type: string): Promise<Blob>;
35883589
}
35893590

35903591
declare var ClipboardItem: {
35913592
prototype: ClipboardItem;
3592-
new(items: Record<string, ClipboardItemDataType | PromiseLike<ClipboardItemDataType>>, options?: ClipboardItemOptions): ClipboardItem;
3593+
new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;
35933594
};
35943595

35953596
/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
@@ -10468,7 +10469,7 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming {
1046810469
readonly loadEventEnd: DOMHighResTimeStamp;
1046910470
readonly loadEventStart: DOMHighResTimeStamp;
1047010471
readonly redirectCount: number;
10471-
readonly type: NavigationType;
10472+
readonly type: NavigationTimingType;
1047210473
readonly unloadEventEnd: DOMHighResTimeStamp;
1047310474
readonly unloadEventStart: DOMHighResTimeStamp;
1047410475
toJSON(): any;
@@ -17952,8 +17953,7 @@ type BufferSource = ArrayBufferView | ArrayBuffer;
1795217953
type COSEAlgorithmIdentifier = number;
1795317954
type CSSNumberish = number;
1795417955
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
17955-
type ClipboardItemData = Promise<ClipboardItemDataType>;
17956-
type ClipboardItemDataType = string | Blob;
17956+
type ClipboardItemData = Promise<string | Blob>;
1795717957
type ClipboardItems = ClipboardItem[];
1795817958
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
1795917959
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
@@ -18079,7 +18079,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
1807918079
type MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";
1808018080
type MediaSessionPlaybackState = "none" | "paused" | "playing";
1808118081
type MediaStreamTrackState = "ended" | "live";
18082-
type NavigationType = "back_forward" | "navigate" | "prerender" | "reload";
18082+
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
1808318083
type NotificationDirection = "auto" | "ltr" | "rtl";
1808418084
type NotificationPermission = "default" | "denied" | "granted";
1808518085
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";

inputfiles/idl/html.commentmap.json

-12
Original file line numberDiff line numberDiff line change
@@ -374,18 +374,6 @@
374374
"eventsource-url": "Returns the URL providing the event stream.",
375375
"eventsource-withcredentials": "Returns true if the credentials mode for connection requests to the URL providing the event stream is set to \"include\", and false otherwise.",
376376
"eventsource-readystate": "Returns the state of this EventSource object's connection. It can have the values described below.",
377-
"websocket": "Creates a new WebSocket object, immediately establishing the associated WebSocket connection.\n\nurl is a string giving the URL over which the connection is established. Only \"ws\" or \"wss\" schemes are allowed; others will cause a \"SyntaxError\" DOMException. URLs with fragments will also cause such an exception.\n\nprotocols is either a string or an array of strings. If it is a string, it is equivalent to an array consisting of just that string; if it is omitted, it is equivalent to the empty array. Each string in the array is a subprotocol name. The connection will only be established if the server reports that it has selected one of these subprotocols. The subprotocol names have to match the requirements for elements that comprise the value of Sec-WebSocket-Protocol fields as defined by The WebSocket protocol. [WSP]",
378-
"websocket-send": "Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.",
379-
"websocket-close": "Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.",
380-
"websocket-url": "Returns the URL that was used to establish the WebSocket connection.",
381-
"websocket-readystate": "Returns the state of the WebSocket object's connection. It can have the values described below.",
382-
"websocket-bufferedamount": "Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.\n\nIf the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)",
383-
"websocket-extensions": "Returns the extensions selected by the server, if any.",
384-
"websocket-protocol": "Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.",
385-
"websocket-binarytype": "Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n\nCan be set, to change how binary data is returned. The default is \"blob\".",
386-
"closeevent-wasclean": "Returns true if the connection closed cleanly; false otherwise.",
387-
"closeevent-code": "Returns the WebSocket connection close code provided by the server.",
388-
"closeevent-reason": "Returns the WebSocket connection close reason provided by the server.",
389377
"window-postmessage": "Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.\n\nObjects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n\nA target origin can be specified using the targetOrigin member of options. If not provided, it defaults to \"/\". This default restricts the message to same-origin targets only.\n\nIf the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to \"*\".\n\nThrows a \"DataCloneError\" DOMException if transfer array contains duplicate objects or if message could not be cloned.",
390378
"messagechannel": "Returns a new MessageChannel object with two new MessagePort objects.",
391379
"messagechannel-port1": "Returns the first MessagePort object.",
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"closeevent-wasclean": "Returns true if the connection closed cleanly; false otherwise.",
3+
"closeevent-code": "Returns the WebSocket connection close code provided by the server.",
4+
"closeevent-reason": "Returns the WebSocket connection close reason provided by the server.",
5+
"websocket": "Creates a new WebSocket object, immediately establishing the associated WebSocket connection.\n\nurl is a string giving the URL over which the connection is established. Only \"ws\" or \"wss\" schemes are allowed; others will cause a \"SyntaxError\" DOMException. URLs with fragments will also cause such an exception.\n\nprotocols is either a string or an array of strings. If it is a string, it is equivalent to an array consisting of just that string; if it is omitted, it is equivalent to the empty array. Each string in the array is a subprotocol name. The connection will only be established if the server reports that it has selected one of these subprotocols. The subprotocol names have to match the requirements for elements that comprise the value of Sec-WebSocket-Protocol fields as defined by The WebSocket protocol. [WSP]",
6+
"websocket-send": "Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.",
7+
"websocket-close": "Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.",
8+
"websocket-url": "Returns the URL that was used to establish the WebSocket connection.",
9+
"websocket-readystate": "Returns the state of the WebSocket object's connection. It can have the values described below.",
10+
"websocket-bufferedamount": "Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.\n\nIf the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)",
11+
"websocket-extensions": "Returns the extensions selected by the server, if any.",
12+
"websocket-protocol": "Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.",
13+
"websocket-binarytype": "Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n\nCan be set, to change how binary data is returned. The default is \"blob\"."
14+
}

inputfiles/removedTypes.jsonc

+3-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,9 @@
391391
"members": {
392392
"member": {
393393
// Corresponds to Request#importance
394-
"importance": null
394+
"importance": null,
395+
// Corresponds to Request#priority
396+
"priority": null
395397
}
396398
}
397399
},

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)