sfc-utils 1.4.6 → 1.4.8

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.
@@ -7,14 +7,21 @@ import ImageSlideshow from "./slideshow/imageslideshow.mjs"
7
7
  import * as topperStyles from "../styles/modules/topper2.module.less"
8
8
  import * as imageStyles from "../styles/modules/topperimage.module.less"
9
9
 
10
- const Topper2 = ({ settings, wcmData }) => {
11
- const {
10
+ const Topper2 = ({ settings, wcmData, mods }) => {
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,
15
15
  Topper_Background_Color
16
16
  } = settings
17
17
 
18
+ // Handle mods here, in case the project modifies the title
19
+ if (mods){
20
+ if (mods.Title){
21
+ Title = mods.Title
22
+ }
23
+ }
24
+
18
25
  const headerDekStyleList = () => {
19
26
  switch (Topper_Style) {
20
27
  case "stacked":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",