react-semaphor 0.1.537 → 0.1.539

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 (174) hide show
  1. package/dist/analytics-protocol/index.js +352 -341
  2. package/dist/assistant-context/index.js +10 -0
  3. package/dist/assistant-protocol/index.js +104 -0
  4. package/dist/brand-studio/index.js +35 -31
  5. package/dist/briefings/index.js +46 -45
  6. package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +28 -0
  7. package/dist/chunks/add-to-dashboard-CxtTfISD.js +56 -0
  8. package/dist/chunks/aggregate-table-row-presentation-BjK9YfMI.js +979 -0
  9. package/dist/chunks/analytics-base-schemas-BFAoRlkU.js +472 -0
  10. package/dist/chunks/apply-dashboard-operations-C-iahGka.js +402 -0
  11. package/dist/chunks/assistant-chat-DgiSuFT4.js +8083 -0
  12. package/dist/chunks/availability-Bp5Gfu1I.js +44 -0
  13. package/dist/chunks/{bookmark-state-B-I9BDD0.js → bookmark-state-k7y5SNGf.js} +9 -9
  14. package/dist/chunks/{braces-8TRlDwDw.js → braces-o9UiRQes.js} +1 -1
  15. package/dist/chunks/calculated-field-identity-DcBS2NPP.js +2161 -0
  16. package/dist/chunks/calendar-day-equality-Bpl15IBo.js +487 -0
  17. package/dist/chunks/class-utils-Df1OVOT1.js +2315 -0
  18. package/dist/chunks/{field-dependencies-CpRUwr9J.js → common-types-CUf03Htv.js} +65 -58
  19. package/dist/chunks/context-HD9usB1P.js +349 -0
  20. package/dist/chunks/conversation-sQiWYUOb.js +16 -0
  21. package/dist/chunks/csv-utils-GUfKyT1J.js +56 -0
  22. package/dist/chunks/custom-visual-inputs-BrUOIwln.js +3288 -0
  23. package/dist/chunks/{dashboard-briefing-launcher-A2uVpHCp.js → dashboard-briefing-launcher-Bl3gCeBR.js} +580 -556
  24. package/dist/chunks/{dashboard-controls-DxTuVis_.js → dashboard-controls-0EX0HiJt.js} +683 -686
  25. package/dist/chunks/{common-types-g7yS12Cg.js → dashboard-filter-value-compatibility-D95O4nd7.js} +18 -24
  26. package/dist/chunks/dashboard-json-6X_2BDiL.js +69 -0
  27. package/dist/chunks/{dashboard-BPJo-Fnd.js → dashboard-y5BwcvzT.js} +1 -1
  28. package/dist/chunks/document-dashboard-inputs-BrYYlRVo.js +10678 -0
  29. package/dist/chunks/document-sheet-utils-C1eEldxs.js +1076 -0
  30. package/dist/chunks/{edit-dashboard-visual-ByV0OwSp.js → edit-dashboard-visual-Bzchfgga.js} +4744 -4746
  31. package/dist/chunks/editor-draft-sync-BN5qYHPF.js +15 -0
  32. package/dist/chunks/filter-value-text-BhWugPWE.js +163 -0
  33. package/dist/chunks/index-CqMiAkay.js +3164 -0
  34. package/dist/chunks/index-CuHybtft.js +51 -0
  35. package/dist/chunks/layout-grid-Bgzth8vd.js +16 -0
  36. package/dist/chunks/{matrix-analytical-definition-CgBTD6H8.js → matrix-analytical-definition-bcprSe4u.js} +1 -1
  37. package/dist/chunks/{matrix-card-CAdizkUl.js → matrix-card-CJn1hB5V.js} +13 -12
  38. package/dist/chunks/matrix-definition-DQDI2okF.js +206 -0
  39. package/dist/chunks/{matrix-formatter-DJCk8Znf.js → matrix-formatter-DQ8avoIQ.js} +648 -457
  40. package/dist/chunks/matrix-member-presentation-BNPSDKBG.js +105 -0
  41. package/dist/chunks/{matrix-operation-contract-BKupLHXL.js → matrix-operation-contract-B8PBF1Gd.js} +134 -133
  42. package/dist/chunks/{metric-comparison-BKHyvnAy.js → metric-comparison-CojWeLqx.js} +1 -1
  43. package/dist/chunks/{palette-Cp1hqZtm.js → palette-D10o_yYX.js} +1 -1
  44. package/dist/chunks/pivot-header-presentation-MkcKnjn3.js +42 -0
  45. package/dist/chunks/{pivot-result-identity-Bs4tLtLo.js → pivot-result-identity-D6hhcRXi.js} +1 -1
  46. package/dist/chunks/pivot-result-lifecycle-8qCDmpKc.js +804 -0
  47. package/dist/chunks/raw-temporal-D61lr48Y.js +1464 -0
  48. package/dist/chunks/{raw-temporal-contract-mLFS-9wk.js → raw-temporal-contract-C51YG48G.js} +1 -1
  49. package/dist/chunks/report-preferences-dialog-CWhSbc5_.js +1808 -0
  50. package/dist/chunks/{report-runtime-context-CG_I0PPW.js → report-runtime-context-B984Nq1E.js} +8 -7
  51. package/dist/chunks/save-CfJpQQ68.js +21 -0
  52. package/dist/chunks/saved-dashboard-context-Dqve2jlB.js +566 -0
  53. package/dist/chunks/{selection-reducer-CiDEtmAq.js → selection-reducer-vKIb_jS6.js} +2 -2
  54. package/dist/chunks/{semaphor-ready-indicator-CHu1L-lo.js → semaphor-ready-indicator-ldcwmLoY.js} +65803 -62954
  55. package/dist/chunks/{shelf-drop-preview-context-i-H6DFyU.js → shelf-drop-preview-context-BWxunXTq.js} +199 -196
  56. package/dist/chunks/{source-entity-resolution-C-oNyYMp.js → source-entity-resolution-CVA1a85c.js} +8 -8
  57. package/dist/chunks/switch-CvItuC1Q.js +8199 -0
  58. package/dist/chunks/{temporal-bucket-DlFuhCnT.js → temporal-bucket-D8JF7zKz.js} +86 -71
  59. package/dist/chunks/{temporal-bucket-contract-D2OuaVZ7.js → temporal-bucket-contract-DaOajRC7.js} +1 -1
  60. package/dist/chunks/{token-types-DtSJOUjh.js → token-types-bxUxXDX2.js} +1 -1
  61. package/dist/chunks/{upload-CAIpsti1.js → upload-BFX7apKV.js} +1 -1
  62. package/dist/chunks/{use-create-flow-overlay-state-Bj63WwHc.js → use-create-flow-overlay-state-RHgzVfcz.js} +331 -339
  63. package/dist/chunks/{validators-DMSH81OM.js → validators-Ej1DdCXa.js} +1050 -1510
  64. package/dist/chunks/visual-choice-JiJ-_3bi.js +204 -0
  65. package/dist/chunks/x-4f5U2XwU.js +100 -0
  66. package/dist/chunks/{zoned-wall-clock-1qlWCE20.js → zoned-wall-clock-MulfA26h.js} +2 -2
  67. package/dist/dashboard/index.js +2 -2
  68. package/dist/dashboard-authoring/index.js +823 -661
  69. package/dist/data-app-sdk/index.js +32 -30
  70. package/dist/data-app-sdk-adapters/index.js +23 -22
  71. package/dist/data-app-sdk-validation/index.js +23 -22
  72. package/dist/format-utils/index.js +173 -168
  73. package/dist/index.js +267 -258
  74. package/dist/layouts/index.js +236 -24
  75. package/dist/report-runtime-context/index.js +2 -2
  76. package/dist/style.css +1 -1
  77. package/dist/surfboard/index.js +2 -2
  78. package/dist/types/assistant-context.d.ts +2 -0
  79. package/dist/types/assistant-protocol.d.ts +2 -0
  80. package/dist/types/components/assistant/assistant-entry-points.d.ts +18 -0
  81. package/dist/types/components/assistant/assistant-provider.d.ts +19 -0
  82. package/dist/types/components/assistant/assistant-store.d.ts +52 -0
  83. package/dist/types/components/assistant/use-assistant.d.ts +38 -0
  84. package/dist/types/components/index.d.ts +5 -1
  85. package/dist/types/components/surfboard/filter/types.d.ts +5 -2
  86. package/dist/types/index.js +50 -51
  87. package/dist/types/lib/api/invalidate-token.d.ts +7 -0
  88. package/dist/types/lib/charts/cartesian-fields.d.ts +64 -0
  89. package/dist/types/lib/charts/types.d.ts +7 -0
  90. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +14 -2
  91. package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +5 -6
  92. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +8 -3
  93. package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +11 -6
  94. package/dist/types/lib/dashboard-pagination/dashboard-card-pagination.d.ts +7 -0
  95. package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +79 -0
  96. package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +3 -2
  97. package/dist/types/lib/document/document-table-data-policy.d.ts +15 -0
  98. package/dist/types/lib/filter-values/filter-mode.d.ts +22 -0
  99. package/dist/types/lib/hooks/use-calendar-context.d.ts +5 -0
  100. package/dist/types/lib/hooks/use-filter-option-browse.d.ts +5 -0
  101. package/dist/types/lib/hooks/use-text-filter.d.ts +9 -0
  102. package/dist/types/lib/print/print-inputs.d.ts +4 -2
  103. package/dist/types/lib/query-context/build-card-query-context.d.ts +12 -4
  104. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +93 -0
  105. package/dist/types/lib/query-context/card-server-request.d.ts +72 -0
  106. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +7 -0
  107. package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +56 -0
  108. package/dist/types/lib/query-context/document-section-card-query.d.ts +45 -0
  109. package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +17 -2
  110. package/dist/types/lib/stores/dashboard-store.d.ts +34 -11
  111. package/dist/types/lib/stores/editor-store.d.ts +4 -2
  112. package/dist/types/lib/types/token-types.d.ts +11 -0
  113. package/dist/types/lib/utils/card-type-change.d.ts +30 -0
  114. package/dist/types/lib/utils/comparison-window-caption.d.ts +12 -0
  115. package/dist/types/lib/utils/filter-default-value-utils.d.ts +13 -2
  116. package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +74 -0
  117. package/dist/types/shared/analytics-protocol/contracts.d.ts +3 -0
  118. package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +43 -0
  119. package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
  120. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +1 -1
  121. package/dist/types/shared/analytics-protocol/visual-choice.d.ts +75 -0
  122. package/dist/types/shared/assistant-context/index.d.ts +9 -0
  123. package/dist/types/shared/assistant-context/project-context.d.ts +55 -0
  124. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +130 -0
  125. package/dist/types/shared/assistant-protocol/add-to-dashboard.d.ts +17 -0
  126. package/dist/types/shared/assistant-protocol/artifact.d.ts +63 -0
  127. package/dist/types/shared/assistant-protocol/availability.d.ts +39 -0
  128. package/dist/types/shared/assistant-protocol/context.d.ts +952 -0
  129. package/dist/types/shared/assistant-protocol/conversation.d.ts +38 -0
  130. package/dist/types/shared/assistant-protocol/index.d.ts +16 -0
  131. package/dist/types/shared/assistant-protocol/limits.d.ts +53 -0
  132. package/dist/types/shared/assistant-protocol/parts.d.ts +140 -0
  133. package/dist/types/shared/assistant-protocol/request.d.ts +77 -0
  134. package/dist/types/shared/assistant-protocol/sources.d.ts +27 -0
  135. package/dist/types/shared/assistant-protocol/token-config.d.ts +32 -0
  136. package/dist/types/shared/assistant-protocol/transcript.d.ts +40 -0
  137. package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +112 -0
  138. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +1794 -0
  139. package/dist/types/shared/dashboard-authoring/index.d.ts +5 -0
  140. package/dist/types/shared/dashboard-authoring/new-card.d.ts +10 -0
  141. package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +40 -0
  142. package/dist/types/shared/dashboard-authoring/resolved-primary-date-field-validation.d.ts +16 -0
  143. package/dist/types/shared/format-utils/filter-detail.d.ts +70 -0
  144. package/dist/types/shared/format-utils/filter-value-text.d.ts +15 -0
  145. package/dist/types/shared/format-utils/index.d.ts +3 -0
  146. package/dist/types/shared/format-utils/raw-temporal.d.ts +7 -0
  147. package/dist/types/shared/format-utils/temporal-bucket.d.ts +7 -0
  148. package/dist/types/shared/layouts/frame-layouts.d.ts +23 -0
  149. package/dist/types/shared/layouts/index.d.ts +1 -0
  150. package/package.json +12 -2
  151. package/dist/chunks/calculated-field-identity-BptYhyOP.js +0 -1326
  152. package/dist/chunks/calendar-day-equality-BRjN1S9h.js +0 -383
  153. package/dist/chunks/card-config-utils-BOM1dxCk.js +0 -1150
  154. package/dist/chunks/constants-DNWVy8Y3.js +0 -9
  155. package/dist/chunks/dashboard-json-B1dEQu98.js +0 -65
  156. package/dist/chunks/field-aggregations-CoLzYHeL.js +0 -1229
  157. package/dist/chunks/index-DTcTAGGM.js +0 -4101
  158. package/dist/chunks/matrix-continuation-C4sRcjZU.js +0 -72
  159. package/dist/chunks/matrix-control-sources-DTqcA2_L.js +0 -636
  160. package/dist/chunks/matrix-definition-D9iShKZI.js +0 -87
  161. package/dist/chunks/matrix-member-presentation-Ct8GuxHt.js +0 -209
  162. package/dist/chunks/numeric-presentation-CWu3gunq.js +0 -537
  163. package/dist/chunks/pivot-header-presentation-CHs2GFrM.js +0 -753
  164. package/dist/chunks/pivot-result-lifecycle-DQz_gjGu.js +0 -789
  165. package/dist/chunks/raw-temporal-iMXRK-Qz.js +0 -930
  166. package/dist/chunks/report-preferences-dialog-DXPjteCU.js +0 -1623
  167. package/dist/chunks/save-kO6cIaob.js +0 -34
  168. package/dist/chunks/semantic-format-DiqYeKwU.js +0 -192
  169. package/dist/chunks/switch-DO8a0EfJ.js +0 -25004
  170. package/dist/chunks/temporal-input-presentation-BD7YNUzu.js +0 -195
  171. package/dist/chunks/x-CXDkqdur.js +0 -149
  172. package/dist/types/lib/class-utils.d.ts +0 -2
  173. package/dist/types/lib/document/document-input-runtime.d.ts +0 -26
  174. package/dist/types/lib/utils.d.ts +0 -51
