react-semaphor 0.1.560 → 0.1.562

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 (168) hide show
  1. package/dist/analytics-protocol/index.js +450 -423
  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-BaIQrEzX.js} +221 -188
  7. package/dist/chunks/{assistant-chat-Bu2fFm_I.js → assistant-chat-R_yT8xH4.js} +116 -117
  8. package/dist/chunks/bookmark-impact-D4Kl4amw.js +75 -0
  9. package/dist/chunks/bookmark-state-CWeoGbrx.js +743 -0
  10. package/dist/chunks/{braces-Da41xfUd.js → braces-DzgoQC64.js} +1 -1
  11. package/dist/chunks/{comparison-window-caption-4FNkMrzE.js → comparison-window-caption-D1EUXzaR.js} +550 -425
  12. package/dist/chunks/{context-BgPDzLHZ.js → context-R31TSL5V.js} +1 -1
  13. package/dist/chunks/{dashboard-_MeBuy67.js → dashboard-Bp1y5oun.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-CEi4Pr_v.js → dashboard-briefing-launcher-S5FB3aUW.js} +236 -236
  15. package/dist/chunks/dashboard-controls-CfC_6Ztn.js +2277 -0
  16. package/dist/chunks/{dashboard-json-B1mU_OMa.js → dashboard-json-gYZT7ZQY.js} +5 -5
  17. package/dist/chunks/dates-DFY7Gfss.js +91 -0
  18. package/dist/chunks/{edit-dashboard-visual-0CJN31Y3.js → edit-dashboard-visual-u7OI_g8Q.js} +7119 -7198
  19. package/dist/chunks/filter-reach-copy-CvV7W5dd.js +3965 -0
  20. package/dist/chunks/{filter-value-text-CRC-K_l_.js → filter-value-text-CPwFkrMz.js} +11 -10
  21. package/dist/chunks/global-date-filter-utils-N1kcsOFE.js +16722 -0
  22. package/dist/chunks/{index-DtHidOPV.js → index-CNGkfUp4.js} +269 -264
  23. package/dist/chunks/{layout-grid-BvsH4RY2.js → layout-grid-BM65viQh.js} +1 -1
  24. package/dist/chunks/{list-filter-Dg0otx5E.js → list-filter-BoeLBfL3.js} +1 -1
  25. package/dist/chunks/{matrix-analytical-definition-CM18W8w6.js → matrix-analytical-definition-hEucouWM.js} +4 -4
  26. package/dist/chunks/{matrix-card-HPskLaPy.js → matrix-card-CCh9JjP1.js} +3 -3
  27. package/dist/chunks/{matrix-member-presentation-Bbrfrke4.js → matrix-member-presentation-DsAUbuoL.js} +1 -1
  28. package/dist/chunks/{matrix-operation-contract-WPv4R-H_.js → matrix-operation-contract-DsLdFdSa.js} +365 -349
  29. package/dist/chunks/{metric-comparison-ljMKYZKa.js → metric-comparison-Bnso1cm1.js} +6 -6
  30. package/dist/chunks/{model-change-Ccn1zaxl.js → model-change-T1cRkh3m.js} +1 -1
  31. package/dist/chunks/{palette-Bsh376zO.js → palette-p1XSJFgB.js} +1 -1
  32. package/dist/chunks/pivot-result-contract-expectations-B53jqszr.js +56 -0
  33. package/dist/chunks/{pivot-result-identity-vS9TSh4f.js → pivot-result-identity-Dq5jm-EC.js} +1 -1
  34. package/dist/chunks/{zoned-wall-clock-B1n_WjW3.js → raw-temporal-value-Bqz8wc7L.js} +97 -46
  35. package/dist/chunks/{report-preferences-dialog-BV8L0SeS.js → report-preferences-dialog-C4RAR8u5.js} +68 -63
  36. package/dist/chunks/{report-runtime-context-BZQh9ywy.js → report-runtime-context-BITkNSDa.js} +2 -2
  37. package/dist/chunks/resolve-dashboard-input-context-DaDrZGuA.js +8214 -0
  38. package/dist/chunks/{save-B5EAsgQF.js → save-CHV1B1fL.js} +1 -1
  39. package/dist/chunks/{saved-dashboard-context-n2Wn11cV.js → saved-dashboard-context-DFYBrE6O.js} +93 -94
  40. package/dist/chunks/{selection-filter-compiler-BKXmyLrS.js → selection-filter-compiler-CUDRnUxc.js} +19 -18
  41. package/dist/chunks/{selection-reducer-D0YnaAD9.js → selection-reducer-Bz5aywT4.js} +1 -1
  42. package/dist/chunks/{semaphor-ready-indicator-XLBLOJ2V.js → semaphor-ready-indicator-Cfuafnem.js} +38188 -40344
  43. package/dist/chunks/{shelf-drop-preview-context-DHMa54a-.js → shelf-drop-preview-context-BR2GEYog.js} +81 -82
  44. package/dist/chunks/{source-entity-resolution-dUG5VWRm.js → source-entity-resolution-DdDVXFB8.js} +6 -6
  45. package/dist/chunks/{switch-ByxH4M7t.js → switch-BW4yXSYs.js} +3 -3
  46. package/dist/chunks/{table-export-sheet-C_GdeTYU.js → table-export-sheet-bSXxGn-v.js} +1 -1
  47. package/dist/chunks/temporal-input-presentation-sk9gqLi6.js +4960 -0
  48. package/dist/chunks/{token-types-CQtXUVMy.js → token-types-BUK06hU2.js} +1 -1
  49. package/dist/chunks/{upload-wbR-NVzq.js → upload-BnmuyPqW.js} +1 -1
  50. package/dist/chunks/{use-create-flow-overlay-state-CEBaLOKC.js → use-create-flow-overlay-state-DyzhWvRJ.js} +6 -6
  51. package/dist/chunks/{validators-CXTneCA4.js → validators-BIM0FE31.js} +774 -895
  52. package/dist/dashboard/index.js +2 -2
  53. package/dist/dashboard-authoring/index.js +2477 -2685
  54. package/dist/data-app-sdk/index.js +30 -30
  55. package/dist/data-app-sdk-adapters/index.js +3 -3
  56. package/dist/data-app-sdk-validation/index.js +25 -25
  57. package/dist/format-utils/index.js +274 -267
  58. package/dist/index.js +59 -59
  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/briefings/attachment-outcomes.d.ts +1 -1
  63. package/dist/types/components/dashboard/dashboard-create-dialog.d.ts +23 -0
  64. package/dist/types/components/dashboard/summary-number-formatter.d.ts +6 -0
  65. package/dist/types/components/index.d.ts +1 -2
  66. package/dist/types/components/surfboard/filter/types.d.ts +3 -1
  67. package/dist/types/index.js +50 -51
  68. package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
  69. package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +59 -2
  70. package/dist/types/lib/interactions/get-click-context-from-matrix.d.ts +5 -0
  71. package/dist/types/lib/interactions/get-click-context-from-table.d.ts +45 -0
  72. package/dist/types/lib/print/print-inputs.d.ts +2 -1
  73. package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -0
  74. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +5 -0
  75. package/dist/types/lib/selection/selection-from-click-context.d.ts +41 -0
  76. package/dist/types/lib/stores/editor-store.d.ts +9 -1
  77. package/dist/types/lib/stores/table-actions.d.ts +0 -2
  78. package/dist/types/lib/types/common-types.d.ts +6 -0
  79. package/dist/types/lib/types/explorer-types.d.ts +7 -1
  80. package/dist/types/lib/types/interaction-types.d.ts +3 -1
  81. package/dist/types/lib/types/token-types.d.ts +0 -1
  82. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +13 -1
  83. package/dist/types/shared/analytics-protocol/contracts.d.ts +9 -40
  84. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
  85. package/dist/types/shared/analytics-protocol/selection-contract.d.ts +12 -2
  86. package/dist/types/shared/analytics-protocol/validators.d.ts +1 -2
  87. package/dist/types/shared/assistant-protocol/context.d.ts +8 -8
  88. package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +7 -1
  89. package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
  90. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +76 -0
  91. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
  92. package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
  93. package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
  94. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
  95. package/dist/types/shared/dashboard-authoring/card-settings/column-polarity-write.d.ts +5 -0
  96. package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
  97. package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
  98. package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
  99. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +17 -0
  100. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +117 -0
  101. package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
  102. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
  103. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
  104. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +51 -0
  105. package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +30 -0
  106. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
  107. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
  108. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +3402 -4313
  109. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +49 -8
  110. package/dist/types/shared/dashboard-authoring/changes/field-ref.d.ts +91 -0
  111. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +7 -0
  112. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +52 -2
  113. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-create.d.ts +26 -0
  114. package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +2 -1
  115. package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +1 -8
  116. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +20 -20
  117. package/dist/types/shared/dashboard-authoring/detail-date-presentation.d.ts +9 -0
  118. package/dist/types/shared/dashboard-authoring/index.d.ts +11 -6
  119. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
  120. package/dist/types/shared/dashboard-authoring/measure-calculations/apply.d.ts +8 -0
  121. package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +16 -0
  122. package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +41 -0
  123. package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +17 -0
  124. package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +63 -0
  125. package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +16 -0
  126. package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +79 -0
  127. package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +934 -0
  128. package/dist/types/shared/dashboard-authoring/measure-calculations/sentences.d.ts +4 -0
  129. package/dist/types/shared/dashboard-authoring/measure-calculations/set.d.ts +11 -0
  130. package/dist/types/shared/dashboard-authoring/measure-calculations/transform.d.ts +63 -0
  131. package/dist/types/shared/dashboard-authoring/measure-calculations/window-transforms.d.ts +60 -0
  132. package/dist/types/shared/dashboard-authoring/new-card.d.ts +12 -1
  133. package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +2 -1
  134. package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +46 -0
  135. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +73 -3
  136. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +21 -3
  137. package/dist/types/shared/dashboard-authoring/text-card-words/blocks.d.ts +58 -0
  138. package/dist/types/shared/dashboard-authoring/text-card-words/index.d.ts +55 -0
  139. package/dist/types/shared/dashboard-authoring/text-card-words/rich-content.d.ts +18 -0
  140. package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
  141. package/dist/types/shared/format-utils/document-print.d.ts +82 -0
  142. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +8 -1
  143. package/dist/types/shared/format-utils/index.d.ts +1 -0
  144. package/dist/types/shared/format-utils/raw-temporal.d.ts +18 -7
  145. package/dist/types/shared/temporal/index.d.ts +1 -0
  146. package/dist/types/shared/temporal/raw-temporal-equality.d.ts +19 -0
  147. package/dist/types/shared/temporal/raw-temporal-value.d.ts +29 -0
  148. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +6 -0
  149. package/package.json +2 -2
  150. package/dist/chunks/bookmark-state-BFY9oNmr.js +0 -111
  151. package/dist/chunks/custom-visual-inputs-Dz-enUNR.js +0 -292
  152. package/dist/chunks/dashboard-controls-Bi7fyG-4.js +0 -2339
  153. package/dist/chunks/document-dashboard-inputs-CkWfDB8c.js +0 -3010
  154. package/dist/chunks/filter-reach-copy-BF4w4kI2.js +0 -3738
  155. package/dist/chunks/global-date-filter-utils-D8365uPH.js +0 -12889
  156. package/dist/chunks/pivot-result-contract-expectations-Bl5suy4-.js +0 -1832
  157. package/dist/chunks/raw-temporal-presentation-BHm7s-hz.js +0 -540
  158. package/dist/chunks/resolve-dashboard-input-context-CAMiWvyR.js +0 -5280
  159. package/dist/chunks/table-settings-Imz0FgWi.js +0 -637
  160. package/dist/chunks/temporal-input-presentation-uvNK_tM0.js +0 -3228
  161. package/dist/types/components/dashboard/ai-dashboard-create-dialog.d.ts +0 -38
  162. package/dist/types/components/dashboard/dashboard-create-template.d.ts +0 -10
  163. package/dist/types/lib/hooks/use-dashboard-authoring.d.ts +0 -49
  164. package/dist/types/shared/dashboard-authoring/artifact-compiler.d.ts +0 -6
  165. package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -106
  166. package/dist/types/shared/dashboard-authoring/protocol-adapter.d.ts +0 -7
  167. package/dist/types/shared/dashboard-authoring/source-matching.d.ts +0 -34
  168. package/dist/types/shared/dashboard-authoring/validators.d.ts +0 -2
