semaphor 0.0.29 → 0.0.30
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 +15 -0
- package/dist/react-semaphor.js +8599 -8508
- package/dist/react-semaphor.umd.cjs +136 -131
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/react-semaphor.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { StoreApi } from 'zustand';
|
|
|
17
17
|
import { UseBoundStore } from 'zustand';
|
|
18
18
|
|
|
19
19
|
declare type Actions = {
|
|
20
|
+
setCurrentBreakpoint: (breakpoint: Breakpoint) => void;
|
|
20
21
|
addFilteringCard: (card: TCard) => void;
|
|
21
22
|
removeFilteringCard: (card: TCard) => void;
|
|
22
23
|
setCustomCards: (customCards: CustomCard[]) => void;
|
|
@@ -32,6 +33,7 @@ declare type Actions = {
|
|
|
32
33
|
setSelectedCardId: (sheetId: string, cardId: string | null) => void;
|
|
33
34
|
setSelectedFrameId: (frameId: string) => void;
|
|
34
35
|
setCardTitle: (sheetId: string, cardId: string, title: string) => void;
|
|
36
|
+
setCardInfo: (cardId: string, info: string) => void;
|
|
35
37
|
setCardSql: (sheetId: string, cardId: string, sql: string) => void;
|
|
36
38
|
setCardDescription: (sheetId: string, cardId: string, description: string) => void;
|
|
37
39
|
setFrameCardData: (sheetId: string, cardId: string, data: any[]) => void;
|
|
@@ -132,6 +134,8 @@ export declare type Bookmark = {
|
|
|
132
134
|
|
|
133
135
|
export declare const BOOLEAN_DATA_TYPES: string[];
|
|
134
136
|
|
|
137
|
+
export declare type Breakpoint = 'lg' | 'md' | 'sm' | 'xs' | 'xxs';
|
|
138
|
+
|
|
135
139
|
declare type CardWithContent = BaseCustomCard & {
|
|
136
140
|
content: React.FC<{
|
|
137
141
|
card: TCard;
|
|
@@ -191,6 +195,7 @@ export declare function DashboardProvider({ children }: {
|
|
|
191
195
|
|
|
192
196
|
export declare type DashboardStore = {
|
|
193
197
|
authToken?: AuthToken;
|
|
198
|
+
currentBreakpoint: Breakpoint;
|
|
194
199
|
theme?: 'light' | 'dark' | 'system';
|
|
195
200
|
themeStyle?: StyleProps;
|
|
196
201
|
filteringCards?: TCard[];
|
|
@@ -384,6 +389,7 @@ export declare type TCard = {
|
|
|
384
389
|
id: string;
|
|
385
390
|
title: string;
|
|
386
391
|
description?: string;
|
|
392
|
+
info?: string;
|
|
387
393
|
connectionId?: string;
|
|
388
394
|
type: TChartType;
|
|
389
395
|
sql?: string;
|
|
@@ -524,6 +530,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
524
530
|
accessToken: string;
|
|
525
531
|
refreshToken: string;
|
|
526
532
|
} | undefined;
|
|
533
|
+
currentBreakpoint: Breakpoint;
|
|
527
534
|
theme?: "light" | "dark" | "system" | undefined;
|
|
528
535
|
themeStyle?: {
|
|
529
536
|
dashboardPanel?: string | undefined;
|
|
@@ -550,6 +557,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
550
557
|
id: string;
|
|
551
558
|
title: string;
|
|
552
559
|
description?: string | undefined;
|
|
560
|
+
info?: string | undefined;
|
|
553
561
|
connectionId?: string | undefined;
|
|
554
562
|
type: TChartType;
|
|
555
563
|
sql?: string | undefined;
|
|
@@ -621,6 +629,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
621
629
|
id: string;
|
|
622
630
|
title: string;
|
|
623
631
|
description?: string | undefined;
|
|
632
|
+
info?: string | undefined;
|
|
624
633
|
connectionId?: string | undefined;
|
|
625
634
|
type: TChartType;
|
|
626
635
|
sql?: string | undefined;
|
|
@@ -649,6 +658,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
649
658
|
id: string;
|
|
650
659
|
title: string;
|
|
651
660
|
description?: string | undefined;
|
|
661
|
+
info?: string | undefined;
|
|
652
662
|
connectionId?: string | undefined;
|
|
653
663
|
type: TChartType;
|
|
654
664
|
sql?: string | undefined;
|
|
@@ -755,6 +765,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
755
765
|
id: string;
|
|
756
766
|
title: string;
|
|
757
767
|
description?: string | undefined;
|
|
768
|
+
info?: string | undefined;
|
|
758
769
|
connectionId?: string | undefined;
|
|
759
770
|
type: TChartType;
|
|
760
771
|
sql?: string | undefined;
|
|
@@ -837,6 +848,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
837
848
|
onUpdateCard?: ((card: TCard, sheetId: string) => void) | undefined;
|
|
838
849
|
onRemoveCard?: ((card: TCard, sheetId: string) => void) | undefined;
|
|
839
850
|
actions: {
|
|
851
|
+
setCurrentBreakpoint: (breakpoint: Breakpoint) => void;
|
|
840
852
|
addFilteringCard: (card: TCard) => void;
|
|
841
853
|
removeFilteringCard: (card: TCard) => void;
|
|
842
854
|
setCustomCards: (customCards: CustomCard[]) => void;
|
|
@@ -852,6 +864,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
852
864
|
setSelectedCardId: (sheetId: string, cardId: string | null) => void;
|
|
853
865
|
setSelectedFrameId: (frameId: string) => void;
|
|
854
866
|
setCardTitle: (sheetId: string, cardId: string, title: string) => void;
|
|
867
|
+
setCardInfo: (cardId: string, info: string) => void;
|
|
855
868
|
setCardSql: (sheetId: string, cardId: string, sql: string) => void;
|
|
856
869
|
setCardDescription: (sheetId: string, cardId: string, description: string) => void;
|
|
857
870
|
setFrameCardData: (sheetId: string, cardId: string, data: any[]) => void;
|
|
@@ -968,6 +981,7 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
968
981
|
id: string;
|
|
969
982
|
title: string;
|
|
970
983
|
description?: string | undefined;
|
|
984
|
+
info?: string | undefined;
|
|
971
985
|
connectionId?: string | undefined;
|
|
972
986
|
type: TChartType;
|
|
973
987
|
sql?: string | undefined;
|
|
@@ -996,6 +1010,7 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
996
1010
|
id: string;
|
|
997
1011
|
title: string;
|
|
998
1012
|
description?: string | undefined;
|
|
1013
|
+
info?: string | undefined;
|
|
999
1014
|
connectionId?: string | undefined;
|
|
1000
1015
|
type: TChartType;
|
|
1001
1016
|
sql?: string | undefined;
|