react-semaphor 0.1.315 → 0.1.317
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/brand-studio/index.js +65 -65
- package/dist/briefings/index.cjs +1 -0
- package/dist/briefings/index.js +848 -0
- package/dist/chunks/{braces-CWi8x9ww.js → braces-CDPz6CF2.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-aODuCeYE.js → calendar-preferences-dialog-CUWcN-aO.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-B3JYKgek.js → calendar-preferences-dialog-DsfRJICT.js} +3 -3
- package/dist/chunks/{chevrons-up-down-B2viXO2I.js → chevrons-up-down-BsdQRmJL.js} +1 -1
- package/dist/chunks/dashboard-briefing-launcher-CvFxCsvU.js +7380 -0
- package/dist/chunks/dashboard-briefing-launcher-DsomUnHQ.js +96 -0
- package/dist/chunks/dashboard-controls-Bvr4skpo.js +2009 -0
- package/dist/chunks/dashboard-controls-kSIXjX4k.js +57 -0
- package/dist/chunks/{dashboard-json-Duea3KSa.js → dashboard-json-4qbAgL-4.js} +1 -1
- package/dist/chunks/{dashboard-json-zKDTezgS.js → dashboard-json-CgAgzcWN.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-MZCJaPiq.js → edit-dashboard-visual-BgOLgfoq.js} +807 -822
- package/dist/chunks/edit-dashboard-visual-DOTGLbMS.js +178 -0
- package/dist/chunks/{index-CjRLHvSp.js → index-BSexp9WY.js} +41203 -46487
- package/dist/chunks/index-BToywf5X.js +1298 -0
- package/dist/chunks/{palette-CIuwlEiG.js → palette-BlxLchHy.js} +1 -1
- package/dist/chunks/{resource-management-panel-S0LXyguo.js → resource-management-panel-CcSUHqz0.js} +81 -81
- package/dist/chunks/{resource-management-panel-CM3Zsk9H.js → resource-management-panel-hQayeERR.js} +1 -1
- package/dist/chunks/{save-_ALpoMy6.js → save-DVRQBMeb.js} +1 -1
- package/dist/chunks/{switch-B6fh8nb-.js → switch-sauemjyY.js} +199 -199
- package/dist/chunks/{use-create-flow-overlay-state-Cp7PYD-t.js → use-create-flow-overlay-state-CO6FEpZr.js} +254 -225
- package/dist/chunks/use-create-flow-overlay-state-Cqp5Qe-9.js +26 -0
- package/dist/chunks/{use-visual-utils-D9DsvP1v.js → use-visual-utils-DnJdlEV8.js} +48 -48
- package/dist/chunks/{use-visual-utils-DDd0pAJ_.js → use-visual-utils-KIYmxQoV.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +232 -485
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings.d.ts +240 -0
- package/dist/types/dashboard.d.ts +1 -0
- package/dist/types/main.d.ts +619 -1017
- package/dist/types/surfboard.d.ts +1 -0
- package/dist/types/types.d.ts +411 -261
- package/package.json +7 -2
- package/dist/chunks/dashboard-controls-CSunAZVx.js +0 -57
- package/dist/chunks/dashboard-controls-jvJF-AJC.js +0 -2021
- package/dist/chunks/dashboard-filter-controls-launcher-B0i9xSZZ.js +0 -11
- package/dist/chunks/dashboard-filter-controls-launcher-DG6yRPmx.js +0 -1540
- package/dist/chunks/edit-dashboard-visual-QjRIAadP.js +0 -183
- package/dist/chunks/index-B7C8qBWC.js +0 -1330
- package/dist/chunks/use-create-flow-overlay-state-CqTBDwBF.js +0 -16
package/dist/surfboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-BToywf5X.js"),e=require("../chunks/common-types-C73-Ud1-.js"),a=require("../chunks/calendar-preferences-dialog-CUWcN-aO.js");exports.Surfboard=r.DashboardPlus;exports.CONTROL_CARD_DEFAULT_VALUE=e.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=e.EMPTY_SELECTION;exports.CalendarPreferencesDialog=a.CalendarPreferencesDialog;
|
package/dist/surfboard/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as e } from "../chunks/index-
|
|
1
|
+
import { a as e } from "../chunks/index-BSexp9WY.js";
|
|
2
2
|
import { C, E } from "../chunks/common-types-4bjoIgvm.js";
|
|
3
|
-
import { C as s } from "../chunks/calendar-preferences-dialog-
|
|
3
|
+
import { C as s } from "../chunks/calendar-preferences-dialog-DsfRJICT.js";
|
|
4
4
|
export {
|
|
5
5
|
C as CONTROL_CARD_DEFAULT_VALUE,
|
|
6
6
|
s as CalendarPreferencesDialog,
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
export declare const BRIEFING_ARTIFACT_FORMATS: readonly ["markdown", "html"];
|
|
2
|
+
|
|
3
|
+
export declare const BRIEFING_KIND: "BRIEFING";
|
|
4
|
+
|
|
5
|
+
export declare const BRIEFING_TEXT_LIMITS: {
|
|
6
|
+
readonly name: 500;
|
|
7
|
+
readonly description: 2000;
|
|
8
|
+
readonly instruction: 50000;
|
|
9
|
+
readonly customMessage: 50000;
|
|
10
|
+
readonly attachmentTitle: 500;
|
|
11
|
+
readonly presentationAudience: 1000;
|
|
12
|
+
readonly presentationTone: 500;
|
|
13
|
+
readonly presentationFormat: 2000;
|
|
14
|
+
readonly id: 500;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export declare type BriefingArtifactFormat = (typeof BRIEFING_ARTIFACT_FORMATS)[number];
|
|
18
|
+
|
|
19
|
+
export declare type BriefingAttachment = (BriefingAttachmentBase & {
|
|
20
|
+
type: 'dashboard';
|
|
21
|
+
dashboardId: string;
|
|
22
|
+
format: 'pdf';
|
|
23
|
+
}) | (BriefingAttachmentBase & {
|
|
24
|
+
type: 'dashboard_sheet';
|
|
25
|
+
dashboardId: string;
|
|
26
|
+
sheetId: string;
|
|
27
|
+
format: 'pdf';
|
|
28
|
+
}) | (BriefingAttachmentBase & {
|
|
29
|
+
type: 'document_sheet';
|
|
30
|
+
dashboardId: string;
|
|
31
|
+
sheetId: string;
|
|
32
|
+
format: 'pdf';
|
|
33
|
+
}) | (BriefingAttachmentBase & {
|
|
34
|
+
type: 'visual';
|
|
35
|
+
dashboardId: string;
|
|
36
|
+
visualId: string;
|
|
37
|
+
format: 'pdf' | 'png';
|
|
38
|
+
}) | (BriefingAttachmentBase & {
|
|
39
|
+
type: 'card';
|
|
40
|
+
dashboardId: string;
|
|
41
|
+
cardId: string;
|
|
42
|
+
format: 'csv' | 'pdf' | 'png';
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
declare type BriefingAttachmentBase = {
|
|
46
|
+
title?: string;
|
|
47
|
+
settings?: BriefingAttachmentSettings;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export declare type BriefingAttachmentFormat = 'pdf' | 'csv' | 'png';
|
|
51
|
+
|
|
52
|
+
export declare type BriefingAttachmentSettings = {
|
|
53
|
+
theme?: string;
|
|
54
|
+
pageSize?: BriefingPdfPageSize;
|
|
55
|
+
orientation?: BriefingPdfOrientation;
|
|
56
|
+
includeFilters?: boolean;
|
|
57
|
+
includeTimestamp?: boolean;
|
|
58
|
+
delimiter?: BriefingCsvDelimiter;
|
|
59
|
+
includeHeaders?: boolean;
|
|
60
|
+
useFormattedValues?: boolean;
|
|
61
|
+
sheetSelection?: 'current' | 'all';
|
|
62
|
+
currentSheetId?: string;
|
|
63
|
+
currentSheetName?: string;
|
|
64
|
+
filterValues?: unknown[];
|
|
65
|
+
inlineFilterValues?: unknown[];
|
|
66
|
+
sheetFilterValues?: unknown[];
|
|
67
|
+
filterLine?: string;
|
|
68
|
+
controlValues?: Record<string, unknown>;
|
|
69
|
+
controlDefinitions?: unknown[];
|
|
70
|
+
cardControlDefinitions?: unknown[];
|
|
71
|
+
controlBindings?: unknown[];
|
|
72
|
+
tablePreferences?: Record<string, unknown>;
|
|
73
|
+
dashboardInputExecutionSnapshot?: Record<string, unknown>;
|
|
74
|
+
selectedSheetId?: string;
|
|
75
|
+
cardType?: string;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export declare type BriefingBody = {
|
|
79
|
+
type: 'generated_analysis';
|
|
80
|
+
instruction: string;
|
|
81
|
+
} | {
|
|
82
|
+
type: 'custom_message';
|
|
83
|
+
message: string;
|
|
84
|
+
} | {
|
|
85
|
+
type: 'none';
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare type BriefingChannelConfig = {
|
|
89
|
+
subjectOverride?: string;
|
|
90
|
+
titleOverride?: string;
|
|
91
|
+
summaryOverride?: string;
|
|
92
|
+
actionBlockVisible?: boolean;
|
|
93
|
+
webhookConfig?: BriefingWebhookConfig;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export declare class BriefingContractError extends Error {
|
|
97
|
+
readonly issues: BriefingValidationIssue[];
|
|
98
|
+
constructor(issues: BriefingValidationIssue[]);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export declare type BriefingCsvDelimiter = ',' | ';' | '\t';
|
|
102
|
+
|
|
103
|
+
export declare type BriefingDeliveryChannel = 'EMAIL' | 'WEBHOOK' | 'SLACK' | 'IN_APP' | 'TELEGRAM';
|
|
104
|
+
|
|
105
|
+
export declare type BriefingDeliveryConfig = {
|
|
106
|
+
recipients: BriefingRecipient[];
|
|
107
|
+
channels: BriefingDeliveryChannel[];
|
|
108
|
+
channelConfigs?: Partial<Record<BriefingDeliveryChannel, BriefingChannelConfig>>;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export declare type BriefingDraft = {
|
|
112
|
+
name: string;
|
|
113
|
+
description?: string | null;
|
|
114
|
+
status?: BriefingStatus;
|
|
115
|
+
scheduleExpr?: string | null;
|
|
116
|
+
timezone?: string;
|
|
117
|
+
source?: BriefingSource;
|
|
118
|
+
body: BriefingBody;
|
|
119
|
+
attachments?: BriefingAttachment[];
|
|
120
|
+
presentation?: Partial<BriefingPresentation>;
|
|
121
|
+
limits?: BriefingLimits;
|
|
122
|
+
deliveryConfig?: BriefingDeliveryConfig | null;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export declare type BriefingJobConfig = {
|
|
126
|
+
kind: BriefingKind;
|
|
127
|
+
source: BriefingSource;
|
|
128
|
+
body: BriefingBody;
|
|
129
|
+
attachments: BriefingAttachment[];
|
|
130
|
+
presentation: BriefingPresentation;
|
|
131
|
+
limits?: BriefingLimits;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export declare type BriefingKind = typeof BRIEFING_KIND;
|
|
135
|
+
|
|
136
|
+
export declare type BriefingLimits = {
|
|
137
|
+
maxToolCalls?: number;
|
|
138
|
+
maxRows?: number;
|
|
139
|
+
timeoutMs?: number;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export declare type BriefingPdfOrientation = 'portrait' | 'landscape';
|
|
143
|
+
|
|
144
|
+
export declare type BriefingPdfPageSize = 'letter' | 'legal' | 'a4' | 'a3' | 'tabloid';
|
|
145
|
+
|
|
146
|
+
export declare type BriefingPresentation = {
|
|
147
|
+
artifactFormats: BriefingArtifactFormat[];
|
|
148
|
+
includeEvidence: boolean;
|
|
149
|
+
includeSql: boolean;
|
|
150
|
+
audience?: string;
|
|
151
|
+
tone?: string;
|
|
152
|
+
format?: string;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export declare type BriefingRecipient = {
|
|
156
|
+
type: 'email';
|
|
157
|
+
address: string;
|
|
158
|
+
name?: string;
|
|
159
|
+
} | {
|
|
160
|
+
type: 'user';
|
|
161
|
+
userId: string;
|
|
162
|
+
} | {
|
|
163
|
+
type: 'tenant_user';
|
|
164
|
+
tenantUserId: string;
|
|
165
|
+
} | {
|
|
166
|
+
type: 'group';
|
|
167
|
+
groupId: string;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
export declare type BriefingSource = {
|
|
171
|
+
type: 'project';
|
|
172
|
+
} | {
|
|
173
|
+
type: 'dashboard';
|
|
174
|
+
dashboardId: string;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
export declare type BriefingStatus = 'ACTIVE' | 'PAUSED' | 'DISABLED';
|
|
178
|
+
|
|
179
|
+
export declare type BriefingValidationIssue = {
|
|
180
|
+
field: string;
|
|
181
|
+
message: string;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export declare type BriefingValidationResult<T = unknown> = {
|
|
185
|
+
valid: true;
|
|
186
|
+
value: T;
|
|
187
|
+
issues: [];
|
|
188
|
+
} | {
|
|
189
|
+
valid: false;
|
|
190
|
+
issues: BriefingValidationIssue[];
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export declare type BriefingWebhookConfig = {
|
|
194
|
+
url: string;
|
|
195
|
+
method?: 'POST' | 'PUT';
|
|
196
|
+
headers?: Record<string, string>;
|
|
197
|
+
secretEncrypted?: string;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
export declare function buildBriefingJobConfig(input: Omit<Partial<BriefingJobConfig>, 'kind'> & {
|
|
201
|
+
body: BriefingBody;
|
|
202
|
+
}): BriefingJobConfig;
|
|
203
|
+
|
|
204
|
+
export declare function buildCreateBriefingRequest(draft: BriefingDraft): CreateBriefingRequest;
|
|
205
|
+
|
|
206
|
+
export declare function buildUpdateBriefingRequest(draft: BriefingDraft): UpdateBriefingRequest;
|
|
207
|
+
|
|
208
|
+
export declare type CreateBriefingRequest = {
|
|
209
|
+
name: string;
|
|
210
|
+
description: string | null;
|
|
211
|
+
status: BriefingStatus;
|
|
212
|
+
scheduleExpr: string | null;
|
|
213
|
+
timezone: string;
|
|
214
|
+
source: BriefingSource;
|
|
215
|
+
body: BriefingBody;
|
|
216
|
+
attachments: BriefingAttachment[];
|
|
217
|
+
presentation: BriefingPresentation;
|
|
218
|
+
limits?: BriefingLimits;
|
|
219
|
+
deliveryConfig: BriefingDeliveryConfig | null;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
export declare const DEFAULT_BRIEFING_ARTIFACT_FORMATS: readonly ["markdown"];
|
|
223
|
+
|
|
224
|
+
export declare function isBriefingArtifactFormat(input: unknown): input is BriefingArtifactFormat;
|
|
225
|
+
|
|
226
|
+
export declare function isBriefingDeliveryChannel(input: unknown): input is BriefingDeliveryChannel;
|
|
227
|
+
|
|
228
|
+
export declare const MAX_BRIEFING_ATTACHMENTS = 20;
|
|
229
|
+
|
|
230
|
+
export declare function normalizeBriefingDraft(input: unknown): CreateBriefingRequest;
|
|
231
|
+
|
|
232
|
+
export declare function normalizeBriefingJobConfig(input: unknown): BriefingJobConfig;
|
|
233
|
+
|
|
234
|
+
export declare type UpdateBriefingRequest = CreateBriefingRequest;
|
|
235
|
+
|
|
236
|
+
export declare function validateBriefingDraft(draft: unknown): BriefingValidationResult<CreateBriefingRequest>;
|
|
237
|
+
|
|
238
|
+
export declare function validateBriefingJobConfig(input: unknown): BriefingValidationResult<BriefingJobConfig>;
|
|
239
|
+
|
|
240
|
+
export { }
|
|
@@ -765,6 +765,7 @@ export declare type DashboardProps = {
|
|
|
765
765
|
currentTheme?: Theme;
|
|
766
766
|
version?: string;
|
|
767
767
|
showAssistant?: boolean;
|
|
768
|
+
showBriefings?: boolean;
|
|
768
769
|
customCards?: CustomCard[];
|
|
769
770
|
onChartElementClicked?: (card: TCard, fieldValues: any) => void;
|
|
770
771
|
onEvent?: (event: TEvent) => void;
|