@hexclave/dashboard-ui-components 1.0.75 → 1.0.76
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/components/button.d.ts +4 -4
- package/dist/components/chart-legend.d.ts +1 -1
- package/dist/dashboard-ui-components.global.js +75 -43
- package/dist/dashboard-ui-components.global.js.map +4 -4
- package/dist/esm/components/button.d.ts +4 -4
- package/dist/esm/components/chart-legend.d.ts +1 -1
- package/package.json +3 -3
|
@@ -3,8 +3,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/button.d.ts
|
|
5
5
|
declare const designButtonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
7
|
-
size?: "
|
|
6
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
|
|
7
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
type DesignOriginalButtonProps = {
|
|
10
10
|
asChild?: boolean;
|
|
@@ -35,8 +35,8 @@ declare const DesignButton: React.FC<{
|
|
|
35
35
|
} & {
|
|
36
36
|
asChild?: boolean;
|
|
37
37
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
38
|
-
variant?: "
|
|
39
|
-
size?: "
|
|
38
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
|
|
39
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
40
40
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
41
41
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
42
42
|
}>;
|
|
@@ -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, "
|
|
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>>;
|
|
@@ -4324,6 +4324,38 @@ This is likely an error in Hexclave. Please make sure you are running the newest
|
|
|
4324
4324
|
}
|
|
4325
4325
|
};
|
|
4326
4326
|
HexclaveAssertionError.prototype.name = "HexclaveAssertionError";
|
|
4327
|
+
var hexclaveSetupErrorBrand = "hexclave-setup-error-brand-sentinel";
|
|
4328
|
+
var HexclaveSetupError = class extends Error {
|
|
4329
|
+
constructor(options) {
|
|
4330
|
+
super(options.message, pick(options.extraData ?? {}, ["cause"]));
|
|
4331
|
+
this.title = options.title;
|
|
4332
|
+
this.howToFix = options.howToFix;
|
|
4333
|
+
Object.defineProperty(this, hexclaveSetupErrorBrand, {
|
|
4334
|
+
value: true,
|
|
4335
|
+
enumerable: false
|
|
4336
|
+
});
|
|
4337
|
+
Object.defineProperty(this, "customCaptureExtraArgs", {
|
|
4338
|
+
get() {
|
|
4339
|
+
return [{
|
|
4340
|
+
...options.extraData,
|
|
4341
|
+
howToFix: options.howToFix
|
|
4342
|
+
}];
|
|
4343
|
+
},
|
|
4344
|
+
enumerable: false
|
|
4345
|
+
});
|
|
4346
|
+
}
|
|
4347
|
+
/**
|
|
4348
|
+
* Like `instanceof`, but also true for setup errors thrown by another copy of this package — an app can easily end up
|
|
4349
|
+
* with two of them, and a setup error from either must still show up as one.
|
|
4350
|
+
*/
|
|
4351
|
+
static isSetupError(error) {
|
|
4352
|
+
if (typeof error !== "object" || error === null) return false;
|
|
4353
|
+
if (!Object.prototype.hasOwnProperty.call(error, hexclaveSetupErrorBrand)) return false;
|
|
4354
|
+
if (Reflect.get(error, hexclaveSetupErrorBrand) !== true) return false;
|
|
4355
|
+
return typeof Reflect.get(error, "title") === "string" && Array.isArray(Reflect.get(error, "howToFix"));
|
|
4356
|
+
}
|
|
4357
|
+
};
|
|
4358
|
+
HexclaveSetupError.prototype.name = "HexclaveSetupError";
|
|
4327
4359
|
function errorToNiceString(error) {
|
|
4328
4360
|
if (!(error instanceof Error)) return `${typeof error}<${nicify(error)}>`;
|
|
4329
4361
|
return nicify(error, { maxDepth: 8 });
|
|
@@ -4665,6 +4697,49 @@ This is likely an error in Hexclave. Please make sure you are running the newest
|
|
|
4665
4697
|
return Object.assign(Result.error(new RetryError(errors)), { attempts: totalAttempts });
|
|
4666
4698
|
}
|
|
4667
4699
|
|
|
4700
|
+
// ../shared/dist/esm/utils/bytes.js
|
|
4701
|
+
function decodeBase64(input) {
|
|
4702
|
+
return new Uint8Array(atob(input).split("").map((char) => char.charCodeAt(0)));
|
|
4703
|
+
}
|
|
4704
|
+
function isBase64(input) {
|
|
4705
|
+
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input);
|
|
4706
|
+
}
|
|
4707
|
+
|
|
4708
|
+
// ../shared/dist/esm/utils/urls.js
|
|
4709
|
+
function createUrlIfValid(...args) {
|
|
4710
|
+
try {
|
|
4711
|
+
return new URL(...args);
|
|
4712
|
+
} catch (e40) {
|
|
4713
|
+
return null;
|
|
4714
|
+
}
|
|
4715
|
+
}
|
|
4716
|
+
function isValidUrl(url) {
|
|
4717
|
+
return !!createUrlIfValid(url);
|
|
4718
|
+
}
|
|
4719
|
+
function isValidHostname(hostname) {
|
|
4720
|
+
if (!hostname || hostname.startsWith(".") || hostname.endsWith(".") || hostname.includes("..")) return false;
|
|
4721
|
+
const url = createUrlIfValid(`https://${hostname}`);
|
|
4722
|
+
if (!url) return false;
|
|
4723
|
+
return url.hostname === hostname;
|
|
4724
|
+
}
|
|
4725
|
+
function isValidHostnameWithWildcards(hostname) {
|
|
4726
|
+
if (!hostname) return false;
|
|
4727
|
+
if (!hostname.includes("*")) return isValidHostname(hostname);
|
|
4728
|
+
if (hostname.startsWith(".") || hostname.endsWith(".")) return false;
|
|
4729
|
+
if (hostname.includes("..")) return false;
|
|
4730
|
+
const testHostname = hostname.replace(/\*+/g, "wildcard");
|
|
4731
|
+
if (!/^[a-zA-Z0-9.-]+$/.test(testHostname)) return false;
|
|
4732
|
+
const segments = hostname.split(/\*+/);
|
|
4733
|
+
for (let i = 0; i < segments.length; i++) {
|
|
4734
|
+
const segment = segments[i];
|
|
4735
|
+
if (segment === "") continue;
|
|
4736
|
+
if (i === 0 && segment.startsWith(".")) return false;
|
|
4737
|
+
if (i === segments.length - 1 && segment.endsWith(".")) return false;
|
|
4738
|
+
if (segment.includes("..")) return false;
|
|
4739
|
+
}
|
|
4740
|
+
return true;
|
|
4741
|
+
}
|
|
4742
|
+
|
|
4668
4743
|
// ../shared/dist/esm/known-errors.js
|
|
4669
4744
|
var KnownError = class extends StatusError {
|
|
4670
4745
|
constructor(statusCode, humanReadableMessage, details) {
|
|
@@ -5421,49 +5496,6 @@ This is likely an error in Hexclave. Please make sure you are running the newest
|
|
|
5421
5496
|
knownErrorCodes.add(KnownError2.errorCode);
|
|
5422
5497
|
}
|
|
5423
5498
|
|
|
5424
|
-
// ../shared/dist/esm/utils/bytes.js
|
|
5425
|
-
function decodeBase64(input) {
|
|
5426
|
-
return new Uint8Array(atob(input).split("").map((char) => char.charCodeAt(0)));
|
|
5427
|
-
}
|
|
5428
|
-
function isBase64(input) {
|
|
5429
|
-
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input);
|
|
5430
|
-
}
|
|
5431
|
-
|
|
5432
|
-
// ../shared/dist/esm/utils/urls.js
|
|
5433
|
-
function createUrlIfValid(...args) {
|
|
5434
|
-
try {
|
|
5435
|
-
return new URL(...args);
|
|
5436
|
-
} catch (e40) {
|
|
5437
|
-
return null;
|
|
5438
|
-
}
|
|
5439
|
-
}
|
|
5440
|
-
function isValidUrl(url) {
|
|
5441
|
-
return !!createUrlIfValid(url);
|
|
5442
|
-
}
|
|
5443
|
-
function isValidHostname(hostname) {
|
|
5444
|
-
if (!hostname || hostname.startsWith(".") || hostname.endsWith(".") || hostname.includes("..")) return false;
|
|
5445
|
-
const url = createUrlIfValid(`https://${hostname}`);
|
|
5446
|
-
if (!url) return false;
|
|
5447
|
-
return url.hostname === hostname;
|
|
5448
|
-
}
|
|
5449
|
-
function isValidHostnameWithWildcards(hostname) {
|
|
5450
|
-
if (!hostname) return false;
|
|
5451
|
-
if (!hostname.includes("*")) return isValidHostname(hostname);
|
|
5452
|
-
if (hostname.startsWith(".") || hostname.endsWith(".")) return false;
|
|
5453
|
-
if (hostname.includes("..")) return false;
|
|
5454
|
-
const testHostname = hostname.replace(/\*+/g, "wildcard");
|
|
5455
|
-
if (!/^[a-zA-Z0-9.-]+$/.test(testHostname)) return false;
|
|
5456
|
-
const segments = hostname.split(/\*+/);
|
|
5457
|
-
for (let i = 0; i < segments.length; i++) {
|
|
5458
|
-
const segment = segments[i];
|
|
5459
|
-
if (segment === "") continue;
|
|
5460
|
-
if (i === 0 && segment.startsWith(".")) return false;
|
|
5461
|
-
if (i === segments.length - 1 && segment.endsWith(".")) return false;
|
|
5462
|
-
if (segment.includes("..")) return false;
|
|
5463
|
-
}
|
|
5464
|
-
return true;
|
|
5465
|
-
}
|
|
5466
|
-
|
|
5467
5499
|
// ../../node_modules/.pnpm/yup@1.7.1/node_modules/yup/index.esm.js
|
|
5468
5500
|
var import_property_expr = __toESM(require_property_expr());
|
|
5469
5501
|
var import_tiny_case = __toESM(require_tiny_case());
|