@stream-io/feeds-client 0.2.7 → 0.2.9

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 (342) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/index.js +408 -0
  3. package/dist/cjs/index.js.map +1 -0
  4. package/dist/cjs/react-bindings.js +1368 -0
  5. package/dist/cjs/react-bindings.js.map +1 -0
  6. package/dist/es/index.mjs +398 -0
  7. package/dist/es/index.mjs.map +1 -0
  8. package/dist/es/react-bindings.mjs +1368 -0
  9. package/dist/es/react-bindings.mjs.map +1 -0
  10. package/dist/index-B0Mm2xFU.js +6492 -0
  11. package/dist/index-B0Mm2xFU.js.map +1 -0
  12. package/dist/index-rSXIDTdA.mjs +6476 -0
  13. package/dist/index-rSXIDTdA.mjs.map +1 -0
  14. package/dist/tsconfig.tsbuildinfo +1 -1
  15. package/dist/types/bindings/index.d.ts +2 -0
  16. package/dist/types/bindings/index.d.ts.map +1 -0
  17. package/dist/{@react-bindings → types/bindings/react}/contexts/StreamFeedContext.d.ts +2 -1
  18. package/dist/types/bindings/react/contexts/StreamFeedContext.d.ts.map +1 -0
  19. package/dist/{@react-bindings → types/bindings/react}/contexts/StreamFeedsContext.d.ts +2 -1
  20. package/dist/types/bindings/react/contexts/StreamFeedsContext.d.ts.map +1 -0
  21. package/dist/{@react-bindings → types/bindings/react}/contexts/StreamSearchContext.d.ts +2 -1
  22. package/dist/types/bindings/react/contexts/StreamSearchContext.d.ts.map +1 -0
  23. package/dist/{@react-bindings → types/bindings/react}/contexts/StreamSearchResultsContext.d.ts +2 -1
  24. package/dist/types/bindings/react/contexts/StreamSearchResultsContext.d.ts.map +1 -0
  25. package/dist/{@react-bindings → types/bindings/react}/hooks/client-state-hooks/index.d.ts +1 -0
  26. package/dist/types/bindings/react/hooks/client-state-hooks/index.d.ts.map +1 -0
  27. package/dist/types/bindings/react/hooks/client-state-hooks/useClientConnectedUser.d.ts +5 -0
  28. package/dist/types/bindings/react/hooks/client-state-hooks/useClientConnectedUser.d.ts.map +1 -0
  29. package/dist/{@react-bindings → types/bindings/react}/hooks/client-state-hooks/useWsConnectionState.d.ts +1 -0
  30. package/dist/types/bindings/react/hooks/client-state-hooks/useWsConnectionState.d.ts.map +1 -0
  31. package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/index.d.ts +1 -0
  32. package/dist/types/bindings/react/hooks/feed-state-hooks/index.d.ts.map +1 -0
  33. package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useAggregatedActivities.d.ts +3 -2
  34. package/dist/types/bindings/react/hooks/feed-state-hooks/useAggregatedActivities.d.ts.map +1 -0
  35. package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useComments.d.ts +2 -3
  36. package/dist/types/bindings/react/hooks/feed-state-hooks/useComments.d.ts.map +1 -0
  37. package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useFeedActivities.d.ts +3 -2
  38. package/dist/types/bindings/react/hooks/feed-state-hooks/useFeedActivities.d.ts.map +1 -0
  39. package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useFeedMetadata.d.ts +3 -2
  40. package/dist/types/bindings/react/hooks/feed-state-hooks/useFeedMetadata.d.ts.map +1 -0
  41. package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useFollowers.d.ts +5 -4
  42. package/dist/types/bindings/react/hooks/feed-state-hooks/useFollowers.d.ts.map +1 -0
  43. package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useFollowing.d.ts +5 -4
  44. package/dist/types/bindings/react/hooks/feed-state-hooks/useFollowing.d.ts.map +1 -0
  45. package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useIsAggregatedActivityRead.d.ts +2 -2
  46. package/dist/types/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivityRead.d.ts.map +1 -0
  47. package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useIsAggregatedActivitySeen.d.ts +2 -2
  48. package/dist/types/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivitySeen.d.ts.map +1 -0
  49. package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useNotificationStatus.d.ts +2 -1
  50. package/dist/types/bindings/react/hooks/feed-state-hooks/useNotificationStatus.d.ts.map +1 -0
  51. package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useOwnCapabilities.d.ts +2 -1
  52. package/dist/types/bindings/react/hooks/feed-state-hooks/useOwnCapabilities.d.ts.map +1 -0
  53. package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useOwnFollows.d.ts +3 -2
  54. package/dist/types/bindings/react/hooks/feed-state-hooks/useOwnFollows.d.ts.map +1 -0
  55. package/dist/{@react-bindings → types/bindings/react}/hooks/internal/index.d.ts +1 -0
  56. package/dist/types/bindings/react/hooks/internal/index.d.ts.map +1 -0
  57. package/dist/{@react-bindings → types/bindings/react}/hooks/internal/useStableCallback.d.ts +1 -0
  58. package/dist/types/bindings/react/hooks/internal/useStableCallback.d.ts.map +1 -0
  59. package/dist/{@react-bindings → types/bindings/react}/hooks/search-state-hooks/index.d.ts +1 -0
  60. package/dist/types/bindings/react/hooks/search-state-hooks/index.d.ts.map +1 -0
  61. package/dist/{@react-bindings → types/bindings/react}/hooks/search-state-hooks/useSearchQuery.d.ts +2 -1
  62. package/dist/types/bindings/react/hooks/search-state-hooks/useSearchQuery.d.ts.map +1 -0
  63. package/dist/{@react-bindings → types/bindings/react}/hooks/search-state-hooks/useSearchResult.d.ts +2 -1
  64. package/dist/types/bindings/react/hooks/search-state-hooks/useSearchResult.d.ts.map +1 -0
  65. package/dist/types/bindings/react/hooks/search-state-hooks/useSearchSources.d.ts +5 -0
  66. package/dist/types/bindings/react/hooks/search-state-hooks/useSearchSources.d.ts.map +1 -0
  67. package/dist/{@react-bindings → types/bindings/react}/hooks/useCreateFeedsClient.d.ts +2 -4
  68. package/dist/types/bindings/react/hooks/useCreateFeedsClient.d.ts.map +1 -0
  69. package/dist/{@react-bindings → types/bindings/react}/hooks/util/index.d.ts +1 -0
  70. package/dist/types/bindings/react/hooks/util/index.d.ts.map +1 -0
  71. package/dist/{@react-bindings → types/bindings/react}/hooks/util/useBookmarkActions.d.ts +2 -1
  72. package/dist/types/bindings/react/hooks/util/useBookmarkActions.d.ts.map +1 -0
  73. package/dist/{@react-bindings → types/bindings/react}/hooks/util/useReactionActions.d.ts +2 -1
  74. package/dist/types/bindings/react/hooks/util/useReactionActions.d.ts.map +1 -0
  75. package/dist/{@react-bindings → types/bindings/react}/index.d.ts +2 -1
  76. package/dist/types/bindings/react/index.d.ts.map +1 -0
  77. package/dist/{@react-bindings → types/bindings/react}/wrappers/StreamFeed.d.ts +2 -1
  78. package/dist/types/bindings/react/wrappers/StreamFeed.d.ts.map +1 -0
  79. package/dist/{@react-bindings → types/bindings/react}/wrappers/StreamFeeds.d.ts +1 -0
  80. package/dist/types/bindings/react/wrappers/StreamFeeds.d.ts.map +1 -0
  81. package/dist/{@react-bindings → types/bindings/react}/wrappers/StreamSearch.d.ts +2 -1
  82. package/dist/types/bindings/react/wrappers/StreamSearch.d.ts.map +1 -0
  83. package/dist/{@react-bindings → types/bindings/react}/wrappers/StreamSearchResults.d.ts +2 -1
  84. package/dist/types/bindings/react/wrappers/StreamSearchResults.d.ts.map +1 -0
  85. package/dist/{src → types}/common/ApiClient.d.ts +18 -0
  86. package/dist/types/common/ApiClient.d.ts.map +1 -0
  87. package/dist/{src → types}/common/ConnectionIdManager.d.ts +1 -0
  88. package/dist/types/common/ConnectionIdManager.d.ts.map +1 -0
  89. package/dist/{src → types}/common/EventDispatcher.d.ts +1 -0
  90. package/dist/types/common/EventDispatcher.d.ts.map +1 -0
  91. package/dist/{src → types}/common/Poll.d.ts +2 -1
  92. package/dist/types/common/Poll.d.ts.map +1 -0
  93. package/dist/{src → types}/common/TokenManager.d.ts +2 -0
  94. package/dist/types/common/TokenManager.d.ts.map +1 -0
  95. package/dist/{src → types}/common/gen-imports.d.ts +1 -0
  96. package/dist/types/common/gen-imports.d.ts.map +1 -0
  97. package/dist/{src → types}/common/rate-limit.d.ts +1 -0
  98. package/dist/types/common/rate-limit.d.ts.map +1 -0
  99. package/dist/{src → types}/common/real-time/StableWSConnection.d.ts +4 -4
  100. package/dist/types/common/real-time/StableWSConnection.d.ts.map +1 -0
  101. package/dist/{src → types}/common/real-time/event-models.d.ts +1 -0
  102. package/dist/types/common/real-time/event-models.d.ts.map +1 -0
  103. package/dist/{src → types}/common/search/ActivitySearchSource.d.ts +1 -0
  104. package/dist/types/common/search/ActivitySearchSource.d.ts.map +1 -0
  105. package/dist/{src → types}/common/search/BaseSearchSource.d.ts +2 -1
  106. package/dist/types/common/search/BaseSearchSource.d.ts.map +1 -0
  107. package/dist/{src → types}/common/search/FeedSearchSource.d.ts +1 -0
  108. package/dist/types/common/search/FeedSearchSource.d.ts.map +1 -0
  109. package/dist/{src → types}/common/search/SearchController.d.ts +2 -1
  110. package/dist/types/common/search/SearchController.d.ts.map +1 -0
  111. package/dist/{src → types}/common/search/UserSearchSource.d.ts +2 -1
  112. package/dist/types/common/search/UserSearchSource.d.ts.map +1 -0
  113. package/dist/{src → types}/common/search/index.d.ts +1 -0
  114. package/dist/types/common/search/index.d.ts.map +1 -0
  115. package/dist/{src → types}/common/search/types.d.ts +1 -0
  116. package/dist/types/common/search/types.d.ts.map +1 -0
  117. package/dist/{src → types}/common/types.d.ts +3 -1
  118. package/dist/types/common/types.d.ts.map +1 -0
  119. package/dist/{src → types}/common/utils.d.ts +1 -0
  120. package/dist/types/common/utils.d.ts.map +1 -0
  121. package/dist/{src → types}/feed/event-handlers/activity/handle-activity-added.d.ts +3 -2
  122. package/dist/types/feed/event-handlers/activity/handle-activity-added.d.ts.map +1 -0
  123. package/dist/{src → types}/feed/event-handlers/activity/handle-activity-deleted.d.ts +3 -2
  124. package/dist/types/feed/event-handlers/activity/handle-activity-deleted.d.ts.map +1 -0
  125. package/dist/{src → types}/feed/event-handlers/activity/handle-activity-marked.d.ts +1 -0
  126. package/dist/types/feed/event-handlers/activity/handle-activity-marked.d.ts.map +1 -0
  127. package/dist/{src → types}/feed/event-handlers/activity/handle-activity-pinned.d.ts +1 -0
  128. package/dist/types/feed/event-handlers/activity/handle-activity-pinned.d.ts.map +1 -0
  129. package/dist/types/feed/event-handlers/activity/handle-activity-reaction-added.d.ts +15 -0
  130. package/dist/types/feed/event-handlers/activity/handle-activity-reaction-added.d.ts.map +1 -0
  131. package/dist/types/feed/event-handlers/activity/handle-activity-reaction-deleted.d.ts +15 -0
  132. package/dist/types/feed/event-handlers/activity/handle-activity-reaction-deleted.d.ts.map +1 -0
  133. package/dist/{src → types}/feed/event-handlers/activity/handle-activity-removed-from-feed.d.ts +1 -0
  134. package/dist/types/feed/event-handlers/activity/handle-activity-removed-from-feed.d.ts.map +1 -0
  135. package/dist/{src → types}/feed/event-handlers/activity/handle-activity-unpinned.d.ts +1 -0
  136. package/dist/types/feed/event-handlers/activity/handle-activity-unpinned.d.ts.map +1 -0
  137. package/dist/{src → types}/feed/event-handlers/activity/handle-activity-updated.d.ts +1 -0
  138. package/dist/types/feed/event-handlers/activity/handle-activity-updated.d.ts.map +1 -0
  139. package/dist/{src → types}/feed/event-handlers/activity/index.d.ts +1 -0
  140. package/dist/types/feed/event-handlers/activity/index.d.ts.map +1 -0
  141. package/dist/{src → types}/feed/event-handlers/bookmark/handle-bookmark-added.d.ts +1 -0
  142. package/dist/types/feed/event-handlers/bookmark/handle-bookmark-added.d.ts.map +1 -0
  143. package/dist/{src → types}/feed/event-handlers/bookmark/handle-bookmark-deleted.d.ts +1 -0
  144. package/dist/types/feed/event-handlers/bookmark/handle-bookmark-deleted.d.ts.map +1 -0
  145. package/dist/{src → types}/feed/event-handlers/bookmark/handle-bookmark-updated.d.ts +1 -0
  146. package/dist/types/feed/event-handlers/bookmark/handle-bookmark-updated.d.ts.map +1 -0
  147. package/dist/{src → types}/feed/event-handlers/bookmark/index.d.ts +1 -0
  148. package/dist/types/feed/event-handlers/bookmark/index.d.ts.map +1 -0
  149. package/dist/{src → types}/feed/event-handlers/comment/handle-comment-added.d.ts +1 -0
  150. package/dist/types/feed/event-handlers/comment/handle-comment-added.d.ts.map +1 -0
  151. package/dist/{src → types}/feed/event-handlers/comment/handle-comment-deleted.d.ts +1 -0
  152. package/dist/types/feed/event-handlers/comment/handle-comment-deleted.d.ts.map +1 -0
  153. package/dist/{src → types}/feed/event-handlers/comment/handle-comment-reaction.d.ts +1 -0
  154. package/dist/types/feed/event-handlers/comment/handle-comment-reaction.d.ts.map +1 -0
  155. package/dist/{src → types}/feed/event-handlers/comment/handle-comment-updated.d.ts +1 -0
  156. package/dist/types/feed/event-handlers/comment/handle-comment-updated.d.ts.map +1 -0
  157. package/dist/{src → types}/feed/event-handlers/comment/index.d.ts +1 -0
  158. package/dist/types/feed/event-handlers/comment/index.d.ts.map +1 -0
  159. package/dist/{src → types}/feed/event-handlers/feed/handle-feed-updated.d.ts +1 -0
  160. package/dist/types/feed/event-handlers/feed/handle-feed-updated.d.ts.map +1 -0
  161. package/dist/{src → types}/feed/event-handlers/feed/index.d.ts +1 -0
  162. package/dist/types/feed/event-handlers/feed/index.d.ts.map +1 -0
  163. package/dist/{src → types}/feed/event-handlers/feed-member/handle-feed-member-added.d.ts +1 -0
  164. package/dist/types/feed/event-handlers/feed-member/handle-feed-member-added.d.ts.map +1 -0
  165. package/dist/{src → types}/feed/event-handlers/feed-member/handle-feed-member-removed.d.ts +1 -0
  166. package/dist/types/feed/event-handlers/feed-member/handle-feed-member-removed.d.ts.map +1 -0
  167. package/dist/{src → types}/feed/event-handlers/feed-member/handle-feed-member-updated.d.ts +1 -0
  168. package/dist/types/feed/event-handlers/feed-member/handle-feed-member-updated.d.ts.map +1 -0
  169. package/dist/{src → types}/feed/event-handlers/feed-member/index.d.ts +1 -0
  170. package/dist/types/feed/event-handlers/feed-member/index.d.ts.map +1 -0
  171. package/dist/{src → types}/feed/event-handlers/follow/handle-follow-created.d.ts +3 -2
  172. package/dist/types/feed/event-handlers/follow/handle-follow-created.d.ts.map +1 -0
  173. package/dist/{src → types}/feed/event-handlers/follow/handle-follow-deleted.d.ts +2 -1
  174. package/dist/types/feed/event-handlers/follow/handle-follow-deleted.d.ts.map +1 -0
  175. package/dist/{src → types}/feed/event-handlers/follow/handle-follow-updated.d.ts +3 -2
  176. package/dist/types/feed/event-handlers/follow/handle-follow-updated.d.ts.map +1 -0
  177. package/dist/{src → types}/feed/event-handlers/follow/index.d.ts +1 -0
  178. package/dist/types/feed/event-handlers/follow/index.d.ts.map +1 -0
  179. package/dist/{src → types}/feed/event-handlers/index.d.ts +1 -0
  180. package/dist/types/feed/event-handlers/index.d.ts.map +1 -0
  181. package/dist/{src → types}/feed/event-handlers/notification-feed/handle-notification-feed-updated.d.ts +1 -0
  182. package/dist/types/feed/event-handlers/notification-feed/handle-notification-feed-updated.d.ts.map +1 -0
  183. package/dist/{src → types}/feed/event-handlers/notification-feed/index.d.ts +1 -0
  184. package/dist/types/feed/event-handlers/notification-feed/index.d.ts.map +1 -0
  185. package/dist/{src → types}/feed/event-handlers/watch/handle-watch-started.d.ts +1 -0
  186. package/dist/types/feed/event-handlers/watch/handle-watch-started.d.ts.map +1 -0
  187. package/dist/{src → types}/feed/event-handlers/watch/handle-watch-stopped.d.ts +1 -0
  188. package/dist/types/feed/event-handlers/watch/handle-watch-stopped.d.ts.map +1 -0
  189. package/dist/{src → types}/feed/event-handlers/watch/index.d.ts +1 -0
  190. package/dist/types/feed/event-handlers/watch/index.d.ts.map +1 -0
  191. package/dist/{src → types}/feed/feed.d.ts +9 -6
  192. package/dist/types/feed/feed.d.ts.map +1 -0
  193. package/dist/{src → types}/feed/index.d.ts +1 -0
  194. package/dist/types/feed/index.d.ts.map +1 -0
  195. package/dist/{src → types}/feeds-client/event-handlers/index.d.ts +1 -0
  196. package/dist/types/feeds-client/event-handlers/index.d.ts.map +1 -0
  197. package/dist/{src → types}/feeds-client/event-handlers/user/handle-user-updated.d.ts +1 -0
  198. package/dist/types/feeds-client/event-handlers/user/handle-user-updated.d.ts.map +1 -0
  199. package/dist/{src → types}/feeds-client/feeds-client.d.ts +18 -10
  200. package/dist/types/feeds-client/feeds-client.d.ts.map +1 -0
  201. package/dist/{src → types}/feeds-client/index.d.ts +1 -0
  202. package/dist/types/feeds-client/index.d.ts.map +1 -0
  203. package/dist/{src → types}/gen/feeds/FeedApi.d.ts +1 -0
  204. package/dist/types/gen/feeds/FeedApi.d.ts.map +1 -0
  205. package/dist/{src → types}/gen/feeds/FeedsApi.d.ts +1 -0
  206. package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -0
  207. package/dist/{src → types}/gen/model-decoders/decoders.d.ts +1 -0
  208. package/dist/types/gen/model-decoders/decoders.d.ts.map +1 -0
  209. package/dist/{src → types}/gen/model-decoders/event-decoder-mapping.d.ts +1 -0
  210. package/dist/types/gen/model-decoders/event-decoder-mapping.d.ts.map +1 -0
  211. package/dist/{src → types}/gen/models/index.d.ts +43 -2
  212. package/dist/types/gen/models/index.d.ts.map +1 -0
  213. package/dist/{src → types}/gen/moderation/ModerationApi.d.ts +1 -0
  214. package/dist/types/gen/moderation/ModerationApi.d.ts.map +1 -0
  215. package/dist/{src → types}/gen-imports.d.ts +1 -0
  216. package/dist/types/gen-imports.d.ts.map +1 -0
  217. package/dist/types/index.d.ts +10 -0
  218. package/dist/types/index.d.ts.map +1 -0
  219. package/dist/{src → types}/moderation-client.d.ts +1 -0
  220. package/dist/types/moderation-client.d.ts.map +1 -0
  221. package/dist/{src → types}/types-internal.d.ts +4 -0
  222. package/dist/types/types-internal.d.ts.map +1 -0
  223. package/dist/{src → types}/types.d.ts +1 -0
  224. package/dist/types/types.d.ts.map +1 -0
  225. package/dist/{src → types}/utils/check-has-another-page.d.ts +1 -0
  226. package/dist/types/utils/check-has-another-page.d.ts.map +1 -0
  227. package/dist/{src → types}/utils/constants.d.ts +1 -0
  228. package/dist/types/utils/constants.d.ts.map +1 -0
  229. package/dist/{src → types}/utils/index.d.ts +2 -0
  230. package/dist/types/utils/index.d.ts.map +1 -0
  231. package/dist/types/utils/is-react-native.d.ts +5 -0
  232. package/dist/types/utils/is-react-native.d.ts.map +1 -0
  233. package/dist/types/utils/logger.d.ts +61 -0
  234. package/dist/types/utils/logger.d.ts.map +1 -0
  235. package/dist/types/utils/state-update-queue.d.ts +83 -0
  236. package/dist/types/utils/state-update-queue.d.ts.map +1 -0
  237. package/dist/types/utils/type-assertions.d.ts +12 -0
  238. package/dist/types/utils/type-assertions.d.ts.map +1 -0
  239. package/dist/{src → types}/utils/unique-array-merge.d.ts +1 -0
  240. package/dist/types/utils/unique-array-merge.d.ts.map +1 -0
  241. package/dist/{src → types}/utils/update-entity-in-array.d.ts +1 -0
  242. package/dist/types/utils/update-entity-in-array.d.ts.map +1 -0
  243. package/package.json +21 -33
  244. package/src/bindings/index.ts +1 -0
  245. package/src/bindings/react/contexts/StreamFeedContext.tsx +18 -0
  246. package/src/bindings/react/contexts/StreamFeedsContext.tsx +21 -0
  247. package/src/bindings/react/contexts/StreamSearchContext.tsx +18 -0
  248. package/src/bindings/react/contexts/StreamSearchResultsContext.tsx +20 -0
  249. package/src/bindings/react/hooks/client-state-hooks/useClientConnectedUser.ts +18 -0
  250. package/src/bindings/react/hooks/client-state-hooks/useWsConnectionState.ts +18 -0
  251. package/src/bindings/react/hooks/feed-state-hooks/useAggregatedActivities.ts +25 -0
  252. package/src/bindings/react/hooks/feed-state-hooks/useComments.ts +91 -0
  253. package/src/bindings/react/hooks/feed-state-hooks/useFeedActivities.ts +36 -0
  254. package/src/bindings/react/hooks/feed-state-hooks/useFeedMetadata.ts +28 -0
  255. package/src/bindings/react/hooks/feed-state-hooks/useFollowers.ts +54 -0
  256. package/src/bindings/react/hooks/feed-state-hooks/useFollowing.ts +54 -0
  257. package/src/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivityRead.ts +29 -0
  258. package/src/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivitySeen.ts +28 -0
  259. package/src/bindings/react/hooks/feed-state-hooks/useNotificationStatus.ts +28 -0
  260. package/src/bindings/react/hooks/feed-state-hooks/useOwnCapabilities.ts +70 -0
  261. package/src/bindings/react/hooks/feed-state-hooks/useOwnFollows.ts +18 -0
  262. package/src/bindings/react/hooks/internal/useStableCallback.ts +37 -0
  263. package/src/bindings/react/hooks/search-state-hooks/useSearchQuery.ts +14 -0
  264. package/src/bindings/react/hooks/search-state-hooks/useSearchResult.ts +36 -0
  265. package/src/bindings/react/hooks/search-state-hooks/useSearchSources.ts +17 -0
  266. package/src/bindings/react/hooks/useCreateFeedsClient.ts +73 -0
  267. package/src/bindings/react/hooks/util/useBookmarkActions.ts +40 -0
  268. package/src/bindings/react/hooks/util/useReactionActions.ts +56 -0
  269. package/{@react-bindings → src/bindings/react}/index.ts +1 -1
  270. package/src/bindings/react/wrappers/StreamFeed.tsx +23 -0
  271. package/src/bindings/react/wrappers/StreamFeeds.tsx +13 -0
  272. package/src/bindings/react/wrappers/StreamSearch.tsx +23 -0
  273. package/src/bindings/react/wrappers/StreamSearchResults.tsx +23 -0
  274. package/src/common/ApiClient.ts +86 -33
  275. package/src/common/EventDispatcher.ts +3 -6
  276. package/src/common/Poll.ts +1 -1
  277. package/src/common/TokenManager.ts +4 -0
  278. package/src/common/real-time/StableWSConnection.ts +64 -60
  279. package/src/common/search/BaseSearchSource.ts +11 -4
  280. package/src/common/search/SearchController.ts +4 -2
  281. package/src/common/types.ts +3 -2
  282. package/src/feed/event-handlers/activity/activity-utils.test.ts +40 -9
  283. package/src/feed/event-handlers/activity/handle-activity-added.test.ts +1 -1
  284. package/src/feed/event-handlers/activity/handle-activity-added.ts +7 -7
  285. package/src/feed/event-handlers/activity/handle-activity-deleted.ts +15 -12
  286. package/src/feed/event-handlers/activity/handle-activity-reaction-added.test.ts +101 -1
  287. package/src/feed/event-handlers/activity/handle-activity-reaction-added.ts +55 -29
  288. package/src/feed/event-handlers/activity/handle-activity-reaction-deleted.test.ts +118 -1
  289. package/src/feed/event-handlers/activity/handle-activity-reaction-deleted.ts +59 -32
  290. package/src/feed/event-handlers/activity/handle-activity-removed-from-feed.ts +1 -1
  291. package/src/feed/event-handlers/follow/follow-state-update-queue.test.ts +219 -0
  292. package/src/feed/event-handlers/follow/handle-follow-created.ts +7 -2
  293. package/src/feed/event-handlers/follow/handle-follow-deleted.ts +5 -0
  294. package/src/feed/event-handlers/follow/handle-follow-updated.test.ts +0 -43
  295. package/src/feed/event-handlers/follow/handle-follow-updated.ts +7 -2
  296. package/src/feed/feed.test.ts +90 -0
  297. package/src/feed/feed.ts +25 -4
  298. package/src/feeds-client/feeds-client.ts +35 -4
  299. package/src/gen/feeds/FeedsApi.ts +2 -0
  300. package/src/gen/model-decoders/decoders.ts +22 -0
  301. package/src/gen/models/index.ts +71 -3
  302. package/src/index.ts +9 -0
  303. package/src/test-utils/response-generators.ts +12 -3
  304. package/src/types-internal.ts +4 -0
  305. package/src/utils/index.ts +1 -0
  306. package/src/utils/is-react-native.ts +7 -0
  307. package/src/utils/logger.ts +18 -0
  308. package/src/utils/state-update-queue.test.ts +85 -9
  309. package/src/utils/state-update-queue.ts +104 -11
  310. package/src/utils/type-assertions.ts +22 -1
  311. package/dist/@react-bindings/hooks/client-state-hooks/useClientConnectedUser.d.ts +0 -4
  312. package/dist/@react-bindings/hooks/search-state-hooks/useSearchSources.d.ts +0 -4
  313. package/dist/@react-bindings/hooks/useStateStore.d.ts +0 -3
  314. package/dist/index-react-bindings.browser.cjs +0 -6607
  315. package/dist/index-react-bindings.browser.cjs.map +0 -1
  316. package/dist/index-react-bindings.browser.js +0 -6574
  317. package/dist/index-react-bindings.browser.js.map +0 -1
  318. package/dist/index-react-bindings.node.cjs +0 -6607
  319. package/dist/index-react-bindings.node.cjs.map +0 -1
  320. package/dist/index-react-bindings.node.js +0 -6574
  321. package/dist/index-react-bindings.node.js.map +0 -1
  322. package/dist/index.browser.cjs +0 -6578
  323. package/dist/index.browser.cjs.map +0 -1
  324. package/dist/index.browser.js +0 -6551
  325. package/dist/index.browser.js.map +0 -1
  326. package/dist/index.d.ts +0 -9
  327. package/dist/index.node.cjs +0 -6578
  328. package/dist/index.node.cjs.map +0 -1
  329. package/dist/index.node.js +0 -6551
  330. package/dist/index.node.js.map +0 -1
  331. package/dist/src/common/StateStore.d.ts +0 -125
  332. package/dist/src/feed/event-handlers/activity/handle-activity-reaction-added.d.ts +0 -12
  333. package/dist/src/feed/event-handlers/activity/handle-activity-reaction-deleted.d.ts +0 -12
  334. package/dist/src/utils/state-update-queue.d.ts +0 -6
  335. package/dist/src/utils/type-assertions.d.ts +0 -7
  336. package/index.ts +0 -9
  337. package/src/common/StateStore.ts +0 -332
  338. /package/{@react-bindings → src/bindings/react}/hooks/client-state-hooks/index.ts +0 -0
  339. /package/{@react-bindings → src/bindings/react}/hooks/feed-state-hooks/index.ts +0 -0
  340. /package/{@react-bindings → src/bindings/react}/hooks/internal/index.ts +0 -0
  341. /package/{@react-bindings → src/bindings/react}/hooks/search-state-hooks/index.ts +0 -0
  342. /package/{@react-bindings → src/bindings/react}/hooks/util/index.ts +0 -0
