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,12 +1,12 @@
1
1
  import { toSemaphorInputSnapshots as ce, toSemaphorInputBinding as le, toSemaphorSelectionSnapshots as de, toSemaphorActiveInputSnapshots as q, toSemaphorMatrixIntent as fe, toSemaphorSqlIntent as me, toSemaphorInputOptionsIntent as pe, toSemaphorRecordsIntent as ye, toSemaphorAnalysisQueryOptions as he, toSemaphorAnalysisIntent as ve, toSemaphorMetricIntent as ge, hasSemaphorInputValue as b, normalizeSemaphorInputOptions as X, toSemaphorInputSpec as Z } from "../data-app-sdk-adapters/index.js";
2
2
  import { j as Se } from "../chunks/index-CuHybtft.js";
3
- import { ab as qe, az as x, s as Ie } from "../chunks/validators-CXTneCA4.js";
4
- import { a as Tt, aE as Nt } from "../chunks/validators-CXTneCA4.js";
5
- import { Z as Ae, am as we, al as be, z as F, S as W, G as ke } from "../chunks/matrix-operation-contract-WPv4R-H_.js";
6
- import "../chunks/analytics-base-schemas-CHLxsPfX.js";
3
+ import { ab as qe, az as _, s as Ie } from "../chunks/validators-BtaCFIEB.js";
4
+ import { a as Tt, aE as Nt } from "../chunks/validators-BtaCFIEB.js";
5
+ import { _ as Ae, an as we, am as be, y as F, S as W, G as ke } from "../chunks/matrix-operation-contract-BSiGEXVC.js";
6
+ import "../chunks/analytics-base-schemas-CB3oFAXk.js";
7
7
  import "zod";
8
- import { createContext as Ee, useContext as Ke, useMemo as h, useEffect as M, useState as _, useCallback as S, useRef as D } from "react";
9
- import { r as J } from "../chunks/selection-reducer-D0YnaAD9.js";
8
+ import { createContext as Ee, useContext as Ke, useMemo as h, useEffect as M, useState as x, useCallback as S, useRef as D } from "react";
9
+ import { r as J } from "../chunks/selection-reducer-CV7K4FI6.js";
10
10
  import { jsx as De } from "react/jsx-runtime";
