@modern-js/devtools-client 2.49.2 → 2.49.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/html/client/index.html +3 -3
  2. package/dist/html/mount/index.html +3 -3
  3. package/dist/modern.config.json +13 -4
  4. package/dist/public/sw-proxy.js +1 -1
  5. package/dist/routes-manifest.json +115 -88
  6. package/dist/static/css/async/client_doctor/page.872cf311.css +1 -0
  7. package/dist/static/css/async/client_headers/editor/page.2899fd79.css +1 -0
  8. package/dist/static/css/async/client_headers/layout.069f6111.css +1 -0
  9. package/dist/static/css/async/client_overview/page.ad0988c7.css +1 -0
  10. package/dist/static/css/async/client_pages/layout.b94b702a.css +1 -0
  11. package/dist/static/css/async/client_pages/{page.5958d245.css → page.5be052b8.css} +1 -1
  12. package/dist/static/css/client.9f948c8a.css +1 -0
  13. package/dist/static/css/components.139864ee.css +1 -0
  14. package/dist/static/css/mount.ea06a1a5.css +1 -0
  15. package/dist/static/js/{285.9acc0216.js → 522.1ff9d088.js} +3 -3
  16. package/dist/static/js/522.1ff9d088.js.LICENSE.txt +17 -0
  17. package/dist/static/js/{637.1098409e.js → 637.25b041e0.js} +1 -2
  18. package/dist/static/js/{696.2ca8f9a1.js → 696.53c3f39d.js} +2 -2
  19. package/dist/static/js/696.53c3f39d.js.LICENSE.txt +8 -0
  20. package/dist/static/js/{991.7b091c2c.js → 991.6c981fe2.js} +1 -1
  21. package/dist/static/js/991.6c981fe2.js.LICENSE.txt +9 -0
  22. package/dist/static/js/async/{459.097818d4.js → 459.d7124972.js} +0 -1
  23. package/dist/static/js/async/{769.3f22db71.js → 769.76593243.js} +0 -1
  24. package/dist/static/js/async/{851.4445317a.js → 851.115c9745.js} +1 -1
  25. package/dist/static/js/async/{851.4445317a.js.LICENSE.txt → 851.115c9745.js.LICENSE.txt} +1 -11
  26. package/dist/static/js/async/{447.be0a417e.js → client_config/(toolkit).(type)/page.238b313f.js} +1 -2
  27. package/dist/static/js/async/client_config/{layout.22a7d20b.js → layout.1d4aae34.js} +0 -1
  28. package/dist/static/js/async/client_context/builder/{page.03fca277.js → page.504913ed.js} +1 -2
  29. package/dist/static/js/async/client_context/framework/{page.9f10c80e.js → page.6dd8eadf.js} +1 -2
  30. package/dist/static/js/async/client_context/{layout.61806902.js → layout.3a7367e5.js} +0 -1
  31. package/dist/static/js/async/client_doctor/page.c9e1ad5c.js +1 -0
  32. package/dist/static/js/async/{942.c6f21ad1.js → client_external/$.3c9cebee.js} +1 -2
  33. package/dist/static/js/async/client_external/{layout.45a7c119.js → layout.620cf2f6.js} +0 -1
  34. package/dist/static/js/async/client_headers/editor/{page.25e0d451.js → page.4e542498.js} +1 -2
  35. package/dist/static/js/async/client_headers/layout.d72595e7.js +1 -0
  36. package/dist/static/js/async/client_headers/welcome/{page.a4c3e3c2.js → page.95a5a242.js} +0 -1
  37. package/dist/static/js/async/client_overview/{page.5ca51aab.js → page.3f33e9c8.js} +1 -2
  38. package/dist/static/js/async/client_pages/{layout.29feeb77.js → layout.e1d5b4c4.js} +1 -2
  39. package/dist/static/js/async/client_pages/{page.26522a94.js → page.23a4b010.js} +1 -2
  40. package/dist/static/js/async/client_react/(tab)/{layout.4cb28586.js → layout.7d7e5b62.js} +0 -1
  41. package/dist/static/js/async/client_react/(tab)/{page.9fa8c8b7.js → page.f24fc2b9.js} +0 -1
  42. package/dist/static/js/async/client_react/offscreen/{page.bb1e12ac.js → page.746b81bc.js} +0 -1
  43. package/dist/static/js/builder-runtime.fffee636.js +1 -0
  44. package/dist/static/js/client.0308fac0.js +1 -0
  45. package/dist/static/js/components.abcf8160.js +1 -0
  46. package/dist/static/js/{lib-lodash.29bef8c5.js → lib-lodash.4267ab6e.js} +1 -0
  47. package/dist/static/js/lib-lodash.4267ab6e.js.LICENSE.txt +8 -0
  48. package/dist/static/js/{lib-polyfill.c0eee0f9.js → lib-polyfill.153ab9d0.js} +1 -2
  49. package/dist/static/js/{lib-react.1e54494f.js → lib-react.9e488dc0.js} +1 -1
  50. package/dist/static/js/{lib-react.1e54494f.js.LICENSE.txt → lib-react.9e488dc0.js.LICENSE.txt} +5 -21
  51. package/dist/static/js/{lib-router.733ac027.js → lib-router.6ca49914.js} +1 -1
  52. package/dist/static/js/{lib-router.733ac027.js.LICENSE.txt → lib-router.6ca49914.js.LICENSE.txt} +3 -15
  53. package/dist/static/js/mount.2080c337.js +1 -0
  54. package/package.json +12 -12
  55. package/dist/static/css/async/client_doctor/page.45ff801f.css +0 -1
  56. package/dist/static/css/async/client_headers/editor/page.9202366b.css +0 -1
  57. package/dist/static/css/async/client_headers/layout.b5bc2296.css +0 -1
  58. package/dist/static/css/async/client_overview/page.ff26c768.css +0 -1
  59. package/dist/static/css/async/client_pages/layout.57c49368.css +0 -1
  60. package/dist/static/css/client.fdf2cda3.css +0 -1
  61. package/dist/static/css/components.0af787e8.css +0 -1
  62. package/dist/static/css/mount.38b3b1f5.css +0 -1
  63. package/dist/static/js/285.9acc0216.js.LICENSE.txt +0 -241
  64. package/dist/static/js/637.1098409e.js.LICENSE.txt +0 -625
  65. package/dist/static/js/696.2ca8f9a1.js.LICENSE.txt +0 -606
  66. package/dist/static/js/991.7b091c2c.js.LICENSE.txt +0 -35
  67. package/dist/static/js/async/447.be0a417e.js.LICENSE.txt +0 -21
  68. package/dist/static/js/async/459.097818d4.js.LICENSE.txt +0 -91
  69. package/dist/static/js/async/769.3f22db71.js.LICENSE.txt +0 -173
  70. package/dist/static/js/async/942.c6f21ad1.js.LICENSE.txt +0 -7
  71. package/dist/static/js/async/client_config/layout.22a7d20b.js.LICENSE.txt +0 -5
  72. package/dist/static/js/async/client_context/builder/page.03fca277.js.LICENSE.txt +0 -19
  73. package/dist/static/js/async/client_context/framework/page.9f10c80e.js.LICENSE.txt +0 -19
  74. package/dist/static/js/async/client_context/layout.61806902.js.LICENSE.txt +0 -5
  75. package/dist/static/js/async/client_doctor/page.59b87e06.js +0 -2
  76. package/dist/static/js/async/client_doctor/page.59b87e06.js.LICENSE.txt +0 -95
  77. package/dist/static/js/async/client_external/layout.45a7c119.js.LICENSE.txt +0 -3
  78. package/dist/static/js/async/client_headers/editor/page.25e0d451.js.LICENSE.txt +0 -87
  79. package/dist/static/js/async/client_headers/layout.780e1431.js +0 -2
  80. package/dist/static/js/async/client_headers/layout.780e1431.js.LICENSE.txt +0 -7
  81. package/dist/static/js/async/client_headers/welcome/page.a4c3e3c2.js.LICENSE.txt +0 -15
  82. package/dist/static/js/async/client_overview/page.5ca51aab.js.LICENSE.txt +0 -49
  83. package/dist/static/js/async/client_pages/layout.29feeb77.js.LICENSE.txt +0 -7
  84. package/dist/static/js/async/client_pages/page.26522a94.js.LICENSE.txt +0 -165
  85. package/dist/static/js/async/client_react/(tab)/layout.4cb28586.js.LICENSE.txt +0 -3
  86. package/dist/static/js/async/client_react/(tab)/page.9fa8c8b7.js.LICENSE.txt +0 -23
  87. package/dist/static/js/async/client_react/offscreen/page.bb1e12ac.js.LICENSE.txt +0 -7
  88. package/dist/static/js/builder-runtime.202c8a3c.js +0 -1
  89. package/dist/static/js/client.2699bac1.js +0 -2
  90. package/dist/static/js/client.2699bac1.js.LICENSE.txt +0 -421
  91. package/dist/static/js/components.ec0c3299.js +0 -1
  92. package/dist/static/js/lib-polyfill.c0eee0f9.js.LICENSE.txt +0 -4961
  93. package/dist/static/js/mount.4fde63bb.js +0 -2
  94. package/dist/static/js/mount.4fde63bb.js.LICENSE.txt +0 -109
  95. /package/dist/static/css/{285.49d7d5e7.css → 522.a0ab2810.css} +0 -0
  96. /package/dist/static/font/{NotoSans-latin-subset.0dd84d42.woff2 → NotoSans-latin-subset.780eca90.woff2} +0 -0
  97. /package/dist/static/image/{rsdoctor-large.b2f496d9.png → rsdoctor-large.eda50fe7.png} +0 -0
  98. /package/dist/static/js/async/client_config/{page.a63f5a35.js → page.47ec49b7.js} +0 -0
  99. /package/dist/static/js/async/client_context/{page.635cc0cb.js → page.1a1007e1.js} +0 -0
  100. /package/dist/static/js/async/client_headers/{page.d2a0f47d.js → page.210a3503.js} +0 -0
  101. /package/dist/static/js/async/{client_page.5e12b570.js → client_page.3e19f015.js} +0 -0
  102. /package/dist/static/js/async/client_react/{page.5660dc8e.js → page.57cc0bd0.js} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see mount.4fde63bb.js.LICENSE.txt */
