react-semaphor 0.1.319 → 0.1.320

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 (30) hide show
  1. package/dist/briefings/index.cjs +1 -1
  2. package/dist/briefings/index.js +567 -207
  3. package/dist/chunks/{calendar-preferences-dialog-DPaVsZlk.js → calendar-preferences-dialog-B7Z8OnuZ.js} +1 -1
  4. package/dist/chunks/{calendar-preferences-dialog-DLKB05SY.js → calendar-preferences-dialog-CFXQBJ4A.js} +1 -1
  5. package/dist/chunks/{dashboard-briefing-launcher-DR_i0anv.js → dashboard-briefing-launcher-DB16djcj.js} +2142 -2065
  6. package/dist/chunks/dashboard-briefing-launcher-DjDpGyD7.js +106 -0
  7. package/dist/chunks/{dashboard-controls-BNAIucBl.js → dashboard-controls-BisfskDD.js} +1 -1
  8. package/dist/chunks/{dashboard-controls-8J06Ot-K.js → dashboard-controls-DPStW1kd.js} +3 -3
  9. package/dist/chunks/{dashboard-json-B_Li7wO5.js → dashboard-json-2nyFJ_-w.js} +1 -1
  10. package/dist/chunks/{dashboard-json-DIsACFCO.js → dashboard-json-C8-kkiyT.js} +1 -1
  11. package/dist/chunks/{edit-dashboard-visual-2CBS2I52.js → edit-dashboard-visual-BP77bJFI.js} +1 -1
  12. package/dist/chunks/{edit-dashboard-visual-BGnC2DH7.js → edit-dashboard-visual-D6oiTlXr.js} +3 -3
  13. package/dist/chunks/{index-DYycYzpZ.js → index-Clw0hJzi.js} +4 -4
  14. package/dist/chunks/{index-cxoegFH9.js → index-D8eouWYC.js} +1 -1
  15. package/dist/chunks/{resource-management-panel-BwNGxqrB.js → resource-management-panel-DTvY5OIq.js} +1 -1
  16. package/dist/chunks/{resource-management-panel-YtbKp2kW.js → resource-management-panel-HcRJRZHO.js} +2 -2
  17. package/dist/chunks/{use-create-flow-overlay-state-Qnd7FF6L.js → use-create-flow-overlay-state-75l5mrVp.js} +2 -2
  18. package/dist/chunks/{use-create-flow-overlay-state-DQZneUXL.js → use-create-flow-overlay-state-CdCldE6J.js} +1 -1
  19. package/dist/chunks/{use-visual-utils-t73RlvjS.js → use-visual-utils-Bd4Cf9_B.js} +1 -1
  20. package/dist/chunks/{use-visual-utils-BdMhr0YR.js → use-visual-utils-CMdEUnM5.js} +1 -1
  21. package/dist/dashboard/index.cjs +1 -1
  22. package/dist/dashboard/index.js +1 -1
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +5 -5
  25. package/dist/style.css +1 -1
  26. package/dist/surfboard/index.cjs +1 -1
  27. package/dist/surfboard/index.js +2 -2
  28. package/dist/types/briefings.d.ts +96 -0
  29. package/package.json +1 -1
  30. package/dist/chunks/dashboard-briefing-launcher-F3qKyuGr.js +0 -106
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-cxoegFH9.js"),e=require("../chunks/common-types-C73-Ud1-.js"),a=require("../chunks/calendar-preferences-dialog-DLKB05SY.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-D8eouWYC.js"),e=require("../chunks/common-types-C73-Ud1-.js"),a=require("../chunks/calendar-preferences-dialog-CFXQBJ4A.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-DYycYzpZ.js";
1
+ import { a as e } from "../chunks/index-Clw0hJzi.js";
2
2
  import { C, E } from "../chunks/common-types-4bjoIgvm.js";
