@everymatrix/cashier-verifications 1.43.2 → 1.43.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/cashier-verifications",
|
|
3
|
-
"version": "1.43.
|
|
3
|
+
"version": "1.43.4",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "8464c47cb49b4ffa1c9debfac3a7dfc3097cf57a"
|
|
39
39
|
}
|
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
})
|
|
136
136
|
}
|
|
137
137
|
fetch(url, requestParams).then(res => res.json()).then(data => {
|
|
138
|
+
data.Verifications = []
|
|
138
139
|
verificationStatus = getCalculatedStatus(data.Verifications);
|
|
139
140
|
verificationStatus.VerificationStatuses.forEach(status => {
|
|
140
141
|
if (status.VerificationUrlType !== 'Widget') {
|
|
@@ -162,7 +163,10 @@
|
|
|
162
163
|
|
|
163
164
|
const getCalculatedStatus = (verifications) => {
|
|
164
165
|
if (!verifications || !verifications.length) {
|
|
165
|
-
return {
|
|
166
|
+
return {
|
|
167
|
+
VerificationSummaryStatus: CustomerVerificationStatus.Unverified,
|
|
168
|
+
VerificationStatuses: []
|
|
169
|
+
}
|
|
166
170
|
}
|
|
167
171
|
const verificationsInProgress = getVerificationInProgress(verifications);
|
|
168
172
|
if (verificationsInProgress && verificationsInProgress.length) {
|
|
@@ -301,7 +305,7 @@
|
|
|
301
305
|
|
|
302
306
|
<div class="CashierVerifications" class:CashierVerificationsDesktop={desktopView} bind:this={customStylingContainer}>
|
|
303
307
|
{#if displayMessages}
|
|
304
|
-
<div>
|
|
308
|
+
<div class="CashierVerificationsWrapper">
|
|
305
309
|
{#each displayMessages as message, index}
|
|
306
310
|
<div class="CashierVerificationMessage" class:ShowAll={allVerificationsVisible} on:click={(e) => showAllVerifications(e, index)}>
|
|
307
311
|
<div class="IconVerification"><svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path> <path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg></div>
|
|
@@ -337,12 +341,7 @@
|
|
|
337
341
|
}
|
|
338
342
|
|
|
339
343
|
.CashierVerifications {
|
|
340
|
-
display: flex;
|
|
341
|
-
flex-direction: column;
|
|
342
344
|
box-shadow: 0 0 4px $color-black-transparency-10;
|
|
343
|
-
width: 100%;
|
|
344
|
-
container-name: method-list;
|
|
345
|
-
container-type: inline-size;
|
|
346
345
|
&.CashierVerificationsDesktop {
|
|
347
346
|
border-radius: $border-radius-medium-plus;
|
|
348
347
|
overflow: hidden;
|
|
@@ -351,6 +350,13 @@
|
|
|
351
350
|
}
|
|
352
351
|
}
|
|
353
352
|
}
|
|
353
|
+
|
|
354
|
+
.CashierVerificationsWrapper {
|
|
355
|
+
display: flex;
|
|
356
|
+
flex-direction: column;
|
|
357
|
+
width: 100%;
|
|
358
|
+
}
|
|
359
|
+
|
|
354
360
|
.IconVerification {
|
|
355
361
|
width: 30px;
|
|
356
362
|
display: flex;
|
|
@@ -426,11 +432,4 @@
|
|
|
426
432
|
transform:rotate(180deg);
|
|
427
433
|
}
|
|
428
434
|
|
|
429
|
-
@container method-list (width < 450px) {
|
|
430
|
-
p {
|
|
431
|
-
font-size: var(--emw--font-size-x-small, 12px);
|
|
432
|
-
line-height: calc(var(--emw--size-small, 12px) + 3px);
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
|
|
436
435
|
</style>
|