react-semaphor 0.1.132 → 0.1.134

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 (29) hide show
  1. package/dist/chunks/{dashboard-controls-DQMFJcPB.js → dashboard-controls-bovlMmw3.js} +1 -1
  2. package/dist/chunks/{dashboard-controls-CWG6EatR.js → dashboard-controls-ecdj2GHc.js} +207 -207
  3. package/dist/chunks/{dashboard-export-dialog-DofqNYdv.js → dashboard-export-dialog-CK5b2y_K.js} +31 -31
  4. package/dist/chunks/{dashboard-export-dialog-CYRUEIF0.js → dashboard-export-dialog-D5jbZpR7.js} +1 -1
  5. package/dist/chunks/{dashboard-json-D5b7lskH.js → dashboard-json-DKVaKR05.js} +1 -1
  6. package/dist/chunks/{dashboard-json-CfXtWYQo.js → dashboard-json-DUtSSb_n.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-CSfaO06L.js → edit-dashboard-visual-BHmq3HBV.js} +2131 -2182
  8. package/dist/chunks/edit-dashboard-visual-CSw8uIEZ.js +195 -0
  9. package/dist/chunks/{editor-action-buttons-7cxzFlCm.js → editor-action-buttons-D7ofzkZ0.js} +2 -2
  10. package/dist/chunks/{editor-action-buttons-DWHiK2yJ.js → editor-action-buttons-xX1IQPAT.js} +1 -1
  11. package/dist/chunks/{index-B6RYfqnr.js → index-Ba5bDBGc.js} +200 -200
  12. package/dist/chunks/{index-CRA38qes.js → index-BbG-vwjD.js} +16134 -15848
  13. package/dist/chunks/{resource-management-panel-DnKFfVOc.js → resource-management-panel-Bewt6347.js} +116 -116
  14. package/dist/chunks/{resource-management-panel-CC_r1yro.js → resource-management-panel-CrQMV9vG.js} +1 -1
  15. package/dist/chunks/{use-visual-utils-CZNuwJRU.js → use-visual-utils-BijuWjGP.js} +1 -1
  16. package/dist/chunks/{use-visual-utils-B41g03Pc.js → use-visual-utils-auHWALCR.js} +1 -1
  17. package/dist/dashboard/index.cjs +1 -1
  18. package/dist/dashboard/index.js +1 -1
  19. package/dist/index.cjs +2 -2
  20. package/dist/index.js +30 -29
  21. package/dist/style.css +1 -1
  22. package/dist/surfboard/index.cjs +1 -1
  23. package/dist/surfboard/index.js +1 -1
  24. package/dist/types/dashboard.d.ts +9 -0
  25. package/dist/types/main.d.ts +20 -0
  26. package/dist/types/surfboard.d.ts +9 -0
  27. package/dist/types/types.d.ts +9 -0
  28. package/package.json +1 -1
  29. package/dist/chunks/edit-dashboard-visual-C4ur0h-P.js +0 -195
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-B6RYfqnr.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-Ba5bDBGc.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
@@ -1,4 +1,4 @@
1
- import { a } from "../chunks/index-CRA38qes.js";
1
+ import { a } from "../chunks/index-BbG-vwjD.js";
2
2
  import { EMPTY_SELECTION as E } from "../types/index.js";
3
3
  export {
4
4
  E as EMPTY_SELECTION,
@@ -1371,6 +1371,14 @@ export declare type TCustomCardPreferences = {
1371
1371
  }[];
1372
1372
  };
1373
1373
 
