semaphor 0.0.106 → 0.0.108

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.
@@ -267,7 +267,7 @@ declare interface DataSource {
267
267
  selectedEntities: SelectedEntities;
268
268
  }
269
269
 
270
- declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "YYYY-MM", "MMMM YYYY", "custom"];
270
+ declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "Week of MMM DD, YYYY", "Week of MMMM DD, YYYY", "YYYY-WW", "MMM YYYY", "MMMM YYYY", "YYYY-MM", "MM/YYYY", "YYYY MMM", "Q1 YYYY", "YYYY Q1", "1st Quarter YYYY", "YYYY-Q1", "Quarter 1, YYYY", "YYYY", "YY", "custom"];
271
271
 
272
272
  declare type DateFormatValue = (typeof DATE_FORMAT_VALUES)[number];
273
273
 
@@ -468,6 +468,7 @@ export declare type GetPluginsResponse = {
468
468
  plugins: {
469
469
  label: string;
470
470
  value: string;
471
+ type: PluginType;
471
472
  }[];
472
473
  };
473
474
 
@@ -635,6 +636,8 @@ export declare type Placeholders = {
635
636
  SessionExpired?: React.ReactNode;
636
637
  };
637
638
 
639
+ export declare type PluginType = 'custom' | 'standard';
640
+
638
641
  declare interface QueryConfig {
639
642
  groupByColumns?: GroupByColumn[];
640
643
  pivotColumns?: GroupByColumn[];
@@ -858,6 +861,7 @@ export declare type TCustomCardPreferences = {
858
861
  url: string;
859
862
  componentName: string;
860
863
  icon?: string;
864
+ pluginChartType?: string;
861
865
  type?: 'iframe' | 'component';
862
866
  visualType?: 'single' | 'multiple';
863
867
  settings?: any;
@@ -107,6 +107,7 @@ declare type Actions = {
107
107
  addBaseQuery: (baseQuery: TBaseQuery) => void;
108
108
  removeBaseQuery: (baseQueryId: string) => void;
109
109
  setBaseQueries: (baseQueries: TBaseQuery[]) => void;
110
+ setIsDashboardPanelOpen: (open: boolean) => void;
110
111
  };
111
112
 
112
113
  declare type Actions_2 = TableActions & ExplorerActions & DrillActions & {
@@ -477,6 +478,7 @@ export declare type DashboardStore = {
477
478
  showDashboardJSON: boolean;
478
479
  showFilters: boolean;
479
480
  filterValues?: TFilterValue[];
481
+ isDashboardPanelOpen: boolean;
480
482
  onEvent?: (event: TEvent) => void;
481
483
  onSaveFunction?: (dashboard: TDashboard, description?: string) => void;
482
484
  onAddFrame?: (card: TFrame, sheetId: string) => void;
@@ -511,6 +513,9 @@ export declare interface DataModelEntityReference extends DatabaseEntityReferenc
511
513
 
512
514
  export declare interface DatasetEntityReference extends DatabaseEntityReference {
513
515
  type: 'dataset';
516
+ datasetType: 'physical' | 'virtual';
517
+ datamodelId: string;
518
+ sql: string;
514
519
  id: string;
515
520
  domainId: string;
516
521
  label: string;
@@ -532,7 +537,7 @@ export declare interface DataSource {
532
537
 
533
538
  export declare type DataType = 'string' | 'number' | 'date' | 'datetime' | 'boolean' | 'json' | 'geo';
534
539
 
535
- export declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "YYYY-MM", "MMMM YYYY", "custom"];
540
+ export declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "Week of MMM DD, YYYY", "Week of MMMM DD, YYYY", "YYYY-WW", "MMM YYYY", "MMMM YYYY", "YYYY-MM", "MM/YYYY", "YYYY MMM", "Q1 YYYY", "YYYY Q1", "1st Quarter YYYY", "YYYY-Q1", "Quarter 1, YYYY", "YYYY", "YY", "custom"];
536
541
 
537
542
  export declare type DateFormatOption = {
538
543
  value: DateFormatValue;
@@ -906,6 +911,7 @@ export declare type GetPluginsResponse = {
906
911
  plugins: {
907
912
  label: string;
908
913
  value: string;
914
+ type: PluginType;
909
915
  }[];
910
916
  };
911
917
 
@@ -1096,6 +1102,8 @@ export declare type Placeholders = {
1096
1102
  SessionExpired?: React.ReactNode;
1097
1103
  };
1098
1104
 
1105
+ export declare type PluginType = 'custom' | 'standard';
1106
+
1099
1107
  export declare type QueryColumn = GroupByColumn | MetricColumn | FilterByColumn;
1100
1108
 
1101
1109
  export declare interface QueryConfig {
@@ -1124,6 +1132,15 @@ export declare function resolveDatamodelName(datamodelName: string): string;
1124
1132
 
1125
1133
  export declare const resolveDataType: (value: any) => string;
1126
1134
 
1135
+ export declare function ResourceManagementPanel({ isOpen, onClose, className, onDashboardItemClick, }: ResourceManagementPanelProps): JSX_2.Element;
1136
+
1137
+ declare interface ResourceManagementPanelProps {
1138
+ isOpen: boolean;
1139
+ onClose: () => void;
1140
+ className?: string;
1141
+ onDashboardItemClick?: (dashboardId: string) => void;
1142
+ }
1143
+
1127
1144
  export declare function ScheduleDashboard({ triggerButtonClassName, }: {
1128
1145
  triggerButtonClassName?: string;
1129
1146
  }): JSX_2.Element;
@@ -1155,6 +1172,11 @@ declare type SelectProps = {
1155
1172
  type?: 'select' | 'combobox';
1156
1173
  };
1157
1174
 
1175
+ export declare const SemaphorContextProvider: ({ children, dashboardProps, }: {
1176
+ children: React.ReactNode;
1177
+ dashboardProps: DashboardProps;
1178
+ }) => JSX_2.Element;
1179
+
1158
1180
  declare function SemaphorQueryClient({ children, }: {
1159
1181
  children: React.ReactNode;
1160
1182
  }): JSX_2.Element;
@@ -1384,6 +1406,7 @@ export declare type TCustomCardPreferences = {
1384
1406
  url: string;
1385
1407
  componentName: string;
1386
1408
  icon?: string;
1409
+ pluginChartType?: string;
1387
1410
  type?: 'iframe' | 'component';
1388
1411
  visualType?: 'single' | 'multiple';
1389
1412
  settings?: any;
@@ -1518,6 +1541,10 @@ export declare type TokenParams = {
1518
1541
  * Main payload for generating a secure access token for a dashboard.
1519
1542
  */
1520
1543
  export declare type TokenRequest = {
1544
+ /**
1545
+ * Type of the token request. Default is 'dashboard'.
1546
+ */
1547
+ type?: 'dashboard' | 'project';
1521
1548
  /**
1522
1549
  * Identifier of the dashboard to be accessed.
1523
1550
  */
@@ -1526,6 +1553,14 @@ export declare type TokenRequest = {
1526
1553
  * Secret key used for validating access to the dashboard.
1527
1554
  */
1528
1555
  dashboardSecret: string;
1556
+ /**
1557
+ * Unique identifier of the project.
1558
+ */
1559
+ projectId?: string;
1560
+ /**
1561
+ * Secret key used for validating access to the project.
1562
+ */
1563
+ projectSecret?: string;
1529
1564
  /**
1530
1565
  * Token expiry duration in seconds.
1531
1566
  */
@@ -1535,13 +1570,25 @@ export declare type TokenRequest = {
1535
1570
  */
1536
1571
  tenantId?: string;
1537
1572
  /**
1538
- * Unique identifier of the end user accessing the dashboard.
1573
+ * Unique identifier of the tenant user accessing the dashboard.
1539
1574
  */
1540
1575
  endUserId?: string;
1541
1576
  /**
1542
- * Email of the end user (for personalization, audit, or identification).
1577
+ * Email of the tenant user (for personalization, audit, or identification).
1543
1578
  */
1544
1579
  endUserEmail?: string;
1580
+ /**
1581
+ * Unique identifier of the org user accessing the dashboard.
1582
+ */
1583
+ orgUserId?: string;
1584
+ /**
1585
+ * Email of the org user (for personalization, audit, or identification).
1586
+ */
1587
+ orgUserEmail?: string;
1588
+ /**
1589
+ * Display name of the end user.
1590
+ */
1591
+ displayName?: string;
1545
1592
  /**
1546
1593
  * Enables self-service editing and lens creation by the end user.
1547
1594
  */
@@ -270,7 +270,7 @@ declare interface DataSource {
270
270
  selectedEntities: SelectedEntities;
271
271
  }
272
272
 
273
- declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "YYYY-MM", "MMMM YYYY", "custom"];
273
+ declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "Week of MMM DD, YYYY", "Week of MMMM DD, YYYY", "YYYY-WW", "MMM YYYY", "MMMM YYYY", "YYYY-MM", "MM/YYYY", "YYYY MMM", "Q1 YYYY", "YYYY Q1", "1st Quarter YYYY", "YYYY-Q1", "Quarter 1, YYYY", "YYYY", "YY", "custom"];
274
274
 
275
275
  declare type DateFormatValue = (typeof DATE_FORMAT_VALUES)[number];
276
276
 
@@ -471,6 +471,7 @@ export declare type GetPluginsResponse = {
471
471
  plugins: {
472
472
  label: string;
473
473
  value: string;
474
+ type: PluginType;
474
475
  }[];
475
476
  };
476
477
 
@@ -638,6 +639,8 @@ export declare type Placeholders = {
638
639
  SessionExpired?: React.ReactNode;
639
640
  };
640
641
 
642
+ export declare type PluginType = 'custom' | 'standard';
643
+
641
644
  declare interface QueryConfig {
642
645
  groupByColumns?: GroupByColumn[];
643
646
  pivotColumns?: GroupByColumn[];
@@ -863,6 +866,7 @@ export declare type TCustomCardPreferences = {
863
866
  url: string;
864
867
  componentName: string;
865
868
  icon?: string;
869
+ pluginChartType?: string;
866
870
  type?: 'iframe' | 'component';
867
871
  visualType?: 'single' | 'multiple';
868
872
  settings?: any;
@@ -264,7 +264,7 @@ declare interface DataSource {
264
264
  selectedEntities: SelectedEntities;
265
265
  }
266
266
 
267
- declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "YYYY-MM", "MMMM YYYY", "custom"];
267
+ declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "Week of MMM DD, YYYY", "Week of MMMM DD, YYYY", "YYYY-WW", "MMM YYYY", "MMMM YYYY", "YYYY-MM", "MM/YYYY", "YYYY MMM", "Q1 YYYY", "YYYY Q1", "1st Quarter YYYY", "YYYY-Q1", "Quarter 1, YYYY", "YYYY", "YY", "custom"];
268
268
 
269
269
  declare type DateFormatValue = (typeof DATE_FORMAT_VALUES)[number];
270
270
 
@@ -465,6 +465,7 @@ export declare type GetPluginsResponse = {
465
465
  plugins: {
466
466
  label: string;
467
467
  value: string;
468
+ type: PluginType;
468
469
  }[];
469
470
  };
470
471
 
@@ -632,6 +633,8 @@ export declare type Placeholders = {
632
633
  SessionExpired?: React.ReactNode;
633
634
  };
634
635
 
636
+ export declare type PluginType = 'custom' | 'standard';
637
+
635
638
  declare interface QueryConfig {
636
639
  groupByColumns?: GroupByColumn[];
637
640
  pivotColumns?: GroupByColumn[];
@@ -855,6 +858,7 @@ export declare type TCustomCardPreferences = {
855
858
  url: string;
856
859
  componentName: string;
857
860
  icon?: string;
861
+ pluginChartType?: string;
858
862
  type?: 'iframe' | 'component';
859
863
  visualType?: 'single' | 'multiple';
860
864
  settings?: any;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.0.106",
8
+ "version": "0.0.108",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",
@@ -55,6 +55,7 @@
55
55
  "@r2wc/react-to-web-component": "^2.0.4",
56
56
  "@radix-ui/react-accordion": "^1.2.2",
57
57
  "@radix-ui/react-alert-dialog": "^1.1.4",
58
+ "@radix-ui/react-avatar": "^1.1.10",
58
59
  "@radix-ui/react-checkbox": "^1.1.3",
59
60
  "@radix-ui/react-collapsible": "^1.1.2",
60
61
  "@radix-ui/react-context-menu": "^2.2.15",
@@ -69,6 +70,7 @@
69
70
  "@radix-ui/react-scroll-area": "^1.2.2",
70
71
  "@radix-ui/react-select": "^2.1.4",
71
72
  "@radix-ui/react-separator": "^1.1.1",
73
+ "@radix-ui/react-slider": "^1.3.5",
72
74
  "@radix-ui/react-slot": "^1.2.2",
73
75
  "@radix-ui/react-switch": "^1.1.2",
74
76
  "@radix-ui/react-tabs": "^1.1.2",