@perses-dev/heatmap-chart-plugin 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +23 -0
- package/__mf/css/async/341.2a93d99b.css +1 -0
- package/__mf/css/async/759.2a93d99b.css +1 -0
- package/__mf/font/lato-all-300-normal.322bdf14.woff +0 -0
- package/__mf/font/lato-all-400-normal.63513b00.woff +0 -0
- package/__mf/font/lato-all-700-normal.bb27db94.woff +0 -0
- package/__mf/font/lato-all-900-normal.a27049a3.woff +0 -0
- package/__mf/font/lato-latin-300-normal.c5195215.woff2 +0 -0
- package/__mf/font/lato-latin-400-normal.b7ffde23.woff2 +0 -0
- package/__mf/font/lato-latin-700-normal.d5eb20bc.woff2 +0 -0
- package/__mf/font/lato-latin-900-normal.d884a71c.woff2 +0 -0
- package/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2 +0 -0
- package/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2 +0 -0
- package/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2 +0 -0
- package/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2 +0 -0
- package/__mf/js/HeatMapChart.81916a67.js +5 -0
- package/__mf/js/async/173.c3418567.js +2 -0
- package/__mf/js/async/173.c3418567.js.LICENSE.txt +19 -0
- package/__mf/js/async/293.f3a89fef.js +1 -0
- package/__mf/js/async/469.15f49b0f.js +71 -0
- package/__mf/js/async/469.15f49b0f.js.LICENSE.txt +21 -0
- package/__mf/js/async/482.cd2ab58b.js +83 -0
- package/__mf/js/async/482.cd2ab58b.js.LICENSE.txt +61 -0
- package/__mf/js/async/774.0d1a003f.js +1 -0
- package/__mf/js/async/790.930331af.js +1 -0
- package/__mf/js/async/863.e810bfc4.js +2 -0
- package/__mf/js/async/863.e810bfc4.js.LICENSE.txt +9 -0
- package/__mf/js/async/934.6f607fed.js +2 -0
- package/__mf/js/async/934.6f607fed.js.LICENSE.txt +37 -0
- package/__mf/js/async/964.944e7b15.js +2 -0
- package/__mf/js/async/964.944e7b15.js.LICENSE.txt +9 -0
- package/__mf/js/async/981.75e172bb.js +2 -0
- package/__mf/js/async/981.75e172bb.js.LICENSE.txt +8 -0
- package/__mf/js/async/__federation_expose_HeatMapChart.ab402c3a.js +23 -0
- package/__mf/js/main.24d16ad6.js +5 -0
- package/lib/HeatMapChart.d.ts +8 -0
- package/lib/HeatMapChart.d.ts.map +1 -0
- package/lib/HeatMapChart.js +34 -0
- package/lib/HeatMapChart.js.map +1 -0
- package/lib/bootstrap.d.ts +2 -0
- package/lib/bootstrap.d.ts.map +1 -0
- package/lib/bootstrap.js +19 -0
- package/lib/bootstrap.js.map +1 -0
- package/lib/cjs/HeatMapChart.js +40 -0
- package/lib/cjs/bootstrap.js +26 -0
- package/lib/cjs/components/HeatMapChart.js +149 -0
- package/lib/cjs/components/HeatMapChartOptionsEditorSettings.js +85 -0
- package/lib/cjs/components/HeatMapChartPanel.js +178 -0
- package/lib/cjs/components/HeatMapTooltip.js +58 -0
- package/lib/cjs/components/index.js +32 -0
- package/lib/cjs/env.d.js +14 -0
- package/lib/cjs/getPluginModule.js +27 -0
- package/lib/cjs/heat-map-chart-model.js +56 -0
- package/lib/cjs/index-federation.js +55 -0
- package/lib/cjs/index.js +47 -0
- package/lib/cjs/setup-tests.js +19 -0
- package/lib/cjs/utils/data-transform.js +34 -0
- package/lib/cjs/utils/get-formatted-axis-label.js +48 -0
- package/lib/cjs/utils/index.js +32 -0
- package/lib/cjs/utils/thresholds.js +22 -0
- package/lib/components/HeatMapChart.d.ts +27 -0
- package/lib/components/HeatMapChart.d.ts.map +1 -0
- package/lib/components/HeatMapChart.js +141 -0
- package/lib/components/HeatMapChart.js.map +1 -0
- package/lib/components/HeatMapChartOptionsEditorSettings.d.ts +4 -0
- package/lib/components/HeatMapChartOptionsEditorSettings.d.ts.map +1 -0
- package/lib/components/HeatMapChartOptionsEditorSettings.js +72 -0
- package/lib/components/HeatMapChartOptionsEditorSettings.js.map +1 -0
- package/lib/components/HeatMapChartPanel.d.ts +7 -0
- package/lib/components/HeatMapChartPanel.d.ts.map +1 -0
- package/lib/components/HeatMapChartPanel.js +165 -0
- package/lib/components/HeatMapChartPanel.js.map +1 -0
- package/lib/components/HeatMapTooltip.d.ts +16 -0
- package/lib/components/HeatMapTooltip.d.ts.map +1 -0
- package/lib/components/HeatMapTooltip.js +50 -0
- package/lib/components/HeatMapTooltip.js.map +1 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +17 -0
- package/lib/components/index.js.map +1 -0
- package/lib/env.d.js +15 -0
- package/lib/env.d.js.map +1 -0
- package/lib/getPluginModule.d.ts +6 -0
- package/lib/getPluginModule.d.ts.map +1 -0
- package/lib/getPluginModule.js +16 -0
- package/lib/getPluginModule.js.map +1 -0
- package/lib/heat-map-chart-model.d.ts +27 -0
- package/lib/heat-map-chart-model.d.ts.map +1 -0
- package/lib/heat-map-chart-model.js +30 -0
- package/lib/heat-map-chart-model.js.map +1 -0
- package/lib/index-federation.d.ts +1 -0
- package/lib/index-federation.d.ts.map +1 -0
- package/lib/index-federation.js +15 -0
- package/lib/index-federation.js.map +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -0
- package/lib/setup-tests.d.ts +2 -0
- package/lib/setup-tests.d.ts.map +1 -0
- package/lib/setup-tests.js +17 -0
- package/lib/setup-tests.js.map +1 -0
- package/lib/utils/data-transform.d.ts +5 -0
- package/lib/utils/data-transform.d.ts.map +1 -0
- package/lib/utils/data-transform.js +18 -0
- package/lib/utils/data-transform.js.map +1 -0
- package/lib/utils/get-formatted-axis-label.d.ts +2 -0
- package/lib/utils/get-formatted-axis-label.d.ts.map +1 -0
- package/lib/utils/get-formatted-axis-label.js +41 -0
- package/lib/utils/get-formatted-axis-label.js.map +1 -0
- package/lib/utils/index.d.ts +4 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +17 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/thresholds.d.ts +4 -0
- package/lib/utils/thresholds.d.ts.map +1 -0
- package/lib/utils/thresholds.js +14 -0
- package/lib/utils/thresholds.js.map +1 -0
- package/mf-manifest.json +169 -0
- package/mf-stats.json +202 -0
- package/package.json +52 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/get-formatted-axis-label.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 { formatWithTimeZone } from '@perses-dev/components';\n\n// https://echarts.apache.org/en/option.html#xAxis.axisLabel.formatter\nexport function getFormattedHeatmapAxisLabel(rangeMs: number, timezone: string) {\n return function (value: number): string {\n const dayMs = 86400000;\n const monthMs = 2629440000;\n const yearMs = 31536000000;\n\n const timeStamp = new Date(Number(value));\n\n // more than 5 years\n if (rangeMs > yearMs * 5) {\n return formatWithTimeZone(timeStamp, 'yyy', timezone);\n }\n\n // more than 2 years\n if (rangeMs > yearMs * 2) {\n return formatWithTimeZone(timeStamp, 'MMM yyy', timezone);\n }\n\n // between 5 days to 6 months\n if (rangeMs > dayMs * 10 && rangeMs < monthMs * 6) {\n return formatWithTimeZone(timeStamp, 'dd.MM', timezone); // 12-01\n }\n\n // between 2 and 10 days\n if (rangeMs > dayMs * 2 && rangeMs <= dayMs * 10) {\n return formatWithTimeZone(timeStamp, 'dd.MM HH:mm', timezone); // 12-01; // 12-01 12:30\n }\n\n return formatWithTimeZone(timeStamp, 'HH:mm', timezone);\n };\n}\n"],"names":["formatWithTimeZone","getFormattedHeatmapAxisLabel","rangeMs","timezone","value","dayMs","monthMs","yearMs","timeStamp","Date","Number"],"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,kBAAkB,QAAQ,yBAAyB;AAE5D,sEAAsE;AACtE,OAAO,SAASC,6BAA6BC,OAAe,EAAEC,QAAgB;IAC5E,OAAO,SAAUC,KAAa;QAC5B,MAAMC,QAAQ;QACd,MAAMC,UAAU;QAChB,MAAMC,SAAS;QAEf,MAAMC,YAAY,IAAIC,KAAKC,OAAON;QAElC,oBAAoB;QACpB,IAAIF,UAAUK,SAAS,GAAG;YACxB,OAAOP,mBAAmBQ,WAAW,OAAOL;QAC9C;QAEA,oBAAoB;QACpB,IAAID,UAAUK,SAAS,GAAG;YACxB,OAAOP,mBAAmBQ,WAAW,WAAWL;QAClD;QAEA,6BAA6B;QAC7B,IAAID,UAAUG,QAAQ,MAAMH,UAAUI,UAAU,GAAG;YACjD,OAAON,mBAAmBQ,WAAW,SAASL,WAAW,QAAQ;QACnE;QAEA,wBAAwB;QACxB,IAAID,UAAUG,QAAQ,KAAKH,WAAWG,QAAQ,IAAI;YAChD,OAAOL,mBAAmBQ,WAAW,eAAeL,WAAW,wBAAwB;QACzF;QAEA,OAAOH,mBAAmBQ,WAAW,SAASL;IAChD;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAaA,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright 2025 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
export * from './data-transform';
|
|
14
|
+
export * from './get-formatted-axis-label';
|
|
15
|
+
export * from './thresholds';
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/index.ts"],"sourcesContent":["// Copyright 2025 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\nexport * from './data-transform';\nexport * from './get-formatted-axis-label';\nexport * from './thresholds';\n"],"names":[],"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,cAAc,mBAAmB;AACjC,cAAc,6BAA6B;AAC3C,cAAc,eAAe"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThresholdOptions } from '@perses-dev/core';
|
|
2
|
+
import { PersesChartsTheme } from '@perses-dev/components';
|
|
3
|
+
export declare function getColorFromThresholds(value: number, thresholds: ThresholdOptions | undefined, chartsTheme: PersesChartsTheme, defaultColor: string): string | null;
|
|
4
|
+
//# sourceMappingURL=thresholds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thresholds.d.ts","sourceRoot":"","sources":["../../../src/utils/thresholds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,gBAAgB,GAAG,SAAS,EACxC,WAAW,EAAE,iBAAiB,EAC9B,YAAY,EAAE,MAAM,GACnB,MAAM,GAAG,IAAI,CAcf"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function getColorFromThresholds(value, thresholds, chartsTheme, defaultColor) {
|
|
2
|
+
if (thresholds?.steps) {
|
|
3
|
+
const matchingColors = thresholds.steps.map((step, index)=>{
|
|
4
|
+
if (value >= step.value) {
|
|
5
|
+
return step.color ?? chartsTheme.thresholds.palette[index] ?? thresholds.defaultColor ?? defaultColor;
|
|
6
|
+
}
|
|
7
|
+
return null;
|
|
8
|
+
}).filter((color)=>color !== null);
|
|
9
|
+
return matchingColors[matchingColors.length - 1] ?? thresholds.defaultColor ?? defaultColor;
|
|
10
|
+
}
|
|
11
|
+
return thresholds?.defaultColor ?? defaultColor;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=thresholds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/thresholds.ts"],"sourcesContent":["import { ThresholdOptions } from '@perses-dev/core';\nimport { PersesChartsTheme } from '@perses-dev/components';\n\nexport function getColorFromThresholds(\n value: number,\n thresholds: ThresholdOptions | undefined,\n chartsTheme: PersesChartsTheme,\n defaultColor: string\n): string | null {\n if (thresholds?.steps) {\n const matchingColors = thresholds.steps\n .map((step, index) => {\n if (value >= step.value) {\n return step.color ?? chartsTheme.thresholds.palette[index] ?? thresholds.defaultColor ?? defaultColor;\n }\n return null;\n })\n .filter((color): color is string => color !== null);\n\n return matchingColors[matchingColors.length - 1] ?? thresholds.defaultColor ?? defaultColor;\n }\n return thresholds?.defaultColor ?? defaultColor;\n}\n"],"names":["getColorFromThresholds","value","thresholds","chartsTheme","defaultColor","steps","matchingColors","map","step","index","color","palette","filter","length"],"mappings":"AAGA,OAAO,SAASA,uBACdC,KAAa,EACbC,UAAwC,EACxCC,WAA8B,EAC9BC,YAAoB;IAEpB,IAAIF,YAAYG,OAAO;QACrB,MAAMC,iBAAiBJ,WAAWG,KAAK,CACpCE,GAAG,CAAC,CAACC,MAAMC;YACV,IAAIR,SAASO,KAAKP,KAAK,EAAE;gBACvB,OAAOO,KAAKE,KAAK,IAAIP,YAAYD,UAAU,CAACS,OAAO,CAACF,MAAM,IAAIP,WAAWE,YAAY,IAAIA;YAC3F;YACA,OAAO;QACT,GACCQ,MAAM,CAAC,CAACF,QAA2BA,UAAU;QAEhD,OAAOJ,cAAc,CAACA,eAAeO,MAAM,GAAG,EAAE,IAAIX,WAAWE,YAAY,IAAIA;IACjF;IACA,OAAOF,YAAYE,gBAAgBA;AACrC"}
|
package/mf-manifest.json
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "HeatMapChart",
|
|
3
|
+
"name": "HeatMapChart",
|
|
4
|
+
"metaData": {
|
|
5
|
+
"name": "HeatMapChart",
|
|
6
|
+
"type": "app",
|
|
7
|
+
"buildInfo": {
|
|
8
|
+
"buildVersion": "0.2.0",
|
|
9
|
+
"buildName": "@perses-dev/heatmap-chart-plugin"
|
|
10
|
+
},
|
|
11
|
+
"remoteEntry": {
|
|
12
|
+
"name": "__mf/js/HeatMapChart.81916a67.js",
|
|
13
|
+
"path": "",
|
|
14
|
+
"type": "global"
|
|
15
|
+
},
|
|
16
|
+
"types": {
|
|
17
|
+
"path": "",
|
|
18
|
+
"name": "",
|
|
19
|
+
"zip": "",
|
|
20
|
+
"api": ""
|
|
21
|
+
},
|
|
22
|
+
"globalName": "HeatMapChart",
|
|
23
|
+
"pluginVersion": "0.18.1",
|
|
24
|
+
"prefetchInterface": false,
|
|
25
|
+
"publicPath": "/plugins/HeatMapChart/"
|
|
26
|
+
},
|
|
27
|
+
"shared": [
|
|
28
|
+
{
|
|
29
|
+
"id": "HeatMapChart:@perses-dev/components",
|
|
30
|
+
"name": "@perses-dev/components",
|
|
31
|
+
"version": "0.52.0-beta.5",
|
|
32
|
+
"singleton": true,
|
|
33
|
+
"requiredVersion": "^0.52.0-beta.5",
|
|
34
|
+
"assets": {
|
|
35
|
+
"js": {
|
|
36
|
+
"async": [],
|
|
37
|
+
"sync": [
|
|
38
|
+
"__mf/js/async/469.15f49b0f.js"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"css": {
|
|
42
|
+
"async": [],
|
|
43
|
+
"sync": []
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "HeatMapChart:@perses-dev/core",
|
|
49
|
+
"name": "@perses-dev/core",
|
|
50
|
+
"version": "0.52.0-beta.5",
|
|
51
|
+
"singleton": true,
|
|
52
|
+
"requiredVersion": "^0.52.0-beta.5",
|
|
53
|
+
"assets": {
|
|
54
|
+
"js": {
|
|
55
|
+
"async": [],
|
|
56
|
+
"sync": [
|
|
57
|
+
"__mf/js/async/934.6f607fed.js"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"css": {
|
|
61
|
+
"async": [],
|
|
62
|
+
"sync": []
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "HeatMapChart:immer",
|
|
68
|
+
"name": "immer",
|
|
69
|
+
"version": "10.1.1",
|
|
70
|
+
"singleton": true,
|
|
71
|
+
"requiredVersion": "^10.1.1",
|
|
72
|
+
"assets": {
|
|
73
|
+
"js": {
|
|
74
|
+
"async": [],
|
|
75
|
+
"sync": [
|
|
76
|
+
"__mf/js/async/774.0d1a003f.js"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"css": {
|
|
80
|
+
"async": [],
|
|
81
|
+
"sync": []
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "HeatMapChart:lodash",
|
|
87
|
+
"name": "lodash",
|
|
88
|
+
"version": "4.17.21",
|
|
89
|
+
"singleton": true,
|
|
90
|
+
"requiredVersion": "^4.17.21",
|
|
91
|
+
"assets": {
|
|
92
|
+
"js": {
|
|
93
|
+
"async": [],
|
|
94
|
+
"sync": [
|
|
95
|
+
"__mf/js/async/981.75e172bb.js"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"css": {
|
|
99
|
+
"async": [],
|
|
100
|
+
"sync": []
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "HeatMapChart:react-dom",
|
|
106
|
+
"name": "react-dom",
|
|
107
|
+
"version": "18.3.1",
|
|
108
|
+
"singleton": true,
|
|
109
|
+
"requiredVersion": "18.2.0",
|
|
110
|
+
"assets": {
|
|
111
|
+
"js": {
|
|
112
|
+
"async": [],
|
|
113
|
+
"sync": [
|
|
114
|
+
"__mf/js/async/173.c3418567.js"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"css": {
|
|
118
|
+
"async": [],
|
|
119
|
+
"sync": []
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "HeatMapChart:react",
|
|
125
|
+
"name": "react",
|
|
126
|
+
"version": "18.3.1",
|
|
127
|
+
"singleton": true,
|
|
128
|
+
"requiredVersion": "18.2.0",
|
|
129
|
+
"assets": {
|
|
130
|
+
"js": {
|
|
131
|
+
"async": [],
|
|
132
|
+
"sync": [
|
|
133
|
+
"__mf/js/async/964.944e7b15.js"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
"css": {
|
|
137
|
+
"async": [],
|
|
138
|
+
"sync": []
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"remotes": [],
|
|
144
|
+
"exposes": [
|
|
145
|
+
{
|
|
146
|
+
"id": "HeatMapChart:HeatMapChart",
|
|
147
|
+
"name": "HeatMapChart",
|
|
148
|
+
"assets": {
|
|
149
|
+
"js": {
|
|
150
|
+
"sync": [
|
|
151
|
+
"__mf/js/async/293.f3a89fef.js",
|
|
152
|
+
"__mf/js/async/482.cd2ab58b.js",
|
|
153
|
+
"__mf/js/async/__federation_expose_HeatMapChart.ab402c3a.js"
|
|
154
|
+
],
|
|
155
|
+
"async": [
|
|
156
|
+
"__mf/js/async/790.930331af.js"
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"css": {
|
|
160
|
+
"sync": [],
|
|
161
|
+
"async": [
|
|
162
|
+
"__mf/css/async/341.2a93d99b.css"
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"path": "./HeatMapChart"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
package/mf-stats.json
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "HeatMapChart",
|
|
3
|
+
"name": "HeatMapChart",
|
|
4
|
+
"metaData": {
|
|
5
|
+
"name": "HeatMapChart",
|
|
6
|
+
"type": "app",
|
|
7
|
+
"buildInfo": {
|
|
8
|
+
"buildVersion": "0.2.0",
|
|
9
|
+
"buildName": "@perses-dev/heatmap-chart-plugin"
|
|
10
|
+
},
|
|
11
|
+
"remoteEntry": {
|
|
12
|
+
"name": "__mf/js/HeatMapChart.81916a67.js",
|
|
13
|
+
"path": "",
|
|
14
|
+
"type": "global"
|
|
15
|
+
},
|
|
16
|
+
"types": {
|
|
17
|
+
"path": "",
|
|
18
|
+
"name": "",
|
|
19
|
+
"zip": "",
|
|
20
|
+
"api": ""
|
|
21
|
+
},
|
|
22
|
+
"globalName": "HeatMapChart",
|
|
23
|
+
"pluginVersion": "0.18.1",
|
|
24
|
+
"prefetchInterface": false,
|
|
25
|
+
"publicPath": "/plugins/HeatMapChart/"
|
|
26
|
+
},
|
|
27
|
+
"shared": [
|
|
28
|
+
{
|
|
29
|
+
"singleton": true,
|
|
30
|
+
"requiredVersion": "^0.52.0-beta.5",
|
|
31
|
+
"shareScope": "default",
|
|
32
|
+
"name": "@perses-dev/components",
|
|
33
|
+
"version": "0.52.0-beta.5",
|
|
34
|
+
"eager": false,
|
|
35
|
+
"id": "HeatMapChart:@perses-dev/components",
|
|
36
|
+
"assets": {
|
|
37
|
+
"js": {
|
|
38
|
+
"async": [],
|
|
39
|
+
"sync": [
|
|
40
|
+
"__mf/js/async/469.15f49b0f.js"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"css": {
|
|
44
|
+
"async": [],
|
|
45
|
+
"sync": []
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"usedIn": [
|
|
49
|
+
"./HeatMapChart"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"singleton": true,
|
|
54
|
+
"requiredVersion": "^0.52.0-beta.5",
|
|
55
|
+
"shareScope": "default",
|
|
56
|
+
"name": "@perses-dev/core",
|
|
57
|
+
"version": "0.52.0-beta.5",
|
|
58
|
+
"eager": false,
|
|
59
|
+
"id": "HeatMapChart:@perses-dev/core",
|
|
60
|
+
"assets": {
|
|
61
|
+
"js": {
|
|
62
|
+
"async": [],
|
|
63
|
+
"sync": [
|
|
64
|
+
"__mf/js/async/934.6f607fed.js"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"css": {
|
|
68
|
+
"async": [],
|
|
69
|
+
"sync": []
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"usedIn": [
|
|
73
|
+
"./HeatMapChart"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"singleton": true,
|
|
78
|
+
"requiredVersion": "^10.1.1",
|
|
79
|
+
"shareScope": "default",
|
|
80
|
+
"name": "immer",
|
|
81
|
+
"version": "10.1.1",
|
|
82
|
+
"eager": false,
|
|
83
|
+
"id": "HeatMapChart:immer",
|
|
84
|
+
"assets": {
|
|
85
|
+
"js": {
|
|
86
|
+
"async": [],
|
|
87
|
+
"sync": [
|
|
88
|
+
"__mf/js/async/774.0d1a003f.js"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"css": {
|
|
92
|
+
"async": [],
|
|
93
|
+
"sync": []
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"usedIn": [
|
|
97
|
+
"./HeatMapChart"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"singleton": true,
|
|
102
|
+
"requiredVersion": "^4.17.21",
|
|
103
|
+
"shareScope": "default",
|
|
104
|
+
"name": "lodash",
|
|
105
|
+
"version": "4.17.21",
|
|
106
|
+
"eager": false,
|
|
107
|
+
"id": "HeatMapChart:lodash",
|
|
108
|
+
"assets": {
|
|
109
|
+
"js": {
|
|
110
|
+
"async": [],
|
|
111
|
+
"sync": [
|
|
112
|
+
"__mf/js/async/981.75e172bb.js"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"css": {
|
|
116
|
+
"async": [],
|
|
117
|
+
"sync": []
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"usedIn": []
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"singleton": true,
|
|
124
|
+
"requiredVersion": "18.2.0",
|
|
125
|
+
"shareScope": "default",
|
|
126
|
+
"name": "react-dom",
|
|
127
|
+
"version": "18.3.1",
|
|
128
|
+
"eager": false,
|
|
129
|
+
"id": "HeatMapChart:react-dom",
|
|
130
|
+
"assets": {
|
|
131
|
+
"js": {
|
|
132
|
+
"async": [],
|
|
133
|
+
"sync": [
|
|
134
|
+
"__mf/js/async/173.c3418567.js"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"css": {
|
|
138
|
+
"async": [],
|
|
139
|
+
"sync": []
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"usedIn": []
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"singleton": true,
|
|
146
|
+
"requiredVersion": "18.2.0",
|
|
147
|
+
"shareScope": "default",
|
|
148
|
+
"name": "react",
|
|
149
|
+
"version": "18.3.1",
|
|
150
|
+
"eager": false,
|
|
151
|
+
"id": "HeatMapChart:react",
|
|
152
|
+
"assets": {
|
|
153
|
+
"js": {
|
|
154
|
+
"async": [],
|
|
155
|
+
"sync": [
|
|
156
|
+
"__mf/js/async/964.944e7b15.js"
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"css": {
|
|
160
|
+
"async": [],
|
|
161
|
+
"sync": []
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"usedIn": [
|
|
165
|
+
"./HeatMapChart"
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"remotes": [],
|
|
170
|
+
"exposes": [
|
|
171
|
+
{
|
|
172
|
+
"path": "./HeatMapChart",
|
|
173
|
+
"id": "HeatMapChart:HeatMapChart",
|
|
174
|
+
"name": "HeatMapChart",
|
|
175
|
+
"requires": [
|
|
176
|
+
"react",
|
|
177
|
+
"immer",
|
|
178
|
+
"@perses-dev/components",
|
|
179
|
+
"@perses-dev/core"
|
|
180
|
+
],
|
|
181
|
+
"file": "src/HeatMapChart.ts",
|
|
182
|
+
"assets": {
|
|
183
|
+
"js": {
|
|
184
|
+
"sync": [
|
|
185
|
+
"__mf/js/async/293.f3a89fef.js",
|
|
186
|
+
"__mf/js/async/482.cd2ab58b.js",
|
|
187
|
+
"__mf/js/async/__federation_expose_HeatMapChart.ab402c3a.js"
|
|
188
|
+
],
|
|
189
|
+
"async": [
|
|
190
|
+
"__mf/js/async/790.930331af.js"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"css": {
|
|
194
|
+
"sync": [],
|
|
195
|
+
"async": [
|
|
196
|
+
"__mf/css/async/341.2a93d99b.css"
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@perses-dev/heatmap-chart-plugin",
|
|
3
|
+
"version": "0.2.0",
|
|
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
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "rsbuild dev",
|
|
14
|
+
"build": "npm run build-mf && concurrently \"npm:build:*\"",
|
|
15
|
+
"build-mf": "rsbuild build",
|
|
16
|
+
"build:cjs": "swc ./src -d dist/lib/cjs --strip-leading-paths --config-file ../.cjs.swcrc",
|
|
17
|
+
"build:esm": "swc ./src -d dist/lib --strip-leading-paths --config-file ../.swcrc",
|
|
18
|
+
"build:types": "tsc --project tsconfig.build.json",
|
|
19
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
20
|
+
"test": "cross-env LC_ALL=C TZ=UTC jest",
|
|
21
|
+
"type-check": "tsc --noEmit"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@perses-dev/components": "^0.52.0-beta.5",
|
|
25
|
+
"@perses-dev/core": "^0.52.0-beta.5",
|
|
26
|
+
"@perses-dev/plugin-system": "^0.52.0-beta.5",
|
|
27
|
+
"echarts": "5.5.0",
|
|
28
|
+
"lodash": "^4.17.21",
|
|
29
|
+
"react": "^17.0.2 || ^18.0.0",
|
|
30
|
+
"react-dom": "^17.0.2 || ^18.0.0",
|
|
31
|
+
"immer": "^10.1.1"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"lib/**/*",
|
|
35
|
+
"__mf/**/*",
|
|
36
|
+
"mf-manifest.json",
|
|
37
|
+
"mf-stats.json"
|
|
38
|
+
],
|
|
39
|
+
"perses": {
|
|
40
|
+
"plugins": [
|
|
41
|
+
{
|
|
42
|
+
"kind": "Panel",
|
|
43
|
+
"spec": {
|
|
44
|
+
"name": "HeatMapChart",
|
|
45
|
+
"display": {
|
|
46
|
+
"name": "HeatMap Chart"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|