Socket
Socket
Sign inDemoInstall

shadow-dom-testing-library

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shadow-dom-testing-library - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

dist/index.js

@@ -1,2 +0,2 @@

import{buildQueries as r,screen as M,queryAllByRole as T,queryAllByLabelText as p,queryAllByPlaceholderText as f,queryAllByText as E,queryAllByDisplayValue as B,queryAllByAltText as A,queryAllByTitle as x,queryAllByTestId as P}from"@testing-library/dom";function R(){typeof ShadowRoot>"u"||typeof ShadowRoot.prototype.matches<"u"||(ShadowRoot.prototype.matches=function(e){return e.trim()==="*"?!0:this.querySelector(e)!=null},Object.defineProperties(ShadowRoot.prototype,{outerHTML:{get(){return this.innerHTML}}}))}R();function Fe(e,t,a={shallow:!1},o=[]){let n=l(e,t,a,o);return Array.isArray(n)&&n.length>0?n[0]:null}function l(e,t,a={shallow:!1},o=[]){return e instanceof Document&&(e=document.documentElement),e.shadowRoot!=null&&e.shadowRoot.mode!=="closed"&&o.push(e.shadowRoot),e instanceof ShadowRoot&&o.push(e),e.querySelectorAll(t).forEach(n=>{if(n.shadowRoot==null||n.shadowRoot.mode==="closed"){o.push(n);return}if(o.push(n.shadowRoot),a.shallow===!0){n.shadowRoot.querySelectorAll(t).forEach(d=>o.push(d));return}n.shadowRoot.querySelectorAll(t).forEach(d=>o.push(d)),l(n.shadowRoot,t,a,o)}),[...new Set(o)]}var c=":scope *";function h(...e){let[t,a,o]=e;return l(t,c,o).map(n=>T(n,a,o)).flat(1/0)}var L=(e,t)=>`Found multiple elements with the role of: ${t}`,q=(e,t)=>`Unable to find an element with the role of: ${t}`,[H,O,b,I,D]=r(h,L,q);function m(...e){let[t,a,o]=e;return l(t,":scope *").map(d=>p(d,a,o)).flat(1/0)}var _=(e,t)=>`Found multiple elements with the label text of: ${t}`,$=(e,t)=>`Unable to find an element with the label text of: ${t}`,[F,V,U,Q,g]=r(m,_,$);function S(...e){let[t,a,o]=e;return l(t,c,o).map(n=>f(n,a,o)).flat(1/0)}var C=(e,t)=>`Found multiple elements with the placeholder text of: ${t}`,v=(e,t)=>`Unable to find an element with the placeholder text of: ${t}`,[j,k,z,G,J]=r(S,C,v);function i(...e){let[t,a,o]=e;return l(t,c,o).map(n=>E(n,a,o)).flat(1/0)}var K=(e,t)=>`Found multiple elements with the text of: ${t}`,N=(e,t)=>`Unable to find an element with the text of: ${t}`,[W,X,Y,Z,ee]=r(i,K,N);function u(...e){let[t,a,o]=e;return l(t,c,o).map(n=>B(n,a,o)).flat(1/0)}var te=(e,t)=>`Found multiple elements with the display value of: ${t}`,oe=(e,t)=>`Unable to find an element with the display value of: ${t}`,[ne,ae,le,re,ce]=r(u,te,oe);function s(...e){let[t,a,o]=e;return l(t,c,o).map(n=>A(n,a,o)).flat(1/0)}var de=(e,t)=>`Found multiple elements with the alt text of: ${t}`,he=(e,t)=>`Unable to find an element with the alt text of: ${t}`,[me,Se,ie,ue,se]=r(s,de,he);function w(...e){let[t,a,o]=e;return l(t,c,o).map(n=>x(n,a,o)).flat(1/0)}var we=(e,t)=>`Found multiple elements with the title of: ${t}`,ye=(e,t)=>`Unable to find an element with the title of: ${t}`,[Me,Te,pe,fe,Ee]=r(w,we,ye);function y(...e){let[t,a,o]=e;return l(t,c,o).map(n=>P(n,a,o)).flat(1/0)}var Be=(e,t)=>`Found multiple elements with the test id of: ${t}`,Ae=(e,t)=>`Unable to find an element with the test id of: ${t}`,[xe,Pe,Re,Le,qe]=r(y,Be,Ae),Ve={...M,queryAllByShadowRole:(...e)=>h(document.documentElement,e[0],e[1]),queryByShadowRole:(...e)=>H(document.documentElement,e[0],e[1]),getAllByShadowRole:(...e)=>O(document.documentElement,e[0],e[1]),getByShadowRole:(...e)=>b(document.documentElement,e[0],e[1]),findAllByShadowRole:(...e)=>I(document.documentElement,e[0],e[1],e[2]),findByShadowRole:(...e)=>D(document.documentElement,e[0],e[1],e[2]),queryAllByShadowLabelText:(...e)=>m(document.documentElement,e[0],e[1]),queryByShadowLabelText:(...e)=>F(document.documentElement,e[0],e[1]),getAllByShadowLabelText:(...e)=>V(document.documentElement,e[0],e[1]),getByShadowLabelText:(...e)=>U(document.documentElement,e[0],e[1]),findAllByShadowLabelText:(...e)=>Q(document.documentElement,e[0],e[1],e[2]),findByShadowLabelText:(...e)=>g(document.documentElement,e[0],e[1],e[2]),queryAllByShadowPlaceholderText:(...e)=>S(document.documentElement,e[0],e[1]),queryByShadowPlaceholderText:(...e)=>j(document.documentElement,e[0],e[1]),getAllByShadowPlaceholderText:(...e)=>k(document.documentElement,e[0],e[1]),getByShadowPlaceholderText:(...e)=>z(document.documentElement,e[0],e[1]),findAllByShadowPlaceholderText:(...e)=>G(document.documentElement,e[0],e[1],e[2]),findByShadowPlaceholderText:(...e)=>J(document.documentElement,e[0],e[1],e[2]),queryAllByShadowText:(...e)=>i(document.documentElement,e[0],e[1]),queryByShadowText:(...e)=>W(document.documentElement,e[0],e[1]),getAllByShadowText:(...e)=>X(document.documentElement,e[0],e[1]),getByShadowText:(...e)=>Y(document.documentElement,e[0],e[1]),findAllByShadowText:(...e)=>Z(document.documentElement,e[0],e[1],e[2]),findByShadowText:(...e)=>ee(document.documentElement,e[0],e[1],e[2]),queryAllByShadowDisplayValue:(...e)=>u(document.documentElement,e[0],e[1]),queryByShadowDisplayValue:(...e)=>ne(document.documentElement,e[0],e[1]),getAllByShadowDisplayValue:(...e)=>ae(document.documentElement,e[0],e[1]),getByShadowDisplayValue:(...e)=>le(document.documentElement,e[0],e[1]),findAllByShadowDisplayValue:(...e)=>re(document.documentElement,e[0],e[1],e[2]),findByShadowDisplayValue:(...e)=>ce(document.documentElement,e[0],e[1],e[2]),queryAllByShadowAltText:(...e)=>s(document.documentElement,e[0],e[1]),queryByShadowAltText:(...e)=>me(document.documentElement,e[0],e[1]),getAllByShadowAltText:(...e)=>Se(document.documentElement,e[0],e[1]),getByShadowAltText:(...e)=>ie(document.documentElement,e[0],e[1]),findAllByShadowAltText:(...e)=>ue(document.documentElement,e[0],e[1],e[2]),findByShadowAltText:(...e)=>se(document.documentElement,e[0],e[1],e[2]),queryAllByShadowTitle:(...e)=>w(document.documentElement,e[0],e[1]),queryByShadowTitle:(...e)=>Me(document.documentElement,e[0],e[1]),getAllByShadowTitle:(...e)=>Te(document.documentElement,e[0],e[1]),getByShadowTitle:(...e)=>pe(document.documentElement,e[0],e[1]),findAllByShadowTitle:(...e)=>fe(document.documentElement,e[0],e[1],e[2]),findByShadowTitle:(...e)=>Ee(document.documentElement,e[0],e[1],e[2]),queryAllByShadowTestId:(...e)=>y(document.documentElement,e[0],e[1]),queryByShadowTestId:(...e)=>xe(document.documentElement,e[0],e[1]),getAllByShadowTestId:(...e)=>Pe(document.documentElement,e[0],e[1]),getByShadowTestId:(...e)=>Re(document.documentElement,e[0],e[1]),findAllByShadowTestId:(...e)=>Le(document.documentElement,e[0],e[1],e[2]),findByShadowTestId:(...e)=>qe(document.documentElement,e[0],e[1],e[2])};export{Fe as deepQuerySelector,l as deepQuerySelectorAll,ue as findAllByShadowAltText,re as findAllByShadowDisplayValue,Q as findAllByShadowLabelText,G as findAllByShadowPlaceholderText,I as findAllByShadowRole,Le as findAllByShadowTestId,Z as findAllByShadowText,fe as findAllByShadowTitle,se as findByShadowAltText,ce as findByShadowDisplayValue,g as findByShadowLabelText,J as findByShadowPlaceholderText,D as findByShadowRole,qe as findByShadowTestId,ee as findByShadowText,Ee as findByShadowTitle,Se as getAllByShadowAltText,ae as getAllByShadowDisplayValue,V as getAllByShadowLabelText,k as getAllByShadowPlaceholderText,O as getAllByShadowRole,Pe as getAllByShadowTestId,X as getAllByShadowText,Te as getAllByShadowTitle,ie as getByShadowAltText,le as getByShadowDisplayValue,U as getByShadowLabelText,z as getByShadowPlaceholderText,b as getByShadowRole,Re as getByShadowTestId,Y as getByShadowText,pe as getByShadowTitle,s as queryAllByShadowAltText,u as queryAllByShadowDisplayValue,m as queryAllByShadowLabelText,S as queryAllByShadowPlaceholderText,h as queryAllByShadowRole,y as queryAllByShadowTestId,i as queryAllByShadowText,w as queryAllByShadowTitle,me as queryByShadowAltText,ne as queryByShadowDisplayValue,F as queryByShadowLabelText,j as queryByShadowPlaceholderText,H as queryByShadowRole,xe as queryByShadowTestId,W as queryByShadowText,Me as queryByShadowTitle,Ve as screen};
import{buildQueries as r,screen as M,queryAllByRole as T,queryAllByLabelText as p,queryAllByPlaceholderText as f,queryAllByText as E,queryAllByDisplayValue as B,queryAllByAltText as A,queryAllByTitle as x,queryAllByTestId as P}from"@testing-library/dom";function R(){typeof ShadowRoot>"u"||typeof ShadowRoot.prototype.matches<"u"||(ShadowRoot.prototype.matches=function(e){return e.trim()==="*"?!0:this.querySelector(e)!=null},Object.defineProperties(ShadowRoot.prototype,{outerHTML:{get(){return this.innerHTML}}}))}R();function $e(e,o,a={shallow:!1},t=[]){let n=l(e,o,a,t);return Array.isArray(n)&&n.length>0?n[0]:null}function l(e,o,a={shallow:!1},t=[]){return e instanceof Document&&(e=document.documentElement),e.shadowRoot!=null&&e.shadowRoot.mode!=="closed"&&t.push(e.shadowRoot),e instanceof ShadowRoot&&t.push(e),e.querySelectorAll(o).forEach(n=>{if(n.shadowRoot==null||n.shadowRoot.mode==="closed"){t.push(n);return}if(t.push(n.shadowRoot),a.shallow===!0){n.shadowRoot.querySelectorAll(o).forEach(c=>t.push(c));return}n.shadowRoot.querySelectorAll(o).forEach(c=>t.push(c)),l(n.shadowRoot,o,a,t)}),[...new Set(t)]}var d=":scope *";function h(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>T(n,a,t)).flat(1/0)}var L=(e,o)=>`Found multiple elements with the role of: ${o}`,q=(e,o)=>`Unable to find an element with the role of: ${o}`,[H,O,b,I,g]=r(h,L,q);function m(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>p(n,a,t)).flat(1/0)}var D=(e,o)=>`Found multiple elements with the label text of: ${o}`,_=(e,o)=>`Unable to find an element with the label text of: ${o}`,[$,F,V,U,Q]=r(m,D,_);function S(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>f(n,a,t)).flat(1/0)}var C=(e,o)=>`Found multiple elements with the placeholder text of: ${o}`,v=(e,o)=>`Unable to find an element with the placeholder text of: ${o}`,[j,k,z,G,J]=r(S,C,v);function u(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>E(n,a,t)).flat(1/0)}var K=(e,o)=>`Found multiple elements with the text of: ${o}`,N=(e,o)=>`Unable to find an element with the text of: ${o}`,[W,X,Y,Z,ee]=r(u,K,N);function i(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>B(n,a,t)).flat(1/0)}var te=(e,o)=>`Found multiple elements with the display value of: ${o}`,oe=(e,o)=>`Unable to find an element with the display value of: ${o}`,[ne,ae,le,re,de]=r(i,te,oe);function s(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>A(n,a,t)).flat(1/0)}var ce=(e,o)=>`Found multiple elements with the alt text of: ${o}`,he=(e,o)=>`Unable to find an element with the alt text of: ${o}`,[me,Se,ue,ie,se]=r(s,ce,he);function w(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>x(n,a,t)).flat(1/0)}var we=(e,o)=>`Found multiple elements with the title of: ${o}`,ye=(e,o)=>`Unable to find an element with the title of: ${o}`,[Me,Te,pe,fe,Ee]=r(w,we,ye);function y(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>P(n,a,t)).flat(1/0)}var Be=(e,o)=>`Found multiple elements with the test id of: ${o}`,Ae=(e,o)=>`Unable to find an element with the test id of: ${o}`,[xe,Pe,Re,Le,qe]=r(y,Be,Ae),Fe={...M,queryAllByShadowRole:(...e)=>h(document.documentElement,e[0],e[1]),queryByShadowRole:(...e)=>H(document.documentElement,e[0],e[1]),getAllByShadowRole:(...e)=>O(document.documentElement,e[0],e[1]),getByShadowRole:(...e)=>b(document.documentElement,e[0],e[1]),findAllByShadowRole:(...e)=>I(document.documentElement,e[0],e[1],e[2]),findByShadowRole:(...e)=>g(document.documentElement,e[0],e[1],e[2]),queryAllByShadowLabelText:(...e)=>m(document.documentElement,e[0],e[1]),queryByShadowLabelText:(...e)=>$(document.documentElement,e[0],e[1]),getAllByShadowLabelText:(...e)=>F(document.documentElement,e[0],e[1]),getByShadowLabelText:(...e)=>V(document.documentElement,e[0],e[1]),findAllByShadowLabelText:(...e)=>U(document.documentElement,e[0],e[1],e[2]),findByShadowLabelText:(...e)=>Q(document.documentElement,e[0],e[1],e[2]),queryAllByShadowPlaceholderText:(...e)=>S(document.documentElement,e[0],e[1]),queryByShadowPlaceholderText:(...e)=>j(document.documentElement,e[0],e[1]),getAllByShadowPlaceholderText:(...e)=>k(document.documentElement,e[0],e[1]),getByShadowPlaceholderText:(...e)=>z(document.documentElement,e[0],e[1]),findAllByShadowPlaceholderText:(...e)=>G(document.documentElement,e[0],e[1],e[2]),findByShadowPlaceholderText:(...e)=>J(document.documentElement,e[0],e[1],e[2]),queryAllByShadowText:(...e)=>u(document.documentElement,e[0],e[1]),queryByShadowText:(...e)=>W(document.documentElement,e[0],e[1]),getAllByShadowText:(...e)=>X(document.documentElement,e[0],e[1]),getByShadowText:(...e)=>Y(document.documentElement,e[0],e[1]),findAllByShadowText:(...e)=>Z(document.documentElement,e[0],e[1],e[2]),findByShadowText:(...e)=>ee(document.documentElement,e[0],e[1],e[2]),queryAllByShadowDisplayValue:(...e)=>i(document.documentElement,e[0],e[1]),queryByShadowDisplayValue:(...e)=>ne(document.documentElement,e[0],e[1]),getAllByShadowDisplayValue:(...e)=>ae(document.documentElement,e[0],e[1]),getByShadowDisplayValue:(...e)=>le(document.documentElement,e[0],e[1]),findAllByShadowDisplayValue:(...e)=>re(document.documentElement,e[0],e[1],e[2]),findByShadowDisplayValue:(...e)=>de(document.documentElement,e[0],e[1],e[2]),queryAllByShadowAltText:(...e)=>s(document.documentElement,e[0],e[1]),queryByShadowAltText:(...e)=>me(document.documentElement,e[0],e[1]),getAllByShadowAltText:(...e)=>Se(document.documentElement,e[0],e[1]),getByShadowAltText:(...e)=>ue(document.documentElement,e[0],e[1]),findAllByShadowAltText:(...e)=>ie(document.documentElement,e[0],e[1],e[2]),findByShadowAltText:(...e)=>se(document.documentElement,e[0],e[1],e[2]),queryAllByShadowTitle:(...e)=>w(document.documentElement,e[0],e[1]),queryByShadowTitle:(...e)=>Me(document.documentElement,e[0],e[1]),getAllByShadowTitle:(...e)=>Te(document.documentElement,e[0],e[1]),getByShadowTitle:(...e)=>pe(document.documentElement,e[0],e[1]),findAllByShadowTitle:(...e)=>fe(document.documentElement,e[0],e[1],e[2]),findByShadowTitle:(...e)=>Ee(document.documentElement,e[0],e[1],e[2]),queryAllByShadowTestId:(...e)=>y(document.documentElement,e[0],e[1]),queryByShadowTestId:(...e)=>xe(document.documentElement,e[0],e[1]),getAllByShadowTestId:(...e)=>Pe(document.documentElement,e[0],e[1]),getByShadowTestId:(...e)=>Re(document.documentElement,e[0],e[1]),findAllByShadowTestId:(...e)=>Le(document.documentElement,e[0],e[1],e[2]),findByShadowTestId:(...e)=>qe(document.documentElement,e[0],e[1],e[2])};export{$e as deepQuerySelector,l as deepQuerySelectorAll,ie as findAllByShadowAltText,re as findAllByShadowDisplayValue,U as findAllByShadowLabelText,G as findAllByShadowPlaceholderText,I as findAllByShadowRole,Le as findAllByShadowTestId,Z as findAllByShadowText,fe as findAllByShadowTitle,se as findByShadowAltText,de as findByShadowDisplayValue,Q as findByShadowLabelText,J as findByShadowPlaceholderText,g as findByShadowRole,qe as findByShadowTestId,ee as findByShadowText,Ee as findByShadowTitle,Se as getAllByShadowAltText,ae as getAllByShadowDisplayValue,F as getAllByShadowLabelText,k as getAllByShadowPlaceholderText,O as getAllByShadowRole,Pe as getAllByShadowTestId,X as getAllByShadowText,Te as getAllByShadowTitle,ue as getByShadowAltText,le as getByShadowDisplayValue,V as getByShadowLabelText,z as getByShadowPlaceholderText,b as getByShadowRole,Re as getByShadowTestId,Y as getByShadowText,pe as getByShadowTitle,s as queryAllByShadowAltText,i as queryAllByShadowDisplayValue,m as queryAllByShadowLabelText,S as queryAllByShadowPlaceholderText,h as queryAllByShadowRole,y as queryAllByShadowTestId,u as queryAllByShadowText,w as queryAllByShadowTitle,me as queryByShadowAltText,ne as queryByShadowDisplayValue,$ as queryByShadowLabelText,j as queryByShadowPlaceholderText,H as queryByShadowRole,xe as queryByShadowTestId,W as queryByShadowText,Me as queryByShadowTitle,Fe as screen};
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

