@authing/react-ui-components 3.0.2-beta.5 → 3.0.2-beta.6

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 (44) hide show
  1. package/build/asset-manifest.json +18 -18
  2. package/build/index.html +1 -1
  3. package/build/static/css/{2.51c07e65.chunk.css → 2.d6432d93.chunk.css} +3 -3
  4. package/build/static/css/2.d6432d93.chunk.css.map +1 -0
  5. package/build/static/css/main.6a8701e8.chunk.css +2 -0
  6. package/build/static/css/main.6a8701e8.chunk.css.map +1 -0
  7. package/build/static/js/2.9e599951.chunk.js +3 -0
  8. package/build/static/js/{2.bbae9fdb.chunk.js.LICENSE.txt → 2.9e599951.chunk.js.LICENSE.txt} +0 -0
  9. package/build/static/js/2.9e599951.chunk.js.map +1 -0
  10. package/build/static/js/{3.fd17f196.chunk.js → 3.ed27e06b.chunk.js} +2 -2
  11. package/build/static/js/{3.fd17f196.chunk.js.map → 3.ed27e06b.chunk.js.map} +1 -1
  12. package/build/static/js/main.bdf1d850.chunk.js +2 -0
  13. package/build/static/js/main.bdf1d850.chunk.js.map +1 -0
  14. package/build/static/js/{runtime-main.ef138021.js → runtime-main.9a428724.js} +2 -2
  15. package/build/static/js/{runtime-main.ef138021.js.map → runtime-main.9a428724.js.map} +1 -1
  16. package/components/BindTotp/interface.ts +1 -1
  17. package/components/ChangePassword/core/rotateReset.tsx +19 -8
  18. package/components/CompleteInfo/interface.ts +1 -1
  19. package/components/Guard/config.ts +2 -2
  20. package/components/Guard/event.ts +2 -2
  21. package/components/Login/index.tsx +1 -1
  22. package/components/Login/{props.ts → interface.ts} +0 -0
  23. package/components/Login/socialLogin/index.tsx +1 -1
  24. package/components/MFA/core/email.tsx +1 -1
  25. package/components/MFA/core/sms.tsx +1 -1
  26. package/components/MFA/core/totp.tsx +1 -1
  27. package/components/MFA/index.tsx +1 -1
  28. package/components/MFA/{props.ts → interface.ts} +0 -0
  29. package/components/MFA/mfaMethods/index.tsx +1 -1
  30. package/components/Register/index.tsx +1 -1
  31. package/components/Register/{props.ts → interface.ts} +0 -0
  32. package/components/index.ts +4 -7
  33. package/examples.tsx +1 -1
  34. package/lib/index.d.ts +31 -35
  35. package/lib/index.min.css +2 -2
  36. package/lib/index.min.js +1 -1
  37. package/package.json +1 -1
  38. package/build/static/css/2.51c07e65.chunk.css.map +0 -1
  39. package/build/static/css/main.779f221a.chunk.css +0 -2
  40. package/build/static/css/main.779f221a.chunk.css.map +0 -1
  41. package/build/static/js/2.bbae9fdb.chunk.js +0 -3
  42. package/build/static/js/2.bbae9fdb.chunk.js.map +0 -1
  43. package/build/static/js/main.5f341531.chunk.js +0 -2
  44. package/build/static/js/main.5f341531.chunk.js.map +0 -1
