react-semaphor 0.1.217 → 0.1.219

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.
Files changed (38) hide show
  1. package/dist/chunks/{dashboard-controls-p-PLTBKo.js → dashboard-controls-DfbaI6XZ.js} +1 -1
  2. package/dist/chunks/{dashboard-controls-DLjwyISu.js → dashboard-controls-fhZIf1Z0.js} +5 -5
  3. package/dist/chunks/{dashboard-json-DC8Hr2u7.js → dashboard-json-Bt-kpD9y.js} +1 -1
  4. package/dist/chunks/{dashboard-json-Dy8OL7sx.js → dashboard-json-DooCuhHo.js} +1 -1
  5. package/dist/chunks/{dashboard-summary-settings-dialog-CQISZPzc.js → dashboard-summary-settings-dialog-B3eWK66q.js} +1 -1
  6. package/dist/chunks/{dashboard-summary-settings-dialog-Dlzv-d9Z.js → dashboard-summary-settings-dialog-CWmq1rnL.js} +1 -1
  7. package/dist/chunks/edit-dashboard-visual-Blkn0D44.js +164 -0
  8. package/dist/chunks/{edit-dashboard-visual-DkZya-OV.js → edit-dashboard-visual-C7sag6Jo.js} +6031 -5828
  9. package/dist/chunks/{editor-action-buttons-4-UuoSZc.js → editor-action-buttons-yJEX8W7R.js} +1 -1
  10. package/dist/chunks/{editor-action-buttons-BQtxnqBZ.js → editor-action-buttons-z7gf6nE6.js} +2 -2
  11. package/dist/chunks/{index-Cr-d0ray.js → index-BMkn4K4E.js} +15342 -15143
  12. package/dist/chunks/{index-CRJ97-41.js → index-C_RTjAMW.js} +223 -223
  13. package/dist/chunks/{notification-bell-_OADjyy7.js → notification-bell-DHK6s4Om.js} +3 -3
  14. package/dist/chunks/{notification-bell-CyZx_uZ1.js → notification-bell-DSShVmWj.js} +1 -1
  15. package/dist/chunks/{resource-management-panel-rmEMdbbS.js → resource-management-panel-LBCXiHZk.js} +3 -3
  16. package/dist/chunks/{resource-management-panel-Bq9zRYsk.js → resource-management-panel-QdAeim78.js} +1 -1
  17. package/dist/chunks/{use-role-aware-display-preferences-1U-ed07h.js → use-role-aware-display-preferences-CqF1BR5w.js} +1 -1
  18. package/dist/chunks/{use-role-aware-display-preferences-DOA8kcfK.js → use-role-aware-display-preferences-Db1iLmPN.js} +1 -1
  19. package/dist/chunks/{use-visual-utils-DX-4Hwoe.js → use-visual-utils-AXuCdndV.js} +1 -1
  20. package/dist/chunks/{use-visual-utils-DxigSU7y.js → use-visual-utils-CKt4UblS.js} +1 -1
  21. package/dist/dashboard/index.cjs +1 -1
  22. package/dist/dashboard/index.js +3 -3
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +37 -37
  25. package/dist/style.css +1 -1
  26. package/dist/surfboard/index.cjs +1 -1
  27. package/dist/surfboard/index.js +3 -3
  28. package/dist/types/dashboard.d.ts +3 -3
  29. package/dist/types/index.cjs +1 -1
  30. package/dist/types/index.js +10 -4
  31. package/dist/types/main.d.ts +34 -7
  32. package/dist/types/shared.d.ts +3 -3
  33. package/dist/types/surfboard.d.ts +3 -3
  34. package/dist/types/types.d.ts +34 -7
  35. package/package.json +1 -1
  36. package/dist/chunks/common-types-CfJLrTJd.js +0 -1
  37. package/dist/chunks/common-types-DhqlRVrq.js +0 -8
  38. package/dist/chunks/edit-dashboard-visual-DAiqFH7i.js +0 -164
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-CRJ97-41.js"),a=require("../chunks/common-types-CfJLrTJd.js"),e=require("../chunks/dashboard-summary-settings-dialog-Dlzv-d9Z.js");exports.Surfboard=r.DashboardPlus;exports.EMPTY_SELECTION=a.EMPTY_SELECTION;exports.CalendarPreferencesDialog=e.CalendarPreferencesDialog;exports.DashboardSummarySettingsDialog=e.DashboardSummarySettingsDialog;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-C_RTjAMW.js"),a=require("../types/index.cjs"),e=require("../chunks/dashboard-summary-settings-dialog-CWmq1rnL.js");exports.Surfboard=r.DashboardPlus;exports.EMPTY_SELECTION=a.EMPTY_SELECTION;exports.CalendarPreferencesDialog=e.CalendarPreferencesDialog;exports.DashboardSummarySettingsDialog=e.DashboardSummarySettingsDialog;
@@ -1,6 +1,6 @@
1
- import { a as o } from "../chunks/index-Cr-d0ray.js";
2
- import { E as s } from "../chunks/common-types-DhqlRVrq.js";
3
- import { C as m, D as t } from "../chunks/dashboard-summary-settings-dialog-CQISZPzc.js";
1
+ import { a as o } from "../chunks/index-BMkn4K4E.js";
2
+ import { EMPTY_SELECTION as s } from "../types/index.js";
3
+ import { C as m, D as t } from "../chunks/dashboard-summary-settings-dialog-B3eWK66q.js";
4
4
  export {
5
5
  m as CalendarPreferencesDialog,
6
6
  t as DashboardSummarySettingsDialog,
@@ -818,7 +818,7 @@ export declare type GetPluginsResponse = {
818
818
  }[];
819
819
  };
