@iota-uz/sdk 0.5.1 → 0.5.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.
Files changed (57) 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-DnwWRglV.js +574 -0
  4. package/dist/lens/{ChartHost-Bl2lxIqU.js → ChartHost-DohEf1-L.js} +2 -2
  5. package/dist/lens/{ChartPanel-CTIp_4YE.js → ChartPanel-WhiPcjdF.js} +3 -3
  6. package/dist/lens/{CoveragePanel-DZZWkjSv.js → CoveragePanel-BjmHpQIZ.js} +6 -6
  7. package/dist/lens/{GaugePanel-BcNdd_Wj.js → GaugePanel-CmQ4ShEf.js} +1 -1
  8. package/dist/lens/{MapPanel-6sI_Ei9L.js → MapPanel-B9q3sceX.js} +2 -2
  9. package/dist/lens/{MetricFlowPanel-LzqevSPs.js → MetricFlowPanel-HcjNwmDG.js} +6 -6
  10. package/dist/lens/{MetricHierarchyPanel-h6tJqRPg.js → MetricHierarchyPanel-D6EZ05aK.js} +2 -2
  11. package/dist/lens/{MetricRelationshipPanel-CgckUvvJ.js → MetricRelationshipPanel--MlnSeD0.js} +5 -5
  12. package/dist/lens/{PrintReport-DJv4Rm_U.js → PrintReport-CFq0u0ZA.js} +5 -5
  13. package/dist/lens/{TablePanel-Dh6bXlwM.js → TablePanel-8NER1r6f.js} +102 -102
  14. package/dist/lens/{adapter-zBDC8hbZ.js → adapter-Bl6H53g9.js} +5622 -5620
  15. package/dist/lens/breakpoints.d.ts +6 -4
  16. package/dist/lens/breakpoints.d.ts.map +1 -1
  17. package/dist/lens/charts/echarts/options.d.ts.map +1 -1
  18. package/dist/lens/contract/schemas.d.ts +1 -0
  19. package/dist/lens/contract/schemas.d.ts.map +1 -1
  20. package/dist/lens/contract/types.d.ts +2 -0
  21. package/dist/lens/contract/types.d.ts.map +1 -1
  22. package/dist/lens/controls/PeriodFilterControl.d.ts.map +1 -1
  23. package/dist/lens/controls/model.d.ts +11 -0
  24. package/dist/lens/controls/model.d.ts.map +1 -1
  25. package/dist/lens/icons.d.ts +9 -0
  26. package/dist/lens/icons.d.ts.map +1 -1
  27. package/dist/lens/{index-CspKnSQn.js → index-CIngYYVZ.js} +1 -1
  28. package/dist/lens/{index-C45DAO6w.js → index-DGLFNPl4.js} +3046 -2981
  29. package/dist/lens/index.js +1 -1
  30. package/dist/lens/{install-DyXK20dR.js → install-B6q-zRno.js} +1 -1
  31. package/dist/lens/{install-DT0AQkUj.js → install-BM-Kt5qH.js} +1 -1
  32. package/dist/lens/{install-3GLgv_LN.js → install-BdsfPB-W.js} +1 -1
  33. package/dist/lens/{install-B5oSx3pv.js → install-DNHJghsU.js} +1 -1
  34. package/dist/lens/{metricViews-QvoFHVdh.js → metricViews-CPJMPqcl.js} +1 -1
  35. package/dist/lens/panels/CascadePanel.d.ts +46 -6
  36. package/dist/lens/panels/CascadePanel.d.ts.map +1 -1
  37. package/dist/lens/panels/PanelFrame.d.ts.map +1 -1
  38. package/dist/lens/panels/TablePanel.d.ts.map +1 -1
  39. package/dist/lens/panels/WaterfallPlot.d.ts +7 -1
  40. package/dist/lens/panels/WaterfallPlot.d.ts.map +1 -1
  41. package/dist/lens/panels/data.d.ts +2 -0
  42. package/dist/lens/panels/data.d.ts.map +1 -1
  43. package/dist/lens/panels/panelFailure.d.ts +39 -0
  44. package/dist/lens/panels/panelFailure.d.ts.map +1 -0
  45. package/dist/lens/{prefetch-Dov5CBoH.js → prefetch-14qoPAtc.js} +2 -2
  46. package/dist/lens/{prefetchPanels-B7bIY0bM.js → prefetchPanels-C_-SP6Zx.js} +3 -3
  47. package/dist/lens/{print-CwcB0fug.js → print-DRljk_Xa.js} +1 -1
  48. package/dist/lens/runtime/provider.d.ts.map +1 -1
  49. package/dist/lens/runtime/query.d.ts +16 -2
  50. package/dist/lens/runtime/query.d.ts.map +1 -1
  51. package/dist/lens/{scales-DKkoQGtJ.js → scales-sHVLUC1f.js} +1 -1
  52. package/dist/lens/style.css +1 -1
  53. package/dist/sdk-identity.cjs +3 -3
  54. package/dist/sdk-identity.js +3 -3
  55. package/dist/sdk-identity.json +2 -2
  56. package/package.json +1 -1
  57. package/dist/lens/CascadePanel-DqOZFdR-.js +0 -512
