react-semaphor 0.0.210 → 0.0.212

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-rFYihWWq.js");require("react");require("react-dom");exports.Dashboard=e.Dashboard;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-qQHxI2VY.js");require("react");require("react-dom");exports.Dashboard=e.Dashboard;
@@ -1,4 +1,4 @@
1
- import { D as p } from "../chunks/index-4dMDhcWj.js";
1
+ import { D as p } from "../chunks/index-nvObQgx0.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-rFYihWWq.js"),d=require("./chunks/dashboard-plus-QXDTTTq6.js"),I=require("react");require("react-dom");function N({card:t,footer:u,className:m,...c}){const{customCards:r}=e.useSemaphorContext(),h=I.useRef(null),{isError:p,isLoading:n,isFetching:i,cfg:x,visualKey:C,handleDatapointClick:f}=e.useDashboardCard(t),a=e.useDashboardStore(s=>s.themeStyle),l=e.useDashboardStore(s=>s.selectedSheetId),E=e.useDashboardStore(s=>s.selectedCardId),j=e.useDashboardStore(s=>s.isDashboardEditing),{setCardTitle:g,setCardDescription:D,setSelectedCardId:b}=e.useDashboardActions();function S(s){s.stopPropagation(),b(l,t.id)}function T(){if(r&&r.length>0){const s=r.find(o=>o.cardId===t.id);if(s&&s.replaceDefault){const o=s.content;if(o)return e.jsxRuntimeExports.jsx(o,{card:t})}}return t.type==="kpi"?t.data&&t.data.length>0&&e.jsxRuntimeExports.jsx(e.KPICard,{isLoading:n||i,card:t}):y}function R(){if(p)return e.jsxRuntimeExports.jsx("p",{className:"text-sm",children:"Oops! It seems like something went wrong. Please review your connection or filters."});if(t.type==="table"&&t.data&&t.data.length>0)return e.jsxRuntimeExports.jsxs(e.ScrollArea,{children:[e.jsxRuntimeExports.jsx(e.TableVisual,{card:t,data:t.data}),e.jsxRuntimeExports.jsx(e.ScrollBar,{orientation:"horizontal"})]});if(r&&r.length>0){const s=r.find(o=>o.cardId===t.id);if(s&&s.content){const o=s.content;return e.jsxRuntimeExports.jsx(o,{card:t})}}if(x)return e.jsxRuntimeExports.jsx(e.ChartJsVisual,{cfg:x,onDatapointClick:f},C)}function A(){if(r&&r.length>0){const s=r.find(o=>o.cardId===t.id);if(s&&s.footer){const o=s.footer;if(o)return e.jsxRuntimeExports.jsx(o,{card:t})}}return u||null}if(!t.id)return null;const y=e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs(e.CardHeader,{className:"pb-4",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxRuntimeExports.jsx(e.Editable,{text:t.title,onSave:s=>g(l,t.id,s),children:e.jsxRuntimeExports.jsx(e.CardTitle,{className:"text-base",children:t.title})}),t.refreshInterval&&e.jsxRuntimeExports.jsxs(e.Tooltip,{children:[e.jsxRuntimeExports.jsx(e.TooltipTrigger,{className:"pr-1",children:e.jsxRuntimeExports.jsx("div",{className:e.cn("h-2 w-2 rounded-full bg-green-500 transition-opacity",{"opacity-10":n||i})})}),e.jsxRuntimeExports.jsx(e.TooltipContent,{side:"right",align:"center",children:e.jsxRuntimeExports.jsx("p",{className:"text-xs",children:`Realtime (${t==null?void 0:t.refreshInterval})`})})]}),!t.refreshInterval&&(n||i)&&e.jsxRuntimeExports.jsx(e.LoaderCircle,{className:"h-4 w-4 animate-spin text-muted-foreground"})]}),e.jsxRuntimeExports.jsx(e.Editable,{text:(t==null?void 0:t.description)||"",onSave:s=>D(l,t.id,s),children:e.jsxRuntimeExports.jsxs(e.CardDescription,{children:[" ",t.description]})})]}),e.jsxRuntimeExports.jsx(e.CardContent,{className:"relative flex grow flex-col overflow-auto pb-0",children:R()}),e.jsxRuntimeExports.jsx(e.CardFooter,{children:A()})]});return e.jsxRuntimeExports.jsx(e.Card,{tabIndex:-1,ref:h,role:"dashboard-card",onClick:S,className:e.cn("relative flex h-full flex-col rounded-sm",{"border-dashed border-foreground/50":E===t.id&&j},a==null?void 0:a.dashboardCard,m),...c,children:T()})}exports.BOOLEAN_DATA_TYPES=e.BOOLEAN_DATA_TYPES;exports.DATE_DATA_TYPES=e.DATE_DATA_TYPES;exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.NUMBER_DATA_TYPES=e.NUMBER_DATA_TYPES;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.TEXT_DATA_TYPES=e.TEXT_DATA_TYPES;exports.cleanCard=e.cleanCard;exports.createSqlGenConfig=e.createSqlGenConfig;exports.fmt=e.fmt;exports.getBookmarkKey=e.getBookmarkKey;exports.getColumnDataType=e.getColumnDataType;exports.getDashbaordStateWithoutData=e.getDashbaordStateWithoutData;exports.getFilterValueType=e.getFilterValueType;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.resolveDataType=e.resolveDataType;exports.useCard=e.useCard;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useEditorActions=e.useEditorActions;exports.useEditorStore=e.useEditorStore;exports.SelectComponent=d.SelectComponent;exports.Surfboard=d.DashboardPlus;exports.useEditorAside=d.useEditorAside;exports.DashboardCard=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-qQHxI2VY.js"),d=require("./chunks/dashboard-plus-qauJ8uMw.js"),I=require("react");require("react-dom");function N({card:t,footer:u,className:m,...c}){const{customCards:r}=e.useSemaphorContext(),h=I.useRef(null),{isError:p,isLoading:n,isFetching:i,cfg:x,visualKey:C,handleDatapointClick:f}=e.useDashboardCard(t),a=e.useDashboardStore(s=>s.themeStyle),l=e.useDashboardStore(s=>s.selectedSheetId),E=e.useDashboardStore(s=>s.selectedCardId),j=e.useDashboardStore(s=>s.isDashboardEditing),{setCardTitle:g,setCardDescription:D,setSelectedCardId:b}=e.useDashboardActions();function S(s){s.stopPropagation(),b(l,t.id)}function T(){if(r&&r.length>0){const s=r.find(o=>o.cardId===t.id);if(s&&s.replaceDefault){const o=s.content;if(o)return e.jsxRuntimeExports.jsx(o,{card:t})}}return t.type==="kpi"?t.data&&t.data.length>0&&e.jsxRuntimeExports.jsx(e.KPICard,{isLoading:n||i,card:t}):y}function R(){if(p)return e.jsxRuntimeExports.jsx("p",{className:"text-sm",children:"Oops! It seems like something went wrong. Please review your connection or filters."});if(t.type==="table"&&t.data&&t.data.length>0)return e.jsxRuntimeExports.jsxs(e.ScrollArea,{children:[e.jsxRuntimeExports.jsx(e.TableVisual,{card:t,data:t.data}),e.jsxRuntimeExports.jsx(e.ScrollBar,{orientation:"horizontal"})]});if(r&&r.length>0){const s=r.find(o=>o.cardId===t.id);if(s&&s.content){const o=s.content;return e.jsxRuntimeExports.jsx(o,{card:t})}}if(x)return e.jsxRuntimeExports.jsx(e.ChartJsVisual,{cfg:x,onDatapointClick:f},C)}function A(){if(r&&r.length>0){const s=r.find(o=>o.cardId===t.id);if(s&&s.footer){const o=s.footer;if(o)return e.jsxRuntimeExports.jsx(o,{card:t})}}return u||null}if(!t.id)return null;const y=e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs(e.CardHeader,{className:"pb-4",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxRuntimeExports.jsx(e.Editable,{text:t.title,onSave:s=>g(l,t.id,s),children:e.jsxRuntimeExports.jsx(e.CardTitle,{className:"text-base",children:t.title})}),t.refreshInterval&&e.jsxRuntimeExports.jsxs(e.Tooltip,{children:[e.jsxRuntimeExports.jsx(e.TooltipTrigger,{className:"pr-1",children:e.jsxRuntimeExports.jsx("div",{className:e.cn("h-2 w-2 rounded-full bg-green-500 transition-opacity",{"opacity-10":n||i})})}),e.jsxRuntimeExports.jsx(e.TooltipContent,{side:"right",align:"center",children:e.jsxRuntimeExports.jsx("p",{className:"text-xs",children:`Realtime (${t==null?void 0:t.refreshInterval})`})})]}),!t.refreshInterval&&(n||i)&&e.jsxRuntimeExports.jsx(e.LoaderCircle,{className:"h-4 w-4 animate-spin text-muted-foreground"})]}),e.jsxRuntimeExports.jsx(e.Editable,{text:(t==null?void 0:t.description)||"",onSave:s=>D(l,t.id,s),children:e.jsxRuntimeExports.jsxs(e.CardDescription,{children:[" ",t.description]})})]}),e.jsxRuntimeExports.jsx(e.CardContent,{className:"relative flex grow flex-col overflow-auto pb-0",children:R()}),e.jsxRuntimeExports.jsx(e.CardFooter,{children:A()})]});return e.jsxRuntimeExports.jsx(e.Card,{tabIndex:-1,ref:h,role:"dashboard-card",onClick:S,className:e.cn("relative flex h-full flex-col rounded-sm",{"border-dashed border-foreground/50":E===t.id&&j},a==null?void 0:a.dashboardCard,m),...c,children:T()})}exports.BOOLEAN_DATA_TYPES=e.BOOLEAN_DATA_TYPES;exports.DATE_DATA_TYPES=e.DATE_DATA_TYPES;exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.NUMBER_DATA_TYPES=e.NUMBER_DATA_TYPES;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.TEXT_DATA_TYPES=e.TEXT_DATA_TYPES;exports.cleanCard=e.cleanCard;exports.createSqlGenConfig=e.createSqlGenConfig;exports.fmt=e.fmt;exports.getBookmarkKey=e.getBookmarkKey;exports.getColumnDataType=e.getColumnDataType;exports.getDashbaordStateWithoutData=e.getDashbaordStateWithoutData;exports.getFilterValueType=e.getFilterValueType;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.resolveDataType=e.resolveDataType;exports.useCard=e.useCard;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useEditorActions=e.useEditorActions;exports.useEditorStore=e.useEditorStore;exports.SelectComponent=d.SelectComponent;exports.Surfboard=d.DashboardPlus;exports.useEditorAside=d.useEditorAside;exports.DashboardCard=N;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { u as _, a as k, b as n, c as w, j as s, C as F, E as f, d as P, T as R, e as B, f as h, g as L, L as q, h as K, i as O, k as Y, l as G, K as V, S as z, m as H, n as J, o as M } from "./chunks/index-4dMDhcWj.js";
2
- import { B as se, s as te, D as ae, q as oe, N as ne, I as re, r as ie, M as le, w as de, t as ue, O as ce, y as fe, J as he, x as Ce, A as xe, v as me, z as pe, F as ge, p as je, H as De, G as be } from "./chunks/index-4dMDhcWj.js";
3
- import { S as Te, D as Ee, u as Ie } from "./chunks/dashboard-plus-VD8IOw-T.js";
1
+ import { u as _, a as k, b as n, c as w, j as s, C as F, E as f, d as P, T as R, e as B, f as h, g as L, L as q, h as K, i as O, k as Y, l as G, K as V, S as z, m as H, n as J, o as M } from "./chunks/index-nvObQgx0.js";
2
+ import { B as se, s as te, D as ae, q as oe, N as ne, I as re, r as ie, M as le, w as de, t as ue, O as ce, y as fe, J as he, x as Ce, A as xe, v as me, z as pe, F as ge, p as je, H as De, G as be } from "./chunks/index-nvObQgx0.js";
3
+ import { S as Te, D as Ee, u as Ie } from "./chunks/dashboard-plus-C3UxmNVq.js";
4
4
  import Q from "react";
