@yourself_id/siwys-react-js 0.34.1 → 0.34.2-feat-clickable-qr-code.93.0
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/index.js +50 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -366,8 +366,7 @@ function _templateObject8() {
|
|
|
366
366
|
}
|
|
367
367
|
function _templateObject9() {
|
|
368
368
|
var data = _tagged_template_literal([
|
|
369
|
-
|
|
370
|
-
";\n"
|
|
369
|
+
"\n display: block;\n padding: 0;\n border: none;\n background: none;\n line-height: 0;\n border-radius: 16px;\n cursor: pointer;\n\n &:disabled {\n cursor: not-allowed;\n }\n\n &:focus-visible {\n outline: 2px solid #d8ee4f;\n outline-offset: 4px;\n }\n"
|
|
371
370
|
]);
|
|
372
371
|
_templateObject9 = function _templateObject() {
|
|
373
372
|
return data;
|
|
@@ -376,8 +375,8 @@ function _templateObject9() {
|
|
|
376
375
|
}
|
|
377
376
|
function _templateObject10() {
|
|
378
377
|
var data = _tagged_template_literal([
|
|
379
|
-
'\n
|
|
380
|
-
";\n
|
|
378
|
+
'\n margin: -54px 0 20px;\n max-width: 240px;\n text-align: center;\n font-family: "Inter", sans-serif;\n font-size: 13px;\n line-height: 1.4;\n color: ',
|
|
379
|
+
";\n"
|
|
381
380
|
]);
|
|
382
381
|
_templateObject10 = function _templateObject() {
|
|
383
382
|
return data;
|
|
@@ -386,7 +385,8 @@ function _templateObject10() {
|
|
|
386
385
|
}
|
|
387
386
|
function _templateObject11() {
|
|
388
387
|
var data = _tagged_template_literal([
|
|
389
|
-
|
|
388
|
+
'\n font-family: "Inter", sans-serif;\n margin-top: 0px;\n margin-bottom: 0px;\n font-weight: 400;\n font-size: 20px;\n line-height: 95%;\n color: ',
|
|
389
|
+
";\n @media (min-width: 1024px) {\n font-size: 28px;\n }\n"
|
|
390
390
|
]);
|
|
391
391
|
_templateObject11 = function _templateObject() {
|
|
392
392
|
return data;
|
|
@@ -395,8 +395,7 @@ function _templateObject11() {
|
|
|
395
395
|
}
|
|
396
396
|
function _templateObject12() {
|
|
397
397
|
var data = _tagged_template_literal([
|
|
398
|
-
|
|
399
|
-
";\n"
|
|
398
|
+
"\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 24px;\n"
|
|
400
399
|
]);
|
|
401
400
|
_templateObject12 = function _templateObject() {
|
|
402
401
|
return data;
|
|
@@ -405,7 +404,7 @@ function _templateObject12() {
|
|
|
405
404
|
}
|
|
406
405
|
function _templateObject13() {
|
|
407
406
|
var data = _tagged_template_literal([
|
|
408
|
-
'\n font-family: "Inter", sans-serif;\n margin-top: 0px;\n margin-bottom: 0px;\n font-weight:
|
|
407
|
+
'\n font-family: "Inter", sans-serif;\n margin-top: 0px;\n margin-bottom: 0px;\n font-weight: 600;\n font-size: 16px;\n line-height: 140%;\n letter-spacing: 0.025em;\n color: ',
|
|
409
408
|
";\n"
|
|
410
409
|
]);
|
|
411
410
|
_templateObject13 = function _templateObject() {
|
|
@@ -415,7 +414,7 @@ function _templateObject13() {
|
|
|
415
414
|
}
|
|
416
415
|
function _templateObject14() {
|
|
417
416
|
var data = _tagged_template_literal([
|
|
418
|
-
'\n font-family: "Inter", sans-serif;\n
|
|
417
|
+
'\n font-family: "Inter", sans-serif;\n margin-top: 0px;\n margin-bottom: 0px;\n font-weight: 500;\n font-size: 14px;\n letter-spacing: 0.025em;\n margin-bottom: 8px;\n color: ',
|
|
419
418
|
";\n"
|
|
420
419
|
]);
|
|
421
420
|
_templateObject14 = function _templateObject() {
|
|
@@ -425,7 +424,8 @@ function _templateObject14() {
|
|
|
425
424
|
}
|
|
426
425
|
function _templateObject15() {
|
|
427
426
|
var data = _tagged_template_literal([
|
|
428
|
-
|
|
427
|
+
'\n font-family: "Inter", sans-serif;\n list-style-type: decimal;\n padding-left: 20px;\n margin-top: 0px;\n margin-bottom: 0px;\n font-weight: 400;\n font-size: 14px;\n letter-spacing: 0.025em;\n color: ',
|
|
428
|
+
";\n"
|
|
429
429
|
]);
|
|
430
430
|
_templateObject15 = function _templateObject() {
|
|
431
431
|
return data;
|
|
@@ -434,7 +434,7 @@ function _templateObject15() {
|
|
|
434
434
|
}
|
|
435
435
|
function _templateObject16() {
|
|
436
436
|
var data = _tagged_template_literal([
|
|
437
|
-
"\n
|
|
437
|
+
"\n margin-bottom: 8px;\n"
|
|
438
438
|
]);
|
|
439
439
|
_templateObject16 = function _templateObject() {
|
|
440
440
|
return data;
|
|
@@ -443,7 +443,7 @@ function _templateObject16() {
|
|
|
443
443
|
}
|
|
444
444
|
function _templateObject17() {
|
|
445
445
|
var data = _tagged_template_literal([
|
|
446
|
-
"\n display: flex;\n flex-direction:
|
|
446
|
+
"\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 8px;\n margin-top: 8px;\n margin-bottom: 8px;\n"
|
|
447
447
|
]);
|
|
448
448
|
_templateObject17 = function _templateObject() {
|
|
449
449
|
return data;
|
|
@@ -452,7 +452,7 @@ function _templateObject17() {
|
|
|
452
452
|
}
|
|
453
453
|
function _templateObject18() {
|
|
454
454
|
var data = _tagged_template_literal([
|
|
455
|
-
"\n display: flex;\n flex-direction: column;\n
|
|
455
|
+
"\n display: flex;\n flex-direction: column;\n width: 100%;\n @media (min-width: 1024px) {\n width: auto;\n }\n"
|
|
456
456
|
]);
|
|
457
457
|
_templateObject18 = function _templateObject() {
|
|
458
458
|
return data;
|
|
@@ -461,7 +461,7 @@ function _templateObject18() {
|
|
|
461
461
|
}
|
|
462
462
|
function _templateObject19() {
|
|
463
463
|
var data = _tagged_template_literal([
|
|
464
|
-
"\n display: flex;\n flex-direction:
|
|
464
|
+
"\n display: flex;\n flex-direction: column;\n background: #121114;\n border: 1px solid #3d414c;\n border-radius: 8px;\n padding: 20px;\n gap: 20px;\n width: 100%;\n box-sizing: border-box;\n @media (min-width: 1024px) {\n padding-left: 53px;\n padding-right: 53px;\n max-width: 446px;\n }\n }\n"
|
|
465
465
|
]);
|
|
466
466
|
_templateObject19 = function _templateObject() {
|
|
467
467
|
return data;
|
|
@@ -470,7 +470,7 @@ function _templateObject19() {
|
|
|
470
470
|
}
|
|
471
471
|
function _templateObject20() {
|
|
472
472
|
var data = _tagged_template_literal([
|
|
473
|
-
|
|
473
|
+
"\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n gap: 8px;\n @media (min-width: 1024px) {\n gap: 16px;\n align-items: center;\n }\n"
|
|
474
474
|
]);
|
|
475
475
|
_templateObject20 = function _templateObject() {
|
|
476
476
|
return data;
|
|
@@ -479,7 +479,7 @@ function _templateObject20() {
|
|
|
479
479
|
}
|
|
480
480
|
function _templateObject21() {
|
|
481
481
|
var data = _tagged_template_literal([
|
|
482
|
-
|
|
482
|
+
'\n font-family: "Inter", sans-serif;\n font-weight: 500;\n margin-top: 0px;\n margin-bottom: 0px;\n font-size: 15px;\n line-height: 126%;\n letter-spacing: 0.025em;\n max-width: 128px;\n color: #ffffff;\n'
|
|
483
483
|
]);
|
|
484
484
|
_templateObject21 = function _templateObject() {
|
|
485
485
|
return data;
|
|
@@ -488,8 +488,7 @@ function _templateObject21() {
|
|
|
488
488
|
}
|
|
489
489
|
function _templateObject22() {
|
|
490
490
|
var data = _tagged_template_literal([
|
|
491
|
-
"\n
|
|
492
|
-
';\n font-family: "Inter", sans-serif;\n font-size: 14px;\n text-align: center;\n'
|
|
491
|
+
"\n display: flex;\n flex-direction: row;\n gap: 8px;\n @media (min-width: 1024px) {\n gap: 16px;\n }\n"
|
|
493
492
|
]);
|
|
494
493
|
_templateObject22 = function _templateObject() {
|
|
495
494
|
return data;
|
|
@@ -497,11 +496,21 @@ function _templateObject22() {
|
|
|
497
496
|
return data;
|
|
498
497
|
}
|
|
499
498
|
function _templateObject23() {
|
|
499
|
+
var data = _tagged_template_literal([
|
|
500
|
+
"\n margin: 0;\n color: ",
|
|
501
|
+
';\n font-family: "Inter", sans-serif;\n font-size: 14px;\n text-align: center;\n'
|
|
502
|
+
]);
|
|
503
|
+
_templateObject23 = function _templateObject() {
|
|
504
|
+
return data;
|
|
505
|
+
};
|
|
506
|
+
return data;
|
|
507
|
+
}
|
|
508
|
+
function _templateObject24() {
|
|
500
509
|
var data = _tagged_template_literal([
|
|
501
510
|
"\n width: 28px;\n height: 28px;\n margin: 24px 0 70px;\n border: 3px solid\n ",
|
|
502
511
|
";\n border-top-color: transparent;\n border-radius: 50%;\n animation: siwys-challenge-spin 0.8s linear infinite;\n\n @keyframes siwys-challenge-spin {\n to {\n transform: rotate(360deg);\n }\n }\n"
|
|
503
512
|
]);
|
|
504
|
-
|
|
513
|
+
_templateObject24 = function _templateObject() {
|
|
505
514
|
return data;
|
|
506
515
|
};
|
|
507
516
|
return data;
|
|
@@ -1399,29 +1408,30 @@ var QRContainer = import_styled_components4.default.div(_templateObject8(), func
|
|
|
1399
1408
|
}, function(props) {
|
|
1400
1409
|
return props.$highlight ? props.$theme === "dark" ? "outline: 2px solid #0f0f10; outline-offset: 10px;" : "box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35); border-radius: 20px;" : "";
|
|
1401
1410
|
});
|
|
1402
|
-
var
|
|
1411
|
+
var QRButton = import_styled_components4.default.button(_templateObject9());
|
|
1412
|
+
var ExtensionUnavailableNotice = import_styled_components4.default.p(_templateObject10(), function(props) {
|
|
1403
1413
|
return props.$theme === "dark" ? "#0F0F10" : "#ffffff";
|
|
1404
1414
|
});
|
|
1405
|
-
var Title = import_styled_components4.default.h4(
|
|
1415
|
+
var Title = import_styled_components4.default.h4(_templateObject11(), function(props) {
|
|
1406
1416
|
return props.$theme === "dark" ? "#0F0F10" : "#ffffff";
|
|
1407
1417
|
});
|
|
1408
|
-
var InstructionsContainer = import_styled_components4.default.div(
|
|
1409
|
-
var InstructionsTitle = import_styled_components4.default.h4(
|
|
1418
|
+
var InstructionsContainer = import_styled_components4.default.div(_templateObject12());
|
|
1419
|
+
var InstructionsTitle = import_styled_components4.default.h4(_templateObject13(), function(props) {
|
|
1410
1420
|
return props.$theme === "dark" ? "#0F0F10" : "#ffffff";
|
|
1411
1421
|
});
|
|
1412
|
-
var InstructionsSubtitle = import_styled_components4.default.p(
|
|
1422
|
+
var InstructionsSubtitle = import_styled_components4.default.p(_templateObject14(), function(props) {
|
|
1413
1423
|
return props.$theme === "dark" ? "#0F0F10" : "#ffffff";
|
|
1414
1424
|
});
|
|
1415
|
-
var InstructionsDescription = import_styled_components4.default.ul(
|
|
1425
|
+
var InstructionsDescription = import_styled_components4.default.ul(_templateObject15(), function(props) {
|
|
1416
1426
|
return props.$theme === "dark" ? "#292D36" : "#c4ccd4";
|
|
1417
1427
|
});
|
|
1418
|
-
var InstructionsDescriptionItem = import_styled_components4.default.li(
|
|
1419
|
-
var DownloadTitleContainer = import_styled_components4.default.div(
|
|
1420
|
-
var ParentDownloadContainer = import_styled_components4.default.div(
|
|
1421
|
-
var DownloadContainer = import_styled_components4.default.div(
|
|
1422
|
-
var DownloadContainerFlex = import_styled_components4.default.div(
|
|
1423
|
-
var DownloadAppTitle = import_styled_components4.default.p(
|
|
1424
|
-
var AppIconsContainer = import_styled_components4.default.div(
|
|
1428
|
+
var InstructionsDescriptionItem = import_styled_components4.default.li(_templateObject16());
|
|
1429
|
+
var DownloadTitleContainer = import_styled_components4.default.div(_templateObject17());
|
|
1430
|
+
var ParentDownloadContainer = import_styled_components4.default.div(_templateObject18());
|
|
1431
|
+
var DownloadContainer = import_styled_components4.default.div(_templateObject19());
|
|
1432
|
+
var DownloadContainerFlex = import_styled_components4.default.div(_templateObject20());
|
|
1433
|
+
var DownloadAppTitle = import_styled_components4.default.p(_templateObject21());
|
|
1434
|
+
var AppIconsContainer = import_styled_components4.default.div(_templateObject22());
|
|
1425
1435
|
var REPLACE_CHALLENGE_CODES = [
|
|
1426
1436
|
EXTENSION_ERROR_CODE.expired,
|
|
1427
1437
|
EXTENSION_ERROR_CODE.timedOut
|
|
@@ -1537,10 +1547,10 @@ function readSignInSession(value, options) {
|
|
|
1537
1547
|
did: typeof did === "string" ? did : void 0
|
|
1538
1548
|
};
|
|
1539
1549
|
}
|
|
1540
|
-
var ChallengeMessage = import_styled_components4.default.p(
|
|
1550
|
+
var ChallengeMessage = import_styled_components4.default.p(_templateObject23(), function(props) {
|
|
1541
1551
|
return props.$theme === "dark" ? "#0F0F10" : "#ffffff";
|
|
1542
1552
|
});
|
|
1543
|
-
var ChallengeSpinner = import_styled_components4.default.div(
|
|
1553
|
+
var ChallengeSpinner = import_styled_components4.default.div(_templateObject24(), function(props) {
|
|
1544
1554
|
return props.$theme === "dark" ? "#0F0F10" : "#ffffff";
|
|
1545
1555
|
});
|
|
1546
1556
|
var SignInWithYourSelf = function SignInWithYourSelf(param) {
|
|
@@ -1881,11 +1891,16 @@ var SignInWithYourSelf = function SignInWithYourSelf(param) {
|
|
|
1881
1891
|
$theme: theme,
|
|
1882
1892
|
$highlight: shouldHighlightQrFallback,
|
|
1883
1893
|
"data-testid": "qr-container"
|
|
1894
|
+
}, /* @__PURE__ */ import_react4.default.createElement(QRButton, {
|
|
1895
|
+
type: "button",
|
|
1896
|
+
onClick: defaultSiwysClick,
|
|
1897
|
+
disabled: isExtensionRequestActive || isReplacingChallenge,
|
|
1898
|
+
"aria-label": "Open the challenge in the SELF app or extension"
|
|
1884
1899
|
}, /* @__PURE__ */ import_react4.default.createElement(QrCode_default, {
|
|
1885
1900
|
challengeUrl: challengeUrl,
|
|
1886
1901
|
size: 200,
|
|
1887
1902
|
level: "H"
|
|
1888
|
-
})), shouldHighlightQrFallback && /* @__PURE__ */ import_react4.default.createElement(ExtensionUnavailableNotice, {
|
|
1903
|
+
}))), shouldHighlightQrFallback && /* @__PURE__ */ import_react4.default.createElement(ExtensionUnavailableNotice, {
|
|
1889
1904
|
$theme: theme,
|
|
1890
1905
|
role: "status"
|
|
1891
1906
|
}, "SELF browser extension not detected. Scan this QR with the SELF app or install the extension."), isCYS ? /* @__PURE__ */ import_react4.default.createElement(CysButton, {
|