semaphor 0.0.16 → 0.0.17
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 +11 -0
- package/dist/react-semaphor.js +11100 -10994
- package/dist/react-semaphor.umd.cjs +106 -96
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/react-semaphor.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ declare type Actions = {
|
|
|
31
31
|
updateCard: (sheetId: string, card: TCard) => void;
|
|
32
32
|
removeCard: (sheetId: string, card: TCard) => void;
|
|
33
33
|
setIsDashboardEditing: (editing: boolean) => void;
|
|
34
|
+
setShowContext: (show: boolean) => void;
|
|
34
35
|
setShowDashboardJSON: (show: boolean) => void;
|
|
35
36
|
setIsVisualEditing: (editing: boolean) => void;
|
|
36
37
|
setShowFilters: (show: boolean) => void;
|
|
@@ -141,6 +142,7 @@ declare type DashboardStore = {
|
|
|
141
142
|
selectedCard?: TCard | null;
|
|
142
143
|
isDashboardEditing: boolean;
|
|
143
144
|
isVisualEditing: boolean;
|
|
145
|
+
showContext: boolean;
|
|
144
146
|
showDashboardJSON: boolean;
|
|
145
147
|
showFilters: boolean;
|
|
146
148
|
filterValues?: TFilterValue[];
|
|
@@ -286,6 +288,13 @@ export declare type TCard = {
|
|
|
286
288
|
refreshInterval?: string;
|
|
287
289
|
};
|
|
288
290
|
|
|
291
|
+
export declare type TCardContext = {
|
|
292
|
+
id: string;
|
|
293
|
+
name: string;
|
|
294
|
+
description: string;
|
|
295
|
+
sql: string;
|
|
296
|
+
};
|
|
297
|
+
|
|
289
298
|
export declare type TCardPreferences = {
|
|
290
299
|
filterOnClick?: boolean;
|
|
291
300
|
filterOnClickField?: string;
|
|
@@ -504,6 +513,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
504
513
|
} | null | undefined;
|
|
505
514
|
isDashboardEditing: boolean;
|
|
506
515
|
isVisualEditing: boolean;
|
|
516
|
+
showContext: boolean;
|
|
507
517
|
showDashboardJSON: boolean;
|
|
508
518
|
showFilters: boolean;
|
|
509
519
|
filterValues?: ({
|
|
@@ -586,6 +596,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
586
596
|
updateCard: (sheetId: string, card: TCard) => void;
|
|
587
597
|
removeCard: (sheetId: string, card: TCard) => void;
|
|
588
598
|
setIsDashboardEditing: (editing: boolean) => void;
|
|
599
|
+
setShowContext: (show: boolean) => void;
|
|
589
600
|
setShowDashboardJSON: (show: boolean) => void;
|
|
590
601
|
setIsVisualEditing: (editing: boolean) => void;
|
|
591
602
|
setShowFilters: (show: boolean) => void;
|