@tesouro/embedded-components-react 0.5.33 → 0.5.34
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 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +1 -1
- package/dist/lib/BankAccountOnboardingWidget.d.ts +17 -1
- package/dist/lib/BankAccountOnboardingWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +48 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +96 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +26 -320
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index19.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index20.js +387 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +162 -154
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -8,23 +8,23 @@ import { withAuthEpoch as n } from "./withAuthEpoch.js";
|
|
|
8
8
|
import { OnboardingSuppressionReason as r } from "./onboardingSuppressionReason.js";
|
|
9
9
|
import { useQuery as i } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js
|
|
11
|
-
var a = "COMPLETE", o = "BANK_ACCOUNT", s = "STARTED_BY_OTHER"
|
|
12
|
-
function
|
|
11
|
+
var a = "COMPLETE", o = "BANK_ACCOUNT", s = "STARTED_BY_OTHER";
|
|
12
|
+
function c(e) {
|
|
13
13
|
let t = e.filter((e) => e.product === o);
|
|
14
14
|
return t.some((e) => e.status === a) ? r.OrganizationApplicationComplete : t.some((e) => e.ownership === s) ? r.OrganizationApplicationStartedByOther : null;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
let { client: r, widgetToken: a, authEpoch: o } = e(), s = !!a,
|
|
16
|
+
function l() {
|
|
17
|
+
let { client: r, widgetToken: a, authEpoch: o } = e(), s = !!a, l = i({
|
|
18
18
|
...n(t({ client: r }), o),
|
|
19
19
|
enabled: s,
|
|
20
|
-
retry:
|
|
21
|
-
retryDelay:
|
|
22
|
-
}),
|
|
20
|
+
retry: 2,
|
|
21
|
+
retryDelay: 300
|
|
22
|
+
}), u = l.data ? c(l.data.applications) : null;
|
|
23
23
|
return {
|
|
24
|
-
isSuppressed:
|
|
25
|
-
reason:
|
|
26
|
-
isResolved: !s ||
|
|
24
|
+
isSuppressed: u !== null,
|
|
25
|
+
reason: u,
|
|
26
|
+
isResolved: !s || l.isSuccess || l.isError
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
|
-
export {
|
|
30
|
+
export { l as useOrganizationOnboardingSuppression };
|
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.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.34", n = "856b01025fd0ffad80d2f73a02d8646d5f1185a2", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|