react-semaphor 0.0.252 → 0.0.254
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/chunks/dashboard-plus-5at88oIA.js +245 -0
- package/dist/chunks/{dashboard-plus-MsS9OjXP.js → dashboard-plus-FX4aBajk.js} +2264 -1988
- package/dist/chunks/index-RiPhpkfr.js +448 -0
- package/dist/chunks/{index-hUAmKNzK.js → index-wsauSY2B.js} +7152 -7062
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/dashboard.d.ts +13 -0
- package/dist/types/main.d.ts +98 -1
- package/dist/types/surfboard.d.ts +13 -0
- package/dist/types/types.d.ts +13 -0
- package/package.json +2 -2
- package/dist/chunks/dashboard-plus-j0SFLaYF.js +0 -235
- package/dist/chunks/index-T6uxB_lJ.js +0 -448
package/dist/types/main.d.ts
CHANGED
|
@@ -218,6 +218,7 @@ declare type DashboardPlusProps = {
|
|
|
218
218
|
export declare type DashboardProps = {
|
|
219
219
|
id?: string;
|
|
220
220
|
authToken: AuthToken | undefined;
|
|
221
|
+
defaultFilterValues?: TFilterValue[];
|
|
221
222
|
customStyle?: TStyle;
|
|
222
223
|
currentTheme?: Theme;
|
|
223
224
|
version?: string;
|
|
@@ -509,6 +510,7 @@ export declare type TCard = {
|
|
|
509
510
|
id: string;
|
|
510
511
|
title: string;
|
|
511
512
|
tabTitle?: string;
|
|
513
|
+
displayTab?: boolean;
|
|
512
514
|
description?: string;
|
|
513
515
|
info?: string;
|
|
514
516
|
connectionId?: string;
|
|
@@ -596,6 +598,17 @@ export declare type TCustomCardPreferences = {
|
|
|
596
598
|
url: string;
|
|
597
599
|
componentName: string;
|
|
598
600
|
type?: 'iframe' | 'component';
|
|
601
|
+
visualType?: 'single' | 'multiple';
|
|
602
|
+
settings?: any;
|
|
603
|
+
dataInputCardIds?: {
|
|
604
|
+
[key: number]: {
|
|
605
|
+
cardId: string;
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
inputData?: {
|
|
609
|
+
cardId: string;
|
|
610
|
+
data: Record<string, any>[];
|
|
611
|
+
}[];
|
|
599
612
|
};
|
|
600
613
|
|
|
601
614
|
export declare type TDashboard = {
|
|
@@ -651,7 +664,7 @@ declare type TFilter = {
|
|
|
651
664
|
operation: Operation;
|
|
652
665
|
};
|
|
653
666
|
|
|
654
|
-
declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
|
|
667
|
+
export declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
|
|
655
668
|
|
|
656
669
|
export declare type TFrame = {
|
|
657
670
|
id: string;
|
|
@@ -797,6 +810,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
797
810
|
id: string;
|
|
798
811
|
title: string;
|
|
799
812
|
tabTitle?: string | undefined;
|
|
813
|
+
displayTab?: boolean | undefined;
|
|
800
814
|
description?: string | undefined;
|
|
801
815
|
info?: string | undefined;
|
|
802
816
|
connectionId?: string | undefined;
|
|
@@ -934,6 +948,19 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
934
948
|
url: string;
|
|
935
949
|
componentName: string;
|
|
936
950
|
type?: "iframe" | "component" | undefined;
|
|
951
|
+
visualType?: "single" | "multiple" | undefined;
|
|
952
|
+
settings?: any;
|
|
953
|
+
dataInputCardIds?: {
|
|
954
|
+
[x: number]: {
|
|
955
|
+
cardId: string;
|
|
956
|
+
};
|
|
957
|
+
} | undefined;
|
|
958
|
+
inputData?: {
|
|
959
|
+
cardId: string;
|
|
960
|
+
data: {
|
|
961
|
+
[x: string]: any;
|
|
962
|
+
}[];
|
|
963
|
+
}[] | undefined;
|
|
937
964
|
} | undefined;
|
|
938
965
|
lastSelectedDatabase?: string | undefined;
|
|
939
966
|
lastSelectedDatamodelId?: string | undefined;
|
|
@@ -989,6 +1016,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
989
1016
|
id: string;
|
|
990
1017
|
title: string;
|
|
991
1018
|
tabTitle?: string | undefined;
|
|
1019
|
+
displayTab?: boolean | undefined;
|
|
992
1020
|
description?: string | undefined;
|
|
993
1021
|
info?: string | undefined;
|
|
994
1022
|
connectionId?: string | undefined;
|
|
@@ -1126,6 +1154,19 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1126
1154
|
url: string;
|
|
1127
1155
|
componentName: string;
|
|
1128
1156
|
type?: "iframe" | "component" | undefined;
|
|
1157
|
+
visualType?: "single" | "multiple" | undefined;
|
|
1158
|
+
settings?: any;
|
|
1159
|
+
dataInputCardIds?: {
|
|
1160
|
+
[x: number]: {
|
|
1161
|
+
cardId: string;
|
|
1162
|
+
};
|
|
1163
|
+
} | undefined;
|
|
1164
|
+
inputData?: {
|
|
1165
|
+
cardId: string;
|
|
1166
|
+
data: {
|
|
1167
|
+
[x: string]: any;
|
|
1168
|
+
}[];
|
|
1169
|
+
}[] | undefined;
|
|
1129
1170
|
} | undefined;
|
|
1130
1171
|
lastSelectedDatabase?: string | undefined;
|
|
1131
1172
|
lastSelectedDatamodelId?: string | undefined;
|
|
@@ -1140,6 +1181,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1140
1181
|
id: string;
|
|
1141
1182
|
title: string;
|
|
1142
1183
|
tabTitle?: string | undefined;
|
|
1184
|
+
displayTab?: boolean | undefined;
|
|
1143
1185
|
description?: string | undefined;
|
|
1144
1186
|
info?: string | undefined;
|
|
1145
1187
|
connectionId?: string | undefined;
|
|
@@ -1277,6 +1319,19 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1277
1319
|
url: string;
|
|
1278
1320
|
componentName: string;
|
|
1279
1321
|
type?: "iframe" | "component" | undefined;
|
|
1322
|
+
visualType?: "single" | "multiple" | undefined;
|
|
1323
|
+
settings?: any;
|
|
1324
|
+
dataInputCardIds?: {
|
|
1325
|
+
[x: number]: {
|
|
1326
|
+
cardId: string;
|
|
1327
|
+
};
|
|
1328
|
+
} | undefined;
|
|
1329
|
+
inputData?: {
|
|
1330
|
+
cardId: string;
|
|
1331
|
+
data: {
|
|
1332
|
+
[x: string]: any;
|
|
1333
|
+
}[];
|
|
1334
|
+
}[] | undefined;
|
|
1280
1335
|
} | undefined;
|
|
1281
1336
|
lastSelectedDatabase?: string | undefined;
|
|
1282
1337
|
lastSelectedDatamodelId?: string | undefined;
|
|
@@ -1446,6 +1501,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1446
1501
|
id: string;
|
|
1447
1502
|
title: string;
|
|
1448
1503
|
tabTitle?: string | undefined;
|
|
1504
|
+
displayTab?: boolean | undefined;
|
|
1449
1505
|
description?: string | undefined;
|
|
1450
1506
|
info?: string | undefined;
|
|
1451
1507
|
connectionId?: string | undefined;
|
|
@@ -1583,6 +1639,19 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
|
|
|
1583
1639
|
url: string;
|
|
1584
1640
|
componentName: string;
|
|
1585
1641
|
type?: "iframe" | "component" | undefined;
|
|
1642
|
+
visualType?: "single" | "multiple" | undefined;
|
|
1643
|
+
settings?: any;
|
|
1644
|
+
dataInputCardIds?: {
|
|
1645
|
+
[x: number]: {
|
|
1646
|
+
cardId: string;
|
|
1647
|
+
};
|
|
1648
|
+
} | undefined;
|
|
1649
|
+
inputData?: {
|
|
1650
|
+
cardId: string;
|
|
1651
|
+
data: {
|
|
1652
|
+
[x: string]: any;
|
|
1653
|
+
}[];
|
|
1654
|
+
}[] | undefined;
|
|
1586
1655
|
} | undefined;
|
|
1587
1656
|
lastSelectedDatabase?: string | undefined;
|
|
1588
1657
|
lastSelectedDatamodelId?: string | undefined;
|
|
@@ -1819,6 +1888,7 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1819
1888
|
id: string;
|
|
1820
1889
|
title: string;
|
|
1821
1890
|
tabTitle?: string | undefined;
|
|
1891
|
+
displayTab?: boolean | undefined;
|
|
1822
1892
|
description?: string | undefined;
|
|
1823
1893
|
info?: string | undefined;
|
|
1824
1894
|
connectionId?: string | undefined;
|
|
@@ -1956,6 +2026,19 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1956
2026
|
url: string;
|
|
1957
2027
|
componentName: string;
|
|
1958
2028
|
type?: "iframe" | "component" | undefined;
|
|
2029
|
+
visualType?: "single" | "multiple" | undefined;
|
|
2030
|
+
settings?: any;
|
|
2031
|
+
dataInputCardIds?: {
|
|
2032
|
+
[x: number]: {
|
|
2033
|
+
cardId: string;
|
|
2034
|
+
};
|
|
2035
|
+
} | undefined;
|
|
2036
|
+
inputData?: {
|
|
2037
|
+
cardId: string;
|
|
2038
|
+
data: {
|
|
2039
|
+
[x: string]: any;
|
|
2040
|
+
}[];
|
|
2041
|
+
}[] | undefined;
|
|
1959
2042
|
} | undefined;
|
|
1960
2043
|
lastSelectedDatabase?: string | undefined;
|
|
1961
2044
|
lastSelectedDatamodelId?: string | undefined;
|
|
@@ -1969,6 +2052,7 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
1969
2052
|
id: string;
|
|
1970
2053
|
title: string;
|
|
1971
2054
|
tabTitle?: string | undefined;
|
|
2055
|
+
displayTab?: boolean | undefined;
|
|
1972
2056
|
description?: string | undefined;
|
|
1973
2057
|
info?: string | undefined;
|
|
1974
2058
|
connectionId?: string | undefined;
|
|
@@ -2106,6 +2190,19 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
2106
2190
|
url: string;
|
|
2107
2191
|
componentName: string;
|
|
2108
2192
|
type?: "iframe" | "component" | undefined;
|
|
2193
|
+
visualType?: "single" | "multiple" | undefined;
|
|
2194
|
+
settings?: any;
|
|
2195
|
+
dataInputCardIds?: {
|
|
2196
|
+
[x: number]: {
|
|
2197
|
+
cardId: string;
|
|
2198
|
+
};
|
|
2199
|
+
} | undefined;
|
|
2200
|
+
inputData?: {
|
|
2201
|
+
cardId: string;
|
|
2202
|
+
data: {
|
|
2203
|
+
[x: string]: any;
|
|
2204
|
+
}[];
|
|
2205
|
+
}[] | undefined;
|
|
2109
2206
|
} | undefined;
|
|
2110
2207
|
lastSelectedDatabase?: string | undefined;
|
|
2111
2208
|
lastSelectedDatamodelId?: string | undefined;
|
|
@@ -71,6 +71,7 @@ declare type DashboardPlusProps = {
|
|
|
71
71
|
export declare type DashboardProps = {
|
|
72
72
|
id?: string;
|
|
73
73
|
authToken: AuthToken | undefined;
|
|
74
|
+
defaultFilterValues?: TFilterValue[];
|
|
74
75
|
customStyle?: TStyle;
|
|
75
76
|
currentTheme?: Theme;
|
|
76
77
|
version?: string;
|
|
@@ -235,6 +236,7 @@ export declare type TCard = {
|
|
|
235
236
|
id: string;
|
|
236
237
|
title: string;
|
|
237
238
|
tabTitle?: string;
|
|
239
|
+
displayTab?: boolean;
|
|
238
240
|
description?: string;
|
|
239
241
|
info?: string;
|
|
240
242
|
connectionId?: string;
|
|
@@ -320,6 +322,17 @@ export declare type TCustomCardPreferences = {
|
|
|
320
322
|
url: string;
|
|
321
323
|
componentName: string;
|
|
322
324
|
type?: 'iframe' | 'component';
|
|
325
|
+
visualType?: 'single' | 'multiple';
|
|
326
|
+
settings?: any;
|
|
327
|
+
dataInputCardIds?: {
|
|
328
|
+
[key: number]: {
|
|
329
|
+
cardId: string;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
inputData?: {
|
|
333
|
+
cardId: string;
|
|
334
|
+
data: Record<string, any>[];
|
|
335
|
+
}[];
|
|
323
336
|
};
|
|
324
337
|
|
|
325
338
|
export declare type TDashboard = {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export declare type CustomCard = CardWithContent | CardWithFooter;
|
|
|
65
65
|
export declare type DashboardProps = {
|
|
66
66
|
id?: string;
|
|
67
67
|
authToken: AuthToken | undefined;
|
|
68
|
+
defaultFilterValues?: TFilterValue[];
|
|
68
69
|
customStyle?: TStyle;
|
|
69
70
|
currentTheme?: Theme;
|
|
70
71
|
version?: string;
|
|
@@ -227,6 +228,7 @@ export declare type TCard = {
|
|
|
227
228
|
id: string;
|
|
228
229
|
title: string;
|
|
229
230
|
tabTitle?: string;
|
|
231
|
+
displayTab?: boolean;
|
|
230
232
|
description?: string;
|
|
231
233
|
info?: string;
|
|
232
234
|
connectionId?: string;
|
|
@@ -312,6 +314,17 @@ export declare type TCustomCardPreferences = {
|
|
|
312
314
|
url: string;
|
|
313
315
|
componentName: string;
|
|
314
316
|
type?: 'iframe' | 'component';
|
|
317
|
+
visualType?: 'single' | 'multiple';
|
|
318
|
+
settings?: any;
|
|
319
|
+
dataInputCardIds?: {
|
|
320
|
+
[key: number]: {
|
|
321
|
+
cardId: string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
inputData?: {
|
|
325
|
+
cardId: string;
|
|
326
|
+
data: Record<string, any>[];
|
|
327
|
+
}[];
|
|
315
328
|
};
|
|
316
329
|
|
|
317
330
|
export declare type TDashboard = {
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"email": "support@semaphor.cloud"
|
|
6
6
|
},
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"version": "0.0.
|
|
8
|
+
"version": "0.0.254",
|
|
9
9
|
"description": "Fully interactive and customizable dashboards for your apps.",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"react",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"immer": "^10.0.3",
|
|
84
84
|
"jwt-decode": "^4.0.0",
|
|
85
85
|
"lodash": "^4.17.21",
|
|
86
|
-
"lucide-react": "^0.
|
|
86
|
+
"lucide-react": "^0.453.0",
|
|
87
87
|
"ms": "^2.1.3",
|
|
88
88
|
"next-themes": "^0.3.0",
|
|
89
89
|
"react": "^18.2.0",
|