react-semaphor 0.1.590 → 0.1.592

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 (87) hide show
  1. package/dist/analytics-protocol/index.js +254 -236
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +4 -4
  5. package/dist/chunks/{aggregate-measure-field-BrkXsSJp.js → aggregate-measure-field-DHlDj0Pc.js} +2 -2
  6. package/dist/chunks/{assistant-chat-C_6dBLUk.js → assistant-chat-BusR-5uT.js} +13 -13
  7. package/dist/chunks/bookmark-impact-DozXJZDS.js +76 -0
  8. package/dist/chunks/{bookmark-state-Bn7k3ttp.js → bookmark-state-Be2W3s6t.js} +632 -592
  9. package/dist/chunks/{card-filter-builder-6vflbF9O.js → card-filter-builder-DBTJ74yy.js} +916 -897
  10. package/dist/chunks/{comparison-window-caption-fqijZdVd.js → comparison-window-caption-h8w3ySL6.js} +90 -91
  11. package/dist/chunks/{dashboard-DpgRl65K.js → dashboard-CmzJzmph.js} +1 -1
  12. package/dist/chunks/{dashboard-briefing-launcher-BLbhONJz.js → dashboard-briefing-launcher-BOQGpYr2.js} +160 -160
  13. package/dist/chunks/{dashboard-controls-kCTYEEsq.js → dashboard-controls-BxI3e2_o.js} +64 -64
  14. package/dist/chunks/{dashboard-json-CNIFresY.js → dashboard-json-BMqXV2Rx.js} +4 -4
  15. package/dist/chunks/{dates-BoeweqEo.js → dates-DBsscxL_.js} +8 -8
  16. package/dist/chunks/{edit-dashboard-visual-D0eWTlPL.js → edit-dashboard-visual-Dvc_Pkfg.js} +5443 -5417
  17. package/dist/chunks/filter-line-CYT7KIXb.js +133 -0
  18. package/dist/chunks/{filter-reach-copy-eMhDPTYH.js → filter-reach-copy-hEzlpBu7.js} +224 -224
  19. package/dist/chunks/filter-value-text-CHBm4IU7.js +153 -0
  20. package/dist/chunks/{index-D8LFjI8j.js → index-BoYJqc3F.js} +24 -24
  21. package/dist/chunks/{layout-grid-BG__sPkb.js → layout-grid-DoFIfQGd.js} +1 -1
  22. package/dist/chunks/{list-filter-Cb8i7N8f.js → list-filter-BeTQxjNy.js} +1 -1
  23. package/dist/chunks/{matrix-analytical-definition-D9Ll_9R-.js → matrix-analytical-definition-CyWOwLmE.js} +17 -17
  24. package/dist/chunks/{matrix-member-presentation-DVBJR0MA.js → matrix-member-presentation-Bj2YcHAP.js} +1 -1
  25. package/dist/chunks/{matrix-operation-contract-JSmproo9.js → matrix-operation-contract-CAanJeCj.js} +60 -60
  26. package/dist/chunks/{metric-comparison-xE_J6hkg.js → metric-comparison-BeKnUD08.js} +27 -31
  27. package/dist/chunks/{paintbrush-C310xSuR.js → paintbrush-KeaU1L1a.js} +1 -1
  28. package/dist/chunks/{palette-Ci5P91Zb.js → palette-BcFJLeXB.js} +1 -1
  29. package/dist/chunks/{pivot-result-contract-expectations-DbBahmgc.js → pivot-result-contract-expectations-CaS0y823.js} +522 -486
  30. package/dist/chunks/{pivot-result-identity-CUsMt_4r.js → pivot-result-identity-BKUjYO1u.js} +1 -1
  31. package/dist/chunks/raw-temporal-value-BzdgeDa7.js +454 -0
  32. package/dist/chunks/{report-preferences-dialog-dUlVLgEk.js → report-preferences-dialog-Cu_f-8Kw.js} +13 -13
  33. package/dist/chunks/{report-runtime-context-CrOgmuxO.js → report-runtime-context-g4Zp_TU9.js} +1 -1
  34. package/dist/chunks/{resolve-dashboard-input-context-NurwNg4I.js → resolve-dashboard-input-context-CkMk1RW6.js} +7600 -6398
  35. package/dist/chunks/{save-BhhXfp4s.js → save-C9CZAk6V.js} +1 -1
  36. package/dist/chunks/{saved-dashboard-context-CPp--vXU.js → saved-dashboard-context-RgBS_PIj.js} +19 -19
  37. package/dist/chunks/{selection-filter-compiler-CHG-8xnW.js → selection-filter-compiler-BclSpK3P.js} +1 -1
  38. package/dist/chunks/{semaphor-ready-indicator-CXojR95M.js → semaphor-ready-indicator-DXpTZJ7R.js} +31502 -31453
  39. package/dist/chunks/{shelf-drop-preview-context-BDScAUdq.js → shelf-drop-preview-context-qdlJKaH7.js} +5 -5
  40. package/dist/chunks/stored-dashboard-Baw6Bp2A.js +4029 -0
  41. package/dist/chunks/{style-sheet-parts-CmXmKqGw.js → style-sheet-parts-DM_Mw_sm.js} +45 -42
  42. package/dist/chunks/{table-export-sheet-ClSgERQC.js → table-export-sheet-Cd6z7SsG.js} +1 -1
  43. package/dist/chunks/{token-types-DTocOcwt.js → token-types-BB2ImFx6.js} +1 -1
  44. package/dist/chunks/{upload-DDYc1Qjj.js → upload-CMTCg47S.js} +1 -1
  45. package/dist/chunks/{validators-CrYXNnNE.js → validators-BlEWWX9O.js} +576 -562
  46. package/dist/chunks/{variable-draft-Bi3RlULA.js → variable-draft-BxtN6YcG.js} +4 -4
  47. package/dist/dashboard/index.js +2 -2
  48. package/dist/dashboard-authoring/index.js +1672 -1633
  49. package/dist/format-utils/index.js +217 -218
  50. package/dist/index.js +62 -62
  51. package/dist/report-runtime-context/index.js +1 -1
  52. package/dist/style.css +1 -1
  53. package/dist/surfboard/index.js +2 -2
  54. package/dist/types/components/surfboard/filter/types.d.ts +7 -5
  55. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +3 -3
  56. package/dist/types/components/visual/data-table/types/data-table.d.ts +24 -2
  57. package/dist/types/index.js +30 -29
  58. package/dist/types/lib/dashboard-inputs/dashboard-date-comparison-plan.d.ts +0 -1
  59. package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +27 -0
  60. package/dist/types/lib/dashboard-viewer/table-view.d.ts +37 -1
  61. package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
  62. package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +1 -1
  63. package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +2 -1
  64. package/dist/types/shared/analytics-protocol/relative-date/sentence.d.ts +81 -0
  65. package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +0 -9
  66. package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +23 -2
  67. package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +20 -0
  68. package/dist/types/shared/dashboard-authoring/card-formats/detail-date-display.d.ts +84 -0
  69. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  70. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +2 -0
  71. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +6 -0
  72. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +11 -0
  73. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +36 -36
  74. package/dist/types/shared/dashboard-authoring/filter-model/date-filter-default.d.ts +37 -0
  75. package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +1 -0
  76. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  77. package/dist/types/shared/dashboard-viewer/table-column-move.d.ts +56 -0
  78. package/dist/types/shared/dashboard-viewer/table-settings.d.ts +7 -0
  79. package/dist/types/shared/format-utils/filter-line.d.ts +2 -0
  80. package/package.json +1 -1
  81. package/dist/chunks/bookmark-impact-DkZABEd3.js +0 -75
  82. package/dist/chunks/filter-line-Dza3ee4w.js +0 -131
  83. package/dist/chunks/filter-value-text-DQw4v3nC.js +0 -146
  84. package/dist/chunks/pivot-header-presentation-D-DfPAjb.js +0 -42
  85. package/dist/chunks/raw-temporal-value-BnGCWJAL.js +0 -322
  86. package/dist/chunks/stored-dashboard-KkH4zOhq.js +0 -4998
  87. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -53
