@tenorlab/react-dashboard 1.0.7 → 1.0.9

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.
@@ -44,8 +44,17 @@ export declare const parseKeyAndTitleFromFilePath: (path: string) => {
44
44
  title: string;
45
45
  folder: string;
46
46
  } | null;
47
+ export declare const getMetaInfoFromFile: (metaModules: Record<string, Record<string, TWidgetMetaInfoBase>>, baseSrcPath: string, // i.e. '/src/plugins' or '/src/static-widgets'
48
+ folderName: string, // i.e. widget-outstanding-balance
49
+ key: string) => TWidgetMetaInfoBase | undefined;
47
50
  export declare const remoteWidgetDiscovery: (manifestUrl: string) => Promise<{
48
51
  entries: [string, IDynamicWidgetCatalogEntryBase][];
49
52
  message: string;
50
53
  details: string;
51
54
  }>;
55
+ /**
56
+ * @name localWidgetDiscovery
57
+ * @description Scans local directories for widgets.
58
+ * If lazy is true, it registers loaders. If false, it registers static components.
59
+ */
60
+ export declare const localWidgetDiscovery: (baseSrcPath: string, widgetModules: Record<string, any>, widgetMetaModules: Record<string, any>, lazy?: boolean) => [string, IDynamicWidgetCatalogEntryBase][];