@planetaexo/design-system 0.37.4 → 0.37.5
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.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3983,6 +3983,12 @@ ${content}
|
|
|
3983
3983
|
</body>
|
|
3984
3984
|
</html>`;
|
|
3985
3985
|
}
|
|
3986
|
+
function constrainItineraryImages(html) {
|
|
3987
|
+
return html.replace(/<img\b[^>]*>/gi, (tag) => {
|
|
3988
|
+
const withoutStyle = tag.replace(/\sstyle\s*=\s*("[^"]*"|'[^']*')/gi, "");
|
|
3989
|
+
return withoutStyle.replace(/<img\b/i, '<img style="max-width:100%;height:auto"');
|
|
3990
|
+
});
|
|
3991
|
+
}
|
|
3986
3992
|
var DEFAULT_LABELS = {
|
|
3987
3993
|
travellersHeading: "TRAVELLERS",
|
|
3988
3994
|
detailsHeading: "DETAILS",
|
|
@@ -4369,7 +4375,7 @@ function BookingAdventureCard({
|
|
|
4369
4375
|
lineHeight: "1.4",
|
|
4370
4376
|
margin: 0
|
|
4371
4377
|
},
|
|
4372
|
-
dangerouslySetInnerHTML: { __html: description }
|
|
4378
|
+
dangerouslySetInnerHTML: { __html: constrainItineraryImages(description) }
|
|
4373
4379
|
}
|
|
4374
4380
|
) : itinerary.map((line, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4375
4381
|
"p",
|