sfc-utils 1.4.7 → 1.4.9
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/components/topper2.mjs +7 -3
- package/package.json +1 -1
package/components/topper2.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import * as topperStyles from "../styles/modules/topper2.module.less"
|
|
|
8
8
|
import * as imageStyles from "../styles/modules/topperimage.module.less"
|
|
9
9
|
|
|
10
10
|
const Topper2 = ({ settings, wcmData, mods }) => {
|
|
11
|
-
|
|
11
|
+
let {
|
|
12
12
|
Topper_Style, Title, Title_Style, Deck, Image, Image_Alt, Video_Mp4, Image_Caption, Image_Credits,
|
|
13
13
|
HeaderDek_Vertical_Position, HeaderDek_Vertical_Offset, HeaderDek_Horizontal_Offset,
|
|
14
14
|
HeaderDek_Horizontal_Position, Inverted_Colors, Inverted_Layout, Inverted_Text_Color,
|
|
@@ -146,8 +146,12 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
146
146
|
/** Converts wcm string from spreadsheet into a list of WCM ids */
|
|
147
147
|
const getWcmIdList = (listStr) => {
|
|
148
148
|
if (!listStr) return [];
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
// For backwards compat, handle both ; and , as delimiters
|
|
150
|
+
let charSearch = ","
|
|
151
|
+
if (listStr.indexOf(";") !== -1){
|
|
152
|
+
charSearch = ";"
|
|
153
|
+
}
|
|
154
|
+
return listStr.toString().split(charSearch).map((d) => parseInt(d));
|
|
151
155
|
}
|
|
152
156
|
|
|
153
157
|
/** Checks if WCM list represents an image slideshow */
|