@@ -0,0 +1,2 @@
1
+ export * from './react';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bindings/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Feed } from '../../src/feed';
1
+ import type { Feed } from '@self';
2
2
  export declare const StreamFeedContext: import("react").Context<Feed | undefined>;
3
3
  /**
4
4
  * The props for the StreamFeedProvider component.
@@ -10,3 +10,4 @@ export type StreamFeedContextProps = {
10
10
  * Hook to access the nearest Feed instance.
11
11
  */
12
12
  export declare const useFeedContext: () => Feed | undefined;
13
+ //# sourceMappingURL=StreamFeedContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamFeedContext.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/contexts/StreamFeedContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAElC,eAAO,MAAM,iBAAiB,2CAA6C,CAAC;AAE5E;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,wBAE1B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { FeedsClient } from '../../src/feeds-client';
1
+ import type { FeedsClient } from '@self';
2
2
  export declare const StreamFeedsContext: import("react").Context<FeedsClient | undefined>;
3
3
  /**
4
4
  * The props for the StreamFeedsProvider component.
@@ -13,3 +13,4 @@ export type StreamFeedsContextProps = {
13
13
  * Hook to access the nearest FeedsClient instance.
14
14
  */
15
15
  export declare const useFeedsClient: () => FeedsClient | undefined;
