@tesouro/embedded-components-react 0.7.11 → 0.7.12

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 (39) hide show
  1. package/README.md +6 -8
  2. package/dist/index.d.ts +15 -193
  3. package/dist/index.js +1 -1
  4. package/dist/lib/BillPayWidget.d.ts +10 -188
  5. package/dist/lib/BillPayWidget.js +1 -1
  6. package/dist/lib/CounterpartsWidget.d.ts +1 -1
  7. package/dist/lib/CounterpartsWidgetPublic.d.ts +1 -1
  8. package/dist/lib/CustomersWidget.d.ts +1 -2
  9. package/dist/lib/WidgetSuite.d.ts +4 -4
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +2 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative/BillPayWidgetNative.js → BillPayWidget/BillPayWidget.js} +4 -3
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative → BillPayWidget}/BillsTab.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/index.js +1 -0
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative → BillPayWidget}/labels.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative → BillPayWidget}/testIds.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidgetMonite/CustomersWidgetMonite.js +7 -7
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +53 -53
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +23 -23
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +74 -74
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +30 -30
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +28 -28
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +6 -6
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +13 -13
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +9 -9
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +6 -6
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +57 -57
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +6 -6
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +3 -3
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +3 -3
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +6 -6
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +29 -29
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +24 -24
  33. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/BillPaySection.js +7 -11
  35. package/package.json +1 -1
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget.js +0 -27
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetMonite/BillPayWidgetMonite.js +0 -46
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetMonite/index.js +0 -1
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/index.js +0 -1
@@ -4,58 +4,58 @@ import { CounterpartBankFormContent as n } from "./index91.js";
4
4
  import { CounterpartBankForm as r } from "./index96.js";
5
5
  import { useState as i } from "react";
6
6
  import { Landmark as a, Plus as o } from "lucide-react";