11
11
  function K(e, t, r) {
12
12
  return {
@@ -151,7 +151,7 @@ const Et = {
151
151
  "largestPositiveChanges",
152
152
  "largestNegativeDrivers",
153
153
  "largestPositiveDrivers"
154
- ], xe = [
154
+ ], _e = [
155
155
  "primary",
156
156
  "records",
157
157
  "periodChanges",
@@ -169,7 +169,7 @@ const Et = {
169
169
  function ee(e) {
170
170
  if (!e)
171
171
  return {};
172
- const t = Ne(e.executionResult), r = _e(e, t), n = Re(r), s = te(
172
+ const t = Ne(e.executionResult), r = xe(e, t), n = Re(r), s = te(
173
173
  L(e.analysisWarnings),
174
174
  Me(r)
175
175
  );
@@ -184,7 +184,7 @@ function ee(e) {
184
184
  } : {}
185
185
  };
186
186
  }
187
- function _e(e, t) {
187
+ function xe(e, t) {
188
188
  const r = $e(e.resultSets);
189
189
  for (const s of Oe) {
190
190
  if (r[s])
@@ -237,7 +237,7 @@ function Ce(e, t = e.id || e.role || "resultSet") {
237
237
  }
238
238
  function Re(e) {
239
239
  var t;
240
- for (const r of xe)
240
+ for (const r of _e)
241
241
  if ((t = e[r]) != null && t.records.length)
242
242
  return e[r];
243
243
  return Object.values(e).find((r) => r.records.length) || Object.values(e)[0];
@@ -603,7 +603,7 @@ function A(e, t = e.kind) {
603
603
  }
604
604
  function re(e, t, r) {
605
605
  return {
606
- ...x(e) ? { intentId: x(e) } : {},
606
+ ..._(e) ? { intentId: _(e) } : {},
607
607
  ...e ? { intent: e } : {},
608
608
  status: "failed",
609
609
  resultShape: t,
@@ -736,7 +736,7 @@ function Ze(e) {
736
736
  function et(e, t) {
737
737
  return [
738
738
  `Semaphor ${e.kind} query`,
739
- x(e) ? `id=${x(e)}` : void 0,
739
+ _(e) ? `id=${_(e)}` : void 0,
740
740
  "label" in e && e.label ? `label=${e.label}` : void 0,
741
741
  tt(e),
742
742
  `endpoint=${rt(t)}`
@@ -816,7 +816,7 @@ function ot() {
816
816
  return Ke(ae);
817
817
  }
818
818
  function Kt(e) {
819
- const [t, r] = _(e.defaultValue), n = Object.prototype.hasOwnProperty.call(e, "value"), s = n ? e.value : t, o = h(
819
+ const [t, r] = x(e.defaultValue), n = Object.prototype.hasOwnProperty.call(e, "value"), s = n ? e.value : t, o = h(
820
820
  () => X(e.options),
821
821
  [e.options]
822
822
  ), a = S(
@@ -857,7 +857,7 @@ function Kt(e) {
857
857
  }, [c, o, a, e, s]);
858
858
  }
859
859
  function Dt(e) {
860
- const [t, r] = _(() => pt(e));
860
+ const [t, r] = x(() => pt(e));
861
861
  return M(() => {
862
862
  r((n) => {
863
863
  let s = n;
@@ -928,7 +928,7 @@ function ut(e) {
928
928
  function Y(e) {
929
929
  return `${typeof e}:${String(e)}`;
930
930
  }
931
- function xt(e, t = {}) {
931
+ function _t(e, t = {}) {
932
932
  const r = h(
933
933
  () => t.inputs ? {
934
934
  ...e,
@@ -1246,7 +1246,7 @@ function y(e) {
1246
1246
  return Array.isArray(e) && e.length > 0;
1247
1247
  }
1248
1248
  function mt(e, t, r, n, s) {
1249
- const o = ot(), a = D(t), c = D(n), u = D(s), [d, i] = _({
1249
+ const o = ot(), a = D(t), c = D(n), u = D(s), [d, i] = x({
1250
1250
  status: "idle",
1251
1251
  data: r,
1252
1252
  error: null,
@@ -1301,8 +1301,8 @@ function pt(e) {
1301
1301
  function O(e) {
1302
1302
  throw new Error(`Unsupported Semaphor query kind: ${JSON.stringify(e)}`);
1303
1303
  }
1304
- function _t(e) {
1305
- const [t, r] = _(() => G(e, e.defaultTuples || [])), n = Object.prototype.hasOwnProperty.call(e, "tuples"), s = G(
1304
+ function xt(e) {
1305
+ const [t, r] = x(() => G(e, e.defaultTuples || [])), n = Object.prototype.hasOwnProperty.call(e, "tuples"), s = G(
1306
1306
  e,
1307
1307
  n ? e.tuples || [] : t
1308
1308
  ), o = D(s);
@@ -1407,6 +1407,6 @@ export {
1407
1407
  Ot as useClearInvalidSemaphorInputValue,
1408
1408
  Kt as useSemaphorInput,
1409
1409
  Dt as useSemaphorInputs,
1410
- xt as useSemaphorQuery,
1411
- _t as useSemaphorSelection
1410
+ _t as useSemaphorQuery,
1411
+ xt as useSemaphorSelection
1412
1412
  };
@@ -1,7 +1,7 @@
1
1
  import { n as y } from "../chunks/operators-B3zZoskU.js";
2
- import { m as v, s as m, p as I, a as S } from "../chunks/validators-CXTneCA4.js";
3
- import { a as F, c as b } from "../chunks/matrix-operation-contract-WPv4R-H_.js";
4
- import "../chunks/analytics-base-schemas-CHLxsPfX.js";
2
+ import { m as v, s as m, p as I, a as S } from "../chunks/validators-BtaCFIEB.js";
3
+ import { a as F, c as b } from "../chunks/matrix-operation-contract-BSiGEXVC.js";
4
+ import "../chunks/analytics-base-schemas-CB3oFAXk.js";
5
5
  import "zod";
6
6
  function w(i) {
7
7
  var n, r, o;
@@ -1,11 +1,11 @@
1
- import { ag as b, aj as N, s as O, aC as v, q as E, ab as K, az as l } from "../chunks/validators-CXTneCA4.js";
2
- import { Z as Q } from "../chunks/matrix-operation-contract-WPv4R-H_.js";
3
- import "../chunks/analytics-base-schemas-CHLxsPfX.js";
1
+ import { ag as b, aj as N, s as O, aC as v, q as E, ab as K, az as l } from "../chunks/validators-BtaCFIEB.js";
2
+ import { _ as Q } from "../chunks/matrix-operation-contract-BSiGEXVC.js";
3
+ import "../chunks/analytics-base-schemas-CB3oFAXk.js";
4
4
  import "zod";
5
- import { p as W } from "../chunks/report-runtime-context-BZQh9ywy.js";
6
- import { d as U } from "../chunks/source-entity-resolution-dUG5VWRm.js";
7
- import { toSemaphorMetricIntent as J, toSemaphorAnalysisIntent as V, toSemaphorRecordsIntent as G, toSemaphorSqlIntent as L, toSemaphorMatrixIntent as Z, toSemaphorInputOptionsIntent as X } from "../data-app-sdk-adapters/index.js";
8
- import { m as Y } from "../chunks/matrix-card-HPskLaPy.js";
5
+ import { p as W } from "../chunks/report-runtime-context-DoIUr3MP.js";
6
+ import { d as U } from "../chunks/source-entity-resolution-BXI3nQ5Z.js";
7
+ import { toSemaphorMetricIntent as J, toSemaphorAnalysisIntent as V, toSemaphorRecordsIntent as G, toSemaphorSqlIntent as L, toSemaphorMatrixIntent as X, toSemaphorInputOptionsIntent as Y } from "../data-app-sdk-adapters/index.js";
8
+ import { m as Z } from "../chunks/matrix-card-CUorIB7Q.js";
9
9
  function ee({
10
10
  intent: e,
11
11
  field: r,
@@ -581,9 +581,9 @@ function ve(e) {
581
581
  if (e.queryKind === "sql")
582
582
  return L(e);
583
583
  if (e.queryKind === "matrix")
584
- return Z(e);
585
- if (e.queryKind === "inputOptions")
586
584
  return X(e);
585
+ if (e.queryKind === "inputOptions")
586
+ return Y(e);
587
587
  throw new Error(
588
588
  "useSemaphorQuery spec.queryKind must be metric, analysis, records, inputOptions, sql, or matrix."
589
589
  );
@@ -893,7 +893,7 @@ function Ce(e) {
893
893
  field: r,
894
894
  path: `spec.disambiguationFields.${t}`
895
895
  }))
896
- ] : e.kind === "matrix" ? Y(e).flatMap((r, t) => r.derivedField || r.name === "*" ? [] : [{ field: r, path: `spec.fields.${t}` }]) : [];
896
+ ] : e.kind === "matrix" ? Z(e).flatMap((r, t) => r.derivedField || r.name === "*" ? [] : [{ field: r, path: `spec.fields.${t}` }]) : [];
897
897
  }
898
898
  function B(e) {
899
899
  return !("derivedFields" in e) || !Array.isArray(e.derivedFields) ? [] : e.derivedFields;