valtech-components 4.0.1025 → 4.0.1026

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.
@@ -78,6 +78,18 @@ export interface CommentMenuItem {
78
78
  /** Fallback label */
79
79
  contentFallback?: string;
80
80
  }
81
+ export interface CommentAttachment {
82
+ /** Unique attachment identifier */
83
+ token: string;
84
+ /** Attachment kind */
85
+ type: 'image' | 'video' | 'file';
86
+ /** Source URL */
87
+ url: string;
88
+ /** Accessible label for images or file name */
89
+ label?: string;
90
+ /** Optional preview image for video/file attachments */
91
+ thumbnailUrl?: string;
92
+ }
81
93
  /**
82
94
  * Main comment metadata interface.
83
95
  * Supports recursive nesting via children property.
@@ -91,6 +103,10 @@ export interface CommentMetadata {
91
103
  content: string;
92
104
  /** Timestamp - can be string ("2 hours ago") or Date object */
93
105
  timestamp: string | Date;
106
+ /** Visual variant. `social` renders as a post-like rounded card. */
107
+ variant?: 'default' | 'social';
108
+ /** Media or file attachments shown below the comment body */
109
+ attachments?: CommentAttachment[];
94
110
  /** Available reactions */
95
111
  reactions?: CommentReaction[];
96
112
  /** Action buttons (reply, etc.) */
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.1025";
5
+ export declare const VERSION = "4.0.1026";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.1025",
3
+ "version": "4.0.1026",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"