reflex-components-dataeditor 0.10.1__tar.gz → 0.10.2a1__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.
@@ -32,6 +32,8 @@ reflex.db
32
32
  .env.*
33
33
  node_modules
34
34
  package-lock.json
35
+ # ...except the frontend package, which CI installs with `npm ci`.
36
+ !packages/reflex-frontend/package-lock.json
35
37
  *.pyi
36
38
  .pre-commit-config.yaml
37
39
  .claude/.worktrees
@@ -40,3 +42,5 @@ CLAUDE.local.md
40
42
 
41
43
  # Backups written by scripts/delete_automated_releases.sh
42
44
  automated-releases-backup-*.json
45
+ # The tarball `npm run build` packs the frontend package into.
46
+ packages/reflex-frontend/*.tgz
@@ -1,3 +1,11 @@
1
+ ## v0.10.2a1 (2026-12-04)
2
+
3
+ ### Bug Fixes
4
+
5
+ - Ship a `py.typed` marker so type checkers such as mypy read the package's bundled `.pyi` stubs instead of treating it as untyped. ([#7710](https://github.com/reflex-dev/reflex/issues/7710))
6
+ - Pressing Delete in an `rx.data_editor` with `on_delete` bound now clears the selected cells instead of throwing a `TypeError` in the browser; the handler still receives the deleted selection. ([#7884](https://github.com/reflex-dev/reflex/issues/7884))
7
+
8
+
1
9
  ## v0.10.1 (2026-10-26)
2
10
 
3
11
  ### Bug Fixes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: reflex-components-dataeditor
3
- Version: 0.10.1
3
+ Version: 0.10.2a1
4
4
  Summary: Reflex dataeditor components.
5
5
  Author-email: Khaleel Al-Adhami <khaleel@reflex.dev>
6
6
  Maintainer-email: Khaleel Al-Adhami <khaleel@reflex.dev>
@@ -10,7 +10,13 @@ from typing import Any, Literal, TypedDict
10
10
 
11
11
  from reflex_base.components.component import Component, NoSSRComponent, field
12
12
  from reflex_base.components.literals import LiteralRowMarker
13
- from reflex_base.event import EventHandler, no_args_event_spec, passthrough_event_spec
13
+ from reflex_base.components.tags.tag import CommonTag
14
+ from reflex_base.event import (
15
+ EventChain,
16
+ EventHandler,
17
+ no_args_event_spec,
18
+ passthrough_event_spec,
19
+ )
14
20
  from reflex_base.utils import format, types
15
21
  from reflex_base.utils.imports import ImportDict, ImportVar
16
22
  from reflex_base.utils.serializers import serializer
@@ -499,6 +505,29 @@ class DataEditor(NoSSRComponent):
499
505
  self.library: ["GridCellKind", "CompactSelection"],
500
506
  }
501
507
 
508
+ def _render(self, props: dict[str, Any] | None = None) -> CommonTag:
509
+ """Render the grid, making onDelete return true after queuing its events.
510
+
511
+ Args:
512
+ props: The props to render (if None, then use get_props).
513
+
514
+ Returns:
515
+ The tag to render.
516
+ """
517
+ tag = super()._render(props)
518
+ if (on_delete := self.event_triggers.get("on_delete")) is not None:
519
+ # Glide uses the return value of onDelete: true deletes the selection,
520
+ # and any other non-boolean is taken as the selection to delete.
521
+ handler = LiteralVar.create(on_delete)
522
+ tag = tag.add_props(
523
+ on_delete=Var(
524
+ _js_expr=f"((selection) => {{ ({handler!s})(selection); return true; }})",
525
+ _var_type=EventChain,
526
+ _var_data=handler._get_all_var_data(),
527
+ )
528
+ )
529
+ return tag
530
+
502
531
  def add_custom_code(self) -> list[str]:
503
532
  """Add custom code for reconstructing GridSelection with CompactSelection objects.
504
533