docs: runnable Svelte + Solid examples, try-online links (9 locales) - #22
Merged
Conversation
v0.5 shipped the Svelte and Solid adapters but examples/ still held only vanilla/vue/react, so every README's try-online row listed three frameworks and read as if the other two were unsupported. Both examples are mini Vite projects consuming the PUBLISHED package, the same shape StackBlitz builds, and each exercises the adapter surface: Svelte uses bind:value on both the 'en' restore and 'ko' compose fields (proving the action's re-sync) plus use:kokeyPaste; Solid drives the mode through a signal with a switch button, plus useKokey and use:kokeyPaste. Both register(ru) so the 'en' field demonstrates cross-script restoration. @sveltejs/vite-plugin-svelte 6 peers on vite ^6||^7 and would not install against the vite 8 the other examples use — v7 peers on vite 8 and pulls svelte ^5.46.4. Verified by npm install + build + serving each build and driving it in a real browser: Svelte restored ㅇㄴㅁ쇼 to dsaty and привет to ghbdtn, composed dkssud to 안녕, and paste-corrected dkssudgktpdy to 안녕하세요, with bind:value tracking; Solid did the same across a live mode switch. Try-online rows updated in all nine localized READMEs.
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.
v0.5 shipped the Svelte and Solid adapters, but
examples/still held only vanilla/vue/react — so every README's Try it online row listed three frameworks and read as if the other two weren't supported.Both are mini Vite projects consuming the published package (the same shape StackBlitz builds):
bind:valueon both the'en'restore and'ko'compose fields (which is what proves the action's re-sync), plususe:kokeyPaste.useKokeyanduse:kokeyPaste.Both call
register(ru)so the'en'field demonstrates cross-script restoration, not just Korean.Note on the toolchain
@sveltejs/vite-plugin-svelte@6peers onvite ^6 || ^7and fails to install against the vite 8 the other examples use. v7 peers on vite 8 and pullssvelte ^5.46.4.Verification
npm install+npm run buildfor each, then served each build and drove it in a real browser:ㅇㄴㅁ쇼→dsaty,привет→ghbdtn,dkssud→안녕, pasteddkssudgktpdy→안녕하세요; bothbind:valuereadouts tracked correctly.en→komode switch; ref factory gavegksrmf→한글; paste corrected.Try-online rows updated in all nine localized READMEs. Test suite still 100/100, typecheck green.