charlie
b755369a0b
enhance(apis): get blocks from batch blocks insertion
2024-08-15 17:26:51 +08:00
charlie
4a0f1d7c4f
chore(libs): next version for libs package
2024-08-14 17:52:58 +08:00
charlie
7209540fe2
fix(api): compatible block content/title for the classic APIs
2024-07-31 12:05:44 +08:00
Gabriel Horner
36d1ee7790
Merge branch 'master' into feat/db
2024-07-22 09:43:21 -04:00
YU
b383a6102d
update README.md (A link add to the community template)
2024-07-22 21:32:24 +08:00
charlie
73757c0f21
enhance(api): enhancements & types
2024-06-21 09:57:05 +08:00
charlie
bdfda0b9db
enhance(api): block related types
2024-06-04 15:32:09 +08:00
charlie
de9940dc9b
enhance(plugin): more args extensible for the exported editor component
2024-04-09 23:30:36 +08:00
charlie
18a1655cac
enhance(plugin): support custom daemon renderer from the plugin sdk
2024-03-22 15:25:02 +08:00
charlie
9e84bd44f2
enhance(plugin): export experiments scope components
2024-03-22 00:09:37 +08:00
charlie
53125d6315
enhance(plugin): support custom routes from the plugin sdk
2024-03-21 19:07:16 +08:00
Charlie
7db164ab47
Enhance: APIs related issues ( #10782 )
...
* fix(plugins): load unpacked package for the existed plugin
* enhance(plugin): increase timeout time for the plugin handshake
* enhance(api): support option to insert block with auto ordered list
* fix(api): skip empty target for the batch insertion blocks
* fix(api): before option for the batch blocks insertion
* enhance(api): types
* chore: bump minor version
* fix(apis): Empty `payload.uuid` when executing onMacroRendererSlotted inside query table
2024-01-16 15:47:56 +08:00
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
Tienson Qin
88acf53303
fix: lint warnings
2023-11-13 22:59:34 +08:00
Tienson Qin
de4ad909a9
Merge branch 'master' into feat/cmdk
2023-11-06 16:12:02 +08:00
Tienson Qin
b91fd4e6c8
Remove old cmdk && command palette
2023-11-06 15:25:35 +08:00
dependabot[bot]
a67ed5c114
chore(deps): bump @babel/traverse from 7.20.1 to 7.23.2 in /libs
...
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse ) from 7.20.1 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse )
---
updated-dependencies:
- dependency-name: "@babel/traverse"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-27 12:30:14 +09:00
hkgnp
1c0e18daaa
chore: add marker prop to BlockEntity interface
2023-10-05 11:08:53 +09:00
Charlie
331afbc04f
Enhance/plugins apis ( #10127 )
...
* enhance(api): add page to recent for route api
* enhance(api): support open block in right sidebar with entity id
2023-09-06 14:49:18 +00:00
charlie
2eaa1162e1
enhance(plugin): better log for beforeunload hook on user side
2023-08-30 14:17:14 +08:00
Allan Chain
bba8aa5729
fix: reject promise on child error
...
So that the we won't await infinitely.
Fixes #10107
2023-08-30 14:17:14 +08:00
Leonardo Salgueiro
5e1117ef92
fix(bug): #4447 ( #10111 )
...
* actually using result from deepMerge when updating settings
* replacing merge from lodash with merge from deepmerge
---------
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2023-08-30 14:15:45 +08:00
Charlie
6d6da2046c
Enhance/shortcuts ( #9803 )
...
* refactor(shortcuts): simplify to build handler category map
* fix(shortcuts): redundant re-mount for the pdf shortcuts
* refactor(shortcuts): simplify names
* refactor(shortcuts): simplify user keynames
* fix(shortcuts): persist inited state for dev mode
* refactor(shortcuts): simplify handlers installation
* refactor(shortcuts): optimize shortcuts mixin
* fix: incorrect function ref
* refactor(shortcuts): shortcuts mixin
* fix(shortcuts): incorrect initialization for the pdf shortcut handler
* refactor(shortcuts): optimize binding keys map
* refactor(shortcuts): optimize shortcuts conflicts detection
* refactor(shortcuts): optimize binding ids map
* refactor(shortcuts): WIP the new keymap page
* refactor(shortcuts): WIP the new keymap related components
* feat(shortcuts): WIP fuzzy search for the shortcuts
* refactor(shortcuts): WIP the new keymap related components
* feat(shortcuts): WIP the new shorcuts record component
* feat(shortcuts): WIP the new shorcuts record component
* feat(shortcuts): WIP check shortcut conflicts component
* feat(shortcuts): WIP the new shorcuts record component
* refactor(shortcuts): WIP persist user shortcuts
* fix(shortcuts): detection for the conflicts
* feat(shortcuts): WIP detection for the conflicts
* feat(shortcuts): WIP persist user shortcuts
* refactor(shortcuts): add unit tests
* enhance(ux): search pane for the shortcuts
* feat(shortcuts): remove the existent shortcut item
* feat(shortcuts): fold/unfold categories
* feat(shortcuts): add shortcuts filters
* enhance(shortcuts): resove binding map description
* enhance(shortcuts): reactive category shortcuts
* enhance(shortcuts): register api for plugins
* feat(shortcuts): add keyboard shortcuts filters
* feat(shortcuts): impl keyboard shortcuts filters
* enhance(shortcuts): leader keys for the shortcut conflicts detection
* enhance(tests): leader keys conflicts for the shortucts
* enhance(shortcuts): parse conflicts from current binding list
* enhance(ui): polish the component of the restore shortcut action
* enhance(shortcuts): get conflicts with specific handler id
* enhance(shortcuts): polish the confilts component
* enhance(shortcuts): polish keymap conflicts component
* enhance(shortcuts): ux for handling shorcuts conflicts
* enhance(ui): polish notifications cp
* fix(shortcuts): remove reduplicate shortcuts for category
* enhance(shortcuts): polish ux for handling shorcuts conflicts
* chore(plugin): build libs core
* enhance(plugin): support shortcut command lifecycle hooks
* enhance(plugin): support shortcut command lifecycle hooks
* chore(plugin): build libs core
* enhance(shortcuts): support shortcuts saved to global config
* enhance(shortcuts): support shortcuts be saved to global config
* feat(shortcuts): support keymap manager to global settings
* enhance(shortcuts): shortcut to open keymap settings
* fix(units): tests
* fix: lints
* enhance(shortcuts): unlisten all shortcuts
* fix: lints
* fix: lints
* fix(units): tests
* fix(units): tests
* fix(units): tests
* enhance(shortcuts): unlisten/listen all shortcuts
* enhance(shortcuts): polish conflicts component
* fix(ui): modal size
* fix(ui): modal panel container
* enhance(shortcuts): i18n
* enhance(ui): layout of the shortcuts recorder component
* fix(lint): i18n
* enhance(ui): keyboard icon for the keymap settings tab
* fix(shortcuts): incorrect filters for the collaspsed shortcuts
* enhance(ui): polish details for the keymap settings
* enhance(ui): polish details for the keymap settings
* fix(shortcuts): get shortcut description error when the associated handler-id not exist
* fix(ui): the shortcut disabled label overlaps with section headers.
* refactor(shortcuts): names
* enhance(ui): filter icons
2023-08-29 19:33:48 +08:00
Gabriel Horner
2b90b0462a
Remove explicit :block/unordered that should already be deleted
2023-07-24 10:26:02 -04:00
dependabot[bot]
c7aa85a7bc
chore(deps): bump semver from 6.3.0 to 6.3.1 in /libs
...
Bumps [semver](https://github.com/npm/node-semver ) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases )
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md )
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-12 14:29:13 +08:00
Phil Denhoff
ec658d1e67
enhance: IAppProxy, IEditorProxy, BlockEntity and PageEntity have strict interfaces ( #9520 )
...
* types: remove problematic Record<string, any>
* types: remove `[key: string]: any` which clobbers all other type info
* fix: support alternative dev entrypoint
* fix: normalize boolean value to string
* fix: identify field used for legacy themes (?)
* fix: add missing `effect` and `iir` properties, which are likely internal only
* docs: move comment to JS Doc so it should show up in docs
* fix: add missing internal `lsr` field
* bump package to 0.1.15 to indicate breaking API change
* fix: ensure that Plugins can access their settings... if they exist
* Revert "bump package to 0.1.15 to indicate breaking API change"
This reverts commit 6e0d1094f2
.
---------
Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2023-06-20 16:59:55 -04:00
Charlie
60fbfdf2f7
Enhance: plugin-related improvements ( #8787 )
...
- fix: Select and Input elements rendered using provideUI via onMacroRendererSlotted don't function #8374
- fix: logseq.Editor.getPageBlocksTree does not work when page uuid is passed in as param #4920
- feat: add a plug-in flag for the plugin slash commands item
- feat: add logseq.App.setCurrentGraphConfigs: (configs: {}) => Promise<void>
- feat: add hook logseq.App.onTodayJournalCreated: IUserHook<{ title: string }
- enhance: auto-check updates for the installed plugins from Marketplace
- feat: expose template-related APIs to SDK
2023-04-12 21:27:40 +08:00
charlie
8b406f68c7
fix(plugin): incorrect status for beforeunload hook
2023-03-06 12:05:39 +08:00
charlie
ec6e99e447
fix(plugin): force disable the unloaded(error) plugin
2023-02-28 15:13:42 +08:00
Zhizhen He
25c15053d6
feat: add typos to GitHub action
...
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-02-21 12:01:58 -05:00
Junyi Du
05ff96ebf9
fix: search service plugin API typo
2023-01-12 00:47:44 +08:00
Charlie
675811ccde
Enhance/plugins ( #8202 )
...
* improve(plugins): install hooks with user options
* improve(plugin): remove todos
* improve(plugin): hook for a specific plugin
* e2e tests
* improve(ui): global search bar for the results from the custom search service
2023-01-05 19:30:41 +08:00
dependabot[bot]
f592fd24a2
chore(deps): bump json5 from 2.2.1 to 2.2.2 in /libs
...
Bumps [json5](https://github.com/json5/json5 ) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.2 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-30 17:41:54 +08:00
charlie
316ac6afd9
improve(apis): events data for injected ui
2022-12-26 12:10:23 +08:00
charlie
488d376262
fix(plugin): correct parameters of datascript query api
2022-12-22 21:14:36 +08:00
Charlie
020317911f
Enhance/plugin APIs ( #7555 )
...
* feat: WIP native cli command support
* Add :shell/command-whitelist option
* Integrate cli to code block
* Add :code-block/command-whitelist option
* fix: size of icon
* improve(shell): cache user shell whitelist on application configures file
* improve(electron): promisify run cli command
* chore(libs): update version
* fix(plugin): incorrect payload of pdf highlights section hook
* improve(plugin): block renderer with specific block uuid
* improve(plugin): expose logger for user lib
* improve(plugin): block hooks type
* improve(plugin): block slot hook with specific block
* improve(plugin): auto generate key for provide UI options
* improve(plugin): style of injected ui container
* improve(plugin): types
* improve(plugin): async messaging api from host to plugin
* improve(plugin): add types
* improve(apis): get external plugin metadata
* improve(apis): invoke external plugin impls
* improve(apis): call external plugin impls for simple commands
* enhance(apis): datascript query api for predicate inputs
* enhance(apis): datascript query api for predicate inputs
* fix(apis): redundant args of datascript query api
* enhance(plugins): position of float ui container
* enhance(plugins): style of setting options
* enhance(plugins): layouts data for float ui
* chore(plugins): update CHANGELOG.md
* improve(apis): add types
* chore: fix some inclusive terms
* improve(apis): types
* chore(plugins): update CHANGELOG.md
* chore(plugins): build libs
* chore: update CHANGELOG.md
* chore: remove experiemental alda integration
* fix(lint): remove unused methods
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
2022-12-19 20:23:25 +08:00
Manu [tennox]
8a6e0bdcc2
feat(api): add keepUUID option to insertBatchBlock
2022-12-05 11:15:48 +08:00
Charlie
dda1f9bd9f
Enhance / Plugin APIs ( #6945 )
...
Added
1. All configurations of current graph.
App.getCurrentGraphConfigs: () => Promise<any>
2. All favorite pages list of current graph.
App.getCurrentGraphFavorites: () => Promise<Array<string> | null>
3. All recent pages list of current graph.
App.getCurrentGraphRecent: () => Promise<Array<string> | null>
4. Clear right sidebar blocks.
App.clearRightSidebarBlocks: (opts?: { close: boolean }) => void
5. Support register CodeMirror enhancer. #Experiment feature
Experiments.registerExtensionsEnhancer<T = any>(type: 'katex' | 'codemirror', enhancer: (v: T) => Promise<any>)
6. Support hooks for app search service. #Alpha stage
App.registerSearchService<T extends IPluginSearchServiceHooks>(s: T): void
7. Support focus option for App.insertBlock. Credit to [[tennox]] #PR
Fixed
1. Adjust build script to be compatible for shadow-cljs bundler.
How to set up a clojurescript project with shadow-cljs?
https://github.com/rlhk/logseq-url-plus/blob/main/doc/dev-notes.md
2022-11-22 22:00:29 +08:00
Manu [tennox]
4217057a44
Add option to insert block without focusing it afterwards
2022-11-17 15:48:43 +08:00
charlie
7c6c829d87
fix(plugin): strategy to validate plugin id duplicated
2022-11-11 17:33:15 +08:00
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
Peng Xiao
c7fe4933b4
Merge remote-tracking branch 'upstream/master' into whiteboards
2022-10-07 16:18:27 +08:00
Tienson Qin
f4262cf919
Enhance/api storages for graph assets ( #6488 )
...
* improve(api): assets storage for plugin
Co-authored-by: charlie <xyhp915@qq.com>
2022-10-04 12:30:19 +08:00
Peng Xiao
4d3decd218
fix: code cleanup
2022-09-28 11:00:57 +08:00
lord63
5dd7312342
Guide developer to use logseq.UI.showMsg
2022-09-19 15:00:16 +08:00
Charlie
01d879c18e
feat!: File Sync ( #5355 )
...
- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks
Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-09-01 00:31:49 +08:00
charlie
04e04e4005
improve(plugin): plugin perf tips for initial loader
2022-08-26 18:48:00 +08:00
charlie
85aeba99ab
improve(api): types & typos
2022-08-22 21:54:17 +08:00
charlie
7e3610077b
chore: build libs core with more debug info
2022-08-22 21:54:17 +08:00
charlie
09d43983f2
improve(api): event hook of after graph indexed
2022-08-22 21:54:17 +08:00