@quillsql/react 2.16.28 → 2.16.29

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 CHANGED
@@ -26251,7 +26251,7 @@ var useDashboards = () => {
26251
26251
  };
26252
26252
  };
26253
26253
  var useDashboard = (dashboardName, config) => {
26254
- const logCacheStatistics = config?.frontendCacheConfig?.showCacheLogs || false;
26254
+ const logCacheStatistics = false;
26255
26255
  const { data, dashboardFilters, reload, isLoading } = useDashboardInternal(dashboardName);
26256
26256
  const [lastUpdated, setLastUpdated] = (0, import_react2.useState)(0);
26257
26257
  const { customFilterDispatch } = (0, import_react2.useContext)(DashboardFiltersContext);
@@ -26527,6 +26527,7 @@ var useDashboard = (dashboardName, config) => {
26527
26527
  id: reportId,
26528
26528
  data: {
26529
26529
  ...report2,
26530
+ error: void 0,
26530
26531
  pagination,
26531
26532
  triggerReload: false
26532
26533
  }
@@ -41985,7 +41986,8 @@ var getThemedStyles = (theme) => ({
41985
41986
  function Dashboard({
41986
41987
  name: name2,
41987
41988
  onClickReport,
41988
- containerStyle
41989
+ containerStyle,
41990
+ config
41989
41991
  }) {
41990
41992
  const [themeFromContext] = (0, import_react41.useContext)(ThemeContext);
41991
41993
  const theme = (0, import_react41.useMemo)(
@@ -41993,7 +41995,7 @@ function Dashboard({
41993
41995
  [themeFromContext]
41994
41996
  );
41995
41997
  const themedStyles = (0, import_react41.useMemo)(() => getThemedStyles(theme), [theme]);
41996
- const { sections, sectionOrder, isLoading, filters, applyFilters } = useDashboard(name2);
41998
+ const { sections, sectionOrder, isLoading, filters, applyFilters } = useDashboard(name2, config);
41997
41999
  const toValidDate = (value) => {
41998
42000
  if (value === void 0 || value === null || value === "") {
41999
42001
  return void 0;
@@ -51224,7 +51226,7 @@ function SQLEditor({
51224
51226
  onAddToDashboardComplete(data2);
51225
51227
  }
51226
51228
  if (!isAdminEnabled && destinationDashboard) {
51227
- reload(destinationDashboard, false, {
51229
+ reload(destinationDashboard, true, {
51228
51230
  report: data2,
51229
51231
  action: "upsert"
51230
51232
  });
@@ -55657,7 +55659,7 @@ var SaveReport = ({
55657
55659
  } : (data) => {
55658
55660
  onSubmitCreateReport(data);
55659
55661
  if (!isAdminEnabled && reportBuilder.destinationDashboard) {
55660
- reload(reportBuilder.destinationDashboard, false, {
55662
+ reload(reportBuilder.destinationDashboard, true, {
55661
55663
  report: data,
55662
55664
  action: "upsert"
55663
55665
  });
package/dist/index.d.cts CHANGED
@@ -1083,8 +1083,15 @@ interface DashboardProps {
1083
1083
  name: string;
1084
1084
  onClickReport: (report: QuillReport) => void;
1085
1085
  containerStyle?: CSSProperties;
1086
+ config?: {
1087
+ pageSize?: number;
1088
+ frontendCacheConfig?: {
1089
+ cacheType: 'memory' | 'indexedDB';
1090
+ };
1091
+ disableBackendCache?: boolean;
1092
+ };
1086
1093
  }
1087
- declare function Dashboard({ name, onClickReport, containerStyle, }: DashboardProps & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1094
+ declare function Dashboard({ name, onClickReport, containerStyle, config }: DashboardProps & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1088
1095
 
1089
1096
  type DashboardConfig = {
1090
1097
  dashboardId: string;
@@ -2626,7 +2633,6 @@ declare const useDashboard: (dashboardName: string, config?: {
2626
2633
  pageSize?: number;
2627
2634
  frontendCacheConfig?: {
2628
2635
  cacheType: "memory" | "indexedDB";
2629
- showCacheLogs?: boolean;
2630
2636
  };
2631
2637
  disableBackendCache?: boolean;
2632
2638
  }) => {
package/dist/index.d.ts CHANGED
@@ -1083,8 +1083,15 @@ interface DashboardProps {
1083
1083
  name: string;
1084
1084
  onClickReport: (report: QuillReport) => void;
1085
1085
  containerStyle?: CSSProperties;
1086
+ config?: {
1087
+ pageSize?: number;
1088
+ frontendCacheConfig?: {
1089
+ cacheType: 'memory' | 'indexedDB';
1090
+ };
1091
+ disableBackendCache?: boolean;
1092
+ };
1086
1093
  }
1087
- declare function Dashboard({ name, onClickReport, containerStyle, }: DashboardProps & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1094
+ declare function Dashboard({ name, onClickReport, containerStyle, config }: DashboardProps & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1088
1095
 
1089
1096
  type DashboardConfig = {
1090
1097
  dashboardId: string;
@@ -2626,7 +2633,6 @@ declare const useDashboard: (dashboardName: string, config?: {
2626
2633
  pageSize?: number;
2627
2634
  frontendCacheConfig?: {
2628
2635
  cacheType: "memory" | "indexedDB";
2629
- showCacheLogs?: boolean;
2630
2636
  };
2631
2637
  disableBackendCache?: boolean;
2632
2638
  }) => {
package/dist/index.js CHANGED
@@ -26287,7 +26287,7 @@ var useDashboards = () => {
26287
26287
  };
26288
26288
  };
26289
26289
  var useDashboard = (dashboardName, config) => {
26290
- const logCacheStatistics = config?.frontendCacheConfig?.showCacheLogs || false;
26290
+ const logCacheStatistics = false;
26291
26291
  const { data, dashboardFilters, reload, isLoading } = useDashboardInternal(dashboardName);
26292
26292
  const [lastUpdated, setLastUpdated] = useState2(0);
26293
26293
  const { customFilterDispatch } = useContext(DashboardFiltersContext);
@@ -26563,6 +26563,7 @@ var useDashboard = (dashboardName, config) => {
26563
26563
  id: reportId,
26564
26564
  data: {
26565
26565
  ...report2,
26566
+ error: void 0,
26566
26567
  pagination,
26567
26568
  triggerReload: false
26568
26569
  }
@@ -42095,7 +42096,8 @@ var getThemedStyles = (theme) => ({
42095
42096
  function Dashboard({
42096
42097
  name: name2,
42097
42098
  onClickReport,
42098
- containerStyle
42099
+ containerStyle,
42100
+ config
42099
42101
  }) {
42100
42102
  const [themeFromContext] = useContext22(ThemeContext);
42101
42103
  const theme = useMemo19(
@@ -42103,7 +42105,7 @@ function Dashboard({
42103
42105
  [themeFromContext]
42104
42106
  );
42105
42107
  const themedStyles = useMemo19(() => getThemedStyles(theme), [theme]);
42106
- const { sections, sectionOrder, isLoading, filters, applyFilters } = useDashboard(name2);
42108
+ const { sections, sectionOrder, isLoading, filters, applyFilters } = useDashboard(name2, config);
42107
42109
  const toValidDate = (value) => {
42108
42110
  if (value === void 0 || value === null || value === "") {
42109
42111
  return void 0;
@@ -51393,7 +51395,7 @@ function SQLEditor({
51393
51395
  onAddToDashboardComplete(data2);
51394
51396
  }
51395
51397
  if (!isAdminEnabled && destinationDashboard) {
51396
- reload(destinationDashboard, false, {
51398
+ reload(destinationDashboard, true, {
51397
51399
  report: data2,
51398
51400
  action: "upsert"
51399
51401
  });
@@ -55856,7 +55858,7 @@ var SaveReport = ({
55856
55858
  } : (data) => {
55857
55859
  onSubmitCreateReport(data);
55858
55860
  if (!isAdminEnabled && reportBuilder.destinationDashboard) {
55859
- reload(reportBuilder.destinationDashboard, false, {
55861
+ reload(reportBuilder.destinationDashboard, true, {
55860
55862
  report: data,
55861
55863
  action: "upsert"
55862
55864
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillsql/react",
3
- "version": "2.16.28",
3
+ "version": "2.16.29",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {