@tesouro/embedded-components-loader 0.11.223 → 0.11.225
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
CHANGED
|
@@ -232,6 +232,11 @@ What each directive is for:
|
|
|
232
232
|
| `connect-src` | The CDN origin, for `manifest.json`; your API origin (`https://api.sandbox.tesouro.com` in sandbox); `https://z.tesouro.com` for analytics, unless the provider has `analytics={false}`; the origins of the file URLs the API returns. |
|
|
233
233
|
| `worker-src` | Optional. If you set it, the CDN origin plus `blob:`. |
|
|
234
234
|
|
|
235
|
+
A page showing `BankAccountOnboardingWidget` for a bank that requires device
|
|
236
|
+
profiling also needs Alloy's origins, listed in the package README's
|
|
237
|
+
Content Security Policy section. Under `'strict-dynamic'` the nonce covers
|
|
238
|
+
Alloy's script, and `connect-src` still needs its API.
|
|
239
|
+
|
|
235
240
|
Under a strict `style-src`, a few inline styles that dependencies add are still
|
|
236
241
|
refused, such as the toast library's `<style>` tag. How many a browser reports
|
|
237
242
|
varies: WebKit also reports inline `style` attributes that Chromium and Firefox
|
package/dist/index.js
CHANGED
|
@@ -57,7 +57,7 @@ function satisfiesRange(version, range) {
|
|
|
57
57
|
}
|
|
58
58
|
// src/loader.ts
|
|
59
59
|
/** Baked at build time: installing loader 1.2.3 pins hosted 1.2.3. */
|
|
60
|
-
var LOADER_VERSION = "0.11.
|
|
60
|
+
var LOADER_VERSION = "0.11.225";
|
|
61
61
|
var DEFAULT_BASE_URL = "https://widgets.tesouro.com";
|
|
62
62
|
/** Frozen forever: every future loader must read what every past one wrote. */
|
|
63
63
|
var LOADED_VERSION_MARKER = Symbol.for("tesouro.embedded.loadedVersion");
|
package/dist/react/index.d.ts
CHANGED
|
@@ -2130,8 +2130,8 @@ declare function themeToCss(tokens: Readonly<ThemeTokens>, selector?: string): s
|
|
|
2130
2130
|
|
|
2131
2131
|
interface CspConfig {
|
|
2132
2132
|
/**
|
|
2133
|
-
* Nonce for the
|
|
2134
|
-
*
|
|
2133
|
+
* Nonce for the `<style>` and `<script>` tags the widgets add at runtime.
|
|
2134
|
+
* Found on the page when not set. `null` clears an override.
|
|
2135
2135
|
*/
|
|
2136
2136
|
nonce?: string | null;
|
|
2137
2137
|
/**
|
|
@@ -2960,6 +2960,18 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
2960
2960
|
shellFdicDisclaimer: string;
|
|
2961
2961
|
/** The card shown instead of the form for an existing application. */
|
|
2962
2962
|
applicationStatus: ApplicationStatusLabels;
|
|
2963
|
+
/** Shown in place of the form while the browser check runs, or once it fails. */
|
|
2964
|
+
deviceProfiling: {
|
|
2965
|
+
/** Hidden status text while the check runs. */
|
|
2966
|
+
loading: string;
|
|
2967
|
+
blockedTitle: string;
|
|
2968
|
+
/** For a check the browser blocked: names the setting to change. */
|
|
2969
|
+
blockedDescription: string;
|
|
2970
|
+
/** Title and body for a check the page itself prevents, which no setting fixes. */
|
|
2971
|
+
unavailableTitle: string;
|
|
2972
|
+
unavailableDescription: string;
|
|
2973
|
+
retry: string;
|
|
2974
|
+
};
|
|
2963
2975
|
}
|
|
2964
2976
|
|
|
2965
2977
|
/**
|
|
@@ -1912,6 +1912,18 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
1912
1912
|
shellFdicDisclaimer: string;
|
|
1913
1913
|
/** The card shown instead of the form for an existing application. */
|
|
1914
1914
|
applicationStatus: ApplicationStatusLabels;
|
|
1915
|
+
/** Shown in place of the form while the browser check runs, or once it fails. */
|
|
1916
|
+
deviceProfiling: {
|
|
1917
|
+
/** Hidden status text while the check runs. */
|
|
1918
|
+
loading: string;
|
|
1919
|
+
blockedTitle: string;
|
|
1920
|
+
/** For a check the browser blocked: names the setting to change. */
|
|
1921
|
+
blockedDescription: string;
|
|
1922
|
+
/** Title and body for a check the page itself prevents, which no setting fixes. */
|
|
1923
|
+
unavailableTitle: string;
|
|
1924
|
+
unavailableDescription: string;
|
|
1925
|
+
retry: string;
|
|
1926
|
+
};
|
|
1915
1927
|
}
|
|
1916
1928
|
|
|
1917
1929
|
/**
|
|
@@ -1022,8 +1022,8 @@ interface WidgetTokenManager {
|
|
|
1022
1022
|
|
|
1023
1023
|
interface CspConfig {
|
|
1024
1024
|
/**
|
|
1025
|
-
* Nonce for the
|
|
1026
|
-
*
|
|
1025
|
+
* Nonce for the `<style>` and `<script>` tags the widgets add at runtime.
|
|
1026
|
+
* Found on the page when not set. `null` clears an override.
|
|
1027
1027
|
*/
|
|
1028
1028
|
nonce?: string | null;
|
|
1029
1029
|
/**
|
|
@@ -2078,6 +2078,18 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
2078
2078
|
shellFdicDisclaimer: string;
|
|
2079
2079
|
/** The card shown instead of the form for an existing application. */
|
|
2080
2080
|
applicationStatus: ApplicationStatusLabels;
|
|
2081
|
+
/** Shown in place of the form while the browser check runs, or once it fails. */
|
|
2082
|
+
deviceProfiling: {
|
|
2083
|
+
/** Hidden status text while the check runs. */
|
|
2084
|
+
loading: string;
|
|
2085
|
+
blockedTitle: string;
|
|
2086
|
+
/** For a check the browser blocked: names the setting to change. */
|
|
2087
|
+
blockedDescription: string;
|
|
2088
|
+
/** Title and body for a check the page itself prevents, which no setting fixes. */
|
|
2089
|
+
unavailableTitle: string;
|
|
2090
|
+
unavailableDescription: string;
|
|
2091
|
+
retry: string;
|
|
2092
|
+
};
|
|
2081
2093
|
}
|
|
2082
2094
|
|
|
2083
2095
|
/**
|