[feat] Add shared hooks to handle DOM manipulation for CCv2#12752
Merged
sfc-gh-bnisco merged 1 commit intodevelopfrom Oct 24, 2025
Merged
[feat] Add shared hooks to handle DOM manipulation for CCv2#12752sfc-gh-bnisco merged 1 commit intodevelopfrom
sfc-gh-bnisco merged 1 commit intodevelopfrom
Conversation
This was referenced Oct 10, 2025
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. |
This was referenced Oct 10, 2025
Contributor
✅ PR preview is ready!
|
This was referenced Oct 10, 2025
Collaborator
Author
This was referenced Oct 10, 2025
c0c2e3d to
1c06edd
Compare
6aaed3e to
9414fbc
Compare
3818d55 to
f533766
Compare
0e5330d to
8dc20d9
Compare
f533766 to
3aafede
Compare
8dc20d9 to
90e87dd
Compare
ad9f15b to
e7f2b9f
Compare
27fc90e to
771c9cf
Compare
e7f2b9f to
9cac7dc
Compare
771c9cf to
2974b65
Compare
9cac7dc to
7b30740
Compare
2974b65 to
f5f5b18
Compare
7b30740 to
cbba155
Compare
f5f5b18 to
ad6a296
Compare
cbba155 to
58f91ac
Compare
82c5d00 to
e32bf13
Compare
352530d to
f2f1b79
Compare
f2f1b79 to
1e6e44c
Compare
e32bf13 to
74dd0c1
Compare
1e6e44c to
16f2a9b
Compare
16f2a9b to
7c0b69f
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
Added two new hooks for CCv2 to handle HTML, CSS, and JavaScript content from the user's component:
useHandleHtmlAndCssContent: Safely injects HTML content (including script tags) and CSS into the component container. It supports both inline CSS and external CSS files.useHandleJsContent: Manages JavaScript content execution for CCv2. It supports both inline JS and external JS files, and provides proper lifecycle management with cleanup functions.These hooks provide a clean separation of concerns for handling different types of content in BidiComponents, with proper error handling and resource cleanup.
GitHub Issue Link (if applicable)
Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.