@lumiapassport/ui-kit 1.15.1 → 1.15.2
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/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +55 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +55 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/iframe/index.html
CHANGED
|
@@ -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.15.
|
|
18
|
+
<title>Lumia Passport Secure Wallet - iframe version 1.15.2</title>
|
|
19
19
|
|
|
20
20
|
<!-- Styles will be injected by build process -->
|
|
21
21
|
<style>
|
package/dist/iframe/main.js
CHANGED
|
@@ -4402,7 +4402,7 @@ var SigningManager = class extends TokenRefreshApiClient {
|
|
|
4402
4402
|
};
|
|
4403
4403
|
|
|
4404
4404
|
// src/iframe/main.ts
|
|
4405
|
-
var IFRAME_VERSION = "1.15.
|
|
4405
|
+
var IFRAME_VERSION = "1.15.2";
|
|
4406
4406
|
var IframeWallet = class {
|
|
4407
4407
|
constructor() {
|
|
4408
4408
|
console.log("=".repeat(60));
|
package/dist/index.cjs
CHANGED
|
@@ -5562,7 +5562,7 @@ function Header() {
|
|
|
5562
5562
|
// package.json
|
|
5563
5563
|
var package_default = {
|
|
5564
5564
|
name: "@lumiapassport/ui-kit",
|
|
5565
|
-
version: "1.15.
|
|
5565
|
+
version: "1.15.2",
|
|
5566
5566
|
description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
|
|
5567
5567
|
type: "module",
|
|
5568
5568
|
main: "./dist/index.cjs",
|
|
@@ -12502,10 +12502,11 @@ function SendLumiaMenu() {
|
|
|
12502
12502
|
),
|
|
12503
12503
|
isNicknameInput && resolvedAddress && !isResolving && nicknameData && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-start gap-3 p-3 rounded-[var(--l-pass-el-bdrs)] bg-[var(--l-pass-bg-secondary)]", children: [
|
|
12504
12504
|
nicknameData.avatarSvg ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
12505
|
-
"
|
|
12505
|
+
"img",
|
|
12506
12506
|
{
|
|
12507
|
-
|
|
12508
|
-
|
|
12507
|
+
src: nicknameData.avatarSvg,
|
|
12508
|
+
alt: nicknameData.handle,
|
|
12509
|
+
className: "w-10 h-10 rounded-full object-cover flex-shrink-0"
|
|
12509
12510
|
}
|
|
12510
12511
|
) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "w-10 h-10 rounded-full bg-[var(--l-pass-bg)] flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_lucide_react42.AtSign, { className: "w-5 h-5 text-[var(--l-pass-fg-muted)]" }) }),
|
|
12511
12512
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col gap-1 min-w-0", children: [
|
|
@@ -12572,10 +12573,11 @@ function SendLumiaMenu() {
|
|
|
12572
12573
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-[var(--l-pass-bg-secondary)] rounded-[var(--l-pass-el-bdrs)] p-4", children: isNicknameInput && nicknameData ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
|
12573
12574
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-start gap-3 mb-4", children: [
|
|
12574
12575
|
nicknameData.avatarSvg ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
12575
|
-
"
|
|
12576
|
+
"img",
|
|
12576
12577
|
{
|
|
12577
|
-
|
|
12578
|
-
|
|
12578
|
+
src: nicknameData.avatarSvg,
|
|
12579
|
+
alt: nicknameData.handle,
|
|
12580
|
+
className: "w-12 h-12 rounded-full object-cover flex-shrink-0"
|
|
12579
12581
|
}
|
|
12580
12582
|
) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "w-12 h-12 rounded-full bg-[var(--l-pass-bg)] flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_lucide_react42.AtSign, { className: "w-6 h-6 text-[var(--l-pass-fg-muted)]" }) }),
|
|
12581
12583
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col gap-1 min-w-0", children: [
|
|
@@ -13045,15 +13047,48 @@ async function getTransactionsListQuery(address) {
|
|
|
13045
13047
|
group.internals = [];
|
|
13046
13048
|
}
|
|
13047
13049
|
});
|
|
13050
|
+
const orphanGroupMap = /* @__PURE__ */ new Map();
|
|
13048
13051
|
orphanInternals.forEach((internalItem) => {
|
|
13049
13052
|
if (internalItem.isEntryPoint || toBigInt(internalItem.value) === 0n) {
|
|
13050
13053
|
return;
|
|
13051
13054
|
}
|
|
13055
|
+
const key = internalItem.parentHash.toLowerCase();
|
|
13056
|
+
const existing = orphanGroupMap.get(key) || [];
|
|
13057
|
+
existing.push(internalItem);
|
|
13058
|
+
orphanGroupMap.set(key, existing);
|
|
13059
|
+
});
|
|
13060
|
+
orphanGroupMap.forEach((internals, parentHash) => {
|
|
13061
|
+
const incomingInternals = internals.filter((internal) => {
|
|
13062
|
+
if (internal.direction !== "in") return false;
|
|
13063
|
+
const amount = toBigInt(internal.value);
|
|
13064
|
+
return amount > 0n;
|
|
13065
|
+
});
|
|
13066
|
+
if (incomingInternals.length === 0) {
|
|
13067
|
+
return;
|
|
13068
|
+
}
|
|
13069
|
+
let totalIn = 0n;
|
|
13070
|
+
incomingInternals.forEach((internal) => {
|
|
13071
|
+
totalIn += toBigInt(internal.value);
|
|
13072
|
+
});
|
|
13073
|
+
const sorted = incomingInternals.map((internal) => ({
|
|
13074
|
+
internal,
|
|
13075
|
+
amount: toBigInt(internal.value)
|
|
13076
|
+
})).sort((a, b) => {
|
|
13077
|
+
if (a.amount === b.amount) return 0;
|
|
13078
|
+
return a.amount > b.amount ? -1 : 1;
|
|
13079
|
+
});
|
|
13080
|
+
const primary = sorted[0].internal;
|
|
13081
|
+
const syntheticParent = {
|
|
13082
|
+
...primary,
|
|
13083
|
+
id: `orphan-${parentHash}`,
|
|
13084
|
+
direction: "in",
|
|
13085
|
+
value: totalIn.toString()
|
|
13086
|
+
};
|
|
13052
13087
|
groups.push({
|
|
13053
|
-
id:
|
|
13054
|
-
parent:
|
|
13088
|
+
id: syntheticParent.id,
|
|
13089
|
+
parent: syntheticParent,
|
|
13055
13090
|
internals: [],
|
|
13056
|
-
timestampMs:
|
|
13091
|
+
timestampMs: Math.max(...incomingInternals.map((i) => i.timestampMs))
|
|
13057
13092
|
});
|
|
13058
13093
|
});
|
|
13059
13094
|
tokenTransfersData.forEach((transfer, index) => {
|
|
@@ -13217,10 +13252,16 @@ function TransactionsGroup(props) {
|
|
|
13217
13252
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "block flex-0 font-mono text-[10px] text-[var(--l-pass-fg-muted)]", children: formatTimestamp(group.timestampMs) })
|
|
13218
13253
|
] }),
|
|
13219
13254
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center justify-between gap-[var(--l-pass-gap)]", children: [
|
|
13220
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("
|
|
13221
|
-
|
|
13222
|
-
|
|
13223
|
-
|
|
13255
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col gap-0", children: [
|
|
13256
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { className: "font-bold", children: [
|
|
13257
|
+
formatValue2(parent.value, assetDecimals),
|
|
13258
|
+
" ",
|
|
13259
|
+
assetSymbol
|
|
13260
|
+
] }),
|
|
13261
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { className: "text-[10px] font-mono text-[var(--l-pass-fg-muted)]", children: [
|
|
13262
|
+
isIncoming ? "From: " : "To: ",
|
|
13263
|
+
parent.counterpartyName || formatAddress2(parent.counterparty)
|
|
13264
|
+
] })
|
|
13224
13265
|
] }),
|
|
13225
13266
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-0", children: [
|
|
13226
13267
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|