@danxbot/ui 7.1.0 → 7.2.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.
package/dist/index.js CHANGED
@@ -46506,21 +46506,16 @@ function FG(e, t) {
46506
46506
  function q4(e) {
46507
46507
  return e >= 0.9 ? "high" : e >= 0.7 ? "moderate" : "low";
46508
46508
  }
46509
- function Y4(e, t) {
46510
- if (!Number.isFinite(e) || !Number.isFinite(t) || t <= 0 || e <= 0) return null;
46511
- const n = Math.round(Math.min(e, t) / t * 5);
46512
- return Math.max(1, Math.min(5, n));
46513
- }
46514
- const X4 = {
46509
+ const Y4 = {
46515
46510
  high: "success",
46516
46511
  moderate: "warning",
46517
46512
  low: "danger"
46518
- }, Z4 = {
46513
+ }, X4 = {
46519
46514
  high: "High confidence",
46520
46515
  moderate: "Moderate confidence",
46521
46516
  low: "Low confidence"
46522
46517
  };
46523
- function Q4({
46518
+ function Z4({
46524
46519
  confidence: e,
46525
46520
  unscoredLabel: t = "Not scored",
46526
46521
  compact: n = !1,
@@ -46533,15 +46528,26 @@ function Q4({
46533
46528
  t_,
46534
46529
  {
46535
46530
  value: s,
46536
- tone: X4[o],
46531
+ tone: Y4[o],
46537
46532
  size: "sm",
46538
- label: n ? void 0 : Z4[o],
46533
+ label: n ? void 0 : X4[o],
46539
46534
  format: (i) => `${i}%`,
46540
46535
  showValue: !0
46541
46536
  }
46542
46537
  ) });
46543
46538
  }
46544
- const J4 = pt({
46539
+ function Q4(e, t) {
46540
+ if (!Number.isFinite(e) || !Number.isFinite(t) || t <= 0 || e <= 0) return null;
46541
+ const n = Math.round(Math.min(e, t) / t * 5);
46542
+ return Math.max(1, Math.min(5, n));
46543
+ }
46544
+ const $G = {
46545
+ 1: "Just a guess",
46546
+ 2: "Somewhat unsure",
46547
+ 3: "Fairly confident",
46548
+ 4: "Confident",
46549
+ 5: "Highly confident"
46550
+ }, J4 = pt({
46545
46551
  slots: {
46546
46552
  slot: "flex shrink-0 overflow-hidden rounded-full",
46547
46553
  fill: "h-full rounded-full"
@@ -46578,7 +46584,7 @@ function eH({
46578
46584
  size: r,
46579
46585
  className: o
46580
46586
  }) {
46581
- const s = e === null ? null : Y4(e, t), i = s === null || e === null ? `${n} — not rated` : `${n} ${String(Math.round(e))} of ${String(Math.round(t))}`, a = J4({ size: r, level: s ?? "none" });
46587
+ const s = e === null ? null : Q4(e, t), i = s === null || e === null ? `${n} — not rated` : `${n} ${String(Math.round(e))} of ${String(Math.round(t))}`, a = J4({ size: r, level: s ?? "none" });
46582
46588
  return /* @__PURE__ */ f(ln, { content: i, children: /* @__PURE__ */ f(
46583
46589
  "span",
46584
46590
  {
@@ -46606,7 +46612,7 @@ function tH({
46606
46612
  className: o
46607
46613
  }
46608
46614
  ) : /* @__PURE__ */ f(
46609
- Q4,
46615
+ Z4,
46610
46616
  {
46611
46617
  confidence: e.score,
46612
46618
  compact: r,
@@ -46645,7 +46651,7 @@ function IN({
46645
46651
  }
46646
46652
  );
46647
46653
  }
46648
- function $G(e) {
46654
+ function LG(e) {
46649
46655
  return kN[e].label;
46650
46656
  }
46651
46657
  const nH = {
@@ -46777,7 +46783,7 @@ function rH({
46777
46783
  ] })
46778
46784
  ] });
46779
46785
  }
46780
- function LG({
46786
+ function zG({
46781
46787
  record: e,
46782
46788
  actions: t,
46783
46789
  emptyLabel: n = "No value",
@@ -46897,7 +46903,7 @@ async function Nl(e) {
46897
46903
  throw await Iv(o), new cH("Simulated network failure (Flaky mode).");
46898
46904
  await Iv(o);
46899
46905
  }
46900
- function zG(e, t, n, r = {}) {
46906
+ function BG(e, t, n, r = {}) {
46901
46907
  const o = r.namespace ?? "demo", s = `${o}:${e}`;
46902
46908
  let i = ph(s, (p) => Array.isArray(p)) ?? t;
46903
46909
  const a = /* @__PURE__ */ new Set();
@@ -47238,7 +47244,7 @@ function xH(e, t, n) {
47238
47244
  const r = e.x + e.width, o = e.y + e.height / 2, s = t.x, i = t.y + t.height / 2, a = (r + s) / 2;
47239
47245
  return `M ${r} ${o} C ${a} ${o}, ${a} ${i}, ${s} ${i}`;
47240
47246
  }
47241
- function BG({
47247
+ function HG({
47242
47248
  root: e,
47243
47249
  label: t,
47244
47250
  renderNode: n,
@@ -47575,7 +47581,7 @@ function EH(e) {
47575
47581
  return e.startsWith("__") || e === "deleted_at";
47576
47582
  }
47577
47583
  const Cc = /* @__PURE__ */ new Map();
47578
- function HG(e, t = {}) {
47584
+ function UG(e, t = {}) {
47579
47585
  const n = Ia(e);
47580
47586
  n !== e && rn(
47581
47587
  "defineRecordType",
@@ -47596,7 +47602,7 @@ function RH(e, t) {
47596
47602
  function NH(e) {
47597
47603
  return Cc.get(e)?.staleFields ?? [];
47598
47604
  }
47599
- function UG() {
47605
+ function GG() {
47600
47606
  Cc.clear();
47601
47607
  }
47602
47608
  const FN = -1, Ln = /* @__PURE__ */ new Map(), Sr = /* @__PURE__ */ new Map(), ao = /* @__PURE__ */ new Map(), _r = /* @__PURE__ */ new Map(), Xi = /* @__PURE__ */ new Set(), no = /* @__PURE__ */ new Map();
@@ -47779,7 +47785,7 @@ function _H(e) {
47779
47785
  });
47780
47786
  return ao.set(e, o), o;
47781
47787
  }
47782
- function GG(e, t, n) {
47788
+ function jG(e, t, n) {
47783
47789
  return Ma(oi(e, t), n);
47784
47790
  }
47785
47791
  let Ts = /* @__PURE__ */ new Set(), Fn = null;
@@ -47911,10 +47917,10 @@ function fp(e, t) {
47911
47917
  if (Zi(e))
47912
47918
  for (const n of Object.values(e)) fp(n, t);
47913
47919
  }
47914
- function jG() {
47920
+ function WG() {
47915
47921
  Fn !== null && (Gg(Fn), Fn = null), Ln.clear(), Sr.clear(), ao.clear(), _r.clear(), Xi.clear(), no.clear(), Ts = /* @__PURE__ */ new Set(), Ri = Wg, Is = 0, lo = void 0;
47916
47922
  }
47917
- function WG() {
47923
+ function KG() {
47918
47924
  return { records: Ln.size, memos: Sr.size, roots: no.size, listeners: _r.size };
47919
47925
  }
47920
47926
  function Zi(e) {
@@ -47943,7 +47949,7 @@ function jH(e, t, n) {
47943
47949
  ), a = kr(s, i, DH);
47944
47950
  return Ye(() => r === null ? void 0 : qg([r]), [r]), a;
47945
47951
  }
47946
- function KG(e, t, n) {
47952
+ function qG(e, t, n) {
47947
47953
  const r = n.needs, o = qe(() => t.map((d) => oi(e.type, d)), [e.type, t.join("\0")]), s = o.join("\0"), i = Ve(
47948
47954
  (d) => {
47949
47955
  const p = o.map((h) => jg(h, d));
@@ -47959,7 +47965,7 @@ function KG(e, t, n) {
47959
47965
  }, [s, r]), c = qe(() => Object.freeze(o.map(() => Ta)), [s]), u = Ve(() => c, [c]), m = kr(i, l, u);
47960
47966
  return Ye(() => qg(o), [s]), m;
47961
47967
  }
47962
- function qG() {
47968
+ function YG() {
47963
47969
  return kr(BN, Kg, BH);
47964
47970
  }
47965
47971
  const WH = 6e4, KH = 6e4, qH = 1e3, YH = 3e4, XH = 6;
@@ -47978,7 +47984,7 @@ function JH() {
47978
47984
  Yu += 1;
47979
47985
  for (const e of [...Ec]) e();
47980
47986
  }
47981
- function YG() {
47987
+ function XG() {
47982
47988
  Yu = 0, Ec.clear(), Rc.clear();
47983
47989
  }
47984
47990
  function Xu(e) {
@@ -48381,7 +48387,7 @@ function vi(e, t) {
48381
48387
  }
48382
48388
  }
48383
48389
  const UN = An(null);
48384
- function XG({
48390
+ function ZG({
48385
48391
  transport: e,
48386
48392
  tenant: t,
48387
48393
  ownsStoreTenant: n = !0,
@@ -48396,7 +48402,7 @@ function XG({
48396
48402
  function GN() {
48397
48403
  return On(UN);
48398
48404
  }
48399
- function ZG(e, t, n) {
48405
+ function QG(e, t, n) {
48400
48406
  const r = GN(), o = Xg(Xu(t)), s = [...n].sort().join(","), i = ke({ scope: t, events: n });
48401
48407
  i.current = { scope: t, events: n }, Ye(() => {
48402
48408
  if (r)
@@ -48410,7 +48416,7 @@ const Mv = Object.freeze({
48410
48416
  epoch: 0,
48411
48417
  lastError: void 0
48412
48418
  });
48413
- function QG() {
48419
+ function JG() {
48414
48420
  const e = GN(), t = Ve(
48415
48421
  (o) => {
48416
48422
  if (!e) return () => {
@@ -48424,7 +48430,7 @@ function QG() {
48424
48430
  ), n = Ve(() => e ? e.readHealth() : Mv, [e]), r = Ve(() => Mv, []);
48425
48431
  return kr(t, n, r);
48426
48432
  }
48427
- function JG() {
48433
+ function e9() {
48428
48434
  return kr(Yg, ZH, () => 0);
48429
48435
  }
48430
48436
  const r6 = 1e3;
@@ -48507,7 +48513,7 @@ function i6() {
48507
48513
  function a6() {
48508
48514
  for (const e of [...Ms.values()]) e.request();
48509
48515
  }
48510
- function e9() {
48516
+ function t9() {
48511
48517
  Ms.clear(), KN();
48512
48518
  }
48513
48519
  const Zu = Object.freeze({
@@ -48643,7 +48649,7 @@ function Ov(e, t) {
48643
48649
  function S6(e, t) {
48644
48650
  return e.length === t.length && e.every((n, r) => n === t[r]);
48645
48651
  }
48646
- function t9() {
48652
+ function n9() {
48647
48653
  for (const e of $n.values()) {
48648
48654
  for (const t of e.memberReleases) t();
48649
48655
  e.retainRelease?.();
@@ -48651,7 +48657,7 @@ function t9() {
48651
48657
  $n.clear(), ws.clear(), Wo?.(), Wo = null;
48652
48658
  }
48653
48659
  const qN = { inFlight: !1, settled: !1, error: void 0 };
48654
- function n9(e, t, n) {
48660
+ function r9(e, t, n) {
48655
48661
  const { tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i } = n, a = t == null ? null : oi(e.type, t), l = jH(e, t, { needs: r }), [c, u] = Re(qN), m = ke(n.fetch);
48656
48662
  m.current = n.fetch;
48657
48663
  const d = ke(o);
@@ -48695,7 +48701,7 @@ function n9(e, t, n) {
48695
48701
  [l, c, g]
48696
48702
  );
48697
48703
  }
48698
- function r9(e, t) {
48704
+ function o9(e, t) {
48699
48705
  const { key: n, tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i, createdScope: a } = t, l = a === void 0 ? void 0 : Xu(a), c = l === void 0 ? "" : Xg(l), u = ke(l);
48700
48706
  u.current = l;
48701
48707
  const [m, d] = Re(qN), p = ke(t.fetch);
@@ -48746,14 +48752,14 @@ function r9(e, t) {
48746
48752
  [w, m, S]
48747
48753
  );
48748
48754
  }
48749
- function o9(e, t) {
48755
+ function s9(e, t) {
48750
48756
  return qu(e, {
48751
48757
  source: "fetch",
48752
48758
  tag: t.tag,
48753
48759
  tenant: t.tenant ?? Hg()
48754
48760
  });
48755
48761
  }
48756
- function s9(e = 6e4) {
48762
+ function i9(e = 6e4) {
48757
48763
  Ye(() => {
48758
48764
  const t = setInterval(() => GH(), e);
48759
48765
  return () => clearInterval(t);
@@ -48792,6 +48798,7 @@ export {
48792
48798
  nF as Breadcrumb,
48793
48799
  Nt as Button,
48794
48800
  Nv as CATEGORY_TONES,
48801
+ $G as CONFIDENCE_LEVEL_LABELS,
48795
48802
  CG as CalendarMonth,
48796
48803
  EG as CalendarTimeGrid,
48797
48804
  A6 as Callout,
@@ -48819,7 +48826,7 @@ export {
48819
48826
  aU as CommandPalette,
48820
48827
  l3 as Composer,
48821
48828
  eH as ConfidenceBar,
48822
- Q4 as ConfidenceMeter,
48829
+ Z4 as ConfidenceMeter,
48823
48830
  tH as ConfidenceReadout,
48824
48831
  W6 as ConnectionCard,
48825
48832
  h3 as ContextMeter,
@@ -48878,7 +48885,7 @@ export {
48878
48885
  t_ as Meter,
48879
48886
  C3 as ModelSelector,
48880
48887
  mU as MultiCombobox,
48881
- BG as NodeCanvas,
48888
+ HG as NodeCanvas,
48882
48889
  cU as NumberInput,
48883
48890
  uU as OTPInput,
48884
48891
  rF as Pagination,
@@ -48895,14 +48902,14 @@ export {
48895
48902
  Kd as ProjectionError,
48896
48903
  IN as ProvenanceBadge,
48897
48904
  rH as ProvenanceDetail,
48898
- LG as ProvenanceDisclosure,
48905
+ zG as ProvenanceDisclosure,
48899
48906
  NG as RBACProvider,
48900
48907
  G1 as Radio,
48901
48908
  Z6 as RadioCard,
48902
48909
  X6 as RadioField,
48903
48910
  K6 as RadioGroup,
48904
48911
  jU as ReadMore,
48905
- XG as RealtimeProvider,
48912
+ ZG as RealtimeProvider,
48906
48913
  gU as RecordCard,
48907
48914
  vU as RecordCardBadges,
48908
48915
  xU as RecordCardEyebrow,
@@ -48976,7 +48983,7 @@ export {
48976
48983
  KU as applyBoardMoves,
48977
48984
  Sv as applyCalendarDelta,
48978
48985
  Og as applyMove,
48979
- o9 as applyMutationResult,
48986
+ s9 as applyMutationResult,
48980
48987
  Mu as assertSteps,
48981
48988
  nG as atMidnight,
48982
48989
  rG as atTime,
@@ -49001,12 +49008,12 @@ export {
49001
49008
  W as cn,
49002
49009
  Pi as comparePlainDate,
49003
49010
  q4 as confidenceBand,
49004
- Y4 as confidenceLevel,
49011
+ Q4 as confidenceLevel,
49005
49012
  K4 as confidenceScore,
49006
49013
  gc as constructAt,
49007
49014
  zR as convertBlock,
49008
49015
  vk as coreIcons,
49009
- zG as createSimStore,
49016
+ BG as createSimStore,
49010
49017
  Cl as createdEvent,
49011
49018
  Yi as dayFraction,
49012
49019
  vG as dayKey,
@@ -49016,7 +49023,7 @@ export {
49016
49023
  hv as daysBetween,
49017
49024
  zs as daysInMonth,
49018
49025
  _n as defineGrammar,
49019
- HG as defineRecordType,
49026
+ UG as defineRecordType,
49020
49027
  RR as deleteColumn,
49021
49028
  ER as deleteRow,
49022
49029
  NR as deleteTable,
@@ -49102,11 +49109,11 @@ export {
49102
49109
  pG as parsePhone,
49103
49110
  O3 as parsePlainDate,
49104
49111
  DN as pathToNode,
49105
- GG as peekRecord,
49112
+ jG as peekRecord,
49106
49113
  Fg as plainDateTimeToInstant,
49107
49114
  qy as project,
49108
49115
  _5 as projectedText,
49109
- $G as provenanceStateLabel,
49116
+ LG as provenanceStateLabel,
49110
49117
  FG as ratedConfidence,
49111
49118
  iB as readMoreVariants,
49112
49119
  ZH as readRealtimeEpoch,
@@ -49116,17 +49123,17 @@ export {
49116
49123
  Ma as readState,
49117
49124
  ph as readStored,
49118
49125
  oi as recordKey,
49119
- WG as recordStoreStats,
49126
+ KG as recordStoreStats,
49120
49127
  WN as registerActiveRead,
49121
49128
  HU as registerGrammar,
49122
49129
  I6 as registerIcon,
49123
49130
  T6 as registerIcons,
49124
- e9 as resetActiveReads,
49125
- YG as resetRealtimeSignals,
49126
- jG as resetRecordStore,
49127
- UG as resetRecordTypes,
49131
+ t9 as resetActiveReads,
49132
+ XG as resetRealtimeSignals,
49133
+ WG as resetRecordStore,
49134
+ GG as resetRecordTypes,
49128
49135
  C4 as resetSimStores,
49129
- t9 as resetSlots,
49136
+ n9 as resetSlots,
49130
49137
  bi as resolveCalendarTarget,
49131
49138
  m5 as resolveKey,
49132
49139
  BU as resolveLanguage,
@@ -49203,17 +49210,17 @@ export {
49203
49210
  f4 as useNow,
49204
49211
  _S as usePersistedState,
49205
49212
  Ku as useRBAC,
49206
- ZG as useRealtime,
49207
- JG as useRealtimeEpoch,
49208
- QG as useRealtimeHealth,
49213
+ QG as useRealtime,
49214
+ e9 as useRealtimeEpoch,
49215
+ JG as useRealtimeHealth,
49209
49216
  GN as useRealtimeRegistry,
49210
49217
  jH as useRecord,
49211
- r9 as useRecordListRead,
49212
- n9 as useRecordRead,
49213
- s9 as useRecordStoreSweep,
49214
- KG as useRecords,
49218
+ o9 as useRecordListRead,
49219
+ r9 as useRecordRead,
49220
+ i9 as useRecordStoreSweep,
49221
+ qG as useRecords,
49215
49222
  T4 as useSimSettings,
49216
- qG as useStaleness,
49223
+ YG as useStaleness,
49217
49224
  UD as useTheme,
49218
49225
  eU as useToast,
49219
49226
  jD as useUiScale,