[feat] Add BidiComponentRegistry classes#12646
Merged
sfc-gh-bnisco merged 1 commit intodevelopfrom Oct 24, 2025
Merged
Conversation
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Contributor
✅ PR preview is ready!
|
This was referenced Sep 26, 2025
Collaborator
Author
Contributor
📉 Python coverage change detectedThe Python unit test coverage has decreased by 0.0255%
✅ Coverage change is within normal range. Coverage by files
|
314a49a to
8eece75
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new component registry system for CCv2 (Custom Components Version 2) in Streamlit. The implementation introduces internal building blocks for bidirectional component management that will be wired into registration and execution workflows in future work.
Key changes include:
- New
BidiComponentDefinitionclass for storing component metadata with path resolution and content handling - New
BidiComponentRegistryclass providing thread-safe component registration and retrieval - Comprehensive test coverage for path validation, asset URL handling, and registry operations
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
lib/streamlit/components/v2/component_registry.py |
Core implementation of component definition and registry classes with path resolution logic |
lib/tests/streamlit/components/v2/test_component_registry.py |
Comprehensive test suite covering path classification, asset overrides, and registry operations |
This was referenced Sep 26, 2025
8eece75 to
5061bc5
Compare
This was referenced Sep 29, 2025
2d8a831 to
22f2298
Compare
126d83e to
19ee35c
Compare
22f2298 to
4de133e
Compare
19ee35c to
1f12af2
Compare
536d681 to
d5e3003
Compare
1f12af2 to
6ad3a92
Compare
d5e3003 to
536d681
Compare
23e255d to
fd03578
Compare
8bf2fca to
60f1393
Compare
fd03578 to
a232442
Compare
60f1393 to
091465f
Compare
This was referenced Oct 10, 2025
091465f to
77613c7
Compare
a232442 to
16a0ef3
Compare
77613c7 to
93f342d
Compare
16a0ef3 to
31ae4ed
Compare
93f342d to
1f364d8
Compare
31ae4ed to
c31f637
Compare
c31f637 to
8166712
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Describe your changes
BidiComponentDefinitionclass to store component metadata, content, and file pathsBidiComponentRegistryclass for thread-safe registration and retrieval of componentsGitHub Issue Link (if applicable)
Testing Plan
test_component_registry.pycovering:Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.