7
- import { Fragment as s, jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
8
- import { useLingui as u } from "@lingui/react";
9
- import { twMerge as d } from "tailwind-merge";
7
+ import { twMerge as s } from "tailwind-merge";
8
+ import { Fragment as c, jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
9
+ import { useLingui as d } from "@lingui/react";
10
10
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js
11
11
  var f = ({ isStandalone: f, counterpartId: p, bankAccount: m, isUpdateAllowed: h, isDeleteAllowed: g, onRemoveClick: _, isLoading: v }) => {
12
- let { i18n: y } = u(), [b, x] = i(!1), S = !!m, C = S && (!m?.account_holder_name || !m?.account_number || !m?.routing_number), w = () => {
12
+ let { i18n: y } = d(), [b, x] = i(!1), S = !!m, C = S && (!m?.account_holder_name || !m?.account_number || !m?.routing_number), w = () => {
13
13
  x(!1);
14
14
  };
15
- return b ? /* @__PURE__ */ c(s, { children: f && p ? /* @__PURE__ */ c(s, { children: m ? /* @__PURE__ */ c(r, {
15
+ return b ? /* @__PURE__ */ l(c, { children: f && p ? /* @__PURE__ */ l(c, { children: m ? /* @__PURE__ */ l(r, {
16
16
  bankAccount: m,
17
17
  handleClose: w,
18
18
  counterpartId: p,
19
19
  onUpdate: w,
20
20
  isStandalone: !0
21
- }) : /* @__PURE__ */ c(r, {
21
+ }) : /* @__PURE__ */ l(r, {
22
22
  handleClose: w,
23
23
  counterpartId: p,
24
24
  onCreate: w,
25
25
  isStandalone: !0
26
- }) }) : /* @__PURE__ */ c(n, {
26
+ }) }) : /* @__PURE__ */ l(n, {
27
27
  hasExistingBankAccount: !1,
28
28
  handleCancel: w,
29
29
  isLoading: v,
30
30
  isStandalone: !1
31
- }) }) : /* @__PURE__ */ l("div", {
32
- className: d("ttw:flex ttw:items-start ttw:gap-3 ttw:p-3 ttw:rounded-lg ttw:border ttw:border-border", C ? "ttw:border-danger" : "ttw:border-border"),
33
- children: [/* @__PURE__ */ c("div", {
31
+ }) }) : /* @__PURE__ */ u("div", {
32
+ className: s("ttw:flex ttw:items-start ttw:gap-3 ttw:p-3 ttw:rounded-lg ttw:border ttw:border-border", C ? "ttw:border-danger" : "ttw:border-border"),
33
+ children: [/* @__PURE__ */ l("div", {
34
34
  className: "ttw:p-2 ttw:text-white ttw:flex ttw:items-center ttw:justify-center ttw:bg-primary ttw:rounded-lg",
35
- children: /* @__PURE__ */ c(a, { className: "ttw:size-4" })
36
- }), S ? /* @__PURE__ */ l("div", {
35
+ children: /* @__PURE__ */ l(a, { className: "ttw:size-4" })
36
+ }), S ? /* @__PURE__ */ u("div", {
37
37
  className: "ttw:flex ttw:items-center ttw:flex-1 ttw:gap-0.5",
38
- children: [/* @__PURE__ */ l("div", {
38
+ children: [/* @__PURE__ */ u("div", {
39
39
  className: "ttw:flex ttw:flex-col ttw:gap-0.5 ttw:flex-1",
40
- children: [/* @__PURE__ */ c(t, {
40
+ children: [/* @__PURE__ */ l(t, {
41
41
  variant: "body2",
42
42
  className: "ttw:leading-5",
43
43
  children: y._("ACH bank transfer")
44
- }), /* @__PURE__ */ c(t, {
44
+ }), /* @__PURE__ */ l(t, {
45
45
  variant: "caption",
46
46
  color: C ? "destructive" : "muted",
47
47
  className: "ttw:leading-4",
48
48
  children: C ? y._("Incomplete") : y._("Account ending in {last4}", { last4: m?.account_number?.slice(m.account_number?.length - 4) })
49
49
  })]
50
- }), (h || g) && /* @__PURE__ */ l("div", {
50
+ }), (h || g) && /* @__PURE__ */ u("div", {
51
51
  className: "ttw:flex ttw:gap-3 ttw:items-center",
52
- children: [h && /* @__PURE__ */ c(e, {
52
+ children: [h && /* @__PURE__ */ l(e, {
53
53
  type: "button",
54
54
  variant: "ghost",
55
55
  className: "ttw:text-primary ttw:p-0 ttw:hover:text-primary ttw:hover:underline ttw:w-fit ttw:hover:bg-transparent",
56
56
  onClick: () => x(!0),
57
57
  children: y._("Edit")
58
- }), g && /* @__PURE__ */ c(e, {
58
+ }), g && /* @__PURE__ */ l(e, {
59
59
  type: "button",
60
60
  variant: "ghost",
61
61
  className: "ttw:text-primary ttw:p-0 ttw:hover:text-primary ttw:hover:underline ttw:w-fit ttw:hover:bg-transparent",
@@ -63,27 +63,27 @@ var f = ({ isStandalone: f, counterpartId: p, bankAccount: m, isUpdateAllowed: h
63
63
  children: y._("Remove")
64
64
  })]
65
65
  })]
66
- }) : /* @__PURE__ */ l("div", {
66
+ }) : /* @__PURE__ */ u("div", {
67
67
  className: "ttw:flex ttw:flex-col ttw:gap-0.5",
68
- children: [/* @__PURE__ */ l("div", {
68
+ children: [/* @__PURE__ */ u("div", {
69
69
  className: "ttw:flex ttw:flex-col ttw:gap-0.5",
70
- children: [/* @__PURE__ */ c(t, {
70
+ children: [/* @__PURE__ */ l(t, {
71
71
  variant: "body2",
72
72
  className: "ttw:leading-5",
73
73
  children: y._("ACH bank transfer")
74
- }), /* @__PURE__ */ c(t, {
74
+ }), /* @__PURE__ */ l(t, {
75
75
  variant: "caption",
76
76
  color: "muted",
77
77
  className: "ttw:leading-4",
78
78
  children: y._("Fast, direct deposit to the vendor's bank. Arrives in 1–3 business days.")
79
79
  })]
80
- }), /* @__PURE__ */ l(e, {
80
+ }), /* @__PURE__ */ u(e, {
81
81
  type: "button",
82
82
  variant: "ghost",
83
83
  className: "ttw:text-primary ttw:hover:text-primary/70 ttw:w-fit ttw:px-0 ttw:has-[>svg]:px-0 ttw:py-2 ttw:hover:bg-transparent",
84
84
  onClick: () => x(!0),
85
85
  disabled: v,
86
- children: [/* @__PURE__ */ c(o, {}), y._("Add bank account")]
86
+ children: [/* @__PURE__ */ l(o, {}), y._("Add bank account")]
87
87
  })]
88
88
  })]
89
89
  });
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.7.11", n = "1bf3d10579510db98a0e3225d92c1849c8bf5210", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.7.12", n = "736fe4760d0ee84b8ed051043ee6e0fd028bbd0d", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -4,20 +4,16 @@
4
4
  "use client";
5
5
  import { Scope as e } from "../../../../../../shared/data-access/dist/lib/scopes.js";
6
6
  import "../../../../../../shared/data-access/dist/index.js";
7
- import { Implementation as t } from "../../../../../../shared/feature/dist/lib/WidgetProvider/types.js";
8
- import { useWidgetConfig as n } from "../../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
9
- import "../../../../../../shared/feature/dist/index.js";
10
- import { BillPayWidget as r } from "../../../../../../bill-pay-widget/feature/dist/lib/BillPayWidget.js";
7
+ import { BillPayWidget as t } from "../../../../../../bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js";
11
8
  import "../../../../../../bill-pay-widget/feature/dist/index.js";
12
- import { jsx as i } from "react/jsx-runtime";
9
+ import { jsx as n } from "react/jsx-runtime";
13
10
  //#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/BillPaySection.js
14
- function a() {
15
- let { implementation: e } = n();
16
- return /* @__PURE__ */ i(r, { implementation: e ?? t.Native });
11
+ function r() {
12
+ return /* @__PURE__ */ n(t, {});
17
13
  }
18
- var o = {
14
+ var i = {
19
15
  anyOfScopes: [e.PayableReadOrg],
20
- Content: a
16
+ Content: r
21
17
  };
22
18
  //#endregion
23
- export { a as BillPaySection, o as billPaySection };
19
+ export { r as BillPaySection, i as billPaySection };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.7.11",
3
+ "version": "0.7.12",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -1,27 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { Implementation as e } from "../../../../shared/feature/dist/lib/WidgetProvider/types.js";
6
- import { useWidgetConfig as t } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
7
- import "../../../../shared/feature/dist/index.js";
8
- import { BillPayWidgetMonite as n } from "./BillPayWidgetMonite/BillPayWidgetMonite.js";
9
- import "./BillPayWidgetMonite/index.js";
10
- import { BillPayWidgetNative as r } from "./BillPayWidgetNative/BillPayWidgetNative.js";
11
- import "./BillPayWidgetNative/index.js";
12
- import { jsx as i } from "react/jsx-runtime";
13
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget.js
14
- function a({ implementation: a, initialTab: o, onSettingsClick: s, ...c }) {
15
- let l = t().implementation, u = a ?? l ?? e.Monite;
16
- return u === e.Native ? /* @__PURE__ */ i(r, {
17
- implementation: u,
18
- initialTab: o,
19
- onSettingsClick: s,
20
- ...c
21
- }) : /* @__PURE__ */ i(n, {
22
- implementation: u,
23
- ...c
24
- });
25
- }
26
- //#endregion
27
- export { a as BillPayWidget, a as default };
@@ -1,46 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { useAnalyticsTrack as e } from "../../../../../shared/feature/dist/lib/analytics/hooks.js";
6
- import "../../../../../shared/feature/dist/index.js";
7
- import { BillPayWidgetAnalyticsEvent as t, WIDGET_NAME as n } from "../analytics/events.js";
8
- import { Payables as r } from "../../../../../monite-sdk/dist/index347.js";
9
- import "../../../../../monite-sdk/dist/index.js";
10
- import { MoniteRegionProvider as i } from "../../../../../shared/monite-wrapper/feature/dist/lib/MoniteRegionProvider.js";
11
- import "../../../../../shared/monite-wrapper/feature/dist/index.js";
12
- import { useEffect as a } from "react";
13
- import { jsx as o } from "react/jsx-runtime";
14
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetMonite/BillPayWidgetMonite.js
15
- var s = (e) => e;
16
- function c(n) {
17
- let i = e();
18
- return a(() => {
19
- i(t.Mounted);
20
- }, [i]), /* @__PURE__ */ o(r, { ...n });
21
- }
22
- function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, providerLabels: v, pageTitleComponent: y = s, ...b }) {
23
- return /* @__PURE__ */ o(i, {
24
- widgetName: n,
25
- baseUrl: e,
26
- widgetToken: t,
27
- organizationId: r,
28
- configClient: a,
29
- gatewayRouting: l,
30
- linkComponent: u,
31
- implementation: d,
32
- uiFramework: f,
33
- errorFallback: p,
34
- onError: m,
35
- finopsThemeColors: h,
36
- analytics: g,
37
- disclosuresAcceptance: _,
38
- providerLabels: v,
39
- children: /* @__PURE__ */ o(c, {
40
- ...b,
41
- pageTitleComponent: y
42
- })
43
- });
44
- }
45
- //#endregion
46
- export { l as BillPayWidgetMonite, l as default };