16
+ //# sourceMappingURL=StreamFeedsContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamFeedsContext.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/contexts/StreamFeedsContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,eAAO,MAAM,kBAAkB,kDAAoD,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,+BAE1B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { SearchController } from '../../src/common/search';
1
+ import type { SearchController } from '@self';
2
2
  export declare const StreamSearchContext: import("react").Context<SearchController | undefined>;
3
3
  /**
4
4
  * The props for the StreamSearchProvider component.
@@ -10,3 +10,4 @@ export type StreamSearchContextProps = {
10
10
  * Hook to access the nearest SearchController instance.
11
11
  */
12
12
  export declare const useSearchContext: () => SearchController | undefined;
13
+ //# sourceMappingURL=StreamSearchContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamSearchContext.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/contexts/StreamSearchContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE9C,eAAO,MAAM,mBAAmB,uDAAyD,CAAC;AAE1F;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,oCAE5B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { SearchSource } from '../../src/common/search';
1
+ import type { SearchSource } from '@self';
2
2
  export declare const StreamSearchResultsContext: import("react").Context<SearchSource<any> | undefined>;
3
3
  /**
4
4
  * The props for the StreamSearchResultsProvider component.
@@ -10,3 +10,4 @@ export type StreamSearchResultsContextProps = {
10
10
  * Hook to access the nearest SearchSource instance.
11
11
  */
