logseq/libs
Charlie d53ac94bfc
Enhance/pdf improvements (#6475)
Full-text search, highlights and assets alias support 
It also exposes a plugin API for highlight context menu   
    ```ts
    /**
       * Current it's only available for pdf viewer
       * @param label - displayed name of command
       * @param action - callback for the clickable item
       * @param opts - clearSelection: clear highlight selection when callback invoked
       */
      registerHighlightContextMenuItem: (
        label: string,
        action: SimpleCommandCallback,
        opts?: {
          clearSelection: boolean
        }
      ) => unknown
    ```
2022-10-09 20:44:18 +08:00
..
src Enhance/pdf improvements (#6475) 2022-10-09 20:44:18 +08:00
.gitignore feat!: File Sync (#5355) 2022-09-01 00:31:49 +08:00
.npmignore Enhance/pdf improvements (#6475) 2022-10-09 20:44:18 +08:00
.prettierrc.js Enhance/more ns plugin api (#4828) 2022-04-21 18:43:16 +08:00
README.md chore(plugin): build libs core & update README.md 2022-04-29 18:51:25 +08:00
index.d.ts feat(plugin): merge implementation 2021-05-08 20:32:20 +08:00
package.json Merge remote-tracking branch 'upstream/master' into whiteboards 2022-10-07 16:18:27 +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 Enhance/more ns plugin api (#4828) 2022-04-21 18:43:16 +08:00
yarn.lock chore(deps): bump terser from 5.7.1 to 5.14.2 in /libs 2022-07-26 22:34:02 +08: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