@tesouro/embedded-components-react 0.3.62 → 0.4.0
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/README.md +1 -70
- package/dist/index.d.ts +67 -832
- package/dist/index.js +17 -33
- package/dist/lib/SettingsWidget.d.ts +53 -7
- package/dist/lib/SettingsWidget.js +4 -2
- package/dist/lib/WidgetSuite.d.ts +38 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/help-widget/ui/shadcn/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/help-widget/ui/shadcn/dist/index4.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +35 -32
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2325 -2315
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/lib/ChartOfAccountsWidget.d.ts +0 -958
- package/dist/lib/ChartOfAccountsWidget.js +0 -9
- package/dist/lib/HelpWidget.d.ts +0 -739
- package/dist/lib/HelpWidget.js +0 -6
- package/dist/lib/ProfileWidget.d.ts +0 -672
- package/dist/lib/ProfileWidget.js +0 -3
- package/dist/lib/TagsWidget.d.ts +0 -719
- package/dist/lib/TagsWidget.js +0 -3
- package/dist/lib/TeamWidget.d.ts +0 -878
- package/dist/lib/TeamWidget.js +0 -3
package/README.md
CHANGED
|
@@ -408,38 +408,6 @@ A self-contained widget that derives onboarding-style insights from embedded and
|
|
|
408
408
|
| `singleInsightLabels` | `Partial<SingleInsightLabels>` | — | Per-row UI strings (e.g. dismiss aria label). |
|
|
409
409
|
| `featureLabels` | `Partial<InsightsFeatureLabels>` | — | Generated insight body copy and action labels. |
|
|
410
410
|
|
|
411
|
-
### ChartOfAccountsWidget
|
|
412
|
-
|
|
413
|
-
A self-contained widget that renders an organization's chart of accounts: a paginated, sortable table of ledger accounts with built-in create, edit, and delete. It handles its own API communication, loading and error states, server-side sorting, and cursor-based pagination. The host application only needs to supply auth credentials and optional UI callbacks.
|
|
414
|
-
|
|
415
|
-
#### Props
|
|
416
|
-
|
|
417
|
-
| Prop | Type | Description |
|
|
418
|
-
| ---------- | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
|
|
419
|
-
| `onEdit` | `(row: LedgerAccountRow) => void` | Overrides the built-in edit flow. Not offered on externally-synced rows (`is_external`), which the API refuses to update. |
|
|
420
|
-
| `onDelete` | `(row: LedgerAccountRow) => void` | Overrides the built-in delete flow. Not offered on externally-synced rows (`is_external`), which the API refuses to delete. |
|
|
421
|
-
| `onAdd` | `() => void` | Overrides the built-in create flow. Omit it to use the widget's own create sheet. |
|
|
422
|
-
|
|
423
|
-
| Prop | Type | Covers |
|
|
424
|
-
| --------------- | --------------------------------------- | -------------------------------------------------------------------------------------------- |
|
|
425
|
-
| `screenLabels` | `Partial<ChartOfAccountsLabels>` | Table copy: explanatory line, column headers, row actions, sort control, empty/error states. |
|
|
426
|
-
| `formLabels` | `Partial<AccountFormSheetLabels>` | Create/edit sheet: titles, field labels, placeholders, counter, buttons, menu. |
|
|
427
|
-
| `deleteLabels` | `Partial<AccountDeleteDialogLabels>` | Delete confirmation: title, message, buttons. |
|
|
428
|
-
| `messageLabels` | `Partial<ChartOfAccountsMessageLabels>` | Validation messages, save/delete failure fallbacks, and success toasts. |
|
|
429
|
-
|
|
430
|
-
### HelpWidget
|
|
431
|
-
|
|
432
|
-
A self-contained Help widget: a static FAQ accordion with an optional "Contact Us" card. It renders no network requests — all content comes from props, defaulting to the built-in English FAQ so the widget works with no configuration.
|
|
433
|
-
|
|
434
|
-
#### Props
|
|
435
|
-
|
|
436
|
-
| Prop | Type | Default | Description |
|
|
437
|
-
| ------------ | --------------------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
438
|
-
| `faq` | `HelpFaqSection[]` | `HELP_FAQ_EN` | FAQ content to render, grouped into titled sections. |
|
|
439
|
-
| `bankName` | `string` | `initResponse.bankName` | Bank/provider name interpolated into the contact line. Defaults to the bank resolved by widget init; pass this only to override it. |
|
|
440
|
-
| `contactUrl` | `string` | `undefined` | When set, renders a "Contact Us" card linking here. Omit to hide it. The card also needs a bank name, so it appears once widget init resolves. |
|
|
441
|
-
| `labels` | `Partial<HelpWidgetLabels>` | `HELP_WIDGET_LABELS_EN` | Display-string overrides, merged over `HELP_WIDGET_LABELS_EN` (FAQ + contact copy). |
|
|
442
|
-
|
|
443
411
|
### InvoicingWidget
|
|
444
412
|
|
|
445
413
|
A self-contained invoicing widget that renders the Monite SDK receivables experience (invoices, quotes, and credit notes) against your widget auth — the host only supplies credentials and optional theming.
|
|
@@ -501,18 +469,6 @@ A self-contained widget for managing an organization's products and services: it
|
|
|
501
469
|
| `measureUnitDeleteLabels` | `Partial<MeasureUnitDeleteDialogLabels>` | Measure-unit delete confirmation copy. |
|
|
502
470
|
| `messageLabels` | `Partial<ProductMessageLabels>` | Validation / error messages produced by the widget. |
|
|
503
471
|
|
|
504
|
-
### ProfileWidget
|
|
505
|
-
|
|
506
|
-
A self-contained, read-only profile card for the current entity user. It shows a personal tab (name, email, phone) and a business tab (legal name, company address, company phone, company email) backed by the embedded REST API.
|
|
507
|
-
|
|
508
|
-
#### Props
|
|
509
|
-
|
|
510
|
-
| Prop | Type | Description |
|
|
511
|
-
| --------------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
512
|
-
| `labels` | `Partial<Labels>` | Overrides the card's own copy (loading announcement, contact line). |
|
|
513
|
-
| `featureLabels` | `Partial<FeatureLabels>` | Overrides tab labels, field labels, and the subtitle. |
|
|
514
|
-
| `contactUrl` | `string` | Where the "to change this information, contact your bank" line links (a support page URL or a `mailto:`). Left unset, the card shows the plain unlinked subtitle instead. The bank name in that line comes from widget init, so no other value is needed. |
|
|
515
|
-
|
|
516
472
|
### ReceivablesWidget
|
|
517
473
|
|
|
518
474
|
A self-contained native widget for listing, creating, editing, and acting on customer receivables.
|
|
@@ -582,35 +538,10 @@ A composite settings widget that combines Monite document settings, tags, GL cod
|
|
|
582
538
|
| `onSelectedSectionChange` | `(section: SettingsWidgetSectionId) => void` | `undefined` | Called with the id of the section the user selected. Fires whether or not `selectedSection` is supplied, so a host can mirror the selection into its URL without taking ownership of it. |
|
|
583
539
|
| `additionalSections` | `SettingsWidgetAdditionalSection[]` | `undefined` | Host-owned sections rendered alongside the built-in ones. Each is `{ id, label, content }` plus an optional `after` naming the built-in section to place it behind. Unlike the built-ins, these are not scope-gated. |
|
|
584
540
|
| `helpContactUrl` | `string` | `undefined` | Forwarded to the Help section's widget — where its "Contact Us" line links (a support page URL or a `mailto:`). The line is hidden while unset, since the package has no tenant-agnostic support address to fall back on; the bank name in that line comes from widget init. |
|
|
541
|
+
| `helpFaq` | `HelpFaqSection[]` | `HELP_FAQ_EN` | Forwarded to the Help section: the FAQ it renders. Extend the exported `HELP_FAQ_EN` and pass the result to answer questions the package cannot (passwords, for example) without replacing the whole section. |
|
|
585
542
|
| `helpContent` | `ReactNode` | Help widget | Replaces the help section content. |
|
|
586
543
|
| `finopsThemeColors` | `FinopsThemeColors` | `undefined` | Optional Monite theme color overrides. |
|
|
587
544
|
|
|
588
|
-
### TagsWidget
|
|
589
|
-
|
|
590
|
-
A self-contained widget for managing an organization's tags: it lists tags in a sortable, cursor-paginated table and handles creating, editing, and deleting them — including each tag's OCR auto-tagging keywords. The host only supplies auth credentials and optional label overrides.
|
|
591
|
-
|
|
592
|
-
#### Props
|
|
593
|
-
|
|
594
|
-
| Prop | Type | Default | Description |
|
|
595
|
-
| ----------------- | -------------------------------- | ------------------- | ------------------------------------------------------------------------- |
|
|
596
|
-
| `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Choices in the rows-per-page selector. |
|
|
597
|
-
| `screenLabels` | `Partial<TagsScreenLabels>` | `undefined` | Override table/header/empty/error copy. Merged over the English defaults. |
|
|
598
|
-
| `formLabels` | `Partial<TagFormSheetLabels>` | `undefined` | Override create/edit form copy. |
|
|
599
|
-
| `deleteLabels` | `Partial<TagDeleteDialogLabels>` | `undefined` | Override delete-confirmation copy. |
|
|
600
|
-
| `messageLabels` | `Partial<TagMessageLabels>` | `undefined` | Override validation / submit-error messages. |
|
|
601
|
-
|
|
602
|
-
### TeamWidget
|
|
603
|
-
|
|
604
|
-
A self-contained team management surface for embedded integrators. It lists organization members in a paginated table and, when the widget token carries the appropriate write scopes, enables inviting new members, editing a member's name and role, and deactivating a member.
|
|
605
|
-
|
|
606
|
-
#### Props
|
|
607
|
-
|
|
608
|
-
| Prop | Type | Description |
|
|
609
|
-
| ------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
610
|
-
| `labels` | `Partial<TeamWidgetLabels>` | Overrides table, detail, invite, edit, and dialog UI copy. |
|
|
611
|
-
| `featureLabels` | `Partial<TeamWidgetFeatureLabels>` | Overrides role display names, validation messages, and deactivate confirmation copy. |
|
|
612
|
-
| `acceptInviteRedirectUri` | `string` | Allowlisted URL invite/resend emails link to. Defaults to `${window.location.origin}/accept-invite`; set it when the host app's registered landing route differs from the widget's same-origin default, or the origin is not on the OIDC redirect-URI allowlist (preview/localhost). |
|
|
613
|
-
|
|
614
545
|
### TransfersWidget
|
|
615
546
|
|
|
616
547
|
A self-contained banking widget for creating book or ACH transfers and reviewing recent movement across embedded accounts.
|