@descope/web-components-ui 1.94.0 → 1.96.0

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/dist/index.esm.js CHANGED
@@ -6665,7 +6665,7 @@ class RawDateFieldClass extends BaseInputClass$a {
6665
6665
 
6666
6666
  this.attachShadow({ mode: 'open' }).innerHTML = `
6667
6667
  <div>
6668
- <descope-text-field>
6668
+ <descope-text-field inputmode="numeric">
6669
6669
  <span slot="suffix" class="toggle-calendar">
6670
6670
  ${calendarIcon}
6671
6671
  </span>
@@ -17544,6 +17544,10 @@ const createSvgEle = (text) => {
17544
17544
  // we want to purify the SVG to avoid XSS attacks
17545
17545
  const clean = DOMPurify.sanitize(text, {
17546
17546
  USE_PROFILES: { svg: true, svgFilters: true },
17547
+ // allow image to render
17548
+ ADD_TAGS: ['image'],
17549
+ // forbid interactiviy via `use` tags (which are sanitized by default)
17550
+ FORBID_TAGS: ['defs']
17547
17551
  });
17548
17552
 
17549
17553
  const parser = new DOMParser();