diff --git a/package.json b/package.json index 7733fe5..371b970 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "logseq-plugin-paste-more", - "version": "1.5.4", + "version": "1.5.5", "main": "dist/index.html", "logseq": { "id": "_usoon-logseq-paste-more", diff --git a/public/index.ts b/public/index.ts index 65bbd38..0636352 100644 --- a/public/index.ts +++ b/public/index.ts @@ -2,9 +2,9 @@ import "@logseq/libs" import TurndownService from './turndown.js'; import {gfm} from '@guyplusplus/turndown-plugin-gfm' import { splitBlock } from "./splitBlock"; +import { SettingSchemaDesc } from "@logseq/libs/dist/LSPlugin.user"; -async function main() { - logseq.useSettingsSchema([ +const settings: SettingSchemaDesc[] = [ { key: "indentHeaders", title: 'Whether to indent headers', @@ -31,10 +31,10 @@ async function main() { title: 'Enable paste more', type: "boolean", default: true, - description: '' - } -]); + description: ''} +]; +async function main() { function createModel() { return { controlUsage @@ -177,4 +177,4 @@ async function main() { } -logseq.ready(main).catch(console.error) +logseq.useSettingsSchema(settings).ready(main).catch(console.error)