react-semaphor 0.0.515 → 0.0.516
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-ZydhJTUT.js → dashboard-plus-DIpyPOTJ.js} +1 -1
- package/dist/chunks/{dashboard-plus-CA0-C70T.js → dashboard-plus-l5tcfQ45.js} +1 -1
- package/dist/chunks/{index-Das4K9pB.js → index-CmYcMGxs.js} +1283 -1283
- package/dist/chunks/{index-W3FSZVh4.js → index-DDq9dhWf.js} +27 -27
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/main.d.ts +115 -0
- package/package.json +1 -1
package/dist/dashboard/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-DDq9dhWf.js"),r=require("../types/index.cjs");exports.Dashboard=e.Dashboard;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
|
package/dist/dashboard/index.js
CHANGED
package/dist/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-DDq9dhWf.js"),t=require("./types/index.cjs"),a=require("./chunks/dashboard-plus-l5tcfQ45.js");require("react/jsx-runtime");require("react");require("react-dom");const o=["YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY","MMMM DD, YYYY","MMM DD, YYYY","DD MMM YYYY","YYYY-MM","MMMM YYYY","custom"];exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.createSqlGenConfig=e.createSqlGenConfig;exports.fmt=e.fmt;exports.getColumnDataType=e.getColumnDataType;exports.getFilterValueType=e.getFilterValueType;exports.getFormattedTableNameForQuery=e.getFormattedTableNameForQuery;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.invalidateToken=e.invalidateToken;exports.isBooleanDataType=e.isBooleanDataType;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.isDateDataType=e.isDateDataType;exports.isNumberDataType=e.isNumberDataType;exports.isTextDataType=e.isTextDataType;exports.resolveDataType=e.resolveDataType;exports.resolveDatamodelName=e.resolveDatamodelName;exports.useCard=e.useCard;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useDataColumns=e.useDataColumns;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorActions=e.useEditorActions;exports.useEditorAside=e.useEditorAside;exports.useEditorStore=e.useEditorStore;exports.useTextFilterHook=e.useTextFilterHook;exports.EMPTY_SELECTION=t.EMPTY_SELECTION;exports.ScheduleDashboard=a.ScheduleDashboard;exports.SelectComponent=a.SelectComponent;exports.Surfboard=a.DashboardPlus;exports.cleanCard=a.cleanCard;exports.downloadPdf=a.downloadPdf;exports.getDashbaordStateWithoutData=a.getDashbaordStateWithoutData;exports.DATE_FORMAT_VALUES=o;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D, c as Y, S as i, S as d, l, f as M, n as u, m, p as n, q as p, k as S, i as T, j as b, o as h, h as c, g as y, e as C, s as f, r as g, b as E, w as x, v as A, d as F, u as v, y as N, t as k, x as q, a as P } from "./chunks/index-
|
|
1
|
+
import { D, c as Y, S as i, S as d, l, f as M, n as u, m, p as n, q as p, k as S, i as T, j as b, o as h, h as c, g as y, e as C, s as f, r as g, b as E, w as x, v as A, d as F, u as v, y as N, t as k, x as q, a as P } from "./chunks/index-CmYcMGxs.js";
|
|
2
2
|
import { EMPTY_SELECTION as _ } from "./types/index.js";
|
|
3
|
-
import { S as G, a as H, D as I, c as L, d as O, g as V } from "./chunks/dashboard-plus-
|
|
3
|
+
import { S as G, a as H, D as I, c as L, d as O, g as V } from "./chunks/dashboard-plus-DIpyPOTJ.js";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
package/dist/surfboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-l5tcfQ45.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
|
package/dist/surfboard/index.js
CHANGED
package/dist/types/main.d.ts
CHANGED
|
@@ -1342,6 +1342,101 @@ export declare type TLens = {
|
|
|
1342
1342
|
shared?: boolean;
|
|
1343
1343
|
};
|
|
1344
1344
|
|
|
1345
|
+
/**
|
|
1346
|
+
* Parameters for customizing token behavior and formatting.
|
|
1347
|
+
*/
|
|
1348
|
+
export declare type TokenParams = {
|
|
1349
|
+
currencyFormat: {
|
|
1350
|
+
/**
|
|
1351
|
+
* Locale identifier (e.g., 'en-US', 'fr-FR').
|
|
1352
|
+
*/
|
|
1353
|
+
locale: string;
|
|
1354
|
+
/**
|
|
1355
|
+
* Currency code compliant with ISO 4217 (e.g., 'USD', 'EUR').
|
|
1356
|
+
*/
|
|
1357
|
+
currency: string;
|
|
1358
|
+
};
|
|
1359
|
+
};
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* Main payload for generating a secure access token for a dashboard.
|
|
1363
|
+
*/
|
|
1364
|
+
export declare type TokenRequest = {
|
|
1365
|
+
/**
|
|
1366
|
+
* Identifier of the dashboard to be accessed.
|
|
1367
|
+
*/
|
|
1368
|
+
dashboardId: string;
|
|
1369
|
+
/**
|
|
1370
|
+
* Secret key used for validating access to the dashboard.
|
|
1371
|
+
*/
|
|
1372
|
+
dashboardSecret: string;
|
|
1373
|
+
/**
|
|
1374
|
+
* Token expiry duration in seconds.
|
|
1375
|
+
*/
|
|
1376
|
+
tokenExpiry?: number;
|
|
1377
|
+
/**
|
|
1378
|
+
* Unique identifier of the tenant.
|
|
1379
|
+
*/
|
|
1380
|
+
tenantId?: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* Unique identifier of the end user accessing the dashboard.
|
|
1383
|
+
*/
|
|
1384
|
+
endUserId?: string;
|
|
1385
|
+
/**
|
|
1386
|
+
* Email of the end user (for personalization, audit, or identification).
|
|
1387
|
+
*/
|
|
1388
|
+
endUserEmail?: string;
|
|
1389
|
+
/**
|
|
1390
|
+
* Enables self-service editing and lens creation by the end user.
|
|
1391
|
+
*/
|
|
1392
|
+
allowEdit?: boolean;
|
|
1393
|
+
/**
|
|
1394
|
+
* Connection-level security policies.
|
|
1395
|
+
* Can be a single policy or an array of policies.
|
|
1396
|
+
*/
|
|
1397
|
+
cls?: TokenSecurityPolicy[] | TokenSecurityPolicy;
|
|
1398
|
+
/**
|
|
1399
|
+
* Row-level security policies.
|
|
1400
|
+
* Can be a single policy or an array of policies.
|
|
1401
|
+
*/
|
|
1402
|
+
rcls?: TokenSecurityPolicy[] | TokenSecurityPolicy;
|
|
1403
|
+
/**
|
|
1404
|
+
* Parameter overrides and preferences (e.g., formatting).
|
|
1405
|
+
*/
|
|
1406
|
+
params?: TokenParams;
|
|
1407
|
+
/**
|
|
1408
|
+
* UI behavior and feature flags.
|
|
1409
|
+
*/
|
|
1410
|
+
config?: UIConfig;
|
|
1411
|
+
};
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Defines a security policy that can be applied at connection or row level.
|
|
1415
|
+
*/
|
|
1416
|
+
export declare type TokenSecurityPolicy = {
|
|
1417
|
+
/**
|
|
1418
|
+
* Name of the policy (e.g., 'store_sales_primary', 'region_filter').
|
|
1419
|
+
*/
|
|
1420
|
+
name: string;
|
|
1421
|
+
/**
|
|
1422
|
+
* Arbitrary parameters associated with the policy.
|
|
1423
|
+
* Examples:
|
|
1424
|
+
*
|
|
1425
|
+
* // Single value
|
|
1426
|
+
* {
|
|
1427
|
+
* tenant: 'tenant_abc_123'
|
|
1428
|
+
* }
|
|
1429
|
+
*
|
|
1430
|
+
* // Multiple values
|
|
1431
|
+
* {
|
|
1432
|
+
* state: ['California', 'Nevada', 'Washington']
|
|
1433
|
+
* }
|
|
1434
|
+
*/
|
|
1435
|
+
params: {
|
|
1436
|
+
[key: string]: string | number | string[] | number[];
|
|
1437
|
+
};
|
|
1438
|
+
};
|
|
1439
|
+
|
|
1345
1440
|
export declare type TSelectedRecord = ComboBoxOption;
|
|
1346
1441
|
|
|
1347
1442
|
export declare type TSheet = {
|
|
@@ -1362,6 +1457,26 @@ export declare type TStyle = {
|
|
|
1362
1457
|
dark?: StyleProps;
|
|
1363
1458
|
};
|
|
1364
1459
|
|
|
1460
|
+
/**
|
|
1461
|
+
* UI and behavior configuration for the embedded dashboard.
|
|
1462
|
+
*/
|
|
1463
|
+
export declare type UIConfig = {
|
|
1464
|
+
/**
|
|
1465
|
+
* Enables self-service editing and lens creation by the end user. Legacy field. Use config.allowEdit instead.
|
|
1466
|
+
*/
|
|
1467
|
+
allowEdit?: boolean;
|
|
1468
|
+
/**
|
|
1469
|
+
* Enables advanced mode features in the dashboard.
|
|
1470
|
+
* Defaults to true unless explicitly disabled.
|
|
1471
|
+
*/
|
|
1472
|
+
showAdvancedMode?: boolean;
|
|
1473
|
+
/**
|
|
1474
|
+
* Enables the AI-powered dashboard assistant.
|
|
1475
|
+
* Defaults to true unless explicitly disabled.
|
|
1476
|
+
*/
|
|
1477
|
+
showDashboardAssistant?: boolean;
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1365
1480
|
export declare function useCard(cardId: string): {
|
|
1366
1481
|
data: any;
|
|
1367
1482
|
card: TCard;
|