react-semaphor 0.1.569 → 0.1.571

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-SkCraw2C.js +5940 -0
  9. package/dist/chunks/{bookmark-impact-Czg6FGt5.js → bookmark-impact-DCYD-6Fr.js} +1 -1
  10. package/dist/chunks/brand-BoUV0iHF.js +54 -0
  11. package/dist/chunks/{card-filter-builder-BS982X7x.js → card-filter-builder-D-aSYpyr.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-B_w_ekUz.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-Bdj7luOr.js → dashboard-briefing-launcher-_g1m2tJ3.js} +183 -182
  15. package/dist/chunks/{dashboard-controls-TViDsnb8.js → dashboard-controls-CY0gbcCt.js} +285 -280
  16. package/dist/chunks/{dashboard-json-Dg9dQd9U.js → dashboard-json-DsM79yem.js} +3 -3
  17. package/dist/chunks/{dates-BsPrWZIP.js → dates-RSEzJ9N7.js} +13 -12
  18. package/dist/chunks/edit-9df1zOWe.js +226 -0
  19. package/dist/chunks/{edit-dashboard-visual-C6hoIeEJ.js → edit-dashboard-visual-cX0FM-4i.js} +2256 -2268
  20. package/dist/chunks/{filter-reach-copy-hcQ4os0u.js → filter-reach-copy-thzt25Rc.js} +1303 -1226
  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-B_GXs91t.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-CBQamwQY.js} +33931 -34031
  38. package/dist/chunks/{shelf-drop-preview-context-C_issPBA.js → shelf-drop-preview-context-Bkjf0XXw.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-DvglU8yj.js} +2 -2
  45. package/dist/dashboard/index.js +1 -1
  46. package/dist/dashboard-authoring/index.js +2064 -1946
  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 -52
  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 +8 -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 +20 -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 +19 -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
@@ -2,7 +2,7 @@ import { j as p, r as y } from "./validators-B8fpdinG.js";
2
2
  import { a as I } from "./metric-comparison-n9NsIa-2.js";
3
3
  import "../value-format-preferences/index.js";
4
4
  import { c as N } from "./raw-temporal-value-DdT0s47W.js";
5
- import { a9 as k, a8 as T } from "./temporal-input-presentation-scSWQXAB.js";
5
+ import { a9 as k, a8 as T } from "./temporal-input-presentation-CqbJjIuu.js";
6
6
  const d = { kind: "plain" }, g = { kind: "temporal" }, D = {
7
7
  "=": "=",
8
8
  "!=": "!=",
@@ -0,0 +1,90 @@
1
+ import { S as A } from "./schema-C9NPiIru.js";
2
+ import { r as h, d as u, n as b, A as k } from "./resolver-DG_tfEpt.js";
3
+ const E = [
4
+ { path: ["tokens", "spacing", "gridGap"], value: { light: 12, dark: 12 } },
5
+ { path: ["tokens", "spacing", "dashboardPadding"], alias: ["components", "dashboard", "padding"], value: { light: 16, dark: 16 } },
6
+ { path: ["tokens", "spacing", "cardPadding"], alias: ["components", "card", "padding"], value: { light: 16, dark: 16 } },
7
+ { path: ["tokens", "radius", "card"], alias: ["components", "card", "borderRadius"], value: { light: 5, dark: 5 } },
8
+ {
9
+ path: ["components", "chart", "palette"],
10
+ value: {
11
+ light: ["#3b82f6", "#10b981", "#f59e0b", "#ef4444", "#8b5cf6", "#06b6d4", "#84cc16", "#f97316"],
12
+ dark: ["#3b82f6", "#10b981", "#f59e0b", "#ef4444", "#8b5cf6", "#06b6d4", "#84cc16", "#f97316"]
13
+ }
14
+ }
15
+ ], p = ["pivotTable", "aggregateTable"], S = [
16
+ ["tokens", "shadow", "card"],
17
+ ["components", "card", "shadow"]
18
+ ];
19
+ function N(e) {
20
+ const { schemes: t, changes: r } = v(e), i = {};
21
+ for (const c of ["light", "dark"]) {
22
+ const n = t[c];
23
+ if (!n) continue;
24
+ const o = A.schemes[c], { value: d, removed: s } = g(n, o, []);
25
+ for (const f of s) r.push(`${c}.${f}: equal to the default, removed`);
26
+ d && Object.keys(d).length > 0 && (i[c] = d);
27
+ }
28
+ const a = Object.keys(i).length > 0;
29
+ return !a && e.mode === void 0 ? { spec: null, changes: r } : {
30
+ spec: { version: e.version, ...e.mode !== void 0 ? { mode: e.mode } : {}, ...a ? { schemes: i } : {} },
31
+ changes: r
32
+ };
33
+ }
34
+ function R(e, t) {
35
+ return e ? v(e).schemes[t] : void 0;
36
+ }
37
+ function v(e) {
38
+ var a, c;
39
+ const t = [], r = {}, i = y(e);
40
+ for (const n of ["light", "dark"]) {
41
+ let o = (a = e.schemes) == null ? void 0 : a[n];
42
+ if (!o) continue;
43
+ for (const s of i ? S : [])
44
+ h(o, s) !== void 0 && (o = u(o, s), t.push(`${n}.${s.join(".")}: never rendered, removed`));
45
+ for (const s of i ? E : []) {
46
+ const f = h(o, s.path);
47
+ f === void 0 || !l(f, s.value[n]) || s.alias && h(o, s.alias) !== void 0 || (o = u(o, s.path), t.push(`${n}.${s.path.join(".")}: hidden legacy default removed`));
48
+ }
49
+ const d = (c = b({ version: e.version, schemes: { [n]: o } }).schemes) == null ? void 0 : c[n];
50
+ l(d, o) || t.push(`${n}: component aliases folded onto canonical paths`), o = d;
51
+ for (const s of p)
52
+ h(o, ["components", s]) !== void 0 && (o = u(o, ["components", s]), t.push(`${n}.components.${s}: retired card type removed`));
53
+ r[n] = o;
54
+ }
55
+ return { schemes: r, changes: t };
56
+ }
57
+ function y(e) {
58
+ return ["light", "dark"].some((t) => {
59
+ var i;
60
+ const r = (i = e.schemes) == null ? void 0 : i[t];
61
+ return r ? k.some(({ alias: a }) => h(r, a) !== void 0) || p.some((a) => h(r, ["components", a]) !== void 0) : !1;
62
+ });
63
+ }
64
+ function g(e, t, r) {
65
+ const i = [], a = {};
66
+ for (const [c, n] of Object.entries(e)) {
67
+ const o = m(t) ? t[c] : void 0;
68
+ if (m(n) && !Array.isArray(n)) {
69
+ const d = g(n, o, [...r, c]);
70
+ i.push(...d.removed), d.value && (a[c] = d.value);
71
+ continue;
72
+ }
73
+ if (o !== void 0 && l(n, o)) {
74
+ i.push([...r, c].join("."));
75
+ continue;
76
+ }
77
+ a[c] = n;
78
+ }
79
+ return { value: Object.keys(a).length > 0 ? a : void 0, removed: i };
80
+ }
81
+ function l(e, t) {
82
+ return JSON.stringify(e) === JSON.stringify(t);
83
+ }
84
+ function m(e) {
85
+ return typeof e == "object" && e !== null && !Array.isArray(e);
86
+ }
87
+ export {
88
+ N as n,
89
+ R as r
90
+ };