@stream-io/feeds-client 0.3.26 → 0.3.28
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 +14 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react-bindings.js +60 -931
- package/dist/cjs/react-bindings.js.map +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/react-bindings.mjs +9 -885
- package/dist/es/react-bindings.mjs.map +1 -1
- package/dist/{feeds-client-BNiazJbH.mjs → feeds-client-Dr24iZo9.mjs} +8 -9
- package/dist/{feeds-client-BNiazJbH.mjs.map → feeds-client-Dr24iZo9.mjs.map} +1 -1
- package/dist/{feeds-client-K0WzrfH-.js → feeds-client-c90oNdsU.js} +8 -9
- package/dist/{feeds-client-K0WzrfH-.js.map → feeds-client-c90oNdsU.js.map} +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/dist/types/activity-with-state-updates/activity-with-state-updates.d.ts +4 -4
- package/dist/types/activity-with-state-updates/activity-with-state-updates.d.ts.map +1 -1
- package/dist/types/activity-with-state-updates/get-feed.d.ts +2 -2
- package/dist/types/bindings/react/contexts/StreamFeedContext.d.ts +2 -2
- package/dist/types/bindings/react/contexts/StreamFeedContext.d.ts.map +1 -1
- package/dist/types/bindings/react/contexts/StreamFeedsContext.d.ts +2 -2
- package/dist/types/bindings/react/contexts/StreamFeedsContext.d.ts.map +1 -1
- package/dist/types/bindings/react/contexts/StreamSearchContext.d.ts +2 -2
- package/dist/types/bindings/react/contexts/StreamSearchContext.d.ts.map +1 -1
- package/dist/types/bindings/react/contexts/StreamSearchResultsContext.d.ts +2 -2
- package/dist/types/bindings/react/contexts/StreamSearchResultsContext.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/client-state-hooks/useClientConnectedUser.d.ts +1 -1
- package/dist/types/bindings/react/hooks/client-state-hooks/useClientConnectedUser.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/client-state-hooks/useWsConnectionState.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useActivityComments.d.ts +5 -3
- package/dist/types/bindings/react/hooks/feed-state-hooks/useActivityComments.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useAggregatedActivities.d.ts +2 -2
- package/dist/types/bindings/react/hooks/feed-state-hooks/useAggregatedActivities.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useComments.d.ts +3 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useComments.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useFeedActivities.d.ts +3 -3
- package/dist/types/bindings/react/hooks/feed-state-hooks/useFeedActivities.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useFeedMetadata.d.ts +2 -2
- package/dist/types/bindings/react/hooks/feed-state-hooks/useFeedMetadata.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useFollowers.d.ts +4 -4
- package/dist/types/bindings/react/hooks/feed-state-hooks/useFollowers.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useFollowing.d.ts +4 -4
- package/dist/types/bindings/react/hooks/feed-state-hooks/useFollowing.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivityRead.d.ts +2 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivityRead.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivitySeen.d.ts +2 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivitySeen.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useNotificationStatus.d.ts +1 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useNotificationStatus.d.ts.map +1 -1
- package/dist/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 -1
- package/dist/types/bindings/react/hooks/feed-state-hooks/useOwnFollows.d.ts +2 -2
- package/dist/types/bindings/react/hooks/feed-state-hooks/useOwnFollows.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/search-state-hooks/useSearchQuery.d.ts +1 -1
- package/dist/types/bindings/react/hooks/search-state-hooks/useSearchQuery.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/search-state-hooks/useSearchResult.d.ts +2 -2
- package/dist/types/bindings/react/hooks/search-state-hooks/useSearchResult.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/search-state-hooks/useSearchSources.d.ts +2 -2
- package/dist/types/bindings/react/hooks/search-state-hooks/useSearchSources.d.ts.map +1 -1
- package/dist/types/bindings/react/hooks/useCreateFeedsClient.d.ts +4 -1
- package/dist/types/bindings/react/hooks/useCreateFeedsClient.d.ts.map +1 -1
- package/dist/types/bindings/react/wrappers/StreamFeed.d.ts +2 -2
- package/dist/types/bindings/react/wrappers/StreamFeed.d.ts.map +1 -1
- package/dist/types/bindings/react/wrappers/StreamFeeds.d.ts +2 -2
- package/dist/types/bindings/react/wrappers/StreamSearch.d.ts +2 -2
- package/dist/types/bindings/react/wrappers/StreamSearch.d.ts.map +1 -1
- package/dist/types/bindings/react/wrappers/StreamSearchResults.d.ts +2 -2
- package/dist/types/bindings/react/wrappers/StreamSearchResults.d.ts.map +1 -1
- package/dist/types/common/ApiClient.d.ts +3 -3
- package/dist/types/common/EventDispatcher.d.ts +1 -1
- package/dist/types/common/Poll.d.ts +2 -2
- package/dist/types/common/rate-limit.d.ts +1 -1
- package/dist/types/common/real-time/StableWSConnection.d.ts +6 -6
- package/dist/types/common/real-time/event-models.d.ts +2 -1
- package/dist/types/common/real-time/event-models.d.ts.map +1 -1
- package/dist/types/common/search/ActivitySearchSource.d.ts +3 -3
- package/dist/types/common/search/BaseSearchSource.d.ts +2 -2
- package/dist/types/common/search/FeedSearchSource.d.ts +3 -3
- package/dist/types/common/search/SearchController.d.ts +1 -1
- package/dist/types/common/search/UserSearchSource.d.ts +4 -4
- package/dist/types/common/types.d.ts +1 -1
- package/dist/types/feed/event-handlers/activity/handle-activity-added.d.ts +3 -3
- package/dist/types/feed/event-handlers/activity/handle-activity-deleted.d.ts +3 -3
- package/dist/types/feed/event-handlers/activity/handle-activity-feedback.d.ts +2 -2
- package/dist/types/feed/event-handlers/activity/handle-activity-feedback.d.ts.map +1 -1
- package/dist/types/feed/event-handlers/activity/handle-activity-marked.d.ts +3 -3
- package/dist/types/feed/event-handlers/activity/handle-activity-pinned.d.ts +2 -2
- package/dist/types/feed/event-handlers/activity/handle-activity-reaction-added.d.ts +3 -3
- package/dist/types/feed/event-handlers/activity/handle-activity-reaction-deleted.d.ts +3 -3
- package/dist/types/feed/event-handlers/activity/handle-activity-reaction-updated.d.ts +3 -3
- package/dist/types/feed/event-handlers/activity/handle-activity-removed-from-feed.d.ts +2 -2
- package/dist/types/feed/event-handlers/activity/handle-activity-unpinned.d.ts +2 -2
- package/dist/types/feed/event-handlers/activity/handle-activity-updated.d.ts +3 -3
- package/dist/types/feed/event-handlers/activity-updater.d.ts +15 -15
- package/dist/types/feed/event-handlers/add-aggregated-activities-to-state.d.ts +2 -2
- package/dist/types/feed/event-handlers/bookmark/handle-bookmark-added.d.ts +3 -3
- package/dist/types/feed/event-handlers/bookmark/handle-bookmark-deleted.d.ts +3 -3
- package/dist/types/feed/event-handlers/bookmark/handle-bookmark-updated.d.ts +3 -3
- package/dist/types/feed/event-handlers/comment/handle-comment-added.d.ts +2 -2
- package/dist/types/feed/event-handlers/comment/handle-comment-deleted.d.ts +3 -2
- package/dist/types/feed/event-handlers/comment/handle-comment-reaction-added.d.ts +3 -2
- package/dist/types/feed/event-handlers/comment/handle-comment-reaction-deleted.d.ts +3 -2
- package/dist/types/feed/event-handlers/comment/handle-comment-reaction-updated.d.ts +3 -2
- package/dist/types/feed/event-handlers/comment/handle-comment-updated.d.ts +3 -2
- package/dist/types/feed/event-handlers/comment/utils/update-comment-count.d.ts +2 -1
- package/dist/types/feed/event-handlers/comment/utils/update-comment-count.d.ts.map +1 -1
- package/dist/types/feed/event-handlers/feed/handle-feed-updated.d.ts +2 -2
- package/dist/types/feed/event-handlers/feed-member/handle-feed-member-added.d.ts +2 -2
- package/dist/types/feed/event-handlers/feed-member/handle-feed-member-removed.d.ts +2 -2
- package/dist/types/feed/event-handlers/feed-member/handle-feed-member-updated.d.ts +2 -2
- package/dist/types/feed/event-handlers/follow/handle-follow-created.d.ts +3 -3
- package/dist/types/feed/event-handlers/follow/handle-follow-deleted.d.ts +3 -3
- package/dist/types/feed/event-handlers/follow/handle-follow-updated.d.ts +2 -2
- package/dist/types/feed/event-handlers/is-activity-pin.d.ts +1 -1
- package/dist/types/feed/event-handlers/notification-feed/handle-notification-feed-updated.d.ts +3 -3
- package/dist/types/feed/event-handlers/story-feeds/handle-story-feeds-updated.d.ts +3 -3
- package/dist/types/feed/event-handlers/watch/handle-watch-started.d.ts +1 -1
- package/dist/types/feed/event-handlers/watch/handle-watch-stopped.d.ts +1 -1
- package/dist/types/feed/feed.d.ts +9 -9
- package/dist/types/feeds-client/active-activity.d.ts +1 -1
- package/dist/types/feeds-client/event-handlers/user/handle-user-updated.d.ts +2 -2
- package/dist/types/feeds-client/feeds-client.d.ts +22 -22
- package/dist/types/feeds-client/feeds-client.d.ts.map +1 -1
- package/dist/types/feeds-client/get-or-create-active-feed.d.ts +2 -2
- package/dist/types/gen/feeds/FeedApi.d.ts +2 -2
- package/dist/types/gen/feeds/FeedsApi.d.ts +2 -2
- package/dist/types/gen/model-decoders/event-decoder-mapping.d.ts +1 -1
- package/dist/types/gen/models/index.d.ts +1 -1
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/dist/types/gen/moderation/ModerationApi.d.ts +2 -2
- package/dist/types/types-internal.d.ts +1 -1
- package/dist/types/types.d.ts +5 -4
- package/dist/types/utils/check-own-fields-equality.d.ts +2 -2
- package/dist/types/utils/event-triggered-by-connected-user.d.ts +2 -2
- package/dist/types/utils/own-feed-fields.d.ts +1 -1
- package/dist/types/utils/state-update-queue.d.ts +4 -4
- package/dist/types/utils/throttling/throttled-get-batched-own-capabilities.d.ts +2 -2
- package/dist/types/utils/throttling/throttled-get-batched-own-capabilities.d.ts.map +1 -1
- package/dist/types/utils/type-assertions.d.ts +2 -2
- package/package.json +11 -12
- package/src/activity-with-state-updates/activity-with-state-updates.ts +2 -2
- package/src/bindings/react/contexts/StreamFeedContext.tsx +2 -1
- package/src/bindings/react/contexts/StreamFeedsContext.tsx +2 -1
- package/src/bindings/react/contexts/StreamSearchContext.tsx +2 -1
- package/src/bindings/react/contexts/StreamSearchResultsContext.tsx +2 -1
- package/src/bindings/react/hooks/client-state-hooks/useClientConnectedUser.ts +2 -1
- package/src/bindings/react/hooks/client-state-hooks/useWsConnectionState.ts +2 -1
- package/src/bindings/react/hooks/feed-state-hooks/useActivityComments.ts +7 -11
- package/src/bindings/react/hooks/feed-state-hooks/useAggregatedActivities.ts +3 -2
- package/src/bindings/react/hooks/feed-state-hooks/useComments.ts +5 -9
- package/src/bindings/react/hooks/feed-state-hooks/useFeedActivities.ts +4 -3
- package/src/bindings/react/hooks/feed-state-hooks/useFeedMetadata.ts +3 -2
- package/src/bindings/react/hooks/feed-state-hooks/useFollowers.ts +2 -1
- package/src/bindings/react/hooks/feed-state-hooks/useFollowing.ts +3 -1
- package/src/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivityRead.ts +4 -2
- package/src/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivitySeen.ts +4 -2
- package/src/bindings/react/hooks/feed-state-hooks/useNotificationStatus.ts +3 -1
- package/src/bindings/react/hooks/feed-state-hooks/useOwnCapabilities.ts +5 -2
- package/src/bindings/react/hooks/feed-state-hooks/useOwnFollows.ts +3 -2
- package/src/bindings/react/hooks/search-state-hooks/useSearchQuery.ts +6 -2
- package/src/bindings/react/hooks/search-state-hooks/useSearchResult.ts +4 -2
- package/src/bindings/react/hooks/search-state-hooks/useSearchSources.ts +3 -5
- package/src/bindings/react/hooks/useCreateFeedsClient.ts +5 -6
- package/src/bindings/react/wrappers/StreamFeed.tsx +2 -1
- package/src/bindings/react/wrappers/StreamSearch.tsx +2 -1
- package/src/bindings/react/wrappers/StreamSearchResults.tsx +2 -1
- package/src/common/real-time/event-models.ts +2 -2
- package/src/feed/event-handlers/activity/handle-activity-feedback.ts +4 -8
- package/src/feed/event-handlers/comment/utils/update-comment-count.ts +2 -2
- package/src/feeds-client/feeds-client.ts +10 -12
- package/src/gen/models/index.ts +2 -2
- package/src/utils/throttling/throttled-get-batched-own-capabilities.ts +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { ActivityResponse, CommentResponse
|
|
1
|
+
import type { ActivityResponse, CommentResponse } from '../../../../gen/models';
|
|
2
|
+
import type { Feed, FeedState } from '../../../../feed';
|
|
3
|
+
import type { CommentParent } from '../../../../types';
|
|
2
4
|
type UseCommentsReturnType<T extends ActivityResponse | CommentResponse> = {
|
|
3
5
|
comments: NonNullable<FeedState['comments_by_entity_id'][T['id']]>['comments'];
|
|
4
6
|
comments_pagination: NonNullable<FeedState['comments_by_entity_id'][T['id']]>['pagination'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useComments.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useComments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useComments.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useComments.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,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;;;GAGG;AACH,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,12 +1,12 @@
|
|
|
1
|
-
import { Feed } from '
|
|
1
|
+
import type { Feed } from '../../../../feed';
|
|
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.
|
|
5
5
|
*/
|
|
6
6
|
export declare const useFeedActivities: (feedFromProps?: Feed) => {
|
|
7
|
-
loadNextPage: import(
|
|
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("../../../..").ActivityResponse[] | undefined;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=useFeedActivities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFeedActivities.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useFeedActivities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFeedActivities.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useFeedActivities.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAa,MAAM,kBAAkB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,gBAAgB,IAAI;;;;;CAerD,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Feed } from '
|
|
1
|
+
import type { Feed } from '../../../../feed';
|
|
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("../../../..").UserResponse | undefined;
|
|
8
8
|
follower_count: number;
|
|
9
9
|
following_count: number;
|
|
10
10
|
created_at: Date | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFeedMetadata.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useFeedMetadata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFeedMetadata.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useFeedMetadata.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAa,MAAM,kBAAkB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,gBAAgB,IAAI;;;;;;aAKnD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Feed, FeedState } from '
|
|
1
|
+
import type { Feed, FeedState } from '../../../../feed';
|
|
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("../../../..").FollowResponse[] | undefined;
|
|
5
|
+
followers_pagination: (import("../../../..").PagerResponse & import("../../../..").LoadingStates & {
|
|
6
|
+
sort?: import("../../../..").SortParamRequest[];
|
|
7
7
|
}) | undefined;
|
|
8
8
|
};
|
|
9
9
|
type UseFollowersReturnType = ReturnType<typeof selector> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFollowers.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useFollowers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFollowers.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useFollowers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGxD,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 '
|
|
1
|
+
import type { Feed, FeedState } from '../../../../feed';
|
|
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("../../../..").FollowResponse[] | undefined;
|
|
5
|
+
following_pagination: (import("../../../..").PagerResponse & import("../../../..").LoadingStates & {
|
|
6
|
+
sort?: import("../../../..").SortParamRequest[];
|
|
7
7
|
}) | undefined;
|
|
8
8
|
};
|
|
9
9
|
type UseFollowingReturnType = ReturnType<typeof selector> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFollowing.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useFollowing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFollowing.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useFollowing.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAExD,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,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Feed } from '../../../../feed';
|
|
2
|
+
import type { AggregatedActivityResponse } from '../../../../gen/models';
|
|
2
3
|
export declare const useIsAggregatedActivityRead: ({ feed: feedFromProps, aggregatedActivity, }: {
|
|
3
4
|
feed?: Feed;
|
|
4
5
|
aggregatedActivity: AggregatedActivityResponse;
|
package/dist/types/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivityRead.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsAggregatedActivityRead.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivityRead.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIsAggregatedActivityRead.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivityRead.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEzE,eAAO,MAAM,2BAA2B,GAAI,8CAGzC;IACD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,kBAAkB,EAAE,0BAA0B,CAAC;CAChD,YAgBA,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Feed } from '../../../../feed';
|
|
2
|
+
import type { AggregatedActivityResponse } from '../../../../gen/models';
|
|
2
3
|
export declare const useIsAggregatedActivitySeen: ({ feed: feedFromProps, aggregatedActivity, }: {
|
|
3
4
|
feed?: Feed;
|
|
4
5
|
aggregatedActivity: AggregatedActivityResponse;
|
package/dist/types/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivitySeen.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsAggregatedActivitySeen.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivitySeen.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIsAggregatedActivitySeen.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useIsAggregatedActivitySeen.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEzE,eAAO,MAAM,2BAA2B,GAAI,8CAGzC;IACD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,kBAAkB,EAAE,0BAA0B,CAAC;CAChD,YAgBA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNotificationStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useNotificationStatus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useNotificationStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useNotificationStatus.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGxD,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,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Feed } from '../../../../feed';
|
|
2
|
+
import type { FeedOwnCapability } from '../../../../gen/models';
|
|
2
3
|
export declare const useOwnCapabilities: (feedFromProps?: Feed | string) => readonly FeedOwnCapability[];
|
|
3
4
|
//# sourceMappingURL=useOwnCapabilities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOwnCapabilities.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useOwnCapabilities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useOwnCapabilities.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useOwnCapabilities.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAKhE,eAAO,MAAM,kBAAkB,GAAI,gBAAgB,IAAI,GAAG,MAAM,iCA0B/D,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Feed } from '
|
|
1
|
+
import type { Feed } from '../../../../feed';
|
|
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("../../../..").FollowResponse[] | undefined;
|
|
8
8
|
} | undefined;
|
|
9
9
|
//# sourceMappingURL=useOwnFollows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOwnFollows.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useOwnFollows.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useOwnFollows.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/feed-state-hooks/useOwnFollows.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAa,MAAM,kBAAkB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,gBAAgB,IAAI;;aAKjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSearchQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/search-state-hooks/useSearchQuery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSearchQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/search-state-hooks/useSearchQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,2BAA2B,CAAC;AAGnC,eAAO,MAAM,cAAc,GAAI,sBAAsB,gBAAgB;;aAKpE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SearchSource } from '
|
|
1
|
+
import type { SearchSource } from '../../../../common/search';
|
|
2
2
|
export declare const useSearchResult: (sourceFromProps?: SearchSource) => {
|
|
3
3
|
items: any[] | undefined;
|
|
4
4
|
error: Error | undefined;
|
|
5
5
|
isLoading: boolean | undefined;
|
|
6
6
|
hasNext: boolean | undefined;
|
|
7
|
-
loadMore: import(
|
|
7
|
+
loadMore: import("../internal").StableCallback<[], Promise<void>>;
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=useSearchResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSearchResult.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/search-state-hooks/useSearchResult.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSearchResult.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/search-state-hooks/useSearchResult.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,eAAO,MAAM,eAAe,GAAI,kBAAkB,YAAY;;;;;;CAiB7D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SearchController } from '
|
|
1
|
+
import type { SearchController } from '../../../../common/search';
|
|
2
2
|
export declare const useSearchSources: (controllerFromProps?: SearchController) => {
|
|
3
|
-
sources: import(
|
|
3
|
+
sources: import("../../../..").SearchSource<any>[];
|
|
4
4
|
} | undefined;
|
|
5
5
|
//# sourceMappingURL=useSearchSources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSearchSources.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/search-state-hooks/useSearchSources.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSearchSources.d.ts","sourceRoot":"","sources":["../../../../../../src/bindings/react/hooks/search-state-hooks/useSearchSources.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,2BAA2B,CAAC;AAEzF,eAAO,MAAM,gBAAgB,GAAI,sBAAsB,gBAAgB;;aAKtE,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { FeedsClient
|
|
1
|
+
import { FeedsClient } from '../../../feeds-client';
|
|
2
|
+
import type { TokenOrProvider } from '../../../types';
|
|
3
|
+
import type { UserRequest } from '../../../gen/models';
|
|
4
|
+
import type { FeedsClientOptions } from '../../../common/types';
|
|
2
5
|
/**
|
|
3
6
|
* A React hook to create, connect and return an instance of `FeedsClient`.
|
|
4
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateFeedsClient.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/hooks/useCreateFeedsClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCreateFeedsClient.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/hooks/useCreateFeedsClient.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE;;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,uBA6CA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StreamFeed.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/wrappers/StreamFeed.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StreamFeed.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/wrappers/StreamFeed.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,UAAU;0BAGpB,iBAAiB,CAAC,eAAe,CAAC;;CAMpC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { StreamFeedsContextProps } from '../contexts/StreamFeedsContext';
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { StreamFeedsContextProps } from '../contexts/StreamFeedsContext';
|
|
3
3
|
export declare const StreamFeeds: {
|
|
4
4
|
({ client, children }: PropsWithChildren<StreamFeedsContextProps>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { SearchController } from '
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { SearchController } from '../../../common/search';
|
|
3
3
|
/**
|
|
4
4
|
* The props for the StreamSearch component. It accepts a `SearchController` instance.
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StreamSearch.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/wrappers/StreamSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StreamSearch.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/wrappers/StreamSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D;;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
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { SearchSource } from '
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { SearchSource } from '../../../common/search';
|
|
3
3
|
/**
|
|
4
4
|
* The props for the StreamSearchResults component. It accepts a `SearchSource` instance.
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StreamSearchResults.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/wrappers/StreamSearchResults.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StreamSearchResults.d.ts","sourceRoot":"","sources":["../../../../../src/bindings/react/wrappers/StreamSearchResults.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;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,6 @@
|
|
|
1
|
-
import { RequestMetadata, FeedsClientOptions } from './types';
|
|
2
|
-
import { TokenManager } from './TokenManager';
|
|
3
|
-
import { ConnectionIdManager } from './ConnectionIdManager';
|
|
1
|
+
import type { RequestMetadata, FeedsClientOptions } from './types';
|
|
2
|
+
import type { TokenManager } from './TokenManager';
|
|
3
|
+
import type { ConnectionIdManager } from './ConnectionIdManager';
|
|
4
4
|
type RequiredAtLeastOne<T> = {
|
|
5
5
|
[K in keyof T]: Required<Pick<T, K>> & Partial<Omit<T, K>>;
|
|
6
6
|
}[keyof T];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StateStore } from '@stream-io/state-store';
|
|
2
|
-
import { FeedsClient } from '../feeds-client';
|
|
3
|
-
import { PollVoteResponseData, QueryPollVotesRequest, PollUpdatedFeedEvent, PollClosedFeedEvent, PollVoteCastedFeedEvent, PollVoteChangedFeedEvent, PollVoteRemovedFeedEvent, PollResponseData } from '../gen/models';
|
|
2
|
+
import type { FeedsClient } from '../feeds-client';
|
|
3
|
+
import type { PollVoteResponseData, QueryPollVotesRequest, PollUpdatedFeedEvent, PollClosedFeedEvent, PollVoteCastedFeedEvent, PollVoteChangedFeedEvent, PollVoteRemovedFeedEvent, PollResponseData } from '../gen/models';
|
|
4
4
|
export declare const isVoteAnswer: (vote: PollVoteResponseData) => boolean;
|
|
5
5
|
export type PollAnswersQueryParams = QueryPollVotesRequest & {
|
|
6
6
|
poll_id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UserRequest } from '../../gen/models';
|
|
2
|
-
import { TokenManager } from '../TokenManager';
|
|
3
|
-
import { ConnectionIdManager } from '../ConnectionIdManager';
|
|
4
|
-
import { ConnectedEvent } from './event-models';
|
|
1
|
+
import type { UserRequest } from '../../gen/models';
|
|
2
|
+
import type { TokenManager } from '../TokenManager';
|
|
3
|
+
import type { ConnectionIdManager } from '../ConnectionIdManager';
|
|
4
|
+
import type { ConnectedEvent } from './event-models';
|
|
5
5
|
export type WSConfig = {
|
|
6
6
|
baseUrl: string;
|
|
7
7
|
user: UserRequest;
|
|
@@ -56,8 +56,8 @@ export declare class StableWSConnection {
|
|
|
56
56
|
private readonly clientId;
|
|
57
57
|
private readonly logger;
|
|
58
58
|
constructor(config: WSConfig, tokenManager: TokenManager, connectionIdManager: ConnectionIdManager, decoders?: Array<(event: any) => any>);
|
|
59
|
-
on: (eventName: "network.changed" | "all" | "app.updated" | "feeds.activity.added" | "feeds.activity.deleted" | "feeds.activity.feedback" | "feeds.activity.marked" | "feeds.activity.pinned" | "feeds.activity.reaction.added" | "feeds.activity.reaction.deleted" | "feeds.activity.reaction.updated" | "feeds.activity.removed_from_feed" | "feeds.activity.unpinned" | "feeds.activity.updated" | "feeds.bookmark.added" | "feeds.bookmark.deleted" | "feeds.bookmark.updated" | "feeds.bookmark_folder.deleted" | "feeds.bookmark_folder.updated" | "feeds.comment.added" | "feeds.comment.deleted" | "feeds.comment.reaction.added" | "feeds.comment.reaction.deleted" | "feeds.comment.reaction.updated" | "feeds.comment.updated" | "feeds.feed.created" | "feeds.feed.deleted" | "feeds.feed.updated" | "feeds.feed_group.changed" | "feeds.feed_group.deleted" | "feeds.feed_member.added" | "feeds.feed_member.removed" | "feeds.feed_member.updated" | "feeds.follow.created" | "feeds.follow.deleted" | "feeds.follow.updated" | "feeds.notification_feed.updated" | "feeds.poll.closed" | "feeds.poll.deleted" | "feeds.poll.updated" | "feeds.poll.vote_casted" | "feeds.poll.vote_changed" | "feeds.poll.vote_removed" | "feeds.stories_feed.updated" | "health.check" | "moderation.custom_action" | "moderation.mark_reviewed" | "user.updated" | "moderation.flagged" | "user.banned" | "user.deactivated" | "user.muted" | "user.reactivated" | "connection.changed" | "errors.unhandled", handler: (event: import(
|
|
60
|
-
off: (eventName: "network.changed" | "all" | "app.updated" | "feeds.activity.added" | "feeds.activity.deleted" | "feeds.activity.feedback" | "feeds.activity.marked" | "feeds.activity.pinned" | "feeds.activity.reaction.added" | "feeds.activity.reaction.deleted" | "feeds.activity.reaction.updated" | "feeds.activity.removed_from_feed" | "feeds.activity.unpinned" | "feeds.activity.updated" | "feeds.bookmark.added" | "feeds.bookmark.deleted" | "feeds.bookmark.updated" | "feeds.bookmark_folder.deleted" | "feeds.bookmark_folder.updated" | "feeds.comment.added" | "feeds.comment.deleted" | "feeds.comment.reaction.added" | "feeds.comment.reaction.deleted" | "feeds.comment.reaction.updated" | "feeds.comment.updated" | "feeds.feed.created" | "feeds.feed.deleted" | "feeds.feed.updated" | "feeds.feed_group.changed" | "feeds.feed_group.deleted" | "feeds.feed_member.added" | "feeds.feed_member.removed" | "feeds.feed_member.updated" | "feeds.follow.created" | "feeds.follow.deleted" | "feeds.follow.updated" | "feeds.notification_feed.updated" | "feeds.poll.closed" | "feeds.poll.deleted" | "feeds.poll.updated" | "feeds.poll.vote_casted" | "feeds.poll.vote_changed" | "feeds.poll.vote_removed" | "feeds.stories_feed.updated" | "health.check" | "moderation.custom_action" | "moderation.mark_reviewed" | "user.updated" | "moderation.flagged" | "user.banned" | "user.deactivated" | "user.muted" | "user.reactivated" | "connection.changed" | "errors.unhandled", handler: (event: import(
|
|
59
|
+
on: (eventName: "network.changed" | "all" | "app.updated" | "feeds.activity.added" | "feeds.activity.deleted" | "feeds.activity.feedback" | "feeds.activity.marked" | "feeds.activity.pinned" | "feeds.activity.reaction.added" | "feeds.activity.reaction.deleted" | "feeds.activity.reaction.updated" | "feeds.activity.removed_from_feed" | "feeds.activity.unpinned" | "feeds.activity.updated" | "feeds.bookmark.added" | "feeds.bookmark.deleted" | "feeds.bookmark.updated" | "feeds.bookmark_folder.deleted" | "feeds.bookmark_folder.updated" | "feeds.comment.added" | "feeds.comment.deleted" | "feeds.comment.reaction.added" | "feeds.comment.reaction.deleted" | "feeds.comment.reaction.updated" | "feeds.comment.updated" | "feeds.feed.created" | "feeds.feed.deleted" | "feeds.feed.updated" | "feeds.feed_group.changed" | "feeds.feed_group.deleted" | "feeds.feed_member.added" | "feeds.feed_member.removed" | "feeds.feed_member.updated" | "feeds.follow.created" | "feeds.follow.deleted" | "feeds.follow.updated" | "feeds.notification_feed.updated" | "feeds.poll.closed" | "feeds.poll.deleted" | "feeds.poll.updated" | "feeds.poll.vote_casted" | "feeds.poll.vote_changed" | "feeds.poll.vote_removed" | "feeds.stories_feed.updated" | "health.check" | "moderation.custom_action" | "moderation.mark_reviewed" | "user.updated" | "moderation.flagged" | "user.banned" | "user.deactivated" | "user.muted" | "user.reactivated" | "connection.changed" | "errors.unhandled", handler: (event: import("../..").FeedsEvent) => void) => () => void;
|
|
60
|
+
off: (eventName: "network.changed" | "all" | "app.updated" | "feeds.activity.added" | "feeds.activity.deleted" | "feeds.activity.feedback" | "feeds.activity.marked" | "feeds.activity.pinned" | "feeds.activity.reaction.added" | "feeds.activity.reaction.deleted" | "feeds.activity.reaction.updated" | "feeds.activity.removed_from_feed" | "feeds.activity.unpinned" | "feeds.activity.updated" | "feeds.bookmark.added" | "feeds.bookmark.deleted" | "feeds.bookmark.updated" | "feeds.bookmark_folder.deleted" | "feeds.bookmark_folder.updated" | "feeds.comment.added" | "feeds.comment.deleted" | "feeds.comment.reaction.added" | "feeds.comment.reaction.deleted" | "feeds.comment.reaction.updated" | "feeds.comment.updated" | "feeds.feed.created" | "feeds.feed.deleted" | "feeds.feed.updated" | "feeds.feed_group.changed" | "feeds.feed_group.deleted" | "feeds.feed_member.added" | "feeds.feed_member.removed" | "feeds.feed_member.updated" | "feeds.follow.created" | "feeds.follow.deleted" | "feeds.follow.updated" | "feeds.notification_feed.updated" | "feeds.poll.closed" | "feeds.poll.deleted" | "feeds.poll.updated" | "feeds.poll.vote_casted" | "feeds.poll.vote_changed" | "feeds.poll.vote_removed" | "feeds.stories_feed.updated" | "health.check" | "moderation.custom_action" | "moderation.mark_reviewed" | "user.updated" | "moderation.flagged" | "user.banned" | "user.deactivated" | "user.muted" | "user.reactivated" | "connection.changed" | "errors.unhandled", handler: (event: import("../..").FeedsEvent) => void) => void;
|
|
61
61
|
offAll: (eventName?: "network.changed" | "all" | "app.updated" | "feeds.activity.added" | "feeds.activity.deleted" | "feeds.activity.feedback" | "feeds.activity.marked" | "feeds.activity.pinned" | "feeds.activity.reaction.added" | "feeds.activity.reaction.deleted" | "feeds.activity.reaction.updated" | "feeds.activity.removed_from_feed" | "feeds.activity.unpinned" | "feeds.activity.updated" | "feeds.bookmark.added" | "feeds.bookmark.deleted" | "feeds.bookmark.updated" | "feeds.bookmark_folder.deleted" | "feeds.bookmark_folder.updated" | "feeds.comment.added" | "feeds.comment.deleted" | "feeds.comment.reaction.added" | "feeds.comment.reaction.deleted" | "feeds.comment.reaction.updated" | "feeds.comment.updated" | "feeds.feed.created" | "feeds.feed.deleted" | "feeds.feed.updated" | "feeds.feed_group.changed" | "feeds.feed_group.deleted" | "feeds.feed_member.added" | "feeds.feed_member.removed" | "feeds.feed_member.updated" | "feeds.follow.created" | "feeds.follow.deleted" | "feeds.follow.updated" | "feeds.notification_feed.updated" | "feeds.poll.closed" | "feeds.poll.deleted" | "feeds.poll.updated" | "feeds.poll.vote_casted" | "feeds.poll.vote_changed" | "feeds.poll.vote_removed" | "feeds.stories_feed.updated" | "health.check" | "moderation.custom_action" | "moderation.mark_reviewed" | "user.updated" | "moderation.flagged" | "user.banned" | "user.deactivated" | "user.muted" | "user.reactivated" | "connection.changed" | "errors.unhandled" | undefined) => void;
|
|
62
62
|
/**
|
|
63
63
|
* connect - Connect to the WS URL
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-models.d.ts","sourceRoot":"","sources":["../../../../src/common/real-time/event-models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"event-models.d.ts","sourceRoot":"","sources":["../../../../src/common/real-time/event-models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,EAAE,EAAE,aAAa,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,oBAAY,kBAAkB;IAC5B,0BAA0B,gCAAgC;IAC1D,oCAAoC,8CAA8C;CACnF;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,kBAAkB,CAAC;IACzB,UAAU,EAAE,kBAAkB,CAAC;CAChC,GAAG,CACA;IACE,UAAU,EAAE,kBAAkB,CAAC,0BAA0B,CAAC;IAC1D,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB,GACD;IACE,UAAU,EAAE,kBAAkB,CAAC,oCAAoC,CAAC;IACpE,KAAK,EAAE,cAAc,CAAC;CACvB,CACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseSearchSource } from './BaseSearchSource';
|
|
2
|
-
import { SearchSourceOptions } from './types';
|
|
3
|
-
import { FeedsClient } from '../../feeds-client';
|
|
4
|
-
import { ActivityResponse } from '../../gen/models';
|
|
2
|
+
import type { SearchSourceOptions } from './types';
|
|
3
|
+
import type { FeedsClient } from '../../feeds-client';
|
|
4
|
+
import type { ActivityResponse } from '../../gen/models';
|
|
5
5
|
export declare class ActivitySearchSource extends BaseSearchSource<ActivityResponse> {
|
|
6
6
|
readonly type: "activity";
|
|
7
7
|
private readonly client;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StateStore } from '@stream-io/state-store';
|
|
2
|
-
import { DebouncedFunc } from '../utils';
|
|
3
|
-
import { QueryReturnValue, SearchSourceOptions, SearchSourceState, SearchSourceType } from './types';
|
|
2
|
+
import { type DebouncedFunc } from '../utils';
|
|
3
|
+
import type { QueryReturnValue, SearchSourceOptions, SearchSourceState, SearchSourceType } from './types';
|
|
4
4
|
export type DebounceOptions = {
|
|
5
5
|
debounceMs: number;
|
|
6
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseSearchSource } from './BaseSearchSource';
|
|
2
|
-
import { SearchSourceOptions } from './types';
|
|
3
|
-
import { FeedsClient } from '../../feeds-client';
|
|
4
|
-
import { Feed } from '../../feed';
|
|
2
|
+
import type { SearchSourceOptions } from './types';
|
|
3
|
+
import type { FeedsClient } from '../../feeds-client';
|
|
4
|
+
import type { Feed } from '../../feed';
|
|
5
5
|
export type FeedSearchSourceOptions = SearchSourceOptions & {
|
|
6
6
|
groupId?: string;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseSearchSource } from './BaseSearchSource';
|
|
2
|
-
import { SearchSourceOptions } from './types';
|
|
3
|
-
import { FeedsClient } from '../../feeds-client';
|
|
4
|
-
import { UserResponse } from '../../gen/models';
|
|
2
|
+
import type { SearchSourceOptions } from './types';
|
|
3
|
+
import type { FeedsClient } from '../../feeds-client';
|
|
4
|
+
import type { UserResponse } from '../../gen/models';
|
|
5
5
|
export declare class UserSearchSource extends BaseSearchSource<UserResponse> {
|
|
6
6
|
readonly type: "user";
|
|
7
7
|
private readonly client;
|
|
@@ -10,7 +10,7 @@ export declare class UserSearchSource extends BaseSearchSource<UserResponse> {
|
|
|
10
10
|
items: never[];
|
|
11
11
|
next?: undefined;
|
|
12
12
|
} | {
|
|
13
|
-
items: import(
|
|
13
|
+
items: import("../..").FullUserResponse[];
|
|
14
14
|
next: undefined;
|
|
15
15
|
}>;
|
|
16
16
|
protected filterQueryResults(items: UserResponse[]): UserResponse[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Feed } from '../../feed';
|
|
2
|
-
import { ActivityResponse } from '../../../gen/models';
|
|
3
|
-
import { EventPayload } from '../../../types-internal';
|
|
1
|
+
import type { Feed } from '../../feed';
|
|
2
|
+
import type { ActivityResponse } from '../../../gen/models';
|
|
3
|
+
import type { EventPayload } from '../../../types-internal';
|
|
4
4
|
export declare function addActivitiesToState(this: Feed, newActivities: ActivityResponse[], activities: ActivityResponse[] | undefined, position: 'start' | 'end', { fromWebSocket }?: {
|
|
5
5
|
fromWebSocket: boolean;
|
|
6
6
|
}): {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Feed } from '../../feed';
|
|
2
|
-
import { ActivityPinResponse, ActivityResponse } from '../../../gen/models';
|
|
3
|
-
import { EventPayload, UpdateStateResult } from '../../../types-internal';
|
|
1
|
+
import type { Feed } from '../../feed';
|
|
2
|
+
import type { ActivityPinResponse, ActivityResponse } from '../../../gen/models';
|
|
3
|
+
import type { EventPayload, UpdateStateResult } from '../../../types-internal';
|
|
4
4
|
export declare function removeActivityFromState(this: Feed, activityResponse: ActivityResponse, activities: ActivityResponse[] | undefined): UpdateStateResult<{
|
|
5
5
|
activities: ActivityResponse[] | undefined;
|
|
6
6
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Feed } from '
|
|
2
|
-
import { EventPayload } from '../../../types-internal';
|
|
1
|
+
import type { Feed } from '../../feed';
|
|
2
|
+
import type { EventPayload } from '../../../types-internal';
|
|
3
3
|
export declare function handleActivityFeedback(this: Feed, event: EventPayload<'feeds.activity.feedback'>): void;
|
|
4
4
|
//# sourceMappingURL=handle-activity-feedback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-activity-feedback.d.ts","sourceRoot":"","sources":["../../../../../src/feed/event-handlers/activity/handle-activity-feedback.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handle-activity-feedback.d.ts","sourceRoot":"","sources":["../../../../../src/feed/event-handlers/activity/handle-activity-feedback.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAwC5D,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,YAAY,CAAC,yBAAyB,CAAC,QA4B/C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ActivityMarkEvent, NotificationStatusResponse } from '../../../gen/models';
|
|
2
|
-
import { EventPayload, UpdateStateResult } from '../../../types-internal';
|
|
3
|
-
import { Feed } from '../../feed';
|
|
1
|
+
import type { ActivityMarkEvent, NotificationStatusResponse } from '../../../gen/models';
|
|
2
|
+
import type { EventPayload, UpdateStateResult } from '../../../types-internal';
|
|
3
|
+
import type { Feed } from '../../feed';
|
|
4
4
|
export declare const updateNotificationStatusFromActivityMarked: (event: ActivityMarkEvent, currentNotificationStatus: NotificationStatusResponse | undefined, aggregatedActivities?: Array<{
|
|
5
5
|
group: string;
|
|
6
6
|
}>) => UpdateStateResult<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventPayload } from '../../../types-internal';
|
|
2
|
-
import { Feed } from '../../feed';
|
|
1
|
+
import type { EventPayload } from '../../../types-internal';
|
|
2
|
+
import type { Feed } from '../../feed';
|
|
3
3
|
export declare function handleActivityPinned(this: Feed, event: EventPayload<'feeds.activity.pinned'>): void;
|
|
4
4
|
//# sourceMappingURL=handle-activity-pinned.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Feed } from '../../feed';
|
|
2
|
-
import { ActivityPinResponse, ActivityResponse } from '../../../gen/models';
|
|
3
|
-
import { EventPayload, PartializeAllBut } from '../../../types-internal';
|
|
1
|
+
import type { Feed } from '../../feed';
|
|
2
|
+
import type { ActivityPinResponse, ActivityResponse } from '../../../gen/models';
|
|
3
|
+
import type { EventPayload, PartializeAllBut } from '../../../types-internal';
|
|
4
4
|
export type ActivityReactionAddedPayload = PartializeAllBut<EventPayload<'feeds.activity.reaction.added'>, 'activity' | 'reaction'>;
|
|
5
5
|
export declare const addReactionToActivities: (payload: ActivityReactionAddedPayload, activities: ActivityResponse[] | undefined, eventBelongsToCurrentUser: boolean) => {
|
|
6
6
|
changed: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Feed } from '../../feed';
|
|
2
|
-
import { ActivityPinResponse, ActivityResponse } from '../../../gen/models';
|
|
3
|
-
import { EventPayload, PartializeAllBut } from '../../../types-internal';
|
|
1
|
+
import type { Feed } from '../../feed';
|
|
2
|
+
import type { ActivityPinResponse, ActivityResponse } from '../../../gen/models';
|
|
3
|
+
import type { EventPayload, PartializeAllBut } from '../../../types-internal';
|
|
4
4
|
export type ActivityReactionDeletedPayload = PartializeAllBut<EventPayload<'feeds.activity.reaction.deleted'>, 'activity' | 'reaction'>;
|
|
5
5
|
export declare const removeReactionFromActivities: (payload: ActivityReactionDeletedPayload, activities: ActivityResponse[] | undefined, eventBelongsToCurrentUser: boolean) => {
|
|
6
6
|
changed: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Feed } from '../../feed';
|
|
2
|
-
import { ActivityPinResponse, ActivityResponse } from '../../../gen/models';
|
|
3
|
-
import { EventPayload, PartializeAllBut } from '../../../types-internal';
|
|
1
|
+
import type { Feed } from '../../feed';
|
|
2
|
+
import type { ActivityPinResponse, ActivityResponse } from '../../../gen/models';
|
|
3
|
+
import type { EventPayload, PartializeAllBut } from '../../../types-internal';
|
|
4
4
|
export type ActivityReactionUpdatedPayload = PartializeAllBut<EventPayload<'feeds.activity.reaction.updated'>, 'activity' | 'reaction'>;
|
|
5
5
|
export declare const updateReactionInActivities: (payload: ActivityReactionUpdatedPayload, activities: ActivityResponse[] | undefined, eventBelongsToCurrentUser: boolean) => {
|
|
6
6
|
changed: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Feed } from '../../../feed';
|
|
2
|
-
import { EventPayload } from '../../../types-internal';
|
|
1
|
+
import type { Feed } from '../../../feed';
|
|
2
|
+
import type { EventPayload } from '../../../types-internal';
|
|
3
3
|
export declare function handleActivityRemovedFromFeed(this: Feed, event: EventPayload<'feeds.activity.removed_from_feed'>): void;
|
|
4
4
|
//# sourceMappingURL=handle-activity-removed-from-feed.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventPayload } from '../../../types-internal';
|
|
2
|
-
import { Feed } from '../../feed';
|
|
1
|
+
import type { EventPayload } from '../../../types-internal';
|
|
2
|
+
import type { Feed } from '../../feed';
|
|
3
3
|
export declare function handleActivityUnpinned(this: Feed, event: EventPayload<'feeds.activity.unpinned'>): void;
|
|
4
4
|
//# sourceMappingURL=handle-activity-unpinned.d.ts.map
|