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.
- package/esm2022/lib/components/molecules/comment/comment.component.mjs +55 -4
- package/esm2022/lib/components/molecules/comment/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +55 -4
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/comment/types.d.ts +16 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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