react-semaphor 0.1.544 → 0.1.545

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 (88) hide show
  1. package/dist/analytics-protocol/index.js +35 -34
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +2 -2
  4. package/dist/briefings/index.js +50 -47
  5. package/dist/chunks/{class-utils-Df1OVOT1.js → _commonjsHelpers-DimLPMtv.js} +124 -98
  6. package/dist/chunks/{apply-dashboard-operations-Bz4n1Lq6.js → apply-dashboard-operations-CZEMsx8E.js} +778 -958
  7. package/dist/chunks/{assistant-chat-BNLkCDml.js → assistant-chat-D7sWTypJ.js} +308 -309
  8. package/dist/chunks/calendar-day-equality-dvoQp1xW.js +410 -0
  9. package/dist/chunks/{comparison-window-caption-BTkrN3W4.js → comparison-window-caption-D4E6IHPD.js} +56 -55
  10. package/dist/chunks/{custom-visual-inputs-DUtpYZOk.js → custom-visual-inputs-DLCD9Y5V.js} +8 -2
  11. package/dist/chunks/{dashboard-g5a4DKWq.js → dashboard-B1tMju0u.js} +1 -1
  12. package/dist/chunks/{dashboard-briefing-launcher-DQ_8O_e2.js → dashboard-briefing-launcher-CePgIu0Z.js} +771 -776
  13. package/dist/chunks/{dashboard-controls-8RyBTQUO.js → dashboard-controls-Cq05n3e0.js} +28 -28
  14. package/dist/chunks/{dashboard-json-7qT9jmfL.js → dashboard-json-CoYRPqxx.js} +3 -3
  15. package/dist/chunks/document-dashboard-inputs-BesAHZvB.js +3112 -0
  16. package/dist/chunks/{edit-dashboard-visual-BfJwnRIZ.js → edit-dashboard-visual-JPtNfJRb.js} +5624 -5615
  17. package/dist/chunks/{filter-value-text-CYsVYPuD.js → filter-value-text-ff7osJr7.js} +1 -1
  18. package/dist/chunks/{index-DkAyQvC6.js → index-DRWiuqyd.js} +378 -333
  19. package/dist/chunks/{matrix-formatter-CxJLkztA.js → matrix-formatter-DnCyRXJE.js} +13 -13
  20. package/dist/chunks/{numeric-presentation-DESvLiu9.js → numeric-presentation-7X_IrD58.js} +2571 -2572
  21. package/dist/chunks/{raw-temporal-presentation-CLiVi90c.js → raw-temporal-presentation-C3mUgnEx.js} +1 -1
  22. package/dist/chunks/{zoned-wall-clock-MulfA26h.js → relative-date-label-Bk2j94pA.js} +21 -64
  23. package/dist/chunks/rendered-file-D8xEuVVx.js +108 -0
  24. package/dist/chunks/{report-preferences-dialog-Df7VpRVW.js → report-preferences-dialog-DUtuUL_5.js} +631 -603
  25. package/dist/chunks/resolve-dashboard-input-context-DJ2tICwz.js +9415 -0
  26. package/dist/chunks/{saved-dashboard-context-B-mQ--nV.js → saved-dashboard-context-LrF_kW0l.js} +183 -211
  27. package/dist/chunks/selection-filter-compiler-BKXmyLrS.js +79 -0
  28. package/dist/chunks/{semaphor-ready-indicator-DDAxk8us.js → semaphor-ready-indicator-BxF96Yhv.js} +45764 -46519
  29. package/dist/chunks/{shelf-drop-preview-context-BSRPwaED.js → shelf-drop-preview-context-CNaM_Gmh.js} +885 -866
  30. package/dist/chunks/{switch-C3jLxlG0.js → switch-uDtPgQlQ.js} +44 -45
  31. package/dist/chunks/{table-export-sheet-CPfGAQ9X.js → table-export-sheet-YzMioA7Y.js} +1 -1
  32. package/dist/chunks/{use-create-flow-overlay-state-BxzFviM-.js → use-create-flow-overlay-state-CjB7ig1o.js} +105 -105
  33. package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
  34. package/dist/dashboard/index.js +1 -1
  35. package/dist/dashboard-authoring/index.js +556 -544
  36. package/dist/data-app-sdk/index.js +1 -1
  37. package/dist/format-utils/index.js +163 -152
  38. package/dist/index.js +351 -323
  39. package/dist/style.css +1 -1
  40. package/dist/surfboard/index.js +1 -1
  41. package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
  42. package/dist/types/briefings/attachments.d.ts +33 -6
  43. package/dist/types/briefings/index.d.ts +6 -5
  44. package/dist/types/components/surfboard/filter/types.d.ts +0 -14
  45. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +68 -82
  46. package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +0 -8
  47. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +35 -1
  48. package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +199 -0
  49. package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +7 -2
  50. package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +1 -1
  51. package/dist/types/lib/dashboard-viewer/captured-runtime-values.d.ts +40 -0
  52. package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +16 -16
  53. package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +11 -9
  54. package/dist/types/lib/download-pdf.d.ts +75 -1
  55. package/dist/types/lib/hooks/use-date-filter.d.ts +5 -0
  56. package/dist/types/lib/hooks/use-text-filter.d.ts +5 -0
  57. package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +5 -4
  58. package/dist/types/lib/query-context/assemble-card-query.d.ts +158 -0
  59. package/dist/types/lib/query-context/build-card-query-context.d.ts +3 -3
  60. package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +15 -6
  61. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +11 -13
  62. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +22 -12
  63. package/dist/types/lib/stores/dashboard-store.d.ts +39 -55
  64. package/dist/types/lib/stores/editor-store.d.ts +0 -3
  65. package/dist/types/lib/types/common-types.d.ts +21 -6
  66. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +4 -11
  67. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +12 -12
  68. package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +7 -0
  69. package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +92 -0
  70. package/dist/types/shared/dashboard-authoring/filter-model/ad-hoc-filter-values.d.ts +10 -0
  71. package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +29 -0
  72. package/dist/types/shared/dashboard-authoring/filter-model/filter-values.d.ts +58 -0
  73. package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +7 -0
  74. package/dist/types/shared/dashboard-authoring/filter-model/prototype-document-inputs.d.ts +15 -0
  75. package/dist/types/shared/dashboard-authoring/filter-model/read-dashboard-filter-model.d.ts +78 -0
  76. package/dist/types/shared/dashboard-authoring/filter-model/stored-dashboard.d.ts +18 -0
  77. package/dist/types/shared/dashboard-authoring/filter-model/toolbar-filter-reach.d.ts +23 -0
  78. package/dist/types/shared/dashboard-authoring/index.d.ts +2 -0
  79. package/dist/types/shared/format-utils/exporters/index.d.ts +2 -0
  80. package/dist/types/shared/format-utils/exporters/rendered-file.d.ts +106 -0
  81. package/package.json +2 -2
  82. package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +0 -28
  83. package/dist/chunks/calendar-day-equality-BmJAWduY.js +0 -460
  84. package/dist/chunks/document-dashboard-inputs-BC6p-ESg.js +0 -8087
  85. package/dist/chunks/document-sheet-utils-Duo9uLoH.js +0 -3619
  86. package/dist/chunks/sort-target-MT1WK1vX.js +0 -29
  87. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +0 -88
  88. package/dist/types/lib/dashboard-inputs/dashboard-input-scope.d.ts +0 -10
