mirror of
https://github.com/zadam/trilium.git
synced 2025-12-21 23:04:24 +01:00
feat(client/bundle): expose Trilium hooks
This commit is contained in:
parent
1093acfe45
commit
2c25786fa2
@ -1,6 +1,7 @@
|
||||
import { Fragment, h, VNode } from "preact";
|
||||
import * as hooks from "preact/hooks";
|
||||
|
||||
import * as triliumHooks from "../widgets/react/hooks";
|
||||
import RightPanelWidget from "../widgets/sidebar/RightPanelWidget";
|
||||
|
||||
export interface WidgetDefinition {
|
||||
@ -31,5 +32,6 @@ export const preactAPI = Object.freeze({
|
||||
|
||||
RightPanelWidget,
|
||||
|
||||
...hooks
|
||||
...hooks,
|
||||
...triliumHooks
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user