@perses-dev/status-history-chart-plugin 0.13.0 → 0.14.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/__mf/js/StatusHistoryChart.4f9097dc.js +7 -0
  2. package/__mf/js/async/121.6c0f4ca5.js +2 -0
  3. package/__mf/js/async/192.219e4140.js +1 -0
  4. package/__mf/js/async/2.a9155301.js +1 -0
  5. package/__mf/js/async/235.2b0db213.js +1 -0
  6. package/__mf/js/async/274.0d78df54.js +2 -0
  7. package/__mf/js/async/325.12bb1d5e.js +3 -0
  8. package/__mf/js/async/356.70136905.js +1 -0
  9. package/__mf/js/async/392.83f0e907.js +2 -0
  10. package/__mf/js/async/470.36180d38.js +2 -0
  11. package/__mf/js/async/481.8df44a82.js +2 -0
  12. package/__mf/js/async/544.eff4924f.js +2 -0
  13. package/__mf/js/async/587.d314a521.js +1 -0
  14. package/__mf/js/async/616.0a0f8135.js +1 -0
  15. package/__mf/js/async/621.10af475a.js +43 -0
  16. package/__mf/js/async/{464.d426dd00.js.LICENSE.txt → 621.10af475a.js.LICENSE.txt} +41 -1
  17. package/__mf/js/async/{644.51078a40.js → 644.13897f49.js} +5 -5
  18. package/__mf/js/async/663.863cc821.js +1 -0
  19. package/__mf/js/async/941.907f6483.js +2 -0
  20. package/__mf/js/async/947.5abc1294.js +2 -0
  21. package/__mf/js/async/968.9f7937ae.js +1 -0
  22. package/__mf/js/async/__federation_expose_StatusHistoryChart.b49b4112.js +23 -0
  23. package/__mf/js/async/lib-router.ad51c239.js +2 -0
  24. package/__mf/js/{main.3e9b5ca3.js → main.bb1958ea.js} +2 -2
  25. package/lib/StatusHistoryChart.d.ts +3 -3
  26. package/lib/StatusHistoryChart.d.ts.map +1 -1
  27. package/lib/StatusHistoryChart.js +4 -4
  28. package/lib/StatusHistoryChart.js.map +1 -1
  29. package/lib/StatusHistoryChartBase.d.ts +3 -3
  30. package/lib/StatusHistoryChartBase.d.ts.map +1 -1
  31. package/lib/StatusHistoryChartBase.js +10 -10
  32. package/lib/StatusHistoryChartBase.js.map +1 -1
  33. package/lib/StatusHistoryChartOptionsEditorSettings.d.ts +2 -2
  34. package/lib/StatusHistoryChartOptionsEditorSettings.d.ts.map +1 -1
  35. package/lib/StatusHistoryChartOptionsEditorSettings.js +4 -4
  36. package/lib/StatusHistoryChartOptionsEditorSettings.js.map +1 -1
  37. package/lib/StatusHistoryPanel.d.ts +4 -4
  38. package/lib/StatusHistoryPanel.d.ts.map +1 -1
  39. package/lib/StatusHistoryPanel.js +7 -7
  40. package/lib/StatusHistoryPanel.js.map +1 -1
  41. package/lib/StatusHistoryTooltip.d.ts +2 -2
  42. package/lib/StatusHistoryTooltip.d.ts.map +1 -1
  43. package/lib/StatusHistoryTooltip.js +2 -2
  44. package/lib/StatusHistoryTooltip.js.map +1 -1
  45. package/lib/StatusHistoryValueMappingEditor.d.ts +3 -3
  46. package/lib/StatusHistoryValueMappingEditor.d.ts.map +1 -1
  47. package/lib/StatusHistoryValueMappingEditor.js +1 -1
  48. package/lib/StatusHistoryValueMappingEditor.js.map +1 -1
  49. package/lib/bootstrap.js +2 -2
  50. package/lib/getPluginModule.d.ts +1 -1
  51. package/lib/getPluginModule.d.ts.map +1 -1
  52. package/lib/getPluginModule.js +3 -1
  53. package/lib/getPluginModule.js.map +1 -1
  54. package/lib/index-federation.js +1 -1
  55. package/lib/index.js +6 -6
  56. package/lib/index.js.map +1 -1
  57. package/lib/setup-tests.d.ts +1 -1
  58. package/lib/setup-tests.d.ts.map +1 -1
  59. package/lib/setup-tests.js +2 -2
  60. package/lib/setup-tests.js.map +1 -1
  61. package/lib/status-history-model.d.ts +2 -2
  62. package/lib/status-history-model.d.ts.map +1 -1
  63. package/lib/status-history-model.js.map +1 -1
  64. package/lib/utils/data-transform.d.ts +5 -5
  65. package/lib/utils/data-transform.d.ts.map +1 -1
  66. package/lib/utils/data-transform.js +4 -4
  67. package/lib/utils/data-transform.js.map +1 -1
  68. package/lib/utils/get-color.js +1 -2
  69. package/lib/utils/get-color.js.map +1 -1
  70. package/lib/utils/get-formatted-axis-label.js +1 -1
  71. package/lib/utils/get-timescale.d.ts +2 -2
  72. package/lib/utils/get-timescale.d.ts.map +1 -1
  73. package/lib/utils/get-timescale.js +1 -1
  74. package/lib/utils/get-timescale.js.map +1 -1
  75. package/lib/utils/get-tooltip-position.d.ts +1 -1
  76. package/lib/utils/get-tooltip-position.d.ts.map +1 -1
  77. package/lib/utils/get-tooltip-position.js.map +1 -1
  78. package/lib/utils/index.js +5 -5
  79. package/lib/utils/index.js.map +1 -1
  80. package/mf-manifest.json +29 -72
  81. package/mf-stats.json +31 -82
  82. package/package.json +10 -10
  83. package/__mf/js/StatusHistoryChart.946b9620.js +0 -7
  84. package/__mf/js/async/121.4774256d.js +0 -2
  85. package/__mf/js/async/177.b42019ec.js +0 -1
  86. package/__mf/js/async/187.e35200d2.js +0 -7
  87. package/__mf/js/async/187.e35200d2.js.LICENSE.txt +0 -39
  88. package/__mf/js/async/189.50a773ab.js +0 -2
  89. package/__mf/js/async/192.5c2ccbc8.js +0 -1
  90. package/__mf/js/async/2.51860681.js +0 -1
  91. package/__mf/js/async/235.82ceb925.js +0 -1
  92. package/__mf/js/async/274.00260b59.js +0 -2
  93. package/__mf/js/async/356.3f5befdf.js +0 -1
  94. package/__mf/js/async/392.6e9f16f1.js +0 -2
  95. package/__mf/js/async/464.d426dd00.js +0 -39
  96. package/__mf/js/async/470.d7ccfb94.js +0 -2
  97. package/__mf/js/async/481.7e46c8f8.js +0 -1
  98. package/__mf/js/async/525.9cf2cd99.js +0 -2
  99. package/__mf/js/async/558.68d38020.js +0 -1
  100. package/__mf/js/async/587.96ffef24.js +0 -1
  101. package/__mf/js/async/588.09ddb723.js +0 -1
  102. package/__mf/js/async/616.d292bca5.js +0 -1
  103. package/__mf/js/async/623.d2ed4458.js +0 -1
  104. package/__mf/js/async/71.88cfb0f7.js +0 -1
  105. package/__mf/js/async/873.3b862492.js +0 -1
  106. package/__mf/js/async/941.8225ba98.js +0 -2
  107. package/__mf/js/async/968.bd2564b8.js +0 -1
  108. package/__mf/js/async/978.144b77a4.js +0 -1
  109. package/__mf/js/async/981.5ec29a41.js +0 -24
  110. package/__mf/js/async/981.5ec29a41.js.LICENSE.txt +0 -19
  111. package/__mf/js/async/__federation_expose_StatusHistoryChart.c43ab053.js +0 -23
  112. package/__mf/js/async/lib-router.33e6a460.js +0 -2
  113. package/lib/cjs/StatusHistoryChart.js +0 -43
  114. package/lib/cjs/StatusHistoryChartBase.js +0 -147
  115. package/lib/cjs/StatusHistoryChartOptionsEditorSettings.js +0 -78
  116. package/lib/cjs/StatusHistoryPanel.js +0 -77
  117. package/lib/cjs/StatusHistoryTooltip.js +0 -55
  118. package/lib/cjs/StatusHistoryValueMappingEditor.js +0 -36
  119. package/lib/cjs/bootstrap.js +0 -26
  120. package/lib/cjs/env.d.js +0 -14
  121. package/lib/cjs/getPluginModule.js +0 -39
  122. package/lib/cjs/index-federation.js +0 -55
  123. package/lib/cjs/index.js +0 -41
  124. package/lib/cjs/setup-tests.js +0 -19
  125. package/lib/cjs/status-history-model.js +0 -25
  126. package/lib/cjs/utils/data-transform.js +0 -136
  127. package/lib/cjs/utils/get-color.js +0 -125
  128. package/lib/cjs/utils/get-formatted-axis-label.js +0 -48
  129. package/lib/cjs/utils/get-timescale.js +0 -27
  130. package/lib/cjs/utils/get-tooltip-position.js +0 -35
  131. package/lib/cjs/utils/index.js +0 -34
  132. /package/__mf/css/async/{187.85c2cbf6.css → 621.85c2cbf6.css} +0 -0
  133. /package/__mf/js/async/{121.4774256d.js.LICENSE.txt → 121.6c0f4ca5.js.LICENSE.txt} +0 -0
  134. /package/__mf/js/async/{274.00260b59.js.LICENSE.txt → 274.0d78df54.js.LICENSE.txt} +0 -0
  135. /package/__mf/js/async/{392.6e9f16f1.js.LICENSE.txt → 392.83f0e907.js.LICENSE.txt} +0 -0
  136. /package/__mf/js/async/{470.d7ccfb94.js.LICENSE.txt → 470.36180d38.js.LICENSE.txt} +0 -0
  137. /package/__mf/js/async/{189.50a773ab.js.LICENSE.txt → 481.8df44a82.js.LICENSE.txt} +0 -0
  138. /package/__mf/js/async/{525.9cf2cd99.js.LICENSE.txt → 544.eff4924f.js.LICENSE.txt} +0 -0
  139. /package/__mf/js/async/{644.51078a40.js.LICENSE.txt → 644.13897f49.js.LICENSE.txt} +0 -0
  140. /package/__mf/js/async/{941.8225ba98.js.LICENSE.txt → 941.907f6483.js.LICENSE.txt} +0 -0
  141. /package/__mf/js/async/{lib-router.33e6a460.js.LICENSE.txt → lib-router.ad51c239.js.LICENSE.txt} +0 -0
