hive-react-kit 0.10.2 → 0.10.3

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.
@@ -29,8 +29,11 @@ export interface SnapsFeedCardProps {
29
29
  onSharePost?: (author: string, permlink: string) => void;
30
30
  onCommentClick?: (author: string, permlink: string) => void;
31
31
  /** Click on just the message-circle icon — typical use: open an
32
- * inline reply composer. Mirrors hSnaps PostCard. */
33
- onClickCommentIcon?: (author: string, permlink: string) => void;
32
+ * inline reply composer. Mirrors hSnaps PostCard. The optional
33
+ * `parentTags` argument carries the parent post's
34
+ * `json_metadata.tags` so the composer can pre-fill (and lock) the
35
+ * reply's tag list with the same tags as the parent. */
36
+ onClickCommentIcon?: (author: string, permlink: string, parentTags?: string[]) => void;
34
37
  /** Click on just the count number next to the comment icon — typical
35
38
  * use: navigate to the post detail / comments view. Mirrors hSnaps. */
36
39
  onClickCommentCount?: (author: string, permlink: string) => void;
@@ -49,7 +49,10 @@ export interface SnapsFeedViewProps {
49
49
  onSharePost?: (author: string, permlink: string) => void;
50
50
  onCommentClick?: (author: string, permlink: string) => void;
51
51
  /** Comment-icon click (per card) — typical use: open inline composer. */
52
- onClickCommentIcon?: (author: string, permlink: string) => void;
52
+ /** Forwarded to every <SnapsFeedCard/>. The optional `parentTags`
53
+ * argument carries `json_metadata.tags` of the snap so the
54
+ * consumer's reply composer can pre-fill them. */
55
+ onClickCommentIcon?: (author: string, permlink: string, parentTags?: string[]) => void;
53
56
  /** Comment-count click (per card) — typical use: open post detail. */
54
57
  onClickCommentCount?: (author: string, permlink: string) => void;
55
58
  onReportPost?: (author: string, permlink: string) => void;