@npm-zenwork/tax-remittance-ui 0.2.4 → 0.2.6

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.
Files changed (137) hide show
  1. package/dist/api/bankAccounts.d.ts +9 -7
  2. package/dist/api/dashboard.d.ts +3 -1
  3. package/dist/api/entities.d.ts +10 -7
  4. package/dist/api/remittancePayments.d.ts +2 -0
  5. package/dist/api/taxAccounts.d.ts +10 -1
  6. package/dist/components/dashboard/AddFirstPaymentModal.d.ts +12 -0
  7. package/dist/components/dashboard/DashboardKpiCards.d.ts +10 -0
  8. package/dist/components/dashboard/FederalPaymentsChartCard.d.ts +11 -0
  9. package/dist/components/dashboard/NeedAttentionCarousel.d.ts +6 -0
  10. package/dist/components/dashboard/PaymentsTypeCard.d.ts +7 -0
  11. package/dist/components/dashboard/RecentPaymentsCard.d.ts +6 -0
  12. package/dist/components/dashboard/RowActionsMenu.d.ts +13 -0
  13. package/dist/components/dashboard/SetupChecklist.d.ts +22 -0
  14. package/dist/components/dashboard/StatePaymentsChartCard.d.ts +11 -0
  15. package/dist/components/dashboard/TaxYearSelect.d.ts +9 -0
  16. package/dist/components/dashboard/UpcomingPaymentsCard.d.ts +6 -0
  17. package/dist/components/dashboard/dashboardMockData.d.ts +63 -0
  18. package/dist/components/dashboard/dashboardOverviewMappers.d.ts +15 -0
  19. package/dist/components/dashboard/dashboardUtils.d.ts +18 -0
  20. package/dist/components/dashboard/useSetupProgress.d.ts +30 -0
  21. package/dist/components/entities/EntityActionsMenu.d.ts +3 -1
  22. package/dist/components/entities/EntityCard.d.ts +8 -0
  23. package/dist/components/entities/EntityTypeFilter.d.ts +8 -0
  24. package/dist/components/entities/entityListUtils.d.ts +5 -8
  25. package/dist/components/forms/PhoneInputGroup.d.ts +5 -7
  26. package/dist/components/forms/SegmentedControl.d.ts +9 -5
  27. package/dist/components/icons/BankIcon.d.ts +1 -0
  28. package/dist/components/icons/BusinessIcon.d.ts +1 -0
  29. package/dist/components/icons/CheckCircleIcon.d.ts +1 -0
  30. package/dist/components/icons/EmptyTaxAccountsIllustration.d.ts +5 -0
  31. package/dist/components/icons/EntitySuccessIllustration.d.ts +2 -0
  32. package/dist/components/icons/EyeIcon.d.ts +1 -0
  33. package/dist/components/icons/EyeOffIcon.d.ts +1 -0
  34. package/dist/components/icons/IndividualEntitySuccessIllustration.d.ts +2 -0
  35. package/dist/components/icons/PersonIcon.d.ts +1 -0
  36. package/dist/components/icons/XCircleIcon.d.ts +1 -0
  37. package/dist/components/onboarding/EntityAccountTypeRow.d.ts +16 -0
  38. package/dist/components/onboarding/EntityAddressFields.d.ts +17 -0
  39. package/dist/components/onboarding/EntityBusinessFields.d.ts +17 -0
  40. package/dist/components/onboarding/EntityCreatedModal.d.ts +14 -0
  41. package/dist/components/onboarding/EntityForm.d.ts +5 -0
  42. package/dist/components/onboarding/EntityFormHelpPanel.d.ts +8 -0
  43. package/dist/components/onboarding/EntityIdNumberInput.d.ts +14 -0
  44. package/dist/components/onboarding/EntityPhoneField.d.ts +9 -0
  45. package/dist/components/onboarding/EntityPrimaryTaxpayerFields.d.ts +16 -0
  46. package/dist/components/onboarding/EntitySuccessModal.d.ts +35 -0
  47. package/dist/components/onboarding/SecondaryTaxpayerSection.d.ts +23 -0
  48. package/dist/components/onboarding/SecondaryTaxpayerToggle.d.ts +10 -0
  49. package/dist/components/onboarding/entityHelpContent.d.ts +123 -0
  50. package/dist/components/onboarding/useEntityForm.d.ts +80 -0
  51. package/dist/components/payments/BankAccountCard.d.ts +16 -0
  52. package/dist/components/payments/BankAccountDrawer.d.ts +15 -0
  53. package/dist/components/payments/BankConnectionMethodModal.d.ts +11 -0
  54. package/dist/components/payments/BankConnectionMethodPicker.d.ts +10 -0
  55. package/dist/components/payments/FederalPaymentReviewPanel.d.ts +14 -0
  56. package/dist/components/payments/FederalPaymentReviewStep.d.ts +13 -0
  57. package/dist/components/payments/InlineRowActions.d.ts +17 -0
  58. package/dist/components/payments/PaymentActionButton.d.ts +9 -0
  59. package/dist/components/payments/PaymentActionsFooter.d.ts +43 -0
  60. package/dist/components/payments/PaymentFormSection.d.ts +1 -1
  61. package/dist/components/payments/PaymentRowMenu.d.ts +14 -0
  62. package/dist/components/payments/PaymentStatusBadge.d.ts +7 -0
  63. package/dist/components/payments/PaymentStepper.d.ts +14 -0
  64. package/dist/components/payments/PaymentTableRow.d.ts +14 -0
  65. package/dist/components/payments/PaymentsNeedAttention.d.ts +14 -0
  66. package/dist/components/payments/RecurringPaymentToggle.d.ts +16 -0
  67. package/dist/components/payments/RecurringPeriodRows.d.ts +34 -0
  68. package/dist/components/payments/StateBankDetailsForm.d.ts +8 -0
  69. package/dist/components/payments/StatePaymentReviewPanel.d.ts +14 -0
  70. package/dist/components/payments/eftpsIndividualEnrollmentConfig.d.ts +3 -3
  71. package/dist/components/payments/federalPaymentSteps.d.ts +6 -0
  72. package/dist/components/payments/federalPaymentUtils.d.ts +4 -0
  73. package/dist/components/payments/paymentsTableConfig.d.ts +20 -9
  74. package/dist/components/payments/remittancePaymentMappers.d.ts +3 -0
  75. package/dist/components/payments/statePaymentAuthorizationConfig.d.ts +1 -1
  76. package/dist/components/payments/useStatePaymentDraftSave.d.ts +11 -0
  77. package/dist/components/settings/BankAccountActionsMenu.d.ts +3 -1
  78. package/dist/components/settings/EditEntityForm.d.ts +12 -0
  79. package/dist/components/settings/TaxAccountDrawer.d.ts +22 -0
  80. package/dist/components/settings/settingsNavConfig.d.ts +1 -1
  81. package/dist/components/settings/taxAccountDrawerConfig.d.ts +1 -0
  82. package/dist/components/tax-forms/TaxFormCard.d.ts +7 -0
  83. package/dist/components/tax-forms/TaxFormsGrid.d.ts +9 -0
  84. package/dist/components/tax-forms/states/virginia/VA16Form.d.ts +53 -0
  85. package/dist/components/tax-forms/states/virginia/VA16Form.preview.d.ts +2 -0
  86. package/dist/components/ui/SideDrawer.d.ts +18 -0
  87. package/dist/components/ui/StatusPill.d.ts +10 -0
  88. package/dist/components/ui/ToastProvider.d.ts +2 -2
  89. package/dist/embedded/EmbeddedContext.d.ts +4 -1
  90. package/dist/embedded/EmbeddedWidgetBase.d.ts +3 -1
  91. package/dist/embedded/TaxRemittanceEmbedded.d.ts +6 -0
  92. package/dist/embedded/pages/EmbeddedEntityEditPage.d.ts +6 -0
  93. package/dist/index.cjs +34 -34
  94. package/dist/index.cjs.map +1 -1
  95. package/dist/index.d.ts +2 -0
  96. package/dist/index.mjs +14305 -11075
  97. package/dist/index.mjs.map +1 -1
  98. package/dist/lib/bankAccountInputRules.d.ts +17 -0
  99. package/dist/lib/entityFormUtils.d.ts +63 -8
  100. package/dist/lib/fieldRules.d.ts +92 -0
  101. package/dist/lib/fieldSchemas.d.ts +12 -0
  102. package/dist/lib/jwt.d.ts +10 -0
  103. package/dist/lib/paymentFrequency.d.ts +10 -0
  104. package/dist/lib/paymentStatus.d.ts +7 -0
  105. package/dist/lib/paymentsNavigation.d.ts +16 -2
  106. package/dist/lib/useElementWidth.d.ts +9 -0
  107. package/dist/pages/FederalPaymentReviewPage.d.ts +1 -0
  108. package/dist/pages/StateBankDetailsPage.d.ts +2 -0
  109. package/dist/styles.css +1 -1
  110. package/dist/types/bankAccount.d.ts +2 -0
  111. package/dist/types/createBankAccount.d.ts +2 -0
  112. package/dist/types/dashboard.d.ts +59 -0
  113. package/dist/types/entity.d.ts +27 -2
  114. package/dist/types/federalPaymentFlow.d.ts +2 -0
  115. package/dist/types/statePayment.d.ts +7 -0
  116. package/dist/types/statePaymentFlow.d.ts +3 -0
  117. package/dist/types/taxAccountDetails.d.ts +31 -29
  118. package/package.json +1 -1
  119. package/dist/api/paymentTransactions.d.ts +0 -7
  120. package/dist/components/dashboard/EmptyPaymentCard.d.ts +0 -9
  121. package/dist/components/dashboard/MonthlyOverviewSection.d.ts +0 -8
  122. package/dist/components/dashboard/MyPaymentsTable.d.ts +0 -8
  123. package/dist/components/dashboard/PaymentSummaryCard.d.ts +0 -21
  124. package/dist/components/payments/PaymentRowActions.d.ts +0 -13
  125. package/dist/components/settings/AddBankAccountManualForm.d.ts +0 -7
  126. package/dist/components/settings/AddBankAccountModal.d.ts +0 -8
  127. package/dist/components/settings/AddTaxAccountForm.d.ts +0 -32
  128. package/dist/components/settings/EditBankAccountModal.d.ts +0 -8
  129. package/dist/components/settings/EditEntityModal.d.ts +0 -8
  130. package/dist/components/settings/PaymentHistorySection.d.ts +0 -5
  131. package/dist/components/settings/SettingsPlaceholderSection.d.ts +0 -6
  132. package/dist/components/settings/taxAccountFormConfig.d.ts +0 -18
  133. package/dist/components/tax-forms/TaxFormsTable.d.ts +0 -8
  134. package/dist/pages/AddTaxAccountPage.d.ts +0 -1
  135. package/dist/pages/StatePaymentEditorPage.d.ts +0 -5
  136. package/dist/types/paymentHistory.d.ts +0 -26
  137. package/dist/types/taxAccount.d.ts +0 -9