@@ -2,8 +2,8 @@ import { jsx as v, jsxs as re, Fragment as xt } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import ke, { forwardRef as jn, createElement as In, useLayoutEffect as cs, useState as ro, useRef as vn, useMemo as us, useId as ds, useImperativeHandle as fs } from "react";
4
4
  import { b as ps, c as ee, d as me, g as hs } from "./pickers-DkqmtnTL.js";
5
- import "./validators-CrYXNnNE.js";
6
- import "./matrix-operation-contract-JSmproo9.js";
5
+ import "./validators-BlEWWX9O.js";
6
+ import "./matrix-operation-contract-CAanJeCj.js";
7
7
  import "./analytics-base-schemas-8wz9vqn_.js";
8
8
  import "../value-format-preferences/index.js";
9
9
  import * as Gt from "react-dom";
@@ -6229,6 +6229,36 @@ const qf = Ue(
6229
6229
  }
6230
6230
  ));
6231
6231
  Qf.displayName = os.displayName;
6232
+ function qp({
6233
+ value: e,
6234
+ label: t,
6235
+ options: n,
6236
+ onChange: r,
6237
+ style: o
6238
+ }) {
6239
+ return /* @__PURE__ */ v(
6240
+ Ri,
6241
+ {
6242
+ "aria-label": t,
6243
+ value: e ?? "",
6244
+ onValueChange: (a) => r(a),
6245
+ orientation: "horizontal",
6246
+ style: o,
6247
+ className: "inline-flex h-7 items-center gap-0.5 overflow-hidden rounded-control bg-muted p-0.5",
6248
+ children: n.map((a) => /* @__PURE__ */ v(
6249
+ Ai,
6250
+ {
6251
+ value: a.value,
6252
+ title: a.title,
6253
+ disabled: a.disabled,
6254
+ className: "h-6 rounded-control px-2.5 text-[12px] leading-none text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=checked]:bg-background data-[state=checked]:text-foreground data-[state=checked]:shadow-sm",
6255
+ children: a.label
6256
+ },
6257
+ a.value
6258
+ ))
6259
+ }
6260
+ );
6261
+ }
6232
6262
  var as = {}, ae = me && me.__assign || function() {
6233
6263
  return ae = Object.assign || function(e) {
6234
6264
  for (var t, n = 1, r = arguments.length; n < r; n++) {
@@ -8209,7 +8239,7 @@ function hp(e) {
8209
8239
  const t = e.trim().toLowerCase(), n = pp[t] ?? t;
8210
8240
  return Me.languages[n] ? n : null;
8211
8241
  }
8212
- function qp(e, t) {
8242
+ function Zp(e, t) {
8213
8243
  const n = hp(t);
8214
8244
  return n ? wt.highlight(e, wt.languages[n], n) : null;
8215
8245
  }
@@ -8425,18 +8455,18 @@ function mp({
8425
8455
  }
8426
8456
  );
8427
8457
  }
8428
- const Zp = jn(mp);
8458
+ const Qp = jn(mp);
8429
8459
  function vp(e) {
8430
8460
  return e === "muted" ? "hsl(var(--semaphor-muted))" : e === "background" ? "hsl(var(--semaphor-background))" : e;
8431
8461
  }
8432
8462
  const yp = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
8433
- function Qp({ children: e, right: t }) {
8463
+ function Jp({ children: e, right: t }) {
8434
8464
  return /* @__PURE__ */ re("div", { className: "flex items-center justify-between border-y border-border/60 bg-muted/40 px-4 py-1 first:border-t-0", children: [
8435
8465
  /* @__PURE__ */ v("p", { className: yp, children: e }),
8436
8466
  t
8437
8467
  ] });
8438
8468
  }
8439
- function Jp({ label: e, state: t, children: n }) {
8469
+ function eh({ label: e, state: t, children: n }) {
8440
8470
  return /* @__PURE__ */ re("div", { className: ee("grid grid-cols-[104px_minmax(0,1fr)_28px] items-center gap-x-2 gap-y-1 px-4", e ? "py-2" : "-mt-1 pb-2"), children: [
8441
8471
  /* @__PURE__ */ v("span", { className: ee("text-[12px]", t != null && t.changed ? "font-medium text-foreground" : "text-muted-foreground"), children: e }),
8442
8472
  /* @__PURE__ */ v("div", { className: "flex min-w-0 items-center gap-1.5", children: n }),
@@ -8447,7 +8477,7 @@ function Jp({ label: e, state: t, children: n }) {
8447
8477
  function ss({ title: e, label: t, onClick: n }) {
8448
8478
  return /* @__PURE__ */ v(io, { size: "xs", variant: "ghost", className: "h-6 w-6 p-0 text-muted-foreground hover:text-foreground", title: e, "aria-label": `Reset ${t}`, onClick: n, children: /* @__PURE__ */ v(Os, { className: "h-3.5 w-3.5", "aria-hidden": !0 }) });
8449
8479
  }
8450
- function eh({ value: e, min: t, max: n, label: r, onChange: o }) {
8480
+ function th({ value: e, min: t, max: n, label: r, onChange: o }) {
8451
8481
  return /* @__PURE__ */ re("span", { className: "relative inline-flex", children: [
8452
8482
  /* @__PURE__ */ v(
8453
8483
  fa,
@@ -8468,36 +8498,9 @@ function eh({ value: e, min: t, max: n, label: r, onChange: o }) {
8468
8498
  /* @__PURE__ */ v("span", { className: "pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-[11px] text-muted-foreground", children: "px" })
8469
8499
  ] });
8470
8500
  }
8471
- function th({ color: e, label: t, onChange: n }) {
8501
+ function nh({ color: e, label: t, onChange: n }) {
8472
8502
  return /* @__PURE__ */ v("label", { className: "relative inline-flex h-6 w-6 shrink-0 cursor-pointer rounded-[4px] border border-border", style: { background: e }, title: e, children: /* @__PURE__ */ v("input", { type: "color", value: e.startsWith("#") && e.length === 7 ? e : "#ffffff", onChange: (r) => n(r.target.value), className: "sr-only", "aria-label": t }) });
8473
8503
  }
8474
- function nh({
8475
- value: e,
8476
- label: t,
8477
- options: n,
8478
- onChange: r
8479
- }) {
8480
- return /* @__PURE__ */ v(
8481
- Ri,
8482
- {
8483
- "aria-label": t,
8484
- value: e ?? "",
8485
- onValueChange: (o) => r(o),
8486
- orientation: "horizontal",
8487
- className: "inline-flex h-7 items-center gap-0.5 overflow-hidden rounded-control bg-muted p-0.5",
8488
- children: n.map((o) => /* @__PURE__ */ v(
8489
- Ai,
8490
- {
8491
- value: o.value,
8492
- title: o.title,
8493
- className: "h-6 rounded-control px-2.5 text-[12px] leading-none text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring data-[state=checked]:bg-background data-[state=checked]:text-foreground data-[state=checked]:shadow-sm",
8494
- children: o.label
8495
- },
8496
- o.value
8497
- ))
8498
- }
8499
- );
8500
- }
8501
8504
  function bp({ look: e }) {
8502
8505
  const n = e.spacing === 0, r = n && e.canvasPadding === 0 ? 0 : e.cardCorners * 0.4, o = (a) => ({
8503
8506
  borderRadius: a,
@@ -8567,7 +8570,7 @@ export {
8567
8570
  dc as $,
8568
8571
  zp as A,
8569
8572
  io as B,
8570
- Zp as C,
8573
+ Qp as C,
8571
8574
  Hd as D,
8572
8575
  zd as E,
8573
8576
  lo as F,
@@ -8578,12 +8581,12 @@ export {
8578
8581
  Ue as K,
8579
8582
  _p as L,
8580
8583
  Se as M,
8581
- eh as N,
8584
+ th as N,
8582
8585
  co as O,
8583
8586
  rh as P,
8584
8587
  G as Q,
8585
8588
  Os as R,
8586
- nh as S,
8589
+ qp as S,
8587
8590
  Up as T,
8588
8591
  St as U,
8589
8592
  Mn as V,
@@ -8592,7 +8595,7 @@ export {
8592
8595
  cr as Y,
8593
8596
  lc as Z,
8594
8597
  uc as _,
8595
- th as a,
8598
+ nh as a,
8596
8599
  hc as a0,
8597
8600
  gc as a1,
8598
8601
  Ql as a2,
@@ -8612,13 +8615,13 @@ export {
8612
8615
  Ui as aG,
8613
8616
  bf as aH,
8614
8617
  wf as aI,
8615
- Qp as aJ,
8616
- Jp as aK,
8618
+ Jp as aJ,
8619
+ eh as aK,
8617
8620
  Hf as aL,
8618
8621
  Qi as aM,
8619
8622
  Vf as aN,
8620
8623
  Rs as aa,
8621
- qp as ab,
8624
+ Zp as ab,
8622
8625
  Vp as ac,
8623
8626
  Vd as ad,
8624
8627
  Hi as ae,
@@ -2,7 +2,7 @@ var ft = Object.defineProperty;
2
2
  var ht = (e, t, r) => t in e ? ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var ne = (e, t, r) => ht(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import { z as S } from "zod";
5
- import { e as ct } from "./comparison-window-caption-fqijZdVd.js";
5
+ import { e as ct } from "./comparison-window-caption-h8w3ySL6.js";
6
6
  var E = Uint8Array, I = Uint16Array, pe = Int32Array, xe = new E([
7
7
  0,
8
8
  0,
@@ -1,5 +1,5 @@
1
1
  import "../value-format-preferences/index.js";
2
- import "./validators-CrYXNnNE.js";
2
+ import "./validators-BlEWWX9O.js";
3
3
  const A = {
4
4
  mode: "all"
5
5
  };
@@ -1,4 +1,4 @@
1
- import { c as o } from "./style-sheet-parts-CmXmKqGw.js";
1
+ import { c as o } from "./style-sheet-parts-DM_Mw_sm.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *