react-semaphor 0.1.536 → 0.1.538
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.
- package/dist/analytics-protocol/index.js +352 -341
- package/dist/assistant-context/index.js +10 -0
- package/dist/assistant-protocol/index.js +104 -0
- package/dist/brand-studio/index.js +35 -31
- package/dist/briefings/index.js +46 -45
- package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/chunks/add-to-dashboard-CxtTfISD.js +56 -0
- package/dist/chunks/aggregate-table-row-presentation-Qgpv6_G8.js +979 -0
- package/dist/chunks/analytics-base-schemas-BFAoRlkU.js +472 -0
- package/dist/chunks/apply-dashboard-operations-C-iahGka.js +402 -0
- package/dist/chunks/assistant-chat-BAqUIFp5.js +7966 -0
- package/dist/chunks/availability-Bp5Gfu1I.js +44 -0
- package/dist/chunks/{bookmark-state-B-I9BDD0.js → bookmark-state-k7y5SNGf.js} +9 -9
- package/dist/chunks/{braces-8TRlDwDw.js → braces-o9UiRQes.js} +1 -1
- package/dist/chunks/calculated-field-identity-DcBS2NPP.js +2161 -0
- package/dist/chunks/calendar-day-equality-Bpl15IBo.js +487 -0
- package/dist/chunks/class-utils-Df1OVOT1.js +2315 -0
- package/dist/chunks/{field-dependencies-CpRUwr9J.js → common-types-CUf03Htv.js} +65 -58
- package/dist/chunks/context-HD9usB1P.js +349 -0
- package/dist/chunks/conversation-sQiWYUOb.js +16 -0
- package/dist/chunks/csv-utils-GUfKyT1J.js +56 -0
- package/dist/chunks/custom-visual-inputs-BrUOIwln.js +3288 -0
- package/dist/chunks/{dashboard-BTDY_I5L.js → dashboard-DTDDFQsS.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DV_rlhT2.js → dashboard-briefing-launcher-Bb2QUqOa.js} +764 -740
- package/dist/chunks/{dashboard-controls-B4LxN5dr.js → dashboard-controls-FpONU8QV.js} +683 -686
- package/dist/chunks/{common-types-g7yS12Cg.js → dashboard-filter-value-compatibility-D95O4nd7.js} +18 -24
- package/dist/chunks/dashboard-json-DazPhBU_.js +69 -0
- package/dist/chunks/document-dashboard-inputs-D96rlU7S.js +10678 -0
- package/dist/chunks/document-sheet-utils-C1eEldxs.js +1076 -0
- package/dist/chunks/{edit-dashboard-visual-L5zsle6X.js → edit-dashboard-visual-CIhZodVH.js} +4744 -4746
- package/dist/chunks/editor-draft-sync-BN5qYHPF.js +15 -0
- package/dist/chunks/filter-value-text-BhWugPWE.js +163 -0
- package/dist/chunks/index-CqMiAkay.js +3164 -0
- package/dist/chunks/index-CuHybtft.js +51 -0
- package/dist/chunks/layout-grid-Bgzth8vd.js +16 -0
- package/dist/chunks/{matrix-analytical-definition-CgBTD6H8.js → matrix-analytical-definition-bcprSe4u.js} +1 -1
- package/dist/chunks/{matrix-card-CAdizkUl.js → matrix-card-CJn1hB5V.js} +13 -12
- package/dist/chunks/matrix-definition-DQDI2okF.js +206 -0
- package/dist/chunks/{matrix-formatter-DJCk8Znf.js → matrix-formatter-Bgw32tb3.js} +648 -457
- package/dist/chunks/matrix-member-presentation-BNPSDKBG.js +105 -0
- package/dist/chunks/{matrix-operation-contract-BKupLHXL.js → matrix-operation-contract-B8PBF1Gd.js} +134 -133
- package/dist/chunks/{metric-comparison-BKHyvnAy.js → metric-comparison-CojWeLqx.js} +1 -1
- package/dist/chunks/{palette-Cp1hqZtm.js → palette-D10o_yYX.js} +1 -1
- package/dist/chunks/pivot-header-presentation-MkcKnjn3.js +42 -0
- package/dist/chunks/{pivot-result-identity-Bs4tLtLo.js → pivot-result-identity-D6hhcRXi.js} +1 -1
- package/dist/chunks/pivot-result-lifecycle-8qCDmpKc.js +804 -0
- package/dist/chunks/raw-temporal-D61lr48Y.js +1464 -0
- package/dist/chunks/{raw-temporal-contract-mLFS-9wk.js → raw-temporal-contract-C51YG48G.js} +1 -1
- package/dist/chunks/report-preferences-dialog-BCGs4-AE.js +1808 -0
- package/dist/chunks/{report-runtime-context-CG_I0PPW.js → report-runtime-context-B984Nq1E.js} +8 -7
- package/dist/chunks/save-CfJpQQ68.js +21 -0
- package/dist/chunks/saved-dashboard-context-BrTkjcod.js +566 -0
- package/dist/chunks/{selection-reducer-CiDEtmAq.js → selection-reducer-vKIb_jS6.js} +2 -2
- package/dist/chunks/{semaphor-ready-indicator-3TXTZgw-.js → semaphor-ready-indicator-CHHoWhil.js} +65657 -62814
- package/dist/chunks/{shelf-drop-preview-context-CBCs9rjz.js → shelf-drop-preview-context-EsayECEC.js} +199 -196
- package/dist/chunks/{source-entity-resolution-C-oNyYMp.js → source-entity-resolution-CVA1a85c.js} +8 -8
- package/dist/chunks/switch-CvItuC1Q.js +8199 -0
- package/dist/chunks/{temporal-bucket-DlFuhCnT.js → temporal-bucket-D8JF7zKz.js} +86 -71
- package/dist/chunks/{temporal-bucket-contract-D2OuaVZ7.js → temporal-bucket-contract-DaOajRC7.js} +1 -1
- package/dist/chunks/{token-types-DtSJOUjh.js → token-types-bxUxXDX2.js} +1 -1
- package/dist/chunks/{upload-CAIpsti1.js → upload-BFX7apKV.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Bk-SBnaY.js → use-create-flow-overlay-state-BqA92GkX.js} +331 -339
- package/dist/chunks/{validators-DMSH81OM.js → validators-Ej1DdCXa.js} +1050 -1510
- package/dist/chunks/visual-choice-JiJ-_3bi.js +204 -0
- package/dist/chunks/x-4f5U2XwU.js +100 -0
- package/dist/chunks/{zoned-wall-clock-1qlWCE20.js → zoned-wall-clock-MulfA26h.js} +2 -2
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +823 -661
- package/dist/data-app-sdk/index.js +32 -30
- package/dist/data-app-sdk-adapters/index.js +23 -22
- package/dist/data-app-sdk-validation/index.js +23 -22
- package/dist/format-utils/index.js +173 -168
- package/dist/index.js +267 -258
- package/dist/layouts/index.js +236 -24
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/assistant-context.d.ts +2 -0
- package/dist/types/assistant-protocol.d.ts +2 -0
- package/dist/types/components/assistant/assistant-entry-points.d.ts +18 -0
- package/dist/types/components/assistant/assistant-provider.d.ts +19 -0
- package/dist/types/components/assistant/assistant-store.d.ts +52 -0
- package/dist/types/components/assistant/use-assistant.d.ts +38 -0
- package/dist/types/components/index.d.ts +5 -1
- package/dist/types/components/surfboard/filter/types.d.ts +5 -2
- package/dist/types/index.js +50 -51
- package/dist/types/lib/api/invalidate-token.d.ts +7 -0
- package/dist/types/lib/charts/cartesian-fields.d.ts +64 -0
- package/dist/types/lib/charts/types.d.ts +7 -0
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +14 -2
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +5 -6
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +8 -3
- package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +11 -6
- package/dist/types/lib/dashboard-pagination/dashboard-card-pagination.d.ts +7 -0
- package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +79 -0
- package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +3 -2
- package/dist/types/lib/document/document-table-data-policy.d.ts +15 -0
- package/dist/types/lib/filter-values/filter-mode.d.ts +22 -0
- package/dist/types/lib/hooks/use-calendar-context.d.ts +5 -0
- package/dist/types/lib/hooks/use-text-filter.d.ts +7 -0
- package/dist/types/lib/print/print-inputs.d.ts +4 -2
- package/dist/types/lib/query-context/build-card-query-context.d.ts +12 -4
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +93 -0
- package/dist/types/lib/query-context/card-server-request.d.ts +72 -0
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +7 -0
- package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +56 -0
- package/dist/types/lib/query-context/document-section-card-query.d.ts +45 -0
- package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +17 -2
- package/dist/types/lib/stores/dashboard-store.d.ts +34 -11
- package/dist/types/lib/stores/editor-store.d.ts +4 -2
- package/dist/types/lib/types/token-types.d.ts +11 -0
- package/dist/types/lib/utils/card-type-change.d.ts +30 -0
- package/dist/types/lib/utils/comparison-window-caption.d.ts +12 -0
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +13 -2
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +74 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +5 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +43 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/visual-choice.d.ts +75 -0
- package/dist/types/shared/assistant-context/index.d.ts +9 -0
- package/dist/types/shared/assistant-context/project-context.d.ts +55 -0
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +130 -0
- package/dist/types/shared/assistant-protocol/add-to-dashboard.d.ts +17 -0
- package/dist/types/shared/assistant-protocol/artifact.d.ts +63 -0
- package/dist/types/shared/assistant-protocol/availability.d.ts +39 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +952 -0
- package/dist/types/shared/assistant-protocol/conversation.d.ts +38 -0
- package/dist/types/shared/assistant-protocol/index.d.ts +16 -0
- package/dist/types/shared/assistant-protocol/limits.d.ts +53 -0
- package/dist/types/shared/assistant-protocol/parts.d.ts +131 -0
- package/dist/types/shared/assistant-protocol/request.d.ts +77 -0
- package/dist/types/shared/assistant-protocol/sources.d.ts +27 -0
- package/dist/types/shared/assistant-protocol/token-config.d.ts +32 -0
- package/dist/types/shared/assistant-protocol/transcript.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +112 -0
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +1794 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/new-card.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/resolved-primary-date-field-validation.d.ts +16 -0
- package/dist/types/shared/format-utils/filter-detail.d.ts +70 -0
- package/dist/types/shared/format-utils/filter-value-text.d.ts +15 -0
- package/dist/types/shared/format-utils/index.d.ts +3 -0
- package/dist/types/shared/format-utils/raw-temporal.d.ts +7 -0
- package/dist/types/shared/format-utils/temporal-bucket.d.ts +7 -0
- package/dist/types/shared/layouts/frame-layouts.d.ts +23 -0
- package/dist/types/shared/layouts/index.d.ts +1 -0
- package/package.json +12 -2
- package/dist/chunks/calculated-field-identity-BptYhyOP.js +0 -1326
- package/dist/chunks/calendar-day-equality-BRjN1S9h.js +0 -383
- package/dist/chunks/card-config-utils-BOM1dxCk.js +0 -1150
- package/dist/chunks/constants-DNWVy8Y3.js +0 -9
- package/dist/chunks/dashboard-json-Ccjo0Dzw.js +0 -65
- package/dist/chunks/field-aggregations-CoLzYHeL.js +0 -1229
- package/dist/chunks/index-DTcTAGGM.js +0 -4101
- package/dist/chunks/matrix-continuation-C4sRcjZU.js +0 -72
- package/dist/chunks/matrix-control-sources-DTqcA2_L.js +0 -636
- package/dist/chunks/matrix-definition-D9iShKZI.js +0 -87
- package/dist/chunks/matrix-member-presentation-Ct8GuxHt.js +0 -209
- package/dist/chunks/numeric-presentation-CWu3gunq.js +0 -537
- package/dist/chunks/pivot-header-presentation-CHs2GFrM.js +0 -753
- package/dist/chunks/pivot-result-lifecycle-DQz_gjGu.js +0 -789
- package/dist/chunks/raw-temporal-iMXRK-Qz.js +0 -930
- package/dist/chunks/report-preferences-dialog-CW8VEIDx.js +0 -1623
- package/dist/chunks/save-kO6cIaob.js +0 -34
- package/dist/chunks/semantic-format-DiqYeKwU.js +0 -192
- package/dist/chunks/switch-CKB-kUaC.js +0 -25003
- package/dist/chunks/temporal-input-presentation-BD7YNUzu.js +0 -195
- package/dist/chunks/x-CXDkqdur.js +0 -149
- package/dist/types/lib/class-utils.d.ts +0 -2
- package/dist/types/lib/document/document-input-runtime.d.ts +0 -26
- 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-BrTkjcod.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 {
|
|
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
|
|
6
|
-
import "../chunks/validators-
|
|
7
|
-
import "../chunks/matrix-operation-contract-
|
|
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 {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
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 =
|
|
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:
|
|
238
|
+
version: Ye,
|
|
235
239
|
mode: e.mode,
|
|
236
240
|
schemes: e.schemes
|
|
237
|
-
}), t =
|
|
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
|
|
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:
|
|
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(
|
|
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(
|
|
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:
|
|
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(
|
|
1269
|
-
/* @__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(
|
|
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(
|
|
1325
|
-
/* @__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(
|
|
1340
|
+
/* @__PURE__ */ r(re, { side: "top", children: "Reset to previous value" })
|
|
1337
1341
|
] }) })
|
|
1338
1342
|
] }),
|
|
1339
1343
|
/* @__PURE__ */ r(
|
|
1340
|
-
|
|
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:
|
|
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
|
-
|
|
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(
|
|
1409
|
-
/* @__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(
|
|
1422
|
+
/* @__PURE__ */ r(re, { side: "top", className: "max-w-56", children: n })
|
|
1419
1423
|
] }) }) : null
|
|
1420
1424
|
] }),
|
|
1421
1425
|
/* @__PURE__ */ r(
|
|
1422
|
-
|
|
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
|
-
|
|
1484
|
+
Er as BrandStudioEditor,
|
|
1481
1485
|
tr as applyBrandStudioPreset,
|
|
1482
1486
|
L as buildAppearanceSpecFromDraft,
|
|
1483
1487
|
J as createBrandStudioDraft,
|
package/dist/briefings/index.js
CHANGED
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
import "../chunks/
|
|
2
|
-
import "../chunks/validators-
|
|
3
|
-
import "../chunks/
|
|
4
|
-
import "../chunks/
|
|
5
|
-
import "../chunks/matrix-operation-contract-
|
|
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 {
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
43
|
-
|
|
43
|
+
P as isEmailOnlyBriefingDelivery,
|
|
44
|
+
X as isValidBriefingTimezone,
|
|
44
45
|
H as matrixDeliveryPayloadSchema,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
53
|
-
|
|
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
|
+
};
|