Switch live editing from CodeSandbox to StackBlitz across all platforms#57
Open
dobromirts wants to merge 2 commits into
Open
Switch live editing from CodeSandbox to StackBlitz across all platforms#57dobromirts wants to merge 2 commits into
dobromirts wants to merge 2 commits into
Conversation
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.
Related to IgniteUI/igniteui-documentation#246
Hides the CodeSandbox button across all platforms (Angular, React, Web Components) due to multiple blocking upstream issues (#8884, #8883, #8074).
All CodeSandbox logic is preserved and can be re enabled by uncommenting ~9 lines in addFooter().
Switches all platforms to StackBlitz using sdk.openProject() (in-memory file bundling) instead of the GitHub URL approach, which freezes on large repos due to webcontainer-core#2075.
Angular DV samples no longer use sharedData (non-DV boilerplate with src/app/ paths) — DV samples carry their own complete file set.
Web Components samples patch package.json's start script at click-time to bind webpack-dev-server to 0.0.0.0 so StackBlitz WebContainers can route the preview.
Backward compatible with prefix JSONs, paths starting with .. or ./samples/ are filtered out gracefully, falling back to the GitHub URL.
src/scripts/sample-widget.ts
addFooter() — CodeSandbox button commented out
AngularCodeService.init() — uses sdk.openProject() for both DV and non-DV; DV passes null for sharedData
XplatCodeService.init() — uses sdk.openProject() on successful JSON fetch; GitHub URL as fallback
XplatCodeService._openInStackBlitz() — new method, mirrors Angular's implementation with WC host fix
XplatCodeService._loadStackBlitzSdk() — new method, reuses same SDK loader pattern