ordering-components-external 13.2.32 → 13.2.33

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.
Files changed (14) hide show
  1. package/_bundles/{7.ordering-component.5e6b244837705c07824f.js → 7.ordering-component.dd1dbfe86e478023f67a.js} +1 -1
  2. package/_bundles/{ordering-component.5e6b244837705c07824f.js → ordering-component.dd1dbfe86e478023f67a.js} +2 -2
  3. package/_modules/components/SignupForm/index.js +1 -1
  4. package/_modules/components/UserVerification/index.js +8 -1
  5. package/package.json +1 -1
  6. /package/_bundles/{0.ordering-component.5e6b244837705c07824f.js → 0.ordering-component.dd1dbfe86e478023f67a.js} +0 -0
  7. /package/_bundles/{1.ordering-component.5e6b244837705c07824f.js → 1.ordering-component.dd1dbfe86e478023f67a.js} +0 -0
  8. /package/_bundles/{2.ordering-component.5e6b244837705c07824f.js → 2.ordering-component.dd1dbfe86e478023f67a.js} +0 -0
  9. /package/_bundles/{4.ordering-component.5e6b244837705c07824f.js → 4.ordering-component.dd1dbfe86e478023f67a.js} +0 -0
  10. /package/_bundles/{5.ordering-component.5e6b244837705c07824f.js → 5.ordering-component.dd1dbfe86e478023f67a.js} +0 -0
  11. /package/_bundles/{6.ordering-component.5e6b244837705c07824f.js → 6.ordering-component.dd1dbfe86e478023f67a.js} +0 -0
  12. /package/_bundles/{7.ordering-component.5e6b244837705c07824f.js.LICENSE.txt → 7.ordering-component.dd1dbfe86e478023f67a.js.LICENSE.txt} +0 -0
  13. /package/_bundles/{8.ordering-component.5e6b244837705c07824f.js → 8.ordering-component.dd1dbfe86e478023f67a.js} +0 -0
  14. /package/_bundles/{ordering-component.5e6b244837705c07824f.js.LICENSE.txt → ordering-component.dd1dbfe86e478023f67a.js.LICENSE.txt} +0 -0
@@ -134,7 +134,7 @@ var SignupForm = exports.SignupForm = function SignupForm(props) {
134
134
  setCellphoneStartZero = _useState18[1];
135
135
  var useSignUpOtpEmail = (configs === null || configs === void 0 || (_configs$email_otp_si = configs.email_otp_signup_enabled) === null || _configs$email_otp_si === void 0 ? void 0 : _configs$email_otp_si.value) === '1' && !isCustomerMode;
136
136
  var useSignUpOtpCellphone = (configs === null || configs === void 0 || (_configs$phone_otp_si = configs.phone_otp_signup_enabled) === null || _configs$phone_otp_si === void 0 ? void 0 : _configs$phone_otp_si.value) === '1' && !isCustomerMode;
137
- var useSignUpOtpWhatsapp = (configs === null || configs === void 0 || (_configs$whatsapp_otp = configs.whatsapp_otp_signup_enabled) === null || _configs$whatsapp_otp === void 0 ? void 0 : _configs$whatsapp_otp.value) === '1' && !isCustomerMode;
137
+ var useSignUpOtpWhatsapp = (configs === null || configs === void 0 || (_configs$whatsapp_otp = configs.whatsapp_otp_login_enabled) === null || _configs$whatsapp_otp === void 0 ? void 0 : _configs$whatsapp_otp.value) === '1' && !isCustomerMode;
138
138
  var useSignUpFullDetails = useSignUpOtpEmail || useSignUpOtpCellphone || useSignUpOtpWhatsapp ? (configs === null || configs === void 0 || (_configs$full_details = configs.full_details_signup_enabled) === null || _configs$full_details === void 0 ? void 0 : _configs$full_details.value) === '1' : true;
139
139
  var defaultSignUpTab = useSignUpFullDetails ? 'default' : useSignUpOtpEmail ? 'otpEmail' : 'otpCellphone';
140
140
  var _useState19 = (0, _react.useState)(defaultSignUpTab),
@@ -8,6 +8,7 @@ exports.UserVerification = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _SessionContext = require("../../contexts/SessionContext");
10
10
  var _ApiContext = require("../../contexts/ApiContext");
11
+ var _ConfigContext = require("../../contexts/ConfigContext");
11
12
  var _WebsocketContext = require("../../contexts/WebsocketContext");
12
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t5 in e) "default" !== _t5 && {}.hasOwnProperty.call(e, _t5) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t5)) && (i.get || i.set) ? o(f, _t5, i) : f[_t5] = e[_t5]); return f; })(e, t); }
13
14
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
@@ -30,6 +31,7 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
30
31
  * Component to manage User Verification behavior without UI component
31
32
  */
32
33
  var UserVerification = exports.UserVerification = function UserVerification(props) {
34
+ var _configs$whatsapp_otp;
33
35
  var UIComponent = props.UIComponent;
34
36
  var _useApi = (0, _ApiContext.useApi)(),
35
37
  _useApi2 = _slicedToArray(_useApi, 1),
@@ -41,6 +43,10 @@ var UserVerification = exports.UserVerification = function UserVerification(prop
41
43
  user = _useSession2$.user,
42
44
  token = _useSession2$.token,
43
45
  changeUser = _useSession2[1].changeUser;
46
+ var _useConfig = (0, _ConfigContext.useConfig)(),
47
+ _useConfig2 = _slicedToArray(_useConfig, 1),
48
+ configs = _useConfig2[0].configs;
49
+ var useWhatsappVerification = (configs === null || configs === void 0 || (_configs$whatsapp_otp = configs.whatsapp_otp_login_enabled) === null || _configs$whatsapp_otp === void 0 ? void 0 : _configs$whatsapp_otp.value) === '1';
44
50
  var _useState = (0, _react.useState)({
45
51
  loadingSendCode: false,
46
52
  resultSendCode: null,
@@ -339,6 +345,7 @@ var UserVerification = exports.UserVerification = function UserVerification(prop
339
345
  sendVerifyPhoneCode: sendVerifyPhoneCode,
340
346
  checkVerifyEmailCode: checkVerifyEmailCode,
341
347
  checkVerifyPhoneCode: checkVerifyPhoneCode,
342
- cleanErrorsState: cleanErrorsState
348
+ cleanErrorsState: cleanErrorsState,
349
+ useWhatsappVerification: useWhatsappVerification
343
350
  })));
344
351
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-components-external",
3
- "version": "13.2.32",
3
+ "version": "13.2.33",
4
4
  "description": "Ordering Internal Dashboard",
5
5
  "main": "./_modules/index.js",
6
6
  "scripts": {