@lerx/promise-modal 0.8.6 → 0.8.7

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.
@@ -1,8 +1,5 @@
1
1
  import type { ModalNode } from '../core';
2
2
  export declare const useModalDuration: (id?: ModalNode["id"]) => {
3
- duration: `${number}ms`;
3
+ duration: string;
4
4
  milliseconds: number;
5
- } | {
6
- duration: number;
7
- milliseconds: string;
8
5
  };
package/dist/index.cjs CHANGED
@@ -1065,8 +1065,8 @@ const useModalDuration = (id) => {
1065
1065
  const { modal } = useModalManager(id);
1066
1066
  if (modal === undefined)
1067
1067
  return globalDuration;
1068
- const duration = modal.duration;
1069
- return { duration, milliseconds: duration + 'ms' };
1068
+ const milliseconds = modal.duration;
1069
+ return { duration: milliseconds + 'ms', milliseconds };
1070
1070
  };
1071
1071
 
1072
1072
  exports.ModalProvider = BootstrapProvider;
package/dist/index.mjs CHANGED
@@ -1063,8 +1063,8 @@ const useModalDuration = (id) => {
1063
1063
  const { modal } = useModalManager(id);
1064
1064
  if (modal === undefined)
1065
1065
  return globalDuration;
1066
- const duration = modal.duration;
1067
- return { duration, milliseconds: duration + 'ms' };
1066
+ const milliseconds = modal.duration;
1067
+ return { duration: milliseconds + 'ms', milliseconds };
1068
1068
  };
1069
1069
 
1070
1070
  export { BootstrapProvider as ModalProvider, alert, confirm, prompt, useActiveModalCount, useDestroyAfter, useBootstrap as useInitializeModal, useModal, useModalAnimation, useConfigurationBackdrop as useModalBackdrop, useModalDuration, useConfigurationOptions as useModalOptions, useSubscribeModal };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lerx/promise-modal",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "Universal React modal utility that can be used outside React components with promise-based results for alert, confirm, and prompt modals",
5
5
  "keywords": [
6
6
  "react",