@photon-ai/pho-ui 4.12.0 → 4.13.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 (38) hide show
  1. package/dist/chunks/{basic-page-CJ11ekjH.js → basic-page-6dDfY33L.js} +717 -737
  2. package/dist/chunks/basic-page-6dDfY33L.js.map +1 -0
  3. package/dist/chunks/box-search-C9EVZgcb.js +56 -0
  4. package/dist/chunks/box-search-C9EVZgcb.js.map +1 -0
  5. package/dist/chunks/{chat-CU3XVm99.js → chat-Bu8UyIbT.js} +206 -204
  6. package/dist/chunks/chat-Bu8UyIbT.js.map +1 -0
  7. package/dist/chunks/chrome-Ds7WykBJ.js +14 -0
  8. package/dist/chunks/chrome-Ds7WykBJ.js.map +1 -0
  9. package/dist/chunks/{data-table-Ce_c6T73.js → data-table-hzZb7Otx.js} +56 -54
  10. package/dist/chunks/{data-table-Ce_c6T73.js.map → data-table-hzZb7Otx.js.map} +1 -1
  11. package/dist/chunks/{filter-bar-CMkvhvgL.js → filter-bar-C4sPEjw1.js} +62 -65
  12. package/dist/chunks/filter-bar-C4sPEjw1.js.map +1 -0
  13. package/dist/chunks/ghost-search-8PzP73zS.js +50 -0
  14. package/dist/chunks/ghost-search-8PzP73zS.js.map +1 -0
  15. package/dist/chunks/{trace-D1fOFzJt.js → trace-DyjsBY-S.js} +15 -13
  16. package/dist/chunks/{trace-D1fOFzJt.js.map → trace-DyjsBY-S.js.map} +1 -1
  17. package/dist/components/chat.js +1 -1
  18. package/dist/components/data-table.js +4 -3
  19. package/dist/components/filter-bar.js +1 -1
  20. package/dist/components/scope.js +418 -0
  21. package/dist/components/scope.js.map +1 -0
  22. package/dist/components/trace.js +1 -1
  23. package/dist/index.js +176 -175
  24. package/dist/motion.js +61 -36
  25. package/dist/motion.js.map +1 -1
  26. package/dist/sections/basic-page.js +2 -2
  27. package/dist/src/components/chat/chat.d.ts +7 -4
  28. package/dist/src/components/input-group/box-search.d.ts +29 -0
  29. package/dist/src/components/scope/index.d.ts +1 -0
  30. package/dist/src/components/scope/scope.d.ts +98 -0
  31. package/dist/src/motion/index.d.ts +52 -0
  32. package/dist/src/utils/ghost-search.d.ts +19 -3
  33. package/package.json +5 -1
  34. package/dist/chunks/basic-page-CJ11ekjH.js.map +0 -1
  35. package/dist/chunks/chat-CU3XVm99.js.map +0 -1
  36. package/dist/chunks/filter-bar-CMkvhvgL.js.map +0 -1
  37. package/dist/chunks/ghost-search-CNVs9k1o.js +0 -34
  38. package/dist/chunks/ghost-search-CNVs9k1o.js.map +0 -1
@@ -7,7 +7,8 @@ import { t as Te } from "./IconChevronUp-CrpWSgIl.js";
7
7
  import { t as Ze } from "./IconX-pZ9vrtSr.js";
8
8
  import { t as ge } from "./collapsible-Dv306QOT.js";
9
9
  import { t as he } from "./skeleton-DwjSl4vC.js";
10
- import { a as Je, i as Ye, n as Qe, r as qe, t as et } from "./ghost-search-CNVs9k1o.js";
10
+ import { i as Je, n as Ye, r as Qe, t as qe } from "./chrome-Ds7WykBJ.js";
11
+ import { t as et } from "./ghost-search-8PzP73zS.js";
11
12
  import { i as tt, r as nt } from "./badge-DlLJPLeZ.js";
12
13
  import { createContext as de, useCallback as F, useContext as ue, useEffect as ae, useId as at, useMemo as O, useRef as fe, useState as Y } from "react";
13
14
  import { Fragment as Ee, jsx as s, jsxs as N } from "react/jsx-runtime";
@@ -252,7 +253,7 @@ function Pe(e, t) {
252
253
  }
253
254
  return n;
254
255
  }