@@ -1,15 +1,26 @@
1
1
  import { ComponentType, SVGProps } from 'react';
2
+ /** Bucket a payment row falls into — derived from its status. */
2
3
  export type PaymentStatus = 'drafts' | 'scheduled' | 'submitted' | 'rejected' | 'paid';
4
+ /** Tabs on the Tax Payments table — every bucket, plus the unfiltered "All". */
5
+ export type PaymentTab = 'all' | PaymentStatus;
3
6
  export type PaymentActionType = 'draft-actions' | 'view-pdf' | 'view-link' | 'rejected-actions';
4
- export interface TabTableConfig {
5
- columns: string[];
6
- emptyMessage: string;
7
- actionType: PaymentActionType;
8
- }
9
7
  export declare const statusTabs: {
10
- key: PaymentStatus;
8
+ key: PaymentTab;
11
9
  label: string;
12
- Icon: ComponentType<SVGProps<SVGSVGElement>>;
13
- iconClassName: string;
10
+ /** Omitted for "All", which is text-only in the design. */
11
+ Icon?: ComponentType<SVGProps<SVGSVGElement>>;
12
+ iconClassName?: string;
14
13
  }[];
15
- export declare const tabTableConfig: Record<PaymentStatus, TabTableConfig>;
14
+ /**
15
+ * How a tab lays out its rows:
16
+ * - `default` status pill, actions in the row menu (unlabelled column)
17
+ * - `view-action` same columns, inline View button
18
+ * - `draft` reference ID, no status, view/edit icons + Submit & Pay
19
+ * - `rejected` reference ID, rejected date and reason, view icon + Re-Submit
20
+ */
21
+ export type PaymentTableLayout = 'default' | 'view-action' | 'draft' | 'rejected';
22
+ export declare const tabLayout: Record<PaymentTab, PaymentTableLayout>;
23
+ export declare const layoutColumns: Record<PaymentTableLayout, string[]>;
24
+ export declare const tabEmptyMessage: Record<PaymentTab, string>;
25
+ /** Actions offered for a row, keyed by the row's own bucket (not the open tab). */
26
+ export declare const rowActionType: Record<PaymentStatus, PaymentActionType>;
@@ -11,6 +11,8 @@ export interface RemittancePaymentRow {
11
11
  paymentDate: string;
12
12
  status: string | null;
13
13
  reason: string | null;
14
+ /** Federal tax form / state reason for payment. `—` when unknown. */
15
+ formType: string;
14
16
  tab: PaymentStatus;
15
17
  }