5
5
  import "react-dom";
6
6
  function $({
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/dashboard-plus-QXDTTTq6.js");require("../chunks/index-rFYihWWq.js");require("react");require("react-dom");exports.Surfboard=r.DashboardPlus;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/dashboard-plus-qauJ8uMw.js");require("../chunks/index-qQHxI2VY.js");require("react");require("react-dom");exports.Surfboard=r.DashboardPlus;
@@ -1,5 +1,5 @@
1
- import { D as i } from "../chunks/dashboard-plus-VD8IOw-T.js";
2
- import "../chunks/index-4dMDhcWj.js";
1
+ import { D as i } from "../chunks/dashboard-plus-C3UxmNVq.js";
2
+ import "../chunks/index-nvObQgx0.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  export {
@@ -217,7 +217,9 @@ export declare type StyleProps = {
217
217
  export declare type TBaseQuery = {
218
218
  id: string;
219
219
  name: string;
220
+ connectionId: string;
220
221
  sql: string;
222
+ context?: string;
221
223
  description?: string;
222
224
  };
223
225
 
@@ -227,6 +229,7 @@ export declare type TCard = {
227
229
  description?: string;
228
230
  info?: string;
229
231
  connectionId?: string;
232
+ datamodelId?: string;
230
233
  type: TChartType;
231
234
  sql?: string;
232
235
  python?: string;
@@ -110,6 +110,7 @@ declare type Actions_2 = {
110
110
  setApplyFilters: (applyFilters: boolean) => void;
111
111
  setFilterValues: (filterValues: TFilterValue[]) => void;
112
112
  setSelectedConnectionId: (connectionId: string) => void;
113
+ setSelectedDatamodelId: (datamodelId: string) => void;
113
114
  setSelectedDatabaseName: (databaseName: string) => void;
114
115
  setSelectedSchemaName: (schemaName: string) => void;
115
116
  setSelectedTableName: (tableName: string) => void;
@@ -282,11 +283,13 @@ declare type EditorStore = {
282
283
  queryError?: string;
283
284
  pythonStdOut?: string;
284
285
  selectedConnectionId?: string;
286
+ selectedDatamodelId?: string;
285
287
  selectedDatabaseName?: string;
286
288
  selectedSchemaName?: string;
287
289
  selectedTableName?: string;
288
290
  currentColumns?: TDataColumn[];
289
291
  onConnectionChange?: (connectionId: string) => void;
292
+ onDatamodelChange?: (datamodelId: string) => void;
290
293
  onDatabaseChange?: (databaseName: string) => void;
291
294
  onTableChange?: (tableName: string) => void;
292
295
  onSchemaChange?: (schemaName: string) => void;
@@ -411,7 +414,7 @@ declare type Params = {
411
414
 
412
415
  export declare const resolveDataType: (value: any) => string;
413
416
 
414
- export declare function SelectComponent({ title, items, value, isLoading, isError, connectionTooltip, onChange, className, showIcon, disabled, }: SelectProps): JSX_2.Element;
417
+ export declare function SelectComponent({ title, items, value, isLoading, isError, connectionTooltip, onChange, showNone, className, showIcon, disabled, }: SelectProps): JSX_2.Element;
415
418
 
416
419
  declare type SelectProps = {
417
420
  title: string;
@@ -423,6 +426,7 @@ declare type SelectProps = {
423
426
  isLoading: boolean;
424
427
  isError: boolean;
425
428
  onChange?: (value: string) => void;
429
+ showNone?: boolean;
426
430
  className?: string;
427
431
  showIcon?: boolean;
428
432
  connectionTooltip?: string;
@@ -483,7 +487,9 @@ export declare function Surfboard({ showControls, showFooter, ...rest }: Dashboa
483
487
  export declare type TBaseQuery = {
484
488
  id: string;
485
489
  name: string;
490
+ connectionId: string;
486
491
  sql: string;
492
+ context?: string;
487
493
  description?: string;
488
494
  };
489
495
 
@@ -493,6 +499,7 @@ export declare type TCard = {
493
499
  description?: string;
494
500
  info?: string;
495
501
  connectionId?: string;
502
+ datamodelId?: string;
496
503
  type: TChartType;
497
504
  sql?: string;
498
505
  python?: string;
@@ -703,6 +710,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
703
710
  description?: string | undefined;
704
711
  info?: string | undefined;
705
712
  connectionId?: string | undefined;
713
+ datamodelId?: string | undefined;
706
714
  type: TChartType;
707
715
  sql?: string | undefined;
708
716
  python?: string | undefined;
@@ -888,6 +896,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
888
896
  description?: string | undefined;
889
897
  info?: string | undefined;
890
898
  connectionId?: string | undefined;
899
+ datamodelId?: string | undefined;
891
900
  type: TChartType;
892
901
  sql?: string | undefined;
893
902
  python?: string | undefined;
@@ -1030,6 +1039,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
1030
1039
  description?: string | undefined;
1031
1040
  info?: string | undefined;
1032
1041
  connectionId?: string | undefined;
1042
+ datamodelId?: string | undefined;
1033
1043
  type: TChartType;
1034
1044
  sql?: string | undefined;
1035
1045
  python?: string | undefined;
@@ -1253,7 +1263,9 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
1253
1263
  baseQueries?: {
1254
1264
  id: string;
1255
1265
  name: string;
1266
+ connectionId: string;
1256
1267
  sql: string;
1268
+ context?: string | undefined;
1257
1269
  description?: string | undefined;
1258
1270
  }[] | undefined;
1259
1271
  aiScopeTables?: {
@@ -1325,6 +1337,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
1325
1337
  description?: string | undefined;
1326
1338
  info?: string | undefined;
1327
1339
  connectionId?: string | undefined;
1340
+ datamodelId?: string | undefined;
1328
1341
  type: TChartType;
1329
1342
  sql?: string | undefined;
1330
1343
  python?: string | undefined;
@@ -1593,6 +1606,9 @@ export declare function useEditorAside(token?: AuthToken, _connectionQueryKey?:
1593
1606
  connectionItems: any;
1594
1607
  isConnectionsLoading: boolean;
1595
1608
  isConnectionsError: boolean;
1609
+ modelItems: any;
1610
+ isModelsLoading: boolean;
1611
+ isModelsError: boolean;
1596
1612
  databaseItems: any;
1597
1613
  isDatabasesLoadingOrFetching: boolean;
1598
1614
  isDatabaseError: boolean;
@@ -1610,6 +1626,7 @@ export declare function useEditorAside(token?: AuthToken, _connectionQueryKey?:
1610
1626
  tableName: any;
1611
1627
  schemaName: string;
1612
1628
  handleConnectionChange: (value: string) => void;
1629
+ handleDatamodelChange: (value: string) => void;
1613
1630
  handleDatabaseChange: (value: string) => void;
1614
1631
  handleSchemaChange: (value: string) => void;
1615
1632
  };
@@ -1649,6 +1666,7 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
1649
1666
  setApplyFilters: (applyFilters: boolean) => void;
1650
1667
  setFilterValues: (filterValues: TFilterValue[]) => void;
1651
1668
  setSelectedConnectionId: (connectionId: string) => void;
1669
+ setSelectedDatamodelId: (datamodelId: string) => void;
1652
1670
  setSelectedDatabaseName: (databaseName: string) => void;
1653
1671
  setSelectedSchemaName: (schemaName: string) => void;
1654
1672
  setSelectedTableName: (tableName: string) => void;
@@ -1675,6 +1693,7 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
1675
1693
  description?: string | undefined;
1676
1694
  info?: string | undefined;
1677
1695
  connectionId?: string | undefined;
1696
+ datamodelId?: string | undefined;
1678
1697
  type: TChartType;
1679
1698
  sql?: string | undefined;
1680
1699
  python?: string | undefined;
@@ -1817,6 +1836,7 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
1817
1836
  description?: string | undefined;
1818
1837
  info?: string | undefined;
1819
1838
  connectionId?: string | undefined;
1839
+ datamodelId?: string | undefined;
1820
1840
  type: TChartType;
1821
1841
  sql?: string | undefined;
1822
1842
  python?: string | undefined;
@@ -2006,6 +2026,7 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
2006
2026
  queryError?: string | undefined;
2007
2027
  pythonStdOut?: string | undefined;
2008
2028
  selectedConnectionId?: string | undefined;
2029
+ selectedDatamodelId?: string | undefined;
2009
2030
  selectedDatabaseName?: string | undefined;
2010
2031
  selectedSchemaName?: string | undefined;
2011
2032
  selectedTableName?: string | undefined;
@@ -2015,6 +2036,7 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
2015
2036
  is_nullable?: string | undefined;
2016
2037
  }[] | undefined;
2017
2038
  onConnectionChange?: ((connectionId: string) => void) | undefined;
2039
+ onDatamodelChange?: ((datamodelId: string) => void) | undefined;
2018
2040
  onDatabaseChange?: ((databaseName: string) => void) | undefined;
2019
2041
  onTableChange?: ((tableName: string) => void) | undefined;
2020
2042
  onSchemaChange?: ((schemaName: string) => void) | undefined;
@@ -222,7 +222,9 @@ export declare function Surfboard({ showControls, showFooter, ...rest }: Dashboa
222
222
  export declare type TBaseQuery = {
223
223
  id: string;
224
224
  name: string;
225
+ connectionId: string;
225
226
  sql: string;
227
+ context?: string;
226
228
  description?: string;
227
229
  };
228
230
 
@@ -232,6 +234,7 @@ export declare type TCard = {
232
234
  description?: string;
233
235
  info?: string;
234
236
  connectionId?: string;
237
+ datamodelId?: string;
235
238
  type: TChartType;
236
239
  sql?: string;
237
240
  python?: string;
@@ -214,7 +214,9 @@ export declare type StyleProps = {
214
214
  export declare type TBaseQuery = {
215
215
  id: string;
216
216
  name: string;
217
+ connectionId: string;
217
218
  sql: string;
219
+ context?: string;
218
220
  description?: string;
219
221
  };
220
222
 
@@ -224,6 +226,7 @@ export declare type TCard = {
224
226
  description?: string;
225
227
  info?: string;
226
228
  connectionId?: string;
229
+ datamodelId?: string;
227
230
  type: TChartType;
228
231
  sql?: string;
229
232
  python?: string;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.0.210",
8
+ "version": "0.0.212",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",