react-semaphor 0.1.534 → 0.1.535

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 (42) hide show
  1. package/dist/brand-studio/index.js +25 -25
  2. package/dist/briefings/index.js +1 -1
  3. package/dist/chunks/{calculated-field-identity-Cz1ZU_UL.js → calculated-field-identity-BptYhyOP.js} +4 -4
  4. package/dist/chunks/{card-config-utils-BlIiFn0O.js → card-config-utils-C-QfuqEy.js} +50 -51
  5. package/dist/chunks/{dashboard-CCK80YKL.js → dashboard-B7y_WeF2.js} +1 -1
  6. package/dist/chunks/dashboard-briefing-launcher-DwSxDtgZ.js +4224 -0
  7. package/dist/chunks/{dashboard-controls-CoiTGnEr.js → dashboard-controls-CzTh9J0s.js} +862 -873
  8. package/dist/chunks/{dashboard-json-BRGozO--.js → dashboard-json-o6tOjNhH.js} +1 -1
  9. package/dist/chunks/{edit-dashboard-visual-CZFnhGZQ.js → edit-dashboard-visual-Lp_iKRGH.js} +8983 -8749
  10. package/dist/chunks/{index-BQl5rC54.js → index-P5aUuGF1.js} +1 -1
  11. package/dist/chunks/{matrix-control-sources-Tls-h3AN.js → matrix-control-sources-DTqcA2_L.js} +1 -1
  12. package/dist/chunks/report-preferences-dialog-BaUr346O.js +1623 -0
  13. package/dist/chunks/{layout-grid-CiubineE.js → save-kO6cIaob.js} +20 -2
  14. package/dist/chunks/{semaphor-ready-indicator-z4SNdxiC.js → semaphor-ready-indicator-B017OW6t.js} +61957 -76531
  15. package/dist/chunks/slider-CrLoCpsr.js +2383 -0
  16. package/dist/chunks/{switch-BR3Xgbqr.js → switch-ojmMsFMO.js} +4355 -4779
  17. package/dist/chunks/upload-CAIpsti1.js +15 -0
  18. package/dist/chunks/use-create-flow-overlay-state-BbwQ0gpQ.js +1457 -0
  19. package/dist/dashboard/index.js +1 -1
  20. package/dist/dashboard-authoring/index.js +4 -4
  21. package/dist/index.js +221 -220
  22. package/dist/style.css +1 -1
  23. package/dist/surfboard/index.js +1 -1
  24. package/dist/types/components/surfboard/controls/dashboard-filter-controls-launcher.d.ts +0 -1
  25. package/dist/types/lib/hooks/use-dashboard-query.d.ts +0 -2
  26. package/dist/types/lib/hooks/use-dashboard.d.ts +0 -1
  27. package/dist/types/lib/stores/dashboard-store.d.ts +1 -11
  28. package/dist/types/lib/stores/editor-store.d.ts +1 -10
  29. package/dist/types/lib/types/ai-context-types.d.ts +20 -0
  30. package/dist/types/lib/types/common-types.d.ts +1 -20
  31. package/dist/types/lib/types/token-types.d.ts +0 -7
  32. package/dist/types/lib/utils.d.ts +0 -2
  33. package/package.json +1 -7
  34. package/dist/chunks/dashboard-briefing-launcher-B9Fq2Rf3.js +0 -3489
  35. package/dist/chunks/editor-action-buttons-CVtSO3I3.js +0 -2067
  36. package/dist/chunks/report-preferences-dialog-CWdTlWsr.js +0 -1231
  37. package/dist/chunks/save-DgMfP0j8.js +0 -21
  38. package/dist/chunks/slider-DbwmuVB-.js +0 -875
  39. package/dist/dashboard-assistant/index.js +0 -11
  40. package/dist/types/dashboard-assistant/index.d.ts +0 -80
  41. package/dist/types/dashboard-assistant.d.ts +0 -2
  42. package/dist/types/lib/types/assistant-types.d.ts +0 -127
