@loafmarkets/ui 0.1.403 → 0.1.404
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 +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -706,6 +706,11 @@ type HeaderProps = {
|
|
|
706
706
|
onOrdersNavigate?: () => void;
|
|
707
707
|
onWalletNavigate?: () => void;
|
|
708
708
|
onSettingsClick?: () => void;
|
|
709
|
+
/** Fired by the "Refer" CTA button + user-menu "Refer" item. When omitted, both
|
|
710
|
+
* fall back to `onSettingsClick` (so existing consumers are unchanged). Lets a
|
|
711
|
+
* consumer route Refer somewhere other than Settings (e.g. an invite modal)
|
|
712
|
+
* without DOM-level click interception. */
|
|
713
|
+
onReferClick?: () => void;
|
|
709
714
|
portfolioSummary?: HeaderPortfolioData | null;
|
|
710
715
|
/**
|
|
711
716
|
* True while a brand-new user's test funds (100k mock USD) are being deposited
|
|
@@ -716,7 +721,7 @@ type HeaderProps = {
|
|
|
716
721
|
/**
|
|
717
722
|
* The bar's authed CTA button. Defaults to "deposit" (the funding flow) so
|
|
718
723
|
* existing consumers are unchanged. "refer" swaps it for a Refer button that
|
|
719
|
-
*
|
|
724
|
+
* fires `onReferClick` (falling back to `onSettingsClick` when not provided).
|
|
720
725
|
*/
|
|
721
726
|
headerCta?: "deposit" | "refer";
|
|
722
727
|
/** Show the "Refer" user-menu item. Off by default — referral is feature-flagged
|
package/dist/index.d.ts
CHANGED
|
@@ -706,6 +706,11 @@ type HeaderProps = {
|
|
|
706
706
|
onOrdersNavigate?: () => void;
|
|
707
707
|
onWalletNavigate?: () => void;
|
|
708
708
|
onSettingsClick?: () => void;
|
|
709
|
+
/** Fired by the "Refer" CTA button + user-menu "Refer" item. When omitted, both
|
|
710
|
+
* fall back to `onSettingsClick` (so existing consumers are unchanged). Lets a
|
|
711
|
+
* consumer route Refer somewhere other than Settings (e.g. an invite modal)
|
|
712
|
+
* without DOM-level click interception. */
|
|
713
|
+
onReferClick?: () => void;
|
|
709
714
|
portfolioSummary?: HeaderPortfolioData | null;
|
|
710
715
|
/**
|
|
711
716
|
* True while a brand-new user's test funds (100k mock USD) are being deposited
|
|
@@ -716,7 +721,7 @@ type HeaderProps = {
|
|
|
716
721
|
/**
|
|
717
722
|
* The bar's authed CTA button. Defaults to "deposit" (the funding flow) so
|
|
718
723
|
* existing consumers are unchanged. "refer" swaps it for a Refer button that
|
|
719
|
-
*
|
|
724
|
+
* fires `onReferClick` (falling back to `onSettingsClick` when not provided).
|
|
720
725
|
*/
|
|
721
726
|
headerCta?: "deposit" | "refer";
|
|
722
727
|
/** Show the "Refer" user-menu item. Off by default — referral is feature-flagged
|
package/dist/index.js
CHANGED
|
@@ -5101,6 +5101,7 @@ var Header = ({
|
|
|
5101
5101
|
onOrdersNavigate: _onOrdersNavigate,
|
|
5102
5102
|
onWalletNavigate: _onWalletNavigate,
|
|
5103
5103
|
onSettingsClick,
|
|
5104
|
+
onReferClick,
|
|
5104
5105
|
portfolioSummary,
|
|
5105
5106
|
fundsPending = false,
|
|
5106
5107
|
transparentOnTop = false,
|
|
@@ -5539,7 +5540,7 @@ var Header = ({
|
|
|
5539
5540
|
onClick: (event) => {
|
|
5540
5541
|
event?.preventDefault();
|
|
5541
5542
|
closeMenus();
|
|
5542
|
-
onSettingsClick?.();
|
|
5543
|
+
(onReferClick ?? onSettingsClick)?.();
|
|
5543
5544
|
},
|
|
5544
5545
|
children: "Refer"
|
|
5545
5546
|
}
|
|
@@ -5582,7 +5583,7 @@ var Header = ({
|
|
|
5582
5583
|
onClick: (event) => {
|
|
5583
5584
|
event?.preventDefault();
|
|
5584
5585
|
closeMenus();
|
|
5585
|
-
onSettingsClick?.();
|
|
5586
|
+
(onReferClick ?? onSettingsClick)?.();
|
|
5586
5587
|
},
|
|
5587
5588
|
children: /* @__PURE__ */ jsxRuntime.jsx(MenuItem, { children: "Refer" })
|
|
5588
5589
|
}
|