react-semaphor 0.1.553 → 0.1.554

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 (67) hide show
  1. package/dist/analytics-protocol/index.js +228 -227
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +3 -3
  4. package/dist/briefings/index.js +5 -5
  5. package/dist/chunks/{assistant-chat-DaIdRbbd.js → assistant-chat-ngs5dTvo.js} +12 -12
  6. package/dist/chunks/{bookmark-state-aGO7_ryE.js → bookmark-state-BAeGKd3s.js} +3 -3
  7. package/dist/chunks/{comparison-window-caption-BugAu7zS.js → comparison-window-caption-C2WNTlxK.js} +44 -44
  8. package/dist/chunks/{custom-visual-inputs-D7ez5sab.js → custom-visual-inputs-cTHqcqPu.js} +1 -1
  9. package/dist/chunks/{dashboard-z3GYw7xR.js → dashboard-548YvEW5.js} +1 -1
  10. package/dist/chunks/{dashboard-briefing-launcher-DBJ0xrfF.js → dashboard-briefing-launcher-ptIRn5FS.js} +13 -13
  11. package/dist/chunks/{dashboard-controls-CDX74NTl.js → dashboard-controls-CqyUTN6Q.js} +13 -13
  12. package/dist/chunks/{dashboard-json-Cf5dpYTr.js → dashboard-json-CvDFipA0.js} +4 -4
  13. package/dist/chunks/{document-dashboard-inputs-LMMWPOwU.js → document-dashboard-inputs-DrA9m-5H.js} +10 -10
  14. package/dist/chunks/{edit-dashboard-visual-hCGiyxgm.js → edit-dashboard-visual-BHL0AlIj.js} +4087 -3979
  15. package/dist/chunks/{filter-reach-copy-BG5qVZKS.js → filter-reach-copy-CyftKCZE.js} +13 -13
  16. package/dist/chunks/{filter-value-text-DwP5dN9m.js → filter-value-text-DMrpj4h9.js} +2 -2
  17. package/dist/chunks/{global-date-filter-utils-Ce6Ydv2W.js → global-date-filter-utils-Or-3DL3k.js} +2358 -2301
  18. package/dist/chunks/{index-C_UIqop8.js → index-ClwmmbUH.js} +9 -9
  19. package/dist/chunks/{matrix-analytical-definition-cvzKdxPE.js → matrix-analytical-definition-DPVGg1mU.js} +12 -12
  20. package/dist/chunks/{matrix-card-VFE-yDlr.js → matrix-card-CVFVtqyo.js} +2 -2
  21. package/dist/chunks/{matrix-formatter-B27bz08Y.js → matrix-formatter-K2OVPJQI.js} +18 -18
  22. package/dist/chunks/{matrix-member-presentation-DyC-e9pD.js → matrix-member-presentation-DRWcJ8Mi.js} +1 -1
  23. package/dist/chunks/{matrix-operation-contract-L_SiObB7.js → matrix-operation-contract--lMaLlpV.js} +64 -61
  24. package/dist/chunks/{metric-comparison-B5gyyW9k.js → metric-comparison-CYIt2F5X.js} +1 -1
  25. package/dist/chunks/{pivot-header-presentation-BQFfowp1.js → pivot-header-presentation-CX4fkRuG.js} +1 -1
  26. package/dist/chunks/{pivot-result-identity-dZIYsMrY.js → pivot-result-identity-BHJGZwIc.js} +1 -1
  27. package/dist/chunks/{pivot-result-lifecycle-D0kSz5QX.js → pivot-result-lifecycle-BygCpOhk.js} +20 -20
  28. package/dist/chunks/{raw-temporal-presentation-BWRH754b.js → raw-temporal-presentation-gooAp93G.js} +6 -6
  29. package/dist/chunks/{report-preferences-dialog-DvabpYcC.js → report-preferences-dialog-2tqY0BMQ.js} +15 -15
  30. package/dist/chunks/{report-runtime-context-CKiIubIu.js → report-runtime-context-BaIKSaja.js} +1 -1
  31. package/dist/chunks/{resolve-dashboard-input-context-Ctq1YCDV.js → resolve-dashboard-input-context-bOKDTHfJ.js} +431 -429
  32. package/dist/chunks/{saved-dashboard-context-Bt1E9d1l.js → saved-dashboard-context--Hq1juf9.js} +8 -8
  33. package/dist/chunks/{selection-reducer-DdPwKDDQ.js → selection-reducer-yw_JgICP.js} +1 -1
  34. package/dist/chunks/{semaphor-ready-indicator-Cc1TG_gw.js → semaphor-ready-indicator-yM4wo-FH.js} +26 -26
  35. package/dist/chunks/{shelf-drop-preview-context-Ch9XqytU.js → shelf-drop-preview-context-BuLzyT1T.js} +6 -6
  36. package/dist/chunks/{source-entity-resolution-DkW3Iek5.js → source-entity-resolution-CGymm5td.js} +1 -1
  37. package/dist/chunks/{switch-gm7RW-PW.js → switch-B-UTI6v-.js} +2 -2
  38. package/dist/chunks/{table-export-sheet-C7bDdC8r.js → table-export-sheet-CgO6gaSM.js} +1 -1
  39. package/dist/chunks/{table-settings-CBm7G0yx.js → table-settings-DOT_Bv1m.js} +2 -2
  40. package/dist/chunks/{temporal-bucket-BikY3FFR.js → temporal-bucket-C4rqmwaQ.js} +24 -24
  41. package/dist/chunks/{token-types-B1p9F_wS.js → token-types-DYECHYGH.js} +1 -1
  42. package/dist/chunks/{use-create-flow-overlay-state-CZdDRUpc.js → use-create-flow-overlay-state-DSXC-LD7.js} +6 -6
  43. package/dist/chunks/{validators-BdBzm_EV.js → validators-ClKLGDGZ.js} +1078 -1056
  44. package/dist/dashboard/index.js +2 -2
  45. package/dist/dashboard-authoring/index.js +16 -16
  46. package/dist/data-app-sdk/index.js +5 -5
  47. package/dist/data-app-sdk-adapters/index.js +2 -2
  48. package/dist/data-app-sdk-validation/index.js +5 -5
  49. package/dist/format-utils/index.js +15 -15
  50. package/dist/index.js +21 -21
  51. package/dist/report-runtime-context/index.js +1 -1
  52. package/dist/surfboard/index.js +2 -2
  53. package/dist/types/index.js +6 -6
  54. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +3 -2
  55. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -2
  56. package/dist/types/lib/utils/card-config-utils.d.ts +1 -1
  57. package/dist/types/lib/utils/card-definition.d.ts +2 -1
  58. package/dist/types/shared/analytics-protocol/index.d.ts +2 -2
  59. package/dist/types/shared/analytics-protocol/matrix-analytical-definition.d.ts +1 -0
  60. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +59 -21
  61. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +12 -7
  62. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +16 -9
  63. package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +14 -16
  64. package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -1
  65. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
  66. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +4 -2
  67. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
