@quillsql/react 2.16.70 → 2.16.71

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
@@ -62092,6 +62092,12 @@ function mergeDisplayAndSourceForTableFormats(args) {
62092
62092
  for (const candidateKey of candidateKeys) {
62093
62093
  const candidates = sourceColumnsByKey.get(candidateKey) ?? [];
62094
62094
  if (candidates.length === 0) continue;
62095
+ const exactFieldMatch = candidates.find(
62096
+ (candidate) => String(candidate.field ?? "").trim() === candidateKey
62097
+ );
62098
+ if (exactFieldMatch) {
62099
+ return exactFieldMatch;
62100
+ }
62095
62101
  if (selection.table) {
62096
62102
  const tableMatch = candidates.find((candidate) => {
62097
62103
  return String(candidate.table ?? "").trim() === selection.table;
@@ -64599,9 +64605,7 @@ function useReport(reportIdArg, options = {}) {
64599
64605
  reportId: effectiveReportId,
64600
64606
  draftSessionId,
64601
64607
  useInMemoryEngines,
64602
- hasInitialReportBuilderState: Boolean(
64603
- initialReportBuilderStateForLoad
64604
- ),
64608
+ hasInitialReportBuilderState: Boolean(initialReportBuilderStateForLoad),
64605
64609
  reloadKeyHash,
64606
64610
  tenantHash,
64607
64611
  flagHash,
@@ -65424,11 +65428,7 @@ function useReport(reportIdArg, options = {}) {
65424
65428
  }
65425
65429
  return { ...currentReport, rowCount: countReport.rowCount };
65426
65430
  });
65427
- }, [
65428
- createdBootstrapRowCountQuery.data,
65429
- effectiveReportId,
65430
- sourceReport?.id
65431
- ]);
65431
+ }, [createdBootstrapRowCountQuery.data, effectiveReportId, sourceReport?.id]);
65432
65432
  const chartTypes = (0, import_react61.useMemo)(() => {
65433
65433
  return getChartTypeOptions2({ pivot: pivotState });
65434
65434
  }, [pivotState]);
package/dist/index.js CHANGED
@@ -62304,6 +62304,12 @@ function mergeDisplayAndSourceForTableFormats(args) {
62304
62304
  for (const candidateKey of candidateKeys) {
62305
62305
  const candidates = sourceColumnsByKey.get(candidateKey) ?? [];
62306
62306
  if (candidates.length === 0) continue;
62307
+ const exactFieldMatch = candidates.find(
62308
+ (candidate) => String(candidate.field ?? "").trim() === candidateKey
62309
+ );
62310
+ if (exactFieldMatch) {
62311
+ return exactFieldMatch;
62312
+ }
62307
62313
  if (selection.table) {
62308
62314
  const tableMatch = candidates.find((candidate) => {
62309
62315
  return String(candidate.table ?? "").trim() === selection.table;
@@ -64811,9 +64817,7 @@ function useReport(reportIdArg, options = {}) {
64811
64817
  reportId: effectiveReportId,
64812
64818
  draftSessionId,
64813
64819
  useInMemoryEngines,
64814
- hasInitialReportBuilderState: Boolean(
64815
- initialReportBuilderStateForLoad
64816
- ),
64820
+ hasInitialReportBuilderState: Boolean(initialReportBuilderStateForLoad),
64817
64821
  reloadKeyHash,
64818
64822
  tenantHash,
64819
64823
  flagHash,
@@ -65636,11 +65640,7 @@ function useReport(reportIdArg, options = {}) {
65636
65640
  }
65637
65641
  return { ...currentReport, rowCount: countReport.rowCount };
65638
65642
  });
65639
- }, [
65640
- createdBootstrapRowCountQuery.data,
65641
- effectiveReportId,
65642
- sourceReport?.id
65643
- ]);
65643
+ }, [createdBootstrapRowCountQuery.data, effectiveReportId, sourceReport?.id]);
65644
65644
  const chartTypes = useMemo33(() => {
65645
65645
  return getChartTypeOptions2({ pivot: pivotState });
65646
65646
  }, [pivotState]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillsql/react",
3
- "version": "2.16.70",
3
+ "version": "2.16.71",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {