react-semaphor 0.1.598 → 0.1.600

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 (90) hide show
  1. package/dist/analytics-protocol/index.js +336 -333
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +8 -8
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{add-to-dashboard-C86FsM8D.js → add-to-dashboard-ClhEIFst.js} +1 -1
  7. package/dist/chunks/{analytics-base-schemas-8wz9vqn_.js → analytics-base-schemas-DevrgqQb.js} +67 -60
  8. package/dist/chunks/{assistant-chat-DrI442Ld.js → assistant-chat-BULOkG9j.js} +88 -89
  9. package/dist/chunks/{bookmark-impact-C6uWtNWF.js → bookmark-impact-kdvXke8n.js} +3 -3
  10. package/dist/chunks/{bookmark-state-BfeKmj5s.js → bookmark-state-h1OLXVjE.js} +153 -153
  11. package/dist/chunks/{card-filter-builder-CSKCSpNo.js → card-filter-builder-CSCdSQQy.js} +1035 -1063
  12. package/dist/chunks/{comparison-window-caption-3bum5j00.js → comparison-window-caption-DJDwP9XO.js} +6 -6
  13. package/dist/chunks/{context-CVXTFljo.js → context-BJoEFgNl.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-C2AuKs10.js → dashboard-briefing-launcher-9YwUclHA.js} +255 -255
  15. package/dist/chunks/{dashboard-controls-BSbhyIkY.js → dashboard-controls-O6PNXMCp.js} +85 -85
  16. package/dist/chunks/{dashboard-json-Bd1rxD3y.js → dashboard-json-Bxf91TYq.js} +5 -5
  17. package/dist/chunks/{dashboard-PYd63LbL.js → dashboard-y9ON19ge.js} +1 -1
  18. package/dist/chunks/dates-DPTbpNxK.js +164 -0
  19. package/dist/chunks/{edit-dashboard-visual-D_0ZiWev.js → edit-dashboard-visual-CKwaW8H_.js} +5489 -5435
  20. package/dist/chunks/{filter-line-BdLyPYjH.js → filter-line-Dkg3yuOX.js} +6 -6
  21. package/dist/chunks/{filter-reach-copy-Dxn-mTuG.js → filter-reach-copy-ClzNcNhP.js} +1740 -1643
  22. package/dist/chunks/{filter-value-text-C6g-nDUW.js → filter-value-text-CXyuLW9Q.js} +4 -4
  23. package/dist/chunks/{index-BHSDE54O.js → index-CRo5--Y6.js} +7 -7
  24. package/dist/chunks/{layout-grid-CYR-LVpl.js → layout-grid-DSrBSfPM.js} +1 -1
  25. package/dist/chunks/{matrix-analytical-definition-C0IGLTZH.js → matrix-analytical-definition-i9PQY066.js} +443 -394
  26. package/dist/chunks/{matrix-member-presentation-D5BIYuy5.js → matrix-member-presentation-B_2beBc0.js} +1 -1
  27. package/dist/chunks/{matrix-operation-contract-RckfqkQm.js → matrix-operation-contract-DdK0J_KU.js} +36 -36
  28. package/dist/chunks/{metric-comparison-DsE8wdRh.js → metric-comparison-Bhz0V841.js} +2 -2
  29. package/dist/chunks/{paintbrush-xDDRjIyF.js → paintbrush-1UiU-uTz.js} +1 -1
  30. package/dist/chunks/{palette-CbOgFCy2.js → palette-DFIFf_-m.js} +1 -1
  31. package/dist/chunks/{pivot-result-contract-expectations-Cnq55Uno.js → pivot-result-contract-expectations-Dk7WFR_u.js} +8 -8
  32. package/dist/chunks/{pivot-result-identity-b4-ugQhm.js → pivot-result-identity-CzzrJpEm.js} +1 -1
  33. package/dist/chunks/{raw-temporal-value-B9W38mi3.js → raw-temporal-value-BLvdaMng.js} +2 -2
  34. package/dist/chunks/{report-preferences-dialog-DTu3a7ce.js → report-preferences-dialog-DiDsYpng.js} +14 -14
  35. package/dist/chunks/{report-runtime-context-BvJkcbar.js → report-runtime-context-CEGluufW.js} +2 -2
  36. package/dist/chunks/{resolve-dashboard-input-context-Bw-DesV2.js → resolve-dashboard-input-context-BAv33KGg.js} +11811 -11331
  37. package/dist/chunks/{save-BgvAsp6X.js → save-CWQ02kHo.js} +1 -1
  38. package/dist/chunks/{saved-dashboard-context-BFh0oOnF.js → saved-dashboard-context-CvzYqADe.js} +97 -97
  39. package/dist/chunks/{selection-filter-compiler-DHYsq3yM.js → selection-filter-compiler-SwrBvyyJ.js} +1 -1
  40. package/dist/chunks/{semaphor-ready-indicator-WvgHMnj8.js → semaphor-ready-indicator-1PRI9Yh2.js} +59336 -58569
  41. package/dist/chunks/{shelf-drop-preview-context-D6HgYFJp.js → shelf-drop-preview-context-BLk5Nc6K.js} +6 -6
  42. package/dist/chunks/{stored-dashboard-vlG0Knxi.js → stored-dashboard-xhYYKBsO.js} +1200 -1183
  43. package/dist/chunks/{style-sheet-parts-ClmvtkSC.js → style-sheet-parts-BX7d7-2-.js} +198 -198
  44. package/dist/chunks/{table-export-sheet-Bv6tVuMu.js → table-export-sheet-BWSVTclx.js} +1 -1
  45. package/dist/chunks/{token-types-eMdcuB6j.js → token-types-CnlEiAdS.js} +1 -1
  46. package/dist/chunks/{upload-ClUeK8F0.js → upload-DsqUSS8l.js} +1 -1
  47. package/dist/chunks/{validators-DwhBEvnh.js → validators-D2Hm57lJ.js} +23 -13
  48. package/dist/chunks/{variable-draft-CauoSBN0.js → variable-draft-DcKj8T1b.js} +4 -4
  49. package/dist/dashboard/index.js +2 -2
  50. package/dist/dashboard-authoring/index.js +2497 -2549
  51. package/dist/format-utils/index.js +14 -14
  52. package/dist/index.js +48 -48
  53. package/dist/report-runtime-context/index.js +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/surfboard/index.js +2 -2
  56. package/dist/types/components/surfboard/filter/types.d.ts +13 -1
  57. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -2
  58. package/dist/types/components/visual/data-table/types/data-table.d.ts +14 -21
  59. package/dist/types/index.js +5 -5
  60. package/dist/types/lib/dashboard-view-state/card-view-state.d.ts +11 -1
  61. package/dist/types/lib/dashboard-view-state/drill-path.d.ts +7 -0
  62. package/dist/types/lib/dashboard-viewer/table-view.d.ts +20 -0
  63. package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +8 -0
  64. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +1 -0
  65. package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +2 -0
  66. package/dist/types/lib/stores/dashboard-store.d.ts +3 -1
  67. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +64 -0
  68. package/dist/types/shared/analytics-protocol/catalog-source-address.d.ts +16 -0
  69. package/dist/types/shared/analytics-protocol/column-filter-id.d.ts +4 -0
  70. package/dist/types/shared/analytics-protocol/contracts.d.ts +26 -0
  71. package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
  72. package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +12 -1
  73. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +12 -0
  74. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  75. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -1
  76. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +4 -0
  77. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
  78. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +18 -0
  79. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  80. package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +2 -0
  81. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +8 -1
  82. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +3 -1
  83. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +29 -1
  84. package/dist/types/shared/usage-events/attribution.d.ts +2 -2
  85. package/dist/types/shared/usage-events/envelope.d.ts +2 -2
  86. package/dist/usage-events/index.js +1 -1
  87. package/package.json +1 -1
  88. package/dist/chunks/aggregate-measure-field-DtKcEjG5.js +0 -22
  89. package/dist/chunks/dates-DHMCf-F7.js +0 -115
  90. package/dist/chunks/list-filter-B67GsjTw.js +0 -15