16
18
  export declare function formatTaxPeriod(taxPeriod: string | null | undefined): string;
@@ -24,6 +26,7 @@ export declare function mapRemittancePaymentToRow(payment: {
24
26
  paymentDate: string;
25
27
  status: string | null;
26
28
  reason: string | null;
29
+ formType?: string | null;
27
30
  }): RemittancePaymentRow;
28
31
  export declare function mapFederalPaymentToRemittanceRow(payment: FederalPaymentResponse): RemittancePaymentRow;
29
32
  export declare function mapStatePaymentToRemittanceRow(payment: StatePaymentResponse): RemittancePaymentRow;
@@ -1,2 +1,2 @@
1
- export declare const statePaymentAuthorizationText = "By proceeding, you authorize the payment to the selected tax authority and acknowledge that you are responsible for the accuracy of the information provided.";
1
+ export declare const statePaymentAuthorizationText = "Before your payment is processed, please review the information carefully. By proceeding, you authorize to initiate this payment to the selected tax authority using your chosen bank account. You acknowledge that you are responsible for ensuring the accuracy of the payment information and for complying with all applicable tax filing and payment requirements.";
2
2
  export declare const statePaymentAuthorizationCheckboxLabel = "I have reviewed the details and authorize this payment.";
@@ -0,0 +1,11 @@
1
+ import { EntityDetailsResponse } from '../../types/entity';
2
+ import { StatePaymentDraft } from '../../types/statePaymentFlow';
3
+ /**
4
+ * Persist an in-progress state payment as a Draft. Shared by the Bank Account
5
+ * step and the Authorization step so "Save as Draft" behaves identically in
6
+ * both places.
7
+ */
8
+ export declare function useStatePaymentDraftSave(entity: EntityDetailsResponse | null): {
9
+ upsertPayment: (paymentDraft: StatePaymentDraft) => Promise<import('../../types/statePayment').StatePaymentResponse | null>;
10
+ saveAsDraft: (paymentDraft: StatePaymentDraft) => Promise<void>;
11
+ };
@@ -3,6 +3,8 @@ interface BankAccountActionsMenuProps {
3
3
  account: BankAccountResponse;
4
4
  entityId: number;
5
5
  onEdit: (account: BankAccountResponse) => void;
6
+ /** `kebab` is the icon-only trigger used on the bank account cards. */
7
+ variant?: 'button' | 'kebab';
6
8
  }
