@lumiapassport/ui-kit 1.16.5 → 1.16.6

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.
@@ -15,7 +15,7 @@
15
15
  <meta http-equiv="X-Content-Type-Options" content="nosniff" />
16
16
  <meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin" />
17
17
 
18
- <title>Lumia Passport Secure Wallet - iframe version 1.16.5</title>
18
+ <title>Lumia Passport Secure Wallet - iframe version 1.16.6</title>
19
19
 
20
20
  <!-- Styles will be injected by build process -->
21
21
  <style>
@@ -4411,7 +4411,7 @@ var SigningManager = class extends TokenRefreshApiClient {
4411
4411
  };
4412
4412
 
4413
4413
  // src/iframe/main.ts
4414
- var IFRAME_VERSION = "1.16.5";
4414
+ var IFRAME_VERSION = "1.16.6";
4415
4415
  var IframeWallet = class {
4416
4416
  constructor() {
4417
4417
  console.log("=".repeat(60));
package/dist/index.cjs CHANGED
@@ -5799,7 +5799,7 @@ var init_package = __esm({
5799
5799
  "package.json"() {
5800
5800
  package_default = {
5801
5801
  name: "@lumiapassport/ui-kit",
5802
- version: "1.16.5",
5802
+ version: "1.16.6",
5803
5803
  description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
5804
5804
  type: "module",
5805
5805
  main: "./dist/index.cjs",
@@ -10450,6 +10450,7 @@ var init_KeyshareRestoreMenu = __esm({
10450
10450
  // src/internal/components/KeyshareRestoreMenu/KeyshareBackupMenu.tsx
10451
10451
  function KeyshareBackupMenu() {
10452
10452
  const address = useLumiaPassportSession((st) => st.address);
10453
+ const hasServerVault = useLumiaPassportSession((st) => st.hasServerVault);
10453
10454
  const setPage = useLayoutDataStore((st) => st.setPage);
10454
10455
  const setMainPageHeight = useLayoutDataStore((st) => st.setMainPageHeight);
10455
10456
  const maxScrollHeight = useLayoutStore((st) => st.maxScrollHeight);
@@ -10480,6 +10481,8 @@ function KeyshareBackupMenu() {
10480
10481
  }, []);
10481
10482
  const { data: serverRecoveryStatus, isLoading: isRecoveryLoading } = (0, import_react_query17.useQuery)({
10482
10483
  retry: false,
10484
+ enabled: !!address,
10485
+ // Prevent query from running with undefined address
10483
10486
  queryKey: [CHECK_BACKUP_QUERY_KEY, address],
10484
10487
  queryFn: async () => await getShareRecoveryStats()
10485
10488
  });
@@ -10504,8 +10507,8 @@ function KeyshareBackupMenu() {
10504
10507
  style: { "--l-pass-scrollbar-mah": `${maxScrollHeight}px` },
10505
10508
  className: "list-scrollbar-y w-full",
10506
10509
  children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Expandable, { isExpanded: true, contentClassName: "w-full flex flex-col gap-[var(--l-pass-gap)] p-[var(--l-pass-pd)]", children: [
10507
- !!isRecoveryLoading && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "w-full flex items-center justify-center p-[var(--l-pass-pd)]", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react27.Loader, { className: "h-5 w-5 animate-spin" }) }),
10508
- !isRecoveryLoading && !hasRecoveryData && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center justify-center gap-2 px-5 py-[var(--l-pass-pd)]", children: [
10510
+ !!isRecoveryLoading && (hasServerVault || !currentBackupMethod) && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "w-full flex items-center justify-center p-[var(--l-pass-pd)]", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react27.Loader, { className: "h-5 w-5 animate-spin" }) }),
10511
+ (!isRecoveryLoading || !hasServerVault) && !hasRecoveryData && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center justify-center gap-2 px-5 py-[var(--l-pass-pd)]", children: [
10509
10512
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react27.LockIcon, { className: "w-6 h-6" }),
10510
10513
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "font-bold text-xl leading-6", children: "Secure Account" })
10511
10514
  ] }),
@@ -10553,7 +10556,7 @@ function KeyshareBackupMenu() {
10553
10556
  )
10554
10557
  ] }),
10555
10558
  !isRecoveryLoading && !!hasRecoveryData && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(MethodSelector, { mode: "backup", serverRecoveryStatus }),
10556
- !isRecoveryLoading && !!currentBackupMethod && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10559
+ (!isRecoveryLoading || !hasServerVault) && !!currentBackupMethod && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10557
10560
  BackupComponent,
10558
10561
  {
10559
10562
  mode: "backup",