@modern-js/devtools-client 2.48.2 → 2.48.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/html/client/index.html +3 -3
- package/dist/html/mount/index.html +3 -3
- package/dist/modern.config.json +4 -4
- package/dist/public/sw-proxy.js +1 -1
- package/dist/routes-manifest.json +62 -62
- package/dist/static/js/{886.7c6bd7c9.js → 610.d7cbe2d6.js} +3 -3
- package/dist/static/js/{637.74e75c0a.js → 637.bb6142e6.js} +2 -2
- package/dist/static/js/async/{447.bddee91f.js → 447.de1c74b3.js} +2 -2
- package/dist/static/js/async/client_context/builder/{page.2415d782.js → page.5c3ea615.js} +2 -2
- package/dist/static/js/async/client_context/framework/{page.2757805b.js → page.0cc29303.js} +2 -2
- package/dist/static/js/async/client_doctor/page.676c5ee2.js +2 -0
- package/dist/static/js/async/client_doctor/{page.e50bb05e.js.LICENSE.txt → page.676c5ee2.js.LICENSE.txt} +22 -22
- package/dist/static/js/async/client_headers/editor/page.0d45e366.js +2 -0
- package/dist/static/js/async/client_headers/editor/{page.42e7444f.js.LICENSE.txt → page.0d45e366.js.LICENSE.txt} +13 -13
- package/dist/static/js/async/client_headers/layout.12c73353.js +2 -0
- package/dist/static/js/async/client_overview/page.4c10470c.js +2 -0
- package/dist/static/js/async/client_overview/{page.0a2b4c8e.js.LICENSE.txt → page.4c10470c.js.LICENSE.txt} +13 -13
- package/dist/static/js/async/client_pages/{layout.242f10b5.js → layout.fc389a62.js} +2 -2
- package/dist/static/js/async/client_pages/page.17318d21.js +2 -0
- package/dist/static/js/async/client_pages/{page.1ed2c561.js.LICENSE.txt → page.17318d21.js.LICENSE.txt} +68 -68
- package/dist/static/js/{builder-runtime.7564ba26.js → builder-runtime.6555dfa0.js} +1 -1
- package/dist/static/js/{client.3f872109.js → client.a7f24cfe.js} +2 -2
- package/dist/static/js/{client.3f872109.js.LICENSE.txt → client.a7f24cfe.js.LICENSE.txt} +128 -128
- package/dist/static/js/components.0e9702c9.js +1 -0
- package/dist/static/js/mount.00b978a3.js +2 -0
- package/dist/static/js/{mount.799a7150.js.LICENSE.txt → mount.00b978a3.js.LICENSE.txt} +38 -38
- package/package.json +12 -12
- package/dist/static/js/async/client_doctor/page.e50bb05e.js +0 -2
- package/dist/static/js/async/client_headers/editor/page.42e7444f.js +0 -2
- package/dist/static/js/async/client_headers/layout.f6b0d5ea.js +0 -2
- package/dist/static/js/async/client_overview/page.0a2b4c8e.js +0 -2
- package/dist/static/js/async/client_pages/page.1ed2c561.js +0 -2
- package/dist/static/js/components.d96a1b4e.js +0 -1
- package/dist/static/js/mount.799a7150.js +0 -2
- /package/dist/static/css/{886.b9e2a32f.css → 610.86ca73a8.css} +0 -0
- /package/dist/static/css/async/client_doctor/{page.259ec644.css → page.70e4fc6b.css} +0 -0
- /package/dist/static/css/async/client_headers/editor/{page.c78f5c66.css → page.0f830a9e.css} +0 -0
- /package/dist/static/css/async/client_headers/{layout.cd1d5981.css → layout.85737bd6.css} +0 -0
- /package/dist/static/css/async/client_overview/{page.81782291.css → page.b032858f.css} +0 -0
- /package/dist/static/css/async/client_pages/{layout.6b89675e.css → layout.ada1ecbd.css} +0 -0
- /package/dist/static/css/async/client_pages/{page.488cbc24.css → page.c100068e.css} +0 -0
- /package/dist/static/css/{client.92f37413.css → client.fca9840b.css} +0 -0
- /package/dist/static/css/{components.f42635fc.css → components.6259116d.css} +0 -0
- /package/dist/static/css/{mount.40789ae6.css → mount.2f84060f.css} +0 -0
- /package/dist/static/js/{886.7c6bd7c9.js.LICENSE.txt → 610.d7cbe2d6.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{637.74e75c0a.js.LICENSE.txt → 637.bb6142e6.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/{447.bddee91f.js.LICENSE.txt → 447.de1c74b3.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_context/builder/{page.2415d782.js.LICENSE.txt → page.5c3ea615.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_context/framework/{page.2757805b.js.LICENSE.txt → page.0cc29303.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_headers/{layout.f6b0d5ea.js.LICENSE.txt → layout.12c73353.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_pages/{layout.242f10b5.js.LICENSE.txt → layout.fc389a62.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/devtools-client",
|
|
3
|
-
"version": "2.48.
|
|
3
|
+
"version": "2.48.3",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.0.0"
|
|
6
6
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@radix-ui/react-popover": "^1.0.7",
|
|
23
23
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
24
24
|
"@radix-ui/themes": "^2.0.0",
|
|
25
|
-
"@rsbuild/core": "0.
|
|
25
|
+
"@rsbuild/core": "0.5.1",
|
|
26
26
|
"@types/jest": "^29",
|
|
27
27
|
"@types/lodash": "^4.14.202",
|
|
28
28
|
"@types/node": "~16.11.7",
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
"ufo": "^1.3.0",
|
|
57
57
|
"valtio": "^1.11.1",
|
|
58
58
|
"jest": "^29",
|
|
59
|
-
"@modern-js-app/eslint-config": "2.48.
|
|
60
|
-
"@modern-js/
|
|
61
|
-
"@modern-js/
|
|
62
|
-
"@modern-js/eslint-config": "2.48.
|
|
63
|
-
"@modern-js/plugin-proxy": "2.48.
|
|
64
|
-
"@modern-js/runtime": "2.48.
|
|
65
|
-
"@modern-js/tsconfig": "2.48.
|
|
66
|
-
"@modern-js/types": "2.48.
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
59
|
+
"@modern-js-app/eslint-config": "2.48.3",
|
|
60
|
+
"@modern-js/devtools-kit": "2.48.3",
|
|
61
|
+
"@modern-js/app-tools": "2.48.3",
|
|
62
|
+
"@modern-js/eslint-config": "2.48.3",
|
|
63
|
+
"@modern-js/plugin-proxy": "2.48.3",
|
|
64
|
+
"@modern-js/runtime": "2.48.3",
|
|
65
|
+
"@modern-js/tsconfig": "2.48.3",
|
|
66
|
+
"@modern-js/types": "2.48.3",
|
|
67
|
+
"@scripts/jest-config": "2.48.3",
|
|
68
|
+
"@modern-js/utils": "2.48.3"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"reset": "npx rimraf ./**/node_modules",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see page.e50bb05e.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["488"],{88640:function(e,r,t){"use strict";t.r(r);r.default=function(){for(var e,r,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(r=function e(r){var t,n,s="";if("string"==typeof r||"number"==typeof r)s+=r;else if("object"==typeof r){if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(n=e(r[t]))&&(s&&(s+=" "),s+=n);else for(t in r)r[t]&&(s&&(s+=" "),s+=t)}return s}(e))&&(n&&(n+=" "),n+=r);return n}},32579:function(e,r,t){"use strict";e.exports=t.p+"static/image/rsdoctor-large.b2f496d9.png"},64456:function(e,r,t){"use strict";t.r(r),t.d(r,{IndicateCard:function(){return x}});var n=t("90247"),s=t("55709"),c=t("16170"),o=t("86834"),a=t("88640"),i=t("83982"),l=t("4423");let d=e=>{var{children:r,className:t}=e,d=(0,c._)(e,["children","className"]);return(0,o.jsx)(i.Box,(0,s._)((0,n._)({},d),{className:(0,a.default)(l.indicateCard,t),children:r}))};d.displayName="IndicateCard";let u=e=>(0,o.jsx)(i.Flex,(0,n._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e));u.displayName="IndicateCard.Column";let x=Object.assign(d,{Column:u})},72737:function(e,r,t){"use strict";t.r(r);var n=t("64456");t.es(n,r)},47384:function(e,r,t){"use strict";t.r(r);var n=t("90247"),s=t("55709"),c=t("86834"),o=t("42700"),a=t("83982"),i=t("29214"),l=t("52493"),d=t.n(l),u=t("55058"),x=t("88640"),h=t("99480"),m=t("32579"),p=t("3755"),j=t("70093"),g=t("72737");let b=e=>{let{cost:r}=e,[t,n]=r.name.split("->"),[s,o]=[t,n].map(e=>["bootstrap","done"].includes(e)?void 0:"".concat("https://webpack.js.org/api/compiler-hooks","#").concat(e.toLowerCase())),i=r.costs>1e3?"".concat((r.costs/1e3).toFixed(2),"s"):"".concat(r.costs,"ms");return(0,c.jsxs)(a.HoverCard.Root,{children:[(0,c.jsx)(a.HoverCard.Trigger,{children:(0,c.jsxs)(a.Box,{className:j.costBox,style:{flex:r.costs},children:[(0,c.jsxs)(a.Text,{size:"1",color:"gray",className:(0,x.default)(j.textTruncation,j.costLabel),children:[d().startCase(r.title),"(",i,")"]}),(0,c.jsx)(a.Box,{className:j.costBar})]})}),(0,c.jsx)(a.HoverCard.Content,{size:"1",children:(0,c.jsxs)(a.Text,{size:"1",color:"gray",children:[(0,c.jsx)(a.Link,{target:"_blank",href:s,children:t}),(0,c.jsxs)(a.Text,{children:[" \xb7\xb7\xb7",i,"\xb7\xb7\xb7 "]}),(0,c.jsx)(a.Link,{target:"_blank",href:o,children:n})]})})]})};r.default=()=>{var e,r,t,l,x,f;let C=(0,o.useSnapshot)(p.$doctor),_=(0,o.useSnapshot)(h.$dependencies),k=(0,o.useSnapshot)(h.$definition),y=Object.keys(_).find(e=>e.startsWith("@web-doctor/"))?"Web Doctor":"Rsdoctor",v=null!==(f=null!==(x=null!==(l=null!==(t=null!==(r=null!==(e=_["@web-doctor/webpack-plugin(builder)"])&&void 0!==e?e:_["@web-doctor/rspack-plugin(builder)"])&&void 0!==r?r:_["@web-doctor/webpack-plugin"])&&void 0!==t?t:_["@web-doctor/rspack-plugin"])&&void 0!==l?l:_["@rsdoctor/rspack-plugin"])&&void 0!==x?x:_["@rsdoctor/webpack-plugin"])&&void 0!==f?f:_["@rsdoctor/core"],w=d()(C.summary.costs).sortBy(["startAt","name","costs"]).sortedUniqBy("name").cloneDeep().map(e=>{if("bootstrap->beforeCompile"===e.name)return(0,s._)((0,n._)({},e),{title:"prepare"});if("beforeCompile->afterCompile"===e.name)return(0,s._)((0,n._)({},e),{title:"compile"});if("afterCompile->done"===e.name)return(0,s._)((0,n._)({},e),{title:"optimize"});return(0,s._)((0,n._)({},e),{title:"unknown"})}),N=d().groupBy(C.errors,"description");return(0,c.jsx)(a.Flex,{direction:"column",align:"center",p:"4",children:(0,c.jsxs)(a.Flex,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:j.container,children:[(0,c.jsx)(g.IndicateCard,{className:j.primaryCard,children:(0,c.jsx)(a.Theme,{appearance:"light",hasBackground:!1,asChild:!0,children:(0,c.jsxs)(g.IndicateCard.Column,{children:[(0,c.jsx)(a.Heading,{as:"h1",color:"gray",className:j.heading,children:y}),(0,c.jsx)(a.Flex,{gap:"2",children:(0,c.jsx)("button",{type:"button",children:v?"v".concat(v):"Unknown"})}),(0,c.jsxs)(a.Link,{href:k.doctor.quickStart,color:"gray",size:"1",underline:"always",target:"_blank",rel:"noopener noreferrer",children:["Launch ",y," with complete features."]})]})})}),(0,c.jsx)(g.IndicateCard,{className:j.infoCard,children:(0,c.jsxs)(a.Flex,{justify:"between",gap:"2",align:"center",height:"100%",children:[(0,c.jsxs)(a.Box,{children:[(0,c.jsx)(a.Text,{color:"gray",children:"Visit our website"}),(0,c.jsx)(a.Flex,{align:"center",asChild:!0,children:(0,c.jsxs)(a.Link,{href:k.doctor.home,target:"_blank",rel:"noopener noreferrer",children:[(0,c.jsx)(i.HiLink,{}),(0,c.jsx)(a.Text,{children:(0,u.parseURL)(k.doctor.home).host})]})})]}),(0,c.jsx)("img",{className:j.logo,src:m})]})}),(0,c.jsx)(g.IndicateCard,{className:j.countCard,children:(0,c.jsxs)(g.IndicateCard.Column,{children:[(0,c.jsxs)(a.Text,{className:j.countText,size:"1",children:[(0,c.jsx)(i.HiMiniRectangleStack,{})," ",C.numModules," modules"]}),(0,c.jsxs)(a.Text,{className:j.countText,size:"1",children:[(0,c.jsx)(i.HiMiniInboxStack,{})," ",C.numPackages," packages"]}),(0,c.jsxs)(a.Text,{className:j.countText,size:"1",children:[(0,c.jsx)(i.HiMiniArchiveBox,{})," ",C.numChunks," chunks"]})]})}),(0,c.jsx)(g.IndicateCard,{className:j.compileCostCard,children:(0,c.jsxs)(g.IndicateCard.Column,{children:[(0,c.jsx)(a.Flex,{asChild:!0,align:"center",gap:"1",children:(0,c.jsxs)(a.Heading,{as:"h3",size:"2",color:"gray",children:[(0,c.jsx)(i.HiChartBar,{}),"Compile Overall"]})}),(0,c.jsx)(a.Flex,{width:"100%",gap:"1",children:w.map(e=>(0,c.jsx)(b,{cost:e},e.name))})]})}),(0,c.jsx)(g.IndicateCard,{width:"100%",children:(0,c.jsxs)(g.IndicateCard.Column,{children:[(0,c.jsxs)(a.Text,{weight:"bold",size:"1",color:"gray",children:["Found ",d().size(N)," ",d().size(N)>1?"errors":"error"]}),Object.entries(N).map(e=>{let[r,t]=e;return(0,c.jsxs)(a.Box,{className:j.errorItem,children:[(0,c.jsx)(i.HiMiniExclamationCircle,{className:j.errorIcon})," ",(0,c.jsx)(a.Text,{size:"1",className:j.textTruncation,children:r}),t.length>1&&(0,c.jsxs)(a.Text,{size:"1",className:j.errorCount,children:["(x",t.length,")"]})]},r)})]})})]})})}},3755:function(e,r,t){"use strict";t.r(r),t.d(r,{$doctor:function(){return c}});var n=t("42700");let s=t("99480").$server.then(e=>e.remote.getDoctorOverview()),c=(0,n.proxy)({errors:s.then(e=>e.errors),numChunks:s.then(e=>e.numChunks),numModules:s.then(e=>e.numModules),numPackages:s.then(e=>e.numPackages),summary:s.then(e=>e.summary)})},70093:function(e){"use strict";e.exports={"compile-cost-card":"compile-cost-card-_02ec7",compileCostCard:"compile-cost-card-_02ec7",container:"container-_97e59","cost-bar":"cost-bar-_13827",costBar:"cost-bar-_13827","cost-box":"cost-box-_0264a",costBox:"cost-box-_0264a","cost-label":"cost-label-_486b6",costLabel:"cost-label-_486b6","count-card":"count-card-_8b9c0",countCard:"count-card-_8b9c0","count-text":"count-text-_77d70",countText:"count-text-_77d70","error-item":"error-item-_3072a",errorItem:"error-item-_3072a",heading:"heading-e81e8c","info-card":"info-card-_6b634",infoCard:"info-card-_6b634",logo:"logo-_24de9","primary-card":"primary-card-_1e6c5",primaryCard:"primary-card-_1e6c5","text-truncation":"text-truncation-_8bcae",textTruncation:"text-truncation-_8bcae"}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see page.42e7444f.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["730"],{13493:function(e,r,s){"use strict";s.r(r),s.d(r,{PairsEditor:function(){return x}});var a=s("90247"),i=s("55709"),n=s("16170"),l=s("86834"),t=s("83982"),c=s("89677"),o=s("5872"),d=s("42700"),u=s("99753"),h=s("68492");let x=e=>{var{$data:r=(0,d.proxy)([]),disabled:s,placeholders:x}=e,p=(0,n._)(e,["$data","disabled","placeholders"]);let v=(0,d.useSnapshot)(r);return(0,o.useEffect)(()=>{v.length<=0&&r.push({id:(0,c.nanoid)(),key:"",value:""})},[v.length]),(0,l.jsx)(t.Box,(0,i._)((0,a._)({className:u.container},p),{children:v.map((e,a)=>(0,l.jsx)(h.Pair,{$data:r[a],disabled:s,placeholders:x,onDelete:()=>r.splice(a,1),onInsert:()=>r.splice(a+1,0,{id:(0,c.nanoid)(),key:"",value:""})},e.id))}))}},68492:function(e,r,s){"use strict";s.r(r),s.d(r,{Pair:function(){return c}});var a=s("86834"),i=s("83982");s("5872");var n=s("29214"),l=s("42700"),t=s("83531");let c=e=>{let{$data:r,onDelete:s,onInsert:c,disabled:o,placeholders:d=["Key...","Value..."]}=e,u=(0,l.useSnapshot)(r);return(0,a.jsxs)(i.Box,{className:t.inputPair,"aria-disabled":o,children:[(0,a.jsx)(i.TextField.Root,{children:(0,a.jsx)(i.TextField.Input,{value:u.key,disabled:o,placeholder:d[0],onChange:e=>r.key=e.currentTarget.value})}),(0,a.jsx)(i.Box,{asChild:!0,grow:"1",children:(0,a.jsx)(i.TextField.Root,{children:(0,a.jsx)(i.TextField.Input,{value:u.value,disabled:o,placeholder:d[1],onChange:e=>r.value=e.currentTarget.value})})}),(0,a.jsxs)(i.Box,{className:t.actions,children:[(0,a.jsx)(i.IconButton,{variant:"ghost",color:"gray",onClick:s,children:(0,a.jsx)(n.HiMinusSmall,{})}),(0,a.jsx)(i.IconButton,{variant:"ghost",color:"gray",onClick:c,children:(0,a.jsx)(n.HiPlusSmall,{})})]})]},u.id)}},98214:function(e,r,s){"use strict";s.r(r);var a=s("86834"),i=s("52493"),n=s.n(i),l=s("5872"),t=s("83982"),c=s("42700"),o=s("55058"),d=s("81695"),u=s("98744"),h=s("13493");r.default=()=>{let e=(0,c.useSnapshot)(d.$state),r=!!e.service.href,s=(0,l.useMemo)(()=>{var r;return(0,c.proxy)(null!==(r=n().cloneDeep(e.service.rules))&&void 0!==r?r:[])},[]),i=(0,c.useSnapshot)(s),x=r?"Active":"Offline",p=async()=>{await (0,d.registerService)(i.filter(e=>e.key))},v=async()=>{await (0,d.unregisterService)()};return(0,a.jsxs)(t.Box,{className:u.container,children:[(0,a.jsx)(t.Heading,{mt:"4",children:"Header Modifier"}),(0,a.jsxs)(t.Flex,{align:"center",gap:"1",children:[(0,a.jsx)(t.Box,{className:u.signal,"data-active":r}),(0,a.jsx)(t.Text,{color:"gray",size:"1",children:x}),e.service.href&&(0,a.jsx)(t.Link,{size:"1",href:e.service.href,target:"_blank",children:(0,o.parseURL)(e.service.href).pathname})]}),(0,a.jsx)(h.PairsEditor,{$data:s,disabled:r,my:"3",placeholders:["Match header field...","Replace by..."]}),(0,a.jsx)(t.Flex,{justify:"end",gap:"2",children:r?(0,a.jsx)(t.Button,{color:"red",onClick:v,children:"Unregister"}):(0,a.jsx)(t.Button,{onClick:p,children:"Register"})})]})}},98744:function(e){"use strict";e.exports={signal:"signal-_8af82"}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see layout.f6b0d5ea.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["925"],{4612:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return c}});var o=t("86834"),s=t("39934"),r=t("83982"),u=t("2875");function c(){return(0,o.jsx)(r.Box,{px:"4",mx:"auto",pb:"4",className:u.container,children:(0,o.jsx)(s.Outlet,{})})}},2875:function(e){"use strict";e.exports={container:"container-_15ef2"}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see page.0a2b4c8e.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["161"],{88640:function(e,r,a){"use strict";a.r(r);r.default=function(){for(var e,r,a=0,i="";a<arguments.length;)(e=arguments[a++])&&(r=function e(r){var a,i,n="";if("string"==typeof r||"number"==typeof r)n+=r;else if("object"==typeof r){if(Array.isArray(r))for(a=0;a<r.length;a++)r[a]&&(i=e(r[a]))&&(n&&(n+=" "),n+=i);else for(a in r)r[a]&&(n&&(n+=" "),n+=a)}return n}(e))&&(i&&(i+=" "),i+=r);return i}},64456:function(e,r,a){"use strict";a.r(r),a.d(r,{IndicateCard:function(){return h}});var i=a("90247"),n=a("55709"),s=a("16170"),t=a("86834"),c=a("88640"),l=a("83982"),o=a("4423");let d=e=>{var{children:r,className:a}=e,d=(0,s._)(e,["children","className"]);return(0,t.jsx)(l.Box,(0,n._)((0,i._)({},d),{className:(0,c.default)(o.indicateCard,a),children:r}))};d.displayName="IndicateCard";let p=e=>(0,t.jsx)(l.Flex,(0,i._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e));p.displayName="IndicateCard.Column";let h=Object.assign(d,{Column:p})},72737:function(e,r,a){"use strict";a.r(r);var i=a("64456");a.es(i,r)},51090:function(e,r,a){"use strict";a.r(r);var i=a("86834"),n=a("83982");a("5872");var s=a("29214"),t=a("55058"),c=a("42700"),l=a("99480");a("4423");var o=a("27668"),d=a("72737");let p={webpack:"webpack",rspack:"@rspack/core"};r.default=()=>{let e=(0,c.useSnapshot)(l.$framework),r=(0,c.useSnapshot)(l.$definition),a=(0,c.useSnapshot)(l.$dependencies),h=(0,c.useSnapshot)(l.$builder),x=(0,c.useSnapshot)(l.$perf),u=window.navigator.userAgent.includes("Mac OS"),{toolsType:g}=e.context;if("app-tools"!==g)throw Error();let m=r.packages.appTools,j=a[m],{bundlerType:f}=h.context,b=p[f],y=a[b];return(0,i.jsxs)(n.Flex,{direction:"column",align:"center",p:"4",children:[(0,i.jsxs)(n.Flex,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:o.container,children:[(0,i.jsx)(d.IndicateCard,{className:o.primaryCard,children:(0,i.jsx)(n.Theme,{appearance:"dark",hasBackground:!1,asChild:!0,children:(0,i.jsxs)(d.IndicateCard.Column,{children:[(0,i.jsx)(n.Heading,{as:"h1",className:o.heading,children:"DevTools"}),(0,i.jsx)(n.Flex,{gap:"2",children:(0,i.jsxs)("button",{type:"button",children:["v",l.VERSION]})}),(0,i.jsxs)(n.Text,{as:"p",size:"1",children:["Powered by ",m,"@",j]})]})})}),(0,i.jsx)(d.IndicateCard,{className:o.infoCard,children:(0,i.jsxs)(n.Flex,{justify:"between",gap:"3",align:"center",height:"100%",children:[(0,i.jsxs)(n.Box,{children:[(0,i.jsx)(n.Text,{color:"gray",children:"Visit our website"}),(0,i.jsx)(n.Flex,{align:"center",asChild:!0,children:(0,i.jsxs)(n.Link,{href:r.announcement.fallback,target:"_blank",rel:"noopener noreferrer",children:[(0,i.jsx)(s.HiLink,{}),(0,i.jsx)(n.Text,{children:(0,t.parseURL)(r.announcement.fallback).host})]})})]}),(0,i.jsx)(n.Box,{color:"gray",asChild:!0,children:(0,i.jsx)(s.HiOutlineDocumentText,{size:"50",color:"var(--gray-6)"})})]})}),(0,i.jsx)(d.IndicateCard,{className:o.pluginCard,children:(0,i.jsxs)(n.Flex,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,i.jsxs)(n.Box,{children:[(0,i.jsx)(n.Text,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},mb:"2",children:e.context.plugins.length}),(0,i.jsx)(n.Text,{as:"p",size:"1",color:"gray",children:"Framework Plugins"})]}),(0,i.jsx)(s.HiOutlinePuzzlePiece,{size:"50",color:"var(--gray-6)"})]})}),(0,i.jsx)(d.IndicateCard,{className:o.compileTimeCard,children:(0,i.jsxs)(n.Flex,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,i.jsxs)(n.Box,{children:[(0,i.jsxs)(n.Text,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},children:[(x.compileDuration/1e3).toFixed(2),"s"]}),(0,i.jsxs)(n.Text,{as:"p",size:"1",color:"gray",children:["Compiled in ",b,"@",y]})]}),(0,i.jsx)(s.HiOutlineClock,{size:"50",color:"var(--gray-6)"})]})})]}),(0,i.jsxs)(n.Flex,{align:"center",className:o.bottomTip,children:[(0,i.jsx)(n.Text,{color:"gray",size:"2",children:"Use"}),(0,i.jsxs)(n.Kbd,{mx:"2",children:["Shift + ",u?"Opt":"Alt"," + D"]}),(0,i.jsx)(n.Text,{color:"gray",size:"2",children:"to open DevTools"})]})]})}},27668:function(e){"use strict";e.exports={"bottom-tip":"bottom-tip-_4de0d",bottomTip:"bottom-tip-_4de0d","compile-time-card":"compile-time-card-_5eda1",compileTimeCard:"compile-time-card-_5eda1",container:"container-_43720",heading:"heading-ecaa29","indicate-bar":"indicate-bar-_5118d",indicateBar:"indicate-bar-_5118d","info-card":"info-card-_07b33",infoCard:"info-card-_07b33","plugin-card":"plugin-card-f1e2dc",pluginCard:"plugin-card-f1e2dc","primary-card":"primary-card-a671aa",primaryCard:"primary-card-a671aa"}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see page.1ed2c561.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["718"],{16887:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseRoute:function(){return c}});var r=n("86834"),o=n("5872"),a=n("1607"),i=n("83982"),s=n("60441"),l=n("34145"),u=n("17862");let c=e=>{let{badge:t,route:n,title:c,children:d,open:x,onOpenChange:h}=e,{matched:p}=(0,o.useContext)(u.MatchUrlContext),[m,f]=(0,o.useState)(!1),j=p===n,g=j||(null!=x?x:m);return(0,r.jsx)(i.Box,{p:"3",className:l.container,children:(0,r.jsxs)(a.Root,{open:g,onOpenChange:null!=h?h:f,children:[(0,r.jsxs)(a.Trigger,{className:l.trigger,children:[t,(0,r.jsx)(i.Text,{className:l.urlText,style:{opacity:p&&!j?.5:1},children:c}),(0,r.jsx)(i.Box,{grow:"1"}),(0,r.jsx)(i.Box,{className:l.mark,"data-open":g,children:(0,r.jsx)(s.CaretSortIcon,{})})]}),(0,r.jsx)(a.Content,{className:l.content,children:d})]})})}},17862:function(e,t,n){"use strict";n.r(t),n.d(t,{MatchUrlContext:function(){return r}});let r=(0,n("5872").createContext)({url:""})},96737:function(e,t,n){"use strict";n.r(t),n.d(t,{LegacyRouteStats:function(){return a}});var r=n("86834");n("5872");var o=n("83982");let a=()=>(0,r.jsx)(o.Text,{children:"Unimplemented."})},68199:function(e,t,n){"use strict";n.r(t),n.d(t,{MatchRemixRouteContext:function(){return r}});let r=(0,n("5872").createContext)([])},14492:function(e,t,n){"use strict";n.r(t),n.d(t,{RemixRoute:function(){return x}});var r=n("86834"),o=n("5872"),a=n("83982"),i=n("52493"),s=n.n(i),l=n("55058"),u=n("20421"),c=n("68199"),d=n("83447");let x=e=>{var t,n;let{route:i}=e,h=s().castArray(i),p=s().last(h),m="_component"in p&&s().isString(p._component)?p._component:null,f=(0,l.resolveURL)("/",...h.map(e=>e.path).filter(s().isString))||"/",j=null!==(n=p.index)&&void 0!==n&&n,g="/"===f,y=(0,o.useContext)(c.MatchRemixRouteContext),v=!1===y||y.length>0,R=!!y&&!!s().find(y,{route:{id:p.id}}),C=(0,o.useRef)(null),b=(0,u.useHoverDirty)(C);return(0,r.jsxs)(a.Box,{ref:C,children:[(0,r.jsxs)(a.Flex,{gap:"2",align:"center",mb:p.children&&"1",children:[(0,r.jsxs)(a.Box,{className:d.endpointContainer,"data-matched":!v||R,children:[j&&g||(0,r.jsx)(a.Code,{className:d.endpointTag,"data-compose":j&&"head",children:f}),j&&(0,r.jsx)(a.Code,{className:d.endpointTag,color:"purple","data-compose":!g&&"tail",children:"/(index)"})]}),m&&(0,r.jsx)(a.Link,{className:d.shyLink,style:{visibility:b?"visible":"hidden"},children:m})]}),(0,r.jsx)(a.Flex,{direction:"column",gap:"1",children:null===(t=p.children)||void 0===t?void 0:t.map(e=>(0,r.jsx)(x,{route:h.concat(e)},e.id))})]})}},16197:function(e,t,n){"use strict";n.r(t),n.d(t,{RemixRouteStats:function(){return d}});var r=n("86834"),o=n("39934"),a=n("83982"),i=n("5872"),s=n("55058"),l=n("17862"),u=n("68199"),c=n("14492");let d=e=>{let{remixRoutes:t,route:n}=e,{matched:d,url:x}=(0,i.useContext)(l.MatchUrlContext),h=(0,i.useMemo)(()=>{if(d!==n)return!d&&[];{var e;if(!t)return[];let r=(0,s.cleanDoubleSlashes)(x.replace(n.urlPath,"/")),a=null!==(e=(0,o.matchRoutes)(t,r))&&void 0!==e?e:[];return!!a.length&&a}},[t,d,x]);return t.length?(0,r.jsx)(u.MatchRemixRouteContext.Provider,{value:h,children:(0,r.jsx)(a.Flex,{gap:"2",direction:"column",children:t.map(e=>(0,r.jsx)(c.RemixRoute,{route:e},e.id))})}):null}},85080:function(e,t,n){"use strict";n.r(t),n.d(t,{ClientRouteStats:function(){return x}});var r=n("86834"),o=n("52493"),a=n.n(o),i=n("5872"),s=n("42700"),l=n("96737"),u=n("16197"),c=n("99480"),d=n("24326");(0,s.proxy)({});let x=e=>{let{route:t}=e,n=(0,d.useThrowable)(c.$server),{entrypoints:o}=(0,s.useSnapshot)(c.$framework).context,x=t.entryName&&a().find(o,{entryName:t.entryName});if(!x)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));let p=n.remote.getFileSystemRoutes(x.entryName);return(0,r.jsx)(i.Suspense,{children:(0,r.jsx)(()=>{let e=(0,d.useThrowable)(p);return h(e)?(0,r.jsx)(l.LegacyRouteStats,{}):(0,r.jsx)(u.RemixRouteStats,{remixRoutes:e,route:t})},{})})},h=e=>e[0]&&!("type"in e[0])},38502:function(e,t,n){"use strict";n.r(t);var r=n("85080");n.es(r,t)},82616:function(e,t,n){"use strict";n.r(t),n.d(t,{EntryRoute:function(){return u}});var r=n("86834"),o=n("5872"),a=n("83982"),i=n("16887"),s=n("5489"),l=n("38502");let u=e=>{let{route:t}=e;return(0,r.jsx)(i.BaseRoute,{badge:c,route:t,title:t.urlPath,children:(0,r.jsxs)(a.Flex,{direction:"column",gap:"2",children:[(0,r.jsx)(a.ScrollArea,{scrollbars:"horizontal",children:(0,r.jsx)(s.EntryStats,{route:t})}),(0,r.jsx)(a.ScrollArea,{scrollbars:"horizontal",children:(0,r.jsx)(o.Suspense,{children:(0,r.jsx)(l.ClientRouteStats,{route:t})})})]})})},c=(0,r.jsx)(a.Badge,{color:"cyan",children:"Entry"})},5489:function(e,t,n){"use strict";n.r(t),n.d(t,{EntryStats:function(){return c}});var r=n("86834");n("5872");var o=n("52493"),a=n.n(o),i=n("42700"),s=n("83982"),l=n("92439"),u=n("99480");let c=e=>{let{route:t}=e,{entrypoints:n}=(0,i.useSnapshot)(u.$framework).context,o=t.entryName&&a().find(n,{entryName:t.entryName});if(!o)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,r.jsxs)(s.Box,{className:l.stats,children:[(0,r.jsxs)(s.Flex,{gap:"1",children:[(0,r.jsx)(s.Strong,{children:"Directory: "}),(0,r.jsx)(s.Text,{children:o.absoluteEntryDir})]}),(0,r.jsxs)(s.Flex,{gap:"1",children:[(0,r.jsx)(s.Strong,{children:"Entry:"}),(0,r.jsx)(s.Text,{children:o.entry})]})]})}},4992:function(e,t,n){"use strict";n.r(t);var r=n("82616");n.es(r,t)},97083:function(e,t,n){"use strict";n.r(t),n.d(t,{ServerRoute:function(){return l}});var r=n("86834");n("5872");var o=n("52493"),a=n.n(o),i=n("4992"),s=n("76533");let l=e=>{let{route:t}=e;return a().isString(t.entryName)?(0,r.jsx)(i.EntryRoute,{route:t}):(0,r.jsx)(s.UnknownRoute,{route:t})}},76533:function(e,t,n){"use strict";n.r(t),n.d(t,{UnknownRoute:function(){return i}});var r=n("86834");n("5872");var o=n("83982"),a=n("16887");let i=e=>{let{route:t}=e;return(0,r.jsx)(a.BaseRoute,{badge:s,route:t,title:t.urlPath,children:(0,r.jsx)(o.Card,{children:"Unknown route type."})})},s=(0,r.jsx)(o.Badge,{color:"gray",children:"Unknown"})},95879:function(e,t,n){"use strict";n.r(t);var r=n("86834"),o=n("83982"),a=n("5872"),i=n("42700"),s=n("55058"),l=n("29214"),u=n("99480"),c=n("31759"),d=n("17862"),x=n("97083");t.default=()=>{let{serverRoutes:e}=(0,i.useSnapshot)(u.$framework).context,[t,n]=(0,a.useState)({url:""}),h=t=>{let{pathname:r}=(0,s.parseURL)(t);n({url:t,matched:e.find(e=>r===e.urlPath||r.startsWith((0,s.withTrailingSlash)(e.urlPath)))})};return(0,r.jsx)(d.MatchUrlContext.Provider,{value:t,children:(0,r.jsxs)(o.Flex,{position:"relative",direction:"column",gap:"2",align:"stretch",justify:"between",pt:"8",children:[e.map(e=>(0,r.jsx)(x.ServerRoute,{route:e},e.entryPath)),(0,r.jsx)(o.Box,{mb:"2",className:c.input,children:(0,r.jsx)(o.Box,{style:{maxWidth:"40rem",margin:"0 auto",padding:"0 var(--space-4)"},children:(0,r.jsxs)(o.TextField.Root,{children:[(0,r.jsx)(o.TextField.Slot,{children:(0,r.jsx)(l.HiOutlineArrowsRightLeft,{})}),(0,r.jsx)(o.TextField.Input,{placeholder:"/foo?bar#baz",onChange:e=>h(e.target.value),type:"url",autoComplete:"false",autoCapitalize:"false",autoCorrect:"false"})]})})})]})})}},31759:function(e){"use strict";e.exports={input:"input-d0c7d8"}},1607:function(e,t,n){"use strict";n.r(t),n.d(t,{Content:function(){return w},Root:function(){return S},Trigger:function(){return N}});var r=n("83197"),o=n("5872"),a=n("67844"),i=n("82602"),s=n("88654"),l=n("59504"),u=n("88340"),c=n("63422"),d=n("78910"),x=n("63018");let h="Collapsible",[p,m]=(0,i.createContextScope)(h),[f,j]=p(h),g=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:a,defaultOpen:i,disabled:l,onOpenChange:u,...d}=e,[h=!1,p]=(0,s.useControllableState)({prop:a,defaultProp:i,onChange:u});return(0,o.createElement)(f,{scope:n,disabled:l,contentId:(0,x.useId)(),open:h,onOpenToggle:(0,o.useCallback)(()=>p(e=>!e),[p])},(0,o.createElement)(c.Primitive.div,(0,r.default)({"data-state":b(h),"data-disabled":l?"":void 0},d,{ref:t})))}),y=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...i}=e,s=j("CollapsibleTrigger",n);return(0,o.createElement)(c.Primitive.button,(0,r.default)({type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":b(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled},i,{ref:t,onClick:(0,a.composeEventHandlers)(e.onClick,s.onOpenToggle)}))}),v="CollapsibleContent",R=(0,o.forwardRef)((e,t)=>{let{forceMount:n,...a}=e,i=j(v,e.__scopeCollapsible);return(0,o.createElement)(d.Presence,{present:n||i.open},({present:e})=>(0,o.createElement)(C,(0,r.default)({},a,{ref:t,present:e})))}),C=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:a,children:i,...s}=e,d=j(v,n),[x,h]=(0,o.useState)(a),p=(0,o.useRef)(null),m=(0,u.useComposedRefs)(t,p),f=(0,o.useRef)(0),g=f.current,y=(0,o.useRef)(0),R=y.current,C=d.open||x,S=(0,o.useRef)(C),N=(0,o.useRef)();return(0,o.useEffect)(()=>{let e=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.useLayoutEffect)(()=>{let e=p.current;if(e){N.current=N.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();f.current=t.height,y.current=t.width,!S.current&&(e.style.transitionDuration=N.current.transitionDuration,e.style.animationName=N.current.animationName),h(a)}},[d.open,a]),(0,o.createElement)(c.Primitive.div,(0,r.default)({"data-state":b(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!C},s,{ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":R?`${R}px`:void 0,...e.style}}),C&&i)});function b(e){return e?"open":"closed"}let S=g,N=y,w=R}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["567"],{15752:function(t){"use strict";t.exports={connector:"connector-_43720",link:"link-_26ee2"}},4423:function(t){"use strict";t.exports={"indicate-card":"indicate-card-_974b8",indicateCard:"indicate-card-_974b8"}},68784:function(t){"use strict";t.exports={container:"container-a41eae"}},60803:function(t){"use strict";t.exports={container:"container-c37ff8",fab:"fab-b17740",logo:"logo-c7a29e",slideInFromRight:"slideInFromRight-e1026d"}},30796:function(t){"use strict";t.exports={backdrop:"backdrop-_51706","close-button":"close-button-c3742a",closeButton:"close-button-c3742a",container:"container-fb8255",frame:"frame-_5d7ff"}},943:function(t){"use strict";t.exports={children:"children-ce277e",container:"container-feec25"}},61968:function(t){"use strict";t.exports={loading:"loading-f4a5e7",rotate:"rotate-d4ee47"}},66258:function(t){"use strict";t.exports={container:"container-_6ff2e"}},23434:function(t){"use strict";t.exports={container:"container-_1260b"}},99753:function(t){"use strict";t.exports={container:"container-_560f9"}},83531:function(t){"use strict";t.exports={actions:"actions-_5b76a","input-pair":"input-pair-_55005",inputPair:"input-pair-_55005"}},34145:function(t){"use strict";t.exports={container:"container-_729f8",content:"content-_01b01",mark:"mark-_92790",slideDown:"slideDown-b8bce3",slideUp:"slideUp-dbcad1",trigger:"trigger-_13b59","url-text":"url-text-a0e7e4",urlText:"url-text-a0e7e4"}},83447:function(t){"use strict";t.exports={"endpoint-container":"endpoint-container-_4be65",endpointContainer:"endpoint-container-_4be65","endpoint-tag":"endpoint-tag-_0664a",endpointTag:"endpoint-tag-_0664a","shy-link":"shy-link-d59f70",shyLink:"shy-link-d59f70"}},92439:function(t){"use strict";t.exports={stats:"stats-e82970"}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see mount.799a7150.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{74709:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsCapsuleButton:function(){return i}});var o=n("86834");n("5872");var r=n("20421"),l=n("68784");let i=e=>{var t;let[n,i]=(0,r.useAsyncFn)(()=>Promise.resolve(e.onClick()),[]);return(0,o.jsx)("button",{className:l.container,onClick:i,"data-type":null!==(t=e.type)&&void 0!==t?t:"default",disabled:n.loading,children:e.children})}},62325:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsCapsule:function(){return y}});var o=n("90247"),r=n("55709"),l=n("86834"),i=n("83982"),s=n("5872"),a=n("20421"),c=n("29214"),u=n("55058"),d=n("45967"),v=n("60803"),m=n("10734"),p=n("74709"),h=n("94258"),f=n("28391"),_=n("51879");let g=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:n}=t,o=null===(e=n.match(/^#\/__devtools(.*)/))||void 0===e?void 0:e[1];return"string"!=typeof o?null:""===o?"/":o},y=e=>{let t=e.def.assets.logo,n=g(),[y,w]=(0,a.useToggle)(!!n),[k,b]=(0,s.useState)(!1),E=(0,u.withQuery)(e.endpoint,{src:e.dataSource}),x=(0,h.useStickyDraggable)({clamp:!0}),[C,j]=(0,s.useState)(()=>{var e;let t=null!==(e=localStorage.getItem("__modern_js_devtools_appearance"))&&void 0!==e?e:"light";return localStorage.setItem("__modern_js_devtools_appearance",t),t});(0,a.useEvent)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&j(e.newValue||void 0)}),(0,a.useEvent)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&w()}),(0,s.useEffect)(()=>{f.wallAgent.hook("receive",e=>{"startInspectingNative"===e.event&&(w(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(w(!0),document.documentElement.style.removeProperty("cursor"))};return f.wallAgent.hook("send",e),()=>{f.wallAgent.removeHook("send",e)}},[]);let O=async()=>{document.documentElement.style.setProperty("cursor","wait"),w(!1),b(!0);try{(await (0,_.pTimeout)(f.$client,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,a.useAsync)(async()=>{if(!!n)(await (0,_.pTimeout)(f.$client,1e4)).remote.pullUp(n)},[]),(0,l.jsxs)(i.Theme,{appearance:C,className:C,children:[(0,l.jsx)(d.default,{when:y,keepAlive:!0,load:k,children:(0,l.jsx)("div",{className:v.container,children:(0,l.jsx)(m.FrameBox,{src:E,onClose:()=>w(!1),style:{pointerEvents:x.isDragging?"none":"auto"}})})}),(0,l.jsxs)(i.Flex,(0,r._)((0,o._)({className:v.fab},x.props),{align:"center",children:[(0,l.jsx)(p.DevtoolsCapsuleButton,{type:"primary",onClick:w,children:(0,l.jsx)("img",{className:v.logo,src:t})}),(0,l.jsx)(p.DevtoolsCapsuleButton,{onClick:O,children:(0,l.jsx)(c.HiMiniCursorArrowRipple,{})})]}))]})}},10734:function(e,t,n){"use strict";n.r(t),n.d(t,{FrameBox:function(){return m}});var o=n("90247"),r=n("55709"),l=n("16170"),i=n("86834"),s=n("83982");n("5872");var a=n("29214"),c=n("42700"),u=n("428"),d=n("30796"),v=n("28391");let m=e=>{var{src:t,onClose:n}=e,m=(0,l._)(e,["src","onClose"]);let{loaded:p}=(0,c.useSnapshot)(v.$inner);return(0,i.jsxs)(s.Box,(0,r._)((0,o._)({className:d.container},m),{children:[(0,i.jsx)("iframe",{className:d.frame,src:t}),(0,i.jsx)(a.HiMiniXMark,{className:d.closeButton,onClick:n}),(0,i.jsx)("div",{className:d.backdrop,style:{display:p?"none":void 0},children:(0,i.jsx)(u.Loading,{})})]}))}},45967:function(e,t,n){"use strict";n.r(t);var o=n("86834"),r=n("5872");t.default=e=>{var t;let n=null===(t=e.keepAlive)||void 0===t||t,{when:l}=e,i=(0,r.useRef)(!1);l&&(i.current=!0);let s=e.load||(n?i.current:l);return s?(0,o.jsx)("div",{style:{display:!n||l?"unset":"none"},children:e.children}):null}},80295:function(e,t,n){"use strict";n.r(t);var o=n("90247"),r=n("86834");n("82231"),n("28391");var l=n("60182"),i=n("12991"),s=n("62325");document.addEventListener("DOMContentLoaded",()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),n=document.getElementById("_modern_js_devtools_styles");if(!(n instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(n.content);let a=document.createElement("div");a.classList.add("_modern_js_devtools_mountpoint","theme-register",i.container),t.appendChild(a);let c=window.__MODERN_JS_DEVTOOLS_OPTIONS__;(0,l.createRoot)(a).render((0,r.jsx)(s.DevtoolsCapsule,(0,o._)({},c)))})},82231:function(e,t,n){"use strict";n.r(t);var o=n("57662");if(!window.opener)try{try{delete window.__REACT_DEVTOOLS_GLOBAL_HOOK__}catch(e){}(0,o.initialize)(window);let e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub;window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub=(t,n)=>{if("devtools-backend-installed"!==t)return e(t,n)}}catch(t){let e=Error("Failed to inject React DevTools backend.");e.cause=t,console.error(e)}},28391:function(e,t,n){"use strict";n.r(t),n.d(t,{$client:function(){return f},$inner:function(){return _},wallAgent:function(){return p}});var o=n("90247"),r=n("55709"),l=n("10487"),i=n("88739"),s=n("65872"),a=n("9880"),c=n.n(a),u=n("42700"),d=n("57662"),v=n("24933");let m=l.MessagePortChannel.wait(window,"channel:connect:client"),p=new v.WallAgent,h=(0,d.createBridge)(window,p),f=m.then(e=>{let t=(0,s.createHooks)();return{remote:(0,i.createBirpc)({async activateReactDevtools(){(0,d.activate)(window,{bridge:h})},async onFinishRender(){await t.callHook("onFinishRender")}},(0,r._)((0,o._)({},e.handlers),{timeout:500})),hooks:t}}),_=(0,u.proxy)({loaded:!1}),g=c()();f.then(e=>{let{remote:t,hooks:n}=e;p.bindRemote(t,"sendReactDevtoolsData"),n.hook("onFinishRender",async()=>{_.loaded=!0,g.resolve()})})},94258:function(e,t,n){"use strict";n.r(t),n.d(t,{useStickyDraggable:function(){return a}});var o=n("5872"),r=n("20421");let l=(e,t)=>{var n,o;return null!==(o=null===(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===n?void 0:n.includes(t))&&void 0!==o&&o},i=e=>{let[t,...n]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),o=n.findIndex(e=>{let{key:n}=e;return l(t.key,n)}),[r]=n.splice(o,1);return[t,r,n[0],n[1]]},s=e=>{let{top:t,left:n,height:o,width:r}=e.getBoundingClientRect();return{top:t,left:n,bottom:window.innerHeight-t-o,right:window.innerWidth-n-r}},a=e=>{var t;let n=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",l="number"==typeof n?"".concat(n,"px"):n,[a,c]=(0,o.useState)(),u=()=>{if(!a)return;a.moveable=!1;let{el:e}=a,[t]=i(s(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{c(void 0),e.style[t.key]=l}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},d=t=>{let n="touches"in t?t.touches[0]:t;if(!(null==a?void 0:a.moveable))return;let{startX:o,startY:r}=a;(o-n.clientX)**2+(r-n.clientY)**2>9&&(a.clickable=!1);let{width:s,height:c}=a.el.getBoundingClientRect(),u=n.clientY-a.offsetY,d=n.clientX-a.offsetX,v=i({top:u,left:d,bottom:window.innerHeight-u-c,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:n}=e;return{key:t,value:"".concat(n,"px")}});if(null==e?void 0:e.clamp)for(let e of v){let t=["top","bottom"].includes(e.key)?window.innerHeight-c:window.innerWidth-s;e.value="clamp(".concat(l,", ").concat(e.value,", ").concat(t,"px)")}let[m,p,...h]=v,{style:f}=a.el;f.transition="",f[m.key]=m.value,f[p.key]=p.value,f[h[0].key]="auto",f[h[1].key]="auto"};(0,r.useEvent)("blur",u),(0,r.useEvent)("mouseup",u),(0,r.useEvent)("touchend",u),(0,r.useEvent)("mousemove",d),(0,r.useEvent)("touchmove",d);let v=e=>{let t="touches"in e?e.touches[0]:e,n=e.currentTarget,o=n.getBoundingClientRect(),r=t.clientX-o.left;c({el:n,clickable:!0,moveable:!0,offsetX:r,offsetY:t.clientY-o.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!a,props:{onMouseDown:v,onTouchStart:v,onClickCapture:e=>{(null==a?void 0:a.clickable)||e.stopPropagation()}}}}},51879:function(e,t,n){"use strict";n.r(t),n.d(t,{pTimeout:function(){return o}});let o=(e,t)=>new Promise((n,o)=>{let r=!0,l=setTimeout(()=>{r=!1,o(Error("Promise Timeout"))},t);e.then(e=>{r&&n(e),clearTimeout(l)}),e.catch(o)})},24933:function(e,t,n){"use strict";n.r(t),n.d(t,{WallAgent:function(){return r}});var o=n("65872");class r extends o.Hookable{listen(e){return this.hook("receive",e),e}send(e,t,n){this.callHook("send",{event:e,payload:t,transferable:n})}bindRemote(e,t){var n=this;return e.$functions[t]=function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];n.callHook("receive",e,...o)},this.hook("send",function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];e[t](...o)}),this}constructor(){super(),this.status="close";let e=e=>{this.status!==e&&(this.status=e,this.callHook(e))};this.hook("send",t=>{"shutdown"===t.event&&e("close")}),this.hook("receive",t=>{"shutdown"===t.event?e("close"):"operations"===t.event?e("active"):e("open")})}}},12991:function(e){"use strict";e.exports={container:"container-d972e2"}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","567","58","637","768","886"],function(){return t("90915"),t("70752"),t("30178"),t("19449"),t("80295")}),e.O()}]);
|
|
File without changes
|
|
File without changes
|
/package/dist/static/css/async/client_headers/editor/{page.c78f5c66.css → page.0f830a9e.css}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|