@hexclave/dashboard-ui-components 1.0.74 → 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.
|
@@ -3,7 +3,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/button.d.ts
|
|
5
5
|
declare const designButtonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
type DesignOriginalButtonProps = {
|
|
@@ -35,7 +35,7 @@ declare const DesignButton: React.FC<{
|
|
|
35
35
|
} & {
|
|
36
36
|
asChild?: boolean;
|
|
37
37
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
38
|
-
variant?: "
|
|
38
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
|
|
39
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;
|
|
@@ -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 });
|