4854311Thanks @vnphanquang! - improve clickbackdrop behavior inenhanceDialog: only register ifpointerupandpointerdownhave both been 'outside'
2783fdbThanks @vnphanquang! - progress should be checked against null not falsy (can be 0)
65180bdThanks @vnphanquang! - make sure push configs are merged correctly and recursively but ignoring nullish values
-
3c22ed9Thanks @vnphanquang! - exposeStackItem['progress']as a number from 0 to 1, indicating how far until the timeout is reached, if any -
7c60a7aThanks @vnphanquang! - (experimental) newimport('@svelte-put/async-stack/helpers').renderPopoverfor renderingStackItemas popover (intended for notifications, toasts, etc.)
-
64e5b0fThanks @vnphanquang! - revertStackItem.msToTimeoutto internals as not helpful to public users -
31ee757Thanks @vnphanquang! - useimport('svelte/events').oninstead ofaddEventListener(ref: svelte/events docs)
44b8343Thanks @vnphanquang! - makeStackItem.msToTimeoutpublic
eaa9f2aThanks @vnphanquang! - (experimental) return early onevent.defaultPrevented === trueinside click handler ofenhanceDialog
-
a7c0e17Thanks @vnphanquang! - (experimental) only callshowModalinenhanceDialogif dialog is not already open -
b9bf91aThanks @vnphanquang! - (experimental) proactively invokepreventDefaulton "Escape" keydown to ensure consistency forpreventResolutionoption inenhanceDialogon Chrome, where the second Escape keydown will bypass the cancel event
d04480cThanks @vnphanquang! - (experimental) clean up oldcancellistener inenhanceDialog
d897673Thanks @vnphanquang! - (experimental) allow passingpreventResolutiontoenhanceDialogto effectively make allitem.resolveanddialog.requestCloseinert
09a97b4Thanks @vnphanquang! - call import('svelte').tick() before resolution to make sure DOM updates are applied
-
7cb4da8Thanks @vnphanquang! - (experimental)onResolvenow returns callback that removes the listener -
a70e65bThanks @vnphanquang! - (experimental) allow cancelling resolution viaStackItem.onResolvecallback
-
139b7daThanks @vnphanquang! - (experimental) useSetinstead of array forStackItemResolveListenerto help avoid duplicated callbacksNOTE: should discourage user from using arrow functions.
-
cd7fefcThanks @vnphanquang! - markitem.onResolveas experimental and clarify async behavior -
5793e71Thanks @vnphanquang! - useSetinstead of array forStackItemResolveListenerto help avoid duplicated callbacks (should discourage the usage of arrow functions)
-
4f3ee9eThanks @vnphanquang! - callrequestCloseif available in enhance-dialog -
93c7d99Thanks @vnphanquang! - correct clickoutside logic in enhance-dialog attachment
ce47264Thanks @vnphanquang! - fix issue when usingenhanceDialogand callingitem.resolvedoes not close the dialog
876690fThanks @vnphanquang! - setting up all event listener within attachment (avoid overriden by user)
-
7958699Thanks @vnphanquang! - markenhanceDialogas experimental -
e28cac7Thanks @vnphanquang! - performdelayResolutionsetup within attachment for better lifecycle management -
d5868dcThanks @vnphanquang! - make sure resolution is consistent on timeout -
0665b59Thanks @vnphanquang! - make sureunmountis call for component lifecycle to end gracefully
-
165aeeaThanks @vnphanquang! - export anenhanceDialoghelper for convenient usage withHTMLDialogElement -
951499fThanks @vnphanquang! - addonResolveto listen to (or perform pre steps to) item resolve
4d0fa85Thanks @vnphanquang! - should skip resolution if has already timeouted
0d1161bThanks @vnphanquang! - provide explicit d.ts forStackItemfor greater control
a9c9fc5Thanks @vnphanquang! - add JSDocs forStackItemState
- #355
2e1d1cbThanks @vnphanquang! - defineStackinterface explicitly for better type inference in overloadedpushmethod
- #327
a785b96Thanks @github-actions! - Extracted from core logic of@svelte-put/notiand@svelte-put/modal
-
a1588b8Thanks @vnphanquang! - addstackitemunmountandstackitemunmountevents on nodes that usedstack.actions.render -
#327
1526ce0Thanks @github-actions! - add dedicated docs page -
#327
04131d3Thanks @github-actions! - simplify generics,Stack.popnow returnsStackItem | null -
#327
eb3a404Thanks @github-actions! - allow pause/resume all items by invoking corresponding methods onStack
-
#327
ca2a0daThanks @github-actions! - make Resolved generic param to StackItemProps optional -
#327
5d30599Thanks @github-actions! - set up package provenence -
#327
896c0efThanks @github-actions! - correct typing for thecustomvariant of genericpushfunction -
#327
a376620Thanks @github-actions! - better public exported API
896c0efThanks @vnphanquang! - correct typing for thecustomvariant of genericpushfunction
5d30599Thanks @vnphanquang! - set up package provenence
eb3a404Thanks @vnphanquang! - allow pause/resume all items by invoking corresponding methods onStack
ca2a0daThanks @vnphanquang! - make Resolved generic param to StackItemProps optional
1fda791Thanks @vnphanquang! - simplify generics,Stack.popnow returnsStackItem | null
65b3d02Thanks @vnphanquang! - better public exported API
cc74e53Thanks @vnphanquang! - Extracted from core logic of@svelte-put/notiand@svelte-put/modal
9d735e0Thanks @vnphanquang! - add dedicated docs page