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

@ -1,6 +1,6 @@
{
"name": "pl-api",
"version": "1.0.0-rc.91",
"version": "1.0.0-rc.92",
"type": "module",
"homepage": "https://codeberg.org/mkljczk/pl-fe/src/branch/develop/packages/pl-api",
"repository": {

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'],
},
});

3
pnpm-lock.yaml generated
View File

@ -588,7 +588,7 @@ importers:
packages/pl-hooks:
dependencies:
'@tanstack/react-query':
specifier: ^5.59.16
specifier: ^5.84.1
version: 5.84.1(react@18.3.1)
lodash:
specifier: ^4.17.21
@ -4256,6 +4256,7 @@ packages:
intersection-observer@0.12.2:
resolution: {integrity: sha512-7m1vEcPCxXYI8HqnL8CKI6siDyD+eIWSwgB3DZA+ZTogxk9I4CDnj4wilt9x/+/QbHI4YG5YZNmC6458/e9Ktg==}
deprecated: The Intersection Observer polyfill is no longer needed and can safely be removed. Intersection Observer has been Baseline since 2019.
intl-messageformat@10.7.16:
resolution: {integrity: sha512-UmdmHUmp5CIKKjSoE10la5yfU+AYJAaiYLsodbjL4lji83JNvgOQUjGaGhGrpFCb0Uh7sl7qfP1IyILa8Z40ug==}