@sparkvault/sdk-js 17.0.0 → 17.0.1
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 +4 -4
- package/dist/index.cjs +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12 -8
- package/dist/index.mjs.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -413,12 +413,12 @@ without another login. Anonymous visitors continue to a second step that asks
|
|
|
413
413
|
nothing: **Sign in and send** opens the native auth.SV Identity window, which
|
|
414
414
|
offers the accounts already signed in on the browser or a fresh sign-in, before
|
|
415
415
|
the request is sent. An inline (`target`) wizard asks before its page is left
|
|
416
|
-
with an unsent request.
|
|
417
|
-
the window answers with one (closing it changes nothing);
|
|
416
|
+
with an unsent request. "Switch account" changes only the support account, once
|
|
417
|
+
the window answers with one (closing it changes nothing); "Sign out" ends the
|
|
418
418
|
support session without a window and revokes it, even a session the host lent
|
|
419
419
|
through `getSessionToken`, so a host that lends one must drop it when
|
|
420
420
|
`onSession` reports `null`. The host website's own login is untouched. Both
|
|
421
|
-
suppress website sign-in until
|
|
421
|
+
suppress website sign-in until "Use website account" is chosen, which is
|
|
422
422
|
offered once the visitor has switched away from the website account; a Sign
|
|
423
423
|
out alone does not offer it. Use website account releases the switched-to
|
|
424
424
|
session at once, its revocation going behind as a switch's does (a refused or
|
|
@@ -617,7 +617,7 @@ requester/session without a second login, consent or auth.SV account. Even a
|
|
|
617
617
|
verified host email stays contact metadata: host proofs never claim native
|
|
618
618
|
ticket history or create/link a global SVID. The support widget's optional
|
|
619
619
|
auth.SV account switch opens a separate native requester and leaves the website
|
|
620
|
-
signed in; only
|
|
620
|
+
signed in; only "Use website account" resumes the host provider.
|
|
621
621
|
|
|
622
622
|
A custom UI that offers Use website account calls `returnToWebsiteAccount()`.
|
|
623
623
|
The session in use is released at once and the website's identity resumed;
|
package/dist/index.cjs
CHANGED
|
@@ -7137,12 +7137,12 @@ class OriginNotAllowedView {
|
|
|
7137
7137
|
const title = document.createElement('h2');
|
|
7138
7138
|
title.className = 'sv-not-activated-title';
|
|
7139
7139
|
title.id = 'sv-modal-title';
|
|
7140
|
-
title.textContent = 'This domain isn
|
|
7140
|
+
title.textContent = 'This domain isn\'t allowed';
|
|
7141
7141
|
container.appendChild(title);
|
|
7142
7142
|
const message = document.createElement('p');
|
|
7143
7143
|
message.className = 'sv-not-activated-message';
|
|
7144
7144
|
message.textContent =
|
|
7145
|
-
'Sign-in is blocked because this website
|
|
7145
|
+
'Sign-in is blocked because this website\'s domain is not on the SparkVault Identity allowlist for this account.';
|
|
7146
7146
|
container.appendChild(message);
|
|
7147
7147
|
const ownerCard = div('sv-not-activated-owner');
|
|
7148
7148
|
const ownerLabel = document.createElement('span');
|
|
@@ -7154,7 +7154,7 @@ class OriginNotAllowedView {
|
|
|
7154
7154
|
// trust it into the DOM as markup.
|
|
7155
7155
|
ownerHint.textContent = this.props.origin
|
|
7156
7156
|
? `Add ${this.props.origin} to your verified domains in SparkVault, then reload this page.`
|
|
7157
|
-
: 'Add this website
|
|
7157
|
+
: 'Add this website\'s domain to your verified domains in SparkVault, then reload this page.';
|
|
7158
7158
|
ownerCard.appendChild(ownerLabel);
|
|
7159
7159
|
ownerCard.appendChild(ownerHint);
|
|
7160
7160
|
container.appendChild(ownerCard);
|
|
@@ -18906,14 +18906,18 @@ function injectHelpDeskFormStyles() {
|
|
|
18906
18906
|
* offsets it reported along the way. A transfer whose bytes all arrived
|
|
18907
18907
|
* while the vault was still saving (`received`: the SDK throws
|
|
18908
18908
|
* RECEIVED_STILL_SAVING from ./transfer-retry.js for it) shows the file
|
|
18909
|
-
* stored and the check still to come.
|
|
18910
|
-
*
|
|
18911
|
-
*
|
|
18909
|
+
* stored and the check still to come. The server refuses a message naming
|
|
18910
|
+
* such a file, so neither client attaches it until a check of its upload
|
|
18911
|
+
* confirms it stored, and both hold the message meanwhile in one sentence
|
|
18912
|
+
* (STORING_HOLD_COPY).
|
|
18912
18913
|
*
|
|
18913
18914
|
* BROWSER-SAFE: pure data, no Node built-ins.
|
|
18914
18915
|
*/
|
|
18915
18916
|
|
|
18916
18917
|
|
|
18918
|
+
/** What holds a message back while one of its files is received and not yet confirmed stored. */
|
|
18919
|
+
const STORING_HOLD_COPY = 'A file is still being stored. Check its upload in a moment, or remove it.';
|
|
18920
|
+
|
|
18917
18921
|
/** A step's state. */
|
|
18918
18922
|
const CEREMONY_STEP_STATUS = Object.freeze({ PENDING: 'pending', ACTIVE: 'active', COMPLETE: 'complete' });
|
|
18919
18923
|
|
|
@@ -20026,7 +20030,7 @@ const ACCEPTED_KINDS_COPY = `You can attach ${ACCEPTED_ATTACHMENTS_COPY}.`;
|
|
|
20026
20030
|
/** What a message's files still need before it can be sent, from the most pressing. */
|
|
20027
20031
|
const HOLD_COPY = Object.freeze({
|
|
20028
20032
|
uploading: 'Your files are still uploading.',
|
|
20029
|
-
storing:
|
|
20033
|
+
storing: STORING_HOLD_COPY,
|
|
20030
20034
|
retryable: "Remove the files that couldn't be attached, or try them again.",
|
|
20031
20035
|
refused: "Remove the files that can't be attached."
|
|
20032
20036
|
});
|
|
@@ -31748,7 +31752,7 @@ class SparkVault {
|
|
|
31748
31752
|
}
|
|
31749
31753
|
/** Get the SDK version */
|
|
31750
31754
|
static get version() {
|
|
31751
|
-
return '17.0.
|
|
31755
|
+
return '17.0.1';
|
|
31752
31756
|
}
|
|
31753
31757
|
}
|
|
31754
31758
|
if (typeof window !== 'undefined') {
|