react-semaphor 0.1.556 → 0.1.557

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 (75) 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-WMTpYirZ.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-BOErQVyi.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-CxYI-gFa.js} +1 -1
  11. package/dist/chunks/{dashboard-BU6rE5kV.js → dashboard-4D8Vy4pL.js} +1 -1
  12. package/dist/chunks/{dashboard-briefing-launcher-qrYd2zkN.js → dashboard-briefing-launcher-C4EmOfxs.js} +147 -149
  13. package/dist/chunks/{dashboard-controls-BsapXI2H.js → dashboard-controls-DBWykmvL.js} +170 -172
  14. package/dist/chunks/{dashboard-json-CJqPqYnI.js → dashboard-json-DiX-p0F7.js} +20 -21
  15. package/dist/chunks/{document-dashboard-inputs-BNSprf5_.js → document-dashboard-inputs-DP5hquBR.js} +30 -30
  16. package/dist/chunks/{edit-dashboard-visual-CjAdV-WG.js → edit-dashboard-visual-n1jLV_7V.js} +4773 -4802
  17. package/dist/chunks/{filter-reach-copy-BTrqtFkh.js → filter-reach-copy-BB9iakLA.js} +147 -148
  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-Cc5tqkoW.js} +585 -591
  20. package/dist/chunks/{index-B_vIRa-q.js → index-CgjhzkKM.js} +69 -70
  21. package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CcNklCwL.js} +1 -1
  22. package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-Ds_4UTpD.js} +1 -1
  23. package/dist/chunks/{matrix-analytical-definition-Cg0ioFGQ.js → matrix-analytical-definition-4GTUDheD.js} +3 -3
  24. package/dist/chunks/{matrix-card-yYibXSw1.js → matrix-card-fS_4O7zA.js} +2 -2
  25. package/dist/chunks/{matrix-member-presentation-DEEauKXC.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
  26. package/dist/chunks/{matrix-operation-contract-C1G6AJNh.js → matrix-operation-contract-CpgLZ7E5.js} +21 -21
  27. package/dist/chunks/{metric-comparison-BfcmwxM1.js → metric-comparison-C8LY7GG5.js} +1 -1
  28. package/dist/chunks/{palette-D10o_yYX.js → palette-DMkIhagj.js} +1 -1
  29. package/dist/chunks/{matrix-formatter-C2kjsCDf.js → pivot-result-contract-expectations-DMk-mKhG.js} +444 -395
  30. package/dist/chunks/{pivot-result-identity-CWi5WrrY.js → pivot-result-identity-CrQ54Xbj.js} +1 -1
  31. package/dist/chunks/{raw-temporal-presentation-DWzLIHc3.js → raw-temporal-presentation-DdEpgPRB.js} +24 -25
  32. package/dist/chunks/report-preferences-dialog-CFg5VFLk.js +2109 -0
  33. package/dist/chunks/{report-runtime-context-BgM-iNWB.js → report-runtime-context-CohdtiMg.js} +1 -1
  34. package/dist/chunks/{resolve-dashboard-input-context-Df8V5QHW.js → resolve-dashboard-input-context-Djl3kCFL.js} +224 -226
  35. package/dist/chunks/{save-CfJpQQ68.js → save-D1EpMcwT.js} +1 -1
  36. package/dist/chunks/{saved-dashboard-context-VvXI6r03.js → saved-dashboard-context-umlQFevH.js} +8 -8
  37. package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
  38. package/dist/chunks/{semaphor-ready-indicator-fejZmdq9.js → semaphor-ready-indicator-4cOp6sla.js} +40458 -43400
  39. package/dist/chunks/{shelf-drop-preview-context-BuTCXe-S.js → shelf-drop-preview-context-DAtRuvR7.js} +6 -6
  40. package/dist/chunks/{source-entity-resolution-B46EZIzX.js → source-entity-resolution-DXW1HpKf.js} +1 -1
  41. package/dist/chunks/{switch-Bq92UGId.js → switch-9CJt5EF_.js} +1430 -1341
  42. package/dist/chunks/{table-export-sheet-noKl8-en.js → table-export-sheet-CTCTA_bd.js} +1 -1
  43. package/dist/chunks/{table-settings-PpINOzw8.js → table-settings-DF1gdVQR.js} +2 -2
  44. package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
  45. package/dist/chunks/{token-types--0bgRCaO.js → token-types-DFyLflLY.js} +1 -1
  46. package/dist/chunks/{upload-BFX7apKV.js → upload-LSNKpt0w.js} +1 -1
  47. package/dist/chunks/{use-create-flow-overlay-state-Cz-ve64t.js → use-create-flow-overlay-state-esyMT9vU.js} +124 -126
  48. package/dist/chunks/{validators-CZo_H4E6.js → validators-hmfNNQz8.js} +5 -5
  49. package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
  50. package/dist/dashboard/index.js +2 -2
  51. package/dist/dashboard-authoring/index.js +130 -131
  52. package/dist/data-app-sdk/index.js +788 -4153
  53. package/dist/data-app-sdk-adapters/index.js +2 -2
  54. package/dist/data-app-sdk-validation/index.js +5 -5
  55. package/dist/format-utils/index.js +230 -233
  56. package/dist/index.js +216 -217
  57. package/dist/report-runtime-context/index.js +1 -1
  58. package/dist/style.css +1 -1
  59. package/dist/surfboard/index.js +2 -2
  60. package/dist/types/data-app-sdk/contracts.d.ts +0 -146
  61. package/dist/types/data-app-sdk/index.d.ts +0 -2
  62. package/dist/types/index.js +6 -6
  63. package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
  64. package/package.json +1 -3
  65. package/src/data-app-sdk/README.md +7 -31
  66. package/dist/chunks/pivot-result-contract-expectations-fKBHFPfz.js +0 -56
  67. package/dist/chunks/raw-temporal-contract-CjHaUIsE.js +0 -64
  68. package/dist/chunks/report-preferences-dialog-D_wrbIQt.js +0 -2261
  69. package/dist/chunks/selection-reducer-By4CSmEF.js +0 -111
  70. package/dist/chunks/temporal-bucket-DzyadxVY.js +0 -2071
  71. package/dist/chunks/temporal-input-presentation-CJWS4d0L.js +0 -879
  72. package/dist/chunks/x-4f5U2XwU.js +0 -100
  73. package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
  74. package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
  75. package/dist/types/data-app-sdk/devtools.d.ts +0 -1
@@ -1,30 +1,29 @@
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-fejZmdq9.js";
4
- import { B as S, C as N } from "./switch-Bq92UGId.js";
3
+ import { u as a } from "./semaphor-ready-indicator-4cOp6sla.js";
4
+ import { B as S, X as N, C as D } from "./switch-9CJt5EF_.js";
5
5
  import "./index-CuHybtft.js";
6
- import "./validators-CZo_H4E6.js";
7
- import "./matrix-operation-contract-C1G6AJNh.js";
6
+ import "./validators-hmfNNQz8.js";
7
+ import "./matrix-operation-contract-CpgLZ7E5.js";
8
8
  import "./analytics-base-schemas-BUFUoO6G.js";
9
9
  import "zod";
10
10
  import "../value-format-preferences/index.js";
11
- import { c as D } from "./_commonjsHelpers-DimLPMtv.js";
12
- import { X as J } from "./x-4f5U2XwU.js";
13
- function R() {
14
- const r = a((o) => o.dashboard), c = a((o) => o.actions.setDashboard), h = a(
15
- (o) => o.showDashboardJSON
11
+ import { c as J } from "./_commonjsHelpers-DimLPMtv.js";
12
+ function B() {
13
+ const r = a((s) => s.dashboard), c = a((s) => s.actions.setDashboard), h = a(
14
+ (s) => s.showDashboardJSON
16
15
  ), l = a(
17
- (o) => o.actions.setShowDashboardJSON
18
- ), s = u(
16
+ (s) => s.actions.setShowDashboardJSON
17
+ ), o = u(
19
18
  () => r ? JSON.stringify(r, null, 2) : "",
20
19
  [r]
21
- ), [m, i] = f(s), t = p(s);
20
+ ), [m, i] = f(o), t = p(o);
22
21
  return b(() => {
23
- s !== t.current && (i(s), t.current = s);
24
- }, [s]), /* @__PURE__ */ d(
22
+ o !== t.current && (i(o), t.current = o);
23
+ }, [o]), /* @__PURE__ */ d(
25
24
  "div",
26
25
  {
27
- className: D("relative p-2", {
26
+ className: J("relative p-2", {
28
27
  hidden: !h
29
28
  }),
30
29
  children: [
@@ -36,19 +35,19 @@ function R() {
36
35
  className: "absolute right-2 top-2 z-10 h-8",
37
36
  onClick: () => l(!1),
38
37
  children: [
39
- /* @__PURE__ */ e(J, { className: "mr-2 h-4 w-4" }),
38
+ /* @__PURE__ */ e(N, { className: "mr-2 h-4 w-4" }),
40
39
  "Close"
41
40
  ]
42
41
  }
43
42
  ),
44
43
  /* @__PURE__ */ e("div", { className: "h-[550px] overflow-hidden", children: /* @__PURE__ */ e(
45
- N,
44
+ D,
46
45
  {
47
46
  value: m,
48
- onValueChange: (o) => {
49
- i(o);
47
+ onValueChange: (s) => {
48
+ i(s);
50
49
  try {
51
- const n = JSON.parse(o);
50
+ const n = JSON.parse(s);
52
51
  t.current = JSON.stringify(
53
52
  n,
54
53
  null,
@@ -65,5 +64,5 @@ function R() {
65
64
  );
66
65
  }
67
66
  export {
68
- R as default
67
+ B as default
69
68
  };
@@ -1,19 +1,19 @@
1
- import { cX as vt, cY as Se, cZ as M, c_ as R, c$ as Fe, d as Y, d0 as yt, d1 as Dt, d2 as St, d3 as Ft, d4 as Vt, d5 as Ve, d6 as kt, d7 as ne, d8 as W, d9 as oe, da as Mt, Y as se, i as z, db as Tt, dc as Ot, dd as j, de as ie, df as $, dg as ke, dh as xt, di as Pt, dj as wt, v as Me, dk as Et, dl as Rt, dm as Bt, b_ as Te, dn as Oe, V as xe, dp as Pe, n as we, a as Ee, dq as qt, br as At, _ as Nt, as as Re, bq as Be, dr as jt, bc as zt, a3 as qe, a2 as _t, ds as Ae } from "./global-date-filter-utils-CTVf3dG3.js";
2
- import { Q as Gt, r as re, Y as Lt, Z as Ht, _ as Kt, $ as Qt, a0 as $t, l as ae, a1 as Ut, I as Ne, a2 as Yt, R as Wt, x as Zt, a3 as Jt, a4 as Xt, a5 as en, a6 as tn, a7 as nn, a8 as on, a9 as sn, N as rn, aa as an, c as ln, ab as je, ac as dn, ad as cn, y as un, ae as fn, J as pn, af as ze, ag as mn, ah as In } from "./resolve-dashboard-input-context-Df8V5QHW.js";
3
- import { ao as bn } from "./validators-CZo_H4E6.js";
4
- import { b as le } from "./matrix-operation-contract-C1G6AJNh.js";
1
+ import { cV as vt, cW as Se, cX as M, cY as R, cZ as Fe, d as W, c_ as yt, c$ as Dt, d0 as St, d1 as Ft, d2 as Vt, d3 as Ve, d4 as kt, d5 as ne, d6 as Y, d7 as oe, d8 as Mt, Y as se, i as z, d9 as Tt, da as Ot, db as j, dc as ie, dd as $, de as ke, df as xt, dg as Pt, dh as wt, v as Me, di as Et, dj as Rt, dk as Bt, bZ as Te, dl as Oe, V as xe, dm as Pe, n as we, a as Ee, dn as qt, br as At, _ as Nt, as as Re, bq as Be, dp as jt, bc as zt, a3 as qe, a2 as _t, dq as Ae } from "./global-date-filter-utils-Cc5tqkoW.js";
2
+ import { Q as Gt, r as re, Y as Lt, Z as Ht, _ as Kt, $ as Qt, a0 as $t, l as ae, a1 as Ut, I as Ne, a2 as Wt, R as Yt, x as Zt, a3 as Jt, a4 as Xt, a5 as en, a6 as tn, a7 as nn, a8 as on, a9 as sn, N as rn, aa as an, c as ln, ab as je, ac as dn, ad as cn, y as un, ae as fn, J as pn, af as ze, ag as mn, ah as In } from "./resolve-dashboard-input-context-Djl3kCFL.js";
3
+ import { ao as bn } from "./validators-hmfNNQz8.js";
4
+ import { d as le } from "./matrix-operation-contract-CpgLZ7E5.js";
5
5
  import "./analytics-base-schemas-BUFUoO6G.js";
6
6
  import "zod";
7
7
  import "./index-CuHybtft.js";
8
8
  import "../value-format-preferences/index.js";
9
9
  import "./_commonjsHelpers-DimLPMtv.js";
10
- import "./temporal-input-presentation-CJWS4d0L.js";
11
- import { J as hn, z as de, K as B, I as X, q as gn, j as Cn, o as vn, L as G, A as yn } from "./table-settings-PpINOzw8.js";
10
+ import "./temporal-input-presentation-DoSniQj1.js";
11
+ import { J as hn, z as de, K as B, I as X, q as gn, j as Cn, o as vn, L as G, A as yn } from "./table-settings-DF1gdVQR.js";
12
12
  import "./index-dIV-Gdsb.js";
13
- import { r as _e, B as ce } from "./bookmark-state-7iZErWnR.js";
14
- import { n as he } from "./matrix-formatter-C2kjsCDf.js";
15
- import { r as Dn, i as Ge } from "./matrix-card-yYibXSw1.js";
16
- import { D as Sn } from "./report-runtime-context-BgM-iNWB.js";
13
+ import { r as _e, B as ce } from "./bookmark-state-PjQpxbG7.js";
14
+ import { q as he } from "./pivot-result-contract-expectations-DMk-mKhG.js";
15
+ import { r as Dn, i as Ge } from "./matrix-card-fS_4O7zA.js";
16
+ import { D as Sn } from "./report-runtime-context-CohdtiMg.js";
17
17
  import { c as Fn } from "./selection-filter-compiler-BKXmyLrS.js";
18
18
  function ue(e, t) {
19
19
  const n = {};
@@ -174,7 +174,7 @@ function He({
174
174
  card: a.card
175
175
  }).allInputs
176
176
  ).filter(
177
- (d) => St(d, a) && Y(d, a)
177
+ (d) => St(d, a) && W(d, a)
178
178
  );
179
179
  for (const d of c) {
180
180
  const l = Ft(
@@ -376,7 +376,7 @@ function is({
376
376
  );
377
377
  let c = e || {};
378
378
  for (const f of t.inputs) {
379
- if (f.kind !== "filter" || !Y(f, {
379
+ if (f.kind !== "filter" || !W(f, {
380
380
  sheetId: o,
381
381
  cardId: s,
382
382
  sectionId: i,
@@ -673,16 +673,16 @@ function Ue(e, t, n) {
673
673
  };
674
674
  }
675
675
  function fe(e, t, n) {
676
- return Ye(
676
+ return We(
677
677
  e,
678
678
  Ue(e, t, n),
679
679
  n
680
680
  );
681
681
  }
682
682
  function rs(e, t, n) {
683
- return Ye(e, t, n);
683
+ return We(e, t, n);
684
684
  }
685
- function Ye(e, t, n) {
685
+ function We(e, t, n) {
686
686
  const o = e.sheets ?? [], s = o.filter((a) => (a.kind ?? "dashboard") === "dashboard").map((a) => a.id), i = o.filter((a) => a.kind === "document"), r = s.length ? An({
687
687
  dashboard: e,
688
688
  sheetIds: s,
@@ -713,7 +713,7 @@ function Ye(e, t, n) {
713
713
  r
714
714
  );
715
715
  }
716
- function We(e, t) {
716
+ function Ye(e, t) {
717
717
  const n = {}, o = {}, s = /* @__PURE__ */ new Map();
718
718
  for (const i of _(t)) {
719
719
  const r = e.get(i.inputId), { slot: a } = i, c = () => a.status === "set" && a.value.kind === "filter" ? a.value.filterValue : a.status === "cleared" ? null : void 0;
@@ -786,7 +786,7 @@ function Qn(e, t, n) {
786
786
  const u = c == null ? void 0 : c.get(l.filterId);
787
787
  return u ? ne(u, l) : !1;
788
788
  });
789
- W(d, i[r] ?? []) || (s = !0), i[r] = d;
789
+ Y(d, i[r] ?? []) || (s = !0), i[r] = d;
790
790
  }
791
791
  return s ? i : void 0;
792
792
  }
@@ -815,7 +815,7 @@ function Un(e, t) {
815
815
  }
816
816
  return o ? i : t;
817
817
  }
818
- function Yn(e) {
818
+ function Wn(e) {
819
819
  var t, n;
820
820
  return ((n = (t = e.sheets) == null ? void 0 : t[0]) == null ? void 0 : n.id) ?? null;
821
821
  }
@@ -826,7 +826,7 @@ function L(e, t) {
826
826
  function as(e) {
827
827
  const { dashboard: t, host: n, calendar: o } = e, s = Ne(t, n.filterValues, {
828
828
  calendar: o
829
- }).slots, i = n.controlValues, r = L(t, n.selectedSheetId) ? n.selectedSheetId : Yn(t);
829
+ }).slots, i = n.controlValues, r = L(t, n.selectedSheetId) ? n.selectedSheetId : Wn(t);
830
830
  return {
831
831
  hostInputValues: s,
832
832
  controlOverrides: i,
@@ -957,7 +957,7 @@ function V(e, t, n, o = {}) {
957
957
  }
958
958
  return i;
959
959
  }
960
- function Wn(e, t, n) {
960
+ function Yn(e, t, n) {
961
961
  if (t) {
962
962
  if (L(e, t)) return t;
963
963
  n.push({
@@ -968,7 +968,7 @@ function Wn(e, t, n) {
968
968
  });
969
969
  }
970
970
  }
971
- const pe = (e, t) => W(e ?? null, t ?? null);
971
+ const pe = (e, t) => Y(e ?? null, t ?? null);
972
972
  function tt(e) {
973
973
  return {
974
974
  adHocFilterValues: e.adHocFilterValues,
@@ -1012,10 +1012,10 @@ function ge(e, t, n, o) {
1012
1012
  const { dashboard: s, baseline: i } = e, r = [], a = _e(t.state, ce), c = a.ok ? a.value : {};
1013
1013
  for (const m of a.ok ? a.issues : [])
1014
1014
  r.push(Zn(m));
1015
- const d = Je(s), l = We(
1015
+ const d = Je(s), l = Ye(
1016
1016
  d.compatibility,
1017
1017
  et(s, d, c.inputs, r)
1018
- ), u = Wn(s, c.selectedSheetId, r) ?? i.selectedSheetId, f = V(
1018
+ ), u = Yn(s, c.selectedSheetId, r) ?? i.selectedSheetId, f = V(
1019
1019
  s,
1020
1020
  c.tableSettings,
1021
1021
  r
@@ -1121,7 +1121,7 @@ function ds(e) {
1121
1121
  case "refetch": {
1122
1122
  const { live: i } = o, r = i.applied, a = {
1123
1123
  sheetChanged: !!i.previousBaseline && i.previousBaseline.hostSelectedSheetId !== n.hostSelectedSheetId,
1124
- controlsChanged: !!i.previousBaseline && !W(
1124
+ controlsChanged: !!i.previousBaseline && !Y(
1125
1125
  i.previousBaseline.controlOverrides ?? null,
1126
1126
  n.controlOverrides ?? null
1127
1127
  )
@@ -1213,7 +1213,7 @@ function cs(e) {
1213
1213
  const c = _e(
1214
1214
  e.appliedBookmark.state,
1215
1215
  ce
1216
- ), d = Je(t), l = We(
1216
+ ), d = Je(t), l = Ye(
1217
1217
  d.compatibility,
1218
1218
  et(
1219
1219
  t,
@@ -1261,7 +1261,7 @@ function st(e, t) {
1261
1261
  ), s = {};
1262
1262
  for (const [i, r] of o) {
1263
1263
  const a = n.get(i);
1264
- a && W(a.slot, r.slot) || Q(r.slot) && Q(a == null ? void 0 : a.slot) || U(
1264
+ a && Y(a.slot, r.slot) || Q(r.slot) && Q(a == null ? void 0 : a.slot) || U(
1265
1265
  s,
1266
1266
  r,
1267
1267
  Q(r.slot) ? { status: "cleared" } : r.slot
@@ -1361,7 +1361,7 @@ function Is(e) {
1361
1361
  o
1362
1362
  ),
1363
1363
  cardViewState: i ? Tn(i.cardViewState) : {}
1364
- }, c = i ? Yt(i.transientContexts) : void 0;
1364
+ }, c = i ? Wt(i.transientContexts) : void 0;
1365
1365
  return {
1366
1366
  runtimeValues: a,
1367
1367
  controlOverrides: r,
@@ -1723,7 +1723,7 @@ function Cs(e, t) {
1723
1723
  function fo(e, t, n) {
1724
1724
  const o = Dn(e);
1725
1725
  if (!o) throw new Error("Matrix card definition is required.");
1726
- const s = n && Wt({
1726
+ const s = n && Yt({
1727
1727
  ...n,
1728
1728
  spec: o.spec,
1729
1729
  catalog: t.map((l) => ({ ...l, id: l.resolvedField.id }))
@@ -2444,7 +2444,7 @@ function Eo({
2444
2444
  const k = (I = p.dashboardInputContext) == null ? void 0 : I.inputs.find(
2445
2445
  (S) => S.kind === "filter" && S.filter.id === m.id
2446
2446
  ), T = Nt(r, m).filter(
2447
- ({ card: S, sheet: D }) => !k || Y(k, {
2447
+ ({ card: S, sheet: D }) => !k || W(k, {
2448
2448
  cardId: S.id,
2449
2449
  sheetId: D.id,
2450
2450
  sheetKind: Re(D) ? "document" : "dashboard"
@@ -2749,7 +2749,7 @@ function qo(e, t) {
2749
2749
  dashboardFilters: [...Be(e)]
2750
2750
  }), o = ht(e, t);
2751
2751
  return n.filter(
2752
- (s) => Y(s, { sheetId: t, sheetKind: "document" }) || s.kind === "filter" && (s.runtimeScope === "shared" || s.runtimeScope === "perSheet") && qe(s, o)
2752
+ (s) => W(s, { sheetId: t, sheetKind: "document" }) || s.kind === "filter" && (s.runtimeScope === "shared" || s.runtimeScope === "perSheet") && qe(s, o)
2753
2753
  );
2754
2754
  }
2755
2755
  function ht(e, t) {