randmarcomps 1.580.0 → 1.582.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.
- package/dist/randmarcomps.d.ts +23 -1
- package/dist/randmarcomps.js +19926 -30683
- package/dist/randmarcomps.umd.cjs +138 -151
- package/package.json +1 -2
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -161,7 +169,7 @@ declare interface AssistantChatProps {
|
|
|
161
169
|
|
|
162
170
|
/**
|
|
163
171
|
* A component that displays an animated AI icon and placeholder text while
|
|
164
|
-
* fetching an insight from the
|
|
172
|
+
* fetching an insight from the Randmar generation API. It can be displayed with or without
|
|
165
173
|
* a surrounding card style.
|
|
166
174
|
*/
|
|
167
175
|
export declare function AssistantInsight({ applicationId, prompt, smartAndSlow, thinkingPlaceholderText, withCard, }: AssistantInsightProps): JSX.Element;
|
|
@@ -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;
|