From 5fa56c710eb43b6647defd29fea6e505a80c585a Mon Sep 17 00:00:00 2001 From: Casey Riebe Date: Wed, 10 Sep 2025 17:05:10 -0500 Subject: [PATCH] Fixing `code_tag_props` in `rx.code_block` --- pyi_hashes.json | 2 +- reflex/components/datadisplay/code.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyi_hashes.json b/pyi_hashes.json index c997c6d93d3..3525e809aa8 100644 --- a/pyi_hashes.json +++ b/pyi_hashes.json @@ -22,7 +22,7 @@ "reflex/components/core/upload.pyi": "c11465a3a88e3a374251dd1a16582938", "reflex/components/core/window_events.pyi": "76bf03a273a1fbbb3b333e10d5d08c30", "reflex/components/datadisplay/__init__.pyi": "52755871369acbfd3a96b46b9a11d32e", - "reflex/components/datadisplay/code.pyi": "ec35c215a219c616ff38c30047d9b601", + "reflex/components/datadisplay/code.pyi": "b86769987ef4d1cbdddb461be88539fd", "reflex/components/datadisplay/dataeditor.pyi": "82c652f0679148d8431a0cf645686a50", "reflex/components/datadisplay/shiki_code_block.pyi": "1d53e75b6be0d3385a342e7b3011babd", "reflex/components/el/__init__.pyi": "0adfd001a926a2a40aee94f6fa725ecc", diff --git a/reflex/components/datadisplay/code.py b/reflex/components/datadisplay/code.py index 98894635e54..8b543cfad8c 100644 --- a/reflex/components/datadisplay/code.py +++ b/reflex/components/datadisplay/code.py @@ -382,7 +382,7 @@ class Theme: class CodeBlock(Component, MarkdownComponentMap): """A code block.""" - library = "react-syntax-highlighter@15.6.1" + library = "react-syntax-highlighter@15.6.6" tag = "PrismAsyncLight" @@ -412,7 +412,7 @@ class CodeBlock(Component, MarkdownComponentMap): ) # Props passed down to the code tag. - code_tag_props: Var[dict[str, str]] + code_tag_props: Var[dict[str, str | dict[str, str]]] # Whether a copy button should appear. can_copy: bool | None = field(