@urun-sh/react 0.6.32 → 0.6.34
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/CHANGELOG.md +5 -0
- package/dist/index.d.mts +18 -59
- package/dist/index.d.ts +18 -59
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -392,18 +392,12 @@ declare const ProgressCardSchema: z.ZodObject<{
|
|
|
392
392
|
step: z.ZodNumber;
|
|
393
393
|
total: z.ZodNumber;
|
|
394
394
|
label: z.ZodOptional<z.ZodString>;
|
|
395
|
-
variant: z.ZodDefault<z.ZodEnum<
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
}, {
|
|
402
|
-
step: number;
|
|
403
|
-
total: number;
|
|
404
|
-
label?: string | undefined;
|
|
405
|
-
variant?: "error" | "default" | "success" | undefined;
|
|
406
|
-
}>;
|
|
395
|
+
variant: z.ZodDefault<z.ZodEnum<{
|
|
396
|
+
error: "error";
|
|
397
|
+
default: "default";
|
|
398
|
+
success: "success";
|
|
399
|
+
}>>;
|
|
400
|
+
}, z.core.$strip>;
|
|
407
401
|
type ProgressCardProps = z.input<typeof ProgressCardSchema>;
|
|
408
402
|
declare function useProgressCard(props: ProgressCardProps): {
|
|
409
403
|
step: number;
|
|
@@ -416,15 +410,14 @@ declare function useProgressCard(props: ProgressCardProps): {
|
|
|
416
410
|
declare function ProgressCard(props: ProgressCardProps): react_jsx_runtime.JSX.Element;
|
|
417
411
|
|
|
418
412
|
declare const StatusBadgeSchema: z.ZodObject<{
|
|
419
|
-
state: z.ZodEnum<
|
|
413
|
+
state: z.ZodEnum<{
|
|
414
|
+
error: "error";
|
|
415
|
+
idle: "idle";
|
|
416
|
+
thinking: "thinking";
|
|
417
|
+
generating: "generating";
|
|
418
|
+
}>;
|
|
420
419
|
message: z.ZodOptional<z.ZodString>;
|
|
421
|
-
},
|
|
422
|
-
state: "error" | "idle" | "thinking" | "generating";
|
|
423
|
-
message?: string | undefined;
|
|
424
|
-
}, {
|
|
425
|
-
state: "error" | "idle" | "thinking" | "generating";
|
|
426
|
-
message?: string | undefined;
|
|
427
|
-
}>;
|
|
420
|
+
}, z.core.$strip>;
|
|
428
421
|
type StatusBadgeProps = z.infer<typeof StatusBadgeSchema>;
|
|
429
422
|
declare function useStatusBadge(props: StatusBadgeProps): {
|
|
430
423
|
state: "error" | "idle" | "thinking" | "generating";
|
|
@@ -436,13 +429,7 @@ declare function StatusBadge(props: StatusBadgeProps): react_jsx_runtime.JSX.Ele
|
|
|
436
429
|
declare const TextStreamSchema: z.ZodObject<{
|
|
437
430
|
text: z.ZodString;
|
|
438
431
|
streaming: z.ZodDefault<z.ZodBoolean>;
|
|
439
|
-
},
|
|
440
|
-
text: string;
|
|
441
|
-
streaming: boolean;
|
|
442
|
-
}, {
|
|
443
|
-
text: string;
|
|
444
|
-
streaming?: boolean | undefined;
|
|
445
|
-
}>;
|
|
432
|
+
}, z.core.$strip>;
|
|
446
433
|
type TextStreamProps = z.input<typeof TextStreamSchema>;
|
|
447
434
|
declare function useTextStream(props: TextStreamProps): {
|
|
448
435
|
text: string;
|
|
@@ -455,15 +442,7 @@ declare const ImageFrameSchema: z.ZodObject<{
|
|
|
455
442
|
src: z.ZodString;
|
|
456
443
|
alt: z.ZodOptional<z.ZodString>;
|
|
457
444
|
caption: z.ZodOptional<z.ZodString>;
|
|
458
|
-
},
|
|
459
|
-
src: string;
|
|
460
|
-
caption?: string | undefined;
|
|
461
|
-
alt?: string | undefined;
|
|
462
|
-
}, {
|
|
463
|
-
src: string;
|
|
464
|
-
caption?: string | undefined;
|
|
465
|
-
alt?: string | undefined;
|
|
466
|
-
}>;
|
|
445
|
+
}, z.core.$strip>;
|
|
467
446
|
type ImageFrameProps = z.infer<typeof ImageFrameSchema>;
|
|
468
447
|
declare function useImageFrame(props: ImageFrameProps): {
|
|
469
448
|
src: string;
|
|
@@ -475,30 +454,10 @@ declare function ImageFrame(props: ImageFrameProps): react_jsx_runtime.JSX.Eleme
|
|
|
475
454
|
declare const MetricsPanelSchema: z.ZodObject<{
|
|
476
455
|
metrics: z.ZodArray<z.ZodObject<{
|
|
477
456
|
label: z.ZodString;
|
|
478
|
-
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
457
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
479
458
|
unit: z.ZodOptional<z.ZodString>;
|
|
480
|
-
},
|
|
481
|
-
|
|
482
|
-
label: string;
|
|
483
|
-
unit?: string | undefined;
|
|
484
|
-
}, {
|
|
485
|
-
value: string | number;
|
|
486
|
-
label: string;
|
|
487
|
-
unit?: string | undefined;
|
|
488
|
-
}>, "many">;
|
|
489
|
-
}, "strip", z.ZodTypeAny, {
|
|
490
|
-
metrics: {
|
|
491
|
-
value: string | number;
|
|
492
|
-
label: string;
|
|
493
|
-
unit?: string | undefined;
|
|
494
|
-
}[];
|
|
495
|
-
}, {
|
|
496
|
-
metrics: {
|
|
497
|
-
value: string | number;
|
|
498
|
-
label: string;
|
|
499
|
-
unit?: string | undefined;
|
|
500
|
-
}[];
|
|
501
|
-
}>;
|
|
459
|
+
}, z.core.$strip>>;
|
|
460
|
+
}, z.core.$strip>;
|
|
502
461
|
type MetricsPanelProps = z.infer<typeof MetricsPanelSchema>;
|
|
503
462
|
interface EnrichedMetric {
|
|
504
463
|
label: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -392,18 +392,12 @@ declare const ProgressCardSchema: z.ZodObject<{
|
|
|
392
392
|
step: z.ZodNumber;
|
|
393
393
|
total: z.ZodNumber;
|
|
394
394
|
label: z.ZodOptional<z.ZodString>;
|
|
395
|
-
variant: z.ZodDefault<z.ZodEnum<
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
}, {
|
|
402
|
-
step: number;
|
|
403
|
-
total: number;
|
|
404
|
-
label?: string | undefined;
|
|
405
|
-
variant?: "error" | "default" | "success" | undefined;
|
|
406
|
-
}>;
|
|
395
|
+
variant: z.ZodDefault<z.ZodEnum<{
|
|
396
|
+
error: "error";
|
|
397
|
+
default: "default";
|
|
398
|
+
success: "success";
|
|
399
|
+
}>>;
|
|
400
|
+
}, z.core.$strip>;
|
|
407
401
|
type ProgressCardProps = z.input<typeof ProgressCardSchema>;
|
|
408
402
|
declare function useProgressCard(props: ProgressCardProps): {
|
|
409
403
|
step: number;
|
|
@@ -416,15 +410,14 @@ declare function useProgressCard(props: ProgressCardProps): {
|
|
|
416
410
|
declare function ProgressCard(props: ProgressCardProps): react_jsx_runtime.JSX.Element;
|
|
417
411
|
|
|
418
412
|
declare const StatusBadgeSchema: z.ZodObject<{
|
|
419
|
-
state: z.ZodEnum<
|
|
413
|
+
state: z.ZodEnum<{
|
|
414
|
+
error: "error";
|
|
415
|
+
idle: "idle";
|
|
416
|
+
thinking: "thinking";
|
|
417
|
+
generating: "generating";
|
|
418
|
+
}>;
|
|
420
419
|
message: z.ZodOptional<z.ZodString>;
|
|
421
|
-
},
|
|
422
|
-
state: "error" | "idle" | "thinking" | "generating";
|
|
423
|
-
message?: string | undefined;
|
|
424
|
-
}, {
|
|
425
|
-
state: "error" | "idle" | "thinking" | "generating";
|
|
426
|
-
message?: string | undefined;
|
|
427
|
-
}>;
|
|
420
|
+
}, z.core.$strip>;
|
|
428
421
|
type StatusBadgeProps = z.infer<typeof StatusBadgeSchema>;
|
|
429
422
|
declare function useStatusBadge(props: StatusBadgeProps): {
|
|
430
423
|
state: "error" | "idle" | "thinking" | "generating";
|
|
@@ -436,13 +429,7 @@ declare function StatusBadge(props: StatusBadgeProps): react_jsx_runtime.JSX.Ele
|
|
|
436
429
|
declare const TextStreamSchema: z.ZodObject<{
|
|
437
430
|
text: z.ZodString;
|
|
438
431
|
streaming: z.ZodDefault<z.ZodBoolean>;
|
|
439
|
-
},
|
|
440
|
-
text: string;
|
|
441
|
-
streaming: boolean;
|
|
442
|
-
}, {
|
|
443
|
-
text: string;
|
|
444
|
-
streaming?: boolean | undefined;
|
|
445
|
-
}>;
|
|
432
|
+
}, z.core.$strip>;
|
|
446
433
|
type TextStreamProps = z.input<typeof TextStreamSchema>;
|
|
447
434
|
declare function useTextStream(props: TextStreamProps): {
|
|
448
435
|
text: string;
|
|
@@ -455,15 +442,7 @@ declare const ImageFrameSchema: z.ZodObject<{
|
|
|
455
442
|
src: z.ZodString;
|
|
456
443
|
alt: z.ZodOptional<z.ZodString>;
|
|
457
444
|
caption: z.ZodOptional<z.ZodString>;
|
|
458
|
-
},
|
|
459
|
-
src: string;
|
|
460
|
-
caption?: string | undefined;
|
|
461
|
-
alt?: string | undefined;
|
|
462
|
-
}, {
|
|
463
|
-
src: string;
|
|
464
|
-
caption?: string | undefined;
|
|
465
|
-
alt?: string | undefined;
|
|
466
|
-
}>;
|
|
445
|
+
}, z.core.$strip>;
|
|
467
446
|
type ImageFrameProps = z.infer<typeof ImageFrameSchema>;
|
|
468
447
|
declare function useImageFrame(props: ImageFrameProps): {
|
|
469
448
|
src: string;
|
|
@@ -475,30 +454,10 @@ declare function ImageFrame(props: ImageFrameProps): react_jsx_runtime.JSX.Eleme
|
|
|
475
454
|
declare const MetricsPanelSchema: z.ZodObject<{
|
|
476
455
|
metrics: z.ZodArray<z.ZodObject<{
|
|
477
456
|
label: z.ZodString;
|
|
478
|
-
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
457
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
479
458
|
unit: z.ZodOptional<z.ZodString>;
|
|
480
|
-
},
|
|
481
|
-
|
|
482
|
-
label: string;
|
|
483
|
-
unit?: string | undefined;
|
|
484
|
-
}, {
|
|
485
|
-
value: string | number;
|
|
486
|
-
label: string;
|
|
487
|
-
unit?: string | undefined;
|
|
488
|
-
}>, "many">;
|
|
489
|
-
}, "strip", z.ZodTypeAny, {
|
|
490
|
-
metrics: {
|
|
491
|
-
value: string | number;
|
|
492
|
-
label: string;
|
|
493
|
-
unit?: string | undefined;
|
|
494
|
-
}[];
|
|
495
|
-
}, {
|
|
496
|
-
metrics: {
|
|
497
|
-
value: string | number;
|
|
498
|
-
label: string;
|
|
499
|
-
unit?: string | undefined;
|
|
500
|
-
}[];
|
|
501
|
-
}>;
|
|
459
|
+
}, z.core.$strip>>;
|
|
460
|
+
}, z.core.$strip>;
|
|
502
461
|
type MetricsPanelProps = z.infer<typeof MetricsPanelSchema>;
|
|
503
462
|
interface EnrichedMetric {
|
|
504
463
|
label: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@urun-sh/react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.34",
|
|
4
4
|
"description": "React bindings for the urun TypeScript SDK",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"dev": "tsup --watch"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@urun-sh/core": "^0.6.
|
|
56
|
+
"@urun-sh/core": "^0.6.34",
|
|
57
57
|
"@workos-inc/authkit-nextjs": "^3.0.0",
|
|
58
58
|
"@workos-inc/authkit-react": "^0.15.0 || ^0.16.0",
|
|
59
59
|
"next": "^15.0.0 || ^16.0.0",
|