react-semaphor 0.1.532 → 0.1.533

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 (34) hide show
  1. package/dist/brand-studio/index.js +1 -1
  2. package/dist/chunks/{dashboard-BoSKlMPx.js → dashboard-DUCg1mNJ.js} +1 -1
  3. package/dist/chunks/{dashboard-briefing-launcher-BR5llbxb.js → dashboard-briefing-launcher-B0PuQUiR.js} +1401 -1383
  4. package/dist/chunks/{dashboard-controls-4Thl0eL1.js → dashboard-controls-Cl3fLg9W.js} +39 -39
  5. package/dist/chunks/{dashboard-json-Ez0I7b2H.js → dashboard-json-BSOgXGwr.js} +1 -1
  6. package/dist/chunks/{edit-dashboard-visual-DpGb6dpY.js → edit-dashboard-visual-CQDyMxM7.js} +516 -516
  7. package/dist/chunks/{editor-action-buttons--SQ3CcBI.js → editor-action-buttons-BKVrZnRQ.js} +2 -2
  8. package/dist/chunks/{matrix-formatter-DDjECnMd.js → matrix-formatter-DY1y9odV.js} +2 -1
  9. package/dist/chunks/{pivot-header-presentation-BTOXdU6S.js → pivot-header-presentation-Bb6b3Ch2.js} +232 -210
  10. package/dist/chunks/{report-preferences-dialog-Cv_2GMlz.js → report-preferences-dialog-WDM7qWxV.js} +16 -16
  11. package/dist/chunks/{semaphor-ready-indicator-lALyc-pQ.js → semaphor-ready-indicator-yZ0JtL4D.js} +33527 -33435
  12. package/dist/chunks/{slider-DlRYiI2m.js → slider-0mB67Lls.js} +3 -3
  13. package/dist/chunks/{switch-CCOKraBb.js → switch-D95vek6N.js} +1690 -1683
  14. package/dist/dashboard/index.js +1 -1
  15. package/dist/data-app-sdk/index.js +1 -1
  16. package/dist/format-utils/index.js +90 -89
  17. package/dist/index.js +120 -119
  18. package/dist/surfboard/index.js +1 -1
  19. package/dist/types/components/surfboard/filter/date-range-filter-v2.d.ts +2 -2
  20. package/dist/types/components/surfboard/filter/types.d.ts +9 -0
  21. package/dist/types/lib/api/exports-api.d.ts +30 -3
  22. package/dist/types/lib/csv-download.d.ts +4 -2
  23. package/dist/types/lib/export-messages.d.ts +47 -0
  24. package/dist/types/lib/exports/bounded-request.d.ts +12 -0
  25. package/dist/types/lib/exports/export-status.d.ts +2 -0
  26. package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
  27. package/dist/types/lib/hooks/use-export-polling.d.ts +9 -1
  28. package/dist/types/lib/matrix-table/submit-matrix-delivery.d.ts +14 -2
  29. package/dist/types/lib/matrix-table/use-matrix.d.ts +4 -0
  30. package/dist/types/lib/stores/export-store.d.ts +11 -0
  31. package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +9 -0
  32. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +6 -0
  33. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +28 -4
  34. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  import { jsx as e, jsxs as s, Fragment as F } from "react/jsx-runtime";
