myio-js-library 0.1.163 → 0.1.164
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/dist/index.cjs +4 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.js +4 -0
- package/dist/myio-js-library.umd.js +4 -0
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -25203,6 +25203,10 @@ function createConsumptionChartWidget(config) {
|
|
|
25203
25203
|
getChart() {
|
|
25204
25204
|
return chartInstance;
|
|
25205
25205
|
},
|
|
25206
|
+
// Alias for backwards compatibility with createConsumption7DaysChart API
|
|
25207
|
+
getChartInstance() {
|
|
25208
|
+
return chartInstance?.getChartInstance?.() ?? null;
|
|
25209
|
+
},
|
|
25206
25210
|
getCachedData() {
|
|
25207
25211
|
return chartInstance?.getCachedData() ?? null;
|
|
25208
25212
|
},
|
package/dist/index.d.cts
CHANGED
|
@@ -2961,6 +2961,8 @@ interface ConsumptionWidgetInstance {
|
|
|
2961
2961
|
setIdealRange: (range: IdealRangeConfig | null) => void;
|
|
2962
2962
|
/** Gets the internal chart instance */
|
|
2963
2963
|
getChart: () => ReturnType<typeof createConsumption7DaysChart> | null;
|
|
2964
|
+
/** Gets the underlying Chart.js instance (for backwards compatibility) */
|
|
2965
|
+
getChartInstance: () => any | null;
|
|
2964
2966
|
/** Gets the cached data */
|
|
2965
2967
|
getCachedData: () => Consumption7DaysData | null;
|
|
2966
2968
|
/** Exports data to CSV */
|
package/dist/index.js
CHANGED
|
@@ -25073,6 +25073,10 @@ function createConsumptionChartWidget(config) {
|
|
|
25073
25073
|
getChart() {
|
|
25074
25074
|
return chartInstance;
|
|
25075
25075
|
},
|
|
25076
|
+
// Alias for backwards compatibility with createConsumption7DaysChart API
|
|
25077
|
+
getChartInstance() {
|
|
25078
|
+
return chartInstance?.getChartInstance?.() ?? null;
|
|
25079
|
+
},
|
|
25076
25080
|
getCachedData() {
|
|
25077
25081
|
return chartInstance?.getCachedData() ?? null;
|
|
25078
25082
|
},
|
|
@@ -24889,6 +24889,10 @@ ${rangeText}`;
|
|
|
24889
24889
|
getChart() {
|
|
24890
24890
|
return chartInstance;
|
|
24891
24891
|
},
|
|
24892
|
+
// Alias for backwards compatibility with createConsumption7DaysChart API
|
|
24893
|
+
getChartInstance() {
|
|
24894
|
+
return chartInstance?.getChartInstance?.() ?? null;
|
|
24895
|
+
},
|
|
24892
24896
|
getCachedData() {
|
|
24893
24897
|
return chartInstance?.getCachedData() ?? null;
|
|
24894
24898
|
},
|