react-semaphor 0.1.569 → 0.1.570

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 (112) hide show
  1. package/dist/appearance/index.js +6 -3
  2. package/dist/appearance-runtime/index.js +1 -1
  3. package/dist/assistant-context/index.js +1 -1
  4. package/dist/brand-studio/index.js +570 -432
  5. package/dist/briefings/index.js +2 -2
  6. package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
  7. package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
  8. package/dist/chunks/assistant-chat-B-Ddyy8b.js +5940 -0
  9. package/dist/chunks/{bookmark-impact-Czg6FGt5.js → bookmark-impact-DCYD-6Fr.js} +1 -1
  10. package/dist/chunks/brand-B4BdpAB_.js +54 -0
  11. package/dist/chunks/{card-filter-builder-BS982X7x.js → card-filter-builder-0VvKmRst.js} +72 -72
  12. package/dist/chunks/{comparison-window-caption-lLTgzOkM.js → comparison-window-caption-PtcDWvkN.js} +2 -2
  13. package/dist/chunks/{dashboard-BiYSbxZv.js → dashboard-DxGIr1vZ.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-Bdj7luOr.js → dashboard-briefing-launcher-B-quOOOQ.js} +183 -182
  15. package/dist/chunks/{dashboard-controls-TViDsnb8.js → dashboard-controls-Caodx80b.js} +285 -280
  16. package/dist/chunks/{dashboard-json-Dg9dQd9U.js → dashboard-json-Ct-AGDHF.js} +3 -3
  17. package/dist/chunks/{dates-BsPrWZIP.js → dates-B9mL8BHE.js} +13 -12
  18. package/dist/chunks/edit-Bpdh_P_a.js +226 -0
  19. package/dist/chunks/{edit-dashboard-visual-C6hoIeEJ.js → edit-dashboard-visual-DeDTuYB5.js} +2256 -2268
  20. package/dist/chunks/{filter-reach-copy-hcQ4os0u.js → filter-reach-copy-BSY33ro5.js} +1425 -1282
  21. package/dist/chunks/{filter-value-text-CVxEEDVl.js → filter-value-text-DvvSNlho.js} +1 -1
  22. package/dist/chunks/index-BVKzKl5d.js +90 -0
  23. package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
  24. package/dist/chunks/{index-G4q89J6O.js → index-y3HUzRNk.js} +61 -60
  25. package/dist/chunks/{layout-grid-BIcoFfdS.js → layout-grid-8rR-LPTk.js} +1 -1
  26. package/dist/chunks/{list-filter-C6tYkHyv.js → list-filter-C1-uTgjR.js} +1 -1
  27. package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
  28. package/dist/chunks/{palette-NjHOE_6B.js → palette-a5FCZKFI.js} +1 -1
  29. package/dist/chunks/{_commonjsHelpers-Bid1ZNYj.js → pickers-DkqmtnTL.js} +179 -166
  30. package/dist/chunks/{pivot-result-contract-expectations-DkmueDTW.js → pivot-result-contract-expectations-C-HnUKYe.js} +1 -1
  31. package/dist/chunks/{report-preferences-dialog-Xc8_GFju.js → report-preferences-dialog-Yvhv3WX2.js} +79 -79
  32. package/dist/chunks/{resolve-dashboard-input-context-KqvcLcTM.js → resolve-dashboard-input-context-Lkbwycwe.js} +5179 -5391
  33. package/dist/chunks/resolver-DG_tfEpt.js +156 -0
  34. package/dist/chunks/{save-C6VmEJTA.js → save-D985VvYp.js} +1 -1
  35. package/dist/chunks/{saved-dashboard-context-BeXXyoD4.js → saved-dashboard-context-DC_TEd6y.js} +3 -3
  36. package/dist/chunks/schema-C9NPiIru.js +2568 -0
  37. package/dist/chunks/{semaphor-ready-indicator-BNkaANsG.js → semaphor-ready-indicator-ByFvqHEO.js} +33935 -34031
  38. package/dist/chunks/{shelf-drop-preview-context-C_issPBA.js → shelf-drop-preview-context-CjoVaK6J.js} +50 -50
  39. package/dist/chunks/{stored-dashboard-B6_StAty.js → stored-dashboard-C0hekXiI.js} +189 -188
  40. package/dist/chunks/{code-editor-BsxHzm9u.js → style-sheet-parts-C7qGZuH1.js} +2400 -2036
  41. package/dist/chunks/{table-export-sheet-BWP2joD1.js → table-export-sheet-CP8zSOhj.js} +1 -1
  42. package/dist/chunks/{temporal-input-presentation-scSWQXAB.js → temporal-input-presentation-CqbJjIuu.js} +14 -14
  43. package/dist/chunks/{upload-BRW4Mwrd.js → upload-CiGNKJ_0.js} +1 -1
  44. package/dist/chunks/{variable-draft-BQ3OMjvy.js → variable-draft-9-huI1h4.js} +2 -2
  45. package/dist/dashboard/index.js +1 -1
  46. package/dist/dashboard-authoring/index.js +1911 -1859
  47. package/dist/format-utils/index.js +8 -8
  48. package/dist/index.js +332 -335
  49. package/dist/layouts/index.js +1 -1
  50. package/dist/style.css +1 -1
  51. package/dist/surfboard/index.js +1 -1
  52. package/dist/types/appearance/index.d.ts +1 -0
  53. package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
  54. package/dist/types/brand-studio/index.d.ts +1 -1
  55. package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
  56. package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
  57. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
  58. package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
  59. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
  60. package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
  61. package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
  62. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
  63. package/dist/types/lib/appearance/aliases.d.ts +42 -0
  64. package/dist/types/lib/appearance/compiler.d.ts +6 -0
  65. package/dist/types/lib/appearance/defaults.d.ts +6 -0
  66. package/dist/types/lib/appearance/index.d.ts +2 -0
  67. package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
  68. package/dist/types/lib/appearance/resolver.d.ts +2 -2
  69. package/dist/types/lib/appearance/types.d.ts +38 -1
  70. package/dist/types/lib/charts/types.d.ts +6 -2
  71. package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
  72. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
  73. package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
  74. package/dist/types/lib/download-pdf.d.ts +0 -1
  75. package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
  76. package/dist/types/lib/stores/dashboard-store.d.ts +15 -6
  77. package/dist/types/lib/stores/editor-store.d.ts +0 -1
  78. package/dist/types/lib/stores/table-actions.d.ts +0 -1
  79. package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
  80. package/dist/types/lib/types/common-types.d.ts +3 -2
  81. package/dist/types/lib/types/summary-types.d.ts +0 -5
  82. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
  83. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
  84. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +68 -68
  85. package/dist/types/shared/assistant-protocol/context.d.ts +18 -18
  86. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +212 -42
  87. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
  88. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +9 -0
  89. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +30 -30
  90. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +4 -4
  91. package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
  92. package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
  93. package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
  94. package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
  95. package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
  96. package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +19 -0
  97. package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
  98. package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
  99. package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
  100. package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
  101. package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
  102. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  103. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
  104. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +20 -0
  105. package/dist/types/shared/format-utils/matrix-continuation.d.ts +7 -7
  106. package/package.json +6 -3
  107. package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
  108. package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
  109. package/dist/chunks/assistant-chat-Dzf2Mbph.js +0 -8847
  110. package/dist/chunks/color-CJvdlFM_.js +0 -2162
  111. package/dist/chunks/index-CLIro-EG.js +0 -425
  112. package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
