@linktr.ee/messaging-react 3.0.0 → 3.1.0-rc-1780514752

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.
Files changed (35) hide show
  1. package/dist/{Card-Cqld0-Ws.js → Card-0TLA8XHU.js} +3 -3
  2. package/dist/{Card-Cqld0-Ws.js.map → Card-0TLA8XHU.js.map} +1 -1
  3. package/dist/{Card-B7ePjYQ6.cjs → Card-B-D_LbnV.cjs} +2 -2
  4. package/dist/{Card-B7ePjYQ6.cjs.map → Card-B-D_LbnV.cjs.map} +1 -1
  5. package/dist/{Card-C46z9zz4.js → Card-BaaerKBC.js} +2 -2
  6. package/dist/{Card-C46z9zz4.js.map → Card-BaaerKBC.js.map} +1 -1
  7. package/dist/{Card-Cq0x0bbb.cjs → Card-Bfxdewx_.cjs} +2 -2
  8. package/dist/{Card-Cq0x0bbb.cjs.map → Card-Bfxdewx_.cjs.map} +1 -1
  9. package/dist/{Card-C-ZIQW_q.js → Card-DZVa2CeI.js} +2 -2
  10. package/dist/{Card-C-ZIQW_q.js.map → Card-DZVa2CeI.js.map} +1 -1
  11. package/dist/{Card-Drz28Q-Y.cjs → Card-DbdWDBMe.cjs} +2 -2
  12. package/dist/{Card-Drz28Q-Y.cjs.map → Card-DbdWDBMe.cjs.map} +1 -1
  13. package/dist/{LockedThumbnail-D5NHhET2.js → LockedThumbnail-B4gDHeh7.js} +2 -2
  14. package/dist/{LockedThumbnail-D5NHhET2.js.map → LockedThumbnail-B4gDHeh7.js.map} +1 -1
  15. package/dist/{LockedThumbnail--h4GTH41.cjs → LockedThumbnail-DkwFwgpU.cjs} +2 -2
  16. package/dist/{LockedThumbnail--h4GTH41.cjs.map → LockedThumbnail-DkwFwgpU.cjs.map} +1 -1
  17. package/dist/{index-BUT2yBvJ.js → index-BmCc1-F3.js} +1147 -1118
  18. package/dist/index-BmCc1-F3.js.map +1 -0
  19. package/dist/index-Cg-bxSZn.cjs +2 -0
  20. package/dist/index-Cg-bxSZn.cjs.map +1 -0
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.d.ts +30 -0
  23. package/dist/index.js +1 -1
  24. package/package.json +1 -1
  25. package/src/components/ChannelInfoDialog/ChannelInfoDialog.test.tsx +43 -1
  26. package/src/components/ChannelInfoDialog/index.tsx +55 -37
  27. package/src/components/ChannelView.stories.tsx +25 -0
  28. package/src/components/ChannelView.test.tsx +84 -5
  29. package/src/components/ChannelView.tsx +30 -2
  30. package/src/components/CustomMessageInput/CustomMessageInput.test.tsx +42 -0
  31. package/src/components/CustomMessageInput/index.tsx +38 -12
  32. package/src/types.ts +35 -0
  33. package/dist/index-BUT2yBvJ.js.map +0 -1
  34. package/dist/index-DqNobxVj.cjs +0 -2
  35. package/dist/index-DqNobxVj.cjs.map +0 -1
package/src/types.ts CHANGED
@@ -131,6 +131,41 @@ export interface ChannelViewProps {
131
131
  */
132
132
  onReportParticipantClick?: () => void
133
133
 
134
+ /**
135
+ * Show the "Block"/"Unblock" action in the channel info dialog.
136
+ * Defaults to true. Set false for restricted surfaces such as the
137
+ * Linktree official channel, where blocking is not offered.
138
+ */
139
+ showBlockParticipant?: boolean
140
+
141
+ /**
142
+ * Show the "Report" action in the channel info dialog.
143
+ * Defaults to true. Set false for restricted surfaces such as the
144
+ * Linktree official channel, where reporting is not offered.
145
+ */
146
+ showReportParticipant?: boolean
147
+
148
+ /**
149
+ * Show the subscription/follower-status label in the channel info dialog
150
+ * profile card. Defaults to true. Set false for restricted surfaces such
151
+ * as the Linktree official channel, where subscription status is hidden.
152
+ */
153
+ showFollowerStatus?: boolean
154
+
155
+ /**
156
+ * Lock the message composer (read-only, send disabled). Defaults to false.
157
+ * Combined with the channel's `frozen` flag — either one locks the input.
158
+ * Used by the Linktree official channel, where the composer stays locked
159
+ * until the linker messages Linktree from its public profile.
160
+ */
161
+ composerDisabled?: boolean
162
+
163
+ /**
164
+ * Explanatory text rendered below the composer while it is locked.
165
+ * Only shown when `composerDisabled` is true (or the channel is frozen).
166
+ */
167
+ composerDisabledReason?: string
168
+
134
169
  /**
135
170
  * When true and DM agent is active on the channel (not paused),
136
171
  * messages will be sent with skip_push and silent flags to suppress