mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
04ed106c73
refs [AP-614](https://linear.app/ghost/issue/AP-614/investigate-client-loading-issues) Refactored data loading to be more performant in admin-x-activitypub: - Utilised tanstack query for suggested profiles instead of rolling our own custom hook. This allows us to utilise tanstack for caching - Refactored how data is loaded for the Inbox / Feed view - Queries are no longer cleared when switching between the 2 layouts - Refactored how activity data is key'd to make caching more deterministic as well as allow mutating a specific activity cache (i.e when adding a note, ensure it only gets added the the feed activities) - Removed redundant `excludeNonFollowers` parameter - This is no longer used by the API
75 lines
2 KiB
JSON
75 lines
2 KiB
JSON
{
|
|
"name": "@tryghost/admin-x-activitypub",
|
|
"version": "0.3.31",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/TryGhost/Ghost/tree/main/apps/admin-x-activitypub"
|
|
},
|
|
"author": "Ghost Foundation",
|
|
"files": [
|
|
"LICENSE",
|
|
"README.md",
|
|
"dist/"
|
|
],
|
|
"main": "./dist/admin-x-activitypub.umd.cjs",
|
|
"module": "./dist/admin-x-activitypub.js",
|
|
"private": false,
|
|
"scripts": {
|
|
"dev": "vite build --watch",
|
|
"dev:start": "vite",
|
|
"build": "tsc && vite build",
|
|
"lint": "yarn run lint:code && yarn run lint:test",
|
|
"lint:code": "eslint --ext .js,.ts,.cjs,.tsx --cache src",
|
|
"lint:test": "eslint -c test/.eslintrc.cjs --ext .js,.ts,.cjs,.tsx --cache test",
|
|
"test:unit": "tsc --noEmit && vitest run",
|
|
"test:acceptance": "NODE_OPTIONS='--experimental-specifier-resolution=node --no-warnings' VITE_TEST=true playwright test",
|
|
"test:acceptance:slowmo": "TIMEOUT=100000 PLAYWRIGHT_SLOWMO=100 yarn test:acceptance --headed",
|
|
"test:acceptance:full": "ALL_BROWSERS=1 yarn test:acceptance",
|
|
"preview": "vite preview"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "1.46.1",
|
|
"@testing-library/react": "14.3.1",
|
|
"@types/jest": "29.5.12",
|
|
"@types/react": "18.3.3",
|
|
"@types/react-dom": "18.3.0",
|
|
"jest": "29.7.0",
|
|
"ts-jest": "29.1.5"
|
|
},
|
|
"nx": {
|
|
"targets": {
|
|
"build": {
|
|
"dependsOn": [
|
|
"^build"
|
|
]
|
|
},
|
|
"dev": {
|
|
"dependsOn": [
|
|
"^build"
|
|
]
|
|
},
|
|
"test:unit": {
|
|
"dependsOn": [
|
|
"^build",
|
|
"test:unit"
|
|
]
|
|
},
|
|
"test:acceptance": {
|
|
"dependsOn": [
|
|
"^build",
|
|
"test:acceptance"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@radix-ui/react-form": "0.0.3",
|
|
"@tryghost/admin-x-design-system": "0.0.0",
|
|
"@tryghost/admin-x-framework": "0.0.0",
|
|
"clsx": "2.1.1",
|
|
"react": "18.3.1",
|
|
"react-dom": "18.3.1",
|
|
"use-debounce": "10.0.4"
|
|
}
|
|
}
|