reflex-components-code 0.10.0a2__tar.gz → 0.10.1__tar.gz

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.
@@ -1,11 +1,19 @@
1
- ## v0.10.0a2 (2026-10-06)
1
+ ## v0.10.1 (2026-10-26)
2
2
 
3
- ### Breaking Changes
3
+ ### Bug Fixes
4
4
 
5
- - Require Python 3.11 or newer; Python 3.10 is no longer supported. ([#7449](https://github.com/reflex-dev/reflex/issues/7449))
5
+ - Fix `use_transformers=True` on the Shiki code block rendering no transformers: the default shikijs transformers and their styles are now applied again. ([#7437](https://github.com/reflex-dev/reflex/issues/7437))
6
+
7
+ ### Miscellaneous
6
8
 
9
+ - Update react-syntax-highlighter to 16.1.2. ([#7645](https://github.com/reflex-dev/reflex/issues/7645))
7
10
 
8
- ## v0.10.0a1 (2026-10-05)
11
+
12
+ ## v0.10.0 (2026-10-08)
13
+
14
+ ### Breaking Changes
15
+
16
+ - Require Python 3.11 or newer; Python 3.10 is no longer supported. ([#7449](https://github.com/reflex-dev/reflex/issues/7449))
9
17
 
10
18
  ### Miscellaneous
11
19
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: reflex-components-code
3
- Version: 0.10.0a2
3
+ Version: 0.10.1
4
4
  Summary: Reflex code display components.
5
5
  Author-email: Khaleel Al-Adhami <khaleel@reflex.dev>
6
6
  Maintainer-email: Khaleel Al-Adhami <khaleel@reflex.dev>
@@ -12,10 +12,10 @@ Classifier: Programming Language :: Python :: 3.13
12
12
  Classifier: Programming Language :: Python :: 3.14
13
13
  Classifier: Programming Language :: Python :: 3.15
14
14
  Requires-Python: >=3.11
15
- Requires-Dist: reflex-base>=0.10.0a2
16
- Requires-Dist: reflex-components-core>=0.10.0a2
17
- Requires-Dist: reflex-components-lucide>=1.1.0a1
18
- Requires-Dist: reflex-components-radix>=0.10.0a2
15
+ Requires-Dist: reflex-base>=0.10.0
16
+ Requires-Dist: reflex-components-core>=0.10.0
17
+ Requires-Dist: reflex-components-lucide>=1.1.0
18
+ Requires-Dist: reflex-components-radix>=0.10.0
19
19
  Description-Content-Type: text/markdown
20
20
 
21
21
  # reflex-components-code
@@ -16,10 +16,10 @@ classifiers = [
16
16
  "Programming Language :: Python :: 3.15",
17
17
  ]
18
18
  dependencies = [
19
- "reflex-base >= 0.10.0a2",
20
- "reflex-components-core >= 0.10.0a2",
21
- "reflex-components-lucide >= 1.1.0a1",
22
- "reflex-components-radix >= 0.10.0a2",
19
+ "reflex-base >= 0.10.0",
20
+ "reflex-components-core >= 0.10.0",
21
+ "reflex-components-lucide >= 1.1.0",
22
+ "reflex-components-radix >= 0.10.0",
23
23
  ]
24
24
 
25
25
  [tool.hatch.version]
@@ -382,7 +382,7 @@ for theme_name in dir(Theme):
382
382
  class CodeBlock(Component, MarkdownComponentMap):
383
383
  """A code block."""
384
384
 
385
- library = "react-syntax-highlighter@16.1.1"
385
+ library = "react-syntax-highlighter@16.1.2"
386
386
 
387
387
  tag = "PrismAsyncLight"
388
388
 
@@ -426,7 +426,7 @@ class ShikiJsTransformer(ShikiBaseTransformers):
426
426
  library: str = "@shikijs/transformers@4.5.0"
427
427
  fns: list[FunctionStringVar] = dataclasses.field(
428
428
  default_factory=lambda: [
429
- FunctionStringVar.create(fn) for fn in SHIKIJS_TRANSFORMER_FNS
429
+ FunctionStringVar.create(fn) for fn in sorted(SHIKIJS_TRANSFORMER_FNS)
430
430
  ]
431
431
  )
432
432
  style: Style | None = dataclasses.field(
@@ -513,29 +513,6 @@ class ShikiJsTransformer(ShikiBaseTransformers):
513
513
  })
514
514
  )
515
515
 
516
- def __init__(self, **kwargs):
517
- """Initialize the transformer.
518
-
519
- Args:
520
- kwargs: Kwargs to initialize the props.
521
-
522
- """
523
- fns = kwargs.pop("fns", None)
524
- style = kwargs.pop("style", None)
525
- if fns:
526
- kwargs["fns"] = [
527
- (
528
- FunctionStringVar.create(x)
529
- if not isinstance(x, FunctionStringVar)
530
- else x
531
- )
532
- for x in fns
533
- ]
534
-
535
- if style:
536
- kwargs["style"] = Style(style)
537
- super().__init__(**kwargs)
538
-
539
516
 
540
517
  class ShikiCodeBlock(Component, MarkdownComponentMap):
541
518
  """A Code block."""