@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/dist/index.mjs
CHANGED
|
@@ -7133,12 +7133,12 @@ class OriginNotAllowedView {
|
|
|
7133
7133
|
const title = document.createElement('h2');
|
|
7134
7134
|
title.className = 'sv-not-activated-title';
|
|
7135
7135
|
title.id = 'sv-modal-title';
|
|
7136
|
-
title.textContent = 'This domain isn
|
|
7136
|
+
title.textContent = 'This domain isn\'t allowed';
|
|
7137
7137
|
container.appendChild(title);
|
|
7138
7138
|
const message = document.createElement('p');
|
|
7139
7139
|
message.className = 'sv-not-activated-message';
|
|
7140
7140
|
message.textContent =
|
|
7141
|
-
'Sign-in is blocked because this website
|
|
7141
|
+
'Sign-in is blocked because this website\'s domain is not on the SparkVault Identity allowlist for this account.';
|
|
7142
7142
|
container.appendChild(message);
|
|
7143
7143
|
const ownerCard = div('sv-not-activated-owner');
|
|
7144
7144
|
const ownerLabel = document.createElement('span');
|
|
@@ -7150,7 +7150,7 @@ class OriginNotAllowedView {
|
|
|
7150
7150
|
// trust it into the DOM as markup.
|
|
7151
7151
|
ownerHint.textContent = this.props.origin
|
|
7152
7152
|
? `Add ${this.props.origin} to your verified domains in SparkVault, then reload this page.`
|
|
7153
|
-
: 'Add this website
|
|
7153
|
+
: 'Add this website\'s domain to your verified domains in SparkVault, then reload this page.';
|
|
7154
7154
|
ownerCard.appendChild(ownerLabel);
|
|
7155
7155
|
ownerCard.appendChild(ownerHint);
|
|
7156
7156
|
container.appendChild(ownerCard);
|
|
@@ -18902,14 +18902,18 @@ function injectHelpDeskFormStyles() {
|
|
|
18902
18902
|
* offsets it reported along the way. A transfer whose bytes all arrived
|
|
18903
18903
|
* while the vault was still saving (`received`: the SDK throws
|
|
18904
18904
|
* RECEIVED_STILL_SAVING from ./transfer-retry.js for it) shows the file
|
|
18905
|
-
* stored and the check still to come.
|
|
18906
|
-
*
|
|
18907
|
-
*
|
|
18905
|
+
* stored and the check still to come. The server refuses a message naming
|
|
18906
|
+
* such a file, so neither client attaches it until a check of its upload
|
|
18907
|
+
* confirms it stored, and both hold the message meanwhile in one sentence
|
|
18908
|
+
* (STORING_HOLD_COPY).
|
|
18908
18909
|
*
|
|
18909
18910
|
* BROWSER-SAFE: pure data, no Node built-ins.
|
|
18910
18911
|
*/
|
|
18911
18912
|
|
|
18912
18913
|
|
|
18914
|
+
/** What holds a message back while one of its files is received and not yet confirmed stored. */
|
|
18915
|
+
const STORING_HOLD_COPY = 'A file is still being stored. Check its upload in a moment, or remove it.';
|
|
18916
|
+
|
|
18913
18917
|
/** A step's state. */
|
|
18914
18918
|
const CEREMONY_STEP_STATUS = Object.freeze({ PENDING: 'pending', ACTIVE: 'active', COMPLETE: 'complete' });
|
|
18915
18919
|
|
|
@@ -20022,7 +20026,7 @@ const ACCEPTED_KINDS_COPY = `You can attach ${ACCEPTED_ATTACHMENTS_COPY}.`;
|
|
|
20022
20026
|
/** What a message's files still need before it can be sent, from the most pressing. */
|
|
20023
20027
|
const HOLD_COPY = Object.freeze({
|
|
20024
20028
|
uploading: 'Your files are still uploading.',
|
|
20025
|
-
storing:
|
|
20029
|
+
storing: STORING_HOLD_COPY,
|
|
20026
20030
|
retryable: "Remove the files that couldn't be attached, or try them again.",
|
|
20027
20031
|
refused: "Remove the files that can't be attached."
|
|
20028
20032
|
});
|
|
@@ -31744,7 +31748,7 @@ class SparkVault {
|
|
|
31744
31748
|
}
|
|
31745
31749
|
/** Get the SDK version */
|
|
31746
31750
|
static get version() {
|
|
31747
|
-
return '17.0.
|
|
31751
|
+
return '17.0.1';
|
|
31748
31752
|
}
|
|
31749
31753
|
}
|
|
31750
31754
|
if (typeof window !== 'undefined') {
|