@quillsql/react 2.16.76 → 2.16.78

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.d.cts CHANGED
@@ -2795,8 +2795,8 @@ interface PaginationState {
2795
2795
  type Updater<T> = T | ((old: T) => T);
2796
2796
  type OnChangeFn<T> = (updaterOrValue: Updater<T>) => void;
2797
2797
  declare const DEFAULT_PAGE_SIZE = 10;
2798
- /** Base row window fetched before per-page server requests kick in. */
2799
- declare const DEFAULT_USE_REPORT_ROWS_PER_REQUEST: number;
2798
+ /** Default row window for every useReport chart/table request. */
2799
+ declare const DEFAULT_USE_REPORT_ROWS_PER_REQUEST = 10;
2800
2800
 
2801
2801
  type SelectOption = {
2802
2802
  label: string;
@@ -3540,6 +3540,11 @@ declare const useDashboard: (dashboardName: string, config?: {
3540
3540
  cacheEnabled?: boolean;
3541
3541
  cacheType?: "memory" | "idb";
3542
3542
  showCacheLogs?: boolean;
3543
+ cacheDateRange?: {
3544
+ startDate: Date;
3545
+ endDate: Date;
3546
+ };
3547
+ reportStaleTimeMs?: number;
3543
3548
  }) => {
3544
3549
  isLoading: boolean;
3545
3550
  sections: Record<string, QuillReport[]> | null;
@@ -3559,6 +3564,7 @@ declare const useDashboard: (dashboardName: string, config?: {
3559
3564
  } | Filter>) => void;
3560
3565
  lastUpdated: number;
3561
3566
  forceCacheRefresh: () => void;
3567
+ primeReportSource: (reportId: string) => Promise<void>;
3562
3568
  reload: UseDashboardReload;
3563
3569
  };
3564
3570
  declare const useDashboardReport: (reportId: string, config?: {
@@ -3936,6 +3942,8 @@ interface QuillFetchOptions {
3936
3942
  credentials?: RequestCredentials;
3937
3943
  urlParameters?: string;
3938
3944
  adminMode?: boolean;
3945
+ /** Internal opt-in for exact initial-request sharing across mounted hooks. */
3946
+ shareRequest?: boolean;
3939
3947
  getToken: () => Promise<string>;
3940
3948
  }
3941
3949
  interface QuillResults {
@@ -3946,7 +3954,7 @@ interface QuillResults {
3946
3954
  message?: string;
3947
3955
  }
3948
3956
 
3949
- declare const quillFetch: ({ client, task, method, metadata, abortSignal, credentials, urlParameters, getToken, }: QuillFetchOptions) => Promise<QuillResults>;
3957
+ declare const quillFetch: ({ client, task, method, metadata, abortSignal, credentials, urlParameters, shareRequest, getToken, }: QuillFetchOptions) => Promise<QuillResults>;
3950
3958
 
3951
3959
  declare const downloadCSV: (data: {
3952
3960
  rows: any[];
package/dist/index.d.ts CHANGED
@@ -2795,8 +2795,8 @@ interface PaginationState {
2795
2795
  type Updater<T> = T | ((old: T) => T);
2796
2796
  type OnChangeFn<T> = (updaterOrValue: Updater<T>) => void;
2797
2797
  declare const DEFAULT_PAGE_SIZE = 10;
2798
- /** Base row window fetched before per-page server requests kick in. */
2799
- declare const DEFAULT_USE_REPORT_ROWS_PER_REQUEST: number;
2798
+ /** Default row window for every useReport chart/table request. */
2799
+ declare const DEFAULT_USE_REPORT_ROWS_PER_REQUEST = 10;
2800
2800
 
2801
2801
  type SelectOption = {
2802
2802
  label: string;
@@ -3540,6 +3540,11 @@ declare const useDashboard: (dashboardName: string, config?: {
3540
3540
  cacheEnabled?: boolean;
3541
3541
  cacheType?: "memory" | "idb";
3542
3542
  showCacheLogs?: boolean;
3543
+ cacheDateRange?: {
3544
+ startDate: Date;
3545
+ endDate: Date;
3546
+ };
3547
+ reportStaleTimeMs?: number;
3543
3548
  }) => {
3544
3549
  isLoading: boolean;
3545
3550
  sections: Record<string, QuillReport[]> | null;
@@ -3559,6 +3564,7 @@ declare const useDashboard: (dashboardName: string, config?: {
3559
3564
  } | Filter>) => void;
3560
3565
  lastUpdated: number;
3561
3566
  forceCacheRefresh: () => void;
3567
+ primeReportSource: (reportId: string) => Promise<void>;
3562
3568
  reload: UseDashboardReload;
3563
3569
  };
3564
3570
  declare const useDashboardReport: (reportId: string, config?: {
@@ -3936,6 +3942,8 @@ interface QuillFetchOptions {
3936
3942
  credentials?: RequestCredentials;
3937
3943
  urlParameters?: string;
3938
3944
  adminMode?: boolean;
3945
+ /** Internal opt-in for exact initial-request sharing across mounted hooks. */
3946
+ shareRequest?: boolean;
3939
3947
  getToken: () => Promise<string>;
3940
3948
  }
3941
3949
  interface QuillResults {
@@ -3946,7 +3954,7 @@ interface QuillResults {
3946
3954
  message?: string;
3947
3955
  }
3948
3956
 
3949
- declare const quillFetch: ({ client, task, method, metadata, abortSignal, credentials, urlParameters, getToken, }: QuillFetchOptions) => Promise<QuillResults>;
3957
+ declare const quillFetch: ({ client, task, method, metadata, abortSignal, credentials, urlParameters, shareRequest, getToken, }: QuillFetchOptions) => Promise<QuillResults>;
3950
3958
 
3951
3959
  declare const downloadCSV: (data: {
3952
3960
  rows: any[];