@@ -0,0 +1,156 @@
1
+ import { S as p, A as h, b as g } from "./schema-C9NPiIru.js";
2
+ const P = [
3
+ { alias: ["components", "dashboard", "padding"], canonical: ["tokens", "spacing", "dashboardPadding"] },
4
+ { alias: ["components", "card", "borderRadius"], canonical: ["tokens", "radius", "card"] },
5
+ { alias: ["components", "card", "shadow"], canonical: ["tokens", "shadow", "card"] },
6
+ { alias: ["components", "card", "padding"], canonical: ["tokens", "spacing", "cardPadding"] },
7
+ // Pagination before interactive: when a layer sets both, the controls' own value wins.
8
+ { alias: ["components", "pagination", "borderRadius"], canonical: ["tokens", "radius", "control"] },
9
+ { alias: ["components", "interactive", "borderRadius"], canonical: ["tokens", "radius", "control"] }
10
+ ], i = {
11
+ page: ["tokens", "color", "background"],
12
+ canvas: ["components", "dashboard", "background"]
13
+ };
14
+ function E(n) {
15
+ if (!(n != null && n.schemes)) return n;
16
+ const a = Object.fromEntries(
17
+ Object.entries(n.schemes).map(([r, o]) => [
18
+ r,
19
+ o && R(o, r)
20
+ ])
21
+ );
22
+ return { ...n, schemes: a };
23
+ }
24
+ function R(n, a) {
25
+ let r = n;
26
+ for (const { alias: e, canonical: s } of P) {
27
+ const l = d(r, e);
28
+ l !== void 0 && (r = u(m(r, e), s, l));
29
+ }
30
+ const o = d(r, i.page), t = d(p.schemes[a], i.page);
31
+ return o !== void 0 && o !== t && d(r, i.canvas) === void 0 && (r = u(r, i.canvas, "background")), r;
32
+ }
33
+ function d(n, a) {
34
+ let r = n;
35
+ for (const o of a) {
36
+ if (!A(r)) return;
37
+ r = r[o];
38
+ }
39
+ return r;
40
+ }
41
+ function u(n, a, r) {
42
+ const [o, ...t] = a;
43
+ if (t.length === 0) return { ...n, [o]: r };
44
+ const e = A(n[o]) ? n[o] : {};
45
+ return { ...n, [o]: u(e, t, r) };
46
+ }
47
+ function m(n, a) {
48
+ const [r, ...o] = a;
49
+ if (!(r in n)) return n;
50
+ const { [r]: t, ...e } = n;
51
+ if (o.length === 0) return e;
52
+ if (!A(t)) return n;
53
+ const s = m(t, o);
54
+ return Object.keys(s).length === 0 ? e : { ...e, [r]: s };
55
+ }
56
+ function A(n) {
57
+ return typeof n == "object" && n !== null && !Array.isArray(n);
58
+ }
59
+ const b = {
60
+ spacing: ["tokens", "spacing", "gridGap"],
61
+ canvasPadding: ["tokens", "spacing", "dashboardPadding"],
62
+ canvas: ["components", "dashboard", "background"],
63
+ cardBorder: ["components", "card", "borderWidth"],
64
+ cardShadow: ["tokens", "shadow", "card"],
65
+ cardCorners: ["tokens", "radius", "card"],
66
+ controlCorners: ["tokens", "radius", "control"],
67
+ chartColors: ["components", "chart", "palette"],
68
+ barCorners: ["components", "chart", "barRadius"]
69
+ }, y = Object.keys(b);
70
+ function C(n, a, r) {
71
+ var o, t;
72
+ switch (a) {
73
+ case "canvas":
74
+ return (o = n.canvas) == null ? void 0 : o[r];
75
+ case "chartColors":
76
+ return (t = n.chartColors) == null ? void 0 : t[r];
77
+ case "cardBorder":
78
+ return n.cardBorder === void 0 ? void 0 : n.cardBorder === "on" ? 1 : 0;
79
+ default:
80
+ return n[a];
81
+ }
82
+ }
83
+ function O(n) {
84
+ if (!n) return null;
85
+ const a = (r) => {
86
+ let o = {};
87
+ for (const t of y) {
88
+ const e = C(n, t, r);
89
+ e !== void 0 && (o = u(o, b[t], e));
90
+ }
91
+ return o;
92
+ };
93
+ return { version: h, schemes: { light: a("light"), dark: a("dark") } };
94
+ }
95
+ function _(n, a = p) {
96
+ return g(n), k(a, n);
97
+ }
98
+ function j(n, a) {
99
+ return g(a), k(n, a);
100
+ }
101
+ function k(n, a) {
102
+ return S(n, a);
103
+ }
104
+ function S(n, a) {
105
+ if (a === void 0) return c(n);
106
+ if (Array.isArray(n) || Array.isArray(a))
107
+ return c(a);
108
+ if (f(n) && f(a)) {
109
+ const r = c(n);
110
+ for (const [o, t] of Object.entries(a)) {
111
+ if (o === "version") {
112
+ r[o] = t;
113
+ continue;
114
+ }
115
+ r[o] = o in r ? S(r[o], t) : c(t);
116
+ }
117
+ return r;
118
+ }
119
+ return c(a);
120
+ }
121
+ function c(n) {
122
+ return Array.isArray(n) ? n.map((a) => c(a)) : f(n) ? Object.fromEntries(
123
+ Object.entries(n).map(([a, r]) => [a, c(r)])
124
+ ) : n;
125
+ }
126
+ function f(n) {
127
+ return typeof n == "object" && n !== null && !Array.isArray(n);
128
+ }
129
+ function D(n = {}) {
130
+ const a = n.defaults ?? p;
131
+ let r = _(
132
+ { version: h },
133
+ a
134
+ );
135
+ for (const o of [
136
+ n.organizationAppearance,
137
+ O(n.dashboardStyle),
138
+ n.tokenAppearance,
139
+ n.reactAppearance
140
+ ])
141
+ o && (r = j(r, E(o)));
142
+ return r;
143
+ }
144
+ export {
145
+ P as A,
146
+ y as D,
147
+ b as a,
148
+ D as b,
149
+ _ as c,
150
+ m as d,
151
+ j as m,
152
+ E as n,
153
+ d as r,
154
+ C as s,
155
+ u as w
156
+ };
@@ -1,4 +1,4 @@
1
- import { c as a } from "./code-editor-BsxHzm9u.js";
1
+ import { c as a } from "./style-sheet-parts-C7qGZuH1.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *
@@ -2,10 +2,10 @@ var Z = Object.defineProperty;
2
2
  var Q = (e, t, a) => t in e ? Z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var F = (e, t, a) => Q(e, typeof t != "symbol" ? t + "" : t, a);
