@kosdev-code/kos-ui-plugin 2.0.41 → 2.1.0
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/documentation-generator-B8FuhDjB.js +1271 -0
- package/documentation-generator-B8FuhDjB.js.map +1 -0
- package/documentation-generator-E9tFyId_.cjs +266 -0
- package/documentation-generator-E9tFyId_.cjs.map +1 -0
- package/index.cjs +412 -4
- package/index.cjs.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +2179 -64
- package/index.js.map +1 -1
- package/lib/components/dynamic-component/dynamic-component.d.ts.map +1 -1
- package/lib/components/dynamic-component/error-boundary.d.ts +17 -0
- package/lib/components/dynamic-component/error-boundary.d.ts.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/plugin-explorer/extension-point-list.d.ts +13 -0
- package/lib/components/plugin-explorer/extension-point-list.d.ts.map +1 -0
- package/lib/components/plugin-explorer/floating-plugin-explorer.d.ts +13 -0
- package/lib/components/plugin-explorer/floating-plugin-explorer.d.ts.map +1 -0
- package/lib/components/plugin-explorer/index.d.ts +10 -0
- package/lib/components/plugin-explorer/index.d.ts.map +1 -0
- package/lib/components/plugin-explorer/plugin-card.d.ts +10 -0
- package/lib/components/plugin-explorer/plugin-card.d.ts.map +1 -0
- package/lib/components/plugin-explorer/plugin-explorer.d.ts +12 -0
- package/lib/components/plugin-explorer/plugin-explorer.d.ts.map +1 -0
- package/lib/components/plugin-explorer/plugin-health-dashboard.d.ts +9 -0
- package/lib/components/plugin-explorer/plugin-health-dashboard.d.ts.map +1 -0
- package/lib/hooks/index.d.ts +3 -0
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/use-extension-component.d.ts +21 -0
- package/lib/hooks/use-extension-component.d.ts.map +1 -0
- package/lib/hooks/use-plugin-discovery.d.ts +23 -0
- package/lib/hooks/use-plugin-discovery.d.ts.map +1 -0
- package/lib/hooks/use-typed-extensions.d.ts +152 -0
- package/lib/hooks/use-typed-extensions.d.ts.map +1 -0
- package/lib/utils/discovery/documentation-generator.d.ts +85 -0
- package/lib/utils/discovery/documentation-generator.d.ts.map +1 -0
- package/lib/utils/discovery/plugin-discovery-service.d.ts +109 -0
- package/lib/utils/discovery/plugin-discovery-service.d.ts.map +1 -0
- package/lib/utils/extension-points/define-extension-point.d.ts +58 -0
- package/lib/utils/extension-points/define-extension-point.d.ts.map +1 -0
- package/lib/utils/extension-points/example-extension-point.d.ts +67 -0
- package/lib/utils/extension-points/example-extension-point.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-registry.d.ts +34 -0
- package/lib/utils/extension-points/extension-point-registry.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-schema.d.ts +9 -0
- package/lib/utils/extension-points/extension-point-schema.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-schemas.d.ts +92 -0
- package/lib/utils/extension-points/extension-point-schemas.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-transforms.d.ts +21 -0
- package/lib/utils/extension-points/extension-point-transforms.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-types.d.ts +162 -0
- package/lib/utils/extension-points/extension-point-types.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-validation.d.ts +43 -0
- package/lib/utils/extension-points/extension-point-validation.d.ts.map +1 -0
- package/lib/utils/index.d.ts +9 -15
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/{plugin-extension-manager.d.ts → plugin-system/plugin-extension-manager.d.ts} +3 -5
- package/lib/utils/plugin-system/plugin-extension-manager.d.ts.map +1 -0
- package/lib/utils/plugin-system/plugin-extension-registry-init.d.ts +2 -0
- package/lib/utils/plugin-system/plugin-extension-registry-init.d.ts.map +1 -0
- package/lib/utils/{plugin-extension-registry.d.ts → plugin-system/plugin-extension-registry.d.ts} +1 -1
- package/lib/utils/plugin-system/plugin-extension-registry.d.ts.map +1 -0
- package/lib/utils/{plugin-reducer.d.ts → plugin-system/plugin-reducer.d.ts} +1 -1
- package/lib/utils/plugin-system/plugin-reducer.d.ts.map +1 -0
- package/lib/utils/{resolve-best-extension.d.ts → plugin-system/resolve-best-extension.d.ts} +1 -1
- package/lib/utils/plugin-system/resolve-best-extension.d.ts.map +1 -0
- package/lib/utils/processors/contribution-reducer.d.ts +5 -0
- package/lib/utils/processors/contribution-reducer.d.ts.map +1 -0
- package/lib/utils/{initialize-plugins.d.ts → processors/initialize-plugins.d.ts} +2 -2
- package/lib/utils/processors/initialize-plugins.d.ts.map +1 -0
- package/lib/utils/processors/initialize-simplified-extensions.d.ts +13 -0
- package/lib/utils/processors/initialize-simplified-extensions.d.ts.map +1 -0
- package/lib/utils/{process-kos-config.d.ts → processors/process-kos-config.d.ts} +1 -1
- package/lib/utils/processors/process-kos-config.d.ts.map +1 -0
- package/lib/utils/processors/simplified-contribution-processor.d.ts +14 -0
- package/lib/utils/processors/simplified-contribution-processor.d.ts.map +1 -0
- package/package.json +2 -7
- package/types/global.d.ts +0 -62
- package/types/plugins.d.ts +3 -127
- package/utils.cjs +1 -1
- package/utils.cjs.map +1 -1
- package/utils.js +99 -82
- package/utils.js.map +1 -1
- package/dev.cjs +0 -57
- package/dev.cjs.map +0 -1
- package/dev.js +0 -403
- package/dev.js.map +0 -1
- package/emotion-react-jsx-runtime.browser.esm-0ViwU5Kh.cjs +0 -17
- package/emotion-react-jsx-runtime.browser.esm-0ViwU5Kh.cjs.map +0 -1
- package/emotion-react-jsx-runtime.browser.esm-70CdOW1e.js +0 -1065
- package/emotion-react-jsx-runtime.browser.esm-70CdOW1e.js.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-component-view.d.ts +0 -9
- package/lib/dev/components/dynamic-view/dynamic-component-view.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-container.d.ts +0 -8
- package/lib/dev/components/dynamic-view/dynamic-container.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-view-basic.d.ts +0 -13
- package/lib/dev/components/dynamic-view/dynamic-view-basic.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-view-modal.d.ts +0 -15
- package/lib/dev/components/dynamic-view/dynamic-view-modal.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-view-picker.d.ts +0 -9
- package/lib/dev/components/dynamic-view/dynamic-view-picker.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-view-settings.d.ts +0 -15
- package/lib/dev/components/dynamic-view/dynamic-view-settings.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-view-utilities.d.ts +0 -15
- package/lib/dev/components/dynamic-view/dynamic-view-utilities.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/index.d.ts +0 -8
- package/lib/dev/components/dynamic-view/index.d.ts.map +0 -1
- package/lib/dev/components/index.d.ts +0 -4
- package/lib/dev/components/index.d.ts.map +0 -1
- package/lib/dev/components/shell/header/header.d.ts +0 -2
- package/lib/dev/components/shell/header/header.d.ts.map +0 -1
- package/lib/dev/components/shell/header/index.d.ts +0 -2
- package/lib/dev/components/shell/header/index.d.ts.map +0 -1
- package/lib/dev/components/shell/index.d.ts +0 -3
- package/lib/dev/components/shell/index.d.ts.map +0 -1
- package/lib/dev/components/shell/shell.d.ts +0 -10
- package/lib/dev/components/shell/shell.d.ts.map +0 -1
- package/lib/dev/components/storybook/control-pour-story-container/control-pour-story-container.d.ts +0 -8
- package/lib/dev/components/storybook/control-pour-story-container/control-pour-story-container.d.ts.map +0 -1
- package/lib/dev/components/storybook/control-pour-story-container/index.d.ts +0 -2
- package/lib/dev/components/storybook/control-pour-story-container/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/cui-story-container/cui-story-container.d.ts +0 -8
- package/lib/dev/components/storybook/cui-story-container/cui-story-container.d.ts.map +0 -1
- package/lib/dev/components/storybook/cui-story-container/index.d.ts +0 -2
- package/lib/dev/components/storybook/cui-story-container/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/index.d.ts +0 -7
- package/lib/dev/components/storybook/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/nav-story-container/index.d.ts +0 -2
- package/lib/dev/components/storybook/nav-story-container/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/nav-story-container/nav-story-container.d.ts +0 -8
- package/lib/dev/components/storybook/nav-story-container/nav-story-container.d.ts.map +0 -1
- package/lib/dev/components/storybook/setting-story-container/index.d.ts +0 -2
- package/lib/dev/components/storybook/setting-story-container/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/setting-story-container/setting-story-container.d.ts +0 -8
- package/lib/dev/components/storybook/setting-story-container/setting-story-container.d.ts.map +0 -1
- package/lib/dev/components/storybook/setup-step-story-container/index.d.ts +0 -2
- package/lib/dev/components/storybook/setup-step-story-container/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/setup-step-story-container/setup-step-story-container.d.ts +0 -8
- package/lib/dev/components/storybook/setup-step-story-container/setup-step-story-container.d.ts.map +0 -1
- package/lib/dev/components/storybook/utility-story-container/index.d.ts +0 -2
- package/lib/dev/components/storybook/utility-story-container/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/utility-story-container/utility-story-container.d.ts +0 -8
- package/lib/dev/components/storybook/utility-story-container/utility-story-container.d.ts.map +0 -1
- package/lib/dev/index.d.ts +0 -3
- package/lib/dev/index.d.ts.map +0 -1
- package/lib/dev/utils/index.d.ts +0 -2
- package/lib/dev/utils/index.d.ts.map +0 -1
- package/lib/dev/utils/kos-metadata-parser.d.ts +0 -6
- package/lib/dev/utils/kos-metadata-parser.d.ts.map +0 -1
- package/lib/dev/utils/normalize.d.ts +0 -2
- package/lib/dev/utils/normalize.d.ts.map +0 -1
- package/lib/utils/contribution-reducer.d.ts +0 -5
- package/lib/utils/contribution-reducer.d.ts.map +0 -1
- package/lib/utils/control-pour-reducer.d.ts +0 -5
- package/lib/utils/control-pour-reducer.d.ts.map +0 -1
- package/lib/utils/cui-reducer.d.ts +0 -7
- package/lib/utils/cui-reducer.d.ts.map +0 -1
- package/lib/utils/dashboard-detail-reducer.d.ts +0 -5
- package/lib/utils/dashboard-detail-reducer.d.ts.map +0 -1
- package/lib/utils/dashboard-pump-detail-reducer.d.ts +0 -5
- package/lib/utils/dashboard-pump-detail-reducer.d.ts.map +0 -1
- package/lib/utils/dashboard-reducer.d.ts +0 -3
- package/lib/utils/dashboard-reducer.d.ts.map +0 -1
- package/lib/utils/dashboard-summary-reducer.d.ts +0 -5
- package/lib/utils/dashboard-summary-reducer.d.ts.map +0 -1
- package/lib/utils/initialize-plugins.d.ts.map +0 -1
- package/lib/utils/nav-view-reducer.d.ts +0 -5
- package/lib/utils/nav-view-reducer.d.ts.map +0 -1
- package/lib/utils/plugin-extension-manager.d.ts.map +0 -1
- package/lib/utils/plugin-extension-registry-init.d.ts +0 -2
- package/lib/utils/plugin-extension-registry-init.d.ts.map +0 -1
- package/lib/utils/plugin-extension-registry.d.ts.map +0 -1
- package/lib/utils/plugin-reducer.d.ts.map +0 -1
- package/lib/utils/process-kos-config.d.ts.map +0 -1
- package/lib/utils/resolve-best-extension.d.ts.map +0 -1
- package/lib/utils/settings-reducer.d.ts +0 -8
- package/lib/utils/settings-reducer.d.ts.map +0 -1
- package/lib/utils/setup-reducer.d.ts +0 -7
- package/lib/utils/setup-reducer.d.ts.map +0 -1
- package/lib/utils/state-action-reducer.d.ts +0 -5
- package/lib/utils/state-action-reducer.d.ts.map +0 -1
- package/lib/utils/util-reducer.d.ts +0 -7
- package/lib/utils/util-reducer.d.ts.map +0 -1
- package/resolve-best-extension-CqHaJSdN.js +0 -590
- package/resolve-best-extension-CqHaJSdN.js.map +0 -1
- package/resolve-best-extension-DSdPcuL3.cjs +0 -2
- package/resolve-best-extension-DSdPcuL3.cjs.map +0 -1
package/index.cjs
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./emotion-react-jsx-runtime.browser.esm-0ViwU5Kh.cjs"),h=require("@emotion/styled"),C=require("@kosdev-code/kos-ui-sdk"),o=require("react"),p=require("./resolve-best-extension-DSdPcuL3.cjs");require("react/jsx-runtime");const P=o.createContext(void 0),f=h.div`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Dt=require("react/jsx-runtime"),v=require("react"),h=require("@emotion/styled"),F=require("./documentation-generator-E9tFyId_.cjs");require("zod");function qe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ee=qe(Dt),B=qe(v);function It(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Vt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var jt=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Vt(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=It(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),O="-ms-",fe="-moz-",E="-webkit-",Ge="comm",Pe="rule",ke="decl",Bt="@import",Ze="@keyframes",Kt="@layer",Yt=Math.abs,ue=String.fromCharCode,Wt=Object.assign;function Ht(e,t){return N(e,0)^45?(((t<<2^N(e,0))<<2^N(e,1))<<2^N(e,2))<<2^N(e,3):0}function Xe(e){return e.trim()}function Ut(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,n){return e.replace(t,n)}function ve(e,t){return e.indexOf(t)}function N(e,t){return e.charCodeAt(t)|0}function te(e,t,n){return e.slice(t,n)}function I(e){return e.length}function $e(e){return e.length}function se(e,t){return t.push(e),e}function qt(e,t){return e.map(t).join("")}var pe=1,U=1,Je=0,L=0,R=0,q="";function he(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:pe,column:U,length:s,return:""}}function X(e,t){return Wt(he("",null,null,"",null,null,0),e,{length:-e.length},t)}function Gt(){return R}function Zt(){return R=L>0?N(q,--L):0,U--,R===10&&(U=1,pe--),R}function D(){return R=L<Je?N(q,L++):0,U++,R===10&&(U=1,pe++),R}function j(){return N(q,L)}function ce(){return L}function oe(e,t){return te(q,e,t)}function ne(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qe(e){return pe=U=1,Je=I(q=e),L=0,[]}function et(e){return q="",e}function le(e){return Xe(oe(L-1,Ee(e===91?e+2:e===40?e+1:e)))}function Xt(e){for(;(R=j())&&R<33;)D();return ne(e)>2||ne(R)>3?"":" "}function Jt(e,t){for(;--t&&D()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return oe(e,ce()+(t<6&&j()==32&&D()==32))}function Ee(e){for(;D();)switch(R){case e:return L;case 34:case 39:e!==34&&e!==39&&Ee(R);break;case 40:e===41&&Ee(e);break;case 92:D();break}return L}function Qt(e,t){for(;D()&&e+R!==57;)if(e+R===84&&j()===47)break;return"/*"+oe(t,L-1)+"*"+ue(e===47?e:D())}function en(e){for(;!ne(j());)D();return oe(e,L)}function tn(e){return et(de("",null,null,null,[""],e=Qe(e),0,[0],e))}function de(e,t,n,r,o,i,s,f,d){for(var p=0,l=0,a=s,x=0,b=0,y=0,S=1,A=1,_=1,M=0,$="",T=o,u=i,z=r,k=$;A;)switch(y=M,M=D()){case 40:if(y!=108&&N(k,a-1)==58){ve(k+=w(le(M),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=le(M);break;case 9:case 10:case 13:case 32:k+=Xt(y);break;case 92:k+=Jt(ce()-1,7);continue;case 47:switch(j()){case 42:case 47:se(nn(Qt(D(),ce()),t,n),d);break;default:k+="/"}break;case 123*S:f[p++]=I(k)*_;case 125*S:case 59:case 0:switch(M){case 0:case 125:A=0;case 59+l:_==-1&&(k=w(k,/\f/g,"")),b>0&&I(k)-a&&se(b>32?Fe(k+";",r,n,a-1):Fe(w(k," ","")+";",r,n,a-2),d);break;case 59:k+=";";default:if(se(z=Oe(k,t,n,p,l,o,f,$,T=[],u=[],a),i),M===123)if(l===0)de(k,t,z,z,T,i,a,f,u);else switch(x===99&&N(k,3)===110?100:x){case 100:case 108:case 109:case 115:de(e,z,z,r&&se(Oe(e,z,z,0,0,o,f,$,o,T=[],a),u),o,u,a,f,r?T:u);break;default:de(k,z,z,z,[""],u,0,f,u)}}p=l=b=0,S=_=1,$=k="",a=s;break;case 58:a=1+I(k),b=y;default:if(S<1){if(M==123)--S;else if(M==125&&S++==0&&Zt()==125)continue}switch(k+=ue(M),M*S){case 38:_=l>0?1:(k+="\f",-1);break;case 44:f[p++]=(I(k)-1)*_,_=1;break;case 64:j()===45&&(k+=le(D())),x=j(),l=a=I($=k+=en(ce())),M++;break;case 45:y===45&&I(k)==2&&(S=0)}}return i}function Oe(e,t,n,r,o,i,s,f,d,p,l){for(var a=o-1,x=o===0?i:[""],b=$e(x),y=0,S=0,A=0;y<r;++y)for(var _=0,M=te(e,a+1,a=Yt(S=s[y])),$=e;_<b;++_)($=Xe(S>0?x[_]+" "+M:w(M,/&\f/g,x[_])))&&(d[A++]=$);return he(e,t,n,o===0?Pe:f,d,p,l)}function nn(e,t,n){return he(e,t,n,Ge,ue(Gt()),te(e,2,-2),0)}function Fe(e,t,n,r){return he(e,t,n,ke,te(e,0,r),te(e,r+1,-1),r)}function H(e,t){for(var n="",r=$e(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function rn(e,t,n,r){switch(e.type){case Kt:if(e.children.length)break;case Bt:case ke:return e.return=e.return||e.value;case Ge:return"";case Ze:return e.return=e.value+"{"+H(e.children,r)+"}";case Pe:e.value=e.props.join(",")}return I(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function on(e){var t=$e(e);return function(n,r,o,i){for(var s="",f=0;f<t;f++)s+=e[f](n,r,o,i)||"";return s}}function sn(e){return function(t){t.root||(t=t.return)&&e(t)}}var an=function(t,n,r){for(var o=0,i=0;o=i,i=j(),o===38&&i===12&&(n[r]=1),!ne(i);)D();return oe(t,L)},cn=function(t,n){var r=-1,o=44;do switch(ne(o)){case 0:o===38&&j()===12&&(n[r]=1),t[r]+=an(L-1,n,r);break;case 2:t[r]+=le(o);break;case 4:if(o===44){t[++r]=j()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ue(o)}while(o=D());return t},ln=function(t,n){return et(cn(Qe(t),n))},Le=new WeakMap,dn=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Le.get(r))&&!o){Le.set(t,!0);for(var i=[],s=ln(n,i),f=r.props,d=0,p=0;d<s.length;d++)for(var l=0;l<f.length;l++,p++)t.props[p]=i[d]?s[d].replace(/&\f/g,f[l]):f[l]+" "+s[d]}}},fn=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function tt(e,t){switch(Ht(e,t)){case 5103:return E+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return E+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return E+e+fe+e+O+e+e;case 6828:case 4268:return E+e+O+e+e;case 6165:return E+e+O+"flex-"+e+e;case 5187:return E+e+w(e,/(\w+).+(:[^]+)/,E+"box-$1$2"+O+"flex-$1$2")+e;case 5443:return E+e+O+"flex-item-"+w(e,/flex-|-self/,"")+e;case 4675:return E+e+O+"flex-line-pack"+w(e,/align-content|flex-|-self/,"")+e;case 5548:return E+e+O+w(e,"shrink","negative")+e;case 5292:return E+e+O+w(e,"basis","preferred-size")+e;case 6060:return E+"box-"+w(e,"-grow","")+E+e+O+w(e,"grow","positive")+e;case 4554:return E+w(e,/([^-])(transform)/g,"$1"+E+"$2")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),e,"")+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,E+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+e+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,E+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(I(e)-1-t>6)switch(N(e,t+1)){case 109:if(N(e,t+4)!==45)break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+fe+(N(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ve(e,"stretch")?tt(w(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(N(e,t+1)!==115)break;case 6444:switch(N(e,I(e)-3-(~ve(e,"!important")&&10))){case 107:return w(e,":",":"+E)+e;case 101:return w(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+E+(N(e,14)===45?"inline-":"")+"box$3$1"+E+"$2$3$1"+O+"$2box$3")+e}break;case 5936:switch(N(e,t+11)){case 114:return E+e+O+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return E+e+O+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return E+e+O+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return E+e+O+e+e}return e}var un=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ke:t.return=tt(t.value,t.length);break;case Ze:return H([X(t,{value:w(t.value,"@","@"+E)})],o);case Pe:if(t.length)return qt(t.props,function(i){switch(Ut(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([X(t,{props:[w(i,/:(read-\w+)/,":"+fe+"$1")]})],o);case"::placeholder":return H([X(t,{props:[w(i,/:(plac\w+)/,":"+E+"input-$1")]}),X(t,{props:[w(i,/:(plac\w+)/,":"+fe+"$1")]}),X(t,{props:[w(i,/:(plac\w+)/,O+"input-$1")]})],o)}return""})}},pn=[un],hn=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var A=S.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||pn,i={},s,f=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var A=S.getAttribute("data-emotion").split(" "),_=1;_<A.length;_++)i[A[_]]=!0;f.push(S)});var d,p=[dn,fn];{var l,a=[rn,sn(function(S){l.insert(S)})],x=on(p.concat(o,a)),b=function(A){return H(tn(A),x)};d=function(A,_,M,$){l=M,b(A?A+"{"+_.styles+"}":_.styles),$&&(y.inserted[_.name]=!0)}}var y={key:n,sheet:new jt({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:d};return y.sheet.hydrate(f),y},we={exports:{}},C={};/** @license React v16.13.1
|
|
2
|
+
* react-is.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/var De;function mn(){if(De)return C;De=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,a=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function $(u){if(typeof u=="object"&&u!==null){var z=u.$$typeof;switch(z){case t:switch(u=u.type,u){case d:case p:case r:case i:case o:case a:return u;default:switch(u=u&&u.$$typeof,u){case f:case l:case y:case b:case s:return u;default:return z}}case n:return z}}}function T(u){return $(u)===p}return C.AsyncMode=d,C.ConcurrentMode=p,C.ContextConsumer=f,C.ContextProvider=s,C.Element=t,C.ForwardRef=l,C.Fragment=r,C.Lazy=y,C.Memo=b,C.Portal=n,C.Profiler=i,C.StrictMode=o,C.Suspense=a,C.isAsyncMode=function(u){return T(u)||$(u)===d},C.isConcurrentMode=T,C.isContextConsumer=function(u){return $(u)===f},C.isContextProvider=function(u){return $(u)===s},C.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===t},C.isForwardRef=function(u){return $(u)===l},C.isFragment=function(u){return $(u)===r},C.isLazy=function(u){return $(u)===y},C.isMemo=function(u){return $(u)===b},C.isPortal=function(u){return $(u)===n},C.isProfiler=function(u){return $(u)===i},C.isStrictMode=function(u){return $(u)===o},C.isSuspense=function(u){return $(u)===a},C.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===r||u===p||u===i||u===o||u===a||u===x||typeof u=="object"&&u!==null&&(u.$$typeof===y||u.$$typeof===b||u.$$typeof===s||u.$$typeof===f||u.$$typeof===l||u.$$typeof===A||u.$$typeof===_||u.$$typeof===M||u.$$typeof===S)},C.typeOf=$,C}var P={};/** @license React v16.13.1
|
|
9
|
+
* react-is.development.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/var Ie;function gn(){return Ie||(Ie=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,a=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function $(m){return typeof m=="string"||typeof m=="function"||m===r||m===p||m===i||m===o||m===a||m===x||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===b||m.$$typeof===s||m.$$typeof===f||m.$$typeof===l||m.$$typeof===A||m.$$typeof===_||m.$$typeof===M||m.$$typeof===S)}function T(m){if(typeof m=="object"&&m!==null){var ge=m.$$typeof;switch(ge){case t:var ie=m.type;switch(ie){case d:case p:case r:case i:case o:case a:return ie;default:var ze=ie&&ie.$$typeof;switch(ze){case f:case l:case y:case b:case s:return ze;default:return ge}}case n:return ge}}}var u=d,z=p,k=f,gt=s,xt=t,yt=l,bt=r,vt=y,Et=b,wt=n,St=i,Ct=o,Pt=a,Ae=!1;function kt(m){return Ae||(Ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Ne(m)||T(m)===d}function Ne(m){return T(m)===p}function $t(m){return T(m)===f}function _t(m){return T(m)===s}function Tt(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function Mt(m){return T(m)===l}function Rt(m){return T(m)===r}function At(m){return T(m)===y}function Nt(m){return T(m)===b}function zt(m){return T(m)===n}function Ot(m){return T(m)===i}function Ft(m){return T(m)===o}function Lt(m){return T(m)===a}P.AsyncMode=u,P.ConcurrentMode=z,P.ContextConsumer=k,P.ContextProvider=gt,P.Element=xt,P.ForwardRef=yt,P.Fragment=bt,P.Lazy=vt,P.Memo=Et,P.Portal=wt,P.Profiler=St,P.StrictMode=Ct,P.Suspense=Pt,P.isAsyncMode=kt,P.isConcurrentMode=Ne,P.isContextConsumer=$t,P.isContextProvider=_t,P.isElement=Tt,P.isForwardRef=Mt,P.isFragment=Rt,P.isLazy=At,P.isMemo=Nt,P.isPortal=zt,P.isProfiler=Ot,P.isStrictMode=Ft,P.isSuspense=Lt,P.isValidElementType=$,P.typeOf=T}()),P}process.env.NODE_ENV==="production"?we.exports=mn():we.exports=gn();var xn=we.exports,nt=xn,yn={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rt={};rt[nt.ForwardRef]=yn;rt[nt.Memo]=bn;var vn=!0;function En(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var ot=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||vn===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},wn=function(t,n,r){ot(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Sn(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Cn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Pn(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var kn=/[A-Z]|^ms/g,$n=/_EMO_([^_]+?)_([^]*?)_EMO_/g,it=function(t){return t.charCodeAt(1)===45},Ve=function(t){return t!=null&&typeof t!="boolean"},xe=Pn(function(e){return it(e)?e:e.replace(kn,"-$&").toLowerCase()}),je=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace($n,function(r,o,i){return V={name:o,styles:i,next:V},o})}return Cn[t]!==1&&!it(t)&&typeof n=="number"&&n!==0?n+"px":n};function re(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return V={name:o.name,styles:o.styles,next:V},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)V={name:s.name,styles:s.styles,next:V},s=s.next;var f=i.styles+";";return f}return _n(e,t,n)}case"function":{if(e!==void 0){var d=V,p=n(e);return V=d,re(e,t,p)}break}}var l=n;return l}function _n(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=re(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var f=s;Ve(f)&&(r+=xe(i)+":"+je(i,f)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var d=0;d<s.length;d++)Ve(s[d])&&(r+=xe(i)+":"+je(i,s[d])+";");else{var p=re(e,t,s);switch(i){case"animation":case"animationName":{r+=xe(i)+":"+p+";";break}default:r+=i+"{"+p+"}"}}}return r}var Be=/label:\s*([^\s;{]+)\s*(;|$)/g,V;function Ke(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";V=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=re(n,t,i);else{var s=i;o+=s[0]}for(var f=1;f<e.length;f++)if(o+=re(n,t,e[f]),r){var d=i;o+=d[f]}Be.lastIndex=0;for(var p="",l;(l=Be.exec(o))!==null;)p+="-"+l[1];var a=Sn(o)+p;return{name:a,styles:o,next:V}}var Tn=function(t){return t()},Mn=B.useInsertionEffect?B.useInsertionEffect:!1,Rn=Mn||Tn,me={}.hasOwnProperty,_e=B.createContext(typeof HTMLElement<"u"?hn({key:"css"}):null);process.env.NODE_ENV!=="production"&&(_e.displayName="EmotionCacheContext");_e.Provider;var An=function(t){return v.forwardRef(function(n,r){var o=v.useContext(_e);return t(n,o,r)})},st=B.createContext({});process.env.NODE_ENV!=="production"&&(st.displayName="EmotionThemeContext");var Ye=function(t){var n=t.split(".");return n[n.length-1]},Nn=function(t){var n=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(n||(n=/^([A-Za-z0-9$.]+)@/.exec(t),n))return Ye(n[1])},zn=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),On=function(t){return t.replace(/\$/g,"-")},Fn=function(t){if(t)for(var n=t.split(`
|
|
16
|
+
`),r=0;r<n.length;r++){var o=Nn(n[r]);if(o){if(zn.has(o))break;if(/^[A-Z]/.test(o))return On(o)}}},Se="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ce="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",at=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var o in n)me.call(n,o)&&(r[o]=n[o]);if(r[Se]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var i=Fn(new Error().stack);i&&(r[Ce]=i)}return r},Ln=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ot(n,r,o),Rn(function(){return wn(n,r,o)}),null},ct=An(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Se],i=[r],s="";typeof e.className=="string"?s=En(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var f=Ke(i,void 0,B.useContext(st));if(process.env.NODE_ENV!=="production"&&f.name.indexOf("-")===-1){var d=e[Ce];d&&(f=Ke([f,"label:"+d+";"]))}s+=t.key+"-"+f.name;var p={};for(var l in e)me.call(e,l)&&l!=="css"&&l!==Se&&(process.env.NODE_ENV==="production"||l!==Ce)&&(p[l]=e[l]);return p.ref=n,p.className=s,B.createElement(B.Fragment,null,B.createElement(Ln,{cache:t,serialized:f,isStringTag:typeof o=="string"}),B.createElement(o,p))});process.env.NODE_ENV!=="production"&&(ct.displayName="EmotionCssPropInternal");var lt=ct,K=ee.Fragment;function c(e,t,n){return me.call(t,"css")?ee.jsx(lt,at(e,t),n):ee.jsx(e,t,n)}function g(e,t,n){return me.call(t,"css")?ee.jsxs(lt,at(e,t),n):ee.jsxs(e,t,n)}const Te=v.createContext(void 0),We=h.div`
|
|
2
17
|
padding-inline: 20px;
|
|
3
18
|
width: 100%;
|
|
4
19
|
height: 100vh;
|
|
@@ -11,13 +26,13 @@
|
|
|
11
26
|
top: 0;
|
|
12
27
|
left: 0;
|
|
13
28
|
z-index: 10000;
|
|
14
|
-
`,
|
|
29
|
+
`,Dn=({remotesOverride:e,onBeforeInitialize:t,pluginConfig:n,children:r})=>{const[o,i]=v.useState(),[s,f]=v.useState(null);return v.useEffect(()=>{(async()=>{var p,l;try{t&&(console.log("KosPluginProvider: Waiting for pre-initialization conditions..."),await t(),console.log("KosPluginProvider: Pre-initialization complete"));let a=e;const x=(p=window.KosPlugins)==null?void 0:p.__dynamicRemotes;a||(x&&Object.keys(x).length>0?(console.log("KosPluginProvider: Using existing plugin initialization"),a=x):(console.log("KosPluginProvider: Initializing plugins..."),await F.initializeKosPlugins(n),a=(l=window.KosPlugins)==null?void 0:l.__dynamicRemotes));const b=await F.initPluginManager(a);i(b)}catch(a){console.error("KosPluginProvider: Failed to initialize plugins",a),f(a)}})()},[e,t,n]),s?g(We,{children:[c("div",{children:"Failed to load plugins"}),c("div",{style:{fontSize:"12px",marginTop:"10px",opacity:.8},children:s.message})]}):c(Te.Provider,{value:o,children:o?r:c(We,{children:"Loading remote plugins..."})})},G=()=>{const e=v.useContext(Te);if(!e)throw new Error("useKosPluginsContext must be used within a KosPluginProvider");return e},In=e=>{var t;return((t=e==null?void 0:e.view)==null?void 0:t.component)!==void 0},dt=({extension:e,module:t})=>{const{extensions:n}=G(),[r,o]=v.useState(null),[i,s]=v.useState(null);return v.useEffect(()=>{async function f(){const d=F.resolveBestExtension(n==null?void 0:n[e],t);s(d??null);const p=(d==null?void 0:d.remote)||"",l=In(d)?d.view.component:d==null?void 0:d.component,a=l?`./${l}`:"";if(!p)return;const x=v.lazy(()=>F.mf.loadRemoteModule(p,a));o(x)}f()},[n,t,e]),[r,i]};class Vn extends v.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){console.error("ErrorBoundary caught an error:",t,n)}render(){return this.state.hasError?this.props.fallback:this.props.children}}const jn=h.div`
|
|
15
30
|
align-items: center;
|
|
16
31
|
display: flex;
|
|
17
32
|
height: 100%;
|
|
18
33
|
justify-content: center;
|
|
19
34
|
width: 100%;
|
|
20
|
-
`,
|
|
35
|
+
`,Bn=h.div`
|
|
21
36
|
align-items: center;
|
|
22
37
|
background-color: transparent;
|
|
23
38
|
display: flex;
|
|
@@ -25,5 +40,398 @@
|
|
|
25
40
|
height: ${e=>e.height};
|
|
26
41
|
justify-content: center;
|
|
27
42
|
width: ${e=>e.width};
|
|
28
|
-
`,
|
|
43
|
+
`,Me=({extension:e,fallback:t,module:n,props:r})=>{const[o,i]=dt({extension:e,module:n});if(!o)return null;const s=t||c(jn,{children:`Dynamic component, ${e}, not found...`});return c(Vn,{fallback:s,children:c(v.Suspense,{fallback:i!=null&&i.size?c(Bn,{width:i.size.width,height:i.size.height}):null,children:c(o,{...r})})})},Kn=h.div`
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
height: 100%;
|
|
47
|
+
min-height: 0; /* Important for flexbox children to shrink */
|
|
48
|
+
`,Yn=h.div`
|
|
49
|
+
padding: 16px;
|
|
50
|
+
border-bottom: 1px solid #e1e5e9;
|
|
51
|
+
background: #f6f8fa;
|
|
52
|
+
flex-shrink: 0; /* Prevent header from shrinking */
|
|
53
|
+
`,Wn=h.h3`
|
|
54
|
+
margin: 0 0 8px 0;
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
color: #24292f;
|
|
58
|
+
`,Hn=h.input`
|
|
59
|
+
width: 100%;
|
|
60
|
+
padding: 8px 12px;
|
|
61
|
+
border: 1px solid #d0d7de;
|
|
62
|
+
border-radius: 6px;
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
|
|
66
|
+
&:focus {
|
|
67
|
+
outline: none;
|
|
68
|
+
border-color: #0969da;
|
|
69
|
+
box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
|
|
70
|
+
}
|
|
71
|
+
`,Un=h.div`
|
|
72
|
+
flex: 1;
|
|
73
|
+
overflow-y: auto;
|
|
74
|
+
min-height: 0; /* Critical for making overflow work in flexbox */
|
|
75
|
+
`,qn=h.div`
|
|
76
|
+
padding: 12px 16px;
|
|
77
|
+
border-bottom: 1px solid #f0f0f0;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
background: ${e=>e.selected?"#f6f8fa":"white"};
|
|
80
|
+
border-left: 3px solid
|
|
81
|
+
${e=>e.selected?"#0969da":"transparent"};
|
|
82
|
+
|
|
83
|
+
&:hover {
|
|
84
|
+
background: #f6f8fa;
|
|
85
|
+
}
|
|
86
|
+
`,Gn=h.div`
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
font-size: 14px;
|
|
89
|
+
color: #24292f;
|
|
90
|
+
margin-bottom: 4px;
|
|
91
|
+
`,Zn=h.div`
|
|
92
|
+
font-size: 12px;
|
|
93
|
+
color: #656d76;
|
|
94
|
+
display: flex;
|
|
95
|
+
justify-content: space-between;
|
|
96
|
+
`,He=h.span`
|
|
97
|
+
display: inline-block;
|
|
98
|
+
padding: 2px 6px;
|
|
99
|
+
border-radius: 12px;
|
|
100
|
+
font-size: 11px;
|
|
101
|
+
font-weight: 500;
|
|
102
|
+
|
|
103
|
+
${e=>{switch(e.variant){case"simplified":return"background: #ddf4ff; color: #0969da;";case"legacy":return"background: #fff8dc; color: #9a6700;";case"deprecated":return"background: #ffebe9; color: #cf222e;";default:return"background: #f6f8fa; color: #656d76;"}}}
|
|
104
|
+
`,Xn=h.div`
|
|
105
|
+
padding: 40px 16px;
|
|
106
|
+
text-align: center;
|
|
107
|
+
color: #656d76;
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
`,ft=({extensionPoints:e,selectedExtensionId:t,onExtensionSelect:n,searchTerm:r,onSearchChange:o,className:i})=>g(Kn,{className:i,children:[g(Yn,{children:[c(Wn,{children:"Extension Points"}),c(Hn,{placeholder:"Search extension points...",value:r,onChange:s=>o(s.target.value)})]}),c(Un,{children:e.length>0?e.map(s=>{var f;return g(qn,{selected:s.id===t,onClick:()=>n(s.id),children:[c(Gn,{children:s.displayName||s.id}),g(Zn,{children:[g("div",{children:[c(He,{variant:s.source,children:s.source}),((f=s.metadata)==null?void 0:f.deprecated)&&c(He,{variant:"deprecated",style:{marginLeft:4},children:"deprecated"})]}),g("div",{children:[s.pluginCount," plugin",s.pluginCount!==1?"s":""]})]})]},s.id)}):c(Xn,{children:r?`No extension points match "${r}"`:"No extension points available"})})]});function Re(e){const{extensions:t}=G();return v.useMemo(()=>{try{const r=F.PluginDiscoveryService.getExtensionPoints(t,e),o=F.PluginDiscoveryService.calculateHealthStats(r);return{extensionPoints:r,healthStats:o,isLoading:!1,error:void 0}}catch(r){return{extensionPoints:[],healthStats:{totalExtensionPoints:0,extensionPointsWithPlugins:0,totalPlugins:0,simplifiedExtensionPoints:0,legacyExtensionPoints:0,deprecatedExtensionPoints:0},isLoading:!1,error:r}}},[t,e])}function ut(e,t){const n=Re(t),r=v.useMemo(()=>F.PluginDiscoveryService.filterExtensionPoints(n.extensionPoints,e),[n.extensionPoints,e]);return{...n,filteredExtensionPoints:r}}function Jn(e){const{extensionPoints:t}=Re();return v.useMemo(()=>F.PluginDiscoveryService.getExtensionPointById(t,e),[t,e])}const Qn=h.div`
|
|
110
|
+
border: 1px solid #e1e5e9;
|
|
111
|
+
border-radius: 6px;
|
|
112
|
+
padding: 12px;
|
|
113
|
+
background: white;
|
|
114
|
+
transition: all 0.2s ease;
|
|
115
|
+
`,er=h.div`
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: space-between;
|
|
119
|
+
margin-bottom: 8px;
|
|
120
|
+
`,tr=h.div`
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
`,nr=h.div`
|
|
124
|
+
display: inline-block;
|
|
125
|
+
width: 8px;
|
|
126
|
+
height: 8px;
|
|
127
|
+
border-radius: 50%;
|
|
128
|
+
margin-right: 6px;
|
|
129
|
+
|
|
130
|
+
${e=>{switch(e.status){case"healthy":return"background: #1a7f37;";case"warning":return"background: #bf8700;";case"error":return"background: #cf222e;";default:return"background: #656d76;"}}}
|
|
131
|
+
`,rr=h.h5`
|
|
132
|
+
margin: 0;
|
|
133
|
+
font-size: 14px;
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
color: #24292f;
|
|
136
|
+
`,or=h.div`
|
|
137
|
+
font-size: 12px;
|
|
138
|
+
color: #656d76;
|
|
139
|
+
line-height: 1.4;
|
|
140
|
+
display: grid;
|
|
141
|
+
gap: 2px;
|
|
142
|
+
`,J=h.div`
|
|
143
|
+
display: grid;
|
|
144
|
+
grid-template-columns: 80px 1fr; /* Fixed label width, flexible value */
|
|
145
|
+
gap: 8px;
|
|
146
|
+
overflow: hidden;
|
|
147
|
+
|
|
148
|
+
strong {
|
|
149
|
+
font-weight: 600;
|
|
150
|
+
color: #24292f;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
span {
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
text-overflow: ellipsis;
|
|
156
|
+
white-space: nowrap;
|
|
157
|
+
}
|
|
158
|
+
`,ir=h.div`
|
|
159
|
+
color: #656d76;
|
|
160
|
+
font-style: italic;
|
|
161
|
+
margin-top: 4px;
|
|
162
|
+
font-size: 12px;
|
|
163
|
+
`,sr=h.div`
|
|
164
|
+
margin-top: 6px;
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-wrap: wrap;
|
|
167
|
+
gap: 4px;
|
|
168
|
+
`,ar=h.span`
|
|
169
|
+
background: #f6f8fa;
|
|
170
|
+
border: 1px solid #d0d7de;
|
|
171
|
+
border-radius: 12px;
|
|
172
|
+
padding: 2px 6px;
|
|
173
|
+
font-size: 10px;
|
|
174
|
+
color: #24292f;
|
|
175
|
+
`,cr=h.div`
|
|
176
|
+
margin-top: 8px;
|
|
177
|
+
padding-top: 8px;
|
|
178
|
+
border-top: 1px solid #f0f0f0;
|
|
179
|
+
`,lr=h.div`
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: flex-start;
|
|
182
|
+
gap: 6px;
|
|
183
|
+
padding: 6px 8px;
|
|
184
|
+
border-radius: 4px;
|
|
185
|
+
font-size: 11px;
|
|
186
|
+
line-height: 1.3;
|
|
187
|
+
margin-bottom: 4px;
|
|
188
|
+
|
|
189
|
+
${e=>{switch(e.type){case"error":return"background: #ffebe9; color: #cf222e; border-left: 3px solid #cf222e;";case"warning":return"background: #fff8dc; color: #9a6700; border-left: 3px solid #bf8700;";case"info":return"background: #ddf4ff; color: #0969da; border-left: 3px solid #0969da;";default:return"background: #f6f8fa; color: #656d76;"}}}
|
|
190
|
+
`,dr=h.span`
|
|
191
|
+
font-size: 12px;
|
|
192
|
+
font-weight: bold;
|
|
193
|
+
flex-shrink: 0;
|
|
194
|
+
margin-top: 1px;
|
|
195
|
+
|
|
196
|
+
&::before {
|
|
197
|
+
content: "${e=>{switch(e.type){case"error":return"❌";case"warning":return"⚠️";case"info":return"ℹ️";default:return"•"}}}";
|
|
198
|
+
}
|
|
199
|
+
`,fr=h.div`
|
|
200
|
+
flex: 1;
|
|
201
|
+
`;function ur(e,t){if(F.getExtensionPointRegistry().getExtensionPoint(t)&&e.data)return e.data}function pr(e){const n=F.getExtensionPointRegistry().getExtensionPoint(e);return n!=null&&n.getSchemaFieldInfo?n.getSchemaFieldInfo().map(r=>r.name):[]}const pt=({plugin:e,extensionPointId:t,className:n})=>{const r=F.PluginDiscoveryService.analyzePlugin(e),{hasComponent:o,healthStatus:i,capabilities:s}=r,f=F.getValidationResults(e.id),d=ur(e,t),p=pr(t);return g(Qn,{className:n,children:[c(er,{children:g(tr,{children:[c(nr,{status:i}),c(rr,{children:e.id})]})}),g(or,{children:[g(J,{children:[c("strong",{children:"Source:"}),c("span",{children:e.remote?`${e.remote} plugin`:"Local"})]}),g(J,{children:[c("strong",{children:"Type:"}),c("span",{children:e.type})]}),typeof e.rank=="number"&&g(J,{children:[c("strong",{children:"Priority:"}),g("span",{children:[e.rank," (higher = preferred)"]})]}),e.component&&g(J,{children:[c("strong",{children:"Component:"}),c("span",{children:e.component})]}),d&&p.map(l=>{const a=d[l];if(a==null)return null;const x=l.replace(/([A-Z])/g," $1").replace(/^./,b=>b.toUpperCase()).trim();return g(J,{children:[g("strong",{children:[x,":"]}),c("span",{children:String(a)})]},l)}),!o&&c(ir,{children:"No UI component (data/utility plugin)"}),s.length>0&&c(sr,{children:s.map(l=>c(ar,{children:l},l))}),f.length>0&&c(cr,{children:f.map((l,a)=>g(lr,{type:l.type,children:[c(dr,{type:l.type}),c(fr,{children:l.message})]},a))})]})]})},hr=h.div`
|
|
202
|
+
padding: 12px 16px;
|
|
203
|
+
border-bottom: 1px solid #e1e5e9;
|
|
204
|
+
background: #f9f9f9;
|
|
205
|
+
font-size: 12px;
|
|
206
|
+
flex-shrink: 0; /* Prevent from shrinking */
|
|
207
|
+
`,mr=h.div`
|
|
208
|
+
font-weight: 600;
|
|
209
|
+
margin-bottom: 8px;
|
|
210
|
+
color: #24292f;
|
|
211
|
+
`,Ue=h.div`
|
|
212
|
+
display: flex;
|
|
213
|
+
gap: 12px;
|
|
214
|
+
align-items: center;
|
|
215
|
+
|
|
216
|
+
&:not(:last-child) {
|
|
217
|
+
margin-bottom: 4px;
|
|
218
|
+
}
|
|
219
|
+
`,Q=h.div`
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
gap: 4px;
|
|
223
|
+
`,gr=h.div`
|
|
224
|
+
display: inline-block;
|
|
225
|
+
width: 8px;
|
|
226
|
+
height: 8px;
|
|
227
|
+
border-radius: 50%;
|
|
228
|
+
margin-right: 6px;
|
|
229
|
+
|
|
230
|
+
${e=>{switch(e.status){case"healthy":return"background: #1a7f37;";case"warning":return"background: #bf8700;";case"error":return"background: #cf222e;";default:return"background: #656d76;"}}}
|
|
231
|
+
`,ye=h.span`
|
|
232
|
+
display: inline-block;
|
|
233
|
+
padding: 2px 6px;
|
|
234
|
+
border-radius: 12px;
|
|
235
|
+
font-size: 11px;
|
|
236
|
+
font-weight: 500;
|
|
237
|
+
|
|
238
|
+
${e=>{switch(e.variant){case"simplified":return"background: #ddf4ff; color: #0969da;";case"legacy":return"background: #fff8dc; color: #9a6700;";case"deprecated":return"background: #ffebe9; color: #cf222e;";default:return"background: #f6f8fa; color: #656d76;"}}}
|
|
239
|
+
`,xr=h.button`
|
|
240
|
+
background: #0969da;
|
|
241
|
+
border: 1px solid #0969da;
|
|
242
|
+
border-radius: 4px;
|
|
243
|
+
color: white;
|
|
244
|
+
cursor: pointer;
|
|
245
|
+
font-size: 11px;
|
|
246
|
+
padding: 4px 8px;
|
|
247
|
+
margin-top: 8px;
|
|
248
|
+
width: 100%;
|
|
249
|
+
|
|
250
|
+
&:hover {
|
|
251
|
+
background: #0860ca;
|
|
252
|
+
border-color: #0860ca;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&:active {
|
|
256
|
+
background: #0757ba;
|
|
257
|
+
}
|
|
258
|
+
`,ht=({healthStats:e,className:t})=>{const{extensions:n}=G(),{totalPlugins:r,extensionPointsWithPlugins:o,totalExtensionPoints:i,simplifiedExtensionPoints:s,legacyExtensionPoints:f,deprecatedExtensionPoints:d}=e,p=()=>{try{const l=F.DocumentationGenerator.generateFullDocumentation(n,{includeUsageExamples:!0,includeTypeDefinitions:!0,includeLegacyExtensions:!0,includePluginHealth:!0}),a=new Blob([l.content],{type:"text/markdown"}),x=URL.createObjectURL(a),b=document.createElement("a");b.href=x,b.download=`kos-extension-points-${new Date().toISOString().split("T")[0]}.md`,document.body.appendChild(b),b.click(),document.body.removeChild(b),URL.revokeObjectURL(x)}catch(l){console.error("Failed to generate documentation:",l)}};return g(hr,{className:t,children:[c(mr,{children:"System Health"}),g(Ue,{children:[g(Q,{children:[c(gr,{status:"healthy"}),g("span",{children:[r," plugins"]})]}),c(Q,{children:g("span",{children:[o,"/",i," active"]})})]}),g(Ue,{children:[g(Q,{children:[c(ye,{variant:"simplified",children:s}),c("span",{children:"simplified"})]}),g(Q,{children:[c(ye,{variant:"legacy",children:f}),c("span",{children:"legacy"})]}),d>0&&g(Q,{children:[c(ye,{variant:"deprecated",children:d}),c("span",{children:"deprecated"})]})]}),c(xr,{onClick:p,children:"Export Documentation"})]})},be=h.div`
|
|
259
|
+
display: flex;
|
|
260
|
+
width: 100%;
|
|
261
|
+
height: 100%;
|
|
262
|
+
min-height: 400px; /* Minimum usable height */
|
|
263
|
+
border: 1px solid #e1e5e9;
|
|
264
|
+
border-radius: 8px;
|
|
265
|
+
overflow: hidden;
|
|
266
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
|
|
267
|
+
sans-serif;
|
|
268
|
+
background: white;
|
|
269
|
+
container-type: inline-size; /* Enable container queries */
|
|
270
|
+
`,yr=h.div`
|
|
271
|
+
flex: 0 0 35%; /* Take 35% of container width */
|
|
272
|
+
min-width: 280px; /* Minimum usable width */
|
|
273
|
+
max-width: 400px; /* Maximum width to prevent too wide */
|
|
274
|
+
border-right: 1px solid #e1e5e9;
|
|
275
|
+
display: flex;
|
|
276
|
+
flex-direction: column;
|
|
277
|
+
overflow: hidden;
|
|
278
|
+
|
|
279
|
+
/* Hide on very small screens */
|
|
280
|
+
@media (max-width: 768px) {
|
|
281
|
+
flex: 0 0 100%;
|
|
282
|
+
max-width: 100%;
|
|
283
|
+
border-right: none;
|
|
284
|
+
}
|
|
285
|
+
`,br=h.div`
|
|
286
|
+
flex: 1;
|
|
287
|
+
min-width: 0; /* Allows flex child to shrink below content size */
|
|
288
|
+
display: flex;
|
|
289
|
+
flex-direction: column;
|
|
290
|
+
overflow: hidden;
|
|
291
|
+
|
|
292
|
+
/* Hide on mobile when sidebar is showing */
|
|
293
|
+
@media (max-width: 768px) {
|
|
294
|
+
display: none; /* We'll add mobile navigation later if needed */
|
|
295
|
+
}
|
|
296
|
+
`,vr=h.div`
|
|
297
|
+
padding: 16px;
|
|
298
|
+
border-bottom: 1px solid #e1e5e9;
|
|
299
|
+
background: #f6f8fa;
|
|
300
|
+
`,Er=h.h4`
|
|
301
|
+
margin: 0 0 8px 0;
|
|
302
|
+
font-size: 16px;
|
|
303
|
+
font-weight: 600;
|
|
304
|
+
color: #24292f;
|
|
305
|
+
`,wr=h.p`
|
|
306
|
+
margin: 0;
|
|
307
|
+
font-size: 14px;
|
|
308
|
+
color: #656d76;
|
|
309
|
+
`,Sr=h.div`
|
|
310
|
+
flex: 1;
|
|
311
|
+
padding: 16px;
|
|
312
|
+
overflow-y: auto;
|
|
313
|
+
`,Cr=h.div`
|
|
314
|
+
display: flex;
|
|
315
|
+
flex-direction: column;
|
|
316
|
+
gap: 12px;
|
|
317
|
+
margin-bottom: 24px;
|
|
318
|
+
`,ae=h.div`
|
|
319
|
+
display: flex;
|
|
320
|
+
flex-direction: column;
|
|
321
|
+
align-items: center;
|
|
322
|
+
justify-content: center;
|
|
323
|
+
height: 100%;
|
|
324
|
+
color: #656d76;
|
|
325
|
+
text-align: center;
|
|
326
|
+
`,Pr=h.div`
|
|
327
|
+
margin-top: 16px;
|
|
328
|
+
padding-top: 16px;
|
|
329
|
+
border-top: 1px solid #e1e5e9;
|
|
330
|
+
`,kr=h.h5`
|
|
331
|
+
margin: 0 0 8px 0;
|
|
332
|
+
font-size: 14px;
|
|
333
|
+
font-weight: 600;
|
|
334
|
+
color: #24292f;
|
|
335
|
+
`,$r=h.div`
|
|
336
|
+
display: grid;
|
|
337
|
+
grid-template-columns: auto 1fr;
|
|
338
|
+
gap: 8px 16px;
|
|
339
|
+
font-size: 12px;
|
|
340
|
+
`,Y=h.div`
|
|
341
|
+
color: #656d76;
|
|
342
|
+
font-weight: 500;
|
|
343
|
+
`,W=h.div`
|
|
344
|
+
color: #24292f;
|
|
345
|
+
`,mt=({className:e,showLegacyExtensions:t=!0,extensionFilter:n=""})=>{const[r,o]=v.useState(null),[i,s]=v.useState(n),{filteredExtensionPoints:f,healthStats:d,isLoading:p,error:l}=ut(i,{includeLegacyExtensions:t}),a=f.find(y=>y.id===r),x=y=>{o(y)},b=y=>{s(y)};return l?c(be,{className:e,children:c(ae,{children:g("div",{children:["Error loading plugins: ",l.message]})})}):p?c(be,{className:e,children:c(ae,{children:c("div",{children:"Loading plugins..."})})}):g(be,{className:e,children:[g(yr,{children:[c(ht,{healthStats:d}),c(ft,{extensionPoints:f,selectedExtensionId:r,onExtensionSelect:x,searchTerm:i,onSearchChange:b})]}),c(br,{children:a?g(K,{children:[g(vr,{children:[c(Er,{children:a.displayName||a.id}),a.description&&c(wr,{children:a.description})]}),g(Sr,{children:[a.plugins.length>0?g(K,{children:[g("h5",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600},children:["Active Plugins (",a.pluginCount,")"]}),c(Cr,{children:a.plugins.map(y=>c(pt,{plugin:y,extensionPointId:a.id},y.id))})]}):g(ae,{children:[c("div",{style:{fontSize:"48px",marginBottom:"12px"},children:"🔌"}),c("div",{style:{fontSize:"16px",fontWeight:500,marginBottom:"8px"},children:"No plugins registered"}),c("div",{style:{fontSize:"14px"},children:"This extension point is available but no plugins are currently contributing to it."})]}),a.metadata&&g(Pr,{children:[c(kr,{children:"Extension Point Details"}),g($r,{children:[c(Y,{children:"ID:"}),c(W,{children:a.id}),c(Y,{children:"Source:"}),c(W,{children:a.source}),a.metadata.category&&g(K,{children:[c(Y,{children:"Category:"}),c(W,{children:a.metadata.category})]}),a.metadata.owner&&g(K,{children:[c(Y,{children:"Owner:"}),c(W,{children:a.metadata.owner})]}),a.metadata.since&&g(K,{children:[c(Y,{children:"Since:"}),c(W,{children:a.metadata.since})]}),a.metadata.tags&&a.metadata.tags.length>0&&g(K,{children:[c(Y,{children:"Tags:"}),c(W,{children:a.metadata.tags.join(", ")})]})]})]})]})]}):g(ae,{children:[c("div",{style:{fontSize:"48px",marginBottom:"12px"},children:"🔍"}),c("div",{style:{fontSize:"16px",fontWeight:500,marginBottom:"8px"},children:"Select an extension point"}),c("div",{style:{fontSize:"14px"},children:"Choose an extension point from the sidebar to view its plugins and details."})]})})]})},_r=h.div`
|
|
346
|
+
position: fixed;
|
|
347
|
+
top: 0;
|
|
348
|
+
left: 0;
|
|
349
|
+
right: 0;
|
|
350
|
+
bottom: 0;
|
|
351
|
+
background: rgba(0, 0, 0, 0.5);
|
|
352
|
+
z-index: 10000;
|
|
353
|
+
display: ${e=>e.visible?"flex":"none"};
|
|
354
|
+
align-items: center;
|
|
355
|
+
justify-content: center;
|
|
356
|
+
padding: 20px;
|
|
357
|
+
box-sizing: border-box;
|
|
358
|
+
`,Tr=h.div`
|
|
359
|
+
background: white;
|
|
360
|
+
border-radius: 12px;
|
|
361
|
+
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
|
362
|
+
width: min(1200px, 90vw); /* Responsive with max limit */
|
|
363
|
+
height: min(700px, 85vh); /* Responsive with max limit */
|
|
364
|
+
overflow: hidden;
|
|
365
|
+
position: relative;
|
|
366
|
+
display: flex;
|
|
367
|
+
flex-direction: column;
|
|
368
|
+
`,Mr=h.div`
|
|
369
|
+
display: flex;
|
|
370
|
+
align-items: center;
|
|
371
|
+
justify-content: space-between;
|
|
372
|
+
padding: 16px 20px;
|
|
373
|
+
border-bottom: 1px solid #e1e5e9;
|
|
374
|
+
background: #f6f8fa;
|
|
375
|
+
`,Rr=h.h3`
|
|
376
|
+
margin: 0;
|
|
377
|
+
font-size: 18px;
|
|
378
|
+
font-weight: 600;
|
|
379
|
+
color: #24292f;
|
|
380
|
+
`,Ar=h.button`
|
|
381
|
+
background: none;
|
|
382
|
+
border: none;
|
|
383
|
+
font-size: 20px;
|
|
384
|
+
cursor: pointer;
|
|
385
|
+
padding: 4px;
|
|
386
|
+
color: #656d76;
|
|
387
|
+
border-radius: 4px;
|
|
388
|
+
|
|
389
|
+
&:hover {
|
|
390
|
+
background: #f0f0f0;
|
|
391
|
+
color: #24292f;
|
|
392
|
+
}
|
|
393
|
+
`,Nr=h.button`
|
|
394
|
+
position: fixed;
|
|
395
|
+
${e=>{switch(e.position){case"top-left":return"top: 20px; left: 20px;";case"top-right":return"top: 20px; right: 20px;";case"bottom-left":return"bottom: 20px; left: 20px;";case"bottom-right":default:return"bottom: 20px; right: 20px;"}}}
|
|
396
|
+
|
|
397
|
+
background: #0969da;
|
|
398
|
+
color: white;
|
|
399
|
+
border: none;
|
|
400
|
+
border-radius: 50%;
|
|
401
|
+
width: 56px;
|
|
402
|
+
height: 56px;
|
|
403
|
+
font-size: 24px;
|
|
404
|
+
cursor: pointer;
|
|
405
|
+
z-index: 9999;
|
|
406
|
+
box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
|
|
407
|
+
transition: all 0.2s ease;
|
|
408
|
+
|
|
409
|
+
/* Center the SVG content */
|
|
410
|
+
display: flex;
|
|
411
|
+
align-items: center;
|
|
412
|
+
justify-content: center;
|
|
413
|
+
|
|
414
|
+
&:hover {
|
|
415
|
+
background: #0860ca;
|
|
416
|
+
transform: scale(1.05);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
&:active {
|
|
420
|
+
transform: scale(0.95);
|
|
421
|
+
}
|
|
422
|
+
`,zr=h.div`
|
|
423
|
+
font-size: 12px;
|
|
424
|
+
color: #656d76;
|
|
425
|
+
margin-left: 8px;
|
|
426
|
+
`,Or=({keyboardShortcut:e="ctrl+shift+p",showToggleButton:t=!0,toggleButtonPosition:n="bottom-right",...r})=>{const[o,i]=v.useState(!1);v.useEffect(()=>{const d=p=>{const a=e.toLowerCase().split("+").map(y=>y.trim());let x=!0;a.includes("ctrl")&&!p.ctrlKey&&(x=!1),a.includes("shift")&&!p.shiftKey&&(x=!1),a.includes("alt")&&!p.altKey&&(x=!1),a.includes("meta")&&!p.metaKey&&(x=!1);const b=a.find(y=>!["ctrl","shift","alt","meta"].includes(y));b&&p.key.toLowerCase()!==b.toLowerCase()&&(x=!1),x&&(p.preventDefault(),i(y=>!y))};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[e]),v.useEffect(()=>{const d=p=>{p.key==="Escape"&&o&&i(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[o]);const s=()=>{i(d=>!d)},f=d=>{d.target===d.currentTarget&&i(!1)};return process.env.NODE_ENV!=="development"?null:g(K,{children:[t&&c(Nr,{position:n,onClick:s,title:`Plugin Explorer (${e})`,children:c("svg",{fill:"#ffffff",width:"28",height:"28",version:"1.1",id:"Artwork",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:{display:"block"},children:c("g",{children:c("path",{fill:"#ffffff",stroke:"#FFFFFF",d:`M202.7,259.7l-31.5,31.5c-5.6,5.6-8.6,13-8.6,20.9c0,7.9,3.1,15.3,8.6,20.9l6.1,6.1l-3.7,3.7c-11.1,11.1-29.2,11.1-40.4,0
|
|
427
|
+
l-31.4-31.4c-20.7-20.7-54.3-20.7-75,0c-20.7,20.7-20.7,54.3,0,75l31.4,31.5c5.4,5.4,8.4,12.6,8.4,20.2s-3,14.8-8.4,20.2
|
|
428
|
+
c-4.8,4.8-4.8,12.5,0,17.3c2.4,2.4,5.5,3.6,8.7,3.6c3.1,0,6.3-1.2,8.7-3.6c10-10,15.5-23.3,15.5-37.5s-5.5-27.5-15.5-37.5
|
|
429
|
+
l-31.4-31.5c-11.1-11.1-11.1-29.2,0-40.4s29.2-11.1,40.4,0L116,360c20.7,20.7,54.3,20.7,75,0l3.7-3.7l6.1,6.1
|
|
430
|
+
c5.8,5.8,13.3,8.6,20.9,8.6c7.6,0,15.1-2.9,20.9-8.6l31.5-31.5c11.4,3.7,23.2,5.7,35,5.7c28.7,0,57.4-10.9,79.2-32.7l55.1-55.1
|
|
431
|
+
l9.9,9.9c2.4,2.4,5.5,3.6,8.7,3.6s6.3-1.2,8.7-3.6c4.8-4.8,4.8-12.5,0-17.3l-40.5-40.5l67-67c4.8-4.8,4.8-12.5,0-17.3
|
|
432
|
+
c-4.8-4.8-12.5-4.8-17.3,0l-67,67L350.2,121l67-67c4.8-4.8,4.8-12.5,0-17.3c-4.8-4.8-12.5-4.8-17.3,0l-67,67l-40.5-40.5
|
|
433
|
+
c-4.8-4.8-12.5-4.8-17.3,0c-4.8,4.8-4.8,12.5,0,17.3l9.9,9.9l-55.1,55.1C199,176.4,190,220.8,202.7,259.7z M247.1,286.6
|
|
434
|
+
c-34.1-34.1-34.1-89.6,0-123.7l55.1-55.1L426,231.4l-55.1,55.1C336.7,320.7,281.2,320.7,247.1,286.6z M213.7,283.4
|
|
435
|
+
c4.5,7.3,9.8,14.2,16.1,20.5s13.2,11.6,20.5,16.1l-25.2,25.2c-1.9,2-5.1,2-7.1,0l-29.5-29.5c-1.3-1.3-1.5-2.8-1.5-3.5
|
|
436
|
+
c0-0.8,0.2-2.3,1.5-3.5L213.7,283.4z`})})})}),c(_r,{visible:o,onClick:f,children:g(Tr,{children:[g(Mr,{children:[g("div",{style:{display:"flex",alignItems:"center"},children:[c(Rr,{children:"KOS Plugin Explorer"}),g(zr,{children:[e," to toggle"]})]}),c(Ar,{onClick:()=>i(!1),"aria-label":"Close",children:"×"})]}),c(mt,{...r})]})})]})};function Z(e){const{extensions:t,getExtensions:n}=G();return v.useMemo(()=>{if(typeof e=="object"&&e.id){const o=e;if(o.getExtensions&&t){const s=o.getExtensions(t);return Object.values(s)}const i=(t==null?void 0:t[o.id])||{};return Object.values(i)}return n(e)},[e,t,n])}function Fr(e,t){const{extensions:n}=G(),r=Z(e);return v.useMemo(()=>{if(!r||r.length===0)return null;if(t!=null&&t.customRanker)return t.customRanker(r);if(typeof e=="object"&&t){let f=r;if(t.propertyMatches&&(f=f.filter(p=>Object.entries(t.propertyMatches).every(([l,a])=>{var x;return((x=p.data)==null?void 0:x[l])===a}))),t.preferredModule){const p=f.find(l=>l.sectionId===t.preferredModule);if(p)return p}const d=f.reduce((p,l)=>(p[l.id]=l,p),{});return F.resolveBestExtension(d)}const o=typeof e=="string"?e:e.id,i=(n==null?void 0:n[o])||{};return F.resolveBestExtension(i,t==null?void 0:t.preferredModule)},[e,r,n,t])}function Lr(e){return Z(e).length>0}function Dr(e){return Z(e).length}function Ir(e,t){const n=Z(e);return v.useMemo(()=>{let r=n.filter(t.filter);return t.sort&&(r=r.sort(t.sort)),r},[n,t.filter,t.sort])}function Vr(e,t){const n=Z(e),[r,o]=v.useState(new Map),i=v.useMemo(()=>t!=null&&t.filter?n.filter(t.filter):n,[n,t==null?void 0:t.filter]),s=(t==null?void 0:t.moduleProperty)||"module";return v.useEffect(()=>{(async()=>{var d;for(const p of i){const l=p.id;if(!r.has(l)){o(a=>new Map(a).set(l,{module:null,loading:!0,error:null}));try{const a=((d=p.data)==null?void 0:d[s])||p[s]||`./${p.id}`,x=p.remote;if(!x)throw new Error(`No remote specified for extension ${l}`);const{loadRemoteModule:b}=await Promise.resolve().then(()=>require("./documentation-generator-E9tFyId_.cjs")).then(S=>S.index),y=await b(x,a);o(S=>new Map(S).set(l,{module:y,loading:!1,error:null}))}catch(a){const x=a instanceof Error?a.message:"Unknown error";o(b=>new Map(b).set(l,{module:null,loading:!1,error:x}))}}}})()},[i,s,r]),v.useMemo(()=>i.map(f=>{const d=r.get(f.id)||{module:null,loading:!0,error:null};return{extension:f,module:d.module,loading:d.loading,error:d.error}}),[i,r])}function jr(e){return v.useMemo(()=>{if(!e.config.hasView)return null;const t=n=>{const{module:r,fallback:o,...i}=n;return v.createElement(Me,{extension:e.id,module:r,fallback:o,props:i})};return t.displayName=`${e.config.displayName||e.id}.Component`,t},[e])}function Br(e){if(!e.config.hasView)return null;const t=n=>{const{module:r,fallback:o,...i}=n;return v.createElement(Me,{extension:e.id,module:r,fallback:o,props:i})};return t.displayName=`${e.config.displayName||e.id}.Component`,t}exports.DynamicComponent=Me;exports.ExtensionPointList=ft;exports.FloatingPluginExplorer=Or;exports.KosPluginProvider=Dn;exports.PluginCard=pt;exports.PluginExplorer=mt;exports.PluginHealthDashboard=ht;exports.RemotesContext=Te;exports.createExtensionComponent=Br;exports.useBest=Fr;exports.useDynamicComponent=dt;exports.useExtensionComponent=jr;exports.useExtensionCount=Dr;exports.useExtensionPoint=Jn;exports.useExtensions=Z;exports.useFilteredExtensionPoints=ut;exports.useFilteredExtensions=Ir;exports.useHasExtensions=Lr;exports.useKosPluginsContext=G;exports.useModules=Vr;exports.usePluginDiscovery=Re;
|
|
29
437
|
//# sourceMappingURL=index.cjs.map
|