From 02b596bb23bbf62c484594152ba976fb5d2aafce Mon Sep 17 00:00:00 2001
From: BCsabaEngine Values formatted using methods on state: Reset isDirty after successful action Try 500ms and type quickly Keep errors until next action No saves yet — edit the form and wait 2s No flushes yet No events yet — interact with the form No snapshots yet No redo entries — undo something first No snapshots yet A Svelte 5 library that provides a supercharged $state() with deep reactive proxies, validation, snapshot/undo,
- and side effects — built for complex, real-world applications. Values formatted using methods on state: Reset isDirty after successful action Try 500ms and type quickly Keep errors until next action No saves yet — edit the form and wait 2s No flushes yet No events yet — interact with the form No snapshots yet No redo entries — undo something first No snapshots yet A Svelte 5 library that provides a supercharged $state() with deep reactive proxies, validation, snapshot/undo,
+ and side effects — built for complex, real-world applications. A Svelte 5 library that provides a supercharged $state() with deep reactive proxies, validation, snapshot/undo,
- and side effects — built for complex, real-world applications.Dirty Fields
{JSON.stringify(
isDirtyByField,
- Object.keys(isDirtyByField).toSorted(),
+ Object.keys(isDirtyByField).toSorted((a, b) => a.localeCompare(b)),
2
)}
diff --git a/demo/src/components/FormTextarea.svelte b/demo/src/components/FormTextarea.svelte
index 0a5f6d5..8d9f45c 100644
--- a/demo/src/components/FormTextarea.svelte
+++ b/demo/src/components/FormTextarea.svelte
@@ -38,7 +38,6 @@
: 'border-gray-300 bg-gray-50 text-gray-900 focus:border-blue-500 focus:ring-blue-500'}"
{placeholder}
{rows}
- bind:value
- >
+ bind:value>
0){var ee=i&4&&s===0?n:null;if(o){for(v=0;v
`),pa=U(`
Dirty Fields
State Object
State Info
Errors
Action State
Contacts
Quick Fill
Async Validation State
Async Errors
`);function co(e,t){var n=so(),r=F(n),i=L(r),a=e=>{var n=oo(),r=F(n);k(n),R(()=>G(r,`(${t.subtitle??``})`)),W(e,n)};K(i,e=>{t.subtitle&&e(a)});var o=L(i,2),s=e=>{var n=Kr();ui(I(n),()=>t.children),W(e,n)};K(o,e=>{t.children&&e(s)}),k(n),R(()=>G(r,`${t.title??``} `)),W(e,n)}var lo=U(` data.formatCurrency() and data.formatTotal()
Options
Current Options
`),zo=U(`
Autosave Log
Analytics Buffer
Flush History
`),Yo=U(`
Event Log
Persistence Info
Raw localStorage
Sync Info
`),us=U(`
Snapshot History
Redo Stack
`),ws=U(`
Snapshot History
svstate
0){var ee=i&4&&s===0?n:null;if(o){for(v=0;v
`),la=U(`
Dirty Fields
State Object
State Info
Errors
Action State
Contacts
Quick Fill
Async Validation State
Async Errors
`);function io(e,t){var n=ro(),r=F(n),i=L(r),a=e=>{var n=no(),r=F(n);k(n),R(()=>G(r,`(${t.subtitle??``})`)),W(e,n)};K(i,e=>{t.subtitle&&e(a)});var o=L(i,2),s=e=>{var n=Vr();ai(I(n),()=>t.children),W(e,n)};K(o,e=>{t.children&&e(s)}),k(n),R(()=>G(r,`${t.title??``} `)),W(e,n)}var ao=U(` data.formatCurrency() and data.formatTotal()
Options
Current Options
`),Fo=U(`
Autosave Log
Analytics Buffer
Flush History
`),Go=U(`
Event Log
Persistence Info
Raw localStorage
Sync Info
`),os=U(`
Snapshot History
Redo Stack
`),bs=U(`
Snapshot History
svstate
svstate