@webref/idl 3.4.0 → 3.5.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.
@@ -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: Compute Pressure API (https://wicg.github.io/compute-pressure/)
4
+ // Source: Compute Pressure API Level 1 (https://wicg.github.io/compute-pressure/)
5
5
 
6
6
  enum ComputePressureState { "nominal", "fair", "serious", "critical" };
7
7
 
@@ -16,14 +16,14 @@ enum ComputePressureSource { "cpu" };
16
16
 
17
17
  [Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
18
18
  interface ComputePressureObserver {
19
- constructor(ComputePressureUpdateCallback callback);
19
+ constructor(ComputePressureUpdateCallback callback, optional ComputePressureObserverOptions options = {});
20
20
 
21
- undefined observe(ComputePressureSource source, optional ComputePressureObserverOptions options = {});
21
+ undefined observe(ComputePressureSource source);
22
22
  undefined unobserve(ComputePressureSource source);
23
23
  undefined disconnect();
24
24
  sequence<ComputePressureRecord> takeRecords();
25
25
 
26
- [SameObject] static readonly attribute FrozenArray<DOMString> supportedSources;
26
+ [SameObject] static readonly attribute FrozenArray<ComputePressureSource> supportedSources;
27
27
 
28
28
  [Exposed=Window] static Promise<PermissionState> requestPermission();
29
29
  };
@@ -32,8 +32,7 @@ dictionary ComputePressureRecord {
32
32
  ComputePressureSource source;
33
33
  ComputePressureState state;
34
34
  sequence<ComputePressureFactor> factors;
35
- DOMHighResTimeStamp timestamp;
36
- ComputePressureObserverOptions options;
35
+ DOMHighResTimeStamp time;
37
36
  };
38
37
 
39
38
  dictionary ComputePressureObserverOptions {
package/cssom-view.idl CHANGED
@@ -100,9 +100,16 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
100
100
  ScrollLogicalPosition inline = "nearest";
101
101
  };
102
102
 
103
+ dictionary IsVisibleOptions {
104
+
105
+ };
106
+
103
107
  partial interface Element {
104
108
  DOMRectList getClientRects();
105
109
  [NewObject] DOMRect getBoundingClientRect();
110
+
111
+ boolean isVisible(optional IsVisibleOptions options = {});
112
+
106
113
  undefined scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg = {});
107
114
  undefined scroll(optional ScrollToOptions options = {});
108
115
  undefined scroll(unrestricted double x, unrestricted double y);
@@ -0,0 +1,44 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Digital Goods API (https://wicg.github.io/digital-goods/)
5
+
6
+ partial interface Window {
7
+ [SecureContext] Promise<DigitalGoodsService> getDigitalGoodsService(
8
+ DOMString serviceProvider);
9
+ };
10
+
11
+ [Exposed=Window, SecureContext] interface DigitalGoodsService {
12
+
13
+ Promise<sequence<ItemDetails>> getDetails(sequence<DOMString> itemIds);
14
+
15
+ Promise<sequence<PurchaseDetails>> listPurchases();
16
+
17
+ Promise<sequence<PurchaseDetails>> listPurchaseHistory();
18
+
19
+ Promise<undefined> consume(DOMString purchaseToken);
20
+ };
21
+
22
+ dictionary ItemDetails {
23
+ required DOMString itemId;
24
+ required DOMString title;
25
+ required PaymentCurrencyAmount price;
26
+ ItemType type;
27
+ DOMString description;
28
+ sequence<DOMString> iconURLs;
29
+ DOMString subscriptionPeriod;
30
+ DOMString freeTrialPeriod;
31
+ PaymentCurrencyAmount introductoryPrice;
32
+ DOMString introductoryPricePeriod;
33
+ [EnforceRange] unsigned long long introductoryPriceCycles;
34
+ };
35
+
36
+ enum ItemType {
37
+ "product",
38
+ "subscription",
39
+ };
40
+
41
+ dictionary PurchaseDetails {
42
+ required DOMString itemId;
43
+ required DOMString purchaseToken;
44
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.4.0",
4
+ "version": "3.5.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"