@capillarytech/creatives-library 8.0.292 → 8.0.293
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
|
@@ -1965,6 +1965,14 @@ export class Creatives extends React.Component {
|
|
|
1965
1965
|
const channelsToRemove = allChannels.filter((channel) => !allowedChannels.includes(channel));
|
|
1966
1966
|
updatedChannelsToHide = [...new Set([...updatedChannelsToHide, ...channelsToRemove])];
|
|
1967
1967
|
}
|
|
1968
|
+
// In library mode (journey module), hide mobilepush and wechat channels from engagement blocks
|
|
1969
|
+
// unless the current engagement block itself is that channel (e.g. mobilepush block should show mobilepush tab)
|
|
1970
|
+
const isJourneyModule = (this.props.messageDetails?.type || '').toLowerCase() === constants.JOURNEY;
|
|
1971
|
+
if (!isFullMode && isJourneyModule) {
|
|
1972
|
+
const currentChannelNorm = (currentChannel || '').toLowerCase();
|
|
1973
|
+
const journeyChannelsToHide = ['mobilepush', 'wechat'].filter((ch) => ch !== currentChannelNorm);
|
|
1974
|
+
updatedChannelsToHide = [...new Set([...updatedChannelsToHide, ...journeyChannelsToHide])];
|
|
1975
|
+
}
|
|
1968
1976
|
|
|
1969
1977
|
return (
|
|
1970
1978
|
<SlideBoxWrapper
|