react-semaphor 0.1.600 → 0.1.602

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 (83) hide show
  1. package/dist/analytics-protocol/index.js +9 -9
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +48 -45
  5. package/dist/chunks/{assistant-chat-BULOkG9j.js → assistant-chat-BWF3GYip.js} +12 -12
  6. package/dist/chunks/{bookmark-impact-kdvXke8n.js → bookmark-impact-BF3iRx5a.js} +3 -3
  7. package/dist/chunks/{bookmark-state-h1OLXVjE.js → bookmark-state-CBSTdW6q.js} +4 -4
  8. package/dist/chunks/{card-filter-builder-CSCdSQQy.js → card-filter-builder-B8XHwMY6.js} +394 -394
  9. package/dist/chunks/comparison-window-caption-W83qB4V5.js +741 -0
  10. package/dist/chunks/{dashboard-y9ON19ge.js → dashboard-DG5EIYYB.js} +1 -1
  11. package/dist/chunks/{dashboard-briefing-launcher-9YwUclHA.js → dashboard-briefing-launcher-CBSrhyWZ.js} +727 -718
  12. package/dist/chunks/{dashboard-controls-O6PNXMCp.js → dashboard-controls-D6ECO4N1.js} +15 -15
  13. package/dist/chunks/{dashboard-json-Bxf91TYq.js → dashboard-json-DrJftBSL.js} +4 -4
  14. package/dist/chunks/{dates-DPTbpNxK.js → dates-Bz-qM5px.js} +10 -10
  15. package/dist/chunks/{edit-dashboard-visual-CKwaW8H_.js → edit-dashboard-visual-BDYAJIbb.js} +1569 -1548
  16. package/dist/chunks/filter-line-BXT6y303.js +703 -0
  17. package/dist/chunks/{filter-reach-copy-ClzNcNhP.js → filter-reach-copy-BukhZmzm.js} +1688 -1806
  18. package/dist/chunks/{filter-value-text-CXyuLW9Q.js → filter-value-text-D3-bf3_b.js} +6 -6
  19. package/dist/chunks/{index-CRo5--Y6.js → index-BW0yozjs.js} +386 -360
  20. package/dist/chunks/{layout-grid-DSrBSfPM.js → layout-grid-Ds0diMeY.js} +1 -1
  21. package/dist/chunks/{matrix-analytical-definition-i9PQY066.js → matrix-analytical-definition-CgQgVeeI.js} +35 -35
  22. package/dist/chunks/{matrix-member-presentation-B_2beBc0.js → matrix-member-presentation-DSBIIudt.js} +1 -1
  23. package/dist/chunks/{matrix-operation-contract-DdK0J_KU.js → matrix-operation-contract--DkNCOzd.js} +517 -514
  24. package/dist/chunks/{metric-comparison-Bhz0V841.js → metric-comparison-zMylnIkc.js} +3 -3
  25. package/dist/chunks/{paintbrush-1UiU-uTz.js → paintbrush-CX8pao1j.js} +1 -1
  26. package/dist/chunks/{palette-DFIFf_-m.js → palette-CuA0HlzF.js} +1 -1
  27. package/dist/chunks/{pivot-result-contract-expectations-Dk7WFR_u.js → pivot-result-contract-expectations-C8KL7hPx.js} +14 -14
  28. package/dist/chunks/{pivot-result-identity-CzzrJpEm.js → pivot-result-identity-C1AOH1PS.js} +1 -1
  29. package/dist/chunks/{raw-temporal-value-BLvdaMng.js → raw-temporal-value-E416F-0L.js} +16 -16
  30. package/dist/chunks/{report-preferences-dialog-DiDsYpng.js → report-preferences-dialog-CbuVNDGi.js} +13 -13
  31. package/dist/chunks/{report-runtime-context-CEGluufW.js → report-runtime-context-E7USjN7E.js} +1 -1
  32. package/dist/chunks/{resolve-dashboard-input-context-BAv33KGg.js → resolve-dashboard-input-context-CULCE_hM.js} +8419 -7054
  33. package/dist/chunks/{save-CWQ02kHo.js → save-BKHlDONy.js} +1 -1
  34. package/dist/chunks/{saved-dashboard-context-CvzYqADe.js → saved-dashboard-context-C1WlOx5z.js} +24 -24
  35. package/dist/chunks/{selection-filter-compiler-SwrBvyyJ.js → selection-filter-compiler-ifT8JCXS.js} +1 -1
  36. package/dist/chunks/{semaphor-ready-indicator-1PRI9Yh2.js → semaphor-ready-indicator-CBIRcDWs.js} +33810 -32067
  37. package/dist/chunks/{shelf-drop-preview-context-BLk5Nc6K.js → shelf-drop-preview-context-xR69SMA8.js} +53 -53
  38. package/dist/chunks/{stored-dashboard-xhYYKBsO.js → stored-dashboard-BuM8vnWf.js} +679 -657
  39. package/dist/chunks/{style-sheet-parts-BX7d7-2-.js → style-sheet-parts-Bt9ZNre8.js} +2 -2
  40. package/dist/chunks/{table-export-sheet-BWSVTclx.js → table-export-sheet-DVljtHkG.js} +1 -1
  41. package/dist/chunks/{token-types-CnlEiAdS.js → token-types-D_xKgyVS.js} +1 -1
  42. package/dist/chunks/{upload-DsqUSS8l.js → upload-Dll_M7XQ.js} +1 -1
  43. package/dist/chunks/{validators-D2Hm57lJ.js → validators-ClWHpYql.js} +80 -80
  44. package/dist/chunks/{variable-draft-DcKj8T1b.js → variable-draft-CDGGl53R.js} +27 -28
  45. package/dist/dashboard/index.js +2 -2
  46. package/dist/dashboard-authoring/index.js +3086 -2573
  47. package/dist/format-utils/index.js +238 -237
  48. package/dist/index.js +71 -73
  49. package/dist/report-runtime-context/index.js +1 -1
  50. package/dist/style.css +1 -1
  51. package/dist/surfboard/index.js +2 -2
  52. package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
  53. package/dist/types/briefings/attachments.d.ts +45 -4
  54. package/dist/types/briefings/index.d.ts +1 -1
  55. package/dist/types/components/dashboard/dashboard-web-component.d.ts +7 -0
  56. package/dist/types/index.js +5 -5
  57. package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +1 -1
  58. package/dist/types/lib/export-utils.d.ts +72 -0
  59. package/dist/types/lib/formatters/dashboard-temporal-presentation.d.ts +10 -0
  60. package/dist/types/lib/query-context/assemble-card-query.d.ts +6 -1
  61. package/dist/types/lib/stores/dashboard-store.d.ts +30 -0
  62. package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +15 -0
  63. package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +52 -0
  64. package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +129 -0
  65. package/dist/types/shared/dashboard-authoring/calculations/resolve-dashboard-field-copies.d.ts +46 -0
  66. package/dist/types/shared/dashboard-authoring/calculations/tokens.d.ts +36 -0
  67. package/dist/types/shared/dashboard-authoring/card-data-file.d.ts +31 -0
  68. package/dist/types/shared/dashboard-authoring/changes/calculation-change.d.ts +399 -0
  69. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +144 -2
  70. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +21 -2
  71. package/dist/types/shared/dashboard-authoring/changes/domain-change.d.ts +143 -266
  72. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +2 -0
  73. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +46 -0
  74. package/dist/types/shared/dashboard-authoring/index.d.ts +10 -1
  75. package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +133 -0
  76. package/dist/types/shared/dashboard-authoring/operations/card-operations.d.ts +71 -0
  77. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +18 -5
  78. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +21 -0
  79. package/dist/types/shared/usage-events/details.d.ts +2 -2
  80. package/dist/types/shared/usage-events/envelope.d.ts +2 -2
  81. package/package.json +1 -1
  82. package/dist/chunks/comparison-window-caption-DJDwP9XO.js +0 -1309
  83. package/dist/chunks/filter-line-Dkg3yuOX.js +0 -134