255
- function Hn(e, t = /* @__PURE__ */ new Set()) {
256
+ function Zn(e, t = /* @__PURE__ */ new Set()) {
256
257
  return Pe($e(e), t);
257
258
  }
258
259
  function Ct(e, t) {
@@ -323,7 +324,7 @@ function Dt(e, t) {
323
324
  let o = n + t * r;
324
325
  return o = Math.min(Math.max(o, 0), 1 - r), ie([o, o + r]);
325
326
  }
326
- function Zn(e, t) {
327
+ function Jn(e, t) {
327
328
  return e[0] + t * (e[1] - e[0]);
328
329
  }
329
330
  function Rt(e) {
@@ -868,13 +869,13 @@ function Fe(e, t) {
868
869
  align: r
869
870
  }));
870
871
  }
871
- function Jn(e, t) {
872
+ function Yn(e, t) {
872
873
  return Fe(e, t).map((n) => n.ms);
873
874
  }
874
875
  function K(e) {
875
876
  return `${Number((e * 100).toFixed(4))}%`;
876
877
  }
877
- var We = S(Ye, "overflow-hidden"), Ke = "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)]", dn = "absolute inset-y-0 left-5 right-5", Be = 20, Ve = 16, un = 26;
878
+ var We = S(Qe, "overflow-hidden"), Ke = "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)]", dn = "absolute inset-y-0 left-5 right-5", Be = 20, Ve = 16, un = 26;
878
879
  function pn(e) {
879
880
  return `${Be + e * Ve + un}px`;
880
881
  }
@@ -1263,6 +1264,7 @@ function Cn({ sources: e, spanCount: t, errorCount: n, selectedId: a, onSelect:
1263
1264
  ref: f,
1264
1265
  value: c,
1265
1266
  onChange: d,
1267
+ onClear: () => d(""),
1266
1268
  placeholder: Z,
1267
1269
  "aria-label": Z,
1268
1270
  onKeyDown: (u) => {
@@ -1623,7 +1625,7 @@ function Pn({ logs: e, spans: t, loading: n, title: a, className: r, ...o }) {
1623
1625
  }) : null,
1624
1626
  /* @__PURE__ */ N("div", {
1625
1627
  "data-trace-logs-header": "",
1626
- className: S(me, qe, "items-center"),
1628
+ className: S(me, Ye, "items-center"),
1627
1629
  children: [
1628
1630
  /* @__PURE__ */ s("span", { children: "Offset" }),
1629
1631
  /* @__PURE__ */ s("span", { children: "Level" }),
@@ -1631,7 +1633,7 @@ function Pn({ logs: e, spans: t, loading: n, title: a, className: r, ...o }) {
1631
1633
  ]
1632
1634
  }),
1633
1635
  /* @__PURE__ */ s("ol", {
1634
- className: S(Qe, "m-0 list-none p-0 font-mono"),
1636
+ className: S(qe, "m-0 list-none p-0 font-mono"),
1635
1637
  children: i.length > 0 ? i.map((c, d) => /* @__PURE__ */ N("li", {
1636
1638
  className: S(me, "h-10 items-center"),
1637
1639
  children: [
@@ -1666,7 +1668,7 @@ function Pn({ logs: e, spans: t, loading: n, title: a, className: r, ...o }) {
1666
1668
  ]
1667
1669
  });
1668
1670
  }
1669
- var Dn = Object.assign(An, { Footer: Xe }), Yn = {
1671
+ var Dn = Object.assign(An, { Footer: Xe }), Qn = {
1670
1672
  Waterfall: Dn,
1671
1673
  Logs: Pn
1672
1674
  };
@@ -1674,7 +1676,7 @@ export {
1674
1676
  It as A,
1675
1677
  Pe as B,
1676
1678
  xe as C,
1677
- Hn as D,
1679
+ Zn as D,
1678
1680
  Ct as E,
1679
1681
  Dt as F,
1680
1682
  zt as I,
@@ -1683,14 +1685,14 @@ export {
1683
1685
  Ot as N,
1684
1686
  ie as O,
1685
1687
  Rt as P,
1686
- Zn as R,
1688
+ Jn as R,
1687
1689
  G as S,
1688
1690
  _t as T,
1689
1691
  Pt as V,
1690
1692
  nn as _,
1691
1693
  Ne as a,
1692
1694
  H as b,
1693
- Jn as c,
1695
+ Yn as c,
1694
1696
  an as d,
1695
1697
  rn as f,
1696
1698
  qt as g,
@@ -1705,7 +1707,7 @@ export {
1705
1707
  Jt as p,
1706
1708
  pn as r,
1707
1709
  Oe as s,
1708
- Yn as t,
1710
+ Qn as t,
1709
1711
  sn as u,
1710
1712
  en as v,
1711
1713
  J as w,
@@ -1714,4 +1716,4 @@ export {
1714
1716
  $t as z
1715
1717
  };
1716
1718
 
1717
- //# sourceMappingURL=trace-D1fOFzJt.js.map
1719
+ //# sourceMappingURL=trace-DyjsBY-S.js.map