react-semaphor 0.1.126 → 0.1.128
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-controls-Dd27T34x.js +26 -0
- package/dist/chunks/dashboard-controls-I6kqudDF.js +1539 -0
- package/dist/chunks/dashboard-export-dialog-CiZbDQ5t.js +6 -0
- package/dist/chunks/dashboard-export-dialog-DEOlAtvs.js +601 -0
- package/dist/chunks/{dashboard-json-DpgglXTM.js → dashboard-json-A6ShtMJP.js} +1 -1
- package/dist/chunks/{dashboard-json-B7_R2nwz.js → dashboard-json-D_muUlA0.js} +1 -1
- package/dist/chunks/edit-dashboard-visual-BgRPk31F.js +195 -0
- package/dist/chunks/{edit-dashboard-visual-Dfdl-K74.js → edit-dashboard-visual-KhJjpeit.js} +5966 -4980
- package/dist/chunks/{editor-action-buttons-CsV8nUOI.js → editor-action-buttons-cJ_lq4jv.js} +1 -1
- package/dist/chunks/{editor-action-buttons-CMKMrnww.js → editor-action-buttons-umPHWm3K.js} +2 -2
- package/dist/chunks/{index-BdiWSBWd.js → index-Bko2LZ3Y.js} +5816 -5795
- package/dist/chunks/{index-GG6fcfuj.js → index-CM_yfKlN.js} +192 -187
- package/dist/chunks/{resource-management-panel-CdC7mFhx.js → resource-management-panel-DAdIhRme.js} +88 -88
- package/dist/chunks/{resource-management-panel-3Q8phtkW.js → resource-management-panel-DvgyBS2t.js} +1 -1
- package/dist/chunks/{use-visual-utils-BE_5Rl3X.js → use-visual-utils-80E0OR0x.js} +1 -1
- package/dist/chunks/{use-visual-utils-CxVLCLOf.js → use-visual-utils-C7QMpNLz.js} +8 -8
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +88 -87
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/dashboard.d.ts +1 -1
- package/dist/types/main.d.ts +19 -43
- package/dist/types/surfboard.d.ts +1 -1
- package/dist/types/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-BktHa763.js +0 -1473
- package/dist/chunks/dashboard-controls-DucLNOji.js +0 -26
- package/dist/chunks/dashboard-export-dialog-BNjL5KSw.js +0 -600
- package/dist/chunks/dashboard-export-dialog-M318NGd7.js +0 -6
- package/dist/chunks/edit-dashboard-visual-BaNXGTU-.js +0 -170
package/dist/surfboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-CM_yfKlN.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
|
package/dist/surfboard/index.js
CHANGED
|
@@ -1331,7 +1331,7 @@ export declare type TChartOptions = {
|
|
|
1331
1331
|
treemapColorMode?: 'branch' | 'category';
|
|
1332
1332
|
};
|
|
1333
1333
|
|
|
1334
|
-
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'pivotTable' | 'aggregateTable' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'bullet' | 'heatmap' | 'treemap' | 'custom';
|
|
1334
|
+
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'pivotTable' | 'aggregateTable' | 'tableBuilder' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'bullet' | 'heatmap' | 'treemap' | 'custom';
|
|
1335
1335
|
|
|
1336
1336
|
export declare type TColumnSetting<T extends DisplayDataType> = {
|
|
1337
1337
|
columnIdx: number;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { AIContext as AIContext_2 } from '../../lib/types/assistant-types';
|
|
2
|
-
import { AIScopeTable as AIScopeTable_2 } from '..';
|
|
3
|
-
import { CacheConfig as CacheConfig_2 } from '..';
|
|
4
1
|
import { Chart } from 'chart.js';
|
|
5
2
|
import { ChartConfiguration } from 'chart.js';
|
|
6
3
|
import { ColumnSizingState } from '@tanstack/react-table';
|
|
7
4
|
import { ComboBoxOption as ComboBoxOption_2 } from '../../components/surfboard/filter/types';
|
|
8
5
|
import { ComparisonMetadata as ComparisonMetadata_2 } from '../types/query-types';
|
|
9
|
-
import { CustomCard as CustomCard_2 } from '..';
|
|
10
6
|
import { DateRange } from 'react-day-picker';
|
|
11
7
|
import { default as default_2 } from 'react-grid-layout';
|
|
12
8
|
import { Dialect as Dialect_2 } from '../types/explorer-types';
|
|
13
9
|
import { DropdownItem as DropdownItem_2 } from '../types/dropdown-types';
|
|
14
|
-
import { EmailSettings as EmailSettings_2 } from '..';
|
|
15
10
|
import { FontSpec } from 'chart.js';
|
|
16
11
|
import { GroupByField as GroupByField_2 } from '../types/explorer-types';
|
|
17
12
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -22,11 +17,7 @@ import { QueryObserverResult } from '@tanstack/query-core';
|
|
|
22
17
|
import * as React_2 from 'react';
|
|
23
18
|
import { RefetchOptions } from '@tanstack/query-core';
|
|
24
19
|
import { StoreApi } from 'zustand';
|
|
25
|
-
import { TBaseQuery as TBaseQuery_2 } from '..';
|
|
26
20
|
import { TDbCapabilities as TDbCapabilities_2 } from '../types';
|
|
27
|
-
import { TFilter as TFilter_2 } from '../surfboard/filter/types';
|
|
28
|
-
import { TFilterValue as TFilterValue_2 } from '..';
|
|
29
|
-
import { TStyle as TStyle_2 } from '..';
|
|
30
21
|
import { UseBoundStore } from 'zustand';
|
|
31
22
|
import { WritableDraft } from 'immer';
|
|
32
23
|
|
|
@@ -472,8 +463,6 @@ declare type CardWithFooter = BaseCustomCard & {
|
|
|
472
463
|
}>;
|
|
473
464
|
};
|
|
474
465
|
|
|
475
|
-
export declare function cleanCard(card: TCard): TCard;
|
|
476
|
-
|
|
477
466
|
export declare interface ClickedMetricValue {
|
|
478
467
|
field: Field;
|
|
479
468
|
value: number;
|
|
@@ -539,6 +528,8 @@ export declare interface ClickFilterInteraction {
|
|
|
539
528
|
label?: string;
|
|
540
529
|
}
|
|
541
530
|
|
|
531
|
+
export declare const cloneDeep: (value: any) => any;
|
|
532
|
+
|
|
542
533
|
export declare type ColorConfig = {
|
|
543
534
|
segments: Record<string, string>;
|
|
544
535
|
};
|
|
@@ -1388,37 +1379,6 @@ export declare function fmt(str: string): string;
|
|
|
1388
1379
|
|
|
1389
1380
|
export declare function getColumnDataType(column: TDataColumn): string;
|
|
1390
1381
|
|
|
1391
|
-
export declare function getDashbaordStateWithoutData(dashboardState: TDashboard): {
|
|
1392
|
-
sheets: {
|
|
1393
|
-
frames: {
|
|
1394
|
-
cards: TCard[];
|
|
1395
|
-
id: string;
|
|
1396
|
-
visualId?: string;
|
|
1397
|
-
filterId?: string;
|
|
1398
|
-
activeCardId: string;
|
|
1399
|
-
}[] | undefined;
|
|
1400
|
-
id: string;
|
|
1401
|
-
title?: string;
|
|
1402
|
-
description?: string;
|
|
1403
|
-
layout?: ReactGridLayout.Layout[];
|
|
1404
|
-
layouts?: ReactGridLayout.Layouts;
|
|
1405
|
-
cards?: TCard[];
|
|
1406
|
-
}[] | undefined;
|
|
1407
|
-
id: string;
|
|
1408
|
-
title?: string;
|
|
1409
|
-
aiContext?: AIContext_2;
|
|
1410
|
-
description?: string;
|
|
1411
|
-
style?: TStyle_2;
|
|
1412
|
-
filters?: TFilter_2[];
|
|
1413
|
-
customCards?: CustomCard_2[];
|
|
1414
|
-
baseQueries?: TBaseQuery_2[];
|
|
1415
|
-
aiScopeTables?: AIScopeTable_2[];
|
|
1416
|
-
globalStyle?: TStyle_2;
|
|
1417
|
-
globalCacheConfig?: CacheConfig_2;
|
|
1418
|
-
emailSettings?: EmailSettings_2;
|
|
1419
|
-
defaultFilterValues?: TFilterValue_2[];
|
|
1420
|
-
};
|
|
1421
|
-
|
|
1422
1382
|
export declare type GetDashboardResponse = {
|
|
1423
1383
|
dashboard: TDashboard;
|
|
1424
1384
|
lenses: TLens[];
|
|
@@ -2306,7 +2266,7 @@ export declare type TChartOptions = {
|
|
|
2306
2266
|
treemapColorMode?: 'branch' | 'category';
|
|
2307
2267
|
};
|
|
2308
2268
|
|
|
2309
|
-
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'pivotTable' | 'aggregateTable' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'bullet' | 'heatmap' | 'treemap' | 'custom';
|
|
2269
|
+
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'pivotTable' | 'aggregateTable' | 'tableBuilder' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'bullet' | 'heatmap' | 'treemap' | 'custom';
|
|
2310
2270
|
|
|
2311
2271
|
export declare type TColumnSetting<T extends DisplayDataType> = {
|
|
2312
2272
|
columnIdx: number;
|
|
@@ -2760,6 +2720,16 @@ export declare type UIConfig = {
|
|
|
2760
2720
|
showDashboardAssistant?: boolean;
|
|
2761
2721
|
};
|
|
2762
2722
|
|
|
2723
|
+
export declare function UnsavedChangesAlert({ open, onOpenChange, onSave, onDiscard, isSaving, }: UnsavedChangesAlertProps): JSX_2.Element;
|
|
2724
|
+
|
|
2725
|
+
declare type UnsavedChangesAlertProps = {
|
|
2726
|
+
open: boolean;
|
|
2727
|
+
onOpenChange: (open: boolean) => void;
|
|
2728
|
+
onSave: () => Promise<void>;
|
|
2729
|
+
onDiscard: () => void;
|
|
2730
|
+
isSaving: boolean;
|
|
2731
|
+
};
|
|
2732
|
+
|
|
2763
2733
|
export declare interface UpdateUserPreferenceRequest {
|
|
2764
2734
|
defaultDashboardId: string | null;
|
|
2765
2735
|
}
|
|
@@ -2900,6 +2870,12 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
|
|
|
2900
2870
|
setState(nextStateOrUpdater: EditorStore | Partial<EditorStore> | ((state: WritableDraft<EditorStore>) => void), shouldReplace?: boolean | undefined): void;
|
|
2901
2871
|
}>;
|
|
2902
2872
|
|
|
2873
|
+
/**
|
|
2874
|
+
* Initialize a pristine dashboard snapshot whenever edit mode turns on.
|
|
2875
|
+
* Keeps logic centralized so programmatic entry points are covered.
|
|
2876
|
+
*/
|
|
2877
|
+
export declare function usePristineSnapshotInitializer(isDashboardEditing: boolean, dashboardState: TDashboard, pristineDashboard: TDashboard | null, setPristineDashboard: (dashboard: TDashboard) => void): void;
|
|
2878
|
+
|
|
2903
2879
|
export declare interface UserPreference {
|
|
2904
2880
|
id: string;
|
|
2905
2881
|
actorType: 'ORG_USER' | 'TENANT_USER';
|
|
@@ -1336,7 +1336,7 @@ export declare type TChartOptions = {
|
|
|
1336
1336
|
treemapColorMode?: 'branch' | 'category';
|
|
1337
1337
|
};
|
|
1338
1338
|
|
|
1339
|
-
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'pivotTable' | 'aggregateTable' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'bullet' | 'heatmap' | 'treemap' | 'custom';
|
|
1339
|
+
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'pivotTable' | 'aggregateTable' | 'tableBuilder' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'bullet' | 'heatmap' | 'treemap' | 'custom';
|
|
1340
1340
|
|
|
1341
1341
|
export declare type TColumnSetting<T extends DisplayDataType> = {
|
|
1342
1342
|
columnIdx: number;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1328,7 +1328,7 @@ export declare type TChartOptions = {
|
|
|
1328
1328
|
treemapColorMode?: 'branch' | 'category';
|
|
1329
1329
|
};
|
|
1330
1330
|
|
|
1331
|
-
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'pivotTable' | 'aggregateTable' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'bullet' | 'heatmap' | 'treemap' | 'custom';
|
|
1331
|
+
declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'pivotTable' | 'aggregateTable' | 'tableBuilder' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'bullet' | 'heatmap' | 'treemap' | 'custom';
|
|
1332
1332
|
|
|
1333
1333
|
export declare type TColumnSetting<T extends DisplayDataType> = {
|
|
1334
1334
|
columnIdx: number;
|