@sparkvault/sdk-js 8.1.1 → 8.1.2
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/sparkvault.esm.js
CHANGED
|
@@ -5935,11 +5935,18 @@ class OriginNotAllowedView {
|
|
|
5935
5935
|
* Uses extracted handlers for OTP and Passkey operations.
|
|
5936
5936
|
*/
|
|
5937
5937
|
/**
|
|
5938
|
-
* End-user copy for a blocked Identity. Intentionally
|
|
5939
|
-
* the trial, billing, usage, or any owner-facing internal.
|
|
5940
|
-
*
|
|
5938
|
+
* End-user copy for a blocked Identity. Intentionally non-leaky — it never names
|
|
5939
|
+
* the trial, billing, usage, or any owner-facing internal. When the site's
|
|
5940
|
+
* company name is known it is surfaced so the screen reads as the site's own and
|
|
5941
|
+
* the visitor is pointed back to the site for help (never to SparkVault). The
|
|
5942
|
+
* site owner is nudged to subscribe through their own dashboard and emails.
|
|
5941
5943
|
*/
|
|
5942
|
-
|
|
5944
|
+
function blockedSignInMessage(companyName) {
|
|
5945
|
+
const name = companyName?.trim();
|
|
5946
|
+
return name
|
|
5947
|
+
? `Sign-in for ${name} is temporarily unavailable. Please contact them for assistance.`
|
|
5948
|
+
: 'Sign-in is temporarily unavailable. Please contact the site owner for assistance.';
|
|
5949
|
+
}
|
|
5943
5950
|
const BLOCKED_ERROR_CODES = new Set(IDENTITY_BLOCKED_ERROR_CODES);
|
|
5944
5951
|
const SPARKLINK_CSP_BLOCKED_ERROR = {
|
|
5945
5952
|
message: [
|
|
@@ -6578,7 +6585,7 @@ class IdentityRenderer {
|
|
|
6578
6585
|
this.setState({
|
|
6579
6586
|
view: 'error',
|
|
6580
6587
|
code,
|
|
6581
|
-
message:
|
|
6588
|
+
message: blockedSignInMessage(this.verificationState.sdkConfig?.branding?.companyName),
|
|
6582
6589
|
});
|
|
6583
6590
|
return true;
|
|
6584
6591
|
}
|