@@ -1,29 +1,29 @@
1
1
  import { jsx as t, jsxs as i, Fragment as $ } from "react/jsx-runtime";
2
- import { bz as jr, u as C, bA as Hr, bB as nt, bC as qr, bD as zr, bE as Kr, bF as Qr, bG as Wr, bH as Yr, aX as K, aV as ve, bI as ye, bJ as Jr, bu as Ht, bv as qt, bx as Ze, by as et, bK as zt, aH as ot, aQ as ee, bL as Xr, bM as Zr, bN as Kt, bO as ea, bP as Qt, bw as ta, bQ as ra, bR as P, bS as aa, bT as na, bU as oa, as as sa, b6 as ia, bV as da, bW as ca, bX as la, g as ua, L as ma, Y as kt, f as Oe, m as ha, h as We, bY as pa, bZ as fa, b_ as ba, b$ as ga, J as xa, c0 as va, s as ya, c1 as wa, c2 as Na, b8 as Sa, c3 as ka, c4 as Ca, c5 as Ct, c6 as Dt, c7 as Et, c8 as Da, c9 as Ea, ca as Ia, cb as Aa, cc as _e, cd as La, ce as Ma, cf as Ye, cg as Oa, ch as It, l as _a, ci as Pa, cj as Ra, ck as Ta, cl as Ua, cm as $a, cn as Ba, co as Fa, cp as Ga, cq as At } from "./semaphor-ready-indicator-DDAxk8us.js";
3
- import { B as U, Z as Va, _ as ja, $ as tt, L as Re, l as Ha, r as qa, s as za, t as Ka, u as Qa, v as Wa, P as Ya, a as Ja, b as Xa, m as Lt, n as Mt, o as Ot, p as _t, I as Za } from "./switch-C3jLxlG0.js";
2
+ import { bD as jr, u as C, bE as Hr, bF as nt, bG as qr, bH as zr, bI as Kr, bJ as Qr, bK as Wr, bL as Yr, a_ as K, aY as ve, bM as ye, bN as Jr, by as Ht, bz as qt, bB as Ze, bC as et, bO as zt, aK as ot, aT as ee, bP as Xr, bQ as Zr, bR as Kt, bS as ea, bT as Qt, bA as ta, bU as ra, bV as P, bW as aa, bX as na, bY as oa, av as sa, ba as ia, bZ as da, b_ as ca, b$ as la, j as ua, P as ma, $ as kt, i as Oe, p as ha, k as We, c0 as pa, c1 as fa, c2 as ba, c3 as ga, N as xa, c4 as va, s as ya, c5 as wa, c6 as Na, bd as Sa, c7 as ka, c8 as Ca, c9 as Ct, ca as Dt, cb as Et, cc as Da, cd as Ea, ce as Ia, cf as Aa, cg as _e, ch as La, ci as Ma, cj as Ye, ck as Oa, cl as It, o as _a, cm as Pa, cn as Ra, co as Ta, cp as Ua, cq as $a, cr as Ba, cs as Fa, ct as Ga, cu as At } from "./semaphor-ready-indicator-BxF96Yhv.js";
3
+ import { B as U, Z as Va, _ as ja, $ as tt, L as Re, l as Ha, r as qa, s as za, t as Ka, u as Qa, v as Wa, P as Ya, a as Ja, b as Xa, m as Lt, n as Mt, o as Ot, p as _t, I as Za } from "./switch-uDtPgQlQ.js";
4
4
  import { c as te, X as Wt, C as en } from "./x-4f5U2XwU.js";
