mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 07:14: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 { Fragment, h, VNode } from "preact";
|
||||||
import * as hooks from "preact/hooks";
|
import * as hooks from "preact/hooks";
|
||||||
|
|
||||||
|
import * as triliumHooks from "../widgets/react/hooks";
|
||||||
import RightPanelWidget from "../widgets/sidebar/RightPanelWidget";
|
import RightPanelWidget from "../widgets/sidebar/RightPanelWidget";
|
||||||
|
|
||||||
export interface WidgetDefinition {
|
export interface WidgetDefinition {
|
||||||
@ -31,5 +32,6 @@ export const preactAPI = Object.freeze({
|
|||||||
|
|
||||||
RightPanelWidget,
|
RightPanelWidget,
|
||||||
|
|
||||||
...hooks
|
...hooks,
|
||||||
|
...triliumHooks
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user