@singi-labs/sifa-sdk 0.19.5 → 0.19.7
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/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/{network-map-ZV2UJZ3c.d.ts → network-map-BXpm9LIk.d.ts} +1 -1
- package/dist/{network-map-DtmFGMeM.d.cts → network-map-DUIEbJf9.d.cts} +1 -1
- package/dist/{org-eHZkLNx1.d.cts → org-Bfrfa9sD.d.cts} +33 -2
- package/dist/{org-CvJVOYuN.d.ts → org-H2bPqXeC.d.ts} +33 -2
- package/dist/query/fetchers/index.cjs +2 -1
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +3 -3
- package/dist/query/fetchers/index.d.ts +3 -3
- package/dist/query/fetchers/index.js +2 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +6 -2
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/hooks/index.js +6 -2
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +6 -2
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +5 -5
- package/dist/query/index.d.ts +5 -5
- package/dist/query/index.js +6 -2
- package/dist/query/index.js.map +1 -1
- package/dist/{use-org-notification-emails-BZiMeD75.d.ts → use-org-notification-emails-CTFwRc0O.d.ts} +2 -2
- package/dist/{use-org-notification-emails-GNUX9-5y.d.cts → use-org-notification-emails-utRDdmt0.d.cts} +2 -2
- package/package.json +1 -1
package/dist/query/index.cjs
CHANGED
|
@@ -1242,7 +1242,8 @@ var FOLLOWING_FEED_LXM = "id.sifa.feed.getFollowingFeed";
|
|
|
1242
1242
|
async function fetchFollowingFeed(config, opts = {}) {
|
|
1243
1243
|
const params = new URLSearchParams();
|
|
1244
1244
|
if (opts.limit) params.set("limit", String(opts.limit));
|
|
1245
|
-
if (opts.
|
|
1245
|
+
if (opts.app) params.set("app", opts.app);
|
|
1246
|
+
else if (opts.includeBluesky) params.set("includeBluesky", "true");
|
|
1246
1247
|
const qs = params.toString();
|
|
1247
1248
|
const headers = { ...opts.headers ?? {} };
|
|
1248
1249
|
if (opts.cookieHeader) headers.cookie = opts.cookieHeader;
|
|
@@ -3160,9 +3161,12 @@ function useFollowingList(handle, opts = {}, options) {
|
|
|
3160
3161
|
function useFollowingFeed(opts = {}, options) {
|
|
3161
3162
|
const config = useSifaConfig();
|
|
3162
3163
|
return reactQuery.useQuery({
|
|
3164
|
+
// `app` is part of the key: each source tab is its own cache entry, so
|
|
3165
|
+
// switching tabs does not serve the previous tab's items.
|
|
3163
3166
|
queryKey: sifaQueryKeys.follow.feed({
|
|
3164
3167
|
limit: opts.limit,
|
|
3165
|
-
includeBluesky: opts.includeBluesky
|
|
3168
|
+
includeBluesky: opts.includeBluesky,
|
|
3169
|
+
app: opts.app
|
|
3166
3170
|
}),
|
|
3167
3171
|
queryFn: () => fetchFollowingFeed(config, opts),
|
|
3168
3172
|
...options
|