logseq/libs
Charlie 036df25a17
Enhance: plugin APIs (#10399)
* enhance(plugin): call apis with the sdk ns

* enhance(plugin): types

* enhance(api): get value from the computed style

* enhance(api): types

* enhance(plugin): types

* enhance(plugin): types

* fix: lint

* fix(apis): incorrect shortcut command registion for block editing mode #10392

* fix(api): types

* enhance(apis): support register shortcuts with multi binding vals

* fix(plugins): normalize command key to make the internal keyword legal

* chore(plugin): build libs core

* chore(plugin): bump version

* enhance(apis): normalize apis cljs data

* chore(plugin): update libs user sdk

* chore(plugin): CHANGELOG.md

* fix: typo

* fix(ux): support querying plugins with right space chars
2023-12-13 15:42:21 +08:00
..
src Enhance: plugin APIs (#10399) 2023-12-13 15:42:21 +08:00
.gitignore feat!: File Sync (#5355) 2022-09-01 00:31:49 +08:00
.npmignore Enhance / Plugin APIs (#6945) 2022-11-22 22:00:29 +08:00
.prettierrc.js Enhance/more ns plugin api (#4828) 2022-04-21 18:43:16 +08:00
CHANGELOG.md Enhance: plugin APIs (#10399) 2023-12-13 15:42:21 +08:00
README.md chore(plugin): build libs core & update README.md 2022-04-29 18:51:25 +08:00
babel.config.json Enhance / Plugin APIs (#6945) 2022-11-22 22:00:29 +08:00
index.d.ts feat(plugin): merge implementation 2021-05-08 20:32:20 +08:00
package.json Enhance: plugin APIs (#10399) 2023-12-13 15:42:21 +08:00
tsconfig.json improve(plugin): simplify caller 2021-08-23 18:19:06 +08:00
webpack.config.core.js Enhance/plugin apis (#3355) 2021-12-08 10:43:58 +08:00
webpack.config.js fix(plugin): correct parameters of datascript query api 2022-12-22 21:14:36 +08:00
yarn.lock chore(deps): bump @babel/traverse from 7.20.1 to 7.23.2 in /libs 2023-10-27 12:30:14 +09:00

README.md

@logseq/libs

🚀 Logseq SDK libraries.

Installation

yarn add @logseq/libs

Usage

Load logseq plugin sdk as global namespace

import "@logseq/libs"

APIs & Samples

Community templates

  1. https://github.com/pengx17/logseq-plugin-template-react
  2. https://github.com/pengx17/logseq-plugin-template-svelte
  3. https://github.com/tiensonqin/logseq-cljs-playground

Feedback

If you have any feedback or encounter any issues, feel free to join Logseq's discord group. https://discord.gg/KpN4eHY