react-semaphor 0.0.365 → 0.0.366

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/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-FJLesO8t.js"),a=require("./chunks/index-D-22LEzt.js");require("react");require("react-dom");exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.createSqlGenConfig=e.createSqlGenConfig;exports.fmt=e.fmt;exports.getColumnDataType=e.getColumnDataType;exports.getFilterValueType=e.getFilterValueType;exports.getFormattedTableNameForQuery=e.getFormattedTableNameForQuery;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.invalidateToken=e.invalidateToken;exports.isBooleanDataType=e.isBooleanDataType;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.isDateDataType=e.isDateDataType;exports.isNumberDataType=e.isNumberDataType;exports.isTextDataType=e.isTextDataType;exports.resolveDataType=e.resolveDataType;exports.useCard=e.useCard;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorActions=e.useEditorActions;exports.useEditorStore=e.useEditorStore;exports.useTextFilterHook=e.useTextFilterHook;exports.SelectComponent=a.SelectComponent;exports.Surfboard=a.DashboardPlus;exports.cleanCard=a.cleanCard;exports.getDashbaordStateWithoutData=a.getDashbaordStateWithoutData;exports.useEditorAside=a.useEditorAside;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-0sZ1-IXK.js"),a=require("./chunks/index-ckeXgCi_.js");require("react");require("react-dom");exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.createSqlGenConfig=e.createSqlGenConfig;exports.fmt=e.fmt;exports.getColumnDataType=e.getColumnDataType;exports.getFilterValueType=e.getFilterValueType;exports.getFormattedTableNameForQuery=e.getFormattedTableNameForQuery;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.invalidateToken=e.invalidateToken;exports.isBooleanDataType=e.isBooleanDataType;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.isDateDataType=e.isDateDataType;exports.isNumberDataType=e.isNumberDataType;exports.isTextDataType=e.isTextDataType;exports.resolveDataType=e.resolveDataType;exports.useCard=e.useCard;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorActions=e.useEditorActions;exports.useEditorStore=e.useEditorStore;exports.useTextFilterHook=e.useTextFilterHook;exports.SelectComponent=a.SelectComponent;exports.Surfboard=a.DashboardPlus;exports.cleanCard=a.cleanCard;exports.downloadPdf=a.downloadPdf;exports.getDashbaordStateWithoutData=a.getDashbaordStateWithoutData;exports.useEditorAside=a.useEditorAside;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as o, cg as r, ce as i, ce as l, an as u, ap as d, ci as D, ch as n, az as c, bM as p, ao as m, a7 as T, au as b, ax as y, at as S, as as h, ar as g, cj as C, cf as f, y as x, x as F, cc as A, aM as k, a5 as q, cd as v } from "./chunks/index-DD_Iz12h.js";
2
- import { A as N, D as Q, I as z, F as G, z as H } from "./chunks/index-Bbvr9K_x.js";
1
+ import { D as o, cg as r, ce as i, ce as d, an as l, ap as u, ci as n, ch as D, az as c, bM as p, ao as m, a7 as T, au as b, ax as y, at as S, as as h, ar as f, cj as g, cf as C, y as x, x as F, cc as A, aM as k, a5 as q, cd as v } from "./chunks/index-B0y-9ayw.js";
2
+ import { F as N, D as Q, J as z, z as G, I as H, A as I } from "./chunks/index-DMKp0FF7.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  export {
@@ -7,14 +7,15 @@ export {
7
7
  r as DashboardWC,
8
8
  N as SelectComponent,
9
9
  i as SemaphorDataProvider,
10
- l as SemaphorQueryClient,
10
+ d as SemaphorQueryClient,
11
11
  Q as Surfboard,
12
12
  z as cleanCard,
13
- u as createSqlGenConfig,
14
- d as fmt,
15
- D as getColumnDataType,
16
- G as getDashbaordStateWithoutData,
17
- n as getFilterValueType,
13
+ l as createSqlGenConfig,
14
+ G as downloadPdf,
15
+ u as fmt,
16
+ n as getColumnDataType,
17
+ H as getDashbaordStateWithoutData,
18
+ D as getFilterValueType,
18
19
  c as getFormattedTableNameForQuery,
19
20
  p as getQualifiedTableName,
20
21
  m as getSql,
@@ -23,14 +24,14 @@ export {
23
24
  y as isColumnInSqlGen,
24
25
  S as isDateDataType,
25
26
  h as isNumberDataType,
26
- g as isTextDataType,
27
- C as resolveDataType,
28
- f as useCard,
27
+ f as isTextDataType,
28
+ g as resolveDataType,
29
+ C as useCard,
29
30
  x as useDashboardActions,
30
31
  F as useDashboardStore,
31
32
  A as useDateFilterHook,
32
33
  k as useEditorActions,
33
- H as useEditorAside,
34
+ I as useEditorAside,
34
35
  q as useEditorStore,
35
36
  v as useTextFilterHook
36
37
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-D-22LEzt.js");exports.Surfboard=e.DashboardPlus;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-ckeXgCi_.js");exports.Surfboard=e.DashboardPlus;
@@ -1,4 +1,4 @@
1
- import { D as a } from "../chunks/index-Bbvr9K_x.js";
1
+ import { D as a } from "../chunks/index-DMKp0FF7.js";
2
2
  export {
3
3
  a as Surfboard
4
4
  };
@@ -17,6 +17,7 @@ import { WritableDraft } from 'immer';
17
17
  declare type Actions = {
18
18
  setInitStore: () => void;
19
19
  setGlobalStyle: (style: TStyle) => void;
20
+ setIsDownloadingPdf: (isDownloadingPdf: boolean) => void;
20
21
  setLenses: (lenses: TLens[]) => void;
21
22
  setSelectedLensId: (lensId: string) => void;
22
23
  setAIScopeTables: (aiScopeTables: AIScopeTable[]) => void;
@@ -247,6 +248,7 @@ export declare type DashboardProps = {
247
248
  };
248
249
 
249
250
  export declare type DashboardStore = {
251
+ isDownloadingPdf?: boolean;
250
252
  isSessionExpired: boolean;
251
253
  authToken?: AuthToken;
252
254
  currentBreakpoint: Breakpoint;
@@ -287,6 +289,8 @@ export { DateRange }
287
289
 
288
290
  export declare type DisplayDataType = 'string' | 'date' | 'number' | 'html' | 'none';
289
291
 
292
+ export declare function downloadPdf(): Promise<void>;
293
+
290
294
  declare type EditorStore = {
291
295
  isShowingVisual: boolean;
292
296
  runSql: boolean;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.0.365",
8
+ "version": "0.0.366",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",