1
  var G = Object.defineProperty;
2
2
  var Q = (e, t, o) => t in e ? G(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
3
  var h = (e, t, o) => Q(e, typeof t != "symbol" ? t + "" : t, o);
4
- import { N as q, O as L, P as y, q as ee, H as te, E as oe, i as re, Q as K, f as ne, F as ae, r as ie, M as se, v as ce } from "./temporal-bucket-BikY3FFR.js";
4
+ import { N as q, O as L, P as y, q as ee, H as te, E as oe, i as re, Q as K, f as ne, F as ae, r as ie, M as se, v as ce } from "./temporal-bucket-C4rqmwaQ.js";
5
5
  import { z as d } from "zod";
6
6
  import { E as B, l as Y } from "./export-file-format-C-tJsxsf.js";
7
- import { aM as le, l as de, X as me, O as T, o as ue } from "./validators-BdBzm_EV.js";
8
- import { b as fe } from "./report-runtime-context-CKiIubIu.js";
7
+ import { aN as le, l as de, Y as me, Q as T, o as ue } from "./validators-ClKLGDGZ.js";
8
+ import { b as fe } from "./report-runtime-context-BaIKSaja.js";
9
9
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as pe } from "../value-format-preferences/index.js";
10
10
  import { z as ye } from "./zoned-wall-clock-MulfA26h.js";