2
- import { u as C, B as H, aO as Gr, aP as Vr, aQ as Ze, c as be, aj as D, aR as xe, aS as nt, aT as zt, L as Re, m as Hr, s as qr, t as jr, v as zr, w as Kr, x as Qr, aU as Kt, ah as Wr, a2 as At, n as Mt, o as Lt, p as Pt, q as Ot, I as Jr, D as Yr, aV as Xr } from "./switch-CCOKraBb.js";
3
- import { bq as Zr, br as ea, bs as ot, bt as ta, bu as ra, bv as aa, bw as na, bx as oa, by as sa, aB as J, az as ve, bz as ye, bA as ia, aY as Qt, aZ as Wt, a$ as et, b0 as tt, bB as Jt, bd as st, bm as re, bC as da, bD as ca, bE as Yt, bF as la, bG as Xt, a_ as ua, bH as ma, bI as U, bJ as ha, an as pa, aN as fa, bK as ga, bL as ba, bM as xa, l as va, u as Pe, r as ya, m as We, bN as wa, bO as Na, bP as Sa, bQ as Da, K as Ca, bR as ka, bS as Ea, I as _t, bT as Ia, aP as Aa, bU as Ma, bV as La, bW as Pa, bX as Rt, bY as Ut, bZ as Tt, b_ as Oa, b$ as _a, c0 as Ra, c1 as Ua, c2 as Oe, c3 as Ta, c4 as Fa, c5 as Je, c6 as Ft, q as $a, c7 as Ba, c8 as Ga, c9 as Va, ca as Ha, cb as qa, cc as ja, cd as za, ce as Ka, cf as $t } from "./semaphor-ready-indicator-lALyc-pQ.js";
2
+ import { u as C, B as H, aO as Gr, aP as Vr, aQ as Ze, c as be, aj as D, aR as xe, aS as nt, aT as zt, L as Re, m as Hr, s as qr, t as jr, v as zr, w as Kr, x as Qr, aU as Kt, ah as Wr, a2 as At, n as Mt, o as Lt, p as Ot, q as Pt, I as Jr, D as Yr, aV as Xr } from "./switch-D95vek6N.js";
3
+ import { br as Zr, bs as ea, bt as ot, bu as ta, bv as ra, bw as aa, bx as na, by as oa, bz as sa, aC as J, aA as ve, bA as ye, bB as ia, aZ as Qt, a_ as Wt, b0 as et, b1 as tt, bC as Jt, be as st, bn as re, bD as da, bE as ca, bF as Yt, bG as la, bH as Xt, a$ as ua, bI as ma, bJ as U, bK as ha, an as pa, aO as fa, bL as ga, bM as ba, bN as xa, l as va, u as Oe, r as ya, m as We, bO as wa, bP as Na, bQ as Sa, bR as Da, K as Ca, bS as ka, bT as Ea, I as _t, bU as Ia, aQ as Aa, bV as Ma, bW as La, bX as Oa, bY as Rt, bZ as Ut, b_ as Tt, b$ as Pa, c0 as _a, c1 as Ra, c2 as Ua, c3 as Pe, c4 as Ta, c5 as Fa, c6 as Je, c7 as Ft, q as $a, c8 as Ba, c9 as Ga, ca as Va, cb as Ha, cc as qa, cd as ja, ce as za, cf as Ka, cg as $t } from "./semaphor-ready-indicator-yZ0JtL4D.js";
4
4
  import { c as ae, X as Zt, C as Qa } from "./x-CXDkqdur.js";
5
5
  import * as E from "react";
6
6
  import er, { useMemo as W, useState as N, useEffect as Ue, useRef as Bt, useLayoutEffect as Wa } from "react";
7
- import { d as Ja, c as Ya, u as Xa, A as Za, a as en, g as tn, V as rn, N as an, h as nn, U as on } from "./dashboard-briefing-launcher-BR5llbxb.js";
7
+ import { d as Ja, c as Ya, u as Xa, A as Za, a as en, g as tn, V as rn, N as an, h as nn, U as on } from "./dashboard-briefing-launcher-B0PuQUiR.js";
8
8
  import "./card-config-utils-DqyASiD_.js";
9
9
  import { createPortal as sn } from "react-dom";
10
10
  import "./validators-BS521dum.js";
@@ -12,9 +12,9 @@ import "./matrix-operation-contract-BotZ-6zT.js";
12
12
  import "zod";
13
13
  import "../value-format-preferences/index.js";
14
14
  import { S as dn, C as cn } from "./selection-reducer-DQok8gsC.js";
15
- import { k as tr } from "./matrix-formatter-DDjECnMd.js";
15
+ import { k as tr } from "./matrix-formatter-DY1y9odV.js";
16
16
  import { K as rt } from "./calculated-field-identity-Q1aCudPD.js";
17
- import { R as ln } from "./report-preferences-dialog-Cv_2GMlz.js";
17
+ import { R as ln } from "./report-preferences-dialog-WDM7qWxV.js";
18
18
  import { r as un } from "./pivot-result-lifecycle-BxmATSFJ.js";
19
19
  import { u as mn } from "./use-debounced-dirty-check-BwAbnX_5.js";
20
20
  import { s as hn } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
@@ -349,11 +349,11 @@ function Ln() {
349
349
  return () => {
350
350
  };
351
351
  }
