@zerohash-sdk/fiat-withdrawals-js 1.11.6 → 1.14.0
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/index.d.ts +7 -2
- package/dist/index.js +9 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ declare type AppEvent<TType extends string = string, TData = Record<string, unkn
|
|
|
15
15
|
*/
|
|
16
16
|
declare interface BaseConfig<TEvent = AppEvent> extends CommonCallbacks<TEvent> {
|
|
17
17
|
/**
|
|
18
|
-
* JWT token used for authentication
|
|
18
|
+
* JWT token used for authentication. Provide/update it via `setJWT`
|
|
19
|
+
* (`updateConfig({ jwt })`).
|
|
19
20
|
*/
|
|
20
21
|
jwt: string;
|
|
21
22
|
|
|
@@ -110,7 +111,11 @@ declare abstract class BaseJsSdk<Config extends BaseConfig<never> = BaseConfig>
|
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
/**
|
|
113
|
-
* Update the configuration of the widget
|
|
114
|
+
* Update the configuration of the widget (e.g. `theme`, or the `jwt`).
|
|
115
|
+
*
|
|
116
|
+
* Passing a `jwt` is the JS-SDK equivalent of `setJWT` — it provides the JWT
|
|
117
|
+
* used to authenticate.
|
|
118
|
+
*
|
|
114
119
|
* @param config - Partial configuration to update
|
|
115
120
|
* @returns void
|
|
116
121
|
*/
|
package/dist/index.js
CHANGED
|
@@ -169,7 +169,11 @@ class j {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
|
-
* Update the configuration of the widget
|
|
172
|
+
* Update the configuration of the widget (e.g. `theme`, or the `jwt`).
|
|
173
|
+
*
|
|
174
|
+
* Passing a `jwt` is the JS-SDK equivalent of `setJWT` — it provides the JWT
|
|
175
|
+
* used to authenticate.
|
|
176
|
+
*
|
|
173
177
|
* @param config - Partial configuration to update
|
|
174
178
|
* @returns void
|
|
175
179
|
*/
|
|
@@ -302,7 +306,10 @@ class H extends j {
|
|
|
302
306
|
SCRIPT_LOAD_FAILED: "Failed to load the Connect FiatWithdrawals script.",
|
|
303
307
|
WEB_COMPONENT_NOT_DEFINED: "Web component is not defined. Script may not be loaded."
|
|
304
308
|
};
|
|
305
|
-
scriptUrls = x("fiat-withdrawals-web", "index.js", {
|
|
309
|
+
scriptUrls = x("fiat-withdrawals-web", "index.js", {
|
|
310
|
+
legacyAliases: !0,
|
|
311
|
+
eu: !0
|
|
312
|
+
});
|
|
306
313
|
webComponentTag = "zerohash-fiat-withdrawals";
|
|
307
314
|
render(t) {
|
|
308
315
|
return super.render(t);
|