@modern-js/devtools-client 2.63.1 → 2.63.2
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/modern.config.json +1 -1
- package/dist/public/sw-proxy.js +1 -1
- package/dist/routes-manifest.json +46 -46
- package/dist/static/html/client/index.html +3 -3
- package/dist/static/html/mount/index.html +3 -3
- package/dist/static/js/{994.cc1ba2ea.js → 126.0e10fa7a.js} +2 -2
- package/dist/static/js/{130.bd8a3971.js → 130.1eb14df2.js} +1 -1
- package/dist/static/js/{902.315a66aa.js → 462.22b4d9cf.js} +2 -2
- package/dist/static/js/async/client_config/(toolkit).(type)/page.a123736c.js +1 -0
- package/dist/static/js/async/client_context/builder/page.ee9f7d4c.js +1 -0
- package/dist/static/js/async/client_context/framework/page.a6b5ae72.js +1 -0
- package/dist/static/js/async/client_doctor/{page.5a882dc4.js → page.4c135775.js} +1 -1
- package/dist/static/js/async/client_headers/editor/{page.c306b877.js → page.73be1948.js} +1 -1
- package/dist/static/js/async/client_overview/{page.8ef96858.js → page.ad0466e8.js} +1 -1
- package/dist/static/js/async/client_pages/page.86bfef0d.js +1 -0
- package/dist/static/js/async/client_storage/preset/(id)/{page.5d06dc63.js → page.ff8ef908.js} +1 -1
- package/dist/static/js/async/client_storage/preset/{layout.cff37e09.js → layout.be389ac8.js} +1 -1
- package/dist/static/js/async/client_storage/preset/{page.d04d4cce.js → page.f51b7267.js} +1 -1
- package/dist/static/js/{builder-runtime.fcecd1ab.js → builder-runtime.63449c22.js} +1 -1
- package/dist/static/js/{client.7212d44f.js → client.a42dc0eb.js} +1 -1
- package/dist/static/js/components.544a9b00.js +1 -0
- package/dist/static/js/{lib-polyfill.462b1c61.js → lib-polyfill.e1296102.js} +1 -1
- package/dist/static/js/{mount.ef9369df.js → mount.2c706324.js} +1 -1
- package/package.json +10 -10
- package/dist/static/js/async/client_config/(toolkit).(type)/page.8bc97833.js +0 -1
- package/dist/static/js/async/client_context/builder/page.fcda5ff9.js +0 -1
- package/dist/static/js/async/client_context/framework/page.65ed7399.js +0 -1
- package/dist/static/js/async/client_pages/page.15a50bf1.js +0 -1
- package/dist/static/js/components.f9280f6d.js +0 -1
- /package/dist/static/css/{994.a6924970.css → 126.a6924970.css} +0 -0
- /package/dist/static/css/{902.e8d8ecd9.css → 462.e8d8ecd9.css} +0 -0
- /package/dist/static/js/{994.cc1ba2ea.js.LICENSE.txt → 126.0e10fa7a.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{902.315a66aa.js.LICENSE.txt → 462.22b4d9cf.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{96747:function(e,t,o){var n=o("86834"),l=o("49987"),r=o("65"),i=o("64542"),s=o("10487"),a=o("7459"),c=o("65872"),d=o("52493"),u=o.n(d),m=o("9880"),v=o.n(m),h=o("57662"),p=o("82847");let y=s.MessagePortChannel.wait(window,"channel:connect:client"),f=new i.S,g=(0,h.createBridge)(window,f),w=y.then(e=>{let t=(0,c.Hu)();return{remote:(0,a.Fu)({async activateReactDevtools(){(0,h.activate)(window,{bridge:g})},async onFinishRender(){await t.callHook("onFinishRender")},async cookies(e){let t=await fetch("/__devtools/api/cookies",{method:"POST",body:JSON.stringify({setCookies:e})}),{cookies:n}=await t.json();if(!n||"object"!=typeof n)throw TypeError("No cookies returned from server");let{parse:l}=await o.e("883").then(o.bind(o,10851)),r=l(document.cookie),i=u().omit(n,Object.keys(r));return{client:r,server:i}},localStorage:async e=>(u().each(e,(e,t)=>{window.localStorage.setItem(t,e)}),(0,l._)({},window.localStorage)),sessionStorage:async e=>(u().each(e,(e,t)=>{window.sessionStorage.setItem(t,e)}),(0,l._)({},window.sessionStorage))},(0,r._)((0,l._)({},e.handlers),{timeout:500})),hooks:t}}),k=(0,p.sj)({loaded:!1}),b=v()();w.then(e=>{let{remote:t,hooks:o}=e;f.bindRemote(t,"sendReactDevtoolsData"),o.hook("onFinishRender",async()=>{k.loaded=!0,b.resolve()})});var _=o("41035"),j=o("5872"),x=o("41629");let C=(e,t)=>{var o,n;return null!==(n=null===(o=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===o?void 0:o.includes(t))&&void 0!==n&&n},E=e=>{let[t,...o]=[{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),n=o.findIndex(e=>{let{key:o}=e;return C(t.key,o)}),[l]=o.splice(n,1);return[t,l,o[0],o[1]]},Z=e=>{let{top:t,left:o,height:n,width:l}=e.getBoundingClientRect();return{top:t,left:o,bottom:window.innerHeight-t-n,right:window.innerWidth-o-l}},N=e=>{var t;let o=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",n="number"==typeof o?"".concat(o,"px"):o,[l,r]=(0,j.useState)(),i=()=>{if(!l)return;l.moveable=!1;let{el:e}=l,[t]=E(Z(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{r(void 0),e.style[t.key]=n}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},s=t=>{let o="touches"in t?t.touches[0]:t;if(!(null==l?void 0:l.moveable))return;let{startX:r,startY:i}=l;(r-o.clientX)**2+(i-o.clientY)**2>9&&(l.clickable=!1);let{width:s,height:a}=l.el.getBoundingClientRect(),c=o.clientY-l.offsetY,d=o.clientX-l.offsetX,u=E({top:c,left:d,bottom:window.innerHeight-c-a,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:o}=e;return{key:t,value:"".concat(o,"px")}});if(null==e?void 0:e.clamp)for(let e of u){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-s;e.value="clamp(".concat(n,", ").concat(e.value,", ").concat(t,"px)")}let[m,v,...h]=u,{style:p}=l.el;p.transition="",p[m.key]=m.value,p[v.key]=v.value,p[h[0].key]="auto",p[h[1].key]="auto"};(0,x.Z)("blur",i),(0,x.Z)("mouseup",i),(0,x.Z)("touchend",i),(0,x.Z)("mousemove",s),(0,x.Z)("touchmove",s);let a=e=>{let t="touches"in e?e.touches[0]:e,o=e.currentTarget,n=o.getBoundingClientRect(),l=t.clientX-n.left;r({el:o,clickable:!0,moveable:!0,offsetX:l,offsetY:t.clientY-n.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!l,props:{onMouseDown:a,onTouchStart:a,onClickCapture:e=>{(null==l?void 0:l.clickable)||e.stopPropagation()}}}},R=(e,t)=>new Promise((o,n)=>{let l=!0,r=setTimeout(()=>{l=!1,n(Error("Promise Timeout"))},t);e.then(e=>{l&&o(e),clearTimeout(r)}),e.catch(n)});var S=o("97137"),D=o("58323"),P=o("39120"),T=o("52793"),H=o("59813");let Y=e=>{var t;let o=null===(t=e.keepAlive)||void 0===t||t,{when:l}=e,r=(0,j.useRef)(!1);l&&(r.current=!0);let i=e.load||(o?r.current:l);return i?(0,n.jsx)("div",{style:{display:!o||l?"unset":"none"},children:e.children}):null};var B=o("20117"),I=o("
|
|
1
|
+
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{96747:function(e,t,o){var n=o("86834"),l=o("49987"),r=o("65"),i=o("64542"),s=o("10487"),a=o("7459"),c=o("65872"),d=o("52493"),u=o.n(d),m=o("9880"),v=o.n(m),h=o("57662"),p=o("82847");let y=s.MessagePortChannel.wait(window,"channel:connect:client"),f=new i.S,g=(0,h.createBridge)(window,f),w=y.then(e=>{let t=(0,c.Hu)();return{remote:(0,a.Fu)({async activateReactDevtools(){(0,h.activate)(window,{bridge:g})},async onFinishRender(){await t.callHook("onFinishRender")},async cookies(e){let t=await fetch("/__devtools/api/cookies",{method:"POST",body:JSON.stringify({setCookies:e})}),{cookies:n}=await t.json();if(!n||"object"!=typeof n)throw TypeError("No cookies returned from server");let{parse:l}=await o.e("883").then(o.bind(o,10851)),r=l(document.cookie),i=u().omit(n,Object.keys(r));return{client:r,server:i}},localStorage:async e=>(u().each(e,(e,t)=>{window.localStorage.setItem(t,e)}),(0,l._)({},window.localStorage)),sessionStorage:async e=>(u().each(e,(e,t)=>{window.sessionStorage.setItem(t,e)}),(0,l._)({},window.sessionStorage))},(0,r._)((0,l._)({},e.handlers),{timeout:500})),hooks:t}}),k=(0,p.sj)({loaded:!1}),b=v()();w.then(e=>{let{remote:t,hooks:o}=e;f.bindRemote(t,"sendReactDevtoolsData"),o.hook("onFinishRender",async()=>{k.loaded=!0,b.resolve()})});var _=o("41035"),j=o("5872"),x=o("41629");let C=(e,t)=>{var o,n;return null!==(n=null===(o=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===o?void 0:o.includes(t))&&void 0!==n&&n},E=e=>{let[t,...o]=[{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),n=o.findIndex(e=>{let{key:o}=e;return C(t.key,o)}),[l]=o.splice(n,1);return[t,l,o[0],o[1]]},Z=e=>{let{top:t,left:o,height:n,width:l}=e.getBoundingClientRect();return{top:t,left:o,bottom:window.innerHeight-t-n,right:window.innerWidth-o-l}},N=e=>{var t;let o=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",n="number"==typeof o?"".concat(o,"px"):o,[l,r]=(0,j.useState)(),i=()=>{if(!l)return;l.moveable=!1;let{el:e}=l,[t]=E(Z(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{r(void 0),e.style[t.key]=n}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},s=t=>{let o="touches"in t?t.touches[0]:t;if(!(null==l?void 0:l.moveable))return;let{startX:r,startY:i}=l;(r-o.clientX)**2+(i-o.clientY)**2>9&&(l.clickable=!1);let{width:s,height:a}=l.el.getBoundingClientRect(),c=o.clientY-l.offsetY,d=o.clientX-l.offsetX,u=E({top:c,left:d,bottom:window.innerHeight-c-a,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:o}=e;return{key:t,value:"".concat(o,"px")}});if(null==e?void 0:e.clamp)for(let e of u){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-s;e.value="clamp(".concat(n,", ").concat(e.value,", ").concat(t,"px)")}let[m,v,...h]=u,{style:p}=l.el;p.transition="",p[m.key]=m.value,p[v.key]=v.value,p[h[0].key]="auto",p[h[1].key]="auto"};(0,x.Z)("blur",i),(0,x.Z)("mouseup",i),(0,x.Z)("touchend",i),(0,x.Z)("mousemove",s),(0,x.Z)("touchmove",s);let a=e=>{let t="touches"in e?e.touches[0]:e,o=e.currentTarget,n=o.getBoundingClientRect(),l=t.clientX-n.left;r({el:o,clickable:!0,moveable:!0,offsetX:l,offsetY:t.clientY-n.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!l,props:{onMouseDown:a,onTouchStart:a,onClickCapture:e=>{(null==l?void 0:l.clickable)||e.stopPropagation()}}}},R=(e,t)=>new Promise((o,n)=>{let l=!0,r=setTimeout(()=>{l=!1,n(Error("Promise Timeout"))},t);e.then(e=>{l&&o(e),clearTimeout(r)}),e.catch(n)});var S=o("97137"),D=o("58323"),P=o("39120"),T=o("52793"),H=o("59813");let Y=e=>{var t;let o=null===(t=e.keepAlive)||void 0===t||t,{when:l}=e,r=(0,j.useRef)(!1);l&&(r.current=!0);let i=e.load||(o?r.current:l);return i?(0,n.jsx)("div",{style:{display:!o||l?"unset":"none"},children:e.children}):null};var B=o("20117"),I=o("65127");let L=e=>{var t;let[o,l]=(0,B.Z)(()=>Promise.resolve(e.onClick()),[]);return(0,n.jsx)("button",{className:I.Z.container,onClick:l,"data-type":null!==(t=e.type)&&void 0!==t?t:"default",disabled:o.loading,children:e.children})};var O=o("7557"),X=o("17936"),U=o("88435"),F=o("9768"),W=o("14818");let K=e=>{var{src:t,onClose:o}=e,i=(0,X._)(e,["src","onClose"]);let{loaded:s}=(0,U.R)(k);return(0,n.jsxs)(D.xu,(0,r._)((0,l._)({className:W.Z.container},i),{children:[(0,n.jsx)("iframe",{className:W.Z.frame,src:t}),(0,n.jsx)(P.cu3,{className:W.Z.closeButton,onClick:o}),(0,n.jsx)("div",{className:W.Z.backdrop,style:{display:s?"none":void 0},children:(0,n.jsx)(F.g,{})})]}))},M=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:o}=t,n=null===(e=o.match(/^#\/__devtools(.*)/))||void 0===e?void 0:e[1];return"string"!=typeof n?null:""===n?"/":n},A=e=>{let t=M(),[o,i]=(0,T.Z)(!!t),[s,a]=(0,j.useState)(!1),c=N({clamp:!0}),[d]=(0,S.U)();(0,x.Z)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&i()}),(0,j.useEffect)(()=>{f.hook("receive",e=>{"startInspectingNative"===e.event&&(i(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(i(!0),document.documentElement.style.removeProperty("cursor"))};return f.hook("send",e),()=>{f.removeHook("send",e)}},[]);let u=async()=>{document.documentElement.style.setProperty("cursor","wait"),i(!1),a(!0);try{(await R(w,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,H.Z)(async()=>{if(!!t)(await R(w,1e4)).remote.pullUp(t)},[]),(0,n.jsxs)(D.Q2,{appearance:d,className:d,hasBackground:!1,style:{height:0,width:0,minHeight:0,minWidth:0},children:[(0,n.jsx)(Y,{when:o,keepAlive:!0,load:s,children:(0,n.jsx)("div",{className:O.Z.container,children:(0,n.jsx)(K,{src:e.src,onClose:()=>i(!1),style:{pointerEvents:c.isDragging?"none":"auto"}})})}),(0,n.jsxs)(D.kC,(0,r._)((0,l._)({className:O.Z.fab},c.props),{align:"center",children:[(0,n.jsx)(L,{type:"primary",onClick:i,children:(0,n.jsx)("img",{className:O.Z.logo,src:e.logo})}),(0,n.jsx)(L,{onClick:u,children:(0,n.jsx)(P.aur,{})})]}))]})},q=()=>{let e=window.__modern_js_devtools_manifest;if(!e)throw TypeError("Devtools manifest is not found");let t=e.client;if(!t)throw TypeError("Devtools client source is not found");let o=e.source,l=new URL(t,location.href);if(o){let e=new URL(o,location.href);l.searchParams.set("src",e.href)}return(0,n.jsx)(A,{logo:e.context.def.assets.logo,src:l.href})},J="container-bYVevn",Q=()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),o=document.getElementById("_modern_js_devtools_styles");if(!(o instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(o.content);let l=document.createElement("div");l.classList.add("_modern_js_devtools_mountpoint","theme-register",J),t.appendChild(l),(0,_.createRoot)(l).render((0,n.jsx)(q,{}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Q):Q()}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","130","526","567","58","85"],function(){return t("5256"),t("4650"),t("34863"),t("28651"),t("96747")}),e.O()}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/devtools-client",
|
|
3
|
-
"version": "2.63.
|
|
3
|
+
"version": "2.63.2",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.0.0"
|
|
6
6
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
24
24
|
"@radix-ui/react-toast": "^1.1.5",
|
|
25
25
|
"@radix-ui/themes": "^3.0.5",
|
|
26
|
-
"@rsbuild/core": "1.1.
|
|
26
|
+
"@rsbuild/core": "1.1.9",
|
|
27
27
|
"@types/jest": "^29",
|
|
28
28
|
"@types/lodash": "^4.14.202",
|
|
29
29
|
"@types/node": "~16.11.7",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"typescript": "~5.0.4",
|
|
58
58
|
"ufo": "^1.3.0",
|
|
59
59
|
"valtio": "^1.11.1",
|
|
60
|
-
"@modern-js/app-tools": "2.63.
|
|
61
|
-
"@modern-js/devtools-kit": "2.63.
|
|
62
|
-
"@modern-js/plugin-proxy": "2.63.
|
|
63
|
-
"@modern-js/runtime": "2.63.
|
|
64
|
-
"@modern-js/
|
|
65
|
-
"@
|
|
66
|
-
"@modern-js/
|
|
67
|
-
"@
|
|
60
|
+
"@modern-js/app-tools": "2.63.2",
|
|
61
|
+
"@modern-js/devtools-kit": "2.63.2",
|
|
62
|
+
"@modern-js/plugin-proxy": "2.63.2",
|
|
63
|
+
"@modern-js/runtime": "2.63.2",
|
|
64
|
+
"@modern-js/tsconfig": "2.63.2",
|
|
65
|
+
"@scripts/jest-config": "2.63.2",
|
|
66
|
+
"@modern-js/types": "2.63.2",
|
|
67
|
+
"@modern-js/utils": "2.63.2"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"cookie-es": "^1.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["288"],{3009:function(e,s,a){a.d(s,{v:function(){return f}});var b=a(49987),r=a(86834),n=a(58323),t=a(22282),c=a(98463);let o={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"transparent",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},f=e=>(0,r.jsx)(n.xu,{className:c.Z.container,children:(0,r.jsx)(t.L,(0,b._)({theme:o},e))})},60460:function(e,s,a){a.r(s),a.d(s,{default:function(){return o}});var b=a(86834),r=a(3009),n=a(95197),t=a(43866),c=a(88435);let o=()=>{let e=(0,n.k)(),s={framework:(0,c.R)(e.framework.config),builder:(0,c.R)(e.builder.config),bundler:(0,c.R)(e.bundler.configs)},{toolkit:a,type:o}=(0,t.UO)(),f=s[a][o];return(0,b.jsx)(r.v,{data:f,sortObjectKeys:!0})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["958"],{3009:function(e,s,a){a.d(s,{v:function(){return f}});var b=a(49987),t=a(86834),r=a(58323),n=a(22282),c=a(98463);let o={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"transparent",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},f=e=>(0,t.jsx)(r.xu,{className:c.Z.container,children:(0,t.jsx)(n.L,(0,b._)({theme:o},e))})},13724:function(e,s,a){a.r(s),a.d(s,{default:function(){return c}});var b=a(86834),t=a(3009),r=a(95197),n=a(88435);let c=()=>{let e=(0,r.k)(),{context:s}=(0,n.R)(e.framework);return(0,b.jsx)(t.v,{data:s,sortObjectKeys:!0})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["818"],{3009:function(e,s,a){a.d(s,{v:function(){return f}});var b=a(49987),t=a(86834),r=a(58323),n=a(22282),c=a(98463);let o={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"transparent",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},f=e=>(0,t.jsx)(r.xu,{className:c.Z.container,children:(0,t.jsx)(n.L,(0,b._)({theme:o},e))})},80563:function(e,s,a){a.r(s),a.d(s,{default:function(){return c}});var b=a(86834),t=a(3009),r=a(95197),n=a(88435);let c=()=>{let e=(0,r.k)(),{context:s}=(0,n.R)(e.framework);return(0,b.jsx)(t.v,{data:s,sortObjectKeys:!0})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["718"],{26377:function(e,t,n){function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}n.d(t,{S1:function(){return a},jU:function(){return l},on:function(){return r}});var l="undefined"!=typeof window},526:function(e,t,n){n.r(t),n.d(t,{default:()=>ea});var r=n("86834"),a=n("5872"),l=n.t(a,2);let i=(0,a.createContext)({url:""});var o=n("52493"),s=n.n(o),c=n("58323"),u=n("59546"),d=n("67844"),p=n("25705"),x=n("64209"),h=n("28818"),m=n("18906"),f=n("34106"),j=n("8733");let v=l["useId".toString()]||(()=>void 0),y=0,g="Collapsible",[C,b]=(0,p.b)(g),[N,k]=C(g),E=(0,a.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:l,disabled:i,onOpenChange:o,...s}=e,[c=!1,d]=(0,x.T)({prop:r,defaultProp:l,onChange:o});return(0,a.createElement)(N,{scope:n,disabled:i,contentId:function(e){let[t,n]=a.useState(v());return(0,h.b)(()=>{n(e=>null!=e?e:String(y++))},[e]),e||(t?`radix-${t}`:"")}(),open:c,onOpenToggle:(0,a.useCallback)(()=>d(e=>!e),[d])},(0,a.createElement)(f.WV.div,(0,u.Z)({"data-state":_(c),"data-disabled":i?"":void 0},s,{ref:t})))}),w=(0,a.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...r}=e,l=k("CollapsibleTrigger",n);return(0,a.createElement)(f.WV.button,(0,u.Z)({type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":_(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled},r,{ref:t,onClick:(0,d.M)(e.onClick,l.onOpenToggle)}))}),S="CollapsibleContent",R=(0,a.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,l=k(S,e.__scopeCollapsible);return(0,a.createElement)(j.z,{present:n||l.open},({present:e})=>(0,a.createElement)(Z,(0,u.Z)({},r,{ref:t,present:e})))}),Z=(0,a.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:l,...i}=e,o=k(S,n),[s,c]=(0,a.useState)(r),d=(0,a.useRef)(null),p=(0,m.e)(t,d),x=(0,a.useRef)(0),j=x.current,v=(0,a.useRef)(0),y=v.current,g=o.open||s,C=(0,a.useRef)(g),b=(0,a.useRef)();return(0,a.useEffect)(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.b)(()=>{let e=d.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();x.current=t.height,v.current=t.width,!C.current&&(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),c(r)}},[o.open,r]),(0,a.createElement)(f.WV.div,(0,u.Z)({"data-state":_(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!g},i,{ref:p,style:{"--radix-collapsible-content-height":j?`${j}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),g&&l)});function _(e){return e?"open":"closed"}var D=n("66671"),L=n("27015");let P=e=>{let{badge:t,route:n,title:l,children:o,open:s,onOpenChange:u}=e,{matched:d}=(0,a.useContext)(i),[p,x]=(0,a.useState)(!1),h=d===n,m=h||(null!=s?s:p);return(0,r.jsx)(c.xu,{p:"3",className:L.Z.container,children:(0,r.jsxs)(E,{open:m,onOpenChange:null!=u?u:x,children:[(0,r.jsxs)(w,{className:L.Z.trigger,children:[t,(0,r.jsx)(c.xv,{className:L.Z.urlText,style:{opacity:d&&!h?.5:1},children:l}),(0,r.jsx)(c.xu,{flexGrow:"1"}),(0,r.jsx)(c.xu,{className:L.Z.mark,"data-open":m,children:(0,r.jsx)(D.jnn,{})})]}),(0,r.jsx)(R,{className:L.Z.content,children:o})]})})};var T=n("95197"),O=n("82847"),I=n("88435");let z=()=>(0,r.jsx)(c.xv,{children:"Unimplemented."});var U=n("38933"),W=n("55058");let A=(0,a.createContext)([]);var K=n("26377");let V=function(e,t){void 0===t&&(t=!0);var n=(0,a.useState)(!1),r=n[0],l=n[1];return(0,a.useEffect)(function(){var n=function(){return l(!0)},r=function(){return l(!1)};t&&e&&e.current&&((0,K.on)(e.current,"mouseover",n),(0,K.on)(e.current,"mouseout",r));var a=e.current;return function(){t&&a&&((0,K.S1)(a,"mouseover",n),(0,K.S1)(a,"mouseout",r))}},[t,e]),r};var $=n("23485");let F=e=>{var t,n;let{route:l}=e,i=s().castArray(l),o=s().last(i),u="_component"in o&&s().isString(o._component)?o._component:null,d=(0,W.As)("/",...i.map(e=>e.path).filter(s().isString))||"/",p=null!==(n=o.index)&&void 0!==n&&n,x="/"===d,h=(0,a.useContext)(A),m=!1===h||h.length>0,f=!!h&&!!s().find(h,{route:{id:o.id}}),j=(0,a.useRef)(null),v=V(j);return(0,r.jsxs)(c.xu,{ref:j,children:[(0,r.jsxs)(c.kC,{gap:"2",align:"center",mb:o.children&&"1",children:[(0,r.jsxs)(c.xu,{className:$.Z.endpointContainer,"data-matched":!m||f,children:[p&&x||(0,r.jsx)(c.EK,{className:$.Z.endpointTag,"data-compose":p&&"head",children:d}),p&&(0,r.jsx)(c.EK,{className:$.Z.endpointTag,color:"purple","data-compose":!x&&"tail",children:"/(index)"})]}),u&&(0,r.jsx)(c.rU,{className:$.Z.shyLink,style:{visibility:v?"visible":"hidden"},children:u})]}),(0,r.jsx)(c.kC,{direction:"column",gap:"1",children:null===(t=o.children)||void 0===t?void 0:t.map(e=>(0,r.jsx)(F,{route:i.concat(e)},e.id))})]})},J=e=>{let{remixRoutes:t,route:n}=e,{matched:l,url:o}=(0,a.useContext)(i),s=(0,a.useMemo)(()=>{if(l!==n)return!l&&[];{var e;if(!t)return[];let r=(0,W.v$)(o.replace(n.urlPath,"/")),a=null!==(e=(0,U.fp)(t,r))&&void 0!==e?e:[];return!!a.length&&a}},[t,l,o]);return(null==t?void 0:t.length)?(0,r.jsx)(A.Provider,{value:s,children:(0,r.jsx)(c.kC,{gap:"2",direction:"column",children:t.map(e=>(0,r.jsx)(F,{route:e},e.id))})}):null};(0,O.sj)({});let M=e=>{let{route:t}=e,{entryName:n}=t;if(!n)throw TypeError("");let l=(0,T.k)(),{entrypoints:i}=(0,I.R)(l.framework).context,o=s().find(i,{entryName:n});if(!o)throw TypeError("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));let c=(0,I.R)(l.fileSystemRoutes)[o.entryName];if(!o)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,r.jsx)(a.Suspense,{children:(0,r.jsx)(()=>G(c)?(0,r.jsx)(z,{}):(0,r.jsx)(J,{remixRoutes:c,route:t}),{})})},G=e=>(null==e?void 0:e[0])&&!("type"in e[0]);var q=n("86957");let B=e=>{let{route:t}=e,n=(0,T.k)(),{entrypoints:a}=(0,I.R)(n.framework).context,l=t.entryName&&s().find(a,{entryName:t.entryName});if(!l)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,r.jsxs)(c.xu,{className:q.Z.stats,children:[(0,r.jsxs)(c.kC,{gap:"1",children:[(0,r.jsx)(c.cK,{children:"Directory: "}),(0,r.jsx)(c.xv,{children:l.absoluteEntryDir})]}),(0,r.jsxs)(c.kC,{gap:"1",children:[(0,r.jsx)(c.cK,{children:"Entry:"}),(0,r.jsx)(c.xv,{children:l.entry})]})]})},Y=e=>{let{route:t}=e;return(0,r.jsx)(P,{badge:H,route:t,title:t.urlPath,children:(0,r.jsxs)(c.kC,{direction:"column",gap:"2",children:[(0,r.jsx)(c.xr,{scrollbars:"horizontal",children:(0,r.jsx)(B,{route:t})}),(0,r.jsx)(c.xr,{scrollbars:"horizontal",children:(0,r.jsx)(a.Suspense,{children:(0,r.jsx)(M,{route:t})})})]})})},H=(0,r.jsx)(c.Ct,{color:"cyan",children:"Entry"}),Q=e=>{let{route:t}=e;return(0,r.jsx)(P,{badge:X,route:t,title:t.urlPath,children:(0,r.jsx)(c.Zb,{children:"Unknown route type."})})},X=(0,r.jsx)(c.Ct,{color:"gray",children:"Unknown"}),ee=e=>{let{route:t}=e;return s().isString(t.entryName)?(0,r.jsx)(Y,{route:t}):(0,r.jsx)(Q,{route:t})};var et=n("39120");let en="input-ZLygVL",er="list-xLGYni",ea=()=>{let e=(0,T.k)(),{serverRoutes:t}=(0,I.R)(e.framework).context,[n,l]=(0,a.useState)({url:""}),o=e=>{let{pathname:n}=(0,W.Lk)(e);l({url:e,matched:t.find(e=>n===e.urlPath||n.startsWith((0,W.jE)(e.urlPath)))})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.kC,{className:er,direction:"column",gap:"2",align:"stretch",justify:"between",mx:"auto",children:(0,r.jsx)(i.Provider,{value:n,children:t.map(e=>(0,r.jsx)(ee,{route:e},e.entryPath))})}),(0,r.jsx)(c.xu,{className:en,children:(0,r.jsx)(c.xu,{mx:"auto",style:{maxWidth:"40rem"},children:(0,r.jsx)(c.nv.f,{placeholder:"/foo?bar#baz",onChange:e=>o(e.target.value),type:"url",autoComplete:"false",autoCapitalize:"false",autoCorrect:"false",children:(0,r.jsx)(c.nv.g,{children:(0,r.jsx)(et.IIh,{})})})})})]})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["567"],{74651:function(n,t,e){e.d(t,{Z:function(){return o}});let o={link:"link-znMYnO",connector:"connector-BqtwBd"}},34306:function(n,t,e){e.d(t,{Z:function(){return o}});let o={card:"card-If0911"}},52317:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-WHe0d3"}},43654:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-tsQk3U",fab:"fab-_shO90",slideInFromRight:"slideInFromRight-cmflGC",logo:"logo-nXXNIB"}},96843:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-tcM8fB","close-button":"close-button-weoXpd",closeButton:"close-button-weoXpd",frame:"frame-PSYQgj",backdrop:"backdrop-SWoFLh"}},40977:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-uSZ85N",children:"children-cVMy6R"}},56194:function(n,t,e){e.d(t,{Z:function(){return o}});let o={loading:"loading-HrjYdW",rotate:"rotate-CPIjfB"}},47630:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-COzu4H"}},98463:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-SkRv4t"}},89006:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-e3dQes"}},18301:function(n,t,e){e.d(t,{Z:function(){return o}});let o={"input-pair":"input-pair-rQmmCj",inputPair:"input-pair-rQmmCj",actions:"actions-AIkunB"}},27015:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-e74VUa",trigger:"trigger-THjT7j",content:"content-Qso8ca",slideDown:"slideDown-Z9IIi_",slideUp:"slideUp-H_SR0p","url-text":"url-text-OqB5_M",urlText:"url-text-OqB5_M",mark:"mark-cUxPxy"}},23485:function(n,t,e){e.d(t,{Z:function(){return o}});let o={"endpoint-tag":"endpoint-tag-y0SEjj",endpointTag:"endpoint-tag-y0SEjj","shy-link":"shy-link-Xazm8H",shyLink:"shy-link-Xazm8H","endpoint-container":"endpoint-container-XVJeZy",endpointContainer:"endpoint-container-XVJeZy"}},86957:function(n,t,e){e.d(t,{Z:function(){return o}});let o={stats:"stats-cb58Fz"}},39703:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-dWGOkz",slideIn:"slideIn-AQnKGk",hide:"hide-LUv_Hv",swipeOut:"swipeOut-ZTbSGG",viewport:"viewport-Owdzo8",close:"close-i8MeRu"}}}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|