@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.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1059,7 +1059,7 @@ var DownloadContainerFlex = import_styled_components4.default.div(_templateObjec
|
|
|
1059
1059
|
var DownloadAppTitle = import_styled_components4.default.p(_templateObject19());
|
|
1060
1060
|
var AppIconsContainer = import_styled_components4.default.div(_templateObject20());
|
|
1061
1061
|
var SignInWithYourSelf = function(param) {
|
|
1062
|
-
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;
|
|
1062
|
+
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;
|
|
1063
1063
|
var _ref = _sliced_to_array((0, import_react4.useState)(challengeBaseUrl ? "".concat(challengeBaseUrl, "/challenge?challenge=").concat(challengeDID || "") : "https://www.selfid.link/challenge?challenge=".concat(challengeDID || "")), 2), challengeUrl = _ref[0], setChallengeUrl = _ref[1];
|
|
1064
1064
|
var _ref1 = _sliced_to_array((0, import_react4.useState)(""), 2), challengeDid = _ref1[0], setChallengeDid = _ref1[1];
|
|
1065
1065
|
var _ref2 = _sliced_to_array((0, import_react4.useState)(false), 2), isAuthenticated = _ref2[0], setIsAuthenticated = _ref2[1];
|
|
@@ -1127,21 +1127,22 @@ var SignInWithYourSelf = function(param) {
|
|
|
1127
1127
|
if (isAuthenticated) {
|
|
1128
1128
|
return /* @__PURE__ */ import_react4.default.createElement(Wrapper, null, successComponent);
|
|
1129
1129
|
}
|
|
1130
|
-
return /* @__PURE__ */ import_react4.default.createElement(Wrapper, null, /* @__PURE__ */ import_react4.default.createElement(SignInContainer, null, theme === "dark" ? /* @__PURE__ */ import_react4.default.createElement(CircleLogoBlack_default, {
|
|
1130
|
+
return /* @__PURE__ */ import_react4.default.createElement(Wrapper, null, /* @__PURE__ */ import_react4.default.createElement(SignInContainer, null, showLogo && /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, theme === "dark" ? /* @__PURE__ */ import_react4.default.createElement(CircleLogoBlack_default, {
|
|
1131
1131
|
width: "48",
|
|
1132
1132
|
height: "48"
|
|
1133
1133
|
}) : /* @__PURE__ */ import_react4.default.createElement(CircleLogoWhite_default, {
|
|
1134
1134
|
width: "48",
|
|
1135
1135
|
height: "48"
|
|
1136
1136
|
}), /* @__PURE__ */ import_react4.default.createElement(TitleContainer, null, /* @__PURE__ */ import_react4.default.createElement(Title, {
|
|
1137
|
-
$theme: theme
|
|
1137
|
+
$theme: theme,
|
|
1138
|
+
"data-testid": "sign-in-title"
|
|
1138
1139
|
}, isCYS ? "Connect your" : "Sign in with your"), theme === "dark" ? /* @__PURE__ */ import_react4.default.createElement(SelfTextLogoBlack_default, {
|
|
1139
1140
|
width: "102",
|
|
1140
1141
|
height: "22"
|
|
1141
1142
|
}) : /* @__PURE__ */ import_react4.default.createElement(SelfTextLogoWhite_default, {
|
|
1142
1143
|
width: "102",
|
|
1143
1144
|
height: "22"
|
|
1144
|
-
})), /* @__PURE__ */ import_react4.default.createElement(QRContainer, {
|
|
1145
|
+
}))), /* @__PURE__ */ import_react4.default.createElement(QRContainer, {
|
|
1145
1146
|
$theme: theme
|
|
1146
1147
|
}, /* @__PURE__ */ import_react4.default.createElement(QrCode_default, {
|
|
1147
1148
|
challengeUrl: challengeUrl,
|
|
@@ -1155,7 +1156,7 @@ var SignInWithYourSelf = function(param) {
|
|
|
1155
1156
|
colorTheme: theme,
|
|
1156
1157
|
onClick: defaultSiwysClick,
|
|
1157
1158
|
glow: true
|
|
1158
|
-
})), /* @__PURE__ */ import_react4.default.createElement(InstructionsContainer, null, /* @__PURE__ */ import_react4.default.createElement(InstructionsTitle, {
|
|
1159
|
+
})), showInstructions && /* @__PURE__ */ import_react4.default.createElement(InstructionsContainer, null, /* @__PURE__ */ import_react4.default.createElement(InstructionsTitle, {
|
|
1159
1160
|
$theme: theme
|
|
1160
1161
|
}, isCYS ? "Connect your SELF\u2122 Guide:" : "Sign in with your SELF\u2122 Guide:"), /* @__PURE__ */ import_react4.default.createElement("div", null, /* @__PURE__ */ import_react4.default.createElement(InstructionsSubtitle, {
|
|
1161
1162
|
$theme: theme
|