@stream-io/feeds-client 0.2.7 → 0.2.8
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/CHANGELOG.md +13 -0
- package/dist/cjs/index.js +408 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/react-bindings.js +1368 -0
- package/dist/cjs/react-bindings.js.map +1 -0
- package/dist/es/index.mjs +398 -0
- package/dist/es/index.mjs.map +1 -0
- package/dist/es/react-bindings.mjs +1368 -0
- package/dist/es/react-bindings.mjs.map +1 -0
- package/dist/index-Cfbt0DFY.js +6492 -0
- package/dist/index-Cfbt0DFY.js.map +1 -0
- package/dist/index-DLC5hiNd.mjs +6476 -0
- package/dist/index-DLC5hiNd.mjs.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/bindings/index.d.ts +2 -0
- package/dist/types/bindings/index.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/contexts/StreamFeedContext.d.ts +2 -1
- package/dist/types/bindings/react/contexts/StreamFeedContext.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/contexts/StreamFeedsContext.d.ts +2 -1
- package/dist/types/bindings/react/contexts/StreamFeedsContext.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/contexts/StreamSearchContext.d.ts +2 -1
- package/dist/types/bindings/react/contexts/StreamSearchContext.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/contexts/StreamSearchResultsContext.d.ts +2 -1
- package/dist/types/bindings/react/contexts/StreamSearchResultsContext.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/client-state-hooks/index.d.ts +1 -0
- package/dist/types/bindings/react/hooks/client-state-hooks/index.d.ts.map +1 -0
- package/dist/types/bindings/react/hooks/client-state-hooks/useClientConnectedUser.d.ts +5 -0
- package/dist/types/bindings/react/hooks/client-state-hooks/useClientConnectedUser.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/client-state-hooks/useWsConnectionState.d.ts +1 -0
- package/dist/types/bindings/react/hooks/client-state-hooks/useWsConnectionState.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/index.d.ts +1 -0
- package/dist/types/bindings/react/hooks/feed-state-hooks/index.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useAggregatedActivities.d.ts +3 -2
- package/dist/types/bindings/react/hooks/feed-state-hooks/useAggregatedActivities.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useComments.d.ts +2 -3
- package/dist/types/bindings/react/hooks/feed-state-hooks/useComments.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useFeedActivities.d.ts +3 -2
- package/dist/types/bindings/react/hooks/feed-state-hooks/useFeedActivities.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useFeedMetadata.d.ts +3 -2
- package/dist/types/bindings/react/hooks/feed-state-hooks/useFeedMetadata.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useFollowers.d.ts +5 -4
- package/dist/types/bindings/react/hooks/feed-state-hooks/useFollowers.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useFollowing.d.ts +5 -4
- package/dist/types/bindings/react/hooks/feed-state-hooks/useFollowing.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useIsAggregatedActivityRead.d.ts +2 -2
- package/dist/types/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivityRead.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useIsAggregatedActivitySeen.d.ts +2 -2
- package/dist/types/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivitySeen.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useNotificationStatus.d.ts +2 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useNotificationStatus.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useOwnCapabilities.d.ts +2 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useOwnCapabilities.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useOwnFollows.d.ts +3 -2
- package/dist/types/bindings/react/hooks/feed-state-hooks/useOwnFollows.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/internal/index.d.ts +1 -0
- package/dist/types/bindings/react/hooks/internal/index.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/internal/useStableCallback.d.ts +1 -0
- package/dist/types/bindings/react/hooks/internal/useStableCallback.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/search-state-hooks/index.d.ts +1 -0
- package/dist/types/bindings/react/hooks/search-state-hooks/index.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/search-state-hooks/useSearchQuery.d.ts +2 -1
- package/dist/types/bindings/react/hooks/search-state-hooks/useSearchQuery.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/search-state-hooks/useSearchResult.d.ts +2 -1
- package/dist/types/bindings/react/hooks/search-state-hooks/useSearchResult.d.ts.map +1 -0
- package/dist/types/bindings/react/hooks/search-state-hooks/useSearchSources.d.ts +5 -0
- package/dist/types/bindings/react/hooks/search-state-hooks/useSearchSources.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/useCreateFeedsClient.d.ts +2 -4
- package/dist/types/bindings/react/hooks/useCreateFeedsClient.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/util/index.d.ts +1 -0
- package/dist/types/bindings/react/hooks/util/index.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/util/useBookmarkActions.d.ts +2 -1
- package/dist/types/bindings/react/hooks/util/useBookmarkActions.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/hooks/util/useReactionActions.d.ts +2 -1
- package/dist/types/bindings/react/hooks/util/useReactionActions.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/index.d.ts +2 -1
- package/dist/types/bindings/react/index.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/wrappers/StreamFeed.d.ts +2 -1
- package/dist/types/bindings/react/wrappers/StreamFeed.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/wrappers/StreamFeeds.d.ts +1 -0
- package/dist/types/bindings/react/wrappers/StreamFeeds.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/wrappers/StreamSearch.d.ts +2 -1
- package/dist/types/bindings/react/wrappers/StreamSearch.d.ts.map +1 -0
- package/dist/{@react-bindings → types/bindings/react}/wrappers/StreamSearchResults.d.ts +2 -1
- package/dist/types/bindings/react/wrappers/StreamSearchResults.d.ts.map +1 -0
- package/dist/{src → types}/common/ApiClient.d.ts +18 -0
- package/dist/types/common/ApiClient.d.ts.map +1 -0
- package/dist/{src → types}/common/ConnectionIdManager.d.ts +1 -0
- package/dist/types/common/ConnectionIdManager.d.ts.map +1 -0
- package/dist/{src → types}/common/EventDispatcher.d.ts +1 -0
- package/dist/types/common/EventDispatcher.d.ts.map +1 -0
- package/dist/{src → types}/common/Poll.d.ts +2 -1
- package/dist/types/common/Poll.d.ts.map +1 -0
- package/dist/{src → types}/common/TokenManager.d.ts +2 -0
- package/dist/types/common/TokenManager.d.ts.map +1 -0
- package/dist/{src → types}/common/gen-imports.d.ts +1 -0
- package/dist/types/common/gen-imports.d.ts.map +1 -0
- package/dist/{src → types}/common/rate-limit.d.ts +1 -0
- package/dist/types/common/rate-limit.d.ts.map +1 -0
- package/dist/{src → types}/common/real-time/StableWSConnection.d.ts +4 -4
- package/dist/types/common/real-time/StableWSConnection.d.ts.map +1 -0
- package/dist/{src → types}/common/real-time/event-models.d.ts +1 -0
- package/dist/types/common/real-time/event-models.d.ts.map +1 -0
- package/dist/{src → types}/common/search/ActivitySearchSource.d.ts +1 -0
- package/dist/types/common/search/ActivitySearchSource.d.ts.map +1 -0
- package/dist/{src → types}/common/search/BaseSearchSource.d.ts +2 -1
- package/dist/types/common/search/BaseSearchSource.d.ts.map +1 -0
- package/dist/{src → types}/common/search/FeedSearchSource.d.ts +1 -0
- package/dist/types/common/search/FeedSearchSource.d.ts.map +1 -0
- package/dist/{src → types}/common/search/SearchController.d.ts +2 -1
- package/dist/types/common/search/SearchController.d.ts.map +1 -0
- package/dist/{src → types}/common/search/UserSearchSource.d.ts +2 -1
- package/dist/types/common/search/UserSearchSource.d.ts.map +1 -0
- package/dist/{src → types}/common/search/index.d.ts +1 -0
- package/dist/types/common/search/index.d.ts.map +1 -0
- package/dist/{src → types}/common/search/types.d.ts +1 -0
- package/dist/types/common/search/types.d.ts.map +1 -0
- package/dist/{src → types}/common/types.d.ts +3 -1
- package/dist/types/common/types.d.ts.map +1 -0
- package/dist/{src → types}/common/utils.d.ts +1 -0
- package/dist/types/common/utils.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/activity/handle-activity-added.d.ts +3 -2
- package/dist/types/feed/event-handlers/activity/handle-activity-added.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/activity/handle-activity-deleted.d.ts +3 -2
- package/dist/types/feed/event-handlers/activity/handle-activity-deleted.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/activity/handle-activity-marked.d.ts +1 -0
- package/dist/types/feed/event-handlers/activity/handle-activity-marked.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/activity/handle-activity-pinned.d.ts +1 -0
- package/dist/types/feed/event-handlers/activity/handle-activity-pinned.d.ts.map +1 -0
- package/dist/types/feed/event-handlers/activity/handle-activity-reaction-added.d.ts +15 -0
- package/dist/types/feed/event-handlers/activity/handle-activity-reaction-added.d.ts.map +1 -0
- package/dist/types/feed/event-handlers/activity/handle-activity-reaction-deleted.d.ts +15 -0
- package/dist/types/feed/event-handlers/activity/handle-activity-reaction-deleted.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/activity/handle-activity-removed-from-feed.d.ts +1 -0
- package/dist/types/feed/event-handlers/activity/handle-activity-removed-from-feed.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/activity/handle-activity-unpinned.d.ts +1 -0
- package/dist/types/feed/event-handlers/activity/handle-activity-unpinned.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/activity/handle-activity-updated.d.ts +1 -0
- package/dist/types/feed/event-handlers/activity/handle-activity-updated.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/activity/index.d.ts +1 -0
- package/dist/types/feed/event-handlers/activity/index.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/bookmark/handle-bookmark-added.d.ts +1 -0
- package/dist/types/feed/event-handlers/bookmark/handle-bookmark-added.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/bookmark/handle-bookmark-deleted.d.ts +1 -0
- package/dist/types/feed/event-handlers/bookmark/handle-bookmark-deleted.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/bookmark/handle-bookmark-updated.d.ts +1 -0
- package/dist/types/feed/event-handlers/bookmark/handle-bookmark-updated.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/bookmark/index.d.ts +1 -0
- package/dist/types/feed/event-handlers/bookmark/index.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/comment/handle-comment-added.d.ts +1 -0
- package/dist/types/feed/event-handlers/comment/handle-comment-added.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/comment/handle-comment-deleted.d.ts +1 -0
- package/dist/types/feed/event-handlers/comment/handle-comment-deleted.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/comment/handle-comment-reaction.d.ts +1 -0
- package/dist/types/feed/event-handlers/comment/handle-comment-reaction.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/comment/handle-comment-updated.d.ts +1 -0
- package/dist/types/feed/event-handlers/comment/handle-comment-updated.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/comment/index.d.ts +1 -0
- package/dist/types/feed/event-handlers/comment/index.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/feed/handle-feed-updated.d.ts +1 -0
- package/dist/types/feed/event-handlers/feed/handle-feed-updated.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/feed/index.d.ts +1 -0
- package/dist/types/feed/event-handlers/feed/index.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/feed-member/handle-feed-member-added.d.ts +1 -0
- package/dist/types/feed/event-handlers/feed-member/handle-feed-member-added.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/feed-member/handle-feed-member-removed.d.ts +1 -0
- package/dist/types/feed/event-handlers/feed-member/handle-feed-member-removed.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/feed-member/handle-feed-member-updated.d.ts +1 -0
- package/dist/types/feed/event-handlers/feed-member/handle-feed-member-updated.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/feed-member/index.d.ts +1 -0
- package/dist/types/feed/event-handlers/feed-member/index.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/follow/handle-follow-created.d.ts +3 -2
- package/dist/types/feed/event-handlers/follow/handle-follow-created.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/follow/handle-follow-deleted.d.ts +2 -1
- package/dist/types/feed/event-handlers/follow/handle-follow-deleted.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/follow/handle-follow-updated.d.ts +3 -2
- package/dist/types/feed/event-handlers/follow/handle-follow-updated.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/follow/index.d.ts +1 -0
- package/dist/types/feed/event-handlers/follow/index.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/index.d.ts +1 -0
- package/dist/types/feed/event-handlers/index.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/notification-feed/handle-notification-feed-updated.d.ts +1 -0
- package/dist/types/feed/event-handlers/notification-feed/handle-notification-feed-updated.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/notification-feed/index.d.ts +1 -0
- package/dist/types/feed/event-handlers/notification-feed/index.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/watch/handle-watch-started.d.ts +1 -0
- package/dist/types/feed/event-handlers/watch/handle-watch-started.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/watch/handle-watch-stopped.d.ts +1 -0
- package/dist/types/feed/event-handlers/watch/handle-watch-stopped.d.ts.map +1 -0
- package/dist/{src → types}/feed/event-handlers/watch/index.d.ts +1 -0
- package/dist/types/feed/event-handlers/watch/index.d.ts.map +1 -0
- package/dist/{src → types}/feed/feed.d.ts +9 -6
- package/dist/types/feed/feed.d.ts.map +1 -0
- package/dist/{src → types}/feed/index.d.ts +1 -0
- package/dist/types/feed/index.d.ts.map +1 -0
- package/dist/{src → types}/feeds-client/event-handlers/index.d.ts +1 -0
- package/dist/types/feeds-client/event-handlers/index.d.ts.map +1 -0
- package/dist/{src → types}/feeds-client/event-handlers/user/handle-user-updated.d.ts +1 -0
- package/dist/types/feeds-client/event-handlers/user/handle-user-updated.d.ts.map +1 -0
- package/dist/{src → types}/feeds-client/feeds-client.d.ts +18 -10
- package/dist/types/feeds-client/feeds-client.d.ts.map +1 -0
- package/dist/{src → types}/feeds-client/index.d.ts +1 -0
- package/dist/types/feeds-client/index.d.ts.map +1 -0
- package/dist/{src → types}/gen/feeds/FeedApi.d.ts +1 -0
- package/dist/types/gen/feeds/FeedApi.d.ts.map +1 -0
- package/dist/{src → types}/gen/feeds/FeedsApi.d.ts +1 -0
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -0
- package/dist/{src → types}/gen/model-decoders/decoders.d.ts +1 -0
- package/dist/types/gen/model-decoders/decoders.d.ts.map +1 -0
- package/dist/{src → types}/gen/model-decoders/event-decoder-mapping.d.ts +1 -0
- package/dist/types/gen/model-decoders/event-decoder-mapping.d.ts.map +1 -0
- package/dist/{src → types}/gen/models/index.d.ts +43 -2
- package/dist/types/gen/models/index.d.ts.map +1 -0
- package/dist/{src → types}/gen/moderation/ModerationApi.d.ts +1 -0
- package/dist/types/gen/moderation/ModerationApi.d.ts.map +1 -0
- package/dist/{src → types}/gen-imports.d.ts +1 -0
- package/dist/types/gen-imports.d.ts.map +1 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/{src → types}/moderation-client.d.ts +1 -0
- package/dist/types/moderation-client.d.ts.map +1 -0
- package/dist/{src → types}/types-internal.d.ts +4 -0
- package/dist/types/types-internal.d.ts.map +1 -0
- package/dist/{src → types}/types.d.ts +1 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/{src → types}/utils/check-has-another-page.d.ts +1 -0
- package/dist/types/utils/check-has-another-page.d.ts.map +1 -0
- package/dist/{src → types}/utils/constants.d.ts +1 -0
- package/dist/types/utils/constants.d.ts.map +1 -0
- package/dist/{src → types}/utils/index.d.ts +2 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/is-react-native.d.ts +5 -0
- package/dist/types/utils/is-react-native.d.ts.map +1 -0
- package/dist/types/utils/logger.d.ts +61 -0
- package/dist/types/utils/logger.d.ts.map +1 -0
- package/dist/types/utils/state-update-queue.d.ts +83 -0
- package/dist/types/utils/state-update-queue.d.ts.map +1 -0
- package/dist/types/utils/type-assertions.d.ts +12 -0
- package/dist/types/utils/type-assertions.d.ts.map +1 -0
- package/dist/{src → types}/utils/unique-array-merge.d.ts +1 -0
- package/dist/types/utils/unique-array-merge.d.ts.map +1 -0
- package/dist/{src → types}/utils/update-entity-in-array.d.ts +1 -0
- package/dist/types/utils/update-entity-in-array.d.ts.map +1 -0
- package/package.json +21 -33
- package/src/bindings/index.ts +1 -0
- package/src/bindings/react/contexts/StreamFeedContext.tsx +18 -0
- package/src/bindings/react/contexts/StreamFeedsContext.tsx +21 -0
- package/src/bindings/react/contexts/StreamSearchContext.tsx +18 -0
- package/src/bindings/react/contexts/StreamSearchResultsContext.tsx +20 -0
- package/src/bindings/react/hooks/client-state-hooks/useClientConnectedUser.ts +18 -0
- package/src/bindings/react/hooks/client-state-hooks/useWsConnectionState.ts +18 -0
- package/src/bindings/react/hooks/feed-state-hooks/useAggregatedActivities.ts +25 -0
- package/src/bindings/react/hooks/feed-state-hooks/useComments.ts +91 -0
- package/src/bindings/react/hooks/feed-state-hooks/useFeedActivities.ts +36 -0
- package/src/bindings/react/hooks/feed-state-hooks/useFeedMetadata.ts +28 -0
- package/src/bindings/react/hooks/feed-state-hooks/useFollowers.ts +54 -0
- package/src/bindings/react/hooks/feed-state-hooks/useFollowing.ts +54 -0
- package/src/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivityRead.ts +29 -0
- package/src/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivitySeen.ts +28 -0
- package/src/bindings/react/hooks/feed-state-hooks/useNotificationStatus.ts +28 -0
- package/src/bindings/react/hooks/feed-state-hooks/useOwnCapabilities.ts +70 -0
- package/src/bindings/react/hooks/feed-state-hooks/useOwnFollows.ts +18 -0
- package/src/bindings/react/hooks/internal/useStableCallback.ts +37 -0
- package/src/bindings/react/hooks/search-state-hooks/useSearchQuery.ts +14 -0
- package/src/bindings/react/hooks/search-state-hooks/useSearchResult.ts +36 -0
- package/src/bindings/react/hooks/search-state-hooks/useSearchSources.ts +17 -0
- package/src/bindings/react/hooks/useCreateFeedsClient.ts +73 -0
- package/src/bindings/react/hooks/util/useBookmarkActions.ts +40 -0
- package/src/bindings/react/hooks/util/useReactionActions.ts +56 -0
- package/{@react-bindings → src/bindings/react}/index.ts +1 -1
- package/src/bindings/react/wrappers/StreamFeed.tsx +23 -0
- package/src/bindings/react/wrappers/StreamFeeds.tsx +13 -0
- package/src/bindings/react/wrappers/StreamSearch.tsx +23 -0
- package/src/bindings/react/wrappers/StreamSearchResults.tsx +23 -0
- package/src/common/ApiClient.ts +86 -33
- package/src/common/EventDispatcher.ts +3 -6
- package/src/common/Poll.ts +1 -1
- package/src/common/TokenManager.ts +4 -0
- package/src/common/real-time/StableWSConnection.ts +64 -60
- package/src/common/search/BaseSearchSource.ts +11 -4
- package/src/common/search/SearchController.ts +4 -2
- package/src/common/types.ts +3 -2
- package/src/feed/event-handlers/activity/activity-utils.test.ts +40 -9
- package/src/feed/event-handlers/activity/handle-activity-added.test.ts +1 -1
- package/src/feed/event-handlers/activity/handle-activity-added.ts +7 -7
- package/src/feed/event-handlers/activity/handle-activity-deleted.ts +15 -12
- package/src/feed/event-handlers/activity/handle-activity-reaction-added.test.ts +101 -1
- package/src/feed/event-handlers/activity/handle-activity-reaction-added.ts +55 -29
- package/src/feed/event-handlers/activity/handle-activity-reaction-deleted.test.ts +118 -1
- package/src/feed/event-handlers/activity/handle-activity-reaction-deleted.ts +59 -32
- package/src/feed/event-handlers/activity/handle-activity-removed-from-feed.ts +1 -1
- package/src/feed/event-handlers/follow/follow-state-update-queue.test.ts +219 -0
- package/src/feed/event-handlers/follow/handle-follow-created.ts +7 -2
- package/src/feed/event-handlers/follow/handle-follow-deleted.ts +5 -0
- package/src/feed/event-handlers/follow/handle-follow-updated.test.ts +0 -43
- package/src/feed/event-handlers/follow/handle-follow-updated.ts +7 -2
- package/src/feed/feed.test.ts +90 -0
- package/src/feed/feed.ts +25 -4
- package/src/feeds-client/feeds-client.ts +35 -4
- package/src/gen/feeds/FeedsApi.ts +2 -0
- package/src/gen/model-decoders/decoders.ts +22 -0
- package/src/gen/models/index.ts +71 -3
- package/src/index.ts +9 -0
- package/src/test-utils/response-generators.ts +12 -3
- package/src/types-internal.ts +4 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/is-react-native.ts +7 -0
- package/src/utils/logger.ts +18 -0
- package/src/utils/state-update-queue.test.ts +85 -9
- package/src/utils/state-update-queue.ts +104 -11
- package/src/utils/type-assertions.ts +22 -1
- package/dist/@react-bindings/hooks/client-state-hooks/useClientConnectedUser.d.ts +0 -4
- package/dist/@react-bindings/hooks/search-state-hooks/useSearchSources.d.ts +0 -4
- package/dist/@react-bindings/hooks/useStateStore.d.ts +0 -3
- package/dist/index-react-bindings.browser.cjs +0 -6607
- package/dist/index-react-bindings.browser.cjs.map +0 -1
- package/dist/index-react-bindings.browser.js +0 -6574
- package/dist/index-react-bindings.browser.js.map +0 -1
- package/dist/index-react-bindings.node.cjs +0 -6607
- package/dist/index-react-bindings.node.cjs.map +0 -1
- package/dist/index-react-bindings.node.js +0 -6574
- package/dist/index-react-bindings.node.js.map +0 -1
- package/dist/index.browser.cjs +0 -6578
- package/dist/index.browser.cjs.map +0 -1
- package/dist/index.browser.js +0 -6551
- package/dist/index.browser.js.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.node.cjs +0 -6578
- package/dist/index.node.cjs.map +0 -1
- package/dist/index.node.js +0 -6551
- package/dist/index.node.js.map +0 -1
- package/dist/src/common/StateStore.d.ts +0 -125
- package/dist/src/feed/event-handlers/activity/handle-activity-reaction-added.d.ts +0 -12
- package/dist/src/feed/event-handlers/activity/handle-activity-reaction-deleted.d.ts +0 -12
- package/dist/src/utils/state-update-queue.d.ts +0 -6
- package/dist/src/utils/type-assertions.d.ts +0 -7
- package/index.ts +0 -9
- package/src/common/StateStore.ts +0 -332
- /package/{@react-bindings → src/bindings/react}/hooks/client-state-hooks/index.ts +0 -0
- /package/{@react-bindings → src/bindings/react}/hooks/feed-state-hooks/index.ts +0 -0
- /package/{@react-bindings → src/bindings/react}/hooks/internal/index.ts +0 -0
- /package/{@react-bindings → src/bindings/react}/hooks/search-state-hooks/index.ts +0 -0
- /package/{@react-bindings → src/bindings/react}/hooks/util/index.ts +0 -0
|
@@ -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 '
|
|
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 '
|
|
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 '
|
|
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"}
|
package/dist/{@react-bindings → types/bindings/react}/contexts/StreamSearchResultsContext.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SearchSource } from '
|
|
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"}
|
|
@@ -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 @@
|
|
|
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"}
|
|
@@ -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"}
|
|
@@ -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 '
|
|
1
|
+
import type { Feed, FeedState } from '@self';
|
|
2
2
|
declare const selector: ({ aggregated_activities }: FeedState) => {
|
|
3
|
-
aggregated_activities: import("
|
|
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"}
|
package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useComments.d.ts
RENAMED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type
|
|
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"}
|
package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useFeedActivities.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Feed } from '
|
|
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("
|
|
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"}
|
package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useFeedMetadata.d.ts
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Feed } from '
|
|
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("
|
|
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"}
|
package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useFollowers.d.ts
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Feed, FeedState } from '
|
|
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("
|
|
5
|
-
followers_pagination: (import("
|
|
6
|
-
sort?: import("
|
|
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"}
|
package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useFollowing.d.ts
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Feed, FeedState } from '
|
|
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("
|
|
5
|
-
following_pagination: (import("
|
|
6
|
-
sort?: import("
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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"}
|
package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useOwnCapabilities.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Feed } from '
|
|
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"}
|
package/dist/{@react-bindings → types/bindings/react}/hooks/feed-state-hooks/useOwnFollows.d.ts
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Feed } from '
|
|
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("
|
|
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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
package/dist/{@react-bindings → types/bindings/react}/hooks/search-state-hooks/useSearchQuery.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { SearchController } from '
|
|
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"}
|
package/dist/{@react-bindings → types/bindings/react}/hooks/search-state-hooks/useSearchResult.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SearchSource } from '
|
|
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 @@
|
|
|
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 '
|
|
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"}
|
|
@@ -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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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"}
|
|
@@ -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 '
|
|
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 '
|
|
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"}
|
|
@@ -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"}
|
|
@@ -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"}
|