2
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{74709:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var o=n("86834");n("5872");var r=n("42666"),l=n("40261");let i=e=>{var t;let[n,i]=(0,r.Z)(()=>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.d(t,{t:function(){return b}});var o=n("90247"),r=n("55709"),l=n("86834"),i=n("54305"),s=n("42183"),c=n("5872"),a=n("56573"),u=n("71161"),d=n("36339"),v=n("29214"),m=n("55058"),h=n("45967"),p=n("93456"),f=n("10734"),_=n("74709"),y=n("94258"),g=n("28391"),w=n("51879");let k=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},b=e=>{let t=e.def.assets.logo,n=k(),[b,j]=(0,a.Z)(!!n),[x,C]=(0,c.useState)(!1),E=(0,m.jb)(e.endpoint,{src:e.dataSource}),O=(0,y.d)({clamp:!0}),[T,R]=(0,c.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,u.Z)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&R(e.newValue||void 0)}),(0,u.Z)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&j()}),(0,c.useEffect)(()=>{g.QB.hook("receive",e=>{"startInspectingNative"===e.event&&(j(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(j(!0),document.documentElement.style.removeProperty("cursor"))};return g.QB.hook("send",e),()=>{g.QB.removeHook("send",e)}},[]);let S=async()=>{document.documentElement.style.setProperty("cursor","wait"),j(!1),C(!0);try{(await (0,w.F)(g.mp,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,d.Z)(async()=>{if(!!n)(await (0,w.F)(g.mp,1e4)).remote.pullUp(n)},[]),(0,l.jsxs)(i.Q2,{appearance:T,className:T,children:[(0,l.jsx)(h.Z,{when:b,keepAlive:!0,load:x,children:(0,l.jsx)("div",{className:p.container,children:(0,l.jsx)(f.s,{src:E,onClose:()=>j(!1),style:{pointerEvents:O.isDragging?"none":"auto"}})})}),(0,l.jsxs)(s.k,(0,r._)((0,o._)({className:p.fab},O.props),{align:"center",children:[(0,l.jsx)(_.T,{type:"primary",onClick:j,children:(0,l.jsx)("img",{className:p.logo,src:t})}),(0,l.jsx)(_.T,{onClick:S,children:(0,l.jsx)(v.aur,{})})]}))]})}},10734:function(e,t,n){"use strict";n.d(t,{s:function(){return m}});var o=n("90247"),r=n("55709"),l=n("16170"),i=n("86834"),s=n("76416");n("5872");var c=n("29214"),a=n("79197"),u=n("428"),d=n("87731"),v=n("28391");let m=e=>{var{src:t,onClose:n}=e,m=(0,l._)(e,["src","onClose"]);let{loaded:h}=(0,a.R)(v.Cl);return(0,i.jsxs)(s.x,(0,r._)((0,o._)({className:d.container},m),{children:[(0,i.jsx)("iframe",{className:d.frame,src:t}),(0,i.jsx)(c.cu3,{className:d.closeButton,onClick:n}),(0,i.jsx)("div",{className:d.backdrop,style:{display:h?"none":void 0},children:(0,i.jsx)(u.g,{})})]}))}},45967:function(e,t,n){"use strict";var o=n("86834"),r=n("5872");t.Z=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";var o=n("90247"),r=n("86834");n("82231"),n("28391");var l=n("60182"),i=n("53534"),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 c=document.createElement("div");c.classList.add("_modern_js_devtools_mountpoint","theme-register",i.container),t.appendChild(c);let a=window.__MODERN_JS_DEVTOOLS_OPTIONS__;(0,l.createRoot)(c).render((0,r.jsx)(s.t,(0,o._)({},a)))})},82231:function(e,t,n){"use strict";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.d(t,{Cl:function(){return _},QB:function(){return h},mp:function(){return f}});var o=n("90247"),r=n("55709"),l=n("10487"),i=n("88739"),s=n("65872"),c=n("9880"),a=n.n(c),u=n("81733"),d=n("57662"),v=n("24933");let m=l.MessagePortChannel.wait(window,"channel:connect:client"),h=new v.S,p=(0,d.createBridge)(window,h),f=m.then(e=>{let t=(0,s.Hu)();return{remote:(0,i.Fu)({async activateReactDevtools(){(0,d.activate)(window,{bridge:p})},async onFinishRender(){await t.callHook("onFinishRender")}},(0,r._)((0,o._)({},e.handlers),{timeout:500})),hooks:t}}),_=(0,u.sj)({loaded:!1}),y=a()();f.then(e=>{let{remote:t,hooks:n}=e;h.bindRemote(t,"sendReactDevtoolsData"),n.hook("onFinishRender",async()=>{_.loaded=!0,y.resolve()})})},94258:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var o=n("5872"),r=n("71161");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}},c=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,[c,a]=(0,o.useState)(),u=()=>{if(!c)return;c.moveable=!1;let{el:e}=c,[t]=i(s(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{a(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==c?void 0:c.moveable))return;let{startX:o,startY:r}=c;(o-n.clientX)**2+(r-n.clientY)**2>9&&(c.clickable=!1);let{width:s,height:a}=c.el.getBoundingClientRect(),u=n.clientY-c.offsetY,d=n.clientX-c.offsetX,v=i({top:u,left:d,bottom:window.innerHeight-u-a,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-a:window.innerWidth-s;e.value="clamp(".concat(l,", ").concat(e.value,", ").concat(t,"px)")}let[m,h,...p]=v,{style:f}=c.el;f.transition="",f[m.key]=m.value,f[h.key]=h.value,f[p[0].key]="auto",f[p[1].key]="auto"};(0,r.Z)("blur",u),(0,r.Z)("mouseup",u),(0,r.Z)("touchend",u),(0,r.Z)("mousemove",d),(0,r.Z)("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;a({el:n,clickable:!0,moveable:!0,offsetX:r,offsetY:t.clientY-o.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!c,props:{onMouseDown:v,onTouchStart:v,onClickCapture:e=>{(null==c?void 0:c.clickable)||e.stopPropagation()}}}}},51879:function(e,t,n){"use strict";n.d(t,{F: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.d(t,{S:function(){return r}});var o=n("65872");class r extends o.gl{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")})}}},53534:function(e,t,n){"use strict";n.r(e.exports={container:"container-_25222"})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","285","567","58","637","991"],function(){return t("90915"),t("22958"),t("67303"),t("19449"),t("80295")}),e.O()}]);
@@ -1,109 +0,0 @@
1
- /*! react-use */
2
-
3
- /*! ./state */
4
-
5
- /*! react/jsx-runtime */
6
-
7
- /*! @swc/helpers/_/_object_spread */
8
-
9
- /*! react/jsx-runtime */
10
-
11
- /*! react-use */
12
-
13
- /*! @swc/helpers/_/_object_spread_props */
14
-
15
- /*! @/entries/mount/state */
16
-
17
- /*! react/jsx-runtime */
18
-
19
- /*! ./FrameBox.module.scss */
20
-
21
- /*! ../Loading */
22
-
23
- /*! @swc/helpers/_/_object_spread_props */
24
-
25
- /*! @swc/helpers/_/_object_without_properties */
26
-
27
- /*! react */
28
-
29
- /*! react-use */
30
-
31
- /*! ./react-devtools-backend */
32
-
33
- /*! react-icons/hi2 */
34
-
35
- /*! @swc/helpers/_/_object_spread */
36
-
37
- /*! hookable */
38
-
39
- /*! ./index.module.scss */
40
-
41
- /*! react-devtools-inline/backend */
42
-
43
- /*! hookable */
44
-
45
- /*! @radix-ui/themes */
46
-
47
- /*! react-icons/hi2 */
48
-
49
- /*! @swc/helpers/_/_object_spread_props */
50
-
51
- /*! @swc/helpers/_/_object_spread */
52
-
53
- /*! @/utils/promise */
54
-
55
- /*! react-devtools-inline/backend */
56
-
57
- /*! react */
58
-
59
- /*! ./Capsule.module.scss */
60
-
61
- /*! ../Visible */
62
-
63
- /*! react/jsx-runtime */
64
-
65
- /*! valtio */
66
-
67
- /*! ./Button */
68
-
69
- /*! valtio */
70
-
71
- /*! @/utils/react-devtools */
72
-
73
- /*! @modern-js/devtools-kit/runtime */
74
-
75
- /*! p-defer */
76
-
77
- /*! @/components/Devtools/Capsule */
78
-
79
- /*! ./FrameBox */
80
-
81
- /*! react */
82
-
83
- /*! react-dom/client */
84
-
85
- /*! react-use */
86
-
87
- /*! @radix-ui/themes */
88
-
89
- /*! react/jsx-runtime */
90
-
91
- /*! ./Button.module.scss */
92
-
93
- /*! react */
94
-
95
- /*! @swc/helpers/_/_object_spread */
96
-
97
- /*! @/entries/mount/state */
98
-
99
- /*! @/utils/draggable */
100
-
101
- /*! @radix-ui/themes */
102
-
103
- /*! ufo */
104
-
105
- /*! react-use */
106
-
107
- /*! react */
108
-
109
- /*! birpc */