{"inputs":{"src/index.ts":{"bytes":20030,"imports":[]}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":27061},"dist/index.js":{"imports":[],"exports":["deepQuerySelector","deepQuerySelectorAll","findAllByShadowAltText","findAllByShadowDisplayValue","findAllByShadowLabelText","findAllByShadowPlaceholderText","findAllByShadowRole","findAllByShadowTestId","findAllByShadowText","findAllByShadowTitle","findByShadowAltText","findByShadowDisplayValue","findByShadowLabelText","findByShadowPlaceholderText","findByShadowRole","findByShadowTestId","findByShadowText","findByShadowTitle","getAllByShadowAltText","getAllByShadowDisplayValue","getAllByShadowLabelText","getAllByShadowPlaceholderText","getAllByShadowRole","getAllByShadowTestId","getAllByShadowText","getAllByShadowTitle","getByShadowAltText","getByShadowDisplayValue","getByShadowLabelText","getByShadowPlaceholderText","getByShadowRole","getByShadowTestId","getByShadowText","getByShadowTitle","queryAllByShadowAltText","queryAllByShadowDisplayValue","queryAllByShadowLabelText","queryAllByShadowPlaceholderText","queryAllByShadowRole","queryAllByShadowTestId","queryAllByShadowText","queryAllByShadowTitle","queryByShadowAltText","queryByShadowDisplayValue","queryByShadowLabelText","queryByShadowPlaceholderText","queryByShadowRole","queryByShadowTestId","queryByShadowText","queryByShadowTitle","screen"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":6369}},"bytes":7770}}}
{"inputs":{"src/index.ts":{"bytes":20580,"imports":[]}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":27975},"dist/index.js":{"imports":[],"exports":["deepQuerySelector","deepQuerySelectorAll","findAllByShadowAltText","findAllByShadowDisplayValue","findAllByShadowLabelText","findAllByShadowPlaceholderText","findAllByShadowRole","findAllByShadowTestId","findAllByShadowText","findAllByShadowTitle","findByShadowAltText","findByShadowDisplayValue","findByShadowLabelText","findByShadowPlaceholderText","findByShadowRole","findByShadowTestId","findByShadowText","findByShadowTitle","getAllByShadowAltText","getAllByShadowDisplayValue","getAllByShadowLabelText","getAllByShadowPlaceholderText","getAllByShadowRole","getAllByShadowTestId","getAllByShadowText","getAllByShadowTitle","getByShadowAltText","getByShadowDisplayValue","getByShadowLabelText","getByShadowPlaceholderText","getByShadowRole","getByShadowTestId","getByShadowText","getByShadowTitle","queryAllByShadowAltText","queryAllByShadowDisplayValue","queryAllByShadowLabelText","queryAllByShadowPlaceholderText","queryAllByShadowRole","queryAllByShadowTestId","queryAllByShadowText","queryAllByShadowTitle","queryByShadowAltText","queryByShadowDisplayValue","queryByShadowLabelText","queryByShadowPlaceholderText","queryByShadowRole","queryByShadowTestId","queryByShadowText","queryByShadowTitle","screen"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":6594}},"bytes":7995}}}
{
"name": "shadow-dom-testing-library",
"version": "1.1.3",
"version": "1.1.4",
"description": "An extension of DOM-testing-library to provide hooks into the shadow dom",

@@ -5,0 +5,0 @@ "type": "module",

@@ -111,4 +111,10 @@ import {waitForOptions, buildQueries, screen, ByRoleMatcher, ByRoleOptions, queryAllByRole, SelectorMatcherOptions, queryAllByLabelText, Matcher, queryAllByPlaceholderText, MatcherOptions, queryAllByText, queryAllByDisplayValue, queryAllByAltText, queryAllByTitle, queryAllByTestId} from '@testing-library/dom'

function queryAllByShadowRole<T extends HTMLElement = HTMLElement>(...args: ShadowRoleMatcherParams): T[] {
const [container, role, options] = args
let [container, role, options] = args
if (options == null) {
options = {}
}
options.suggest = false
return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByRole(el as HTMLElement, role, options)).flat(Infinity) as T[]

@@ -133,7 +139,11 @@ }