352
- var dt = "Avatar", [Pn] = En(dt), [On, ar] = Pn(dt), nr = E.forwardRef(
352
+ var dt = "Avatar", [On] = En(dt), [Pn, ar] = On(dt), nr = E.forwardRef(
353
353
  (t, n) => {
354
354
  const { __scopeAvatar: a, ...r } = t, [o, l] = E.useState("idle");
355
355
  return /* @__PURE__ */ e(
356
- On,
356
+ Pn,
357
357
  {
358
358
  scope: a,
359
359
  imageLoadingStatus: o,
@@ -1503,19 +1503,19 @@ function Ao() {
1503
1503
  (d) => d.isDashboardEditing
1504
1504
  ), { setDashboardTitle: Y } = C((d) => d.actions), [Te, q] = N(!1), [ne, j] = N(!1), [oe, se] = N(!1), [Fe, ie] = N(!1), [we, X] = N(null), [Ne, Se] = N(!1), [$e, B] = N(!1), [v, R] = N(null), [de, z] = N([]), [ce, K] = N(!1), [De, ct] = N(!1), _ = C((d) => d.isVisualEditing);
1505
1505
  At((d) => d.card);
1506
- const br = Pe(
1506
+ const br = Oe(
1507
1507
  (d) => d.selectedDashboard
1508
- ), xr = Pe(
1508
+ ), xr = Oe(
1509
1509
  (d) => d.initialDashboard
1510
1510
  );
1511
- Pe((d) => d.selectedVisual), C((d) => d.selectedFrameId), At((d) => d.frame);
1511
+ Oe((d) => d.selectedVisual), C((d) => d.selectedFrameId), At((d) => d.frame);
1512
1512
  const lt = C(
1513
1513
  (d) => d.showDashboardJSON
1514
1514
  );
1515
1515
  C((d) => d.onSaveFunction);
1516
1516
  const { setIsDashboardEditing: ut, setShowDashboardJSON: mt } = C(
1517
1517
  (d) => d.actions
1518
- ), { setInitialDashboard: ht, clearSelectedDashboard: Be } = Pe(
1518
+ ), { setInitialDashboard: ht, clearSelectedDashboard: Be } = Oe(
1519
1519
  (d) => d.actions
1520
1520
  ), le = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Ce } = ya(We.DASHBOARD), { data: Ge } = wa(), vr = ((Ct = Ge == null ? void 0 : Ge.preference) == null ? void 0 : Ct.defaultDashboardId) || null, { mutate: yr, isPending: wr } = Na(), { currentUser: Nr } = ot(), Sr = Sa(Nr), G = br || xr, Z = Da({
1521
1521
  config: n.config,
@@ -1543,14 +1543,14 @@ function Ao() {
1543
1543
  {
1544
1544
  onSuccess: () => {
1545
1545
  he(
1546
- (P) => (P == null ? void 0 : P.dashboard.id) === p.id ? {
1547
- ...P,
1548
- dashboard: { ...P.dashboard, title: d }
1549
- } : P
1546
+ (O) => (O == null ? void 0 : O.dashboard.id) === p.id ? {
1547
+ ...O,
1548
+ dashboard: { ...O.dashboard, title: d }
1549
+ } : O
1550
1550
  ), D.success("Dashboard title updated");
1551
1551
  },
1552
- onError: (P) => {
1553
- console.error("Failed to update dashboard title:", P), D.error("Failed to update dashboard title");
1552
+ onError: (O) => {
1553
+ console.error("Failed to update dashboard title:", O), D.error("Failed to update dashboard title");
1554
1554
  const te = C.getState().dashboard;
1555
1555
  (te == null ? void 0 : te.id) === p.id && te.title === d && Y(L);
1556
1556
  }
@@ -1563,7 +1563,7 @@ function Ao() {
1563
1563
  const d = p == null ? void 0 : p.id;
1564
1564
  if (d) {
1565
1565
  const L = Ce.find(
1566
- (P) => P.id === d
1566
+ (O) => O.id === d
1567
1567
  );
1568
1568
  L && ht(L);
1569
1569
  }
@@ -1637,12 +1637,12 @@ function Ao() {
1637
1637
  closeAfterSave: !0,
1638
1638
  navigateHomeAfterSave: qe === "home"
1639
1639
  });
1640
- }, Pr = () => {
1640
+ }, Or = () => {
1641
1641
  const d = qe === "home" && !!le;
1642
1642
  M && ze(M.dashboard, {
1643
1643
  semanticExecutionPayload: M.semanticExecutionPayload
1644
1644
  }), Ee(), d && Be(), ke("close"), ue(!1), pe();
1645
- }, Or = () => {
1645
+ }, Pr = () => {
1646
1646
  M && (ze(M.dashboard, {
1647
1647
  semanticExecutionPayload: M.semanticExecutionPayload
1648
1648
  }), pe());
@@ -1661,8 +1661,8 @@ function Ao() {
1661
1661
  const L = C.getState().dashboard;
1662
1662
  if (!L)
1663
1663
  return;
1664
- const P = (d == null ? void 0 : d.closeAfterSave) ?? ce, te = (d == null ? void 0 : d.navigateHomeAfterSave) ?? !1;
1665
- K(P), P && ue(!1);
1664
+ const O = (d == null ? void 0 : d.closeAfterSave) ?? ce, te = (d == null ? void 0 : d.navigateHomeAfterSave) ?? !1;
1665
+ K(O), O && ue(!1);
1666
1666
  const $r = rt(L);
1667
1667
  B(!0), R(null), z([]), He(!0);
1668
1668
  const Br = {
@@ -1674,9 +1674,9 @@ function Ao() {
1674
1674
  data: Br
1675
1675
  },
1676
1676
  {
1677
- onSuccess: (O) => {
1677
+ onSuccess: (P) => {
1678
1678
  var Ae, Me, It;
1679
- const Q = (O == null ? void 0 : O.id) || ((Ae = O == null ? void 0 : O.dashboard) == null ? void 0 : Ae.id) || ((Me = O == null ? void 0 : O.resource) == null ? void 0 : Me.id) || ((It = O == null ? void 0 : O.template) == null ? void 0 : It.id) || null;
1679
+ const Q = (P == null ? void 0 : P.id) || ((Ae = P == null ? void 0 : P.dashboard) == null ? void 0 : Ae.id) || ((Me = P == null ? void 0 : P.resource) == null ? void 0 : Me.id) || ((It = P == null ? void 0 : P.template) == null ? void 0 : It.id) || null;
1680
1680
  if (!L.id && Q) {
1681
1681
  const Qe = Xr.getState(), Le = Qe.pendingDashboardDraftMigration;
1682
1682
  (Le == null ? void 0 : Le.scopeKey) === S ? Qe.actions.setPendingDashboardDraftMigrationExpectedDashboardId(
@@ -1688,11 +1688,11 @@ function Ao() {
1688
1688
  $r,
1689
1689
  C.getState().semanticExecutionPayload
1690
1690
  )
1691
- ), B(!1), K(!1), P && (Ee(), pe(), te && le && Be()), ke("close");
1691
+ ), B(!1), K(!1), O && (Ee(), pe(), te && le && Be()), ke("close");
1692
1692
  },
1693
- onError: (O) => {
1693
+ onError: (P) => {
1694
1694
  He(!1), R("Failed to save dashboard. Please try again.");
1695
- const Q = O.details, Ae = Array.isArray(
1695
+ const Q = P.details, Ae = Array.isArray(
1696
1696
  Q == null ? void 0 : Q.errors
1697
1697
  ) ? (Q.errors || []).filter(
1698
1698
  (Me) => typeof Me == "string"
@@ -1780,7 +1780,7 @@ function Ao() {
1780
1780
  }
1781
1781
  ),
1782
1782
  Ur && V && /* @__PURE__ */ e(Mt, { children: /* @__PURE__ */ s(Lt, { children: [
1783
- /* @__PURE__ */ e(Pt, { asChild: !0, children: /* @__PURE__ */ e(
1783
+ /* @__PURE__ */ e(Ot, { asChild: !0, children: /* @__PURE__ */ e(
1784
1784
  H,
1785
1785
  {
1786
1786
  variant: "ghost",
@@ -1796,7 +1796,7 @@ function Ao() {
1796
1796
  children: /* @__PURE__ */ e(La, { className: "h-3.5 w-3.5" })
1797
1797
  }
1798
1798
  ) }),
1799
- /* @__PURE__ */ e(Ot, { children: /* @__PURE__ */ e("p", { children: ee ? "Remove as default dashboard" : "Set as default dashboard" }) })
1799
+ /* @__PURE__ */ e(Pt, { children: /* @__PURE__ */ e("p", { children: ee ? "Remove as default dashboard" : "Set as default dashboard" }) })
1800
1800
  ] }) })
1801
1801
  ] }))
1802
1802
  ] }),
@@ -1812,7 +1812,7 @@ function Ao() {
1812
1812
  size: "xs",
1813
1813
  onClick: () => q(!0),
1814
1814
  children: [
1815
- /* @__PURE__ */ e(Pa, { className: "h-3.5 w-3.5" }),
1815
+ /* @__PURE__ */ e(Oa, { className: "h-3.5 w-3.5" }),
1816
1816
  "Share"
1817
1817
  ]
1818
1818
  }
@@ -1867,11 +1867,11 @@ function Ao() {
1867
1867
  ] }),
1868
1868
  !_ && !k && (u || f) && (!g || !m || u !== void 0) && i && /* @__PURE__ */ s("div", { className: "inline-flex items-center gap-1", children: [
1869
1869
  /* @__PURE__ */ s(H, { size: "xs", onClick: Ir, children: [
1870
- /* @__PURE__ */ e(Oa, { className: "h-3.5 w-3.5" }),
1870
+ /* @__PURE__ */ e(Pa, { className: "h-3.5 w-3.5" }),
1871
1871
  f ? "Inspect" : "Edit"
1872
1872
  ] }),
1873
1873
  b ? /* @__PURE__ */ e(Mt, { children: /* @__PURE__ */ s(Lt, { children: [
1874
- /* @__PURE__ */ e(Pt, { asChild: !0, children: /* @__PURE__ */ e(
1874
+ /* @__PURE__ */ e(Ot, { asChild: !0, children: /* @__PURE__ */ e(
1875
1875
  "button",
1876
1876
  {
1877
1877
  type: "button",
@@ -1880,7 +1880,7 @@ function Ao() {
1880
1880
  children: /* @__PURE__ */ e(Jr, { "aria-hidden": "true", className: "size-3.5" })
1881
1881
  }
1882
1882
  ) }),
1883
- /* @__PURE__ */ e(Ot, { children: /* @__PURE__ */ e("p", { children: b }) })
1883
+ /* @__PURE__ */ e(Pt, { children: /* @__PURE__ */ e("p", { children: b }) })
1884
1884
  ] }) }) : null
1885
1885
  ] }),
1886
1886
  ft && i && xt && /* @__PURE__ */ s(
@@ -1888,7 +1888,7 @@ function Ao() {
1888
1888
  {
1889
1889
  variant: "outline",
1890
1890
  size: "xs",
1891
- onClick: Or,
1891
+ onClick: Pr,
1892
1892
  disabled: Ie,
1893
1893
  children: [
1894
1894
  /* @__PURE__ */ e(_a, { className: "h-3.5 w-3.5" }),
@@ -1935,7 +1935,7 @@ function Ao() {
1935
1935
  align: "end",
1936
1936
  className: "w-56 rounded-control border border-border/60 p-1 shadow-sm",
1937
1937
  children: [
1938
- /* @__PURE__ */ e(Oe, { children: "Reports & briefings" }),
1938
+ /* @__PURE__ */ e(Pe, { children: "Reports & briefings" }),
1939
1939
  /* @__PURE__ */ s(
1940
1940
  U,
1941
1941
  {
@@ -1968,7 +1968,7 @@ function Ao() {
1968
1968
  ),
1969
1969
  /* @__PURE__ */ e(Je, {}),
1970
1970
  Z.showGroupManagement && /* @__PURE__ */ s(F, { children: [
1971
- /* @__PURE__ */ e(Oe, { children: "Access" }),
1971
+ /* @__PURE__ */ e(Pe, { children: "Access" }),
1972
1972
  /* @__PURE__ */ s(
1973
1973
  U,
1974
1974
  {
@@ -1981,14 +1981,14 @@ function Ao() {
1981
1981
  ),
1982
1982
  /* @__PURE__ */ e(Je, {})
1983
1983
  ] }),
1984
- /* @__PURE__ */ e(Oe, { children: "Preferences" }),
1984
+ /* @__PURE__ */ e(Pe, { children: "Preferences" }),
1985
1985
  /* @__PURE__ */ s(U, { onClick: () => se(!0), children: [
1986
1986
  /* @__PURE__ */ e(Xt, { className: "h-3.5 w-3.5" }),
1987
1987
  "Report preferences"
1988
1988
  ] }),
1989
1989
  l && i && /* @__PURE__ */ s(F, { children: [
1990
1990
  /* @__PURE__ */ e(Je, {}),
1991
- /* @__PURE__ */ e(Oe, { children: "Developer" }),
1991
+ /* @__PURE__ */ e(Pe, { children: "Developer" }),
1992
1992
  /* @__PURE__ */ s(
1993
1993
  U,
1994
1994
  {
@@ -2163,7 +2163,7 @@ function Ao() {
2163
2163
  ue(d);
2164
2164
  },
2165
2165
  onSave: Lr,
2166
- onDiscard: Pr,
2166
+ onDiscard: Or,
2167
2167
  isSaving: Ve,
2168
2168
  saveLabel: "Save",
2169
2169
  discardLabel: "Discard changes"
@@ -1,6 +1,6 @@
1
1
  import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
2
  import { useMemo as m, useState as f, useRef as b, useEffect as p } from "react";
3
- import { u as o, c as S, B as N, C as D } from "./switch-CCOKraBb.js";
3
+ import { u as o, c as S, B as N, C as D } from "./switch-D95vek6N.js";
4
4
  import { X as J } from "./x-CXDkqdur.js";
5
5
  import "./validators-BS521dum.js";
6
6
  import "./matrix-operation-contract-BotZ-6zT.js";