@tenorlab/react-dashboard 1.1.6 → 1.1.7
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.
|
@@ -12,6 +12,12 @@ type TDynamicWidgetLoaderProps = {
|
|
|
12
12
|
onMoveClick?: (direction: -1 | 1, widgetKey: TDashboardWidgetKey, parentWidgetKey?: TDashboardWidgetKey) => void;
|
|
13
13
|
selectContainer?: (containerKey: TDashboardWidgetKey) => void;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Compares two version strings (e.g., "19.2.0" and "19.2.3")
|
|
17
|
+
* Returns true if the widget version is compatible with the host.
|
|
18
|
+
* Logic: Host must be >= Widget version for major/minor.
|
|
19
|
+
*/
|
|
20
|
+
export declare const _isVersionCompatible: (hostVer: string, widgetVer: string) => boolean;
|
|
15
21
|
/**
|
|
16
22
|
* Component to safely load and render dynamic widgets.
|
|
17
23
|
* This ensures the widget component (and its hooks) is called consistently.
|