@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.
- package/dist/hooks/useModalDuration.d.ts +1 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
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
|
|
1069
|
-
return { duration
|
|
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
|
|
1067
|
-
return { duration
|
|
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