@iota-uz/sdk 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/client-host/identity.d.ts +4 -4
  2. package/dist/client-host/identity.js +2 -2
  3. package/dist/lens/{CascadePanel-jtC2EUUS.js → CascadePanel-Sd2OKQx-.js} +15 -15
  4. package/dist/lens/{ChartDataEquivalent-BFDdHoQn.js → ChartDataEquivalent-DgCAb4Ov.js} +14 -13
  5. package/dist/lens/ChartPanel-CiAahY9O.js +709 -0
  6. package/dist/lens/{CoveragePanel-5LWQwFMZ.js → CoveragePanel-DeeKg8gF.js} +10 -10
  7. package/dist/lens/{GaugePanel-eVYvp3Hk.js → GaugePanel-8rsf_XHS.js} +8 -8
  8. package/dist/lens/{MapPanel-CzpZKz1Y.js → MapPanel-Bq0mfVCB.js} +14 -14
  9. package/dist/lens/{MetricFlowPanel-CG2Bj7s6.js → MetricFlowPanel-ZBJqPFpc.js} +2 -2
  10. package/dist/lens/{MetricHierarchyPanel-Difdcafn.js → MetricHierarchyPanel-DStGwvVU.js} +2 -2
  11. package/dist/lens/{MetricRelationshipPanel-Cq1dFTeY.js → MetricRelationshipPanel-D6ItmGCS.js} +2 -2
  12. package/dist/lens/{PrintReport-BiUdo8XG.js → PrintReport-Dr-6xXVr.js} +413 -397
  13. package/dist/lens/{TablePanel-_6j7epQg.js → TablePanel-CzLP8gG0.js} +1 -1
  14. package/dist/lens/{adapter-DRShqW45.js → adapter-BwEwcw2W.js} +4960 -4956
  15. package/dist/lens/adapter-CgoRd_uP.js +6 -0
  16. package/dist/lens/charts/adapter.d.ts +1 -0
  17. package/dist/lens/charts/adapter.d.ts.map +1 -1
  18. package/dist/lens/charts/echarts/options.d.ts.map +1 -1
  19. package/dist/lens/charts/keys.d.ts +2 -0
  20. package/dist/lens/charts/keys.d.ts.map +1 -1
  21. package/dist/lens/contract/schemas.d.ts.map +1 -1
  22. package/dist/lens/contract/types.d.ts +1 -0
  23. package/dist/lens/contract/types.d.ts.map +1 -1
  24. package/dist/lens/{index-CmXDbBaF.js → index-B6anZ5Pr.js} +1 -1
  25. package/dist/lens/{index-BBtBPnTb.js → index-R9mnOHaj.js} +684 -667
  26. package/dist/lens/index.js +1 -1
  27. package/dist/lens/{install-ByIx15ES.js → install-CsNOaFxV.js} +1 -1
  28. package/dist/lens/{install-DKwCLbtk.js → install-CumkiUJn.js} +1 -1
  29. package/dist/lens/{install-ByEamXef.js → install-D5OiGDnd.js} +1 -1
  30. package/dist/lens/{install-DIbrzh5h.js → install-VEXJv-Wi.js} +1 -1
  31. package/dist/lens/keys-6_gqLhcv.js +78 -0
  32. package/dist/lens/{metricViews-IoSavtwn.js → metricViews-De-9pff-.js} +1 -1
  33. package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
  34. package/dist/lens/panels/data.d.ts +2 -0
  35. package/dist/lens/panels/data.d.ts.map +1 -1
  36. package/dist/lens/{prefetch-CrMQhAEy.js → prefetch-C_qYKOTU.js} +2 -2
  37. package/dist/lens/{prefetchPanels-BbWAAYrz.js → prefetchPanels-CD4C-A5q.js} +1 -1
  38. package/dist/lens/print/PrintReport.d.ts.map +1 -1
  39. package/dist/lens/{print-CLo-mTEP.js → print-Iu804kRb.js} +18 -18
  40. package/dist/lens/{scales-CChHRiVq.js → scales-CWTA0tSQ.js} +53 -53
  41. package/dist/sdk-identity.cjs +3 -3
  42. package/dist/sdk-identity.js +3 -3
  43. package/dist/sdk-identity.json +2 -2
  44. package/dist/testing/driver.d.ts +19 -0
  45. package/dist/testing/driver.js +103 -30
  46. package/dist/testing/fixtures.d.ts +27 -0
  47. package/dist/testing/fixtures.js +19 -4
  48. package/dist/testing/index.d.ts +3 -2
  49. package/dist/testing/index.js +6 -30
  50. package/dist/testing/lease.d.ts +11 -0
  51. package/dist/testing/lease.js +44 -0
  52. package/package.json +1 -1
  53. package/dist/lens/ChartHost-DTnhnwkn.js +0 -68
  54. package/dist/lens/ChartPanel-_S4IVYdJ.js +0 -730
  55. package/dist/lens/keys-DenV5HsJ.js +0 -12
@@ -1,4 +1,4 @@
1
- import { at as r, au as e, av as t, aw as o, ax as D, ay as E, az as S } from "./index-BBtBPnTb.js";
1
+ import { au as r, av as e, aw as t, ax as o, ay as D, az as E, aA as S } from "./index-R9mnOHaj.js";
2
2
  import { SDKIdentityMismatchError as m, SDK_IDENTITY as O, SDK_PROTOCOL_VERSION as I, SDK_RELEASE_VERSION as _, SDK_SOURCE_COMMIT as h, assertSDKIdentity as R } from "@iota-uz/sdk/client-host";
