@prismiq/react 0.2.0 → 0.2.1

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.
Files changed (39) hide show
  1. package/dist/{ChatBubble-ARocmvZD.d.cts → ChatBubble-3mFpV7yX.d.ts} +4 -2
  2. package/dist/{ChatBubble-BN_CjIpk.d.ts → ChatBubble-CMkEupzn.d.cts} +4 -2
  3. package/dist/{DashboardDialog-Z-HypxmG.d.cts → DashboardDialog-DMmZ3bnf.d.cts} +1 -1
  4. package/dist/{DashboardDialog-UhUGXx2h.d.ts → DashboardDialog-RlcPkdMt.d.ts} +1 -1
  5. package/dist/charts/index.d.cts +2 -2
  6. package/dist/charts/index.d.ts +2 -2
  7. package/dist/{chunk-JBJ5LEAG.js → chunk-F6QYNQEW.js} +12 -4
  8. package/dist/chunk-F6QYNQEW.js.map +1 -0
  9. package/dist/{chunk-FKXCINUF.cjs → chunk-N6I3QOHG.cjs} +201 -193
  10. package/dist/chunk-N6I3QOHG.cjs.map +1 -0
  11. package/dist/{chunk-PG7QBH3G.cjs → chunk-NXXKG4GN.cjs} +50 -15
  12. package/dist/chunk-NXXKG4GN.cjs.map +1 -0
  13. package/dist/{chunk-GELI7MDZ.js → chunk-VEFYFB5H.js} +50 -15
  14. package/dist/chunk-VEFYFB5H.js.map +1 -0
  15. package/dist/components/index.cjs +56 -56
  16. package/dist/components/index.d.cts +2 -2
  17. package/dist/components/index.d.ts +2 -2
  18. package/dist/components/index.js +1 -1
  19. package/dist/dashboard/index.cjs +34 -34
  20. package/dist/dashboard/index.d.cts +3 -3
  21. package/dist/dashboard/index.d.ts +3 -3
  22. package/dist/dashboard/index.js +2 -2
  23. package/dist/export/index.d.cts +1 -1
  24. package/dist/export/index.d.ts +1 -1
  25. package/dist/{index-B8DelfpL.d.cts → index-BA2VUhgN.d.cts} +1 -1
  26. package/dist/{index-RbfYPQD_.d.ts → index-BPo89ZAj.d.ts} +1 -1
  27. package/dist/index.cjs +100 -100
  28. package/dist/index.d.cts +11 -8
  29. package/dist/index.d.ts +11 -8
  30. package/dist/index.js +4 -4
  31. package/dist/{types-ccB9Ps3k.d.cts → types-BaI6sSAG.d.cts} +20 -2
  32. package/dist/{types-ccB9Ps3k.d.ts → types-BaI6sSAG.d.ts} +20 -2
  33. package/dist/utils/index.d.cts +1 -1
  34. package/dist/utils/index.d.ts +1 -1
  35. package/package.json +1 -1
  36. package/dist/chunk-FKXCINUF.cjs.map +0 -1
  37. package/dist/chunk-GELI7MDZ.js.map +0 -1
  38. package/dist/chunk-JBJ5LEAG.js.map +0 -1
  39. package/dist/chunk-PG7QBH3G.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkFKXCINUF_cjs = require('./chunk-FKXCINUF.cjs');
3
+ var chunkN6I3QOHG_cjs = require('./chunk-N6I3QOHG.cjs');
4
4
  var chunk73TPDGXB_cjs = require('./chunk-73TPDGXB.cjs');
5
- var chunkPG7QBH3G_cjs = require('./chunk-PG7QBH3G.cjs');
5
+ var chunkNXXKG4GN_cjs = require('./chunk-NXXKG4GN.cjs');
6
6
  var chunkLMTG3LRC_cjs = require('./chunk-LMTG3LRC.cjs');
7
7
  var chunkZYVN6XAZ_cjs = require('./chunk-ZYVN6XAZ.cjs');
8
8
  var chunkTRW7DKLP_cjs = require('./chunk-TRW7DKLP.cjs');
