@hexclave/dashboard-ui-components 1.0.22 → 1.0.24

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.
@@ -7,8 +7,6 @@ let _hexclave_ui = require("@hexclave/ui");
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
8
  let react = require("react");
9
9
  let recharts = require("recharts");
10
- let __state_js = require("./state.js");
11
- let __strings_js = require("./strings.js");
12
10
  let ___chart_container_js = require("../chart-container.js");
13
11
  let __default_analytics_chart_tooltip_js = require("./default-analytics-chart-tooltip.js");
14
12
  let __format_js = require("./format.js");
@@ -17,6 +15,8 @@ let ___button_js = require("../button.js");
17
15
  let __analytics_chart_pie_js = require("./analytics-chart-pie.js");
18
16
  let __palette_js = require("./palette.js");
19
17
  let __render_data_series_js = require("./render-data-series.js");
18
+ let __state_js = require("./state.js");
19
+ let __strings_js = require("./strings.js");
20
20
 
21
21
  //#region src/components/analytics-chart/analytics-chart.tsx
22
22
  const FALLBACK_PRIMARY_STYLE = {
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('../../chunk-BE-pF4vm.js');
3
- let __state_js = require("./state.js");
4
- let __strings_js = require("./strings.js");
5
3
  let __default_analytics_chart_tooltip_js = require("./default-analytics-chart-tooltip.js");
6
4
  let __format_js = require("./format.js");
7
5
  let __types_js = require("./types.js");
8
6
  let __palette_js = require("./palette.js");
7
+ let __state_js = require("./state.js");
8
+ let __strings_js = require("./strings.js");
9
9
  let __analytics_chart_js = require("./analytics-chart.js");
10
10
 
11
11
  Object.defineProperty(exports, 'ANALYTICS_CHART_DEFAULT_LAYERS', {
@@ -4,8 +4,8 @@ import { VariantProps } from "class-variance-authority";
4
4
 
5
5
  //#region src/components/button.d.ts
6
6
  declare const designButtonVariants: (props?: ({
7
- variant?: "plain" | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
8
- size?: "sm" | "lg" | "default" | "icon" | null | undefined;
7
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
8
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
9
9
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
10
10
  type DesignOriginalButtonProps = {
11
11
  asChild?: boolean;
@@ -36,8 +36,8 @@ declare const DesignButton: React.FC<{
36
36
  } & {
37
37
  asChild?: boolean;
38
38
  } & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
39
- variant?: "plain" | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
40
- size?: "sm" | "lg" | "default" | "icon" | null | undefined;
39
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
40
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
41
41
  } & class_variance_authority_types0.ClassProp) | undefined) => string> & {
42
42
  ref?: React.Ref<HTMLButtonElement> | undefined;
43
43
  }>;
@@ -2,7 +2,7 @@ import * as React$1 from "react";
2
2
  import * as RechartsPrimitive from "recharts";
3
3
 
4
4
  //#region src/components/chart-legend.d.ts
5
- declare const DesignChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
5
+ declare const DesignChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "verticalAlign" | "payload"> & {
6
6
  hideIcon?: boolean;
7
7
  nameKey?: string;
8
8
  }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
@@ -7,14 +7,14 @@ let _hexclave_ui = require("@hexclave/ui");
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
8
  let react = require("react");
9
9
  react = require_chunk.__toESM(react);
10
+ let __state_js = require("./state.js");
11
+ let __strings_js = require("./strings.js");
10
12
  let _hexclave_shared_dist_utils_errors = require("@hexclave/shared/dist/utils/errors");
11
13
  let _tanstack_react_table = require("@tanstack/react-table");
12
14
  let _tanstack_react_virtual = require("@tanstack/react-virtual");
13
15
  let ___skeleton_js = require("../skeleton.js");
14
16
  let __data_grid_sizing_js = require("./data-grid-sizing.js");
15
17
  let __data_grid_toolbar_js = require("./data-grid-toolbar.js");
16
- let __state_js = require("./state.js");
17
- let __strings_js = require("./strings.js");
18
18
 
19
19
  //#region src/components/data-grid/data-grid.tsx
20
20
  function getEventTargetElement(target) {
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('../../chunk-BE-pF4vm.js');
3
- let __data_grid_sizing_js = require("./data-grid-sizing.js");
4
- let __data_grid_toolbar_js = require("./data-grid-toolbar.js");
5
3
  let __state_js = require("./state.js");
6
4
  let __strings_js = require("./strings.js");
5
+ let __data_grid_sizing_js = require("./data-grid-sizing.js");
6
+ let __data_grid_toolbar_js = require("./data-grid-toolbar.js");
7
7
  let __data_grid_js = require("./data-grid.js");
8
8
  let __use_data_source_js = require("./use-data-source.js");
9
9
  let __use_url_state_js = require("./use-url-state.js");
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
  const require_chunk = require('../../chunk-BE-pF4vm.js');
5
5
  let react = require("react");
6
- let __data_grid_sizing_js = require("./data-grid-sizing.js");
7
6
  let __state_js = require("./state.js");
7
+ let __data_grid_sizing_js = require("./data-grid-sizing.js");
8
8
 
9
9
  //#region src/components/data-grid/use-url-state.ts
10
10
  function serializeWidths(widths, columns) {
@@ -4113,7 +4113,10 @@ This is likely an error in Hexclave. Please make sure you are running the newest
4113
4113
  },
4114
4114
  enumerable: false
4115
4115
  });
4116
- if ((typeof process !== "undefined" ? process.env.NEXT_PUBLIC_STACK_DEBUGGER_ON_ASSERTION_ERROR : void 0) === "true") debugger;
4116
+ const hexclaveDebuggerValue = typeof process !== "undefined" ? process.env.NEXT_PUBLIC_HEXCLAVE_DEBUGGER_ON_ASSERTION_ERROR : void 0;
4117
+ const stackDebuggerValue = typeof process !== "undefined" ? process.env.NEXT_PUBLIC_STACK_DEBUGGER_ON_ASSERTION_ERROR : void 0;
4118
+ if (hexclaveDebuggerValue && stackDebuggerValue && hexclaveDebuggerValue !== stackDebuggerValue) throw new Error("Environment variables NEXT_PUBLIC_HEXCLAVE_DEBUGGER_ON_ASSERTION_ERROR and NEXT_PUBLIC_STACK_DEBUGGER_ON_ASSERTION_ERROR are both set to different values. Remove one of them or set them to the same value.");
4119
+ if ((hexclaveDebuggerValue || stackDebuggerValue) === "true") debugger;
4117
4120
  }
4118
4121
  };
4119
4122
  HexclaveAssertionError.prototype.name = "HexclaveAssertionError";
@@ -4316,14 +4319,24 @@ This is likely an error in Hexclave. Please make sure you are running the newest
4316
4319
  StatusError.prototype.name = "StatusError";
4317
4320
 
4318
4321
  // ../shared/dist/esm/utils/env.js
4319
- function getHexclaveEnvVarName(name) {
4320
- if (!name.includes("STACK_")) return;
4321
- return name.replace("STACK_", "HEXCLAVE_");
4322
+ function resolveHexclaveStackEnvVarValue(hexclaveName, stackName, hexclaveValue, stackValue) {
4323
+ if (hexclaveValue && stackValue && hexclaveValue !== stackValue) throw new Error(`Environment variables ${hexclaveName} and ${stackName} are both set to different values. Remove one of them or set them to the same value.`);
4324
+ return hexclaveValue || stackValue || void 0;
4325
+ }
4326
+ function getEnvVarWithHexclaveFallback(name) {
4327
+ if (name.includes("STACK_")) {
4328
+ const hexclaveName = name.replace("STACK_", "HEXCLAVE_");
4329
+ return resolveHexclaveStackEnvVarValue(hexclaveName, name, process.env[hexclaveName], process.env[name]);
4330
+ }
4331
+ if (name.includes("HEXCLAVE_")) {
4332
+ const stackName = name.replace("HEXCLAVE_", "STACK_");
4333
+ return resolveHexclaveStackEnvVarValue(name, stackName, process.env[name], process.env[stackName]);
4334
+ }
4335
+ return process.env[name];
4322
4336
  }
4323
4337
  function getProcessEnv(name) {
4324
4338
  if (typeof process === "undefined" || typeof process.env === "undefined") return;
4325
- const hexclaveName = getHexclaveEnvVarName(name);
4326
- return (hexclaveName ? process.env[hexclaveName] : void 0) ?? process.env[name];
4339
+ return getEnvVarWithHexclaveFallback(name);
4327
4340
  }
4328
4341
 
4329
4342
  // ../shared/dist/esm/utils/results.js
@@ -4448,6 +4461,49 @@ This is likely an error in Hexclave. Please make sure you are running the newest
4448
4461
  return Object.assign(Result.error(new RetryError(errors)), { attempts: totalAttempts });
4449
4462
  }
4450
4463
 
4464
+ // ../shared/dist/esm/utils/bytes.js
4465
+ function decodeBase64(input) {
4466
+ return new Uint8Array(atob(input).split("").map((char) => char.charCodeAt(0)));
4467
+ }
4468
+ function isBase64(input) {
4469
+ return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input);
4470
+ }
4471
+
4472
+ // ../shared/dist/esm/utils/urls.js
4473
+ function createUrlIfValid(...args) {
4474
+ try {
4475
+ return new URL(...args);
4476
+ } catch (e40) {
4477
+ return null;
4478
+ }
4479
+ }
4480
+ function isValidUrl(url) {
4481
+ return !!createUrlIfValid(url);
4482
+ }
4483
+ function isValidHostname(hostname) {
4484
+ if (!hostname || hostname.startsWith(".") || hostname.endsWith(".") || hostname.includes("..")) return false;
4485
+ const url = createUrlIfValid(`https://${hostname}`);
4486
+ if (!url) return false;
4487
+ return url.hostname === hostname;
4488
+ }
4489
+ function isValidHostnameWithWildcards(hostname) {
4490
+ if (!hostname) return false;
4491
+ if (!hostname.includes("*")) return isValidHostname(hostname);
4492
+ if (hostname.startsWith(".") || hostname.endsWith(".")) return false;
4493
+ if (hostname.includes("..")) return false;
4494
+ const testHostname = hostname.replace(/\*+/g, "wildcard");
4495
+ if (!/^[a-zA-Z0-9.-]+$/.test(testHostname)) return false;
4496
+ const segments = hostname.split(/\*+/);
4497
+ for (let i = 0; i < segments.length; i++) {
4498
+ const segment = segments[i];
4499
+ if (segment === "") continue;
4500
+ if (i === 0 && segment.startsWith(".")) return false;
4501
+ if (i === segments.length - 1 && segment.endsWith(".")) return false;
4502
+ if (segment.includes("..")) return false;
4503
+ }
4504
+ return true;
4505
+ }
4506
+
4451
4507
  // ../shared/dist/esm/known-errors.js
