@tesouro/embedded-components-react 0.2.249 → 0.2.253
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 +15 -6
- package/dist/experimental/WidgetSuite.d.ts +649 -25
- package/dist/experimental/WidgetSuite.js +5 -2
- package/dist/experimental/index.d.ts +649 -25
- package/dist/experimental/index.js +5 -2
- package/dist/index.css +22 -2
- package/dist/index.d.ts +35 -14
- package/dist/lib/AcceptDisclosuresWidget.d.ts +35 -14
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/data-access/dist/index2.js +25 -6
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +81 -46
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/index3.js +23 -13
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/{index3.js → lib/AccountCard.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/{index6.js → lib/BankAccountsWidgetUi.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/{index4.js → lib/BankingHeader.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/{index5.js → lib/CreateAccountDialog.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/{index2.js → lib/labels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/index.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/{index3.js → lib/SettingsWidgetUi/SettingsWidgetUi.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/index.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/{index2.js → lib/SettingsWidgetUi/labels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +149 -156
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +54 -42
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +4 -0
- 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/ui/dist/lib/UIContext/UIProvider.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index2.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index3.js +70 -18
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/index4.js +0 -2
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import "./client/index.js";
|
|
2
2
|
import { client as e } from "./client.gen.js";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js
|
|
4
|
-
var t = (t) => (t
|
|
4
|
+
var t = (t) => (t.client ?? e).post({
|
|
5
|
+
security: [{
|
|
6
|
+
key: "HTTPBearer",
|
|
7
|
+
scheme: "bearer",
|
|
8
|
+
type: "http"
|
|
9
|
+
}],
|
|
10
|
+
url: "/api/widget-gateway/disclosure-acceptance",
|
|
11
|
+
...t,
|
|
12
|
+
headers: {
|
|
13
|
+
"Content-Type": "application/json",
|
|
14
|
+
...t.headers
|
|
15
|
+
}
|
|
16
|
+
}), ee = (t) => (t?.client ?? e).get({
|
|
5
17
|
security: [{
|
|
6
18
|
key: "HTTPBearer",
|
|
7
19
|
scheme: "bearer",
|
|
@@ -9,7 +21,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
9
21
|
}],
|
|
10
22
|
url: "/api/widget-gateway/init",
|
|
11
23
|
...t
|
|
12
|
-
}),
|
|
24
|
+
}), te = (t) => (t?.client ?? e).get({
|
|
13
25
|
security: [{
|
|
14
26
|
key: "APPToken",
|
|
15
27
|
scheme: "bearer",
|
|
@@ -17,7 +29,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
17
29
|
}],
|
|
18
30
|
url: "/embedded-banking/v1/application-status",
|
|
19
31
|
...t
|
|
20
|
-
}),
|
|
32
|
+
}), n = (t) => (t.client ?? e).post({
|
|
21
33
|
security: [{
|
|
22
34
|
key: "APPToken",
|
|
23
35
|
scheme: "bearer",
|
|
@@ -29,7 +41,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
29
41
|
"Content-Type": "application/json",
|
|
30
42
|
...t.headers
|
|
31
43
|
}
|
|
32
|
-
}),
|
|
44
|
+
}), r = (t) => (t.client ?? e).patch({
|
|
33
45
|
security: [{
|
|
34
46
|
key: "APPToken",
|
|
35
47
|
scheme: "bearer",
|
|
@@ -41,7 +53,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
41
53
|
"Content-Type": "application/json",
|
|
42
54
|
...t.headers
|
|
43
55
|
}
|
|
44
|
-
}),
|
|
56
|
+
}), i = (t) => (t.client ?? e).post({
|
|
45
57
|
security: [{
|
|
46
58
|
key: "APPToken",
|
|
47
59
|
scheme: "bearer",
|
|
@@ -49,7 +61,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
49
61
|
}],
|
|
50
62
|
url: "/embedded-banking/v1/bank-account-applications/{id}/submission",
|
|
51
63
|
...t
|
|
52
|
-
}),
|
|
64
|
+
}), a = (t) => (t?.client ?? e).get({
|
|
53
65
|
security: [{
|
|
54
66
|
key: "APPToken",
|
|
55
67
|
scheme: "bearer",
|
|
@@ -61,7 +73,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
61
73
|
}],
|
|
62
74
|
url: "/embedded-banking/v1/bank-accounts",
|
|
63
75
|
...t
|
|
64
|
-
}),
|
|
76
|
+
}), o = (t) => (t.client ?? e).post({
|
|
65
77
|
security: [{
|
|
66
78
|
key: "APPToken",
|
|
67
79
|
scheme: "bearer",
|
|
@@ -77,7 +89,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
77
89
|
"Content-Type": "application/json",
|
|
78
90
|
...t.headers
|
|
79
91
|
}
|
|
80
|
-
}),
|
|
92
|
+
}), s = (t) => (t.client ?? e).post({
|
|
81
93
|
security: [{
|
|
82
94
|
key: "APPToken",
|
|
83
95
|
scheme: "bearer",
|
|
@@ -93,7 +105,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
93
105
|
"Content-Type": "application/json",
|
|
94
106
|
...t.headers
|
|
95
107
|
}
|
|
96
|
-
}),
|
|
108
|
+
}), c = (t) => (t.client ?? e).get({
|
|
97
109
|
security: [{
|
|
98
110
|
key: "APPToken",
|
|
99
111
|
scheme: "bearer",
|
|
@@ -105,7 +117,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
105
117
|
}],
|
|
106
118
|
url: "/embedded-banking/v1/bank-accounts/{id}",
|
|
107
119
|
...t
|
|
108
|
-
}),
|
|
120
|
+
}), l = (t) => (t.client ?? e).patch({
|
|
109
121
|
security: [{
|
|
110
122
|
key: "APPToken",
|
|
111
123
|
scheme: "bearer",
|
|
@@ -121,7 +133,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
121
133
|
"Content-Type": "application/json",
|
|
122
134
|
...t.headers
|
|
123
135
|
}
|
|
124
|
-
}),
|
|
136
|
+
}), u = (t) => (t.client ?? e).get({
|
|
125
137
|
security: [{
|
|
126
138
|
key: "APPToken",
|
|
127
139
|
scheme: "bearer",
|
|
@@ -133,7 +145,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
133
145
|
}],
|
|
134
146
|
url: "/embedded-banking/v1/bank-accounts/{id}/access",
|
|
135
147
|
...t
|
|
136
|
-
}),
|
|
148
|
+
}), d = (t) => (t.client ?? e).post({
|
|
137
149
|
security: [{
|
|
138
150
|
key: "APPToken",
|
|
139
151
|
scheme: "bearer",
|
|
@@ -149,7 +161,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
149
161
|
"Content-Type": "application/json",
|
|
150
162
|
...t.headers
|
|
151
163
|
}
|
|
152
|
-
}),
|
|
164
|
+
}), f = (t) => (t.client ?? e).get({
|
|
153
165
|
security: [{
|
|
154
166
|
key: "APPToken",
|
|
155
167
|
scheme: "bearer",
|
|
@@ -161,7 +173,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
161
173
|
}],
|
|
162
174
|
url: "/embedded-banking/v1/bank-accounts/{id}/transactions",
|
|
163
175
|
...t
|
|
164
|
-
}),
|
|
176
|
+
}), p = (t) => (t.client ?? e).get({
|
|
165
177
|
security: [{
|
|
166
178
|
key: "APPToken",
|
|
167
179
|
scheme: "bearer",
|
|
@@ -173,7 +185,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
173
185
|
}],
|
|
174
186
|
url: "/embedded-banking/v1/bank-accounts/{id}/transactions/download",
|
|
175
187
|
...t
|
|
176
|
-
}),
|
|
188
|
+
}), m = (t) => (t.client ?? e).get({
|
|
177
189
|
security: [{
|
|
178
190
|
key: "APPToken",
|
|
179
191
|
scheme: "bearer",
|
|
@@ -185,7 +197,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
185
197
|
}],
|
|
186
198
|
url: "/embedded-banking/v1/bank-accounts/{id}/transfers",
|
|
187
199
|
...t
|
|
188
|
-
}),
|
|
200
|
+
}), h = (t) => (t?.client ?? e).get({
|
|
189
201
|
security: [{
|
|
190
202
|
key: "APPToken",
|
|
191
203
|
scheme: "bearer",
|
|
@@ -197,7 +209,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
197
209
|
}],
|
|
198
210
|
url: "/embedded-banking/v1/credit-cards",
|
|
199
211
|
...t
|
|
200
|
-
}),
|
|
212
|
+
}), g = (t) => (t.client ?? e).get({
|
|
201
213
|
security: [{
|
|
202
214
|
key: "APPToken",
|
|
203
215
|
scheme: "bearer",
|
|
@@ -209,7 +221,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
209
221
|
}],
|
|
210
222
|
url: "/embedded-banking/v1/credit-cards/{cardId}",
|
|
211
223
|
...t
|
|
212
|
-
}),
|
|
224
|
+
}), _ = (t) => (t?.client ?? e).get({
|
|
213
225
|
security: [{
|
|
214
226
|
key: "APPToken",
|
|
215
227
|
scheme: "bearer",
|
|
@@ -221,7 +233,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
221
233
|
}],
|
|
222
234
|
url: "/embedded-banking/v1/debit-cards",
|
|
223
235
|
...t
|
|
224
|
-
}),
|
|
236
|
+
}), v = (t) => (t.client ?? e).get({
|
|
225
237
|
security: [{
|
|
226
238
|
key: "APPToken",
|
|
227
239
|
scheme: "bearer",
|
|
@@ -233,14 +245,6 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
233
245
|
}],
|
|
234
246
|
url: "/embedded-banking/v1/debit-cards/{cardId}",
|
|
235
247
|
...t
|
|
236
|
-
}), v = (t) => (t?.client ?? e).post({
|
|
237
|
-
security: [{
|
|
238
|
-
key: "HTTPBearer",
|
|
239
|
-
scheme: "bearer",
|
|
240
|
-
type: "http"
|
|
241
|
-
}],
|
|
242
|
-
url: "/embedded-banking/v1/disclosures/accept",
|
|
243
|
-
...t
|
|
244
248
|
}), y = (t) => (t?.client ?? e).get({
|
|
245
249
|
security: [{
|
|
246
250
|
key: "APPToken",
|
|
@@ -1126,6 +1130,14 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1126
1130
|
...t.headers
|
|
1127
1131
|
}
|
|
1128
1132
|
}), Ze = (t) => (t?.client ?? e).get({
|
|
1133
|
+
security: [{
|
|
1134
|
+
key: "HTTPBearer",
|
|
1135
|
+
scheme: "bearer",
|
|
1136
|
+
type: "http"
|
|
1137
|
+
}],
|
|
1138
|
+
url: "/identity/v1/disclosures",
|
|
1139
|
+
...t
|
|
1140
|
+
}), Qe = (t) => (t?.client ?? e).get({
|
|
1129
1141
|
security: [{
|
|
1130
1142
|
key: "APPToken",
|
|
1131
1143
|
scheme: "bearer",
|
|
@@ -1137,7 +1149,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1137
1149
|
}],
|
|
1138
1150
|
url: "/identity/v1/locations",
|
|
1139
1151
|
...t
|
|
1140
|
-
}),
|
|
1152
|
+
}), $e = (t) => (t.client ?? e).post({
|
|
1141
1153
|
security: [{
|
|
1142
1154
|
key: "APPToken",
|
|
1143
1155
|
scheme: "bearer",
|
|
@@ -1153,7 +1165,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1153
1165
|
"Content-Type": "application/json",
|
|
1154
1166
|
...t.headers
|
|
1155
1167
|
}
|
|
1156
|
-
}),
|
|
1168
|
+
}), et = (t) => (t.client ?? e).delete({
|
|
1157
1169
|
security: [{
|
|
1158
1170
|
key: "APPToken",
|
|
1159
1171
|
scheme: "bearer",
|
|
@@ -1165,7 +1177,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1165
1177
|
}],
|
|
1166
1178
|
url: "/identity/v1/locations/{locationId}",
|
|
1167
1179
|
...t
|
|
1168
|
-
}),
|
|
1180
|
+
}), tt = (t) => (t.client ?? e).get({
|
|
1169
1181
|
security: [{
|
|
1170
1182
|
key: "APPToken",
|
|
1171
1183
|
scheme: "bearer",
|
|
@@ -1177,7 +1189,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1177
1189
|
}],
|
|
1178
1190
|
url: "/identity/v1/locations/{locationId}",
|
|
1179
1191
|
...t
|
|
1180
|
-
}),
|
|
1192
|
+
}), nt = (t) => (t.client ?? e).put({
|
|
1181
1193
|
security: [{
|
|
1182
1194
|
key: "APPToken",
|
|
1183
1195
|
scheme: "bearer",
|
|
@@ -1193,7 +1205,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1193
1205
|
"Content-Type": "application/json",
|
|
1194
1206
|
...t.headers
|
|
1195
1207
|
}
|
|
1196
|
-
}),
|
|
1208
|
+
}), rt = (t) => (t.client ?? e).post({
|
|
1197
1209
|
security: [{
|
|
1198
1210
|
key: "APPToken",
|
|
1199
1211
|
scheme: "bearer",
|
|
@@ -1209,7 +1221,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1209
1221
|
"Content-Type": "application/json",
|
|
1210
1222
|
...t.headers
|
|
1211
1223
|
}
|
|
1212
|
-
}),
|
|
1224
|
+
}), it = (t) => (t?.client ?? e).get({
|
|
1213
1225
|
security: [{
|
|
1214
1226
|
key: "APPToken",
|
|
1215
1227
|
scheme: "bearer",
|
|
@@ -1221,7 +1233,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1221
1233
|
}],
|
|
1222
1234
|
url: "/identity/v1/roles",
|
|
1223
1235
|
...t
|
|
1224
|
-
}),
|
|
1236
|
+
}), at = (t) => (t.client ?? e).post({
|
|
1225
1237
|
security: [{
|
|
1226
1238
|
key: "APPToken",
|
|
1227
1239
|
scheme: "bearer",
|
|
@@ -1237,7 +1249,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1237
1249
|
"Content-Type": "application/json",
|
|
1238
1250
|
...t.headers
|
|
1239
1251
|
}
|
|
1240
|
-
}),
|
|
1252
|
+
}), ot = (t) => (t.client ?? e).get({
|
|
1241
1253
|
security: [{
|
|
1242
1254
|
key: "APPToken",
|
|
1243
1255
|
scheme: "bearer",
|
|
@@ -1249,7 +1261,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1249
1261
|
}],
|
|
1250
1262
|
url: "/identity/v1/roles/{roleId}/permissions",
|
|
1251
1263
|
...t
|
|
1252
|
-
}),
|
|
1264
|
+
}), st = (t) => (t.client ?? e).get({
|
|
1253
1265
|
security: [{
|
|
1254
1266
|
key: "HTTPBearer",
|
|
1255
1267
|
scheme: "bearer",
|
|
@@ -1257,7 +1269,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1257
1269
|
}],
|
|
1258
1270
|
url: "/identity/v1/user-data/{key}",
|
|
1259
1271
|
...t
|
|
1260
|
-
}),
|
|
1272
|
+
}), ct = (t) => (t.client ?? e).put({
|
|
1261
1273
|
security: [{
|
|
1262
1274
|
key: "HTTPBearer",
|
|
1263
1275
|
scheme: "bearer",
|
|
@@ -1269,7 +1281,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1269
1281
|
"Content-Type": "application/json",
|
|
1270
1282
|
...t.headers
|
|
1271
1283
|
}
|
|
1272
|
-
}),
|
|
1284
|
+
}), lt = (t) => (t?.client ?? e).get({
|
|
1273
1285
|
security: [{
|
|
1274
1286
|
key: "APPToken",
|
|
1275
1287
|
scheme: "bearer",
|
|
@@ -1281,7 +1293,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1281
1293
|
}],
|
|
1282
1294
|
url: "/identity/v1/users",
|
|
1283
1295
|
...t
|
|
1284
|
-
}),
|
|
1296
|
+
}), ut = (t) => (t.client ?? e).post({
|
|
1285
1297
|
security: [{
|
|
1286
1298
|
key: "APPToken",
|
|
1287
1299
|
scheme: "bearer",
|
|
@@ -1297,7 +1309,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1297
1309
|
"Content-Type": "application/json",
|
|
1298
1310
|
...t.headers
|
|
1299
1311
|
}
|
|
1300
|
-
}),
|
|
1312
|
+
}), dt = (t) => (t.client ?? e).patch({
|
|
1301
1313
|
security: [{
|
|
1302
1314
|
key: "APPToken",
|
|
1303
1315
|
scheme: "bearer",
|
|
@@ -1313,7 +1325,7 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1313
1325
|
"Content-Type": "application/json",
|
|
1314
1326
|
...t.headers
|
|
1315
1327
|
}
|
|
1316
|
-
}),
|
|
1328
|
+
}), ft = (t) => (t.client ?? e).post({
|
|
1317
1329
|
security: [{
|
|
1318
1330
|
key: "APPToken",
|
|
1319
1331
|
scheme: "bearer",
|
|
@@ -1327,4 +1339,4 @@ var t = (t) => (t?.client ?? e).get({
|
|
|
1327
1339
|
...t
|
|
1328
1340
|
});
|
|
1329
1341
|
//#endregion
|
|
1330
|
-
export {
|
|
1342
|
+
export { Xe as bulkUpdateDepartmentMembers, rt as bulkUpdateLocationMembers, at as bulkUpdateRoleMembers, b as connectExternalBankAccount, D as createAchMoneyMovement, n as createApplication, o as createBankAccount, O as createBookTransfer, Ke as createDepartment, $e as createLocation, ut as createUser, qe as deactivateDepartment, et as deactivateLocation, N as deleteApprovalPoliciesId, L as deleteCounterpartsId, G as deleteCounterpartsIdBankAccountsId, ae as deleteLedgerAccountsId, le as deleteMeasureUnitsId, me as deleteProductsId, ve as deleteReceiptsId, Se as deleteReceivablesId, Be as deleteTagsId, ft as disableUser, p as downloadBankAccountTransactions, k as getAnalyticsPayables, A as getAnalyticsReceivables, ee as getApiWidgetGatewayInit, te as getApplicationStatus, j as getApprovalPolicies, c as getBankAccount, u as getBankAccountAccess, f as getBankAccountTransactions, m as getBankAccountTransfers, a as getBankAccounts, F as getCounterparts, R as getCounterpartsId, B as getCounterpartsIdAddresses, U as getCounterpartsIdBankAccounts, g as getCreditCardById, h as getCreditCards, v as getDebitCardById, _ as getDebitCards, Je as getDepartment, Ze as getDisclosures, Y as getEntitiesIdSettings, J as getEntitiesMe, Z as getEntityUsers, Q as getEntityUsersMe, ne as getEntityUsersMyEntity, C as getExternalBankAccountAccess, y as getExternalBankAccounts, re as getLedgerAccounts, tt as getLocation, se as getMeasureUnits, $ as getPayables, de as getPaymentTerms, fe as getProducts, he as getProductsId, _e as getReceipts, be as getReceivables, Ce as getReceivablesId, ke as getReceivablesIdHistory, Me as getReceivablesIdMails, Ie as getReceivablesIdPdfLink, Re as getTags, He as getTransactions, Ue as getTransactionsValidations, st as getUserData, lt as getUsers, d as grantBankAccountAccess, w as grantExternalBankAccountAccess, T as linkExternalBankAccount, Ge as listDepartments, Qe as listLocations, ot as listRolePermissions, it as listRoles, s as manageBankAccountAccess, P as patchApprovalPoliciesId, z as patchCounterpartsId, H as patchCounterpartsIdAddressesId, K as patchCounterpartsIdBankAccountsId, X as patchEntitiesIdSettings, oe as patchLedgerAccountsId, ue as patchMeasureUnitsId, ge as patchProductsId, ye as patchReceiptsId, we as patchReceivablesId, Ve as patchTagsId, t as postApiWidgetGatewayDisclosureAcceptance, M as postApprovalPolicies, I as postCounterparts, V as postCounterpartsIdAddresses, W as postCounterpartsIdBankAccounts, q as postCounterpartsIdBankAccountsIdMakeDefault, ie as postLedgerAccounts, ce as postMeasureUnits, pe as postProducts, xe as postReceivables, Te as postReceivablesIdAccept, Ee as postReceivablesIdCancel, De as postReceivablesIdClone, Oe as postReceivablesIdDecline, Ae as postReceivablesIdIssue, Ne as postReceivablesIdMarkAsPaid, Pe as postReceivablesIdMarkAsPartiallyPaid, Fe as postReceivablesIdMarkAsUncollectible, Le as postReceivablesIdSend, ze as postTags, je as putReceivablesIdLineItems, We as putTransactionsValidations, i as submitApplication, x as unlinkExternalBankAccount, r as updateApplication, l as updateBankAccount, Ye as updateDepartment, S as updateExternalBankAccount, nt as updateLocation, dt as updateUser, ct as upsertUserData, E as validateExternalBankAccount };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
1
5
|
import { registerQueryClient as e, unregisterQueryClient as t } from "../../../../data-access/dist/lib/clientRegistry.js";
|
|
2
6
|
import { createEmbeddedClient as ee } from "../../../../data-access/dist/lib/createEmbeddedClient.js";
|
|
3
7
|
import { EmbedApiProvider as n } from "../../../../data-access/dist/lib/EmbedApiContext.js";
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
1
5
|
import { registerQueryClient as e, unregisterQueryClient as t } from "../../../../data-access/dist/lib/clientRegistry.js";
|
|
2
6
|
import { createEmbeddedClient as n } from "../../../../data-access/dist/lib/createEmbeddedClient.js";
|
|
3
7
|
import { EmbedApiProvider as ee, useEmbedApi as te } from "../../../../data-access/dist/lib/EmbedApiContext.js";
|
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.2.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.2.253", n = "6a1ab1e8411dbf2ea634a7be5dfce3d8108b1aff", 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/ui/dist/lib/UIContext/UIProvider.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
1
5
|
import { DefaultLinkComponent as e, UIContext as t, resolveUIFramework as n } from "./UIContext.js";
|
|
2
6
|
import { useContext as r, useMemo as i } from "react";
|
|
3
7
|
import { jsx as a } from "react/jsx-runtime";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WIDGET_SUITE_SECTION_LABELS_EN as e } from "./index3.js";
|
|
2
|
+
import { WidgetSuiteSectionId as t } from "./index4.js";
|
|
3
|
+
import { WIDGET_SUITE_SHELL_LABELS_EN as n } from "../../ui/dist/index2.js";
|
|
2
4
|
import "../../ui/dist/index.js";
|
|
3
|
-
|
|
5
|
+
import { WidgetSuite as r } from "./index5.js";
|
|
6
|
+
export { e as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SHELL_LABELS_EN, r as WidgetSuite, t as WidgetSuiteSectionId };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
+
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
+
import "../../../shared/data-access/dist/index.js";
|
|
8
|
+
import { CardProgram as n } from "../../../shared/feature/dist/lib/card/cardProgram.js";
|
|
9
|
+
import "../../../shared/feature/dist/index.js";
|
|
10
|
+
import { BankAccountsWidget as r } from "../../../bank-accounts-widget/feature/dist/index8.js";
|
|
11
|
+
import "../../../bank-accounts-widget/feature/dist/index.js";
|
|
12
|
+
import { CardsWidget as i } from "../../../cards-widget/feature/dist/index8.js";
|
|
13
|
+
import "../../../cards-widget/feature/dist/index.js";
|
|
14
|
+
import { SettingsWidget as a } from "../../../settings-widget/feature/dist/index5.js";
|
|
15
|
+
import "../../../settings-widget/feature/dist/index.js";
|
|
16
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
17
|
+
//#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js
|
|
18
|
+
var s = {
|
|
19
|
+
Accounts: "accounts",
|
|
20
|
+
Cards: "cards",
|
|
21
|
+
Settings: "settings"
|
|
22
|
+
}, c = {
|
|
23
|
+
[s.Accounts]: {
|
|
24
|
+
anyOfScopes: [t.BankAccountReadOrg, t.ExternalBankAccountReadOrg],
|
|
25
|
+
render: () => /* @__PURE__ */ o(r, {})
|
|
26
|
+
},
|
|
27
|
+
[s.Cards]: {
|
|
28
|
+
anyOfScopes: [t.CreditCardReadOrg, t.DebitCardReadOrg],
|
|
29
|
+
render: (r) => /* @__PURE__ */ o(i, { cardProgram: e(r, [t.CreditCardReadOrg]) ? n.Credit : n.Debit })
|
|
30
|
+
},
|
|
31
|
+
[s.Settings]: { render: () => /* @__PURE__ */ o(a, {}) }
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { c as WIDGET_SUITE_SECTIONS, s as WidgetSuiteSectionId };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
+
import "../../../shared/data-access/dist/index.js";
|
|
7
|
+
import { useAnalyticsTrack as t } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
8
|
+
import { WidgetProvider as n } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
9
|
+
import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
|
+
import "../../../shared/feature/dist/index.js";
|
|
11
|
+
import { WIDGET_SUITE_SECTION_LABELS_EN as i } from "./index3.js";
|
|
12
|
+
import { WIDGET_SUITE_SECTIONS as a } from "./index4.js";
|
|
13
|
+
import { WIDGET_NAME as o, WidgetSuiteAnalyticsEvent as s } from "./index2.js";
|
|
14
|
+
import { WidgetSuiteShell as c } from "../../ui/dist/index3.js";
|
|
15
|
+
import "../../ui/dist/index.js";
|
|
16
|
+
import { useEffect as l, useState as u } from "react";
|
|
17
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
18
|
+
//#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js
|
|
19
|
+
function f({ sections: n, labels: o, sectionLabels: f }) {
|
|
20
|
+
let p = t();
|
|
21
|
+
l(() => {
|
|
22
|
+
p(s.Mounted);
|
|
23
|
+
}, [p]);
|
|
24
|
+
let m = {
|
|
25
|
+
...i,
|
|
26
|
+
...f
|
|
27
|
+
}, { initResponse: h } = r(), g = h?.scopes, _ = n.flatMap((t) => {
|
|
28
|
+
let n = a[t];
|
|
29
|
+
return !n || n.anyOfScopes && !e(g, n.anyOfScopes) ? [] : [{
|
|
30
|
+
id: t,
|
|
31
|
+
label: m[t],
|
|
32
|
+
content: n.render(g)
|
|
33
|
+
}];
|
|
34
|
+
}), [v, y] = u(n[0] ?? ""), b = _.some((e) => e.id === v) ? v : _[0]?.id ?? "";
|
|
35
|
+
return /* @__PURE__ */ d(c, {
|
|
36
|
+
sections: _,
|
|
37
|
+
selectedSectionId: b,
|
|
38
|
+
onSectionChange: y,
|
|
39
|
+
labels: o
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function p({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: p, ...m }) {
|
|
43
|
+
return /* @__PURE__ */ d(n, {
|
|
44
|
+
widgetName: o,
|
|
45
|
+
baseUrl: e,
|
|
46
|
+
widgetToken: t,
|
|
47
|
+
organizationId: r,
|
|
48
|
+
configClient: i,
|
|
49
|
+
linkComponent: a,
|
|
50
|
+
implementation: s,
|
|
51
|
+
uiFramework: c,
|
|
52
|
+
errorFallback: l,
|
|
53
|
+
onError: u,
|
|
54
|
+
analytics: p,
|
|
55
|
+
children: /* @__PURE__ */ d(f, { ...m })
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { p as WidgetSuite, p as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./index2.js";
|
|
2
|
-
import {
|
|
3
|
-
export { e as
|
|
1
|
+
import { WIDGET_SUITE_SHELL_LABELS_EN as e } from "./index2.js";
|
|
2
|
+
import { WidgetSuiteShell as t } from "./index3.js";
|
|
3
|
+
export { e as WIDGET_SUITE_SHELL_LABELS_EN, t as WidgetSuiteShell };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js
|
|
2
2
|
var e = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
navAriaLabel: "Sections",
|
|
4
|
+
emptyState: {
|
|
5
|
+
title: "Nothing available here",
|
|
6
|
+
body: "This account doesn't have access to any of this page's sections."
|
|
7
|
+
}
|
|
5
8
|
};
|
|
6
9
|
//#endregion
|
|
7
|
-
export { e as
|
|
10
|
+
export { e as WIDGET_SUITE_SHELL_LABELS_EN };
|
|
@@ -1,25 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { Typography as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { WIDGET_SUITE_SHELL_LABELS_EN as n } from "./index2.js";
|
|
7
|
+
import { useRef as r } from "react";
|
|
8
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
9
|
//#region ../../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index3.js
|
|
6
|
-
|
|
7
|
-
let
|
|
8
|
-
...
|
|
9
|
-
...
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
function o({ sections: o, selectedSectionId: s, onSectionChange: c, labels: l }) {
|
|
11
|
+
let u = {
|
|
12
|
+
...n,
|
|
13
|
+
...l,
|
|
14
|
+
emptyState: {
|
|
15
|
+
...n.emptyState,
|
|
16
|
+
...l?.emptyState
|
|
17
|
+
}
|
|
18
|
+
}, d = r([]), f = o.find((e) => e.id === s), p = (e, t) => {
|
|
19
|
+
let n = o.length - 1, r;
|
|
20
|
+
switch (e.key) {
|
|
21
|
+
case "ArrowRight":
|
|
22
|
+
r = t === n ? 0 : t + 1;
|
|
23
|
+
break;
|
|
24
|
+
case "ArrowLeft":
|
|
25
|
+
r = t === 0 ? n : t - 1;
|
|
26
|
+
break;
|
|
27
|
+
case "Home":
|
|
28
|
+
r = 0;
|
|
29
|
+
break;
|
|
30
|
+
case "End":
|
|
31
|
+
r = n;
|
|
32
|
+
break;
|
|
33
|
+
default: return;
|
|
34
|
+
}
|
|
35
|
+
e.preventDefault(), d.current[r]?.focus();
|
|
36
|
+
};
|
|
37
|
+
return o.length === 0 ? /* @__PURE__ */ a("section", {
|
|
38
|
+
className: "ttw:flex ttw:w-full ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-2 ttw:rounded-lg ttw:border ttw:border-border ttw:p-10 ttw:text-center",
|
|
39
|
+
children: [/* @__PURE__ */ i(e, {
|
|
15
40
|
variant: "h5",
|
|
16
|
-
children:
|
|
17
|
-
}), /* @__PURE__ */
|
|
41
|
+
children: u.emptyState.title
|
|
42
|
+
}), /* @__PURE__ */ i(e, {
|
|
18
43
|
variant: "body2",
|
|
19
44
|
color: "muted",
|
|
20
|
-
children:
|
|
45
|
+
children: u.emptyState.body
|
|
46
|
+
})]
|
|
47
|
+
}) : /* @__PURE__ */ a("section", {
|
|
48
|
+
className: "ttw:flex ttw:w-full ttw:flex-col ttw:gap-6",
|
|
49
|
+
children: [/* @__PURE__ */ i("nav", {
|
|
50
|
+
"aria-label": u.navAriaLabel,
|
|
51
|
+
children: /* @__PURE__ */ i("ul", {
|
|
52
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-1 ttw:border-b ttw:border-border",
|
|
53
|
+
children: o.map((e, n) => {
|
|
54
|
+
let r = e.id === s;
|
|
55
|
+
return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i("button", {
|
|
56
|
+
type: "button",
|
|
57
|
+
ref: (e) => {
|
|
58
|
+
d.current[n] = e;
|
|
59
|
+
},
|
|
60
|
+
"aria-current": r ? "page" : void 0,
|
|
61
|
+
onClick: () => c(e.id),
|
|
62
|
+
onKeyDown: (e) => p(e, n),
|
|
63
|
+
className: t("ttw:-mb-px ttw:cursor-pointer ttw:border-b-2 ttw:px-4 ttw:py-2.5 ttw:text-sm ttw:font-medium ttw:whitespace-nowrap ttw:focus-visible:outline-2 ttw:focus-visible:outline-offset-2 ttw:focus-visible:outline-ring", r ? "ttw:border-primary ttw:text-primary" : "ttw:border-transparent ttw:text-muted-foreground ttw:hover:border-border ttw:hover:text-foreground"),
|
|
64
|
+
children: e.label
|
|
65
|
+
}) }, e.id);
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
}), /* @__PURE__ */ i("div", {
|
|
69
|
+
role: "region",
|
|
70
|
+
"aria-label": f?.label,
|
|
71
|
+
className: "ttw:min-h-[432px] ttw:min-w-0",
|
|
72
|
+
children: f?.content
|
|
21
73
|
})]
|
|
22
74
|
});
|
|
23
|
-
}
|
|
75
|
+
}
|
|
24
76
|
//#endregion
|
|
25
|
-
export {
|
|
77
|
+
export { o as WidgetSuiteShell };
|
package/package.json
CHANGED