semaphor 0.0.1 → 0.0.11
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/react-semaphor.d.ts +25 -12
- package/dist/react-semaphor.js +11687 -11514
- package/dist/react-semaphor.umd.cjs +110 -104
- package/dist/style.css +1 -1
- package/package.json +2 -3
package/dist/react-semaphor.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare type Actions = {
|
|
|
10
10
|
setAuthToken: (authToken: AuthToken) => void;
|
|
11
11
|
setThemeStyle: (themeStyle: StyleProps) => void;
|
|
12
12
|
setIsEditorSaveEvent: (isEditorSaveEvent: boolean) => void;
|
|
13
|
+
setBookmarkKey: (bookmarkKey: string) => void;
|
|
13
14
|
setDashboard: (dashboard: TDashboard) => void;
|
|
14
15
|
setDashboardTheme: (theme: 'light' | 'dark' | 'system') => void;
|
|
15
16
|
setDashboardTitle: (title: string) => void;
|
|
@@ -91,6 +92,7 @@ declare type DashboardStore = {
|
|
|
91
92
|
authToken?: AuthToken;
|
|
92
93
|
theme?: 'light' | 'dark' | 'system';
|
|
93
94
|
themeStyle?: StyleProps;
|
|
95
|
+
bookmarkKey?: string;
|
|
94
96
|
dashboard: TDashboard;
|
|
95
97
|
selectedSheetId?: string | null | undefined;
|
|
96
98
|
selectedCardId?: string | null;
|
|
@@ -145,6 +147,8 @@ declare type FilterForString = BaseFilter & {
|
|
|
145
147
|
values: [string];
|
|
146
148
|
};
|
|
147
149
|
|
|
150
|
+
export declare function getBookmarkKey(dashboardId: string): string;
|
|
151
|
+
|
|
148
152
|
export declare function getDashbaordStateWithoutData(dashboardState: TDashboard): {
|
|
149
153
|
sheets: {
|
|
150
154
|
cards: TCard[] | undefined;
|
|
@@ -164,20 +168,30 @@ export declare type LoadingProps = {
|
|
|
164
168
|
message?: string;
|
|
165
169
|
};
|
|
166
170
|
|
|
171
|
+
/**
|
|
172
|
+
* Style propeerites for the dashboard
|
|
173
|
+
*/
|
|
167
174
|
export declare type StyleProps = {
|
|
175
|
+
/** css class for `dashboard-panel` */
|
|
168
176
|
dashboardPanel?: string;
|
|
177
|
+
/** css class for `dashboard-tabs-container` */
|
|
169
178
|
dashboardTabsContainer?: string;
|
|
179
|
+
/** css class for `dashboard-card` */
|
|
180
|
+
/** css class for `dashboard-card-container` */
|
|
181
|
+
dashboardCardContainer?: string;
|
|
170
182
|
dashboardCard?: string;
|
|
171
|
-
|
|
172
|
-
dashboardTitle?: string;
|
|
173
|
-
dashboardDescription?: string;
|
|
183
|
+
/** grid-layout config */
|
|
174
184
|
gridLayout?: {
|
|
185
|
+
/** css class for `react-grid-layout` */
|
|
175
186
|
className?: string;
|
|
176
187
|
margin?: [number, number];
|
|
177
188
|
};
|
|
189
|
+
/** chart config */
|
|
178
190
|
chart?: {
|
|
191
|
+
/** chart font config */
|
|
179
192
|
font?: Partial<FontSpec>;
|
|
180
193
|
dataset?: any;
|
|
194
|
+
/** chart options */
|
|
181
195
|
options?: any;
|
|
182
196
|
};
|
|
183
197
|
};
|
|
@@ -241,6 +255,9 @@ export declare type TSheet = {
|
|
|
241
255
|
cards?: TCard[];
|
|
242
256
|
};
|
|
243
257
|
|
|
258
|
+
/**
|
|
259
|
+
* Style for the dashboard
|
|
260
|
+
*/
|
|
244
261
|
export declare type TStyle = {
|
|
245
262
|
default: StyleProps;
|
|
246
263
|
dark?: StyleProps;
|
|
@@ -266,10 +283,8 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
266
283
|
themeStyle?: {
|
|
267
284
|
dashboardPanel?: string | undefined;
|
|
268
285
|
dashboardTabsContainer?: string | undefined;
|
|
286
|
+
dashboardCardContainer?: string | undefined;
|
|
269
287
|
dashboardCard?: string | undefined;
|
|
270
|
-
dashboardHeader?: string | undefined;
|
|
271
|
-
dashboardTitle?: string | undefined;
|
|
272
|
-
dashboardDescription?: string | undefined;
|
|
273
288
|
gridLayout?: {
|
|
274
289
|
className?: string | undefined;
|
|
275
290
|
margin?: [number, number] | undefined;
|
|
@@ -286,6 +301,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
286
301
|
options?: any;
|
|
287
302
|
} | undefined;
|
|
288
303
|
} | undefined;
|
|
304
|
+
bookmarkKey?: string | undefined;
|
|
289
305
|
dashboard: {
|
|
290
306
|
id: string;
|
|
291
307
|
title?: string | undefined;
|
|
@@ -335,10 +351,8 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
335
351
|
default: {
|
|
336
352
|
dashboardPanel?: string | undefined;
|
|
337
353
|
dashboardTabsContainer?: string | undefined;
|
|
354
|
+
dashboardCardContainer?: string | undefined;
|
|
338
355
|
dashboardCard?: string | undefined;
|
|
339
|
-
dashboardHeader?: string | undefined;
|
|
340
|
-
dashboardTitle?: string | undefined;
|
|
341
|
-
dashboardDescription?: string | undefined;
|
|
342
356
|
gridLayout?: {
|
|
343
357
|
className?: string | undefined;
|
|
344
358
|
margin?: [number, number] | undefined;
|
|
@@ -358,10 +372,8 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
358
372
|
dark?: {
|
|
359
373
|
dashboardPanel?: string | undefined;
|
|
360
374
|
dashboardTabsContainer?: string | undefined;
|
|
375
|
+
dashboardCardContainer?: string | undefined;
|
|
361
376
|
dashboardCard?: string | undefined;
|
|
362
|
-
dashboardHeader?: string | undefined;
|
|
363
|
-
dashboardTitle?: string | undefined;
|
|
364
|
-
dashboardDescription?: string | undefined;
|
|
365
377
|
gridLayout?: {
|
|
366
378
|
className?: string | undefined;
|
|
367
379
|
margin?: [number, number] | undefined;
|
|
@@ -474,6 +486,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
474
486
|
setAuthToken: (authToken: AuthToken) => void;
|
|
475
487
|
setThemeStyle: (themeStyle: StyleProps) => void;
|
|
476
488
|
setIsEditorSaveEvent: (isEditorSaveEvent: boolean) => void;
|
|
489
|
+
setBookmarkKey: (bookmarkKey: string) => void;
|
|
477
490
|
setDashboard: (dashboard: TDashboard) => void;
|
|
478
491
|
setDashboardTheme: (theme: 'light' | 'dark' | 'system') => void;
|
|
479
492
|
setDashboardTitle: (title: string) => void;
|