@yourself_id/siwys-react-js 0.23.1-SAPP-542.0 → 0.24.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.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -977,7 +977,7 @@ var DownloadContainerFlex = styled4.div(_templateObject18());
|
|
|
977
977
|
var DownloadAppTitle = styled4.p(_templateObject19());
|
|
978
978
|
var AppIconsContainer = styled4.div(_templateObject20());
|
|
979
979
|
var SignInWithYourSelf = function(param) {
|
|
980
|
-
var challengeDID = param.challengeDID, onSiwysPress = param.onSiwysPress, _param_isCYS = param.isCYS, isCYS = _param_isCYS === void 0 ? false : _param_isCYS, _param_createChallengeUrl = param.createChallengeUrl, createChallengeUrl = _param_createChallengeUrl === void 0 ? void 0 : _param_createChallengeUrl, _param_pollForAuthUrl = param.pollForAuthUrl, pollForAuthUrl = _param_pollForAuthUrl === void 0 ? void 0 : _param_pollForAuthUrl, successComponent = param.successComponent, _param_theme = param.theme, theme = _param_theme === void 0 ? "light" : _param_theme, _param_challengeBaseUrl = param.challengeBaseUrl, challengeBaseUrl = _param_challengeBaseUrl === void 0 ? "" : _param_challengeBaseUrl;
|
|
980
|
+
var challengeDID = param.challengeDID, onSiwysPress = param.onSiwysPress, _param_isCYS = param.isCYS, isCYS = _param_isCYS === void 0 ? false : _param_isCYS, _param_createChallengeUrl = param.createChallengeUrl, createChallengeUrl = _param_createChallengeUrl === void 0 ? void 0 : _param_createChallengeUrl, _param_pollForAuthUrl = param.pollForAuthUrl, pollForAuthUrl = _param_pollForAuthUrl === void 0 ? void 0 : _param_pollForAuthUrl, successComponent = param.successComponent, _param_theme = param.theme, theme = _param_theme === void 0 ? "light" : _param_theme, _param_challengeBaseUrl = param.challengeBaseUrl, challengeBaseUrl = _param_challengeBaseUrl === void 0 ? "" : _param_challengeBaseUrl, _param_showLogo = param.showLogo, showLogo = _param_showLogo === void 0 ? true : _param_showLogo, _param_showInstructions = param.showInstructions, showInstructions = _param_showInstructions === void 0 ? true : _param_showInstructions;
|
|
981
981
|
var _useState2 = _sliced_to_array(useState2(challengeBaseUrl ? "".concat(challengeBaseUrl, "/challenge?challenge=").concat(challengeDID || "") : "https://www.selfid.link/challenge?challenge=".concat(challengeDID || "")), 2), challengeUrl = _useState2[0], setChallengeUrl = _useState2[1];
|
|
982
982
|
var _useState21 = _sliced_to_array(useState2(""), 2), challengeDid = _useState21[0], setChallengeDid = _useState21[1];
|
|
983
983
|
var _useState22 = _sliced_to_array(useState2(false), 2), isAuthenticated = _useState22[0], setIsAuthenticated = _useState22[1];
|
|
@@ -1045,21 +1045,22 @@ var SignInWithYourSelf = function(param) {
|
|
|
1045
1045
|
if (isAuthenticated) {
|
|
1046
1046
|
return /* @__PURE__ */ React17.createElement(Wrapper, null, successComponent);
|
|
1047
1047
|
}
|
|
1048
|
-
return /* @__PURE__ */ React17.createElement(Wrapper, null, /* @__PURE__ */ React17.createElement(SignInContainer, null, theme === "dark" ? /* @__PURE__ */ React17.createElement(CircleLogoBlack_default, {
|
|
1048
|
+
return /* @__PURE__ */ React17.createElement(Wrapper, null, /* @__PURE__ */ React17.createElement(SignInContainer, null, showLogo && /* @__PURE__ */ React17.createElement(React17.Fragment, null, theme === "dark" ? /* @__PURE__ */ React17.createElement(CircleLogoBlack_default, {
|
|
1049
1049
|
width: "48",
|
|
1050
1050
|
height: "48"
|
|
1051
1051
|
}) : /* @__PURE__ */ React17.createElement(CircleLogoWhite_default, {
|
|
1052
1052
|
width: "48",
|
|
1053
1053
|
height: "48"
|
|
1054
1054
|
}), /* @__PURE__ */ React17.createElement(TitleContainer, null, /* @__PURE__ */ React17.createElement(Title, {
|
|
1055
|
-
$theme: theme
|
|
1055
|
+
$theme: theme,
|
|
1056
|
+
"data-testid": "sign-in-title"
|
|
1056
1057
|
}, isCYS ? "Connect your" : "Sign in with your"), theme === "dark" ? /* @__PURE__ */ React17.createElement(SelfTextLogoBlack_default, {
|
|
1057
1058
|
width: "102",
|
|
1058
1059
|
height: "22"
|
|
1059
1060
|
}) : /* @__PURE__ */ React17.createElement(SelfTextLogoWhite_default, {
|
|
1060
1061
|
width: "102",
|
|
1061
1062
|
height: "22"
|
|
1062
|
-
})), /* @__PURE__ */ React17.createElement(QRContainer, {
|
|
1063
|
+
}))), /* @__PURE__ */ React17.createElement(QRContainer, {
|
|
1063
1064
|
$theme: theme
|
|
1064
1065
|
}, /* @__PURE__ */ React17.createElement(QrCode_default, {
|
|
1065
1066
|
challengeUrl: challengeUrl,
|
|
@@ -1073,7 +1074,7 @@ var SignInWithYourSelf = function(param) {
|
|
|
1073
1074
|
colorTheme: theme,
|
|
1074
1075
|
onClick: defaultSiwysClick,
|
|
1075
1076
|
glow: true
|
|
1076
|
-
})), /* @__PURE__ */ React17.createElement(InstructionsContainer, null, /* @__PURE__ */ React17.createElement(InstructionsTitle, {
|
|
1077
|
+
})), showInstructions && /* @__PURE__ */ React17.createElement(InstructionsContainer, null, /* @__PURE__ */ React17.createElement(InstructionsTitle, {
|
|
1077
1078
|
$theme: theme
|
|
1078
1079
|
}, isCYS ? "Connect your SELF\u2122 Guide:" : "Sign in with your SELF\u2122 Guide:"), /* @__PURE__ */ React17.createElement("div", null, /* @__PURE__ */ React17.createElement(InstructionsSubtitle, {
|
|
1079
1080
|
$theme: theme
|