@capillarytech/creatives-library 8.0.133 → 8.0.134
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/package.json
CHANGED
|
@@ -570,7 +570,7 @@ const MobilePushNew = ({
|
|
|
570
570
|
expandableDetails: androidExpandableDetails = {},
|
|
571
571
|
image: androidImage = "",
|
|
572
572
|
cta: androidMainCta = null,
|
|
573
|
-
type: androidType =
|
|
573
|
+
type: androidType = NONE, // Get the type from root level
|
|
574
574
|
} = androidContentType || {};
|
|
575
575
|
|
|
576
576
|
const {
|
|
@@ -594,7 +594,7 @@ const MobilePushNew = ({
|
|
|
594
594
|
} else if (androidStyle === MANUAL_CAROUSEL || androidStyle === AUTO_CAROUSEL || androidStyle === FILMSTRIP_CAROUSEL || androidStyle === CAROUSEL) {
|
|
595
595
|
androidMediaType = CAROUSEL;
|
|
596
596
|
} else if (androidStyle === BIG_TEXT) {
|
|
597
|
-
androidMediaType =
|
|
597
|
+
androidMediaType = NONE;
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
// Then check media array for video/GIF
|
|
@@ -758,8 +758,8 @@ const MobilePushNew = ({
|
|
|
758
758
|
expandableDetails: iosExpandableDetails = {},
|
|
759
759
|
image: iosImage = "",
|
|
760
760
|
cta: iosMainCta = null,
|
|
761
|
-
type: iosType =
|
|
762
|
-
mediaType: iosMediaTypeFromRoot =
|
|
761
|
+
type: iosType = NONE, // Get the type from root level
|
|
762
|
+
mediaType: iosMediaTypeFromRoot = NONE, // Also check mediaType from root
|
|
763
763
|
} = iosContentType || {};
|
|
764
764
|
|
|
765
765
|
const {
|
|
@@ -768,11 +768,11 @@ const MobilePushNew = ({
|
|
|
768
768
|
image: iosExpandableImage = "",
|
|
769
769
|
media: iosMedia = [],
|
|
770
770
|
carouselData: iosCarouselData = [],
|
|
771
|
-
mediaType: iosMediaTypeFromStyle =
|
|
771
|
+
mediaType: iosMediaTypeFromStyle = NONE, // Also check mediaType from style
|
|
772
772
|
} = iosExpandableDetails || {};
|
|
773
773
|
|
|
774
774
|
// Determine media type based on all available information
|
|
775
|
-
let iosMediaType =
|
|
775
|
+
let iosMediaType = NONE;
|
|
776
776
|
let iosImageSrc = "";
|
|
777
777
|
let iosVideoSrc = "";
|
|
778
778
|
let iosVideoPreview = "";
|
|
@@ -784,7 +784,7 @@ const MobilePushNew = ({
|
|
|
784
784
|
} else if (iosStyle === MANUAL_CAROUSEL || iosStyle === AUTO_CAROUSEL || iosStyle === FILMSTRIP_CAROUSEL) {
|
|
785
785
|
iosMediaType = CAROUSEL;
|
|
786
786
|
} else if (iosStyle === BIG_TEXT) {
|
|
787
|
-
iosMediaType =
|
|
787
|
+
iosMediaType = NONE;
|
|
788
788
|
}
|
|
789
789
|
|
|
790
790
|
// Then check media array for video/GIF
|
|
@@ -985,7 +985,7 @@ const MobilePushNew = ({
|
|
|
985
985
|
expandableDetails: androidExpandableDetails = {},
|
|
986
986
|
image: androidImage = "",
|
|
987
987
|
cta: androidMainCta = null,
|
|
988
|
-
type: androidType =
|
|
988
|
+
type: androidType = NONE, // Get the type from root level
|
|
989
989
|
} = androidContentType || {};
|
|
990
990
|
|
|
991
991
|
const {
|
|
@@ -1009,7 +1009,7 @@ const MobilePushNew = ({
|
|
|
1009
1009
|
} else if (androidStyle === MANUAL_CAROUSEL || androidStyle === AUTO_CAROUSEL || androidStyle === FILMSTRIP_CAROUSEL || androidStyle === CAROUSEL) {
|
|
1010
1010
|
androidMediaType = CAROUSEL;
|
|
1011
1011
|
} else if (androidStyle === BIG_TEXT) {
|
|
1012
|
-
androidMediaType =
|
|
1012
|
+
androidMediaType = NONE;
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
1015
|
// Then check media array for video/GIF
|
|
@@ -1173,8 +1173,8 @@ const MobilePushNew = ({
|
|
|
1173
1173
|
expandableDetails: iosExpandableDetails = {},
|
|
1174
1174
|
image: iosImage = "",
|
|
1175
1175
|
cta: iosMainCta = null,
|
|
1176
|
-
type: iosType =
|
|
1177
|
-
mediaType: iosMediaTypeFromRoot =
|
|
1176
|
+
type: iosType = NONE, // Get the type from root level
|
|
1177
|
+
mediaType: iosMediaTypeFromRoot = NONE, // Also check mediaType from root
|
|
1178
1178
|
} = iosContentType || {};
|
|
1179
1179
|
|
|
1180
1180
|
const {
|
|
@@ -1183,11 +1183,11 @@ const MobilePushNew = ({
|
|
|
1183
1183
|
image: iosExpandableImage = "",
|
|
1184
1184
|
media: iosMedia = [],
|
|
1185
1185
|
carouselData: iosCarouselData = [],
|
|
1186
|
-
mediaType: iosMediaTypeFromStyle =
|
|
1186
|
+
mediaType: iosMediaTypeFromStyle = NONE, // Also check mediaType from style
|
|
1187
1187
|
} = iosExpandableDetails || {};
|
|
1188
1188
|
|
|
1189
1189
|
// Determine media type based on all available information
|
|
1190
|
-
let iosMediaType =
|
|
1190
|
+
let iosMediaType = NONE;
|
|
1191
1191
|
let iosImageSrc = "";
|
|
1192
1192
|
let iosVideoSrc = "";
|
|
1193
1193
|
let iosVideoPreview = "";
|
|
@@ -1199,7 +1199,7 @@ const MobilePushNew = ({
|
|
|
1199
1199
|
} else if (iosStyle === MANUAL_CAROUSEL || iosStyle === AUTO_CAROUSEL || iosStyle === FILMSTRIP_CAROUSEL) {
|
|
1200
1200
|
iosMediaType = CAROUSEL;
|
|
1201
1201
|
} else if (iosStyle === BIG_TEXT) {
|
|
1202
|
-
iosMediaType =
|
|
1202
|
+
iosMediaType = NONE;
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
// Then check media array for video/GIF
|
|
@@ -1920,7 +1920,7 @@ const MobilePushNew = ({
|
|
|
1920
1920
|
const validKeys = deepLinkKeysArray.filter((key) => typeof key === 'string' && key?.length > 0);
|
|
1921
1921
|
if (validKeys?.length > 0) {
|
|
1922
1922
|
const separator = actionLink.includes('?') ? '&' : '?';
|
|
1923
|
-
const keyParams = validKeys.map((key) => `${key}
|
|
1923
|
+
const keyParams = validKeys.map((key) => `${key}=${key}`).join('&');
|
|
1924
1924
|
actionLink = `${actionLink}${separator}${keyParams}`;
|
|
1925
1925
|
}
|
|
1926
1926
|
}
|
|
@@ -1948,11 +1948,11 @@ const MobilePushNew = ({
|
|
|
1948
1948
|
const validKeys = deepLinkKeysArray.filter((key) => typeof key === 'string' && key?.length > 0);
|
|
1949
1949
|
if (validKeys?.length > 0) {
|
|
1950
1950
|
const separator = actionLink.includes('?') ? '&' : '?';
|
|
1951
|
-
const keyParams = validKeys.map((key) => `${key}
|
|
1951
|
+
const keyParams = validKeys.map((key) => `${key}=${key}`).join('&');
|
|
1952
1952
|
actionLink = `${actionLink}${separator}${keyParams}`;
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
|
-
|
|
1955
|
+
|
|
1956
1956
|
return {
|
|
1957
1957
|
actionText: cta?.text,
|
|
1958
1958
|
type: cta?.urlType || DEEP_LINK,
|