@quillsql/react 2.15.7 → 2.15.8

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
@@ -19017,6 +19017,10 @@ async function cleanDashboardItem({
19017
19017
  let pivotTable;
19018
19018
  let pivotError;
19019
19019
  try {
19020
+ const shouldPaginatePivotAsTable = item.chartType === "table";
19021
+ const pivotChartProcessing = {
19022
+ page: DEFAULT_PAGINATION
19023
+ };
19020
19024
  pivotTable = await getPivotTable(
19021
19025
  {
19022
19026
  ...item,
@@ -19039,7 +19043,7 @@ async function cleanDashboardItem({
19039
19043
  client,
19040
19044
  eventTracking,
19041
19045
  dateBucket,
19042
- additionalProcessing,
19046
+ shouldPaginatePivotAsTable ? additionalProcessing : pivotChartProcessing,
19043
19047
  tenants,
19044
19048
  customFields
19045
19049
  );
@@ -23808,20 +23812,16 @@ var useDashboard = (dashboardName, config) => {
23808
23812
  });
23809
23813
  const customReportFiltersArray = await waitForCustomFilters(reportId);
23810
23814
  let rowsPerRequest = pageSize || 600;
23811
- if (!pageSize) {
23812
- if (reportInfo.chartType === "table") {
23813
- rowsPerRequest = 10;
23814
- } else if (reportInfo.chartType === "metric") {
23815
- rowsPerRequest = 1;
23816
- }
23815
+ if (!pageSize && (reportInfo.chartType === "table" || reportInfo.chartType === "metric")) {
23816
+ rowsPerRequest = 10;
23817
23817
  }
23818
23818
  const pagination = {
23819
23819
  rowsPerRequest,
23820
23820
  rowsPerPage: rowsPerRequest
23821
23821
  };
23822
- const additionalProcessing = rowsPerRequest ? {
23822
+ const additionalProcessing = {
23823
23823
  page: pagination
23824
- } : void 0;
23824
+ };
23825
23825
  const { report, error } = await fetchReport({
23826
23826
  reportId,
23827
23827
  client,
package/dist/index.js CHANGED
@@ -19029,6 +19029,10 @@ async function cleanDashboardItem({
19029
19029
  let pivotTable;
19030
19030
  let pivotError;
19031
19031
  try {
19032
+ const shouldPaginatePivotAsTable = item.chartType === "table";
19033
+ const pivotChartProcessing = {
19034
+ page: DEFAULT_PAGINATION
19035
+ };
19032
19036
  pivotTable = await getPivotTable(
19033
19037
  {
19034
19038
  ...item,
@@ -19051,7 +19055,7 @@ async function cleanDashboardItem({
19051
19055
  client,
19052
19056
  eventTracking,
19053
19057
  dateBucket,
19054
- additionalProcessing,
19058
+ shouldPaginatePivotAsTable ? additionalProcessing : pivotChartProcessing,
19055
19059
  tenants,
19056
19060
  customFields
19057
19061
  );
@@ -23820,20 +23824,16 @@ var useDashboard = (dashboardName, config) => {
23820
23824
  });
23821
23825
  const customReportFiltersArray = await waitForCustomFilters(reportId);
23822
23826
  let rowsPerRequest = pageSize || 600;
23823
- if (!pageSize) {
23824
- if (reportInfo.chartType === "table") {
23825
- rowsPerRequest = 10;
23826
- } else if (reportInfo.chartType === "metric") {
23827
- rowsPerRequest = 1;
23828
- }
23827
+ if (!pageSize && (reportInfo.chartType === "table" || reportInfo.chartType === "metric")) {
23828
+ rowsPerRequest = 10;
23829
23829
  }
23830
23830
  const pagination = {
23831
23831
  rowsPerRequest,
23832
23832
  rowsPerPage: rowsPerRequest
23833
23833
  };
23834
- const additionalProcessing = rowsPerRequest ? {
23834
+ const additionalProcessing = {
23835
23835
  page: pagination
23836
- } : void 0;
23836
+ };
23837
23837
  const { report, error } = await fetchReport({
23838
23838
  reportId,
23839
23839
  client,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillsql/react",
3
- "version": "2.15.7",
3
+ "version": "2.15.8",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -21,11 +21,6 @@
21
21
  "lint": "eslint . --max-warnings 0",
22
22
  "pub": "rm -rf dist && tsc && npm publish --access public"
23
23
  },
24
- "overrides": {
25
- "d3-color": "^3.1.0",
26
- "d3-transition": "^3.0.0",
27
- "d3-zoom": "^3.0.0"
28
- },
29
24
  "dependencies": {
30
25
  "@dnd-kit/core": "^6.1.0",
31
26
  "@dnd-kit/sortable": "^8.0.0",
@@ -42,7 +37,7 @@
42
37
  "fast-deep-equal": "^3.1.3",
43
38
  "jspdf": "^3.0.1",
44
39
  "react-day-picker": "^9.7.0",
45
- "react-simple-maps": "^3.0.0",
40
+ "react-simple-maps": "git+https://github.com/zcreativelabs/react-simple-maps.git",
46
41
  "recharts": "^2.13.0"
47
42
  },
48
43
  "devDependencies": {