pl-hooks: update

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-10-22 17:53:36 +02:00
parent 425846259c
commit 80654146a2
7 changed files with 8 additions and 7 deletions

View File

@ -85,7 +85,7 @@ const importEntities = (entities: {
processAccount(status.account);
}
if (status.quote) processStatus(status.quote);
if (status.quote && 'quoted_status' in status.quote && status.quote.quoted_status) processStatus(status.quote.quoted_status);
if (status.reblog) processStatus(status.reblog);
if (status.poll) polls[status.poll.id] = status.poll;
if (status.group) groups[status.group.id] = status.group;

View File

@ -70,7 +70,7 @@ const normalizeNotification = (notification: BaseNotification | DeduplicatedNoti
status_id: string;
}
| {
type: 'status' | 'reblog' | 'favourite' | 'poll' | 'update' | 'event_reminder';
type: 'status' | 'reblog' | 'favourite' | 'poll' | 'update' | 'event_reminder' | 'quote' | 'quoted_update';
status_id: string;
}
| {

View File

@ -58,7 +58,6 @@ const normalizeStatus = ({ account, accounts, reblog, poll, group, quote, ...sta
expectsCard: false,
showFiltered: null as null | boolean,
...status,
quote_id: quote?.id || status.quote_id || null,
mentions,
filtered: status.filtered?.map(result => result.filter.title),
event,

View File

@ -1,6 +1,6 @@
{
"name": "pl-hooks",
"version": "0.0.13",
"version": "0.0.14",
"type": "module",
"homepage": "https://codeberg.org/mkljczk/pl-fe/src/branch/develop/packages/pl-hooks",
"repository": {
@ -33,7 +33,7 @@
"vite-plugin-dts": "^4.2.1"
},
"dependencies": {
"@tanstack/react-query": "^5.59.16",
"@tanstack/react-query": "^5.84.1",
"lodash": "^4.17.21",
"pl-api": "workspace:*",
"react": "^18.3.1",

View File

@ -26,5 +26,6 @@ export default defineConfig({
alias: [
{ find: 'pl-hooks', replacement: fileURLToPath(new URL('./lib', import.meta.url)) },
],
dedupe: ['valibot'],
},
});