@@ -1,4 +1,4 @@
1
- import { c as t } from "./style-sheet-parts-BX7d7-2-.js";
1
+ import { c as t } from "./style-sheet-parts-Bt9ZNre8.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *
@@ -1,7 +1,7 @@
1
- import { G as O, H as A, E as he, I as te, F as K, L as pe } from "./raw-temporal-value-BLvdaMng.js";
2
- import { ai as w, ap as C, ar as z, aj as U, ah as p, aq as ve, aw as Ne, ak as ke, a7 as Q, e as Ie, K as J, t as Ce } from "./validators-D2Hm57lJ.js";
3
- import { a as _e } from "./metric-comparison-Bhz0V841.js";
4
- import { M as Se } from "./matrix-operation-contract-DdK0J_KU.js";
1
+ import { G as O, H as A, E as he, I as te, F as U, L as pe } from "./raw-temporal-value-E416F-0L.js";
2
+ import { ah as z, ao as C, aq as w, ai as K, ag as p, ap as ve, av as Ne, aj as ke, a6 as Q, e as Ie, J as X, q as Ce } from "./validators-ClWHpYql.js";
3
+ import { r as _e } from "./metric-comparison-zMylnIkc.js";
4
+ import { M as Se } from "./matrix-operation-contract--DkNCOzd.js";
5
5
  class Y extends Error {
6
6
  constructor(t) {
7
7
  super(t), this.name = "RelativeDateUsageError";
@@ -15,7 +15,7 @@ function Ae(e, t, n = {}) {
15
15
  case "periods": {
16
16
  const o = ne(e, t);
17
17
  return {
18
- start: K(o, e.unit, a, e.from).start,
18
+ start: U(o, e.unit, a, e.from).start,
19
19
  end: e.toDate ? o : ie(o, e.unit, a, e.to)
20
20
  };
21
21
  }
@@ -37,14 +37,14 @@ function ne(e, t) {
37
37
  return n === "latest_data" ? t.latestData ?? t.now : n === "now" ? t.now : new Date(O(t.now, n.lastComplete, t.calendar).getTime() - 1);
38
38
  }
39
39
  function ie(e, t, n, i) {
40
- return new Date(K(e, t, n, i).endExclusive.getTime() - 1);
40
+ return new Date(U(e, t, n, i).endExclusive.getTime() - 1);
41
41
  }
42
42
  function Te(e, t, n) {
43
43
  if (!Number.isInteger(n) || n < 0)
44
44
  throw new Y(`spansBack must be a whole number of spans, got ${n}.`);
45
45
  if (e.kind !== "periods" || typeof e.anchor != "object")
46
46
  throw new Y("spansBack applies only to a window anchored at the end of the last complete period.");
47
- const { calendar: i } = t, { unit: a } = e, r = Ae(e, t), o = -n * (e.to - e.from + 1), s = K(r.start, a, i, o).start;
47
+ const { calendar: i } = t, { unit: a } = e, r = Ae(e, t), o = -n * (e.to - e.from + 1), s = U(r.start, a, i, o).start;
48
48
  if (A(r.end, a, i).getTime() === r.end.getTime())
49
49
  return { start: s, end: ie(r.end, a, i, o) };
50
50
  const l = te(ne(e, t), o, a, i), c = Math.min(
@@ -64,7 +64,7 @@ function G(e) {
64
64
  function ae(e) {
65
65
  const { recorded: t, capabilities: n } = e, i = G(n);
66
66
  return !(t.databaseName && !i.includes("database") || t.schemaName && !i.includes("schema")) || !t.tableName ? t : {
67
- ...w({
67
+ ...z({
68
68
  qualifiedName: [t.databaseName, t.schemaName, t.tableName].filter(Boolean).join("."),
69
69
  capabilities: n
70
70
  }),
@@ -74,7 +74,7 @@ function ae(e) {
74
74
  };
75
75
  }
76
76
  function rt(e) {
77
- const t = e.source.connectionType ? C(e.source.connectionType) : void 0, n = e.source.dialect ? z(e.source.dialect) : void 0, i = e.source.dialect && e.source.dialect !== "unknown" ? C(e.source.dialect) : void 0;
77
+ const t = e.source.connectionType ? C(e.source.connectionType) : void 0, n = e.source.dialect ? w(e.source.dialect) : void 0, i = e.source.dialect && e.source.dialect !== "unknown" ? C(e.source.dialect) : void 0;
78
78
  if (!e.capabilities && e.source.connectionType && e.source.dialect && e.source.dialect !== "unknown" && (!t || n === "unknown" || t.dialect !== n))
79
79
  return { kind: "incompatible_capabilities" };
80
80
  const a = e.capabilities || t || i;
@@ -129,7 +129,7 @@ function De(e) {
129
129
  if (r.kind !== "valid")
130
130
  return { kind: r.kind };
131
131
  const o = r.coordinates, s = o ? t.filter(
132
- (c) => U({
132
+ (c) => K({
133
133
  left: oe(
134
134
  q(c, a),
135
135
  a
@@ -244,7 +244,7 @@ function F(e) {
244
244
  }
245
245
  function qe(e) {
246
246
  var N;
247
- const t = f(e.connectionType), n = f(e.dialect), i = e.capabilities ? F(e.capabilities) : void 0, a = t ? C(t) : void 0, r = n ? z(n) : void 0, o = n && n !== "unknown" ? C(n) : void 0;
247
+ const t = f(e.connectionType), n = f(e.dialect), i = e.capabilities ? F(e.capabilities) : void 0, a = t ? C(t) : void 0, r = n ? w(n) : void 0, o = n && n !== "unknown" ? C(n) : void 0;
248
248
  if (t && !a || n && n !== "unknown" && r === "unknown" || i && a && T(i) !== T(a))
249
249
  return;
250
250
  const s = i || (a ? F(a) : o ? F(o) : void 0);
@@ -256,10 +256,10 @@ function qe(e) {
256
256
  evidence: "explicit"
257
257
  };
258
258
  const l = e.entities.map((b) => {
259
- const k = D(b), h = f(k == null ? void 0 : k.connectionType), I = f(k == null ? void 0 : k.dialect), S = h ? C(h) : void 0, E = I ? z(I) : void 0, L = I && I !== "unknown" ? C(I) : void 0;
259
+ const k = D(b), h = f(k == null ? void 0 : k.connectionType), I = f(k == null ? void 0 : k.dialect), S = h ? C(h) : void 0, E = I ? w(I) : void 0, L = I && I !== "unknown" ? C(I) : void 0;
260
260
  if (h && !S || I && I !== "unknown" && E === "unknown" || I && I !== "unknown" && !S && !L || S && E && E !== "unknown" && S.dialect !== E)
261
261
  return;
262
- const X = S || L, P = X ? F(X) : Fe(k);
262
+ const J = S || L, P = J ? F(J) : Fe(k);
263
263
  return P ? {
264
264
  capabilities: P,
265
265
  connectionType: h,
@@ -331,7 +331,7 @@ function He(e) {
331
331
  const a = xe(e.coordinateHint);
332
332
  if (a.kind === "malformed") return a;
333
333
  const r = Array.from(new Set(n)).map(
334
- (m) => w({
334
+ (m) => z({
335
335
  qualifiedName: m,
336
336
  capabilities: t
337
337
  })
@@ -340,7 +340,7 @@ function He(e) {
340
340
  return { kind: "conflicting" };
341
341
  const o = [...new Set(n)].sort(
342
342
  (m, g) => g.split(".").length - m.split(".").length
343
- )[0], s = o ? w({
343
+ )[0], s = o ? z({
344
344
  qualifiedName: o,
345
345
  capabilities: t
346
346
  }) : void 0, l = oe(
@@ -350,7 +350,7 @@ function He(e) {
350
350
  a.coordinates,
351
351
  e.capabilityAuthority
352
352
  ), d = !!(l.tableName && (l.databaseName || l.schemaName));
353
- return s && d && !U({
353
+ return s && d && !K({
354
354
  left: s,
355
355
  right: l,
356
356
  capabilities: t
@@ -387,7 +387,7 @@ function oe(e, t) {
387
387
  function Le(e, t) {
388
388
  return e.every(
389
389
  (n, i) => e.slice(i + 1).every(
390
- (a) => U({
390
+ (a) => K({
391
391
  left: n,
392
392
  right: a,
393
393
  capabilities: t
@@ -690,7 +690,7 @@ function lt(e, t) {
690
690
  function dt(e) {
691
691
  return typeof e == "string" && e.startsWith(le);
692
692
  }
693
- function we(e, t) {
693
+ function ze(e, t) {
694
694
  return _e({ ...e, role: t });
695
695
  }
696
696
  function ut(e, t) {
@@ -702,7 +702,7 @@ function ut(e, t) {
702
702
  })
703
703
  );
704
704
  const i = t.alias ? n.find(
705
- ({ group: a, index: r }) => we(e[a].fields[r], e[a].role) === t.alias
705
+ ({ group: a, index: r }) => ze(e[a].fields[r], e[a].role) === t.alias
706
706
  ) : void 0;
707
707
  if (i) return i;
708
708
  if (n.length === 1) return n[0];
@@ -721,7 +721,7 @@ function de(e, t) {
721
721
  const [a, r] = n.length <= i.length ? [n, i] : [i, n], o = r.length - a.length;
722
722
  return a.every((s, l) => s === r[l + o]);
723
723
  }
724
- function ze(e, t) {
724
+ function we(e, t) {
725
725
  const n = e.split("."), i = t.split("."), a = n.pop(), r = i.pop();
726
726
  return !!(a && a === r && n.length > 0 && i.length > 0 && de(
727
727
  n.join("."),
@@ -760,11 +760,11 @@ function We(e, t) {
760
760
  (n, i) => e.slice(i + 1).every((a) => t(n, a))
761
761
  );
762
762
  }
763
- function Ke(e, t) {
763
+ function Ue(e, t) {
764
764
  const n = y(e.id), i = y(e.name), a = y(t.entityId), r = y(t.entityName);
765
765
  return !i || !a && !r ? !1 : (!a || a === n || a === i) && (!r || r === i);
766
766
  }
767
- function Ue(e) {
767
+ function Ke(e) {
768
768
  const t = v(e.semanticContext) ? e.semanticContext : void 0, n = v(e.fieldMeta) ? e.fieldMeta : void 0, i = y(t == null ? void 0 : t.semanticDomainId), a = Array.isArray(t == null ? void 0 : t.selectedEntities) ? t.selectedEntities.filter(
769
769
  (h) => v(h) && h.type === "dataset"
770
770
  ) : [];
@@ -772,7 +772,7 @@ function Ue(e) {
772
772
  if (!i)
773
773
  return { status: "unresolved", reason: "incomplete_source_identity" };
774
774
  const o = y(n == null ? void 0 : n.entityId), s = y(n == null ? void 0 : n.entityName), l = !!(o || s), c = l ? a.filter(
775
- (h) => Ke(h, {
775
+ (h) => Ue(h, {
776
776
  entityId: o,
777
777
  entityName: s
778
778
  })
@@ -826,13 +826,13 @@ function Ve(e, t) {
826
826
  ].filter(Boolean);
827
827
  if (!We(
828
828
  g,
829
- ze
829
+ we
830
830
  ))
831
831
  return { status: "unresolved", reason: "divergent_field_identity" };
832
832
  const N = o || a || m;
833
833
  return N ? { status: "resolved", qualifiedFieldName: N } : { status: "unresolved", reason: "incomplete_field_identity" };
834
834
  }
835
- function Xe(e) {
835
+ function Je(e) {
836
836
  if (!v(e))
837
837
  return { status: "ineligible", reason: "invalid_input" };
838
838
  if (e.kind === "global-date")
@@ -849,7 +849,7 @@ function Xe(e) {
849
849
  return { status: "ineligible", reason: "custom_filter" };
850
850
  if (e.targetColumns !== void 0 && (!Array.isArray(e.targetColumns) || e.targetColumns.length > 0))
851
851
  return { status: "ineligible", reason: "multi_target_filter" };
852
- const a = Ue(e), r = Ve(e, a === void 0);
852
+ const a = Ke(e), r = Ve(e, a === void 0);
853
853
  if (r.status === "unresolved")
854
854
  return { status: "ineligible", reason: r.reason };
855
855
  const o = a || Ge(e, r.qualifiedFieldName);
@@ -860,16 +860,16 @@ function Xe(e) {
860
860
  source: o.source
861
861
  } : { status: "ineligible", reason: o.reason };
862
862
  }
863
- function Je(e) {
863
+ function Xe(e) {
864
864
  if (!v(e) || e.kind !== "filter" || !v(e.filter))
865
865
  return { status: "ineligible", reason: "invalid_input" };
866
- const t = Xe(
866
+ const t = Je(
867
867
  e.filter
868
868
  );
869
869
  return t.status === "ineligible" ? t : t.kind === "field_date" && v(e.compatibility) && e.compatibility.source === "cardInlineFilter" ? { status: "ineligible", reason: "card_inline_filter" } : t;
870
870
  }
871
871
  function ft(e) {
872
- return Je(e).status === "eligible";
872
+ return Xe(e).status === "eligible";
873
873
  }
874
874
  function mt(e) {
875
875
  return `compat-filter:${e}`;
@@ -1105,7 +1105,7 @@ function Ft(e) {
1105
1105
  },
1106
1106
  // Sort scopes are keyed overrides, unlike ordered axes/calculation inputs.
1107
1107
  sorts: [...e.sorts].sort((t, n) => {
1108
- const i = J(t), a = J(n);
1108
+ const i = X(t), a = X(n);
1109
1109
  return i < a ? -1 : i > a ? 1 : 0;
1110
1110
  })
1111
1111
  };
@@ -1132,7 +1132,7 @@ export {
1132
1132
  Dt as S,
1133
1133
  Qe as T,
1134
1134
  V as U,
1135
- ze as V,
1135
+ we as V,
1136
1136
  Ft as a,
1137
1137
  G as b,
1138
1138
  rt as c,
@@ -1146,12 +1146,12 @@ export {
1146
1146
  lt as k,
1147
1147
  ut as l,
1148
1148
  et as m,
1149
- Ke as n,
1150
- Xe as o,
1151
- Je as p,
1149
+ Ue as n,
1150
+ Je as o,
1151
+ Xe as p,
1152
1152
  ft as q,
1153
1153
  ae as r,
1154
- we as s,
1154
+ ze as s,
1155
1155
  mt as t,
1156
1156
  bt as u,
1157
1157
  gt as v,
@@ -1,4 +1,4 @@
1
- import { m as p } from "./validators-D2Hm57lJ.js";
1
+ import { m as p } from "./validators-ClWHpYql.js";
2
2
  function _(t) {
3
3
  const e = y(t);
4
4
  return h(e) ? e : void 0;