@grafana/k6-test-builder 0.8.20 → 0.8.22

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/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ interface VUhBreakdown {
13
13
  } | null;
14
14
  }
15
15
  interface VuhStats {
16
+ calculating: boolean;
16
17
  vuh_usage: number | null;
17
18
  vuh_breakdown: VUhBreakdown;
18
19
  }
package/dist/index.js CHANGED
@@ -15730,24 +15730,10 @@ const $4e99116d1d1b712a$var$Container = /*#__PURE__*/ (0, ($parcel$interopDefaul
15730
15730
 
15731
15731
 
15732
15732
 
15733
-
15734
- const $6a5cd5d240c5dbb0$export$5cae361ad82dce8b = (value)=>{
15735
- const ref = (0, $gkIgo$react.useRef)();
15736
- (0, $gkIgo$react.useEffect)(()=>{
15737
- ref.current = value;
15738
- }, [
15739
- value
15740
- ]);
15741
- return ref.current;
15742
- };
15743
-
15744
-
15745
15733
  const $420b9b2911eb0b31$export$692b9323eea6a0ee = ()=>{
15746
15734
  const vuh_usage_legacy = (0, $cdee3562a1fa264f$export$9b8881d67105457d)((0, $c5bb589de61e43ba$export$e6bea69880c59e62));
15747
15735
  const metadata = (0, $cdee3562a1fa264f$export$9b8881d67105457d)((0, $90b0cfd5919312e7$export$3c947cbaab82b2b8));
15748
15736
  const vuh = metadata === null || metadata === void 0 ? void 0 : metadata.vuh;
15749
- const vuhUsage = vuh === null || vuh === void 0 ? void 0 : vuh.vuh_usage;
15750
- const prevVUhUsage = (0, $6a5cd5d240c5dbb0$export$5cae361ad82dce8b)(vuhUsage);
15751
15737
  if (vuh_usage_legacy && !vuh) return /*#__PURE__*/ (0, $gkIgo$reactjsxruntime.jsxs)((0, $7091d48bbccc61e3$export$eb2fcfdbd7ba97d4), {
15752
15738
  children: [
15753
15739
  /*#__PURE__*/ (0, $gkIgo$reactjsxruntime.jsx)((0, $723b70ee4d7f62e8$export$1ae172e61ce3735b), {}),
@@ -15757,6 +15743,8 @@ const $420b9b2911eb0b31$export$692b9323eea6a0ee = ()=>{
15757
15743
  "\xa0VUh"
15758
15744
  ]
15759
15745
  });
15746
+ const isCalculating = vuh === null || vuh === void 0 ? void 0 : vuh.calculating;
15747
+ const vuhUsage = vuh === null || vuh === void 0 ? void 0 : vuh.vuh_usage;
15760
15748
  return /*#__PURE__*/ (0, $gkIgo$reactjsxruntime.jsx)((0, $gkIgo$materialuicore.Tooltip), {
15761
15749
  disableHoverListener: !vuhUsage,
15762
15750
  title: /*#__PURE__*/ (0, $gkIgo$reactjsxruntime.jsx)((0, $4e99116d1d1b712a$export$f4f5234705b8ee7d), {
@@ -15768,9 +15756,9 @@ const $420b9b2911eb0b31$export$692b9323eea6a0ee = ()=>{
15768
15756
  children: [
15769
15757
  /*#__PURE__*/ (0, $gkIgo$reactjsxruntime.jsx)((0, $723b70ee4d7f62e8$export$1ae172e61ce3735b), {}),
15770
15758
  /*#__PURE__*/ (0, $gkIgo$reactjsxruntime.jsxs)($420b9b2911eb0b31$var$VUhContainer, {
15771
- hasResult: !!vuhUsage,
15759
+ hasResult: !isCalculating && !!vuhUsage,
15772
15760
  children: [
15773
- (0, $4bac6ee95b8c8b72$export$24567f54a9be5ab9)(vuhUsage || prevVUhUsage || 0),
15761
+ (0, $4bac6ee95b8c8b72$export$24567f54a9be5ab9)(vuhUsage || 0),
15774
15762
  " VUh"
15775
15763
  ]
15776
15764
  })
package/dist/module.js CHANGED
@@ -15706,24 +15706,10 @@ const $7c10312fad43a1ee$var$Container = /*#__PURE__*/ (0, $b7VBt$styledcomponent
15706
15706
 
15707
15707
 
15708
15708
 
15709
-
15710
- const $ccb3ba0354cddffc$export$5cae361ad82dce8b = (value)=>{
15711
- const ref = (0, $b7VBt$useRef)();
15712
- (0, $b7VBt$useEffect)(()=>{
15713
- ref.current = value;
15714
- }, [
15715
- value
15716
- ]);
15717
- return ref.current;
15718
- };
15719
-
15720
-
15721
15709
  const $d8f115728c3a4b86$export$692b9323eea6a0ee = ()=>{
15722
15710
  const vuh_usage_legacy = (0, $f33bf9327a1ab3ee$export$9b8881d67105457d)((0, $d7b1b7c6f96b1d0a$export$e6bea69880c59e62));
15723
15711
  const metadata = (0, $f33bf9327a1ab3ee$export$9b8881d67105457d)((0, $8497e93aef02a037$export$3c947cbaab82b2b8));
15724
15712
  const vuh = metadata === null || metadata === void 0 ? void 0 : metadata.vuh;
15725
- const vuhUsage = vuh === null || vuh === void 0 ? void 0 : vuh.vuh_usage;
15726
- const prevVUhUsage = (0, $ccb3ba0354cddffc$export$5cae361ad82dce8b)(vuhUsage);
15727
15713
  if (vuh_usage_legacy && !vuh) return /*#__PURE__*/ (0, $b7VBt$jsxs)((0, $9d9ef6b1aa606543$export$eb2fcfdbd7ba97d4), {
15728
15714
  children: [
15729
15715
  /*#__PURE__*/ (0, $b7VBt$jsx)((0, $f90e6ac18264291c$export$1ae172e61ce3735b), {}),
@@ -15733,6 +15719,8 @@ const $d8f115728c3a4b86$export$692b9323eea6a0ee = ()=>{
15733
15719
  "\xa0VUh"
15734
15720
  ]
15735
15721
  });
15722
+ const isCalculating = vuh === null || vuh === void 0 ? void 0 : vuh.calculating;
15723
+ const vuhUsage = vuh === null || vuh === void 0 ? void 0 : vuh.vuh_usage;
15736
15724
  return /*#__PURE__*/ (0, $b7VBt$jsx)((0, $b7VBt$Tooltip), {
15737
15725
  disableHoverListener: !vuhUsage,
15738
15726
  title: /*#__PURE__*/ (0, $b7VBt$jsx)((0, $7c10312fad43a1ee$export$f4f5234705b8ee7d), {
@@ -15744,9 +15732,9 @@ const $d8f115728c3a4b86$export$692b9323eea6a0ee = ()=>{
15744
15732
  children: [
15745
15733
  /*#__PURE__*/ (0, $b7VBt$jsx)((0, $f90e6ac18264291c$export$1ae172e61ce3735b), {}),
15746
15734
  /*#__PURE__*/ (0, $b7VBt$jsxs)($d8f115728c3a4b86$var$VUhContainer, {
15747
- hasResult: !!vuhUsage,
15735
+ hasResult: !isCalculating && !!vuhUsage,
15748
15736
  children: [
15749
- (0, $f54872b9dc7588c3$export$24567f54a9be5ab9)(vuhUsage || prevVUhUsage || 0),
15737
+ (0, $f54872b9dc7588c3$export$24567f54a9be5ab9)(vuhUsage || 0),
15750
15738
  " VUh"
15751
15739
  ]
15752
15740
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/k6-test-builder",
3
- "version": "0.8.20",
3
+ "version": "0.8.22",
4
4
  "license": "AGPL-3.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/module.js",