@agent-native/dispatch 0.38.15 → 0.38.16-nightly-20260927213438
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/actions/create-workspace-resource.d.ts +13 -13
- package/dist/actions/provider-api-register.d.ts +12 -12
- package/dist/components/automation-create-dialog.js +4 -4
- package/dist/components/automation-create-dialog.js.map +1 -1
- package/dist/components/layout/Header.js +1 -1
- package/dist/components/layout/Header.js.map +1 -1
- package/dist/components/layout/Layout.d.ts +7 -0
- package/dist/components/layout/Layout.d.ts.map +1 -1
- package/dist/components/layout/Layout.js +19 -4
- package/dist/components/layout/Layout.js.map +1 -1
- package/dist/components/messaging-setup-panel.d.ts.map +1 -1
- package/dist/components/messaging-setup-panel.js +7 -28
- package/dist/components/messaging-setup-panel.js.map +1 -1
- package/dist/components/transactional-email-send-log.js +1 -1
- package/dist/components/transactional-email-send-log.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -20
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +1 -26
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/button.d.ts +1 -11
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +1 -33
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/carousel.d.ts +2 -2
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts +1 -3
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +1 -8
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/sidebar.d.ts +4 -2
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/switch.d.ts +1 -4
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +1 -7
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +1 -7
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +1 -12
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -12
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +1 -25
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/usage-alerts-panel.d.ts.map +1 -1
- package/dist/components/usage-alerts-panel.js +1 -1
- package/dist/components/usage-alerts-panel.js.map +1 -1
- package/dist/components/workspace-app-search.d.ts.map +1 -1
- package/dist/components/workspace-app-search.js +1 -1
- package/dist/components/workspace-app-search.js.map +1 -1
- package/dist/routes/pages/automations.d.ts.map +1 -1
- package/dist/routes/pages/automations.js +2 -2
- package/dist/routes/pages/automations.js.map +1 -1
- package/dist/routes/pages/metrics.d.ts.map +1 -1
- package/dist/routes/pages/metrics.js +1 -1
- package/dist/routes/pages/metrics.js.map +1 -1
- package/dist/routes/pages/settings.d.ts +9 -0
- package/dist/routes/pages/settings.d.ts.map +1 -1
- package/dist/routes/pages/settings.js +65 -12
- package/dist/routes/pages/settings.js.map +1 -1
- package/dist/routes/pages/thread-debug.js +1 -1
- package/dist/routes/pages/thread-debug.js.map +1 -1
- package/dist/routes/pages/vault.d.ts.map +1 -1
- package/dist/routes/pages/vault.js +2 -2
- package/dist/routes/pages/vault.js.map +1 -1
- package/dist/server/lib/usage-metrics-store.js +2 -3
- package/dist/server/lib/usage-metrics-store.js.map +1 -1
- package/dist/server/plugins/db.d.ts.map +1 -1
- package/dist/server/plugins/db.js +44 -0
- package/dist/server/plugins/db.js.map +1 -1
- package/package.json +4 -4
- package/src/components/automation-create-dialog.tsx +6 -6
- package/src/components/layout/Header.tsx +2 -2
- package/src/components/layout/Layout.spec.tsx +28 -0
- package/src/components/layout/Layout.tsx +73 -43
- package/src/components/messaging-setup-panel.spec.tsx +5 -1
- package/src/components/messaging-setup-panel.tsx +9 -45
- package/src/components/transactional-email-send-log.tsx +1 -1
- package/src/components/ui/alert-dialog.tsx +1 -139
- package/src/components/ui/button.tsx +1 -56
- package/src/components/ui/input.tsx +1 -22
- package/src/components/ui/switch.tsx +1 -27
- package/src/components/ui/tabs.tsx +1 -53
- package/src/components/ui/toggle.tsx +1 -43
- package/src/components/usage-alerts-panel.tsx +6 -12
- package/src/components/workspace-app-search.tsx +2 -1
- package/src/routes/pages/automations.tsx +4 -2
- package/src/routes/pages/metrics.tsx +2 -1
- package/src/routes/pages/settings.spec.tsx +179 -0
- package/src/routes/pages/settings.tsx +179 -119
- package/src/routes/pages/thread-debug.tsx +1 -1
- package/src/routes/pages/vault.tsx +3 -2
- package/src/server/lib/usage-metrics-store.spec.ts +1 -0
- package/src/server/lib/usage-metrics-store.ts +2 -2
- package/src/server/plugins/db.ts +49 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactional-email-send-log.js","sourceRoot":"","sources":["../../src/components/transactional-email-send-log.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AACtD,OAAO,EACL,eAAe,EACf,mBAAmB,GAEpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EACL,aAAa,GAEd,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,GACZ,MAAM,cAAc,C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,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,YAGxD,KAAK,CAAC,MAAM,GACP,GACE,EACZ,KAAC,SAAS,IAAC,SAAS,EAAC,SAAS,YAAE,KAAK,CAAC,QAAQ,GAAa,KArBtD,KAAK,CAAC,EAAE,CAsBJ,CACZ,CAAC,GACQ,IACN,EACR,eAAK,SAAS,EAAC,6BAA6B,aAC1C,KAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,IAAI,EACT,QAAQ,EAAE,MAAM,KAAK,CAAC,EACtB,OAAO,EAAE,GAAG,EAAE,CACZ,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC,YAGzD,CAAC,CAAC,6CAA6C,CAAC,GAC1C,EACT,KAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,IAAI,EACT,QAAQ,EAAE,CAAC,OAAO,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,GAAG,SAAS,CAAC,YAEzD,CAAC,CAAC,yCAAyC,CAAC,GACtC,IACL,IACL,CACJ,EAED,KAAC,mBAAmB,IAClB,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,WAAW,EAAE,IAAI,IAAI,EAAE,EAChC,IAAI,EAAE,QAAQ,KAAK,IAAI,EACvB,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;oBACrB,IAAI,CAAC,IAAI;wBAAE,WAAW,CAAC,IAAI,CAAC,CAAC;gBAC/B,CAAC,GACD,IACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { useT } from \"@agent-native/core/client/i18n\";\nimport {\n DateRangePicker,\n dateRangeToInterval,\n type DateRange,\n} from \"@agent-native/toolkit/dashboard\";\nimport { IconCheck, IconChevronDown, IconX } from \"@tabler/icons-react\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport { useEffect, useId, useState } from \"react\";\n\nimport {\n callAppAction,\n type LocalTransactionalEmailCatalog,\n} from \"../client/transactional-emails\";\nimport { resolveEmailPreviewAssets } from \"../lib/transactional-email-preview\";\nimport { ActionQueryError } from \"./action-query-error\";\nimport { Badge } from \"./ui/badge\";\nimport { Button } from \"./ui/button\";\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"./ui/command\";\nimport { Dialog, DialogContent, DialogHeader, DialogTitle } from \"./ui/dialog\";\nimport { Input } from \"./ui/input\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"./ui/popover\";\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"./ui/select\";\nimport { Skeleton } from \"./ui/skeleton\";\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from \"./ui/table\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"./ui/tabs\";\n\ninterface SendLogEntry {\n id: string;\n templateId: string | null;\n app: string | null;\n recipient: string;\n sender: string;\n subject: string;\n status: string;\n error: string | null;\n provider: string;\n responseStatus: number | null;\n createdAt: number;\n}\n\ninterface SendLogEntryBody {\n htmlBody: string | null;\n textBody: string | null;\n}\n\nconst PAGE_SIZE = 50;\n\nfunction useDebounced(value: string, delayMs = 300): string {\n const [debounced, setDebounced] = useState(value);\n useEffect(() => {\n const timer = setTimeout(() => setDebounced(value), delayMs);\n return () => clearTimeout(timer);\n }, [value, delayMs]);\n return debounced;\n}\n\nfunction SendLogBody({ appPath, id }: { appPath: string; id: string }) {\n const t = useT();\n const query = useQuery({\n queryKey: [\"get-email-log-body\", appPath, id],\n queryFn: () =>\n callAppAction<SendLogEntryBody>(\n appPath,\n \"get-email-log-body\",\n { id },\n \"GET\",\n ),\n });\n\n if (query.isError) {\n return (\n <ActionQueryError\n error={query.error}\n onRetry={() => void query.refetch()}\n />\n );\n }\n if (query.isLoading) {\n return <Skeleton className=\"h-96 w-full\" />;\n }\n const { htmlBody, textBody } = query.data ?? {\n htmlBody: null,\n textBody: null,\n };\n if (!htmlBody && !textBody) return null;\n\n return (\n <Tabs defaultValue={htmlBody ? \"html\" : \"text\"}>\n <TabsList>\n {htmlBody ? (\n <TabsTrigger value=\"html\">\n {t(\"dispatch.transactionalEmail.sendLogBodyHtml\")}\n </TabsTrigger>\n ) : null}\n {textBody ? (\n <TabsTrigger value=\"text\">\n {t(\"dispatch.transactionalEmail.sendLogBodyText\")}\n </TabsTrigger>\n ) : null}\n </TabsList>\n {htmlBody ? (\n <TabsContent value=\"html\">\n {/* sandbox=\"\" (no allow-scripts) keeps the logged HTML from\n running script in the Dispatch origin. */}\n <iframe\n title={t(\"dispatch.transactionalEmail.sendLogBodyFrameTitle\")}\n sandbox=\"\"\n srcDoc={resolveEmailPreviewAssets(htmlBody)}\n // guard:allow-raw-color — the frame previews sent email HTML, which renders on white in mail clients regardless of app theme.\n className=\"h-96 w-full rounded-xl border bg-white\"\n />\n </TabsContent>\n ) : null}\n {textBody ? (\n <TabsContent value=\"text\">\n <pre className=\"h-96 w-full overflow-auto rounded-xl border p-3 text-xs whitespace-pre-wrap\">\n {textBody}\n </pre>\n </TabsContent>\n ) : null}\n </Tabs>\n );\n}\n\nfunction AddressFilterControl({\n dimension,\n contains,\n exclude,\n onContainsChange,\n onExcludeChange,\n}: {\n dimension: \"to\" | \"from\";\n contains: string;\n exclude: string;\n onContainsChange: (value: string) => void;\n onExcludeChange: (value: string) => void;\n}) {\n const t = useT();\n const containsId = useId();\n const excludeId = useId();\n const dimensionLabel = t(\n dimension === \"to\"\n ? \"dispatch.transactionalEmail.sendLogTo\"\n : \"dispatch.transactionalEmail.sendLogFrom\",\n );\n const filters = [\n {\n operator: t(\"dispatch.transactionalEmail.sendLogContainsOperator\"),\n value: contains,\n clear: () => onContainsChange(\"\"),\n },\n {\n operator: t(\"dispatch.transactionalEmail.sendLogExcludeOperator\"),\n value: exclude,\n clear: () => onExcludeChange(\"\"),\n },\n ].filter((filter) => filter.value);\n\n return (\n <Popover>\n <div className=\"flex min-h-10 max-w-full flex-wrap items-center gap-1 rounded-md border border-input bg-background p-1\">\n <PopoverTrigger asChild>\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n className=\"h-8 shrink-0 gap-1 px-2\"\n aria-label={dimensionLabel}\n >\n {dimensionLabel}\n <IconChevronDown aria-hidden=\"true\" className=\"size-3.5\" />\n </Button>\n </PopoverTrigger>\n {filters.map((filter) => {\n const label = `${filter.operator} ${filter.value}`;\n return (\n <Badge\n key={filter.operator}\n variant=\"secondary\"\n className=\"min-w-0 max-w-full gap-1 pe-1 font-normal\"\n >\n <span className=\"max-w-44 truncate\">{label}</span>\n <button\n type=\"button\"\n className=\"inline-flex size-5 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n aria-label={t(\n \"dispatch.transactionalEmail.sendLogRemoveAddressFilter\",\n { filter: label },\n )}\n onClick={filter.clear}\n >\n <IconX aria-hidden=\"true\" className=\"size-3\" />\n </button>\n </Badge>\n );\n })}\n </div>\n <PopoverContent\n align=\"start\"\n className=\"w-72 max-w-[calc(100vw-2rem)] p-3\"\n >\n <div className=\"grid gap-3\">\n <label\n className=\"grid gap-1.5 text-xs font-medium\"\n htmlFor={containsId}\n >\n {t(\"dispatch.transactionalEmail.sendLogContainsOperator\")}\n <Input\n id={containsId}\n value={contains}\n placeholder={t(\n \"dispatch.transactionalEmail.sendLogContainsPlaceholder\",\n )}\n onChange={(event) => onContainsChange(event.target.value)}\n aria-label={t(\n \"dispatch.transactionalEmail.sendLogAddressFilterLabel\",\n {\n dimension: dimensionLabel,\n operator: t(\n \"dispatch.transactionalEmail.sendLogContainsOperator\",\n ),\n },\n )}\n />\n </label>\n <label\n className=\"grid gap-1.5 text-xs font-medium\"\n htmlFor={excludeId}\n >\n {t(\"dispatch.transactionalEmail.sendLogExcludeOperator\")}\n <Input\n id={excludeId}\n value={exclude}\n placeholder={t(\n \"dispatch.transactionalEmail.sendLogExcludePlaceholder\",\n )}\n onChange={(event) => onExcludeChange(event.target.value)}\n aria-label={t(\n \"dispatch.transactionalEmail.sendLogAddressFilterLabel\",\n {\n dimension: dimensionLabel,\n operator: t(\n \"dispatch.transactionalEmail.sendLogExcludeOperator\",\n ),\n },\n )}\n />\n </label>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n\nfunction SendLogDetailDialog({\n entry,\n appPath,\n open,\n onOpenChange,\n}: {\n entry: SendLogEntry | null;\n appPath: string;\n open: boolean;\n onOpenChange: (next: boolean) => void;\n}) {\n const t = useT();\n if (!entry) return null;\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent className=\"max-w-3xl\">\n <DialogHeader>\n <DialogTitle>{entry.subject}</DialogTitle>\n </DialogHeader>\n <div className=\"grid grid-cols-2 gap-x-6 gap-y-1 text-xs\">\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.recipient\")}\n </div>\n <div className=\"font-mono\">{entry.recipient}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sender\")}\n </div>\n <div className=\"font-mono\">{entry.sender}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogTemplate\")}\n </div>\n <div className=\"font-mono\">{entry.templateId ?? \"—\"}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogProvider\")}\n </div>\n <div>{entry.provider}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogResponseStatus\")}\n </div>\n <div>{entry.responseStatus ?? \"—\"}</div>\n {entry.error ? (\n <>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogError\")}\n </div>\n <div className=\"text-destructive\">{entry.error}</div>\n </>\n ) : null}\n </div>\n <SendLogBody appPath={appPath} id={entry.id} />\n </DialogContent>\n </Dialog>\n );\n}\n\nexport function SendLogSection({\n apps,\n}: {\n apps: { id: string; name: string; path: string }[];\n}) {\n const t = useT();\n const [appId, setAppId] = useState<string | undefined>(apps[0]?.id);\n const [dateRange, setDateRange] = useState<DateRange>(\"7d\");\n const [templateId, setTemplateId] = useState(\"all\");\n const [templatePopoverOpen, setTemplatePopoverOpen] = useState(false);\n const [to, setTo] = useState(\"\");\n const [excludeTo, setExcludeTo] = useState(\"\");\n const [from, setFrom] = useState(\"\");\n const [excludeFrom, setExcludeFrom] = useState(\"\");\n const [status, setStatus] = useState<string>(\"all\");\n const [provider, setProvider] = useState<string>(\"all\");\n const [offset, setOffset] = useState(0);\n const [selected, setSelected] = useState<SendLogEntry | null>(null);\n\n const debouncedTo = useDebounced(to);\n const debouncedExcludeTo = useDebounced(excludeTo);\n const debouncedFrom = useDebounced(from);\n const debouncedExcludeFrom = useDebounced(excludeFrom);\n const selectedApp = apps.find((app) => app.id === appId) ?? apps[0];\n\n useEffect(() => {\n setTemplateId(\"all\");\n }, [selectedApp?.path]);\n\n useEffect(() => {\n setOffset(0);\n }, [\n appId,\n dateRange,\n templateId,\n debouncedTo,\n debouncedExcludeTo,\n debouncedFrom,\n debouncedExcludeFrom,\n status,\n provider,\n ]);\n\n const catalogQuery = useQuery({\n queryKey: [\"send-log-email-catalog\", selectedApp?.path],\n queryFn: () =>\n callAppAction<LocalTransactionalEmailCatalog>(\n selectedApp!.path,\n \"list-transactional-emails\",\n { windowDays: 30 },\n \"GET\",\n ),\n enabled: Boolean(selectedApp),\n staleTime: Infinity,\n });\n\n const templates = [...(catalogQuery.data?.emails ?? [])].sort(\n (a, b) => a.name.localeCompare(b.name) || a.id.localeCompare(b.id),\n );\n const selectedTemplate = templates.find((email) => email.id === templateId);\n\n const query = useQuery({\n queryKey: [\n \"list-email-log\",\n selectedApp?.path,\n dateRange,\n templateId,\n debouncedTo,\n debouncedExcludeTo,\n debouncedFrom,\n debouncedExcludeFrom,\n status,\n provider,\n offset,\n ],\n queryFn: () =>\n callAppAction<{ entries: SendLogEntry[] }>(\n selectedApp!.path,\n \"list-email-log\",\n {\n sinceMs: Date.now() - dateRangeToInterval(dateRange) * 86_400_000,\n ...(templateId !== \"all\" ? { templateId } : {}),\n ...(debouncedTo ? { to: debouncedTo } : {}),\n ...(debouncedExcludeTo ? { excludeTo: debouncedExcludeTo } : {}),\n ...(debouncedFrom ? { from: debouncedFrom } : {}),\n ...(debouncedExcludeFrom\n ? { excludeFrom: debouncedExcludeFrom }\n : {}),\n ...(status !== \"all\" ? { status } : {}),\n ...(provider !== \"all\" ? { provider } : {}),\n limit: PAGE_SIZE + 1,\n offset,\n },\n \"GET\",\n ),\n enabled: Boolean(selectedApp),\n });\n\n const entries = (query.data?.entries ?? []).slice(0, PAGE_SIZE);\n const hasMore = (query.data?.entries.length ?? 0) > PAGE_SIZE;\n\n if (apps.length === 0) return null;\n\n return (\n <div>\n <div className=\"mb-4 flex flex-wrap items-center gap-2\">\n <Select value={selectedApp?.id} onValueChange={setAppId}>\n <SelectTrigger className=\"w-48\">\n <SelectValue placeholder={t(\"dispatch.transactionalEmail.app\")} />\n </SelectTrigger>\n <SelectContent>\n {apps.map((app) => (\n <SelectItem key={app.id} value={app.id}>\n {app.name}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n <DateRangePicker value={dateRange} onChange={setDateRange} />\n <Popover\n open={templatePopoverOpen}\n onOpenChange={setTemplatePopoverOpen}\n >\n <PopoverTrigger asChild>\n <Button\n type=\"button\"\n variant=\"outline\"\n role=\"combobox\"\n aria-expanded={templatePopoverOpen}\n aria-label={t(\"dispatch.transactionalEmail.sendLogTemplate\")}\n className=\"w-64 justify-between\"\n >\n <span className=\"truncate\">\n {selectedTemplate\n ? `${selectedTemplate.name} · ${selectedTemplate.id}`\n : t(\"dispatch.transactionalEmail.sendLogAllTemplates\")}\n </span>\n </Button>\n </PopoverTrigger>\n <PopoverContent align=\"start\" className=\"w-80 p-0\">\n <Command>\n <CommandInput\n placeholder={t(\n \"dispatch.transactionalEmail.sendLogSearchTemplates\",\n )}\n />\n <CommandList>\n <CommandEmpty>\n {t(\"dispatch.transactionalEmail.sendLogNoTemplatesFound\")}\n </CommandEmpty>\n <CommandGroup forceMount>\n <CommandItem\n forceMount\n value=\"all\"\n onSelect={() => {\n setTemplateId(\"all\");\n setTemplatePopoverOpen(false);\n }}\n >\n <IconCheck\n aria-hidden=\"true\"\n className={\n templateId === \"all\"\n ? \"me-2 size-4\"\n : \"me-2 size-4 opacity-0\"\n }\n />\n {t(\"dispatch.transactionalEmail.sendLogAllTemplates\")}\n </CommandItem>\n </CommandGroup>\n <CommandGroup>\n {templates.map((email) => (\n <CommandItem\n key={email.id}\n value={email.id}\n keywords={[email.name]}\n onSelect={() => {\n setTemplateId(email.id);\n setTemplatePopoverOpen(false);\n }}\n >\n <IconCheck\n aria-hidden=\"true\"\n className={\n templateId === email.id\n ? \"me-2 size-4\"\n : \"me-2 size-4 opacity-0\"\n }\n />\n <span className=\"truncate\">\n {email.name} · {email.id}\n </span>\n </CommandItem>\n ))}\n </CommandGroup>\n </CommandList>\n </Command>\n </PopoverContent>\n </Popover>\n <AddressFilterControl\n dimension=\"to\"\n contains={to}\n exclude={excludeTo}\n onContainsChange={setTo}\n onExcludeChange={setExcludeTo}\n />\n <AddressFilterControl\n dimension=\"from\"\n contains={from}\n exclude={excludeFrom}\n onContainsChange={setFrom}\n onExcludeChange={setExcludeFrom}\n />\n <Select value={status} onValueChange={setStatus}>\n <SelectTrigger className=\"w-32\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"all\">\n {t(\"dispatch.transactionalEmail.sendLogAllStatuses\")}\n </SelectItem>\n <SelectItem value=\"sent\">\n {t(\"dispatch.transactionalEmail.sendLogSent\")}\n </SelectItem>\n <SelectItem value=\"failed\">\n {t(\"dispatch.transactionalEmail.sendLogFailed\")}\n </SelectItem>\n </SelectContent>\n </Select>\n <Select value={provider} onValueChange={setProvider}>\n <SelectTrigger className=\"w-36\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"all\">\n {t(\"dispatch.transactionalEmail.sendLogAllProviders\")}\n </SelectItem>\n <SelectItem value=\"resend\">Resend</SelectItem>\n <SelectItem value=\"sendgrid\">SendGrid</SelectItem>\n <SelectItem value=\"dev\">Dev</SelectItem>\n </SelectContent>\n </Select>\n {(templateId !== \"all\" ||\n to ||\n excludeTo ||\n from ||\n excludeFrom ||\n status !== \"all\" ||\n provider !== \"all\") && (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => {\n setTemplateId(\"all\");\n setTo(\"\");\n setExcludeTo(\"\");\n setFrom(\"\");\n setExcludeFrom(\"\");\n setStatus(\"all\");\n setProvider(\"all\");\n }}\n >\n {t(\"dispatch.transactionalEmail.sendLogClearFilters\")}\n </Button>\n )}\n </div>\n\n {query.isError ? (\n <ActionQueryError\n error={query.error}\n onRetry={() => void query.refetch()}\n />\n ) : query.isLoading ? (\n <Skeleton className=\"h-40 w-full\" />\n ) : entries.length === 0 ? (\n <div className=\"rounded-xl border border-dashed px-4 py-8 text-center text-sm text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogEmpty\")}\n </div>\n ) : (\n <>\n <Table>\n <TableHeader>\n <TableRow>\n <TableHead>\n {t(\"dispatch.transactionalEmail.sendLogTimestamp\")}\n </TableHead>\n <TableHead>\n {t(\"dispatch.transactionalEmail.recipient\")}\n </TableHead>\n <TableHead>{t(\"dispatch.transactionalEmail.sender\")}</TableHead>\n <TableHead>\n {t(\"dispatch.transactionalEmail.sendLogTemplate\")}\n </TableHead>\n <TableHead>{t(\"dispatch.transactionalEmail.status\")}</TableHead>\n <TableHead>\n {t(\"dispatch.transactionalEmail.sendLogProvider\")}\n </TableHead>\n </TableRow>\n </TableHeader>\n <TableBody>\n {entries.map((entry) => (\n <TableRow\n key={entry.id}\n className=\"cursor-pointer\"\n onClick={() => setSelected(entry)}\n >\n <TableCell className=\"text-xs text-muted-foreground\">\n {new Date(entry.createdAt).toLocaleString()}\n </TableCell>\n <TableCell className=\"text-xs\">{entry.recipient}</TableCell>\n <TableCell className=\"text-xs\">{entry.sender}</TableCell>\n <TableCell className=\"font-mono text-xs\">\n {entry.templateId ?? \"—\"}\n </TableCell>\n <TableCell>\n <Badge\n variant={\n entry.status === \"failed\" ? \"destructive\" : \"secondary\"\n }\n >\n {entry.status}\n </Badge>\n </TableCell>\n <TableCell className=\"text-xs\">{entry.provider}</TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n <div className=\"mt-3 flex justify-end gap-2\">\n <Button\n variant=\"outline\"\n size=\"sm\"\n disabled={offset === 0}\n onClick={() =>\n setOffset((current) => Math.max(0, current - PAGE_SIZE))\n }\n >\n {t(\"dispatch.transactionalEmail.sendLogPrevious\")}\n </Button>\n <Button\n variant=\"outline\"\n size=\"sm\"\n disabled={!hasMore}\n onClick={() => setOffset((current) => current + PAGE_SIZE)}\n >\n {t(\"dispatch.transactionalEmail.sendLogNext\")}\n </Button>\n </div>\n </>\n )}\n\n <SendLogDetailDialog\n entry={selected}\n appPath={selectedApp?.path ?? \"\"}\n open={selected !== null}\n onOpenChange={(next) => {\n if (!next) setSelected(null);\n }}\n />\n </div>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"transactional-email-send-log.js","sourceRoot":"","sources":["../../src/components/transactional-email-send-log.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AACtD,OAAO,EACL,eAAe,EACf,mBAAmB,GAEpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EACL,aAAa,GAEd,MAAM,gCAAgC,C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,IAAI,EAAE,EAAE;oBACrB,IAAI,CAAC,IAAI;wBAAE,WAAW,CAAC,IAAI,CAAC,CAAC;gBAC/B,CAAC,GACD,IACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { useT } from \"@agent-native/core/client/i18n\";\nimport {\n DateRangePicker,\n dateRangeToInterval,\n type DateRange,\n} from \"@agent-native/toolkit/dashboard\";\nimport { IconCheck, IconChevronDown, IconX } from \"@tabler/icons-react\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport { useEffect, useId, useState } from \"react\";\n\nimport {\n callAppAction,\n type LocalTransactionalEmailCatalog,\n} from \"../client/transactional-emails\";\nimport { resolveEmailPreviewAssets } from \"../lib/transactional-email-preview\";\nimport { ActionQueryError } from \"./action-query-error\";\nimport { Badge } from \"./ui/badge\";\nimport { Button } from \"./ui/button\";\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"./ui/command\";\nimport { Dialog, DialogContent, DialogHeader, DialogTitle } from \"./ui/dialog\";\nimport { Input } from \"./ui/input\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"./ui/popover\";\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"./ui/select\";\nimport { Skeleton } from \"./ui/skeleton\";\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from \"./ui/table\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"./ui/tabs\";\n\ninterface SendLogEntry {\n id: string;\n templateId: string | null;\n app: string | null;\n recipient: string;\n sender: string;\n subject: string;\n status: string;\n error: string | null;\n provider: string;\n responseStatus: number | null;\n createdAt: number;\n}\n\ninterface SendLogEntryBody {\n htmlBody: string | null;\n textBody: string | null;\n}\n\nconst PAGE_SIZE = 50;\n\nfunction useDebounced(value: string, delayMs = 300): string {\n const [debounced, setDebounced] = useState(value);\n useEffect(() => {\n const timer = setTimeout(() => setDebounced(value), delayMs);\n return () => clearTimeout(timer);\n }, [value, delayMs]);\n return debounced;\n}\n\nfunction SendLogBody({ appPath, id }: { appPath: string; id: string }) {\n const t = useT();\n const query = useQuery({\n queryKey: [\"get-email-log-body\", appPath, id],\n queryFn: () =>\n callAppAction<SendLogEntryBody>(\n appPath,\n \"get-email-log-body\",\n { id },\n \"GET\",\n ),\n });\n\n if (query.isError) {\n return (\n <ActionQueryError\n error={query.error}\n onRetry={() => void query.refetch()}\n />\n );\n }\n if (query.isLoading) {\n return <Skeleton className=\"h-96 w-full\" />;\n }\n const { htmlBody, textBody } = query.data ?? {\n htmlBody: null,\n textBody: null,\n };\n if (!htmlBody && !textBody) return null;\n\n return (\n <Tabs defaultValue={htmlBody ? \"html\" : \"text\"}>\n <TabsList>\n {htmlBody ? (\n <TabsTrigger value=\"html\">\n {t(\"dispatch.transactionalEmail.sendLogBodyHtml\")}\n </TabsTrigger>\n ) : null}\n {textBody ? (\n <TabsTrigger value=\"text\">\n {t(\"dispatch.transactionalEmail.sendLogBodyText\")}\n </TabsTrigger>\n ) : null}\n </TabsList>\n {htmlBody ? (\n <TabsContent value=\"html\">\n {/* sandbox=\"\" (no allow-scripts) keeps the logged HTML from\n running script in the Dispatch origin. */}\n <iframe\n title={t(\"dispatch.transactionalEmail.sendLogBodyFrameTitle\")}\n sandbox=\"\"\n srcDoc={resolveEmailPreviewAssets(htmlBody)}\n // guard:allow-raw-color — the frame previews sent email HTML, which renders on white in mail clients regardless of app theme.\n className=\"h-96 w-full rounded-xl border bg-white\"\n />\n </TabsContent>\n ) : null}\n {textBody ? (\n <TabsContent value=\"text\">\n <pre className=\"h-96 w-full overflow-auto rounded-xl border p-3 text-xs whitespace-pre-wrap\">\n {textBody}\n </pre>\n </TabsContent>\n ) : null}\n </Tabs>\n );\n}\n\nfunction AddressFilterControl({\n dimension,\n contains,\n exclude,\n onContainsChange,\n onExcludeChange,\n}: {\n dimension: \"to\" | \"from\";\n contains: string;\n exclude: string;\n onContainsChange: (value: string) => void;\n onExcludeChange: (value: string) => void;\n}) {\n const t = useT();\n const containsId = useId();\n const excludeId = useId();\n const dimensionLabel = t(\n dimension === \"to\"\n ? \"dispatch.transactionalEmail.sendLogTo\"\n : \"dispatch.transactionalEmail.sendLogFrom\",\n );\n const filters = [\n {\n operator: t(\"dispatch.transactionalEmail.sendLogContainsOperator\"),\n value: contains,\n clear: () => onContainsChange(\"\"),\n },\n {\n operator: t(\"dispatch.transactionalEmail.sendLogExcludeOperator\"),\n value: exclude,\n clear: () => onExcludeChange(\"\"),\n },\n ].filter((filter) => filter.value);\n\n return (\n <Popover>\n <div className=\"flex min-h-10 max-w-full flex-wrap items-center gap-1 rounded-md border border-input bg-background p-1\">\n <PopoverTrigger asChild>\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n className=\"shrink-0 gap-1 px-2\"\n aria-label={dimensionLabel}\n >\n {dimensionLabel}\n <IconChevronDown aria-hidden=\"true\" className=\"size-3.5\" />\n </Button>\n </PopoverTrigger>\n {filters.map((filter) => {\n const label = `${filter.operator} ${filter.value}`;\n return (\n <Badge\n key={filter.operator}\n variant=\"secondary\"\n className=\"min-w-0 max-w-full gap-1 pe-1 font-normal\"\n >\n <span className=\"max-w-44 truncate\">{label}</span>\n <button\n type=\"button\"\n className=\"inline-flex size-5 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n aria-label={t(\n \"dispatch.transactionalEmail.sendLogRemoveAddressFilter\",\n { filter: label },\n )}\n onClick={filter.clear}\n >\n <IconX aria-hidden=\"true\" className=\"size-3\" />\n </button>\n </Badge>\n );\n })}\n </div>\n <PopoverContent\n align=\"start\"\n className=\"w-72 max-w-[calc(100vw-2rem)] p-3\"\n >\n <div className=\"grid gap-3\">\n <label\n className=\"grid gap-1.5 text-xs font-medium\"\n htmlFor={containsId}\n >\n {t(\"dispatch.transactionalEmail.sendLogContainsOperator\")}\n <Input\n id={containsId}\n value={contains}\n placeholder={t(\n \"dispatch.transactionalEmail.sendLogContainsPlaceholder\",\n )}\n onChange={(event) => onContainsChange(event.target.value)}\n aria-label={t(\n \"dispatch.transactionalEmail.sendLogAddressFilterLabel\",\n {\n dimension: dimensionLabel,\n operator: t(\n \"dispatch.transactionalEmail.sendLogContainsOperator\",\n ),\n },\n )}\n />\n </label>\n <label\n className=\"grid gap-1.5 text-xs font-medium\"\n htmlFor={excludeId}\n >\n {t(\"dispatch.transactionalEmail.sendLogExcludeOperator\")}\n <Input\n id={excludeId}\n value={exclude}\n placeholder={t(\n \"dispatch.transactionalEmail.sendLogExcludePlaceholder\",\n )}\n onChange={(event) => onExcludeChange(event.target.value)}\n aria-label={t(\n \"dispatch.transactionalEmail.sendLogAddressFilterLabel\",\n {\n dimension: dimensionLabel,\n operator: t(\n \"dispatch.transactionalEmail.sendLogExcludeOperator\",\n ),\n },\n )}\n />\n </label>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n\nfunction SendLogDetailDialog({\n entry,\n appPath,\n open,\n onOpenChange,\n}: {\n entry: SendLogEntry | null;\n appPath: string;\n open: boolean;\n onOpenChange: (next: boolean) => void;\n}) {\n const t = useT();\n if (!entry) return null;\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent className=\"max-w-3xl\">\n <DialogHeader>\n <DialogTitle>{entry.subject}</DialogTitle>\n </DialogHeader>\n <div className=\"grid grid-cols-2 gap-x-6 gap-y-1 text-xs\">\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.recipient\")}\n </div>\n <div className=\"font-mono\">{entry.recipient}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sender\")}\n </div>\n <div className=\"font-mono\">{entry.sender}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogTemplate\")}\n </div>\n <div className=\"font-mono\">{entry.templateId ?? \"—\"}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogProvider\")}\n </div>\n <div>{entry.provider}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogResponseStatus\")}\n </div>\n <div>{entry.responseStatus ?? \"—\"}</div>\n {entry.error ? (\n <>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogError\")}\n </div>\n <div className=\"text-destructive\">{entry.error}</div>\n </>\n ) : null}\n </div>\n <SendLogBody appPath={appPath} id={entry.id} />\n </DialogContent>\n </Dialog>\n );\n}\n\nexport function SendLogSection({\n apps,\n}: {\n apps: { id: string; name: string; path: string }[];\n}) {\n const t = useT();\n const [appId, setAppId] = useState<string | undefined>(apps[0]?.id);\n const [dateRange, setDateRange] = useState<DateRange>(\"7d\");\n const [templateId, setTemplateId] = useState(\"all\");\n const [templatePopoverOpen, setTemplatePopoverOpen] = useState(false);\n const [to, setTo] = useState(\"\");\n const [excludeTo, setExcludeTo] = useState(\"\");\n const [from, setFrom] = useState(\"\");\n const [excludeFrom, setExcludeFrom] = useState(\"\");\n const [status, setStatus] = useState<string>(\"all\");\n const [provider, setProvider] = useState<string>(\"all\");\n const [offset, setOffset] = useState(0);\n const [selected, setSelected] = useState<SendLogEntry | null>(null);\n\n const debouncedTo = useDebounced(to);\n const debouncedExcludeTo = useDebounced(excludeTo);\n const debouncedFrom = useDebounced(from);\n const debouncedExcludeFrom = useDebounced(excludeFrom);\n const selectedApp = apps.find((app) => app.id === appId) ?? apps[0];\n\n useEffect(() => {\n setTemplateId(\"all\");\n }, [selectedApp?.path]);\n\n useEffect(() => {\n setOffset(0);\n }, [\n appId,\n dateRange,\n templateId,\n debouncedTo,\n debouncedExcludeTo,\n debouncedFrom,\n debouncedExcludeFrom,\n status,\n provider,\n ]);\n\n const catalogQuery = useQuery({\n queryKey: [\"send-log-email-catalog\", selectedApp?.path],\n queryFn: () =>\n callAppAction<LocalTransactionalEmailCatalog>(\n selectedApp!.path,\n \"list-transactional-emails\",\n { windowDays: 30 },\n \"GET\",\n ),\n enabled: Boolean(selectedApp),\n staleTime: Infinity,\n });\n\n const templates = [...(catalogQuery.data?.emails ?? [])].sort(\n (a, b) => a.name.localeCompare(b.name) || a.id.localeCompare(b.id),\n );\n const selectedTemplate = templates.find((email) => email.id === templateId);\n\n const query = useQuery({\n queryKey: [\n \"list-email-log\",\n selectedApp?.path,\n dateRange,\n templateId,\n debouncedTo,\n debouncedExcludeTo,\n debouncedFrom,\n debouncedExcludeFrom,\n status,\n provider,\n offset,\n ],\n queryFn: () =>\n callAppAction<{ entries: SendLogEntry[] }>(\n selectedApp!.path,\n \"list-email-log\",\n {\n sinceMs: Date.now() - dateRangeToInterval(dateRange) * 86_400_000,\n ...(templateId !== \"all\" ? { templateId } : {}),\n ...(debouncedTo ? { to: debouncedTo } : {}),\n ...(debouncedExcludeTo ? { excludeTo: debouncedExcludeTo } : {}),\n ...(debouncedFrom ? { from: debouncedFrom } : {}),\n ...(debouncedExcludeFrom\n ? { excludeFrom: debouncedExcludeFrom }\n : {}),\n ...(status !== \"all\" ? { status } : {}),\n ...(provider !== \"all\" ? { provider } : {}),\n limit: PAGE_SIZE + 1,\n offset,\n },\n \"GET\",\n ),\n enabled: Boolean(selectedApp),\n });\n\n const entries = (query.data?.entries ?? []).slice(0, PAGE_SIZE);\n const hasMore = (query.data?.entries.length ?? 0) > PAGE_SIZE;\n\n if (apps.length === 0) return null;\n\n return (\n <div>\n <div className=\"mb-4 flex flex-wrap items-center gap-2\">\n <Select value={selectedApp?.id} onValueChange={setAppId}>\n <SelectTrigger className=\"w-48\">\n <SelectValue placeholder={t(\"dispatch.transactionalEmail.app\")} />\n </SelectTrigger>\n <SelectContent>\n {apps.map((app) => (\n <SelectItem key={app.id} value={app.id}>\n {app.name}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n <DateRangePicker value={dateRange} onChange={setDateRange} />\n <Popover\n open={templatePopoverOpen}\n onOpenChange={setTemplatePopoverOpen}\n >\n <PopoverTrigger asChild>\n <Button\n type=\"button\"\n variant=\"outline\"\n role=\"combobox\"\n aria-expanded={templatePopoverOpen}\n aria-label={t(\"dispatch.transactionalEmail.sendLogTemplate\")}\n className=\"w-64 justify-between\"\n >\n <span className=\"truncate\">\n {selectedTemplate\n ? `${selectedTemplate.name} · ${selectedTemplate.id}`\n : t(\"dispatch.transactionalEmail.sendLogAllTemplates\")}\n </span>\n </Button>\n </PopoverTrigger>\n <PopoverContent align=\"start\" className=\"w-80 p-0\">\n <Command>\n <CommandInput\n placeholder={t(\n \"dispatch.transactionalEmail.sendLogSearchTemplates\",\n )}\n />\n <CommandList>\n <CommandEmpty>\n {t(\"dispatch.transactionalEmail.sendLogNoTemplatesFound\")}\n </CommandEmpty>\n <CommandGroup forceMount>\n <CommandItem\n forceMount\n value=\"all\"\n onSelect={() => {\n setTemplateId(\"all\");\n setTemplatePopoverOpen(false);\n }}\n >\n <IconCheck\n aria-hidden=\"true\"\n className={\n templateId === \"all\"\n ? \"me-2 size-4\"\n : \"me-2 size-4 opacity-0\"\n }\n />\n {t(\"dispatch.transactionalEmail.sendLogAllTemplates\")}\n </CommandItem>\n </CommandGroup>\n <CommandGroup>\n {templates.map((email) => (\n <CommandItem\n key={email.id}\n value={email.id}\n keywords={[email.name]}\n onSelect={() => {\n setTemplateId(email.id);\n setTemplatePopoverOpen(false);\n }}\n >\n <IconCheck\n aria-hidden=\"true\"\n className={\n templateId === email.id\n ? \"me-2 size-4\"\n : \"me-2 size-4 opacity-0\"\n }\n />\n <span className=\"truncate\">\n {email.name} · {email.id}\n </span>\n </CommandItem>\n ))}\n </CommandGroup>\n </CommandList>\n </Command>\n </PopoverContent>\n </Popover>\n <AddressFilterControl\n dimension=\"to\"\n contains={to}\n exclude={excludeTo}\n onContainsChange={setTo}\n onExcludeChange={setExcludeTo}\n />\n <AddressFilterControl\n dimension=\"from\"\n contains={from}\n exclude={excludeFrom}\n onContainsChange={setFrom}\n onExcludeChange={setExcludeFrom}\n />\n <Select value={status} onValueChange={setStatus}>\n <SelectTrigger className=\"w-32\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"all\">\n {t(\"dispatch.transactionalEmail.sendLogAllStatuses\")}\n </SelectItem>\n <SelectItem value=\"sent\">\n {t(\"dispatch.transactionalEmail.sendLogSent\")}\n </SelectItem>\n <SelectItem value=\"failed\">\n {t(\"dispatch.transactionalEmail.sendLogFailed\")}\n </SelectItem>\n </SelectContent>\n </Select>\n <Select value={provider} onValueChange={setProvider}>\n <SelectTrigger className=\"w-36\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"all\">\n {t(\"dispatch.transactionalEmail.sendLogAllProviders\")}\n </SelectItem>\n <SelectItem value=\"resend\">Resend</SelectItem>\n <SelectItem value=\"sendgrid\">SendGrid</SelectItem>\n <SelectItem value=\"dev\">Dev</SelectItem>\n </SelectContent>\n </Select>\n {(templateId !== \"all\" ||\n to ||\n excludeTo ||\n from ||\n excludeFrom ||\n status !== \"all\" ||\n provider !== \"all\") && (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => {\n setTemplateId(\"all\");\n setTo(\"\");\n setExcludeTo(\"\");\n setFrom(\"\");\n setExcludeFrom(\"\");\n setStatus(\"all\");\n setProvider(\"all\");\n }}\n >\n {t(\"dispatch.transactionalEmail.sendLogClearFilters\")}\n </Button>\n )}\n </div>\n\n {query.isError ? (\n <ActionQueryError\n error={query.error}\n onRetry={() => void query.refetch()}\n />\n ) : query.isLoading ? (\n <Skeleton className=\"h-40 w-full\" />\n ) : entries.length === 0 ? (\n <div className=\"rounded-xl border border-dashed px-4 py-8 text-center text-sm text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogEmpty\")}\n </div>\n ) : (\n <>\n <Table>\n <TableHeader>\n <TableRow>\n <TableHead>\n {t(\"dispatch.transactionalEmail.sendLogTimestamp\")}\n </TableHead>\n <TableHead>\n {t(\"dispatch.transactionalEmail.recipient\")}\n </TableHead>\n <TableHead>{t(\"dispatch.transactionalEmail.sender\")}</TableHead>\n <TableHead>\n {t(\"dispatch.transactionalEmail.sendLogTemplate\")}\n </TableHead>\n <TableHead>{t(\"dispatch.transactionalEmail.status\")}</TableHead>\n <TableHead>\n {t(\"dispatch.transactionalEmail.sendLogProvider\")}\n </TableHead>\n </TableRow>\n </TableHeader>\n <TableBody>\n {entries.map((entry) => (\n <TableRow\n key={entry.id}\n className=\"cursor-pointer\"\n onClick={() => setSelected(entry)}\n >\n <TableCell className=\"text-xs text-muted-foreground\">\n {new Date(entry.createdAt).toLocaleString()}\n </TableCell>\n <TableCell className=\"text-xs\">{entry.recipient}</TableCell>\n <TableCell className=\"text-xs\">{entry.sender}</TableCell>\n <TableCell className=\"font-mono text-xs\">\n {entry.templateId ?? \"—\"}\n </TableCell>\n <TableCell>\n <Badge\n variant={\n entry.status === \"failed\" ? \"destructive\" : \"secondary\"\n }\n >\n {entry.status}\n </Badge>\n </TableCell>\n <TableCell className=\"text-xs\">{entry.provider}</TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n <div className=\"mt-3 flex justify-end gap-2\">\n <Button\n variant=\"outline\"\n size=\"sm\"\n disabled={offset === 0}\n onClick={() =>\n setOffset((current) => Math.max(0, current - PAGE_SIZE))\n }\n >\n {t(\"dispatch.transactionalEmail.sendLogPrevious\")}\n </Button>\n <Button\n variant=\"outline\"\n size=\"sm\"\n disabled={!hasMore}\n onClick={() => setOffset((current) => current + PAGE_SIZE)}\n >\n {t(\"dispatch.transactionalEmail.sendLogNext\")}\n </Button>\n </div>\n </>\n )}\n\n <SendLogDetailDialog\n entry={selected}\n appPath={selectedApp?.path ?? \"\"}\n open={selected !== null}\n onOpenChange={(next) => {\n if (!next) setSelected(null);\n }}\n />\n </div>\n );\n}\n"]}
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
4
|
-
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
6
|
-
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare function AlertDialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
9
|
-
declare namespace AlertDialogHeader {
|
|
10
|
-
var displayName: string;
|
|
11
|
-
}
|
|
12
|
-
declare function AlertDialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
13
|
-
declare namespace AlertDialogFooter {
|
|
14
|
-
var displayName: string;
|
|
15
|
-
}
|
|
16
|
-
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
-
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
-
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
-
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
-
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
1
|
+
export * from "@agent-native/toolkit/ui/alert-dialog";
|
|
21
2
|
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC"}
|
|
@@ -1,27 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import { cn } from "../../lib/utils.js";
|
|
5
|
-
import { buttonVariants } from "./button.js";
|
|
6
|
-
const AlertDialog = AlertDialogPrimitive.Root;
|
|
7
|
-
const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
8
|
-
const AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
9
|
-
const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Overlay, { className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props, ref: ref })));
|
|
10
|
-
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
11
|
-
const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Content, { ref: ref, className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg", className), ...props })] })));
|
|
12
|
-
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
13
|
-
const AlertDialogHeader = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props }));
|
|
14
|
-
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
15
|
-
const AlertDialogFooter = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
|
|
16
|
-
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
17
|
-
const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Title, { ref: ref, className: cn("text-lg font-semibold", className), ...props })));
|
|
18
|
-
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
19
|
-
const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Description, { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
|
|
20
|
-
AlertDialogDescription.displayName =
|
|
21
|
-
AlertDialogPrimitive.Description.displayName;
|
|
22
|
-
const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Action, { ref: ref, className: cn(buttonVariants(), className), ...props })));
|
|
23
|
-
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
24
|
-
const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Cancel, { ref: ref, className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className), ...props })));
|
|
25
|
-
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
26
|
-
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
1
|
+
export * from "@agent-native/toolkit/ui/alert-dialog";
|
|
27
2
|
//# sourceMappingURL=alert-dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.js","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alert-dialog.js","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC","sourcesContent":["export * from \"@agent-native/toolkit/ui/alert-dialog\";\n"]}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
|
|
5
|
-
size?: "default" | "icon" | "lg" | "sm" | null | undefined;
|
|
6
|
-
} & import("node_modules/class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
-
export { Button, buttonVariants };
|
|
1
|
+
export * from "@agent-native/toolkit/ui/button";
|
|
12
2
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
-
import { cva } from "class-variance-authority";
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import { cn } from "../../lib/utils.js";
|
|
6
|
-
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
7
|
-
variants: {
|
|
8
|
-
variant: {
|
|
9
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
10
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
11
|
-
outline: "bg-accent text-accent-foreground hover:bg-accent/80",
|
|
12
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
13
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
14
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
15
|
-
},
|
|
16
|
-
size: {
|
|
17
|
-
default: "h-10 px-4 py-2",
|
|
18
|
-
sm: "h-9 rounded-md px-3",
|
|
19
|
-
lg: "h-11 rounded-md px-8",
|
|
20
|
-
icon: "h-10 w-10",
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
variant: "default",
|
|
25
|
-
size: "default",
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
29
|
-
const Comp = asChild ? Slot : "button";
|
|
30
|
-
return (_jsx(Comp, { className: cn(buttonVariants({ variant, size, className })), ref: ref, ...props }));
|
|
31
|
-
});
|
|
32
|
-
Button.displayName = "Button";
|
|
33
|
-
export { Button, buttonVariants };
|
|
1
|
+
export * from "@agent-native/toolkit/ui/button";
|
|
34
2
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC","sourcesContent":["export * from \"@agent-native/toolkit/ui/button\";\n"]}
|
|
@@ -13,7 +13,7 @@ type CarouselProps = {
|
|
|
13
13
|
declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("
|
|
17
|
-
declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("
|
|
16
|
+
declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("node_modules/@agent-native/toolkit/dist/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("node_modules/@agent-native/toolkit/dist/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
18
18
|
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
|
19
19
|
//# sourceMappingURL=carousel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/components/ui/carousel.tsx"],"names":[],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C;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACrC,CAAC;AAuBF,QAAA,MAAM,QAAQ,6HAyGb,CAAC;AAGF,QAAA,MAAM,eAAe,6GAmBnB,CAAC;AAGH,QAAA,MAAM,YAAY,6GAmBhB,CAAC;AAGH,QAAA,MAAM,gBAAgB,yMA0BpB,CAAC;AAGH,QAAA,MAAM,YAAY,yMA0BhB,CAAC;AAGH,OAAO,EACL,KAAK,WAAW,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACb,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
-
export { Input };
|
|
1
|
+
export * from "@agent-native/toolkit/ui/input";
|
|
4
2
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input.tsx"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../../lib/utils.js";
|
|
4
|
-
const Input = React.forwardRef(({ className, type, ...props }, ref) => {
|
|
5
|
-
return (_jsx("input", { type: type, className: cn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className), ref: ref, ...props }));
|
|
6
|
-
});
|
|
7
|
-
Input.displayName = "Input";
|
|
8
|
-
export { Input };
|
|
1
|
+
export * from "@agent-native/toolkit/ui/input";
|
|
9
2
|
//# sourceMappingURL=input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/ui/input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/ui/input.tsx"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC","sourcesContent":["export * from \"@agent-native/toolkit/ui/input\";\n"]}
|
|
@@ -22,10 +22,12 @@ declare const Sidebar: React.ForwardRefExoticComponent<Omit<React.ClassAttribute
|
|
|
22
22
|
variant?: "sidebar" | "floating" | "inset";
|
|
23
23
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
24
24
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("
|
|
25
|
+
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("node_modules/@agent-native/toolkit/dist/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
26
26
|
declare const SidebarRail: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
27
27
|
declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
-
declare const SidebarInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "
|
|
28
|
+
declare const SidebarInput: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "size"> & {
|
|
29
|
+
size?: "sm" | "default";
|
|
30
|
+
}, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
29
31
|
declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
32
|
declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
31
33
|
declare const SidebarSeparator: React.ForwardRefExoticComponent<Omit<Omit<import("node_modules/@radix-ui/react-separator/dist/index.mjs").SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAEL,cAAc,EAGf,MAAM,WAAW,CAAC;AASnB,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAA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B,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,CAAC"}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
-
export { Switch };
|
|
1
|
+
export * from "@agent-native/toolkit/ui/switch";
|
|
5
2
|
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import { cn } from "../../lib/utils.js";
|
|
5
|
-
const Switch = React.forwardRef(({ className, ...props }, ref) => (_jsx(SwitchPrimitives.Root, { className: cn("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", className), ...props, ref: ref, children: _jsx(SwitchPrimitives.Thumb, { className: cn("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") }) })));
|
|
6
|
-
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
7
|
-
export { Switch };
|
|
1
|
+
export * from "@agent-native/toolkit/ui/switch";
|
|
8
2
|
//# sourceMappingURL=switch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC","sourcesContent":["export * from \"@agent-native/toolkit/ui/switch\";\n"]}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
1
|
+
export * from "@agent-native/toolkit/ui/tabs";
|
|
8
2
|
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import { cn } from "../../lib/utils.js";
|
|
5
|
-
const Tabs = TabsPrimitive.Root;
|
|
6
|
-
const TabsList = React.forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.List, { ref: ref, className: cn("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", className), ...props })));
|
|
7
|
-
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
8
|
-
const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Trigger, { ref: ref, className: cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", className), ...props })));
|
|
9
|
-
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
10
|
-
const TabsContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Content, { ref: ref, className: cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", className), ...props })));
|
|
11
|
-
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
12
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
1
|
+
export * from "@agent-native/toolkit/ui/tabs";
|
|
13
2
|
//# sourceMappingURL=tabs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC","sourcesContent":["export * from \"@agent-native/toolkit/ui/tabs\";\n"]}
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
declare const toggleVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "outline" | null | undefined;
|
|
6
|
-
size?: "default" | "lg" | "sm" | null | undefined;
|
|
7
|
-
} & import("node_modules/class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
-
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
9
|
-
variant?: "default" | "outline" | null | undefined;
|
|
10
|
-
size?: "default" | "lg" | "sm" | null | undefined;
|
|
11
|
-
} & import("node_modules/class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
-
export { Toggle, toggleVariants };
|
|
1
|
+
export * from "@agent-native/toolkit/ui/toggle";
|
|
13
2
|
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
3
|
-
import { cva } from "class-variance-authority";
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import { cn } from "../../lib/utils.js";
|
|
6
|
-
const toggleVariants = cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground", {
|
|
7
|
-
variants: {
|
|
8
|
-
variant: {
|
|
9
|
-
default: "bg-transparent",
|
|
10
|
-
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",
|
|
11
|
-
},
|
|
12
|
-
size: {
|
|
13
|
-
default: "h-10 px-3",
|
|
14
|
-
sm: "h-9 px-2.5",
|
|
15
|
-
lg: "h-11 px-5",
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
defaultVariants: {
|
|
19
|
-
variant: "default",
|
|
20
|
-
size: "default",
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
const Toggle = React.forwardRef(({ className, variant, size, ...props }, ref) => (_jsx(TogglePrimitive.Root, { ref: ref, className: cn(toggleVariants({ variant, size, className })), ...props })));
|
|
24
|
-
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
25
|
-
export { Toggle, toggleVariants };
|
|
1
|
+
export * from "@agent-native/toolkit/ui/toggle";
|
|
26
2
|
//# sourceMappingURL=toggle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC","sourcesContent":["export * from \"@agent-native/toolkit/ui/toggle\";\n"]}
|