@runtypelabs/persona 3.10.0 → 3.10.1
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/index.cjs +44 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.global.js +59 -59
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +44 -44
- package/dist/index.js.map +1 -1
- package/dist/theme-editor.cjs +144 -15
- package/dist/theme-editor.d.cts +29 -0
- package/dist/theme-editor.d.ts +29 -0
- package/dist/theme-editor.js +144 -15
- package/dist/widget.css +30 -0
- package/package.json +1 -1
- package/src/styles/widget.css +30 -0
- package/src/types.ts +29 -0
- package/src/ui.attachments-drop.test.ts +188 -0
- package/src/ui.scroll.test.ts +46 -0
- package/src/ui.ts +172 -4
package/dist/index.d.cts
CHANGED
|
@@ -2579,6 +2579,35 @@ type AgentWidgetAttachmentsConfig = {
|
|
|
2579
2579
|
* Callback when a file is rejected (wrong type or too large).
|
|
2580
2580
|
*/
|
|
2581
2581
|
onFileRejected?: (file: File, reason: 'type' | 'size' | 'count') => void;
|
|
2582
|
+
/**
|
|
2583
|
+
* Customize the drag-and-drop overlay that appears when files are dragged over the widget.
|
|
2584
|
+
*/
|
|
2585
|
+
dropOverlay?: {
|
|
2586
|
+
/** Background color/value of the overlay. @default 'rgba(59, 130, 246, 0.08)' */
|
|
2587
|
+
background?: string;
|
|
2588
|
+
/** Backdrop blur applied behind the overlay (CSS value). @default '8px' */
|
|
2589
|
+
backdropBlur?: string;
|
|
2590
|
+
/** Border style shown during drag. @default '2px dashed rgba(59, 130, 246, 0.4)' */
|
|
2591
|
+
border?: string;
|
|
2592
|
+
/** Border radius of the overlay. @default 'inherit' */
|
|
2593
|
+
borderRadius?: string;
|
|
2594
|
+
/** Inset/margin pulling the overlay away from the container edges (CSS value). @default '0' */
|
|
2595
|
+
inset?: string;
|
|
2596
|
+
/** Lucide icon name displayed in the center. @default 'upload' */
|
|
2597
|
+
iconName?: string;
|
|
2598
|
+
/** Icon size (CSS value). @default '48px' */
|
|
2599
|
+
iconSize?: string;
|
|
2600
|
+
/** Icon stroke color. @default 'rgba(59, 130, 246, 0.6)' */
|
|
2601
|
+
iconColor?: string;
|
|
2602
|
+
/** Icon stroke width. @default 0.5 */
|
|
2603
|
+
iconStrokeWidth?: number;
|
|
2604
|
+
/** Optional label text shown below the icon. */
|
|
2605
|
+
label?: string;
|
|
2606
|
+
/** Label font size. @default '0.875rem' */
|
|
2607
|
+
labelSize?: string;
|
|
2608
|
+
/** Label color. @default 'rgba(59, 130, 246, 0.8)' */
|
|
2609
|
+
labelColor?: string;
|
|
2610
|
+
};
|
|
2582
2611
|
};
|
|
2583
2612
|
/**
|
|
2584
2613
|
* Configuration for persisting widget state across page navigations.
|
package/dist/index.d.ts
CHANGED
|
@@ -2579,6 +2579,35 @@ type AgentWidgetAttachmentsConfig = {
|
|
|
2579
2579
|
* Callback when a file is rejected (wrong type or too large).
|
|
2580
2580
|
*/
|
|
2581
2581
|
onFileRejected?: (file: File, reason: 'type' | 'size' | 'count') => void;
|
|
2582
|
+
/**
|
|
2583
|
+
* Customize the drag-and-drop overlay that appears when files are dragged over the widget.
|
|
2584
|
+
*/
|
|
2585
|
+
dropOverlay?: {
|
|
2586
|
+
/** Background color/value of the overlay. @default 'rgba(59, 130, 246, 0.08)' */
|
|
2587
|
+
background?: string;
|
|
2588
|
+
/** Backdrop blur applied behind the overlay (CSS value). @default '8px' */
|
|
2589
|
+
backdropBlur?: string;
|
|
2590
|
+
/** Border style shown during drag. @default '2px dashed rgba(59, 130, 246, 0.4)' */
|
|
2591
|
+
border?: string;
|
|
2592
|
+
/** Border radius of the overlay. @default 'inherit' */
|
|
2593
|
+
borderRadius?: string;
|
|
2594
|
+
/** Inset/margin pulling the overlay away from the container edges (CSS value). @default '0' */
|
|
2595
|
+
inset?: string;
|
|
2596
|
+
/** Lucide icon name displayed in the center. @default 'upload' */
|
|
2597
|
+
iconName?: string;
|
|
2598
|
+
/** Icon size (CSS value). @default '48px' */
|
|
2599
|
+
iconSize?: string;
|
|
2600
|
+
/** Icon stroke color. @default 'rgba(59, 130, 246, 0.6)' */
|
|
2601
|
+
iconColor?: string;
|
|
2602
|
+
/** Icon stroke width. @default 0.5 */
|
|
2603
|
+
iconStrokeWidth?: number;
|
|
2604
|
+
/** Optional label text shown below the icon. */
|
|
2605
|
+
label?: string;
|
|
2606
|
+
/** Label font size. @default '0.875rem' */
|
|
2607
|
+
labelSize?: string;
|
|
2608
|
+
/** Label color. @default 'rgba(59, 130, 246, 0.8)' */
|
|
2609
|
+
labelColor?: string;
|
|
2610
|
+
};
|
|
2582
2611
|
};
|
|
2583
2612
|
/**
|
|
2584
2613
|
* Configuration for persisting widget state across page navigations.
|