@tesouro/embedded-components-react 0.4.26 → 0.4.28

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 (40) hide show
  1. package/dist/experimental/RemoteCheckCapture.d.ts +741 -0
  2. package/dist/experimental/RemoteCheckCapture.js +3 -0
  3. package/dist/experimental/index.d.ts +740 -1
  4. package/dist/experimental/index.js +3 -0
  5. package/dist/index.css +3 -0
  6. package/dist/index.d.ts +75 -1
  7. package/dist/index.js +38 -38
  8. package/dist/lib/WidgetProvider.d.ts +22 -1
  9. package/dist/lib/WidgetProvider.js +3 -3
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +3 -1
  12. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index.js +4 -0
  13. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +28 -0
  14. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +53 -0
  15. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +55 -0
  16. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +60 -0
  17. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/index.js +2 -0
  18. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js +81 -0
  19. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/permissions.js +15 -0
  20. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/testIds.js +32 -0
  21. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +270 -0
  22. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/analytics/events.js +7 -0
  23. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index.js +9 -0
  24. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index10.js +70 -0
  25. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index2.js +20 -0
  26. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index3.js +31 -0
  27. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index4.js +244 -0
  28. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index5.js +11 -0
  29. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index6.js +156 -0
  30. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index7.js +22 -0
  31. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index8.js +159 -0
  32. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index9.js +11 -0
  33. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +25 -25
  35. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +190 -183
  36. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +156 -144
  37. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/transportInterceptors.js +16 -3
  38. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  39. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatMoneyExact.js +6 -6
  40. package/package.json +1 -1
@@ -1,12 +1,25 @@
1
1
  import { isWidgetGatewayHost as e } from "./widgetGatewayHosts.js";
2
2
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/transportInterceptors.js
3
3
  function t(t, { tokenRef: n, gatewayRouting: r }) {
4
- return t.interceptors.request.use((e) => (e.headers.has("X-Client-Secret") ? (e.headers.delete("Authorization"), n.current && e.headers.set("X-Widget-Token", n.current)) : n.current && e.headers.set("Authorization", `Bearer ${n.current}`), e)), r !== !1 && t.interceptors.request.use((t) => {
4
+ return t.interceptors.request.use((e) => (e.headers.has("X-Client-Secret") ? (e.headers.delete("Authorization"), n.current && e.headers.set("X-Widget-Token", n.current)) : n.current && e.headers.set("Authorization", `Bearer ${n.current}`), e)), r !== !1 && t.interceptors.request.use(async (t) => {
5
5
  let i = new URL(t.url);
6
6
  if (i.pathname.startsWith("/api/widget-gateway") || !(r ?? e(i.origin))) return t;
7
7
  i.pathname = "/api/widget-gateway/proxy" + i.pathname;
8
- let a = new Request(i.toString(), t);
9
- return n.current && a.headers.set("X-Widget-Token", n.current), a;
8
+ let a = t.body ? await t.clone().arrayBuffer() : void 0, o = new Request(i.toString(), {
9
+ method: t.method,
10
+ headers: t.headers,
11
+ body: a,
12
+ credentials: t.credentials,
13
+ cache: t.cache,
14
+ redirect: t.redirect,
15
+ referrer: t.referrer,
16
+ referrerPolicy: t.referrerPolicy,
17
+ integrity: t.integrity,
18
+ keepalive: t.keepalive,
19
+ signal: t.signal,
20
+ mode: t.mode
21
+ });
22
+ return n.current && o.headers.set("X-Widget-Token", n.current), o;
10
23
  }), t;
11
24
  }
12
25
  //#endregion
@@ -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.4.26", n = "60ffb54e5a1ba4716173396e50e183cb8d4450e6", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.4.28", n = "da2c27e5e97cf43cb2670118998c837a3467a1fb", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -8,12 +8,12 @@ function e(e) {
8
8
  function t(t) {
9
9
  return e(t);
10
10
  }
11
- function n(t, { currencyCode: n, isStackAlign: r, locale: i = "en-US", includeSpaceAfterCurrencySymbol: a = !0 } = {}) {
12
- let o = n ? e(n) : "$", s = Math.abs(t), c = s.toString().split(".")[1]?.length || 0, l = new Intl.NumberFormat(i, {
13
- minimumFractionDigits: Math.max(2, c),
14
- maximumFractionDigits: Math.max(2, c)
15
- }).format(s), u = r && t >= 0 ? ` ${l} ` : l, d = a ? " " : "";
16
- return (t < 0 ? `${o}${d}(${u})` : `${o}${d}${u}`).trim();
11
+ function n(t, { currencyCode: n, isStackAlign: r, locale: i = "en-US", includeSpaceAfterCurrencySymbol: a = !0, minimumFractionDigits: o, maximumFractionDigits: s } = {}) {
12
+ let c = n ? e(n) : "$", l = Math.abs(t), u = l.toString().split(".")[1]?.length || 0, d = new Intl.NumberFormat(i, {
13
+ minimumFractionDigits: o ?? Math.max(2, u),
14
+ maximumFractionDigits: s ?? Math.max(2, u)
15
+ }).format(l), f = r && t >= 0 ? ` ${d} ` : d, p = a ? " " : "";
16
+ return (t < 0 ? `${c}${p}(${f})` : `${c}${p}${f}`).trim();
17
17
  }
18
18
  //#endregion
19
19
  export { t as currencySymbolForCode, n as formatMoneyExact };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.4.26",
3
+ "version": "0.4.28",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {