sass-template-common 0.16.7 → 0.16.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.
@@ -999,7 +999,7 @@ declare interface Date_2 {
999
999
  }
1000
1000
  export { Date_2 as Date }
1001
1001
 
1002
- export declare const DEBUG_MainSlots: ({ StylesConfigMain, config, banners, axiosApi, commonServices, textPosition, imageSizes, section, zone, exclude, customMainImagesSize, liveIframe, }: Props_22) => Promise<JSX.Element | null>;
1002
+ export declare const DEBUG_MainSlots: ({ StylesConfigMain, config, banners, axiosApi, commonServices, textPosition, imageSizes, section, zone, exclude, customMainImagesSize, liveIframe, texts, }: Props_22) => Promise<JSX.Element | null>;
1003
1003
 
1004
1004
  declare type DebugCfg = {
1005
1005
  buttonPosition?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
@@ -1100,6 +1100,30 @@ declare type DestacadoDiarioLive = {
1100
1100
  '--news-description-padding'?: string;
1101
1101
  '--news-description-border-bottom'?: string;
1102
1102
  };
1103
+ customLiveBadgeStyles?: {
1104
+ '--ddl-live-badge-box-align-items'?: string;
1105
+ '--ddl-live-badge-box-gap'?: string;
1106
+ '--ddl-live-badge-box-padding'?: string;
1107
+ '--ddl-live-badge-gap'?: string;
1108
+ '--ddl-live-badge-background'?: string;
1109
+ '--ddl-live-badge-border'?: string;
1110
+ '--ddl-live-badge-border-radius'?: string;
1111
+ '--ddl-live-badge-padding'?: string;
1112
+ '--ddl-live-badge-font-family'?: string;
1113
+ '--ddl-live-badge-font-weight'?: string;
1114
+ '--ddl-live-badge-font-size'?: string;
1115
+ '--ddl-live-badge-color'?: string;
1116
+ '--ddl-live-badge-dot-size'?: string;
1117
+ '--ddl-live-badge-dot-color'?: string;
1118
+ '--ddl-live-badge-pulse-color'?: string;
1119
+ '--ddl-live-badge-title-font-family'?: string;
1120
+ '--ddl-live-badge-title-font-weight'?: string;
1121
+ '--ddl-live-badge-title-font-size-mobile'?: string;
1122
+ '--ddl-live-badge-title-line-height-mobile'?: string;
1123
+ '--ddl-live-badge-title-font-size-desk'?: string;
1124
+ '--ddl-live-badge-title-line-height-desk'?: string;
1125
+ '--ddl-live-badge-title-color'?: string;
1126
+ };
1103
1127
  };
1104
1128
 
1105
1129
  export declare interface DestacadoDiarioLiveProps extends SectionCardProps, NewDescriptionBlockProps {
@@ -1109,6 +1133,7 @@ export declare interface DestacadoDiarioLiveProps extends SectionCardProps, NewD
1109
1133
  customSectionCardStyles?: CSSProperties;
1110
1134
  customNewsDescriptionStyles?: CSSProperties;
1111
1135
  customLiveStyles?: CSSProperties;
1136
+ customLiveBadgeStyles?: CSSProperties;
1112
1137
  paths: RoutePathConfig;
1113
1138
  block: NewListResponseData[];
1114
1139
  commonServices?: CommonServices;
@@ -1119,6 +1144,7 @@ export declare interface DestacadoDiarioLiveProps extends SectionCardProps, NewD
1119
1144
  textPosition?: 'center' | 'start';
1120
1145
  heightImageOverwrite?: string;
1121
1146
  heightImageOverwriteMobile?: string;
1147
+ texts?: textsType;
1122
1148
  }
1123
1149
 
1124
1150
  export declare const DestacadoNoticias: FC<DestacadoNoticiasProps>;
