From 3ac6b42e16dca5a44ed3fec2c0314f1dbbc2322b Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 16 Jul 2023 06:02:12 +0000
Subject: [PATCH] finish path refactoring, add sourcemap + better trace support
---
quartz/components/types.ts | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/quartz/components/types.ts b/quartz/components/types.ts
index 93f6a4b..b37ccee 100644
--- a/quartz/components/types.ts
+++ b/quartz/components/types.ts
@@ -8,9 +8,12 @@
externalResources: StaticResources
fileData: QuartzPluginData
cfg: GlobalConfiguration
- children: QuartzComponent[] | JSX.Element[]
+ children: (QuartzComponent | JSX.Element)[]
tree: Node<QuartzPluginData>
- position?: 'sidebar' | 'header' | 'body'
+ allFiles: QuartzPluginData[]
+ displayClass?: 'mobile-only' | 'desktop-only'
+} & JSX.IntrinsicAttributes & {
+ [key: string]: any
}
export type QuartzComponent = ComponentType<QuartzComponentProps> & {
@@ -18,3 +21,5 @@
beforeDOMLoaded?: string,
afterDOMLoaded?: string,
}
+
+export type QuartzComponentConstructor<Options extends object | undefined = undefined> = (opts: Options) => QuartzComponent
--
Gitblit v1.10.0