@@ -1,11 +0,0 @@
1
- const n = [
2
- "tool-runDashboardAnalysis",
3
- "tool-runAdvancedAnalysis"
4
- ];
5
- function o(s) {
6
- return n.includes(s);
7
- }
8
- export {
9
- n as DASHBOARD_ASSISTANT_VISUAL_TOOL_PART_TYPES,
10
- o as isDashboardAssistantVisualToolPartType
11
- };
@@ -1,80 +0,0 @@
1
- import { SemaphorAnalyticsExecutionResult, SemaphorAnalyticsIntent, SemaphorResultColumn } from '../shared/analytics-protocol/index.js';
2
- import { TChartType } from '../lib/charts/types.js';
3
- import { DataSource, CardConfig, QueryColumnKeyMap } from '../lib/types/index.js';
4
- import { TemporalResultOwner } from '../shared/dashboard-authoring/index.js';
5
- import { CanonicalPivotResultTransport } from '../shared/format-utils/index.js';
6
- export type DashboardAssistantOperationKind = 'answer' | 'preview_visual' | 'explain_card' | 'add_visual';
7
- export type DashboardAssistantInspectMode = 'dashboard_summary' | 'card_context' | 'artifact_context';
8
- export type DashboardAssistantVisualToolName = 'runDashboardAnalysis' | 'runAdvancedAnalysis';
9
- export declare const DASHBOARD_ASSISTANT_VISUAL_TOOL_PART_TYPES: readonly ["tool-runDashboardAnalysis", "tool-runAdvancedAnalysis"];
10
- export type DashboardAssistantVisualToolPartType = (typeof DASHBOARD_ASSISTANT_VISUAL_TOOL_PART_TYPES)[number];
11
- export declare function isDashboardAssistantVisualToolPartType(value: string): value is DashboardAssistantVisualToolPartType;
12
- export type DashboardAssistantTurnContext = {
13
- selectedSheetId: string | null;
14
- visibleCards: Array<Record<string, unknown>>;
15
- activeFilters: unknown[];
16
- inlineFilters?: unknown[];
17
- interactionFilters?: unknown[];
18
- linkedInsightReplacements?: Record<string, unknown>;
19
- sourceRefs?: unknown[];
20
- fieldRefs?: unknown[];
21
- };
22
- export type DashboardAssistantAnalysisRequest = {
23
- operation: DashboardAssistantOperationKind;
24
- analyticsIntent: SemaphorAnalyticsIntent;
25
- chartTitle?: string;
26
- chartType?: TChartType;
27
- responseMode?: 'standard' | 'data_only';
28
- };
29
- export type DashboardAssistantAddToDashboardPayload = {
30
- cardType: TChartType;
31
- cardTitle: string;
32
- data: Record<string, unknown>[];
33
- dataSource?: DataSource;
34
- cardConfig?: CardConfig;
35
- connectionId?: string;
36
- sql?: string;
37
- python?: string;
38
- customVisualPreferences?: {
39
- url: string;
40
- componentName: string;
41
- pluginChartType: string;
42
- settings?: Record<string, unknown>;
43
- };
44
- };
45
- export type DashboardAssistantArtifact = {
46
- kind: 'analysis' | 'clarification';
47
- status: 'ready' | 'partial' | 'failed';
48
- resultOwner?: TemporalResultOwner;
49
- pivotResult?: CanonicalPivotResultTransport;
50
- title?: string;
51
- question?: string;
52
- chartType?: TChartType;
53
- records?: Record<string, unknown>[];
54
- columns?: SemaphorResultColumn[];
55
- columnKeyMap?: QueryColumnKeyMap;
56
- sql?: string;
57
- python?: string;
58
- cardConfig?: CardConfig;
59
- dataSource?: DataSource;
60
- suppressVisualRender?: boolean;
61
- executionResult?: SemaphorAnalyticsExecutionResult;
62
- addToDashboard?: DashboardAssistantAddToDashboardPayload;
63
- warnings?: string[];
64
- diagnostics?: Record<string, unknown>;
65
- clarification?: {
66
- question: string;
67
- missingInputs: string[];
68
- candidateOptions?: Array<{
69
- label: string;
70
- value: unknown;
71
- description?: string;
72
- }>;
73
- };
74
- };
75
- export type DashboardAssistantToolOutput = {
76
- artifact: DashboardAssistantArtifact;
77
- executionResult?: SemaphorAnalyticsExecutionResult;
78
- message?: string;
79
- error?: string;
80
- };
@@ -1,2 +0,0 @@
1
- export * from './dashboard-assistant/index.js'
2
- export {}
@@ -1,127 +0,0 @@
1
- import { CardConfig, DataSource, SelectedEntities } from './explorer-types.js';
2
- import { TFilterValue } from '../../components/surfboard/filter/types.js';
3
- import { TChartType } from '../charts/types.js';
4
- import { MetricComparisonConfig, SemaphorSourceRef } from '../../shared/analytics-protocol/index.js';
5
- import { CalendarContext } from '../../shared/report-runtime-context/index.js';
6
- export type FileAttachment = {
7
- id: string;
8
- name: string;
9
- size: number;
10
- type: string;
11
- data?: string;
12
- url?: string;
13
- preview?: string;
14
- uploadProgress?: number;
15
- };
16
- export type DashboardViewState = {
17
- selectedSheetId: string | null;
18
- activeFilters: TFilterValue[];
19
- calendarContext?: CalendarContext;
20
- };
21
- export type AIContext = {
22
- selectedEntities: SelectedEntities;
23
- fileAttachments?: FileAttachment[];
24
- };
25
- export type DashboardAIContextMode = 'auto' | 'fixed';
26
- export type DashboardAIContext = AIContext & {
27
- mode?: DashboardAIContextMode;
28
- };
29
- export type AssistantEntitySummary = {
30
- name: string;
31
- type: string;
32
- connectionId: string;
33
- connectionType?: string;
34
- id?: string;
35
- domainId?: string;
36
- datasetName?: string;
37
- datasetId?: string;
38
- database?: string;
39
- schema?: string;
40
- label?: string;
41
- sourceRef?: SemaphorSourceRef;
42
- };
43
- export type AssistantFieldSummary = {
44
- id: string;
45
- name: string;
46
- label: string;
47
- dataType?: string;
48
- aggregate?: string;
49
- granularity?: string;
50
- direction?: string;
51
- qualifiedFieldName?: string;
52
- qualifiedEntityName?: string;
53
- entityName?: string;
54
- entityId?: string;
55
- role?: 'dimension' | 'measure' | 'date' | 'id' | 'unknown';
56
- source?: SemaphorSourceRef;
57
- comparison?: MetricComparisonConfig | {
58
- mode: 'inherit';
59
- };
60
- };
61
- export type AssistantFilterSummary = {
62
- filterId: string;
63
- label: string;
64
- type?: string;
65
- column?: string;
66
- dataType?: string;
67
- operation?: string;
68
- value?: unknown;
69
- values?: unknown[];
70
- origin?: 'dashboard' | 'inline' | 'interaction';
71
- };
72
- export type DashboardSynopsisCard = {
73
- cardId: string;
74
- visibleCardId?: string;
75
- replacementInsightId?: string;
76
- title: string;
77
- type: TChartType;
78
- renderOrder: number;
79
- metrics: AssistantFieldSummary[];
80
- dimensions: AssistantFieldSummary[];
81
- selectedEntities: AssistantEntitySummary[];
82
- };
83
- export type DashboardSynopsis = {
84
- dashboardId: string;
85
- dashboardTitle: string;
86
- selectedSheetId: string | null;
87
- sheetTitle: string;
88
- cards: DashboardSynopsisCard[];
89
- availableFilters: Array<{
90
- filterId: string;
91
- label: string;
92
- type?: string;
93
- scope?: 'sheet' | 'card';
94
- }>;
95
- activeFilterIds: string[];
96
- };
97
- export type AssistantCardContext = {
98
- found: boolean;
99
- cardId: string;
100
- visibleCardId?: string;
101
- replacementInsightId?: string;
102
- title?: string;
103
- type?: TChartType;
104
- queryMode?: 'config' | 'custom-sql' | 'custom-python';
105
- sql?: string;
106
- python?: string;
107
- queryInputs?: {
108
- connectionId: string;
109
- connectionType?: string;
110
- chartType: TChartType;
111
- cardConfig: CardConfig;
112
- cardDataSource: DataSource;
113
- };
114
- selectedEntities: AssistantEntitySummary[];
115
- metrics: AssistantFieldSummary[];
116
- dimensions: AssistantFieldSummary[];
117
- cardFilters: Record<string, unknown> | null;
118
- effectiveDashboardFilters: AssistantFilterSummary[];
119
- activeInlineFilters: AssistantFilterSummary[];
120
- activeInteractionFilters: AssistantFilterSummary[];
121
- sortingOrGroupingSummary: {
122
- groupBy: AssistantFieldSummary[];
123
- pivotBy: AssistantFieldSummary[];
124
- sortBy: AssistantFieldSummary[];
125
- };
126
- notes: string[];
127
- };