function queryAllByShadowLabelText<T extends HTMLElement = HTMLElement>(...args: ShadowSelectorMatcherParams): T[] {
const [container, id, options] = args
let [container, id, options] = args
const elements = deepQuerySelectorAll(container, ":scope *")
if (options == null) {
options = {}
}
return elements.map((el) => queryAllByLabelText(el as HTMLElement, id, options)).flat(Infinity) as T[]
options.suggest = false
return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByLabelText(el as HTMLElement, id, options)).flat(Infinity) as T[]
}

@@ -157,4 +167,10 @@

function queryAllByShadowPlaceholderText<T extends HTMLElement = HTMLElement>(...args: ShadowMatcherParams): T[] {
const [container, id, options] = args
let [container, id, options] = args
if (options == null) {
options = {}
}
options.suggest = false
return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByPlaceholderText(el as HTMLElement, id, options)).flat(Infinity) as T[]

@@ -178,4 +194,10 @@ }

function queryAllByShadowText<T extends HTMLElement = HTMLElement>(...args: ShadowSelectorMatcherParams): T[] {
const [container, id, options] = args
let [container, id, options] = args
if (options == null) {
options = {}
}
options.suggest = false
return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByText(el as HTMLElement, id, options)).flat(Infinity) as T[]

@@ -201,6 +223,11 @@ }

