@retinalabsllc/zairusjs 5.1.10 → 5.1.15
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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -7
- package/dist/index.mjs +17 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2361,6 +2361,7 @@ var InputSpinner4 = () => /* @__PURE__ */ import_react43.default.createElement("
|
|
|
2361
2361
|
var UniversalOrganizationPage = ({
|
|
2362
2362
|
initialOrgName,
|
|
2363
2363
|
initialSlug,
|
|
2364
|
+
initialUsername,
|
|
2364
2365
|
orgId,
|
|
2365
2366
|
isReadOnly = false,
|
|
2366
2367
|
slugPrefixUrl = ".aeona.eth",
|
|
@@ -2368,8 +2369,9 @@ var UniversalOrganizationPage = ({
|
|
|
2368
2369
|
onSaveConfiguration,
|
|
2369
2370
|
onCheckSlugAvailability
|
|
2370
2371
|
}) => {
|
|
2372
|
+
const resolvedInitialUsername = initialUsername || initialSlug;
|
|
2371
2373
|
const [web3Name, setWeb3Name] = (0, import_react43.useState)(initialOrgName);
|
|
2372
|
-
const [username, setUsername] = (0, import_react43.useState)(
|
|
2374
|
+
const [username, setUsername] = (0, import_react43.useState)(resolvedInitialUsername);
|
|
2373
2375
|
const [slug, setSlug] = (0, import_react43.useState)(initialSlug);
|
|
2374
2376
|
const [isCheckingSlug, setIsCheckingSlug] = (0, import_react43.useState)(false);
|
|
2375
2377
|
const [slugAvailable, setSlugAvailable] = (0, import_react43.useState)(null);
|
|
@@ -2377,8 +2379,8 @@ var UniversalOrganizationPage = ({
|
|
|
2377
2379
|
(0, import_react43.useEffect)(() => {
|
|
2378
2380
|
setWeb3Name(initialOrgName || "");
|
|
2379
2381
|
setSlug(initialSlug || "");
|
|
2380
|
-
setUsername(initialSlug || "");
|
|
2381
|
-
}, [initialOrgName, initialSlug]);
|
|
2382
|
+
setUsername(initialUsername || initialSlug || "");
|
|
2383
|
+
}, [initialOrgName, initialSlug, initialUsername]);
|
|
2382
2384
|
const handleWeb3NameChange = (val) => {
|
|
2383
2385
|
setWeb3Name(val.replace(/[^a-zA-Z0-9\s-]/g, "").substring(0, 50));
|
|
2384
2386
|
};
|
|
@@ -2426,7 +2428,7 @@ var UniversalOrganizationPage = ({
|
|
|
2426
2428
|
organizationId: orgId,
|
|
2427
2429
|
organizationName: web3Name !== initialOrgName ? web3Name : void 0,
|
|
2428
2430
|
slug: slug !== initialSlug ? slug : void 0,
|
|
2429
|
-
username: username !==
|
|
2431
|
+
username: username !== resolvedInitialUsername ? username : void 0
|
|
2430
2432
|
// Transmit extra input parameter cleanly
|
|
2431
2433
|
};
|
|
2432
2434
|
const responseData = await onSaveConfiguration(payload);
|
|
@@ -2442,7 +2444,7 @@ var UniversalOrganizationPage = ({
|
|
|
2442
2444
|
setIsSubmitting(false);
|
|
2443
2445
|
}
|
|
2444
2446
|
};
|
|
2445
|
-
const hasChanges = web3Name !== initialOrgName || slug !== initialSlug || username !==
|
|
2447
|
+
const hasChanges = web3Name !== initialOrgName || slug !== initialSlug || username !== resolvedInitialUsername;
|
|
2446
2448
|
const isSaveDisabled = isSubmitting || isReadOnly || isCheckingSlug || !hasChanges || web3Name.length < 3 || slug.length < 3 || username.length < 3 || slug !== initialSlug && slugAvailable === false;
|
|
2447
2449
|
return /* @__PURE__ */ import_react43.default.createElement("div", { className: "flex flex-col gap-8 animate-in max-w-5xl rounded-2xl p-6 bg-white fade-in duration-300 " }, /* @__PURE__ */ import_react43.default.createElement(ManagedToaster, null), /* @__PURE__ */ import_react43.default.createElement("div", { className: "flex items-start justify-between gap-4" }, /* @__PURE__ */ import_react43.default.createElement("div", null, /* @__PURE__ */ import_react43.default.createElement("h1", { className: "text-black text-xl mb-1 tracking-tight" }, "Public Profile"), /* @__PURE__ */ import_react43.default.createElement("p", { className: "text-xs text-neutral-500" }, "Manage your financial payment handle identifiers and global public cryptographic signature identity details.")), isReadOnly && /* @__PURE__ */ import_react43.default.createElement("span", { className: "p-2 w-9 h-9 bg-neutral-50 text-neutral-500 rounded-full shrink-0" }, /* @__PURE__ */ import_react43.default.createElement(import_react44.HugeiconsIcon, { icon: import_core_free_icons11.CircleLock02Icon, size: 18, className: "text-current" }))), bannerProps && /* @__PURE__ */ import_react43.default.createElement(Banner, { ...bannerProps }), /* @__PURE__ */ import_react43.default.createElement("div", { className: "w-full max-w-5xl" }, /* @__PURE__ */ import_react43.default.createElement("form", { className: "flex flex-col gap-8", onSubmit: handleSave, autoComplete: "off" }, /* @__PURE__ */ import_react43.default.createElement(
|
|
2448
2450
|
TextInput,
|
|
@@ -2492,7 +2494,7 @@ var UniversalOrganizationPage = ({
|
|
|
2492
2494
|
onClick: () => {
|
|
2493
2495
|
setWeb3Name(initialOrgName);
|
|
2494
2496
|
setSlug(initialSlug);
|
|
2495
|
-
setUsername(
|
|
2497
|
+
setUsername(resolvedInitialUsername);
|
|
2496
2498
|
},
|
|
2497
2499
|
className: "text-[11px] tracking-widest text-neutral-500 hover:text-black transition-colors outline-none"
|
|
2498
2500
|
},
|
|
@@ -4331,7 +4333,15 @@ var UniversalWalletPage = ({
|
|
|
4331
4333
|
} }), /* @__PURE__ */ import_react76.default.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[90vh]" }, showToast && /* @__PURE__ */ import_react76.default.createElement("div", { className: "absolute top-4 left-1/2 -translate-x-1/2 z-50 bg-neutral-900 text-white px-5 py-2.5 rounded-full text-[12px] font-medium tracking-wide shadow-xl animate-in slide-in-from-top-4 fade-in duration-200 pointer-events-none whitespace-nowrap" }, "Address copied to clipboard"), /* @__PURE__ */ import_react76.default.createElement("div", { className: "flex items-center justify-between p-5 shrink-0" }, /* @__PURE__ */ import_react76.default.createElement("h3", { className: "text-[15px] text-black tracking-tight" }, "Wallet Details"), /* @__PURE__ */ import_react76.default.createElement("button", { onClick: () => {
|
|
4332
4334
|
setSelectedWallet(null);
|
|
4333
4335
|
setShowToast(false);
|
|
4334
|
-
}, className: "text-neutral-400 hover:text-black transition-colors outline-none" }, /* @__PURE__ */ import_react76.default.createElement(import_react77.HugeiconsIcon, { icon: import_core_free_icons27.CancelCircleIcon, size: 18 }))), /* @__PURE__ */ import_react76.default.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-6 pt-2" }, /* @__PURE__ */ import_react76.default.createElement("div", { className: "flex flex-col items-center justify-center mb-6" }, /* @__PURE__ */ import_react76.default.createElement(WalletLogo, { src: selectedWallet.logoSrc, alt: selectedWallet.name, sizeClass: "w-14 h-14 mb-4" }), /* @__PURE__ */ import_react76.default.createElement("h2", { className: `text-2xl text-black mb-2 transition-all duration-300 font-medium ${hideBalanceAmounts ? "blur-[6px] opacity-40 select-none" : ""}` }, selectedWallet.balance, " ", selectedWallet.currency), /* @__PURE__ */ import_react76.default.createElement("span", { className: "text-[9px] tracking-widest text-neutral-500 px-4 py-1.5 rounded-full bg-neutral-50 uppercase mt-1" }, selectedWallet.network, " NETWORK")), renderQrCode && /* @__PURE__ */ import_react76.default.createElement("div", { className: "w-full flex justify-center mb-
|
|
4336
|
+
}, className: "text-neutral-400 hover:text-black transition-colors outline-none" }, /* @__PURE__ */ import_react76.default.createElement(import_react77.HugeiconsIcon, { icon: import_core_free_icons27.CancelCircleIcon, size: 18 }))), /* @__PURE__ */ import_react76.default.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-6 pt-2" }, /* @__PURE__ */ import_react76.default.createElement("div", { className: "flex flex-col items-center justify-center mb-6" }, /* @__PURE__ */ import_react76.default.createElement(WalletLogo, { src: selectedWallet.logoSrc, alt: selectedWallet.name, sizeClass: "w-14 h-14 mb-4" }), /* @__PURE__ */ import_react76.default.createElement("h2", { className: `text-2xl text-black mb-2 transition-all duration-300 font-medium ${hideBalanceAmounts ? "blur-[6px] opacity-40 select-none" : ""}` }, selectedWallet.balance, " ", selectedWallet.currency), /* @__PURE__ */ import_react76.default.createElement("span", { className: "text-[9px] tracking-widest text-neutral-500 px-4 py-1.5 rounded-full bg-neutral-50 uppercase mt-1" }, selectedWallet.network, " NETWORK")), renderQrCode && /* @__PURE__ */ import_react76.default.createElement("div", { className: "w-full flex justify-center mb-6" }, renderQrCode(selectedWallet)), /* @__PURE__ */ import_react76.default.createElement("div", { className: "mb-5" }, /* @__PURE__ */ import_react76.default.createElement(
|
|
4337
|
+
Banner,
|
|
4338
|
+
{
|
|
4339
|
+
type: "warning",
|
|
4340
|
+
title: "Important Deposit Warning",
|
|
4341
|
+
message: `Please send exactly ${selectedWallet.currency} to this address, and ensure you select the ${selectedWallet.network} network. Sending a different coin or using the wrong network will result in the permanent loss of your funds.`,
|
|
4342
|
+
isDismissible: false
|
|
4343
|
+
}
|
|
4344
|
+
)), /* @__PURE__ */ import_react76.default.createElement("div", { className: "grid grid-cols-1 gap-y-6 gap-x-4 mb-10" }, /* @__PURE__ */ import_react76.default.createElement("div", null, /* @__PURE__ */ import_react76.default.createElement("span", { className: "text-[11px] tracking-[0.2em] text-neutral-400 block mb-2" }, "Wallet Address"), /* @__PURE__ */ import_react76.default.createElement("span", { className: "text-[13px] text-black break-all font-medium" }, selectedWallet.address)), /* @__PURE__ */ import_react76.default.createElement("div", null, /* @__PURE__ */ import_react76.default.createElement("span", { className: "text-[11px] tracking-[0.2em] text-neutral-400 block mb-2" }, "Wallet Name"), /* @__PURE__ */ import_react76.default.createElement("span", { className: "text-[13px] text-black" }, selectedWallet.name))), /* @__PURE__ */ import_react76.default.createElement("div", { className: "flex flex-col gap-3" }, /* @__PURE__ */ import_react76.default.createElement(
|
|
4335
4345
|
"button",
|
|
4336
4346
|
{
|
|
4337
4347
|
disabled: isGeneratingStatement,
|
package/dist/index.mjs
CHANGED
|
@@ -2280,6 +2280,7 @@ var InputSpinner4 = () => /* @__PURE__ */ React29.createElement("svg", { classNa
|
|
|
2280
2280
|
var UniversalOrganizationPage = ({
|
|
2281
2281
|
initialOrgName,
|
|
2282
2282
|
initialSlug,
|
|
2283
|
+
initialUsername,
|
|
2283
2284
|
orgId,
|
|
2284
2285
|
isReadOnly = false,
|
|
2285
2286
|
slugPrefixUrl = ".aeona.eth",
|
|
@@ -2287,8 +2288,9 @@ var UniversalOrganizationPage = ({
|
|
|
2287
2288
|
onSaveConfiguration,
|
|
2288
2289
|
onCheckSlugAvailability
|
|
2289
2290
|
}) => {
|
|
2291
|
+
const resolvedInitialUsername = initialUsername || initialSlug;
|
|
2290
2292
|
const [web3Name, setWeb3Name] = useState17(initialOrgName);
|
|
2291
|
-
const [username, setUsername] = useState17(
|
|
2293
|
+
const [username, setUsername] = useState17(resolvedInitialUsername);
|
|
2292
2294
|
const [slug, setSlug] = useState17(initialSlug);
|
|
2293
2295
|
const [isCheckingSlug, setIsCheckingSlug] = useState17(false);
|
|
2294
2296
|
const [slugAvailable, setSlugAvailable] = useState17(null);
|
|
@@ -2296,8 +2298,8 @@ var UniversalOrganizationPage = ({
|
|
|
2296
2298
|
useEffect13(() => {
|
|
2297
2299
|
setWeb3Name(initialOrgName || "");
|
|
2298
2300
|
setSlug(initialSlug || "");
|
|
2299
|
-
setUsername(initialSlug || "");
|
|
2300
|
-
}, [initialOrgName, initialSlug]);
|
|
2301
|
+
setUsername(initialUsername || initialSlug || "");
|
|
2302
|
+
}, [initialOrgName, initialSlug, initialUsername]);
|
|
2301
2303
|
const handleWeb3NameChange = (val) => {
|
|
2302
2304
|
setWeb3Name(val.replace(/[^a-zA-Z0-9\s-]/g, "").substring(0, 50));
|
|
2303
2305
|
};
|
|
@@ -2345,7 +2347,7 @@ var UniversalOrganizationPage = ({
|
|
|
2345
2347
|
organizationId: orgId,
|
|
2346
2348
|
organizationName: web3Name !== initialOrgName ? web3Name : void 0,
|
|
2347
2349
|
slug: slug !== initialSlug ? slug : void 0,
|
|
2348
|
-
username: username !==
|
|
2350
|
+
username: username !== resolvedInitialUsername ? username : void 0
|
|
2349
2351
|
// Transmit extra input parameter cleanly
|
|
2350
2352
|
};
|
|
2351
2353
|
const responseData = await onSaveConfiguration(payload);
|
|
@@ -2361,7 +2363,7 @@ var UniversalOrganizationPage = ({
|
|
|
2361
2363
|
setIsSubmitting(false);
|
|
2362
2364
|
}
|
|
2363
2365
|
};
|
|
2364
|
-
const hasChanges = web3Name !== initialOrgName || slug !== initialSlug || username !==
|
|
2366
|
+
const hasChanges = web3Name !== initialOrgName || slug !== initialSlug || username !== resolvedInitialUsername;
|
|
2365
2367
|
const isSaveDisabled = isSubmitting || isReadOnly || isCheckingSlug || !hasChanges || web3Name.length < 3 || slug.length < 3 || username.length < 3 || slug !== initialSlug && slugAvailable === false;
|
|
2366
2368
|
return /* @__PURE__ */ React29.createElement("div", { className: "flex flex-col gap-8 animate-in max-w-5xl rounded-2xl p-6 bg-white fade-in duration-300 " }, /* @__PURE__ */ React29.createElement(ManagedToaster, null), /* @__PURE__ */ React29.createElement("div", { className: "flex items-start justify-between gap-4" }, /* @__PURE__ */ React29.createElement("div", null, /* @__PURE__ */ React29.createElement("h1", { className: "text-black text-xl mb-1 tracking-tight" }, "Public Profile"), /* @__PURE__ */ React29.createElement("p", { className: "text-xs text-neutral-500" }, "Manage your financial payment handle identifiers and global public cryptographic signature identity details.")), isReadOnly && /* @__PURE__ */ React29.createElement("span", { className: "p-2 w-9 h-9 bg-neutral-50 text-neutral-500 rounded-full shrink-0" }, /* @__PURE__ */ React29.createElement(HugeiconsIcon15, { icon: CircleLock02Icon, size: 18, className: "text-current" }))), bannerProps && /* @__PURE__ */ React29.createElement(Banner, { ...bannerProps }), /* @__PURE__ */ React29.createElement("div", { className: "w-full max-w-5xl" }, /* @__PURE__ */ React29.createElement("form", { className: "flex flex-col gap-8", onSubmit: handleSave, autoComplete: "off" }, /* @__PURE__ */ React29.createElement(
|
|
2367
2369
|
TextInput,
|
|
@@ -2411,7 +2413,7 @@ var UniversalOrganizationPage = ({
|
|
|
2411
2413
|
onClick: () => {
|
|
2412
2414
|
setWeb3Name(initialOrgName);
|
|
2413
2415
|
setSlug(initialSlug);
|
|
2414
|
-
setUsername(
|
|
2416
|
+
setUsername(resolvedInitialUsername);
|
|
2415
2417
|
},
|
|
2416
2418
|
className: "text-[11px] tracking-widest text-neutral-500 hover:text-black transition-colors outline-none"
|
|
2417
2419
|
},
|
|
@@ -4328,7 +4330,15 @@ var UniversalWalletPage = ({
|
|
|
4328
4330
|
} }), /* @__PURE__ */ React46.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[90vh]" }, showToast && /* @__PURE__ */ React46.createElement("div", { className: "absolute top-4 left-1/2 -translate-x-1/2 z-50 bg-neutral-900 text-white px-5 py-2.5 rounded-full text-[12px] font-medium tracking-wide shadow-xl animate-in slide-in-from-top-4 fade-in duration-200 pointer-events-none whitespace-nowrap" }, "Address copied to clipboard"), /* @__PURE__ */ React46.createElement("div", { className: "flex items-center justify-between p-5 shrink-0" }, /* @__PURE__ */ React46.createElement("h3", { className: "text-[15px] text-black tracking-tight" }, "Wallet Details"), /* @__PURE__ */ React46.createElement("button", { onClick: () => {
|
|
4329
4331
|
setSelectedWallet(null);
|
|
4330
4332
|
setShowToast(false);
|
|
4331
|
-
}, className: "text-neutral-400 hover:text-black transition-colors outline-none" }, /* @__PURE__ */ React46.createElement(HugeiconsIcon31, { icon: CancelCircleIcon3, size: 18 }))), /* @__PURE__ */ React46.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-6 pt-2" }, /* @__PURE__ */ React46.createElement("div", { className: "flex flex-col items-center justify-center mb-6" }, /* @__PURE__ */ React46.createElement(WalletLogo, { src: selectedWallet.logoSrc, alt: selectedWallet.name, sizeClass: "w-14 h-14 mb-4" }), /* @__PURE__ */ React46.createElement("h2", { className: `text-2xl text-black mb-2 transition-all duration-300 font-medium ${hideBalanceAmounts ? "blur-[6px] opacity-40 select-none" : ""}` }, selectedWallet.balance, " ", selectedWallet.currency), /* @__PURE__ */ React46.createElement("span", { className: "text-[9px] tracking-widest text-neutral-500 px-4 py-1.5 rounded-full bg-neutral-50 uppercase mt-1" }, selectedWallet.network, " NETWORK")), renderQrCode && /* @__PURE__ */ React46.createElement("div", { className: "w-full flex justify-center mb-
|
|
4333
|
+
}, className: "text-neutral-400 hover:text-black transition-colors outline-none" }, /* @__PURE__ */ React46.createElement(HugeiconsIcon31, { icon: CancelCircleIcon3, size: 18 }))), /* @__PURE__ */ React46.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-6 pt-2" }, /* @__PURE__ */ React46.createElement("div", { className: "flex flex-col items-center justify-center mb-6" }, /* @__PURE__ */ React46.createElement(WalletLogo, { src: selectedWallet.logoSrc, alt: selectedWallet.name, sizeClass: "w-14 h-14 mb-4" }), /* @__PURE__ */ React46.createElement("h2", { className: `text-2xl text-black mb-2 transition-all duration-300 font-medium ${hideBalanceAmounts ? "blur-[6px] opacity-40 select-none" : ""}` }, selectedWallet.balance, " ", selectedWallet.currency), /* @__PURE__ */ React46.createElement("span", { className: "text-[9px] tracking-widest text-neutral-500 px-4 py-1.5 rounded-full bg-neutral-50 uppercase mt-1" }, selectedWallet.network, " NETWORK")), renderQrCode && /* @__PURE__ */ React46.createElement("div", { className: "w-full flex justify-center mb-6" }, renderQrCode(selectedWallet)), /* @__PURE__ */ React46.createElement("div", { className: "mb-5" }, /* @__PURE__ */ React46.createElement(
|
|
4334
|
+
Banner,
|
|
4335
|
+
{
|
|
4336
|
+
type: "warning",
|
|
4337
|
+
title: "Important Deposit Warning",
|
|
4338
|
+
message: `Please send exactly ${selectedWallet.currency} to this address, and ensure you select the ${selectedWallet.network} network. Sending a different coin or using the wrong network will result in the permanent loss of your funds.`,
|
|
4339
|
+
isDismissible: false
|
|
4340
|
+
}
|
|
4341
|
+
)), /* @__PURE__ */ React46.createElement("div", { className: "grid grid-cols-1 gap-y-6 gap-x-4 mb-10" }, /* @__PURE__ */ React46.createElement("div", null, /* @__PURE__ */ React46.createElement("span", { className: "text-[11px] tracking-[0.2em] text-neutral-400 block mb-2" }, "Wallet Address"), /* @__PURE__ */ React46.createElement("span", { className: "text-[13px] text-black break-all font-medium" }, selectedWallet.address)), /* @__PURE__ */ React46.createElement("div", null, /* @__PURE__ */ React46.createElement("span", { className: "text-[11px] tracking-[0.2em] text-neutral-400 block mb-2" }, "Wallet Name"), /* @__PURE__ */ React46.createElement("span", { className: "text-[13px] text-black" }, selectedWallet.name))), /* @__PURE__ */ React46.createElement("div", { className: "flex flex-col gap-3" }, /* @__PURE__ */ React46.createElement(
|
|
4332
4342
|
"button",
|
|
4333
4343
|
{
|
|
4334
4344
|
disabled: isGeneratingStatement,
|