@pplancq/react-template 2.7.3 → 2.7.5
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/CHANGELOG.md +26 -0
- package/build/index.html +1 -1
- package/build/static/js/async/298.a46326b9.js +2 -0
- package/build/static/js/async/{298.d8191b2d.js.map → 298.a46326b9.js.map} +1 -1
- package/build/static/js/async/{935.b728c6a4.js → 935.84d26993.js} +2 -2
- package/build/static/js/async/935.84d26993.js.map +1 -0
- package/build/static/js/async/{lib-router.c84088f2.js → lib-router.3451e29e.js} +5 -5
- package/build/static/js/async/{lib-router.c84088f2.js.LICENSE.txt → lib-router.3451e29e.js.LICENSE.txt} +1 -1
- package/build/static/js/async/lib-router.3451e29e.js.map +1 -0
- package/build/static/js/{index.87cf38b1.js → index.f5336170.js} +2 -2
- package/build/static/js/{index.87cf38b1.js.map → index.f5336170.js.map} +1 -1
- package/package.json +12 -12
- package/build/static/js/async/298.d8191b2d.js +0 -2
- package/build/static/js/async/935.b728c6a4.js.map +0 -1
- package/build/static/js/async/lib-router.c84088f2.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var e,t,r,n,o,a={},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return a[e](r,r.exports,l),r.exports}if(l.m=a,l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((t,r)=>(l.f[r](e,t),t),[])),l.u=e=>"static/js/async/"+(({535:"lib-router",783:"lib-react"})[e]||e)+"."+({298:"
|
|
2
|
-
//# sourceMappingURL=index.
|
|
1
|
+
(()=>{var e,t,r,n,o,a={},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return a[e](r,r.exports,l),r.exports}if(l.m=a,l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((t,r)=>(l.f[r](e,t),t),[])),l.u=e=>"static/js/async/"+(({535:"lib-router",783:"lib-react"})[e]||e)+"."+({298:"a46326b9",535:"3451e29e",783:"e7800c9e",935:"84d26993"})[e]+".js",l.miniCssF=e=>"static/css/async/"+e+".b42a11a2.css",l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@pplancq/react-template:",l.l=function(r,n,o,a){if(e[r])return void e[r].push(n);if(void 0!==o)for(var i,u,s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var d=s[c];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){i=d;break}}i||(u=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,l.nc&&i.setAttribute("nonce",l.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var f=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),u&&document.head.appendChild(i)},l.p="/","undefined"!=typeof document){var u=function(e,t,r,n,o){var a=document.createElement("link");return a.rel="stylesheet",a.type="text/css",l.nc&&(a.nonce=l.nc),a.onerror=a.onload=function(r){if(a.onerror=a.onload=null,"load"===r.type)n();else{var i=r&&("load"===r.type?"missing":r.type),l=r&&r.target&&r.target.href||t,u=Error("Loading CSS chunk "+e+" failed.\\n("+l+")");u.code="CSS_CHUNK_LOAD_FAILED",u.type=i,u.request=l,a.parentNode&&a.parentNode.removeChild(a),o(u)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a),a},s=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],a=o.getAttribute("data-href")||o.getAttribute("href");if(a&&(a=a.split("?")[0]),"stylesheet"===o.rel&&(a===e||a===t))return o}for(var i=document.getElementsByTagName("style"),n=0;n<i.length;n++){var o=i[n],a=o.getAttribute("data-href");if(a===e||a===t)return o}},c={410:0};l.f.miniCss=function(e,t){if(c[e])t.push(c[e]);else 0!==c[e]&&({298:1})[e]&&t.push(c[e]=new Promise(function(t,r){var n=l.miniCssF(e),o=l.p+n;if(s(n,o))return t();u(e,o,null,t,r)}).then(function(){c[e]=0},function(t){throw delete c[e],t}))}}r={410:0},l.f.j=function(e,t){var n=l.o(r,e)?r[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((t,o)=>n=r[e]=[t,o]);t.push(n[2]=o);var a=l.p+l.u(e),i=Error();l.l(a,function(t){if(l.o(r,e)&&(0!==(n=r[e])&&(r[e]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+e,e)}},n=(e,t)=>{var n,o,a=t[0],i=t[1],u=t[2],s=0;if(a.some(e=>0!==r[e])){for(n in i)l.o(i,n)&&(l.m[n]=i[n]);u&&u(l)}for(e&&e(t);s<a.length;s++)o=a[s],l.o(r,o)&&r[o]&&r[o][0](),r[o]=0},(o=self.webpackChunk_pplancq_react_template=self.webpackChunk_pplancq_react_template||[]).forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o)),(async()=>Promise.resolve())().then(()=>{Promise.all([l.e("783"),l.e("535"),l.e("935"),l.e("298")]).then(l.bind(l,276)).then(e=>{let{default:t}=e;customElements.define("app-react",t)})})})();
|
|
2
|
+
//# sourceMappingURL=index.f5336170.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/index.87cf38b1.js","sources":["webpack://@pplancq/react-template/webpack/runtime/load_script","webpack://@pplancq/react-template/webpack/runtime/jsonp_chunk_loading","webpack://@pplancq/react-template/webpack/runtime/css loading","webpack://@pplancq/react-template/webpack/runtime/compat_get_default_export","webpack://@pplancq/react-template/webpack/runtime/define_property_getters","webpack://@pplancq/react-template/webpack/runtime/ensure_chunk","webpack://@pplancq/react-template/webpack/runtime/get javascript chunk filename","webpack://@pplancq/react-template/webpack/runtime/get mini-css chunk filename","webpack://@pplancq/react-template/webpack/runtime/has_own_property","webpack://@pplancq/react-template/webpack/runtime/public_path","webpack://@pplancq/react-template/./src/main.ts"],"sourcesContent":["var inProgress = {};\n\nvar dataWebpackPrefix = \"@pplancq/react-template:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function (url, done, key, chunkId) {\n\tif (inProgress[url]) {\n\t\tinProgress[url].push(done);\n\t\treturn;\n\t}\n\tvar script, needAttach;\n\tif (key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor (var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif (s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) {\n\t\t\t\tscript = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif (!script) {\n\t\tneedAttach = true;\n\t\t\n script = document.createElement('script');\n \n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\t\n\t\tscript.src = url;\n\t\t\n \n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function (prev, event) {\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns &&\n\t\t\tdoneFns.forEach(function (fn) {\n\t\t\t\treturn fn(event);\n\t\t\t});\n\t\tif (prev) return prev(event);\n\t};\n\tvar timeout = setTimeout(\n\t\tonScriptComplete.bind(null, undefined, {\n\t\t\ttype: 'timeout',\n\t\t\ttarget: script\n\t\t}),\n\t\t120000\n\t);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};\n","\n // object to store loaded and loading chunks\n // undefined = chunk not loaded, null = chunk preloaded/prefetched\n // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\n var installedChunks = {\"410\": 0,};\n \n __webpack_require__.f.j = function (chunkId, promises) {\n // JSONP chunk loading for javascript\nvar installedChunkData = __webpack_require__.o(installedChunks, chunkId)\n\t? installedChunks[chunkId]\n\t: undefined;\nif (installedChunkData !== 0) {\n\t// 0 means \"already installed\".\n\n\t// a Promise means \"currently loading\".\n\tif (installedChunkData) {\n\t\tpromises.push(installedChunkData[2]);\n\t} else {\n\t\tif (true) {\n\t\t\t// setup Promise in chunk cache\n\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\tpromises.push((installedChunkData[2] = promise));\n\n\t\t\t// start chunk loading\n\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\tvar error = new Error();\n\t\t\tvar loadingEnded = function (event) {\n\t\t\t\tif (__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\tif (installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\tif (installedChunkData) {\n\t\t\t\t\t\tvar errorType =\n\t\t\t\t\t\t\tevent && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\terror.message =\n\t\t\t\t\t\t\t'Loading chunk ' +\n\t\t\t\t\t\t\tchunkId +\n\t\t\t\t\t\t\t' failed.\\n(' +\n\t\t\t\t\t\t\terrorType +\n\t\t\t\t\t\t\t': ' +\n\t\t\t\t\t\t\trealSrc +\n\t\t\t\t\t\t\t')';\n\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t} \n\t}\n}\n\n }\n // install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\nvar moreModules = data[1];\nvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif (chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor (moduleId in moreModules) {\n\t\t\tif (__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif (runtime) var result = runtime(__webpack_require__);\n\t}\n\tif (parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor (; i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif (\n\t\t\t__webpack_require__.o(installedChunks, chunkId) &&\n\t\t\tinstalledChunks[chunkId]\n\t\t) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\t\n};\n\nvar chunkLoadingGlobal = self[\"webpackChunk_pplancq_react_template\"] = self[\"webpackChunk_pplancq_react_template\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\n","if (typeof document === \"undefined\") return;\nvar createStylesheet = function (\n\tchunkId, fullhref, oldTag, resolve, reject\n) {\n\tvar linkTag = document.createElement(\"link\");\n\t\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type=\"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = function (event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\t\n\tif (oldTag) {\n oldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n} else {\n document.head.appendChild(linkTag);\n}\n\treturn linkTag;\n}\nvar findStylesheet = function (href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor (var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif (dataHref) {\n\t\t\tdataHref = dataHref.split('?')[0]\n\t\t}\n\t\tif (tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor (var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif (dataHref === href || dataHref === fullhref) return tag;\n\t}\n}\n\nvar loadStylesheet = function (chunkId) {\n\treturn new Promise(function (resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif (findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t})\n}\n\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t\"410\": 0,\n\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\n\"298\": 1,\n\n};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId])\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId])\n\t\tpromises.push(\n\t\t\tinstalledCssChunks[chunkId] = loadStylesheet(chunkId).then(\n\t\t\t\tfunction() {\n\t\t\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t\t\t},\n\t\t\t\tfunction(e) {\n\t\t\t\t\tdelete installedCssChunks[chunkId];\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t)\n\t\t)\n}\n\n// no hmr\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(\n\t\tObject.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t\t__webpack_require__.f[key](chunkId, promises);\n\t\t\treturn promises;\n\t\t}, [])\n\t);\n};","// This function allow to reference chunks\n__webpack_require__.u = (chunkId) => {\n // return url for filenames not based on template\n \n // return url for filenames based on template\n return \"static/js/async/\" + ({\"535\": \"lib-router\",\"783\": \"lib-react\",}[chunkId] || chunkId) + \".\" + {\"298\": \"d8191b2d\",\"535\": \"c84088f2\",\"783\": \"e7800c9e\",\"935\": \"b728c6a4\",}[chunkId] + \".js\"\n}","// This function allow to reference chunks\n__webpack_require__.miniCssF = (chunkId) => {\n // return url for filenames not based on template\n \n // return url for filenames based on template\n return \"static/css/async/\" + chunkId + \".\" + \"b42a11a2\" + \".css\"\n}","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","__webpack_require__.p = \"/\";","const enableMock = async () => {\n if (import.meta.env.FRONT_MOCK_ENABLE === 'true') {\n const { worker } = await import('@Mocks/browser');\n\n return worker.start({\n onUnhandledRequest: 'warn',\n });\n }\n\n return Promise.resolve();\n};\n\nenableMock().then(() => {\n import('./bootstrap').then(({ default: AppReact }) => {\n customElements.define('app-react', AppReact);\n });\n});\n"],"names":["e","Object","Promise","s","document","clearTimeout","setTimeout","Error","r","self","enableMock","AppReact","customElements"],"mappings":"UAAI,EAEA,ECEM,EAqDN,EA6BA,E,+HCtFJ,G,MCCA,EAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADA,EAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPA,EAAoB,CAAC,CAAG,CAACA,EAAS,KACjC,IAAI,IAAI,KAAO,EACL,EAAoB,CAAC,CAAC,EAAY,IAAQ,CAAC,EAAoB,CAAC,CAACA,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNA,EAAoB,CAAC,CAAG,CAAC,EAGzB,EAAoB,C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,CAAG,EAChB,CAAkB,CAAC,EAAE,CAAC,EACvB,CAEF,EACyC,SAAW,EAAS,EAE/D,CAGO,EAEJ,EAAuB,CAAC,EAA4B,KACvD,IAKI,EAAU,EALV,EAAW,CAAI,CAAC,EAAE,CACnB,EAAc,CAAI,CAAC,EAAE,CACrB,EAAU,CAAI,CAAC,EAAE,CAGG,EAAI,EAC3B,GAAI,EAAS,IAAI,CAAC,AAAC,GAAQ,AAAwB,IAAxB,CAAe,CAAC,EAAG,EAAU,CACvD,IAAK,KAAY,EACZ,EAAoB,CAAC,CAAC,EAAa,IACtC,GAAoB,CAAC,CAAC,EAAS,CAAG,CAAW,CAAC,EAAS,AAAD,CAGpD,IAAsB,EAAQ,EACnC,CAEA,IADI,GAA4B,EAA2B,GACpD,EAAI,EAAS,MAAM,CAAE,IAC3B,EAAU,CAAQ,CAAC,EAAE,CAEpB,EAAoB,CAAC,CAAC,EAAiB,IACvC,CAAe,CAAC,EAAQ,EAExB,CAAe,CAAC,EAAQ,CAAC,EAAE,GAE5B,CAAe,CAAC,EAAQ,CAAG,CAG7B,EAGA,CADI,EAAqBE,KAAK,mCAAsC,CAAGA,KAAK,mCAAsC,EAAI,EAAE,EACrG,OAAO,CAAC,EAAqB,IAAI,CAAC,KAAM,IAC3D,EAAmB,IAAI,CAAG,EAAqB,IAAI,CAAC,KAAM,EAAmB,IAAI,CAAC,IAAI,CAAC,IS5EvFC,AAZmB,UASVR,QAAQ,OAAO,EACxB,IAEa,IAAI,CAAC,KAChB,+EAAsB,IAAI,CAAC,AAAC,I,GAAA,CAAE,QAASS,CAAQ,CAAE,GAC/CC,eAAe,MAAM,CAAC,YAAaD,EACrC,EACF,E"}
|
|
1
|
+
{"version":3,"file":"static/js/index.f5336170.js","sources":["webpack://@pplancq/react-template/webpack/runtime/load_script","webpack://@pplancq/react-template/webpack/runtime/jsonp_chunk_loading","webpack://@pplancq/react-template/webpack/runtime/css loading","webpack://@pplancq/react-template/webpack/runtime/compat_get_default_export","webpack://@pplancq/react-template/webpack/runtime/define_property_getters","webpack://@pplancq/react-template/webpack/runtime/ensure_chunk","webpack://@pplancq/react-template/webpack/runtime/get javascript chunk filename","webpack://@pplancq/react-template/webpack/runtime/get mini-css chunk filename","webpack://@pplancq/react-template/webpack/runtime/has_own_property","webpack://@pplancq/react-template/webpack/runtime/public_path","webpack://@pplancq/react-template/./src/main.ts"],"sourcesContent":["var inProgress = {};\n\nvar dataWebpackPrefix = \"@pplancq/react-template:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function (url, done, key, chunkId) {\n\tif (inProgress[url]) {\n\t\tinProgress[url].push(done);\n\t\treturn;\n\t}\n\tvar script, needAttach;\n\tif (key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor (var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif (s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) {\n\t\t\t\tscript = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif (!script) {\n\t\tneedAttach = true;\n\t\t\n script = document.createElement('script');\n \n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\t\n\t\tscript.src = url;\n\t\t\n \n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function (prev, event) {\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns &&\n\t\t\tdoneFns.forEach(function (fn) {\n\t\t\t\treturn fn(event);\n\t\t\t});\n\t\tif (prev) return prev(event);\n\t};\n\tvar timeout = setTimeout(\n\t\tonScriptComplete.bind(null, undefined, {\n\t\t\ttype: 'timeout',\n\t\t\ttarget: script\n\t\t}),\n\t\t120000\n\t);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};\n","\n // object to store loaded and loading chunks\n // undefined = chunk not loaded, null = chunk preloaded/prefetched\n // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\n var installedChunks = {\"410\": 0,};\n \n __webpack_require__.f.j = function (chunkId, promises) {\n // JSONP chunk loading for javascript\nvar installedChunkData = __webpack_require__.o(installedChunks, chunkId)\n\t? installedChunks[chunkId]\n\t: undefined;\nif (installedChunkData !== 0) {\n\t// 0 means \"already installed\".\n\n\t// a Promise means \"currently loading\".\n\tif (installedChunkData) {\n\t\tpromises.push(installedChunkData[2]);\n\t} else {\n\t\tif (true) {\n\t\t\t// setup Promise in chunk cache\n\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\tpromises.push((installedChunkData[2] = promise));\n\n\t\t\t// start chunk loading\n\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\tvar error = new Error();\n\t\t\tvar loadingEnded = function (event) {\n\t\t\t\tif (__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\tif (installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\tif (installedChunkData) {\n\t\t\t\t\t\tvar errorType =\n\t\t\t\t\t\t\tevent && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\terror.message =\n\t\t\t\t\t\t\t'Loading chunk ' +\n\t\t\t\t\t\t\tchunkId +\n\t\t\t\t\t\t\t' failed.\\n(' +\n\t\t\t\t\t\t\terrorType +\n\t\t\t\t\t\t\t': ' +\n\t\t\t\t\t\t\trealSrc +\n\t\t\t\t\t\t\t')';\n\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t} \n\t}\n}\n\n }\n // install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\nvar moreModules = data[1];\nvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif (chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor (moduleId in moreModules) {\n\t\t\tif (__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif (runtime) var result = runtime(__webpack_require__);\n\t}\n\tif (parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor (; i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif (\n\t\t\t__webpack_require__.o(installedChunks, chunkId) &&\n\t\t\tinstalledChunks[chunkId]\n\t\t) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\t\n};\n\nvar chunkLoadingGlobal = self[\"webpackChunk_pplancq_react_template\"] = self[\"webpackChunk_pplancq_react_template\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\n","if (typeof document === \"undefined\") return;\nvar createStylesheet = function (\n\tchunkId, fullhref, oldTag, resolve, reject\n) {\n\tvar linkTag = document.createElement(\"link\");\n\t\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type=\"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = function (event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\t\n\tif (oldTag) {\n oldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n} else {\n document.head.appendChild(linkTag);\n}\n\treturn linkTag;\n}\nvar findStylesheet = function (href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor (var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif (dataHref) {\n\t\t\tdataHref = dataHref.split('?')[0]\n\t\t}\n\t\tif (tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor (var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif (dataHref === href || dataHref === fullhref) return tag;\n\t}\n}\n\nvar loadStylesheet = function (chunkId) {\n\treturn new Promise(function (resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif (findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t})\n}\n\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t\"410\": 0,\n\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\n\"298\": 1,\n\n};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId])\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId])\n\t\tpromises.push(\n\t\t\tinstalledCssChunks[chunkId] = loadStylesheet(chunkId).then(\n\t\t\t\tfunction() {\n\t\t\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t\t\t},\n\t\t\t\tfunction(e) {\n\t\t\t\t\tdelete installedCssChunks[chunkId];\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t)\n\t\t)\n}\n\n// no hmr\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(\n\t\tObject.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t\t__webpack_require__.f[key](chunkId, promises);\n\t\t\treturn promises;\n\t\t}, [])\n\t);\n};","// This function allow to reference chunks\n__webpack_require__.u = (chunkId) => {\n // return url for filenames not based on template\n \n // return url for filenames based on template\n return \"static/js/async/\" + ({\"535\": \"lib-router\",\"783\": \"lib-react\",}[chunkId] || chunkId) + \".\" + {\"298\": \"a46326b9\",\"535\": \"3451e29e\",\"783\": \"e7800c9e\",\"935\": \"84d26993\",}[chunkId] + \".js\"\n}","// This function allow to reference chunks\n__webpack_require__.miniCssF = (chunkId) => {\n // return url for filenames not based on template\n \n // return url for filenames based on template\n return \"static/css/async/\" + chunkId + \".\" + \"b42a11a2\" + \".css\"\n}","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","__webpack_require__.p = \"/\";","const enableMock = async () => {\n if (import.meta.env.FRONT_MOCK_ENABLE === 'true') {\n const { worker } = await import('@Mocks/browser');\n\n return worker.start({\n onUnhandledRequest: 'warn',\n });\n }\n\n return Promise.resolve();\n};\n\nenableMock().then(() => {\n import('./bootstrap').then(({ default: AppReact }) => {\n customElements.define('app-react', AppReact);\n });\n});\n"],"names":["e","Object","Promise","s","document","clearTimeout","setTimeout","Error","r","self","enableMock","AppReact","customElements"],"mappings":"UAAI,EAEA,ECEM,EAqDN,EA6BA,E,+HCtFJ,G,MCCA,EAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADA,EAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPA,EAAoB,CAAC,CAAG,CAACA,EAAS,KACjC,IAAI,IAAI,KAAO,EACL,EAAoB,CAAC,CAAC,EAAY,IAAQ,CAAC,EAAoB,CAAC,CAACA,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNA,EAAoB,CAAC,CAAG,CAAC,EAGzB,EAAoB,CAAC,CAAG,AAAC,GACjBE,QAAQ,GAAG,CACjBD,OAAO,IAAI,CAAC,EAAoB,CAAC,EAAE,MAAM,CAAC,CAAC,EAAU,KACpD,EAAoB,CAAC,CAAC,EAAI,CAAC,EAAS,GAC7B,GACL,EAAE,GCPP,EAAoB,CAAC,CA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rB,EAAU,CAAI,CAAC,EAAE,CAGG,EAAI,EAC3B,GAAI,EAAS,IAAI,CAAC,AAAC,GAAQ,AAAwB,IAAxB,CAAe,CAAC,EAAG,EAAU,CACvD,IAAK,KAAY,EACZ,EAAoB,CAAC,CAAC,EAAa,IACtC,GAAoB,CAAC,CAAC,EAAS,CAAG,CAAW,CAAC,EAAS,AAAD,CAGpD,IAAsB,EAAQ,EACnC,CAEA,IADI,GAA4B,EAA2B,GACpD,EAAI,EAAS,MAAM,CAAE,IAC3B,EAAU,CAAQ,CAAC,EAAE,CAEpB,EAAoB,CAAC,CAAC,EAAiB,IACvC,CAAe,CAAC,EAAQ,EAExB,CAAe,CAAC,EAAQ,CAAC,EAAE,GAE5B,CAAe,CAAC,EAAQ,CAAG,CAG7B,EAGA,CADI,EAAqBE,KAAK,mCAAsC,CAAGA,KAAK,mCAAsC,EAAI,EAAE,EACrG,OAAO,CAAC,EAAqB,IAAI,CAAC,KAAM,IAC3D,EAAmB,IAAI,CAAG,EAAqB,IAAI,CAAC,KAAM,EAAmB,IAAI,CAAC,IAAI,CAAC,IS5EvFC,AAZmB,UASVR,QAAQ,OAAO,EACxB,IAEa,IAAI,CAAC,KAChB,+EAAsB,IAAI,CAAC,AAAC,I,GAAA,CAAE,QAASS,CAAQ,CAAE,GAC/CC,eAAe,MAAM,CAAC,YAAaD,EACrC,EACF,E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pplancq/react-template",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "react template",
|
|
6
6
|
"author": "pplancq <paul.plancq@outlook.fr>",
|
|
@@ -49,43 +49,43 @@
|
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@hookform/resolvers": "^5.2.2",
|
|
52
|
-
"@tanstack/react-query": "^5.90.
|
|
52
|
+
"@tanstack/react-query": "^5.90.5",
|
|
53
53
|
"@tanstack/react-query-devtools": "^5.90.2",
|
|
54
54
|
"react": "^19.2.0",
|
|
55
55
|
"react-dom": "^19.2.0",
|
|
56
|
-
"react-hook-form": "^7.
|
|
57
|
-
"react-router": "^7.9.
|
|
56
|
+
"react-hook-form": "^7.65.0",
|
|
57
|
+
"react-router": "^7.9.4",
|
|
58
58
|
"yup": "^1.7.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@bdellegrazie/playwright-sonar-reporter": "^0.4.0",
|
|
62
62
|
"@commitlint/cli": "^20.1.0",
|
|
63
63
|
"@msw/playwright": "^0.4.2",
|
|
64
|
-
"@playwright/test": "^1.
|
|
64
|
+
"@playwright/test": "^1.56.1",
|
|
65
65
|
"@pplancq/commitlint-config": "*",
|
|
66
66
|
"@pplancq/eslint-config": "*",
|
|
67
67
|
"@pplancq/postcss-config": "*",
|
|
68
68
|
"@pplancq/prettier-config": "*",
|
|
69
69
|
"@pplancq/stylelint-config": "*",
|
|
70
|
-
"@rsbuild/core": "^1.5.
|
|
70
|
+
"@rsbuild/core": "^1.5.17",
|
|
71
71
|
"@rsbuild/plugin-eslint": "^1.1.2",
|
|
72
72
|
"@rsbuild/plugin-react": "^1.4.1",
|
|
73
73
|
"@rsbuild/plugin-sass": "^1.4.0",
|
|
74
74
|
"@testing-library/jest-dom": "^6.9.1",
|
|
75
75
|
"@testing-library/react": "^16.3.0",
|
|
76
76
|
"@testing-library/user-event": "^14.6.1",
|
|
77
|
-
"@types/react": "^19.2.
|
|
78
|
-
"@types/react-dom": "^19.2.
|
|
77
|
+
"@types/react": "^19.2.2",
|
|
78
|
+
"@types/react-dom": "^19.2.2",
|
|
79
79
|
"@vitejs/plugin-react-swc": "^4.1.0",
|
|
80
80
|
"@vitest/coverage-v8": "^3.2.4",
|
|
81
81
|
"concurrently": "^9.2.1",
|
|
82
|
-
"eslint": "^9.
|
|
82
|
+
"eslint": "^9.37.0",
|
|
83
83
|
"eslint-plugin-prettier": "^5.5.4",
|
|
84
84
|
"husky": "^9.1.7",
|
|
85
85
|
"jsdom": "^27.0.0",
|
|
86
|
-
"lint-staged": "^16.2.
|
|
86
|
+
"lint-staged": "^16.2.4",
|
|
87
87
|
"monocart-coverage-reports": "^2.12.9",
|
|
88
|
-
"msw": "^2.11.
|
|
88
|
+
"msw": "^2.11.5",
|
|
89
89
|
"nodemon": "^3.1.10",
|
|
90
90
|
"prettier": "^3.6.2",
|
|
91
91
|
"stylelint": "^16.25.0",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
},
|
|
105
105
|
"volta": {
|
|
106
106
|
"node": "22.20.0",
|
|
107
|
-
"npm": "11.6.
|
|
107
|
+
"npm": "11.6.2"
|
|
108
108
|
},
|
|
109
109
|
"browserslist": {
|
|
110
110
|
"production": [
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_pplancq_react_template=self.webpackChunk_pplancq_react_template||[]).push([["298"],{276:function(e,s,a){let t;a.d(s,{default:()=>ei});var l,r=a(438),i=a(85);let n=new(a(450)).E;var c=a(212),d=a(13),o=a(858),h=a(817);let m=e=>{let{children:s,client:a}=e;return(0,i.jsxs)(o.Ht,{client:a,children:[s,(0,i.jsx)(h.E,{initialIsOpen:!1})]})};var j=a(481),x=a(945),p=a(41);let u=(0,p.forwardRef)((e,s)=>{var{label:a,hasError:t,helperText:l}=e,r=(0,d._)(e,["label","hasError","helperText"]);let n=(0,p.useId)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"inputContainerStyle-e61k6Y",children:[(0,i.jsxs)("label",{htmlFor:n,children:[a," "]}),(0,i.jsx)("input",(0,x._)((0,c._)({id:n,ref:s},r),{className:t?"hasInputError-bm34IF":"inputStyle-EpqMP3"}))]}),t?(0,i.jsx)("p",{role:"alert",className:"errorsStyle-BTMgyz",children:l}):null]})});u.displayName="Input";var N=a(64);let f=e=>{var s,{name:a,label:t}=e,l=(0,d._)(e,["name","label"]);let{register:r,formState:{errors:n}}=(0,N.xW)();return(0,i.jsx)(u,(0,x._)((0,c._)({label:t},r(a),l),{hasError:!!n[a],helperText:null==(s=n[a])?void 0:s.message}))};var g=a(135),y=a(313);let v="inputStyle-clnJD_",b=y.Ik().shape({mail:y.Yj().email("Check the mail pattern").required("This field is required"),firstName:y.Yj().required("This field is required"),lastName:y.Yj().required("This field is required")}),S=e=>{let{onSubmit:s,resetForm:a}=e,t=(0,N.mN)({resolver:(0,g.t)(b)});return(0,i.jsx)(N.Op,(0,x._)((0,c._)({},t),{children:(0,i.jsxs)("form",{onSubmit:t.handleSubmit(s),children:[(0,i.jsxs)("p",{children:["The form is being submited ",t.formState.submitCount," times"]}),(0,i.jsx)(f,{label:"E-mail",type:"email",name:"mail",placeholder:"Exemple@gmail.com"}),(0,i.jsx)(f,{label:"First Name",name:"firstName",placeholder:"First Name"}),(0,i.jsx)(f,{label:"Last Name",name:"lastName",placeholder:"Last Name"}),(0,i.jsxs)("div",{className:"buttonsStyle-t0Ion8",children:[(0,i.jsx)("input",{type:"submit",className:v}),t.formState.isSubmitted?(0,i.jsx)("input",{type:"button",className:v,value:"Reset",onClick:()=>{t.reset(),a()}}):null]})]})}))},R={container:"container-rRq210",fieldsetStyle:"fieldsetStyle-Lw5XyN",title:"title-lh51m7",lineStyle:"lineStyle-EGpetz",paragraph:"paragraph-VqMLbv",profileSectionStyle:"profileSectionStyle-pP80nu"},k={path:"ReactHookFormDemo",element:(0,i.jsx)(()=>{let[e,s]=(0,p.useState)();return(0,i.jsxs)("div",{className:R.container,children:[(0,i.jsx)("h1",{className:R.title,children:"React Hook Form"}),(0,i.jsx)("hr",{className:R.lineStyle,color:"#00008f"}),(0,i.jsxs)("fieldset",{className:R.fieldsetStyle,children:[(0,i.jsx)("legend",{className:R.subTitle,children:"React Hook Form Example"}),(0,i.jsx)("p",{className:R.paragraph,children:"React Hook Form is a React library that simplifies form management in a React application using hooks. It provides a lightweight and efficient approach for handling form state, data validation, and handling form-related events."}),(0,i.jsxs)("div",{className:R.profileSectionStyle,children:[(0,i.jsxs)("fieldset",{children:[(0,i.jsx)("legend",{children:"Formulaire"}),(0,i.jsx)(S,{onSubmit:e=>{s((0,c._)({},e))},resetForm:()=>{s(void 0)}})]}),e?(0,i.jsxs)("fieldset",{children:[(0,i.jsx)("legend",{children:"R\xe9sultat"}),(0,i.jsxs)("p",{children:["E-mail: ",e.mail," "]}),(0,i.jsxs)("p",{children:["First-name: ",e.firstName," "]}),(0,i.jsxs)("p",{children:["Last-name: ",e.lastName," "]})]}):null]})]})]})},{})},E=a.p+"static/image/templatePlugins.3443b11e.png",_=e=>{var{className:s}=e,a=(0,d._)(e,["className"]);return(0,i.jsx)(j.k2,(0,x._)((0,c._)({},a),{className:[s].filter(Boolean).join(" ")}))},F="paragraphContainer-UGR2cN",w="titleStyle-IdFjRs",T="boldText-Wmbpty",C="centredText-ifHaPP",D="paragraphStyle-JnnHMT",M="demoStyle-tNSKZB",q="a-v7QGRz",I="highlight-WZdOfT",A="infoSection-V9FGkM",H=async e=>{var s,a;let{path:t,method:l="GET",data:r,headers:i=[]}=e,n=new Headers(i);r&&n.append("content-type","application/json");let d=await fetch(t,(0,x._)((0,c._)({method:l},r&&{body:JSON.stringify(r)}),{headers:n})),o=await d.text();if(!d.ok){let e=Error(o);throw e.code=d.status,e.contentType=null!=(s=d.headers.get("content-type"))?s:"plain/text",e}return(null!=(a=d.headers.get("content-type"))?a:"").includes("json")?JSON.parse(o):o},P=async()=>(await H({path:"https://jsonplaceholder.typicode.com/users"})).map(e=>(0,x._)((0,c._)({},e),{username:e.username.toUpperCase(),email:e.email.toLowerCase()}));var W=a(570);let z="dataTitle-DCFFzi",L={path:"ReactQueryDemo",element:(0,i.jsx)(()=>{let{result:e,isLoading:s,isError:a}=(()=>{let{data:e=[],isLoading:s,isError:a}=(0,W.I)({queryKey:["dataWithDelay"],queryFn:P});return{result:e,isLoading:s,isError:a}})();return a?(0,i.jsx)("div",{children:"Error fetching data"}):(0,i.jsxs)("div",{className:"container-GibmFC",children:[(0,i.jsx)("h1",{className:"title-SCdRWZ",children:"React Query"}),(0,i.jsx)("hr",{className:"lineStyle-g_JMj7",color:"#00008f"}),(0,i.jsxs)("div",{className:"fieldsetStyle-wCVDoC",children:[(0,i.jsx)("p",{className:"paragraph-jb5qk4",children:"React Query is a popular library for data management in React applications. It simplifies data query management, caching, data invalidation, and loading state handling."}),s?(0,i.jsx)("h1",{className:z,children:"Loading..."}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{className:z,children:"React Query Data Fetched"}),(0,i.jsx)("div",{className:"tableWrapper-WEdXkz",children:(0,i.jsxs)("table",{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"ID"}),(0,i.jsx)("th",{children:"Name"}),(0,i.jsx)("th",{children:"Username"}),(0,i.jsx)("th",{children:"Email"}),(0,i.jsx)("th",{children:"Website"})]})}),(0,i.jsx)("tbody",{children:null==e?void 0:e.map(e=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e.id}),(0,i.jsx)("td",{children:e.name}),(0,i.jsx)("td",{children:e.username}),(0,i.jsx)("td",{children:e.email}),(0,i.jsx)("td",{children:e.website})]},e.id))})]})})]})]})]})},{})},O={children:[{index:!0,element:(0,i.jsx)(()=>(0,i.jsxs)("div",{className:"container-KjbT9R",children:[(0,i.jsxs)("div",{className:"bigTitleStyle-MEaibM",children:["Welcome to Your React Starter Kit ",(0,i.jsx)("span",{children:"Welcome"})]}),(0,i.jsx)("div",{className:"foo-kNDTdQ",children:"FlexBlug"}),(0,i.jsxs)("div",{className:F,children:[(0,i.jsx)("h1",{className:w,children:"Overview"}),(0,i.jsx)("div",{className:A,children:(0,i.jsxs)("span",{className:C,children:[(0,i.jsxs)("p",{className:D,children:[(0,i.jsx)("span",{className:I,children:"Congratulations"})," on starting your project with our"," ",(0,i.jsx)("span",{className:I,children:"React Starter Kit!"})," This kit is designed to jumpstart your development with a well-organized project structure and pre-configured tools."]}),(0,i.jsx)("p",{className:D,children:"Below, you'll find an overview of the key features, tools, and architecture used in this starter kit."})]})})]}),(0,i.jsx)("img",{src:E,alt:"template",className:"imagePlace-dZZ8DU"}),(0,i.jsxs)("div",{className:F,children:[(0,i.jsx)("h1",{className:w,children:"Objective"}),(0,i.jsxs)("div",{className:A,children:[(0,i.jsxs)("p",{className:D,children:["The goal of this ",(0,i.jsx)("span",{className:T,children:"starter kit"})," is to enable you to quickly start a new project with all the necessary tools."]}),(0,i.jsxs)("p",{className:D,children:["Additionally, this ",(0,i.jsx)("span",{className:T,children:"starter kit"})," offers a robust set of options for structuring your ",(0,i.jsx)("span",{className:T,children:"React application"}),", providing flexibility to adapt to various project architectures."]}),(0,i.jsxs)("p",{className:D,children:["It has been thoughtfully designed not only to expedite the initial setup but also to streamline the implementation of ",(0,i.jsx)("span",{className:I,children:"Micro-Frontends"}),", making it a versatile solution for projects of different scales. (for more details check the"," ",(0,i.jsx)("span",{className:I,children:"README.md"})," file)"]})]})]}),(0,i.jsxs)("div",{className:F,children:[(0,i.jsx)("h1",{className:w,children:"Features"}),(0,i.jsx)("div",{className:A,children:(0,i.jsxs)("p",{className:D,children:[(0,i.jsx)("span",{className:T,children:"React: "}),"A JavaScript library for building user interfaces."]})}),(0,i.jsx)("div",{className:A,children:(0,i.jsxs)("p",{className:D,children:[(0,i.jsx)("span",{className:T,children:"TypeScript: "}),"A superset of JavaScript that adds static typing."]})}),(0,i.jsxs)("div",{className:A,children:[(0,i.jsxs)("p",{className:D,children:[(0,i.jsx)("span",{className:T,children:"React Query: "}),"A library for managing, caching, and updating server state in React applications. (for more details check the"," ",(0,i.jsx)("span",{className:I,children:"README.md"})," file under the"," ",(0,i.jsx)("span",{className:T,children:"hooks"})," folder)"]}),(0,i.jsx)("div",{className:M,children:(0,i.jsx)(_,{to:"/reactQueryDemo",className:q,children:"Run Demo"})})]}),(0,i.jsxs)("div",{className:A,children:[(0,i.jsxs)("p",{className:D,children:[(0,i.jsx)("span",{className:T,children:"React Hook Form: "}),"A library for managing forms with React hooks. (for more details check the ",(0,i.jsx)("span",{className:I,children:"README.md"})," file under the"," ",(0,i.jsx)("span",{className:T,children:"forms"})," folder)"]}),(0,i.jsx)("div",{className:M,children:(0,i.jsx)(_,{to:"/reactHookFormDemo",className:q,children:"Run Demo"})})]}),(0,i.jsx)("div",{className:A,children:(0,i.jsxs)("p",{className:D,children:[(0,i.jsx)("span",{className:T,children:"React Router: "}),"A declarative routing solution for React. (for more details check the ",(0,i.jsx)("span",{className:I,children:"README.md"})," file under the"," ",(0,i.jsx)("span",{className:T,children:"routing"})," folder)"]})}),(0,i.jsx)("div",{className:A,children:(0,i.jsxs)("p",{className:D,children:[(0,i.jsx)("span",{className:T,children:"...and more: "}),"Explore the"," ",(0,i.jsx)("span",{className:I,children:"Package.json"})," file to see additional dependencies."]})})]}),(0,i.jsxs)("div",{className:F,children:[(0,i.jsx)("h1",{className:w,children:"Project Structure"}),(0,i.jsx)("div",{className:A,children:(0,i.jsx)("div",{className:"tableWrapper-Z9PKSv",children:(0,i.jsxs)("table",{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"Folder"}),(0,i.jsx)("th",{children:"Description"})]})}),(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:T,children:"api"})}),(0,i.jsx)("td",{children:"Place your API-related code here."})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:T,children:"assets"})}),(0,i.jsx)("td",{children:"Store your static assets (images, fonts, etc.) in this directory."})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:T,children:"components"})}),(0,i.jsx)("td",{children:"Reusable React components go here."})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:T,children:"config"})}),(0,i.jsx)("td",{children:"Configuration files and environment variables are managed here."})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:T,children:"forms"})}),(0,i.jsx)("td",{children:"Define your forms using React Hook Form."})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:T,children:"hooks"})}),(0,i.jsx)("td",{children:"Custom React hooks to share logic across components."})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:T,children:"pages"})}),(0,i.jsx)("td",{children:"React components that represent individual pages or views."})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:T,children:"providers"})}),(0,i.jsx)("td",{children:"React context providers for state management."})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:T,children:"routing"})}),(0,i.jsx)("td",{children:"Configure your application routes here."})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:T,children:"types"})}),(0,i.jsx)("td",{children:"TypeScript type definitions."})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:T,children:"ui"})}),(0,i.jsx)("td",{children:"Presentational components and styles."})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:T,children:"utils"})}),(0,i.jsx)("td",{children:"General utility functions."})]})]})]})})})]}),(0,i.jsxs)("div",{className:F,children:[(0,i.jsx)("h1",{className:w,children:"Additional Information"}),(0,i.jsx)("div",{className:A,children:(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["- Customize the project configuration in the ",(0,i.jsx)("code",{children:"config"})," directory."]}),(0,i.jsxs)("li",{children:["- Explore the ",(0,i.jsx)("code",{children:"utils"})," directory for utility functions."]}),(0,i.jsx)("li",{children:"- Leverage React Query for efficient data fetching."}),(0,i.jsx)("li",{children:"- Take advantage of React Hook Form for managing forms seamlessly."}),(0,i.jsxs)("li",{children:["- Refer to the ",(0,i.jsx)("code",{children:"types"})," directory for TypeScript type definitions."]})]})}),(0,i.jsx)("div",{className:A,children:(0,i.jsx)("span",{className:C,children:(0,i.jsxs)("p",{className:D,children:["Our project is organized into various folders, each containing its own"," ",(0,i.jsx)("span",{className:I,children:"README.md"})," file with specific details, instructions, and additional information. This documentation will guide you through setting up the environment, understanding the project structure, and using the available components and features. For more details, check the ",(0,i.jsx)("span",{className:I,children:"README.md"})," file in"," ",(0,i.jsx)("span",{className:T,children:"each folder of the project"}),"."]})})}),(0,i.jsx)("div",{className:A,children:(0,i.jsx)("span",{className:C,children:(0,i.jsxs)("p",{className:D,children:["Feel free to explore and modify the structure to suit your project's needs."," ",(0,i.jsx)("span",{className:T,children:"Happy coding!"})]})})})]})]}),{})},L,k]},Q=a.p+"static/image/logo.5e2cdf12.png",Y=e=>{let{src:s,alt:a,size:t="80px"}=e;return(0,i.jsx)("img",{className:"logoStyle-TISKYc",style:{width:t},src:s,alt:a})},B=()=>(0,i.jsxs)("div",{className:"container-S6n7UD",children:[(0,i.jsx)("hr",{}),(0,i.jsx)(j.N_,{to:"/",children:(0,i.jsx)(Y,{size:"50px",src:Q,alt:"logo"})})]}),G=e=>{let{links:s}=e,a=(0,p.useId)();return(0,i.jsx)("nav",{children:(0,i.jsx)("ul",{className:"navList-kjfmYH",children:s.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)(_,{to:e.url,className:"a-gY6usd",children:e.label})},"".concat(a," ").concat(e.label," ").concat(e.url)))})})},J=()=>(0,i.jsxs)("div",{className:"container-CRUfyl",children:[(0,i.jsx)(j.N_,{to:"/",children:(0,i.jsx)(Y,{size:"50px",src:Q,alt:"logo"})}),(0,i.jsx)(G,{links:[{label:"Demo",url:"/"}]})]}),K={},U=e=>{let{footerContent:s}=e;return(0,i.jsx)("footer",{className:K.footer,children:s})},Z={},V=e=>{let{leftComponents:s,rightComponents:a}=e;return(0,i.jsxs)("header",{className:Z.header,children:[s,a]})},X={},$=e=>{let{children:s}=e;return(0,i.jsx)("main",{className:X.main,children:s})},ee=e=>{let{headerProps:s,footerProps:a,children:t}=e;return(0,i.jsxs)("div",{className:"mainTemplateStyle-DiBkvW",children:[(0,i.jsx)(V,(0,c._)({},s)),(0,i.jsx)($,{children:t}),(0,i.jsx)(U,(0,c._)({},a))]})},es=[{path:"/",element:(0,i.jsx)(()=>(0,i.jsx)(ee,{headerProps:{leftComponents:(0,i.jsx)(J,{})},footerProps:{footerContent:(0,i.jsx)(B,{})},children:(0,i.jsx)(j.sv,{})}),{}),children:[O],errorElement:(0,i.jsx)(()=>{let e=(0,j.r5)();return(0,i.jsxs)("div",{className:"root-pWd0uB",children:[(0,i.jsx)(j.N_,{to:"/",children:(0,i.jsx)(Y,{src:Q,alt:"logo"})}),(0,i.jsx)("h1",{children:"Oops!"}),(0,i.jsx)("p",{children:"Sorry, an unexpected error has occurred."}),(0,i.jsx)("p",{children:(0,i.jsx)("i",{children:(null==e?void 0:e.message)||(null==e?void 0:e.statusText)})})]})},{})}],ea=function(){let{basename:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,j.Ys)(es,{basename:e})},et=(l=j.pg,(t=e=>{var{queryClient:s}=e,a=(0,d._)(e,["queryClient"]);return(0,i.jsx)(m,{client:s,children:(0,i.jsx)(l,(0,c._)({},a))})}).displayName="withProvider(".concat(l.displayName||l.name,")"),t),el=e=>{let{basename:s}=e,a=ea({basename:s});return(0,i.jsx)(et,{queryClient:n,router:a})};var er=a(873);class ei extends HTMLElement{connectedCallback(){var e;this.isMounted=!0,this.root.render((0,i.jsx)(p.StrictMode,{children:(0,i.jsx)(el,{basename:null!=(e=this.getAttribute("basename"))?e:""})}))}disconnectedCallback(){this.isMounted=!1,queueMicrotask(()=>{this.isMounted||this.root.unmount()})}constructor(){super(),(0,r._)(this,"root",void 0),(0,r._)(this,"isMounted",!1),this.root=(0,er.createRoot)(this)}}}}]);
|
|
2
|
-
//# sourceMappingURL=298.d8191b2d.js.map
|