Skip to content

πŸ“¦ Release @webref/[email protected] #1524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 15, 2025

⚠ NEVER add commits to this pull request.

πŸ€– This pull request was automatically created to facilitate human review of @webref/idl changes triggered by curated data at c2c38a1.

🧐 Please review the diff below and version numbers. If all looks good, merge this pull request to release the changes to npm.

πŸ“¦ Latest released @webref/idl package was v3.61.4. Merging this pull request will release v3.61.5. Make sure that the bump is the right one for the changes.

✍ If any change needs to be made before release, do not add a commit to this pull request. Changes should rather be handled in a separate pull request and pushed to the main branch. You may leave this pull request open in the meantime, or close it. The pre-release job will automatically update this pull request or create a new one once the updates have made their way to the main branch.

πŸ›ˆ The actual change introduced by this pull request is a version bump in packages/idl/package.json. You do not need to review that change. The bumped version is not the version that will be released when this pull request is merged, but rather the version that will be released next time.

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/dom.idl packages/idl/dom.idl
--- webref/node_modules/@webref/idl/dom.idl
+++ packages/idl/dom.idl
@@ -110,6 +110,7 @@
 DocumentFragment includes NonElementParentNode;
 
 interface mixin DocumentOrShadowRoot {
+  readonly attribute CustomElementRegistry? customElementRegistry;
 };
 Document includes DocumentOrShadowRoot;
 ShadowRoot includes DocumentOrShadowRoot;
@@ -293,7 +294,7 @@
   [NewObject] Comment createComment(DOMString data);
   [NewObject] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
 
-  [CEReactions, NewObject] Node importNode(Node node, optional boolean subtree = false);
+  [CEReactions, NewObject] Node importNode(Node node, optional (boolean or ImportNodeOptions) options = false);
   [CEReactions] Node adoptNode(Node node);
 
   [NewObject] Attr createAttribute(DOMString localName);
@@ -312,9 +313,15 @@
 interface XMLDocument : Document {};
 
 dictionary ElementCreationOptions {
+  CustomElementRegistry customElementRegistry;
   DOMString is;
 };
 
+dictionary ImportNodeOptions {
+  CustomElementRegistry customElementRegistry;
+  boolean selfOnly = false;
+};
+
 [Exposed=Window]
 interface DOMImplementation {
   [NewObject] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
@@ -344,6 +351,7 @@
   readonly attribute boolean clonable;
   readonly attribute boolean serializable;
   readonly attribute Element host;
+
   attribute EventHandler onslotchange;
 };
 
@@ -384,6 +392,8 @@
   ShadowRoot attachShadow(ShadowRootInit init);
   readonly attribute ShadowRoot? shadowRoot;
 
+  readonly attribute CustomElementRegistry? customElementRegistry;
+
   Element? closest(DOMString selectors);
   boolean matches(DOMString selectors);
   boolean webkitMatchesSelector(DOMString selectors); // legacy alias of .matches
@@ -402,6 +412,7 @@
   SlotAssignmentMode slotAssignment = "named";
   boolean clonable = false;
   boolean serializable = false;
+  CustomElementRegistry customElementRegistry;
 };
 
 [Exposed=Window,

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/fedcm.idl packages/idl/fedcm.idl
--- webref/node_modules/@webref/idl/fedcm.idl
+++ packages/idl/fedcm.idl
@@ -74,7 +74,7 @@
 
 dictionary IdentityProviderAPIConfig {
   required USVString accounts_endpoint;
-  required USVString client_metadata_endpoint;
+  USVString client_metadata_endpoint;
   required USVString id_assertion_endpoint;
   required USVString login_url;
   USVString disconnect_endpoint;

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/html.idl packages/idl/html.idl
--- webref/node_modules/@webref/idl/html.idl
+++ packages/idl/html.idl
@@ -1261,6 +1261,7 @@
   [CEReactions] attribute boolean shadowRootDelegatesFocus;
   [CEReactions] attribute boolean shadowRootClonable;
   [CEReactions] attribute boolean shadowRootSerializable;
+  [CEReactions] attribute DOMString shadowRootCustomElementRegistry;
 };
 
 [Exposed=Window]
@@ -1629,11 +1630,14 @@
 
 [Exposed=Window]
 interface CustomElementRegistry {
+  constructor();
+
   [CEReactions] undefined define(DOMString name, CustomElementConstructor constructor, optional ElementDefinitionOptions options = {});
   (CustomElementConstructor or undefined) get(DOMString name);
   DOMString? getName(CustomElementConstructor constructor);
   Promise<CustomElementConstructor> whenDefined(DOMString name);
   [CEReactions] undefined upgrade(Node root);
+  undefined initialize(Node root);
 };
 
 callback CustomElementConstructor = HTMLElement ();

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/secure-payment-confirmation.idl packages/idl/secure-payment-confirmation.idl
--- webref/node_modules/@webref/idl/secure-payment-confirmation.idl
+++ packages/idl/secure-payment-confirmation.idl
@@ -16,8 +16,16 @@
     boolean showOptOut;
 };
 
+enum SecurePaymentConfirmationAvailability {
+  "available",
+  "unavailable-unknown-reason",
+  "unavailable-feature-not-enabled",
+  "unavailable-no-permission-policy",
+  "unavailable-no-user-verifying-platform-authenticator",
+};
+
 partial interface PaymentRequest {
-    static Promise<boolean> isSecurePaymentConfirmationAvailable();
+    static Promise<SecurePaymentConfirmationAvailability> securePaymentConfirmationAvailability();
 };
 
 partial dictionary AuthenticationExtensionsClientInputs {

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/speech-api.idl packages/idl/speech-api.idl
--- webref/node_modules/@webref/idl/speech-api.idl
+++ packages/idl/speech-api.idl
@@ -13,6 +13,7 @@
     attribute boolean interimResults;
     attribute unsigned long maxAlternatives;
     attribute SpeechRecognitionMode mode;
+    attribute SpeechRecognitionPhraseList phrases;
 
     // methods to drive the speech interaction
     undefined start();
@@ -43,7 +44,8 @@
     "network",
     "not-allowed",
     "service-not-allowed",
-    "language-not-supported"
+    "language-not-supported",
+    "phrases-not-supported"
 };
 
 enum SpeechRecognitionMode {
@@ -106,6 +108,24 @@
     required SpeechRecognitionResultList results;
 };
 
+// The object representing a phrase for contextual biasing.
+[Exposed=Window]
+interface SpeechRecognitionPhrase {
+    constructor(DOMString phrase, optional float boost = 1.0);
+    readonly attribute DOMString phrase;
+    readonly attribute float boost;
+};
+
+// The object representing a list of phrases for contextual biasing.
+[Exposed=Window]
+interface SpeechRecognitionPhraseList {
+    constructor(sequence<SpeechRecognitionPhrase> phrases);
+    readonly attribute unsigned long length;
+    SpeechRecognitionPhrase item(unsigned long index);
+    undefined addItem(SpeechRecognitionPhrase item);
+    undefined removeItem(unsigned long index);
+};
+
 [Exposed=Window]
 interface SpeechSynthesis : EventTarget {
     readonly attribute boolean pending;

@github-actions github-actions bot force-pushed the release-idl-20250415064819362 branch 6 times, most recently from d05ee93 to 8522d50 Compare April 16, 2025 18:47
@github-actions github-actions bot force-pushed the release-idl-20250415064819362 branch from 8522d50 to 41add86 Compare April 17, 2025 01:00
@tidoust tidoust merged commit 43d6140 into main Apr 17, 2025
@tidoust tidoust deleted the release-idl-20250415064819362 branch April 17, 2025 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant