@prismiq/react 0.1.1 → 0.2.1
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/{CustomSQLEditor-CYlOtecq.d.ts → ChatBubble-3mFpV7yX.d.ts} +42 -3
- package/dist/{CustomSQLEditor-d84v_Cgp.d.cts → ChatBubble-CMkEupzn.d.cts} +42 -3
- package/dist/{DashboardDialog-DBNTVVSp.d.ts → DashboardDialog-DMmZ3bnf.d.cts} +5 -3
- package/dist/{DashboardDialog-CZD8I-6z.d.cts → DashboardDialog-RlcPkdMt.d.ts} +5 -3
- package/dist/charts/index.d.cts +2 -2
- package/dist/charts/index.d.ts +2 -2
- package/dist/{chunk-3LDRRDJ6.js → chunk-F6QYNQEW.js} +194 -28
- package/dist/chunk-F6QYNQEW.js.map +1 -0
- package/dist/{chunk-WWTT2OJ5.js → chunk-HKZFEXT6.js} +27 -9
- package/dist/chunk-HKZFEXT6.js.map +1 -0
- package/dist/{chunk-VQDFS6VS.cjs → chunk-N6I3QOHG.cjs} +376 -210
- package/dist/chunk-N6I3QOHG.cjs.map +1 -0
- package/dist/{chunk-URJH4H6G.cjs → chunk-NXXKG4GN.cjs} +520 -6
- package/dist/chunk-NXXKG4GN.cjs.map +1 -0
- package/dist/{chunk-ET7GCREP.js → chunk-VEFYFB5H.js} +517 -7
- package/dist/chunk-VEFYFB5H.js.map +1 -0
- package/dist/{chunk-MDXGGZSW.cjs → chunk-ZYVN6XAZ.cjs} +35 -37
- package/dist/chunk-ZYVN6XAZ.cjs.map +1 -0
- package/dist/components/index.cjs +62 -54
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +1 -1
- package/dist/dashboard/index.cjs +34 -34
- package/dist/dashboard/index.d.cts +7 -5
- package/dist/dashboard/index.d.ts +7 -5
- package/dist/dashboard/index.js +2 -2
- package/dist/export/index.cjs +7 -7
- package/dist/export/index.d.cts +6 -4
- package/dist/export/index.d.ts +6 -4
- package/dist/export/index.js +1 -1
- package/dist/{index-CvKj3SWO.d.cts → index-BA2VUhgN.d.cts} +1 -1
- package/dist/{index-DXGLs1yY.d.ts → index-BPo89ZAj.d.ts} +1 -1
- package/dist/index.cjs +119 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +77 -7
- package/dist/index.d.ts +77 -7
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/{types-j0kPJ9Hz.d.cts → types-BaI6sSAG.d.cts} +62 -1
- package/dist/{types-j0kPJ9Hz.d.ts → types-BaI6sSAG.d.ts} +62 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +2 -6
- package/dist/chunk-3LDRRDJ6.js.map +0 -1
- package/dist/chunk-ET7GCREP.js.map +0 -1
- package/dist/chunk-MDXGGZSW.cjs.map +0 -1
- package/dist/chunk-URJH4H6G.cjs.map +0 -1
- package/dist/chunk-VQDFS6VS.cjs.map +0 -1
- package/dist/chunk-WWTT2OJ5.js.map +0 -1
|
@@ -549,6 +549,67 @@ interface SQLValidationResult {
|
|
|
549
549
|
/** List of tables referenced in the query. */
|
|
550
550
|
tables: string[];
|
|
551
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* Chat message roles.
|
|
554
|
+
*/
|
|
555
|
+
type ChatRole = 'user' | 'assistant' | 'system' | 'tool';
|
|
556
|
+
/**
|
|
557
|
+
* A chat message in a conversation.
|
|
558
|
+
*/
|
|
559
|
+
interface ChatMessage {
|
|
560
|
+
/** Role of the message sender. */
|
|
561
|
+
role: ChatRole;
|
|
562
|
+
/** Text content of the message. */
|
|
563
|
+
content: string;
|
|
564
|
+
/** Tool call ID (for tool responses). */
|
|
565
|
+
tool_call_id?: string;
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Types of streaming chunks from the LLM agent.
|
|
569
|
+
*/
|
|
570
|
+
type StreamChunkType = 'text' | 'sql' | 'tool_call' | 'tool_result' | 'status' | 'error' | 'done';
|
|
571
|
+
/**
|
|
572
|
+
* A single chunk in a streaming LLM response.
|
|
573
|
+
*/
|
|
574
|
+
interface StreamChunk {
|
|
575
|
+
/** Type of this chunk. */
|
|
576
|
+
type: StreamChunkType;
|
|
577
|
+
/** Text content (for text/sql/error chunks). */
|
|
578
|
+
content?: string;
|
|
579
|
+
/** Tool name (for tool_call/tool_result chunks). */
|
|
580
|
+
tool_name?: string;
|
|
581
|
+
/** Tool arguments (for tool_call chunks). */
|
|
582
|
+
tool_args?: Record<string, unknown>;
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Context about the target widget for SQL generation.
|
|
586
|
+
*
|
|
587
|
+
* Tells the LLM what kind of widget the query is for, so it can
|
|
588
|
+
* generate queries with the correct column structure.
|
|
589
|
+
*/
|
|
590
|
+
interface WidgetContext {
|
|
591
|
+
/** Widget type (matches WidgetType enum values). */
|
|
592
|
+
widget_type: string;
|
|
593
|
+
/** Configured x-axis column. */
|
|
594
|
+
x_axis?: string;
|
|
595
|
+
/** Configured y-axis column(s). */
|
|
596
|
+
y_axis?: string[];
|
|
597
|
+
/** Multi-series grouping column. */
|
|
598
|
+
series_column?: string;
|
|
599
|
+
/** Last execution error for self-correction. */
|
|
600
|
+
last_error?: string;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* LLM agent status response.
|
|
604
|
+
*/
|
|
605
|
+
interface LLMStatus {
|
|
606
|
+
/** Whether the LLM agent is enabled. */
|
|
607
|
+
enabled: boolean;
|
|
608
|
+
/** LLM provider name (e.g., 'gemini'). */
|
|
609
|
+
provider?: string;
|
|
610
|
+
/** Model being used (e.g., 'gemini-2.0-flash'). */
|
|
611
|
+
model?: string;
|
|
612
|
+
}
|
|
552
613
|
/**
|
|
553
614
|
* A pinned dashboard entry.
|
|
554
615
|
*/
|
|
@@ -581,4 +642,4 @@ interface DashboardPinContextsResponse {
|
|
|
581
642
|
contexts: string[];
|
|
582
643
|
}
|
|
583
644
|
|
|
584
|
-
export type { AggregationType as A, CalculatedField as C, DatabaseSchema as D, ExecuteSQLRequest as E, FilterDefinition as F, GroupByDefinition as G, JoinDefinition as J, PinnedDashboard as P, QueryResult as Q, Relationship as R, SQLValidationResult as S, TimeSeriesConfig as T, ValidationResult as V, WidgetCreate as W, QueryDefinition as a, QueryTable as b, TableSchema as c, DataSourceMeta as d, Dashboard as e, DashboardCreate as f, DashboardUpdate as g, Widget as h, WidgetUpdate as i, WidgetPositionUpdate as j, SavedQuery as k, SavedQueryCreate as l, SavedQueryUpdate as m, PinnedDashboardsResponse as n,
|
|
645
|
+
export type { AggregationType as A, StreamChunkType as B, CalculatedField as C, DatabaseSchema as D, ExecuteSQLRequest as E, FilterDefinition as F, GroupByDefinition as G, JoinDefinition as J, LLMStatus as L, PinnedDashboard as P, QueryResult as Q, Relationship as R, SQLValidationResult as S, TimeSeriesConfig as T, ValidationResult as V, WidgetCreate as W, QueryDefinition as a, QueryTable as b, TableSchema as c, DataSourceMeta as d, Dashboard as e, DashboardCreate as f, DashboardUpdate as g, Widget as h, WidgetUpdate as i, WidgetPositionUpdate as j, SavedQuery as k, SavedQueryCreate as l, SavedQueryUpdate as m, PinnedDashboardsResponse as n, ChatMessage as o, WidgetContext as p, StreamChunk as q, WidgetPosition as r, ChatRole as s, ColumnSchema as t, ColumnSelection as u, DashboardPinContextsResponse as v, FilterOperator as w, JoinType as x, SortDefinition as y, SortDirection as z };
|
|
@@ -549,6 +549,67 @@ interface SQLValidationResult {
|
|
|
549
549
|
/** List of tables referenced in the query. */
|
|
550
550
|
tables: string[];
|
|
551
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* Chat message roles.
|
|
554
|
+
*/
|
|
555
|
+
type ChatRole = 'user' | 'assistant' | 'system' | 'tool';
|
|
556
|
+
/**
|
|
557
|
+
* A chat message in a conversation.
|
|
558
|
+
*/
|
|
559
|
+
interface ChatMessage {
|
|
560
|
+
/** Role of the message sender. */
|
|
561
|
+
role: ChatRole;
|
|
562
|
+
/** Text content of the message. */
|
|
563
|
+
content: string;
|
|
564
|
+
/** Tool call ID (for tool responses). */
|
|
565
|
+
tool_call_id?: string;
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Types of streaming chunks from the LLM agent.
|
|
569
|
+
*/
|
|
570
|
+
type StreamChunkType = 'text' | 'sql' | 'tool_call' | 'tool_result' | 'status' | 'error' | 'done';
|
|
571
|
+
/**
|
|
572
|
+
* A single chunk in a streaming LLM response.
|
|
573
|
+
*/
|
|
574
|
+
interface StreamChunk {
|
|
575
|
+
/** Type of this chunk. */
|
|
576
|
+
type: StreamChunkType;
|
|
577
|
+
/** Text content (for text/sql/error chunks). */
|
|
578
|
+
content?: string;
|
|
579
|
+
/** Tool name (for tool_call/tool_result chunks). */
|
|
580
|
+
tool_name?: string;
|
|
581
|
+
/** Tool arguments (for tool_call chunks). */
|
|
582
|
+
tool_args?: Record<string, unknown>;
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Context about the target widget for SQL generation.
|
|
586
|
+
*
|
|
587
|
+
* Tells the LLM what kind of widget the query is for, so it can
|
|
588
|
+
* generate queries with the correct column structure.
|
|
589
|
+
*/
|
|
590
|
+
interface WidgetContext {
|
|
591
|
+
/** Widget type (matches WidgetType enum values). */
|
|
592
|
+
widget_type: string;
|
|
593
|
+
/** Configured x-axis column. */
|
|
594
|
+
x_axis?: string;
|
|
595
|
+
/** Configured y-axis column(s). */
|
|
596
|
+
y_axis?: string[];
|
|
597
|
+
/** Multi-series grouping column. */
|
|
598
|
+
series_column?: string;
|
|
599
|
+
/** Last execution error for self-correction. */
|
|
600
|
+
last_error?: string;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* LLM agent status response.
|
|
604
|
+
*/
|
|
605
|
+
interface LLMStatus {
|
|
606
|
+
/** Whether the LLM agent is enabled. */
|
|
607
|
+
enabled: boolean;
|
|
608
|
+
/** LLM provider name (e.g., 'gemini'). */
|
|
609
|
+
provider?: string;
|
|
610
|
+
/** Model being used (e.g., 'gemini-2.0-flash'). */
|
|
611
|
+
model?: string;
|
|
612
|
+
}
|
|
552
613
|
/**
|
|
553
614
|
* A pinned dashboard entry.
|
|
554
615
|
*/
|
|
@@ -581,4 +642,4 @@ interface DashboardPinContextsResponse {
|
|
|
581
642
|
contexts: string[];
|
|
582
643
|
}
|
|
583
644
|
|
|
584
|
-
export type { AggregationType as A, CalculatedField as C, DatabaseSchema as D, ExecuteSQLRequest as E, FilterDefinition as F, GroupByDefinition as G, JoinDefinition as J, PinnedDashboard as P, QueryResult as Q, Relationship as R, SQLValidationResult as S, TimeSeriesConfig as T, ValidationResult as V, WidgetCreate as W, QueryDefinition as a, QueryTable as b, TableSchema as c, DataSourceMeta as d, Dashboard as e, DashboardCreate as f, DashboardUpdate as g, Widget as h, WidgetUpdate as i, WidgetPositionUpdate as j, SavedQuery as k, SavedQueryCreate as l, SavedQueryUpdate as m, PinnedDashboardsResponse as n,
|
|
645
|
+
export type { AggregationType as A, StreamChunkType as B, CalculatedField as C, DatabaseSchema as D, ExecuteSQLRequest as E, FilterDefinition as F, GroupByDefinition as G, JoinDefinition as J, LLMStatus as L, PinnedDashboard as P, QueryResult as Q, Relationship as R, SQLValidationResult as S, TimeSeriesConfig as T, ValidationResult as V, WidgetCreate as W, QueryDefinition as a, QueryTable as b, TableSchema as c, DataSourceMeta as d, Dashboard as e, DashboardCreate as f, DashboardUpdate as g, Widget as h, WidgetUpdate as i, WidgetPositionUpdate as j, SavedQuery as k, SavedQueryCreate as l, SavedQueryUpdate as m, PinnedDashboardsResponse as n, ChatMessage as o, WidgetContext as p, StreamChunk as q, WidgetPosition as r, ChatRole as s, ColumnSchema as t, ColumnSelection as u, DashboardPinContextsResponse as v, FilterOperator as w, JoinType as x, SortDefinition as y, SortDirection as z };
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as ArrowNavigationOptions, F as FocusTrapOptions, S as SkipLinkProps, U as UseArrowNavigationResult, a as UseFocusTrapResult, b as announceToScreenReader, f as focusVisibleStyles, s as skipLinkFocusStyles, c as skipLinkStyles, u as useArrowNavigation, d as useFocusTrap, e as useFocusVisible, g as useRovingTabIndex } from '../accessibility-Bu2mNtaB.cjs';
|
|
2
|
-
import { Q as QueryResult } from '../types-
|
|
2
|
+
import { Q as QueryResult } from '../types-BaI6sSAG.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as ArrowNavigationOptions, F as FocusTrapOptions, S as SkipLinkProps, U as UseArrowNavigationResult, a as UseFocusTrapResult, b as announceToScreenReader, f as focusVisibleStyles, s as skipLinkFocusStyles, c as skipLinkStyles, u as useArrowNavigation, d as useFocusTrap, e as useFocusVisible, g as useRovingTabIndex } from '../accessibility-Bu2mNtaB.js';
|
|
2
|
-
import { Q as QueryResult } from '../types-
|
|
2
|
+
import { Q as QueryResult } from '../types-BaI6sSAG.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismiq/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "React SDK for Prismiq embedded analytics",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"echarts": "^5.4.0 || ^6.0.0",
|
|
61
61
|
"echarts-for-react": "^3.0.0",
|
|
62
62
|
"react": "^18.0.0 || ^19.0.0",
|
|
63
|
-
"react-grid-layout": "^
|
|
63
|
+
"react-grid-layout": "^2.0.0",
|
|
64
64
|
"xlsx": "^0.18.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
@@ -70,9 +70,6 @@
|
|
|
70
70
|
"echarts-for-react": {
|
|
71
71
|
"optional": true
|
|
72
72
|
},
|
|
73
|
-
"react-grid-layout": {
|
|
74
|
-
"optional": true
|
|
75
|
-
},
|
|
76
73
|
"xlsx": {
|
|
77
74
|
"optional": true
|
|
78
75
|
}
|
|
@@ -81,7 +78,6 @@
|
|
|
81
78
|
"@types/node": "^25.0.3",
|
|
82
79
|
"@types/react": "^18.2.0",
|
|
83
80
|
"@types/react-dom": "^18.3.7",
|
|
84
|
-
"@types/react-grid-layout": "^1.3.6",
|
|
85
81
|
"echarts": "^6.0.0",
|
|
86
82
|
"echarts-for-react": "^3.0.5",
|
|
87
83
|
"react": "^18.2.0",
|