@@ -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) // Keep lightness 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,IAA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;AACjC"}
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;AA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,IAAInB,KAAKC,GAAG,CAACmB,GAAG,IAAIA,KAAM;IACrC,MAAMG,IAAI,CAACC;QACT,MAAMC,IAAI,AAACD,CAAAA,IAAIN,IAAI,EAAC,IAAK;QACzB,MAAMhB,QAAQkB,IAAIE,IAAItB,KAAKK,GAAG,CAACL,KAAKC,GAAG,CAACwB,IAAI,GAAG,IAAIA,GAAG,IAAI,CAAC;QAC3D,OAAOzB,KAAK0B,KAAK,CAAC,MAAMxB,OACrByB,QAAQ,CAAC,IACTC,QAAQ,CAAC,GAAG;IACjB;IACA,OAAO,CAAC,CAAC,EAAEL,EAAE,KAAKA,EAAE,KAAKA,EAAE,IAAI;AACjC"}
@@ -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 '@perses-dev/components';
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;AACtD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE7D,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,GAAG,SAAS,GAAG,SAAS,CAG7G"}
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 '@perses-dev/components';
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,3 +1,3 @@
1
- import { TooltipComponentOption } from 'echarts';
1
+ import type { TooltipComponentOption } from 'echarts';
2
2
  export declare const getTooltipPosition: TooltipComponentOption['position'];
