@opexa/portal-components 0.0.606 → 0.0.608

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.
@@ -45,7 +45,9 @@ export function KYCSumsub(props) {
45
45
  ]);
46
46
  return (_jsxs(_Fragment, { children: [_jsx(Dialog.Root, { open: open && session?.status === 'authenticated' && !isVerified, onOpenChange: (details) => {
47
47
  setOpen(details.open);
48
- }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, initialFocusEl: () => dummyRef.current, closeOnInteractOutside: false, restoreFocus: false, onExitComplete: () => {
48
+ }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, initialFocusEl: () => dummyRef.current, closeOnInteractOutside: false, onInteractOutside: (e) => {
49
+ e.preventDefault();
50
+ }, restoreFocus: false, onExitComplete: () => {
49
51
  reset();
50
52
  setToken('');
51
53
  }, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: "flex items-center justify-center lg:block", children: _jsxs(Dialog.Content, { className: "mx-auto flex h-full w-[calc(100%-2rem)] flex-col items-center justify-center overflow-y-auto rounded-md bg-transparent p-0 lg:mt-3 lg:block lg:h-auto lg:w-[600px]", children: [_jsx("div", { ref: dummyRef, tabIndex: -1 }), token && (_jsx("div", { className: "max-h-[calc(96dvh-2rem)] w-full overflow-y-auto lg:h-auto lg:max-h-[unset]", children: _jsx(Sumsub, { accessToken: token, expirationHandler: async () => {
@@ -55,6 +55,9 @@ export function KycOpenOnHomeMount(props) {
55
55
  isVerificationLocked) {
56
56
  setkycReminderOpen(true);
57
57
  }
58
+ else {
59
+ setkycReminderOpen(false);
60
+ }
58
61
  }
59
62
  }, [
60
63
  pathname,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.606",
3
+ "version": "0.0.608",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",