1374
+ declare type TCustomFilterPreferences = {
1375
+ url: string;
1376
+ componentName: string;
1377
+ pluginFilterType?: string;
1378
+ icon?: string;
1379
+ settings?: Record<string, string | number | boolean>;
1380
+ };
1381
+
1374
1382
  export declare type TDashboard = {
1375
1383
  id: string;
1376
1384
  title?: string;
@@ -1463,6 +1471,7 @@ declare type TFilter = {
1463
1471
  excludeSheetIds?: string[];
1464
1472
  applyToCardIds?: string[];
1465
1473
  excludeCardIds?: string[];
1474
+ customFilterPreferences?: TCustomFilterPreferences;
1466
1475
  };
1467
1476
 
1468
1477
  declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
@@ -8,6 +8,7 @@ import { default as default_2 } from 'react-grid-layout';
8
8
  import { Dialect as Dialect_2 } from '../types/explorer-types';
9
9
  import { DropdownItem as DropdownItem_2 } from '../types/dropdown-types';
10
10
  import { FontSpec } from 'chart.js';
11
+ import { GetDashboardResponse as GetDashboardResponse_2 } from '../types';
11
12
  import { GroupByField as GroupByField_2 } from '../types/explorer-types';
12
13
  import { JSX as JSX_2 } from 'react/jsx-runtime';
13
14
  import { MetricField as MetricField_2 } from '../types/explorer-types';
@@ -22,6 +23,7 @@ import { UseBoundStore } from 'zustand';
22
23
  import { WritableDraft } from 'immer';
23
24
 
24
25
  declare type Actions = {
26
+ triggerReload: () => void;
25
27
  setAiContext: (aiContext: AIContext) => void;
26
28
  setHandleOpenAssistantProfile: (handleOpenAssistantProfile: () => void) => void;
27
29
  setFilterMode: (filterId: string, filterMode: 'include' | 'exclude') => void;
@@ -752,6 +754,7 @@ export declare type DashboardStore = {
752
754
  selectedLensId?: string;
753
755
  filteringCards?: TCard[];
754
756
  dashboard: TDashboard;
757
+ relaodToken?: number;
755
758
  selectedSheetId?: string | null | undefined;
756
759
  selectedFrameId?: string | null;
757
760
  selectedCardId?: string | null;
@@ -2306,6 +2309,14 @@ export declare type TCustomCardPreferences = {
2306
2309
  }[];
2307
2310
  };
2308
2311
 
2312
+ declare type TCustomFilterPreferences = {
2313
+ url: string;
2314
+ componentName: string;
2315
+ pluginFilterType?: string;
2316
+ icon?: string;
2317
+ settings?: Record<string, string | number | boolean>;
2318
+ };
2319
+
2309
2320
  export declare type TDashboard = {
2310
2321
  id: string;
2311
2322
  title?: string;
@@ -2398,6 +2409,7 @@ declare type TFilter = {
2398
2409
  excludeSheetIds?: string[];
2399
2410
  applyToCardIds?: string[];
2400
2411
  excludeCardIds?: string[];
2412
+ customFilterPreferences?: TCustomFilterPreferences;
2401
2413
  };
2402
2414
 
2403
2415
  export declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
@@ -2814,6 +2826,14 @@ export declare const useCurrentSheetActiveCards: () => TCard[];
2814
2826
 
2815
2827
  export declare const useDashboardActions: () => Actions;
2816
2828
 
2829
+ export declare function useDashboardQuery(): {
2830
+ data: GetDashboardResponse_2 | null | undefined;
2831
+ isLoading: boolean;
2832
+ isFetching: boolean;
2833
+ isError: boolean;
2834
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetDashboardResponse_2 | null, Error>>;
2835
+ };
2836
+
2817
2837
  export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardStore>, "setState"> & {
2818
2838
  setState(nextStateOrUpdater: DashboardStore | Partial<DashboardStore> | ((state: WritableDraft<DashboardStore>) => void), shouldReplace?: boolean | undefined): void;
2819
2839
  }>;
@@ -1376,6 +1376,14 @@ export declare type TCustomCardPreferences = {
1376
1376
  }[];
1377
1377
  };
1378
1378
 
1379
+ declare type TCustomFilterPreferences = {
1380
+ url: string;
1381
+ componentName: string;
1382
+ pluginFilterType?: string;
1383
+ icon?: string;
1384
+ settings?: Record<string, string | number | boolean>;
1385
+ };
1386
+
1379
1387
  export declare type TDashboard = {
1380
1388
  id: string;
1381
1389
  title?: string;
@@ -1468,6 +1476,7 @@ declare type TFilter = {
1468
1476
  excludeSheetIds?: string[];
1469
1477
  applyToCardIds?: string[];
1470
1478
  excludeCardIds?: string[];
1479
+ customFilterPreferences?: TCustomFilterPreferences;
1471
1480
  };
1472
1481
 
1473
1482
  declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
@@ -1368,6 +1368,14 @@ export declare type TCustomCardPreferences = {
1368
1368
  }[];
1369
1369
  };
1370
1370
 
1371
+ declare type TCustomFilterPreferences = {
1372
+ url: string;
1373
+ componentName: string;
1374
+ pluginFilterType?: string;
1375
+ icon?: string;
1376
+ settings?: Record<string, string | number | boolean>;
1377
+ };
1378
+
1371
1379
  export declare type TDashboard = {
1372
1380
  id: string;
1373
1381
  title?: string;
@@ -1460,6 +1468,7 @@ declare type TFilter = {
1460
1468
  excludeSheetIds?: string[];
1461
1469
  applyToCardIds?: string[];
1462
1470
  excludeCardIds?: string[];
1471
+ customFilterPreferences?: TCustomFilterPreferences;
1463
1472
  };
1464
1473
 
1465
1474
  declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.132",
8
+ "version": "0.1.134",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",