@perses-dev/status-history-chart-plugin 0.7.0 → 0.7.2

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.
@@ -0,0 +1,23 @@
1
+ "use strict";(self.webpackChunkStatusHistoryChart=self.webpackChunkStatusHistoryChart||[]).push([["560"],{64968:function(e,t,r){r.r(t),r.d(t,{StatusHistoryChart:()=>$});var a=r(24246),i=r(17839),n=r(75586),l=r(28264),o=r(48565),s=r(36372),u=r(93098),d=r(54538);function h(e,t=[]){if(!t.length)return{value:e};let r={value:e};return t.forEach(t=>{switch(t.kind){case"Value":{let a=t.spec;String(a.value)===String(e)&&(r.value=a.result.value||r.value,r.color=a.result.color);break}case"Range":{let a=t.spec;if(void 0===a.from&&void 0===a.to)break;let i=void 0!==a.from?a.from:-1/0,n=void 0!==a.to?a.to:1/0;e>=i&&e<=n&&(r.value=a.result.value||r.value,r.color=a.result.color);break}case"Regex":{let a=t.spec,i=e.toString();if(!a.pattern)break;let n=function(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[,r="",a=""]=t;try{return new RegExp(r,a)}catch(e){throw Error(`Failed to create RegExp ${e}`)}}(a.pattern);i.match(n)&&null!==a.result.value&&(r.value=i.replace(n,a.result.value.toString()||"")||r.value,r.color=a.result.color);break}case"Misc":{let a=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}})(a.value,e)&&(r.value=a.result.value||r.value,r.color=a.result.color)}}}),r}var c=r(69481);let p="#1f77b4";var m=r(94776),g=r(27835),f=r(943),v=r(65201),y=r(99635),x=r(23709),b=r(67745),w=r(36232),C=r(50378),S=r(72116);(0,w.D)([g.N,f.N,v.N,y.N,x.N,b.N,C.N]);let M=e=>{var t;let{height:r,data:i,xAxisCategories:n,yAxisCategories:o,timeScale:u,colors:d}=e,{timeZone:h}=(0,l.useTimeZone)(),c=(0,l.useChartsTheme)(),p=(0,m.Z)(),g={tooltip:{appendToBody:!0,formatter:e=>(function(e){let{data:t,label:r,marker:a,xAxisCategories:i,yAxisCategories:n,theme:o}=e,[s,u]=t,d=i[s],{formattedDate:h,formattedTime:c}=(0,l.getDateAndTime)(d),p=(0,S.css)`
2
+ border-bottom: 1px solid ${o.palette.grey[500]};
3
+ padding-bottom: 8px;
4
+ `,m=(0,S.css)`
5
+ display: flex;
6
+ justify-content: space-between;
7
+ padding-top: 8px;
8
+ `,g=(0,S.css)`
9
+ margin-right: 16px;
10
+ `;return`
11
+ <div>
12
+ <div style="${p.styles}">${h} ${c}</div>
13
+ <div style="${m.styles}">
14
+ <div style="${g.styles}">
15
+ ${a}
16
+ <strong>${n[u]}</strong>
17
+ </div>
18
+ <div>
19
+ ${r}
20
+ </div>
21
+ </div>
22
+ </div>
23
+ `})({data:e.data.value,label:e.data.label,marker:e.marker,xAxisCategories:n,yAxisCategories:o,theme:p})},grid:{top:"5%",bottom:"5%"},xAxis:{type:"category",data:n,axisLine:{show:!1},splitArea:{show:!1},axisLabel:{hideOverlap:!0,formatter:(t=(null==u?void 0:u.rangeMs)??0,function(e){let r=new Date(Number(e));return t>15768e7?(0,l.formatWithTimeZone)(r,"yyy",h):t>63072e6?(0,l.formatWithTimeZone)(r,"MMM yyy",h):t>864e6&&t<1577664e4?(0,l.formatWithTimeZone)(r,"dd.MM",h):t>1728e5&&t<=864e6?(0,l.formatWithTimeZone)(r,"dd.MM HH:mm",h):(0,l.formatWithTimeZone)(r,"HH:mm",h)})}},yAxis:{type:"category",data:o,axisLine:{show:!1},splitArea:{show:!1,interval:0},splitLine:{show:!1},axisLabel:{interval:0}},visualMap:{show:!1,type:"piecewise",pieces:d},series:[{name:"Status history",type:"heatmap",coordinateSystem:"cartesian2d",data:i,label:{show:!1},itemStyle:{borderWidth:1,borderType:"solid",borderColor:"#ffffff"},emphasis:{itemStyle:{opacity:.5}}}]};return(0,a.jsx)(s.Z,{style:{height:r},sx:{overflow:"auto"},children:(0,a.jsx)(l.EChart,{sx:{width:"100%",height:r},option:g,theme:c.echartsTheme})})},$={PanelComponent:function(e){var t;let{spec:r,contentDimensions:n,queryResults:o}=e,m=(0,d.useMemo)(()=>r.legend&&(0,i.validateLegendSpec)(r.legend)?(0,u.merge)({},r.legend):void 0,[r.legend]),g=(0,l.useChartsTheme)(),f=g.container.padding.default,{statusHistoryData:v,yAxisCategories:y,xAxisCategories:x,legendItems:b,timeScale:w,colors:C}=(t=g.echartsTheme.color,(0,d.useMemo)(()=>{var e;if(!o||0===o.length)return{legendItems:[],statusHistoryData:[],xAxisCategories:[],yAxisCategories:[],colors:[]};let a=function(e){let t=e.map(e=>e.data);return(0,c.C5)(t)}(o),i=[],n=[],s=new Set,u=null===(e=r.mappings)||void 0===e?void 0:e.length,d=function(e){if(!e)return[];let{startMs:t,endMs:r,stepMs:a}=e,i=[];for(let e=t;e<=r;e+=a)i.push(e);return i}(a);o.forEach(e=>{let{data:t}=e;t&&t.series.forEach(e=>{let t=e.formattedName||"";n.push(t);let a=n.length-1;e.values.forEach(e=>{let[t,n]=e,l=d.findIndex(e=>e===t);if(null!==n&&-1!==l){let e=n;u&&(e=h(n,r.mappings).value),s.add(n),i.push({value:[l,a,n],label:String(e)})}})})});let m=Array.from(s),g=t.length>=m.length?t.slice(0,m.length):m.map((e,r)=>r<t.length?t[r]||p:function(e,t){t.match(/^#[0-9A-Fa-f]{6}$/)||(t=p);try{let[r,a,i]=function(e){let t=parseInt(e.slice(1,3),16)/255,r=parseInt(e.slice(3,5),16)/255,a=parseInt(e.slice(5,7),16)/255,i=Math.max(t,r,a),n=Math.min(t,r,a),l=0,o=0,s=(i+n)/2;if(i!==n){let e=i-n;switch(o=s>.5?e/(2-i-n):e/(i+n),i){case t:l=(r-a)/e+6*(r<a);break;case r:l=(a-t)/e+2;break;case a:l=(t-r)/e+4}l/=6}return[360*l,100*o,100*s]}(t);if(isNaN(r)||isNaN(a)||isNaN(i))throw Error("Invalid HSL values");let n=String(e).split("").reduce((e,t)=>e+t.charCodeAt(0),0),l=Math.min(a+10,90),o=function(e,t,r){let a=t*Math.min(r/=100,1-r)/100,i=t=>{let i=(t+e/30)%12;return Math.round(255*(r-a*Math.max(Math.min(i-3,9-i,1),-1))).toString(16).padStart(2,"0")};return`#${i(0)}${i(8)}${i(4)}`}(Math.abs((r+n%6*60)%360),Math.min(Math.max(l,50),90),Math.min(Math.max(i+(n%2?15:-15),30),70));if(!o.match(/^#[0-9A-Fa-f]{6}$/))throw Error("Invalid generated color");return o}catch{return p}}(e,t[0]||p)),f=m.map((e,t)=>{let a=g[t]??l.FALLBACK_COLOR;return u&&(a=h(e,r.mappings).color??a),{value:e,color:a}});return{xAxisCategories:d,yAxisCategories:n,legendItems:m.map((e,t)=>{var a;let i=String(e);u&&(i=String(h(e,r.mappings).value));let n=(null===(a=f.find(t=>t.value===e))||void 0===a?void 0:a.color)||l.FALLBACK_COLOR;return{id:`${t}-${e}`,label:i,color:n}}),statusHistoryData:i,timeScale:a,colors:f}},[o,r.mappings,t])),S=n?{width:n.width-2*f,height:n.height-2*f}:void 0;return v&&0!==v.length?(0,a.jsx)(s.Z,{sx:{padding:`${f}px`},children:(0,a.jsx)(l.ContentWithLegend,{width:(null==S?void 0:S.width)??400,height:(null==S?void 0:S.height)??1e3,legendSize:null==m?void 0:m.size,legendProps:m&&{options:m,data:b||[],selectedItems:"ALL",onSelectedItemsChange:()=>null},children:e=>{let{height:t,width:r}=e;return(0,a.jsx)(s.Z,{sx:{height:t,width:r},children:(0,a.jsx)(M,{xAxisCategories:x,yAxisCategories:y,data:v,timeScale:w,height:t,colors:C})})}})}):null},supportedQueryTypes:["TimeSeriesQuery"],panelOptionsEditorComponents:[{label:"Settings",content:function(e){let{onChange:t,value:r}=e;return(0,a.jsxs)(l.OptionsEditorGrid,{children:[(0,a.jsx)(l.OptionsEditorColumn,{children:(0,a.jsx)(i.LegendOptionsEditor,{showValuesEditor:!1,value:r.legend,onChange:e=>{t((0,n.Uy)(r,t=>{t.legend=e}))}})}),(0,a.jsx)(l.OptionsEditorColumn,{children:(0,a.jsx)(l.OptionsEditorGroup,{title:"Reset Settings",children:(0,a.jsx)(o.Z,{variant:"outlined",color:"secondary",onClick:()=>{t((0,n.Uy)(r,e=>{e.legend=void 0}))},children:"Reset To Defaults"})})})]})}},{label:"Value mapping",content:e=>{let{onChange:t,value:r}=e;return(0,a.jsx)(l.ValueMappingsEditor,{mappings:r.mappings??[],onChange:function(e){t({...r,mappings:e})}})}}],createInitialOptions:function(){return{}}}}}]);
@@ -0,0 +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)|263|37|494|677|759|809|815|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:"c90fcaed",151:"1be1f0b4",173:"23a9af58",214:"bd903be0",224:"d1554d4a",232:"cccd71f6",238:"e1063a95",292:"6a606f52",333:"a82fc8bd",409:"a5c2cd4c",491:"dd94c4b9",529:"fa2aa40a",539:"e7706a03",62:"b55b7073",620:"9ead3302",651:"f99d8a40",679:"0ad3525a",694:"f0fc36da",738:"a0be8511",740:"6b036ded",75:"2cda0740",750:"36e74bac",770:"ddaea8f9",886:"e576b6ee",960:"587af91a",964:"03c8778c",981:"caaa6409"})[e]+".js",t.miniCssF=e=>"__mf/css/async/"+e+"."+({263:"17332bd7",759:"17332bd7"})[e]+".css",t.h=()=>"e179f8e786308084",(()=>{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="StatusHistoryChart:";t.l=function(n,o,a,s){if(e[n]){e[n].push(o);return}if(void 0!==a)for(var i,l,c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==r+a){i=u;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,t.nc&&i.setAttribute("nonce",t.nc),i.setAttribute("data-webpack",r+a),i.src=n),e[n]=[o];var f=function(r,t){i.onerror=i.onload=null,clearTimeout(h);var o=e[n];if(delete e[n],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(t)}),r)return r(t)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}})(),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 s=e.length;s>0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[n,o,a];return}for(var i=1/0,s=0;s<e.length;s++){for(var[n,o,a]=e[s],l=!0,c=0;c<n.length;c++)(!1&a||i>=a)&&Object.keys(t.O).every(e=>t.O[e](n[c]))?n.splice(c--,1):(l=!1,a<i&&(i=a));if(l){e.splice(s--,1);var d=o();void 0!==d&&(r=d)}}return r}})(),t.p="/plugins/StatusHistoryChart/",t.rv=()=>"1.2.8",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("809"),t.e("214")]).then(()=>()=>t(81228)),eager:0,singleton:1},{name:"@perses-dev/components",version:"0.51.0-rc.0",factory:()=>Promise.all([t.e("238"),t.e("224"),t.e("750"),t.e("151"),t.e("679"),t.e("529"),t.e("539"),t.e("491"),t.e("677"),t.e("179"),t.e("161"),t.e("157"),t.e("37"),t.e("946"),t.e("759")]).then(()=>()=>t(58484)),eager:0,singleton:1},{name:"@perses-dev/plugin-system",version:"0.51.0-rc.0",factory:()=>Promise.all([t.e("118"),t.e("151"),t.e("491"),t.e("886"),t.e("677"),t.e("179"),t.e("161"),t.e("157"),t.e("809"),t.e("946"),t.e("815"),t.e("62")]).then(()=>()=>t(19394)),eager:0,singleton:1},{name:"@tanstack/react-query",version:"5.69.0",factory:()=>Promise.all([t.e("232"),t.e("677"),t.e("333")]).then(()=>()=>t(40150)),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("750"),t.e("679"),t.e("409")]).then(()=>()=>t(71932)),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-hook-form",version:"7.54.2",factory:()=>Promise.all([t.e("292"),t.e("677")]).then(()=>()=>t(36679)),eager:0,singleton:1},{name:"react",version:"18.3.1",factory:()=>t.e("964").then(()=>()=>t(27378)),eager:0,singleton:1,requiredVersion:"18.2.0"}]},uniqueName:"StatusHistoryChart"},t.I=t.I||function(){throw Error("should have __webpack_require__.I")},t.consumesLoadingData={chunkMapping:{161:["4665","20461"],37:["48137"],809:["57576"],815:["53034","90775","74614","74128","30156","57751","55922","84275","64293"],494:["57871"],946:["45913"],179:["6085"],157:["72116"],677:["54538"]},moduleIdToConsumeDataMapping:{90775:{shareScope:"default",shareKey:"@perses-dev/components",import:"@perses-dev/components",requiredVersion:"0.51.0-rc.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("238"),t.e("224"),t.e("750"),t.e("679"),t.e("529"),t.e("539"),t.e("37"),t.e("263")]).then(()=>()=>t(58484))},57751:{shareScope:"default",shareKey:"@perses-dev/plugin-system",import:"@perses-dev/plugin-system",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>t(19394)},30156:{shareScope:"default",shareKey:"echarts",import:"echarts",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("750"),t.e("679"),t.e("409")]).then(()=>()=>t(71932))},53034:{shareScope:"default",shareKey:"@tanstack/react-query",import:"@tanstack/react-query",requiredVersion:"^5.64.2",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("232").then(()=>()=>t(40150))},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))},74614:{shareScope:"default",shareKey:"lodash",import:"lodash",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("981").then(()=>()=>t(98784))},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))},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))},64293:{shareScope:"default",shareKey:"react-hook-form",import:"react-hook-form",requiredVersion:"^7.46.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("292").then(()=>()=>t(36679))},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))},48137:{shareScope:"default",shareKey:"react-hook-form",import:"react-hook-form",requiredVersion:"^7.51.3",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("292").then(()=>()=>t(36679))},74128:{shareScope:"default",shareKey:"@perses-dev/plugin-system",import:"@perses-dev/plugin-system",requiredVersion:"0.51.0-rc.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>t(19394)},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))},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))},57576:{shareScope:"default",shareKey:"react-hook-form",import:"react-hook-form",requiredVersion:"^7.0.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("292"),t.e("677")]).then(()=>()=>t(36679))},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))}},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 s=document.createElement("link");return s.rel="stylesheet",s.type="text/css",t.nc&&(s.nonce=t.nc),s.onerror=s.onload=function(t){if(s.onerror=s.onload=null,"load"===t.type)o();else{var n=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.href||r,l=Error("Loading CSS chunk "+e+" failed.\\n("+i+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=n,l.request=i,s.parentNode&&s.parentNode.removeChild(s),a(l)}},s.href=r,n?n.parentNode.insertBefore(s,n.nextSibling):document.head.appendChild(s),s},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 s=document.getElementsByTagName("style"),n=0;n<s.length;n++){var o=s[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 s=t.miniCssF(o),i=t.p+s;if(r(s,i))return n();e(o,i,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)|263|37|494|677|759|809|815|946)$/.test(r))e[r]=0;else{var a=new Promise((t,n)=>o=e[r]=[t,n]);n.push(o[2]=a);var s=t.p+t.u(r),i=Error();t.l(s,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),s=n&&n.target&&n.target.src;i.message="Loading chunk "+r+" failed.\n("+a+": "+s+")",i.name="ChunkLoadError",i.type=a,i.request=s,o[1](i)}},"chunk-"+r,r)}}},t.O.j=r=>0===e[r];var r=(r,n)=>{var o,a,[s,i,l]=n,c=0;if(s.some(r=>0!==e[r])){for(o in i)t.o(i,o)&&(t.m[o]=i[o]);if(l)var d=l(t)}for(r&&r(n);c<s.length;c++)a=s[c],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(d)},n=self.webpackChunkStatusHistoryChart=self.webpackChunkStatusHistoryChart||[];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,["456"],function(){return t(68176)});var n=t.O(void 0,["456"],function(){return t(5311)});n=t.O(n)})();
@@ -24,6 +24,7 @@ const _components = require("@perses-dev/components");
24
24
  const _core = require("@perses-dev/core");
25
25
  const _react = require("react");
26
26
  const _gettimescale = require("./get-timescale");
27
+ const _getcolor = require("./get-color");
27
28
  function generateCompleteTimestamps(timescale) {
28
29
  if (!timescale) {
29
30
  return [];
@@ -82,7 +83,7 @@ function useStatusHistoryDataModel(queryResults, themeColors, spec) {
82
83
  });
83
84
  });
84
85
  const uniqueValues = Array.from(legendSet);
85
- const colorsForValues = (0, _components.getColorsForValues)(uniqueValues, themeColors);
86
+ const colorsForValues = (0, _getcolor.getColorsForValues)(uniqueValues, themeColors);
86
87
  // get colors from theme and generate colors if not provided
87
88
  const colors = uniqueValues.map((value, index)=>{
88
89
  let valueColor = colorsForValues[index] ?? _components.FALLBACK_COLOR;
@@ -1 +1 @@
1
- {"version":3,"file":"data-transform.d.ts","sourceRoot":"","sources":["../../../src/utils/data-transform.ts"],"names":[],"mappings":"AAaA,OAAO,EAAsC,UAAU,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAA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C;QACZ,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;CACJ;AAcD,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,EAC9C,WAAW,EAAE,MAAM,EAAE,EACrB,IAAI,EAAE,yBAAyB,GAC9B,sBAAsB,CA8FxB"}
@@ -10,10 +10,11 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- import { FALLBACK_COLOR, getColorsForValues } from '@perses-dev/components';
13
+ import { FALLBACK_COLOR } from '@perses-dev/components';
14
14
  import { applyValueMapping } from '@perses-dev/core';
15
15
  import { useMemo } from 'react';
16
16
  import { getCommonTimeScaleForQueries } from './get-timescale';
17
+ import { getColorsForValues } from './get-color';
17
18
  function generateCompleteTimestamps(timescale) {
18
19
  if (!timescale) {
19
20
  return [];
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/data-transform.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 { FALLBACK_COLOR, getColorsForValues, LegendItem, StatusHistoryDataItem } from '@perses-dev/components';\nimport { applyValueMapping, TimeScale, TimeSeriesData } from '@perses-dev/core';\nimport { PanelData } from '@perses-dev/plugin-system';\nimport { useMemo } from 'react';\nimport { StatusHistoryChartOptions } from '../status-history-model';\nimport { getCommonTimeScaleForQueries } from './get-timescale';\n\ninterface StatusHistoryDataModel {\n legendItems: LegendItem[];\n statusHistoryData: StatusHistoryDataItem[];\n xAxisCategories: number[];\n yAxisCategories: string[];\n timeScale?: TimeScale;\n colors: Array<{\n value: string | number;\n color: string;\n }>;\n}\n\nfunction generateCompleteTimestamps(timescale?: TimeScale): number[] {\n if (!timescale) {\n return [];\n }\n const { startMs, endMs, stepMs } = timescale;\n const timestamps: number[] = [];\n for (let time = startMs; time <= endMs; time += stepMs) {\n timestamps.push(time);\n }\n return timestamps;\n}\n\nexport function useStatusHistoryDataModel(\n queryResults: Array<PanelData<TimeSeriesData>>,\n themeColors: string[],\n spec: StatusHistoryChartOptions\n): StatusHistoryDataModel {\n return useMemo(() => {\n if (!queryResults || queryResults.length === 0) {\n return {\n legendItems: [],\n statusHistoryData: [],\n xAxisCategories: [],\n yAxisCategories: [],\n colors: [],\n };\n }\n\n const timeScale = getCommonTimeScaleForQueries(queryResults);\n const statusHistoryData: StatusHistoryDataItem[] = [];\n const yAxisCategories: string[] = [];\n const legendSet = new Set<number>();\n const hasValueMappings = spec.mappings?.length;\n\n const xAxisCategories = generateCompleteTimestamps(timeScale);\n\n queryResults.forEach(({ data }) => {\n if (!data) {\n return;\n }\n\n data.series.forEach((item) => {\n const instance = item.formattedName || '';\n\n yAxisCategories.push(instance);\n\n const yIndex = yAxisCategories.length - 1;\n\n item.values.forEach(([time, value]) => {\n const itemIndexOnXaxis = xAxisCategories.findIndex((v) => v === time);\n if (value !== null && itemIndexOnXaxis !== -1) {\n let itemLabel: string | number = value;\n if (hasValueMappings) {\n const mappedValue = applyValueMapping(value, spec.mappings);\n itemLabel = mappedValue.value;\n }\n legendSet.add(value);\n statusHistoryData.push({\n value: [itemIndexOnXaxis, yIndex, value],\n label: String(itemLabel),\n });\n }\n });\n });\n });\n\n const uniqueValues = Array.from(legendSet);\n const colorsForValues = getColorsForValues(uniqueValues, themeColors);\n\n // get colors from theme and generate colors if not provided\n const colors = uniqueValues.map((value, index) => {\n let valueColor: string = colorsForValues[index] ?? FALLBACK_COLOR;\n\n if (hasValueMappings) {\n const mappedValue = applyValueMapping(value, spec.mappings);\n valueColor = mappedValue.color ?? valueColor;\n }\n\n return {\n value,\n color: valueColor,\n };\n });\n\n const legendItems: LegendItem[] = uniqueValues.map((value, idx) => {\n let label = String(value);\n\n if (hasValueMappings) {\n const mappedValue = applyValueMapping(value, spec.mappings);\n label = String(mappedValue.value);\n }\n\n const color = colors.find((i) => i.value === value)?.color || FALLBACK_COLOR;\n\n return {\n id: `${idx}-${value}`,\n label,\n color,\n };\n });\n\n return {\n xAxisCategories,\n yAxisCategories,\n legendItems,\n statusHistoryData,\n timeScale,\n colors,\n };\n }, [queryResults, spec.mappings, themeColors]);\n}\n"],"names":["FALLBACK_COLOR","getColorsForValues","applyValueMapping","useMemo","getCommonTimeScaleForQueries","generateCompleteTimestamps","timescale","startMs","endMs","stepMs","timestamps","time","push","useStatusHistoryDataModel","queryResults","themeColors","spec","length","legendItems","statusHistoryData","xAxisCategories","yAxisCategories","colors","timeScale","legendSet","Set","hasValueMappings","mappings","forEach","data","series","item","instance","formattedName","yIndex","values","value","itemIndexOnXaxis","findIndex","v","itemLabel","mappedValue","add","label","String","uniqueValues","Array","from","colorsForValues","map","index","valueColor","color","idx","find","i","id"],"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;AAEjC,SAASA,cAAc,EAAEC,kBAAkB,QAA2C,yBAAyB;AAC/G,SAASC,iBAAiB,QAAmC,mBAAmB;AAEhF,SAASC,OAAO,QAAQ,QAAQ;AAEhC,SAASC,4BAA4B,QAAQ,kBAAkB;AAc/D,SAASC,2BAA2BC,SAAqB;IACvD,IAAI,CAACA,WAAW;QACd,OAAO,EAAE;IACX;IACA,MAAM,EAAEC,OAAO,EAAEC,KAAK,EAAEC,MAAM,EAAE,GAAGH;IACnC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4BACrBwB,OAAO;gCAACC;gCAAkBH;gCAAQE;6BAAM;4BACxCO,OAAOC,OAAOJ;wBAChB;oBACF;gBACF;YACF;QACF;QAEA,MAAMK,eAAeC,MAAMC,IAAI,CAACvB;QAChC,MAAMwB,kBAAkB/C,mBAAmB4C,cAAc9B;QAEzD,4DAA4D;QAC5D,MAAMO,SAASuB,aAAaI,GAAG,CAAC,CAACb,OAAOc;YACtC,IAAIC,aAAqBH,eAAe,CAACE,MAAM,IAAIlD;YAEnD,IAAI0B,kBAAkB;gBACpB,MAAMe,cAAcvC,kBAAkBkC,OAAOpB,KAAKW,QAAQ;gBAC1DwB,aAAaV,YAAYW,KAAK,IAAID;YACpC;YAEA,OAAO;gBACLf;gBACAgB,OAAOD;YACT;QACF;QAEA,MAAMjC,cAA4B2B,aAAaI,GAAG,CAAC,CAACb,OAAOiB;YACzD,IAAIV,QAAQC,OAAOR;YAEnB,IAAIV,kBAAkB;gBACpB,MAAMe,cAAcvC,kBAAkBkC,OAAOpB,KAAKW,QAAQ;gBAC1DgB,QAAQC,OAAOH,YAAYL,KAAK;YAClC;YAEA,MAAMgB,QAAQ9B,OAAOgC,IAAI,CAAC,CAACC,IAAMA,EAAEnB,KAAK,KAAKA,QAAQgB,SAASpD;YAE9D,OAAO;gBACLwD,IAAI,GAAGH,IAAI,CAAC,EAAEjB,OAAO;gBACrBO;gBACAS;YACF;QACF;QAEA,OAAO;YACLhC;YACAC;YACAH;YACAC;YACAI;YACAD;QACF;IACF,GAAG;QAACR;QAAcE,KAAKW,QAAQ;QAAEZ;KAAY;AAC/C"}
1
+ {"version":3,"sources":["../../../src/utils/data-transform.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 { FALLBACK_COLOR, LegendItem, StatusHistoryDataItem } from '@perses-dev/components';\nimport { applyValueMapping, TimeScale, TimeSeriesData } from '@perses-dev/core';\nimport { PanelData } from '@perses-dev/plugin-system';\nimport { useMemo } from 'react';\nimport { StatusHistoryChartOptions } from '../status-history-model';\nimport { getCommonTimeScaleForQueries } from './get-timescale';\nimport { getColorsForValues } from './get-color';\n\ninterface StatusHistoryDataModel {\n legendItems: LegendItem[];\n statusHistoryData: StatusHistoryDataItem[];\n xAxisCategories: number[];\n yAxisCategories: string[];\n timeScale?: TimeScale;\n colors: Array<{\n value: string | number;\n color: string;\n }>;\n}\n\nfunction generateCompleteTimestamps(timescale?: TimeScale): number[] {\n if (!timescale) {\n return [];\n }\n const { startMs, endMs, stepMs } = timescale;\n const timestamps: number[] = [];\n for (let time = startMs; time <= endMs; time += stepMs) {\n timestamps.push(time);\n }\n return timestamps;\n}\n\nexport function useStatusHistoryDataModel(\n queryResults: Array<PanelData<TimeSeriesData>>,\n themeColors: string[],\n spec: StatusHistoryChartOptions\n): StatusHistoryDataModel {\n return useMemo(() => {\n if (!queryResults || queryResults.length === 0) {\n return {\n legendItems: [],\n statusHistoryData: [],\n xAxisCategories: [],\n yAxisCategories: [],\n colors: [],\n };\n }\n\n const timeScale = getCommonTimeScaleForQueries(queryResults);\n const statusHistoryData: StatusHistoryDataItem[] = [];\n const yAxisCategories: string[] = [];\n const legendSet = new Set<number>();\n const hasValueMappings = spec.mappings?.length;\n\n const xAxisCategories = generateCompleteTimestamps(timeScale);\n\n queryResults.forEach(({ data }) => {\n if (!data) {\n return;\n }\n\n data.series.forEach((item) => {\n const instance = item.formattedName || '';\n\n yAxisCategories.push(instance);\n\n const yIndex = yAxisCategories.length - 1;\n\n item.values.forEach(([time, value]) => {\n const itemIndexOnXaxis = xAxisCategories.findIndex((v) => v === time);\n if (value !== null && itemIndexOnXaxis !== -1) {\n let itemLabel: string | number = value;\n if (hasValueMappings) {\n const mappedValue = applyValueMapping(value, spec.mappings);\n itemLabel = mappedValue.value;\n }\n legendSet.add(value);\n statusHistoryData.push({\n value: [itemIndexOnXaxis, yIndex, value],\n label: String(itemLabel),\n });\n }\n });\n });\n });\n\n const uniqueValues = Array.from(legendSet);\n const colorsForValues = getColorsForValues(uniqueValues, themeColors);\n\n // get colors from theme and generate colors if not provided\n const colors = uniqueValues.map((value, index) => {\n let valueColor: string = colorsForValues[index] ?? FALLBACK_COLOR;\n\n if (hasValueMappings) {\n const mappedValue = applyValueMapping(value, spec.mappings);\n valueColor = mappedValue.color ?? valueColor;\n }\n\n return {\n value,\n color: valueColor,\n };\n });\n\n const legendItems: LegendItem[] = uniqueValues.map((value, idx) => {\n let label = String(value);\n\n if (hasValueMappings) {\n const mappedValue = applyValueMapping(value, spec.mappings);\n label = String(mappedValue.value);\n }\n\n const color = colors.find((i) => i.value === value)?.color || FALLBACK_COLOR;\n\n return {\n id: `${idx}-${value}`,\n label,\n color,\n };\n });\n\n return {\n xAxisCategories,\n yAxisCategories,\n legendItems,\n statusHistoryData,\n timeScale,\n colors,\n };\n }, [queryResults, spec.mappings, themeColors]);\n}\n"],"names":["FALLBACK_COLOR","applyValueMapping","useMemo","getCommonTimeScaleForQueries","getColorsForValues","generateCompleteTimestamps","timescale","startMs","endMs","stepMs","timestamps","time","push","useStatusHistoryDataModel","queryResults","themeColors","spec","length","legendItems","statusHistoryData","xAxisCategories","yAxisCategories","colors","timeScale","legendSet","Set","hasValueMappings","mappings","forEach","data","series","item","instance","formattedName","yIndex","values","value","itemIndexOnXaxis","findIndex","v","itemLabel","mappedValue","add","label","String","uniqueValues","Array","from","colorsForValues","map","index","valueColor","color","idx","find","i","id"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;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EA,OAAO;YACLhC;YACAC;YACAH;YACAC;YACAI;YACAD;QACF;IACF,GAAG;QAACR;QAAcE,KAAKW,QAAQ;QAAEZ;KAAY;AAC/C"}
package/mf-manifest.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "StatusHistoryChart",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.7.0",
8
+ "buildVersion": "0.7.2",
9
9
  "buildName": "@perses-dev/status-history-chart-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/StatusHistoryChart.0afd1ff7.js",
12
+ "name": "__mf/js/StatusHistoryChart.ba99d746.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -95,9 +95,9 @@
95
95
  {
96
96
  "id": "StatusHistoryChart:@perses-dev/components",
97
97
  "name": "@perses-dev/components",
98
- "version": "0.51.0-beta.1",
98
+ "version": "0.51.0-rc.0",
99
99
  "singleton": true,
100
- "requiredVersion": "^0.51.0-beta.1",
100
+ "requiredVersion": "^0.51.0-rc.0",
101
101
  "assets": {
102
102
  "js": {
103
103
  "async": [
@@ -110,7 +110,7 @@
110
110
  "__mf/js/async/292.6a606f52.js"
111
111
  ],
112
112
  "sync": [
113
- "__mf/js/async/822.c6b015c5.js"
113
+ "__mf/js/async/529.fa2aa40a.js"
114
114
  ]
115
115
  },
116
116
  "css": {
@@ -122,9 +122,9 @@
122
122
  {
123
123
  "id": "StatusHistoryChart:@perses-dev/plugin-system",
124
124
  "name": "@perses-dev/plugin-system",
125
- "version": "0.51.0-beta.1",
125
+ "version": "0.51.0-rc.0",
126
126
  "singleton": true,
127
- "requiredVersion": "^0.51.0-beta.1",
127
+ "requiredVersion": "^0.51.0-rc.0",
128
128
  "assets": {
129
129
  "js": {
130
130
  "async": [
@@ -138,16 +138,16 @@
138
138
  "__mf/js/async/238.e1063a95.js",
139
139
  "__mf/js/async/75.2cda0740.js",
140
140
  "__mf/js/async/750.36e74bac.js",
141
- "__mf/js/async/125.bf16be8f.js",
142
- "__mf/js/async/822.c6b015c5.js",
141
+ "__mf/js/async/679.0ad3525a.js",
142
+ "__mf/js/async/529.fa2aa40a.js",
143
143
  "__mf/js/async/539.e7706a03.js",
144
144
  "__mf/js/async/738.a0be8511.js",
145
145
  "__mf/js/async/232.cccd71f6.js",
146
- "__mf/js/async/610.89fadbc8.js",
146
+ "__mf/js/async/409.a5c2cd4c.js",
147
147
  "__mf/js/async/981.caaa6409.js"
148
148
  ],
149
149
  "sync": [
150
- "__mf/js/async/13.714dc818.js"
150
+ "__mf/js/async/886.e576b6ee.js"
151
151
  ]
152
152
  },
153
153
  "css": {
@@ -208,7 +208,7 @@
208
208
  "js": {
209
209
  "async": [],
210
210
  "sync": [
211
- "__mf/js/async/610.89fadbc8.js"
211
+ "__mf/js/async/409.a5c2cd4c.js"
212
212
  ]
213
213
  },
214
214
  "css": {
@@ -331,26 +331,26 @@
331
331
  "__mf/js/async/750.36e74bac.js",
332
332
  "__mf/js/async/539.e7706a03.js",
333
333
  "__mf/js/async/491.dd94c4b9.js",
334
- "__mf/js/async/__federation_expose_StatusHistoryChart.96028d95.js"
334
+ "__mf/js/async/__federation_expose_StatusHistoryChart.6a40b1d7.js"
335
335
  ],
336
336
  "async": [
337
337
  "__mf/js/async/964.03c8778c.js",
338
338
  "__mf/js/async/960.587af91a.js",
339
339
  "__mf/js/async/770.ddaea8f9.js",
340
340
  "__mf/js/async/lib-router.c90fcaed.js",
341
- "__mf/js/async/22.8056fc40.js",
342
- "__mf/js/async/13.714dc818.js",
341
+ "__mf/js/async/151.1be1f0b4.js",
342
+ "__mf/js/async/886.e576b6ee.js",
343
343
  "__mf/js/async/488.f3f63548.js",
344
344
  "__mf/js/async/238.e1063a95.js",
345
345
  "__mf/js/async/224.d1554d4a.js",
346
- "__mf/js/async/125.bf16be8f.js",
347
- "__mf/js/async/822.c6b015c5.js",
346
+ "__mf/js/async/679.0ad3525a.js",
347
+ "__mf/js/async/529.fa2aa40a.js",
348
348
  "__mf/js/async/292.6a606f52.js",
349
349
  "__mf/js/async/738.a0be8511.js",
350
350
  "__mf/js/async/173.23a9af58.js",
351
351
  "__mf/js/async/232.cccd71f6.js",
352
352
  "__mf/js/async/75.2cda0740.js",
353
- "__mf/js/async/610.89fadbc8.js",
353
+ "__mf/js/async/409.a5c2cd4c.js",
354
354
  "__mf/js/async/740.6b036ded.js",
355
355
  "__mf/js/async/981.caaa6409.js"
356
356
  ]
package/mf-stats.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "StatusHistoryChart",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.7.0",
8
+ "buildVersion": "0.7.2",
9
9
  "buildName": "@perses-dev/status-history-chart-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/StatusHistoryChart.0afd1ff7.js",
12
+ "name": "__mf/js/StatusHistoryChart.ba99d746.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -105,10 +105,10 @@
105
105
  },
106
106
  {
107
107
  "singleton": true,
108
- "requiredVersion": "^0.51.0-beta.1",
108
+ "requiredVersion": "^0.51.0-rc.0",
109
109
  "shareScope": "default",
110
110
  "name": "@perses-dev/components",
111
- "version": "0.51.0-beta.1",
111
+ "version": "0.51.0-rc.0",
112
112
  "eager": false,
113
113
  "id": "StatusHistoryChart:@perses-dev/components",
114
114
  "assets": {
@@ -123,7 +123,7 @@
123
123
  "__mf/js/async/292.6a606f52.js"
124
124
  ],
125
125
  "sync": [
126
- "__mf/js/async/822.c6b015c5.js"
126
+ "__mf/js/async/529.fa2aa40a.js"
127
127
  ]
128
128
  },
129
129
  "css": {
@@ -137,10 +137,10 @@
137
137
  },
138
138
  {
139
139
  "singleton": true,
140
- "requiredVersion": "^0.51.0-beta.1",
140
+ "requiredVersion": "^0.51.0-rc.0",
141
141
  "shareScope": "default",
142
142
  "name": "@perses-dev/plugin-system",
143
- "version": "0.51.0-beta.1",
143
+ "version": "0.51.0-rc.0",
144
144
  "eager": false,
145
145
  "id": "StatusHistoryChart:@perses-dev/plugin-system",
146
146
  "assets": {
@@ -156,16 +156,16 @@
156
156
  "__mf/js/async/238.e1063a95.js",
157
157
  "__mf/js/async/75.2cda0740.js",
158
158
  "__mf/js/async/750.36e74bac.js",
159
- "__mf/js/async/125.bf16be8f.js",
160
- "__mf/js/async/822.c6b015c5.js",
159
+ "__mf/js/async/679.0ad3525a.js",
160
+ "__mf/js/async/529.fa2aa40a.js",
161
161
  "__mf/js/async/539.e7706a03.js",
162
162
  "__mf/js/async/738.a0be8511.js",
163
163
  "__mf/js/async/232.cccd71f6.js",
164
- "__mf/js/async/610.89fadbc8.js",
164
+ "__mf/js/async/409.a5c2cd4c.js",
165
165
  "__mf/js/async/981.caaa6409.js"
166
166
  ],
167
167
  "sync": [
168
- "__mf/js/async/13.714dc818.js"
168
+ "__mf/js/async/886.e576b6ee.js"
169
169
  ]
170
170
  },
171
171
  "css": {
@@ -237,7 +237,7 @@
237
237
  "js": {
238
238
  "async": [],
239
239
  "sync": [
240
- "__mf/js/async/610.89fadbc8.js"
240
+ "__mf/js/async/409.a5c2cd4c.js"
241
241
  ]
242
242
  },
243
243
  "css": {
@@ -389,26 +389,26 @@
389
389
  "__mf/js/async/750.36e74bac.js",
390
390
  "__mf/js/async/539.e7706a03.js",
391
391
  "__mf/js/async/491.dd94c4b9.js",
392
- "__mf/js/async/__federation_expose_StatusHistoryChart.96028d95.js"
392
+ "__mf/js/async/__federation_expose_StatusHistoryChart.6a40b1d7.js"
393
393
  ],
394
394
  "async": [
395
395
  "__mf/js/async/964.03c8778c.js",
396
396
  "__mf/js/async/960.587af91a.js",
397
397
  "__mf/js/async/770.ddaea8f9.js",
398
398
  "__mf/js/async/lib-router.c90fcaed.js",
399
- "__mf/js/async/22.8056fc40.js",
400
- "__mf/js/async/13.714dc818.js",
399
+ "__mf/js/async/151.1be1f0b4.js",
400
+ "__mf/js/async/886.e576b6ee.js",
401
401
  "__mf/js/async/488.f3f63548.js",
402
402
  "__mf/js/async/238.e1063a95.js",
403
403
  "__mf/js/async/224.d1554d4a.js",
404
- "__mf/js/async/125.bf16be8f.js",
405
- "__mf/js/async/822.c6b015c5.js",
404
+ "__mf/js/async/679.0ad3525a.js",
405
+ "__mf/js/async/529.fa2aa40a.js",
406
406
  "__mf/js/async/292.6a606f52.js",
407
407
  "__mf/js/async/738.a0be8511.js",
408
408
  "__mf/js/async/173.23a9af58.js",
409
409
  "__mf/js/async/232.cccd71f6.js",
410
410
  "__mf/js/async/75.2cda0740.js",
411
- "__mf/js/async/610.89fadbc8.js",
411
+ "__mf/js/async/409.a5c2cd4c.js",
412
412
  "__mf/js/async/740.6b036ded.js",
413
413
  "__mf/js/async/981.caaa6409.js"
414
414
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perses-dev/status-history-chart-plugin",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "scripts": {
5
5
  "dev": "rsbuild dev",
6
6
  "build": "npm run build-mf && concurrently \"npm:build:*\"",
@@ -19,9 +19,9 @@
19
19
  "@emotion/react": "^11.7.1",
20
20
  "@emotion/styled": "^11.6.0",
21
21
  "@hookform/resolvers": "^3.2.0",
22
- "@perses-dev/components": "^0.51.0-beta.1",
23
- "@perses-dev/core": "^0.51.0-beta.1",
24
- "@perses-dev/plugin-system": "^0.51.0-beta.1",
22
+ "@perses-dev/components": "^0.51.0-rc.0",
23
+ "@perses-dev/core": "^0.51.0-rc.0",
24
+ "@perses-dev/plugin-system": "^0.51.0-rc.0",
25
25
  "date-fns": "^4.1.0",
26
26
  "date-fns-tz": "^3.2.0",
27
27
  "echarts": "5.5.0",