@@ -1213,7 +1239,7 @@ export declare class DynamicBlockServices extends CommonServices {
1213
1239
 
1214
1240
  export declare const DynamicComponents: ({ slots, DYNAMIC_SLOT_SUBINDEXES, stylesConfig, AutorIcon, config, banners, showTagBySection, pathname, }: Props_21) => ReactNode[];
1215
1241
 
1216
- export declare const DynamicMainSlot: ({ component, data, banners, rightOnlyBanner, isHome, commonServices, }: Props_20) => JSX.Element;
1242
+ export declare const DynamicMainSlot: ({ component, data, banners, rightOnlyBanner, isHome, commonServices, texts, }: Props_20) => JSX.Element;
1217
1243
 
1218
1244
  export declare function DynamicSlot({ component, slot_id, data, banners, isHome, }: Props_18): JSX.Element | undefined;
1219
1245
 
@@ -3524,6 +3550,7 @@ declare type Props_20 = {
3524
3550
  rightOnlyBanner?: boolean;
3525
3551
  isHome?: boolean;
3526
3552
  commonServices?: CommonServices;
3553
+ texts?: textsType;
3527
3554
  };
3528
3555
 
3529
3556
  declare type Props_21 = {
@@ -3552,6 +3579,7 @@ declare type Props_22 = {
3552
3579
  customMainImagesSize?: string;
3553
3580
  /** HTML del iframe del destacado "En vivo". */
3554
3581
  liveIframe?: string;
3582
+ texts?: textsType;
3555
3583
  };
3556
3584
 
3557
3585
  declare type Props_23 = {
@@ -4746,6 +4774,8 @@ export declare type TextsHeader = {
4746
4774
  export declare type TextsListsAndSearch = {
4747
4775
  readestTitle: string;
4748
4776
  enVivoButton: string;
4777
+ /** Título del bloque destacado "En vivo" (ej. "Reportes de MiSitio en vivo"). */
4778
+ destacadoLiveTitle: string;
4749
4779
  relatedNewsTitle: string;
4750
4780
  moreNewsTitle: string;
4751
4781
  searchKeyWord: string;
@@ -7585,6 +7585,7 @@ const jp = async (e) => {
7585
7585
  /** Chip de sección de los videos del ranking (ver `videos` en los paths). */
7586
7586
  videosSectionTitle: "Videos",
7587
7587
  enVivoButton: "LIVE",
7588
+ destacadoLiveTitle: "MySite live reports",
7588
7589
  tapeTitle: "",
7589
7590
  sideCopyright: `©${Un}, ${(/* @__PURE__ */ new Date()).getFullYear()}. All rights reserved.`,
7590
7591
  footerCopyright: `©${Un}, ${(/* @__PURE__ */ new Date()).getFullYear()}. All rights reserved.`,
@@ -7709,6 +7710,7 @@ const jp = async (e) => {
7709
7710
  /** Chip de sección de los videos del ranking (ver `videos` en los paths). */
7710
7711
  videosSectionTitle: "Videos",
7711
7712
  enVivoButton: "EN VIVO",
7713
+ destacadoLiveTitle: "Reportes de MiSitio en vivo",
7712
7714
  tapeTitle: "Ediciones: ",
7713
7715
  sideCopyright: `©${Un}, ${(/* @__PURE__ */ new Date()).getFullYear()}. Todos los derechos reservados.`,
7714
7716
  footerCopyright: `©${Un}, ${(/* @__PURE__ */ new Date()).getFullYear()}. Todos los derechos reservados.`,
@@ -13295,7 +13297,8 @@ const Dm = async (e) => {
13295
13297
  showSuper: d,
13296
13298
  textPosition: u,
13297
13299
  heightImageOverwrite: m,
13298
- heightImageOverwriteMobile: h
13300
+ heightImageOverwriteMobile: h,
13301
+ texts: p
13299
13302
  } = e;
13300
13303
  return /* @__PURE__ */ b("section", { className: "sass-bmd-ddl-content", children: [
13301
13304
  /* @__PURE__ */ a("div", { className: "sass-bmd-ddl-sectionCardWrapper", children: d ? /* @__PURE__ */ a(
@@ -13346,18 +13349,34 @@ const Dm = async (e) => {
13346
13349
  }
13347
13350
  ),
13348
13351
  !e.rightOnlyBanner && /* @__PURE__ */ b("section", { children: [
13349
- /* @__PURE__ */ a(
13352
+ /* @__PURE__ */ b(
13350
13353
  "div",
13351
13354
  {
13352
13355
  className: "sass-bmd-ddl-playerWrapper",
13353
13356
  style: e.customLiveStyles,
13354
- children: e.liveIframe ? /* @__PURE__ */ a(
13355
- "div",
13356
- {
13357
- className: "sass-bmd-ddl-iframeContainer",
13358
- dangerouslySetInnerHTML: { __html: e.liveIframe }
13359
- }
13360
- ) : /* @__PURE__ */ a(qm, {})
13357
+ children: [
13358
+ e.liveIframe ? /* @__PURE__ */ a(
13359
+ "div",
13360
+ {
13361
+ className: "sass-bmd-ddl-iframeContainer",
13362
+ dangerouslySetInnerHTML: { __html: e.liveIframe }
13363
+ }
13364
+ ) : /* @__PURE__ */ a(qm, {}),
13365
+ /* @__PURE__ */ b(
13366
+ "div",
13367
+ {
13368
+ className: "sass-bmd-ddl-liveBadgeBox",
13369
+ style: e.customLiveBadgeStyles,
13370
+ children: [
13371
+ /* @__PURE__ */ b("div", { className: "sass-bmd-ddl-liveBadge", children: [
13372
+ /* @__PURE__ */ a("span", { className: "sass-bmd-ddl-liveBadgeDot" }),
13373
+ /* @__PURE__ */ a("p", { children: p?.enVivoButton })
13374
+ ] }),
13375
+ /* @__PURE__ */ a("h2", { className: "sass-bmd-ddl-liveBadgeTitle", children: p?.destacadoLiveTitle })
13376
+ ]
13377
+ }
13378
+ )
13379
+ ]
13361
13380
  }
13362
13381
  ),
13363
13382
  /* @__PURE__ */ a(
@@ -20744,9 +20763,11 @@ const of = (e) => e?.main?.title ? {
20744
20763
  customSectionCardStyles: e.customSectionCardStyles,
20745
20764
  customNewsDescriptionStyles: e.customNewsDescriptionStyles,
20746
20765
  customLiveStyles: e.customLiveStyles,
20766
+ customLiveBadgeStyles: e.customLiveBadgeStyles,
20747
20767
  paths: e.paths,
20748
20768
  commonServices: e.commonServices,
20749
20769
  liveIframe: e.liveIframe,
20770
+ texts: e.texts,
20750
20771
  speculationPrerenderClass: e.speculationPrerenderClass
20751
20772
  }
20752
20773
  );
@@ -20757,14 +20778,16 @@ const of = (e) => e?.main?.title ? {
20757
20778
  banners: n,
20758
20779
  rightOnlyBanner: s,
20759
20780
  isHome: r,
20760
- commonServices: o
20781
+ commonServices: o,
20782
+ texts: i
20761
20783
  }) => {
20762
- const i = r && Array.isArray(t?.data) ? { ...t, data: t.data.map(of) } : t;
20784
+ const c = r && Array.isArray(t?.data) ? { ...t, data: t.data.map(of) } : t;
20763
20785
  return /* @__PURE__ */ a("div", { style: pa(t), children: Br[e] && Br[e]({
20764
- ...i,
20786
+ ...c,
20765
20787
  rightOnlyBanner: s,
20766
20788
  banners: n,
20767
- commonServices: o
20789
+ commonServices: o,
20790
+ texts: i
20768
20791
  }) });
20769
20792
  }, Eg = ({
20770
20793
  slots: e,
@@ -20908,50 +20931,52 @@ const of = (e) => e?.main?.title ? {
20908
20931
  zone: l,
20909
20932
  exclude: d,
20910
20933
  customMainImagesSize: u,
20911
- liveIframe: m
20934
+ liveIframe: m,
20935
+ texts: h
20912
20936
  }) => {
20913
- const { PUBLIC_ENV: h } = I();
20914
- if (h !== "local") return null;
20915
- const p = new au(
20937
+ const { PUBLIC_ENV: p } = I();
20938
+ if (p !== "local") return null;
20939
+ const f = new au(
20916
20940
  t,
20917
20941
  {},
20918
20942
  s,
20919
20943
  d,
20920
20944
  u,
20921
20945
  i
20922
- ), f = await Promise.all(
20923
- lf.map(async (w) => {
20924
- const A = p.GetByOptions[w];
20925
- if (!A)
20926
- return { component: w, news: { data: [] } };
20946
+ ), g = await Promise.all(
20947
+ lf.map(async (A) => {
20948
+ const v = f.GetByOptions[A];
20949
+ if (!v)
20950
+ return { component: A, news: { data: [] } };
20927
20951
  try {
20928
- const N = (await A(c, l))?.data ?? { data: [] };
20929
- return { component: w, news: N };
20930
- } catch (v) {
20952
+ const C = (await v(c, l))?.data ?? { data: [] };
20953
+ return { component: A, news: C };
20954
+ } catch (N) {
20931
20955
  return console.log(
20932
- `[DEBUG_MainSlots] fetch ${w} failed: ${v?.message}`
20933
- ), { component: w, news: { data: [] } };
20956
+ `[DEBUG_MainSlots] fetch ${A} failed: ${N?.message}`
20957
+ ), { component: A, news: { data: [] } };
20934
20958
  }
20935
20959
  })
20936
- ), g = (w, A) => ({
20937
- ...A,
20938
- ...e[w],
20960
+ ), w = (A, v) => ({
20961
+ ...v,
20962
+ ...e[A],
20939
20963
  paths: t.paths,
20940
20964
  textPosition: o,
20941
- ...w === "En vivo" && m ? { liveIframe: m } : {}
20965
+ ...A === "En vivo" && m ? { liveIframe: m } : {}
20942
20966
  });
20943
- return /* @__PURE__ */ a(Q, { children: f.map(({ component: w, news: A }, v) => /* @__PURE__ */ b("div", { children: [
20967
+ return /* @__PURE__ */ a(Q, { children: g.map(({ component: A, news: v }, N) => /* @__PURE__ */ b("div", { children: [
20944
20968
  /* @__PURE__ */ a(
20945
20969
  cf,
20946
20970
  {
20947
- component: w,
20948
- data: g(w, A),
20971
+ component: A,
20972
+ data: w(A, v),
20949
20973
  banners: n,
20950
- commonServices: r
20974
+ commonServices: r,
20975
+ texts: h
20951
20976
  }
20952
20977
  ),
20953
- v < f.length - 1 && /* @__PURE__ */ a(Is, { children: /* @__PURE__ */ a(Ls, { banners: n, index: 1 }) })
20954
- ] }, w)) });
20978
+ N < g.length - 1 && /* @__PURE__ */ a(Is, { children: /* @__PURE__ */ a(Ls, { banners: n, index: 1 }) })
20979
+ ] }, A)) });
20955
20980
  };
20956
20981
  function kg({ debugCfg: e }) {
20957
20982
  return I().DEBUG_ENABLED ? /* @__PURE__ */ a(