5
5
  import * as I from "react";
6
6
  import Yt, { useMemo as V, useState as S, useEffect as ge, useRef as Pt, useLayoutEffect as tn } from "react";
7
- import { ae as D } from "./numeric-presentation-DESvLiu9.js";
7
+ import { ae as D } from "./numeric-presentation-7X_IrD58.js";
8
8
  import "./index-CuHybtft.js";
9
9
  import "./validators-DMHTpf7a.js";
10
10
  import "./matrix-operation-contract-8OIO4gob.js";
11
11
  import "./analytics-base-schemas-BFAoRlkU.js";
12
12
  import "zod";
13
13
  import "../value-format-preferences/index.js";
14
- import { c as xe } from "./class-utils-Df1OVOT1.js";
15
- import { u as rn, A as an, a as nn, e as on, V as sn, b as dn, i as cn, f as ln, U as un } from "./dashboard-briefing-launcher-DQ_8O_e2.js";
16
- import { I as mn } from "./use-create-flow-overlay-state-BxzFviM-.js";
17
- import { h as hn, R as pn } from "./report-preferences-dialog-Df7VpRVW.js";
14
+ import { c as xe } from "./_commonjsHelpers-DimLPMtv.js";
15
+ import { u as rn, A as an, a as nn, e as on, V as sn, b as dn, i as cn, f as ln, U as un } from "./dashboard-briefing-launcher-CePgIu0Z.js";
16
+ import { I as mn } from "./use-create-flow-overlay-state-CjB7ig1o.js";
17
+ import { h as hn, R as pn } from "./report-preferences-dialog-DUtuUL_5.js";
18
18
  import { createPortal as fn } from "react-dom";