@@ -5,29 +5,28 @@ var Qt = (e, t, a) => t.has(e) || Yt("Cannot " + a);
5
5
  var B = (e, t, a) => (Qt(e, t, "read from private field"), a ? a.call(e) : t.get(e)), oe = (e, t, a) => t.has(e) ? Yt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, a), W = (e, t, a, s) => (Qt(e, t, "write to private field"), s ? s.call(e, a) : t.set(e, a), a);
6
6
  import { jsx as d, jsxs as b, Fragment as xe } from "react/jsx-runtime";
7
7
  import { useCallback as G, useRef as te, useMemo as We, useEffect as ve, useState as $, useLayoutEffect as _e, useId as Xs } from "react";
8
- import { u as H, dn as er, ba as tr, bu as ar, ac as sr, dp as rr, dq as nr, ad as Xt, b7 as or, dr as ir, c4 as lr, ds as dr, dt as Rt, du as cr, dv as ur, dw as dt, dx as _a, dy as pr, b_ as qe, cm as ea, dz as Oa, af as mr, cg as Ra, bx as fr, c9 as Pt, bY as Pa, dA as Da, dB as Dt, cH as hr, dC as $a, dD as gr, cJ as yr, bZ as br, dE as vr, dF as xr, cj as wr, ck as Nr, dG as Ir, cl as Sr, cr as Ar, dH as Cr, c6 as pt, cq as Er, cv as Tr, c8 as ja, b5 as Fa, b8 as kr, bo as tt, b3 as La, dI as Mr, dJ as _r, dK as Or, dL as Rr, am as Ba, dM as Pr } from "./semaphor-ready-indicator-WvgHMnj8.js";
9
- import { c as Re, B as q, X as He, p as Ua, q as Dr, j as Pe, L as we, I as $t, R as $r, e as za, f as qa, h as Va } from "./style-sheet-parts-ClmvtkSC.js";
10
- import { g as jr, c as F } from "./pickers-DkqmtnTL.js";
11
- import "./validators-DwhBEvnh.js";
12
- import "./matrix-operation-contract-RckfqkQm.js";
13
- import "./analytics-base-schemas-8wz9vqn_.js";
14
- import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as Fr } from "../value-format-preferences/index.js";
15
- import { K as Lr } from "./bookmark-state-BfeKmj5s.js";
16
- import { n as Br, o as Ge, c as It, A as ze, d as Za } from "./context-CVXTFljo.js";
17
- import { p as ta, a as Ur, A as Ja } from "./saved-dashboard-context-BFh0oOnF.js";
18
- import { gR as zr, t as qr, gS as aa } from "./resolve-dashboard-input-context-Bw-DesV2.js";
19
- import { u as Ka, d as Vr } from "./report-preferences-dialog-DTu3a7ce.js";
20
- import { i as Zr } from "./stored-dashboard-vlG0Knxi.js";
21
- import { w as Jr } from "./selection-filter-compiler-DHYsq3yM.js";
8
+ import { u as H, dn as er, ba as tr, bu as ar, ac as sr, dp as rr, dq as nr, ad as Xt, b7 as or, dr as ir, bO as lr, ds as dr, dt as Rt, du as cr, dv as ur, dw as dt, dx as _a, dy as pr, bS as qe, d4 as ea, dz as Oa, af as mr, c_ as Ra, bx as fr, cT as Pt, dA as hr, bZ as Pa, dB as Da, dC as Dt, bP as gr, dD as $a, dE as yr, bR as br, bU as vr, dF as xr, dG as wr, d1 as Nr, d2 as Ir, dH as Sr, d3 as Ar, d9 as Cr, dI as Er, cR as pt, d8 as Tr, dd as kr, bL as ja, b5 as Fa, b8 as Mr, bo as tt, b3 as La, dJ as _r, dK as Or, dL as Rr, dM as Pr, am as Ba, dN as Dr } from "./semaphor-ready-indicator-1PRI9Yh2.js";
9
+ import { c as Re, B as q, X as He, p as Ua, q as $r, j as Pe, L as we, I as $t, R as jr, e as za, f as qa, h as Va } from "./style-sheet-parts-BX7d7-2-.js";
10
+ import { g as Fr, c as F } from "./pickers-DkqmtnTL.js";
11
+ import "./validators-D2Hm57lJ.js";
12
+ import "./matrix-operation-contract-DdK0J_KU.js";
13
+ import "./analytics-base-schemas-DevrgqQb.js";
14
+ import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as Lr } from "../value-format-preferences/index.js";
15
+ import { K as Br } from "./bookmark-state-h1OLXVjE.js";
16
+ import { n as Ur, o as Ge, c as It, A as ze, d as Za } from "./context-BJoEFgNl.js";
17
+ import { p as ta, a as zr, A as Ja } from "./saved-dashboard-context-CvzYqADe.js";
18
+ import { h6 as qr, v as Vr, h7 as aa } from "./resolve-dashboard-input-context-BAv33KGg.js";
19
+ import { u as Ka, d as Zr } from "./report-preferences-dialog-DiDsYpng.js";
20
+ import { i as Jr } from "./stored-dashboard-xhYYKBsO.js";
21
+ import { w as Kr } from "./selection-filter-compiler-SwrBvyyJ.js";
22
22
  import { c as Wa } from "./visual-choice-DDfHfHvY.js";
