react-semaphor 0.1.560 → 0.1.561

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 (107) hide show
  1. package/dist/analytics-protocol/index.js +353 -349
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +9 -9
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{analytics-base-schemas-CHLxsPfX.js → analytics-base-schemas-CB3oFAXk.js} +199 -171
  7. package/dist/chunks/{assistant-chat-Bu2fFm_I.js → assistant-chat-DiVHY3Hw.js} +27 -28
  8. package/dist/chunks/bookmark-impact-CR09dpkn.js +75 -0
  9. package/dist/chunks/bookmark-state-BusLpkb7.js +743 -0
  10. package/dist/chunks/{braces-Da41xfUd.js → braces-u8VorWJc.js} +1 -1
  11. package/dist/chunks/{comparison-window-caption-4FNkMrzE.js → comparison-window-caption-DDsIWJYT.js} +108 -108
  12. package/dist/chunks/{context-BgPDzLHZ.js → context-TUjw9eqr.js} +1 -1
  13. package/dist/chunks/{custom-visual-inputs-Dz-enUNR.js → custom-visual-inputs-DfolidZ9.js} +1 -1
  14. package/dist/chunks/{dashboard-_MeBuy67.js → dashboard-BRdZBPqr.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-CEi4Pr_v.js → dashboard-briefing-launcher-CgvTLndW.js} +161 -162
  16. package/dist/chunks/{dashboard-controls-Bi7fyG-4.js → dashboard-controls-B4vfSzTF.js} +881 -945
  17. package/dist/chunks/{dashboard-json-B1mU_OMa.js → dashboard-json-Y3MF59g7.js} +5 -5
  18. package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +1718 -0
  19. package/dist/chunks/{edit-dashboard-visual-0CJN31Y3.js → edit-dashboard-visual-DwjZcxj-.js} +6112 -6146
  20. package/dist/chunks/{filter-reach-copy-BF4w4kI2.js → filter-reach-copy-bijwf_-b.js} +1250 -1392
  21. package/dist/chunks/{filter-value-text-CRC-K_l_.js → filter-value-text-DFnhwuEW.js} +3 -3
  22. package/dist/chunks/global-date-filter-utils-BXgCpvQM.js +15142 -0
  23. package/dist/chunks/{index-DtHidOPV.js → index-ClwbY3BL.js} +197 -198
  24. package/dist/chunks/{layout-grid-BvsH4RY2.js → layout-grid-CtvCBfOm.js} +1 -1
  25. package/dist/chunks/{list-filter-Dg0otx5E.js → list-filter-BklYgciR.js} +1 -1
  26. package/dist/chunks/{matrix-analytical-definition-CM18W8w6.js → matrix-analytical-definition-pU51-JmY.js} +4 -4
  27. package/dist/chunks/{matrix-card-HPskLaPy.js → matrix-card-CUorIB7Q.js} +3 -3
  28. package/dist/chunks/{matrix-member-presentation-Bbrfrke4.js → matrix-member-presentation-Df5UgCGN.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-WPv4R-H_.js → matrix-operation-contract-BSiGEXVC.js} +255 -248
  30. package/dist/chunks/{metric-comparison-ljMKYZKa.js → metric-comparison-95aC0uEO.js} +6 -6
  31. package/dist/chunks/{model-change-Ccn1zaxl.js → model-change-B5wQhg5G.js} +1 -1
  32. package/dist/chunks/{palette-Bsh376zO.js → palette-DTnMhipt.js} +1 -1
  33. package/dist/chunks/pivot-result-contract-expectations-Bo-86vwS.js +56 -0
  34. package/dist/chunks/{pivot-result-identity-vS9TSh4f.js → pivot-result-identity-olvXJoB9.js} +1 -1
  35. package/dist/chunks/{report-preferences-dialog-BV8L0SeS.js → report-preferences-dialog-C2YUIwKG.js} +14 -14
  36. package/dist/chunks/{report-runtime-context-BZQh9ywy.js → report-runtime-context-DoIUr3MP.js} +2 -2
  37. package/dist/chunks/resolve-dashboard-input-context-q_iiNXE1.js +6503 -0
  38. package/dist/chunks/{save-B5EAsgQF.js → save-DH4RyrnG.js} +1 -1
  39. package/dist/chunks/{saved-dashboard-context-n2Wn11cV.js → saved-dashboard-context-8jqfI7hI.js} +12 -12
  40. package/dist/chunks/{selection-reducer-D0YnaAD9.js → selection-reducer-CV7K4FI6.js} +1 -1
  41. package/dist/chunks/{semaphor-ready-indicator-XLBLOJ2V.js → semaphor-ready-indicator-E2XWyibu.js} +30253 -31076
  42. package/dist/chunks/{shelf-drop-preview-context-DHMa54a-.js → shelf-drop-preview-context-C29EUzDp.js} +7 -7
  43. package/dist/chunks/{source-entity-resolution-dUG5VWRm.js → source-entity-resolution-BXI3nQ5Z.js} +1 -1
  44. package/dist/chunks/{switch-ByxH4M7t.js → switch-balDSHc7.js} +3 -3
  45. package/dist/chunks/{table-export-sheet-C_GdeTYU.js → table-export-sheet-CK8tvh4d.js} +1 -1
  46. package/dist/chunks/temporal-input-presentation-B77JsAzU.js +5002 -0
  47. package/dist/chunks/{token-types-CQtXUVMy.js → token-types-DhYH5YKb.js} +1 -1
  48. package/dist/chunks/{upload-wbR-NVzq.js → upload-Ufj8vjyn.js} +1 -1
  49. package/dist/chunks/{use-create-flow-overlay-state-CEBaLOKC.js → use-create-flow-overlay-state-9WsnzEO5.js} +6 -6
  50. package/dist/chunks/{validators-CXTneCA4.js → validators-BtaCFIEB.js} +37 -37
  51. package/dist/chunks/{zoned-wall-clock-B1n_WjW3.js → zoned-wall-clock-CGLVI40Q.js} +1 -1
  52. package/dist/dashboard/index.js +2 -2
  53. package/dist/dashboard-authoring/index.js +2400 -1856
  54. package/dist/data-app-sdk/index.js +20 -20
  55. package/dist/data-app-sdk-adapters/index.js +3 -3
  56. package/dist/data-app-sdk-validation/index.js +10 -10
  57. package/dist/format-utils/index.js +257 -256
  58. package/dist/index.js +214 -215
  59. package/dist/report-runtime-context/index.js +2 -2
  60. package/dist/style.css +1 -1
  61. package/dist/surfboard/index.js +2 -2
  62. package/dist/types/components/dashboard/summary-number-formatter.d.ts +6 -0
  63. package/dist/types/index.js +50 -51
  64. package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
  65. package/dist/types/lib/stores/editor-store.d.ts +9 -1
  66. package/dist/types/lib/stores/table-actions.d.ts +0 -2
  67. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +10 -0
  68. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
  69. package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
  70. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +52 -0
  71. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
  72. package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
  73. package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
  74. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
  75. package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
  76. package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
  77. package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
  78. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +15 -0
  79. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +102 -0
  80. package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
  81. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
  82. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
  83. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +40 -0
  84. package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +28 -0
  85. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
  86. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
  87. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +539 -22
  88. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +27 -8
  89. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +25 -1
  90. package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +1 -8
  91. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  92. package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
  93. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
  94. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +21 -1
  95. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +10 -4
  96. package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
  97. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +8 -1
  98. package/dist/types/shared/format-utils/raw-temporal.d.ts +16 -0
  99. package/package.json +2 -2
  100. package/dist/chunks/bookmark-state-BFY9oNmr.js +0 -111
  101. package/dist/chunks/document-dashboard-inputs-CkWfDB8c.js +0 -3010
  102. package/dist/chunks/global-date-filter-utils-D8365uPH.js +0 -12889
  103. package/dist/chunks/pivot-result-contract-expectations-Bl5suy4-.js +0 -1832
  104. package/dist/chunks/raw-temporal-presentation-BHm7s-hz.js +0 -540
  105. package/dist/chunks/resolve-dashboard-input-context-CAMiWvyR.js +0 -5280
  106. package/dist/chunks/table-settings-Imz0FgWi.js +0 -637
  107. package/dist/chunks/temporal-input-presentation-uvNK_tM0.js +0 -3228
