@tangle-network/sandbox-ui 0.21.2 → 0.22.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.
@@ -0,0 +1,81 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { EmailContent, BrandTokens, ImageContent, VideoContent, CopyContent, AssetSpec, AssetVariant } from '@tangle-network/agent-app/assets';
3
+
4
+ interface EmailPreviewProps {
5
+ content: EmailContent;
6
+ brand: BrandTokens;
7
+ /** If provided, renders an iframe pointing at this URL instead of the inline preview. */
8
+ previewUrl?: string;
9
+ className?: string;
10
+ }
11
+ declare function EmailPreview({ content, brand, previewUrl, className }: EmailPreviewProps): react_jsx_runtime.JSX.Element;
12
+
13
+ type ImageFormat = "feed" | "story" | "carousel";
14
+ interface ImagePreviewProps {
15
+ content: ImageContent;
16
+ brand: BrandTokens;
17
+ format?: ImageFormat;
18
+ className?: string;
19
+ }
20
+ declare function ImagePreview({ content, brand, format, className }: ImagePreviewProps): react_jsx_runtime.JSX.Element;
21
+
22
+ interface VideoPreviewProps {
23
+ content: VideoContent;
24
+ brand: BrandTokens;
25
+ onRenderRequest?: () => void;
26
+ isRendering?: boolean;
27
+ className?: string;
28
+ }
29
+ declare function VideoPreview({ content, brand, onRenderRequest, isRendering, className }: VideoPreviewProps): react_jsx_runtime.JSX.Element;
30
+
31
+ interface CopyPreviewProps {
32
+ content: CopyContent;
33
+ className?: string;
34
+ }
35
+ declare function CopyPreview({ content, className }: CopyPreviewProps): react_jsx_runtime.JSX.Element;
36
+
37
+ interface AssetEditorProps {
38
+ spec: AssetSpec;
39
+ previewUrl?: string;
40
+ isRendering?: boolean;
41
+ onSave?: (spec: AssetSpec) => void;
42
+ onRenderRequest?: () => void;
43
+ onRevisionRequest?: (instruction: string) => void;
44
+ className?: string;
45
+ }
46
+ declare function AssetEditor({ spec, previewUrl, isRendering, onSave, onRenderRequest, onRevisionRequest, className }: AssetEditorProps): react_jsx_runtime.JSX.Element;
47
+
48
+ interface AssetCardProps {
49
+ spec: AssetSpec;
50
+ variantCount?: number;
51
+ onApprove?: (id: string) => void;
52
+ onReject?: (id: string) => void;
53
+ onEdit?: (id: string) => void;
54
+ className?: string;
55
+ }
56
+ declare function AssetCard({ spec, variantCount, onApprove, onReject, onEdit, className }: AssetCardProps): react_jsx_runtime.JSX.Element;
57
+
58
+ interface ApprovalQueueProps {
59
+ assets: AssetSpec[];
60
+ variantCounts?: Record<string, number>;
61
+ onApprove?: (id: string, scheduledAt?: string) => void;
62
+ onReject?: (id: string) => void;
63
+ onEdit?: (id: string) => void;
64
+ onSave?: (spec: AssetSpec) => void;
65
+ onRevisionRequest?: (id: string, instruction: string) => void;
66
+ onRenderRequest?: (id: string) => void;
67
+ renderingIds?: Set<string>;
68
+ previewUrls?: Record<string, string>;
69
+ className?: string;
70
+ }
71
+ declare function ApprovalQueue({ assets, variantCounts, onApprove, onReject, onEdit, onSave, onRevisionRequest, onRenderRequest, renderingIds, previewUrls, className, }: ApprovalQueueProps): react_jsx_runtime.JSX.Element;
72
+
73
+ interface VariantCompareProps {
74
+ variants: AssetVariant[];
75
+ onPromote?: (variantId: string) => void;
76
+ onSave?: (variant: AssetVariant) => void;
77
+ className?: string;
78
+ }
79
+ declare function VariantCompare({ variants, onPromote, onSave, className }: VariantCompareProps): react_jsx_runtime.JSX.Element;
80
+
81
+ export { ApprovalQueue, type ApprovalQueueProps, AssetCard, type AssetCardProps, AssetEditor, type AssetEditorProps, CopyPreview, type CopyPreviewProps, EmailPreview, type EmailPreviewProps, type ImageFormat, ImagePreview, type ImagePreviewProps, VariantCompare, type VariantCompareProps, VideoPreview, type VideoPreviewProps };