7
- export declare function BankAccountActionsMenu({ account, entityId, onEdit }: BankAccountActionsMenuProps): import("react").JSX.Element;
9
+ export declare function BankAccountActionsMenu({ account, entityId, onEdit, variant, }: BankAccountActionsMenuProps): import("react").JSX.Element;
8
10
  export {};
@@ -0,0 +1,12 @@
1
+ import { EntityDetailsResponse } from '../../types/entity';
2
+ interface EditEntityFormProps {
3
+ entity: EntityDetailsResponse;
4
+ onCancel: () => void;
5
+ onSaved: () => void;
6
+ }
7
+ /**
8
+ * Edit Entity form — same composition as the Add Entity form (EntityForm), with
9
+ * the identifier locked and no filing status, which the update payload omits.
10
+ */
11
+ export declare function EditEntityForm({ entity, onCancel, onSaved }: EditEntityFormProps): import("react").JSX.Element;
12
+ export {};
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ import { TaxAccountDetailResponse } from '../../types/taxAccountDetails';
3
+ declare const taxAccountSchema: z.ZodObject<{
4
+ state: z.ZodString;
5
+ reasonForPayment: z.ZodString;
6
+ stateAccountId: z.ZodString;
7
+ accountId: z.ZodString;
8
+ taxYear: z.ZodString;
9
+ frequency: z.ZodOptional<z.ZodString>;
10
+ status: z.ZodString;
11
+ notes: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ export type TaxAccountDrawerValues = z.infer<typeof taxAccountSchema>;
14
+ interface TaxAccountDrawerProps {
15
+ open: boolean;
16
+ entityId: number | null;
17
+ /** When set, the drawer edits this account instead of creating one. */
18
+ account?: TaxAccountDetailResponse | null;
19
+ onClose: () => void;
20
+ }
21
+ export declare function TaxAccountDrawer({ open, entityId, account, onClose }: TaxAccountDrawerProps): import("react").JSX.Element;
22
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { ComponentType, SVGProps } from 'react';
2
- export type SettingsSectionId = 'bank-accounts' | 'tax-accounts' | 'payment-history' | 'entity-details';
2
+ export type SettingsSectionId = 'bank-accounts' | 'tax-accounts' | 'entity-details';
3
3
  export interface SettingsNavItem {
4
4
  id: SettingsSectionId;
5
5
  title: string;
@@ -0,0 +1 @@
1
+ export declare const TAX_ACCOUNT_STATUSES: readonly ["Active", "Inactive"];
@@ -0,0 +1,7 @@
1
+ import { TaxFormResponse } from '../../types/taxForm';
2
+ interface TaxFormCardProps {
3
+ form: TaxFormResponse;
4
+ onAction?: (form: TaxFormResponse) => void;
5
+ }
6
+ export declare function TaxFormCard({ form, onAction }: TaxFormCardProps): import("react").JSX.Element;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import { TaxFormResponse } from '../../types/taxForm';
2
+ interface TaxFormsGridProps {
3
+ forms?: TaxFormResponse[];
4
+ isLoading?: boolean;
5
+ isError?: boolean;
6
+ onFormAction?: (form: TaxFormResponse) => void;
7
+ }
8
+ export declare function TaxFormsGrid({ forms, isLoading, isError, onFormAction, }: TaxFormsGridProps): import("react").JSX.Element;
9
+ export {};
@@ -0,0 +1,53 @@
1
+ export interface AmountParts {
2
+ dollars: string;
3
+ cents: string;
4
+ }
5
+ /** Filled in from the state payment — displayed, never edited here. */
6
+ export interface VA16BoundData {
7
+ /** Printed top-right, e.g. `316`. */
8
+ docId: string;
9
+ /** Quarter end, as printed: `03 / 31 / 2026`. */
10
+ period: string;
11
+ dueDate: string;
12
+ /** The OCR line across the middle of the return. */
13
+ scanLine: string;
14
+ accountNumber: string;
15
+ fein: string;
16
+ name: string;
17
+ address: string;
18
+ city: string;
19
+ state: string;
20
+ zipCode: string;
21
+ /** Line 1 — the payment's withheld tax. */
22
+ incomeTaxWithheld: AmountParts;
23
+ }
24
+ /** Money lines 2–9, which the taxpayer completes. */
25
+ export interface VA16EditableAmounts {
26
+ previousPeriodAdjustments: AmountParts;
27
+ adjustedTotal: AmountParts;
28
+ paymentsMadeThisPeriod: AmountParts;
29
+ balanceOfTaxDue: AmountParts;
30
+ penalty: AmountParts;
31
+ interest: AmountParts;
32
+ paymentForFollowingMonth: AmountParts;
33
+ totalAmountDue: AmountParts;
34
+ }
35
+ export interface VA16EditableValues extends VA16EditableAmounts {
36
+ signature: string;
37
+ signatureDate: string;
38
+ phoneNumber: string;
39
+ }
40
+ interface VA16FormProps {
41
+ data: VA16BoundData;
42
+ /** Starting entries — anything omitted starts blank. */
43
+ initialValues?: Partial<VA16EditableValues>;
44
+ /** Fires on every keystroke with the complete set of entries. */
45
+ onValuesChange?: (values: VA16EditableValues) => void;
46
+ /** Leaves the return. Omit to hide the Back button. */
47
+ onBack?: () => void;
48
+ /** Offered only once the return is in edit mode. */
49
+ onSubmit?: (values: VA16EditableValues) => void;
50
+ isSubmitting?: boolean;
51
+ }
52
+ export declare function VA16Form({ data, initialValues, onValuesChange, onBack, onSubmit, isSubmitting, }: VA16FormProps): import("react").JSX.Element;
53
+ export {};
@@ -0,0 +1,2 @@
1
+ import { VA16BoundData } from './VA16Form';
2
+ export declare const VA16_TEMPORARY_BOUND_DATA: VA16BoundData;
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ interface SideDrawerProps {
3
+ open: boolean;
4
+ title: string;
5
+ onClose: () => void;
6
+ children: ReactNode;
7
+ /** Pinned to the bottom of the panel — action buttons live here. */
8
+ footer?: ReactNode;
9
+ labelledById?: string;
10
+ /** Turn off while another drawer is stacked on top, so Escape closes that one only. */
11
+ closeOnEscape?: boolean;
12
+ }
13
+ /**
14
+ * Right-hand slide-over panel. Same overlay/escape/scroll-lock behaviour as
15
+ * the centred modals, but anchored to the edge and full height.
16
+ */
17
+ export declare function SideDrawer({ open, title, onClose, children, footer, labelledById, closeOnEscape, }: SideDrawerProps): import('react').ReactPortal | null;
18
+ export {};
@@ -0,0 +1,10 @@
1
+ interface StatusPillProps {
2
+ active: boolean;
3
+ /** `outline` matches the tax accounts table; `filled` the bank account cards. */
4
+ variant?: 'filled' | 'outline';
5
+ activeLabel?: string;
6
+ inactiveLabel?: string;
7
+ }
8
+ /** Small dot + label pill for Active / Inactive state. */
9
+ export declare function StatusPill({ active, variant, activeLabel, inactiveLabel, }: StatusPillProps): import("react").JSX.Element;
10
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  interface ToastContextValue {
3
- showSuccess: (title: string, message: string) => void;
4
- showError: (title: string, message: string) => void;
3
+ showSuccess: (title: string, message?: string) => void;
4
+ showError: (title: string, message?: string) => void;
5
5
  }
6
6
  export declare function ToastProvider({ children }: {
7
7
  children: ReactNode;
@@ -11,13 +11,16 @@ interface EmbeddedContextValue {
11
11
  refetchEntities: () => Promise<void>;
12
12
  enabledPayments: PaymentType[];
13
13
  onPaymentRequired?: (info: PaymentRequiredInfo) => void;
14
+ /** Display name of the signed-in user, read from the access token. */
15
+ userName?: string;
14
16
  }
15
17
  interface EmbeddedContextProviderProps {
16
18
  onOrganizationCreated?: (org: EntityDetailsResponse) => void;
17
19
  enabledPayments?: PaymentType[];
18
20
  onPaymentRequired?: (info: PaymentRequiredInfo) => void;
21
+ userName?: string;
19
22
  children: ReactNode;
20
23
  }
21
- export declare function EmbeddedContextProvider({ onOrganizationCreated, enabledPayments, onPaymentRequired, children, }: EmbeddedContextProviderProps): import("react").JSX.Element;
24
+ export declare function EmbeddedContextProvider({ onOrganizationCreated, enabledPayments, onPaymentRequired, userName, children, }: EmbeddedContextProviderProps): import("react").JSX.Element;
22
25
  export declare function useEmbeddedContext(): EmbeddedContextValue;
23
26
  export {};
@@ -17,6 +17,8 @@ export interface EmbeddedWidgetBaseProps {
17
17
  selectEntityFnRef: MutableRefObject<((id: number) => void) | null>;
18
18
  /** Payment types this widget instance supports. Controls which dashboard action cards appear. */
19
19
  enabledPayments?: PaymentType[];
20
+ /** Display name of the signed-in user, used to greet them on the dashboard. */
21
+ userName?: string;
20
22
  /** The <Routes> subtree specific to this widget. */
21
23
  children: ReactNode;
22
24
  }
@@ -30,4 +32,4 @@ export interface EmbeddedWidgetBaseProps {
30
32
  *
31
33
  * Children should be a <Routes> element with the widget-specific route tree.
32
34
  */
33
- export declare function EmbeddedWidgetBase({ appKey, accessToken, apiBaseUrl, theme, onSessionExpired, onOrganizationCreated, onNavigate, onPaymentRequired, navigateFnRef, selectEntityFnRef, enabledPayments, children, }: EmbeddedWidgetBaseProps): import("react").JSX.Element;
35
+ export declare function EmbeddedWidgetBase({ appKey, accessToken, apiBaseUrl, theme, onSessionExpired, onOrganizationCreated, onNavigate, onPaymentRequired, navigateFnRef, selectEntityFnRef, enabledPayments, userName, children, }: EmbeddedWidgetBaseProps): import("react").JSX.Element;
@@ -56,6 +56,12 @@ export interface TaxRemittanceEmbeddedProps {
56
56
  apiBaseUrl: string;
57
57
  /** Optional visual theme overrides. */
58
58
  theme?: TaxRemittanceTheme;
59
+ /**
60
+ * Optional override for the dashboard greeting ("Welcome, Jane!").
61
+ * By default the widget reads the name from the access token's claims,
62
+ * so hosts don't need to pass this.
63
+ */
64
+ userName?: string;
59
65
  /**
60
66
  * Called when the user's session expires (401/403 from the API).
61
67
  * Use this to redirect to your own login page.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Full-page Edit Entity screen — the same shell as the Add Entity page
3
+ * (EmbeddedEntityFormPage), so both flows read identically.
4
+ * Top-left Back returns to the entity list (or state.from).
5
+ */
6
+ export declare function EmbeddedEntityEditPage(): import("react").JSX.Element;