@perses-dev/scatter-chart-plugin 0.12.0-beta.1 → 0.12.0-beta.3
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/__mf/js/{ScatterChart.7e62c566.js → ScatterChart.30963382.js} +5 -5
- package/__mf/js/async/110.1484e8db.js +2 -0
- package/__mf/js/async/{121.2e373e8d.js → 121.3b56360a.js} +2 -2
- package/__mf/js/async/165.43681694.js +111 -0
- package/__mf/js/async/{181.415c41fe.js → 181.d890025e.js} +2 -2
- package/__mf/js/async/{192.03f702c0.js → 192.bd7a7747.js} +1 -1
- package/__mf/js/async/{2.abb7a871.js → 2.523a1654.js} +1 -1
- package/__mf/js/async/{235.21e9a290.js → 235.3f914fab.js} +1 -1
- package/__mf/js/async/{274.87a43936.js → 274.bfe18c95.js} +2 -2
- package/__mf/js/async/356.efc2b2b0.js +1 -0
- package/__mf/js/async/{392.f9d54ebc.js → 392.75ebbebd.js} +2 -2
- package/__mf/js/async/{470.b9c90275.js → 470.eb2c1719.js} +2 -2
- package/__mf/js/async/496.c6632e68.js +1 -0
- package/__mf/js/async/{562.8d340847.js → 562.d40d0ab9.js} +2 -2
- package/__mf/js/async/587.e10b424d.js +1 -0
- package/__mf/js/async/588.4502a26d.js +1 -0
- package/__mf/js/async/{616.b12397c8.js → 616.361fb2c8.js} +1 -1
- package/__mf/js/async/659.75be09f2.js +1 -0
- package/__mf/js/async/71.ff6cfa17.js +1 -0
- package/__mf/js/async/77.283f9bcb.js +1 -0
- package/__mf/js/async/788.02feb484.js +43 -0
- package/__mf/js/async/868.6aee99e2.js +53 -0
- package/__mf/js/async/873.f3a1894e.js +1 -0
- package/__mf/js/async/{941.812e77df.js → 941.669501ec.js} +2 -2
- package/__mf/js/async/968.02d19857.js +1 -0
- package/__mf/js/async/978.a512e659.js +1 -0
- package/__mf/js/async/__federation_expose_ScatterChart.57869dc7.js +2 -0
- package/__mf/js/async/{lib-router.04ddf9d3.js → lib-router.8d23dc0d.js} +2 -2
- package/__mf/js/{main.1c633f16.js → main.6f0f1d19.js} +5 -5
- package/lib/mock-trace-data.d.ts.map +1 -1
- package/lib/utils/timezone-formatter.d.ts.map +1 -1
- package/mf-manifest.json +73 -29
- package/mf-stats.json +81 -29
- package/package.json +5 -5
- package/__mf/js/async/354.2a97f541.js +0 -4
- package/__mf/js/async/356.3f77382a.js +0 -1
- package/__mf/js/async/437.947bdca4.js +0 -111
- package/__mf/js/async/549.45165a00.js +0 -2
- package/__mf/js/async/587.d0349f81.js +0 -1
- package/__mf/js/async/663.040b3cc7.js +0 -1
- package/__mf/js/async/85.cd306fc1.js +0 -43
- package/__mf/js/async/968.9734bda6.js +0 -1
- package/__mf/js/async/__federation_expose_ScatterChart.300d82d0.js +0 -2
- /package/__mf/css/async/{85.85c2cbf6.css → 788.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{549.45165a00.js.LICENSE.txt → 110.1484e8db.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{121.2e373e8d.js.LICENSE.txt → 121.3b56360a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{437.947bdca4.js.LICENSE.txt → 165.43681694.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{181.415c41fe.js.LICENSE.txt → 181.d890025e.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{274.87a43936.js.LICENSE.txt → 274.bfe18c95.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.f9d54ebc.js.LICENSE.txt → 392.75ebbebd.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{470.b9c90275.js.LICENSE.txt → 470.eb2c1719.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{562.8d340847.js.LICENSE.txt → 562.d40d0ab9.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{85.cd306fc1.js.LICENSE.txt → 788.02feb484.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{354.2a97f541.js.LICENSE.txt → 868.6aee99e2.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.812e77df.js.LICENSE.txt → 941.669501ec.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_ScatterChart.300d82d0.js.LICENSE.txt → __federation_expose_ScatterChart.57869dc7.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.04ddf9d3.js.LICENSE.txt → lib-router.8d23dc0d.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_ScatterChart_0_12_0_beta_1=self.chunk_ScatterChart_0_12_0_beta_1||[]).push([["968"],{75150(e,t,s){s.r(t),s.d(t,{toNestErrors:()=>l,validateFieldsNatively:()=>a});var r=s(79215);let i=(e,t,s)=>{if(e&&"reportValidity"in e){let i=(0,r.get)(s,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},a=(e,t)=>{for(let s in t.fields){let r=t.fields[s];r&&r.ref&&"reportValidity"in r.ref?i(r.ref,s,e):r.refs&&r.refs.forEach(t=>i(t,s,e))}},l=(e,t)=>{t.shouldUseNativeValidation&&a(e,t);let s={};for(let i in e){let a=(0,r.get)(t.fields,i),l=Object.assign(e[i]||{},{ref:a&&a.ref});if(f(t.names||Object.keys(e),i)){let e=Object.assign({},(0,r.get)(s,i));(0,r.set)(e,"root",l),(0,r.set)(s,i,e)}else(0,r.set)(s,i,l)}return s},f=(e,t)=>e.some(e=>e.startsWith(t+"."))}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see __federation_expose_ScatterChart.300d82d0.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_ScatterChart_0_12_0_beta_1=self.chunk_ScatterChart_0_12_0_beta_1||[]).push([["211"],{2192(e,t,r){var a=r(70451),n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var a,o={},u=null,m=null;for(a in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(m=t.ref),t)i.call(t,a)&&!l.hasOwnProperty(a)&&(o[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===o[a]&&(o[a]=t[a]);return{$$typeof:n,type:e,key:u,ref:m,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},62540(e,t,r){e.exports=r(2192)},24310(e,t,r){r.r(t),r.d(t,{ScatterChart:()=>v});var a=r(62540),n=r(56875),o=r(70451),i=r(9222),s=r(32741),l=r(90652),u=r(9940),m=r(50944),c=r(59738),d=r(72106),f=r(55875),h=r(74653),p=r(37573);(0,h.Y)([l.a,u.a,m.a,s.a,c.a,d.a,f.a,p.a]);let y={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3};function b(e){let{width:t,height:r,options:s,link:l}=e,u=(0,n.useChartsTheme)(),{absoluteTimeRange:m}=(0,i.useTimeRange)(),{timeZone:c,dateFormatOptionsWithUserTimeZone:d}=(0,n.useTimeZone)(),f=(0,o.useMemo)(()=>{let e=d(y);return new Intl.DateTimeFormat(void 0,e).format},[d]),h=(0,i.useAllVariableValues)(),{navigate:p}=(0,i.useRouterContext)(),b=m.end.valueOf()-m.start.valueOf(),_=(0,o.useCallback)(()=>function(e){let t=new Date(Number(e));return b>15768e7?(0,n.formatWithTimeZone)(t,"yyyy",c):b>15552e6?(0,n.formatWithTimeZone)(t,"MMM yyyy",c):b>864e6?(0,n.formatWithTimeZone)(t,"dd.MM",c):b>1728e5?(0,n.formatWithTimeZone)(t,"dd.MM HH:mm",c):(0,n.formatWithTimeZone)(t,"HH:mm",c)},[b,c]),v={dataset:s.dataset,series:s.series,dataZoom:s.dataZoom,grid:{top:45,bottom:20,left:30,right:20},xAxis:{type:"time",min:m.start,max:m.end,axisLabel:{hideOverlap:!0,formatter:_()}},yAxis:{scale:!0,type:"value",name:"Duration",splitNumber:4,axisLabel:{formatter:e=>(0,n.formatValue)(e,{unit:"milliseconds"})}},animation:!1,tooltip:{padding:5,borderWidth:1,trigger:"axis",axisPointer:{type:"cross"},formatter:function(e){let t=e[0].data;return`<b>Service name</b>: ${t.rootServiceName}<br/><b>Span name</b>: ${t.rootTraceName}<br/><b>Time</b>: ${f(t.startTime)}<br/><b>Duration</b>: ${(0,n.formatValue)(t.durationMs,{unit:"milliseconds"})}<br/><b>Span count</b>: ${t.spanCount} (${t.errorCount} errors)<br/>`}},legend:{show:!0,type:"scroll",orient:"horizontal",bottom:0}},T=(0,o.useMemo)(()=>{let e={};return p&&l&&(e.click=e=>{let t=e.data.linkVariables;p((0,i.replaceVariablesInString)(l,h,t))}),e},[l,p,h]);return(0,a.jsx)(n.EChart,{style:{width:t,height:r},option:v,theme:u.echartsTheme,onEvents:T})}let _=[6,20],v={PanelComponent:function(e){let{spec:t,contentDimensions:r,queryResults:i}=e,s=(0,n.useChartsTheme)().thresholds.defaultColor||"blue",l=t.sizeRange||_,{dataset:u,minSpanCount:m,maxSpanCount:c}=(0,o.useMemo)(()=>{let e,t,r=[];for(let a of i){if(void 0===a.data.searchResult)continue;let n=a.data.searchResult.map(r=>{var n;let o=0,i=0;for(let e of Object.values(r.serviceStats))o+=e.spanCount,i+=e.errorCount??0;(void 0===e||o<e)&&(e=o),(void 0===t||o>t)&&(t=o);let s=a.definition.spec.plugin.spec;return{...r,linkVariables:{datasourceName:(null==s||null==(n=s.datasource)?void 0:n.name)??"",traceId:r.traceId},name:`${r.rootServiceName}: ${r.rootTraceName}`,startTime:new Date(r.startTimeUnixMs),spanCount:o,errorCount:i}});r.push({source:n})}return{dataset:r,minSpanCount:e??0,maxSpanCount:t??0}},[i]),d=(0,o.useMemo)(()=>{let e={type:"scatter",encode:{x:"startTime",y:"durationMs"},symbolSize:function(e){return function(e,t,r){let[a,n]=r,[o,i]=t;return i-o==0?n:a+(e-o)/(i-o)*(n-a)}(e.spanCount,[m,c],l)},itemStyle:{color:function(e){return e.data.errorCount>0?"red":s}}},t=[];for(let r=0;r<u.length;r++)t.push({...e,datasetIndex:r});return t},[u,s,m,c,l]);return i.some(e=>{var t;return((null==(t=e.data)?void 0:t.searchResult)??[]).length>0})?void 0===r?null:(0,a.jsx)("div",{"data-testid":"ScatterChartPanel_ScatterPlot",children:(0,a.jsx)(b,{width:r.width,height:r.height,options:{dataset:u,series:d},link:t.link})}):(0,a.jsx)(n.NoDataOverlay,{resource:"traces"})},supportedQueryTypes:["TraceQuery"],createInitialOptions:function(){return{}}}}}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/__mf/js/async/{lib-router.04ddf9d3.js.LICENSE.txt → lib-router.8d23dc0d.js.LICENSE.txt}
RENAMED
|
File without changes
|