820
820
 
821
- declare type Granularity = 'day' | 'week' | 'month' | 'year';
821
+ declare type Granularity = 'day' | 'week' | 'month' | 'quarter' | 'year' | 'hour' | 'minute' | 'second';
822
822
 
823
823
  declare interface GroupByColumn extends BaseColumn {
824
824
  role: 'groupby';
@@ -828,7 +828,7 @@ declare interface GroupByColumn extends BaseColumn {
828
828
 
829
829
  declare interface GroupByField extends Field {
830
830
  role: 'groupby';
831
- granularity?: 'day' | 'week' | 'month' | 'quarter' | 'year';
831
+ granularity?: TimeGranularity;
832
832
  /**
833
833
  * Optional SQL expression for grouping (e.g., DATE_TRUNC('month', order_date)).
834
834
  * If present, used in SELECT and GROUP BY instead of just the column name.
@@ -1785,7 +1785,7 @@ declare interface TimeDrillStep {
1785
1785
  rollingWindow?: number;
1786
1786
  }
1787
1787
 
1788
- declare type TimeGranularity = 'day' | 'week' | 'month' | 'quarter' | 'year';
1788
+ declare type TimeGranularity = 'day' | 'week' | 'month' | 'quarter' | 'year' | 'hour' | 'minute' | 'second';
1789
1789
 
1790
1790
  /**
1791
1791
  * Inline filter definition stored on a card.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../chunks/common-types-CfJLrTJd.js"),e={tz:"UTC",weekStart:1,anchor:"now"};exports.EMPTY_SELECTION=T.EMPTY_SELECTION;exports.DEFAULT_CALENDAR_CONTEXT=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E={mode:"all"},T={tz:"UTC",weekStart:1,anchor:"now"},t={database:null,schema:null,table:null};exports.DEFAULT_CALENDAR_CONTEXT=T;exports.DEFAULT_SEMANTIC_DOMAIN_ACCESS=E;exports.EMPTY_SELECTION=t;
@@ -1,11 +1,17 @@
1
- import { E as T } from "../chunks/common-types-DhqlRVrq.js";
2
- const E = {
1
+ const l = {
2
+ mode: "all"
3
+ }, t = {
3
4
  tz: "UTC",
4
5
  weekStart: 1,
5
6
  // Monday (ISO standard)
6
7
  anchor: "now"
8
+ }, E = {
9
+ database: null,
10
+ schema: null,
11
+ table: null
7
12
  };
8
13
  export {
9
- E as DEFAULT_CALENDAR_CONTEXT,
10
- T as EMPTY_SELECTION
14
+ t as DEFAULT_CALENDAR_CONTEXT,
15
+ l as DEFAULT_SEMANTIC_DOMAIN_ACCESS,
16
+ E as EMPTY_SELECTION
11
17
  };
@@ -1339,6 +1339,8 @@ declare type DateUnit = 'day' | 'week' | 'month' | 'quarter' | 'year';
1339
1339
  */
1340
1340
  export declare const DEFAULT_CALENDAR_CONTEXT: CalendarContext;
1341
1341
 
1342
+ export declare const DEFAULT_SEMANTIC_DOMAIN_ACCESS: SemanticDomainAccess;
1343
+
1342
1344
  export declare function deleteAlert(apiServiceUrl: string, token: string, id: string): Promise<{
1343
1345
  success: boolean;
1344
1346
  }>;
@@ -2227,7 +2229,7 @@ export declare function getQualifiedTableName({ schemaName, tableName, databaseN
2227
2229
 
2228
2230
  export declare function getSql(config: SqlGen, schemaName: string, tableName: string, modelName: string, databaseName: string, capabilities: TDbCapabilities, qualifiedEntityName?: string): string | undefined;
2229
2231
 
2230
- export declare type Granularity = 'day' | 'week' | 'month' | 'year';
2232
+ export declare type Granularity = 'day' | 'week' | 'month' | 'quarter' | 'year' | 'hour' | 'minute' | 'second';
2231
2233
 
2232
2234
  export declare interface GroupByColumn extends BaseColumn {
2233
2235
  role: 'groupby';
@@ -2237,7 +2239,7 @@ export declare interface GroupByColumn extends BaseColumn {
2237
2239
 
2238
2240
  export declare interface GroupByField extends Field {
2239
2241
  role: 'groupby';
2240
- granularity?: 'day' | 'week' | 'month' | 'quarter' | 'year';
2242
+ granularity?: TimeGranularity;
2241
2243
  /**
2242
2244
  * Optional SQL expression for grouping (e.g., DATE_TRUNC('month', order_date)).
2243
2245
  * If present, used in SELECT and GROUP BY instead of just the column name.
@@ -2893,6 +2895,26 @@ export declare type SelectedEntities = DatabaseEntityReference[] | DataModelEnti
2893
2895
 
2894
2896
  export declare type SelectionState = Record<Level, string | null>;
2895
2897
 
2898
+ /**
2899
+ * Normalized JWT payload shape used at runtime.
2900
+ * domainIds always contains canonical semantic domain IDs.
2901
+ */
2902
+ export declare type SemanticDomainAccess = {
2903
+ mode: SemanticDomainAccessMode;
2904
+ domainIds?: string[];
2905
+ };
2906
+
2907
+ export declare type SemanticDomainAccessMode = 'all' | 'none' | 'include' | 'exclude';
2908
+
2909
+ /**
2910
+ * Client request shape accepted by the token API.
2911
+ * Domains can be UUIDs or semantic domain names.
2912
+ */
2913
+ export declare type SemanticDomainAccessRequest = {
2914
+ mode: SemanticDomainAccessMode;
2915
+ domains?: string[];
2916
+ };
2917
+
2896
2918
  export declare const SemaphorContextProvider: ({ children, dashboardProps, }: {
2897
2919
  children: React.ReactNode;
2898
2920
  dashboardProps: DashboardProps;
@@ -3698,7 +3720,7 @@ export declare interface TimeDrillStep {
3698
3720
  rollingWindow?: number;
3699
3721
  }
3700
3722
 
3701
- export declare type TimeGranularity = 'day' | 'week' | 'month' | 'quarter' | 'year';
3723
+ export declare type TimeGranularity = 'day' | 'week' | 'month' | 'quarter' | 'year' | 'hour' | 'minute' | 'second';
3702
3724
 
3703
3725
  /**
3704
3726
  * Inline filter definition stored on a card.
@@ -3797,9 +3819,9 @@ export declare type TokenParams = {
3797
3819
  */
3798
3820
  export declare type TokenProps = {
3799
3821
  /**
3800
- * Allowed semantic domains.
3822
+ * Semantic domain access scope.
3801
3823
  */
3802
- allowedSemanticDomains?: string[];
3824
+ semanticDomainAccess?: SemanticDomainAccess;
3803
3825
  /**
3804
3826
  * Type of the token request. Default is 'dashboard'.
3805
3827
  */
@@ -3878,9 +3900,9 @@ export declare type TokenProps = {
3878
3900
  */
3879
3901
  export declare type TokenRequest = {
3880
3902
  /**
3881
- * Allowed semantic domains.
3903
+ * Semantic domain access scope.
3882
3904
  */
3883
- allowedSemanticDomains?: string[];
3905
+ semanticDomainAccess?: SemanticDomainAccessRequest;
3884
3906
  /**
3885
3907
  * Type of the token request. Default is 'dashboard'.
3886
3908
  */
@@ -4039,6 +4061,11 @@ export declare type UIConfig = {
4039
4061
  * Defaults to true unless explicitly disabled.
4040
4062
  */
4041
4063
  showDashboardAssistant?: boolean;
4064
+ /**
4065
+ * Enables QueryInfo debug tools for Explorer troubleshooting.
4066
+ * Defaults to true unless explicitly disabled.
4067
+ */
4068
+ showQueryDebugTools?: boolean;
4042
4069
  };
4043
4070
 
4044
4071
  export declare function UnsavedChangesAlert({ open, onOpenChange, onSave, onDiscard, isSaving, title, description, cancelLabel, discardLabel, saveLabel, }: UnsavedChangesAlertProps): JSX.Element;
@@ -698,7 +698,7 @@ declare type FilterSemanticContext = {
698
698
 
699
699
  declare type FilterValue = string | number | boolean | Date | null | [number, number] | [string, string] | string[] | number[];
700
700
 
701
- declare type Granularity = 'day' | 'week' | 'month' | 'year';
701
+ declare type Granularity = 'day' | 'week' | 'month' | 'quarter' | 'year' | 'hour' | 'minute' | 'second';
702
702
 
703
703
  declare interface GroupByColumn extends BaseColumn {
704
704
  role: 'groupby';
@@ -708,7 +708,7 @@ declare interface GroupByColumn extends BaseColumn {
708
708
 
709
709
  declare interface GroupByField extends Field {
710
710
  role: 'groupby';
711
- granularity?: 'day' | 'week' | 'month' | 'quarter' | 'year';
711
+ granularity?: TimeGranularity;
712
712
  /**
713
713
  * Optional SQL expression for grouping (e.g., DATE_TRUNC('month', order_date)).
714
714
  * If present, used in SELECT and GROUP BY instead of just the column name.
@@ -1612,7 +1612,7 @@ declare interface TimeDrillStep {
1612
1612
  rollingWindow?: number;
1613
1613
  }
1614
1614
 
1615
- declare type TimeGranularity = 'day' | 'week' | 'month' | 'quarter' | 'year';
1615
+ declare type TimeGranularity = 'day' | 'week' | 'month' | 'quarter' | 'year' | 'hour' | 'minute' | 'second';
1616
1616
 
1617
1617
  /**
1618
1618
  * Inline filter definition stored on a card.
@@ -838,7 +838,7 @@ export declare type GetPluginsResponse = {
838
838
  }[];
839
839
  };
840
840
 
841
- declare type Granularity = 'day' | 'week' | 'month' | 'year';
841
+ declare type Granularity = 'day' | 'week' | 'month' | 'quarter' | 'year' | 'hour' | 'minute' | 'second';
842
842
 
843
843
  declare interface GroupByColumn extends BaseColumn {
844
844
  role: 'groupby';
@@ -848,7 +848,7 @@ declare interface GroupByColumn extends BaseColumn {
848
848
 
849
849
  declare interface GroupByField extends Field {
850
850
  role: 'groupby';
851
- granularity?: 'day' | 'week' | 'month' | 'quarter' | 'year';
851
+ granularity?: TimeGranularity;
852
852
  /**
853
853
  * Optional SQL expression for grouping (e.g., DATE_TRUNC('month', order_date)).
854
854
  * If present, used in SELECT and GROUP BY instead of just the column name.
@@ -1807,7 +1807,7 @@ declare interface TimeDrillStep {
1807
1807
  rollingWindow?: number;
1808
1808
  }
1809
1809
 
1810
- declare type TimeGranularity = 'day' | 'week' | 'month' | 'quarter' | 'year';
1810
+ declare type TimeGranularity = 'day' | 'week' | 'month' | 'quarter' | 'year' | 'hour' | 'minute' | 'second';
1811
1811
 
1812
1812
  /**
1813
1813
  * Inline filter definition stored on a card.
@@ -659,6 +659,8 @@ declare type DateUnit = 'day' | 'week' | 'month' | 'quarter' | 'year';
659
659
  */
660
660
  export declare const DEFAULT_CALENDAR_CONTEXT: CalendarContext;
661
661
 
662
+ export declare const DEFAULT_SEMANTIC_DOMAIN_ACCESS: SemanticDomainAccess;
663
+
662
664
  /**
663
665
  * Field configuration for detail table columns.
664
666
  * Unlike GroupByField, DetailField does not support aggregation or granularity.
@@ -1053,7 +1055,7 @@ export declare type GetPluginsResponse = {
1053
1055
  }[];
1054
1056
  };
1055
1057
 
1056
- declare type Granularity = 'day' | 'week' | 'month' | 'year';
1058
+ declare type Granularity = 'day' | 'week' | 'month' | 'quarter' | 'year' | 'hour' | 'minute' | 'second';
1057
1059
 
1058
1060
  declare interface GroupByColumn extends BaseColumn {
1059
1061
  role: 'groupby';
@@ -1063,7 +1065,7 @@ declare interface GroupByColumn extends BaseColumn {
1063
1065
 
1064
1066
  declare interface GroupByField extends Field {
1065
1067
  role: 'groupby';
1066
- granularity?: 'day' | 'week' | 'month' | 'quarter' | 'year';
1068
+ granularity?: TimeGranularity;
1067
1069
  /**
1068
1070
  * Optional SQL expression for grouping (e.g., DATE_TRUNC('month', order_date)).
1069
1071
  * If present, used in SELECT and GROUP BY instead of just the column name.
@@ -1380,6 +1382,26 @@ declare type SelectedEntities = DatabaseEntityReference[] | DataModelEntityRefer
1380
1382
 
1381
1383
  export declare type SelectionState = Record<Level, string | null>;
1382
1384
 
1385
+ /**
1386
+ * Normalized JWT payload shape used at runtime.
1387
+ * domainIds always contains canonical semantic domain IDs.
1388
+ */
1389
+ export declare type SemanticDomainAccess = {
1390
+ mode: SemanticDomainAccessMode;
1391
+ domainIds?: string[];
1392
+ };
1393
+
1394
+ export declare type SemanticDomainAccessMode = 'all' | 'none' | 'include' | 'exclude';
1395
+
1396
+ /**
1397
+ * Client request shape accepted by the token API.
1398
+ * Domains can be UUIDs or semantic domain names.
1399
+ */
1400
+ export declare type SemanticDomainAccessRequest = {
1401
+ mode: SemanticDomainAccessMode;
1402
+ domains?: string[];
1403
+ };
1404
+
1383
1405
  declare interface SortByField extends Field {
1384
1406
  role: 'sortby';
1385
1407
  direction: 'asc' | 'desc';
@@ -2036,7 +2058,7 @@ declare interface TimeDrillStep {
2036
2058
  rollingWindow?: number;
2037
2059
  }
2038
2060
 
2039
- declare type TimeGranularity = 'day' | 'week' | 'month' | 'quarter' | 'year';
2061
+ declare type TimeGranularity = 'day' | 'week' | 'month' | 'quarter' | 'year' | 'hour' | 'minute' | 'second';
2040
2062
 
2041
2063
  /**
2042
2064
  * Inline filter definition stored on a card.
@@ -2135,9 +2157,9 @@ export declare type TokenParams = {
2135
2157
  */
2136
2158
  export declare type TokenProps = {
2137
2159
  /**
2138
- * Allowed semantic domains.
2160
+ * Semantic domain access scope.
2139
2161
  */
2140
- allowedSemanticDomains?: string[];
2162
+ semanticDomainAccess?: SemanticDomainAccess;
2141
2163
  /**
2142
2164
  * Type of the token request. Default is 'dashboard'.
2143
2165
  */
@@ -2216,9 +2238,9 @@ export declare type TokenProps = {
2216
2238
  */
2217
2239
  export declare type TokenRequest = {
2218
2240
  /**
2219
- * Allowed semantic domains.
2241
+ * Semantic domain access scope.
2220
2242
  */
2221
- allowedSemanticDomains?: string[];
2243
+ semanticDomainAccess?: SemanticDomainAccessRequest;
2222
2244
  /**
2223
2245
  * Type of the token request. Default is 'dashboard'.
2224
2246
  */
@@ -2370,6 +2392,11 @@ export declare type UIConfig = {
2370
2392
  * Defaults to true unless explicitly disabled.
2371
2393
  */
2372
2394
  showDashboardAssistant?: boolean;
2395
+ /**
2396
+ * Enables QueryInfo debug tools for Explorer troubleshooting.
2397
+ * Defaults to true unless explicitly disabled.
2398
+ */
2399
+ showQueryDebugTools?: boolean;
2373
2400
  };
2374
2401
 
2375
2402
  export declare interface UpdateAlertRequest {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.217",
8
+ "version": "0.1.219",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",
@@ -1 +0,0 @@
1
- "use strict";const l={database:null,schema:null,table:null};exports.EMPTY_SELECTION=l;
@@ -1,8 +0,0 @@
1
- const l = {
2
- database: null,
3
- schema: null,
4
- table: null
5
- };
6
- export {
7
- l as E
8
- };