@shoper/phoenix_design_system 1.15.11-28 → 1.15.11-29

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.
@@ -133,7 +133,7 @@ class BaseMessage extends phoenix_light_lit_element.PhoenixLightLitElement {
133
133
  var _a;
134
134
  super.render();
135
135
  return lit.html `
136
- <span class="sr-only" id="${this._messageId}">${(_a = this._$baseMessageContent) === null || _a === void 0 ? void 0 : _a.innerHTML}</span>
136
+ <span class="sr-only" id="${this._messageId}">${utilities.DomUtils.stripHTMLTags(((_a = this._$baseMessageContent) === null || _a === void 0 ? void 0 : _a.innerHTML) || '')}</span>
137
137
  <h-portal ?disabled="${!this.opened}" @open="${this._positionMessage}" to="${this.portalTarget}" hidden>
138
138
  ${this.getSlot(base_message_constants.MESSAGE_CONTENT_SLOT_NAME)}
139
139
  </h-portal>
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
2
2
  import { html } from 'lit';
3
3
  import { property } from 'lit/decorators';
4
- import { DIRECTIONS } from '@dreamcommerce/utilities';
4
+ import { DIRECTIONS, DomUtils } from '@dreamcommerce/utilities';
5
5
  import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
6
6
  import v4 from '../../../../../external/uuid/dist/esm-browser/v4.js';
7
7
  import { PORTAL_TARGET_COMPONENT_NAME, PORTAL_TARGET_NAME_PROP, PORTAL_TARGET_ATTRIBUTE_NAME } from '../portal/portal_constants.js';
@@ -129,7 +129,7 @@ class BaseMessage extends PhoenixLightLitElement {
129
129
  var _a;
130
130
  super.render();
131
131
  return html `
132
- <span class="sr-only" id="${this._messageId}">${(_a = this._$baseMessageContent) === null || _a === void 0 ? void 0 : _a.innerHTML}</span>
132
+ <span class="sr-only" id="${this._messageId}">${DomUtils.stripHTMLTags(((_a = this._$baseMessageContent) === null || _a === void 0 ? void 0 : _a.innerHTML) || '')}</span>
133
133
  <h-portal ?disabled="${!this.opened}" @open="${this._positionMessage}" to="${this.portalTarget}" hidden>
134
134
  ${this.getSlot(MESSAGE_CONTENT_SLOT_NAME)}
135
135
  </h-portal>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@shoper/phoenix_design_system",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "1.15.11-28",
5
+ "version": "1.15.11-29",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "@splidejs/splide": "^4.0.7"
31
31
  },
32
32
  "devDependencies": {
33
- "@dreamcommerce/utilities": "^1.20.1-1",
33
+ "@dreamcommerce/utilities": "^1.20.1-2",
34
34
  "@shoper/jest_config": "^0.0.0",
35
35
  "@shoper/tsconfig": "^0.0.0",
36
36
  "@splidejs/splide": "4.0.7",