@@ -1,2 +1,2 @@
1
- !function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);p.length;)p.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"fd17f196"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,r[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this["webpackJsonp@authing/react-ui-components"]=this["webpackJsonp@authing/react-ui-components"]||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var f=c;r()}([]);
2
- //# sourceMappingURL=runtime-main.ef138021.js.map
1
+ !function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);p.length;)p.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"ed27e06b"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,r[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this["webpackJsonp@authing/react-ui-components"]=this["webpackJsonp@authing/react-ui-components"]||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var f=c;r()}([]);
2
+ //# sourceMappingURL=runtime-main.9a428724.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","e","promises","installedChunkData","promise","Promise","resolve","reject","onScriptComplete","script","document","createElement","charset","timeout","nc","setAttribute","src","p","jsonpScriptSrc","error","Error","event","onerror","onload","clearTimeout","chunk","errorType","type","realSrc","target","message","name","request","undefined","setTimeout","head","appendChild","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","err","console","jsonpArray","this","oldJsonpFunction","slice"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI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AAIM,KAAON,EAAOvD,EAAoB8C,EAAEa,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIR3D,EAAoB+D,EAAI,SAAS1D,GAChC,IAAI0C,EAAS1C,GAAUA,EAAOqD,WAC7B,WAAwB,OAAOrD,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAL,EAAoB8C,EAAEC,EAAQ,IAAKA,GAC5BA,GAIR/C,EAAoBgD,EAAI,SAASgB,EAAQC,GAAY,OAAOnF,OAAOC,UAAUC,eAAeC,KAAK+E,EAAQC,IAGzGjE,EAAoBuB,EAAI,IAGxBvB,EAAoBkE,GAAK,SAASC,GAA2B,MAApBC,QAAQ3C,MAAM0C,GAAYA,GAEnE,IAAIE,EAAaC,KAAK,4CAA8CA,KAAK,6CAA+C,GACpHC,EAAmBF,EAAWlF,KAAK2E,KAAKO,GAC5CA,EAAWlF,KAAOf,EAClBiG,EAAaA,EAAWG,QACxB,IAAI,IAAI7F,EAAI,EAAGA,EAAI0F,EAAWxF,OAAQF,IAAKP,EAAqBiG,EAAW1F,IAC3E,IAAIU,EAAsBkF,EAI1B9E,I","file":"static/js/runtime-main.ef138021.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"static/js/\" + ({}[chunkId]||chunkId) + \".\" + {\"3\":\"fd17f196\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = this[\"webpackJsonp@authing/react-ui-components\"] = this[\"webpackJsonp@authing/react-ui-components\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","e","promises","installedChunkData","promise","Promise","resolve","reject","onScriptComplete","script","document","createElement","charset","timeout","nc","setAttribute","src","p","jsonpScriptSrc","error","Error","event","onerror","onload","clearTimeout","chunk","errorType","type","realSrc","target","message","name","request","undefined","setTimeout","head","appendChild","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","err","console","jsonpArray","this","oldJsonpFunction","slice"],"mappings":"aACE,SAASA,EAAqBC,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EAClBiG,EAAaA,EAAWG,QACxB,IAAI,IAAI7F,EAAI,EAAGA,EAAI0F,EAAWxF,OAAQF,IAAKP,EAAqBiG,EAAW1F,IAC3E,IAAIU,EAAsBkF,EAI1B9E,I","file":"static/js/runtime-main.9a428724.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"static/js/\" + ({}[chunkId]||chunkId) + \".\" + {\"3\":\"ed27e06b\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = this[\"webpackJsonp@authing/react-ui-components\"] = this[\"webpackJsonp@authing/react-ui-components\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  import { getDefaultG2Config, IG2Config, IG2Events, IG2FCProps } from '../Type'
2
2
  import { AuthenticationClient, User } from '..'
3
- import { GuardMFAInitData } from '../MFA/props'
3
+ import { GuardMFAInitData } from '../MFA/interface'
4
4
 
5
5
  export interface BindTotpConfig extends IG2Config {}
6
6
 
@@ -1,11 +1,12 @@
1
1
  import React, { useRef } from 'react'
2
2
  import { useTranslation } from 'react-i18next'
3
- import { Form, Input } from 'antd'
3
+ import { Form, Input, message } from 'antd'
4
4
 
5
5
  import { LockOutlined } from '@ant-design/icons'
6
6
 
7
7
  import { getPasswordValidate } from '../../_utils'
8
8
  import SubmitButton from '../../SubmitButton'
9
+ import { useAuthClient } from '../../Guard/authClient'
9
10
 