4
4
  import { A as S, D as U, F as K, G as W } from "./bookmark-state-CflS88gq.js";
5
- import { s as X, i as Y, n as ee, f as te, j as ae, l as re, k as ne, m as se, o as oe, p as j, q as ie, t as de, u as le } from "./resolve-dashboard-input-context-KqvcLcTM.js";
6
- import { c as ce, e as L, d as ue, g as me, p as q, j as fe, k as he, r as _, m as O, n as pe, o as be, q as ge } from "./stored-dashboard-B6_StAty.js";
5
+ import { s as X, i as Y, n as ee, f as te, j as ae, l as re, k as ne, m as se, o as oe, p as j, q as ie, t as de, u as le } from "./resolve-dashboard-input-context-Lkbwycwe.js";
6
+ import { c as ce, e as L, d as ue, g as me, p as q, j as fe, k as he, r as _, m as O, n as pe, o as be, q as ge } from "./stored-dashboard-C0hekXiI.js";
7
7
  import { f as g, A as P, c as Ce, d as Ie, e as A } from "./context-R31TSL5V.js";
8
- import { a as ye, T as ve, P as xe, o as I, d as B, b as D } from "./filter-value-text-CVxEEDVl.js";
8
+ import { a as ye, T as ve, P as xe, o as I, d as B, b as D } from "./filter-value-text-DvvSNlho.js";
9
9
  import { r as Ve, a7 as Se } from "./validators-B8fpdinG.js";
10
10
  import { b as $e } from "./metric-comparison-n9NsIa-2.js";
11
11
  function ke(e) {