@@ -0,0 +1,10 @@
1
+ import { A as e, a as t, b as r, c as o, p as d, d as n, e as p } from "../chunks/saved-dashboard-context-Dqve2jlB.js";
2
+ export {
3
+ e as AssistantContextSourceError,
4
+ t as assistantCardReplayFields,
5
+ r as buildSavedCardRequest,
6
+ o as cardReplayOf,
7
+ d as projectAssistantContext,
8
+ n as projectSavedDashboardContext,
9
+ p as projectSavedDashboardTurn
10
+ };
@@ -0,0 +1,104 @@
1
+ import { z as e } from "zod";
2
+ import { s as x } from "../chunks/analytics-base-schemas-BFAoRlkU.js";
3
+ import { a as T, A as s, b as f } from "../chunks/context-HD9usB1P.js";
4
+ import { d as N, h as R, k as v, c as k, j as E, e as q, i as L, g as U, f as B, r as M } from "../chunks/context-HD9usB1P.js";
5
+ import { p as $, a as j, r as D } from "../chunks/availability-Bp5Gfu1I.js";
6
+ import { A as F, a as J, D as V, i as w } from "../chunks/conversation-sQiWYUOb.js";
7
+ import { A as Y, b as z, c as G, s as H, a as K, t as Q, v as W } from "../chunks/add-to-dashboard-CxtTfISD.js";
8
+ const p = [
9
+ "matrix",
10
+ "no_query",
11
+ "document_section",
12
+ "blocked",
13
+ "pending"
14
+ ], C = e.object({
15
+ turnId: e.string().min(1).max(s.idChars),
16
+ conversationId: e.string().min(1).max(s.idChars).optional(),
17
+ message: e.string().min(1).max(s.messageChars),
18
+ context: T,
19
+ addedSources: e.array(x).max(s.addedSources),
20
+ selectedCardRequest: e.object({
21
+ cardId: e.string().min(1).max(s.idChars),
22
+ connectionId: e.string().min(1).max(s.idChars),
23
+ payload: e.record(e.string(), e.unknown())
24
+ }).strict().optional(),
25
+ selectedCardUnavailable: e.object({
26
+ cardId: e.string().min(1).max(s.idChars),
27
+ reason: e.enum(p),
28
+ message: e.string().max(s.textChars).optional()
29
+ }).strict().optional()
30
+ }).strict();
31
+ function h(n) {
32
+ var A;
33
+ const i = new TextEncoder().encode(n).length;
34
+ if (i > s.requestBytes)
35
+ return m(`body: ${i} bytes exceeds ${s.requestBytes}`);
36
+ let o;
37
+ try {
38
+ o = JSON.parse(n);
39
+ } catch {
40
+ return { ok: !1, code: "context_invalid", issues: ["body: not JSON"] };
41
+ }
42
+ const d = o && typeof o == "object" ? o.context : void 0;
43
+ if (d !== void 0) {
44
+ const t = f(d);
45
+ if (t > s.contextBytes)
46
+ return m(
47
+ `context: ${t} bytes exceeds ${s.contextBytes}`
48
+ );
49
+ }
50
+ const a = C.safeParse(o);
51
+ if (!a.success)
52
+ return {
53
+ ok: !1,
54
+ code: "context_invalid",
55
+ issues: a.error.issues.map(
56
+ (t) => `${t.path.join(".") || "(body)"}: ${t.message}`
57
+ )
58
+ };
59
+ if (!a.data.message.trim())
60
+ return { ok: !1, code: "context_invalid", issues: ["message: must not be blank"] };
61
+ const { selectedCardRequest: c, selectedCardUnavailable: l } = a.data, u = (A = a.data.context.selectedCard) == null ? void 0 : A.id, r = [
62
+ ...c ? [["selectedCardRequest", c.cardId]] : [],
63
+ ...l ? [["selectedCardUnavailable", l.cardId]] : []
64
+ ], S = [
65
+ ...r.length > 1 ? ["selectedCardRequest, selectedCardUnavailable: send one of them, not both"] : [],
66
+ ...r.filter(([, t]) => t !== u).map(([t]) => `${t}: not the card the context asks about`),
67
+ ...u && r.length === 0 ? ["selectedCardRequest: the asked-about card needs its request or selectedCardUnavailable"] : []
68
+ ];
69
+ return S.length ? { ok: !1, code: "context_invalid", issues: S } : { ok: !0, value: a.data };
70
+ }
71
+ function m(n) {
72
+ return { ok: !1, code: "context_too_large", issues: [n] };
73
+ }
74
+ export {
75
+ Y as ASSISTANT_CARD_TYPES,
76
+ p as ASSISTANT_CARD_UNAVAILABLE_REASONS,
77
+ N as ASSISTANT_CONTEXT_VERSION,
78
+ F as ASSISTANT_LAYOUTS,
79
+ s as ASSISTANT_LIMITS,
80
+ J as ASSISTANT_NAME_MAX_CHARS,
81
+ R as ASSISTANT_PARTS_VERSION,
82
+ v as ASSISTANT_REFUSAL_MESSAGES,
83
+ k as AssistantContextTooLargeError,
84
+ V as DEFAULT_ASSISTANT_NAME,
85
+ z as addableSourceKey,
86
+ T as assistantContextSchema,
87
+ f as assistantJsonBytes,
88
+ E as assistantRefusalMessage,
89
+ q as compareAssistantContexts,
90
+ L as dailyLimitMessage,
91
+ U as describeSource,
92
+ B as fitAssistantText,
93
+ w as isAssistantLayout,
94
+ $ as parseAssistantTokenConfig,
95
+ h as parseAssistantTurnRequest,
96
+ j as readAssistantTokenConfig,
97
+ M as renderContextForModel,
98
+ D as resolveAssistantAvailability,
99
+ G as sourceRefLabel,
100
+ H as storedTurnEnding,
101
+ K as toTranscriptChunks,
102
+ Q as toTranscriptPart,
103
+ W as visualInputOf
104
+ };
@@ -1,17 +1,21 @@
1
1
  import { jsxs as d, jsx as r, Fragment as le } from "react/jsx-runtime";