10
11
  interface RotateResetProps {
11
12
  onReset: any
@@ -16,16 +17,26 @@ interface RotateResetProps {
16
17
  export const RotateReset = (props: RotateResetProps) => {
17
18
  const { t } = useTranslation()
18
19
  let [form] = Form.useForm()
19
- // let client = useAuthClient()
20
+ let authClient = useAuthClient()
20
21
  let submitButtonRef = useRef<any>(null)
21
22
 
22
23
  const onFinish = async (values: any) => {
23
- // let newPassword = values.password
24
- // let res = await client.resetPasswordByFirstLoginToken({
25
- // token: props.initData.token,
26
- // password: newPassword,
27
- // })
28
- // props.onReset(res)
24
+ let { password, oldPassword } = values
25
+ submitButtonRef?.current?.onSpin(true)
26
+
27
+ try {
28
+ let res = await authClient.resetPasswordByForceResetToken({
29
+ token: props.initData.token,
30
+ newPassword: password,
31
+ oldPassword: oldPassword,
32
+ })
33
+ props.onReset(res)
34
+ } catch (error) {
35
+ message.error(error.message)
36
+ submitButtonRef?.current?.onError()
37
+ } finally {
38
+ submitButtonRef?.current?.onSpin(false)
39
+ }
29
40
  }
30
41
 
31
42
  return (
@@ -7,7 +7,7 @@ const defaultConfig: CompleteInfoConfig = {
7
7
  ...getDefaultG2Config(),
8
8
  }
9
9
 
10
- export const getDefaultLoginConfig = (): CompleteInfoConfig => ({
10
+ export const getDefaultCompleteInfoConfig = (): CompleteInfoConfig => ({
11
11
  ...getDefaultG2Config(),
12
12
  ...defaultConfig,
13
13
  })
@@ -1,5 +1,5 @@
1
- import { getDefaultLoginConfig, LoginConfig } from '../Login/props'
2
- import { getDefaultRegisterConfig, RegisterConfig } from '../Register/props'
1
+ import { getDefaultLoginConfig, LoginConfig } from '../Login/interface'
2
+ import { getDefaultRegisterConfig, RegisterConfig } from '../Register/interface'
3
3
 
4
4
  export interface GuardComponentConifg extends Partial<GuardLocalConfig> {}
5
5
 
@@ -1,8 +1,8 @@
1
1
  import { message } from 'antd'
2
2
  import { CompleteInfoEvents } from '../CompleteInfo/interface'
3
3
  import { ForgetPasswordEvents } from '../ForgetPassword/interface'
4
- import { LoginEvents } from '../Login/props'
5
- import { RegisterEvents } from '../Register/props'
4
+ import { LoginEvents } from '../Login/interface'
5
+ import { RegisterEvents } from '../Register/interface'
6
6
  import { i18n } from '../_utils/locales'
7
7
 
8
8
  export interface GuardEvents
@@ -12,7 +12,7 @@ import { LoginWithWechatMiniQrcode } from './core/withWechatMiniQrcode'
12
12
  import { LoginWithWechatmpQrcode } from './core/withWechatmpQrcode'
13
13
  import { codeMap } from './codemap'
14
14
  import { SocialLogin } from './socialLogin'
15
- import { GuardLoginViewProps } from './props'
15
+ import { GuardLoginViewProps } from './interface'
16
16
 
17
17
  import { useAuthClient } from '../Guard/authClient'
18
18
  import { GuardModuleType } from '../Guard/module'
File without changes
@@ -26,7 +26,7 @@ import {
26
26
  import { useScreenSize } from '../../AuthingGuard/hooks/useScreenSize'
27
27
  import { useAuthClient } from '../../Guard/authClient'
28
28
  import { IconFont } from '../../IconFont'
29
- import { LoginConfig } from '../props'
29
+ import { LoginConfig } from '../interface'
30
30
  import './style.less'
31
31
 
32
32
  export interface SocialLoginProps {
@@ -9,7 +9,7 @@ import { useAuthClient } from '../../Guard/authClient'
9
9
  import { SendCodeBtn } from '../../SendCode/SendCodeBtn'
10
10
  import SubmitButton from '../../SubmitButton'
11
11
  import { EmailFormItem, ICheckProps } from '../../ValidatorRules'
12
- import { MFAConfig } from '../props'
12
+ import { MFAConfig } from '../interface'
13
13
  import { VerifyCodeFormItem } from '../VerifyCodeInput/VerifyCodeFormItem'
14
14
 
15
15
  interface BindMFAEmailProps {
@@ -10,7 +10,7 @@ import { SendCodeBtn } from '../../SendCode/SendCodeBtn'
10
10
  import SubmitButton from '../../SubmitButton'
11
11
  import { ICheckProps, PhoneFormItem } from '../../ValidatorRules'
12
12
  import { VerifyCodeFormItem } from '../VerifyCodeInput/VerifyCodeFormItem'
13
- import { MFAConfig } from '../props'
13
+ import { MFAConfig } from '../interface'
14
14
  import { InputNumber } from '../../InputNumber'
15
15
  export interface BindMFASmsProps {
16
16
  mfaToken: string
@@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next'
4
4
  import { useAsyncFn } from 'react-use'
5
5
  import { GuardModuleType } from '../../Guard/module'
6
6
  import { useGuardHttp } from '../../_utils/guradHttp'
7
- import { GuardMFAInitData, MFAConfig } from '../props'
7
+ import { GuardMFAInitData, MFAConfig } from '../interface'
8
8
  import { message as Message } from 'antd'
9
9
  import SubmitButton from '../../SubmitButton'
10
10
  import { VerifyCodeFormItem } from '../VerifyCodeInput/VerifyCodeFormItem'
@@ -7,7 +7,7 @@ import { MFASms } from './core/sms'
7
7
  import { MFAFace } from './core/face'
8
8
  import { MFATotp } from './core/totp'
9
9
  import { MFAMethods } from './mfaMethods'
10
- import { GuardMFAViewProps, MFAType } from './props'
10
+ import { GuardMFAViewProps, MFAType } from './interface'
11
11
  import { useAuthClient } from '../Guard/authClient'
12
12
  import { codeMap } from './codemap'
13
13
  import './styles.less'
File without changes
@@ -2,7 +2,7 @@ import React, { useMemo, useState } from 'react'
2
2
  import { useTranslation } from 'react-i18next'
3
3
  import { Button } from 'antd'
4
4
  import { IconFont } from '../../IconFont'
5
- import { GuardMFAInitData, MFAType } from '../props'
5
+ import { GuardMFAInitData, MFAType } from '../interface'
6
6
  import { i18n } from '../../_utils/locales'
7
7
  import './style.less'
8
8
 
@@ -7,7 +7,7 @@ import { useAuthClient } from '../Guard/authClient'
7
7
  import { GuardModuleType } from '../Guard/module'
8
8
  import { RegisterWithEmail } from './core/WithEmail'
9
9
  import { RegisterWithPhone } from './core/WithPhone'
10
- import { GuardRegisterViewProps } from './props'
10
+ import { GuardRegisterViewProps } from './interface'
11
11
  import { codeMap } from './codemap'
12
12
 
13
13
  export const GuardRegisterView: React.FC<GuardRegisterViewProps> = ({
File without changes
@@ -1,12 +1,9 @@
1
+ export * from './_utils/config'
2
+ export type { AuthenticationClientOptions } from 'authing-js-sdk'
3
+
1
4
  export * from './AuthingGuard/types'
2
5
  export * from './AuthingGuard/hooks'
3
- export type { AuthenticationClientOptions } from 'authing-js-sdk'
6
+ export * from './AuthingGuard'
4
7
 
5
8
  export * from './Guard'
6
9
  export * from './Type'
7
- export * from './BindTotp/interface'
8
- export * from './CompleteInfo/interface'
9
- export * from './DownloadAuthenticator/interface'
10
- export * from './Error/interface'
11
- export * from './ForgetPassword/interface'
12
- export * from './_utils/config'
package/examples.tsx CHANGED
@@ -3,7 +3,7 @@ import ReactDOM from 'react-dom'
3
3
 
4
4
  import reportWebVitals from './reportWebVitals'
5
5
  import { message } from 'antd'
6
- import { Guard } from './components/Guard'
6
+ import { Guard } from './components'
7
7
 
8
8
  const App = () => {
9
9
  return (
package/lib/index.d.ts CHANGED
@@ -1050,7 +1050,7 @@ declare module '@authing/react-ui-components/components/BindTotp/index' {
1050
1050
  declare module '@authing/react-ui-components/components/BindTotp/interface' {
1051
1051
  import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1052
1052
  import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
1053
- import { GuardMFAInitData } from '@authing/react-ui-components/components/MFA/props';
1053
+ import { GuardMFAInitData } from '@authing/react-ui-components/components/MFA/interface';
1054
1054
  export interface BindTotpConfig extends IG2Config {
1055
1055
  }
1056
1056
  export const getDefaultMFAConfig: () => BindTotpConfig;
@@ -1125,7 +1125,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1125
1125
  import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1126
1126
  export interface CompleteInfoConfig extends IG2Config {
1127
1127
  }
1128
- export const getDefaultLoginConfig: () => CompleteInfoConfig;
1128
+ export const getDefaultCompleteInfoConfig: () => CompleteInfoConfig;
1129
1129
  export interface CompleteInfoEvents extends IG2Events {
1130
1130
  onRegisterInfoCompleted?: (user: User, udfs: {
1131
1131
  definition: any;
@@ -1254,8 +1254,8 @@ declare module '@authing/react-ui-components/components/Guard/authClient' {
1254
1254
 
1255
1255
  }
1256
1256
  declare module '@authing/react-ui-components/components/Guard/config' {
1257
- import { LoginConfig } from '@authing/react-ui-components/components/Login/props';
1258
- import { RegisterConfig } from '@authing/react-ui-components/components/Register/props';
1257
+ import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
1258
+ import { RegisterConfig } from '@authing/react-ui-components/components/Register/interface';
1259
1259
  export interface GuardComponentConifg extends Partial<GuardLocalConfig> {
1260
1260
  }
1261
1261
  export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
@@ -1266,8 +1266,8 @@ declare module '@authing/react-ui-components/components/Guard/config' {
1266
1266
  declare module '@authing/react-ui-components/components/Guard/event' {
1267
1267
  import { CompleteInfoEvents } from '@authing/react-ui-components/components/CompleteInfo/interface';
1268
1268
  import { ForgetPasswordEvents } from '@authing/react-ui-components/components/ForgetPassword/interface';
1269
- import { LoginEvents } from '@authing/react-ui-components/components/Login/props';
1270
- import { RegisterEvents } from '@authing/react-ui-components/components/Register/props';
1269
+ import { LoginEvents } from '@authing/react-ui-components/components/Login/interface';
1270
+ import { RegisterEvents } from '@authing/react-ui-components/components/Register/interface';
1271
1271
  export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents {
1272
1272
  }
1273
1273
  export const guardEventsFilter: (props: any) => GuardEvents;
@@ -1499,12 +1499,12 @@ declare module '@authing/react-ui-components/components/Login/core/withWechatmpQ
1499
1499
  }
1500
1500
  declare module '@authing/react-ui-components/components/Login/index' {
1501
1501
  /// <reference types="react" />
1502
- import { GuardLoginViewProps } from '@authing/react-ui-components/components/Login/props';
1502
+ import { GuardLoginViewProps } from '@authing/react-ui-components/components/Login/interface';
1503
1503
  import './styles.less';
1504
1504
  export const GuardLoginView: (props: GuardLoginViewProps) => JSX.Element;
1505
1505
 
1506
1506
  }
1507
- declare module '@authing/react-ui-components/components/Login/props' {
1507
+ declare module '@authing/react-ui-components/components/Login/interface' {
1508
1508
  import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/components/Type/index';
1509
1509
  import { SocialConnectionProvider } from 'authing-js-sdk';
1510
1510
  import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
@@ -1540,7 +1540,7 @@ declare module '@authing/react-ui-components/components/Login/props' {
1540
1540
  }
1541
1541
  declare module '@authing/react-ui-components/components/Login/socialLogin/index' {
1542
1542
  import React from 'react';
1543
- import { LoginConfig } from '@authing/react-ui-components/components/Login/props';
1543
+ import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
1544
1544
  import './style.less';
1545
1545
  export interface SocialLoginProps {
1546
1546
  appId: string;
@@ -1583,7 +1583,7 @@ declare module '@authing/react-ui-components/components/MFA/codemap' {
1583
1583
  }
1584
1584
  declare module '@authing/react-ui-components/components/MFA/core/email' {
1585
1585
  import React from 'react';
1586
- import { MFAConfig } from '@authing/react-ui-components/components/MFA/props';
1586
+ import { MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
1587
1587
  interface BindMFAEmailProps {
1588
1588
  mfaToken: string;
1589
1589
  onBind: (email: string) => void;
@@ -1629,7 +1629,7 @@ declare module '@authing/react-ui-components/components/MFA/core/face_deps' {
1629
1629
  }
1630
1630
  declare module '@authing/react-ui-components/components/MFA/core/sms' {
1631
1631
  import React from 'react';
1632
- import { MFAConfig } from '@authing/react-ui-components/components/MFA/props';
1632
+ import { MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
1633
1633
  export interface BindMFASmsProps {
1634
1634
  mfaToken: string;
1635
1635
  onBind: (phone: string) => void;
@@ -1654,7 +1654,7 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
1654
1654
  }
1655
1655
  declare module '@authing/react-ui-components/components/MFA/core/totp' {
1656
1656
  import React from 'react';
1657
- import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/components/MFA/props';
1657
+ import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
1658
1658
  export interface BindMFATotpProps {
1659
1659
  initData: GuardMFAInitData;
1660
1660
  changeModule: any;
@@ -1676,24 +1676,12 @@ declare module '@authing/react-ui-components/components/MFA/core/totp' {
1676
1676
  }
1677
1677
  declare module '@authing/react-ui-components/components/MFA/index' {
1678
1678
  import React from 'react';
1679
- import { GuardMFAViewProps } from '@authing/react-ui-components/components/MFA/props';
1679
+ import { GuardMFAViewProps } from '@authing/react-ui-components/components/MFA/interface';
1680
1680
  import './styles.less';
1681
1681
  export const GuardMFAView: React.FC<GuardMFAViewProps>;
1682
1682
 
1683
1683
  }
1684
- declare module '@authing/react-ui-components/components/MFA/mfaMethods/index' {
1685
- import React from 'react';
1686
- import { GuardMFAInitData, MFAType } from '@authing/react-ui-components/components/MFA/props';
1687
- import './style.less';
1688
- export interface MFAMethodsProps {
1689
- applicationMfa: GuardMFAInitData['applicationMfa'];
1690
- method: MFAType;
1691
- onChangeMethod: (type: MFAType) => void;
1692
- }
1693
- export const MFAMethods: React.FC<MFAMethodsProps>;
1694
-
1695
- }
1696
- declare module '@authing/react-ui-components/components/MFA/props' {
1684
+ declare module '@authing/react-ui-components/components/MFA/interface' {
1697
1685
  import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1698
1686
  import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
1699
1687
  export interface MFAConfig extends IG2Config {
@@ -1733,6 +1721,18 @@ declare module '@authing/react-ui-components/components/MFA/props' {
1733
1721
  initData: GuardMFAInitData;
1734
1722
  }
1735
1723
 
1724
+ }
1725
+ declare module '@authing/react-ui-components/components/MFA/mfaMethods/index' {
1726
+ import React from 'react';
1727
+ import { GuardMFAInitData, MFAType } from '@authing/react-ui-components/components/MFA/interface';
1728
+ import './style.less';
1729
+ export interface MFAMethodsProps {
1730
+ applicationMfa: GuardMFAInitData['applicationMfa'];
1731
+ method: MFAType;
1732
+ onChangeMethod: (type: MFAType) => void;
1733
+ }
1734
+ export const MFAMethods: React.FC<MFAMethodsProps>;
1735
+
1736
1736
  }
1737
1737
  declare module '@authing/react-ui-components/components/NeedHelpView/core/describeQuestions' {
1738
1738
  /// <reference types="react" />
@@ -1831,11 +1831,11 @@ declare module '@authing/react-ui-components/components/Register/core/WithPhone'
1831
1831
  }
1832
1832
  declare module '@authing/react-ui-components/components/Register/index' {
1833
1833
  import React from 'react';
1834
- import { GuardRegisterViewProps } from '@authing/react-ui-components/components/Register/props';
1834
+ import { GuardRegisterViewProps } from '@authing/react-ui-components/components/Register/interface';
1835
1835
  export const GuardRegisterView: React.FC<GuardRegisterViewProps>;
1836
1836
 
1837
1837
  }
1838
- declare module '@authing/react-ui-components/components/Register/props' {
1838
+ declare module '@authing/react-ui-components/components/Register/interface' {
1839
1839
  import { RegisterMethods } from 'authing-js-sdk';
1840
1840
  import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
1841
1841
  import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
@@ -2253,17 +2253,13 @@ declare module '@authing/react-ui-components/components/context/module/context'
2253
2253
 
2254
2254
  }
2255
2255
  declare module '@authing/react-ui-components/components/index' {
2256
+ export * from '@authing/react-ui-components/components/_utils/config';
2257
+ export type { AuthenticationClientOptions } from 'authing-js-sdk';
2256
2258
  export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
2257
2259
  export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
2258
- export type { AuthenticationClientOptions } from 'authing-js-sdk';
2260
+ export * from '@authing/react-ui-components/components/AuthingGuard/index';
2259
2261
  export * from '@authing/react-ui-components/components/Guard/index';
2260
2262
  export * from '@authing/react-ui-components/components/Type/index';
2261
- export * from '@authing/react-ui-components/components/BindTotp/interface';
2262
- export * from '@authing/react-ui-components/components/CompleteInfo/interface';
2263
- export * from '@authing/react-ui-components/components/DownloadAuthenticator/interface';
2264
- export * from '@authing/react-ui-components/components/Error/interface';
2265
- export * from '@authing/react-ui-components/components/ForgetPassword/interface';
2266
- export * from '@authing/react-ui-components/components/_utils/config';
2267
2263
 
2268
2264
  }
2269
2265
  declare module '@authing/react-ui-components/reportWebVitals' {