|
|
há 3 dias atrás | |
|---|---|---|
| .. | ||
| cljs-sdk | há 1 semana atrás | |
| scripts | há 1 semana atrás | |
| src | há 3 dias atrás | |
| .gitignore | há 3 anos atrás | |
| .npmignore | há 1 semana atrás | |
| .prettierrc.js | há 3 anos atrás | |
| CHANGELOG.md | há 1 ano atrás | |
| README.md | há 1 semana atrás | |
| babel.config.json | há 2 anos atrás | |
| index.d.ts | há 4 anos atrás | |
| package.json | há 1 semana atrás | |
| tsconfig.json | há 4 anos atrás | |
| webpack.config.core.js | há 3 anos atrás | |
| webpack.config.js | há 2 anos atrás | |
| yarn.lock | há 1 semana atrás | |
🚀 Logseq SDK libraries.
yarn add @logseq/libs
Load logseq plugin sdk as global namespace
import "@logseq/libs"
If you have any feedback or encounter any issues, feel free to join Logseq's discord group. https://discord.gg/KpN4eHY
To regenerate the ClojureScript facade from the JS SDK declarations (keeping the same argument shapes as the JS APIs while auto-converting to/from CLJS data):
yarn run generate:schema # emits dist/logseq-sdk-schema.json
bb libs:generate-cljs-sdk # emits logseq/core.cljs and per-proxy files under target/generated-cljs
Non-proxy methods (those defined on ILSPluginUser, e.g. ready, provide-ui) land in logseq.core. Each proxy (IAppProxy, IEditorProxy, ...) is emitted to its own namespace such as logseq.app or logseq.editor, preserving the original JS argument ordering while automatically bean-converting CLJS data.
Pass --out-dir to change the output location or --ns-prefix to pick a different namespace root.