react-semaphor 0.1.601 → 0.1.602

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/dist/analytics-protocol/index.js +9 -9
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +4 -4
  5. package/dist/chunks/{assistant-chat-BE0XXzZP.js → assistant-chat-BWF3GYip.js} +12 -12
  6. package/dist/chunks/{bookmark-impact-DXDAN5AY.js → bookmark-impact-BF3iRx5a.js} +3 -3
  7. package/dist/chunks/{bookmark-state-BMyB3Tb6.js → bookmark-state-CBSTdW6q.js} +4 -4
  8. package/dist/chunks/{card-filter-builder-CE0-YVN5.js → card-filter-builder-B8XHwMY6.js} +394 -394
  9. package/dist/chunks/{comparison-window-caption-Dxj2CHOa.js → comparison-window-caption-W83qB4V5.js} +4 -4
  10. package/dist/chunks/{dashboard-mJKPFRbb.js → dashboard-DG5EIYYB.js} +1 -1
  11. package/dist/chunks/{dashboard-briefing-launcher-CntwKyiZ.js → dashboard-briefing-launcher-CBSrhyWZ.js} +727 -718
  12. package/dist/chunks/{dashboard-controls-XO089DMg.js → dashboard-controls-D6ECO4N1.js} +15 -15
  13. package/dist/chunks/{dashboard-json-CQRiydUv.js → dashboard-json-DrJftBSL.js} +4 -4
  14. package/dist/chunks/{dates-B-Urp5OD.js → dates-Bz-qM5px.js} +10 -10
  15. package/dist/chunks/{edit-dashboard-visual-f-Dm-BLR.js → edit-dashboard-visual-BDYAJIbb.js} +1565 -1544
  16. package/dist/chunks/{filter-line-CKNMyNTQ.js → filter-line-BXT6y303.js} +6 -6
  17. package/dist/chunks/{filter-reach-copy-B8GGyVuR.js → filter-reach-copy-BukhZmzm.js} +1661 -1950
  18. package/dist/chunks/{filter-value-text-CRtKecI5.js → filter-value-text-D3-bf3_b.js} +4 -4
  19. package/dist/chunks/{index-DoPApnxg.js → index-BW0yozjs.js} +5 -5
  20. package/dist/chunks/{layout-grid-CiSCZdIr.js → layout-grid-Ds0diMeY.js} +1 -1
  21. package/dist/chunks/{matrix-analytical-definition-myf3D3Qx.js → matrix-analytical-definition-CgQgVeeI.js} +4 -4
  22. package/dist/chunks/{matrix-member-presentation-g0c_NpDW.js → matrix-member-presentation-DSBIIudt.js} +1 -1
  23. package/dist/chunks/{matrix-operation-contract-C1SuOHLZ.js → matrix-operation-contract--DkNCOzd.js} +517 -514
  24. package/dist/chunks/{metric-comparison-Cm0G893W.js → metric-comparison-zMylnIkc.js} +1 -1
  25. package/dist/chunks/{paintbrush-DQIwqlck.js → paintbrush-CX8pao1j.js} +1 -1
  26. package/dist/chunks/{palette-Cun747Rg.js → palette-CuA0HlzF.js} +1 -1
  27. package/dist/chunks/{pivot-result-contract-expectations-C1Dyx8du.js → pivot-result-contract-expectations-C8KL7hPx.js} +8 -8
  28. package/dist/chunks/{pivot-result-identity-CBS-ssEp.js → pivot-result-identity-C1AOH1PS.js} +1 -1
  29. package/dist/chunks/{raw-temporal-value-DN_l-Tss.js → raw-temporal-value-E416F-0L.js} +1 -1
  30. package/dist/chunks/{report-preferences-dialog-SDZEcG2x.js → report-preferences-dialog-CbuVNDGi.js} +13 -13
  31. package/dist/chunks/{report-runtime-context-BbedQdtc.js → report-runtime-context-E7USjN7E.js} +1 -1
  32. package/dist/chunks/{resolve-dashboard-input-context-DRBS0eRa.js → resolve-dashboard-input-context-CULCE_hM.js} +8417 -7052
  33. package/dist/chunks/{save-Dj5bjm7P.js → save-BKHlDONy.js} +1 -1
  34. package/dist/chunks/{saved-dashboard-context-DWVlJcsa.js → saved-dashboard-context-C1WlOx5z.js} +32 -32
  35. package/dist/chunks/{selection-filter-compiler-DmAr7yqC.js → selection-filter-compiler-ifT8JCXS.js} +1 -1
  36. package/dist/chunks/{semaphor-ready-indicator-OFOoAY-A.js → semaphor-ready-indicator-CBIRcDWs.js} +33414 -31523
  37. package/dist/chunks/{shelf-drop-preview-context-2swWypXu.js → shelf-drop-preview-context-xR69SMA8.js} +53 -53
  38. package/dist/chunks/{stored-dashboard-NtOuEX6a.js → stored-dashboard-BuM8vnWf.js} +739 -717
  39. package/dist/chunks/{style-sheet-parts-Qv4UcLAo.js → style-sheet-parts-Bt9ZNre8.js} +2 -2
  40. package/dist/chunks/{table-export-sheet-Do7ZB0_F.js → table-export-sheet-DVljtHkG.js} +1 -1
  41. package/dist/chunks/{token-types-Dy_aXO-U.js → token-types-D_xKgyVS.js} +1 -1
  42. package/dist/chunks/{upload-Bq-puSVy.js → upload-Dll_M7XQ.js} +1 -1
  43. package/dist/chunks/{validators-C7DFk3QK.js → validators-ClWHpYql.js} +2 -2
  44. package/dist/chunks/{variable-draft-Cy03qnEi.js → variable-draft-CDGGl53R.js} +27 -28
  45. package/dist/dashboard/index.js +2 -2
  46. package/dist/dashboard-authoring/index.js +3086 -2578
  47. package/dist/format-utils/index.js +14 -14
  48. package/dist/index.js +71 -73
  49. package/dist/report-runtime-context/index.js +1 -1
  50. package/dist/style.css +1 -1
  51. package/dist/surfboard/index.js +2 -2
  52. package/dist/types/components/dashboard/dashboard-web-component.d.ts +7 -0
  53. package/dist/types/index.js +5 -5
  54. package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +1 -1
  55. package/dist/types/lib/query-context/assemble-card-query.d.ts +6 -1
  56. package/dist/types/lib/stores/dashboard-store.d.ts +30 -0
  57. package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +15 -0
  58. package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +52 -0
  59. package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +129 -0
  60. package/dist/types/shared/dashboard-authoring/calculations/resolve-dashboard-field-copies.d.ts +46 -0
  61. package/dist/types/shared/dashboard-authoring/calculations/tokens.d.ts +36 -0
  62. package/dist/types/shared/dashboard-authoring/changes/calculation-change.d.ts +399 -0
  63. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +144 -2
  64. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +21 -2
  65. package/dist/types/shared/dashboard-authoring/changes/domain-change.d.ts +143 -266
  66. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +2 -0
  67. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +46 -0
  68. package/dist/types/shared/dashboard-authoring/index.d.ts +7 -1
  69. package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +133 -0
  70. package/dist/types/shared/dashboard-authoring/operations/card-operations.d.ts +71 -0
  71. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +18 -5
  72. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +21 -0
  73. package/dist/types/shared/usage-events/details.d.ts +2 -2
  74. package/dist/types/shared/usage-events/envelope.d.ts +2 -2
  75. package/package.json +1 -1
