@kosdev-code/kos-ui-plugin 0.1.0-dev.5053
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-DFaIDo0E.cjs +266 -0
- package/documentation-generator-DFaIDo0E.cjs.map +1 -0
- package/documentation-generator-auruIa_o.js +1560 -0
- package/documentation-generator-auruIa_o.js.map +1 -0
- package/index.cjs +437 -0
- package/index.cjs.map +1 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -0
- package/index.js +2276 -0
- package/index.js.map +1 -0
- package/lib/components/dynamic-component/dynamic-component.d.ts +11 -0
- package/lib/components/dynamic-component/dynamic-component.d.ts.map +1 -0
- 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/dynamic-component/index.d.ts +2 -0
- package/lib/components/dynamic-component/index.d.ts.map +1 -0
- package/lib/components/dynamic-container/dynamic-container.d.ts +12 -0
- package/lib/components/dynamic-container/dynamic-container.d.ts.map +1 -0
- package/lib/components/dynamic-container/index.d.ts +2 -0
- package/lib/components/dynamic-container/index.d.ts.map +1 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -0
- 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/contexts/index.d.ts +2 -0
- package/lib/contexts/index.d.ts.map +1 -0
- package/lib/contexts/plugins-provider/index.d.ts +2 -0
- package/lib/contexts/plugins-provider/index.d.ts.map +1 -0
- package/lib/contexts/plugins-provider/plugins-provider.d.ts +50 -0
- package/lib/contexts/plugins-provider/plugins-provider.d.ts.map +1 -0
- package/lib/hooks/index.d.ts +6 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/use-dynamic-component.d.ts +34 -0
- package/lib/hooks/use-dynamic-component.d.ts.map +1 -0
- package/lib/hooks/use-extension-component.d.ts +26 -0
- package/lib/hooks/use-extension-component.d.ts.map +1 -0
- package/lib/hooks/use-extension-i18n.d.ts +69 -0
- package/lib/hooks/use-extension-i18n.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 +59 -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/extension-points/json-extension-parser.d.ts +68 -0
- package/lib/utils/extension-points/json-extension-parser.d.ts.map +1 -0
- package/lib/utils/extension-points/type-generator.d.ts +43 -0
- package/lib/utils/extension-points/type-generator.d.ts.map +1 -0
- package/lib/utils/index.d.ts +10 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/plugin-system/plugin-extension-manager.d.ts +15 -0
- 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-system/plugin-extension-registry.d.ts +6 -0
- package/lib/utils/plugin-system/plugin-extension-registry.d.ts.map +1 -0
- package/lib/utils/plugin-system/plugin-reducer.d.ts +17 -0
- package/lib/utils/plugin-system/plugin-reducer.d.ts.map +1 -0
- package/lib/utils/plugin-system/resolve-best-extension.d.ts +12 -0
- 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/processors/initialize-plugins.d.ts +82 -0
- 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/processors/process-kos-config.d.ts +34 -0
- 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/lib/webpack/index.d.ts +2 -0
- package/lib/webpack/index.d.ts.map +1 -0
- package/lib/webpack/with-kos-config.d.ts +2 -0
- package/lib/webpack/with-kos-config.d.ts.map +1 -0
- package/package.json +30 -0
- package/types/global.d.ts +53 -0
- package/types/plugins.d.ts +41 -0
- package/utils.cjs +2 -0
- package/utils.cjs.map +1 -0
- package/utils.js +296 -0
- package/utils.js.map +1 -0
- package/webpack.cjs +13 -0
- package/webpack.cjs.map +1 -0
- package/webpack.js +795 -0
- package/webpack.js.map +1 -0
package/index.cjs
ADDED
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const It=require("react/jsx-runtime"),v=require("react"),h=require("@emotion/styled"),F=require("./documentation-generator-DFaIDo0E.cjs"),Vt=require("@kosdev-code/kos-ui-sdk");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(It),B=qe(v);function jt(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 Bt(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 Kt=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(Bt(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=jt(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",ke="rule",$e="decl",Yt="@import",Ze="@keyframes",Wt="@layer",Ht=Math.abs,ue=String.fromCharCode,Ut=Object.assign;function qt(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 Gt(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,n){return e.replace(t,n)}function Ee(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 Zt(e,t){return e.map(t).join("")}var pe=1,q=1,Je=0,L=0,R=0,G="";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:q,length:s,return:""}}function X(e,t){return Ut(he("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xt(){return R}function Jt(){return R=L>0?N(G,--L):0,q--,R===10&&(q=1,pe--),R}function D(){return R=L<Je?N(G,L++):0,q++,R===10&&(q=1,pe++),R}function j(){return N(G,L)}function ce(){return L}function oe(e,t){return te(G,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=q=1,Je=I(G=e),L=0,[]}function et(e){return G="",e}function le(e){return Xe(oe(L-1,we(e===91?e+2:e===40?e+1:e)))}function Qt(e){for(;(R=j())&&R<33;)D();return ne(e)>2||ne(R)>3?"":" "}function en(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 we(e){for(;D();)switch(R){case e:return L;case 34:case 39:e!==34&&e!==39&&we(R);break;case 40:e===41&&we(e);break;case 92:D();break}return L}function tn(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 nn(e){for(;!ne(j());)D();return oe(e,L)}function rn(e){return et(de("",null,null,null,[""],e=Qe(e),0,[0],e))}function de(e,t,n,r,o,i,s,d,f){for(var u=0,l=0,a=s,x=0,b=0,y=0,S=1,A=1,_=1,T=0,$="",M=o,p=i,z=r,k=$;A;)switch(y=T,T=D()){case 40:if(y!=108&&N(k,a-1)==58){Ee(k+=w(le(T),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=le(T);break;case 9:case 10:case 13:case 32:k+=Qt(y);break;case 92:k+=en(ce()-1,7);continue;case 47:switch(j()){case 42:case 47:se(on(tn(D(),ce()),t,n),f);break;default:k+="/"}break;case 123*S:d[u++]=I(k)*_;case 125*S:case 59:case 0:switch(T){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),f);break;case 59:k+=";";default:if(se(z=Oe(k,t,n,u,l,o,d,$,M=[],p=[],a),i),T===123)if(l===0)de(k,t,z,z,M,i,a,d,p);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,d,$,o,M=[],a),p),o,p,a,d,r?M:p);break;default:de(k,z,z,z,[""],p,0,d,p)}}u=l=b=0,S=_=1,$=k="",a=s;break;case 58:a=1+I(k),b=y;default:if(S<1){if(T==123)--S;else if(T==125&&S++==0&&Jt()==125)continue}switch(k+=ue(T),T*S){case 38:_=l>0?1:(k+="\f",-1);break;case 44:d[u++]=(I(k)-1)*_,_=1;break;case 64:j()===45&&(k+=le(D())),x=j(),l=a=I($=k+=nn(ce())),T++;break;case 45:y===45&&I(k)==2&&(S=0)}}return i}function Oe(e,t,n,r,o,i,s,d,f,u,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,T=te(e,a+1,a=Ht(S=s[y])),$=e;_<b;++_)($=Xe(S>0?x[_]+" "+T:w(T,/&\f/g,x[_])))&&(f[A++]=$);return he(e,t,n,o===0?ke:d,f,u,l)}function on(e,t,n){return he(e,t,n,Ge,ue(Xt()),te(e,2,-2),0)}function Fe(e,t,n,r){return he(e,t,n,$e,te(e,0,r),te(e,r+1,-1),r)}function U(e,t){for(var n="",r=_e(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function sn(e,t,n,r){switch(e.type){case Wt:if(e.children.length)break;case Yt:case $e:return e.return=e.return||e.value;case Ge:return"";case Ze:return e.return=e.value+"{"+U(e.children,r)+"}";case ke:e.value=e.props.join(",")}return I(n=U(e.children,r))?e.return=e.value+"{"+n+"}":""}function an(e){var t=_e(e);return function(n,r,o,i){for(var s="",d=0;d<t;d++)s+=e[d](n,r,o,i)||"";return s}}function cn(e){return function(t){t.root||(t=t.return)&&e(t)}}var ln=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)},dn=function(t,n){var r=-1,o=44;do switch(ne(o)){case 0:o===38&&j()===12&&(n[r]=1),t[r]+=ln(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},fn=function(t,n){return et(dn(Qe(t),n))},Le=new WeakMap,un=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=fn(n,i),d=r.props,f=0,u=0;f<s.length;f++)for(var l=0;l<d.length;l++,u++)t.props[u]=i[f]?s[f].replace(/&\f/g,d[l]):d[l]+" "+s[f]}}},pn=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(qt(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~Ee(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-(~Ee(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 hn=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case $e:t.return=tt(t.value,t.length);break;case Ze:return U([X(t,{value:w(t.value,"@","@"+E)})],o);case ke:if(t.length)return Zt(t.props,function(i){switch(Gt(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([X(t,{props:[w(i,/:(read-\w+)/,":"+fe+"$1")]})],o);case"::placeholder":return U([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""})}},mn=[hn],gn=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||mn,i={},s,d=[];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;d.push(S)});var f,u=[un,pn];{var l,a=[sn,cn(function(S){l.insert(S)})],x=an(u.concat(o,a)),b=function(A){return U(rn(A),x)};f=function(A,_,T,$){l=T,b(A?A+"{"+_.styles+"}":_.styles),$&&(y.inserted[_.name]=!0)}}var y={key:n,sheet:new Kt({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:f};return y.sheet.hydrate(d),y},Se={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 xn(){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,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,u=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,T=e?Symbol.for("react.scope"):60119;function $(p){if(typeof p=="object"&&p!==null){var z=p.$$typeof;switch(z){case t:switch(p=p.type,p){case f:case u:case r:case i:case o:case a:return p;default:switch(p=p&&p.$$typeof,p){case d:case l:case y:case b:case s:return p;default:return z}}case n:return z}}}function M(p){return $(p)===u}return C.AsyncMode=f,C.ConcurrentMode=u,C.ContextConsumer=d,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(p){return M(p)||$(p)===f},C.isConcurrentMode=M,C.isContextConsumer=function(p){return $(p)===d},C.isContextProvider=function(p){return $(p)===s},C.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},C.isForwardRef=function(p){return $(p)===l},C.isFragment=function(p){return $(p)===r},C.isLazy=function(p){return $(p)===y},C.isMemo=function(p){return $(p)===b},C.isPortal=function(p){return $(p)===n},C.isProfiler=function(p){return $(p)===i},C.isStrictMode=function(p){return $(p)===o},C.isSuspense=function(p){return $(p)===a},C.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===u||p===i||p===o||p===a||p===x||typeof p=="object"&&p!==null&&(p.$$typeof===y||p.$$typeof===b||p.$$typeof===s||p.$$typeof===d||p.$$typeof===l||p.$$typeof===A||p.$$typeof===_||p.$$typeof===T||p.$$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 yn(){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,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,u=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,T=e?Symbol.for("react.scope"):60119;function $(m){return typeof m=="string"||typeof m=="function"||m===r||m===u||m===i||m===o||m===a||m===x||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===b||m.$$typeof===s||m.$$typeof===d||m.$$typeof===l||m.$$typeof===A||m.$$typeof===_||m.$$typeof===T||m.$$typeof===S)}function M(m){if(typeof m=="object"&&m!==null){var xe=m.$$typeof;switch(xe){case t:var ie=m.type;switch(ie){case f:case u:case r:case i:case o:case a:return ie;default:var ze=ie&&ie.$$typeof;switch(ze){case d:case l:case y:case b:case s:return ze;default:return xe}}case n:return xe}}}var p=f,z=u,k=d,xt=s,yt=t,bt=l,vt=r,Et=y,wt=b,St=n,Ct=i,Pt=o,kt=a,Ae=!1;function $t(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)||M(m)===f}function Ne(m){return M(m)===u}function _t(m){return M(m)===d}function Mt(m){return M(m)===s}function Tt(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function Rt(m){return M(m)===l}function At(m){return M(m)===r}function Nt(m){return M(m)===y}function zt(m){return M(m)===b}function Ot(m){return M(m)===n}function Ft(m){return M(m)===i}function Lt(m){return M(m)===o}function Dt(m){return M(m)===a}P.AsyncMode=p,P.ConcurrentMode=z,P.ContextConsumer=k,P.ContextProvider=xt,P.Element=yt,P.ForwardRef=bt,P.Fragment=vt,P.Lazy=Et,P.Memo=wt,P.Portal=St,P.Profiler=Ct,P.StrictMode=Pt,P.Suspense=kt,P.isAsyncMode=$t,P.isConcurrentMode=Ne,P.isContextConsumer=_t,P.isContextProvider=Mt,P.isElement=Tt,P.isForwardRef=Rt,P.isFragment=At,P.isLazy=Nt,P.isMemo=zt,P.isPortal=Ot,P.isProfiler=Ft,P.isStrictMode=Lt,P.isSuspense=Dt,P.isValidElementType=$,P.typeOf=M}()),P}process.env.NODE_ENV==="production"?Se.exports=xn():Se.exports=yn();var bn=Se.exports,nt=bn,vn={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},En={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rt={};rt[nt.ForwardRef]=vn;rt[nt.Memo]=En;var wn=!0;function Sn(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||wn===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Cn=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 Pn(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 kn={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 $n(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _n=/[A-Z]|^ms/g,Mn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,it=function(t){return t.charCodeAt(1)===45},Ve=function(t){return t!=null&&typeof t!="boolean"},ye=$n(function(e){return it(e)?e:e.replace(_n,"-$&").toLowerCase()}),je=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mn,function(r,o,i){return V={name:o,styles:i,next:V},o})}return kn[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 d=i.styles+";";return d}return Tn(e,t,n)}case"function":{if(e!==void 0){var f=V,u=n(e);return V=f,re(e,t,u)}break}}var l=n;return l}function Tn(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 d=s;Ve(d)&&(r+=ye(i)+":"+je(i,d)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var f=0;f<s.length;f++)Ve(s[f])&&(r+=ye(i)+":"+je(i,s[f])+";");else{var u=re(e,t,s);switch(i){case"animation":case"animationName":{r+=ye(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}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 d=1;d<e.length;d++)if(o+=re(n,t,e[d]),r){var f=i;o+=f[d]}Be.lastIndex=0;for(var u="",l;(l=Be.exec(o))!==null;)u+="-"+l[1];var a=Pn(o)+u;return{name:a,styles:o,next:V}}var Rn=function(t){return t()},An=B.useInsertionEffect?B.useInsertionEffect:!1,Nn=An||Rn,me={}.hasOwnProperty,Me=B.createContext(typeof HTMLElement<"u"?gn({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Me.displayName="EmotionCacheContext");Me.Provider;var zn=function(t){return v.forwardRef(function(n,r){var o=v.useContext(Me);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]},On=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])},Fn=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Ln=function(t){return t.replace(/\$/g,"-")},Dn=function(t){if(t)for(var n=t.split(`
|
|
16
|
+
`),r=0;r<n.length;r++){var o=On(n[r]);if(o){if(Fn.has(o))break;if(/^[A-Z]/.test(o))return Ln(o)}}},Ce="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Pe="__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[Ce]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var i=Dn(new Error().stack);i&&(r[Pe]=i)}return r},In=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ot(n,r,o),Nn(function(){return Cn(n,r,o)}),null},ct=zn(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Ce],i=[r],s="";typeof e.className=="string"?s=Sn(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var d=Ke(i,void 0,B.useContext(st));if(process.env.NODE_ENV!=="production"&&d.name.indexOf("-")===-1){var f=e[Pe];f&&(d=Ke([d,"label:"+f+";"]))}s+=t.key+"-"+d.name;var u={};for(var l in e)me.call(e,l)&&l!=="css"&&l!==Ce&&(process.env.NODE_ENV==="production"||l!==Pe)&&(u[l]=e[l]);return u.ref=n,u.className=s,B.createElement(B.Fragment,null,B.createElement(In,{cache:t,serialized:d,isStringTag:typeof o=="string"}),B.createElement(o,u))});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`
|
|
17
|
+
padding-inline: 20px;
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100vh;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
position: fixed;
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
z-index: 10000;
|
|
29
|
+
`,Vn=({remotesOverride:e,onBeforeInitialize:t,pluginConfig:n,children:r})=>{const[o,i]=v.useState(),[s,d]=v.useState(null);return v.useEffect(()=>{(async()=>{var u,l;try{t&&(console.log("KosPluginProvider: Waiting for pre-initialization conditions..."),await t(),console.log("KosPluginProvider: Pre-initialization complete"));let a=e;const x=(u=window.KosPlugins)==null?void 0:u.__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),d(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..."})})},Z=()=>{const e=v.useContext(Te);if(!e)throw new Error("useKosPluginsContext must be used within a KosPluginProvider");return e},jn=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}=Z(),[r,o]=v.useState(null),[i,s]=v.useState(null);return v.useEffect(()=>{async function d(){const f=F.resolveBestExtension(n==null?void 0:n[e],t);s(f??null);const u=(f==null?void 0:f.remote)||"",l=jn(f)?f.view.component:f==null?void 0:f.component,a=l?`./${l}`:"";if(!u)return;const x=v.lazy(()=>F.mf.loadRemoteModule(u,a));o(x)}d()},[n,t,e]),[r,i]};class Bn 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 Kn=h.div`
|
|
30
|
+
align-items: center;
|
|
31
|
+
display: flex;
|
|
32
|
+
height: 100%;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
width: 100%;
|
|
35
|
+
`,Yn=h.div`
|
|
36
|
+
align-items: center;
|
|
37
|
+
background-color: transparent;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
height: ${e=>e.height};
|
|
41
|
+
justify-content: center;
|
|
42
|
+
width: ${e=>e.width};
|
|
43
|
+
`,ge=({extension:e,fallback:t,module:n,props:r})=>{const[o,i]=dt({extension:e,module:n});if(!o)return null;const s=t||c(Kn,{children:`Dynamic component, ${e}, not found...`});return c(Bn,{fallback:s,children:c(v.Suspense,{fallback:i!=null&&i.size?c(Yn,{width:i.size.width,height:i.size.height}):null,children:c(o,{...r})})})},Wn=h.div`
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
height: 100%;
|
|
47
|
+
min-height: 0; /* Important for flexbox children to shrink */
|
|
48
|
+
`,Hn=h.div`
|
|
49
|
+
padding: 16px;
|
|
50
|
+
border-bottom: 1px solid #e1e5e9;
|
|
51
|
+
background: #f6f8fa;
|
|
52
|
+
flex-shrink: 0; /* Prevent header from shrinking */
|
|
53
|
+
`,Un=h.h3`
|
|
54
|
+
margin: 0 0 8px 0;
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
color: #24292f;
|
|
58
|
+
`,qn=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
|
+
`,Gn=h.div`
|
|
72
|
+
flex: 1;
|
|
73
|
+
overflow-y: auto;
|
|
74
|
+
min-height: 0; /* Critical for making overflow work in flexbox */
|
|
75
|
+
`,Zn=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
|
+
`,Xn=h.div`
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
font-size: 14px;
|
|
89
|
+
color: #24292f;
|
|
90
|
+
margin-bottom: 4px;
|
|
91
|
+
`,Jn=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
|
+
`,Qn=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(Wn,{className:i,children:[g(Hn,{children:[c(Un,{children:"Extension Points"}),c(qn,{placeholder:"Search extension points...",value:r,onChange:s=>o(s.target.value)})]}),c(Gn,{children:e.length>0?e.map(s=>{var d;return g(Zn,{selected:s.id===t,onClick:()=>n(s.id),children:[c(Xn,{children:s.displayName||s.id}),g(Jn,{children:[g("div",{children:[c(He,{variant:s.source,children:s.source}),((d=s.metadata)==null?void 0:d.deprecated)&&c(He,{variant:"deprecated",style:{marginLeft:4},children:"deprecated"})]}),g("div",{children:[s.pluginCount," plugin",s.pluginCount!==1?"s":""]})]})]},s.id)}):c(Qn,{children:r?`No extension points match "${r}"`:"No extension points available"})})]});function Re(e){const{extensions:t}=Z();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 er(e){const{extensionPoints:t}=Re();return v.useMemo(()=>F.PluginDiscoveryService.getExtensionPointById(t,e),[t,e])}const tr=h.div`
|
|
110
|
+
border: 1px solid #e1e5e9;
|
|
111
|
+
border-radius: 6px;
|
|
112
|
+
padding: 12px;
|
|
113
|
+
background: white;
|
|
114
|
+
transition: all 0.2s ease;
|
|
115
|
+
`,nr=h.div`
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: space-between;
|
|
119
|
+
margin-bottom: 8px;
|
|
120
|
+
`,rr=h.div`
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
`,or=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
|
+
`,ir=h.h5`
|
|
132
|
+
margin: 0;
|
|
133
|
+
font-size: 14px;
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
color: #24292f;
|
|
136
|
+
`,sr=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
|
+
`,ar=h.div`
|
|
159
|
+
color: #656d76;
|
|
160
|
+
font-style: italic;
|
|
161
|
+
margin-top: 4px;
|
|
162
|
+
font-size: 12px;
|
|
163
|
+
`,cr=h.div`
|
|
164
|
+
margin-top: 6px;
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-wrap: wrap;
|
|
167
|
+
gap: 4px;
|
|
168
|
+
`,lr=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
|
+
`,dr=h.div`
|
|
176
|
+
margin-top: 8px;
|
|
177
|
+
padding-top: 8px;
|
|
178
|
+
border-top: 1px solid #f0f0f0;
|
|
179
|
+
`,fr=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
|
+
`,ur=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
|
+
`,pr=h.div`
|
|
200
|
+
flex: 1;
|
|
201
|
+
`;function hr(e,t){if(F.getExtensionPointRegistry().getExtensionPoint(t)&&e.data)return e.data}function mr(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,d=F.getValidationResults(e.id),f=hr(e,t),u=mr(t);return g(tr,{className:n,children:[c(nr,{children:g(rr,{children:[c(or,{status:i}),c(ir,{children:e.id})]})}),g(sr,{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})]}),f&&u.map(l=>{const a=f[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(ar,{children:"No UI component (data/utility plugin)"}),s.length>0&&c(cr,{children:s.map(l=>c(lr,{children:l},l))}),d.length>0&&c(dr,{children:d.map((l,a)=>g(fr,{type:l.type,children:[c(ur,{type:l.type}),c(pr,{children:l.message})]},a))})]})]})},gr=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
|
+
`,xr=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
|
+
`,yr=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
|
+
`,be=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
|
+
`,br=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}=Z(),{totalPlugins:r,extensionPointsWithPlugins:o,totalExtensionPoints:i,simplifiedExtensionPoints:s,legacyExtensionPoints:d,deprecatedExtensionPoints:f}=e,u=()=>{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(gr,{className:t,children:[c(xr,{children:"System Health"}),g(Ue,{children:[g(Q,{children:[c(yr,{status:"healthy"}),g("span",{children:[r," plugins"]})]}),c(Q,{children:g("span",{children:[o,"/",i," active"]})})]}),g(Ue,{children:[g(Q,{children:[c(be,{variant:"simplified",children:s}),c("span",{children:"simplified"})]}),g(Q,{children:[c(be,{variant:"legacy",children:d}),c("span",{children:"legacy"})]}),f>0&&g(Q,{children:[c(be,{variant:"deprecated",children:f}),c("span",{children:"deprecated"})]})]}),c(br,{onClick:u,children:"Export Documentation"})]})},ve=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
|
+
`,vr=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
|
+
`,Er=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
|
+
`,wr=h.div`
|
|
297
|
+
padding: 16px;
|
|
298
|
+
border-bottom: 1px solid #e1e5e9;
|
|
299
|
+
background: #f6f8fa;
|
|
300
|
+
`,Sr=h.h4`
|
|
301
|
+
margin: 0 0 8px 0;
|
|
302
|
+
font-size: 16px;
|
|
303
|
+
font-weight: 600;
|
|
304
|
+
color: #24292f;
|
|
305
|
+
`,Cr=h.p`
|
|
306
|
+
margin: 0;
|
|
307
|
+
font-size: 14px;
|
|
308
|
+
color: #656d76;
|
|
309
|
+
`,Pr=h.div`
|
|
310
|
+
flex: 1;
|
|
311
|
+
padding: 16px;
|
|
312
|
+
overflow-y: auto;
|
|
313
|
+
`,kr=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
|
+
`,$r=h.div`
|
|
327
|
+
margin-top: 16px;
|
|
328
|
+
padding-top: 16px;
|
|
329
|
+
border-top: 1px solid #e1e5e9;
|
|
330
|
+
`,_r=h.h5`
|
|
331
|
+
margin: 0 0 8px 0;
|
|
332
|
+
font-size: 14px;
|
|
333
|
+
font-weight: 600;
|
|
334
|
+
color: #24292f;
|
|
335
|
+
`,Mr=h.div`
|
|
336
|
+
display: grid;
|
|
337
|
+
grid-template-columns: auto 1fr;
|
|
338
|
+
gap: 8px 16px;
|
|
339
|
+
font-size: 12px;
|
|
340
|
+
`,W=h.div`
|
|
341
|
+
color: #656d76;
|
|
342
|
+
font-weight: 500;
|
|
343
|
+
`,H=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:d,healthStats:f,isLoading:u,error:l}=ut(i,{includeLegacyExtensions:t}),a=d.find(y=>y.id===r),x=y=>{o(y)},b=y=>{s(y)};return l?c(ve,{className:e,children:c(ae,{children:g("div",{children:["Error loading plugins: ",l.message]})})}):u?c(ve,{className:e,children:c(ae,{children:c("div",{children:"Loading plugins..."})})}):g(ve,{className:e,children:[g(vr,{children:[c(ht,{healthStats:f}),c(ft,{extensionPoints:d,selectedExtensionId:r,onExtensionSelect:x,searchTerm:i,onSearchChange:b})]}),c(Er,{children:a?g(K,{children:[g(wr,{children:[c(Sr,{children:a.displayName||a.id}),a.description&&c(Cr,{children:a.description})]}),g(Pr,{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(kr,{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($r,{children:[c(_r,{children:"Extension Point Details"}),g(Mr,{children:[c(W,{children:"ID:"}),c(H,{children:a.id}),c(W,{children:"Source:"}),c(H,{children:a.source}),a.metadata.category&&g(K,{children:[c(W,{children:"Category:"}),c(H,{children:a.metadata.category})]}),a.metadata.owner&&g(K,{children:[c(W,{children:"Owner:"}),c(H,{children:a.metadata.owner})]}),a.metadata.since&&g(K,{children:[c(W,{children:"Since:"}),c(H,{children:a.metadata.since})]}),a.metadata.tags&&a.metadata.tags.length>0&&g(K,{children:[c(W,{children:"Tags:"}),c(H,{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."})]})})]})},Tr=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
|
+
`,Rr=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
|
+
`,Ar=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
|
+
`,Nr=h.h3`
|
|
376
|
+
margin: 0;
|
|
377
|
+
font-size: 18px;
|
|
378
|
+
font-weight: 600;
|
|
379
|
+
color: #24292f;
|
|
380
|
+
`,zr=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
|
+
`,Or=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
|
+
`,Fr=h.div`
|
|
423
|
+
font-size: 12px;
|
|
424
|
+
color: #656d76;
|
|
425
|
+
margin-left: 8px;
|
|
426
|
+
`,Lr=({keyboardShortcut:e="ctrl+shift+p",showToggleButton:t=!0,toggleButtonPosition:n="bottom-right",...r})=>{const[o,i]=v.useState(!1);v.useEffect(()=>{const f=u=>{const a=e.toLowerCase().split("+").map(y=>y.trim());let x=!0;a.includes("ctrl")&&!u.ctrlKey&&(x=!1),a.includes("shift")&&!u.shiftKey&&(x=!1),a.includes("alt")&&!u.altKey&&(x=!1),a.includes("meta")&&!u.metaKey&&(x=!1);const b=a.find(y=>!["ctrl","shift","alt","meta"].includes(y));b&&u.key.toLowerCase()!==b.toLowerCase()&&(x=!1),x&&(u.preventDefault(),i(y=>!y))};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[e]),v.useEffect(()=>{const f=u=>{u.key==="Escape"&&o&&i(!1)};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[o]);const s=()=>{i(f=>!f)},d=f=>{f.target===f.currentTarget&&i(!1)};return process.env.NODE_ENV!=="development"?null:g(K,{children:[t&&c(Or,{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(Tr,{visible:o,onClick:d,children:g(Rr,{children:[g(Ar,{children:[g("div",{style:{display:"flex",alignItems:"center"},children:[c(Nr,{children:"KOS Plugin Explorer"}),g(Fr,{children:[e," to toggle"]})]}),c(zr,{onClick:()=>i(!1),"aria-label":"Close",children:"×"})]}),c(mt,{...r})]})})]})};function Y(e){const{extensions:t,getExtensions:n}=Z();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 Dr(e,t){const{extensions:n}=Z(),r=Y(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 d=r;if(t.propertyMatches&&(d=d.filter(u=>Object.entries(t.propertyMatches).every(([l,a])=>{var x;return((x=u.data)==null?void 0:x[l])===a}))),t.preferredModule){const u=d.find(l=>l.sectionId===t.preferredModule);if(u)return u}const f=d.reduce((u,l)=>(u[l.id]=l,u),{});return F.resolveBestExtension(f)}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 Ir(e){return Y(e).length>0}function Vr(e){return Y(e).length}function jr(e,t){const n=Y(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 Br(e,t){const n=Y(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 f;for(const u of i){const l=u.id;if(!r.has(l)){o(a=>new Map(a).set(l,{module:null,loading:!0,error:null}));try{const a=((f=u.data)==null?void 0:f[s])||u[s]||`./${u.id}`,x=u.remote;if(!x)throw new Error(`No remote specified for extension ${l}`);const{loadRemoteModule:b}=await Promise.resolve().then(()=>require("./documentation-generator-DFaIDo0E.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(d=>{const f=r.get(d.id)||{module:null,loading:!0,error:null};return{extension:d,module:f.module,loading:f.loading,error:f.error}}),[i,r])}function Kr(e){return v.useMemo(()=>{if(!e.config.hasView)return null;const t=n=>{const{module:r,fallback:o,...i}=n;return v.createElement(ge,{extension:e.id,module:r,fallback:o,props:i})};return t.displayName=`${e.config.displayName||e.id}.Component`,t},[e])}function Yr(e){if(!e.config.hasView)return null;const t=n=>{const{module:r,fallback:o,...i}=n;return v.createElement(ge,{extension:e.id,module:r,fallback:o,props:i})};return t.displayName=`${e.config.displayName||e.id}.Component`,t}function gt(e){return v.useMemo(()=>{const n=F.getExtensionPointRegistry().getExtensionPoint(e);if(!n)return console.warn(`Extension point not found: ${e}`),null;if(!n.config.hasView)return null;const r=o=>{const{module:i,fallback:s,...d}=o;return v.createElement(ge,{extension:e,module:i,fallback:s,props:d})};return r.displayName=`${n.config.displayName||e}.Component`,r},[e])}function Wr(e,t){const n=Y(e),r=gt(e),o=(t==null?void 0:t.namespaceProperty)||"namespace",i=v.useMemo(()=>{const f=n.map(u=>{var l;return(l=u.data)==null?void 0:l[o]}).filter(Boolean);return Array.from(new Set(f))},[n,o]),{t:s,i18n:d}=Vt.useKosTranslation(i);return{extensions:n,t:s,i18n:d,Component:r,namespaces:i}}exports.DynamicComponent=ge;exports.ExtensionPointList=ft;exports.FloatingPluginExplorer=Lr;exports.KosPluginProvider=Vn;exports.PluginCard=pt;exports.PluginExplorer=mt;exports.PluginHealthDashboard=ht;exports.RemotesContext=Te;exports.createExtensionComponent=Yr;exports.useBest=Dr;exports.useDynamicComponent=dt;exports.useExtensionComponent=Kr;exports.useExtensionComponentById=gt;exports.useExtensionCount=Vr;exports.useExtensionI18n=Wr;exports.useExtensionPoint=er;exports.useExtensions=Y;exports.useFilteredExtensionPoints=ut;exports.useFilteredExtensions=jr;exports.useHasExtensions=Ir;exports.useKosPluginsContext=Z;exports.useModules=Br;exports.usePluginDiscovery=Re;
|
|
437
|
+
//# sourceMappingURL=index.cjs.map
|