function queryAllByShadowDisplayValue<T extends HTMLElement = HTMLElement>(...args: ShadowSelectorMatcherParams): T[] {
const [container, id, options] = args
let [container, id, options] = args
// @ts-expect-error
return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByDisplayValue(el, id, options)).flat(Infinity) as T[]
if (options == null) {
options = {}
}
options.suggest = false
return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByDisplayValue(el as HTMLElement, id, options)).flat(Infinity) as T[]
}

@@ -224,3 +251,10 @@

function queryAllByShadowAltText<T extends HTMLElement = HTMLElement>(...args: ShadowMatcherParams): T[] {
const [container, id, options] = args
let [container, id, options] = args
if (options == null) {
options = {}
}
options.suggest = false
return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByAltText(el as HTMLElement, id, options)).flat(Infinity) as T[]

@@ -245,4 +279,10 @@ }

function queryAllByShadowTitle<T extends HTMLElement = HTMLElement>(...args: ShadowMatcherParams): T[] {
const [container, id, options] = args
let [container, id, options] = args
if (options == null) {
options = {}
}
options.suggest = false
return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByTitle(el as HTMLElement, id, options)).flat(Infinity) as T[]

@@ -266,4 +306,10 @@ }

function queryAllByShadowTestId<T extends HTMLElement = HTMLElement>(...args: ShadowMatcherParams): T[] {
const [container, id, options] = args
let [container, id, options] = args
if (options == null) {
options = {}
}
options.suggest = false
return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByTestId(el as HTMLElement, id, options)).flat(Infinity) as T[]

@@ -270,0 +316,0 @@ }

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc