react-semaphor 0.1.556 → 0.1.558

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 (79) hide show
  1. package/DATA_APP_SDK.md +6 -29
  2. package/dist/analytics-protocol/index.js +19 -20
  3. package/dist/assistant-context/index.js +1 -1
  4. package/dist/brand-studio/index.js +28 -29
  5. package/dist/briefings/index.js +55 -56
  6. package/dist/chunks/{assistant-chat-C7Acww1T.js → assistant-chat-BCWoP6Rf.js} +78 -80
  7. package/dist/chunks/{bookmark-state-7iZErWnR.js → bookmark-state-PjQpxbG7.js} +3 -3
  8. package/dist/chunks/{braces-o9UiRQes.js → braces-D5Ucy7q1.js} +1 -1
  9. package/dist/chunks/{comparison-window-caption-BseG5aOZ.js → comparison-window-caption-Dc7BaCMz.js} +186 -189
  10. package/dist/chunks/{custom-visual-inputs-ChuKjx27.js → custom-visual-inputs-B-DLRGrV.js} +1 -2
  11. package/dist/chunks/{dashboard-briefing-launcher-qrYd2zkN.js → dashboard-briefing-launcher-Coqghdn6.js} +148 -150
  12. package/dist/chunks/{dashboard-controls-BsapXI2H.js → dashboard-controls-BYWSM2RM.js} +170 -172
  13. package/dist/chunks/{dashboard-json-CJqPqYnI.js → dashboard-json-pPTB5gj0.js} +20 -21
  14. package/dist/chunks/{dashboard-BU6rE5kV.js → dashboard-wK6Bai4V.js} +1 -1
  15. package/dist/chunks/{document-dashboard-inputs-BNSprf5_.js → document-dashboard-inputs-PY_7Xm55.js} +31 -31
  16. package/dist/chunks/{edit-dashboard-visual-CjAdV-WG.js → edit-dashboard-visual-BODxuUeq.js} +7505 -7990
  17. package/dist/chunks/{filter-reach-copy-BTrqtFkh.js → filter-reach-copy-BvJH9JO-.js} +148 -149
  18. package/dist/chunks/{filter-value-text-CJTJDCym.js → filter-value-text-CUBpotVN.js} +3 -3
  19. package/dist/chunks/{global-date-filter-utils-CTVf3dG3.js → global-date-filter-utils-BsFqnnbA.js} +1396 -1391
  20. package/dist/chunks/{index-dIV-Gdsb.js → index-CJW5BdWT.js} +23 -24
  21. package/dist/chunks/{index-B_vIRa-q.js → index-DP_wQl0v.js} +70 -72
  22. package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CkoXmv0L.js} +1 -1
  23. package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-B4i25kuc.js} +1 -1
  24. package/dist/chunks/{matrix-analytical-definition-Cg0ioFGQ.js → matrix-analytical-definition-4GTUDheD.js} +3 -3
  25. package/dist/chunks/{matrix-card-yYibXSw1.js → matrix-card-fS_4O7zA.js} +2 -2
  26. package/dist/chunks/{matrix-member-presentation-DEEauKXC.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
  27. package/dist/chunks/{matrix-operation-contract-C1G6AJNh.js → matrix-operation-contract-CpgLZ7E5.js} +21 -21
  28. package/dist/chunks/{metric-comparison-BfcmwxM1.js → metric-comparison-C8LY7GG5.js} +1 -1
  29. package/dist/chunks/{palette-D10o_yYX.js → palette-stlpjVk4.js} +1 -1
  30. package/dist/chunks/{matrix-formatter-C2kjsCDf.js → pivot-result-contract-expectations-DMk-mKhG.js} +444 -395
  31. package/dist/chunks/{pivot-result-identity-CWi5WrrY.js → pivot-result-identity-CrQ54Xbj.js} +1 -1
  32. package/dist/chunks/{raw-temporal-presentation-DWzLIHc3.js → raw-temporal-presentation-BI2z2LlB.js} +24 -25
  33. package/dist/chunks/report-preferences-dialog-Dc-YyVwf.js +2109 -0
  34. package/dist/chunks/{report-runtime-context-BgM-iNWB.js → report-runtime-context-CohdtiMg.js} +1 -1
  35. package/dist/chunks/{resolve-dashboard-input-context-Df8V5QHW.js → resolve-dashboard-input-context-BZYI1hB0.js} +225 -227
  36. package/dist/chunks/{save-CfJpQQ68.js → save-C1dgxgAu.js} +1 -1
  37. package/dist/chunks/{saved-dashboard-context-VvXI6r03.js → saved-dashboard-context-CIBoMq46.js} +8 -8
  38. package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
  39. package/dist/chunks/{semaphor-ready-indicator-fejZmdq9.js → semaphor-ready-indicator-ERTLU7B4.js} +43497 -49629
  40. package/dist/chunks/{shelf-drop-preview-context-BuTCXe-S.js → shelf-drop-preview-context-fEnx6iL_.js} +6 -6
  41. package/dist/chunks/{source-entity-resolution-B46EZIzX.js → source-entity-resolution-DXW1HpKf.js} +1 -1
  42. package/dist/chunks/{switch-Bq92UGId.js → switch-BqUan2mN.js} +1430 -1341
  43. package/dist/chunks/{table-export-sheet-noKl8-en.js → table-export-sheet-CTCTA_bd.js} +1 -1
  44. package/dist/chunks/{table-settings-PpINOzw8.js → table-settings-DF1gdVQR.js} +2 -2
  45. package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
  46. package/dist/chunks/{token-types--0bgRCaO.js → token-types-DFyLflLY.js} +1 -1
  47. package/dist/chunks/{upload-BFX7apKV.js → upload-DcoyjkRV.js} +1 -1
  48. package/dist/chunks/{use-create-flow-overlay-state-Cz-ve64t.js → use-create-flow-overlay-state-xhb9YFg-.js} +124 -126
  49. package/dist/chunks/{validators-CZo_H4E6.js → validators-hmfNNQz8.js} +5 -5
  50. package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
  51. package/dist/dashboard/index.js +2 -2
  52. package/dist/dashboard-authoring/index.js +131 -132
  53. package/dist/data-app-sdk/index.js +788 -4153
  54. package/dist/data-app-sdk-adapters/index.js +2 -2
  55. package/dist/data-app-sdk-validation/index.js +5 -5
  56. package/dist/format-utils/index.js +230 -233
  57. package/dist/index.js +217 -218
  58. package/dist/layouts/index.js +1 -1
  59. package/dist/report-runtime-context/index.js +1 -1
  60. package/dist/style.css +1 -1
  61. package/dist/surfboard/index.js +2 -2
  62. package/dist/types/data-app-sdk/contracts.d.ts +0 -146
  63. package/dist/types/data-app-sdk/index.d.ts +0 -2
  64. package/dist/types/index.js +6 -6
  65. package/dist/types/lib/charts/types.d.ts +1 -2
  66. package/dist/types/lib/types/common-types.d.ts +0 -10
  67. package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
  68. package/package.json +1 -4
  69. package/src/data-app-sdk/README.md +7 -31
  70. package/dist/chunks/pivot-result-contract-expectations-fKBHFPfz.js +0 -56
  71. package/dist/chunks/raw-temporal-contract-CjHaUIsE.js +0 -64
  72. package/dist/chunks/report-preferences-dialog-D_wrbIQt.js +0 -2261
  73. package/dist/chunks/selection-reducer-By4CSmEF.js +0 -111
  74. package/dist/chunks/temporal-bucket-DzyadxVY.js +0 -2071
  75. package/dist/chunks/temporal-input-presentation-CJWS4d0L.js +0 -879
  76. package/dist/chunks/x-4f5U2XwU.js +0 -100
  77. package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
  78. package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
  79. package/dist/types/data-app-sdk/devtools.d.ts +0 -1
@@ -5,30 +5,28 @@ var Or = (e, t, r) => t.has(e) || $r("Cannot " + r);
5
5
  var L = (e, t, r) => (Or(e, t, "read from private field"), r ? r.call(e) : t.get(e)), me = (e, t, r) => t.has(e) ? $r("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), ee = (e, t, r, n) => (Or(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r);
6
6
  import { jsx as p, jsxs as k, Fragment as Le } from "react/jsx-runtime";
7
7
  import { useCallback as te, useRef as ie, useMemo as it, useEffect as ke, useState as D, useLayoutEffect as Ue, useId as As } from "react";
8
- import { u as X, dt as Cs, b7 as $s, bx as Os, Y as zs, du as Ms, dv as Ps, Z as zr, b4 as Rs, dw as Zs, bs as js, dx as dr, cQ as Ds, dy as Fs, dz as Mt, dA as Cn, dB as Ls, a_ as Pt, cl as Mr, dC as $n, $ as Us, cg as On, bA as Bs, ca as Vs, aR as zn, dh as Mn, dD as qs, dE as Js, dF as Ks, dG as Ws, dH as Gs, ci as Hs, cj as Ys, cR as Qs, ck as Xs, cq as eo, c7 as Lt, cp as to, cu as ro, c9 as Pn, b3 as Rn, b5 as no, br as xt, dI as ao, dJ as so, dK as oo, dL as io, a6 as Zn, dM as lo } from "./semaphor-ready-indicator-fejZmdq9.js";
9
- import { B as H, i as jn, j as co, c as mt, L as Be, I as Dn, R as Fn, P as Ln, a as Un, b as Bn } from "./switch-Bq92UGId.js";
8
+ import { u as X, ds as Cs, b8 as $s, bs as Os, Y as zs, dt as Ms, du as Ps, Z as zr, b5 as Rs, dv as Zs, aR as js, bn as Ds, dw as dr, cP as Fs, dx as Ls, dy as Mt, dz as Cn, dA as Us, a$ as Pt, ck as Mr, dB as $n, $ as Bs, ce as On, bv as Vs, c7 as qs, aS as zn, dg as Mn, dC as Js, dD as Ks, bB as Ws, dE as Gs, dF as Hs, dG as Ys, ch as Qs, ci as Xs, cQ as eo, cj as to, cp as ro, dH as no, c4 as Lt, co as ao, ct as so, c6 as Pn, b4 as Rn, b6 as oo, bm as xt, dI as io, dJ as lo, dK as co, dL as uo, a6 as Zn, dM as po } from "./semaphor-ready-indicator-ERTLU7B4.js";
9
+ import { c as qe, B as H, X as lt, j as jn, k as fo, d as mt, L as Be, I as Dn, R as Fn, P as Ln, a as Un, b as Bn } from "./switch-BqUan2mN.js";
10
10
  import "./index-CuHybtft.js";
11
- import "./validators-CZo_H4E6.js";
12
- import "./matrix-operation-contract-C1G6AJNh.js";
11
+ import "./validators-hmfNNQz8.js";
12
+ import "./matrix-operation-contract-CpgLZ7E5.js";
13
13
  import "./analytics-base-schemas-BUFUoO6G.js";
14
14
  import "zod";
15
- import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as uo } from "../value-format-preferences/index.js";
16
- import { g as po, c as B } from "./_commonjsHelpers-DimLPMtv.js";
15
+ import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as mo } from "../value-format-preferences/index.js";
16
+ import { g as ho, c as B } from "./_commonjsHelpers-DimLPMtv.js";
17
17
  import { f as Vn } from "./editor-draft-sync-BN5qYHPF.js";