19
- import { a7 as we, a8 as st, a9 as Jt, aa as bn, ab as Rt, ac as gn } from "./document-dashboard-inputs-BC6p-ESg.js";
20
- import { S as xn, C as vn } from "./selection-reducer-Dj_8xD69.js";
21
- import { o as Xt } from "./matrix-formatter-CxJLkztA.js";
22
- import { Z as Tt, _ as yn, $ as wn, x as Nn, a as rt } from "./document-sheet-utils-Duo9uLoH.js";
23
- import { r as Sn } from "./export-file-format-C-tJsxsf.js";
24
- import { u as kn } from "./use-debounced-dirty-check-BwAbnX_5.js";
25
- import { s as Cn } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
26
- import { B as Te, u as Ut } from "./table-settings-CLZocegs.js";
19
+ import { bm as we, bn as st, bo as Jt, bp as Rt, bq as bn, br as gn, aX as xn, f as rt } from "./resolve-dashboard-input-context-DJ2tICwz.js";
20
+ import { S as vn, C as yn } from "./selection-reducer-Dj_8xD69.js";
21
+ import { o as Xt } from "./matrix-formatter-DnCyRXJE.js";
22
+ import { r as wn } from "./export-file-format-C-tJsxsf.js";
23
+ import { u as Nn } from "./use-debounced-dirty-check-BwAbnX_5.js";
24
+ import { s as Sn } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
25
+ import { B as Te, u as Tt } from "./table-settings-CLZocegs.js";
26
+ import { l as kn, h as Ut, e as Cn } from "./document-dashboard-inputs-BesAHZvB.js";
27
27
  import { S as Dn } from "./save-CfJpQQ68.js";
28
28
  import { P as En } from "./palette-D10o_yYX.js";
29
29
  import { B as In } from "./braces-o9UiRQes.js";
