@extend-ai/react-xlsx 0.13.3 → 0.13.4

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.js CHANGED
@@ -26989,8 +26989,7 @@ function XlsxGrid({
26989
26989
  const canvasCellStyle = cellData.canvas ?? buildCanvasCellStyleCache(cellStyle);
26990
26990
  const fillColor = cellData.conditionalColorScale?.color ?? (typeof cellStyle.backgroundColor === "string" ? cellStyle.backgroundColor : sheetSurface);
26991
26991
  const gradientFill = !cellData.conditionalColorScale && typeof cellStyle.backgroundImage === "string" ? resolveCanvasGradientFill(paneContext, localRect, cellStyle.backgroundImage) : null;
26992
- const hasExplicitCellFill = cellData.conditionalColorScale !== null || gradientFill !== null || typeof cellStyle.backgroundColor === "string" && cellStyle.backgroundColor !== sheetSurface;
26993
- if (hasExplicitCellFill || cellData.chartHighlight) {
26992
+ if (cellData.chartHighlight) {
26994
26993
  flushPendingGridlines();
26995
26994
  }
26996
26995
  paneContext.fillStyle = gradientFill ?? fillColor;
@@ -27038,7 +27037,7 @@ function XlsxGrid({
27038
27037
  const bottomNeighborTopBorder = bottomNeighborData?.isMergedSecondary ? null : bottomNeighborData?.canvas?.topBorder ?? parseCanvasBorderDeclaration(bottomNeighborData?.style.borderTop);
27039
27038
  const resolvedRightBorder = resolveCanvasBoundaryBorder(rightBorder, rightNeighborLeftBorder);
27040
27039
  const resolvedBottomBorder = resolveCanvasBoundaryBorder(bottomBorder, bottomNeighborTopBorder);
27041
- if (showGridLines && !hasExplicitCellFill && (!resolvedRightBorder || !resolvedBottomBorder)) {
27040
+ if (showGridLines && (!resolvedRightBorder || !resolvedBottomBorder)) {
27042
27041
  enqueueGridlinePath();
27043
27042
  if (!resolvedRightBorder) {
27044
27043
  paneContext.moveTo(localRect.left + localRect.width - 0.5, localRect.top);
@@ -30684,7 +30683,6 @@ function useXlsxViewerThumbnails(options = {}) {
30684
30683
  const canvasCellStyle = cellData.canvas ?? buildCanvasCellStyleCache(cellData.style);
30685
30684
  const gradientFill = typeof cellData.style.backgroundImage === "string" ? resolveCanvasGradientFill(context, rect, cellData.style.backgroundImage) : null;
30686
30685
  const fillColor = cellData.conditionalColorScale?.color ?? (typeof cellData.style.backgroundColor === "string" ? cellData.style.backgroundColor : thumbnailSheetSurface);
30687
- const hasExplicitCellFill = cellData.conditionalColorScale !== null || gradientFill !== null || typeof cellData.style.backgroundColor === "string" && cellData.style.backgroundColor !== thumbnailSheetSurface;
30688
30686
  context.fillStyle = gradientFill ?? fillColor;
30689
30687
  context.fillRect(rect.left, rect.top, rect.width, rect.height);
30690
30688
  if (cellData.conditionalDataBar) {
@@ -30709,7 +30707,7 @@ function useXlsxViewerThumbnails(options = {}) {
30709
30707
  }
30710
30708
  }
30711
30709
  }
30712
- if (showGridLines && !hasExplicitCellFill) {
30710
+ if (showGridLines) {
30713
30711
  context.strokeStyle = palette.border;
30714
30712
  context.lineWidth = 1;
30715
30713
  context.beginPath();