@solidpepper/solidpepper-solidgeneration 0.2.7 → 0.2.8

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.
@@ -6841,10 +6841,11 @@ class DataSheetSVG {
6841
6841
  getActualBlockHeight(svgContent, initialBlockHeight, blockY = 0) {
6842
6842
  if (!svgContent)
6843
6843
  return { actualHeight: initialBlockHeight, updatedSvg: svgContent };
6844
- const hasDynamicElements = /id=["']tableVariant["']/i.test(svgContent) ||
6844
+ const hasTable = /id=["']tableVariant["']/i.test(svgContent) ||
6845
6845
  /data-info=["']variantTable["']/i.test(svgContent) ||
6846
- /<foreignObject/i.test(svgContent);
6847
- if (!hasDynamicElements) {
6846
+ /data-type=["'](productTable|variantsTable)["']/i.test(svgContent) ||
6847
+ /<table\b/i.test(svgContent);
6848
+ if (!hasTable) {
6848
6849
  return { actualHeight: initialBlockHeight, updatedSvg: svgContent };
6849
6850
  }
6850
6851
  let maxBottom = 0;