@code.store/arcxp-sdk-ts 5.3.1 → 5.3.2

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.js CHANGED
@@ -1312,6 +1312,7 @@ var html_utils = /*#__PURE__*/Object.freeze({
1312
1312
  */
1313
1313
  class HTMLProcessor {
1314
1314
  constructor() {
1315
+ this.blockElementTags = BLOCK_ELEMENT_TAGS$1;
1315
1316
  this.parallelProcessing = true;
1316
1317
  this.handlers = {
1317
1318
  node: new Map(),
@@ -1642,7 +1643,7 @@ class HTMLProcessor {
1642
1643
  isBlockElement(node) {
1643
1644
  if (!isHTMLElement(node))
1644
1645
  return false;
1645
- const defaultBlockElements = new Set(BLOCK_ELEMENT_TAGS$1);
1646
+ const defaultBlockElements = new Set(this.blockElementTags);
1646
1647
  return defaultBlockElements.has(node.tagName);
1647
1648
  }
1648
1649
  warn(metadata, message) {
@@ -1688,6 +1689,7 @@ var xml_utils = /*#__PURE__*/Object.freeze({
1688
1689
  const ContentElement = ContentElement$1;
1689
1690
  class XMLProcessor {
1690
1691
  constructor() {
1692
+ this.blockElementTags = BLOCK_ELEMENT_TAGS;
1691
1693
  this.handlers = {
1692
1694
  node: new Map(),
1693
1695
  wrap: new Map(),
@@ -1863,7 +1865,7 @@ class XMLProcessor {
1863
1865
  return decoded;
1864
1866
  }
1865
1867
  isBlockElement(node) {
1866
- const defaultBlockElements = new Set(BLOCK_ELEMENT_TAGS);
1868
+ const defaultBlockElements = new Set(this.blockElementTags);
1867
1869
  if (defaultBlockElements.has(node.name))
1868
1870
  return true;
1869
1871
  }