react-gldn-kit 0.1.60 → 0.1.61
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 +1 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignUp/First/index.js +2 -2
- package/dist/lib/components/Modals/Alert/components/Auth/SignUp/First/types.d.ts +4 -0
- package/dist/lib/zustandStore/forms/signUp/types.d.ts +2 -1
- package/dist/lib/zustandStore/forms/signUp/types.js +1 -0
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ var useHookFabric_1 = require("hooks/useHookFabric");
|
|
|
56
56
|
var styles = __importStar(require("./SignUp.module.css"));
|
|
57
57
|
var ModalContext_1 = require("context/logic/ModalContext");
|
|
58
58
|
var SignUp = function (props) {
|
|
59
|
-
var classes = props.classes, bonusText = props.bonusText, bonusSubText = props.bonusSubText, _a = props.withCongratulationText, withCongratulationText = _a === void 0 ? true : _a;
|
|
59
|
+
var classes = props.classes, bonusText = props.bonusText, bonusSubText = props.bonusSubText, _a = props.withCongratulationText, withCongratulationText = _a === void 0 ? true : _a, registrationSettings = props.registrationSettings;
|
|
60
60
|
var _b = (0, ModalContext_1.useHookProvider)(), useTransportControllers = _b.useTransportControllers, useCurrencies = _b.useCurrencies, useCountryInfo = _b.useCountryInfo, sendRegistrationCommand = _b.sendRegistrationCommand;
|
|
61
61
|
var sendCommand = useTransportControllers().sendCommand;
|
|
62
62
|
var availableCurrencies = (0, useHookFabric_1.useHookFabric)({
|
|
@@ -70,7 +70,7 @@ var SignUp = function (props) {
|
|
|
70
70
|
var setActiveForm = (0, store_2.useZustandRegistrationKitStore)(selectors_2.zustandRegistrationKitSelector.setActiveRegistrationFormAction);
|
|
71
71
|
var setModal = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.closeAndOpenModalAction);
|
|
72
72
|
var data = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
|
|
73
|
-
var _c = data.bonusSignUp, bonusSignUp = _c === void 0 ? false : _c, _d = data.bonusText, modalBonusText = _d === void 0 ? '' : _d, _e = data.bonusSubText, modalBonusSubText = _e === void 0 ? '' : _e, _f = data.withCongratulationText, modalWithCongratulationText = _f === void 0 ? withCongratulationText : _f, _g = data.flow, flow = _g === void 0 ? types_2.ERegistrationFlow.Socket : _g;
|
|
73
|
+
var _c = data.bonusSignUp, bonusSignUp = _c === void 0 ? false : _c, _d = data.bonusText, modalBonusText = _d === void 0 ? '' : _d, _e = data.bonusSubText, modalBonusSubText = _e === void 0 ? '' : _e, _f = data.withCongratulationText, modalWithCongratulationText = _f === void 0 ? withCongratulationText : _f, _g = data.flow, flow = _g === void 0 ? registrationSettings.flow || types_2.ERegistrationFlow.Socket : _g;
|
|
74
74
|
var isCongratulation = modalWithCongratulationText;
|
|
75
75
|
var customBonusText = bonusText || modalBonusText;
|
|
76
76
|
var customBonusSubText = bonusSubText || modalBonusSubText;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { ERegistrationFlow } from 'zustandStore/forms/signUp/types';
|
|
1
2
|
export type SignUpProps = {
|
|
2
3
|
classes?: string;
|
|
3
4
|
bonusText?: string;
|
|
4
5
|
bonusSubText?: string;
|
|
5
6
|
withCongratulationText?: boolean;
|
|
7
|
+
registrationSettings?: {
|
|
8
|
+
flow?: ERegistrationFlow;
|
|
9
|
+
};
|
|
6
10
|
};
|
|
7
11
|
export declare enum ERegistrationType {
|
|
8
12
|
First = 0,
|
|
@@ -12,6 +12,7 @@ var ERegistrationFlow;
|
|
|
12
12
|
(function (ERegistrationFlow) {
|
|
13
13
|
ERegistrationFlow[ERegistrationFlow["Socket"] = 0] = "Socket";
|
|
14
14
|
ERegistrationFlow[ERegistrationFlow["Rest"] = 1] = "Rest";
|
|
15
|
+
ERegistrationFlow[ERegistrationFlow["Redirect"] = 2] = "Redirect";
|
|
15
16
|
})(ERegistrationFlow = exports.ERegistrationFlow || (exports.ERegistrationFlow = {}));
|
|
16
17
|
var ESignUpTheme;
|
|
17
18
|
(function (ESignUpTheme) {
|