2
2
  import m from "react";
3
- import { c as K, P as ge, a as be, B as C, b as fe, C as De, R as me, L as se, S as ue, d as je, T as Ie, e as Je, f as V, g as Le, h as M, i as $e, j as _e, k as Ue, l as Ve, m as E, n as Q, o as ee, p as re, I as he, q as oe, r as ae, s as ke, t as xe, v as ye, w as ve, x as Ce, y as Me } from "../chunks/switch-DO8a0EfJ.js";
3
+ import { P as ge, a as be, B as C, b as fe, C as De, R as me, L as se, S as ue, c as je, T as Ie, d as Je, e as V, f as Le, g as M, h as $e, i as _e, j as Ue, k as Ve, l as E, m as K, n as Q, o as ee, I as he, p as re, q as oe, r as ke, s as xe, t as ye, u as ve, v as Ce, w as Me } from "../chunks/switch-CvItuC1Q.js";
4
4
  import { A as Ge, p as We } from "../chunks/color-CJvdlFM_.js";
5
- import { c as ne, X as He } from "../chunks/x-CXDkqdur.js";
6
- import "../chunks/validators-DMSH81OM.js";
7
- import "../chunks/matrix-operation-contract-BKupLHXL.js";
5
+ import "../chunks/index-CuHybtft.js";
6
+ import "../chunks/validators-Ej1DdCXa.js";
7
+ import "../chunks/matrix-operation-contract-B8PBF1Gd.js";
8
+ import "../chunks/analytics-base-schemas-BFAoRlkU.js";
8
9
  import "zod";
