@burdenoff/microfe-billing 2026.1123.1 → 2026.1123.3

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.
@@ -1,6 +1,4 @@
1
1
  import { FC } from 'react';
2
- export declare const PLAN_QUOTA_TERMS_KEY = "billing.plans.quotaTermsNote";
3
- export declare const PLAN_QUOTA_TERMS_TEXT = "Plan quotas and features are subject to change. We may increase, decrease, add or remove quotas on this plan during an active subscription, based on the features we currently offer.";
4
2
  export interface PlanQuotaTermsNoteProps {
5
3
  className?: string;
6
4
  }
@@ -2,17 +2,20 @@ import { Info as e } from "lucide-react";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import { useI18n as r } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
4
4
  // src/billing/shared/components/PlanQuotaTermsNote.tsx
5
- var i = "billing.plans.quotaTermsNote", a = "Plan quotas and features are subject to change. We may increase, decrease, add or remove quotas on this plan during an active subscription, based on the features we currently offer.", o = ({ className: o }) => {
6
- let { t: s } = r(), c = s(i), l = c === "billing.plans.quotaTermsNote" ? a : c;
5
+ var i = ({ className: i }) => {
6
+ let { t: a } = r(), o = ((e, t) => {
7
+ let n = a(e);
8
+ return n === e ? t : n;
9
+ })("billing.plans.quotaTermsNote", "Plan quotas and features are subject to change. We may increase, decrease, add or remove quotas on this plan during an active subscription, based on the features we currently offer.");
7
10
  return /* @__PURE__ */ n("p", {
8
11
  "data-testid": "plan-quota-terms-note",
9
- className: `flex items-start gap-2 text-xs text-text-secondary ${o ?? ""}`,
12
+ className: `flex items-start gap-2 text-xs text-text-secondary ${i ?? ""}`,
10
13
  children: [/* @__PURE__ */ t(e, {
11
14
  className: "size-3.5 mt-0.5 shrink-0",
12
15
  "aria-hidden": "true"
13
- }), /* @__PURE__ */ t("span", { children: l })]
16
+ }), /* @__PURE__ */ t("span", { children: o })]
14
17
  });
15
18
  };
16
- export { i as PLAN_QUOTA_TERMS_KEY, a as PLAN_QUOTA_TERMS_TEXT, o as PlanQuotaTermsNote };
19
+ export { i as PlanQuotaTermsNote };
17
20
 
18
21
  //# sourceMappingURL=PlanQuotaTermsNote.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanQuotaTermsNote.js","names":["PLAN_QUOTA_TERMS_KEY","PLAN_QUOTA_TERMS_TEXT","PlanQuotaTermsNote","useI18n","translated","t","text","className","Info"],"sources":["../../../../src/billing/shared/components/PlanQuotaTermsNote.tsx"],"sourcesContent":["/**\n * Plan quota terms note (BOFF-16097).\n *\n * A plan's quotas are set by the product catalog and can change during an\n * active subscription: the billing service applies catalog changes to plans\n * and to their live subscriptions. This note states that wherever a customer\n * chooses or pays for a plan.\n */\nimport type { FC } from 'react';\nimport { Info } from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\nexport const PLAN_QUOTA_TERMS_KEY = 'billing.plans.quotaTermsNote';\n\nexport const PLAN_QUOTA_TERMS_TEXT =\n 'Plan quotas and features are subject to change. We may increase, decrease, add or remove quotas on this plan during an active subscription, based on the features we currently offer.';\n\nexport interface PlanQuotaTermsNoteProps {\n className?: string;\n}\n\nexport const PlanQuotaTermsNote: FC<PlanQuotaTermsNoteProps> = ({ className }) => {\n const { t } = useI18n();\n const translated = t(PLAN_QUOTA_TERMS_KEY);\n const text = translated === PLAN_QUOTA_TERMS_KEY ? PLAN_QUOTA_TERMS_TEXT : translated;\n\n return (\n <p\n data-testid=\"plan-quota-terms-note\"\n className={`flex items-start gap-2 text-xs text-text-secondary ${className ?? ''}`}\n >\n <Info className=\"size-3.5 mt-0.5 shrink-0\" aria-hidden=\"true\" />\n <span>{text}</span>\n </p>\n );\n};\n"],"mappings":";;;;AAYA,IAAaA,IAAuB,gCAEvBC,IACX,yLAMWC,KAAmD,EAAE,mBAAgB;CAChF,IAAM,EAAE,SAAMC,EAAQ,GAChBC,IAAaC,EAAEL,CAAoB,GACnCM,IAAOF,MAAA,iCAAsCH,IAAwBG;CAE3E,OACE,kBAAC,KAAD;EACE,eAAY;EACZ,WAAW,sDAAsDG,KAAa;EAFhF,UAAA,CAIE,kBAACC,GAAD;GAAM,WAAU;GAA2B,eAAY;EAAQ,CAAA,GAC/D,kBAAC,QAAD,EAAA,UAAOF,EAAW,CAAA,CACjB;;AAEP"}
1
+ {"version":3,"file":"PlanQuotaTermsNote.js","names":["PlanQuotaTermsNote","useI18n","text","translated","t","key","fallback","className","Info"],"sources":["../../../../src/billing/shared/components/PlanQuotaTermsNote.tsx"],"sourcesContent":["/**\n * Plan quota terms note (BOFF-16097).\n *\n * A plan's quotas are set by the product catalog and can change during an\n * active subscription: the billing service applies catalog changes to plans\n * and to their live subscriptions. This note states that wherever a customer\n * chooses or pays for a plan.\n */\nimport type { FC } from 'react';\nimport { Info } from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\nexport interface PlanQuotaTermsNoteProps {\n className?: string;\n}\n\nexport const PlanQuotaTermsNote: FC<PlanQuotaTermsNoteProps> = ({ className }) => {\n const { t } = useI18n();\n const tr = (key: string, fallback: string): string => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n const text = tr(\n 'billing.plans.quotaTermsNote',\n 'Plan quotas and features are subject to change. We may increase, decrease, add or remove quotas on this plan during an active subscription, based on the features we currently offer.'\n );\n\n return (\n <p\n data-testid=\"plan-quota-terms-note\"\n className={`flex items-start gap-2 text-xs text-text-secondary ${className ?? ''}`}\n >\n <Info className=\"size-3.5 mt-0.5 shrink-0\" aria-hidden=\"true\" />\n <span>{text}</span>\n </p>\n );\n};\n"],"mappings":";;;;AAgBA,IAAaA,KAAmD,EAAE,mBAAgB;CAChF,IAAM,EAAE,SAAMC,EAAQ,GAKhBC,MAJM,GAAa,MAA6B;EACpD,IAAMC,IAAaC,EAAEC,CAAG;EACxB,OAAOF,MAAeE,IAAMC,IAAWH;CACzC,EACa,CACX,gCACA,uLACF;CAEA,OACE,kBAAC,KAAD;EACE,eAAY;EACZ,WAAW,sDAAsDI,KAAa;EAFhF,UAAA,CAIE,kBAACC,GAAD;GAAM,WAAU;GAA2B,eAAY;EAAQ,CAAA,GAC/D,kBAAC,QAAD,EAAA,UAAON,EAAW,CAAA,CACjB;;AAEP"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-billing",
3
- "version": "2026.1123.1",
3
+ "version": "2026.1123.3",
4
4
  "description": "Billing microfrontend for Burdenoff products",
5
5
  "type": "module",
6
6
  "files": [