valtech-components 2.0.306 → 2.0.308

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.
@@ -11,6 +11,10 @@
11
11
  * @property size - The image size ('small' | 'medium' | 'large' | 'xlarge').
12
12
  * @property width - The image width in px (optional).
13
13
  * @property height - The image height in px (optional).
14
+ * @property alignment - The alignment of the image container ('left' | 'center' | 'right').
15
+ * @property caption - Optional caption text below the image.
16
+ * @property captionSize - Size of the caption text ('small' | 'medium' | 'large').
17
+ * @property containerClass - Additional CSS classes for the container.
14
18
  */
15
19
  export type ImageMetadata = {
16
20
  src: string;
@@ -23,4 +27,8 @@ export type ImageMetadata = {
23
27
  size: 'small' | 'medium' | 'large' | 'xlarge';
24
28
  width?: number;
25
29
  height?: number;
30
+ alignment?: 'left' | 'center' | 'right';
31
+ caption?: string;
32
+ captionSize?: 'small' | 'medium' | 'large';
33
+ containerClass?: string;
26
34
  };
@@ -1,4 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { ImageMetadata } from '../../atoms/image/types';
2
3
  import { ArticleButtonElement, ArticleCodeElement, ArticleCustomElement, ArticleElement, ArticleHighlightElement, ArticleImageElement, ArticleListElement, ArticleMetadata, ArticleQuoteElement, ArticleSeparatorElement, ArticleSubtitleElement, ArticleTextElement, ArticleTitleElement, ArticleVideoElement } from './types';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class ArticleComponent implements OnInit {
@@ -77,6 +78,7 @@ export declare class ArticleComponent implements OnInit {
77
78
  ref?: any;
78
79
  handler?: (value: any) => any;
79
80
  };
81
+ getImageMetadata(element: ArticleElement): ImageMetadata;
80
82
  static ɵfac: i0.ɵɵFactoryDeclaration<ArticleComponent, never>;
81
83
  static ɵcmp: i0.ɵɵComponentDeclaration<ArticleComponent, "val-article", never, { "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
82
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.306",
3
+ "version": "2.0.308",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0",