react-semaphor 0.0.559 → 0.0.561

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.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-C2gaZWk3.js"),r=require("../types/index.cjs");exports.Dashboard=e.Dashboard;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
@@ -1,4 +1,4 @@
1
- import { D as a } from "../chunks/index-CTtrpuQm.js";
1
+ import { D as a } from "../chunks/index-CAB57XCo.js";
2
2
  import { EMPTY_SELECTION as e } from "../types/index.js";
3
3
  export {
4
4
  a as Dashboard,
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-C2gaZWk3.js"),t=require("./types/index.cjs"),a=require("./chunks/dashboard-plus-94qkdRuS.js");require("react/jsx-runtime");require("react");require("react-dom");const r=["MM-DD-YYYY","YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY","MMMM DD, YYYY","MMM DD, YYYY","DD MMM YYYY","Week of MMM DD, YYYY","Week of MMMM DD, YYYY","YYYY-WW","MMM YYYY","MMMM YYYY","YYYY-MM","MM/YYYY","YYYY MMM","Q1 YYYY","YYYY Q1","1st Quarter YYYY","YYYY-Q1","Quarter 1, YYYY","YYYY","YY","custom"];exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.SemaphorContextProvider=e.SemaphorContextProvider;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.resolveDatamodelName=e.resolveDatamodelName;exports.useCard=e.useCard;exports.useCurrentActiveCard=e.useCurrentActiveCard;exports.useCurrentCardConfig=e.useCurrentCardConfig;exports.useCurrentSheetActiveCards=e.useCurrentSheetActiveCards;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useDataColumns=e.useDataColumns;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorActions=e.useEditorActions;exports.useEditorAside=e.useEditorAside;exports.useEditorStore=e.useEditorStore;exports.useTextFilterHook=e.useTextFilterHook;exports.EMPTY_SELECTION=t.EMPTY_SELECTION;exports.ResourceManagementPanel=a.ResourceManagementPanel;exports.ScheduleDashboard=a.ScheduleDashboard;exports.SelectComponent=a.SelectComponent;exports.Surfboard=a.DashboardPlus;exports.cleanCard=a.cleanCard;exports.downloadPdf=a.downloadPdf;exports.getDashbaordStateWithoutData=a.getDashbaordStateWithoutData;exports.DATE_FORMAT_VALUES=r;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { D as r, d as M, S as D, b as u, b as i, m as d, f as n, o as l, n as m, q as p, s as C, l as S, i as T, k as c, p as h, j as b, h as f, g, t as y, r as A, c as v, x, z as E, y as Q, A as k, w as F, e as W, u as N, C as P, v as q, B as R, a as _ } from "./chunks/index-CTtrpuQm.js";
1
+ import { D as r, d as M, S as D, b as u, b as i, m as d, f as n, o as l, n as m, q as p, s as C, l as S, i as T, k as c, p as h, j as b, h as f, g, t as y, r as A, c as v, x, z as E, y as Q, A as k, w as F, e as W, u as N, C as P, v as q, B as R, a as _ } from "./chunks/index-CAB57XCo.js";
2
2
  import { EMPTY_SELECTION as B } from "./types/index.js";
3
- import { R as H, S as I, a as L, D as O, c as V, d as j, g as z } from "./chunks/dashboard-plus-CioOSPos.js";
3
+ import { R as H, S as I, a as L, D as O, c as V, d as j, g as z } from "./chunks/dashboard-plus-CFmFuIzW.js";
4
4
  import "react/jsx-runtime";
5
5
  import "react";
6
6
  import "react-dom";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-94qkdRuS.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
@@ -1,4 +1,4 @@
1
- import { D as f } from "../chunks/dashboard-plus-CioOSPos.js";
1
+ import { D as f } from "../chunks/dashboard-plus-CFmFuIzW.js";
2
2
  import { EMPTY_SELECTION as a } from "../types/index.js";
3
3
  export {
4
4
  a as EMPTY_SELECTION,
@@ -194,7 +194,7 @@ declare type ConnectionType = 'GoogleSheets' | 'MySQL' | 'MSSQL' | 'PostgreSQL'
194
194
 
195
195
  export declare type CustomCard = CardWithContent | CardWithFooter;
196
196
 
197
- export declare function Dashboard(props: DashboardProps): JSX_2.Element;
197
+ export declare function Dashboard(props: DashboardProps): JSX_2.Element | null;
198
198
 
199
199
  export declare type DashboardEventHandlers = {
200
200
  onExportData?: (payload: ExportDataPayload) => void;
@@ -735,6 +735,7 @@ declare type TablePreferences = {
735
735
  selectColumnVisible?: boolean;
736
736
  columnVisibility?: Record<string, boolean>;
737
737
  pageSize?: number;
738
+ enableDevModePagination?: boolean;
738
739
  };
739
740
 
740
741
  export declare type TBaseQuery = {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={database:null,schema:null,table:null};exports.EMPTY_SELECTION=e;
@@ -411,7 +411,7 @@ export declare function createSqlGenConfig(column: TDataColumn, preSqlGen: SqlGe
411
411
 
412
412
  export declare type CustomCard = CardWithContent | CardWithFooter;
413
413
 
414
- export declare function Dashboard(props: DashboardProps): JSX_2.Element;
414
+ export declare function Dashboard(props: DashboardProps): JSX_2.Element | null;
415
415
 
416
416
  export declare type DashboardEventHandlers = {
417
417
  onExportData?: (payload: ExportDataPayload) => void;
@@ -1274,7 +1274,7 @@ export declare type StyleProps = {
1274
1274
  };
1275
1275
  };
1276
1276
 
1277
- export declare function Surfboard({ showControls, showFooter, ...rest }: DashboardPlusProps): JSX_2.Element;
1277
+ export declare function Surfboard({ showControls, showFooter, ...rest }: DashboardPlusProps): JSX_2.Element | null;
1278
1278
 
1279
1279
  declare interface TableActions {
1280
1280
  updateColumnSettingsMap: (columnSettings: ColumnSettingsMap) => void;
@@ -1301,6 +1301,7 @@ declare type TablePreferences = {
1301
1301
  selectColumnVisible?: boolean;
1302
1302
  columnVisibility?: Record<string, boolean>;
1303
1303
  pageSize?: number;
1304
+ enableDevModePagination?: boolean;
1304
1305
  };
1305
1306
 
1306
1307
  export declare type TBaseQuery = {
@@ -1632,6 +1633,10 @@ export declare type TokenRequest = {
1632
1633
  * Enables self-service editing and lens creation by the end user.
1633
1634
  */
1634
1635
  allowEdit?: boolean;
1636
+ /**
1637
+ * Schema level security policy. The schema name for the tenant.
1638
+ */
1639
+ sls?: string;
1635
1640
  /**
1636
1641
  * Connection-level security policies.
1637
1642
  * Can be a single policy or an array of policies.
@@ -733,13 +733,14 @@ export declare type StyleProps = {
733
733
  };
734
734
  };
735
735
 
736
- export declare function Surfboard({ showControls, showFooter, ...rest }: DashboardPlusProps): JSX_2.Element;
736
+ export declare function Surfboard({ showControls, showFooter, ...rest }: DashboardPlusProps): JSX_2.Element | null;
737
737
 
738
738
  declare type TablePreferences = {
739
739
  columnSettingsMap?: ColumnSettingsMap;
740
740
  selectColumnVisible?: boolean;
741
741
  columnVisibility?: Record<string, boolean>;
742
742
  pageSize?: number;
743
+ enableDevModePagination?: boolean;
743
744
  };
744
745
 
745
746
  export declare type TBaseQuery = {
@@ -732,6 +732,7 @@ declare type TablePreferences = {
732
732
  selectColumnVisible?: boolean;
733
733
  columnVisibility?: Record<string, boolean>;
734
734
  pageSize?: number;
735
+ enableDevModePagination?: boolean;
735
736
  };
736
737
 
737
738
  export declare type TBaseQuery = {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.0.559",
8
+ "version": "0.0.561",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",
@@ -18,20 +18,23 @@
18
18
  "dist",
19
19
  "CHANGELOG.md"
20
20
  ],
21
- "main": "dist/index.js",
21
+ "main": "dist/index.cjs",
22
22
  "module": "dist/index.js",
23
23
  "types": "dist/types/main.d.ts",
24
24
  "exports": {
25
25
  ".": {
26
26
  "import": "./dist/index.js",
27
+ "require": "./dist/index.cjs",
27
28
  "types": "./dist/types/main.d.ts"
28
29
  },
29
30
  "./dashboard": {
30
31
  "import": "./dist/dashboard/index.js",
32
+ "require": "./dist/dashboard/index.cjs",
31
33
  "types": "./dist/types/dashboard.d.ts"
32
34
  },
33
35
  "./surfboard": {
34
36
  "import": "./dist/surfboard/index.js",
37
+ "require": "./dist/surfboard/index.cjs",
35
38
  "types": "./dist/types/surfboard.d.ts"
36
39
  },
37
40
  "./style.css": "./dist/style.css"