@core-rc/cssinjs-utils
Version:
A cssinjs util library to support @core-rc and its ecosystem libraries.
2 lines (1 loc) • 1.44 kB
JavaScript
;(self.webpackChunk_core_rc_cssinjs_utils=self.webpackChunk_core_rc_cssinjs_utils||[]).push([[923],{26520:function(P,s,e){e.r(s),e.d(s,{default:function(){return T}});var g=e(5574),y=e.n(g),n=e(67294),r=e(53683),j=e(38024),C=e(64236),o=null,a=e(90482),x=e(85893),l={},i={name:"@core-rc/cssinjs-utils",description:"A cssinjs util library to support @core-rc and its ecosystem libraries.",version:"1.1.1",license:"MIT",author:""},u="browser",c=void 0,v={footer:'Copyright \xA9 2024 | Powered by <a href="https://d.umijs.org" target="_blank" rel="noreferrer">dumi</a>',prefersColor:{default:"light",switch:!0},nprogress:!0,lastUpdated:!0,name:"cssinjs-util",logo:"https://avatars0.githubusercontent.com/u/9441414?s=200&v=4"},d=!1;function T(){var E=(0,r.pC)(),A=(0,n.useState)(!1),m=y()(A,2),f=m[0],p=m[1],h=(0,n.useRef)(r.m8.location.pathname);(0,n.useEffect)(function(){return r.m8.listen(function(t){t.location.pathname!==h.current&&(h.current=t.location.pathname,document.documentElement.scrollTo(0,0))})},[]);var D=n.useMemo(function(){var t={pkg:i,historyType:u,entryExports:l,demos:null,components:o,locales:a.k,loading:f,setLoading:p,hostname:c,themeConfig:v,_2_level_nav_available:d};return Object.defineProperty(t,"demos",{get:function(){return(0,j.Kp)(!1,"`demos` return empty in latest version, please use `useDemo` instead."),{}}}),t},[i,u,l,o,a.k,f,p,c,v,d]);return(0,x.jsx)(C.D.Provider,{value:D,children:E})}}}]);