feat(client/bundle): expose Trilium hooks

This commit is contained in:
Elian Doran 2025-12-20 23:26:10 +02:00
parent 1093acfe45
commit 2c25786fa2
No known key found for this signature in database

View File

@ -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
}); });