@webref/idl 3.56.2 → 3.58.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/dom.idl +2 -2
- package/element-timing.idl +2 -0
- package/gpc.idl +10 -0
- package/login-status.idl +19 -0
- package/mediacapture-surface-control.idl +16 -0
- package/observable.idl +2 -2
- package/package.json +1 -1
- package/sanitizer-api.idl +20 -3
- package/shared-storage.idl +8 -0
- package/vibration.idl +1 -1
- package/web-locks.idl +2 -2
- package/webnn.idl +2 -10
package/dom.idl
CHANGED
|
@@ -237,7 +237,7 @@ interface Node : EventTarget {
|
|
|
237
237
|
[CEReactions] attribute DOMString? textContent;
|
|
238
238
|
[CEReactions] undefined normalize();
|
|
239
239
|
|
|
240
|
-
[CEReactions, NewObject] Node cloneNode(optional boolean
|
|
240
|
+
[CEReactions, NewObject] Node cloneNode(optional boolean subtree = false);
|
|
241
241
|
boolean isEqualNode(Node? otherNode);
|
|
242
242
|
boolean isSameNode(Node? otherNode); // legacy alias of ===
|
|
243
243
|
|
|
@@ -291,7 +291,7 @@ interface Document : Node {
|
|
|
291
291
|
[NewObject] Comment createComment(DOMString data);
|
|
292
292
|
[NewObject] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
|
|
293
293
|
|
|
294
|
-
[CEReactions, NewObject] Node importNode(Node node, optional boolean
|
|
294
|
+
[CEReactions, NewObject] Node importNode(Node node, optional boolean subtree = false);
|
|
295
295
|
[CEReactions] Node adoptNode(Node node);
|
|
296
296
|
|
|
297
297
|
[NewObject] Attr createAttribute(DOMString localName);
|
package/element-timing.idl
CHANGED
package/gpc.idl
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Global Privacy Control (GPC) (https://w3c.github.io/gpc/)
|
|
5
|
+
|
|
6
|
+
interface mixin GlobalPrivacyControl {
|
|
7
|
+
readonly attribute boolean globalPrivacyControl;
|
|
8
|
+
};
|
|
9
|
+
Navigator includes GlobalPrivacyControl;
|
|
10
|
+
WorkerNavigator includes GlobalPrivacyControl;
|
package/login-status.idl
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Login Status API (https://w3c-fedid.github.io/login-status/)
|
|
5
|
+
|
|
6
|
+
enum LoginStatus {
|
|
7
|
+
"logged-in",
|
|
8
|
+
"logged-out",
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
[Exposed=Window, SecureContext]
|
|
12
|
+
|
|
13
|
+
interface NavigatorLogin {
|
|
14
|
+
Promise<undefined> setStatus(LoginStatus status);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
partial interface Navigator {
|
|
18
|
+
[SecureContext] readonly attribute NavigatorLogin login;
|
|
19
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Captured Surface Control (https://w3c.github.io/mediacapture-surface-control/)
|
|
5
|
+
|
|
6
|
+
partial interface CaptureController {
|
|
7
|
+
sequence<long> getSupportedZoomLevels();
|
|
8
|
+
long getZoomLevel();
|
|
9
|
+
Promise<undefined> setZoomLevel(long zoomLevel);
|
|
10
|
+
attribute EventHandler oncapturedzoomlevelchange;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
partial interface CaptureController {
|
|
14
|
+
constructor();
|
|
15
|
+
Promise<undefined> forwardWheel(HTMLElement element);
|
|
16
|
+
};
|
package/observable.idl
CHANGED
|
@@ -18,7 +18,7 @@ interface Subscriber {
|
|
|
18
18
|
readonly attribute AbortSignal signal;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
// SubscribeCallback is where the Observable "creator
|
|
21
|
+
// SubscribeCallback is where the Observable "creator's" code lives. It's
|
|
22
22
|
// called when subscribe() is called, to set up a new subscription.
|
|
23
23
|
callback SubscribeCallback = undefined (Subscriber subscriber);
|
|
24
24
|
callback ObservableSubscriptionCallback = undefined (any value);
|
|
@@ -63,7 +63,7 @@ interface Observable {
|
|
|
63
63
|
constructor(SubscribeCallback callback);
|
|
64
64
|
undefined subscribe(optional ObserverUnion observer = {}, optional SubscribeOptions options = {});
|
|
65
65
|
|
|
66
|
-
// Constructs a native Observable from value if it
|
|
66
|
+
// Constructs a native Observable from value if it's any of the following:
|
|
67
67
|
// - Observable
|
|
68
68
|
// - AsyncIterable
|
|
69
69
|
// - Iterable
|
package/package.json
CHANGED
package/sanitizer-api.idl
CHANGED
|
@@ -3,15 +3,32 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: HTML Sanitizer API (https://wicg.github.io/sanitizer-api/)
|
|
5
5
|
|
|
6
|
+
enum SanitizerPresets { "default" };
|
|
6
7
|
dictionary SetHTMLOptions {
|
|
7
|
-
(Sanitizer or SanitizerConfig) sanitizer =
|
|
8
|
+
(Sanitizer or SanitizerConfig or SanitizerPresets) sanitizer = "default";
|
|
9
|
+
};
|
|
10
|
+
dictionary SetHTMLUnsafeOptions {
|
|
11
|
+
(Sanitizer or SanitizerConfig or SanitizerPresets) sanitizer = {};
|
|
8
12
|
};
|
|
9
13
|
|
|
10
14
|
[Exposed=(Window,Worker)]
|
|
11
15
|
interface Sanitizer {
|
|
12
|
-
constructor(optional SanitizerConfig
|
|
16
|
+
constructor(optional (SanitizerConfig or SanitizerPresets) configuration = "default");
|
|
17
|
+
|
|
18
|
+
// Query configuration:
|
|
13
19
|
SanitizerConfig get();
|
|
14
|
-
|
|
20
|
+
|
|
21
|
+
// Modify a Sanitizer’s lists and fields:
|
|
22
|
+
undefined allowElement(SanitizerElementWithAttributes element);
|
|
23
|
+
undefined removeElement(SanitizerElement element);
|
|
24
|
+
undefined replaceElementWithChildren(SanitizerElement element);
|
|
25
|
+
undefined allowAttribute(SanitizerAttribute attribute);
|
|
26
|
+
undefined removeAttribute(SanitizerAttribute attribute);
|
|
27
|
+
undefined setComments(boolean allow);
|
|
28
|
+
undefined setDataAttributes(boolean allow);
|
|
29
|
+
|
|
30
|
+
// Remove markup that executes script. May modify multiple lists:
|
|
31
|
+
undefined removeUnsafe();
|
|
15
32
|
};
|
|
16
33
|
|
|
17
34
|
dictionary SanitizerElementNamespace {
|
package/shared-storage.idl
CHANGED
|
@@ -25,6 +25,8 @@ interface SharedStorageWorkletGlobalScope : WorkletGlobalScope {
|
|
|
25
25
|
readonly attribute PrivateAggregation privateAggregation;
|
|
26
26
|
|
|
27
27
|
Promise<sequence<StorageInterestGroup>> interestGroups();
|
|
28
|
+
|
|
29
|
+
readonly attribute SharedStorageWorkletNavigator navigator;
|
|
28
30
|
};
|
|
29
31
|
|
|
30
32
|
dictionary SharedStorageUrlWithMetadata {
|
|
@@ -106,3 +108,9 @@ HTMLImageElement includes HTMLSharedStorageWritableElementUtils;
|
|
|
106
108
|
partial dictionary RequestInit {
|
|
107
109
|
boolean sharedStorageWritable;
|
|
108
110
|
};
|
|
111
|
+
|
|
112
|
+
[
|
|
113
|
+
Exposed=SharedStorageWorklet
|
|
114
|
+
] interface SharedStorageWorkletNavigator {};
|
|
115
|
+
|
|
116
|
+
SharedStorageWorkletNavigator includes NavigatorLocks;
|
package/vibration.idl
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// GENERATED CONTENT - DO NOT EDIT
|
|
2
2
|
// Content was automatically extracted by Reffy into webref
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
|
-
// Source: Vibration API (
|
|
4
|
+
// Source: Vibration API (https://w3c.github.io/vibration/)
|
|
5
5
|
|
|
6
6
|
typedef (unsigned long or sequence<unsigned long>) VibratePattern;
|
|
7
7
|
|
package/web-locks.idl
CHANGED
|
@@ -10,7 +10,7 @@ interface mixin NavigatorLocks {
|
|
|
10
10
|
Navigator includes NavigatorLocks;
|
|
11
11
|
WorkerNavigator includes NavigatorLocks;
|
|
12
12
|
|
|
13
|
-
[SecureContext, Exposed=(Window,Worker)]
|
|
13
|
+
[SecureContext, Exposed=(Window,Worker,SharedStorageWorklet)]
|
|
14
14
|
interface LockManager {
|
|
15
15
|
Promise<any> request(DOMString name,
|
|
16
16
|
LockGrantedCallback callback);
|
|
@@ -43,7 +43,7 @@ dictionary LockInfo {
|
|
|
43
43
|
DOMString clientId;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
[SecureContext, Exposed=(Window,Worker)]
|
|
46
|
+
[SecureContext, Exposed=(Window,Worker,SharedStorageWorklet)]
|
|
47
47
|
interface Lock {
|
|
48
48
|
readonly attribute DOMString name;
|
|
49
49
|
readonly attribute LockMode mode;
|
package/webnn.idl
CHANGED
|
@@ -32,19 +32,10 @@ interface ML {
|
|
|
32
32
|
Promise<MLContext> createContext(GPUDevice gpuDevice);
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
typedef record<USVString, ArrayBufferView> MLNamedArrayBufferViews;
|
|
36
35
|
typedef record<USVString, MLTensor> MLNamedTensors;
|
|
37
36
|
|
|
38
|
-
dictionary MLComputeResult {
|
|
39
|
-
MLNamedArrayBufferViews inputs;
|
|
40
|
-
MLNamedArrayBufferViews outputs;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
37
|
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
44
38
|
interface MLContext {
|
|
45
|
-
// ISSUE(791): compute() will soon be removed in favor of dispatch().
|
|
46
|
-
Promise<MLComputeResult> compute(
|
|
47
|
-
MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
|
|
48
39
|
undefined dispatch(MLGraph graph, MLNamedTensors inputs, MLNamedTensors outputs);
|
|
49
40
|
|
|
50
41
|
Promise<MLTensor> createTensor(MLTensorDescriptor descriptor);
|
|
@@ -141,7 +132,8 @@ interface MLGraphBuilder {
|
|
|
141
132
|
MLOperand input(USVString name, MLOperandDescriptor descriptor);
|
|
142
133
|
|
|
143
134
|
// Create an operand for a graph constant.
|
|
144
|
-
MLOperand constant(MLOperandDescriptor descriptor,
|
|
135
|
+
MLOperand constant(MLOperandDescriptor descriptor,
|
|
136
|
+
AllowSharedBufferSource buffer);
|
|
145
137
|
|
|
146
138
|
// Create a scalar operand from the specified number of the specified type.
|
|
147
139
|
MLOperand constant(MLOperandDataType type, MLNumber value);
|