12
12
  export declare const useSearchResultsContext: () => SearchSource<any> | undefined;
13
+ //# sourceMappingURL=StreamSearchResultsContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamSearchResultsContext.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/contexts/StreamSearchResultsContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,eAAO,MAAM,0BAA0B,wDAE3B,CAAC;AAEb;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,qCAEnC,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './useClientConnectedUser';
2
2
  export * from './useWsConnectionState';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/client-state-hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * A React hook that returns the currently connected user on a `FeedsClient` instance and null otherwise.
3
+ */
4
+ export declare const useClientConnectedUser: () => import("@self").OwnUser | undefined;
5
+ //# sourceMappingURL=useClientConnectedUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useClientConnectedUser.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/client-state-hooks/useClientConnectedUser.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,sBAAsB,2CAMlC,CAAC"}
@@ -4,3 +4,4 @@
4
4
  export declare const useWsConnectionState: () => {
5
5
  is_healthy: boolean | undefined;
6
6
  };
7
+ //# sourceMappingURL=useWsConnectionState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWsConnectionState.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/client-state-hooks/useWsConnectionState.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,oBAAoB;;CAMhC,CAAC"}
@@ -9,3 +9,4 @@ export * from './useNotificationStatus';
9
9
  export * from './useAggregatedActivities';
