Merge branch 'develop' of https://codeberg.org/mkljczk/pl-fe into develop
Some checks failed
Nicolium CI / Test and upload artifacts (22.x) (push) Has been cancelled
Nicolium CI / release (push) Has been cancelled
Nicolium CI / deploy (push) Has been cancelled
pl-api CI / Test for pl-api formatting (22.x) (push) Has been cancelled
pl-hooks CI / Test for a successful build (22.x) (push) Has been cancelled
Some checks failed
Nicolium CI / Test and upload artifacts (22.x) (push) Has been cancelled
Nicolium CI / release (push) Has been cancelled
Nicolium CI / deploy (push) Has been cancelled
pl-api CI / Test for pl-api formatting (22.x) (push) Has been cancelled
pl-hooks CI / Test for a successful build (22.x) (push) Has been cancelled
This commit is contained in:
@ -38,8 +38,8 @@ For unsupported projects, it falls back to a basic feature set, though every met
|
||||
|
||||
## Projects using `pl-api`
|
||||
|
||||
- [Nicolium](https://codeberg.org/nicolium/nicolium/src/branch/develop/packages/nicolium) is a web client for Mastodon-compatible servers forked from Soapbox. It uses `pl-api` for API interactions.
|
||||
- [`pl-hooks`](https://codeberg.org/nicolium/nicolium/src/branch/develop/packages/pl-hooks) is a work-in-progress library utilizing `pl-api`.
|
||||
- [Nicolium](https://codeberg.org/nicolium/nicolium/src/packages/nicolium) is a web client for Mastodon-compatible servers forked from Soapbox. It uses `pl-api` for API interactions.
|
||||
- [`pl-hooks`](https://codeberg.org/nicolium/nicolium/src/packages/pl-hooks) is a work-in-progress library utilizing `pl-api`.
|
||||
|
||||
If you are using `pl-api` in your project, please open a pull request with a link to the project.
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import * as v from 'valibot';
|
||||
|
||||
import { statusSchema } from './status';
|
||||
import { type Status, statusSchema } from './status';
|
||||
|
||||
const quoteStateSchema = v.picklist([
|
||||
'pending',
|
||||
@ -26,7 +26,10 @@ const quoteSchema = v.object({
|
||||
/**
|
||||
* @category Entity types
|
||||
*/
|
||||
type Quote = v.InferOutput<typeof quoteSchema>;
|
||||
interface Quote {
|
||||
state: v.InferOutput<typeof quoteStateSchema>;
|
||||
quoted_status: Status | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Schemas
|
||||
|
||||
@ -10,7 +10,7 @@ pl-api is a TypeScript/JavaScript library that provides a type-safe client for i
|
||||
|
||||
- Version: 1.0.0-rc.94
|
||||
- License: AGPL-3.0-or-later
|
||||
- Homepage: https://codeberg.org/nicolium/nicolium/src/branch/develop/packages/pl-api
|
||||
- Homepage: https://codeberg.org/nicolium/nicolium/src/packages/pl-api
|
||||
- Documentation: https://pl.mkljczk.pl/pl-api-docs
|
||||
- NPM package: https://www.npmjs.com/package/pl-api
|
||||
|
||||
@ -98,7 +98,7 @@ page1.items.forEach(account => console.log(account.username));
|
||||
## Projects using pl-api
|
||||
|
||||
- Nicolium - Web client for Mastodon-compatible servers (https://codeberg.org/nicolium/nicolium)
|
||||
- **pl-hooks** - React hooks library for Mastodon APIs (https://codeberg.org/nicolium/nicolium/src/branch/develop/packages/pl-hooks)
|
||||
- **pl-hooks** - React hooks library for Mastodon APIs (https://codeberg.org/nicolium/nicolium/src/packages/pl-hooks)
|
||||
|
||||
## Development
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "pl-api",
|
||||
"version": "1.0.0-rc.99",
|
||||
"homepage": "https://codeberg.org/nicolium/nicolium/src/branch/develop/packages/pl-api",
|
||||
"homepage": "https://codeberg.org/nicolium/nicolium/src/packages/pl-api",
|
||||
"bugs": {
|
||||
"url": "https://codeberg.org/nicolium/nicolium/issues"
|
||||
},
|
||||
@ -45,23 +45,23 @@
|
||||
"object-to-formdata": "^4.5.1",
|
||||
"query-string": "^9.3.1",
|
||||
"semver": "^7.7.4",
|
||||
"valibot": "^1.2.0"
|
||||
"valibot": "^1.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/http-link-header": "^1.0.7",
|
||||
"@types/node": "^25.3.5",
|
||||
"@types/semver": "^7.7.1",
|
||||
"@vitest/coverage-v8": "4.1.0",
|
||||
"oxfmt": "^0.40.0",
|
||||
"oxfmt": "^0.41.0",
|
||||
"oxlint": "^1.55.0",
|
||||
"typedoc": "^0.28.17",
|
||||
"typedoc-material-theme": "^1.4.1",
|
||||
"typedoc-plugin-valibot": "^1.0.2",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^8.0.0",
|
||||
"vite": "^8.0.1",
|
||||
"vite-plugin-dts": "^4.5.4",
|
||||
"vitest": "^4.1.0",
|
||||
"ws": "^8.19.0"
|
||||
"ws": "^8.20.0"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,cjs,mjs,ts}": [
|
||||
|
||||
Reference in New Issue
Block a user