11
11
  import { S as he } from "./analytics-base-schemas-BKs3flFS.js";
12
- import "./matrix-operation-contract-L_SiObB7.js";
13
- import { r as we, i as ge } from "./metric-comparison-B5gyyW9k.js";
14
- import { d as ve, P as be } from "./pivot-result-identity-dZIYsMrY.js";
12
+ import "./matrix-operation-contract--lMaLlpV.js";
13
+ import { r as we, i as ge } from "./metric-comparison-CYIt2F5X.js";
14
+ import { d as ve, P as be } from "./pivot-result-identity-BHJGZwIc.js";
15
15
  function Ot(e, t) {
16
16
  const r = Ie(e);
17
17
  let n;
@@ -284,7 +284,7 @@ class N extends Error {
284
284
  this.name = "PresentationExecutionSnapshotError";
285
285
  }
286
286
  }
287
- class Xt extends Error {
287
+ class Wt extends Error {
288
288
  constructor(o) {
289
289
  super(
290
290
  `missing_resolved_raw_temporal_format: Column "${o}" has no captured presentation. Resave this report before running it again.`
@@ -363,7 +363,7 @@ function He(e) {
363
363
  return e === "millisecond" || e === "second" || e === "minute" || e === "hour" || e === "day";
364
364
  }
365
365
  const Ve = ["type", "locale", "pattern", "timezone", "sourceTimezone"];
366
- function Xe(e, t) {
366
+ function We(e, t) {
367
367
  if (w(e, Ve, t), typeof e.locale != "string" || !e.locale.trim())
368
368
  throw new Error(`${t}.locale must be a non-empty string`);
369
369
  for (const o of ["pattern", "timezone", "sourceTimezone"])
@@ -377,7 +377,7 @@ function Xe(e, t) {
377
377
  ...typeof e.sourceTimezone == "string" ? { sourceTimezone: e.sourceTimezone } : {}
378
378
  };
379
379
  }
380
- function We(e, t) {
380
+ function Xe(e, t) {
381
381
  w(e, Ze, t);
382
382
  for (const a of ["inputUnit", "largestUnit", "smallestUnit"])
383
383
  if (e[a] !== void 0 && !He(e[a]))
@@ -528,7 +528,7 @@ function et(e) {
528
528
  i = {
529
529
  scope: a,
530
530
  target: u,
531
- format: Xe(o.format, `${n}.format`)
531
+ format: We(o.format, `${n}.format`)
532
532
  };
533
533
  break;
534
534
  }
@@ -536,7 +536,7 @@ function et(e) {
536
536
  i = {
537
537
  scope: a,
538
538
  target: F(o.target, `${n}.target`),
539
- format: We(
539
+ format: Xe(
540
540
  o.format,
541
541
  `${n}.format`
542
542
  )
@@ -584,7 +584,7 @@ function tt(e) {
584
584
  );
585
585
  }
586
586
  }
587
- function Wt(e) {
587
+ function Xt(e) {
588
588
  return tt({
589
589
  version: 1,
590
590
  reportContext: e.reportContext,
@@ -712,7 +712,7 @@ function ro(e) {
712
712
  function ct(e, t, o, r) {
713
713
  const [n, a = n] = e;
714
714
  if ((t == null ? void 0 : t.mode) === "pattern")
715
- return X(
715
+ return W(
716
716
  e.map(
717
717
  (c) => V(D(c), "date", t.pattern, o, r)
718
718
  )
@@ -748,7 +748,7 @@ function ct(e, t, o, r) {
748
748
  }
749
749
  function lt(e, t, o, r) {
750
750
  if ((t == null ? void 0 : t.mode) === "pattern")
751
- return X(
751
+ return W(
752
752
  e.map(
753
753
  (s) => V(
754
754
  s.toISOString(),
@@ -793,7 +793,7 @@ function V(e, t, o, r, n) {
793
793
  function dt(e) {
794
794
  return /HH|mm|ss/.test(e);
795
795
  }
796
- function X(e) {
796
+ function W(e) {
797
797
  return e[1] === void 0 || e[0] === e[1] ? e[0] : e.join(j);
798
798
  }
799
799
  function mt(e, t) {
@@ -820,7 +820,7 @@ function ft(e, t, o) {
820
820
  return t === "end" && i ? n : null;
821
821
  }
822
822
  function pt(e, t, o) {
823
- return o.fiscalCalendar || e.day !== 1 || e.year !== t.year || t.day !== W(t.year, t.month) ? null : e.month === t.month ? "month" : e.month % 3 === 1 && t.month === e.month + 2 ? "quarter" : e.month === 1 && t.month === 12 ? "year" : null;
823
+ return o.fiscalCalendar || e.day !== 1 || e.year !== t.year || t.day !== X(t.year, t.month) ? null : e.month === t.month ? "month" : e.month % 3 === 1 && t.month === e.month + 2 ? "quarter" : e.month === 1 && t.month === 12 ? "year" : null;
824
824
  }
825
825
  function D(e) {
826
826
  return `${String(e.year).padStart(4, "0")}-${String(e.month).padStart(2, "0")}-${String(e.day).padStart(2, "0")}`;
@@ -840,11 +840,11 @@ function yt(e, t) {
840
840
  function ht(e, t) {
841
841
  return e.year === t.year && e.month === t.month && e.day === t.day;
842
842
  }
843
- function W(e, t) {
843
+ function X(e, t) {
844
844
  return new Date(Date.UTC(e, t, 0)).getUTCDate();
845
845
  }
846
846
  function wt(e) {
847
- return e.year >= 1 && e.month >= 1 && e.month <= 12 && e.day >= 1 && e.day <= W(e.year, e.month);
847
+ return e.year >= 1 && e.month >= 1 && e.month <= 12 && e.day >= 1 && e.day <= X(e.year, e.month);
848
848
  }
849
849
  function I(e) {
850
850
  return Array.from(
@@ -1207,7 +1207,7 @@ export {
1207
1207
  Be as H,
1208
1208
  Vt as I,
1209
1209
  Ot as J,
1210
- Xt as M,
1210
+ Wt as M,
1211
1211
  N as P,
1212
1212
  ot as a,
1213
1213
  je as b,
@@ -1225,7 +1225,7 @@ export {
1225
1225
  et as n,
1226
1226
  tt as o,
1227
1227
  v as p,
1228
- Wt as q,
1228
+ Xt as q,
1229
1229
  Jt as r,
1230
1230
  Gt as s,
1231
1231
  eo as t,
@@ -1,13 +1,13 @@
1
1
  import "./analytics-base-schemas-BKs3flFS.js";
2
- import { r as P } from "./pivot-result-identity-dZIYsMrY.js";
3
- import { r as R, n as M } from "./global-date-filter-utils-Ce6Ydv2W.js";
4
- import "./validators-BdBzm_EV.js";
5
- import "./matrix-operation-contract-L_SiObB7.js";
2
+ import { r as P } from "./pivot-result-identity-BHJGZwIc.js";
3
+ import { r as R, n as M } from "./global-date-filter-utils-Or-3DL3k.js";
4
+ import "./validators-ClKLGDGZ.js";
5
+ import "./matrix-operation-contract--lMaLlpV.js";
6
6
  import { v as S } from "./raw-temporal-contract-WuXA8jBP.js";
7
7
  import "zod";
8
8
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as A } from "../value-format-preferences/index.js";
9
- import { f as E, M as O } from "./pivot-result-lifecycle-D0kSz5QX.js";
10
- import { p as g, r as b, c as q, R as z, v as L } from "./temporal-bucket-BikY3FFR.js";
9
+ import { f as E, M as O } from "./pivot-result-lifecycle-BygCpOhk.js";
10
+ import { p as g, r as b, c as q, R as z, v as L } from "./temporal-bucket-C4rqmwaQ.js";
11
11
  const $ = "SEMAPHOR_CALCULATED_FIELD";
12
12
  function j(e, a, t) {
13
13
  if (t && (a === "groupby" || a === "pivotby"))
@@ -1,25 +1,25 @@
1
1
  import { jsxs as h, jsx as i, Fragment as te } from "react/jsx-runtime";
2
2
  import * as v from "react";
3
3
  import jt, { useRef as U, useState as z, useCallback as j, useEffect as H, useMemo as J, createContext as $t, useContext as He, lazy as Ee, Suspense as Se, useLayoutEffect as Ie, Activity as Vt, useId as ce } from "react";
4
- import { u as _, bh as Kt, bi as Ht, bj as gt, a4 as qt, bk as Gt, bl as Xt, bm as Jt, b as Yt, b5 as qe, bn as Zt, bo as Qt, bp as yt, x as ea, bq as ta, br as aa, bs as ra, bt as na, bu as ge, bv as wt, bw as tt, bx as sa, Z as ye, Y as la, by as ia, bz as oa, _ as at, $ as da, bA as ca, E as ua, F as fa, S as ma, B as ha, a as pa, U as ba, bB as va, D as ga, A as ya, C as wa, bC as Sa, bD as xa, bE as Ia, bF as Ca, bG as rt, bH as ke, bI as Ea, bJ as Ge, bK as X, bL as Na, bM as Ta, bN as ka, bO as Aa, bP as Da } from "./semaphor-ready-indicator-Cc1TG_gw.js";
5
- import "./validators-BdBzm_EV.js";
6
- import "./matrix-operation-contract-L_SiObB7.js";
4
+ import { u as _, bh as Kt, bi as Ht, bj as gt, a4 as qt, bk as Gt, bl as Xt, bm as Jt, b as Yt, b5 as qe, bn as Zt, bo as Qt, bp as yt, x as ea, bq as ta, br as aa, bs as ra, bt as na, bu as ge, bv as wt, bw as tt, bx as sa, Z as ye, Y as la, by as ia, bz as oa, _ as at, $ as da, bA as ca, E as ua, F as fa, S as ma, B as ha, a as pa, U as ba, bB as va, D as ga, A as ya, C as wa, bC as Sa, bD as xa, bE as Ia, bF as Ca, bG as rt, bH as ke, bI as Ea, bJ as Ge, bK as X, bL as Na, bM as Ta, bN as ka, bO as Aa, bP as Da } from "./semaphor-ready-indicator-yM4wo-FH.js";
5
+ import "./validators-ClKLGDGZ.js";
6
+ import "./matrix-operation-contract--lMaLlpV.js";
7
7
  import "./analytics-base-schemas-BKs3flFS.js";
8
8
  import "zod";
9
- import { Y as Ra, cW as _a, bs as Pa, bt as Oa, as as Fa, s as La } from "./global-date-filter-utils-Ce6Ydv2W.js";
9
+ import { Y as Ra, cW as _a, bs as Pa, bt as Oa, as as Fa, s as La } from "./global-date-filter-utils-Or-3DL3k.js";
10
10
  import { j as za } from "./index-CuHybtft.js";
11
11
  import { parseValueFormatPreferencesResponse as Ma, canonicalizeSupportedLocale as St, getSupportedCurrencyCodes as Ua, canonicalizeSupportedCurrencyCode as Wa } from "../value-format-preferences/index.js";
12
12
  import { c as W } from "./_commonjsHelpers-DimLPMtv.js";
13
13
  import "./index-CtoK1Lgu.js";
14
- import "./pivot-result-lifecycle-D0kSz5QX.js";
15
- import { I as Ba } from "./table-settings-CBm7G0yx.js";
16
- import { l as oe, B as q, N as ja, O as $a, Q as Va, U as Ka, V as Ha, W as qa, X as ie, z as ee, Y as pe, P as Ga, a as Xa, b as Ja, c as nt, L as xt, r as Le, s as ze, t as Me, u as Ue, v as Z, T as Ya, d as Za, e as st, g as lt } from "./switch-gm7RW-PW.js";
14
+ import "./pivot-result-lifecycle-BygCpOhk.js";
15
+ import { I as Ba } from "./table-settings-DOT_Bv1m.js";
16
+ import { l as oe, B as q, N as ja, O as $a, Q as Va, U as Ka, V as Ha, W as qa, X as ie, z as ee, Y as pe, P as Ga, a as Xa, b as Ja, c as nt, L as xt, r as Le, s as ze, t as Me, u as Ue, v as Z, T as Ya, d as Za, e as st, g as lt } from "./switch-B-UTI6v-.js";
17
17
  import { X as Qa } from "./x-4f5U2XwU.js";
18
18
  import { r as er, a as It } from "./availability-Bp5Gfu1I.js";
19
- import { a as tr } from "./filter-reach-copy-BG5qVZKS.js";
20
- import { S as ar } from "./selection-reducer-DdPwKDDQ.js";
21
- import { a as rr } from "./report-runtime-context-CKiIubIu.js";
22
- import { r as we, M as ue } from "./temporal-bucket-BikY3FFR.js";
19
+ import { a as tr } from "./filter-reach-copy-CyftKCZE.js";
20
+ import { S as ar } from "./selection-reducer-yw_JgICP.js";
21
+ import { a as rr } from "./report-runtime-context-BaIKSaja.js";
22
+ import { r as we, M as ue } from "./temporal-bucket-C4rqmwaQ.js";
23
23
  function nr(e = []) {
24
24
  const a = U(null), t = U(null), n = U(null), [r, l] = z(), s = j(() => {
25
25
  var u, g, b;
@@ -315,7 +315,7 @@ function Xn(e, a, t) {
315
315
  anchorSlot: n.anchorSlot
316
316
  };
317
317
  }
318
- const xr = Ee(() => import("./assistant-chat-DaIdRbbd.js"));
318
+ const xr = Ee(() => import("./assistant-chat-ngs5dTvo.js"));
319
319
  function Jn() {
320
320
  const e = ea(), a = Sr();
321
321
  if (!e.available) return null;
@@ -761,9 +761,9 @@ function xe(e) {
761
761
  function Mr() {
762
762
  return globalThis.crypto.randomUUID();
763
763
  }
764
- const Ur = Ee(() => import("./dashboard-controls-CDX74NTl.js")), Wr = Ee(
765
- () => import("./edit-dashboard-visual-hCGiyxgm.js")
766
- ), Br = Ee(() => import("./dashboard-json-Cf5dpYTr.js"));
764
+ const Ur = Ee(() => import("./dashboard-controls-CqyUTN6Q.js")), Wr = Ee(
765
+ () => import("./edit-dashboard-visual-BHL0AlIj.js")
766
+ ), Br = Ee(() => import("./dashboard-json-CvDFipA0.js"));
767
767
  function Yn({
768
768
  showControls: e = !1,
769
769
  showFooter: a = !0,
@@ -1,5 +1,5 @@
1
1
  import { parseValueFormatPreferences as _, isReportPreferenceSource as C } from "../value-format-preferences/index.js";
2
- import { r as g } from "./validators-BdBzm_EV.js";
2
+ import { r as g } from "./validators-ClKLGDGZ.js";
3
3
  import { i as k } from "./analytics-base-schemas-BKs3flFS.js";
4
4
  const D = {
5
5
  tz: "UTC",