@@ -1,5 +1,5 @@
1
- import { T as m, a as g, b as C } from "./analytics-base-schemas-CHLxsPfX.js";
2
- import { r as k } from "./validators-CXTneCA4.js";
1
+ import { T as m, a as g, b as C } from "./analytics-base-schemas-CB3oFAXk.js";
2
+ import { r as k } from "./validators-BtaCFIEB.js";
3
3
  function w(e) {
4
4
  const r = C.safeParse(e);
5
5
  return r.success ? { ok: !0, value: r.data } : {
@@ -482,10 +482,10 @@ function B(e) {
482
482
  export {
483
483
  A as C,
484
484
  h as D,
485
- T as a,
486
- N as b,
487
- _ as c,
488
- E as d,
485
+ N as a,
486
+ _ as b,
487
+ E as c,
488
+ T as d,
489
489
  O as e,
490
490
  L as f,
491
491
  P as g,
@@ -1,4 +1,4 @@
1
- import { A as c, h as k, m as f } from "./context-BgPDzLHZ.js";
1
+ import { A as c, h as k, m as f } from "./context-TUjw9eqr.js";
2
2
  function g(e, t) {
3
3
  return e.role === t.role && e.name === t.name && e.aggregate === t.aggregate && e.granularity === t.granularity;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { c } from "./switch-ByxH4M7t.js";
1
+ import { c } from "./switch-balDSHc7.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *
@@ -0,0 +1,56 @@
1
+ var c = Object.defineProperty;
2
+ var d = (r, e, t) => e in r ? c(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var l = (r, e, t) => d(r, typeof e != "symbol" ? e + "" : e, t);
4
+ import { ac as u } from "./temporal-input-presentation-B77JsAzU.js";
5
+ import "./validators-BtaCFIEB.js";
6
+ import "./matrix-operation-contract-BSiGEXVC.js";
7
+ import { r as v } from "./metric-comparison-95aC0uEO.js";
8
+ import "./analytics-base-schemas-CB3oFAXk.js";
9
+ import "zod";
10
+ class m extends Error {
11
+ constructor(t, a) {
12
+ super(`${t}: ${a}`);
13
+ l(this, "deliveryBlocking", !0);
14
+ this.code = t, this.name = "PivotHeaderPresentationError";
15
+ }
16
+ }
17
+ function k(r) {
18
+ var i;
19
+ const e = r.mode ?? "formatted", t = r.members.map((o) => {
20
+ var n;
21
+ if (e === "canonical" || !o.temporalBucket)
22
+ return o.value === null ? "" : String(o.value);
23
+ const s = (n = r.resolveTemporalFormat) == null ? void 0 : n.call(r, o.fieldId);
24
+ if (!s)
25
+ throw new m(
26
+ "missing_resolved_temporal_format",
27
+ `Missing resolved temporal presentation for pivot field "${o.fieldId}"`
28
+ );
29
+ return u({
30
+ value: o.value,
31
+ metadata: o.temporalBucket,
32
+ format: s
33
+ });
34
+ }), a = ((i = r.metricLabel) == null ? void 0 : i.trim()) || void 0;
35
+ return {
36
+ memberLabels: t,
37
+ ...a ? { metricLabel: a } : {},
38
+ flattenedLabel: [
39
+ ...t,
40
+ ...a ? [a] : []
41
+ ].join(" / ")
42
+ };
43
+ }
44
+ function B(r) {
45
+ const e = /* @__PURE__ */ new Map();
46
+ return r.forEach((t) => {
47
+ t.id && e.set(t.id, (e.get(t.id) ?? 0) + 1);
48
+ }), r.flatMap(
49
+ (t) => t.id && (e.get(t.id) ?? 0) > 1 ? [v(t)] : []
50
+ );
51
+ }
52
+ export {
53
+ m as P,
54
+ B as d,
55
+ k as p
56
+ };
@@ -1,7 +1,7 @@
1
1
  var y = Object.defineProperty;
2
2
  var c = (i, t, e) => t in i ? y(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var a = (i, t, e) => c(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { v as u } from "./metric-comparison-ljMKYZKa.js";
4
+ import { v as u } from "./metric-comparison-95aC0uEO.js";
5
5
  class l extends Error {
6
6
  constructor(e) {
7
7
  super(`missing_pivot_member_identity: ${e}`);
@@ -1,21 +1,21 @@
1
1
  import { jsx as o, Fragment as te, jsxs as h } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
3
  import $t, { useMemo as ee, useState as L, useEffect as J, createContext as jt, useRef as $, useCallback as K, useContext as qe, lazy as Ee, Suspense as Se, useLayoutEffect as Ce, Activity as Vt, useId as de } from "react";
4
- import { b as Wt, b8 as He, bk as Kt, bl as qt, u as M, bm as gt, x as Ht, bn as Gt, bo as Jt, bp as Xt, bq as Yt, br as ge, bs as yt, bt as tt, bu as Zt, Z as ye, Y as Qt, bv as ea, bw as ta, _ as at, $ as aa, bx as ra, E as na, F as sa, S as la, B as oa, a as ia, U as da, by as ca, D as ua, A as fa, C as ma, bz as ha, bA as pa, bB as va, bC as ba, bD as ga, bE as ya, bF as rt, bG as ke, bH as wa, bI as Ge, bJ as G, bK as Sa, bL as xa, bM as Ca, bN as Ia, bO as Ea } from "./semaphor-ready-indicator-XLBLOJ2V.js";
4
+ import { b as Wt, b8 as He, bk as Kt, bl as qt, u as M, bm as gt, x as Ht, bn as Gt, bo as Jt, bp as Xt, bq as Yt, br as ge, bs as yt, bt as tt, bu as Zt, Z as ye, Y as Qt, bv as ea, bw as ta, _ as at, $ as aa, bx as ra, E as na, F as sa, S as la, B as oa, a as ia, U as da, by as ca, D as ua, A as fa, C as ma, bz as ha, bA as pa, bB as va, bC as ba, bD as ga, bE as ya, bF as rt, bG as ke, bH as wa, bI as Ge, bJ as G, bK as Sa, bL as xa, bM as Ca, bN as Ia, bO as Ea } from "./semaphor-ready-indicator-E2XWyibu.js";
5
5
  import { j as Na } from "./index-CuHybtft.js";
6
- import { I as Ta } from "./table-settings-Imz0FgWi.js";
6
+ import { N as Ta } from "./bookmark-state-BusLpkb7.js";
7
7
  import { r as ka, a as wt } from "./availability-Bp5Gfu1I.js";
8
- import { s as Aa } from "./global-date-filter-utils-D8365uPH.js";
9
- import { B as q, Q as Ra, U as Da, V as _a, W as Pa, Y as Oa, Z as La, _ as oe, D as Q, $ as he, m as pe, P as za, a as Fa, b as Ma, d as nt, L as St, s as ze, t as Fe, u as Me, v as Ue, w as Y, T as Ua, e as Ba, f as st, h as lt } from "./switch-ByxH4M7t.js";
10
- import "./validators-CXTneCA4.js";
11
- import "./matrix-operation-contract-WPv4R-H_.js";
12
- import "./analytics-base-schemas-CHLxsPfX.js";
8
+ import { s as Aa } from "./global-date-filter-utils-BXgCpvQM.js";
9
+ import { B as q, Q as Ra, U as Da, V as _a, W as Pa, Y as Oa, Z as La, _ as oe, D as Q, $ as he, m as pe, P as za, a as Fa, b as Ma, d as nt, L as St, s as ze, t as Fe, u as Me, v as Ue, w as Y, T as Ua, e as Ba, f as st, h as lt } from "./switch-balDSHc7.js";
10
+ import "./validators-BtaCFIEB.js";
11
+ import "./matrix-operation-contract-BSiGEXVC.js";
12
+ import "./analytics-base-schemas-CB3oFAXk.js";
13
13
  import "zod";
14
14
  import { parseValueFormatPreferencesResponse as $a, canonicalizeSupportedLocale as xt, getSupportedCurrencyCodes as ja, canonicalizeSupportedCurrencyCode as Va } from "../value-format-preferences/index.js";
15
15
  import { c as B } from "./_commonjsHelpers-DimLPMtv.js";
16
- import { a as Wa } from "./filter-reach-copy-BF4w4kI2.js";
17
- import { a as Ka } from "./report-runtime-context-BZQh9ywy.js";
18
- import { r as we, ab as ce } from "./temporal-input-presentation-uvNK_tM0.js";
16
+ import { a as Wa } from "./filter-reach-copy-bijwf_-b.js";
17
+ import { a as Ka } from "./report-runtime-context-DoIUr3MP.js";
18
+ import { ag as we, ao as ce } from "./temporal-input-presentation-B77JsAzU.js";
19
19
  function qa() {
20
20
  return /* @__PURE__ */ o(
21
21
  "div",
@@ -163,7 +163,7 @@ function Rn(e, a, t) {
163
163
  anchorSlot: n.anchorSlot
164
164
  };
165
165
  }
166
- const or = Ee(() => import("./assistant-chat-Bu2fFm_I.js"));
166
+ const or = Ee(() => import("./assistant-chat-DiVHY3Hw.js"));
167
167
  function Dn() {
168
168
  const e = Ht(), a = lr();
169
169
  if (!e.available) return null;
@@ -609,9 +609,9 @@ function xe(e) {
609
609
  function Cr() {
610
610
  return globalThis.crypto.randomUUID();
611
611
  }
612
- const Ir = Ee(() => import("./dashboard-controls-Bi7fyG-4.js")), Er = Ee(
613
- () => import("./edit-dashboard-visual-0CJN31Y3.js")
614
- ), Nr = Ee(() => import("./dashboard-json-B1mU_OMa.js"));
612
+ const Ir = Ee(() => import("./dashboard-controls-B4vfSzTF.js")), Er = Ee(
613
+ () => import("./edit-dashboard-visual-DwjZcxj-.js")
614
+ ), Nr = Ee(() => import("./dashboard-json-Y3MF59g7.js"));
615
615
  function _n({
616
616
  showControls: e = !1,
617
617
  showFooter: a = !0,
@@ -1,6 +1,6 @@
1
1
  import { parseValueFormatPreferences as _, isReportPreferenceSource as C } from "../value-format-preferences/index.js";
2
- import { r as g } from "./validators-CXTneCA4.js";
3
- import { i as k } from "./analytics-base-schemas-CHLxsPfX.js";
2
+ import { r as g } from "./validators-BtaCFIEB.js";
3
+ import { i as k } from "./analytics-base-schemas-CB3oFAXk.js";
4
4
  const D = {
5
5
  tz: "UTC",
6
6
  weekStart: 1,