@@ -684,7 +684,7 @@ function so({
684
684
  return /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
685
685
  /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-2 border-b border-border px-5 py-2.5", children: [
686
686
  /* @__PURE__ */ i("div", { className: "flex flex-1 items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40", children: [
687
- /* @__PURE__ */ t(xn, { className: "h-3 w-3 text-muted-foreground" }),
687
+ /* @__PURE__ */ t(vn, { className: "h-3 w-3 text-muted-foreground" }),
688
688
  /* @__PURE__ */ t(
689
689
  "input",
690
690
  {
@@ -811,7 +811,7 @@ function io({
811
811
  children: /* @__PURE__ */ t(ot, { className: "h-3 w-3" })
812
812
  }
813
813
  ),
814
- /* @__PURE__ */ t(vn, { className: "h-3.5 w-3.5 text-muted-foreground" })
814
+ /* @__PURE__ */ t(yn, { className: "h-3.5 w-3.5 text-muted-foreground" })
815
815
  ] })
816
816
  ]
817
817
  }
@@ -1323,7 +1323,7 @@ function po({
1323
1323
  const a = C(
1324
1324
  (o) => {
1325
1325
  var c, m;
1326
- return Sn({
1326
+ return wn({
1327
1327
  dashboardDefault: (m = (c = o.dashboard) == null ? void 0 : c.exportDefaults) == null ? void 0 : m.csvEncoding
1328
1328
  });
1329
1329
  }
@@ -1483,12 +1483,12 @@ function go({
1483
1483
  }
1484
1484
  function xo(e) {
1485
1485
  var f, g, l;
1486
- const { saved: n, draft: a, usage: r } = e, o = [], c = bn(n);
1486
+ const { saved: n, draft: a, usage: r } = e, o = [], c = kn(n);
1487
1487
  for (const [u, s] of Object.entries(r.inputs))
1488
- !s || !Rt(n, u) || Rt(a, u) || o.push({
1488
+ !s || !Ut(n, u) || Ut(a, u) || o.push({
1489
1489
  target: "input",
1490
1490
  id: u,
1491
- label: gn(n, c, u),
1491
+ label: Cn(n, c, u),
1492
1492
  bookmarks: s,
1493
1493
  remembered: 0
1494
1494
  });
@@ -1503,7 +1503,7 @@ function xo(e) {
1503
1503
  remembered: 0
1504
1504
  });
1505
1505
  }
1506
- const p = Ut(n), b = Ut(a);
1506
+ const p = Tt(n), b = Tt(a);
1507
1507
  for (const [u, s] of Object.entries(r.tables)) {
1508
1508
  if (!p.has(u)) continue;
1509
1509
  const x = Te(n, u), v = ((g = x == null ? void 0 : x.title) == null ? void 0 : g.trim()) || "Untitled table";
@@ -1517,12 +1517,12 @@ function xo(e) {
1517
1517
  });
1518
1518
  continue;
1519
1519
  }
1520
- const w = x ? Tt(x) : void 0, h = Te(a, u), E = h ? Tt(h) : void 0;
1520
+ const w = x ? Rt(x) : void 0, h = Te(a, u), E = h ? Rt(h) : void 0;
1521
1521
  if (!(!x || !w || !E))
1522
1522
  for (const [A, L] of Object.entries(s.columns)) {
1523
- if (!(L.bookmarks || L.remembered) || yn(A) || !w.has(A) || E.has(A))
1523
+ if (!(L.bookmarks || L.remembered) || bn(A) || !w.has(A) || E.has(A))
1524
1524
  continue;
1525
- const N = wn(x, A), k = ((l = N == null ? void 0 : N.label) == null ? void 0 : l.trim()) || (N == null ? void 0 : N.name);
1525
+ const N = gn(x, A), k = ((l = N == null ? void 0 : N.label) == null ? void 0 : l.trim()) || (N == null ? void 0 : N.name);
1526
1526
  o.push({
1527
1527
  target: "column",
1528
1528
  id: A,
@@ -1624,7 +1624,7 @@ function Xo() {
1624
1624
  isInspectionSurface: g
1625
1625
  } = da(), { openBrandStudioPreview: l } = ca(), { permissions: u } = $n(), s = la(), { isLoading: x } = ua(), v = C((d) => d.theme), w = C((d) => d.isDownloadingPdf), h = C((d) => d.dashboard), E = C((d) => d.selectedSheetId), A = (vt = h == null ? void 0 : h.sheets) == null ? void 0 : vt.find(
1626
1626
  (d) => d.id === E
1627
- ), L = Nn(A), N = L ? (yt = A == null ? void 0 : A.document) == null ? void 0 : yt.page : void 0, k = C(
1627
+ ), L = xn(A), N = L ? (yt = A == null ? void 0 : A.document) == null ? void 0 : yt.page : void 0, k = C(
1628
1628
  (d) => d.isDashboardEditing
1629
1629
  ), { setDashboardTitle: re } = C((d) => d.actions), [ae, Ne] = S(!1), [Q, W] = S(!1), [Y, J] = S(!1), [Se, ke] = S(!1), [ne, oe] = S(null), [se, ie] = S(null), { registerBriefingViewer: Ce } = ma();
1630
1630
  ge(
@@ -1744,12 +1744,12 @@ function Xo() {
1744
1744
  x,
1745
1745
  Dr
1746
1746
  ]);
1747
- const ze = (M == null ? void 0 : M.dashboard) ?? null, { isDirty: Ke, isDirtyPending: Ir, resetDirty: pe } = kn(
1747
+ const ze = (M == null ? void 0 : M.dashboard) ?? null, { isDirty: Ke, isDirtyPending: Ir, resetDirty: pe } = Nn(
1748
1748
  h,
1749
1749
  ze,
1750
1750
  300,
1751
1751
  1e3,
1752
- Cn
1752
+ Sn
1753
1753
  ), ft = rn(
1754
1754
  ze,
1755
1755
  f,
@@ -1,14 +1,14 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
2
  import { useMemo as u, useState as f, useRef as p, useEffect as b } from "react";
3
- import { u as a } from "./semaphor-ready-indicator-DDAxk8us.js";
4
- import { B as S, C as N } from "./switch-C3jLxlG0.js";
3
+ import { u as a } from "./semaphor-ready-indicator-BxF96Yhv.js";
4
+ import { B as S, C as N } from "./switch-uDtPgQlQ.js";
5
5
  import "./index-CuHybtft.js";
6
6
  import "./validators-DMHTpf7a.js";
7
7
  import "./matrix-operation-contract-8OIO4gob.js";
8
8
  import "./analytics-base-schemas-BFAoRlkU.js";
9
9
  import "zod";
10
10
  import "../value-format-preferences/index.js";
11
- import { c as D } from "./class-utils-Df1OVOT1.js";
11
+ import { c as D } from "./_commonjsHelpers-DimLPMtv.js";
12
12
  import { X as J } from "./x-4f5U2XwU.js";
13
13
  function R() {
14
14
  const r = a((o) => o.dashboard), c = a((o) => o.actions.setDashboard), h = a(