react-semaphor 0.1.421 → 0.1.423
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.cjs +1 -1
- package/dist/analytics-protocol/index.js +2 -2
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +2 -2
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +913 -712
- package/dist/chunks/{analyze-result-contract-sWcmvBOA.js → analyze-result-contract-D7pjjYPy.js} +45 -46
- package/dist/chunks/{analyze-result-contract-B5Eeu7vD.js → analyze-result-contract-DpDcImgk.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-CscmhyuZ.js → calendar-preferences-dialog-CTmeASaM.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-cN3_2C-u.js → calendar-preferences-dialog-t5ET6MON.js} +3 -3
- package/dist/chunks/card-config-utils-15sRtebL.js +1 -0
- package/dist/chunks/card-config-utils-BYZ5MJOh.js +16 -0
- package/dist/chunks/dashboard-briefing-launcher-Cavd0QJb.js +3401 -0
- package/dist/chunks/dashboard-briefing-launcher-S2akO-ub.js +26 -0
- package/dist/chunks/dashboard-controls-BJLrErjW.js +2322 -0
- package/dist/chunks/dashboard-controls-DzbP8AXA.js +52 -0
- package/dist/chunks/dashboard-json-5tWb5KD6.js +1 -0
- package/dist/chunks/{dashboard-json-Cxhw2TZc.js → dashboard-json-Do2-pdPZ.js} +12 -11
- package/dist/chunks/{edit-dashboard-visual-BigSJ3-x.js → edit-dashboard-visual-Cw6bq4_w.js} +7058 -6989
- package/dist/chunks/edit-dashboard-visual-Yh5YFgMF.js +178 -0
- package/dist/chunks/index-BPM3gDRw.js +1406 -0
- package/dist/chunks/{index-CH2ZzQo4.js → index-yHe0SeLO.js} +81534 -75430
- package/dist/chunks/{switch-TbCsyhv9.js → switch-2bh3Hka1.js} +620 -633
- package/dist/chunks/{switch-CiOjVyVI.js → switch-DMT7qf_R.js} +24 -24
- package/dist/chunks/{update-policy-2MZ-Vf7v.js → update-policy-BCJc0oI5.js} +1 -1
- package/dist/chunks/{update-policy-qpyAkOyO.js → update-policy-C1pmhLz9.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BzcJWNzh.js → use-create-flow-overlay-state-5MDbZcs1.js} +515 -544
- package/dist/chunks/use-create-flow-overlay-state-BNczg9Gj.js +11 -0
- package/dist/chunks/{validators-Dj1Y-46V.js → validators-DMlVbd1p.js} +1 -1
- package/dist/chunks/{validators-D0pfj3jJ.js → validators-PXkij33j.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +1 -1
- package/dist/dashboard-authoring/index.js +2 -2
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +108 -108
- package/dist/data-app-codegen/index.cjs +1 -1
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.cjs +165 -340
- package/dist/data-app-codegen-node/index.js +761 -952
- package/dist/data-app-sdk/index.cjs +2 -2
- package/dist/data-app-sdk/index.js +91 -95
- package/dist/data-app-sdk-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +1 -1
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +168 -164
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +0 -4
- package/dist/types/briefings.d.ts +2388 -7
- package/dist/types/dashboard-assistant.d.ts +0 -1
- package/dist/types/data-app-sdk-validation.d.ts +0 -1
- package/dist/types/data-app-sdk.d.ts +0 -2
- package/dist/types/main.d.ts +70 -10
- package/dist/types/types.d.ts +4 -8
- package/package.json +1 -1
- package/dist/chunks/dashboard-briefing-launcher-BYTBNetR.js +0 -9077
- package/dist/chunks/dashboard-briefing-launcher-DmZkzIC3.js +0 -80
- package/dist/chunks/dashboard-controls-9DFeKIP4.js +0 -52
- package/dist/chunks/dashboard-controls-PhzuaTBj.js +0 -2280
- package/dist/chunks/dashboard-json-DyRHI3mL.js +0 -1
- package/dist/chunks/edit-dashboard-visual-3_jiBXsu.js +0 -178
- package/dist/chunks/index-BKDQw0aK.js +0 -1346
- package/dist/chunks/use-create-flow-overlay-state-DUQmgb9H.js +0 -21
|
@@ -1331,7 +1331,6 @@ declare type SemaphorMetricIntent = {
|
|
|
1331
1331
|
|
|
1332
1332
|
declare type SemaphorMetricResult = SemaphorAnalyticsResultBase & {
|
|
1333
1333
|
kind: 'metric';
|
|
1334
|
-
value: number | string | null;
|
|
1335
1334
|
primaryValue: number | string | null;
|
|
1336
1335
|
missingMeasures?: string[];
|
|
1337
1336
|
comparison?: {
|
|
@@ -954,7 +954,6 @@ declare type SemaphorMetricQuerySpec = SemaphorQuerySourceSpec & SemaphorAppDeri
|
|
|
954
954
|
|
|
955
955
|
declare type SemaphorMetricResult = SemaphorAnalyticsResultBase & {
|
|
956
956
|
kind: 'metric';
|
|
957
|
-
value: number | string | null;
|
|
958
957
|
primaryValue: number | string | null;
|
|
959
958
|
missingMeasures?: string[];
|
|
960
959
|
comparison?: {
|
|
@@ -1309,7 +1309,6 @@ declare type SemaphorMetricIntent = {
|
|
|
1309
1309
|
export declare function semaphorMetricMeasureBindingKey(field: SemaphorFieldRef): string;
|
|
1310
1310
|
|
|
1311
1311
|
export declare type SemaphorMetricPayload = {
|
|
1312
|
-
value: number | string | null;
|
|
1313
1312
|
primaryValue: number | string | null;
|
|
1314
1313
|
measures?: Record<string, number | string | null>;
|
|
1315
1314
|
measureBindings?: Record<string, string>;
|
|
@@ -1349,7 +1348,6 @@ export declare type SemaphorMetricQuerySpec = SemaphorQuerySourceSpec & Semaphor
|
|
|
1349
1348
|
|
|
1350
1349
|
declare type SemaphorMetricResult = SemaphorAnalyticsResultBase & {
|
|
1351
1350
|
kind: 'metric';
|
|
1352
|
-
value: number | string | null;
|
|
1353
1351
|
primaryValue: number | string | null;
|
|
1354
1352
|
missingMeasures?: string[];
|
|
1355
1353
|
comparison?: {
|
package/dist/types/main.d.ts
CHANGED
|
@@ -7,9 +7,12 @@ import { FetchStatus } from '@tanstack/query-core';
|
|
|
7
7
|
import { FontSpec } from 'chart.js';
|
|
8
8
|
import { JSX } from 'react/jsx-runtime';
|
|
9
9
|
import { JSX as JSX_2 } from 'react';
|
|
10
|
+
import { JSXElementConstructor } from 'react';
|
|
10
11
|
import { QueryObserverResult } from '@tanstack/query-core';
|
|
11
12
|
import * as React_2 from 'react';
|
|
13
|
+
import { ReactElement } from 'react';
|
|
12
14
|
import { ReactNode } from 'react';
|
|
15
|
+
import { ReactPortal } from 'react';
|
|
13
16
|
import { RefetchOptions } from '@tanstack/query-core';
|
|
14
17
|
import { StoreApi } from 'zustand';
|
|
15
18
|
import { UseBoundStore } from 'zustand';
|
|
@@ -573,16 +576,11 @@ export declare type BriefingAttachment = (BriefingAttachmentBase & {
|
|
|
573
576
|
dashboardId: string;
|
|
574
577
|
sheetId: string;
|
|
575
578
|
format: 'pdf';
|
|
576
|
-
}) | (BriefingAttachmentBase & {
|
|
577
|
-
type: 'visual';
|
|
578
|
-
dashboardId: string;
|
|
579
|
-
visualId: string;
|
|
580
|
-
format: 'pdf' | 'png';
|
|
581
579
|
}) | (BriefingAttachmentBase & {
|
|
582
580
|
type: 'card';
|
|
583
581
|
dashboardId: string;
|
|
584
582
|
cardId: string;
|
|
585
|
-
format: 'csv' | 'pdf'
|
|
583
|
+
format: 'csv' | 'pdf';
|
|
586
584
|
});
|
|
587
585
|
|
|
588
586
|
declare type BriefingAttachmentBase = {
|
|
@@ -590,7 +588,7 @@ declare type BriefingAttachmentBase = {
|
|
|
590
588
|
settings?: BriefingAttachmentSettings;
|
|
591
589
|
};
|
|
592
590
|
|
|
593
|
-
export declare type BriefingAttachmentFormat = 'pdf' | 'csv'
|
|
591
|
+
export declare type BriefingAttachmentFormat = 'pdf' | 'csv';
|
|
594
592
|
|
|
595
593
|
export declare type BriefingAttachmentSettings = {
|
|
596
594
|
theme?: string;
|
|
@@ -616,9 +614,10 @@ export declare type BriefingAttachmentSettings = {
|
|
|
616
614
|
dashboardInputExecutionSnapshot?: Record<string, unknown>;
|
|
617
615
|
selectedSheetId?: string;
|
|
618
616
|
cardType?: string;
|
|
617
|
+
allowDownload?: boolean;
|
|
619
618
|
};
|
|
620
619
|
|
|
621
|
-
export declare function BriefingAuthor({ apiServiceUrl, token, briefing, sourceContext, title, className, client, generateRequestId, onSaved, onDeleted, onRunStarted, onCancel, onBack, onMinimizeRun, }: BriefingAuthorProps): JSX.Element;
|
|
620
|
+
export declare function BriefingAuthor({ apiServiceUrl, token, briefing, intent, initialAttachments, initialName, initialMessage, initialTimezone, availableDashboards, sourceContext, title, hideHeader, className, client, generateRequestId, onSaved, onDeleted, onRunStarted, onCancel, onBack, onMinimizeRun, }: BriefingAuthorProps): JSX.Element;
|
|
622
621
|
|
|
623
622
|
export declare type BriefingAuthorClient = {
|
|
624
623
|
createBriefing: typeof createBriefing;
|
|
@@ -638,12 +637,50 @@ export declare type BriefingAuthorClient = {
|
|
|
638
637
|
polishBriefingText: typeof polishBriefingText;
|
|
639
638
|
};
|
|
640
639
|
|
|
640
|
+
export declare function BriefingAuthorDialog({ open, onOpenChange, launchRequest, briefing, authorProps, }: BriefingAuthorDialogProps): JSX.Element;
|
|
641
|
+
|
|
642
|
+
export declare type BriefingAuthorDialogProps = {
|
|
643
|
+
open: boolean;
|
|
644
|
+
onOpenChange: (open: boolean) => void;
|
|
645
|
+
launchRequest: BriefingAuthorLaunchRequest;
|
|
646
|
+
briefing?: BriefingDetail | null;
|
|
647
|
+
authorProps?: Omit<BriefingAuthorProps, 'briefing' | 'intent' | 'sourceContext' | 'initialAttachments' | 'initialName' | 'initialMessage' | 'initialTimezone' | 'availableDashboards' | 'title' | 'onCancel'>;
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
export declare type BriefingAuthorIntent = 'scheduled_report' | 'analytical_briefing';
|
|
651
|
+
|
|
652
|
+
export declare type BriefingAuthorLaunchRequest = {
|
|
653
|
+
intent: BriefingAuthorIntent;
|
|
654
|
+
sourceContext: BriefingAuthorSourceContext;
|
|
655
|
+
initialAttachments?: BriefingAttachment[];
|
|
656
|
+
initialName?: string;
|
|
657
|
+
initialMessage?: string;
|
|
658
|
+
initialTimezone?: string;
|
|
659
|
+
availableDashboards?: Array<{
|
|
660
|
+
id: string;
|
|
661
|
+
title: string;
|
|
662
|
+
dashboard?: TDashboard;
|
|
663
|
+
}>;
|
|
664
|
+
title?: string;
|
|
665
|
+
};
|
|
666
|
+
|
|
641
667
|
export declare type BriefingAuthorProps = {
|
|
642
668
|
apiServiceUrl?: string;
|
|
643
669
|
token?: string;
|
|
644
670
|
briefing?: BriefingDetail | null;
|
|
671
|
+
intent?: BriefingAuthorIntent;
|
|
672
|
+
initialAttachments?: BriefingAttachment[];
|
|
673
|
+
initialName?: string;
|
|
674
|
+
initialMessage?: string;
|
|
675
|
+
initialTimezone?: string;
|
|
676
|
+
availableDashboards?: Array<{
|
|
677
|
+
id: string;
|
|
678
|
+
title: string;
|
|
679
|
+
dashboard?: TDashboard;
|
|
680
|
+
}>;
|
|
645
681
|
sourceContext?: BriefingAuthorSourceContext;
|
|
646
682
|
title?: string;
|
|
683
|
+
hideHeader?: boolean;
|
|
647
684
|
className?: string;
|
|
648
685
|
client?: Partial<BriefingAuthorClient>;
|
|
649
686
|
generateRequestId?: () => string;
|
|
@@ -724,7 +761,6 @@ export declare type BriefingDeliveryConfig = {
|
|
|
724
761
|
};
|
|
725
762
|
|
|
726
763
|
export declare interface BriefingDetail extends BriefingListItem {
|
|
727
|
-
deliveryConfig: BriefingDeliveryConfig | null;
|
|
728
764
|
latestRun?: BriefingRun | null;
|
|
729
765
|
}
|
|
730
766
|
|
|
@@ -827,6 +863,7 @@ export declare interface BriefingListItem {
|
|
|
827
863
|
body: BriefingBody;
|
|
828
864
|
attachments: BriefingAttachment[];
|
|
829
865
|
presentation: BriefingPresentation;
|
|
866
|
+
deliveryConfig: BriefingDeliveryConfig | null;
|
|
830
867
|
limits?: BriefingLimits;
|
|
831
868
|
scope?: BriefingScopeMetadata;
|
|
832
869
|
creator?: BriefingCreatorMetadata;
|
|
@@ -1045,6 +1082,23 @@ export declare type BriefingTenantSummary = {
|
|
|
1045
1082
|
|
|
1046
1083
|
export declare function briefingToFormDraft(briefing: BriefingDetail): BriefingFormDraft;
|
|
1047
1084
|
|
|
1085
|
+
export declare type BriefingUiCapabilities = {
|
|
1086
|
+
surfaceVisible: boolean;
|
|
1087
|
+
canCreate: boolean;
|
|
1088
|
+
analyticalBriefingsEnabled: boolean;
|
|
1089
|
+
userType: 'organization' | 'tenant' | null;
|
|
1090
|
+
loading: boolean;
|
|
1091
|
+
error: boolean;
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
export declare function BriefingUiCapabilitiesBoundary({ children, }: {
|
|
1095
|
+
children: ReactNode;
|
|
1096
|
+
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | JSX.Element | null | undefined;
|
|
1097
|
+
|
|
1098
|
+
export declare function BriefingUiCapabilitiesProvider({ children, }: {
|
|
1099
|
+
children: ReactNode;
|
|
1100
|
+
}): JSX.Element;
|
|
1101
|
+
|
|
1048
1102
|
declare type BriefingWebhookConfig = {
|
|
1049
1103
|
url: string;
|
|
1050
1104
|
method?: 'POST' | 'PUT';
|
|
@@ -1779,7 +1833,7 @@ export declare type DashboardAuthoringSource = DashboardAuthoringDatasetRef & {
|
|
|
1779
1833
|
primaryDateField?: string;
|
|
1780
1834
|
};
|
|
1781
1835
|
|
|
1782
|
-
export declare function DashboardBriefingLauncher(
|
|
1836
|
+
export declare function DashboardBriefingLauncher(props: DashboardBriefingLauncherProps): JSX.Element;
|
|
1783
1837
|
|
|
1784
1838
|
declare type DashboardBriefingLauncherClient = {
|
|
1785
1839
|
listBriefings: typeof listBriefings;
|
|
@@ -1798,6 +1852,10 @@ export declare type DashboardBriefingLauncherProps = {
|
|
|
1798
1852
|
disabled?: boolean;
|
|
1799
1853
|
className?: string;
|
|
1800
1854
|
manageBriefingsHref?: string;
|
|
1855
|
+
open?: boolean;
|
|
1856
|
+
onOpenChange?: (open: boolean) => void;
|
|
1857
|
+
hideTrigger?: boolean;
|
|
1858
|
+
workflowIntent?: BriefingAuthorIntent;
|
|
1801
1859
|
client?: Partial<DashboardBriefingLauncherClient>;
|
|
1802
1860
|
};
|
|
1803
1861
|
|
|
@@ -6866,6 +6924,8 @@ export declare function useAddNewFrame(): {
|
|
|
6866
6924
|
canAddFrame: boolean;
|
|
6867
6925
|
};
|
|
6868
6926
|
|
|
6927
|
+
export declare function useBriefingUiCapabilities(): BriefingUiCapabilities;
|
|
6928
|
+
|
|
6869
6929
|
export declare function useCard(cardId: string): {
|
|
6870
6930
|
data: any;
|
|
6871
6931
|
card: TCard;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -191,16 +191,11 @@ export declare type BriefingAttachment = (BriefingAttachmentBase & {
|
|
|
191
191
|
dashboardId: string;
|
|
192
192
|
sheetId: string;
|
|
193
193
|
format: 'pdf';
|
|
194
|
-
}) | (BriefingAttachmentBase & {
|
|
195
|
-
type: 'visual';
|
|
196
|
-
dashboardId: string;
|
|
197
|
-
visualId: string;
|
|
198
|
-
format: 'pdf' | 'png';
|
|
199
194
|
}) | (BriefingAttachmentBase & {
|
|
200
195
|
type: 'card';
|
|
201
196
|
dashboardId: string;
|
|
202
197
|
cardId: string;
|
|
203
|
-
format: 'csv' | 'pdf'
|
|
198
|
+
format: 'csv' | 'pdf';
|
|
204
199
|
});
|
|
205
200
|
|
|
206
201
|
declare type BriefingAttachmentBase = {
|
|
@@ -208,7 +203,7 @@ declare type BriefingAttachmentBase = {
|
|
|
208
203
|
settings?: BriefingAttachmentSettings;
|
|
209
204
|
};
|
|
210
205
|
|
|
211
|
-
export declare type BriefingAttachmentFormat = 'pdf' | 'csv'
|
|
206
|
+
export declare type BriefingAttachmentFormat = 'pdf' | 'csv';
|
|
212
207
|
|
|
213
208
|
export declare type BriefingAttachmentSettings = {
|
|
214
209
|
theme?: string;
|
|
@@ -234,6 +229,7 @@ export declare type BriefingAttachmentSettings = {
|
|
|
234
229
|
dashboardInputExecutionSnapshot?: Record<string, unknown>;
|
|
235
230
|
selectedSheetId?: string;
|
|
236
231
|
cardType?: string;
|
|
232
|
+
allowDownload?: boolean;
|
|
237
233
|
};
|
|
238
234
|
|
|
239
235
|
export declare type BriefingBody = {
|
|
@@ -279,7 +275,6 @@ export declare type BriefingDeliveryConfig = {
|
|
|
279
275
|
};
|
|
280
276
|
|
|
281
277
|
export declare interface BriefingDetail extends BriefingListItem {
|
|
282
|
-
deliveryConfig: BriefingDeliveryConfig | null;
|
|
283
278
|
latestRun?: BriefingRun | null;
|
|
284
279
|
}
|
|
285
280
|
|
|
@@ -323,6 +318,7 @@ export declare interface BriefingListItem {
|
|
|
323
318
|
body: BriefingBody;
|
|
324
319
|
attachments: BriefingAttachment[];
|
|
325
320
|
presentation: BriefingPresentation;
|
|
321
|
+
deliveryConfig: BriefingDeliveryConfig | null;
|
|
326
322
|
limits?: BriefingLimits;
|
|
327
323
|
scope?: BriefingScopeMetadata;
|
|
328
324
|
creator?: BriefingCreatorMetadata;
|