10
10
  export * from './useIsAggregatedActivityRead';
11
11
  export * from './useIsAggregatedActivitySeen';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Feed, FeedState } from '../../../src/feed';
1
+ import type { Feed, FeedState } from '@self';
2
2
  declare const selector: ({ aggregated_activities }: FeedState) => {
3
- aggregated_activities: import("../../..").AggregatedActivityResponse[] | undefined;
3
+ aggregated_activities: import("@self").AggregatedActivityResponse[] | undefined;
4
4
  };
5
5
  type UseAggregatedActivitiesReturnType = ReturnType<typeof selector>;
6
6
  /**
@@ -9,3 +9,4 @@ type UseAggregatedActivitiesReturnType = ReturnType<typeof selector>;
9
9
  export declare function useAggregatedActivities(feedFromProps: Feed): UseAggregatedActivitiesReturnType;
10
10
  export declare function useAggregatedActivities(feedFromProps?: Feed): UseAggregatedActivitiesReturnType | undefined;
11
11
  export {};
12
+ //# sourceMappingURL=useAggregatedActivities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAggregatedActivities.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useAggregatedActivities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI7C,QAAA,MAAM,QAAQ,GAAI,2BAA2B,SAAS;;CAEpD,CAAC;AAEH,KAAK,iCAAiC,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAErE;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,aAAa,EAAE,IAAI,GAClB,iCAAiC,CAAC;AACrC,wBAAgB,uBAAuB,CACrC,aAAa,CAAC,EAAE,IAAI,GACnB,iCAAiC,GAAG,SAAS,CAAC"}
@@ -1,6 +1,4 @@
1
- import type { ActivityResponse, CommentResponse } from '../../../src/gen/models';
2
- import type { CommentParent } from '../../../src/types';
3
- import { Feed, FeedState } from '../../../src/feed';
1
+ import { type ActivityResponse, type CommentResponse, type CommentParent, type Feed, type FeedState } from '@self';
4
2
  type UseCommentsReturnType<T extends ActivityResponse | CommentResponse> = {
5
3
  comments: NonNullable<FeedState['comments_by_entity_id'][T['id']]>['comments'];
6
4
  comments_pagination: NonNullable<FeedState['comments_by_entity_id'][T['id']]>['pagination'];
@@ -17,3 +15,4 @@ export declare function useComments<T extends CommentParent>(_: {
17
15
  parent: T;
18
16
  }): UseCommentsReturnType<T> | undefined;
19
17
  export {};
18
+ //# sourceMappingURL=useComments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useComments.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useComments.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,IAAI,EACT,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAIf,KAAK,qBAAqB,CAAC,CAAC,SAAS,gBAAgB,GAAG,eAAe,IAAI;IACzE,QAAQ,EAAE,WAAW,CACnB,SAAS,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAC5C,CAAC,UAAU,CAAC,CAAC;IACd,mBAAmB,EAAE,WAAW,CAC9B,SAAS,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAC5C,CAAC,YAAY,CAAC,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,YAAY,EAAE,CACZ,OAAO,CAAC,EAAE,CAAC,SAAS,eAAe,GAC/B,UAAU,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC,GACjD,UAAU,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC,CAAC,CAAC,KACpD,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,CAAC;AAEF,wBAAgB,WAAW,CAAC,CAAC,SAAS,aAAa,EAAE,CAAC,EAAE;IACtD,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,CAAC,CAAC;CACX,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAC7B,wBAAgB,WAAW,CAAC,CAAC,SAAS,aAAa,EAAE,CAAC,EAAE;IACtD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,EAAE,CAAC,CAAC;CACX,GAAG,qBAAqB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Feed } from '../../../src/feed';
1
+ import type { Feed } from '@self';
2
2
  /**
3
3
  * A React hook that returns a reactive object containing the current activities,
4
4
  * loading state and whether there is a next page to paginate to or not.
@@ -7,5 +7,6 @@ export declare const useFeedActivities: (feedFromProps?: Feed) => {
7
7
  loadNextPage: import("../internal").StableCallback<[], Promise<void>>;
8
8
  is_loading?: boolean | undefined;
9
9
  has_next_page?: boolean | undefined;
10
- activities?: import("../../..").ActivityResponse[] | undefined;
10
+ activities?: import("@self").ActivityResponse[] | undefined;
11
11
  };
12
+ //# sourceMappingURL=useFeedActivities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFeedActivities.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useFeedActivities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAa,MAAM,OAAO,CAAC;AAK7C;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,gBAAgB,IAAI;;;;;CAerD,CAAC"}
@@ -1,12 +1,13 @@
1
- import { Feed } from '../../../src/feed';
1
+ import type { Feed } from '@self';
2
2
  /**
3
3
  * A React hook that returns a reactive object containing some often used
4
4
  * metadata for a feed.
5
5
  */