3
- import { C as s } from "../chunks/calendar-preferences-dialog-DPaVsZlk.js";
3
+ import { C as s } from "../chunks/calendar-preferences-dialog-B7Z8OnuZ.js";
4
4
  export {
5
5
  C as CONTROL_CARD_DEFAULT_VALUE,
6
6
  s as CalendarPreferencesDialog,
@@ -1,5 +1,15 @@
1
1
  export declare const BRIEFING_ARTIFACT_FORMATS: readonly ["markdown", "html"];
2
2
 
3
+ export declare const BRIEFING_CONTENT_LIMITS: {
4
+ readonly maxBlocks: 50;
5
+ readonly maxTableRows: 100;
6
+ readonly maxTableColumns: 20;
7
+ readonly maxTableCellCharacters: 500;
8
+ readonly maxParagraphCharacters: 5000;
9
+ readonly maxFindingCharacters: 5000;
10
+ readonly maxListItems: 100;
11
+ };
12
+
3
13
  export declare const BRIEFING_KIND: "BRIEFING";
4
14
 
5
15
  export declare const BRIEFING_TEXT_LIMITS: {
@@ -7,6 +17,11 @@ export declare const BRIEFING_TEXT_LIMITS: {
7
17
  readonly description: 2000;
8
18
  readonly instruction: 50000;
9
19
  readonly customMessage: 50000;
20
+ readonly contentTitle: 500;
21
+ readonly contentSummary: 20000;
22
+ readonly contentText: 5000;
23
+ readonly contentItem: 2000;
24
+ readonly contentCell: 500;
10
25
  readonly attachmentTitle: 500;
11
26
  readonly presentationAudience: 1000;
12
27
  readonly presentationTone: 500;
@@ -95,6 +110,83 @@ export declare type BriefingChannelConfig = {
95
110
  webhookConfig?: BriefingWebhookConfig;
96
111
  };
97
112
 
113
+ export declare type BriefingContentBlock = {
114
+ type: 'heading';
115
+ text: string;
116
+ level?: 2 | 3;
117
+ evidenceIds?: string[];
118
+ } | {
119
+ type: 'paragraph';
120
+ text: string;
121
+ evidenceIds?: string[];
122
+ } | {
123
+ type: 'finding';
124
+ title?: string;
125
+ text: string;
126
+ severity?: BriefingContentSeverity;
127
+ evidenceIds: string[];
128
+ } | {
129
+ type: 'bullets';
130
+ title?: string;
131
+ items: string[];
132
+ evidenceIds?: string[];
133
+ } | {
134
+ type: 'metric';
135
+ label: string;
136
+ value: string | number;
137
+ previousValue?: string | number | null;
138
+ delta?: string | number | null;
139
+ unit?: string;
140
+ evidenceIds?: string[];
141
+ } | BriefingContentTableBlock | {
142
+ type: 'actions';
143
+ title?: string;
144
+ items: string[];
145
+ evidenceIds?: string[];
146
+ } | {
147
+ type: 'limitations';
148
+ title?: string;
149
+ items: string[];
150
+ evidenceIds?: string[];
151
+ } | {
152
+ type: 'evidence_appendix';
153
+ title?: string;
154
+ evidenceIds: string[];
155
+ };
156
+
157
+ export declare type BriefingContentColumnAlign = 'left' | 'center' | 'right';
158
+
159
+ export declare type BriefingContentColumnKind = 'text' | 'number' | 'currency' | 'percent' | 'date' | 'boolean';
160
+
161
+ export declare type BriefingContentDocument = {
162
+ version: 1;
163
+ title?: string;
164
+ summary?: string;
165
+ blocks: BriefingContentBlock[];
166
+ };
167
+
168
+ export declare type BriefingContentScalar = string | number | boolean | null;
169
+
170
+ export declare type BriefingContentSeverity = 'info' | 'positive' | 'warning' | 'critical';
171
+
172
+ export declare type BriefingContentTableBlock = {
173
+ type: 'table';
174
+ id?: string;
175
+ title?: string;
176
+ columns: BriefingContentTableColumn[];
177
+ rows: Array<Record<string, BriefingContentScalar>>;
178
+ caption?: string;
179
+ totalRows?: number;
180
+ evidenceIds?: string[];
181
+ };
182
+
183
+ export declare type BriefingContentTableColumn = {
184
+ key: string;
185
+ label: string;
186
+ kind?: BriefingContentColumnKind;
187
+ align?: BriefingContentColumnAlign;
188
+ };
189
+
98
190
  export declare class BriefingContractError extends Error {
99
191
  readonly issues: BriefingValidationIssue[];
100
192
  constructor(issues: BriefingValidationIssue[]);
@@ -255,12 +347,16 @@ export declare function isBriefingDeliveryChannel(input: unknown): input is Brie
255
347
 
256
348
  export declare const MAX_BRIEFING_ATTACHMENTS = 20;
257
349
 
350
+ export declare function normalizeBriefingContentDocument(input: unknown): BriefingContentDocument;
351
+
258
352
  export declare function normalizeBriefingDraft(input: unknown): CreateBriefingRequest;
259
353
 
260
354
  export declare function normalizeBriefingJobConfig(input: unknown): BriefingJobConfig;
261
355
 
262
356
  export declare type UpdateBriefingRequest = CreateBriefingRequest;
263
357
 
358
+ export declare function validateBriefingContentDocument(input: unknown): BriefingValidationResult<BriefingContentDocument>;
359
+
264
360
  export declare function validateBriefingDraft(draft: unknown): BriefingValidationResult<CreateBriefingRequest>;
265
361
 
266
362
  export declare function validateBriefingJobConfig(input: unknown): BriefingValidationResult<BriefingJobConfig>;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.319",
8
+ "version": "0.1.320",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",