@prismiq/react 0.1.1 → 0.2.0

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 (49) hide show
  1. package/dist/{CustomSQLEditor-d84v_Cgp.d.cts → ChatBubble-ARocmvZD.d.cts} +40 -3
  2. package/dist/{CustomSQLEditor-CYlOtecq.d.ts → ChatBubble-BN_CjIpk.d.ts} +40 -3
  3. package/dist/{DashboardDialog-CZD8I-6z.d.cts → DashboardDialog-UhUGXx2h.d.ts} +5 -3
  4. package/dist/{DashboardDialog-DBNTVVSp.d.ts → DashboardDialog-Z-HypxmG.d.cts} +5 -3
  5. package/dist/charts/index.d.cts +2 -2
  6. package/dist/charts/index.d.ts +2 -2
  7. package/dist/{chunk-VQDFS6VS.cjs → chunk-FKXCINUF.cjs} +368 -210
  8. package/dist/chunk-FKXCINUF.cjs.map +1 -0
  9. package/dist/{chunk-ET7GCREP.js → chunk-GELI7MDZ.js} +482 -7
  10. package/dist/chunk-GELI7MDZ.js.map +1 -0
  11. package/dist/{chunk-WWTT2OJ5.js → chunk-HKZFEXT6.js} +27 -9
  12. package/dist/chunk-HKZFEXT6.js.map +1 -0
  13. package/dist/{chunk-3LDRRDJ6.js → chunk-JBJ5LEAG.js} +186 -28
  14. package/dist/chunk-JBJ5LEAG.js.map +1 -0
  15. package/dist/{chunk-URJH4H6G.cjs → chunk-PG7QBH3G.cjs} +485 -6
  16. package/dist/chunk-PG7QBH3G.cjs.map +1 -0
  17. package/dist/{chunk-MDXGGZSW.cjs → chunk-ZYVN6XAZ.cjs} +35 -37
  18. package/dist/chunk-ZYVN6XAZ.cjs.map +1 -0
  19. package/dist/components/index.cjs +62 -54
  20. package/dist/components/index.d.cts +2 -2
  21. package/dist/components/index.d.ts +2 -2
  22. package/dist/components/index.js +1 -1
  23. package/dist/dashboard/index.cjs +34 -34
  24. package/dist/dashboard/index.d.cts +7 -5
  25. package/dist/dashboard/index.d.ts +7 -5
  26. package/dist/dashboard/index.js +2 -2
  27. package/dist/export/index.cjs +7 -7
  28. package/dist/export/index.d.cts +6 -4
  29. package/dist/export/index.d.ts +6 -4
  30. package/dist/export/index.js +1 -1
  31. package/dist/{index-CvKj3SWO.d.cts → index-B8DelfpL.d.cts} +1 -1
  32. package/dist/{index-DXGLs1yY.d.ts → index-RbfYPQD_.d.ts} +1 -1
  33. package/dist/index.cjs +119 -103
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.cts +74 -7
  36. package/dist/index.d.ts +74 -7
  37. package/dist/index.js +5 -5
  38. package/dist/index.js.map +1 -1
  39. package/dist/{types-j0kPJ9Hz.d.cts → types-ccB9Ps3k.d.cts} +44 -1
  40. package/dist/{types-j0kPJ9Hz.d.ts → types-ccB9Ps3k.d.ts} +44 -1
  41. package/dist/utils/index.d.cts +1 -1
  42. package/dist/utils/index.d.ts +1 -1
  43. package/package.json +2 -6
  44. package/dist/chunk-3LDRRDJ6.js.map +0 -1
  45. package/dist/chunk-ET7GCREP.js.map +0 -1
  46. package/dist/chunk-MDXGGZSW.cjs.map +0 -1
  47. package/dist/chunk-URJH4H6G.cjs.map +0 -1
  48. package/dist/chunk-VQDFS6VS.cjs.map +0 -1
  49. package/dist/chunk-WWTT2OJ5.js.map +0 -1
@@ -549,6 +549,49 @@ 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' | '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
+ * LLM agent status response.
586
+ */
587
+ interface LLMStatus {
588
+ /** Whether the LLM agent is enabled. */
589
+ enabled: boolean;
590
+ /** LLM provider name (e.g., 'gemini'). */
591
+ provider?: string;
592
+ /** Model being used (e.g., 'gemini-2.0-flash'). */
593
+ model?: string;
594
+ }
552
595
  /**
553
596
  * A pinned dashboard entry.
554
597
  */
@@ -581,4 +624,4 @@ interface DashboardPinContextsResponse {
581
624
  contexts: string[];
582
625
  }
583
626
 
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, WidgetPosition as o, ColumnSchema as p, ColumnSelection as q, DashboardPinContextsResponse as r, FilterOperator as s, JoinType as t, SortDefinition as u, SortDirection as v };
627
+ export type { AggregationType as A, 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, StreamChunk as p, WidgetPosition as q, ChatRole as r, ColumnSchema as s, ColumnSelection as t, DashboardPinContextsResponse as u, FilterOperator as v, JoinType as w, SortDefinition as x, SortDirection as y, StreamChunkType as z };
@@ -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-j0kPJ9Hz.cjs';
2
+ import { Q as QueryResult } from '../types-ccB9Ps3k.cjs';
3
3
  import 'react';
4
4
 
5
5
  /**
@@ -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-j0kPJ9Hz.js';
2
+ import { Q as QueryResult } from '../types-ccB9Ps3k.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.1.1",
3
+ "version": "0.2.0",
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": "^1.4.0 || ^2.0.0",
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",