@tradeshift/elements
Advanced tools
Comparing version 0.3.4 to 0.4.0
{ | ||
"name": "@tradeshift/elements", | ||
"version": "0.3.4", | ||
"version": "0.4.0", | ||
"src": "src/core.js", | ||
@@ -14,3 +14,3 @@ "main": "lib/core.umd.js", | ||
}, | ||
"gitHead": "f3688e19857621dec7ef620ce84f49e8a66bd429" | ||
"gitHead": "381c77534c9791bce759a86e5ea3c4ac6265b745" | ||
} |
@@ -15,6 +15,20 @@ import { LitElement, unsafeCSS } from 'lit-element'; | ||
} | ||
// TODO: Remove this when changed rtl to dir in ohter components | ||
get bodyHasRTL() { | ||
return document.body.getAttribute('dir') === 'rtl'; | ||
} | ||
get bodyDir() { | ||
return document.body.getAttribute('dir') || 'ltr'; | ||
} | ||
dispatchCustomEvent(eventName, data = {}) { | ||
const event = new CustomEvent(eventName, { | ||
detail: data, | ||
bubbles: true, | ||
composed: true | ||
}); | ||
this.dispatchEvent(event); | ||
} | ||
} | ||
@@ -21,0 +35,0 @@ |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21046
11
344
1