@perses-dev/stat-chart-plugin 0.6.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 +41 -0
- package/__mf/css/async/263.1ed8bb01.css +1 -0
- package/__mf/css/async/341.1ed8bb01.css +1 -0
- package/__mf/css/async/759.1ed8bb01.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/435.f40076fc.js +5 -0
- package/__mf/js/StatChart.b0400032.js +5 -0
- package/__mf/js/async/162.6eaaf026.js +73 -0
- package/__mf/js/async/162.6eaaf026.js.LICENSE.txt +19 -0
- package/__mf/js/async/173.b6c742e7.js +2 -0
- package/__mf/js/async/173.b6c742e7.js.LICENSE.txt +19 -0
- package/__mf/js/async/214.60d550e8.js +1 -0
- package/__mf/js/async/224.978cad14.js +1 -0
- package/__mf/js/async/238.6c65e7fc.js +1 -0
- package/__mf/js/async/292.4573cfd2.js +1 -0
- package/__mf/js/async/298.0f019169.js +1 -0
- package/__mf/js/async/318.98a6e364.js +83 -0
- package/__mf/js/async/318.98a6e364.js.LICENSE.txt +27 -0
- package/__mf/js/async/488.078788e1.js +1 -0
- package/__mf/js/async/610.dad41cbd.js +1 -0
- package/__mf/js/async/620.415051b8.js +2 -0
- package/__mf/js/async/620.415051b8.js.LICENSE.txt +9 -0
- package/__mf/js/async/651.4eb924e1.js +1 -0
- package/__mf/js/async/656.dbf72cfa.js +1 -0
- package/__mf/js/async/694.5088b7d2.js +1 -0
- package/__mf/js/async/738.5905ca00.js +1 -0
- package/__mf/js/async/740.6ca05ea5.js +1 -0
- package/__mf/js/async/75.fb6da1e8.js +1 -0
- package/__mf/js/async/770.0eef8b15.js +1 -0
- package/__mf/js/async/870.3ed3413d.js +29 -0
- package/__mf/js/async/870.3ed3413d.js.LICENSE.txt +59 -0
- package/__mf/js/async/877.0e870142.js +65 -0
- package/__mf/js/async/960.b6b50cb1.js +2 -0
- package/__mf/js/async/960.b6b50cb1.js.LICENSE.txt +8 -0
- package/__mf/js/async/964.f3efac0a.js +2 -0
- package/__mf/js/async/964.f3efac0a.js.LICENSE.txt +9 -0
- package/__mf/js/async/981.0942fcbb.js +2 -0
- package/__mf/js/async/981.0942fcbb.js.LICENSE.txt +8 -0
- package/__mf/js/async/996.7e490e79.js +2 -0
- package/__mf/js/async/996.7e490e79.js.LICENSE.txt +24 -0
- package/__mf/js/async/__federation_expose_StatChart.0d43d15e.js +1 -0
- package/__mf/js/async/lib-router.3a3f0205.js +2 -0
- package/__mf/js/async/lib-router.3a3f0205.js.LICENSE.txt +32 -0
- package/__mf/js/main.628b2309.js +1 -0
- package/lib/StatChart.d.ts +8 -0
- package/lib/StatChart.d.ts.map +1 -0
- package/lib/StatChart.js +37 -0
- package/lib/StatChart.js.map +1 -0
- package/lib/StatChartOptionsEditorSettings.d.ts +4 -0
- package/lib/StatChartOptionsEditorSettings.d.ts.map +1 -0
- package/lib/StatChartOptionsEditorSettings.js +102 -0
- package/lib/StatChartOptionsEditorSettings.js.map +1 -0
- package/lib/StatChartPanel.d.ts +7 -0
- package/lib/StatChartPanel.d.ts.map +1 -0
- package/lib/StatChartPanel.js +119 -0
- package/lib/StatChartPanel.js.map +1 -0
- package/lib/StatChartValueMappingEditor.d.ts +6 -0
- package/lib/StatChartValueMappingEditor.d.ts.map +1 -0
- package/lib/StatChartValueMappingEditor.js +28 -0
- package/lib/StatChartValueMappingEditor.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/StatChart.js +43 -0
- package/lib/cjs/StatChartOptionsEditorSettings.js +115 -0
- package/lib/cjs/StatChartPanel.js +127 -0
- package/lib/cjs/StatChartValueMappingEditor.js +36 -0
- package/lib/cjs/bootstrap.js +26 -0
- package/lib/cjs/env.d.js +14 -0
- package/lib/cjs/getPluginModule.js +27 -0
- package/lib/cjs/index-federation.js +55 -0
- package/lib/cjs/index.js +29 -0
- package/lib/cjs/setup-tests.js +19 -0
- package/lib/cjs/stat-chart-model.js +31 -0
- package/lib/cjs/utils/calculate-value.js +30 -0
- package/lib/cjs/utils/data-transform.js +36 -0
- package/lib/cjs/utils/get-color.js +66 -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/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 +7 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +8 -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/stat-chart-model.d.ts +25 -0
- package/lib/stat-chart-model.d.ts.map +1 -0
- package/lib/stat-chart-model.js +23 -0
- package/lib/stat-chart-model.js.map +1 -0
- package/lib/utils/calculate-value.d.ts +3 -0
- package/lib/utils/calculate-value.d.ts.map +1 -0
- package/lib/utils/calculate-value.js +22 -0
- package/lib/utils/calculate-value.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 +28 -0
- package/lib/utils/data-transform.js.map +1 -0
- package/lib/utils/get-color.d.ts +6 -0
- package/lib/utils/get-color.d.ts.map +1 -0
- package/lib/utils/get-color.js +58 -0
- package/lib/utils/get-color.js.map +1 -0
- package/mf-manifest.json +320 -0
- package/mf-stats.json +365 -0
- package/package.json +53 -0
|
@@ -0,0 +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 (!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) {\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","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,IAAI,CAACH,SAAU,CAACE,YAAYE,SAAS,CAACH,UAAW;QAC/C,OAAOE;IACT;IAEA,uBAAuB;IACvB,IAAIF,UAAUI,QAAQ;QACpB,MAAMC,oBAAoBC,qBAAqBP,OAAOC;QACtD,IAAIK,mBAAmB;YACrB,OAAOA;QACT;IACF;IAEA,wBAAwB;IACxB,IAAIJ,YAAY;QACd,MAAMM,sBAAsBC,uBAAuBT,OAAOE,YAAYJ,aAAaK;QACnF,IAAIK,qBAAqB;YACvB,OAAOA;QACT;IACF;IAEA,4BAA4B;IAC5B,OAAOL;AACT;AAEA,SAASI,qBAAqBP,KAAqB,EAAEC,QAAwB;IAC3E,IAAIA,UAAUI,UAAUL,OAAO;QAC7B,MAAM,EAAEU,KAAK,EAAE,GAAGd,kBAAkBI,OAAOC;QAC3C,OAAOS,SAAS;IAClB;IACA,OAAO;AACT;AAEA,SAASD,uBACPT,KAAqB,EACrBE,UAA4B,EAC5BJ,WAA8B,EAC9BK,YAAoB;IAEpB,IAAID,YAAYE,SAAS,OAAOJ,UAAU,UAAU;QAClD,MAAMW,iBAAiBT,WAAWE,KAAK,CACpCQ,GAAG,CAAC,CAACC,MAAMC;YACV,IAAId,SAASa,KAAKb,KAAK,EAAE;gBACvB,OAAOa,KAAKH,KAAK,IAAIZ,YAAYI,UAAU,CAACa,OAAO,CAACD,MAAM,IAAIX;YAChE;YACA,OAAO;QACT,GACCa,MAAM,CAAC,CAACN,QAA2BA,UAAU;QAEhD,OAAOC,cAAc,CAACA,eAAeN,MAAM,GAAG,EAAE,IAAI;IACtD;IACA,OAAO;AACT"}
|
package/mf-manifest.json
ADDED
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "StatChart",
|
|
3
|
+
"name": "StatChart",
|
|
4
|
+
"metaData": {
|
|
5
|
+
"name": "StatChart",
|
|
6
|
+
"type": "app",
|
|
7
|
+
"buildInfo": {
|
|
8
|
+
"buildVersion": "0.6.0",
|
|
9
|
+
"buildName": "@perses-dev/stat-chart-plugin"
|
|
10
|
+
},
|
|
11
|
+
"remoteEntry": {
|
|
12
|
+
"name": "__mf/js/StatChart.b0400032.js",
|
|
13
|
+
"path": "",
|
|
14
|
+
"type": "global"
|
|
15
|
+
},
|
|
16
|
+
"types": {
|
|
17
|
+
"path": "",
|
|
18
|
+
"name": "",
|
|
19
|
+
"zip": "",
|
|
20
|
+
"api": ""
|
|
21
|
+
},
|
|
22
|
+
"globalName": "StatChart",
|
|
23
|
+
"pluginVersion": "0.11.2",
|
|
24
|
+
"prefetchInterface": false,
|
|
25
|
+
"publicPath": "/plugins/StatChart/"
|
|
26
|
+
},
|
|
27
|
+
"shared": [
|
|
28
|
+
{
|
|
29
|
+
"id": "StatChart:@emotion/react",
|
|
30
|
+
"name": "@emotion/react",
|
|
31
|
+
"version": "11.14.0",
|
|
32
|
+
"singleton": true,
|
|
33
|
+
"requiredVersion": "^11.11.3",
|
|
34
|
+
"assets": {
|
|
35
|
+
"js": {
|
|
36
|
+
"async": [
|
|
37
|
+
"__mf/js/async/964.f3efac0a.js"
|
|
38
|
+
],
|
|
39
|
+
"sync": [
|
|
40
|
+
"__mf/js/async/960.b6b50cb1.js"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"css": {
|
|
44
|
+
"async": [],
|
|
45
|
+
"sync": []
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "StatChart:@emotion/styled",
|
|
51
|
+
"name": "@emotion/styled",
|
|
52
|
+
"version": "11.14.0",
|
|
53
|
+
"singleton": true,
|
|
54
|
+
"requiredVersion": "^11.14.0",
|
|
55
|
+
"assets": {
|
|
56
|
+
"js": {
|
|
57
|
+
"async": [
|
|
58
|
+
"__mf/js/async/964.f3efac0a.js",
|
|
59
|
+
"__mf/js/async/960.b6b50cb1.js"
|
|
60
|
+
],
|
|
61
|
+
"sync": [
|
|
62
|
+
"__mf/js/async/694.5088b7d2.js",
|
|
63
|
+
"__mf/js/async/770.0eef8b15.js"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"css": {
|
|
67
|
+
"async": [],
|
|
68
|
+
"sync": []
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "StatChart:@hookform/resolvers",
|
|
74
|
+
"name": "@hookform/resolvers",
|
|
75
|
+
"version": "3.10.0",
|
|
76
|
+
"singleton": true,
|
|
77
|
+
"requiredVersion": "^3.10.0",
|
|
78
|
+
"assets": {
|
|
79
|
+
"js": {
|
|
80
|
+
"async": [
|
|
81
|
+
"__mf/js/async/964.f3efac0a.js"
|
|
82
|
+
],
|
|
83
|
+
"sync": [
|
|
84
|
+
"__mf/js/async/214.60d550e8.js",
|
|
85
|
+
"__mf/js/async/738.5905ca00.js"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"css": {
|
|
89
|
+
"async": [],
|
|
90
|
+
"sync": []
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "StatChart:@perses-dev/components",
|
|
96
|
+
"name": "@perses-dev/components",
|
|
97
|
+
"version": "0.51.0-beta.1",
|
|
98
|
+
"singleton": true,
|
|
99
|
+
"requiredVersion": "^0.51.0-beta.1",
|
|
100
|
+
"assets": {
|
|
101
|
+
"js": {
|
|
102
|
+
"async": [
|
|
103
|
+
"__mf/js/async/964.f3efac0a.js",
|
|
104
|
+
"__mf/js/async/173.b6c742e7.js",
|
|
105
|
+
"__mf/js/async/960.b6b50cb1.js",
|
|
106
|
+
"__mf/js/async/770.0eef8b15.js",
|
|
107
|
+
"__mf/js/async/740.6ca05ea5.js",
|
|
108
|
+
"__mf/js/async/75.fb6da1e8.js"
|
|
109
|
+
],
|
|
110
|
+
"sync": [
|
|
111
|
+
"__mf/js/async/870.3ed3413d.js"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"css": {
|
|
115
|
+
"async": [],
|
|
116
|
+
"sync": []
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "StatChart:@perses-dev/plugin-system",
|
|
122
|
+
"name": "@perses-dev/plugin-system",
|
|
123
|
+
"version": "0.51.0-beta.1",
|
|
124
|
+
"singleton": true,
|
|
125
|
+
"requiredVersion": "^0.51.0-beta.1",
|
|
126
|
+
"assets": {
|
|
127
|
+
"js": {
|
|
128
|
+
"async": [
|
|
129
|
+
"__mf/js/async/964.f3efac0a.js",
|
|
130
|
+
"__mf/js/async/173.b6c742e7.js",
|
|
131
|
+
"__mf/js/async/960.b6b50cb1.js",
|
|
132
|
+
"__mf/js/async/770.0eef8b15.js",
|
|
133
|
+
"__mf/js/async/224.978cad14.js",
|
|
134
|
+
"__mf/js/async/740.6ca05ea5.js",
|
|
135
|
+
"__mf/js/async/238.6c65e7fc.js",
|
|
136
|
+
"__mf/js/async/75.fb6da1e8.js",
|
|
137
|
+
"__mf/js/async/996.7e490e79.js",
|
|
138
|
+
"__mf/js/async/870.3ed3413d.js",
|
|
139
|
+
"__mf/js/async/298.0f019169.js",
|
|
140
|
+
"__mf/js/async/738.5905ca00.js",
|
|
141
|
+
"__mf/js/async/610.dad41cbd.js",
|
|
142
|
+
"__mf/js/async/981.0942fcbb.js"
|
|
143
|
+
],
|
|
144
|
+
"sync": [
|
|
145
|
+
"__mf/js/async/162.6eaaf026.js"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"css": {
|
|
149
|
+
"async": [
|
|
150
|
+
"__mf/css/async/263.1ed8bb01.css"
|
|
151
|
+
],
|
|
152
|
+
"sync": []
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"id": "StatChart:date-fns",
|
|
158
|
+
"name": "date-fns",
|
|
159
|
+
"version": "4.1.0",
|
|
160
|
+
"singleton": true,
|
|
161
|
+
"requiredVersion": "^4.1.0",
|
|
162
|
+
"assets": {
|
|
163
|
+
"js": {
|
|
164
|
+
"async": [],
|
|
165
|
+
"sync": [
|
|
166
|
+
"__mf/js/async/75.fb6da1e8.js"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
"css": {
|
|
170
|
+
"async": [],
|
|
171
|
+
"sync": []
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"id": "StatChart:echarts",
|
|
177
|
+
"name": "echarts",
|
|
178
|
+
"version": "5.5.0",
|
|
179
|
+
"singleton": true,
|
|
180
|
+
"requiredVersion": "^undefined",
|
|
181
|
+
"assets": {
|
|
182
|
+
"js": {
|
|
183
|
+
"async": [],
|
|
184
|
+
"sync": [
|
|
185
|
+
"__mf/js/async/610.dad41cbd.js"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"css": {
|
|
189
|
+
"async": [],
|
|
190
|
+
"sync": []
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": "StatChart:lodash",
|
|
196
|
+
"name": "lodash",
|
|
197
|
+
"version": "4.17.21",
|
|
198
|
+
"singleton": true,
|
|
199
|
+
"requiredVersion": "^4.17.21",
|
|
200
|
+
"assets": {
|
|
201
|
+
"js": {
|
|
202
|
+
"async": [],
|
|
203
|
+
"sync": [
|
|
204
|
+
"__mf/js/async/981.0942fcbb.js"
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
"css": {
|
|
208
|
+
"async": [],
|
|
209
|
+
"sync": []
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"id": "StatChart:react-dom",
|
|
215
|
+
"name": "react-dom",
|
|
216
|
+
"version": "18.3.1",
|
|
217
|
+
"singleton": true,
|
|
218
|
+
"requiredVersion": "18.2.0",
|
|
219
|
+
"assets": {
|
|
220
|
+
"js": {
|
|
221
|
+
"async": [
|
|
222
|
+
"__mf/js/async/964.f3efac0a.js"
|
|
223
|
+
],
|
|
224
|
+
"sync": [
|
|
225
|
+
"__mf/js/async/173.b6c742e7.js"
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
"css": {
|
|
229
|
+
"async": [],
|
|
230
|
+
"sync": []
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"id": "StatChart:react",
|
|
236
|
+
"name": "react",
|
|
237
|
+
"version": "18.3.1",
|
|
238
|
+
"singleton": true,
|
|
239
|
+
"requiredVersion": "18.2.0",
|
|
240
|
+
"assets": {
|
|
241
|
+
"js": {
|
|
242
|
+
"async": [],
|
|
243
|
+
"sync": [
|
|
244
|
+
"__mf/js/async/964.f3efac0a.js"
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
"css": {
|
|
248
|
+
"async": [],
|
|
249
|
+
"sync": []
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"id": "StatChart:date-fns-tz",
|
|
255
|
+
"name": "date-fns-tz",
|
|
256
|
+
"version": "3.2.0",
|
|
257
|
+
"singleton": true,
|
|
258
|
+
"requiredVersion": "^3.2.0",
|
|
259
|
+
"assets": {
|
|
260
|
+
"js": {
|
|
261
|
+
"async": [
|
|
262
|
+
"__mf/js/async/238.6c65e7fc.js",
|
|
263
|
+
"__mf/js/async/75.fb6da1e8.js"
|
|
264
|
+
],
|
|
265
|
+
"sync": [
|
|
266
|
+
"__mf/js/async/740.6ca05ea5.js"
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
"css": {
|
|
270
|
+
"async": [],
|
|
271
|
+
"sync": []
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"remotes": [],
|
|
277
|
+
"exposes": [
|
|
278
|
+
{
|
|
279
|
+
"id": "StatChart:StatChart",
|
|
280
|
+
"name": "StatChart",
|
|
281
|
+
"assets": {
|
|
282
|
+
"js": {
|
|
283
|
+
"sync": [
|
|
284
|
+
"__mf/js/async/318.98a6e364.js",
|
|
285
|
+
"__mf/js/async/298.0f019169.js",
|
|
286
|
+
"__mf/js/async/__federation_expose_StatChart.0d43d15e.js"
|
|
287
|
+
],
|
|
288
|
+
"async": [
|
|
289
|
+
"__mf/js/async/964.f3efac0a.js",
|
|
290
|
+
"__mf/js/async/960.b6b50cb1.js",
|
|
291
|
+
"__mf/js/async/770.0eef8b15.js",
|
|
292
|
+
"__mf/js/async/238.6c65e7fc.js",
|
|
293
|
+
"__mf/js/async/224.978cad14.js",
|
|
294
|
+
"__mf/js/async/292.4573cfd2.js",
|
|
295
|
+
"__mf/js/async/996.7e490e79.js",
|
|
296
|
+
"__mf/js/async/877.0e870142.js",
|
|
297
|
+
"__mf/js/async/870.3ed3413d.js",
|
|
298
|
+
"__mf/js/async/173.b6c742e7.js",
|
|
299
|
+
"__mf/js/async/740.6ca05ea5.js",
|
|
300
|
+
"__mf/js/async/75.fb6da1e8.js",
|
|
301
|
+
"__mf/js/async/lib-router.3a3f0205.js",
|
|
302
|
+
"__mf/js/async/162.6eaaf026.js",
|
|
303
|
+
"__mf/js/async/488.078788e1.js",
|
|
304
|
+
"__mf/js/async/738.5905ca00.js",
|
|
305
|
+
"__mf/js/async/610.dad41cbd.js",
|
|
306
|
+
"__mf/js/async/981.0942fcbb.js"
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
"css": {
|
|
310
|
+
"sync": [],
|
|
311
|
+
"async": [
|
|
312
|
+
"__mf/css/async/341.1ed8bb01.css",
|
|
313
|
+
"__mf/css/async/263.1ed8bb01.css"
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"path": "./StatChart"
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
}
|
package/mf-stats.json
ADDED
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "StatChart",
|
|
3
|
+
"name": "StatChart",
|
|
4
|
+
"metaData": {
|
|
5
|
+
"name": "StatChart",
|
|
6
|
+
"type": "app",
|
|
7
|
+
"buildInfo": {
|
|
8
|
+
"buildVersion": "0.6.0",
|
|
9
|
+
"buildName": "@perses-dev/stat-chart-plugin"
|
|
10
|
+
},
|
|
11
|
+
"remoteEntry": {
|
|
12
|
+
"name": "__mf/js/StatChart.b0400032.js",
|
|
13
|
+
"path": "",
|
|
14
|
+
"type": "global"
|
|
15
|
+
},
|
|
16
|
+
"types": {
|
|
17
|
+
"path": "",
|
|
18
|
+
"name": "",
|
|
19
|
+
"zip": "",
|
|
20
|
+
"api": ""
|
|
21
|
+
},
|
|
22
|
+
"globalName": "StatChart",
|
|
23
|
+
"pluginVersion": "0.11.2",
|
|
24
|
+
"prefetchInterface": false,
|
|
25
|
+
"publicPath": "/plugins/StatChart/"
|
|
26
|
+
},
|
|
27
|
+
"shared": [
|
|
28
|
+
{
|
|
29
|
+
"singleton": true,
|
|
30
|
+
"requiredVersion": "^11.11.3",
|
|
31
|
+
"shareScope": "default",
|
|
32
|
+
"name": "@emotion/react",
|
|
33
|
+
"version": "11.14.0",
|
|
34
|
+
"eager": false,
|
|
35
|
+
"id": "StatChart:@emotion/react",
|
|
36
|
+
"assets": {
|
|
37
|
+
"js": {
|
|
38
|
+
"async": [
|
|
39
|
+
"__mf/js/async/964.f3efac0a.js"
|
|
40
|
+
],
|
|
41
|
+
"sync": [
|
|
42
|
+
"__mf/js/async/960.b6b50cb1.js"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"css": {
|
|
46
|
+
"async": [],
|
|
47
|
+
"sync": []
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"usedIn": []
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"singleton": true,
|
|
54
|
+
"requiredVersion": "^11.14.0",
|
|
55
|
+
"shareScope": "default",
|
|
56
|
+
"name": "@emotion/styled",
|
|
57
|
+
"version": "11.14.0",
|
|
58
|
+
"eager": false,
|
|
59
|
+
"id": "StatChart:@emotion/styled",
|
|
60
|
+
"assets": {
|
|
61
|
+
"js": {
|
|
62
|
+
"async": [
|
|
63
|
+
"__mf/js/async/964.f3efac0a.js",
|
|
64
|
+
"__mf/js/async/960.b6b50cb1.js"
|
|
65
|
+
],
|
|
66
|
+
"sync": [
|
|
67
|
+
"__mf/js/async/694.5088b7d2.js",
|
|
68
|
+
"__mf/js/async/770.0eef8b15.js"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"css": {
|
|
72
|
+
"async": [],
|
|
73
|
+
"sync": []
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"usedIn": []
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"singleton": true,
|
|
80
|
+
"requiredVersion": "^3.10.0",
|
|
81
|
+
"shareScope": "default",
|
|
82
|
+
"name": "@hookform/resolvers",
|
|
83
|
+
"version": "3.10.0",
|
|
84
|
+
"eager": false,
|
|
85
|
+
"id": "StatChart:@hookform/resolvers",
|
|
86
|
+
"assets": {
|
|
87
|
+
"js": {
|
|
88
|
+
"async": [
|
|
89
|
+
"__mf/js/async/964.f3efac0a.js"
|
|
90
|
+
],
|
|
91
|
+
"sync": [
|
|
92
|
+
"__mf/js/async/214.60d550e8.js",
|
|
93
|
+
"__mf/js/async/738.5905ca00.js"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"css": {
|
|
97
|
+
"async": [],
|
|
98
|
+
"sync": []
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"usedIn": []
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"singleton": true,
|
|
105
|
+
"requiredVersion": "^0.51.0-beta.1",
|
|
106
|
+
"shareScope": "default",
|
|
107
|
+
"name": "@perses-dev/components",
|
|
108
|
+
"version": "0.51.0-beta.1",
|
|
109
|
+
"eager": false,
|
|
110
|
+
"id": "StatChart:@perses-dev/components",
|
|
111
|
+
"assets": {
|
|
112
|
+
"js": {
|
|
113
|
+
"async": [
|
|
114
|
+
"__mf/js/async/964.f3efac0a.js",
|
|
115
|
+
"__mf/js/async/173.b6c742e7.js",
|
|
116
|
+
"__mf/js/async/960.b6b50cb1.js",
|
|
117
|
+
"__mf/js/async/770.0eef8b15.js",
|
|
118
|
+
"__mf/js/async/740.6ca05ea5.js",
|
|
119
|
+
"__mf/js/async/75.fb6da1e8.js"
|
|
120
|
+
],
|
|
121
|
+
"sync": [
|
|
122
|
+
"__mf/js/async/870.3ed3413d.js"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"css": {
|
|
126
|
+
"async": [],
|
|
127
|
+
"sync": []
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"usedIn": [
|
|
131
|
+
"./StatChart"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"singleton": true,
|
|
136
|
+
"requiredVersion": "^0.51.0-beta.1",
|
|
137
|
+
"shareScope": "default",
|
|
138
|
+
"name": "@perses-dev/plugin-system",
|
|
139
|
+
"version": "0.51.0-beta.1",
|
|
140
|
+
"eager": false,
|
|
141
|
+
"id": "StatChart:@perses-dev/plugin-system",
|
|
142
|
+
"assets": {
|
|
143
|
+
"js": {
|
|
144
|
+
"async": [
|
|
145
|
+
"__mf/js/async/964.f3efac0a.js",
|
|
146
|
+
"__mf/js/async/173.b6c742e7.js",
|
|
147
|
+
"__mf/js/async/960.b6b50cb1.js",
|
|
148
|
+
"__mf/js/async/770.0eef8b15.js",
|
|
149
|
+
"__mf/js/async/224.978cad14.js",
|
|
150
|
+
"__mf/js/async/740.6ca05ea5.js",
|
|
151
|
+
"__mf/js/async/238.6c65e7fc.js",
|
|
152
|
+
"__mf/js/async/75.fb6da1e8.js",
|
|
153
|
+
"__mf/js/async/996.7e490e79.js",
|
|
154
|
+
"__mf/js/async/870.3ed3413d.js",
|
|
155
|
+
"__mf/js/async/298.0f019169.js",
|
|
156
|
+
"__mf/js/async/738.5905ca00.js",
|
|
157
|
+
"__mf/js/async/610.dad41cbd.js",
|
|
158
|
+
"__mf/js/async/981.0942fcbb.js"
|
|
159
|
+
],
|
|
160
|
+
"sync": [
|
|
161
|
+
"__mf/js/async/162.6eaaf026.js"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"css": {
|
|
165
|
+
"async": [
|
|
166
|
+
"__mf/css/async/263.1ed8bb01.css"
|
|
167
|
+
],
|
|
168
|
+
"sync": []
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"usedIn": [
|
|
172
|
+
"./StatChart"
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"singleton": true,
|
|
177
|
+
"requiredVersion": "^4.1.0",
|
|
178
|
+
"shareScope": "default",
|
|
179
|
+
"name": "date-fns",
|
|
180
|
+
"version": "4.1.0",
|
|
181
|
+
"eager": false,
|
|
182
|
+
"id": "StatChart:date-fns",
|
|
183
|
+
"assets": {
|
|
184
|
+
"js": {
|
|
185
|
+
"async": [],
|
|
186
|
+
"sync": [
|
|
187
|
+
"__mf/js/async/75.fb6da1e8.js"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"css": {
|
|
191
|
+
"async": [],
|
|
192
|
+
"sync": []
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"usedIn": []
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"singleton": true,
|
|
199
|
+
"requiredVersion": "^undefined",
|
|
200
|
+
"shareScope": "default",
|
|
201
|
+
"name": "echarts",
|
|
202
|
+
"version": "5.5.0",
|
|
203
|
+
"eager": false,
|
|
204
|
+
"id": "StatChart:echarts",
|
|
205
|
+
"assets": {
|
|
206
|
+
"js": {
|
|
207
|
+
"async": [],
|
|
208
|
+
"sync": [
|
|
209
|
+
"__mf/js/async/610.dad41cbd.js"
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"css": {
|
|
213
|
+
"async": [],
|
|
214
|
+
"sync": []
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"usedIn": []
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"singleton": true,
|
|
221
|
+
"requiredVersion": "^4.17.21",
|
|
222
|
+
"shareScope": "default",
|
|
223
|
+
"name": "lodash",
|
|
224
|
+
"version": "4.17.21",
|
|
225
|
+
"eager": false,
|
|
226
|
+
"id": "StatChart:lodash",
|
|
227
|
+
"assets": {
|
|
228
|
+
"js": {
|
|
229
|
+
"async": [],
|
|
230
|
+
"sync": [
|
|
231
|
+
"__mf/js/async/981.0942fcbb.js"
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
"css": {
|
|
235
|
+
"async": [],
|
|
236
|
+
"sync": []
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"usedIn": []
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"singleton": true,
|
|
243
|
+
"requiredVersion": "18.2.0",
|
|
244
|
+
"shareScope": "default",
|
|
245
|
+
"name": "react-dom",
|
|
246
|
+
"version": "18.3.1",
|
|
247
|
+
"eager": false,
|
|
248
|
+
"id": "StatChart:react-dom",
|
|
249
|
+
"assets": {
|
|
250
|
+
"js": {
|
|
251
|
+
"async": [
|
|
252
|
+
"__mf/js/async/964.f3efac0a.js"
|
|
253
|
+
],
|
|
254
|
+
"sync": [
|
|
255
|
+
"__mf/js/async/173.b6c742e7.js"
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"css": {
|
|
259
|
+
"async": [],
|
|
260
|
+
"sync": []
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"usedIn": []
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"singleton": true,
|
|
267
|
+
"requiredVersion": "18.2.0",
|
|
268
|
+
"shareScope": "default",
|
|
269
|
+
"name": "react",
|
|
270
|
+
"version": "18.3.1",
|
|
271
|
+
"eager": false,
|
|
272
|
+
"id": "StatChart:react",
|
|
273
|
+
"assets": {
|
|
274
|
+
"js": {
|
|
275
|
+
"async": [],
|
|
276
|
+
"sync": [
|
|
277
|
+
"__mf/js/async/964.f3efac0a.js"
|
|
278
|
+
]
|
|
279
|
+
},
|
|
280
|
+
"css": {
|
|
281
|
+
"async": [],
|
|
282
|
+
"sync": []
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"usedIn": [
|
|
286
|
+
"./StatChart"
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"singleton": true,
|
|
291
|
+
"requiredVersion": "^3.2.0",
|
|
292
|
+
"shareScope": "default",
|
|
293
|
+
"name": "date-fns-tz",
|
|
294
|
+
"version": "3.2.0",
|
|
295
|
+
"eager": false,
|
|
296
|
+
"id": "StatChart:date-fns-tz",
|
|
297
|
+
"assets": {
|
|
298
|
+
"js": {
|
|
299
|
+
"async": [
|
|
300
|
+
"__mf/js/async/238.6c65e7fc.js",
|
|
301
|
+
"__mf/js/async/75.fb6da1e8.js"
|
|
302
|
+
],
|
|
303
|
+
"sync": [
|
|
304
|
+
"__mf/js/async/740.6ca05ea5.js"
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
"css": {
|
|
308
|
+
"async": [],
|
|
309
|
+
"sync": []
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"usedIn": []
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
"remotes": [],
|
|
316
|
+
"exposes": [
|
|
317
|
+
{
|
|
318
|
+
"path": "./StatChart",
|
|
319
|
+
"id": "StatChart:StatChart",
|
|
320
|
+
"name": "StatChart",
|
|
321
|
+
"requires": [
|
|
322
|
+
"react",
|
|
323
|
+
"@perses-dev/components",
|
|
324
|
+
"@perses-dev/plugin-system"
|
|
325
|
+
],
|
|
326
|
+
"file": "src/StatChart.ts",
|
|
327
|
+
"assets": {
|
|
328
|
+
"js": {
|
|
329
|
+
"sync": [
|
|
330
|
+
"__mf/js/async/318.98a6e364.js",
|
|
331
|
+
"__mf/js/async/298.0f019169.js",
|
|
332
|
+
"__mf/js/async/__federation_expose_StatChart.0d43d15e.js"
|
|
333
|
+
],
|
|
334
|
+
"async": [
|
|
335
|
+
"__mf/js/async/964.f3efac0a.js",
|
|
336
|
+
"__mf/js/async/960.b6b50cb1.js",
|
|
337
|
+
"__mf/js/async/770.0eef8b15.js",
|
|
338
|
+
"__mf/js/async/238.6c65e7fc.js",
|
|
339
|
+
"__mf/js/async/224.978cad14.js",
|
|
340
|
+
"__mf/js/async/292.4573cfd2.js",
|
|
341
|
+
"__mf/js/async/996.7e490e79.js",
|
|
342
|
+
"__mf/js/async/877.0e870142.js",
|
|
343
|
+
"__mf/js/async/870.3ed3413d.js",
|
|
344
|
+
"__mf/js/async/173.b6c742e7.js",
|
|
345
|
+
"__mf/js/async/740.6ca05ea5.js",
|
|
346
|
+
"__mf/js/async/75.fb6da1e8.js",
|
|
347
|
+
"__mf/js/async/lib-router.3a3f0205.js",
|
|
348
|
+
"__mf/js/async/162.6eaaf026.js",
|
|
349
|
+
"__mf/js/async/488.078788e1.js",
|
|
350
|
+
"__mf/js/async/738.5905ca00.js",
|
|
351
|
+
"__mf/js/async/610.dad41cbd.js",
|
|
352
|
+
"__mf/js/async/981.0942fcbb.js"
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
"css": {
|
|
356
|
+
"sync": [],
|
|
357
|
+
"async": [
|
|
358
|
+
"__mf/css/async/341.1ed8bb01.css",
|
|
359
|
+
"__mf/css/async/263.1ed8bb01.css"
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
]
|
|
365
|
+
}
|