Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spectrum-web-components/base

Package Overview
Dependencies
Maintainers
7
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/base - npm Package Compare versions

Comparing version 0.7.3 to 0.7.4-overlay-warning.19

4

package.json
{
"name": "@spectrum-web-components/base",
"version": "0.7.3",
"version": "0.7.4-overlay-warning.19+0c0cf0e30",
"publishConfig": {

@@ -106,3 +106,3 @@ "access": "public"

],
"gitHead": "02534b6685ff89a21dba86c09b2169f5b30a46f2"
"gitHead": "0c0cf0e307adb5e67526edb57de4f51ddfedefe1"
}

@@ -13,2 +13,3 @@ "use strict";

};
var _a, _b, _c;
import { LitElement } from "lit";

@@ -35,2 +36,5 @@ import { property } from "lit/decorators.js";

}
/**
* @private
*/
get isLTR() {

@@ -56,3 +60,5 @@ return this.dir === "ltr";

)) {
dirParent = dirParent.assignedSlot || dirParent.parentNode || dirParent.host;
dirParent = dirParent.assignedSlot || // step into the shadow DOM of the parent of a slotted node
dirParent.parentNode || // DOM Element detected
dirParent.host;
}

@@ -104,7 +110,29 @@ const oldDir = this.dir;

if (true) {
const ignoreWarningTypes = {
default: false,
accessibility: false,
api: false
};
const ignoreWarningLevels = {
default: false,
low: false,
medium: false,
high: false,
deprecation: false
};
window.__swc = {
...window.__swc,
ignoreWarningLocalNames: {
...((_a = window.__swc) == null ? void 0 : _a.ignoreWarningLocalNames) || {}
},
ignoreWarningTypes: {
...ignoreWarningTypes,
...((_b = window.__swc) == null ? void 0 : _b.ignoreWarningTypes) || {}
},
ignoreWarningLevels: {
...ignoreWarningLevels,
...((_c = window.__swc) == null ? void 0 : _c.ignoreWarningLevels) || {}
},
issuedWarnings: /* @__PURE__ */ new Set(),
warn: (element, message, url, { type = "api", level = "default", issues } = {}) => {
var _a, _b, _c;
const { localName = "base" } = element || {};

@@ -114,9 +142,9 @@ const id = `${localName}:${type}:${level}`;

return;
window.__swc.issuedWarnings.add(id);
if ((_a = window.__swc.ignoreWarningLocalNames) == null ? void 0 : _a[localName])
if (window.__swc.ignoreWarningLocalNames[localName])
return;
if ((_b = window.__swc.ignoreWarningTypes) == null ? void 0 : _b[type])
if (window.__swc.ignoreWarningTypes[type])
return;
if ((_c = window.__swc.ignoreWarningLevels) == null ? void 0 : _c[level])
if (window.__swc.ignoreWarningLevels[level])
return;
window.__swc.issuedWarnings.add(id);
let listedIssues = "";

@@ -123,0 +151,0 @@ if (issues && issues.length) {

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

"use strict";var c=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var l=(t,n,r,o)=>{for(var e=o>1?void 0:o?d(n,r):n,i=t.length-1,s;i>=0;i--)(s=t[i])&&(e=(o?s(n,r,e):s(e))||e);return o&&e&&c(n,r,e),e};import{LitElement as m}from"lit";import{property as u}from"lit/decorators.js";const a=new Set,p=()=>{const t=document.documentElement.dir==="rtl"?document.documentElement.dir:"ltr";a.forEach(n=>{n.setAttribute("dir",t)})},h=new MutationObserver(p);h.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const w=t=>typeof t.startManagingContentDirection!="undefined"||t.tagName==="SP-THEME";export function SpectrumMixin(t){class n extends t{constructor(){super(...arguments);this.dir="ltr"}get isLTR(){return this.dir==="ltr"}hasVisibleFocusInTree(){const e=this.getRootNode().activeElement;if(!e)return!1;try{return e.matches(":focus-visible")||e.matches(".focus-visible")}catch(i){return e.matches(".focus-visible")}}connectedCallback(){if(!this.hasAttribute("dir")){let e=this.assignedSlot||this.parentNode;for(;e!==document.documentElement&&!w(e);)e=e.assignedSlot||e.parentNode||e.host;const i=this.dir;if(this.dir=e.dir==="rtl"?e.dir:this.dir||"ltr",i===this.dir&&this.setAttribute("dir",this.dir),e===document.documentElement)a.add(this);else{const{localName:s}=e;s.search("-")>-1&&!customElements.get(s)?customElements.whenDefined(s).then(()=>{e.startManagingContentDirection(this)}):e.startManagingContentDirection(this)}this._dirParent=e}super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._dirParent&&(this._dirParent===document.documentElement?a.delete(this):this._dirParent.stopManagingContentDirection(this),this.removeAttribute("dir"))}}return l([u({reflect:!0})],n.prototype,"dir",2),n}export class SpectrumElement extends SpectrumMixin(m){}
"use strict";var c=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var l=(t,n,r,o)=>{for(var e=o>1?void 0:o?d(n,r):n,i=t.length-1,s;i>=0;i--)(s=t[i])&&(e=(o?s(n,r,e):s(e))||e);return o&&e&&c(n,r,e),e};import{LitElement as m}from"lit";import{property as u}from"lit/decorators.js";const a=new Set,g=()=>{const t=document.documentElement.dir==="rtl"?document.documentElement.dir:"ltr";a.forEach(n=>{n.setAttribute("dir",t)})},p=new MutationObserver(g);p.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const w=t=>typeof t.startManagingContentDirection!="undefined"||t.tagName==="SP-THEME";export function SpectrumMixin(t){class n extends t{constructor(){super(...arguments);this.dir="ltr"}get isLTR(){return this.dir==="ltr"}hasVisibleFocusInTree(){const e=this.getRootNode().activeElement;if(!e)return!1;try{return e.matches(":focus-visible")||e.matches(".focus-visible")}catch(i){return e.matches(".focus-visible")}}connectedCallback(){if(!this.hasAttribute("dir")){let e=this.assignedSlot||this.parentNode;for(;e!==document.documentElement&&!w(e);)e=e.assignedSlot||e.parentNode||e.host;const i=this.dir;if(this.dir=e.dir==="rtl"?e.dir:this.dir||"ltr",i===this.dir&&this.setAttribute("dir",this.dir),e===document.documentElement)a.add(this);else{const{localName:s}=e;s.search("-")>-1&&!customElements.get(s)?customElements.whenDefined(s).then(()=>{e.startManagingContentDirection(this)}):e.startManagingContentDirection(this)}this._dirParent=e}super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._dirParent&&(this._dirParent===document.documentElement?a.delete(this):this._dirParent.stopManagingContentDirection(this),this.removeAttribute("dir"))}}return l([u({reflect:!0})],n.prototype,"dir",2),n}export class SpectrumElement extends SpectrumMixin(m){}
//# sourceMappingURL=Base.js.map

@@ -38,2 +38,4 @@ "use strict";

}
/* c8 ignore next 4 */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
render(_configGroup) {

@@ -106,2 +108,3 @@ return nothing;

}
/* c8 ignore next 3 */
reconnected() {

@@ -108,0 +111,0 @@ this.addListeners();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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