Skip to content

feat(xlsx-viewer): expose getCellStyle for custom per-cell styling - #15

Draft
tothienbao6a0 wants to merge 1 commit into
extend-hq:mainfrom
tothienbao6a0:feat/xlsx-viewer-get-cell-style
Draft

feat(xlsx-viewer): expose getCellStyle for custom per-cell styling#15
tothienbao6a0 wants to merge 1 commit into
extend-hq:mainfrom
tothienbao6a0:feat/xlsx-viewer-get-cell-style

Conversation

@tothienbao6a0

Copy link
Copy Markdown

Summary

Forwards the new getCellStyle prop from @extend-ai/react-xlsx through the @extend/xlsx-viewer registry component, so consumers can apply custom per-cell styling (highlights, outlines, status tints) on top of the workbook's own Excel formatting — without forking the component.

  • Threads getCellStyle through XlsxViewerPreview → XlsxViewerContent → XlsxWorkbookLoadedViewer → XlsxWorkbookSurface → XlsxViewer, typed via XlsxViewerProps["getCellStyle"] so the signature stays in sync with the underlying package.
  • Bumps the @extend-ai/react-xlsx dependency (package.json + registry.json) to the release that adds the prop.
  • Documents getCellStyle in the component's API reference.

Dependency / status

Draft — blocked on getCellStyle shipping in a published @extend-ai/react-xlsx release (upstream: extend-hq/react-xlsx#8). The version pin here is provisional and should be matched to whatever release includes that change. Ready to mark for review once the package is published.

Test plan

  • pnpm typecheck (verified locally against a getCellStyle-enabled build of the package)
  • pnpm registry:validate
  • prettier --check on changed files
  • pnpm build once the dependency release is available

Made with Cursor

Forward the new react-xlsx `getCellStyle` prop through the
`@extend/xlsx-viewer` registry component so consumers can apply custom
per-cell styling on top of the workbook's own formatting. Bumps the
`@extend-ai/react-xlsx` dependency to the release that adds the prop and
documents it in the component API reference.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

@tothienbao6a0 is attempting to deploy a commit to the Extend Team on Vercel.

A member of the Team first needs to authorize it.

@tothienbao6a0

Copy link
Copy Markdown
Author

Opening for visibility 👋 — this is the downstream half of extend-hq/react-xlsx#8.

It just forwards the new getCellStyle prop through the @extend/xlsx-viewer registry component (typed via XlsxViewerProps["getCellStyle"] so the signature stays in lockstep with the package), bumps the dependency, and documents the prop.

Kept as a draft on purpose: it's blocked on getCellStyle shipping in a published @extend-ai/react-xlsx release, so the version pin here is provisional. I verified typecheck / registry:validate / prettier locally against a getCellStyle-enabled build of the package.

Question for maintainers: once react-xlsx#8 lands and releases, do you want the pin matched to that exact version before this goes in? Happy to update and flip it out of draft whenever the release is cut.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant