semaphor 0.0.83 → 0.0.84

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.
@@ -69,7 +69,13 @@ export declare type CustomCard = CardWithContent | CardWithFooter;
69
69
 
70
70
  export declare type DashboardProps = {
71
71
  id?: string;
72
+ /**
73
+ * Auth token for the dashboard. Auth token grants access to the dashboard.
74
+ */
72
75
  authToken: AuthToken | undefined;
76
+ /**
77
+ * Default filter values for the dashboard. The dashboard will be filtered by these values when the user loads the dashboard.
78
+ */
73
79
  defaultFilterValues?: {
74
80
  filterId: string;
75
81
  values: string[] | number[];
@@ -85,6 +91,10 @@ export declare type DashboardProps = {
85
91
  onFilterValuesChange?: (filterValues: TFilterValue[]) => void;
86
92
  LoadingComponent?: (props: LoadingProps) => React.ReactNode;
87
93
  ErrorComponent?: (props: ErrorProps) => React.ReactNode;
94
+ /**
95
+ * Placeholders for the dashboard.
96
+ */
97
+ placeholders?: Placeholders;
88
98
  };
89
99
 
90
100
  export declare type DateOptions = {
@@ -189,6 +199,17 @@ declare type Params = {
189
199
  [key: string]: string | number | string[] | number[];
190
200
  };
191
201
 
202
+ export declare type Placeholders = {
203
+ /**
204
+ * Placeholder for the card when there are no records to display.
205
+ */
206
+ NoRecords?: React.ReactNode;
207
+ /**
208
+ * Placeholder for session expired. This is shown when the session has expired.
209
+ */
210
+ SessionExpired?: React.ReactNode;
211
+ };
212
+
192
213
  export declare type SqlGen = {
193
214
  measures?: {
194
215
  name: 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.83",
8
+ "version": "0.0.84",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",