@perses-dev/stat-chart-plugin 0.8.0 → 0.8.1
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/{435.ac85e468.js → 435.035c5571.js} +1 -1
- package/__mf/js/{StatChart.8f98fa61.js → StatChart.aeb3025c.js} +3 -3
- package/__mf/js/async/{503.1f671bce.js → 503.19801a79.js} +1 -1
- package/__mf/js/async/{__federation_expose_StatChart.e84c06b6.js → __federation_expose_StatChart.264f6dad.js} +1 -1
- package/__mf/js/{main.b00958d4.js → main.1f1571cc.js} +1 -1
- package/lib/cjs/utils/get-color.js +2 -2
- package/lib/utils/get-color.js +2 -2
- package/lib/utils/get-color.js.map +1 -1
- package/mf-manifest.json +6 -6
- package/mf-stats.json +6 -6
- package/package.json +9 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkStatChart=self.webpackChunkStatChart||[]).push([["29"],{14046:function(e,t,n){n.d(t,{K2:()=>l,c7:()=>r,gO:()=>i});let l="last",r={first:function(e){return a(e,"first")},last:function(e){return a(e,"last")},"first-number":function(e){return a(e,"first-number")},"last-number":function(e){return a(e,"last-number")},mean:function(e){return a(e,"mean")},sum:function(e){return a(e,"sum")},min:function(e){return a(e,"min")},max:function(e){return a(e,"max")}},i={first:{label:"First",description:"First value"},last:{label:"Last",description:"Last value"},"first-number":{label:"First *",description:"First numeric value"},"last-number":{label:"Last *",description:"Last numeric value"},mean:{label:"Avg",description:"Average value excluding nulls"},sum:{label:"Sum",description:"The sum of all values"},min:{label:"Min",description:"Minimum value"},max:{label:"Max",description:"Maximum value"}};function a(e,t){return function(e,t){let n=t.reduce((e,t)=>(e[t]=void 0,e),{}),l=0,r=0;return e.forEach((t,i)=>{let a=t[1];0===i&&"first"in n&&(n.first=a),i===e.length-1&&"last"in n&&(n.last=a),"number"==typeof a&&(l+=1,r+=a,"first-number"in n&&void 0===n["first-number"]&&(n["first-number"]=a),"last-number"in n&&(n["last-number"]=a),"min"in n&&("number"!=typeof n.min?n.min=a:n.min=Math.min(n.min,a)),"max"in n&&("number"!=typeof n.max?n.max=a:n.max=Math.max(n.max,a)))}),l>0&&"sum"in n&&(n.sum=r),l>0&&"mean"in n&&(n.mean=r/l),n}(e,[t])[t]}},61033:function(e,t,n){let l;n.r(t),n.d(t,{StatChart:()=>I});var r=n(24246),i=n(72629),a=n(87895),o=n(58891),u=n(75586),s=n(15409),c=n.n(s);let d={unit:"percent-decimal"};var h=n(25283),m=n(52054),f=n(54538);function p(e){if(!e)throw Error("Input string cannot be empty");if(!e?.startsWith("/"))return RegExp(`^${e}$`);let t=e.match(/^\/(.+)\/([gimy]*)$/);if(!t)throw Error(`Invalid regular expression format: ${e}`);let[,n="",l=""]=t;try{return new RegExp(n,l)}catch(e){throw Error(`Failed to create RegExp ${e}`)}}function v(e,t=[]){if(!t.length)return{value:e};let n={value:e};return t.forEach(t=>{switch(t.kind){case"Value":{let l=t.spec;String(l.value)===String(e)&&(n.value=l.result.value||n.value,n.color=l.result.color);break}case"Range":{let l=t.spec;if(void 0===l.from&&void 0===l.to)break;let r=void 0!==l.from?l.from:-1/0,i=void 0!==l.to?l.to:1/0;e>=r&&e<=i&&(n.value=l.result.value||n.value,n.color=l.result.color);break}case"Regex":{let l=t.spec,r=e.toString();if(!l.pattern)break;let i=p(l.pattern);r.match(i)&&null!==l.result.value&&(n.value=r.replace(i,l.result.value.toString()||"")||n.value,n.color=l.result.color);break}case"Misc":{let l=t.spec;(function(e,t){switch(e){case"empty":return""===t;case"null":return null==t;case"NaN":return Number.isNaN(t);case"true":return!0===t;case"false":return!1===t;default:return!1}})(l.value,e)&&(n.value=l.result.value||n.value,n.color=l.result.color)}}}),n}var g=n(14046);let x=(e,t)=>(void 0===g.c7[e]&&console.warn(`Invalid StatChart panel calculation ${e}, fallback to ${g.K2}`),(g.c7[e]??g.c7[g.K2])(t.values));var b=n(36372),w=n(12709),y=n(36232),S=n(44811),C=n(65201),j=n(99635),k=n(23709),E=n(67745),M=n(50378);function $(e){let{text:t,fontWeight:n,width:r,height:a,lineHeight:o,maxSize:u,fontSizeOverride:s}=e,c=function(){if(!l&&null===(l=document.createElement("canvas").getContext("2d")))throw Error("Canvas context is null.");return l}(),{echartsTheme:d}=(0,i.useChartsTheme)();if(void 0!==s)return Number(s);let h=d.textStyle,m=Number(null==h?void 0:h.fontSize)??12,f=(null==h?void 0:h.fontFamily)??"Lato",p=`${n} ${m}px ${f}`;c.font=p;let v=Math.min(a/o,r/c.measureText(t).width*m);return u?Math.min(v,u):v}var N=n(74664);let z=(e,t)=>null===e?"null":"number"==typeof e?(0,N.Bw)(e,t):void 0===e?"":e;(0,y.D)([S.N,C.N,j.N,k.N,E.N,M.N]);let F=e=>{var t,n;let{width:l,height:a,data:o,sparkline:u,showSeriesName:s,format:d,valueFontSize:h}=e,m=(0,i.useChartsTheme)(),p=o.color,v=z(o.calculatedValue,d),g=m.container.padding.default,x=$({text:(null==o?void 0:null===(t=o.seriesData)||void 0===t?void 0:t.name)??"",fontWeight:400,width:l,height:.125*a,lineHeight:1.2,maxSize:30}),w=s?1.2*x+g:0,y=l-2*g,S=a-w,C=$({text:v,fontSizeOverride:h,fontWeight:700,width:u?y:.5*y,height:u?.25*S:.9*S,lineHeight:1.2}),j=1.2*C;x=Math.min(.7*C,x);let k=(0,f.useMemo)(()=>{if(void 0===o.seriesData)return m.noDataOption;let e=o.seriesData,t=[];if(void 0!==u){let n={type:"line",name:e.name,data:e.values,zlevel:1,symbol:"none",animation:!1,silent:!0},l=c()(n,u);t.push(l)}return{title:{show:!1},grid:{show:!1,top:"35%",right:0,bottom:0,left:0,containLabel:!1},xAxis:{type:"time",show:!1,boundaryGap:!1},yAxis:{type:"value",show:!1,min:e=>e.min>=0&&e.min<=1?0:e.min},tooltip:{show:!1},series:t}},[o,m,u]),E=u?"auto":"center";return(0,r.jsxs)(b.Z,{sx:{height:"100%",width:"100%",display:"flex",flexDirection:"column",justifyContent:E,alignItems:E},children:[s&&(0,r.jsx)(O,{padding:g,fontSize:x,children:null===(n=o.seriesData)||void 0===n?void 0:n.name}),(0,r.jsx)(D,{variant:"h3",color:p,fontSize:C,padding:g,children:v}),void 0!==u&&(0,r.jsx)(i.EChart,{sx:{width:"100%"},style:{height:Math.floor(a-w-j)},option:k,theme:m.echartsTheme,renderer:"svg"})]})},O=(0,w.ZP)(m.Z,{shouldForwardProp:e=>"padding"!==e&&"fontSize"!==e})(e=>{let{theme:t,padding:n,fontSize:l}=e;return{color:t.palette.text.secondary,padding:`${n}px`,fontSize:`${l}px`,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),D=(0,w.ZP)(m.Z,{shouldForwardProp:e=>"color"!==e&&"padding"!==e&&"fontSize"!==e&&"sparkline"!==e})(e=>{let{theme:t,color:n,padding:l,fontSize:r,sparkline:i}=e;return{color:n??t.palette.text.primary,fontSize:`${r}px`,padding:i?`${l}px ${l}px 0 ${l}px`:` 0 ${l}px`,whiteSpace:"nowrap",lineHeight:1.2}}),L=(e,t,n)=>(0,f.useMemo)(()=>{let{calculation:l,mappings:r,metricLabel:i}=t,a=[];for(let o of e)for(let e of o.data.series){let o=x(l,e),u=T(o,r,Z(i,e.labels)),s=function(e,t,n){let{mappings:l,thresholds:r}=t??{},i=(null==r?void 0:r.defaultColor)??e.thresholds.defaultColor;if(
|
|
1
|
+
"use strict";(self.webpackChunkStatChart=self.webpackChunkStatChart||[]).push([["29"],{14046:function(e,t,n){n.d(t,{K2:()=>l,c7:()=>r,gO:()=>i});let l="last",r={first:function(e){return a(e,"first")},last:function(e){return a(e,"last")},"first-number":function(e){return a(e,"first-number")},"last-number":function(e){return a(e,"last-number")},mean:function(e){return a(e,"mean")},sum:function(e){return a(e,"sum")},min:function(e){return a(e,"min")},max:function(e){return a(e,"max")}},i={first:{label:"First",description:"First value"},last:{label:"Last",description:"Last value"},"first-number":{label:"First *",description:"First numeric value"},"last-number":{label:"Last *",description:"Last numeric value"},mean:{label:"Avg",description:"Average value excluding nulls"},sum:{label:"Sum",description:"The sum of all values"},min:{label:"Min",description:"Minimum value"},max:{label:"Max",description:"Maximum value"}};function a(e,t){return function(e,t){let n=t.reduce((e,t)=>(e[t]=void 0,e),{}),l=0,r=0;return e.forEach((t,i)=>{let a=t[1];0===i&&"first"in n&&(n.first=a),i===e.length-1&&"last"in n&&(n.last=a),"number"==typeof a&&(l+=1,r+=a,"first-number"in n&&void 0===n["first-number"]&&(n["first-number"]=a),"last-number"in n&&(n["last-number"]=a),"min"in n&&("number"!=typeof n.min?n.min=a:n.min=Math.min(n.min,a)),"max"in n&&("number"!=typeof n.max?n.max=a:n.max=Math.max(n.max,a)))}),l>0&&"sum"in n&&(n.sum=r),l>0&&"mean"in n&&(n.mean=r/l),n}(e,[t])[t]}},61033:function(e,t,n){let l;n.r(t),n.d(t,{StatChart:()=>I});var r=n(24246),i=n(72629),a=n(87895),o=n(58891),u=n(75586),s=n(15409),c=n.n(s);let d={unit:"percent-decimal"};var h=n(25283),m=n(52054),f=n(54538);function p(e){if(!e)throw Error("Input string cannot be empty");if(!e?.startsWith("/"))return RegExp(`^${e}$`);let t=e.match(/^\/(.+)\/([gimy]*)$/);if(!t)throw Error(`Invalid regular expression format: ${e}`);let[,n="",l=""]=t;try{return new RegExp(n,l)}catch(e){throw Error(`Failed to create RegExp ${e}`)}}function v(e,t=[]){if(!t.length)return{value:e};let n={value:e};return t.forEach(t=>{switch(t.kind){case"Value":{let l=t.spec;String(l.value)===String(e)&&(n.value=l.result.value||n.value,n.color=l.result.color);break}case"Range":{let l=t.spec;if(void 0===l.from&&void 0===l.to)break;let r=void 0!==l.from?l.from:-1/0,i=void 0!==l.to?l.to:1/0;e>=r&&e<=i&&(n.value=l.result.value||n.value,n.color=l.result.color);break}case"Regex":{let l=t.spec,r=e.toString();if(!l.pattern)break;let i=p(l.pattern);r.match(i)&&null!==l.result.value&&(n.value=r.replace(i,l.result.value.toString()||"")||n.value,n.color=l.result.color);break}case"Misc":{let l=t.spec;(function(e,t){switch(e){case"empty":return""===t;case"null":return null==t;case"NaN":return Number.isNaN(t);case"true":return!0===t;case"false":return!1===t;default:return!1}})(l.value,e)&&(n.value=l.result.value||n.value,n.color=l.result.color)}}}),n}var g=n(14046);let x=(e,t)=>(void 0===g.c7[e]&&console.warn(`Invalid StatChart panel calculation ${e}, fallback to ${g.K2}`),(g.c7[e]??g.c7[g.K2])(t.values));var b=n(36372),w=n(12709),y=n(36232),S=n(44811),C=n(65201),j=n(99635),k=n(23709),E=n(67745),M=n(50378);function $(e){let{text:t,fontWeight:n,width:r,height:a,lineHeight:o,maxSize:u,fontSizeOverride:s}=e,c=function(){if(!l&&null===(l=document.createElement("canvas").getContext("2d")))throw Error("Canvas context is null.");return l}(),{echartsTheme:d}=(0,i.useChartsTheme)();if(void 0!==s)return Number(s);let h=d.textStyle,m=Number(null==h?void 0:h.fontSize)??12,f=(null==h?void 0:h.fontFamily)??"Lato",p=`${n} ${m}px ${f}`;c.font=p;let v=Math.min(a/o,r/c.measureText(t).width*m);return u?Math.min(v,u):v}var N=n(74664);let z=(e,t)=>null===e?"null":"number"==typeof e?(0,N.Bw)(e,t):void 0===e?"":e;(0,y.D)([S.N,C.N,j.N,k.N,E.N,M.N]);let F=e=>{var t,n;let{width:l,height:a,data:o,sparkline:u,showSeriesName:s,format:d,valueFontSize:h}=e,m=(0,i.useChartsTheme)(),p=o.color,v=z(o.calculatedValue,d),g=m.container.padding.default,x=$({text:(null==o?void 0:null===(t=o.seriesData)||void 0===t?void 0:t.name)??"",fontWeight:400,width:l,height:.125*a,lineHeight:1.2,maxSize:30}),w=s?1.2*x+g:0,y=l-2*g,S=a-w,C=$({text:v,fontSizeOverride:h,fontWeight:700,width:u?y:.5*y,height:u?.25*S:.9*S,lineHeight:1.2}),j=1.2*C;x=Math.min(.7*C,x);let k=(0,f.useMemo)(()=>{if(void 0===o.seriesData)return m.noDataOption;let e=o.seriesData,t=[];if(void 0!==u){let n={type:"line",name:e.name,data:e.values,zlevel:1,symbol:"none",animation:!1,silent:!0},l=c()(n,u);t.push(l)}return{title:{show:!1},grid:{show:!1,top:"35%",right:0,bottom:0,left:0,containLabel:!1},xAxis:{type:"time",show:!1,boundaryGap:!1},yAxis:{type:"value",show:!1,min:e=>e.min>=0&&e.min<=1?0:e.min},tooltip:{show:!1},series:t}},[o,m,u]),E=u?"auto":"center";return(0,r.jsxs)(b.Z,{sx:{height:"100%",width:"100%",display:"flex",flexDirection:"column",justifyContent:E,alignItems:E},children:[s&&(0,r.jsx)(O,{padding:g,fontSize:x,children:null===(n=o.seriesData)||void 0===n?void 0:n.name}),(0,r.jsx)(D,{variant:"h3",color:p,fontSize:C,padding:g,children:v}),void 0!==u&&(0,r.jsx)(i.EChart,{sx:{width:"100%"},style:{height:Math.floor(a-w-j)},option:k,theme:m.echartsTheme,renderer:"svg"})]})},O=(0,w.ZP)(m.Z,{shouldForwardProp:e=>"padding"!==e&&"fontSize"!==e})(e=>{let{theme:t,padding:n,fontSize:l}=e;return{color:t.palette.text.secondary,padding:`${n}px`,fontSize:`${l}px`,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),D=(0,w.ZP)(m.Z,{shouldForwardProp:e=>"color"!==e&&"padding"!==e&&"fontSize"!==e&&"sparkline"!==e})(e=>{let{theme:t,color:n,padding:l,fontSize:r,sparkline:i}=e;return{color:n??t.palette.text.primary,fontSize:`${r}px`,padding:i?`${l}px ${l}px 0 ${l}px`:` 0 ${l}px`,whiteSpace:"nowrap",lineHeight:1.2}}),L=(e,t,n)=>(0,f.useMemo)(()=>{let{calculation:l,mappings:r,metricLabel:i}=t,a=[];for(let o of e)for(let e of o.data.series){let o=x(l,e),u=T(o,r,Z(i,e.labels)),s=function(e,t,n){let{mappings:l,thresholds:r}=t??{},i=(null==r?void 0:r.defaultColor)??e.thresholds.defaultColor;if(null==n||""===n||!(null==r?void 0:r.steps)&&!l)return i;if(null==l?void 0:l.length){let e=function(e,t){if((null==t?void 0:t.length)&&null!=e){let{color:n}=v(e,t);return n||null}return null}(n,l);if(e)return e}if(r){let t=function(e,t,n,l){if((null==t?void 0:t.steps)&&"number"==typeof e){let r=t.steps.map((t,r)=>e>=t.value?t.color??n.thresholds.palette[r]??l:null).filter(e=>null!==e);return r[r.length-1]??null}return null}(n,r,e,i);if(t)return t}return i}(n,t,o),c={name:e.formattedName??"",values:e.values};a.push({calculatedValue:u,seriesData:c,color:s})}return a},[e,t,n]),T=(e,t,n)=>n||((null==t?void 0:t.length)&&null!=e?v(e,t).value:e),Z=(e,t)=>{if(t&&e){for(let[n,l]of Object.entries(t))if(p(e).test(n))return l}},I={PanelComponent:e=>{let{spec:t,contentDimensions:n,queryResults:l}=e,{format:a,sparkline:o,valueFontSize:u}=t,s=(0,i.useChartsTheme)(),c=L(l,t,s),d=c.length>1;if(void 0===n)return null;let f=2*(c.length-1),p=(n.width-f)/c.length;d&&p<100&&(p=100);let v=s.noDataOption.title.textStyle;return(0,r.jsx)(h.Z,{height:n.height,width:n.width,spacing:"2px",direction:"row",justifyContent:d?"left":"center",alignItems:"center",sx:{overflowX:d?"scroll":"auto"},children:c.length?c.map((e,t)=>{let l=function(e,t,n){if(void 0!==n)return{lineStyle:{width:n.width??e.sparkline.width,color:t,opacity:1},areaStyle:{color:t,opacity:.4}}}(s,e.color,o);return(0,r.jsx)(F,{width:p,height:n.height,data:e,format:a,sparkline:l,showSeriesName:d,valueFontSize:u},t)}):(0,r.jsx)(m.Z,{sx:{...v},children:"No data"})})},supportedQueryTypes:["TimeSeriesQuery"],panelOptionsEditorComponents:[{label:"Settings",content:function(e){let{onChange:t,value:n}=e,l=c()({},d,n.format);return(0,r.jsxs)(i.OptionsEditorGrid,{children:[(0,r.jsx)(i.OptionsEditorColumn,{children:(0,r.jsxs)(i.OptionsEditorGroup,{title:"Misc",children:[(0,r.jsx)(i.OptionsEditorControl,{label:"Sparkline",control:(0,r.jsx)(a.Z,{checked:!!n.sparkline,onChange:(e,l)=>{t((0,u.Uy)(n,e=>{e.sparkline=l?{}:void 0}))}})}),(0,r.jsx)(i.FormatControls,{value:l,onChange:e=>{t((0,u.Uy)(n,t=>{t.format=e}))}}),(0,r.jsx)(o.CalculationSelector,{value:n.calculation,onChange:e=>{t((0,u.Uy)(n,t=>{t.calculation=e}))}}),(0,r.jsx)(o.MetricLabelInput,{value:n.metricLabel,onChange:e=>{t((0,u.Uy)(n,t=>{t.metricLabel=e}))}}),(0,r.jsx)(i.FontSizeSelector,{value:n.valueFontSize,onChange:e=>{t((0,u.Uy)(n,t=>{t.valueFontSize=e}))}})]})}),(0,r.jsx)(i.OptionsEditorColumn,{children:(0,r.jsx)(i.ThresholdsEditor,{disablePercentMode:!0,thresholds:n.thresholds,onChange:e=>{t((0,u.Uy)(n,t=>{t.thresholds=e}))}})})]})}},{label:"Value mapping",content:e=>{let{onChange:t,value:n}=e;return(0,r.jsx)(i.ValueMappingsEditor,{mappings:n.mappings??[],onChange:function(e){t({...n,mappings:e})}})}}],createInitialOptions:function(){return{calculation:"last-number",format:{unit:"decimal"},sparkline:{}}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e={5311:function(e,r,t){Promise.all([t.e("677"),t.e("179"),t.e("620")]).then(t.bind(t,29161))}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var a=r[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}t.m=e,t.c=r,t.federation||(t.federation={chunkMatcher:function(e){return!/^(1(57|61|79)|242|263|494|677|759|946)$/.test(e)}}),t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,n)=>(t.f[n](e,r),r),[])),t.u=e=>"__mf/js/async/"+("118"===e?"lib-router":e)+"."+({118:"3a3f0205",173:"b6c742e7",214:"60d550e8",224:"978cad14",238:"6c65e7fc",292:"4573cfd2",331:"b9e6d0dd",349:"f7381131",37:"a33e38bf",503:"
|
|
1
|
+
(()=>{var e={5311:function(e,r,t){Promise.all([t.e("677"),t.e("179"),t.e("620")]).then(t.bind(t,29161))}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var a=r[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}t.m=e,t.c=r,t.federation||(t.federation={chunkMatcher:function(e){return!/^(1(57|61|79)|242|263|494|677|759|946)$/.test(e)}}),t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,n)=>(t.f[n](e,r),r),[])),t.u=e=>"__mf/js/async/"+("118"===e?"lib-router":e)+"."+({118:"3a3f0205",173:"b6c742e7",214:"60d550e8",224:"978cad14",238:"6c65e7fc",292:"4573cfd2",331:"b9e6d0dd",349:"f7381131",37:"a33e38bf",503:"19801a79",530:"2c488ba4",620:"415051b8",651:"4eb924e1",656:"dbf72cfa",694:"5088b7d2",738:"5905ca00",740:"6ca05ea5",75:"fb6da1e8",770:"0eef8b15",845:"e4f98502",90:"defedb11",954:"a9e2abee",960:"b6b50cb1",964:"f3efac0a",981:"0942fcbb"})[e]+".js",t.miniCssF=e=>"__mf/css/async/"+e+"."+({263:"1ed8bb01",759:"1ed8bb01"})[e]+".css",t.h=()=>"72598887c0d6f62d",(()=>{t.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={},r="StatChart:";t.l=function(n,o,a,i){if(e[n]){e[n].push(o);return}if(void 0!==a)for(var s,l,d=document.getElementsByTagName("script"),c=0;c<d.length;c++){var f=d[c];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==r+a){s=f;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,t.nc&&s.setAttribute("nonce",t.nc),s.setAttribute("data-webpack",r+a),s.src=n),e[n]=[o];var u=function(r,t){s.onerror=s.onload=null,clearTimeout(h);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(function(e){return e(t)}),r)return r(t)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),l&&document.head.appendChild(s)}})(),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),t.nc=void 0,(()=>{var e=[];t.O=(r,n,o,a)=>{if(n){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[n,o,a];return}for(var s=1/0,i=0;i<e.length;i++){for(var[n,o,a]=e[i],l=!0,d=0;d<n.length;d++)(!1&a||s>=a)&&Object.keys(t.O).every(e=>t.O[e](n[d]))?n.splice(d--,1):(l=!1,a<s&&(s=a));if(l){e.splice(i--,1);var c=o();void 0!==c&&(r=c)}}return r}})(),t.p="/plugins/StatChart/",t.rv=()=>"1.2.8",t.j="909",t.S={},t.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@emotion/react",version:"11.14.0",factory:()=>Promise.all([t.e("960"),t.e("677"),t.e("651")]).then(()=>()=>t(96434)),eager:0,singleton:1,requiredVersion:"^11.11.3"},{name:"@emotion/styled",version:"11.14.0",factory:()=>Promise.all([t.e("677"),t.e("157"),t.e("694")]).then(()=>()=>t(51958)),eager:0,singleton:1},{name:"@hookform/resolvers",version:"3.10.0",factory:()=>Promise.all([t.e("292"),t.e("677"),t.e("214")]).then(()=>()=>t(81228)),eager:0,singleton:1},{name:"@perses-dev/components",version:"0.51.0-rc.1",factory:()=>Promise.all([t.e("238"),t.e("224"),t.e("292"),t.e("954"),t.e("37"),t.e("349"),t.e("530"),t.e("90"),t.e("331"),t.e("677"),t.e("179"),t.e("161"),t.e("157"),t.e("946"),t.e("759")]).then(()=>()=>t(25451)),eager:0,singleton:1},{name:"@perses-dev/plugin-system",version:"0.51.0-rc.1",factory:()=>Promise.all([t.e("118"),t.e("292"),t.e("37"),t.e("90"),t.e("845"),t.e("677"),t.e("179"),t.e("161"),t.e("157"),t.e("946"),t.e("242"),t.e("656")]).then(()=>()=>t(3090)),eager:0,singleton:1},{name:"date-fns",version:"4.1.0",factory:()=>Promise.all([t.e("238"),t.e("224"),t.e("75")]).then(()=>()=>t(99657)),eager:0,singleton:1},{name:"echarts",version:"5.5.0",factory:()=>Promise.all([t.e("954"),t.e("349"),t.e("503")]).then(()=>()=>t(28919)),eager:0,singleton:1},{name:"lodash",version:"4.17.21",factory:()=>t.e("981").then(()=>()=>t(98784)),eager:0,singleton:1},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([t.e("173"),t.e("677")]).then(()=>()=>t(31542)),eager:0,singleton:1,requiredVersion:"18.2.0"},{name:"react",version:"18.3.1",factory:()=>t.e("964").then(()=>()=>t(27378)),eager:0,singleton:1,requiredVersion:"18.2.0"}]},uniqueName:"StatChart"},t.I=t.I||function(){throw Error("should have __webpack_require__.I")},t.consumesLoadingData={chunkMapping:{161:["4665","20461"],494:["57871"],946:["45913"],179:["6085"],242:["20370","74614","30156","57751","55922","71141","84275"],157:["72116"],677:["54538"]},moduleIdToConsumeDataMapping:{45913:{shareScope:"default",shareKey:"@emotion/styled",import:"@emotion/styled",requiredVersion:"^11.3.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("770").then(()=>()=>t(51958))},57751:{shareScope:"default",shareKey:"@perses-dev/plugin-system",import:"@perses-dev/plugin-system",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>t(3090)},71141:{shareScope:"default",shareKey:"@perses-dev/plugin-system",import:"@perses-dev/plugin-system",requiredVersion:"0.51.0-rc.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>t(3090)},30156:{shareScope:"default",shareKey:"echarts",import:"echarts",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("954"),t.e("349"),t.e("503")]).then(()=>()=>t(28919))},6085:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("173").then(()=>()=>t(31542))},72116:{shareScope:"default",shareKey:"@emotion/react",import:"@emotion/react",requiredVersion:"^11.11.3",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("960").then(()=>()=>t(96434))},57871:{shareScope:"default",shareKey:"date-fns",import:"date-fns",requiredVersion:"^3.0.0 || ^4.0.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("238"),t.e("75")]).then(()=>()=>t(99657))},20370:{shareScope:"default",shareKey:"@perses-dev/components",import:"@perses-dev/components",requiredVersion:"0.51.0-rc.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("238"),t.e("224"),t.e("954"),t.e("349"),t.e("530"),t.e("331"),t.e("263")]).then(()=>()=>t(25451))},74614:{shareScope:"default",shareKey:"lodash",import:"lodash",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("981").then(()=>()=>t(98784))},4665:{shareScope:"default",shareKey:"date-fns-tz",import:"date-fns-tz",requiredVersion:"^3.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("224"),t.e("740"),t.e("494")]).then(()=>()=>t(48872))},54538:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("964").then(()=>()=>t(27378))},55922:{shareScope:"default",shareKey:"@emotion/styled",import:"@emotion/styled",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("770").then(()=>()=>t(51958))},84275:{shareScope:"default",shareKey:"@hookform/resolvers",import:"@hookform/resolvers",requiredVersion:"^2.0.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("738").then(()=>()=>t(81228))},20461:{shareScope:"default",shareKey:"date-fns",import:"date-fns",requiredVersion:"^4.1.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("238"),t.e("224"),t.e("75")]).then(()=>()=>t(99657))}},initialConsumes:[]},t.f.consumes=t.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},(()=>{if("undefined"!=typeof document){var e=function(e,r,n,o,a){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",t.nc&&(i.nonce=t.nc),i.onerror=i.onload=function(t){if(i.onerror=i.onload=null,"load"===t.type)o();else{var n=t&&("load"===t.type?"missing":t.type),s=t&&t.target&&t.target.href||r,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=n,l.request=s,i.parentNode&&i.parentNode.removeChild(i),a(l)}},i.href=r,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i),i},r=function(e,r){for(var t=document.getElementsByTagName("link"),n=0;n<t.length;n++){var o=t[n],a=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===r))return o}for(var i=document.getElementsByTagName("style"),n=0;n<i.length;n++){var o=i[n],a=o.getAttribute("data-href");if(a===e||a===r)return o}},n={909:0};t.f.miniCss=function(o,a){if(n[o])a.push(n[o]);else if(0!==n[o]&&({263:1,759:1})[o])a.push(n[o]=new Promise(function(n,a){var i=t.miniCssF(o),s=t.p+i;if(r(i,s))return n();e(o,s,null,n,a)}).then(function(){n[o]=0},function(e){throw delete n[o],e}))}}})(),(()=>{var e={909:0};t.f.j=function(r,n){var o=t.o(e,r)?e[r]:void 0;if(0!==o){if(o)n.push(o[2]);else if(/^(1(57|61|79)|242|263|494|677|759|946)$/.test(r))e[r]=0;else{var a=new Promise((t,n)=>o=e[r]=[t,n]);n.push(o[2]=a);var i=t.p+t.u(r),s=Error();t.l(i,function(n){if(t.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,o[1](s)}},"chunk-"+r,r)}}},t.O.j=r=>0===e[r];var r=(r,n)=>{var o,a,[i,s,l]=n,d=0;if(i.some(r=>0!==e[r])){for(o in s)t.o(s,o)&&(t.m[o]=s[o]);if(l)var c=l(t)}for(r&&r(n);d<i.length;d++)a=i[d],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(c)},n=self.webpackChunkStatChart=self.webpackChunkStatChart||[];n.forEach(r.bind(null,0)),n.push=r.bind(null,n.push.bind(n))})(),t.ruid="bundler=rspack@1.2.8",t.O(void 0,["435"],function(){return t(82837)});var n=t.O(void 0,["435"],function(){return t(5311)});n=t.O(n)})();
|
|
@@ -25,7 +25,7 @@ function getStatChartColor(chartsTheme, spec, value) {
|
|
|
25
25
|
const { mappings, thresholds } = spec ?? {};
|
|
26
26
|
// Determine the default color from thresholds or theme
|
|
27
27
|
const defaultColor = thresholds?.defaultColor ?? chartsTheme.thresholds.defaultColor;
|
|
28
|
-
if (
|
|
28
|
+
if (value === undefined || value === null || value === '' || !thresholds?.steps && !mappings) {
|
|
29
29
|
return defaultColor;
|
|
30
30
|
}
|
|
31
31
|
// Check mappings first
|
|
@@ -46,7 +46,7 @@ function getStatChartColor(chartsTheme, spec, value) {
|
|
|
46
46
|
return defaultColor;
|
|
47
47
|
}
|
|
48
48
|
function getColorFromMappings(value, mappings) {
|
|
49
|
-
if (mappings?.length && value) {
|
|
49
|
+
if (mappings?.length && value !== undefined && value !== null) {
|
|
50
50
|
const { color } = (0, _core.applyValueMapping)(value, mappings);
|
|
51
51
|
return color || null;
|
|
52
52
|
}
|
package/lib/utils/get-color.js
CHANGED
|
@@ -15,7 +15,7 @@ export function getStatChartColor(chartsTheme, spec, value) {
|
|
|
15
15
|
const { mappings, thresholds } = spec ?? {};
|
|
16
16
|
// Determine the default color from thresholds or theme
|
|
17
17
|
const defaultColor = thresholds?.defaultColor ?? chartsTheme.thresholds.defaultColor;
|
|
18
|
-
if (
|
|
18
|
+
if (value === undefined || value === null || value === '' || !thresholds?.steps && !mappings) {
|
|
19
19
|
return defaultColor;
|
|
20
20
|
}
|
|
21
21
|
// Check mappings first
|
|
@@ -36,7 +36,7 @@ export function getStatChartColor(chartsTheme, spec, value) {
|
|
|
36
36
|
return defaultColor;
|
|
37
37
|
}
|
|
38
38
|
function getColorFromMappings(value, mappings) {
|
|
39
|
-
if (mappings?.length && value) {
|
|
39
|
+
if (mappings?.length && value !== undefined && value !== null) {
|
|
40
40
|
const { color } = applyValueMapping(value, mappings);
|
|
41
41
|
return color || null;
|
|
42
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/get-color.ts"],"sourcesContent":["// Copyright 2024 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PersesChartsTheme } from '@perses-dev/components';\nimport { applyValueMapping, ThresholdOptions, ValueMapping } from '@perses-dev/core';\nimport { StatChartOptions } from '../stat-chart-model';\n\ntype StatChartValue = number | string | null;\n\nexport function getStatChartColor(\n chartsTheme: PersesChartsTheme,\n spec?: StatChartOptions,\n value?: StatChartValue\n): string {\n const { mappings, thresholds } = spec ?? {};\n\n // Determine the default color from thresholds or theme\n const defaultColor = thresholds?.defaultColor ?? chartsTheme.thresholds.defaultColor;\n\n if (
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/get-color.ts"],"sourcesContent":["// Copyright 2024 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PersesChartsTheme } from '@perses-dev/components';\nimport { applyValueMapping, ThresholdOptions, ValueMapping } from '@perses-dev/core';\nimport { StatChartOptions } from '../stat-chart-model';\n\ntype StatChartValue = number | string | null;\n\nexport function getStatChartColor(\n chartsTheme: PersesChartsTheme,\n spec?: StatChartOptions,\n value?: StatChartValue\n): string {\n const { mappings, thresholds } = spec ?? {};\n\n // Determine the default color from thresholds or theme\n const defaultColor = thresholds?.defaultColor ?? chartsTheme.thresholds.defaultColor;\n\n if (value === undefined || value === null || value === '' || (!thresholds?.steps && !mappings)) {\n return defaultColor;\n }\n\n // Check mappings first\n if (mappings?.length) {\n const colorFromMappings = getColorFromMappings(value, mappings);\n if (colorFromMappings) {\n return colorFromMappings;\n }\n }\n\n // Check thresholds next\n if (thresholds) {\n const colorFromThresholds = getColorFromThresholds(value, thresholds, chartsTheme, defaultColor);\n if (colorFromThresholds) {\n return colorFromThresholds;\n }\n }\n\n // Fallback to default color\n return defaultColor;\n}\n\nfunction getColorFromMappings(value: StatChartValue, mappings: ValueMapping[]): string | null {\n if (mappings?.length && value !== undefined && value !== null) {\n const { color } = applyValueMapping(value, mappings);\n return color || null;\n }\n return null;\n}\n\nfunction getColorFromThresholds(\n value: StatChartValue,\n thresholds: ThresholdOptions,\n chartsTheme: PersesChartsTheme,\n defaultColor: string\n): string | null {\n if (thresholds?.steps && typeof value === 'number') {\n const matchingColors = thresholds.steps\n .map((step, index) => {\n if (value >= step.value) {\n return step.color ?? chartsTheme.thresholds.palette[index] ?? defaultColor;\n }\n return null;\n })\n .filter((color): color is string => color !== null);\n\n return matchingColors[matchingColors.length - 1] ?? null;\n }\n return null;\n}\n"],"names":["applyValueMapping","getStatChartColor","chartsTheme","spec","value","mappings","thresholds","defaultColor","undefined","steps","length","colorFromMappings","getColorFromMappings","colorFromThresholds","getColorFromThresholds","color","matchingColors","map","step","index","palette","filter"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAASA,iBAAiB,QAAwC,mBAAmB;AAKrF,OAAO,SAASC,kBACdC,WAA8B,EAC9BC,IAAuB,EACvBC,KAAsB;IAEtB,MAAM,EAAEC,QAAQ,EAAEC,UAAU,EAAE,GAAGH,QAAQ,CAAC;IAE1C,uDAAuD;IACvD,MAAMI,eAAeD,YAAYC,gBAAgBL,YAAYI,UAAU,CAACC,YAAY;IAEpF,IAAIH,UAAUI,aAAaJ,UAAU,QAAQA,UAAU,MAAO,CAACE,YAAYG,SAAS,CAACJ,UAAW;QAC9F,OAAOE;IACT;IAEA,uBAAuB;IACvB,IAAIF,UAAUK,QAAQ;QACpB,MAAMC,oBAAoBC,qBAAqBR,OAAOC;QACtD,IAAIM,mBAAmB;YACrB,OAAOA;QACT;IACF;IAEA,wBAAwB;IACxB,IAAIL,YAAY;QACd,MAAMO,sBAAsBC,uBAAuBV,OAAOE,YAAYJ,aAAaK;QACnF,IAAIM,qBAAqB;YACvB,OAAOA;QACT;IACF;IAEA,4BAA4B;IAC5B,OAAON;AACT;AAEA,SAASK,qBAAqBR,KAAqB,EAAEC,QAAwB;IAC3E,IAAIA,UAAUK,UAAUN,UAAUI,aAAaJ,UAAU,MAAM;QAC7D,MAAM,EAAEW,KAAK,EAAE,GAAGf,kBAAkBI,OAAOC;QAC3C,OAAOU,SAAS;IAClB;IACA,OAAO;AACT;AAEA,SAASD,uBACPV,KAAqB,EACrBE,UAA4B,EAC5BJ,WAA8B,EAC9BK,YAAoB;IAEpB,IAAID,YAAYG,SAAS,OAAOL,UAAU,UAAU;QAClD,MAAMY,iBAAiBV,WAAWG,KAAK,CACpCQ,GAAG,CAAC,CAACC,MAAMC;YACV,IAAIf,SAASc,KAAKd,KAAK,EAAE;gBACvB,OAAOc,KAAKH,KAAK,IAAIb,YAAYI,UAAU,CAACc,OAAO,CAACD,MAAM,IAAIZ;YAChE;YACA,OAAO;QACT,GACCc,MAAM,CAAC,CAACN,QAA2BA,UAAU;QAEhD,OAAOC,cAAc,CAACA,eAAeN,MAAM,GAAG,EAAE,IAAI;IACtD;IACA,OAAO;AACT"}
|
package/mf-manifest.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "StatChart",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.8.
|
|
8
|
+
"buildVersion": "0.8.1",
|
|
9
9
|
"buildName": "@perses-dev/stat-chart-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/StatChart.
|
|
12
|
+
"name": "__mf/js/StatChart.aeb3025c.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"__mf/js/async/530.2c488ba4.js",
|
|
140
140
|
"__mf/js/async/331.b9e6d0dd.js",
|
|
141
141
|
"__mf/js/async/738.5905ca00.js",
|
|
142
|
-
"__mf/js/async/503.
|
|
142
|
+
"__mf/js/async/503.19801a79.js",
|
|
143
143
|
"__mf/js/async/981.0942fcbb.js"
|
|
144
144
|
],
|
|
145
145
|
"sync": [
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"js": {
|
|
184
184
|
"async": [],
|
|
185
185
|
"sync": [
|
|
186
|
-
"__mf/js/async/503.
|
|
186
|
+
"__mf/js/async/503.19801a79.js"
|
|
187
187
|
]
|
|
188
188
|
},
|
|
189
189
|
"css": {
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
"__mf/js/async/954.a9e2abee.js",
|
|
286
286
|
"__mf/js/async/90.defedb11.js",
|
|
287
287
|
"__mf/js/async/331.b9e6d0dd.js",
|
|
288
|
-
"__mf/js/async/__federation_expose_StatChart.
|
|
288
|
+
"__mf/js/async/__federation_expose_StatChart.264f6dad.js"
|
|
289
289
|
],
|
|
290
290
|
"async": [
|
|
291
291
|
"__mf/js/async/964.f3efac0a.js",
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
"__mf/js/async/845.e4f98502.js",
|
|
305
305
|
"__mf/js/async/488.078788e1.js",
|
|
306
306
|
"__mf/js/async/738.5905ca00.js",
|
|
307
|
-
"__mf/js/async/503.
|
|
307
|
+
"__mf/js/async/503.19801a79.js",
|
|
308
308
|
"__mf/js/async/981.0942fcbb.js"
|
|
309
309
|
]
|
|
310
310
|
},
|
package/mf-stats.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "StatChart",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.8.
|
|
8
|
+
"buildVersion": "0.8.1",
|
|
9
9
|
"buildName": "@perses-dev/stat-chart-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/StatChart.
|
|
12
|
+
"name": "__mf/js/StatChart.aeb3025c.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"__mf/js/async/530.2c488ba4.js",
|
|
156
156
|
"__mf/js/async/331.b9e6d0dd.js",
|
|
157
157
|
"__mf/js/async/738.5905ca00.js",
|
|
158
|
-
"__mf/js/async/503.
|
|
158
|
+
"__mf/js/async/503.19801a79.js",
|
|
159
159
|
"__mf/js/async/981.0942fcbb.js"
|
|
160
160
|
],
|
|
161
161
|
"sync": [
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"js": {
|
|
208
208
|
"async": [],
|
|
209
209
|
"sync": [
|
|
210
|
-
"__mf/js/async/503.
|
|
210
|
+
"__mf/js/async/503.19801a79.js"
|
|
211
211
|
]
|
|
212
212
|
},
|
|
213
213
|
"css": {
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
"__mf/js/async/954.a9e2abee.js",
|
|
332
332
|
"__mf/js/async/90.defedb11.js",
|
|
333
333
|
"__mf/js/async/331.b9e6d0dd.js",
|
|
334
|
-
"__mf/js/async/__federation_expose_StatChart.
|
|
334
|
+
"__mf/js/async/__federation_expose_StatChart.264f6dad.js"
|
|
335
335
|
],
|
|
336
336
|
"async": [
|
|
337
337
|
"__mf/js/async/964.f3efac0a.js",
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
"__mf/js/async/845.e4f98502.js",
|
|
351
351
|
"__mf/js/async/488.078788e1.js",
|
|
352
352
|
"__mf/js/async/738.5905ca00.js",
|
|
353
|
-
"__mf/js/async/503.
|
|
353
|
+
"__mf/js/async/503.19801a79.js",
|
|
354
354
|
"__mf/js/async/981.0942fcbb.js"
|
|
355
355
|
]
|
|
356
356
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perses-dev/stat-chart-plugin",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
|
+
"homepage": "https://github.com/perses/plugins/blob/main/README.md",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/perses/plugins.git"
|
|
8
|
+
},
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/perses/plugins/issues"
|
|
11
|
+
},
|
|
4
12
|
"scripts": {
|
|
5
13
|
"dev": "rsbuild dev",
|
|
6
14
|
"build": "npm run build-mf && concurrently \"npm:build:*\"",
|