3
3
  //# sourceMappingURL=get-tooltip-position.d.ts.map
@@ -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;AAEjD,eAAO,MAAM,kBAAkB,EAAE,sBAAsB,CAAC,UAAU,CAYjE,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"}
@@ -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 './data-transform';
14
- export * from './get-color';
15
- export * from './get-formatted-axis-label';
16
- export * from './get-timescale';
17
- export * from './get-tooltip-position';
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
@@ -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,mBAAmB;AACjC,cAAc,cAAc;AAC5B,cAAc,6BAA6B;AAC3C,cAAc,kBAAkB;AAChC,cAAc,yBAAyB"}
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.13.0",
8
+ "buildVersion": "0.14.0-beta.1",
9
9
  "buildName": "@perses-dev/status-history-chart-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/StatusHistoryChart.946b9620.js",
12
+ "name": "__mf/js/StatusHistoryChart.4f9097dc.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -19,9 +19,9 @@
19
19
  "zip": "",
20
20
  "api": ""
21
21
  },
22
- "globalName": "StatusHistoryChart",
22
+ "globalName": "StatusHistoryChart_0_14_0_beta_1",
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.1/\"; }"
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.00260b59.js"
37
+ "__mf/js/async/274.0d78df54.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.82ceb925.js",
58
- "__mf/js/async/616.d292bca5.js"
57
+ "__mf/js/async/235.2b0db213.js",
58
+ "__mf/js/async/616.0a0f8135.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.96ffef24.js",
79
- "__mf/js/async/968.bd2564b8.js"
78
+ "__mf/js/async/587.d314a521.js",
79
+ "__mf/js/async/968.9f7937ae.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.54.0",
92
+ "version": "0.55.0-beta.6",
93
93
  "singleton": true,
