ctt-babylon 0.26.43 → 0.26.44

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.
@@ -1,9 +1,22 @@
1
+ import { OnChanges } from '@angular/core';
2
+ import { BabylonButtonI, BabylonMultimediaI, BabylonTextInfoI } from '../../../../interfaces';
1
3
  import { SliC2ImgTxtCtaV3Content } from './sli-c2-img-txt-cta-v3.interfaces';
2
4
  import * as i0 from "@angular/core";
3
- export declare class SliC2ImgTxtCtaV3Component {
5
+ export declare class SliC2ImgTxtCtaV3Component implements OnChanges {
4
6
  private readonly fallbackContent;
7
+ /** Contenido manual (uso directo / demo). Si llegan texts/multimedia/buttons se ignora. */
5
8
  content: SliC2ImgTxtCtaV3Content;
9
+ /** Datos mapeados que llegan del CMS */
10
+ texts?: BabylonTextInfoI;
11
+ multimedia?: BabylonMultimediaI;
12
+ buttons?: BabylonButtonI[];
6
13
  reverse?: boolean;
14
+ /** Oculta los SVG grandes decorativos (rewards + corazones) */
15
+ hideSvgs?: boolean;
16
+ view: SliC2ImgTxtCtaV3Content;
17
+ ngOnChanges(): void;
18
+ private buildView;
19
+ private mapButton;
7
20
  static ɵfac: i0.ɵɵFactoryDeclaration<SliC2ImgTxtCtaV3Component, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<SliC2ImgTxtCtaV3Component, "sli-c2-img-txt-cta-v3", never, { "content": { "alias": "content"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; }, {}, never, never, true, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<SliC2ImgTxtCtaV3Component, "sli-c2-img-txt-cta-v3", never, { "content": { "alias": "content"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "hideSvgs": { "alias": "hideSvgs"; "required": false; }; }, {}, never, never, true, never>;
9
22
  }
@@ -1,6 +1,7 @@
1
1
  export interface CtaButtonConfig {
2
2
  label: string;
3
3
  url?: string;
4
+ linkType?: string;
4
5
  target?: '_self' | '_blank';
5
6
  ariaLabel?: string;
6
7
  variant?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctt-babylon",
3
- "version": "0.26.43",
3
+ "version": "0.26.44",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",