@yourself_id/siwys-react-js 0.34.2-feat-clickable-qr-code.93.0 → 0.34.2-gh-action-bump.91.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 +35 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -366,7 +366,8 @@ function _templateObject8() {
|
|
|
366
366
|
}
|
|
367
367
|
function _templateObject9() {
|
|
368
368
|
var data = _tagged_template_literal([
|
|
369
|
-
|
|
369
|
+
'\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: ',
|
|
370
|
+
";\n"
|
|
370
371
|
]);
|
|
371
372
|
_templateObject9 = function _templateObject() {
|
|
372
373
|
return data;
|
|
@@ -375,8 +376,8 @@ function _templateObject9() {
|
|
|
375
376
|
}
|
|
376
377
|
function _templateObject10() {
|
|
377
378
|
var data = _tagged_template_literal([
|
|
378
|
-
'\n
|
|
379
|
-
";\n"
|
|
379
|
+
'\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: ',
|
|
380
|
+
";\n @media (min-width: 1024px) {\n font-size: 28px;\n }\n"
|
|
380
381
|
]);
|
|
381
382
|
_templateObject10 = function _templateObject() {
|
|
382
383
|
return data;
|
|
@@ -385,8 +386,7 @@ function _templateObject10() {
|
|
|
385
386
|
}
|
|
386
387
|
function _templateObject11() {
|
|
387
388
|
var data = _tagged_template_literal([
|
|
388
|
-
|
|
389
|
-
";\n @media (min-width: 1024px) {\n font-size: 28px;\n }\n"
|
|
389
|
+
"\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 24px;\n"
|
|
390
390
|
]);
|
|
391
391
|
_templateObject11 = function _templateObject() {
|
|
392
392
|
return data;
|
|
@@ -395,7 +395,8 @@ function _templateObject11() {
|
|
|
395
395
|
}
|
|
396
396
|
function _templateObject12() {
|
|
397
397
|
var data = _tagged_template_literal([
|
|
398
|
-
|
|
398
|
+
'\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: ',
|
|
399
|
+
";\n"
|
|
399
400
|
]);
|
|
400
401
|
_templateObject12 = function _templateObject() {
|
|
401
402
|
return data;
|
|
@@ -404,7 +405,7 @@ function _templateObject12() {
|
|
|
404
405
|
}
|
|
405
406
|
function _templateObject13() {
|
|
406
407
|
var data = _tagged_template_literal([
|
|
407
|
-
'\n font-family: "Inter", sans-serif;\n margin-top: 0px;\n margin-bottom: 0px;\n font-weight:
|
|
408
|
+
'\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: ',
|
|
408
409
|
";\n"
|
|
409
410
|
]);
|
|
410
411
|
_templateObject13 = function _templateObject() {
|
|
@@ -414,7 +415,7 @@ function _templateObject13() {
|
|
|
414
415
|
}
|
|
415
416
|
function _templateObject14() {
|
|
416
417
|
var data = _tagged_template_literal([
|
|
417
|
-
'\n font-family: "Inter", sans-serif;\n margin-top: 0px;\n margin-bottom: 0px;\n font-weight:
|
|
418
|
+
'\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: ',
|
|
418
419
|
";\n"
|
|
419
420
|
]);
|
|
420
421
|
_templateObject14 = function _templateObject() {
|
|
@@ -424,8 +425,7 @@ function _templateObject14() {
|
|
|
424
425
|
}
|
|
425
426
|
function _templateObject15() {
|
|
426
427
|
var data = _tagged_template_literal([
|
|
427
|
-
|
|
428
|
-
";\n"
|
|
428
|
+
"\n margin-bottom: 8px;\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 margin-bottom: 8px;\n"
|
|
437
|
+
"\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 8px;\n margin-top: 8px;\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: column;\n width: 100%;\n @media (min-width: 1024px) {\n width: auto;\n }\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 width: 100%;\n @media (min-width: 1024px) {\n
|
|
455
|
+
"\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"
|
|
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: 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"
|
|
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 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'
|
|
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 display: flex;\n flex-direction: row;\n gap: 8px;\n @media (min-width: 1024px) {\n gap: 16px;\n }\n"
|
|
483
483
|
]);
|
|
484
484
|
_templateObject21 = function _templateObject() {
|
|
485
485
|
return data;
|
|
@@ -487,30 +487,21 @@ function _templateObject21() {
|
|
|
487
487
|
return data;
|
|
488
488
|
}
|
|
489
489
|
function _templateObject22() {
|
|
490
|
-
var data = _tagged_template_literal([
|
|
491
|
-
"\n display: flex;\n flex-direction: row;\n gap: 8px;\n @media (min-width: 1024px) {\n gap: 16px;\n }\n"
|
|
492
|
-
]);
|
|
493
|
-
_templateObject22 = function _templateObject() {
|
|
494
|
-
return data;
|
|
495
|
-
};
|
|
496
|
-
return data;
|
|
497
|
-
}
|
|
498
|
-
function _templateObject23() {
|
|
499
490
|
var data = _tagged_template_literal([
|
|
500
491
|
"\n margin: 0;\n color: ",
|
|
501
492
|
';\n font-family: "Inter", sans-serif;\n font-size: 14px;\n text-align: center;\n'
|
|
502
493
|
]);
|
|
503
|
-
|
|
494
|
+
_templateObject22 = function _templateObject() {
|
|
504
495
|
return data;
|
|
505
496
|
};
|
|
506
497
|
return data;
|
|
507
498
|
}
|
|
508
|
-
function
|
|
499
|
+
function _templateObject23() {
|
|
509
500
|
var data = _tagged_template_literal([
|
|
510
501
|
"\n width: 28px;\n height: 28px;\n margin: 24px 0 70px;\n border: 3px solid\n ",
|
|
511
502
|
";\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"
|
|
512
503
|
]);
|
|
513
|
-
|
|
504
|
+
_templateObject23 = function _templateObject() {
|
|
514
505
|
return data;
|
|
515
506
|
};
|
|
516
507
|
return data;
|
|
@@ -1408,30 +1399,29 @@ var QRContainer = import_styled_components4.default.div(_templateObject8(), func
|
|
|
1408
1399
|
}, function(props) {
|
|
1409
1400
|
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;" : "";
|
|
1410
1401
|
});
|
|
1411
|
-
var
|
|
1412
|
-
var ExtensionUnavailableNotice = import_styled_components4.default.p(_templateObject10(), function(props) {
|
|
1402
|
+
var ExtensionUnavailableNotice = import_styled_components4.default.p(_templateObject9(), function(props) {
|
|
1413
1403
|
return props.$theme === "dark" ? "#0F0F10" : "#ffffff";
|
|
1414
1404
|
});
|
|
1415
|
-
var Title = import_styled_components4.default.h4(
|
|
1405
|
+
var Title = import_styled_components4.default.h4(_templateObject10(), function(props) {
|
|
1416
1406
|
return props.$theme === "dark" ? "#0F0F10" : "#ffffff";
|
|
1417
1407
|
});
|
|
1418
|
-
var InstructionsContainer = import_styled_components4.default.div(
|
|
1419
|
-
var InstructionsTitle = import_styled_components4.default.h4(
|
|
1408
|
+
var InstructionsContainer = import_styled_components4.default.div(_templateObject11());
|
|
1409
|
+
var InstructionsTitle = import_styled_components4.default.h4(_templateObject12(), function(props) {
|
|
1420
1410
|
return props.$theme === "dark" ? "#0F0F10" : "#ffffff";
|
|
1421
1411
|
});
|
|
1422
|
-
var InstructionsSubtitle = import_styled_components4.default.p(
|
|
1412
|
+
var InstructionsSubtitle = import_styled_components4.default.p(_templateObject13(), function(props) {
|
|
1423
1413
|
return props.$theme === "dark" ? "#0F0F10" : "#ffffff";
|
|
1424
1414
|
});
|
|
1425
|
-
var InstructionsDescription = import_styled_components4.default.ul(
|
|
1415
|
+
var InstructionsDescription = import_styled_components4.default.ul(_templateObject14(), function(props) {
|
|
1426
1416
|
return props.$theme === "dark" ? "#292D36" : "#c4ccd4";
|
|
1427
1417
|
});
|
|
1428
|
-
var InstructionsDescriptionItem = import_styled_components4.default.li(
|
|
1429
|
-
var DownloadTitleContainer = import_styled_components4.default.div(
|
|
1430
|
-
var ParentDownloadContainer = import_styled_components4.default.div(
|
|
1431
|
-
var DownloadContainer = import_styled_components4.default.div(
|
|
1432
|
-
var DownloadContainerFlex = import_styled_components4.default.div(
|
|
1433
|
-
var DownloadAppTitle = import_styled_components4.default.p(
|
|
1434
|
-
var AppIconsContainer = import_styled_components4.default.div(
|
|
1418
|
+
var InstructionsDescriptionItem = import_styled_components4.default.li(_templateObject15());
|
|
1419
|
+
var DownloadTitleContainer = import_styled_components4.default.div(_templateObject16());
|
|
1420
|
+
var ParentDownloadContainer = import_styled_components4.default.div(_templateObject17());
|
|
1421
|
+
var DownloadContainer = import_styled_components4.default.div(_templateObject18());
|
|
1422
|
+
var DownloadContainerFlex = import_styled_components4.default.div(_templateObject19());
|
|
1423
|
+
var DownloadAppTitle = import_styled_components4.default.p(_templateObject20());
|
|
1424
|
+
var AppIconsContainer = import_styled_components4.default.div(_templateObject21());
|
|
1435
1425
|
var REPLACE_CHALLENGE_CODES = [
|
|
1436
1426
|
EXTENSION_ERROR_CODE.expired,
|
|
1437
1427
|
EXTENSION_ERROR_CODE.timedOut
|
|
@@ -1547,10 +1537,10 @@ function readSignInSession(value, options) {
|
|
|
1547
1537
|
did: typeof did === "string" ? did : void 0
|
|
1548
1538
|
};
|
|
1549
1539
|
}
|
|
1550
|
-
var ChallengeMessage = import_styled_components4.default.p(
|
|
1540
|
+
var ChallengeMessage = import_styled_components4.default.p(_templateObject22(), function(props) {
|
|
1551
1541
|
return props.$theme === "dark" ? "#0F0F10" : "#ffffff";
|
|
1552
1542
|
});
|
|
1553
|
-
var ChallengeSpinner = import_styled_components4.default.div(
|
|
1543
|
+
var ChallengeSpinner = import_styled_components4.default.div(_templateObject23(), function(props) {
|
|
1554
1544
|
return props.$theme === "dark" ? "#0F0F10" : "#ffffff";
|
|
1555
1545
|
});
|
|
1556
1546
|
var SignInWithYourSelf = function SignInWithYourSelf(param) {
|
|
@@ -1891,16 +1881,11 @@ var SignInWithYourSelf = function SignInWithYourSelf(param) {
|
|
|
1891
1881
|
$theme: theme,
|
|
1892
1882
|
$highlight: shouldHighlightQrFallback,
|
|
1893
1883
|
"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"
|
|
1899
1884
|
}, /* @__PURE__ */ import_react4.default.createElement(QrCode_default, {
|
|
1900
1885
|
challengeUrl: challengeUrl,
|
|
1901
1886
|
size: 200,
|
|
1902
1887
|
level: "H"
|
|
1903
|
-
}))
|
|
1888
|
+
})), shouldHighlightQrFallback && /* @__PURE__ */ import_react4.default.createElement(ExtensionUnavailableNotice, {
|
|
1904
1889
|
$theme: theme,
|
|
1905
1890
|
role: "status"
|
|
1906
1891
|
}, "SELF browser extension not detected. Scan this QR with the SELF app or install the extension."), isCYS ? /* @__PURE__ */ import_react4.default.createElement(CysButton, {
|