react-semaphor 0.1.314 → 0.1.316

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 (46) hide show
  1. package/dist/brand-studio/index.js +65 -65
  2. package/dist/briefings/index.cjs +1 -0
  3. package/dist/briefings/index.js +848 -0
  4. package/dist/chunks/{braces-CWi8x9ww.js → braces-CDPz6CF2.js} +1 -1
  5. package/dist/chunks/{calendar-preferences-dialog-D70CuT-1.js → calendar-preferences-dialog-9NlFzHX8.js} +3 -3
  6. package/dist/chunks/{calendar-preferences-dialog-BzpQ5u4h.js → calendar-preferences-dialog-BDdxi7Xm.js} +1 -1
  7. package/dist/chunks/{chevrons-up-down-B2viXO2I.js → chevrons-up-down-BsdQRmJL.js} +1 -1
  8. package/dist/chunks/dashboard-briefing-launcher-5fM_KJoT.js +7321 -0
  9. package/dist/chunks/dashboard-briefing-launcher-CVxLt10p.js +96 -0
  10. package/dist/chunks/dashboard-controls-9YV-D1tD.js +2009 -0
  11. package/dist/chunks/dashboard-controls-UR_m0wD1.js +57 -0
  12. package/dist/chunks/{dashboard-json-CJCAen1R.js → dashboard-json-CKPID8Am.js} +2 -2
  13. package/dist/chunks/{dashboard-json-v2C6Tmqf.js → dashboard-json-ws4tortP.js} +1 -1
  14. package/dist/chunks/edit-dashboard-visual-CmxnZI8I.js +178 -0
  15. package/dist/chunks/{edit-dashboard-visual-DljWvnMy.js → edit-dashboard-visual-ifKJLMTS.js} +807 -822
  16. package/dist/chunks/index-Xdag_85e.js +1298 -0
  17. package/dist/chunks/{index-P5hPTTzm.js → index-gcA9Rs35.js} +41178 -46390
  18. package/dist/chunks/{palette-CIuwlEiG.js → palette-BlxLchHy.js} +1 -1
  19. package/dist/chunks/{resource-management-panel-CAxXzMdi.js → resource-management-panel-BduJanWW.js} +1 -1
  20. package/dist/chunks/{resource-management-panel-Dk0DzgVm.js → resource-management-panel-paSAzVj2.js} +81 -81
  21. package/dist/chunks/{save-_ALpoMy6.js → save-DVRQBMeb.js} +1 -1
  22. package/dist/chunks/{switch-B6fh8nb-.js → switch-sauemjyY.js} +199 -199
  23. package/dist/chunks/{use-create-flow-overlay-state-Cqf7GaFm.js → use-create-flow-overlay-state-DKV6tIc5.js} +254 -225
  24. package/dist/chunks/use-create-flow-overlay-state-DWnzVVlP.js +26 -0
  25. package/dist/chunks/{use-visual-utils-CQQ3jvDn.js → use-visual-utils-C8PDxg2w.js} +1 -1
  26. package/dist/chunks/{use-visual-utils-CPMQLBYR.js → use-visual-utils-Cs0-baCK.js} +48 -48
  27. package/dist/dashboard/index.cjs +1 -1
  28. package/dist/dashboard/index.js +1 -1
  29. package/dist/index.cjs +1 -1
  30. package/dist/index.js +232 -485
  31. package/dist/style.css +1 -1
  32. package/dist/surfboard/index.cjs +1 -1
  33. package/dist/surfboard/index.js +2 -2
  34. package/dist/types/briefings.d.ts +240 -0
  35. package/dist/types/dashboard.d.ts +1 -0
  36. package/dist/types/main.d.ts +619 -1017
  37. package/dist/types/surfboard.d.ts +1 -0
  38. package/dist/types/types.d.ts +411 -261
  39. package/package.json +7 -2
  40. package/dist/chunks/dashboard-controls-BS_aZcxs.js +0 -57
  41. package/dist/chunks/dashboard-controls-DbKtbw1V.js +0 -2021
  42. package/dist/chunks/dashboard-filter-controls-launcher-C8Wm2Smj.js +0 -1540
  43. package/dist/chunks/dashboard-filter-controls-launcher-CMXpudFJ.js +0 -11
  44. package/dist/chunks/edit-dashboard-visual-lRn3FeaP.js +0 -183
  45. package/dist/chunks/index-XYIIY48z.js +0 -1330
  46. package/dist/chunks/use-create-flow-overlay-state-DMZTflFt.js +0 -16
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-XYIIY48z.js"),e=require("../chunks/common-types-C73-Ud1-.js"),a=require("../chunks/calendar-preferences-dialog-BzpQ5u4h.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-Xdag_85e.js"),e=require("../chunks/common-types-C73-Ud1-.js"),a=require("../chunks/calendar-preferences-dialog-BDdxi7Xm.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;
@@ -1,6 +1,6 @@
1
- import { a as e } from "../chunks/index-P5hPTTzm.js";
1
+ import { a as e } from "../chunks/index-gcA9Rs35.js";
2
2
  import { C, E } from "../chunks/common-types-4bjoIgvm.js";
3
- import { C as s } from "../chunks/calendar-preferences-dialog-D70CuT-1.js";
3
+ import { C as s } from "../chunks/calendar-preferences-dialog-9NlFzHX8.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;