@particle-academy/fancy-code 0.1.2 → 0.2.0
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.
- package/README.md +2 -2
- package/dist/index.cjs +878 -403
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +63 -26
- package/dist/index.d.ts +63 -26
- package/dist/index.js +877 -402
- package/dist/index.js.map +1 -1
- package/dist/styles.css +18 -18
- package/dist/styles.css.map +1 -1
- package/package.json +3 -13
package/README.md
CHANGED
|
@@ -374,8 +374,8 @@ Guidelines for AI agents (Claude Code, Copilot, etc.) working on this package.
|
|
|
374
374
|
|
|
375
375
|
### Editor Engine
|
|
376
376
|
|
|
377
|
-
- The `useCodemirror` hook manages the editor lifecycle
|
|
378
|
-
- Uses
|
|
377
|
+
- The `useCodemirror` hook manages the editor lifecycle.
|
|
378
|
+
- Uses compartments for hot-swapping language, theme, line numbers, word wrap, tab size, read-only, placeholder, and height constraints.
|
|
379
379
|
- External value changes are synced via `isExternalUpdate` ref to prevent onChange loops.
|
|
380
380
|
- SSR-safe: the editor is only created inside `useEffect`.
|
|
381
381
|
|