@@ -1,14 +1,14 @@
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";
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 G, 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 { J as qe, K as x, s as Ie } from "../chunks/validators-BIM0FE31.js";
4
+ import { a as Tt, aD as Nt } from "../chunks/validators-BIM0FE31.js";
5
+ import { m as Ae, ao as we, an as be, A as F, S as W, I as ke } from "../chunks/matrix-operation-contract-DsLdFdSa.js";
6
+ import "../chunks/analytics-base-schemas-BaIQrEzX.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 Ke, useContext as Ee, 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-Bz5aywT4.js";
10
10
  import { jsx as De } from "react/jsx-runtime";
11
- function K(e, t, r) {
11
+ function E(e, t, r) {
12
12
  return {
13
13
  ...r,
14
14
  name: e,
@@ -21,7 +21,7 @@ function bt(e) {
21
21
  function kt(e) {
22
22
  return e;
23
23
  }
24
- const Et = {
24
+ const Kt = {
25
25
  source: {
26
26
  semantic(e) {
27
27
  return {
@@ -38,16 +38,16 @@ const Et = {
38
38
  },
39
39
  field: {
40
40
  measure(e, t = {}) {
41
- return K(e, "measure", t);
41
+ return E(e, "measure", t);
42
42
  },
43
43
  dimension(e, t = {}) {
44
- return K(e, "dimension", t);
44
+ return E(e, "dimension", t);
45
45
  },
46
46
  date(e, t = {}) {
47
- return K(e, "date", t);
47
+ return E(e, "date", t);
48
48
  },
49
49
  id(e, t = {}) {
50
- return K(e, "id", t);
50
+ return E(e, "id", t);
51
51
  }
52
52
  },
53
53
  filter(e) {
@@ -648,7 +648,7 @@ function f(e, t, r, n) {
648
648
  error: r == null ? void 0 : r.message
649
649
  });
650
650
  }
651
- function Ge() {
651
+ function Xe() {
652
652
  return {
653
653
  executeAnalysis: (e, t, r) => w(
654
654
  e,
@@ -661,7 +661,7 @@ function Ge() {
661
661
  executeSql: (e, t) => w(e, t),
662
662
  executeMatrix: async (e, t) => {
663
663
  var n, s;
664
- const r = await Xe(e, t);
664
+ const r = await Ge(e, t);
665
665
  if (r.status === "failed")
666
666
  throw ie(
667
667
  ((n = r.metadata.matrixFailure) == null ? void 0 : n.message) ?? "Matrix execution failed.",
@@ -709,7 +709,7 @@ function ne(e, t, r) {
709
709
  body: JSON.stringify(e)
710
710
  });
711
711
  }
712
- async function Xe(e, t, r) {
712
+ async function Ge(e, t, r) {
713
713
  const n = we.parse(e), s = await ne({
714
714
  ...n,
715
715
  activeInputs: t.activeInputs,
@@ -807,17 +807,17 @@ function it(e) {
807
807
  return "";
808
808
  }
809
809
  }
810
- const ae = Ee({});
810
+ const ae = Ke({});
811
811
  function st() {
812
812
  if (!(typeof window > "u"))
813
813
  return window.__SEMAPHOR_DATA_APP_RUNTIME__;
814
814
  }
815
815
  function ot() {
816
- return Ke(ae);
816
+ return Ee(ae);
817
817
  }
818
- function Kt(e) {
818
+ function Et(e) {
819
819
  const [t, r] = _(e.defaultValue), n = Object.prototype.hasOwnProperty.call(e, "value"), s = n ? e.value : t, o = h(
820
- () => X(e.options),
820
+ () => G(e.options),
821
821
  [e.options]
822
822
  ), a = S(
823
823
  (u) => {
@@ -870,7 +870,7 @@ function Dt(e) {
870
870
  const s = Object.prototype.hasOwnProperty.call(
871
871
  n,
872
872
  "value"
873
- ), o = s ? n.value : t[n.id], a = X(n.options), c = (i) => {
873
+ ), o = s ? n.value : t[n.id], a = G(n.options), c = (i) => {
874
874
  var l;
875
875
  (l = n.onValueChange) == null || l.call(n, i), s || r((m) => ({
876
876
  ...m,
@@ -990,7 +990,7 @@ function xt(e, t = {}) {
990
990
  }
991
991
  })(), [r, t.selections]), s = S(
992
992
  (i) => {
993
- var m, p, B, z, U, k, H, E, Q;
993
+ var m, p, B, z, U, k, H, K, Q;
994
994
  const l = n.request;
995
995
  if (l.intent)
996
996
  switch (n.queryKind) {
@@ -1024,8 +1024,8 @@ function xt(e, t = {}) {
1024
1024
  );
1025
1025
  case "matrix":
1026
1026
  if (!l.matrixWindowRequest) throw new Error("Matrix window request is required.");
1027
- return (Q = (E = i.executor) == null ? void 0 : E.executeMatrix) == null ? void 0 : Q.call(
1028
- E,
1027
+ return (Q = (K = i.executor) == null ? void 0 : K.executeMatrix) == null ? void 0 : Q.call(
1028
+ K,
1029
1029
  { intent: l.intent, matrixWindowRequest: l.matrixWindowRequest },
1030
1030
  i
1031
1031
  );
@@ -1302,7 +1302,7 @@ function O(e) {
1302
1302
  throw new Error(`Unsupported Semaphor query kind: ${JSON.stringify(e)}`);
1303
1303
  }
1304
1304
  function _t(e) {
1305
- const [t, r] = _(() => G(e, e.defaultTuples || [])), n = Object.prototype.hasOwnProperty.call(e, "tuples"), s = G(
1305
+ const [t, r] = _(() => X(e, e.defaultTuples || [])), n = Object.prototype.hasOwnProperty.call(e, "tuples"), s = X(
1306
1306
  e,
1307
1307
  n ? e.tuples || [] : t
1308
1308
  ), o = D(s);
@@ -1352,7 +1352,7 @@ function _t(e) {
1352
1352
  [u, c, e.fields, e.id, e.label, s]
1353
1353
  );
1354
1354
  }
1355
- function G(e, t) {
1355
+ function X(e, t) {
1356
1356
  if (e.fields.length === 0)
1357
1357
  throw new Error(`Semaphor selection "${e.id}" requires at least one field.`);
1358
1358
  if (t.length > W)
@@ -1384,7 +1384,7 @@ function $t({
1384
1384
  children: s
1385
1385
  }) {
1386
1386
  var m;
1387
- const o = st(), a = ((m = o == null ? void 0 : o.authToken) == null ? void 0 : m.accessToken) || e, c = (o == null ? void 0 : o.dataApiBaseUrl) || (o == null ? void 0 : o.apiBaseUrl) || t, u = (o == null ? void 0 : o.debug) ?? n, d = h(() => Ge(), []), i = r || d, l = h(
1387
+ const o = st(), a = ((m = o == null ? void 0 : o.authToken) == null ? void 0 : m.accessToken) || e, c = (o == null ? void 0 : o.dataApiBaseUrl) || (o == null ? void 0 : o.apiBaseUrl) || t, u = (o == null ? void 0 : o.debug) ?? n, d = h(() => Xe(), []), i = r || d, l = h(
1388
1388
  () => ({
1389
1389
  token: a,
1390
1390
  apiBaseUrl: c,
@@ -1397,15 +1397,15 @@ function $t({
1397
1397
  }
1398
1398
  export {
1399
1399
  $t as SemaphorDataAppProvider,
1400
- Ge as createSemaphorQueryExecutor,
1400
+ Xe as createSemaphorQueryExecutor,
1401
1401
  bt as defineSemaphorDataApp,
1402
1402
  kt as defineSemaphorInput,
1403
1403
  at as isSemaphorInputValueValidForOptions,
1404
- Et as semaphor,
1404
+ Kt as semaphor,
1405
1405
  Tt as semaphorMetricAggregate,
1406
1406
  Nt as semaphorMetricMeasureBindingKey,
1407
1407
  Ot as useClearInvalidSemaphorInputValue,
1408
- Kt as useSemaphorInput,
1408
+ Et as useSemaphorInput,
1409
1409
  Dt as useSemaphorInputs,
1410
1410
  xt as useSemaphorQuery,
1411
1411
  _t as useSemaphorSelection
@@ -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-BIM0FE31.js";
3
+ import { a as F, c as b } from "../chunks/matrix-operation-contract-DsLdFdSa.js";
4
+ import "../chunks/analytics-base-schemas-BaIQrEzX.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 { G as b, H as N, s as O, I as v, q as E, J as K, K as l } from "../chunks/validators-BIM0FE31.js";
2
+ import { m as Q } from "../chunks/matrix-operation-contract-DsLdFdSa.js";
3
+ import "../chunks/analytics-base-schemas-BaIQrEzX.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-BITkNSDa.js";
6
+ import { r as J } from "../chunks/source-entity-resolution-DdDVXFB8.js";
7
+ import { toSemaphorMetricIntent as U, toSemaphorAnalysisIntent as G, toSemaphorRecordsIntent as V, 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-CCh9JjP1.js";
9
9
  function ee({
10
10
  intent: e,
11
11
  field: r,
@@ -22,7 +22,7 @@ function ee({
22
22
  const n = q(
23
23
  r,
24
24
  i.selectedField
25
- ), s = P(t), c = y(n);
25
+ ), s = H(t), c = y(n);
26
26
  return re(
27
27
  s,
28
28
  i.allowedRelatedRoles
@@ -31,7 +31,7 @@ function ee({
31
31
  function Ne(e) {
32
32
  return e.kind === "records" ? ae(e) : e.kind === "metric" ? ne(e) : [];
33
33
  }
34
- function P(e) {
34
+ function H(e) {
35
35
  const r = b(e.role);
36
36
  if (r === "measure")
37
37
  return "measure";
@@ -107,7 +107,7 @@ function ie(e, r, t) {
107
107
  function ae(e) {
108
108
  var o, i;
109
109
  const r = w(e), t = (o = e.orderBy) != null && o.field ? I(r, e.orderBy.field) : void 0;
110
- return H([
110
+ return P([
111
111
  ...r.map(
112
112
  (n) => p(
113
113
  n,
@@ -135,7 +135,7 @@ function ne(e) {
135
135
  e.dimensions || [],
136
136
  e.orderBy.field
137
137
  ) : void 0;
138
- return H([
138
+ return P([
139
139
  ...e.measures.map((i) => p(i, [])),
140
140
  ...e.primaryMeasure ? [p(e.primaryMeasure, [])] : [],
141
141
  ...(e.dimensions || []).map(
@@ -168,7 +168,7 @@ function p(e, r, t = {}) {
168
168
  ...t
169
169
  };
170
170
  }
171
- function H(e) {
171
+ function P(e) {
172
172
  const r = [];
173
173
  return e.forEach((t) => {
174
174
  r.some(
@@ -198,7 +198,7 @@ function de(e, r) {
198
198
  return !!(e && (!r || e === r));
199
199
  }
200
200
  function y(e) {
201
- return P(e);
201
+ return H(e);
202
202
  }
203
203
  function j({
204
204
  intent: e,
@@ -342,7 +342,7 @@ function fe(e) {
342
342
  )
343
343
  );
344
344
  else {
345
- const d = U({
345
+ const d = J({
346
346
  entities: i,
347
347
  semanticDomainId: t.kind === "semantic" ? t.domainId : void 0,
348
348
  connectionId: t.connectionId,
@@ -450,7 +450,7 @@ function Oe(e) {
450
450
  function pe(e, r, t) {
451
451
  const o = `queries.${r}`;
452
452
  try {
453
- const i = ge(e), n = He(e, i), s = K(i), c = [
453
+ const i = ge(e), n = Pe(e, i), s = K(i), c = [
454
454
  ...Re({
455
455
  querySpec: e,
456
456
  queryId: n,
@@ -490,7 +490,7 @@ function pe(e, r, t) {
490
490
  pathPrefix: o,
491
491
  validateTimezone: t.validateTimezone
492
492
  })
493
- ], a = Pe(s, c);
493
+ ], a = He(s, c);
494
494
  return {
495
495
  queryHook: e.queryHook,
496
496
  queryId: n,
@@ -573,17 +573,17 @@ function ve(e) {
573
573
  if (!M(e))
574
574
  throw new Error("useSemaphorQuery spec must be an object.");
575
575
  if (e.queryKind === "metric")
576
- return J(e);
576
+ return U(e);
577
577
  if (e.queryKind === "analysis")
578
- return V(e);
579
- if (e.queryKind === "records")
580
578
  return G(e);
579
+ if (e.queryKind === "records")
580
+ return V(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;
@@ -924,7 +924,7 @@ function _(e, r) {
924
924
  source: r.intent.source
925
925
  };
926
926
  }
927
- function Pe(e, r) {
927
+ function He(e, r) {
928
928
  const t = D(r);
929
929
  return {
930
930
  ok: t.ok && e.ok,
@@ -1011,7 +1011,7 @@ function x(e) {
1011
1011
  }
1012
1012
  };
1013
1013
  }
1014
- function He(e, r) {
1014
+ function Pe(e, r) {
1015
1015
  return l(r) || z(e.spec);
1016
1016
  }
1017
1017
  function z(e) {
@@ -1025,7 +1025,7 @@ export {
1025
1025
  I as findMatchingRelatedProjectionField,
1026
1026
  re as isAllowedRelatedProjectionRole,
1027
1027
  me as normalizeSemaphorAnalysisQueryOptions,
1028
- P as normalizeSemaphorFieldRole,
1028
+ H as normalizeSemaphorFieldRole,
1029
1029
  Ne as relatedProjectionFieldCandidatesForIntent,
1030
1030
  Oe as validateSemaphorDataAppQuerySpecs
1031
1031
  };