9
10
  import "../value-format-preferences/index.js";
10
- import { r as Xe, v as Ye, A as qe } from "../chunks/index-CLIro-EG.js";
11
- import { P as G } from "../chunks/palette-Cp1hqZtm.js";
12
- import { B as Ze } from "../chunks/braces-8TRlDwDw.js";
13
- import { U as Ke } from "../chunks/upload-CAIpsti1.js";
14
- import { S as Qe, L as er } from "../chunks/save-kO6cIaob.js";
11
+ import { c as ae } from "../chunks/class-utils-Df1OVOT1.js";
12
+ import { r as He, v as Xe, A as Ye } from "../chunks/index-CLIro-EG.js";
13
+ import { P as G } from "../chunks/palette-D10o_yYX.js";
14
+ import { B as qe } from "../chunks/braces-o9UiRQes.js";
15
+ import { c as ne, X as Ze } from "../chunks/x-4f5U2XwU.js";
16
+ import { U as Ke } from "../chunks/upload-BFX7apKV.js";
17
+ import { S as Qe } from "../chunks/save-CfJpQQ68.js";
18
+ import { L as er } from "../chunks/layout-grid-Bgzth8vd.js";
15
19
  /**
16
20
  * @license lucide-react v0.453.0 - ISC
17
21
  *
@@ -210,7 +214,7 @@ const ar = ne("Pipette", [
210
214
  }
211
215
  ];
212
216
  function J(e) {
213
- const n = Xe({
217
+ const n = He({
214
218
  organizationAppearance: e ?? void 0
215
219
  });
216
220
  return nr(
@@ -231,10 +235,10 @@ function nr(e) {
231
235
  }
232
236
  function L(e) {
233
237
  const n = O({
234
- version: qe,
238
+ version: Ye,
235
239
  mode: e.mode,
236
240
  schemes: e.schemes
237
- }), t = Ye(n);
241
+ }), t = Xe(n);
238
242
  if (!t.success) {
239
243
  const c = t.issues[0];
240
244
  throw new Error(
@@ -471,7 +475,7 @@ const ir = [
471
475
  "#dc2626",
472
476
  "#7c3aed"
473
477
  ];
474
- function Br({
478
+ function Er({
475
479
  appearance: e,
476
480
  previewTitle: n,
477
481
  isLoading: t = !1,
@@ -603,7 +607,7 @@ function Br({
603
607
  return /* @__PURE__ */ d(
604
608
  "div",
605
609
  {
606
- className: K(
610
+ className: ae(
607
611
  "flex min-h-0 flex-1 flex-col bg-background text-foreground",
608
612
  s
609
613
  ),
@@ -625,7 +629,7 @@ function Br({
625
629
  onOpenChange: Re,
626
630
  children: [
627
631
  /* @__PURE__ */ r(be, { asChild: !0, children: /* @__PURE__ */ d(C, { type: "button", size: "xs", variant: "ghost", disabled: !f, children: [
628
- /* @__PURE__ */ r(Ze, { className: "h-3.5 w-3.5" }),
632
+ /* @__PURE__ */ r(qe, { className: "h-3.5 w-3.5" }),
629
633
  "Brand Spec"
630
634
  ] }) }),
631
635
  /* @__PURE__ */ d(
@@ -752,7 +756,7 @@ function Br({
752
756
  "aria-label": "Close Brand Studio",
753
757
  className: "flex h-7 w-7 items-center justify-center rounded-control text-muted-foreground hover:bg-muted hover:text-foreground",
754
758
  onClick: S,
755
- children: /* @__PURE__ */ r(He, { className: "h-3.5 w-3.5" })
759
+ children: /* @__PURE__ */ r(Ze, { className: "h-3.5 w-3.5" })
756
760
  }
757
761
  )
758
762
  ] }),
@@ -768,7 +772,7 @@ function Br({
768
772
  "button",
769
773
  {
770
774
  type: "button",
771
- className: K(
775
+ className: ae(
772
776
  "h-full px-2.5 text-[12px] capitalize transition-colors",
773
777
  T === o ? "bg-muted text-foreground" : "text-muted-foreground hover:text-foreground"
774
778
  ),
@@ -1265,8 +1269,8 @@ function y({
1265
1269
  return /* @__PURE__ */ d("div", { className: "block", children: [
1266
1270
  /* @__PURE__ */ d("div", { className: "mb-1 flex items-center gap-1", children: [
1267
1271
  /* @__PURE__ */ r(E, { className: "text-[11px] font-normal text-muted-foreground", children: e }),
1268
- n ? /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ d(ee, { children: [
1269
- /* @__PURE__ */ r(re, { asChild: !0, children: /* @__PURE__ */ r(
1272
+ n ? /* @__PURE__ */ r(K, { children: /* @__PURE__ */ d(Q, { children: [
1273
+ /* @__PURE__ */ r(ee, { asChild: !0, children: /* @__PURE__ */ r(
1270
1274
  "button",
1271
1275
  {
1272
1276
  type: "button",
@@ -1275,7 +1279,7 @@ function y({
1275
1279
  children: /* @__PURE__ */ r(he, { className: "h-3 w-3" })
1276
1280
  }
1277
1281
  ) }),
1278
- /* @__PURE__ */ r(oe, { side: "top", className: "max-w-64", children: n })
1282
+ /* @__PURE__ */ r(re, { side: "top", className: "max-w-64", children: n })
1279
1283
  ] }) }) : null
1280
1284
  ] }),
1281
1285
  /* @__PURE__ */ d("div", { className: "flex h-7 items-center overflow-hidden rounded-control border border-input bg-background", children: [
@@ -1321,8 +1325,8 @@ function y({
1321
1325
  /* @__PURE__ */ d("div", { className: "min-w-0 flex-1", children: [
1322
1326
  /* @__PURE__ */ d("div", { className: "mb-1 flex items-center justify-between gap-2", children: [
1323
1327
  /* @__PURE__ */ r(E, { className: "block text-[11px] font-normal text-muted-foreground", children: "Color value" }),
1324
- /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ d(ee, { children: [
1325
- /* @__PURE__ */ r(re, { asChild: !0, children: /* @__PURE__ */ r(
1328
+ /* @__PURE__ */ r(K, { children: /* @__PURE__ */ d(Q, { children: [
1329
+ /* @__PURE__ */ r(ee, { asChild: !0, children: /* @__PURE__ */ r(
1326
1330
  "button",
1327
1331
  {
1328
1332
  type: "button",
@@ -1333,11 +1337,11 @@ function y({
1333
1337
  children: /* @__PURE__ */ r(me, { className: "h-3 w-3" })
1334
1338
  }
1335
1339
  ) }),
1336
- /* @__PURE__ */ r(oe, { side: "top", children: "Reset to previous value" })
1340
+ /* @__PURE__ */ r(re, { side: "top", children: "Reset to previous value" })
1337
1341
  ] }) })
1338
1342
  ] }),
1339
1343
  /* @__PURE__ */ r(
1340
- ae,
1344
+ oe,
1341
1345
  {
1342
1346
  size: "xs",
1343
1347
  "aria-label": `${e} popover color value`,
@@ -1353,7 +1357,7 @@ function y({
1353
1357
  {
1354
1358
  type: "button",
1355
1359
  "aria-label": `Set ${e} to ${b}`,
1356
- className: K(
1360
+ className: ae(
1357
1361
  "h-6 rounded-control border border-border/70 shadow-sm",
1358
1362
  t.toLowerCase() === b && "ring-2 ring-ring"
1359
1363
  ),
@@ -1367,7 +1371,7 @@ function y({
1367
1371
  )
1368
1372
  ] }),
1369
1373
  /* @__PURE__ */ r(
1370
- ae,
1374
+ oe,
1371
1375
  {
1372
1376
  size: "xs",
1373
1377
  "aria-label": `${e} color value`,
@@ -1405,8 +1409,8 @@ function w({
1405
1409
  children: e
1406
1410
  }
1407
1411
  ),
1408
- n ? /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ d(ee, { children: [
1409
- /* @__PURE__ */ r(re, { asChild: !0, children: /* @__PURE__ */ r(
1412
+ n ? /* @__PURE__ */ r(K, { children: /* @__PURE__ */ d(Q, { children: [
1413
+ /* @__PURE__ */ r(ee, { asChild: !0, children: /* @__PURE__ */ r(
1410
1414
  "button",
1411
1415
  {
1412
1416
  type: "button",
@@ -1415,11 +1419,11 @@ function w({
1415
1419
  children: /* @__PURE__ */ r(he, { className: "h-3 w-3" })
1416
1420
  }
1417
1421
  ) }),
1418
- /* @__PURE__ */ r(oe, { side: "top", className: "max-w-56", children: n })
1422
+ /* @__PURE__ */ r(re, { side: "top", className: "max-w-56", children: n })
1419
1423
  ] }) }) : null
1420
1424
  ] }),
1421
1425
  /* @__PURE__ */ r(
1422
- ae,
1426
+ oe,
1423
1427
  {
1424
1428
  id: i,
1425
1429
  size: "xs",
@@ -1477,7 +1481,7 @@ function br(e) {
1477
1481
  }
1478
1482
  export {
1479
1483
  Ne as BRAND_STUDIO_PRESETS,
1480
- Br as BrandStudioEditor,
1484
+ Er as BrandStudioEditor,
1481
1485
  tr as applyBrandStudioPreset,
1482
1486
  L as buildAppearanceSpecFromDraft,
1483
1487
  J as createBrandStudioDraft,
@@ -1,54 +1,55 @@
1
- import "../chunks/numeric-presentation-CWu3gunq.js";
2
- import "../chunks/validators-DMSH81OM.js";
3
- import "../chunks/pivot-result-lifecycle-DQz_gjGu.js";
4
- import "../chunks/matrix-continuation-C4sRcjZU.js";
5
- import "../chunks/matrix-operation-contract-BKupLHXL.js";
1
+ import "../chunks/raw-temporal-D61lr48Y.js";
2
+ import "../chunks/validators-Ej1DdCXa.js";
3
+ import "../chunks/csv-utils-GUfKyT1J.js";
4
+ import "../chunks/pivot-result-lifecycle-8qCDmpKc.js";
5
+ import "../chunks/matrix-operation-contract-B8PBF1Gd.js";
6
+ import "../chunks/analytics-base-schemas-BFAoRlkU.js";
6
7
  import "zod";
7
8
  import "../value-format-preferences/index.js";
8
- import { ag as g, ak as l, af as B, aj as m, ao as u, ah as d, a7 as c, ai as p, a4 as I, a2 as h, a3 as C, as as D, a1 as E, au as T, z as F, x as S, av as b, a9 as A, a6 as y, w as _, e as R, an as N, am as v, _ as x, v as M, h as G, aD as z, d as L, aC as O, ay as U, az as V, al as q, a8 as J, $ as w, aA as H, aB as P, a5 as X, ap as j, at as k, ar as K, a0 as Q, aq as $, aw as W, ax as Y } from "../chunks/index-DTcTAGGM.js";
9
+ import { K as l, O as B, J as m, N as u, T as c, L as d, D as p, M as I, y as C, w as D, x as E, X as T, u as h, Z as S, f as b, e as F, _ as A, C as y, A as _, c as N, d as R, S as M, Q as x, q as v, b as G, a as L, a6 as O, g as U, a5 as z, a1 as V, a2 as J, P as q, B as P, s as X, a3 as H, a4 as K, z as Q, U as w, Y as W, W as Y, t as Z, V as $, $ as j, a0 as k } from "../chunks/index-CqMiAkay.js";
9
10
  export {
10
- g as BRIEFING_ARTIFACT_FORMATS,
11
- l as BRIEFING_CONTENT_LIMITS,
12
- B as BRIEFING_KIND,
13
- m as BRIEFING_TEXT_LIMITS,
14
- u as BriefingContractError,
11
+ l as BRIEFING_ARTIFACT_FORMATS,
12
+ B as BRIEFING_CONTENT_LIMITS,
13
+ m as BRIEFING_KIND,
14
+ u as BRIEFING_TEXT_LIMITS,
15
+ c as BriefingContractError,
15
16
  d as DEFAULT_BRIEFING_ARTIFACT_FORMATS,
16
- c as DEFAULT_BRIEFING_SCHEDULE,
17
- p as MAX_BRIEFING_ATTACHMENTS,
18
- I as briefingScheduleDayOccurs,
19
- h as briefingScheduleMonths,
20
- C as briefingScheduleShortMonths,
21
- D as buildBriefingJobConfig,
22
- E as buildBriefingScheduleExpr,
23
- T as buildCreateBriefingRequest,
24
- F as buildDashboardTemporalSnapshotEntries,
25
- S as buildMatrixDeliveryEnvelope,
26
- b as buildUpdateBriefingRequest,
27
- A as canCreateBriefingForUser,
28
- y as canonicalBriefingMonthDays,
29
- _ as captureMatrixExport,
17
+ p as DEFAULT_BRIEFING_SCHEDULE,
18
+ I as MAX_BRIEFING_ATTACHMENTS,
19
+ C as briefingScheduleDayOccurs,
20
+ D as briefingScheduleMonths,
21
+ E as briefingScheduleShortMonths,
22
+ T as buildBriefingJobConfig,
23
+ h as buildBriefingScheduleExpr,
24
+ S as buildCreateBriefingRequest,
25
+ b as buildDashboardTemporalSnapshotEntries,
26
+ F as buildMatrixDeliveryEnvelope,
27
+ A as buildUpdateBriefingRequest,
28
+ y as canCreateBriefingForUser,
29
+ _ as canonicalBriefingMonthDays,
30
+ N as captureMatrixExport,
30
31
  R as describeBriefingSchedule,
31
- N as formatBriefingComparisonValues,
32
- v as formatBriefingDisplayValue,
33
- x as getBriefingCardAttachmentCapability,
34
- M as getBriefingCardAttachmentFormats,
35
- G as getBriefingCreationIntents,
36
- z as getBriefingDisplayTypeLabel,
37
- L as getBriefingPresentation,
38
- O as getDefaultBriefingCardAttachmentFormat,
39
- U as isBriefingArtifactFormat,
40
- V as isBriefingDeliveryChannel,
32
+ M as formatBriefingComparisonValues,
33
+ x as formatBriefingDisplayValue,
34
+ v as getBriefingCardAttachmentCapability,
35
+ G as getBriefingCardAttachmentFormats,
36
+ L as getBriefingCreationIntents,
37
+ O as getBriefingDisplayTypeLabel,
38
+ U as getBriefingPresentation,
39
+ z as getDefaultBriefingCardAttachmentFormat,
40
+ V as isBriefingArtifactFormat,
41
+ J as isBriefingDeliveryChannel,
41
42
  q as isBriefingNumericValue,
42
- J as isEmailOnlyBriefingDelivery,
43
- w as isValidBriefingTimezone,
43
+ P as isEmailOnlyBriefingDelivery,
44
+ X as isValidBriefingTimezone,
44
45
  H as matrixDeliveryPayloadSchema,
45
- P as matrixDeliveryQuerySchema,
46
- X as nextBriefingScheduleDates,
47
- j as normalizeBriefingContentDocument,
48
- k as normalizeBriefingDraft,
49
- K as normalizeBriefingJobConfig,
50
- Q as parseBriefingScheduleExpr,
46
+ K as matrixDeliveryQuerySchema,
47
+ Q as nextBriefingScheduleDates,
48
+ w as normalizeBriefingContentDocument,
49
+ W as normalizeBriefingDraft,
50
+ Y as normalizeBriefingJobConfig,
51
+ Z as parseBriefingScheduleExpr,
51
52
  $ as validateBriefingContentDocument,
52
- W as validateBriefingDraft,
53
- Y as validateBriefingJobConfig
53
+ j as validateBriefingDraft,
54
+ k as validateBriefingJobConfig
54
55
  };
@@ -0,0 +1,28 @@
1
+ var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function f(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ function l(e) {
6
+ if (e.__esModule) return e;
7
+ var r = e.default;
8
+ if (typeof r == "function") {
9
+ var t = function o() {
10
+ return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
11
+ };
12
+ t.prototype = r.prototype;
13
+ } else t = {};
14
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
15
+ var n = Object.getOwnPropertyDescriptor(e, o);
16
+ Object.defineProperty(t, o, n.get ? n : {
17
+ enumerable: !0,
18
+ get: function() {
19
+ return e[o];
20
+ }
21
+ });
22
+ }), t;
23
+ }
24
+ export {
25
+ l as a,
26
+ u as c,
27
+ f as g
28
+ };
@@ -0,0 +1,56 @@
1
+ import { k as t } from "./context-HD9usB1P.js";
2
+ function a(e) {
3
+ if (e.kind === "text") return { type: "text", text: e.text };
4
+ const { kind: n, ...i } = e;
5
+ return {
6
+ type: `data-${n}`,
7
+ ...e.kind === "stage" ? { id: e.stageId } : {},
8
+ data: i
9
+ };
10
+ }
11
+ function s(e, n) {
12
+ return e.kind !== "text" ? [a(e)] : [
13
+ { type: "text-start", id: n },
14
+ { type: "text-delta", id: n, delta: e.text },
15
+ { type: "text-end", id: n }
16
+ ];
17
+ }
18
+ function d(e) {
19
+ if (e === "failed" || e === "interrupted")
20
+ return { kind: "refusal", code: "model_unavailable", message: t.model_unavailable };
21
+ if (e === "running")
22
+ return { kind: "refusal", code: "turn_in_progress", message: t.turn_in_progress };
23
+ }
24
+ function u(e) {
25
+ if (e.kind === "semantic") return JSON.stringify(["semantic", e.domainId, e.datasetName]);
26
+ if (e.kind === "sql") return JSON.stringify(["sql", e.connectionId]);
27
+ }
28
+ function l(e) {
29
+ return e.label ?? (e.kind === "semantic" ? e.datasetName : e.kind === "physical" ? e.tableName : "SQL");
30
+ }
31
+ function o(e) {
32
+ return {
33
+ columns: e.columns,
34
+ records: e.records,
35
+ rowCount: e.rowCount,
36
+ governed: e.status.governed,
37
+ complete: e.status.complete,
38
+ truncated: e.status.truncated
39
+ };
40
+ }
41
+ const c = {
42
+ number: "kpi",
43
+ line: "line",
44
+ bar: "bar",
45
+ stackedBar: "stackedBar",
46
+ table: "table"
47
+ };
48
+ export {
49
+ c as A,
50
+ s as a,
51
+ u as b,
52
+ l as c,
53
+ d as s,
54
+ a as t,
55
+ o as v
56
+ };