@@ -1,9 +1,9 @@
1
1
  import { jsx as M, jsxs as U, Fragment as J } from "react/jsx-runtime";
2
2
  import { useState as k, useEffect as F, useMemo as $, useCallback as O } from "react";
3
- import { o as T, a as D, t as G, u as _, L as q, z, P as B } from "./index-C45DAO6w.js";
3
+ import { o as T, a as D, t as G, u as _, L as q, z, P as B } from "./index-DGLFNPl4.js";
4
4
  import "@iota-uz/sdk/client-host";
5
5
  import { C as K } from "./ChartDataEquivalent-BFDdHoQn.js";
6
- import { C as W } from "./ChartHost-Bl2lxIqU.js";
6
+ import { C as W } from "./ChartHost-DohEf1-L.js";
7
7
  const N = 5 * 1024 * 1024;
8
8
  function H(e, a) {
9
9
  var c, r, o, d;
@@ -1,8 +1,8 @@
1
1
  import { jsxs as d, jsx as o, Fragment as F } from "react/jsx-runtime";
2
2
  import { useMemo as m } from "react";
3
- import { o as C, u as h, $ as P, L as x, a4 as D, b as q, P as E } from "./index-C45DAO6w.js";
3
+ import { o as C, u as h, a0 as P, L as x, a6 as D, b as q, P as E } from "./index-DGLFNPl4.js";
4
4
  import "@iota-uz/sdk/client-host";
5
- import { f as K, r as L, d as M, Q } from "./metricViews-QvoFHVdh.js";
5
+ import { f as K, r as L, d as M, Q } from "./metricViews-CPJMPqcl.js";
6
6
  function v() {
7
7
  const e = h();
8
8
  return m(() => ({
@@ -14,15 +14,15 @@ function J({ panel: e }) {
14
14
  const n = C(e.id), l = h(), f = v(), b = P(e, "value") ?? "value", c = x(e.format[b]), y = D(), t = m(
15
15
  () => n.data ? q(e, n.data, f) : void 0,
16
16
  [n.data, f, e]
17
- ), g = (t == null ? void 0 : t.kind) === "contract-error" ? t.message : void 0, N = g ? { ...n, data: void 0, error: new Error(g) } : n, $ = m(() => {
17
+ ), g = (t == null ? void 0 : t.kind) === "contract-error" ? t.message : void 0, N = g ? { ...n, data: void 0, error: new Error(g) } : n, k = m(() => {
18
18
  if (!t) return [];
19
19
  const a = (s) => s === "+" ? l("flow.plus", "plus") : s === "−" ? l("flow.minus", "minus") : s === "=" ? l("flow.equals", "equals") : "";
20
20
  return K(e, t, c).map((s) => {
21
- const r = L(s), i = r ? l(r.meta.labelKey, r.meta.fallback) : void 0, u = a(s.operator), k = s.showDash ? i ?? l("availability.unavailable", "Unavailable") : s.text, w = !s.showDash && i ? `, ${i}` : "";
21
+ const r = L(s), i = r ? l(r.meta.labelKey, r.meta.fallback) : void 0, u = a(s.operator), $ = s.showDash ? i ?? l("availability.unavailable", "Unavailable") : s.text, w = !s.showDash && i ? `, ${i}` : "";
22
22
  return {
23
23
  ...s,
24
24
  operatorWord: u,
25
- ariaLabel: `${u ? `${u} ` : ""}${s.stage.label}, ${k}${w}`
25
+ ariaLabel: `${u ? `${u} ` : ""}${s.stage.label}, ${$}${w}`
26
26
  };
27
27
  });
28
28
  }, [c, t, e, l]), p = m(() => {
@@ -32,7 +32,7 @@ function J({ panel: e }) {
32
32
  return l("flow.difference", "Difference: {delta}", { delta: c(a) });
33
33
  }, [c, t, e, l]);
34
34
  return /* @__PURE__ */ d(E, { panel: e, frame: N, allowEmptyContent: !0, children: [
35
- /* @__PURE__ */ o("ol", { className: "lens-flow", "aria-label": l("flow.stages", "{name} stages", { name: e.title }), children: $.map((a, s) => {
35
+ /* @__PURE__ */ o("ol", { className: "lens-flow", "aria-label": l("flow.stages", "{name} stages", { name: e.title }), children: k.map((a, s) => {
36
36
  const r = y(a.stage.action), i = /* @__PURE__ */ d(F, { children: [
37
37
  /* @__PURE__ */ o("span", { className: "lens-flow-stage-label", children: a.stage.label }),
38
38
  /* @__PURE__ */ o("span", { className: "lens-flow-stage-value", children: a.showDash ? "—" : a.text }),
@@ -1,8 +1,8 @@
1
1
  import { jsx as l, jsxs as t, Fragment as E } from "react/jsx-runtime";
2
2
  import { useMemo as d } from "react";
3
- import { o as K, u as x, $ as N, L as g, a4 as A, b as D, P as L } from "./index-C45DAO6w.js";
3
+ import { o as K, u as x, a0 as N, L as g, a6 as A, b as D, P as L } from "./index-DGLFNPl4.js";
4
4
  import "@iota-uz/sdk/client-host";
5
- import { h as M, r as Q, Q as V } from "./metricViews-QvoFHVdh.js";
5
+ import { h as M, r as Q, Q as V } from "./metricViews-CPJMPqcl.js";
6
6
  function j() {
7
7
  const a = x();
8
8
  return d(() => ({
@@ -1,8 +1,8 @@
1
- import { jsx as s, jsxs as u, Fragment as $ } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as u, Fragment as A } from "react/jsx-runtime";
2
2
  import { useMemo as E } from "react";
3
- import { o as A, u as P, $ as K, L as R, a4 as T, b as g, P as z } from "./index-C45DAO6w.js";
3
+ import { o as K, u as P, a0 as R, L as T, a6 as $, b as g, P as z } from "./index-DGLFNPl4.js";
4
4
  import "@iota-uz/sdk/client-host";
5
- import { a as C, c as L, b as O, e as Q, Q as V } from "./metricViews-QvoFHVdh.js";
5
+ import { a as C, c as L, b as O, e as Q, Q as V } from "./metricViews-CPJMPqcl.js";
6
6
  function j() {
7
7
  const a = P();
8
8
  return E(() => ({
@@ -11,12 +11,12 @@ function j() {
11
11
  }), [a]);
12
12
  }
13
13
  function H({ panel: a }) {
14
- const n = A(a.id), r = P(), c = j(), d = K(a, "value") ?? "value", l = R(a.format[d]), o = T(), e = a.metricRelationship, i = E(
14
+ const n = K(a.id), r = P(), c = j(), d = R(a, "value") ?? "value", l = T(a.format[d]), o = $(), e = a.metricRelationship, i = E(
15
15
  () => n.data ? g(a, n.data, c) : void 0,
16
16
  [n.data, c, a]
17
17
  ), y = (i == null ? void 0 : i.kind) === "contract-error" ? i.message : void 0, f = y ? { ...n, data: void 0, error: new Error(y) } : n, p = C(a, i, e == null ? void 0 : e.source, l), h = C(a, i, e == null ? void 0 : e.target, l), v = e ? L(e) : { horizontal: "⇄", vertical: "⇵" }, b = (e == null ? void 0 : e.type) ?? "association", x = r(`relationship.type.${b}`, O[b]), M = D(r, e, (p == null ? void 0 : p.end.label) ?? "", (h == null ? void 0 : h.end.label) ?? ""), N = (t, k) => {
18
18
  if (!t) return /* @__PURE__ */ s("div", { className: `lens-relationship-end lens-relationship-end-${k}` });
19
- const m = o(t.end.action), F = /* @__PURE__ */ u($, { children: [
19
+ const m = o(t.end.action), F = /* @__PURE__ */ u(A, { children: [
20
20
  /* @__PURE__ */ s("span", { className: "lens-relationship-end-label", title: t.end.label, children: t.end.label }),
21
21
  /* @__PURE__ */ s("span", { className: "lens-relationship-end-value", children: t.showDash ? "—" : t.valueText }),
22
22
  /* @__PURE__ */ s(V, { confidence: t.confidence, availability: t.availability, className: "lens-relationship-chip" })
@@ -1,12 +1,12 @@
1
1
  import { jsx as s, jsxs as u } from "react/jsx-runtime";
2
2
  import { useMemo as A, createContext as pe, useCallback as G, useContext as he, Fragment as fe } from "react";
3
3
  import { createPortal as ge } from "react-dom";
4
- import { W as be, b as ve, a as ye } from "./CascadePanel-DqOZFdR-.js";
5
- import { C as ke } from "./ChartHost-Bl2lxIqU.js";
6
- import { u as T, r as Ne, f as M, b as we, a as xe, c as Fe, d as te, e as $e, g as ne, s as Se, h as Me } from "./index-C45DAO6w.js";
4
+ import { W as be, b as ve, a as ye } from "./CascadePanel-DnwWRglV.js";
5
+ import { C as ke } from "./ChartHost-DohEf1-L.js";
6
+ import { u as T, r as Ne, f as M, b as we, a as xe, c as Fe, d as te, e as $e, g as ne, s as Se, h as Me } from "./index-DGLFNPl4.js";
7
7
  import "@iota-uz/sdk/client-host";
8
- import { r as B, a as Q, c as Ce, b as De, f as J, d as Te, h as Pe } from "./metricViews-QvoFHVdh.js";
9
- import { relationshipSentence as Ae } from "./MetricRelationshipPanel-CgckUvvJ.js";
8
+ import { r as B, a as Q, c as Ce, b as De, f as J, d as Te, h as Pe } from "./metricViews-CPJMPqcl.js";
9
+ import { relationshipSentence as Ae } from "./MetricRelationshipPanel--MlnSeD0.js";
10
10
  function Ke(e, t) {
11
11
  const n = B(e);
12
12
  return n ? t(n.meta.labelKey, n.meta.fallback) : void 0;