@webref/idl 3.24.0 → 3.24.1

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/html.idl CHANGED
@@ -2132,13 +2132,13 @@ typedef (CanvasImageSource or
2132
2132
  Blob or
2133
2133
  ImageData) ImageBitmapSource;
2134
2134
 
2135
- enum ImageOrientation { "none", "flipY" };
2135
+ enum ImageOrientation { "from-image", "flipY" };
2136
2136
  enum PremultiplyAlpha { "none", "premultiply", "default" };
2137
2137
  enum ColorSpaceConversion { "none", "default" };
2138
2138
  enum ResizeQuality { "pixelated", "low", "medium", "high" };
2139
2139
 
2140
2140
  dictionary ImageBitmapOptions {
2141
- ImageOrientation imageOrientation = "none";
2141
+ ImageOrientation imageOrientation = "from-image";
2142
2142
  PremultiplyAlpha premultiplyAlpha = "default";
2143
2143
  ColorSpaceConversion colorSpaceConversion = "default";
2144
2144
  [EnforceRange] unsigned long resizeWidth;
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.24.0",
4
+ "version": "3.24.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -11,6 +11,14 @@ partial interface ServiceWorkerRegistration {
11
11
  interface PaymentManager {
12
12
  [SameObject] readonly attribute PaymentInstruments instruments;
13
13
  attribute DOMString userHint;
14
+ Promise<undefined> enableDelegations(sequence<PaymentDelegation> delegations);
15
+ };
16
+
17
+ enum PaymentDelegation {
18
+ "shippingAddress",
19
+ "payerName",
20
+ "payerPhone",
21
+ "payerEmail"
14
22
  };
15
23
 
16
24
  [SecureContext, Exposed=(Window,Worker)]
@@ -53,7 +61,9 @@ dictionary PaymentRequestDetailsUpdate {
53
61
  DOMString error;
54
62
  PaymentCurrencyAmount total;
55
63
  sequence<PaymentDetailsModifier> modifiers;
64
+ sequence<PaymentShippingOption> shippingOptions;
56
65
  object paymentMethodErrors;
66
+ AddressErrors shippingAddressErrors;
57
67
  };
58
68
 
59
69
  [Exposed=ServiceWorker]
@@ -65,8 +75,12 @@ interface PaymentRequestEvent : ExtendableEvent {
65
75
  readonly attribute FrozenArray<PaymentMethodData> methodData;
66
76
  readonly attribute object total;
67
77
  readonly attribute FrozenArray<PaymentDetailsModifier> modifiers;
78
+ readonly attribute object? paymentOptions;
79
+ readonly attribute FrozenArray<PaymentShippingOption>? shippingOptions;
68
80
  Promise<WindowClient?> openWindow(USVString url);
69
81
  Promise<PaymentRequestDetailsUpdate?> changePaymentMethod(DOMString methodName, optional object? methodDetails = null);
82
+ Promise<PaymentRequestDetailsUpdate?> changeShippingAddress(optional AddressInit shippingAddress = {});
83
+ Promise<PaymentRequestDetailsUpdate?> changeShippingOption(DOMString shippingOption);
70
84
  undefined respondWith(Promise<PaymentHandlerResponse> handlerResponsePromise);
71
85
  };
72
86
 
@@ -77,9 +91,64 @@ dictionary PaymentRequestEventInit : ExtendableEventInit {
77
91
  sequence<PaymentMethodData> methodData;
78
92
  PaymentCurrencyAmount total;
79
93
  sequence<PaymentDetailsModifier> modifiers;
94
+ PaymentOptions paymentOptions;
95
+ sequence<PaymentShippingOption> shippingOptions;
80
96
  };
81
97
 
82
98
  dictionary PaymentHandlerResponse {
83
99
  DOMString methodName;
84
100
  object details;
101
+ DOMString? payerName;
102
+ DOMString? payerEmail;
103
+ DOMString? payerPhone;
104
+ AddressInit shippingAddress;
105
+ DOMString? shippingOption;
106
+ };
107
+
108
+ dictionary AddressInit {
109
+ DOMString country = "";
110
+ sequence<DOMString> addressLine = [];
111
+ DOMString region = "";
112
+ DOMString city = "";
113
+ DOMString dependentLocality = "";
114
+ DOMString postalCode = "";
115
+ DOMString sortingCode = "";
116
+ DOMString organization = "";
117
+ DOMString recipient = "";
118
+ DOMString phone = "";
119
+ };
120
+
121
+ dictionary PaymentOptions {
122
+ boolean requestPayerName = false;
123
+ boolean requestBillingAddress = false;
124
+ boolean requestPayerEmail = false;
125
+ boolean requestPayerPhone = false;
126
+ boolean requestShipping = false;
127
+ PaymentShippingType shippingType = "shipping";
128
+ };
129
+
130
+ dictionary PaymentShippingOption {
131
+ required DOMString id;
132
+ required DOMString label;
133
+ required PaymentCurrencyAmount amount;
134
+ boolean selected = false;
135
+ };
136
+
137
+ enum PaymentShippingType {
138
+ "shipping",
139
+ "delivery",
140
+ "pickup"
141
+ };
142
+
143
+ dictionary AddressErrors {
144
+ DOMString addressLine;
145
+ DOMString city;
146
+ DOMString country;
147
+ DOMString dependentLocality;
148
+ DOMString organization;
149
+ DOMString phone;
150
+ DOMString postalCode;
151
+ DOMString recipient;
152
+ DOMString region;
153
+ DOMString sortingCode;
85
154
  };
package/wai-aria.idl CHANGED
@@ -20,7 +20,7 @@ interface mixin ARIAMixin {
20
20
  [CEReactions] attribute DOMString? ariaDescription;
21
21
  [CEReactions] attribute FrozenArray<Element>? ariaDetailsElements;
22
22
  [CEReactions] attribute DOMString? ariaDisabled;
23
- [CEReactions] attribute Element? ariaErrorMessageElement;
23
+ [CEReactions] attribute FrozenArray<Element>? ariaErrorMessageElements;
24
24
  [CEReactions] attribute DOMString? ariaExpanded;
25
25
  [CEReactions] attribute FrozenArray<Element>? ariaFlowToElements;
26
26
  [CEReactions] attribute DOMString? ariaHasPopup;
package/webnn.idl CHANGED
@@ -47,8 +47,13 @@ partial interface MLContext {
47
47
  MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
48
48
  };
49
49
 
50
+ dictionary MLComputeResult {
51
+ MLNamedArrayBufferViews inputs;
52
+ MLNamedArrayBufferViews outputs;
53
+ };
54
+
50
55
  partial interface MLContext {
51
- Promise<undefined> compute(
56
+ Promise<MLComputeResult> compute(
52
57
  MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
53
58
  };
54
59