3
3
  export {
4
4
  r as CONTRACT_VERSION,
@@ -1,4 +1,4 @@
1
- import { S as M, a as L, b as W, e as Y, i as I, c as q, g as R, d as Q, f as U, m as X, _ as k, t as H, h as J, j as Z, k as $, u as K, s as j, C as ee, l as ae, n as te, P as re, o as oe, p as ie, q as ne, r as se, v as le, w as ue, x as ve, y as ce, z as he, A as O, B as pe, D as N, E as fe, F as w, G as de, H as me, I as ye, J as T, K as xe, L as ge, M as Se, N as Ae, O as be } from "./adapter-DRShqW45.js";
1
+ import { S as M, a as L, b as W, e as Y, i as I, c as q, g as R, d as Q, f as U, m as X, _ as k, t as H, h as J, j as Z, k as $, u as K, s as j, C as ee, l as ae, n as te, P as re, o as oe, p as ie, q as ne, r as se, v as le, w as ue, x as ve, y as ce, z as he, A as O, B as pe, D as N, E as fe, F as w, G as de, H as me, I as ye, J as T, K as xe, L as ge, M as Se, N as Ae, O as be } from "./adapter-BwEwcw2W.js";
2
2
  var De = (
3
3
  /** @class */
4
4
  function() {
@@ -1,4 +1,4 @@
1
- import { Q as U, t as $, _ as j, R as Z, T as J, U as q, E as F, V as Q, W as P, X as k, Y as K, n as X, Z as Y, $ as M, a0 as tt, C as et, o as at, a1 as rt, a2 as nt, h as it } from "./adapter-DRShqW45.js";
1
+ import { Q as U, t as $, _ as j, R as Z, T as J, U as q, E as F, V as Q, W as P, X as k, Y as K, n as X, Z as Y, $ as M, a0 as tt, C as et, o as at, a1 as rt, a2 as nt, h as it } from "./adapter-BwEwcw2W.js";
2
2
  var ot = 256, st = (
3
3
  /** @class */
4
4
  function() {
@@ -1,4 +1,4 @@
1
- import { L as ge, a3 as Ft, a4 as F, W as ue, a5 as $, a6 as sr, a7 as lr, a0 as ur, a8 as At, a9 as Gt, aa as cr, ab as fr, ac as Mt, ad as pr, ae as vr, af as gr, ag as hr, ah as yr, ai as Pt, e as h, o as he, aj as dr, ak as Q, al as mr, am as Sr, an as wr, ao as M, ap as ke, _ as L, aq as _r, ar as Pe, as as x, at as k, au as Et, av as Ot, aw as _, ax as re, ay as br, az as ye, aA as de, aB as Rr, aC as ee, aD as H, aE as Lt, aF as Cr, aG as U, aH as Ee, aI as Nt, aJ as Tr, aK as Ue, aL as Dr, aM as Fr, aN as Ye, F as I, aO as Be, aP as Je, aQ as Ar, aR as Gr, aS as Vt, aT as Oe, aU as Ae, aV as Mr, aW as Pr, aX as Er, aY as Or, aZ as Lr, a_ as ze, a$ as It, b0 as Nr, Y as xt, V as kt, b1 as Ge, b2 as Vr, n as Ir, b3 as xr, d as kr, f as Ur, b4 as Ut, b5 as Yr, b6 as Br, b7 as He, b8 as Jr, t as R, h as zr, b9 as Hr, ba as jr, bb as Xr, C as Wr, bc as je, bd as Yt, c as Xe, be as Kr, bf as qr, bg as Zr, bh as $r, bi as Qr, bj as en, bk as tn, bl as We, K as rn, bm as nn, bn as an, bo as on, bp as sn, q as Bt, bq as ln, br as un } from "./adapter-DRShqW45.js";
1
+ import { L as ge, a3 as Ft, a4 as F, W as ue, a5 as $, a6 as sr, a7 as lr, a0 as ur, a8 as At, a9 as Gt, aa as cr, ab as fr, ac as Mt, ad as pr, ae as vr, af as gr, ag as hr, ah as yr, ai as Pt, e as h, o as he, aj as dr, ak as Q, al as mr, am as Sr, an as wr, ao as M, ap as ke, _ as L, aq as _r, ar as Pe, as as x, at as k, au as Et, av as Ot, aw as _, ax as re, ay as br, az as ye, aA as de, aB as Rr, aC as ee, aD as H, aE as Lt, aF as Cr, aG as U, aH as Ee, aI as Nt, aJ as Tr, aK as Ue, aL as Dr, aM as Fr, aN as Ye, F as I, aO as Be, aP as Je, aQ as Ar, aR as Gr, aS as Vt, aT as Oe, aU as Ae, aV as Mr, aW as Pr, aX as Er, aY as Or, aZ as Lr, a_ as ze, a$ as It, b0 as Nr, Y as xt, V as kt, b1 as Ge, b2 as Vr, n as Ir, b3 as xr, d as kr, f as Ur, b4 as Ut, b5 as Yr, b6 as Br, b7 as He, b8 as Jr, t as R, h as zr, b9 as Hr, ba as jr, bb as Xr, C as Wr, bc as je, bd as Yt, c as Xe, be as Kr, bf as qr, bg as Zr, bh as $r, bi as Qr, bj as en, bk as tn, bl as We, K as rn, bm as nn, bn as an, bo as on, bp as sn, q as Bt, bq as ln, br as un } from "./adapter-BwEwcw2W.js";
2
2
  function Jt(a) {
3
3
  if (ge(a)) {
4
4
  var t = new DOMParser();
@@ -1,4 +1,4 @@
1
- import { bs as b, a3 as Ne, bt as R, e as d, i as V, L as Te, ah as Y, bu as q, bv as L, bw as Ge, ax as Be, bx as C, o as W, af as Fe, bc as Ke, by as Ue, bz as J, bA as $e, bB as We, t as w, _ as H, bC as Xe, K as Ze, bD as Ye, b4 as ce, bm as qe, I as Re, aT as Oe, bE as Ce, bF as Je, W as De, bg as Qe, bG as je, bo as et, bh as tt, bH as P, bI as A, a4 as K, bJ as he, b8 as ae, bK as ne, bL as it, a0 as rt, c as at, bM as nt, ae as ot, bN as Q, bO as j, bP as st, bn as lt, b1 as ut, bQ as pt, a9 as ct, bR as ht, bS as ve, bT as vt, bU as ft, bq as fe } from "./adapter-DRShqW45.js";
1
+ import { bs as b, a3 as Ne, bt as R, e as d, i as V, L as Te, ah as Y, bu as q, bv as L, bw as Ge, ax as Be, bx as C, o as W, af as Fe, bc as Ke, by as Ue, bz as J, bA as $e, bB as We, t as w, _ as H, bC as Xe, K as Ze, bD as Ye, b4 as ce, bm as qe, I as Re, aT as Oe, bE as Ce, bF as Je, W as De, bg as Qe, bG as je, bo as et, bh as tt, bH as P, bI as A, a4 as K, bJ as he, b8 as ae, bK as ne, bL as it, a0 as rt, c as at, bM as nt, ae as ot, bN as Q, bO as j, bP as st, bn as lt, b1 as ut, bQ as pt, a9 as ct, bR as ht, bS as ve, bT as vt, bU as ft, bq as fe } from "./adapter-BwEwcw2W.js";
2
2
  var N = d, dt = R, U = -1, x = (
3
3
  /** @class */
4
4
  function() {
@@ -0,0 +1,78 @@
1
+ import { jsxs as R, jsx as v } from "react/jsx-runtime";
2
+ import { useRef as f, useState as S, useCallback as $, useEffect as b } from "react";
3
+ import { u as j } from "./index-R9mnOHaj.js";
4
+ import "@iota-uz/sdk/client-host";
5
+ function J({ input: r, panelId: n, onSelect: k, onHover: g, adapter: u, label: _, drillable: E = !1, resetZoomKey: N = 0 }) {
6
+ const d = f(null), o = f(), h = f(r), m = f({ onSelect: k, onHover: g }), [p, i] = S(), C = j();
7
+ h.current = r, m.current = { onSelect: k, onHover: g };
8
+ const c = $((t, s) => {
9
+ const e = t instanceof Error ? t : new Error(s);
10
+ return console.error(`[lens] chart panel ${n ?? "(unknown)"} failed to render`, e), e;
11
+ }, [n]);
12
+ return b(() => {
13
+ let t = !0;
14
+ const s = {
15
+ onSelect: (e, a, l) => {
16
+ var x, y;
17
+ return (y = (x = m.current).onSelect) == null ? void 0 : y.call(x, e, a, l);
18
+ },
19
+ onHover: (e) => {
20
+ var a, l;
21
+ return (l = (a = m.current).onHover) == null ? void 0 : l.call(a, e);
22
+ }
23
+ };
24
+ return (u ? Promise.resolve(u) : import("./index-B6anZ5Pr.js").then(({ getChartAdapter: e }) => e(h.current.kind))).then((e) => {
25
+ if (!(!t || !d.current)) {
26
+ i(void 0);
27
+ try {
28
+ o.current = e.mount(d.current, h.current, s);
29
+ } catch (a) {
30
+ i(c(a, "chart failed to render"));
31
+ }
32
+ }
33
+ }).catch((e) => {
34
+ t && i(c(e, "chart adapter failed to load"));
35
+ }), () => {
36
+ var e;
37
+ t = !1, (e = o.current) == null || e.dispose(), o.current = void 0;
38
+ };
39
+ }, [u, c]), b(() => {
40
+ if (o.current)
41
+ try {
42
+ o.current.update(r);
43
+ } catch (t) {
44
+ i(c(t, "chart failed to update"));
45
+ }
46
+ }, [r, c]), b(() => {
47
+ var t, s;
48
+ N > 0 && ((s = (t = o.current) == null ? void 0 : t.resetZoom) == null || s.call(t));
49
+ }, [N]), /* @__PURE__ */ R(
50
+ "div",
51
+ {
52
+ className: `lens-chart-host${E ? " lens-chart-host-drillable" : ""}`,
53
+ "aria-label": _,
54
+ role: "img",
55
+ "data-drillable": E || void 0,
56
+ children: [
57
+ /* @__PURE__ */ v("div", { ref: d, className: "lens-chart-canvas" }),
58
+ p && /* @__PURE__ */ R("div", { className: "lens-chart-load-error", role: "alert", children: [
59
+ /* @__PURE__ */ v("span", { className: "lens-chart-load-error-message", children: C("chart.error", "Unable to render chart.") }),
60
+ p.message && /* @__PURE__ */ v("span", { className: "lens-chart-load-error-detail", children: p.message })
61
+ ] })
62
+ ]
63
+ }
64
+ );
65
+ }
66
+ const w = "__lens_series__:";
67
+ function L(r, n) {
68
+ if (!(!r && !n))
69
+ return n ? `${w}${JSON.stringify([r, n])}` : r || void 0;
70
+ }
71
+ function O(r) {
72
+ return r == null ? "" : typeof r == "string" ? r : typeof r == "number" || typeof r == "boolean" || typeof r == "bigint" ? String(r) : "";
73
+ }
74
+ export {
75
+ J as C,
76
+ L as f,
77
+ O as m
78
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as T, jsx as N } from "react/jsx-runtime";
2
- import { a7 as K, a8 as A, a9 as S, W as C, aa as E, ab as M, ac as O, u as R } from "./index-BBtBPnTb.js";
2
+ import { a8 as K, a9 as A, aa as S, W as C, ab as E, ac as M, ad as O, u as R } from "./index-R9mnOHaj.js";
3
3
  import "@iota-uz/sdk/client-host";
4
4
  import "react";
5
5
  const D = {
@@ -1 +1 @@
1
- {"version":3,"file":"ChartPanel.d.ts","sourceRoot":"","sources":["../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appings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAW,KAAK,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,EAAuC,KAAK,YAAY,EAA+E,MAAM,mBAAmB,CAAA;AAsCvK,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAA;IACZ,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB;AA+CD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAW3E;AAED,0DAA0D;AAC1D,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAwB9E;AA+CD,eAAO,MAAM,iBAAiB,mBAAmB,CAAA;AACjD,eAAO,MAAM,cAAc,sBAAsB,CAAA;AAEjD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAoBvG;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CA6B7H;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,eAAe,2CA0lB7D;AAweD,eAAO,MAAM,QAAQ,mBAAa,CAAA;AAClC,eAAO,MAAM,QAAQ,mBAAa,CAAA;AAClC,eAAO,MAAM,SAAS,mBAAa,CAAA;AACnC,eAAO,MAAM,iBAAiB,mBAAa,CAAA"}
@@ -17,6 +17,8 @@ export declare function seriesColorResolver(theme: Theme, panel: Panel, { positi
17
17
  positional?: boolean;
18
18
  labels?: readonly string[];
19
19
  }): (label: string, index: number) => string | undefined;
20
+ /** Resolve series pins once from the full frame, before hiding or reordering rows. */
21
+ export declare function frameSeriesColorResolver(theme: Theme, panel: Panel, frame: Frame | undefined, positional?: boolean): (label: string, index: number) => string | undefined;
20
22
  /**
21
23
  * Resolves the colour of one frame *row*: the served frame's own positional
22
24
  * palette first, then a series entry keyed by the row's id, then everything
@@ -1 +1 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/panels/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAG1F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,EAAE,UAAiB,EAAE,MAAM,EAAE,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAO,GACvF,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CActD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,EAAE,MAAM,EAAE,UAAiB,EAAE,MAAM,EAAE,GAAE;IACrC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CACtB,GACL,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAYxE;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,EAAE,KAAK,EAAE,KAAK,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,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,eAAe,CAAA;CAAE,GACzD;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAY/C,mFAAmF;AACnF,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAO/D;AAiBD,MAAM,WAAW,iBAAiB;IAChC,uDAAuD;IACvD,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAA;IACzC,8CAA8C;IAC9C,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;CACtC;AAaD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAoDjG"}
@@ -1,7 +1,7 @@
1
1
  var n = Object.defineProperty;
2
2
  var o = (h, e, t) => e in h ? n(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t;
3
3
  var c = (h, e, t) => o(h, typeof e != "symbol" ? e + "" : e, t);
4
- import { i as f } from "./index-BBtBPnTb.js";
4
+ import { k as f } from "./index-R9mnOHaj.js";
5
5
  class g {
6
6
  constructor(e = {}) {
7
7
  c(this, "capacity");
@@ -47,7 +47,7 @@ class g {
47
47
  if (this.entries.has(e) || this.inflight.has(e)) return Promise.resolve();
48
48
  const s = f(e, { fetcher: this.fetcher, csrf: this.csrf, prefetch: !0, signal: t }).then(async (i) => {
49
49
  if (!i.endpoints.panel || t != null && t.aborted) return i;
50
- const { prefetchDocumentFirstRow: r } = await import("./prefetchPanels-BbWAAYrz.js");
50
+ const { prefetchDocumentFirstRow: r } = await import("./prefetchPanels-CD4C-A5q.js");
51
51
  return r(i, {
52
52
  csrf: this.csrf,
53
53
  fetcher: this.fetcher,
@@ -1,4 +1,4 @@
1
- import { an as w } from "./index-BBtBPnTb.js";
1
+ import { ao as w } from "./index-R9mnOHaj.js";
2
2
  async function y(e, n) {
3
3
  var d;
4
4
  const l = e.endpoints.panel, o = e.layout.rows.find(({ panels: a }) => a.length > 0);
@@ -1 +1 @@
1
- {"version":3,"file":"PrintReport.d.ts","sourceRoot":"","sources":["../../src/print/PrintReport.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,IAAI,gBAAgB,EAAgB,MAAM,kBAAkB,CAAA;AAgmCrF;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,2CAsBvE;AAED,wBAAgB,WAAW,uCAmB1B"}
1
+ {"version":3,"file":"PrintReport.d.ts","sourceRoot":"","sources":["../../src/print/PrintReport.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,WAAW,IAAI,gBAAgB,EAAgB,MAAM,kBAAkB,CAAA;AAynCrF;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,2CAsBvE;AAED,wBAAgB,WAAW,uCAmB1B"}
@@ -1,4 +1,4 @@
1
- import { w as B, j as G, v as Q, k as V, l as z, m as W, p as X, n as Y, q as Z } from "./index-BBtBPnTb.js";
1
+ import { w as B, l as G, v as Q, m as V, n as z, o as W, p as X, q as Y, s as Z } from "./index-R9mnOHaj.js";
2
2
  function p(i) {
3
3
  return Object.values(i.frames)[0];
4
4
  }
@@ -23,8 +23,8 @@ function et(i, m, a) {
23
23
  for (const o of m.children) {
24
24
  if (!o.action || o.action.kind !== "open_drawer") continue;
25
25
  const I = a == null ? void 0 : a.rows.find((v) => {
26
- var j;
27
- const T = ((j = m.encoding) == null ? void 0 : j.id) ?? i.encoding.id, N = T ? a.columns.findIndex(({ name: x }) => x === T) : -1;
26
+ var x;
27
+ const T = ((x = m.encoding) == null ? void 0 : x.id) ?? i.encoding.id, N = T ? a.columns.findIndex(({ name: C }) => C === T) : -1;
28
28
  return N >= 0 && String(v[N]) === o.key;
29
29
  });
30
30
  L(o.action, o.label, I);
@@ -37,7 +37,7 @@ async function nt(i, m, a = 2e3, k, L = new URL(
37
37
  var U, H;
38
38
  const u = [], P = [];
39
39
  let o = !1;
40
- const I = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Map(), x = [], _ = (s) => {
40
+ const I = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Map(), C = [], j = (s) => {
41
41
  var l, e;
42
42
  return JSON.stringify([
43
43
  s.meta.dashboardId,
@@ -45,10 +45,10 @@ async function nt(i, m, a = 2e3, k, L = new URL(
45
45
  ((e = s.header) == null ? void 0 : e.title) ?? ""
46
46
  ]);
47
47
  };
48
- N.add(_(i));
48
+ N.add(j(i));
49
49
  const F = () => y != null && y.aborted ? (o = !0, !0) : !1, A = (s, l, e, r) => {
50
50
  if (!m || F()) return Promise.resolve(void 0);
51
- const d = JSON.stringify([s.snapshotId, e, (r == null ? void 0 : r.id) ?? ""]), t = j.get(d);
51
+ const d = JSON.stringify([s.snapshotId, e, (r == null ? void 0 : r.id) ?? ""]), t = x.get(d);
52
52
  if (t) return t;
53
53
  const h = m({
54
54
  snapshotId: s.snapshotId,
@@ -61,7 +61,7 @@ async function nt(i, m, a = 2e3, k, L = new URL(
61
61
  const n = R instanceof Error ? R.message : "query request failed";
62
62
  P.push(`${s.meta.title} › ${l.label}: ${n}`);
63
63
  });
64
- return j.set(d, h), h;
64
+ return x.set(d, h), h;
65
65
  }, K = async (s, l, e, r, d) => {
66
66
  if (F()) return;
67
67
  if (e > 12) {
@@ -84,7 +84,7 @@ async function nt(i, m, a = 2e3, k, L = new URL(
84
84
  b.includes(O) || b.push(O);
85
85
  continue;
86
86
  }
87
- v.set(w, [O]), x.push({ href: w, candidate: q, breadcrumb: $, depth: g, owner: O });
87
+ v.set(w, [O]), C.push({ href: w, candidate: q, breadcrumb: $, depth: g, owner: O });
88
88
  }
89
89
  }, R = async (n, f, c, $, g, q) => {
90
90
  if (F()) return;
@@ -110,15 +110,15 @@ async function nt(i, m, a = 2e3, k, L = new URL(
110
110
  }
111
111
  let b = w.frame ? t.frames[w.frame] : void 0;
112
112
  b || (b = await A(t, w, f, c)), b != null && b.children && (t = Y(t, f, b));
113
- const C = z(t, f) ?? w, M = C.label.trim() || n.title;
113
+ const M = z(t, f) ?? w, _ = M.label.trim() || n.title;
114
114
  u.push({
115
115
  id: `${n.id}:${u.length}`,
116
116
  document: t,
117
117
  panel: n,
118
- level: C,
118
+ level: M,
119
119
  frame: b,
120
120
  path: [...f],
121
- breadcrumb: [...l, ...$, M],
121
+ breadcrumb: [...l, ...$, _],
122
122
  perspective: c,
123
123
  depth: e + g,
124
124
  root: q && e === 0,
@@ -130,18 +130,18 @@ async function nt(i, m, a = 2e3, k, L = new URL(
130
130
  ...T.has(JSON.stringify([t.snapshotId, f, (c == null ? void 0 : c.id) ?? ""])) ? { hasMore: !0 } : {}
131
131
  }), h(
132
132
  n,
133
- C,
133
+ M,
134
134
  b,
135
- [...l, ...$, M],
135
+ [...l, ...$, _],
136
136
  e + g + 1
137
137
  );
138
- for (const E of C.children) {
138
+ for (const E of M.children) {
139
139
  if (F()) break;
140
140
  E.target && await R(
141
141
  n,
142
142
  [...f, E.key],
143
143
  c,
144
- [...$, M, E.label],
144
+ [...$, _, E.label],
145
145
  g + 1,
146
146
  !1
147
147
  );
@@ -178,8 +178,8 @@ async function nt(i, m, a = 2e3, k, L = new URL(
178
178
  f && await R(n, f.path, void 0, [], 0, !0);
179
179
  }
180
180
  };
181
- for (await K(i, [], 0); x.length > 0 && !F(); ) {
182
- const s = x.splice(0, 4), l = await Promise.all(s.map(async (e) => {
181
+ for (await K(i, [], 0); C.length > 0 && !F(); ) {
182
+ const s = C.splice(0, 4), l = await Promise.all(s.map(async (e) => {
183
183
  try {
184
184
  return { entry: e, document: await k(e.href) };
185
185
  } catch (r) {
@@ -189,7 +189,7 @@ async function nt(i, m, a = 2e3, k, L = new URL(
189
189
  }));
190
190
  for (const { entry: e, document: r } of l) {
191
191
  if (!r || F()) continue;
192
- const d = _(r);
192
+ const d = j(r);
193
193
  if (N.has(d)) continue;
194
194
  N.add(d);
195
195
  const t = ((U = r.drawer) == null ? void 0 : U.title) || ((H = r.header) == null ? void 0 : H.title) || r.meta.title, h = e.candidate.label && e.candidate.label !== e.breadcrumb.at(-1) ? [...e.breadcrumb, e.candidate.label] : e.breadcrumb;
@@ -1,34 +1,34 @@
1
- import { as as b } from "./index-BBtBPnTb.js";
1
+ import { at as b } from "./index-R9mnOHaj.js";
2
2
  const l = {
3
- annotation: (n) => `annotation:${n}`,
4
- average: (n) => `average:${n}`,
3
+ annotation: (t) => `annotation:${t}`,
4
+ average: (t) => `average:${t}`,
5
5
  comparison: "comparison",
6
6
  estimate: "estimate",
7
7
  forecast: "forecast",
8
8
  incomplete: "incomplete",
9
- reference: (n) => `reference:${n}`,
9
+ reference: (t) => `reference:${t}`,
10
10
  trend: "trend"
11
11
  };
12
- function F(n, e) {
13
- const t = n.period;
14
- return t ? t.label ? t.label : t.state === "annualized" && !t.annualizedField ? (e == null ? void 0 : e.estimate) ?? "Estimate" : (e == null ? void 0 : e.ytd) ?? "YTD" : "";
12
+ function F(t, e) {
13
+ const n = t.period;
14
+ return n ? n.label ? n.label : n.state === "annualized" && !n.annualizedField ? (e == null ? void 0 : e.estimate) ?? "Estimate" : (e == null ? void 0 : e.ytd) ?? "YTD" : "";
15
15
  }
16
- function M(n) {
16
+ function M(t) {
17
17
  var r, o;
18
- const { temporal: e, labels: t, formatValue: a, formatCategory: d } = n, s = n.hidden ?? /* @__PURE__ */ new Set(), c = [], i = (u) => {
18
+ const { temporal: e, labels: n, formatValue: a, formatCategory: d } = t, s = t.hidden ?? /* @__PURE__ */ new Set(), c = [], i = (u) => {
19
19
  c.push({ ...u, active: !s.has(u.id) });
20
20
  };
21
21
  e != null && e.period && i({
22
22
  id: l.incomplete,
23
23
  kind: "incomplete",
24
- label: F(e, t),
24
+ label: F(e, n),
25
25
  detail: d(e.period.category),
26
26
  tone: "faint",
27
27
  stroke: "hatch"
28
- }), n.hasComparison && i({
28
+ }), t.hasComparison && i({
29
29
  id: l.comparison,
30
30
  kind: "comparison",
31
- label: (t == null ? void 0 : t.previous) ?? "Previous",
31
+ label: (n == null ? void 0 : n.previous) ?? "Previous",
32
32
  tone: "series",
33
33
  stroke: "dashed"
34
34
  });
@@ -57,7 +57,7 @@ function M(n) {
57
57
  e != null && e.regression && i({
58
58
  id: l.trend,
59
59
  kind: "trend",
60
- label: e.regression.label || (t == null ? void 0 : t.trend) || "Trend",
60
+ label: e.regression.label || (n == null ? void 0 : n.trend) || "Trend",
61
61
  tone: "trend",
62
62
  stroke: "dashed"
63
63
  });
@@ -65,39 +65,39 @@ function M(n) {
65
65
  i({
66
66
  id: l.average(u.window),
67
67
  kind: "average",
68
- label: u.label || ((r = t == null ? void 0 : t.movingAverage) == null ? void 0 : r.call(t, u.window)) || `SMA ${u.window}`,
68
+ label: u.label || ((r = n == null ? void 0 : n.movingAverage) == null ? void 0 : r.call(n, u.window)) || `SMA ${u.window}`,
69
69
  tone: "series",
70
70
  stroke: "solid"
71
71
  });
72
72
  return (o = e == null ? void 0 : e.period) != null && o.annualizedField && i({
73
73
  id: l.estimate,
74
74
  kind: "estimate",
75
- label: (t == null ? void 0 : t.estimate) ?? "Estimate",
75
+ label: (n == null ? void 0 : n.estimate) ?? "Estimate",
76
76
  detail: d(e.period.category),
77
77
  tone: "muted",
78
78
  stroke: "dotted"
79
79
  }), e != null && e.forecast && i({
80
80
  id: l.forecast,
81
81
  kind: "forecast",
82
- label: e.forecast.label || (t == null ? void 0 : t.forecast) || "Forecast",
82
+ label: e.forecast.label || (n == null ? void 0 : n.forecast) || "Forecast",
83
83
  detail: d(e.forecast.start),
84
84
  tone: "series",
85
85
  stroke: "band"
86
86
  }), c;
87
87
  }
88
- function N(n) {
88
+ function N(t) {
89
89
  return (e) => {
90
- if (n.hasDeclaredFormat) return n.format(e);
91
- if (!n.isTime) return e;
92
- const t = Date.parse(e);
93
- return Number.isFinite(t) ? new Intl.DateTimeFormat(n.locale, { month: "short", year: "numeric", timeZone: "UTC" }).format(new Date(t)) : e;
90
+ if (t.hasDeclaredFormat) return t.format(e);
91
+ if (!t.isTime) return e;
92
+ const n = Date.parse(e);
93
+ return Number.isFinite(n) ? new Intl.DateTimeFormat(t.locale, { month: "short", year: "numeric", timeZone: "UTC" }).format(new Date(n)) : e;
94
94
  };
95
95
  }
96
- function D(n) {
97
- return new Set(n.filter((e) => e.active).map((e) => e.id));
96
+ function D(t) {
97
+ return new Set(t.filter((e) => e.active).map((e) => e.id));
98
98
  }
99
- function S(n) {
100
- switch (n) {
99
+ function S(t) {
100
+ switch (t) {
101
101
  case "warn":
102
102
  return "--lens-warn";
103
103
  case "accent":
@@ -112,15 +112,15 @@ function S(n) {
112
112
  }
113
113
  }
114
114
  const h = 1, p = 10 ** h, k = 0.05;
115
- function g(n) {
116
- return n !== void 0 && Number.isFinite(n);
115
+ function g(t) {
116
+ return t !== void 0 && Number.isFinite(t);
117
117
  }
118
- function T(n, e) {
119
- if (!g(e) || e === 0) return n.map(() => {
118
+ function T(t, e) {
119
+ if (!g(e) || e === 0) return t.map(() => {
120
120
  });
121
- const t = n.map((r) => g(r) ? r / e * 100 : void 0), a = t.filter(g);
122
- if (!(a.length === t.length && a.every((r) => r >= 0) && Math.abs(a.reduce((r, o) => r + o, 0) - 100) <= k)) return t.map((r) => g(r) ? Math.round(r * p) / p : void 0);
123
- const s = t.map((r) => Math.floor((r ?? 0) * p)), c = t.map((r, o) => ({ index: o, fraction: (r ?? 0) * p - s[o] }));
121
+ const n = t.map((r) => g(r) ? r / e * 100 : void 0), a = n.filter(g);
122
+ if (!(a.length === n.length && a.every((r) => r >= 0) && Math.abs(a.reduce((r, o) => r + o, 0) - 100) <= k)) return n.map((r) => g(r) ? Math.round(r * p) / p : void 0);
123
+ const s = n.map((r) => Math.floor((r ?? 0) * p)), c = n.map((r, o) => ({ index: o, fraction: (r ?? 0) * p - s[o] }));
124
124
  let i = 100 * p - s.reduce((r, o) => r + o, 0);
125
125
  c.sort((r, o) => o.fraction - r.fraction || r.index - o.index);
126
126
  for (const { index: r } of c) {
@@ -129,50 +129,50 @@ function T(n, e) {
129
129
  }
130
130
  return s.map((r) => r / p);
131
131
  }
132
- function P(n, e, t) {
133
- if (!g(n)) return "";
132
+ function P(t, e, n) {
133
+ if (!g(t)) return "";
134
134
  const a = new Intl.NumberFormat(e, {
135
135
  style: "unit",
136
136
  unit: "percent",
137
137
  unitDisplay: "narrow",
138
138
  minimumFractionDigits: h,
139
139
  maximumFractionDigits: h
140
- }).formatToParts(Number(n.toFixed(h)));
141
- return b(a, t);
140
+ }).formatToParts(Number(t.toFixed(h)));
141
+ return b(a, n);
142
142
  }
143
- function w(n) {
144
- if (typeof n == "number" && Number.isFinite(n)) return n;
145
- if (typeof n != "string" || n.trim() === "") return;
146
- const e = Number(n);
143
+ function w(t) {
144
+ if (typeof t == "number" && Number.isFinite(t)) return t;
145
+ if (typeof t != "string" || t.trim() === "") return;
146
+ const e = Number(t);
147
147
  return Number.isFinite(e) ? e : void 0;
148
148
  }
149
- function x(n, e) {
150
- const t = e.category ?? e.label, a = e.value;
151
- if (!t || !a) return;
152
- const d = n.columns.findIndex((c) => c.name === t), s = n.columns.findIndex((c) => c.name === a);
149
+ function x(t, e) {
150
+ const n = e.category ?? e.label, a = e.value;
151
+ if (!n || !a) return;
152
+ const d = t.columns.findIndex((c) => c.name === n), s = t.columns.findIndex((c) => c.name === a);
153
153
  if (!(d < 0 || s < 0))
154
- return n.rows.flatMap((c) => {
154
+ return t.rows.flatMap((c) => {
155
155
  const i = w(c[s]);
156
156
  return i === void 0 ? [] : [i];
157
157
  });
158
158
  }
159
- function z(n, e, t) {
160
- if (t === void 0) return !1;
161
- const a = x(n, e);
159
+ function z(t, e, n) {
160
+ if (n === void 0) return !1;
161
+ const a = x(t, e);
162
162
  if (!a || a.length < 3) return !1;
163
163
  const d = a.map((i) => Math.abs(i)).filter((i) => i > 0);
164
164
  if (d.length < 2) return !1;
165
165
  const s = Math.min(...d), c = Math.max(...d);
166
- return s > 0 && c / s >= t;
166
+ return s > 0 && c / s >= n;
167
167
  }
168
- function $(n, e, t, a) {
169
- if ((t == null ? void 0 : t.scale) !== "logarithmic") return !1;
168
+ function $(t, e, n, a) {
169
+ if ((n == null ? void 0 : n.scale) !== "logarithmic") return !1;
170
170
  const d = e.category ?? e.label, s = e.value;
171
171
  if (!d || !s) return !1;
172
- const c = n.columns.findIndex((f) => f.name === d), i = n.columns.findIndex((f) => f.name === s);
172
+ const c = t.columns.findIndex((f) => f.name === d), i = t.columns.findIndex((f) => f.name === s);
173
173
  if (c < 0 || i < 0) return !1;
174
174
  const r = /* @__PURE__ */ new Set(), o = [];
175
- for (const f of n.rows) {
175
+ for (const f of t.rows) {
176
176
  const v = f[c];
177
177
  (typeof v == "string" || typeof v == "number" || typeof v == "boolean" || typeof v == "bigint") && r.add(String(v));
178
178
  const y = w(f[i]);
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
- const SDK_RELEASE_VERSION = "0.15.0"
3
- const SDK_SOURCE_COMMIT = "9ceb321bfda838bf3c3333f6f465db1b9c81cf72"
2
+ const SDK_RELEASE_VERSION = "0.17.0"
3
+ const SDK_SOURCE_COMMIT = "c1bde18a356a1ed107526ad885b92a3227f32dd6"
4
4
  const SDK_PROTOCOL_VERSION = "1.0.0"
5
- const SDK_IDENTITY = Object.freeze({"releaseVersion":"0.15.0","sourceCommit":"9ceb321bfda838bf3c3333f6f465db1b9c81cf72","protocolVersion":"1.0.0"})
5
+ const SDK_IDENTITY = Object.freeze({"releaseVersion":"0.17.0","sourceCommit":"c1bde18a356a1ed107526ad885b92a3227f32dd6","protocolVersion":"1.0.0"})
6
6
  module.exports = { SDK_RELEASE_VERSION, SDK_SOURCE_COMMIT, SDK_PROTOCOL_VERSION, SDK_IDENTITY }
@@ -1,4 +1,4 @@
1
- export const SDK_RELEASE_VERSION = "0.15.0"
2
- export const SDK_SOURCE_COMMIT = "9ceb321bfda838bf3c3333f6f465db1b9c81cf72"
1
+ export const SDK_RELEASE_VERSION = "0.17.0"
2
+ export const SDK_SOURCE_COMMIT = "c1bde18a356a1ed107526ad885b92a3227f32dd6"
3
3
  export const SDK_PROTOCOL_VERSION = "1.0.0"
4
- export const SDK_IDENTITY = Object.freeze({"releaseVersion":"0.15.0","sourceCommit":"9ceb321bfda838bf3c3333f6f465db1b9c81cf72","protocolVersion":"1.0.0"})
4
+ export const SDK_IDENTITY = Object.freeze({"releaseVersion":"0.17.0","sourceCommit":"c1bde18a356a1ed107526ad885b92a3227f32dd6","protocolVersion":"1.0.0"})
@@ -1,5 +1,5 @@
1
1
  {
2
- "releaseVersion": "0.15.0",
3
- "sourceCommit": "9ceb321bfda838bf3c3333f6f465db1b9c81cf72",
2
+ "releaseVersion": "0.17.0",
3
+ "sourceCommit": "c1bde18a356a1ed107526ad885b92a3227f32dd6",
4
4
  "protocolVersion": "1.0.0"
5
5
  }
@@ -7,6 +7,23 @@ export type DriverDescriptor = EnvironmentDescriptor & {
7
7
  capabilities: readonly string[];
8
8
  artifactDirectory: string;
9
9
  };
10
+ export declare class DriverError extends Error {
11
+ readonly code: string;
12
+ readonly operation: string;
13
+ readonly environmentId?: string;
14
+ readonly artifactDirectory?: string;
15
+ readonly descriptor?: Partial<DriverDescriptor>;
16
+ readonly causes: readonly DriverError[];
17
+ constructor(message: string, details: {
18
+ code: string;
19
+ operation: string;
20
+ environmentId?: string;
21
+ artifactDirectory?: string;
22
+ descriptor?: Partial<DriverDescriptor>;
23
+ causes?: readonly DriverError[];
24
+ cause?: unknown;
25
+ });
26
+ }
10
27
  /** One persistent, shell-free driver owns every environment it creates. */
11
28
  export declare function createProcessEnvironmentDriver<Spec>(options: {
12
29
  command: string;
@@ -15,6 +32,8 @@ export declare function createProcessEnvironmentDriver<Spec>(options: {
15
32
  env?: Record<string, string | undefined>;
16
33
  spec(workerIndex: number): Spec;
17
34
  timeoutMs?: number;
35
+ closeTimeoutMs?: number;
36
+ killTimeoutMs?: number;
18
37
  }): {
19
38
  lifecycle: EnvironmentLifecycle<DriverDescriptor>;
20
39
  close: () => Promise<void>;