@perses-dev/status-history-chart-plugin 0.13.0 → 0.14.0-beta.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.
- package/__mf/js/StatusHistoryChart.b562e547.js +7 -0
- package/__mf/js/async/121.7c7dfd24.js +2 -0
- package/__mf/js/async/192.e0378d27.js +1 -0
- package/__mf/js/async/2.854844cd.js +1 -0
- package/__mf/js/async/235.7a97cc35.js +1 -0
- package/__mf/js/async/274.ba37d2a5.js +2 -0
- package/__mf/js/async/356.c6abe355.js +1 -0
- package/__mf/js/async/392.28f62ac0.js +2 -0
- package/__mf/js/async/470.5e20d4ce.js +2 -0
- package/__mf/js/async/481.c5d339b8.js +2 -0
- package/__mf/js/async/496.e922287d.js +1 -0
- package/__mf/js/async/525.581e52cb.js +2 -0
- package/__mf/js/async/587.8c8aa1fd.js +1 -0
- package/__mf/js/async/588.478d90f1.js +1 -0
- package/__mf/js/async/616.66d420a8.js +1 -0
- package/__mf/js/async/623.5838e6aa.js +1 -0
- package/__mf/js/async/628.447b1f89.js +3 -0
- package/__mf/js/async/644.06760cb8.js +110 -0
- package/__mf/js/async/71.2c2c2fe4.js +1 -0
- package/__mf/js/async/77.f97bba54.js +1 -0
- package/__mf/js/async/788.d10cf35c.js +43 -0
- package/__mf/js/async/{464.d426dd00.js.LICENSE.txt → 788.d10cf35c.js.LICENSE.txt} +41 -1
- package/__mf/js/async/873.6eef1fae.js +1 -0
- package/__mf/js/async/941.b4bb3575.js +2 -0
- package/__mf/js/async/947.3bd98a2b.js +2 -0
- package/__mf/js/async/968.f63cc1d1.js +1 -0
- package/__mf/js/async/978.63d6babd.js +1 -0
- package/__mf/js/async/__federation_expose_StatusHistoryChart.fb6fe4d9.js +23 -0
- package/__mf/js/async/lib-router.67526781.js +2 -0
- package/__mf/js/{main.3e9b5ca3.js → main.91a9d666.js} +2 -2
- package/lib/StatusHistoryChart.d.ts +3 -3
- package/lib/StatusHistoryChart.d.ts.map +1 -1
- package/lib/StatusHistoryChart.js +4 -4
- package/lib/StatusHistoryChart.js.map +1 -1
- package/lib/StatusHistoryChartBase.d.ts +3 -3
- package/lib/StatusHistoryChartBase.d.ts.map +1 -1
- package/lib/StatusHistoryChartBase.js +10 -10
- package/lib/StatusHistoryChartBase.js.map +1 -1
- package/lib/StatusHistoryChartOptionsEditorSettings.d.ts +2 -2
- package/lib/StatusHistoryChartOptionsEditorSettings.d.ts.map +1 -1
- package/lib/StatusHistoryChartOptionsEditorSettings.js +4 -4
- package/lib/StatusHistoryChartOptionsEditorSettings.js.map +1 -1
- package/lib/StatusHistoryPanel.d.ts +4 -4
- package/lib/StatusHistoryPanel.d.ts.map +1 -1
- package/lib/StatusHistoryPanel.js +7 -7
- package/lib/StatusHistoryPanel.js.map +1 -1
- package/lib/StatusHistoryTooltip.d.ts +2 -2
- package/lib/StatusHistoryTooltip.d.ts.map +1 -1
- package/lib/StatusHistoryTooltip.js +2 -2
- package/lib/StatusHistoryTooltip.js.map +1 -1
- package/lib/StatusHistoryValueMappingEditor.d.ts +3 -3
- package/lib/StatusHistoryValueMappingEditor.d.ts.map +1 -1
- package/lib/StatusHistoryValueMappingEditor.js +1 -1
- package/lib/StatusHistoryValueMappingEditor.js.map +1 -1
- package/lib/bootstrap.js +2 -2
- package/lib/getPluginModule.d.ts +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +3 -1
- package/lib/getPluginModule.js.map +1 -1
- package/lib/index-federation.js +1 -1
- package/lib/index.js +6 -6
- package/lib/index.js.map +1 -1
- package/lib/setup-tests.d.ts +1 -1
- package/lib/setup-tests.d.ts.map +1 -1
- package/lib/setup-tests.js +2 -2
- package/lib/setup-tests.js.map +1 -1
- package/lib/status-history-model.d.ts +2 -2
- package/lib/status-history-model.d.ts.map +1 -1
- package/lib/status-history-model.js.map +1 -1
- package/lib/utils/data-transform.d.ts +5 -5
- package/lib/utils/data-transform.d.ts.map +1 -1
- package/lib/utils/data-transform.js +4 -4
- package/lib/utils/data-transform.js.map +1 -1
- package/lib/utils/get-color.js +1 -2
- package/lib/utils/get-color.js.map +1 -1
- package/lib/utils/get-formatted-axis-label.js +1 -1
- package/lib/utils/get-timescale.d.ts +2 -2
- package/lib/utils/get-timescale.d.ts.map +1 -1
- package/lib/utils/get-timescale.js +1 -1
- package/lib/utils/get-timescale.js.map +1 -1
- package/lib/utils/get-tooltip-position.d.ts +1 -1
- package/lib/utils/get-tooltip-position.d.ts.map +1 -1
- package/lib/utils/get-tooltip-position.js.map +1 -1
- package/lib/utils/index.js +5 -5
- package/lib/utils/index.js.map +1 -1
- package/mf-manifest.json +35 -34
- package/mf-stats.json +37 -36
- package/package.json +10 -10
- package/__mf/js/StatusHistoryChart.946b9620.js +0 -7
- package/__mf/js/async/121.4774256d.js +0 -2
- package/__mf/js/async/177.b42019ec.js +0 -1
- package/__mf/js/async/187.e35200d2.js +0 -7
- package/__mf/js/async/187.e35200d2.js.LICENSE.txt +0 -39
- package/__mf/js/async/189.50a773ab.js +0 -2
- package/__mf/js/async/192.5c2ccbc8.js +0 -1
- package/__mf/js/async/2.51860681.js +0 -1
- package/__mf/js/async/235.82ceb925.js +0 -1
- package/__mf/js/async/274.00260b59.js +0 -2
- package/__mf/js/async/356.3f5befdf.js +0 -1
- package/__mf/js/async/392.6e9f16f1.js +0 -2
- package/__mf/js/async/464.d426dd00.js +0 -39
- package/__mf/js/async/470.d7ccfb94.js +0 -2
- package/__mf/js/async/481.7e46c8f8.js +0 -1
- package/__mf/js/async/525.9cf2cd99.js +0 -2
- package/__mf/js/async/558.68d38020.js +0 -1
- package/__mf/js/async/587.96ffef24.js +0 -1
- package/__mf/js/async/588.09ddb723.js +0 -1
- package/__mf/js/async/616.d292bca5.js +0 -1
- package/__mf/js/async/623.d2ed4458.js +0 -1
- package/__mf/js/async/644.51078a40.js +0 -110
- package/__mf/js/async/71.88cfb0f7.js +0 -1
- package/__mf/js/async/873.3b862492.js +0 -1
- package/__mf/js/async/941.8225ba98.js +0 -2
- package/__mf/js/async/968.bd2564b8.js +0 -1
- package/__mf/js/async/978.144b77a4.js +0 -1
- package/__mf/js/async/981.5ec29a41.js +0 -24
- package/__mf/js/async/981.5ec29a41.js.LICENSE.txt +0 -19
- package/__mf/js/async/__federation_expose_StatusHistoryChart.c43ab053.js +0 -23
- package/__mf/js/async/lib-router.33e6a460.js +0 -2
- package/lib/cjs/StatusHistoryChart.js +0 -43
- package/lib/cjs/StatusHistoryChartBase.js +0 -147
- package/lib/cjs/StatusHistoryChartOptionsEditorSettings.js +0 -78
- package/lib/cjs/StatusHistoryPanel.js +0 -77
- package/lib/cjs/StatusHistoryTooltip.js +0 -55
- package/lib/cjs/StatusHistoryValueMappingEditor.js +0 -36
- package/lib/cjs/bootstrap.js +0 -26
- package/lib/cjs/env.d.js +0 -14
- package/lib/cjs/getPluginModule.js +0 -39
- package/lib/cjs/index-federation.js +0 -55
- package/lib/cjs/index.js +0 -41
- package/lib/cjs/setup-tests.js +0 -19
- package/lib/cjs/status-history-model.js +0 -25
- package/lib/cjs/utils/data-transform.js +0 -136
- package/lib/cjs/utils/get-color.js +0 -125
- package/lib/cjs/utils/get-formatted-axis-label.js +0 -48
- package/lib/cjs/utils/get-timescale.js +0 -27
- package/lib/cjs/utils/get-tooltip-position.js +0 -35
- package/lib/cjs/utils/index.js +0 -34
- /package/__mf/css/async/{187.85c2cbf6.css → 788.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{121.4774256d.js.LICENSE.txt → 121.7c7dfd24.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{274.00260b59.js.LICENSE.txt → 274.ba37d2a5.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.6e9f16f1.js.LICENSE.txt → 392.28f62ac0.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{470.d7ccfb94.js.LICENSE.txt → 470.5e20d4ce.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{189.50a773ab.js.LICENSE.txt → 481.c5d339b8.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{525.9cf2cd99.js.LICENSE.txt → 525.581e52cb.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{644.51078a40.js.LICENSE.txt → 644.06760cb8.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.8225ba98.js.LICENSE.txt → 941.b4bb3575.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.33e6a460.js.LICENSE.txt → lib-router.67526781.js.LICENSE.txt} +0 -0
package/lib/utils/get-color.js
CHANGED
|
@@ -31,8 +31,7 @@ export function getColorForValue(value, baseColor) {
|
|
|
31
31
|
const newL = baseL + (hash % 2 ? lightnessVariation : -lightnessVariation);
|
|
32
32
|
// Keep saturation high for better distinction
|
|
33
33
|
const newS = Math.min(baseS + 10, 90);
|
|
34
|
-
const color = hslToHex(Math.abs(newH), Math.min(Math.max(newS, 50), 90), Math.min(Math.max(newL, 30), 70)
|
|
35
|
-
);
|
|
34
|
+
const color = hslToHex(Math.abs(newH), Math.min(Math.max(newS, 50), 90), Math.min(Math.max(newL, 30), 70));
|
|
36
35
|
// Validate generated color
|
|
37
36
|
if (!color.match(/^#[0-9A-Fa-f]{6}$/)) {
|
|
38
37
|
throw new Error('Invalid generated color');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/get-color.ts"],"sourcesContent":["// Copyright 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 const FALLBACK_COLOR = '#1f77b4';\n\nexport function getColorForValue(value: number | string, baseColor: string): string {\n // Validate base color\n if (!baseColor.match(/^#[0-9A-Fa-f]{6}$/)) {\n baseColor = FALLBACK_COLOR;\n }\n\n try {\n const [baseH, baseS, baseL] = hexToHSL(baseColor);\n\n // Ensure numeric values are valid\n if (isNaN(baseH) || isNaN(baseS) || isNaN(baseL)) {\n throw new Error('Invalid HSL values');\n }\n\n // Create deterministic hash\n const hash = String(value)\n .split('')\n .reduce((acc, char) => acc + char.charCodeAt(0), 0);\n\n const hueStep = 60;\n const lightnessVariation = 15;\n\n const hueOffset = (hash % 6) * hueStep; // 6 segments of 60° each\n const newH = (baseH + hueOffset) % 360;\n const newL = baseL + (hash % 2 ? lightnessVariation : -lightnessVariation);\n\n // Keep saturation high for better distinction\n const newS = Math.min(baseS + 10, 90);\n const color = hslToHex(\n Math.abs(newH),\n Math.min(Math.max(newS, 50), 90), // Keep saturation 50-90%\n Math.min(Math.max(newL, 30), 70) // Keep lightness 30-70%\n );\n\n // Validate generated color\n if (!color.match(/^#[0-9A-Fa-f]{6}$/)) {\n throw new Error('Invalid generated color');\n }\n\n return color;\n } catch {\n return FALLBACK_COLOR;\n }\n}\n\nexport function getColorsForValues(uniqueValues: Array<number | string>, themeColors: string[]): string[] {\n // If we have enough theme colors, use them\n if (themeColors.length >= uniqueValues.length) {\n return themeColors.slice(0, uniqueValues.length);\n }\n\n // Use theme colors first, then generate additional ones\n return uniqueValues.map((value, index) => {\n if (index < themeColors.length) {\n return themeColors[index] || FALLBACK_COLOR;\n }\n return getColorForValue(value, themeColors[0] || FALLBACK_COLOR);\n });\n}\n\nexport function hexToHSL(hex: string): [number, number, number] {\n const r = parseInt(hex.slice(1, 3), 16) / 255;\n const g = parseInt(hex.slice(3, 5), 16) / 255;\n const b = parseInt(hex.slice(5, 7), 16) / 255;\n\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n let h = 0;\n let s = 0;\n const l = (max + min) / 2;\n\n if (max !== min) {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n case b:\n h = (r - g) / d + 4;\n break;\n }\n h /= 6;\n }\n\n return [h * 360, s * 100, l * 100];\n}\n\nexport function hslToHex(h: number, s: number, l: number): string {\n l /= 100;\n const a = (s * Math.min(l, 1 - l)) / 100;\n const f = (n: number): string => {\n const k = (n + h / 30) % 12;\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n return Math.round(255 * color)\n .toString(16)\n .padStart(2, '0');\n };\n return `#${f(0)}${f(8)}${f(4)}`;\n}\n"],"names":["FALLBACK_COLOR","getColorForValue","value","baseColor","match","baseH","baseS","baseL","hexToHSL","isNaN","Error","hash","String","split","reduce","acc","char","charCodeAt","hueStep","lightnessVariation","hueOffset","newH","newL","newS","Math","min","color","hslToHex","abs","max","getColorsForValues","uniqueValues","themeColors","length","slice","map","index","hex","r","parseInt","g","b","h","s","l","d","a","f","n","k","round","toString","padStart"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,MAAMA,iBAAiB,UAAU;AAExC,OAAO,SAASC,iBAAiBC,KAAsB,EAAEC,SAAiB;IACxE,sBAAsB;IACtB,IAAI,CAACA,UAAUC,KAAK,CAAC,sBAAsB;QACzCD,YAAYH;IACd;IAEA,IAAI;QACF,MAAM,CAACK,OAAOC,OAAOC,MAAM,GAAGC,SAASL;QAEvC,kCAAkC;QAClC,IAAIM,MAAMJ,UAAUI,MAAMH,UAAUG,MAAMF,QAAQ;YAChD,MAAM,IAAIG,MAAM;QAClB;QAEA,4BAA4B;QAC5B,MAAMC,OAAOC,OAAOV,OACjBW,KAAK,CAAC,IACNC,MAAM,CAAC,CAACC,KAAKC,OAASD,MAAMC,KAAKC,UAAU,CAAC,IAAI;QAEnD,MAAMC,UAAU;QAChB,MAAMC,qBAAqB;QAE3B,MAAMC,YAAY,AAACT,OAAO,IAAKO,SAAS,yBAAyB;QACjE,MAAMG,OAAO,AAAChB,CAAAA,QAAQe,SAAQ,IAAK;QACnC,MAAME,OAAOf,QAASI,CAAAA,OAAO,IAAIQ,qBAAqB,CAACA,kBAAiB;QAExE,8CAA8C;QAC9C,MAAMI,OAAOC,KAAKC,GAAG,CAACnB,QAAQ,IAAI;QAClC,MAAMoB,QAAQC,SACZH,KAAKI,GAAG,CAACP,OACTG,KAAKC,GAAG,CAACD,KAAKK,GAAG,CAACN,MAAM,KAAK,KAC7BC,KAAKC,GAAG,CAACD,KAAKK,GAAG,CAACP,MAAM,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/get-color.ts"],"sourcesContent":["// Copyright 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 const FALLBACK_COLOR = '#1f77b4';\n\nexport function getColorForValue(value: number | string, baseColor: string): string {\n // Validate base color\n if (!baseColor.match(/^#[0-9A-Fa-f]{6}$/)) {\n baseColor = FALLBACK_COLOR;\n }\n\n try {\n const [baseH, baseS, baseL] = hexToHSL(baseColor);\n\n // Ensure numeric values are valid\n if (isNaN(baseH) || isNaN(baseS) || isNaN(baseL)) {\n throw new Error('Invalid HSL values');\n }\n\n // Create deterministic hash\n const hash = String(value)\n .split('')\n .reduce((acc, char) => acc + char.charCodeAt(0), 0);\n\n const hueStep = 60;\n const lightnessVariation = 15;\n\n const hueOffset = (hash % 6) * hueStep; // 6 segments of 60° each\n const newH = (baseH + hueOffset) % 360;\n const newL = baseL + (hash % 2 ? lightnessVariation : -lightnessVariation);\n\n // Keep saturation high for better distinction\n const newS = Math.min(baseS + 10, 90);\n const color = hslToHex(\n Math.abs(newH),\n Math.min(Math.max(newS, 50), 90), // Keep saturation 50-90%\n Math.min(Math.max(newL, 30), 70), // Keep lightness 30-70%\n );\n\n // Validate generated color\n if (!color.match(/^#[0-9A-Fa-f]{6}$/)) {\n throw new Error('Invalid generated color');\n }\n\n return color;\n } catch {\n return FALLBACK_COLOR;\n }\n}\n\nexport function getColorsForValues(uniqueValues: Array<number | string>, themeColors: string[]): string[] {\n // If we have enough theme colors, use them\n if (themeColors.length >= uniqueValues.length) {\n return themeColors.slice(0, uniqueValues.length);\n }\n\n // Use theme colors first, then generate additional ones\n return uniqueValues.map((value, index) => {\n if (index < themeColors.length) {\n return themeColors[index] || FALLBACK_COLOR;\n }\n return getColorForValue(value, themeColors[0] || FALLBACK_COLOR);\n });\n}\n\nexport function hexToHSL(hex: string): [number, number, number] {\n const r = parseInt(hex.slice(1, 3), 16) / 255;\n const g = parseInt(hex.slice(3, 5), 16) / 255;\n const b = parseInt(hex.slice(5, 7), 16) / 255;\n\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n let h = 0;\n let s = 0;\n const l = (max + min) / 2;\n\n if (max !== min) {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n case b:\n h = (r - g) / d + 4;\n break;\n }\n h /= 6;\n }\n\n return [h * 360, s * 100, l * 100];\n}\n\nexport function hslToHex(h: number, s: number, l: number): string {\n l /= 100;\n const a = (s * Math.min(l, 1 - l)) / 100;\n const f = (n: number): string => {\n const k = (n + h / 30) % 12;\n const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n return Math.round(255 * color)\n .toString(16)\n .padStart(2, '0');\n };\n return `#${f(0)}${f(8)}${f(4)}`;\n}\n"],"names":["FALLBACK_COLOR","getColorForValue","value","baseColor","match","baseH","baseS","baseL","hexToHSL","isNaN","Error","hash","String","split","reduce","acc","char","charCodeAt","hueStep","lightnessVariation","hueOffset","newH","newL","newS","Math","min","color","hslToHex","abs","max","getColorsForValues","uniqueValues","themeColors","length","slice","map","index","hex","r","parseInt","g","b","h","s","l","d","a","f","n","k","round","toString","padStart"],"mappings":"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"}
|
|
@@ -10,7 +10,7 @@
|
|
|
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 { formatWithTimeZone } from
|
|
13
|
+
import { formatWithTimeZone } from "@perses-dev/components";
|
|
14
14
|
// https://echarts.apache.org/en/option.html#xAxis.axisLabel.formatter
|
|
15
15
|
export function getFormattedStatusHistoryAxisLabel(rangeMs, timezone) {
|
|
16
16
|
return function(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PanelData } from '@perses-dev/plugin-system';
|
|
2
|
-
import { TimeScale, TimeSeriesData } from '@perses-dev/spec';
|
|
1
|
+
import type { PanelData } from '@perses-dev/plugin-system';
|
|
2
|
+
import type { TimeScale, TimeSeriesData } from '@perses-dev/spec';
|
|
3
3
|
export declare function getCommonTimeScaleForQueries(queries: Array<PanelData<TimeSeriesData>>): TimeScale | undefined;
|
|
4
4
|
//# sourceMappingURL=get-timescale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-timescale.d.ts","sourceRoot":"","sources":["../../../src/utils/get-timescale.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"get-timescale.d.ts","sourceRoot":"","sources":["../../../src/utils/get-timescale.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElE,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,GAAG,SAAS,GAAG,SAAS,CAG7G"}
|
|
@@ -10,7 +10,7 @@
|
|
|
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 { getCommonTimeScale } from
|
|
13
|
+
import { getCommonTimeScale } from "@perses-dev/components";
|
|
14
14
|
export function getCommonTimeScaleForQueries(queries) {
|
|
15
15
|
const seriesData = queries.map((query)=>query.data);
|
|
16
16
|
return getCommonTimeScale(seriesData);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/get-timescale.ts"],"sourcesContent":["// Copyright 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 { getCommonTimeScale } from '@perses-dev/components';\nimport { PanelData } from '@perses-dev/plugin-system';\nimport { TimeScale, TimeSeriesData } from '@perses-dev/spec';\n\nexport function getCommonTimeScaleForQueries(queries: Array<PanelData<TimeSeriesData>>): TimeScale | undefined {\n const seriesData = queries.map((query) => query.data);\n return getCommonTimeScale(seriesData);\n}\n"],"names":["getCommonTimeScale","getCommonTimeScaleForQueries","queries","seriesData","map","query","data"],"mappings":"AAAA,+BAA+B;AAC/B,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;AAI5D,OAAO,SAASC,6BAA6BC,OAAyC;IACpF,MAAMC,aAAaD,QAAQE,GAAG,CAAC,CAACC,QAAUA,MAAMC,IAAI;IACpD,OAAON,mBAAmBG;AAC5B"}
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/get-timescale.ts"],"sourcesContent":["// Copyright 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 { getCommonTimeScale } from '@perses-dev/components';\nimport type { PanelData } from '@perses-dev/plugin-system';\nimport type { TimeScale, TimeSeriesData } from '@perses-dev/spec';\n\nexport function getCommonTimeScaleForQueries(queries: Array<PanelData<TimeSeriesData>>): TimeScale | undefined {\n const seriesData = queries.map((query) => query.data);\n return getCommonTimeScale(seriesData);\n}\n"],"names":["getCommonTimeScale","getCommonTimeScaleForQueries","queries","seriesData","map","query","data"],"mappings":"AAAA,+BAA+B;AAC/B,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;AAI5D,OAAO,SAASC,6BAA6BC,OAAyC;IACpF,MAAMC,aAAaD,QAAQE,GAAG,CAAC,CAACC,QAAUA,MAAMC,IAAI;IACpD,OAAON,mBAAmBG;AAC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-tooltip-position.d.ts","sourceRoot":"","sources":["../../../src/utils/get-tooltip-position.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"get-tooltip-position.d.ts","sourceRoot":"","sources":["../../../src/utils/get-tooltip-position.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,kBAAkB,EAAE,sBAAsB,CAAC,UAAU,CAYjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/get-tooltip-position.ts"],"sourcesContent":["// Copyright 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 { TooltipComponentOption } from 'echarts';\n\nexport const getTooltipPosition: TooltipComponentOption['position'] = (...data) => {\n const point = data[0];\n const size = data[4];\n\n // calculate the position to avoid overflow\n const [x, y] = point;\n const { contentSize, viewSize } = size;\n\n const posX = x + contentSize[0] > viewSize[0] ? x - contentSize[0] : x;\n const posY = y + contentSize[1] > viewSize[1] ? y - contentSize[1] : y;\n\n return [posX, posY];\n};\n"],"names":["getTooltipPosition","data","point","size","x","y","contentSize","viewSize","posX","posY"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAIjC,OAAO,MAAMA,qBAAyD,CAAC,GAAGC;IACxE,MAAMC,QAAQD,IAAI,CAAC,EAAE;IACrB,MAAME,OAAOF,IAAI,CAAC,EAAE;IAEpB,2CAA2C;IAC3C,MAAM,CAACG,GAAGC,EAAE,GAAGH;IACf,MAAM,EAAEI,WAAW,EAAEC,QAAQ,EAAE,GAAGJ;IAElC,MAAMK,OAAOJ,IAAIE,WAAW,CAAC,EAAE,GAAGC,QAAQ,CAAC,EAAE,GAAGH,IAAIE,WAAW,CAAC,EAAE,GAAGF;IACrE,MAAMK,OAAOJ,IAAIC,WAAW,CAAC,EAAE,GAAGC,QAAQ,CAAC,EAAE,GAAGF,IAAIC,WAAW,CAAC,EAAE,GAAGD;IAErE,OAAO;QAACG;QAAMC;KAAK;AACrB,EAAE"}
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/get-tooltip-position.ts"],"sourcesContent":["// Copyright 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 type { TooltipComponentOption } from 'echarts';\n\nexport const getTooltipPosition: TooltipComponentOption['position'] = (...data) => {\n const point = data[0];\n const size = data[4];\n\n // calculate the position to avoid overflow\n const [x, y] = point;\n const { contentSize, viewSize } = size;\n\n const posX = x + contentSize[0] > viewSize[0] ? x - contentSize[0] : x;\n const posY = y + contentSize[1] > viewSize[1] ? y - contentSize[1] : y;\n\n return [posX, posY];\n};\n"],"names":["getTooltipPosition","data","point","size","x","y","contentSize","viewSize","posX","posY"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAIjC,OAAO,MAAMA,qBAAyD,CAAC,GAAGC;IACxE,MAAMC,QAAQD,IAAI,CAAC,EAAE;IACrB,MAAME,OAAOF,IAAI,CAAC,EAAE;IAEpB,2CAA2C;IAC3C,MAAM,CAACG,GAAGC,EAAE,GAAGH;IACf,MAAM,EAAEI,WAAW,EAAEC,QAAQ,EAAE,GAAGJ;IAElC,MAAMK,OAAOJ,IAAIE,WAAW,CAAC,EAAE,GAAGC,QAAQ,CAAC,EAAE,GAAGH,IAAIE,WAAW,CAAC,EAAE,GAAGF;IACrE,MAAMK,OAAOJ,IAAIC,WAAW,CAAC,EAAE,GAAGC,QAAQ,CAAC,EAAE,GAAGF,IAAIC,WAAW,CAAC,EAAE,GAAGD;IAErE,OAAO;QAACG;QAAMC;KAAK;AACrB,EAAE"}
|
package/lib/utils/index.js
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
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
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
13
|
+
export * from "./data-transform.js";
|
|
14
|
+
export * from "./get-color.js";
|
|
15
|
+
export * from "./get-formatted-axis-label.js";
|
|
16
|
+
export * from "./get-timescale.js";
|
|
17
|
+
export * from "./get-tooltip-position.js";
|
|
18
18
|
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
package/lib/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/index.ts"],"sourcesContent":["// Copyright 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-color';\nexport * from './get-formatted-axis-label';\nexport * from './get-timescale';\nexport * from './get-tooltip-position';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/index.ts"],"sourcesContent":["// Copyright 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-color';\nexport * from './get-formatted-axis-label';\nexport * from './get-timescale';\nexport * from './get-tooltip-position';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,sBAAmB;AACjC,cAAc,iBAAc;AAC5B,cAAc,gCAA6B;AAC3C,cAAc,qBAAkB;AAChC,cAAc,4BAAyB"}
|
package/mf-manifest.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "StatusHistoryChart",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.
|
|
8
|
+
"buildVersion": "0.14.0-beta.2",
|
|
9
9
|
"buildName": "@perses-dev/status-history-chart-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/StatusHistoryChart.
|
|
12
|
+
"name": "__mf/js/StatusHistoryChart.b562e547.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"zip": "",
|
|
20
20
|
"api": ""
|
|
21
21
|
},
|
|
22
|
-
"globalName": "
|
|
22
|
+
"globalName": "StatusHistoryChart_0_14_0_beta_2",
|
|
23
23
|
"pluginVersion": "2.6.0",
|
|
24
|
-
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/StatusHistoryChart/\"; }"
|
|
24
|
+
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/StatusHistoryChart~0.14.0-beta.2/\"; }"
|
|
25
25
|
},
|
|
26
26
|
"shared": [
|
|
27
27
|
{
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"js": {
|
|
35
35
|
"async": [],
|
|
36
36
|
"sync": [
|
|
37
|
-
"__mf/js/async/274.
|
|
37
|
+
"__mf/js/async/274.ba37d2a5.js"
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"css": {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"js": {
|
|
55
55
|
"async": [],
|
|
56
56
|
"sync": [
|
|
57
|
-
"__mf/js/async/235.
|
|
58
|
-
"__mf/js/async/616.
|
|
57
|
+
"__mf/js/async/235.7a97cc35.js",
|
|
58
|
+
"__mf/js/async/616.66d420a8.js"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
61
|
"css": {
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"js": {
|
|
76
76
|
"async": [],
|
|
77
77
|
"sync": [
|
|
78
|
-
"__mf/js/async/587.
|
|
79
|
-
"__mf/js/async/968.
|
|
78
|
+
"__mf/js/async/587.8c8aa1fd.js",
|
|
79
|
+
"__mf/js/async/968.f63cc1d1.js"
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
82
|
"css": {
|
|
@@ -89,20 +89,20 @@
|
|
|
89
89
|
{
|
|
90
90
|
"id": "StatusHistoryChart:@perses-dev/components",
|
|
91
91
|
"name": "@perses-dev/components",
|
|
92
|
-
"version": "0.
|
|
92
|
+
"version": "0.55.0-beta.7",
|
|
93
93
|
"singleton": true,
|
|
94
|
-
"requiredVersion": "^0.
|
|
94
|
+
"requiredVersion": "^0.55.0-beta.7",
|
|
95
95
|
"assets": {
|
|
96
96
|
"js": {
|
|
97
97
|
"async": [],
|
|
98
98
|
"sync": [
|
|
99
|
-
"__mf/js/async/
|
|
99
|
+
"__mf/js/async/788.d10cf35c.js"
|
|
100
100
|
]
|
|
101
101
|
},
|
|
102
102
|
"css": {
|
|
103
103
|
"async": [],
|
|
104
104
|
"sync": [
|
|
105
|
-
"__mf/css/async/
|
|
105
|
+
"__mf/css/async/788.85c2cbf6.css"
|
|
106
106
|
]
|
|
107
107
|
}
|
|
108
108
|
},
|
|
@@ -111,14 +111,14 @@
|
|
|
111
111
|
{
|
|
112
112
|
"id": "StatusHistoryChart:@perses-dev/plugin-system",
|
|
113
113
|
"name": "@perses-dev/plugin-system",
|
|
114
|
-
"version": "0.
|
|
114
|
+
"version": "0.55.0-beta.7",
|
|
115
115
|
"singleton": true,
|
|
116
|
-
"requiredVersion": "^0.
|
|
116
|
+
"requiredVersion": "^0.55.0-beta.7",
|
|
117
117
|
"assets": {
|
|
118
118
|
"js": {
|
|
119
119
|
"async": [],
|
|
120
120
|
"sync": [
|
|
121
|
-
"__mf/js/async/
|
|
121
|
+
"__mf/js/async/628.447b1f89.js"
|
|
122
122
|
]
|
|
123
123
|
},
|
|
124
124
|
"css": {
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"js": {
|
|
139
139
|
"async": [],
|
|
140
140
|
"sync": [
|
|
141
|
-
"__mf/js/async/481.
|
|
141
|
+
"__mf/js/async/481.c5d339b8.js"
|
|
142
142
|
]
|
|
143
143
|
},
|
|
144
144
|
"css": {
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"js": {
|
|
159
159
|
"async": [],
|
|
160
160
|
"sync": [
|
|
161
|
-
"__mf/js/async/192.
|
|
161
|
+
"__mf/js/async/192.e0378d27.js"
|
|
162
162
|
]
|
|
163
163
|
},
|
|
164
164
|
"css": {
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"js": {
|
|
179
179
|
"async": [],
|
|
180
180
|
"sync": [
|
|
181
|
-
"__mf/js/async/873.
|
|
181
|
+
"__mf/js/async/873.6eef1fae.js"
|
|
182
182
|
]
|
|
183
183
|
},
|
|
184
184
|
"css": {
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"js": {
|
|
199
199
|
"async": [],
|
|
200
200
|
"sync": [
|
|
201
|
-
"__mf/js/async/392.
|
|
201
|
+
"__mf/js/async/392.28f62ac0.js"
|
|
202
202
|
]
|
|
203
203
|
},
|
|
204
204
|
"css": {
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
"js": {
|
|
219
219
|
"async": [],
|
|
220
220
|
"sync": [
|
|
221
|
-
"__mf/js/async/470.
|
|
221
|
+
"__mf/js/async/470.5e20d4ce.js"
|
|
222
222
|
]
|
|
223
223
|
},
|
|
224
224
|
"css": {
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
"js": {
|
|
239
239
|
"async": [],
|
|
240
240
|
"sync": [
|
|
241
|
-
"__mf/js/async/356.
|
|
241
|
+
"__mf/js/async/356.c6abe355.js"
|
|
242
242
|
]
|
|
243
243
|
},
|
|
244
244
|
"css": {
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"js": {
|
|
259
259
|
"async": [],
|
|
260
260
|
"sync": [
|
|
261
|
-
"__mf/js/async/121.
|
|
261
|
+
"__mf/js/async/121.7c7dfd24.js"
|
|
262
262
|
]
|
|
263
263
|
},
|
|
264
264
|
"css": {
|
|
@@ -278,7 +278,7 @@
|
|
|
278
278
|
"js": {
|
|
279
279
|
"async": [],
|
|
280
280
|
"sync": [
|
|
281
|
-
"__mf/js/async/978.
|
|
281
|
+
"__mf/js/async/978.63d6babd.js"
|
|
282
282
|
]
|
|
283
283
|
},
|
|
284
284
|
"css": {
|
|
@@ -297,23 +297,24 @@
|
|
|
297
297
|
"assets": {
|
|
298
298
|
"js": {
|
|
299
299
|
"sync": [
|
|
300
|
-
"__mf/js/async/525.
|
|
301
|
-
"__mf/js/async/644.
|
|
302
|
-
"__mf/js/async/__federation_expose_StatusHistoryChart.
|
|
300
|
+
"__mf/js/async/525.581e52cb.js",
|
|
301
|
+
"__mf/js/async/644.06760cb8.js",
|
|
302
|
+
"__mf/js/async/__federation_expose_StatusHistoryChart.fb6fe4d9.js"
|
|
303
303
|
],
|
|
304
304
|
"async": [
|
|
305
|
-
"__mf/js/async/
|
|
306
|
-
"__mf/js/async/
|
|
307
|
-
"__mf/js/async/
|
|
308
|
-
"__mf/js/async/
|
|
309
|
-
"__mf/js/async/
|
|
310
|
-
"__mf/js/async/
|
|
305
|
+
"__mf/js/async/588.478d90f1.js",
|
|
306
|
+
"__mf/js/async/71.2c2c2fe4.js",
|
|
307
|
+
"__mf/js/async/947.3bd98a2b.js",
|
|
308
|
+
"__mf/js/async/623.5838e6aa.js",
|
|
309
|
+
"__mf/js/async/lib-router.67526781.js",
|
|
310
|
+
"__mf/js/async/77.f97bba54.js",
|
|
311
|
+
"__mf/js/async/496.e922287d.js"
|
|
311
312
|
]
|
|
312
313
|
},
|
|
313
314
|
"css": {
|
|
314
315
|
"sync": [],
|
|
315
316
|
"async": [
|
|
316
|
-
"__mf/css/async/
|
|
317
|
+
"__mf/css/async/788.85c2cbf6.css"
|
|
317
318
|
]
|
|
318
319
|
}
|
|
319
320
|
},
|
package/mf-stats.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "StatusHistoryChart",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.
|
|
8
|
+
"buildVersion": "0.14.0-beta.2",
|
|
9
9
|
"buildName": "@perses-dev/status-history-chart-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/StatusHistoryChart.
|
|
12
|
+
"name": "__mf/js/StatusHistoryChart.b562e547.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"zip": "",
|
|
20
20
|
"api": ""
|
|
21
21
|
},
|
|
22
|
-
"globalName": "
|
|
22
|
+
"globalName": "StatusHistoryChart_0_14_0_beta_2",
|
|
23
23
|
"pluginVersion": "2.6.0",
|
|
24
|
-
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/StatusHistoryChart/\"; }"
|
|
24
|
+
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/StatusHistoryChart~0.14.0-beta.2/\"; }"
|
|
25
25
|
},
|
|
26
26
|
"shared": [
|
|
27
27
|
{
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"js": {
|
|
37
37
|
"async": [],
|
|
38
38
|
"sync": [
|
|
39
|
-
"__mf/js/async/274.
|
|
39
|
+
"__mf/js/async/274.ba37d2a5.js"
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"css": {
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"js": {
|
|
63
63
|
"async": [],
|
|
64
64
|
"sync": [
|
|
65
|
-
"__mf/js/async/235.
|
|
66
|
-
"__mf/js/async/616.
|
|
65
|
+
"__mf/js/async/235.7a97cc35.js",
|
|
66
|
+
"__mf/js/async/616.66d420a8.js"
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
"css": {
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"js": {
|
|
88
88
|
"async": [],
|
|
89
89
|
"sync": [
|
|
90
|
-
"__mf/js/async/587.
|
|
91
|
-
"__mf/js/async/968.
|
|
90
|
+
"__mf/js/async/587.8c8aa1fd.js",
|
|
91
|
+
"__mf/js/async/968.f63cc1d1.js"
|
|
92
92
|
]
|
|
93
93
|
},
|
|
94
94
|
"css": {
|
|
@@ -102,23 +102,23 @@
|
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"singleton": true,
|
|
105
|
-
"requiredVersion": "^0.
|
|
105
|
+
"requiredVersion": "^0.55.0-beta.7",
|
|
106
106
|
"shareScope": "default",
|
|
107
107
|
"name": "@perses-dev/components",
|
|
108
|
-
"version": "0.
|
|
108
|
+
"version": "0.55.0-beta.7",
|
|
109
109
|
"eager": false,
|
|
110
110
|
"id": "StatusHistoryChart:@perses-dev/components",
|
|
111
111
|
"assets": {
|
|
112
112
|
"js": {
|
|
113
113
|
"async": [],
|
|
114
114
|
"sync": [
|
|
115
|
-
"__mf/js/async/
|
|
115
|
+
"__mf/js/async/788.d10cf35c.js"
|
|
116
116
|
]
|
|
117
117
|
},
|
|
118
118
|
"css": {
|
|
119
119
|
"async": [],
|
|
120
120
|
"sync": [
|
|
121
|
-
"__mf/css/async/
|
|
121
|
+
"__mf/css/async/788.85c2cbf6.css"
|
|
122
122
|
]
|
|
123
123
|
}
|
|
124
124
|
},
|
|
@@ -130,17 +130,17 @@
|
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"singleton": true,
|
|
133
|
-
"requiredVersion": "^0.
|
|
133
|
+
"requiredVersion": "^0.55.0-beta.7",
|
|
134
134
|
"shareScope": "default",
|
|
135
135
|
"name": "@perses-dev/plugin-system",
|
|
136
|
-
"version": "0.
|
|
136
|
+
"version": "0.55.0-beta.7",
|
|
137
137
|
"eager": false,
|
|
138
138
|
"id": "StatusHistoryChart:@perses-dev/plugin-system",
|
|
139
139
|
"assets": {
|
|
140
140
|
"js": {
|
|
141
141
|
"async": [],
|
|
142
142
|
"sync": [
|
|
143
|
-
"__mf/js/async/
|
|
143
|
+
"__mf/js/async/628.447b1f89.js"
|
|
144
144
|
]
|
|
145
145
|
},
|
|
146
146
|
"css": {
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"js": {
|
|
167
167
|
"async": [],
|
|
168
168
|
"sync": [
|
|
169
|
-
"__mf/js/async/481.
|
|
169
|
+
"__mf/js/async/481.c5d339b8.js"
|
|
170
170
|
]
|
|
171
171
|
},
|
|
172
172
|
"css": {
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"js": {
|
|
191
191
|
"async": [],
|
|
192
192
|
"sync": [
|
|
193
|
-
"__mf/js/async/192.
|
|
193
|
+
"__mf/js/async/192.e0378d27.js"
|
|
194
194
|
]
|
|
195
195
|
},
|
|
196
196
|
"css": {
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
"js": {
|
|
215
215
|
"async": [],
|
|
216
216
|
"sync": [
|
|
217
|
-
"__mf/js/async/873.
|
|
217
|
+
"__mf/js/async/873.6eef1fae.js"
|
|
218
218
|
]
|
|
219
219
|
},
|
|
220
220
|
"css": {
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
"js": {
|
|
239
239
|
"async": [],
|
|
240
240
|
"sync": [
|
|
241
|
-
"__mf/js/async/392.
|
|
241
|
+
"__mf/js/async/392.28f62ac0.js"
|
|
242
242
|
]
|
|
243
243
|
},
|
|
244
244
|
"css": {
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
"js": {
|
|
265
265
|
"async": [],
|
|
266
266
|
"sync": [
|
|
267
|
-
"__mf/js/async/470.
|
|
267
|
+
"__mf/js/async/470.5e20d4ce.js"
|
|
268
268
|
]
|
|
269
269
|
},
|
|
270
270
|
"css": {
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
"js": {
|
|
289
289
|
"async": [],
|
|
290
290
|
"sync": [
|
|
291
|
-
"__mf/js/async/356.
|
|
291
|
+
"__mf/js/async/356.c6abe355.js"
|
|
292
292
|
]
|
|
293
293
|
},
|
|
294
294
|
"css": {
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
"js": {
|
|
313
313
|
"async": [],
|
|
314
314
|
"sync": [
|
|
315
|
-
"__mf/js/async/121.
|
|
315
|
+
"__mf/js/async/121.7c7dfd24.js"
|
|
316
316
|
]
|
|
317
317
|
},
|
|
318
318
|
"css": {
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
"js": {
|
|
339
339
|
"async": [],
|
|
340
340
|
"sync": [
|
|
341
|
-
"__mf/js/async/978.
|
|
341
|
+
"__mf/js/async/978.63d6babd.js"
|
|
342
342
|
]
|
|
343
343
|
},
|
|
344
344
|
"css": {
|
|
@@ -361,30 +361,31 @@
|
|
|
361
361
|
"react",
|
|
362
362
|
"@emotion/react",
|
|
363
363
|
"lodash",
|
|
364
|
-
"@perses-dev/
|
|
365
|
-
"@perses-dev/
|
|
364
|
+
"@perses-dev/components",
|
|
365
|
+
"@perses-dev/plugin-system"
|
|
366
366
|
],
|
|
367
367
|
"file": "src/StatusHistoryChart.ts",
|
|
368
368
|
"assets": {
|
|
369
369
|
"js": {
|
|
370
370
|
"sync": [
|
|
371
|
-
"__mf/js/async/525.
|
|
372
|
-
"__mf/js/async/644.
|
|
373
|
-
"__mf/js/async/__federation_expose_StatusHistoryChart.
|
|
371
|
+
"__mf/js/async/525.581e52cb.js",
|
|
372
|
+
"__mf/js/async/644.06760cb8.js",
|
|
373
|
+
"__mf/js/async/__federation_expose_StatusHistoryChart.fb6fe4d9.js"
|
|
374
374
|
],
|
|
375
375
|
"async": [
|
|
376
|
-
"__mf/js/async/
|
|
377
|
-
"__mf/js/async/
|
|
378
|
-
"__mf/js/async/
|
|
379
|
-
"__mf/js/async/
|
|
380
|
-
"__mf/js/async/
|
|
381
|
-
"__mf/js/async/
|
|
376
|
+
"__mf/js/async/588.478d90f1.js",
|
|
377
|
+
"__mf/js/async/71.2c2c2fe4.js",
|
|
378
|
+
"__mf/js/async/947.3bd98a2b.js",
|
|
379
|
+
"__mf/js/async/623.5838e6aa.js",
|
|
380
|
+
"__mf/js/async/lib-router.67526781.js",
|
|
381
|
+
"__mf/js/async/77.f97bba54.js",
|
|
382
|
+
"__mf/js/async/496.e922287d.js"
|
|
382
383
|
]
|
|
383
384
|
},
|
|
384
385
|
"css": {
|
|
385
386
|
"sync": [],
|
|
386
387
|
"async": [
|
|
387
|
-
"__mf/css/async/
|
|
388
|
+
"__mf/css/async/788.85c2cbf6.css"
|
|
388
389
|
]
|
|
389
390
|
}
|
|
390
391
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perses-dev/status-history-chart-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0-beta.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://github.com/perses/plugins/blob/main/README.md",
|
|
6
6
|
"repository": {
|
|
@@ -14,29 +14,29 @@
|
|
|
14
14
|
"dev": "rsbuild dev",
|
|
15
15
|
"build": "npm run build-mf && concurrently \"npm:build:*\"",
|
|
16
16
|
"build-mf": "rsbuild build",
|
|
17
|
-
"build:cjs": "swc ./src -d dist/lib/cjs --strip-leading-paths --config-file ../.cjs.swcrc",
|
|
18
17
|
"build:esm": "swc ./src -d dist/lib --strip-leading-paths --config-file ../.swcrc",
|
|
19
18
|
"build:types": "tsc --project tsconfig.build.json",
|
|
20
|
-
"lint": "
|
|
21
|
-
"test": "cross-env LC_ALL=C TZ=UTC
|
|
19
|
+
"lint": "oxlint src",
|
|
20
|
+
"test": "cross-env LC_ALL=C TZ=UTC vitest run",
|
|
22
21
|
"type-check": "tsc --noEmit"
|
|
23
22
|
},
|
|
24
|
-
"
|
|
23
|
+
"type": "module",
|
|
24
|
+
"main": "lib/index.js",
|
|
25
25
|
"module": "lib/index.js",
|
|
26
26
|
"types": "lib/index.d.ts",
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@emotion/react": "^11.7.1",
|
|
29
29
|
"@emotion/styled": "^11.6.0",
|
|
30
30
|
"@hookform/resolvers": "^3.2.0",
|
|
31
|
-
"@perses-dev/components": "^0.
|
|
32
|
-
"@perses-dev/plugin-system": "^0.
|
|
33
|
-
"@perses-dev/spec": "^0.
|
|
31
|
+
"@perses-dev/components": "^0.55.0-beta.7",
|
|
32
|
+
"@perses-dev/plugin-system": "^0.55.0-beta.7",
|
|
33
|
+
"@perses-dev/spec": "^0.3.0-beta.5",
|
|
34
34
|
"date-fns": "^4.1.0",
|
|
35
35
|
"date-fns-tz": "^3.2.0",
|
|
36
36
|
"echarts": "5.5.0",
|
|
37
37
|
"lodash": "^4.17.21",
|
|
38
|
-
"react": "^
|
|
39
|
-
"react-dom": "^
|
|
38
|
+
"react": "^18.3.0",
|
|
39
|
+
"react-dom": "^18.3.0",
|
|
40
40
|
"use-resize-observer": "^9.0.0",
|
|
41
41
|
"immer": "^10.1.1"
|
|
42
42
|
},
|