6
6
  export declare const useFeedMetadata: (feedFromProps?: Feed) => {
7
- created_by: import("../../..").UserResponse | undefined;
7
+ created_by: import("@self").UserResponse | undefined;
8
8
  follower_count: number;
9
9
  following_count: number;
10
10
  created_at: Date | undefined;
11
11
  updated_at: Date | undefined;
12
12
  } | undefined;
13
+ //# sourceMappingURL=useFeedMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFeedMetadata.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useFeedMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAa,MAAM,OAAO,CAAC;AAI7C;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,gBAAgB,IAAI;;;;;;aAKnD,CAAC"}
@@ -1,9 +1,9 @@
1
- import { Feed, FeedState } from '../../../src/feed';
1
+ import { type Feed, type FeedState } from '@self';
2
2
  declare const selector: ({ follower_count, followers, followers_pagination, }: FeedState) => {
3
3
  follower_count: number | undefined;
4
- followers: import("../../..").FollowResponse[] | undefined;
5
- followers_pagination: (import("../../..").PagerResponse & import("../../..").LoadingStates & {
6
- sort?: import("../../..").SortParamRequest[];
4
+ followers: import("@self").FollowResponse[] | undefined;
5
+ followers_pagination: (import("@self").PagerResponse & import("@self").LoadingStates & {
6
+ sort?: import("@self").SortParamRequest[];
7
7
  }) | undefined;
8
8
  };
9
9
  type UseFollowersReturnType = ReturnType<typeof selector> & {
@@ -14,3 +14,4 @@ type UseFollowersReturnType = ReturnType<typeof selector> & {
14
14
  export declare function useFollowers(feed: Feed): UseFollowersReturnType;
15
15
  export declare function useFollowers(feed?: Feed): UseFollowersReturnType | undefined;
16
16
  export {};
17
+ //# sourceMappingURL=useFollowers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFollowers.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useFollowers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAIvE,QAAA,MAAM,QAAQ,GAAI,sDAIf,SAAS;;;;;;CAIV,CAAC;AAEH,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,GAAG;IAC1D,oBAAoB,EAAE,OAAO,CAAC;IAC9B,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,CACZ,GAAG,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,KAClD,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,sBAAsB,CAAC;AACjE,wBAAgB,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,sBAAsB,GAAG,SAAS,CAAC"}
@@ -1,9 +1,9 @@
1
- import { Feed, FeedState } from '../../../src/feed';
1
+ import { type Feed, type FeedState } from '@self';
2
2
  declare const selector: ({ following_count, following, following_pagination, }: FeedState) => {
3
3
  following_count: number | undefined;
4
- following: import("../../..").FollowResponse[] | undefined;
5
- following_pagination: (import("../../..").PagerResponse & import("../../..").LoadingStates & {
6
- sort?: import("../../..").SortParamRequest[];
4
+ following: import("@self").FollowResponse[] | undefined;
5
+ following_pagination: (import("@self").PagerResponse & import("@self").LoadingStates & {
6
+ sort?: import("@self").SortParamRequest[];
7
7
  }) | undefined;
8
8
  };
9
9
  type UseFollowingReturnType = ReturnType<typeof selector> & {
@@ -14,3 +14,4 @@ type UseFollowingReturnType = ReturnType<typeof selector> & {
14
14
  export declare function useFollowing(feed: Feed): UseFollowingReturnType;
15
15
  export declare function useFollowing(feed?: Feed): UseFollowingReturnType | undefined;
16
16
  export {};
17
+ //# sourceMappingURL=useFollowing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFollowing.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useFollowing.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAIvE,QAAA,MAAM,QAAQ,GAAI,uDAIf,SAAS;;;;;;CAIV,CAAC;AAEH,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,GAAG;IAC1D,oBAAoB,EAAE,OAAO,CAAC;IAC9B,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,CACZ,GAAG,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,KAClD,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,sBAAsB,CAAC;AACjE,wBAAgB,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,sBAAsB,GAAG,SAAS,CAAC"}
@@ -1,6 +1,6 @@
1
- import { AggregatedActivityResponse } from '../../../src/gen/models';
2
- import { Feed } from '../../../src/feed';
1
+ import type { AggregatedActivityResponse, Feed } from '@self';
3
2
  export declare const useIsAggregatedActivityRead: ({ feed: feedFromProps, aggregatedActivity, }: {
4
3
  feed?: Feed;
5
4
  aggregatedActivity: AggregatedActivityResponse;
6
5
  }) => boolean;
6
+ //# sourceMappingURL=useIsAggregatedActivityRead.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsAggregatedActivityRead.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivityRead.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE9D,eAAO,MAAM,2BAA2B,GAAI,8CAGzC;IACD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,kBAAkB,EAAE,0BAA0B,CAAC;CAChD,YAiBA,CAAC"}
@@ -1,6 +1,6 @@
1
- import { AggregatedActivityResponse } from '../../../src/gen/models';
2
- import { Feed } from '../../../src/feed';
1
+ import type { AggregatedActivityResponse, Feed } from '@self';
3
2
  export declare const useIsAggregatedActivitySeen: ({ feed: feedFromProps, aggregatedActivity, }: {
4
3
  feed?: Feed;
5
4
  aggregatedActivity: AggregatedActivityResponse;
6
5
  }) => boolean;
6
+ //# sourceMappingURL=useIsAggregatedActivitySeen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsAggregatedActivitySeen.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivitySeen.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE9D,eAAO,MAAM,2BAA2B,GAAI,8CAGzC;IACD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,kBAAkB,EAAE,0BAA0B,CAAC;CAChD,YAgBA,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Feed, FeedState } from '../../../src/feed';
1
+ import type { Feed, FeedState } from '@self';
2
2
  declare const selector: ({ notification_status }: FeedState) => {
3
3
  unread: number;
4
4
  unseen: number;
@@ -11,3 +11,4 @@ type UseNotificationStatusReturnType = ReturnType<typeof selector>;
11
11
  export declare function useNotificationStatus(feed: Feed): UseNotificationStatusReturnType;
12
12
  export declare function useNotificationStatus(feed?: Feed): UseNotificationStatusReturnType | undefined;
13
13
  export {};
14
+ //# sourceMappingURL=useNotificationStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNotificationStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useNotificationStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAA8B,MAAM,OAAO,CAAC;AAIzE,QAAA,MAAM,QAAQ,GAAI,yBAAyB,SAAS;;;;;;;CAQX,CAAC;AAE1C,KAAK,+BAA+B,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEnE,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,IAAI,GACT,+BAA+B,CAAC;AACnC,wBAAgB,qBAAqB,CACnC,IAAI,CAAC,EAAE,IAAI,GACV,+BAA+B,GAAG,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Feed } from '../../../src/feed';
1
+ import { type Feed } from '@self';
2
2
  export declare const useOwnCapabilities: (feedFromProps?: Feed) => {
3
3
  can_add_activity: boolean;
4
4
  can_add_activity_reaction: boolean;
@@ -31,3 +31,4 @@ export declare const useOwnCapabilities: (feedFromProps?: Feed) => {
31
31
  can_update_feed_followers: boolean;
32
32
  can_update_feed_members: boolean;
33
33
  };
34
+ //# sourceMappingURL=useOwnCapabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOwnCapabilities.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useOwnCapabilities.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAqC,MAAM,OAAO,CAAC;AAcrE,eAAO,MAAM,kBAAkB,GAAI,gBAAgB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDtD,CAAC"}
@@ -1,8 +1,9 @@
1
- import { Feed } from '../../../src/feed';
1
+ import { Feed } from '@self';
2
2
  /**
3
3
  * A React hook that returns a reactive array of feeds that the current user
4
4
  * owns and are following the respective feed that we are observing.
5
5
  */
6
6
  export declare const useOwnFollows: (feedFromProps?: Feed) => {
7
- own_follows: import("../../..").FollowResponse[] | undefined;
7
+ own_follows: import("@self").FollowResponse[] | undefined;
8
8
  } | undefined;
9
+ //# sourceMappingURL=useOwnFollows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOwnFollows.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useOwnFollows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAa,MAAM,OAAO,CAAC;AAIxC;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,gBAAgB,IAAI;;aAKjD,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from './useStableCallback';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/internal/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -23,3 +23,4 @@ export type StableCallback<A extends unknown[], R> = (...args: A) => R;
23
23
  * @param callback - the callback we want to stabilize
24
24
  */
25
25
  export declare const useStableCallback: <A extends unknown[], R>(callback: StableCallback<A, R>) => StableCallback<A, R>;
26
+ //# sourceMappingURL=useStableCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStableCallback.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/internal/useStableCallback.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,EACtD,UAAU,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,KAC7B,cAAc,CAAC,CAAC,EAAE,CAAC,CAOrB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './useSearchResult';
2
2
  export * from './useSearchQuery';
3
3
  export * from './useSearchSources';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/search-state-hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { SearchController } from '../../../src/common/search';
1
+ import type { SearchController } from '@self';
2
2
  export declare const useSearchQuery: (controllerFromProps?: SearchController) => {
3
3
  searchQuery: string;
4
4
  } | undefined;
5
+ //# sourceMappingURL=useSearchQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSearchQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/search-state-hooks/useSearchQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,OAAO,CAAC;AAIrE,eAAO,MAAM,cAAc,GAAI,sBAAsB,gBAAgB;;aAKpE,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { SearchSource } from '../../../src/common/search';
1
+ import type { SearchSource } from '@self';
2
2
  export declare const useSearchResult: (sourceFromProps?: SearchSource) => {
3
3
  items: any[] | undefined;
4
4
  error: Error | undefined;
@@ -6,3 +6,4 @@ export declare const useSearchResult: (sourceFromProps?: SearchSource) => {
6
6
  hasNext: boolean | undefined;
7
7
  loadMore: import("../internal").StableCallback<[], Promise<void>>;
8
8
  };
9
+ //# sourceMappingURL=useSearchResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSearchResult.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/search-state-hooks/useSearchResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAqB,MAAM,OAAO,CAAC;AAM7D,eAAO,MAAM,eAAe,GAAI,kBAAkB,YAAY;;;;;;CAiB7D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { SearchController } from '@self';
2
+ export declare const useSearchSources: (controllerFromProps?: SearchController) => {
3
+ sources: import("@self").SearchSource<any>[];
4
+ } | undefined;
5
+ //# sourceMappingURL=useSearchSources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSearchSources.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/search-state-hooks/useSearchSources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,OAAO,CAAC;AAIf,eAAO,MAAM,gBAAgB,GAAI,sBAAsB,gBAAgB;;aAKtE,CAAC"}
@@ -1,7 +1,4 @@
1
- import { FeedsClient } from '../../src/feeds-client';
2
- import type { UserRequest } from '../../src/gen/models';
3
- import type { TokenOrProvider } from '../../src/types';
4
- import type { FeedsClientOptions } from '../../src/common/types';
1
+ import { FeedsClient, type FeedsClientOptions, type UserRequest, type TokenOrProvider } from '@self';
5
2
  /**
6
3
  * A React hook to create, connect and return an instance of `FeedsClient`.
7
4
  */
@@ -11,3 +8,4 @@ export declare const useCreateFeedsClient: ({ apiKey, tokenOrProvider, userData,
11
8
  userData: UserRequest;
12
9
  options?: FeedsClientOptions;
13
10
  }) => FeedsClient | null;
11
+ //# sourceMappingURL=useCreateFeedsClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCreateFeedsClient.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/hooks/useCreateFeedsClient.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,eAAe,EACrB,MAAM,OAAO,CAAC;AAEf;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,iDAKlC;IACD,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,eAAe,CAAC;IACjC,QAAQ,EAAE,WAAW,CAAC;IACtB,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,uBAmDA,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './useReactionActions';
2
2
  export * from './useBookmarkActions';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ActivityResponse } from '../../../src/gen/models';
1
+ import type { ActivityResponse } from '@self';
2
2
  /**
3
3
  * A utility hook that takes in an entity and creates bookmark actions
4
4
  * that can then be used on the UI. The entity is expected to be an ActivityResponse.
@@ -11,3 +11,4 @@ export declare const useBookmarkActions: ({ entity, }: {
11
11
  removeBookmark: import("../internal").StableCallback<[], Promise<void>>;
12
12
  toggleBookmark: import("../internal").StableCallback<[], Promise<void>>;
13
13
  };
14
+ //# sourceMappingURL=useBookmarkActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBookmarkActions.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/util/useBookmarkActions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAI9C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,aAEhC;IACD,MAAM,EAAE,gBAAgB,CAAC;CAC1B;;;;CAyBA,CAAC"}
@@ -1,4 +1,4 @@
1
- import { CommentParent } from '../../../src/types';
1
+ import { CommentParent } from '@self';
2
2
  /**
3
3
  * A utility hook that takes in an entity and a reaction type, and creates reaction actions
4
4
  * that can then be used on the UI. The entity can be either an ActivityResponse or a CommentResponse
@@ -15,3 +15,4 @@ export declare const useReactionActions: ({ entity, type, }: {
15
15
  removeReaction: import("../internal").StableCallback<[], Promise<void>>;
16
16
  toggleReaction: import("../internal").StableCallback<[], Promise<void>>;
17
17
  };
18
+ //# sourceMappingURL=useReactionActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReactionActions.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/util/useReactionActions.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,aAAa,EAAE,MAAM,OAAO,CAAC;AAIzD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAI,mBAGhC;IACD,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;;;;CAoCA,CAAC"}
@@ -1,4 +1,4 @@
1
- export * from './hooks/useStateStore';
1
+ export * from '@stream-io/state-store/react-bindings';
2
2
  export * from './hooks/useCreateFeedsClient';
3
3
  export * from './hooks/client-state-hooks';
4
4
  export * from './hooks/feed-state-hooks';
@@ -12,3 +12,4 @@ export * from './wrappers/StreamFeeds';
12
12
  export * from './wrappers/StreamFeed';
13
13
  export * from './wrappers/StreamSearch';
14
14
  export * from './wrappers/StreamSearchResults';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bindings/react/index.ts"],"names":[],"mappings":"AAEA,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAE7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAI7B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AAItD,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import type { Feed } from '../../src/feed';
2
+ import type { Feed } from '@self';
3
3
  /**
4
4
  * The props for the StreamFeed component. It accepts a `Feed` instance.
5
5
  */
@@ -10,3 +10,4 @@ export declare const StreamFeed: {
10
10
  ({ feed, children, }: PropsWithChildren<StreamFeedProps>): import("react/jsx-runtime").JSX.Element;
11
11
  displayName: string;
12
12
  };
13
+ //# sourceMappingURL=StreamFeed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamFeed.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/wrappers/StreamFeed.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,UAAU;0BAGpB,iBAAiB,CAAC,eAAe,CAAC;;CAMpC,CAAC"}
@@ -4,3 +4,4 @@ export declare const StreamFeeds: {
4
4
  ({ client, children }: PropsWithChildren<StreamFeedsContextProps>): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
+ //# sourceMappingURL=StreamFeeds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamFeeds.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/wrappers/StreamFeeds.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAE9E,eAAO,MAAM,WAAW;2BAA0B,iBAAiB,CAAC,uBAAuB,CAAC;;CAM3F,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import type { SearchController } from '../../src/common/search';
2
+ import type { SearchController } from '@self';
3
3
  /**
4
4
  * The props for the StreamSearch component. It accepts a `SearchController` instance.
5
5
  */
@@ -10,3 +10,4 @@ export declare const StreamSearch: {
10
10
  ({ searchController, children, }: PropsWithChildren<StreamSearchProps>): import("react/jsx-runtime").JSX.Element;
11
11
  displayName: string;
12
12
  };
13
+ //# sourceMappingURL=StreamSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamSearch.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/wrappers/StreamSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,YAAY;sCAGtB,iBAAiB,CAAC,iBAAiB,CAAC;;CAMtC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import type { SearchSource } from '../../src/common/search';
2
+ import type { SearchSource } from '@self';
3
3
  /**
4
4
  * The props for the StreamSearchResults component. It accepts a `SearchSource` instance.
5
5
  */
@@ -10,3 +10,4 @@ export declare const StreamSearchResults: {
10
10
  ({ source, children, }: PropsWithChildren<StreamSearchResultsProps>): import("react/jsx-runtime").JSX.Element;
11
11
  displayName: string;
12
12
  };
13
+ //# sourceMappingURL=StreamSearchResults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamSearchResults.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/wrappers/StreamSearchResults.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,mBAAmB;4BAG7B,iBAAiB,CAAC,wBAAwB,CAAC;;CAM7C,CAAC"}
@@ -1,6 +1,19 @@
1
1
  import { RequestMetadata, FeedsClientOptions } from './types';
2
2
  import { TokenManager } from './TokenManager';
3
3
  import { ConnectionIdManager } from './ConnectionIdManager';
4
+ type RequiredAtLeastOne<T> = {
5
+ [K in keyof T]: Required<Pick<T, K>> & Partial<Omit<T, K>>;
6
+ }[keyof T];
7
+ export type ExtraHeaderInformation = Partial<{
8
+ sdkIdentifier: {
9
+ name: string;
10
+ version: string;
11
+ };
12
+ deviceIdentifier: RequiredAtLeastOne<{
13
+ os: string;
14
+ model: string;
15
+ }>;
16
+ }>;
4
17
  export declare class ApiClient {
5
18
  readonly apiKey: string;
6
19
  private readonly tokenManager;
@@ -8,14 +21,19 @@ export declare class ApiClient {
8
21
  readonly baseUrl: string;
9
22
  private readonly axiosInstance;
10
23
  private timeout;
24
+ extraHeaderInformation: ExtraHeaderInformation;
25
+ private readonly logger;
11
26
  constructor(apiKey: string, tokenManager: TokenManager, connectionIdManager: ConnectionIdManager, options?: FeedsClientOptions);
12
27
  sendRequest: <T>(method: string, url: string, pathParams?: Record<string, string>, queryParams?: Record<string, any>, body?: any, requestContentType?: string) => Promise<{
13
28
  body: T;
14
29
  metadata: RequestMetadata;
15
30
  }>;
16
31
  get webSocketBaseUrl(): string;
32
+ generateStreamClientHeader(): string;
17
33
  private get commonHeaders();
18
34
  private isAxiosError;
19
35
  private readonly queryParamsStringify;
20
36
  private readonly getRequestMetadata;
21
37
  }
38
+ export {};
39
+ //# sourceMappingURL=ApiClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiClient.d.ts","sourceRoot":"","sources":["../../../src/common/ApiClient.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAkB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG9E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAK5D,KAAK,kBAAkB,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAC3D,CAAC,MAAM,CAAC,CAAC,CAAC;AAGX,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC;IAC3C,aAAa,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,gBAAgB,EAAE,kBAAkB,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrE,CAAC,CAAC;AAEH,qBAAa,SAAS;aAQF,MAAM,EAAE,MAAM;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IATtC,SAAgB,OAAO,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAC9C,OAAO,CAAC,OAAO,CAAS;IACjB,sBAAsB,EAAE,sBAAsB,CAAM;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;gBAGhC,MAAM,EAAE,MAAM,EACb,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE,mBAAmB,EACzD,OAAO,CAAC,EAAE,kBAAkB;IAS9B,WAAW,GAAU,CAAC,EACpB,QAAQ,MAAM,EACd,KAAK,MAAM,EACX,aAAa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACnC,cAAc,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACjC,OAAO,GAAG,EACV,qBAAqB,MAAM,KAC1B,OAAO,CAAC;QAAE,IAAI,EAAE,CAAC,CAAC;QAAC,QAAQ,EAAE,eAAe,CAAA;KAAE,CAAC,CA8GhD;IAEF,IAAI,gBAAgB,WAYnB;IAEM,0BAA0B;IA+BjC,OAAO,KAAK,aAAa,GAKxB;IAED,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAsBnC;IAEF,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAWjC;CACH"}
@@ -9,3 +9,4 @@ export declare class ConnectionIdManager {
9
9
  rejectConnectionIdPromise: (reason: any) => void;
10
10
  getConnectionId: () => string | Promise<string>;
11
11
  }
12
+ //# sourceMappingURL=ConnectionIdManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectionIdManager.d.ts","sourceRoot":"","sources":["../../../src/common/ConnectionIdManager.ts"],"names":[],"mappings":"AAAA,qBAAa,mBAAmB;IAC9B,uBAAuB,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,OAAO,CAAC,CAAiC;IACjD,OAAO,CAAC,MAAM,CAAC,CAAwB;IAEvC,KAAK,aAKH;IAEF,wBAAwB,aAMtB;IAEF,0BAA0B,GAAI,cAAc,MAAM,UAMhD;IAEF,yBAAyB,GAAI,QAAQ,GAAG,UAMtC;IAEF,eAAe,iCAYb;CACH"}
@@ -9,3 +9,4 @@ export declare class EventDispatcher<Type extends string = FeedsEvent['type'], E
9
9
  off: (eventName: Type | "all", handler: (event: Event) => void) => void;
10
10
  offAll: (eventName?: Type | "all") => void;
11
11
  }
12
+ //# sourceMappingURL=EventDispatcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventDispatcher.d.ts","sourceRoot":"","sources":["../../../src/common/EventDispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,qBAAa,eAAe,CAC1B,IAAI,SAAS,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,EACxC,KAAK,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,UAAU;IAE3C,OAAO,CAAC,WAAW,CAEZ;IAEP,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiC;IAExD,QAAQ,GAAI,OAAO,KAAK,UAatB;IAEF,EAAE,GAAI,WAAW,IAAI,GAAG,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,gBAK5D;IAEF,GAAG,GAAI,WAAW,IAAI,GAAG,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,UAI7D;IAEF,MAAM,GAAI,YAAY,IAAI,GAAG,KAAK,UAMhC;CACH"}