Skip to content

Latest commit

 

History

History
219 lines (110 loc) · 13.4 KB

File metadata and controls

219 lines (110 loc) · 13.4 KB

Changelog

1.5.3

Patch Changes

  • 4854311 Thanks @vnphanquang! - improve clickbackdrop behavior in enhanceDialog: only register if pointerup and pointerdown have both been 'outside'

1.5.2

Patch Changes

1.5.1

Patch Changes

  • 65180bd Thanks @vnphanquang! - make sure push configs are merged correctly and recursively but ignoring nullish values

1.5.0

Minor Changes

  • 3c22ed9 Thanks @vnphanquang! - expose StackItem['progress'] as a number from 0 to 1, indicating how far until the timeout is reached, if any

  • 7c60a7a Thanks @vnphanquang! - (experimental) new import('@svelte-put/async-stack/helpers').renderPopover for rendering StackItem as popover (intended for notifications, toasts, etc.)

Patch Changes

1.4.0

Minor Changes

Patch Changes

  • eaa9f2a Thanks @vnphanquang! - (experimental) return early on event.defaultPrevented === true inside click handler of enhanceDialog

1.3.2

Patch Changes

  • a7c0e17 Thanks @vnphanquang! - (experimental) only call showModal in enhanceDialog if dialog is not already open

  • b9bf91a Thanks @vnphanquang! - (experimental) proactively invoke preventDefault on "Escape" keydown to ensure consistency for preventResolution option in enhanceDialog on Chrome, where the second Escape keydown will bypass the cancel event

1.3.1

Patch Changes

1.3.0

Minor Changes

  • d897673 Thanks @vnphanquang! - (experimental) allow passing preventResolution to enhanceDialog to effectively make all item.resolve and dialog.requestClose inert

Patch Changes

  • 09a97b4 Thanks @vnphanquang! - call import('svelte').tick() before resolution to make sure DOM updates are applied

1.2.0

Minor Changes

  • 7cb4da8 Thanks @vnphanquang! - (experimental) onResolve now returns callback that removes the listener

  • a70e65b Thanks @vnphanquang! - (experimental) allow cancelling resolution via StackItem.onResolve callback

Patch Changes

  • 139b7da Thanks @vnphanquang! - (experimental) use Set instead of array for StackItemResolveListener to help avoid duplicated callbacks

    NOTE: should discourage user from using arrow functions.

1.1.5

Patch Changes

  • cd7fefc Thanks @vnphanquang! - mark item.onResolve as experimental and clarify async behavior

  • 5793e71 Thanks @vnphanquang! - use Set instead of array for StackItemResolveListener to help avoid duplicated callbacks (should discourage the usage of arrow functions)

1.1.4

Patch Changes

1.1.3

Patch Changes

  • ce47264 Thanks @vnphanquang! - fix issue when using enhanceDialog and calling item.resolve does not close the dialog

1.1.2

Patch Changes

  • 876690f Thanks @vnphanquang! - setting up all event listener within attachment (avoid overriden by user)

1.1.1

Patch Changes

1.1.0

Minor Changes

  • 165aeea Thanks @vnphanquang! - export an enhanceDialog helper for convenient usage with HTMLDialogElement

  • 951499f Thanks @vnphanquang! - add onResolve to listen to (or perform pre steps to) item resolve

Patch Changes

1.0.3

Patch Changes

1.0.2

Patch Changes

1.0.1

Patch Changes

  • #355 2e1d1cb Thanks @vnphanquang! - define Stack interface explicitly for better type inference in overloaded push method

1.0.0

Major Changes

Minor Changes

Patch Changes

1.0.0-next.4

Patch Changes

  • 896c0ef Thanks @vnphanquang! - correct typing for the custom variant of generic push function

1.0.0-next.3

Patch Changes

1.0.0-next.2

Minor Changes

  • eb3a404 Thanks @vnphanquang! - allow pause/resume all items by invoking corresponding methods on Stack

Patch Changes

1.0.0-next.1

Minor Changes

Patch Changes

0.0.0-next.1

Major Changes

  • cc74e53 Thanks @vnphanquang! - Extracted from core logic of @svelte-put/noti and @svelte-put/modal

Minor Changes