randmarcomps 1.580.0 → 1.581.0

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.
@@ -126,6 +126,14 @@ export declare const AlertDialogTrigger: React_2.ForwardRefExoticComponent<Alert
126
126
 
127
127
  export declare const AlertTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLHeadingElement> & React_2.RefAttributes<HTMLParagraphElement>>;
128
128
 
129
+ export declare function ApiImage({ path, origin, ...props }: ApiImageProps): JSX.Element;
130
+
131
+ export declare type ApiImageProps = Omit<React_2.ImgHTMLAttributes<HTMLImageElement>, "src" | "alt"> & {
132
+ path: string;
133
+ origin?: string;
134
+ alt: string;
135
+ };
136
+
129
137
  declare interface ApiKeyContextType {
130
138
  apiKey: string | null;
131
139
  }
@@ -208,6 +216,14 @@ export declare const badgeVariants: (props?: ({
208
216
  size?: "default" | "sm" | "lg" | null | undefined;
209
217
  } & ClassProp) | undefined) => string;
210
218
 
219
+ /**
220
+ * Safely builds an absolute API/asset URL from a path and optional origin.
221
+ * - If `path` is already absolute (http/https/data/blob), returns it unchanged.
222
+ * - If `origin` is a full URL, only its `.origin` is used.
223
+ * - If `origin` is omitted, returns a root-relative path.
224
+ */
225
+ export declare function buildApiUrl(path: string, origin?: string): string;
226
+
211
227
  export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
212
228
 
213
229
  export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -1250,6 +1266,12 @@ declare interface TreemapProps {
1250
1266
  disableClick?: boolean;
1251
1267
  }
1252
1268
 
1269
+ /**
1270
+ * Derives the current API origin from `useRandmarApiConfig().swaggerJsonUrl`.
1271
+ * Falls back to a stable production origin when the config is missing/invalid.
1272
+ */
1273
+ export declare function useApiOrigin(): string;
1274
+
1253
1275
  export declare const useChat: () => ChatContextType;
1254
1276
 
1255
1277
  export declare const useGeminiApiKey: () => ApiKeyContextType;