@@ -87,10 +87,10 @@ function PinButton({
87
87
  className,
88
88
  style
89
89
  }) {
90
- const { isPinned: checkIsPinned, isLoading: statusLoading, refetch } = chunkPG7QBH3G_cjs.useDashboardPinStatus({
90
+ const { isPinned: checkIsPinned, isLoading: statusLoading, refetch } = chunkNXXKG4GN_cjs.useDashboardPinStatus({
91
91
  dashboardId
92
92
  });
93
- const { pin, unpin, state: mutationState } = chunkPG7QBH3G_cjs.usePinMutations();
93
+ const { pin, unpin, state: mutationState } = chunkNXXKG4GN_cjs.usePinMutations();
94
94
  const [actionError, setActionError] = react.useState(null);
95
95
  const isPinned = checkIsPinned(context);
96
96
  const isLoading = statusLoading || mutationState.isLoading;
@@ -296,10 +296,10 @@ function PinMenu({
296
296
  const [isOpen, setIsOpen] = react.useState(false);
297
297
  const [toggleError, setToggleError] = react.useState(null);
298
298
  const containerRef = react.useRef(null);
299
- const { isPinned, refetch, isLoading: statusLoading } = chunkPG7QBH3G_cjs.useDashboardPinStatus({
299
+ const { isPinned, refetch, isLoading: statusLoading } = chunkNXXKG4GN_cjs.useDashboardPinStatus({
300
300
  dashboardId
301
301
  });
302
- const { pin, unpin, state: mutationState } = chunkPG7QBH3G_cjs.usePinMutations();
302
+ const { pin, unpin, state: mutationState } = chunkNXXKG4GN_cjs.usePinMutations();
303
303
  const isLoading = statusLoading || mutationState.isLoading;
304
304
  react.useEffect(() => {
305
305
  if (!isOpen) {
@@ -549,8 +549,8 @@ function PinnedDashboardList({
549
549
  className,
550
550
  style
551
551
  }) {
552
- const { dashboards, isLoading, error, refetch } = chunkPG7QBH3G_cjs.usePinnedDashboards({ context });
553
- const { unpin, state: mutationState } = chunkPG7QBH3G_cjs.usePinMutations();
552
+ const { dashboards, isLoading, error, refetch } = chunkNXXKG4GN_cjs.usePinnedDashboards({ context });
553
+ const { unpin, state: mutationState } = chunkNXXKG4GN_cjs.usePinMutations();
554
554
  const [unpinError, setUnpinError] = react.useState(null);
555
555
  const handleUnpin = react.useCallback(
556
556
  (dashboardId) => {
@@ -835,7 +835,7 @@ function PinnedDashboardView({
835
835
  className,
836
836
  style
837
837
  }) {
838
- const { unpin, state: mutationState } = chunkPG7QBH3G_cjs.usePinMutations();
838
+ const { unpin, state: mutationState } = chunkNXXKG4GN_cjs.usePinMutations();
839
839
  const [unpinError, setUnpinError] = react.useState(null);
840
840
  const handleUnpin = async () => {
841
841
  if (!selectedDashboard) return;
@@ -914,7 +914,7 @@ function PinnedDashboardView({
914
914
  }
915
915
  )
916
916
  ] }),
917
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: contentStyles2, children: /* @__PURE__ */ jsxRuntime.jsx(chunkFKXCINUF_cjs.Dashboard, { id: selectedDashboard.id }) })
917
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: contentStyles2, children: /* @__PURE__ */ jsxRuntime.jsx(chunkN6I3QOHG_cjs.Dashboard, { id: selectedDashboard.id }) })
918
918
  ] });
919
919
  }
920
920
 
@@ -923,99 +923,99 @@ var VERSION = "0.1.0";
923
923
 
924
924
  Object.defineProperty(exports, "Dashboard", {
925
925
  enumerable: true,
926
- get: function () { return chunkFKXCINUF_cjs.Dashboard; }
926
+ get: function () { return chunkN6I3QOHG_cjs.Dashboard; }
927
927
  });
928
928
  Object.defineProperty(exports, "DashboardCard", {
929
929
  enumerable: true,
930
- get: function () { return chunkFKXCINUF_cjs.DashboardCard; }
930
+ get: function () { return chunkN6I3QOHG_cjs.DashboardCard; }
931
931
  });
932
932
  Object.defineProperty(exports, "DashboardContext", {
933
933
  enumerable: true,
934
- get: function () { return chunkFKXCINUF_cjs.DashboardContext; }
934
+ get: function () { return chunkN6I3QOHG_cjs.DashboardContext; }
935
935
  });
936
936
  Object.defineProperty(exports, "DashboardDialog", {
937
937
  enumerable: true,
938
- get: function () { return chunkFKXCINUF_cjs.DashboardDialog; }
938
+ get: function () { return chunkN6I3QOHG_cjs.DashboardDialog; }
939
939
  });
940
940
  Object.defineProperty(exports, "DashboardEditor", {
941
941
  enumerable: true,
942
- get: function () { return chunkFKXCINUF_cjs.DashboardEditor; }
942
+ get: function () { return chunkN6I3QOHG_cjs.DashboardEditor; }
943
943
  });
944
944
  Object.defineProperty(exports, "DashboardLayoutComponent", {
945
945
  enumerable: true,
946
- get: function () { return chunkFKXCINUF_cjs.DashboardLayout; }
946
+ get: function () { return chunkN6I3QOHG_cjs.DashboardLayout; }
947
947
  });
948
948
  Object.defineProperty(exports, "DashboardList", {
949
949
  enumerable: true,
950
- get: function () { return chunkFKXCINUF_cjs.DashboardList; }
950
+ get: function () { return chunkN6I3QOHG_cjs.DashboardList; }
951
951
  });
952
952
  Object.defineProperty(exports, "DashboardProvider", {
953
953
  enumerable: true,
954
- get: function () { return chunkFKXCINUF_cjs.DashboardProvider; }
954
+ get: function () { return chunkN6I3QOHG_cjs.DashboardProvider; }
955
955
  });
956
956
  Object.defineProperty(exports, "DateRangeFilter", {
957
957
  enumerable: true,
958
- get: function () { return chunkFKXCINUF_cjs.DateRangeFilter; }
958
+ get: function () { return chunkN6I3QOHG_cjs.DateRangeFilter; }
959
959
  });
960
960
  Object.defineProperty(exports, "EditorToolbar", {
961
961
  enumerable: true,
962
- get: function () { return chunkFKXCINUF_cjs.EditorToolbar; }
962
+ get: function () { return chunkN6I3QOHG_cjs.EditorToolbar; }
963
963
  });
964
964
  Object.defineProperty(exports, "FilterBar", {
965
965
  enumerable: true,
966
- get: function () { return chunkFKXCINUF_cjs.FilterBar; }
966
+ get: function () { return chunkN6I3QOHG_cjs.FilterBar; }
967
967
  });
968
968
  Object.defineProperty(exports, "MultiSelectFilter", {
969
969
  enumerable: true,
970
- get: function () { return chunkFKXCINUF_cjs.MultiSelectFilter; }
970
+ get: function () { return chunkN6I3QOHG_cjs.MultiSelectFilter; }
971
971
  });
972
972
  Object.defineProperty(exports, "SelectFilter", {
973
973
  enumerable: true,
974
- get: function () { return chunkFKXCINUF_cjs.SelectFilter; }
974
+ get: function () { return chunkN6I3QOHG_cjs.SelectFilter; }
975
975
  });
976
976
  Object.defineProperty(exports, "TextFilter", {
977
977
  enumerable: true,
978
- get: function () { return chunkFKXCINUF_cjs.TextFilter; }
978
+ get: function () { return chunkN6I3QOHG_cjs.TextFilter; }
979
979
  });
980
980
  Object.defineProperty(exports, "Widget", {
981
981
  enumerable: true,
982
- get: function () { return chunkFKXCINUF_cjs.Widget; }
982
+ get: function () { return chunkN6I3QOHG_cjs.Widget; }
983
983
  });
984
984
  Object.defineProperty(exports, "WidgetContent", {
985
985
  enumerable: true,
986
- get: function () { return chunkFKXCINUF_cjs.WidgetContent; }
986
+ get: function () { return chunkN6I3QOHG_cjs.WidgetContent; }
987
987
  });
988
988
  Object.defineProperty(exports, "WidgetEditor", {
989
989
  enumerable: true,
990
- get: function () { return chunkFKXCINUF_cjs.WidgetEditor; }
990
+ get: function () { return chunkN6I3QOHG_cjs.WidgetEditor; }
991
991
  });
992
992
  Object.defineProperty(exports, "WidgetHeader", {
993
993
  enumerable: true,
994
- get: function () { return chunkFKXCINUF_cjs.WidgetHeader; }
994
+ get: function () { return chunkN6I3QOHG_cjs.WidgetHeader; }
995
995
  });
996
996
  Object.defineProperty(exports, "WidgetPalette", {
997
997
  enumerable: true,
998
- get: function () { return chunkFKXCINUF_cjs.WidgetPalette; }
998
+ get: function () { return chunkN6I3QOHG_cjs.WidgetPalette; }
999
999
  });
1000
1000
  Object.defineProperty(exports, "useAutoRefresh", {
1001
1001
  enumerable: true,
1002
- get: function () { return chunkFKXCINUF_cjs.useAutoRefresh; }
1002
+ get: function () { return chunkN6I3QOHG_cjs.useAutoRefresh; }
1003
1003
  });
1004
1004
  Object.defineProperty(exports, "useDashboard", {
1005
1005
  enumerable: true,
1006
- get: function () { return chunkFKXCINUF_cjs.useDashboard; }
1006
+ get: function () { return chunkN6I3QOHG_cjs.useDashboard; }
1007
1007
  });
1008
1008
  Object.defineProperty(exports, "useDashboardFilters", {
1009
1009
  enumerable: true,
1010
- get: function () { return chunkFKXCINUF_cjs.useDashboardFilters; }
1010
+ get: function () { return chunkN6I3QOHG_cjs.useDashboardFilters; }
1011
1011
  });
1012
1012
  Object.defineProperty(exports, "useFullscreen", {
1013
1013
  enumerable: true,
1014
- get: function () { return chunkFKXCINUF_cjs.useFullscreen; }
1014
+ get: function () { return chunkN6I3QOHG_cjs.useFullscreen; }
1015
1015
  });
1016
1016
  Object.defineProperty(exports, "useWidget", {
1017
1017
  enumerable: true,
1018
- get: function () { return chunkFKXCINUF_cjs.useWidget; }
1018
+ get: function () { return chunkN6I3QOHG_cjs.useWidget; }
1019
1019
  });
1020
1020
  Object.defineProperty(exports, "AreaChart", {
1021
1021
  enumerable: true,
@@ -1103,267 +1103,267 @@ Object.defineProperty(exports, "toChartData", {
1103
1103
  });
1104
1104
  Object.defineProperty(exports, "AggregationPicker", {
1105
1105
  enumerable: true,
1106
- get: function () { return chunkPG7QBH3G_cjs.AggregationPicker; }
1106
+ get: function () { return chunkNXXKG4GN_cjs.AggregationPicker; }
1107
1107
  });
1108
1108
  Object.defineProperty(exports, "AnalyticsProvider", {
1109
1109
  enumerable: true,
1110
- get: function () { return chunkPG7QBH3G_cjs.AnalyticsProvider; }
1110
+ get: function () { return chunkNXXKG4GN_cjs.AnalyticsProvider; }
1111
1111
  });
1112
1112
  Object.defineProperty(exports, "Badge", {
1113
1113
  enumerable: true,
1114
- get: function () { return chunkPG7QBH3G_cjs.Badge; }
1114
+ get: function () { return chunkNXXKG4GN_cjs.Badge; }
1115
1115
  });
1116
1116
  Object.defineProperty(exports, "Button", {
1117
1117
  enumerable: true,
1118
- get: function () { return chunkPG7QBH3G_cjs.Button; }
1118
+ get: function () { return chunkNXXKG4GN_cjs.Button; }
1119
1119
  });
1120
1120
  Object.defineProperty(exports, "ChatBubble", {
1121
1121
  enumerable: true,
1122
- get: function () { return chunkPG7QBH3G_cjs.ChatBubble; }
1122
+ get: function () { return chunkNXXKG4GN_cjs.ChatBubble; }
1123
1123
  });
1124
1124
  Object.defineProperty(exports, "ChatPanel", {
1125
1125
  enumerable: true,
1126
- get: function () { return chunkPG7QBH3G_cjs.ChatPanel; }
1126
+ get: function () { return chunkNXXKG4GN_cjs.ChatPanel; }
1127
1127
  });
1128
1128
  Object.defineProperty(exports, "Checkbox", {
1129
1129
  enumerable: true,
1130
- get: function () { return chunkPG7QBH3G_cjs.Checkbox; }
1130
+ get: function () { return chunkNXXKG4GN_cjs.Checkbox; }
1131
1131
  });
1132
1132
  Object.defineProperty(exports, "ColumnNode", {
1133
1133
  enumerable: true,
1134
- get: function () { return chunkPG7QBH3G_cjs.ColumnNode; }
1134
+ get: function () { return chunkNXXKG4GN_cjs.ColumnNode; }
1135
1135
  });
1136
1136
  Object.defineProperty(exports, "ColumnSelector", {
1137
1137
  enumerable: true,
1138
- get: function () { return chunkPG7QBH3G_cjs.ColumnSelector; }
1138
+ get: function () { return chunkNXXKG4GN_cjs.ColumnSelector; }
1139
1139
  });
1140
1140
  Object.defineProperty(exports, "CustomSQLEditor", {
1141
1141
  enumerable: true,
1142
- get: function () { return chunkPG7QBH3G_cjs.CustomSQLEditor; }
1142
+ get: function () { return chunkNXXKG4GN_cjs.CustomSQLEditor; }
1143
1143
  });
1144
1144
  Object.defineProperty(exports, "Dialog", {
1145
1145
  enumerable: true,
1146
- get: function () { return chunkPG7QBH3G_cjs.Dialog; }
1146
+ get: function () { return chunkNXXKG4GN_cjs.Dialog; }
1147
1147
  });
1148
1148
  Object.defineProperty(exports, "DialogFooter", {
1149
1149
  enumerable: true,
1150
- get: function () { return chunkPG7QBH3G_cjs.DialogFooter; }
1150
+ get: function () { return chunkNXXKG4GN_cjs.DialogFooter; }
1151
1151
  });
1152
1152
  Object.defineProperty(exports, "DialogHeader", {
1153
1153
  enumerable: true,
1154
- get: function () { return chunkPG7QBH3G_cjs.DialogHeader; }
1154
+ get: function () { return chunkNXXKG4GN_cjs.DialogHeader; }
1155
1155
  });
1156
1156
  Object.defineProperty(exports, "Dropdown", {
1157
1157
  enumerable: true,
1158
- get: function () { return chunkPG7QBH3G_cjs.Dropdown; }
1158
+ get: function () { return chunkNXXKG4GN_cjs.Dropdown; }
1159
1159
  });
1160
1160
  Object.defineProperty(exports, "DropdownItem", {
1161
1161
  enumerable: true,
1162
- get: function () { return chunkPG7QBH3G_cjs.DropdownItem; }
1162
+ get: function () { return chunkNXXKG4GN_cjs.DropdownItem; }
1163
1163
  });
1164
1164
  Object.defineProperty(exports, "DropdownSeparator", {
1165
1165
  enumerable: true,
1166
- get: function () { return chunkPG7QBH3G_cjs.DropdownSeparator; }
1166
+ get: function () { return chunkNXXKG4GN_cjs.DropdownSeparator; }
1167
1167
  });
1168
1168
  Object.defineProperty(exports, "EmptyDashboard", {
1169
1169
  enumerable: true,
1170
- get: function () { return chunkPG7QBH3G_cjs.EmptyDashboard; }
1170
+ get: function () { return chunkNXXKG4GN_cjs.EmptyDashboard; }
1171
1171
  });
1172
1172
  Object.defineProperty(exports, "EmptyState", {
1173
1173
  enumerable: true,
1174
- get: function () { return chunkPG7QBH3G_cjs.EmptyState; }
1174
+ get: function () { return chunkNXXKG4GN_cjs.EmptyState; }
1175
1175
  });
1176
1176
  Object.defineProperty(exports, "ErrorBoundary", {
1177
1177
  enumerable: true,
1178
- get: function () { return chunkPG7QBH3G_cjs.ErrorBoundary; }
1178
+ get: function () { return chunkNXXKG4GN_cjs.ErrorBoundary; }
1179
1179
  });
1180
1180
  Object.defineProperty(exports, "ErrorFallback", {
1181
1181
  enumerable: true,
1182
- get: function () { return chunkPG7QBH3G_cjs.ErrorFallback; }
1182
+ get: function () { return chunkNXXKG4GN_cjs.ErrorFallback; }
1183
1183
  });
1184
1184
  Object.defineProperty(exports, "FilterBuilder", {
1185
1185
  enumerable: true,
1186
- get: function () { return chunkPG7QBH3G_cjs.FilterBuilder; }
1186
+ get: function () { return chunkNXXKG4GN_cjs.FilterBuilder; }
1187
1187
  });
1188
1188
  Object.defineProperty(exports, "FilterRow", {
1189
1189
  enumerable: true,
1190
- get: function () { return chunkPG7QBH3G_cjs.FilterRow; }
1190
+ get: function () { return chunkNXXKG4GN_cjs.FilterRow; }
1191
1191
  });
1192
1192
  Object.defineProperty(exports, "FilterValueInput", {
1193
1193
  enumerable: true,
1194
- get: function () { return chunkPG7QBH3G_cjs.FilterValueInput; }
1194
+ get: function () { return chunkNXXKG4GN_cjs.FilterValueInput; }
1195
1195
  });
1196
1196
  Object.defineProperty(exports, "Icon", {
1197
1197
  enumerable: true,
1198
- get: function () { return chunkPG7QBH3G_cjs.Icon; }
1198
+ get: function () { return chunkNXXKG4GN_cjs.Icon; }
1199
1199
  });
1200
1200
  Object.defineProperty(exports, "Input", {
1201
1201
  enumerable: true,
1202
- get: function () { return chunkPG7QBH3G_cjs.Input; }
1202
+ get: function () { return chunkNXXKG4GN_cjs.Input; }
1203
1203
  });
1204
1204
  Object.defineProperty(exports, "NoData", {
1205
1205
  enumerable: true,
1206
- get: function () { return chunkPG7QBH3G_cjs.NoData; }
1206
+ get: function () { return chunkNXXKG4GN_cjs.NoData; }
1207
1207
  });
1208
1208
  Object.defineProperty(exports, "NoResults", {
1209
1209
  enumerable: true,
1210
- get: function () { return chunkPG7QBH3G_cjs.NoResults; }
1210
+ get: function () { return chunkNXXKG4GN_cjs.NoResults; }
1211
1211
  });
1212
1212
  Object.defineProperty(exports, "Pagination", {
1213
1213
  enumerable: true,
1214
- get: function () { return chunkPG7QBH3G_cjs.Pagination; }
1214
+ get: function () { return chunkNXXKG4GN_cjs.Pagination; }
1215
1215
  });
1216
1216
  Object.defineProperty(exports, "PrismiqClient", {
1217
1217
  enumerable: true,
1218
- get: function () { return chunkPG7QBH3G_cjs.PrismiqClient; }
1218
+ get: function () { return chunkNXXKG4GN_cjs.PrismiqClient; }
1219
1219
  });
1220
1220
  Object.defineProperty(exports, "PrismiqError", {
1221
1221
  enumerable: true,
1222
- get: function () { return chunkPG7QBH3G_cjs.PrismiqError; }
1222
+ get: function () { return chunkNXXKG4GN_cjs.PrismiqError; }
1223
1223
  });
1224
1224
  Object.defineProperty(exports, "QueryBuilder", {
1225
1225
  enumerable: true,
1226
- get: function () { return chunkPG7QBH3G_cjs.QueryBuilder; }
1226
+ get: function () { return chunkNXXKG4GN_cjs.QueryBuilder; }
1227
1227
  });
1228
1228
  Object.defineProperty(exports, "QueryBuilderToolbar", {
1229
1229
  enumerable: true,
1230
- get: function () { return chunkPG7QBH3G_cjs.QueryBuilderToolbar; }
1230
+ get: function () { return chunkNXXKG4GN_cjs.QueryBuilderToolbar; }
1231
1231
  });
1232
1232
  Object.defineProperty(exports, "QueryPreview", {
1233
1233
  enumerable: true,
1234
- get: function () { return chunkPG7QBH3G_cjs.QueryPreview; }
1234
+ get: function () { return chunkNXXKG4GN_cjs.QueryPreview; }
1235
1235
  });
1236
1236
  Object.defineProperty(exports, "ResultsTable", {
1237
1237
  enumerable: true,
1238
- get: function () { return chunkPG7QBH3G_cjs.ResultsTable; }
1238
+ get: function () { return chunkNXXKG4GN_cjs.ResultsTable; }
1239
1239
  });
1240
1240
  Object.defineProperty(exports, "SavedQueryPicker", {
1241
1241
  enumerable: true,
1242
- get: function () { return chunkPG7QBH3G_cjs.SavedQueryPicker; }
1242
+ get: function () { return chunkNXXKG4GN_cjs.SavedQueryPicker; }
1243
1243
  });
1244
1244
  Object.defineProperty(exports, "SchemaExplorer", {
1245
1245
  enumerable: true,
1246
- get: function () { return chunkPG7QBH3G_cjs.SchemaExplorer; }
1246
+ get: function () { return chunkNXXKG4GN_cjs.SchemaExplorer; }
1247
1247
  });
1248
1248
  Object.defineProperty(exports, "Select", {
1249
1249
  enumerable: true,
1250
- get: function () { return chunkPG7QBH3G_cjs.Select; }
1250
+ get: function () { return chunkNXXKG4GN_cjs.Select; }
1251
1251
  });
1252
1252
  Object.defineProperty(exports, "SelectedColumn", {
1253
1253
  enumerable: true,
1254
- get: function () { return chunkPG7QBH3G_cjs.SelectedColumn; }
1254
+ get: function () { return chunkNXXKG4GN_cjs.SelectedColumn; }
1255
1255
  });
1256
1256
  Object.defineProperty(exports, "Skeleton", {
1257
1257
  enumerable: true,
1258
- get: function () { return chunkPG7QBH3G_cjs.Skeleton; }
1258
+ get: function () { return chunkNXXKG4GN_cjs.Skeleton; }
1259
1259
  });
1260
1260
  Object.defineProperty(exports, "SkeletonChart", {
1261
1261
  enumerable: true,
1262
- get: function () { return chunkPG7QBH3G_cjs.SkeletonChart; }
1262
+ get: function () { return chunkNXXKG4GN_cjs.SkeletonChart; }
1263
1263
  });
1264
1264
  Object.defineProperty(exports, "SkeletonMetricCard", {
1265
1265
  enumerable: true,
1266
- get: function () { return chunkPG7QBH3G_cjs.SkeletonMetricCard; }
1266
+ get: function () { return chunkNXXKG4GN_cjs.SkeletonMetricCard; }
1267
1267
  });
1268
1268
  Object.defineProperty(exports, "SkeletonTable", {
1269
1269
  enumerable: true,
1270
- get: function () { return chunkPG7QBH3G_cjs.SkeletonTable; }
1270
+ get: function () { return chunkNXXKG4GN_cjs.SkeletonTable; }
1271
1271
  });
1272
1272
  Object.defineProperty(exports, "SkeletonText", {
1273
1273
  enumerable: true,
1274
- get: function () { return chunkPG7QBH3G_cjs.SkeletonText; }
1274
+ get: function () { return chunkNXXKG4GN_cjs.SkeletonText; }
1275
1275
  });
1276
1276
  Object.defineProperty(exports, "SortBuilder", {
1277
1277
  enumerable: true,
1278
- get: function () { return chunkPG7QBH3G_cjs.SortBuilder; }
1278
+ get: function () { return chunkNXXKG4GN_cjs.SortBuilder; }
1279
1279
  });
1280
1280
  Object.defineProperty(exports, "SortRow", {
1281
1281
  enumerable: true,
1282
- get: function () { return chunkPG7QBH3G_cjs.SortRow; }
1282
+ get: function () { return chunkNXXKG4GN_cjs.SortRow; }
1283
1283
  });
1284
1284
  Object.defineProperty(exports, "TableCell", {
1285
1285
  enumerable: true,
1286
- get: function () { return chunkPG7QBH3G_cjs.TableCell; }
1286
+ get: function () { return chunkNXXKG4GN_cjs.TableCell; }
1287
1287
  });
1288
1288
  Object.defineProperty(exports, "TableHeader", {
1289
1289
  enumerable: true,
1290
- get: function () { return chunkPG7QBH3G_cjs.TableHeader; }
1290
+ get: function () { return chunkNXXKG4GN_cjs.TableHeader; }
1291
1291
  });
1292
1292
  Object.defineProperty(exports, "TableNode", {
1293
1293
  enumerable: true,
1294
- get: function () { return chunkPG7QBH3G_cjs.TableNode; }
1294
+ get: function () { return chunkNXXKG4GN_cjs.TableNode; }
1295
1295
  });
1296
1296
  Object.defineProperty(exports, "TableRow", {
1297
1297
  enumerable: true,
1298
- get: function () { return chunkPG7QBH3G_cjs.TableRow; }
1298
+ get: function () { return chunkNXXKG4GN_cjs.TableRow; }
1299
1299
  });
1300
1300
  Object.defineProperty(exports, "Tooltip", {
1301
1301
  enumerable: true,
1302
- get: function () { return chunkPG7QBH3G_cjs.Tooltip; }
1302
+ get: function () { return chunkNXXKG4GN_cjs.Tooltip; }
1303
1303
  });
1304
1304
  Object.defineProperty(exports, "WidgetErrorBoundary", {
1305
1305
  enumerable: true,
1306
- get: function () { return chunkPG7QBH3G_cjs.WidgetErrorBoundary; }
1306
+ get: function () { return chunkNXXKG4GN_cjs.WidgetErrorBoundary; }
1307
1307
  });
1308
1308
  Object.defineProperty(exports, "useAnalytics", {
1309
1309
  enumerable: true,
1310
- get: function () { return chunkPG7QBH3G_cjs.useAnalytics; }
1310
+ get: function () { return chunkNXXKG4GN_cjs.useAnalytics; }
1311
1311
  });
1312
1312
  Object.defineProperty(exports, "useAnalyticsCallbacks", {
1313
1313
  enumerable: true,
1314
- get: function () { return chunkPG7QBH3G_cjs.useAnalyticsCallbacks; }
1314
+ get: function () { return chunkNXXKG4GN_cjs.useAnalyticsCallbacks; }
1315
1315
  });
1316
1316
  Object.defineProperty(exports, "useChartData", {
1317
1317
  enumerable: true,
1318
- get: function () { return chunkPG7QBH3G_cjs.useChartData; }
1318
+ get: function () { return chunkNXXKG4GN_cjs.useChartData; }
1319
1319
  });
1320
1320
  Object.defineProperty(exports, "useCustomSQL", {
1321
1321
  enumerable: true,
1322
- get: function () { return chunkPG7QBH3G_cjs.useCustomSQL; }
1322
+ get: function () { return chunkNXXKG4GN_cjs.useCustomSQL; }
1323
1323
  });
1324
1324
  Object.defineProperty(exports, "useDashboardData", {
1325
1325
  enumerable: true,
1326
- get: function () { return chunkPG7QBH3G_cjs.useDashboard; }
1326
+ get: function () { return chunkNXXKG4GN_cjs.useDashboard; }
1327
1327
  });
1328
1328
  Object.defineProperty(exports, "useDashboardMutations", {
1329
1329
  enumerable: true,
1330
- get: function () { return chunkPG7QBH3G_cjs.useDashboardMutations; }
1330
+ get: function () { return chunkNXXKG4GN_cjs.useDashboardMutations; }
1331
1331
  });
1332
1332
  Object.defineProperty(exports, "useDashboardPinStatus", {
1333
1333
  enumerable: true,
1334
- get: function () { return chunkPG7QBH3G_cjs.useDashboardPinStatus; }
1334
+ get: function () { return chunkNXXKG4GN_cjs.useDashboardPinStatus; }
1335
1335
  });
1336
1336
  Object.defineProperty(exports, "useDashboards", {
1337
1337
  enumerable: true,
1338
- get: function () { return chunkPG7QBH3G_cjs.useDashboards; }
1338
+ get: function () { return chunkNXXKG4GN_cjs.useDashboards; }
1339
1339
  });
1340
1340
  Object.defineProperty(exports, "useLLMChat", {
1341
1341
  enumerable: true,
1342
- get: function () { return chunkPG7QBH3G_cjs.useLLMChat; }
1342
+ get: function () { return chunkNXXKG4GN_cjs.useLLMChat; }
1343
1343
  });
1344
1344
  Object.defineProperty(exports, "useLLMStatus", {
1345
1345
  enumerable: true,
1346
- get: function () { return chunkPG7QBH3G_cjs.useLLMStatus; }
1346
+ get: function () { return chunkNXXKG4GN_cjs.useLLMStatus; }
1347
1347
  });
1348
1348
  Object.defineProperty(exports, "usePinMutations", {
1349
1349
  enumerable: true,
1350
- get: function () { return chunkPG7QBH3G_cjs.usePinMutations; }
1350
+ get: function () { return chunkNXXKG4GN_cjs.usePinMutations; }
1351
1351
  });
1352
1352
  Object.defineProperty(exports, "usePinnedDashboards", {
1353
1353
  enumerable: true,
1354
- get: function () { return chunkPG7QBH3G_cjs.usePinnedDashboards; }
1354
+ get: function () { return chunkNXXKG4GN_cjs.usePinnedDashboards; }
1355
1355
  });
1356
1356
  Object.defineProperty(exports, "useQuery", {
1357
1357
  enumerable: true,
1358
- get: function () { return chunkPG7QBH3G_cjs.useQuery; }
1358
+ get: function () { return chunkNXXKG4GN_cjs.useQuery; }
1359
1359
  });
1360
1360
  Object.defineProperty(exports, "useSavedQueries", {
1361
1361
  enumerable: true,
1362
- get: function () { return chunkPG7QBH3G_cjs.useSavedQueries; }
1362
+ get: function () { return chunkNXXKG4GN_cjs.useSavedQueries; }
1363
1363
  });
1364
1364
  Object.defineProperty(exports, "useSchema", {
1365
1365
  enumerable: true,
1366
- get: function () { return chunkPG7QBH3G_cjs.useSchema; }
1366
+ get: function () { return chunkNXXKG4GN_cjs.useSchema; }
1367
1367
  });
1368
1368
  Object.defineProperty(exports, "ThemeProvider", {
1369
1369
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { D as DatabaseSchema, c as TableSchema, d as DataSourceMeta, a as QueryDefinition, V as ValidationResult, Q as QueryResult, S as SQLValidationResult, e as Dashboard, f as DashboardCreate, g as DashboardUpdate, W as WidgetCreate, h as Widget, i as WidgetUpdate, j as WidgetPositionUpdate, k as SavedQuery, l as SavedQueryCreate, m as SavedQueryUpdate, P as PinnedDashboard, n as PinnedDashboardsResponse, L as LLMStatus, o as ChatMessage, p as StreamChunk, R as Relationship, q as WidgetPosition } from './types-ccB9Ps3k.cjs';
2
- export { A as AggregationType, r as ChatRole, s as ColumnSchema, t as ColumnSelection, u as DashboardPinContextsResponse, E as ExecuteSQLRequest, F as FilterDefinition, v as FilterOperator, G as GroupByDefinition, J as JoinDefinition, w as JoinType, b as QueryTable, x as SortDefinition, y as SortDirection, z as StreamChunkType } from './types-ccB9Ps3k.cjs';
3
- import { P as PrismiqTheme, T as ThemeMode, D as DeepPartial, a as ThemeContextValue, C as ChartDataOptions, b as ChartDataResult } from './index-B8DelfpL.cjs';
4
- export { A as AreaChart, c as AreaChartProps, d as AxisFormat, B as BarChart, e as BarChartProps, f as BaseChartProps, g as ChartClickParams, h as ChartDataPoint, i as ChartSeries, j as ChartSuggestion, k as ChartType, E as EChartWrapper, l as EChartWrapperProps, L as LegendPosition, m as LineChart, n as LineChartProps, M as MetricCard, o as MetricCardProps, p as PieChart, q as PieChartProps, R as ReferenceLineConfig, S as ScatterChart, r as ScatterChartProps, s as Sparkline, t as SparklineProps, u as TrendConfig, v as TrendIndicator, w as TrendIndicatorProps, x as applyThemeToOption, y as createChartTheme, z as createGradientColor, F as dataPointsToChartData, G as formatAxisLabel, H as formatCompact, I as formatMetricValue, J as getChartColors, K as isChartDataEmpty, N as queryResultToChartData, O as suggestChartType, Q as toChartData } from './index-B8DelfpL.cjs';
1
+ import { D as DatabaseSchema, c as TableSchema, d as DataSourceMeta, a as QueryDefinition, V as ValidationResult, Q as QueryResult, S as SQLValidationResult, e as Dashboard, f as DashboardCreate, g as DashboardUpdate, W as WidgetCreate, h as Widget, i as WidgetUpdate, j as WidgetPositionUpdate, k as SavedQuery, l as SavedQueryCreate, m as SavedQueryUpdate, P as PinnedDashboard, n as PinnedDashboardsResponse, L as LLMStatus, o as ChatMessage, p as WidgetContext, q as StreamChunk, R as Relationship, r as WidgetPosition } from './types-BaI6sSAG.cjs';
2
+ export { A as AggregationType, s as ChatRole, t as ColumnSchema, u as ColumnSelection, v as DashboardPinContextsResponse, E as ExecuteSQLRequest, F as FilterDefinition, w as FilterOperator, G as GroupByDefinition, J as JoinDefinition, x as JoinType, b as QueryTable, y as SortDefinition, z as SortDirection, B as StreamChunkType } from './types-BaI6sSAG.cjs';
3
+ import { P as PrismiqTheme, T as ThemeMode, D as DeepPartial, a as ThemeContextValue, C as ChartDataOptions, b as ChartDataResult } from './index-BA2VUhgN.cjs';
4
+ export { A as AreaChart, c as AreaChartProps, d as AxisFormat, B as BarChart, e as BarChartProps, f as BaseChartProps, g as ChartClickParams, h as ChartDataPoint, i as ChartSeries, j as ChartSuggestion, k as ChartType, E as EChartWrapper, l as EChartWrapperProps, L as LegendPosition, m as LineChart, n as LineChartProps, M as MetricCard, o as MetricCardProps, p as PieChart, q as PieChartProps, R as ReferenceLineConfig, S as ScatterChart, r as ScatterChartProps, s as Sparkline, t as SparklineProps, u as TrendConfig, v as TrendIndicator, w as TrendIndicatorProps, x as applyThemeToOption, y as createChartTheme, z as createGradientColor, F as dataPointsToChartData, G as formatAxisLabel, H as formatCompact, I as formatMetricValue, J as getChartColors, K as isChartDataEmpty, N as queryResultToChartData, O as suggestChartType, Q as toChartData } from './index-BA2VUhgN.cjs';
5
5
  import { ReactNode, CSSProperties } from 'react';
6
- export { A as AggregationPicker, a as AggregationPickerProps, B as Badge, b as BadgeProps, c as Button, d as ButtonProps, C as ChatBubble, e as ChatBubbleProps, f as ChatPanel, g as ChatPanelProps, h as Checkbox, i as CheckboxProps, j as ColumnNode, k as ColumnNodeProps, l as ColumnSelector, m as ColumnSelectorProps, n as CustomSQLEditor, o as CustomSQLEditorProps, D as Dialog, p as DialogFooter, q as DialogFooterProps, r as DialogHeader, s as DialogHeaderProps, t as DialogProps, u as Dropdown, v as DropdownItem, w as DropdownItemProps, x as DropdownProps, y as DropdownSeparator, z as DropdownSeparatorProps, E as EmptyDashboard, F as EmptyDashboardProps, G as EmptyState, H as EmptyStateProps, I as ErrorBoundary, J as ErrorBoundaryProps, K as ErrorFallback, L as ErrorFallbackProps, M as FilterBuilder, N as FilterBuilderProps, O as FilterRow, P as FilterRowProps, Q as FilterValueInput, R as FilterValueInputProps, S as Icon, T as IconName, U as IconProps, V as Input, W as InputProps, X as NoData, Y as NoDataProps, Z as NoResults, _ as NoResultsProps, $ as Pagination, a0 as PaginationProps, a1 as QueryBuilder, a2 as QueryBuilderProps, a3 as QueryBuilderState, a4 as QueryBuilderToolbar, a5 as QueryBuilderToolbarProps, a6 as QueryPreview, a7 as QueryPreviewProps, a8 as ResultsTable, a9 as ResultsTableProps, aa as SavedQueryPicker, ab as SavedQueryPickerProps, ac as SchemaExplorer, ad as SchemaExplorerProps, ae as Select, af as SelectOption, ag as SelectProps, ah as SelectedColumn, ai as SelectedColumnProps, aj as Skeleton, ak as SkeletonChart, al as SkeletonChartProps, am as SkeletonMetricCard, an as SkeletonMetricCardProps, ao as SkeletonProps, ap as SkeletonTable, aq as SkeletonTableProps, ar as SkeletonText, as as SkeletonTextProps, at as SortBuilder, au as SortBuilderProps, av as SortRow, aw as SortRowProps, ax as TableCell, ay as TableCellProps, az as TableHeader, aA as TableHeaderProps, aB as TableNode, aC as TableNodeProps, aD as TableRow, aE as TableRowProps, aF as Tooltip, aG as TooltipProps, aH as WidgetErrorBoundary, aI as WidgetErrorBoundaryProps } from './ChatBubble-ARocmvZD.cjs';
6
+ export { A as AggregationPicker, a as AggregationPickerProps, B as Badge, b as BadgeProps, c as Button, d as ButtonProps, C as ChatBubble, e as ChatBubbleProps, f as ChatPanel, g as ChatPanelProps, h as Checkbox, i as CheckboxProps, j as ColumnNode, k as ColumnNodeProps, l as ColumnSelector, m as ColumnSelectorProps, n as CustomSQLEditor, o as CustomSQLEditorProps, D as Dialog, p as DialogFooter, q as DialogFooterProps, r as DialogHeader, s as DialogHeaderProps, t as DialogProps, u as Dropdown, v as DropdownItem, w as DropdownItemProps, x as DropdownProps, y as DropdownSeparator, z as DropdownSeparatorProps, E as EmptyDashboard, F as EmptyDashboardProps, G as EmptyState, H as EmptyStateProps, I as ErrorBoundary, J as ErrorBoundaryProps, K as ErrorFallback, L as ErrorFallbackProps, M as FilterBuilder, N as FilterBuilderProps, O as FilterRow, P as FilterRowProps, Q as FilterValueInput, R as FilterValueInputProps, S as Icon, T as IconName, U as IconProps, V as Input, W as InputProps, X as NoData, Y as NoDataProps, Z as NoResults, _ as NoResultsProps, $ as Pagination, a0 as PaginationProps, a1 as QueryBuilder, a2 as QueryBuilderProps, a3 as QueryBuilderState, a4 as QueryBuilderToolbar, a5 as QueryBuilderToolbarProps, a6 as QueryPreview, a7 as QueryPreviewProps, a8 as ResultsTable, a9 as ResultsTableProps, aa as SavedQueryPicker, ab as SavedQueryPickerProps, ac as SchemaExplorer, ad as SchemaExplorerProps, ae as Select, af as SelectOption, ag as SelectProps, ah as SelectedColumn, ai as SelectedColumnProps, aj as Skeleton, ak as SkeletonChart, al as SkeletonChartProps, am as SkeletonMetricCard, an as SkeletonMetricCardProps, ao as SkeletonProps, ap as SkeletonTable, aq as SkeletonTableProps, ar as SkeletonText, as as SkeletonTextProps, at as SortBuilder, au as SortBuilderProps, av as SortRow, aw as SortRowProps, ax as TableCell, ay as TableCellProps, az as TableHeader, aA as TableHeaderProps, aB as TableNode, aC as TableNodeProps, aD as TableRow, aE as TableRowProps, aF as Tooltip, aG as TooltipProps, aH as WidgetErrorBoundary, aI as WidgetErrorBoundaryProps } from './ChatBubble-CMkEupzn.cjs';
7
7
  export { ExcelCellStyle, ExcelExportOptions, ExportData, ExportOptions, UseExportOptions, UseExportResult, downloadFile, exportMultipleSheets, exportToCSV, exportToExcel, generateCSV, useExport } from './export/index.cjs';
8
- export { d as Dashboard, e as DashboardCard, f as DashboardCardProps, g as DashboardContext, h as DashboardContextValue, i as DashboardDefinition, j as DashboardDialog, k as DashboardDialogProps, l as DashboardEditor, m as DashboardEditorContextValue, n as DashboardEditorProps, o as DashboardFilter, p as DashboardFilterType, D as DashboardLayout, q as DashboardLayoutComponent, r as DashboardLayoutProps, s as DashboardList, t as DashboardListProps, u as DashboardProps, v as DashboardProvider, w as DashboardProviderProps, x as DateRangeFilter, y as DateRangeFilterProps, z as DateRangeValue, E as EditorToolbar, A as EditorToolbarProps, F as FilterBar, B as FilterBarProps, C as FilterOption, G as FilterValue, M as MultiSelectFilter, H as MultiSelectFilterProps, N as NumberRangeValue, S as SelectFilter, I as SelectFilterProps, T as TextFilter, J as TextFilterProps, U as UseAutoRefreshOptions, K as UseAutoRefreshResult, O as UseDashboardFiltersResult, P as UseFullscreenResult, Q as UseWidgetResult, V as Widget, c as WidgetConfig, X as WidgetContent, Y as WidgetContentProps, W as WidgetDefinition, _ as WidgetEditor, $ as WidgetEditorProps, a0 as WidgetHeader, a1 as WidgetHeaderProps, a3 as WidgetPalette, a4 as WidgetPaletteProps, a as WidgetPosition, a5 as WidgetProps, b as WidgetType, a6 as useAutoRefresh, a7 as useDashboard, a8 as useDashboardFilters, a9 as useFullscreen, aa as useWidget } from './DashboardDialog-Z-HypxmG.cjs';
8
+ export { d as Dashboard, e as DashboardCard, f as DashboardCardProps, g as DashboardContext, h as DashboardContextValue, i as DashboardDefinition, j as DashboardDialog, k as DashboardDialogProps, l as DashboardEditor, m as DashboardEditorContextValue, n as DashboardEditorProps, o as DashboardFilter, p as DashboardFilterType, D as DashboardLayout, q as DashboardLayoutComponent, r as DashboardLayoutProps, s as DashboardList, t as DashboardListProps, u as DashboardProps, v as DashboardProvider, w as DashboardProviderProps, x as DateRangeFilter, y as DateRangeFilterProps, z as DateRangeValue, E as EditorToolbar, A as EditorToolbarProps, F as FilterBar, B as FilterBarProps, C as FilterOption, G as FilterValue, M as MultiSelectFilter, H as MultiSelectFilterProps, N as NumberRangeValue, S as SelectFilter, I as SelectFilterProps, T as TextFilter, J as TextFilterProps, U as UseAutoRefreshOptions, K as UseAutoRefreshResult, O as UseDashboardFiltersResult, P as UseFullscreenResult, Q as UseWidgetResult, V as Widget, c as WidgetConfig, X as WidgetContent, Y as WidgetContentProps, W as WidgetDefinition, _ as WidgetEditor, $ as WidgetEditorProps, a0 as WidgetHeader, a1 as WidgetHeaderProps, a3 as WidgetPalette, a4 as WidgetPaletteProps, a as WidgetPosition, a5 as WidgetProps, b as WidgetType, a6 as useAutoRefresh, a7 as useDashboard, a8 as useDashboardFilters, a9 as useFullscreen, aa as useWidget } from './DashboardDialog-DMmZ3bnf.cjs';
9
9
  export { A as ArrowNavigationOptions, F as FocusTrapOptions, S as SkipLinkProps, U as UseArrowNavigationResult, a as UseFocusTrapResult, b as announceToScreenReader, f as focusVisibleStyles, s as skipLinkFocusStyles, c as skipLinkStyles, u as useArrowNavigation, d as useFocusTrap, e as useFocusVisible, g as useRovingTabIndex } from './accessibility-Bu2mNtaB.cjs';
10
10
  export { BREAKPOINTS, Breakpoint, ClientOnly, ClientOnlyProps, WindowSize, getLocalStorage, getWindowHeight, getWindowWidth, isBrowser, isServer, removeLocalStorage, setLocalStorage, useBreakpoint, useIsBreakpoint, useIsClient, useMediaQuery, useWindowSize } from './ssr/index.cjs';
11
11
 
@@ -361,9 +361,10 @@ declare class PrismiqClient {
361
361
  * @param history - Previous conversation messages.
362
362
  * @param currentSql - Current SQL in the editor (for context).
363
363
  * @param signal - Optional AbortSignal for cancellation.
364
+ * @param widgetContext - Optional widget context for targeted SQL generation.
364
365
  * @yields StreamChunk objects as the response is generated.
365
366
  */
366
- streamChat(message: string, history: ChatMessage[], currentSql: string | null, signal?: AbortSignal): AsyncGenerator<StreamChunk, void, undefined>;
367
+ streamChat(message: string, history: ChatMessage[], currentSql: string | null, signal?: AbortSignal, widgetContext?: WidgetContext): AsyncGenerator<StreamChunk, void, undefined>;
367
368
  }
368
369
 
369
370
  /**
@@ -1282,11 +1283,13 @@ interface UseLLMChatResult {
1282
1283
  /** Last SQL suggestion extracted from the response. */
1283
1284
  suggestedSql: string | null;
1284
1285
  /** Send a message to the agent. */
1285
- sendMessage: (message: string, currentSql: string | null) => Promise<void>;
1286
+ sendMessage: (message: string, currentSql: string | null, widgetContext?: WidgetContext) => Promise<void>;
1286
1287
  /** Clear conversation history. */
1287
1288
  clearHistory: () => void;
1288
1289
  /** Error from the last request. */
1289
1290
  error: string | null;
1291
+ /** Current status message from the agent (e.g., "Inspecting schema..."). */
1292
+ statusMessage: string | null;
1290
1293
  }
1291
1294
  /**
1292
1295
  * Hook for streaming chat with the LLM agent.