eat-js-sdk 2.6.1 → 2.6.3
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.
|
@@ -6851,7 +6851,7 @@ create_custom_element(
|
|
|
6851
6851
|
true
|
|
6852
6852
|
);
|
|
6853
6853
|
const useRemoveRichTextHtmlTags = (htmlString) => {
|
|
6854
|
-
return htmlString.replace(/<\/p>/g, " ").replace(/<[^>]*>/g, "").trim();
|
|
6854
|
+
return htmlString.replace(/<\/p>/g, " ").replace(/<[^>]*>/g, "").replace(/\[eat-eq\]([\s\S]*?)\[\/eat-eq\]/g, "$1").trim();
|
|
6855
6855
|
};
|
|
6856
6856
|
const { LG: SCREEN_LG, MD: SCREEN_MD } = BREAKPOINTS;
|
|
6857
6857
|
const CAPTION_GAP = 16;
|
|
@@ -7535,7 +7535,7 @@ function useStimulusData(stimulus) {
|
|
|
7535
7535
|
}
|
|
7536
7536
|
const {
|
|
7537
7537
|
asset_alignment: assetAlignment,
|
|
7538
|
-
|
|
7538
|
+
alt_text: alternativeText,
|
|
7539
7539
|
long_description: longDescriptionRaw,
|
|
7540
7540
|
description,
|
|
7541
7541
|
file,
|
|
@@ -9457,7 +9457,7 @@ function MCQOption($$anchor, $$props) {
|
|
|
9457
9457
|
reset(div_2);
|
|
9458
9458
|
template_effect(() => {
|
|
9459
9459
|
set_attribute(img, "id", `img-${index2() ?? ""}`);
|
|
9460
|
-
set_attribute(img, "alt", `Graphic, ${(option().media?.
|
|
9460
|
+
set_attribute(img, "alt", `Graphic, ${(option().media?.alt_text || "") ?? ""}`);
|
|
9461
9461
|
set_attribute(img, "src", option().media.file.url);
|
|
9462
9462
|
});
|
|
9463
9463
|
append($$anchor2, div_2);
|