23
- import { n as Kr, v as Ha, o as Wr, t as Hr, x as jt, l as ce, d as Gr, b as Yr, m as Ft, M as mt, r as Qr, w as Xr, h as en, j as tn, s as St, f as an, a as sn } from "./add-to-dashboard-C86FsM8D.js";
24
- import { safeParseAsync as rn, lazy as nn, unknown as on, union as ln, string as dn, record as cn, object as un, number as pn, null as mn, never as fn, looseObject as hn, literal as gn, instanceof as yn, enum as bn, discriminatedUnion as vn, custom as xn, boolean as wn, array as Nn } from "zod/v4";
25
- import { toJSONSchema as In } from "zod/v4/core";
26
- import { aV as Sn, aW as An, aX as Cn, aY as at, aZ as En, a_ as sa, a$ as ra, b0 as na, b1 as oa, b2 as ia, b3 as Tn, ao as kn, am as Mn } from "./pivot-result-contract-expectations-Cnq55Uno.js";
27
- import { L as _n } from "./list-filter-B67GsjTw.js";
28
- import { L as la } from "./layout-grid-CYR-LVpl.js";
23
+ import { n as Wr, v as Ha, o as Hr, t as Gr, x as jt, l as ce, d as Yr, b as Qr, m as Ft, M as mt, r as Xr, w as en, h as tn, j as an, s as St, f as sn, a as rn } from "./add-to-dashboard-ClhEIFst.js";
24
+ import { safeParseAsync as nn, lazy as on, unknown as ln, union as dn, string as cn, record as un, object as pn, number as mn, null as fn, never as hn, looseObject as gn, literal as yn, instanceof as bn, enum as vn, discriminatedUnion as xn, custom as wn, boolean as Nn, array as In } from "zod/v4";
25
+ import { toJSONSchema as Sn } from "zod/v4/core";
26
+ import { aV as An, aW as Cn, aX as En, aY as at, aZ as Tn, a_ as sa, a$ as ra, b0 as na, b1 as oa, b2 as ia, b3 as kn, ao as Mn, am as _n } from "./pivot-result-contract-expectations-Dk7WFR_u.js";
27
+ import { L as la } from "./layout-grid-DSrBSfPM.js";
29
28
  function On(e, t, a) {
30
- const s = Sn(), r = (a == null ? void 0 : a.locale) ?? s.locale ?? An, l = Cn(e, t);
29
+ const s = An(), r = (a == null ? void 0 : a.locale) ?? s.locale ?? Cn, l = En(e, t);
31
30
  if (isNaN(l))
32
31
  throw new RangeError("Invalid time value");
33
32
  const i = Object.assign({}, a, {
@@ -36,7 +35,7 @@ function On(e, t, a) {
36
35
  });
37
36
  let p, g;
38
37
  l > 0 ? (p = at(t), g = at(e)) : (p = at(e), g = at(t));
39
- const n = En((a == null ? void 0 : a.roundingMethod) ?? "round"), h = g.getTime() - p.getTime(), c = h / ia, m = sa(g) - sa(p), x = (h - m) / ia, C = a == null ? void 0 : a.unit;
38
+ const n = Tn((a == null ? void 0 : a.roundingMethod) ?? "round"), h = g.getTime() - p.getTime(), c = h / ia, m = sa(g) - sa(p), x = (h - m) / ia, C = a == null ? void 0 : a.unit;
40
39
  let w;
41
40
  if (C ? w = C : c < 1 ? w = "second" : c < 60 ? w = "minute" : c < ra ? w = "hour" : x < na ? w = "day" : x < oa ? w = "month" : w = "year", w === "second") {
42
41
  const A = n(h / 1e3);
@@ -59,7 +58,7 @@ function On(e, t, a) {
59
58
  }
60
59
  }
61
60
  function Rn(e, t) {
62
- return On(e, Tn(e), t);
61
+ return On(e, kn(e), t);
63
62
  }
64
63
  /**
65
64
  * @license lucide-react v0.453.0 - ISC
@@ -146,7 +145,7 @@ class Qa extends Error {
146
145
  function Ln(e = "dashboard") {
147
146
  let t;
148
147
  return e === "none" ? () => {
149
- const a = zr();
148
+ const a = qr();
150
149
  return t && da(t.reads, [a]) || (t = { reads: [a], sent: { context: ta({ surface: "none", timeZone: a }) } }), t.sent;
151
150
  } : ({ focus: a, snapshot: s, editing: r }) => {
152
151
  var C;
@@ -182,7 +181,7 @@ function Ln(e = "dashboard") {
182
181
  i
183
182
  ];
184
183
  if (t && da(t.reads, h)) return t.sent;
185
- const c = ta(n), m = c.selectedCard ? Ur({
184
+ const c = ta(n), m = c.selectedCard ? zr({
186
185
  dashboard: l.dashboard,
187
186
  cardId: c.selectedCard.id,
188
187
  snapshot: g ?? "pending",
@@ -198,18 +197,18 @@ function Bn(e) {
198
197
  const { canChange: t, canChangeNow: a } = Ka(e.surface === "dashboard"), s = H((n) => {
199
198
  var c, m;
200
199
  const h = (m = (c = n.dashboard) == null ? void 0 : c.sheets) == null ? void 0 : m.find((x) => x.id === n.selectedSheetId);
201
- return !!h && !qr(h);
200
+ return !!h && !Vr(h);
202
201
  }), r = H((n) => n.isVisualEditing), l = tr(), i = ar();
203
202
  return { add: G(
204
203
  async (n, h) => {
205
204
  var I, M;
206
205
  const c = H.getState(), m = (I = c.dashboard) == null ? void 0 : I.id, x = c.selectedSheetId;
207
206
  if (!m || !x) throw new Ke(ft);
208
- const C = { title: n.title, type: Kr[h], ...n.card }, w = !zn({ ...C, id: "check" }, n, h), A = { ...C, ...w ? { type: "table" } : {}, id: aa() }, T = { id: aa(), cards: [A], activeCardId: A.id }, k = await i(T, { reuseLoaded: !0 }).catch((L) => {
207
+ const C = { title: n.title, type: Wr[h], ...n.card }, w = !zn({ ...C, id: "check" }, n, h), A = { ...C, ...w ? { type: "table" } : {}, id: aa() }, T = { id: aa(), cards: [A], activeCardId: A.id }, k = await i(T, { reuseLoaded: !0 }).catch((L) => {
209
208
  console.warn("Adding the result without refreshed semantic metadata:", L);
210
209
  }), N = structuredClone(H.getState().semanticExecutionPayload);
211
210
  sr(N, k);
212
- const u = Jr(
211
+ const u = Kr(
213
212
  A.config ?? {},
214
213
  qn(A, x, N, l)
215
214
  ), y = u === (A.config ?? {}) ? T : { ...T, cards: [{ ...A, config: u }] }, f = H.getState();
@@ -246,7 +245,7 @@ function Xa(e, t) {
246
245
  }
247
246
  function qn(e, t, a, s) {
248
247
  var i;
249
- const r = nr(H.getState()), l = Zr({
248
+ const r = nr(H.getState()), l = Jr({
250
249
  ...r,
251
250
  cardId: e.id,
252
251
  cardOverride: e,
@@ -1546,12 +1545,12 @@ function ti(e, t) {
1546
1545
  } });
1547
1546
  }
1548
1547
  function ai(e, t) {
1549
- return ct(() => Lt(In(e, {
1548
+ return ct(() => Lt(Sn(e, {
1550
1549
  target: "draft-7",
1551
1550
  io: "input",
1552
1551
  reused: "inline"
1553
1552
  })), { validate: async (a) => {
1554
- const s = await rn(e, a);
1553
+ const s = await nn(e, a);
1555
1554
  return s.success ? {
1556
1555
  success: !0,
1557
1556
  value: s.data
@@ -1687,23 +1686,23 @@ function As(e, t) {
1687
1686
  return a;
1688
1687
  }
1689
1688
  const o = {
1690
- array: Nn,
1691
- boolean: wn,
1692
- custom: xn,
1693
- discriminatedUnion: vn,
1694
- enum: bn,
1695
- instanceof: yn,
1696
- lazy: nn,
1697
- literal: gn,
1698
- looseObject: hn,
1699
- never: fn,
1700
- null: mn,
1701
- number: pn,
1702
- object: un,
1703
- record: cn,
1704
- string: dn,
1705
- union: ln,
1706
- unknown: on
1689
+ array: In,
1690
+ boolean: Nn,
1691
+ custom: wn,
1692
+ discriminatedUnion: xn,
1693
+ enum: vn,
1694
+ instanceof: bn,
1695
+ lazy: on,
1696
+ literal: yn,
1697
+ looseObject: gn,
1698
+ never: hn,
1699
+ null: fn,
1700
+ number: mn,
1701
+ object: pn,
1702
+ record: un,
1703
+ string: cn,
1704
+ union: dn,
1705
+ unknown: ln
1707
1706
  }, Oe = o.lazy(() => o.union([
1708
1707
  o.null(),
1709
1708
  o.string(),
@@ -3493,7 +3492,7 @@ function Ri(e, t) {
3493
3492
  };
3494
3493
  }
3495
3494
  var Pi = Ri;
3496
- const Di = /* @__PURE__ */ jr(Pi);
3495
+ const Di = /* @__PURE__ */ Fr(Pi);
3497
3496
  function $i(e, t) {
3498
3497
  return t != null ? Di(e, t) : e;
3499
3498
  }
@@ -3686,7 +3685,7 @@ function Bi({ throttle: e, experimental_throttle: t, resume: a = !1, ...s } = {}
3686
3685
  }
3687
3686
  class Ve extends Error {
3688
3687
  constructor(t, a = {}) {
3689
- super(Br(t, a)), this.code = t, this.name = "AssistantTurnRefusedError";
3688
+ super(Ur(t, a)), this.code = t, this.name = "AssistantTurnRefusedError";
3690
3689
  }
3691
3690
  }
3692
3691
  const zt = async (e, t) => {
@@ -3739,7 +3738,7 @@ async function Vi(e, t, a, s) {
3739
3738
  });
3740
3739
  if (l.ok) return Array.isArray(i == null ? void 0 : i.links) ? { ok: !0, links: i.links } : { ok: !1, unknown: !0 };
3741
3740
  if (typeof (i == null ? void 0 : i.code) != "string") return { ok: !1, unknown: !0 };
3742
- const p = Wr(i.changed);
3741
+ const p = Hr(i.changed);
3743
3742
  return { ok: !1, code: i.code, ...p ? { changed: p } : {} };
3744
3743
  }
3745
3744
  async function qt(e, t, a) {
@@ -3839,7 +3838,7 @@ function el(e) {
3839
3838
  } catch (he) {
3840
3839
  return k(nl(he)), he instanceof Ja && t.current.onStaleFocus(), "not_sent";
3841
3840
  }
3842
- if (Hr(D.context, E).length)
3841
+ if (Gr(D.context, E).length)
3843
3842
  return k(Xi), "not_sent";
3844
3843
  const Z = {
3845
3844
  turnId: ol(),
@@ -4018,7 +4017,7 @@ function xt(e, t) {
4018
4017
  function al(e) {
4019
4018
  return e.turns.flatMap((t) => {
4020
4019
  var r;
4021
- const a = Gr(t.outcome), s = [...t.parts, ...a ? [a] : []].map(Yr);
4020
+ const a = Yr(t.outcome), s = [...t.parts, ...a ? [a] : []].map(Qr);
4022
4021
  return [
4023
4022
  {
4024
4023
  id: `${t.turnId}-question`,
@@ -4057,10 +4056,10 @@ function $s({ children: e, className: t }) {
4057
4056
  return /* @__PURE__ */ d("td", { className: F("border-b border-border/60 px-2 py-1.5 align-top", t), children: e });
4058
4057
  }
4059
4058
  function Vt() {
4060
- return or() ?? Fr;
4059
+ return or() ?? Lr;
4061
4060
  }
4062
4061
  function js(e, t) {
4063
- return Mn({
4062
+ return _n({
4064
4063
  metadata: e,
4065
4064
  locale: t.locale,
4066
4065
  styles: { dateStyle: t.dateStyle, dateTime: t.dateTime }
@@ -4073,7 +4072,7 @@ function Zt(e, t, a) {
4073
4072
  if (e == null) return "";
4074
4073
  if (t.temporalBucket && typeof e == "string")
4075
4074
  try {
4076
- return kn({
4075
+ return Mn({
4077
4076
  value: e,
4078
4077
  metadata: t.temporalBucket,
4079
4078
  format: js(t.temporalBucket, a).format
@@ -4305,7 +4304,7 @@ function yl(e, t) {
4305
4304
  return a.ok ? a.visual : { kind: "table", encodings: {} };
4306
4305
  }
4307
4306
  const bl = {
4308
- table: { label: "Table", icon: Dr },
4307
+ table: { label: "Table", icon: $r },
4309
4308
  bar: { label: "Bar chart", icon: Ua },
4310
4309
  stackedBar: { label: "Stacked bar chart", icon: ur },
4311
4310
  line: { label: "Line chart", icon: cr },
@@ -4783,7 +4782,7 @@ function Ml({
4783
4782
  n ? /* @__PURE__ */ b("div", { className: "flex flex-wrap items-center justify-between gap-2 border-t border-border pt-2", children: [
4784
4783
  /* @__PURE__ */ d("span", { className: "text-[11.5px] leading-[1.5] text-muted-foreground", children: n }),
4785
4784
  i.kind === "refused" && s ? /* @__PURE__ */ b(q, { variant: "outline", size: "xs", className: "h-[26px] gap-1 px-2 text-[11.5px]", onClick: s, children: [
4786
- /* @__PURE__ */ d($r, { className: "h-3 w-3" }),
4785
+ /* @__PURE__ */ d(jr, { className: "h-3 w-3" }),
4787
4786
  "Ask again"
4788
4787
  ] }) : null
4789
4788
  ] }) : null
@@ -4814,7 +4813,7 @@ function Rl(e) {
4814
4813
  return e.reason === "refused" ? `Not applied: ${e.message}` : e.message;
4815
4814
  }
4816
4815
  function Pl(e) {
4817
- return e.startsWith("filter.") ? _n : e === "card.add" ? qe : e === "card.remove" ? Pa : Da;
4816
+ return e.startsWith("filter.") ? hr : e === "card.add" ? qe : e === "card.remove" ? Pa : Da;
4818
4817
  }
4819
4818
  function Dl(e) {
4820
4819
  return e.change.changeKind === "edits" ? /* @__PURE__ */ d(jl, { ...e }) : /* @__PURE__ */ d($l, { ...e });
@@ -4987,7 +4986,7 @@ function Fl({
4987
4986
  const l = (s == null ? void 0 : s.status) === "left_out", i = `${e.from.label} → ${e.to.label}`;
4988
4987
  return /* @__PURE__ */ b("li", { className: "flex items-start gap-2", "data-link-outcome": s == null ? void 0 : s.status, children: [
4989
4988
  a ? /* @__PURE__ */ d(
4990
- hr,
4989
+ gr,
4991
4990
  {
4992
4991
  checked: a.checked,
4993
4992
  disabled: a.disabled,
@@ -5002,7 +5001,7 @@ function Fl({
5002
5001
  /* @__PURE__ */ d(Dt, { className: "h-3 w-3 text-muted-foreground", "aria-hidden": "true" }),
5003
5002
  e.to.label
5004
5003
  ] }),
5005
- /* @__PURE__ */ d("span", { className: "block text-[11.5px] text-muted-foreground", children: (s == null ? void 0 : s.status) === "existing" ? "Already in the model" : (s == null ? void 0 : s.status) === "refused" ? `Not added: ${Qr(s.reasons, t)}` : l ? "Left out" : Ll(e) })
5004
+ /* @__PURE__ */ d("span", { className: "block text-[11.5px] text-muted-foreground", children: (s == null ? void 0 : s.status) === "existing" ? "Already in the model" : (s == null ? void 0 : s.status) === "refused" ? `Not added: ${Xr(s.reasons, t)}` : l ? "Left out" : Ll(e) })
5006
5005
  ] })
5007
5006
  ] });
5008
5007
  }
@@ -5106,8 +5105,8 @@ function Kl({
5106
5105
  onAskAgain: m
5107
5106
  }) {
5108
5107
  var N;
5109
- const x = e.parts.find(Hl), C = (N = e.parts.find(Gl)) == null ? void 0 : N.data, w = e.parts.filter(Yl).map((u) => u.data), A = Xr(e.parts, Wl), T = e.parts.filter(
5110
- (u) => u.type === "text" ? !A.has(u) : u.type.startsWith("data-") && en(u.type.slice(5))
5108
+ const x = e.parts.find(Hl), C = (N = e.parts.find(Gl)) == null ? void 0 : N.data, w = e.parts.filter(Yl).map((u) => u.data), A = en(e.parts, Wl), T = e.parts.filter(
5109
+ (u) => u.type === "text" ? !A.has(u) : u.type.startsWith("data-") && tn(u.type.slice(5))
5111
5110
  ), k = t ? [...w].reverse().find((u) => u.state === "live") : void 0;
5112
5111
  return /* @__PURE__ */ b("div", { className: "space-y-2", "data-testid": "assistant-answer", "data-message-id": e.id, children: [
5113
5112
  T.map(
@@ -5155,7 +5154,7 @@ function Kl({
5155
5154
  ] });
5156
5155
  }
5157
5156
  function Wl(e) {
5158
- return e.type === "text" ? tn(e.text) : e.type === "data-stage" && !e.data.change ? "step" : "other";
5157
+ return e.type === "text" ? an(e.text) : e.type === "data-stage" && !e.data.change ? "step" : "other";
5159
5158
  }
5160
5159
  function Hl(e) {
5161
5160
  return e.type === "data-using";
@@ -5244,10 +5243,10 @@ function ad(e) {
5244
5243
  return t;
5245
5244
  }
5246
5245
  const Ks = {
5247
- find: br,
5248
- read: yr,
5246
+ find: vr,
5247
+ read: br,
5249
5248
  analyze: Ua,
5250
- sql: gr,
5249
+ sql: yr,
5251
5250
  change: Da,
5252
5251
  retry: Fn
5253
5252
  };
@@ -5268,9 +5267,9 @@ function Ws({ step: e }) {
5268
5267
  const rd = "motion-safe:bg-[linear-gradient(90deg,hsl(var(--semaphor-muted-foreground))_40%,hsl(var(--semaphor-foreground))_50%,hsl(var(--semaphor-muted-foreground))_60%)] motion-safe:bg-[length:200%_100%] motion-safe:bg-clip-text motion-safe:text-transparent motion-safe:animate-assistant-shimmer";
5269
5268
  function nd({ text: e }) {
5270
5269
  return /* @__PURE__ */ d("div", { className: "break-words text-[13px] leading-[1.6] text-foreground", children: /* @__PURE__ */ d(
5271
- vr,
5270
+ xr,
5272
5271
  {
5273
- remarkPlugins: [xr],
5272
+ remarkPlugins: [wr],
5274
5273
  components: {
5275
5274
  p: ({ children: t }) => /* @__PURE__ */ d("p", { className: "mb-2 last:mb-0", children: t }),
5276
5275
  ul: ({ children: t }) => /* @__PURE__ */ d("ul", { className: "mb-2 list-disc space-y-1 pl-5 last:mb-0", children: t }),
@@ -5293,7 +5292,7 @@ const od = [
5293
5292
  { layout: "docked-right", label: "Dock right", short: "Right", icon: Ya },
5294
5293
  { layout: "docked-left", label: "Dock left", short: "Left", icon: jn },
5295
5294
  { layout: "centered", label: "Centered", short: "Center", icon: Pn },
5296
- { layout: "full-page", label: "Full page", short: "Full", icon: Cr }
5295
+ { layout: "full-page", label: "Full page", short: "Full", icon: Er }
5297
5296
  ];
5298
5297
  function id({
5299
5298
  layout: e,
@@ -5317,8 +5316,8 @@ function id({
5317
5316
  l.ok ? /* @__PURE__ */ d(Pe, { className: "h-3 w-3" }) : null,
5318
5317
  l.ok ? "Copied" : "Couldn’t copy"
5319
5318
  ] }) : null,
5320
- /* @__PURE__ */ b(wr, { children: [
5321
- /* @__PURE__ */ d(Nr, { asChild: !0, children: /* @__PURE__ */ d(
5319
+ /* @__PURE__ */ b(Nr, { children: [
5320
+ /* @__PURE__ */ d(Ir, { asChild: !0, children: /* @__PURE__ */ d(
5322
5321
  q,
5323
5322
  {
5324
5323
  variant: "ghost",
@@ -5326,12 +5325,12 @@ function id({
5326
5325
  className: "h-7 w-7 p-0 text-muted-foreground hover:text-foreground",
5327
5326
  "aria-label": "More",
5328
5327
  title: "More",
5329
- children: /* @__PURE__ */ d(Ir, { className: "h-3.5 w-3.5" })
5328
+ children: /* @__PURE__ */ d(Sr, { className: "h-3.5 w-3.5" })
5330
5329
  }
5331
5330
  ) }),
5332
- /* @__PURE__ */ b(Sr, { align: "end", className: "w-64", children: [
5331
+ /* @__PURE__ */ b(Ar, { align: "end", className: "w-64", children: [
5333
5332
  e && t ? /* @__PURE__ */ b(xe, { children: [
5334
- /* @__PURE__ */ d(Ar, { className: "text-[11px] font-medium text-muted-foreground", children: "Layout" }),
5333
+ /* @__PURE__ */ d(Cr, { className: "text-[11px] font-medium text-muted-foreground", children: "Layout" }),
5335
5334
  /* @__PURE__ */ d("div", { className: "grid grid-cols-4 gap-1 px-1 pb-1", role: "group", "aria-label": "Layout", children: od.map((h) => {
5336
5335
  const c = h.layout === e;
5337
5336
  return /* @__PURE__ */ b(
@@ -5354,10 +5353,10 @@ function id({
5354
5353
  h.layout
5355
5354
  );
5356
5355
  }) }),
5357
- /* @__PURE__ */ d(Er, {})
5356
+ /* @__PURE__ */ d(Tr, {})
5358
5357
  ] }) : null,
5359
5358
  /* @__PURE__ */ b(pt, { className: "text-[12.5px]", disabled: !s, onSelect: () => g("conversation"), children: [
5360
- /* @__PURE__ */ d(Tr, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground" }),
5359
+ /* @__PURE__ */ d(kr, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground" }),
5361
5360
  "Copy conversation"
5362
5361
  ] }),
5363
5362
  a != null && a.toolCalls ? /* @__PURE__ */ b(pt, { className: "text-[12.5px]", disabled: !s, onSelect: () => g("tool_calls"), children: [
@@ -5621,16 +5620,16 @@ function hd(e, t) {
5621
5620
  return { text: e.slice(0, s) + e.slice(t), caret: s };
5622
5621
  }
5623
5622
  const gd = [], yd = { withRequest: !0 };
5624
- function Yd({
5623
+ function Gd({
5625
5624
  instance: e,
5626
5625
  surface: t = "dashboard",
5627
5626
  placement: a
5628
5627
  }) {
5629
5628
  var Ht, Gt;
5630
- const s = t === "none", r = kr(), l = tt(e.store, (S) => S.focus), i = tt(e.store, (S) => S.isOpen), p = tt(e.store, (S) => S.askCount), g = tt(e.store, (S) => S.layout), n = s ? "full-page" : g, h = a ?? n, c = h === "beside-card", m = H(
5629
+ const s = t === "none", r = Mr(), l = tt(e.store, (S) => S.focus), i = tt(e.store, (S) => S.isOpen), p = tt(e.store, (S) => S.askCount), g = tt(e.store, (S) => S.layout), n = s ? "full-page" : g, h = a ?? n, c = h === "beside-card", m = H(
5631
5630
  (S) => {
5632
5631
  var P;
5633
- return l && S.dashboard ? (P = Lr(S.dashboard, l.cardId)) == null ? void 0 : P.card : void 0;
5632
+ return l && S.dashboard ? (P = Br(S.dashboard, l.cardId)) == null ? void 0 : P.card : void 0;
5634
5633
  }
5635
5634
  ), x = wd(s), C = te(void 0), [w] = $(() => Ln(t)), [A, T] = $([]), k = G(
5636
5635
  (S) => {
@@ -5647,7 +5646,7 @@ function Yd({
5647
5646
  apiServiceUrl: (S = r.tokenProps) == null ? void 0 : S.apiServiceUrl,
5648
5647
  accessToken: (P = r.authToken) == null ? void 0 : P.accessToken
5649
5648
  };
5650
- }, y = Bn({ surface: t }), { canChangeNow: f } = Ka(t === "dashboard"), v = Vr(f), I = el({
5649
+ }, y = Bn({ surface: t }), { canChangeNow: f } = Ka(t === "dashboard"), v = Zr(f), I = el({
5651
5650
  canChangeOpenDashboard: f,
5652
5651
  applyProposal: v,
5653
5652
  readContext: () => w({ focus: e.store.getState().focus, snapshot: C.current, editing: Nd(s) }),
@@ -5727,7 +5726,7 @@ function Yd({
5727
5726
  var S;
5728
5727
  I.startNew(), (S = V.current) == null || S.focus();
5729
5728
  },
5730
- children: /* @__PURE__ */ d(Rr, { className: "h-3.5 w-3.5" })
5729
+ children: /* @__PURE__ */ d(Pr, { className: "h-3.5 w-3.5" })
5731
5730
  }
5732
5731
  ), ut = s ? null : /* @__PURE__ */ d(
5733
5732
  q,
@@ -5747,7 +5746,7 @@ function Yd({
5747
5746
  allows: I.allows,
5748
5747
  canCopy: !!I.conversationId && !I.busy && !I.loading,
5749
5748
  onCopy: (S) => ld(
5750
- I.readForCopy(S).then((P) => an(P, { assistantName: e.assistantName, toolCalls: S }))
5749
+ I.readForCopy(S).then((P) => sn(P, { assistantName: e.assistantName, toolCalls: S }))
5751
5750
  )
5752
5751
  }
5753
5752
  ), et = U && Se && !I.loading, Qs = /* @__PURE__ */ b("footer", { className: F("shrink-0 space-y-2", et ? "px-0" : "p-3"), children: [
@@ -5837,7 +5836,7 @@ function Yd({
5837
5836
  var S;
5838
5837
  Ie((P) => P ? void 0 : { query: "", active: 0 }), (S = V.current) == null || S.focus();
5839
5838
  },
5840
- children: /* @__PURE__ */ d(Mr, { className: "h-4 w-4" })
5839
+ children: /* @__PURE__ */ d(_r, { className: "h-4 w-4" })
5841
5840
  }
5842
5841
  ) : null
5843
5842
  ] }),
@@ -5851,7 +5850,7 @@ function Yd({
5851
5850
  "aria-label": "Stop",
5852
5851
  title: "Stop",
5853
5852
  onClick: I.stop,
5854
- children: /* @__PURE__ */ d(_r, { className: "h-3 w-3 fill-current" })
5853
+ children: /* @__PURE__ */ d(Or, { className: "h-3 w-3 fill-current" })
5855
5854
  }
5856
5855
  ) : /* @__PURE__ */ d(
5857
5856
  q,
@@ -5974,7 +5973,7 @@ function Yd({
5974
5973
  ),
5975
5974
  x ? (
5976
5975
  // The draft runs as the editor's preview does: its authority and inline values.
5977
- /* @__PURE__ */ d(Or, { children: /* @__PURE__ */ d(Ta, { card: x, draft: !0, onSnapshot: k }, `draft:${x.id}`) })
5976
+ /* @__PURE__ */ d(Rr, { children: /* @__PURE__ */ d(Ta, { card: x, draft: !0, onSnapshot: k }, `draft:${x.id}`) })
5978
5977
  ) : m ? /* @__PURE__ */ d(Ta, { card: m, draft: !1, onSnapshot: k }, m.id) : null
5979
5978
  ]
5980
5979
  }
@@ -5989,7 +5988,7 @@ function Yd({
5989
5988
  }
5990
5989
  function bd(e) {
5991
5990
  try {
5992
- return sn(e().context);
5991
+ return rn(e().context);
5993
5992
  } catch {
5994
5993
  return [];
5995
5994
  }
@@ -6007,7 +6006,7 @@ function Ta({
6007
6006
  draft: t,
6008
6007
  onSnapshot: a
6009
6008
  }) {
6010
- const s = Pr(e, gd, void 0, yd);
6009
+ const s = Dr(e, gd, void 0, yd);
6011
6010
  return _e(() => {
6012
6011
  a({ cardId: e.id, draft: t, card: e, snapshot: s });
6013
6012
  }, [e, t, s, a]), null;
@@ -6112,5 +6111,5 @@ function Ad({
6112
6111
  ] });
6113
6112
  }
6114
6113
  export {
6115
- Yd as default
6114
+ Gd as default
6116
6115
  };
@@ -1,6 +1,6 @@
1
- import { y as g, A as $ } from "./bookmark-state-BfeKmj5s.js";
2
- import { l as C, i as F, f as O } from "./resolve-dashboard-input-context-Bw-DesV2.js";
3
- import { l as S, h as v, a as T } from "./stored-dashboard-vlG0Knxi.js";
1
+ import { y as g, A as $ } from "./bookmark-state-h1OLXVjE.js";
2
+ import { l as C, i as F, f as O } from "./resolve-dashboard-input-context-BAv33KGg.js";
3
+ import { l as S, h as v, a as T } from "./stored-dashboard-xhYYKBsO.js";
4
4
  function G(e) {
5
5
  var d, c, f;
6
6
  const { saved: o, draft: a, usage: l } = e, m = [], j = S(o);