@@ -2,8 +2,8 @@ import { jsx as v, jsxs as re, Fragment as xt } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import ke, { forwardRef as jn, createElement as In, useLayoutEffect as cs, useState as ro, useRef as vn, useMemo as us, useId as ds, useImperativeHandle as fs } from "react";
4
4
  import { b as ps, c as ee, d as me, g as hs } from "./pickers-DkqmtnTL.js";
5
- import "./validators-C7DFk3QK.js";
6
- import "./matrix-operation-contract-C1SuOHLZ.js";
5
+ import "./validators-ClWHpYql.js";
6
+ import "./matrix-operation-contract--DkNCOzd.js";
7
7
  import "./analytics-base-schemas-DevrgqQb.js";
8
8
  import "../value-format-preferences/index.js";
9
9
  import * as Gt from "react-dom";
@@ -2,7 +2,7 @@ var ft = Object.defineProperty;
2
2
  var ht = (e, t, r) => t in e ? ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var ne = (e, t, r) => ht(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import { z as S } from "zod";
5
- import { e as ct } from "./filter-line-CKNMyNTQ.js";
5
+ import { e as ct } from "./filter-line-BXT6y303.js";
6
6
  var E = Uint8Array, I = Uint16Array, pe = Int32Array, xe = new E([
7
7
  0,
8
8
  0,
@@ -1,5 +1,5 @@
1
1
  import "../value-format-preferences/index.js";
2
- import "./validators-C7DFk3QK.js";
2
+ import "./validators-ClWHpYql.js";
3
3
  const A = {
4
4
  mode: "all"
5
5
  };
@@ -1,4 +1,4 @@
1
- import { c as o } from "./style-sheet-parts-Qv4UcLAo.js";
1
+ import { c as o } from "./style-sheet-parts-Bt9ZNre8.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *
@@ -3654,8 +3654,8 @@ export {
3654
3654
  Ia as b3,
3655
3655
  Ai as b4,
3656
3656
  Va as b5,
3657
- De as b6,
3658
- Mn as b7,
3657
+ Mn as b6,
3658
+ De as b7,
3659
3659
  He as b8,
3660
3660
  va as b9,
3661
3661
  en as ba,
@@ -1,7 +1,6 @@
1
- import { c as v, g as M, a as y, b as N } from "./resolve-dashboard-input-context-DRBS0eRa.js";
2
- import { d as D } from "./validators-C7DFk3QK.js";
3
- import { g as A, a as q, b as w, c as E } from "./filter-reach-copy-B8GGyVuR.js";
4
- import { g as L, m as x } from "./matrix-analytical-definition-myf3D3Qx.js";
1
+ import { c as v, g as M, a as A, b as q, d as N, e as y, h as D, j as w } from "./resolve-dashboard-input-context-CULCE_hM.js";
2
+ import { d as E } from "./validators-ClWHpYql.js";
3
+ import { g as L, m as x } from "./matrix-analytical-definition-CgQgVeeI.js";
5
4
  const O = [
6
5
  {
7
6
  value: "only",
@@ -20,15 +19,15 @@ const O = [
20
19
  DISTINCT: { number: "Count distinct", date: "Count distinct", other: "Count distinct" }
21
20
  };
22
21
  function h(e) {
23
- return D(e) === "aggregate";
22
+ return E(e) === "aggregate";
24
23
  }
25
- function H(e) {
24
+ function X(e) {
26
25
  const t = e == null ? void 0 : e.dataType;
27
26
  if (h(e))
28
27
  return [
29
28
  { value: "calculation", label: "The calculation’s value", hint: "Shows the calculation over the rows the filters keep; it aggregates itself." }
30
29
  ];
31
- const a = y(t), i = a === "number" ? "number" : a === "date" ? "date" : "other", o = [...N(t)];
30
+ const a = y(t), i = a === "number" ? "number" : a === "date" ? "date" : "other", o = [...D(t)];
32
31
  return i === "date" && o.push({ value: "MIN", label: "Min" }, { value: "MAX", label: "Max" }), [
33
32
  ...O,
34
33
  ...o.map(({ value: l }) => {
@@ -41,8 +40,8 @@ function H(e) {
41
40
  })
42
41
  ];
43
42
  }
44
- function z(e) {
45
- return h(e) ? "calculation" : y(e.dataType) === "number" ? E(y(e.dataType)) : "only";
43
+ function H(e) {
44
+ return h(e) ? "calculation" : y(e.dataType) === "number" ? w(y(e.dataType)) : "only";
46
45
  }
47
46
  function b(e) {
48
47
  return e !== "only" && e !== "first" && e !== "list";
@@ -57,7 +56,7 @@ function G() {
57
56
  function V() {
58
57
  return `var_${G()}`;
59
58
  }
60
- function K() {
59
+ function z() {
61
60
  return { id: V(), name: "", mode: "data", sql: "", get: "only", sortDirection: "asc" };
62
61
  }
63
62
  const _ = {
@@ -112,7 +111,7 @@ function T(e) {
112
111
  Object.entries(e).filter(([t]) => _[t] !== "shelf")
113
112
  );
114
113
  }
115
- function Q(e) {
114
+ function K(e) {
116
115
  var g, u, m, d, p;
117
116
  const { query: t, get: a } = e, i = t.config ?? {}, o = (g = i.metricColumns) == null ? void 0 : g[0], l = (u = i.groupByColumns) == null ? void 0 : u[0], n = (m = i.sortByColumns) == null ? void 0 : m[0], r = n ? T(o && n.id === o.id ? o : n) : void 0, s = (d = t.sql) != null && d.trim() ? t.sql : "";
118
117
  return {
@@ -150,8 +149,8 @@ function P(e, t) {
150
149
  for (let r = 2; o.has(l); r += 1) l = `${i}_${r}`;
151
150
  return l;
152
151
  }
153
- function Y(e, t) {
154
- var g, u, m, d, p, C, F, I;
152
+ function Q(e, t) {
153
+ var g, u, m, d, p, f, F, I;
155
154
  const a = P(t, e), i = {
156
155
  id: e.id,
157
156
  name: a,
@@ -169,7 +168,7 @@ function Y(e, t) {
169
168
  },
170
169
  get: e.get === "first" ? { kind: "first" } : { kind: "only" }
171
170
  };
172
- const o = ((m = e.dataSource) == null ? void 0 : m.connectionId) || ((C = (p = (d = e.dataSource) == null ? void 0 : d.selectedEntities) == null ? void 0 : p[0]) == null ? void 0 : C.connectionId), l = {
171
+ const o = ((m = e.dataSource) == null ? void 0 : m.connectionId) || ((f = (p = (d = e.dataSource) == null ? void 0 : d.selectedEntities) == null ? void 0 : p[0]) == null ? void 0 : f.connectionId), l = {
173
172
  ...o ? { connectionId: o } : {},
174
173
  ...e.dataSource ? { dataSource: e.dataSource } : {},
175
174
  ...(F = e.calculatedFields) != null && F.length ? { calculatedFields: e.calculatedFields } : {},
@@ -181,34 +180,34 @@ function Y(e, t) {
181
180
  if (!r)
182
181
  s = b(e.get) ? { kind: "aggregate" } : { kind: e.get };
183
182
  else if (b(e.get)) {
184
- const { comparison: S, ...c } = f(r, e.get);
183
+ const { comparison: S, ...c } = C(r, e.get);
185
184
  n.metricColumns = [
186
185
  ((I = e.comparison) == null ? void 0 : I.mode) === "explicit" && e.comparison.spec.kind !== "target" && B(e) ? { ...c, comparison: e.comparison } : c
187
186
  ], s = { kind: "aggregate" };
188
187
  } else if (h(r))
189
- n.metricColumns = [f(r, "calculation")], s = { kind: "aggregate" };
188
+ n.metricColumns = [C(r, "calculation")], s = { kind: "aggregate" };
190
189
  else if (n.groupByColumns = [U(r)], e.get === "list" ? s = {
191
190
  kind: "list",
192
191
  ...e.listLimit ? { limit: e.listLimit } : {},
193
192
  ...e.listSeparator !== void 0 && e.listSeparator !== ", " ? { separator: e.listSeparator } : {}
194
193
  } : s = { kind: e.get }, e.get !== "only") {
195
194
  const S = e.sortField ?? r;
196
- if (R(S, r)) {
195
+ if (j(S, r)) {
197
196
  const c = n.groupByColumns[0];
198
197
  n.sortByColumns = [{ ...c, role: "sortby", direction: e.sortDirection }];
199
198
  } else {
200
- const c = f(S, e.sortDirection === "desc" ? "MAX" : "MIN");
199
+ const c = C(S, e.sortDirection === "desc" ? "MAX" : "MIN");
201
200
  n.metricColumns = [c], n.sortByColumns = [{ ...c, role: "sortby", direction: e.sortDirection }];
202
201
  }
203
202
  }
204
203
  return { ...i, query: l, get: s };
205
204
  }
206
- function f(e, t) {
205
+ function C(e, t) {
207
206
  const a = A(e, "metrics", [], q("metrics", e));
208
207
  return h(e) || t === "calculation" || !b(t) ? a : {
209
208
  ...a,
210
209
  ...x(a, t, "explicit"),
211
- ...L(a, w(e.name, t))
210
+ ...L(a, N(e.name, t))
212
211
  };
213
212
  }
214
213
  function U(e) {
@@ -217,10 +216,10 @@ function U(e) {
217
216
  const { granularity: a, ...i } = t;
218
217
  return i;
219
218
  }
220
- function R(e, t) {
219
+ function j(e, t) {
221
220
  return e.name === t.name && (e.qualifiedEntityName ?? e.entityName ?? "") === (t.qualifiedEntityName ?? t.entityName ?? "");
222
221
  }
223
- function J(e) {
222
+ function Y(e) {
224
223
  var t, a;
225
224
  if (e.mode === "sql")
226
225
  return e.connectionId ? e.sql.trim() ? void 0 : "Write the SQL that returns the value." : "Choose a connection.";
@@ -229,15 +228,15 @@ function J(e) {
229
228
  }
230
229
  export {
231
230
  _ as S,
232
- H as a,
233
- Q as b,
231
+ X as a,
232
+ K as b,
234
233
  B as c,
235
- z as d,
236
- K as e,
234
+ H as d,
235
+ z as e,
237
236
  P as f,
238
- J as g,
237
+ Y as g,
239
238
  b as i,
240
239
  V as n,
241
240
  h as o,
242
- Y as v
241
+ Q as v
243
242
  };
@@ -1,5 +1,5 @@
1
- import { D as o } from "../chunks/dashboard-mJKPFRbb.js";
2
- import { C as s, E as C } from "../chunks/bookmark-state-BMyB3Tb6.js";
1
+ import { D as o } from "../chunks/dashboard-DG5EIYYB.js";
2
+ import { C as s, E as C } from "../chunks/bookmark-state-CBSTdW6q.js";
3
3
  export {
4
4
  s as CONTROL_CARD_DEFAULT_VALUE,
5
5
  o as Dashboard,