@tenorlab/react-dashboard 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type TDashboardWidgetKey = string;
|
|
2
2
|
export type TWidgetCategory = 'Widget' | 'Chart' | 'Container';
|
|
3
3
|
export type TWidgetMetaInfoBase<TFrameworkElementType = any> = {
|
|
4
|
-
|
|
4
|
+
name: string;
|
|
5
5
|
description: string;
|
|
6
6
|
categories: TWidgetCategory[];
|
|
7
7
|
noDuplicatedWidgets?: boolean;
|
|
@@ -51,9 +51,7 @@ export declare const parseKeyAndTitleFromFilePath: (path: string) => {
|
|
|
51
51
|
title: string;
|
|
52
52
|
folder: string;
|
|
53
53
|
} | null;
|
|
54
|
-
export declare const getMetaInfoFromFile: (
|
|
55
|
-
folderName: string, // e.g. 'gold-prices' (derived from folder)
|
|
56
|
-
key: string) => TWidgetMetaInfoBase | undefined;
|
|
54
|
+
export declare const getMetaInfoFromFile: (widgetMetaModules: Record<string, Record<string, TWidgetMetaInfoBase>>, baseSrcPath: string, folder: string, key: string) => TWidgetMetaInfoBase | undefined;
|
|
57
55
|
export declare const remoteWidgetDiscovery: (manifestUrl: string) => Promise<{
|
|
58
56
|
entries: [string, IDynamicWidgetCatalogEntryBase][];
|
|
59
57
|
message: string;
|
|
@@ -64,4 +62,5 @@ export declare const remoteWidgetDiscovery: (manifestUrl: string) => Promise<{
|
|
|
64
62
|
* @description Scans local directories for widgets.
|
|
65
63
|
* If lazy is true, it registers loaders. If false, it registers static components.
|
|
66
64
|
*/
|
|
67
|
-
export declare const localWidgetDiscovery: (baseSrcPath: string,
|
|
65
|
+
export declare const localWidgetDiscovery: (baseSrcPath: string, // e.g., "/src/async-widgets" or "/src/bundled-widgets"
|
|
66
|
+
widgetModules: Record<string, any>, widgetMetaModules: Record<string, any>, lazy?: boolean) => [string, IDynamicWidgetCatalogEntryBase][];
|