18
- import { I as fo } from "./table-settings-PpINOzw8.js";
19
- import { l as mo, m as lt, c as Xt, A as et, d as qn } from "./context-DVy4HOU0.js";
20
- import { p as Pr, a as ho, A as Jn } from "./saved-dashboard-context-VvXI6r03.js";
21
- import { d_ as go, as as bo, v as Rr } from "./global-date-filter-utils-CTVf3dG3.js";
22
- import { o as Kn, p as vo } from "./report-preferences-dialog-D_wrbIQt.js";
23
- import { d as yo } from "./document-dashboard-inputs-BNSprf5_.js";
24
- import { w as xo, c as Wn } from "./visual-choice-JiJ-_3bi.js";
25
- import { m as wo, v as Gn, t as _o, n as Io, k as ve, d as So, b as No, l as pr, w as ko, h as Eo, s as er, f as To, a as Ao } from "./model-change-CJEj3ZD6.js";
26
- import { S as Zr, U as jr, V as Dr, O as Fr, G as Co, E as $o } from "./temporal-bucket-DzyadxVY.js";
27
- import { C as Oo, S as zo, a as Mo } from "./selection-reducer-By4CSmEF.js";
28
- import { c as qe, X as ct } from "./x-4f5U2XwU.js";
29
- import { L as Po } from "./list-filter-DsaTbM3J.js";
30
- import { s as Ro, t as Zo, u as jo, v as wt, w as Do, x as Lr, y as Fo } from "./matrix-formatter-C2kjsCDf.js";
31
- import { L as Ur } from "./layout-grid-Bgzth8vd.js";
18
+ import { I as go } from "./table-settings-DF1gdVQR.js";
19
+ import { l as bo, m as ct, c as Xt, A as et, d as qn } from "./context-DVy4HOU0.js";
20
+ import { p as Pr, a as vo, A as Jn } from "./saved-dashboard-context-CIBoMq46.js";
21
+ import { dZ as yo, as as xo, v as Rr } from "./global-date-filter-utils-BsFqnnbA.js";
22
+ import { o as Kn, p as wo } from "./report-preferences-dialog-Dc-YyVwf.js";
23
+ import { d as _o } from "./document-dashboard-inputs-PY_7Xm55.js";
24
+ import { w as Io, c as Wn } from "./visual-choice-JiJ-_3bi.js";
25
+ import { m as So, v as Gn, t as No, n as ko, k as ve, d as Eo, b as To, l as pr, w as Ao, h as Co, s as er, f as $o, a as Oo } from "./model-change-CJEj3ZD6.js";
26
+ import { ak as Zr, al as jr, am as Dr, an as Fr, a3 as zo, a1 as Mo } from "./temporal-input-presentation-DoSniQj1.js";
27
+ import { L as Po } from "./list-filter-B4i25kuc.js";
28
+ import { u as Ro, v as Zo, w as jo, x as wt, y as Do, z as Lr, A as Fo } from "./pivot-result-contract-expectations-DMk-mKhG.js";
29
+ import { L as Ur } from "./layout-grid-CkoXmv0L.js";
32
30
  function Lo(e, t, r) {
33
31
  const n = Ro(), a = (r == null ? void 0 : r.locale) ?? n.locale ?? Zo, s = jo(e, t);
34
32
  if (isNaN(s))
@@ -149,7 +147,7 @@ class Yn extends Error {
149
147
  function Go(e = "dashboard") {
150
148
  let t;
151
149
  return e === "none" ? () => {
152
- const r = go();
150
+ const r = yo();
153
151
  return t && Br(t.reads, [r]) || (t = { reads: [r], sent: { context: Pr({ surface: "none", timeZone: r }) } }), t.sent;
154
152
  } : ({ focus: r, snapshot: n, editing: a }) => {
155
153
  var I;
@@ -185,7 +183,7 @@ function Go(e = "dashboard") {
185
183
  o
186
184
  ];
187
185
  if (t && Br(t.reads, g)) return t.sent;
188
- const u = Pr(i), m = u.selectedCard ? ho({
186
+ const u = Pr(i), m = u.selectedCard ? vo({
189
187
  dashboard: s.dashboard,
190
188
  cardId: u.selectedCard.id,
191
189
  snapshot: f ?? "pending",
@@ -201,18 +199,18 @@ function Ho(e) {
201
199
  const { canChange: t, canChangeNow: r } = Kn(e.surface === "dashboard"), n = X((i) => {
202
200
  var u, m;
203
201
  const g = (m = (u = i.dashboard) == null ? void 0 : u.sheets) == null ? void 0 : m.find((w) => w.id === i.selectedSheetId);
204
- return !!g && !bo(g);
202
+ return !!g && !xo(g);
205
203
  }), a = X((i) => i.isVisualEditing), s = $s(), o = Os();
206
204
  return { add: te(
207
205
  async (i, g) => {
208
206
  var T, O;
209
207
  const u = X.getState(), m = (T = u.dashboard) == null ? void 0 : T.id, w = u.selectedSheetId;
210
208
  if (!m || !w) throw new at(Ut);
211
- const I = { title: i.title, type: wo[g], ...i.card }, E = !Qo({ ...I, id: "check" }, i, g), _ = { ...I, ...E ? { type: "table" } : {}, id: Rr() }, x = { id: Rr(), cards: [_], activeCardId: _.id }, y = await o(x, { reuseLoaded: !0 }).catch((K) => {
209
+ const I = { title: i.title, type: So[g], ...i.card }, E = !Qo({ ...I, id: "check" }, i, g), _ = { ...I, ...E ? { type: "table" } : {}, id: Rr() }, x = { id: Rr(), cards: [_], activeCardId: _.id }, y = await o(x, { reuseLoaded: !0 }).catch((K) => {
212
210
  console.warn("Adding the result without refreshed semantic metadata:", K);
213
211
  }), h = structuredClone(X.getState().semanticExecutionPayload);
214
212
  zs(h, y);
215
- const d = xo(
213
+ const d = Io(
216
214
  _.config ?? {},
217
215
  Xo(_, w, h, s)
218
216
  ), v = d === (_.config ?? {}) ? x : { ...x, cards: [{ ..._, config: d }] }, b = X.getState();
@@ -249,7 +247,7 @@ function Qn(e, t) {
249
247
  }
250
248
  function Xo(e, t, r, n) {
251
249
  var o;
252
- const a = Ps(X.getState()), s = yo({
250
+ const a = Ps(X.getState()), s = _o({
253
251
  ...a,
254
252
  cardId: e.id,
255
253
  cardOverride: e,
@@ -6405,7 +6403,7 @@ function Yp(e, t) {
6405
6403
  };
6406
6404
  }
6407
6405
  var Qp = Yp;
6408
- const Xp = /* @__PURE__ */ po(Qp);
6406
+ const Xp = /* @__PURE__ */ ho(Qp);
6409
6407
  function ef(e, t) {
6410
6408
  return t != null ? Xp(e, t) : e;
6411
6409
  }
@@ -6598,14 +6596,14 @@ function af({ throttle: e, experimental_throttle: t, resume: r = !1, ...n } = {}
6598
6596
  }
6599
6597
  class tt extends Error {
6600
6598
  constructor(t, r = {}) {
6601
- super(mo(t, r)), this.code = t, this.name = "AssistantTurnRefusedError";
6599
+ super(bo(t, r)), this.code = t, this.name = "AssistantTurnRefusedError";
6602
6600
  }
6603
6601
  }
6604
6602
  const _r = async (e, t) => {
6605
6603
  const r = await fetch(e, t);
6606
6604
  if (r.ok) return r;
6607
6605
  const n = await r.json().catch(() => {
6608
- }), a = typeof (n == null ? void 0 : n.code) == "string" && n.code in lt ? n.code : r.status === 401 || r.status === 403 ? "assistant_unavailable" : "model_unavailable", s = n == null ? void 0 : n.dailyLimit;
6606
+ }), a = typeof (n == null ? void 0 : n.code) == "string" && n.code in ct ? n.code : r.status === 401 || r.status === 403 ? "assistant_unavailable" : "model_unavailable", s = n == null ? void 0 : n.dailyLimit;
6609
6607
  throw new tt(
6610
6608
  a,
6611
6609
  Number.isInteger(s) && s > 0 ? { dailyLimit: s } : {}
@@ -6728,7 +6726,7 @@ function hf(e) {
6728
6726
  } catch (Ie) {
6729
6727
  return y(xf(Ie)), Ie instanceof Jn && t.current.onStaleFocus(), "not_sent";
6730
6728
  }
6731
- if (_o(Z.context, C).length)
6729
+ if (No(Z.context, C).length)
6732
6730
  return y(mf), "not_sent";
6733
6731
  const de = {
6734
6732
  turnId: wf(),
@@ -6768,7 +6766,7 @@ function hf(e) {
6768
6766
  const C = m.chat.id, M = (pe = s[C]) == null ? void 0 : pe[R];
6769
6767
  if ((M == null ? void 0 : M.status) !== "offered") return;
6770
6768
  o((Q) => Pe(Q, C, R, { status: "adding" }));
6771
- const Z = await cf(u.connection(), R).catch((Q) => (console.warn("The relationship could not be added:", Q), { ok: !1, code: void 0 })), de = Z.ok ? { status: "added" } : { status: "refused", message: Io(Z.code) };
6769
+ const Z = await cf(u.connection(), R).catch((Q) => (console.warn("The relationship could not be added:", Q), { ok: !1, code: void 0 })), de = Z.ok ? { status: "added" } : { status: "refused", message: ko(Z.code) };
6772
6770
  o((Q) => Pe(Q, C, R, de));
6773
6771
  },
6774
6772
  [m, u, s]
@@ -6896,7 +6894,7 @@ function Ht(e, t) {
6896
6894
  function bf(e) {
6897
6895
  return e.turns.flatMap((t) => {
6898
6896
  var a;
6899
- const r = So(t.outcome), n = [...t.parts, ...r ? [r] : []].map(No);
6897
+ const r = Eo(t.outcome), n = [...t.parts, ...r ? [r] : []].map(To);
6900
6898
  return [
6901
6899
  {
6902
6900
  id: `${t.turnId}-question`,
@@ -6911,12 +6909,12 @@ function bf(e) {
6911
6909
  function Yt(e) {
6912
6910
  return e === "submitted" || e === "streaming";
6913
6911
  }
6914
- const vf = new Set(Object.values(lt));
6912
+ const vf = new Set(Object.values(ct));
6915
6913
  function yf(e) {
6916
- return e instanceof tt || vf.has(e.message) ? e.message : lt.model_unavailable;
6914
+ return e instanceof tt || vf.has(e.message) ? e.message : ct.model_unavailable;
6917
6915
  }
6918
6916
  function xf(e) {
6919
- return e instanceof qn ? e.message : e instanceof Yn ? "The dashboard is still loading. Try again in a moment." : e instanceof Jn ? lt.context_invalid : lt.model_unavailable;
6917
+ return e instanceof qn ? e.message : e instanceof Yn ? "The dashboard is still loading. Try again in a moment." : e instanceof Jn ? ct.context_invalid : ct.model_unavailable;
6920
6918
  }
6921
6919
  function cs(e) {
6922
6920
  return ((e == null ? void 0 : e.parts) ?? []).map((t) => t.type === "text" ? t.text : "").join("").trim();
@@ -6935,10 +6933,10 @@ function ps({ children: e, className: t }) {
6935
6933
  return /* @__PURE__ */ p("td", { className: B("border-b border-border/60 px-2 py-1.5 align-top", t), children: e });
6936
6934
  }
6937
6935
  function Sr() {
6938
- return Rs() ?? uo;
6936
+ return Rs() ?? mo;
6939
6937
  }
6940
6938
  function fs(e, t) {
6941
- return $o({
6939
+ return Mo({
6942
6940
  metadata: e,
6943
6941
  locale: t.locale,
6944
6942
  styles: { dateStyle: t.dateStyle, dateTime: t.dateTime }
@@ -6951,7 +6949,7 @@ function Nr(e, t, r) {
6951
6949
  if (e == null) return "";
6952
6950
  if (t.temporalBucket && typeof e == "string")
6953
6951
  try {
6954
- return Co({
6952
+ return zo({
6955
6953
  value: e,
6956
6954
  metadata: t.temporalBucket,
6957
6955
  format: fs(t.temporalBucket, r).format
@@ -7040,7 +7038,7 @@ function kr({
7040
7038
  onClick: () => s((o) => !o),
7041
7039
  className: "inline-flex items-center gap-1 text-[11.5px] text-muted-foreground hover:text-foreground",
7042
7040
  children: [
7043
- n ? /* @__PURE__ */ p(Oo, { className: B("h-3 w-3 transition-transform", a && "rotate-90") }) : null,
7041
+ n ? /* @__PURE__ */ p(js, { className: B("h-3 w-3 transition-transform", a && "rotate-90") }) : null,
7044
7042
  e
7045
7043
  ]
7046
7044
  }
@@ -7146,7 +7144,7 @@ function $f({ artifact: e, onClose: t }) {
7146
7144
  "aria-label": "Close expanded result",
7147
7145
  title: "Close",
7148
7146
  onClick: t,
7149
- children: /* @__PURE__ */ p(ct, { className: "h-3.5 w-3.5" })
7147
+ children: /* @__PURE__ */ p(lt, { className: "h-3.5 w-3.5" })
7150
7148
  }
7151
7149
  )
7152
7150
  ] })
@@ -7171,7 +7169,7 @@ function $f({ artifact: e, onClose: t }) {
7171
7169
  );
7172
7170
  }
7173
7171
  function ms(e, t) {
7174
- const [r, n] = D(t), a = it(() => Of(e, r), [e, r]), s = X(js((i) => ({ themeStyle: i.themeStyle, theme: i.theme }))), o = Sr(), c = it(
7172
+ const [r, n] = D(t), a = it(() => Of(e, r), [e, r]), s = X(Ds((i) => ({ themeStyle: i.themeStyle, theme: i.theme }))), o = Sr(), c = it(
7175
7173
  () => If(e, a, o, s),
7176
7174
  [e, a, o, s]
7177
7175
  ), f = a.kind === "table" || a.kind !== "number" && !c ? "table" : a.kind;
@@ -7183,10 +7181,10 @@ function Of(e, t) {
7183
7181
  return r.ok ? r.visual : { kind: "table", encodings: {} };
7184
7182
  }
7185
7183
  const zf = {
7186
- table: { label: "Table", icon: co },
7184
+ table: { label: "Table", icon: fo },
7187
7185
  bar: { label: "Bar chart", icon: jn },
7188
- stackedBar: { label: "Stacked bar chart", icon: Fs },
7189
- line: { label: "Line chart", icon: Ds },
7186
+ stackedBar: { label: "Stacked bar chart", icon: Ls },
7187
+ line: { label: "Line chart", icon: Fs },
7190
7188
  number: { label: "Number", icon: dr }
7191
7189
  };
7192
7190
  function hs({
@@ -7215,7 +7213,7 @@ function hs({
7215
7213
  }) });
7216
7214
  }
7217
7215
  function gs({ cfg: e, className: t }) {
7218
- return /* @__PURE__ */ p("div", { className: B("relative w-full", t), "data-testid": "assistant-artifact-chart", children: /* @__PURE__ */ p(Ls, { cfg: e }) });
7216
+ return /* @__PURE__ */ p("div", { className: B("relative w-full", t), "data-testid": "assistant-artifact-chart", children: /* @__PURE__ */ p(Us, { cfg: e }) });
7219
7217
  }
7220
7218
  function bs({ artifact: e, visual: t }) {
7221
7219
  var a;
@@ -7567,7 +7565,7 @@ function ws({ field: e, onRemove: t }) {
7567
7565
  children: [
7568
7566
  /* @__PURE__ */ p(r, { "aria-hidden": "true", className: "h-3 w-3 shrink-0" }),
7569
7567
  /* @__PURE__ */ p("span", { className: "truncate", children: e.label }),
7570
- t ? /* @__PURE__ */ p("button", { type: "button", onClick: t, "aria-label": `Remove ${e.label}`, className: "rounded-[3px] hover:bg-primary/15", children: /* @__PURE__ */ p(ct, { className: "h-3 w-3" }) }) : null
7568
+ t ? /* @__PURE__ */ p("button", { type: "button", onClick: t, "aria-label": `Remove ${e.label}`, className: "rounded-[3px] hover:bg-primary/15", children: /* @__PURE__ */ p(lt, { className: "h-3 w-3" }) }) : null
7571
7569
  ]
7572
7570
  }
7573
7571
  );
@@ -7616,7 +7614,7 @@ function qf({
7616
7614
  onUndo: r,
7617
7615
  onAskAgain: n
7618
7616
  }) {
7619
- const a = X((g) => Us(g, e.proposalId)), s = X((g) => g.isVisualEditing), o = Wf(t, a), c = o.kind === "undone" || o.kind === "refused", f = !c && o.kind !== "settled", i = o.kind === "changed_since" ? Vf : o.kind === "undone" ? "Undone." : o.kind === "refused" ? o.message : void 0;
7617
+ const a = X((g) => Bs(g, e.proposalId)), s = X((g) => g.isVisualEditing), o = Wf(t, a), c = o.kind === "undone" || o.kind === "refused", f = !c && o.kind !== "settled", i = o.kind === "changed_since" ? Vf : o.kind === "undone" ? "Undone." : o.kind === "refused" ? o.message : void 0;
7620
7618
  return /* @__PURE__ */ k(
7621
7619
  vt,
7622
7620
  {
@@ -7634,7 +7632,7 @@ function qf({
7634
7632
  title: s ? "Close the editor to undo this change." : void 0,
7635
7633
  onClick: () => r(e.proposalId),
7636
7634
  children: [
7637
- /* @__PURE__ */ p(Bs, { className: "h-3 w-3" }),
7635
+ /* @__PURE__ */ p(Vs, { className: "h-3 w-3" }),
7638
7636
  "Undo"
7639
7637
  ]
7640
7638
  }
@@ -7671,7 +7669,7 @@ function qf({
7671
7669
  }
7672
7670
  function Jf({ refusal: e }) {
7673
7671
  return /* @__PURE__ */ p(vt, { icon: On, title: "Not added", testId: "assistant-proposal-refused", "data-refusal-code": e.code, children: /* @__PURE__ */ k("p", { className: "flex items-start gap-1.5 text-[12px] leading-[1.55] text-foreground", children: [
7674
- /* @__PURE__ */ p(Vs, { "aria-hidden": "true", className: "mt-[3px] h-3 w-3 shrink-0 text-amber-500" }),
7672
+ /* @__PURE__ */ p(qs, { "aria-hidden": "true", className: "mt-[3px] h-3 w-3 shrink-0 text-amber-500" }),
7675
7673
  /* @__PURE__ */ p("span", { className: "min-w-0", children: e.message })
7676
7674
  ] }) });
7677
7675
  }
@@ -7844,8 +7842,8 @@ function rm({
7844
7842
  onAskAgain: g
7845
7843
  }) {
7846
7844
  var x;
7847
- const u = e.parts.find(am), m = (x = e.parts.find(sm)) == null ? void 0 : x.data, w = e.parts.filter(om).map((y) => y.data), I = ko(e.parts, nm), E = e.parts.filter(
7848
- (y) => y.type === "text" ? !I.has(y) : y.type.startsWith("data-") && Eo(y.type.slice(5))
7845
+ const u = e.parts.find(am), m = (x = e.parts.find(sm)) == null ? void 0 : x.data, w = e.parts.filter(om).map((y) => y.data), I = Ao(e.parts, nm), E = e.parts.filter(
7846
+ (y) => y.type === "text" ? !I.has(y) : y.type.startsWith("data-") && Co(y.type.slice(5))
7849
7847
  ), _ = t ? [...w].reverse().find((y) => y.state === "live") : void 0;
7850
7848
  return /* @__PURE__ */ k("div", { className: "space-y-2", "data-testid": "assistant-answer", "data-message-id": e.id, children: [
7851
7849
  E.map(
@@ -7981,10 +7979,10 @@ function dm(e) {
7981
7979
  return t;
7982
7980
  }
7983
7981
  const Is = {
7984
- find: zo,
7985
- read: Js,
7982
+ find: Ws,
7983
+ read: Ks,
7986
7984
  analyze: jn,
7987
- sql: qs,
7985
+ sql: Js,
7988
7986
  change: Mn,
7989
7987
  retry: Wo
7990
7988
  };
@@ -7993,7 +7991,7 @@ function pm({ stage: e }) {
7993
7991
  const t = Is[e.activity];
7994
7992
  return /* @__PURE__ */ p(t, { className: "h-3 w-3", "aria-hidden": "true" });
7995
7993
  }
7996
- return e.state === "done" ? /* @__PURE__ */ p(mt, { className: "h-3 w-3" }) : e.state === "live" ? /* @__PURE__ */ p(Be, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ p(Gs, { className: "h-3 w-3" });
7994
+ return e.state === "done" ? /* @__PURE__ */ p(mt, { className: "h-3 w-3" }) : e.state === "live" ? /* @__PURE__ */ p(Be, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ p(Ys, { className: "h-3 w-3" });
7997
7995
  }
7998
7996
  function Ss({ step: e }) {
7999
7997
  const t = (e == null ? void 0 : e.label) ?? "Thinking", r = e != null && e.activity ? Is[e.activity] : void 0;
@@ -8005,9 +8003,9 @@ function Ss({ step: e }) {
8005
8003
  const fm = "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";
8006
8004
  function mm({ text: e }) {
8007
8005
  return /* @__PURE__ */ p("div", { className: "break-words text-[13px] leading-[1.6] text-foreground", children: /* @__PURE__ */ p(
8008
- Ks,
8006
+ Gs,
8009
8007
  {
8010
- remarkPlugins: [Ws],
8008
+ remarkPlugins: [Hs],
8011
8009
  components: {
8012
8010
  p: ({ children: t }) => /* @__PURE__ */ p("p", { className: "mb-2 last:mb-0", children: t }),
8013
8011
  ul: ({ children: t }) => /* @__PURE__ */ p("ul", { className: "mb-2 list-disc space-y-1 pl-5 last:mb-0", children: t }),
@@ -8030,7 +8028,7 @@ const hm = [
8030
8028
  { layout: "docked-right", label: "Dock right", short: "Right", icon: Hn },
8031
8029
  { layout: "docked-left", label: "Dock left", short: "Left", icon: Ko },
8032
8030
  { layout: "centered", label: "Centered", short: "Center", icon: Bo },
8033
- { layout: "full-page", label: "Full page", short: "Full", icon: Mo }
8031
+ { layout: "full-page", label: "Full page", short: "Full", icon: no }
8034
8032
  ];
8035
8033
  function gm({
8036
8034
  layout: e,
@@ -8054,8 +8052,8 @@ function gm({
8054
8052
  s.ok ? /* @__PURE__ */ p(mt, { className: "h-3 w-3" }) : null,
8055
8053
  s.ok ? "Copied" : "Couldn’t copy"
8056
8054
  ] }) : null,
8057
- /* @__PURE__ */ k(Hs, { children: [
8058
- /* @__PURE__ */ p(Ys, { asChild: !0, children: /* @__PURE__ */ p(
8055
+ /* @__PURE__ */ k(Qs, { children: [
8056
+ /* @__PURE__ */ p(Xs, { asChild: !0, children: /* @__PURE__ */ p(
8059
8057
  H,
8060
8058
  {
8061
8059
  variant: "ghost",
@@ -8063,12 +8061,12 @@ function gm({
8063
8061
  className: "h-7 w-7 p-0 text-muted-foreground hover:text-foreground",
8064
8062
  "aria-label": "More",
8065
8063
  title: "More",
8066
- children: /* @__PURE__ */ p(Qs, { className: "h-3.5 w-3.5" })
8064
+ children: /* @__PURE__ */ p(eo, { className: "h-3.5 w-3.5" })
8067
8065
  }
8068
8066
  ) }),
8069
- /* @__PURE__ */ k(Xs, { align: "end", className: "w-64", children: [
8067
+ /* @__PURE__ */ k(to, { align: "end", className: "w-64", children: [
8070
8068
  e && t ? /* @__PURE__ */ k(Le, { children: [
8071
- /* @__PURE__ */ p(eo, { className: "text-[11px] font-medium text-muted-foreground", children: "Layout" }),
8069
+ /* @__PURE__ */ p(ro, { className: "text-[11px] font-medium text-muted-foreground", children: "Layout" }),
8072
8070
  /* @__PURE__ */ p("div", { className: "grid grid-cols-4 gap-1 px-1 pb-1", role: "group", "aria-label": "Layout", children: hm.map((g) => {
8073
8071
  const u = g.layout === e;
8074
8072
  return /* @__PURE__ */ k(
@@ -8091,10 +8089,10 @@ function gm({
8091
8089
  g.layout
8092
8090
  );
8093
8091
  }) }),
8094
- /* @__PURE__ */ p(to, {})
8092
+ /* @__PURE__ */ p(ao, {})
8095
8093
  ] }) : null,
8096
8094
  /* @__PURE__ */ k(Lt, { className: "text-[12.5px]", disabled: !n, onSelect: () => f("conversation"), children: [
8097
- /* @__PURE__ */ p(ro, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground" }),
8095
+ /* @__PURE__ */ p(so, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground" }),
8098
8096
  "Copy conversation"
8099
8097
  ] }),
8100
8098
  r != null && r.toolCalls ? /* @__PURE__ */ k(Lt, { className: "text-[12.5px]", disabled: !n, onSelect: () => f("tool_calls"), children: [
@@ -8239,7 +8237,7 @@ function xm({
8239
8237
  className: "h-5 w-5 shrink-0 p-0 text-muted-foreground hover:text-foreground",
8240
8238
  "aria-label": `Remove ${c}`,
8241
8239
  onClick: () => n(o),
8242
- children: /* @__PURE__ */ p(ct, { className: "h-3 w-3" })
8240
+ children: /* @__PURE__ */ p(lt, { className: "h-3 w-3" })
8243
8241
  }
8244
8242
  )
8245
8243
  ]
@@ -8358,16 +8356,16 @@ function Sm(e, t) {
8358
8356
  return { text: e.slice(0, n) + e.slice(t), caret: n };
8359
8357
  }
8360
8358
  const Nm = [], km = { withRequest: !0 };
8361
- function ch({
8359
+ function ih({
8362
8360
  instance: e,
8363
8361
  surface: t = "dashboard",
8364
8362
  placement: r
8365
8363
  }) {
8366
8364
  var Ar, Cr;
8367
- const n = t === "none", a = no(), s = xt(e.store, (A) => A.focus), o = xt(e.store, (A) => A.isOpen), c = xt(e.store, (A) => A.askCount), f = xt(e.store, (A) => A.layout), i = n ? "full-page" : f, g = r ?? i, u = g === "beside-card", m = X(
8365
+ const n = t === "none", a = oo(), s = xt(e.store, (A) => A.focus), o = xt(e.store, (A) => A.isOpen), c = xt(e.store, (A) => A.askCount), f = xt(e.store, (A) => A.layout), i = n ? "full-page" : f, g = r ?? i, u = g === "beside-card", m = X(
8368
8366
  (A) => {
8369
8367
  var P;
8370
- return s && A.dashboard ? (P = fo(A.dashboard, s.cardId)) == null ? void 0 : P.card : void 0;
8368
+ return s && A.dashboard ? (P = go(A.dashboard, s.cardId)) == null ? void 0 : P.card : void 0;
8371
8369
  }
8372
8370
  ), w = Cm(n), I = ie(void 0), [E] = D(() => Go(t)), [_, x] = D([]), y = te(
8373
8371
  (A) => {
@@ -8384,7 +8382,7 @@ function ch({
8384
8382
  apiServiceUrl: (A = a.tokenProps) == null ? void 0 : A.apiServiceUrl,
8385
8383
  accessToken: (P = a.authToken) == null ? void 0 : P.accessToken
8386
8384
  };
8387
- }, v = Ho({ surface: t }), { canChangeNow: b } = Kn(t === "dashboard"), N = vo(b), T = hf({
8385
+ }, v = Ho({ surface: t }), { canChangeNow: b } = Kn(t === "dashboard"), N = wo(b), T = hf({
8388
8386
  canChangeOpenDashboard: b,
8389
8387
  applyProposal: N,
8390
8388
  readContext: () => E({ focus: e.store.getState().focus, snapshot: I.current, editing: $m(n) }),
@@ -8464,7 +8462,7 @@ function ch({
8464
8462
  var A;
8465
8463
  T.startNew(), (A = Y.current) == null || A.focus();
8466
8464
  },
8467
- children: /* @__PURE__ */ p(io, { className: "h-3.5 w-3.5" })
8465
+ children: /* @__PURE__ */ p(uo, { className: "h-3.5 w-3.5" })
8468
8466
  }
8469
8467
  ), Ft = n ? null : /* @__PURE__ */ p(
8470
8468
  H,
@@ -8475,7 +8473,7 @@ function ch({
8475
8473
  "aria-label": "Close",
8476
8474
  title: "Close",
8477
8475
  onClick: e.close,
8478
- children: /* @__PURE__ */ p(ct, { className: "h-3.5 w-3.5" })
8476
+ children: /* @__PURE__ */ p(lt, { className: "h-3.5 w-3.5" })
8479
8477
  }
8480
8478
  ), Tr = /* @__PURE__ */ p(
8481
8479
  gm,
@@ -8484,7 +8482,7 @@ function ch({
8484
8482
  allows: T.allows,
8485
8483
  canCopy: !!T.conversationId && !T.busy && !T.loading,
8486
8484
  onCopy: (A) => bm(
8487
- T.readForCopy(A).then((P) => To(P, { assistantName: e.assistantName, toolCalls: A }))
8485
+ T.readForCopy(A).then((P) => $o(P, { assistantName: e.assistantName, toolCalls: A }))
8488
8486
  )
8489
8487
  }
8490
8488
  ), yt = Q && Oe && !T.loading, Ts = /* @__PURE__ */ k("footer", { className: B("shrink-0 space-y-2", yt ? "px-0" : "p-3"), children: [
@@ -8509,7 +8507,7 @@ function ch({
8509
8507
  "aria-label": "Stop asking about this card",
8510
8508
  title: "Stop asking about this card",
8511
8509
  onClick: e.clearFocus,
8512
- children: /* @__PURE__ */ p(ct, { className: "h-3 w-3" })
8510
+ children: /* @__PURE__ */ p(lt, { className: "h-3 w-3" })
8513
8511
  }
8514
8512
  )
8515
8513
  ] }) : null,
@@ -8574,7 +8572,7 @@ function ch({
8574
8572
  var A;
8575
8573
  Ce((P) => P ? void 0 : { query: "", active: 0 }), (A = Y.current) == null || A.focus();
8576
8574
  },
8577
- children: /* @__PURE__ */ p(ao, { className: "h-4 w-4" })
8575
+ children: /* @__PURE__ */ p(io, { className: "h-4 w-4" })
8578
8576
  }
8579
8577
  ) : null
8580
8578
  ] }),
@@ -8588,7 +8586,7 @@ function ch({
8588
8586
  "aria-label": "Stop",
8589
8587
  title: "Stop",
8590
8588
  onClick: T.stop,
8591
- children: /* @__PURE__ */ p(so, { className: "h-3 w-3 fill-current" })
8589
+ children: /* @__PURE__ */ p(lo, { className: "h-3 w-3 fill-current" })
8592
8590
  }
8593
8591
  ) : /* @__PURE__ */ p(
8594
8592
  H,
@@ -8711,7 +8709,7 @@ function ch({
8711
8709
  ),
8712
8710
  w ? (
8713
8711
  // The draft runs as the editor's preview does: its authority and inline values.
8714
- /* @__PURE__ */ p(oo, { children: /* @__PURE__ */ p(En, { card: w, draft: !0, onSnapshot: y }, `draft:${w.id}`) })
8712
+ /* @__PURE__ */ p(co, { children: /* @__PURE__ */ p(En, { card: w, draft: !0, onSnapshot: y }, `draft:${w.id}`) })
8715
8713
  ) : m ? /* @__PURE__ */ p(En, { card: m, draft: !1, onSnapshot: y }, m.id) : null
8716
8714
  ]
8717
8715
  }
@@ -8726,7 +8724,7 @@ function ch({
8726
8724
  }
8727
8725
  function Em(e) {
8728
8726
  try {
8729
- return Ao(e().context);
8727
+ return Oo(e().context);
8730
8728
  } catch {
8731
8729
  return [];
8732
8730
  }
@@ -8744,7 +8742,7 @@ function En({
8744
8742
  draft: t,
8745
8743
  onSnapshot: r
8746
8744
  }) {
8747
- const n = lo(e, Nm, void 0, km);
8745
+ const n = po(e, Nm, void 0, km);
8748
8746
  return Ue(() => {
8749
8747
  r({ cardId: e.id, draft: t, card: e, snapshot: n });
8750
8748
  }, [e, t, n, r]), null;
@@ -8849,5 +8847,5 @@ function Mm({
8849
8847
  ] });
8850
8848
  }
8851
8849
  export {
8852
- ch as default
8850
+ ih as default
8853
8851
  };
@@ -1,7 +1,7 @@
1
1
  import { z as t } from "zod";
2
- import { s as g, b as v } from "./matrix-operation-contract-C1G6AJNh.js";
3
- import { a as T } from "./metric-comparison-BfcmwxM1.js";
4
- import { D as O, v as y, k as E, j as A, i as V } from "./table-settings-PpINOzw8.js";
2
+ import { b as g, d as v } from "./matrix-operation-contract-CpgLZ7E5.js";
3
+ import { a as T } from "./metric-comparison-C8LY7GG5.js";
4
+ import { D as O, v as y, k as E, j as A, i as V } from "./table-settings-DF1gdVQR.js";
5
5
  const p = 1, $ = ["PRIVATE", "TEAM", "DASHBOARD"], R = t.object({
6
6
  filterId: t.string().min(1),
7
7
  name: t.string(),
@@ -1,4 +1,4 @@
1
- import { c as a } from "./x-4f5U2XwU.js";
1
+ import { c as a } from "./switch-BqUan2mN.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *