andoncloud-prometheus-widget 1.0.7 → 1.2.0

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.
package/README.md CHANGED
@@ -15,7 +15,3 @@ npm install --save andoncloud-prometheus-widget
15
15
  ```tsx
16
16
  import { Widget, permissions } from 'andoncloud-prometheus-widget';
17
17
  ```
18
-
19
- ## License
20
-
21
- MIT © [](https://github.com/)
File without changes
@@ -0,0 +1,6 @@
1
+ import Chart from 'chart.js';
2
+ declare const GradientPlugin: {
3
+ id: string;
4
+ beforeDatasetsUpdate(chart: Chart): void;
5
+ };
6
+ export default GradientPlugin;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { SettingsFormContentProps } from 'andoncloud-widget-base';
3
+ import { WidgetData, WidgetSettings } from '@/types';
4
+ declare const SettingsFormContent: React.FC<SettingsFormContentProps<WidgetData, WidgetSettings>>;
5
+ export default SettingsFormContent;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
- import { WidgetProps } from '@/types';
3
- declare const Widget: React.FC<WidgetProps>;
2
+ import { WidgetProps } from 'andoncloud-dashboard-toolkit';
3
+ import { WidgetData, WidgetSettings } from '@/types';
4
+ declare const Widget: React.FC<WidgetProps<WidgetData, WidgetSettings>>;
4
5
  export default Widget;
package/dist/helpers.d.ts CHANGED
@@ -1,2 +1,6 @@
1
+ /// <reference types="moment-range" />
2
+ import * as BaseMoment from 'moment';
1
3
  import { QueriesPeriod, QueriesTimeRange, WidgetData } from './types';
4
+ export declare const moment: import("moment-range").MomentRange & typeof import("moment");
5
+ export declare type Moment = BaseMoment.Moment;
2
6
  export declare const getQueriesTimeRange: (period: QueriesPeriod, data: WidgetData) => QueriesTimeRange | null;