@tesouro/embedded-components-react 0.4.25 → 0.4.27
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/dist/experimental/RemoteCheckCapture.d.ts +741 -0
- package/dist/experimental/RemoteCheckCapture.js +3 -0
- package/dist/experimental/index.d.ts +740 -1
- package/dist/experimental/index.js +3 -0
- package/dist/index.css +3 -0
- package/dist/index.d.ts +75 -1
- package/dist/index.js +38 -38
- package/dist/lib/WidgetProvider.d.ts +22 -1
- package/dist/lib/WidgetProvider.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +53 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +55 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/index.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js +81 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/permissions.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/testIds.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +270 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/analytics/events.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index10.js +70 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index2.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index3.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index4.js +244 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index5.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index6.js +156 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index7.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index8.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index9.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +190 -183
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +156 -144
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2219 -2220
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/transportInterceptors.js +16 -3
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatMoneyExact.js +6 -6
- 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(),
|
|
9
|
-
|
|
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
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -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.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.4.27", n = "608157a917054a10a2776fb4ed62fc37d67cebdf", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatMoneyExact.js
CHANGED
|
@@ -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
|
|
13
|
-
minimumFractionDigits: Math.max(2,
|
|
14
|
-
maximumFractionDigits: Math.max(2,
|
|
15
|
-
}).format(
|
|
16
|
-
return (t < 0 ? `${
|
|
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 };
|