94
- "requiredVersion": "^0.54.0",
94
+ "requiredVersion": "^0.55.0-beta.6",
95
95
  "assets": {
96
96
  "js": {
97
97
  "async": [],
98
98
  "sync": [
99
- "__mf/js/async/187.e35200d2.js"
99
+ "__mf/js/async/621.10af475a.js"
100
100
  ]
101
101
  },
102
102
  "css": {
103
103
  "async": [],
104
104
  "sync": [
105
- "__mf/css/async/187.85c2cbf6.css"
105
+ "__mf/css/async/621.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.54.0",
114
+ "version": "0.55.0-beta.6",
115
115
  "singleton": true,
116
- "requiredVersion": "^0.54.0",
116
+ "requiredVersion": "^0.55.0-beta.6",
117
117
  "assets": {
118
118
  "js": {
119
119
  "async": [],
120
120
  "sync": [
121
- "__mf/js/async/981.5ec29a41.js"
121
+ "__mf/js/async/325.12bb1d5e.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.7e46c8f8.js"
141
+ "__mf/js/async/481.8df44a82.js"
142
142
  ]
143
143
  },
144
144
  "css": {
@@ -158,27 +158,7 @@
158
158
  "js": {
159
159
  "async": [],
160
160
  "sync": [
161
- "__mf/js/async/192.5c2ccbc8.js"
162
- ]
163
- },
164
- "css": {
165
- "async": [],
166
- "sync": []
167
- }
168
- },
169
- "fallback": ""
170
- },
171
- {
172
- "id": "StatusHistoryChart:echarts",
173
- "name": "echarts",
174
- "version": "5.5.0",
175
- "singleton": true,
176
- "requiredVersion": "^undefined",
177
- "assets": {
178
- "js": {
179
- "async": [],
180
- "sync": [
181
- "__mf/js/async/873.3b862492.js"
161
+ "__mf/js/async/192.219e4140.js"
182
162
  ]
183
163
  },
184
164
  "css": {
@@ -198,7 +178,7 @@
198
178
  "js": {
199
179
  "async": [],
200
180
  "sync": [
201
- "__mf/js/async/392.6e9f16f1.js"
181
+ "__mf/js/async/392.83f0e907.js"
202
182
  ]
203
183
  },
204
184
  "css": {
@@ -218,7 +198,7 @@
218
198
  "js": {
219
199
  "async": [],
220
200
  "sync": [
221
- "__mf/js/async/470.d7ccfb94.js"
201
+ "__mf/js/async/470.36180d38.js"
222
202
  ]
223
203
  },
224
204
  "css": {
@@ -238,7 +218,7 @@
238
218
  "js": {
239
219
  "async": [],
240
220
  "sync": [
241
- "__mf/js/async/356.3f5befdf.js"
221
+ "__mf/js/async/356.70136905.js"
242
222
  ]
243
223
  },
244
224
  "css": {
@@ -258,27 +238,7 @@
258
238
  "js": {
259
239
  "async": [],
260
240
  "sync": [
261
- "__mf/js/async/121.4774256d.js"
262
- ]
263
- },
264
- "css": {
265
- "async": [],
266
- "sync": []
267
- }
268
- },
269
- "fallback": ""
270
- },
271
- {
272
- "id": "StatusHistoryChart:date-fns-tz",
273
- "name": "date-fns-tz",
274
- "version": "3.2.0",
275
- "singleton": true,
276
- "requiredVersion": "^3.2.0",
277
- "assets": {
278
- "js": {
279
- "async": [],
280
- "sync": [
281
- "__mf/js/async/978.144b77a4.js"
241
+ "__mf/js/async/121.6c0f4ca5.js"
282
242
  ]
283
243
  },
284
244
  "css": {
@@ -297,23 +257,20 @@
297
257
  "assets": {
298
258
  "js": {
299
259
  "sync": [
300
- "__mf/js/async/525.9cf2cd99.js",
301
- "__mf/js/async/644.51078a40.js",
302
- "__mf/js/async/__federation_expose_StatusHistoryChart.c43ab053.js"
260
+ "__mf/js/async/544.eff4924f.js",
261
+ "__mf/js/async/644.13897f49.js",
262
+ "__mf/js/async/__federation_expose_StatusHistoryChart.b49b4112.js"
303
263
  ],
304
264
  "async": [
305
- "__mf/js/async/lib-router.33e6a460.js",
306
- "__mf/js/async/464.d426dd00.js",
307
- "__mf/js/async/177.b42019ec.js",
308
- "__mf/js/async/588.09ddb723.js",
309
- "__mf/js/async/71.88cfb0f7.js",
310
- "__mf/js/async/623.d2ed4458.js"
265
+ "__mf/js/async/947.5abc1294.js",
266
+ "__mf/js/async/663.863cc821.js",
267
+ "__mf/js/async/lib-router.ad51c239.js"
311
268
  ]
312
269
  },
313
270
  "css": {
314
271
  "sync": [],
315
272
  "async": [
316
- "__mf/css/async/187.85c2cbf6.css"
273
+ "__mf/css/async/621.85c2cbf6.css"
317
274
  ]
318
275
  }
319
276
  },
package/mf-stats.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "StatusHistoryChart",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.13.0",
8
+ "buildVersion": "0.14.0-beta.1",
9
9
  "buildName": "@perses-dev/status-history-chart-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/StatusHistoryChart.946b9620.js",
12
+ "name": "__mf/js/StatusHistoryChart.4f9097dc.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -19,9 +19,9 @@
19
19
  "zip": "",
20
20
  "api": ""
21
21
  },
22
- "globalName": "StatusHistoryChart",
22
+ "globalName": "StatusHistoryChart_0_14_0_beta_1",
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.1/\"; }"
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.00260b59.js"
39
+ "__mf/js/async/274.0d78df54.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.82ceb925.js",
66
- "__mf/js/async/616.d292bca5.js"
65
+ "__mf/js/async/235.2b0db213.js",
66
+ "__mf/js/async/616.0a0f8135.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.96ffef24.js",
91
- "__mf/js/async/968.bd2564b8.js"
90
+ "__mf/js/async/587.d314a521.js",
91
+ "__mf/js/async/968.9f7937ae.js"
92
92
  ]
93
93
  },
94
94
  "css": {
@@ -102,23 +102,23 @@
102
102
  },
103
103
  {
104
104
  "singleton": true,
105
- "requiredVersion": "^0.54.0",
105
+ "requiredVersion": "^0.55.0-beta.6",
106
106
  "shareScope": "default",
107
107
  "name": "@perses-dev/components",
108
- "version": "0.54.0",
108
+ "version": "0.55.0-beta.6",
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/187.e35200d2.js"
115
+ "__mf/js/async/621.10af475a.js"
116
116
  ]
117
117
  },
118
118
  "css": {
119
119
  "async": [],
120
120
  "sync": [
121
- "__mf/css/async/187.85c2cbf6.css"
121
+ "__mf/css/async/621.85c2cbf6.css"
122
122
  ]
123
123
  }
124
124
  },
@@ -130,17 +130,17 @@
130
130
  },
131
131
  {
132
132
  "singleton": true,
133
- "requiredVersion": "^0.54.0",
133
+ "requiredVersion": "^0.55.0-beta.6",
134
134
  "shareScope": "default",
135
135
  "name": "@perses-dev/plugin-system",
136
- "version": "0.54.0",
136
+ "version": "0.55.0-beta.6",
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/981.5ec29a41.js"
143
+ "__mf/js/async/325.12bb1d5e.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.7e46c8f8.js"
169
+ "__mf/js/async/481.8df44a82.js"
170
170
  ]
171
171
  },
172
172
  "css": {
@@ -190,31 +190,7 @@
190
190
  "js": {
191
191
  "async": [],
192
192
  "sync": [
193
- "__mf/js/async/192.5c2ccbc8.js"
194
- ]
195
- },
196
- "css": {
197
- "async": [],
198
- "sync": []
199
- }
200
- },
201
- "usedIn": [],
202
- "usedExports": [],
203
- "fallback": ""
204
- },
205
- {
206
- "singleton": true,
207
- "requiredVersion": "^undefined",
208
- "shareScope": "default",
209
- "name": "echarts",
210
- "version": "5.5.0",
211
- "eager": false,
212
- "id": "StatusHistoryChart:echarts",
213
- "assets": {
214
- "js": {
215
- "async": [],
216
- "sync": [
217
- "__mf/js/async/873.3b862492.js"
193
+ "__mf/js/async/192.219e4140.js"
218
194
  ]
219
195
  },
220
196
  "css": {
@@ -238,7 +214,7 @@
238
214
  "js": {
239
215
  "async": [],
240
216
  "sync": [
241
- "__mf/js/async/392.6e9f16f1.js"
217
+ "__mf/js/async/392.83f0e907.js"
242
218
  ]
243
219
  },
244
220
  "css": {
@@ -264,7 +240,7 @@
264
240
  "js": {
265
241
  "async": [],
266
242
  "sync": [
267
- "__mf/js/async/470.d7ccfb94.js"
243
+ "__mf/js/async/470.36180d38.js"
268
244
  ]
269
245
  },
270
246
  "css": {
@@ -288,7 +264,7 @@
288
264
  "js": {
289
265
  "async": [],
290
266
  "sync": [
291
- "__mf/js/async/356.3f5befdf.js"
267
+ "__mf/js/async/356.70136905.js"
292
268
  ]
293
269
  },
294
270
  "css": {
@@ -312,7 +288,7 @@
312
288
  "js": {
313
289
  "async": [],
314
290
  "sync": [
315
- "__mf/js/async/121.4774256d.js"
291
+ "__mf/js/async/121.6c0f4ca5.js"
316
292
  ]
317
293
  },
318
294
  "css": {
@@ -325,30 +301,6 @@
325
301
  ],
326
302
  "usedExports": [],
327
303
  "fallback": ""
328
- },
329
- {
330
- "singleton": true,
331
- "requiredVersion": "^3.2.0",
332
- "shareScope": "default",
333
- "name": "date-fns-tz",
334
- "version": "3.2.0",
335
- "eager": false,
336
- "id": "StatusHistoryChart:date-fns-tz",
337
- "assets": {
338
- "js": {
339
- "async": [],
340
- "sync": [
341
- "__mf/js/async/978.144b77a4.js"
342
- ]
343
- },
344
- "css": {
345
- "async": [],
346
- "sync": []
347
- }
348
- },
349
- "usedIn": [],
350
- "usedExports": [],
351
- "fallback": ""
352
304
  }
353
305
  ],
354
306
  "remotes": [],
@@ -361,30 +313,27 @@
361
313
  "react",
362
314
  "@emotion/react",
363
315
  "lodash",
364
- "@perses-dev/plugin-system",
365
- "@perses-dev/components"
316
+ "@perses-dev/components",
317
+ "@perses-dev/plugin-system"
366
318
  ],
367
319
  "file": "src/StatusHistoryChart.ts",
368
320
  "assets": {
369
321
  "js": {
370
322
  "sync": [
371
- "__mf/js/async/525.9cf2cd99.js",
372
- "__mf/js/async/644.51078a40.js",
373
- "__mf/js/async/__federation_expose_StatusHistoryChart.c43ab053.js"
323
+ "__mf/js/async/544.eff4924f.js",
324
+ "__mf/js/async/644.13897f49.js",
325
+ "__mf/js/async/__federation_expose_StatusHistoryChart.b49b4112.js"
374
326
  ],
375
327
  "async": [
376
- "__mf/js/async/lib-router.33e6a460.js",
377
- "__mf/js/async/464.d426dd00.js",
378
- "__mf/js/async/177.b42019ec.js",
379
- "__mf/js/async/588.09ddb723.js",
380
- "__mf/js/async/71.88cfb0f7.js",
381
- "__mf/js/async/623.d2ed4458.js"
328
+ "__mf/js/async/947.5abc1294.js",
329
+ "__mf/js/async/663.863cc821.js",
330
+ "__mf/js/async/lib-router.ad51c239.js"
382
331
  ]
383
332
  },
384
333
  "css": {
385
334
  "sync": [],
386
335
  "async": [
387
- "__mf/css/async/187.85c2cbf6.css"
336
+ "__mf/css/async/621.85c2cbf6.css"
388
337
  ]
389
338
  }
390
339
  }