@burdenoff/microfe-billing 2026.1114.7 → 2026.1114.9
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/billing/BillingRoot.js +2 -2
- package/dist/billing/BillingRoot.js.map +1 -1
- package/dist/billing/shared/components/BillingHistoryTabs.js +6 -1
- package/dist/billing/shared/components/BillingHistoryTabs.js.map +1 -1
- package/dist/billing/shared/components/historyTabs.d.ts +0 -3
- package/dist/billing/shared/components/historyTabs.js +0 -8
- package/dist/billing/shared/components/historyTabs.js.map +1 -1
- package/package.json +1 -1
|
@@ -45,7 +45,7 @@ var w = (w) => {
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
id: "billing-addons",
|
|
48
|
-
label: T("billing.nav.addons", "Addons"),
|
|
48
|
+
label: w.variant === "fluidgrids" ? T("billing.nav.addonsFluidgrids", "Extras") : T("billing.nav.addons", "Addons"),
|
|
49
49
|
path: A(O, "addons"),
|
|
50
50
|
icon: /* @__PURE__ */ C(l, { size: 20 }),
|
|
51
51
|
order: 130,
|
|
@@ -102,7 +102,7 @@ var w = (w) => {
|
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
id: "billing-addons",
|
|
105
|
-
label: T("billing.nav.addons", "Addons"),
|
|
105
|
+
label: w.variant === "fluidgrids" ? T("billing.nav.addonsFluidgrids", "Extras") : T("billing.nav.addons", "Addons"),
|
|
106
106
|
path: A(O, "addons"),
|
|
107
107
|
icon: /* @__PURE__ */ C(l, { size: 20 }),
|
|
108
108
|
order: 110,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BillingRoot.js","names":["BillingRoot","tr","useTr","props","joinPath","base","path","useEffect","registerNavItems","userNavItems","basePath","LayoutDashboard","RefreshCw","Package","Blocks","Activity","TicketCheck","Coins","Landmark","Settings","adminNavItems","Gauge","Ticket","Gift","RotateCcw","DollarSign","TrendingUp","mode","registerFooterItems","footerItems","ErrorBoundary","FeatureFlagProvider","BillingProvider","jsx","BillingAdminRoutes","BillingUserRoutes"],"sources":["../../src/billing/BillingRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useHeadingDocumentTitle } from '@burdenoff/fe-libs/ui';\nimport {\n LayoutDashboard,\n RefreshCw,\n Package,\n Blocks,\n Gauge,\n RotateCcw,\n Activity,\n TrendingUp,\n Settings,\n Ticket,\n Coins,\n TicketCheck,\n Landmark,\n Gift,\n DollarSign,\n} from 'lucide-react';\nimport { BillingProvider } from './providers/BillingProvider';\nimport type { NavItem, BillingRootProps } from './types';\nimport { BillingUserRoutes } from './BillingUserRoutes';\nimport { BillingAdminRoutes } from './BillingAdminRoutes';\nimport { useTr } from './shared/hooks/useTr';\n\n/**\n * Root component for the Billing microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { BillingRoot, type BillingRootProps } from '@burdenoff/microfe-billing';\n *\n * function App() {\n * const props: BillingRootProps = {\n * basePath: '/billing',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },\n * workspaceId: 'ws-123',\n * orgId: 'org-123',\n * apiGatewayUrl: 'https://api.example.com/tenant/graphql',\n * authToken: 'token',\n * stripePublishableKey: 'pk_test_...',\n * razorpayKey: 'rzp_test_...',\n * onSubscriptionCreate: (subscription) => console.log('Subscription created:', subscription),\n * onSubscriptionUpdate: (subscription) => console.log('Subscription updated:', subscription),\n * onPaymentProcess: (payment) => console.log('Payment processed:', payment),\n * registerNavItems: (items) => { return () => {}; },\n * };\n *\n * return <BillingRoot {...props} />;\n * }\n * ```\n */\nexport const BillingRoot: FC<BillingRootProps> = (props) => {\n const tr = useTr();\n const { registerNavItems, registerFooterItems, basePath = '/', mode = 'user' } = props;\n\n // FluidGrids only (BOFF-11860): each page's browser tab title follows its main heading.\n useHeadingDocumentTitle({ enabled: props.variant === 'fluidgrids', suffix: 'FluidGrids' });\n\n // Helper to join paths correctly, avoiding double slashes\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with the shell based on mode\n useEffect(() => {\n if (!registerNavItems) return;\n\n const userNavItems: NavItem[] = [\n {\n id: 'billing-overview',\n label: tr('billing.nav.billing', 'Billing'),\n path: basePath === '/' ? '/' : joinPath(basePath, 'overview'),\n icon: <LayoutDashboard size={20} />,\n order: 100,\n group: 'billing',\n },\n {\n id: 'billing-subscriptions',\n label: tr('billing.nav.subscriptions', 'Subscriptions'),\n path: joinPath(basePath, 'subscriptions'),\n icon: <RefreshCw size={20} />,\n order: 110,\n group: 'billing',\n },\n {\n id: 'billing-plans',\n label: tr('billing.nav.plans', 'Plans'),\n path: joinPath(basePath, 'plans'),\n icon: <Package size={20} />,\n order: 120,\n group: 'billing',\n },\n {\n id: 'billing-addons',\n label: tr('billing.nav.addons', 'Addons'),\n path: joinPath(basePath, 'addons'),\n icon: <Blocks size={20} />,\n order: 130,\n group: 'billing',\n },\n {\n id: 'billing-usage',\n label: tr('billing.nav.usage', 'Usage'),\n path: joinPath(basePath, 'usage'),\n icon: <Activity size={20} />,\n order: 180,\n group: 'billing',\n },\n {\n id: 'billing-affiliate',\n label: tr('billing.nav.affiliate', 'Affiliate'),\n path: joinPath(basePath, 'affiliate'),\n icon: <TicketCheck size={20} />,\n order: 190,\n group: 'billing',\n },\n {\n id: 'billing-earnings',\n label: tr('billing.nav.earnings', 'Earnings'),\n path: joinPath(basePath, 'earnings'),\n icon: <Coins size={20} />,\n order: 200,\n group: 'billing',\n },\n {\n id: 'billing-payouts',\n label: tr('billing.nav.payouts', 'Payouts'),\n path: joinPath(basePath, 'payouts'),\n icon: <Landmark size={20} />,\n order: 205,\n group: 'billing',\n },\n {\n id: 'billing-settings',\n label: tr('billing.nav.settings', 'Settings'),\n path: joinPath(basePath, 'settings'),\n icon: <Settings size={20} />,\n order: 210,\n group: 'billing',\n },\n ];\n\n const adminNavItems: NavItem[] = [\n {\n id: 'billing-plans',\n label: tr('billing.nav.plans', 'Plans'),\n path: joinPath(basePath, 'plans'),\n icon: <Package size={20} />,\n order: 100,\n group: 'billing',\n },\n {\n id: 'billing-addons',\n label: tr('billing.nav.addons', 'Addons'),\n path: joinPath(basePath, 'addons'),\n icon: <Blocks size={20} />,\n order: 110,\n group: 'billing',\n },\n {\n id: 'billing-quotas',\n label: tr('billing.nav.quotas', 'Quotas'),\n path: joinPath(basePath, 'quotas'),\n icon: <Gauge size={20} />,\n order: 120,\n group: 'billing',\n },\n {\n id: 'billing-coupons',\n label: tr('billing.nav.coupons', 'Coupons'),\n path: joinPath(basePath, 'coupons'),\n icon: <Ticket size={20} />,\n order: 130,\n group: 'billing',\n },\n {\n id: 'billing-promotions',\n label: tr('billing.nav.promotions', 'Promotions'),\n path: joinPath(basePath, 'promotions'),\n icon: <Gift size={20} />,\n order: 135,\n group: 'billing',\n },\n\n {\n id: 'billing-credits-admin',\n label: tr('billing.nav.creditGrants', 'Credit Grants'),\n path: joinPath(basePath, 'credits'),\n icon: <Coins size={20} />,\n order: 150,\n group: 'billing',\n },\n {\n id: 'billing-refunds',\n label: tr('billing.nav.refunds', 'Refunds'),\n path: joinPath(basePath, 'refunds'),\n icon: <RotateCcw size={20} />,\n order: 160,\n group: 'billing',\n },\n {\n id: 'billing-admin-developer-revenue',\n label: tr('billing.nav.developerRevenue', 'Developer Revenue'),\n path: joinPath(basePath, 'developer-revenue'),\n icon: <DollarSign size={20} />,\n order: 164,\n group: 'billing',\n },\n {\n id: 'billing-admin-payouts',\n label: tr('billing.nav.payouts', 'Payouts'),\n path: joinPath(basePath, 'payouts'),\n icon: <Landmark size={20} />,\n order: 165,\n group: 'billing',\n },\n {\n id: 'billing-analytics',\n label: tr('billing.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'analytics'),\n icon: <TrendingUp size={20} />,\n order: 170,\n group: 'billing',\n },\n ];\n\n const navItems = mode === 'admin' ? adminNavItems : userNavItems;\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath, mode, tr]);\n\n // Register footer items (example: billing status indicator in left section)\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'billing-status',\n label: tr('billing.nav.billingReady', 'Billing Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, tr]);\n\n return (\n <ErrorBoundary\n fallback={\n <div className=\"flex min-h-[240px] items-center justify-center px-6 py-10 text-center text-sm text-text-secondary\">\n {tr(\n 'billing.errorBoundary.message',\n 'Something went wrong loading this module. Please refresh the page.'\n )}\n </div>\n }\n >\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <BillingProvider {...props}>\n {mode === 'admin' ? <BillingAdminRoutes /> : <BillingUserRoutes />}\n </BillingProvider>\n </FeatureFlagProvider>\n </ErrorBoundary>\n );\n};\n"],"mappings":";;;;;;;;;;;AA4DA,IAAaA,KAAqC,MAAU;CAC1D,IAAMC,IAAKC,EAAM,GACX,EAAE,qBAAkB,wBAAqB,cAAW,KAAK,UAAO,WAAWC;CAGjF,EAAwB;EAAE,SAASA,EAAM,YAAY;EAAc,QAAQ;CAAa,CAAC;CAGzF,IAAMC,KAAY,GAAc,OACZC,EAAK,SAAS,GAAG,IAAIA,EAAK,MAAM,GAAG,EAAE,IAAIA,MACzCC,EAAK,WAAW,GAAG,IAAIA,IAAO,IAAIA;CA8LtD,OAzLAC,QAAgB;EACd,IAAI,CAACC,GAAkB;EAEvB,IAAMC,IAA0B;GAC9B;IACE,IAAI;IACJ,OAAOR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ACE,CAAA;CACR,CAAA;AAEnB"}
|
|
1
|
+
{"version":3,"file":"BillingRoot.js","names":["BillingRoot","tr","useTr","props","joinPath","base","path","useEffect","registerNavItems","userNavItems","basePath","LayoutDashboard","RefreshCw","Package","Blocks","Activity","TicketCheck","Coins","Landmark","Settings","adminNavItems","Gauge","Ticket","Gift","RotateCcw","DollarSign","TrendingUp","mode","registerFooterItems","footerItems","ErrorBoundary","FeatureFlagProvider","BillingProvider","jsx","BillingAdminRoutes","BillingUserRoutes"],"sources":["../../src/billing/BillingRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useHeadingDocumentTitle } from '@burdenoff/fe-libs/ui';\nimport {\n LayoutDashboard,\n RefreshCw,\n Package,\n Blocks,\n Gauge,\n RotateCcw,\n Activity,\n TrendingUp,\n Settings,\n Ticket,\n Coins,\n TicketCheck,\n Landmark,\n Gift,\n DollarSign,\n} from 'lucide-react';\nimport { BillingProvider } from './providers/BillingProvider';\nimport type { NavItem, BillingRootProps } from './types';\nimport { BillingUserRoutes } from './BillingUserRoutes';\nimport { BillingAdminRoutes } from './BillingAdminRoutes';\nimport { useTr } from './shared/hooks/useTr';\n\n/**\n * Root component for the Billing microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { BillingRoot, type BillingRootProps } from '@burdenoff/microfe-billing';\n *\n * function App() {\n * const props: BillingRootProps = {\n * basePath: '/billing',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },\n * workspaceId: 'ws-123',\n * orgId: 'org-123',\n * apiGatewayUrl: 'https://api.example.com/tenant/graphql',\n * authToken: 'token',\n * stripePublishableKey: 'pk_test_...',\n * razorpayKey: 'rzp_test_...',\n * onSubscriptionCreate: (subscription) => console.log('Subscription created:', subscription),\n * onSubscriptionUpdate: (subscription) => console.log('Subscription updated:', subscription),\n * onPaymentProcess: (payment) => console.log('Payment processed:', payment),\n * registerNavItems: (items) => { return () => {}; },\n * };\n *\n * return <BillingRoot {...props} />;\n * }\n * ```\n */\nexport const BillingRoot: FC<BillingRootProps> = (props) => {\n const tr = useTr();\n const { registerNavItems, registerFooterItems, basePath = '/', mode = 'user' } = props;\n\n // FluidGrids only (BOFF-11860): each page's browser tab title follows its main heading.\n useHeadingDocumentTitle({ enabled: props.variant === 'fluidgrids', suffix: 'FluidGrids' });\n\n // Helper to join paths correctly, avoiding double slashes\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with the shell based on mode\n useEffect(() => {\n if (!registerNavItems) return;\n\n const userNavItems: NavItem[] = [\n {\n id: 'billing-overview',\n label: tr('billing.nav.billing', 'Billing'),\n path: basePath === '/' ? '/' : joinPath(basePath, 'overview'),\n icon: <LayoutDashboard size={20} />,\n order: 100,\n group: 'billing',\n },\n {\n id: 'billing-subscriptions',\n label: tr('billing.nav.subscriptions', 'Subscriptions'),\n path: joinPath(basePath, 'subscriptions'),\n icon: <RefreshCw size={20} />,\n order: 110,\n group: 'billing',\n },\n {\n id: 'billing-plans',\n label: tr('billing.nav.plans', 'Plans'),\n path: joinPath(basePath, 'plans'),\n icon: <Package size={20} />,\n order: 120,\n group: 'billing',\n },\n {\n id: 'billing-addons',\n label:\n props.variant === 'fluidgrids'\n ? tr('billing.nav.addonsFluidgrids', 'Extras')\n : tr('billing.nav.addons', 'Addons'),\n path: joinPath(basePath, 'addons'),\n icon: <Blocks size={20} />,\n order: 130,\n group: 'billing',\n },\n {\n id: 'billing-usage',\n label: tr('billing.nav.usage', 'Usage'),\n path: joinPath(basePath, 'usage'),\n icon: <Activity size={20} />,\n order: 180,\n group: 'billing',\n },\n {\n id: 'billing-affiliate',\n label: tr('billing.nav.affiliate', 'Affiliate'),\n path: joinPath(basePath, 'affiliate'),\n icon: <TicketCheck size={20} />,\n order: 190,\n group: 'billing',\n },\n {\n id: 'billing-earnings',\n label: tr('billing.nav.earnings', 'Earnings'),\n path: joinPath(basePath, 'earnings'),\n icon: <Coins size={20} />,\n order: 200,\n group: 'billing',\n },\n {\n id: 'billing-payouts',\n label: tr('billing.nav.payouts', 'Payouts'),\n path: joinPath(basePath, 'payouts'),\n icon: <Landmark size={20} />,\n order: 205,\n group: 'billing',\n },\n {\n id: 'billing-settings',\n label: tr('billing.nav.settings', 'Settings'),\n path: joinPath(basePath, 'settings'),\n icon: <Settings size={20} />,\n order: 210,\n group: 'billing',\n },\n ];\n\n const adminNavItems: NavItem[] = [\n {\n id: 'billing-plans',\n label: tr('billing.nav.plans', 'Plans'),\n path: joinPath(basePath, 'plans'),\n icon: <Package size={20} />,\n order: 100,\n group: 'billing',\n },\n {\n id: 'billing-addons',\n label:\n props.variant === 'fluidgrids'\n ? tr('billing.nav.addonsFluidgrids', 'Extras')\n : tr('billing.nav.addons', 'Addons'),\n path: joinPath(basePath, 'addons'),\n icon: <Blocks size={20} />,\n order: 110,\n group: 'billing',\n },\n {\n id: 'billing-quotas',\n label: tr('billing.nav.quotas', 'Quotas'),\n path: joinPath(basePath, 'quotas'),\n icon: <Gauge size={20} />,\n order: 120,\n group: 'billing',\n },\n {\n id: 'billing-coupons',\n label: tr('billing.nav.coupons', 'Coupons'),\n path: joinPath(basePath, 'coupons'),\n icon: <Ticket size={20} />,\n order: 130,\n group: 'billing',\n },\n {\n id: 'billing-promotions',\n label: tr('billing.nav.promotions', 'Promotions'),\n path: joinPath(basePath, 'promotions'),\n icon: <Gift size={20} />,\n order: 135,\n group: 'billing',\n },\n\n {\n id: 'billing-credits-admin',\n label: tr('billing.nav.creditGrants', 'Credit Grants'),\n path: joinPath(basePath, 'credits'),\n icon: <Coins size={20} />,\n order: 150,\n group: 'billing',\n },\n {\n id: 'billing-refunds',\n label: tr('billing.nav.refunds', 'Refunds'),\n path: joinPath(basePath, 'refunds'),\n icon: <RotateCcw size={20} />,\n order: 160,\n group: 'billing',\n },\n {\n id: 'billing-admin-developer-revenue',\n label: tr('billing.nav.developerRevenue', 'Developer Revenue'),\n path: joinPath(basePath, 'developer-revenue'),\n icon: <DollarSign size={20} />,\n order: 164,\n group: 'billing',\n },\n {\n id: 'billing-admin-payouts',\n label: tr('billing.nav.payouts', 'Payouts'),\n path: joinPath(basePath, 'payouts'),\n icon: <Landmark size={20} />,\n order: 165,\n group: 'billing',\n },\n {\n id: 'billing-analytics',\n label: tr('billing.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'analytics'),\n icon: <TrendingUp size={20} />,\n order: 170,\n group: 'billing',\n },\n ];\n\n const navItems = mode === 'admin' ? adminNavItems : userNavItems;\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath, mode, tr]);\n\n // Register footer items (example: billing status indicator in left section)\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'billing-status',\n label: tr('billing.nav.billingReady', 'Billing Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, tr]);\n\n return (\n <ErrorBoundary\n fallback={\n <div className=\"flex min-h-[240px] items-center justify-center px-6 py-10 text-center text-sm text-text-secondary\">\n {tr(\n 'billing.errorBoundary.message',\n 'Something went wrong loading this module. Please refresh the page.'\n )}\n </div>\n }\n >\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <BillingProvider {...props}>\n {mode === 'admin' ? <BillingAdminRoutes /> : <BillingUserRoutes />}\n </BillingProvider>\n </FeatureFlagProvider>\n </ErrorBoundary>\n );\n};\n"],"mappings":";;;;;;;;;;;AA4DA,IAAaA,KAAqC,MA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EAE1B,IAAMC,IAAc,CAClB;GACE,IAAI;GACJ,OAAO5B,EAAG,4BAA4B,eAAe;GACrD,MAAM;GACN,OAAO;GACP,SAAS;EACX,CACF;EAGA,OADgB2B,EAAoBC,CAC7B;CACT,GAAG,CAACD,GAAqB3B,CAAE,CAAC,GAG1B,kBAAC6B,GAAD;EACE,UACE,kBAAC,OAAD;GAAK,WAAU;GACZ,UAAA7B,EACC,iCACA,oEACF;EACG,CAAA;EAGP,UAAA,kBAAC8B,GAAD;GAAqB,aAAa;GAAM,SAAQ;GAAS,gBAAgB;GACvE,UAAA,kBAACC,GAAD;IAAiB,GAAI7B;IAClB,UAAmB8B,EAAnBN,MAAS,UAAWO,IAAyBC,GAA1B,CAAqB,CAAwB;GAClD,CAAA;EACE,CAAA;CACR,CAAA;AAEnB"}
|
|
@@ -7,6 +7,11 @@ var i = ({ active: i, billingAccountId: a }) => {
|
|
|
7
7
|
let { t: o } = r(), s = e(), c = (e, t) => {
|
|
8
8
|
let n = o(e);
|
|
9
9
|
return n === e ? t : n;
|
|
10
|
+
}, l = {
|
|
11
|
+
invoices: c("billing.history.invoices", "Invoices"),
|
|
12
|
+
payments: c("billing.history.payments", "Payments"),
|
|
13
|
+
credits: c("billing.history.credits", "Credit history"),
|
|
14
|
+
refunds: c("billing.history.refunds", "Refunds")
|
|
10
15
|
};
|
|
11
16
|
return /* @__PURE__ */ n("nav", {
|
|
12
17
|
"aria-label": c("billing.history.label", "Billing history"),
|
|
@@ -20,7 +25,7 @@ var i = ({ active: i, billingAccountId: a }) => {
|
|
|
20
25
|
t || s(e.path);
|
|
21
26
|
},
|
|
22
27
|
className: `whitespace-nowrap rounded-button px-3 py-1.5 text-sm transition-colors ${t ? "bg-bg-sunken font-medium text-text-primary" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"}`,
|
|
23
|
-
children:
|
|
28
|
+
children: l[e.id]
|
|
24
29
|
}, e.id);
|
|
25
30
|
})
|
|
26
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BillingHistoryTabs.js","names":["BillingHistoryTabs","useI18n","navigateTo","useBillingNavigate","tr","translated","t","key","fallback","getBillingHistoryTabs","billingAccountId","isActive","tab","active"],"sources":["../../../../src/billing/shared/components/BillingHistoryTabs.tsx"],"sourcesContent":["import { type FC } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\nimport { useBillingNavigate } from '../../hooks/useBillingNavigate';\nimport { getBillingHistoryTabs, type BillingHistoryTabId } from './historyTabs';\n\ninterface BillingHistoryTabsProps {\n active: BillingHistoryTabId;\n billingAccountId?: string | null;\n}\n\n/** Tab strip shared by Invoices, Payments, Credit history and Refunds (FluidGrids only). */\nexport const BillingHistoryTabs: FC<BillingHistoryTabsProps> = ({ active, billingAccountId }) => {\n const { t } = useI18n();\n const navigateTo = useBillingNavigate();\n const tr = (key: string, fallback: string): string => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n\n return (\n <nav\n aria-label={tr('billing.history.label', 'Billing history')}\n className=\"flex max-w-full flex-wrap items-center gap-1 rounded-card border border-border-subtle bg-bg-surface p-1\"\n >\n {getBillingHistoryTabs(billingAccountId).map((tab) => {\n const isActive = tab.id === active;\n return (\n <button\n key={tab.id}\n type=\"button\"\n aria-current={isActive ? 'page' : undefined}\n onClick={() => {\n if (!isActive) navigateTo(tab.path);\n }}\n className={`whitespace-nowrap rounded-button px-3 py-1.5 text-sm transition-colors ${\n isActive\n ? 'bg-bg-sunken font-medium text-text-primary'\n : 'text-text-secondary hover:bg-bg-sunken hover:text-text-primary'\n }`}\n >\n {
|
|
1
|
+
{"version":3,"file":"BillingHistoryTabs.js","names":["BillingHistoryTabs","useI18n","navigateTo","useBillingNavigate","tr","translated","t","key","fallback","labels","getBillingHistoryTabs","billingAccountId","isActive","tab","active"],"sources":["../../../../src/billing/shared/components/BillingHistoryTabs.tsx"],"sourcesContent":["import { type FC } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\nimport { useBillingNavigate } from '../../hooks/useBillingNavigate';\nimport { getBillingHistoryTabs, type BillingHistoryTabId } from './historyTabs';\n\ninterface BillingHistoryTabsProps {\n active: BillingHistoryTabId;\n billingAccountId?: string | null;\n}\n\n/** Tab strip shared by Invoices, Payments, Credit history and Refunds (FluidGrids only). */\nexport const BillingHistoryTabs: FC<BillingHistoryTabsProps> = ({ active, billingAccountId }) => {\n const { t } = useI18n();\n const navigateTo = useBillingNavigate();\n const tr = (key: string, fallback: string): string => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n\n // Literal keys so the i18n extractor picks every label up.\n const labels: Record<BillingHistoryTabId, string> = {\n invoices: tr('billing.history.invoices', 'Invoices'),\n payments: tr('billing.history.payments', 'Payments'),\n credits: tr('billing.history.credits', 'Credit history'),\n refunds: tr('billing.history.refunds', 'Refunds'),\n };\n\n return (\n <nav\n aria-label={tr('billing.history.label', 'Billing history')}\n className=\"flex max-w-full flex-wrap items-center gap-1 rounded-card border border-border-subtle bg-bg-surface p-1\"\n >\n {getBillingHistoryTabs(billingAccountId).map((tab) => {\n const isActive = tab.id === active;\n return (\n <button\n key={tab.id}\n type=\"button\"\n aria-current={isActive ? 'page' : undefined}\n onClick={() => {\n if (!isActive) navigateTo(tab.path);\n }}\n className={`whitespace-nowrap rounded-button px-3 py-1.5 text-sm transition-colors ${\n isActive\n ? 'bg-bg-sunken font-medium text-text-primary'\n : 'text-text-secondary hover:bg-bg-sunken hover:text-text-primary'\n }`}\n >\n {labels[tab.id]}\n </button>\n );\n })}\n </nav>\n );\n};\n"],"mappings":";;;;;AAYA,IAAaA,KAAmD,EAAE,WAAQ,0BAAuB;CAC/F,IAAM,EAAE,SAAMC,EAAQ,GAChBC,IAAaC,EAAmB,GAChCC,KAAM,GAAa,MAA6B;EACpD,IAAMC,IAAaC,EAAEC,CAAG;EACxB,OAAOF,MAAeE,IAAMC,IAAWH;CACzC,GAGMI,IAA8C;EAClD,UAAUL,EAAG,4BAA4B,UAAU;EACnD,UAAUA,EAAG,4BAA4B,UAAU;EACnD,SAASA,EAAG,2BAA2B,gBAAgB;EACvD,SAASA,EAAG,2BAA2B,SAAS;CAClD;CAEA,OACE,kBAAC,OAAD;EACE,cAAYA,EAAG,yBAAyB,iBAAiB;EACzD,WAAU;EAET,UAAAM,EAAsBC,CAAgB,CAAC,CAAC,KAAK,MAAQ;GACpD,IAAMC,IAAWC,EAAI,OAAOC;GAC5B,OACE,kBAAC,UAAD;IAEE,MAAK;IACL,gBAAcF,IAAW,SAAS,KAAA;IAClC,eAAe;KACb,AAAKA,KAAUV,EAAWW,EAAI,IAAI;IACpC;IACA,WAAW,0EACTD,IACI,+CACA;IAGL,UAAAH,EAAOI,EAAI;GACN,GAbDA,EAAI,EAaH;EAEZ,CAAC;CACE,CAAA;AAET"}
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
export type BillingHistoryTabId = 'invoices' | 'payments' | 'credits' | 'refunds';
|
|
7
7
|
export interface BillingHistoryTabDef {
|
|
8
8
|
id: BillingHistoryTabId;
|
|
9
|
-
/** i18n key */
|
|
10
|
-
labelKey: string;
|
|
11
|
-
fallbackLabel: string;
|
|
12
9
|
/** Path relative to the billing base path. */
|
|
13
10
|
path: string;
|
|
14
11
|
}
|
|
@@ -2,28 +2,20 @@
|
|
|
2
2
|
function e(e) {
|
|
3
3
|
let t = [{
|
|
4
4
|
id: "invoices",
|
|
5
|
-
labelKey: "billing.history.invoices",
|
|
6
|
-
fallbackLabel: "Invoices",
|
|
7
5
|
path: "/invoices"
|
|
8
6
|
}];
|
|
9
7
|
if (e) {
|
|
10
8
|
let n = encodeURIComponent(e);
|
|
11
9
|
t.push({
|
|
12
10
|
id: "payments",
|
|
13
|
-
labelKey: "billing.history.payments",
|
|
14
|
-
fallbackLabel: "Payments",
|
|
15
11
|
path: `/transactions/${n}`
|
|
16
12
|
}, {
|
|
17
13
|
id: "credits",
|
|
18
|
-
labelKey: "billing.history.credits",
|
|
19
|
-
fallbackLabel: "Credit history",
|
|
20
14
|
path: `/creditTransactions/${n}`
|
|
21
15
|
});
|
|
22
16
|
}
|
|
23
17
|
return t.push({
|
|
24
18
|
id: "refunds",
|
|
25
|
-
labelKey: "billing.history.refunds",
|
|
26
|
-
fallbackLabel: "Refunds",
|
|
27
19
|
path: "/refunds"
|
|
28
20
|
}), t;
|
|
29
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"historyTabs.js","names":["getBillingHistoryTabs","tabs","billingAccountId","id"],"sources":["../../../../src/billing/shared/components/historyTabs.ts"],"sourcesContent":["/**\n * Billing history (BOFF-11860, FluidGrids variant): invoices, payments, credit\n * history and refunds answer one question, \"what did I pay?\", so the four pages\n * share one tab strip. Each page keeps its own route and behaviour.\n */\n\nexport type BillingHistoryTabId = 'invoices' | 'payments' | 'credits' | 'refunds';\n\nexport interface BillingHistoryTabDef {\n id: BillingHistoryTabId;\n /**
|
|
1
|
+
{"version":3,"file":"historyTabs.js","names":["getBillingHistoryTabs","tabs","billingAccountId","id"],"sources":["../../../../src/billing/shared/components/historyTabs.ts"],"sourcesContent":["/**\n * Billing history (BOFF-11860, FluidGrids variant): invoices, payments, credit\n * history and refunds answer one question, \"what did I pay?\", so the four pages\n * share one tab strip. Each page keeps its own route and behaviour.\n */\n\nexport type BillingHistoryTabId = 'invoices' | 'payments' | 'credits' | 'refunds';\n\nexport interface BillingHistoryTabDef {\n id: BillingHistoryTabId;\n /** Path relative to the billing base path. */\n path: string;\n}\n\n/**\n * The tabs to show. Payments and Credits history are per billing account, so\n * they appear only once an account is known; Invoices and Refunds always do.\n */\nexport function getBillingHistoryTabs(\n billingAccountId: string | null | undefined\n): BillingHistoryTabDef[] {\n const tabs: BillingHistoryTabDef[] = [\n {\n id: 'invoices',\n path: '/invoices',\n },\n ];\n if (billingAccountId) {\n const id = encodeURIComponent(billingAccountId);\n tabs.push(\n {\n id: 'payments',\n path: `/transactions/${id}`,\n },\n {\n id: 'credits',\n path: `/creditTransactions/${id}`,\n }\n );\n }\n tabs.push({\n id: 'refunds',\n path: '/refunds',\n });\n return tabs;\n}\n"],"mappings":";AAkBA,SAAgBA,EACd,GACwB;CACxB,IAAMC,IAA+B,CACnC;EACE,IAAI;EACJ,MAAM;CACR,CACF;CACA,IAAIC,GAAkB;EACpB,IAAMC,IAAK,mBAAmBD,CAAgB;EAC9C,EAAK,KACH;GACE,IAAI;GACJ,MAAM,iBAAiBC;EACzB,GACA;GACE,IAAI;GACJ,MAAM,uBAAuBA;EAC/B,CACF;CACF;CAKA,OAJAF,EAAK,KAAK;EACR,IAAI;EACJ,MAAM;CACR,CAAC,GACMA;AACT"}
|