4452
4508
  var KnownError = class extends StatusError {
4453
4509
  constructor(statusCode, humanReadableMessage, details) {
@@ -5206,49 +5262,6 @@ This is likely an error in Hexclave. Please make sure you are running the newest
5206
5262
  knownErrorCodes.add(KnownError2.errorCode);
5207
5263
  }
5208
5264
 
5209
- // ../shared/dist/esm/utils/bytes.js
5210
- function decodeBase64(input) {
5211
- return new Uint8Array(atob(input).split("").map((char) => char.charCodeAt(0)));
5212
- }
5213
- function isBase64(input) {
5214
- return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input);
5215
- }
5216
-
5217
- // ../shared/dist/esm/utils/urls.js
5218
- function createUrlIfValid(...args) {
5219
- try {
5220
- return new URL(...args);
5221
- } catch (e40) {
5222
- return null;
5223
- }
5224
- }
5225
- function isValidUrl(url) {
5226
- return !!createUrlIfValid(url);
5227
- }
5228
- function isValidHostname(hostname) {
5229
- if (!hostname || hostname.startsWith(".") || hostname.endsWith(".") || hostname.includes("..")) return false;
5230
- const url = createUrlIfValid(`https://${hostname}`);
5231
- if (!url) return false;
5232
- return url.hostname === hostname;
5233
- }
5234
- function isValidHostnameWithWildcards(hostname) {
5235
- if (!hostname) return false;
5236
- if (!hostname.includes("*")) return isValidHostname(hostname);
5237
- if (hostname.startsWith(".") || hostname.endsWith(".")) return false;
5238
- if (hostname.includes("..")) return false;
5239
- const testHostname = hostname.replace(/\*+/g, "wildcard");
5240
- if (!/^[a-zA-Z0-9.-]+$/.test(testHostname)) return false;
5241
- const segments = hostname.split(/\*+/);
5242
- for (let i = 0; i < segments.length; i++) {
5243
- const segment = segments[i];
5244
- if (segment === "") continue;
5245
- if (i === 0 && segment.startsWith(".")) return false;
5246
- if (i === segments.length - 1 && segment.endsWith(".")) return false;
5247
- if (segment.includes("..")) return false;
5248
- }
5249
- return true;
5250
- }
5251
-
5252
5265
  // ../../node_modules/.pnpm/yup@1.7.1/node_modules/yup/index.esm.js
5253
5266
  var import_property_expr = __toESM(require_property_expr());
5254
5267
  var import_tiny_case = __toESM(require_tiny_case());